@ebrains/components 0.2.0-alpha.0 → 0.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
  2. package/dist/cjs/components.cjs.js +1 -1
  3. package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
  4. package/dist/cjs/eds-alert.cjs.entry.js +96 -0
  5. package/dist/cjs/eds-avatar_17.cjs.entry.js +1454 -0
  6. package/dist/cjs/eds-card-desc_3.cjs.entry.js +117 -0
  7. package/dist/cjs/eds-card-generic.cjs.entry.js +105 -0
  8. package/dist/cjs/eds-card-section.cjs.entry.js +17 -6
  9. package/dist/cjs/eds-components-section.cjs.entry.js +44 -24
  10. package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
  11. package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
  12. package/dist/cjs/eds-form.cjs.entry.js +322 -0
  13. package/dist/cjs/eds-input_7.cjs.entry.js +316 -0
  14. package/dist/cjs/eds-login.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
  16. package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +157 -0
  17. package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
  18. package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
  19. package/dist/cjs/eds-tabs-content.cjs.entry.js +2 -2
  20. package/dist/cjs/eds-tabs.cjs.entry.js +26 -5
  21. package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
  22. package/dist/cjs/eds-trl.cjs.entry.js +52 -0
  23. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
  24. package/dist/cjs/index-f08e4f5c.js +38 -30
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/cjs/logo-space.cjs.entry.js +1 -1
  27. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
  28. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  29. package/dist/cjs/token-list_3.cjs.entry.js +3 -3
  30. package/dist/cjs/token-ratios.cjs.entry.js +1 -1
  31. package/dist/cjs/token-spacing.cjs.entry.js +1 -1
  32. package/dist/cjs/token-typography.cjs.entry.js +1 -1
  33. package/dist/collection/collection-manifest.json +1 -0
  34. package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
  35. package/dist/collection/components/eds-button/eds-button.js +3 -3
  36. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
  37. package/dist/collection/components/eds-table/eds-table.css +4 -0
  38. package/dist/collection/components/eds-table/eds-table.js +69 -11
  39. package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
  40. package/dist/collection/components/eds-timeline/eds-timeline.js +26 -16
  41. package/dist/collection/components/eds-trl/eds-trl.js +30 -22
  42. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  43. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  44. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  45. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  46. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  47. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  48. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  49. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -5
  50. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  51. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  52. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  53. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  54. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  55. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  56. package/dist/collection/eds-docs-ui/eds-components-section/eds-components-section.js +3 -6
  57. package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
  58. package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
  59. package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +44 -0
  60. package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
  61. package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
  62. package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
  63. package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
  64. package/dist/collection/eds-docs-ui/functional/react.js +1 -1
  65. package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
  66. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  67. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
  68. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
  69. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
  70. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
  71. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  72. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +19 -8
  73. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
  74. package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
  75. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
  76. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
  77. package/dist/collection/shared-ui/eds-header/eds-header.js +9 -5
  78. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
  79. package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
  80. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
  81. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
  82. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
  83. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
  84. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  85. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
  86. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  87. package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
  88. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
  89. package/dist/components/components.css +17 -10
  90. package/dist/components/components.esm.js +1 -1
  91. package/dist/components/correct-use-of-colors.js +1 -1
  92. package/dist/components/eds-breadcrumb.js +13 -12
  93. package/dist/components/eds-button2.js +1 -1
  94. package/dist/components/eds-card-section.js +17 -6
  95. package/dist/components/eds-components-section.js +44 -24
  96. package/dist/components/eds-docs-palettes.js +1 -1
  97. package/dist/components/eds-docs-tokens.js +1 -1
  98. package/dist/components/eds-footer2.js +1 -1
  99. package/dist/components/eds-header.js +6 -2
  100. package/dist/components/eds-input-select2.js +70 -2
  101. package/dist/components/eds-login.js +3 -2
  102. package/dist/components/eds-logo-variations.d.ts +11 -0
  103. package/dist/components/eds-logo-variations.js +60 -0
  104. package/dist/components/eds-social-networks.js +2 -2
  105. package/dist/components/eds-social-networks2.js +6 -6
  106. package/dist/components/eds-svg-repository.js +7 -1
  107. package/dist/components/eds-table2.js +36 -14
  108. package/dist/components/eds-tabs-content.js +2 -2
  109. package/dist/components/eds-tabs.js +26 -5
  110. package/dist/components/eds-timeline.js +23 -10
  111. package/dist/components/eds-toast-manager.js +1 -1
  112. package/dist/components/eds-trl.js +95 -15
  113. package/dist/components/eds-user-modal2.js +1 -5
  114. package/dist/components/eds-user2.js +12 -6
  115. package/dist/components/incorrect-use-of-colors.js +20 -2
  116. package/dist/components/logo-space.js +1 -1
  117. package/dist/components/logo-variations-horizontal.js +2 -50
  118. package/dist/components/logo-variations-horizontal2.js +37 -0
  119. package/dist/components/logo-variations-vertical.js +2 -50
  120. package/dist/components/logo-variations-vertical2.js +42 -0
  121. package/dist/components/logo-wrong-usage.js +2 -2
  122. package/dist/components/p-005de86f.entry.js +1 -0
  123. package/dist/components/{p-5eb32f03.entry.js → p-0910d733.entry.js} +1 -1
  124. package/dist/components/{p-c9c3cc49.entry.js → p-22e6d7d5.entry.js} +1 -1
  125. package/dist/components/p-2851ff44.entry.js +1 -0
  126. package/dist/components/p-29648b47.entry.js +1 -0
  127. package/dist/components/{p-9722811d.entry.js → p-2e8459ef.entry.js} +1 -1
  128. package/dist/components/p-3617841d.entry.js +1 -0
  129. package/dist/components/p-3ff76976.entry.js +1 -0
  130. package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
  131. package/dist/components/p-52ac3456.entry.js +1 -0
  132. package/dist/components/p-57c964c5.entry.js +1 -0
  133. package/dist/components/p-5a43503a.entry.js +1 -0
  134. package/dist/components/p-5afb626c.entry.js +1 -0
  135. package/dist/components/p-5d7af761.entry.js +1 -0
  136. package/dist/components/p-6378fb3e.entry.js +1 -0
  137. package/dist/components/p-7215789a.entry.js +1 -0
  138. package/dist/components/p-762c8c83.entry.js +1 -0
  139. package/dist/components/p-7802e966.entry.js +1 -0
  140. package/dist/components/p-84957b6d.entry.js +1 -0
  141. package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
  142. package/dist/components/p-ac0112d5.entry.js +1 -0
  143. package/dist/components/p-acb16e1c.entry.js +1 -0
  144. package/dist/components/p-ae5dbd41.entry.js +1 -0
  145. package/dist/components/p-be6c80da.entry.js +1 -0
  146. package/dist/components/p-d1f6a722.entry.js +1 -0
  147. package/dist/components/p-d53b7a75.entry.js +1 -0
  148. package/dist/components/{p-b717f95a.entry.js → p-d571d530.entry.js} +1 -1
  149. package/dist/components/p-d7a92efb.entry.js +1 -0
  150. package/dist/components/p-fd27e56c.entry.js +1 -0
  151. package/dist/components/primary.js +1 -1
  152. package/dist/components/primary2.js +1 -1
  153. package/dist/components/secondary.js +1 -1
  154. package/dist/components/secondary2.js +7 -7
  155. package/dist/components/support.js +1 -1
  156. package/dist/components/support2.js +3 -3
  157. package/dist/components/token-list2.js +1 -1
  158. package/dist/components/token-radii2.js +1 -1
  159. package/dist/components/token-ratios.js +1 -1
  160. package/dist/components/token-shadows2.js +1 -1
  161. package/dist/components/token-spacing.js +1 -1
  162. package/dist/components/token-typography.js +1 -1
  163. package/dist/esm/color-primary-palette_6.entry.js +14 -14
  164. package/dist/esm/components.js +1 -1
  165. package/dist/esm/correct-use-of-colors.entry.js +1 -1
  166. package/dist/esm/eds-alert.entry.js +92 -0
  167. package/dist/esm/eds-avatar_17.entry.js +1434 -0
  168. package/dist/esm/eds-card-desc_3.entry.js +111 -0
  169. package/dist/esm/eds-card-generic.entry.js +101 -0
  170. package/dist/esm/eds-card-section.entry.js +17 -6
  171. package/dist/esm/eds-components-section.entry.js +44 -24
  172. package/dist/esm/eds-docs-palettes.entry.js +1 -1
  173. package/dist/esm/eds-docs-tokens.entry.js +1 -1
  174. package/dist/esm/eds-form.entry.js +318 -0
  175. package/dist/esm/eds-input_7.entry.js +306 -0
  176. package/dist/esm/eds-login.entry.js +1 -1
  177. package/dist/esm/eds-logo-variations.entry.js +23 -0
  178. package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +157 -1
  179. package/dist/esm/eds-progress-bar.entry.js +25 -0
  180. package/dist/esm/eds-svg-repository.entry.js +8 -2
  181. package/dist/esm/eds-tabs-content.entry.js +2 -2
  182. package/dist/esm/eds-tabs.entry.js +26 -5
  183. package/dist/esm/eds-timeline.entry.js +72 -0
  184. package/dist/esm/eds-trl.entry.js +48 -0
  185. package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
  186. package/dist/esm/index-e96badea.js +38 -30
  187. package/dist/esm/loader.js +1 -1
  188. package/dist/esm/logo-space.entry.js +1 -1
  189. package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
  190. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  191. package/dist/esm/token-list_3.entry.js +3 -3
  192. package/dist/esm/token-ratios.entry.js +1 -1
  193. package/dist/esm/token-spacing.entry.js +1 -1
  194. package/dist/esm/token-typography.entry.js +1 -1
  195. package/dist/hydrate/index.js +378 -178
  196. package/dist/hydrate/index.mjs +378 -178
  197. package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
  198. package/dist/types/components/eds-button/eds-button.d.ts +2 -2
  199. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
  200. package/dist/types/components/eds-table/eds-table.d.ts +9 -1
  201. package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
  202. package/dist/types/components/eds-timeline/eds-timeline.d.ts +9 -12
  203. package/dist/types/components/eds-trl/eds-trl.d.ts +4 -1
  204. package/dist/types/components.d.ts +217 -38
  205. package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
  206. package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
  207. package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
  208. package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
  209. package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
  210. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +6 -1
  211. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
  212. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
  213. package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
  214. package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
  215. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
  216. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
  217. package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
  218. package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
  219. package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
  220. package/package.json +3 -3
  221. package/dist/cjs/eds-alert_28.cjs.entry.js +0 -2059
  222. package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
  223. package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -153
  224. package/dist/cjs/eds-footer.cjs.entry.js +0 -50
  225. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
  226. package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
  227. package/dist/cjs/eds-table.cjs.entry.js +0 -143
  228. package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -31
  229. package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -31
  230. package/dist/collection/components/eds-trl/eds-trl.css +0 -0
  231. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
  232. package/dist/components/p-04e47e04.entry.js +0 -1
  233. package/dist/components/p-0a3b2576.entry.js +0 -1
  234. package/dist/components/p-0c99ef81.entry.js +0 -1
  235. package/dist/components/p-272d249f.entry.js +0 -1
  236. package/dist/components/p-2d8508cd.entry.js +0 -1
  237. package/dist/components/p-3a2e8ef3.entry.js +0 -1
  238. package/dist/components/p-3afafa59.entry.js +0 -1
  239. package/dist/components/p-3b40559e.entry.js +0 -1
  240. package/dist/components/p-49958f77.entry.js +0 -1
  241. package/dist/components/p-551c0b58.entry.js +0 -1
  242. package/dist/components/p-559b6ec9.entry.js +0 -1
  243. package/dist/components/p-5ae9722b.entry.js +0 -1
  244. package/dist/components/p-9000b245.entry.js +0 -1
  245. package/dist/components/p-b14ef448.entry.js +0 -1
  246. package/dist/components/p-b203eb1b.entry.js +0 -1
  247. package/dist/components/p-b33941a0.entry.js +0 -1
  248. package/dist/components/p-bca40434.entry.js +0 -1
  249. package/dist/components/p-df93db96.entry.js +0 -1
  250. package/dist/components/p-ebed87b8.entry.js +0 -1
  251. package/dist/components/p-ff5de62c.entry.js +0 -1
  252. package/dist/components/p-ffec8755.entry.js +0 -1
  253. package/dist/esm/eds-alert_28.entry.js +0 -2028
  254. package/dist/esm/eds-block-break.entry.js +0 -17
  255. package/dist/esm/eds-breadcrumb.entry.js +0 -149
  256. package/dist/esm/eds-footer.entry.js +0 -46
  257. package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
  258. package/dist/esm/eds-social-networks.entry.js +0 -62
  259. package/dist/esm/eds-table.entry.js +0 -139
  260. package/dist/esm/logo-variations-horizontal.entry.js +0 -27
  261. package/dist/esm/logo-variations-vertical.entry.js +0 -27
  262. /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
