@keycloakify/angular 0.0.1-rc.3 → 0.0.1-rc.4

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 (316) hide show
  1. package/lib/tokens/use-default-css.token.d.ts +2 -0
  2. package/lib/tokens/use-default-css.token.js +3 -0
  3. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +3 -1
  4. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +106 -0
  5. package/login/components/field-errors/field-errors.component.d.ts +2 -2
  6. package/login/components/field-errors/{field-errors.component.mjs → field-errors.component.js} +4 -3
  7. package/login/components/group-label/group-label.component.d.ts +3 -1
  8. package/login/components/group-label/group-label.component.js +43 -0
  9. package/login/components/input-field-by-type/{input-field-by-type.component.mjs → input-field-by-type.component.js} +4 -3
  10. package/login/components/input-tag/input-tag.component.d.ts +4 -2
  11. package/login/components/input-tag/input-tag.component.js +90 -0
  12. package/login/components/input-tag-selects/input-tag-selects.component.d.ts +4 -2
  13. package/login/components/input-tag-selects/input-tag-selects.component.js +117 -0
  14. package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +3 -1
  15. package/login/components/logout-other-sessions/logout-other-sessions.component.js +32 -0
  16. package/login/components/password-wrapper/password-wrapper.component.d.ts +3 -1
  17. package/login/components/password-wrapper/password-wrapper.component.js +46 -0
  18. package/login/components/select-tag/select-tag.component.d.ts +4 -2
  19. package/login/components/select-tag/select-tag.component.js +82 -0
  20. package/login/components/textarea-tag/textarea-tag.component.js +49 -0
  21. package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +4 -2
  22. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +59 -0
  23. package/login/containers/template.component.js +72 -0
  24. package/login/pages/code/code.component.d.ts +4 -2
  25. package/login/pages/code/code.component.js +35 -0
  26. package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +4 -2
  27. package/login/pages/delete-account-confirm/delete-account-confirm.component.js +35 -0
  28. package/login/pages/delete-credential/delete-credential.component.d.ts +4 -2
  29. package/login/pages/delete-credential/delete-credential.component.js +40 -0
  30. package/login/pages/error/error.component.d.ts +4 -2
  31. package/login/pages/error/error.component.js +35 -0
  32. package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +4 -2
  33. package/login/pages/frontchannel-logout/frontchannel-logout.component.js +44 -0
  34. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +4 -2
  35. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +45 -0
  36. package/login/pages/info/info.component.d.ts +4 -8
  37. package/login/pages/info/info.component.js +49 -0
  38. package/login/pages/login/login.component.d.ts +4 -2
  39. package/login/pages/login/login.component.js +44 -0
  40. package/login/pages/login-config-totp/login-config-totp.component.d.ts +4 -2
  41. package/login/pages/login-config-totp/login-config-totp.component.js +42 -0
  42. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +4 -2
  43. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +40 -0
  44. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +4 -2
  45. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +40 -0
  46. package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +4 -2
  47. package/login/pages/login-idp-link-email/login-idp-link-email.component.js +40 -0
  48. package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +4 -2
  49. package/login/pages/login-oauth-grant/login-oauth-grant.component.js +40 -0
  50. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +4 -2
  51. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +40 -0
  52. package/login/pages/login-otp/login-otp.component.d.ts +4 -2
  53. package/login/pages/login-otp/login-otp.component.js +41 -0
  54. package/login/pages/login-page-expired/login-page-expired.component.d.ts +4 -2
  55. package/login/pages/login-page-expired/login-page-expired.component.js +39 -0
  56. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +5 -5
  57. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +84 -0
  58. package/login/pages/login-password/login-password.component.d.ts +4 -2
  59. package/login/pages/login-password/login-password.component.js +43 -0
  60. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +4 -2
  61. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +43 -0
  62. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +4 -2
  63. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +41 -0
  64. package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +4 -2
  65. package/login/pages/login-reset-otp/login-reset-otp.component.js +40 -0
  66. package/login/pages/login-reset-password/login-reset-password.component.d.ts +4 -2
  67. package/login/pages/login-reset-password/login-reset-password.component.js +41 -0
  68. package/login/pages/login-update-password/login-update-password.component.d.ts +4 -2
  69. package/login/pages/login-update-password/login-update-password.component.js +43 -0
  70. package/login/pages/login-update-profile/login-update-profile.component.d.ts +4 -2
  71. package/login/pages/login-update-profile/login-update-profile.component.js +42 -0
  72. package/login/pages/login-username/login-username.component.d.ts +4 -2
  73. package/login/pages/login-username/login-username.component.js +43 -0
  74. package/login/pages/login-verify-email/login-verify-email.component.d.ts +4 -2
  75. package/login/pages/login-verify-email/login-verify-email.component.js +40 -0
  76. package/login/pages/login-x509-info/login-x509-info.component.d.ts +4 -2
  77. package/login/pages/login-x509-info/login-x509-info.component.js +40 -0
  78. package/login/pages/logout-confirm/logout-confirm.component.d.ts +4 -2
  79. package/login/pages/logout-confirm/logout-confirm.component.js +40 -0
  80. package/login/pages/register/register.component.d.ts +4 -2
  81. package/login/pages/register/register.component.js +48 -0
  82. package/login/pages/saml-post-form/saml-post-form.component.d.ts +4 -2
  83. package/login/pages/saml-post-form/saml-post-form.component.js +52 -0
  84. package/login/pages/select-authenticator/select-authenticator.component.d.ts +4 -2
  85. package/login/pages/select-authenticator/select-authenticator.component.js +41 -0
  86. package/login/pages/terms/terms.component.d.ts +4 -2
  87. package/login/pages/terms/terms.component.js +40 -0
  88. package/login/pages/update-email/update-email.component.d.ts +4 -2
  89. package/login/pages/update-email/update-email.component.js +43 -0
  90. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +5 -5
  91. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +80 -0
  92. package/login/pages/webauthn-error/webauthn-error.component.d.ts +4 -2
  93. package/login/pages/webauthn-error/webauthn-error.component.js +49 -0
  94. package/login/pages/webauthn-register/webauthn-register.component.d.ts +5 -5
  95. package/login/pages/webauthn-register/webauthn-register.component.js +76 -0
  96. package/login/pipes/kc-sanitize.pipe.d.ts +3 -4
  97. package/login/pipes/kc-sanitize.pipe.js +29 -0
  98. package/login/pipes/{to-array.pipe.mjs → to-array.pipe.js} +1 -2
  99. package/login/providers/keycloakify-angular.providers.d.ts +16 -0
  100. package/login/providers/keycloakify-angular.providers.js +53 -0
  101. package/login/services/i18n.service.d.ts +6 -0
  102. package/{lib/services/i18n.service.mjs → login/services/i18n.service.js} +1 -1
  103. package/login/services/login-resource-injector.service.d.ts +1 -1
  104. package/login/services/login-resource-injector.service.js +68 -0
  105. package/login/services/user-profile-form.service.js +1019 -0
  106. package/{lib/providers/keycloakify-angular.providers.d.ts → login/tokens/classes.token.d.ts} +1 -24
  107. package/login/tokens/classes.token.js +3 -0
  108. package/login/tokens/i18n.token.d.ts +2 -0
  109. package/login/tokens/i18n.token.js +3 -0
  110. package/login/tokens/kc-context.token.d.ts +3 -0
  111. package/login/tokens/kc-context.token.js +3 -0
  112. package/login/tokens/make-user-confirm-password.token.d.ts +2 -0
  113. package/login/tokens/make-user-confirm-password.token.js +3 -0
  114. package/package.json +85 -104
  115. package/src/lib/tokens/use-default-css.token.ts +3 -0
  116. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +2 -2
  117. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +6 -4
  118. package/src/login/components/field-errors/field-errors.component.ts +5 -4
  119. package/src/login/components/group-label/group-label.component.html +2 -2
  120. package/src/login/components/group-label/group-label.component.ts +9 -6
  121. package/src/login/components/input-field-by-type/input-field-by-type.component.ts +3 -2
  122. package/src/login/components/input-tag/input-tag.component.html +1 -1
  123. package/src/login/components/input-tag/input-tag.component.ts +11 -9
  124. package/src/login/components/input-tag-selects/input-tag-selects.component.html +1 -1
  125. package/src/login/components/input-tag-selects/input-tag-selects.component.ts +9 -6
  126. package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +1 -1
  127. package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -5
  128. package/src/login/components/password-wrapper/password-wrapper.component.html +1 -1
  129. package/src/login/components/password-wrapper/password-wrapper.component.ts +8 -5
  130. package/src/login/components/select-tag/select-tag.component.html +2 -2
  131. package/src/login/components/select-tag/select-tag.component.ts +9 -6
  132. package/src/login/components/textarea-tag/textarea-tag.component.ts +3 -2
  133. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +3 -3
  134. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +14 -9
  135. package/src/login/containers/template.component.html +6 -6
  136. package/src/login/containers/template.component.ts +9 -7
  137. package/src/login/pages/code/code.component.html +4 -4
  138. package/src/login/pages/code/code.component.ts +11 -7
  139. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +8 -8
  140. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +12 -8
  141. package/src/login/pages/delete-credential/delete-credential.component.html +4 -4
  142. package/src/login/pages/delete-credential/delete-credential.component.ts +11 -7
  143. package/src/login/pages/error/error.component.html +2 -2
  144. package/src/login/pages/error/error.component.ts +11 -7
  145. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +4 -4
  146. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -7
  147. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +2 -2
  148. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +11 -7
  149. package/src/login/pages/info/info.component.html +4 -4
  150. package/src/login/pages/info/info.component.ts +12 -17
  151. package/src/login/pages/login/login.component.html +13 -13
  152. package/src/login/pages/login/login.component.ts +11 -7
  153. package/src/login/pages/login-config-totp/login-config-totp.component.html +24 -24
  154. package/src/login/pages/login-config-totp/login-config-totp.component.ts +11 -9
  155. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +3 -3
  156. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -7
  157. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +4 -4
  158. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -7
  159. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +8 -8
  160. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -7
  161. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +9 -9
  162. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +11 -8
  163. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +3 -3
  164. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -7
  165. package/src/login/pages/login-otp/login-otp.component.html +3 -3
  166. package/src/login/pages/login-otp/login-otp.component.ts +11 -7
  167. package/src/login/pages/login-page-expired/login-page-expired.component.html +5 -5
  168. package/src/login/pages/login-page-expired/login-page-expired.component.ts +11 -7
  169. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +9 -9
  170. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +15 -15
  171. package/src/login/pages/login-password/login-password.component.html +5 -5
  172. package/src/login/pages/login-password/login-password.component.ts +11 -7
  173. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +11 -11
  174. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +12 -8
  175. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +3 -3
  176. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +12 -8
  177. package/src/login/pages/login-reset-otp/login-reset-otp.component.html +3 -3
  178. package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -8
  179. package/src/login/pages/login-reset-password/login-reset-password.component.html +8 -8
  180. package/src/login/pages/login-reset-password/login-reset-password.component.ts +12 -8
  181. package/src/login/pages/login-update-password/login-update-password.component.html +5 -5
  182. package/src/login/pages/login-update-password/login-update-password.component.ts +12 -8
  183. package/src/login/pages/login-update-profile/login-update-profile.component.html +3 -3
  184. package/src/login/pages/login-update-profile/login-update-profile.component.ts +12 -8
  185. package/src/login/pages/login-username/login-username.component.html +10 -10
  186. package/src/login/pages/login-username/login-username.component.ts +11 -7
  187. package/src/login/pages/login-verify-email/login-verify-email.component.html +5 -5
  188. package/src/login/pages/login-verify-email/login-verify-email.component.ts +12 -8
  189. package/src/login/pages/login-x509-info/login-x509-info.component.html +6 -6
  190. package/src/login/pages/login-x509-info/login-x509-info.component.ts +12 -8
  191. package/src/login/pages/logout-confirm/logout-confirm.component.html +4 -4
  192. package/src/login/pages/logout-confirm/logout-confirm.component.ts +12 -8
  193. package/src/login/pages/register/register.component.html +7 -7
  194. package/src/login/pages/register/register.component.ts +11 -17
  195. package/src/login/pages/saml-post-form/saml-post-form.component.html +4 -4
  196. package/src/login/pages/saml-post-form/saml-post-form.component.ts +11 -7
  197. package/src/login/pages/select-authenticator/select-authenticator.component.html +3 -3
  198. package/src/login/pages/select-authenticator/select-authenticator.component.ts +12 -9
  199. package/src/login/pages/terms/terms.component.html +4 -4
  200. package/src/login/pages/terms/terms.component.ts +12 -8
  201. package/src/login/pages/update-email/update-email.component.html +3 -3
  202. package/src/login/pages/update-email/update-email.component.ts +12 -8
  203. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +8 -8
  204. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +15 -15
  205. package/src/login/pages/webauthn-error/webauthn-error.component.html +3 -3
  206. package/src/login/pages/webauthn-error/webauthn-error.component.ts +12 -8
  207. package/src/login/pages/webauthn-register/webauthn-register.component.html +3 -3
  208. package/src/login/pages/webauthn-register/webauthn-register.component.ts +17 -15
  209. package/src/login/pipes/kc-sanitize.pipe.ts +9 -11
  210. package/src/login/pipes/to-array.pipe.ts +0 -1
  211. package/src/login/providers/keycloakify-angular.providers.ts +68 -0
  212. package/src/{lib → login}/services/i18n.service.ts +3 -2
  213. package/src/login/services/login-resource-injector.service.ts +4 -3
  214. package/src/login/services/user-profile-form.service.ts +5 -7
  215. package/src/login/tokens/classes.token.ts +6 -0
  216. package/src/login/tokens/i18n.token.ts +3 -0
  217. package/src/login/tokens/kc-context.token.ts +4 -0
  218. package/src/login/tokens/make-user-confirm-password.token.ts +5 -0
  219. package/src/tsconfig.json +6 -0
  220. package/lib/i18n.d.ts +0 -4
  221. package/lib/i18n.mjs +0 -6
  222. package/lib/models/index.d.ts +0 -1
  223. package/lib/models/index.mjs +0 -2
  224. package/lib/providers/keycloakify-angular.providers.mjs +0 -54
  225. package/lib/public-api.d.ts +0 -10
  226. package/lib/public-api.mjs +0 -4
  227. package/lib/services/i18n.service.d.ts +0 -6
  228. package/lib/services/index.d.ts +0 -2
  229. package/lib/services/index.mjs +0 -3
  230. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.mjs +0 -105
  231. package/login/components/group-label/group-label.component.mjs +0 -41
  232. package/login/components/hello-world/hello-world.component.d.ts +0 -5
  233. package/login/components/hello-world/hello-world.component.mjs +0 -11
  234. package/login/components/index.d.ts +0 -11
  235. package/login/components/index.mjs +0 -12
  236. package/login/components/input-tag/input-tag.component.mjs +0 -89
  237. package/login/components/input-tag-selects/input-tag-selects.component.mjs +0 -115
  238. package/login/components/logout-other-sessions/logout-other-sessions.component.mjs +0 -30
  239. package/login/components/password-wrapper/password-wrapper.component.mjs +0 -44
  240. package/login/components/select-tag/select-tag.component.mjs +0 -80
  241. package/login/components/textarea-tag/textarea-tag.component.mjs +0 -48
  242. package/login/components/user-profile-form-fields/user-profile-form-fields.component.mjs +0 -55
  243. package/login/containers/template.component.mjs +0 -70
  244. package/login/directives/index.d.ts +0 -2
  245. package/login/directives/index.mjs +0 -3
  246. package/login/pages/code/code.component.mjs +0 -32
  247. package/login/pages/delete-account-confirm/delete-account-confirm.component.mjs +0 -32
  248. package/login/pages/delete-credential/delete-credential.component.mjs +0 -37
  249. package/login/pages/error/error.component.mjs +0 -32
  250. package/login/pages/frontchannel-logout/frontchannel-logout.component.mjs +0 -41
  251. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.mjs +0 -42
  252. package/login/pages/info/info.component.mjs +0 -58
  253. package/login/pages/login/login.component.mjs +0 -41
  254. package/login/pages/login-config-totp/login-config-totp.component.mjs +0 -40
  255. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.mjs +0 -37
  256. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.mjs +0 -37
  257. package/login/pages/login-idp-link-email/login-idp-link-email.component.mjs +0 -37
  258. package/login/pages/login-oauth-grant/login-oauth-grant.component.mjs +0 -38
  259. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.mjs +0 -37
  260. package/login/pages/login-otp/login-otp.component.mjs +0 -38
  261. package/login/pages/login-page-expired/login-page-expired.component.mjs +0 -36
  262. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.mjs +0 -85
  263. package/login/pages/login-password/login-password.component.mjs +0 -40
  264. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.mjs +0 -40
  265. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.mjs +0 -38
  266. package/login/pages/login-reset-otp/login-reset-otp.component.mjs +0 -37
  267. package/login/pages/login-reset-password/login-reset-password.component.mjs +0 -38
  268. package/login/pages/login-update-password/login-update-password.component.mjs +0 -40
  269. package/login/pages/login-update-profile/login-update-profile.component.mjs +0 -39
  270. package/login/pages/login-username/login-username.component.mjs +0 -40
  271. package/login/pages/login-verify-email/login-verify-email.component.mjs +0 -37
  272. package/login/pages/login-x509-info/login-x509-info.component.mjs +0 -37
  273. package/login/pages/logout-confirm/logout-confirm.component.mjs +0 -37
  274. package/login/pages/register/register.component.mjs +0 -55
  275. package/login/pages/saml-post-form/saml-post-form.component.mjs +0 -49
  276. package/login/pages/select-authenticator/select-authenticator.component.mjs +0 -39
  277. package/login/pages/terms/terms.component.mjs +0 -37
  278. package/login/pages/update-email/update-email.component.mjs +0 -40
  279. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +0 -81
  280. package/login/pages/webauthn-error/webauthn-error.component.mjs +0 -46
  281. package/login/pages/webauthn-register/webauthn-register.component.mjs +0 -76
  282. package/login/pipes/advanced-msg-str.pipe.d.ts +0 -8
  283. package/login/pipes/advanced-msg-str.pipe.mjs +0 -19
  284. package/login/pipes/index.d.ts +0 -6
  285. package/login/pipes/index.mjs +0 -7
  286. package/login/pipes/kc-sanitize.pipe.mjs +0 -34
  287. package/login/pipes/msg-str.pipe.d.ts +0 -9
  288. package/login/pipes/msg-str.pipe.mjs +0 -19
  289. package/login/services/index.d.ts +0 -2
  290. package/login/services/index.mjs +0 -3
  291. package/login/services/login-resource-injector.service.mjs +0 -68
  292. package/login/services/user-profile-form.service.mjs +0 -1017
  293. package/src/lib/i18n.ts +0 -9
  294. package/src/lib/models/index.ts +0 -1
  295. package/src/lib/providers/keycloakify-angular.providers.ts +0 -92
  296. package/src/lib/public-api.ts +0 -12
  297. package/src/lib/services/index.ts +0 -2
  298. package/src/login/components/hello-world/hello-world.component.css +0 -0
  299. package/src/login/components/hello-world/hello-world.component.html +0 -1
  300. package/src/login/components/hello-world/hello-world.component.ts +0 -10
  301. package/src/login/components/index.ts +0 -11
  302. package/src/login/directives/index.ts +0 -2
  303. package/src/login/pipes/advanced-msg-str.pipe.ts +0 -13
  304. package/src/login/pipes/index.ts +0 -6
  305. package/src/login/pipes/msg-str.pipe.ts +0 -14
  306. package/src/login/services/index.ts +0 -2
  307. /package/lib/models/{script.model.mjs → script.model.js} +0 -0
  308. /package/lib/services/{resource-injector.service.mjs → resource-injector.service.js} +0 -0
  309. /package/login/{DefaultPage.mjs → DefaultPage.js} +0 -0
  310. /package/login/{KcContext.mjs → KcContext.js} +0 -0
  311. /package/login/classes/{component-reference.class.mjs → component-reference.class.js} +0 -0
  312. /package/login/directives/{attributes.directive.mjs → attributes.directive.js} +0 -0
  313. /package/login/directives/{kc-class.directive.mjs → kc-class.directive.js} +0 -0
  314. /package/login/{i18n.mjs → i18n.js} +0 -0
  315. /package/login/pipes/{input-type.pipe.mjs → input-type.pipe.js} +0 -0
  316. /package/login/pipes/{to-number.pipe.mjs → to-number.pipe.js} +0 -0
