@ebrains/components 0.6.0-alpha.0 → 0.7.0-alpha.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 (628) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  2. package/dist/cjs/components.cjs.js +2 -2
  3. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  4. package/dist/cjs/eds-accordion_22.cjs.entry.js +1959 -0
  5. package/dist/cjs/eds-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/eds-app-root.cjs.entry.js +37 -0
  7. package/dist/cjs/eds-avatar_4.cjs.entry.js +180 -0
  8. package/dist/cjs/eds-breadcrumb.cjs.entry.js +4 -18
  9. package/dist/cjs/eds-card-generic.cjs.entry.js +92 -0
  10. package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-card-section.cjs.entry.js +39 -0
  12. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-components-section.cjs.entry.js +2 -2
  17. package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
  19. package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
  20. package/dist/cjs/{eds-dropdown_2.cjs.entry.js → eds-dropdown.cjs.entry.js} +8 -41
  21. package/dist/cjs/eds-feedback.cjs.entry.js +66 -0
  22. package/dist/cjs/eds-form.cjs.entry.js +237 -254
  23. package/dist/cjs/eds-frame.cjs.entry.js +32 -32
  24. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
  25. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
  26. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
  27. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
  28. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
  29. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
  30. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
  31. package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
  32. package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
  33. package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
  34. package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
  35. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
  36. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
  37. package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
  38. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
  39. package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
  40. package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
  41. package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
  42. package/dist/cjs/eds-icon-star.cjs.entry.js +18 -0
  43. package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
  44. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +18 -0
  45. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +18 -0
  46. package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
  47. package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
  48. package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
  49. package/dist/{components/keycloak.js → cjs/eds-login_2.cjs.entry.js} +144 -1
  50. package/dist/cjs/eds-logo-variations.cjs.entry.js +2 -2
  51. package/dist/cjs/eds-modal.cjs.entry.js +15 -3
  52. package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
  53. package/dist/cjs/eds-rating.cjs.entry.js +31 -25
  54. package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
  55. package/dist/cjs/eds-spinner.cjs.entry.js +54 -0
  56. package/dist/cjs/eds-steps.cjs.entry.js +9 -19
  57. package/dist/cjs/eds-svg-repository.cjs.entry.js +9 -3
  58. package/dist/cjs/eds-switch.cjs.entry.js +3 -3
  59. package/dist/cjs/eds-tabs.cjs.entry.js +10 -24
  60. package/dist/cjs/eds-timeline.cjs.entry.js +4 -22
  61. package/dist/cjs/eds-toast-manager.cjs.entry.js +46 -0
  62. package/dist/cjs/eds-toast.cjs.entry.js +76 -0
  63. package/dist/cjs/eds-tooltip.cjs.entry.js +2 -2
  64. package/dist/cjs/eds-trl.cjs.entry.js +2 -2
  65. package/dist/cjs/eds-user.cjs.entry.js +9 -79
  66. package/dist/cjs/eds-vertical-stepper.cjs.entry.js +2 -2
  67. package/dist/cjs/formUtils-4315a99c.js +228 -0
  68. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  69. package/dist/cjs/{index-f08e4f5c.js → index-2f63169d.js} +51 -54
  70. package/dist/cjs/loader.cjs.js +2 -2
  71. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  72. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
  73. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  74. package/dist/cjs/sharedUtils-8e287250.js +21 -0
  75. package/dist/cjs/star-942eee9f.js +7 -0
  76. package/dist/cjs/thumbs-down-714036b1.js +7 -0
  77. package/dist/cjs/thumbs-up-411babb8.js +8 -0
  78. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  79. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  80. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  81. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  82. package/dist/collection/collection-manifest.json +10 -6
  83. package/dist/collection/components/eds-accordion/eds-accordion.js +7 -7
  84. package/dist/collection/components/eds-accordion/eds-accordion.stories.js +2 -2
  85. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +3 -17
  86. package/dist/collection/components/eds-button/eds-button.css +1 -19
  87. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +3 -15
  88. package/dist/collection/components/eds-dropdown/eds-dropdown.js +24 -2
  89. package/dist/collection/components/eds-form/eds-form.js +278 -268
  90. package/dist/collection/components/eds-form-v2/eds-form-v2.css +7153 -0
  91. package/dist/collection/components/eds-form-v2/eds-form-v2.js +405 -0
  92. package/dist/collection/components/eds-form-v2/eds-form-v2.stories.js +73 -0
  93. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
  94. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
  95. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
  96. package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
  97. package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
  98. package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
  99. package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
  100. package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
  101. package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
  102. package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
  103. package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
  104. package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
  105. package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
  106. package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
  107. package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +36 -0
  108. package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
  109. package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +36 -0
  110. package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +36 -0
  111. package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
  112. package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
  113. package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
  114. package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
  115. package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
  116. package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
  117. package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
  118. package/dist/collection/components/eds-img/eds-img.js +2 -2
  119. package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
  120. package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
  121. package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
  122. package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +2 -2
  123. package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +57 -9
  124. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +1 -1
  125. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  126. package/dist/collection/components/eds-link/eds-link.js +1 -1
  127. package/dist/collection/components/eds-logo/eds-logo.js +1 -1
  128. package/dist/collection/components/eds-modal/eds-modal.js +26 -2
  129. package/dist/collection/components/eds-pagination/eds-pagination.js +3 -3
  130. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
  131. package/dist/collection/components/eds-rating/eds-rating.css +31 -74
  132. package/dist/collection/components/eds-rating/eds-rating.js +44 -56
  133. package/dist/collection/components/eds-rating/eds-rating.stories.js +18 -51
  134. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
  135. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  136. package/dist/collection/components/eds-spinner/eds-spinner.css +17 -0
  137. package/dist/collection/components/eds-spinner/eds-spinner.js +166 -0
  138. package/dist/collection/components/eds-spinner/eds-spinner.stories.js +52 -0
  139. package/dist/collection/components/eds-steps/eds-steps.css +1 -1
  140. package/dist/collection/components/eds-steps/eds-steps.js +8 -18
  141. package/dist/collection/components/eds-steps/eds-vertical-stepper.js +1 -1
  142. package/dist/collection/components/eds-switch/eds-switch.css +57 -58
  143. package/dist/collection/components/eds-switch/eds-switch.js +2 -2
  144. package/dist/collection/components/eds-table/eds-table.js +11 -8
  145. package/dist/collection/components/eds-table/eds-table.stories.js +11 -6
  146. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  147. package/dist/collection/components/eds-timeline/eds-timeline.js +3 -21
  148. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  149. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  150. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  151. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  152. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  153. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  154. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  155. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  156. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  157. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  158. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  159. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  160. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  161. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  162. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  163. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  164. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +1 -1
  165. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  166. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  167. package/dist/collection/eds-docs-ui/eds-frame/eds-frame.css +113 -0
  168. package/dist/collection/{components → eds-docs-ui}/eds-frame/eds-frame.js +47 -76
  169. package/dist/collection/eds-docs-ui/eds-frame/eds-frame.stories.js +52 -0
  170. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +1 -1
  171. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +1 -1
  172. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  173. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  174. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  175. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  176. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +3 -19
  177. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  178. package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +155 -0
  179. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +191 -0
  180. package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +121 -0
  181. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  182. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +3 -28
  183. package/dist/collection/shared-ui/eds-header/eds-header.js +4 -20
  184. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +1 -37
  185. package/dist/collection/shared-ui/eds-login/eds-login.js +34 -10
  186. package/dist/collection/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.js +32 -63
  187. package/dist/collection/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.stories.js +6 -4
  188. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  189. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +29 -0
  190. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +124 -0
  191. package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +23 -0
  192. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +7774 -0
  193. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +12 -25
  194. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +17 -30
  195. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +4 -1
  196. package/dist/collection/shared-ui/eds-user/eds-user.js +17 -150
  197. package/dist/collection/shared-ui/eds-user/eds-user.stories.js +45 -0
  198. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +39 -0
  199. package/dist/collection/utils/api.js +27 -0
  200. package/dist/collection/utils/eds-form/formUtils.js +95 -0
  201. package/dist/collection/utils/eds-form/formValidators.js +64 -0
  202. package/dist/collection/utils/eds-form/individualValidator.js +46 -0
  203. package/dist/collection/utils/eds-form/validateInput.js +23 -0
  204. package/dist/collection/utils/sharedUtils.js +17 -0
  205. package/dist/components/components.css +48 -72
  206. package/dist/components/components.esm.js +1 -1
  207. package/dist/components/correct-use-of-colors.js +1 -1
  208. package/dist/components/eds-accordion2.js +5 -5
  209. package/dist/components/{eds-navigator.d.ts → eds-app-root.d.ts} +4 -4
  210. package/dist/components/eds-app-root.js +89 -0
  211. package/dist/components/eds-breadcrumb.js +3 -17
  212. package/dist/components/eds-button2.js +1 -1
  213. package/dist/components/eds-card-generic2.js +3 -15
  214. package/dist/components/eds-card-section.js +3 -19
  215. package/dist/components/eds-components-section.js +1 -1
  216. package/dist/components/eds-cookies-preference.js +1 -1
  217. package/dist/components/eds-docs-palettes.js +1 -1
  218. package/dist/components/eds-docs-tokens.js +1 -1
  219. package/dist/components/eds-dropdown2.js +8 -3
  220. package/dist/components/{eds-user-modal.d.ts → eds-feedback.d.ts} +4 -4
  221. package/dist/components/eds-feedback.js +105 -0
  222. package/dist/components/eds-footer2.js +1 -1
  223. package/dist/components/{eds-tab.d.ts → eds-form-v2.d.ts} +4 -4
  224. package/dist/{esm/eds-accordion_13.entry.js → components/eds-form-v2.js} +276 -854
  225. package/dist/components/eds-form.js +240 -255
  226. package/dist/components/eds-frame.js +33 -34
  227. package/dist/components/eds-fullscreen-menu.js +3 -28
  228. package/dist/components/eds-header.js +4 -20
  229. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  230. package/dist/components/eds-icon-arrow-right.js +1 -1
  231. package/dist/components/eds-icon-bluesky.js +1 -1
  232. package/dist/components/eds-icon-chevron-down.js +1 -1
  233. package/dist/components/eds-icon-chevron-left.js +1 -1
  234. package/dist/components/eds-icon-chevron-right.js +1 -1
  235. package/dist/components/eds-icon-chevron-up.js +1 -1
  236. package/dist/components/eds-icon-close.js +1 -1
  237. package/dist/components/eds-icon-copy.js +1 -1
  238. package/dist/components/eds-icon-eu.js +1 -1
  239. package/dist/components/eds-icon-facebook.js +1 -1
  240. package/dist/components/eds-icon-gitlab.js +1 -1
  241. package/dist/components/eds-icon-linkedin.js +1 -1
  242. package/dist/components/eds-icon-loader.js +1 -1
  243. package/dist/components/eds-icon-mastodon.js +1 -1
  244. package/dist/components/eds-icon-menu.js +1 -1
  245. package/dist/components/eds-icon-more.js +1 -1
  246. package/dist/components/eds-icon-search.js +1 -1
  247. package/dist/components/{eds-tabs-content.d.ts → eds-icon-star.d.ts} +4 -4
  248. package/dist/components/eds-icon-star.js +33 -0
  249. package/dist/components/eds-icon-success.js +1 -1
  250. package/dist/components/eds-icon-thumbs-down.d.ts +11 -0
  251. package/dist/components/eds-icon-thumbs-down.js +33 -0
  252. package/dist/components/eds-icon-thumbs-up.d.ts +11 -0
  253. package/dist/components/eds-icon-thumbs-up.js +33 -0
  254. package/dist/components/eds-icon-twitter.js +1 -1
  255. package/dist/components/eds-icon-user.js +1 -1
  256. package/dist/components/eds-icon-youtube.js +1 -1
  257. package/dist/components/eds-img2.js +2 -2
  258. package/dist/components/eds-input-field2.js +2 -2
  259. package/dist/components/eds-input-footer2.js +1 -1
  260. package/dist/components/eds-input-label2.js +1 -1
  261. package/dist/components/eds-input-range2.js +2 -2
  262. package/dist/components/eds-input-search2.js +24 -9
  263. package/dist/components/eds-input-select2.js +1 -1
  264. package/dist/components/eds-input2.js +2 -2
  265. package/dist/components/eds-link2.js +1 -1
  266. package/dist/components/eds-login.js +1 -118
  267. package/dist/{cjs/keycloak-93fc0315.js → components/eds-login2.js} +128 -7
  268. package/dist/components/eds-logo-variations.js +1 -1
  269. package/dist/components/eds-logo2.js +1 -1
  270. package/dist/components/eds-matomo-notice2.js +16 -13
  271. package/dist/components/eds-modal.js +15 -3
  272. package/dist/components/eds-pagination2.js +2 -2
  273. package/dist/components/eds-progress-bar2.js +1 -1
  274. package/dist/components/eds-rating.js +1 -84
  275. package/dist/components/eds-rating2.js +91 -0
  276. package/dist/components/eds-section-core2.js +1 -1
  277. package/dist/components/eds-section-heading2.js +2 -2
  278. package/dist/components/eds-social-networks2.js +1 -1
  279. package/dist/components/eds-spinner.d.ts +11 -0
  280. package/dist/components/eds-spinner.js +6 -0
  281. package/dist/components/eds-spinner2.js +72 -0
  282. package/dist/components/eds-splash-screen.d.ts +11 -0
  283. package/dist/components/eds-splash-screen.js +6 -0
  284. package/dist/components/eds-splash-screen2.js +78 -0
  285. package/dist/components/eds-steps.js +8 -18
  286. package/dist/components/eds-svg-repository.js +8 -2
  287. package/dist/components/eds-switch.js +2 -2
  288. package/dist/components/eds-table2.js +11 -8
  289. package/dist/components/eds-tabs.js +12 -31
  290. package/dist/components/eds-tag2.js +1 -1
  291. package/dist/components/eds-timeline.js +3 -21
  292. package/dist/components/eds-toast-manager.js +1 -1
  293. package/dist/components/eds-tooltip.js +1 -1
  294. package/dist/components/eds-trl.js +1 -1
  295. package/dist/components/eds-user.js +23 -105
  296. package/dist/components/eds-vertical-stepper.js +1 -1
  297. package/dist/components/formUtils.js +223 -0
  298. package/dist/components/incorrect-use-of-colors.js +1 -1
  299. package/dist/components/logo-space.js +1 -1
  300. package/dist/components/logo-variations-horizontal2.js +1 -1
  301. package/dist/components/logo-variations-vertical2.js +1 -1
  302. package/dist/components/logo-wrong-usage.js +1 -1
  303. package/dist/components/p-033480b2.entry.js +1 -0
  304. package/dist/components/{p-89f600a3.entry.js → p-0443ac40.entry.js} +1 -1
  305. package/dist/components/{p-a2621d66.entry.js → p-066f6d27.entry.js} +1 -1
  306. package/dist/components/p-0e0106fc.entry.js +1 -0
  307. package/dist/components/p-117d180f.entry.js +1 -0
  308. package/dist/components/p-20e9ae7f.entry.js +1 -0
  309. package/dist/components/{p-a535838c.entry.js → p-2354daeb.entry.js} +1 -1
  310. package/dist/components/{p-5097066f.entry.js → p-2b31ca60.entry.js} +1 -1
  311. package/dist/components/p-3368cfd5.entry.js +1 -0
  312. package/dist/components/p-33c5b937.entry.js +1 -0
  313. package/dist/components/p-3af94671.entry.js +1 -0
  314. package/dist/components/{p-b1af5000.entry.js → p-43350dff.entry.js} +2 -2
  315. package/dist/components/p-43b3579a.entry.js +1 -0
  316. package/dist/components/p-467fe746.entry.js +1 -0
  317. package/dist/components/p-46a6042d.entry.js +1 -0
  318. package/dist/components/p-4a860d5b.entry.js +1 -0
  319. package/dist/components/p-4ac27fe7.entry.js +1 -0
  320. package/dist/components/p-4b2e6f03.entry.js +1 -0
  321. package/dist/components/{p-b50c8d49.entry.js → p-4cd69983.entry.js} +1 -1
  322. package/dist/components/p-5520a3b6.entry.js +1 -0
  323. package/dist/components/p-552b6a50.entry.js +1 -0
  324. package/dist/components/p-56b4e0fe.entry.js +1 -0
  325. package/dist/components/{p-f36f2aeb.entry.js → p-56ec190f.entry.js} +1 -1
  326. package/dist/components/p-5aff1ea0.entry.js +1 -0
  327. package/dist/components/p-5c12a0df.entry.js +1 -0
  328. package/dist/components/{p-5ff31f14.entry.js → p-5e2216ae.entry.js} +1 -1
  329. package/dist/components/p-5e63e8a5.entry.js +1 -0
  330. package/dist/components/p-60e7e745.entry.js +1 -0
  331. package/dist/components/p-62f2f274.entry.js +1 -0
  332. package/dist/components/p-6404e157.entry.js +1 -0
  333. package/dist/components/p-69c5074b.js +1 -0
  334. package/dist/components/p-6fd0c3b3.entry.js +1 -0
  335. package/dist/components/p-77cc7c02.entry.js +1 -0
  336. package/dist/components/p-79c14cf1.entry.js +1 -0
  337. package/dist/components/{p-c034c395.entry.js → p-7dd81017.entry.js} +1 -1
  338. package/dist/components/p-7e0dd5d8.entry.js +1 -0
  339. package/dist/components/p-80dba155.js +1 -0
  340. package/dist/components/{p-b860b4aa.entry.js → p-8154d013.entry.js} +1 -1
  341. package/dist/components/p-86eed1b7.entry.js +1 -0
  342. package/dist/components/{p-d56d9dda.entry.js → p-8b70a350.entry.js} +1 -1
  343. package/dist/components/p-8e548691.entry.js +1 -0
  344. package/dist/components/p-90503a64.entry.js +1 -0
  345. package/dist/components/p-90f85604.entry.js +1 -0
  346. package/dist/components/p-94698510.entry.js +1 -0
  347. package/dist/components/p-950ecb1c.entry.js +1 -0
  348. package/dist/components/p-9b9fba38.entry.js +1 -0
  349. package/dist/components/p-9dc879c9.entry.js +1 -0
  350. package/dist/components/{p-b1de9a6c.entry.js → p-9eb2e870.entry.js} +1 -1
  351. package/dist/components/p-9ebc84d6.entry.js +1 -0
  352. package/dist/components/p-a56f0579.entry.js +1 -0
  353. package/dist/components/{p-88751c8b.entry.js → p-a5c61d1c.entry.js} +1 -1
  354. package/dist/components/p-a6cd418e.entry.js +1 -0
  355. package/dist/components/p-a8dd1953.entry.js +1 -0
  356. package/dist/components/{p-045681d7.entry.js → p-a91ab66e.entry.js} +1 -1
  357. package/dist/components/p-ab292dd5.entry.js +1 -0
  358. package/dist/components/p-ad746789.entry.js +1 -0
  359. package/dist/components/p-b80a9020.entry.js +1 -0
  360. package/dist/components/p-b8ba7e5c.entry.js +1 -0
  361. package/dist/components/p-ba720bf3.js +1 -0
  362. package/dist/components/p-c06d4f14.entry.js +1 -0
  363. package/dist/components/p-c12d9350.entry.js +1 -0
  364. package/dist/components/p-c3dda942.entry.js +1 -0
  365. package/dist/components/p-c6b32753.entry.js +1 -0
  366. package/dist/components/p-c776b6f8.js +1 -0
  367. package/dist/components/p-c935aa46.entry.js +1 -0
  368. package/dist/components/{p-7a8b9de5.js → p-cccacbd3.js} +2 -2
  369. package/dist/components/p-dbcf1f0e.entry.js +1 -0
  370. package/dist/components/p-dcc08064.entry.js +1 -0
  371. package/dist/components/p-dcd4de1f.entry.js +1 -0
  372. package/dist/components/p-e2d5a487.js +1 -0
  373. package/dist/components/p-e64cd6f7.entry.js +1 -0
  374. package/dist/components/p-e9a533e0.entry.js +1 -0
  375. package/dist/components/p-eac63c82.entry.js +1 -0
  376. package/dist/components/p-f5959676.entry.js +1 -0
  377. package/dist/components/{p-fad10768.entry.js → p-f905ac92.entry.js} +1 -1
  378. package/dist/components/p-fba4080d.entry.js +1 -0
  379. package/dist/components/p-fc619588.entry.js +1 -0
  380. package/dist/components/p-fcc32210.entry.js +1 -0
  381. package/dist/components/{p-81942665.entry.js → p-ff7acb55.entry.js} +1 -1
  382. package/dist/components/primary.js +1 -1
  383. package/dist/components/primary2.js +1 -1
  384. package/dist/components/secondary.js +1 -1
  385. package/dist/components/secondary2.js +7 -7
  386. package/dist/components/sharedUtils.js +19 -0
  387. package/dist/components/star.js +5 -0
  388. package/dist/components/support.js +1 -1
  389. package/dist/components/support2.js +3 -3
  390. package/dist/components/thumbs-down.js +5 -0
  391. package/dist/components/thumbs-up.js +6 -0
  392. package/dist/components/token-list2.js +1 -1
  393. package/dist/components/token-radii2.js +1 -1
  394. package/dist/components/token-ratios.js +1 -1
  395. package/dist/components/token-shadows2.js +1 -1
  396. package/dist/components/token-spacing.js +1 -1
  397. package/dist/components/token-typography.js +1 -1
  398. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  399. package/dist/esm/components.js +3 -3
  400. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  401. package/dist/esm/eds-accordion_22.entry.js +1934 -0
  402. package/dist/esm/eds-alert.entry.js +1 -1
  403. package/dist/esm/eds-app-root.entry.js +33 -0
  404. package/dist/esm/eds-avatar_4.entry.js +173 -0
  405. package/dist/esm/eds-breadcrumb.entry.js +4 -18
  406. package/dist/esm/eds-card-generic.entry.js +88 -0
  407. package/dist/esm/eds-card-project.entry.js +1 -1
  408. package/dist/esm/eds-card-section.entry.js +35 -0
  409. package/dist/esm/eds-card-tags.entry.js +1 -1
  410. package/dist/esm/eds-card-tool.entry.js +1 -1
  411. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  412. package/dist/esm/eds-code-block.entry.js +1 -1
  413. package/dist/esm/eds-components-section.entry.js +2 -2
  414. package/dist/esm/eds-cookies-preference.entry.js +2 -2
  415. package/dist/esm/eds-docs-palettes.entry.js +2 -2
  416. package/dist/esm/eds-docs-tokens.entry.js +2 -2
  417. package/dist/esm/{eds-dropdown_2.entry.js → eds-dropdown.entry.js} +9 -41
  418. package/dist/esm/eds-feedback.entry.js +62 -0
  419. package/dist/esm/eds-form.entry.js +237 -254
  420. package/dist/esm/eds-frame.entry.js +32 -32
  421. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  422. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  423. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  424. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  425. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  426. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  427. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  428. package/dist/esm/eds-icon-close.entry.js +2 -2
  429. package/dist/esm/eds-icon-copy.entry.js +2 -2
  430. package/dist/esm/eds-icon-eu.entry.js +2 -2
  431. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  432. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  433. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  434. package/dist/esm/eds-icon-loader.entry.js +2 -2
  435. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  436. package/dist/esm/eds-icon-menu.entry.js +2 -2
  437. package/dist/esm/eds-icon-more.entry.js +2 -2
  438. package/dist/esm/eds-icon-search.entry.js +2 -2
  439. package/dist/esm/eds-icon-star.entry.js +14 -0
  440. package/dist/esm/eds-icon-success.entry.js +2 -2
  441. package/dist/esm/eds-icon-thumbs-down.entry.js +14 -0
  442. package/dist/esm/eds-icon-thumbs-up.entry.js +14 -0
  443. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  444. package/dist/esm/eds-icon-user.entry.js +2 -2
  445. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  446. package/dist/esm/{keycloak-d502ec16.js → eds-login_2.entry.js} +139 -1
  447. package/dist/esm/eds-logo-variations.entry.js +2 -2
  448. package/dist/esm/eds-modal.entry.js +15 -3
  449. package/dist/esm/eds-progress-bar.entry.js +2 -2
  450. package/dist/esm/eds-rating.entry.js +31 -25
  451. package/dist/esm/eds-section-core_2.entry.js +4 -4
  452. package/dist/esm/eds-spinner.entry.js +50 -0
  453. package/dist/esm/eds-steps.entry.js +9 -19
  454. package/dist/esm/eds-svg-repository.entry.js +9 -3
  455. package/dist/esm/eds-switch.entry.js +3 -3
  456. package/dist/esm/eds-tabs.entry.js +10 -24
  457. package/dist/esm/eds-timeline.entry.js +4 -22
  458. package/dist/esm/eds-toast-manager.entry.js +42 -0
  459. package/dist/esm/eds-toast.entry.js +72 -0
  460. package/dist/esm/eds-tooltip.entry.js +2 -2
  461. package/dist/esm/eds-trl.entry.js +2 -2
  462. package/dist/esm/eds-user.entry.js +9 -79
  463. package/dist/esm/eds-vertical-stepper.entry.js +2 -2
  464. package/dist/esm/formUtils-ac68474d.js +223 -0
  465. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  466. package/dist/esm/{index-e96badea.js → index-8a71b9a7.js} +51 -55
  467. package/dist/esm/loader.js +3 -3
  468. package/dist/esm/logo-space.entry.js +2 -2
  469. package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
  470. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  471. package/dist/esm/sharedUtils-a550989c.js +19 -0
  472. package/dist/esm/star-0da9b5e9.js +5 -0
  473. package/dist/esm/thumbs-down-a18fd049.js +5 -0
  474. package/dist/esm/thumbs-up-c19a71bc.js +6 -0
  475. package/dist/esm/token-list_3.entry.js +4 -4
  476. package/dist/esm/token-ratios.entry.js +2 -2
  477. package/dist/esm/token-spacing.entry.js +2 -2
  478. package/dist/esm/token-typography.entry.js +2 -2
  479. package/dist/hydrate/index.js +1353 -1001
  480. package/dist/hydrate/index.mjs +1353 -1001
  481. package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +4 -1
  482. package/dist/types/components/eds-accordion/eds-accordion.d.ts +3 -3
  483. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +5 -0
  484. package/dist/types/components/eds-form/eds-form.d.ts +52 -20
  485. package/dist/types/components/eds-form-v2/eds-form-v2.d.ts +99 -0
  486. package/dist/types/components/eds-form-v2/eds-form-v2.stories.d.ts +27 -0
  487. package/dist/types/components/eds-icons/eds-icon-star/eds-icon-star.d.ts +10 -0
  488. package/dist/types/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.d.ts +10 -0
  489. package/dist/types/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.d.ts +10 -0
  490. package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.d.ts +6 -1
  491. package/dist/types/components/eds-modal/eds-modal.d.ts +8 -0
  492. package/dist/types/components/eds-pagination/eds-pagination.d.ts +1 -1
  493. package/dist/types/components/eds-rating/eds-rating.d.ts +19 -11
  494. package/dist/types/components/eds-rating/eds-rating.stories.d.ts +13 -27
  495. package/dist/types/components/eds-spinner/eds-spinner.d.ts +27 -0
  496. package/dist/types/components/eds-spinner/eds-spinner.stories.d.ts +42 -0
  497. package/dist/types/components/eds-steps/eds-steps.d.ts +1 -1
  498. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -0
  499. package/dist/types/components.d.ts +610 -321
  500. package/dist/types/{components → eds-docs-ui}/eds-frame/eds-frame.d.ts +26 -6
  501. package/dist/types/{components → eds-docs-ui}/eds-frame/eds-frame.stories.d.ts +8 -13
  502. package/dist/types/shared-ui/eds-feedback/eds-feedback.d.ts +56 -0
  503. package/dist/types/shared-ui/eds-feedback/eds-feedback.stories.d.ts +77 -0
  504. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +0 -28
  505. package/dist/types/shared-ui/eds-login/eds-login.d.ts +12 -1
  506. package/dist/types/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.d.ts +5 -12
  507. package/dist/types/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +2 -1
  508. package/dist/types/shared-ui/eds-splash-screen/eds-splash-screen.d.ts +31 -0
  509. package/dist/types/shared-ui/eds-splash-screen/eds-splash-screen.stories.d.ts +22 -0
  510. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +3 -3
  511. package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +5 -2
  512. package/dist/types/shared-ui/eds-toast-manager/eds-toast-manager.d.ts +3 -0
  513. package/dist/types/shared-ui/eds-user/eds-user.d.ts +12 -66
  514. package/dist/types/shared-ui/eds-user/eds-user.stories.d.ts +32 -0
  515. package/dist/types/shared-ui/examples/eds-app-root/eds-app-root.d.ts +9 -0
  516. package/dist/types/utils/api.d.ts +5 -0
  517. package/dist/types/utils/eds-form/formUtils.d.ts +38 -0
  518. package/dist/types/utils/eds-form/formValidators.d.ts +17 -0
  519. package/dist/types/utils/eds-form/individualValidator.d.ts +3 -0
  520. package/dist/types/utils/eds-form/validateInput.d.ts +10 -0
  521. package/dist/types/utils/sharedUtils.d.ts +1 -0
  522. package/package.json +3 -3
  523. package/dist/cjs/eds-accordion_13.cjs.entry.js +0 -911
  524. package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
  525. package/dist/cjs/eds-footer.cjs.entry.js +0 -41
  526. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
  527. package/dist/cjs/eds-header.cjs.entry.js +0 -97
  528. package/dist/cjs/eds-input_7.cjs.entry.js +0 -324
  529. package/dist/cjs/eds-link.cjs.entry.js +0 -214
  530. package/dist/cjs/eds-login.cjs.entry.js +0 -91
  531. package/dist/cjs/eds-logo.cjs.entry.js +0 -78
  532. package/dist/cjs/eds-navigator.cjs.entry.js +0 -43
  533. package/dist/cjs/eds-pagination_2.cjs.entry.js +0 -386
  534. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
  535. package/dist/cjs/eds-tab.cjs.entry.js +0 -40
  536. package/dist/cjs/eds-tabs-content.cjs.entry.js +0 -133
  537. package/dist/collection/components/eds-frame/eds-frame.stories.js +0 -68
  538. package/dist/collection/components/eds-navigator/eds-navigator.js +0 -147
  539. package/dist/collection/components/eds-navigator/eds-navigator.stories.js +0 -101
  540. package/dist/collection/components/eds-tab/eds-tab.js +0 -109
  541. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +0 -194
  542. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.stories.js +0 -112
  543. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +0 -109
  544. package/dist/components/eds-navigator.js +0 -75
  545. package/dist/components/eds-tab.js +0 -6
  546. package/dist/components/eds-tab2.js +0 -55
  547. package/dist/components/eds-tabs-content.js +0 -159
  548. package/dist/components/eds-user-modal.js +0 -6
  549. package/dist/components/eds-user-modal2.js +0 -87
  550. package/dist/components/p-06299762.entry.js +0 -1
  551. package/dist/components/p-0a3b2576.entry.js +0 -1
  552. package/dist/components/p-0ab85eee.entry.js +0 -1
  553. package/dist/components/p-0e7bdd2c.entry.js +0 -1
  554. package/dist/components/p-10b81c47.entry.js +0 -1
  555. package/dist/components/p-1ae529f3.entry.js +0 -1
  556. package/dist/components/p-1ed3fdb7.entry.js +0 -1
  557. package/dist/components/p-21d42cf3.entry.js +0 -1
  558. package/dist/components/p-2831a9d5.entry.js +0 -1
  559. package/dist/components/p-2c00bd76.entry.js +0 -1
  560. package/dist/components/p-34a65e58.entry.js +0 -1
  561. package/dist/components/p-38d70586.entry.js +0 -1
  562. package/dist/components/p-3a7aa1eb.entry.js +0 -1
  563. package/dist/components/p-42d3c324.entry.js +0 -1
  564. package/dist/components/p-4a12a131.entry.js +0 -1
  565. package/dist/components/p-4b3fbd6d.entry.js +0 -1
  566. package/dist/components/p-4ea027ac.entry.js +0 -1
  567. package/dist/components/p-5980a142.entry.js +0 -1
  568. package/dist/components/p-599c7b97.entry.js +0 -1
  569. package/dist/components/p-5a2b8b6c.entry.js +0 -1
  570. package/dist/components/p-65703520.entry.js +0 -1
  571. package/dist/components/p-659ed449.entry.js +0 -1
  572. package/dist/components/p-6af40c33.entry.js +0 -1
  573. package/dist/components/p-6df9db15.entry.js +0 -1
  574. package/dist/components/p-759b2640.entry.js +0 -1
  575. package/dist/components/p-7b3b26b0.entry.js +0 -1
  576. package/dist/components/p-80a185ba.entry.js +0 -1
  577. package/dist/components/p-86fbc239.entry.js +0 -1
  578. package/dist/components/p-8c4a0fc9.entry.js +0 -1
  579. package/dist/components/p-8eab748d.js +0 -1
  580. package/dist/components/p-911d9b37.entry.js +0 -1
  581. package/dist/components/p-9579f9c2.entry.js +0 -1
  582. package/dist/components/p-96fe2267.entry.js +0 -1
  583. package/dist/components/p-9739def5.entry.js +0 -1
  584. package/dist/components/p-9b441a1f.entry.js +0 -1
  585. package/dist/components/p-a5b7d72d.entry.js +0 -1
  586. package/dist/components/p-a5d00633.entry.js +0 -1
  587. package/dist/components/p-a63bd0c9.entry.js +0 -1
  588. package/dist/components/p-a846dbca.entry.js +0 -1
  589. package/dist/components/p-a927a455.entry.js +0 -1
  590. package/dist/components/p-aec9b8e1.entry.js +0 -1
  591. package/dist/components/p-b3c1aef5.entry.js +0 -1
  592. package/dist/components/p-b60ed774.entry.js +0 -1
  593. package/dist/components/p-b67aafe7.entry.js +0 -1
  594. package/dist/components/p-b79999d5.entry.js +0 -1
  595. package/dist/components/p-b80457ed.entry.js +0 -1
  596. package/dist/components/p-bd43d83c.entry.js +0 -1
  597. package/dist/components/p-c5fa170d.entry.js +0 -1
  598. package/dist/components/p-c683be2c.entry.js +0 -1
  599. package/dist/components/p-d2a0b896.entry.js +0 -1
  600. package/dist/components/p-d5850ab3.entry.js +0 -1
  601. package/dist/components/p-de12396f.entry.js +0 -1
  602. package/dist/components/p-de2fbcfc.entry.js +0 -1
  603. package/dist/components/p-e2c250c5.entry.js +0 -1
  604. package/dist/components/p-e334f5bc.entry.js +0 -1
  605. package/dist/components/p-f1cd83da.entry.js +0 -1
  606. package/dist/components/p-f5dafbc8.entry.js +0 -1
  607. package/dist/components/p-f7493f41.entry.js +0 -1
  608. package/dist/components/p-fce25541.entry.js +0 -1
  609. package/dist/esm/eds-block-break.entry.js +0 -17
  610. package/dist/esm/eds-footer.entry.js +0 -37
  611. package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
  612. package/dist/esm/eds-header.entry.js +0 -93
  613. package/dist/esm/eds-input_7.entry.js +0 -314
  614. package/dist/esm/eds-link.entry.js +0 -210
  615. package/dist/esm/eds-login.entry.js +0 -87
  616. package/dist/esm/eds-logo.entry.js +0 -74
  617. package/dist/esm/eds-navigator.entry.js +0 -39
  618. package/dist/esm/eds-pagination_2.entry.js +0 -381
  619. package/dist/esm/eds-social-networks.entry.js +0 -62
  620. package/dist/esm/eds-tab.entry.js +0 -36
  621. package/dist/esm/eds-tabs-content.entry.js +0 -129
  622. package/dist/types/components/eds-navigator/eds-navigator.d.ts +0 -42
  623. package/dist/types/components/eds-navigator/eds-navigator.stories.d.ts +0 -46
  624. package/dist/types/components/eds-tab/eds-tab.d.ts +0 -15
  625. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.d.ts +0 -36
  626. package/dist/types/shared-ui/eds-tabs-content/eds-tabs-content.stories.d.ts +0 -16
  627. package/dist/types/shared-ui/eds-user-modal/eds-user-modal.d.ts +0 -47
  628. /package/dist/collection/{components → shared-ui}/eds-matomo-notice/eds-matomo-notice.css +0 -0
