@keycloakify/angular 0.0.1-rc.17 → 0.0.1-rc.19

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.
Files changed (350) hide show
  1. package/account/containers/template/template.component.d.ts +18 -5
  2. package/account/pages/account/account.component.d.ts +3 -2
  3. package/account/pages/applications/applications.component.d.ts +3 -2
  4. package/account/pages/federatedIdentity/federatedIdentity.component.d.ts +3 -2
  5. package/account/pages/log/log.component.d.ts +3 -2
  6. package/account/pages/password/password.component.d.ts +3 -2
  7. package/account/pages/sessions/sessions.component.d.ts +3 -2
  8. package/account/pages/totp/totp.component.d.ts +3 -2
  9. package/esm2022/account/containers/template/template.component.mjs +42 -9
  10. package/esm2022/account/directives/kc-class/kc-class.directive.mjs +3 -3
  11. package/esm2022/account/pages/account/account.component.mjs +8 -7
  12. package/esm2022/account/pages/applications/applications.component.mjs +8 -7
  13. package/esm2022/account/pages/federatedIdentity/federatedIdentity.component.mjs +8 -7
  14. package/esm2022/account/pages/log/log.component.mjs +8 -7
  15. package/esm2022/account/pages/password/password.component.mjs +9 -7
  16. package/esm2022/account/pages/sessions/sessions.component.mjs +8 -7
  17. package/esm2022/account/pages/totp/totp.component.mjs +8 -7
  18. package/esm2022/account/providers/keycloakify-angular/keycloakify-angular.providers.mjs +2 -1
  19. package/esm2022/account/services/account-resource-injector/account-resource-injector.service.mjs +3 -3
  20. package/esm2022/account/services/i18n/i18n.service.mjs +3 -3
  21. package/esm2022/lib/directives/attributes/attributes.directive.mjs +3 -3
  22. package/esm2022/lib/pipes/input-type/input-type.pipe.mjs +3 -3
  23. package/esm2022/lib/pipes/is-array-with-empty-object/is-array-with-empty-object.pipe.mjs +3 -3
  24. package/esm2022/lib/pipes/kc-sanitize/kc-sanitize.pipe.mjs +3 -3
  25. package/esm2022/lib/pipes/to-array/to-array.pipe.mjs +3 -3
  26. package/esm2022/lib/pipes/to-number/to-number.pipe.mjs +3 -3
  27. package/esm2022/lib/services/resource-injector/resource-injector.service.mjs +3 -3
  28. package/esm2022/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +5 -5
  29. package/esm2022/login/components/field-errors/field-errors.component.mjs +6 -6
  30. package/esm2022/login/components/group-label/group-label.component.mjs +3 -3
  31. package/esm2022/login/components/input-field-by-type/input-field-by-type.component.mjs +6 -6
  32. package/esm2022/login/components/input-tag/input-tag.component.mjs +6 -6
  33. package/esm2022/login/components/input-tag-selects/input-tag-selects.component.mjs +3 -3
  34. package/esm2022/login/components/logout-other-sessions/logout-other-sessions.component.mjs +3 -3
  35. package/esm2022/login/components/password-wrapper/password-wrapper.component.mjs +6 -6
  36. package/esm2022/login/components/select-tag/select-tag.component.mjs +3 -3
  37. package/esm2022/login/components/textarea-tag/textarea-tag.component.mjs +3 -3
  38. package/esm2022/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +6 -6
  39. package/esm2022/login/containers/template/template.component.mjs +83 -15
  40. package/esm2022/login/directives/kc-class/kc-class.directive.mjs +5 -5
  41. package/esm2022/login/pages/code/code.component.mjs +16 -10
  42. package/esm2022/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +14 -8
  43. package/esm2022/login/pages/delete-credential/delete-credential.component.mjs +12 -11
  44. package/esm2022/login/pages/error/error.component.mjs +16 -10
  45. package/esm2022/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +14 -12
  46. package/esm2022/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +14 -13
  47. package/esm2022/login/pages/info/info.component.mjs +13 -12
  48. package/esm2022/login/pages/login/login.component.mjs +15 -14
  49. package/esm2022/login/pages/login-config-totp/login-config-totp.component.mjs +14 -13
  50. package/esm2022/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +13 -16
  51. package/esm2022/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +13 -16
  52. package/esm2022/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +12 -15
  53. package/esm2022/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +13 -15
  54. package/esm2022/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +12 -11
  55. package/esm2022/login/pages/login-otp/login-otp.component.mjs +13 -12
  56. package/esm2022/login/pages/login-page-expired/login-page-expired.component.mjs +12 -11
  57. package/esm2022/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +13 -8
  58. package/esm2022/login/pages/login-password/login-password.component.mjs +15 -13
  59. package/esm2022/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +14 -13
  60. package/esm2022/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +14 -13
  61. package/esm2022/login/pages/login-reset-otp/login-reset-otp.component.mjs +13 -12
  62. package/esm2022/login/pages/login-reset-password/login-reset-password.component.mjs +13 -12
  63. package/esm2022/login/pages/login-update-password/login-update-password.component.mjs +13 -12
  64. package/esm2022/login/pages/login-update-profile/login-update-profile.component.mjs +13 -12
  65. package/esm2022/login/pages/login-username/login-username.component.mjs +14 -13
  66. package/esm2022/login/pages/login-verify-email/login-verify-email.component.mjs +12 -11
  67. package/esm2022/login/pages/login-x509-info/login-x509-info.component.mjs +12 -11
  68. package/esm2022/login/pages/logout-confirm/logout-confirm.component.mjs +12 -15
  69. package/esm2022/login/pages/register/register.component.mjs +16 -15
  70. package/esm2022/login/pages/saml-post-form/saml-post-form.component.mjs +16 -17
  71. package/esm2022/login/pages/select-authenticator/select-authenticator.component.mjs +13 -12
  72. package/esm2022/login/pages/terms/terms.component.mjs +12 -11
  73. package/esm2022/login/pages/update-email/update-email.component.mjs +14 -17
  74. package/esm2022/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +12 -11
  75. package/esm2022/login/pages/webauthn-error/webauthn-error.component.mjs +13 -12
  76. package/esm2022/login/pages/webauthn-register/webauthn-register.component.mjs +12 -11
  77. package/esm2022/login/providers/keycloakify-angular/keycloakify-angular.providers.mjs +2 -1
  78. package/esm2022/login/services/i18n/i18n.service.mjs +3 -3
  79. package/esm2022/login/services/login-resource-injector/login-resource-injector.service.mjs +3 -3
  80. package/esm2022/login/services/submit/submit.service.mjs +4 -4
  81. package/esm2022/login/services/user-profile-form/user-profile-form.service.mjs +3 -3
  82. package/fesm2022/keycloakify-angular-account-containers-template.mjs +42 -9
  83. package/fesm2022/keycloakify-angular-account-containers-template.mjs.map +1 -1
  84. package/fesm2022/keycloakify-angular-account-directives-kc-class.mjs +3 -3
  85. package/fesm2022/keycloakify-angular-account-pages-account.mjs +7 -6
  86. package/fesm2022/keycloakify-angular-account-pages-account.mjs.map +1 -1
  87. package/fesm2022/keycloakify-angular-account-pages-applications.mjs +7 -6
  88. package/fesm2022/keycloakify-angular-account-pages-applications.mjs.map +1 -1
  89. package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs +7 -6
  90. package/fesm2022/keycloakify-angular-account-pages-federatedIdentity.mjs.map +1 -1
  91. package/fesm2022/keycloakify-angular-account-pages-log.mjs +7 -6
  92. package/fesm2022/keycloakify-angular-account-pages-log.mjs.map +1 -1
  93. package/fesm2022/keycloakify-angular-account-pages-password.mjs +8 -6
  94. package/fesm2022/keycloakify-angular-account-pages-password.mjs.map +1 -1
  95. package/fesm2022/keycloakify-angular-account-pages-sessions.mjs +7 -6
  96. package/fesm2022/keycloakify-angular-account-pages-sessions.mjs.map +1 -1
  97. package/fesm2022/keycloakify-angular-account-pages-totp.mjs +7 -6
  98. package/fesm2022/keycloakify-angular-account-pages-totp.mjs.map +1 -1
  99. package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs +1 -0
  100. package/fesm2022/keycloakify-angular-account-providers-keycloakify-angular.mjs.map +1 -1
  101. package/fesm2022/keycloakify-angular-account-services-account-resource-injector.mjs +3 -3
  102. package/fesm2022/keycloakify-angular-account-services-i18n.mjs +3 -3
  103. package/fesm2022/keycloakify-angular-lib-directives-attributes.mjs +3 -3
  104. package/fesm2022/keycloakify-angular-lib-pipes-input-type.mjs +3 -3
  105. package/fesm2022/keycloakify-angular-lib-pipes-is-array-with-empty-object.mjs +3 -3
  106. package/fesm2022/keycloakify-angular-lib-pipes-kc-sanitize.mjs +3 -3
  107. package/fesm2022/keycloakify-angular-lib-pipes-to-array.mjs +3 -3
  108. package/fesm2022/keycloakify-angular-lib-pipes-to-number.mjs +3 -3
  109. package/fesm2022/keycloakify-angular-lib-services-resource-injector.mjs +3 -3
  110. package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs +4 -4
  111. package/fesm2022/keycloakify-angular-login-components-add-remove-buttons-multi-valued-attribute.mjs.map +1 -1
  112. package/fesm2022/keycloakify-angular-login-components-field-errors.mjs +5 -5
  113. package/fesm2022/keycloakify-angular-login-components-field-errors.mjs.map +1 -1
  114. package/fesm2022/keycloakify-angular-login-components-group-label.mjs +3 -3
  115. package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs +5 -5
  116. package/fesm2022/keycloakify-angular-login-components-input-field-by-type.mjs.map +1 -1
  117. package/fesm2022/keycloakify-angular-login-components-input-tag-selects.mjs +3 -3
  118. package/fesm2022/keycloakify-angular-login-components-input-tag.mjs +5 -5
  119. package/fesm2022/keycloakify-angular-login-components-input-tag.mjs.map +1 -1
  120. package/fesm2022/keycloakify-angular-login-components-logout-other-sessions.mjs +3 -3
  121. package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs +5 -5
  122. package/fesm2022/keycloakify-angular-login-components-password-wrapper.mjs.map +1 -1
  123. package/fesm2022/keycloakify-angular-login-components-select-tag.mjs +3 -3
  124. package/fesm2022/keycloakify-angular-login-components-textarea-tag.mjs +3 -3
  125. package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs +5 -5
  126. package/fesm2022/keycloakify-angular-login-components-user-profile-form-fields.mjs.map +1 -1
  127. package/fesm2022/keycloakify-angular-login-containers-template.mjs +83 -15
  128. package/fesm2022/keycloakify-angular-login-containers-template.mjs.map +1 -1
  129. package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs +4 -4
  130. package/fesm2022/keycloakify-angular-login-directives-kc-class.mjs.map +1 -1
  131. package/fesm2022/keycloakify-angular-login-pages-code.mjs +15 -9
  132. package/fesm2022/keycloakify-angular-login-pages-code.mjs.map +1 -1
  133. package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs +13 -7
  134. package/fesm2022/keycloakify-angular-login-pages-delete-account-confirm.mjs.map +1 -1
  135. package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs +11 -10
  136. package/fesm2022/keycloakify-angular-login-pages-delete-credential.mjs.map +1 -1
  137. package/fesm2022/keycloakify-angular-login-pages-error.mjs +15 -9
  138. package/fesm2022/keycloakify-angular-login-pages-error.mjs.map +1 -1
  139. package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs +13 -11
  140. package/fesm2022/keycloakify-angular-login-pages-frontchannel-logout.mjs.map +1 -1
  141. package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs +13 -12
  142. package/fesm2022/keycloakify-angular-login-pages-idp-review-user-profile.mjs.map +1 -1
  143. package/fesm2022/keycloakify-angular-login-pages-info.mjs +12 -11
  144. package/fesm2022/keycloakify-angular-login-pages-info.mjs.map +1 -1
  145. package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs +13 -12
  146. package/fesm2022/keycloakify-angular-login-pages-login-config-totp.mjs.map +1 -1
  147. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs +12 -15
  148. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm-override.mjs.map +1 -1
  149. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs +12 -15
  150. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-confirm.mjs.map +1 -1
  151. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs +11 -14
  152. package/fesm2022/keycloakify-angular-login-pages-login-idp-link-email.mjs.map +1 -1
  153. package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs +12 -14
  154. package/fesm2022/keycloakify-angular-login-pages-login-oauth-grant.mjs.map +1 -1
  155. package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs +11 -10
  156. package/fesm2022/keycloakify-angular-login-pages-login-oauth2-device-verify-user-code.mjs.map +1 -1
  157. package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs +12 -11
  158. package/fesm2022/keycloakify-angular-login-pages-login-otp.mjs.map +1 -1
  159. package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs +11 -10
  160. package/fesm2022/keycloakify-angular-login-pages-login-page-expired.mjs.map +1 -1
  161. package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs +12 -7
  162. package/fesm2022/keycloakify-angular-login-pages-login-passkeys-conditional-authenticate.mjs.map +1 -1
  163. package/fesm2022/keycloakify-angular-login-pages-login-password.mjs +14 -12
  164. package/fesm2022/keycloakify-angular-login-pages-login-password.mjs.map +1 -1
  165. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs +13 -12
  166. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-config.mjs.map +1 -1
  167. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs +13 -12
  168. package/fesm2022/keycloakify-angular-login-pages-login-recovery-authn-code-input.mjs.map +1 -1
  169. package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs +12 -11
  170. package/fesm2022/keycloakify-angular-login-pages-login-reset-otp.mjs.map +1 -1
  171. package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs +12 -11
  172. package/fesm2022/keycloakify-angular-login-pages-login-reset-password.mjs.map +1 -1
  173. package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs +12 -11
  174. package/fesm2022/keycloakify-angular-login-pages-login-update-password.mjs.map +1 -1
  175. package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs +12 -11
  176. package/fesm2022/keycloakify-angular-login-pages-login-update-profile.mjs.map +1 -1
  177. package/fesm2022/keycloakify-angular-login-pages-login-username.mjs +13 -12
  178. package/fesm2022/keycloakify-angular-login-pages-login-username.mjs.map +1 -1
  179. package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs +11 -10
  180. package/fesm2022/keycloakify-angular-login-pages-login-verify-email.mjs.map +1 -1
  181. package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs +11 -10
  182. package/fesm2022/keycloakify-angular-login-pages-login-x509-info.mjs.map +1 -1
  183. package/fesm2022/keycloakify-angular-login-pages-login.mjs +14 -13
  184. package/fesm2022/keycloakify-angular-login-pages-login.mjs.map +1 -1
  185. package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs +11 -14
  186. package/fesm2022/keycloakify-angular-login-pages-logout-confirm.mjs.map +1 -1
  187. package/fesm2022/keycloakify-angular-login-pages-register.mjs +15 -14
  188. package/fesm2022/keycloakify-angular-login-pages-register.mjs.map +1 -1
  189. package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs +15 -16
  190. package/fesm2022/keycloakify-angular-login-pages-saml-post-form.mjs.map +1 -1
  191. package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs +12 -11
  192. package/fesm2022/keycloakify-angular-login-pages-select-authenticator.mjs.map +1 -1
  193. package/fesm2022/keycloakify-angular-login-pages-terms.mjs +11 -10
  194. package/fesm2022/keycloakify-angular-login-pages-terms.mjs.map +1 -1
  195. package/fesm2022/keycloakify-angular-login-pages-update-email.mjs +13 -16
  196. package/fesm2022/keycloakify-angular-login-pages-update-email.mjs.map +1 -1
  197. package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs +11 -10
  198. package/fesm2022/keycloakify-angular-login-pages-webauthn-authenticate.mjs.map +1 -1
  199. package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs +12 -11
  200. package/fesm2022/keycloakify-angular-login-pages-webauthn-error.mjs.map +1 -1
  201. package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs +11 -10
  202. package/fesm2022/keycloakify-angular-login-pages-webauthn-register.mjs.map +1 -1
  203. package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs +1 -0
  204. package/fesm2022/keycloakify-angular-login-providers-keycloakify-angular.mjs.map +1 -1
  205. package/fesm2022/keycloakify-angular-login-services-i18n.mjs +3 -3
  206. package/fesm2022/keycloakify-angular-login-services-login-resource-injector.mjs +3 -3
  207. package/fesm2022/keycloakify-angular-login-services-submit.mjs +3 -3
  208. package/fesm2022/keycloakify-angular-login-services-submit.mjs.map +1 -1
  209. package/fesm2022/keycloakify-angular-login-services-user-profile-form.mjs +3 -3
  210. package/login/containers/template/template.component.d.ts +25 -9
  211. package/login/directives/kc-class/kc-class.directive.d.ts +1 -1
  212. package/login/pages/code/code.component.d.ts +12 -3
  213. package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +11 -2
  214. package/login/pages/delete-credential/delete-credential.component.d.ts +9 -5
  215. package/login/pages/error/error.component.d.ts +11 -2
  216. package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +9 -5
  217. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +10 -7
  218. package/login/pages/info/info.component.d.ts +9 -5
  219. package/login/pages/login/login.component.d.ts +10 -6
  220. package/login/pages/login-config-totp/login-config-totp.component.d.ts +9 -5
  221. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +8 -7
  222. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +8 -7
  223. package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +8 -7
  224. package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +8 -7
  225. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +9 -5
  226. package/login/pages/login-otp/login-otp.component.d.ts +9 -5
  227. package/login/pages/login-page-expired/login-page-expired.component.d.ts +9 -5
  228. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +11 -3
  229. package/login/pages/login-password/login-password.component.d.ts +10 -5
  230. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +9 -5
  231. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +9 -5
  232. package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +9 -5
  233. package/login/pages/login-reset-password/login-reset-password.component.d.ts +9 -5
  234. package/login/pages/login-update-password/login-update-password.component.d.ts +9 -5
  235. package/login/pages/login-update-profile/login-update-profile.component.d.ts +9 -6
  236. package/login/pages/login-username/login-username.component.d.ts +10 -6
  237. package/login/pages/login-verify-email/login-verify-email.component.d.ts +9 -5
  238. package/login/pages/login-x509-info/login-x509-info.component.d.ts +9 -5
  239. package/login/pages/logout-confirm/logout-confirm.component.d.ts +8 -7
  240. package/login/pages/register/register.component.d.ts +11 -8
  241. package/login/pages/saml-post-form/saml-post-form.component.d.ts +10 -7
  242. package/login/pages/select-authenticator/select-authenticator.component.d.ts +9 -5
  243. package/login/pages/terms/terms.component.d.ts +9 -5
  244. package/login/pages/update-email/update-email.component.d.ts +9 -9
  245. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +10 -6
  246. package/login/pages/webauthn-error/webauthn-error.component.d.ts +9 -5
  247. package/login/pages/webauthn-register/webauthn-register.component.d.ts +10 -6
  248. package/package.json +8 -8
  249. package/src/account/containers/template/template.component.html +16 -11
  250. package/src/account/containers/template/template.component.ts +54 -7
  251. package/src/account/pages/account/account.component.html +139 -143
  252. package/src/account/pages/account/account.component.ts +4 -3
  253. package/src/account/pages/applications/applications.component.html +128 -136
  254. package/src/account/pages/applications/applications.component.ts +4 -3
  255. package/src/account/pages/federatedIdentity/federatedIdentity.component.html +84 -88
  256. package/src/account/pages/federatedIdentity/federatedIdentity.component.ts +4 -3
  257. package/src/account/pages/log/log.component.html +35 -39
  258. package/src/account/pages/log/log.component.ts +4 -3
  259. package/src/account/pages/password/password.component.html +109 -113
  260. package/src/account/pages/password/password.component.ts +6 -3
  261. package/src/account/pages/sessions/sessions.component.html +52 -56
  262. package/src/account/pages/sessions/sessions.component.ts +4 -3
  263. package/src/account/pages/totp/totp.component.html +234 -238
  264. package/src/account/pages/totp/totp.component.ts +4 -3
  265. package/src/account/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -0
  266. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +2 -2
  267. package/src/login/components/field-errors/field-errors.component.html +1 -1
  268. package/src/login/components/input-field-by-type/input-field-by-type.component.html +6 -6
  269. package/src/login/components/input-tag/input-tag.component.html +2 -2
  270. package/src/login/components/password-wrapper/password-wrapper.component.html +2 -2
  271. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +7 -11
  272. package/src/login/containers/template/template.component.html +29 -15
  273. package/src/login/containers/template/template.component.ts +100 -12
  274. package/src/login/directives/kc-class/kc-class.directive.ts +1 -2
  275. package/src/login/pages/code/code.component.html +19 -23
  276. package/src/login/pages/code/code.component.ts +18 -6
  277. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +41 -45
  278. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +16 -4
  279. package/src/login/pages/delete-credential/delete-credential.component.html +29 -31
  280. package/src/login/pages/delete-credential/delete-credential.component.ts +16 -9
  281. package/src/login/pages/error/error.component.html +20 -22
  282. package/src/login/pages/error/error.component.ts +17 -5
  283. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +25 -34
  284. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +17 -9
  285. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +29 -38
  286. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +18 -12
  287. package/src/login/pages/info/info.component.html +39 -48
  288. package/src/login/pages/info/info.component.ts +17 -10
  289. package/src/login/pages/login/login.component.html +184 -194
  290. package/src/login/pages/login/login.component.ts +20 -12
  291. package/src/login/pages/login-config-totp/login-config-totp.component.html +181 -190
  292. package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -10
  293. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +27 -37
  294. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +15 -14
  295. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +26 -36
  296. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +15 -14
  297. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +24 -34
  298. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +15 -14
  299. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +75 -84
  300. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +15 -14
  301. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +49 -58
  302. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +15 -9
  303. package/src/login/pages/login-otp/login-otp.component.html +89 -98
  304. package/src/login/pages/login-otp/login-otp.component.ts +16 -9
  305. package/src/login/pages/login-page-expired/login-page-expired.component.html +26 -33
  306. package/src/login/pages/login-page-expired/login-page-expired.component.ts +15 -9
  307. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +181 -188
  308. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +15 -5
  309. package/src/login/pages/login-password/login-password.component.html +73 -80
  310. package/src/login/pages/login-password/login-password.component.ts +17 -9
  311. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +136 -145
  312. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +17 -9
  313. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +60 -68
  314. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +16 -9
  315. package/src/login/pages/login-reset-otp/login-reset-otp.component.html +53 -60
  316. package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +15 -8
  317. package/src/login/pages/login-reset-password/login-reset-password.component.html +77 -86
  318. package/src/login/pages/login-reset-password/login-reset-password.component.ts +16 -9
  319. package/src/login/pages/login-update-password/login-update-password.component.html +98 -108
  320. package/src/login/pages/login-update-password/login-update-password.component.ts +15 -8
  321. package/src/login/pages/login-update-profile/login-update-profile.component.html +44 -53
  322. package/src/login/pages/login-update-profile/login-update-profile.component.ts +17 -10
  323. package/src/login/pages/login-username/login-username.component.html +138 -148
  324. package/src/login/pages/login-username/login-username.component.ts +16 -9
  325. package/src/login/pages/login-verify-email/login-verify-email.component.html +17 -25
  326. package/src/login/pages/login-verify-email/login-verify-email.component.ts +15 -9
  327. package/src/login/pages/login-x509-info/login-x509-info.component.html +85 -94
  328. package/src/login/pages/login-x509-info/login-x509-info.component.ts +15 -9
  329. package/src/login/pages/logout-confirm/logout-confirm.component.html +39 -49
  330. package/src/login/pages/logout-confirm/logout-confirm.component.ts +15 -14
  331. package/src/login/pages/register/register.component.html +100 -110
  332. package/src/login/pages/register/register.component.ts +19 -12
  333. package/src/login/pages/saml-post-form/saml-post-form.component.html +39 -48
  334. package/src/login/pages/saml-post-form/saml-post-form.component.ts +19 -13
  335. package/src/login/pages/select-authenticator/select-authenticator.component.html +36 -44
  336. package/src/login/pages/select-authenticator/select-authenticator.component.ts +16 -9
  337. package/src/login/pages/terms/terms.component.html +25 -34
  338. package/src/login/pages/terms/terms.component.ts +16 -9
  339. package/src/login/pages/update-email/update-email.component.html +44 -53
  340. package/src/login/pages/update-email/update-email.component.ts +16 -15
  341. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +134 -145
  342. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +16 -9
  343. package/src/login/pages/webauthn-error/webauthn-error.component.html +45 -55
  344. package/src/login/pages/webauthn-error/webauthn-error.component.ts +16 -9
  345. package/src/login/pages/webauthn-register/webauthn-register.component.html +65 -75
  346. package/src/login/pages/webauthn-register/webauthn-register.component.ts +16 -9
  347. package/src/login/providers/keycloakify-angular/keycloakify-angular.providers.ts +1 -0
  348. package/src/login/services/submit/submit.service.ts +1 -1
  349. package/src/tsconfig.lib.json +0 -12
  350. package/src/tsconfig.lib.prod.json +0 -10