@@ -13,17 +13,17 @@
13
13
  [documentTitle]="documentTitle()"
14
14
  >
15
15
  <ng-container headerNode>
16
- {{ 'doLogIn' | msgStr }}
16
+ {{ i18n.msgStr('doLogIn') }}
17
17
  </ng-container>
18
18
  <ng-container infoNode>
19
19
  <div id="kc-registration">
20
20
  <span>
21
- {{ 'noAccount' | msgStr }}
21
+ {{ i18n.msgStr('noAccount') }}
22
22
  <a
23
23
  tabindex="6"
24
24
  [href]="url?.registrationUrl"
25
25
  >
26
- {{ 'doRegister' | msgStr }}
26
+ {{ i18n.msgStr('doRegister') }}
27
27
  </a>
28
28
  </span>
29
29
  </div>
@@ -35,7 +35,7 @@
35
35
  [kcClass]="'kcFormSocialAccountSectionClass'"
36
36
  >
37
37
  <hr />
38
- <h2>{{ 'identity-provider-login-label' | msgStr }}</h2>
38
+ <h2>{{ i18n.msgStr('identity-provider-login-label') }}</h2>
39
39
  <ul
40
40
  [kcClass]="{
41
41
  kcFormSocialAccountListClass: true,
@@ -91,11 +91,11 @@
91
91
  [kcClass]="'kcLabelClass'"
