@ebrains/components 3.0.0 → 3.1.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-accordion_52.cjs.entry.js → eds-accordion_53.cjs.entry.js} +847 -207
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- 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-gauge.cjs.entry.js +1 -1
- package/dist/cjs/eds-gitlab-contributors.cjs.entry.js +9 -2
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-input-search.cjs.entry.js +76 -0
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- 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-trl-badge.cjs.entry.js +181 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-50bc1aa4.js +10 -2
- 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/collection-manifest.json +4 -1
- package/dist/collection/components/eds-accordion/eds-accordion.css +3 -2
- package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +7 -19
- package/dist/collection/components/eds-alert/eds-alert.stories.js +19 -147
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +2 -2
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
- package/dist/collection/components/eds-button/eds-button.css +15 -0
- package/dist/collection/components/eds-button/eds-button.js +13 -6
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.css +10 -1
- package/dist/collection/components/eds-cards/eds-card-cta/eds-card-cta.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-feature/eds-card-feature.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-hero/eds-card-hero.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-stat/eds-card-stat.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +30 -4
- package/dist/collection/components/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/components/eds-footer/eds-footer.css +143 -203
- package/dist/collection/components/eds-footer/eds-footer.js +173 -76
- package/dist/collection/components/eds-footer/eds-footer.stories.js +108 -15
- package/dist/collection/components/eds-form/eds-form.css +37 -1
- package/dist/collection/components/eds-form/eds-form.js +45 -7
- package/dist/collection/components/eds-frame/eds-frame.js +1 -1
- package/dist/collection/components/eds-header/eds-header.js +1 -1
- package/dist/collection/components/eds-header/eds-header.stories.js +26 -12
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +20 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-img/eds-img.stories.js +29 -52
- package/dist/collection/components/eds-input-dropzone/eds-input-dropzone.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +20 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.css +29 -0
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +2 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.stories.js +30 -0
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +11 -5
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +82 -130
- package/dist/collection/components/eds-input-file/eds-input-file.js +1 -1
- package/dist/collection/components/eds-link/eds-link.js +1 -1
- package/dist/collection/components/eds-link/eds-link.stories.js +13 -8
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.stories.js +9 -8
- package/dist/collection/components/eds-nps/eds-nps.css +32 -0
- package/dist/collection/components/eds-nps/eds-nps.js +3 -3
- package/dist/collection/components/eds-pagination/eds-pagination.js +2 -2
- package/dist/collection/components/eds-rating/eds-rating.css +9 -0
- package/dist/collection/components/eds-rating/eds-rating.js +2 -2
- 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-sidebar/eds-sidebar.js +2 -2
- package/dist/collection/components/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +1 -1
- package/dist/collection/components/eds-table/eds-table.css +21 -4
- package/dist/collection/components/eds-table/eds-table.js +17 -50
- package/dist/collection/components/eds-table/eds-table.stories.js +5 -109
- package/dist/collection/components/eds-tabs/eds-tabs.css +7 -1
- package/dist/collection/components/eds-tabs/eds-tabs.js +47 -9
- 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-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +1 -1
- package/dist/collection/components/eds-user/eds-user.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-gitlab-contributors/eds-gitlab-contributors.css +19 -0
- package/dist/collection/shared-ui/eds-gitlab-contributors/eds-gitlab-contributors.js +8 -1
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.css +166 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +62 -6
- package/dist/collection/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.css +205 -0
- package/dist/collection/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.js +257 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +23 -102
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +7 -1
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.css +203 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.js +685 -0
- package/dist/collection/shared-ui/eds-search-select/eds-search-select.stories.js +85 -0
- package/dist/collection/shared-ui/eds-trl-badge/ebrains-mark.js +26 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.css +22 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.js +321 -0
- package/dist/collection/shared-ui/eds-trl-badge/eds-trl-badge.stories.js +96 -0
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +2 -1
- package/dist/collection/utils/eds-form/safeFormat.js +39 -0
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +3 -4
- 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-accordion2.js +2 -2
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +1 -1
- package/dist/components/eds-button2.js +12 -5
- package/dist/components/eds-card-cta.js +2 -2
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-feature.js +1 -1
- package/dist/components/eds-card-generic2.js +1 -1
- package/dist/components/eds-card-hero.js +1 -1
- package/dist/components/eds-card-stat.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +30 -4
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +115 -26
- package/dist/components/eds-form.js +61 -23
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-gitlab-contributors.js +9 -2
- package/dist/components/eds-global-search.js +48 -69
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-wrapper2.js +5 -2
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-dropzone2.js +1 -1
- package/dist/components/eds-input-field2.js +25 -25
- package/dist/components/eds-input-file2.js +1 -1
- package/dist/components/eds-input-footer2.js +43 -3
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search.js +100 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +4 -2
- package/dist/components/eds-kg-learning-resources.d.ts +11 -0
- package/dist/components/eds-kg-learning-resources.js +221 -0
- package/dist/components/eds-kg-web-services-select2.js +16 -22
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-matomo-notice2.js +8 -2
- package/dist/components/eds-nps2.js +4 -4
- package/dist/components/eds-pagination2.js +2 -2
- package/dist/components/eds-rating2.js +3 -3
- package/dist/components/eds-search-select.d.ts +11 -0
- package/dist/components/eds-search-select.js +6 -0
- package/dist/components/eds-search-select2.js +361 -0
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-sidebar.js +2 -2
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +1 -1
- package/dist/components/eds-table2.js +31 -53
- package/dist/components/eds-tabs.js +48 -10
- 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-tooltip2.js +1 -1
- package/dist/components/eds-trl-badge.d.ts +11 -0
- package/dist/components/eds-trl-badge.js +204 -0
- package/dist/components/eds-user.js +1 -1
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +19 -25
- 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-00ba405d.entry.js +1 -0
- package/dist/components/p-03342030.entry.js +1 -0
- package/dist/components/{p-0fe10e6c.entry.js → p-0e2bac0f.entry.js} +1 -1
- package/dist/components/{p-7aa4edef.entry.js → p-12acc48d.entry.js} +1 -1
- package/dist/components/p-18399fe1.entry.js +1 -0
- package/dist/components/p-1e6f0572.entry.js +1 -0
- package/dist/components/{p-c46675c8.entry.js → p-1fbcc480.entry.js} +1 -1
- package/dist/components/{p-dfe93385.entry.js → p-25729ade.entry.js} +1 -1
- package/dist/components/p-27e093c3.entry.js +1 -0
- package/dist/components/{p-a6dc1f88.entry.js → p-37ef07d9.entry.js} +1 -1
- package/dist/components/{p-74b9c9a8.entry.js → p-3d1bb2fe.entry.js} +1 -1
- package/dist/components/{p-940a2d42.entry.js → p-42791331.entry.js} +1 -1
- package/dist/components/p-5ff4b1d0.entry.js +1 -0
- package/dist/components/{p-d16b5363.entry.js → p-62580004.entry.js} +1 -1
- package/dist/components/{p-d2576747.entry.js → p-62f53e7a.entry.js} +1 -1
- package/dist/components/p-6be1730a.entry.js +1 -0
- package/dist/components/p-786ff09b.entry.js +1 -0
- package/dist/components/p-80a32e20.entry.js +1 -0
- package/dist/components/p-85476a6f.entry.js +9 -0
- package/dist/components/{p-a63e14bb.entry.js → p-8a483358.entry.js} +1 -1
- package/dist/components/{p-04e9c2d7.entry.js → p-b1a10842.entry.js} +1 -1
- package/dist/components/p-bdcb71e1.entry.js +1 -0
- package/dist/components/p-c2127276.entry.js +1 -0
- package/dist/components/p-c3ee9163.entry.js +1 -0
- package/dist/components/{p-f55dd314.entry.js → p-c4cfbf98.entry.js} +1 -1
- package/dist/components/p-c65082fe.entry.js +1 -0
- package/dist/components/p-cc096938.entry.js +1 -0
- package/dist/components/p-d59d6fda.entry.js +1 -0
- package/dist/components/p-e027bc90.entry.js +1 -0
- package/dist/components/{p-f364296f.entry.js → p-e339d0b5.entry.js} +1 -1
- package/dist/components/{p-0d7aee0b.entry.js → p-e4df206e.entry.js} +1 -1
- package/dist/components/{p-c2fc62f7.entry.js → p-e71a4f29.entry.js} +1 -1
- package/dist/components/{p-773bd015.entry.js → p-e9e6ec19.entry.js} +1 -1
- package/dist/components/p-f4d2f882.entry.js +1 -0
- package/dist/components/{p-d1b3aa52.entry.js → p-f9a9fa34.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 +19 -25
- 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-accordion_52.entry.js → eds-accordion_53.entry.js} +846 -207
- package/dist/esm/eds-app-root.entry.js +1 -1
- 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-gauge.entry.js +1 -1
- package/dist/esm/eds-gitlab-contributors.entry.js +9 -2
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/{components/eds-input-search2.js → esm/eds-input-search.entry.js} +9 -39
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl-badge.entry.js +177 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-870ab08f.js +10 -2
- 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 +1222 -207
- package/dist/hydrate/index.mjs +1222 -207
- package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +4 -8
- package/dist/types/components/eds-alert/eds-alert.stories.d.ts +7 -73
- package/dist/types/components/eds-button/eds-button.d.ts +1 -1
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +1 -0
- package/dist/types/components/eds-footer/eds-footer.d.ts +84 -55
- package/dist/types/components/eds-footer/eds-footer.stories.d.ts +62 -1
- package/dist/types/components/eds-form/eds-form.d.ts +10 -0
- package/dist/types/components/eds-header/eds-header.stories.d.ts +6 -6
- package/dist/types/components/eds-icon-wrapper/eds-icon-wrapper.d.ts +8 -0
- package/dist/types/components/eds-img/eds-img.stories.d.ts +6 -20
- package/dist/types/components/eds-input-elements/eds-input/eds-input.d.ts +7 -0
- package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.stories.d.ts +36 -0
- package/dist/types/components/eds-input-field/eds-input-field.stories.d.ts +97 -38
- package/dist/types/components/eds-link/eds-link.stories.d.ts +9 -6
- package/dist/types/components/eds-table/eds-table.d.ts +8 -14
- package/dist/types/components/eds-table/eds-table.stories.d.ts +0 -107
- package/dist/types/components/eds-tabs/eds-tabs.d.ts +10 -0
- package/dist/types/components.d.ts +507 -86
- package/dist/types/shared-ui/eds-global-search/eds-global-search.d.ts +12 -0
- package/dist/types/shared-ui/eds-kg-learning-resources/eds-kg-learning-resources.d.ts +60 -0
- package/dist/types/shared-ui/eds-search-select/eds-search-select.d.ts +98 -0
- package/dist/types/shared-ui/eds-search-select/eds-search-select.stories.d.ts +81 -0
- package/dist/types/shared-ui/eds-trl-badge/ebrains-mark.d.ts +7 -0
- package/dist/types/shared-ui/eds-trl-badge/eds-trl-badge.d.ts +54 -0
- package/dist/types/shared-ui/eds-trl-badge/eds-trl-badge.stories.d.ts +112 -0
- package/dist/types/utils/eds-form/safeFormat.d.ts +21 -0
- package/package.json +1 -1
- package/dist/components/p-18e852e1.entry.js +0 -1
- package/dist/components/p-3ccd6948.entry.js +0 -1
- package/dist/components/p-3d3841d6.entry.js +0 -1
- package/dist/components/p-3f38df99.entry.js +0 -1
- package/dist/components/p-527e71d0.entry.js +0 -1
- package/dist/components/p-55047f7f.entry.js +0 -9
- package/dist/components/p-64c23098.entry.js +0 -1
- package/dist/components/p-7b93a385.entry.js +0 -1
- package/dist/components/p-878f65a6.entry.js +0 -1
- package/dist/components/p-92f6d9c0.entry.js +0 -1
- package/dist/components/p-9eedf771.entry.js +0 -1
- package/dist/components/p-b4355cec.entry.js +0 -1
- package/dist/components/p-d2f17fac.entry.js +0 -1
- package/dist/components/p-db5eea95.entry.js +0 -1
- package/dist/components/p-e205c269.entry.js +0 -1
- package/dist/components/p-f88b5f21.entry.js +0 -1
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { sendAnalytics } from "../../utils/analytics";
|
|
3
3
|
import { parseData } from "../../utils/sharedUtils";
|
|
4
4
|
import { validateFormFields } from "../../utils/eds-form/formValidators";
|
|
5
|
+
import { safeInlineFormat } from "../../utils/eds-form/safeFormat";
|
|
5
6
|
import { validateInputField } from "../../utils/eds-form/validateInput";
|
|
6
7
|
import { getFormInitData } from "../../utils/eds-form/formUtils";
|
|
7
8
|
/**
|
|
@@ -199,7 +200,20 @@ export class EdsForm {
|
|
|
199
200
|
if (this.setFormUrl && typeof window !== 'undefined') {
|
|
200
201
|
formData.set('form_url', window.location.href);
|
|
201
202
|
}
|
|
203
|
+
// Group fields by name so we can drop values for fields hidden by a condition.
|
|
204
|
+
// A name may be reused across mutually-exclusive conditional variants (e.g. a
|
|
205
|
+
// `web_app_url` shown for service_type=web_app AND another for =platform), so a
|
|
206
|
+
// value is dropped ONLY when EVERY field with that name is hidden — if any
|
|
207
|
+
// variant is visible, its value is kept.
|
|
208
|
+
const fieldsByName = {};
|
|
209
|
+
this.parsedFields.forEach((f) => {
|
|
210
|
+
(fieldsByName[f.name] = fieldsByName[f.name] || []).push(f);
|
|
211
|
+
});
|
|
202
212
|
Object.keys(this.values).forEach((key) => {
|
|
213
|
+
const fields = fieldsByName[key];
|
|
214
|
+
if (fields && fields.length && !fields.some((f) => this.isFieldVisible(f))) {
|
|
215
|
+
return; // all fields with this name are conditionally hidden — skip
|
|
216
|
+
}
|
|
203
217
|
const value = this.values[key];
|
|
204
218
|
// Handle File arrays (from file inputs)
|
|
205
219
|
if (Array.isArray(value)) {
|
|
@@ -498,29 +512,53 @@ export class EdsForm {
|
|
|
498
512
|
return map;
|
|
499
513
|
}
|
|
500
514
|
renderField(field) {
|
|
501
|
-
var _a, _b, _c, _d;
|
|
515
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
502
516
|
if (!this.isFieldVisible(field)) {
|
|
503
517
|
return null;
|
|
504
518
|
}
|
|
519
|
+
// 0) Presentational "Text Block" — static formatted text, NOT an input.
|
|
520
|
+
// It has no value, is never added to the submission (makeFormData only
|
|
521
|
+
// iterates this.values) and is never validated (see formValidators). The
|
|
522
|
+
// text runs through formatDescription, which escapes HTML first, so author
|
|
523
|
+
// content can never inject markup — only the **bold**/[link]/newline subset.
|
|
524
|
+
if (field.type === 'content') {
|
|
525
|
+
const raw = ((_b = (_a = field.content) !== null && _a !== void 0 ? _a : field.label) !== null && _b !== void 0 ? _b : '');
|
|
526
|
+
return (h("div", { class: "eds-content-block f-body-02 text-default", key: field.name, innerHTML: this.formatDescription(raw) }));
|
|
527
|
+
}
|
|
505
528
|
// 1) Handle rating
|
|
506
529
|
if (field.type === 'rating') {
|
|
507
530
|
// pull the current value (or zero)
|
|
508
531
|
const val = this.values[field.name] || 0;
|
|
509
|
-
return (h("div", { class: "form-group rating-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), h("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (
|
|
532
|
+
return (h("div", { class: "form-group rating-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), h("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
|
|
510
533
|
}
|
|
511
534
|
else if (field.type === 'nps') {
|
|
512
535
|
// pull the current value (or null)
|
|
513
536
|
const val = this.values[field.name] !== undefined ? this.values[field.name] : null;
|
|
514
|
-
return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, "selected-value": val, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (
|
|
537
|
+
return (h("div", { class: "form-group nps-field", key: field.name }, h("div", { class: "flex justify-between" }, field && (h("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), h("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, "selected-value": val, onNps: (e) => this.handleNPS(e, field) }), h("div", { class: "mt-6" }, h("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_d = this.errors[field.name]) === null || _d === void 0 ? void 0 : _d.join('<br/>'), error: !!this.errors[field.name] }))));
|
|
538
|
+
}
|
|
539
|
+
else if (field.type === 'search-select') {
|
|
540
|
+
return (h("eds-search-select", { key: field.name, name: field.name, label: field.label, source: field.source, options: field.options, multiple: !!field.multiple, "api-base": field.apiBase || '/api/v1', placeholder: field.placeholder, required: field.required, disabled: field.disabled, hint: field.hint, message: field.message, error: !!this.errors[field.name], "error-message": (_e = this.errors[field.name]) === null || _e === void 0 ? void 0 : _e.join('<br/>'), value: this.values[field.name], onEdsinput: (e) => this.handleInput(e, field), onEdschange: (e) => this.handleChange(e, field) }));
|
|
515
541
|
}
|
|
516
542
|
else if (field.type === 'kg-web-service') {
|
|
517
|
-
return (h("eds-kg-web-services-select", { key: field.name, name: field.name, label: field.label, "api-endpoint": field.apiEndpoint || '/api/v1/kg/web-services/cached', placeholder: field.placeholder, required: field.required, disabled: field.disabled, hint: field.hint, message: field.message, error: !!this.errors[field.name], "error-message": (
|
|
543
|
+
return (h("eds-kg-web-services-select", { key: field.name, name: field.name, label: field.label, "api-endpoint": field.apiEndpoint || '/api/v1/kg/web-services/cached', placeholder: field.placeholder, required: field.required, disabled: field.disabled, hint: field.hint, message: field.message, error: !!this.errors[field.name], "error-message": (_f = this.errors[field.name]) === null || _f === void 0 ? void 0 : _f.join('<br/>'), value: this.values[field.name], size: field.size || 500, onEdsinput: (e) => this.handleInput(e, field), onEdschange: (e) => this.handleChange(e, field) }));
|
|
518
544
|
}
|
|
519
|
-
return (h("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, link: field.link, error: !!this.errors[field.name], errorMessage: (
|
|
545
|
+
return (h("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, link: field.link, error: !!this.errors[field.name], errorMessage: (_g = this.errors[field.name]) === null || _g === void 0 ? void 0 : _g.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
520
546
|
}
|
|
521
547
|
async getData() {
|
|
522
548
|
return this.makeFormData();
|
|
523
549
|
}
|
|
550
|
+
/**
|
|
551
|
+
* Render the form/step description with a small, safe subset of inline
|
|
552
|
+
* formatting so authors can add links and emphasis:
|
|
553
|
+
* **bold** → <strong>
|
|
554
|
+
* [label](url) → <a> (only http/https/mailto; others render as text)
|
|
555
|
+
* blank line / \n → paragraph / line break
|
|
556
|
+
* HTML is escaped FIRST, so author text can never inject markup — only the
|
|
557
|
+
* whitelisted patterns above produce tags.
|
|
558
|
+
*/
|
|
559
|
+
formatDescription(text) {
|
|
560
|
+
return safeInlineFormat(text);
|
|
561
|
+
}
|
|
524
562
|
render() {
|
|
525
563
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
526
564
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
@@ -536,9 +574,9 @@ export class EdsForm {
|
|
|
536
574
|
else if (this.formStyle === 'brand') {
|
|
537
575
|
styleClasses = 'bg-inverse form-brand relative rounded-xs p-32';
|
|
538
576
|
}
|
|
539
|
-
return (h("form", { key: '
|
|
577
|
+
return (h("form", { key: '5717a276eb4bcb1b40bb6c3a3d68e2372ccf0b37', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, h("div", { key: '8e9fec59b6cafccabbb67381a12541f12201cc48', class: "flex flex-col gap-y-20 overflow-visible" }, this.title && (h("span", { key: 'f47c68db954de63773257f9c898141be27278a00', role: "heading", class: "f-heading-05 pb-4 block" }, this.title)), this.description && h("span", { key: '4287bb5f9c31cf5d3953a032de4a8c269e1feb7e', class: "f-body-02 text-light", innerHTML: this.formatDescription(this.description) }), h("slot", { key: 'e9e52696eab6477354ac5ee6cbe08399483b1b37' })), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
540
578
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
541
|
-
.map((g) => (h("div", { class: "mt-32", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: '
|
|
579
|
+
.map((g) => (h("div", { class: "mt-32", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: '22d248217ea85d68e2be652ddcbfd13ed4775934', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), (this.formBtn || this.clearBtn) && (h("div", { key: '101f9e275d68f59b762938ff3f7d7102660b80f0', class: "mt-32 md:mt-64 flex flex-col items-center md:flex-row-reverse md:justify-between gap-y-16 md:gap-y-0" }, this.formBtn && (h("eds-button", { key: '02d427d951c715634605b6977f61cee67abaa8b0', intent: this.buttonIntent, pill: true, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, icon: 'arrow-right', size: "large", onClick: () => this.handleSubmit() })), this.clearBtn && (h("eds-button", { key: 'abf330715df3acf2a4bdc8d4f322fc13c70c267f', intent: "neutral", pill: true, size: "large", label: this.clearBtnLabel, disabled: this.isSubmitting || !this.values || Object.keys(this.values).length === 0, onClick: (e) => this.handleClear(e) }))))));
|
|
542
580
|
}
|
|
543
581
|
static get is() { return "eds-form"; }
|
|
544
582
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,7 +84,7 @@ export class EdsFrame {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: 'ddbc978054f645eb990cde6bdd26647bd01eeb1a', class: this.articleClasses() }, h("div", { key: '0a16fbd950742b8a75428b3705deaa03ef785a5b', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: '0c2a84cae101ec1e5352ed7be7b874b6ec45f37d', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-up-right" })) : null), h("div", { key: 'c001f1b33c5136820155b0299e83b6dc49fbbd43', class: "border-softer" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "eds-frame"; }
|
|
90
90
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +54,7 @@ export class EdsHeader {
|
|
|
54
54
|
const logoType = this.variant === 'strong' ? 'negative' : 'positive';
|
|
55
55
|
// Link intent based on header variant
|
|
56
56
|
const linkIntent = this.variant === 'strong' ? 'underlineInverse' : 'underline';
|
|
57
|
-
return (h("header", { key: '
|
|
57
|
+
return (h("header", { key: 'fd95f6b0126d620ab1d4f58240d471301d607fa5', role: "banner", class: `flex items-center justify-between relative z-10 ${classes}` }, h("div", { key: 'e7b1bd9a146543107d87ff6f4c8575ad63fc3889', class: "w-[250px]" }, h("div", { key: '257a8bf3d0efea39bd0e7f5c92d2a6bcbaa66d48', class: "p-[24px]" }, h("eds-logo", { key: '71365268524d0db6999dc6ff4a9227e388d53cdf', variant: logoType, href: this.url }))), this.parsedLinks && (h("nav", { key: '085b2bd5f667ea7e0be4de77cb4bd3d1a2bb6e3c', role: "navigation", "aria-label": "Primary", class: "flex-1 flex justify-center items-center hidden md:flex" }, h("ul", { key: 'b5c015e6e1fb376f6b48805cc5d0db436234a5fc', class: "flex gap-x-16" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: linkIntent, size: "large", icon: link.icon, external: link.external })))))), h("div", { key: '9bca10c081cd1b8157579fa587615538dc624817', class: "w-[250px] flex justify-end items-center" }, h("slot", { key: '360fb5fe76b41b2513cba2f8705ea5ea91cae9a9', name: "actions" })), this.menu && (h("div", { key: '7feaa2b97062e7ceb94bacc35e61a12edc0b2e54', class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { key: '706c1668e3b04517cfe0cb92da5b459980986df0', "aria-label": "Menu", intent: this.variant === 'strong' ? 'ghostInverse' : 'ghost', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "eds-header"; }
|
|
60
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,7 +2,7 @@ export default {
|
|
|
2
2
|
title: 'Components/Header/Main',
|
|
3
3
|
component: 'eds-header',
|
|
4
4
|
argTypes: {
|
|
5
|
-
|
|
5
|
+
url: {
|
|
6
6
|
control: 'text',
|
|
7
7
|
description: 'URL for the home logo link.'
|
|
8
8
|
},
|
|
@@ -10,31 +10,45 @@ export default {
|
|
|
10
10
|
control: 'object',
|
|
11
11
|
description: 'An array of link objects for the header navigation'
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
menu: {
|
|
14
14
|
control: 'boolean',
|
|
15
|
-
description: 'Shows/hides burger menu on small screens.'
|
|
15
|
+
description: 'Shows/hides burger menu toggle on small screens.'
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
variant: {
|
|
18
18
|
control: { type: 'select' },
|
|
19
19
|
options: ['default', 'inverse', 'strong'],
|
|
20
|
-
description: '
|
|
20
|
+
description: 'Header style variant: determines text and background colors.'
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
args: {
|
|
24
|
-
|
|
24
|
+
url: '/',
|
|
25
25
|
links: [
|
|
26
26
|
{ label: 'About', url: '#' },
|
|
27
27
|
{ label: 'Contact', url: '#' }
|
|
28
28
|
],
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
menu: false,
|
|
30
|
+
variant: 'default'
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
export const Default = (args) =>
|
|
33
|
+
export const Default = (args) => {
|
|
34
|
+
// The burger menu toggle is hidden on wide viewports (md:hidden) and only
|
|
35
|
+
// renders on small screens. When `menu` is enabled, surface a notice so the
|
|
36
|
+
// toggle isn't "missing" — mirrors the eds-footer story's matomo notice.
|
|
37
|
+
const menuNotice = String(args.menu) === 'true'
|
|
38
|
+
? `<eds-alert
|
|
39
|
+
intent="info"
|
|
40
|
+
icon="information"
|
|
41
|
+
message="The burger menu toggle only appears on small screens. Resize the viewport (or use Storybook's responsive viewport toolbar) to see it."
|
|
42
|
+
class="mb-16"
|
|
43
|
+
></eds-alert>`
|
|
44
|
+
: '';
|
|
45
|
+
return `
|
|
46
|
+
${menuNotice}
|
|
34
47
|
<eds-header
|
|
35
|
-
|
|
48
|
+
url="${args.url}"
|
|
36
49
|
links='${JSON.stringify(args.links)}'
|
|
37
|
-
menu
|
|
38
|
-
|
|
50
|
+
menu="${args.menu}"
|
|
51
|
+
variant="${args.variant}"
|
|
39
52
|
></eds-header>
|
|
40
53
|
`;
|
|
54
|
+
};
|
|
@@ -5,6 +5,7 @@ export class EdsIconWrapper {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = undefined;
|
|
7
7
|
this.size = 20;
|
|
8
|
+
this.label = undefined;
|
|
8
9
|
}
|
|
9
10
|
render() {
|
|
10
11
|
const iconSvg = ICONS[this.name];
|
|
@@ -12,7 +13,8 @@ export class EdsIconWrapper {
|
|
|
12
13
|
console.warn(`Icon "${this.name}" not found in ICONS`);
|
|
13
14
|
return null;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
const decorative = !this.label;
|
|
17
|
+
return (h(Host, { role: decorative ? null : 'img', "aria-label": decorative ? null : this.label, "aria-hidden": decorative ? 'true' : null }, h("span", { class: `icon icon--${this.size}`, innerHTML: iconSvg })));
|
|
16
18
|
}
|
|
17
19
|
static get is() { return "eds-icon-wrapper"; }
|
|
18
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,6 +70,23 @@ export class EdsIconWrapper {
|
|
|
68
70
|
"attribute": "size",
|
|
69
71
|
"reflect": false,
|
|
70
72
|
"defaultValue": "20"
|
|
73
|
+
},
|
|
74
|
+
"label": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "string",
|
|
79
|
+
"resolved": "string",
|
|
80
|
+
"references": {}
|
|
81
|
+
},
|
|
82
|
+
"required": false,
|
|
83
|
+
"optional": true,
|
|
84
|
+
"docs": {
|
|
85
|
+
"tags": [],
|
|
86
|
+
"text": "Accessible label for the icon. Set this when the icon conveys meaning on its\nown (e.g. a standalone status/action icon) \u2014 it is exposed as `role=\"img\"` +\n`aria-label`. When omitted, the icon is treated as decorative and hidden from\nassistive technology (`aria-hidden`), which is correct when it sits next to a\ntext label that already describes it."
|
|
87
|
+
},
|
|
88
|
+
"attribute": "label",
|
|
89
|
+
"reflect": false
|
|
71
90
|
}
|
|
72
91
|
};
|
|
73
92
|
}
|
|
@@ -8,7 +8,7 @@ export class EdsIconEu {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '56f0efdfb37b2dd4474dc2e69ef649915a9f4bbc', class: this.class, innerHTML: euSvg });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-eu"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconGitlab {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'd1c7c0c1e3cae3b45377e305792192df46ef064a', class: this.class, innerHTML: gitlabBlack });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-gitlab"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconBluesky {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'f2c2ad35173c7bfeae50e5b4de8f59e362d9656f', class: this.class, innerHTML: bluesky });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-bluesky"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconFacebook {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '798a3ad6a040dfce879fe62c0a32c83cbd529ad0', class: this.class, innerHTML: facebook });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-facebook"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconLinkedin {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'd8c97d9140baa6609917021bbc67fc7cca47ee32', class: this.class, innerHTML: linkedin });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-linkedin"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconMastodon {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '8498500cd0da2784b889a7b2b2ca9ff4e8414ab6', class: this.class, innerHTML: mastodon });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-mastodon"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconTwitter {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '1d2f811831f0c876e8b1133c0df03b6f15acaccb', class: this.class, innerHTML: twitter });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-twitter"; }
|
|
14
14
|
static get properties() {
|
|
@@ -8,7 +8,7 @@ export class EdsIconYoutube {
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '7ebb80fd84ed9ed7c227b1f1ddf213d0502160f9', class: this.class, innerHTML: youtube });
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "eds-icon-youtube"; }
|
|
14
14
|
static get properties() {
|
|
@@ -57,10 +57,10 @@ export class EdsImg {
|
|
|
57
57
|
imgOpts['loading'] = 'lazy';
|
|
58
58
|
imgOpts['decoding'] = 'async';
|
|
59
59
|
}
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '122ae0673a7a2c9afd88cdcf8a83b52c11f0643e', class: {
|
|
61
61
|
'items-center justify-center': true,
|
|
62
62
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
63
|
-
} }, h("picture", { key: '
|
|
63
|
+
} }, h("picture", { key: 'b0bb1af0c95375db18bd45453016ee2fd78a6e2a' }, this.formats.map((format) => (h("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), h("img", Object.assign({ key: '2a8500ea92db1a846f0f6dbb41fa664c3d514f19', ref: (el) => (this.img = el), class: {
|
|
64
64
|
'effect-opacity object-cover object-center': true,
|
|
65
65
|
'opacity-100': this.loaded,
|
|
66
66
|
'opacity-0': !this.loaded
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Base asset used by the stories.
|
|
2
|
+
const SUMMIT = 'https://ebrains.eu/sites/default/files/styles/864w/public/2025-12/Group-Photo-EBRAINS-Summit-2025-Pierre-Yves-Jortay-Photography.webp?itok=xdOI0A1k';
|
|
1
3
|
export default {
|
|
2
4
|
title: 'Components/Image',
|
|
3
5
|
component: 'eds-img',
|
|
@@ -28,7 +30,7 @@ export default {
|
|
|
28
30
|
},
|
|
29
31
|
formats: {
|
|
30
32
|
control: 'object',
|
|
31
|
-
description: '
|
|
33
|
+
description: 'Responsive <picture> sources: array of { type, srcset, media? }. NOTE: when set, a matching <source> overrides `src` — clear this to make `src` the single source of the displayed image.'
|
|
32
34
|
},
|
|
33
35
|
lazyload: {
|
|
34
36
|
control: 'boolean',
|
|
@@ -40,62 +42,37 @@ export default {
|
|
|
40
42
|
}
|
|
41
43
|
},
|
|
42
44
|
args: {
|
|
43
|
-
src:
|
|
44
|
-
alt: 'EBRAINS
|
|
45
|
+
src: SUMMIT,
|
|
46
|
+
alt: 'EBRAINS Summit 2025 group photo',
|
|
45
47
|
width: 400,
|
|
46
48
|
height: 300,
|
|
47
49
|
srcset: '',
|
|
48
|
-
sizes: '
|
|
49
|
-
formats: [
|
|
50
|
-
{
|
|
51
|
-
type: 'image/webp',
|
|
52
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=webp&crop=2269%2C2268%2C924%2C0&w=200 200w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=webp&crop=2269%2C2268%2C924%2C0&w=400 400w, ...',
|
|
53
|
-
media: '(max-width: 899px)'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: 'image/jpeg',
|
|
57
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=jpg&crop=2269%2C2268%2C924%2C0&w=200 200w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?fit=max&q=80&fm=jpg&crop=2269%2C2268%2C924%2C0&w=400 400w, ...',
|
|
58
|
-
media: '(min-width: 900px)'
|
|
59
|
-
}
|
|
60
|
-
],
|
|
50
|
+
sizes: '',
|
|
51
|
+
formats: [],
|
|
61
52
|
lazyload: true,
|
|
62
53
|
withBg: true
|
|
63
|
-
}
|
|
64
|
-
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
// Helper shared by the stories: build the element imperatively so object
|
|
57
|
+
// props (formats) are assigned as real props, not stringified attributes.
|
|
58
|
+
const renderImg = (args) => {
|
|
59
|
+
const edsImg = document.createElement('eds-img');
|
|
60
|
+
edsImg.src = args.src;
|
|
61
|
+
edsImg.alt = args.alt;
|
|
62
|
+
edsImg.width = args.width;
|
|
63
|
+
edsImg.height = args.height;
|
|
64
|
+
edsImg.srcset = args.srcset;
|
|
65
|
+
edsImg.sizes = args.sizes;
|
|
66
|
+
edsImg.formats = args.formats;
|
|
67
|
+
edsImg.lazyload = args.lazyload;
|
|
68
|
+
edsImg.withBg = args.withBg;
|
|
69
|
+
return edsImg;
|
|
65
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* Default — a single image driven entirely by `src`. `formats` is empty, so
|
|
73
|
+
* whatever you type into the `src` control is exactly what renders. Paste any
|
|
74
|
+
* direct image URL (e.g. a .jpg/.png/.webp) to try it.
|
|
75
|
+
*/
|
|
66
76
|
export const Default = {
|
|
67
|
-
render:
|
|
68
|
-
const edsImg = document.createElement('eds-img');
|
|
69
|
-
edsImg.src = args.src;
|
|
70
|
-
edsImg.alt = args.alt;
|
|
71
|
-
edsImg.width = args.width;
|
|
72
|
-
edsImg.height = args.height;
|
|
73
|
-
edsImg.srcset = args.srcset;
|
|
74
|
-
edsImg.sizes = args.sizes;
|
|
75
|
-
edsImg.formats = args.formats;
|
|
76
|
-
edsImg.lazyload = args.lazyload;
|
|
77
|
-
edsImg.withBg = args.withBg;
|
|
78
|
-
return edsImg;
|
|
79
|
-
},
|
|
80
|
-
args: {
|
|
81
|
-
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
82
|
-
alt: 'EBRAINS Bernstein Conference',
|
|
83
|
-
width: 400,
|
|
84
|
-
height: 300,
|
|
85
|
-
sizes: '(max-width: 749px) 120px, 230px',
|
|
86
|
-
formats: [
|
|
87
|
-
{
|
|
88
|
-
type: 'image/webp',
|
|
89
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?...',
|
|
90
|
-
media: '(max-width: 899px)'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: 'image/jpeg',
|
|
94
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg?...',
|
|
95
|
-
media: '(min-width: 900px)'
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
lazyload: true,
|
|
99
|
-
withBg: true
|
|
100
|
-
}
|
|
77
|
+
render: renderImg
|
|
101
78
|
};
|
|
@@ -91,7 +91,7 @@ export class EdsInputDropzone {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
const dropzoneClass = `eds-input-dropzone ${this.isDragging ? 'dragging' : ''} ${this.disabled ? 'disabled' : ''}`;
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '8c6d9cdd919e72f5e85a7b01a2db3cb6fadface0', class: "eds-input-dropzone-container" }, h("input", { key: 'fb643c39fa588971f825a01b20e8da6ac2da7d36', ref: (el) => (this.fileInputRef = el), type: "file", id: this.inputId || this.name, name: this.name, class: "eds-input-dropzone-hidden", disabled: this.disabled, required: this.required, multiple: this.multiple, accept: this.accept, onChange: this.handleFileSelect }), h("div", { key: 'fd000cfb95b10eb54798ea5575810692c8cce65d', class: dropzoneClass, onClick: this.handleDropzoneClick, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("svg", { key: 'ed7588f87e4182351f5301992ae582df1f21be5e', class: "dropzone-icon", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { key: '9977271ac6bb26c6d642708eb6a7d2f2ca242dcc', d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), h("polyline", { key: 'f32b1ff2bea2718e075d78985837ba71acf23ce9', points: "17 8 12 3 7 8" }), h("line", { key: '326bc6f0e24c191a26859567653f807c81745a77', x1: "12", y1: "3", x2: "12", y2: "15" })), h("div", { key: 'f880855ecf537d527663101a5348591f975e7074', class: "dropzone-text" }, h("p", { key: '4747da3e157c6b1c3e56774867fc0258e2e77059', class: "dropzone-primary" }, this.primaryText), h("p", { key: '7852be7ecdcdfabf5fed632065b14128941461ee', class: "dropzone-secondary" }, this.secondaryText))), this.selectedFiles.length > 0 && (h("div", { key: '36347980293d2ea800a845a4ab5bb9c28fedc485', class: "eds-input-dropzone-chips" }, this.selectedFiles.map((item) => (h("div", { key: item.id, class: "eds-input-dropzone-chip" }, this.getFileIcon(item.file.name), h("span", { class: "eds-input-dropzone-chip-name" }, item.file.name), h("span", { class: "eds-input-dropzone-chip-size" }, this.formatFileSize(item.file.size)), h("button", { type: "button", class: "eds-input-dropzone-chip-remove", onClick: () => this.handleRemoveFile(item.id), disabled: this.disabled, "aria-label": `Remove ${item.file.name}` }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2" }, h("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), h("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))))))))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "eds-input-dropzone"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,6 +28,7 @@ export class EdsInput {
|
|
|
28
28
|
this.min = undefined;
|
|
29
29
|
this.max = undefined;
|
|
30
30
|
this.step = undefined;
|
|
31
|
+
this.inputTabIndex = undefined;
|
|
31
32
|
this.innerVal = '';
|
|
32
33
|
this.maxLengthReached = false;
|
|
33
34
|
}
|
|
@@ -50,7 +51,7 @@ export class EdsInput {
|
|
|
50
51
|
render() {
|
|
51
52
|
const withIcon = !!this.icon;
|
|
52
53
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
53
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '0261b14034860a2f59dde8de72d6729ec411d2cf', class: "relative flex items-center" }, this.type === 'textarea' ? (h("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (h("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (h("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (h("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, tabindex: this.inputTabIndex, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined }, (this.type === 'number'
|
|
54
55
|
? {
|
|
55
56
|
min: this.min,
|
|
56
57
|
max: this.max,
|
|
@@ -61,7 +62,7 @@ export class EdsInput {
|
|
|
61
62
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
62
63
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
63
64
|
${this.error ? 'input-error' : ''}
|
|
64
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (h("span", { key: '
|
|
65
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (h("span", { key: 'f2a7b410ee586d3266d05d422f3376488392fc6b', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (h("eds-icon-wrapper", { key: '37581bbd64652b25a00a401ab359736169814b1f', class: `absolute top-1/2 left-[12px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, name: this.icon }))));
|
|
65
66
|
}
|
|
66
67
|
static get is() { return "eds-input"; }
|
|
67
68
|
static get properties() {
|
|
@@ -364,6 +365,23 @@ export class EdsInput {
|
|
|
364
365
|
},
|
|
365
366
|
"attribute": "step",
|
|
366
367
|
"reflect": false
|
|
368
|
+
},
|
|
369
|
+
"inputTabIndex": {
|
|
370
|
+
"type": "number",
|
|
371
|
+
"mutable": false,
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "number",
|
|
374
|
+
"resolved": "number",
|
|
375
|
+
"references": {}
|
|
376
|
+
},
|
|
377
|
+
"required": false,
|
|
378
|
+
"optional": true,
|
|
379
|
+
"docs": {
|
|
380
|
+
"tags": [],
|
|
381
|
+
"text": "Explicit tabindex for the native input. Radio/checkbox groups\ninside the `eds-input-field` shadow root (delegatesFocus) get\nskipped by sequential keyboard navigation unless each input is\nexplicitly in the tab order."
|
|
382
|
+
},
|
|
383
|
+
"attribute": "input-tab-index",
|
|
384
|
+
"reflect": false
|
|
367
385
|
}
|
|
368
386
|
};
|
|
369
387
|
}
|
|
@@ -2,6 +2,35 @@ p {
|
|
|
2
2
|
margin: 0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
/* Inline links inside a field message (from safeInlineFormat) — match eds-link's
|
|
6
|
+
"underline" intent. */
|
|
7
|
+
.eds-desc-link {
|
|
8
|
+
position: relative;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
color: var(--brand-black);
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
}
|
|
13
|
+
.eds-desc-link::after {
|
|
14
|
+
content: '';
|
|
15
|
+
position: absolute;
|
|
16
|
+
bottom: -2px;
|
|
17
|
+
left: 0;
|
|
18
|
+
width: 0;
|
|
19
|
+
height: 2px;
|
|
20
|
+
background-color: var(--brand-green);
|
|
21
|
+
transition: width 0.3s ease;
|
|
22
|
+
}
|
|
23
|
+
.eds-desc-link:hover::after { width: 100%; }
|
|
24
|
+
.eds-desc-link:focus-visible::after { width: 0; }
|
|
25
|
+
|
|
26
|
+
/* The help link (rendered as <eds-link size="small"> = f-ui-02) sits next to the
|
|
27
|
+
footer message (f-ui-04). Shrink the link to match the helper text by
|
|
28
|
+
redefining the f-ui-02 font-size token within the link's subtree (custom
|
|
29
|
+
properties cascade across the shadow boundary). */
|
|
30
|
+
eds-link {
|
|
31
|
+
--f-ui-02-fontSize: var(--f-ui-04-fontSize);
|
|
32
|
+
}
|
|
33
|
+
|
|
5
34
|
.text-error {
|
|
6
35
|
color: var(--red-700);
|
|
7
36
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { safeInlineFormat } from "../../../utils/eds-form/safeFormat";
|
|
2
3
|
export class EdsInputFooter {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.name = undefined;
|
|
@@ -8,7 +9,7 @@ export class EdsInputFooter {
|
|
|
8
9
|
this.link = undefined;
|
|
9
10
|
}
|
|
10
11
|
render() {
|
|
11
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: '866e375b5dd1d9c958f2255537e919a8c1f25dc7' }, this.error && this.errorMessage && (h("div", { key: '95d11c9cbb7746cc727ad9e037d00a28d9475bfc', id: `error_${this.name}`, class: "text-error flex items-center" }, h("eds-icon-wrapper", { key: 'face7f905ffa7c5f4dc7a7e6825d185e0d6b7901', name: "warning", size: 20 }), h("p", { key: '2011af93e06df1d91972843a510e843763f53b0b', class: "f-ui-04 ml-4 mb-4 pt-4", innerHTML: this.errorMessage }))), this.message && h("p", { key: '39d6833a30e7b93f75154a14bee1e6b4500575cb', id: `desc_${this.name}`, class: "f-ui-04 text-lighter", innerHTML: safeInlineFormat(this.message) }), this.link && (h("eds-link", { key: 'bfbf95e704574ada6f857ca08a90409ab38c1a5e', label: this.link.label, url: this.link.url, intent: "underline", size: "small", external: true }))));
|
|
12
13
|
}
|
|
13
14
|
static get is() { return "eds-input-footer"; }
|
|
14
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class EdsInputLabel {
|
|
|
7
7
|
this.disabled = false;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("label", { key: '
|
|
10
|
+
return (h("label", { key: '40867ae01e94ab7a69b6f82658e4ee1b1e5b87cf', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (h("span", { key: 'e3cfc44ea2a7f53f51c544648b3c635557cb8248' }, h("span", { key: 'ff7559b58cb22ce2a3066ed15e77f6088f299aaa', "aria-hidden": "true" }, "*"), h("span", { key: '2c831682aae410ac71589171e2b04981c60052bb', class: "sr-only" }, "required")))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "eds-input-label"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -47,7 +47,7 @@ export class EdsInputRange {
|
|
|
47
47
|
render() {
|
|
48
48
|
var _a;
|
|
49
49
|
const currentValue = (_a = this.sliderVal) !== null && _a !== void 0 ? _a : Math.round(this.min + (this.max - this.min) / 2);
|
|
50
|
-
return (h("div", { key: '
|
|
50
|
+
return (h("div", { key: '231ae0f34900dfa3b8edeb9745ce07220735c613', class: "relative flex flex-col items-start" }, h("input", { key: '2cbfbbb410694a4764f44c26a74f4cbca9b98f3c', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: currentValue, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", tabindex: "0", role: "slider", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": currentValue, onInput: this.onInput, onChange: this.onChange }), h("p", { key: '8e7036cbaeebb62c6cd4b7f2105d3fa487ad463e', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-light" }, "Current value: ", currentValue)));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "eds-input-range"; }
|
|
53
53
|
static get properties() {
|