@ebrains/components 0.9.3-beta → 1.0.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 (535) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/{analytics-d8fb3fdd.js → analytics-28713bf7.js} +2 -2
  3. package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
  4. package/dist/cjs/components-section.cjs.entry.js +23 -17
  5. package/dist/cjs/components.cjs.js +2 -2
  6. package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
  7. package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
  8. package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
  9. package/dist/cjs/eds-accordion.cjs.entry.js +3 -3
  10. package/dist/cjs/eds-alert.cjs.entry.js +2 -2
  11. package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
  12. package/dist/cjs/eds-avatar_34.cjs.entry.js +2731 -0
  13. package/dist/cjs/eds-card-project.cjs.entry.js +136 -8
  14. package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
  15. package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
  16. package/dist/cjs/eds-card-tool.cjs.entry.js +3 -3
  17. package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
  18. package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
  19. package/dist/cjs/eds-feedback.cjs.entry.js +7 -2
  20. package/dist/cjs/eds-frame.cjs.entry.js +3 -3
  21. package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
  22. package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
  23. package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
  24. package/dist/cjs/eds-icon-bookmark.cjs.entry.js +1 -1
  25. package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
  26. package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
  28. package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
  29. package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
  30. package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
  31. package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
  32. package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
  33. package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
  34. package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
  35. package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
  36. package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
  37. package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
  38. package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
  39. package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
  40. package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
  41. package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
  42. package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
  43. package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
  44. package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
  45. package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
  46. package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
  47. package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
  48. package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
  49. package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
  50. package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
  51. package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
  52. package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
  53. package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
  54. package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
  55. package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
  56. package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
  57. package/dist/cjs/eds-matomo-notice.cjs.entry.js +10 -8
  58. package/dist/cjs/eds-pagination_2.cjs.entry.js +6 -6
  59. package/dist/cjs/eds-progress-bar.cjs.entry.js +32 -5
  60. package/dist/cjs/eds-rating.cjs.entry.js +2 -2
  61. package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
  62. package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
  63. package/dist/cjs/eds-splash-screen.cjs.entry.js +60 -0
  64. package/dist/cjs/eds-switch.cjs.entry.js +14 -6
  65. package/dist/cjs/eds-timeline.cjs.entry.js +3 -3
  66. package/dist/cjs/eds-toast-manager.cjs.entry.js +33 -4
  67. package/dist/cjs/eds-toast.cjs.entry.js +5 -4
  68. package/dist/cjs/eds-trl.cjs.entry.js +2 -2
  69. package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
  70. package/dist/cjs/{index-2f63169d.js → index-88c8039f.js} +37 -319
  71. package/dist/cjs/loader.cjs.js +2 -2
  72. package/dist/cjs/logo-space.cjs.entry.js +2 -2
  73. package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
  74. package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
  75. package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
  76. package/dist/cjs/svg-repository.cjs.entry.js +2 -2
  77. package/dist/cjs/token-list_3.cjs.entry.js +4 -4
  78. package/dist/cjs/token-ratios.cjs.entry.js +2 -2
  79. package/dist/cjs/token-typography.cjs.entry.js +2 -2
  80. package/dist/collection/collection-manifest.json +3 -3
  81. package/dist/collection/components/eds-accordion/eds-accordion.css +0 -8
  82. package/dist/collection/components/eds-alert/eds-alert.css +1 -575
  83. package/dist/collection/components/eds-alert/eds-alert.stories.js +3 -1
  84. package/dist/collection/components/eds-avatar/eds-avatar.css +40 -25
  85. package/dist/collection/components/eds-avatar/eds-avatar.js +11 -21
  86. package/dist/collection/components/eds-avatar/eds-avatar.stories.js +5 -2
  87. package/dist/collection/components/eds-block-break/eds-block-break.css +2 -27
  88. package/dist/collection/components/eds-block-break/eds-block-break.js +9 -14
  89. package/dist/collection/components/eds-button/eds-button.css +318 -8312
  90. package/dist/collection/components/eds-button/eds-button.js +5 -59
  91. package/dist/collection/components/eds-button/eds-button.stories.js +4 -1
  92. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +5 -7
  93. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -20
  94. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +10 -1
  95. package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
  96. package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
  97. package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
  98. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.css +58 -0
  99. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +172 -0
  100. package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.stories.js +57 -0
  101. package/dist/collection/components/eds-charts/eds-pie/eds-pie.css +135 -0
  102. package/dist/collection/components/eds-charts/eds-pie/eds-pie.js +229 -0
  103. package/dist/collection/components/eds-charts/eds-pie/eds-pie.stories.js +76 -0
  104. package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +33 -156
  105. package/dist/collection/components/eds-input-field/eds-input-field.js +42 -15
  106. package/dist/collection/components/eds-link/eds-link.css +384 -6247
  107. package/dist/collection/components/eds-link/eds-link.js +2 -1
  108. package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +96 -61
  109. package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +48 -3
  110. package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +3 -4
  111. package/dist/collection/components/eds-rating/eds-rating.js +1 -1
  112. package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +5 -1
  113. package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
  114. package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
  115. package/dist/collection/components/eds-switch/eds-switch.css +13 -2
  116. package/dist/collection/components/eds-switch/eds-switch.js +13 -5
  117. package/dist/collection/components/eds-table/eds-table.js +4 -4
  118. package/dist/collection/components/eds-table/eds-table.stories.js +1 -11
  119. package/dist/collection/components/eds-tag/eds-tag.css +22 -12
  120. package/dist/collection/components/eds-tag/eds-tag.js +1 -1
  121. package/dist/collection/components/eds-timeline/eds-timeline.css +46 -7755
  122. package/dist/collection/components/eds-timeline/eds-timeline.js +4 -1
  123. package/dist/collection/components/eds-toast/eds-toast.js +7 -7
  124. package/dist/collection/components/eds-tooltip/eds-tooltip.css +89 -93
  125. package/dist/collection/components/eds-tooltip/eds-tooltip.js +6 -120
  126. package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +5 -3
  127. package/dist/collection/components/eds-trl/eds-trl.js +1 -1
  128. package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
  129. package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
  130. package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
  131. package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
  132. package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
  133. package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
  134. package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
  135. package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
  136. package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
  137. package/dist/collection/eds-docs-ui/components-section/functional/angular.js +1 -1
  138. package/dist/collection/eds-docs-ui/components-section/functional/installation.js +1 -1
  139. package/dist/collection/eds-docs-ui/components-section/functional/overview.js +2 -2
  140. package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
  141. package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
  142. package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
  143. package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
  144. package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
  145. package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
  146. package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
  147. package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
  148. package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
  149. package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
  150. package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
  151. package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
  152. package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
  153. package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
  154. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
  155. package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +24 -1
  156. package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +9 -1
  157. package/dist/collection/shared-ui/eds-footer/eds-footer.css +4 -0
  158. package/dist/collection/shared-ui/eds-footer/eds-footer.js +46 -2
  159. package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +16 -3
  160. package/dist/collection/shared-ui/eds-form/eds-form.js +42 -10
  161. package/dist/collection/shared-ui/eds-frame/eds-frame.css +147 -115
  162. package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
  163. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +149 -117
  164. package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +1 -1
  165. package/dist/collection/shared-ui/eds-header/eds-header.css +178 -132
  166. package/dist/collection/shared-ui/eds-header/eds-header.js +21 -40
  167. package/dist/collection/shared-ui/eds-header/eds-header.stories.js +6 -5
  168. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +8 -6
  169. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +1 -0
  170. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  171. package/dist/collection/{components → shared-ui}/eds-steps/eds-steps.css +2 -35
  172. package/dist/collection/{components → shared-ui}/eds-steps/eds-steps.js +2 -2
  173. package/dist/collection/{components → shared-ui}/eds-steps/eds-steps.stories.js +1 -1
  174. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +4 -128
  175. package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +1 -1
  176. package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +268 -7686
  177. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +10 -10
  178. package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +20 -10
  179. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
  180. package/dist/collection/shared-ui/eds-user/eds-user.css +36 -7758
  181. package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
  182. package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
  183. package/dist/collection/utils/analytics.js +2 -2
  184. package/dist/collection/utils/color.js +8 -8
  185. package/dist/components/analytics.js +2 -2
  186. package/dist/components/components-section.js +22 -16
  187. package/dist/components/components.css +34 -516
  188. package/dist/components/components.esm.js +1 -1
  189. package/dist/components/correct-use-of-colors.js +1 -1
  190. package/dist/components/docs-palettes.js +1 -1
  191. package/dist/components/docs-tokens.js +1 -1
  192. package/dist/components/eds-accordion2.js +1 -1
  193. package/dist/components/eds-alert2.js +1 -1
  194. package/dist/components/eds-app-root.js +2 -20
  195. package/dist/components/eds-avatar2.js +4 -15
  196. package/dist/components/eds-block-break2.js +4 -4
  197. package/dist/components/eds-button2.js +6 -60
  198. package/dist/components/eds-card-desc2.js +2 -4
  199. package/dist/components/eds-card-generic2.js +2 -2
  200. package/dist/components/eds-card-project.js +131 -2
  201. package/dist/components/eds-card-tool.js +1 -1
  202. package/dist/components/eds-cookies-preference.js +1 -1
  203. package/dist/components/eds-feedback.js +7 -1
  204. package/dist/components/eds-footer2.js +7 -3
  205. package/dist/components/eds-form.js +17 -9
  206. package/dist/components/eds-frame.js +2 -2
  207. package/dist/components/eds-fullscreen-menu.js +1 -1
  208. package/dist/components/{eds-login.d.ts → eds-gauge.d.ts} +4 -4
  209. package/dist/components/eds-gauge.js +81 -0
  210. package/dist/components/eds-header.js +15 -34
  211. package/dist/components/eds-input-field2.js +26 -16
  212. package/dist/components/eds-input-select2.js +12 -84
  213. package/dist/components/eds-link2.js +3 -2
  214. package/dist/components/eds-matomo-notice2.js +8 -6
  215. package/dist/components/{eds-card-wrapper.d.ts → eds-pie.d.ts} +4 -4
  216. package/dist/components/eds-pie.js +127 -0
  217. package/dist/components/eds-progress-bar2.js +32 -4
  218. package/dist/components/eds-rating2.js +1 -1
  219. package/dist/components/eds-section-core2.js +3 -2
  220. package/dist/components/eds-section-heading2.js +2 -2
  221. package/dist/components/eds-social-networks2.js +1 -1
  222. package/dist/components/eds-spinner2.js +1 -1
  223. package/dist/components/eds-steps-v2.js +1 -1
  224. package/dist/components/eds-steps2.js +1 -1
  225. package/dist/components/eds-switch.js +13 -5
  226. package/dist/components/eds-table2.js +4 -4
  227. package/dist/components/eds-tabs.js +11 -11
  228. package/dist/components/eds-tag2.js +2 -2
  229. package/dist/components/eds-timeline.js +2 -2
  230. package/dist/components/eds-toast-manager.js +31 -2
  231. package/dist/components/eds-toast2.js +4 -3
  232. package/dist/components/eds-tooltip.js +7 -88
  233. package/dist/components/eds-trl.js +1 -1
  234. package/dist/components/eds-user.js +10 -4
  235. package/dist/components/incorrect-use-of-colors.js +1 -1
  236. package/dist/components/logo-space.js +1 -1
  237. package/dist/components/logo-variations-horizontal2.js +1 -1
  238. package/dist/components/logo-variations-tabs.js +1 -1
  239. package/dist/components/logo-variations-vertical2.js +1 -1
  240. package/dist/components/logo-wrong-usage.js +1 -1
  241. package/dist/components/p-019555e2.entry.js +1 -0
  242. package/dist/components/p-04b4e9d0.entry.js +1 -0
  243. package/dist/components/p-0863352c.entry.js +1 -0
  244. package/dist/components/p-0d6434e1.entry.js +1 -0
  245. package/dist/components/p-0e94a89f.entry.js +1 -0
  246. package/dist/components/p-0ed92872.entry.js +1 -0
  247. package/dist/components/{p-c4db0829.entry.js → p-0eeddc13.entry.js} +1 -1
  248. package/dist/components/p-100909ce.entry.js +1 -0
  249. package/dist/components/{p-892362e0.entry.js → p-10db551c.entry.js} +1 -1
  250. package/dist/components/{p-aa2e6fec.entry.js → p-124b8747.entry.js} +1 -1
  251. package/dist/components/p-14a223fe.entry.js +1 -0
  252. package/dist/components/{p-e089797c.entry.js → p-1661f33c.entry.js} +1 -1
  253. package/dist/components/{p-05b272e5.entry.js → p-18ceadd2.entry.js} +1 -1
  254. package/dist/components/p-223ba66e.entry.js +1 -0
  255. package/dist/components/{p-751497f4.entry.js → p-24dab785.entry.js} +1 -1
  256. package/dist/components/p-26d6679b.entry.js +1 -0
  257. package/dist/components/p-2810d568.entry.js +1 -0
  258. package/dist/components/p-28ae3f3a.js +2 -0
  259. package/dist/components/p-2b1b2026.entry.js +1 -0
  260. package/dist/components/p-2c571550.entry.js +1 -0
  261. package/dist/components/p-326d9e55.entry.js +1 -0
  262. package/dist/components/p-36d6134f.entry.js +1 -0
  263. package/dist/components/p-3c642a30.entry.js +1 -0
  264. package/dist/components/p-46619042.entry.js +1 -0
  265. package/dist/components/{p-75d37c48.entry.js → p-46a6ab04.entry.js} +1 -1
  266. package/dist/components/{p-d83d2815.entry.js → p-50ea5b07.entry.js} +1 -1
  267. package/dist/components/p-511b23ec.entry.js +1 -0
  268. package/dist/components/p-5462923d.entry.js +1 -0
  269. package/dist/components/p-6199b8c0.entry.js +1 -0
  270. package/dist/components/{p-888c3471.entry.js → p-624e653e.entry.js} +1 -1
  271. package/dist/components/{p-0b99fd3c.entry.js → p-682f7376.entry.js} +1 -1
  272. package/dist/components/p-6907a47c.entry.js +1 -0
  273. package/dist/components/p-6ba42d02.entry.js +1 -0
  274. package/dist/components/p-6e929acb.entry.js +1 -0
  275. package/dist/components/p-6ede7101.entry.js +1 -0
  276. package/dist/components/p-70bac015.entry.js +1 -0
  277. package/dist/components/p-7af6b832.entry.js +1 -0
  278. package/dist/components/p-7f31622d.entry.js +1 -0
  279. package/dist/components/p-822ac246.entry.js +1 -0
  280. package/dist/components/p-848506b8.entry.js +1 -0
  281. package/dist/components/p-84fd3e40.entry.js +1 -0
  282. package/dist/components/p-85634ad2.entry.js +1 -0
  283. package/dist/components/{p-7a550385.entry.js → p-8ad05566.entry.js} +1 -1
  284. package/dist/components/{p-037975af.entry.js → p-8b016d76.entry.js} +1 -1
  285. package/dist/components/p-8bdf5841.entry.js +1 -0
  286. package/dist/components/p-8ff39cef.entry.js +1 -0
  287. package/dist/components/{p-29ad9c73.entry.js → p-a4f552b2.entry.js} +1 -1
  288. package/dist/components/p-a81cba86.entry.js +1 -0
  289. package/dist/components/p-abb2ad00.entry.js +1 -0
  290. package/dist/components/{p-b8ba7e5c.entry.js → p-adbd0d7b.entry.js} +1 -1
  291. package/dist/components/p-affe2b55.entry.js +1 -0
  292. package/dist/components/p-b31591db.entry.js +1 -0
  293. package/dist/components/{p-7db75d62.entry.js → p-b4abff90.entry.js} +1 -1
  294. package/dist/components/{p-67c72c20.entry.js → p-b50fc0d7.entry.js} +1 -1
  295. package/dist/components/p-b7efd666.entry.js +1 -0
  296. package/dist/components/p-ba784274.entry.js +1 -0
  297. package/dist/components/p-bb9af709.entry.js +1 -0
  298. package/dist/components/p-bfc62d3e.entry.js +1 -0
  299. package/dist/components/p-c0b22803.entry.js +1 -0
  300. package/dist/components/p-cdd491f5.entry.js +1 -0
  301. package/dist/components/{p-688e07d6.entry.js → p-cde3d7a4.entry.js} +1 -1
  302. package/dist/components/p-cfccddc3.entry.js +1 -0
  303. package/dist/components/p-d15065c3.js +1 -0
  304. package/dist/components/p-d268c96b.entry.js +1 -0
  305. package/dist/components/p-d437bae2.entry.js +1 -0
  306. package/dist/components/p-d456e649.entry.js +1 -0
  307. package/dist/components/p-dae8f66a.entry.js +1 -0
  308. package/dist/components/p-e1791844.entry.js +1 -0
  309. package/dist/components/p-e82edd4a.entry.js +1 -0
  310. package/dist/components/p-e9f608a8.entry.js +1 -0
  311. package/dist/components/{p-55e3683c.entry.js → p-ea97a94e.entry.js} +1 -1
  312. package/dist/components/{p-e2b00067.entry.js → p-eac593ee.entry.js} +1 -1
  313. package/dist/components/p-f26fd186.entry.js +1 -0
  314. package/dist/components/{p-7ac9881e.entry.js → p-f2c23162.entry.js} +1 -1
  315. package/dist/components/p-fc4edb18.entry.js +1 -0
  316. package/dist/components/p-fe1cba17.entry.js +1 -0
  317. package/dist/components/primary.js +1 -1
  318. package/dist/components/primary2.js +1 -1
  319. package/dist/components/secondary.js +1 -1
  320. package/dist/components/secondary2.js +7 -7
  321. package/dist/components/support.js +1 -1
  322. package/dist/components/support2.js +3 -3
  323. package/dist/components/svg-repository.js +1 -1
  324. package/dist/components/token-list2.js +1 -1
  325. package/dist/components/token-radii2.js +1 -1
  326. package/dist/components/token-ratios.js +1 -1
  327. package/dist/components/token-shadows2.js +1 -1
  328. package/dist/components/token-spacing.js +1 -1
  329. package/dist/components/token-typography.js +1 -1
  330. package/dist/esm/{analytics-44b1416b.js → analytics-d99780e3.js} +2 -2
  331. package/dist/esm/color-primary-palette_6.entry.js +15 -15
  332. package/dist/esm/components-section.entry.js +23 -17
  333. package/dist/esm/components.js +3 -3
  334. package/dist/esm/correct-use-of-colors.entry.js +2 -2
  335. package/dist/esm/docs-palettes.entry.js +2 -2
  336. package/dist/esm/docs-tokens.entry.js +2 -2
  337. package/dist/esm/eds-accordion.entry.js +3 -3
  338. package/dist/esm/eds-alert.entry.js +2 -2
  339. package/dist/esm/eds-app-root.entry.js +2 -2
  340. package/dist/esm/eds-avatar_34.entry.js +2694 -0
  341. package/dist/esm/eds-card-project.entry.js +133 -5
  342. package/dist/esm/eds-card-section.entry.js +1 -1
  343. package/dist/esm/eds-card-tags.entry.js +1 -1
  344. package/dist/esm/eds-card-tool.entry.js +3 -3
  345. package/dist/esm/eds-code-block.entry.js +1 -1
  346. package/dist/esm/eds-cookies-preference.entry.js +2 -2
  347. package/dist/esm/eds-feedback.entry.js +7 -2
  348. package/dist/esm/eds-frame.entry.js +3 -3
  349. package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
  350. package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
  351. package/dist/esm/eds-icon-bluesky.entry.js +1 -1
  352. package/dist/esm/eds-icon-bookmark.entry.js +1 -1
  353. package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
  354. package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
  355. package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
  356. package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
  357. package/dist/esm/eds-icon-close.entry.js +1 -1
  358. package/dist/esm/eds-icon-copy.entry.js +1 -1
  359. package/dist/esm/eds-icon-eu.entry.js +1 -1
  360. package/dist/esm/eds-icon-external.entry.js +1 -1
  361. package/dist/esm/eds-icon-facebook.entry.js +1 -1
  362. package/dist/esm/eds-icon-gitlab.entry.js +1 -1
  363. package/dist/esm/eds-icon-linkedin.entry.js +1 -1
  364. package/dist/esm/eds-icon-loader.entry.js +1 -1
  365. package/dist/esm/eds-icon-mastodon.entry.js +1 -1
  366. package/dist/esm/eds-icon-menu.entry.js +1 -1
  367. package/dist/esm/eds-icon-minus.entry.js +1 -1
  368. package/dist/esm/eds-icon-more.entry.js +1 -1
  369. package/dist/esm/eds-icon-paper.entry.js +1 -1
  370. package/dist/esm/eds-icon-plus.entry.js +1 -1
  371. package/dist/esm/eds-icon-portal.entry.js +1 -1
  372. package/dist/esm/eds-icon-private.entry.js +1 -1
  373. package/dist/esm/eds-icon-public.entry.js +1 -1
  374. package/dist/esm/eds-icon-search.entry.js +1 -1
  375. package/dist/esm/eds-icon-star.entry.js +1 -1
  376. package/dist/esm/eds-icon-success.entry.js +1 -1
  377. package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
  378. package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
  379. package/dist/esm/eds-icon-tutorial.entry.js +1 -1
  380. package/dist/esm/eds-icon-twitter.entry.js +1 -1
  381. package/dist/esm/eds-icon-unknown.entry.js +1 -1
  382. package/dist/esm/eds-icon-updown.entry.js +1 -1
  383. package/dist/esm/eds-icon-user.entry.js +1 -1
  384. package/dist/esm/eds-icon-youtube.entry.js +1 -1
  385. package/dist/esm/eds-matomo-notice.entry.js +10 -8
  386. package/dist/esm/eds-pagination_2.entry.js +6 -6
  387. package/dist/esm/eds-progress-bar.entry.js +32 -5
  388. package/dist/esm/eds-rating.entry.js +2 -2
  389. package/dist/esm/eds-section-core_2.entry.js +4 -4
  390. package/dist/esm/eds-spinner.entry.js +2 -2
  391. package/dist/esm/eds-splash-screen.entry.js +56 -0
  392. package/dist/esm/eds-switch.entry.js +14 -6
  393. package/dist/esm/eds-timeline.entry.js +3 -3
  394. package/dist/esm/eds-toast-manager.entry.js +32 -3
  395. package/dist/esm/eds-toast.entry.js +5 -4
  396. package/dist/esm/eds-trl.entry.js +2 -2
  397. package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
  398. package/dist/esm/{index-8a71b9a7.js → index-fdb33359.js} +37 -319
  399. package/dist/esm/loader.js +3 -3
  400. package/dist/esm/logo-space.entry.js +2 -2
  401. package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
  402. package/dist/esm/logo-variations-tabs.entry.js +2 -2
  403. package/dist/esm/logo-wrong-usage.entry.js +2 -2
  404. package/dist/esm/svg-repository.entry.js +2 -2
  405. package/dist/esm/token-list_3.entry.js +4 -4
  406. package/dist/esm/token-ratios.entry.js +2 -2
  407. package/dist/esm/token-typography.entry.js +2 -2
  408. package/dist/hydrate/index.js +815 -2882
  409. package/dist/hydrate/index.mjs +815 -2882
  410. package/dist/types/components/eds-avatar/eds-avatar.d.ts +3 -4
  411. package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +2 -1
  412. package/dist/types/components/eds-block-break/eds-block-break.d.ts +2 -7
  413. package/dist/types/components/eds-button/eds-button.d.ts +0 -1
  414. package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +0 -5
  415. package/dist/types/components/eds-charts/eds-gauge/eds-gauge.d.ts +14 -0
  416. package/dist/types/components/eds-charts/eds-gauge/eds-gauge.stories.d.ts +52 -0
  417. package/dist/types/components/eds-charts/eds-pie/eds-pie.d.ts +28 -0
  418. package/dist/types/components/eds-charts/eds-pie/eds-pie.stories.d.ts +60 -0
  419. package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +18 -116
  420. package/dist/types/components/eds-input-field/eds-input-field.d.ts +6 -0
  421. package/dist/types/components/eds-progress-bar/eds-progress-bar.d.ts +3 -3
  422. package/dist/types/components/eds-progress-bar/eds-progress-bar.stories.d.ts +3 -0
  423. package/dist/types/components/eds-section/eds-section-core/eds-section-core.d.ts +3 -0
  424. package/dist/types/components/eds-switch/eds-switch.d.ts +2 -1
  425. package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -8
  426. package/dist/types/components/eds-timeline/eds-timeline.d.ts +3 -0
  427. package/dist/types/components/eds-toast/eds-toast.d.ts +3 -2
  428. package/dist/types/components/eds-tooltip/eds-tooltip.d.ts +2 -36
  429. package/dist/types/components.d.ts +211 -241
  430. package/dist/types/shared-ui/eds-feedback/eds-feedback.d.ts +4 -0
  431. package/dist/types/shared-ui/eds-feedback/eds-feedback.stories.d.ts +8 -4
  432. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +10 -0
  433. package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +10 -0
  434. package/dist/types/shared-ui/eds-form/eds-form.d.ts +1 -1
  435. package/dist/types/shared-ui/eds-header/eds-header.d.ts +5 -24
  436. package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +6 -3
  437. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -1
  438. package/dist/types/shared-ui/eds-tabs/eds-tabs.stories.d.ts +0 -1
  439. package/package.json +14 -4
  440. package/dist/cjs/color-c00146a8.js +0 -134
  441. package/dist/cjs/eds-avatar_27.cjs.entry.js +0 -2404
  442. package/dist/cjs/eds-card-desc_2.cjs.entry.js +0 -78
  443. package/dist/cjs/eds-card-generic.cjs.entry.js +0 -92
  444. package/dist/cjs/eds-card-wrapper.cjs.entry.js +0 -32
  445. package/dist/cjs/eds-login_2.cjs.entry.js +0 -2100
  446. package/dist/cjs/eds-tabs.cjs.entry.js +0 -130
  447. package/dist/cjs/eds-tooltip.cjs.entry.js +0 -109
  448. package/dist/cjs/toastManager-4e9535f3.js +0 -33
  449. package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +0 -86
  450. package/dist/collection/shared-ui/eds-login/eds-login.js +0 -190
  451. package/dist/components/color.js +0 -132
  452. package/dist/components/eds-card-wrapper.js +0 -49
  453. package/dist/components/eds-login.js +0 -6
  454. package/dist/components/eds-login2.js +0 -2076
  455. package/dist/components/p-05549a74.entry.js +0 -1
  456. package/dist/components/p-0e378e0e.entry.js +0 -1
  457. package/dist/components/p-13efafb9.js +0 -1
  458. package/dist/components/p-1ec25dc2.entry.js +0 -1
  459. package/dist/components/p-202f78cc.entry.js +0 -1
  460. package/dist/components/p-22b76c3c.entry.js +0 -1
  461. package/dist/components/p-22f9e720.js +0 -1
  462. package/dist/components/p-24300934.entry.js +0 -1
  463. package/dist/components/p-25f1cc6c.entry.js +0 -1
  464. package/dist/components/p-31ca07fd.entry.js +0 -1
  465. package/dist/components/p-342bc3d8.entry.js +0 -1
  466. package/dist/components/p-35068b80.entry.js +0 -1
  467. package/dist/components/p-3950debe.entry.js +0 -1
  468. package/dist/components/p-3d74d4b1.entry.js +0 -1
  469. package/dist/components/p-42f19373.entry.js +0 -1
  470. package/dist/components/p-4ecaedbc.entry.js +0 -1
  471. package/dist/components/p-5055eb25.entry.js +0 -1
  472. package/dist/components/p-5646902d.entry.js +0 -1
  473. package/dist/components/p-5ff68e7d.entry.js +0 -1
  474. package/dist/components/p-63cc5d3d.entry.js +0 -1
  475. package/dist/components/p-6506cf52.entry.js +0 -1
  476. package/dist/components/p-6aa17003.entry.js +0 -1
  477. package/dist/components/p-6e273e0f.entry.js +0 -1
  478. package/dist/components/p-6fcb754e.entry.js +0 -1
  479. package/dist/components/p-70c9af1e.entry.js +0 -1
  480. package/dist/components/p-7180a36b.entry.js +0 -1
  481. package/dist/components/p-7351cad3.entry.js +0 -1
  482. package/dist/components/p-75cc9f9e.entry.js +0 -1
  483. package/dist/components/p-7a31c31f.entry.js +0 -1
  484. package/dist/components/p-7cb60f9c.entry.js +0 -1
  485. package/dist/components/p-8a4d9b9b.entry.js +0 -1
  486. package/dist/components/p-8b7f5204.entry.js +0 -1
  487. package/dist/components/p-8db820ef.entry.js +0 -1
  488. package/dist/components/p-ae4f5e3a.entry.js +0 -1
  489. package/dist/components/p-b024183c.entry.js +0 -1
  490. package/dist/components/p-b115c3f1.entry.js +0 -1
  491. package/dist/components/p-b3a3ae59.entry.js +0 -1
  492. package/dist/components/p-b4595a9e.entry.js +0 -1
  493. package/dist/components/p-b817dceb.entry.js +0 -1
  494. package/dist/components/p-b8ca2127.entry.js +0 -1
  495. package/dist/components/p-ba6cc102.entry.js +0 -1
  496. package/dist/components/p-c51b5f04.entry.js +0 -1
  497. package/dist/components/p-c5a7d2b1.entry.js +0 -1
  498. package/dist/components/p-c5c782e7.entry.js +0 -1
  499. package/dist/components/p-c5f98369.entry.js +0 -1
  500. package/dist/components/p-c604063d.entry.js +0 -1
  501. package/dist/components/p-c9a19e93.entry.js +0 -1
  502. package/dist/components/p-cccacbd3.js +0 -2
  503. package/dist/components/p-d164a75d.entry.js +0 -1
  504. package/dist/components/p-d4c920fa.entry.js +0 -1
  505. package/dist/components/p-d82cc261.entry.js +0 -1
  506. package/dist/components/p-da6e49a9.entry.js +0 -1
  507. package/dist/components/p-dcd4de1f.entry.js +0 -1
  508. package/dist/components/p-e8a2d709.entry.js +0 -1
  509. package/dist/components/p-ea942740.entry.js +0 -1
  510. package/dist/components/p-eb0b93d5.js +0 -1
  511. package/dist/components/p-ece20356.entry.js +0 -1
  512. package/dist/components/p-ed6fd4b8.entry.js +0 -1
  513. package/dist/components/p-f3822d6b.entry.js +0 -1
  514. package/dist/components/p-f539febe.entry.js +0 -1
  515. package/dist/components/p-f7f4b247.entry.js +0 -1
  516. package/dist/components/p-fdbfa776.entry.js +0 -1
  517. package/dist/components/p-fe27f4a9.entry.js +0 -1
  518. package/dist/components/toastManager.js +0 -31
  519. package/dist/esm/color-2554aad6.js +0 -132
  520. package/dist/esm/eds-avatar_27.entry.js +0 -2374
  521. package/dist/esm/eds-card-desc_2.entry.js +0 -73
  522. package/dist/esm/eds-card-generic.entry.js +0 -88
  523. package/dist/esm/eds-card-wrapper.entry.js +0 -28
  524. package/dist/esm/eds-login_2.entry.js +0 -2095
  525. package/dist/esm/eds-tabs.entry.js +0 -126
  526. package/dist/esm/eds-tooltip.entry.js +0 -105
  527. package/dist/esm/toastManager-d9eee791.js +0 -31
  528. package/dist/types/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.d.ts +0 -23
  529. package/dist/types/shared-ui/eds-login/eds-login.d.ts +0 -67
  530. /package/dist/collection/components/eds-section/eds-section-core/{eds-section-core.stories.js → eds-section-core.donotstories.js} +0 -0
  531. /package/dist/collection/components/eds-timeline/{eds-timeline.stories.js → eds-timeline.donot-stories.js} +0 -0
  532. /package/dist/types/components/eds-section/eds-section-core/{eds-section-core.stories.d.ts → eds-section-core.donotstories.d.ts} +0 -0
  533. /package/dist/types/components/eds-timeline/{eds-timeline.stories.d.ts → eds-timeline.donot-stories.d.ts} +0 -0
  534. /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.d.ts +0 -0
  535. /package/dist/types/{components → shared-ui}/eds-steps/eds-steps.stories.d.ts +0 -0
