@ebrains/components 0.5.0-alpha.0 → 0.6.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 (170) hide show
  1. package/dist/cjs/{analytics-223ea8e5.js → analytics-d8fb3fdd.js} +9 -0
  2. package/dist/cjs/components.cjs.js +1 -1
  3. package/dist/cjs/eds-accordion_13.cjs.entry.js +911 -0
  4. package/dist/cjs/eds-alert.cjs.entry.js +97 -0
  5. package/dist/cjs/eds-block-break.cjs.entry.js +21 -0
  6. package/dist/cjs/eds-breadcrumb.cjs.entry.js +149 -0
  7. package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
  8. package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
  9. package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
  10. package/dist/cjs/eds-dropdown_2.cjs.entry.js +2 -2
  11. package/dist/cjs/eds-footer.cjs.entry.js +41 -0
  12. package/dist/cjs/eds-form.cjs.entry.js +1 -1
  13. package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +100 -0
  14. package/dist/cjs/eds-header.cjs.entry.js +97 -0
  15. package/dist/cjs/eds-link.cjs.entry.js +214 -0
  16. package/dist/cjs/eds-login.cjs.entry.js +1 -1
  17. package/dist/cjs/eds-logo.cjs.entry.js +78 -0
  18. package/dist/cjs/eds-modal.cjs.entry.js +1 -1
  19. package/dist/cjs/eds-pagination_2.cjs.entry.js +1 -1
  20. package/dist/cjs/eds-rating.cjs.entry.js +58 -0
  21. package/dist/cjs/eds-social-networks.cjs.entry.js +66 -0
  22. package/dist/cjs/eds-steps.cjs.entry.js +65 -0
  23. package/dist/cjs/eds-switch.cjs.entry.js +38 -0
  24. package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
  25. package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
  26. package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
  27. package/dist/cjs/eds-user.cjs.entry.js +1 -1
  28. package/dist/cjs/index-f08e4f5c.js +52 -20
  29. package/dist/cjs/loader.cjs.js +1 -1
  30. package/dist/collection/collection-manifest.json +2 -1
  31. package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
  32. package/dist/collection/components/eds-button/eds-button.js +21 -16
  33. package/dist/collection/components/eds-link/eds-link.css +6793 -6676
  34. package/dist/collection/components/eds-matomo-notice/eds-matomo-notice.js +207 -0
  35. package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.js +1 -1
  36. package/dist/collection/components/eds-steps/eds-steps.css +60 -5
  37. package/dist/collection/components/eds-steps/eds-steps.js +5 -4
  38. package/dist/collection/components/eds-tag/eds-tag.js +4 -35
  39. package/dist/collection/components/eds-toast/eds-toast.css +91 -0
  40. package/dist/collection/components/eds-toast/eds-toast.js +18 -9
  41. package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +236 -140
  42. package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +10 -10
  43. package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +2 -2
  44. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
  45. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +87 -0
  46. package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
  47. package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -53
  48. package/dist/collection/shared-ui/eds-header/eds-header.js +2 -2
  49. package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
  50. package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
  51. package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
  52. package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
  53. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +1 -1
  54. package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +2 -1
  55. package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
  56. package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
  57. package/dist/components/analytics.js +9 -1
  58. package/dist/components/components.css +520 -0
  59. package/dist/components/components.esm.js +1 -1
  60. package/dist/components/eds-accordion2.js +2 -2
  61. package/dist/components/eds-button2.js +11 -15
  62. package/dist/components/eds-card-section.js +4 -4
  63. package/dist/components/eds-cookies-preference.d.ts +11 -0
  64. package/dist/components/eds-cookies-preference.js +88 -0
  65. package/dist/components/eds-footer2.js +3 -13
  66. package/dist/components/eds-header.js +2 -2
  67. package/dist/components/eds-link2.js +1 -1
  68. package/dist/components/eds-login.js +1 -1
  69. package/dist/components/eds-matomo-notice.js +1 -140
  70. package/dist/components/eds-matomo-notice2.js +127 -0
  71. package/dist/components/eds-social-networks2.js +1 -1
  72. package/dist/components/eds-steps.js +7 -6
  73. package/dist/components/eds-tabs-content.js +2 -2
  74. package/dist/components/eds-tabs.js +1 -1
  75. package/dist/components/eds-tag2.js +1 -9
  76. package/dist/components/eds-toast-manager.js +4 -3
  77. package/dist/components/eds-toast2.js +13 -10
  78. package/dist/components/eds-user-modal2.js +1 -1
  79. package/dist/components/eds-user.js +1 -1
  80. package/dist/components/p-045681d7.entry.js +1 -0
  81. package/dist/components/p-0a3b2576.entry.js +1 -0
  82. package/dist/components/{p-92e16cc9.entry.js → p-10b81c47.entry.js} +1 -1
  83. package/dist/components/{p-89227919.js → p-13efafb9.js} +1 -1
  84. package/dist/components/{p-d69ef196.entry.js → p-1ae529f3.entry.js} +1 -1
  85. package/dist/components/p-21d42cf3.entry.js +1 -0
  86. package/dist/components/p-34a65e58.entry.js +1 -0
  87. package/dist/components/p-3a7aa1eb.entry.js +1 -0
  88. package/dist/components/p-42d3c324.entry.js +1 -0
  89. package/dist/components/{p-f08eac56.entry.js → p-4b3fbd6d.entry.js} +1 -1
  90. package/dist/components/p-4ea027ac.entry.js +1 -0
  91. package/dist/components/p-5097066f.entry.js +1 -0
  92. package/dist/components/p-5a2b8b6c.entry.js +1 -0
  93. package/dist/components/{p-72b42d77.entry.js → p-5ff31f14.entry.js} +1 -1
  94. package/dist/components/{p-030f67c1.entry.js → p-659ed449.entry.js} +1 -1
  95. package/dist/components/{p-75795b05.entry.js → p-7b3b26b0.entry.js} +1 -1
  96. package/dist/components/{p-0e0e1815.entry.js → p-88751c8b.entry.js} +1 -1
  97. package/dist/components/{p-8b583210.entry.js → p-9579f9c2.entry.js} +1 -1
  98. package/dist/components/p-b50c8d49.entry.js +1 -0
  99. package/dist/components/{p-59405ecf.entry.js → p-bd43d83c.entry.js} +1 -1
  100. package/dist/components/p-c683be2c.entry.js +1 -0
  101. package/dist/components/{p-209fa119.entry.js → p-d2a0b896.entry.js} +1 -1
  102. package/dist/components/p-d56d9dda.entry.js +1 -0
  103. package/dist/components/p-d5850ab3.entry.js +1 -0
  104. package/dist/components/p-e334f5bc.entry.js +1 -0
  105. package/dist/components/{p-def72462.entry.js → p-fad10768.entry.js} +1 -1
  106. package/dist/esm/{analytics-1cde8e4a.js → analytics-44b1416b.js} +9 -1
  107. package/dist/esm/components.js +1 -1
  108. package/dist/esm/eds-accordion_13.entry.js +895 -0
  109. package/dist/esm/eds-alert.entry.js +93 -0
  110. package/dist/esm/eds-block-break.entry.js +17 -0
  111. package/dist/esm/eds-breadcrumb.entry.js +145 -0
  112. package/dist/esm/eds-card-project.entry.js +1 -1
  113. package/dist/esm/eds-card-tool.entry.js +1 -1
  114. package/dist/esm/eds-cookies-preference.entry.js +35 -0
  115. package/dist/esm/eds-dropdown_2.entry.js +2 -2
  116. package/dist/esm/eds-footer.entry.js +37 -0
  117. package/dist/esm/eds-form.entry.js +1 -1
  118. package/dist/esm/eds-fullscreen-menu.entry.js +96 -0
  119. package/dist/esm/eds-header.entry.js +93 -0
  120. package/dist/esm/eds-link.entry.js +210 -0
  121. package/dist/esm/eds-login.entry.js +1 -1
  122. package/dist/esm/eds-logo.entry.js +74 -0
  123. package/dist/esm/eds-modal.entry.js +1 -1
  124. package/dist/esm/eds-pagination_2.entry.js +1 -1
  125. package/dist/esm/eds-rating.entry.js +54 -0
  126. package/dist/esm/eds-social-networks.entry.js +62 -0
  127. package/dist/esm/eds-steps.entry.js +61 -0
  128. package/dist/esm/eds-switch.entry.js +34 -0
  129. package/dist/esm/eds-tabs-content.entry.js +3 -3
  130. package/dist/esm/eds-tabs.entry.js +2 -2
  131. package/dist/esm/eds-tooltip.entry.js +1 -1
  132. package/dist/esm/eds-user.entry.js +1 -1
  133. package/dist/esm/index-e96badea.js +52 -20
  134. package/dist/esm/loader.js +1 -1
  135. package/dist/hydrate/index.js +148 -136
  136. package/dist/hydrate/index.mjs +148 -136
  137. package/dist/types/components/eds-button/eds-button.d.ts +3 -1
  138. package/dist/types/components/eds-matomo-notice/eds-matomo-notice.d.ts +53 -0
  139. package/dist/types/components/eds-steps/eds-steps.d.ts +0 -1
  140. package/dist/types/components/eds-tag/eds-tag.d.ts +1 -25
  141. package/dist/types/components/eds-toast/eds-toast.d.ts +4 -5
  142. package/dist/types/components.d.ts +101 -88
  143. package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +5 -5
  144. package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +1 -1
  145. package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.d.ts +27 -0
  146. package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.st.d.ts +27 -0
  147. package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +2 -15
  148. package/package.json +1 -1
  149. package/dist/cjs/eds-accordion.cjs.entry.js +0 -84
  150. package/dist/cjs/eds-alert_17.cjs.entry.js +0 -1392
  151. package/dist/cjs/eds-avatar_4.cjs.entry.js +0 -187
  152. package/dist/cjs/eds-card-generic.cjs.entry.js +0 -104
  153. package/dist/cjs/eds-card-section.cjs.entry.js +0 -55
  154. package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -109
  155. package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -164
  156. package/dist/components/p-0bafc5ae.entry.js +0 -1
  157. package/dist/components/p-3babd772.entry.js +0 -1
  158. package/dist/components/p-505ddcda.entry.js +0 -1
  159. package/dist/components/p-8d19a05b.entry.js +0 -1
  160. package/dist/components/p-9826acae.entry.js +0 -1
  161. package/dist/components/p-eeeb0d83.entry.js +0 -1
  162. package/dist/esm/eds-accordion.entry.js +0 -80
  163. package/dist/esm/eds-alert_17.entry.js +0 -1372
  164. package/dist/esm/eds-avatar_4.entry.js +0 -180
  165. package/dist/esm/eds-card-generic.entry.js +0 -100
  166. package/dist/esm/eds-card-section.entry.js +0 -51
  167. package/dist/esm/eds-matomo-notice.entry.js +0 -105
  168. package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -77
  169. /package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.css +0 -0
  170. /package/dist/types/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -0
