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

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 (472) 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 +45 -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 +55 -0
  48. package/login/containers/template.component.d.ts +11 -8
  49. package/login/containers/template.component.mjs +70 -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 +42 -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 +41 -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 +40 -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 +40 -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 +40 -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 +40 -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 +39 -0
  106. package/login/pages/login-username/login-username.component.d.ts +6 -3
  107. package/login/pages/login-username/login-username.component.mjs +40 -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 +39 -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 +40 -0
  124. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +8 -5
  125. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.mjs +81 -0
  126. package/login/pages/webauthn-error/webauthn-error.component.d.ts +6 -3
  127. package/login/pages/webauthn-error/webauthn-error.component.mjs +46 -0
  128. package/login/pages/webauthn-register/webauthn-register.component.d.ts +8 -5
  129. package/login/pages/webauthn-register/webauthn-register.component.mjs +76 -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 +94 -204
  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.html +19 -19
  162. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +12 -22
  163. package/src/login/components/field-errors/field-errors.component.html +10 -10
  164. package/src/login/components/field-errors/field-errors.component.ts +9 -15
  165. package/src/login/components/group-label/group-label.component.html +25 -25
  166. package/src/login/components/group-label/group-label.component.ts +12 -19
  167. package/src/login/components/hello-world/hello-world.component.css +0 -0
  168. package/src/login/components/hello-world/hello-world.component.html +1 -0
  169. package/src/login/components/hello-world/hello-world.component.ts +10 -0
  170. package/src/login/components/index.ts +11 -11
  171. package/src/login/components/input-field-by-type/input-field-by-type.component.html +57 -57
  172. package/src/login/components/input-field-by-type/input-field-by-type.component.ts +16 -34
  173. package/src/login/components/input-tag/input-tag.component.html +41 -45
  174. package/src/login/components/input-tag/input-tag.component.ts +20 -31
  175. package/src/login/components/input-tag-selects/input-tag-selects.component.html +22 -22
  176. package/src/login/components/input-tag-selects/input-tag-selects.component.ts +27 -41
  177. package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +15 -15
  178. package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +8 -8
  179. package/src/login/components/password-wrapper/password-wrapper.component.html +13 -13
  180. package/src/login/components/password-wrapper/password-wrapper.component.ts +10 -23
  181. package/src/login/components/select-tag/select-tag.component.html +26 -26
  182. package/src/login/components/select-tag/select-tag.component.ts +18 -33
  183. package/src/login/components/textarea-tag/textarea-tag.component.html +13 -15
  184. package/src/login/components/textarea-tag/textarea-tag.component.ts +14 -24
  185. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +71 -71
  186. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +17 -41
  187. package/src/login/containers/template.component.html +183 -183
  188. package/src/login/containers/template.component.ts +20 -38
  189. package/src/login/directives/attributes.directive.ts +2 -2
  190. package/src/login/directives/index.ts +2 -2
  191. package/src/login/directives/kc-class.directive.ts +11 -11
  192. package/src/login/i18n.ts +2 -2
  193. package/src/login/pages/code/code.component.html +21 -21
  194. package/src/login/pages/code/code.component.ts +11 -15
  195. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +44 -42
  196. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +11 -16
  197. package/src/login/pages/delete-credential/delete-credential.component.html +29 -29
  198. package/src/login/pages/delete-credential/delete-credential.component.ts +11 -22
  199. package/src/login/pages/error/error.component.html +20 -20
  200. package/src/login/pages/error/error.component.ts +11 -15
  201. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +31 -31
  202. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +11 -23
  203. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +36 -36
  204. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +15 -32
  205. package/src/login/pages/info/info.component.html +45 -45
  206. package/src/login/pages/info/info.component.ts +16 -28
  207. package/src/login/pages/login/login.component.html +194 -194
  208. package/src/login/pages/login/login.component.ts +17 -42
  209. package/src/login/pages/login-config-totp/login-config-totp.component.html +189 -179
  210. package/src/login/pages/login-config-totp/login-config-totp.component.ts +16 -37
  211. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +35 -35
  212. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +11 -22
  213. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +34 -34
  214. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +11 -24
  215. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +32 -30
  216. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +11 -22
  217. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +83 -81
  218. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +13 -24
  219. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +57 -57
  220. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +11 -24
  221. package/src/login/pages/login-otp/login-otp.component.html +96 -96
  222. package/src/login/pages/login-otp/login-otp.component.ts +13 -23
  223. package/src/login/pages/login-page-expired/login-page-expired.component.html +31 -31
  224. package/src/login/pages/login-page-expired/login-page-expired.component.ts +10 -21
  225. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +183 -181
  226. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +21 -28
  227. package/src/login/pages/login-password/login-password.component.html +82 -82
  228. package/src/login/pages/login-password/login-password.component.ts +15 -32
  229. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +142 -142
  230. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +14 -33
  231. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +67 -67
  232. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +13 -27
  233. package/src/login/pages/login-reset-otp/login-reset-otp.component.html +61 -59
  234. package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +12 -22
  235. package/src/login/pages/login-reset-password/login-reset-password.component.html +84 -84
  236. package/src/login/pages/login-reset-password/login-reset-password.component.ts +13 -24
  237. package/src/login/pages/login-update-password/login-update-password.component.html +107 -107
  238. package/src/login/pages/login-update-password/login-update-password.component.ts +16 -37
  239. package/src/login/pages/login-update-profile/login-update-profile.component.html +53 -53
  240. package/src/login/pages/login-update-profile/login-update-profile.component.ts +14 -31
  241. package/src/login/pages/login-username/login-username.component.html +146 -146
  242. package/src/login/pages/login-username/login-username.component.ts +16 -37
  243. package/src/login/pages/login-verify-email/login-verify-email.component.html +22 -22
  244. package/src/login/pages/login-verify-email/login-verify-email.component.ts +11 -22
  245. package/src/login/pages/login-x509-info/login-x509-info.component.html +96 -96
  246. package/src/login/pages/login-x509-info/login-x509-info.component.ts +11 -21
  247. package/src/login/pages/logout-confirm/logout-confirm.component.html +51 -51
  248. package/src/login/pages/logout-confirm/logout-confirm.component.ts +11 -21
  249. package/src/login/pages/register/register.component.html +113 -113
  250. package/src/login/pages/register/register.component.ts +17 -28
  251. package/src/login/pages/saml-post-form/saml-post-form.component.html +47 -48
  252. package/src/login/pages/saml-post-form/saml-post-form.component.ts +13 -25
  253. package/src/login/pages/select-authenticator/select-authenticator.component.html +43 -44
  254. package/src/login/pages/select-authenticator/select-authenticator.component.ts +14 -31
  255. package/src/login/pages/terms/terms.component.html +32 -32
  256. package/src/login/pages/terms/terms.component.ts +11 -21
  257. package/src/login/pages/update-email/update-email.component.html +52 -52
  258. package/src/login/pages/update-email/update-email.component.ts +15 -32
  259. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +146 -148
  260. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +23 -47
  261. package/src/login/pages/webauthn-error/webauthn-error.component.html +53 -53
  262. package/src/login/pages/webauthn-error/webauthn-error.component.ts +16 -31
  263. package/src/login/pages/webauthn-register/webauthn-register.component.html +73 -73
  264. package/src/login/pages/webauthn-register/webauthn-register.component.ts +21 -37
  265. package/src/login/pipes/advanced-msg-str.pipe.ts +4 -4
  266. package/src/login/pipes/index.ts +6 -6
  267. package/src/login/pipes/input-type.pipe.ts +4 -4
  268. package/src/login/pipes/kc-sanitize.pipe.ts +8 -8
  269. package/src/login/pipes/msg-str.pipe.ts +5 -5
  270. package/src/login/pipes/to-array.pipe.ts +2 -2
  271. package/src/login/pipes/to-number.pipe.ts +3 -3
  272. package/src/login/services/index.ts +2 -2
  273. package/src/login/services/login-resource-injector.service.ts +11 -11
  274. package/src/login/services/user-profile-form.service.ts +178 -178
  275. package/src/tsconfig.json +0 -1
  276. package/stories/login/pages/login/login.stories.ts +146 -0
  277. package/lib/i18n.js +0 -6
  278. package/lib/i18n.js.map +0 -1
  279. package/lib/models/index.js +0 -2
  280. package/lib/models/index.js.map +0 -1
  281. package/lib/models/script.model.js +0 -2
  282. package/lib/models/script.model.js.map +0 -1
  283. package/lib/providers/keycloakify-angular.providers.js +0 -58
  284. package/lib/providers/keycloakify-angular.providers.js.map +0 -1
  285. package/lib/public-api.js +0 -4
  286. package/lib/public-api.js.map +0 -1
  287. package/lib/services/i18n.service.js +0 -14
  288. package/lib/services/i18n.service.js.map +0 -1
  289. package/lib/services/index.js +0 -3
  290. package/lib/services/index.js.map +0 -1
  291. package/lib/services/resource-injector.service.js +0 -57
  292. package/lib/services/resource-injector.service.js.map +0 -1
  293. package/login/DefaultPage.js +0 -121
  294. package/login/DefaultPage.js.map +0 -1
  295. package/login/KcContext.js +0 -2
  296. package/login/KcContext.js.map +0 -1
  297. package/login/classes/component-reference.class.js +0 -3
  298. package/login/classes/component-reference.class.js.map +0 -1
  299. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +0 -24
  300. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +0 -123
  301. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +0 -1
  302. package/login/components/field-errors/field-errors.component.html +0 -15
  303. package/login/components/field-errors/field-errors.component.js +0 -45
  304. package/login/components/field-errors/field-errors.component.js.map +0 -1
  305. package/login/components/group-label/group-label.component.html +0 -30
  306. package/login/components/group-label/group-label.component.js +0 -55
  307. package/login/components/group-label/group-label.component.js.map +0 -1
  308. package/login/components/index.js +0 -12
  309. package/login/components/index.js.map +0 -1
  310. package/login/components/input-field-by-type/input-field-by-type.component.html +0 -63
  311. package/login/components/input-field-by-type/input-field-by-type.component.js +0 -63
  312. package/login/components/input-field-by-type/input-field-by-type.component.js.map +0 -1
  313. package/login/components/input-tag/input-tag.component.html +0 -49
  314. package/login/components/input-tag/input-tag.component.js +0 -107
  315. package/login/components/input-tag/input-tag.component.js.map +0 -1
  316. package/login/components/input-tag-selects/input-tag-selects.component.html +0 -29
  317. package/login/components/input-tag-selects/input-tag-selects.component.js +0 -132
  318. package/login/components/input-tag-selects/input-tag-selects.component.js.map +0 -1
  319. package/login/components/logout-other-sessions/logout-other-sessions.component.html +0 -19
  320. package/login/components/logout-other-sessions/logout-other-sessions.component.js +0 -43
  321. package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +0 -1
  322. package/login/components/password-wrapper/password-wrapper.component.html +0 -15
  323. package/login/components/password-wrapper/password-wrapper.component.js +0 -57
  324. package/login/components/password-wrapper/password-wrapper.component.js.map +0 -1
  325. package/login/components/select-tag/select-tag.component.html +0 -31
  326. package/login/components/select-tag/select-tag.component.js +0 -97
  327. package/login/components/select-tag/select-tag.component.js.map +0 -1
  328. package/login/components/textarea-tag/textarea-tag.component.html +0 -18
  329. package/login/components/textarea-tag/textarea-tag.component.js +0 -63
  330. package/login/components/textarea-tag/textarea-tag.component.js.map +0 -1
  331. package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +0 -85
  332. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +0 -74
  333. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +0 -1
  334. package/login/containers/template.component.html +0 -203
  335. package/login/containers/template.component.js +0 -78
  336. package/login/containers/template.component.js.map +0 -1
  337. package/login/directives/attributes.directive.js +0 -34
  338. package/login/directives/attributes.directive.js.map +0 -1
  339. package/login/directives/index.js +0 -3
  340. package/login/directives/index.js.map +0 -1
  341. package/login/directives/kc-class.directive.js +0 -146
  342. package/login/directives/kc-class.directive.js.map +0 -1
  343. package/login/i18n.js +0 -2
  344. package/login/i18n.js.map +0 -1
  345. package/login/pages/code/code.component.html +0 -26
  346. package/login/pages/code/code.component.js +0 -38
  347. package/login/pages/code/code.component.js.map +0 -1
  348. package/login/pages/delete-account-confirm/delete-account-confirm.component.html +0 -46
  349. package/login/pages/delete-account-confirm/delete-account-confirm.component.js +0 -38
  350. package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +0 -1
  351. package/login/pages/delete-credential/delete-credential.component.html +0 -35
  352. package/login/pages/delete-credential/delete-credential.component.js +0 -43
  353. package/login/pages/delete-credential/delete-credential.component.js.map +0 -1
  354. package/login/pages/error/error.component.html +0 -25
  355. package/login/pages/error/error.component.js +0 -38
  356. package/login/pages/error/error.component.js.map +0 -1
  357. package/login/pages/frontchannel-logout/frontchannel-logout.component.html +0 -35
  358. package/login/pages/frontchannel-logout/frontchannel-logout.component.js +0 -47
  359. package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +0 -1
  360. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +0 -41
  361. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +0 -54
  362. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +0 -1
  363. package/login/pages/info/info.component.html +0 -54
  364. package/login/pages/info/info.component.js +0 -61
  365. package/login/pages/info/info.component.js.map +0 -1
  366. package/login/pages/login/login.component.html +0 -212
  367. package/login/pages/login/login.component.js +0 -58
  368. package/login/pages/login/login.component.js.map +0 -1
  369. package/login/pages/login-config-totp/login-config-totp.component.html +0 -190
  370. package/login/pages/login-config-totp/login-config-totp.component.js +0 -53
  371. package/login/pages/login-config-totp/login-config-totp.component.js.map +0 -1
  372. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +0 -41
  373. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +0 -43
  374. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +0 -1
  375. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +0 -40
  376. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +0 -43
  377. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +0 -1
  378. package/login/pages/login-idp-link-email/login-idp-link-email.component.html +0 -37
  379. package/login/pages/login-idp-link-email/login-idp-link-email.component.js +0 -43
  380. package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +0 -1
  381. package/login/pages/login-oauth-grant/login-oauth-grant.component.html +0 -92
  382. package/login/pages/login-oauth-grant/login-oauth-grant.component.js +0 -44
  383. package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +0 -1
  384. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +0 -63
  385. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +0 -43
  386. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +0 -1
  387. package/login/pages/login-otp/login-otp.component.html +0 -103
  388. package/login/pages/login-otp/login-otp.component.js +0 -44
  389. package/login/pages/login-otp/login-otp.component.js.map +0 -1
  390. package/login/pages/login-page-expired/login-page-expired.component.html +0 -35
  391. package/login/pages/login-page-expired/login-page-expired.component.js +0 -42
  392. package/login/pages/login-page-expired/login-page-expired.component.js.map +0 -1
  393. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +0 -203
  394. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +0 -91
  395. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +0 -1
  396. package/login/pages/login-password/login-password.component.html +0 -90
  397. package/login/pages/login-password/login-password.component.js +0 -52
  398. package/login/pages/login-password/login-password.component.js.map +0 -1
  399. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +0 -155
  400. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +0 -51
  401. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +0 -1
  402. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +0 -76
  403. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +0 -44
  404. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +0 -1
  405. package/login/pages/login-reset-otp/login-reset-otp.component.html +0 -65
  406. package/login/pages/login-reset-otp/login-reset-otp.component.js +0 -43
  407. package/login/pages/login-reset-otp/login-reset-otp.component.js.map +0 -1
  408. package/login/pages/login-reset-password/login-reset-password.component.html +0 -95
  409. package/login/pages/login-reset-password/login-reset-password.component.js +0 -44
  410. package/login/pages/login-reset-password/login-reset-password.component.js.map +0 -1
  411. package/login/pages/login-update-password/login-update-password.component.html +0 -116
  412. package/login/pages/login-update-password/login-update-password.component.js +0 -53
  413. package/login/pages/login-update-password/login-update-password.component.js.map +0 -1
  414. package/login/pages/login-update-profile/login-update-profile.component.html +0 -59
  415. package/login/pages/login-update-profile/login-update-profile.component.js +0 -50
  416. package/login/pages/login-update-profile/login-update-profile.component.js.map +0 -1
  417. package/login/pages/login-username/login-username.component.html +0 -161
  418. package/login/pages/login-username/login-username.component.js +0 -56
  419. package/login/pages/login-username/login-username.component.js.map +0 -1
  420. package/login/pages/login-verify-email/login-verify-email.component.html +0 -27
  421. package/login/pages/login-verify-email/login-verify-email.component.js +0 -43
  422. package/login/pages/login-verify-email/login-verify-email.component.js.map +0 -1
  423. package/login/pages/login-x509-info/login-x509-info.component.html +0 -102
  424. package/login/pages/login-x509-info/login-x509-info.component.js +0 -43
  425. package/login/pages/login-x509-info/login-x509-info.component.js.map +0 -1
  426. package/login/pages/logout-confirm/logout-confirm.component.html +0 -59
  427. package/login/pages/logout-confirm/logout-confirm.component.js +0 -43
  428. package/login/pages/logout-confirm/logout-confirm.component.js.map +0 -1
  429. package/login/pages/register/register.component.html +0 -126
  430. package/login/pages/register/register.component.js +0 -62
  431. package/login/pages/register/register.component.js.map +0 -1
  432. package/login/pages/saml-post-form/saml-post-form.component.html +0 -51
  433. package/login/pages/saml-post-form/saml-post-form.component.js +0 -55
  434. package/login/pages/saml-post-form/saml-post-form.component.js.map +0 -1
  435. package/login/pages/select-authenticator/select-authenticator.component.html +0 -49
  436. package/login/pages/select-authenticator/select-authenticator.component.js +0 -51
  437. package/login/pages/select-authenticator/select-authenticator.component.js.map +0 -1
  438. package/login/pages/terms/terms.component.html +0 -36
  439. package/login/pages/terms/terms.component.js +0 -43
  440. package/login/pages/terms/terms.component.js.map +0 -1
  441. package/login/pages/update-email/update-email.component.html +0 -58
  442. package/login/pages/update-email/update-email.component.js +0 -52
  443. package/login/pages/update-email/update-email.component.js.map +0 -1
  444. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +0 -162
  445. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +0 -93
  446. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +0 -1
  447. package/login/pages/webauthn-error/webauthn-error.component.html +0 -60
  448. package/login/pages/webauthn-error/webauthn-error.component.js +0 -57
  449. package/login/pages/webauthn-error/webauthn-error.component.js.map +0 -1
  450. package/login/pages/webauthn-register/webauthn-register.component.html +0 -82
  451. package/login/pages/webauthn-register/webauthn-register.component.js +0 -86
  452. package/login/pages/webauthn-register/webauthn-register.component.js.map +0 -1
  453. package/login/pipes/advanced-msg-str.pipe.js +0 -31
  454. package/login/pipes/advanced-msg-str.pipe.js.map +0 -1
  455. package/login/pipes/index.js +0 -7
  456. package/login/pipes/index.js.map +0 -1
  457. package/login/pipes/input-type.pipe.js +0 -23
  458. package/login/pipes/input-type.pipe.js.map +0 -1
  459. package/login/pipes/kc-sanitize.pipe.js +0 -36
  460. package/login/pipes/kc-sanitize.pipe.js.map +0 -1
  461. package/login/pipes/msg-str.pipe.js +0 -31
  462. package/login/pipes/msg-str.pipe.js.map +0 -1
  463. package/login/pipes/to-array.pipe.js +0 -24
  464. package/login/pipes/to-array.pipe.js.map +0 -1
  465. package/login/pipes/to-number.pipe.js +0 -23
  466. package/login/pipes/to-number.pipe.js.map +0 -1
  467. package/login/services/index.js +0 -3
  468. package/login/services/index.js.map +0 -1
  469. package/login/services/login-resource-injector.service.js +0 -71
  470. package/login/services/login-resource-injector.service.js.map +0 -1
  471. package/login/services/user-profile-form.service.js +0 -1031
  472. package/login/services/user-profile-form.service.js.map +0 -1