@@ -10,7 +10,7 @@ import { d as defineCustomElement$3 } from './eds-input-select2.js';
10
10
  import { d as defineCustomElement$2 } from './eds-link2.js';
11
11
  import { d as defineCustomElement$1 } from './eds-pagination2.js';
12
12
 
13
- 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}";
13
+ 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}";
14
14
  const EdsTableStyle0 = edsTableCss;
15
15
 
16
16
  const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLElement {
@@ -18,13 +18,14 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
18
18
  super();
19
19
  this.__registerHost();
20
20
  this.__attachShadow();
21
- this.minWidth = 400; // Minimum width for components in px
22
21
  this.data = null;
23
22
  this.endpoint = null;
24
23
  this.config = {};
25
24
  this.rowsPerPage = 10;
26
25
  this.paginationEnabled = true;
27
26
  this.searchEnabled = false;
27
+ this.hostWidth = undefined;
28
+ this.columnSize = 'default';
28
29
  this.tableData = [];
29
30
  this.columns = [];
30
31
  this.currentPage = 1;
@@ -122,27 +123,46 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
122
123
  getVisibleColumnsCount() {
123
124
  return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
124
125
  }
126
+ divisionFactor() {
127
+ let divisionFactor = 1;
128
+ if (this.columnSize === 'medium') {
129
+ divisionFactor = 2;
130
+ }
131
+ else if (this.columnSize === 'large') {
132
+ divisionFactor = 4;
133
+ }
134
+ return divisionFactor;
135
+ }
125
136
  render() {
137
+ // Get the paginated rows and calculate the last page.
126
138
  const paginatedRows = this.getPaginatedRows();
127
139
  const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
128
- // Calculate column width based on minWidth and number of columns
129
- //const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
130
- // Use the visible column count to calculate the column width
140
+ // Determine the number of visible columns (i.e., those not hidden via config)
131
141
  const visibleColumnsCount = this.getVisibleColumnsCount();
132
- const columnWidth = visibleColumnsCount > 0 ? Math.max(this.minWidth / visibleColumnsCount, 100) : 100;
133
- 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...",
142
+ /// Calculate container width based on the optional prop or parent's measured width.
143
+ const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
144
+ ? Number(this.hostWidth)
145
+ : this.hostEl.parentElement instanceof HTMLElement
146
+ ? this.hostEl.parentElement.getBoundingClientRect().width
147
+ : this.hostEl.getRootNode().host instanceof HTMLElement
148
+ ? this.hostEl.getRootNode().host.getBoundingClientRect().width
149
+ : 400;
150
+ //console.log('containerWidth:', containerWidth);
151
+ const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
152
+ console.log('columnWidth:', columnWidth);
153
+ return (h("div", { key: '178a33c07e6eae9d5edc170f842b6ef29ae21d9c' }, this.searchEnabled && (h("div", { key: 'f1212a4e515a1db218df28b71367c6ffa42e3063' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
134
154
  // @ts-ignore
135
- 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) => {
155
+ onInput: (event) => this.handleSearch(event) }))), h("div", { key: 'da6ac91e4b4d56780b044a3d35088e7722efe143', class: "mt-20" }, h("table", { key: '3c5734d2370b31d2445ed4f043a80bf87c6d4bde', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '3803a39b4c987ff39bf22e2567bd1bc3d513e1f4' }, h("tr", { key: 'a67fa7bdd48549c69cfa9721083a908ab036a559', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
136
156
  var _a;
137
- 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));
138
- }))), 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) => {
157
+ 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));
158
+ }))), h("tbody", { key: '8e3f21bf2ee5b1bd84cfa93411ca2671f43ced45' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
139
159
  var _a;
140
- 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)));
141
- }))))))), 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" })))));
160
+ 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)));
161
+ }))))))), this.shouldEnablePagination() && (h("div", { key: '24931f257ef9ced394c1b5b1e589cacedd8035e6', class: "mt-20" }, h("eds-pagination", { key: '996b26ae090ee4fe08cc821fb11362d94879ff72', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
142
162
  }
143
163
  get hostEl() { return this; }
144
164
  static get watchers() { return {
145
- "data": ["handleDataChange"],
165
+ "data": ["handleDataChange", "parseData"],
146
166
  "config": ["handleConfigChange"]
147
167
  }; }
148
168
  static get style() { return EdsTableStyle0; }
@@ -153,6 +173,8 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
153
173
  "rowsPerPage": [2, "rows-per-page"],
154
174
  "paginationEnabled": [4, "pagination-enabled"],
155
175
  "searchEnabled": [4, "search-enabled"],
176
+ "hostWidth": [1, "host-width"],
177
+ "columnSize": [1, "column-size"],
156
178
  "tableData": [32],
157
179
  "columns": [32],
158
180
  "currentPage": [32],
@@ -160,7 +182,7 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
160
182
  "totalRows": [32],
161
183
  "searchQuery": [32]
162
184
  }, undefined, {
163
- "data": ["handleDataChange"],
185
+ "data": ["handleDataChange", "parseData"],
164
186
  "config": ["handleConfigChange"]
165
187
  }]);
