@keycloakify/angular 0.0.1-rc.0 → 0.0.1-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/lib/i18n.d.ts +2 -2
  2. package/lib/i18n.mjs +6 -0
  3. package/lib/models/index.d.ts +1 -1
  4. package/lib/models/index.mjs +2 -0
  5. package/lib/models/script.model.mjs +2 -0
  6. package/lib/providers/keycloakify-angular.providers.d.ts +5 -5
  7. package/lib/providers/keycloakify-angular.providers.mjs +54 -0
  8. package/lib/public-api.d.ts +5 -5
  9. package/lib/public-api.mjs +4 -0
  10. package/lib/services/i18n.service.d.ts +3 -0
  11. package/lib/services/i18n.service.mjs +11 -0
  12. package/lib/services/index.d.ts +2 -2
  13. package/lib/services/index.mjs +3 -0
  14. package/lib/services/resource-injector.service.d.ts +5 -2
  15. package/lib/services/resource-injector.service.mjs +54 -0
  16. package/login/DefaultPage.d.ts +4 -4
  17. package/login/DefaultPage.mjs +121 -0
  18. package/login/KcContext.d.ts +1 -1
  19. package/login/KcContext.mjs +2 -0
  20. package/login/classes/component-reference.class.d.ts +1 -1
  21. package/login/classes/component-reference.class.mjs +3 -0
  22. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +5 -2
  23. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +105 -0
  24. package/login/components/field-errors/field-errors.component.d.ts +7 -4
  25. package/login/components/field-errors/field-errors.component.mjs +32 -0
  26. package/login/components/group-label/group-label.component.d.ts +6 -3
  27. package/login/components/group-label/group-label.component.mjs +41 -0
  28. package/login/components/hello-world/hello-world.component.d.ts +5 -0
  29. package/login/components/hello-world/hello-world.component.mjs +11 -0
  30. package/login/components/index.d.ts +11 -11
  31. package/login/components/index.mjs +12 -0
  32. package/login/components/input-field-by-type/input-field-by-type.component.d.ts +7 -4
  33. package/login/components/input-field-by-type/input-field-by-type.component.mjs +52 -0
  34. package/login/components/input-tag/input-tag.component.d.ts +7 -4
  35. package/login/components/input-tag/input-tag.component.mjs +89 -0
  36. package/login/components/input-tag-selects/input-tag-selects.component.d.ts +9 -6
  37. package/login/components/input-tag-selects/input-tag-selects.component.mjs +115 -0
  38. package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +5 -2
  39. package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +30 -0
  40. package/login/components/password-wrapper/password-wrapper.component.d.ts +6 -3
  41. package/login/components/password-wrapper/password-wrapper.component.mjs +44 -0
  42. package/login/components/select-tag/select-tag.component.d.ts +7 -4
  43. package/login/components/select-tag/select-tag.component.mjs +80 -0
  44. package/login/components/textarea-tag/textarea-tag.component.d.ts +7 -4
  45. package/login/components/textarea-tag/textarea-tag.component.mjs +48 -0
  46. package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +8 -5
  47. package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +62 -0
  48. package/login/containers/template.component.d.ts +11 -8
  49. package/login/containers/template.component.mjs +71 -0
  50. package/login/directives/attributes.directive.d.ts +3 -0
  51. package/login/directives/attributes.directive.mjs +26 -0
  52. package/login/directives/index.d.ts +2 -2
  53. package/login/directives/index.mjs +3 -0
  54. package/login/directives/kc-class.directive.d.ts +5 -2
  55. package/login/directives/kc-class.directive.mjs +138 -0
  56. package/login/i18n.d.ts +2 -2
  57. package/login/i18n.mjs +2 -0
  58. package/login/pages/code/code.component.d.ts +6 -3
  59. package/login/pages/code/code.component.mjs +32 -0
  60. package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +6 -3
  61. package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +32 -0
  62. package/login/pages/delete-credential/delete-credential.component.d.ts +6 -3
  63. package/login/pages/delete-credential/delete-credential.component.mjs +37 -0
  64. package/login/pages/error/error.component.d.ts +6 -3
  65. package/login/pages/error/error.component.mjs +32 -0
  66. package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +7 -4
  67. package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +41 -0
  68. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +6 -3
  69. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +47 -0
  70. package/login/pages/info/info.component.d.ts +9 -6
  71. package/login/pages/info/info.component.mjs +58 -0
  72. package/login/pages/login/login.component.d.ts +6 -3
  73. package/login/pages/login/login.component.mjs +51 -0
  74. package/login/pages/login-config-totp/login-config-totp.component.d.ts +6 -3
  75. package/login/pages/login-config-totp/login-config-totp.component.mjs +47 -0
  76. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +6 -3
  77. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +37 -0
  78. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +6 -3
  79. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +37 -0
  80. package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +6 -3
  81. package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +37 -0
  82. package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +6 -3
  83. package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +38 -0
  84. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +6 -3
  85. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +37 -0
  86. package/login/pages/login-otp/login-otp.component.d.ts +6 -3
  87. package/login/pages/login-otp/login-otp.component.mjs +38 -0
  88. package/login/pages/login-page-expired/login-page-expired.component.d.ts +6 -3
  89. package/login/pages/login-page-expired/login-page-expired.component.mjs +36 -0
  90. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +8 -5
  91. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +85 -0
  92. package/login/pages/login-password/login-password.component.d.ts +6 -3
  93. package/login/pages/login-password/login-password.component.mjs +46 -0
  94. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +6 -3
  95. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +45 -0
  96. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +6 -3
  97. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +38 -0
  98. package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +6 -3
  99. package/login/pages/login-reset-otp/login-reset-otp.component.mjs +37 -0
  100. package/login/pages/login-reset-password/login-reset-password.component.d.ts +6 -3
  101. package/login/pages/login-reset-password/login-reset-password.component.mjs +38 -0
  102. package/login/pages/login-update-password/login-update-password.component.d.ts +6 -3
  103. package/login/pages/login-update-password/login-update-password.component.mjs +47 -0
  104. package/login/pages/login-update-profile/login-update-profile.component.d.ts +6 -3
  105. package/login/pages/login-update-profile/login-update-profile.component.mjs +44 -0
  106. package/login/pages/login-username/login-username.component.d.ts +6 -3
  107. package/login/pages/login-username/login-username.component.mjs +49 -0
  108. package/login/pages/login-verify-email/login-verify-email.component.d.ts +6 -3
  109. package/login/pages/login-verify-email/login-verify-email.component.mjs +37 -0
  110. package/login/pages/login-x509-info/login-x509-info.component.d.ts +6 -3
  111. package/login/pages/login-x509-info/login-x509-info.component.mjs +37 -0
  112. package/login/pages/logout-confirm/logout-confirm.component.d.ts +6 -3
  113. package/login/pages/logout-confirm/logout-confirm.component.mjs +37 -0
  114. package/login/pages/register/register.component.d.ts +6 -3
  115. package/login/pages/register/register.component.mjs +55 -0
  116. package/login/pages/saml-post-form/saml-post-form.component.d.ts +7 -4
  117. package/login/pages/saml-post-form/saml-post-form.component.mjs +49 -0
  118. package/login/pages/select-authenticator/select-authenticator.component.d.ts +6 -3
  119. package/login/pages/select-authenticator/select-authenticator.component.mjs +45 -0
  120. package/login/pages/terms/terms.component.d.ts +6 -3
  121. package/login/pages/terms/terms.component.mjs +37 -0
  122. package/login/pages/update-email/update-email.component.d.ts +6 -3
  123. package/login/pages/update-email/update-email.component.mjs +46 -0
  124. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +8 -5
  125. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +87 -0
  126. package/login/pages/webauthn-error/webauthn-error.component.d.ts +6 -3
  127. package/login/pages/webauthn-error/webauthn-error.component.mjs +51 -0
  128. package/login/pages/webauthn-register/webauthn-register.component.d.ts +8 -5
  129. package/login/pages/webauthn-register/webauthn-register.component.mjs +81 -0
  130. package/login/pipes/advanced-msg-str.pipe.d.ts +4 -1
  131. package/login/pipes/advanced-msg-str.pipe.mjs +19 -0
  132. package/login/pipes/index.d.ts +6 -6
  133. package/login/pipes/index.mjs +7 -0
  134. package/login/pipes/input-type.pipe.d.ts +4 -1
  135. package/login/pipes/input-type.pipe.mjs +20 -0
  136. package/login/pipes/kc-sanitize.pipe.d.ts +5 -2
  137. package/login/pipes/kc-sanitize.pipe.mjs +34 -0
  138. package/login/pipes/msg-str.pipe.d.ts +5 -2
  139. package/login/pipes/msg-str.pipe.mjs +19 -0
  140. package/login/pipes/to-array.pipe.d.ts +4 -1
  141. package/login/pipes/to-array.pipe.mjs +21 -0
  142. package/login/pipes/to-number.pipe.d.ts +4 -1
  143. package/login/pipes/to-number.pipe.mjs +20 -0
  144. package/login/services/index.d.ts +2 -2
  145. package/login/services/index.mjs +3 -0
  146. package/login/services/login-resource-injector.service.d.ts +4 -1
  147. package/login/services/login-resource-injector.service.mjs +68 -0
  148. package/login/services/user-profile-form.service.d.ts +15 -12
  149. package/login/services/user-profile-form.service.mjs +1017 -0
  150. package/package.json +90 -200
  151. package/src/lib/i18n.ts +2 -2
  152. package/src/lib/models/index.ts +1 -1
  153. package/src/lib/providers/keycloakify-angular.providers.ts +18 -18
  154. package/src/lib/public-api.ts +5 -5
  155. package/src/lib/services/i18n.service.ts +2 -2
  156. package/src/lib/services/index.ts +2 -2
  157. package/src/lib/services/resource-injector.service.ts +7 -7
  158. package/src/login/DefaultPage.ts +76 -76
  159. package/src/login/KcContext.ts +1 -1
  160. package/src/login/classes/component-reference.class.ts +1 -1
  161. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +11 -11
  162. package/src/login/components/field-errors/field-errors.component.ts +9 -9
  163. package/src/login/components/group-label/group-label.component.ts +12 -12
  164. package/src/login/components/hello-world/hello-world.component.css +0 -0
  165. package/src/login/components/hello-world/hello-world.component.html +1 -0
  166. package/src/login/components/hello-world/hello-world.component.ts +10 -0
  167. package/src/login/components/index.ts +11 -11
  168. package/src/login/components/input-field-by-type/input-field-by-type.component.ts +15 -15
  169. package/src/login/components/input-tag/input-tag.component.ts +20 -20
  170. package/src/login/components/input-tag-selects/input-tag-selects.component.ts +26 -26
  171. package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -8
  172. package/src/login/components/password-wrapper/password-wrapper.component.ts +11 -11
  173. package/src/login/components/select-tag/select-tag.component.ts +16 -16
  174. package/src/login/components/textarea-tag/textarea-tag.component.ts +14 -14
  175. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +16 -16
  176. package/src/login/containers/template.component.ts +19 -19
  177. package/src/login/directives/attributes.directive.ts +2 -2
  178. package/src/login/directives/index.ts +2 -2
  179. package/src/login/directives/kc-class.directive.ts +11 -11
  180. package/src/login/i18n.ts +2 -2
  181. package/src/login/pages/code/code.component.ts +11 -11
  182. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +11 -11
  183. package/src/login/pages/delete-credential/delete-credential.component.ts +11 -11
  184. package/src/login/pages/error/error.component.ts +11 -11
  185. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -11
  186. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +14 -14
  187. package/src/login/pages/info/info.component.ts +15 -15
  188. package/src/login/pages/login/login.component.ts +16 -16
  189. package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -16
  190. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -11
  191. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -11
  192. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -11
  193. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +13 -13
  194. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -11
  195. package/src/login/pages/login-otp/login-otp.component.ts +13 -13
  196. package/src/login/pages/login-page-expired/login-page-expired.component.ts +10 -10
  197. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +21 -21
  198. package/src/login/pages/login-password/login-password.component.ts +14 -14
  199. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +13 -13
  200. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +13 -13
  201. package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -12
  202. package/src/login/pages/login-reset-password/login-reset-password.component.ts +13 -13
  203. package/src/login/pages/login-update-password/login-update-password.component.ts +16 -16
  204. package/src/login/pages/login-update-profile/login-update-profile.component.ts +13 -13
  205. package/src/login/pages/login-username/login-username.component.ts +14 -14
  206. package/src/login/pages/login-verify-email/login-verify-email.component.ts +11 -11
  207. package/src/login/pages/login-x509-info/login-x509-info.component.ts +11 -11
  208. package/src/login/pages/logout-confirm/logout-confirm.component.ts +11 -11
  209. package/src/login/pages/register/register.component.ts +17 -17
  210. package/src/login/pages/saml-post-form/saml-post-form.component.ts +13 -13
  211. package/src/login/pages/select-authenticator/select-authenticator.component.ts +13 -13
  212. package/src/login/pages/terms/terms.component.ts +11 -11
  213. package/src/login/pages/update-email/update-email.component.ts +14 -14
  214. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +21 -21
  215. package/src/login/pages/webauthn-error/webauthn-error.component.ts +15 -15
  216. package/src/login/pages/webauthn-register/webauthn-register.component.ts +20 -20
  217. package/src/login/pipes/advanced-msg-str.pipe.ts +4 -4
  218. package/src/login/pipes/index.ts +6 -6
  219. package/src/login/pipes/input-type.pipe.ts +4 -4
  220. package/src/login/pipes/kc-sanitize.pipe.ts +8 -8
  221. package/src/login/pipes/msg-str.pipe.ts +5 -5
  222. package/src/login/pipes/to-array.pipe.ts +2 -2
  223. package/src/login/pipes/to-number.pipe.ts +3 -3
  224. package/src/login/services/index.ts +2 -2
  225. package/src/login/services/login-resource-injector.service.ts +11 -11
  226. package/src/login/services/user-profile-form.service.ts +178 -178
  227. package/stories/login/pages/login/login.stories.ts +146 -0
  228. package/lib/i18n.js +0 -6
  229. package/lib/i18n.js.map +0 -1
  230. package/lib/models/index.js +0 -2
  231. package/lib/models/index.js.map +0 -1
  232. package/lib/models/script.model.js +0 -2
  233. package/lib/models/script.model.js.map +0 -1
  234. package/lib/providers/keycloakify-angular.providers.js +0 -58
  235. package/lib/providers/keycloakify-angular.providers.js.map +0 -1
  236. package/lib/public-api.js +0 -4
  237. package/lib/public-api.js.map +0 -1
  238. package/lib/services/i18n.service.js +0 -14
  239. package/lib/services/i18n.service.js.map +0 -1
  240. package/lib/services/index.js +0 -3
  241. package/lib/services/index.js.map +0 -1
  242. package/lib/services/resource-injector.service.js +0 -57
  243. package/lib/services/resource-injector.service.js.map +0 -1
  244. package/login/DefaultPage.js +0 -121
  245. package/login/DefaultPage.js.map +0 -1
  246. package/login/KcContext.js +0 -2
  247. package/login/KcContext.js.map +0 -1
  248. package/login/classes/component-reference.class.js +0 -3
  249. package/login/classes/component-reference.class.js.map +0 -1
  250. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
  251. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +0 -123
  252. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
  253. package/login/components/field-errors/field-errors.component.html +0 -15
  254. package/login/components/field-errors/field-errors.component.js +0 -45
  255. package/login/components/field-errors/field-errors.component.js.map +0 -1
  256. package/login/components/group-label/group-label.component.html +0 -30
  257. package/login/components/group-label/group-label.component.js +0 -55
  258. package/login/components/group-label/group-label.component.js.map +0 -1
  259. package/login/components/index.js +0 -12
  260. package/login/components/index.js.map +0 -1
  261. package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
  262. package/login/components/input-field-by-type/input-field-by-type.component.js +0 -63
  263. package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
  264. package/login/components/input-tag/input-tag.component.html +0 -49
  265. package/login/components/input-tag/input-tag.component.js +0 -107
  266. package/login/components/input-tag/input-tag.component.js.map +0 -1
  267. package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
  268. package/login/components/input-tag-selects/input-tag-selects.component.js +0 -132
  269. package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
  270. package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
  271. package/login/components/logout-other-sessions/logout-other-sessions.component.js +0 -43
  272. package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
  273. package/login/components/password-wrapper/password-wrapper.component.html +0 -15
  274. package/login/components/password-wrapper/password-wrapper.component.js +0 -57
  275. package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
  276. package/login/components/select-tag/select-tag.component.html +0 -31
  277. package/login/components/select-tag/select-tag.component.js +0 -97
  278. package/login/components/select-tag/select-tag.component.js.map +0 -1
  279. package/login/components/textarea-tag/textarea-tag.component.html +0 -18
  280. package/login/components/textarea-tag/textarea-tag.component.js +0 -63
  281. package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
  282. package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
  283. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +0 -74
  284. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
  285. package/login/containers/template.component.html +0 -203
  286. package/login/containers/template.component.js +0 -78
  287. package/login/containers/template.component.js.map +0 -1
  288. package/login/directives/attributes.directive.js +0 -34
  289. package/login/directives/attributes.directive.js.map +0 -1
  290. package/login/directives/index.js +0 -3
  291. package/login/directives/index.js.map +0 -1
  292. package/login/directives/kc-class.directive.js +0 -146
  293. package/login/directives/kc-class.directive.js.map +0 -1
  294. package/login/i18n.js +0 -2
  295. package/login/i18n.js.map +0 -1
  296. package/login/pages/code/code.component.html +0 -26
  297. package/login/pages/code/code.component.js +0 -38
  298. package/login/pages/code/code.component.js.map +0 -1
  299. package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
  300. package/login/pages/delete-account-confirm/delete-account-confirm.component.js +0 -38
  301. package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
  302. package/login/pages/delete-credential/delete-credential.component.html +0 -35
  303. package/login/pages/delete-credential/delete-credential.component.js +0 -43
  304. package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
  305. package/login/pages/error/error.component.html +0 -25
  306. package/login/pages/error/error.component.js +0 -38
  307. package/login/pages/error/error.component.js.map +0 -1
  308. package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
  309. package/login/pages/frontchannel-logout/frontchannel-logout.component.js +0 -47
  310. package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
  311. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
  312. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +0 -54
  313. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
  314. package/login/pages/info/info.component.html +0 -54
  315. package/login/pages/info/info.component.js +0 -61
  316. package/login/pages/info/info.component.js.map +0 -1
  317. package/login/pages/login/login.component.html +0 -212
  318. package/login/pages/login/login.component.js +0 -58
  319. package/login/pages/login/login.component.js.map +0 -1
  320. package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
  321. package/login/pages/login-config-totp/login-config-totp.component.js +0 -53
  322. package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
  323. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
  324. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +0 -43
  325. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
  326. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
  327. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +0 -43
  328. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
  329. package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
  330. package/login/pages/login-idp-link-email/login-idp-link-email.component.js +0 -43
  331. package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
  332. package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
  333. package/login/pages/login-oauth-grant/login-oauth-grant.component.js +0 -44
  334. package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
  335. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
  336. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +0 -43
  337. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
  338. package/login/pages/login-otp/login-otp.component.html +0 -103
  339. package/login/pages/login-otp/login-otp.component.js +0 -44
  340. package/login/pages/login-otp/login-otp.component.js.map +0 -1
  341. package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
  342. package/login/pages/login-page-expired/login-page-expired.component.js +0 -42
  343. package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
  344. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
  345. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +0 -91
  346. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
  347. package/login/pages/login-password/login-password.component.html +0 -90
  348. package/login/pages/login-password/login-password.component.js +0 -52
  349. package/login/pages/login-password/login-password.component.js.map +0 -1
  350. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
  351. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +0 -51
  352. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
  353. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
  354. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +0 -44
  355. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
  356. package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
  357. package/login/pages/login-reset-otp/login-reset-otp.component.js +0 -43
  358. package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
  359. package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
  360. package/login/pages/login-reset-password/login-reset-password.component.js +0 -44
  361. package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
  362. package/login/pages/login-update-password/login-update-password.component.html +0 -116
  363. package/login/pages/login-update-password/login-update-password.component.js +0 -53
  364. package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
  365. package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
  366. package/login/pages/login-update-profile/login-update-profile.component.js +0 -50
  367. package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
  368. package/login/pages/login-username/login-username.component.html +0 -161
  369. package/login/pages/login-username/login-username.component.js +0 -56
  370. package/login/pages/login-username/login-username.component.js.map +0 -1
  371. package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
  372. package/login/pages/login-verify-email/login-verify-email.component.js +0 -43
  373. package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
  374. package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
  375. package/login/pages/login-x509-info/login-x509-info.component.js +0 -43
  376. package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
  377. package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
  378. package/login/pages/logout-confirm/logout-confirm.component.js +0 -43
  379. package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
  380. package/login/pages/register/register.component.html +0 -126
  381. package/login/pages/register/register.component.js +0 -62
  382. package/login/pages/register/register.component.js.map +0 -1
  383. package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
  384. package/login/pages/saml-post-form/saml-post-form.component.js +0 -55
  385. package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
  386. package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
  387. package/login/pages/select-authenticator/select-authenticator.component.js +0 -51
  388. package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
  389. package/login/pages/terms/terms.component.html +0 -36
  390. package/login/pages/terms/terms.component.js +0 -43
  391. package/login/pages/terms/terms.component.js.map +0 -1
  392. package/login/pages/update-email/update-email.component.html +0 -58
  393. package/login/pages/update-email/update-email.component.js +0 -52
  394. package/login/pages/update-email/update-email.component.js.map +0 -1
  395. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
  396. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +0 -93
  397. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
  398. package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
  399. package/login/pages/webauthn-error/webauthn-error.component.js +0 -57
  400. package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
  401. package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
  402. package/login/pages/webauthn-register/webauthn-register.component.js +0 -86
  403. package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
  404. package/login/pipes/advanced-msg-str.pipe.js +0 -31
  405. package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
  406. package/login/pipes/index.js +0 -7
  407. package/login/pipes/index.js.map +0 -1
  408. package/login/pipes/input-type.pipe.js +0 -23
  409. package/login/pipes/input-type.pipe.js.map +0 -1
  410. package/login/pipes/kc-sanitize.pipe.js +0 -36
  411. package/login/pipes/kc-sanitize.pipe.js.map +0 -1
  412. package/login/pipes/msg-str.pipe.js +0 -31
  413. package/login/pipes/msg-str.pipe.js.map +0 -1
  414. package/login/pipes/to-array.pipe.js +0 -24
  415. package/login/pipes/to-array.pipe.js.map +0 -1
  416. package/login/pipes/to-number.pipe.js +0 -23
  417. package/login/pipes/to-number.pipe.js.map +0 -1
  418. package/login/services/index.js +0 -3
  419. package/login/services/index.js.map +0 -1
  420. package/login/services/login-resource-injector.service.js +0 -71
  421. package/login/services/login-resource-injector.service.js.map +0 -1
  422. package/login/services/user-profile-form.service.js +0 -1031
  423. package/login/services/user-profile-form.service.js.map +0 -1
