@keycloakify/angular 0.0.1-rc.0

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 (396) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/lib/i18n.d.ts +4 -0
  4. package/lib/i18n.js +6 -0
  5. package/lib/i18n.js.map +1 -0
  6. package/lib/models/index.d.ts +1 -0
  7. package/lib/models/index.js +2 -0
  8. package/lib/models/index.js.map +1 -0
  9. package/lib/models/script.model.d.ts +6 -0
  10. package/lib/models/script.model.js +2 -0
  11. package/lib/models/script.model.js.map +1 -0
  12. package/lib/providers/keycloakify-angular.providers.d.ts +150 -0
  13. package/lib/providers/keycloakify-angular.providers.js +58 -0
  14. package/lib/providers/keycloakify-angular.providers.js.map +1 -0
  15. package/lib/public-api.d.ts +10 -0
  16. package/lib/public-api.js +4 -0
  17. package/lib/public-api.js.map +1 -0
  18. package/lib/services/i18n.service.d.ts +3 -0
  19. package/lib/services/i18n.service.js +14 -0
  20. package/lib/services/i18n.service.js.map +1 -0
  21. package/lib/services/index.d.ts +2 -0
  22. package/lib/services/index.js +3 -0
  23. package/lib/services/index.js.map +1 -0
  24. package/lib/services/resource-injector.service.d.ts +7 -0
  25. package/lib/services/resource-injector.service.js +57 -0
  26. package/lib/services/resource-injector.service.js.map +1 -0
  27. package/login/DefaultPage.d.ts +260 -0
  28. package/login/DefaultPage.js +121 -0
  29. package/login/DefaultPage.js.map +1 -0
  30. package/login/KcContext.d.ts +1 -0
  31. package/login/KcContext.js +2 -0
  32. package/login/KcContext.js.map +1 -0
  33. package/login/classes/component-reference.class.d.ts +5 -0
  34. package/login/classes/component-reference.class.js +3 -0
  35. package/login/classes/component-reference.class.js.map +1 -0
  36. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.d.ts +13 -0
  37. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +24 -0
  38. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js +123 -0
  39. package/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.js.map +1 -0
  40. package/login/components/field-errors/field-errors.component.d.ts +11 -0
  41. package/login/components/field-errors/field-errors.component.html +15 -0
  42. package/login/components/field-errors/field-errors.component.js +45 -0
  43. package/login/components/field-errors/field-errors.component.js.map +1 -0
  44. package/login/components/group-label/group-label.component.d.ts +10 -0
  45. package/login/components/group-label/group-label.component.html +30 -0
  46. package/login/components/group-label/group-label.component.js +55 -0
  47. package/login/components/group-label/group-label.component.js.map +1 -0
  48. package/login/components/index.d.ts +11 -0
  49. package/login/components/index.js +12 -0
  50. package/login/components/index.js.map +1 -0
  51. package/login/components/input-field-by-type/input-field-by-type.component.d.ts +13 -0
  52. package/login/components/input-field-by-type/input-field-by-type.component.html +63 -0
  53. package/login/components/input-field-by-type/input-field-by-type.component.js +63 -0
  54. package/login/components/input-field-by-type/input-field-by-type.component.js.map +1 -0
  55. package/login/components/input-tag/input-tag.component.d.ts +17 -0
  56. package/login/components/input-tag/input-tag.component.html +49 -0
  57. package/login/components/input-tag/input-tag.component.js +107 -0
  58. package/login/components/input-tag/input-tag.component.js.map +1 -0
  59. package/login/components/input-tag-selects/input-tag-selects.component.d.ts +23 -0
  60. package/login/components/input-tag-selects/input-tag-selects.component.html +29 -0
  61. package/login/components/input-tag-selects/input-tag-selects.component.js +132 -0
  62. package/login/components/input-tag-selects/input-tag-selects.component.js.map +1 -0
  63. package/login/components/logout-other-sessions/logout-other-sessions.component.d.ts +6 -0
  64. package/login/components/logout-other-sessions/logout-other-sessions.component.html +19 -0
  65. package/login/components/logout-other-sessions/logout-other-sessions.component.js +43 -0
  66. package/login/components/logout-other-sessions/logout-other-sessions.component.js.map +1 -0
  67. package/login/components/password-wrapper/password-wrapper.component.d.ts +12 -0
  68. package/login/components/password-wrapper/password-wrapper.component.html +15 -0
  69. package/login/components/password-wrapper/password-wrapper.component.js +57 -0
  70. package/login/components/password-wrapper/password-wrapper.component.js.map +1 -0
  71. package/login/components/select-tag/select-tag.component.d.ts +16 -0
  72. package/login/components/select-tag/select-tag.component.html +31 -0
  73. package/login/components/select-tag/select-tag.component.js +97 -0
  74. package/login/components/select-tag/select-tag.component.js.map +1 -0
  75. package/login/components/textarea-tag/textarea-tag.component.d.ts +14 -0
  76. package/login/components/textarea-tag/textarea-tag.component.html +18 -0
  77. package/login/components/textarea-tag/textarea-tag.component.js +63 -0
  78. package/login/components/textarea-tag/textarea-tag.component.js.map +1 -0
  79. package/login/components/user-profile-form-fields/user-profile-form-fields.component.d.ts +25 -0
  80. package/login/components/user-profile-form-fields/user-profile-form-fields.component.html +85 -0
  81. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js +74 -0
  82. package/login/components/user-profile-form-fields/user-profile-form-fields.component.js.map +1 -0
  83. package/login/containers/template.component.d.ts +28 -0
  84. package/login/containers/template.component.html +203 -0
  85. package/login/containers/template.component.js +78 -0
  86. package/login/containers/template.component.js.map +1 -0
  87. package/login/directives/attributes.directive.d.ts +5 -0
  88. package/login/directives/attributes.directive.js +34 -0
  89. package/login/directives/attributes.directive.js.map +1 -0
  90. package/login/directives/index.d.ts +2 -0
  91. package/login/directives/index.js +3 -0
  92. package/login/directives/index.js.map +1 -0
  93. package/login/directives/kc-class.directive.d.ts +23 -0
  94. package/login/directives/kc-class.directive.js +146 -0
  95. package/login/directives/kc-class.directive.js.map +1 -0
  96. package/login/i18n.d.ts +4 -0
  97. package/login/i18n.js +2 -0
  98. package/login/i18n.js.map +1 -0
  99. package/login/pages/code/code.component.d.ts +8 -0
  100. package/login/pages/code/code.component.html +26 -0
  101. package/login/pages/code/code.component.js +38 -0
  102. package/login/pages/code/code.component.js.map +1 -0
  103. package/login/pages/delete-account-confirm/delete-account-confirm.component.d.ts +8 -0
  104. package/login/pages/delete-account-confirm/delete-account-confirm.component.html +46 -0
  105. package/login/pages/delete-account-confirm/delete-account-confirm.component.js +38 -0
  106. package/login/pages/delete-account-confirm/delete-account-confirm.component.js.map +1 -0
  107. package/login/pages/delete-credential/delete-credential.component.d.ts +13 -0
  108. package/login/pages/delete-credential/delete-credential.component.html +35 -0
  109. package/login/pages/delete-credential/delete-credential.component.js +43 -0
  110. package/login/pages/delete-credential/delete-credential.component.js.map +1 -0
  111. package/login/pages/error/error.component.d.ts +8 -0
  112. package/login/pages/error/error.component.html +25 -0
  113. package/login/pages/error/error.component.js +38 -0
  114. package/login/pages/error/error.component.js.map +1 -0
  115. package/login/pages/frontchannel-logout/frontchannel-logout.component.d.ts +14 -0
  116. package/login/pages/frontchannel-logout/frontchannel-logout.component.html +35 -0
  117. package/login/pages/frontchannel-logout/frontchannel-logout.component.js +47 -0
  118. package/login/pages/frontchannel-logout/frontchannel-logout.component.js.map +1 -0
  119. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.d.ts +15 -0
  120. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +41 -0
  121. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js +54 -0
  122. package/login/pages/idp-review-user-profile/idp-review-user-profile.component.js.map +1 -0
  123. package/login/pages/info/info.component.d.ts +20 -0
  124. package/login/pages/info/info.component.html +54 -0
  125. package/login/pages/info/info.component.js +61 -0
  126. package/login/pages/info/info.component.js.map +1 -0
  127. package/login/pages/login/login.component.d.ts +14 -0
  128. package/login/pages/login/login.component.html +212 -0
  129. package/login/pages/login/login.component.js +58 -0
  130. package/login/pages/login/login.component.js.map +1 -0
  131. package/login/pages/login-config-totp/login-config-totp.component.d.ts +13 -0
  132. package/login/pages/login-config-totp/login-config-totp.component.html +190 -0
  133. package/login/pages/login-config-totp/login-config-totp.component.js +53 -0
  134. package/login/pages/login-config-totp/login-config-totp.component.js.map +1 -0
  135. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.d.ts +13 -0
  136. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +41 -0
  137. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js +43 -0
  138. package/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.js.map +1 -0
  139. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.d.ts +13 -0
  140. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +40 -0
  141. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js +43 -0
  142. package/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.js.map +1 -0
  143. package/login/pages/login-idp-link-email/login-idp-link-email.component.d.ts +13 -0
  144. package/login/pages/login-idp-link-email/login-idp-link-email.component.html +37 -0
  145. package/login/pages/login-idp-link-email/login-idp-link-email.component.js +43 -0
  146. package/login/pages/login-idp-link-email/login-idp-link-email.component.js.map +1 -0
  147. package/login/pages/login-oauth-grant/login-oauth-grant.component.d.ts +13 -0
  148. package/login/pages/login-oauth-grant/login-oauth-grant.component.html +92 -0
  149. package/login/pages/login-oauth-grant/login-oauth-grant.component.js +44 -0
  150. package/login/pages/login-oauth-grant/login-oauth-grant.component.js.map +1 -0
  151. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.d.ts +13 -0
  152. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +63 -0
  153. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js +43 -0
  154. package/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.js.map +1 -0
  155. package/login/pages/login-otp/login-otp.component.d.ts +13 -0
  156. package/login/pages/login-otp/login-otp.component.html +103 -0
  157. package/login/pages/login-otp/login-otp.component.js +44 -0
  158. package/login/pages/login-otp/login-otp.component.js.map +1 -0
  159. package/login/pages/login-page-expired/login-page-expired.component.d.ts +13 -0
  160. package/login/pages/login-page-expired/login-page-expired.component.html +35 -0
  161. package/login/pages/login-page-expired/login-page-expired.component.js +42 -0
  162. package/login/pages/login-page-expired/login-page-expired.component.js.map +1 -0
  163. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.d.ts +16 -0
  164. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +203 -0
  165. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js +91 -0
  166. package/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.js.map +1 -0
  167. package/login/pages/login-password/login-password.component.d.ts +14 -0
  168. package/login/pages/login-password/login-password.component.html +90 -0
  169. package/login/pages/login-password/login-password.component.js +52 -0
  170. package/login/pages/login-password/login-password.component.js.map +1 -0
  171. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.d.ts +15 -0
  172. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +155 -0
  173. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js +51 -0
  174. package/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.js.map +1 -0
  175. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.d.ts +13 -0
  176. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +76 -0
  177. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js +44 -0
  178. package/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.js.map +1 -0
  179. package/login/pages/login-reset-otp/login-reset-otp.component.d.ts +13 -0
  180. package/login/pages/login-reset-otp/login-reset-otp.component.html +65 -0
  181. package/login/pages/login-reset-otp/login-reset-otp.component.js +43 -0
  182. package/login/pages/login-reset-otp/login-reset-otp.component.js.map +1 -0
  183. package/login/pages/login-reset-password/login-reset-password.component.d.ts +13 -0
  184. package/login/pages/login-reset-password/login-reset-password.component.html +95 -0
  185. package/login/pages/login-reset-password/login-reset-password.component.js +44 -0
  186. package/login/pages/login-reset-password/login-reset-password.component.js.map +1 -0
  187. package/login/pages/login-update-password/login-update-password.component.d.ts +13 -0
  188. package/login/pages/login-update-password/login-update-password.component.html +116 -0
  189. package/login/pages/login-update-password/login-update-password.component.js +53 -0
  190. package/login/pages/login-update-password/login-update-password.component.js.map +1 -0
  191. package/login/pages/login-update-profile/login-update-profile.component.d.ts +14 -0
  192. package/login/pages/login-update-profile/login-update-profile.component.html +59 -0
  193. package/login/pages/login-update-profile/login-update-profile.component.js +50 -0
  194. package/login/pages/login-update-profile/login-update-profile.component.js.map +1 -0
  195. package/login/pages/login-username/login-username.component.d.ts +14 -0
  196. package/login/pages/login-username/login-username.component.html +161 -0
  197. package/login/pages/login-username/login-username.component.js +56 -0
  198. package/login/pages/login-username/login-username.component.js.map +1 -0
  199. package/login/pages/login-verify-email/login-verify-email.component.d.ts +13 -0
  200. package/login/pages/login-verify-email/login-verify-email.component.html +27 -0
  201. package/login/pages/login-verify-email/login-verify-email.component.js +43 -0
  202. package/login/pages/login-verify-email/login-verify-email.component.js.map +1 -0
  203. package/login/pages/login-x509-info/login-x509-info.component.d.ts +13 -0
  204. package/login/pages/login-x509-info/login-x509-info.component.html +102 -0
  205. package/login/pages/login-x509-info/login-x509-info.component.js +43 -0
  206. package/login/pages/login-x509-info/login-x509-info.component.js.map +1 -0
  207. package/login/pages/logout-confirm/logout-confirm.component.d.ts +13 -0
  208. package/login/pages/logout-confirm/logout-confirm.component.html +59 -0
  209. package/login/pages/logout-confirm/logout-confirm.component.js +43 -0
  210. package/login/pages/logout-confirm/logout-confirm.component.js.map +1 -0
  211. package/login/pages/register/register.component.d.ts +16 -0
  212. package/login/pages/register/register.component.html +126 -0
  213. package/login/pages/register/register.component.js +62 -0
  214. package/login/pages/register/register.component.js.map +1 -0
  215. package/login/pages/saml-post-form/saml-post-form.component.d.ts +16 -0
  216. package/login/pages/saml-post-form/saml-post-form.component.html +51 -0
  217. package/login/pages/saml-post-form/saml-post-form.component.js +55 -0
  218. package/login/pages/saml-post-form/saml-post-form.component.js.map +1 -0
  219. package/login/pages/select-authenticator/select-authenticator.component.d.ts +13 -0
  220. package/login/pages/select-authenticator/select-authenticator.component.html +49 -0
  221. package/login/pages/select-authenticator/select-authenticator.component.js +51 -0
  222. package/login/pages/select-authenticator/select-authenticator.component.js.map +1 -0
  223. package/login/pages/terms/terms.component.d.ts +13 -0
  224. package/login/pages/terms/terms.component.html +36 -0
  225. package/login/pages/terms/terms.component.js +43 -0
  226. package/login/pages/terms/terms.component.js.map +1 -0
  227. package/login/pages/update-email/update-email.component.d.ts +14 -0
  228. package/login/pages/update-email/update-email.component.html +58 -0
  229. package/login/pages/update-email/update-email.component.js +52 -0
  230. package/login/pages/update-email/update-email.component.js.map +1 -0
  231. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.d.ts +20 -0
  232. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +162 -0
  233. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js +93 -0
  234. package/login/pages/webauthn-authenticate/webauthn-authenticate.component.js.map +1 -0
  235. package/login/pages/webauthn-error/webauthn-error.component.d.ts +14 -0
  236. package/login/pages/webauthn-error/webauthn-error.component.html +60 -0
  237. package/login/pages/webauthn-error/webauthn-error.component.js +57 -0
  238. package/login/pages/webauthn-error/webauthn-error.component.js.map +1 -0
  239. package/login/pages/webauthn-register/webauthn-register.component.d.ts +19 -0
  240. package/login/pages/webauthn-register/webauthn-register.component.html +82 -0
  241. package/login/pages/webauthn-register/webauthn-register.component.js +86 -0
  242. package/login/pages/webauthn-register/webauthn-register.component.js.map +1 -0
  243. package/login/pipes/advanced-msg-str.pipe.d.ts +5 -0
  244. package/login/pipes/advanced-msg-str.pipe.js +31 -0
  245. package/login/pipes/advanced-msg-str.pipe.js.map +1 -0
  246. package/login/pipes/index.d.ts +6 -0
  247. package/login/pipes/index.js +7 -0
  248. package/login/pipes/index.js.map +1 -0
  249. package/login/pipes/input-type.pipe.d.ts +4 -0
  250. package/login/pipes/input-type.pipe.js +23 -0
  251. package/login/pipes/input-type.pipe.js.map +1 -0
  252. package/login/pipes/kc-sanitize.pipe.d.ts +7 -0
  253. package/login/pipes/kc-sanitize.pipe.js +36 -0
  254. package/login/pipes/kc-sanitize.pipe.js.map +1 -0
  255. package/login/pipes/msg-str.pipe.d.ts +6 -0
  256. package/login/pipes/msg-str.pipe.js +31 -0
  257. package/login/pipes/msg-str.pipe.js.map +1 -0
  258. package/login/pipes/to-array.pipe.d.ts +4 -0
  259. package/login/pipes/to-array.pipe.js +24 -0
  260. package/login/pipes/to-array.pipe.js.map +1 -0
  261. package/login/pipes/to-number.pipe.d.ts +4 -0
  262. package/login/pipes/to-number.pipe.js +23 -0
  263. package/login/pipes/to-number.pipe.js.map +1 -0
  264. package/login/services/index.d.ts +2 -0
  265. package/login/services/index.js +3 -0
  266. package/login/services/index.js.map +1 -0
  267. package/login/services/login-resource-injector.service.d.ts +8 -0
  268. package/login/services/login-resource-injector.service.js +71 -0
  269. package/login/services/login-resource-injector.service.js.map +1 -0
  270. package/login/services/user-profile-form.service.d.ts +82 -0
  271. package/login/services/user-profile-form.service.js +1031 -0
  272. package/login/services/user-profile-form.service.js.map +1 -0
  273. package/package.json +450 -0
  274. package/src/lib/i18n.ts +9 -0
  275. package/src/lib/models/index.ts +1 -0
  276. package/src/lib/models/script.model.ts +6 -0
  277. package/src/lib/providers/keycloakify-angular.providers.ts +92 -0
  278. package/src/lib/public-api.ts +12 -0
  279. package/src/lib/services/i18n.service.ts +5 -0
  280. package/src/lib/services/index.ts +2 -0
  281. package/src/lib/services/resource-injector.service.ts +50 -0
  282. package/src/login/DefaultPage.ts +208 -0
  283. package/src/login/KcContext.ts +1 -0
  284. package/src/login/classes/component-reference.class.ts +5 -0
  285. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.html +24 -0
  286. package/src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts +144 -0
  287. package/src/login/components/field-errors/field-errors.component.html +15 -0
  288. package/src/login/components/field-errors/field-errors.component.ts +41 -0
  289. package/src/login/components/group-label/group-label.component.html +30 -0
  290. package/src/login/components/group-label/group-label.component.ts +50 -0
  291. package/src/login/components/index.ts +11 -0
  292. package/src/login/components/input-field-by-type/input-field-by-type.component.html +63 -0
  293. package/src/login/components/input-field-by-type/input-field-by-type.component.ts +67 -0
  294. package/src/login/components/input-tag/input-tag.component.html +49 -0
  295. package/src/login/components/input-tag/input-tag.component.ts +108 -0
  296. package/src/login/components/input-tag-selects/input-tag-selects.component.html +29 -0
  297. package/src/login/components/input-tag-selects/input-tag-selects.component.ts +150 -0
  298. package/src/login/components/logout-other-sessions/logout-other-sessions.component.html +19 -0
  299. package/src/login/components/logout-other-sessions/logout-other-sessions.component.ts +31 -0
  300. package/src/login/components/password-wrapper/password-wrapper.component.html +15 -0
  301. package/src/login/components/password-wrapper/password-wrapper.component.ts +61 -0
  302. package/src/login/components/select-tag/select-tag.component.html +31 -0
  303. package/src/login/components/select-tag/select-tag.component.ts +109 -0
  304. package/src/login/components/textarea-tag/textarea-tag.component.html +18 -0
  305. package/src/login/components/textarea-tag/textarea-tag.component.ts +63 -0
  306. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.html +85 -0
  307. package/src/login/components/user-profile-form-fields/user-profile-form-fields.component.ts +84 -0
  308. package/src/login/containers/template.component.html +203 -0
  309. package/src/login/containers/template.component.ts +94 -0
  310. package/src/login/directives/attributes.directive.ts +23 -0
  311. package/src/login/directives/index.ts +2 -0
  312. package/src/login/directives/kc-class.directive.ts +167 -0
  313. package/src/login/i18n.ts +4 -0
  314. package/src/login/pages/code/code.component.html +26 -0
  315. package/src/login/pages/code/code.component.ts +31 -0
  316. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.html +46 -0
  317. package/src/login/pages/delete-account-confirm/delete-account-confirm.component.ts +32 -0
  318. package/src/login/pages/delete-credential/delete-credential.component.html +35 -0
  319. package/src/login/pages/delete-credential/delete-credential.component.ts +43 -0
  320. package/src/login/pages/error/error.component.html +25 -0
  321. package/src/login/pages/error/error.component.ts +31 -0
  322. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.html +35 -0
  323. package/src/login/pages/frontchannel-logout/frontchannel-logout.component.ts +49 -0
  324. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.html +41 -0
  325. package/src/login/pages/idp-review-user-profile/idp-review-user-profile.component.ts +55 -0
  326. package/src/login/pages/info/info.component.html +54 -0
  327. package/src/login/pages/info/info.component.ts +65 -0
  328. package/src/login/pages/login/login.component.html +212 -0
  329. package/src/login/pages/login/login.component.ts +61 -0
  330. package/src/login/pages/login-config-totp/login-config-totp.component.html +190 -0
  331. package/src/login/pages/login-config-totp/login-config-totp.component.ts +57 -0
  332. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.html +41 -0
  333. package/src/login/pages/login-idp-link-confirm/login-idp-link-confirm.component.ts +43 -0
  334. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.html +40 -0
  335. package/src/login/pages/login-idp-link-confirm-override/login-idp-link-confirm-override.component.ts +45 -0
  336. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.html +37 -0
  337. package/src/login/pages/login-idp-link-email/login-idp-link-email.component.ts +43 -0
  338. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.html +92 -0
  339. package/src/login/pages/login-oauth-grant/login-oauth-grant.component.ts +44 -0
  340. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.html +63 -0
  341. package/src/login/pages/login-oauth2-device-verify-user-code/login-oauth2-device-verify-user-code.component.ts +45 -0
  342. package/src/login/pages/login-otp/login-otp.component.html +103 -0
  343. package/src/login/pages/login-otp/login-otp.component.ts +43 -0
  344. package/src/login/pages/login-page-expired/login-page-expired.component.html +35 -0
  345. package/src/login/pages/login-page-expired/login-page-expired.component.ts +42 -0
  346. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.html +203 -0
  347. package/src/login/pages/login-passkeys-conditional-authenticate/login-passkeys-conditional-authenticate.component.ts +101 -0
  348. package/src/login/pages/login-password/login-password.component.html +90 -0
  349. package/src/login/pages/login-password/login-password.component.ts +53 -0
  350. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.html +155 -0
  351. package/src/login/pages/login-recovery-authn-code-config/login-recovery-authn-code-config.component.ts +55 -0
  352. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.html +76 -0
  353. package/src/login/pages/login-recovery-authn-code-input/login-recovery-authn-code-input.component.ts +47 -0
  354. package/src/login/pages/login-reset-otp/login-reset-otp.component.html +65 -0
  355. package/src/login/pages/login-reset-otp/login-reset-otp.component.ts +42 -0
  356. package/src/login/pages/login-reset-password/login-reset-password.component.html +95 -0
  357. package/src/login/pages/login-reset-password/login-reset-password.component.ts +44 -0
  358. package/src/login/pages/login-update-password/login-update-password.component.html +116 -0
  359. package/src/login/pages/login-update-password/login-update-password.component.ts +56 -0
  360. package/src/login/pages/login-update-profile/login-update-profile.component.html +59 -0
  361. package/src/login/pages/login-update-profile/login-update-profile.component.ts +52 -0
  362. package/src/login/pages/login-username/login-username.component.html +161 -0
  363. package/src/login/pages/login-username/login-username.component.ts +56 -0
  364. package/src/login/pages/login-verify-email/login-verify-email.component.html +27 -0
  365. package/src/login/pages/login-verify-email/login-verify-email.component.ts +43 -0
  366. package/src/login/pages/login-x509-info/login-x509-info.component.html +102 -0
  367. package/src/login/pages/login-x509-info/login-x509-info.component.ts +42 -0
  368. package/src/login/pages/logout-confirm/logout-confirm.component.html +59 -0
  369. package/src/login/pages/logout-confirm/logout-confirm.component.ts +42 -0
  370. package/src/login/pages/register/register.component.html +126 -0
  371. package/src/login/pages/register/register.component.ts +62 -0
  372. package/src/login/pages/saml-post-form/saml-post-form.component.html +51 -0
  373. package/src/login/pages/saml-post-form/saml-post-form.component.ts +58 -0
  374. package/src/login/pages/select-authenticator/select-authenticator.component.html +49 -0
  375. package/src/login/pages/select-authenticator/select-authenticator.component.ts +51 -0
  376. package/src/login/pages/terms/terms.component.html +36 -0
  377. package/src/login/pages/terms/terms.component.ts +42 -0
  378. package/src/login/pages/update-email/update-email.component.html +58 -0
  379. package/src/login/pages/update-email/update-email.component.ts +52 -0
  380. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.html +162 -0
  381. package/src/login/pages/webauthn-authenticate/webauthn-authenticate.component.ts +106 -0
  382. package/src/login/pages/webauthn-error/webauthn-error.component.html +60 -0
  383. package/src/login/pages/webauthn-error/webauthn-error.component.ts +57 -0
  384. package/src/login/pages/webauthn-register/webauthn-register.component.html +82 -0
  385. package/src/login/pages/webauthn-register/webauthn-register.component.ts +106 -0
  386. package/src/login/pipes/advanced-msg-str.pipe.ts +13 -0
  387. package/src/login/pipes/index.ts +6 -0
  388. package/src/login/pipes/input-type.pipe.ts +15 -0
  389. package/src/login/pipes/kc-sanitize.pipe.ts +36 -0
  390. package/src/login/pipes/msg-str.pipe.ts +14 -0
  391. package/src/login/pipes/to-array.pipe.ts +15 -0
  392. package/src/login/pipes/to-number.pipe.ts +13 -0
  393. package/src/login/services/index.ts +2 -0
  394. package/src/login/services/login-resource-injector.service.ts +72 -0
  395. package/src/login/services/user-profile-form.service.ts +1504 -0
  396. package/src/tsconfig.json +18 -0