@@ -0,0 +1,229 @@
1
+ // src/components/eds-pie/eds-pie.tsx
2
+ import { h, Host } from "@stencil/core";
3
+ export class EdsPie {
4
+ constructor() {
5
+ this.size = 200;
6
+ this.slices = [];
7
+ this.thickness = 1;
8
+ this.display = 'value';
9
+ this.legend = true;
10
+ this.colorScheme = 'semantic';
11
+ }
12
+ parseSlices() {
13
+ if (typeof this.slices === 'string') {
14
+ try {
15
+ return JSON.parse(this.slices);
16
+ }
17
+ catch (_a) {
18
+ // eslint-disable-next-line
19
+ console.warn('eds-pie: invalid slices JSON');
20
+ }
21
+ }
22
+ return Array.isArray(this.slices) ? this.slices : [];
23
+ }
24
+ polarToCartesian(cx, cy, r, angle) {
25
+ const rad = (angle - 90) * (Math.PI / 180);
26
+ return { x: cx + r * Math.cos(rad), y: cy + r * Math.sin(rad) };
27
+ }
28
+ describeArc(x, y, r, startAngle, endAngle) {
29
+ const start = this.polarToCartesian(x, y, r, endAngle);
30
+ const end = this.polarToCartesian(x, y, r, startAngle);
31
+ const largeArcFlag = endAngle - startAngle <= 180 ? '0' : '1';
32
+ return [`M ${start.x} ${start.y}`, `A ${r} ${r} 0 ${largeArcFlag} 0 ${end.x} ${end.y}`, `L ${x} ${y}`, 'Z'].join(' ');
33
+ }
34
+ render() {
35
+ const raw = this.parseSlices();
36
+ if (raw.length > EdsPie.MAX_SLICES) {
37
+ // eslint-disable-next-line
38
+ console.warn(`eds-pie: too many slices (${raw.length}), results may overlap.`);
39
+ }
40
+ const total = raw.reduce((sum, s) => sum + s.value, 0) || 1;
41
+ const palette = [...EdsPie.PALETTES[this.colorScheme]];
42
+ const sorted = [...raw].sort((a, b) => b.value - a.value);
43
+ let cumulative = 0;
44
+ const processed = sorted.map((s) => {
45
+ const angle = (s.value / total) * 360;
46
+ const start = cumulative, end = cumulative + angle;
47
+ cumulative = end;
48
+ const color = s.color || palette.shift() || 'var(--color-chart-neutral-1)';
49
+ return Object.assign(Object.assign({}, s), { start, end, color });
50
+ });
51
+ const diameter = this.size;
52
+ const radius = diameter / 2;
53
+ // clamp into [0.5, 1]
54
+ const tClamped = Math.min(Math.max(this.thickness, 0.5), 1);
55
+ const innerRadius = radius * (1 - tClamped);
56
+ const outerRadius = radius;
57
+ // **replace** the previous labelRadius line with this:
58
+ const labelRadius = (radius + innerRadius) / 2;
59
+ // Build ARIA description
60
+ const ariaLabel = processed
61
+ .map((s) => `${s.label}: ${this.display === 'percent' ? `${Math.round((s.value / total) * 100)}%` : s.value}`)
62
+ .join(', ');
63
+ return (h(Host, null, h("div", { class: "wrapper" }, h("svg", { width: diameter, height: diameter, role: "img", "aria-label": `Pie chart: ${ariaLabel}`, class: "pie-chart" }, h("title", null, "Pie chart"), h("g", null, processed.map((s) => (h("path", { key: s.id, d: this.describeArc(radius, radius, outerRadius, s.start, s.end), fill: s.color }))), innerRadius > 0 && h("circle", { cx: radius, cy: radius, r: innerRadius, fill: "var(--white)" }), processed.map((s) => {
64
+ const midAngle = s.start + (s.end - s.start) / 2;
65
+ const { x, y } = this.polarToCartesian(radius, radius, labelRadius, midAngle);
66
+ const text = this.display === 'percent' ? `${Math.round((s.value / total) * 100)}%` : String(s.value);
67
+ return (h("text", { key: s.id, x: x, y: y, class: "f-ui-02", "text-anchor": "middle", "alignment-baseline": "middle" }, text));
68
+ }))), this.legend && (h("ul", { class: "legend", role: "list" }, processed.map((s) => (h("li", { key: s.id, role: "listitem", tabindex: "0", class: "legend-item" }, h("span", { class: "legend-swatch", style: { backgroundColor: s.color } }), h("span", { class: "legend-label" }, s.label)))))))));
69
+ }
70
+ static get is() { return "eds-pie"; }
71
+ static get encapsulation() { return "shadow"; }
72
+ static get originalStyleUrls() {
73
+ return {
74
+ "$": ["eds-pie.css"]
75
+ };
76
+ }
77
+ static get styleUrls() {
78
+ return {
79
+ "$": ["eds-pie.css"]
80
+ };
81
+ }
82
+ static get properties() {
83
+ return {
84
+ "size": {
85
+ "type": "number",
86
+ "mutable": false,
87
+ "complexType": {
88
+ "original": "number",
89
+ "resolved": "number",
90
+ "references": {}
91
+ },
92
+ "required": false,
93
+ "optional": false,
94
+ "docs": {
95
+ "tags": [],
96
+ "text": "Diameter in pixels"
97
+ },
98
+ "attribute": "size",
99
+ "reflect": false,
100
+ "defaultValue": "200"
101
+ },
102
+ "slices": {
103
+ "type": "string",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "PieSlice[] | string",
107
+ "resolved": "PieSlice[] | string",
108
+ "references": {
109
+ "PieSlice": {
110
+ "location": "global",
111
+ "id": "global::PieSlice"
112
+ }
113
+ }
114
+ },
115
+ "required": false,
116
+ "optional": false,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": "Array or JSON string of slices"
120
+ },
121
+ "attribute": "slices",
122
+ "reflect": false,
123
+ "defaultValue": "[]"
124
+ },
125
+ "thickness": {
126
+ "type": "number",
127
+ "mutable": false,
128
+ "complexType": {
129
+ "original": "number",
130
+ "resolved": "number",
131
+ "references": {}
132
+ },
133
+ "required": false,
134
+ "optional": false,
135
+ "docs": {
136
+ "tags": [],
137
+ "text": "Inner-radius fraction (always 0.5-1)"
138
+ },
139
+ "attribute": "thickness",
140
+ "reflect": false,
141
+ "defaultValue": "1"
142
+ },
143
+ "display": {
144
+ "type": "string",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "DisplayMode",
148
+ "resolved": "\"percent\" | \"value\"",
149
+ "references": {
150
+ "DisplayMode": {
151
+ "location": "global",
152
+ "id": "global::DisplayMode"
153
+ }
154
+ }
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": "Show raw value or percentage"
161
+ },
162
+ "attribute": "display",
163
+ "reflect": false,
164
+ "defaultValue": "'value'"
165
+ },
166
+ "legend": {
167
+ "type": "boolean",
168
+ "mutable": false,
169
+ "complexType": {
170
+ "original": "boolean",
171
+ "resolved": "boolean",
172
+ "references": {}
173
+ },
174
+ "required": false,
175
+ "optional": false,
176
+ "docs": {
177
+ "tags": [],
178
+ "text": "Show legend"
179
+ },
180
+ "attribute": "legend",
181
+ "reflect": false,
182
+ "defaultValue": "true"
183
+ },
184
+ "colorScheme": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "'semantic' | 'mono'",
189
+ "resolved": "\"mono\" | \"semantic\"",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": "Color scheme: semantic, brand, or mono"
197
+ },
198
+ "attribute": "color-scheme",
199
+ "reflect": false,
200
+ "defaultValue": "'semantic'"
201
+ }
202
+ };
203
+ }
204
+ }
205
+ EdsPie.MAX_SLICES = 9;
206
+ EdsPie.PALETTES = {
207
+ semantic: [
208
+ 'var(--color-chart-accent)',
209
+ 'var(--color-chart-strong)',
210
+ 'var(--color-chart-accent-dark)',
211
+ 'var(--color-chart-lighter)',
212
+ 'var(--color-chart-accent-light)',
213
+ 'var(--color-chart-lightest)',
214
+ 'var(--color-chart-accent-lighter)',
215
+ 'var(--color-chart-darker)',
216
+ 'var(--color-chart-accent-lightest)'
217
+ ],
218
+ mono: [
219
+ 'var(--grey-700)',
220
+ 'var(--grey-500)',
221
+ 'var(--grey-300)',
222
+ 'var(--grey-100)',
223
+ 'var(--grey-800)',
224
+ 'var(--grey-600)',
225
+ 'var(--grey-400)',
226
+ 'var(--grey-200)',
227
+ 'var(--grey-900)'
228
+ ]
229
+ };
@@ -0,0 +1,76 @@
1
+ export default {
2
+ title: 'Charts/Pie',
3
+ component: 'eds-pie',
4
+ argTypes: {
5
+ size: {
6
+ control: 'number',
7
+ description: 'Diameter of the pie chart (in pixels)'
8
+ },
9
+ slices: {
10
+ control: 'object',
11
+ description: 'Array of slice objects or JSON string representation'
12
+ },
13
+ thickness: {
14
+ control: { type: 'range', min: 0.5, max: 1, step: 0.01 },
15
+ description: 'Inner mask thickness as fraction of radius (0.5–1)'
16
+ },
17
+ display: {
18
+ control: 'select',
19
+ options: ['value', 'percent'],
20
+ description: 'Show raw values or percentages in slice labels'
21
+ },
22
+ legend: {
23
+ control: 'boolean',
24
+ description: 'Toggle the legend display'
25
+ },
26
+ colorScheme: {
27
+ control: 'select',
28
+ options: ['semantic', 'mono'],
29
+ description: 'Color scheme: semantic or mono'
30
+ }
31
+ },
32
+ args: {
33
+ size: 300,
34
+ slices: [
35
+ { id: 'a', value: 10, label: 'Series A' },
36
+ { id: 'b', value: 20, label: 'Series B' },
37
+ { id: 'c', value: 30, label: 'Series C' }
38
+ ],
39
+ thickness: 1,
40
+ display: 'value',
41
+ legend: true,
42
+ colorScheme: 'semantic'
43
+ }
44
+ };
45
+ export const Default = {
46
+ render: (args) => `
47
+ <div class="flex items-center justify-center">
48
+ <eds-pie
49
+ size="${args.size}"
50
+ thickness="${args.thickness}"
51
+ display="${args.display}"
52
+ legend="${args.legend}"
53
+ color-scheme="${args.colorScheme}"
54
+ slices='${JSON.stringify(args.slices)}'
55
+ ></eds-pie>
56
+ </div>
57
+ `
58
+ };
59
+ export const Thickness = {
60
+ render: (args) => `
61
+ <div class="flex items-center justify-center">
62
+ <eds-pie
63
+ size="${args.size}"
64
+ thickness="${args.thickness}"
65
+ display="${args.display}"
66
+ legend="${args.legend}"
67
+ color-scheme="${args.colorScheme}"
68
+ slices='${JSON.stringify(args.slices)}'
69
+ ></eds-pie>
70
+ </div>
71
+ `,
72
+ args: {
73
+ size: 200,
74
+ thickness: 0.5
75
+ }
76
+ };
@@ -1,37 +1,16 @@
1
1
  import { h } from "@stencil/core";
