@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
@@ -30,7 +30,13 @@ const Template = (args) => `
30
30
  <p>This is the content inside the section.</p>
31
31
  </eds-section-core>
32
32
  `;
33
- const TemplateForm = (args) => `
33
+ export const Default = Template.bind({});
34
+ Default.args = {
35
+ tag: 'section',
36
+ sectionTitle: 'Default Section Title',
37
+ headingLevel: 'h2'
38
+ };
39
+ /*const TemplateForm = (args) => `
34
40
  <eds-section-core
35
41
  tag="${args.tag}"
36
42
  section-title="${args.sectionTitle}"
@@ -60,15 +66,10 @@ const TemplateForm = (args) => `
60
66
 
61
67
  </eds-section-core>
62
68
  `;
63
- export const Default = Template.bind({});
64
- Default.args = {
65
- tag: 'section',
66
- sectionTitle: 'Default Section Title',
67
- headingLevel: 'h2'
68
- };
69
+
69
70
  export const WithForm = TemplateForm.bind({});
70
71
  WithForm.args = {
71
- tag: 'section',
72
- sectionTitle: 'This a slotted Form',
73
- headingLevel: 'h2'
74
- };
72
+ tag: 'section',
73
+ sectionTitle: 'This a slotted Form',
74
+ headingLevel: 'h2'
75
+ };*/
@@ -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
  }
@@ -1,3 +1,4 @@
1
+ import { sendAnalytics } from "../../../../../../../packages/utils/src/index";
1
2
  import { h } from "@stencil/core";
2
3
  /**
3
4
  * `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
@@ -12,13 +13,14 @@ import { h } from "@stencil/core";
12
13
  */
13
14
  export class EdsTable {
14
15
  constructor() {
15
- this.minWidth = 400; // Minimum width for components in px
16
16
  this.data = null;
17
17
  this.endpoint = null;
18
18
  this.config = {};
19
19
  this.rowsPerPage = 10;
20
20
  this.paginationEnabled = true;
21
21
  this.searchEnabled = false;
22
+ this.hostWidth = undefined;
23
+ this.columnSize = 'default';
22
24
  this.tableData = [];
23
25
  this.columns = [];
24
26
  this.currentPage = 1;
@@ -97,10 +99,24 @@ export class EdsTable {
97
99
  }
98
100
  handlePageChange(newPage) {
99
101
  this.currentPage = newPage;
102
+ sendAnalytics({
103
+ category: 'ui-component',
104
+ parentContext: null,
105
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
106
+ name: `${newPage}` || '',
107
+ action: 'page'
108
+ });
100
109
  }
101
110
  handleSearch(event) {
102
111
  this.searchQuery = event.target.value;
103
112
  this.currentPage = 1;
113
+ /*sendAnalytics({
114
+ category: 'ui-component',
115
+ parentContext: null,
116
+ tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
117
+ name: `${this.searchQuery}` || '',
118
+ action: 'page'
119
+ });*/
104
120
  }
105
121
  renderCell(value, column) {
106
122
  var _a;
@@ -116,23 +132,40 @@ export class EdsTable {
116
132
  getVisibleColumnsCount() {
117
133
  return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
118
134
  }
135
+ divisionFactor() {
136
+ let divisionFactor = 1;
137
+ if (this.columnSize === 'medium') {
138
+ divisionFactor = 2;
139
+ }
140
+ else if (this.columnSize === 'large') {
141
+ divisionFactor = 4;
142
+ }
143
+ return divisionFactor;
144
+ }
119
145
  render() {
146
+ // Get the paginated rows and calculate the last page.
120
147
  const paginatedRows = this.getPaginatedRows();
121
148
  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
149
+ // Determine the number of visible columns (i.e., those not hidden via config)
125
150
  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...",
151
+ /// Calculate container width based on the optional prop or parent's measured width.
152
+ const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
153
+ ? Number(this.hostWidth)
154
+ : this.hostEl.parentElement instanceof HTMLElement
155
+ ? this.hostEl.parentElement.getBoundingClientRect().width
156
+ : this.hostEl.getRootNode().host instanceof HTMLElement
157
+ ? this.hostEl.getRootNode().host.getBoundingClientRect().width
158
+ : 400;
159
+ const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
160
+ 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...",
128
161
  // @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) => {
162
+ 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) => {
130
163
  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) => {
164
+ 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));
165
+ }))), 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) => {
133
166
  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" })))));
167
+ 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)));
168
+ }))))))), 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" })))));
136
169
  }
137
170
  static get is() { return "eds-table"; }
138
171
  static get encapsulation() { return "shadow"; }