@@ -1,63 +1,63 @@
1
1
  @let attr = attribute();
2
2
  @if (attr) {
3
- @let type = attr.annotations.inputType;
4
- @switch (type) {
5
- @case ('textarea') {
6
- <kc-textarea-tag
7
- [attribute]="attribute()"
8
- [value]="$any(valueOrValues())"
9
- [displayableErrors]="displayableErrors()"
10
- (dispatchFormAction)="dispatchFormAction.emit($event)"
11
- ></kc-textarea-tag>
12
- }
13
- @case (type === 'select' || type === 'multiselect' ? type : '') {
14
- <kc-select-tag
15
- [attribute]="attribute()"
16
- [valueOrValues]="valueOrValues()"
17
- [displayableErrors]="displayableErrors()"
18
- (dispatchFormAction)="dispatchFormAction.emit($event)"
19
- ></kc-select-tag>
20
- }
21
- @case (type === 'select-radiobuttons' || type === 'multiselect-checkboxes' ? type : '') {
22
- <kc-input-tag-selects
23
- [attribute]="attribute()"
24
- [valueOrValues]="valueOrValues()"
25
- [displayableErrors]="displayableErrors()"
26
- (dispatchFormAction)="dispatchFormAction.emit($event)"
27
- ></kc-input-tag-selects>
28
- }
29
- @default {
30
- @let values = valueOrValues();
31
- <!-- if valueOrValues is string skip -->
32
- @if (values && (values | toArray: true).length) {
33
- @for (value of values; track value; let i = $index) {
34
- <kc-input-tag
35
- [attribute]="attribute()"
36
- [valueOrValues]="valueOrValues()"
37
- [fieldIndex]="i"
38
- [displayableErrors]="displayableErrors()"
39
- (dispatchFormAction)="dispatchFormAction.emit($event)"
40
- ></kc-input-tag>
3
+ @let type = attr.annotations.inputType;
4
+ @switch (type) {
5
+ @case ('textarea') {
6
+ <kc-textarea-tag
7
+ [attribute]="attribute()"
8
+ [value]="$any(valueOrValues())"
9
+ [displayableErrors]="displayableErrors()"
10
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
11
+ ></kc-textarea-tag>
12
+ }
13
+ @case (type === 'select' || type === 'multiselect' ? type : '') {
14
+ <kc-select-tag
15
+ [attribute]="attribute()"
16
+ [valueOrValues]="valueOrValues()"
17
+ [displayableErrors]="displayableErrors()"
18
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
19
+ ></kc-select-tag>
20
+ }
21
+ @case (type === 'select-radiobuttons' || type === 'multiselect-checkboxes' ? type : '') {
22
+ <kc-input-tag-selects
23
+ [attribute]="attribute()"
24
+ [valueOrValues]="valueOrValues()"
25
+ [displayableErrors]="displayableErrors()"
26
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
27
+ ></kc-input-tag-selects>
41
28
  }
42
- } @else {
43
- @if (attr.name === 'password' || attr.name === 'password-confirm') {
44
- <kc-password-wrapper [passwordInputId]="attr.name">
45
- <kc-input-tag
46
- [attribute]="attributePassword()"
47
- [valueOrValues]="valueOrValues()"
48
- [displayableErrors]="displayableErrors()"
49
- (dispatchFormAction)="dispatchFormAction.emit($event)"
50
- ></kc-input-tag>
51
- </kc-password-wrapper>
52
- } @else {
53
- <kc-input-tag
54
- [attribute]="attribute()"
55
- [valueOrValues]="valueOrValues()"
56
- [displayableErrors]="displayableErrors()"
57
- (dispatchFormAction)="dispatchFormAction.emit($event)"
58
- ></kc-input-tag>
29
+ @default {
30
+ @let values = valueOrValues();
31
+ <!-- if valueOrValues is string skip -->
32
+ @if (values && (values | toArray: true).length) {
33
+ @for (value of values; track value; let i = $index) {
34
+ <kc-input-tag
35
+ [attribute]="attribute()"
36
+ [valueOrValues]="valueOrValues()"
37
+ [fieldIndex]="i"
38
+ [displayableErrors]="displayableErrors()"
39
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
40
+ ></kc-input-tag>
41
+ }
42
+ } @else {
43
+ @if (attr.name === 'password' || attr.name === 'password-confirm') {
44
+ <kc-password-wrapper [passwordInputId]="attr.name">
45
+ <kc-input-tag
46
+ [attribute]="attributePassword()"
47
+ [valueOrValues]="valueOrValues()"
48
+ [displayableErrors]="displayableErrors()"
49
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
50
+ ></kc-input-tag>
51
+ </kc-password-wrapper>
52
+ } @else {
53
+ <kc-input-tag
54
+ [attribute]="attribute()"
55
+ [valueOrValues]="valueOrValues()"
56
+ [displayableErrors]="displayableErrors()"
57
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
58
+ ></kc-input-tag>
59
+ }
60
+ }
59
61
  }
60
- }
61
62
  }
62
- }
63
63
  }
@@ -1,26 +1,15 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- computed,
5
- forwardRef,
6
- inject,
7
- input,
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 { ToArrayPipe } from "@keycloakify/angular/login/pipes/to-array.pipe";
15
- import {
16
- FormAction,
17
- FormFieldError
18
- } from "@keycloakify/angular/login/services/user-profile-form.service";
19
- import { InputTagSelectsComponent } from "@keycloakify/angular/login/components/input-tag-selects/input-tag-selects.component";
20
- import { InputTagComponent } from "@keycloakify/angular/login/components/input-tag/input-tag.component";
21
- import { PasswordWrapperComponent } from "@keycloakify/angular/login/components/password-wrapper/password-wrapper.component";
22
- import { SelectTagComponent } from "@keycloakify/angular/login/components/select-tag/select-tag.component";
23
- import { TextareaTagComponent } from "@keycloakify/angular/login/components/textarea-tag/textarea-tag.component";
1
+ import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from '@angular/core';
2
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
+ import { Attribute } from 'keycloakify/login/KcContext';
4
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
5
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
+ import { ToArrayPipe } from '@keycloakify/angular/login/pipes/to-array.pipe';
7
+ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form.service';
8
+ import { InputTagSelectsComponent } from '@keycloakify/angular/login/components/input-tag-selects/input-tag-selects.component';
9
+ import { InputTagComponent } from '@keycloakify/angular/login/components/input-tag/input-tag.component';
10
+ import { PasswordWrapperComponent } from '@keycloakify/angular/login/components/password-wrapper/password-wrapper.component';
11
+ import { SelectTagComponent } from '@keycloakify/angular/login/components/select-tag/select-tag.component';
12
+ import { TextareaTagComponent } from '@keycloakify/angular/login/components/textarea-tag/textarea-tag.component';
24
13
 
25
14
  @Component({
26
15
  standalone: true,
@@ -31,16 +20,9 @@ import { TextareaTagComponent } from "@keycloakify/angular/login/components/text
31
20
  }
32
21
  `
33
22
  ],
34
- imports: [
35
- ToArrayPipe,
36
- TextareaTagComponent,
37
- SelectTagComponent,
38
- InputTagSelectsComponent,
39
- InputTagComponent,
40
- PasswordWrapperComponent
41
- ],
42
- selector: "kc-input-field-by-type",
43
- templateUrl: "input-field-by-type.component.html",
23
+ imports: [ToArrayPipe, TextareaTagComponent, SelectTagComponent, InputTagSelectsComponent, InputTagComponent, PasswordWrapperComponent],
24
+ selector: 'kc-input-field-by-type',
25
+ templateUrl: 'input-field-by-type.component.html',
44
26
  changeDetection: ChangeDetectionStrategy.OnPush,
45
27
  providers: [
46
28
  {
@@ -61,7 +43,7 @@ export class InputFieldByTypeComponent extends ComponentReference {
61
43
  const attribute: Attribute = this.attribute() ?? ({} as Attribute);
62
44
  return {
63
45
  ...attribute,
64
- annotations: { ...(attribute.annotations ?? {}), inputType: "password" }
46
+ annotations: { ...(attribute.annotations ?? {}), inputType: 'password' }
65
47
  };
66
48
  });
67
49
  }
@@ -1,49 +1,45 @@
1
1
  @let attr = attribute();
2
2
  @let index = fieldIndex();
3
3
  @if (attr) {
4
- <input
5
- [type]="attr.annotations.inputType | inputType"
6
- [id]="attr.name"
7
- [name]="attr.name"
8
- [value]="value()"
9
- [kcClass]="'kcInputClass'"
10
- [attr.aria-invalid]="index && displayableErrors()?.[index] !== undefined"
11
- [disabled]="attr.readOnly"
12
- [autocomplete]="attr.autocomplete"
13
- [placeholder]="attr.annotations.inputTypePlaceholder ?? '' | advancedMsgStr"
14
- [attr.pattern]="attr.annotations.inputTypePattern"
15
- [attr.size]="
16
- !attr.annotations.inputTypeSize
17
- ? undefined
18
- : (attr.annotations.inputTypeSize | toNumber) === 0
19
- ? undefined
20
- : (attr.annotations.inputTypeSize | toNumber)
21
- "
22
- [attr.maxlength]="
23
- !attr.annotations.inputTypeMaxlength ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)
24
- "
25
- [attr.minlength]="
26
- !attr.annotations.inputTypeMinlength ? undefined : (attr.annotations.inputTypeMinlength | toNumber)
27
- "
28
- [attr.max]="attr.annotations.inputTypeMax"
29
- [attr.min]="attr.annotations.inputTypeMin"
30
- [attr.step]="attr.annotations.inputTypeStep"
31
- [kcAttributes]="attr.html5DataAnnotations"
32
- (change)="onChange($event)"
33
- (blur)="onBlur()"
34
- />
35
- @if (index !== undefined) {
36
- @let values = valueOrValues() ?? [] | toArray;
37
- <kc-field-errors
38
- [attribute]="attr"
39
- [displayableErrors]="displayableErrors()"
40
- [fieldIndex]="index"
41
- ></kc-field-errors>
42
- <kc-add-remove-buttons-multi-valued-attribute
43
- [attribute]="attr"
44
- [values]="values"
45
- [fieldIndex]="index"
46
- (dispatchFormAction)="dispatchFormAction.emit($event)"
47
- ></kc-add-remove-buttons-multi-valued-attribute>
48
- }
4
+ <input
5
+ [type]="attr.annotations.inputType | inputType"
6
+ [id]="attr.name"
7
+ [name]="attr.name"
8
+ [value]="value()"
9
+ [kcClass]="'kcInputClass'"
10
+ [attr.aria-invalid]="index && displayableErrors()?.[index] !== undefined"
11
+ [disabled]="attr.readOnly"
12
+ [autocomplete]="attr.autocomplete"
13
+ [placeholder]="attr.annotations.inputTypePlaceholder ?? '' | advancedMsgStr"
14
+ [attr.pattern]="attr.annotations.inputTypePattern"
15
+ [attr.size]="
16
+ !attr.annotations.inputTypeSize
17
+ ? undefined
18
+ : (attr.annotations.inputTypeSize | toNumber) === 0
19
+ ? undefined
20
+ : (attr.annotations.inputTypeSize | toNumber)
21
+ "
22
+ [attr.maxlength]="!attr.annotations.inputTypeMaxlength ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)"
23
+ [attr.minlength]="!attr.annotations.inputTypeMinlength ? undefined : (attr.annotations.inputTypeMinlength | toNumber)"
24
+ [attr.max]="attr.annotations.inputTypeMax"
25
+ [attr.min]="attr.annotations.inputTypeMin"
26
+ [attr.step]="attr.annotations.inputTypeStep"
27
+ [kcAttributes]="attr.html5DataAnnotations"
28
+ (change)="onChange($event)"
29
+ (blur)="onBlur()"
30
+ />
31
+ @if (index !== undefined) {
32
+ @let values = valueOrValues() ?? [] | toArray;
33
+ <kc-field-errors
34
+ [attribute]="attr"
35
+ [displayableErrors]="displayableErrors()"
36
+ [fieldIndex]="index"
37
+ ></kc-field-errors>
38
+ <kc-add-remove-buttons-multi-valued-attribute
39
+ [attribute]="attr"
40
+ [values]="values"
41
+ [fieldIndex]="index"
42
+ (dispatchFormAction)="dispatchFormAction.emit($event)"
43
+ ></kc-add-remove-buttons-multi-valued-attribute>
44
+ }
49
45
  }
@@ -1,28 +1,17 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- computed,
5
- forwardRef,
6
- inject,
7
- input,
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 { AttributesDirective } from "@keycloakify/angular/login/directives/attributes.directive";
15
- import { KcClassDirective } from "@keycloakify/angular/login/directives/kc-class.directive";
16
- import { AdvancedMsgStrPipe } from "@keycloakify/angular/login/pipes/advanced-msg-str.pipe";
17
- import { InputTypePipe } from "@keycloakify/angular/login/pipes/input-type.pipe";
18
- import { ToArrayPipe } from "@keycloakify/angular/login/pipes/to-array.pipe";
19
- import { ToNumberPipe } from "@keycloakify/angular/login/pipes/to-number.pipe";
20
- import {
21
- FormAction,
22
- FormFieldError
23
- } from "@keycloakify/angular/login/services/user-profile-form.service";
24
- import { AddRemoveButtonsMultiValuedAttributeComponent } from "@keycloakify/angular/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component";
25
- import { FieldErrorsComponent } from "@keycloakify/angular/login/components/field-errors/field-errors.component";
1
+ import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from '@angular/core';
2
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
+ import { Attribute } from 'keycloakify/login/KcContext';
4
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
5
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
+ import { AttributesDirective } from '@keycloakify/angular/login/directives/attributes.directive';
7
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
8
+ import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
9
+ import { InputTypePipe } from '@keycloakify/angular/login/pipes/input-type.pipe';
10
+ import { ToArrayPipe } from '@keycloakify/angular/login/pipes/to-array.pipe';
11
+ import { ToNumberPipe } from '@keycloakify/angular/login/pipes/to-number.pipe';
12
+ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form.service';
13
+ import { AddRemoveButtonsMultiValuedAttributeComponent } from '@keycloakify/angular/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component';
14
+ import { FieldErrorsComponent } from '@keycloakify/angular/login/components/field-errors/field-errors.component';
26
15
 
27
16
  @Component({
28
17
  standalone: true,
@@ -43,8 +32,8 @@ import { FieldErrorsComponent } from "@keycloakify/angular/login/components/fiel
43
32
  AddRemoveButtonsMultiValuedAttributeComponent,
44
33
  AdvancedMsgStrPipe
45
34
  ],
46
- selector: "kc-input-tag",
47
- templateUrl: "input-tag.component.html",
35
+ selector: 'kc-input-tag',
36
+ templateUrl: 'input-tag.component.html',
48
37
  changeDetection: ChangeDetectionStrategy.OnPush,
49
38
  providers: [
50
39
  {
@@ -78,8 +67,8 @@ export class InputTagComponent extends ComponentReference {
78
67
  onChange(event: Event) {
79
68
  const valueOrValues = this.valueOrValues();
80
69
  this.dispatchFormAction.emit({
81
- action: "update",
82
- name: this.attribute()?.name ?? "",
70
+ action: 'update',
71
+ name: this.attribute()?.name ?? '',
83
72
  valueOrValues: (() => {
84
73
  if (this.fieldIndex !== undefined) {
85
74
  if (valueOrValues instanceof Array) {
@@ -100,8 +89,8 @@ export class InputTagComponent extends ComponentReference {
100
89
 
101
90
  onBlur() {
102
91
  this.dispatchFormAction.emit({
103
- action: "focus lost",
104
- name: this.attribute()?.name ?? "",
92
+ action: 'focus lost',
93
+ name: this.attribute()?.name ?? '',
105
94
  fieldIndex: this.fieldIndex()
106
95
  });
107
96
  }
@@ -4,26 +4,26 @@
4
4
  @let classDiv = context()?.classDiv;
5
5
  @let attr = attribute();
6
6
  @if (attr) {
7
- @for (option of options(); track option) {
8
- <div [kcClass]="classDiv">
9
- <input
10
- [type]="inputType"
11
- [id]="attr.name + '-' + option"
12
- [name]="attr.name"
13
- [value]="option"
14
- [kcClass]="classInput"
15
- [attr.aria-invalid]="!!displayableErrors()?.length"
16
- [disabled]="attr.readOnly"
17
- [checked]="checked(option)"
18
- (change)="onChange($event, option)"
19
- (blur)="onBlur()"
20
- />
21
- <label
22
- [for]="attr.name + '-' + option"
23
- [kcClass]="[classLabel!, attr.readOnly ? 'kcInputClassRadioCheckboxLabelDisabled' : $any('')]"
24
- >
25
- {{ option | advancedMsgStr }}
26
- </label>
27
- </div>
28
- }
7
+ @for (option of options(); track option) {
8
+ <div [kcClass]="classDiv">
9
+ <input
10
+ [type]="inputType"
11
+ [id]="attr.name + '-' + option"
12
+ [name]="attr.name"
13
+ [value]="option"
14
+ [kcClass]="classInput"
15
+ [attr.aria-invalid]="!!displayableErrors()?.length"
16
+ [disabled]="attr.readOnly"
17
+ [checked]="checked(option)"
18
+ (change)="onChange($event, option)"
19
+ (blur)="onBlur()"
20
+ />
21
+ <label
22
+ [for]="attr.name + '-' + option"
23
+ [kcClass]="[classLabel!, attr.readOnly ? 'kcInputClassRadioCheckboxLabelDisabled' : $any('')]"
24
+ >
25
+ {{ option | advancedMsgStr }}
26
+ </label>
27
+ </div>
28
+ }
29
29
  }
@@ -1,23 +1,11 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- computed,
5
- forwardRef,
6
- inject,
7
- input,
8
- output,
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";
17
- import {
18
- FormAction,
19
- FormFieldError
20
- } from "@keycloakify/angular/login/services/user-profile-form.service";
1
+ import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output, Signal } from '@angular/core';
2
+ import { CLASSES, USE_DEFAULT_CSS } from '@keycloakify/angular/lib/public-api';
3
+ import { Attribute } from 'keycloakify/login/KcContext';
4
+ import { ClassKey } from 'keycloakify/login/lib/kcClsx';
5
+ import { ComponentReference } from '@keycloakify/angular/login/classes/component-reference.class';
6
+ import { KcClassDirective } from '@keycloakify/angular/login/directives/kc-class.directive';
7
+ import { AdvancedMsgStrPipe } from '@keycloakify/angular/login/pipes/advanced-msg-str.pipe';
8
+ import { FormAction, FormFieldError } from '@keycloakify/angular/login/services/user-profile-form.service';
21
9
 
22
10
  @Component({
23
11
  standalone: true,
@@ -29,8 +17,8 @@ import {
29
17
  `
30
18
  ],
31
19
  imports: [KcClassDirective, AdvancedMsgStrPipe],
32
- selector: "kc-input-tag-selects",
33
- templateUrl: "input-tag-selects.component.html",
20
+ selector: 'kc-input-tag-selects',
21
+ templateUrl: 'input-tag-selects.component.html',
34
22
  changeDetection: ChangeDetectionStrategy.OnPush,
35
23
  providers: [
36
24
  {
@@ -48,7 +36,7 @@ export class InputTagSelectsComponent extends ComponentReference {
48
36
  override classes = inject<Partial<Record<ClassKey, string>>>(CLASSES);
49
37
 
50
38
  context: Signal<{
51
- inputType: "radio" | "checkbox";
39
+ inputType: 'radio' | 'checkbox';
52
40
  classDiv: ClassKey;
53
41
  classInput: ClassKey;
54
42
  classLabel: ClassKey;
@@ -57,19 +45,19 @@ export class InputTagSelectsComponent extends ComponentReference {
57
45
  if (attribute) {
58
46
  const { inputType } = attribute.annotations;
59
47
  switch (inputType) {
60
- case "select-radiobuttons":
48
+ case 'select-radiobuttons':
61
49
  return {
62
- inputType: "radio",
63
- classDiv: "kcInputClassRadio",
64
- classInput: "kcInputClassRadioInput",
65
- classLabel: "kcInputClassRadioLabel"
50
+ inputType: 'radio',
51
+ classDiv: 'kcInputClassRadio',
52
+ classInput: 'kcInputClassRadioInput',
53
+ classLabel: 'kcInputClassRadioLabel'
66
54
  };
67
- case "multiselect-checkboxes":
55
+ case 'multiselect-checkboxes':
68
56
  return {
69
- inputType: "checkbox",
70
- classDiv: "kcInputClassCheckbox",
71
- classInput: "kcInputClassCheckboxInput",
72
- classLabel: "kcInputClassCheckboxLabel"
57
+ inputType: 'checkbox',
58
+ classDiv: 'kcInputClassCheckbox',
59
+ classInput: 'kcInputClassCheckboxInput',
60
+ classLabel: 'kcInputClassCheckboxLabel'
73
61
  };
74
62
  }
75
63
  }
@@ -87,9 +75,7 @@ export class InputTagSelectsComponent extends ComponentReference {
87
75
  break walk;
88
76
  }
89
77
 
90
- const validator = (
91
- attribute.validators as Record<string, { options?: string[] }>
92
- )[inputOptionsFromValidation];
78
+ const validator = (attribute.validators as Record<string, { options?: string[] }>)[inputOptionsFromValidation];
93
79
 
94
80
  if (validator === undefined) {
95
81
  break walk;
@@ -120,8 +106,8 @@ export class InputTagSelectsComponent extends ComponentReference {
120
106
  const valueOrValues = this.valueOrValues();
121
107
  const isChecked = (event.target as HTMLInputElement).checked;
122
108
  this.dispatchFormAction.emit({
123
- action: "update",
124
- name: this.attribute()?.name ?? "",
109
+ action: 'update',
110
+ name: this.attribute()?.name ?? '',
125
111
  valueOrValues: (() => {
126
112
  if (valueOrValues instanceof Array) {
127
113
  const newValues = [...valueOrValues];
@@ -135,15 +121,15 @@ export class InputTagSelectsComponent extends ComponentReference {
135
121
  return newValues;
136
122
  }
137
123
 
138
- return (event.target as HTMLInputElement)?.checked ? option : "";
124
+ return (event.target as HTMLInputElement)?.checked ? option : '';
139
125
  })()
140
126
  });
141
127
  }
142
128
 
143
129
  onBlur() {
144
130
  this.dispatchFormAction.emit({
145
- action: "focus lost",
146
- name: this.attribute()?.name ?? "",
131
+ action: 'focus lost',
132
+ name: this.attribute()?.name ?? '',
147
133
  fieldIndex: undefined
148
134
  });
149
135
  }
@@ -1,19 +1,19 @@
1
1
  <div
2
- id="kc-form-options"
3
- [kcClass]="'kcFormOptionsClass'"
2
+ id="kc-form-options"
3
+ [kcClass]="'kcFormOptionsClass'"
4
4
  >
5
- <div [kcClass]="'kcFormOptionsWrapperClass'">
6
- <div class="checkbox">
7
- <label for="logout-sessions">
8
- <input
9
- type="checkbox"
10
- id="logout-sessions"
11
- name="logout-sessions"
12
- value="on"
13
- defaultChecked="true"
14
- />
15
- {{ 'logoutOtherSessions' | msgStr }}
16
- </label>
5
+ <div [kcClass]="'kcFormOptionsWrapperClass'">
6
+ <div class="checkbox">
7
+ <label for="logout-sessions">
8
+ <input
9
+ type="checkbox"
10
+ id="logout-sessions"
11
+ name="logout-sessions"
12
+ value="on"
13
+ defaultChecked="true"
14
+ />
15
+ {{ 'logoutOtherSessions' | msgStr }}
16
+ </label>
17
+ </div>
17
18
  </div>
18
- </div>
19
19
  </div>
@@ -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,15 +1,15 @@
1
1
  <div [kcClass]="'kcInputGroup'">
2
- <ng-content></ng-content>
3
- <button
4
- type="button"
5
- [kcClass]="'kcFormPasswordVisibilityButtonClass'"
6
- [attr.aria-label]="(isPasswordRevealed() ? 'hidePassword' : 'showPassword') | msgStr"
7
- [attr.aria-controls]="passwordInputId()"
8
- (click)="togglePasswordVisibility()"
9
- >
10
- <i
11
- [kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
12
- aria-hidden="true"
13
- ></i>
14
- </button>
2
+ <ng-content></ng-content>
3
+ <button
4
+ type="button"
5
+ [kcClass]="'kcFormPasswordVisibilityButtonClass'"
6
+ [attr.aria-label]="(isPasswordRevealed() ? 'hidePassword' : 'showPassword') | msgStr"
7
+ [attr.aria-controls]="passwordInputId()"
8
+ (click)="togglePasswordVisibility()"
9
+ >
10
+ <i
11
+ [kcClass]="isPasswordRevealed() ? 'kcFormPasswordVisibilityIconHide' : 'kcFormPasswordVisibilityIconShow'"
12
+ aria-hidden="true"
13
+ ></i>
14
+ </button>
15
15
  </div>