@@ -1,6 +1,11 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { toast } from "../../utils/toastManager";
3
3
  import { sendAnalytics } from "../../utils/analytics";
4
+ import { parseData } from "../../utils/sharedUtils";
5
+ import { validateFormFields } from "../../utils/eds-form/formValidators";
6
+ import { validateInputField } from "../../utils/eds-form/validateInput";
7
+ import { getFormDraftData } from "../../utils/eds-form/formUtils";
8
+ import * as api from "../../utils/api";
4
9
  /**
5
10
  * `EdsForm` is a comprehensive form component designed to handle form submission with validation,
6
11
  * error handling, and customizable fields. It offers several options for handling alerts and
@@ -17,129 +22,6 @@ import { sendAnalytics } from "../../utils/analytics";
17
22
  */
18
23
  export class EdsForm {
19
24
  constructor() {
20
- this.handleChange = (e, field) => {
21
- const target = e.target;
22
- // Update the field's value in state.
23
- this.values = Object.assign(Object.assign({}, this.values), { [field.name]: target.value });
24
- // Create a copy of the current errors.
25
- const newErrors = Object.assign({}, this.errors);
26
- // Validate only the changed field.
27
- if (field.type === 'checkbox' || field.type === 'radio') {
28
- if (field.options) {
29
- // Validate group of checkboxes or radio buttons.
30
- const fieldErrors = this.validateFieldGroup(field.name, field.type, field.required);
31
- if (fieldErrors.length > 0) {
32
- newErrors[field.name] = fieldErrors;
33
- }
34
- else {
35
- delete newErrors[field.name];
36
- }
37
- }
38
- else {
39
- // Validate a single checkbox.
40
- const fieldErrors = this.validateSingleBox(field.name, field.required);
41
- if (fieldErrors.length > 0) {
42
- newErrors[field.name] = fieldErrors;
43
- }
44
- else {
45
- delete newErrors[field.name];
46
- }
47
- }
48
- }
49
- else {
50
- // Validate standard text (or similar) inputs.
51
- const fieldErrors = this.validateField(field.name, target.value, field.type, field.required, field.maxlength);
52
- if (fieldErrors.length > 0) {
53
- newErrors[field.name] = fieldErrors;
54
- }
55
- else {
56
- delete newErrors[field.name];
57
- }
58
- }
59
- // Update the errors state and hasError flag.
60
- this.errors = newErrors;
61
- this.hasError = Object.keys(newErrors).length > 0;
62
- };
63
- this.handleSubmit = async (e) => {
64
- var _a, _b, _c;
65
- e.preventDefault();
66
- if (this.isSubmitting) {
67
- return;
68
- }
69
- this.validateForm();
70
- if (this.hasError) {
71
- sendAnalytics({
72
- category: 'ui-component',
73
- parentContext: null,
74
- tag: this.el.tagName.toLowerCase(),
75
- name: `${(_a = this.submitBtnLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()}/error` || '',
76
- action: 'click'
77
- });
78
- this.alertMessage = this.errorMessage;
79
- return;
80
- }
81
- this.isSubmitting = true;
82
- this.formSubmitted = false;
83
- this.alertMessage = null;
84
- this.errors = {};
85
- const formData = await this.getFormData();
86
- // Log each entry in FormData to see file details
87
- /*formData.forEach((value, key) => {
88
- if (value instanceof File) {
89
- console.log(`File field: ${key}, File name: ${value.name}, File size: ${value.size}`);
90
- } else {
91
- console.log(`Field: ${key}, Value: ${value}`);
92
- }
93
- });*/
94
- if (this.setFormUrl && typeof window !== 'undefined') {
95
- formData.set('form_url', window.location.href);
96
- }
97
- if (this.authUser) {
98
- formData.set('form_user', (_b = this.authUser) === null || _b === void 0 ? void 0 : _b.email);
99
- }
100
- /*const formDataObject = Object.fromEntries((formData as any).entries());
101
- console.log(JSON.stringify(formDataObject));*/
102
- const headers = this.coupleAuth
103
- ? { Authorization: `Bearer ${this.authUser.token}` } // Include the Keycloak token
104
- : {};
105
- try {
106
- const response = await fetch(this.endpoint, {
107
- method: 'POST',
108
- body: formData,
109
- headers
110
- });
111
- // Check if the response status indicates an error
112
- if (!response.ok) {
113
- const errorData = await response.json();
114
- this.hasError = true;
115
- toast.show(errorData.error || this.errorMessage, 'error');
116
- //this.alertMessage = errorData.error || this.errorMessage;
117
- return;
118
- }
119
- const data = await response.json();
120
- this.formSubmitted = true;
121
- //this.alertMessage = data.message || this.successMessage;
122
- toast.show(data.message || this.successMessage, 'success');
123
- this.formEl.reset();
124
- sendAnalytics({
125
- category: 'ui-component',
126
- parentContext: null,
127
- tag: this.el.tagName.toLowerCase(),
128
- name: `${(_c = this.submitBtnLabel) === null || _c === void 0 ? void 0 : _c.toLowerCase()}/success` || '',
129
- action: 'click'
130
- });
131
- }
132
- catch (err) {
133
- this.hasError = true;
134
- //when api is unreachable will trigger the error message
135
- //this.alertMessage = `${err}`;
136
- toast.show(`${err}`, 'error');
137
- }
138
- finally {
139
- this.isSubmitting = false;
140
- this.formSubmitting.emit(this.isSubmitting);
141
- }
142
- };
143
25
  this.setFormUrl = true;
144
26
  this.submitBtn = true;
145
27
  this.submitBtnLabel = 'Submit';
@@ -147,147 +29,112 @@ export class EdsForm {
147
29
  this.errorMessage = 'Some fields in your form are incorrect.';
148
30
  this.submitBtnHintMessage = 'To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.';
149
31
  this.endpoint = undefined;
150
- this.name = 'form';
32
+ this.name = 'eds-form';
151
33
  this.fields = [];
152
- this.values = {};
153
34
  this.coupleAuth = false;
35
+ this.user = null;
36
+ this.draft = false;
37
+ this.draftData = {};
38
+ this.values = {};
154
39
  this.formSubmitted = false;
155
40
  this.hasError = false;
156
41
  this.errors = {};
157
42
  this.isSubmitting = false;
158
43
  this.alertMessage = null;
159
44
  this.isAuthenticated = false;
160
- this.authUser = undefined;
161
45
  this.parsedFields = [];
162
46
  }
163
- onAuthStatusChanged(event) {
164
- var _a;
165
- this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
166
- this.authUser = event.detail.user;
167
- }
168
- componentDidLoad() {
47
+ async componentWillLoad() {
169
48
  this.parseFields(this.fields);
170
49
  // Emit context for each eds-link element after the component is fully loaded
171
- /*const links = this.el.querySelectorAll('eds-button');
50
+ const links = this.el.querySelectorAll('eds-button');
172
51
  links.forEach((link) => {
173
- this.emitContext(link);
174
- });*/
52
+ this.emitContext(link);
53
+ });
175
54
  }
176
- /*emitContext(linkElement: HTMLElement) {
177
- const event = new CustomEvent<ParentContextDetail>('parentContext', {
178
- detail: {
179
- componentName: this.el.tagName.toLowerCase(),
180
- identifier: null
181
- }
182
- });
183
-
184
- linkElement.dispatchEvent(event);
185
- }*/
186
- // Visibility helper
187
- isFieldVisible(field) {
188
- if (!field.condition) {
189
- return true;
55
+ async componentDidLoad() {
56
+ if (this.shouldFormProcessDraft) {
57
+ this.loadDraft();
190
58
  }
191
- const parentValue = this.values[field.condition.field];
192
- return parentValue === field.condition.value;
193
59
  }
194
- // Validate individual fields dynamically
195
- validateField(name, value, type, required, maxLength) {
196
- const errors = [];
197
- if (required && !value) {
198
- errors.push(`${name} is required.`);
199
- }
200
- if (maxLength && typeof value === 'string' && value.length > maxLength) {
201
- errors.push(`${name} must be at most ${maxLength} characters.`);
202
- }
203
- if (type === 'email' && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value.toString())) {
204
- errors.push('Invalid email format.');
205
- }
206
- return errors;
60
+ get shouldFormAcceptDraft() {
61
+ var _a;
62
+ return !!(((_a = this.user) === null || _a === void 0 ? void 0 : _a.token) && this.draft);
207
63
  }
208
- validateFieldGroup(name, _type, required) {
209
- // Find all eds-input-field components that contain this specific name
210
- const groupFields = Array.from(this.formEl.querySelectorAll('eds-input-field')).filter((edsField) => { var _a, _b; return ((_b = (_a = edsField.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`input[name="${name}"]`)) === null || _b === void 0 ? void 0 : _b.length) > 0; });
211
- // Collect all input elements with the matching name inside those fields
212
- const groupElements = groupFields.flatMap((edsField) => { var _a; return Array.from(((_a = edsField.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`input[name="${name}"]`)) || []); });
213
- //console.log(`validateFieldGroup - Found ${groupElements.length} elements for ${name}:`, groupElements);
214
- const isChecked = groupElements.some((el) => el.checked);
215
- const errors = [];
216
- if (required && !isChecked) {
217
- errors.push(`At least one option in ${name} is required.`);
218
- }
219
- return errors;
64
+ get shouldFormProcessDraft() {
65
+ var _a;
66
+ return !!((_a = this.draftData) === null || _a === void 0 ? void 0 : _a._id);
67
+ }
68
+ parseFields(newValue) {
69
+ this.parsedFields = parseData(newValue);
220
70
  }
221
- validateSingleBox(name, required) {
71
+ loadDraft() {
222
72
  var _a;
223
- const errors = [];
224
- // Find the eds-input-field that contains the input
225
- const edsField = Array.from(this.formEl.querySelectorAll('eds-input-field')).find((field) => { var _a; return (_a = field.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`[name="${name}"]`); });
226
- // If not found, handle the error or return early.
227
- if (!edsField) {
228
- if (required) {
229
- errors.push(`${name} is required.`);
230
- }
231
- return errors;
73
+ if ((_a = this.draftData) === null || _a === void 0 ? void 0 : _a.completed) {
74
+ this.formSubmitted = true;
75
+ toast.show(this.draftData.message, 'success');
76
+ this.formEl.reset();
77
+ return;
232
78
  }
233
- // Now query within the shadow root of the found component.
234
- const checkboxElement = (_a = edsField.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`[name="${name}"]`);
235
- if (required && checkboxElement && !checkboxElement.checked) {
236
- errors.push(`${name} is required.`);
79
+ this.populateFormWithDraftData(this.draftData);
80
+ return;
81
+ }
82
+ emitContext(linkElement) {
83
+ const event = new CustomEvent('parentContext', {
84
+ detail: {
85
+ componentName: this.el.tagName.toLowerCase(),
86
+ identifier: null
87
+ }
88
+ });
89
+ linkElement.dispatchEvent(event);
90
+ }
91
+ isFieldVisible(field) {
92
+ if (!field.condition) {
93
+ return true;
237
94
  }
238
- return errors;
95
+ const parentValue = this.values[field.condition.field];
96
+ return parentValue === field.condition.value;
239
97
  }
240
98
  validateForm() {
241
- this.errors = {};
242
- this.hasError = false;
243
- this.parsedFields.forEach((field) => {
244
- if (field.type !== 'hidden') {
245
- if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
246
- // Single checkbox validation
247
- const fieldErrors = this.validateSingleBox(field.name, field.required);
248
- if (fieldErrors.length > 0) {
249
- this.errors[field.name] = fieldErrors;
250
- this.hasError = true;
251
- }
252
- }
253
- else if (field.options && (field.type === 'checkbox' || field.type === 'radio')) {
254
- const fieldErrors = this.validateFieldGroup(field.name, field.type, field.required);
255
- if (fieldErrors.length > 0) {
256
- this.errors[field.name] = fieldErrors;
257
- this.hasError = true;
258
- }
259
- }
260
- else {
261
- const fieldElement = this.findFieldElement(field.name);
262
- if (fieldElement) {
263
- const value = fieldElement.value;
264
- const fieldErrors = this.validateField(field.name, value, field.type, field.required, field.maxlength);
265
- if (fieldErrors.length > 0) {
266
- this.errors[field.name] = fieldErrors;
267
- this.hasError = true;
268
- }
269
- }
270
- }
99
+ const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field, values) => {
100
+ if (!field.condition) {
101
+ return true;
271
102
  }
103
+ const parentValue = values[field.condition.field];
104
+ return parentValue === field.condition.value;
272
105
  });
106
+ this.errors = errors;
107
+ this.hasError = hasError;
273
108
  }
274
- // Helper function to find elements in the shadow DOM
275
- findFieldElement(name) {
276
- const elements = Array.from(this.formEl.querySelectorAll('eds-input-field')); // Get all elements
277
- for (const element of elements) {
278
- if (element.shadowRoot) {
279
- const shadowField = element.shadowRoot.querySelector(`[name="${name}"]`);
280
- if (shadowField) {
281
- return shadowField;
109
+ populateFormWithDraftData(draftData) {
110
+ const { updatedValues } = getFormDraftData({
111
+ draftData,
112
+ parsedFields: this.parsedFields,
113
+ currentValues: this.values,
114
+ formEl: this.formEl,
115
+ isFieldVisible: (field, values) => {
116
+ if (!field.condition) {
117
+ return true;
282
118
  }
119
+ const parentValue = values[field.condition.field];
120
+ return parentValue === field.condition.value;
283
121
  }
284
- }
285
- return null;
122
+ });
123
+ this.values = updatedValues;
286
124
  }
287
- async getFormData() {
125
+ getFormData() {
126
+ var _a;
288
127
  const formData = new FormData();
289
128
  // Add the form name
290
129
  formData.append('form_name', this.name);
130
+ // Add the form URL
131
+ if (this.setFormUrl && typeof window !== 'undefined') {
132
+ formData.set('form_url', window.location.href);
133
+ }
134
+ // Add the signed in user if exists
135
+ if (this.user) {
136
+ formData.set('form_user', (_a = this.user) === null || _a === void 0 ? void 0 : _a.email);
137
+ }
291
138
  // Get all input elements within `eds-input-field`
292
139
  const elements = Array.from(this.formEl.querySelectorAll('eds-input-field'));
293
140
  elements.forEach((element) => {
@@ -322,38 +169,156 @@ export class EdsForm {
322
169
  });
323
170
  return formData;
324
171
  }
325
- parseFields(newValue) {
172
+ handleChange(e, field) {
173
+ const target = e.target;
174
+ this.values = Object.assign(Object.assign({}, this.values), { [field.name]: target.value });
175
+ // Emit an input event with message and current form values
176
+ this.form.emit({
177
+ event: 'change',
178
+ field: field.name,
179
+ value: target.value,
180
+ message: `${field.name} updated`,
181
+ data: this.getFormData()
182
+ });
183
+ if (this.shouldFormAcceptDraft) {
184
+ this.postFormDataWithoutValidation();
185
+ }
186
+ }
187
+ handleInput(e, field) {
188
+ const target = e.target;
189
+ // Update the field's value in state.
190
+ this.values = Object.assign(Object.assign({}, this.values), { [field.name]: target.value });
191
+ // Create a copy of the current errors.
192
+ const newErrors = Object.assign({}, this.errors);
193
+ // Use the utility to validate the field.
194
+ const fieldErrors = validateInputField(field, target.value, this.formEl);
195
+ if (fieldErrors.length > 0) {
196
+ newErrors[field.name] = fieldErrors;
197
+ }
198
+ else {
199
+ delete newErrors[field.name];
200
+ }
201
+ // Update the errors state and the hasError flag.
202
+ this.errors = newErrors;
203
+ this.hasError = Object.keys(newErrors).length > 0;
204
+ }
205
+ async handleSubmit(e) {
206
+ var _a, _b;
207
+ e.preventDefault();
208
+ if (this.isSubmitting) {
209
+ return;
210
+ }
211
+ this.validateForm();
212
+ if (this.hasError) {
213
+ this.form.emit({
214
+ event: 'submit',
215
+ validated: false,
216
+ success: false,
217
+ message: this.errorMessage,
218
+ data: this.getFormData()
219
+ }); // Emit form status submit false validation error
220
+ sendAnalytics({
221
+ category: 'ui-component',
222
+ parentContext: null,
223
+ tag: this.el.tagName.toLowerCase(),
224
+ name: `${(_a = this.submitBtnLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()}/error` || '',
225
+ action: 'click'
226
+ });
227
+ this.alertMessage = this.errorMessage;
228
+ return;
229
+ }
230
+ this.isSubmitting = true;
231
+ this.formSubmitted = false;
232
+ this.alertMessage = null;
233
+ this.errors = {};
234
+ const formData = await this.getFormData();
235
+ formData.set('draft', 'false');
236
+ formData.set('completed', 'true');
237
+ // If no endpoint is provided, just emit the data and stop here.
238
+ if (!this.endpoint) {
239
+ // Successful submission, since there’s no server to reject it.
240
+ this.form.emit({
241
+ event: 'submit',
242
+ success: true,
243
+ validated: true,
244
+ message: 'Form data validated successfully',
245
+ data: formData
246
+ });
247
+ // Reset form states
248
+ this.formSubmitted = true;
249
+ this.formEl.reset();
250
+ this.isSubmitting = false;
251
+ return;
252
+ }
253
+ // Log each entry in FormData to see file details
254
+ /*formData.forEach((value, key) => {
255
+ if (value instanceof File) {
256
+ console.log(`File field: ${key}, File name: ${value.name}, File size: ${value.size}`);
257
+ } else {
258
+ console.log(`Field: ${key}, Value: ${value}`);
259
+ }
260
+ });*/
261
+ // Build headers based on auth settings.
262
+ const headers = { Authorization: `Bearer ${this.user.token}` };
326
263
  try {
327
- if (typeof newValue === 'string') {
328
- this.parsedFields = JSON.parse(newValue);
329
- }
330
- else if (Array.isArray(newValue)) {
331
- this.parsedFields = newValue;
332
- }
333
- else if (newValue && typeof newValue === 'object') {
334
- // In case a single object is passed, wrap it in an array.
335
- this.parsedFields = newValue;
336
- }
337
- else {
338
- this.parsedFields = [];
339
- }
264
+ // Use the API utility to post the form data.
265
+ const data = await api.post(this.endpoint, formData, { headers });
266
+ this.form.emit({
267
+ event: 'submit',
268
+ success: true,
269
+ validated: true,
270
+ message: data.message,
271
+ data: formData
272
+ }); // Emit form status submit true
273
+ this.formSubmitted = true;
274
+ this.formEl.reset();
275
+ sendAnalytics({
276
+ category: 'ui-component',
277
+ parentContext: null,
278
+ tag: this.el.tagName.toLowerCase(),
279
+ name: `${(_b = this.submitBtnLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()}/success` || '',
280
+ action: 'click'
281
+ });
282
+ }
283
+ catch (err) {
284
+ this.hasError = true;
285
+ this.form.emit({
286
+ event: 'submit',
287
+ success: false,
288
+ validated: true,
289
+ message: err,
290
+ data: formData
291
+ }); // Emit form status submit error
292
+ }
293
+ finally {
294
+ this.isSubmitting = false;
295
+ }
296
+ }
297
+ async postFormDataWithoutValidation() {
298
+ var _a;
299
+ if (!this.endpoint) {
300
+ return;
301
+ }
302
+ const formData = await this.getFormData();
303
+ formData.set('draft', this.draft.toString());
304
+ const headers = { Authorization: `Bearer ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.token}` };
305
+ try {
306
+ await api.post(this.endpoint, formData, { headers });
340
307
  }
341
308
  catch (error) {
342
- // eslint-disable-next-line
343
- console.error('Error parsing fields prop:', error);
344
- this.parsedFields = [];
309
+ throw error;
345
310
  }
346
311
  }
347
312
  render() {
348
313
  const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
349
314
  const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
350
- return (h("form", { key: '3d4ae34d48c0551f9de6dacb50ceee15b487b5de', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, h("div", { key: '344c56dcba3de5a1b55255d794a78fb0f19d04b5' }, h("slot", { key: '3ca6d203458d67fa66840fac55f94d71acc2ee4d' }), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
315
+ return (h("form", { key: '7ea50f19b8810fb0294bc8527d1c86e74dfc2b69', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, h("div", { key: '29e821a2eb706c51fa303b1abf645baeea5ae9d4' }, h("slot", { key: 'b45d74e9a147ab1a932891210c7813d3bd118b07' }), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
351
316
  var _a, _b;
352
317
  if (!this.isFieldVisible(field)) {
353
318
  return null;
354
319
  }
355
- return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, type: field.type, icon: field.icon || null, required: field.required, maxLength: field.maxlength, hint: field.hint, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
356
- })), this.submitBtn && (h("div", { key: '22915285f3522f6d260e358eea964c59a9557a55', class: "mt-20" }, h("eds-button", { key: '9e2191ba8cc49d7ac2a6588c0fa468214773c791', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated), loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (h("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (h("div", { key: '8045c3dff26286a6735157b82afd56ec9001ba14', class: "mt-20" }, h("eds-alert", { key: 'dc8c8f74e8aada9023f110bb862afee1fb629601', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
320
+ return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, type: field.type, icon: field.icon || null, required: field.required, maxLength: field.maxlength, hint: field.hint, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field), onChange: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
321
+ })), this.submitBtn && (h("div", { key: '0a9b9027fc235cd099cc40903bd6711873b9868b', class: "mt-20" }, h("eds-button", { key: 'f7181c19d04a117817f556753cc95c1f49c9fa1c', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated) || this.formSubmitted, loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (h("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (h("div", { key: 'b999356ec8fc57fc85c2f672a94e95f834d153ea', class: "mt-20" }, h("eds-alert", { key: '5a743b01991fb5d8f5358abc44639e790f5264ea', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
357
322
  }
358
323
  static get is() { return "eds-form"; }
359
324
  static get originalStyleUrls() {
@@ -509,7 +474,7 @@ export class EdsForm {
509
474
  },
510
475
  "attribute": "name",
511
476
  "reflect": false,
512
- "defaultValue": "'form'"
477
+ "defaultValue": "'eds-form'"
513
478
  },
514
479
  "fields": {
515
480
  "type": "string",
@@ -546,6 +511,61 @@ export class EdsForm {
546
511
  "attribute": "couple-auth",
547
512
  "reflect": false,
548
513
  "defaultValue": "false"
514
+ },
515
+ "user": {
516
+ "type": "unknown",
517
+ "mutable": false,
518
+ "complexType": {
519
+ "original": "User",
520
+ "resolved": "User",
521
+ "references": {
522
+ "User": {
523
+ "location": "global",
524
+ "id": "global::User"
525
+ }
526
+ }
527
+ },
528
+ "required": false,
529
+ "optional": true,
530
+ "docs": {
531
+ "tags": [],
532
+ "text": "The user object containing user information.\nThis is populated after a successful authentication."
533
+ },
534
+ "defaultValue": "null"
535
+ },
536
+ "draft": {
537
+ "type": "boolean",
538
+ "mutable": false,
539
+ "complexType": {
540
+ "original": "boolean",
541
+ "resolved": "boolean",
542
+ "references": {}
543
+ },
544
+ "required": false,
545
+ "optional": true,
546
+ "docs": {
547
+ "tags": [],
548
+ "text": "Whether the form is in draft mode.\nMeaning it will attempt to post each input change invalidated."
549
+ },
550
+ "attribute": "draft",
551
+ "reflect": false,
552
+ "defaultValue": "false"
553
+ },
554
+ "draftData": {
555
+ "type": "unknown",
556
+ "mutable": false,
557
+ "complexType": {
558
+ "original": "{ [key: string]: any }",
559
+ "resolved": "{ [key: string]: any; }",
560
+ "references": {}
561
+ },
562
+ "required": false,
563
+ "optional": false,
564
+ "docs": {
565
+ "tags": [],
566
+ "text": "The draft data the form will attempt to populate in the provided fields."
567
+ },
568
+ "defaultValue": "{}"
549
569
  }
550
570
  };
551
571
  }
@@ -558,24 +578,23 @@ export class EdsForm {
558
578
  "isSubmitting": {},
559
579
  "alertMessage": {},
560
580
  "isAuthenticated": {},
561
- "authUser": {},
562
581
  "parsedFields": {}
563
582
  };
564
583
  }
565
584
  static get events() {
566
585
  return [{
567
- "method": "formSubmitting",
568
- "name": "formSubmitting",
586
+ "method": "form",
587
+ "name": "form",
569
588
  "bubbles": true,
570
589
  "cancelable": true,
571
590
  "composed": true,
572
591
  "docs": {
573
592
  "tags": [],
574
- "text": "Emits an event when the form's submission state changes."
593
+ "text": ""
575
594
  },
576
595
  "complexType": {
577
- "original": "boolean",
578
- "resolved": "boolean",
596
+ "original": "{\n event: 'input' | 'change' | 'submit';\n validated?: boolean;\n field?: string;\n value?: any;\n message?: string;\n success?: boolean;\n data: any;\n }",
597
+ "resolved": "{ event: \"input\" | \"change\" | \"submit\"; validated?: boolean; field?: string; value?: any; message?: string; success?: boolean; data: any; }",
579
598
  "references": {}
580
599
  }
581
600
  }];
@@ -587,13 +606,4 @@ export class EdsForm {
587
606
  "methodName": "parseFields"
588
607
  }];
589
608
  }
590
- static get listeners() {
591
- return [{
592
- "name": "authStatusChanged",
593
- "method": "onAuthStatusChanged",
594
- "target": "body",
595
- "capture": false,
596
- "passive": false
597
- }];
598
- }
599
609
  }