@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
@@ -4,255 +4,251 @@
4
4
  @let stateChecker = kcContext.stateChecker;
5
5
  @let totp = kcContext.totp;
6
6
 
7
- <kc-account-template [active]="'totp'">
8
- <ng-container content>
9
- <div class="row">
10
- <div class="col-md-10">
11
- <h2>{{ i18n.msgStr('authenticatorTitle') }}</h2>
12
- </div>
13
- @if (totp.otpCredentials.length) {
14
- <div class="subtitle col-md-2">
15
- <span class="required">*</span>
16
- {{ i18n.msgStr('requiredFields') }}
17
- </div>
18
- }
7
+ <div class="row">
8
+ <div class="col-md-10">
9
+ <h2>{{ i18n.msgStr('authenticatorTitle') }}</h2>
10
+ </div>
11
+ @if (totp.otpCredentials.length) {
12
+ <div class="subtitle col-md-2">
13
+ <span class="required">*</span>
14
+ {{ i18n.msgStr('requiredFields') }}
19
15
  </div>
20
- @if (totp.enabled) {
21
- <table class="table table-bordered table-striped">
22
- <thead>
16
+ }
17
+ </div>
18
+ @if (totp.enabled) {
19
+ <table class="table table-bordered table-striped">
20
+ <thead>
21
+ @if (totp.otpCredentials.length > 1) {
22
+ <tr>
23
+ <th [colSpan]="4">{{ i18n.msgStr('configureAuthenticators') }}</th>
24
+ </tr>
25
+ } @else {
26
+ <tr>
27
+ <th [colSpan]="3">{{ i18n.msgStr('configureAuthenticators') }}</th>
28
+ </tr>
29
+ }
30
+ </thead>
31
+ <tbody>
32
+ @for (credential of totp.otpCredentials; track credential; let index = $index) {
33
+ <tr>
34
+ <td class="provider">{{ i18n.msgStr('mobile') }}</td>
23
35
  @if (totp.otpCredentials.length > 1) {
24
- <tr>
25
- <th [colSpan]="4">{{ i18n.msgStr('configureAuthenticators') }}</th>
26
- </tr>
27
- } @else {
28
- <tr>
29
- <th [colSpan]="3">{{ i18n.msgStr('configureAuthenticators') }}</th>
30
- </tr>
31
- }
32
- </thead>
33
- <tbody>
34
- @for (credential of totp.otpCredentials; track credential; let index = $index) {
35
- <tr>
36
- <td class="provider">{{ i18n.msgStr('mobile') }}</td>
37
- @if (totp.otpCredentials.length > 1) {
38
- <td class="provider">{{ credential.id }}</td>
39
- }
40
- <td class="provider">{{ credential.userLabel || '' }}</td>
41
- <td class="action">
42
- <form
43
- [action]="url.totpUrl"
44
- method="post"
45
- class="form-inline"
46
- >
47
- <input
48
- type="hidden"
49
- id="stateChecker"
50
- name="stateChecker"
51
- [value]="stateChecker"
52
- />
53
- <input
54
- type="hidden"
55
- id="submitAction"
56
- name="submitAction"
57
- value="Delete"
58
- />
59
- <input
60
- type="hidden"
61
- id="credentialId"
62
- name="credentialId"
63
- [value]="credential.id"
64
- />
65
- <button
66
- [id]="'remove-mobile-' + index"
67
- class="btn btn-default"
68
- >
69
- <i class="pficon pficon-delete"></i>
70
- </button>
71
- </form>
72
- </td>
73
- </tr>
74
- }
75
- </tbody>
76
- </table>
77
- } @else {
78
- <div>
79
- <hr />
80
- <ol id="kc-totp-settings">
81
- <li>
82
- <p>{{ i18n.msgStr('totpStep1') }}</p>
83
-
84
- <ul id="kc-totp-supported-apps">
85
- @for (app of totp.supportedApplications; track app) {
86
- <li>{{ i18n.advancedMsgStr(app) }}</li>
87
- }
88
- </ul>
89
- </li>
90
- @if (mode && mode === 'manual') {
91
- <li>
92
- <p>{{ i18n.msgStr('totpManualStep2') }}</p>
93
- <p>
94
- <span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
95
- </p>
96
- <p>
97
- <a
98
- [href]="totp.qrUrl"
99
- id="mode-barcode"
100
- >
101
- {{ i18n.msgStr('totpScanBarcode') }}
102
- </a>
103
- </p>
104
- </li>
105
- <li>
106
- <p>{{ i18n.msgStr('totpManualStep3') }}</p>
107
- <ul>
108
- <li id="kc-totp-type">{{ i18n.msgStr('totpType') }}: {{ i18n.msgStr($any('totp.' + totp.policy.type)) }}</li>
109
- <li id="kc-totp-algorithm">{{ i18n.msgStr('totpAlgorithm') }}: {{ totp.policy.getAlgorithmKey() }}</li>
110
- <li id="kc-totp-digits">{{ i18n.msgStr('totpDigits') }}: {{ totp.policy.digits }}</li>
111
- @if (totp.policy.type === 'totp') {
112
- <li id="kc-totp-period">{{ i18n.msgStr('totpInterval') }}: {{ totp.policy.period }}</li>
113
- } @else {
114
- <li id="kc-totp-counter">{{ i18n.msgStr('totpCounter') }}: {{ totp.policy.initialCounter }}</li>
115
- }
116
- </ul>
117
- </li>
118
- } @else {
119
- <li>
120
- <p>{{ i18n.msgStr('totpStep2') }}</p>
121
- <p>
122
- <img
123
- id="kc-totp-secret-qr-code"
124
- [src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
125
- alt="Figure: Barcode"
126
- />
127
- </p>
128
- <p>
129
- <a
130
- [href]="totp.manualUrl"
131
- id="mode-manual"
132
- >
133
- {{ i18n.msgStr('totpUnableToScan') }}
134
- </a>
135
- </p>
136
- </li>
36
+ <td class="provider">{{ credential.id }}</td>
137
37
  }
138
- <li>
139
- <p>{{ i18n.msgStr('totpStep3') }}</p>
140
- <p>{{ i18n.msgStr('totpStep3DeviceName') }}</p>
141
- </li>
142
- </ol>
143
- <hr />
144
- <form
145
- [action]="url.totpUrl"
146
- [kcClass]="'kcFormClass'"
147
- id="kc-totp-settings-form"
148
- method="post"
149
- >
150
- <input
151
- type="hidden"
152
- id="stateChecker"
153
- name="stateChecker"
154
- [value]="stateChecker"
155
- />
156
- <div [kcClass]="'kcFormGroupClass'">
157
- <div class="col-sm-2 col-md-2">
158
- <label
159
- for="totp"
160
- class="control-label"
161
- >
162
- {{ i18n.msgStr('authenticatorCode') }}
163
- </label>
164
- <span class="required">*</span>
165
- </div>
166
- <div class="col-sm-10 col-md-10">
167
- <input
168
- type="text"
169
- id="totp"
170
- name="totp"
171
- autoComplete="off"
172
- [kcClass]="'kcInputClass'"
173
- [attr.aria-invalid]="messagesPerField.existsError('totp')"
174
- />
175
- @if (messagesPerField.existsError('totp')) {
176
- <span
177
- id="input-error-otp-code"
178
- [kcClass]="'kcInputErrorMessageClass'"
179
- aria-live="polite"
180
- [innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
181
- ></span>
182
- }
183
- </div>
184
- <input
185
- type="hidden"
186
- id="totpSecret"
187
- name="totpSecret"
188
- [value]="totp.totpSecret"
189
- />
190
- @if (mode) {
38
+ <td class="provider">{{ credential.userLabel || '' }}</td>
39
+ <td class="action">
40
+ <form
41
+ method="post"
42
+ class="form-inline"
43
+ [action]="url.totpUrl"
44
+ >
191
45
  <input
192
46
  type="hidden"
193
- id="mode"
194
- [value]="mode"
47
+ id="stateChecker"
48
+ name="stateChecker"
49
+ [value]="stateChecker"
195
50
  />
196
- }
197
- </div>
198
-
199
- <div [kcClass]="'kcFormGroupClass'">
200
- <div class="col-sm-2 col-md-2">
201
- <label
202
- for="userLabel"
203
- [kcClass]="'kcLabelClass'"
204
- >
205
- {{ i18n.msgStr('totpDeviceName') }}
206
- </label>
207
- @if (totp.otpCredentials.length >= 1) {
208
- <span class="required">*</span>
209
- }
210
- </div>
211
- <div class="col-sm-10 col-md-10">
212
51
  <input
213
- type="text"
214
- id="userLabel"
215
- name="userLabel"
216
- autoComplete="off"
217
- [kcClass]="'kcInputClass'"
218
- [attr.aria-invalid]="messagesPerField.existsError('userLabel')"
52
+ type="hidden"
53
+ id="submitAction"
54
+ name="submitAction"
55
+ value="Delete"
219
56
  />
220
- @if (messagesPerField.existsError('userLabel')) {
221
- <span
222
- id="input-error-otp-label"
223
- [kcClass]="'kcInputErrorMessageClass'"
224
- aria-live="polite"
225
- [innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
226
- ></span>
227
- }
228
- </div>
229
- </div>
230
-
231
- <div
232
- id="kc-form-buttons"
233
- class="text-right"
234
- [kcClass]="'kcFormGroupClass'"
235
- >
236
- <div [kcClass]="'kcInputWrapperClass'">
237
57
  <input
238
- type="submit"
239
- [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
240
- id="saveTOTPBtn"
241
- [value]="i18n.msgStr('doSave')"
58
+ type="hidden"
59
+ id="credentialId"
60
+ name="credentialId"
61
+ [value]="credential.id"
242
62
  />
243
63
  <button
244
- type="submit"
245
- [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
246
- id="cancelTOTPBtn"
247
- name="submitAction"
248
- value="Cancel"
64
+ class="btn btn-default"
65
+ [id]="'remove-mobile-' + index"
249
66
  >
250
- {{ i18n.msgStr('doCancel') }}
67
+ <i class="pficon pficon-delete"></i>
251
68
  </button>
252
- </div>
253
- </div>
254
- </form>
69
+ </form>
70
+ </td>
71
+ </tr>
72
+ }
73
+ </tbody>
74
+ </table>
75
+ } @else {
76
+ <div>
77
+ <hr />
78
+ <ol id="kc-totp-settings">
79
+ <li>
80
+ <p>{{ i18n.msgStr('totpStep1') }}</p>
81
+
82
+ <ul id="kc-totp-supported-apps">
83
+ @for (app of totp.supportedApplications; track app) {
84
+ <li>{{ i18n.advancedMsgStr(app) }}</li>
85
+ }
86
+ </ul>
87
+ </li>
88
+ @if (mode && mode === 'manual') {
89
+ <li>
90
+ <p>{{ i18n.msgStr('totpManualStep2') }}</p>
91
+ <p>
92
+ <span id="kc-totp-secret-key">{{ totp.totpSecretEncoded }}</span>
93
+ </p>
94
+ <p>
95
+ <a
96
+ id="mode-barcode"
97
+ [href]="totp.qrUrl"
98
+ >
99
+ {{ i18n.msgStr('totpScanBarcode') }}
100
+ </a>
101
+ </p>
102
+ </li>
103
+ <li>
104
+ <p>{{ i18n.msgStr('totpManualStep3') }}</p>
105
+ <ul>
106
+ <li id="kc-totp-type">{{ i18n.msgStr('totpType') }}: {{ i18n.msgStr($any('totp.' + totp.policy.type)) }}</li>
107
+ <li id="kc-totp-algorithm">{{ i18n.msgStr('totpAlgorithm') }}: {{ totp.policy.getAlgorithmKey() }}</li>
108
+ <li id="kc-totp-digits">{{ i18n.msgStr('totpDigits') }}: {{ totp.policy.digits }}</li>
109
+ @if (totp.policy.type === 'totp') {
110
+ <li id="kc-totp-period">{{ i18n.msgStr('totpInterval') }}: {{ totp.policy.period }}</li>
111
+ } @else {
112
+ <li id="kc-totp-counter">{{ i18n.msgStr('totpCounter') }}: {{ totp.policy.initialCounter }}</li>
113
+ }
114
+ </ul>
115
+ </li>
116
+ } @else {
117
+ <li>
118
+ <p>{{ i18n.msgStr('totpStep2') }}</p>
119
+ <p>
120
+ <img
121
+ id="kc-totp-secret-qr-code"
122
+ alt="Figure: Barcode"
123
+ [src]="'data:image/png;base64, ' + totp.totpSecretQrCode"
124
+ />
125
+ </p>
126
+ <p>
127
+ <a
128
+ id="mode-manual"
129
+ [href]="totp.manualUrl"
130
+ >
131
+ {{ i18n.msgStr('totpUnableToScan') }}
132
+ </a>
133
+ </p>
134
+ </li>
135
+ }
136
+ <li>
137
+ <p>{{ i18n.msgStr('totpStep3') }}</p>
138
+ <p>{{ i18n.msgStr('totpStep3DeviceName') }}</p>
139
+ </li>
140
+ </ol>
141
+ <hr />
142
+ <form
143
+ id="kc-totp-settings-form"
144
+ method="post"
145
+ [action]="url.totpUrl"
146
+ [kcClass]="'kcFormClass'"
147
+ >
148
+ <input
149
+ type="hidden"
150
+ id="stateChecker"
151
+ name="stateChecker"
152
+ [value]="stateChecker"
153
+ />
154
+ <div [kcClass]="'kcFormGroupClass'">
155
+ <div class="col-sm-2 col-md-2">
156
+ <label
157
+ for="totp"
158
+ class="control-label"
159
+ >
160
+ {{ i18n.msgStr('authenticatorCode') }}
161
+ </label>
162
+ <span class="required">*</span>
163
+ </div>
164
+ <div class="col-sm-10 col-md-10">
165
+ <input
166
+ type="text"
167
+ id="totp"
168
+ name="totp"
169
+ autoComplete="off"
170
+ [kcClass]="'kcInputClass'"
171
+ [attr.aria-invalid]="messagesPerField.existsError('totp')"
172
+ />
173
+ @if (messagesPerField.existsError('totp')) {
174
+ <span
175
+ id="input-error-otp-code"
176
+ aria-live="polite"
177
+ [kcClass]="'kcInputErrorMessageClass'"
178
+ [innerHTML]="messagesPerField.get('totp') | kcSanitize: 'html'"
179
+ ></span>
180
+ }
181
+ </div>
182
+ <input
183
+ type="hidden"
184
+ id="totpSecret"
185
+ name="totpSecret"
186
+ [value]="totp.totpSecret"
187
+ />
188
+ @if (mode) {
189
+ <input
190
+ type="hidden"
191
+ id="mode"
192
+ [value]="mode"
193
+ />
194
+ }
195
+ </div>
196
+
197
+ <div [kcClass]="'kcFormGroupClass'">
198
+ <div class="col-sm-2 col-md-2">
199
+ <label
200
+ for="userLabel"
201
+ [kcClass]="'kcLabelClass'"
202
+ >
203
+ {{ i18n.msgStr('totpDeviceName') }}
204
+ </label>
205
+ @if (totp.otpCredentials.length >= 1) {
206
+ <span class="required">*</span>
207
+ }
208
+ </div>
209
+ <div class="col-sm-10 col-md-10">
210
+ <input
211
+ type="text"
212
+ id="userLabel"
213
+ name="userLabel"
214
+ autoComplete="off"
215
+ [kcClass]="'kcInputClass'"
216
+ [attr.aria-invalid]="messagesPerField.existsError('userLabel')"
217
+ />
218
+ @if (messagesPerField.existsError('userLabel')) {
219
+ <span
220
+ id="input-error-otp-label"
221
+ aria-live="polite"
222
+ [kcClass]="'kcInputErrorMessageClass'"
223
+ [innerHTML]="messagesPerField.get('userLabel') | kcSanitize: 'html'"
224
+ ></span>
225
+ }
226
+ </div>
227
+ </div>
228
+
229
+ <div
230
+ id="kc-form-buttons"
231
+ class="text-right"
232
+ [kcClass]="'kcFormGroupClass'"
233
+ >
234
+ <div [kcClass]="'kcInputWrapperClass'">
235
+ <input
236
+ type="submit"
237
+ id="saveTOTPBtn"
238
+ [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonLargeClass']"
239
+ [value]="i18n.msgStr('doSave')"
240
+ />
241
+ <button
242
+ type="submit"
243
+ id="cancelTOTPBtn"
244
+ name="submitAction"
245
+ value="Cancel"
246
+ [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
247
+ >
248
+ {{ i18n.msgStr('doCancel') }}
249
+ </button>
250
+ </div>
255
251
  </div>
256
- }
257
- </ng-container>
258
- </kc-account-template>
252
+ </form>
253
+ </div>
254
+ }
@@ -3,19 +3,19 @@ import { Component, forwardRef, inject } from '@angular/core';
3
3
  import { ComponentReference } from '@keycloakify/angular/account/classes/component-reference';
4
4
  import { TemplateComponent } from '@keycloakify/angular/account/containers/template';
5
5
  import { KcClassDirective } from '@keycloakify/angular/account/directives/kc-class';
6
+ import type { I18n } from '../../i18n';
7
+ import type { KcContext } from '../../KcContext';
6
8
  import { ACCOUNT_CLASSES } from '@keycloakify/angular/account/tokens/classes';
7
9
  import { ACCOUNT_I18N } from '@keycloakify/angular/account/tokens/i18n';
8
10
  import { KC_ACCOUNT_CONTEXT } from '@keycloakify/angular/account/tokens/kc-context';
9
11
  import { KcSanitizePipe } from '@keycloakify/angular/lib/pipes/kc-sanitize';
10
12
  import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css';
11
13
  import type { ClassKey } from 'keycloakify/account';
12
- import type { I18n } from '../../i18n';
13
- import type { KcContext } from '../../KcContext';
14
14
 
15
15
  @Component({
16
16
  standalone: true,
17
17
  imports: [KcClassDirective, TemplateComponent, KcSanitizePipe, NgClass],
18
- selector: 'kc-root',
18
+ selector: 'kc-totp',
19
19
  templateUrl: 'totp.component.html',
20
20
  providers: [
21
21
  {
@@ -29,4 +29,5 @@ export class TotpComponent extends ComponentReference {
29
29
  kcContext = inject<Extract<KcContext, { pageId: 'totp.ftl' }>>(KC_ACCOUNT_CONTEXT);
30
30
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
31
31
  override classes = inject<Partial<Record<ClassKey, string>>>(ACCOUNT_CLASSES);
32
+ active = 'totp';
32
33
  }
@@ -24,6 +24,7 @@ export const provideKeycloakifyAngularAccount = (
24
24
  makeEnvironmentProviders([
25
25
  {
26
26
  provide: KC_ACCOUNT_CONTEXT,
27
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
27
28
  // @ts-ignore
28
29
  useValue: window.kcContext
29
30
  },
@@ -1,9 +1,9 @@
1
1
  @let idPostfix = attribute()?.name ?? '' + '-' + (fieldIndex() ?? 0 + 1);
2
2
  @if (hasRemove()) {
3
3
  <button
4
- [id]="'kc-remove-' + idPostfix"
5
4
  type="button"
6
5
  class="pf-c-button pf-m-inline pf-m-link"
6
+ [id]="'kc-remove-' + idPostfix"
7
7
  (click)="onRemove()"
8
8
  >
9
9
  {{ i18n.msgStr('remove') }}
@@ -14,9 +14,9 @@
14
14
  }
15
15
  @if (hasAdd()) {
16
16
  <button
17
- [id]="'kc-add-' + idPostfix"
18
17
  type="button"
19
18
  class="pf-c-button pf-m-inline pf-m-link"
19
+ [id]="'kc-add-' + idPostfix"
20
20
  (click)="onAdd()"
21
21
  >
22
22
  {{ i18n.msgStr('addValue') }}
@@ -1,8 +1,8 @@
1
1
  @let index = fieldIndex();
2
2
  <span
3
+ aria-live="polite"
3
4
  [id]="'input-error-' + attribute.name + (index === undefined ? '' : '-' + index)"
4
5
  [kcClass]="'kcInputErrorMessageClass'"
5
- aria-live="polite"
6
6
  >
7
7
  @for (error of displayableErrors(); track error; let i = $index) {
8
8
  @if (error.fieldIndex === index) {
@@ -8,7 +8,7 @@
8
8
  [value]="$any(valueOrValues())"
9
9
  [displayableErrors]="displayableErrors()"
10
10
  (dispatchFormAction)="dispatchFormAction.emit($event)"
11
- ></kc-textarea-tag>
11
+ />
12
12
  }
13
13
  @case (type === 'select' || type === 'multiselect' ? type : '') {
14
14
  <kc-select-tag
@@ -16,7 +16,7 @@
16
16
  [valueOrValues]="valueOrValues()"
17
17
  [displayableErrors]="displayableErrors()"
18
18
  (dispatchFormAction)="dispatchFormAction.emit($event)"
19
- ></kc-select-tag>
19
+ />
20
20
  }
21
21
  @case (type === 'select-radiobuttons' || type === 'multiselect-checkboxes' ? type : '') {
22
22
  <kc-input-tag-selects
@@ -24,7 +24,7 @@
24
24
  [valueOrValues]="valueOrValues()"
25
25
  [displayableErrors]="displayableErrors()"
26
26
  (dispatchFormAction)="dispatchFormAction.emit($event)"
27
- ></kc-input-tag-selects>
27
+ />
28
28
  }
29
29
  @default {
30
30
  @let values = valueOrValues();
@@ -37,7 +37,7 @@
37
37
  [fieldIndex]="i"
38
38
  [displayableErrors]="displayableErrors()"
39
39
  (dispatchFormAction)="dispatchFormAction.emit($event)"
40
- ></kc-input-tag>
40
+ />
41
41
  }
42
42
  } @else {
43
43
  @if (attr.name === 'password' || attr.name === 'password-confirm') {
@@ -47,7 +47,7 @@
47
47
  [valueOrValues]="valueOrValues()"
48
48
  [displayableErrors]="displayableErrors()"
49
49
  (dispatchFormAction)="dispatchFormAction.emit($event)"
50
- ></kc-input-tag>
50
+ />
51
51
  </kc-password-wrapper>
52
52
  } @else {
53
53
  <kc-input-tag
@@ -55,7 +55,7 @@
55
55
  [valueOrValues]="valueOrValues()"
56
56
  [displayableErrors]="displayableErrors()"
57
57
  (dispatchFormAction)="dispatchFormAction.emit($event)"
58
- ></kc-input-tag>
58
+ />
59
59
  }
60
60
  }
61
61
  }
@@ -34,12 +34,12 @@
34
34
  [attribute]="attr"
35
35
  [displayableErrors]="displayableErrors()"
36
36
  [fieldIndex]="index"
37
- ></kc-field-errors>
37
+ />
38
38
  <kc-add-remove-buttons-multi-valued-attribute
39
39
  [attribute]="attr"
40
40
  [values]="values"
41
41
  [fieldIndex]="index"
42
42
  (dispatchFormAction)="dispatchFormAction.emit($event)"
43
- ></kc-add-remove-buttons-multi-valued-attribute>
43
+ />
44
44
  }
45
45
  }
@@ -1,5 +1,5 @@
1
1
  <div [kcClass]="'kcInputGroup'">
2
- <ng-content></ng-content>
2
+ <ng-content />
3
3
  <button
4
4
  type="button"
5
5
  [kcClass]="'kcFormPasswordVisibilityButtonClass'"
@@ -8,8 +8,8 @@
8
8
  (click)="togglePasswordVisibility()"
9
9
  >
10
10
  <i
11
- [kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
12
11
  aria-hidden="true"
12
+ [kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
13
13
  ></i>
14
14
  </button>
15
15
  </div>