@ebrains/components 0.0.1-alpha.0 → 0.3.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 (648) hide show
  1. package/dist/cjs/{color-ac51ccf7.js → color-3ffe3072.js} +6 -6
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  3. package/dist/cjs/components.cjs.js +3 -30
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  5. package/dist/cjs/eds-accordion.cjs.entry.js +5 -4
  6. package/dist/cjs/eds-alert.cjs.entry.js +10 -9
  7. package/dist/cjs/{eds-accordion_23.cjs.entry.js → eds-avatar_17.cjs.entry.js} +353 -785
  8. package/dist/cjs/eds-card-desc_3.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-card-generic.cjs.entry.js +18 -6
  10. package/dist/cjs/eds-card-project.cjs.entry.js +5 -5
  11. package/dist/cjs/eds-card-section.cjs.entry.js +20 -8
  12. package/dist/cjs/eds-card-tags.cjs.entry.js +3 -2
  13. package/dist/cjs/eds-card-tool.cjs.entry.js +6 -5
  14. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-code-block.cjs.entry.js +4 -34
  16. package/dist/cjs/eds-components-section.cjs.entry.js +45 -25
  17. package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
  18. package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
  19. package/dist/cjs/eds-form.cjs.entry.js +96 -23
  20. package/dist/cjs/eds-frame.cjs.entry.js +1 -1
  21. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +3 -3
  22. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +3 -3
  23. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +3 -3
  24. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +3 -3
  25. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +3 -3
  26. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +3 -3
  27. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +3 -3
  28. package/dist/cjs/eds-icon-close.cjs.entry.js +3 -3
  29. package/dist/cjs/eds-icon-copy.cjs.entry.js +3 -3
  30. package/dist/cjs/eds-icon-eu.cjs.entry.js +3 -3
  31. package/dist/cjs/eds-icon-facebook.cjs.entry.js +3 -3
  32. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +3 -3
  33. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +3 -3
  34. package/dist/cjs/eds-icon-loader.cjs.entry.js +3 -3
  35. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +3 -3
  36. package/dist/cjs/eds-icon-menu.cjs.entry.js +3 -3
  37. package/dist/cjs/eds-icon-more.cjs.entry.js +3 -3
  38. package/dist/cjs/eds-icon-search.cjs.entry.js +3 -3
  39. package/dist/cjs/eds-icon-success.cjs.entry.js +3 -3
  40. package/dist/cjs/eds-icon-twitter.cjs.entry.js +3 -3
  41. package/dist/cjs/eds-icon-user.cjs.entry.js +3 -3
  42. package/dist/cjs/eds-icon-youtube.cjs.entry.js +3 -3
  43. package/dist/cjs/{eds-input-field.cjs.entry.js → eds-input_7.cjs.entry.js} +249 -5
  44. package/dist/cjs/eds-login.cjs.entry.js +3 -3
  45. package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
  46. package/dist/cjs/eds-matomo-notice.cjs.entry.js +7 -6
  47. package/dist/cjs/eds-modal.cjs.entry.js +45 -5
  48. package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
  49. package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +160 -2
  50. package/dist/cjs/eds-progress-bar.cjs.entry.js +3 -2
  51. package/dist/cjs/eds-rating.cjs.entry.js +3 -2
  52. package/dist/cjs/eds-section-core_2.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-svg-repository.cjs.entry.js +298 -4
  54. package/dist/cjs/eds-tab.cjs.entry.js +2 -2
  55. package/dist/cjs/eds-tabs-content.cjs.entry.js +6 -6
  56. package/dist/cjs/eds-tabs.cjs.entry.js +32 -10
  57. package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
  58. package/dist/cjs/eds-tooltip.cjs.entry.js +4 -3
  59. package/dist/cjs/eds-trl.cjs.entry.js +52 -0
  60. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  61. package/dist/cjs/{index-2cc3495f.js → index-f08e4f5c.js} +54 -37
  62. package/dist/cjs/{loader-5efe2c21.js → loader-72f9d178.js} +2 -5
  63. package/dist/cjs/loader.cjs.js +2 -2
  64. package/dist/cjs/logo-space.cjs.entry.js +5 -4
  65. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  66. package/dist/cjs/logo-wrong-usage.cjs.entry.js +6 -5
  67. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  68. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  69. package/dist/cjs/token-spacing.cjs.entry.js +2 -2
  70. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  71. package/dist/collection/collection-manifest.json +3 -0
  72. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  73. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
  74. package/dist/collection/components/eds-button/eds-button.js +3 -3
  75. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +21 -1
  76. package/dist/collection/components/eds-form/eds-form.css +10 -0
  77. package/dist/collection/components/eds-form/eds-form.js +111 -20
  78. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
  79. package/dist/collection/components/eds-input-field/eds-input-field.css +16 -6
  80. package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
  81. package/dist/collection/components/eds-modal/eds-modal.css +8 -0
  82. package/dist/collection/components/eds-modal/eds-modal.js +42 -2
  83. package/dist/collection/components/eds-table/eds-table.css +4 -0
  84. package/dist/collection/components/eds-table/eds-table.js +69 -11
  85. package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
  86. package/dist/collection/components/eds-timeline/eds-timeline.js +99 -0
  87. package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
  88. package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
  89. package/dist/collection/components/eds-trl/eds-trl.js +69 -0
  90. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  91. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  92. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  93. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  94. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  95. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  96. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  97. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
  98. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  99. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  100. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  101. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  102. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  103. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  104. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
  105. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  106. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  107. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
  108. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
  109. package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
  110. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  111. package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
  112. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  113. package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
  114. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  115. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
  116. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
  117. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
  118. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
  119. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  120. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +19 -8
  121. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
  122. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  123. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
  124. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  125. package/dist/collection/shared-ui/eds-header/eds-header.js +10 -6
  126. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
  127. package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
  128. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
  129. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  130. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
  131. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
  132. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  133. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
  134. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  135. package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
  136. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
  137. package/dist/components/analytics.js +6 -6
  138. package/dist/components/components.css +38 -0
  139. package/dist/components/components.esm.js +1 -47
  140. package/dist/components/correct-use-of-colors.js +1 -1
  141. package/dist/components/eds-accordion2.js +4 -3
  142. package/dist/components/eds-alert2.js +3 -2
  143. package/dist/components/eds-avatar2.js +3 -2
  144. package/dist/components/eds-block-break2.js +2 -1
  145. package/dist/components/eds-breadcrumb.js +15 -13
  146. package/dist/components/eds-button2.js +6 -4
  147. package/dist/components/eds-card-desc2.js +2 -1
  148. package/dist/components/eds-card-generic2.js +17 -4
  149. package/dist/components/eds-card-project.js +2 -1
  150. package/dist/components/eds-card-section.js +19 -7
  151. package/dist/components/eds-card-tags.js +2 -1
  152. package/dist/components/eds-card-title2.js +2 -1
  153. package/dist/components/eds-card-tool.js +4 -2
  154. package/dist/components/eds-code-block2.js +3 -33
  155. package/dist/components/eds-components-section.js +44 -24
  156. package/dist/components/eds-docs-palettes.js +1 -1
  157. package/dist/components/eds-docs-tokens.js +1 -1
  158. package/dist/components/eds-dropdown2.js +2 -1
  159. package/dist/components/eds-footer2.js +3 -2
  160. package/dist/components/eds-form.js +97 -22
  161. package/dist/components/eds-fullscreen-menu.js +2 -1
  162. package/dist/components/eds-header.js +9 -4
  163. package/dist/components/eds-icon-arrow-diagonal.js +1 -1
  164. package/dist/components/eds-icon-arrow-right.js +1 -1
  165. package/dist/components/eds-icon-bluesky.js +1 -1
  166. package/dist/components/eds-icon-chevron-down.js +1 -1
  167. package/dist/components/eds-icon-chevron-left.js +1 -1
  168. package/dist/components/eds-icon-chevron-right.js +1 -1
  169. package/dist/components/eds-icon-chevron-up.js +1 -1
  170. package/dist/components/eds-icon-close.js +1 -1
  171. package/dist/components/eds-icon-copy.js +1 -1
  172. package/dist/components/eds-icon-eu.js +1 -1
  173. package/dist/components/eds-icon-facebook.js +1 -1
  174. package/dist/components/eds-icon-gitlab.js +1 -1
  175. package/dist/components/eds-icon-linkedin.js +1 -1
  176. package/dist/components/eds-icon-loader.js +1 -1
  177. package/dist/components/eds-icon-mastodon.js +1 -1
  178. package/dist/components/eds-icon-menu.js +1 -1
  179. package/dist/components/eds-icon-more.js +1 -1
  180. package/dist/components/eds-icon-search.js +1 -1
  181. package/dist/components/eds-icon-success.js +1 -1
  182. package/dist/components/eds-icon-twitter.js +1 -1
  183. package/dist/components/eds-icon-user.js +1 -1
  184. package/dist/components/eds-icon-youtube.js +1 -1
  185. package/dist/components/eds-img2.js +2 -1
  186. package/dist/components/eds-input-field2.js +5 -4
  187. package/dist/components/eds-input-select2.js +70 -2
  188. package/dist/components/eds-link2.js +5 -3
  189. package/dist/components/eds-login.js +3 -2
  190. package/dist/components/eds-logo-variations.d.ts +11 -0
  191. package/dist/components/eds-logo-variations.js +60 -0
  192. package/dist/components/eds-logo2.js +6 -3
  193. package/dist/components/eds-matomo-notice.js +4 -2
  194. package/dist/components/eds-modal.js +44 -4
  195. package/dist/components/eds-pagination2.js +2 -1
  196. package/dist/components/eds-progress-bar.js +1 -40
  197. package/dist/components/{eds-progress-bar.entry.js → eds-progress-bar2.js} +26 -7
  198. package/dist/components/eds-rating.js +2 -1
  199. package/dist/components/eds-section-core2.js +2 -1
  200. package/dist/components/eds-social-networks.js +2 -2
  201. package/dist/components/eds-social-networks2.js +7 -6
  202. package/dist/components/eds-svg-repository.js +296 -2
  203. package/dist/components/eds-tab2.js +1 -1
  204. package/dist/components/eds-table2.js +38 -15
  205. package/dist/components/eds-tabs-content.js +5 -4
  206. package/dist/components/eds-tabs.js +31 -8
  207. package/dist/components/eds-tag2.js +3 -2
  208. package/dist/components/eds-timeline.d.ts +11 -0
  209. package/dist/components/eds-timeline.js +131 -0
  210. package/dist/components/eds-toast-manager.js +3 -2
  211. package/dist/components/eds-toast2.js +1 -1
  212. package/dist/components/eds-tooltip.js +3 -2
  213. package/dist/components/eds-trl.d.ts +11 -0
  214. package/dist/components/eds-trl.js +139 -0
  215. package/dist/components/eds-user-modal2.js +1 -4
  216. package/dist/components/eds-user2.js +12 -6
  217. package/dist/components/incorrect-use-of-colors.js +20 -2
  218. package/dist/components/index.esm.js +0 -1
  219. package/dist/components/index2.js +44 -399
  220. package/dist/components/keycloak.js +0 -10
  221. package/dist/components/loader.js +2 -5
  222. package/dist/components/logo-space.js +4 -3
  223. package/dist/components/logo-variations-horizontal.js +2 -49
  224. package/dist/components/logo-variations-horizontal2.js +37 -0
  225. package/dist/components/logo-variations-vertical.js +2 -49
  226. package/dist/components/logo-variations-vertical2.js +42 -0
  227. package/dist/components/logo-wrong-usage.js +5 -4
  228. package/dist/components/{p-9c05e349.entry.js → p-005de86f.entry.js} +1 -1
  229. package/dist/components/{p-877403df.entry.js → p-02e2a62f.entry.js} +1 -1
  230. package/dist/components/{p-3dbf2ac9.entry.js → p-0910d733.entry.js} +1 -1
  231. package/dist/components/{p-6bc00fad.entry.js → p-0c2e844e.entry.js} +1 -1
  232. package/dist/components/{p-378d371f.entry.js → p-145f13ad.entry.js} +1 -1
  233. package/dist/components/{p-0a195bfe.entry.js → p-16458a81.entry.js} +1 -1
  234. package/dist/components/p-2117611b.js +1 -0
  235. package/dist/components/{p-513bf756.entry.js → p-22762818.entry.js} +1 -1
  236. package/dist/components/{p-94b74ae8.entry.js → p-22e6d7d5.entry.js} +1 -1
  237. package/dist/components/p-22f9e720.js +1 -0
  238. package/dist/components/p-2851ff44.entry.js +1 -0
  239. package/dist/components/p-29648b47.entry.js +1 -0
  240. package/dist/components/p-297b2bc3.entry.js +1 -0
  241. package/dist/components/{p-4541cb5f.entry.js → p-2e8459ef.entry.js} +1 -1
  242. package/dist/components/p-32cddd94.entry.js +1 -0
  243. package/dist/components/{p-0611bbac.entry.js → p-32f282a9.entry.js} +1 -1
  244. package/dist/components/p-3617841d.entry.js +1 -0
  245. package/dist/components/p-373673ca.js +1 -0
  246. package/dist/components/{p-677f60bc.entry.js → p-388b4966.entry.js} +1 -1
  247. package/dist/components/p-3ff76976.entry.js +1 -0
  248. package/dist/components/{p-ff6b25a1.entry.js → p-4037ad48.entry.js} +1 -1
  249. package/dist/components/{p-c16b3c0c.entry.js → p-42b4ecff.entry.js} +1 -1
  250. package/dist/components/{p-fa1276cc.entry.js → p-435a14c1.entry.js} +1 -1
  251. package/dist/components/p-490ba155.entry.js +1 -0
  252. package/dist/components/p-4932aab2.entry.js +1 -0
  253. package/dist/components/p-4a24c2ce.entry.js +1 -0
  254. package/dist/components/p-52ac3456.entry.js +1 -0
  255. package/dist/components/{p-b544f216.entry.js → p-54c75346.entry.js} +1 -1
  256. package/dist/components/{p-11a4ef34.entry.js → p-57c964c5.entry.js} +1 -1
  257. package/dist/components/p-5a43503a.entry.js +1 -0
  258. package/dist/components/p-5aad9d3f.entry.js +1 -0
  259. package/dist/components/p-5afb626c.entry.js +1 -0
  260. package/dist/components/p-5d7af761.entry.js +1 -0
  261. package/dist/components/{p-2728a189.entry.js → p-5fc68438.entry.js} +1 -1
  262. package/dist/components/p-6378fb3e.entry.js +1 -0
  263. package/dist/components/p-673dce11.entry.js +1 -0
  264. package/dist/components/{p-c0afe524.entry.js → p-6fc62452.entry.js} +1 -1
  265. package/dist/components/p-7215789a.entry.js +1 -0
  266. package/dist/components/{p-36c0f3ee.entry.js → p-73bd0c97.entry.js} +1 -1
  267. package/dist/components/p-762c8c83.entry.js +1 -0
  268. package/dist/components/p-7802e966.entry.js +1 -0
  269. package/dist/components/p-79887c2c.entry.js +1 -0
  270. package/dist/components/{p-e9a1fb1e.js → p-7a8b9de5.js} +2 -2
  271. package/dist/components/p-846fc91c.entry.js +1 -0
  272. package/dist/components/p-84957b6d.entry.js +1 -0
  273. package/dist/components/{p-e69ff916.entry.js → p-87830085.entry.js} +1 -1
  274. package/dist/components/p-8c56e39a.entry.js +1 -0
  275. package/dist/components/p-96c4deda.entry.js +1 -0
  276. package/dist/components/p-a44a1abe.entry.js +1 -0
  277. package/dist/components/p-a4e9b68b.entry.js +1 -0
  278. package/dist/components/p-ac0112d5.entry.js +1 -0
  279. package/dist/components/p-acb16e1c.entry.js +1 -0
  280. package/dist/components/p-ae5dbd41.entry.js +1 -0
  281. package/dist/components/{p-6cb8c52d.entry.js → p-bdd86a3c.entry.js} +1 -1
  282. package/dist/components/{p-22ee5374.entry.js → p-be6c80da.entry.js} +1 -1
  283. package/dist/components/p-bf0f851d.entry.js +1 -0
  284. package/dist/components/{p-82453a66.entry.js → p-c2d369bc.entry.js} +1 -1
  285. package/dist/components/p-d1670eec.entry.js +1 -0
  286. package/dist/components/p-d1f6a722.entry.js +1 -0
  287. package/dist/components/p-d53b7a75.entry.js +1 -0
  288. package/dist/components/{p-c11d93cf.entry.js → p-d571d530.entry.js} +1 -1
  289. package/dist/components/{p-bad2a33a.entry.js → p-d6d86366.entry.js} +1 -1
  290. package/dist/components/p-d7a92efb.entry.js +1 -0
  291. package/dist/components/p-d9788b54.entry.js +1 -0
  292. package/dist/components/{p-606d8f86.entry.js → p-e20ed2c7.entry.js} +1 -1
  293. package/dist/components/{p-200ad980.entry.js → p-e6bfbf51.entry.js} +1 -1
  294. package/dist/components/{p-ddd005a3.entry.js → p-e74834bc.entry.js} +1 -1
  295. package/dist/components/{p-b94318f2.entry.js → p-f7a6ce69.entry.js} +1 -1
  296. package/dist/components/p-fd27e56c.entry.js +1 -0
  297. package/dist/components/primary.js +1 -1
  298. package/dist/components/primary2.js +1 -1
  299. package/dist/components/secondary.js +1 -1
  300. package/dist/components/secondary2.js +7 -7
  301. package/dist/components/support.js +1 -1
  302. package/dist/components/support2.js +3 -3
  303. package/dist/components/token-list2.js +1 -1
  304. package/dist/components/token-radii2.js +1 -1
  305. package/dist/components/token-ratios.js +1 -1
  306. package/dist/components/token-shadows2.js +1 -1
  307. package/dist/components/token-spacing.js +1 -1
  308. package/dist/components/token-typography.js +1 -1
  309. package/dist/esm/{color-49aa977d.js → color-0ba8ed56.js} +6 -6
  310. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  311. package/dist/esm/components.js +4 -31
  312. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  313. package/dist/esm/eds-accordion.entry.js +5 -4
  314. package/dist/esm/eds-alert.entry.js +4 -3
  315. package/dist/esm/{eds-accordion_23.entry.js → eds-avatar_17.entry.js} +348 -774
  316. package/dist/esm/eds-card-desc_3.entry.js +1 -1
  317. package/dist/esm/eds-card-generic.entry.js +17 -5
  318. package/dist/esm/eds-card-project.entry.js +3 -3
  319. package/dist/esm/eds-card-section.entry.js +20 -8
  320. package/dist/esm/eds-card-tags.entry.js +3 -2
  321. package/dist/esm/eds-card-tool.entry.js +5 -4
  322. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  323. package/dist/esm/eds-code-block.entry.js +4 -34
  324. package/dist/esm/eds-components-section.entry.js +45 -25
  325. package/dist/esm/eds-docs-palettes.entry.js +2 -2
  326. package/dist/esm/eds-docs-tokens.entry.js +2 -2
  327. package/dist/esm/eds-form.entry.js +96 -23
  328. package/dist/esm/eds-frame.entry.js +1 -1
  329. package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
  330. package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
  331. package/dist/esm/eds-icon-bluesky.entry.js +2 -2
  332. package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
  333. package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
  334. package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
  335. package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
  336. package/dist/esm/eds-icon-close.entry.js +2 -2
  337. package/dist/esm/eds-icon-copy.entry.js +2 -2
  338. package/dist/esm/eds-icon-eu.entry.js +2 -2
  339. package/dist/esm/eds-icon-facebook.entry.js +2 -2
  340. package/dist/esm/eds-icon-gitlab.entry.js +2 -2
  341. package/dist/esm/eds-icon-linkedin.entry.js +2 -2
  342. package/dist/esm/eds-icon-loader.entry.js +2 -2
  343. package/dist/esm/eds-icon-mastodon.entry.js +2 -2
  344. package/dist/esm/eds-icon-menu.entry.js +2 -2
  345. package/dist/esm/eds-icon-more.entry.js +2 -2
  346. package/dist/esm/eds-icon-search.entry.js +2 -2
  347. package/dist/esm/eds-icon-success.entry.js +2 -2
  348. package/dist/esm/eds-icon-twitter.entry.js +2 -2
  349. package/dist/esm/eds-icon-user.entry.js +2 -2
  350. package/dist/esm/eds-icon-youtube.entry.js +2 -2
  351. package/dist/{components/eds-input-field.entry.js → esm/eds-input_7.entry.js} +244 -6
  352. package/dist/esm/eds-login.entry.js +3 -3
  353. package/dist/esm/eds-logo-variations.entry.js +23 -0
  354. package/dist/esm/eds-matomo-notice.entry.js +6 -5
  355. package/dist/esm/eds-modal.entry.js +45 -5
  356. package/dist/esm/eds-navigator.entry.js +1 -1
  357. package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +160 -3
  358. package/dist/esm/eds-progress-bar.entry.js +3 -2
  359. package/dist/esm/eds-rating.entry.js +3 -2
  360. package/dist/esm/eds-section-core_2.entry.js +1 -1
  361. package/dist/esm/eds-svg-repository.entry.js +297 -3
  362. package/dist/esm/eds-tab.entry.js +2 -2
  363. package/dist/esm/eds-tabs-content.entry.js +5 -5
  364. package/dist/esm/eds-tabs.entry.js +31 -9
  365. package/dist/esm/eds-timeline.entry.js +72 -0
  366. package/dist/esm/eds-tooltip.entry.js +4 -3
  367. package/dist/esm/eds-trl.entry.js +48 -0
  368. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  369. package/dist/esm/{index-f1426055.js → index-e96badea.js} +54 -37
  370. package/dist/esm/{loader-66341740.js → loader-c9628637.js} +2 -5
  371. package/dist/esm/loader.js +3 -3
  372. package/dist/esm/logo-space.entry.js +5 -4
  373. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  374. package/dist/esm/logo-wrong-usage.entry.js +6 -5
  375. package/dist/esm/token-list_3.entry.js +4 -4
  376. package/dist/esm/token-ratios.entry.js +2 -2
  377. package/dist/esm/token-spacing.entry.js +2 -2
  378. package/dist/esm/token-typography.entry.js +2 -2
  379. package/dist/hydrate/index.js +671 -223
  380. package/dist/hydrate/index.mjs +671 -223
  381. package/dist/stencil.config.js +4 -3
  382. package/dist/types/components/eds-accordion/eds-accordion.d.ts +2 -2
  383. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
  384. package/dist/types/components/eds-button/eds-button.d.ts +2 -2
  385. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +2 -0
  386. package/dist/types/components/eds-form/eds-form.d.ts +8 -0
  387. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
  388. package/dist/types/components/eds-modal/eds-modal.d.ts +16 -0
  389. package/dist/types/components/eds-table/eds-table.d.ts +9 -1
  390. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
  391. package/dist/types/components/eds-timeline/eds-timeline.d.ts +26 -0
  392. package/dist/types/components/eds-timeline/eds-timeline.stories.d.ts +24 -0
  393. package/dist/types/components/eds-trl/eds-trl.d.ts +12 -0
  394. package/dist/types/components.d.ts +255 -32
  395. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
  396. package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
  397. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
  398. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
  399. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
  400. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +6 -1
  401. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
  402. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
  403. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
  404. package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
  405. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
  406. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  407. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
  408. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
  409. package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
  410. package/package.json +3 -3
  411. package/dist/cjs/color-primary-palette.cjs.entry.js +0 -43
  412. package/dist/cjs/color-secondary-palette.cjs.entry.js +0 -68
  413. package/dist/cjs/color-support-palette.cjs.entry.js +0 -59
  414. package/dist/cjs/eds-avatar.cjs.entry.js +0 -73
  415. package/dist/cjs/eds-block-break.cjs.entry.js +0 -20
  416. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -152
  417. package/dist/cjs/eds-button.cjs.entry.js +0 -233
  418. package/dist/cjs/eds-card-desc.cjs.entry.js +0 -26
  419. package/dist/cjs/eds-card-title.cjs.entry.js +0 -56
  420. package/dist/cjs/eds-dropdown.cjs.entry.js +0 -129
  421. package/dist/cjs/eds-footer.cjs.entry.js +0 -49
  422. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -99
  423. package/dist/cjs/eds-header.cjs.entry.js +0 -96
  424. package/dist/cjs/eds-icon-wrapper.cjs.entry.js +0 -40
  425. package/dist/cjs/eds-img.cjs.entry.js +0 -57
  426. package/dist/cjs/eds-input-footer.cjs.entry.js +0 -21
  427. package/dist/cjs/eds-input-label.cjs.entry.js +0 -20
  428. package/dist/cjs/eds-input-range.cjs.entry.js +0 -39
  429. package/dist/cjs/eds-input-search.cjs.entry.js +0 -41
  430. package/dist/cjs/eds-input-select.cjs.entry.js +0 -30
  431. package/dist/cjs/eds-input.cjs.entry.js +0 -68
  432. package/dist/cjs/eds-link.cjs.entry.js +0 -211
  433. package/dist/cjs/eds-logo.cjs.entry.js +0 -76
  434. package/dist/cjs/eds-section-core.cjs.entry.js +0 -23
  435. package/dist/cjs/eds-section-heading.cjs.entry.js +0 -41
  436. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -65
  437. package/dist/cjs/eds-table.cjs.entry.js +0 -142
  438. package/dist/cjs/eds-tag.cjs.entry.js +0 -44
  439. package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -45
  440. package/dist/cjs/eds-toast.cjs.entry.js +0 -53
  441. package/dist/cjs/eds-user-modal.cjs.entry.js +0 -47
  442. package/dist/cjs/eds-user.cjs.entry.js +0 -90
  443. package/dist/cjs/gradient-primary-palette.cjs.entry.js +0 -45
  444. package/dist/cjs/gradient-secondary-palette.cjs.entry.js +0 -79
  445. package/dist/cjs/gradient-support-palette.cjs.entry.js +0 -63
  446. package/dist/cjs/index-1ff5f25c.js +0 -48
  447. package/dist/cjs/index-383d2951.js +0 -3449
  448. package/dist/cjs/index-96a4261e.js +0 -405
  449. package/dist/cjs/index-f62478aa.js +0 -1837
  450. package/dist/cjs/keycloak-940b83c1.js +0 -1910
  451. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -30
  452. package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -30
  453. package/dist/cjs/shadow-css-988e4292.js +0 -334
  454. package/dist/cjs/token-list.cjs.entry.js +0 -253
  455. package/dist/cjs/token-radii.cjs.entry.js +0 -25
  456. package/dist/cjs/token-shadows.cjs.entry.js +0 -34
  457. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  458. package/dist/components/app-globals-0f993ce5.js +0 -3
  459. package/dist/components/color-primary-palette.entry.js +0 -39
  460. package/dist/components/color-secondary-palette.entry.js +0 -64
  461. package/dist/components/color-support-palette.entry.js +0 -55
  462. package/dist/components/correct-use-of-colors.entry.js +0 -64
  463. package/dist/components/eds-accordion.entry.js +0 -88
  464. package/dist/components/eds-alert.entry.js +0 -91
  465. package/dist/components/eds-avatar.entry.js +0 -69
  466. package/dist/components/eds-block-break.entry.js +0 -16
  467. package/dist/components/eds-breadcrumb.entry.js +0 -148
  468. package/dist/components/eds-button.entry.js +0 -229
  469. package/dist/components/eds-card-desc.entry.js +0 -22
  470. package/dist/components/eds-card-generic.entry.js +0 -89
  471. package/dist/components/eds-card-project.entry.js +0 -63
  472. package/dist/components/eds-card-section.entry.js +0 -39
  473. package/dist/components/eds-card-tags.entry.js +0 -17
  474. package/dist/components/eds-card-title.entry.js +0 -52
  475. package/dist/components/eds-card-tool.entry.js +0 -75
  476. package/dist/components/eds-card-wrapper.entry.js +0 -28
  477. package/dist/components/eds-code-block.entry.js +0 -2468
  478. package/dist/components/eds-components-section.entry.js +0 -92
  479. package/dist/components/eds-docs-palettes.entry.js +0 -23
  480. package/dist/components/eds-docs-tokens.entry.js +0 -31
  481. package/dist/components/eds-dropdown.entry.js +0 -125
  482. package/dist/components/eds-footer.entry.js +0 -45
  483. package/dist/components/eds-form.entry.js +0 -245
  484. package/dist/components/eds-frame.entry.js +0 -87
  485. package/dist/components/eds-fullscreen-menu.entry.js +0 -95
  486. package/dist/components/eds-header.entry.js +0 -92
  487. package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
  488. package/dist/components/eds-icon-arrow-right.entry.js +0 -14
  489. package/dist/components/eds-icon-bluesky.entry.js +0 -14
  490. package/dist/components/eds-icon-chevron-down.entry.js +0 -14
  491. package/dist/components/eds-icon-chevron-left.entry.js +0 -14
  492. package/dist/components/eds-icon-chevron-right.entry.js +0 -14
  493. package/dist/components/eds-icon-chevron-up.entry.js +0 -14
  494. package/dist/components/eds-icon-close.entry.js +0 -14
  495. package/dist/components/eds-icon-copy.entry.js +0 -14
  496. package/dist/components/eds-icon-eu.entry.js +0 -14
  497. package/dist/components/eds-icon-facebook.entry.js +0 -14
  498. package/dist/components/eds-icon-gitlab.entry.js +0 -14
  499. package/dist/components/eds-icon-linkedin.entry.js +0 -14
  500. package/dist/components/eds-icon-loader.entry.js +0 -14
  501. package/dist/components/eds-icon-mastodon.entry.js +0 -14
  502. package/dist/components/eds-icon-menu.entry.js +0 -14
  503. package/dist/components/eds-icon-more.entry.js +0 -14
  504. package/dist/components/eds-icon-search.entry.js +0 -14
  505. package/dist/components/eds-icon-success.entry.js +0 -14
  506. package/dist/components/eds-icon-twitter.entry.js +0 -14
  507. package/dist/components/eds-icon-user.entry.js +0 -14
  508. package/dist/components/eds-icon-wrapper.entry.js +0 -36
  509. package/dist/components/eds-icon-youtube.entry.js +0 -14
  510. package/dist/components/eds-img.entry.js +0 -53
  511. package/dist/components/eds-input-footer.entry.js +0 -17
  512. package/dist/components/eds-input-label.entry.js +0 -16
  513. package/dist/components/eds-input-range.entry.js +0 -35
  514. package/dist/components/eds-input-search.entry.js +0 -37
  515. package/dist/components/eds-input-select.entry.js +0 -26
  516. package/dist/components/eds-input.entry.js +0 -64
  517. package/dist/components/eds-link.entry.js +0 -207
  518. package/dist/components/eds-login.entry.js +0 -68
  519. package/dist/components/eds-logo.entry.js +0 -72
  520. package/dist/components/eds-matomo-notice.entry.js +0 -105
  521. package/dist/components/eds-modal.entry.js +0 -42
  522. package/dist/components/eds-navigator.entry.js +0 -39
  523. package/dist/components/eds-pagination.entry.js +0 -207
  524. package/dist/components/eds-rating.entry.js +0 -53
  525. package/dist/components/eds-section-core.entry.js +0 -19
  526. package/dist/components/eds-section-heading.entry.js +0 -37
  527. package/dist/components/eds-social-networks.entry.js +0 -61
  528. package/dist/components/eds-svg-repository.entry.js +0 -28
  529. package/dist/components/eds-tab.entry.js +0 -36
  530. package/dist/components/eds-table.entry.js +0 -138
  531. package/dist/components/eds-tabs-content.entry.js +0 -129
  532. package/dist/components/eds-tabs.entry.js +0 -118
  533. package/dist/components/eds-tag.entry.js +0 -40
  534. package/dist/components/eds-toast-manager.entry.js +0 -41
  535. package/dist/components/eds-toast.entry.js +0 -49
  536. package/dist/components/eds-tooltip.entry.js +0 -95
  537. package/dist/components/eds-user-modal.entry.js +0 -43
  538. package/dist/components/eds-user.entry.js +0 -86
  539. package/dist/components/gradient-primary-palette.entry.js +0 -41
  540. package/dist/components/gradient-secondary-palette.entry.js +0 -75
  541. package/dist/components/gradient-support-palette.entry.js +0 -59
  542. package/dist/components/incorrect-use-of-colors.entry.js +0 -46
  543. package/dist/components/index-144c9ae8.js +0 -46
  544. package/dist/components/index-360dc790.js +0 -401
  545. package/dist/components/index-a9afa43f.js +0 -1802
  546. package/dist/components/index-b384416e.js +0 -3023
  547. package/dist/components/index3.js +0 -46
  548. package/dist/components/index4.js +0 -1802
  549. package/dist/components/keycloak-b647d452.js +0 -1903
  550. package/dist/components/logo-space.entry.js +0 -16
  551. package/dist/components/logo-variations-horizontal.entry.js +0 -26
  552. package/dist/components/logo-variations-vertical.entry.js +0 -26
  553. package/dist/components/logo-wrong-usage.entry.js +0 -16
  554. package/dist/components/p-0a6262b7.entry.js +0 -1
  555. package/dist/components/p-145d8e4d.entry.js +0 -1
  556. package/dist/components/p-1a1b8e28.entry.js +0 -1
  557. package/dist/components/p-1d94d663.entry.js +0 -1
  558. package/dist/components/p-219d9f68.entry.js +0 -1
  559. package/dist/components/p-25eb1801.entry.js +0 -1
  560. package/dist/components/p-2b14f03a.entry.js +0 -1
  561. package/dist/components/p-3048bdec.entry.js +0 -1
  562. package/dist/components/p-42dfb426.entry.js +0 -1
  563. package/dist/components/p-49a5eef5.entry.js +0 -1
  564. package/dist/components/p-52a487ee.entry.js +0 -1
  565. package/dist/components/p-55444767.entry.js +0 -1
  566. package/dist/components/p-5b900a2c.entry.js +0 -1
  567. package/dist/components/p-5edc806a.entry.js +0 -1
  568. package/dist/components/p-64d4a6e0.entry.js +0 -1
  569. package/dist/components/p-6f601454.entry.js +0 -1
  570. package/dist/components/p-763cbe2f.entry.js +0 -1
  571. package/dist/components/p-77a81dfa.entry.js +0 -1
  572. package/dist/components/p-7a2b35b4.entry.js +0 -1
  573. package/dist/components/p-81d2a9be.entry.js +0 -1
  574. package/dist/components/p-8c1be2b6.entry.js +0 -1
  575. package/dist/components/p-923e4d23.entry.js +0 -1
  576. package/dist/components/p-9c74a5dd.entry.js +0 -1
  577. package/dist/components/p-abcdf35f.js +0 -1
  578. package/dist/components/p-ac083317.entry.js +0 -1
  579. package/dist/components/p-ad79cc3c.entry.js +0 -1
  580. package/dist/components/p-b4055691.entry.js +0 -1
  581. package/dist/components/p-bfd2fdf1.entry.js +0 -1
  582. package/dist/components/p-c3c61db1.entry.js +0 -1
  583. package/dist/components/p-caf2af08.entry.js +0 -1
  584. package/dist/components/p-d80de13e.entry.js +0 -1
  585. package/dist/components/p-e04097a2.entry.js +0 -1
  586. package/dist/components/p-e2e715a2.entry.js +0 -1
  587. package/dist/components/p-e639818b.entry.js +0 -1
  588. package/dist/components/p-e80f4f24.js +0 -1
  589. package/dist/components/p-ec95188c.entry.js +0 -1
  590. package/dist/components/p-f04946a5.entry.js +0 -1
  591. package/dist/components/shadow-css-423dab2c.js +0 -332
  592. package/dist/components/token-list.entry.js +0 -249
  593. package/dist/components/token-radii.entry.js +0 -21
  594. package/dist/components/token-ratios.entry.js +0 -25
  595. package/dist/components/token-shadows.entry.js +0 -30
  596. package/dist/components/token-spacing.entry.js +0 -12
  597. package/dist/components/token-typography.entry.js +0 -226
  598. package/dist/esm/color-primary-palette.entry.js +0 -39
  599. package/dist/esm/color-secondary-palette.entry.js +0 -64
  600. package/dist/esm/color-support-palette.entry.js +0 -55
  601. package/dist/esm/eds-avatar.entry.js +0 -69
  602. package/dist/esm/eds-block-break.entry.js +0 -16
  603. package/dist/esm/eds-breadcrumb.entry.js +0 -148
  604. package/dist/esm/eds-button.entry.js +0 -229
  605. package/dist/esm/eds-card-desc.entry.js +0 -22
  606. package/dist/esm/eds-card-title.entry.js +0 -52
  607. package/dist/esm/eds-dropdown.entry.js +0 -125
  608. package/dist/esm/eds-footer.entry.js +0 -45
  609. package/dist/esm/eds-fullscreen-menu.entry.js +0 -95
  610. package/dist/esm/eds-header.entry.js +0 -92
  611. package/dist/esm/eds-icon-wrapper.entry.js +0 -36
  612. package/dist/esm/eds-img.entry.js +0 -53
  613. package/dist/esm/eds-input-field.entry.js +0 -68
  614. package/dist/esm/eds-input-footer.entry.js +0 -17
  615. package/dist/esm/eds-input-label.entry.js +0 -16
  616. package/dist/esm/eds-input-range.entry.js +0 -35
  617. package/dist/esm/eds-input-search.entry.js +0 -37
  618. package/dist/esm/eds-input-select.entry.js +0 -26
  619. package/dist/esm/eds-input.entry.js +0 -64
  620. package/dist/esm/eds-link.entry.js +0 -207
  621. package/dist/esm/eds-logo.entry.js +0 -72
  622. package/dist/esm/eds-section-core.entry.js +0 -19
  623. package/dist/esm/eds-section-heading.entry.js +0 -37
  624. package/dist/esm/eds-social-networks.entry.js +0 -61
  625. package/dist/esm/eds-table.entry.js +0 -138
  626. package/dist/esm/eds-tag.entry.js +0 -40
  627. package/dist/esm/eds-toast-manager.entry.js +0 -41
  628. package/dist/esm/eds-toast.entry.js +0 -49
  629. package/dist/esm/eds-user-modal.entry.js +0 -43
  630. package/dist/esm/eds-user.entry.js +0 -86
  631. package/dist/esm/gradient-primary-palette.entry.js +0 -41
  632. package/dist/esm/gradient-secondary-palette.entry.js +0 -75
  633. package/dist/esm/gradient-support-palette.entry.js +0 -59
  634. package/dist/esm/index-144c9ae8.js +0 -46
  635. package/dist/esm/index-360dc790.js +0 -401
  636. package/dist/esm/index-a9afa43f.js +0 -1802
  637. package/dist/esm/index-b384416e.js +0 -3416
  638. package/dist/esm/keycloak-b647d452.js +0 -1903
  639. package/dist/esm/logo-variations-horizontal.entry.js +0 -26
  640. package/dist/esm/logo-variations-vertical.entry.js +0 -26
  641. package/dist/esm/shadow-css-423dab2c.js +0 -332
  642. package/dist/esm/toastManager-b716afd8.js +0 -31
  643. package/dist/esm/token-list.entry.js +0 -249
  644. package/dist/esm/token-radii.entry.js +0 -21
  645. package/dist/esm/token-shadows.entry.js +0 -30
  646. /package/dist/cjs/{toastManager-1fb1a402.js → toastManager-4e9535f3.js} +0 -0
  647. /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
  648. /package/dist/{components/toastManager-b716afd8.js → esm/toastManager-d9eee791.js} +0 -0