92
92
  >
93
93
  @if (!realm?.loginWithEmailAllowed) {
94
- {{ 'username' | msgStr }}
94
+ {{ i18n.msgStr('username') }}
95
95
  } @else if (!realm?.registrationEmailAsUsername) {
96
- {{ 'usernameOrEmail' | msgStr }}
96
+ {{ i18n.msgStr('usernameOrEmail') }}
97
97
  } @else {
98
- {{ 'email' | msgStr }}
98
+ {{ i18n.msgStr('email') }}
99
99
  }
100
100
  </label>
101
101
  <input
@@ -114,7 +114,7 @@
114
114
  id="input-error"
115
115
  [kcClass]="'kcInputErrorMessageClass'"
116
116
  aria-live="polite"
117
- [innerHTML]="messagesPerField?.getFirstError('username') | kcSanitize: 'html'"
117
+ [innerHTML]="messagesPerField.getFirstError('username') | kcSanitize: 'html'"
118
118
  >
119
119
  </span>
120
120
  }
@@ -134,7 +134,7 @@
134
134
  type="checkbox"
135
135
  [defaultChecked]="!!login?.rememberMe"
136
136
  />
137
- {{ 'rememberMe' | msgStr }}
137
+ {{ i18n.msgStr('rememberMe') }}
138
138
  </label>
