@keycloakify/angular 0.0.1-rc.2 → 0.0.1-rc.20
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/README.md +76 -1
- package/account/DefaultPage/DefaultPage.d.ts +38 -0
- package/account/DefaultPage/index.d.ts +5 -0
- package/account/DefaultPage/public-api.d.ts +1 -0
- package/account/KcContext/KcContext.d.ts +1 -0
- package/account/KcContext/index.d.ts +5 -0
- package/account/KcContext/public-api.d.ts +1 -0
- package/account/classes/component-reference/component-reference.class.d.ts +6 -0
- package/account/classes/component-reference/index.d.ts +5 -0
- package/account/classes/component-reference/public-api.d.ts +1 -0
- package/account/containers/template/index.d.ts +5 -0
- package/account/containers/template/public-api.d.ts +1 -0
- package/account/containers/template/template.component.d.ts +39 -0
- package/account/directives/kc-class/index.d.ts +5 -0
- package/{login/directives → account/directives/kc-class}/kc-class.directive.d.ts +1 -1
- package/account/directives/kc-class/public-api.d.ts +1 -0
- package/account/i18n/i18n.d.ts +4 -0
- package/account/i18n/index.d.ts +5 -0
- package/account/i18n/public-api.d.ts +1 -0
- package/account/pages/account/account.component.d.ts +15 -0
- package/account/pages/account/index.d.ts +5 -0
- package/account/pages/account/public-api.d.ts +1 -0
- package/account/pages/applications/applications.component.d.ts +14 -0
- package/account/pages/applications/index.d.ts +5 -0
- package/account/pages/applications/public-api.d.ts +1 -0
- package/account/pages/federatedIdentity/federatedIdentity.component.d.ts +14 -0
- package/account/pages/federatedIdentity/index.d.ts +5 -0
- package/account/pages/federatedIdentity/public-api.d.ts +1 -0
- package/account/pages/log/index.d.ts +5 -0
- package/account/pages/log/log.component.d.ts +14 -0
- package/account/pages/log/public-api.d.ts +1 -0
- package/account/pages/password/index.d.ts +5 -0
- package/account/pages/password/password.component.d.ts +29 -0
- package/account/pages/password/public-api.d.ts +1 -0
- package/account/pages/sessions/index.d.ts +5 -0
- package/account/pages/sessions/public-api.d.ts +1 -0
- package/account/pages/sessions/sessions.component.d.ts +14 -0
- package/account/pages/totp/index.d.ts +5 -0
- package/account/pages/totp/public-api.d.ts +1 -0
- package/account/pages/totp/totp.component.d.ts +14 -0
- package/account/providers/keycloakify-angular/index.d.ts +5 -0
- package/account/providers/keycloakify-angular/keycloakify-angular.providers.d.ts +15 -0
- package/account/providers/keycloakify-angular/public-api.d.ts +1 -0
- package/account/services/account-resource-injector/account-resource-injector.service.d.ts +10 -0
- package/account/services/account-resource-injector/index.d.ts +5 -0
- package/account/services/account-resource-injector/public-api.d.ts +1 -0
- package/account/services/i18n/i18n.service.d.ts +6 -0
- package/account/services/i18n/index.d.ts +5 -0
- package/account/services/i18n/public-api.d.ts +1 -0
- package/account/tokens/classes/classes.token.d.ts +16 -0
- package/account/tokens/classes/index.d.ts +5 -0
- package/account/tokens/classes/public-api.d.ts +1 -0
- package/account/tokens/i18n/i18n.token.d.ts +2 -0
- package/account/tokens/i18n/index.d.ts +5 -0
- package/account/tokens/i18n/public-api.d.ts +1 -0
- package/account/tokens/kc-context/index.d.ts +5 -0
- package/account/tokens/kc-context/kc-context.token.d.ts +3 -0
- package/account/tokens/kc-context/public-api.d.ts +1 -0
- package/bin/main.js +224 -0
- package/esm2022/account/DefaultPage/DefaultPage.mjs +34 -0
- package/esm2022/account/DefaultPage/keycloakify-angular-account-DefaultPage.mjs +5 -0
- package/esm2022/account/DefaultPage/public-api.mjs +2 -0
- package/esm2022/account/KcContext/KcContext.mjs +2 -0
- package/esm2022/account/KcContext/keycloakify-angular-account-KcContext.mjs +5 -0
- package/esm2022/account/KcContext/public-api.mjs +2 -0
- package/esm2022/account/classes/component-reference/component-reference.class.mjs +3 -0
- package/esm2022/account/classes/component-reference/keycloakify-angular-account-classes-component-reference.mjs +5 -0
- package/esm2022/account/classes/component-reference/public-api.mjs +2 -0
- package/esm2022/account/containers/template/keycloakify-angular-account-containers-template.mjs +5 -0
- package/esm2022/account/containers/template/public-api.mjs +2 -0
- package/esm2022/account/containers/template/template.component.mjs +99 -0
- package/esm2022/account/directives/kc-class/kc-class.directive.mjs +141 -0
- package/esm2022/account/directives/kc-class/keycloakify-angular-account-directives-kc-class.mjs +5 -0
- package/esm2022/account/directives/kc-class/public-api.mjs +2 -0
- package/esm2022/account/i18n/i18n.mjs +2 -0
- package/esm2022/account/i18n/keycloakify-angular-account-i18n.mjs +5 -0
- package/esm2022/account/i18n/public-api.mjs +2 -0
- package/esm2022/account/pages/account/account.component.mjs +40 -0
- package/esm2022/account/pages/account/keycloakify-angular-account-pages-account.mjs +5 -0
- package/esm2022/account/pages/account/public-api.mjs +2 -0
- package/esm2022/account/pages/applications/applications.component.mjs +38 -0
- package/esm2022/account/pages/applications/keycloakify-angular-account-pages-applications.mjs +5 -0
- package/esm2022/account/pages/applications/public-api.mjs +2 -0
- package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +37 -0
- package/esm2022/account/pages/federatedIdentity/keycloakify-angular-account-pages-federatedIdentity.mjs +5 -0
- package/esm2022/account/pages/federatedIdentity/public-api.mjs +2 -0
- package/esm2022/account/pages/log/keycloakify-angular-account-pages-log.mjs +5 -0
- package/esm2022/account/pages/log/log.component.mjs +37 -0
- package/esm2022/account/pages/log/public-api.mjs +2 -0
- package/esm2022/account/pages/password/keycloakify-angular-account-pages-password.mjs +5 -0
- package/esm2022/account/pages/password/password.component.mjs +109 -0
- package/esm2022/account/pages/password/public-api.mjs +2 -0
- package/esm2022/account/pages/sessions/keycloakify-angular-account-pages-sessions.mjs +5 -0
- package/esm2022/account/pages/sessions/public-api.mjs +2 -0
- package/esm2022/account/pages/sessions/sessions.component.mjs +37 -0
- package/esm2022/account/pages/totp/keycloakify-angular-account-pages-totp.mjs +5 -0
- package/esm2022/account/pages/totp/public-api.mjs +2 -0
- package/esm2022/account/pages/totp/totp.component.mjs +38 -0
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular-account-providers-keycloakify-angular.mjs +5 -0
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular.providers.mjs +49 -0
- package/esm2022/account/providers/keycloakify-angular/public-api.mjs +2 -0
- package/esm2022/account/services/account-resource-injector/account-resource-injector.service.mjs +37 -0
- package/esm2022/account/services/account-resource-injector/keycloakify-angular-account-services-account-resource-injector.mjs +5 -0
- package/esm2022/account/services/account-resource-injector/public-api.mjs +2 -0
- package/esm2022/account/services/i18n/i18n.service.mjs +12 -0
- package/esm2022/account/services/i18n/keycloakify-angular-account-services-i18n.mjs +5 -0
- package/esm2022/account/services/i18n/public-api.mjs +2 -0
- package/esm2022/account/tokens/classes/classes.token.mjs +3 -0
- package/esm2022/account/tokens/classes/keycloakify-angular-account-tokens-classes.mjs +5 -0
- package/esm2022/account/tokens/classes/public-api.mjs +2 -0
- package/esm2022/account/tokens/i18n/i18n.token.mjs +3 -0
- package/esm2022/account/tokens/i18n/keycloakify-angular-account-tokens-i18n.mjs +5 -0
- package/esm2022/account/tokens/i18n/public-api.mjs +2 -0
- package/esm2022/account/tokens/kc-context/kc-context.token.mjs +3 -0
- package/esm2022/account/tokens/kc-context/keycloakify-angular-account-tokens-kc-context.mjs +5 -0
- package/esm2022/account/tokens/kc-context/public-api.mjs +2 -0
- package/esm2022/keycloakify-angular.mjs +5 -0
- package/esm2022/lib/directives/attributes/attributes.directive.mjs +26 -0
- package/esm2022/lib/directives/attributes/keycloakify-angular-lib-directives-attributes.mjs +5 -0
- package/esm2022/lib/directives/attributes/public-api.mjs +2 -0
- package/esm2022/lib/keycloakify-angular-lib.mjs +5 -0
- package/esm2022/lib/models/script/keycloakify-angular-lib-models-script.mjs +5 -0
- package/esm2022/lib/models/script/public-api.mjs +2 -0
- package/esm2022/lib/models/script/script.model.mjs +2 -0
- package/esm2022/lib/pipes/input-type/input-type.pipe.mjs +20 -0
- package/esm2022/lib/pipes/input-type/keycloakify-angular-lib-pipes-input-type.mjs +5 -0
- package/esm2022/lib/pipes/input-type/public-api.mjs +2 -0
- package/esm2022/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.mjs +20 -0
- package/esm2022/lib/pipes/is-array-with-empty-object/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +5 -0
- package/esm2022/lib/pipes/is-array-with-empty-object/public-api.mjs +2 -0
- package/esm2022/lib/pipes/kc-sanitize/kc-sanitize.pipe.mjs +29 -0
- package/esm2022/lib/pipes/kc-sanitize/keycloakify-angular-lib-pipes-kc-sanitize.mjs +5 -0
- package/esm2022/lib/pipes/kc-sanitize/public-api.mjs +2 -0
- package/esm2022/lib/pipes/to-array/keycloakify-angular-lib-pipes-to-array.mjs +5 -0
- package/esm2022/lib/pipes/to-array/public-api.mjs +2 -0
- package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +21 -0
- package/esm2022/lib/pipes/to-number/keycloakify-angular-lib-pipes-to-number.mjs +5 -0
- package/esm2022/lib/pipes/to-number/public-api.mjs +2 -0
- package/esm2022/lib/pipes/to-number/to-number.pipe.mjs +20 -0
- package/esm2022/lib/public-api.mjs +2 -0
- package/esm2022/lib/services/resource-injector/keycloakify-angular-lib-services-resource-injector.mjs +5 -0
- package/esm2022/lib/services/resource-injector/public-api.mjs +2 -0
- package/esm2022/lib/services/resource-injector/resource-injector.service.mjs +54 -0
- package/esm2022/lib/tokens/use-default-css/keycloakify-angular-lib-tokens-use-default-css.mjs +5 -0
- package/esm2022/lib/tokens/use-default-css/public-api.mjs +2 -0
- package/esm2022/lib/tokens/use-default-css/use-default-css.token.mjs +3 -0
- package/esm2022/login/KcContext/KcContext.mjs +2 -0
- package/esm2022/login/KcContext/keycloakify-angular-login-KcContext.mjs +5 -0
- package/esm2022/login/KcContext/public-api.mjs +2 -0
- package/esm2022/login/classes/component-reference/component-reference.class.mjs +3 -0
- package/esm2022/login/classes/component-reference/keycloakify-angular-login-classes-component-reference.mjs +5 -0
- package/esm2022/login/classes/component-reference/public-api.mjs +2 -0
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +106 -0
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +5 -0
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/public-api.mjs +2 -0
- package/esm2022/login/components/field-errors/field-errors.component.mjs +33 -0
- package/esm2022/login/components/field-errors/keycloakify-angular-login-components-field-errors.mjs +5 -0
- package/esm2022/login/components/field-errors/public-api.mjs +2 -0
- package/esm2022/login/components/group-label/group-label.component.mjs +43 -0
- package/esm2022/login/components/group-label/keycloakify-angular-login-components-group-label.mjs +5 -0
- package/esm2022/login/components/group-label/public-api.mjs +2 -0
- package/esm2022/login/components/input-field-by-type/input-field-by-type.component.mjs +46 -0
- package/esm2022/login/components/input-field-by-type/keycloakify-angular-login-components-input-field-by-type.mjs +5 -0
- package/esm2022/login/components/input-field-by-type/public-api.mjs +2 -0
- package/esm2022/login/components/input-tag/input-tag.component.mjs +90 -0
- package/esm2022/login/components/input-tag/keycloakify-angular-login-components-input-tag.mjs +5 -0
- package/esm2022/login/components/input-tag/public-api.mjs +2 -0
- package/esm2022/login/components/input-tag-selects/input-tag-selects.component.mjs +117 -0
- package/esm2022/login/components/input-tag-selects/keycloakify-angular-login-components-input-tag-selects.mjs +5 -0
- package/esm2022/login/components/input-tag-selects/public-api.mjs +2 -0
- package/esm2022/login/components/logout-other-sessions/keycloakify-angular-login-components-logout-other-sessions.mjs +5 -0
- package/esm2022/login/components/logout-other-sessions/logout-other-sessions.component.mjs +32 -0
- package/esm2022/login/components/logout-other-sessions/public-api.mjs +2 -0
- package/esm2022/login/components/password-wrapper/keycloakify-angular-login-components-password-wrapper.mjs +5 -0
- package/esm2022/login/components/password-wrapper/password-wrapper.component.mjs +46 -0
- package/esm2022/login/components/password-wrapper/public-api.mjs +2 -0
- package/esm2022/login/components/select-tag/keycloakify-angular-login-components-select-tag.mjs +5 -0
- package/esm2022/login/components/select-tag/public-api.mjs +2 -0
- package/esm2022/login/components/select-tag/select-tag.component.mjs +82 -0
- package/esm2022/login/components/textarea-tag/keycloakify-angular-login-components-textarea-tag.mjs +5 -0
- package/esm2022/login/components/textarea-tag/public-api.mjs +2 -0
- package/esm2022/login/components/textarea-tag/textarea-tag.component.mjs +49 -0
- package/esm2022/login/components/user-profile-form-fields/keycloakify-angular-login-components-user-profile-form-fields.mjs +5 -0
- package/esm2022/login/components/user-profile-form-fields/public-api.mjs +2 -0
- package/esm2022/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +62 -0
- package/esm2022/login/containers/template/keycloakify-angular-login-containers-template.mjs +5 -0
- package/esm2022/login/containers/template/public-api.mjs +2 -0
- package/esm2022/login/containers/template/template.component.mjs +140 -0
- package/esm2022/login/directives/kc-class/kc-class.directive.mjs +138 -0
- package/esm2022/login/directives/kc-class/keycloakify-angular-login-directives-kc-class.mjs +5 -0
- package/esm2022/login/directives/kc-class/public-api.mjs +2 -0
- package/esm2022/login/getDefaultPageComponent/getDefaultPageComponent.mjs +77 -0
- package/esm2022/login/getDefaultPageComponent/keycloakify-angular-login-getDefaultPageComponent.mjs +5 -0
- package/esm2022/login/getDefaultPageComponent/public-api.mjs +2 -0
- package/esm2022/login/i18n/i18n.mjs +2 -0
- package/esm2022/login/i18n/keycloakify-angular-login-i18n.mjs +5 -0
- package/esm2022/login/i18n/public-api.mjs +2 -0
- package/esm2022/login/pages/code/code.component.mjs +41 -0
- package/esm2022/login/pages/code/keycloakify-angular-login-pages-code.mjs +5 -0
- package/esm2022/login/pages/code/public-api.mjs +2 -0
- package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +41 -0
- package/esm2022/login/pages/delete-account-confirm/keycloakify-angular-login-pages-delete-account-confirm.mjs +5 -0
- package/esm2022/login/pages/delete-account-confirm/public-api.mjs +2 -0
- package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +41 -0
- package/esm2022/login/pages/delete-credential/keycloakify-angular-login-pages-delete-credential.mjs +5 -0
- package/esm2022/login/pages/delete-credential/public-api.mjs +2 -0
- package/esm2022/login/pages/error/error.component.mjs +41 -0
- package/esm2022/login/pages/error/keycloakify-angular-login-pages-error.mjs +5 -0
- package/esm2022/login/pages/error/public-api.mjs +2 -0
- package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +46 -0
- package/esm2022/login/pages/frontchannel-logout/keycloakify-angular-login-pages-frontchannel-logout.mjs +5 -0
- package/esm2022/login/pages/frontchannel-logout/public-api.mjs +2 -0
- package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +54 -0
- package/esm2022/login/pages/idp-review-user-profile/keycloakify-angular-login-pages-idp-review-user-profile.mjs +5 -0
- package/esm2022/login/pages/idp-review-user-profile/public-api.mjs +2 -0
- package/esm2022/login/pages/info/info.component.mjs +50 -0
- package/esm2022/login/pages/info/keycloakify-angular-login-pages-info.mjs +5 -0
- package/esm2022/login/pages/info/public-api.mjs +2 -0
- package/esm2022/login/pages/login/keycloakify-angular-login-pages-login.mjs +5 -0
- package/esm2022/login/pages/login/login.component.mjs +45 -0
- package/esm2022/login/pages/login/public-api.mjs +2 -0
- package/esm2022/login/pages/login-config-totp/keycloakify-angular-login-pages-login-config-totp.mjs +5 -0
- package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +43 -0
- package/esm2022/login/pages/login-config-totp/public-api.mjs +2 -0
- package/esm2022/login/pages/login-idp-link-confirm/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +5 -0
- package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +37 -0
- package/esm2022/login/pages/login-idp-link-confirm/public-api.mjs +2 -0
- package/esm2022/login/pages/login-idp-link-confirm-override/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +5 -0
- package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +37 -0
- package/esm2022/login/pages/login-idp-link-confirm-override/public-api.mjs +2 -0
- package/esm2022/login/pages/login-idp-link-email/keycloakify-angular-login-pages-login-idp-link-email.mjs +5 -0
- package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +37 -0
- package/esm2022/login/pages/login-idp-link-email/public-api.mjs +2 -0
- package/esm2022/login/pages/login-oauth-grant/keycloakify-angular-login-pages-login-oauth-grant.mjs +5 -0
- package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +38 -0
- package/esm2022/login/pages/login-oauth-grant/public-api.mjs +2 -0
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +5 -0
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +41 -0
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/public-api.mjs +2 -0
- package/esm2022/login/pages/login-otp/keycloakify-angular-login-pages-login-otp.mjs +5 -0
- package/esm2022/login/pages/login-otp/login-otp.component.mjs +42 -0
- package/esm2022/login/pages/login-otp/public-api.mjs +2 -0
- package/esm2022/login/pages/login-page-expired/keycloakify-angular-login-pages-login-page-expired.mjs +5 -0
- package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +40 -0
- package/esm2022/login/pages/login-page-expired/public-api.mjs +2 -0
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +5 -0
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +89 -0
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/public-api.mjs +2 -0
- package/esm2022/login/pages/login-password/keycloakify-angular-login-pages-login-password.mjs +5 -0
- package/esm2022/login/pages/login-password/login-password.component.mjs +45 -0
- package/esm2022/login/pages/login-password/public-api.mjs +2 -0
- package/esm2022/login/pages/login-recovery-authn-code-config/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +5 -0
- package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +44 -0
- package/esm2022/login/pages/login-recovery-authn-code-config/public-api.mjs +2 -0
- package/esm2022/login/pages/login-recovery-authn-code-input/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +5 -0
- package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +42 -0
- package/esm2022/login/pages/login-recovery-authn-code-input/public-api.mjs +2 -0
- package/esm2022/login/pages/login-reset-otp/keycloakify-angular-login-pages-login-reset-otp.mjs +5 -0
- package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +41 -0
- package/esm2022/login/pages/login-reset-otp/public-api.mjs +2 -0
- package/esm2022/login/pages/login-reset-password/keycloakify-angular-login-pages-login-reset-password.mjs +5 -0
- package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +42 -0
- package/esm2022/login/pages/login-reset-password/public-api.mjs +2 -0
- package/esm2022/login/pages/login-update-password/keycloakify-angular-login-pages-login-update-password.mjs +5 -0
- package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +44 -0
- package/esm2022/login/pages/login-update-password/public-api.mjs +2 -0
- package/esm2022/login/pages/login-update-profile/keycloakify-angular-login-pages-login-update-profile.mjs +5 -0
- package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +51 -0
- package/esm2022/login/pages/login-update-profile/public-api.mjs +2 -0
- package/esm2022/login/pages/login-username/keycloakify-angular-login-pages-login-username.mjs +5 -0
- package/esm2022/login/pages/login-username/login-username.component.mjs +44 -0
- package/esm2022/login/pages/login-username/public-api.mjs +2 -0
- package/esm2022/login/pages/login-verify-email/keycloakify-angular-login-pages-login-verify-email.mjs +5 -0
- package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +41 -0
- package/esm2022/login/pages/login-verify-email/public-api.mjs +2 -0
- package/esm2022/login/pages/login-x509-info/keycloakify-angular-login-pages-login-x509-info.mjs +5 -0
- package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +41 -0
- package/esm2022/login/pages/login-x509-info/public-api.mjs +2 -0
- package/esm2022/login/pages/logout-confirm/keycloakify-angular-login-pages-logout-confirm.mjs +5 -0
- package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +37 -0
- package/esm2022/login/pages/logout-confirm/public-api.mjs +2 -0
- package/esm2022/login/pages/register/keycloakify-angular-login-pages-register.mjs +5 -0
- package/esm2022/login/pages/register/public-api.mjs +2 -0
- package/esm2022/login/pages/register/register.component.mjs +56 -0
- package/esm2022/login/pages/saml-post-form/keycloakify-angular-login-pages-saml-post-form.mjs +5 -0
- package/esm2022/login/pages/saml-post-form/public-api.mjs +2 -0
- package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +51 -0
- package/esm2022/login/pages/select-authenticator/keycloakify-angular-login-pages-select-authenticator.mjs +5 -0
- package/esm2022/login/pages/select-authenticator/public-api.mjs +2 -0
- package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +42 -0
- package/esm2022/login/pages/terms/keycloakify-angular-login-pages-terms.mjs +5 -0
- package/esm2022/login/pages/terms/public-api.mjs +2 -0
- package/esm2022/login/pages/terms/terms.component.mjs +41 -0
- package/esm2022/login/pages/update-email/keycloakify-angular-login-pages-update-email.mjs +5 -0
- package/esm2022/login/pages/update-email/public-api.mjs +2 -0
- package/esm2022/login/pages/update-email/update-email.component.mjs +48 -0
- package/esm2022/login/pages/webauthn-authenticate/keycloakify-angular-login-pages-webauthn-authenticate.mjs +5 -0
- package/esm2022/login/pages/webauthn-authenticate/public-api.mjs +2 -0
- package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +81 -0
- package/esm2022/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.mjs +5 -0
- package/esm2022/login/pages/webauthn-error/public-api.mjs +2 -0
- package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +50 -0
- package/esm2022/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.mjs +5 -0
- package/esm2022/login/pages/webauthn-register/public-api.mjs +2 -0
- package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +77 -0
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.mjs +5 -0
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular.providers.mjs +54 -0
- package/esm2022/login/providers/keycloakify-angular/public-api.mjs +2 -0
- package/esm2022/login/services/i18n/i18n.service.mjs +12 -0
- package/esm2022/login/services/i18n/keycloakify-angular-login-services-i18n.mjs +5 -0
- package/esm2022/login/services/i18n/public-api.mjs +2 -0
- package/esm2022/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.mjs +5 -0
- package/esm2022/login/services/login-resource-injector/login-resource-injector.service.mjs +68 -0
- package/esm2022/login/services/login-resource-injector/public-api.mjs +2 -0
- package/esm2022/login/services/submit/keycloakify-angular-login-services-submit.mjs +5 -0
- package/esm2022/login/services/submit/public-api.mjs +2 -0
- package/esm2022/login/services/submit/submit.service.mjs +20 -0
- package/esm2022/login/services/user-profile-form/keycloakify-angular-login-services-user-profile-form.mjs +5 -0
- package/esm2022/login/services/user-profile-form/public-api.mjs +2 -0
- package/esm2022/login/services/user-profile-form/user-profile-form.service.mjs +1019 -0
- package/esm2022/login/tokens/classes/classes.token.mjs +3 -0
- package/esm2022/login/tokens/classes/keycloakify-angular-login-tokens-classes.mjs +5 -0
- package/esm2022/login/tokens/classes/public-api.mjs +2 -0
- package/esm2022/login/tokens/i18n/i18n.token.mjs +3 -0
- package/esm2022/login/tokens/i18n/keycloakify-angular-login-tokens-i18n.mjs +5 -0
- package/esm2022/login/tokens/i18n/public-api.mjs +2 -0
- package/esm2022/login/tokens/kc-context/kc-context.token.mjs +3 -0
- package/esm2022/login/tokens/kc-context/keycloakify-angular-login-tokens-kc-context.mjs +5 -0
- package/esm2022/login/tokens/kc-context/public-api.mjs +2 -0
- package/esm2022/login/tokens/make-user-confirm-password/keycloakify-angular-login-tokens-make-user-confirm-password.mjs +5 -0
- package/esm2022/login/tokens/make-user-confirm-password/make-user-confirm-password.token.mjs +3 -0
- package/esm2022/login/tokens/make-user-confirm-password/public-api.mjs +2 -0
- package/esm2022/public-api.mjs +2 -0
- package/fesm2022/keycloakify-angular-account-DefaultPage.mjs +39 -0
- package/fesm2022/keycloakify-angular-account-DefaultPage.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-KcContext.mjs +4 -0
- package/fesm2022/keycloakify-angular-account-KcContext.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-classes-component-reference.mjs +9 -0
- package/fesm2022/keycloakify-angular-account-classes-component-reference.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-containers-template.mjs +106 -0
- package/fesm2022/keycloakify-angular-account-containers-template.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +148 -0
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-i18n.mjs +4 -0
- package/fesm2022/keycloakify-angular-account-i18n.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +47 -0
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +45 -0
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +44 -0
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +44 -0
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +116 -0
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +44 -0
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +45 -0
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs +56 -0
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +44 -0
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs +19 -0
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-tokens-classes.mjs +10 -0
- package/fesm2022/keycloakify-angular-account-tokens-classes.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-tokens-i18n.mjs +10 -0
- package/fesm2022/keycloakify-angular-account-tokens-i18n.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-tokens-kc-context.mjs +10 -0
- package/fesm2022/keycloakify-angular-account-tokens-kc-context.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +33 -0
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-models-script.mjs +4 -0
- package/fesm2022/keycloakify-angular-lib-models-script.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +27 -0
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +27 -0
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +36 -0
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +28 -0
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +27 -0
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +61 -0
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib-tokens-use-default-css.mjs +10 -0
- package/fesm2022/keycloakify-angular-lib-tokens-use-default-css.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-lib.mjs +8 -0
- package/fesm2022/keycloakify-angular-lib.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-KcContext.mjs +4 -0
- package/fesm2022/keycloakify-angular-login-KcContext.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-classes-component-reference.mjs +9 -0
- package/fesm2022/keycloakify-angular-login-classes-component-reference.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +113 -0
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +40 -0
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs +50 -0
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +53 -0
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +124 -0
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +97 -0
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +39 -0
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +53 -0
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +89 -0
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +56 -0
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +69 -0
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-containers-template.mjs +147 -0
- package/fesm2022/keycloakify-angular-login-containers-template.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +145 -0
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-getDefaultPageComponent.mjs +83 -0
- package/fesm2022/keycloakify-angular-login-getDefaultPageComponent.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-i18n.mjs +4 -0
- package/fesm2022/keycloakify-angular-login-i18n.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +53 -0
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +61 -0
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +57 -0
- package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +50 -0
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +44 -0
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +44 -0
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +44 -0
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +45 -0
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +49 -0
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +47 -0
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +96 -0
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +52 -0
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +51 -0
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +49 -0
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +49 -0
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +51 -0
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +58 -0
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +51 -0
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +52 -0
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +44 -0
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +63 -0
- package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +58 -0
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +49 -0
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +48 -0
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +55 -0
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +88 -0
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +57 -0
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +84 -0
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs +61 -0
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs +19 -0
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +75 -0
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-services-submit.mjs +27 -0
- package/fesm2022/keycloakify-angular-login-services-submit.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +1026 -0
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-tokens-classes.mjs +10 -0
- package/fesm2022/keycloakify-angular-login-tokens-classes.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-tokens-i18n.mjs +10 -0
- package/fesm2022/keycloakify-angular-login-tokens-i18n.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-tokens-kc-context.mjs +10 -0
- package/fesm2022/keycloakify-angular-login-tokens-kc-context.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-tokens-make-user-confirm-password.mjs +10 -0
- package/fesm2022/keycloakify-angular-login-tokens-make-user-confirm-password.mjs.map +1 -0
- package/fesm2022/keycloakify-angular.mjs +8 -0
- package/fesm2022/keycloakify-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/directives/attributes/index.d.ts +5 -0
- package/{login/directives/index.d.ts → lib/directives/attributes/public-api.d.ts} +0 -1
- package/lib/index.d.ts +5 -0
- package/lib/models/script/index.d.ts +5 -0
- package/lib/pipes/input-type/index.d.ts +5 -0
- package/lib/pipes/input-type/public-api.d.ts +1 -0
- package/lib/pipes/is-array-with-empty-object/index.d.ts +5 -0
- package/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.d.ts +7 -0
- package/lib/pipes/is-array-with-empty-object/public-api.d.ts +1 -0
- package/lib/pipes/kc-sanitize/index.d.ts +5 -0
- package/{login/pipes → lib/pipes/kc-sanitize}/kc-sanitize.pipe.d.ts +3 -4
- package/lib/pipes/kc-sanitize/public-api.d.ts +1 -0
- package/lib/pipes/to-array/index.d.ts +5 -0
- package/lib/pipes/to-array/public-api.d.ts +1 -0
- package/lib/pipes/to-number/index.d.ts +5 -0
- package/lib/pipes/to-number/public-api.d.ts +1 -0
- package/lib/public-api.d.ts +1 -10
- package/lib/services/resource-injector/index.d.ts +5 -0
- package/lib/services/{index.d.ts → resource-injector/public-api.d.ts} +0 -1
- package/lib/services/{resource-injector.service.d.ts → resource-injector/resource-injector.service.d.ts} +1 -1
- package/lib/tokens/use-default-css/index.d.ts +5 -0
- package/lib/tokens/use-default-css/public-api.d.ts +1 -0
- package/lib/tokens/use-default-css/use-default-css.token.d.ts +2 -0
- package/login/KcContext/index.d.ts +5 -0
- package/login/KcContext/public-api.d.ts +1 -0
- package/login/classes/{component-reference.class.d.ts → component-reference/component-reference.class.d.ts} +1 -1
- package/login/classes/component-reference/index.d.ts +5 -0
- package/login/classes/component-reference/public-api.d.ts +1 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +4 -2
- package/login/components/add-remove-buttons-multi-valued-attribute/index.d.ts +5 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/public-api.d.ts +1 -0
- package/login/components/field-errors/field-errors.component.d.ts +4 -4
- package/login/components/field-errors/index.d.ts +5 -0
- package/login/components/field-errors/public-api.d.ts +1 -0
- package/login/components/group-label/group-label.component.d.ts +5 -3
- package/login/components/group-label/index.d.ts +5 -0
- package/login/components/group-label/public-api.d.ts +1 -0
- package/login/components/input-field-by-type/index.d.ts +5 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +4 -4
- package/login/components/input-field-by-type/public-api.d.ts +1 -0
- package/login/components/input-tag/index.d.ts +5 -0
- package/login/components/input-tag/input-tag.component.d.ts +6 -4
- package/login/components/input-tag/public-api.d.ts +1 -0
- package/login/components/input-tag-selects/index.d.ts +5 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +6 -4
- package/login/components/input-tag-selects/public-api.d.ts +1 -0
- package/login/components/logout-other-sessions/index.d.ts +5 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +4 -2
- package/login/components/logout-other-sessions/public-api.d.ts +1 -0
- package/login/components/password-wrapper/index.d.ts +5 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +4 -2
- package/login/components/password-wrapper/public-api.d.ts +1 -0
- package/login/components/select-tag/index.d.ts +5 -0
- package/login/components/select-tag/public-api.d.ts +1 -0
- package/login/components/select-tag/select-tag.component.d.ts +6 -4
- package/login/components/textarea-tag/index.d.ts +5 -0
- package/login/components/textarea-tag/public-api.d.ts +1 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +4 -4
- package/login/components/user-profile-form-fields/index.d.ts +5 -0
- package/login/components/user-profile-form-fields/public-api.d.ts +1 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +8 -5
- package/login/containers/template/index.d.ts +5 -0
- package/login/containers/template/public-api.d.ts +1 -0
- package/login/containers/template/template.component.d.ts +47 -0
- package/login/directives/kc-class/index.d.ts +5 -0
- package/login/directives/kc-class/kc-class.directive.d.ts +26 -0
- package/login/directives/kc-class/public-api.d.ts +1 -0
- package/login/getDefaultPageComponent/getDefaultPageComponent.d.ts +3 -0
- package/login/getDefaultPageComponent/index.d.ts +5 -0
- package/login/getDefaultPageComponent/public-api.d.ts +1 -0
- package/login/{i18n.d.ts → i18n/i18n.d.ts} +1 -1
- package/login/i18n/index.d.ts +5 -0
- package/login/i18n/public-api.d.ts +1 -0
- package/login/pages/code/code.component.d.ts +15 -4
- package/login/pages/code/index.d.ts +5 -0
- package/login/pages/code/public-api.d.ts +1 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +15 -4
- package/login/pages/delete-account-confirm/index.d.ts +5 -0
- package/login/pages/delete-account-confirm/public-api.d.ts +1 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +13 -7
- package/login/pages/delete-credential/index.d.ts +5 -0
- package/login/pages/delete-credential/public-api.d.ts +1 -0
- package/login/pages/error/error.component.d.ts +15 -4
- package/login/pages/error/index.d.ts +5 -0
- package/login/pages/error/public-api.d.ts +1 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +13 -7
- package/login/pages/frontchannel-logout/index.d.ts +5 -0
- package/login/pages/frontchannel-logout/public-api.d.ts +1 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +18 -8
- package/login/pages/idp-review-user-profile/index.d.ts +5 -0
- package/login/pages/idp-review-user-profile/public-api.d.ts +1 -0
- package/login/pages/info/index.d.ts +5 -0
- package/login/pages/info/info.component.d.ts +13 -13
- package/login/pages/info/public-api.d.ts +1 -0
- package/login/pages/login/index.d.ts +5 -0
- package/login/pages/login/login.component.d.ts +14 -8
- package/login/pages/login/public-api.d.ts +1 -0
- package/login/pages/login-config-totp/index.d.ts +5 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +13 -7
- package/login/pages/login-config-totp/public-api.d.ts +1 -0
- package/login/pages/login-idp-link-confirm/index.d.ts +5 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +12 -9
- package/login/pages/login-idp-link-confirm/public-api.d.ts +1 -0
- package/login/pages/login-idp-link-confirm-override/index.d.ts +5 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +12 -9
- package/login/pages/login-idp-link-confirm-override/public-api.d.ts +1 -0
- package/login/pages/login-idp-link-email/index.d.ts +5 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +12 -9
- package/login/pages/login-idp-link-email/public-api.d.ts +1 -0
- package/login/pages/login-oauth-grant/index.d.ts +5 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +12 -9
- package/login/pages/login-oauth-grant/public-api.d.ts +1 -0
- package/login/pages/login-oauth2-device-verify-user-code/index.d.ts +5 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +13 -7
- package/login/pages/login-oauth2-device-verify-user-code/public-api.d.ts +1 -0
- package/login/pages/login-otp/index.d.ts +5 -0
- package/login/pages/login-otp/login-otp.component.d.ts +13 -7
- package/login/pages/login-otp/public-api.d.ts +1 -0
- package/login/pages/login-page-expired/index.d.ts +5 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +13 -7
- package/login/pages/login-page-expired/public-api.d.ts +1 -0
- package/login/pages/login-passkeys-conditional-authenticate/index.d.ts +5 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +15 -7
- package/login/pages/login-passkeys-conditional-authenticate/public-api.d.ts +1 -0
- package/login/pages/login-password/index.d.ts +5 -0
- package/login/pages/login-password/login-password.component.d.ts +14 -7
- package/login/pages/login-password/public-api.d.ts +1 -0
- package/login/pages/login-recovery-authn-code-config/index.d.ts +5 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +13 -7
- package/login/pages/login-recovery-authn-code-config/public-api.d.ts +1 -0
- package/login/pages/login-recovery-authn-code-input/index.d.ts +5 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +13 -7
- package/login/pages/login-recovery-authn-code-input/public-api.d.ts +1 -0
- package/login/pages/login-reset-otp/index.d.ts +5 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +13 -7
- package/login/pages/login-reset-otp/public-api.d.ts +1 -0
- package/login/pages/login-reset-password/index.d.ts +5 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +13 -7
- package/login/pages/login-reset-password/public-api.d.ts +1 -0
- package/login/pages/login-update-password/index.d.ts +5 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +13 -7
- package/login/pages/login-update-password/public-api.d.ts +1 -0
- package/login/pages/login-update-profile/index.d.ts +5 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +17 -7
- package/login/pages/login-update-profile/public-api.d.ts +1 -0
- package/login/pages/login-username/index.d.ts +5 -0
- package/login/pages/login-username/login-username.component.d.ts +14 -8
- package/login/pages/login-username/public-api.d.ts +1 -0
- package/login/pages/login-verify-email/index.d.ts +5 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +13 -7
- package/login/pages/login-verify-email/public-api.d.ts +1 -0
- package/login/pages/login-x509-info/index.d.ts +5 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +13 -7
- package/login/pages/login-x509-info/public-api.d.ts +1 -0
- package/login/pages/logout-confirm/index.d.ts +5 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +12 -9
- package/login/pages/logout-confirm/public-api.d.ts +1 -0
- package/login/pages/register/index.d.ts +5 -0
- package/login/pages/register/public-api.d.ts +1 -0
- package/login/pages/register/register.component.d.ts +19 -9
- package/login/pages/saml-post-form/index.d.ts +5 -0
- package/login/pages/saml-post-form/public-api.d.ts +1 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +14 -9
- package/login/pages/select-authenticator/index.d.ts +5 -0
- package/login/pages/select-authenticator/public-api.d.ts +1 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +13 -7
- package/login/pages/terms/index.d.ts +5 -0
- package/login/pages/terms/public-api.d.ts +1 -0
- package/login/pages/terms/terms.component.d.ts +13 -7
- package/login/pages/update-email/index.d.ts +5 -0
- package/login/pages/update-email/public-api.d.ts +1 -0
- package/login/pages/update-email/update-email.component.d.ts +16 -9
- package/login/pages/webauthn-authenticate/index.d.ts +5 -0
- package/login/pages/webauthn-authenticate/public-api.d.ts +1 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +14 -10
- package/login/pages/webauthn-error/index.d.ts +5 -0
- package/login/pages/webauthn-error/public-api.d.ts +1 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +13 -7
- package/login/pages/webauthn-register/index.d.ts +5 -0
- package/login/pages/webauthn-register/public-api.d.ts +1 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +14 -10
- package/login/providers/keycloakify-angular/index.d.ts +5 -0
- package/login/providers/keycloakify-angular/keycloakify-angular.providers.d.ts +16 -0
- package/login/providers/keycloakify-angular/public-api.d.ts +1 -0
- package/login/services/i18n/i18n.service.d.ts +6 -0
- package/login/services/i18n/index.d.ts +5 -0
- package/login/services/i18n/public-api.d.ts +1 -0
- package/login/services/login-resource-injector/index.d.ts +5 -0
- package/login/services/{login-resource-injector.service.d.ts → login-resource-injector/login-resource-injector.service.d.ts} +1 -1
- package/login/services/{index.d.ts → login-resource-injector/public-api.d.ts} +0 -1
- package/login/services/submit/index.d.ts +5 -0
- package/login/services/submit/public-api.d.ts +1 -0
- package/login/services/submit/submit.service.d.ts +9 -0
- package/login/services/user-profile-form/index.d.ts +5 -0
- package/login/services/user-profile-form/public-api.d.ts +1 -0
- package/login/services/{user-profile-form.service.d.ts → user-profile-form/user-profile-form.service.d.ts} +2 -1
- package/{lib/providers/keycloakify-angular.providers.d.ts → login/tokens/classes/classes.token.d.ts} +1 -24
- package/login/tokens/classes/index.d.ts +5 -0
- package/login/tokens/classes/public-api.d.ts +1 -0
- package/login/tokens/i18n/i18n.token.d.ts +2 -0
- package/login/tokens/i18n/index.d.ts +5 -0
- package/login/tokens/i18n/public-api.d.ts +1 -0
- package/login/tokens/kc-context/index.d.ts +5 -0
- package/login/tokens/kc-context/kc-context.token.d.ts +3 -0
- package/login/tokens/kc-context/public-api.d.ts +1 -0
- package/login/tokens/make-user-confirm-password/index.d.ts +5 -0
- package/login/tokens/make-user-confirm-password/make-user-confirm-password.token.d.ts +2 -0
- package/login/tokens/make-user-confirm-password/public-api.d.ts +1 -0
- package/package.json +591 -338
- package/public-api.d.ts +1 -0
- package/src/account/DefaultPage.ts +61 -0
- package/src/account/KcContext.ts +1 -0
- package/src/account/classes/component-reference/component-reference.class.ts +6 -0
- package/src/account/containers/template/template.component.html +130 -0
- package/src/account/containers/template/template.component.ts +118 -0
- package/src/account/directives/kc-class/kc-class.directive.ts +170 -0
- package/src/account/i18n.ts +4 -0
- package/src/account/pages/account/account.component.html +161 -0
- package/src/account/pages/account/account.component.ts +35 -0
- package/src/account/pages/applications/applications.component.html +148 -0
- package/src/account/pages/applications/applications.component.ts +33 -0
- package/src/account/pages/federatedIdentity/federatedIdentity.component.html +93 -0
- package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +32 -0
- package/src/account/pages/log/log.component.html +40 -0
- package/src/account/pages/log/log.component.ts +32 -0
- package/src/account/pages/password/password.component.html +127 -0
- package/src/account/pages/password/password.component.ts +113 -0
- package/src/account/pages/sessions/sessions.component.html +59 -0
- package/src/account/pages/sessions/sessions.component.ts +32 -0
- package/src/account/pages/totp/totp.component.html +254 -0
- package/src/account/pages/totp/totp.component.ts +33 -0
- package/src/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +65 -0
- package/src/account/services/account-resource-injector/account-resource-injector.service.ts +41 -0
- package/src/account/services/i18n/i18n.service.ts +7 -0
- package/src/account/tokens/classes/classes.token.ts +6 -0
- package/src/account/tokens/i18n/i18n.token.ts +3 -0
- package/src/account/tokens/kc-context/kc-context.token.ts +6 -0
- package/src/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.ts +16 -0
- package/src/{login/pipes → lib/pipes/kc-sanitize}/kc-sanitize.pipe.ts +9 -11
- package/src/lib/services/{resource-injector.service.ts → resource-injector/resource-injector.service.ts} +1 -1
- package/src/lib/tokens/use-default-css/use-default-css.token.ts +3 -0
- package/src/login/classes/{component-reference.class.ts → component-reference/component-reference.class.ts} +1 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +19 -19
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +8 -16
- package/src/login/components/field-errors/field-errors.component.html +10 -10
- package/src/login/components/field-errors/field-errors.component.ts +9 -14
- package/src/login/components/group-label/group-label.component.html +25 -25
- package/src/login/components/group-label/group-label.component.ts +13 -17
- package/src/login/components/input-field-by-type/input-field-by-type.component.html +57 -57
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +15 -32
- package/src/login/components/input-tag/input-tag.component.html +41 -45
- package/src/login/components/input-tag/input-tag.component.ts +19 -28
- package/src/login/components/input-tag-selects/input-tag-selects.component.html +22 -22
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +14 -25
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +15 -15
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +10 -7
- package/src/login/components/password-wrapper/password-wrapper.component.html +13 -13
- package/src/login/components/password-wrapper/password-wrapper.component.ts +12 -22
- package/src/login/components/select-tag/select-tag.component.html +26 -26
- package/src/login/components/select-tag/select-tag.component.ts +16 -28
- package/src/login/components/textarea-tag/textarea-tag.component.html +13 -15
- package/src/login/components/textarea-tag/textarea-tag.component.ts +10 -19
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +66 -73
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +28 -42
- package/src/login/containers/template/template.component.html +217 -0
- package/src/login/containers/template/template.component.ts +166 -0
- package/src/login/directives/{kc-class.directive.ts → kc-class/kc-class.directive.ts} +2 -3
- package/src/login/getDefaultPageComponent.ts +153 -0
- package/src/login/i18n.ts +1 -1
- package/src/login/pages/code/code.component.html +13 -17
- package/src/login/pages/code/code.component.ts +28 -16
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +35 -37
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +28 -17
- package/src/login/pages/delete-credential/delete-credential.component.html +23 -25
- package/src/login/pages/delete-credential/delete-credential.component.ts +28 -28
- package/src/login/pages/error/error.component.html +18 -20
- package/src/login/pages/error/error.component.ts +28 -16
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +20 -29
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +28 -28
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +24 -33
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +42 -35
- package/src/login/pages/info/info.component.html +31 -40
- package/src/login/pages/info/info.component.ts +29 -39
- package/src/login/pages/login/login.component.html +177 -187
- package/src/login/pages/login/login.component.ts +32 -45
- package/src/login/pages/login-config-totp/login-config-totp.component.html +157 -156
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +29 -42
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +22 -32
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +23 -29
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +20 -30
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +23 -31
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +24 -32
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +23 -29
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +66 -73
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +23 -30
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +40 -49
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +27 -30
- package/src/login/pages/login-otp/login-otp.component.html +79 -88
- package/src/login/pages/login-otp/login-otp.component.ts +28 -27
- package/src/login/pages/login-page-expired/login-page-expired.component.html +24 -31
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +26 -27
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +175 -180
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +31 -28
- package/src/login/pages/login-password/login-password.component.html +76 -83
- package/src/login/pages/login-password/login-password.component.ts +30 -35
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +97 -106
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +30 -37
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +57 -65
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +29 -32
- package/src/login/pages/login-reset-otp/login-reset-otp.component.html +53 -58
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +27 -26
- package/src/login/pages/login-reset-password/login-reset-password.component.html +65 -74
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +28 -28
- package/src/login/pages/login-update-password/login-update-password.component.html +88 -98
- package/src/login/pages/login-update-password/login-update-password.component.ts +30 -40
- package/src/login/pages/login-update-profile/login-update-profile.component.html +40 -50
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +40 -34
- package/src/login/pages/login-username/login-username.component.html +131 -141
- package/src/login/pages/login-username/login-username.component.ts +29 -39
- package/src/login/pages/login-verify-email/login-verify-email.component.html +15 -23
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +27 -28
- package/src/login/pages/login-x509-info/login-x509-info.component.html +76 -85
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +27 -27
- package/src/login/pages/logout-confirm/logout-confirm.component.html +35 -45
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +23 -28
- package/src/login/pages/register/register.component.html +89 -99
- package/src/login/pages/register/register.component.ts +42 -41
- package/src/login/pages/saml-post-form/saml-post-form.component.html +31 -41
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +30 -32
- package/src/login/pages/select-authenticator/select-authenticator.component.html +36 -45
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +28 -35
- package/src/login/pages/terms/terms.component.html +19 -28
- package/src/login/pages/terms/terms.component.ts +28 -27
- package/src/login/pages/update-email/update-email.component.html +40 -49
- package/src/login/pages/update-email/update-email.component.ts +38 -37
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +116 -129
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +33 -50
- package/src/login/pages/webauthn-error/webauthn-error.component.html +34 -44
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +29 -33
- package/src/login/pages/webauthn-register/webauthn-register.component.html +49 -59
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +34 -41
- package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +69 -0
- package/src/login/services/i18n/i18n.service.ts +7 -0
- package/src/login/services/{login-resource-injector.service.ts → login-resource-injector/login-resource-injector.service.ts} +5 -4
- package/src/login/services/submit/submit.service.ts +12 -0
- package/src/login/services/{user-profile-form.service.ts → user-profile-form/user-profile-form.service.ts} +11 -13
- package/src/login/tokens/classes/classes.token.ts +6 -0
- package/src/login/tokens/i18n/i18n.token.ts +3 -0
- package/src/login/tokens/kc-context/kc-context.token.ts +4 -0
- package/src/login/tokens/make-user-confirm-password/make-user-confirm-password.token.ts +5 -0
- package/lib/i18n.d.ts +0 -4
- package/lib/i18n.mjs +0 -6
- package/lib/models/index.mjs +0 -2
- package/lib/models/script.model.mjs +0 -2
- package/lib/providers/keycloakify-angular.providers.mjs +0 -54
- package/lib/public-api.mjs +0 -4
- package/lib/services/i18n.service.d.ts +0 -6
- package/lib/services/i18n.service.mjs +0 -11
- package/lib/services/index.mjs +0 -3
- package/lib/services/resource-injector.service.mjs +0 -54
- package/login/DefaultPage.d.ts +0 -260
- package/login/DefaultPage.mjs +0 -121
- package/login/KcContext.mjs +0 -2
- package/login/classes/component-reference.class.mjs +0 -3
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +0 -105
- package/login/components/field-errors/field-errors.component.mjs +0 -32
- package/login/components/group-label/group-label.component.mjs +0 -41
- package/login/components/hello-world/hello-world.component.d.ts +0 -5
- package/login/components/hello-world/hello-world.component.mjs +0 -11
- package/login/components/index.d.ts +0 -11
- package/login/components/index.mjs +0 -12
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +0 -52
- package/login/components/input-tag/input-tag.component.mjs +0 -89
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +0 -115
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +0 -30
- package/login/components/password-wrapper/password-wrapper.component.mjs +0 -44
- package/login/components/select-tag/select-tag.component.mjs +0 -80
- package/login/components/textarea-tag/textarea-tag.component.mjs +0 -48
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +0 -62
- package/login/containers/template.component.d.ts +0 -31
- package/login/containers/template.component.mjs +0 -71
- package/login/directives/attributes.directive.mjs +0 -26
- package/login/directives/index.mjs +0 -3
- package/login/directives/kc-class.directive.mjs +0 -138
- package/login/i18n.mjs +0 -2
- package/login/pages/code/code.component.mjs +0 -32
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +0 -32
- package/login/pages/delete-credential/delete-credential.component.mjs +0 -37
- package/login/pages/error/error.component.mjs +0 -32
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +0 -47
- package/login/pages/info/info.component.mjs +0 -58
- package/login/pages/login/login.component.mjs +0 -51
- package/login/pages/login-config-totp/login-config-totp.component.mjs +0 -47
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +0 -37
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +0 -37
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +0 -38
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +0 -37
- package/login/pages/login-otp/login-otp.component.mjs +0 -38
- package/login/pages/login-page-expired/login-page-expired.component.mjs +0 -36
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +0 -85
- package/login/pages/login-password/login-password.component.mjs +0 -46
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +0 -45
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +0 -38
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +0 -37
- package/login/pages/login-reset-password/login-reset-password.component.mjs +0 -38
- package/login/pages/login-update-password/login-update-password.component.mjs +0 -47
- package/login/pages/login-update-profile/login-update-profile.component.mjs +0 -44
- package/login/pages/login-username/login-username.component.mjs +0 -49
- package/login/pages/login-verify-email/login-verify-email.component.mjs +0 -37
- package/login/pages/login-x509-info/login-x509-info.component.mjs +0 -37
- package/login/pages/logout-confirm/logout-confirm.component.mjs +0 -37
- package/login/pages/register/register.component.mjs +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.mjs +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.mjs +0 -45
- package/login/pages/terms/terms.component.mjs +0 -37
- package/login/pages/update-email/update-email.component.mjs +0 -46
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +0 -87
- package/login/pages/webauthn-error/webauthn-error.component.mjs +0 -51
- package/login/pages/webauthn-register/webauthn-register.component.mjs +0 -81
- package/login/pipes/advanced-msg-str.pipe.d.ts +0 -8
- package/login/pipes/advanced-msg-str.pipe.mjs +0 -19
- package/login/pipes/index.d.ts +0 -6
- package/login/pipes/index.mjs +0 -7
- package/login/pipes/input-type.pipe.mjs +0 -20
- package/login/pipes/kc-sanitize.pipe.mjs +0 -34
- package/login/pipes/msg-str.pipe.d.ts +0 -9
- package/login/pipes/msg-str.pipe.mjs +0 -19
- package/login/pipes/to-array.pipe.mjs +0 -21
- package/login/pipes/to-number.pipe.mjs +0 -20
- package/login/services/index.mjs +0 -3
- package/login/services/login-resource-injector.service.mjs +0 -68
- package/login/services/user-profile-form.service.mjs +0 -1017
- package/src/lib/i18n.ts +0 -9
- package/src/lib/models/index.ts +0 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +0 -92
- package/src/lib/public-api.ts +0 -12
- package/src/lib/services/i18n.service.ts +0 -5
- package/src/lib/services/index.ts +0 -2
- package/src/login/DefaultPage.ts +0 -208
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +0 -1
- package/src/login/components/hello-world/hello-world.component.ts +0 -10
- package/src/login/components/index.ts +0 -11
- package/src/login/containers/template.component.html +0 -203
- package/src/login/containers/template.component.ts +0 -94
- package/src/login/directives/index.ts +0 -2
- package/src/login/pipes/advanced-msg-str.pipe.ts +0 -13
- package/src/login/pipes/index.ts +0 -6
- package/src/login/pipes/msg-str.pipe.ts +0 -14
- package/src/login/services/index.ts +0 -2
- package/src/tsconfig.json +0 -18
- /package/{login/directives → lib/directives/attributes}/attributes.directive.d.ts +0 -0
- /package/lib/models/{index.d.ts → script/public-api.d.ts} +0 -0
- /package/lib/models/{script.model.d.ts → script/script.model.d.ts} +0 -0
- /package/{login/pipes → lib/pipes/input-type}/input-type.pipe.d.ts +0 -0
- /package/{login/pipes → lib/pipes/to-array}/to-array.pipe.d.ts +0 -0
- /package/{login/pipes → lib/pipes/to-number}/to-number.pipe.d.ts +0 -0
- /package/login/{KcContext.d.ts → KcContext/KcContext.d.ts} +0 -0
- /package/src/{login/directives → lib/directives/attributes}/attributes.directive.ts +0 -0
- /package/src/lib/models/{script.model.ts → script/script.model.ts} +0 -0
- /package/src/{login/pipes → lib/pipes/input-type}/input-type.pipe.ts +0 -0
- /package/src/{login/pipes → lib/pipes/to-array}/to-array.pipe.ts +0 -0
- /package/src/{login/pipes → lib/pipes/to-number}/to-number.pipe.ts +0 -0
|
@@ -0,0 +1,1026 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, signal, computed, Injectable } from '@angular/core';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';
|
|
5
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
6
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
7
|
+
import { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';
|
|
8
|
+
import { emailRegexp } from 'keycloakify/tools/emailRegExp';
|
|
9
|
+
import { formatNumber } from 'keycloakify/tools/formatNumber';
|
|
10
|
+
import { structuredCloneButFunctions } from 'keycloakify/tools/structuredCloneButFunctions';
|
|
11
|
+
import { id, assert } from 'tsafe';
|
|
12
|
+
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
|
+
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
15
|
+
class UserProfileFormService {
|
|
16
|
+
constructor() {
|
|
17
|
+
this.kcContext = inject(KC_LOGIN_CONTEXT);
|
|
18
|
+
this.i18n = inject(LOGIN_I18N);
|
|
19
|
+
this.doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);
|
|
20
|
+
this.loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
21
|
+
this.sanitizer = inject(DomSanitizer);
|
|
22
|
+
this.initialState = (() => {
|
|
23
|
+
const attributes = (() => {
|
|
24
|
+
mock_user_profile_attributes_for_older_keycloak_versions: {
|
|
25
|
+
if ('profile' in this.kcContext &&
|
|
26
|
+
'attributesByName' in this.kcContext.profile &&
|
|
27
|
+
Object.keys(this.kcContext.profile.attributesByName).length !== 0) {
|
|
28
|
+
break mock_user_profile_attributes_for_older_keycloak_versions;
|
|
29
|
+
}
|
|
30
|
+
if ('register' in this.kcContext &&
|
|
31
|
+
this.kcContext.register instanceof Object &&
|
|
32
|
+
'formData' in this.kcContext.register) {
|
|
33
|
+
//NOTE: Handle legacy register.ftl page
|
|
34
|
+
return ['firstName', 'lastName', 'email', 'username']
|
|
35
|
+
.filter(name => name !== 'username'
|
|
36
|
+
? true
|
|
37
|
+
: !this.kcContext.realm.registrationEmailAsUsername)
|
|
38
|
+
.map(name => id({
|
|
39
|
+
name: name,
|
|
40
|
+
displayName: id(`\${${name}}`),
|
|
41
|
+
required: true,
|
|
42
|
+
value: this.kcContext.register.formData[name] ?? '',
|
|
43
|
+
html5DataAnnotations: {},
|
|
44
|
+
readOnly: false,
|
|
45
|
+
validators: {},
|
|
46
|
+
annotations: {},
|
|
47
|
+
autocomplete: (() => {
|
|
48
|
+
switch (name) {
|
|
49
|
+
case 'email':
|
|
50
|
+
return 'email';
|
|
51
|
+
case 'username':
|
|
52
|
+
return 'username';
|
|
53
|
+
default:
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
})()
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
if ('user' in this.kcContext && this.kcContext.user instanceof Object) {
|
|
60
|
+
//NOTE: Handle legacy login-update-profile.ftl
|
|
61
|
+
return ['username', 'email', 'firstName', 'lastName']
|
|
62
|
+
.filter(name => name !== 'username'
|
|
63
|
+
? true
|
|
64
|
+
: this.kcContext.user.editUsernameAllowed)
|
|
65
|
+
.map(name => id({
|
|
66
|
+
name: name,
|
|
67
|
+
displayName: id(`\${${name}}`),
|
|
68
|
+
required: true,
|
|
69
|
+
value: this.kcContext.user[name] ?? '',
|
|
70
|
+
html5DataAnnotations: {},
|
|
71
|
+
readOnly: false,
|
|
72
|
+
validators: {},
|
|
73
|
+
annotations: {},
|
|
74
|
+
autocomplete: (() => {
|
|
75
|
+
switch (name) {
|
|
76
|
+
case 'email':
|
|
77
|
+
return 'email';
|
|
78
|
+
case 'username':
|
|
79
|
+
return 'username';
|
|
80
|
+
default:
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
})()
|
|
84
|
+
}));
|
|
85
|
+
}
|
|
86
|
+
if ('email' in this.kcContext && this.kcContext.email instanceof Object) {
|
|
87
|
+
//NOTE: Handle legacy update-email.ftl
|
|
88
|
+
return [
|
|
89
|
+
id({
|
|
90
|
+
name: 'email',
|
|
91
|
+
displayName: id(`\${email}`),
|
|
92
|
+
required: true,
|
|
93
|
+
value: this.kcContext.email.value ?? '',
|
|
94
|
+
html5DataAnnotations: {},
|
|
95
|
+
readOnly: false,
|
|
96
|
+
validators: {},
|
|
97
|
+
annotations: {},
|
|
98
|
+
autocomplete: 'email'
|
|
99
|
+
})
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
assert(false, 'Unable to mock user profile from the current kcContext');
|
|
103
|
+
}
|
|
104
|
+
return Object.values(this.kcContext.profile.attributesByName).map(structuredCloneButFunctions);
|
|
105
|
+
})();
|
|
106
|
+
// Retro-compatibility and consistency patches
|
|
107
|
+
attributes.forEach(attribute => {
|
|
108
|
+
patch_legacy_group: {
|
|
109
|
+
if (typeof attribute.group !== 'string') {
|
|
110
|
+
break patch_legacy_group;
|
|
111
|
+
}
|
|
112
|
+
const { group, groupDisplayHeader, groupDisplayDescription, groupAnnotations } = attribute;
|
|
113
|
+
delete attribute.group;
|
|
114
|
+
// @ts-expect-error
|
|
115
|
+
delete attribute.groupDisplayHeader;
|
|
116
|
+
// @ts-expect-error
|
|
117
|
+
delete attribute.groupDisplayDescription;
|
|
118
|
+
// @ts-expect-error
|
|
119
|
+
delete attribute.groupAnnotations;
|
|
120
|
+
if (group === '') {
|
|
121
|
+
break patch_legacy_group;
|
|
122
|
+
}
|
|
123
|
+
attribute.group = {
|
|
124
|
+
name: group,
|
|
125
|
+
displayHeader: groupDisplayHeader,
|
|
126
|
+
displayDescription: groupDisplayDescription,
|
|
127
|
+
annotations: groupAnnotations,
|
|
128
|
+
html5DataAnnotations: {}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
// Attributes with options rendered by default as select inputs
|
|
132
|
+
if (attribute.validators.options !== undefined &&
|
|
133
|
+
attribute.annotations.inputType === undefined) {
|
|
134
|
+
attribute.annotations.inputType = 'select';
|
|
135
|
+
}
|
|
136
|
+
// Consistency patch on values/value property
|
|
137
|
+
{
|
|
138
|
+
if (this.getIsMultivaluedSingleField({ attribute })) {
|
|
139
|
+
attribute.multivalued = true;
|
|
140
|
+
}
|
|
141
|
+
if (attribute.multivalued) {
|
|
142
|
+
attribute.values ??=
|
|
143
|
+
attribute.value !== undefined ? [attribute.value] : [];
|
|
144
|
+
delete attribute.value;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
attribute.value ??= attribute.values?.[0];
|
|
148
|
+
delete attribute.values;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
add_password_and_password_confirm: {
|
|
153
|
+
if (!this.kcContext.passwordRequired) {
|
|
154
|
+
break add_password_and_password_confirm;
|
|
155
|
+
}
|
|
156
|
+
attributes.forEach((attribute, i) => {
|
|
157
|
+
if (attribute.name !==
|
|
158
|
+
(this.kcContext.realm.registrationEmailAsUsername
|
|
159
|
+
? 'email'
|
|
160
|
+
: 'username')) {
|
|
161
|
+
// NOTE: We want to add password and password-confirm after the field that identifies the user.
|
|
162
|
+
// It's either email or username.
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
attributes.splice(i + 1, 0, {
|
|
166
|
+
name: 'password',
|
|
167
|
+
displayName: id('${password}'),
|
|
168
|
+
required: true,
|
|
169
|
+
readOnly: false,
|
|
170
|
+
validators: {},
|
|
171
|
+
annotations: {},
|
|
172
|
+
autocomplete: 'new-password',
|
|
173
|
+
html5DataAnnotations: {}
|
|
174
|
+
}, {
|
|
175
|
+
name: 'password-confirm',
|
|
176
|
+
displayName: id('${passwordConfirm}'),
|
|
177
|
+
required: true,
|
|
178
|
+
readOnly: false,
|
|
179
|
+
validators: {},
|
|
180
|
+
annotations: {},
|
|
181
|
+
html5DataAnnotations: {},
|
|
182
|
+
autocomplete: 'new-password'
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
const initialFormFieldState = [];
|
|
187
|
+
for (const attribute of attributes) {
|
|
188
|
+
handle_multi_valued_attribute: {
|
|
189
|
+
if (!attribute.multivalued) {
|
|
190
|
+
break handle_multi_valued_attribute;
|
|
191
|
+
}
|
|
192
|
+
const values = attribute.values?.length ? attribute.values : [''];
|
|
193
|
+
apply_validator_min_range: {
|
|
194
|
+
if (this.getIsMultivaluedSingleField({ attribute })) {
|
|
195
|
+
break apply_validator_min_range;
|
|
196
|
+
}
|
|
197
|
+
const validator = attribute.validators.multivalued;
|
|
198
|
+
if (validator === undefined) {
|
|
199
|
+
break apply_validator_min_range;
|
|
200
|
+
}
|
|
201
|
+
const { min: minStr } = validator;
|
|
202
|
+
if (!minStr) {
|
|
203
|
+
break apply_validator_min_range;
|
|
204
|
+
}
|
|
205
|
+
const min = parseInt(`${minStr}`);
|
|
206
|
+
for (let index = values.length; index < min; index++) {
|
|
207
|
+
values.push('');
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
initialFormFieldState.push({
|
|
211
|
+
attribute,
|
|
212
|
+
valueOrValues: values
|
|
213
|
+
});
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
initialFormFieldState.push({
|
|
217
|
+
attribute,
|
|
218
|
+
valueOrValues: attribute.value ?? ''
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
const initialState = {
|
|
222
|
+
formFieldStates: initialFormFieldState.map(({ attribute, valueOrValues }) => ({
|
|
223
|
+
attribute,
|
|
224
|
+
errors: this.getErrors({
|
|
225
|
+
attributeName: attribute.name,
|
|
226
|
+
formFieldStates: initialFormFieldState
|
|
227
|
+
}),
|
|
228
|
+
hasLostFocusAtLeastOnce: valueOrValues instanceof Array &&
|
|
229
|
+
!this.getIsMultivaluedSingleField({ attribute })
|
|
230
|
+
? valueOrValues.map(() => false)
|
|
231
|
+
: false,
|
|
232
|
+
valueOrValues: valueOrValues
|
|
233
|
+
}))
|
|
234
|
+
};
|
|
235
|
+
return initialState;
|
|
236
|
+
})();
|
|
237
|
+
this.state = signal(this.initialState);
|
|
238
|
+
this.formState = computed(() => {
|
|
239
|
+
const state = this.state();
|
|
240
|
+
return {
|
|
241
|
+
formFieldStates: state.formFieldStates.map(({ errors, hasLostFocusAtLeastOnce: hasLostFocusAtLeastOnceOrArr, attribute, ...valueOrValuesWrap }) => ({
|
|
242
|
+
displayableErrors: errors.filter(error => {
|
|
243
|
+
const hasLostFocusAtLeastOnce = typeof hasLostFocusAtLeastOnceOrArr === 'boolean'
|
|
244
|
+
? hasLostFocusAtLeastOnceOrArr
|
|
245
|
+
: error.fieldIndex !== undefined
|
|
246
|
+
? hasLostFocusAtLeastOnceOrArr[error.fieldIndex]
|
|
247
|
+
: hasLostFocusAtLeastOnceOrArr[hasLostFocusAtLeastOnceOrArr.length - 1];
|
|
248
|
+
let value = false;
|
|
249
|
+
switch (error.source.type) {
|
|
250
|
+
case 'server':
|
|
251
|
+
value = true;
|
|
252
|
+
break;
|
|
253
|
+
case 'other':
|
|
254
|
+
switch (error.source.rule) {
|
|
255
|
+
case 'requiredField':
|
|
256
|
+
value = hasLostFocusAtLeastOnce;
|
|
257
|
+
break;
|
|
258
|
+
case 'passwordConfirmMatchesPassword':
|
|
259
|
+
value = hasLostFocusAtLeastOnce;
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
// assert<Equals<typeof error.source.rule, never>>(false);
|
|
263
|
+
break;
|
|
264
|
+
case 'passwordPolicy':
|
|
265
|
+
switch (error.source.name) {
|
|
266
|
+
case 'length':
|
|
267
|
+
value = hasLostFocusAtLeastOnce;
|
|
268
|
+
break;
|
|
269
|
+
case 'digits':
|
|
270
|
+
value = hasLostFocusAtLeastOnce;
|
|
271
|
+
break;
|
|
272
|
+
case 'lowerCase':
|
|
273
|
+
value = hasLostFocusAtLeastOnce;
|
|
274
|
+
break;
|
|
275
|
+
case 'upperCase':
|
|
276
|
+
value = hasLostFocusAtLeastOnce;
|
|
277
|
+
break;
|
|
278
|
+
case 'specialChars':
|
|
279
|
+
value = hasLostFocusAtLeastOnce;
|
|
280
|
+
break;
|
|
281
|
+
case 'notUsername':
|
|
282
|
+
value = true;
|
|
283
|
+
break;
|
|
284
|
+
case 'notEmail':
|
|
285
|
+
value = true;
|
|
286
|
+
break;
|
|
287
|
+
}
|
|
288
|
+
// assert<Equals<typeof error.source, never>>(false);
|
|
289
|
+
break;
|
|
290
|
+
case 'validator':
|
|
291
|
+
switch (error.source.name) {
|
|
292
|
+
case 'length':
|
|
293
|
+
value = hasLostFocusAtLeastOnce;
|
|
294
|
+
break;
|
|
295
|
+
case 'pattern':
|
|
296
|
+
value = hasLostFocusAtLeastOnce;
|
|
297
|
+
break;
|
|
298
|
+
case 'email':
|
|
299
|
+
value = hasLostFocusAtLeastOnce;
|
|
300
|
+
break;
|
|
301
|
+
case 'integer':
|
|
302
|
+
value = hasLostFocusAtLeastOnce;
|
|
303
|
+
break;
|
|
304
|
+
case 'multivalued':
|
|
305
|
+
value = hasLostFocusAtLeastOnce;
|
|
306
|
+
break;
|
|
307
|
+
case 'options':
|
|
308
|
+
value = hasLostFocusAtLeastOnce;
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
// assert<Equals<typeof error.source, never>>(false);
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
return value;
|
|
315
|
+
}),
|
|
316
|
+
attribute,
|
|
317
|
+
...valueOrValuesWrap
|
|
318
|
+
})),
|
|
319
|
+
isFormSubmittable: state.formFieldStates.every(({ errors }) => errors.length === 0)
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
this.loginResourceInjectorService.insertAdditionalScripts(Object.keys(this.kcContext.profile?.html5DataAnnotations ?? {})
|
|
323
|
+
.filter(key => key !== 'kcMultivalued' && key !== 'kcNumberFormat') // NOTE: Keycloakify handles it.
|
|
324
|
+
.map(key => ({
|
|
325
|
+
type: 'module',
|
|
326
|
+
src: `${this.kcContext.url.resourcesPath}/js/${key}.js`,
|
|
327
|
+
id: `${this.kcContext.url.resourcesPath}/js/${key}.js`
|
|
328
|
+
})));
|
|
329
|
+
}
|
|
330
|
+
dispatchFormAction(formAction) {
|
|
331
|
+
if (!formAction)
|
|
332
|
+
return;
|
|
333
|
+
const state = this.state();
|
|
334
|
+
const formFieldState = state.formFieldStates.find(({ attribute }) => attribute.name === formAction.name);
|
|
335
|
+
assert(formFieldState !== undefined);
|
|
336
|
+
switch (formAction.action) {
|
|
337
|
+
case 'update':
|
|
338
|
+
formFieldState.valueOrValues = formAction.valueOrValues;
|
|
339
|
+
apply_formatters: {
|
|
340
|
+
const { attribute } = formFieldState;
|
|
341
|
+
const { kcNumberFormat } = attribute.html5DataAnnotations ?? {};
|
|
342
|
+
if (!kcNumberFormat) {
|
|
343
|
+
break apply_formatters;
|
|
344
|
+
}
|
|
345
|
+
if (formFieldState.valueOrValues instanceof Array) {
|
|
346
|
+
formFieldState.valueOrValues = formFieldState.valueOrValues.map(value => formatNumber(value, kcNumberFormat));
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
formFieldState.valueOrValues = formatNumber(formFieldState.valueOrValues, kcNumberFormat);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
formFieldState.errors = this.getErrors({
|
|
353
|
+
attributeName: formAction.name,
|
|
354
|
+
formFieldStates: state.formFieldStates
|
|
355
|
+
});
|
|
356
|
+
simulate_focus_lost: {
|
|
357
|
+
const { displayErrorsImmediately = false } = formAction;
|
|
358
|
+
if (!displayErrorsImmediately) {
|
|
359
|
+
break simulate_focus_lost;
|
|
360
|
+
}
|
|
361
|
+
for (const fieldIndex of formAction.valueOrValues instanceof Array
|
|
362
|
+
? formAction.valueOrValues.map((...[, index]) => index)
|
|
363
|
+
: [undefined]) {
|
|
364
|
+
this.dispatchFormAction({
|
|
365
|
+
action: 'focus lost',
|
|
366
|
+
name: formAction.name,
|
|
367
|
+
fieldIndex
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
update_password_confirm: {
|
|
372
|
+
if (this.doMakeUserConfirmPassword) {
|
|
373
|
+
break update_password_confirm;
|
|
374
|
+
}
|
|
375
|
+
if (formAction.name !== 'password') {
|
|
376
|
+
break update_password_confirm;
|
|
377
|
+
}
|
|
378
|
+
this.dispatchFormAction({
|
|
379
|
+
action: 'update',
|
|
380
|
+
name: 'password-confirm',
|
|
381
|
+
valueOrValues: formAction.valueOrValues,
|
|
382
|
+
displayErrorsImmediately: formAction.displayErrorsImmediately
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
trigger_password_confirm_validation_on_password_change: {
|
|
386
|
+
if (!this.doMakeUserConfirmPassword) {
|
|
387
|
+
break trigger_password_confirm_validation_on_password_change;
|
|
388
|
+
}
|
|
389
|
+
if (formAction.name !== 'password') {
|
|
390
|
+
break trigger_password_confirm_validation_on_password_change;
|
|
391
|
+
}
|
|
392
|
+
this.dispatchFormAction({
|
|
393
|
+
action: 'update',
|
|
394
|
+
name: 'password-confirm',
|
|
395
|
+
valueOrValues: (() => {
|
|
396
|
+
const formFieldState = state.formFieldStates.find(({ attribute }) => attribute.name === 'password-confirm');
|
|
397
|
+
assert(formFieldState !== undefined);
|
|
398
|
+
return formFieldState.valueOrValues;
|
|
399
|
+
})(),
|
|
400
|
+
displayErrorsImmediately: formAction.displayErrorsImmediately
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
break;
|
|
404
|
+
case 'focus lost':
|
|
405
|
+
if (formFieldState.hasLostFocusAtLeastOnce instanceof Array) {
|
|
406
|
+
const { fieldIndex } = formAction;
|
|
407
|
+
assert(fieldIndex !== undefined);
|
|
408
|
+
formFieldState.hasLostFocusAtLeastOnce[fieldIndex] = true;
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
formFieldState.hasLostFocusAtLeastOnce = true;
|
|
412
|
+
break;
|
|
413
|
+
}
|
|
414
|
+
this.state.update(state => ({
|
|
415
|
+
...state,
|
|
416
|
+
formFieldStates: state.formFieldStates.map(f => {
|
|
417
|
+
if (f.attribute === formFieldState.attribute)
|
|
418
|
+
return formFieldState;
|
|
419
|
+
return f;
|
|
420
|
+
})
|
|
421
|
+
}));
|
|
422
|
+
}
|
|
423
|
+
getIsMultivaluedSingleField(params) {
|
|
424
|
+
const { attribute } = params;
|
|
425
|
+
return attribute.annotations.inputType?.startsWith('multiselect') ?? false;
|
|
426
|
+
}
|
|
427
|
+
getErrors(params) {
|
|
428
|
+
const { messagesPerField, passwordPolicies } = this.kcContext;
|
|
429
|
+
const { msgStr, advancedMsgStr } = this.i18n;
|
|
430
|
+
const { attributeName, formFieldStates } = params;
|
|
431
|
+
const formFieldState = formFieldStates.find(({ attribute }) => attribute.name === attributeName);
|
|
432
|
+
assert(formFieldState !== undefined);
|
|
433
|
+
const { attribute } = formFieldState;
|
|
434
|
+
const valueOrValues = (() => {
|
|
435
|
+
let { valueOrValues } = formFieldState;
|
|
436
|
+
unFormat_number: {
|
|
437
|
+
const { kcNumberUnFormat } = attribute.html5DataAnnotations ?? {};
|
|
438
|
+
if (!kcNumberUnFormat) {
|
|
439
|
+
break unFormat_number;
|
|
440
|
+
}
|
|
441
|
+
if (valueOrValues instanceof Array) {
|
|
442
|
+
valueOrValues = valueOrValues.map(value => formatNumber(value, kcNumberUnFormat));
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
valueOrValues = formatNumber(valueOrValues, kcNumberUnFormat);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return valueOrValues;
|
|
449
|
+
})();
|
|
450
|
+
assert(attribute !== undefined);
|
|
451
|
+
server_side_error: {
|
|
452
|
+
if (attribute.multivalued) {
|
|
453
|
+
const defaultValues = attribute.values?.length ? attribute.values : [''];
|
|
454
|
+
assert(valueOrValues instanceof Array);
|
|
455
|
+
const values = valueOrValues;
|
|
456
|
+
if (JSON.stringify(defaultValues) !==
|
|
457
|
+
JSON.stringify(values.slice(0, defaultValues.length))) {
|
|
458
|
+
break server_side_error;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
const defaultValue = attribute.value ?? '';
|
|
463
|
+
assert(typeof valueOrValues === 'string');
|
|
464
|
+
const value = valueOrValues;
|
|
465
|
+
if (defaultValue !== value) {
|
|
466
|
+
break server_side_error;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
let doesErrorExist;
|
|
470
|
+
try {
|
|
471
|
+
doesErrorExist = messagesPerField.existsError(attributeName);
|
|
472
|
+
}
|
|
473
|
+
catch {
|
|
474
|
+
break server_side_error;
|
|
475
|
+
}
|
|
476
|
+
if (!doesErrorExist) {
|
|
477
|
+
break server_side_error;
|
|
478
|
+
}
|
|
479
|
+
const errorMessageStr = messagesPerField.get(attributeName);
|
|
480
|
+
return [
|
|
481
|
+
{
|
|
482
|
+
errorMessageStr,
|
|
483
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span>${errorMessageStr}</span>`),
|
|
484
|
+
fieldIndex: undefined,
|
|
485
|
+
source: {
|
|
486
|
+
type: 'server'
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
];
|
|
490
|
+
}
|
|
491
|
+
handle_multi_valued_multi_fields: {
|
|
492
|
+
if (!attribute.multivalued) {
|
|
493
|
+
break handle_multi_valued_multi_fields;
|
|
494
|
+
}
|
|
495
|
+
if (this.getIsMultivaluedSingleField({ attribute })) {
|
|
496
|
+
break handle_multi_valued_multi_fields;
|
|
497
|
+
}
|
|
498
|
+
assert(valueOrValues instanceof Array);
|
|
499
|
+
const values = valueOrValues;
|
|
500
|
+
const errors = values
|
|
501
|
+
.map((...[, index]) => {
|
|
502
|
+
const specificValueErrors = this.getErrors({
|
|
503
|
+
attributeName,
|
|
504
|
+
formFieldStates: formFieldStates.map(formFieldState => {
|
|
505
|
+
if (formFieldState.attribute.name === attributeName) {
|
|
506
|
+
assert(formFieldState.valueOrValues instanceof Array);
|
|
507
|
+
return {
|
|
508
|
+
attribute: {
|
|
509
|
+
...attribute,
|
|
510
|
+
annotations: {
|
|
511
|
+
...attribute.annotations,
|
|
512
|
+
inputType: undefined
|
|
513
|
+
},
|
|
514
|
+
multivalued: false
|
|
515
|
+
},
|
|
516
|
+
valueOrValues: formFieldState.valueOrValues[index]
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
return formFieldState;
|
|
520
|
+
})
|
|
521
|
+
});
|
|
522
|
+
return specificValueErrors
|
|
523
|
+
.filter(error => {
|
|
524
|
+
if (error.source.type === 'other' &&
|
|
525
|
+
error.source.rule === 'requiredField') {
|
|
526
|
+
return false;
|
|
527
|
+
}
|
|
528
|
+
return true;
|
|
529
|
+
})
|
|
530
|
+
.map((error) => ({
|
|
531
|
+
...error,
|
|
532
|
+
fieldIndex: index
|
|
533
|
+
}));
|
|
534
|
+
})
|
|
535
|
+
.reduce((acc, errors) => [...acc, ...errors], []);
|
|
536
|
+
required_field: {
|
|
537
|
+
if (!attribute.required) {
|
|
538
|
+
break required_field;
|
|
539
|
+
}
|
|
540
|
+
if (values.every(value => value !== '')) {
|
|
541
|
+
break required_field;
|
|
542
|
+
}
|
|
543
|
+
const msgArgs = ['error-user-attribute-required'];
|
|
544
|
+
errors.push({
|
|
545
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
546
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
547
|
+
fieldIndex: undefined,
|
|
548
|
+
source: {
|
|
549
|
+
type: 'other',
|
|
550
|
+
rule: 'requiredField'
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
return errors;
|
|
555
|
+
}
|
|
556
|
+
handle_multi_valued_single_field: {
|
|
557
|
+
if (!attribute.multivalued) {
|
|
558
|
+
break handle_multi_valued_single_field;
|
|
559
|
+
}
|
|
560
|
+
if (!this.getIsMultivaluedSingleField({ attribute })) {
|
|
561
|
+
break handle_multi_valued_single_field;
|
|
562
|
+
}
|
|
563
|
+
const validatorName = 'multivalued';
|
|
564
|
+
const validator = attribute.validators[validatorName];
|
|
565
|
+
if (validator === undefined) {
|
|
566
|
+
return [];
|
|
567
|
+
}
|
|
568
|
+
const { min: minStr } = validator;
|
|
569
|
+
const min = minStr ? parseInt(`${minStr}`) : attribute.required ? 1 : 0;
|
|
570
|
+
assert(!isNaN(min));
|
|
571
|
+
const { max: maxStr } = validator;
|
|
572
|
+
const max = !maxStr ? Infinity : parseInt(`${maxStr}`);
|
|
573
|
+
assert(!isNaN(max));
|
|
574
|
+
assert(valueOrValues instanceof Array);
|
|
575
|
+
const values = valueOrValues;
|
|
576
|
+
if (min <= values.length && values.length <= max) {
|
|
577
|
+
return [];
|
|
578
|
+
}
|
|
579
|
+
const msgArgs = [
|
|
580
|
+
'error-invalid-multivalued-size',
|
|
581
|
+
`${min}`,
|
|
582
|
+
`${max}`
|
|
583
|
+
];
|
|
584
|
+
return [
|
|
585
|
+
{
|
|
586
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="0">${msgStr(...msgArgs)}</span>`),
|
|
587
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
588
|
+
fieldIndex: undefined,
|
|
589
|
+
source: {
|
|
590
|
+
type: 'validator',
|
|
591
|
+
name: validatorName
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
assert(typeof valueOrValues === 'string');
|
|
597
|
+
const value = valueOrValues;
|
|
598
|
+
const errors = [];
|
|
599
|
+
check_password_policies: {
|
|
600
|
+
if (attributeName !== 'password') {
|
|
601
|
+
break check_password_policies;
|
|
602
|
+
}
|
|
603
|
+
if (passwordPolicies === undefined) {
|
|
604
|
+
break check_password_policies;
|
|
605
|
+
}
|
|
606
|
+
check_password_policy_x: {
|
|
607
|
+
const policyName = 'length';
|
|
608
|
+
const policy = passwordPolicies[policyName];
|
|
609
|
+
if (!policy) {
|
|
610
|
+
break check_password_policy_x;
|
|
611
|
+
}
|
|
612
|
+
const minLength = policy;
|
|
613
|
+
if (value.length >= minLength) {
|
|
614
|
+
break check_password_policy_x;
|
|
615
|
+
}
|
|
616
|
+
const msgArgs = [
|
|
617
|
+
'invalidPasswordMinLengthMessage',
|
|
618
|
+
`${minLength}`
|
|
619
|
+
];
|
|
620
|
+
errors.push({
|
|
621
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
622
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
623
|
+
fieldIndex: undefined,
|
|
624
|
+
source: {
|
|
625
|
+
type: 'passwordPolicy',
|
|
626
|
+
name: policyName
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
check_password_policy_x: {
|
|
631
|
+
const policyName = 'digits';
|
|
632
|
+
const policy = passwordPolicies[policyName];
|
|
633
|
+
if (!policy) {
|
|
634
|
+
break check_password_policy_x;
|
|
635
|
+
}
|
|
636
|
+
const minNumberOfDigits = policy;
|
|
637
|
+
if (value.split('').filter(char => !isNaN(parseInt(char))).length >=
|
|
638
|
+
minNumberOfDigits) {
|
|
639
|
+
break check_password_policy_x;
|
|
640
|
+
}
|
|
641
|
+
const msgArgs = [
|
|
642
|
+
'invalidPasswordMinDigitsMessage',
|
|
643
|
+
`${minNumberOfDigits}`
|
|
644
|
+
];
|
|
645
|
+
errors.push({
|
|
646
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
647
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
648
|
+
fieldIndex: undefined,
|
|
649
|
+
source: {
|
|
650
|
+
type: 'passwordPolicy',
|
|
651
|
+
name: policyName
|
|
652
|
+
}
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
check_password_policy_x: {
|
|
656
|
+
const policyName = 'lowerCase';
|
|
657
|
+
const policy = passwordPolicies[policyName];
|
|
658
|
+
if (!policy) {
|
|
659
|
+
break check_password_policy_x;
|
|
660
|
+
}
|
|
661
|
+
const minNumberOfLowerCaseChar = policy;
|
|
662
|
+
if (value
|
|
663
|
+
.split('')
|
|
664
|
+
.filter(char => char === char.toLowerCase() && char !== char.toUpperCase()).length >= minNumberOfLowerCaseChar) {
|
|
665
|
+
break check_password_policy_x;
|
|
666
|
+
}
|
|
667
|
+
const msgArgs = [
|
|
668
|
+
'invalidPasswordMinLowerCaseCharsMessage',
|
|
669
|
+
`${minNumberOfLowerCaseChar}`
|
|
670
|
+
];
|
|
671
|
+
errors.push({
|
|
672
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
673
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
674
|
+
fieldIndex: undefined,
|
|
675
|
+
source: {
|
|
676
|
+
type: 'passwordPolicy',
|
|
677
|
+
name: policyName
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
check_password_policy_x: {
|
|
682
|
+
const policyName = 'upperCase';
|
|
683
|
+
const policy = passwordPolicies[policyName];
|
|
684
|
+
if (!policy) {
|
|
685
|
+
break check_password_policy_x;
|
|
686
|
+
}
|
|
687
|
+
const minNumberOfUpperCaseChar = policy;
|
|
688
|
+
if (value
|
|
689
|
+
.split('')
|
|
690
|
+
.filter(char => char === char.toUpperCase() && char !== char.toLowerCase()).length >= minNumberOfUpperCaseChar) {
|
|
691
|
+
break check_password_policy_x;
|
|
692
|
+
}
|
|
693
|
+
const msgArgs = [
|
|
694
|
+
'invalidPasswordMinUpperCaseCharsMessage',
|
|
695
|
+
`${minNumberOfUpperCaseChar}`
|
|
696
|
+
];
|
|
697
|
+
errors.push({
|
|
698
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
699
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
700
|
+
fieldIndex: undefined,
|
|
701
|
+
source: {
|
|
702
|
+
type: 'passwordPolicy',
|
|
703
|
+
name: policyName
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
check_password_policy_x: {
|
|
708
|
+
const policyName = 'specialChars';
|
|
709
|
+
const policy = passwordPolicies[policyName];
|
|
710
|
+
if (!policy) {
|
|
711
|
+
break check_password_policy_x;
|
|
712
|
+
}
|
|
713
|
+
const minNumberOfSpecialChar = policy;
|
|
714
|
+
if (value.split('').filter(char => !char.match(/[a-zA-Z0-9]/)).length >=
|
|
715
|
+
minNumberOfSpecialChar) {
|
|
716
|
+
break check_password_policy_x;
|
|
717
|
+
}
|
|
718
|
+
const msgArgs = [
|
|
719
|
+
'invalidPasswordMinSpecialCharsMessage',
|
|
720
|
+
`${minNumberOfSpecialChar}`
|
|
721
|
+
];
|
|
722
|
+
errors.push({
|
|
723
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
724
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
725
|
+
fieldIndex: undefined,
|
|
726
|
+
source: {
|
|
727
|
+
type: 'passwordPolicy',
|
|
728
|
+
name: policyName
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
check_password_policy_x: {
|
|
733
|
+
const policyName = 'notUsername';
|
|
734
|
+
const notUsername = passwordPolicies[policyName];
|
|
735
|
+
if (!notUsername) {
|
|
736
|
+
break check_password_policy_x;
|
|
737
|
+
}
|
|
738
|
+
const usernameFormFieldState = formFieldStates.find(formFieldState => formFieldState.attribute.name === 'username');
|
|
739
|
+
if (!usernameFormFieldState) {
|
|
740
|
+
break check_password_policy_x;
|
|
741
|
+
}
|
|
742
|
+
const usernameValue = (() => {
|
|
743
|
+
let { valueOrValues } = usernameFormFieldState;
|
|
744
|
+
assert(typeof valueOrValues === 'string');
|
|
745
|
+
unFormat_number: {
|
|
746
|
+
const { kcNumberUnFormat } = attribute.html5DataAnnotations ?? {};
|
|
747
|
+
if (!kcNumberUnFormat) {
|
|
748
|
+
break unFormat_number;
|
|
749
|
+
}
|
|
750
|
+
valueOrValues = formatNumber(valueOrValues, kcNumberUnFormat);
|
|
751
|
+
}
|
|
752
|
+
return valueOrValues;
|
|
753
|
+
})();
|
|
754
|
+
if (usernameValue === '') {
|
|
755
|
+
break check_password_policy_x;
|
|
756
|
+
}
|
|
757
|
+
if (value !== usernameValue) {
|
|
758
|
+
break check_password_policy_x;
|
|
759
|
+
}
|
|
760
|
+
const msgArgs = ['invalidPasswordNotUsernameMessage'];
|
|
761
|
+
errors.push({
|
|
762
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
763
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
764
|
+
fieldIndex: undefined,
|
|
765
|
+
source: {
|
|
766
|
+
type: 'passwordPolicy',
|
|
767
|
+
name: policyName
|
|
768
|
+
}
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
check_password_policy_x: {
|
|
772
|
+
const policyName = 'notEmail';
|
|
773
|
+
const notEmail = passwordPolicies[policyName];
|
|
774
|
+
if (!notEmail) {
|
|
775
|
+
break check_password_policy_x;
|
|
776
|
+
}
|
|
777
|
+
const emailFormFieldState = formFieldStates.find(formFieldState => formFieldState.attribute.name === 'email');
|
|
778
|
+
if (!emailFormFieldState) {
|
|
779
|
+
break check_password_policy_x;
|
|
780
|
+
}
|
|
781
|
+
assert(typeof emailFormFieldState.valueOrValues === 'string');
|
|
782
|
+
{
|
|
783
|
+
const emailValue = emailFormFieldState.valueOrValues;
|
|
784
|
+
if (emailValue === '') {
|
|
785
|
+
break check_password_policy_x;
|
|
786
|
+
}
|
|
787
|
+
if (value !== emailValue) {
|
|
788
|
+
break check_password_policy_x;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
const msgArgs = ['invalidPasswordNotEmailMessage'];
|
|
792
|
+
errors.push({
|
|
793
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
794
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
795
|
+
fieldIndex: undefined,
|
|
796
|
+
source: {
|
|
797
|
+
type: 'passwordPolicy',
|
|
798
|
+
name: policyName
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
password_confirm_matches_password: {
|
|
804
|
+
if (attributeName !== 'password-confirm') {
|
|
805
|
+
break password_confirm_matches_password;
|
|
806
|
+
}
|
|
807
|
+
const passwordFormFieldState = formFieldStates.find(formFieldState => formFieldState.attribute.name === 'password');
|
|
808
|
+
assert(passwordFormFieldState !== undefined);
|
|
809
|
+
assert(typeof passwordFormFieldState.valueOrValues === 'string');
|
|
810
|
+
{
|
|
811
|
+
const passwordValue = passwordFormFieldState.valueOrValues;
|
|
812
|
+
if (value === passwordValue) {
|
|
813
|
+
break password_confirm_matches_password;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
const msgArgs = ['invalidPasswordConfirmMessage'];
|
|
817
|
+
errors.push({
|
|
818
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
819
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
820
|
+
fieldIndex: undefined,
|
|
821
|
+
source: {
|
|
822
|
+
type: 'other',
|
|
823
|
+
rule: 'passwordConfirmMatchesPassword'
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
const { validators } = attribute;
|
|
828
|
+
required_field: {
|
|
829
|
+
if (!attribute.required) {
|
|
830
|
+
break required_field;
|
|
831
|
+
}
|
|
832
|
+
if (value !== '') {
|
|
833
|
+
break required_field;
|
|
834
|
+
}
|
|
835
|
+
const msgArgs = ['error-user-attribute-required'];
|
|
836
|
+
errors.push({
|
|
837
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
838
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
839
|
+
fieldIndex: undefined,
|
|
840
|
+
source: {
|
|
841
|
+
type: 'other',
|
|
842
|
+
rule: 'requiredField'
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
validator_x: {
|
|
847
|
+
const validatorName = 'length';
|
|
848
|
+
const validator = validators[validatorName];
|
|
849
|
+
if (!validator) {
|
|
850
|
+
break validator_x;
|
|
851
|
+
}
|
|
852
|
+
const { 'ignore.empty.value': ignoreEmptyValue = false, max, min } = validator;
|
|
853
|
+
if (ignoreEmptyValue && value === '') {
|
|
854
|
+
break validator_x;
|
|
855
|
+
}
|
|
856
|
+
const source = {
|
|
857
|
+
type: 'validator',
|
|
858
|
+
name: validatorName
|
|
859
|
+
};
|
|
860
|
+
if (max && value.length > parseInt(`${max}`)) {
|
|
861
|
+
const msgArgs = ['error-invalid-length-too-long', `${max}`];
|
|
862
|
+
errors.push({
|
|
863
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
864
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
865
|
+
fieldIndex: undefined,
|
|
866
|
+
source
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
if (min && value.length < parseInt(`${min}`)) {
|
|
870
|
+
const msgArgs = ['error-invalid-length-too-short', `${min}`];
|
|
871
|
+
errors.push({
|
|
872
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
873
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
874
|
+
fieldIndex: undefined,
|
|
875
|
+
source
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
validator_x: {
|
|
880
|
+
const validatorName = 'pattern';
|
|
881
|
+
const validator = validators[validatorName];
|
|
882
|
+
if (validator === undefined) {
|
|
883
|
+
break validator_x;
|
|
884
|
+
}
|
|
885
|
+
const { 'ignore.empty.value': ignoreEmptyValue = false, pattern, 'error-message': errorMessageKey } = validator;
|
|
886
|
+
if (ignoreEmptyValue && value === '') {
|
|
887
|
+
break validator_x;
|
|
888
|
+
}
|
|
889
|
+
if (new RegExp(pattern).test(value)) {
|
|
890
|
+
break validator_x;
|
|
891
|
+
}
|
|
892
|
+
const msgArgs = [
|
|
893
|
+
errorMessageKey ?? id('shouldMatchPattern'),
|
|
894
|
+
pattern
|
|
895
|
+
];
|
|
896
|
+
errors.push({
|
|
897
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${advancedMsgStr(...msgArgs)}</span>`),
|
|
898
|
+
errorMessageStr: advancedMsgStr(...msgArgs),
|
|
899
|
+
fieldIndex: undefined,
|
|
900
|
+
source: {
|
|
901
|
+
type: 'validator',
|
|
902
|
+
name: validatorName
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
validator_x: {
|
|
907
|
+
{
|
|
908
|
+
const lastError = errors[errors.length - 1];
|
|
909
|
+
if (lastError !== undefined &&
|
|
910
|
+
lastError.source.type === 'validator' &&
|
|
911
|
+
lastError.source.name === 'pattern') {
|
|
912
|
+
break validator_x;
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
const validatorName = 'email';
|
|
916
|
+
const validator = validators[validatorName];
|
|
917
|
+
if (validator === undefined) {
|
|
918
|
+
break validator_x;
|
|
919
|
+
}
|
|
920
|
+
const { 'ignore.empty.value': ignoreEmptyValue = false } = validator;
|
|
921
|
+
if (ignoreEmptyValue && value === '') {
|
|
922
|
+
break validator_x;
|
|
923
|
+
}
|
|
924
|
+
if (emailRegexp.test(value)) {
|
|
925
|
+
break validator_x;
|
|
926
|
+
}
|
|
927
|
+
const msgArgs = [id('invalidEmailMessage')];
|
|
928
|
+
errors.push({
|
|
929
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
930
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
931
|
+
fieldIndex: undefined,
|
|
932
|
+
source: {
|
|
933
|
+
type: 'validator',
|
|
934
|
+
name: validatorName
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
validator_x: {
|
|
939
|
+
const validatorName = 'integer';
|
|
940
|
+
const validator = validators[validatorName];
|
|
941
|
+
if (validator === undefined) {
|
|
942
|
+
break validator_x;
|
|
943
|
+
}
|
|
944
|
+
const { 'ignore.empty.value': ignoreEmptyValue = false, max, min } = validator;
|
|
945
|
+
if (ignoreEmptyValue && value === '') {
|
|
946
|
+
break validator_x;
|
|
947
|
+
}
|
|
948
|
+
const intValue = parseInt(value);
|
|
949
|
+
const source = {
|
|
950
|
+
type: 'validator',
|
|
951
|
+
name: validatorName
|
|
952
|
+
};
|
|
953
|
+
if (isNaN(intValue)) {
|
|
954
|
+
const msgArgs = ['mustBeAnInteger'];
|
|
955
|
+
errors.push({
|
|
956
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
957
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
958
|
+
fieldIndex: undefined,
|
|
959
|
+
source
|
|
960
|
+
});
|
|
961
|
+
break validator_x;
|
|
962
|
+
}
|
|
963
|
+
if (max && intValue > parseInt(`${max}`)) {
|
|
964
|
+
const msgArgs = ['error-number-out-of-range-too-big', `${max}`];
|
|
965
|
+
errors.push({
|
|
966
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
967
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
968
|
+
fieldIndex: undefined,
|
|
969
|
+
source
|
|
970
|
+
});
|
|
971
|
+
break validator_x;
|
|
972
|
+
}
|
|
973
|
+
if (min && intValue < parseInt(`${min}`)) {
|
|
974
|
+
const msgArgs = [
|
|
975
|
+
'error-number-out-of-range-too-small',
|
|
976
|
+
`${min}`
|
|
977
|
+
];
|
|
978
|
+
errors.push({
|
|
979
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
980
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
981
|
+
fieldIndex: undefined,
|
|
982
|
+
source
|
|
983
|
+
});
|
|
984
|
+
break validator_x;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
validator_x: {
|
|
988
|
+
const validatorName = 'options';
|
|
989
|
+
const validator = validators[validatorName];
|
|
990
|
+
if (validator === undefined) {
|
|
991
|
+
break validator_x;
|
|
992
|
+
}
|
|
993
|
+
if (value === '') {
|
|
994
|
+
break validator_x;
|
|
995
|
+
}
|
|
996
|
+
if (validator.options.indexOf(value) >= 0) {
|
|
997
|
+
break validator_x;
|
|
998
|
+
}
|
|
999
|
+
const msgArgs = [id('notAValidOption')];
|
|
1000
|
+
errors.push({
|
|
1001
|
+
errorMessage: this.sanitizer.bypassSecurityTrustHtml(`<span data-key="${attributeName}-${errors.length}">${msgStr(...msgArgs)}</span>`),
|
|
1002
|
+
errorMessageStr: msgStr(...msgArgs),
|
|
1003
|
+
fieldIndex: undefined,
|
|
1004
|
+
source: {
|
|
1005
|
+
type: 'validator',
|
|
1006
|
+
name: validatorName
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
//TODO: Implement missing validators. See Validators type definition.
|
|
1011
|
+
return errors;
|
|
1012
|
+
}
|
|
1013
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: UserProfileFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1014
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: UserProfileFormService, providedIn: 'root' }); }
|
|
1015
|
+
}
|
|
1016
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: UserProfileFormService, decorators: [{
|
|
1017
|
+
type: Injectable,
|
|
1018
|
+
args: [{ providedIn: 'root' }]
|
|
1019
|
+
}], ctorParameters: () => [] });
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Generated bundle index. Do not edit.
|
|
1023
|
+
*/
|
|
1024
|
+
|
|
1025
|
+
export { UserProfileFormService };
|
|
1026
|
+
//# sourceMappingURL=keycloakify-angular-login-services-user-profile-form.mjs.map
|