2
- import { toast } from "../../../utils/toastManager";
3
2
  /**
4
- * A custom select input component that supports both static and dynamic options.
5
- *
6
- * Options can be provided in two formats:
7
- * 1. Dynamic fetch configuration:
8
- * [
9
- * { endpoint: "http://localhost/api/applications", value: "_id", label: "title" }
10
- * ]
11
- * 2. Static options:
12
- * [
13
- * { value: "react", label: "React" },
14
- * { value: "angular", label: "Angular" },
15
- * { value: "vue", label: "Vue.js" },
16
- * // etc.
17
- * ]
18
- *
19
- * The component will automatically fetch data if a dynamic configuration is provided.
3
+ * `eds-input-select` is a lightweight, presentational select component.
4
+ * It accepts a static list of { value, label } options and emits a changeEvent when selection changes.
20
5
  */
21
6
  /**
22
7
  * @internal
23
8
  */
24
9
  export class EdsInputSelect {
25
10
  constructor() {
26
- /**
27
- * Event handler for the select input's change event.
28
- * Emits the selected value.
29
- *
30
- * @param event The change event from the select input.
31
- */
32
11
  this.handleChange = (event) => {
33
12
  const target = event.target;
34
- this.changeEvent.emit(target.value);
13
+ this.edsselect.emit(target.value);
35
14
  };
36
15
  this.inputId = undefined;
37
16
  this.name = undefined;
@@ -41,71 +20,18 @@ export class EdsInputSelect {
41
20
  this.error = false;
42
21
  this.required = false;
43
22
  this.options = [];
44
- this.labelKey = 'label';
45
- this.valueKey = 'value';
46
23
  this.value = undefined;
47
- this.dynamicOptions = [];
48
- this.loading = false;
49
- this.dynamicValueKey = 'value';
50
- this.dynamicLabelKey = 'label';
51
- this.hasFetched = false;
52
- }
53
- componentWillLoad() {
54
- this.loadOptions();
55
- }
56
- /**
57
- * Watches for changes in the `options` prop and loads the options accordingly.
58
- *
59
- * If the first object in the options array contains an "endpoint" key,
60
- * the component will fetch options from the specified endpoint using the configured keys.
61
- * Otherwise, it will treat the options as static.
62
- *
63
- * @async
64
- */
65
- async loadOptions() {
66
- // If the first option contains an "endpoint" key, assume dynamic fetch mode.
67
- if (this.options && this.options.length > 0 && this.options[0].endpoint) {
68
- if (this.hasFetched) {
69
- return;
70
- }
71
- const config = this.options[0];
72
- const endpoint = config.endpoint;
73
- this.dynamicValueKey = config.value || 'value';
74
- this.dynamicLabelKey = config.label || 'label';
75
- this.loading = true;
76
- try {
77
- const response = await fetch(endpoint);
78
- if (!response.ok) {
79
- toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
80
- }
81
- const data = await response.json();
82
- // Assume the API returns an array of objects.
83
- this.dynamicOptions = data;
84
- this.hasFetched = true;
85
- }
86
- catch (error) {
87
- //console.error('Error fetching dynamic options:', error);
88
- toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
89
- }
90
- finally {
91
- this.loading = false;
92
- }
93
- }
94
- else {
95
- // No dynamic configuration found, assume static options.
96
- this.dynamicOptions = this.options;
97
- this.dynamicValueKey = this.valueKey;
98
- this.dynamicLabelKey = this.labelKey;
99
- }
100
- }
101
- getValueByPath(obj, path) {
102
- return path.split('.').reduce((acc, part) => acc && acc[part], obj);
103
24
  }
104
25
  render() {
105
- return (h("div", { key: '1fa3ad5de7ad829f49c9a12b0ac3f42e91aef37e', class: "relative", "aria-busy": this.loading ? 'true' : 'false' }, h("select", { key: '988d82773e794b131c4b1283949db0767e9d38a8', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, h("option", { key: '62377a7228da11569a3e0d2af1e72e61fb90ef50', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => {
106
- const optionValue = this.getValueByPath(option, this.dynamicValueKey);
107
- return (h("option", { key: index, value: optionValue, selected: optionValue === this.value }, this.getValueByPath(option, this.dynamicLabelKey)));
108
- })), h("span", { key: 'f16a73e1fd3be27c221456b359088e8daf3f2e9b', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, h("eds-icon-wrapper", { key: '5654f534af4c9ae58e7e4157535a932c3d062a9c', class: "w-20 h-20", icon: "chevron-right" }))));
26
+ const selectId = this.inputId || this.name;
27
+ const placeholderText = this.placeholder || `Please select ${this.name}`;
28
+ const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
29
+ return (h("div", { key: '0e1bf5f1ebf30d675e0b4927e7812a305f58d2b9', class: "relative" }, h("select", { key: 'b92542caca12d77e3160baa84760b37bbbe172c7', id: selectId, name: this.name, class: {
30
+ input: true,
31
+ 'input-error': this.error,
32
+ 'px-4': true,
33
+ 'py-2': true
34
+ }, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, h("option", { key: 'fa911a07fd0053f6c7e5044aac3e6d0846344899', value: "", disabled: true, hidden: true }, placeholderText), this.options.map((opt, index) => (h("option", { key: index, value: opt.value, selected: opt.value === this.value }, opt.label)))), h("span", { key: 'afa3c7ad3c583dec2ffc2fd5087d7695509a2a25', class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, h("eds-icon-wrapper", { key: '1bb2a24fc9798a7359b9b45019b1432ff2e50e70', class: "w-20 h-20", icon: "chevron-right" }))));
109
35
  }
110
36
  static get is() { return "eds-input-select"; }
111
37
  static get properties() {
@@ -122,7 +48,7 @@ export class EdsInputSelect {
122
48
  "optional": true,
123
49
  "docs": {
124
50
  "tags": [],
125
- "text": "Optional id for the input. If not provided, the component uses the `name` property."
51
+ "text": "Optional id for the select element; defaults to name"
126
52
  },
127
53
  "attribute": "input-id",
128
54
  "reflect": false
@@ -139,7 +65,7 @@ export class EdsInputSelect {
139
65
  "optional": false,
140
66
  "docs": {
141
67
  "tags": [],
142
- "text": "The name attribute of the select input. Also used as the fallback id."
68
+ "text": "Name attribute of the select"
143
69
  },
144
70
  "attribute": "name",
145
71
  "reflect": false
@@ -156,7 +82,7 @@ export class EdsInputSelect {
156
82
  "optional": true,
157
83
  "docs": {
158
84
  "tags": [],
159
- "text": "Placeholder text (not used in the native select, but can be used for custom implementations)."
85
+ "text": "Placeholder shown as a disabled hidden option"
160
86
  },
161
87
  "attribute": "placeholder",
162
88
  "reflect": false
@@ -173,7 +99,7 @@ export class EdsInputSelect {
173
99
  "optional": false,
174
100
  "docs": {
175
101
  "tags": [],
176
- "text": "If true, the select input will be disabled."
102
+ "text": "Disable the select"
177
103
  },
178
104
  "attribute": "disabled",
179
105
  "reflect": false,
@@ -191,7 +117,7 @@ export class EdsInputSelect {
191
117
  "optional": false,
192
118
  "docs": {
193
119
  "tags": [],
194
- "text": "If true, indicates that there is an associated message (help or error)."
120
+ "text": "Show associated message (help or error)"
195
121
  },
196
122
  "attribute": "has-message",
197
123
  "reflect": false,
@@ -209,7 +135,7 @@ export class EdsInputSelect {
209
135
  "optional": false,
210
136
  "docs": {
211
137
  "tags": [],
212
- "text": "If true, the select input is in an error state."
138
+ "text": "Mark field as invalid"
213
139
  },
214
140
  "attribute": "error",
215
141
  "reflect": false,
@@ -227,7 +153,7 @@ export class EdsInputSelect {
227
153
  "optional": false,
228
154
  "docs": {
229
155
  "tags": [],
230
- "text": "If true, the select input is marked as required."
156
+ "text": "Mark field as required"
231
157
  },
232
158
  "attribute": "required",
233
159
  "reflect": false,
@@ -237,54 +163,23 @@ export class EdsInputSelect {
237
163
  "type": "unknown",
238
164
  "mutable": false,
239
165
  "complexType": {
240
- "original": "{ [key: string]: any }[]",
241
- "resolved": "{ [key: string]: any; }[]",
242
- "references": {}
166
+ "original": "Array<{ value: string | number; label: string }>",
167
+ "resolved": "{ value: string | number; label: string; }[]",
168
+ "references": {
169
+ "Array": {
170
+ "location": "global",
171
+ "id": "global::Array"
172
+ }
173
+ }
243
174
  },
244
175
  "required": false,
245
176
  "optional": false,
246
177
  "docs": {
247
178
  "tags": [],
248
- "text": "Options can be provided in two formats:\n\n1. Dynamic fetch configuration:\n [\n { endpoint: \"http://localhost/api/applications\", value: \"_id\", label: \"title\" }\n ]\n\n2. Static options:\n [\n { value: \"react\", label: \"React\" },\n { value: \"angular\", label: \"Angular\" },\n { value: \"vue\", label: \"Vue.js\" },\n // etc.\n ]"
179
+ "text": "List of static options: { value, label }"
249
180
  },
250
181
  "defaultValue": "[]"
251
182
  },
252
- "labelKey": {
253
- "type": "string",
254
- "mutable": false,
255
- "complexType": {
256
- "original": "string",
257
- "resolved": "string",
258
- "references": {}
259
- },
260
- "required": false,
261
- "optional": false,
262
- "docs": {
263
- "tags": [],
264
- "text": "For static options, this property defines the key used to retrieve the display label."
265
- },
266
- "attribute": "label-key",
267
- "reflect": false,
268
- "defaultValue": "'label'"
269
- },
270
- "valueKey": {
271
- "type": "string",
272
- "mutable": false,
273
- "complexType": {
274
- "original": "string",
275
- "resolved": "string",
276
- "references": {}
277
- },
278
- "required": false,
279
- "optional": false,
280
- "docs": {
281
- "tags": [],
282
- "text": "For static options, this property defines the key used to retrieve the option value."
283
- },
284
- "attribute": "value-key",
285
- "reflect": false,
286
- "defaultValue": "'value'"
287
- },
288
183
  "value": {
289
184
  "type": "any",
290
185
  "mutable": false,
@@ -297,35 +192,23 @@ export class EdsInputSelect {
297
192
  "optional": true,
298
193
  "docs": {
299
194
  "tags": [],
300
- "text": "The currently selected value."
195
+ "text": "Currently selected value"
301
196
  },
302
197
  "attribute": "value",
303
198
  "reflect": false
304
199
  }
305
200
  };
306
201
  }
307
- static get states() {
308
- return {
309
- "dynamicOptions": {},
310
- "loading": {},
311
- "dynamicValueKey": {},
312
- "dynamicLabelKey": {},
313
- "hasFetched": {}
314
- };
315
- }
316
202
  static get events() {
317
203
  return [{
318
- "method": "changeEvent",
319
- "name": "changeEvent",
204
+ "method": "edsselect",
205
+ "name": "edsselect",
320
206
  "bubbles": true,
321
207
  "cancelable": true,
322
208
  "composed": true,
323
209
  "docs": {
324
- "tags": [{
325
- "name": "event",
326
- "text": "changeEvent"
327
- }],
328
- "text": "Emitted when the value of the select input changes."
210
+ "tags": [],
211
+ "text": "Emitted when selection changes"
329
212
  },
330
213
  "complexType": {
331
214
  "original": "string | number",
@@ -334,10 +217,4 @@ export class EdsInputSelect {
334
217
  }
335
218
  }];
336
219
  }
337
- static get watchers() {
338
- return [{
339
- "propName": "options",
340
- "methodName": "loadOptions"
341
- }];
342
- }
343
220
  }