@ebrains/components 0.2.0-alpha.0 → 0.4.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 (347) hide show
  1. package/dist/cjs/{color-3ffe3072.js → color-88793e49.js} +2 -2
  2. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  3. package/dist/cjs/components.cjs.js +1 -1
  4. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  5. package/dist/cjs/{eds-alert_28.cjs.entry.js → eds-accordion_33.cjs.entry.js} +773 -162
  6. package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
  7. package/dist/cjs/eds-card-section.cjs.entry.js +18 -7
  8. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
  10. package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-code-block.cjs.entry.js +48 -1
  12. package/dist/cjs/eds-components-section.cjs.entry.js +44 -24
  13. package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
  14. package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-login.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
  17. package/dist/cjs/eds-matomo-notice.cjs.entry.js +1 -1
  18. package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +184 -9
  19. package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
  20. package/dist/cjs/eds-rating.cjs.entry.js +5 -7
  21. package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
  22. package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
  23. package/dist/cjs/eds-tabs.cjs.entry.js +27 -6
  24. package/dist/cjs/eds-timeline.cjs.entry.js +77 -0
  25. package/dist/cjs/eds-tooltip.cjs.entry.js +11 -1
  26. package/dist/cjs/eds-trl.cjs.entry.js +51 -0
  27. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  28. package/dist/cjs/index-f08e4f5c.js +20 -44
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  31. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  32. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  33. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  34. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  35. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  36. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  37. package/dist/collection/collection-manifest.json +2 -1
  38. package/dist/collection/components/eds-accordion/eds-accordion.js +11 -20
  39. package/dist/collection/components/eds-alert/eds-alert.js +5 -7
  40. package/dist/collection/components/eds-alert/eds-alert.stories.js +4 -4
  41. package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
  42. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +24 -22
  43. package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
  44. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +14 -12
  45. package/dist/collection/components/eds-button/eds-button.js +3 -3
  46. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +9 -1
  47. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
  48. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
  49. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
  50. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +14 -8
  51. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +1 -1
  52. package/dist/collection/components/eds-code-block/eds-code-block.js +57 -2
  53. package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
  54. package/dist/collection/components/eds-dropdown/eds-dropdown.js +11 -21
  55. package/dist/collection/components/eds-form/eds-form.js +41 -31
  56. package/dist/collection/components/eds-form/eds-form.stories.js +0 -3
  57. package/dist/collection/components/eds-frame/eds-frame.stories.js +19 -18
  58. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +142 -14
  59. package/dist/collection/components/eds-link/eds-link.js +3 -4
  60. package/dist/collection/components/eds-modal/eds-modal.css +16 -0
  61. package/dist/collection/components/eds-modal/eds-modal.js +71 -29
  62. package/dist/collection/components/eds-modal/eds-modal.stories.js +34 -18
  63. package/dist/collection/components/eds-pagination/eds-pagination.js +13 -9
  64. package/dist/collection/components/eds-rating/eds-rating.js +8 -10
  65. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +12 -11
  66. package/dist/collection/components/eds-table/eds-table.css +4 -0
  67. package/dist/collection/components/eds-table/eds-table.js +83 -12
  68. package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
  69. package/dist/collection/components/eds-timeline/eds-timeline.js +27 -16
  70. package/dist/collection/components/eds-toast/eds-toast.js +21 -0
  71. package/dist/collection/components/eds-tooltip/eds-tooltip.js +10 -1
  72. package/dist/collection/components/eds-trl/eds-trl.js +29 -22
  73. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  74. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  75. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  76. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  77. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  78. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  79. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  80. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
  81. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  82. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  83. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  84. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  85. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  86. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  87. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
  88. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  89. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  90. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
  91. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
  92. package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
  93. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  94. package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
  95. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  96. package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
  97. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  98. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
  99. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
  100. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
  101. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
  102. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  103. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +22 -10
  104. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +13 -11
  105. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  106. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
  107. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  108. package/dist/collection/shared-ui/eds-header/eds-header.js +9 -5
  109. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
  110. package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
  111. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
  112. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  113. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
  114. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
  115. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  116. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
  117. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  118. package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
  119. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
  120. package/dist/components/analytics.js +2 -2
  121. package/dist/components/components.css +29 -10
  122. package/dist/components/components.esm.js +1 -1
  123. package/dist/components/correct-use-of-colors.js +1 -1
  124. package/dist/components/eds-accordion2.js +12 -20
  125. package/dist/components/eds-alert2.js +5 -7
  126. package/dist/components/eds-avatar2.js +1 -1
  127. package/dist/components/eds-block-break2.js +1 -1
  128. package/dist/components/eds-breadcrumb.js +14 -12
  129. package/dist/components/eds-button2.js +1 -1
  130. package/dist/components/eds-card-desc2.js +1 -1
  131. package/dist/components/eds-card-generic2.js +3 -3
  132. package/dist/components/eds-card-section.js +18 -7
  133. package/dist/components/eds-card-tags.js +1 -1
  134. package/dist/components/eds-card-title2.js +1 -1
  135. package/dist/components/eds-card-wrapper.js +1 -1
  136. package/dist/components/eds-code-block2.js +48 -1
  137. package/dist/components/eds-components-section.js +44 -24
  138. package/dist/components/eds-docs-palettes.js +1 -1
  139. package/dist/components/eds-docs-tokens.js +1 -1
  140. package/dist/components/eds-dropdown2.js +12 -21
  141. package/dist/components/eds-footer2.js +1 -1
  142. package/dist/components/eds-form.js +37 -12
  143. package/dist/components/eds-header.js +6 -2
  144. package/dist/components/eds-input-select2.js +70 -2
  145. package/dist/components/eds-link2.js +3 -4
  146. package/dist/components/eds-login.js +3 -2
  147. package/dist/components/eds-logo-variations.d.ts +11 -0
  148. package/dist/components/eds-logo-variations.js +60 -0
  149. package/dist/components/eds-modal.js +56 -30
  150. package/dist/components/eds-pagination2.js +13 -9
  151. package/dist/components/eds-rating.js +6 -8
  152. package/dist/components/eds-social-networks.js +2 -2
  153. package/dist/components/eds-social-networks2.js +6 -6
  154. package/dist/components/eds-svg-repository.js +7 -1
  155. package/dist/components/eds-table2.js +50 -14
  156. package/dist/components/eds-tabs-content.js +2 -2
  157. package/dist/components/eds-tabs.js +26 -5
  158. package/dist/components/eds-timeline.js +24 -10
  159. package/dist/components/eds-toast-manager.js +1 -1
  160. package/dist/components/eds-toast2.js +21 -0
  161. package/dist/components/eds-tooltip.js +11 -1
  162. package/dist/components/eds-trl.js +94 -15
  163. package/dist/components/eds-user-modal2.js +1 -5
  164. package/dist/components/eds-user2.js +12 -6
  165. package/dist/components/incorrect-use-of-colors.js +20 -2
  166. package/dist/components/logo-space.js +1 -1
  167. package/dist/components/logo-variations-horizontal.js +2 -50
  168. package/dist/components/logo-variations-horizontal2.js +37 -0
  169. package/dist/components/logo-variations-vertical.js +2 -50
  170. package/dist/components/logo-variations-vertical2.js +42 -0
  171. package/dist/components/logo-wrong-usage.js +2 -2
  172. package/dist/components/p-005de86f.entry.js +1 -0
  173. package/dist/components/{p-5eb32f03.entry.js → p-0910d733.entry.js} +1 -1
  174. package/dist/components/{p-c9c3cc49.entry.js → p-22e6d7d5.entry.js} +1 -1
  175. package/dist/components/p-2851ff44.entry.js +1 -0
  176. package/dist/components/p-29648b47.entry.js +1 -0
  177. package/dist/components/p-2dda1ec4.entry.js +1 -0
  178. package/dist/components/{p-d9788b54.entry.js → p-35ec730b.entry.js} +1 -1
  179. package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
  180. package/dist/components/{p-e6bfbf51.entry.js → p-5398d652.entry.js} +2 -2
  181. package/dist/components/p-57c964c5.entry.js +1 -0
  182. package/dist/components/p-5a43503a.entry.js +1 -0
  183. package/dist/components/{p-e20ed2c7.entry.js → p-610db2b2.entry.js} +1 -1
  184. package/dist/components/p-6378fb3e.entry.js +1 -0
  185. package/dist/components/p-762c8c83.entry.js +1 -0
  186. package/dist/components/p-7802e966.entry.js +1 -0
  187. package/dist/components/p-832dc95a.entry.js +1 -0
  188. package/dist/components/p-855aa1a3.entry.js +1 -0
  189. package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
  190. package/dist/components/p-8ddc67a1.entry.js +1 -0
  191. package/dist/components/p-ab32b3fc.entry.js +1 -0
  192. package/dist/components/p-ac0112d5.entry.js +1 -0
  193. package/dist/components/p-acb16e1c.entry.js +1 -0
  194. package/dist/components/p-ae5dbd41.entry.js +1 -0
  195. package/dist/components/p-b04eff31.entry.js +1 -0
  196. package/dist/components/p-b86a4985.js +1 -0
  197. package/dist/components/{p-9722811d.entry.js → p-ba6bafef.entry.js} +1 -1
  198. package/dist/components/{p-6fc62452.entry.js → p-c3b294a0.entry.js} +1 -1
  199. package/dist/components/p-c6038449.entry.js +1 -0
  200. package/dist/components/p-c72c8fb0.entry.js +1 -0
  201. package/dist/components/p-d53b7a75.entry.js +1 -0
  202. package/dist/components/{p-b717f95a.entry.js → p-d571d530.entry.js} +1 -1
  203. package/dist/components/p-dd6daa96.entry.js +1 -0
  204. package/dist/components/{p-73bd0c97.entry.js → p-df94285c.entry.js} +1 -1
  205. package/dist/components/primary.js +1 -1
  206. package/dist/components/primary2.js +1 -1
  207. package/dist/components/secondary.js +1 -1
  208. package/dist/components/secondary2.js +7 -7
  209. package/dist/components/support.js +1 -1
  210. package/dist/components/support2.js +3 -3
  211. package/dist/components/token-list2.js +1 -1
  212. package/dist/components/token-radii2.js +1 -1
  213. package/dist/components/token-ratios.js +1 -1
  214. package/dist/components/token-shadows2.js +1 -1
  215. package/dist/components/token-spacing.js +1 -1
  216. package/dist/components/token-typography.js +1 -1
  217. package/dist/esm/{color-0ba8ed56.js → color-bb472c37.js} +2 -2
  218. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  219. package/dist/esm/components.js +1 -1
  220. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  221. package/dist/esm/{eds-alert_28.entry.js → eds-accordion_33.entry.js} +767 -161
  222. package/dist/esm/eds-card-project.entry.js +1 -1
  223. package/dist/esm/eds-card-section.entry.js +18 -7
  224. package/dist/esm/eds-card-tags.entry.js +1 -1
  225. package/dist/esm/eds-card-tool.entry.js +1 -1
  226. package/dist/esm/eds-card-wrapper.entry.js +1 -1
  227. package/dist/esm/eds-code-block.entry.js +49 -2
  228. package/dist/esm/eds-components-section.entry.js +44 -24
  229. package/dist/esm/eds-docs-palettes.entry.js +1 -1
  230. package/dist/esm/eds-docs-tokens.entry.js +1 -1
  231. package/dist/esm/eds-login.entry.js +1 -1
  232. package/dist/esm/eds-logo-variations.entry.js +23 -0
  233. package/dist/esm/eds-matomo-notice.entry.js +1 -1
  234. package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +184 -10
  235. package/dist/esm/eds-progress-bar.entry.js +25 -0
  236. package/dist/esm/eds-rating.entry.js +5 -7
  237. package/dist/esm/eds-svg-repository.entry.js +8 -2
  238. package/dist/esm/eds-tabs-content.entry.js +3 -3
  239. package/dist/esm/eds-tabs.entry.js +27 -6
  240. package/dist/esm/eds-timeline.entry.js +73 -0
  241. package/dist/esm/eds-tooltip.entry.js +11 -1
  242. package/dist/esm/eds-trl.entry.js +47 -0
  243. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  244. package/dist/esm/index-e96badea.js +20 -44
  245. package/dist/esm/loader.js +1 -1
  246. package/dist/esm/logo-space.entry.js +1 -1
  247. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  248. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  249. package/dist/esm/token-list_3.entry.js +3 -3
  250. package/dist/esm/token-ratios.entry.js +1 -1
  251. package/dist/esm/token-spacing.entry.js +1 -1
  252. package/dist/esm/token-typography.entry.js +1 -1
  253. package/dist/hydrate/index.js +1116 -783
  254. package/dist/hydrate/index.mjs +1116 -783
  255. package/dist/types/components/eds-accordion/eds-accordion.d.ts +5 -12
  256. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -18
  257. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
  258. package/dist/types/components/eds-button/eds-button.d.ts +2 -2
  259. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +8 -0
  260. package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +6 -2
  261. package/dist/types/components/eds-code-block/eds-code-block.d.ts +43 -3
  262. package/dist/types/components/eds-code-block/eds-code-block.stories.d.ts +54 -0
  263. package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +0 -7
  264. package/dist/types/components/eds-form/eds-form.d.ts +3 -6
  265. package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -5
  266. package/dist/types/components/eds-frame/eds-frame.stories.d.ts +0 -2
  267. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +108 -2
  268. package/dist/types/components/eds-link/eds-link.d.ts +1 -1
  269. package/dist/types/components/eds-modal/eds-modal.d.ts +18 -3
  270. package/dist/types/components/eds-modal/eds-modal.stories.d.ts +9 -0
  271. package/dist/types/components/eds-rating/eds-rating.d.ts +4 -6
  272. package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +0 -1
  273. package/dist/types/components/eds-table/eds-table.d.ts +9 -1
  274. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
  275. package/dist/types/components/eds-timeline/eds-timeline.d.ts +9 -12
  276. package/dist/types/components/eds-toast/eds-toast.d.ts +9 -0
  277. package/dist/types/components/eds-trl/eds-trl.d.ts +4 -1
  278. package/dist/types/components.d.ts +217 -56
  279. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
  280. package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
  281. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
  282. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
  283. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
  284. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +1 -1
  285. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +42 -2
  286. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
  287. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
  288. package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
  289. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
  290. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  291. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
  292. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
  293. package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
  294. package/package.json +3 -3
  295. package/dist/cjs/eds-accordion.cjs.entry.js +0 -93
  296. package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
  297. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -153
  298. package/dist/cjs/eds-footer.cjs.entry.js +0 -50
  299. package/dist/cjs/eds-frame.cjs.entry.js +0 -91
  300. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
  301. package/dist/cjs/eds-modal.cjs.entry.js +0 -86
  302. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
  303. package/dist/cjs/eds-table.cjs.entry.js +0 -143
  304. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -31
  305. package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -31
  306. package/dist/collection/components/eds-trl/eds-trl.css +0 -0
  307. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  308. package/dist/components/p-02e2a62f.entry.js +0 -1
  309. package/dist/components/p-04e47e04.entry.js +0 -1
  310. package/dist/components/p-0a3b2576.entry.js +0 -1
  311. package/dist/components/p-0c99ef81.entry.js +0 -1
  312. package/dist/components/p-272d249f.entry.js +0 -1
  313. package/dist/components/p-2d8508cd.entry.js +0 -1
  314. package/dist/components/p-32f282a9.entry.js +0 -1
  315. package/dist/components/p-373673ca.js +0 -1
  316. package/dist/components/p-3a2e8ef3.entry.js +0 -1
  317. package/dist/components/p-3afafa59.entry.js +0 -1
  318. package/dist/components/p-3b40559e.entry.js +0 -1
  319. package/dist/components/p-42b4ecff.entry.js +0 -1
  320. package/dist/components/p-49958f77.entry.js +0 -1
  321. package/dist/components/p-54c75346.entry.js +0 -1
  322. package/dist/components/p-551c0b58.entry.js +0 -1
  323. package/dist/components/p-559b6ec9.entry.js +0 -1
  324. package/dist/components/p-5ae9722b.entry.js +0 -1
  325. package/dist/components/p-79887c2c.entry.js +0 -1
  326. package/dist/components/p-9000b245.entry.js +0 -1
  327. package/dist/components/p-96c4deda.entry.js +0 -1
  328. package/dist/components/p-b14ef448.entry.js +0 -1
  329. package/dist/components/p-b203eb1b.entry.js +0 -1
  330. package/dist/components/p-b33941a0.entry.js +0 -1
  331. package/dist/components/p-bca40434.entry.js +0 -1
  332. package/dist/components/p-df93db96.entry.js +0 -1
  333. package/dist/components/p-ebed87b8.entry.js +0 -1
  334. package/dist/components/p-ff5de62c.entry.js +0 -1
  335. package/dist/components/p-ffec8755.entry.js +0 -1
  336. package/dist/esm/eds-accordion.entry.js +0 -89
  337. package/dist/esm/eds-block-break.entry.js +0 -17
  338. package/dist/esm/eds-breadcrumb.entry.js +0 -149
  339. package/dist/esm/eds-footer.entry.js +0 -46
  340. package/dist/esm/eds-frame.entry.js +0 -87
  341. package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
  342. package/dist/esm/eds-modal.entry.js +0 -82
  343. package/dist/esm/eds-social-networks.entry.js +0 -62
  344. package/dist/esm/eds-table.entry.js +0 -139
  345. package/dist/esm/logo-variations-horizontal.entry.js +0 -27
  346. package/dist/esm/logo-variations-vertical.entry.js +0 -27
  347. /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