166
188
  function defineCustomElement() {
@@ -117,11 +117,11 @@ const EdsTabsContent$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabsContent e
117
117
  });
118
118
  }
119
119
  render() {
120
- return (h("div", { key: 'b1bfb55fbdee21a10fcc600d4c3ce2842684c519', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '1d1aeb094b6c350355abec1bf74928561a1c0f2d', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: '5d5b04ddf5ddb60c2a9b49d19f4efe026cc2557d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
120
+ return (h("div", { key: '7bc954d9251bd15b5e3a49d5c74b83805f802b07', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
121
121
  //const TabComponent = tab.active ? 'span' : 'a';
122
122
  const tabProps = this.getTabOptions(tab.active, index);
123
123
  return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
124
- })), h("slot", { key: '58e9281516d0a4485ba0779f9b79c0fa5e989166' }))));
124
+ })), h("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
125
125
  }
126
126
  get el() { return this; }
127
127
  static get watchers() { return {
@@ -51,12 +51,33 @@ const EdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabs extends HTMLEle
51
51
  this.setActiveIndex();
52
52
  this.tabChange.emit({ tabId: this.id, index: 0 });
53
53
  }
54
+ /**
55
+ * Parses the `links` prop into an array of link objects.
56
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
57
+ *
58
+ * @returns {any[]} Array of parsed link objects
59
+ */
60
+ /**
61
+ * Parses the `links` prop into an array of link objects.
62
+ * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
63
+ *
64
+ * @returns {any[]} Array of parsed link objects
65
+ */
54
66
  parseTabs() {
55
- try {
56
- this.parsedTabs = JSON.parse(this.tabs);
67
+ if (Array.isArray(this.tabs)) {
68
+ this.parsedTabs = this.tabs;
57
69
  }
58
- catch (error) {
59
- //console.error('Invalid JSON format for tabs:', error);
70
+ else if (typeof this.tabs === 'string') {
71
+ try {
72
+ this.parsedTabs = JSON.parse(this.tabs);
73
+ }
74
+ catch (e) {
75
+ //console.error('Error parsing tabs prop:', e);
76
+ this.parsedTabs = [];
77
+ }
78
+ }
79
+ else {
80
+ // If the type is not an array or string, assume an empty array.
60
81
  this.parsedTabs = [];
61
82
  }
62
83
  }
@@ -106,7 +127,7 @@ const EdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabs extends HTMLEle
106
127
  });
107
128
  }