@@ -189,7 +222,7 @@ export class EdsTable {
189
222
  "mutable": false,
190
223
  "complexType": {
191
224
  "original": "| string\n | {\n [key: string]: {\n hidden?: boolean;\n format?: 'uppercase' | 'bold' | 'code';\n };\n }",
192
- "resolved": "string | { [key: string]: { hidden?: boolean; format?: \"bold\" | \"code\" | \"uppercase\"; }; }",
225
+ "resolved": "string | { [key: string]: { hidden?: boolean; format?: \"code\" | \"uppercase\" | \"bold\"; }; }",
193
226
  "references": {}
194
227
  },
195
228
  "required": false,
@@ -255,6 +288,41 @@ export class EdsTable {
255
288
  "attribute": "search-enabled",
256
289
  "reflect": false,
257
290
  "defaultValue": "false"
291
+ },
292
+ "hostWidth": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "string",
297
+ "resolved": "string",
298
+ "references": {}
299
+ },
300
+ "required": false,
301
+ "optional": true,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": ""
305
+ },
306
+ "attribute": "host-width",
307
+ "reflect": false
308
+ },
309
+ "columnSize": {
310
+ "type": "string",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "'default' | 'medium' | 'large'",
314
+ "resolved": "\"default\" | \"large\" | \"medium\"",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": true,
319
+ "docs": {
320
+ "tags": [],
321
+ "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."
322
+ },
323
+ "attribute": "column-size",
324
+ "reflect": false,
325
+ "defaultValue": "'default'"
258
326
  }
259
327
  };
260
328
  }
@@ -276,6 +344,9 @@ export class EdsTable {
276
344
  }, {
277
345
  "propName": "config",
278
346
  "methodName": "handleConfigChange"
347
+ }, {
348
+ "propName": "data",
349
+ "methodName": "parseData"
279
350
  }];
280
351
  }
281
352
  }
@@ -43,57 +43,6 @@ export default {
43
43
  searchEnabled: true
44
44
  }
45
45
  };
46
- export const Default = {
47
- render: (args) => `
48
- <eds-table
49
- data='${JSON.stringify(args.data)}'
50
- config='${JSON.stringify(args.config)}'>
51
- </eds-table>`
52
- };
53
- export const WithHiddenColumn = {
54
- render: (args) => `
55
- <eds-table
56
- data='${JSON.stringify(args.data)}'
57
- config='${JSON.stringify(args.config)}'>
58
- </eds-table>`,
59
- args: {
60
- data: [
61
- { Property: 'username', Type: 'string', Required: 'Yes' },
62
- { Property: 'password', Type: 'string', Required: 'Yes' },
63
- { Property: 'email', Type: 'string', Required: 'No' }
64
- ],
65
- config: {
66
- Required: { hidden: true }
67
- }
68
- }
69
- };
70
- export const WithEndpoint = {
71
- render: (args) => `
72
- <eds-table
73
- endpoint="${args.endpoint}">
74
- </eds-table>`,
75
- args: {
76
- endpoint: 'http://127.0.0.1:5000/api/info'
77
- }
78
- };
79
- export const WithCustomFormats = {
80
- render: (args) => `
81
- <eds-table
82
- data='${JSON.stringify(args.data)}'
83
- config='${JSON.stringify(args.config)}'>
84
- </eds-table>`,
85
- args: {
86
- data: [
87
- { Property: 'username', Type: 'string', Role: 'User' },
88
- { Property: 'password', Type: 'password', Role: 'Admin' }
89
- ],
90
- config: {
91
- Property: { format: 'code' },
92
- Type: { format: 'uppercase' },
93
- Role: { format: 'bold' }
94
- }
95
- }
96
- };
97
46
  // Sample data for the table