@@ -1,9 +1,31 @@
1
1
  import { h } from "@stencil/core";
2
+ import { toast } from "../../../utils/toastManager";
2
3
  /**
3
- * @internal
4
+ * A custom select input component that supports both static and dynamic options.
5
+ *
6
+ * Options can be provided in two formats:
7
+ * 1. Dynamic fetch configuration:
8
+ * [
9
+ * { endpoint: "http://localhost/api/applications", value: "_id", label: "title" }
10
+ * ]
11
+ * 2. Static options:
12
+ * [
13
+ * { value: "react", label: "React" },
14
+ * { value: "angular", label: "Angular" },
15
+ * { value: "vue", label: "Vue.js" },
16
+ * // etc.
17
+ * ]
18
+ *
19
+ * The component will automatically fetch data if a dynamic configuration is provided.
4
20
  */
5
21
  export class EdsInputSelect {
6
22
  constructor() {
23
+ /**
24
+ * Event handler for the select input's change event.
25
+ * Emits the selected value.
26
+ *
27
+ * @param event The change event from the select input.
28
+ */
7
29
  this.handleChange = (event) => {
8
30
  const target = event.target;
9
31
  this.changeEvent.emit(target.value);
@@ -16,10 +38,60 @@ export class EdsInputSelect {
16
38
  this.error = false;
17
39
  this.required = false;
18
40
  this.options = [];
41
+ this.labelKey = 'label';
42
+ this.valueKey = 'value';
19
43
  this.value = undefined;
44
+ this.dynamicOptions = [];
45
+ this.loading = false;
46
+ this.dynamicValueKey = 'value';
47
+ this.dynamicLabelKey = 'label';
48
+ }
49
+ componentWillLoad() {
50
+ this.loadOptions();
51
+ }
52
+ /**
53
+ * Watches for changes in the `options` prop and loads the options accordingly.
54
+ *
55
+ * If the first object in the options array contains an "endpoint" key,
56
+ * the component will fetch options from the specified endpoint using the configured keys.
57
+ * Otherwise, it will treat the options as static.
58
+ *
59
+ * @async
60
+ */
61
+ async loadOptions() {
62
+ // If the first option contains an "endpoint" key, assume dynamic fetch mode.
63
+ if (this.options && this.options.length > 0 && this.options[0].endpoint) {
64
+ const config = this.options[0];
65
+ const endpoint = config.endpoint;
66
+ this.dynamicValueKey = config.value || 'value';
67
+ this.dynamicLabelKey = config.label || 'label';
68
+ this.loading = true;
69
+ try {
70
+ const response = await fetch(endpoint);
71
+ if (!response.ok) {
72
+ toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
73
+ }
74
+ const data = await response.json();
75
+ // Assume the API returns an array of objects.
76
+ this.dynamicOptions = data;
77
+ }
78
+ catch (error) {
79
+ //console.error('Error fetching dynamic options:', error);
80
+ toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
81
+ }
82
+ finally {
83
+ this.loading = false;
84
+ }
85
+ }
86
+ else {
87
+ // No dynamic configuration found, assume static options.
88
+ this.dynamicOptions = this.options;
89
+ this.dynamicValueKey = this.valueKey;
90
+ this.dynamicLabelKey = this.labelKey;
91
+ }
20
92
  }
21
93
  render() {
22
- return (h("div", { key: '9aaa3bf4491078f5b5df6f5f0d3d5f3739f25716', class: "relative" }, h("select", { key: '5f860de772d8d92eb36648bdaaca0c93146e8a68', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled, required: this.required, onChange: this.handleChange }, h("option", { key: '2d1e8fa6c5583e0580cbd92d731b731cdd7ecca8', value: "", disabled: true, hidden: true }, "Please select ", this.name), this.options.map((option, index) => (h("option", { key: index, value: option.value }, option.label)))), h("span", { key: 'f62edaae154ce443c964849689b5dc92d9303958', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled ? 'text-lightest bg-transparent' : ''}` }, h("eds-icon-wrapper", { key: '07d186b6e0a6742a4f6ce39dd275ff1a6f905927', class: "w-20 h-20", icon: "chevron-right" }))));
94
+ return (h("div", { key: '0b45eaae992171cd9795f7bf01883b0f3efbcc13', class: "relative" }, h("select", { key: '0ee8bccb24f7bd65e9347c0b79905154db39dca7', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, h("option", { key: 'b1b53dcf8dd3155e8dba28327f05b4725a013435', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (h("option", { key: index, value: option[this.dynamicValueKey] }, option[this.dynamicLabelKey])))), h("span", { key: '3f652e7ed7570b602565af3f0e3c5c91506e4089', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, h("eds-icon-wrapper", { key: '2237727060af6286c346f749d2e8e3f7f86c7c70', class: "w-20 h-20", icon: "chevron-right" }))));
23
95
  }
24
96
  static get is() { return "eds-input-select"; }
25
97
  static get properties() {
@@ -36,7 +108,7 @@ export class EdsInputSelect {
36
108
  "optional": true,
37
109
  "docs": {
38
110
  "tags": [],
39
- "text": ""
111
+ "text": "Optional id for the input. If not provided, the component uses the `name` property."
40
112
  },
41
113
  "attribute": "input-id",
42
114
  "reflect": false
@@ -53,7 +125,7 @@ export class EdsInputSelect {
53
125
  "optional": false,
54
126
  "docs": {
55
127
  "tags": [],
56
- "text": ""
128
+ "text": "The name attribute of the select input. Also used as the fallback id."
57
129
  },
58
130
  "attribute": "name",
59
131
  "reflect": false
@@ -70,7 +142,7 @@ export class EdsInputSelect {
70
142
  "optional": true,
71
143
  "docs": {
72
144
  "tags": [],
73
- "text": ""
145
+ "text": "Placeholder text (not used in the native select, but can be used for custom implementations)."
74
146
  },
75
147
  "attribute": "placeholder",
76
148
  "reflect": false
@@ -87,7 +159,7 @@ export class EdsInputSelect {
87
159
  "optional": false,
88
160
  "docs": {
89
161
  "tags": [],
90
- "text": ""
162
+ "text": "If true, the select input will be disabled."
91
163
  },
92
164
  "attribute": "disabled",
93
165
  "reflect": false,
@@ -105,7 +177,7 @@ export class EdsInputSelect {
105
177
  "optional": false,
106
178
  "docs": {
107
179
  "tags": [],
108
- "text": ""
180
+ "text": "If true, indicates that there is an associated message (help or error)."
109
181
  },
110
182
  "attribute": "has-message",
111
183
  "reflect": false,
@@ -123,7 +195,7 @@ export class EdsInputSelect {
123
195
  "optional": false,
124
196
  "docs": {
125
197
  "tags": [],
126
- "text": ""
198
+ "text": "If true, the select input is in an error state."
127
199
  },
128
200
  "attribute": "error",
129
201
  "reflect": false,
@@ -141,7 +213,7 @@ export class EdsInputSelect {
141
213
  "optional": false,
142
214
  "docs": {
143
215
  "tags": [],
144
- "text": ""
216
+ "text": "If true, the select input is marked as required."
145
217
  },
146
218
  "attribute": "required",
147
219
  "reflect": false,
@@ -151,18 +223,54 @@ export class EdsInputSelect {
151
223
  "type": "unknown",
152
224
  "mutable": false,
153
225
  "complexType": {
154
- "original": "{ label: string; value: string }[]",
155
- "resolved": "{ label: string; value: string; }[]",
226
+ "original": "{ [key: string]: any }[]",
227
+ "resolved": "{ [key: string]: any; }[]",
156
228
  "references": {}
157
229
  },
158
230
  "required": false,
159
231
  "optional": false,
160
232
  "docs": {
161
233
  "tags": [],
162
- "text": ""
234
+ "text": "Options can be provided in two formats:\n\n1. Dynamic fetch configuration:\n [\n { endpoint: \"http://localhost/api/applications\", value: \"_id\", label: \"title\" }\n ]\n\n2. Static options:\n [\n { value: \"react\", label: \"React\" },\n { value: \"angular\", label: \"Angular\" },\n { value: \"vue\", label: \"Vue.js\" },\n // etc.\n ]"
163
235
  },
164
236
  "defaultValue": "[]"
165
237
  },
238
+ "labelKey": {
239
+ "type": "string",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "string",
243
+ "resolved": "string",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "For static options, this property defines the key used to retrieve the display label."
251
+ },
252
+ "attribute": "label-key",
253
+ "reflect": false,
254
+ "defaultValue": "'label'"
255
+ },
256
+ "valueKey": {
257
+ "type": "string",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string",
261
+ "resolved": "string",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "For static options, this property defines the key used to retrieve the option value."
269
+ },
270
+ "attribute": "value-key",
271
+ "reflect": false,
272
+ "defaultValue": "'value'"
273
+ },
166
274
  "value": {
167
275
  "type": "any",
168
276
  "mutable": false,
@@ -175,13 +283,21 @@ export class EdsInputSelect {
175
283
  "optional": true,
176
284
  "docs": {
177
285
  "tags": [],
178
- "text": ""
286
+ "text": "The currently selected value."
179
287
  },
180
288
  "attribute": "value",
181
289
  "reflect": false
182
290
  }
183
291
  };
184
292
  }
293
+ static get states() {
294
+ return {
295
+ "dynamicOptions": {},
296
+ "loading": {},
297
+ "dynamicValueKey": {},
298
+ "dynamicLabelKey": {}
299
+ };
300
+ }
185
301
  static get events() {
186
302
  return [{
187
303
  "method": "changeEvent",
@@ -190,8 +306,11 @@ export class EdsInputSelect {
190
306
  "cancelable": true,
191
307
  "composed": true,
192
308
  "docs": {
193
- "tags": [],
194
- "text": ""
309
+ "tags": [{
310
+ "name": "event",
311
+ "text": "changeEvent"
312
+ }],
313
+ "text": "Emitted when the value of the select input changes."
195
314
  },
196
315
  "complexType": {
197
316
  "original": "string | number",
@@ -200,4 +319,10 @@ export class EdsInputSelect {
200
319
  }
201
320
  }];
202
321
  }
322
+ static get watchers() {
323
+ return [{
324
+ "propName": "options",
325
+ "methodName": "loadOptions"
326
+ }];
327
+ }
203
328
  }
@@ -5399,14 +5399,14 @@ video {
5399
5399
  }
5400
5400
  }
5401
5401
  .input-label {
5402
- font-family: var(--f-ui-04-fontFamily);
5403
- font-weight: var(--f-ui-04-fontWeight);
5404
- font-size: var(--f-ui-04-fontSize);
5405
- line-height: var(--f-ui-04-lineHeight);
5406
- letter-spacing: var(--f-ui-04-letterSpacing);
5402
+ font-family: var(--f-ui-03-fontFamily);
5403
+ font-weight: var(--f-ui-03-fontWeight);
5404
+ font-size: var(--f-ui-03-fontSize);
5405
+ line-height: var(--f-ui-03-lineHeight);
5406
+ letter-spacing: var(--f-ui-03-letterSpacing);
5407
5407
  }
5408
5408
  .input-label b,.input-label strong {
5409
- font-weight: var(--f-ui-04---bold-weight, bold);
5409
+ font-weight: var(--f-ui-03---bold-weight, bold);
5410
5410
  }
5411
5411
  .input {
5412
5412
  -webkit-appearance: none;
@@ -6193,6 +6193,16 @@ video {
6193
6193
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
6194
6194
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
6195
6195
  }
6196
+ .space-y-4 {
6197
+ --tw-space-y-reverse: 0;
6198
+ margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
6199
+ margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
6200
+ }
6201
+ .space-y-8 {
6202
+ --tw-space-y-reverse: 0;
6203
+ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
6204
+ margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
6205
+ }
6196
6206
  .overflow-hidden {
6197
6207
  overflow: hidden;
6198
6208
  }
@@ -63,11 +63,11 @@ export class EdsInputField {
63
63
  icon: this.icon,
64
64
  checked: this.checked
65
65
  };
66
- return (h("div", { key: 'e1e4c68a8ca48b9526217b1c1eeaecbf3c73a652', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (h("fieldset", { class: "space-y-4 mt-8" }, this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.parsedOptions.map((option) => (h("div", { class: "flex items-center gap-x-2", key: option.value }, h("eds-input", Object.assign({}, inputOpts, { value: option.value })), h("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (h("div", { class: "flex items-center gap-x-8" }, h("eds-input", Object.assign({}, inputOpts)), this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (h("div", null, h("div", { class: "flex justify-between" }, this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && h("p", { class: "f-ui-05 text-lighter ml-8" }, this.hint)), this.type === 'select' ? (h("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (h("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (h("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
66
+ return (h("div", { key: 'e1e4c68a8ca48b9526217b1c1eeaecbf3c73a652', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (h("fieldset", { class: "space-y-4 mt-8" }, h("div", { class: "flex justify-between" }, this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && h("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((option) => (h("div", { class: "flex items-center gap-x-2", key: option.value }, h("eds-input", Object.assign({}, inputOpts, { value: option.value })), h("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (h("div", { class: "flex items-center gap-x-8" }, h("eds-input", Object.assign({}, inputOpts)), this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (h("div", null, h("div", { class: "flex justify-between" }, this.label && (h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && h("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === 'select' ? (h("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (h("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (h("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
67
67
  var _a, _b, _c;
68
68
  const opt = this.parsedOptions;
69
69
  return (h("eds-input-range", { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, name: "range-slider" }));
70
- })()) : (h("eds-input", Object.assign({}, inputOpts))))), h("eds-input-footer", { key: '933890d4b428f2eae2c47e1d24da969b89345709', name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
70
+ })()) : (h("eds-input", Object.assign({}, inputOpts))))), h("eds-input-footer", { key: '7c283d5b193f179cdefbb011862358e3c92685c5', name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
71
71
  }
72
72
  static get is() { return "eds-input-field"; }
73
73
  static get encapsulation() { return "shadow"; }
@@ -60,6 +60,10 @@
60
60
  background-color: var(--white);
61
61
  }
62
62
 
63
+ .bg-dark {
64
+ background-color: var(--grey-300);
65
+ }
66
+
63
67
  .rounded-lg {
64
68
  border-radius: 16px;
65
69
  }
@@ -174,6 +178,10 @@
174
178
  padding-top: 0.5rem;
175
179
  }
176
180
 
181
+ .bg-opacity-90 {
182
+ opacity: 0.9;
183
+ }
184
+
177
185
  .line-clamp-1 {
178
186
  overflow: hidden;
179
187
  display: -webkit-box;
@@ -1,4 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
+ //import { sendAnalytics } from '@ebrains/utils';
2
3
  /**
3
4
  * `EdsModal` is a modal dialog component that can be toggled open or closed.
4
5
  *
@@ -24,12 +25,24 @@ export class EdsModal {
24
25
  */
25
26
  async open() {
26
27
  this.isOpen = true;
28
+ /*sendAnalytics({
29
+ category: 'ui-component',
30
+ tag: this.el.tagName.toLowerCase(),
31
+ name: this.title,
32
+ action: 'show'
33
+ });*/
27
34
  }
28
35
  /**
29
36
  * Closes the modal.
30
37
  */
31
38
  async close() {
32
39
  this.isOpen = false;
40
+ /*sendAnalytics({
41
+ category: 'ui-component',
42
+ tag: this.el.tagName.toLowerCase(),
43
+ name: this.title,
44
+ action: 'hide'
45
+ });*/
33
46
  }
34
47
  /**
35
48
  * Toggles the modal open or closed.
@@ -37,10 +50,36 @@ export class EdsModal {
37
50
  async toggle() {
38
51
  this.isOpen = !this.isOpen;
39
52
  }
53
+ /**
54
+ * Lifecycle method that runs when the component has fully loaded.
55
+ * It emits a custom event for each `eds-button` element contained within the breadcrumb.
56
+ */
57
+ componentDidLoad() {
58
+ // Emit context for each eds-link element after the component is fully loaded
59
+ const btns = this.el.shadowRoot.querySelectorAll('eds-button');
60
+ btns.forEach((btn) => {
61
+ this.emitContext(btn);
62
+ });
63
+ }
64
+ /**
65
+ * Emits a custom event called `parentContext` for a given button element.
66
+ * This event provides context information about the eds-modal component.
67
+ *
68
+ * @param btnElement - The link element to which the event will be dispatched.
69
+ */
70
+ emitContext(btnElement) {
71
+ const event = new CustomEvent('parentContext', {
72
+ detail: {
73
+ componentName: this.el.tagName.toLowerCase(),
74
+ identifier: null
75
+ }
76
+ });
77
+ btnElement.dispatchEvent(event);
78
+ }
40
79
  render() {
41
- return (h("div", { key: '97e718578e2801320cd38581782f3ed7adbd3ba5', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (h("div", { key: 'b7b27479b384552a02c8de602906916d2e77c8db', class: "fixed inset-0 backdrop-blur" // Add backdrop-blur utility class here
80
+ return (h("div", { key: '00816ecb900bd9b68b31fdf6e48bef0223f9e10a', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (h("div", { key: '570fa8625f9ad4b1ea82633f11e2b289ab01b853', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
42
81
  ,
43
- onClick: () => this.close() })), h("div", { key: '96fa205da65fbec35777b30b8b7ff8ee9e091f05', class: "max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center " }, h("div", { key: '4f712243107cc43ebaa012e91a3165f7009a0e95', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: '7ed021a29d50f99f2624ed9913b43aa5d63dd7ac', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), h("eds-button", { key: '1e8e3321e06e506a102613d57fc78af4c0c3aa34', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: 'b67b5636b5a619d54c83e754a4ca4418e33e5e13', class: "pt-8" }, h("slot", { key: '8dffee0db6547e58d12a78dd7240cc625a3e70f8' })))));
82
+ onClick: () => this.close() })), h("div", { key: 'ff658c763e3fbc98123f13483076399966b10515', class: "max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center " }, h("div", { key: 'd8b72acd90cc59ab1f82384aee4e311319f75aa9', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: 'ee61fc505c5a3eb93541d3762d37f28a5a788bae', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), h("eds-button", { key: '3832772417d05a162eb5f2c4d0733f0ee845ed1c', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: 'f71b38be8284a37d0d198df0a9858c64202b3d91', class: "pt-8" }, h("slot", { key: '1f80948334e5b4e9fc00a3bf01c6fc402d8220c3' })))));
44
83
  }
45
84
  static get is() { return "eds-modal"; }
46
85
  static get encapsulation() { return "shadow"; }
@@ -172,4 +211,5 @@ export class EdsModal {
172
211
  }
173
212
  };
174
213
  }
214
+ static get elementRef() { return "el"; }
175
215
  }
@@ -135,4 +135,8 @@ table {
135
135
 
136
136
  .text-center {
137
137
  text-align: center;
138
+ }
139
+
140
+ .break-words {
141
+ overflow-wrap: anywhere;
138
142
  }
@@ -12,13 +12,14 @@ import { h } from "@stencil/core";
12
12
  */
13
13
  export class EdsTable {
14
14
  constructor() {
15
- this.minWidth = 400; // Minimum width for components in px
16
15
  this.data = null;
17
16
  this.endpoint = null;
18
17
  this.config = {};
19
18
  this.rowsPerPage = 10;
20
19
  this.paginationEnabled = true;
21
20
  this.searchEnabled = false;
21
+ this.hostWidth = undefined;
22
+ this.columnSize = 'default';
22
23
  this.tableData = [];
23
24
  this.columns = [];
24
25
  this.currentPage = 1;
@@ -116,23 +117,42 @@ export class EdsTable {
116
117
  getVisibleColumnsCount() {
117
118
  return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
118
119
  }
120
+ divisionFactor() {
121
+ let divisionFactor = 1;
122
+ if (this.columnSize === 'medium') {
123
+ divisionFactor = 2;
124
+ }
125
+ else if (this.columnSize === 'large') {
126
+ divisionFactor = 4;
127
+ }
128
+ return divisionFactor;
129
+ }
119
130
  render() {
131
+ // Get the paginated rows and calculate the last page.
120
132
  const paginatedRows = this.getPaginatedRows();
121
133
  const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
122
- // Calculate column width based on minWidth and number of columns
123
- //const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
124
- // Use the visible column count to calculate the column width
134
+ // Determine the number of visible columns (i.e., those not hidden via config)
125
135
  const visibleColumnsCount = this.getVisibleColumnsCount();
126
- const columnWidth = visibleColumnsCount > 0 ? Math.max(this.minWidth / visibleColumnsCount, 100) : 100;
127
- return (h("div", { key: 'c5e50673eb1ed5cf00e0294885bf9cd6d13f9366', class: "container", style: { minWidth: `${this.minWidth}px` } }, h("div", { key: '0e0814a8cb5ae1e11538a26cba630e59d39dde74' }, this.searchEnabled && (h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
136
+ /// Calculate container width based on the optional prop or parent's measured width.
137
+ const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
138
+ ? Number(this.hostWidth)
139
+ : this.hostEl.parentElement instanceof HTMLElement
140
+ ? this.hostEl.parentElement.getBoundingClientRect().width
141
+ : this.hostEl.getRootNode().host instanceof HTMLElement
142
+ ? this.hostEl.getRootNode().host.getBoundingClientRect().width
143
+ : 400;
144
+ //console.log('containerWidth:', containerWidth);
145
+ const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
146
+ console.log('columnWidth:', columnWidth);
147
+ return (h("div", { key: '178a33c07e6eae9d5edc170f842b6ef29ae21d9c' }, this.searchEnabled && (h("div", { key: 'f1212a4e515a1db218df28b71367c6ffa42e3063' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
128
148
  // @ts-ignore
129
- onInput: (event) => this.handleSearch(event) }))), h("div", { key: '65e0c9057c313f220655ecd7692a83c932f441b3', class: "mt-20" }, h("table", { key: '9e77153c2e0983f7598a21ef55ebcf3107655e09', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '38e5ac67ffae80d896c29357615d19b5dfcc52d3' }, h("tr", { key: '526c5b30da0a2aa97bb90f5b473b3e9ea41dde6b', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
149
+ onInput: (event) => this.handleSearch(event) }))), h("div", { key: 'da6ac91e4b4d56780b044a3d35088e7722efe143', class: "mt-20" }, h("table", { key: '3c5734d2370b31d2445ed4f043a80bf87c6d4bde', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '3803a39b4c987ff39bf22e2567bd1bc3d513e1f4' }, h("tr", { key: 'a67fa7bdd48549c69cfa9721083a908ab036a559', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
130
150
  var _a;
131
- return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 px-20 py-8 border border-softer f-ui-02", style: { minWidth: `${columnWidth}px` } }, column));
132
- }))), h("tbody", { key: '5a10525ed86eac82291746be4c6cce5f65942d2d' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
151
+ return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
152
+ }))), h("tbody", { key: '8e3f21bf2ee5b1bd84cfa93411ca2671f43ced45' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
133
153
  var _a;
134
- return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 px-20 py-8 f-ui-2", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
135
- }))))))), h("div", { key: 'af1183fd3e635c7d7ac982231adfdd9d892f6979', class: "mt-20" }, this.shouldEnablePagination() && (h("eds-pagination", { key: 'a5de7f25054c2d67f0788bfd2bc37d07f46de02c', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
154
+ return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
155
+ }))))))), this.shouldEnablePagination() && (h("div", { key: '24931f257ef9ced394c1b5b1e589cacedd8035e6', class: "mt-20" }, h("eds-pagination", { key: '996b26ae090ee4fe08cc821fb11362d94879ff72', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
136
156
  }
137
157
  static get is() { return "eds-table"; }
138
158
  static get encapsulation() { return "shadow"; }
@@ -255,6 +275,41 @@ export class EdsTable {
255
275
  "attribute": "search-enabled",
256
276
  "reflect": false,
257
277
  "defaultValue": "false"
278
+ },
279
+ "hostWidth": {
280
+ "type": "string",
281
+ "mutable": false,
282
+ "complexType": {
283
+ "original": "string",
284
+ "resolved": "string",
285
+ "references": {}
286
+ },
287
+ "required": false,
288
+ "optional": true,
289
+ "docs": {
290
+ "tags": [],
291
+ "text": ""
292
+ },
293
+ "attribute": "host-width",
294
+ "reflect": false
295
+ },
296
+ "columnSize": {
297
+ "type": "string",
298
+ "mutable": false,
299
+ "complexType": {
300
+ "original": "'default' | 'medium' | 'large'",
301
+ "resolved": "\"default\" | \"large\" | \"medium\"",
302
+ "references": {}
303
+ },
304
+ "required": false,
305
+ "optional": true,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": "Optional property to control the column sizing mode.\n- 'default' uses containerWidth / visibleColumns.\n- 'medium' divides that result by 2.\n- 'large' divides that result by 4."
309
+ },
310
+ "attribute": "column-size",
311
+ "reflect": false,
312
+ "defaultValue": "'default'"
258
313
  }
259
314
  };
260
315
  }
@@ -276,6 +331,9 @@ export class EdsTable {
276
331
  }, {
277
332
  "propName": "config",
278
333
  "methodName": "handleConfigChange"
334
+ }, {
335
+ "propName": "data",
336
+ "methodName": "parseData"
279
337
  }];
280
338
  }
281
339
  }