@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.
- package/dist/cjs/{analytics-223ea8e5.js → analytics-d8fb3fdd.js} +9 -0
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/eds-accordion_13.cjs.entry.js +911 -0
- package/dist/cjs/eds-alert.cjs.entry.js +97 -0
- package/dist/cjs/eds-block-break.cjs.entry.js +21 -0
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +149 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +39 -0
- package/dist/cjs/eds-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +41 -0
- package/dist/cjs/eds-form.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +100 -0
- package/dist/cjs/eds-header.cjs.entry.js +97 -0
- package/dist/cjs/eds-link.cjs.entry.js +214 -0
- package/dist/cjs/eds-login.cjs.entry.js +1 -1
- package/dist/cjs/eds-logo.cjs.entry.js +78 -0
- package/dist/cjs/eds-modal.cjs.entry.js +1 -1
- package/dist/cjs/eds-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-rating.cjs.entry.js +58 -0
- package/dist/cjs/eds-social-networks.cjs.entry.js +66 -0
- package/dist/cjs/eds-steps.cjs.entry.js +65 -0
- package/dist/cjs/eds-switch.cjs.entry.js +38 -0
- package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/eds-user.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +52 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-button/eds-button.js +21 -16
- package/dist/collection/components/eds-link/eds-link.css +6793 -6676
- package/dist/collection/components/eds-matomo-notice/eds-matomo-notice.js +207 -0
- package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.js +1 -1
- package/dist/collection/components/eds-steps/eds-steps.css +60 -5
- package/dist/collection/components/eds-steps/eds-steps.js +5 -4
- package/dist/collection/components/eds-tag/eds-tag.js +4 -35
- package/dist/collection/components/eds-toast/eds-toast.css +91 -0
- package/dist/collection/components/eds-toast/eds-toast.js +18 -9
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +236 -140
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +10 -10
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +2 -2
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +87 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +31 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +7 -53
- package/dist/collection/shared-ui/eds-header/eds-header.js +2 -2
- package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +1 -1
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +2 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
- package/dist/components/analytics.js +9 -1
- package/dist/components/components.css +520 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-button2.js +11 -15
- package/dist/components/eds-card-section.js +4 -4
- package/dist/components/eds-cookies-preference.d.ts +11 -0
- package/dist/components/eds-cookies-preference.js +88 -0
- package/dist/components/eds-footer2.js +3 -13
- package/dist/components/eds-header.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-login.js +1 -1
- package/dist/components/eds-matomo-notice.js +1 -140
- package/dist/components/eds-matomo-notice2.js +127 -0
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-steps.js +7 -6
- package/dist/components/eds-tabs-content.js +2 -2
- package/dist/components/eds-tabs.js +1 -1
- package/dist/components/eds-tag2.js +1 -9
- package/dist/components/eds-toast-manager.js +4 -3
- package/dist/components/eds-toast2.js +13 -10
- package/dist/components/eds-user-modal2.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/p-045681d7.entry.js +1 -0
- package/dist/components/p-0a3b2576.entry.js +1 -0
- package/dist/components/{p-92e16cc9.entry.js → p-10b81c47.entry.js} +1 -1
- package/dist/components/{p-89227919.js → p-13efafb9.js} +1 -1
- package/dist/components/{p-d69ef196.entry.js → p-1ae529f3.entry.js} +1 -1
- package/dist/components/p-21d42cf3.entry.js +1 -0
- package/dist/components/p-34a65e58.entry.js +1 -0
- package/dist/components/p-3a7aa1eb.entry.js +1 -0
- package/dist/components/p-42d3c324.entry.js +1 -0
- package/dist/components/{p-f08eac56.entry.js → p-4b3fbd6d.entry.js} +1 -1
- package/dist/components/p-4ea027ac.entry.js +1 -0
- package/dist/components/p-5097066f.entry.js +1 -0
- package/dist/components/p-5a2b8b6c.entry.js +1 -0
- package/dist/components/{p-72b42d77.entry.js → p-5ff31f14.entry.js} +1 -1
- package/dist/components/{p-030f67c1.entry.js → p-659ed449.entry.js} +1 -1
- package/dist/components/{p-75795b05.entry.js → p-7b3b26b0.entry.js} +1 -1
- package/dist/components/{p-0e0e1815.entry.js → p-88751c8b.entry.js} +1 -1
- package/dist/components/{p-8b583210.entry.js → p-9579f9c2.entry.js} +1 -1
- package/dist/components/p-b50c8d49.entry.js +1 -0
- package/dist/components/{p-59405ecf.entry.js → p-bd43d83c.entry.js} +1 -1
- package/dist/components/p-c683be2c.entry.js +1 -0
- package/dist/components/{p-209fa119.entry.js → p-d2a0b896.entry.js} +1 -1
- package/dist/components/p-d56d9dda.entry.js +1 -0
- package/dist/components/p-d5850ab3.entry.js +1 -0
- package/dist/components/p-e334f5bc.entry.js +1 -0
- package/dist/components/{p-def72462.entry.js → p-fad10768.entry.js} +1 -1
- package/dist/esm/{analytics-1cde8e4a.js → analytics-44b1416b.js} +9 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/eds-accordion_13.entry.js +895 -0
- package/dist/esm/eds-alert.entry.js +93 -0
- package/dist/esm/eds-block-break.entry.js +17 -0
- package/dist/esm/eds-breadcrumb.entry.js +145 -0
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +35 -0
- package/dist/esm/eds-dropdown_2.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +37 -0
- package/dist/esm/eds-form.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +96 -0
- package/dist/esm/eds-header.entry.js +93 -0
- package/dist/esm/eds-link.entry.js +210 -0
- package/dist/esm/eds-login.entry.js +1 -1
- package/dist/esm/eds-logo.entry.js +74 -0
- package/dist/esm/eds-modal.entry.js +1 -1
- package/dist/esm/eds-pagination_2.entry.js +1 -1
- package/dist/esm/eds-rating.entry.js +54 -0
- package/dist/esm/eds-social-networks.entry.js +62 -0
- package/dist/esm/eds-steps.entry.js +61 -0
- package/dist/esm/eds-switch.entry.js +34 -0
- package/dist/esm/eds-tabs-content.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +2 -2
- package/dist/esm/eds-tooltip.entry.js +1 -1
- package/dist/esm/eds-user.entry.js +1 -1
- package/dist/esm/index-e96badea.js +52 -20
- package/dist/esm/loader.js +1 -1
- package/dist/hydrate/index.js +148 -136
- package/dist/hydrate/index.mjs +148 -136
- package/dist/types/components/eds-button/eds-button.d.ts +3 -1
- package/dist/types/components/eds-matomo-notice/eds-matomo-notice.d.ts +53 -0
- package/dist/types/components/eds-steps/eds-steps.d.ts +0 -1
- package/dist/types/components/eds-tag/eds-tag.d.ts +1 -25
- package/dist/types/components/eds-toast/eds-toast.d.ts +4 -5
- package/dist/types/components.d.ts +101 -88
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +5 -5
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.d.ts +27 -0
- package/dist/types/shared-ui/eds-cookies-preference/eds-cookies-preference.st.d.ts +27 -0
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +2 -15
- package/package.json +1 -1
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -84
- package/dist/cjs/eds-alert_17.cjs.entry.js +0 -1392
- package/dist/cjs/eds-avatar_4.cjs.entry.js +0 -187
- package/dist/cjs/eds-card-generic.cjs.entry.js +0 -104
- package/dist/cjs/eds-card-section.cjs.entry.js +0 -55
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -109
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -164
- package/dist/components/p-0bafc5ae.entry.js +0 -1
- package/dist/components/p-3babd772.entry.js +0 -1
- package/dist/components/p-505ddcda.entry.js +0 -1
- package/dist/components/p-8d19a05b.entry.js +0 -1
- package/dist/components/p-9826acae.entry.js +0 -1
- package/dist/components/p-eeeb0d83.entry.js +0 -1
- package/dist/esm/eds-accordion.entry.js +0 -80
- package/dist/esm/eds-alert_17.entry.js +0 -1372
- package/dist/esm/eds-avatar_4.entry.js +0 -180
- package/dist/esm/eds-card-generic.entry.js +0 -100
- package/dist/esm/eds-card-section.entry.js +0 -51
- package/dist/esm/eds-matomo-notice.entry.js +0 -105
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +0 -77
- /package/dist/collection/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.css +0 -0
- /package/dist/types/{shared-ui → components}/eds-matomo-notice/eds-matomo-notice.stories.d.ts +0 -0
|
@@ -72,10 +72,10 @@ const EdsAccordion = /*@__PURE__*/ proxyCustomElement(class EdsAccordion extends
|
|
|
72
72
|
*/
|
|
73
73
|
render() {
|
|
74
74
|
const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
|
|
75
|
-
return (h("div", { key: '
|
|
75
|
+
return (h("div", { key: '119e170f4a94d2fa476ba1ddd94bcad78bde347a', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
76
76
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
77
77
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
78
|
-
${minHeightContentClass}` }, h("h3", { key: '
|
|
78
|
+
${minHeightContentClass}` }, h("h3", { key: 'c93f007091b7e48cc5ba327b02ce30929c945be0', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), h("div", { key: '464f2e58964cd96a276fcec54fb951d6f5c8aa14', class: "ml-auto" }, h("eds-button", { key: '5d2867854444e860f32a0a5e06c582aa5337c3c9', 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: '5a19c1fb7eccb4453343d098d12f25ede1e6548e', class: `w-full` }, this.description ? (h("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, h("section", { key: '472253d4ec57f79252bf435aedd721e943766a43', 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: '3033975fb22d5a23fb9d058e89698f375afabb49', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, h("span", { key: 'd75abb7f99d2e0c539625852dffc42790226b5b6', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, h("slot", { key: '472d88604a37dc8e061e657f83851515234ea760' })))))));
|
|
79
79
|
}
|
|
80
80
|
get el() { return this; }
|
|
81
81
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -161,6 +161,7 @@ const EdsButton = /*@__PURE__*/ proxyCustomElement(class EdsButton extends HTMLE
|
|
|
161
161
|
iconOnly: false
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
+
this.parentContext = null; // Accepts the entire event detail or null
|
|
164
165
|
this.label = undefined;
|
|
165
166
|
this.ariaLabel = 'Button';
|
|
166
167
|
this.elementType = 'button';
|
|
@@ -175,19 +176,14 @@ const EdsButton = /*@__PURE__*/ proxyCustomElement(class EdsButton extends HTMLE
|
|
|
175
176
|
this.extraClass = undefined;
|
|
176
177
|
this.triggerClick = undefined;
|
|
177
178
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
//console.log(event.detail);
|
|
187
|
-
this.parentContext = event.detail;
|
|
188
|
-
event.stopPropagation();
|
|
179
|
+
handleParentContext(event) {
|
|
180
|
+
if (event.target !== this.el) {
|
|
181
|
+
// Ignore the event if it's not targeted at this specific instance
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
this.parentContext = event.detail;
|
|
185
|
+
event.stopPropagation();
|
|
189
186
|
}
|
|
190
|
-
*/
|
|
191
187
|
handleClick(event) {
|
|
192
188
|
var _a, _b;
|
|
193
189
|
if (this.disabled) {
|
|
@@ -197,7 +193,7 @@ const EdsButton = /*@__PURE__*/ proxyCustomElement(class EdsButton extends HTMLE
|
|
|
197
193
|
}
|
|
198
194
|
sendAnalytics({
|
|
199
195
|
category: 'ui-component',
|
|
200
|
-
parentContext:
|
|
196
|
+
parentContext: this.parentContext,
|
|
201
197
|
tag: this.el.tagName.toLowerCase(),
|
|
202
198
|
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ((_b = this.ariaLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '',
|
|
203
199
|
action: 'click'
|
|
@@ -224,7 +220,7 @@ const EdsButton = /*@__PURE__*/ proxyCustomElement(class EdsButton extends HTMLE
|
|
|
224
220
|
show: !this.loading
|
|
225
221
|
});
|
|
226
222
|
const ElementType = this.elementType;
|
|
227
|
-
return (h(ElementType, { key: '
|
|
223
|
+
return (h(ElementType, { key: '8bd80319c1b541b6dd6628357b8e2e1333a8d15b', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && h("span", { key: '9d86a1bdf96422e0857759afe4741e523223d7d7', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (h("span", { key: '8e4611bba4214889eef58052c56dc46b826ff86c', class: "absolute inset-0 flex items-center justify-center" }, h("span", { key: 'cfc49250bf9f1b65965bf5b2d497a33174a82291', class: "loader", style: {
|
|
228
224
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
229
225
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
230
226
|
} }))), this.icon ? h("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -245,7 +241,7 @@ const EdsButton = /*@__PURE__*/ proxyCustomElement(class EdsButton extends HTMLE
|
|
|
245
241
|
"iconSmall": [4, "icon-small"],
|
|
246
242
|
"extraClass": [1, "extra-class"],
|
|
247
243
|
"triggerClick": [16]
|
|
248
|
-
}]);
|
|
244
|
+
}, [[0, "parentContext", "handleParentContext"]]]);
|
|
249
245
|
function defineCustomElement() {
|
|
250
246
|
if (typeof customElements === "undefined") {
|
|
251
247
|
return;
|
|
@@ -6,7 +6,7 @@ import { d as defineCustomElement$4 } from './eds-card-title2.js';
|
|
|
6
6
|
import { d as defineCustomElement$3 } from './eds-img2.js';
|
|
7
7
|
import { d as defineCustomElement$2 } from './eds-tag2.js';
|
|
8
8
|
|
|
9
|
-
const edsCardSectionCss = ".w-full{width:100%}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-
|
|
9
|
+
const edsCardSectionCss = "ol,ul,menu{list-style:none;margin:0;padding:0}.w-full{width:100%}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.grid-cols-4[class*=\"grid-line-x\"][class*=\"grid-line-x\"]>*:nth-child(n)::before{border-bottom-width:1px}.grid-cols-4[class*=\"grid-line-xfull\"]>*:nth-child(n)::before{inset-inline-start:calc(var(--inner-gutter) / -2);inset-inline-end:calc(var(--inner-gutter) / -2)}.grid-cols-4[class*=\"grid-line-x\"]>*:nth-child(4n+1)::before{inset-inline-start:0}.grid-cols-4[class*=\"grid-line-x\"]>*:nth-child(4n+4)::before{inset-inline-end:0}.grid-cols-4[class*=\"grid-line-x\"]>*:nth-child(4n+1):nth-last-child(-n+4)::before{border-bottom-width:0}.grid-cols-4[class*=\"grid-line-x\"]>*:nth-child(4n+1):nth-last-child(-n+4)~*::before{border-bottom-width:0}.grid-cols-4[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(n)::after{border-inline-end-width:1px}.grid-cols-4[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(4n+4)::after{border-inline-end-width:0}.grid-cols-4[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(-n+4)::after{top:0}.grid-cols-4[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(4n+1):nth-last-child(-n+4)::after{bottom:0}.grid-cols-4[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(4n+1):nth-last-child(-n+4)~li::after{bottom:0}.grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.gap-y-4{row-gap:0.25rem}.gap-y-8{row-gap:0.5rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 750px){.md\\:grid-col-span-1{--container-grid-columns:1;grid-column:span 1 / span 1}.md\\:grid-col-span-2{--container-grid-columns:2;grid-column:span 2 / span 2}.md\\:grid-col-span-3{--container-grid-columns:3;grid-column:span 3 / span 3}.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:w-10-cols{width:calc(((10 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))))}.cols-container>.md\\:w-10-cols{width:calc(((10 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))))}.md\\:w-10-cols>*{--container-grid-columns:10}}@media (min-width: 900px){.lg\\:grid-col-span-5{--container-grid-columns:5;grid-column:span 5 / span 5}.lg\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}.lg\\:grid-col-start-7{grid-column-start:7}.lg\\:w-8-cols{width:calc(((8 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (8 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))))}.cols-container>.lg\\:w-8-cols{width:calc(((8 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (8 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))))}.lg\\:w-8-cols>*{--container-grid-columns:8}.lg\\:w-10-cols{width:calc(((10 / var(--container-grid-columns, var(--grid-columns))) * 100%) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))))}.cols-container>.lg\\:w-10-cols{width:calc(((10 / var(--container-grid-columns, var(--grid-columns))) * (100% - var(--inner-gutter))) - (var(--inner-gutter) - (10 / var(--container-grid-columns, var(--grid-columns)) * var(--inner-gutter))))}.lg\\:w-10-cols>*{--container-grid-columns:10}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}";
|
|
10
10
|
const EdsCardSectionStyle0 = edsCardSectionCss;
|
|
11
11
|
|
|
12
12
|
const EdsCardSection$1 = /*@__PURE__*/ proxyCustomElement(class EdsCardSection extends HTMLElement {
|
|
@@ -15,7 +15,7 @@ const EdsCardSection$1 = /*@__PURE__*/ proxyCustomElement(class EdsCardSection e
|
|
|
15
15
|
this.__registerHost();
|
|
16
16
|
this.__attachShadow();
|
|
17
17
|
this.cards = [];
|
|
18
|
-
this.
|
|
18
|
+
this.occupyCols = 1;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Parses the `cards` JSON string prop into an array of card objects.
|
|
@@ -51,12 +51,12 @@ const EdsCardSection$1 = /*@__PURE__*/ proxyCustomElement(class EdsCardSection e
|
|
|
51
51
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
52
52
|
*/
|
|
53
53
|
render() {
|
|
54
|
-
return (h("section", { key: '
|
|
54
|
+
return (h("section", { key: '6c7067186b4afd873992008311ef65434e2860ef', class: "w-full" }, h("ul", { key: '186f5dc40e4d68c7565ba104dec900c707a59bc5', class: "grid-layout grid-cols-4 gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (h("li", { class: `grid-col-span-4 md:grid-col-span-${this.occupyCols} flex flex-col` }, h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
|
|
55
55
|
}
|
|
56
56
|
static get style() { return EdsCardSectionStyle0; }
|
|
57
57
|
}, [1, "eds-card-section", {
|
|
58
58
|
"cards": [1],
|
|
59
|
-
"
|
|
59
|
+
"occupyCols": [2, "occupy-cols"]
|
|
60
60
|
}]);
|
|
61
61
|
function defineCustomElement$1() {
|
|
62
62
|
if (typeof customElements === "undefined") {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface EdsCookiesPreference extends Components.EdsCookiesPreference, HTMLElement {}
|
|
4
|
+
export const EdsCookiesPreference: {
|
|
5
|
+
prototype: EdsCookiesPreference;
|
|
6
|
+
new (): EdsCookiesPreference;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$6 } from './eds-accordion2.js';
|
|
3
|
+
import { d as defineCustomElement$5 } from './eds-button2.js';
|
|
4
|
+
import { d as defineCustomElement$4 } from './eds-icon-wrapper2.js';
|
|
5
|
+
import { d as defineCustomElement$3 } from './eds-link2.js';
|
|
6
|
+
import { d as defineCustomElement$2 } from './eds-matomo-notice2.js';
|
|
7
|
+
|
|
8
|
+
const edsCookiesPreferenceCss = "";
|
|
9
|
+
const EdsCookiesPreferenceStyle0 = edsCookiesPreferenceCss;
|
|
10
|
+
|
|
11
|
+
const EdsCookiesPreference$1 = /*@__PURE__*/ proxyCustomElement(class EdsCookiesPreference extends HTMLElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
this.__attachShadow();
|
|
16
|
+
this.buttonText = 'Cookies Preferences';
|
|
17
|
+
this.intent = undefined;
|
|
18
|
+
this.showMatomoNotice = false;
|
|
19
|
+
this.noticeKey = 0;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Always shows the eds-matomo-notice popup.
|
|
23
|
+
* Every click removes the "matomo-deferred" key and forces a remount.
|
|
24
|
+
*/
|
|
25
|
+
toggleCookiesPopup() {
|
|
26
|
+
// Remove the key from session storage so that the notice will run its checks (or be forced to show)
|
|
27
|
+
sessionStorage.removeItem('matomo-deferred');
|
|
28
|
+
if (this.showMatomoNotice) {
|
|
29
|
+
// Force a remount by changing the key
|
|
30
|
+
this.noticeKey = this.noticeKey + 1;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.showMatomoNotice = true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h("div", { key: 'ca5d44522f94e9ea009c657c5eae6e357cd0d13a' }, h("eds-link", { key: '563a369e2ed44d08a6dd47922c1c1c888e81543a', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && h("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
|
|
38
|
+
}
|
|
39
|
+
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
40
|
+
}, [1, "eds-cookies-preference", {
|
|
41
|
+
"buttonText": [1, "button-text"],
|
|
42
|
+
"intent": [1],
|
|
43
|
+
"showMatomoNotice": [32],
|
|
44
|
+
"noticeKey": [32]
|
|
45
|
+
}]);
|
|
46
|
+
function defineCustomElement$1() {
|
|
47
|
+
if (typeof customElements === "undefined") {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const components = ["eds-cookies-preference", "eds-accordion", "eds-button", "eds-icon-wrapper", "eds-link", "eds-matomo-notice"];
|
|
51
|
+
components.forEach(tagName => { switch (tagName) {
|
|
52
|
+
case "eds-cookies-preference":
|
|
53
|
+
if (!customElements.get(tagName)) {
|
|
54
|
+
customElements.define(tagName, EdsCookiesPreference$1);
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case "eds-accordion":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
defineCustomElement$6();
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
case "eds-button":
|
|
63
|
+
if (!customElements.get(tagName)) {
|
|
64
|
+
defineCustomElement$5();
|
|
65
|
+
}
|
|
66
|
+
break;
|
|
67
|
+
case "eds-icon-wrapper":
|
|
68
|
+
if (!customElements.get(tagName)) {
|
|
69
|
+
defineCustomElement$4();
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "eds-link":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
defineCustomElement$3();
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "eds-matomo-notice":
|
|
78
|
+
if (!customElements.get(tagName)) {
|
|
79
|
+
defineCustomElement$2();
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
} });
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const EdsCookiesPreference = EdsCookiesPreference$1;
|
|
86
|
+
const defineCustomElement = defineCustomElement$1;
|
|
87
|
+
|
|
88
|
+
export { EdsCookiesPreference, defineCustomElement };
|
|
@@ -22,19 +22,10 @@ const EdsFooter = /*@__PURE__*/ proxyCustomElement(class EdsFooter extends HTMLE
|
|
|
22
22
|
};
|
|
23
23
|
this.extraClass = '';
|
|
24
24
|
this.social = false;
|
|
25
|
-
this.hasCookiesSetUp = false;
|
|
26
25
|
this.enableScrollTop = false;
|
|
27
26
|
this.fundedBy = 'EBRAINS is funded by the Horizon Europe Framework Programme.';
|
|
28
27
|
this.rightsReserved = `${new Date().getFullYear()} EBRAINS. All rights reserved.`;
|
|
29
|
-
this.
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Toggles the cookie preferences popup, if available.
|
|
33
|
-
* The actual implementation for handling cookie preferences should be defined here.
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
toggleCookiesPopup() {
|
|
37
|
-
// Implement logic for handling cookie preferences
|
|
28
|
+
this.showMatomoNotice = false;
|
|
38
29
|
}
|
|
39
30
|
/**
|
|
40
31
|
* Renders the footer component with optional sections and elements,
|
|
@@ -44,17 +35,16 @@ const EdsFooter = /*@__PURE__*/ proxyCustomElement(class EdsFooter extends HTMLE
|
|
|
44
35
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
45
36
|
*/
|
|
46
37
|
render() {
|
|
47
|
-
return (h("footer", { key: '
|
|
38
|
+
return (h("footer", { key: '9a7256325386a5072e9f1e391d838bb38458d99f', class: `${this.extraClass} pb-banner` }, this.social ? (h("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, h("div", { class: "container pb-20 xl:pb-40 " }, h("div", { class: "grid-layout" }, h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, h("eds-social-networks", { class: "mt-28" })), h("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, h("div", { key: '747d4708e90c13fe9e5aa234eaba182df100fca9', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, h("div", { key: '3fecf340c536bb64aa98fd04c26c5b47d146630b', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, h("div", { key: '6b7f167ac50c6aef9c76e56634a7228585c211db', class: "flex items-center gap-x-12" }, h("a", { key: '8e496d31c4b883a867b5f2c6a5fab8a60899470a', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en", "aria-label": "Learn about Horizon 2020 funding" }, h("eds-img", { key: 'b3cdfc2cc428951d58fe5ae4f1fe1992fbded7f7', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), h("div", { key: '8c3a9f55f07b44ad633b11a1d4faa8396a5ae30a', class: "order-last w-full lg:order-none lg:w-auto" }, h("div", { key: 'c268c107f6be692756d15a8f096e1a86df7bb62a', class: "f-ui-04 text-light" }, h("p", { key: '528014cafcd1b498efa01482934b54c44dd03bd6' }, this.fundedBy), h("div", { key: 'ee5baffcf8f801b7480c8158b30777329699f57f', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, h("span", { key: '79e600b799480904f47261be78262f344ada967b', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved)))), h("div", { key: '6bde5399c1044e0d85b71c9fab7e3e4c8b93e224', class: "ml-auto pl-12" }, this.enableScrollTop ? (h("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
|
|
48
39
|
}
|
|
49
40
|
static get style() { return EdsFooterStyle0; }
|
|
50
41
|
}, [0, "eds-footer", {
|
|
51
42
|
"extraClass": [1, "extra-class"],
|
|
52
43
|
"social": [4],
|
|
53
|
-
"hasCookiesSetUp": [4, "has-cookies-set-up"],
|
|
54
44
|
"enableScrollTop": [4, "enable-scroll-top"],
|
|
55
45
|
"fundedBy": [1, "funded-by"],
|
|
56
46
|
"rightsReserved": [1, "rights-reserved"],
|
|
57
|
-
"
|
|
47
|
+
"showMatomoNotice": [32]
|
|
58
48
|
}]);
|
|
59
49
|
function defineCustomElement() {
|
|
60
50
|
if (typeof customElements === "undefined") {
|
|
@@ -88,8 +88,8 @@ const EdsHeader$1 = /*@__PURE__*/ proxyCustomElement(class EdsHeader extends HTM
|
|
|
88
88
|
return [];
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (h("header", { key: '
|
|
92
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, h("div", { key: '
|
|
91
|
+
return (h("header", { key: '8447435914bd3cdf61ce03f2a6bc646fd6b39b01', class: `flex items-center justify-between relative z-10
|
|
92
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, h("div", { key: '2a7a525d9ec5f86437212ab5b6c60c901e1f69a8', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: '29381ef7d9f600690a373a09be30b2dea6d5b936', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (h("nav", { key: '8085c6dfa6dadce3d7eefb45505e9c9404fd422d', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, h("ul", { key: 'cb8442be1efc058dc46c283c85e50c58dd627f3e', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), h("slot", { key: '5d39561f4f43641640cc3f5d01edd35ebde794e3' }), this.menuEnabled ? (h("div", { class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
|
|
93
93
|
}
|
|
94
94
|
get hostEl() { return this; }
|
|
95
95
|
static get style() { return EdsHeaderStyle0; }
|