@ebrains/vue 0.6.0-alpha.0 → 0.8.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 (250) hide show
  1. package/README.md +3 -3
  2. package/{color-primary-palette_6.entry-BJGrNiKE.mjs → color-primary-palette_6.entry-8IScvoTJ.mjs} +19 -19
  3. package/color-primary-palette_6.entry-8sRpfe4E.js +1 -0
  4. package/correct-use-of-colors.entry-CfU46fhX.js +1 -0
  5. package/correct-use-of-colors.entry-ClTcY5vo.mjs +59 -0
  6. package/eds-accordion_17.entry-BBnyn6EM.js +24029 -0
  7. package/eds-accordion_17.entry-BhCBvhXC.mjs +25134 -0
  8. package/{eds-alert.entry-HNjGFpMQ.js → eds-alert.entry-C7iR6Wau.js} +224 -93
  9. package/{eds-alert.entry-B9K7jZdM.mjs → eds-alert.entry-DHikCbw_.mjs} +233 -96
  10. package/eds-app-root.entry-YPigXe8_.mjs +25 -0
  11. package/eds-app-root.entry-rafdbiL3.js +1 -0
  12. package/{eds-breadcrumb.entry-nSQcSQxS.mjs → eds-breadcrumb.entry-Bfc36jaR.mjs} +12 -18
  13. package/eds-breadcrumb.entry-D065WE8j.js +1 -0
  14. package/eds-card-desc_3.entry-BJP_Vvul.mjs +83 -0
  15. package/eds-card-desc_3.entry-CPmEcD7h.js +1 -0
  16. package/eds-card-generic.entry-Bn3saq5k.mjs +56 -0
  17. package/eds-card-generic.entry-Ct8aLaT_.js +1 -0
  18. package/eds-card-project.entry-B7s198sC.js +1 -0
  19. package/{eds-card-project.entry-BMRVlg7J.mjs → eds-card-project.entry-CkmokKaR.mjs} +7 -7
  20. package/eds-card-section.entry-CE7UQ8HN.js +1 -0
  21. package/eds-card-section.entry-DKP7IjIj.mjs +30 -0
  22. package/eds-card-tags.entry-BNqaohHu.mjs +13 -0
  23. package/eds-card-tags.entry-wvkOqT1r.js +1 -0
  24. package/{eds-card-tool.entry-BPrlMiqY.mjs → eds-card-tool.entry-CR4SuPPR.mjs} +7 -7
  25. package/{eds-card-tool.entry-B0rDGNdA.js → eds-card-tool.entry-Df_qlYY5.js} +1 -1
  26. package/{eds-card-wrapper.entry-Ba4ljzon.mjs → eds-card-wrapper.entry-CosNbMgP.mjs} +4 -4
  27. package/{eds-card-wrapper.entry-DyPmlYoI.js → eds-card-wrapper.entry-DwcKQUDS.js} +1 -1
  28. package/{eds-code-block.entry-zX5MUsAS.mjs → eds-code-block.entry-Bfp7Moc7.mjs} +2 -2
  29. package/{eds-code-block.entry-B3RL-q6l.js → eds-code-block.entry-D5kDIIPG.js} +2 -2
  30. package/{eds-components-section.entry-xnXY70G_.mjs → eds-components-section.entry-CZzJEdYb.mjs} +42 -35
  31. package/eds-components-section.entry-DpGQLUDG.js +140 -0
  32. package/{eds-cookies-preference.entry-MAmSehJX.js → eds-cookies-preference.entry-DUwpfJG0.js} +1 -1
  33. package/{eds-cookies-preference.entry-DAQEpE8v.mjs → eds-cookies-preference.entry-ivi_kdZs.mjs} +5 -5
  34. package/{eds-docs-palettes.entry-BiC_mzap.js → eds-docs-palettes.entry-CvUsZJGt.js} +1 -1
  35. package/{eds-docs-palettes.entry-CFIZWB7Y.mjs → eds-docs-palettes.entry-DF_rAbne.mjs} +2 -2
  36. package/{eds-docs-tokens.entry-CCwf01ke.js → eds-docs-tokens.entry-C3AfntXW.js} +1 -1
  37. package/{eds-docs-tokens.entry-ClVBrRzm.mjs → eds-docs-tokens.entry-gPy71iZA.mjs} +2 -2
  38. package/eds-feedback.entry-Cii4Bgav.mjs +53 -0
  39. package/eds-feedback.entry-mS5rXykK.js +1 -0
  40. package/eds-form.entry-CNUo4guS.mjs +226 -0
  41. package/eds-form.entry-DmOYblLu.js +1 -0
  42. package/eds-frame.entry-BEG9Cq6f.mjs +73 -0
  43. package/eds-frame.entry-MuWFMQ5l.js +1 -0
  44. package/eds-icon-arrow-diagonal.entry-6WVlNQjt.mjs +13 -0
  45. package/eds-icon-arrow-diagonal.entry-zBfSFnaZ.js +1 -0
  46. package/eds-icon-arrow-right.entry-B01PWxxn.js +1 -0
  47. package/eds-icon-arrow-right.entry-CPfwKb_P.mjs +13 -0
  48. package/eds-icon-bluesky.entry-DKFty2p_.mjs +13 -0
  49. package/{eds-icon-bluesky.entry-BfYrb4Uv.js → eds-icon-bluesky.entry-DbVUYLJG.js} +1 -1
  50. package/eds-icon-chevron-down.entry-YrhsZIQb.js +1 -0
  51. package/eds-icon-chevron-down.entry-dCeiKlud.mjs +13 -0
  52. package/eds-icon-chevron-left.entry-CVk_b9kc.js +1 -0
  53. package/eds-icon-chevron-left.entry-CudVsOqq.mjs +13 -0
  54. package/{eds-icon-chevron-right.entry-YLnmNxjo.mjs → eds-icon-chevron-right.entry-Dg5UFoCU.mjs} +2 -2
  55. package/eds-icon-chevron-right.entry-r7aVtAwm.js +1 -0
  56. package/eds-icon-chevron-up.entry-C-WjO0ys.js +1 -0
  57. package/eds-icon-chevron-up.entry-CEfRA3Cn.mjs +13 -0
  58. package/eds-icon-close.entry-Cec0LlPI.mjs +13 -0
  59. package/{eds-icon-close.entry-BSSS65tZ.js → eds-icon-close.entry-eRRe-idl.js} +1 -1
  60. package/{eds-icon-copy.entry-PvAtojYn.js → eds-icon-copy.entry-B41dL0Pk.js} +1 -1
  61. package/eds-icon-copy.entry-Bv6gVwBn.mjs +13 -0
  62. package/eds-icon-eu.entry-CIYspbep.js +1 -0
  63. package/eds-icon-eu.entry-C_SYaSos.mjs +13 -0
  64. package/{eds-icon-facebook.entry-CKmUhO4W.mjs → eds-icon-facebook.entry-CxuQ9T-z.mjs} +2 -2
  65. package/{eds-icon-facebook.entry-DsPVhA3Z.js → eds-icon-facebook.entry-tLxBj2-p.js} +1 -1
  66. package/{eds-icon-gitlab.entry-D6VEWpO6.mjs → eds-icon-gitlab.entry-B4Y3IL_W.mjs} +2 -2
  67. package/{eds-icon-gitlab.entry-Dzq7ViR-.js → eds-icon-gitlab.entry-Bz32Y093.js} +1 -1
  68. package/{eds-icon-linkedin.entry-7PCeoMEi.js → eds-icon-linkedin.entry-BOJB8PtD.js} +1 -1
  69. package/eds-icon-linkedin.entry-C-OLKK80.mjs +13 -0
  70. package/eds-icon-loader.entry-Cnugn2v_.mjs +13 -0
  71. package/{eds-icon-loader.entry-Bp-ZxeW7.js → eds-icon-loader.entry-OpxpC-qI.js} +1 -1
  72. package/{eds-icon-mastodon.entry-DsU7dMbW.js → eds-icon-mastodon.entry-DYjzOc_S.js} +1 -1
  73. package/eds-icon-mastodon.entry-DfYxTk7y.mjs +13 -0
  74. package/eds-icon-menu.entry-4XLLYwtu.js +1 -0
  75. package/eds-icon-menu.entry-iM24FuKl.mjs +13 -0
  76. package/{eds-icon-more.entry-CqvnBXDu.mjs → eds-icon-more.entry-BIN9jdzF.mjs} +2 -2
  77. package/{eds-icon-more.entry-BOWM2H9H.js → eds-icon-more.entry-BdtfLgCV.js} +1 -1
  78. package/eds-icon-search.entry-CnqQ_vud.mjs +13 -0
  79. package/eds-icon-search.entry-Cw8zssoR.js +1 -0
  80. package/eds-icon-star.entry-BqWtt_VJ.mjs +13 -0
  81. package/eds-icon-star.entry-DhcygAni.js +1 -0
  82. package/{eds-icon-success.entry-CDwqLyts.js → eds-icon-success.entry-59uCWiA1.js} +1 -1
  83. package/eds-icon-success.entry-C0jA8lzW.mjs +13 -0
  84. package/eds-icon-thumbs-down.entry-BNUoStSy.js +1 -0
  85. package/eds-icon-thumbs-down.entry-BOvmhFfL.mjs +13 -0
  86. package/eds-icon-thumbs-up.entry-B5dIuh3_.mjs +13 -0
  87. package/eds-icon-thumbs-up.entry-Bn3MBFif.js +1 -0
  88. package/eds-icon-twitter.entry-CGsi8ynP.js +1 -0
  89. package/eds-icon-twitter.entry-CRA6F5rZ.mjs +13 -0
  90. package/eds-icon-user.entry-BQ64yR1z.js +1 -0
  91. package/eds-icon-user.entry-D-nrmq6-.mjs +13 -0
  92. package/eds-icon-youtube.entry-BCw69oaj.js +1 -0
  93. package/eds-icon-youtube.entry-DTLtxuVC.mjs +13 -0
  94. package/eds-input_7.entry-CSdmlGYi.mjs +7971 -0
  95. package/eds-input_7.entry-DdKDkmAq.js +7766 -0
  96. package/{keycloak-d502ec16-Ce0iGqyk.mjs → eds-login_2.entry-Be8tUQNx.mjs} +288 -210
  97. package/eds-login_2.entry-CiL5geMY.js +9 -0
  98. package/{eds-logo-variations.entry-AbwI_N4g.mjs → eds-logo-variations.entry-CBy11DlE.mjs} +2 -2
  99. package/{eds-logo-variations.entry-B7BEqih8.js → eds-logo-variations.entry-DGWNGIvb.js} +1 -1
  100. package/{eds-modal.entry-2mm8jzwO.mjs → eds-modal.entry-B3qjw7GE.mjs} +16 -4
  101. package/{eds-modal.entry-N0Zu-2yI.js → eds-modal.entry-KkENKOHe.js} +1 -1
  102. package/{eds-pagination_2.entry-T_lnxySd.mjs → eds-pagination_2.entry-B2q_5PRD.mjs} +36 -27
  103. package/eds-pagination_2.entry-BcBkkuEq.js +1 -0
  104. package/{eds-progress-bar.entry-BpqT4TGP.mjs → eds-progress-bar.entry-BWnPK-6o.mjs} +2 -2
  105. package/{eds-progress-bar.entry-C-qHC2dN.js → eds-progress-bar.entry-DMTDcZv8.js} +1 -1
  106. package/eds-rating.entry-CPCGEHHj.js +1 -0
  107. package/eds-rating.entry-CtRb0a5R.mjs +61 -0
  108. package/{eds-section-core_2.entry-BwoSUszo.mjs → eds-section-core_2.entry-BrIavUCN.mjs} +10 -10
  109. package/eds-section-core_2.entry-rRmNlbQR.js +1 -0
  110. package/eds-spinner.entry-BQ7NYZow.js +1 -0
  111. package/eds-spinner.entry-D58XgaXt.mjs +36 -0
  112. package/{eds-svg-repository.entry-BhAWpTfJ.js → eds-svg-repository.entry-B3RrcJof.js} +13 -13
  113. package/{eds-svg-repository.entry-DeKbE1sw.mjs → eds-svg-repository.entry-D1rRUteH.mjs} +78 -71
  114. package/{eds-switch.entry-6C-fiD1f.js → eds-switch.entry-CAzboLuJ.js} +1 -1
  115. package/{eds-switch.entry-LXqTebs4.mjs → eds-switch.entry-CgstZWMb.mjs} +3 -3
  116. package/{eds-input_7.entry-Bo9-yfaP.js → eds-tabs.entry-2CrdvmEM.mjs} +783 -88
  117. package/{eds-input_7.entry-CCX6iGUA.mjs → eds-tabs.entry-CxValIYM.js} +680 -294
  118. package/{eds-link.entry-B_t5O_EC.js → eds-timeline.entry-CFAb5Cd0.js} +535 -64
  119. package/{eds-link.entry-D4lqKj64.mjs → eds-timeline.entry-D9ZihmLu.mjs} +566 -216
  120. package/eds-toast-manager.entry-DNRGmKI4.js +1 -0
  121. package/eds-toast-manager.entry-mR3GXeEW.mjs +36 -0
  122. package/eds-toast.entry-BRfHKFao.js +3 -0
  123. package/eds-toast.entry-ubt1S3Kw.mjs +61 -0
  124. package/{eds-tooltip.entry-D9pRQyxl.js → eds-tooltip.entry-BS9OaOdx.js} +1 -1
  125. package/{eds-tooltip.entry-BSd2vlEo.mjs → eds-tooltip.entry-D0rqB_RZ.mjs} +6 -6
  126. package/eds-trl.entry-CwmhIRgh.mjs +34 -0
  127. package/eds-trl.entry-D_xUUWvL.js +1 -0
  128. package/generated/components.d.ts +4 -3
  129. package/incorrect-use-of-colors.entry-B5KDlGuR.mjs +42 -0
  130. package/incorrect-use-of-colors.entry-_H77f9zg.js +1 -0
  131. package/{index-Df31uHzU.mjs → index-DeCYK9qM.mjs} +379 -383
  132. package/index-QKKBbj1_.js +21 -0
  133. package/index.js +1 -1
  134. package/index.mjs +38 -37
  135. package/{logo-space.entry-q9Uznxi3.js → logo-space.entry-CGNHFbPE.js} +1 -1
  136. package/{logo-space.entry-CChbx8AS.mjs → logo-space.entry-NVMguJha.mjs} +7 -7
  137. package/logo-variations-horizontal_2.entry-CoHmkNBR.mjs +29 -0
  138. package/logo-variations-horizontal_2.entry-CykdymGd.js +7 -0
  139. package/logo-wrong-usage.entry-BozirNNs.mjs +14 -0
  140. package/logo-wrong-usage.entry-DCJHE7Y8.js +1 -0
  141. package/package.json +1 -1
  142. package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
  143. package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
  144. package/star-0da9b5e9-B3-jr0yE.js +3 -0
  145. package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
  146. package/thumbs-down-a18fd049-CzuBAj99.mjs +6 -0
  147. package/thumbs-down-a18fd049-DTNIbYbm.js +3 -0
  148. package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +7 -0
  149. package/thumbs-up-c19a71bc-w8Z8gegt.js +4 -0
  150. package/{token-list_3.entry-B4bQ3_yz.js → token-list_3.entry-D8dKORAJ.js} +1 -1
  151. package/{token-list_3.entry-CJXI55T0.mjs → token-list_3.entry-uSQm6z8I.mjs} +4 -4
  152. package/{token-ratios.entry-LNQoHORe.mjs → token-ratios.entry-BiuicosE.mjs} +2 -2
  153. package/token-ratios.entry-CaKfU99x.js +1 -0
  154. package/token-spacing.entry-B9inIBOK.mjs +12 -0
  155. package/token-spacing.entry-BV0NaRVV.js +1 -0
  156. package/{token-typography.entry-DddK_fiy.js → token-typography.entry-Dn6NRvAR.js} +1 -1
  157. package/{token-typography.entry-qTyV0EeH.mjs → token-typography.entry-sTlt7Bpz.mjs} +2 -2
  158. package/color-primary-palette_6.entry-CYSEDId9.js +0 -1
  159. package/correct-use-of-colors.entry-B36yaMb6.js +0 -1
  160. package/correct-use-of-colors.entry-C2K5ii07.mjs +0 -59
  161. package/eds-accordion_13.entry-BwXBZQ7p.mjs +0 -8044
  162. package/eds-accordion_13.entry-DuX3jvBd.js +0 -7375
  163. package/eds-block-break.entry-1HfuhJmn.mjs +0 -13
  164. package/eds-block-break.entry-DQDjLThR.js +0 -1
  165. package/eds-breadcrumb.entry-Oe7Iu_rp.js +0 -1
  166. package/eds-card-project.entry-BQKGTSJB.js +0 -1
  167. package/eds-card-tags.entry-BjvxuQg1.mjs +0 -13
  168. package/eds-card-tags.entry-DAkoUUin.js +0 -1
  169. package/eds-components-section.entry-BsmIIcun.js +0 -141
  170. package/eds-dropdown_2.entry-Dhtc1LQe.js +0 -1
  171. package/eds-dropdown_2.entry-Ds54Abix.mjs +0 -115
  172. package/eds-footer.entry-CKr0MOpU.mjs +0 -22
  173. package/eds-footer.entry-DuNEl6BR.js +0 -1
  174. package/eds-form.entry-gO7sMMVG.js +0 -7153
  175. package/eds-form.entry-znKH1sqi.mjs +0 -7340
  176. package/eds-frame.entry-BE9_G-56.js +0 -1
  177. package/eds-frame.entry-COwMtc5z.mjs +0 -74
  178. package/eds-fullscreen-menu.entry-CRIb_lLm.js +0 -1
  179. package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +0 -74
  180. package/eds-header.entry-38uAVZoC.js +0 -2
  181. package/eds-header.entry-C0qfjzDY.mjs +0 -75
  182. package/eds-icon-arrow-diagonal.entry-BTLKc1cS.js +0 -1
  183. package/eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs +0 -13
  184. package/eds-icon-arrow-right.entry-Bv_6skZy.js +0 -1
  185. package/eds-icon-arrow-right.entry-DNkmpAdY.mjs +0 -13
  186. package/eds-icon-bluesky.entry-B_WksyEk.mjs +0 -13
  187. package/eds-icon-chevron-down.entry-DGjMxTKO.mjs +0 -13
  188. package/eds-icon-chevron-down.entry-OPmfChgp.js +0 -1
  189. package/eds-icon-chevron-left.entry-CRr4AWkS.mjs +0 -13
  190. package/eds-icon-chevron-left.entry-_zMMz-c9.js +0 -1
  191. package/eds-icon-chevron-right.entry-0FshDV46.js +0 -1
  192. package/eds-icon-chevron-up.entry-DGt49ffi.js +0 -1
  193. package/eds-icon-chevron-up.entry-NPODej6j.mjs +0 -13
  194. package/eds-icon-close.entry-BQULA4ki.mjs +0 -13
  195. package/eds-icon-copy.entry-Di_H0U8v.mjs +0 -13
  196. package/eds-icon-eu.entry-BTzpJByN.mjs +0 -13
  197. package/eds-icon-eu.entry-D77vjTJ9.js +0 -1
  198. package/eds-icon-linkedin.entry-BI2sjTDa.mjs +0 -13
  199. package/eds-icon-loader.entry-BoQTR6PV.mjs +0 -13
  200. package/eds-icon-mastodon.entry-Cm8XCAqa.mjs +0 -13
  201. package/eds-icon-menu.entry-C7HmF2n5.mjs +0 -13
  202. package/eds-icon-menu.entry-DRd13IcH.js +0 -1
  203. package/eds-icon-search.entry-BrANR30M.mjs +0 -13
  204. package/eds-icon-search.entry-CubLvPO7.js +0 -1
  205. package/eds-icon-success.entry-CtMWWFTW.mjs +0 -13
  206. package/eds-icon-twitter.entry-BnhBJxrn.js +0 -1
  207. package/eds-icon-twitter.entry-DHTwTPKu.mjs +0 -13
  208. package/eds-icon-user.entry-GYJBVLsU.js +0 -1
  209. package/eds-icon-user.entry-LTXtb_m4.mjs +0 -13
  210. package/eds-icon-youtube.entry-BluzizaX.js +0 -1
  211. package/eds-icon-youtube.entry-BqP_g-Pb.mjs +0 -13
  212. package/eds-login.entry-CB_gy86p.mjs +0 -58
  213. package/eds-login.entry-CDj80EGl.js +0 -1
  214. package/eds-logo.entry-C4YV268f.mjs +0 -61
  215. package/eds-logo.entry-D-2GjdZl.js +0 -1
  216. package/eds-navigator.entry-Bd0BYBJE.js +0 -1
  217. package/eds-navigator.entry-DJHFUppb.mjs +0 -33
  218. package/eds-pagination_2.entry-N7stHjY-.js +0 -1
  219. package/eds-rating.entry-C1djorgY.js +0 -1
  220. package/eds-rating.entry-DJbkld-l.mjs +0 -48
  221. package/eds-section-core_2.entry-JyCa51Zs.js +0 -1
  222. package/eds-social-networks.entry-CWw8CODU.mjs +0 -50
  223. package/eds-social-networks.entry-CveQgGlC.js +0 -1
  224. package/eds-steps.entry-NC8mexCJ.js +0 -1
  225. package/eds-steps.entry-gPHX8t5y.mjs +0 -37
  226. package/eds-tab.entry-7_C7zAnd.mjs +0 -31
  227. package/eds-tab.entry-BI3X5Amp.js +0 -1
  228. package/eds-tabs-content.entry-BYK_ciTB.mjs +0 -106
  229. package/eds-tabs-content.entry-FqonRXn9.js +0 -1
  230. package/eds-tabs.entry-CCGBUoii.mjs +0 -112
  231. package/eds-tabs.entry-VauMxz1h.js +0 -1
  232. package/eds-timeline.entry-B-eABvy-.mjs +0 -51
  233. package/eds-timeline.entry-UjKckHoD.js +0 -1
  234. package/eds-trl.entry-C1CKXjzi.mjs +0 -34
  235. package/eds-trl.entry-DdPaX9aY.js +0 -1
  236. package/eds-user.entry-BX3nKCHB.mjs +0 -66
  237. package/eds-user.entry-CyEG-Wtm.js +0 -1
  238. package/eds-vertical-stepper.entry-CdmDXaW2.mjs +0 -27
  239. package/eds-vertical-stepper.entry-DphlSSa0.js +0 -1
  240. package/incorrect-use-of-colors.entry-BhygRTdu.js +0 -1
  241. package/incorrect-use-of-colors.entry-QkMrxvFS.mjs +0 -42
  242. package/index-DvG3cC-8.js +0 -21
  243. package/keycloak-d502ec16-m7LwS-Gh.js +0 -9
  244. package/logo-variations-horizontal_2.entry-DA_yMnFa.mjs +0 -29
  245. package/logo-variations-horizontal_2.entry-G3ih093R.js +0 -7
  246. package/logo-wrong-usage.entry-BoBmwzLl.mjs +0 -14
  247. package/logo-wrong-usage.entry-l4pJC0KB.js +0 -1
  248. package/token-ratios.entry-hdef-MAq.js +0 -1
  249. package/token-spacing.entry-YXQwnYx0.mjs +0 -12
  250. package/token-spacing.entry-xhNHm9Tw.js +0 -1