@@ -1,22 +1,22 @@
1
- import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
2
+ import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
2
3
  import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
3
4
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
4
5
  import { LogoutOtherSessionsComponent } from '@keycloakify/angular/login/components/logout-other-sessions';
5
6
  import { PasswordWrapperComponent } from '@keycloakify/angular/login/components/password-wrapper';
6
7
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
7
8
  import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
8
- import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
9
+ import type { I18n } from '../../i18n';
10
+ import type { KcContext } from '../../KcContext';
9
11
  import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
10
12
  import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
11
13
  import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
12
14
  import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
13
- import type { I18n } from '../../i18n';
14
- import type { KcContext } from '../../KcContext';
15
15
 
16
16
  @Component({
17
17
  standalone: true,
18
18
  imports: [TemplateComponent, KcClassDirective, PasswordWrapperComponent, KcSanitizePipe, LogoutOtherSessionsComponent],
19
- selector: 'kc-root',
19
+ selector: 'kc-login-update-password',
20
20
  templateUrl: 'login-update-password.component.html',
21
21
  changeDetection: ChangeDetectionStrategy.OnPush,
22
22
  providers: [
@@ -29,11 +29,18 @@ import type { KcContext } from '../../KcContext';
29
29
  export class LoginUpdatePasswordComponent extends ComponentReference {
30
30
  kcContext = inject<Extract<KcContext, { pageId: 'login-update-password.ftl' }>>(KC_LOGIN_CONTEXT);
31
31
  i18n = inject<I18n>(LOGIN_I18N);
32
+
32
33
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
33
34
  override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
34
- displayRequiredFields = input(false);
35
- documentTitle = input<string>();
36
- bodyClassName = input<string>();
35
+
36
+ documentTitle: string | undefined;
37
+ bodyClassName: string | undefined;
38
+
39
+ displayRequiredFields = false;
37
40
  displayInfo = false;
38
41
  displayMessage = !this.kcContext.messagesPerField.existsError('password', 'password-confirm');
42
+
43
+ headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
44
+ infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
45
+ socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
39
46
  }
@@ -1,58 +1,49 @@
1
1
  @let url = kcContext.url;
2
2
  @let isAppInitiatedAction = kcContext.isAppInitiatedAction;
3
- <kc-login-template
4
- [displayInfo]="displayInfo"
5
- [bodyClassName]="bodyClassName()"
6
- [displayMessage]="displayMessage"
7
- [displayRequiredFields]="displayRequiredFields()"
8
- [documentTitle]="documentTitle()"
3
+
4
+ <ng-template #headerNode>
5
+ {{ i18n.msgStr('loginProfileTitle') }}
6
+ </ng-template>
7
+ <form
8
+ id="kc-update-profile-form"
9
+ method="post"
10
+ [kcClass]="'kcFormClass'"
11
+ [action]="url.loginAction"
9
12
  >
10
- <ng-container headerNode>
11
- {{ i18n.msgStr('loginProfileTitle') }}
12
- </ng-container>
13
- <ng-container content>
14
- <form
15
- id="kc-update-profile-form"
16
- [kcClass]="'kcFormClass'"
17
- [action]="url.loginAction"
18
- method="post"
13
+ <ng-container [ngComponentOutlet]="userProfileFormFields() ?? null" />
14
+ <div [kcClass]="'kcFormGroupClass'">
15
+ <div
16
+ id="kc-form-options"
17
+ [kcClass]="'kcFormOptionsClass'"
19
18
  >
20
- <ng-container [ngComponentOutlet]="userProfileFormFields() ?? null"></ng-container>
21
- <div [kcClass]="'kcFormGroupClass'">
22
- <div
23
- id="kc-form-options"
24
- [kcClass]="'kcFormOptionsClass'"
25
- >
26
- <div [kcClass]="'kcFormOptionsWrapperClass'"></div>
27
- </div>
28
- <div
29
- id="kc-form-buttons"
30
- [kcClass]="'kcFormButtonsClass'"
19
+ <div [kcClass]="'kcFormOptionsWrapperClass'"></div>
20
+ </div>
21
+ <div
22
+ id="kc-form-buttons"
23
+ [kcClass]="'kcFormButtonsClass'"
24
+ >
25
+ <input
26
+ type="submit"
27
+ [disabled]="!isFormSubmittable()"
28
+ [kcClass]="{
29
+ kcButtonClass: true,
30
+ kcButtonPrimaryClass: true,
31
+ kcButtonBlockClass: !isAppInitiatedAction,
32
+ kcButtonLargeClass: true
33
+ }"
34
+ [value]="i18n.msgStr('doSubmit')"
35
+ />
36
+ @if (isAppInitiatedAction) {
37
+ <button
38
+ type="submit"
39
+ name="cancel-aia"
40
+ value="true"
41
+ formNoValidate
42
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
31
43
  >
32
- <input
33
- [disabled]="!isFormSubmittable()"
34
- [kcClass]="{
35
- kcButtonClass: true,
36
- kcButtonPrimaryClass: true,
37
- kcButtonBlockClass: !isAppInitiatedAction,
38
- kcButtonLargeClass: true
39
- }"
40
- type="submit"
41
- [value]="i18n.msgStr('doSubmit')"
42
- />
43
- @if (isAppInitiatedAction) {
44
- <button
45
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
46
- type="submit"
47
- name="cancel-aia"
48
- value="true"
49
- formNoValidate
50
- >
51
- {{ i18n.msgStr('doCancel') }}
52
- </button>
53
- }
54
- </div>
55
- </div>
56
- </form>
57
- </ng-container>
58
- </kc-login-template>
44
+ {{ i18n.msgStr('doCancel') }}
45
+ </button>
46
+ }
47
+ </div>
48
+ </div>
49
+ </form>
@@ -1,23 +1,23 @@
1
1
  import { NgComponentOutlet } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal, Type } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal, TemplateRef, Type, viewChild } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