108
129
  render() {
109
- return (h("div", { key: '25078703609dbdaa2025013d0e266b169c880c50', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: '8aa1b4ab1f15692c912db3ee39486a59d634c6a5', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: '33728823ca0f039e1037a691da90b295cbe3f3ac', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
130
+ return (h("div", { key: '540bb667084b36ae2151ec39ef6b54a9ac6a4c4a', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, h("div", { key: 'f0266d39c943b82725ded757cce0b35fb85fa874', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
110
131
  //const TabComponent = tab.active ? 'span' : 'a';
111
132
  const tabProps = this.getTabOptions(tab.active, index);
112
133
  return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
@@ -10,21 +10,34 @@ const EdsTimeline$1 = /*@__PURE__*/ proxyCustomElement(class EdsTimeline extends
10
10
  constructor() {
11
11
  super();
12
12
  this.__registerHost();
13
+ this.events = undefined;
13
14
  this.selectedEvent = null;
14
15
  this.parsedEvents = [];
15
- this.events = undefined;
16
16
  }
17
17
  parseEvents(newValue) {
18
- try {
19
- const parsed = JSON.parse(newValue);
20
- this.parsedEvents = Array.isArray(parsed)
21
- ? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true // Ensure boolean conversion
22
- })))
23
- : [];
18
+ let parsed;
19
+ // If events is a string, try to parse it
20
+ if (typeof newValue === 'string') {
21
+ try {
22
+ parsed = JSON.parse(newValue);
23
+ }
24
+ catch (e) {
25
+ console.error('Error parsing events JSON', e);
26
+ parsed = [];
27
+ }
28
+ }
29
+ // If events is already an array, use it directly
30
+ else if (Array.isArray(newValue)) {
31
+ parsed = newValue;
24
32
  }
25
- catch (e) {
26
- this.parsedEvents = [];
33
+ // Otherwise, default to an empty array
34
+ else {
35
+ parsed = [];
27
36
  }
37
+ // Map over the parsed events to ensure boolean conversion for "completed"
38
+ this.parsedEvents = Array.isArray(parsed)
39
+ ? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
40
+ : [];
28
41
  }
29
42
  componentWillLoad() {
30
43
  this.parseEvents(this.events);
@@ -51,7 +64,7 @@ const EdsTimeline$1 = /*@__PURE__*/ proxyCustomElement(class EdsTimeline extends
51
64
  }
52
65
  }
53
66
  render() {
54
- 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
67
+ return (h("div", { key: '29e360adb412c67e7516f04671c276a12197d830', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: 'c556578a505bfb2da435616cb1f39cb91859ec7e', class: "relative" }, h("div", { key: '8e1d307b2b3b470c643ba992d8307457581e9d4f', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: '7b40b6a8944aad01d01524e13056fbafeaa8a8a8', 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
55
68
  ? [{ label: 'completed', style: 'accent' }]
56
69
  : [{ 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
57
70
  ? [{ label: 'completed', style: 'accent' }]
@@ -37,7 +37,7 @@ const EdsToastManager$1 = /*@__PURE__*/ proxyCustomElement(class EdsToastManager
37
37
  this.toasts = this.toasts.filter((t) => t.id !== id);
38
38
  }
39
39
  render() {
40
- return (h("div", { key: '8fc238fb8e0b463c286ca21f2525cae8fd738684', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
40
+ return (h("div", { key: '459148404380e386117387f42183e24a069b2de6', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
41
41
  }
42
42
  get hostElement() { return this; }
43
43
  static get style() { return EdsToastManagerStyle0; }
@@ -1,8 +1,16 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './eds-progress-bar2.js';
3
-
4
- const edsTrlCss = "";
5
- const EdsTrlStyle0 = edsTrlCss;
2
+ import { d as defineCustomElement$d } from './eds-icon-wrapper2.js';
3
+ import { d as defineCustomElement$c } from './eds-input2.js';
4
+ import { d as defineCustomElement$b } from './eds-input-field2.js';
5
+ import { d as defineCustomElement$a } from './eds-input-footer2.js';
6
+ import { d as defineCustomElement$9 } from './eds-input-label2.js';
7
+ import { d as defineCustomElement$8 } from './eds-input-range2.js';
8
+ import { d as defineCustomElement$7 } from './eds-input-search2.js';
9
+ import { d as defineCustomElement$6 } from './eds-input-select2.js';
10
+ import { d as defineCustomElement$5 } from './eds-link2.js';
11
+ import { d as defineCustomElement$4 } from './eds-pagination2.js';
12
+ import { d as defineCustomElement$3 } from './eds-progress-bar2.js';
13
+ import { d as defineCustomElement$2 } from './eds-table2.js';
6
14
 
7
15
  const EdsTrl$1 = /*@__PURE__*/ proxyCustomElement(class EdsTrl extends HTMLElement {
8
16
  constructor() {
@@ -11,13 +19,23 @@ const EdsTrl$1 = /*@__PURE__*/ proxyCustomElement(class EdsTrl extends HTMLEleme
11
19
  this.applications = undefined;
12
20
  }
13
21
  getParsedApplications() {
14
- try {
15
- return JSON.parse(this.applications || '[]');
22
+ let apps = [];
23
+ // If applications is a string, attempt to parse it as JSON.
24
+ if (typeof this.applications === 'string') {
25
+ try {
26
+ apps = JSON.parse(this.applications || '[]');
27
+ }
28
+ catch (error) {
29
+ // Uncomment the next line for debugging
30
+ // console.error('Invalid applications JSON', error);
31
+ apps = [];
32
+ }
16
33
  }
17
- catch (error) {
18
- //console.error('Invalid applications JSON', error);
19
- return [];
34
+ // If applications is already an array, use it directly.
35
+ else if (Array.isArray(this.applications)) {
36
+ apps = this.applications;
20
37
  }
38
+ return apps;
21
39
  }
22
40
  calculateProgress(currentTrl) {
23
41
  const maxTrl = 9;
@@ -25,12 +43,19 @@ const EdsTrl$1 = /*@__PURE__*/ proxyCustomElement(class EdsTrl extends HTMLEleme
25
43
  }
26
44
  render() {
27
45
  const apps = this.getParsedApplications();
28
- if (apps.length === 0) {
29
- return h("p", null, "No applications to display.");
30
- }
31
- 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) })))))))));
46
+ console.log('apps:', apps);
47
+ // Map applications into table-friendly data.
48
+ const tableData = apps.map(app => ({
49
+ Application: app.name,
50
+ "Current TRL Stage": `TRL ${app.currentTrl}`,
51
+ Progress: (h("div", { class: "w-[200px]" }, h("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
52
+ }));
53
+ const tableConfig = {
54
+ "Application": { "format": "code" },
55
+ "Current TRL Stage": { "format": "text" }
56
+ };
57
+ return (h("div", { key: '71e903734b5cd1ef74bf93e8fcdc57afacb51f07', class: "container mx-auto px-4 py-8" }, h("eds-table", { key: 'cb8e4324c9c8481dcc2daf74f06c6928257e6f8b', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
32
58
  }
33
- static get style() { return EdsTrlStyle0; }
34
59
  }, [0, "eds-trl", {
35
60
  "applications": [1]
36
61
  }]);
@@ -38,14 +63,69 @@ function defineCustomElement$1() {
38
63
  if (typeof customElements === "undefined") {
39
64
  return;
40
65
  }
41
- const components = ["eds-trl", "eds-progress-bar"];
66
+ const components = ["eds-trl", "eds-icon-wrapper", "eds-input", "eds-input-field", "eds-input-footer", "eds-input-label", "eds-input-range", "eds-input-search", "eds-input-select", "eds-link", "eds-pagination", "eds-progress-bar", "eds-table"];
42
67
  components.forEach(tagName => { switch (tagName) {
43
68
  case "eds-trl":
44
69
  if (!customElements.get(tagName)) {
45
70
  customElements.define(tagName, EdsTrl$1);
46
71
  }
47
72
  break;
73
+ case "eds-icon-wrapper":
74
+ if (!customElements.get(tagName)) {
75
+ defineCustomElement$d();
76
+ }
77
+ break;
78
+ case "eds-input":
79
+ if (!customElements.get(tagName)) {
80
+ defineCustomElement$c();
81
+ }
82
+ break;
83
+ case "eds-input-field":
84
+ if (!customElements.get(tagName)) {
85
+ defineCustomElement$b();
86
+ }
87
+ break;
88
+ case "eds-input-footer":
89
+ if (!customElements.get(tagName)) {
90
+ defineCustomElement$a();
91
+ }
92
+ break;
93
+ case "eds-input-label":
94
+ if (!customElements.get(tagName)) {
95
+ defineCustomElement$9();
96
+ }
97
+ break;
98
+ case "eds-input-range":
99
+ if (!customElements.get(tagName)) {
100
+ defineCustomElement$8();
101
+ }
102
+ break;
103
+ case "eds-input-search":
104
+ if (!customElements.get(tagName)) {
105
+ defineCustomElement$7();
106
+ }
107
+ break;
108
+ case "eds-input-select":
109
+ if (!customElements.get(tagName)) {
110
+ defineCustomElement$6();
111
+ }
112
+ break;
113
+ case "eds-link":
114
+ if (!customElements.get(tagName)) {
115
+ defineCustomElement$5();
116
+ }
117
+ break;
118
+ case "eds-pagination":
119
+ if (!customElements.get(tagName)) {
120
+ defineCustomElement$4();
121
+ }
122
+ break;
48
123
  case "eds-progress-bar":
124
+ if (!customElements.get(tagName)) {
125
+ defineCustomElement$3();
126
+ }
127
+ break;
128
+ case "eds-table":
49
129
  if (!customElements.get(tagName)) {
50
130
  defineCustomElement$2();
51
131
  }
@@ -4,9 +4,6 @@ import { d as defineCustomElement$3 } from './eds-icon-wrapper2.js';
4
4
  import { d as defineCustomElement$2 } from './eds-img2.js';
5
5
  import { d as defineCustomElement$1 } from './eds-link2.js';
6
6
 
7
- const edsUserModalCss = "";
8
- const EdsUserModalStyle0 = edsUserModalCss;
9
-
10
7
  const EdsUserModal = /*@__PURE__*/ proxyCustomElement(class EdsUserModal extends HTMLElement {
11
8
  constructor() {
12
9
  super();
@@ -37,13 +34,12 @@ const EdsUserModal = /*@__PURE__*/ proxyCustomElement(class EdsUserModal extends
37
34
  }
38
35
  render() {
39
36
  var _a, _b, _c, _d, _e;
40
- return (h("div", { key: '70a619795f9f0e5ed619cce77c95b7661beb2c63', class: "min-w-[280px] p-8" }, h("div", { key: '01bfe265178130ca0398592087f2420f7509d018', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, h("eds-avatar", { key: 'fcb0cc8aa22e11763c342bc4247343485f6ded90', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), h("div", { key: '70d5c334cc98e9bdc22e0129a7c3c0b8d616cb0d', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (h("p", { key: 'f30cccaa393dd1274d156640ed649893de3f2a0b', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && h("p", { key: '5256c0bc39ca675b05d654c6d0ad72da948df58e', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && h("p", { key: '892a3d85052c62e11cd775c2d91c55f572df745b', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), h("div", { key: '98e1f6605a8e312a1e7c340d21e0240a1e980e04', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, h("div", { key: 'd4ed22d8dc1bf4d1fd7c64b388e53df2a1e48957', class: "border-softer mb-10 border-b-2 pb-16" }, h("eds-link", { key: '98d69c840a87b15d537442ca0c1f2890175532ff', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), h("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (h("eds-link", { key: '8c3c341626f0ca5fd217aea8939d44c7cf3e0ed3', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
37
+ return (h("div", { key: 'ad99ddd7c2710ef90840a5571ab6a161178cacc0', class: "min-w-[280px] p-8" }, h("div", { key: 'd1da12f3a965fa7503fb3e00566db0796b803352', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, h("eds-avatar", { key: 'c3d3ca80a9d23cc88f8ee6801b29995138c9b7c6', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), h("div", { key: '4efe378b3a9ce76d35e642db150be13d0434db72', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (h("p", { key: '1068082a2894e3c3e3f77d1eea923f9c39d8766c', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && h("p", { key: 'b86e08b806a37c9957bca7f9ee268303e7ace134', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && h("p", { key: 'b3514920e1eb4906cb7f7705bfbc986166e84946', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), h("div", { key: '61941fa0a19a19087da886a73d85d7e438d2c0b0', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, h("div", { key: '5ad2be1763726c9d794b78a2593106fd8ba1dc7b', class: "border-softer mb-10 border-b-2 pb-16" }, h("eds-link", { key: 'dbe3a9de56bf5ccc26426ddb831f2d1a27a0e6ff', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), h("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (h("eds-link", { key: '642890827e2fa6735bc616e680dbda481c2c0053', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
41
38
  }
42
39
  static get watchers() { return {
43
40
  "user": ["parseUserProp"],
44
41
  "links": ["parseLinksProp"]
45
42
  }; }
46
- static get style() { return EdsUserModalStyle0; }
47
43
  }, [0, "eds-user-modal", {
48
44
  "user": [1],
49
45
  "links": [1],
@@ -1,6 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { l as login, a as logout, c as checkServerAvailability, i as initKeycloak, b as isAuthenticated, g as getUser } from './keycloak.js';
3
- import { t as toast } from './toastManager.js';
4
3
  import { d as defineCustomElement$7 } from './eds-avatar2.js';
5
4
  import { d as defineCustomElement$6 } from './eds-button2.js';
6
5
  import { d as defineCustomElement$5 } from './eds-dropdown2.js';
@@ -30,6 +29,7 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
30
29
  this.handleLogout = () => {
31
30
  logout();
32
31
  this.authenticated = false;
32
+ this.user = null;
33
33
  };
34
34
  this.keycloakUrl = undefined;
35
35
  this.keycloakRealm = undefined;
@@ -44,9 +44,15 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
44
44
  * It initializes authentication by calling the `initAuth` method.
45
45
  */
46
46
  async componentWillLoad() {
47
+ // Check if required props are provided (optional check)
48
+ if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
49
+ // eslint-disable-next-line
50
+ console.error('Keycloak configuration props are missing.');
51
+ return;
52
+ }
47
53
  this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
48
54
  if (!this.serverAvailable) {
49
- toast.show('Keycloak server is unavailable.', 'error');
55
+ //toast.show('Keycloak server is unavailable.', 'error');
50
56
  return; // Do not proceed further
51
57
  }
52
58
  await this.initAuth();
@@ -65,15 +71,15 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
65
71
  };
66
72
  await initKeycloak(keycloakConfig, true);
67
73
  // Set authentication state and fetch user data if authenticated
68
- this.authenticated = isAuthenticated();
69
- if (this.authenticated) {
74
+ //this.authenticated = isAuthenticated();
75
+ if (isAuthenticated()) {
70
76
  this.user = getUser();
77
+ this.authenticated = true;
71
78
  }
72
79
  this.authStatusChanged.emit({
73
80
  authenticated: this.authenticated,
74
81
  user: this.user
75
82
  }); // Emit auth status change
76
- toast.show(`Welcome back, ${this.user.username}`, 'success');
77
83
  }
78
84
  catch (error) {
79
85
  // eslint-disable-next-line
@@ -86,7 +92,7 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
86
92
  if (!this.serverAvailable) {
87
93
  return null;
88
94
  }
89
- return (h("div", { class: "block" }, !this.authenticated ? (h("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin.bind(this), class: "text-default" })) : (h("div", { class: "flex items-center" }, h("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, h("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
95
+ return (h("div", { class: "block" }, !this.authenticated ? (h("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (h("div", { class: "flex items-center" }, h("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, h("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
90
96
  }
91
97
  get hostEl() { return this; }
92
98
  }, [0, "eds-user", {
@@ -1,4 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$4 } from './eds-alert2.js';
3
+ import { d as defineCustomElement$3 } from './eds-icon-wrapper2.js';
4
+ import { d as defineCustomElement$2 } from './eds-link2.js';
2
5
 
3
6
  const primary = [
4
7
  {
@@ -40,20 +43,35 @@ const IncorrectUseOfColors$1 = /*@__PURE__*/ proxyCustomElement(class IncorrectU
40
43
  this.__registerHost();
41
44
  }
42
45
  render() {
43
- return (h("div", { key: '024316623703e89a7d5d226a75c25c145be9b2c6', class: "container" }, h("p", { key: 'c2ddb12f2d87bf1c5bb7f49bcf2b76d42ccfd310', class: "f-body-01" }, "Each of the four colour tones cannot be mixed in the same composition."), h("div", { key: 'c5f1acb20614d5732836240dd65b23a8dd074447', class: "flex" }, h("div", { key: 'cb2fb1c0355b744e53977c573383989be12fe1ad', class: "w-full" }, h("ul", { key: '9ceb752231d8a7764221d45653c4ef73fad4573d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: '494eaadc1547f91e11d93655b91424f98de6a635', class: "w-full" }, h("ul", { key: '51de6e25df144ab9014ca95ad645a437b6469441', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
46
+ return (h("div", { key: '2e660e9a788e46e68d6695ae8aa475bbb1ca395e', class: "container" }, h("eds-alert", { key: '1dc4552a33d88055a3a0c33eeb18c53a8379039a', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), h("div", { key: 'fd6bf7f0205422b1bd3ceb3f8374d5a9a73aaca0', class: "flex" }, h("div", { key: 'dae745447f5e9792136f059b1dcfc868e473dfd5', class: "w-full" }, h("ul", { key: 'daeec7514f4027ec3f688f05fb4f1e027b846a81', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: '1ca202afa9384e78e3ed9c0674e06c51184d3a5a', class: "w-full" }, h("ul", { key: '7bdef2e7d64f3c5553193d127bac69ee89a93686', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
44
47
  }
45
48
  }, [0, "incorrect-use-of-colors"]);
46
49
  function defineCustomElement$1() {
47
50
  if (typeof customElements === "undefined") {
48
51
  return;
49
52
  }
50
- const components = ["incorrect-use-of-colors"];
53
+ const components = ["incorrect-use-of-colors", "eds-alert", "eds-icon-wrapper", "eds-link"];
51
54
  components.forEach(tagName => { switch (tagName) {
52
55
  case "incorrect-use-of-colors":
53
56
  if (!customElements.get(tagName)) {
54
57
  customElements.define(tagName, IncorrectUseOfColors$1);
55
58
  }
56
59
  break;
60
+ case "eds-alert":
61
+ if (!customElements.get(tagName)) {
62
+ defineCustomElement$4();
63
+ }
64
+ break;
65
+ case "eds-icon-wrapper":
66
+ if (!customElements.get(tagName)) {
67
+ defineCustomElement$3();
68
+ }
69
+ break;
70
+ case "eds-link":
71
+ if (!customElements.get(tagName)) {
72
+ defineCustomElement$2();
73
+ }
74
+ break;
57
75
  } });
58
76
  }
59
77
 
@@ -11,7 +11,7 @@ const LogoSpace$1 = /*@__PURE__*/ proxyCustomElement(class LogoSpace extends HTM
11
11
  this.__attachShadow();
12
12
  }
13
13
  render() {
14
- return (h("div", { key: '941aa1eb81d139e0e9676481b9138bb52f7e83df', class: "container my-20" }, h("div", { key: 'aebf776430ff757354b7ec6cb777c129d0052f22', class: "w-[300px]" }, h("div", { key: '0ba420a45e374b736f360cbf165e1e7819a37184', class: "bg-dark" }, h("div", { key: 'abc0532214cde00c7488dbf658891e36b034a307', class: "logo-container", innerHTML: vLogoMargins })))));
14
+ return (h("div", { key: '004134f2770f755a3ae0d158b9ec6987a64dcc8b', class: "container my-20" }, h("div", { key: '49b57e44a4a68b5d6393ee3284af58d56aa5c014', class: "w-[300px]" }, h("div", { key: '4812ffe1b1df94ece0e2d391648aea812c7c9028', class: "bg-dark" }, h("div", { key: 'ce3bbecdba5bbabb14d1b0e197318cf4180f8699', class: "logo-container", innerHTML: vLogoMargins })))));
15
15
  }
16
16
  static get style() { return LogoSpaceStyle0; }
17
17
  }, [1, "logo-space"]);
@@ -1,54 +1,6 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$2 } from './eds-logo2.js';
1
+ import { L as LogoVariationsHorizontal$1, d as defineCustomElement$1 } from './logo-variations-horizontal2.js';
3
2
 
4
- const logoVariationsHorizontalCss = ".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}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
5
- const LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
6
-
7
- const LogoVariations = /*@__PURE__*/ proxyCustomElement(class LogoVariations extends HTMLElement {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
12
- this.orientation = 'horizontal';
13
- this.type = undefined;
14
- }
15
- render() {
16
- if (this.type === 'coloured') {
17
- return (h("div", { class: "container my-16" }, h("div", { class: "coloured w-[300px]" }, h("eds-logo", { type: "no-bg", href: "#" }))));
18
- }
19
- if (this.type === 'black') {
20
- return (h("div", { class: "container my-16" }, h("div", { class: "bg-default w-[300px]" }, h("eds-logo", { type: "black", href: "#" }))));
21
- }
22
- if (this.type === 'color-white') {
23
- return (h("div", { class: "container my-16" }, h("div", { class: "w-[300px]" }, h("eds-logo", { type: "color-white", href: "#" }))));
24
- }
25
- return null;
26
- }
27
- static get style() { return LogoVariationsHorizontalStyle0; }
28
- }, [1, "logo-variations-horizontal", {
29
- "orientation": [1],
30
- "type": [1]
31
- }]);
32
- function defineCustomElement$1() {
33
- if (typeof customElements === "undefined") {
34
- return;
35
- }
36
- const components = ["logo-variations-horizontal", "eds-logo"];
37
- components.forEach(tagName => { switch (tagName) {
38
- case "logo-variations-horizontal":
39
- if (!customElements.get(tagName)) {
40
- customElements.define(tagName, LogoVariations);
41
- }
42
- break;
43
- case "eds-logo":
44
- if (!customElements.get(tagName)) {
45
- defineCustomElement$2();
46
- }
47
- break;
48
- } });
49
- }
50
-
51
- const LogoVariationsHorizontal = LogoVariations;
3
+ const LogoVariationsHorizontal = LogoVariationsHorizontal$1;
52
4
  const defineCustomElement = defineCustomElement$1;
53
5
 
54
6
  export { LogoVariationsHorizontal, defineCustomElement };