@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
|
@@ -84,7 +84,7 @@ const EdsLogin = class {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (index.h("div", { key: '
|
|
87
|
+
return (index.h("div", { key: '62768f8a6cc8ac16b13f9b2bb9cf5835f7f63844', class: "block" }, !this.authenticated && (index.h("eds-button", { key: '31e341d628242fed472f673c0fe8346c7871515d', label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }))));
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
const logoColor = require('./logo-color-6c787ac1.js');
|
|
7
|
+
const logoWhiteNoBg = require('./logo-white-no-bg-4a0e0f4b.js');
|
|
8
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
9
|
+
|
|
10
|
+
const edsLogoCss = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}";
|
|
11
|
+
const EdsLogoStyle0 = edsLogoCss;
|
|
12
|
+
|
|
13
|
+
const EdsLogo = class {
|
|
14
|
+
constructor(hostRef) {
|
|
15
|
+
index.registerInstance(this, hostRef);
|
|
16
|
+
this.href = '/';
|
|
17
|
+
this.orientation = 'horizontal';
|
|
18
|
+
this.type = undefined;
|
|
19
|
+
this.label = 'Home';
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Handles the click event on the logo link.
|
|
23
|
+
* Emits a `matomoEvent` for analytics tracking with details about the interaction.
|
|
24
|
+
* - `category`: Component type (e.g., "ui-component").
|
|
25
|
+
* - `tag`: The HTML tag name of the component.
|
|
26
|
+
* - `name`: Event name, set as "logo".
|
|
27
|
+
* - `action`: The action, set as "click".
|
|
28
|
+
*/
|
|
29
|
+
handleClick() {
|
|
30
|
+
analytics.sendAnalytics({
|
|
31
|
+
category: 'ui-component',
|
|
32
|
+
tag: this.el.tagName.toLowerCase(),
|
|
33
|
+
name: 'logo',
|
|
34
|
+
action: 'click'
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Determines the appropriate SVG content based on the `orientation` and `type` props.
|
|
39
|
+
*/
|
|
40
|
+
getLogo() {
|
|
41
|
+
const logos = {
|
|
42
|
+
horizontal: {
|
|
43
|
+
color: logoColor.hLogoColor,
|
|
44
|
+
black: logoWhiteNoBg.hLogoBlack,
|
|
45
|
+
'color-white': logoWhiteNoBg.hLogoColorWhite,
|
|
46
|
+
white: logoWhiteNoBg.hLogoWhite,
|
|
47
|
+
'no-bg': logoWhiteNoBg.hLogoWhiteNoBg
|
|
48
|
+
},
|
|
49
|
+
vertical: {
|
|
50
|
+
color: logoWhiteNoBg.vLogoColor,
|
|
51
|
+
black: logoWhiteNoBg.vLogoBlack,
|
|
52
|
+
'color-white': logoWhiteNoBg.vLogoColorWhite,
|
|
53
|
+
white: logoWhiteNoBg.vLogoWhite,
|
|
54
|
+
'no-bg': logoWhiteNoBg.vLogoWhiteNoBg
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
// Validate the orientation and type
|
|
58
|
+
const validOrientation = logos[this.orientation];
|
|
59
|
+
if (!validOrientation) {
|
|
60
|
+
//console.error(`Invalid orientation "${this.orientation}". Falling back to "horizontal".`);
|
|
61
|
+
return logoColor.hLogoColor; // Default fallback logo
|
|
62
|
+
}
|
|
63
|
+
const validLogo = validOrientation[this.type];
|
|
64
|
+
if (!validLogo) {
|
|
65
|
+
//console.error(`Invalid type "${this.type}" for orientation "${this.orientation}". Falling back to "color".`);
|
|
66
|
+
return validOrientation['color']; // Fallback to color logo
|
|
67
|
+
}
|
|
68
|
+
return validLogo;
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
const logoContent = this.getLogo();
|
|
72
|
+
return (index.h("a", { key: 'ee8de4071b0137020341982b4c5cb2c938f1c4df', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, index.h("div", { key: '1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c', innerHTML: logoContent })));
|
|
73
|
+
}
|
|
74
|
+
get el() { return index.getElement(this); }
|
|
75
|
+
};
|
|
76
|
+
EdsLogo.style = EdsLogoStyle0;
|
|
77
|
+
|
|
78
|
+
exports.eds_logo = EdsLogo;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const analytics = require('./analytics-
|
|
6
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
7
|
|
|
8
8
|
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.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}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.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)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.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}";
|
|
9
9
|
const EdsModalStyle0 = edsModalCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const analytics = require('./analytics-
|
|
6
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
7
|
|
|
8
8
|
const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.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)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{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:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
|
|
9
9
|
const EdsPaginationStyle0 = edsPaginationCss;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const edsRatingCss = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.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)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}";
|
|
8
|
+
const EdsRatingStyle0 = edsRatingCss;
|
|
9
|
+
|
|
10
|
+
const EdsRating = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.ratingChange = index.createEvent(this, "ratingChange", 7);
|
|
14
|
+
this.stars = 5;
|
|
15
|
+
this.label = 'Rate your experience';
|
|
16
|
+
this.textMapping = ['Very Poor', 'Poor', 'Average', 'Good', 'Excellent'];
|
|
17
|
+
this.selectedRating = 0;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Parses the `textMapping` prop into an array of strings.
|
|
21
|
+
*/
|
|
22
|
+
get parsedMappings() {
|
|
23
|
+
if (typeof this.textMapping === 'object') {
|
|
24
|
+
return this.textMapping;
|
|
25
|
+
}
|
|
26
|
+
else if (typeof this.textMapping === 'string') {
|
|
27
|
+
try {
|
|
28
|
+
return JSON.parse(this.textMapping);
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
//console.error('Error parsing textMapping prop:', e);
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Handles the click event on a star.
|
|
39
|
+
* @param rating - The selected rating value.
|
|
40
|
+
*/
|
|
41
|
+
handleClick(rating) {
|
|
42
|
+
this.selectedRating = rating;
|
|
43
|
+
this.ratingChange.emit(rating);
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
return (index.h("div", { key: 'b613863ad54ae9b381a5741bce4b188eff806ef0', class: "relative w-full flex flex-col" }, index.h("span", { key: 'f35cef9c3691aab73995e2ca6e2554cc19bae837', class: "f-heading-05" }, this.label), index.h("div", { key: '37082eb4bbadf5c211c197f3f81501d0b0e61404', role: "radiogroup", "aria-label": this.label, class: "stars flex space-x-2" }, Array.from({ length: this.stars }, (_, index$1) => {
|
|
47
|
+
const starRating = index$1 + 1;
|
|
48
|
+
const isSelected = starRating <= this.selectedRating;
|
|
49
|
+
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
50
|
+
const mappingText = this.parsedMappings[starRating - 1] || `Rating ${starRating}`;
|
|
51
|
+
return (index.h("eds-button", { label: "\u2605", role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": mappingText, onClick: () => this.handleClick(starRating), tabIndex: this.selectedRating === 0 && index$1 === 0 ? 0 : isSelected ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "small", "extra-class": "p-2" // Optional padding or styling for the star button
|
|
52
|
+
}));
|
|
53
|
+
})), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (index.h("span", { key: '61b4b92e476cfa0dd9bf405cb080dedd995ff9c6', class: "f-ui-04 text-lighter mt-4" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
EdsRating.style = EdsRatingStyle0;
|
|
57
|
+
|
|
58
|
+
exports.eds_rating = EdsRating;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
8
|
+
const EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
9
|
+
|
|
10
|
+
const EdsSocialNetworks = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/**
|
|
14
|
+
* Array of social network objects, each containing label, URL, and icon.
|
|
15
|
+
* These are used to render the social network links.
|
|
16
|
+
*
|
|
17
|
+
* @private
|
|
18
|
+
* @type {SocialNetworks[]}
|
|
19
|
+
*/
|
|
20
|
+
this.socialNetworks = [
|
|
21
|
+
{
|
|
22
|
+
label: 'Twitter',
|
|
23
|
+
url: 'https://twitter.com/ebrains_eu',
|
|
24
|
+
icon: 'twitter'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Linkedin',
|
|
28
|
+
url: 'https://www.linkedin.com/company/ebrains-eu/about/',
|
|
29
|
+
icon: 'linkedin'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: 'Facebook',
|
|
33
|
+
url: 'https://www.facebook.com/people/Ebrains_eu/100046659909324/',
|
|
34
|
+
icon: 'facebook'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: 'Youtube',
|
|
38
|
+
url: 'https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ',
|
|
39
|
+
icon: 'youtube'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Mastodon',
|
|
43
|
+
url: 'https://mastodon.social/@ebrains',
|
|
44
|
+
icon: 'mastodon'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Bluesky',
|
|
48
|
+
url: 'https://bsky.app/profile/ebrains.bsky.social',
|
|
49
|
+
icon: 'bluesky'
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
this.title = 'Follow EBRAINS to keep up-to-date';
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Renders the component's HTML structure with links to EBRAINS social profiles.
|
|
56
|
+
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
57
|
+
*
|
|
58
|
+
* @returns {JSX.Element} The rendered JSX for the component.
|
|
59
|
+
*/
|
|
60
|
+
render() {
|
|
61
|
+
return (index.h("div", { key: '9efc31261e88c70f9c808251124178d807140594' }, index.h("p", { key: '383101de2aaba05e1024f3ba86d788ad5d92173c', class: "f-ui-02" }, this.title), index.h("ul", { key: 'e27243a4e7b8aab085c4ef091d67df57dba70664', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index$1) => (index.h("li", { key: index$1 }, index.h("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
EdsSocialNetworks.style = EdsSocialNetworksStyle0;
|
|
65
|
+
|
|
66
|
+
exports.eds_social_networks = EdsSocialNetworks;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.text-default{color:var(--black)}.text-error{color:var(--red-700)}.text-extra-light{color:var(--grey-300)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.mb-28{margin-bottom:1.75rem}";
|
|
8
|
+
const EdsStepsStyle0 = edsStepsCss;
|
|
9
|
+
|
|
10
|
+
const EdsSteps = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.stepClick = index.createEvent(this, "stepClick", 7);
|
|
14
|
+
this.handleNext = () => {
|
|
15
|
+
if (this.activeStep < this.parsedSteps.length) {
|
|
16
|
+
this.activeStep = this.activeStep + 1;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
this.handleBack = () => {
|
|
20
|
+
if (this.activeStep > 0) {
|
|
21
|
+
this.activeStep = this.activeStep - 1;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.steps = [];
|
|
25
|
+
this.type = 'static';
|
|
26
|
+
this.activeStep = 0;
|
|
27
|
+
}
|
|
28
|
+
handleStepClick(index) {
|
|
29
|
+
this.stepClick.emit(index);
|
|
30
|
+
// In linear mode, update the active step on header click.
|
|
31
|
+
if (this.type === 'linear') {
|
|
32
|
+
this.activeStep = index;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Parse the JSON string into an array of steps.
|
|
37
|
+
*/
|
|
38
|
+
get parsedSteps() {
|
|
39
|
+
if (typeof this.steps === 'string') {
|
|
40
|
+
try {
|
|
41
|
+
const stepsStr = this.steps;
|
|
42
|
+
return JSON.parse(stepsStr);
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
//console.error('Invalid steps JSON', error);
|
|
46
|
+
return [];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return this.steps;
|
|
50
|
+
}
|
|
51
|
+
/*private handleReset = () => {
|
|
52
|
+
this.activeStep = 0;
|
|
53
|
+
};*/
|
|
54
|
+
render() {
|
|
55
|
+
const steps = this.parsedSteps;
|
|
56
|
+
if (this.type === 'linear') {
|
|
57
|
+
return (index.h("div", null, index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: "step mb-28", key: index$1 }, index.h("h3", { onClick: () => this.handleStepClick(index$1) }, step.title), this.activeStep === index$1 && (index.h("div", { class: "content" }, index.h("div", { class: "f-body-02 text-lighter my-16" }, step.content), index.h("eds-button", { label: index$1 === steps.length - 1 ? 'Finish' : 'Continue', intent: "primary", class: "next-btn", onClick: this.handleNext }), index.h("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index$1 === 0, "extra-class": index$1 === 0 ? 'hidden' : 'ml-8 block' }))))))), this.activeStep === steps.length && (index.h("div", { class: "completed" }, index.h("eds-alert", { intent: "success", message: "All steps completed - you're finished!" })))));
|
|
58
|
+
}
|
|
59
|
+
// Static mode: show all steps with their content, no navigation buttons.
|
|
60
|
+
return (index.h("div", { class: "steps" }, steps.map((step, index$1) => (index.h("div", { class: "step mb-28", key: index$1 }, index.h("h3", null, step.title), index.h("div", { class: "content" }, index.h("div", { class: "f-body-02 text-lighter my-16" }, step.content)))))));
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
EdsSteps.style = EdsStepsStyle0;
|
|
64
|
+
|
|
65
|
+
exports.eds_steps = EdsSteps;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}";
|
|
8
|
+
const EdsSwitchStyle0 = edsSwitchCss;
|
|
9
|
+
|
|
10
|
+
const EdsSwitch = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.change = index.createEvent(this, "change", 7);
|
|
14
|
+
this.toggleSwitch = () => {
|
|
15
|
+
if (this.disabled) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.checked = !this.checked;
|
|
19
|
+
this.change.emit(this.checked);
|
|
20
|
+
};
|
|
21
|
+
this.checked = false;
|
|
22
|
+
this.disabled = false;
|
|
23
|
+
this.labelOn = '';
|
|
24
|
+
this.labelOff = '';
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
// Compute an accessible name based on state.
|
|
28
|
+
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
29
|
+
return (index.h("div", { key: 'd4c727cbb562921b2bcba269e84f25c359c7061b', class: "switch-container" }, this.labelOff && index.h("span", { key: '90b18fff27bd21501466deb5879e5fe6ff607043', class: "switch-label switch-label--off" }, this.labelOff), index.h("button", { key: '8675f5d9f972d3932710fa7f9b28f74f95a83003', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
|
|
30
|
+
switch: true,
|
|
31
|
+
'switch--checked': this.checked,
|
|
32
|
+
'switch--disabled': this.disabled
|
|
33
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, index.h("span", { key: '26aa30a01b10419c1665b1fd58b5696a02d1504a', class: "switch-handle" })), this.labelOn && index.h("span", { key: '3680d67555e9193a97e129c0639b411263e070a8', class: "switch-label switch-label--on" }, this.labelOn)));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
EdsSwitch.style = EdsSwitchStyle0;
|
|
37
|
+
|
|
38
|
+
exports.eds_switch = EdsSwitch;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const analytics = require('./analytics-
|
|
6
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
7
|
const index$1 = require('./index-ab9fbefe.js');
|
|
8
8
|
|
|
9
9
|
const EdsTabsContent = class {
|
|
@@ -118,11 +118,11 @@ const EdsTabsContent = class {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (index.h("div", { key: '
|
|
121
|
+
return (index.h("div", { key: 'd94df79c55522088de5445587758a5eea028b313', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, index.h("div", { key: 'e7d01a2e6b424c25749c0d70305fb1c8c55bef74', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, index.h("nav", { key: 'ef8ff8a02e570dfcf8143997ace793a65917e6ca', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index$1) => {
|
|
122
122
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
123
123
|
const tabProps = this.getTabOptions(tab.active, index$1);
|
|
124
124
|
return (index.h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index$1 === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index$1, tab.label) })));
|
|
125
|
-
})), index.h("slot", { key: '
|
|
125
|
+
})), index.h("slot", { key: '8f014081c3bc2a8a3013aea3aff32690d6f71c85' }))));
|
|
126
126
|
}
|
|
127
127
|
get el() { return index.getElement(this); }
|
|
128
128
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const analytics = require('./analytics-
|
|
6
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
7
|
const index$1 = require('./index-ab9fbefe.js');
|
|
8
8
|
|
|
9
9
|
const edsTabsCss = "";
|
|
@@ -128,7 +128,7 @@ const EdsTabs = class {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return (index.h("div", { key: '
|
|
131
|
+
return (index.h("div", { key: '5a0c7dbdd059b2a1efdf31e91725dd1d49c88bd4', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, index.h("div", { key: '74bb7e66b88d845359caf285430fca079abfab03', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, index.h("nav", { key: '71ca3465da106b2d1ed59eca28eabfe60a1ac0fc', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index$1) => {
|
|
132
132
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
133
133
|
const tabProps = this.getTabOptions(tab.active, index$1);
|
|
134
134
|
return (index.h("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index$1 === this.activeIndex, onClick: () => this.handleTabClick(index$1, tab.label) })));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const analytics = require('./analytics-
|
|
6
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
7
|
|
|
8
8
|
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.bg-stronger{background-color:var(--grey-900)}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.text-default{color:var(--black)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.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)}.pointer-events-none{pointer-events:none}.-top-8{top:-0.5rem}.left-1\\/2{left:50%}.z-10{z-index:10}.block{display:block}.-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))}.-translate-y-full{--tw-translate-y:-100%;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))}.whitespace-nowrap{white-space:nowrap}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}";
|
|
9
9
|
const EdsTooltipStyle0 = edsTooltipCss;
|
|
@@ -91,7 +91,7 @@ const EdsUser = class {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
var _a;
|
|
94
|
-
return (index.h("div", { key: '
|
|
94
|
+
return (index.h("div", { key: '8fe0aaf06ed421d8ca6e512247b4d15b092c895f', class: "block" }, !this.authenticated ? (index.h("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (index.h("div", { class: "flex items-center" }, index.h("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, index.h("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
95
95
|
}
|
|
96
96
|
get hostEl() { return index.getElement(this); }
|
|
97
97
|
};
|
|
@@ -74,22 +74,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
74
74
|
}
|
|
75
75
|
switch(bundleId) {
|
|
76
76
|
|
|
77
|
-
case 'eds-
|
|
77
|
+
case 'eds-accordion_13.cjs':
|
|
78
78
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
79
79
|
/* webpackMode: "lazy" */
|
|
80
|
-
'./eds-
|
|
80
|
+
'./eds-accordion_13.cjs.entry.js')); }).then(processMod, consoleError);
|
|
81
81
|
case 'correct-use-of-colors.cjs':
|
|
82
82
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
83
83
|
/* webpackMode: "lazy" */
|
|
84
84
|
'./correct-use-of-colors.cjs.entry.js')); }).then(processMod, consoleError);
|
|
85
|
-
case 'eds-
|
|
85
|
+
case 'eds-breadcrumb.cjs':
|
|
86
86
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
87
87
|
/* webpackMode: "lazy" */
|
|
88
|
-
'./eds-
|
|
89
|
-
case 'eds-card-
|
|
88
|
+
'./eds-breadcrumb.cjs.entry.js')); }).then(processMod, consoleError);
|
|
89
|
+
case 'eds-card-project.cjs':
|
|
90
90
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
91
91
|
/* webpackMode: "lazy" */
|
|
92
|
-
'./eds-card-
|
|
92
|
+
'./eds-card-project.cjs.entry.js')); }).then(processMod, consoleError);
|
|
93
93
|
case 'eds-card-tags.cjs':
|
|
94
94
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
95
95
|
/* webpackMode: "lazy" */
|
|
@@ -106,6 +106,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
106
106
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
107
107
|
/* webpackMode: "lazy" */
|
|
108
108
|
'./eds-components-section.cjs.entry.js')); }).then(processMod, consoleError);
|
|
109
|
+
case 'eds-cookies-preference.cjs':
|
|
110
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
111
|
+
/* webpackMode: "lazy" */
|
|
112
|
+
'./eds-cookies-preference.cjs.entry.js')); }).then(processMod, consoleError);
|
|
109
113
|
case 'eds-docs-palettes.cjs':
|
|
110
114
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
111
115
|
/* webpackMode: "lazy" */
|
|
@@ -122,6 +126,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
122
126
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
123
127
|
/* webpackMode: "lazy" */
|
|
124
128
|
'./eds-frame.cjs.entry.js')); }).then(processMod, consoleError);
|
|
129
|
+
case 'eds-fullscreen-menu.cjs':
|
|
130
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
131
|
+
/* webpackMode: "lazy" */
|
|
132
|
+
'./eds-fullscreen-menu.cjs.entry.js')); }).then(processMod, consoleError);
|
|
133
|
+
case 'eds-header.cjs':
|
|
134
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
135
|
+
/* webpackMode: "lazy" */
|
|
136
|
+
'./eds-header.cjs.entry.js')); }).then(processMod, consoleError);
|
|
125
137
|
case 'eds-icon-arrow-diagonal.cjs':
|
|
126
138
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
127
139
|
/* webpackMode: "lazy" */
|
|
@@ -218,10 +230,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
218
230
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
219
231
|
/* webpackMode: "lazy" */
|
|
220
232
|
'./eds-logo-variations.cjs.entry.js')); }).then(processMod, consoleError);
|
|
221
|
-
case 'eds-matomo-notice.cjs':
|
|
222
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
223
|
-
/* webpackMode: "lazy" */
|
|
224
|
-
'./eds-matomo-notice.cjs.entry.js')); }).then(processMod, consoleError);
|
|
225
233
|
case 'eds-modal.cjs':
|
|
226
234
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
227
235
|
/* webpackMode: "lazy" */
|
|
@@ -230,10 +238,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
230
238
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
231
239
|
/* webpackMode: "lazy" */
|
|
232
240
|
'./eds-navigator.cjs.entry.js')); }).then(processMod, consoleError);
|
|
241
|
+
case 'eds-rating.cjs':
|
|
242
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
243
|
+
/* webpackMode: "lazy" */
|
|
244
|
+
'./eds-rating.cjs.entry.js')); }).then(processMod, consoleError);
|
|
245
|
+
case 'eds-steps.cjs':
|
|
246
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
247
|
+
/* webpackMode: "lazy" */
|
|
248
|
+
'./eds-steps.cjs.entry.js')); }).then(processMod, consoleError);
|
|
233
249
|
case 'eds-svg-repository.cjs':
|
|
234
250
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
235
251
|
/* webpackMode: "lazy" */
|
|
236
252
|
'./eds-svg-repository.cjs.entry.js')); }).then(processMod, consoleError);
|
|
253
|
+
case 'eds-switch.cjs':
|
|
254
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
255
|
+
/* webpackMode: "lazy" */
|
|
256
|
+
'./eds-switch.cjs.entry.js')); }).then(processMod, consoleError);
|
|
237
257
|
case 'eds-tabs.cjs':
|
|
238
258
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
239
259
|
/* webpackMode: "lazy" */
|
|
@@ -290,14 +310,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
290
310
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
291
311
|
/* webpackMode: "lazy" */
|
|
292
312
|
'./color-primary-palette_6.cjs.entry.js')); }).then(processMod, consoleError);
|
|
293
|
-
case 'eds-accordion.cjs':
|
|
294
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
295
|
-
/* webpackMode: "lazy" */
|
|
296
|
-
'./eds-accordion.cjs.entry.js')); }).then(processMod, consoleError);
|
|
297
313
|
case 'eds-dropdown_2.cjs':
|
|
298
314
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
299
315
|
/* webpackMode: "lazy" */
|
|
300
316
|
'./eds-dropdown_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
317
|
+
case 'eds-footer.cjs':
|
|
318
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
319
|
+
/* webpackMode: "lazy" */
|
|
320
|
+
'./eds-footer.cjs.entry.js')); }).then(processMod, consoleError);
|
|
301
321
|
case 'eds-progress-bar.cjs':
|
|
302
322
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
303
323
|
/* webpackMode: "lazy" */
|
|
@@ -310,14 +330,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
310
330
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
311
331
|
/* webpackMode: "lazy" */
|
|
312
332
|
'./token-list_3.cjs.entry.js')); }).then(processMod, consoleError);
|
|
313
|
-
case 'eds-card-generic.cjs':
|
|
314
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
315
|
-
/* webpackMode: "lazy" */
|
|
316
|
-
'./eds-card-generic.cjs.entry.js')); }).then(processMod, consoleError);
|
|
317
333
|
case 'eds-section-core_2.cjs':
|
|
318
334
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
319
335
|
/* webpackMode: "lazy" */
|
|
320
336
|
'./eds-section-core_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
337
|
+
case 'eds-social-networks.cjs':
|
|
338
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
339
|
+
/* webpackMode: "lazy" */
|
|
340
|
+
'./eds-social-networks.cjs.entry.js')); }).then(processMod, consoleError);
|
|
321
341
|
case 'eds-tab.cjs':
|
|
322
342
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
323
343
|
/* webpackMode: "lazy" */
|
|
@@ -326,18 +346,30 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
326
346
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
327
347
|
/* webpackMode: "lazy" */
|
|
328
348
|
'./eds-pagination_2.cjs.entry.js')); }).then(processMod, consoleError);
|
|
329
|
-
case 'eds-
|
|
349
|
+
case 'eds-block-break.cjs':
|
|
330
350
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
331
351
|
/* webpackMode: "lazy" */
|
|
332
|
-
'./eds-
|
|
352
|
+
'./eds-block-break.cjs.entry.js')); }).then(processMod, consoleError);
|
|
333
353
|
case 'eds-input_7.cjs':
|
|
334
354
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
335
355
|
/* webpackMode: "lazy" */
|
|
336
356
|
'./eds-input_7.cjs.entry.js')); }).then(processMod, consoleError);
|
|
357
|
+
case 'eds-alert.cjs':
|
|
358
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
359
|
+
/* webpackMode: "lazy" */
|
|
360
|
+
'./eds-alert.cjs.entry.js')); }).then(processMod, consoleError);
|
|
361
|
+
case 'eds-logo.cjs':
|
|
362
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
363
|
+
/* webpackMode: "lazy" */
|
|
364
|
+
'./eds-logo.cjs.entry.js')); }).then(processMod, consoleError);
|
|
337
365
|
case 'eds-code-block.cjs':
|
|
338
366
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
339
367
|
/* webpackMode: "lazy" */
|
|
340
368
|
'./eds-code-block.cjs.entry.js')); }).then(processMod, consoleError);
|
|
369
|
+
case 'eds-link.cjs':
|
|
370
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
371
|
+
/* webpackMode: "lazy" */
|
|
372
|
+
'./eds-link.cjs.entry.js')); }).then(processMod, consoleError);
|
|
341
373
|
}
|
|
342
374
|
}
|
|
343
375
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|