- import { s as sendAnalytics, g as gradientBGColorVariants } from './color-0ba8ed56.js';
2
+ import { s as sendAnalytics, g as gradientBGColorVariants } from './color-bb472c37.js';
3
3
  import './index-39c58238.js';
4
4
 
5
5
  const EdsCardProject = class {
@@ -6,7 +6,7 @@ const EdsCardSectionStyle0 = edsCardSectionCss;
6
6
  const EdsCardSection = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- this.cards = undefined;
9
+ this.cards = [];
10
10
  this.cols = 4;
11
11
  }
12
12
  /**
@@ -16,13 +16,24 @@ const EdsCardSection = class {
16
16
  * @returns {any[]} An array of parsed card objects.
17
17
  */
18
18
  get parsedCards() {
19
- try {
20
- return JSON.parse(this.cards);
19
+ // If it's already an array, return it immediately.
20
+ if (Array.isArray(this.cards)) {
21
+ return this.cards;
21
22
  }
22
- catch (e) {
23
- //console.error('Error parsing links JSON', e);
24
- return [];
23
+ if (typeof this.cards === 'object') {
24
+ return this.cards;
25
25
  }
26
+ else if (typeof this.cards === 'string') {
27
+ try {
28
+ return JSON.parse(this.cards);
29
+ }
30
+ catch (e) {
31
+ // eslint-disable-next-line
32
+ console.error('Error parsing cards prop:', e);
33
+ return [];
34
+ }
35
+ }
36
+ return [];
26
37
  }
27
38
  /**
28
39
  * Renders the card section as a grid layout.
@@ -32,7 +43,7 @@ const EdsCardSection = class {
32
43
  * @returns {JSX.Element} The rendered section containing a list of cards.
33
44
  */
34
45
  render() {
35
- return (h("section", { key: 'f8e6a03e37677623fad3c53327f6260920a5e914', class: "w-full" }, h("ul", { key: '1da1bc3a5aecadd52b4d025d7d02dc252e47b34a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
46
+ return (h("section", { key: 'da139da167230819e494a6426c2431f209a2e557', class: "w-full" }, h("ul", { key: '3e8affe5c9aee91c4487480c72c437339265101a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
36
47
  }
37
48
  };
38
49
  EdsCardSection.style = EdsCardSectionStyle0;
@@ -10,7 +10,7 @@ const EdsCardTags = class {
10
10
  this.tags = [];
11
11
  }
12
12
  render() {
13
- return (h("div", { key: 'b201dc6df5e809d828a055fb5f01fe798e228361', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (h("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
13
+ return (h("div", { key: '60a129de62d45736eba0884cc24c9738f3a0f55c', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (h("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
14
14
  }
15
15
  };
16
16
  EdsCardTags.style = EdsCardTagsStyle0;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
- import { s as sendAnalytics } from './color-0ba8ed56.js';
2
+ import { s as sendAnalytics } from './color-bb472c37.js';
3
3
  import './index-39c58238.js';
4
4
 
5
5
  const edsCardToolCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
@@ -20,7 +20,7 @@ const EdsCardWrapper = class {
20
20
  this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
21
21
  'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
22
22
  ].join(' ');
23
- return (h("article", { key: 'c52f6ad7873050c052b8c0e68b2c812d74f2ddf1', class: articleClasses }, h("slot", { key: 'dac6f9fe339c8baa191ee2fd622332ddf25ec08d' }), this.hasSlot('footer') && (h("div", { key: '301862515ba88f320d1af722bec6120bc3e7d723', class: "mt-auto" }, h("slot", { key: '85d939150663a4586934413c9965aa92a9babeef', name: "footer" })))));
23
+ return (h("article", { key: '7c12b1d147f061e189b5dda5d517ec4eae0c3691', class: articleClasses }, h("slot", { key: 'f506bad73ed38ae36931f88f7d7c5f5d94705e4f' }), this.hasSlot('footer') && (h("div", { key: '783f480be269e4a2f61aa8d4396e757fe41bfcc6', class: "mt-auto" }, h("slot", { key: 'f07ddaa2d930518a5c8ac82efab3cb0dd6647bdd', name: "footer" })))));
24
24
  }
25
25
  get el() { return getElement(this); }
26
26
  };
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-e96badea.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
2
 
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
 
@@ -2415,12 +2415,58 @@ const EdsCodeBlock = class {
2415
2415
  this.language = undefined;
2416
2416
  this.copied = false;
2417
2417
  }
2418
+ /**
2419
+ * Copies the current code content to the clipboard and sets a temporary copied state.
2420
+ *
2421
+ * @private
2422
+ * @returns {void}
2423
+ */
2418
2424
  copyToClipboard() {
2419
2425
  navigator.clipboard.writeText(this.code).then(() => {
2420
2426
  this.copied = true;
2427
+ /*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
2428
+ sendAnalytics({
2429
+ category: 'ui-component',
2430
+ parentContext: null,
2431
+ tag: this.el.tagName.toLowerCase(),
2432
+ name: analyticsName || '',
2433
+ action: 'copy'
2434
+ });*/
2421
2435
  setTimeout(() => (this.copied = false), 2000);
2422
2436
  });
2423
2437
  }
2438
+ /**
2439
+ * Utility function that creates a human-friendly analytics name based on the code and language.
2440
+ * It uses:
2441
+ * - The language (in uppercase)
2442
+ * - The number of non-empty lines in the code
2443
+ * - The first non-empty line of code (truncated to 30 characters, if needed)
2444
+ *
2445
+ * returns A descriptive analytics name.
2446
+ */
2447
+ /*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
2448
+ // Count non-empty lines
2449
+ const lines = code.split('\n').filter(line => line.trim() !== '').length;
2450
+
2451
+ // Find the first non-empty line and trim it
2452
+ let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
2453
+ firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
2454
+
2455
+ // Truncate the snippet if it’s too long
2456
+ if (firstNonEmptyLine.length > 30) {
2457
+ firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
2458
+ }
2459
+
2460
+ return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
2461
+ }*/
2462
+ /**
2463
+ * Returns the syntax-highlighted HTML for the code.
2464
+ * If the provided language is supported by Prism, this method returns the highlighted code.
2465
+ * Otherwise, it logs a warning and returns the raw code.
2466
+ *
2467
+ * @private
2468
+ * @returns {string} The highlighted HTML string for the code block.
2469
+ */
2424
2470
  getHighlightedCode() {
2425
2471
  if (this.language && Prism$1.languages[this.language]) {
2426
2472
  return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
@@ -2430,8 +2476,9 @@ const EdsCodeBlock = class {
2430
2476
  return this.code; // Fallback if language is not provided or unsupported
2431
2477
  }
2432
2478
  render() {
2433
- return (h("div", { key: 'a99c0c8b9546b80bb3f9e21cd53c29540e8b6e06', class: "relative bg-stronger rounded-sm" }, h("div", { key: '5856f9d30bb52f791e0d8bb03a6438bc01247f66', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, h("code", { innerHTML: this.getHighlightedCode() }))), h("span", { key: 'dfb0f69dbbd1032ace5afb7fe98d899816f36610', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, h("eds-icon-wrapper", { key: 'b399384638265f9fcc9a824c47fe73c75bcade33', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), h("span", { key: '47c2d00b2cf86b99522dbc438726e0fc57fb6a44', class: "sr-only" }, "Copy Code")), this.language && (h("pre", { key: '038321e9d3d2a38963857ab8b719653f3e8385e3', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, h("code", { key: '72be161dd9781d9bc2f4d9495969175f34c19249', innerHTML: this.getHighlightedCode() })))));
2479
+ return (h("div", { key: '00eba9265ee17605f699d1e5606013b68e900b29', class: "relative bg-stronger rounded-sm" }, h("div", { key: '1192584f04de5ff74e91c88597a3360b92053456', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, h("code", { innerHTML: this.getHighlightedCode() }))), h("span", { key: '3666b6529a16a8cc64f448527db4ddee08f977a3', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, h("eds-icon-wrapper", { key: 'f222d95a2e548429f6c4de96a7646e3cef1f360f', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), h("span", { key: '8c539deda773909c01a41eb04ee51380c0a9c4bb', class: "sr-only" }, "Copy Code")), this.language && (h("pre", { key: '99541dedb32c543da5e780ffee4460333fbb3724', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, h("code", { key: '4e6ae6fcfae3de8c1fe5ad9d22309e0c8bee0c2c', innerHTML: this.getHighlightedCode() })))));
2434
2480
  }
2481
+ get el() { return getElement(this); }
2435
2482
  };
2436
2483
  EdsCodeBlock.style = EdsCodeBlockStyle0;
2437
2484
 
@@ -1,54 +1,76 @@
1
1
  import { h, r as registerInstance } from './index-e96badea.js';
2
2
 
3
3
  const EdsComponentsOverview = () => (h("div", { class: "static-content container" },
4
- h("eds-alert", { message: "EBRAINS Design System makes it easy to implement and use its components across any framework or no framework at all. We\n accomplish this by using standardized web platform APIs and Web Components.", intent: "default" }),
5
4
  h("h2", null, "Load the module"),
6
5
  h("p", null,
7
6
  "Integrating EDSs components to a project without a JavaScript framework is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
8
7
  ' ',
9
8
  h("code", null, "head"),
10
9
  "."),
11
- h("eds-code-block", { code: '<script type="module" href="https://unpkg.com/@ebrains/components@0.0.1/loader"/></script>', language: "javascript", "copy-label": "Copy Code" }),
10
+ h("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
12
11
  h("h2", null, "Load the styles"),
13
12
  h("p", null,
14
13
  "To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
15
14
  ' ',
16
15
  h("code", null, "head")),
17
- h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
16
+ h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
17
+ h("div", { class: "my-4" },
18
+ h("eds-alert", { message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.", intent: "warning" })),
18
19
  h("h2", null, "Load the fonts"),
19
20
  h("p", null,
20
- "To load the correct webfonts as well, add either one of these tags to the ",
21
+ "To load the webfonts, add the tag below to the ",
21
22
  h("code", null, "head")),
22
23
  h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" }),
23
24
  h("h2", null, "Component Usage"),
24
25
  h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
25
- h("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" })));
26
+ h("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" })));
26
27
 
27
28
  const EdsDocsInstallation = () => (h("div", null,
28
- h("p", null, "To start using the EBRAINS Design System, include the following scripts and styles in your project. You can also install it via npm for use with modern build tools."),
29
- h("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" }),
30
- h("p", null, "TBD")));
31
-
32
- const EdsDocsUsage = () => (h("div", null,
33
- h("h1", null, "Usage with basic HTML "),
34
- h("p", null, "TBD")));
29
+ h("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
30
+ h("div", { class: "my-8" },
31
+ h("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })),
32
+ h("div", { class: "my-8" },
33
+ h("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
34
+ h("div", { class: "my-8" },
35
+ h("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
35
36
 
36
37
  const EdsDocsReact = () => (h("div", null,
37
38
  h("h2", null, "React Wrappers"),
38
- h("p", null, "Learn how to use our components in a React Application."),
39
- "Simple install the package below and check out the examples",
40
- h("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }),
39
+ h("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
40
+ h("div", { class: "my-8" },
41
+ h("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
41
42
  h("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
42
- h("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n // Add any other properties your user object might have\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
43
+ h("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
43
44
 
44
45
  const EdsDocsVue = () => (h("div", null,
45
46
  h("h2", null, "Vue Wrappers"),
46
47
  h("p", null, "Learn how to use our components in a Vue Application."),
48
+ h("p", null, "Simply install the latest version of our NPM package."),
47
49
  h("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
48
- h("p", null, "Define the custom elements"),
50
+ h("p", null, "Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your \"main.ts\" file."),
49
51
  h("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }),
52
+ h("h2", null,
53
+ "Passing Properties to Custom Elements Using the ",
54
+ h("b", null, ".prop"),
55
+ " Modifier in Vue Wrappers"),
56
+ h("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML\u2019s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),
57
+ h("h3", null,
58
+ "How to Use the ",
59
+ h("b", null, ".prop"),
60
+ " Modifier"),
61
+ h("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here\u2019s an example of how to do it:"),
62
+ h("div", { class: "mt-8" },
63
+ h("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })),
64
+ h("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel="Press Me"\n :pressableUrl="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
65
+ h("div", { class: "mt-8" },
66
+ h("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })),
67
+ h("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel.prop="Press Me"\n :pressableUrl.prop="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
68
+ h("p", null,
69
+ "Using the ",
70
+ h("b", null, ".prop"),
71
+ " modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
50
72
  h("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
51
- h("eds-code-block", { code: '\n<template>\n <h1 className="f-heading-02">Vue App</h1>\n\n <EdsHeader \n home-url="/" \n user-feature=false \n keycloak-url="http://localhost:8080" \n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app" \n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]">\n </EdsHeader>\n\n</template>\n\n<script>\n\nimport { EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: {\n EdsHeader,\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
73
+ h("eds-code-block", { code: '\n<template>\n <EdsHeader \n :inverseHeader.prop="true"\n :menuEnabled.prop="true">\n </EdsHeader>\n</template>\n\n<script>\n\nimport { EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: {\n EdsHeader,\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
52
74
 
53
75
  const EdsDocsAngular = () => (h("div", null,
54
76
  h("h2", null, "Angular Wrappers"),
@@ -59,7 +81,7 @@ const EdsDocsAngular = () => (h("div", null,
59
81
  h("p", null, "Angular Custom Elements Schema"),
60
82
  h("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
61
83
  h("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" },
62
- h("eds-code-block", { code: '\n<div class="container">\n <h1 class="f-heading-01">{{ title }}</h1>\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>', language: "javascript", "copy-label": "Copy Code" }))));
84
+ h("eds-code-block", { code: '\n<div class="container">\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>', language: "javascript", "copy-label": "Copy Code" }))));
63
85
 
64
86
  const EdsComponentsSection = class {
65
87
  constructor(hostRef) {
@@ -73,19 +95,17 @@ const EdsComponentsSection = class {
73
95
  case 1:
74
96
  return h(EdsDocsInstallation, null);
75
97
  case 2:
76
- return h(EdsDocsUsage, null);
77
- case 3:
78
98
  return h(EdsDocsReact, null);
79
- case 4:
99
+ case 3:
80
100
  return h(EdsDocsVue, null);
81
- case 5:
101
+ case 4:
82
102
  return h(EdsDocsAngular, null);
83
103
  default:
84
104
  return h("p", null, "Content not available.");
85
105
  }
86
106
  }
87
107
  render() {
88
- return h("div", { key: 'faa14dc7bb5d966ea1328f60d8ca88b3c406ad51', class: "container" }, this.renderContent());
108
+ return h("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
89
109
  }
90
110
  };
91
111
 
@@ -16,7 +16,7 @@ const EdsDocsPalettes = class {
16
16
  }
17
17
  }
18
18
  render() {
19
- return h("div", { key: 'c11e0de66c41770e7ebca46d3fb7ab11b454511e', class: "container" }, this.renderContent());
19
+ return h("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
20
20
  }
21
21
  };
22
22
 
@@ -24,7 +24,7 @@ const EdsDocsContent = class {
24
24
  }
25
25
  }
26
26
  render() {
27
- return h("div", { key: 'ef9cf093af7bc730b73f3561b36187f70aea29a7', class: "container" }, this.renderContent());
27
+ return h("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
28
28
  }
29
29
  };
30
30
 
@@ -61,7 +61,7 @@ const EdsLogin = class {
61
61
  return this.authenticated ? 'Logout' : 'Login';
62
62
  }
63
63
  render() {
64
- return (h("div", { key: '3e9fdf8fa303948f00da83a1c8c1efc35e2c3c1a' }, h("eds-button", { key: '452b1c6ba9dda0ae5570accedf5e61b8391aeadb', label: this.getBtnLabel(), intent: "primary", loading: false, disabled: false, pill: false, icon: "arrow-diagonal", size: "small", "icon-pos": "right", "aria-label": this.getBtnLabel(), "element-type": "button", triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) })));
64
+ return (h("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
65
65
  }
66
66
  };
67
67
 
@@ -0,0 +1,23 @@
1
+ import { r as registerInstance, h } from './index-e96badea.js';
2
+
3
+ const EdsLogoVariations = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ this.tabIndex = undefined;
7
+ }
8
+ renderContent() {
9
+ switch (this.tabIndex) {
10
+ case 0:
11
+ return h("logo-variations-horizontal", null);
12
+ case 1:
13
+ return h("logo-variations-vertical", null);
14
+ default:
15
+ return h("p", null, "Content not available.");
16
+ }
17
+ }
18
+ render() {
19
+ return h("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
20
+ }
21
+ };
22
+
23
+ export { EdsLogoVariations as eds_logo_variations };
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
2
  import { t as toast } from './toastManager-d9eee791.js';
3
- import { m as matomoOptIn } from './color-0ba8ed56.js';
3
+ import { m as matomoOptIn } from './color-bb472c37.js';
4
4
  import './index-39c58238.js';
5
5
 
6
6
  const edsMatomoNoticeCss = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}";
@@ -1,4 +1,6 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
+ import { s as sendAnalytics } from './color-bb472c37.js';
3
+ import './index-39c58238.js';
2
4
 
3
5
  const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
4
6
  const EdsPaginationStyle0 = edsPaginationCss;
@@ -27,14 +29,18 @@ const EdsPagination = class {
27
29
  componentDidLoad() {
28
30
  // Emit context for each eds-link element after the component is fully loaded
29
31
  const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
30
- if (links.length > 0) {
31
- // Emit context for the first link
32
- this.emitContext(links[0]);
33
- // Emit context for the last link, if it's different from the first
34
- if (links.length > 1) {
35
- this.emitContext(links[links.length - 1]);
36
- }
37
- }
32
+ links.forEach((lnk) => {
33
+ this.emitContext(lnk);
34
+ });
35
+ /*if (links.length > 0) {
36
+ // Emit context for the first link
37
+ this.emitContext(links[0]);
38
+
39
+ // Emit context for the last link, if it's different from the first
40
+ if (links.length > 1) {
41
+ this.emitContext(links[links.length - 1]);
42
+ }
43
+ }*/
38
44
  }
39
45
  /**
40
46
  * Emits a custom event called `parentContext` for a given link element.
@@ -164,7 +170,7 @@ const EdsPagination = class {
164
170
  }
165
171
  }
166
172
  render() {
167
- return (h("div", { key: '2385b59b0a8b2bbdc40bfc5032b846c0ec20065e' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '6aea281a4df247874f354469bbabae039424ad9e', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, h("span", { key: 'eeb5f0ea902505c3853a30d51026cef9d9785e48', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination" }, h("ul", { class: "flex items-center justify-center gap-x-8" }, h("li", { class: "mr-auto" }, h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
173
+ return (h("div", { key: '584e0918b070eac25a7c4bfceff59b000b60076c' }, this.total > 0 && this.mode === 'default' && (h("p", { key: 'c688bd8e1f1d15904fc274454093f03213f59e38', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, h("span", { key: 'c2472919bad41f76e26d518da27509e545ed9db6', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination" }, h("ul", { class: "flex items-center justify-center gap-x-8" }, h("li", { class: "mr-auto" }, h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
168
174
  ? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
169
175
  : this.isFirstPage()
170
176
  ? '#'
@@ -205,4 +211,172 @@ const EdsPagination = class {
205
211
  };
206
212
  EdsPagination.style = EdsPaginationStyle0;
207
213
 
208
- export { EdsPagination as eds_pagination };
214
+ const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
215
+ const EdsTableStyle0 = edsTableCss;
216
+
217
+ const EdsTable = class {
218
+ constructor(hostRef) {
219
+ registerInstance(this, hostRef);
220
+ this.data = null;
221
+ this.endpoint = null;
222
+ this.config = {};
223
+ this.rowsPerPage = 10;
224
+ this.paginationEnabled = true;
225
+ this.searchEnabled = false;
226
+ this.hostWidth = undefined;
227
+ this.columnSize = 'default';
228
+ this.tableData = [];
229
+ this.columns = [];
230
+ this.currentPage = 1;
231
+ this.parsedConfig = {};
232
+ this.totalRows = 0;
233
+ this.searchQuery = '';
234
+ }
235
+ handleDataChange() {
236
+ this.parseData();
237
+ }
238
+ handleConfigChange() {
239
+ this.parseConfig();
240
+ }
241
+ componentWillLoad() {
242
+ this.parseConfig();
243
+ this.data ? this.parseData() : this.endpoint && this.fetchData();
244
+ }
245
+ componentDidLoad() {
246
+ this.setupPaginationListener();
247
+ }
248
+ componentDidUpdate() {
249
+ this.setupPaginationListener();
250
+ }
251
+ parseData() {
252
+ try {
253
+ this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
254
+ this.totalRows = this.tableData.length;
255
+ this.updateColumns();
256
+ this.currentPage = 1;
257
+ }
258
+ catch (error) {
259
+ // eslint-disable-next-line
260
+ console.error('Failed to parse data:', error);
261
+ this.tableData = [];
262
+ }
263
+ }
264
+ parseConfig() {
265
+ try {
266
+ this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
267
+ }
268
+ catch (error) {
269
+ // eslint-disable-next-line
270
+ console.error('Failed to parse config:', error);
271
+ this.parsedConfig = {};
272
+ }
273
+ }
274
+ async fetchData() {
275
+ try {
276
+ const response = await fetch(this.endpoint);
277
+ const data = await response.json();
278
+ this.data = data;
279
+ }
280
+ catch (error) {
281
+ // eslint-disable-next-line
282
+ console.error('Failed to fetch data:', error);
283
+ }
284
+ }
285
+ setupPaginationListener() {
286
+ if (!this.shouldEnablePagination()) {
287
+ return;
288
+ }
289
+ const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
290
+ if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
291
+ paginationEl.addEventListener('pageChange', (event) => this.handlePageChange(event.detail));
292
+ paginationEl.setAttribute('listener-attached', 'true');
293
+ }
294
+ }
295
+ getFilteredRows() {
296
+ return this.tableData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
297
+ }
298
+ getPaginatedRows() {
299
+ const filteredRows = this.getFilteredRows();
300
+ this.totalRows = filteredRows.length;
301
+ const start = (this.currentPage - 1) * this.rowsPerPage;
302
+ return filteredRows.slice(start, start + this.rowsPerPage);
303
+ }
304
+ handlePageChange(newPage) {
305
+ this.currentPage = newPage;
306
+ sendAnalytics({
307
+ category: 'ui-component',
308
+ parentContext: null,
309
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
310
+ name: `${newPage}` || '',
311
+ action: 'page'
312
+ });
313
+ }
314
+ handleSearch(event) {
315
+ this.searchQuery = event.target.value;
316
+ this.currentPage = 1;
317
+ /*sendAnalytics({
318
+ category: 'ui-component',
319
+ parentContext: null,
320
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
321
+ name: `${this.searchQuery}` || '',
322
+ action: 'page'
323
+ });*/
324
+ }
325
+ renderCell(value, column) {
326
+ var _a;
327
+ const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
328
+ return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (h("div", { innerHTML: value })) : format === 'bold' ? (h("strong", null, value)) : format === 'code' ? (h("code", null, value)) : (value);
329
+ }
330
+ shouldEnablePagination() {
331
+ return this.paginationEnabled && this.totalRows > this.rowsPerPage;
332
+ }
333
+ updateColumns() {
334
+ this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
335
+ }
336
+ getVisibleColumnsCount() {
337
+ return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
338
+ }
339
+ divisionFactor() {
340
+ let divisionFactor = 1;
341
+ if (this.columnSize === 'medium') {
342
+ divisionFactor = 2;
343
+ }
344
+ else if (this.columnSize === 'large') {
345
+ divisionFactor = 4;
346
+ }
347
+ return divisionFactor;
348
+ }
349
+ render() {
350
+ // Get the paginated rows and calculate the last page.
351
+ const paginatedRows = this.getPaginatedRows();
352
+ const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
353
+ // Determine the number of visible columns (i.e., those not hidden via config)
354
+ const visibleColumnsCount = this.getVisibleColumnsCount();
355
+ /// Calculate container width based on the optional prop or parent's measured width.
356
+ const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
357
+ ? Number(this.hostWidth)
358
+ : this.hostEl.parentElement instanceof HTMLElement
359
+ ? this.hostEl.parentElement.getBoundingClientRect().width
360
+ : this.hostEl.getRootNode().host instanceof HTMLElement
361
+ ? this.hostEl.getRootNode().host.getBoundingClientRect().width
362
+ : 400;
363
+ const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
364
+ return (h("div", { key: '69fd87330d2049eeb91751c781c7aa753fa89883' }, this.searchEnabled && (h("div", { key: '2f9680dd17b852b140fe560f7979e1dd58236c5a' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
365
+ // @ts-ignore
366
+ onInput: (event) => this.handleSearch(event) }))), h("div", { key: 'd67edb24308e526a3e860a90250d58cf8bfee9c8', class: "mt-20" }, h("table", { key: '9a2ef219110e459ac670a0f9c2e62c600f6b5acd', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '81bae222447e805d06642dda19903d5bf99f2b01' }, h("tr", { key: '582d7ea661823b81ccdf3adc9769fe53cf56f04c', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
367
+ var _a;
368
+ 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));
369
+ }))), h("tbody", { key: 'ce7f87e665c394c5e9f2201ef2658e888ea07948' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
370
+ var _a;
371
+ 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)));
372
+ }))))))), this.shouldEnablePagination() && (h("div", { key: '0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0', class: "mt-20" }, h("eds-pagination", { key: '5192f3f4b2ee93d5864d1afed3341a122c826d97', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
373
+ }
374
+ get hostEl() { return getElement(this); }
375
+ static get watchers() { return {
376
+ "data": ["handleDataChange", "parseData"],
377
+ "config": ["handleConfigChange"]
378
+ }; }
379
+ };
380
+ EdsTable.style = EdsTableStyle0;
381
+
382
+ export { EdsPagination as eds_pagination, EdsTable as eds_table };