@keycloakify/angular 0.0.1-rc.0 → 0.0.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/i18n.d.ts +2 -2
- package/lib/i18n.mjs +6 -0
- package/lib/models/index.d.ts +1 -1
- package/lib/models/index.mjs +2 -0
- package/lib/models/script.model.mjs +2 -0
- package/lib/providers/keycloakify-angular.providers.d.ts +5 -5
- package/lib/providers/keycloakify-angular.providers.mjs +54 -0
- package/lib/public-api.d.ts +5 -5
- package/lib/public-api.mjs +4 -0
- package/lib/services/i18n.service.d.ts +3 -0
- package/lib/services/i18n.service.mjs +11 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/index.mjs +3 -0
- package/lib/services/resource-injector.service.d.ts +5 -2
- package/lib/services/resource-injector.service.mjs +54 -0
- package/login/DefaultPage.d.ts +4 -4
- package/login/DefaultPage.mjs +121 -0
- package/login/KcContext.d.ts +1 -1
- package/login/KcContext.mjs +2 -0
- package/login/classes/component-reference.class.d.ts +1 -1
- package/login/classes/component-reference.class.mjs +3 -0
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +5 -2
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +105 -0
- package/login/components/field-errors/field-errors.component.d.ts +7 -4
- package/login/components/field-errors/field-errors.component.mjs +32 -0
- package/login/components/group-label/group-label.component.d.ts +6 -3
- package/login/components/group-label/group-label.component.mjs +41 -0
- package/login/components/hello-world/hello-world.component.d.ts +5 -0
- package/login/components/hello-world/hello-world.component.mjs +11 -0
- package/login/components/index.d.ts +11 -11
- package/login/components/index.mjs +12 -0
- package/login/components/input-field-by-type/input-field-by-type.component.d.ts +7 -4
- package/login/components/input-field-by-type/input-field-by-type.component.mjs +52 -0
- package/login/components/input-tag/input-tag.component.d.ts +7 -4
- package/login/components/input-tag/input-tag.component.mjs +89 -0
- package/login/components/input-tag-selects/input-tag-selects.component.d.ts +9 -6
- package/login/components/input-tag-selects/input-tag-selects.component.mjs +115 -0
- package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +5 -2
- package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +30 -0
- package/login/components/password-wrapper/password-wrapper.component.d.ts +6 -3
- package/login/components/password-wrapper/password-wrapper.component.mjs +44 -0
- package/login/components/select-tag/select-tag.component.d.ts +7 -4
- package/login/components/select-tag/select-tag.component.mjs +80 -0
- package/login/components/textarea-tag/textarea-tag.component.d.ts +7 -4
- package/login/components/textarea-tag/textarea-tag.component.mjs +48 -0
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +8 -5
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +62 -0
- package/login/containers/template.component.d.ts +11 -8
- package/login/containers/template.component.mjs +71 -0
- package/login/directives/attributes.directive.d.ts +3 -0
- package/login/directives/attributes.directive.mjs +26 -0
- package/login/directives/index.d.ts +2 -2
- package/login/directives/index.mjs +3 -0
- package/login/directives/kc-class.directive.d.ts +5 -2
- package/login/directives/kc-class.directive.mjs +138 -0
- package/login/i18n.d.ts +2 -2
- package/login/i18n.mjs +2 -0
- package/login/pages/code/code.component.d.ts +6 -3
- package/login/pages/code/code.component.mjs +32 -0
- package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +6 -3
- package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +32 -0
- package/login/pages/delete-credential/delete-credential.component.d.ts +6 -3
- package/login/pages/delete-credential/delete-credential.component.mjs +37 -0
- package/login/pages/error/error.component.d.ts +6 -3
- package/login/pages/error/error.component.mjs +32 -0
- package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +7 -4
- package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +41 -0
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +6 -3
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +47 -0
- package/login/pages/info/info.component.d.ts +9 -6
- package/login/pages/info/info.component.mjs +58 -0
- package/login/pages/login/login.component.d.ts +6 -3
- package/login/pages/login/login.component.mjs +51 -0
- package/login/pages/login-config-totp/login-config-totp.component.d.ts +6 -3
- package/login/pages/login-config-totp/login-config-totp.component.mjs +47 -0
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +37 -0
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +6 -3
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +37 -0
- package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +6 -3
- package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +37 -0
- package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +6 -3
- package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +38 -0
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +6 -3
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +37 -0
- package/login/pages/login-otp/login-otp.component.d.ts +6 -3
- package/login/pages/login-otp/login-otp.component.mjs +38 -0
- package/login/pages/login-page-expired/login-page-expired.component.d.ts +6 -3
- package/login/pages/login-page-expired/login-page-expired.component.mjs +36 -0
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +8 -5
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +85 -0
- package/login/pages/login-password/login-password.component.d.ts +6 -3
- package/login/pages/login-password/login-password.component.mjs +46 -0
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +45 -0
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +6 -3
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +38 -0
- package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +6 -3
- package/login/pages/login-reset-otp/login-reset-otp.component.mjs +37 -0
- package/login/pages/login-reset-password/login-reset-password.component.d.ts +6 -3
- package/login/pages/login-reset-password/login-reset-password.component.mjs +38 -0
- package/login/pages/login-update-password/login-update-password.component.d.ts +6 -3
- package/login/pages/login-update-password/login-update-password.component.mjs +47 -0
- package/login/pages/login-update-profile/login-update-profile.component.d.ts +6 -3
- package/login/pages/login-update-profile/login-update-profile.component.mjs +44 -0
- package/login/pages/login-username/login-username.component.d.ts +6 -3
- package/login/pages/login-username/login-username.component.mjs +49 -0
- package/login/pages/login-verify-email/login-verify-email.component.d.ts +6 -3
- package/login/pages/login-verify-email/login-verify-email.component.mjs +37 -0
- package/login/pages/login-x509-info/login-x509-info.component.d.ts +6 -3
- package/login/pages/login-x509-info/login-x509-info.component.mjs +37 -0
- package/login/pages/logout-confirm/logout-confirm.component.d.ts +6 -3
- package/login/pages/logout-confirm/logout-confirm.component.mjs +37 -0
- package/login/pages/register/register.component.d.ts +6 -3
- package/login/pages/register/register.component.mjs +55 -0
- package/login/pages/saml-post-form/saml-post-form.component.d.ts +7 -4
- package/login/pages/saml-post-form/saml-post-form.component.mjs +49 -0
- package/login/pages/select-authenticator/select-authenticator.component.d.ts +6 -3
- package/login/pages/select-authenticator/select-authenticator.component.mjs +45 -0
- package/login/pages/terms/terms.component.d.ts +6 -3
- package/login/pages/terms/terms.component.mjs +37 -0
- package/login/pages/update-email/update-email.component.d.ts +6 -3
- package/login/pages/update-email/update-email.component.mjs +46 -0
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +8 -5
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +87 -0
- package/login/pages/webauthn-error/webauthn-error.component.d.ts +6 -3
- package/login/pages/webauthn-error/webauthn-error.component.mjs +51 -0
- package/login/pages/webauthn-register/webauthn-register.component.d.ts +8 -5
- package/login/pages/webauthn-register/webauthn-register.component.mjs +81 -0
- package/login/pipes/advanced-msg-str.pipe.d.ts +4 -1
- package/login/pipes/advanced-msg-str.pipe.mjs +19 -0
- package/login/pipes/index.d.ts +6 -6
- package/login/pipes/index.mjs +7 -0
- package/login/pipes/input-type.pipe.d.ts +4 -1
- package/login/pipes/input-type.pipe.mjs +20 -0
- package/login/pipes/kc-sanitize.pipe.d.ts +5 -2
- package/login/pipes/kc-sanitize.pipe.mjs +34 -0
- package/login/pipes/msg-str.pipe.d.ts +5 -2
- package/login/pipes/msg-str.pipe.mjs +19 -0
- package/login/pipes/to-array.pipe.d.ts +4 -1
- package/login/pipes/to-array.pipe.mjs +21 -0
- package/login/pipes/to-number.pipe.d.ts +4 -1
- package/login/pipes/to-number.pipe.mjs +20 -0
- package/login/services/index.d.ts +2 -2
- package/login/services/index.mjs +3 -0
- package/login/services/login-resource-injector.service.d.ts +4 -1
- package/login/services/login-resource-injector.service.mjs +68 -0
- package/login/services/user-profile-form.service.d.ts +15 -12
- package/login/services/user-profile-form.service.mjs +1017 -0
- package/package.json +90 -200
- package/src/lib/i18n.ts +2 -2
- package/src/lib/models/index.ts +1 -1
- package/src/lib/providers/keycloakify-angular.providers.ts +18 -18
- package/src/lib/public-api.ts +5 -5
- package/src/lib/services/i18n.service.ts +2 -2
- package/src/lib/services/index.ts +2 -2
- package/src/lib/services/resource-injector.service.ts +7 -7
- package/src/login/DefaultPage.ts +76 -76
- package/src/login/KcContext.ts +1 -1
- package/src/login/classes/component-reference.class.ts +1 -1
- package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +11 -11
- package/src/login/components/field-errors/field-errors.component.ts +9 -9
- package/src/login/components/group-label/group-label.component.ts +12 -12
- package/src/login/components/hello-world/hello-world.component.css +0 -0
- package/src/login/components/hello-world/hello-world.component.html +1 -0
- package/src/login/components/hello-world/hello-world.component.ts +10 -0
- package/src/login/components/index.ts +11 -11
- package/src/login/components/input-field-by-type/input-field-by-type.component.ts +15 -15
- package/src/login/components/input-tag/input-tag.component.ts +20 -20
- package/src/login/components/input-tag-selects/input-tag-selects.component.ts +26 -26
- package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -8
- package/src/login/components/password-wrapper/password-wrapper.component.ts +11 -11
- package/src/login/components/select-tag/select-tag.component.ts +16 -16
- package/src/login/components/textarea-tag/textarea-tag.component.ts +14 -14
- package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +16 -16
- package/src/login/containers/template.component.ts +19 -19
- package/src/login/directives/attributes.directive.ts +2 -2
- package/src/login/directives/index.ts +2 -2
- package/src/login/directives/kc-class.directive.ts +11 -11
- package/src/login/i18n.ts +2 -2
- package/src/login/pages/code/code.component.ts +11 -11
- package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +11 -11
- package/src/login/pages/delete-credential/delete-credential.component.ts +11 -11
- package/src/login/pages/error/error.component.ts +11 -11
- package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -11
- package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +14 -14
- package/src/login/pages/info/info.component.ts +15 -15
- package/src/login/pages/login/login.component.ts +16 -16
- package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -16
- package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -11
- package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -11
- package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -11
- package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +13 -13
- package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -11
- package/src/login/pages/login-otp/login-otp.component.ts +13 -13
- package/src/login/pages/login-page-expired/login-page-expired.component.ts +10 -10
- package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +21 -21
- package/src/login/pages/login-password/login-password.component.ts +14 -14
- package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +13 -13
- package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +13 -13
- package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -12
- package/src/login/pages/login-reset-password/login-reset-password.component.ts +13 -13
- package/src/login/pages/login-update-password/login-update-password.component.ts +16 -16
- package/src/login/pages/login-update-profile/login-update-profile.component.ts +13 -13
- package/src/login/pages/login-username/login-username.component.ts +14 -14
- package/src/login/pages/login-verify-email/login-verify-email.component.ts +11 -11
- package/src/login/pages/login-x509-info/login-x509-info.component.ts +11 -11
- package/src/login/pages/logout-confirm/logout-confirm.component.ts +11 -11
- package/src/login/pages/register/register.component.ts +17 -17
- package/src/login/pages/saml-post-form/saml-post-form.component.ts +13 -13
- package/src/login/pages/select-authenticator/select-authenticator.component.ts +13 -13
- package/src/login/pages/terms/terms.component.ts +11 -11
- package/src/login/pages/update-email/update-email.component.ts +14 -14
- package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +21 -21
- package/src/login/pages/webauthn-error/webauthn-error.component.ts +15 -15
- package/src/login/pages/webauthn-register/webauthn-register.component.ts +20 -20
- package/src/login/pipes/advanced-msg-str.pipe.ts +4 -4
- package/src/login/pipes/index.ts +6 -6
- package/src/login/pipes/input-type.pipe.ts +4 -4
- package/src/login/pipes/kc-sanitize.pipe.ts +8 -8
- package/src/login/pipes/msg-str.pipe.ts +5 -5
- package/src/login/pipes/to-array.pipe.ts +2 -2
- package/src/login/pipes/to-number.pipe.ts +3 -3
- package/src/login/services/index.ts +2 -2
- package/src/login/services/login-resource-injector.service.ts +11 -11
- package/src/login/services/user-profile-form.service.ts +178 -178
- package/stories/login/pages/login/login.stories.ts +146 -0
- package/lib/i18n.js +0 -6
- package/lib/i18n.js.map +0 -1
- package/lib/models/index.js +0 -2
- package/lib/models/index.js.map +0 -1
- package/lib/models/script.model.js +0 -2
- package/lib/models/script.model.js.map +0 -1
- package/lib/providers/keycloakify-angular.providers.js +0 -58
- package/lib/providers/keycloakify-angular.providers.js.map +0 -1
- package/lib/public-api.js +0 -4
- package/lib/public-api.js.map +0 -1
- package/lib/services/i18n.service.js +0 -14
- package/lib/services/i18n.service.js.map +0 -1
- package/lib/services/index.js +0 -3
- package/lib/services/index.js.map +0 -1
- package/lib/services/resource-injector.service.js +0 -57
- package/lib/services/resource-injector.service.js.map +0 -1
- package/login/DefaultPage.js +0 -121
- package/login/DefaultPage.js.map +0 -1
- package/login/KcContext.js +0 -2
- package/login/KcContext.js.map +0 -1
- package/login/classes/component-reference.class.js +0 -3
- package/login/classes/component-reference.class.js.map +0 -1
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +0 -123
- package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
- package/login/components/field-errors/field-errors.component.html +0 -15
- package/login/components/field-errors/field-errors.component.js +0 -45
- package/login/components/field-errors/field-errors.component.js.map +0 -1
- package/login/components/group-label/group-label.component.html +0 -30
- package/login/components/group-label/group-label.component.js +0 -55
- package/login/components/group-label/group-label.component.js.map +0 -1
- package/login/components/index.js +0 -12
- package/login/components/index.js.map +0 -1
- package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js +0 -63
- package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
- package/login/components/input-tag/input-tag.component.html +0 -49
- package/login/components/input-tag/input-tag.component.js +0 -107
- package/login/components/input-tag/input-tag.component.js.map +0 -1
- package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
- package/login/components/input-tag-selects/input-tag-selects.component.js +0 -132
- package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
- package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
- package/login/components/logout-other-sessions/logout-other-sessions.component.js +0 -43
- package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
- package/login/components/password-wrapper/password-wrapper.component.html +0 -15
- package/login/components/password-wrapper/password-wrapper.component.js +0 -57
- package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
- package/login/components/select-tag/select-tag.component.html +0 -31
- package/login/components/select-tag/select-tag.component.js +0 -97
- package/login/components/select-tag/select-tag.component.js.map +0 -1
- package/login/components/textarea-tag/textarea-tag.component.html +0 -18
- package/login/components/textarea-tag/textarea-tag.component.js +0 -63
- package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +0 -74
- package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
- package/login/containers/template.component.html +0 -203
- package/login/containers/template.component.js +0 -78
- package/login/containers/template.component.js.map +0 -1
- package/login/directives/attributes.directive.js +0 -34
- package/login/directives/attributes.directive.js.map +0 -1
- package/login/directives/index.js +0 -3
- package/login/directives/index.js.map +0 -1
- package/login/directives/kc-class.directive.js +0 -146
- package/login/directives/kc-class.directive.js.map +0 -1
- package/login/i18n.js +0 -2
- package/login/i18n.js.map +0 -1
- package/login/pages/code/code.component.html +0 -26
- package/login/pages/code/code.component.js +0 -38
- package/login/pages/code/code.component.js.map +0 -1
- package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js +0 -38
- package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
- package/login/pages/delete-credential/delete-credential.component.html +0 -35
- package/login/pages/delete-credential/delete-credential.component.js +0 -43
- package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
- package/login/pages/error/error.component.html +0 -25
- package/login/pages/error/error.component.js +0 -38
- package/login/pages/error/error.component.js.map +0 -1
- package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js +0 -47
- package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +0 -54
- package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
- package/login/pages/info/info.component.html +0 -54
- package/login/pages/info/info.component.js +0 -61
- package/login/pages/info/info.component.js.map +0 -1
- package/login/pages/login/login.component.html +0 -212
- package/login/pages/login/login.component.js +0 -58
- package/login/pages/login/login.component.js.map +0 -1
- package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
- package/login/pages/login-config-totp/login-config-totp.component.js +0 -53
- package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +0 -43
- package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +0 -43
- package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
- package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js +0 -43
- package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
- package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js +0 -44
- package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +0 -43
- package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
- package/login/pages/login-otp/login-otp.component.html +0 -103
- package/login/pages/login-otp/login-otp.component.js +0 -44
- package/login/pages/login-otp/login-otp.component.js.map +0 -1
- package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
- package/login/pages/login-page-expired/login-page-expired.component.js +0 -42
- package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +0 -91
- package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
- package/login/pages/login-password/login-password.component.html +0 -90
- package/login/pages/login-password/login-password.component.js +0 -52
- package/login/pages/login-password/login-password.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +0 -51
- package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +0 -44
- package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
- package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
- package/login/pages/login-reset-otp/login-reset-otp.component.js +0 -43
- package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
- package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
- package/login/pages/login-reset-password/login-reset-password.component.js +0 -44
- package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
- package/login/pages/login-update-password/login-update-password.component.html +0 -116
- package/login/pages/login-update-password/login-update-password.component.js +0 -53
- package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
- package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
- package/login/pages/login-update-profile/login-update-profile.component.js +0 -50
- package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
- package/login/pages/login-username/login-username.component.html +0 -161
- package/login/pages/login-username/login-username.component.js +0 -56
- package/login/pages/login-username/login-username.component.js.map +0 -1
- package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
- package/login/pages/login-verify-email/login-verify-email.component.js +0 -43
- package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
- package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
- package/login/pages/login-x509-info/login-x509-info.component.js +0 -43
- package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
- package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
- package/login/pages/logout-confirm/logout-confirm.component.js +0 -43
- package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
- package/login/pages/register/register.component.html +0 -126
- package/login/pages/register/register.component.js +0 -62
- package/login/pages/register/register.component.js.map +0 -1
- package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
- package/login/pages/saml-post-form/saml-post-form.component.js +0 -55
- package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
- package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
- package/login/pages/select-authenticator/select-authenticator.component.js +0 -51
- package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
- package/login/pages/terms/terms.component.html +0 -36
- package/login/pages/terms/terms.component.js +0 -43
- package/login/pages/terms/terms.component.js.map +0 -1
- package/login/pages/update-email/update-email.component.html +0 -58
- package/login/pages/update-email/update-email.component.js +0 -52
- package/login/pages/update-email/update-email.component.js.map +0 -1
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +0 -93
- package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
- package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
- package/login/pages/webauthn-error/webauthn-error.component.js +0 -57
- package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
- package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
- package/login/pages/webauthn-register/webauthn-register.component.js +0 -86
- package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
- package/login/pipes/advanced-msg-str.pipe.js +0 -31
- package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
- package/login/pipes/index.js +0 -7
- package/login/pipes/index.js.map +0 -1
- package/login/pipes/input-type.pipe.js +0 -23
- package/login/pipes/input-type.pipe.js.map +0 -1
- package/login/pipes/kc-sanitize.pipe.js +0 -36
- package/login/pipes/kc-sanitize.pipe.js.map +0 -1
- package/login/pipes/msg-str.pipe.js +0 -31
- package/login/pipes/msg-str.pipe.js.map +0 -1
- package/login/pipes/to-array.pipe.js +0 -24
- package/login/pipes/to-array.pipe.js.map +0 -1
- package/login/pipes/to-number.pipe.js +0 -23
- package/login/pipes/to-number.pipe.js.map +0 -1
- package/login/services/index.js +0 -3
- package/login/services/index.js.map +0 -1
- package/login/services/login-resource-injector.service.js +0 -71
- package/login/services/login-resource-injector.service.js.map +0 -1
- package/login/services/user-profile-form.service.js +0 -1031
- package/login/services/user-profile-form.service.js.map +0 -1
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
@let realm = kcContext.realm;
|
|
2
|
-
@let message = kcContext.message;
|
|
3
|
-
@let auth = kcContext.auth;
|
|
4
|
-
@let isAppInitiatedAction = kcContext.isAppInitiatedAction;
|
|
5
|
-
@let url = kcContext.url;
|
|
6
|
-
@let isReadyToRender = isReadyToRender$ | async;
|
|
7
|
-
|
|
8
|
-
@if (isReadyToRender) {
|
|
9
|
-
<div [kcClass]="'kcLoginClass'">
|
|
10
|
-
<div
|
|
11
|
-
id="kc-header"
|
|
12
|
-
[kcClass]="'kcHeaderClass'"
|
|
13
|
-
>
|
|
14
|
-
<div
|
|
15
|
-
id="kc-header-wrapper"
|
|
16
|
-
[kcClass]="'kcHeaderWrapperClass'"
|
|
17
|
-
>
|
|
18
|
-
<div [innerHTML]="realm?.displayNameHtml | kcSanitize: 'html'"></div>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div [kcClass]="'kcFormCardClass'">
|
|
23
|
-
<header [kcClass]="'kcFormHeaderClass'">
|
|
24
|
-
<!-- Locale switcher -->
|
|
25
|
-
@if (i18n.enabledLanguages.length > 1) {
|
|
26
|
-
<div
|
|
27
|
-
id="kc-locale"
|
|
28
|
-
[kcClass]="'kcLocaleMainClass'"
|
|
29
|
-
>
|
|
30
|
-
<div
|
|
31
|
-
id="kc-locale-wrapper"
|
|
32
|
-
[kcClass]="'kcLocaleWrapperClass'"
|
|
33
|
-
>
|
|
34
|
-
<div
|
|
35
|
-
id="kc-locale-dropdown"
|
|
36
|
-
[kcClass]="'kcLocaleDropDownClass'"
|
|
37
|
-
class="menu-button-links"
|
|
38
|
-
>
|
|
39
|
-
<button
|
|
40
|
-
tabindex="1"
|
|
41
|
-
id="kc-current-locale-link"
|
|
42
|
-
[attr.aria-label]="'languages' | msgStr"
|
|
43
|
-
aria-haspopup="true"
|
|
44
|
-
aria-expanded="false"
|
|
45
|
-
aria-controls="language-switch1"
|
|
46
|
-
>
|
|
47
|
-
{{ i18n.currentLanguage.label }}
|
|
48
|
-
</button>
|
|
49
|
-
<ul
|
|
50
|
-
role="menu"
|
|
51
|
-
tabindex="-1"
|
|
52
|
-
aria-labelledby="kc-current-locale-link"
|
|
53
|
-
aria-activedescendant=""
|
|
54
|
-
id="language-switch1"
|
|
55
|
-
[kcClass]="'kcLocaleListClass'"
|
|
56
|
-
>
|
|
57
|
-
@for (entry of i18n.enabledLanguages; track entry; let idx = $index) {
|
|
58
|
-
<li
|
|
59
|
-
[kcClass]="'kcLocaleListItemClass'"
|
|
60
|
-
role="none"
|
|
61
|
-
>
|
|
62
|
-
<a
|
|
63
|
-
role="menuitem"
|
|
64
|
-
tabindex="-1"
|
|
65
|
-
[href]="entry.href"
|
|
66
|
-
[kcClass]="'kcLocaleItemClass'"
|
|
67
|
-
[id]="'language-' + idx"
|
|
68
|
-
>
|
|
69
|
-
{{ entry.label }}
|
|
70
|
-
</a>
|
|
71
|
-
</li>
|
|
72
|
-
}
|
|
73
|
-
</ul>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
<!-- Header content -->
|
|
80
|
-
<ng-template #node>
|
|
81
|
-
@if (auth && !auth.showUsername && !auth.showResetCredentials) {
|
|
82
|
-
<h1 id="kc-page-title">
|
|
83
|
-
<ng-content select="[headerNode]"></ng-content>
|
|
84
|
-
</h1>
|
|
85
|
-
} @else {
|
|
86
|
-
<div
|
|
87
|
-
id="kc-username"
|
|
88
|
-
[kcClass]="'kcFormGroupClass'"
|
|
89
|
-
>
|
|
90
|
-
<label id="kc-attempted-username">{{ auth?.attemptedUsername }}</label>
|
|
91
|
-
<a
|
|
92
|
-
id="reset-login"
|
|
93
|
-
[href]="url?.loginRestartFlowUrl"
|
|
94
|
-
[attr.aria-label]="'restartLoginTooltip' | msgStr"
|
|
95
|
-
>
|
|
96
|
-
<div class="kc-login-tooltip">
|
|
97
|
-
<i [kcClass]="'kcResetFlowIcon'"></i>
|
|
98
|
-
<span class="kc-tooltip-text">
|
|
99
|
-
{{ 'restartLoginTooltip' | msgStr }}
|
|
100
|
-
</span>
|
|
101
|
-
</div>
|
|
102
|
-
</a>
|
|
103
|
-
</div>
|
|
104
|
-
}
|
|
105
|
-
</ng-template>
|
|
106
|
-
|
|
107
|
-
@if (displayRequiredFields()) {
|
|
108
|
-
<div [kcClass]="'kcContentWrapperClass'">
|
|
109
|
-
<div
|
|
110
|
-
[kcClass]="'kcLabelWrapperClass'"
|
|
111
|
-
class="subtitle"
|
|
112
|
-
>
|
|
113
|
-
<span class="subtitle">
|
|
114
|
-
<span class="required">*</span>
|
|
115
|
-
{{ 'requiredFields' | msgStr }}
|
|
116
|
-
</span>
|
|
117
|
-
</div>
|
|
118
|
-
<div class="col-md-10">
|
|
119
|
-
<ng-container [ngTemplateOutlet]="node"></ng-container>
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
} @else {
|
|
123
|
-
<ng-container [ngTemplateOutlet]="node"></ng-container>
|
|
124
|
-
}
|
|
125
|
-
</header>
|
|
126
|
-
|
|
127
|
-
<div id="kc-content">
|
|
128
|
-
<div id="kc-content-wrapper">
|
|
129
|
-
<!-- Message display -->
|
|
130
|
-
@if (displayMessage() && message && (message.type !== 'warning' || !isAppInitiatedAction)) {
|
|
131
|
-
<div
|
|
132
|
-
[kcClass]="'kcAlertClass'"
|
|
133
|
-
[ngClass]="message.type === 'error' ? 'pf-m-danger' : 'pf-m-' + message.type"
|
|
134
|
-
[class]="'alert-' + message.type"
|
|
135
|
-
>
|
|
136
|
-
<div class="pf-c-alert__icon">
|
|
137
|
-
@switch (message.type) {
|
|
138
|
-
@case ('success') {
|
|
139
|
-
<span [kcClass]="'kcFeedbackSuccessIcon'"></span>
|
|
140
|
-
}
|
|
141
|
-
@case ('warning') {
|
|
142
|
-
<span [kcClass]="'kcFeedbackWarningIcon'"></span>
|
|
143
|
-
}
|
|
144
|
-
@case ('info') {
|
|
145
|
-
<span [kcClass]="'kcFeedbackInfoIcon'"></span>
|
|
146
|
-
}
|
|
147
|
-
@case ('error') {
|
|
148
|
-
<span [kcClass]="'kcFeedbackErrorIcon'"></span>
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
</div>
|
|
152
|
-
<span
|
|
153
|
-
[kcClass]="'kcAlertTitleClass'"
|
|
154
|
-
[innerHTML]="message.summary | kcSanitize: 'html'"
|
|
155
|
-
></span>
|
|
156
|
-
</div>
|
|
157
|
-
}
|
|
158
|
-
<!-- Content -->
|
|
159
|
-
<ng-content select="[content]"></ng-content>
|
|
160
|
-
@if (!!auth && auth?.showTryAnotherWayLink) {
|
|
161
|
-
<form
|
|
162
|
-
id="kc-select-try-another-way-form"
|
|
163
|
-
[action]="url?.loginAction"
|
|
164
|
-
method="post"
|
|
165
|
-
>
|
|
166
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
167
|
-
<div [kcClass]="'kcFormGroupClass'">
|
|
168
|
-
<input
|
|
169
|
-
type="hidden"
|
|
170
|
-
name="tryAnotherWay"
|
|
171
|
-
value="on"
|
|
172
|
-
/>
|
|
173
|
-
<a
|
|
174
|
-
id="try-another-way"
|
|
175
|
-
(click)="tryAnotherWay()"
|
|
176
|
-
>
|
|
177
|
-
{{ 'doTryAnotherWay' | msgStr }}
|
|
178
|
-
</a>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
</form>
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
<ng-content select="[socialProvidersNode]"></ng-content>
|
|
185
|
-
<!-- Info display -->
|
|
186
|
-
@if (displayInfo()) {
|
|
187
|
-
<div
|
|
188
|
-
id="kc-info"
|
|
189
|
-
[kcClass]="'kcSignUpClass'"
|
|
190
|
-
>
|
|
191
|
-
<div
|
|
192
|
-
id="kc-info-wrapper"
|
|
193
|
-
[kcClass]="'kcInfoAreaWrapperClass'"
|
|
194
|
-
>
|
|
195
|
-
<ng-content select="[infoNode]"></ng-content>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
}
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var TemplateComponent_1;
|
|
8
|
-
import { AsyncPipe, NgTemplateOutlet } from "@angular/common";
|
|
9
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2 } from "@angular/core";
|
|
10
|
-
import { Meta, Title } from "@angular/platform-browser";
|
|
11
|
-
import { CLASSES, I18N, KC_CONTEXT, USE_DEFAULT_CSS } from "../../lib/public-api";
|
|
12
|
-
import { getKcClsx } from "keycloakify/login/lib/kcClsx";
|
|
13
|
-
import { ComponentReference } from "../../login/classes/component-reference.class";
|
|
14
|
-
import { KcClassDirective } from "../../login/directives/kc-class.directive";
|
|
15
|
-
import { KcSanitizePipe } from "../../login/pipes";
|
|
16
|
-
import { MsgStrPipe } from "../../login/pipes/msg-str.pipe";
|
|
17
|
-
import { LoginResourceInjectorService } from "../../login/services/login-resource-injector.service";
|
|
18
|
-
let TemplateComponent = TemplateComponent_1 = class TemplateComponent extends ComponentReference {
|
|
19
|
-
constructor() {
|
|
20
|
-
var _a;
|
|
21
|
-
super();
|
|
22
|
-
this.i18n = inject(I18N);
|
|
23
|
-
this.renderer = inject(Renderer2);
|
|
24
|
-
this.meta = inject(Meta);
|
|
25
|
-
this.title = inject(Title);
|
|
26
|
-
this.kcContext = inject(KC_CONTEXT);
|
|
27
|
-
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
28
|
-
this.classes = inject(CLASSES);
|
|
29
|
-
this.loginResourceInjectorService = inject(LoginResourceInjectorService);
|
|
30
|
-
this.displayInfo = input(false);
|
|
31
|
-
this.displayMessage = input(true);
|
|
32
|
-
this.displayRequiredFields = input(false);
|
|
33
|
-
this.documentTitle = input();
|
|
34
|
-
this.bodyClassName = input();
|
|
35
|
-
this.title.setTitle((_a = this.documentTitle()) !== null && _a !== void 0 ? _a : this.i18n.msgStr("loginTitle", this.kcContext.realm.displayName));
|
|
36
|
-
this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(this.doUseDefaultCss);
|
|
37
|
-
}
|
|
38
|
-
ngOnInit() {
|
|
39
|
-
this.applyKcIndexClasses();
|
|
40
|
-
}
|
|
41
|
-
applyKcIndexClasses() {
|
|
42
|
-
var _a;
|
|
43
|
-
const kcClsx = getKcClsx({
|
|
44
|
-
doUseDefaultCss: this.doUseDefaultCss,
|
|
45
|
-
classes: this.classes
|
|
46
|
-
}).kcClsx;
|
|
47
|
-
const kcBodyClass = (_a = this.bodyClassName()) !== null && _a !== void 0 ? _a : kcClsx("kcBodyClass");
|
|
48
|
-
const kcHtmlClass = kcClsx("kcHtmlClass");
|
|
49
|
-
const kcBodyClasses = kcBodyClass.split(/\s+/);
|
|
50
|
-
const kcHtmlClasses = kcHtmlClass.split(/\s+/);
|
|
51
|
-
kcBodyClasses.forEach(klass => {
|
|
52
|
-
this.renderer.addClass(document.body, klass);
|
|
53
|
-
});
|
|
54
|
-
kcHtmlClasses.forEach(klass => {
|
|
55
|
-
this.renderer.addClass(document.documentElement, klass);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
tryAnotherWay() {
|
|
59
|
-
document.forms["kc-select-try-another-way-form"].submit();
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
TemplateComponent = TemplateComponent_1 = __decorate([
|
|
63
|
-
Component({
|
|
64
|
-
selector: "kc-login-template",
|
|
65
|
-
templateUrl: "./template.component.html",
|
|
66
|
-
standalone: true,
|
|
67
|
-
imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective, MsgStrPipe],
|
|
68
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
-
providers: [
|
|
70
|
-
{
|
|
71
|
-
provide: ComponentReference,
|
|
72
|
-
useExisting: forwardRef(() => TemplateComponent_1)
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
], TemplateComponent);
|
|
77
|
-
export { TemplateComponent };
|
|
78
|
-
//# sourceMappingURL=template.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.component.js","sourceRoot":"","sources":["../../src/login/containers/template.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM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AK,CAAC,gCAAyC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvE,CAAC;CACJ,CAAA;AArDY,iBAAiB;IAb7B,SAAS,CAAC;QACP,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EAAE,2BAA2B;QACxC,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,CAAC;QACpF,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,mBAAiB,CAAC;aACnD;SACJ;KACJ,CAAC;GACW,iBAAiB,CAqD7B;SArDY,iBAAiB"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _AttributesDirective_el, _AttributesDirective_renderer;
|
|
13
|
-
import { Directive, effect, ElementRef, inject, input, Renderer2 } from "@angular/core";
|
|
14
|
-
let AttributesDirective = class AttributesDirective {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.kcAttributes = input();
|
|
17
|
-
_AttributesDirective_el.set(this, inject(ElementRef));
|
|
18
|
-
_AttributesDirective_renderer.set(this, inject(Renderer2));
|
|
19
|
-
effect(() => {
|
|
20
|
-
const attributes = this.kcAttributes();
|
|
21
|
-
if (attributes) {
|
|
22
|
-
Object.entries(attributes).forEach(([key, value]) => {
|
|
23
|
-
__classPrivateFieldGet(this, _AttributesDirective_renderer, "f").setAttribute(__classPrivateFieldGet(this, _AttributesDirective_el, "f").nativeElement, `data-${key}`, value);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
_AttributesDirective_el = new WeakMap(), _AttributesDirective_renderer = new WeakMap();
|
|
30
|
-
AttributesDirective = __decorate([
|
|
31
|
-
Directive({ selector: "[kcAttributes]", standalone: true })
|
|
32
|
-
], AttributesDirective);
|
|
33
|
-
export { AttributesDirective };
|
|
34
|
-
//# sourceMappingURL=attributes.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.directive.js","sourceRoot":"","sources":["../../src/login/directives/attributes.directive.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAGjF,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAK5B;QAJA,iBAAY,GAAG,KAAK,EAA0B,CAAC;QAC/C,kCAAe,MAAM,CAA0B,UAAU,CAAC,EAAC;QAC3D,wCAAqB,MAAM,CAAC,SAAS,CAAC,EAAC;QAGnC,MAAM,CAAC,GAAG,EAAE;YACR,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;YACvC,IAAI,UAAU,EAAE;gBACZ,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;oBAChD,uBAAA,IAAI,qCAAU,CAAC,YAAY,CACvB,uBAAA,IAAI,+BAAI,CAAC,aAAa,EACtB,QAAQ,GAAG,EAAE,EACb,KAAK,CACR,CAAC;gBACN,CAAC,CAAC,CAAC;aACN;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;;AAnBY,mBAAmB;IAD/B,SAAS,CAAC,EAAE,QAAQ,EAAE,gBAAgB,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAC/C,mBAAmB,CAmB/B;SAnBY,mBAAmB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _KcClassDirective_renderer, _KcClassDirective_el, _KcClassDirective_host;
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
|
-
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
|
|
15
|
-
import { Directive, ElementRef, inject, Input, isDevMode, Renderer2, ɵstringify as stringify } from "@angular/core";
|
|
16
|
-
import { getKcClsx } from "keycloakify/login/lib/kcClsx";
|
|
17
|
-
import { ComponentReference } from "../classes/component-reference.class";
|
|
18
|
-
let KcClassDirective = class KcClassDirective {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.initialClasses = [];
|
|
21
|
-
this.stateMap = new Map();
|
|
22
|
-
_KcClassDirective_renderer.set(this, inject(Renderer2));
|
|
23
|
-
_KcClassDirective_el.set(this, inject(ElementRef));
|
|
24
|
-
_KcClassDirective_host.set(this, inject(ComponentReference));
|
|
25
|
-
}
|
|
26
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
27
|
-
set klass(value) {
|
|
28
|
-
this.initialClasses = value != null ? value.trim().split(/\s+/) : [];
|
|
29
|
-
}
|
|
30
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
31
|
-
set ngClass(value) {
|
|
32
|
-
this.rawClass = typeof value === "string" ? value.trim().split(/\s+/) : value;
|
|
33
|
-
}
|
|
34
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
35
|
-
set kcClass(value) {
|
|
36
|
-
this.rawKcClass =
|
|
37
|
-
typeof value === "string" ? value.trim().split(/\s+/) : value;
|
|
38
|
-
}
|
|
39
|
-
ngDoCheck() {
|
|
40
|
-
for (const klass of this.initialClasses) {
|
|
41
|
-
this._updateState(klass, true);
|
|
42
|
-
}
|
|
43
|
-
// classes from the [ngClass] binding
|
|
44
|
-
const rawClass = this.rawClass;
|
|
45
|
-
if (Array.isArray(rawClass) || rawClass instanceof Set) {
|
|
46
|
-
for (const klass of rawClass) {
|
|
47
|
-
this._updateState(klass, true);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else if (rawClass != null) {
|
|
51
|
-
for (const klass of Object.keys(rawClass)) {
|
|
52
|
-
this._updateState(klass, Boolean(rawClass[klass]));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
// classes from the [kcClass] binding
|
|
56
|
-
const rawKcClass = this.rawKcClass;
|
|
57
|
-
if (Array.isArray(rawKcClass) || rawKcClass instanceof Set) {
|
|
58
|
-
for (const klass of rawKcClass) {
|
|
59
|
-
this._updateState(klass, true, true);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
else if (rawKcClass != null) {
|
|
63
|
-
for (const klass of Object.keys(rawKcClass)) {
|
|
64
|
-
this._updateState(klass, Boolean(rawKcClass[klass]), true);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
this._applyStateDiff();
|
|
68
|
-
}
|
|
69
|
-
_updateState(klass, nextEnabled, kcClsxCheck = false) {
|
|
70
|
-
var _a;
|
|
71
|
-
const state = this.stateMap.get(klass);
|
|
72
|
-
if (state !== undefined) {
|
|
73
|
-
if (state.enabled !== nextEnabled) {
|
|
74
|
-
state.changed = true;
|
|
75
|
-
state.enabled = nextEnabled;
|
|
76
|
-
}
|
|
77
|
-
state.touched = true;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
let klassChecked = klass;
|
|
81
|
-
if (kcClsxCheck) {
|
|
82
|
-
const doUseDefaultCss = (_a = __classPrivateFieldGet(this, _KcClassDirective_host, "f").doUseDefaultCss) !== null && _a !== void 0 ? _a : true;
|
|
83
|
-
const classes = __classPrivateFieldGet(this, _KcClassDirective_host, "f").classes;
|
|
84
|
-
const kcClsx = getKcClsx({ doUseDefaultCss, classes }).kcClsx;
|
|
85
|
-
klassChecked = kcClsx(klass);
|
|
86
|
-
}
|
|
87
|
-
this.stateMap.set(klassChecked, {
|
|
88
|
-
enabled: nextEnabled,
|
|
89
|
-
changed: true,
|
|
90
|
-
touched: true
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
_applyStateDiff() {
|
|
95
|
-
for (const stateEntry of this.stateMap) {
|
|
96
|
-
const klass = stateEntry[0];
|
|
97
|
-
const state = stateEntry[1];
|
|
98
|
-
if (state.changed) {
|
|
99
|
-
this._toggleClass(klass, state.enabled);
|
|
100
|
-
state.changed = false;
|
|
101
|
-
}
|
|
102
|
-
else if (!state.touched) {
|
|
103
|
-
// A class that was previously active got removed from the new collection of classes -
|
|
104
|
-
// remove from the DOM as well.
|
|
105
|
-
if (state.enabled) {
|
|
106
|
-
this._toggleClass(klass, false);
|
|
107
|
-
}
|
|
108
|
-
this.stateMap.delete(klass);
|
|
109
|
-
}
|
|
110
|
-
state.touched = false;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
_toggleClass(klass, enabled) {
|
|
114
|
-
if (isDevMode()) {
|
|
115
|
-
if (typeof klass !== "string") {
|
|
116
|
-
throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
klass = klass.trim();
|
|
120
|
-
if (klass.length > 0) {
|
|
121
|
-
klass.split(/\s+/).forEach(klass => {
|
|
122
|
-
if (enabled) {
|
|
123
|
-
__classPrivateFieldGet(this, _KcClassDirective_renderer, "f").addClass(__classPrivateFieldGet(this, _KcClassDirective_el, "f").nativeElement, klass);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
__classPrivateFieldGet(this, _KcClassDirective_renderer, "f").removeClass(__classPrivateFieldGet(this, _KcClassDirective_el, "f").nativeElement, klass);
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
_KcClassDirective_renderer = new WeakMap(), _KcClassDirective_el = new WeakMap(), _KcClassDirective_host = new WeakMap();
|
|
133
|
-
__decorate([
|
|
134
|
-
Input("class")
|
|
135
|
-
], KcClassDirective.prototype, "klass", null);
|
|
136
|
-
__decorate([
|
|
137
|
-
Input("ngClass")
|
|
138
|
-
], KcClassDirective.prototype, "ngClass", null);
|
|
139
|
-
__decorate([
|
|
140
|
-
Input("kcClass")
|
|
141
|
-
], KcClassDirective.prototype, "kcClass", null);
|
|
142
|
-
KcClassDirective = __decorate([
|
|
143
|
-
Directive({ selector: "[kcClass]", standalone: true })
|
|
144
|
-
], KcClassDirective);
|
|
145
|
-
export { KcClassDirective };
|
|
146
|
-
//# sourceMappingURL=kc-class.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kc-class.directive.js","sourceRoot":"","sources":["../../src/login/directives/kc-class.directive.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAuD;AACvD,uEAAuE;AACvE,OAAO,EACH,SAAS,EAET,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,EACT,SAAS,EACT,UAAU,IAAI,SAAS,EAC1B,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAwBnE,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAAtB;QACK,mBAAc,GAAa,EAAE,CAAC;QAI9B,aAAQ,GAAG,IAAI,GAAG,EAAoC,CAAC;QAC/D,qCAAqB,MAAM,CAAC,SAAS,CAAC,EAAC;QACvC,+BAAe,MAAM,CAAC,UAAU,CAAC,EAAC;QAClC,iCAAiB,MAAM,CAAC,kBAAkB,CAAC,EAAC;IAwHhD,CAAC;IAvHG,2DAA2D;IAE3D,IAAI,KAAK,CAAC,KAAa;QACnB,IAAI,CAAC,cAAc,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;I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AAC,WAAW,CAAC,uBAAA,IAAI,4BAAI,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;iBAC7D;YACL,CAAC,CAAC,CAAC;SACN;IACL,CAAC;CACJ,CAAA;;AArHG;IADC,KAAK,CAAC,OAAO,CAAC;6CAGd;AAID;IADC,KAAK,CAAC,SAAS,CAAC;+CAGhB;AAID;IADC,KAAK,CAAC,SAAS,CAAC;+CAIhB;AA1BQ,gBAAgB;IAD5B,SAAS,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAC1C,gBAAgB,CAgI5B;SAhIY,gBAAgB"}
|
package/login/i18n.js
DELETED
package/login/i18n.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../src/login/i18n.ts"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@let code = kcContext.code;
|
|
2
|
-
|
|
3
|
-
<kc-login-template>
|
|
4
|
-
<ng-container headerNode>
|
|
5
|
-
@if (code.success) {
|
|
6
|
-
{{ 'codeSuccessTitle' | msgStr }}
|
|
7
|
-
} @else {
|
|
8
|
-
{{ 'codeErrorTitle' | msgStr: code.error }}
|
|
9
|
-
}
|
|
10
|
-
</ng-container>
|
|
11
|
-
|
|
12
|
-
<ng-container content>
|
|
13
|
-
<div id="kc-code">
|
|
14
|
-
@if (code.success) {
|
|
15
|
-
<p>{{ 'copyCodeInstruction' | msgStr }}</p>
|
|
16
|
-
<input
|
|
17
|
-
id="code"
|
|
18
|
-
[kcClass]="'kcTextareaClass'"
|
|
19
|
-
defaultValue="{{ code.code }}"
|
|
20
|
-
/>
|
|
21
|
-
} @else {
|
|
22
|
-
<p id="error">{{ code.error }}</p>
|
|
23
|
-
}
|
|
24
|
-
</div>
|
|
25
|
-
</ng-container>
|
|
26
|
-
</kc-login-template>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var CodeComponent_1;
|
|
8
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
|
|
9
|
-
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
-
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
-
import { TemplateComponent } from "../../../login/containers/template.component";
|
|
12
|
-
import { KcClassDirective } from "../../../login/directives/kc-class.directive";
|
|
13
|
-
import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
|
|
14
|
-
let CodeComponent = CodeComponent_1 = class CodeComponent extends ComponentReference {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.kcContext = inject(KC_CONTEXT);
|
|
18
|
-
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
19
|
-
this.classes = inject(CLASSES);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
CodeComponent = CodeComponent_1 = __decorate([
|
|
23
|
-
Component({
|
|
24
|
-
standalone: true,
|
|
25
|
-
imports: [MsgStrPipe, TemplateComponent, KcClassDirective],
|
|
26
|
-
selector: "kc-root",
|
|
27
|
-
templateUrl: "code.component.html",
|
|
28
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
-
providers: [
|
|
30
|
-
{
|
|
31
|
-
provide: ComponentReference,
|
|
32
|
-
useExisting: forwardRef(() => CodeComponent_1)
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
], CodeComponent);
|
|
37
|
-
export { CodeComponent };
|
|
38
|
-
//# sourceMappingURL=code.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code.component.js","sourceRoot":"","sources":["../../../src/login/pages/code/code.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EACH,OAAO,EACP,UAAU,EACV,eAAe,EAClB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAepE,IAAM,aAAa,qBAAnB,MAAM,aAAc,SAAQ,kBAAkB;IAA9C;;QACH,cAAS,GAAG,MAAM,CAA6C,UAAU,CAAC,CAAC;QAClE,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA,CAAA;AAJY,aAAa;IAbzB,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;QAC1D,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,qBAAqB;QAClC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,eAAa,CAAC;aAC/C;SACJ;KACJ,CAAC;GACW,aAAa,CAIzB;SAJY,aAAa"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@let url = kcContext.url;
|
|
2
|
-
@let triggered_from_aia = kcContext.triggered_from_aia;
|
|
3
|
-
<kc-login-template>
|
|
4
|
-
<ng-container headerNode>
|
|
5
|
-
{{ 'deleteAccountConfirm' | msgStr }}
|
|
6
|
-
</ng-container>
|
|
7
|
-
<ng-container content>
|
|
8
|
-
<form
|
|
9
|
-
[action]="url.loginAction"
|
|
10
|
-
method="post"
|
|
11
|
-
class="form-actions"
|
|
12
|
-
>
|
|
13
|
-
<div
|
|
14
|
-
class="alert alert-warning"
|
|
15
|
-
style="margin-top: 0; margin-bottom: 30px"
|
|
16
|
-
>
|
|
17
|
-
<span class="pficon pficon-warning-triangle-o"></span>
|
|
18
|
-
{{ 'irreversibleAction' | msgStr }}
|
|
19
|
-
</div>
|
|
20
|
-
<p>{{ 'deletingImplies' | msgStr }}</p>
|
|
21
|
-
<ul style="color: #72767b; list-style: disc; list-style-position: inside">
|
|
22
|
-
<li>{{ 'loggingOutImmediately' | msgStr }}</li>
|
|
23
|
-
<li>{{ 'errasingData' | msgStr }}</li>
|
|
24
|
-
</ul>
|
|
25
|
-
<p class="delete-account-text">{{ 'finalDeletionConfirmation' | msgStr }}</p>
|
|
26
|
-
<div id="kc-form-buttons">
|
|
27
|
-
<input
|
|
28
|
-
[kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
|
|
29
|
-
type="submit"
|
|
30
|
-
value="{{ 'doConfirmDelete' | msgStr }}"
|
|
31
|
-
/>
|
|
32
|
-
@if (triggered_from_aia) {
|
|
33
|
-
<button
|
|
34
|
-
[kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
|
|
35
|
-
style="margin-left: calc(100% - 220px)"
|
|
36
|
-
type="submit"
|
|
37
|
-
name="cancel-aia"
|
|
38
|
-
value="true"
|
|
39
|
-
>
|
|
40
|
-
{{ 'doCancel' | msgStr }}
|
|
41
|
-
</button>
|
|
42
|
-
}
|
|
43
|
-
</div>
|
|
44
|
-
</form>
|
|
45
|
-
</ng-container>
|
|
46
|
-
</kc-login-template>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var DeleteAccountConfirmComponent_1;
|
|
8
|
-
import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
|
|
9
|
-
import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from "../../../lib/public-api";
|
|
10
|
-
import { ComponentReference } from "../../../login/classes/component-reference.class";
|
|
11
|
-
import { TemplateComponent } from "../../../login/containers/template.component";
|
|
12
|
-
import { KcClassDirective } from "../../../login/directives";
|
|
13
|
-
import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
|
|
14
|
-
let DeleteAccountConfirmComponent = DeleteAccountConfirmComponent_1 = class DeleteAccountConfirmComponent extends ComponentReference {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.kcContext = inject(KC_CONTEXT);
|
|
18
|
-
this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
|
|
19
|
-
this.classes = inject(CLASSES);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
DeleteAccountConfirmComponent = DeleteAccountConfirmComponent_1 = __decorate([
|
|
23
|
-
Component({
|
|
24
|
-
standalone: true,
|
|
25
|
-
imports: [TemplateComponent, MsgStrPipe, KcClassDirective],
|
|
26
|
-
selector: "kc-root",
|
|
27
|
-
templateUrl: "delete-account-confirm.component.html",
|
|
28
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
-
providers: [
|
|
30
|
-
{
|
|
31
|
-
provide: ComponentReference,
|
|
32
|
-
useExisting: forwardRef(() => DeleteAccountConfirmComponent_1)
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
], DeleteAccountConfirmComponent);
|
|
37
|
-
export { DeleteAccountConfirmComponent };
|
|
38
|
-
//# sourceMappingURL=delete-account-confirm.component.js.map
|