@@ -0,0 +1,132 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var InputTagSelectsComponent_1;
8
+ import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from "@angular/core";
9
+ import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
10
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
11
+ import { KcClassDirective } from "../../../login/directives/kc-class.directive";
12
+ import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
13
+ let InputTagSelectsComponent = InputTagSelectsComponent_1 = class InputTagSelectsComponent extends ComponentReference {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.attribute = input();
17
+ this.valueOrValues = input();
18
+ this.dispatchFormAction = output();
19
+ this.displayableErrors = input();
20
+ this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
21
+ this.classes = inject(CLASSES);
22
+ this.context = computed(() => {
23
+ const attribute = this.attribute();
24
+ if (attribute) {
25
+ const { inputType } = attribute.annotations;
26
+ switch (inputType) {
27
+ case "select-radiobuttons":
28
+ return {
29
+ inputType: "radio",
30
+ classDiv: "kcInputClassRadio",
31
+ classInput: "kcInputClassRadioInput",
32
+ classLabel: "kcInputClassRadioLabel"
33
+ };
34
+ case "multiselect-checkboxes":
35
+ return {
36
+ inputType: "checkbox",
37
+ classDiv: "kcInputClassCheckbox",
38
+ classInput: "kcInputClassCheckboxInput",
39
+ classLabel: "kcInputClassCheckboxLabel"
40
+ };
41
+ }
42
+ }
43
+ return null;
44
+ });
45
+ this.options = computed(() => {
46
+ const attribute = this.attribute();
47
+ if (attribute) {
48
+ return (() => {
49
+ var _a, _b;
50
+ walk: {
51
+ const { inputOptionsFromValidation } = attribute.annotations;
52
+ if (inputOptionsFromValidation === undefined) {
53
+ break walk;
54
+ }
55
+ const validator = attribute.validators[inputOptionsFromValidation];
56
+ if (validator === undefined) {
57
+ break walk;
58
+ }
59
+ if (validator.options === undefined) {
60
+ break walk;
61
+ }
62
+ return validator.options;
63
+ }
64
+ return (_b = (_a = attribute.validators.options) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : [];
65
+ })();
66
+ }
67
+ return [];
68
+ });
69
+ }
70
+ checked(option) {
71
+ const valueOrValues = this.valueOrValues();
72
+ if (valueOrValues instanceof Array) {
73
+ return valueOrValues.includes(option);
74
+ }
75
+ return valueOrValues === option;
76
+ }
77
+ onChange(event, option) {
78
+ var _a, _b;
79
+ const valueOrValues = this.valueOrValues();
80
+ const isChecked = event.target.checked;
81
+ this.dispatchFormAction.emit({
82
+ action: "update",
83
+ name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
84
+ valueOrValues: (() => {
85
+ var _a;
86
+ if (valueOrValues instanceof Array) {
87
+ const newValues = [...valueOrValues];
88
+ if (isChecked) {
89
+ newValues.push(option);
90
+ }
91
+ else {
92
+ newValues.splice(newValues.indexOf(option), 1);
93
+ }
94
+ return newValues;
95
+ }
96
+ return ((_a = event.target) === null || _a === void 0 ? void 0 : _a.checked) ? option : "";
97
+ })()
98
+ });
99
+ }
100
+ onBlur() {
101
+ var _a, _b;
102
+ this.dispatchFormAction.emit({
103
+ action: "focus lost",
104
+ name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
105
+ fieldIndex: undefined
106
+ });
107
+ }
108
+ };
109
+ InputTagSelectsComponent = InputTagSelectsComponent_1 = __decorate([
110
+ Component({
111
+ standalone: true,
112
+ styles: [
113
+ `
114
+ :host {
115
+ display: contents;
116
+ }
117
+ `
118
+ ],
119
+ imports: [KcClassDirective, AdvancedMsgStrPipe],
120
+ selector: "kc-input-tag-selects",
121
+ templateUrl: "input-tag-selects.component.html",
122
+ changeDetection: ChangeDetectionStrategy.OnPush,
123
+ providers: [
124
+ {
125
+ provide: ComponentReference,
126
+ useExisting: forwardRef(() => InputTagSelectsComponent_1)
127
+ }
128
+ ]
129
+ })
130
+ ], InputTagSelectsComponent);
131
+ export { InputTagSelectsComponent };
132
+ //# sourceMappingURL=input-tag-selects.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-tag-selects.component.js","sourceRoot":"","sources":["../../../src/login/components/input-tag-selects/input-tag-selects.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAA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from "keycloakify/login/lib/kcClsx";
2
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
3
+ export declare class LogoutOtherSessionsComponent extends ComponentReference {
4
+ doUseDefaultCss: boolean;
5
+ classes: Partial<Record<ClassKey, string>>;
6
+ }
@@ -0,0 +1,19 @@
1
+ <div
2
+ id="kc-form-options"
3
+ [kcClass]="'kcFormOptionsClass'"
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>
17
+ </div>
18
+ </div>
19
+ </div>
@@ -0,0 +1,43 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var LogoutOtherSessionsComponent_1;
8
+ import { ChangeDetectionStrategy, Component, forwardRef, inject } from "@angular/core";
9
+ import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
10
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
11
+ import { KcClassDirective } from "../../../login/directives/kc-class.directive";
12
+ import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
13
+ let LogoutOtherSessionsComponent = LogoutOtherSessionsComponent_1 = class LogoutOtherSessionsComponent extends ComponentReference {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
17
+ this.classes = inject(CLASSES);
18
+ }
19
+ };
20
+ LogoutOtherSessionsComponent = LogoutOtherSessionsComponent_1 = __decorate([
21
+ Component({
22
+ selector: "kc-logout-other-sessions",
23
+ styles: [
24
+ `
25
+ :host {
26
+ display: contents;
27
+ }
28
+ `
29
+ ],
30
+ standalone: true,
31
+ imports: [KcClassDirective, MsgStrPipe],
32
+ changeDetection: ChangeDetectionStrategy.OnPush,
33
+ templateUrl: "./logout-other-sessions.component.html",
34
+ providers: [
35
+ {
36
+ provide: ComponentReference,
37
+ useExisting: forwardRef(() => LogoutOtherSessionsComponent_1)
38
+ }
39
+ ]
40
+ })
41
+ ], LogoutOtherSessionsComponent);
42
+ export { LogoutOtherSessionsComponent };
43
+ //# sourceMappingURL=logout-other-sessions.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logout-other-sessions.component.js","sourceRoot":"","sources":["../../../src/login/components/logout-other-sessions/logout-other-sessions.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAsBpE,IAAM,4BAA4B,oCAAlC,MAAM,4BAA6B,SAAQ,kBAAkB;IAA7D;;QACM,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA,CAAA;AAHY,4BAA4B;IApBxC,SAAS,CAAC;QACP,QAAQ,EAAE,0BAA0B;QACpC,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,UAAU,EAAE,IAAI;QAChB,OAAO,EAAE,CAAC,gBAAgB,EAAE,UAAU,CAAC;QACvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,WAAW,EAAE,wCAAwC;QACrD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,8BAA4B,CAAC;aAC9D;SACJ;KACJ,CAAC;GACW,4BAA4B,CAGxC;SAHY,4BAA4B"}
@@ -0,0 +1,12 @@
1
+ import { WritableSignal } from "@angular/core";
2
+ import { ClassKey } from "keycloakify/login/lib/kcClsx";
3
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
4
+ export declare class PasswordWrapperComponent extends ComponentReference {
5
+ private renderer;
6
+ passwordInputId: import("@angular/core").InputSignal<string>;
7
+ doUseDefaultCss: boolean;
8
+ classes: Partial<Record<ClassKey, string>>;
9
+ isPasswordRevealed: WritableSignal<boolean>;
10
+ togglePasswordVisibility(): void;
11
+ private setPasswordInputType;
12
+ }
@@ -0,0 +1,15 @@
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>
15
+ </div>
@@ -0,0 +1,57 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var PasswordWrapperComponent_1;
8
+ import { AsyncPipe } from "@angular/common";
9
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input, Renderer2, signal } from "@angular/core";
10
+ import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
11
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
12
+ import { KcClassDirective } from "../../../login/directives/kc-class.directive";
13
+ import { MsgStrPipe } from "../../../login/pipes/msg-str.pipe";
14
+ let PasswordWrapperComponent = PasswordWrapperComponent_1 = class PasswordWrapperComponent extends ComponentReference {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.renderer = inject(Renderer2);
18
+ this.passwordInputId = input.required();
19
+ this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
20
+ this.classes = inject(CLASSES);
21
+ this.isPasswordRevealed = signal(false);
22
+ }
23
+ togglePasswordVisibility() {
24
+ this.isPasswordRevealed.update(revealed => !revealed);
25
+ this.setPasswordInputType();
26
+ }
27
+ setPasswordInputType() {
28
+ const input = document.getElementById(this.passwordInputId());
29
+ if (input) {
30
+ this.renderer.setProperty(input, "type", this.isPasswordRevealed() ? "text" : "password");
31
+ }
32
+ }
33
+ };
34
+ PasswordWrapperComponent = PasswordWrapperComponent_1 = __decorate([
35
+ Component({
36
+ selector: "kc-password-wrapper",
37
+ styles: [
38
+ `
39
+ :host {
40
+ display: contents;
41
+ }
42
+ `
43
+ ],
44
+ standalone: true,
45
+ changeDetection: ChangeDetectionStrategy.OnPush,
46
+ imports: [KcClassDirective, AsyncPipe, MsgStrPipe],
47
+ templateUrl: "./password-wrapper.component.html",
48
+ providers: [
49
+ {
50
+ provide: ComponentReference,
51
+ useExisting: forwardRef(() => PasswordWrapperComponent_1)
52
+ }
53
+ ]
54
+ })
55
+ ], PasswordWrapperComponent);
56
+ export { PasswordWrapperComponent };
57
+ //# sourceMappingURL=password-wrapper.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-wrapper.component.js","sourceRoot":"","sources":["../../../src/login/components/password-wrapper/password-wrapper.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,SAAS,EACT,MAAM,EAET,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAE/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAsBpE,IAAM,wBAAwB,gCAA9B,MAAM,wBAAyB,SAAQ,kBAAkB;IAAzD;;QACK,aAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QACrC,oBAAe,GAAG,KAAK,CAAC,QAAQ,EAAU,CAAC;QAClC,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QAEtE,uBAAkB,GAA4B,MAAM,CAAC,KAAK,CAAC,CAAC;IAiBhE,CAAC;IAfG,wBAAwB;QACpB,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAChC,CAAC;IAEO,oBAAoB;QACxB,MAAM,KAAK,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;QAC9D,IAAI,KAAK,EAAE;YACP,IAAI,CAAC,QAAQ,CAAC,WAAW,CACrB,KAAK,EACL,MAAM,EACN,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAClD,CAAC;SACL;IACL,CAAC;CACJ,CAAA;AAvBY,wBAAwB;IApBpC,SAAS,CAAC;QACP,QAAQ,EAAE,qBAAqB;QAC/B,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,OAAO,EAAE,CAAC,gBAAgB,EAAE,SAAS,EAAE,UAAU,CAAC;QAClD,WAAW,EAAE,mCAAmC;QAChD,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,0BAAwB,CAAC;aAC1D;SACJ;KACJ,CAAC;GACW,wBAAwB,CAuBpC;SAvBY,wBAAwB"}
@@ -0,0 +1,16 @@
1
+ import { Attribute } from "keycloakify/login/KcContext";
2
+ import { ClassKey } from "keycloakify/login/lib/kcClsx";
3
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
4
+ import { FormAction, FormFieldError } from "../../../login/services/user-profile-form.service";
5
+ export declare class SelectTagComponent extends ComponentReference {
6
+ attribute: import("@angular/core").InputSignal<Attribute | undefined>;
7
+ valueOrValues: import("@angular/core").InputSignal<string | string[] | undefined>;
8
+ displayableErrors: import("@angular/core").InputSignal<FormFieldError[] | undefined>;
9
+ dispatchFormAction: import("@angular/core").OutputEmitterRef<FormAction>;
10
+ doUseDefaultCss: boolean;
11
+ classes: Partial<Record<ClassKey, string>>;
12
+ isMultiple: import("@angular/core").Signal<boolean>;
13
+ options: import("@angular/core").Signal<string[]>;
14
+ onChange(event: Event): void;
15
+ onBlur(): void;
16
+ }
@@ -0,0 +1,31 @@
1
+ @let attr = attribute();
2
+ @let multiple = isMultiple();
3
+ @if (attr) {
4
+ <select
5
+ [id]="attr.name"
6
+ [name]="attr.name"
7
+ [value]="valueOrValues()"
8
+ [kcClass]="'kcInputClass'"
9
+ [attr.aria-invalid]="!!displayableErrors()?.length"
10
+ [disabled]="attr.readOnly"
11
+ [multiple]="multiple"
12
+ [size]="!attr.annotations.inputTypeSize ? undefined : (attr.annotations.inputTypeSize | toNumber)"
13
+ (change)="onChange($event)"
14
+ (blur)="onBlur()"
15
+ >
16
+ @if (!multiple) {
17
+ <option value=""></option>
18
+ }
19
+ @for (option of options(); track option) {
20
+ <option [value]="option">
21
+ @if (!!attr.annotations.inputOptionLabels) {
22
+ {{ attr.annotations.inputOptionLabels[option] ?? option | advancedMsgStr }}
23
+ } @else if (!!attr.annotations.inputOptionLabelsI18nPrefix) {
24
+ {{ attr.annotations.inputOptionLabelsI18nPrefix + '.' + option | advancedMsgStr }}
25
+ } @else {
26
+ {{ option }}
27
+ }
28
+ </option>
29
+ }
30
+ </select>
31
+ }
@@ -0,0 +1,97 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var SelectTagComponent_1;
8
+ import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input, output } from "@angular/core";
9
+ import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
10
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
11
+ import { KcClassDirective } from "../../../login/directives/kc-class.directive";
12
+ import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
13
+ import { ToNumberPipe } from "../../../login/pipes/to-number.pipe";
14
+ let SelectTagComponent = SelectTagComponent_1 = class SelectTagComponent extends ComponentReference {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.attribute = input();
18
+ this.valueOrValues = input();
19
+ this.displayableErrors = input();
20
+ this.dispatchFormAction = output();
21
+ this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
22
+ this.classes = inject(CLASSES);
23
+ this.isMultiple = computed(() => {
24
+ var _a, _b;
25
+ return ((_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.annotations) === null || _b === void 0 ? void 0 : _b.inputType) === "multiselect";
26
+ });
27
+ this.options = computed(() => {
28
+ const attribute = this.attribute();
29
+ if (attribute) {
30
+ return (() => {
31
+ var _a, _b;
32
+ walk: {
33
+ const { inputOptionsFromValidation } = attribute.annotations;
34
+ if (inputOptionsFromValidation === undefined) {
35
+ break walk;
36
+ }
37
+ const validator = attribute.validators[inputOptionsFromValidation];
38
+ if (validator === undefined) {
39
+ break walk;
40
+ }
41
+ if (validator.options === undefined) {
42
+ break walk;
43
+ }
44
+ return validator.options;
45
+ }
46
+ return (_b = (_a = attribute.validators.options) === null || _a === void 0 ? void 0 : _a.options) !== null && _b !== void 0 ? _b : [];
47
+ })();
48
+ }
49
+ return [];
50
+ });
51
+ }
52
+ onChange(event) {
53
+ var _a, _b;
54
+ this.dispatchFormAction.emit({
55
+ action: "update",
56
+ name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
57
+ valueOrValues: (() => {
58
+ if (this.isMultiple()) {
59
+ return Array.from(event.target.selectedOptions).map(option => option.value);
60
+ }
61
+ return event.target.value;
62
+ })()
63
+ });
64
+ }
65
+ onBlur() {
66
+ var _a, _b;
67
+ this.dispatchFormAction.emit({
68
+ action: "focus lost",
69
+ name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
70
+ fieldIndex: undefined
71
+ });
72
+ }
73
+ };
74
+ SelectTagComponent = SelectTagComponent_1 = __decorate([
75
+ Component({
76
+ standalone: true,
77
+ styles: [
78
+ `
79
+ :host {
80
+ display: contents;
81
+ }
82
+ `
83
+ ],
84
+ imports: [KcClassDirective, ToNumberPipe, AdvancedMsgStrPipe],
85
+ selector: "kc-select-tag",
86
+ templateUrl: "select-tag.component.html",
87
+ changeDetection: ChangeDetectionStrategy.OnPush,
88
+ providers: [
89
+ {
90
+ provide: ComponentReference,
91
+ useExisting: forwardRef(() => SelectTagComponent_1)
92
+ }
93
+ ]
94
+ })
95
+ ], SelectTagComponent);
96
+ export { SelectTagComponent };
97
+ //# sourceMappingURL=select-tag.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-tag.component.js","sourceRoot":"","sources":["../../../src/login/components/select-tag/select-tag.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AA0BxE,IAAM,kBAAkB,0BAAxB,MAAM,kBAAmB,SAAQ,kBAAkB;IAAnD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,kBAAa,GAAG,KAAK,EAAqB,CAAC;QAC3C,sBAAiB,GAAG,KAAK,EAAoB,CAAC;QAC9C,uBAAkB,GAAG,MAAM,EAAc,CAAC;QACjC,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;QAEtE,eAAU,GAAG,QAAQ,CAAC,GAAG,EAAE;;YACvB,OAAO,CAAA,MAAA,MAAA,IAAI,C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CAAC;iBACjC;gBAED,OAAQ,KAAK,CAAC,MAA4B,CAAC,KAAK,CAAC;YACrD,CAAC,CAAC,EAAE;SACP,CAAC,CAAC;IACP,CAAC;IAED,MAAM;;QACF,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;YACzB,MAAM,EAAE,YAAY;YACpB,IAAI,EAAE,MAAA,MAAA,IAAI,CAAC,SAAS,EAAE,0CAAE,IAAI,mCAAI,EAAE;YAClC,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAnEY,kBAAkB;IApB9B,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE,CAAC,gBAAgB,EAAE,YAAY,EAAE,kBAAkB,CAAC;QAC7D,QAAQ,EAAE,eAAe;QACzB,WAAW,EAAE,2BAA2B;QACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,oBAAkB,CAAC;aACpD;SACJ;KACJ,CAAC;GACW,kBAAkB,CAmE9B;SAnEY,kBAAkB"}
@@ -0,0 +1,14 @@
1
+ import { Attribute } from "keycloakify/login/KcContext";
2
+ import { ClassKey } from "keycloakify/login/lib/kcClsx";
3
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
4
+ import { FormAction, FormFieldError } from "../../../login/services/user-profile-form.service";
5
+ export declare class TextareaTagComponent extends ComponentReference {
6
+ attribute: import("@angular/core").InputSignal<Attribute | undefined>;
7
+ value: import("@angular/core").InputSignal<string | undefined>;
8
+ displayableErrors: import("@angular/core").InputSignal<FormFieldError[] | undefined>;
9
+ dispatchFormAction: import("@angular/core").OutputEmitterRef<FormAction>;
10
+ doUseDefaultCss: boolean;
11
+ classes: Partial<Record<ClassKey, string>>;
12
+ onChange(event: Event): void;
13
+ onBlur(): void;
14
+ }
@@ -0,0 +1,18 @@
1
+ @let attr = attribute();
2
+ @if (attr) {
3
+ <textarea
4
+ [id]="attr.name"
5
+ [name]="attr.name"
6
+ [kcClass]="'kcInputClass'"
7
+ [attr.aria-invalid]="!!displayableErrors()?.length"
8
+ [disabled]="attr.readOnly"
9
+ [cols]="attr.annotations.inputTypeCols === undefined ? undefined : (attr.annotations.inputTypeCols | toNumber)"
10
+ [rows]="attr.annotations.inputTypeRows === undefined ? undefined : (attr.annotations.inputTypeRows | toNumber)"
11
+ [maxLength]="
12
+ attr.annotations.inputTypeMaxlength === undefined ? undefined : (attr.annotations.inputTypeMaxlength | toNumber)
13
+ "
14
+ [value]="value()"
15
+ (change)="onChange($event)"
16
+ (blur)="onBlur()"
17
+ ></textarea>
18
+ }
@@ -0,0 +1,63 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var TextareaTagComponent_1;
8
+ import { ChangeDetectionStrategy, Component, forwardRef, inject, input, output } from "@angular/core";
9
+ import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
10
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
11
+ import { KcClassDirective } from "../../../login/directives/kc-class.directive";
12
+ import { ToNumberPipe } from "../../../login/pipes/to-number.pipe";
13
+ let TextareaTagComponent = TextareaTagComponent_1 = class TextareaTagComponent extends ComponentReference {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.attribute = input();
17
+ this.value = input();
18
+ this.displayableErrors = input();
19
+ this.dispatchFormAction = output();
20
+ this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
21
+ this.classes = inject(CLASSES);
22
+ }
23
+ onChange(event) {
24
+ var _a, _b;
25
+ this.dispatchFormAction.emit({
26
+ action: "update",
27
+ name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
28
+ valueOrValues: event.target.value
29
+ });
30
+ }
31
+ onBlur() {
32
+ var _a, _b;
33
+ this.dispatchFormAction.emit({
34
+ action: "focus lost",
35
+ name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
36
+ fieldIndex: undefined
37
+ });
38
+ }
39
+ };
40
+ TextareaTagComponent = TextareaTagComponent_1 = __decorate([
41
+ Component({
42
+ standalone: true,
43
+ styles: [
44
+ `
45
+ :host {
46
+ display: contents;
47
+ }
48
+ `
49
+ ],
50
+ imports: [KcClassDirective, ToNumberPipe],
51
+ selector: "kc-textarea-tag",
52
+ templateUrl: "textarea-tag.component.html",
53
+ changeDetection: ChangeDetectionStrategy.OnPush,
54
+ providers: [
55
+ {
56
+ provide: ComponentReference,
57
+ useExisting: forwardRef(() => TextareaTagComponent_1)
58
+ }
59
+ ]
60
+ })
61
+ ], TextareaTagComponent);
62
+ export { TextareaTagComponent };
63
+ //# sourceMappingURL=textarea-tag.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea-tag.component.js","sourceRoot":"","sources":["../../../src/login/components/textarea-tag/textarea-tag.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACL,MAAM,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAA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AAC;GACW,oBAAoB,CAuBhC;SAvBY,oBAAoB"}
@@ -0,0 +1,25 @@
1
+ import { TemplateRef } from "@angular/core";
2
+ import { ClassKey } from "keycloakify/login/lib/kcClsx";
3
+ import { KcContext } from "keycloakify/login/KcContext";
4
+ import { ComponentReference } from "../../../login/classes/component-reference.class";
5
+ import { FormAction, UserProfileFormService } from "../../../login/services/user-profile-form.service";
6
+ export declare class UserProfileFormFieldsComponent extends ComponentReference {
7
+ kcContext: KcContext;
8
+ userProfileFormService: UserProfileFormService;
9
+ doMakeUserConfirmPassword: boolean;
10
+ doUseDefaultCss: boolean;
11
+ classes: Partial<Record<ClassKey, string>>;
12
+ onIsFormSubmittable: import("@angular/core").OutputEmitterRef<boolean>;
13
+ formState: import("@angular/core").Signal<{
14
+ isFormSubmittable: boolean;
15
+ formFieldStates: {
16
+ attribute: import("keycloakify/login/KcContext").Attribute;
17
+ displayableErrors: import("../../../login/services/user-profile-form.service").FormFieldError[];
18
+ valueOrValues: string | string[];
19
+ }[];
20
+ }>;
21
+ beforeField: TemplateRef<unknown> | undefined;
22
+ afterField: TemplateRef<unknown> | undefined;
23
+ constructor();
24
+ onDispatch(formAction: FormAction): void;
25
+ }