@keycloakify/angular 0.0.1-rc.0 → 0.0.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/i18n.d.ts +2 -2
- package/lib/i18n.mjs +6 -0
- package/lib/models/index.d.ts +1 -1
- package/lib/models/index.mjs +2 -0
- package/lib/models/script.model.mjs +2 -0
- package/lib/providers/keycloakify-angular.providers.d.ts +5 -5
- package/lib/providers/keycloakify-angular.providers.mjs +54 -0
- package/lib/public-api.d.ts +5 -5
- package/lib/public-api.mjs +4 -0
- package/lib/services/i18n.service.d.ts +3 -0
- package/lib/services/i18n.service.mjs +11 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.mjs +3 -0
- package/lib/services/resource-injector.service.d.ts +5 -2
- package/lib/services/resource-injector.service.mjs +54 -0
- package/login/DefaultPage.d.ts +4 -4
- package/login/DefaultPage.mjs +121 -0
- package/login/KcContext.d.ts +1 -1
- package/login/KcContext.mjs +2 -0
- package/login/classes/component-reference.class.d.ts +1 -1
- package/login/classes/component-reference.class.mjs +3 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +5 -2
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +105 -0
- package/login/components/field-errors/field-errors.component.d.ts +7 -4
- package/login/components/field-errors/field-errors.component.mjs +32 -0
- package/login/components/group-label/group-label.component.d.ts +6 -3
- package/login/components/group-label/group-label.component.mjs +41 -0
- package/login/components/hello-world/hello-world.component.d.ts +5 -0
- package/login/components/hello-world/hello-world.component.mjs +11 -0
- package/login/components/index.d.ts +11 -11
- package/login/components/index.mjs +12 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +7 -4
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +52 -0
- package/login/components/input-tag/input-tag.component.d.ts +7 -4
- package/login/components/input-tag/input-tag.component.mjs +89 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +9 -6
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +115 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +5 -2
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +30 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +6 -3
- package/login/components/password-wrapper/password-wrapper.component.mjs +44 -0
- package/login/components/select-tag/select-tag.component.d.ts +7 -4
- package/login/components/select-tag/select-tag.component.mjs +80 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +7 -4
- package/login/components/textarea-tag/textarea-tag.component.mjs +48 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +8 -5
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +62 -0
- package/login/containers/template.component.d.ts +11 -8
- package/login/containers/template.component.mjs +71 -0
- package/login/directives/attributes.directive.d.ts +3 -0
- package/login/directives/attributes.directive.mjs +26 -0
- package/login/directives/index.d.ts +2 -2
- package/login/directives/index.mjs +3 -0
- package/login/directives/kc-class.directive.d.ts +5 -2
- package/login/directives/kc-class.directive.mjs +138 -0
- package/login/i18n.d.ts +2 -2
- package/login/i18n.mjs +2 -0
- package/login/pages/code/code.component.d.ts +6 -3
- package/login/pages/code/code.component.mjs +32 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +6 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +32 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +6 -3
- package/login/pages/delete-credential/delete-credential.component.mjs +37 -0
- package/login/pages/error/error.component.d.ts +6 -3
- package/login/pages/error/error.component.mjs +32 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +7 -4
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +41 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +6 -3
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +47 -0
- package/login/pages/info/info.component.d.ts +9 -6
- package/login/pages/info/info.component.mjs +58 -0
- package/login/pages/login/login.component.d.ts +6 -3
- package/login/pages/login/login.component.mjs +51 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +6 -3
- package/login/pages/login-config-totp/login-config-totp.component.mjs +47 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +37 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +37 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +6 -3
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +37 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +6 -3
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +38 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +6 -3
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +37 -0
- package/login/pages/login-otp/login-otp.component.d.ts +6 -3
- package/login/pages/login-otp/login-otp.component.mjs +38 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +6 -3
- package/login/pages/login-page-expired/login-page-expired.component.mjs +36 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +8 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +85 -0
- package/login/pages/login-password/login-password.component.d.ts +6 -3
- package/login/pages/login-password/login-password.component.mjs +46 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +45 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +38 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +6 -3
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +37 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +6 -3
- package/login/pages/login-reset-password/login-reset-password.component.mjs +38 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +6 -3
- package/login/pages/login-update-password/login-update-password.component.mjs +47 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +6 -3
- package/login/pages/login-update-profile/login-update-profile.component.mjs +44 -0
- package/login/pages/login-username/login-username.component.d.ts +6 -3
- package/login/pages/login-username/login-username.component.mjs +49 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +6 -3
- package/login/pages/login-verify-email/login-verify-email.component.mjs +37 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +6 -3
- package/login/pages/login-x509-info/login-x509-info.component.mjs +37 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +6 -3
- package/login/pages/logout-confirm/logout-confirm.component.mjs +37 -0
- package/login/pages/register/register.component.d.ts +6 -3
- package/login/pages/register/register.component.mjs +55 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +7 -4
- package/login/pages/saml-post-form/saml-post-form.component.mjs +49 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +6 -3
- package/login/pages/select-authenticator/select-authenticator.component.mjs +45 -0
- package/login/pages/terms/terms.component.d.ts +6 -3
- package/login/pages/terms/terms.component.mjs +37 -0
- package/login/pages/update-email/update-email.component.d.ts +6 -3
- package/login/pages/update-email/update-email.component.mjs +46 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +8 -5
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +87 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +6 -3
- package/login/pages/webauthn-error/webauthn-error.component.mjs +51 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +8 -5
- package/login/pages/webauthn-register/webauthn-register.component.mjs +81 -0
- package/login/pipes/advanced-msg-str.pipe.d.ts +4 -1
- package/login/pipes/advanced-msg-str.pipe.mjs +19 -0
- package/login/pipes/index.d.ts +6 -6
- package/login/pipes/index.mjs +7 -0
- package/login/pipes/input-type.pipe.d.ts +4 -1
- package/login/pipes/input-type.pipe.mjs +20 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +5 -2
- package/login/pipes/kc-sanitize.pipe.mjs +34 -0
- package/login/pipes/msg-str.pipe.d.ts +5 -2
- package/login/pipes/msg-str.pipe.mjs +19 -0
- package/login/pipes/to-array.pipe.d.ts +4 -1
- package/login/pipes/to-array.pipe.mjs +21 -0
- package/login/pipes/to-number.pipe.d.ts +4 -1
- package/login/pipes/to-number.pipe.mjs +20 -0
- package/login/services/index.d.ts +2 -2
- package/login/services/index.mjs +3 -0
- package/login/services/login-resource-injector.service.d.ts +4 -1
- package/login/services/login-resource-injector.service.mjs +68 -0
- package/login/services/user-profile-form.service.d.ts +15 -12
- package/login/services/user-profile-form.service.mjs +1017 -0
- package/package.json +90 -200
- package/src/lib/i18n.ts +2 -2
- package/src/lib/models/index.ts +1 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +18 -18
- package/src/lib/public-api.ts +5 -5
- package/src/lib/services/i18n.service.ts +2 -2
- package/src/lib/services/index.ts +2 -2
- package/src/lib/services/resource-injector.service.ts +7 -7
- package/src/login/DefaultPage.ts +76 -76
- package/src/login/KcContext.ts +1 -1
- package/src/login/classes/component-reference.class.ts +1 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +11 -11
- package/src/login/components/field-errors/field-errors.component.ts +9 -9
- package/src/login/components/group-label/group-label.component.ts +12 -12
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +1 -0
- package/src/login/components/hello-world/hello-world.component.ts +10 -0
- package/src/login/components/index.ts +11 -11
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +15 -15
- package/src/login/components/input-tag/input-tag.component.ts +20 -20
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +26 -26
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -8
- package/src/login/components/password-wrapper/password-wrapper.component.ts +11 -11
- package/src/login/components/select-tag/select-tag.component.ts +16 -16
- package/src/login/components/textarea-tag/textarea-tag.component.ts +14 -14
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +16 -16
- package/src/login/containers/template.component.ts +19 -19
- package/src/login/directives/attributes.directive.ts +2 -2
- package/src/login/directives/index.ts +2 -2
- package/src/login/directives/kc-class.directive.ts +11 -11
- package/src/login/i18n.ts +2 -2
- package/src/login/pages/code/code.component.ts +11 -11
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +11 -11
- package/src/login/pages/delete-credential/delete-credential.component.ts +11 -11
- package/src/login/pages/error/error.component.ts +11 -11
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -11
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +14 -14
- package/src/login/pages/info/info.component.ts +15 -15
- package/src/login/pages/login/login.component.ts +16 -16
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -16
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -11
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -11
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -11
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +13 -13
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -11
- package/src/login/pages/login-otp/login-otp.component.ts +13 -13
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +10 -10
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +21 -21
- package/src/login/pages/login-password/login-password.component.ts +14 -14
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +13 -13
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +13 -13
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -12
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +13 -13
- package/src/login/pages/login-update-password/login-update-password.component.ts +16 -16
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +13 -13
- package/src/login/pages/login-username/login-username.component.ts +14 -14
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +11 -11
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +11 -11
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +11 -11
- package/src/login/pages/register/register.component.ts +17 -17
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +13 -13
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +13 -13
- package/src/login/pages/terms/terms.component.ts +11 -11
- package/src/login/pages/update-email/update-email.component.ts +14 -14
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +21 -21
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +15 -15
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +20 -20
- package/src/login/pipes/advanced-msg-str.pipe.ts +4 -4
- package/src/login/pipes/index.ts +6 -6
- package/src/login/pipes/input-type.pipe.ts +4 -4
- package/src/login/pipes/kc-sanitize.pipe.ts +8 -8
- package/src/login/pipes/msg-str.pipe.ts +5 -5
- package/src/login/pipes/to-array.pipe.ts +2 -2
- package/src/login/pipes/to-number.pipe.ts +3 -3
- package/src/login/services/index.ts +2 -2
- package/src/login/services/login-resource-injector.service.ts +11 -11
- package/src/login/services/user-profile-form.service.ts +178 -178
- package/stories/login/pages/login/login.stories.ts +146 -0
- package/lib/i18n.js +0 -6
- package/lib/i18n.js.map +0 -1
- package/lib/models/index.js +0 -2
- package/lib/models/index.js.map +0 -1
- package/lib/models/script.model.js +0 -2
- package/lib/models/script.model.js.map +0 -1
- package/lib/providers/keycloakify-angular.providers.js +0 -58
- package/lib/providers/keycloakify-angular.providers.js.map +0 -1
- package/lib/public-api.js +0 -4
- package/lib/public-api.js.map +0 -1
- package/lib/services/i18n.service.js +0 -14
- package/lib/services/i18n.service.js.map +0 -1
- package/lib/services/index.js +0 -3
- package/lib/services/index.js.map +0 -1
- package/lib/services/resource-injector.service.js +0 -57
- package/lib/services/resource-injector.service.js.map +0 -1
- package/login/DefaultPage.js +0 -121
- package/login/DefaultPage.js.map +0 -1
- package/login/KcContext.js +0 -2
- package/login/KcContext.js.map +0 -1
- package/login/classes/component-reference.class.js +0 -3
- package/login/classes/component-reference.class.js.map +0 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +0 -123
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
- package/login/components/field-errors/field-errors.component.html +0 -15
- package/login/components/field-errors/field-errors.component.js +0 -45
- package/login/components/field-errors/field-errors.component.js.map +0 -1
- package/login/components/group-label/group-label.component.html +0 -30
- package/login/components/group-label/group-label.component.js +0 -55
- package/login/components/group-label/group-label.component.js.map +0 -1
- package/login/components/index.js +0 -12
- package/login/components/index.js.map +0 -1
- package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
- package/login/components/input-tag/input-tag.component.html +0 -49
- package/login/components/input-tag/input-tag.component.js +0 -107
- package/login/components/input-tag/input-tag.component.js.map +0 -1
- package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
- package/login/components/input-tag-selects/input-tag-selects.component.js +0 -132
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +0 -43
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
- package/login/components/password-wrapper/password-wrapper.component.html +0 -15
- package/login/components/password-wrapper/password-wrapper.component.js +0 -57
- package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
- package/login/components/select-tag/select-tag.component.html +0 -31
- package/login/components/select-tag/select-tag.component.js +0 -97
- package/login/components/select-tag/select-tag.component.js.map +0 -1
- package/login/components/textarea-tag/textarea-tag.component.html +0 -18
- package/login/components/textarea-tag/textarea-tag.component.js +0 -63
- package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +0 -74
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
- package/login/containers/template.component.html +0 -203
- package/login/containers/template.component.js +0 -78
- package/login/containers/template.component.js.map +0 -1
- package/login/directives/attributes.directive.js +0 -34
- package/login/directives/attributes.directive.js.map +0 -1
- package/login/directives/index.js +0 -3
- package/login/directives/index.js.map +0 -1
- package/login/directives/kc-class.directive.js +0 -146
- package/login/directives/kc-class.directive.js.map +0 -1
- package/login/i18n.js +0 -2
- package/login/i18n.js.map +0 -1
- package/login/pages/code/code.component.html +0 -26
- package/login/pages/code/code.component.js +0 -38
- package/login/pages/code/code.component.js.map +0 -1
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +0 -38
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
- package/login/pages/delete-credential/delete-credential.component.html +0 -35
- package/login/pages/delete-credential/delete-credential.component.js +0 -43
- package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
- package/login/pages/error/error.component.html +0 -25
- package/login/pages/error/error.component.js +0 -38
- package/login/pages/error/error.component.js.map +0 -1
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +0 -47
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +0 -54
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
- package/login/pages/info/info.component.html +0 -54
- package/login/pages/info/info.component.js +0 -61
- package/login/pages/info/info.component.js.map +0 -1
- package/login/pages/login/login.component.html +0 -212
- package/login/pages/login/login.component.js +0 -58
- package/login/pages/login/login.component.js.map +0 -1
- package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
- package/login/pages/login-config-totp/login-config-totp.component.js +0 -53
- package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +0 -43
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +0 -43
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +0 -43
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +0 -44
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +0 -43
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
- package/login/pages/login-otp/login-otp.component.html +0 -103
- package/login/pages/login-otp/login-otp.component.js +0 -44
- package/login/pages/login-otp/login-otp.component.js.map +0 -1
- package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
- package/login/pages/login-page-expired/login-page-expired.component.js +0 -42
- package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +0 -91
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
- package/login/pages/login-password/login-password.component.html +0 -90
- package/login/pages/login-password/login-password.component.js +0 -52
- package/login/pages/login-password/login-password.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +0 -51
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +0 -44
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
- package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
- package/login/pages/login-reset-otp/login-reset-otp.component.js +0 -43
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
- package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
- package/login/pages/login-reset-password/login-reset-password.component.js +0 -44
- package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
- package/login/pages/login-update-password/login-update-password.component.html +0 -116
- package/login/pages/login-update-password/login-update-password.component.js +0 -53
- package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
- package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
- package/login/pages/login-update-profile/login-update-profile.component.js +0 -50
- package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
- package/login/pages/login-username/login-username.component.html +0 -161
- package/login/pages/login-username/login-username.component.js +0 -56
- package/login/pages/login-username/login-username.component.js.map +0 -1
- package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
- package/login/pages/login-verify-email/login-verify-email.component.js +0 -43
- package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
- package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
- package/login/pages/login-x509-info/login-x509-info.component.js +0 -43
- package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
- package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
- package/login/pages/logout-confirm/logout-confirm.component.js +0 -43
- package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
- package/login/pages/register/register.component.html +0 -126
- package/login/pages/register/register.component.js +0 -62
- package/login/pages/register/register.component.js.map +0 -1
- package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
- package/login/pages/saml-post-form/saml-post-form.component.js +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
- package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.js +0 -51
- package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
- package/login/pages/terms/terms.component.html +0 -36
- package/login/pages/terms/terms.component.js +0 -43
- package/login/pages/terms/terms.component.js.map +0 -1
- package/login/pages/update-email/update-email.component.html +0 -58
- package/login/pages/update-email/update-email.component.js +0 -52
- package/login/pages/update-email/update-email.component.js.map +0 -1
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +0 -93
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
- package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
- package/login/pages/webauthn-error/webauthn-error.component.js +0 -57
- package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
- package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
- package/login/pages/webauthn-register/webauthn-register.component.js +0 -86
- package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
- package/login/pipes/advanced-msg-str.pipe.js +0 -31
- package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
- package/login/pipes/index.js +0 -7
- package/login/pipes/index.js.map +0 -1
- package/login/pipes/input-type.pipe.js +0 -23
- package/login/pipes/input-type.pipe.js.map +0 -1
- package/login/pipes/kc-sanitize.pipe.js +0 -36
- package/login/pipes/kc-sanitize.pipe.js.map +0 -1
- package/login/pipes/msg-str.pipe.js +0 -31
- package/login/pipes/msg-str.pipe.js.map +0 -1
- package/login/pipes/to-array.pipe.js +0 -24
- package/login/pipes/to-array.pipe.js.map +0 -1
- package/login/pipes/to-number.pipe.js +0 -23
- package/login/pipes/to-number.pipe.js.map +0 -1
- package/login/services/index.js +0 -3
- package/login/services/index.js.map +0 -1
- package/login/services/login-resource-injector.service.js +0 -71
- package/login/services/login-resource-injector.service.js.map +0 -1
- package/login/services/user-profile-form.service.js +0 -1031
- package/login/services/user-profile-form.service.js.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@let index = fieldIndex();
|
|
2
|
-
<span
|
|
3
|
-
[id]="'input-error-' + attribute.name + (index === undefined ? '' : '-' + index)"
|
|
4
|
-
[kcClass]="'kcInputErrorMessageClass'"
|
|
5
|
-
aria-live="polite"
|
|
6
|
-
>
|
|
7
|
-
@for (error of displayableErrors(); track error; let i = $index) {
|
|
8
|
-
@if (error.fieldIndex === index) {
|
|
9
|
-
<span [innerHTML]="error.errorMessage"></span>
|
|
10
|
-
@if (displayableErrors()?.length ?? 0 - 1 !== i) {
|
|
11
|
-
<br />
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
</span>
|
|
@@ -1,45 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAA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@@
|
|
|
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
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-tag.component.js","sourceR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ChC,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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EAET,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;AA0BrF,IAAM,wBAAwB,gCAA9B,MAAM,wBAAyB,SAAQ,kBAAkB;IAAzD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,kBAAa,GAAG,KAAK,EAAqB,CAAC;QAC3C,uBAAkB,GAAG,MAAM,EAAc,CAAC;QAC1C,sBAAiB,GAAG,KAAK,EAAoB,CAAC;QACrC,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QAEtE,YAAO,GAKK,QAAQ,CAAC,GAAG,EAAE;YACtB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACnC,IAAI,SAAS,EAAE;gBACX,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC;gBAC5C,QAAQ,SAAS,EAAE;oBACf,KAAK,qBAAqB;wBACtB,OAAO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