@@ -1 +0,0 @@
1
- import{r as e,h as t}from"./p-7a8b9de5.js";import{g as n}from"./p-eb0b93d5.js";import{c as i}from"./p-112122d6.js";const r=class{constructor(t){e(this,t),this.firstName="User",this.lastName="Avatar",this.picture=void 0,this.initials=void 0,this.color=void 0,this.rounded=!1,this.initialsStrong=!1}get computedInitials(){return this.initials?(this.initials.match(/.{1,3}/g)||[])[0]||"":this.firstName&&this.lastName?`${this.firstName.charAt(0)}${this.lastName.charAt(0)}`.toUpperCase():void 0}get containerClasses(){return["border-inside","aspect-1x1","flex","items-center","justify-center","overflow-hidden",this.picture?"":"px-4",this.rounded?"rounded-pill border-inside-pill w-32":"w-[54px] rounded-sm",this.color?"border-inside-inverse":"","grey"===this.color?"bg-dark":this.color&&!this.picture?n({color:this.color,direction:"top",pseudo:!1}):this.picture?"":"bg-strongest text-accent"].join(" ")}render(){return t("div",{key:"47ee5ffd12c0f90c536dea77b3ffa9120d67f37f",class:this.containerClasses},this.picture?t("eds-img",{src:this.picture,width:54,height:54,sizes:"120px",alt:`${this.firstName} ${this.lastName}`,lazyload:!0,withBg:!0}):t("abbr",{title:this.computedInitials||`${this.firstName} ${this.lastName}`,class:"!no-underline f-ui-01"},this.computedInitials))}};r.style=".border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border: 2px solid rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border: 2px solid rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.aspect-1x1 {\n aspect-ratio: 1/1;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.px-4 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xs {\n border-radius: 4px;\n}\n\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-default {\n color: var(--black);\n}\n\n.\\!no-underline {\n text-decoration-line: none !important;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.w-32 {\n width: 2rem;\n}\n\n.w-44 {\n width: 2.75rem;\n}\n\n.w-\\[54px\\] {\n width: 54px;\n}";const a=class{constructor(t){e(this,t),this.description=void 0,this.descClass="f-ui-03-light",this.truncate=!0,this.truncateLines="3"}getTruncateClass(){return this.truncate&&this.truncateLines?`line-clamp-${this.truncateLines}`:""}render(){return t("p",{key:"71495cbd6ef4e7d66c4c22a37f8120624ecf57fb",class:`text-light ${this.descClass}`},t("span",{key:"8708178f7b48cc1f31aac749f50fe92b72c39ab8",class:this.getTruncateClass()},this.description))}};a.style=".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-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";const o=class{constructor(t){e(this,t),this.url=void 0,this.titleClass=void 0,this.headingLevel="h3",this.externalLink=!1,this.cardTitle=void 0,this.hierarchy=!0}getTitleClass(){return`f-heading-${(this.hierarchy?{h1:"05",h2:"05",h3:"05",h4:"05",h5:"05",h6:"06"}:{h1:"01",h2:"02",h3:"03",h4:"04",h5:"05",h6:"06"})[this.headingLevel]}`}render(){return t(this.headingLevel,{key:"bb97dc6dd53adda14ef251b2ec32952791438986",class:this.getTitleClass()},t("a",{key:"37b6ac0668257d27fb3f03a6225a2d48e1fd1f79",class:"break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none",href:this.url,target:this.externalLink?"_blank":void 0,rel:this.externalLink?"noopener noreferrer":void 0},this.cardTitle))}};o.style="a{all:unset;display:inline;color:inherit;text-decoration:none;cursor:pointer}h1,h2,h3,h4,h5,h6{margin:0}.f-heading-01{font-family:var(--f-heading-01-fontFamily);font-weight:var(--f-heading-01-fontWeight);font-size:var(--f-heading-01-fontSize);line-height:var(--f-heading-01-lineHeight);letter-spacing:var(--f-heading-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.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)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.break-words{overflow-wrap:break-word}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:z-10::after{z-index:10}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}";const s=i(["f-ui-05 py-1 px-4 border-2 rounded-pill"],{variants:{intent:{default:"border-default",strong:"text-inverse bg-strongest border-default",accent:"text-[#0034CB] border-[#0034CB]",weak:"text-light bg-strongest-soft border-transparent",inverse:"border-inverse text-inverse","inverse-strong":"bg-inverse border-inverse text-lighter"}},defaultVariants:{intent:"default"}}),d=class{constructor(t){e(this,t),this.label=void 0,this.ariaLabel="",this.intent="default"}render(){var e;const n=s({intent:this.intent}),i=(null===(e=this.ariaLabel)||void 0===e?void 0:e.length)?this.ariaLabel:this.label;return t("span",{key:"6a517f42aeb641c95d96ecd6c3090a317a3195c6",class:n,"aria-label":i},this.label)}};d.style=".f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.py-1{padding-top:0.0625rem;padding-bottom:0.0625rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.border-2{border-width:2px}.rounded-pill{border-radius:100px}.border-default{border:2px solid var(--black)}.text-inverse{color:var(--white)}.bg-strongest{background-color:var(--black)}.text-\\[\\#0034CB\\]{--tw-text-opacity:1;color:rgb(0 52 203 / var(--tw-text-opacity))}.border-\\[\\#0034CB\\]{--tw-border-opacity:1;border:2px solid rgb(0 52 203 / var(--tw-border-opacity))}.text-light{color:var(--grey-700)}.bg-strongest-soft{background-color:rgba(0, 0, 0, .05)}.border-transparent{border-color:var(--transparent)}.border-inverse{border-color:var(--white)}.bg-inverse{background-color:var(--white)}.text-lighter{color:var(--grey-600)}";export{r as eds_avatar,a as eds_card_desc,o as eds_card_title,d as eds_tag}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as e}from"./p-7a8b9de5.js";import{s as r}from"./p-89227919.js";const o=class{constructor(i){t(this,i),this.parentContext=null,this.cardTitle=void 0,this.url=void 0,this.description=void 0,this.image=void 0,this.avatar=void 0,this.shortAbbreviation=void 0,this.headingLevel="h3",this.tags=[],this.tiny=!1,this.bg=!0,this.withHover=!0,this.hierarchy=!0,this.parsedImage=null}componentWillLoad(){if(this.image)try{"object"==typeof this.image?this.parsedImage=this.image:"string"==typeof this.image&&(this.parsedImage=JSON.parse(this.image))}catch(t){console.error("Error parsing image prop:",t),this.parsedImage={}}}handleParentContext(t){t.target===this.el&&(this.parentContext=t.detail,t.stopPropagation())}get parsedTags(){if("object"==typeof this.tags)return this.tags;if("string"==typeof this.tags)try{return JSON.parse(this.tags)}catch(t){return console.error("Error parsing tags prop:",t),[]}return[]}articleClasses(){return[this.description?this.tiny?"min-h-120":"min-h-156":"h-auto",this.bg?"bg-inverse":"bg-default",this.withHover?"effect-shadow hover:shadow-hover cursor-pointer":"","border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16"].join(" ")}handleClick(){var t;r({category:"ui-component",parentContext:this.parentContext,tag:this.el.tagName.toLowerCase(),name:(null===(t=this.cardTitle)||void 0===t?void 0:t.toLowerCase())||"",action:"click"})}render(){return i("article",{key:"dcb7cea87bfb52f8886f7ee3dbc3484d615bc00c",class:this.articleClasses(),onClick:()=>this.handleClick()},i("eds-card-title",{key:"94dd6ff2679ce9ac4d25ec921cd1162b1584e4fd","heading-level":this.headingLevel,titleClass:this.image?"f-ui-01":void 0,"card-title":this.cardTitle,url:this.url,hierarchy:this.hierarchy}),this.description&&i("eds-card-desc",{key:"433c4fe3a518153d89d48af54455286fa415a688",class:"mt-8","truncate-lines":"3",description:this.description}),this.parsedImage?i("eds-img",Object.assign({class:"mt-8"},this.parsedImage)):this.avatar||this.shortAbbreviation?i("eds-avatar",{class:"order-first mb-12",picture:this.avatar,initials:this.shortAbbreviation}):null,i("div",{key:"97b75afb4b8de1183d4b212054ff556ba3db8fcb",class:"flex flex-wrap gap-y-4"},this.parsedTags.map(((t,e)=>i("eds-tag",{key:e,intent:t.style,label:t.label}))))," ")}get el(){return e(this)}};o.style=".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";export{o as eds_card_generic}
@@ -1 +0,0 @@
1
- import{r as e,c as i,h as t,g as n}from"./p-7a8b9de5.js";import{s as o}from"./p-89227919.js";const a=class{constructor(t){e(this,t),this.accordionChange=i(this,"accordionChange",7),this.handleClick=()=>{var e;this.isExpanded=!this.isExpanded,this.accordionChange.emit(this.isExpanded),this.setPanelHeight(),o({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:(null===(e=this.title)||void 0===e?void 0:e.toLowerCase())||"",action:this.isExpanded?"expanded":"collapsed"})},this.setPanelHeight=()=>{this.childContentRef&&(this.shortContent=this.wrapperRef.scrollWidth>830&&!this.description?this.childContentRef.scrollHeight<=80:this.childContentRef.scrollHeight<=20,this.panelHeight=this.isExpanded&&!this.shortContent?this.childContentRef.scrollHeight:0)},this.title=void 0,this.description=void 0,this.switchBg=!0,this.expanded=!1,this.clampText=!0,this.minHeightContent=!1,this.isExpanded=this.expanded,this.panelHeight=0,this.shortContent=!1}componentDidLoad(){this.setPanelHeight(),window.addEventListener("resize",this.setPanelHeight)}disconnectedCallback(){window.removeEventListener("resize",this.setPanelHeight)}render(){return t("div",{key:"00bd9a34ceb469bef74c827bd1f48bf3d4b545b6",ref:e=>this.wrapperRef=e,class:`container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16 \n ${this.switchBg&&this.isExpanded?"bg-inverse":"bg-default"} \n ${this.switchBg?"hover:bg-inverse":""} \n ${this.minHeightContent?"min-h-56":""}`},t("h3",{key:"ab6a953797e0a8379a01a9a2f00a4988d4fc8357",class:"mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1"},this.title),t("div",{key:"cfd6f4ad2ec5e412cdf2348d188dfcf90770012d",class:"ml-auto"},t("eds-button",{key:"beaee69d610727b397645fc0a507b234003fde5e",id:"toggleAccordion",intent:"tertiary","aria-expanded":this.isExpanded||this.shortContent,"aria-label":"Toggle accordion","aria-controls":"accordionSection",class:"effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none",onClick:this.handleClick,icon:"chevron-down"})),t("div",{key:"795f14c0930a0b0862a86451cc7b7e807cb79c37",class:"w-full"},this.description?t("span",{class:"text-light "+(!this.isExpanded&&this.clampText?"line-clamp-1":"")},this.description):null,t("section",{key:"28f6cba233cdee58743faaacc992bf7497c2ff2e",id:"accordionSection",role:"region","aria-labelledby":"accordionHeader","aria-hidden":!this.isExpanded,class:"z-1 effect-height relative h-0 w-full "+(!this.isExpanded&&this.clampText?"overflow-hidden":""),style:{height:this.isExpanded?"auto":"0"}},t("div",{key:"939e442c55babfd3f1750d20d9b95f664c3a67c8",ref:e=>this.childContentRef=e,class:"accordion-content effect-color pt-20","aria-hidden":!this.isExpanded},t("span",{key:"648d16ed84cb3da227a10e6370004c6479789aed",class:!this.isExpanded&&this.clampText?"line-clamp-2":""},t("slot",{key:"90ca94f15e408b4b05c0eac4bd20fa21766cbb19"}))))))}get el(){return n(this)}};a.style="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}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.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)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.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)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";export{a as eds_accordion}
@@ -1 +0,0 @@
1
- import{r as t,h as e,g as a}from"./p-7a8b9de5.js";import{t as s}from"./p-22f9e720.js";import{m as r}from"./p-89227919.js";const n=class{constructor(e){t(this,e),this.title="Analytics Consent",this.description="We use anonymous analytics to improve our services. No personal data is collected unless you give your consent.",this.showNotice=!0}componentWillLoad(){this.checkConsentCookie()}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-button").forEach((t=>{this.emitContext(t)}))}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(e)}checkConsentCookie(){const t=document.cookie.split("; ").find((t=>t.startsWith("mtm_consent="))),e=sessionStorage.getItem("matomo-deferred");this.showNotice=!t&&!e}optInAnalytics(){r(),s.show("You have opted in to analytics.","success"),this.hideNotice()}deferDecision(){sessionStorage.setItem("matomo-deferred","true"),s.show("You can decide later.","warning"),this.hideNotice()}hideNotice(){this.showNotice=!1}render(){return this.showNotice?e("div",{class:"fixed bottom-0 p-8 z-10 grow md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2 justify-center"},e("eds-accordion",{title:this.title,description:this.description,switchBg:!0,expanded:!0},e("div",{class:"flex items-center gap-4"},e("eds-button",{intent:"primary",label:"Yes, I agree","aria-label":"Opt-in for analytics",onClick:()=>this.optInAnalytics()}),e("eds-button",{intent:"ghost",label:"Ask me later","aria-label":"Defer analytics decision",onClick:()=>this.deferDecision()})))):null}get el(){return a(this)}};n.style=".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}";export{n as eds_matomo_notice}
@@ -1,80 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-e96badea.js';
2
- import { s as sendAnalytics } from './analytics-1cde8e4a.js';
3
-
4
- const edsAccordionCss = "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}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.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)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.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)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
5
- const EdsAccordionStyle0 = edsAccordionCss;
6
-
7
- const EdsAccordion = class {
8
- constructor(hostRef) {
9
- registerInstance(this, hostRef);
10
- this.accordionChange = createEvent(this, "accordionChange", 7);
11
- /**
12
- * Handles the click event on the accordion header to toggle expansion.
13
- * Toggles the `isExpanded` state and emits the `accordionChange` event.
14
- */
15
- this.handleClick = () => {
16
- var _a;
17
- this.isExpanded = !this.isExpanded;
18
- this.accordionChange.emit(this.isExpanded);
19
- this.setPanelHeight();
20
- sendAnalytics({
21
- category: 'ui-component',
22
- parentContext: null,
23
- tag: this.el.tagName.toLowerCase(),
24
- name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
25
- action: this.isExpanded ? 'expanded' : 'collapsed'
26
- });
27
- };
28
- /**
29
- * Calculates and sets the panel height based on the content height
30
- * and adjusts based on the `shortContent` and `isExpanded` states.
31
- */
32
- this.setPanelHeight = () => {
33
- if (this.childContentRef) {
34
- this.shortContent =
35
- this.wrapperRef.scrollWidth > 830 && !this.description
36
- ? this.childContentRef.scrollHeight <= 80
37
- : this.childContentRef.scrollHeight <= 20;
38
- this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
39
- }
40
- };
41
- this.title = undefined;
42
- this.description = undefined;
43
- this.switchBg = true;
44
- this.expanded = false;
45
- this.clampText = true;
46
- this.minHeightContent = false;
47
- this.isExpanded = this.expanded;
48
- this.panelHeight = 0;
49
- this.shortContent = false;
50
- }
51
- /**
52
- * Lifecycle method that sets up the initial panel height and adds a resize event listener
53
- * to recalculate height on window resize.
54
- */
55
- componentDidLoad() {
56
- this.setPanelHeight();
57
- window.addEventListener('resize', this.setPanelHeight);
58
- }
59
- /**
60
- * Lifecycle method that cleans up the resize event listener when the component is removed.
61
- */
62
- disconnectedCallback() {
63
- window.removeEventListener('resize', this.setPanelHeight);
64
- }
65
- /**
66
- * Renders the accordion structure, including header, content, description, and any slotted content.
67
- * Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
68
- */
69
- render() {
70
- const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
71
- return (h("div", { key: '00bd9a34ceb469bef74c827bd1f48bf3d4b545b6', ref: (el) => (this.wrapperRef = el), class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
72
- ${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
73
- ${this.switchBg ? 'hover:bg-inverse' : ''}
74
- ${minHeightContentClass}` }, h("h3", { key: 'ab6a953797e0a8379a01a9a2f00a4988d4fc8357', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), h("div", { key: 'cfd6f4ad2ec5e412cdf2348d188dfcf90770012d', class: "ml-auto" }, h("eds-button", { key: 'beaee69d610727b397645fc0a507b234003fde5e', id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), h("div", { key: '795f14c0930a0b0862a86451cc7b7e807cb79c37', class: `w-full` }, this.description ? (h("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, h("section", { key: '28f6cba233cdee58743faaacc992bf7497c2ff2e', id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, h("div", { key: '939e442c55babfd3f1750d20d9b95f664c3a67c8', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, h("span", { key: '648d16ed84cb3da227a10e6370004c6479789aed', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, h("slot", { key: '90ca94f15e408b4b05c0eac4bd20fa21766cbb19' })))))));
75
- }
76
- get el() { return getElement(this); }
77
- };
78
- EdsAccordion.style = EdsAccordionStyle0;
79
-
80
- export { EdsAccordion as eds_accordion };