4
  import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
5
5
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
6
6
  import { UserProfileFormFieldsComponent } from '@keycloakify/angular/login/components/user-profile-form-fields';
7
7
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
8
8
  import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
9
+ import type { I18n } from '../../i18n';
10
+ import type { KcContext } from '../../KcContext';
11
+ import { SubmitService } from '@keycloakify/angular/login/services/submit';
9
12
  import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
10
13
  import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
11
14
  import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
12
15
  import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
13
- import type { I18n } from '../../i18n';
14
- import type { KcContext } from '../../KcContext';
15
- import { SubmitService } from '@keycloakify/angular/login/services/submit';
16
16
 
17
17
  @Component({
18
18
  standalone: true,
19
19
  imports: [TemplateComponent, KcClassDirective, NgComponentOutlet],
20
- selector: 'kc-root',
20
+ selector: 'kc-login-update-profile',
21
21
  templateUrl: 'login-update-profile.component.html',
22
22
  changeDetection: ChangeDetectionStrategy.OnPush,
23
23
  providers: [
@@ -31,17 +31,24 @@ export class LoginUpdateProfileComponent extends ComponentReference {
31
31
  #submitService = inject(SubmitService);
32
32
  kcContext = inject<Extract<KcContext, { pageId: 'login-update-profile.ftl' }>>(KC_LOGIN_CONTEXT);
33
33
  i18n = inject<I18n>(LOGIN_I18N);
34
+
34
35
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
35
36
  override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
36
- displayRequiredFields = input(true);
37
- documentTitle = input<string>();
38
- bodyClassName = input<string>();
39
- displayInfo: boolean = false;
37
+
38
+ documentTitle: string | undefined;
39
+ bodyClassName: string | undefined;
40
+
41
+ displayRequiredFields = true;
42
+ displayInfo = false;
40
43
  displayMessage: boolean = this.kcContext.messagesPerField.exists('global');
41
44
 
42
- isFormSubmittable = signal(false);
45
+ headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
46
+ infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
47
+ socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
43
48
 
49
+ isFormSubmittable = signal(false);
44
50
  userProfileFormFields = input<Type<UserProfileFormFieldsComponent>>();
51
+
45
52
  constructor() {
46
53
  super();
47
54
  this.#submitService.isSubmittable.pipe(takeUntilDestroyed()).subscribe(submittable => {
@@ -5,157 +5,147 @@
5
5
  @let url = kcContext.url;
6
6
  @let login = kcContext.login;
7
7
 
8
- <kc-login-template
9
- [displayInfo]="displayInfo"
10
- [bodyClassName]="bodyClassName()"
11
- [displayMessage]="displayMessage"
12
- [displayRequiredFields]="displayRequiredFields()"
13
- [documentTitle]="documentTitle()"
14
- >
15
- <ng-container headerNode>
16
- {{ i18n.msgStr('doLogIn') }}
17
- </ng-container>
18
- <ng-container infoNode>
19
- <div id="kc-registration">
20
- <span>
21
- {{ i18n.msgStr('noAccount') }}
22
- <a
23
- tabindex="6"
24
- [href]="url?.registrationUrl"
25
- >
26
- {{ i18n.msgStr('doRegister') }}
27
- </a>
28
- </span>
29
- </div>
30
- </ng-container>
31
- <ng-container socialProvidersNode>
32
- @if (!!realm?.password && !!social?.providers?.length) {
33
- <div
34
- id="kc-social-providers"
35
- [kcClass]="'kcFormSocialAccountSectionClass'"
8
+ <ng-template #headerNode>
9
+ {{ i18n.msgStr('doLogIn') }}
10
+ </ng-template>
11
+ <ng-container infoNode>
12
+ <div id="kc-registration">
13
+ <span>
14
+ {{ i18n.msgStr('noAccount') }}
15
+ <a
16
+ tabindex="6"
17
+ [href]="url?.registrationUrl"
36
18
  >
37
- <hr />
38
- <h2>{{ i18n.msgStr('identity-provider-login-label') }}</h2>
39
- <ul
40
- [kcClass]="{
41
- kcFormSocialAccountListClass: true,
42
- kcFormSocialAccountListGridClass: (social?.providers?.length ?? 0) > 3
43
- }"
44
- >
45
- @for (provider of social?.providers; track provider.alias; let idx = $index) {
46
- <li>
47
- <a
48
- [id]="provider.alias"
49
- [kcClass]="{
50
- kcFormSocialAccountListButtonClass: true,
51
- kcFormSocialAccountGridItem: (social?.providers?.length ?? 0) > 3
19
+ {{ i18n.msgStr('doRegister') }}
20
+ </a>
21
+ </span>
22
+ </div>
23
+ </ng-container>
24
+ <ng-template #socialProvidersNode>
25
+ @if (!!realm?.password && !!social?.providers?.length) {
26
+ <div
27
+ id="kc-social-providers"
28
+ [kcClass]="'kcFormSocialAccountSectionClass'"
29
+ >
30
+ <hr />
31
+ <h2>{{ i18n.msgStr('identity-provider-login-label') }}</h2>
32
+ <ul
33
+ [kcClass]="{
34
+ kcFormSocialAccountListClass: true,
35
+ kcFormSocialAccountListGridClass: (social?.providers?.length ?? 0) > 3
36
+ }"
37
+ >
38
+ @for (provider of social?.providers; track provider.alias; let idx = $index) {
39
+ <li>
40
+ <a
41
+ type="button"
42
+ [id]="provider.alias"
43
+ [kcClass]="{
44
+ kcFormSocialAccountListButtonClass: true,
45
+ kcFormSocialAccountGridItem: (social?.providers?.length ?? 0) > 3
46
+ }"
47
+ [href]="provider.loginUrl"
48
+ >
49
+ @if (provider.iconClasses) {
50
+ <i
51
+ aria-hidden="true"
52
+ [ngClass]="provider.iconClasses"
53
+ [kcClass]="'kcCommonLogoIdP'"
54
+ ></i>
55
+ }
56
+ <span
57
+ [ngClass]="{
58
+ 'kc-social-icon-text': provider.iconClasses
52
59
  }"
53
- type="button"
54
- [href]="provider.loginUrl"
60
+ [kcClass]="'kcFormSocialAccountNameClass'"
61
+ [innerHTML]="provider.displayName | kcSanitize: 'html'"
62
+ ></span>
63
+ </a>
64
+ </li>
65
+ }
66
+ </ul>
67
+ </div>
68
+ }
69
+ </ng-template>
70
+ <div id="kc-form">
71
+ <div id="kc-form-wrapper">
72
+ @if (realm.password) {
73
+ <form
74
+ id="kc-form-login"
75
+ method="post"
76
+ [action]="url?.loginAction"
77
+ (onSubmit)="isLoginButtonDisabled.set(true)"
78
+ >
79
+ @if (!usernameHidden) {
80
+ <div [kcClass]="'kcFormGroupClass'">
81
+ <label
82
+ for="username"
83
+ [kcClass]="'kcLabelClass'"
84
+ >
85
+ @if (!realm?.loginWithEmailAllowed) {
86
+ {{ i18n.msgStr('username') }}
87
+ } @else if (!realm?.registrationEmailAsUsername) {
88
+ {{ i18n.msgStr('usernameOrEmail') }}
89
+ } @else {
90
+ {{ i18n.msgStr('email') }}
91
+ }
92
+ </label>
93
+ <input
94
+ tabindex="2"
95
+ id="username"
96
+ name="username"
97
+ type="text"
98
+ autofocus
99
+ autoComplete="off"
100
+ [kcClass]="'kcInputClass'"
101
+ [defaultValue]="login?.username || ''"
102
+ [attr.aria-invalid]="messagesPerField?.existsError('username')"
103
+ />
104
+ @if (messagesPerField?.existsError('username')) {
105
+ <span
106
+ id="input-error"
107
+ aria-live="polite"
108
+ [kcClass]="'kcInputErrorMessageClass'"
109
+ [innerHTML]="messagesPerField.getFirstError('username') | kcSanitize: 'html'"
55
110
  >
56
- @if (provider.iconClasses) {
57
- <i
58
- [ngClass]="provider.iconClasses"
59
- [kcClass]="'kcCommonLogoIdP'"
60
- aria-hidden="true"
61
- ></i>
62
- }
63
- <span
64
- [ngClass]="{
65
- 'kc-social-icon-text': provider.iconClasses
66
- }"
67
- [kcClass]="'kcFormSocialAccountNameClass'"
68
- [innerHTML]="provider.displayName | kcSanitize: 'html'"
69
- ></span>
70
- </a>
71
- </li>
72
- }
73
- </ul>
74
- </div>
75
- }
76
- </ng-container>
77
- <ng-container content>
78
- <div id="kc-form">
79
- <div id="kc-form-wrapper">
80
- @if (realm.password) {
81
- <form
82
- id="kc-form-login"
83
- (onSubmit)="isLoginButtonDisabled.set(true)"
84
- [action]="url?.loginAction"
85
- method="post"
86
- >
87
- @if (!usernameHidden) {
88
- <div [kcClass]="'kcFormGroupClass'">
89
- <label
90
- for="username"
91
- [kcClass]="'kcLabelClass'"
92
- >
93
- @if (!realm?.loginWithEmailAllowed) {
94
- {{ i18n.msgStr('username') }}
95
- } @else if (!realm?.registrationEmailAsUsername) {
96
- {{ i18n.msgStr('usernameOrEmail') }}
97
- } @else {
98
- {{ i18n.msgStr('email') }}
99
- }
100
- </label>
101
- <input
102
- tabindex="2"
103
- id="username"
104
- [kcClass]="'kcInputClass'"
105
- name="username"
106
- type="text"
107
- autofocus
108
- autoComplete="off"
109
- [defaultValue]="login?.username || ''"
110
- [attr.aria-invalid]="messagesPerField?.existsError('username')"
111
- />
112
- @if (messagesPerField?.existsError('username')) {
113
- <span
114
- id="input-error"
115
- [kcClass]="'kcInputErrorMessageClass'"
116
- aria-live="polite"
117
- [innerHTML]="messagesPerField.getFirstError('username') | kcSanitize: 'html'"
118
- >
119
- </span>
120
- }
121
- <!---->
122
- </div>
111
+ </span>
123
112
  }
113
+ <!---->
114
+ </div>
115
+ }
124
116
 
125
- <div [kcClass]="['kcFormGroupClass', 'kcFormSettingClass']">
126
- <div id="kc-form-options">
127
- @if (realm.rememberMe && !usernameHidden) {
128
- <div class="checkbox">
129
- <label>
130
- <input
131
- tabindex="5"
132
- id="rememberMe"
133
- name="rememberMe"
134
- type="checkbox"
135
- [defaultChecked]="!!login?.rememberMe"
136
- />
137
- {{ i18n.msgStr('rememberMe') }}
138
- </label>
139
- </div>
140
- }
117
+ <div [kcClass]="['kcFormGroupClass', 'kcFormSettingClass']">
118
+ <div id="kc-form-options">
119
+ @if (realm.rememberMe && !usernameHidden) {
120
+ <div class="checkbox">
121
+ <label>
122
+ <input
123
+ tabindex="5"
124
+ id="rememberMe"
125
+ name="rememberMe"
126
+ type="checkbox"
127
+ [defaultChecked]="!!login?.rememberMe"
128
+ />
129
+ {{ i18n.msgStr('rememberMe') }}
130
+ </label>
141
131
  </div>
142
- </div>
143
- <div
144
- id="kc-form-buttons"
145
- [kcClass]="'kcFormGroupClass'"
146
- >
147
- <input
148
- tabindex="4"
149
- [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
150
- name="login"
151
- id="kc-login"
152
- type="submit"
153
- [value]="i18n.msgStr('doLogIn')"
154
- />
155
- </div>
156
- </form>
157
- }
158
- </div>
159
- </div>
160
- </ng-container>
161
- </kc-login-template>
132
+ }
133
+ </div>
134
+ </div>
135
+ <div
136
+ id="kc-form-buttons"
137
+ [kcClass]="'kcFormGroupClass'"
138
+ >
139
+ <input
140
+ tabindex="4"
141
+ name="login"
142
+ id="kc-login"
143
+ type="submit"
144
+ [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
145
+ [value]="i18n.msgStr('doLogIn')"
146
+ />
147
+ </div>
148
+ </form>
149
+ }
150
+ </div>
151
+ </div>
@@ -1,19 +1,19 @@
1
1
  import { AsyncPipe, NgClass } from '@angular/common';
2
- import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal } from '@angular/core';
2
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, signal, TemplateRef, viewChild } from '@angular/core';
3
+ import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
3
4
  import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
4
5
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
5
6
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
6
7
  import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
7
- import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
8
+ import type { I18n } from '../../i18n';
9
+ import type { KcContext } from '../../KcContext';
8
10
  import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
9
11
  import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
10
12
  import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
11
13
  import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
12
- import type { I18n } from '../../i18n';
13
- import type { KcContext } from '../../KcContext';
14
14
 
15
15
  @Component({
16
- selector: 'kc-root',
16
+ selector: 'kc-login-username',
17
17
  templateUrl: './login-username.component.html',
18
18
  standalone: true,
19
19
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -27,13 +27,20 @@ import type { KcContext } from '../../KcContext';
27
27
  })
28
28
  export class LoginUsernameComponent extends ComponentReference {
29
29
  kcContext = inject<Extract<KcContext, { pageId: 'login-username.ftl' }>>(KC_LOGIN_CONTEXT);
30
- displayRequiredFields = input(false);
31
- documentTitle = input<string>();
32
- bodyClassName = input<string>();
33
30
  i18n = inject<I18n>(LOGIN_I18N);
34
31
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
35
32
  override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
36
- isLoginButtonDisabled = signal(false);
33
+
34
+ documentTitle: string | undefined;
35
+ bodyClassName: string | undefined;
36
+
37
+ displayRequiredFields = false;
37
38
  displayInfo: boolean = !!this.kcContext?.realm?.password && !!this.kcContext?.realm?.registrationAllowed && !this.kcContext?.registrationDisabled;
38
39
  displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError('username');
40
+
41
+ headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
42
+ infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
43
+ socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
44
+
45
+ isLoginButtonDisabled = signal(false);
39
46
  }
@@ -1,27 +1,19 @@
1
1
  @let url = kcContext.url;
2
2
  @let user = kcContext.user;
3
- <kc-login-template
4
- [displayInfo]="displayInfo"
5
- [bodyClassName]="bodyClassName()"
6
- [displayMessage]="displayMessage"
7
- [displayRequiredFields]="displayRequiredFields()"
8
- [documentTitle]="documentTitle()"
9
- >
10
- <ng-container headerNode>
11
- {{ i18n.msgStr('emailVerifyTitle') }}
12
- </ng-container>
13
- <ng-container infoNode>
14
- <p class="instruction">
15
- {{ i18n.msgStr('emailVerifyInstruction2') }}
16
- <br />
17
- <a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
18
- &nbsp;
19
- {{ i18n.msgStr('emailVerifyInstruction3') }}
20
- </p>
21
- </ng-container>
22
- <ng-container content>
23
- <p class="instruction">
24
- {{ i18n.msgStr('emailVerifyInstruction1', user?.email ?? '') }}
25
- </p></ng-container
26
- >
27
- </kc-login-template>
3
+
4
+ <ng-template #headerNode>
5
+ {{ i18n.msgStr('emailVerifyTitle') }}
6
+ </ng-template>
7
+ <ng-template #infoNode>
8
+ <p class="instruction">
9
+ {{ i18n.msgStr('emailVerifyInstruction2') }}
10
+ <br />
11
+ <a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
12
+ &nbsp;
13
+ {{ i18n.msgStr('emailVerifyInstruction3') }}
14
+ </p>
15
+ </ng-template>
16
+
17
+ <p class="instruction">
18
+ {{ i18n.msgStr('emailVerifyInstruction1', user?.email ?? '') }}
19
+ </p>