@@ -7,17 +7,17 @@ import {
7
7
  input,
8
8
  output,
9
9
  Signal
10
- } from "@angular/core";
11
- import { CLASSES, USE_DEFAULT_CSS } from "@keycloakify/angular/lib/public-api";
12
- import { Attribute } from "keycloakify/login/KcContext";
13
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
14
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
15
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
16
- import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-msg-str.pipe";
10
+ } from '@angular/core';
11
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
12
+ import { Attribute } from 'keycloakify/login/KcContext';
13
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
14
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
15
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
16
+ import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
17
17
  import {
18
18
  FormAction,
19
19
  FormFieldError
20
- } from "@keycloakify/angular/login/services/user-profile-form.service";
20
+ } from '@keycloakify/angular/login/services/user-profile-form.service';
21
21
 
22
22
  @Component({
23
23
  standalone: true,
@@ -29,8 +29,8 @@ import {
29
29
  `
30
30
  ],
31
31
  imports: [KcClassDirective, AdvancedMsgStrPipe],
32
- selector: "kc-input-tag-selects",
33
- templateUrl: "input-tag-selects.component.html",
32
+ selector: 'kc-input-tag-selects',
33
+ templateUrl: 'input-tag-selects.component.html',
34
34
  changeDetection: ChangeDetectionStrategy.OnPush,
35
35
  providers: [
36
36
  {
@@ -48,7 +48,7 @@ export class InputTagSelectsComponent extends ComponentReference {
48
48
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
49
49
 
50
50
  context: Signal<{
51
- inputType: "radio" | "checkbox";
51
+ inputType: 'radio' | 'checkbox';
52
52
  classDiv: ClassKey;
53
53
  classInput: ClassKey;
54
54
  classLabel: ClassKey;
@@ -57,19 +57,19 @@ export class InputTagSelectsComponent extends ComponentReference {
57
57
  if (attribute) {
58
58
  const { inputType } = attribute.annotations;
59
59
  switch (inputType) {
60
- case "select-radiobuttons":
60
+ case 'select-radiobuttons':
61
61
  return {
62
- inputType: "radio",
63
- classDiv: "kcInputClassRadio",
64
- classInput: "kcInputClassRadioInput",
65
- classLabel: "kcInputClassRadioLabel"
62
+ inputType: 'radio',
63
+ classDiv: 'kcInputClassRadio',
64
+ classInput: 'kcInputClassRadioInput',
65
+ classLabel: 'kcInputClassRadioLabel'
66
66
  };
67
- case "multiselect-checkboxes":
67
+ case 'multiselect-checkboxes':
68
68
  return {
69
- inputType: "checkbox",
70
- classDiv: "kcInputClassCheckbox",
71
- classInput: "kcInputClassCheckboxInput",
72
- classLabel: "kcInputClassCheckboxLabel"
69
+ inputType: 'checkbox',
70
+ classDiv: 'kcInputClassCheckbox',
71
+ classInput: 'kcInputClassCheckboxInput',
72
+ classLabel: 'kcInputClassCheckboxLabel'
73
73
  };
74
74
  }
75
75
  }
@@ -120,8 +120,8 @@ export class InputTagSelectsComponent extends ComponentReference {
120
120
  const valueOrValues = this.valueOrValues();
121
121
  const isChecked = (event.target as HTMLInputElement).checked;
122
122
  this.dispatchFormAction.emit({
123
- action: "update",
124
- name: this.attribute()?.name ?? "",
123
+ action: 'update',
124
+ name: this.attribute()?.name ?? '',
125
125
  valueOrValues: (() => {
126
126
  if (valueOrValues instanceof Array) {
127
127
  const newValues = [...valueOrValues];
@@ -135,15 +135,15 @@ export class InputTagSelectsComponent extends ComponentReference {
135
135
  return newValues;
136
136
  }
137
137
 
138
- return (event.target as HTMLInputElement)?.checked ? option : "";
138
+ return (event.target as HTMLInputElement)?.checked ? option : '';
139
139
  })()
140
140
  });
141
141
  }
142
142
 
143
143
  onBlur() {
144
144
  this.dispatchFormAction.emit({
145
- action: "focus lost",
146
- name: this.attribute()?.name ?? "",
145
+ action: 'focus lost',
146
+ name: this.attribute()?.name ?? '',
147
147
  fieldIndex: undefined
148
148
  });
149
149
  }
@@ -1,12 +1,12 @@
1
- import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
2
- import { CLASSES, USE_DEFAULT_CSS } from "@keycloakify/angular/lib/public-api";
3
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
4
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
5
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
6
- import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
2
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
4
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
5
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
6
+ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
7
7
 
8
8
  @Component({
9
- selector: "kc-logout-other-sessions",
9
+ selector: 'kc-logout-other-sessions',
10
10
  styles: [
11
11
  `
12
12
  :host {
@@ -17,7 +17,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
17
17
  standalone: true,
18
18
  imports: [KcClassDirective, MsgStrPipe],
19
19
  changeDetection: ChangeDetectionStrategy.OnPush,
20
- templateUrl: "./logout-other-sessions.component.html",
20
+ templateUrl: './logout-other-sessions.component.html',
21
21
  providers: [
22
22
  {
23
23
  provide: ComponentReference,
@@ -1,4 +1,4 @@
1
- import { AsyncPipe } from "@angular/common";
1
+ import { AsyncPipe } from '@angular/common';
2
2
  import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
@@ -8,15 +8,15 @@ import {
8
8
  Renderer2,
9
9
  signal,
10
10
  WritableSignal
11
- } from "@angular/core";
12
- import { CLASSES, USE_DEFAULT_CSS } from "@keycloakify/angular/lib/public-api";
13
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
14
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
15
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
16
- import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
11
+ } from '@angular/core';
12
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
13
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
14
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
15
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
16
+ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
17
17
 
18
18
  @Component({
19
- selector: "kc-password-wrapper",
19
+ selector: 'kc-password-wrapper',
20
20
  styles: [
21
21
  `
22
22
  :host {
@@ -27,7 +27,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
27
27
  standalone: true,
28
28
  changeDetection: ChangeDetectionStrategy.OnPush,
29
29
  imports: [KcClassDirective, AsyncPipe, MsgStrPipe],
30
- templateUrl: "./password-wrapper.component.html",
30
+ templateUrl: './password-wrapper.component.html',
31
31
  providers: [
32
32
  {
33
33
  provide: ComponentReference,
@@ -53,8 +53,8 @@ export class PasswordWrapperComponent extends ComponentReference {
53
53
  if (input) {
54
54
  this.renderer.setProperty(
55
55
  input,
56
- "type",
57
- this.isPasswordRevealed() ? "text" : "password"
56
+ 'type',
57
+ this.isPasswordRevealed() ? 'text' : 'password'
58
58
  );
59
59
  }
60
60
  }
@@ -6,18 +6,18 @@ import {
6
6
  inject,
7
7
  input,
8
8
  output
9
- } from "@angular/core";
10
- import { CLASSES, USE_DEFAULT_CSS } from "@keycloakify/angular/lib/public-api";
11
- import { Attribute } from "keycloakify/login/KcContext";
12
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
13
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
14
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
15
- import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-msg-str.pipe";
16
- import { ToNumberPipe } from "@keycloakify/angular/login/pipes/to-number.pipe";
9
+ } from '@angular/core';
10
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
11
+ import { Attribute } from 'keycloakify/login/KcContext';
12
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
13
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
14
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
15
+ import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
16
+ import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
17
17
  import {
18
18
  FormAction,
19
19
  FormFieldError
20
- } from "@keycloakify/angular/login/services/user-profile-form.service";
20
+ } from '@keycloakify/angular/login/services/user-profile-form.service';
21
21
 
22
22
  @Component({
23
23
  standalone: true,
@@ -29,8 +29,8 @@ import {
29
29
  `
30
30
  ],
31
31
  imports: [KcClassDirective, ToNumberPipe, AdvancedMsgStrPipe],
32
- selector: "kc-select-tag",
33
- templateUrl: "select-tag.component.html",
32
+ selector: 'kc-select-tag',
33
+ templateUrl: 'select-tag.component.html',
34
34
  changeDetection: ChangeDetectionStrategy.OnPush,
35
35
  providers: [
36
36
  {
@@ -48,7 +48,7 @@ export class SelectTagComponent extends ComponentReference {
48
48
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
49
49
 
50
50
  isMultiple = computed(() => {
51
- return this.attribute()?.annotations?.inputType === "multiselect";
51
+ return this.attribute()?.annotations?.inputType === 'multiselect';
52
52
  });
53
53
 
54
54
  options = computed(() => {
@@ -85,8 +85,8 @@ export class SelectTagComponent extends ComponentReference {
85
85
 
86
86
  onChange(event: Event) {
87
87
  this.dispatchFormAction.emit({
88
- action: "update",
89
- name: this.attribute()?.name ?? "",
88
+ action: 'update',
89
+ name: this.attribute()?.name ?? '',
90
90
  valueOrValues: (() => {
91
91
  if (this.isMultiple()) {
92
92
  return Array.from(
@@ -101,8 +101,8 @@ export class SelectTagComponent extends ComponentReference {
101
101
 
102
102
  onBlur() {
103
103
  this.dispatchFormAction.emit({
104
- action: "focus lost",
105
- name: this.attribute()?.name ?? "",
104
+ action: 'focus lost',
105
+ name: this.attribute()?.name ?? '',
106
106
  fieldIndex: undefined
107
107
  });
108
108
  }
@@ -5,17 +5,17 @@ import {
5
5
  inject,
6
6
  input,
7
7
  output
8
- } from "@angular/core";
9
- import { CLASSES, USE_DEFAULT_CSS } from "@keycloakify/angular/lib/public-api";
10
- import { Attribute } from "keycloakify/login/KcContext";
11
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
12
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
13
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
14
- import { ToNumberPipe } from "@keycloakify/angular/login/pipes/to-number.pipe";
8
+ } from '@angular/core';
9
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
10
+ import { Attribute } from 'keycloakify/login/KcContext';
11
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
12
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
13
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
14
+ import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
15
15
  import {
16
16
  FormAction,
17
17
  FormFieldError
18
- } from "@keycloakify/angular/login/services/user-profile-form.service";
18
+ } from '@keycloakify/angular/login/services/user-profile-form.service';
19
19
 
20
20
  @Component({
21
21
  standalone: true,
@@ -27,8 +27,8 @@ import {
27
27
  `
28
28
  ],
29
29
  imports: [KcClassDirective, ToNumberPipe],
30
- selector: "kc-textarea-tag",
31
- templateUrl: "textarea-tag.component.html",
30
+ selector: 'kc-textarea-tag',
31
+ templateUrl: 'textarea-tag.component.html',
32
32
  changeDetection: ChangeDetectionStrategy.OnPush,
33
33
  providers: [
34
34
  {
@@ -47,16 +47,16 @@ export class TextareaTagComponent extends ComponentReference {
47
47
 
48
48
  onChange(event: Event) {
49
49
  this.dispatchFormAction.emit({
50
- action: "update",
51
- name: this.attribute()?.name ?? "",
50
+ action: 'update',
51
+ name: this.attribute()?.name ?? '',
52
52
  valueOrValues: (event.target as HTMLTextAreaElement).value
53
53
  });
54
54
  }
55
55
 
56
56
  onBlur() {
57
57
  this.dispatchFormAction.emit({
58
- action: "focus lost",
59
- name: this.attribute()?.name ?? "",
58
+ action: 'focus lost',
59
+ name: this.attribute()?.name ?? '',
60
60
  fieldIndex: undefined
61
61
  });
62
62
  }
@@ -1,4 +1,4 @@
1
- import { NgTemplateOutlet } from "@angular/common";
1
+ import { NgTemplateOutlet } from '@angular/common';
2
2
  import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
@@ -8,25 +8,25 @@ import {
8
8
  inject,
9
9
  output,
10
10
  TemplateRef
11
- } from "@angular/core";
11
+ } from '@angular/core';
12
12
  import {
13
13
  DO_MAKE_USER_CONFIRM_PASSWORD,
14
14
  KC_CONTEXT,
15
15
  CLASSES,
16
16
  USE_DEFAULT_CSS
17
- } from "@keycloakify/angular/lib/public-api";
18
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
19
- import { KcContext } from "keycloakify/login/KcContext";
20
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
21
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
22
- import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-msg-str.pipe";
17
+ } from '@keycloakify/angular/lib/public-api';
18
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
19
+ import { KcContext } from 'keycloakify/login/KcContext';
20
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
21
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
22
+ import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
23
23
  import {
24
24
  FormAction,
25
25
  UserProfileFormService
26
- } from "@keycloakify/angular/login/services/user-profile-form.service";
27
- import { FieldErrorsComponent } from "@keycloakify/angular/login/components/field-errors/field-errors.component";
28
- import { GroupLabelComponent } from "@keycloakify/angular/login/components/group-label/group-label.component";
29
- import { InputFieldByTypeComponent } from "@keycloakify/angular/login/components/input-field-by-type/input-field-by-type.component";
26
+ } from '@keycloakify/angular/login/services/user-profile-form.service';
27
+ import { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors/field-errors.component';
28
+ import { GroupLabelComponent } from '@keycloakify/angular/login/components/group-label/group-label.component';
29
+ import { InputFieldByTypeComponent } from '@keycloakify/angular/login/components/input-field-by-type/input-field-by-type.component';
30
30
 
31
31
  @Component({
32
32
  standalone: true,
@@ -45,8 +45,8 @@ import { InputFieldByTypeComponent } from "@keycloakify/angular/login/components
45
45
  NgTemplateOutlet,
46
46
  AdvancedMsgStrPipe
47
47
  ],
48
- selector: "kc-user-profile-form-fields",
49
- templateUrl: "user-profile-form-fields.component.html",
48
+ selector: 'kc-user-profile-form-fields',
49
+ templateUrl: 'user-profile-form-fields.component.html',
50
50
  changeDetection: ChangeDetectionStrategy.OnPush,
51
51
  providers: [
52
52
  UserProfileFormService,
@@ -67,8 +67,8 @@ export class UserProfileFormFieldsComponent extends ComponentReference {
67
67
 
68
68
  formState = this.userProfileFormService.formState;
69
69
 
70
- @ContentChild("beforField") beforeField: TemplateRef<unknown> | undefined;
71
- @ContentChild("afterField") afterField: TemplateRef<unknown> | undefined;
70
+ @ContentChild('beforField') beforeField: TemplateRef<unknown> | undefined;
71
+ @ContentChild('afterField') afterField: TemplateRef<unknown> | undefined;
72
72
 
73
73
  constructor() {
74
74
  super();
@@ -1,4 +1,4 @@
1
- import { AsyncPipe, NgTemplateOutlet } from "@angular/common";
1
+ import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
2
2
  import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
@@ -7,27 +7,27 @@ import {
7
7
  input,
8
8
  OnInit,
9
9
  Renderer2
10
- } from "@angular/core";
11
- import { Meta, Title } from "@angular/platform-browser";
10
+ } from '@angular/core';
11
+ import { Meta, Title } from '@angular/platform-browser';
12
12
  import {
13
13
  CLASSES,
14
14
  I18N,
15
15
  KC_CONTEXT,
16
16
  USE_DEFAULT_CSS
17
- } from "@keycloakify/angular/lib/public-api";
18
- import type { I18n } from "@keycloakify/angular/login/i18n";
19
- import { KcContext } from "keycloakify/login/KcContext/KcContext";
20
- import { ClassKey, getKcClsx } from "keycloakify/login/lib/kcClsx";
21
- import { Observable } from "rxjs";
22
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
23
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
24
- import { KcSanitizePipe } from "@keycloakify/angular/login/pipes";
25
- import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
26
- import { LoginResourceInjectorService } from "@keycloakify/angular/login/services/login-resource-injector.service";
17
+ } from '@keycloakify/angular/lib/public-api';
18
+ import type { I18n } from '@keycloakify/angular/login/i18n';
19
+ import { KcContext } from 'keycloakify/login/KcContext/KcContext';
20
+ import { ClassKey, getKcClsx } from 'keycloakify/login/lib/kcClsx';
21
+ import { Observable } from 'rxjs';
22
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
23
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
24
+ import { KcSanitizePipe } from '@keycloakify/angular/login/pipes';
25
+ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
26
+ import { LoginResourceInjectorService } from '@keycloakify/angular/login/services/login-resource-injector.service';
27
27
 
28
28
  @Component({
29
- selector: "kc-login-template",
30
- templateUrl: "./template.component.html",
29
+ selector: 'kc-login-template',
30
+ templateUrl: './template.component.html',
31
31
  standalone: true,
32
32
  imports: [AsyncPipe, KcSanitizePipe, NgTemplateOutlet, KcClassDirective, MsgStrPipe],
33
33
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -60,7 +60,7 @@ export class TemplateComponent extends ComponentReference implements OnInit {
60
60
  super();
61
61
  this.title.setTitle(
62
62
  this.documentTitle() ??
63
- this.i18n.msgStr("loginTitle", this.kcContext.realm.displayName)
63
+ this.i18n.msgStr('loginTitle', this.kcContext.realm.displayName)
64
64
  );
65
65
  this.isReadyToRender$ = this.loginResourceInjectorService.injectResource(
66
66
  this.doUseDefaultCss
@@ -76,8 +76,8 @@ export class TemplateComponent extends ComponentReference implements OnInit {
76
76
  doUseDefaultCss: this.doUseDefaultCss,
77
77
  classes: this.classes
78
78
  }).kcClsx;
79
- const kcBodyClass = this.bodyClassName() ?? kcClsx("kcBodyClass");
80
- const kcHtmlClass = kcClsx("kcHtmlClass");
79
+ const kcBodyClass = this.bodyClassName() ?? kcClsx('kcBodyClass');
80
+ const kcHtmlClass = kcClsx('kcHtmlClass');
81
81
  const kcBodyClasses = kcBodyClass.split(/\s+/);
82
82
  const kcHtmlClasses = kcHtmlClass.split(/\s+/);
83
83
  kcBodyClasses.forEach(klass => {
@@ -89,6 +89,6 @@ export class TemplateComponent extends ComponentReference implements OnInit {
89
89
  }
90
90
 
91
91
  tryAnotherWay() {
92
- document.forms["kc-select-try-another-way-form" as never].submit();
92
+ document.forms['kc-select-try-another-way-form' as never].submit();
93
93
  }
94
94
  }
@@ -1,6 +1,6 @@
1
- import { Directive, effect, ElementRef, inject, input, Renderer2 } from "@angular/core";
1
+ import { Directive, effect, ElementRef, inject, input, Renderer2 } from '@angular/core';
2
2
 
3
- @Directive({ selector: "[kcAttributes]", standalone: true })
3
+ @Directive({ selector: '[kcAttributes]', standalone: true })
4
4
  export class AttributesDirective {
5
5
  kcAttributes = input<Record<string, string>>();
6
6
  readonly #el = inject<ElementRef<HTMLElement>>(ElementRef);
@@ -1,2 +1,2 @@
1
- export * from "./attributes.directive";
2
- export * from "./kc-class.directive";
1
+ export * from './attributes.directive';
2
+ export * from './kc-class.directive';
@@ -9,10 +9,10 @@ import {
9
9
  isDevMode,
10
10
  Renderer2,
11
11
  ɵstringify as stringify
12
- } from "@angular/core";
13
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
14
- import { getKcClsx } from "keycloakify/login/lib/kcClsx";
15
- import { ComponentReference } from "../classes/component-reference.class";
12
+ } from '@angular/core';
13
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
14
+ import { getKcClsx } from 'keycloakify/login/lib/kcClsx';
15
+ import { ComponentReference } from '../classes/component-reference.class';
16
16
 
17
17
  interface CssClassState {
18
18
  // PERF: could use a bit mask to represent state as all fields are boolean flags
@@ -35,7 +35,7 @@ type NgClassSupportedTypes =
35
35
  | null
36
36
  | undefined;
37
37
 
38
- @Directive({ selector: "[kcClass]", standalone: true })
38
+ @Directive({ selector: '[kcClass]', standalone: true })
39
39
  export class KcClassDirective implements DoCheck {
40
40
  private initialClasses: string[] = [];
41
41
  private rawClass: NgClassSupportedTypes;
@@ -46,22 +46,22 @@ export class KcClassDirective implements DoCheck {
46
46
  readonly #el = inject(ElementRef);
47
47
  readonly #host = inject(ComponentReference);
48
48
  // eslint-disable-next-line @angular-eslint/no-input-rename
49
- @Input("class")
49
+ @Input('class')
50
50
  set klass(value: string) {
51
51
  this.initialClasses = value != null ? value.trim().split(/\s+/) : [];
52
52
  }
53
53
 
54
54
  // eslint-disable-next-line @angular-eslint/no-input-rename
55
- @Input("ngClass")
55
+ @Input('ngClass')
56
56
  set ngClass(value: string | NgClassSupportedTypes) {
57
- this.rawClass = typeof value === "string" ? value.trim().split(/\s+/) : value;
57
+ this.rawClass = typeof value === 'string' ? value.trim().split(/\s+/) : value;
58
58
  }
59
59
 
60
60
  // eslint-disable-next-line @angular-eslint/no-input-rename
61
- @Input("kcClass")
61
+ @Input('kcClass')
62
62
  set kcClass(value: ClassKey | KcClassSupportedTypes) {
63
63
  this.rawKcClass =
64
- typeof value === "string" ? (value.trim().split(/\s+/) as ClassKey[]) : value;
64
+ typeof value === 'string' ? (value.trim().split(/\s+/) as ClassKey[]) : value;
65
65
  }
66
66
 
67
67
  ngDoCheck(): void {
@@ -146,7 +146,7 @@ export class KcClassDirective implements DoCheck {
146
146
 
147
147
  private _toggleClass(klass: string, enabled: boolean): void {
148
148
  if (isDevMode()) {
149
- if (typeof klass !== "string") {
149
+ if (typeof klass !== 'string') {
150
150
  throw new Error(
151
151
  `NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`
152
152
  );
package/src/login/i18n.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { GenericI18n_noJsx } from "keycloakify/login/i18n/noJsx/GenericI18n_noJsx";
2
- import { MessageKey as MessageKey_defaultSet } from "keycloakify/login/i18n/messages_defaultSet/types";
1
+ import type { GenericI18n_noJsx } from 'keycloakify/login/i18n/noJsx/GenericI18n_noJsx';
2
+ import { MessageKey as MessageKey_defaultSet } from 'keycloakify/login/i18n/messages_defaultSet/types';
3
3
  /** INTERNAL: DO NOT IMPORT THIS */
4
4
  export type I18n = GenericI18n_noJsx<MessageKey_defaultSet, string>;
@@ -1,21 +1,21 @@
1
- import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
2
2
  import {
3
3
  CLASSES,
4
4
  KC_CONTEXT,
5
5
  USE_DEFAULT_CSS
6
- } from "@keycloakify/angular/lib/public-api";
7
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
8
- import { KcContext } from "keycloakify/login/KcContext";
9
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
10
- import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
11
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
12
- import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
6
+ } from '@keycloakify/angular/lib/public-api';
7
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
8
+ import { KcContext } from 'keycloakify/login/KcContext';
9
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
10
+ import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
11
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
12
+ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
13
13
 
14
14
  @Component({
15
15
  standalone: true,
16
16
  imports: [MsgStrPipe, TemplateComponent, KcClassDirective],
17
- selector: "kc-root",
18
- templateUrl: "code.component.html",
17
+ selector: 'kc-root',
18
+ templateUrl: 'code.component.html',
19
19
  changeDetection: ChangeDetectionStrategy.OnPush,
20
20
  providers: [
21
21
  {
@@ -25,7 +25,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
25
25
  ]
26
26
  })
27
27
  export class CodeComponent extends ComponentReference {
28
- kcContext = inject<Extract<KcContext, { pageId: "code.ftl" }>>(KC_CONTEXT);
28
+ kcContext = inject<Extract<KcContext, { pageId: 'code.ftl' }>>(KC_CONTEXT);
29
29
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
30
30
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
31
31
  }
@@ -1,21 +1,21 @@
1
- import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
1
+ import { ChangeDetectionStrategy, Component, forwardRef, inject } from '@angular/core';
2
2
  import {
3
3
  CLASSES,
4
4
  KC_CONTEXT,
5
5
  USE_DEFAULT_CSS
6
- } from "@keycloakify/angular/lib/public-api";
7
- import { ClassKey } from "keycloakify/login/lib/kcClsx";
8
- import { KcContext } from "keycloakify/login/KcContext";
9
- import { ComponentReference } from "@keycloakify/angular/login/classes/component-reference.class";
10
- import { TemplateComponent } from "@keycloakify/angular/login/containers/template.component";
11
- import { KcClassDirective } from "@keycloakify/angular/login/directives";
12
- import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
6
+ } from '@keycloakify/angular/lib/public-api';
7
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
8
+ import { KcContext } from 'keycloakify/login/KcContext';
9
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
10
+ import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
11
+ import { KcClassDirective } from '@keycloakify/angular/login/directives';
12
+ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
13
13
 
14
14
  @Component({
15
15
  standalone: true,
16
16
  imports: [TemplateComponent, MsgStrPipe, KcClassDirective],
17
- selector: "kc-root",
18
- templateUrl: "delete-account-confirm.component.html",
17
+ selector: 'kc-root',
18
+ templateUrl: 'delete-account-confirm.component.html',
19
19
  changeDetection: ChangeDetectionStrategy.OnPush,
20
20
  providers: [
21
21
  {
@@ -26,7 +26,7 @@ import { MsgStrPipe } from "@keycloakify/angular/login/pipes/msg-str.pipe";
26
26
  })
27
27
  export class DeleteAccountConfirmComponent extends ComponentReference {
28
28
  kcContext =
29
- inject<Extract<KcContext, { pageId: "delete-account-confirm.ftl" }>>(KC_CONTEXT);
29
+ inject<Extract<KcContext, { pageId: 'delete-account-confirm.ftl' }>>(KC_CONTEXT);
30
30
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
31
31
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
32
32
  }