@keycloakify/angular 0.0.1-rc.0 → 0.0.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/i18n.d.ts +2 -2
- package/lib/i18n.mjs +6 -0
- package/lib/models/index.d.ts +1 -1
- package/lib/models/index.mjs +2 -0
- package/lib/models/script.model.mjs +2 -0
- package/lib/providers/keycloakify-angular.providers.d.ts +5 -5
- package/lib/providers/keycloakify-angular.providers.mjs +54 -0
- package/lib/public-api.d.ts +5 -5
- package/lib/public-api.mjs +4 -0
- package/lib/services/i18n.service.d.ts +3 -0
- package/lib/services/i18n.service.mjs +11 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.mjs +3 -0
- package/lib/services/resource-injector.service.d.ts +5 -2
- package/lib/services/resource-injector.service.mjs +54 -0
- package/login/DefaultPage.d.ts +4 -4
- package/login/DefaultPage.mjs +121 -0
- package/login/KcContext.d.ts +1 -1
- package/login/KcContext.mjs +2 -0
- package/login/classes/component-reference.class.d.ts +1 -1
- package/login/classes/component-reference.class.mjs +3 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +5 -2
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +105 -0
- package/login/components/field-errors/field-errors.component.d.ts +7 -4
- package/login/components/field-errors/field-errors.component.mjs +32 -0
- package/login/components/group-label/group-label.component.d.ts +6 -3
- package/login/components/group-label/group-label.component.mjs +41 -0
- package/login/components/hello-world/hello-world.component.d.ts +5 -0
- package/login/components/hello-world/hello-world.component.mjs +11 -0
- package/login/components/index.d.ts +11 -11
- package/login/components/index.mjs +12 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +7 -4
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +52 -0
- package/login/components/input-tag/input-tag.component.d.ts +7 -4
- package/login/components/input-tag/input-tag.component.mjs +89 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +9 -6
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +115 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +5 -2
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +30 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +6 -3
- package/login/components/password-wrapper/password-wrapper.component.mjs +44 -0
- package/login/components/select-tag/select-tag.component.d.ts +7 -4
- package/login/components/select-tag/select-tag.component.mjs +80 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +7 -4
- package/login/components/textarea-tag/textarea-tag.component.mjs +48 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +8 -5
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +62 -0
- package/login/containers/template.component.d.ts +11 -8
- package/login/containers/template.component.mjs +71 -0
- package/login/directives/attributes.directive.d.ts +3 -0
- package/login/directives/attributes.directive.mjs +26 -0
- package/login/directives/index.d.ts +2 -2
- package/login/directives/index.mjs +3 -0
- package/login/directives/kc-class.directive.d.ts +5 -2
- package/login/directives/kc-class.directive.mjs +138 -0
- package/login/i18n.d.ts +2 -2
- package/login/i18n.mjs +2 -0
- package/login/pages/code/code.component.d.ts +6 -3
- package/login/pages/code/code.component.mjs +32 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +6 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +32 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +6 -3
- package/login/pages/delete-credential/delete-credential.component.mjs +37 -0
- package/login/pages/error/error.component.d.ts +6 -3
- package/login/pages/error/error.component.mjs +32 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +7 -4
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +41 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +6 -3
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +47 -0
- package/login/pages/info/info.component.d.ts +9 -6
- package/login/pages/info/info.component.mjs +58 -0
- package/login/pages/login/login.component.d.ts +6 -3
- package/login/pages/login/login.component.mjs +51 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +6 -3
- package/login/pages/login-config-totp/login-config-totp.component.mjs +47 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +37 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +37 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +6 -3
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +37 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +6 -3
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +38 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +6 -3
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +37 -0
- package/login/pages/login-otp/login-otp.component.d.ts +6 -3
- package/login/pages/login-otp/login-otp.component.mjs +38 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +6 -3
- package/login/pages/login-page-expired/login-page-expired.component.mjs +36 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +8 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +85 -0
- package/login/pages/login-password/login-password.component.d.ts +6 -3
- package/login/pages/login-password/login-password.component.mjs +46 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +45 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +38 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +6 -3
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +37 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +6 -3
- package/login/pages/login-reset-password/login-reset-password.component.mjs +38 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +6 -3
- package/login/pages/login-update-password/login-update-password.component.mjs +47 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +6 -3
- package/login/pages/login-update-profile/login-update-profile.component.mjs +44 -0
- package/login/pages/login-username/login-username.component.d.ts +6 -3
- package/login/pages/login-username/login-username.component.mjs +49 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +6 -3
- package/login/pages/login-verify-email/login-verify-email.component.mjs +37 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +6 -3
- package/login/pages/login-x509-info/login-x509-info.component.mjs +37 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +6 -3
- package/login/pages/logout-confirm/logout-confirm.component.mjs +37 -0
- package/login/pages/register/register.component.d.ts +6 -3
- package/login/pages/register/register.component.mjs +55 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +7 -4
- package/login/pages/saml-post-form/saml-post-form.component.mjs +49 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +6 -3
- package/login/pages/select-authenticator/select-authenticator.component.mjs +45 -0
- package/login/pages/terms/terms.component.d.ts +6 -3
- package/login/pages/terms/terms.component.mjs +37 -0
- package/login/pages/update-email/update-email.component.d.ts +6 -3
- package/login/pages/update-email/update-email.component.mjs +46 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +8 -5
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +87 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +6 -3
- package/login/pages/webauthn-error/webauthn-error.component.mjs +51 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +8 -5
- package/login/pages/webauthn-register/webauthn-register.component.mjs +81 -0
- package/login/pipes/advanced-msg-str.pipe.d.ts +4 -1
- package/login/pipes/advanced-msg-str.pipe.mjs +19 -0
- package/login/pipes/index.d.ts +6 -6
- package/login/pipes/index.mjs +7 -0
- package/login/pipes/input-type.pipe.d.ts +4 -1
- package/login/pipes/input-type.pipe.mjs +20 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +5 -2
- package/login/pipes/kc-sanitize.pipe.mjs +34 -0
- package/login/pipes/msg-str.pipe.d.ts +5 -2
- package/login/pipes/msg-str.pipe.mjs +19 -0
- package/login/pipes/to-array.pipe.d.ts +4 -1
- package/login/pipes/to-array.pipe.mjs +21 -0
- package/login/pipes/to-number.pipe.d.ts +4 -1
- package/login/pipes/to-number.pipe.mjs +20 -0
- package/login/services/index.d.ts +2 -2
- package/login/services/index.mjs +3 -0
- package/login/services/login-resource-injector.service.d.ts +4 -1
- package/login/services/login-resource-injector.service.mjs +68 -0
- package/login/services/user-profile-form.service.d.ts +15 -12
- package/login/services/user-profile-form.service.mjs +1017 -0
- package/package.json +90 -200
- package/src/lib/i18n.ts +2 -2
- package/src/lib/models/index.ts +1 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +18 -18
- package/src/lib/public-api.ts +5 -5
- package/src/lib/services/i18n.service.ts +2 -2
- package/src/lib/services/index.ts +2 -2
- package/src/lib/services/resource-injector.service.ts +7 -7
- package/src/login/DefaultPage.ts +76 -76
- package/src/login/KcContext.ts +1 -1
- package/src/login/classes/component-reference.class.ts +1 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +11 -11
- package/src/login/components/field-errors/field-errors.component.ts +9 -9
- package/src/login/components/group-label/group-label.component.ts +12 -12
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +1 -0
- package/src/login/components/hello-world/hello-world.component.ts +10 -0
- package/src/login/components/index.ts +11 -11
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +15 -15
- package/src/login/components/input-tag/input-tag.component.ts +20 -20
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +26 -26
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -8
- package/src/login/components/password-wrapper/password-wrapper.component.ts +11 -11
- package/src/login/components/select-tag/select-tag.component.ts +16 -16
- package/src/login/components/textarea-tag/textarea-tag.component.ts +14 -14
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +16 -16
- package/src/login/containers/template.component.ts +19 -19
- package/src/login/directives/attributes.directive.ts +2 -2
- package/src/login/directives/index.ts +2 -2
- package/src/login/directives/kc-class.directive.ts +11 -11
- package/src/login/i18n.ts +2 -2
- package/src/login/pages/code/code.component.ts +11 -11
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +11 -11
- package/src/login/pages/delete-credential/delete-credential.component.ts +11 -11
- package/src/login/pages/error/error.component.ts +11 -11
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -11
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +14 -14
- package/src/login/pages/info/info.component.ts +15 -15
- package/src/login/pages/login/login.component.ts +16 -16
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -16
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -11
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -11
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -11
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +13 -13
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -11
- package/src/login/pages/login-otp/login-otp.component.ts +13 -13
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +10 -10
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +21 -21
- package/src/login/pages/login-password/login-password.component.ts +14 -14
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +13 -13
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +13 -13
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -12
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +13 -13
- package/src/login/pages/login-update-password/login-update-password.component.ts +16 -16
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +13 -13
- package/src/login/pages/login-username/login-username.component.ts +14 -14
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +11 -11
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +11 -11
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +11 -11
- package/src/login/pages/register/register.component.ts +17 -17
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +13 -13
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +13 -13
- package/src/login/pages/terms/terms.component.ts +11 -11
- package/src/login/pages/update-email/update-email.component.ts +14 -14
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +21 -21
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +15 -15
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +20 -20
- package/src/login/pipes/advanced-msg-str.pipe.ts +4 -4
- package/src/login/pipes/index.ts +6 -6
- package/src/login/pipes/input-type.pipe.ts +4 -4
- package/src/login/pipes/kc-sanitize.pipe.ts +8 -8
- package/src/login/pipes/msg-str.pipe.ts +5 -5
- package/src/login/pipes/to-array.pipe.ts +2 -2
- package/src/login/pipes/to-number.pipe.ts +3 -3
- package/src/login/services/index.ts +2 -2
- package/src/login/services/login-resource-injector.service.ts +11 -11
- package/src/login/services/user-profile-form.service.ts +178 -178
- package/stories/login/pages/login/login.stories.ts +146 -0
- package/lib/i18n.js +0 -6
- package/lib/i18n.js.map +0 -1
- package/lib/models/index.js +0 -2
- package/lib/models/index.js.map +0 -1
- package/lib/models/script.model.js +0 -2
- package/lib/models/script.model.js.map +0 -1
- package/lib/providers/keycloakify-angular.providers.js +0 -58
- package/lib/providers/keycloakify-angular.providers.js.map +0 -1
- package/lib/public-api.js +0 -4
- package/lib/public-api.js.map +0 -1
- package/lib/services/i18n.service.js +0 -14
- package/lib/services/i18n.service.js.map +0 -1
- package/lib/services/index.js +0 -3
- package/lib/services/index.js.map +0 -1
- package/lib/services/resource-injector.service.js +0 -57
- package/lib/services/resource-injector.service.js.map +0 -1
- package/login/DefaultPage.js +0 -121
- package/login/DefaultPage.js.map +0 -1
- package/login/KcContext.js +0 -2
- package/login/KcContext.js.map +0 -1
- package/login/classes/component-reference.class.js +0 -3
- package/login/classes/component-reference.class.js.map +0 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +0 -123
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
- package/login/components/field-errors/field-errors.component.html +0 -15
- package/login/components/field-errors/field-errors.component.js +0 -45
- package/login/components/field-errors/field-errors.component.js.map +0 -1
- package/login/components/group-label/group-label.component.html +0 -30
- package/login/components/group-label/group-label.component.js +0 -55
- package/login/components/group-label/group-label.component.js.map +0 -1
- package/login/components/index.js +0 -12
- package/login/components/index.js.map +0 -1
- package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
- package/login/components/input-tag/input-tag.component.html +0 -49
- package/login/components/input-tag/input-tag.component.js +0 -107
- package/login/components/input-tag/input-tag.component.js.map +0 -1
- package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
- package/login/components/input-tag-selects/input-tag-selects.component.js +0 -132
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +0 -43
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
- package/login/components/password-wrapper/password-wrapper.component.html +0 -15
- package/login/components/password-wrapper/password-wrapper.component.js +0 -57
- package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
- package/login/components/select-tag/select-tag.component.html +0 -31
- package/login/components/select-tag/select-tag.component.js +0 -97
- package/login/components/select-tag/select-tag.component.js.map +0 -1
- package/login/components/textarea-tag/textarea-tag.component.html +0 -18
- package/login/components/textarea-tag/textarea-tag.component.js +0 -63
- package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +0 -74
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
- package/login/containers/template.component.html +0 -203
- package/login/containers/template.component.js +0 -78
- package/login/containers/template.component.js.map +0 -1
- package/login/directives/attributes.directive.js +0 -34
- package/login/directives/attributes.directive.js.map +0 -1
- package/login/directives/index.js +0 -3
- package/login/directives/index.js.map +0 -1
- package/login/directives/kc-class.directive.js +0 -146
- package/login/directives/kc-class.directive.js.map +0 -1
- package/login/i18n.js +0 -2
- package/login/i18n.js.map +0 -1
- package/login/pages/code/code.component.html +0 -26
- package/login/pages/code/code.component.js +0 -38
- package/login/pages/code/code.component.js.map +0 -1
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +0 -38
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
- package/login/pages/delete-credential/delete-credential.component.html +0 -35
- package/login/pages/delete-credential/delete-credential.component.js +0 -43
- package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
- package/login/pages/error/error.component.html +0 -25
- package/login/pages/error/error.component.js +0 -38
- package/login/pages/error/error.component.js.map +0 -1
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +0 -47
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +0 -54
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
- package/login/pages/info/info.component.html +0 -54
- package/login/pages/info/info.component.js +0 -61
- package/login/pages/info/info.component.js.map +0 -1
- package/login/pages/login/login.component.html +0 -212
- package/login/pages/login/login.component.js +0 -58
- package/login/pages/login/login.component.js.map +0 -1
- package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
- package/login/pages/login-config-totp/login-config-totp.component.js +0 -53
- package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +0 -43
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +0 -43
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +0 -43
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +0 -44
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +0 -43
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
- package/login/pages/login-otp/login-otp.component.html +0 -103
- package/login/pages/login-otp/login-otp.component.js +0 -44
- package/login/pages/login-otp/login-otp.component.js.map +0 -1
- package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
- package/login/pages/login-page-expired/login-page-expired.component.js +0 -42
- package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +0 -91
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
- package/login/pages/login-password/login-password.component.html +0 -90
- package/login/pages/login-password/login-password.component.js +0 -52
- package/login/pages/login-password/login-password.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +0 -51
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +0 -44
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
- package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
- package/login/pages/login-reset-otp/login-reset-otp.component.js +0 -43
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
- package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
- package/login/pages/login-reset-password/login-reset-password.component.js +0 -44
- package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
- package/login/pages/login-update-password/login-update-password.component.html +0 -116
- package/login/pages/login-update-password/login-update-password.component.js +0 -53
- package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
- package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
- package/login/pages/login-update-profile/login-update-profile.component.js +0 -50
- package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
- package/login/pages/login-username/login-username.component.html +0 -161
- package/login/pages/login-username/login-username.component.js +0 -56
- package/login/pages/login-username/login-username.component.js.map +0 -1
- package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
- package/login/pages/login-verify-email/login-verify-email.component.js +0 -43
- package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
- package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
- package/login/pages/login-x509-info/login-x509-info.component.js +0 -43
- package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
- package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
- package/login/pages/logout-confirm/logout-confirm.component.js +0 -43
- package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
- package/login/pages/register/register.component.html +0 -126
- package/login/pages/register/register.component.js +0 -62
- package/login/pages/register/register.component.js.map +0 -1
- package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
- package/login/pages/saml-post-form/saml-post-form.component.js +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
- package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.js +0 -51
- package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
- package/login/pages/terms/terms.component.html +0 -36
- package/login/pages/terms/terms.component.js +0 -43
- package/login/pages/terms/terms.component.js.map +0 -1
- package/login/pages/update-email/update-email.component.html +0 -58
- package/login/pages/update-email/update-email.component.js +0 -52
- package/login/pages/update-email/update-email.component.js.map +0 -1
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +0 -93
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
- package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
- package/login/pages/webauthn-error/webauthn-error.component.js +0 -57
- package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
- package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
- package/login/pages/webauthn-register/webauthn-register.component.js +0 -86
- package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
- package/login/pipes/advanced-msg-str.pipe.js +0 -31
- package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
- package/login/pipes/index.js +0 -7
- package/login/pipes/index.js.map +0 -1
- package/login/pipes/input-type.pipe.js +0 -23
- package/login/pipes/input-type.pipe.js.map +0 -1
- package/login/pipes/kc-sanitize.pipe.js +0 -36
- package/login/pipes/kc-sanitize.pipe.js.map +0 -1
- package/login/pipes/msg-str.pipe.js +0 -31
- package/login/pipes/msg-str.pipe.js.map +0 -1
- package/login/pipes/to-array.pipe.js +0 -24
- package/login/pipes/to-array.pipe.js.map +0 -1
- package/login/pipes/to-number.pipe.js +0 -23
- package/login/pipes/to-number.pipe.js.map +0 -1
- package/login/services/index.js +0 -3
- package/login/services/index.js.map +0 -1
- package/login/services/login-resource-injector.service.js +0 -71
- package/login/services/login-resource-injector.service.js.map +0 -1
- package/login/services/user-profile-form.service.js +0 -1031
- package/login/services/user-profile-form.service.js.map +0 -1
package/src/login/DefaultPage.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Type } from
|
|
2
|
-
import { ClassKey } from
|
|
3
|
-
import { KcContext } from
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
3
|
+
import { KcContext } from 'keycloakify/login/KcContext';
|
|
4
4
|
|
|
5
5
|
const DefaultPage = async (
|
|
6
|
-
pageId: KcContext[
|
|
6
|
+
pageId: KcContext['pageId'],
|
|
7
7
|
doMakeUserConfirmPassword = true,
|
|
8
8
|
doUseDefaultCss = true,
|
|
9
9
|
classes: { [key in ClassKey]?: string } = {}
|
|
@@ -15,185 +15,185 @@ const DefaultPage = async (
|
|
|
15
15
|
}> => {
|
|
16
16
|
let ComponentBootstrapPromise;
|
|
17
17
|
switch (pageId) {
|
|
18
|
-
case
|
|
18
|
+
case 'login.ftl':
|
|
19
19
|
ComponentBootstrapPromise = import(
|
|
20
|
-
|
|
20
|
+
'@keycloakify/angular/login/pages/login/login.component'
|
|
21
21
|
).then(c => c.LoginComponent);
|
|
22
22
|
break;
|
|
23
|
-
case
|
|
23
|
+
case 'login-username.ftl':
|
|
24
24
|
ComponentBootstrapPromise = import(
|
|
25
|
-
|
|
25
|
+
'@keycloakify/angular/login/pages/login-username/login-username.component'
|
|
26
26
|
).then(c => c.LoginUsernameComponent);
|
|
27
27
|
break;
|
|
28
|
-
case
|
|
28
|
+
case 'login-password.ftl':
|
|
29
29
|
ComponentBootstrapPromise = import(
|
|
30
|
-
|
|
30
|
+
'@keycloakify/angular/login/pages/login-password/login-password.component'
|
|
31
31
|
).then(c => c.LoginPasswordComponent);
|
|
32
32
|
break;
|
|
33
|
-
case
|
|
33
|
+
case 'webauthn-authenticate.ftl':
|
|
34
34
|
ComponentBootstrapPromise = import(
|
|
35
|
-
|
|
35
|
+
'@keycloakify/angular/login/pages/webauthn-authenticate/webauthn-authenticate.component'
|
|
36
36
|
).then(c => c.WebauthnAuthenticateComponent);
|
|
37
37
|
break;
|
|
38
|
-
case
|
|
38
|
+
case 'webauthn-register.ftl':
|
|
39
39
|
ComponentBootstrapPromise = import(
|
|
40
|
-
|
|
40
|
+
'@keycloakify/angular/login/pages/webauthn-register/webauthn-register.component'
|
|
41
41
|
).then(c => c.WebauthnRegisterComponent);
|
|
42
42
|
break;
|
|
43
|
-
case
|
|
43
|
+
case 'register.ftl':
|
|
44
44
|
ComponentBootstrapPromise = import(
|
|
45
|
-
|
|
45
|
+
'@keycloakify/angular/login/pages/register/register.component'
|
|
46
46
|
).then(c => c.RegisterComponent);
|
|
47
47
|
break;
|
|
48
|
-
case
|
|
48
|
+
case 'info.ftl':
|
|
49
49
|
ComponentBootstrapPromise = import(
|
|
50
|
-
|
|
50
|
+
'@keycloakify/angular/login/pages/info/info.component'
|
|
51
51
|
).then(c => c.InfoComponent);
|
|
52
52
|
break;
|
|
53
|
-
case
|
|
53
|
+
case 'error.ftl':
|
|
54
54
|
ComponentBootstrapPromise = import(
|
|
55
|
-
|
|
55
|
+
'@keycloakify/angular/login/pages/error/error.component'
|
|
56
56
|
).then(c => c.ErrorComponent);
|
|
57
57
|
break;
|
|
58
|
-
case
|
|
58
|
+
case 'login-reset-password.ftl':
|
|
59
59
|
ComponentBootstrapPromise = import(
|
|
60
|
-
|
|
60
|
+
'@keycloakify/angular/login/pages/login-reset-password/login-reset-password.component'
|
|
61
61
|
).then(c => c.LoginResetPasswordComponent);
|
|
62
62
|
break;
|
|
63
|
-
case
|
|
63
|
+
case 'login-verify-email.ftl':
|
|
64
64
|
ComponentBootstrapPromise = import(
|
|
65
|
-
|
|
65
|
+
'@keycloakify/angular/login/pages/login-verify-email/login-verify-email.component'
|
|
66
66
|
).then(c => c.LoginVerifyEmailComponent);
|
|
67
67
|
break;
|
|
68
|
-
case
|
|
68
|
+
case 'terms.ftl':
|
|
69
69
|
ComponentBootstrapPromise = import(
|
|
70
|
-
|
|
70
|
+
'@keycloakify/angular/login/pages/terms/terms.component'
|
|
71
71
|
).then(c => c.TermsComponent);
|
|
72
72
|
break;
|
|
73
|
-
case
|
|
73
|
+
case 'login-oauth2-device-verify-user-code.ftl':
|
|
74
74
|
ComponentBootstrapPromise = import(
|
|
75
|
-
|
|
75
|
+
'@keycloakify/angular/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component'
|
|
76
76
|
).then(c => c.LoginOauth2DeviceVerifyUserCodeComponent);
|
|
77
77
|
break;
|
|
78
|
-
case
|
|
78
|
+
case 'login-oauth-grant.ftl':
|
|
79
79
|
ComponentBootstrapPromise = import(
|
|
80
|
-
|
|
80
|
+
'@keycloakify/angular/login/pages/login-oauth-grant/login-oauth-grant.component'
|
|
81
81
|
).then(c => c.LoginOauthGrantComponent);
|
|
82
82
|
break;
|
|
83
|
-
case
|
|
83
|
+
case 'login-otp.ftl':
|
|
84
84
|
ComponentBootstrapPromise = import(
|
|
85
|
-
|
|
85
|
+
'@keycloakify/angular/login/pages/login-otp/login-otp.component'
|
|
86
86
|
).then(c => c.LoginOtpComponent);
|
|
87
87
|
|
|
88
88
|
break;
|
|
89
|
-
case
|
|
89
|
+
case 'login-update-profile.ftl':
|
|
90
90
|
ComponentBootstrapPromise = import(
|
|
91
|
-
|
|
91
|
+
'@keycloakify/angular/login/pages/login-update-profile/login-update-profile.component'
|
|
92
92
|
).then(c => c.LoginUpdateProfileComponent);
|
|
93
93
|
break;
|
|
94
|
-
case
|
|
94
|
+
case 'login-update-password.ftl':
|
|
95
95
|
ComponentBootstrapPromise = import(
|
|
96
|
-
|
|
96
|
+
'@keycloakify/angular/login/pages/login-update-password/login-update-password.component'
|
|
97
97
|
).then(c => c.LoginUpdatePasswordComponent);
|
|
98
98
|
break;
|
|
99
|
-
case
|
|
99
|
+
case 'login-idp-link-confirm.ftl':
|
|
100
100
|
ComponentBootstrapPromise = import(
|
|
101
|
-
|
|
101
|
+
'@keycloakify/angular/login/pages/login-idp-link-confirm/login-idp-link-confirm.component'
|
|
102
102
|
).then(c => c.LoginIdpLinkConfirmComponent);
|
|
103
103
|
break;
|
|
104
|
-
case
|
|
104
|
+
case 'login-idp-link-email.ftl':
|
|
105
105
|
ComponentBootstrapPromise = import(
|
|
106
|
-
|
|
106
|
+
'@keycloakify/angular/login/pages/login-idp-link-email/login-idp-link-email.component'
|
|
107
107
|
).then(c => c.LoginIdpLinkEmailComponent);
|
|
108
108
|
break;
|
|
109
|
-
case
|
|
109
|
+
case 'login-page-expired.ftl':
|
|
110
110
|
ComponentBootstrapPromise = import(
|
|
111
|
-
|
|
111
|
+
'@keycloakify/angular/login/pages/login-page-expired/login-page-expired.component'
|
|
112
112
|
).then(c => c.LoginPageExpiredComponent);
|
|
113
113
|
break;
|
|
114
|
-
case
|
|
114
|
+
case 'login-config-totp.ftl':
|
|
115
115
|
ComponentBootstrapPromise = import(
|
|
116
|
-
|
|
116
|
+
'@keycloakify/angular/login/pages/login-config-totp/login-config-totp.component'
|
|
117
117
|
).then(c => c.LoginConfigTotpComponent);
|
|
118
118
|
break;
|
|
119
|
-
case
|
|
119
|
+
case 'logout-confirm.ftl':
|
|
120
120
|
ComponentBootstrapPromise = import(
|
|
121
|
-
|
|
121
|
+
'@keycloakify/angular/login/pages/logout-confirm/logout-confirm.component'
|
|
122
122
|
).then(c => c.LogoutConfirmComponent);
|
|
123
123
|
break;
|
|
124
|
-
case
|
|
124
|
+
case 'idp-review-user-profile.ftl':
|
|
125
125
|
ComponentBootstrapPromise = import(
|
|
126
|
-
|
|
126
|
+
'@keycloakify/angular/login/pages/idp-review-user-profile/idp-review-user-profile.component'
|
|
127
127
|
).then(c => c.IdpReviewUserProfileComponent);
|
|
128
128
|
break;
|
|
129
|
-
case
|
|
129
|
+
case 'update-email.ftl':
|
|
130
130
|
ComponentBootstrapPromise = import(
|
|
131
|
-
|
|
131
|
+
'@keycloakify/angular/login/pages/update-email/update-email.component'
|
|
132
132
|
).then(c => c.UpdateEmailComponent);
|
|
133
133
|
break;
|
|
134
|
-
case
|
|
134
|
+
case 'select-authenticator.ftl':
|
|
135
135
|
ComponentBootstrapPromise = import(
|
|
136
|
-
|
|
136
|
+
'@keycloakify/angular/login/pages/select-authenticator/select-authenticator.component'
|
|
137
137
|
).then(c => c.SelectAuthenticatorComponent);
|
|
138
138
|
break;
|
|
139
|
-
case
|
|
139
|
+
case 'saml-post-form.ftl':
|
|
140
140
|
ComponentBootstrapPromise = import(
|
|
141
|
-
|
|
141
|
+
'@keycloakify/angular/login/pages/saml-post-form/saml-post-form.component'
|
|
142
142
|
).then(c => c.SamlPostFormComponent);
|
|
143
143
|
break;
|
|
144
|
-
case
|
|
144
|
+
case 'delete-credential.ftl':
|
|
145
145
|
ComponentBootstrapPromise = import(
|
|
146
|
-
|
|
146
|
+
'@keycloakify/angular/login/pages/delete-credential/delete-credential.component'
|
|
147
147
|
).then(c => c.DeleteCredentialComponent);
|
|
148
148
|
break;
|
|
149
|
-
case
|
|
149
|
+
case 'code.ftl':
|
|
150
150
|
ComponentBootstrapPromise = import(
|
|
151
|
-
|
|
151
|
+
'@keycloakify/angular/login/pages/code/code.component'
|
|
152
152
|
).then(c => c.CodeComponent);
|
|
153
153
|
break;
|
|
154
|
-
case
|
|
154
|
+
case 'delete-account-confirm.ftl':
|
|
155
155
|
ComponentBootstrapPromise = import(
|
|
156
|
-
|
|
156
|
+
'@keycloakify/angular/login/pages/delete-account-confirm/delete-account-confirm.component'
|
|
157
157
|
).then(c => c.DeleteAccountConfirmComponent);
|
|
158
158
|
break;
|
|
159
|
-
case
|
|
159
|
+
case 'frontchannel-logout.ftl':
|
|
160
160
|
ComponentBootstrapPromise = import(
|
|
161
|
-
|
|
161
|
+
'@keycloakify/angular/login/pages/frontchannel-logout/frontchannel-logout.component'
|
|
162
162
|
).then(c => c.FrontchannelLogoutComponent);
|
|
163
163
|
break;
|
|
164
|
-
case
|
|
164
|
+
case 'login-recovery-authn-code-config.ftl':
|
|
165
165
|
ComponentBootstrapPromise = import(
|
|
166
|
-
|
|
166
|
+
'@keycloakify/angular/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component'
|
|
167
167
|
).then(c => c.LoginRecoveryAuthnCodeConfigComponent);
|
|
168
168
|
break;
|
|
169
|
-
case
|
|
169
|
+
case 'login-recovery-authn-code-input.ftl':
|
|
170
170
|
ComponentBootstrapPromise = import(
|
|
171
|
-
|
|
171
|
+
'@keycloakify/angular/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component'
|
|
172
172
|
).then(c => c.LoginRecoveryAuthnCodeInputComponent);
|
|
173
173
|
break;
|
|
174
|
-
case
|
|
174
|
+
case 'login-reset-otp.ftl':
|
|
175
175
|
ComponentBootstrapPromise = import(
|
|
176
|
-
|
|
176
|
+
'@keycloakify/angular/login/pages/login-reset-otp/login-reset-otp.component'
|
|
177
177
|
).then(c => c.LoginResetOtpComponent);
|
|
178
178
|
break;
|
|
179
|
-
case
|
|
179
|
+
case 'login-x509-info.ftl':
|
|
180
180
|
ComponentBootstrapPromise = import(
|
|
181
|
-
|
|
181
|
+
'@keycloakify/angular/login/pages/login-x509-info/login-x509-info.component'
|
|
182
182
|
).then(c => c.LoginX509InfoComponent);
|
|
183
183
|
break;
|
|
184
|
-
case
|
|
184
|
+
case 'webauthn-error.ftl':
|
|
185
185
|
ComponentBootstrapPromise = import(
|
|
186
|
-
|
|
186
|
+
'@keycloakify/angular/login/pages/webauthn-error/webauthn-error.component'
|
|
187
187
|
).then(c => c.WebauthnErrorComponent);
|
|
188
188
|
break;
|
|
189
|
-
case
|
|
189
|
+
case 'login-passkeys-conditional-authenticate.ftl':
|
|
190
190
|
ComponentBootstrapPromise = import(
|
|
191
|
-
|
|
191
|
+
'@keycloakify/angular/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component'
|
|
192
192
|
).then(c => c.LoginPasskeysConditionalAuthenticateComponent);
|
|
193
193
|
break;
|
|
194
|
-
case
|
|
194
|
+
case 'login-idp-link-confirm-override.ftl':
|
|
195
195
|
ComponentBootstrapPromise = import(
|
|
196
|
-
|
|
196
|
+
'@keycloakify/angular/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component'
|
|
197
197
|
).then(c => c.LoginIdpLinkConfirmOverrideComponent);
|
|
198
198
|
break;
|
|
199
199
|
}
|
package/src/login/KcContext.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { KcContext } from
|
|
1
|
+
export type { KcContext } from 'keycloakify/login/KcContext';
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
computed,
|
|
5
5
|
input,
|
|
6
6
|
output
|
|
7
|
-
} from
|
|
8
|
-
import { Attribute } from
|
|
9
|
-
import { MsgStrPipe } from
|
|
10
|
-
import { FormAction } from
|
|
7
|
+
} from '@angular/core';
|
|
8
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
9
|
+
import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
|
|
10
|
+
import { FormAction } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
11
11
|
|
|
12
12
|
@Component({
|
|
13
13
|
standalone: true,
|
|
@@ -19,8 +19,8 @@ import { FormAction } from "@keycloakify/angular/login/services/user-profile-for
|
|
|
19
19
|
`
|
|
20
20
|
],
|
|
21
21
|
imports: [MsgStrPipe],
|
|
22
|
-
selector:
|
|
23
|
-
templateUrl:
|
|
22
|
+
selector: 'kc-add-remove-buttons-multi-valued-attribute',
|
|
23
|
+
templateUrl: 'add-remove-buttons-multi-valued-attribute.component.html',
|
|
24
24
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
25
25
|
})
|
|
26
26
|
export class AddRemoveButtonsMultiValuedAttributeComponent {
|
|
@@ -58,16 +58,16 @@ export class AddRemoveButtonsMultiValuedAttributeComponent {
|
|
|
58
58
|
|
|
59
59
|
onAdd() {
|
|
60
60
|
this.dispatchFormAction.emit({
|
|
61
|
-
action:
|
|
62
|
-
name: this.attribute()?.name ??
|
|
63
|
-
valueOrValues: [...(this.values() ?? []),
|
|
61
|
+
action: 'update',
|
|
62
|
+
name: this.attribute()?.name ?? '',
|
|
63
|
+
valueOrValues: [...(this.values() ?? []), '']
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
onRemove() {
|
|
68
68
|
this.dispatchFormAction.emit({
|
|
69
|
-
action:
|
|
70
|
-
name: this.attribute()?.name ??
|
|
69
|
+
action: 'update',
|
|
70
|
+
name: this.attribute()?.name ?? '',
|
|
71
71
|
valueOrValues: (this.values() ?? []).filter((_, i) => i !== this.fieldIndex())
|
|
72
72
|
});
|
|
73
73
|
}
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
forwardRef,
|
|
5
5
|
inject,
|
|
6
6
|
input
|
|
7
|
-
} from
|
|
8
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
9
|
-
import { Attribute } from
|
|
10
|
-
import { ClassKey } from
|
|
11
|
-
import { ComponentReference } from
|
|
12
|
-
import { KcClassDirective } from
|
|
13
|
-
import { FormFieldError } from
|
|
7
|
+
} from '@angular/core';
|
|
8
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
9
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
10
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
11
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
12
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
13
|
+
import { FormFieldError } from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
16
16
|
standalone: true,
|
|
@@ -22,8 +22,8 @@ import { FormFieldError } from "@keycloakify/angular/login/services/user-profile
|
|
|
22
22
|
`
|
|
23
23
|
],
|
|
24
24
|
imports: [KcClassDirective],
|
|
25
|
-
selector:
|
|
26
|
-
templateUrl:
|
|
25
|
+
selector: 'kc-field-errors',
|
|
26
|
+
templateUrl: 'field-errors.component.html',
|
|
27
27
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
28
28
|
providers: [
|
|
29
29
|
{
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
forwardRef,
|
|
6
6
|
inject,
|
|
7
7
|
input
|
|
8
|
-
} from
|
|
9
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
10
|
-
import { Attribute } from
|
|
11
|
-
import { ClassKey } from
|
|
12
|
-
import { ComponentReference } from
|
|
13
|
-
import { AttributesDirective } from
|
|
14
|
-
import { KcClassDirective } from
|
|
15
|
-
import { AdvancedMsgStrPipe } from
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
10
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
11
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
12
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
13
|
+
import { AttributesDirective } from '@keycloakify/angular/login/directives/attributes.directive';
|
|
14
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
15
|
+
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
16
16
|
|
|
17
17
|
@Component({
|
|
18
18
|
standalone: true,
|
|
@@ -24,8 +24,8 @@ import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-ms
|
|
|
24
24
|
`
|
|
25
25
|
],
|
|
26
26
|
imports: [KcClassDirective, AttributesDirective, AdvancedMsgStrPipe],
|
|
27
|
-
selector:
|
|
28
|
-
templateUrl:
|
|
27
|
+
selector: 'kc-group-label',
|
|
28
|
+
templateUrl: 'group-label.component.html',
|
|
29
29
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
30
|
providers: [
|
|
31
31
|
{
|
|
@@ -43,8 +43,8 @@ export class GroupLabelComponent extends ComponentReference {
|
|
|
43
43
|
const attribute = this.attribute();
|
|
44
44
|
const groupName = this.groupName();
|
|
45
45
|
if (attribute?.group?.name !== groupName) {
|
|
46
|
-
return attribute?.group?.name ??
|
|
46
|
+
return attribute?.group?.name ?? '';
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return '';
|
|
49
49
|
});
|
|
50
50
|
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>hello-world works!</p>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
1
|
+
export * from './add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component';
|
|
2
|
+
export * from './field-errors/field-errors.component';
|
|
3
|
+
export * from './group-label/group-label.component';
|
|
4
|
+
export * from './input-field-by-type/input-field-by-type.component';
|
|
5
|
+
export * from './input-tag/input-tag.component';
|
|
6
|
+
export * from './input-tag-selects/input-tag-selects.component';
|
|
7
|
+
export * from './logout-other-sessions/logout-other-sessions.component';
|
|
8
|
+
export * from './password-wrapper/password-wrapper.component';
|
|
9
|
+
export * from './select-tag/select-tag.component';
|
|
10
|
+
export * from './textarea-tag/textarea-tag.component';
|
|
11
|
+
export * from './user-profile-form-fields/user-profile-form-fields.component';
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
inject,
|
|
7
7
|
input,
|
|
8
8
|
output
|
|
9
|
-
} from
|
|
10
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
11
|
-
import { Attribute } from
|
|
12
|
-
import { ClassKey } from
|
|
13
|
-
import { ComponentReference } from
|
|
14
|
-
import { ToArrayPipe } from
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
11
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
12
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
14
|
+
import { ToArrayPipe } from '@keycloakify/angular/login/pipes/to-array.pipe';
|
|
15
15
|
import {
|
|
16
16
|
FormAction,
|
|
17
17
|
FormFieldError
|
|
18
|
-
} from
|
|
19
|
-
import { InputTagSelectsComponent } from
|
|
20
|
-
import { InputTagComponent } from
|
|
21
|
-
import { PasswordWrapperComponent } from
|
|
22
|
-
import { SelectTagComponent } from
|
|
23
|
-
import { TextareaTagComponent } from
|
|
18
|
+
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
19
|
+
import { InputTagSelectsComponent } from '@keycloakify/angular/login/components/input-tag-selects/input-tag-selects.component';
|
|
20
|
+
import { InputTagComponent } from '@keycloakify/angular/login/components/input-tag/input-tag.component';
|
|
21
|
+
import { PasswordWrapperComponent } from '@keycloakify/angular/login/components/password-wrapper/password-wrapper.component';
|
|
22
|
+
import { SelectTagComponent } from '@keycloakify/angular/login/components/select-tag/select-tag.component';
|
|
23
|
+
import { TextareaTagComponent } from '@keycloakify/angular/login/components/textarea-tag/textarea-tag.component';
|
|
24
24
|
|
|
25
25
|
@Component({
|
|
26
26
|
standalone: true,
|
|
@@ -39,8 +39,8 @@ import { TextareaTagComponent } from "@keycloakify/angular/login/components/text
|
|
|
39
39
|
InputTagComponent,
|
|
40
40
|
PasswordWrapperComponent
|
|
41
41
|
],
|
|
42
|
-
selector:
|
|
43
|
-
templateUrl:
|
|
42
|
+
selector: 'kc-input-field-by-type',
|
|
43
|
+
templateUrl: 'input-field-by-type.component.html',
|
|
44
44
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
45
|
providers: [
|
|
46
46
|
{
|
|
@@ -61,7 +61,7 @@ export class InputFieldByTypeComponent extends ComponentReference {
|
|
|
61
61
|
const attribute: Attribute = this.attribute() ?? ({} as Attribute);
|
|
62
62
|
return {
|
|
63
63
|
...attribute,
|
|
64
|
-
annotations: { ...(attribute.annotations ?? {}), inputType:
|
|
64
|
+
annotations: { ...(attribute.annotations ?? {}), inputType: 'password' }
|
|
65
65
|
};
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
inject,
|
|
7
7
|
input,
|
|
8
8
|
output
|
|
9
|
-
} from
|
|
10
|
-
import { CLASSES, USE_DEFAULT_CSS } from
|
|
11
|
-
import { Attribute } from
|
|
12
|
-
import { ClassKey } from
|
|
13
|
-
import { ComponentReference } from
|
|
14
|
-
import { AttributesDirective } from
|
|
15
|
-
import { KcClassDirective } from
|
|
16
|
-
import { AdvancedMsgStrPipe } from
|
|
17
|
-
import { InputTypePipe } from
|
|
18
|
-
import { ToArrayPipe } from
|
|
19
|
-
import { ToNumberPipe } from
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
|
|
11
|
+
import { Attribute } from 'keycloakify/login/KcContext';
|
|
12
|
+
import { ClassKey } from 'keycloakify/login/lib/kcClsx';
|
|
13
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
|
|
14
|
+
import { AttributesDirective } from '@keycloakify/angular/login/directives/attributes.directive';
|
|
15
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
|
|
16
|
+
import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
|
|
17
|
+
import { InputTypePipe } from '@keycloakify/angular/login/pipes/input-type.pipe';
|
|
18
|
+
import { ToArrayPipe } from '@keycloakify/angular/login/pipes/to-array.pipe';
|
|
19
|
+
import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
|
|
20
20
|
import {
|
|
21
21
|
FormAction,
|
|
22
22
|
FormFieldError
|
|
23
|
-
} from
|
|
24
|
-
import { AddRemoveButtonsMultiValuedAttributeComponent } from
|
|
25
|
-
import { FieldErrorsComponent } from
|
|
23
|
+
} from '@keycloakify/angular/login/services/user-profile-form.service';
|
|
24
|
+
import { AddRemoveButtonsMultiValuedAttributeComponent } from '@keycloakify/angular/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component';
|
|
25
|
+
import { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors/field-errors.component';
|
|
26
26
|
|
|
27
27
|
@Component({
|
|
28
28
|
standalone: true,
|
|
@@ -43,8 +43,8 @@ import { FieldErrorsComponent } from "@keycloakify/angular/login/components/fiel
|
|
|
43
43
|
AddRemoveButtonsMultiValuedAttributeComponent,
|
|
44
44
|
AdvancedMsgStrPipe
|
|
45
45
|
],
|
|
46
|
-
selector:
|
|
47
|
-
templateUrl:
|
|
46
|
+
selector: 'kc-input-tag',
|
|
47
|
+
templateUrl: 'input-tag.component.html',
|
|
48
48
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
49
|
providers: [
|
|
50
50
|
{
|
|
@@ -78,8 +78,8 @@ export class InputTagComponent extends ComponentReference {
|
|
|
78
78
|
onChange(event: Event) {
|
|
79
79
|
const valueOrValues = this.valueOrValues();
|
|
80
80
|
this.dispatchFormAction.emit({
|
|
81
|
-
action:
|
|
82
|
-
name: this.attribute()?.name ??
|
|
81
|
+
action: 'update',
|
|
82
|
+
name: this.attribute()?.name ?? '',
|
|
83
83
|
valueOrValues: (() => {
|
|
84
84
|
if (this.fieldIndex !== undefined) {
|
|
85
85
|
if (valueOrValues instanceof Array) {
|
|
@@ -100,8 +100,8 @@ export class InputTagComponent extends ComponentReference {
|
|
|
100
100
|
|
|
101
101
|
onBlur() {
|
|
102
102
|
this.dispatchFormAction.emit({
|
|
103
|
-
action:
|
|
104
|
-
name: this.attribute()?.name ??
|
|
103
|
+
action: 'focus lost',
|
|
104
|
+
name: this.attribute()?.name ?? '',
|
|
105
105
|
fieldIndex: this.fieldIndex()
|
|
106
106
|
});
|
|
107
107
|
}
|