@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
@@ -1,17 +0,0 @@
1
- import { r as registerInstance, h } from './index-e96badea.js';
2
-
3
- const edsBlockBreakCss = ".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}";
4
- const EdsBlockBreakStyle0 = edsBlockBreakCss;
5
-
6
- const EdsBlockBreak = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.extraClass = '';
10
- }
11
- render() {
12
- return h("hr", { key: '85b5253d4abb77072424452d2ff6a0d631e67652', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
13
- }
14
- };
15
- EdsBlockBreak.style = EdsBlockBreakStyle0;
16
-
17
- export { EdsBlockBreak as eds_block_break };
@@ -1,149 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
-
3
- const edsBreadcrumbCss = "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}}";
4
- const EdsBreadcrumbStyle0 = edsBreadcrumbCss;
5
-
6
- const EdsBreadcrumb = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- /**
10
- * Updates the maximum number of visible items and tracks if the screen is small.
11
- */
12
- this.updateScreenSize = () => {
13
- const width = window.innerWidth;
14
- if (width < 769) {
15
- this.maxVisibleItems = 3;
16
- this.isSmallScreen = true;
17
- }
18
- else if (width <= 1024) {
19
- this.maxVisibleItems = 4;
20
- this.isSmallScreen = true;
21
- }
22
- else {
23
- this.maxVisibleItems = 6;
24
- this.isSmallScreen = false;
25
- }
26
- };
27
- this.items = [];
28
- this.intent = 'ghost';
29
- this.parsedItems = [];
30
- this.isSmallScreen = false;
31
- this.maxVisibleItems = 6;
32
- }
33
- /**
34
- * Watch for changes to the `items` prop and parse it when it changes.
35
- * Converts the `items` string into an array of objects if it is a JSON string.
36
- * If the format is invalid, it logs an error and sets an empty array.
37
- *
38
- * @param newValue - The new value for the `items` prop.
39
- */
40
- parseItems(newValue) {
41
- try {
42
- if (typeof newValue === 'string') {
43
- this.parsedItems = JSON.parse(newValue);
44
- }
45
- else {
46
- this.parsedItems = newValue;
47
- }
48
- }
49
- catch (e) {
50
- this.parsedItems = [];
51
- }
52
- }
53
- /**
54
- * Lifecycle method that runs when the component is about to be loaded.
55
- * It parses the initial `items` prop value.
56
- */
57
- componentWillLoad() {
58
- this.parseItems(this.items);
59
- this.updateScreenSize();
60
- window.addEventListener('resize', this.updateScreenSize);
61
- }
62
- disconnectedCallback() {
63
- window.removeEventListener('resize', this.updateScreenSize);
64
- }
65
- /**
66
- * Lifecycle method that runs when the component has fully loaded.
67
- * It emits a custom event for each `eds-link` element contained within the breadcrumb.
68
- */
69
- componentDidLoad() {
70
- // Emit context for each eds-link element after the component is fully loaded
71
- const links = this.el.shadowRoot.querySelectorAll('eds-link');
72
- links.forEach((link) => {
73
- this.emitContext(link);
74
- });
75
- }
76
- /**
77
- * Emits a custom event called `parentContext` for a given link element.
78
- * This event provides context information about the breadcrumb component.
79
- *
80
- * @param linkElement - The link element to which the event will be dispatched.
81
- */
82
- emitContext(linkElement) {
83
- const event = new CustomEvent('parentContext', {
84
- detail: {
85
- componentName: this.el.tagName.toLowerCase(),
86
- identifier: null
87
- }
88
- });
89
- linkElement.dispatchEvent(event);
90
- }
91
- /**
92
- * Truncates breadcrumb items based on the maxVisibleItems value.
93
- * Truncates `label` to 10 characters if `isSmallScreen` is true, except for the last label.
94
- */
95
- getTruncatedItems() {
96
- const totalItems = this.parsedItems.length;
97
- if (totalItems > this.maxVisibleItems) {
98
- const firstItem = this.parsedItems[0];
99
- const lastItems = this.parsedItems.slice(-2);
100
- const ellipsis = { label: '...', url: '', isHidden: true };
101
- if (this.maxVisibleItems === 3) {
102
- return [
103
- this.truncateLabel(firstItem),
104
- ellipsis,
105
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
106
- ];
107
- }
108
- else if (this.maxVisibleItems === 4) {
109
- const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
110
- return [
111
- this.truncateLabel(firstItem),
112
- this.truncateLabel(middleItem),
113
- ellipsis,
114
- ...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
115
- ];
116
- }
117
- }
118
- return this.parsedItems.map((item, index) => index === this.parsedItems.length - 1 ? item : this.truncateLabel(item));
119
- }
120
- /**
121
- * Truncates the label of a breadcrumb item to a maximum of 10 characters
122
- * if the screen is small.
123
- */
124
- truncateLabel(item) {
125
- if (item.label.length > 15) {
126
- return Object.assign(Object.assign({}, item), { label: `${item.label.slice(0, 15)}...` });
127
- }
128
- return item;
129
- }
130
- /**
131
- * Render method for the breadcrumb component.
132
- * It creates a navigation element with an ordered list of breadcrumb links.
133
- * The last link is disabled and marked as the current page.
134
- */
135
- render() {
136
- const itemsToRender = this.getTruncatedItems();
137
- return (h("nav", { key: 'b3f515670374a7451981638d658f8e37f07ab10c', "aria-label": "Breadcrumb" }, h("ol", { key: '999b2035f3c996016e753be3826881a11054e184', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
138
- const isLast = index === itemsToRender.length - 1;
139
- return (h("li", { class: "flex items-center" }, !item.isHidden ? (h("eds-link", { label: item.label, url: item.url, intent: this.intent, current: isLast, "aria-label": item.label, size: "small", "icon-small": "false" })) : (h("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (h("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
140
- }))));
141
- }
142
- get el() { return getElement(this); }
143
- static get watchers() { return {
144
- "items": ["parseItems"]
145
- }; }
146
- };
147
- EdsBreadcrumb.style = EdsBreadcrumbStyle0;
148
-
149
- export { EdsBreadcrumb as eds_breadcrumb };
@@ -1,46 +0,0 @@
1
- import { r as registerInstance, h } from './index-e96badea.js';
2
-
3
- const edsFooterCss = "";
4
- const EdsFooterStyle0 = edsFooterCss;
5
-
6
- const EdsFooter = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- /**
10
- * Scrolls the page smoothly back to the top.
11
- * Called when the "Back to top" button is clicked.
12
- * @private
13
- */
14
- this.backToTop = () => {
15
- window.scrollTo({ top: 0, behavior: 'smooth' });
16
- };
17
- this.extraClass = '';
18
- this.social = false;
19
- this.hasCookiesSetUp = false;
20
- this.enableScrollTop = false;
21
- this.fundedBy = 'EBRAINS is funded by the Horizon Europe Framework Programme.';
22
- this.rightsReserved = `${new Date().getFullYear()} EBRAINS. All rights reserved.`;
23
- this.cookiesPreference = 'Cookies Preferences';
24
- }
25
- /**
26
- * Toggles the cookie preferences popup, if available.
27
- * The actual implementation for handling cookie preferences should be defined here.
28
- * @private
29
- */
30
- toggleCookiesPopup() {
31
- // Implement logic for handling cookie preferences
32
- }
33
- /**
34
- * Renders the footer component with optional sections and elements,
35
- * including social network links, a Horizon Europe funding acknowledgment, and
36
- * legal links such as "Cookies Preferences" and copyright information.
37
- *
38
- * @returns {JSX.Element} The rendered JSX for the footer component.
39
- */
40
- render() {
41
- return (h("footer", { key: 'efffa9b96cc2a094255fcb6d08ec45c7c7f09ec4', class: `${this.extraClass} pb-banner` }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, h("div", { class: "container pb-20 xl:pb-40 " }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })), 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, h("div", { key: 'c3942c635dff3dc8cb47a21f20aca52acfaa3e18', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, h("div", { key: '57e963272659ce2e63294c969f3724a03aef667e', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, h("div", { key: 'c3e5cfe07fe9eb90450f7a87be1b95ed00ef38ce', class: "flex items-center gap-x-12" }, h("a", { key: 'b0d0c65115b611f78d2b468559c16eb60f538907', 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" }, h("eds-img", { key: '6cb5d067f07b456a8d828f3f42f2730e3e5374e0', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), h("div", { key: 'e5b768b0fb96fcdcb786d33fc808368005935491', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, h("p", { key: '777263c2f4bde43d38690f41391eaf8e51d945fa' }, this.fundedBy), h("div", { key: 'a415687d08edf8f3e03a6edce9c45f58662c8595', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, h("span", { key: 'c0b6498ad4f5e1f4f1945ebb971f9dd81cc74c77', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (h("button", { key: '10133d180bfb0d8a6354ea2cbea318a2c46fc463', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), h("div", { key: '917d0980f91a8c42a75bae301b0a18e3777dd021', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
42
- }
43
- };
44
- EdsFooter.style = EdsFooterStyle0;
45
-
46
- export { EdsFooter as eds_footer };
@@ -1,96 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-e96badea.js';
2
-
3
- const edsFullscreenMenuCss = "";
4
- const EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
5
-
6
- const EdsFullscreenMenu = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.menuClose = createEvent(this, "menuClose", 7);
10
- this.links = undefined;
11
- this.menuLinks = undefined;
12
- this.homeUrl = '/';
13
- this.inverseHeader = false;
14
- this.isMenuOpen = false;
15
- }
16
- /**
17
- * Listens for the toggleMenu event to open or close the menu.
18
- * This event is emitted by the eds-header component.
19
- */
20
- handleToggleMenu(event) {
21
- this.isMenuOpen = event.detail; // Set isMenuOpen based on the event payload
22
- }
23
- /** Opens the menu */
24
- openMenu() {
25
- this.isMenuOpen = true;
26
- }
27
- /** Closes the menu */
28
- closeMenu() {
29
- this.isMenuOpen = false;
30
- this.menuClose.emit();
31
- }
32
- // Lifecycle method to add the resize event listener when component loads
33
- componentDidLoad() {
34
- window.addEventListener('resize', this.handleResize.bind(this));
35
- }
36
- // Lifecycle method to remove the resize event listener when component unloads
37
- disconnectedCallback() {
38
- window.removeEventListener('resize', this.handleResize.bind(this));
39
- }
40
- // Function to close the menu if screen width is larger than a defined breakpoint (1024px)
41
- handleResize() {
42
- if (window.innerWidth >= 1024) {
43
- this.isMenuOpen = false;
44
- }
45
- }
46
- /**
47
- * Parses the `links` prop into an array of link objects.
48
- * Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
49
- *
50
- * @returns {any[]} Array of parsed link objects
51
- */
52
- get parsedLinks() {
53
- if (typeof this.links === 'object') {
54
- return this.links;
55
- }
56
- else if (typeof this.links === 'string') {
57
- try {
58
- return JSON.parse(this.links);
59
- }
60
- catch (e) {
61
- // eslint-disable-next-line
62
- console.error('Error parsing links prop:', e);
63
- return [];
64
- }
65
- }
66
- return [];
67
- }
68
- /**
69
- * Parses the `menuLinks` prop into an array of link objects.
70
- * Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
71
- *
72
- * @returns {any[]} Array of parsed menu link objects
73
- */
74
- get parsedMenuLinks() {
75
- if (typeof this.menuLinks === 'object') {
76
- return this.menuLinks;
77
- }
78
- else if (typeof this.menuLinks === 'string') {
79
- try {
80
- return JSON.parse(this.menuLinks);
81
- }
82
- catch (e) {
83
- // eslint-disable-next-line
84
- console.error('Error parsing menuLinks prop:', e);
85
- return [];
86
- }
87
- }
88
- return [];
89
- }
90
- render() {
91
- return this.isMenuOpen ? (h("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, h("div", { class: "flex min-h-full flex-col" }, h("div", { class: `bg-default w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, h("div", { class: "mx-auto flex items-center justify-between" }, h("div", { class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), h("div", { class: "px-16" }, h("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), h("div", { class: "py-16 px-16" }, h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (h("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" })))), h("eds-block-break", null), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (h("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))))), h("div", { class: "mt-auto" }, h("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
92
- }
93
- };
94
- EdsFullscreenMenu.style = EdsFullscreenMenuStyle0;
95
-
96
- export { EdsFullscreenMenu as eds_fullscreen_menu };
@@ -1,62 +0,0 @@
1
- import { r as registerInstance, h } from './index-e96badea.js';
2
-
3
- const edsSocialNetworkCss = "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}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
4
- const EdsSocialNetworksStyle0 = edsSocialNetworkCss;
5
-
6
- const EdsSocialNetwork = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- /**
10
- * Array of social network objects, each containing label, URL, and icon.
11
- * These are used to render the social network links.
12
- *
13
- * @private
14
- * @type {SocialNetworks[]}
15
- */
16
- this.socialNetworks = [
17
- {
18
- label: 'Twitter',
19
- url: 'https://twitter.com/ebrains_eu',
20
- icon: 'twitter'
21
- },
22
- {
23
- label: 'Linkedin',
24
- url: 'https://www.linkedin.com/company/ebrains-eu/about/',
25
- icon: 'linkedin'
26
- },
27
- {
28
- label: 'Facebook',
29
- url: 'https://www.facebook.com/people/Ebrains_eu/100046659909324/',
30
- icon: 'facebook'
31
- },
32
- {
33
- label: 'Youtube',
34
- url: 'https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ',
35
- icon: 'youtube'
36
- },
37
- {
38
- label: 'Mastodon',
39
- url: 'https://mastodon.social/@ebrains',
40
- icon: 'mastodon'
41
- },
42
- {
43
- label: 'Bluesky',
44
- url: 'https://bsky.app/profile/ebrains.bsky.social',
45
- icon: 'bluesky'
46
- }
47
- ];
48
- this.title = 'Follow EBRAINS to keep up-to-date';
49
- }
50
- /**
51
- * Renders the component's HTML structure with links to EBRAINS social profiles.
52
- * Each social network link uses the `eds-link` component with specific classes and styles.
53
- *
54
- * @returns {JSX.Element} The rendered JSX for the component.
55
- */
56
- render() {
57
- return (h("div", { key: '6169559327b728fd0f3a51a2b8a6439f80fba8fc' }, h("p", { key: 'df2e008500097af1b85660fe8b3fac122f5018a4', class: "f-ui-02" }, this.title), h("ul", { key: 'df01a2802412c4db4e5442fdfc0b6ef3f15c4109', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (h("li", { key: index }, h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
58
- }
59
- };
60
- EdsSocialNetwork.style = EdsSocialNetworksStyle0;
61
-
62
- export { EdsSocialNetwork as eds_social_networks };
@@ -1,139 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
2
-
3
- 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}";
4
- const EdsTableStyle0 = edsTableCss;
5
-
6
- const EdsTable = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.minWidth = 400; // Minimum width for components in px
10
- this.data = null;
11
- this.endpoint = null;
12
- this.config = {};
13
- this.rowsPerPage = 10;
14
- this.paginationEnabled = true;
15
- this.searchEnabled = false;
16
- this.tableData = [];
17
- this.columns = [];
18
- this.currentPage = 1;
19
- this.parsedConfig = {};
20
- this.totalRows = 0;
21
- this.searchQuery = '';
22
- }
23
- handleDataChange() {
24
- this.parseData();
25
- }
26
- handleConfigChange() {
27
- this.parseConfig();
28
- }
29
- componentWillLoad() {
30
- this.parseConfig();
31
- this.data ? this.parseData() : this.endpoint && this.fetchData();
32
- }
33
- componentDidLoad() {
34
- this.setupPaginationListener();
35
- }
36
- componentDidUpdate() {
37
- this.setupPaginationListener();
38
- }
39
- parseData() {
40
- try {
41
- this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
42
- this.totalRows = this.tableData.length;
43
- this.updateColumns();
44
- this.currentPage = 1;
45
- }
46
- catch (error) {
47
- // eslint-disable-next-line
48
- console.error('Failed to parse data:', error);
49
- this.tableData = [];
50
- }
51
- }
52
- parseConfig() {
53
- try {
54
- this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
55
- }
56
- catch (error) {
57
- // eslint-disable-next-line
58
- console.error('Failed to parse config:', error);
59
- this.parsedConfig = {};
60
- }
61
- }
62
- async fetchData() {
63
- try {
64
- const response = await fetch(this.endpoint);
65
- const data = await response.json();
66
- this.data = data;
67
- }
68
- catch (error) {
69
- // eslint-disable-next-line
70
- console.error('Failed to fetch data:', error);
71
- }
72
- }
73
- setupPaginationListener() {
74
- if (!this.shouldEnablePagination()) {
75
- return;
76
- }
77
- const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
78
- if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
79
- paginationEl.addEventListener('pageChange', (event) => this.handlePageChange(event.detail));
80
- paginationEl.setAttribute('listener-attached', 'true');
81
- }
82
- }
83
- getFilteredRows() {
84
- return this.tableData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
85
- }
86
- getPaginatedRows() {
87
- const filteredRows = this.getFilteredRows();
88
- this.totalRows = filteredRows.length;
89
- const start = (this.currentPage - 1) * this.rowsPerPage;
90
- return filteredRows.slice(start, start + this.rowsPerPage);
91
- }
92
- handlePageChange(newPage) {
93
- this.currentPage = newPage;
94
- }
95
- handleSearch(event) {
96
- this.searchQuery = event.target.value;
97
- this.currentPage = 1;
98
- }
99
- renderCell(value, column) {
100
- var _a;
101
- const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
102
- return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (h("div", { innerHTML: value })) : format === 'bold' ? (h("strong", null, value)) : format === 'code' ? (h("code", null, value)) : (value);
103
- }
104
- shouldEnablePagination() {
105
- return this.paginationEnabled && this.totalRows > this.rowsPerPage;
106
- }
107
- updateColumns() {
108
- this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
109
- }
110
- getVisibleColumnsCount() {
111
- return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
112
- }
113
- render() {
114
- const paginatedRows = this.getPaginatedRows();
115
- const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
116
- // Calculate column width based on minWidth and number of columns
117
- //const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
118
- // Use the visible column count to calculate the column width
119
- const visibleColumnsCount = this.getVisibleColumnsCount();
120
- const columnWidth = visibleColumnsCount > 0 ? Math.max(this.minWidth / visibleColumnsCount, 100) : 100;
121
- 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...",
122
- // @ts-ignore
123
- 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) => {
124
- var _a;
125
- 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));
126
- }))), 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) => {
127
- var _a;
128
- 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)));
129
- }))))))), 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" })))));
130
- }
131
- get hostEl() { return getElement(this); }
132
- static get watchers() { return {
133
- "data": ["handleDataChange"],
134
- "config": ["handleConfigChange"]
135
- }; }
136
- };
137
- EdsTable.style = EdsTableStyle0;
138
-
139
- export { EdsTable as eds_table };
@@ -1,27 +0,0 @@
1
- import { r as registerInstance, h } from './index-e96badea.js';
2
-
3
- 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%)}";
4
- const LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
5
-
6
- const LogoVariations = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.orientation = 'horizontal';
10
- this.type = undefined;
11
- }
12
- render() {
13
- if (this.type === 'coloured') {
14
- return (h("div", { class: "container my-16" }, h("div", { class: "coloured w-[300px]" }, h("eds-logo", { type: "no-bg", href: "#" }))));
15
- }
16
- if (this.type === 'black') {
17
- return (h("div", { class: "container my-16" }, h("div", { class: "bg-default w-[300px]" }, h("eds-logo", { type: "black", href: "#" }))));
18
- }
19
- if (this.type === 'color-white') {
20
- return (h("div", { class: "container my-16" }, h("div", { class: "w-[300px]" }, h("eds-logo", { type: "color-white", href: "#" }))));
21
- }
22
- return null;
23
- }
24
- };
25
- LogoVariations.style = LogoVariationsHorizontalStyle0;
26
-
27
- export { LogoVariations as logo_variations_horizontal };
@@ -1,27 +0,0 @@
1
- import { r as registerInstance, h } from './index-e96badea.js';
2
-
3
- const logoVariationsVerticalCss = ".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-\\[200px\\]{width:200px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
4
- const LogoVariationsVerticalStyle0 = logoVariationsVerticalCss;
5
-
6
- const LogoVariations = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.orientation = 'horizontal';
10
- this.type = undefined;
11
- }
12
- render() {
13
- if (this.type === 'coloured') {
14
- return (h("div", { class: "container my-16" }, h("div", { class: "coloured w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
15
- }
16
- if (this.type === 'black') {
17
- return (h("div", { class: "container my-16" }, h("div", { class: "bg-default w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
18
- }
19
- if (this.type === 'color-white') {
20
- return (h("div", { class: "container my-16" }, h("div", { class: "w-[200px]" }, h("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
21
- }
22
- return null;
23
- }
24
- };
25
- LogoVariations.style = LogoVariationsVerticalStyle0;
26
-
27
- export { LogoVariations as logo_variations_vertical };