@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
@@ -3,198 +3,189 @@
3
3
  @let messagesPerField = kcContext.messagesPerField;
4
4
  @let mode = kcContext.mode;
5
5
  @let isAppInitiatedAction = kcContext.isAppInitiatedAction;
6
- <kc-login-template
7
- [displayInfo]="displayInfo"
8
- [bodyClassName]="bodyClassName()"
9
- [displayMessage]="displayMessage"
10
- [displayRequiredFields]="displayRequiredFields()"
11
- [documentTitle]="documentTitle()"
12
- >
13
- <ng-container headerNode>
14
- {{ i18n.msgStr('loginTotpStep1') }}
15
- </ng-container>
16
- <ng-container content>
17
- <ol id="kc-totp-settings">
18
- <li>
19
- <p>{{ i18n.msgStr('loginTotpStep1') }}</p>
20
- <ul id="kc-totp-supported-apps">
21
- @for (app of totp.supportedApplications; track app) {
22
- <li>{{ i18n.advancedMsgStr(app) }}</li>
23
- }
24
- </ul>
25
- </li>
26
- @if (kcContext.mode === 'manual') {
27
- <li>
28
- <p>{{ i18n.msgStr('loginTotpManualStep2') }}</p>
29
- <p>
30
- <span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
31
- </p>
32
- <p>
33
- <a
34
- [href]="totp.qrUrl"
35
- id="mode-barcode"
36
- >
37
- {{ i18n.msgStr('loginTotpScanBarcode') }}
38
- </a>
39
- </p>
40
- </li>
41
- <li>
42
- <p>{{ i18n.msgStr('loginTotpManualStep3') }}</p>
43
- <p></p>
44
- <ul>
45
- <li id="kc-totp-type">
46
- {{ i18n.msgStr('loginTotpType') }}:
47
- {{ i18n.advancedMsgStr('loginTotp.' + totp.policy.type) }}
48
- </li>
49
- <li id="kc-totp-algorithm">
50
- {{ i18n.msgStr('loginTotpAlgorithm') }}:
51
- {{ totp.policy.getAlgorithmKey() }}
52
- </li>
53
- <li id="kc-totp-digits">{{ i18n.msgStr('loginTotpDigits') }}: {{ totp.policy.digits }}</li>
54
- @if (totp.policy.type === 'totp') {
55
- <li id="kc-totp-period">
56
- {{ i18n.msgStr('loginTotpInterval') }}:
57
- {{ totp.policy.period }}
58
- </li>
59
- } @else {
60
- <li id="kc-totp-counter">
61
- {{ i18n.msgStr('loginTotpCounter') }}:
62
- {{ totp.policy.initialCounter }}
63
- </li>
64
- }
65
- </ul>
6
+
7
+ <ng-template #headerNode>
8
+ {{ i18n.msgStr('loginTotpStep1') }}
9
+ </ng-template>
10
+ <ol id="kc-totp-settings">
11
+ <li>
12
+ <p>{{ i18n.msgStr('loginTotpStep1') }}</p>
13
+ <ul id="kc-totp-supported-apps">
14
+ @for (app of totp.supportedApplications; track app) {
15
+ <li>{{ i18n.advancedMsgStr(app) }}</li>
16
+ }
17
+ </ul>
18
+ </li>
19
+ @if (kcContext.mode === 'manual') {
20
+ <li>
21
+ <p>{{ i18n.msgStr('loginTotpManualStep2') }}</p>
22
+ <p>
23
+ <span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
24
+ </p>
25
+ <p>
26
+ <a
27
+ id="mode-barcode"
28
+ [href]="totp.qrUrl"
29
+ >
30
+ {{ i18n.msgStr('loginTotpScanBarcode') }}
31
+ </a>
32
+ </p>
33
+ </li>
34
+ <li>
35
+ <p>{{ i18n.msgStr('loginTotpManualStep3') }}</p>
36
+ <p></p>
37
+ <ul>
38
+ <li id="kc-totp-type">
39
+ {{ i18n.msgStr('loginTotpType') }}:
40
+ {{ i18n.advancedMsgStr('loginTotp.' + totp.policy.type) }}
66
41
  </li>
67
- } @else {
68
- <li>
69
- <p>{{ i18n.msgStr('loginTotpStep2') }}</p>
70
- <img
71
- id="kc-totp-secret-qr-code"
72
- [src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
73
- alt="Figure: Barcode"
74
- />
75
- <br />
76
- <p>
77
- <a
78
- [href]="totp.manualUrl"
79
- id="mode-manual"
80
- >
81
- {{ i18n.msgStr('loginTotpUnableToScan') }}
82
- </a>
83
- </p>
42
+ <li id="kc-totp-algorithm">
43
+ {{ i18n.msgStr('loginTotpAlgorithm') }}:
44
+ {{ totp.policy.getAlgorithmKey() }}
84
45
  </li>
85
- }
86
- <li>
87
- <p>{{ i18n.msgStr('loginTotpStep3') }}</p>
88
- <p>{{ i18n.msgStr('loginTotpStep3DeviceName') }}</p>
89
- </li>
90
- </ol>
91
- <form
92
- [action]="url.loginAction"
93
- [kcClass]="'kcFormClass'"
94
- id="kc-totp-settings-form"
95
- method="post"
96
- >
97
- <div [kcClass]="'kcFormGroupClass'">
98
- <div [kcClass]="'kcInputWrapperClass'">
99
- <label
100
- for="totp"
101
- [kcClass]="'kcLabelClass'"
102
- >
103
- {{ i18n.msgStr('authenticatorCode') }}
104
- </label>
105
- <span class="required">*</span>
106
- </div>
107
- <div [kcClass]="'kcInputWrapperClass'">
108
- <input
109
- type="text"
110
- id="totp"
111
- name="totp"
112
- autoComplete="off"
113
- [kcClass]="'kcInputClass'"
114
- [attr.aria-invalid]="messagesPerField.existsError('totp')"
115
- />
116
- @if (messagesPerField.existsError('totp')) {
117
- <span
118
- id="input-error-otp-code"
119
- [kcClass]="'kcInputErrorMessageClass'"
120
- aria-live="polite"
121
- [innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
122
- ></span>
123
- }
124
- </div>
125
- <input
126
- type="hidden"
127
- id="totpSecret"
128
- name="totpSecret"
129
- [value]="totp.totpSecret"
130
- />
131
- @if (mode) {
132
- <input
133
- type="hidden"
134
- id="mode"
135
- [value]="mode"
136
- />
46
+ <li id="kc-totp-digits">{{ i18n.msgStr('loginTotpDigits') }}: {{ totp.policy.digits }}</li>
47
+ @if (totp.policy.type === 'totp') {
48
+ <li id="kc-totp-period">
49
+ {{ i18n.msgStr('loginTotpInterval') }}:
50
+ {{ totp.policy.period }}
51
+ </li>
52
+ } @else {
53
+ <li id="kc-totp-counter">
54
+ {{ i18n.msgStr('loginTotpCounter') }}:
55
+ {{ totp.policy.initialCounter }}
56
+ </li>
137
57
  }
138
- </div>
139
- <div [kcClass]="'kcFormGroupClass'">
140
- <div [kcClass]="'kcInputWrapperClass'">
141
- <label
142
- for="userLabel"
143
- [kcClass]="'kcLabelClass'"
144
- >
145
- {{ i18n.msgStr('loginTotpDeviceName') }}
146
- </label>
147
- @if (totp.otpCredentials.length >= 1) {
148
- <span class="required">*</span>
149
- }
150
- </div>
151
- <div [kcClass]="'kcInputWrapperClass'">
152
- <input
153
- type="text"
154
- id="userLabel"
155
- name="userLabel"
156
- autoComplete="off"
157
- [kcClass]="'kcInputClass'"
158
- [attr.aria-invalid]="messagesPerField.existsError('userLabel')"
159
- />
160
- @if (messagesPerField.existsError('userLabel')) {
161
- <span
162
- id="input-error-otp-label"
163
- [kcClass]="'kcInputErrorMessageClass'"
164
- aria-live="polite"
165
- [innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
166
- ></span>
167
- }
168
- </div>
169
- </div>
170
- <div [kcClass]="'kcFormGroupClass'">
171
- <kc-logout-other-sessions />
172
- </div>
173
-
174
- @if (isAppInitiatedAction) {
175
- <input
176
- type="submit"
177
- [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
178
- id="saveTOTPBtn"
179
- [value]="i18n.msgStr('doSubmit')"
180
- />
181
- <button
182
- type="submit"
183
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass', 'kcButtonLargeClass']"
184
- id="cancelTOTPBtn"
185
- name="cancel-aia"
186
- [value]="true"
58
+ </ul>
59
+ </li>
60
+ } @else {
61
+ <li>
62
+ <p>{{ i18n.msgStr('loginTotpStep2') }}</p>
63
+ <img
64
+ id="kc-totp-secret-qr-code"
65
+ alt="Figure: Barcode"
66
+ [src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
67
+ />
68
+ <br />
69
+ <p>
70
+ <a
71
+ id="mode-manual"
72
+ [href]="totp.manualUrl"
187
73
  >
188
- {{ i18n.msgStr('doCancel') }}
189
- </button>
190
- } @else {
191
- <input
192
- type="submit"
193
- [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
194
- id="saveTOTPBtn"
195
- [value]="i18n.msgStr('doSubmit')"
196
- />
74
+ {{ i18n.msgStr('loginTotpUnableToScan') }}
75
+ </a>
76
+ </p>
77
+ </li>
78
+ }
79
+ <li>
80
+ <p>{{ i18n.msgStr('loginTotpStep3') }}</p>
81
+ <p>{{ i18n.msgStr('loginTotpStep3DeviceName') }}</p>
82
+ </li>
83
+ </ol>
84
+ <form
85
+ id="kc-totp-settings-form"
86
+ method="post"
87
+ [action]="url.loginAction"
88
+ [kcClass]="'kcFormClass'"
89
+ >
90
+ <div [kcClass]="'kcFormGroupClass'">
91
+ <div [kcClass]="'kcInputWrapperClass'">
92
+ <label
93
+ for="totp"
94
+ [kcClass]="'kcLabelClass'"
95
+ >
96
+ {{ i18n.msgStr('authenticatorCode') }}
97
+ </label>
98
+ <span class="required">*</span>
99
+ </div>
100
+ <div [kcClass]="'kcInputWrapperClass'">
101
+ <input
102
+ type="text"
103
+ id="totp"
104
+ name="totp"
105
+ autoComplete="off"
106
+ [kcClass]="'kcInputClass'"
107
+ [attr.aria-invalid]="messagesPerField.existsError('totp')"
108
+ />
109
+ @if (messagesPerField.existsError('totp')) {
110
+ <span
111
+ id="input-error-otp-code"
112
+ aria-live="polite"
113
+ [kcClass]="'kcInputErrorMessageClass'"
114
+ [innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
115
+ ></span>
116
+ }
117
+ </div>
118
+ <input
119
+ type="hidden"
120
+ id="totpSecret"
121
+ name="totpSecret"
122
+ [value]="totp.totpSecret"
123
+ />
124
+ @if (mode) {
125
+ <input
126
+ type="hidden"
127
+ id="mode"
128
+ [value]="mode"
129
+ />
130
+ }
131
+ </div>
132
+ <div [kcClass]="'kcFormGroupClass'">
133
+ <div [kcClass]="'kcInputWrapperClass'">
134
+ <label
135
+ for="userLabel"
136
+ [kcClass]="'kcLabelClass'"
137
+ >
138
+ {{ i18n.msgStr('loginTotpDeviceName') }}
139
+ </label>
140
+ @if (totp.otpCredentials.length >= 1) {
141
+ <span class="required">*</span>
197
142
  }
198
- </form>
199
- </ng-container>
200
- </kc-login-template>
143
+ </div>
144
+ <div [kcClass]="'kcInputWrapperClass'">
145
+ <input
146
+ type="text"
147
+ id="userLabel"
148
+ name="userLabel"
149
+ autoComplete="off"
150
+ [kcClass]="'kcInputClass'"
151
+ [attr.aria-invalid]="messagesPerField.existsError('userLabel')"
152
+ />
153
+ @if (messagesPerField.existsError('userLabel')) {
154
+ <span
155
+ id="input-error-otp-label"
156
+ aria-live="polite"
157
+ [kcClass]="'kcInputErrorMessageClass'"
158
+ [innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
159
+ ></span>
160
+ }
161
+ </div>
162
+ </div>
163
+ <div [kcClass]="'kcFormGroupClass'">
164
+ <kc-logout-other-sessions />
165
+ </div>
166
+
167
+ @if (isAppInitiatedAction) {
168
+ <input
169
+ type="submit"
170
+ id="saveTOTPBtn"
171
+ [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
172
+ [value]="i18n.msgStr('doSubmit')"
173
+ />
174
+ <button
175
+ type="submit"
176
+ id="cancelTOTPBtn"
177
+ name="cancel-aia"
178
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass', 'kcButtonLargeClass']"
179
+ [value]="true"
180
+ >
181
+ {{ i18n.msgStr('doCancel') }}
182
+ </button>
183
+ } @else {
184
+ <input
185
+ type="submit"
186
+ id="saveTOTPBtn"
187
+ [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
188
+ [value]="i18n.msgStr('doSubmit')"
189
+ />
190
+ }
191
+ </form>
@@ -1,21 +1,21 @@
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 { 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
16
  standalone: true,
17
17
  imports: [TemplateComponent, KcClassDirective, KcSanitizePipe, LogoutOtherSessionsComponent],
18
- selector: 'kc-root',
18
+ selector: 'kc-login-config-totp',
19
19
  templateUrl: 'login-config-totp.component.html',
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
21
  providers: [
@@ -30,9 +30,15 @@ export class LoginConfigTotpComponent extends ComponentReference {
30
30
  i18n = inject<I18n>(LOGIN_I18N);
31
31
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
32
32
  override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
33
- displayRequiredFields = input(false);
34
- documentTitle = input<string>();
35
- bodyClassName = input<string>();
36
- displayInfo: boolean = false;
37
- displayMessage: boolean = this.kcContext.messagesPerField.existsError('totp', 'userLabel');
33
+
34
+ documentTitle: string | undefined;
35
+ bodyClassName: string | undefined;
36
+
37
+ displayRequiredFields = false;
38
+ displayInfo = false;
39
+ displayMessage = !this.kcContext.messagesPerField.existsError('totp', 'userLabel');
40
+
41
+ headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
42
+ infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
43
+ socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
38
44
  }
@@ -1,41 +1,31 @@
1
1
  @let url = kcContext.url;
2
2
  @let idpAlias = kcContext.idpAlias;
3
- <kc-login-template
4
- [displayInfo]="displayInfo"
5
- [bodyClassName]="bodyClassName()"
6
- [displayMessage]="displayMessage"
7
- [displayRequiredFields]="displayRequiredFields()"
8
- [documentTitle]="documentTitle()"
3
+ <ng-template #headerNode>
4
+ {{ i18n.msgStr('confirmLinkIdpTitle') }}
5
+ </ng-template>
6
+ <form
7
+ id="kc-register-form"
8
+ method="post"
9
+ [action]="url.loginAction"
9
10
  >
10
- <ng-container headerNode>
11
- {{ i18n.msgStr('confirmLinkIdpTitle') }}
12
- </ng-container>
13
- <ng-container content>
14
- <form
15
- id="kc-register-form"
16
- [action]="url.loginAction"
17
- method="post"
11
+ <div [kcClass]="'kcFormGroupClass'">
12
+ <button
13
+ type="submit"
14
+ name="submitAction"
15
+ id="updateProfile"
16
+ value="updateProfile"
17
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
18
18
  >
19
- <div [kcClass]="'kcFormGroupClass'">
20
- <button
21
- type="submit"
22
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
23
- name="submitAction"
24
- id="updateProfile"
25
- value="updateProfile"
26
- >
27
- {{ i18n.msgStr('confirmLinkIdpReviewProfile') }}
28
- </button>
29
- <button
30
- type="submit"
31
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
32
- name="submitAction"
33
- id="linkAccount"
34
- value="linkAccount"
35
- >
36
- {{ i18n.msgStr('confirmLinkIdpContinue', idpAlias) }}
37
- </button>
38
- </div>
39
- </form>
40
- </ng-container>
41
- </kc-login-template>
19
+ {{ i18n.msgStr('confirmLinkIdpReviewProfile') }}
20
+ </button>
21
+ <button
22
+ type="submit"
23
+ name="submitAction"
24
+ id="linkAccount"
25
+ value="linkAccount"
26
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
27
+ >
28
+ {{ i18n.msgStr('confirmLinkIdpContinue', idpAlias) }}
29
+ </button>
30
+ </div>
31
+ </form>
@@ -1,19 +1,16 @@
1
- import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
- import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, TemplateRef, viewChild } from '@angular/core';
3
2
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference';
4
3
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template';
5
4
  import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class';
6
- import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes';
7
- import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
8
- import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
9
- import type { ClassKey } from 'keycloakify/login/lib/kcClsx';
10
5
  import type { I18n } from '../../i18n';
11
6
  import type { KcContext } from '../../KcContext';
7
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n';
8
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context';
12
9
 
13
10
  @Component({
14
11
  standalone: true,
15
12
  imports: [TemplateComponent, KcClassDirective],
16
- selector: 'kc-root',
13
+ selector: 'kc-login-idp-link-confirm',
17
14
  templateUrl: 'login-idp-link-confirm.component.html',
18
15
  changeDetection: ChangeDetectionStrategy.OnPush,
19
16
  providers: [
@@ -26,11 +23,15 @@ import type { KcContext } from '../../KcContext';
26
23
  export class LoginIdpLinkConfirmComponent extends ComponentReference {
27
24
  kcContext = inject<Extract<KcContext, { pageId: 'login-idp-link-confirm.ftl' }>>(KC_LOGIN_CONTEXT);
28
25
  i18n = inject<I18n>(LOGIN_I18N);
29
- override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
30
- override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
31
- displayRequiredFields = input(false);
32
- documentTitle = input<string>();
33
- bodyClassName = input<string>();
34
- displayInfo: boolean = false;
35
- displayMessage: boolean = false;
26
+
27
+ documentTitle: string | undefined;
28
+ bodyClassName: string | undefined;
29
+
30
+ displayRequiredFields = false;
31
+ displayInfo = false;
32
+ displayMessage = !this.kcContext.messagesPerField.existsError('totp', 'userLabel');
33
+
34
+ headerNode? = viewChild<TemplateRef<HTMLElement>>('headerNode');
35
+ infoNode? = viewChild<TemplateRef<HTMLElement>>('infoNode');
36
+ socialProvidersNode? = viewChild<TemplateRef<HTMLElement>>('socialProvidersNode');
36
37
  }
@@ -1,40 +1,30 @@
1
1
  @let url = kcContext.url;
2
2
  @let idpDisplayName = kcContext.idpDisplayName;
3
3
 
4
- <kc-login-template
5
- [displayInfo]="displayInfo"
6
- [bodyClassName]="bodyClassName()"
7
- [displayMessage]="displayMessage"
8
- [displayRequiredFields]="displayRequiredFields()"
9
- [documentTitle]="documentTitle()"
4
+ <ng-template #headerNode>
5
+ {{ i18n.msgStr('confirmOverrideIdpTitle') }}
6
+ </ng-template>
7
+ <form
8
+ id="kc-register-form"
9
+ method="post"
10
+ [action]="url.loginAction"
10
11
  >
11
- <ng-container headerNode>
12
- {{ i18n.msgStr('confirmOverrideIdpTitle') }}
13
- </ng-container>
14
- <ng-container content>
15
- <form
16
- id="kc-register-form"
17
- [action]="url.loginAction"
18
- method="post"
19
- >
20
- {{ i18n.msgStr('pageExpiredMsg1') }}
21
- <a
22
- id="loginRestartLink"
23
- [href]="url.loginRestartFlowUrl"
24
- >
25
- {{ i18n.msgStr('doClickHere') }}
26
- </a>
27
- <br />
28
- <br />
29
- <button
30
- type="submit"
31
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
32
- name="submitAction"
33
- id="confirmOverride"
34
- value="confirmOverride"
35
- >
36
- {{ i18n.msgStr('confirmOverrideIdpContinue', idpDisplayName) }}
37
- </button>
38
- </form>
39
- </ng-container>
40
- </kc-login-template>
12
+ {{ i18n.msgStr('pageExpiredMsg1') }}
13
+ <a
14
+ id="loginRestartLink"
15
+ [href]="url.loginRestartFlowUrl"
16
+ >
17
+ {{ i18n.msgStr('doClickHere') }}
18
+ </a>
19
+ <br />
20
+ <br />
21
+ <button
22
+ type="submit"
23
+ name="submitAction"
24
+ id="confirmOverride"
25
+ value="confirmOverride"
26
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
27
+ >
28
+ {{ i18n.msgStr('confirmOverrideIdpContinue', idpDisplayName) }}
29
+ </button>
30
+ </form>