@ebrains/components 1.1.0 → 1.3.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/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +1 -1
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-avatar_28.cjs.entry.js +40 -41
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-rating.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/eds-switch.cjs.entry.js +2 -2
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +1 -1
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.css +48 -0
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +28 -11
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.css +24 -0
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +12 -4
- package/dist/collection/components/eds-input-field/eds-input-field.js +121 -109
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +1 -1
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +2 -2
- package/dist/collection/shared-ui/eds-form/eds-form.js +3 -3
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.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 +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +4 -5
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +2 -2
- package/dist/components/eds-form.js +3 -3
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-input-field2.js +18 -27
- package/dist/components/eds-input-footer2.js +7 -2
- package/dist/components/eds-input-label2.js +7 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-pagination2.js +1 -1
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +1 -1
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/{p-6dc6f729.entry.js → p-0c465a1e.entry.js} +1 -1
- package/dist/components/{p-590fb0e7.entry.js → p-1c3f1440.entry.js} +1 -1
- package/dist/components/p-21cb7ef6.entry.js +1 -0
- package/dist/components/{p-10db551c.entry.js → p-3024b7cf.entry.js} +1 -1
- package/dist/components/{p-b50fc0d7.entry.js → p-33a5fa80.entry.js} +1 -1
- package/dist/components/p-41316de1.entry.js +1 -0
- package/dist/components/p-4185659c.entry.js +1 -0
- package/dist/components/{p-f7716080.entry.js → p-4188643f.entry.js} +1 -1
- package/dist/components/{p-46a6ab04.entry.js → p-463abb12.entry.js} +1 -1
- package/dist/components/p-4ffdf8ac.entry.js +1 -0
- package/dist/components/{p-cde3d7a4.entry.js → p-5873fcd0.entry.js} +1 -1
- package/dist/components/p-598f203e.entry.js +1 -0
- package/dist/components/{p-a4f552b2.entry.js → p-5ba5708a.entry.js} +1 -1
- package/dist/components/{p-1661f33c.entry.js → p-5f64fbb0.entry.js} +1 -1
- package/dist/components/{p-24dab785.entry.js → p-71f0c1ec.entry.js} +1 -1
- package/dist/components/p-77527268.entry.js +1 -0
- package/dist/components/{p-7f31622d.entry.js → p-776b21cf.entry.js} +1 -1
- package/dist/components/{p-2c571550.entry.js → p-835b48f4.entry.js} +1 -1
- package/dist/components/{p-d05a09df.entry.js → p-8ba5feea.entry.js} +1 -1
- package/dist/components/{p-17d39d66.entry.js → p-940c1a08.entry.js} +1 -1
- package/dist/components/{p-36d6134f.entry.js → p-94de9aaf.entry.js} +1 -1
- package/dist/components/{p-eac593ee.entry.js → p-9f35fe5f.entry.js} +1 -1
- package/dist/components/p-a6cdf11b.entry.js +1 -0
- package/dist/components/{p-df772a35.entry.js → p-b7a29cf7.entry.js} +1 -1
- package/dist/components/{p-fc4edb18.entry.js → p-bf1552ed.entry.js} +1 -1
- package/dist/components/{p-f2c23162.entry.js → p-c0900e8c.entry.js} +1 -1
- package/dist/components/{p-d0b1e963.entry.js → p-c3c61a32.entry.js} +1 -1
- package/dist/components/p-cd0fb6c7.entry.js +1 -0
- package/dist/components/{p-6907a47c.entry.js → p-fd4aed5a.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +1 -1
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +1 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-avatar_28.entry.js +40 -41
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-rating.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-spinner.entry.js +1 -1
- package/dist/esm/eds-switch.entry.js +2 -2
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-tooltip.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +1 -1
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +92 -110
- package/dist/hydrate/index.mjs +92 -110
- package/dist/types/components/eds-input-elements/eds-input-footer/eds-input-footer.d.ts +23 -3
- package/dist/types/components/eds-input-elements/eds-input-label/eds-input-label.d.ts +0 -3
- package/dist/types/components/eds-input-field/eds-input-field.d.ts +47 -72
- package/dist/types/components.d.ts +104 -80
- package/package.json +1 -1
- package/dist/components/p-019555e2.entry.js +0 -1
- package/dist/components/p-0ed92872.entry.js +0 -1
- package/dist/components/p-223ba66e.entry.js +0 -1
- package/dist/components/p-2810d568.entry.js +0 -1
- package/dist/components/p-682f7376.entry.js +0 -1
- package/dist/components/p-b4abff90.entry.js +0 -1
- package/dist/components/p-d25364db.entry.js +0 -1
- package/dist/components/p-e6a0b8c2.entry.js +0 -1
|
@@ -408,9 +408,9 @@ const EdsFooter = class {
|
|
|
408
408
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
409
409
|
*/
|
|
410
410
|
render() {
|
|
411
|
-
return (index.h("footer", { key: '
|
|
411
|
+
return (index.h("footer", { key: '97eecea73acf5ee3d125a446939010055c24e3f3' }, this.social ? (index.h("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, index.h("div", { class: "container pb-20" }, index.h("div", { class: "grid-layout" }, index.h("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, index.h("eds-social-networks", { class: "mt-28" })))))) : null, index.h("div", { key: 'b7592d90406aa7b5e4d71e2947335a85dbbf70ae', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, index.h("div", { key: '054190192082a4fdd2435ef62e5e7765386149f5', class: "container flex items-center gap-20 lg:flex-nowrap" }, index.h("div", { key: 'baa874cda99a882f33643609ffd2b99f09db3646', class: "flex items-center gap-x-12" }, index.h("a", { key: 'f47a0e02c7db660ab2c5b9894fd6ef1f820239cf', 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-europe_en", "aria-label": "Learn about Horizon Europe funding" }, index.h("eds-img", { key: '470f3ccae44a83383ad7f5bfcab880365b203a50', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), index.h("div", { key: 'a02153ae5b772b105272eac575911826747ea246' }, index.h("div", { key: 'a274e52402142dce7df575b29ce8802d1d662368', class: "f-ui-04 text-light" }, index.h("p", { key: 'ae2c393b8585aecd25d08ad20fe8bd712f9c12b5' }, this.fundedBy), index.h("div", { key: '9ef102155624ef47071d4285ea00c65d66d8606e', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, index.h("span", { key: '86f5992c7570fcd88c80f7877f08cd4b357ca291', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (index.h("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
|
|
412
412
|
this.toggleCookiesConsent();
|
|
413
|
-
} })) : null))), index.h("div", { key: '
|
|
413
|
+
} })) : null))), index.h("div", { key: '3ffce63f46352acd80eff48fb121b5ee165c1ad5', class: "ml-auto pl-12" }, this.enableScrollTop ? (index.h("eds-button", { id: "backToTop", "aria-hidden": "true", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, class: "transition-all transition duration-75 opacity-0 " })) : null)))));
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
EdsFooter.style = EdsFooterStyle0;
|
|
@@ -823,13 +823,13 @@ const EdsForm = class {
|
|
|
823
823
|
render() {
|
|
824
824
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
825
825
|
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
826
|
-
return (index.h("form", { key: '
|
|
826
|
+
return (index.h("form", { key: '1a53a4f0d2b8420a14db6fe35548a86cfeb8b698', ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, index.h("div", { key: '8fdd2fa6b73f24c025b43d6f0b34cdbb22e0ec82' }, index.h("slot", { key: '385f8c71b86b7ab9a74c1b7a0204331d0022467f' }), hiddenFields.map((field, index$1) => (index.h("eds-input", { key: index$1, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index$1) => {
|
|
827
827
|
var _a, _b;
|
|
828
828
|
if (!this.isFieldVisible(field)) {
|
|
829
829
|
return null;
|
|
830
830
|
}
|
|
831
|
-
return (index.h("eds-input-field", { key: index$1, name: field.name, id: `${this.name}_${field.name}`, label: field.label, placeholder: field.placeholder, value: this.values[field.name] || null, type: field.type, icon: field.icon || null, disabled: field.disabled, required: field.required, maxLength: field.maxlength, hint: field.hint, link: field.link, message: field.message, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field),
|
|
832
|
-
})), this.formBtn && (index.h("div", { key: '
|
|
831
|
+
return (index.h("eds-input-field", { key: index$1, name: field.name, id: `${this.name}_${field.name}`, label: field.label, placeholder: field.placeholder, value: this.values[field.name] || null, type: field.type, icon: field.icon || null, disabled: field.disabled, required: field.required, maxLength: field.maxlength, hint: field.hint, link: field.link, message: field.message, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field), class: index$1 > 0 ? 'mt-20' : '', options: field.options }));
|
|
832
|
+
})), this.formBtn && (index.h("div", { key: '0a120557c574112a8686087cfe2dbf3aae3feaa5', class: "mt-20" }, index.h("eds-button", { key: '277a39f0d82e01f549966aa0c91347e090a82bc7', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
833
833
|
}
|
|
834
834
|
get el() { return index.getElement(this); }
|
|
835
835
|
static get watchers() { return {
|
|
@@ -953,7 +953,7 @@ const EdsHeader = class {
|
|
|
953
953
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
954
954
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
955
955
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
956
|
-
return (index.h("header", { key: '
|
|
956
|
+
return (index.h("header", { key: '635e25577674250c4ce8cdc91e29fa0c93b7e821', class: `flex items-center justify-between relative z-10 ${classes}` }, index.h("div", { key: '41275c9aedeff533f00348dfa85b49fdb1a3f25e', class: "mr-auto w-[200px] h-[85px]" }, index.h("eds-logo", { key: 'fa8949ebbeab567b3770c6795a890f9187b66cf2', type: logoType, href: this.homeUrl })), this.parsedLinks && (index.h("nav", { key: '64428c01fee019a77b15b2ad43fbdb18cf5cc1e9', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, index.h("ul", { key: '8b6e7e82f077409987e0271f1d1c57d3473a0921', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (index.h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "large", 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" })))))), index.h("slot", { key: '7ba569eafe18d902e78978840520d708b665a91b' }), this.menuEnabled && (index.h("div", { key: '54c21f2e71a44049c56e4b31ba241996a1e658c3', class: "md:hidden flex overflow-hidden px-16" }, index.h("eds-button", { key: 'e0bcc14abcad7151cacf19a4c50f238e39538754', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
957
957
|
}
|
|
958
958
|
get hostEl() { return index.getElement(this); }
|
|
959
959
|
};
|
|
@@ -1113,39 +1113,29 @@ const EdsInputFieldStyle0 = edsInputFieldCss;
|
|
|
1113
1113
|
const EdsInputField = class {
|
|
1114
1114
|
constructor(hostRef) {
|
|
1115
1115
|
index.registerInstance(this, hostRef);
|
|
1116
|
+
this.edsinput = index.createEvent(this, "edsinput", 7);
|
|
1117
|
+
this.edschange = index.createEvent(this, "edschange", 7);
|
|
1116
1118
|
this.handleNativeInput = (ev) => {
|
|
1117
1119
|
var _a;
|
|
1118
|
-
// 1) Call any passed-in handler
|
|
1119
1120
|
(_a = this.onInput) === null || _a === void 0 ? void 0 : _a.call(this, ev);
|
|
1120
1121
|
if (this.shouldEmitValue()) {
|
|
1121
|
-
// 2) Re-emit on host so Vue/others can catch it
|
|
1122
1122
|
const newValue = ev.target.value;
|
|
1123
|
-
this.
|
|
1124
|
-
detail: { value: newValue },
|
|
1125
|
-
bubbles: false,
|
|
1126
|
-
composed: true
|
|
1127
|
-
}));
|
|
1123
|
+
this.edsinput.emit({ value: newValue });
|
|
1128
1124
|
}
|
|
1129
1125
|
};
|
|
1130
1126
|
this.handleNativeChange = (ev) => {
|
|
1131
1127
|
var _a;
|
|
1132
|
-
(_a = this.
|
|
1128
|
+
(_a = this.onChangeNative) === null || _a === void 0 ? void 0 : _a.call(this, ev);
|
|
1133
1129
|
if (this.shouldEmitValue()) {
|
|
1134
1130
|
const target = ev.target;
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
bubbles: false,
|
|
1138
|
-
composed: true
|
|
1139
|
-
}));
|
|
1131
|
+
const value = target.value;
|
|
1132
|
+
this.edschange.emit({ value });
|
|
1140
1133
|
}
|
|
1141
1134
|
};
|
|
1142
1135
|
this.name = undefined;
|
|
1143
1136
|
this.inputId = undefined;
|
|
1144
1137
|
this.placeholder = undefined;
|
|
1145
1138
|
this.disabled = false;
|
|
1146
|
-
this.onChange = undefined;
|
|
1147
|
-
this.onInput = undefined;
|
|
1148
|
-
this.type = 'text';
|
|
1149
1139
|
this.required = false;
|
|
1150
1140
|
this.label = undefined;
|
|
1151
1141
|
this.hint = undefined;
|
|
@@ -1158,22 +1148,22 @@ const EdsInputField = class {
|
|
|
1158
1148
|
this.value = undefined;
|
|
1159
1149
|
this.maxLength = undefined;
|
|
1160
1150
|
this.options = undefined;
|
|
1151
|
+
this.type = 'text';
|
|
1152
|
+
this.onChangeNative = undefined;
|
|
1153
|
+
this.onInput = undefined;
|
|
1161
1154
|
this.exposeValueEvents = true;
|
|
1162
1155
|
}
|
|
1163
1156
|
shouldEmitValue() {
|
|
1164
|
-
// Never emit for password fields, and respect the exposeValueEvents prop
|
|
1165
1157
|
return this.exposeValueEvents && this.type !== 'password';
|
|
1166
1158
|
}
|
|
1167
1159
|
get parsedOptions() {
|
|
1168
|
-
if (Array.isArray(this.options))
|
|
1160
|
+
if (Array.isArray(this.options))
|
|
1169
1161
|
return this.options;
|
|
1170
|
-
|
|
1171
|
-
else if (typeof this.options === 'string') {
|
|
1162
|
+
if (typeof this.options === 'string') {
|
|
1172
1163
|
try {
|
|
1173
1164
|
return JSON.parse(this.options);
|
|
1174
1165
|
}
|
|
1175
1166
|
catch (_a) {
|
|
1176
|
-
// eslint-disable-next-line
|
|
1177
1167
|
console.warn('Invalid options format');
|
|
1178
1168
|
return [];
|
|
1179
1169
|
}
|
|
@@ -1195,7 +1185,8 @@ const EdsInputField = class {
|
|
|
1195
1185
|
icon: this.icon,
|
|
1196
1186
|
checked: this.checked
|
|
1197
1187
|
};
|
|
1198
|
-
return (index.h("div", { key: '
|
|
1188
|
+
return (index.h("div", { key: '6f048dc1418d0738fc097d3c48148ccfdf70fbdc' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (index.h("fieldset", { class: "space-y-4 mt-8" }, index.h("div", { class: "flex justify-between" }, this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (index.h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (index.h("div", { class: "flex items-center gap-x-2", key: option.value }, index.h("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: typeof this.value === 'string' &&
|
|
1189
|
+
this.value.split(',').includes(String(option.value)) })), index.h("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (index.h("div", { class: "flex items-center gap-x-8" }, index.h("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' })), this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (index.h("div", null, index.h("div", { class: "flex justify-between" }, this.label && (index.h("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (index.h("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (index.h("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (index.h("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (index.h("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
1199
1190
|
var _a, _b, _c;
|
|
1200
1191
|
const rangeProps = {
|
|
1201
1192
|
name: inputOpts.name,
|
|
@@ -1208,12 +1199,15 @@ const EdsInputField = class {
|
|
|
1208
1199
|
const opt = this.parsedOptions;
|
|
1209
1200
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
1210
1201
|
return (index.h("eds-input-range", Object.assign({}, rangeProps, { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, value: numberValue })));
|
|
1211
|
-
})()) : (index.h("eds-input", Object.assign({}, inputOpts))))), index.h("eds-input-footer", { key: '
|
|
1202
|
+
})()) : (index.h("eds-input", Object.assign({}, inputOpts))))), index.h("div", { key: '27fb201362b478009fdc68a285395bfc24e84d45', class: "mt-4" }, index.h("eds-input-footer", { key: 'cd3d5742879b13ab62f9ba989971290b527be3ca', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
|
|
1212
1203
|
}
|
|
1213
1204
|
get hostEl() { return index.getElement(this); }
|
|
1214
1205
|
};
|
|
1215
1206
|
EdsInputField.style = EdsInputFieldStyle0;
|
|
1216
1207
|
|
|
1208
|
+
const edsInputFooterCss = "p{margin:0}.text-error{color:var(--red-700)}.flex{display:flex}.items-center{align-items:center}.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)}.ml-4{margin-left:0.25rem}.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)}.text-lighter{color:var(--grey-600)}.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)}.hover\\:text-lighter:hover{color:var(--grey-600)}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}";
|
|
1209
|
+
const EdsInputFooterStyle0 = edsInputFooterCss;
|
|
1210
|
+
|
|
1217
1211
|
const EdsInputFooter = class {
|
|
1218
1212
|
constructor(hostRef) {
|
|
1219
1213
|
index.registerInstance(this, hostRef);
|
|
@@ -1224,9 +1218,13 @@ const EdsInputFooter = class {
|
|
|
1224
1218
|
this.link = undefined;
|
|
1225
1219
|
}
|
|
1226
1220
|
render() {
|
|
1227
|
-
return (index.h("div", { key: '
|
|
1221
|
+
return (index.h("div", { key: 'a9f24f8726c7d5bcc3adfcb1d93a6076b0e672d8' }, this.error && this.errorMessage && (index.h("div", { key: '5ed4b0881215887ed5532b4f6619cfe22f896773', id: `error_${this.name}`, class: "text-error flex items-center" }, index.h("eds-icon-wrapper", { key: '978b51b85d34c05f5f86ffa228404514e7572145', icon: "warning" }), index.h("p", { key: '10c97eea1f6a835ad6c85618578fd4fa58a7d5f5', class: "f-ui-04 ml-4", innerHTML: this.errorMessage }))), this.message && index.h("p", { key: '61db4e71da9136a1c2ede4bd30edb6c8f61e05d2', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (index.h("a", { key: 'f44a7c6c17be59a6e6361a1a10c842f9c99f4b47', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
|
|
1228
1222
|
}
|
|
1229
1223
|
};
|
|
1224
|
+
EdsInputFooter.style = EdsInputFooterStyle0;
|
|
1225
|
+
|
|
1226
|
+
const edsInputLabelCss = ".input-label{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)}.input-label b,.input-label strong{font-weight:var(--f-ui-04---bold-weight, bold)}.text-lighter{color:var(--grey-600)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
|
|
1227
|
+
const EdsInputLabelStyle0 = edsInputLabelCss;
|
|
1230
1228
|
|
|
1231
1229
|
const EdsInputLabel = class {
|
|
1232
1230
|
constructor(hostRef) {
|
|
@@ -1237,9 +1235,10 @@ const EdsInputLabel = class {
|
|
|
1237
1235
|
this.disabled = false;
|
|
1238
1236
|
}
|
|
1239
1237
|
render() {
|
|
1240
|
-
return (index.h("label", { key: '
|
|
1238
|
+
return (index.h("label", { key: '4007d3a533b1d4f199cd143fe0c1d3851a4906b1', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (index.h("span", { key: '319f85ff60d45e24ba8e21ace46b44534f9e1cbf' }, index.h("span", { key: '329b9936137fafa7aae9a442296eb44baaf1ab85', "aria-hidden": "true" }, "*"), index.h("span", { key: 'acac48485fa35c9245bb8795cab0a2b40eb1cee2', class: "sr-only" }, "required")))));
|
|
1241
1239
|
}
|
|
1242
1240
|
};
|
|
1241
|
+
EdsInputLabel.style = EdsInputLabelStyle0;
|
|
1243
1242
|
|
|
1244
1243
|
const EdsInputRange = class {
|
|
1245
1244
|
constructor(hostRef) {
|
|
@@ -1598,7 +1597,7 @@ const EdsLink = class {
|
|
|
1598
1597
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
1599
1598
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
1600
1599
|
: '';
|
|
1601
|
-
return (index.h(ComponentType, { key: '
|
|
1600
|
+
return (index.h(ComponentType, { key: 'bdb8851264265b71dab033b807389ccd26519696', class: `${classes || ''} ${this.extraClass || ''}`, href: !this.disabled ? this.url : undefined, target: this.external && !this.disabled ? '_blank' : undefined, rel: this.external && !this.disabled ? 'noopener noreferrer' : undefined, "aria-label": computedAriaLabel, "aria-disabled": this.disabled ? 'true' : null, "aria-current": this.current ? 'page' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event) }, index.h("span", { key: 'fdf681ed48873939fb147c51fce59c7ff8ae772e', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), index.h("span", { key: 'aa2ac0a8c0d12197a4c2c3263b1550f83a1df72f', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
1602
1601
|
}
|
|
1603
1602
|
get el() { return index.getElement(this); }
|
|
1604
1603
|
};
|
|
@@ -1666,7 +1665,7 @@ const EdsLogo = class {
|
|
|
1666
1665
|
}
|
|
1667
1666
|
render() {
|
|
1668
1667
|
const logoContent = this.getLogo();
|
|
1669
|
-
return (index.h("a", { key: '
|
|
1668
|
+
return (index.h("a", { key: 'ff5c1ee09b325dca504a73b2d9eb4910fb67835d', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, index.h("div", { key: '10ef011b7e3725231cf12771be38b209661709ed', innerHTML: logoContent })));
|
|
1670
1669
|
}
|
|
1671
1670
|
get el() { return index.getElement(this); }
|
|
1672
1671
|
};
|
|
@@ -1787,9 +1786,9 @@ const EdsModal = class {
|
|
|
1787
1786
|
render() {
|
|
1788
1787
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
1789
1788
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
1790
|
-
return (index.h("div", { key: '
|
|
1789
|
+
return (index.h("div", { key: '064613bfc4ada7e980d47b7ccb37b21e313731ca', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (index.h("div", { key: '6430a5e2734f948e40ccdc7bfcbd6e934070ff25', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
1791
1790
|
,
|
|
1792
|
-
onClick: () => this.close() })), index.h("div", { key: '
|
|
1791
|
+
onClick: () => this.close() })), index.h("div", { key: '468ce4425ce69c7612d9dbca6b812d7b0c2f869a', class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, index.h("div", { key: 'e694805e5c39df16801fd2f13eaf2f113fbe2c5e', class: `flex justify-between items-center border-b-2 border-softer px-20 py-20 ${this.inverseHeader ? 'bg-strongest text-inverse' : 'bg-dark text-default'}` }, index.h("span", { key: 'f4c1204f3971618138bd8385b15face3acd1ea71', id: titleId, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), index.h("eds-button", { key: '813ba1a0c5d357187fc73964bb66230a15593ddc', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), index.h("div", { key: '9ae10bc0e79c4553c2a5bdd2dbacd7a97d99f50c', class: "pt-8 px-20 py-20" }, index.h("slot", { key: 'f460df4582e298289ab7abcd5417b7ef8d8ac827' })))));
|
|
1793
1792
|
}
|
|
1794
1793
|
get el() { return index.getElement(this); }
|
|
1795
1794
|
};
|
|
@@ -1963,7 +1962,7 @@ const EdsPagination = class {
|
|
|
1963
1962
|
}
|
|
1964
1963
|
}
|
|
1965
1964
|
render() {
|
|
1966
|
-
return (index.h("div", { key: '
|
|
1965
|
+
return (index.h("div", { key: 'a92aad013df27ce619c50ee8ed273c4799d9b55b' }, this.total > 0 && this.mode === 'default' && (index.h("p", { key: '33b6a436765a10356cf201c19b837f668a74a035', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, index.h("span", { key: '0c45ab429986ba7537abbdaafddd4b960b92f41a', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (index.h("nav", { "aria-label": "Pagination" }, index.h("ul", { class: "flex items-center justify-center gap-x-8" }, index.h("li", { class: "mr-auto" }, index.h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
1967
1966
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
1968
1967
|
: this.isFirstPage()
|
|
1969
1968
|
? '#'
|
|
@@ -2058,7 +2057,7 @@ const EdsSocialNetworks = class {
|
|
|
2058
2057
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
2059
2058
|
*/
|
|
2060
2059
|
render() {
|
|
2061
|
-
return (index.h("div", { key: '
|
|
2060
|
+
return (index.h("div", { key: '6d52d64b09170108d1b61157d0ab126cefa794be' }, index.h("p", { key: '97e929fdaff0bcd4360140428007da0294567ea9', class: "f-ui-02" }, this.heading), index.h("ul", { key: '3264e9e0ac366c4a502b69f6aa8545935b8536e7', 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" })))))));
|
|
2062
2061
|
}
|
|
2063
2062
|
};
|
|
2064
2063
|
EdsSocialNetworks.style = EdsSocialNetworksStyle0;
|
|
@@ -2589,11 +2588,11 @@ const EdsTabs = class {
|
|
|
2589
2588
|
});
|
|
2590
2589
|
}
|
|
2591
2590
|
render() {
|
|
2592
|
-
return (index.h("div", { key: '
|
|
2591
|
+
return (index.h("div", { key: 'dd41d2d7ccbe03e08d3c20a2e9a370e69dfd1459', id: `${this.identifier}` }, index.h("div", { key: '14c95711c8e7df2b7f6f0557ce233bc1a68ad31b', 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: '3ed1c5cc5d0aa1e7cb4bebe337885c7e5687aa68', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index$1) => {
|
|
2593
2592
|
const TabComponent = tab.active ? 'span' : 'a';
|
|
2594
2593
|
const tabProps = this.getTabOptions(tab.active, index$1);
|
|
2595
2594
|
return (index.h(TabComponent, Object.assign({}, tabProps, { "aria-label": tab.label, "aria-current": index$1 === this.activeIndex, onClick: () => this.handleTabClick(index$1, tab.label) }), tab.label || tab.ariaLabel));
|
|
2596
|
-
}))), index.h("div", { key: '
|
|
2595
|
+
}))), index.h("div", { key: '63399c53b2e5d642676d7f884bdecec0f8c515de', class: "tab-panels" }, this.parsedTabs.map((_, index$1) => (index.h("div", { hidden: index$1 !== this.activeIndex }, index.h("slot", { name: `panel-${index$1}` })))))));
|
|
2597
2596
|
}
|
|
2598
2597
|
get el() { return index.getElement(this); }
|
|
2599
2598
|
static get watchers() { return {
|
|
@@ -2638,7 +2637,7 @@ const EdsTag = class {
|
|
|
2638
2637
|
}
|
|
2639
2638
|
render() {
|
|
2640
2639
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
2641
|
-
return index.h("span", { key: '
|
|
2640
|
+
return index.h("span", { key: 'a0d8788511615d0099fd764501449476126d343f', class: classes }, this.label);
|
|
2642
2641
|
}
|
|
2643
2642
|
};
|
|
2644
2643
|
EdsTag.style = EdsTagStyle0;
|
|
@@ -2675,7 +2674,7 @@ const EdsUser = class {
|
|
|
2675
2674
|
}
|
|
2676
2675
|
render() {
|
|
2677
2676
|
const user = this.parsedUser;
|
|
2678
|
-
return (index.h("div", { key: '
|
|
2677
|
+
return (index.h("div", { key: 'b30b0a30a94c6bd9046b234cd793da80c1b16de8', class: "block" }, index.h("div", { key: '9ecea595c3d900aeda7c75a6aa5ae84999d775e1', class: "flex items-center" }, index.h("eds-dropdown", { key: '6a4c4751aaeaa6426ee4c89305b5c419ee912ced', label: `Hi, ${user.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, index.h("div", { key: '8e695af42fd229ca71e5d8f6fe367ed5ecc4184b', class: "min-w-[280px] p-8" }, index.h("div", { key: 'd28e78ace074d7513a002297558219afae079646', class: "flex gap-x-16" }, index.h("eds-avatar", { key: 'e9895e380ece01d116c14dbf0424061b1a039261', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "grey" }), index.h("div", { key: '1597248135606e3300546b3278114cd8cc36d4b5', class: "max-w-full" }, user.name && index.h("p", { key: 'fa04e93e50f3cf6d1e3d49dafc02d0dd5233a9f4', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && index.h("p", { key: '1203bf8078cb1c2a4d31effbe96e7aefd9222eb2', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && index.h("p", { key: '6fcd932e87eb6e086daf61d2d8d16e6f8f27f12a', class: "f-ui-03-light text-light mt-4" }, user.email))), index.h("eds-block-break", { key: '5811252802eecc3f5c001705c8e8fb94fb33e1bb' }), index.h("div", { key: 'd28913e74e9924f51e9b1e92a0f42691c733c438', class: "text-default flex w-full flex-col gap-y-8" }, index.h("slot", { key: 'bb003f9bff1042b2778a7a924dc87c7baf1a9fb7' })))))));
|
|
2679
2678
|
}
|
|
2680
2679
|
get hostEl() { return index.getElement(this); }
|
|
2681
2680
|
};
|
|
@@ -31,7 +31,7 @@ const EdsCookiesPreference = class {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (index.h("div", { key: '
|
|
34
|
+
return (index.h("div", { key: '4563e11542b6cab4f509ec25646a0e1f8380af6c' }, index.h("eds-link", { key: '24185ecd7818920490c1ca5c742e0f1a884f27da', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && index.h("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
EdsCookiesPreference.style = EdsCookiesPreferenceStyle0;
|
|
@@ -62,7 +62,7 @@ const EdsFeedback = class {
|
|
|
62
62
|
const HeadingTag = this.headingLevel;
|
|
63
63
|
const levelNum = this.headingLevel.replace('h', '');
|
|
64
64
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
65
|
-
return (index.h("div", { key: '
|
|
65
|
+
return (index.h("div", { key: 'b51bb78eea70babd1b1ca98ed5e657184d8e459f', class: "grid inline" }, index.h(HeadingTag, { key: 'eb84cce3a03aec99d0980ecd3c4aa4338f8d14e2', class: headingClass }, this.label), index.h("p", { key: '5923739b4a7e73dc1c83710fe1535d51d6289b02', class: "f-body-01 text-light" }, this.description), index.h("eds-rating", { key: '08d4b80838bc758cfdcf6f909f4bb41ae00d4c40', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (index.h("span", { key: '849014d7a3c2ebf78b1de434d7ad92549c0ae2de', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
66
66
|
}
|
|
67
67
|
get el() { return index.getElement(this); }
|
|
68
68
|
};
|
|
@@ -76,7 +76,7 @@ const EdsFrame = class {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (index.h("div", { key: '
|
|
79
|
+
return (index.h("div", { key: 'acfa57c701b5c683b3ff48ac2ff6a7c782977cd4', class: this.articleClasses() }, index.h("div", { key: 'd62b6f7f67e41a6c8f0948c9d94e991d83dbe273', class: "effect-height flex items-center justify-between py-8 px-12" }, index.h("span", { key: '40618b0353599888578e08a5422da754f97455d0', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (index.h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), index.h("div", { key: '96656482b2732aa766d1bcb45f28189991adb493', class: "border-softer" }, this.iframeError ? (index.h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (index.h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
80
80
|
}
|
|
81
81
|
get el() { return index.getElement(this); }
|
|
82
82
|
};
|
|
@@ -48,7 +48,7 @@ const EdsProgressBar = class {
|
|
|
48
48
|
]
|
|
49
49
|
.filter(Boolean)
|
|
50
50
|
.join(' ');
|
|
51
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: '4d1905ce42ee1b539519c8bdbcc9cf8d8aad9f03', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, index.h("div", { key: '7feec42063d2111f68e9957e1b5ca5550df284d0', class: fillClasses, style: { width: `${progressValue}%` } }), index.h("div", { key: '13ab32e048f0b9e68e8bef96775b5204b653ed95', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, index.h("span", { key: 'e46641bd65faf5ae4fb3a3c0542d312c9e9f1565', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
EdsProgressBar.style = EdsProgressBarStyle0;
|
|
@@ -49,7 +49,7 @@ const EdsRating = class {
|
|
|
49
49
|
this.rating.emit(rating);
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (index.h("div", { key: '
|
|
52
|
+
return (index.h("div", { key: 'ece1af90e2dea3f69dfef822d7f4f55f76866cbd', role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (_, index$1) => {
|
|
53
53
|
const starRating = index$1 + 1;
|
|
54
54
|
const isSelected = starRating <= this.selectedRating;
|
|
55
55
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -16,7 +16,7 @@ const EdsSectionCore = class {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
19
|
-
return (index.h(TagType, { key: '
|
|
19
|
+
return (index.h(TagType, { key: '0593fd387e636b25fd817a985db481b654ef169b' }, index.h("eds-section-heading", { key: '98805f9d6bdeb1a10f351d6d8277e7fb877b0e63', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), index.h("slot", { key: '6432856b8bf5f311a42406f4c6126982b2e05cf1' })));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
EdsSectionCore.style = EdsSectionCoreStyle0;
|
|
@@ -46,12 +46,12 @@ const EdsSectionHeading = class {
|
|
|
46
46
|
render() {
|
|
47
47
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
48
48
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
49
|
-
return (index.h(TagType, { key: '
|
|
49
|
+
return (index.h(TagType, { key: '4fa6ecdd941eb943faa7311e94d9b67b63273414', class: {
|
|
50
50
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
51
51
|
container: this.withContainer,
|
|
52
52
|
'pt-48': this.spacingLarge,
|
|
53
53
|
'pt-28': !this.spacingLarge
|
|
54
|
-
} }, index.h(HeadingTag, { key: '
|
|
54
|
+
} }, index.h(HeadingTag, { key: '945d7d615601806d670ab666971bc6b07e1f442c', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -46,7 +46,7 @@ const EdsSpinner = class {
|
|
|
46
46
|
alignItems: 'center',
|
|
47
47
|
justifyContent: 'center'
|
|
48
48
|
};
|
|
49
|
-
return (index.h(index.Host, { key: '
|
|
49
|
+
return (index.h(index.Host, { key: '7f8e9654757478a1b5298d133739d955dbf9a15f' }, index.h("div", { key: '245e9e61a19c1cdff34ab8b9f70b7e69f1a229f7', class: "spinner-overlay", style: overlayStyle }, index.h("span", { key: 'e8befeaef6af66d45e3c3b20042a3f626754cfc5', class: "spinner", style: spinnerStyle }))));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
EdsSpinner.style = EdsSpinnerStyle0;
|
|
@@ -33,11 +33,11 @@ const EdsSwitch = class {
|
|
|
33
33
|
render() {
|
|
34
34
|
// Compute an accessible name based on state.
|
|
35
35
|
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
36
|
-
return (index.h("div", { key: '
|
|
36
|
+
return (index.h("div", { key: 'f2c3cd27a317b64ac05b5b2841f87827ff9f18fc', class: "switch-container" }, this.labelOff && index.h("span", { key: '08e47e239c5a6de0440b731589fd5f365919df24', class: "switch-label switch-label--off mr-8" }, this.labelOff), index.h("button", { key: 'd731fa56f93b67daaeaac22c1080a7171360525c', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
|
|
37
37
|
switch: true,
|
|
38
38
|
'switch--checked': this.checked,
|
|
39
39
|
'switch--disabled': this.disabled
|
|
40
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, index.h("span", { key: '
|
|
40
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, index.h("span", { key: '8bbe2bd4c2050dbda4723615b4eb0fa2936d35d8', class: "switch-handle" })), this.labelOn && index.h("span", { key: '73991400f5a8e0e6c6d1c09196639add3e98c71f', class: "switch-label switch-label--on ml-8" }, this.labelOn)));
|
|
41
41
|
}
|
|
42
42
|
get el() { return index.getElement(this); }
|
|
43
43
|
};
|
|
@@ -47,7 +47,7 @@ const EdsTimeline = class {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (index.h("div", { key: '
|
|
50
|
+
return (index.h("div", { key: 'cac0d2731a21edeef728166f1e3e4cedd2a9d336', class: "max-w-sidebar mx-auto px-4 py-8" }, index.h("div", { key: 'ecfe58e3e5f54fbfcdfe898b0349af4838e59d4e', class: "relative" }, index.h("div", { key: 'b6e0fe316d79d80db8cd7d855c10b9f1db045f20', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), index.h("div", { key: '95b8ff805c7b6f2f2a4635cf67d0ec7dfa127871', class: "space-y-16" }, this.parsedEvents.map((event, index$1) => (index.h("div", { class: "relative flex" }, index.h("div", { class: `w-1/2 ${index$1 % 2 === 0 ? 'pr-4' : ''}` }, index$1 % 2 === 0 && (index.h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
51
51
|
? [{ label: 'completed', style: 'accent' }]
|
|
52
52
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), index.h("div", { class: "flex items-center justify-center relative" }, event.completed ? (index.h("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (index.h("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), index.h("div", { class: `w-1/2 ${index$1 % 2 !== 0 ? 'pl-4' : ''}` }, index$1 % 2 !== 0 && (index.h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
53
53
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -66,7 +66,7 @@ const EdsToastManager = class {
|
|
|
66
66
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (index.h("div", { key: '
|
|
69
|
+
return (index.h("div", { key: '62a106f36d1693163c25aee615570967573bbbc9', class: "toast-container" }, this.toasts.map((t) => (index.h("div", { key: t.id }, index.h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
70
70
|
}
|
|
71
71
|
get hostElement() { return index.getElement(this); }
|
|
72
72
|
};
|
|
@@ -23,7 +23,7 @@ const EdsTooltip = class {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (index.h("div", { key: '
|
|
26
|
+
return (index.h("div", { key: '3a0e3ecde6e5d0cf1aa002c9bb45874fbf10b9a2', class: "relative inline-block group" }, index.h("slot", { key: 'd4902b6a12e0cf1967e16e7b2cf600067887f597' }), index.h("div", { key: '59d026861c598be73f66ebd548f6da820b8ff357', class: "absolute bottom-full left-1/2 \n transform -translate-x-1/2 mb-2\n rounded-xs bg-strongest text-inverse \n f-ui-03-light pointer-events-none \n z-10 whitespace-nowrap p-6 opacity-0 transition-opacity duration-150 ease-in-out\n group-hover:opacity-100", role: "tooltip" }, this.content)));
|
|
27
27
|
}
|
|
28
28
|
get el() { return index.getElement(this); }
|
|
29
29
|
};
|
|
@@ -44,7 +44,7 @@ const EdsTrl = class {
|
|
|
44
44
|
Application: { format: 'code' },
|
|
45
45
|
'Current TRL Stage': { format: 'text' }
|
|
46
46
|
};
|
|
47
|
-
return (index.h("div", { key: '
|
|
47
|
+
return (index.h("div", { key: '3d7ccf2e5c1faa1705d5ba132e1c530504ede3bc', class: "container mx-auto px-4 py-8" }, index.h("eds-table", { key: '38880639acbef207ee660d5c9c59f00afd58cd38', "table-data": JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -43,7 +43,7 @@ const IncorrectUseOfColors = class {
|
|
|
43
43
|
index.registerInstance(this, hostRef);
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (index.h("div", { key: '
|
|
46
|
+
return (index.h("div", { key: 'ed003f432493176392848de9448512f655ebfa9f', class: "container" }, index.h("div", { key: '231dcfa8b0be673efb56dce00f499839d6877301', class: "mb-8" }, index.h("eds-alert", { key: '5bbd8f9e057d9f9d48813b962c952aeba6e4e1aa', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), index.h("div", { key: 'fb6ef214a96b60d1277c1326027f49b88fe2cab9', class: "flex" }, index.h("div", { key: '46a8671c782e8b7bd51947cce8d0c42ab7ca46af', class: "w-full" }, index.h("ul", { key: 'dd84eaf26634432c50f41fc1dc0479ba52a9a6b1', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), index.h("div", { key: '3db312eb1ac27957f44497a729d6b8e5fa631d2f', class: "w-full" }, index.h("ul", { key: '05ac3bf1478c21a5291bc8c492c59cb6240be4f9', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (index.h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, index.h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
|