@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 +0,0 @@
1
- {"version":3,"file":"add-remove-buttons-multi-valued-attribute.component.js","sourceRoot":"","sources":["../../../src/login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACT,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAiBpE,IAAM,6CAA6C,GAAnD,MAAM,6CAA6C;IAAnD;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,WAAM,GAAG,KAAK,EAAY,CAAC;QAC3B,eAAU,GAAG,KAAK,EAAU,CAAC;QAC7B,uBAAkB,GAAG,MAAM,EAAc,CAAC;QAE1C,cAAS,GAAG,QAAQ,CAAC,GAAG,EAAE;YACtB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACrC,IAAI,SAAS,IAAI,MAAM,IAAI,UAAU,EAAE;gBACnC,OAAO,IAAI,CAAC,8CAA8C,CAAC;oBACvD,SAAS;oBACT,MAAM;oBACN,UAAU;iBACb,CAAC,CAAC,SAAS,CAAC;aAChB;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC,CAAC;QACH,WAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;YACnB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC7B,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YACrC,IAAI,SAAS,IAAI,MAAM,IAAI,UAAU,EAAE;gBACnC,OAAO,IAAI,CAAC,8CAA8C,CAAC;oBACvD,SAAS;oBACT,M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8C;QACxD,WAAW,EAAE,0DAA0D;QACvE,eAAe,EAAE,uBAAuB,CAAC,MAAM;KAClD,CAAC;GACW,6CAA6C,CAsHzD;SAtHY,6CAA6C"}
@@ -1,15 +0,0 @@
1
- @let index = fieldIndex();
2
- <span
3
- [id]="'input-error-' + attribute.name + (index === undefined ? '' : '-' + index)"
4
- [kcClass]="'kcInputErrorMessageClass'"
5
- aria-live="polite"
6
- >
7
- @for (error of displayableErrors(); track error; let i = $index) {
8
- @if (error.fieldIndex === index) {
9
- <span [innerHTML]="error.errorMessage"></span>
10
- @if (displayableErrors()?.length ?? 0 - 1 !== i) {
11
- <br />
12
- }
13
- }
14
- }
15
- </span>
@@ -1,45 +0,0 @@
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 FieldErrorsComponent_1;
8
- import { ChangeDetectionStrategy, Component, forwardRef, inject, input } 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
- let FieldErrorsComponent = FieldErrorsComponent_1 = class FieldErrorsComponent extends ComponentReference {
13
- constructor() {
14
- super(...arguments);
15
- this.attribute = input();
16
- this.displayableErrors = input();
17
- this.fieldIndex = input();
18
- this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
19
- this.classes = inject(CLASSES);
20
- }
21
- };
22
- FieldErrorsComponent = FieldErrorsComponent_1 = __decorate([
23
- Component({
24
- standalone: true,
25
- styles: [
26
- `
27
- :host {
28
- display: contents;
29
- }
30
- `
31
- ],
32
- imports: [KcClassDirective],
33
- selector: "kc-field-errors",
34
- templateUrl: "field-errors.component.html",
35
- changeDetection: ChangeDetectionStrategy.OnPush,
36
- providers: [
37
- {
38
- provide: ComponentReference,
39
- useExisting: forwardRef(() => FieldErrorsComponent_1)
40
- }
41
- ]
42
- })
43
- ], FieldErrorsComponent);
44
- export { FieldErrorsComponent };
45
- //# sourceMappingURL=field-errors.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field-errors.component.js","sourceRoot":"","sources":["../../../src/login/components/field-errors/field-errors.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,MAAM,EACN,KAAK,EACR,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;AAuBrF,IAAM,oBAAoB,4BAA1B,MAAM,oBAAqB,SAAQ,kBAAkB;IAArD;;QACH,cAAS,GAAG,KAAK,EAAa,CAAC;QAC/B,sBAAiB,GAAG,KAAK,EAAoB,CAAC;QAC9C,eAAU,GAAG,KAAK,EAAU,CAAC;QACpB,oBAAe,GAAG,MAAM,CAAU,eAAe,CAAC,CAAC;QACnD,YAAO,GAAG,MAAM,CAAoC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA,CAAA;AANY,oBAAoB;IApBhC,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,QAAQ,EAAE,iBAAiB;QAC3B,WAAW,EAAE,6BAA6B;QAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,sBAAoB,CAAC;aACtD;SACJ;KACJ,CAAC;GACW,oBAAoB,CAMhC;SANY,oBAAoB"}
@@ -1,30 +0,0 @@
1
- @let attr = attribute();
2
- @let groupName = groupNameRef();
3
- @if (attr && groupName !== '') {
4
- <div
5
- [kcClass]="'kcFormGroupClass'"
6
- [kcAttributes]="attr.group?.html5DataAnnotations"
7
- >
8
- @let groupDisplayHeader = attr.group?.displayHeader ?? '';
9
- @let groupHeaderText = groupDisplayHeader !== '' ? groupDisplayHeader : (attr.group?.name ?? '');
10
- <div [kcClass]="'kcContentWrapperClass'">
11
- <label
12
- [id]="'header-' + attr.group?.name"
13
- [kcClass]="'kcFormGroupHeader'"
14
- >
15
- {{ groupHeaderText | advancedMsgStr }}
16
- </label>
17
- </div>
18
- @let groupDisplayDescription = attr.group?.displayDescription ?? '';
19
- @if (groupDisplayDescription !== '') {
20
- <div [kcClass]="'kcLabelWrapperClass'">
21
- <label
22
- [id]="'description-' + attr.group?.name"
23
- [kcClass]="'kcLabelClass'"
24
- >
25
- {{ groupDisplayDescription | advancedMsgStr }}
26
- </label>
27
- </div>
28
- }
29
- </div>
30
- }
@@ -1,55 +0,0 @@
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 GroupLabelComponent_1;
8
- import { ChangeDetectionStrategy, Component, computed, forwardRef, inject, input } from "@angular/core";
9
- import { CLASSES, USE_DEFAULT_CSS } from "../../../lib/public-api";
10
- import { ComponentReference } from "../../../login/classes/component-reference.class";
11
- import { AttributesDirective } from "../../../login/directives/attributes.directive";
12
- import { KcClassDirective } from "../../../login/directives/kc-class.directive";
13
- import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
14
- let GroupLabelComponent = GroupLabelComponent_1 = class GroupLabelComponent extends ComponentReference {
15
- constructor() {
16
- super(...arguments);
17
- this.attribute = input();
18
- this.groupName = input();
19
- this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
20
- this.classes = inject(CLASSES);
21
- this.groupNameRef = computed(() => {
22
- var _a, _b, _c;
23
- const attribute = this.attribute();
24
- const groupName = this.groupName();
25
- if (((_a = attribute === null || attribute === void 0 ? void 0 : attribute.group) === null || _a === void 0 ? void 0 : _a.name) !== groupName) {
26
- return (_c = (_b = attribute === null || attribute === void 0 ? void 0 : attribute.group) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : "";
27
- }
28
- return "";
29
- });
30
- }
31
- };
32
- GroupLabelComponent = GroupLabelComponent_1 = __decorate([
33
- Component({
34
- standalone: true,
35
- styles: [
36
- `
37
- :host {
38
- display: contents;
39
- }
40
- `
41
- ],
42
- imports: [KcClassDirective, AttributesDirective, AdvancedMsgStrPipe],
43
- selector: "kc-group-label",
44
- templateUrl: "group-label.component.html",
45
- changeDetection: ChangeDetectionStrategy.OnPush,
46
- providers: [
47
- {
48
- provide: ComponentReference,
49
- useExisting: forwardRef(() => GroupLabelComponent_1)
50
- }
51
- ]
52
- })
53
- ], GroupLabelComponent);
54
- export { GroupLabelComponent };
55
- //# sourceMappingURL=group-label.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"group-label.component.js","sourceRoot":"","sources":["../../../src/login/components/group-label/group-label.component.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EACH,uBAAuB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,MAAM,EACN,KAAK,EACR,MAAM,eAAe,CAAC;AACvB,OAAO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kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,qBAAmB,CAAC;aACrD;SACJ;KACJ,CAAC;GACW,mBAAmB,CAa/B;SAbY,mBAAmB"}
@@ -1,12 +0,0 @@
1
- export * from "./add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component";
2
- export * from "./field-errors/field-errors.component";
3
- export * from "./group-label/group-label.component";
4
- export * from "./input-field-by-type/input-field-by-type.component";
5
- export * from "./input-tag/input-tag.component";
6
- export * from "./input-tag-selects/input-tag-selects.component";
7
- export * from "./logout-other-sessions/logout-other-sessions.component";
8
- export * from "./password-wrapper/password-wrapper.component";
9
- export * from "./select-tag/select-tag.component";
10
- export * from "./textarea-tag/textarea-tag.component";
11
- export * from "./user-profile-form-fields/user-profile-form-fields.component";
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/login/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iGAAiG,CAAC;AAChH,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,iCAAiC,CAAC;AAChD,cAAc,iDAAiD,CAAC;AAChE,cAAc,yDAAyD,CAAC;AACxE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+DAA+D,CAAC"}
@@ -1,63 +0,0 @@
1
- @let attr = attribute();
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>
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
- }
61
- }
62
- }
63
- }
@@ -1,63 +0,0 @@
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 InputFieldByTypeComponent_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 { ToArrayPipe } from "../../../login/pipes/to-array.pipe";
12
- import { InputTagSelectsComponent } from "../../../login/components/input-tag-selects/input-tag-selects.component";
13
- import { InputTagComponent } from "../../../login/components/input-tag/input-tag.component";
14
- import { PasswordWrapperComponent } from "../../../login/components/password-wrapper/password-wrapper.component";
15
- import { SelectTagComponent } from "../../../login/components/select-tag/select-tag.component";
16
- import { TextareaTagComponent } from "../../../login/components/textarea-tag/textarea-tag.component";
17
- let InputFieldByTypeComponent = InputFieldByTypeComponent_1 = class InputFieldByTypeComponent extends ComponentReference {
18
- constructor() {
19
- super(...arguments);
20
- this.attribute = input();
21
- this.valueOrValues = input();
22
- this.displayableErrors = input();
23
- this.dispatchFormAction = output();
24
- this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
25
- this.classes = inject(CLASSES);
26
- this.attributePassword = computed(() => {
27
- var _a, _b;
28
- const attribute = (_a = this.attribute()) !== null && _a !== void 0 ? _a : {};
29
- return Object.assign(Object.assign({}, attribute), { annotations: Object.assign(Object.assign({}, ((_b = attribute.annotations) !== null && _b !== void 0 ? _b : {})), { inputType: "password" }) });
30
- });
31
- }
32
- };
33
- InputFieldByTypeComponent = InputFieldByTypeComponent_1 = __decorate([
34
- Component({
35
- standalone: true,
36
- styles: [
37
- `
38
- :host {
39
- display: contents;
40
- }
41
- `
42
- ],
43
- imports: [
44
- ToArrayPipe,
45
- TextareaTagComponent,
46
- SelectTagComponent,
47
- InputTagSelectsComponent,
48
- InputTagComponent,
49
- PasswordWrapperComponent
50
- ],
51
- selector: "kc-input-field-by-type",
52
- templateUrl: "input-field-by-type.component.html",
53
- changeDetection: ChangeDetectionStrategy.OnPush,
54
- providers: [
55
- {
56
- provide: ComponentReference,
57
- useExisting: forwardRef(() => InputFieldByTypeComponent_1)
58
- }
59
- ]
60
- })
61
- ], InputFieldByTypeComponent);
62
- export { InputFieldByTypeComponent };
63
- //# sourceMappingURL=input-field-by-type.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-field-by-type.component.js","sourceRoot":"","sources":["../../../src/login/components/input-field-by-type/input-field-by-type.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,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAK7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qFAAqF,CAAC;AAC/H,OAAO,EAAE,iBAAiB,EAAE,MAAM,qEAAqE,CAAC;AACxG,OAAO,EAAE,wBAAwB,EAAE,MAAM,mFAAmF,CAAC;AAC7H,OAAO,EAAE,kBAAkB,EAAE,MAAM,uEAAuE,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AA6B1G,IAAM,yBAAyB,iCAA/B,MAAM,yBAA0B,SAAQ,kBAAkB;IAA1D;;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,sBAAiB,GAAG,QAAQ,CAAY,GAAG,EAAE;;YACzC,MAAM,SAAS,GAAc,MAAA,IAAI,CAAC,SAAS,EAAE,mCAAK,EAAgB,CAAC;YACnE,uCACO,SAAS,KACZ,WAAW,kCAAO,CAAC,MAAA,SAAS,CAAC,WAAW,mCAAI,EAAE,CAAC,KAAE,SAAS,EAAE,UAAU,OACxE;QACN,CAAC,CAAC,CAAC;IACP,CAAC;CAAA,CAAA;AAfY,yBAAyB;IA3BrC,SAAS,CAAC;QACP,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACJ;;;;SAIC;SACJ;QACD,OAAO,EAAE;YACL,WAAW;YACX,oBAAoB;YACpB,kBAAkB;YAClB,wBAAwB;YACxB,iBAAiB;YACjB,wBAAwB;SAC3B;QACD,QAAQ,EAAE,wBAAwB;QAClC,WAAW,EAAE,oCAAoC;QACjD,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACP;gBACI,OAAO,EAAE,kBAAkB;gBAC3B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,2BAAyB,CAAC;aAC3D;SACJ;KACJ,CAAC;GACW,yBAAyB,CAerC;SAfY,yBAAyB"}
@@ -1,49 +0,0 @@
1
- @let attr = attribute();
2
- @let index = fieldIndex();
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
- }
49
- }
@@ -1,107 +0,0 @@
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 InputTagComponent_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 { AttributesDirective } from "../../../login/directives/attributes.directive";
12
- import { KcClassDirective } from "../../../login/directives/kc-class.directive";
13
- import { AdvancedMsgStrPipe } from "../../../login/pipes/advanced-msg-str.pipe";
14
- import { InputTypePipe } from "../../../login/pipes/input-type.pipe";
15
- import { ToArrayPipe } from "../../../login/pipes/to-array.pipe";
16
- import { ToNumberPipe } from "../../../login/pipes/to-number.pipe";
17
- import { AddRemoveButtonsMultiValuedAttributeComponent } from "../../../login/components/add-remove-buttons-multi-valued-attribute/add-remove-buttons-multi-valued-attribute.component";
18
- import { FieldErrorsComponent } from "../../../login/components/field-errors/field-errors.component";
19
- let InputTagComponent = InputTagComponent_1 = class InputTagComponent extends ComponentReference {
20
- constructor() {
21
- super(...arguments);
22
- this.attribute = input();
23
- this.valueOrValues = input();
24
- this.fieldIndex = input(undefined);
25
- this.values = input();
26
- this.displayableErrors = input();
27
- this.dispatchFormAction = output();
28
- this.doUseDefaultCss = inject(USE_DEFAULT_CSS);
29
- this.classes = inject(CLASSES);
30
- this.value = computed(() => {
31
- var _a;
32
- const valueOrValues = this.valueOrValues();
33
- const index = this.fieldIndex();
34
- if (valueOrValues instanceof Array) {
35
- if (index) {
36
- return (_a = valueOrValues[index]) !== null && _a !== void 0 ? _a : null;
37
- }
38
- return null;
39
- }
40
- return valueOrValues !== null && valueOrValues !== void 0 ? valueOrValues : null;
41
- });
42
- }
43
- onChange(event) {
44
- var _a, _b;
45
- const valueOrValues = this.valueOrValues();
46
- this.dispatchFormAction.emit({
47
- action: "update",
48
- name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
49
- valueOrValues: (() => {
50
- var _a;
51
- if (this.fieldIndex !== undefined) {
52
- if (valueOrValues instanceof Array) {
53
- return valueOrValues.map((value, i) => {
54
- var _a;
55
- if (i === this.fieldIndex()) {
56
- return (_a = event.target) === null || _a === void 0 ? void 0 : _a.value;
57
- }
58
- return value;
59
- });
60
- }
61
- }
62
- return (_a = event.target) === null || _a === void 0 ? void 0 : _a.value;
63
- })()
64
- });
65
- }
66
- onBlur() {
67
- var _a, _b;
68
- this.dispatchFormAction.emit({
69
- action: "focus lost",
70
- name: (_b = (_a = this.attribute()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "",
71
- fieldIndex: this.fieldIndex()
72
- });
73
- }
74
- };
75
- InputTagComponent = InputTagComponent_1 = __decorate([
76
- Component({
77
- standalone: true,
78
- styles: [
79
- `
80
- :host {
81
- display: contents;
82
- }
83
- `
84
- ],
85
- imports: [
86
- InputTypePipe,
87
- KcClassDirective,
88
- ToNumberPipe,
89
- AttributesDirective,
90
- ToArrayPipe,
91
- FieldErrorsComponent,
92
- AddRemoveButtonsMultiValuedAttributeComponent,
93
- AdvancedMsgStrPipe
94
- ],
95
- selector: "kc-input-tag",
96
- templateUrl: "input-tag.component.html",
97
- changeDetection: ChangeDetectionStrategy.OnPush,
98
- providers: [
99
- {
100
- provide: ComponentReference,
101
- useExisting: forwardRef(() => InputTagComponent_1)
102
- }
103
- ]
104
- })
105
- ], InputTagComponent);
106
- export { InputTagComponent };
107
- //# sourceMappingURL=input-tag.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-tag.component.js","sourceRoot":"","sources":["../../../src/login/components/input-tag/input-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,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,YAAY,E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= context()?.classInput;
3
- @let classLabel = context()?.classLabel;
4
- @let classDiv = context()?.classDiv;
5
- @let attr = attribute();
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
- }
29
- }
@@ -1,132 +0,0 @@
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