139
139
  </div>
140
140
  }
@@ -150,7 +150,7 @@
150
150
  name="login"
151
151
  id="kc-login"
152
152
  type="submit"
153
- [value]="'doLogIn' | msgStr"
153
+ [value]="i18n.msgStr('doLogIn')"
154
154
  />
155
155
  </div>
156
156
  </form>
@@ -1,20 +1,23 @@
1
1
  import { AsyncPipe, NgClass } from '@angular/common';
2
2
  import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal } from '@angular/core';
3
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
4
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
5
- import { KcContext } from 'keycloakify/login/KcContext';
3
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
6
4
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
7
5
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
8
6
  import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
9
7
  import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
10
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
8
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
9
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
10
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
11
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
12
+ import { I18n } from '../../i18n';
13
+ import { KcContext } from '../../KcContext';
11
14
 
12
15
  @Component({
13
16
  selector: 'kc-root',
14
17
  templateUrl: './login-username.component.html',
15
18
  standalone: true,
16
19
  changeDetection: ChangeDetectionStrategy.OnPush,
17
- imports: [KcClassDirective, AsyncPipe, KcSanitizePipe, NgClass, TemplateComponent, MsgStrPipe],
20
+ imports: [KcClassDirective, AsyncPipe, KcSanitizePipe, NgClass, TemplateComponent],
18
21
  providers: [
19
22
  {
20
23
  provide: ComponentReference,
@@ -23,12 +26,13 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
23
26
  ]
24
27
  })
25
28
  export class LoginUsernameComponent extends ComponentReference {
26
- kcContext = inject<Extract<KcContext, { pageId: 'login-username.ftl' }>>(KC_CONTEXT);
29
+ kcContext = inject<Extract<KcContext, { pageId: 'login-username.ftl' }>>(KC_LOGIN_CONTEXT);
27
30
  displayRequiredFields = input(false);
28
31
  documentTitle = input<string>();
29
32
  bodyClassName = input<string>();
33
+ i18n = inject<I18n>(LOGIN_I18N);
30
34
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
31
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
35
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
32
36
  isLoginButtonDisabled = signal(false);
33
37
  displayInfo: boolean = !!this.kcContext?.realm?.password && !!this.kcContext?.realm?.registrationAllowed && !this.kcContext?.registrationDisabled;
34
38
  displayMessage: boolean = !this.kcContext?.messagesPerField?.existsError('username');
@@ -8,20 +8,20 @@
8
8
  [documentTitle]="documentTitle()"
9
9
  >
10
10
  <ng-container headerNode>
11
- {{ 'emailVerifyTitle' | msgStr }}
11
+ {{ i18n.msgStr('emailVerifyTitle') }}
12
12
  </ng-container>
13
13
  <ng-container infoNode>
14
14
  <p class="instruction">
15
- {{ 'emailVerifyInstruction2' | msgStr }}
15
+ {{ i18n.msgStr('emailVerifyInstruction2') }}
16
16
  <br />
17
- <a [href]="url.loginAction">{{ 'doClickHere' | msgStr }}</a>
17
+ <a [href]="url.loginAction">{{ i18n.msgStr('doClickHere') }}</a>
18
18
  &nbsp;
19
- {{ 'emailVerifyInstruction3' | msgStr }}
19
+ {{ i18n.msgStr('emailVerifyInstruction3') }}
20
20
  </p>
21
21
  </ng-container>
22
22
  <ng-container content>
23
23
  <p class="instruction">
24
- {{ 'emailVerifyInstruction1' | msgStr: user?.email ?? '' }}
24
+ {{ i18n.msgStr('emailVerifyInstruction1', user?.email ?? '') }}
25
25
  </p></ng-container
26
26
  >
27
27
  </kc-login-template>
@@ -1,15 +1,18 @@
1
1
  import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
4
- import { KcContext } from 'keycloakify/login/KcContext';
2
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
5
3
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
4
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
7
- import { KcClassDirective } from '@keycloakify/angular/login/directives';
8
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
5
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
6
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
7
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
8
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
9
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
10
+ import { I18n } from '../../i18n';
11
+ import { KcContext } from '../../KcContext';
9
12
 
10
13
  @Component({
11
14
  standalone: true,
12
- imports: [KcClassDirective, TemplateComponent, MsgStrPipe],
15
+ imports: [KcClassDirective, TemplateComponent],
13
16
  selector: 'kc-root',
14
17
  templateUrl: 'login-verify-email.component.html',
15
18
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -21,9 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
21
24
  ]
22
25
  })
23
26
  export class LoginVerifyEmailComponent extends ComponentReference {
24
- kcContext = inject<Extract<KcContext, { pageId: 'login-verify-email.ftl' }>>(KC_CONTEXT);
27
+ kcContext = inject<Extract<KcContext, { pageId: 'login-verify-email.ftl' }>>(KC_LOGIN_CONTEXT);
28
+ i18n = inject<I18n>(LOGIN_I18N);
25
29
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
26
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
30
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
27
31
  displayRequiredFields = input(false);
28
32
  documentTitle = input<string>();
29
33
  bodyClassName = input<string>();
@@ -8,7 +8,7 @@
8
8
  [documentTitle]="documentTitle()"
9
9
  >
10
10
  <ng-container headerNode>
11
- {{ 'doLogIn' | msgStr }}
11
+ {{ i18n.msgStr('doLogIn') }}
12
12
  </ng-container>
13
13
  <ng-container content>
14
14
  <form
@@ -23,7 +23,7 @@
23
23
  for="certificate_subjectDN"
24
24
  [kcClass]="'kcLabelClass'"
25
25
  >
26
- {{ 'clientCertificate' | msgStr }}
26
+ {{ i18n.msgStr('clientCertificate') }}
27
27
  </label>
28
28
  </div>
29
29
  @if (x509.formData.subjectDN) {
@@ -41,7 +41,7 @@
41
41
  id="certificate_subjectDN"
42
42
  [kcClass]="'kcLabelClass'"
43
43
  >
44
- {{ 'noCertificate' | msgStr }}
44
+ {{ i18n.msgStr('noCertificate') }}
45
45
  </label>
46
46
  </div>
47
47
  }
@@ -53,7 +53,7 @@
53
53
  for="username"
54
54
  [kcClass]="'kcLabelClass'"
55
55
  >
56
- {{ 'doX509Login' | msgStr }}
56
+ {{ i18n.msgStr('doX509Login') }}
57
57
  </label>
58
58
  </div>
59
59
  <div [kcClass]="'kcLabelWrapperClass'">
@@ -83,7 +83,7 @@
83
83
  name="login"
84
84
  id="kc-login"
85
85
  type="submit"
86
- [value]="'doContinue' | msgStr"
86
+ [value]="i18n.msgStr('doContinue')"
87
87
  />
88
88
  @if (x509.formData.isUserEnabled) {
89
89
  <input
@@ -91,7 +91,7 @@
91
91
  name="cancel"
92
92
  id="kc-cancel"
93
93
  type="submit"
94
- [value]="'doIgnore' | msgStr"
94
+ [value]="i18n.msgStr('doIgnore')"
95
95
  />
96
96
  }
97
97
  </div>
@@ -1,15 +1,18 @@
1
1
  import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
4
- import { KcContext } from 'keycloakify/login/KcContext';
2
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
5
3
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
4
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
7
- import { KcClassDirective } from '@keycloakify/angular/login/directives';
8
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
5
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
6
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
7
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
8
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
9
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
10
+ import { I18n } from '../../i18n';
11
+ import { KcContext } from '../../KcContext';
9
12
 
10
13
  @Component({
11
14
  standalone: true,
12
- imports: [TemplateComponent, MsgStrPipe, KcClassDirective],
15
+ imports: [TemplateComponent, KcClassDirective],
13
16
  selector: 'kc-root',
14
17
  templateUrl: 'login-x509-info.component.html',
15
18
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -21,9 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
21
24
  ]
22
25
  })
23
26
  export class LoginX509InfoComponent extends ComponentReference {
24
- kcContext = inject<Extract<KcContext, { pageId: 'login-x509-info.ftl' }>>(KC_CONTEXT);
27
+ kcContext = inject<Extract<KcContext, { pageId: 'login-x509-info.ftl' }>>(KC_LOGIN_CONTEXT);
28
+ i18n = inject<I18n>(LOGIN_I18N);
25
29
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
26
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
30
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
27
31
  displayRequiredFields = input(false);
28
32
  documentTitle = input<string>();
29
33
  bodyClassName = input<string>();
@@ -10,14 +10,14 @@
10
10
  [documentTitle]="documentTitle()"
11
11
  >
12
12
  <ng-container headerNode>
13
- {{ 'logoutConfirmTitle' | msgStr }}
13
+ {{ i18n.msgStr('logoutConfirmTitle') }}
14
14
  </ng-container>
15
15
  <ng-container content>
16
16
  <div
17
17
  id="kc-logout-confirm"
18
18
  class="content-area"
19
19
  >
20
- <p class="instruction">{{ 'logoutConfirmHeader' | msgStr }}</p>
20
+ <p class="instruction">{{ i18n.msgStr('logoutConfirmHeader') }}</p>
21
21
  <form
22
22
  class="form-actions"
23
23
  [action]="url.logoutConfirmAction"
@@ -42,7 +42,7 @@
42
42
  name="confirmLogout"
43
43
  id="kc-logout"
44
44
  type="submit"
45
- [value]="'doLogout' | msgStr"
45
+ [value]="i18n.msgStr('doLogout')"
46
46
  />
47
47
  </div>
48
48
  </div>
@@ -50,7 +50,7 @@
50
50
  <div id="kc-info-message">
51
51
  @if (!logoutConfirm.skipLink && client.baseUrl) {
52
52
  <p>
53
- <a [href]="client.baseUrl">{{ 'backToApplication' | msgStr }}</a>
53
+ <a [href]="client.baseUrl">{{ i18n.msgStr('backToApplication') }}</a>
54
54
  </p>
55
55
  }
56
56
  </div>
@@ -1,15 +1,18 @@
1
1
  import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
2
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
4
- import { KcContext } from 'keycloakify/login/KcContext';
2
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
5
3
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
4
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
7
- import { KcClassDirective } from '@keycloakify/angular/login/directives';
8
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
5
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
6
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
7
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
8
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
9
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
10
+ import { I18n } from '../../i18n';
11
+ import { KcContext } from '../../KcContext';
9
12
 
10
13
  @Component({
11
14
  standalone: true,
12
- imports: [MsgStrPipe, TemplateComponent, KcClassDirective],
15
+ imports: [TemplateComponent, KcClassDirective],
13
16
  selector: 'kc-root',
14
17
  templateUrl: 'logout-confirm.component.html',
15
18
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -21,9 +24,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
21
24
  ]
22
25
  })
23
26
  export class LogoutConfirmComponent extends ComponentReference {
24
- kcContext = inject<Extract<KcContext, { pageId: 'logout-confirm.ftl' }>>(KC_CONTEXT);
27
+ kcContext = inject<Extract<KcContext, { pageId: 'logout-confirm.ftl' }>>(KC_LOGIN_CONTEXT);
28
+ i18n = inject<I18n>(LOGIN_I18N);
25
29
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
26
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
30
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
27
31
  displayRequiredFields = input(false);
28
32
  documentTitle = input<string>();
29
33
  bodyClassName = input<string>();
@@ -15,7 +15,7 @@
15
15
  [documentTitle]="documentTitle()"
16
16
  >
17
17
  <ng-container headerNode>
18
- {{ messageHeader ?? 'registerTitle' | advancedMsgStr }}
18
+ {{ messageHeader ?? i18n.advancedMsgStr('registerTitle') }}
19
19
  </ng-container>
20
20
  <ng-container content>
21
21
  <form
@@ -28,9 +28,9 @@
28
28
  @if (termsAcceptanceRequired) {
29
29
  <div className="form-group">
30
30
  <div [kcClass]="'kcInputWrapperClass'">
31
- {{ 'termsTitle' | msgStr }}
31
+ {{ i18n.msgStr('termsTitle') }}
32
32
  <div id="kc-registration-terms-text">
33
- {{ 'termsText' | msgStr }}
33
+ {{ i18n.msgStr('termsText') }}
34
34
  </div>
35
35
  </div>
36
36
  </div>
@@ -49,7 +49,7 @@
49
49
  for="termsAccepted"
50
50
  [kcClass]="'kcLabelClass'"
51
51
  >
52
- {{ 'acceptTerms' | msgStr }}
52
+ {{ i18n.msgStr('acceptTerms') }}
53
53
  </label>
54
54
  </div>
55
55
  @if (messagesPerField.existsError('termsAccepted')) {
@@ -86,7 +86,7 @@
86
86
  <span>
87
87
  <a
88
88
  [href]="url.loginUrl"
89
- [innerHTML]="'backToLogin' | msgStr | kcSanitize: 'html'"
89
+ [innerHTML]="i18n.msgStr('backToLogin') | kcSanitize: 'html'"
90
90
  ></a>
91
91
  </span>
92
92
  </div>
@@ -104,7 +104,7 @@
104
104
  [attr.data-action]="recaptchaAction"
105
105
  type="submit"
106
106
  >
107
- {{ 'doRegister' | msgStr }}
107
+ {{ i18n.msgStr('doRegister') }}
108
108
  </button>
109
109
  </div>
110
110
  } @else {
@@ -116,7 +116,7 @@
116
116
  [disabled]="!isFormSubmittable || (termsAcceptanceRequired && !areTermsAccepted)"
117
117
  [kcClass]="['kcButtonClass', 'kcButtonPrimaryClass', 'kcButtonBlockClass', 'kcButtonLargeClass']"
118
118
  type="submit"
119
- [value]="'doRegister' | msgStr"
119
+ [value]="i18n.msgStr('doRegister')"
120
120
  />
121
121
  </div>
122
122
  }
@@ -1,31 +1,24 @@
1
1
  import { AsyncPipe, NgClass } from '@angular/common';
2
2
  import { ChangeDetectionStrategy, Component, forwardRef, inject, input, signal } from '@angular/core';
3
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
4
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
5
- import { KcContext } from 'keycloakify/login/KcContext';
3
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
6
4
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
7
5
  import { UserProfileFormFieldsComponent } from '@keycloakify/angular/login/components/user-profile-form-fields/user-profile-form-fields.component';
8
6
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
9
7
  import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
10
- import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
11
8
  import { KcSanitizePipe } from '@keycloakify/angular/login/pipes/kc-sanitize.pipe';
12
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
9
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
10
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
11
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
12
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
13
+ import { I18n } from '../../i18n';
14
+ import { KcContext } from '../../KcContext';
13
15
 
14
16
  @Component({
15
17
  selector: 'kc-root',
16
18
  templateUrl: './register.component.html',
17
19
  standalone: true,
18
20
  changeDetection: ChangeDetectionStrategy.OnPush,
19
- imports: [
20
- KcClassDirective,
21
- AsyncPipe,
22
- KcSanitizePipe,
23
- NgClass,
24
- TemplateComponent,
25
- UserProfileFormFieldsComponent,
26
- MsgStrPipe,
27
- AdvancedMsgStrPipe
28
- ],
21
+ imports: [KcClassDirective, AsyncPipe, KcSanitizePipe, NgClass, TemplateComponent, UserProfileFormFieldsComponent],
29
22
  providers: [
30
23
  {
31
24
  provide: ComponentReference,
@@ -34,12 +27,13 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
34
27
  ]
35
28
  })
36
29
  export class RegisterComponent extends ComponentReference {
37
- kcContext = inject<Extract<KcContext, { pageId: 'register.ftl' }>>(KC_CONTEXT);
30
+ kcContext = inject<Extract<KcContext, { pageId: 'register.ftl' }>>(KC_LOGIN_CONTEXT);
38
31
  displayRequiredFields = input(false);
39
32
  documentTitle = input<string>();
40
33
  bodyClassName = input<string>();
34
+ i18n = inject<I18n>(LOGIN_I18N);
41
35
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
42
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
36
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
43
37
  isFormSubmittable = signal(false);
44
38
  areTermsAccepted = signal(false);
45
39
  displayInfo: boolean = false;
@@ -7,10 +7,10 @@
7
7
  [documentTitle]="documentTitle()"
8
8
  >
9
9
  <ng-container headerNode>
10
- {{ 'saml.post-form.title' | msgStr }}
10
+ {{ i18n.msgStr('saml.post-form.title') }}
11
11
  </ng-container>
12
12
  <ng-container content>
13
- <p>{{ 'saml.post-form.message' | msgStr }}</p>
13
+ <p>{{ i18n.msgStr('saml.post-form.message') }}</p>
14
14
  <form
15
15
  name="saml-post-binding"
16
16
  method="post"
@@ -39,10 +39,10 @@
39
39
  />
40
40
  }
41
41
  <noscript>
42
- <p>{{ 'saml.post-form.js-disabled' | msgStr }}</p>
42
+ <p>{{ i18n.msgStr('saml.post-form.js-disabled') }}</p>
43
43
  <input
44
44
  type="submit"
45
- value="{{ 'doContinue' | msgStr }}"
45
+ [value]="i18n.msgStr('doContinue')"
46
46
  />
47
47
  </noscript>
48
48
  </form>
@@ -1,14 +1,17 @@
1
1
  import { AfterViewInit, ChangeDetectionStrategy, Component, forwardRef, inject, input, ViewChild } from '@angular/core';
2
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
4
- import { KcContext } from 'keycloakify/login/KcContext';
2
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
5
3
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
4
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
7
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
5
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
6
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
7
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
8
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
9
+ import { I18n } from '../../i18n';
10
+ import { KcContext } from '../../KcContext';
8
11
 
9
12
  @Component({
10
13
  standalone: true,
11
- imports: [TemplateComponent, MsgStrPipe],
14
+ imports: [TemplateComponent],
12
15
  selector: 'kc-root',
13
16
  templateUrl: 'saml-post-form.component.html',
14
17
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -20,9 +23,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
20
23
  ]
21
24
  })
22
25
  export class SamlPostFormComponent extends ComponentReference implements AfterViewInit {
23
- kcContext = inject<Extract<KcContext, { pageId: 'saml-post-form.ftl' }>>(KC_CONTEXT);
26
+ kcContext = inject<Extract<KcContext, { pageId: 'saml-post-form.ftl' }>>(KC_LOGIN_CONTEXT);
27
+ i18n = inject<I18n>(LOGIN_I18N);
24
28
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
25
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
29
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
26
30
  displayRequiredFields = input(false);
27
31
  documentTitle = input<string>();
28
32
  bodyClassName = input<string>();
@@ -8,7 +8,7 @@
8
8
  [documentTitle]="documentTitle()"
9
9
  >
10
10
  <ng-container headerNode>
11
- {{ 'loginChooseAuthenticator' | msgStr }}
11
+ {{ i18n.msgStr('loginChooseAuthenticator') }}
12
12
  </ng-container>
13
13
  <ng-container content>
14
14
  <form
@@ -30,10 +30,10 @@
30
30
  </div>
31
31
  <div [kcClass]="'kcSelectAuthListItemBodyClass'">
32
32
  <div [kcClass]="'kcSelectAuthListItemHeadingClass'">
33
- {{ authenticationSelection.displayName | advancedMsgStr }}
33
+ {{ i18n.advancedMsgStr(authenticationSelection.displayName) }}
34
34
  </div>
35
35
  <div [kcClass]="'kcSelectAuthListItemDescriptionClass'">
36
- {{ authenticationSelection.helpText | advancedMsgStr }}
36
+ {{ i18n.advancedMsgStr(authenticationSelection.helpText) }}
37
37
  </div>
38
38
  </div>
39
39
  <div [kcClass]="'kcSelectAuthListItemFillClass'"></div>
@@ -1,17 +1,19 @@
1
1
  import { NgClass } from '@angular/common';
2
2
  import { ChangeDetectionStrategy, Component, forwardRef, inject, input } from '@angular/core';
3
- import { CLASSES, KC_CONTEXT, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
4
- import { ClassKey } from 'keycloakify/login/lib/kcClsx';
5
- import { KcContext } from 'keycloakify/login/KcContext';
3
+ import { USE_DEFAULT_CSS } from '@keycloakify/angular/lib/tokens/use-default-css.token';
6
4
  import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
7
5
  import { TemplateComponent } from '@keycloakify/angular/login/containers/template.component';
8
- import { KcClassDirective } from '@keycloakify/angular/login/directives';
9
- import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes';
10
- import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
6
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
7
+ import { LOGIN_CLASSES } from '@keycloakify/angular/login/tokens/classes.token';
8
+ import { LOGIN_I18N } from '@keycloakify/angular/login/tokens/i18n.token';
9
+ import { KC_LOGIN_CONTEXT } from '@keycloakify/angular/login/tokens/kc-context.token';
10
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
11
+ import { I18n } from '../../i18n';
12
+ import { KcContext } from '../../KcContext';
11
13
 
12
14
  @Component({
13
15
  standalone: true,
14
- imports: [TemplateComponent, MsgStrPipe, AdvancedMsgStrPipe, KcClassDirective, NgClass],
16
+ imports: [TemplateComponent, KcClassDirective, NgClass],
15
17
  selector: 'kc-root',
16
18
  templateUrl: 'select-authenticator.component.html',
17
19
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -23,9 +25,10 @@ import { MsgStrPipe } from '@keycloakify/angular/login/pipes/msg-str.pipe';
23
25
  ]
24
26
  })
25
27
  export class SelectAuthenticatorComponent extends ComponentReference {
26
- kcContext = inject<Extract<KcContext, { pageId: 'select-authenticator.ftl' }>>(KC_CONTEXT);
28
+ kcContext = inject<Extract<KcContext, { pageId: 'select-authenticator.ftl' }>>(KC_LOGIN_CONTEXT);
29
+ i18n = inject<I18n>(LOGIN_I18N);
27
30
  override doUseDefaultCss = inject<boolean>(USE_DEFAULT_CSS);
28
- override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
31
+ override classes = inject<Partial<Record<ClassKey, string>>>(LOGIN_CLASSES);
29
32
  displayRequiredFields = input(false);
30
33
  documentTitle = input<string>();
31
34
  bodyClassName = input<string>();
@@ -7,10 +7,10 @@
7
7
  [documentTitle]="documentTitle()"
8
8
  >
9
9
  <ng-container headerNode>
10
- {{ 'termsTitle' | msgStr }}
10
+ {{ i18n.msgStr('termsTitle') }}
11
11
  </ng-container>
12
12
  <ng-container content>
13
- <div id="kc-terms-text">{{ 'termsText' | msgStr }}</div>
13
+ <div id="kc-terms-text">{{ i18n.msgStr('termsText') }}</div>
14
14
  <form
15
15
  class="form-actions"
16
16
  [action]="url.loginAction"
@@ -21,14 +21,14 @@
21
21
  name="accept"
22
22
  id="kc-accept"
23
23
  type="submit"
24
- [value]="'doAccept' | msgStr"
24
+ [value]="i18n.msgStr('doAccept')"
25
25
  />
26
26
  <input
27
27
  [kcClass]="['kcButtonClass', 'kcButtonDefaultClass', 'kcButtonLargeClass']"
28
28
  name="cancel"
29
29
  id="kc-decline"
30
30
  type="submit"
31
- [value]="'doDecline' | msgStr"
31
+ [value]="i18n.msgStr('doDecline')"
32
32
  />
33
33
  </form>
34
34
  <div className="clearfix"></div>