@@ -1,13 +0,0 @@
1
- import { r as e, h as o } from "./index-Df31uHzU.mjs";
2
- const l = ".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}", s = l, t = class {
3
- constructor(r) {
4
- e(this, r), this.extraClass = "";
5
- }
6
- render() {
7
- return o("hr", { key: "8cb39dda5d7f909b459390fe7e3f86dfd147ba98", class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
8
- }
9
- };
10
- t.style = s;
11
- export {
12
- t as eds_block_break
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),l=".border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-softest{border-color:rgba(0, 0, 0, .05)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.w-full{width:100%}.border-t-2{border-top-width:2px}",t=l,r=class{constructor(o){e.registerInstance(this,o),this.extraClass=""}render(){return e.h("hr",{key:"8cb39dda5d7f909b459390fe7e3f86dfd147ba98",class:`border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}`})}};r.style=t;exports.eds_block_break=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-DvG3cC-8.js"),d="blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.hidden{display:none}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.125rem * var(--tw-space-x-reverse));margin-left:calc(0.125rem * calc(1 - var(--tw-space-x-reverse)))}.px-2{padding-left:0.125rem;padding-right:0.125rem}.w-20{width:1.25rem}.w-28{width:1.75rem}.w-32{width:2rem}.w-44{width:2.75rem}.h-20{height:1.25rem}.h-24{height:1.5rem}.h-28{height:1.75rem}.h-32{height:2rem}@media (min-width: 750px){.md\\:block{display:block}}",c=d,a=class{constructor(e){s.registerInstance(this,e),this.updateScreenSize=()=>{const t=window.innerWidth;t<769?(this.maxVisibleItems=3,this.isSmallScreen=!0):t<=1024?(this.maxVisibleItems=4,this.isSmallScreen=!0):(this.maxVisibleItems=6,this.isSmallScreen=!1)},this.items=[],this.intent="ghost",this.parsedItems=[],this.isSmallScreen=!1,this.maxVisibleItems=6}parseItems(e){if(typeof e=="string")try{const t=JSON.parse(e);this.parsedItems=Array.isArray(t)?t:[]}catch{this.parsedItems=[]}else Array.isArray(e)?this.parsedItems=e:this.parsedItems=[]}componentWillLoad(){this.parseItems(this.items),this.updateScreenSize(),window.addEventListener("resize",this.updateScreenSize)}disconnectedCallback(){window.removeEventListener("resize",this.updateScreenSize)}componentDidLoad(){var e;const t=(e=this.el.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("eds-link");t==null||t.forEach(r=>{this.emitContext(r)})}emitContext(e){const t=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});e.dispatchEvent(t)}getTruncatedItems(){const e=this.parsedItems.length,t={label:"...",url:"",isHidden:!0};if(e>this.maxVisibleItems){const r=this.parsedItems[0],i=this.parsedItems.slice(-2);if(this.maxVisibleItems===3)return[r,t,...i];if(this.maxVisibleItems===4){const l=this.parsedItems[Math.floor(e/2)];return[r,l,t,...i]}}return this.parsedItems}getLabels(e,t){return!t&&e.label.length>15?{displayLabel:`${e.label.slice(0,15)}...`,fullLabel:e.label}:{displayLabel:e.label,fullLabel:e.label}}render(){const e=this.getTruncatedItems();return s.h("nav",{key:"d177957e1b3218c21991bbdc9636a8e32befe990","aria-label":"Breadcrumb"},s.h("ol",{key:"d10336ddee99b9fb84d17e53093c57c6a025982f",class:"flex items-center space-x-2"},e.map((t,r)=>{const i=r===e.length-1;return s.h("li",{class:"flex items-center"},t.isHidden?s.h("span",{class:"truncate px-2","aria-hidden":"true"},"..."):(()=>{const{displayLabel:l,fullLabel:n}=this.getLabels(t,i);return s.h("eds-link",Object.assign({label:l,url:t.url,intent:this.intent,current:i,"aria-label":n,size:"small","icon-small":"false"},i?{"aria-current":"page"}:{}))})(),!i&&!t.isHidden&&s.h("eds-icon-wrapper",{icon:"chevron-right",class:"w-20 h-20"}))})))}get el(){return s.getElement(this)}static get watchers(){return{items:["parseItems"]}}};a.style=c;exports.eds_breadcrumb=a;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),r=require("./analytics-44b1416b-ol77SdQE.js"),d=require("./color-2554aad6-D1hFGX4H.js"),l=class{constructor(t){e.registerInstance(this,t),this.image=void 0,this.editorialTitle=void 0,this.headingLevel="h3",this.categoryTitle=void 0,this.color=void 0,this.bgOnHover=!1,this.vertical=!1,this.titleProject=void 0,this.url=void 0,this.parsedImage=null}componentWillLoad(){if(this.image)try{this.parsedImage=JSON.parse(this.image)}catch{}}handleClick(t){var i;t.preventDefault(),r.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:((i=this.titleProject)===null||i===void 0?void 0:i.toLowerCase())||"",action:"click"})}render(){var t;const i=["min-h-156 border-inside after:border-softest @container overflow-hidden border-0 after:rounded-lg",this.color?d.gradientBGColorVariants({color:this.color,hover:this.bgOnHover,class:"before:border-2 before:rounded-lg before:border-softest"}):"bg-default",this.bgOnHover&&this.color?"effect-background bg-default focus-within:bg-transparent hover:bg-transparent":"effect-background hover:bg-default",this.vertical?"flex-col gap-y-16":"flex-col gap-x-16 gap-y-12 lg:flex-row"].join(" "),a=this.vertical?"":"max-w-120 @md:max-w-192 order-first w-full lg:order-last";return e.h("article",{key:"98c5dbd033ec05d08965559e00f32d9fe18698ef",class:i,onClick:s=>this.handleClick(s)},e.h("div",{key:"e083c43e38c3c24fcd996a90267f7cd92d3651b3",class:`flex grow flex-col ${this.vertical?"min-h-156":""}`},e.h("div",{key:"37de1e46023b533fd8595a3077c4e68c11fb01af",class:"lg:max-w-[720px]"},e.h("eds-card-title",{key:"ee31ae2804d2c17c82e8f4c0c3269ac8254331df","heading-level":this.headingLevel,titleClass:this.image?"f-ui-01":void 0,"card-title":this.titleProject,url:this.url}),this.editorialTitle&&e.h("span",{key:"c6f74ba9b5b522f713e25d3339f541efa68cdddd",class:`block ${this.vertical?"f-ui-02":"mt-4 f-heading-06"}`},this.editorialTitle)),this.categoryTitle&&e.h("div",{key:"ab18e55046777cf4a4f58ebd057641db9b9e0328",class:"mt-auto flex items-center gap-x-12 pt-12"},((t=this.categoryTitle)===null||t===void 0?void 0:t.length)&&e.h("eds-tag",{key:"3714ee86a74dce7f33a8f953fd726db349ba9271",label:this.categoryTitle}))),this.parsedImage&&e.h("div",{key:"2818d15f7ab671b7b2dfb34ec3085b390150f38d",class:a},e.h("div",{key:"5166feef3674631298f699449b956655f38f0db9",class:"aspect-1x1 w-full"},e.h("eds-img",Object.assign({key:"86555a43491da5b2aa3b287e539e603a2c2adaf3",sizes:this.vertical?this.parsedImage.sizes||"":"192px"},this.parsedImage)))))}get el(){return e.getElement(this)}};exports.eds_card_project=l;
@@ -1,13 +0,0 @@
1
- import { r as t, h as s } from "./index-Df31uHzU.mjs";
2
- const r = ".flex{display:flex}.flex-wrap{flex-wrap:wrap}.gap-y-4{row-gap:0.25rem}", c = r, l = class {
3
- constructor(a) {
4
- t(this, a), this.accent = !1, this.tags = [];
5
- }
6
- render() {
7
- return s("div", { key: "272d53abb9be9086881cb2f8e99f7fb7aae1bb59", class: "flex flex-wrap gap-y-4" }, this.tags.map((a, e) => s("eds-tag", { key: e, intent: this.accent ? "accent" : "default", label: a })));
8
- }
9
- };
10
- l.style = c;
11
- export {
12
- l as eds_card_tags
13
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-DvG3cC-8.js"),r=".flex{display:flex}.flex-wrap{flex-wrap:wrap}.gap-y-4{row-gap:0.25rem}",c=r,s=class{constructor(e){a.registerInstance(this,e),this.accent=!1,this.tags=[]}render(){return a.h("div",{key:"272d53abb9be9086881cb2f8e99f7fb7aae1bb59",class:"flex flex-wrap gap-y-4"},this.tags.map((e,t)=>a.h("eds-tag",{key:t,intent:this.accent?"accent":"default",label:e})))}};s.style=c;exports.eds_card_tags=s;
@@ -1,141 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("p",null,"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the"," ",e.h("code",null,"head"),"."),e.h("eds-code-block",{code:`<script type='module'>
2
- import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
3
- // Define custom elements
4
- defineCustomElements(window);
5
- <\/script>`,language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("div",{class:"my-4"},e.h("eds-alert",{message:"Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.",intent:"warning"})),e.h("h2",null,"Load the fonts"),e.h("p",null,"To load the webfonts, add the tag below to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"}),e.h("h2",null,"Component Usage"),e.h("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e.h("eds-code-block",{code:`<eds-button
6
- label="my bytton"
7
- intent="primary">
8
- </eds-button>`,language:"html","copy-label":"Copy Code"})),a=()=>e.h("div",null,e.h("p",null,"Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/assets",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"html","copy-label":"Copy Code"}))),s=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"Learn how to use our components in a React Application.Simple install the package below and check out the examples"),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"})),e.h("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e.h("eds-code-block",{code:`
9
- import {
10
- EdsHeader,
11
- EdsFullscreenMenu,
12
- EdsUser
13
- } from "@ebrains/react";
14
-
15
- interface User {
16
- firstname: string;
17
- lastname: string;
18
- // Add any other properties your user object might have
19
- }
20
-
21
- interface AuthStatus {
22
- authenticated: boolean;
23
- user: User | null;
24
- }
25
-
26
- import { useEffect, useState } from "react";
27
-
28
- export function App() {
29
- const [authStatus, setAuthStatus] = useState<AuthStatus>({
30
- authenticated: false,
31
- user: null,
32
- });
33
- const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
34
-
35
- // Use useEffect to render Stencil components dynamically after the component mounts
36
- useEffect(() => {
37
- const handleAuthStatusChange = (event: CustomEvent) => {
38
- console.log(event.detail);
39
- setAuthStatus(event.detail); // Set the entire object
40
- };
41
-
42
- document.addEventListener(
43
- "authStatusChanged",
44
- handleAuthStatusChange as EventListener,
45
- );
46
-
47
- return () => {
48
- document.removeEventListener(
49
- "authStatusChanged",
50
- handleAuthStatusChange as EventListener,
51
- );
52
- };
53
- }, []);
54
-
55
- return (
56
- <div>
57
- <EdsHeader
58
- homeUrl="/"
59
- menuEnabled={true}
60
- inverseHeader={false}
61
- links={[
62
- { label: "About", url: "#" },
63
- { label: "Focus Areas", url: "#" },
64
- { label: "News & Events", url: "#" },
65
- { label: "Contact", url: "#" }
66
- ]}
67
- >
68
- <div className="px-16">
69
- <EdsUser
70
- keycloak-url="http://localhost:8080"
71
- keycloak-realm="nigeor-realm"
72
- keycloak-client-id="stencil-app"
73
- ></EdsUser>
74
- </div>
75
- </EdsHeader>
76
-
77
- <EdsFullscreenMenu
78
- home-url="/"
79
- links={[
80
- { label: "About", url: "#" },
81
- { label: "Focus Areas", url: "#" },
82
- { label: "News & Events", url: "#" },
83
- { label: "Contact", url: "#" }
84
- ]}
85
- ></EdsFullscreenMenu>
86
-
87
- <div>
88
- User is{" "}
89
- {authStatus.authenticated ? "authenticated" : "not authenticated"}
90
- </div>
91
- {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
92
-
93
- <div id="main"></div>
94
- </div>
95
- );
96
- }
97
-
98
- export default App;
99
-
100
- `,language:"javascript","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"Learn how to use our components in a Vue Application."),e.h("p",null,"Simply install the latest version of our NPM package."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,'Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your "main.ts" file.'),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
101
- defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Passing Properties to Custom Elements Using the ",e.h("b",null,".prop")," Modifier in Vue Wrappers"),e.h("p",null,"When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),e.h("h3",null,"How to Use the ",e.h("b",null,".prop")," Modifier"),e.h("p",null,"When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),e.h("div",{class:"mt-8"},e.h("eds-alert",{message:"This may lead to issues because Vue binds these as attributes .",intent:"error"})),e.h("eds-code-block",{code:`<EdsAlert
102
- message="This is a default informational alert."
103
- intent="default"
104
- :pressableLabel="Press Me"
105
- :pressableUrl="https://ebrains.eu"
106
- ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"mt-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"success"})),e.h("eds-code-block",{code:`<EdsAlert
107
- message="This is a default informational alert."
108
- intent="default"
109
- :pressableLabel.prop="Press Me"
110
- :pressableUrl.prop="https://ebrains.eu"
111
- ></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Using the ",e.h("b",null,".prop")," modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),e.h("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e.h("eds-code-block",{code:`
112
- <template>
113
- <EdsHeader
114
- :inverseHeader.prop="true"
115
- :menuEnabled.prop="true">
116
- </EdsHeader>
117
- </template>
118
-
119
- <script>
120
-
121
- import { EdsHeader } from "@ebrains/vue";
122
-
123
- export default {
124
- name: "App",
125
- components: {
126
- EdsHeader,
127
- }
128
- };
129
- <\/script>
130
- `,language:"javascript","copy-label":"Copy Code"}))),l=()=>e.h("div",null,e.h("h2",null,"Angular Wrappers"),e.h("p",null,"Learn how to use our components in a Angular Application."),e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Define the custom elements"),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
131
- defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Angular Custom Elements Schema"),e.h("eds-code-block",{code:'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";',language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example Angular App","heading-level":"h3"},e.h("eds-code-block",{code:`
132
- <div class="container">
133
- <eds-breadcrumb
134
- intent="tertiary"
135
- items="[
136
- { "label": "Home", "url": "#" },
137
- { "label": "Products", "url": "#" },
138
- ]">
139
- </eds-breadcrumb>
140
- <eds-footer></eds-footer>
141
- </div>`,language:"javascript","copy-label":"Copy Code"}))),r=class{constructor(n){e.registerInstance(this,n),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h(t,null);case 1:return e.h(a,null);case 2:return e.h(s,null);case 3:return e.h(o,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"7e582a0eeafc2687229454532b5a7f66f91c1856",class:"container"},this.renderContent())}};exports.eds_components_section=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-DvG3cC-8.js"),l=require("./analytics-44b1416b-ol77SdQE.js"),h=".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-shadow:0px 1.5px 2px rgba(0, 0, 0, 0.1);--tw-shadow-colored:0px 1.5px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-inverse{background-color:var(--white)}.border-softest{border:2px solid rgba(0, 0, 0, .05)}.z-10{z-index:10}.z-on-top{z-index:99999}.absolute{position:absolute}.top-full{top:100%}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.gap-y-4{row-gap:0.25rem}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.left-0{left:0rem}.left-1\\/2{left:50%}.left-4{left:0.25rem}.left-\\[4px\\]{left:4px}.right-0{right:0rem}.right-4{right:0.25rem}.right-8{right:0.5rem}",c=h,n=class{constructor(e){s.registerInstance(this,e),this.focusableItems=[],this.handleClick=()=>{var t;this.isOpen=!this.isOpen,this.isOpen?(this.focusIndex=0,this.focusItem()):this.closeDropdown(),l.sendAnalytics({category:"ui-component",parentContext:null,tag:this.host.tagName.toLowerCase(),name:((t=this.label)===null||t===void 0?void 0:t.toLowerCase())||"",action:this.isOpen?"expanded":"collapsed"})},this.icon="chevron-down",this.label=void 0,this.rounded=!1,this.ariaLabel="Open dropdown",this.asNav=!0,this.dropdownPos="left",this.dropdownOffset=!0,this.intent="tertiary",this.isOpen=!1,this.focusIndex=-1}handleWindowClick(e){this.host.contains(e.target)||this.closeDropdown()}handleKeyDown(e){if(this.isOpen)switch(e.key){case"Tab":this.closeDropdown();break;case"ArrowUp":e.preventDefault(),this.focusIndex=(this.focusIndex-1+this.focusableItems.length)%this.focusableItems.length,this.focusItem();break;case"ArrowDown":e.preventDefault(),this.focusIndex=(this.focusIndex+1)%this.focusableItems.length,this.focusItem();break}}closeDropdown(){this.isOpen=!1,this.focusIndex=-1}focusItem(){var e;(e=this.focusableItems[this.focusIndex])===null||e===void 0||e.focus()}componentDidLoad(){var e;this.focusableItems=Array.from(((e=this.dropdownContent)===null||e===void 0?void 0:e.querySelectorAll("a, button"))||[])}render(){return s.h("div",{key:"84f4cea78ea1c40c7897a356fe03ac83922fccb8",class:"z-focus relative",ref:e=>this.dropdownContent=e},s.h("eds-button",{key:"99dc51632dc82830054502a2d6d77d9fcefe9337",label:this.label,"aria-label":this.ariaLabel,icon:this.icon,intent:this.intent,onClick:this.handleClick,"aria-expanded":this.isOpen.toString(),"aria-haspopup":"menu"}),s.h("nav",{key:"a63613a7ecf709fd1d22d77da4b2d286905fef3e",role:"menu",class:{"shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8":!0,"left-4":this.dropdownPos==="left"&&this.dropdownOffset,"left-0":this.dropdownPos==="left"&&!this.dropdownOffset,"right-4":this.dropdownPos==="right"&&this.dropdownOffset,"right-0":this.dropdownPos==="right"&&!this.dropdownOffset,"rounded-lg":this.rounded},style:{display:this.isOpen?"block":"none"},"aria-label":"Dropdown","aria-hidden":!this.isOpen},s.h("slot",{key:"dda70b865ed03dc7ad36a32934587bbcb0a16c1b"})))}get host(){return s.getElement(this)}};n.style=c;const f=class{constructor(e){s.registerInstance(this,e),this.user=void 0,this.links=void 0,this.onLogout=void 0,this.parsedUser={},this.parsedLinks=[]}parseUserProp(e){this.parsedUser=typeof e=="string"?JSON.parse(e):e}parseLinksProp(e){this.parsedLinks=typeof e=="string"?JSON.parse(e):e}componentWillLoad(){this.parseUserProp(this.user),this.parseLinksProp(this.links)}get initials(){var e,t,i,o,a,r,d;return`${((t=(e=this.parsedUser)===null||e===void 0?void 0:e.firstname)===null||t===void 0?void 0:t.charAt(0))||""}${((o=(i=this.parsedUser)===null||i===void 0?void 0:i.lastname)===null||o===void 0?void 0:o.charAt(0))||""}`.toUpperCase()||((d=(r=(a=this.parsedUser)===null||a===void 0?void 0:a.fullname)===null||r===void 0?void 0:r.charAt(0))===null||d===void 0?void 0:d.toUpperCase())||""}get hasLogout(){return typeof this.onLogout=="function"}render(){var e,t,i,o,a;return s.h("div",{key:"866e4e08b5a5330d341845c7cd68f18845732bb6",class:"min-w-[280px] p-8"},s.h("div",{key:"c3c0c56a0ba0bb035efbc474dacc69454f2f9831",class:"flex gap-x-16 pb-16 border-b-2 border-softer"},s.h("eds-avatar",{key:"053e545eb7b8f66b9b9463f77ac89083b2bc87a4","first-name":(e=this.parsedUser)===null||e===void 0?void 0:e.firstname,"last-name":(t=this.parsedUser)===null||t===void 0?void 0:t.lastname,initials:this.initials,color:"grey",rounded:!0,"initials-strong":!0}),s.h("div",{key:"c2d3a51f5aa92dda20058b51aaab3405a85dfbc0",class:"max-w-full"},((i=this.parsedUser)===null||i===void 0?void 0:i.fullname)&&s.h("p",{key:"fcc11680037eb282316cfde3988beb7550a51059",class:"f-ui-01 text-default w-full text-ellipsis"},this.parsedUser.fullname),((o=this.parsedUser)===null||o===void 0?void 0:o.username)&&s.h("p",{key:"2f6aac63baecb3da750f3eb9a09f8793120d8977",class:"f-ui-03-light text-light mt-4"},this.parsedUser.username),((a=this.parsedUser)===null||a===void 0?void 0:a.email)&&s.h("p",{key:"04f3cf2dab10351bc52c94f53c6e9b75d3d34fe7",class:"f-ui-03-light text-light mt-4"},this.parsedUser.email))),s.h("div",{key:"b5bb3171c338891669251b8cde0cdbc810562065",class:"text-default mt-16 flex w-full flex-col gap-y-8"},s.h("div",{key:"7020f1d94ad9ed10d8b1e1fce88837c70ef310b8",class:"border-softer mb-10 border-b-2 pb-16"},s.h("eds-link",{key:"26946fa26bd53953e99f2f61b4d9f47e60f5dc6f",label:"My EBRAINS","aria-label":"My EBRAINS",url:"https://www.ebrains.eu/dashboard",intent:"primary","extra-class":"w-full",external:!0})),s.h("eds-link",{key:1,label:"Account Settings",url:"https://iam.ebrains.eu/auth/realms/hbp/account/",intent:"secondary",icon:"arrow-diagonal",external:!0,"extra-class":"w-full"}),this.hasLogout&&s.h("eds-link",{key:"e53f2b7588fea91fd16c0effe81609e1ded97304",label:"Sign out",intent:"tertiary","extra-class":"w-full justify-center",onClick:()=>this.onLogout&&this.onLogout()})))}static get watchers(){return{user:["parseUserProp"],links:["parseLinksProp"]}}};exports.eds_dropdown=n;exports.eds_user_modal=f;
@@ -1,115 +0,0 @@
1
- import { r as l, h as s, g as n } from "./index-Df31uHzU.mjs";
2
- import { s as c } from "./analytics-44b1416b-3vYuu4Xs.mjs";
3
- const f = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-shadow:0px 1.5px 2px rgba(0, 0, 0, 0.1);--tw-shadow-colored:0px 1.5px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-inverse{background-color:var(--white)}.border-softest{border:2px solid rgba(0, 0, 0, .05)}.z-10{z-index:10}.z-on-top{z-index:99999}.absolute{position:absolute}.top-full{top:100%}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.gap-y-4{row-gap:0.25rem}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.left-0{left:0rem}.left-1\\/2{left:50%}.left-4{left:0.25rem}.left-\\[4px\\]{left:4px}.right-0{right:0rem}.right-4{right:0.25rem}.right-8{right:0.5rem}", h = f, p = class {
4
- constructor(e) {
5
- l(this, e), this.focusableItems = [], this.handleClick = () => {
6
- var t;
7
- this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), c({
8
- category: "ui-component",
9
- parentContext: null,
10
- tag: this.host.tagName.toLowerCase(),
11
- name: ((t = this.label) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
12
- action: this.isOpen ? "expanded" : "collapsed"
13
- });
14
- }, this.icon = "chevron-down", this.label = void 0, this.rounded = !1, this.ariaLabel = "Open dropdown", this.asNav = !0, this.dropdownPos = "left", this.dropdownOffset = !0, this.intent = "tertiary", this.isOpen = !1, this.focusIndex = -1;
15
- }
16
- /**
17
- * Closes the dropdown when a click occurs outside of it.
18
- * @param {Event} e - The click event.
19
- */
20
- handleWindowClick(e) {
21
- this.host.contains(e.target) || this.closeDropdown();
22
- }
23
- /**
24
- * Handles keyboard navigation and accessibility within the dropdown.
25
- * @param {KeyboardEvent} event - The keyboard event.
26
- */
27
- handleKeyDown(e) {
28
- if (this.isOpen)
29
- switch (e.key) {
30
- case "Tab":
31
- this.closeDropdown();
32
- break;
33
- case "ArrowUp":
34
- e.preventDefault(), this.focusIndex = (this.focusIndex - 1 + this.focusableItems.length) % this.focusableItems.length, this.focusItem();
35
- break;
36
- case "ArrowDown":
37
- e.preventDefault(), this.focusIndex = (this.focusIndex + 1) % this.focusableItems.length, this.focusItem();
38
- break;
39
- }
40
- }
41
- /**
42
- * Closes the dropdown and resets focus.
43
- */
44
- closeDropdown() {
45
- this.isOpen = !1, this.focusIndex = -1;
46
- }
47
- /**
48
- * Sets focus on the currently selected item in the dropdown.
49
- */
50
- focusItem() {
51
- var e;
52
- (e = this.focusableItems[this.focusIndex]) === null || e === void 0 || e.focus();
53
- }
54
- /**
55
- * Lifecycle method that runs after the component has been added to the DOM.
56
- * Initializes focusable items within the dropdown.
57
- */
58
- componentDidLoad() {
59
- var e;
60
- this.focusableItems = Array.from(((e = this.dropdownContent) === null || e === void 0 ? void 0 : e.querySelectorAll("a, button")) || []);
61
- }
62
- /**
63
- * Renders the dropdown component and displays its content when open.
64
- * @returns {JSX.Element} The rendered dropdown component.
65
- */
66
- render() {
67
- return s("div", { key: "84f4cea78ea1c40c7897a356fe03ac83922fccb8", class: "z-focus relative", ref: (e) => this.dropdownContent = e }, s("eds-button", { key: "99dc51632dc82830054502a2d6d77d9fcefe9337", label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), s("nav", { key: "a63613a7ecf709fd1d22d77da4b2d286905fef3e", role: "menu", class: {
68
- "shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8": !0,
69
- "left-4": this.dropdownPos === "left" && this.dropdownOffset,
70
- "left-0": this.dropdownPos === "left" && !this.dropdownOffset,
71
- "right-4": this.dropdownPos === "right" && this.dropdownOffset,
72
- "right-0": this.dropdownPos === "right" && !this.dropdownOffset,
73
- "rounded-lg": this.rounded
74
- }, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, s("slot", { key: "dda70b865ed03dc7ad36a32934587bbcb0a16c1b" })));
75
- }
76
- get host() {
77
- return n(this);
78
- }
79
- };
80
- p.style = h;
81
- const g = class {
82
- constructor(e) {
83
- l(this, e), this.user = void 0, this.links = void 0, this.onLogout = void 0, this.parsedUser = {}, this.parsedLinks = [];
84
- }
85
- parseUserProp(e) {
86
- this.parsedUser = typeof e == "string" ? JSON.parse(e) : e;
87
- }
88
- parseLinksProp(e) {
89
- this.parsedLinks = typeof e == "string" ? JSON.parse(e) : e;
90
- }
91
- componentWillLoad() {
92
- this.parseUserProp(this.user), this.parseLinksProp(this.links);
93
- }
94
- get initials() {
95
- var e, t, i, o, a, r, d;
96
- return `${((t = (e = this.parsedUser) === null || e === void 0 ? void 0 : e.firstname) === null || t === void 0 ? void 0 : t.charAt(0)) || ""}${((o = (i = this.parsedUser) === null || i === void 0 ? void 0 : i.lastname) === null || o === void 0 ? void 0 : o.charAt(0)) || ""}`.toUpperCase() || ((d = (r = (a = this.parsedUser) === null || a === void 0 ? void 0 : a.fullname) === null || r === void 0 ? void 0 : r.charAt(0)) === null || d === void 0 ? void 0 : d.toUpperCase()) || "";
97
- }
98
- get hasLogout() {
99
- return typeof this.onLogout == "function";
100
- }
101
- render() {
102
- var e, t, i, o, a;
103
- return s("div", { key: "866e4e08b5a5330d341845c7cd68f18845732bb6", class: "min-w-[280px] p-8" }, s("div", { key: "c3c0c56a0ba0bb035efbc474dacc69454f2f9831", class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, s("eds-avatar", { key: "053e545eb7b8f66b9b9463f77ac89083b2bc87a4", "first-name": (e = this.parsedUser) === null || e === void 0 ? void 0 : e.firstname, "last-name": (t = this.parsedUser) === null || t === void 0 ? void 0 : t.lastname, initials: this.initials, color: "grey", rounded: !0, "initials-strong": !0 }), s("div", { key: "c2d3a51f5aa92dda20058b51aaab3405a85dfbc0", class: "max-w-full" }, ((i = this.parsedUser) === null || i === void 0 ? void 0 : i.fullname) && s("p", { key: "fcc11680037eb282316cfde3988beb7550a51059", class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname), ((o = this.parsedUser) === null || o === void 0 ? void 0 : o.username) && s("p", { key: "2f6aac63baecb3da750f3eb9a09f8793120d8977", class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((a = this.parsedUser) === null || a === void 0 ? void 0 : a.email) && s("p", { key: "04f3cf2dab10351bc52c94f53c6e9b75d3d34fe7", class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), s("div", { key: "b5bb3171c338891669251b8cde0cdbc810562065", class: "text-default mt-16 flex w-full flex-col gap-y-8" }, s("div", { key: "7020f1d94ad9ed10d8b1e1fce88837c70ef310b8", class: "border-softer mb-10 border-b-2 pb-16" }, s("eds-link", { key: "26946fa26bd53953e99f2f61b4d9f47e60f5dc6f", label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: !0 })), s("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: !0, "extra-class": "w-full" }), this.hasLogout && s("eds-link", { key: "e53f2b7588fea91fd16c0effe81609e1ded97304", label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })));
104
- }
105
- static get watchers() {
106
- return {
107
- user: ["parseUserProp"],
108
- links: ["parseLinksProp"]
109
- };
110
- }
111
- };
112
- export {
113
- p as eds_dropdown,
114
- g as eds_user_modal
115
- };
@@ -1,22 +0,0 @@
1
- import { r as s, h as e } from "./index-Df31uHzU.mjs";
2
- const o = "", r = o, t = class {
3
- constructor(a) {
4
- s(this, a), this.backToTop = () => {
5
- window.scrollTo({ top: 0, behavior: "smooth" });
6
- }, this.extraClass = "", this.social = !1, this.enableScrollTop = !1, this.fundedBy = "EBRAINS is funded by the Horizon Europe Framework Programme.", this.rightsReserved = `${(/* @__PURE__ */ new Date()).getFullYear()} EBRAINS. All rights reserved.`, this.showMatomoNotice = !1;
7
- }
8
- /**
9
- * Renders the footer component with optional sections and elements,
10
- * including social network links, a Horizon Europe funding acknowledgment, and
11
- * legal links such as "Cookies Preferences" and copyright information.
12
- *
13
- * @returns {JSX.Element} The rendered JSX for the footer component.
14
- */
15
- render() {
16
- return e("footer", { key: "9a7256325386a5072e9f1e391d838bb38458d99f", class: `${this.extraClass} pb-banner` }, this.social ? e("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, e("div", { class: "container pb-20 xl:pb-40 " }, e("div", { class: "grid-layout" }, e("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, e("eds-social-networks", { class: "mt-28" })), e("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" })))) : null, e("div", { key: "747d4708e90c13fe9e5aa234eaba182df100fca9", class: `border-softest ${this.social ? "border-t-2" : ""} pt-20 pb-28 md:pt-28` }, e("div", { key: "3fecf340c536bb64aa98fd04c26c5b47d146630b", class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, e("div", { key: "6b7f167ac50c6aef9c76e56634a7228585c211db", class: "flex items-center gap-x-12" }, e("a", { key: "8e496d31c4b883a867b5f2c6a5fab8a60899470a", target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en", "aria-label": "Learn about Horizon 2020 funding" }, e("eds-img", { key: "b3cdfc2cc428951d58fe5ae4f1fe1992fbded7f7", width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), e("div", { key: "8c3a9f55f07b44ad633b11a1d4faa8396a5ae30a", class: "order-last w-full lg:order-none lg:w-auto" }, e("div", { key: "c268c107f6be692756d15a8f096e1a86df7bb62a", class: "f-ui-04 text-light" }, e("p", { key: "528014cafcd1b498efa01482934b54c44dd03bd6" }, this.fundedBy), e("div", { key: "ee5baffcf8f801b7480c8158b30777329699f57f", class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, e("span", { key: "79e600b799480904f47261be78262f344ada967b", class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "© ", this.rightsReserved)))), e("div", { key: "6bde5399c1044e0d85b71c9fab7e3e4c8b93e224", class: "ml-auto pl-12" }, this.enableScrollTop ? e("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop }) : null))));
17
- }
18
- };
19
- t.style = r;
20
- export {
21
- t as eds_footer
22
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),o="",t=o,a=class{constructor(s){e.registerInstance(this,s),this.backToTop=()=>{window.scrollTo({top:0,behavior:"smooth"})},this.extraClass="",this.social=!1,this.enableScrollTop=!1,this.fundedBy="EBRAINS is funded by the Horizon Europe Framework Programme.",this.rightsReserved=`${new Date().getFullYear()} EBRAINS. All rights reserved.`,this.showMatomoNotice=!1}render(){return e.h("footer",{key:"9a7256325386a5072e9f1e391d838bb38458d99f",class:`${this.extraClass} pb-banner`},this.social?e.h("div",{class:"border-softest border-t-2 pt-20 pb-28 md:pt-28"},e.h("div",{class:"container pb-20 xl:pb-40 "},e.h("div",{class:"grid-layout"},e.h("div",{class:"grid-col-span-12 lg:grid-col-span-5"},e.h("eds-social-networks",{class:"mt-28"})),e.h("nav",{"aria-label":"Secondary nav",class:"grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0"})))):null,e.h("div",{key:"747d4708e90c13fe9e5aa234eaba182df100fca9",class:`border-softest ${this.social?"border-t-2":""} pt-20 pb-28 md:pt-28`},e.h("div",{key:"3fecf340c536bb64aa98fd04c26c5b47d146630b",class:"container flex flex-wrap items-center gap-20 lg:flex-nowrap"},e.h("div",{key:"6b7f167ac50c6aef9c76e56634a7228585c211db",class:"flex items-center gap-x-12"},e.h("a",{key:"8e496d31c4b883a867b5f2c6a5fab8a60899470a",target:"_blank",rel:"noopener noreferrer",class:"effect-focus focus-visible:rounded-xs flex w-[54px] ml-0",href:"https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en","aria-label":"Learn about Horizon 2020 funding"},e.h("eds-img",{key:"b3cdfc2cc428951d58fe5ae4f1fe1992fbded7f7",width:54,height:41,src:"https://www.ebrains.eu/flags/4x3/eu.svg",alt:"European Union Flag"}))),e.h("div",{key:"8c3a9f55f07b44ad633b11a1d4faa8396a5ae30a",class:"order-last w-full lg:order-none lg:w-auto"},e.h("div",{key:"c268c107f6be692756d15a8f096e1a86df7bb62a",class:"f-ui-04 text-light"},e.h("p",{key:"528014cafcd1b498efa01482934b54c44dd03bd6"},this.fundedBy),e.h("div",{key:"ee5baffcf8f801b7480c8158b30777329699f57f",class:"mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block"},e.h("span",{key:"79e600b799480904f47261be78262f344ada967b",class:"effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline"},"© ",this.rightsReserved)))),e.h("div",{key:"6bde5399c1044e0d85b71c9fab7e3e4c8b93e224",class:"ml-auto pl-12"},this.enableScrollTop?e.h("eds-button",{"aria-label":"Back to top",intent:"ghostInverse",icon:"chevron-up",onClick:this.backToTop}):null))))}};a.style=t;exports.eds_footer=a;