@keycloakify/angular 0.0.10 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/DefaultPage/index.d.ts +1 -5
- package/account/KcContext/index.d.ts +1 -5
- package/account/classes/component-reference/index.d.ts +1 -5
- package/account/directives/kc-class/index.d.ts +1 -5
- package/account/i18n/index.d.ts +1 -5
- package/account/index.d.ts +1 -5
- package/account/pages/account/index.d.ts +1 -5
- package/account/pages/applications/index.d.ts +1 -5
- package/account/pages/federatedIdentity/index.d.ts +1 -5
- package/account/pages/log/index.d.ts +1 -5
- package/account/pages/password/index.d.ts +1 -5
- package/account/pages/sessions/index.d.ts +1 -5
- package/account/pages/totp/index.d.ts +1 -5
- package/account/providers/keycloakify-angular/index.d.ts +1 -5
- package/account/services/account-resource-injector/index.d.ts +1 -5
- package/account/services/i18n/index.d.ts +1 -5
- package/account/{containers/template → template}/template.component.d.ts +2 -9
- package/account/tokens/classes/index.d.ts +1 -5
- package/account/tokens/i18n/index.d.ts +1 -5
- package/account/tokens/kc-context/index.d.ts +1 -5
- package/bin/108.index.js +242 -0
- package/bin/338.index.js +105 -54
- package/bin/402.index.js +1250 -0
- package/bin/758.index.js +778 -53
- package/bin/{925.index.js → 84.index.js} +125 -625
- package/bin/main.js +63 -6
- package/esm2022/account/DefaultPage/index.mjs +2 -0
- package/esm2022/account/DefaultPage/keycloakify-angular-account-DefaultPage.mjs +2 -2
- package/esm2022/account/KcContext/index.mjs +2 -0
- package/esm2022/account/KcContext/keycloakify-angular-account-KcContext.mjs +2 -2
- package/esm2022/account/classes/component-reference/index.mjs +2 -0
- package/esm2022/account/classes/component-reference/keycloakify-angular-account-classes-component-reference.mjs +2 -2
- package/esm2022/account/directives/kc-class/index.mjs +2 -0
- package/esm2022/account/directives/kc-class/kc-class.directive.mjs +4 -4
- package/esm2022/account/directives/kc-class/keycloakify-angular-account-directives-kc-class.mjs +2 -2
- package/esm2022/account/i18n/index.mjs +2 -0
- package/esm2022/account/i18n/keycloakify-angular-account-i18n.mjs +2 -2
- package/esm2022/account/index.mjs +2 -0
- package/esm2022/account/keycloakify-angular-account.mjs +2 -2
- package/esm2022/account/pages/account/account.component.mjs +4 -4
- package/esm2022/account/pages/account/index.mjs +2 -0
- package/esm2022/account/pages/account/keycloakify-angular-account-pages-account.mjs +2 -2
- package/esm2022/account/pages/applications/applications.component.mjs +4 -4
- package/esm2022/account/pages/applications/index.mjs +2 -0
- package/esm2022/account/pages/applications/keycloakify-angular-account-pages-applications.mjs +2 -2
- package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +4 -4
- package/esm2022/account/pages/federatedIdentity/index.mjs +2 -0
- package/esm2022/account/pages/federatedIdentity/keycloakify-angular-account-pages-federatedIdentity.mjs +2 -2
- package/esm2022/account/pages/log/index.mjs +2 -0
- package/esm2022/account/pages/log/keycloakify-angular-account-pages-log.mjs +2 -2
- package/esm2022/account/pages/log/log.component.mjs +4 -4
- package/esm2022/account/pages/password/index.mjs +2 -0
- package/esm2022/account/pages/password/keycloakify-angular-account-pages-password.mjs +2 -2
- package/esm2022/account/pages/password/password.component.mjs +4 -4
- package/esm2022/account/pages/sessions/index.mjs +2 -0
- package/esm2022/account/pages/sessions/keycloakify-angular-account-pages-sessions.mjs +2 -2
- package/esm2022/account/pages/sessions/sessions.component.mjs +4 -4
- package/esm2022/account/pages/totp/index.mjs +2 -0
- package/esm2022/account/pages/totp/keycloakify-angular-account-pages-totp.mjs +2 -2
- package/esm2022/account/pages/totp/totp.component.mjs +4 -4
- package/esm2022/account/providers/keycloakify-angular/index.mjs +2 -0
- package/esm2022/account/providers/keycloakify-angular/keycloakify-angular-account-providers-keycloakify-angular.mjs +2 -2
- package/esm2022/account/services/account-resource-injector/account-resource-injector.service.mjs +4 -4
- package/esm2022/account/services/account-resource-injector/index.mjs +2 -0
- package/esm2022/account/services/account-resource-injector/keycloakify-angular-account-services-account-resource-injector.mjs +2 -2
- package/esm2022/account/services/i18n/i18n.service.mjs +4 -4
- package/esm2022/account/services/i18n/index.mjs +2 -0
- package/esm2022/account/services/i18n/keycloakify-angular-account-services-i18n.mjs +2 -2
- package/esm2022/account/template/index.mjs +2 -0
- package/esm2022/account/template/keycloakify-angular-account-template.mjs +5 -0
- package/esm2022/account/template/template.component.mjs +83 -0
- package/esm2022/account/tokens/classes/index.mjs +2 -0
- package/esm2022/account/tokens/classes/keycloakify-angular-account-tokens-classes.mjs +2 -2
- package/esm2022/account/tokens/i18n/index.mjs +2 -0
- package/esm2022/account/tokens/i18n/keycloakify-angular-account-tokens-i18n.mjs +2 -2
- package/esm2022/account/tokens/kc-context/index.mjs +2 -0
- package/esm2022/account/tokens/kc-context/keycloakify-angular-account-tokens-kc-context.mjs +2 -2
- package/esm2022/index.mjs +2 -0
- package/esm2022/keycloakify-angular.mjs +2 -2
- package/esm2022/lib/directives/attributes/attributes.directive.mjs +4 -4
- package/esm2022/lib/directives/attributes/index.mjs +2 -0
- package/esm2022/lib/directives/attributes/keycloakify-angular-lib-directives-attributes.mjs +2 -2
- package/esm2022/lib/index.mjs +2 -0
- package/esm2022/lib/keycloakify-angular-lib.mjs +2 -2
- package/esm2022/lib/models/script/index.mjs +2 -0
- package/esm2022/lib/models/script/keycloakify-angular-lib-models-script.mjs +2 -2
- package/esm2022/lib/pipes/input-type/index.mjs +2 -0
- package/esm2022/lib/pipes/input-type/input-type.pipe.mjs +4 -4
- package/esm2022/lib/pipes/input-type/keycloakify-angular-lib-pipes-input-type.mjs +2 -2
- package/esm2022/lib/pipes/is-array-with-empty-object/index.mjs +2 -0
- package/esm2022/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.mjs +4 -4
- package/esm2022/lib/pipes/is-array-with-empty-object/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +2 -2
- package/esm2022/lib/pipes/kc-sanitize/index.mjs +2 -0
- package/esm2022/lib/pipes/kc-sanitize/kc-sanitize.pipe.mjs +4 -4
- package/esm2022/lib/pipes/kc-sanitize/keycloakify-angular-lib-pipes-kc-sanitize.mjs +2 -2
- package/esm2022/lib/pipes/to-array/index.mjs +2 -0
- package/esm2022/lib/pipes/to-array/keycloakify-angular-lib-pipes-to-array.mjs +2 -2
- package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +4 -4
- package/esm2022/lib/pipes/to-number/index.mjs +2 -0
- package/esm2022/lib/pipes/to-number/keycloakify-angular-lib-pipes-to-number.mjs +2 -2
- package/esm2022/lib/pipes/to-number/to-number.pipe.mjs +4 -4
- package/esm2022/lib/services/resource-injector/index.mjs +2 -0
- package/esm2022/lib/services/resource-injector/keycloakify-angular-lib-services-resource-injector.mjs +2 -2
- package/esm2022/lib/services/resource-injector/resource-injector.service.mjs +4 -4
- package/esm2022/lib/tokens/use-default-css/index.mjs +2 -0
- package/esm2022/lib/tokens/use-default-css/keycloakify-angular-lib-tokens-use-default-css.mjs +2 -2
- package/esm2022/login/KcContext/index.mjs +2 -0
- package/esm2022/login/KcContext/keycloakify-angular-login-KcContext.mjs +2 -2
- package/esm2022/login/classes/component-reference/index.mjs +2 -0
- package/esm2022/login/classes/component-reference/keycloakify-angular-login-classes-component-reference.mjs +2 -2
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +4 -4
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/index.mjs +2 -0
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +2 -2
- package/esm2022/login/components/field-errors/field-errors.component.mjs +4 -4
- package/esm2022/login/components/field-errors/index.mjs +2 -0
- package/esm2022/login/components/field-errors/keycloakify-angular-login-components-field-errors.mjs +2 -2
- package/esm2022/login/components/group-label/group-label.component.mjs +4 -4
- package/esm2022/login/components/group-label/index.mjs +2 -0
- package/esm2022/login/components/group-label/keycloakify-angular-login-components-group-label.mjs +2 -2
- package/esm2022/login/components/input-field-by-type/index.mjs +2 -0
- package/esm2022/login/components/input-field-by-type/input-field-by-type.component.mjs +4 -4
- package/esm2022/login/components/input-field-by-type/keycloakify-angular-login-components-input-field-by-type.mjs +2 -2
- package/esm2022/login/components/input-tag/index.mjs +2 -0
- package/esm2022/login/components/input-tag/input-tag.component.mjs +4 -4
- package/esm2022/login/components/input-tag/keycloakify-angular-login-components-input-tag.mjs +2 -2
- package/esm2022/login/components/input-tag-selects/index.mjs +2 -0
- package/esm2022/login/components/input-tag-selects/input-tag-selects.component.mjs +4 -4
- package/esm2022/login/components/input-tag-selects/keycloakify-angular-login-components-input-tag-selects.mjs +2 -2
- package/esm2022/login/components/logout-other-sessions/index.mjs +2 -0
- package/esm2022/login/components/logout-other-sessions/keycloakify-angular-login-components-logout-other-sessions.mjs +2 -2
- package/esm2022/login/components/logout-other-sessions/logout-other-sessions.component.mjs +4 -4
- package/esm2022/login/components/password-wrapper/index.mjs +2 -0
- package/esm2022/login/components/password-wrapper/keycloakify-angular-login-components-password-wrapper.mjs +2 -2
- package/esm2022/login/components/password-wrapper/password-wrapper.component.mjs +4 -4
- package/esm2022/login/components/select-tag/index.mjs +2 -0
- package/esm2022/login/components/select-tag/keycloakify-angular-login-components-select-tag.mjs +2 -2
- package/esm2022/login/components/select-tag/select-tag.component.mjs +4 -4
- package/esm2022/login/components/textarea-tag/index.mjs +2 -0
- package/esm2022/login/components/textarea-tag/keycloakify-angular-login-components-textarea-tag.mjs +2 -2
- package/esm2022/login/components/textarea-tag/textarea-tag.component.mjs +4 -4
- package/esm2022/login/components/user-profile-form-fields/index.mjs +2 -0
- package/esm2022/login/components/user-profile-form-fields/keycloakify-angular-login-components-user-profile-form-fields.mjs +2 -2
- package/esm2022/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +4 -4
- package/esm2022/login/directives/kc-class/index.mjs +2 -0
- package/esm2022/login/directives/kc-class/kc-class.directive.mjs +4 -4
- package/esm2022/login/directives/kc-class/keycloakify-angular-login-directives-kc-class.mjs +2 -2
- package/esm2022/login/i18n/index.mjs +2 -0
- package/esm2022/login/i18n/keycloakify-angular-login-i18n.mjs +2 -2
- package/esm2022/login/index.mjs +2 -0
- package/esm2022/login/keycloakify-angular-login.mjs +2 -2
- package/esm2022/login/pages/code/code.component.mjs +4 -4
- package/esm2022/login/pages/code/index.mjs +2 -0
- package/esm2022/login/pages/code/keycloakify-angular-login-pages-code.mjs +2 -2
- package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +4 -4
- package/esm2022/login/pages/delete-account-confirm/index.mjs +2 -0
- package/esm2022/login/pages/delete-account-confirm/keycloakify-angular-login-pages-delete-account-confirm.mjs +2 -2
- package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +4 -4
- package/esm2022/login/pages/delete-credential/index.mjs +2 -0
- package/esm2022/login/pages/delete-credential/keycloakify-angular-login-pages-delete-credential.mjs +2 -2
- package/esm2022/login/pages/error/error.component.mjs +4 -4
- package/esm2022/login/pages/error/index.mjs +2 -0
- package/esm2022/login/pages/error/keycloakify-angular-login-pages-error.mjs +2 -2
- package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +4 -4
- package/esm2022/login/pages/frontchannel-logout/index.mjs +2 -0
- package/esm2022/login/pages/frontchannel-logout/keycloakify-angular-login-pages-frontchannel-logout.mjs +2 -2
- package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +4 -4
- package/esm2022/login/pages/idp-review-user-profile/index.mjs +2 -0
- package/esm2022/login/pages/idp-review-user-profile/keycloakify-angular-login-pages-idp-review-user-profile.mjs +2 -2
- package/esm2022/login/pages/info/index.mjs +2 -0
- package/esm2022/login/pages/info/info.component.mjs +4 -4
- package/esm2022/login/pages/info/keycloakify-angular-login-pages-info.mjs +2 -2
- package/esm2022/login/pages/login/index.mjs +2 -0
- package/esm2022/login/pages/login/keycloakify-angular-login-pages-login.mjs +2 -2
- package/esm2022/login/pages/login/login.component.mjs +4 -4
- package/esm2022/login/pages/login-config-totp/index.mjs +2 -0
- package/esm2022/login/pages/login-config-totp/keycloakify-angular-login-pages-login-config-totp.mjs +2 -2
- package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +4 -4
- package/esm2022/login/pages/login-idp-link-confirm/index.mjs +2 -0
- package/esm2022/login/pages/login-idp-link-confirm/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +2 -2
- package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +4 -4
- package/esm2022/login/pages/login-idp-link-confirm-override/index.mjs +2 -0
- package/esm2022/login/pages/login-idp-link-confirm-override/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +2 -2
- package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +4 -4
- package/esm2022/login/pages/login-idp-link-email/index.mjs +2 -0
- package/esm2022/login/pages/login-idp-link-email/keycloakify-angular-login-pages-login-idp-link-email.mjs +2 -2
- package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +4 -4
- package/esm2022/login/pages/login-oauth-grant/index.mjs +2 -0
- package/esm2022/login/pages/login-oauth-grant/keycloakify-angular-login-pages-login-oauth-grant.mjs +2 -2
- package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +4 -4
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/index.mjs +2 -0
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +2 -2
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +4 -4
- package/esm2022/login/pages/login-otp/index.mjs +2 -0
- package/esm2022/login/pages/login-otp/keycloakify-angular-login-pages-login-otp.mjs +2 -2
- package/esm2022/login/pages/login-otp/login-otp.component.mjs +4 -4
- package/esm2022/login/pages/login-page-expired/index.mjs +2 -0
- package/esm2022/login/pages/login-page-expired/keycloakify-angular-login-pages-login-page-expired.mjs +2 -2
- package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +4 -4
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/index.mjs +2 -0
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +2 -2
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +4 -4
- package/esm2022/login/pages/login-password/index.mjs +2 -0
- package/esm2022/login/pages/login-password/keycloakify-angular-login-pages-login-password.mjs +2 -2
- package/esm2022/login/pages/login-password/login-password.component.mjs +4 -4
- package/esm2022/login/pages/login-recovery-authn-code-config/index.mjs +2 -0
- package/esm2022/login/pages/login-recovery-authn-code-config/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +2 -2
- package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +4 -4
- package/esm2022/login/pages/login-recovery-authn-code-input/index.mjs +2 -0
- package/esm2022/login/pages/login-recovery-authn-code-input/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +2 -2
- package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +4 -4
- package/esm2022/login/pages/login-reset-otp/index.mjs +2 -0
- package/esm2022/login/pages/login-reset-otp/keycloakify-angular-login-pages-login-reset-otp.mjs +2 -2
- package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +4 -4
- package/esm2022/login/pages/login-reset-password/index.mjs +2 -0
- package/esm2022/login/pages/login-reset-password/keycloakify-angular-login-pages-login-reset-password.mjs +2 -2
- package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +4 -4
- package/esm2022/login/pages/login-update-password/index.mjs +2 -0
- package/esm2022/login/pages/login-update-password/keycloakify-angular-login-pages-login-update-password.mjs +2 -2
- package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +4 -4
- package/esm2022/login/pages/login-update-profile/index.mjs +2 -0
- package/esm2022/login/pages/login-update-profile/keycloakify-angular-login-pages-login-update-profile.mjs +2 -2
- package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +4 -4
- package/esm2022/login/pages/login-username/index.mjs +2 -0
- package/esm2022/login/pages/login-username/keycloakify-angular-login-pages-login-username.mjs +2 -2
- package/esm2022/login/pages/login-username/login-username.component.mjs +4 -4
- package/esm2022/login/pages/login-verify-email/index.mjs +2 -0
- package/esm2022/login/pages/login-verify-email/keycloakify-angular-login-pages-login-verify-email.mjs +2 -2
- package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +4 -4
- package/esm2022/login/pages/login-x509-info/index.mjs +2 -0
- package/esm2022/login/pages/login-x509-info/keycloakify-angular-login-pages-login-x509-info.mjs +2 -2
- package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +4 -4
- package/esm2022/login/pages/logout-confirm/index.mjs +2 -0
- package/esm2022/login/pages/logout-confirm/keycloakify-angular-login-pages-logout-confirm.mjs +2 -2
- package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +4 -4
- package/esm2022/login/pages/register/index.mjs +2 -0
- package/esm2022/login/pages/register/keycloakify-angular-login-pages-register.mjs +2 -2
- package/esm2022/login/pages/register/register.component.mjs +4 -4
- package/esm2022/login/pages/saml-post-form/index.mjs +2 -0
- package/esm2022/login/pages/saml-post-form/keycloakify-angular-login-pages-saml-post-form.mjs +2 -2
- package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +4 -4
- package/esm2022/login/pages/select-authenticator/index.mjs +2 -0
- package/esm2022/login/pages/select-authenticator/keycloakify-angular-login-pages-select-authenticator.mjs +2 -2
- package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +4 -4
- package/esm2022/login/pages/terms/index.mjs +2 -0
- package/esm2022/login/pages/terms/keycloakify-angular-login-pages-terms.mjs +2 -2
- package/esm2022/login/pages/terms/terms.component.mjs +4 -4
- package/esm2022/login/pages/update-email/index.mjs +2 -0
- package/esm2022/login/pages/update-email/keycloakify-angular-login-pages-update-email.mjs +2 -2
- package/esm2022/login/pages/update-email/update-email.component.mjs +4 -4
- package/esm2022/login/pages/webauthn-authenticate/index.mjs +2 -0
- package/esm2022/login/pages/webauthn-authenticate/keycloakify-angular-login-pages-webauthn-authenticate.mjs +2 -2
- package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +4 -4
- package/esm2022/login/pages/webauthn-error/index.mjs +2 -0
- package/esm2022/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.mjs +2 -2
- package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +4 -4
- package/esm2022/login/pages/webauthn-register/index.mjs +2 -0
- package/esm2022/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.mjs +2 -2
- package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +4 -4
- package/esm2022/login/providers/keycloakify-angular/index.mjs +2 -0
- package/esm2022/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.mjs +2 -2
- package/esm2022/login/services/i18n/i18n.service.mjs +4 -4
- package/esm2022/login/services/i18n/index.mjs +2 -0
- package/esm2022/login/services/i18n/keycloakify-angular-login-services-i18n.mjs +2 -2
- package/esm2022/login/services/login-resource-injector/index.mjs +2 -0
- package/esm2022/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.mjs +2 -2
- package/esm2022/login/services/login-resource-injector/login-resource-injector.service.mjs +5 -5
- package/esm2022/login/services/user-profile-form/index.mjs +2 -0
- package/esm2022/login/services/user-profile-form/keycloakify-angular-login-services-user-profile-form.mjs +2 -2
- package/esm2022/login/services/user-profile-form/user-profile-form.service.mjs +4 -4
- package/esm2022/login/template/index.mjs +2 -0
- package/esm2022/login/template/keycloakify-angular-login-template.mjs +5 -0
- package/esm2022/login/template/template.component.mjs +123 -0
- package/esm2022/login/tokens/classes/index.mjs +2 -0
- package/esm2022/login/tokens/classes/keycloakify-angular-login-tokens-classes.mjs +2 -2
- package/esm2022/login/tokens/i18n/index.mjs +2 -0
- package/esm2022/login/tokens/i18n/keycloakify-angular-login-tokens-i18n.mjs +2 -2
- package/esm2022/login/tokens/kc-context/index.mjs +2 -0
- package/esm2022/login/tokens/kc-context/keycloakify-angular-login-tokens-kc-context.mjs +2 -2
- package/esm2022/login/tokens/make-user-confirm-password/index.mjs +2 -0
- package/esm2022/login/tokens/make-user-confirm-password/keycloakify-angular-login-tokens-make-user-confirm-password.mjs +2 -2
- package/fesm2022/keycloakify-angular-account-DefaultPage.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-KcContext.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-classes-component-reference.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-account.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-log.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-account-services-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-template.mjs +90 -0
- package/fesm2022/keycloakify-angular-account-template.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-account-tokens-classes.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-tokens-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account-tokens-kc-context.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-account.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-models-script.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
- package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib-tokens-use-default-css.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-lib.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-KcContext.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-classes-component-reference.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-group-label.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-select-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-code.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-error.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-info.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-login.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-register.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +4 -4
- package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
- package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-template.mjs +130 -0
- package/fesm2022/keycloakify-angular-login-template.mjs.map +1 -0
- package/fesm2022/keycloakify-angular-login-tokens-classes.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-tokens-i18n.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-tokens-kc-context.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login-tokens-make-user-confirm-password.mjs.map +1 -1
- package/fesm2022/keycloakify-angular-login.mjs.map +1 -1
- package/fesm2022/keycloakify-angular.mjs.map +1 -1
- package/index.d.ts +1 -5
- package/lib/directives/attributes/index.d.ts +1 -5
- package/lib/index.d.ts +1 -5
- package/lib/models/script/index.d.ts +1 -5
- package/lib/pipes/input-type/index.d.ts +1 -5
- package/lib/pipes/is-array-with-empty-object/index.d.ts +1 -5
- package/lib/pipes/kc-sanitize/index.d.ts +1 -5
- package/lib/pipes/to-array/index.d.ts +1 -5
- package/lib/pipes/to-number/index.d.ts +1 -5
- package/lib/services/resource-injector/index.d.ts +1 -5
- package/lib/tokens/use-default-css/index.d.ts +1 -5
- package/login/KcContext/index.d.ts +1 -5
- package/login/classes/component-reference/index.d.ts +1 -5
- package/login/components/add-remove-buttons-multi-valued-attribute/index.d.ts +1 -5
- package/login/components/field-errors/index.d.ts +1 -5
- package/login/components/group-label/index.d.ts +1 -5
- package/login/components/input-field-by-type/index.d.ts +1 -5
- package/login/components/input-tag/index.d.ts +1 -5
- package/login/components/input-tag-selects/index.d.ts +1 -5
- package/login/components/logout-other-sessions/index.d.ts +1 -5
- package/login/components/password-wrapper/index.d.ts +1 -5
- package/login/components/select-tag/index.d.ts +1 -5
- package/login/components/textarea-tag/index.d.ts +1 -5
- package/login/components/user-profile-form-fields/index.d.ts +1 -5
- package/login/directives/kc-class/index.d.ts +1 -5
- package/login/i18n/index.d.ts +1 -5
- package/login/index.d.ts +1 -5
- package/login/pages/code/index.d.ts +1 -5
- package/login/pages/delete-account-confirm/index.d.ts +1 -5
- package/login/pages/delete-credential/index.d.ts +1 -5
- package/login/pages/error/index.d.ts +1 -5
- package/login/pages/frontchannel-logout/index.d.ts +1 -5
- package/login/pages/idp-review-user-profile/index.d.ts +1 -5
- package/login/pages/info/index.d.ts +1 -5
- package/login/pages/login/index.d.ts +1 -5
- package/login/pages/login-config-totp/index.d.ts +1 -5
- package/login/pages/login-idp-link-confirm/index.d.ts +1 -5
- package/login/pages/login-idp-link-confirm-override/index.d.ts +1 -5
- package/login/pages/login-idp-link-email/index.d.ts +1 -5
- package/login/pages/login-oauth-grant/index.d.ts +1 -5
- package/login/pages/login-oauth2-device-verify-user-code/index.d.ts +1 -5
- package/login/pages/login-otp/index.d.ts +1 -5
- package/login/pages/login-page-expired/index.d.ts +1 -5
- package/login/pages/login-passkeys-conditional-authenticate/index.d.ts +1 -5
- package/login/pages/login-password/index.d.ts +1 -5
- package/login/pages/login-recovery-authn-code-config/index.d.ts +1 -5
- package/login/pages/login-recovery-authn-code-input/index.d.ts +1 -5
- package/login/pages/login-reset-otp/index.d.ts +1 -5
- package/login/pages/login-reset-password/index.d.ts +1 -5
- package/login/pages/login-update-password/index.d.ts +1 -5
- package/login/pages/login-update-profile/index.d.ts +1 -5
- package/login/pages/login-username/index.d.ts +1 -5
- package/login/pages/login-verify-email/index.d.ts +1 -5
- package/login/pages/login-x509-info/index.d.ts +1 -5
- package/login/pages/logout-confirm/index.d.ts +1 -5
- package/login/pages/register/index.d.ts +1 -5
- package/login/pages/saml-post-form/index.d.ts +1 -5
- package/login/pages/select-authenticator/index.d.ts +1 -5
- package/login/pages/terms/index.d.ts +1 -5
- package/login/pages/update-email/index.d.ts +1 -5
- package/login/pages/webauthn-authenticate/index.d.ts +1 -5
- package/login/pages/webauthn-error/index.d.ts +1 -5
- package/login/pages/webauthn-register/index.d.ts +1 -5
- package/login/providers/keycloakify-angular/index.d.ts +1 -5
- package/login/services/i18n/index.d.ts +1 -5
- package/login/services/login-resource-injector/index.d.ts +1 -5
- package/login/services/user-profile-form/index.d.ts +1 -5
- package/login/{containers/template → template}/template.component.d.ts +2 -10
- package/login/tokens/classes/index.d.ts +1 -5
- package/login/tokens/i18n/index.d.ts +1 -5
- package/login/tokens/kc-context/index.d.ts +1 -5
- package/login/tokens/make-user-confirm-password/index.d.ts +1 -5
- package/package.json +21 -21
- package/src/account/{containers/template → template}/template.component.html +2 -7
- package/src/account/{containers/template → template}/template.component.ts +18 -23
- package/src/bin/add-story.ts +126 -0
- package/src/bin/eject-page.ts +50 -12
- package/src/bin/initialize-account-theme/boilerplate/KcPage.ts +1 -1
- package/src/bin/initialize-account-theme/index.ts +1 -0
- package/src/bin/main.ts +2 -4
- package/src/bin/tools/nodeModulesBinDirPath.ts +38 -0
- package/src/bin/tools/runPrettier.ts +89 -0
- package/src/bin/tools/transformCodebase_async.ts +89 -0
- package/src/bin/update-kc-gen.ts +21 -15
- package/src/login/services/login-resource-injector/login-resource-injector.service.ts +1 -1
- package/src/login/{containers/template → template}/template.component.html +2 -8
- package/src/login/{containers/template → template}/template.component.ts +23 -29
- package/stories/account/pages/account.stories.ts +133 -0
- package/stories/account/pages/applications.stories.ts +196 -0
- package/stories/account/pages/federated-identity.stories.ts +78 -0
- package/stories/account/pages/log.stories.ts +147 -0
- package/stories/account/pages/password.stories.ts +104 -0
- package/stories/account/pages/sessions.stories.ts +143 -0
- package/stories/account/pages/totp.stories.ts +100 -0
- package/stories/login/pages/code.stories.ts +51 -0
- package/stories/login/pages/delete-account-confirm.stories.ts +43 -0
- package/stories/login/pages/delete-credential.stories.ts +56 -0
- package/stories/login/pages/error.stories.ts +56 -0
- package/stories/login/pages/frontchannel-logout.stories.ts +26 -0
- package/stories/login/pages/idp-review-user-profile.stories.ts +60 -0
- package/stories/login/pages/info.stories.ts +94 -0
- package/stories/login/pages/login-config-totp.stories.ts +57 -0
- package/stories/login/pages/login-device-verify-user-code.stories.ts +14 -0
- package/stories/login/pages/login-idp-link-confirm-override.stories.ts +17 -0
- package/stories/login/pages/login-idp-link-confirm.stories.ts +103 -0
- package/stories/login/pages/login-idp-link-email.stories.ts +102 -0
- package/stories/login/pages/login-oauth-grant.stories.ts +68 -0
- package/stories/login/pages/login-oauth2-device-verify-user-code.stories.ts +15 -0
- package/stories/login/pages/login-otp.stories.ts +94 -0
- package/stories/login/pages/login-page-expired.stories.ts +31 -0
- package/stories/login/pages/login-passkeys-conditional-authenticate.stories.ts +16 -0
- package/stories/login/pages/login-password.stories.ts +52 -0
- package/stories/login/pages/login-recovery-authn-code-config.stories.ts +31 -0
- package/stories/login/pages/login-recovery-authn-code-input.stories.ts +16 -0
- package/stories/login/pages/login-reset-otp.stories.ts +71 -0
- package/stories/login/pages/login-reset-password.stories.ts +50 -0
- package/stories/login/pages/login-update-password.stories.ts +46 -0
- package/stories/login/pages/login-update-profile.stories.ts +31 -0
- package/stories/login/pages/login-username.stories.ts +28 -0
- package/stories/login/pages/login-verify-email.stories.ts +98 -0
- package/stories/login/pages/login-x509-info.stories.ts +40 -0
- package/stories/login/pages/login.stories.ts +260 -0
- package/stories/login/pages/logout-confirm.stories.ts +44 -0
- package/stories/login/pages/register.stories.ts +230 -0
- package/stories/login/pages/saml-post-form.stories.ts +17 -0
- package/stories/login/pages/select-authenticator.stories.ts +95 -0
- package/stories/login/pages/terms.stories.ts +79 -0
- package/stories/login/pages/update-email.stories.ts +31 -0
- package/stories/login/pages/webauthn-authenticate.stories.ts +126 -0
- package/stories/login/pages/webauthn-error.stories.ts +62 -0
- package/stories/login/pages/webauthn-register.stories.ts +46 -0
- package/account/DefaultPage/public-api.d.ts +0 -1
- package/account/KcContext/public-api.d.ts +0 -1
- package/account/classes/component-reference/public-api.d.ts +0 -1
- package/account/containers/template/index.d.ts +0 -5
- package/account/directives/kc-class/public-api.d.ts +0 -1
- package/account/i18n/public-api.d.ts +0 -1
- package/account/pages/account/public-api.d.ts +0 -1
- package/account/pages/applications/public-api.d.ts +0 -1
- package/account/pages/federatedIdentity/public-api.d.ts +0 -1
- package/account/pages/log/public-api.d.ts +0 -1
- package/account/pages/password/public-api.d.ts +0 -1
- package/account/pages/sessions/public-api.d.ts +0 -1
- package/account/pages/totp/public-api.d.ts +0 -1
- package/account/providers/keycloakify-angular/public-api.d.ts +0 -1
- package/account/public-api.d.ts +0 -1
- package/account/services/account-resource-injector/public-api.d.ts +0 -1
- package/account/services/i18n/public-api.d.ts +0 -1
- package/account/tokens/classes/public-api.d.ts +0 -1
- package/account/tokens/i18n/public-api.d.ts +0 -1
- package/account/tokens/kc-context/public-api.d.ts +0 -1
- package/esm2022/account/DefaultPage/public-api.mjs +0 -2
- package/esm2022/account/KcContext/public-api.mjs +0 -2
- package/esm2022/account/classes/component-reference/public-api.mjs +0 -2
- package/esm2022/account/containers/template/keycloakify-angular-account-containers-template.mjs +0 -5
- package/esm2022/account/containers/template/public-api.mjs +0 -2
- package/esm2022/account/containers/template/template.component.mjs +0 -97
- package/esm2022/account/directives/kc-class/public-api.mjs +0 -2
- package/esm2022/account/i18n/public-api.mjs +0 -2
- package/esm2022/account/pages/account/public-api.mjs +0 -2
- package/esm2022/account/pages/applications/public-api.mjs +0 -2
- package/esm2022/account/pages/federatedIdentity/public-api.mjs +0 -2
- package/esm2022/account/pages/log/public-api.mjs +0 -2
- package/esm2022/account/pages/password/public-api.mjs +0 -2
- package/esm2022/account/pages/sessions/public-api.mjs +0 -2
- package/esm2022/account/pages/totp/public-api.mjs +0 -2
- package/esm2022/account/providers/keycloakify-angular/public-api.mjs +0 -2
- package/esm2022/account/public-api.mjs +0 -2
- package/esm2022/account/services/account-resource-injector/public-api.mjs +0 -2
- package/esm2022/account/services/i18n/public-api.mjs +0 -2
- package/esm2022/account/tokens/classes/public-api.mjs +0 -2
- package/esm2022/account/tokens/i18n/public-api.mjs +0 -2
- package/esm2022/account/tokens/kc-context/public-api.mjs +0 -2
- package/esm2022/lib/directives/attributes/public-api.mjs +0 -2
- package/esm2022/lib/models/script/public-api.mjs +0 -2
- package/esm2022/lib/pipes/input-type/public-api.mjs +0 -2
- package/esm2022/lib/pipes/is-array-with-empty-object/public-api.mjs +0 -2
- package/esm2022/lib/pipes/kc-sanitize/public-api.mjs +0 -2
- package/esm2022/lib/pipes/to-array/public-api.mjs +0 -2
- package/esm2022/lib/pipes/to-number/public-api.mjs +0 -2
- package/esm2022/lib/public-api.mjs +0 -2
- package/esm2022/lib/services/resource-injector/public-api.mjs +0 -2
- package/esm2022/lib/tokens/use-default-css/public-api.mjs +0 -2
- package/esm2022/login/KcContext/public-api.mjs +0 -2
- package/esm2022/login/classes/component-reference/public-api.mjs +0 -2
- package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/public-api.mjs +0 -2
- package/esm2022/login/components/field-errors/public-api.mjs +0 -2
- package/esm2022/login/components/group-label/public-api.mjs +0 -2
- package/esm2022/login/components/input-field-by-type/public-api.mjs +0 -2
- package/esm2022/login/components/input-tag/public-api.mjs +0 -2
- package/esm2022/login/components/input-tag-selects/public-api.mjs +0 -2
- package/esm2022/login/components/logout-other-sessions/public-api.mjs +0 -2
- package/esm2022/login/components/password-wrapper/public-api.mjs +0 -2
- package/esm2022/login/components/select-tag/public-api.mjs +0 -2
- package/esm2022/login/components/textarea-tag/public-api.mjs +0 -2
- package/esm2022/login/components/user-profile-form-fields/public-api.mjs +0 -2
- package/esm2022/login/containers/template/keycloakify-angular-login-containers-template.mjs +0 -5
- package/esm2022/login/containers/template/public-api.mjs +0 -2
- package/esm2022/login/containers/template/template.component.mjs +0 -138
- package/esm2022/login/directives/kc-class/public-api.mjs +0 -2
- package/esm2022/login/i18n/public-api.mjs +0 -2
- package/esm2022/login/pages/code/public-api.mjs +0 -2
- package/esm2022/login/pages/delete-account-confirm/public-api.mjs +0 -2
- package/esm2022/login/pages/delete-credential/public-api.mjs +0 -2
- package/esm2022/login/pages/error/public-api.mjs +0 -2
- package/esm2022/login/pages/frontchannel-logout/public-api.mjs +0 -2
- package/esm2022/login/pages/idp-review-user-profile/public-api.mjs +0 -2
- package/esm2022/login/pages/info/public-api.mjs +0 -2
- package/esm2022/login/pages/login/public-api.mjs +0 -2
- package/esm2022/login/pages/login-config-totp/public-api.mjs +0 -2
- package/esm2022/login/pages/login-idp-link-confirm/public-api.mjs +0 -2
- package/esm2022/login/pages/login-idp-link-confirm-override/public-api.mjs +0 -2
- package/esm2022/login/pages/login-idp-link-email/public-api.mjs +0 -2
- package/esm2022/login/pages/login-oauth-grant/public-api.mjs +0 -2
- package/esm2022/login/pages/login-oauth2-device-verify-user-code/public-api.mjs +0 -2
- package/esm2022/login/pages/login-otp/public-api.mjs +0 -2
- package/esm2022/login/pages/login-page-expired/public-api.mjs +0 -2
- package/esm2022/login/pages/login-passkeys-conditional-authenticate/public-api.mjs +0 -2
- package/esm2022/login/pages/login-password/public-api.mjs +0 -2
- package/esm2022/login/pages/login-recovery-authn-code-config/public-api.mjs +0 -2
- package/esm2022/login/pages/login-recovery-authn-code-input/public-api.mjs +0 -2
- package/esm2022/login/pages/login-reset-otp/public-api.mjs +0 -2
- package/esm2022/login/pages/login-reset-password/public-api.mjs +0 -2
- package/esm2022/login/pages/login-update-password/public-api.mjs +0 -2
- package/esm2022/login/pages/login-update-profile/public-api.mjs +0 -2
- package/esm2022/login/pages/login-username/public-api.mjs +0 -2
- package/esm2022/login/pages/login-verify-email/public-api.mjs +0 -2
- package/esm2022/login/pages/login-x509-info/public-api.mjs +0 -2
- package/esm2022/login/pages/logout-confirm/public-api.mjs +0 -2
- package/esm2022/login/pages/register/public-api.mjs +0 -2
- package/esm2022/login/pages/saml-post-form/public-api.mjs +0 -2
- package/esm2022/login/pages/select-authenticator/public-api.mjs +0 -2
- package/esm2022/login/pages/terms/public-api.mjs +0 -2
- package/esm2022/login/pages/update-email/public-api.mjs +0 -2
- package/esm2022/login/pages/webauthn-authenticate/public-api.mjs +0 -2
- package/esm2022/login/pages/webauthn-error/public-api.mjs +0 -2
- package/esm2022/login/pages/webauthn-register/public-api.mjs +0 -2
- package/esm2022/login/providers/keycloakify-angular/public-api.mjs +0 -2
- package/esm2022/login/public-api.mjs +0 -2
- package/esm2022/login/services/i18n/public-api.mjs +0 -2
- package/esm2022/login/services/login-resource-injector/public-api.mjs +0 -2
- package/esm2022/login/services/user-profile-form/public-api.mjs +0 -2
- package/esm2022/login/tokens/classes/public-api.mjs +0 -2
- package/esm2022/login/tokens/i18n/public-api.mjs +0 -2
- package/esm2022/login/tokens/kc-context/public-api.mjs +0 -2
- package/esm2022/login/tokens/make-user-confirm-password/public-api.mjs +0 -2
- package/esm2022/public-api.mjs +0 -2
- package/fesm2022/keycloakify-angular-account-containers-template.mjs +0 -104
- package/fesm2022/keycloakify-angular-account-containers-template.mjs.map +0 -1
- package/fesm2022/keycloakify-angular-login-containers-template.mjs +0 -145
- package/fesm2022/keycloakify-angular-login-containers-template.mjs.map +0 -1
- package/lib/directives/attributes/public-api.d.ts +0 -1
- package/lib/models/script/public-api.d.ts +0 -1
- package/lib/pipes/input-type/public-api.d.ts +0 -1
- package/lib/pipes/is-array-with-empty-object/public-api.d.ts +0 -1
- package/lib/pipes/kc-sanitize/public-api.d.ts +0 -1
- package/lib/pipes/to-array/public-api.d.ts +0 -1
- package/lib/pipes/to-number/public-api.d.ts +0 -1
- package/lib/public-api.d.ts +0 -1
- package/lib/services/resource-injector/public-api.d.ts +0 -1
- package/lib/tokens/use-default-css/public-api.d.ts +0 -1
- package/login/KcContext/public-api.d.ts +0 -1
- package/login/classes/component-reference/public-api.d.ts +0 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/public-api.d.ts +0 -1
- package/login/components/field-errors/public-api.d.ts +0 -1
- package/login/components/group-label/public-api.d.ts +0 -1
- package/login/components/input-field-by-type/public-api.d.ts +0 -1
- package/login/components/input-tag/public-api.d.ts +0 -1
- package/login/components/input-tag-selects/public-api.d.ts +0 -1
- package/login/components/logout-other-sessions/public-api.d.ts +0 -1
- package/login/components/password-wrapper/public-api.d.ts +0 -1
- package/login/components/select-tag/public-api.d.ts +0 -1
- package/login/components/textarea-tag/public-api.d.ts +0 -1
- package/login/components/user-profile-form-fields/public-api.d.ts +0 -1
- package/login/containers/template/index.d.ts +0 -5
- package/login/directives/kc-class/public-api.d.ts +0 -1
- package/login/i18n/public-api.d.ts +0 -1
- package/login/pages/code/public-api.d.ts +0 -1
- package/login/pages/delete-account-confirm/public-api.d.ts +0 -1
- package/login/pages/delete-credential/public-api.d.ts +0 -1
- package/login/pages/error/public-api.d.ts +0 -1
- package/login/pages/frontchannel-logout/public-api.d.ts +0 -1
- package/login/pages/idp-review-user-profile/public-api.d.ts +0 -1
- package/login/pages/info/public-api.d.ts +0 -1
- package/login/pages/login/public-api.d.ts +0 -1
- package/login/pages/login-config-totp/public-api.d.ts +0 -1
- package/login/pages/login-idp-link-confirm/public-api.d.ts +0 -1
- package/login/pages/login-idp-link-confirm-override/public-api.d.ts +0 -1
- package/login/pages/login-idp-link-email/public-api.d.ts +0 -1
- package/login/pages/login-oauth-grant/public-api.d.ts +0 -1
- package/login/pages/login-oauth2-device-verify-user-code/public-api.d.ts +0 -1
- package/login/pages/login-otp/public-api.d.ts +0 -1
- package/login/pages/login-page-expired/public-api.d.ts +0 -1
- package/login/pages/login-passkeys-conditional-authenticate/public-api.d.ts +0 -1
- package/login/pages/login-password/public-api.d.ts +0 -1
- package/login/pages/login-recovery-authn-code-config/public-api.d.ts +0 -1
- package/login/pages/login-recovery-authn-code-input/public-api.d.ts +0 -1
- package/login/pages/login-reset-otp/public-api.d.ts +0 -1
- package/login/pages/login-reset-password/public-api.d.ts +0 -1
- package/login/pages/login-update-password/public-api.d.ts +0 -1
- package/login/pages/login-update-profile/public-api.d.ts +0 -1
- package/login/pages/login-username/public-api.d.ts +0 -1
- package/login/pages/login-verify-email/public-api.d.ts +0 -1
- package/login/pages/login-x509-info/public-api.d.ts +0 -1
- package/login/pages/logout-confirm/public-api.d.ts +0 -1
- package/login/pages/register/public-api.d.ts +0 -1
- package/login/pages/saml-post-form/public-api.d.ts +0 -1
- package/login/pages/select-authenticator/public-api.d.ts +0 -1
- package/login/pages/terms/public-api.d.ts +0 -1
- package/login/pages/update-email/public-api.d.ts +0 -1
- package/login/pages/webauthn-authenticate/public-api.d.ts +0 -1
- package/login/pages/webauthn-error/public-api.d.ts +0 -1
- package/login/pages/webauthn-register/public-api.d.ts +0 -1
- package/login/providers/keycloakify-angular/public-api.d.ts +0 -1
- package/login/public-api.d.ts +0 -1
- package/login/services/i18n/public-api.d.ts +0 -1
- package/login/services/login-resource-injector/public-api.d.ts +0 -1
- package/login/services/user-profile-form/public-api.d.ts +0 -1
- package/login/tokens/classes/public-api.d.ts +0 -1
- package/login/tokens/i18n/public-api.d.ts +0 -1
- package/login/tokens/kc-context/public-api.d.ts +0 -1
- package/login/tokens/make-user-confirm-password/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -1
- package/src/bin/tools/runFormat.ts +0 -71
- package/src/stories/login/pages/login/login.stories.ts +0 -146
- /package/{src/login/containers/template/index.ts → account/template/index.d.ts} +0 -0
- /package/{src/account/containers/template/index.ts → login/template/index.d.ts} +0 -0
- /package/{login/containers/template/public-api.d.ts → src/account/template/index.ts} +0 -0
- /package/{account/containers/template/public-api.d.ts → src/login/template/index.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-authenticate.mjs","sources":["../../src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts","../../src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html","../../src/login/pages/webauthn-authenticate/keycloakify-angular-login-pages-webauthn-authenticate.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { type ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n standalone: true,\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-authenticate',\n templateUrl: 'webauthn-authenticate.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnAuthenticateComponent)\n }\n ]\n})\nexport class WebauthnAuthenticateComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-authenticate.ftl' }>>(KC_LOGIN_CONTEXT);\n loginResourceInjectorService = inject(LoginResourceInjectorService);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n authButtonId = 'authenticateWebAuthnButton';\n\n constructor() {\n super();\n const { url, isUserIdentified, challenge, userVerification, rpId, createTimeout } = this.kcContext;\n const scripts: Script[] = [\n {\n type: 'module',\n id: 'WebAuthnAuthenticateScript',\n textContent: `\n import { authenticateByWebAuthn } from \"${url.resourcesPath}/js/webauthnAuthenticate.js\";\n const authButton = document.getElementById('${this.authButtonId}');\n authButton.addEventListener(\"click\", function() {\n const input = {\n isUserIdentified : ${isUserIdentified},\n challenge : '${challenge}',\n userVerification : '${userVerification}',\n rpId : '${rpId}',\n createTimeout : ${createTimeout},\n errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}\n };\n authenticateByWebAuthn(input);\n });\n `\n }\n ];\n this.loginResourceInjectorService.insertAdditionalScripts(scripts);\n }\n\n selectAuthListItemIconClass(iconClass: string) {\n const kcClsx = getKcClsx({\n doUseDefaultCss: this.doUseDefaultCss ?? true,\n classes: this.classes\n }).kcClsx;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const className = kcClsx(iconClass as any);\n if (className === iconClass) {\n return kcClsx('kcWebAuthnDefaultIcon');\n }\n return className;\n }\n}\n","@let url = kcContext.url;\n@let authenticators = kcContext.authenticators;\n@let shouldDisplayAuthenticators = kcContext.shouldDisplayAuthenticators;\n\n<ng-template #headerNode>\n {{ i18n.msgStr('webauthn-login-title') }}\n</ng-template>\n<ng-template #infoNode>\n @let url = kcContext.url;\n <div id=\"kc-registration\">\n <span>\n {{ i18n.msgStr('noAccount') }}\n <a\n tabIndex=\"6\"\n [href]=\"url.registrationUrl\"\n >\n {{ i18n.msgStr('doRegister') }}\n </a>\n </span>\n </div>\n</ng-template>\n<div\n id=\"kc-form-webauthn\"\n [kcClass]=\"'kcFormClass'\"\n>\n <form\n id=\"webauth\"\n method=\"post\"\n [action]=\"url.loginAction\"\n >\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorData\"\n name=\"authenticatorData\"\n />\n <input\n type=\"hidden\"\n id=\"signature\"\n name=\"signature\"\n />\n <input\n type=\"hidden\"\n id=\"credentialId\"\n name=\"credentialId\"\n />\n <input\n type=\"hidden\"\n id=\"userHandle\"\n name=\"userHandle\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n </form>\n\n <div\n class=\"no-bottom-margin\"\n [kcClass]=\"'kcFormGroupClass'\"\n >\n @if (authenticators) {\n <form\n id=\"authn_select\"\n [kcClass]=\"'kcFormClass'\"\n >\n @for (authenticator of authenticators.authenticators; track authenticator.credentialId) {\n <input\n type=\"hidden\"\n name=\"authn_use_chk\"\n [value]=\"authenticator.credentialId\"\n />\n }\n @if (shouldDisplayAuthenticators) {\n @if (authenticators.authenticators.length > 1) {\n <p [kcClass]=\"'kcSelectAuthListItemTitle'\">\n {{ i18n.msgStr('webauthn-available-authenticators') }}\n </p>\n }\n <div [kcClass]=\"'kcFormOptionsClass'\">\n @for (authenticator of authenticators.authenticators; track authenticator.credentialId; let i = $index) {\n <div\n [id]=\"'kc-webauthn-authenticator-item-' + i\"\n [kcClass]=\"'kcSelectAuthListItemClass'\"\n >\n <div [kcClass]=\"'kcSelectAuthListItemIconClass'\">\n <i\n [ngClass]=\"selectAuthListItemIconClass(authenticator.transports.iconClass)\"\n [kcClass]=\"'kcSelectAuthListItemIconPropertyClass'\"\n ></i>\n <div [kcClass]=\"'kcSelectAuthListItemArrowIconClass'\">\n <div\n [id]=\"'kc-webauthn-authenticator-label-' + i\"\n [kcClass]=\"'kcSelectAuthListItemHeadingClass'\"\n >\n {{ i18n.advancedMsgStr(authenticator.label) }}\n </div>\n @if (authenticator.transports.displayNameProperties?.length) {\n <div\n [id]=\"'kc-webauthn-authenticator-transport-' + i\"\n [kcClass]=\"'kcSelectAuthListItemDescriptionClass'\"\n >\n @for (\n displayNameProperty of authenticator.transports.displayNameProperties;\n track displayNameProperty;\n let last = $last\n ) {\n {{ i18n.advancedMsgStr(displayNameProperty) }}\n @if (!last) {\n <span>, </span>\n }\n }\n </div>\n <div [kcClass]=\"'kcSelectAuthListItemDescriptionClass'\">\n <span [id]=\"'kc-webauthn-authenticator-createdlabel-' + i\">\n {{ i18n.msgStr('webauthn-createdAt-label') }}\n </span>\n <span [id]=\"'kc-webauthn-authenticator-created-' + i\">{{ authenticator.createdAt }}</span>\n </div>\n <div [kcClass]=\"'kcSelectAuthListItemFillClass'\"></div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </form>\n }\n\n <div\n id=\"kc-form-buttons\"\n [kcClass]=\"'kcFormButtonsClass'\"\n >\n <input\n type=\"button\"\n autofocus\n name=\"cancel-aia\"\n [id]=\"authButtonId\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('webauthn-doAuthenticate')\"\n />\n </div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;AA2BM,MAAO,6BAA8B,SAAQ,kBAAkB,CAAA;AAqBjE,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE,CAAC;AArBZ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA8D,gBAAgB,CAAC,CAAC;AAClG,QAAA,IAAA,CAAA,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AACpE,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC,CAAC;AAEvB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;AACnD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC,CAAC;QAK5E,IAAqB,CAAA,qBAAA,GAAG,KAAK,CAAC;QAC9B,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC;QACpB,IAAc,CAAA,cAAA,GAAG,IAAI,CAAC;AAEtB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,CAAC,CAAC;AAC/D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,CAAC,CAAC;AAC3D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS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AA4B,CAAC,EAC/C,QAAA,EAAA,0BAA0B,EAEnB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,mCAAmC,CAAC;AAC/D,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,ivMAAA,EAAA,CAAA;;;AEzBL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-authenticate.mjs","sources":["../../src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts","../../src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html","../../src/login/pages/webauthn-authenticate/keycloakify-angular-login-pages-webauthn-authenticate.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { type ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n standalone: true,\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-authenticate',\n templateUrl: 'webauthn-authenticate.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnAuthenticateComponent)\n }\n ]\n})\nexport class WebauthnAuthenticateComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-authenticate.ftl' }>>(KC_LOGIN_CONTEXT);\n loginResourceInjectorService = inject(LoginResourceInjectorService);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n authButtonId = 'authenticateWebAuthnButton';\n\n constructor() {\n super();\n const { url, isUserIdentified, challenge, userVerification, rpId, createTimeout } = this.kcContext;\n const scripts: Script[] = [\n {\n type: 'module',\n id: 'WebAuthnAuthenticateScript',\n textContent: `\n import { authenticateByWebAuthn } from \"${url.resourcesPath}/js/webauthnAuthenticate.js\";\n const authButton = document.getElementById('${this.authButtonId}');\n authButton.addEventListener(\"click\", function() {\n const input = {\n isUserIdentified : ${isUserIdentified},\n challenge : '${challenge}',\n userVerification : '${userVerification}',\n rpId : '${rpId}',\n createTimeout : ${createTimeout},\n errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}\n };\n authenticateByWebAuthn(input);\n });\n `\n }\n ];\n this.loginResourceInjectorService.insertAdditionalScripts(scripts);\n }\n\n selectAuthListItemIconClass(iconClass: string) {\n const kcClsx = getKcClsx({\n doUseDefaultCss: this.doUseDefaultCss ?? true,\n classes: this.classes\n }).kcClsx;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const className = kcClsx(iconClass as any);\n if (className === iconClass) {\n return kcClsx('kcWebAuthnDefaultIcon');\n }\n return className;\n }\n}\n","@let url = kcContext.url;\n@let authenticators = kcContext.authenticators;\n@let shouldDisplayAuthenticators = kcContext.shouldDisplayAuthenticators;\n\n<ng-template #headerNode>\n {{ i18n.msgStr('webauthn-login-title') }}\n</ng-template>\n<ng-template #infoNode>\n @let url = kcContext.url;\n <div id=\"kc-registration\">\n <span>\n {{ i18n.msgStr('noAccount') }}\n <a\n tabIndex=\"6\"\n [href]=\"url.registrationUrl\"\n >\n {{ i18n.msgStr('doRegister') }}\n </a>\n </span>\n </div>\n</ng-template>\n<div\n id=\"kc-form-webauthn\"\n [kcClass]=\"'kcFormClass'\"\n>\n <form\n id=\"webauth\"\n method=\"post\"\n [action]=\"url.loginAction\"\n >\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorData\"\n name=\"authenticatorData\"\n />\n <input\n type=\"hidden\"\n id=\"signature\"\n name=\"signature\"\n />\n <input\n type=\"hidden\"\n id=\"credentialId\"\n name=\"credentialId\"\n />\n <input\n type=\"hidden\"\n id=\"userHandle\"\n name=\"userHandle\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n </form>\n\n <div\n class=\"no-bottom-margin\"\n [kcClass]=\"'kcFormGroupClass'\"\n >\n @if (authenticators) {\n <form\n id=\"authn_select\"\n [kcClass]=\"'kcFormClass'\"\n >\n @for (authenticator of authenticators.authenticators; track authenticator.credentialId) {\n <input\n type=\"hidden\"\n name=\"authn_use_chk\"\n [value]=\"authenticator.credentialId\"\n />\n }\n @if (shouldDisplayAuthenticators) {\n @if (authenticators.authenticators.length > 1) {\n <p [kcClass]=\"'kcSelectAuthListItemTitle'\">\n {{ i18n.msgStr('webauthn-available-authenticators') }}\n </p>\n }\n <div [kcClass]=\"'kcFormOptionsClass'\">\n @for (authenticator of authenticators.authenticators; track authenticator.credentialId; let i = $index) {\n <div\n [id]=\"'kc-webauthn-authenticator-item-' + i\"\n [kcClass]=\"'kcSelectAuthListItemClass'\"\n >\n <div [kcClass]=\"'kcSelectAuthListItemIconClass'\">\n <i\n [ngClass]=\"selectAuthListItemIconClass(authenticator.transports.iconClass)\"\n [kcClass]=\"'kcSelectAuthListItemIconPropertyClass'\"\n ></i>\n <div [kcClass]=\"'kcSelectAuthListItemArrowIconClass'\">\n <div\n [id]=\"'kc-webauthn-authenticator-label-' + i\"\n [kcClass]=\"'kcSelectAuthListItemHeadingClass'\"\n >\n {{ i18n.advancedMsgStr(authenticator.label) }}\n </div>\n @if (authenticator.transports.displayNameProperties?.length) {\n <div\n [id]=\"'kc-webauthn-authenticator-transport-' + i\"\n [kcClass]=\"'kcSelectAuthListItemDescriptionClass'\"\n >\n @for (\n displayNameProperty of authenticator.transports.displayNameProperties;\n track displayNameProperty;\n let last = $last\n ) {\n {{ i18n.advancedMsgStr(displayNameProperty) }}\n @if (!last) {\n <span>, </span>\n }\n }\n </div>\n <div [kcClass]=\"'kcSelectAuthListItemDescriptionClass'\">\n <span [id]=\"'kc-webauthn-authenticator-createdlabel-' + i\">\n {{ i18n.msgStr('webauthn-createdAt-label') }}\n </span>\n <span [id]=\"'kc-webauthn-authenticator-created-' + i\">{{ authenticator.createdAt }}</span>\n </div>\n <div [kcClass]=\"'kcSelectAuthListItemFillClass'\"></div>\n }\n </div>\n </div>\n </div>\n }\n </div>\n }\n </form>\n }\n\n <div\n id=\"kc-form-buttons\"\n [kcClass]=\"'kcFormButtonsClass'\"\n >\n <input\n type=\"button\"\n autofocus\n name=\"cancel-aia\"\n [id]=\"authButtonId\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('webauthn-doAuthenticate')\"\n />\n </div>\n </div>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AA2BM,MAAO,6BAA8B,SAAQ,kBAAkB,CAA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AA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,ivMAsJA,4CDtIc,gBAAgB,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAWjB,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAbzC,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,EAC/C,QAAA,EAAA,0BAA0B,EAEnB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,mCAAmC;AAC9D;AACJ,qBAAA,EAAA,QAAA,EAAA,ivMAAA,EAAA;;;AEzBL;;AAEG;;;;"}
|
|
@@ -30,15 +30,15 @@ class WebauthnErrorComponent extends ComponentReference {
|
|
|
30
30
|
// @ts-expect-error: Trusted Keycloak's code
|
|
31
31
|
document.getElementById('kc-error-credential-form').submit();
|
|
32
32
|
}
|
|
33
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
34
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: WebauthnErrorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.11", type: WebauthnErrorComponent, isStandalone: true, selector: "kc-webauthn-error", providers: [
|
|
35
35
|
{
|
|
36
36
|
provide: ComponentReference,
|
|
37
37
|
useExisting: forwardRef(() => WebauthnErrorComponent)
|
|
38
38
|
}
|
|
39
39
|
], viewQueries: [{ propertyName: "headerNode", first: true, predicate: ["headerNode"], descendants: true, isSignal: true }, { propertyName: "infoNode", first: true, predicate: ["infoNode"], descendants: true, isSignal: true }, { propertyName: "socialProvidersNode", first: true, predicate: ["socialProvidersNode"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@let url = kcContext.url;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n {{ i18n.msgStr('webauthn-error-title') }}\n</ng-template>\n<form\n id=\"kc-error-credential-form\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <input\n type=\"hidden\"\n id=\"executionValue\"\n name=\"authenticationExecution\"\n />\n <input\n type=\"hidden\"\n id=\"isSetRetry\"\n name=\"isSetRetry\"\n />\n</form>\n<input\n tabIndex=\"4\"\n type=\"button\"\n name=\"try-again\"\n id=\"kc-try-again\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('doTryAgain')\"\n (click)=\"onClick()\"\n/>\n@if (isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n", dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: WebauthnErrorComponent, decorators: [{
|
|
42
42
|
type: Component,
|
|
43
43
|
args: [{ standalone: true, imports: [KcClassDirective, LogoutOtherSessionsComponent], selector: 'kc-webauthn-error', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
44
44
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-error.mjs","sources":["../../src/login/pages/webauthn-error/webauthn-error.component.ts","../../src/login/pages/webauthn-error/webauthn-error.component.html","../../src/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n standalone: true,\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-error',\n templateUrl: 'webauthn-error.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnErrorComponent)\n }\n ]\n})\nexport class WebauthnErrorComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-error.ftl' }>>(KC_LOGIN_CONTEXT);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n onClick() {\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('isSetRetry').value = 'retry';\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('executionValue').value = '${execution}';\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('kc-error-credential-form').submit();\n }\n}\n","@let url = kcContext.url;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n {{ i18n.msgStr('webauthn-error-title') }}\n</ng-template>\n<form\n id=\"kc-error-credential-form\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <input\n type=\"hidden\"\n id=\"executionValue\"\n name=\"authenticationExecution\"\n />\n <input\n type=\"hidden\"\n id=\"isSetRetry\"\n name=\"isSetRetry\"\n />\n</form>\n<input\n tabIndex=\"4\"\n type=\"button\"\n name=\"try-again\"\n id=\"kc-try-again\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('doTryAgain')\"\n (click)=\"onClick()\"\n/>\n@if (isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-error.mjs","sources":["../../src/login/pages/webauthn-error/webauthn-error.component.ts","../../src/login/pages/webauthn-error/webauthn-error.component.html","../../src/login/pages/webauthn-error/keycloakify-angular-login-pages-webauthn-error.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n standalone: true,\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-error',\n templateUrl: 'webauthn-error.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnErrorComponent)\n }\n ]\n})\nexport class WebauthnErrorComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-error.ftl' }>>(KC_LOGIN_CONTEXT);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n onClick() {\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('isSetRetry').value = 'retry';\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('executionValue').value = '${execution}';\n // @ts-expect-error: Trusted Keycloak's code\n document.getElementById('kc-error-credential-form').submit();\n }\n}\n","@let url = kcContext.url;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n {{ i18n.msgStr('webauthn-error-title') }}\n</ng-template>\n<form\n id=\"kc-error-credential-form\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <input\n type=\"hidden\"\n id=\"executionValue\"\n name=\"authenticationExecution\"\n />\n <input\n type=\"hidden\"\n id=\"isSetRetry\"\n name=\"isSetRetry\"\n />\n</form>\n<input\n tabIndex=\"4\"\n type=\"button\"\n name=\"try-again\"\n id=\"kc-try-again\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [value]=\"i18n.msgStr('doTryAgain')\"\n (click)=\"onClick()\"\n/>\n@if (isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAyBM,MAAO,sBAAuB,SAAQ,kBAAkB,CAAA;AAb9D,IAAA,WAAA,GAAA;;AAcI,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAuD,gBAAgB,CAAC;AAC1F,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AAEtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;QAK3E,IAAqB,CAAA,qBAAA,GAAG,KAAK;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK;QACnB,IAAc,CAAA,cAAA,GAAG,IAAI;AAErB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,CAAC;AAC9D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,CAAC;AAC1D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS,CAA2B,qBAAqB,CAAC;AAUnF;IARG,OAAO,GAAA;;QAEH,QAAQ,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAAK,GAAG,OAAO;;QAErD,QAAQ,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC,KAAK,GAAG,cAAc;;QAEhE,QAAQ,CAAC,cAAc,CAAC,0BAA0B,CAAC,CAAC,MAAM,EAAE;;+GAxBvD,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,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EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,4BAA4B;AACvD;AACJ,qBAAA,EAAA,QAAA,EAAA,+0CAAA,EAAA;;;AEvBL;;AAEG;;;;"}
|
|
@@ -57,15 +57,15 @@ class WebauthnRegisterComponent extends ComponentReference {
|
|
|
57
57
|
];
|
|
58
58
|
this.loginResourceInjectorService.insertAdditionalScripts(scripts);
|
|
59
59
|
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: WebauthnRegisterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.11", type: WebauthnRegisterComponent, isStandalone: true, selector: "kc-webauthn-register", providers: [
|
|
62
62
|
{
|
|
63
63
|
provide: ComponentReference,
|
|
64
64
|
useExisting: forwardRef(() => WebauthnRegisterComponent)
|
|
65
65
|
}
|
|
66
66
|
], viewQueries: [{ propertyName: "headerNode", first: true, predicate: ["headerNode"], descendants: true, isSignal: true }, { propertyName: "infoNode", first: true, predicate: ["infoNode"], descendants: true, isSignal: true }, { propertyName: "socialProvidersNode", first: true, predicate: ["socialProvidersNode"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@let url = kcContext.url;\n@let isSetRetry = kcContext.isSetRetry;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n <span [kcClass]=\"'kcWebAuthnKeyIcon'\"></span>\n {{ i18n.msgStr('webauthn-registration-title') }}\n</ng-template>\n<form\n id=\"register\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"attestationObject\"\n name=\"attestationObject\"\n />\n <input\n type=\"hidden\"\n id=\"publicKeyCredentialId\"\n name=\"publicKeyCredentialId\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorLabel\"\n name=\"authenticatorLabel\"\n />\n <input\n type=\"hidden\"\n id=\"transports\"\n name=\"transports\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n <kc-logout-other-sessions />\n </div>\n</form>\n<input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [id]=\"authButtonId\"\n [value]=\"i18n.msgStr('doRegisterSecurityKey')\"\n/>\n@if (!isSetRetry && isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n", dependencies: [{ kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }, { kind: "component", type: LogoutOtherSessionsComponent, selector: "kc-logout-other-sessions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: WebauthnRegisterComponent, decorators: [{
|
|
69
69
|
type: Component,
|
|
70
70
|
args: [{ standalone: true, imports: [KcClassDirective, LogoutOtherSessionsComponent], selector: 'kc-webauthn-register', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
71
71
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-register.mjs","sources":["../../src/login/pages/webauthn-register/webauthn-register.component.ts","../../src/login/pages/webauthn-register/webauthn-register.component.html","../../src/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n standalone: true,\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-register',\n templateUrl: 'webauthn-register.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnRegisterComponent)\n }\n ]\n})\nexport class WebauthnRegisterComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-register.ftl' }>>(KC_LOGIN_CONTEXT);\n loginResourceInjectorService = inject(LoginResourceInjectorService);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n authButtonId = 'authenticateWebAuthnButton';\n\n constructor() {\n super();\n const {\n url,\n challenge,\n userid,\n username,\n signatureAlgorithms,\n rpEntityName,\n rpId,\n attestationConveyancePreference,\n authenticatorAttachment,\n requireResidentKey,\n userVerificationRequirement,\n createTimeout,\n excludeCredentialIds\n } = this.kcContext;\n const scripts: Script[] = [\n {\n type: 'module',\n id: 'WebAuthnRegisterScript',\n textContent: `\n import { registerByWebAuthn } from \"${url.resourcesPath}/js/webauthnRegister.js\";\n const registerButton = document.getElementById('${this.authButtonId}');\n registerButton.addEventListener(\"click\", function() {\n const input = {\n challenge : '${challenge}',\n userid : '${userid}',\n username : '${username}',\n signatureAlgorithms : ${JSON.stringify(signatureAlgorithms)},\n rpEntityName : ${JSON.stringify(rpEntityName)},\n rpId : ${JSON.stringify(rpId)},\n attestationConveyancePreference : ${JSON.stringify(attestationConveyancePreference)},\n authenticatorAttachment : ${JSON.stringify(authenticatorAttachment)},\n requireResidentKey : ${JSON.stringify(requireResidentKey)},\n userVerificationRequirement : ${JSON.stringify(userVerificationRequirement)},\n createTimeout : ${createTimeout},\n excludeCredentialIds : ${JSON.stringify(excludeCredentialIds)},\n initLabel : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label'))},\n initLabelPrompt : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label-prompt'))},\n errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}\n };\n registerByWebAuthn(input);\n });\n `\n }\n ];\n this.loginResourceInjectorService.insertAdditionalScripts(scripts);\n }\n}\n","@let url = kcContext.url;\n@let isSetRetry = kcContext.isSetRetry;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n <span [kcClass]=\"'kcWebAuthnKeyIcon'\"></span>\n {{ i18n.msgStr('webauthn-registration-title') }}\n</ng-template>\n<form\n id=\"register\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"attestationObject\"\n name=\"attestationObject\"\n />\n <input\n type=\"hidden\"\n id=\"publicKeyCredentialId\"\n name=\"publicKeyCredentialId\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorLabel\"\n name=\"authenticatorLabel\"\n />\n <input\n type=\"hidden\"\n id=\"transports\"\n name=\"transports\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n <kc-logout-other-sessions />\n </div>\n</form>\n<input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [id]=\"authButtonId\"\n [value]=\"i18n.msgStr('doRegisterSecurityKey')\"\n/>\n@if (!isSetRetry && isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA2BM,MAAO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AA,EAAA,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,EAC/C,QAAA,EAAA,sBAAsB,EAEf,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,+BAA+B,CAAC;AAC3D,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,ogEAAA,EAAA,CAAA;;;AEzBL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-pages-webauthn-register.mjs","sources":["../../src/login/pages/webauthn-register/webauthn-register.component.ts","../../src/login/pages/webauthn-register/webauthn-register.component.html","../../src/login/pages/webauthn-register/keycloakify-angular-login-pages-webauthn-register.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, forwardRef, inject, type TemplateRef, viewChild } from '@angular/core';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';\nimport { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';\nimport { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\n@Component({\n standalone: true,\n imports: [KcClassDirective, LogoutOtherSessionsComponent],\n selector: 'kc-webauthn-register',\n templateUrl: 'webauthn-register.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: ComponentReference,\n useExisting: forwardRef(() => WebauthnRegisterComponent)\n }\n ]\n})\nexport class WebauthnRegisterComponent extends ComponentReference {\n kcContext = inject<Extract<KcContext, { pageId: 'webauthn-register.ftl' }>>(KC_LOGIN_CONTEXT);\n loginResourceInjectorService = inject(LoginResourceInjectorService);\n i18n = inject<I18n>(LOGIN_I18N);\n\n override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);\n override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);\n\n documentTitle: string | undefined;\n bodyClassName: string | undefined;\n\n displayRequiredFields = false;\n displayInfo = false;\n displayMessage = true;\n\n headerNode = viewChild<TemplateRef<HTMLElement>>('headerNode');\n infoNode = viewChild<TemplateRef<HTMLElement>>('infoNode');\n socialProvidersNode = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');\n\n authButtonId = 'authenticateWebAuthnButton';\n\n constructor() {\n super();\n const {\n url,\n challenge,\n userid,\n username,\n signatureAlgorithms,\n rpEntityName,\n rpId,\n attestationConveyancePreference,\n authenticatorAttachment,\n requireResidentKey,\n userVerificationRequirement,\n createTimeout,\n excludeCredentialIds\n } = this.kcContext;\n const scripts: Script[] = [\n {\n type: 'module',\n id: 'WebAuthnRegisterScript',\n textContent: `\n import { registerByWebAuthn } from \"${url.resourcesPath}/js/webauthnRegister.js\";\n const registerButton = document.getElementById('${this.authButtonId}');\n registerButton.addEventListener(\"click\", function() {\n const input = {\n challenge : '${challenge}',\n userid : '${userid}',\n username : '${username}',\n signatureAlgorithms : ${JSON.stringify(signatureAlgorithms)},\n rpEntityName : ${JSON.stringify(rpEntityName)},\n rpId : ${JSON.stringify(rpId)},\n attestationConveyancePreference : ${JSON.stringify(attestationConveyancePreference)},\n authenticatorAttachment : ${JSON.stringify(authenticatorAttachment)},\n requireResidentKey : ${JSON.stringify(requireResidentKey)},\n userVerificationRequirement : ${JSON.stringify(userVerificationRequirement)},\n createTimeout : ${createTimeout},\n excludeCredentialIds : ${JSON.stringify(excludeCredentialIds)},\n initLabel : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label'))},\n initLabelPrompt : ${JSON.stringify(this.i18n.msgStr('webauthn-registration-init-label-prompt'))},\n errmsg : ${JSON.stringify(this.i18n.msgStr('webauthn-unsupported-browser-text'))}\n };\n registerByWebAuthn(input);\n });\n `\n }\n ];\n this.loginResourceInjectorService.insertAdditionalScripts(scripts);\n }\n}\n","@let url = kcContext.url;\n@let isSetRetry = kcContext.isSetRetry;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n\n<ng-template #headerNode>\n <span [kcClass]=\"'kcWebAuthnKeyIcon'\"></span>\n {{ i18n.msgStr('webauthn-registration-title') }}\n</ng-template>\n<form\n id=\"register\"\n method=\"post\"\n [kcClass]=\"'kcFormClass'\"\n [action]=\"url.loginAction\"\n>\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n id=\"clientDataJSON\"\n name=\"clientDataJSON\"\n />\n <input\n type=\"hidden\"\n id=\"attestationObject\"\n name=\"attestationObject\"\n />\n <input\n type=\"hidden\"\n id=\"publicKeyCredentialId\"\n name=\"publicKeyCredentialId\"\n />\n <input\n type=\"hidden\"\n id=\"authenticatorLabel\"\n name=\"authenticatorLabel\"\n />\n <input\n type=\"hidden\"\n id=\"transports\"\n name=\"transports\"\n />\n <input\n type=\"hidden\"\n id=\"error\"\n name=\"error\"\n />\n <kc-logout-other-sessions />\n </div>\n</form>\n<input\n type=\"submit\"\n [kcClass]=\"['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n [id]=\"authButtonId\"\n [value]=\"i18n.msgStr('doRegisterSecurityKey')\"\n/>\n@if (!isSetRetry && isAppInitiatedAction) {\n <form\n id=\"kc-webauthn-settings-form\"\n method=\"post\"\n [action]=\"url.loginAction\"\n [kcClass]=\"'kcFormClass'\"\n >\n <button\n type=\"submit\"\n id=\"cancelWebAuthnAIA\"\n name=\"cancel-aia\"\n value=\"true\"\n [kcClass]=\"['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']\"\n >\n {{ i18n.msgStr('doCancel') }}\n </button>\n </form>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AA2BM,MAAO,yBAA0B,SAAQ,kBAAkB,CAAA;AAqB7D,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE;AArBX,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAA0D,gBAAgB,CAAC;AAC7F,QAAA,IAAA,CAAA,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,CAAC;AACnE,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAO,UAAU,CAAC;AAEtB,QAAA,IAAA,CAAA,eAAe,GAAG,MAAM,CAAU,eAAe,CAAC;AAClD,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAoC,aAAa,CAAC;QAK3E,IAAqB,CAAA,qBAAA,GAAG,KAAK;QAC7B,IAAW,CAAA,WAAA,GAAG,KAAK;QACnB,IAAc,CAAA,cAAA,GAAG,IAAI;AAErB,QAAA,IAAA,CAAA,UAAU,GAAG,SAAS,CAA2B,YAAY,CAAC;AAC9D,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAA2B,UAAU,CAAC;AAC1D,QAAA,IAAA,CAAA,mBAAmB,GAAG,SAAS,CAA2B,qBAAqB,CAAC;QAEhF,IAAY,CAAA,YAAA,GAAG,4BAA4B;AAIvC,QAAA,MAAM,EACF,GAAG,EACH,SAAS,EACT,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,YAAY,EACZ,IAAI,EACJ,+BAA+B,EAC/B,uBAAuB,EACvB,kBAAkB,EAClB,2BAA2B,EAC3B,aAAa,EACb,oBAAoB,EACvB,GAAG,IAAI,CAAC,SAAS;AAClB,QAAA,MAAM,OAAO,GAAa;AACtB,YAAA;AACI,gBAAA,IAAI,EAAE,QA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,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACP,OAAA,EAAA,CAAC,gBAAgB,EAAE,4BAA4B,CAAC,EAC/C,QAAA,EAAA,sBAAsB,EAEf,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,WAAW,EAAE,UAAU,CAAC,+BAA+B;AAC1D;AACJ,qBAAA,EAAA,QAAA,EAAA,ogEAAA,EAAA;;;AEzBL;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-providers-keycloakify-angular.mjs","sources":["../../src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts","../../src/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { APP_INITIALIZER, LOCALE_ID, makeEnvironmentProviders } from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { I18nService } from '@keycloakify/angular/login/services/i18n';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';\nimport { type KcContextLike } from 'keycloakify/login/i18n/noJsx';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\nexport type KeycloakifyAngularLoginConfig = {\n doMakeUserConfirmPassword?: boolean;\n doUseDefaultCss?: boolean;\n classes?: { [key in ClassKey]?: string };\n kcContext: unknown;\n getI18n: (params: { kcContext: KcContextLike }) => {\n i18n: unknown;\n prI18n_currentLanguage: Promise<unknown> | undefined;\n };\n};\n\nexport const provideKeycloakifyAngular = (config: KeycloakifyAngularLoginConfig) =>\n makeEnvironmentProviders([\n {\n provide: KC_LOGIN_CONTEXT,\n useValue: config.kcContext\n },\n {\n provide: DO_MAKE_USER_CONFIRM_PASSWORD,\n useValue: config?.doMakeUserConfirmPassword ?? true\n },\n {\n provide: LOCALE_ID,\n useFactory: (document: Document) => {\n return document.documentElement.lang ?? 'en';\n },\n deps: [DOCUMENT]\n },\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: (i18nService: I18nService, kcContext: KcContext) => async () => {\n const getI18n = config.getI18n;\n\n const { i18n, prI18n_currentLanguage } = getI18n({\n kcContext\n });\n let i18nPromise = new Promise<typeof i18n>(resolve => resolve(i18n));\n if (prI18n_currentLanguage) {\n i18nPromise = prI18n_currentLanguage;\n }\n return i18nPromise.then(i18n => {\n i18nService.i18n = i18n;\n return true;\n });\n },\n deps: [I18nService, KC_LOGIN_CONTEXT]\n },\n {\n provide: LOGIN_I18N,\n useFactory: (i18nService: I18nService) => i18nService.i18n,\n deps: [I18nService]\n },\n { provide: USE_DEFAULT_CSS, useValue: config?.doUseDefaultCss ?? true },\n { provide: LOGIN_CLASSES, useValue: config?.classes ?? {} }\n ]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-providers-keycloakify-angular.mjs","sources":["../../src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts","../../src/login/providers/keycloakify-angular/keycloakify-angular-login-providers-keycloakify-angular.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport { APP_INITIALIZER, LOCALE_ID, makeEnvironmentProviders } from '@angular/core';\nimport { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { I18nService } from '@keycloakify/angular/login/services/i18n';\nimport { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';\nimport { type KcContextLike } from 'keycloakify/login/i18n/noJsx';\nimport type { ClassKey } from 'keycloakify/login/lib/kcClsx';\n\nexport type KeycloakifyAngularLoginConfig = {\n doMakeUserConfirmPassword?: boolean;\n doUseDefaultCss?: boolean;\n classes?: { [key in ClassKey]?: string };\n kcContext: unknown;\n getI18n: (params: { kcContext: KcContextLike }) => {\n i18n: unknown;\n prI18n_currentLanguage: Promise<unknown> | undefined;\n };\n};\n\nexport const provideKeycloakifyAngular = (config: KeycloakifyAngularLoginConfig) =>\n makeEnvironmentProviders([\n {\n provide: KC_LOGIN_CONTEXT,\n useValue: config.kcContext\n },\n {\n provide: DO_MAKE_USER_CONFIRM_PASSWORD,\n useValue: config?.doMakeUserConfirmPassword ?? true\n },\n {\n provide: LOCALE_ID,\n useFactory: (document: Document) => {\n return document.documentElement.lang ?? 'en';\n },\n deps: [DOCUMENT]\n },\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: (i18nService: I18nService, kcContext: KcContext) => async () => {\n const getI18n = config.getI18n;\n\n const { i18n, prI18n_currentLanguage } = getI18n({\n kcContext\n });\n let i18nPromise = new Promise<typeof i18n>(resolve => resolve(i18n));\n if (prI18n_currentLanguage) {\n i18nPromise = prI18n_currentLanguage;\n }\n return i18nPromise.then(i18n => {\n i18nService.i18n = i18n;\n return true;\n });\n },\n deps: [I18nService, KC_LOGIN_CONTEXT]\n },\n {\n provide: LOGIN_I18N,\n useFactory: (i18nService: I18nService) => i18nService.i18n,\n deps: [I18nService]\n },\n { provide: USE_DEFAULT_CSS, useValue: config?.doUseDefaultCss ?? true },\n { provide: LOGIN_CLASSES, useValue: config?.classes ?? {} }\n ]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";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O,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,IAAI,IAAI,EAAE;IACvE,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,IAAI,EAAE;AAC5D,CAAA;;ACnEL;;AAEG;;;;"}
|
|
@@ -3,10 +3,10 @@ import { Injectable } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
/** INTERNAL: DO NOT IMPORT THIS */
|
|
5
5
|
class I18nService {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
7
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: I18nService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: I18nService, providedIn: 'root' }); }
|
|
8
8
|
}
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: I18nService, decorators: [{
|
|
10
10
|
type: Injectable,
|
|
11
11
|
args: [{ providedIn: 'root' }]
|
|
12
12
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-services-i18n.mjs","sources":["../../src/login/services/i18n/i18n.service.ts","../../src/login/services/i18n/keycloakify-angular-login-services-i18n.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\n/** INTERNAL: DO NOT IMPORT THIS */\nexport class I18nService {\n i18n!: unknown;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-services-i18n.mjs","sources":["../../src/login/services/i18n/i18n.service.ts","../../src/login/services/i18n/keycloakify-angular-login-services-i18n.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({ providedIn: 'root' })\n/** INTERNAL: DO NOT IMPORT THIS */\nexport class I18nService {\n i18n!: unknown;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAGA;MACa,WAAW,CAAA;+GAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,cAFE,MAAM,EAAA,CAAA,CAAA;;4FAEnB,WAAW,EAAA,UAAA,EAAA,CAAA;kBAFvB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACFlC;;AAEG;;;;"}
|
|
@@ -40,7 +40,7 @@ class LoginResourceInjectorService {
|
|
|
40
40
|
id: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`,
|
|
41
41
|
src: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`
|
|
42
42
|
},
|
|
43
|
-
...this.kcContext.scripts.map(script => ({
|
|
43
|
+
...(this.kcContext.scripts ?? []).map(script => ({
|
|
44
44
|
type: 'text/javascript',
|
|
45
45
|
src: script,
|
|
46
46
|
id: script
|
|
@@ -58,10 +58,10 @@ class LoginResourceInjectorService {
|
|
|
58
58
|
];
|
|
59
59
|
this.insertAdditionalScripts(scripts);
|
|
60
60
|
}
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
62
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LoginResourceInjectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
62
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LoginResourceInjectorService, providedIn: 'root' }); }
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: LoginResourceInjectorService, decorators: [{
|
|
65
65
|
type: Injectable,
|
|
66
66
|
args: [{
|
|
67
67
|
providedIn: 'root'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-services-login-resource-injector.mjs","sources":["../../src/login/services/login-resource-injector/login-resource-injector.service.ts","../../src/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { ResourceInjectorService } from '@keycloakify/angular/lib/services/resource-injector';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { catchError, forkJoin, of, switchMap } from 'rxjs';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoginResourceInjectorService {\n private kcContext: KcContext = inject<KcContext>(KC_LOGIN_CONTEXT);\n private resourceInjectorService: ResourceInjectorService = inject(\n ResourceInjectorService\n );\n\n injectResource(doUseDefaultCss = true) {\n if (!doUseDefaultCss) {\n this.injectScripts();\n return of(true);\n }\n //reversed order of stylesheets to accomodate prepending to head\n const stylesheets = [\n `${this.kcContext.url.resourcesPath}/css/login.css`,\n `${this.kcContext.url.resourcesCommonPath}/lib/pficon/pficon.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/@patternfly/patternfly/patternfly.min.css`\n ];\n\n return forkJoin(\n stylesheets.map(url => this.resourceInjectorService.createLink(url))\n ).pipe(\n switchMap(() => {\n this.injectScripts();\n return of(true);\n }),\n catchError(error => {\n console.error('Error loading styles:', error);\n return of(false);\n })\n );\n }\n\n insertAdditionalScripts(scripts: Script[]) {\n scripts.map(script => this.resourceInjectorService.createScript(script));\n }\n\n private injectScripts() {\n const scripts: Script[] = [\n {\n type: 'module',\n id: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`,\n src: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`\n },\n ...this.kcContext.scripts.map(script => ({\n type: 'text/javascript',\n src: script,\n id: script\n })),\n {\n type: 'module',\n id: 'authenticationSession',\n textContent: `\n import { checkCookiesAndSetTimer } from \"${this.kcContext.url.resourcesPath}/js/authChecker.js\";\n \n checkCookiesAndSetTimer(\n \"${this.kcContext.url.ssoLoginInOtherTabsUrl}\"\n );`\n }\n ];\n this.insertAdditionalScripts(scripts);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-services-login-resource-injector.mjs","sources":["../../src/login/services/login-resource-injector/login-resource-injector.service.ts","../../src/login/services/login-resource-injector/keycloakify-angular-login-services-login-resource-injector.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { ResourceInjectorService } from '@keycloakify/angular/lib/services/resource-injector';\nimport type { KcContext } from '@keycloakify/angular/login/KcContext';\nimport { catchError, forkJoin, of, switchMap } from 'rxjs';\nimport { type Script } from '@keycloakify/angular/lib/models/script';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoginResourceInjectorService {\n private kcContext: KcContext = inject<KcContext>(KC_LOGIN_CONTEXT);\n private resourceInjectorService: ResourceInjectorService = inject(\n ResourceInjectorService\n );\n\n injectResource(doUseDefaultCss = true) {\n if (!doUseDefaultCss) {\n this.injectScripts();\n return of(true);\n }\n //reversed order of stylesheets to accomodate prepending to head\n const stylesheets = [\n `${this.kcContext.url.resourcesPath}/css/login.css`,\n `${this.kcContext.url.resourcesCommonPath}/lib/pficon/pficon.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,\n `${this.kcContext.url.resourcesCommonPath}/node_modules/@patternfly/patternfly/patternfly.min.css`\n ];\n\n return forkJoin(\n stylesheets.map(url => this.resourceInjectorService.createLink(url))\n ).pipe(\n switchMap(() => {\n this.injectScripts();\n return of(true);\n }),\n catchError(error => {\n console.error('Error loading styles:', error);\n return of(false);\n })\n );\n }\n\n insertAdditionalScripts(scripts: Script[]) {\n scripts.map(script => this.resourceInjectorService.createScript(script));\n }\n\n private injectScripts() {\n const scripts: Script[] = [\n {\n type: 'module',\n id: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`,\n src: `${this.kcContext.url.resourcesPath}/js/menu-button-links.js`\n },\n ...(this.kcContext.scripts ?? []).map(script => ({\n type: 'text/javascript',\n src: script,\n id: script\n })),\n {\n type: 'module',\n id: 'authenticationSession',\n textContent: `\n import { checkCookiesAndSetTimer } from \"${this.kcContext.url.resourcesPath}/js/authChecker.js\";\n \n checkCookiesAndSetTimer(\n \"${this.kcContext.url.ssoLoginInOtherTabsUrl}\"\n );`\n }\n ];\n this.insertAdditionalScripts(scripts);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAUa,4BAA4B,CAAA;AAHzC,IAAA,WAAA,GAAA;AAIY,QAAA,IA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A,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE;AACf,iBAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -62,10 +62,10 @@ class UserProfileFormService {
|
|
|
62
62
|
if (this.#unsubscribe)
|
|
63
63
|
this.#unsubscribe();
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
|
66
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: UserProfileFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
66
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: UserProfileFormService, providedIn: 'root' }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: UserProfileFormService, decorators: [{
|
|
69
69
|
type: Injectable,
|
|
70
70
|
args: [{ providedIn: 'root' }]
|
|
71
71
|
}], ctorParameters: () => [] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keycloakify-angular-login-services-user-profile-form.mjs","sources":["../../src/login/services/user-profile-form/user-profile-form.service.ts","../../src/login/services/user-profile-form/keycloakify-angular-login-services-user-profile-form.ts"],"sourcesContent":["import { inject, Injectable, OnDestroy } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';\nimport type {\n Attribute,\n PasswordPolicies,\n Validators\n} from 'keycloakify/login/KcContext';\nimport * as reactlessApi from 'keycloakify/login/lib/getUserProfileApi';\nimport { BehaviorSubject, map, Observable } from 'rxjs';\nimport { assert, type Equals } from 'tsafe/assert';\n\nexport { getButtonToDisplayForMultivaluedAttributeField } from 'keycloakify/login/lib/getUserProfileApi';\n\nexport type FormFieldError = {\n errorMessage: SafeHtml;\n errorMessageStr: string;\n source: FormFieldError.Source;\n fieldIndex: number | undefined;\n};\n\n{\n type A = Omit<FormFieldError, 'errorMessage' | 'errorMessageStr'>;\n type B = Omit<reactlessApi.FormFieldError, 'advancedMsgArgs'>;\n\n assert<Equals<A, B>>();\n}\n\nexport namespace FormFieldError {\n export type Source =\n | Source.Validator\n | Source.PasswordPolicy\n | Source.Server\n | Source.Other;\n\n export namespace Source {\n export type Validator = {\n type: 'validator';\n name: keyof Validators;\n };\n export type PasswordPolicy = {\n type: 'passwordPolicy';\n name: keyof PasswordPolicies;\n };\n export type Server = {\n type: 'server';\n };\n\n export type Other = {\n type: 'other';\n rule: 'passwordConfirmMatchesPassword' | 'requiredField';\n };\n }\n}\n\n{\n type A = FormFieldError.Source;\n type B = reactlessApi.FormFieldError.Source;\n\n assert<Equals<A, B>>();\n}\n\nexport type FormFieldState = {\n attribute: Attribute;\n displayableErrors: FormFieldError[];\n valueOrValues: string | string[];\n};\n\n{\n type A = Omit<FormFieldState, 'displayableErrors'>;\n type B = Omit<reactlessApi.FormFieldState, 'displayableErrors'>;\n\n assert<Equals<A, B>>();\n}\n\nexport type FormState = {\n isFormSubmittable: boolean;\n formFieldStates: FormFieldState[];\n};\n\n{\n type A = Omit<FormState, 'formFieldStates'>;\n type B = Omit<FormState, 'formFieldStates'>;\n\n assert<Equals<A, B>>();\n}\n\nexport type FormAction =\n | {\n action: 'update';\n name: string;\n valueOrValues: string | string[];\n /** Default false */\n displayErrorsImmediately?: boolean;\n }\n | {\n action: 'focus lost';\n name: string;\n fieldIndex: number | undefined;\n };\n\n{\n type A = FormAction;\n type B = reactlessApi.FormAction;\n\n assert<Equals<A, B>>();\n}\n\nexport type KcContextLike = reactlessApi.KcContextLike;\n\nexport type I18nLike = Pick<I18n, 'advancedMsgStr'>;\n\n@Injectable({ providedIn: 'root' })\nexport class UserProfileFormService implements OnDestroy {\n #kcContext = inject<KcContextLike>(KC_LOGIN_CONTEXT);\n #i18n = inject<I18nLike>(LOGIN_I18N);\n #doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);\n #domSanitizer = inject(DomSanitizer);\n #internal_formState$: BehaviorSubject<reactlessApi.FormState>;\n #unsubscribe: (() => void) | undefined;\n public formState$: Observable<FormState>;\n public dispatchFormAction: (action: FormAction) => void;\n constructor() {\n const api = reactlessApi.getUserProfileApi({\n kcContext: this.#kcContext,\n doMakeUserConfirmPassword: this.#doMakeUserConfirmPassword\n });\n this.#internal_formState$ = new BehaviorSubject<reactlessApi.FormState>(\n api.getFormState()\n );\n this.#unsubscribe = api.subscribeToFormState(() => {\n this.#internal_formState$.next(api.getFormState());\n }).unsubscribe;\n this.formState$ = this.#internal_formState$.asObservable().pipe(\n takeUntilDestroyed(),\n map(formState_reactless => ({\n isFormSubmittable: formState_reactless.isFormSubmittable,\n formFieldStates: formState_reactless.formFieldStates.map(\n formFieldState_reactless => ({\n attribute: formFieldState_reactless.attribute,\n valueOrValues: formFieldState_reactless.valueOrValues,\n displayableErrors: formFieldState_reactless.displayableErrors.map(\n (formFieldError_reactless, i) => ({\n errorMessage: this.#domSanitizer.bypassSecurityTrustHtml(\n this.#i18n.advancedMsgStr(\n ...formFieldError_reactless.advancedMsgArgs\n )\n ),\n errorMessageStr: this.#i18n.advancedMsgStr(\n ...formFieldError_reactless.advancedMsgArgs\n ),\n source: formFieldError_reactless.source,\n fieldIndex: formFieldError_reactless.fieldIndex\n })\n )\n })\n )\n }))\n );\n this.dispatchFormAction = api.dispatchFormAction;\n }\n\n ngOnDestroy(): void {\n this.#internal_formState$.complete();\n this.#internal_formState$.unsubscribe();\n if (this.#unsubscribe) this.#unsubscribe();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './
|
|
1
|
+
{"version":3,"file":"keycloakify-angular-login-services-user-profile-form.mjs","sources":["../../src/login/services/user-profile-form/user-profile-form.service.ts","../../src/login/services/user-profile-form/keycloakify-angular-login-services-user-profile-form.ts"],"sourcesContent":["import { inject, Injectable, OnDestroy } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport type { I18n } from '@keycloakify/angular/login/i18n';\nimport { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';\nimport { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';\nimport { DO_MAKE_USER_CONFIRM_PASSWORD } from '@keycloakify/angular/login/tokens/make-user-confirm-password';\nimport type {\n Attribute,\n PasswordPolicies,\n Validators\n} from 'keycloakify/login/KcContext';\nimport * as reactlessApi from 'keycloakify/login/lib/getUserProfileApi';\nimport { BehaviorSubject, map, Observable } from 'rxjs';\nimport { assert, type Equals } from 'tsafe/assert';\n\nexport { getButtonToDisplayForMultivaluedAttributeField } from 'keycloakify/login/lib/getUserProfileApi';\n\nexport type FormFieldError = {\n errorMessage: SafeHtml;\n errorMessageStr: string;\n source: FormFieldError.Source;\n fieldIndex: number | undefined;\n};\n\n{\n type A = Omit<FormFieldError, 'errorMessage' | 'errorMessageStr'>;\n type B = Omit<reactlessApi.FormFieldError, 'advancedMsgArgs'>;\n\n assert<Equals<A, B>>();\n}\n\nexport namespace FormFieldError {\n export type Source =\n | Source.Validator\n | Source.PasswordPolicy\n | Source.Server\n | Source.Other;\n\n export namespace Source {\n export type Validator = {\n type: 'validator';\n name: keyof Validators;\n };\n export type PasswordPolicy = {\n type: 'passwordPolicy';\n name: keyof PasswordPolicies;\n };\n export type Server = {\n type: 'server';\n };\n\n export type Other = {\n type: 'other';\n rule: 'passwordConfirmMatchesPassword' | 'requiredField';\n };\n }\n}\n\n{\n type A = FormFieldError.Source;\n type B = reactlessApi.FormFieldError.Source;\n\n assert<Equals<A, B>>();\n}\n\nexport type FormFieldState = {\n attribute: Attribute;\n displayableErrors: FormFieldError[];\n valueOrValues: string | string[];\n};\n\n{\n type A = Omit<FormFieldState, 'displayableErrors'>;\n type B = Omit<reactlessApi.FormFieldState, 'displayableErrors'>;\n\n assert<Equals<A, B>>();\n}\n\nexport type FormState = {\n isFormSubmittable: boolean;\n formFieldStates: FormFieldState[];\n};\n\n{\n type A = Omit<FormState, 'formFieldStates'>;\n type B = Omit<FormState, 'formFieldStates'>;\n\n assert<Equals<A, B>>();\n}\n\nexport type FormAction =\n | {\n action: 'update';\n name: string;\n valueOrValues: string | string[];\n /** Default false */\n displayErrorsImmediately?: boolean;\n }\n | {\n action: 'focus lost';\n name: string;\n fieldIndex: number | undefined;\n };\n\n{\n type A = FormAction;\n type B = reactlessApi.FormAction;\n\n assert<Equals<A, B>>();\n}\n\nexport type KcContextLike = reactlessApi.KcContextLike;\n\nexport type I18nLike = Pick<I18n, 'advancedMsgStr'>;\n\n@Injectable({ providedIn: 'root' })\nexport class UserProfileFormService implements OnDestroy {\n #kcContext = inject<KcContextLike>(KC_LOGIN_CONTEXT);\n #i18n = inject<I18nLike>(LOGIN_I18N);\n #doMakeUserConfirmPassword = inject(DO_MAKE_USER_CONFIRM_PASSWORD);\n #domSanitizer = inject(DomSanitizer);\n #internal_formState$: BehaviorSubject<reactlessApi.FormState>;\n #unsubscribe: (() => void) | undefined;\n public formState$: Observable<FormState>;\n public dispatchFormAction: (action: FormAction) => void;\n constructor() {\n const api = reactlessApi.getUserProfileApi({\n kcContext: this.#kcContext,\n doMakeUserConfirmPassword: this.#doMakeUserConfirmPassword\n });\n this.#internal_formState$ = new BehaviorSubject<reactlessApi.FormState>(\n api.getFormState()\n );\n this.#unsubscribe = api.subscribeToFormState(() => {\n this.#internal_formState$.next(api.getFormState());\n }).unsubscribe;\n this.formState$ = this.#internal_formState$.asObservable().pipe(\n takeUntilDestroyed(),\n map(formState_reactless => ({\n isFormSubmittable: formState_reactless.isFormSubmittable,\n formFieldStates: formState_reactless.formFieldStates.map(\n formFieldState_reactless => ({\n attribute: formFieldState_reactless.attribute,\n valueOrValues: formFieldState_reactless.valueOrValues,\n displayableErrors: formFieldState_reactless.displayableErrors.map(\n (formFieldError_reactless, i) => ({\n errorMessage: this.#domSanitizer.bypassSecurityTrustHtml(\n this.#i18n.advancedMsgStr(\n ...formFieldError_reactless.advancedMsgArgs\n )\n ),\n errorMessageStr: this.#i18n.advancedMsgStr(\n ...formFieldError_reactless.advancedMsgArgs\n ),\n source: formFieldError_reactless.source,\n fieldIndex: formFieldError_reactless.fieldIndex\n })\n )\n })\n )\n }))\n );\n this.dispatchFormAction = api.dispatchFormAction;\n }\n\n ngOnDestroy(): void {\n this.#internal_formState$.complete();\n this.#internal_formState$.unsubscribe();\n if (this.#unsubscribe) this.#unsubscribe();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAyBA;AAII,IAAA,MAAM,EAAgB;AAC1B;AA6BA;AAII,IAAA,MAAM,EAAgB;AAC1B;AAQA;AAII,IAAA,MAAM,EAAgB;AAC1B;AAOA;AAII,IAAA,MAAM,EAAgB;AAC1B;AAgBA;AAII,IAAA,MAAM,EAAgB;AAC1B;MAOa,sBAAsB,CAAA;AAC/B,IAAA,UAAU,GAAG,MAAM,CAAgB,gBAAgB,CAAC;AACpD,IAAA,KAAK,GAAG,MAAM,CAAW,UAAU,CAAC;AACpC,IAAA,0BAA0B,GAAG,MAAM,CAAC,6BAA6B,CAAC;AAClE,IAAA,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC;AACpC,IAAA,oBAAoB;AACpB,IAAA,YAAY;AAGZ,IAAA,WAAA,G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AkB;;IAGpD,WAAW,GAAA;AACP,QAAA,IAAI,CAAC,oBAAoB,CAAC,QAAQ,EAAE;AACpC,QAAA,IAAI,CAAC,oBAAoB,CAAC,WAAW,EAAE;QACvC,IAAI,IAAI,CAAC,YAAY;YAAE,IAAI,CAAC,YAAY,EAAE;;+GApDrC,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,cADT,MAAM,EAAA,CAAA,CAAA;;4FACnB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBADlC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACpHlC;;AAEG;;;;"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, Renderer2, ChangeDetectorRef, input, viewChild, ViewContainerRef, effect, computed, forwardRef, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
4
|
+
import { Meta, Title } from '@angular/platform-browser';
|
|
5
|
+
import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
|
|
6
|
+
import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
|
|
7
|
+
import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
|
|
8
|
+
import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
|
|
9
|
+
import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector';
|
|
10
|
+
import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
|
|
11
|
+
import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
|
|
12
|
+
import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
|
|
13
|
+
import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
|
|
14
|
+
|
|
15
|
+
class TemplateComponent extends ComponentReference {
|
|
16
|
+
#cdr;
|
|
17
|
+
#effectRef;
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.i18n = inject(LOGIN_I18N);
|
|
21
|
+
this.renderer = inject(Renderer2);
|
|
22
|
+
this.#cdr = inject(ChangeDetectorRef);
|
|
23
|
+
this.meta = inject(Meta);
|
|
24
|
+
this.title = inject(Title);
|
|
25
|
+
this.kcContext = inject(KC_LOGIN_CONTEXT);
|
|
26
|
+
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
27
|
+
this.classes = inject(LOGIN_CLASSES);
|
|
28
|
+
this.loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
29
|
+
this.displayInfo = false;
|
|
30
|
+
this.displayMessage = true;
|
|
31
|
+
this.displayRequiredFields = false;
|
|
32
|
+
this.page = input();
|
|
33
|
+
this.pageRef = viewChild('pageRef', { read: ViewContainerRef });
|
|
34
|
+
this.userProfileFormFields = input();
|
|
35
|
+
this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(this.doUseDefaultCss);
|
|
36
|
+
this.#effectRef = effect(() => {
|
|
37
|
+
const page = this.page();
|
|
38
|
+
const pageRef = this.pageRef();
|
|
39
|
+
if (!page || !pageRef)
|
|
40
|
+
return;
|
|
41
|
+
const userProfileFormFields = this.userProfileFormFields();
|
|
42
|
+
const compRef = pageRef.createComponent(page);
|
|
43
|
+
if ('userProfileFormFields' in compRef.instance && userProfileFormFields) {
|
|
44
|
+
compRef.setInput('userProfileFormFields', userProfileFormFields);
|
|
45
|
+
}
|
|
46
|
+
this.onComponentCreated(compRef.instance);
|
|
47
|
+
}, { manualCleanup: true });
|
|
48
|
+
}
|
|
49
|
+
applyKcIndexClasses() {
|
|
50
|
+
const kcClsx = getKcClsx({
|
|
51
|
+
doUseDefaultCss: this.doUseDefaultCss,
|
|
52
|
+
classes: this.classes
|
|
53
|
+
}).kcClsx;
|
|
54
|
+
const kcBodyClass = this.bodyClassName ?? kcClsx('kcBodyClass');
|
|
55
|
+
const kcHtmlClass = kcClsx('kcHtmlClass');
|
|
56
|
+
const kcBodyClasses = kcBodyClass.split(/\s+/);
|
|
57
|
+
const kcHtmlClasses = kcHtmlClass.split(/\s+/);
|
|
58
|
+
kcBodyClasses.forEach(klass => {
|
|
59
|
+
this.renderer.addClass(document.body, klass);
|
|
60
|
+
});
|
|
61
|
+
kcHtmlClasses.forEach(klass => {
|
|
62
|
+
this.renderer.addClass(document.documentElement, klass);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
tryAnotherWay() {
|
|
66
|
+
document.forms['kc-select-try-another-way-form'].submit();
|
|
67
|
+
}
|
|
68
|
+
onComponentCreated(compRef) {
|
|
69
|
+
if ('displayInfo' in compRef) {
|
|
70
|
+
this.displayInfo = !!compRef.displayInfo;
|
|
71
|
+
}
|
|
72
|
+
if ('displayMessage' in compRef) {
|
|
73
|
+
this.displayMessage = !!compRef.displayMessage;
|
|
74
|
+
}
|
|
75
|
+
if ('displayRequiredFields' in compRef) {
|
|
76
|
+
this.displayRequiredFields = !!compRef.displayRequiredFields;
|
|
77
|
+
}
|
|
78
|
+
if ('documentTitle' in compRef && compRef.documentTitle) {
|
|
79
|
+
this.documentTitle = compRef.documentTitle;
|
|
80
|
+
}
|
|
81
|
+
if ('bodyClassName' in compRef && compRef.bodyClassName) {
|
|
82
|
+
this.bodyClassName = compRef.bodyClassName;
|
|
83
|
+
}
|
|
84
|
+
if ('headerNode' in compRef && compRef.headerNode) {
|
|
85
|
+
this.headerNode = computed(() => {
|
|
86
|
+
const headerNode = compRef.headerNode();
|
|
87
|
+
return headerNode;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if ('infoNode' in compRef && compRef.infoNode) {
|
|
91
|
+
this.infoNode = computed(() => {
|
|
92
|
+
const infoNode = compRef.infoNode();
|
|
93
|
+
return infoNode;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
if ('socialProvidersNode' in compRef && compRef.socialProvidersNode) {
|
|
97
|
+
this.socialProvidersNode = computed(() => {
|
|
98
|
+
const socialProvidersNode = compRef.socialProvidersNode();
|
|
99
|
+
return socialProvidersNode;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
this.title.setTitle(this.documentTitle ?? this.i18n.msgStr('loginTitle', this.kcContext.realm.displayName));
|
|
103
|
+
this.applyKcIndexClasses();
|
|
104
|
+
this.#cdr.markForCheck();
|
|
105
|
+
this.#effectRef.destroy();
|
|
106
|
+
}
|
|
107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
108
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.11", type: TemplateComponent, isStandalone: true, selector: "kc-root", inputs: { page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, userProfileFormFields: { classPropertyName: "userProfileFormFields", publicName: "userProfileFormFields", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
109
|
+
{
|
|
110
|
+
provide: ComponentReference,
|
|
111
|
+
useExisting: forwardRef(() => TemplateComponent)
|
|
112
|
+
}
|
|
113
|
+
], viewQueries: [{ propertyName: "pageRef", first: true, predicate: ["pageRef"], descendants: true, read: ViewContainerRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@let realm = kcContext.realm;\n@let message = kcContext.message;\n@let auth = kcContext.auth;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n@let url = kcContext.url;\n@let isReadyToRender = isReadyToRender$ | async;\n\n@if (isReadyToRender) {\n <div [kcClass]=\"'kcLoginClass'\">\n <div\n id=\"kc-header\"\n [kcClass]=\"'kcHeaderClass'\"\n >\n <div\n id=\"kc-header-wrapper\"\n [kcClass]=\"'kcHeaderWrapperClass'\"\n >\n <div [innerHTML]=\"realm?.displayNameHtml ?? '' | kcSanitize: 'html'\"></div>\n </div>\n </div>\n\n <div [kcClass]=\"'kcFormCardClass'\">\n <header [kcClass]=\"'kcFormHeaderClass'\">\n <!-- Locale switcher -->\n @if (i18n.enabledLanguages.length > 1) {\n <div\n id=\"kc-locale\"\n [kcClass]=\"'kcLocaleMainClass'\"\n >\n <div\n id=\"kc-locale-wrapper\"\n [kcClass]=\"'kcLocaleWrapperClass'\"\n >\n <div\n id=\"kc-locale-dropdown\"\n class=\"menu-button-links\"\n [kcClass]=\"'kcLocaleDropDownClass'\"\n >\n <button\n tabindex=\"1\"\n id=\"kc-current-locale-link\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n aria-controls=\"language-switch1\"\n [attr.aria-label]=\"i18n.msgStr('languages')\"\n >\n {{ i18n.currentLanguage.label }}\n </button>\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n aria-labelledby=\"kc-current-locale-link\"\n aria-activedescendant=\"\"\n id=\"language-switch1\"\n [kcClass]=\"'kcLocaleListClass'\"\n >\n @for (entry of i18n.enabledLanguages; track entry; let idx = $index) {\n <li\n role=\"none\"\n [kcClass]=\"'kcLocaleListItemClass'\"\n >\n <a\n role=\"menuitem\"\n tabindex=\"-1\"\n [href]=\"entry.href\"\n [kcClass]=\"'kcLocaleItemClass'\"\n [id]=\"'language-' + idx\"\n >\n {{ entry.label }}\n </a>\n </li>\n }\n </ul>\n </div>\n </div>\n </div>\n }\n\n <!-- Header content -->\n <ng-template #node>\n @if (auth && !auth.showUsername && !auth.showResetCredentials) {\n <h1 id=\"kc-page-title\">\n @let header = headerNode && headerNode();\n @if (header) {\n <ng-container [ngTemplateOutlet]=\"header\" />\n }\n </h1>\n } @else {\n <div\n id=\"kc-username\"\n [kcClass]=\"'kcFormGroupClass'\"\n >\n <label id=\"kc-attempted-username\">{{ auth?.attemptedUsername }}</label>\n <a\n id=\"reset-login\"\n [href]=\"url?.loginRestartFlowUrl\"\n [attr.aria-label]=\"i18n.msgStr('restartLoginTooltip')\"\n >\n <div class=\"kc-login-tooltip\">\n <i [kcClass]=\"'kcResetFlowIcon'\"></i>\n <span class=\"kc-tooltip-text\">\n {{ i18n.msgStr('restartLoginTooltip') }}\n </span>\n </div>\n </a>\n </div>\n }\n </ng-template>\n\n @if (displayRequiredFields) {\n <div [kcClass]=\"'kcContentWrapperClass'\">\n <div\n class=\"subtitle\"\n [kcClass]=\"'kcLabelWrapperClass'\"\n >\n <span class=\"subtitle\">\n <span class=\"required\">*</span>\n {{ i18n.msgStr('requiredFields') }}\n </span>\n </div>\n <div class=\"col-md-10\">\n <ng-container [ngTemplateOutlet]=\"node\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"node\" />\n }\n </header>\n\n <div id=\"kc-content\">\n <div id=\"kc-content-wrapper\">\n <!-- Message display -->\n @if (displayMessage && message && (message.type !== 'warning' || !isAppInitiatedAction)) {\n <div\n [kcClass]=\"'kcAlertClass'\"\n [ngClass]=\"message.type === 'error' ? 'pf-m-danger' : 'pf-m-' + message.type\"\n [class]=\"'alert-' + message.type\"\n >\n <div class=\"pf-c-alert__icon\">\n @switch (message.type) {\n @case ('success') {\n <span [kcClass]=\"'kcFeedbackSuccessIcon'\"></span>\n }\n @case ('warning') {\n <span [kcClass]=\"'kcFeedbackWarningIcon'\"></span>\n }\n @case ('info') {\n <span [kcClass]=\"'kcFeedbackInfoIcon'\"></span>\n }\n @case ('error') {\n <span [kcClass]=\"'kcFeedbackErrorIcon'\"></span>\n }\n }\n </div>\n <span\n [kcClass]=\"'kcAlertTitleClass'\"\n [innerHTML]=\"message.summary | kcSanitize: 'html'\"\n ></span>\n </div>\n }\n <!-- Content -->\n <ng-template #pageRef></ng-template>\n\n @if (!!auth && auth?.showTryAnotherWayLink) {\n <form\n id=\"kc-select-try-another-way-form\"\n method=\"post\"\n [action]=\"url?.loginAction\"\n >\n <div [kcClass]=\"'kcFormGroupClass'\">\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n name=\"tryAnotherWay\"\n value=\"on\"\n />\n <a\n id=\"try-another-way\"\n (click)=\"tryAnotherWay()\"\n >\n {{ i18n.msgStr('doTryAnotherWay') }}\n </a>\n </div>\n </div>\n </form>\n }\n @let socialProviders = socialProvidersNode && socialProvidersNode();\n @if (socialProviders) {\n <ng-container [ngTemplateOutlet]=\"socialProviders\" />\n }\n <!-- Info display -->\n @if (displayInfo) {\n <div\n id=\"kc-info\"\n [kcClass]=\"'kcSignUpClass'\"\n >\n <div\n id=\"kc-info-wrapper\"\n [kcClass]=\"'kcInfoAreaWrapperClass'\"\n >\n @let info = infoNode && infoNode();\n @if (info) {\n <ng-container [ngTemplateOutlet]=\"info\" />\n }\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n}\n", dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: KcSanitizePipe, name: "kcSanitize" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: KcClassDirective, selector: "[kcClass]", inputs: ["class", "ngClass", "kcClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
114
|
+
}
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TemplateComponent, decorators: [{
|
|
116
|
+
type: Component,
|
|
117
|
+
args: [{ selector: 'kc-root', standalone: true, imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
118
|
+
{
|
|
119
|
+
provide: ComponentReference,
|
|
120
|
+
useExisting: forwardRef(() => TemplateComponent)
|
|
121
|
+
}
|
|
122
|
+
], template: "@let realm = kcContext.realm;\n@let message = kcContext.message;\n@let auth = kcContext.auth;\n@let isAppInitiatedAction = kcContext.isAppInitiatedAction;\n@let url = kcContext.url;\n@let isReadyToRender = isReadyToRender$ | async;\n\n@if (isReadyToRender) {\n <div [kcClass]=\"'kcLoginClass'\">\n <div\n id=\"kc-header\"\n [kcClass]=\"'kcHeaderClass'\"\n >\n <div\n id=\"kc-header-wrapper\"\n [kcClass]=\"'kcHeaderWrapperClass'\"\n >\n <div [innerHTML]=\"realm?.displayNameHtml ?? '' | kcSanitize: 'html'\"></div>\n </div>\n </div>\n\n <div [kcClass]=\"'kcFormCardClass'\">\n <header [kcClass]=\"'kcFormHeaderClass'\">\n <!-- Locale switcher -->\n @if (i18n.enabledLanguages.length > 1) {\n <div\n id=\"kc-locale\"\n [kcClass]=\"'kcLocaleMainClass'\"\n >\n <div\n id=\"kc-locale-wrapper\"\n [kcClass]=\"'kcLocaleWrapperClass'\"\n >\n <div\n id=\"kc-locale-dropdown\"\n class=\"menu-button-links\"\n [kcClass]=\"'kcLocaleDropDownClass'\"\n >\n <button\n tabindex=\"1\"\n id=\"kc-current-locale-link\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n aria-controls=\"language-switch1\"\n [attr.aria-label]=\"i18n.msgStr('languages')\"\n >\n {{ i18n.currentLanguage.label }}\n </button>\n <ul\n role=\"menu\"\n tabindex=\"-1\"\n aria-labelledby=\"kc-current-locale-link\"\n aria-activedescendant=\"\"\n id=\"language-switch1\"\n [kcClass]=\"'kcLocaleListClass'\"\n >\n @for (entry of i18n.enabledLanguages; track entry; let idx = $index) {\n <li\n role=\"none\"\n [kcClass]=\"'kcLocaleListItemClass'\"\n >\n <a\n role=\"menuitem\"\n tabindex=\"-1\"\n [href]=\"entry.href\"\n [kcClass]=\"'kcLocaleItemClass'\"\n [id]=\"'language-' + idx\"\n >\n {{ entry.label }}\n </a>\n </li>\n }\n </ul>\n </div>\n </div>\n </div>\n }\n\n <!-- Header content -->\n <ng-template #node>\n @if (auth && !auth.showUsername && !auth.showResetCredentials) {\n <h1 id=\"kc-page-title\">\n @let header = headerNode && headerNode();\n @if (header) {\n <ng-container [ngTemplateOutlet]=\"header\" />\n }\n </h1>\n } @else {\n <div\n id=\"kc-username\"\n [kcClass]=\"'kcFormGroupClass'\"\n >\n <label id=\"kc-attempted-username\">{{ auth?.attemptedUsername }}</label>\n <a\n id=\"reset-login\"\n [href]=\"url?.loginRestartFlowUrl\"\n [attr.aria-label]=\"i18n.msgStr('restartLoginTooltip')\"\n >\n <div class=\"kc-login-tooltip\">\n <i [kcClass]=\"'kcResetFlowIcon'\"></i>\n <span class=\"kc-tooltip-text\">\n {{ i18n.msgStr('restartLoginTooltip') }}\n </span>\n </div>\n </a>\n </div>\n }\n </ng-template>\n\n @if (displayRequiredFields) {\n <div [kcClass]=\"'kcContentWrapperClass'\">\n <div\n class=\"subtitle\"\n [kcClass]=\"'kcLabelWrapperClass'\"\n >\n <span class=\"subtitle\">\n <span class=\"required\">*</span>\n {{ i18n.msgStr('requiredFields') }}\n </span>\n </div>\n <div class=\"col-md-10\">\n <ng-container [ngTemplateOutlet]=\"node\" />\n </div>\n </div>\n } @else {\n <ng-container [ngTemplateOutlet]=\"node\" />\n }\n </header>\n\n <div id=\"kc-content\">\n <div id=\"kc-content-wrapper\">\n <!-- Message display -->\n @if (displayMessage && message && (message.type !== 'warning' || !isAppInitiatedAction)) {\n <div\n [kcClass]=\"'kcAlertClass'\"\n [ngClass]=\"message.type === 'error' ? 'pf-m-danger' : 'pf-m-' + message.type\"\n [class]=\"'alert-' + message.type\"\n >\n <div class=\"pf-c-alert__icon\">\n @switch (message.type) {\n @case ('success') {\n <span [kcClass]=\"'kcFeedbackSuccessIcon'\"></span>\n }\n @case ('warning') {\n <span [kcClass]=\"'kcFeedbackWarningIcon'\"></span>\n }\n @case ('info') {\n <span [kcClass]=\"'kcFeedbackInfoIcon'\"></span>\n }\n @case ('error') {\n <span [kcClass]=\"'kcFeedbackErrorIcon'\"></span>\n }\n }\n </div>\n <span\n [kcClass]=\"'kcAlertTitleClass'\"\n [innerHTML]=\"message.summary | kcSanitize: 'html'\"\n ></span>\n </div>\n }\n <!-- Content -->\n <ng-template #pageRef></ng-template>\n\n @if (!!auth && auth?.showTryAnotherWayLink) {\n <form\n id=\"kc-select-try-another-way-form\"\n method=\"post\"\n [action]=\"url?.loginAction\"\n >\n <div [kcClass]=\"'kcFormGroupClass'\">\n <div [kcClass]=\"'kcFormGroupClass'\">\n <input\n type=\"hidden\"\n name=\"tryAnotherWay\"\n value=\"on\"\n />\n <a\n id=\"try-another-way\"\n (click)=\"tryAnotherWay()\"\n >\n {{ i18n.msgStr('doTryAnotherWay') }}\n </a>\n </div>\n </div>\n </form>\n }\n @let socialProviders = socialProvidersNode && socialProvidersNode();\n @if (socialProviders) {\n <ng-container [ngTemplateOutlet]=\"socialProviders\" />\n }\n <!-- Info display -->\n @if (displayInfo) {\n <div\n id=\"kc-info\"\n [kcClass]=\"'kcSignUpClass'\"\n >\n <div\n id=\"kc-info-wrapper\"\n [kcClass]=\"'kcInfoAreaWrapperClass'\"\n >\n @let info = infoNode && infoNode();\n @if (info) {\n <ng-container [ngTemplateOutlet]=\"info\" />\n }\n </div>\n </div>\n }\n </div>\n </div>\n </div>\n </div>\n}\n" }]
|
|
123
|
+
}], ctorParameters: () => [] });
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Generated bundle index. Do not edit.
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
export { TemplateComponent };
|
|
130
|
+
//# sourceMappingURL=keycloakify-angular-login-template.mjs.map
|