98
47
  const sampleData = [
99
48
  { name: 'Alice', age: 25, occupation: 'Engineer' },
@@ -107,48 +56,7 @@ const sampleData = [
107
56
  { name: 'Ian', age: 27, occupation: 'Developer' },
108
57
  { name: 'Jackie', age: 33, occupation: 'Consultant' }
109
58
  ];
110
- const tableData = JSON.stringify(sampleData);
111
- export const BasicPagination = {
112
- render: (args) => `
113
- <eds-table
114
- data=${tableData}
115
- rows-per-page="${args.rowsPerPage}"
116
- pagination-enabled="${args.paginationEnabled}"
117
- ></eds-table>
118
- `,
119
- args: {
120
- rowsPerPage: 5,
121
- paginationEnabled: true
122
- }
123
- };
124
- export const CustomRowsPerPage = {
125
- render: (args) => `
126
- <eds-table
127
- data=${tableData}
128
- rows-per-page="${args.rowsPerPage}"
129
- pagination-enabled="${args.paginationEnabled}"
130
- ></eds-table>
131
- `,
132
- args: {
133
- rowsPerPage: 3,
134
- paginationEnabled: true
135
- }
136
- };
137
- export const CustomRowsPerPageEndpoint = {
138
- render: (args) => `
139
- <eds-table
140
- rows-per-page="${args.rowsPerPage}"
141
- pagination-enabled="${args.paginationEnabled}"
142
- endpoint="${args.endpoint}"
143
- ></eds-table>
144
- `,
145
- args: {
146
- rowsPerPage: 3,
147
- paginationEnabled: true,
148
- endpoint: 'http://127.0.0.1:5000/api/info'
149
- }
150
- };
151
- export const CompleteExample = {
59
+ export const Default = {
152
60
  render: (args) => `
153
61
  <eds-table
154
62
  data='${JSON.stringify(args.data)}'
@@ -171,3 +79,16 @@ export const CompleteExample = {
171
79
  endpoint: '' // Leave empty for manual data entry
172
80
  }
173
81
  };
82
+ export const WithEndpoint = {
83
+ render: (args) => `
84
+ <eds-table
85
+ endpoint="${args.endpoint}"
86
+ rows-per-page="${args.rowsPerPage}"
87
+ pagination-enabled="${args.paginationEnabled}"
88
+ search-enabled="${args.searchEnabled}"
89
+ host-width="600">
90
+ </eds-table>`,
91
+ args: {
92
+ endpoint: 'http://127.0.0.1:5001/api/info'
93
+ }
94
+ };
@@ -1,24 +1,35 @@
1
1
  import { h } from "@stencil/core";
2
- /**
3
- * @internal
4
- */
5
2
  export class EdsTimeline {
6
3
  constructor() {
4
+ this.events = undefined;
7
5
  this.selectedEvent = null;
8
6
  this.parsedEvents = [];
9
- this.events = undefined;
10
7
  }
11
8
  parseEvents(newValue) {
12
- try {
13
- const parsed = JSON.parse(newValue);
14
- this.parsedEvents = Array.isArray(parsed)
15
- ? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true // Ensure boolean conversion
16
- })))
17
- : [];
9
+ let parsed;
10
+ // If events is a string, try to parse it
11
+ if (typeof newValue === 'string') {
12
+ try {
13
+ parsed = JSON.parse(newValue);
14
+ }
15
+ catch (e) {
16
+ // eslint-disable-next-line
17
+ console.error('Error parsing timeline events JSON', e);
18
+ parsed = [];
19
+ }
20
+ }
21
+ // If events is already an array, use it directly
22
+ else if (Array.isArray(newValue)) {
23
+ parsed = newValue;
18
24
  }
19
- catch (e) {
20
- this.parsedEvents = [];
25
+ // Otherwise, default to an empty array
26
+ else {
27
+ parsed = [];
21
28
  }
29
+ // Map over the parsed events to ensure boolean conversion for "completed"
30
+ this.parsedEvents = Array.isArray(parsed)
31
+ ? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
32
+ : [];
22
33
  }
23
34
  componentWillLoad() {
24
35
  this.parseEvents(this.events);
@@ -45,7 +56,7 @@ export class EdsTimeline {
45
56
  }
46
57
  }
47
58
  render() {
48
- return (h("div", { key: '8f40212e04ab17cac2688df56b7330041a605a86', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: '68421d4fce08e881e2494b5c504bd5db7570e34f', class: "relative" }, h("div", { key: 'e43edd7fba6d30b3dd48ffb2b467ff24b46c8da7', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: '56dd7cebb5a2761547a5e24ec76652f7052906b2', class: "space-y-16" }, this.parsedEvents.map((event, index) => (h("div", { class: "relative flex" }, h("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
59
+ return (h("div", { key: '6016cb89d3fe3250482b42d8a0bf500fe18cee5d', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: '994cc7af75950a0f09d108804efff796602aeb93', class: "relative" }, h("div", { key: '77b15ae60feb380ea20c6466b49d0efd5d8f5180', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: '60bb384ce4eedd7bfc3b15a7a637e2b89318d619', class: "space-y-16" }, this.parsedEvents.map((event, index) => (h("div", { class: "relative flex" }, h("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
49
60
  ? [{ label: 'completed', style: 'accent' }]
50
61
  : [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), h("div", { class: "flex items-center justify-center relative" }, event.completed ? (h("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (h("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), h("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
51
62
  ? [{ label: 'completed', style: 'accent' }]
@@ -58,15 +69,15 @@ export class EdsTimeline {
58
69
  "type": "string",
59
70
  "mutable": false,
60
71
  "complexType": {
61
- "original": "string",
62
- "resolved": "string",
72
+ "original": "string | any[]",
73
+ "resolved": "any[] | string",
63
74
  "references": {}
64
75
  },
65
76
  "required": false,
66
77
  "optional": false,
67
78
  "docs": {
68
79
  "tags": [],
69
- "text": "Accepts a JSON string of timeline events."
80
+ "text": "Accepts a JSON string or object of timeline events."
70
81
  },
71
82
  "attribute": "events",
72
83
  "reflect": false
@@ -26,6 +26,27 @@ export class EdsToast {
26
26
  this.duration = 5000;
27
27
  this.visible = true;
28
28
  }
29
+ /**
30
+ * Lifecycle method that sets up the initial panel height and adds a resize event listener
31
+ * to recalculate height on window resize.
32
+ */
33
+ componentDidLoad() {
34
+ // Emit context for each eds-button element after the component is fully loaded
35
+ const btn = this.el.querySelector('eds-button');
36
+ this.emitContext(btn);
37
+ }
38
+ /**
39
+ * Emits a custom event called `parentContext` for a given button element.
40
+ */
41
+ emitContext(linkElement) {
42
+ const event = new CustomEvent('parentContext', {
43
+ detail: {
44
+ componentName: this.el.tagName.toLowerCase(),
45
+ identifier: null
46
+ }
47
+ });
48
+ linkElement.dispatchEvent(event);
49
+ }
29
50
  connectedCallback() {
30
51
  // Auto-dismiss the toast after the specified duration
31
52
  this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
@@ -1,3 +1,4 @@
1
+ import { sendAnalytics } from "../../../../../../../packages/utils/src/index";
1
2
  import { h } from "@stencil/core";
2
3
  /**
3
4
  * `EdsTooltip` dynamically positions a tooltip centered above the slotted element.
@@ -14,9 +15,17 @@ export class EdsTooltip {
14
15
  * Show the tooltip and update its position.
15
16
  */
16
17
  async showTooltip() {
18
+ var _a;
17
19
  await this.updateTooltipPosition();
18
20
  this.isPositioned = true;
19
21
  this.isVisible = true;
22
+ sendAnalytics({
23
+ category: 'ui-component',
24
+ parentContext: null,
25
+ tag: this.el.tagName.toLowerCase(),
26
+ name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
27
+ action: 'hover'
28
+ });
20
29
  }
21
30
  /**
22
31
  * Hide the tooltip.
@@ -81,7 +90,7 @@ export class EdsTooltip {
81
90
  }
82
91
  }
83
92
  render() {
84
- return (h("div", { key: '5edce5e2ca66ef992ad22604a5017e5ab02f846b', class: "relative" }, h("slot", { key: '74c9ef5978e023a45eb9c25c18f95f1875c19b13' }), this.isVisible && this.isPositioned && this.content && (h("div", { key: '4cc3ea40bd81308eb7685b5c1065e8bd30f99191', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
93
+ return (h("div", { key: '673ab0ee31378410f9c83bb5fd37b27d00a7b018', class: "relative" }, h("slot", { key: '0c0138dfdf9aafecc1e0e925c84d4b0ca957f82d' }), this.isVisible && this.isPositioned && this.content && (h("div", { key: '798d01cf631f2e5b3af9d9bb11a847041a6ee2ba', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
85
94
  top: this.tooltipStyle.top,
86
95
  left: this.tooltipStyle.left,
87
96
  transform: this.tooltipStyle.transform
@@ -7,13 +7,23 @@ export class EdsTrl {
7
7
  this.applications = undefined;
8
8
  }
9
9
  getParsedApplications() {
10
- try {
11
- return JSON.parse(this.applications || '[]');
10
+ let apps = [];
11
+ // If applications is a string, attempt to parse it as JSON.
12
+ if (typeof this.applications === 'string') {
13
+ try {
14
+ apps = JSON.parse(this.applications || '[]');
15
+ }
16
+ catch (error) {
17
+ // eslint-disable-next-line
18
+ console.error('Invalid applications trl JSON', error);
19
+ apps = [];
20
+ }
12
21
  }
13
- catch (error) {
14
- //console.error('Invalid applications JSON', error);
15
- return [];
22
+ // If applications is already an array, use it directly.
23
+ else if (Array.isArray(this.applications)) {
24
+ apps = this.applications;
16
25
  }
26
+ return apps;
17
27
  }
18
28
  calculateProgress(currentTrl) {
19
29
  const maxTrl = 9;
@@ -21,37 +31,34 @@ export class EdsTrl {
21
31
  }
22
32
  render() {
23
33
  const apps = this.getParsedApplications();
24
- if (apps.length === 0) {
25
- return h("p", null, "No applications to display.");
26
- }
27
- return (h("div", { class: "container mx-auto px-4 py-8" }, h("table", { class: "table-auto w-full border-collapse border border-gray-200" }, h("thead", null, h("tr", { class: "bg-gray-100" }, h("th", { class: "border border-gray-300 px-4 py-2 text-left" }, "Application"), h("th", { class: "border border-gray-300 px-4 py-2 text-left" }, "Current TRL Stage"), h("th", { class: "border border-gray-300 px-4 py-2 text-left" }, "Progress"))), h("tbody", null, apps.map((app) => (h("tr", null, h("td", { class: "border border-gray-300 px-4 py-2" }, app.name), h("td", { class: "border border-gray-300 px-4 py-2" }, "TRL ", app.currentTrl), h("td", { class: "border border-gray-300 px-4 py-2" }, h("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))))))));
28
- }
29
- static get is() { return "eds-trl"; }
30
- static get originalStyleUrls() {
31
- return {
32
- "$": ["eds-trl.css"]
33
- };
34
- }
35
- static get styleUrls() {
36
- return {
37
- "$": ["eds-trl.css"]
34
+ // Map applications into table-friendly data.
35
+ const tableData = apps.map((app) => ({
36
+ Application: app.name,
37
+ 'Current TRL Stage': `TRL ${app.currentTrl}`,
38
+ Progress: (h("div", { class: "w-[200px]" }, h("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
39
+ }));
40
+ const tableConfig = {
41
+ Application: { format: 'code' },
42
+ 'Current TRL Stage': { format: 'text' }
38
43
  };
44
+ return (h("div", { key: '868a7c45e6495d7a2ed8a4ad2974ac31f74535a6', class: "container mx-auto px-4 py-8" }, h("eds-table", { key: 'ed3e2a949d0e1d66a5e80018fa5fcac9bbe64620', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
39
45
  }
46
+ static get is() { return "eds-trl"; }
40
47
  static get properties() {
41
48
  return {
42
49
  "applications": {
43
50
  "type": "string",
44
51
  "mutable": false,
45
52
  "complexType": {
46
- "original": "string",
47
- "resolved": "string",
53
+ "original": "string | any[]",
54
+ "resolved": "any[] | string",
48
55
  "references": {}
49
56
  },
50
57
  "required": false,
51
58
  "optional": false,
52
59
  "docs": {
53
60
  "tags": [],
54
- "text": ""
61
+ "text": "Accepts a JSON string or an array of application objects."
55
62
  },
56
63
  "attribute": "applications",
57
64
  "reflect": false
@@ -33,7 +33,7 @@ export class ColorPrimaryPalette {
33
33
  ];
34
34
  }
35
35
  render() {
36
- return (h("ul", { key: '20dce1081c2a9213d9df3bb19f14445881892809', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
36
+ return (h("ul", { key: '581f0978ebeda33a156d2baf3cc41a10897da1cf', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
37
37
  }
38
38
  static get is() { return "color-primary-palette"; }
39
39
  }
@@ -58,7 +58,7 @@ export class ColorSecondaryPalette {
58
58
  this.show = undefined;
59
59
  }
60
60
  render() {
61
- return (h("ul", { key: '1eb0e9d0b681be4049209e60ab72bfd36cb09731', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
61
+ return (h("ul", { key: '7f2e8e7efa207bedaa1e19c0f7d87459a5c22693', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
62
62
  }
63
63
  static get is() { return "color-secondary-palette"; }
64
64
  static get properties() {
@@ -49,7 +49,7 @@ export class ColorSupportPalette {
49
49
  ];
50
50
  }
51
51
  render() {
52
- return (h("ul", { key: 'c3dfdc3ab9ac3dcfbe1b82c7725d548d9f10a7ad', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), h("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
52
+ return (h("ul", { key: '6cd3d5f3128a49e9ac77abc11f46ca880bc6c195', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), h("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
53
53
  }
54
54
  static get is() { return "color-support-palette"; }
55
55
  }
@@ -33,7 +33,7 @@ export class GradientPrimaryPalette {
33
33
  ];
34
34
  }
35
35
  render() {
36
- return (h("ul", { key: 'f943b364e509b687251bc9f75a6de5292f31533e', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
36
+ return (h("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
37
37
  background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
38
38
  } }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16" }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
39
39
  }