@ebrains/components 1.0.0 → 1.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/components-section.cjs.entry.js +1 -1
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/eds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/eds-alert.cjs.entry.js +2 -2
- package/dist/cjs/{eds-avatar_34.cjs.entry.js → eds-avatar_28.cjs.entry.js} +481 -501
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +145 -0
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +77 -0
- package/dist/cjs/eds-card-generic.cjs.entry.js +92 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
- package/dist/cjs/eds-gauge.cjs.entry.js +60 -0
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-external.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-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-pie.cjs.entry.js +106 -0
- 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-tooltip.cjs.entry.js +32 -0
- package/dist/cjs/index-88c8039f.js +28 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +16 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-alert/eds-alert.js +2 -2
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- 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.js +1 -1
- 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-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.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 +2 -2
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.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-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -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-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- 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-table/eds-table.css +5 -0
- package/dist/collection/components/eds-table/eds-table.js +171 -22
- package/dist/collection/eds-docs-ui/components-section/functional/react.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 +34 -2
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +2 -2
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +17 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +20 -2
- package/dist/collection/shared-ui/eds-user/eds-user.js +1 -1
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +3 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-alert2.js +2 -2
- 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 +1 -1
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-tool.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -2
- package/dist/components/eds-footer2.js +2 -2
- package/dist/components/eds-form.js +14 -2
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-bookmark.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.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-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -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-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +5 -3
- package/dist/components/eds-steps2.js +2 -2
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +85 -25
- package/dist/components/eds-user.js +1 -1
- package/dist/components/p-023bc47c.entry.js +1 -0
- package/dist/components/p-11efb1d1.entry.js +1 -0
- package/dist/components/p-14679a86.entry.js +1 -0
- package/dist/components/p-158c95bc.entry.js +1 -0
- package/dist/components/p-177103fd.entry.js +1 -0
- package/dist/components/{p-bfc62d3e.entry.js → p-17d39d66.entry.js} +1 -1
- package/dist/components/p-19d586e6.entry.js +1 -0
- package/dist/components/p-1de8401b.entry.js +1 -0
- package/dist/components/{p-8ad05566.entry.js → p-1f5c19b9.entry.js} +1 -1
- package/dist/components/p-321a950b.entry.js +1 -0
- package/dist/components/p-38c9aee7.entry.js +1 -0
- package/dist/components/p-42295abe.entry.js +1 -0
- package/dist/components/p-424e91b3.entry.js +1 -0
- package/dist/components/p-43cff423.entry.js +1 -0
- package/dist/components/p-45f21238.entry.js +1 -0
- package/dist/components/p-4bdf1589.entry.js +1 -0
- package/dist/components/p-4dcdd4d9.entry.js +1 -0
- package/dist/components/p-4fad9296.entry.js +1 -0
- package/dist/components/p-50f43dfd.entry.js +1 -0
- package/dist/components/p-563d56c0.entry.js +1 -0
- package/dist/components/p-5827fd52.entry.js +1 -0
- package/dist/components/{p-7af6b832.entry.js → p-590fb0e7.entry.js} +1 -1
- package/dist/components/p-5c5dfc4a.entry.js +1 -0
- package/dist/components/p-66f4cdd9.entry.js +1 -0
- package/dist/components/p-6dc6f729.entry.js +1 -0
- package/dist/components/p-6f9ab63c.entry.js +1 -0
- package/dist/components/p-7502b8b4.entry.js +1 -0
- package/dist/components/p-750e3ec8.entry.js +1 -0
- package/dist/components/p-8c0b0121.entry.js +1 -0
- package/dist/components/p-95518776.entry.js +1 -0
- package/dist/components/p-99d9bb29.entry.js +1 -0
- package/dist/components/p-9a4b5746.entry.js +1 -0
- package/dist/components/p-9c823b5e.entry.js +1 -0
- package/dist/components/p-9d64d1fd.entry.js +1 -0
- package/dist/components/p-ab4447f6.entry.js +1 -0
- package/dist/components/p-b073d78f.entry.js +1 -0
- package/dist/components/{p-8b016d76.entry.js → p-b5e64725.entry.js} +1 -1
- package/dist/components/p-b630e51a.entry.js +1 -0
- package/dist/components/p-c91b4eec.entry.js +1 -0
- package/dist/components/{p-0eeddc13.entry.js → p-d05a09df.entry.js} +1 -1
- package/dist/components/{p-84fd3e40.entry.js → p-d0b1e963.entry.js} +1 -1
- package/dist/components/p-d25364db.entry.js +1 -0
- package/dist/components/p-d3bb444a.entry.js +1 -0
- package/dist/components/p-d4f239d7.entry.js +1 -0
- package/dist/components/{p-a81cba86.entry.js → p-deb9bbed.entry.js} +1 -1
- package/dist/components/p-df772a35.entry.js +1 -0
- package/dist/components/p-e5113509.entry.js +1 -0
- package/dist/components/p-e6a0b8c2.entry.js +1 -0
- package/dist/components/p-e8f0d7fc.entry.js +1 -0
- package/dist/components/{p-abb2ad00.entry.js → p-f189be4f.entry.js} +1 -1
- package/dist/components/p-f221eca2.entry.js +1 -0
- package/dist/components/p-f2416727.entry.js +1 -0
- package/dist/components/{p-50ea5b07.entry.js → p-f7716080.entry.js} +1 -1
- package/dist/components/p-fd85675b.entry.js +1 -0
- package/dist/components/{p-ea97a94e.entry.js → p-fe167c78.entry.js} +2 -2
- package/dist/components/p-ffccfeb6.entry.js +1 -0
- package/dist/esm/components-section.entry.js +1 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/eds-accordion.entry.js +2 -2
- package/dist/esm/eds-alert.entry.js +2 -2
- package/dist/esm/{eds-avatar_34.entry.js → eds-avatar_28.entry.js} +481 -495
- package/dist/esm/eds-breadcrumb.entry.js +141 -0
- package/dist/esm/eds-card-desc_2.entry.js +72 -0
- package/dist/esm/eds-card-generic.entry.js +88 -0
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +1 -1
- package/dist/esm/eds-gauge.entry.js +56 -0
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-bookmark.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
- package/dist/esm/eds-icon-close.entry.js +1 -1
- package/dist/esm/eds-icon-copy.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-external.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-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +1 -1
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-pie.entry.js +102 -0
- 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-tooltip.entry.js +28 -0
- package/dist/esm/index-fdb33359.js +28 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/token-spacing.entry.js +12 -0
- package/dist/hydrate/index.js +185 -112
- package/dist/hydrate/index.mjs +185 -112
- package/dist/types/components/eds-table/eds-table.d.ts +69 -0
- package/dist/types/components.d.ts +48 -0
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +3 -0
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/eds-pagination_2.cjs.entry.js +0 -403
- package/dist/components/p-04b4e9d0.entry.js +0 -1
- package/dist/components/p-0863352c.entry.js +0 -1
- package/dist/components/p-0d6434e1.entry.js +0 -1
- package/dist/components/p-0e94a89f.entry.js +0 -1
- package/dist/components/p-100909ce.entry.js +0 -1
- package/dist/components/p-124b8747.entry.js +0 -1
- package/dist/components/p-14a223fe.entry.js +0 -1
- package/dist/components/p-18ceadd2.entry.js +0 -1
- package/dist/components/p-26d6679b.entry.js +0 -1
- package/dist/components/p-2b1b2026.entry.js +0 -1
- package/dist/components/p-3c642a30.entry.js +0 -1
- package/dist/components/p-46619042.entry.js +0 -1
- package/dist/components/p-511b23ec.entry.js +0 -1
- package/dist/components/p-5462923d.entry.js +0 -1
- package/dist/components/p-6199b8c0.entry.js +0 -1
- package/dist/components/p-624e653e.entry.js +0 -1
- package/dist/components/p-6ba42d02.entry.js +0 -1
- package/dist/components/p-6e929acb.entry.js +0 -1
- package/dist/components/p-6ede7101.entry.js +0 -1
- package/dist/components/p-70bac015.entry.js +0 -1
- package/dist/components/p-822ac246.entry.js +0 -1
- package/dist/components/p-848506b8.entry.js +0 -1
- package/dist/components/p-85634ad2.entry.js +0 -1
- package/dist/components/p-8bdf5841.entry.js +0 -1
- package/dist/components/p-8ff39cef.entry.js +0 -1
- package/dist/components/p-affe2b55.entry.js +0 -1
- package/dist/components/p-b31591db.entry.js +0 -1
- package/dist/components/p-b7efd666.entry.js +0 -1
- package/dist/components/p-ba784274.entry.js +0 -1
- package/dist/components/p-c0b22803.entry.js +0 -1
- package/dist/components/p-cdd491f5.entry.js +0 -1
- package/dist/components/p-d268c96b.entry.js +0 -1
- package/dist/components/p-d437bae2.entry.js +0 -1
- package/dist/components/p-d456e649.entry.js +0 -1
- package/dist/components/p-dae8f66a.entry.js +0 -1
- package/dist/components/p-e1791844.entry.js +0 -1
- package/dist/components/p-e82edd4a.entry.js +0 -1
- package/dist/components/p-e9f608a8.entry.js +0 -1
- package/dist/components/p-f26fd186.entry.js +0 -1
- package/dist/components/p-fe1cba17.entry.js +0 -1
- package/dist/esm/eds-pagination_2.entry.js +0 -398
package/dist/hydrate/index.js
CHANGED
|
@@ -2565,7 +2565,7 @@ const DocsReact = () => (hAsync("div", null,
|
|
|
2565
2565
|
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }),
|
|
2566
2566
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
2567
2567
|
hAsync("p", null, "This code displays a Stencil-based splash screen that stays visible until an initialization promise resolves (or errors), then hides itself and reveals the main React app content."),
|
|
2568
|
-
hAsync("eds-code-block", { code: "\nimport React, { useMemo, useState } from 'react';\nimport {\n EdsHeader
|
|
2568
|
+
hAsync("eds-code-block", { code: "\nimport React, { useMemo, useState } from 'react';\nimport {\n EdsHeader,\n EdsSplashScreen,\n EdsMatomoNotice,\n EdsSteps\n} from '@ebrains/react';\nimport './app.css';\n\n// simulate 2s\nfunction fakeInit(): Promise<void> {\n return new Promise(resolve => setTimeout(resolve, 2000));\n}\n\nexport function App() {\n // 1) create init promise\n const initPromise = useMemo(() => fakeInit(), []);\n\n // 2) is splash still visible\n const [splashVisible, setSplashVisible] = useState(true);\n const [initError, setInitError] = useState<string | null>(null);\n\n // 3) show the UI after the splash has hidden\n const showApp = !splashVisible && !initError;\n\n return (\n <div>\n {splashVisible && (\n <EdsSplashScreen\n inverse={false}\n initPromise={initPromise}\n onSplash={(e: CustomEvent) => {\n if (e.detail.type === 'hidden') {\n setSplashVisible(false);\n } else if (e.detail.type === 'error') {\n setInitError(e.detail.message);\n setSplashVisible(false);\n }\n }}\n />\n )}\n\n {initError && (\n <div className='error'>\n Failed to initialize: {initError}\n </div>\n )}\n\n {/* Show App only when ready */}\n {showApp && (\n <>\n <EdsHeader></EdsHeader>\n <EdsSteps\n steps={[\n {\n title: 'Introduction',\n content: 'Begin by familiarizing yourself with the overall process.'\n },\n {\n title: 'Process Overview',\n content: 'Review the detailed steps and understand the workflow.'\n }\n ]}\n type='linear'\n />\n\n <EdsMatomoNotice />\n\n <div id='root'></div>\n </>\n )}\n </div>\n );\n}\nexport default App;\n", language: "javascript", "copy-label": "Copy Code" }))));
|
|
2569
2569
|
|
|
2570
2570
|
const DocsVue = () => (hAsync("div", null,
|
|
2571
2571
|
hAsync("h2", null, "Vue Wrappers"),
|
|
@@ -2937,10 +2937,10 @@ class EdsAccordion {
|
|
|
2937
2937
|
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2938
2938
|
*/
|
|
2939
2939
|
render() {
|
|
2940
|
-
return (hAsync("div", { key: '
|
|
2940
|
+
return (hAsync("div", { key: 'addeb5f79d497efcd3eab9f849890adf48a5e275', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2941
2941
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2942
2942
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2943
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '
|
|
2943
|
+
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: 'c522c074c205e471f9e95991a03f703bec8d3219', ref: (el) => (this.headerRef = el), class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), hAsync("div", { key: '5ee474856bf9a3cdc732c27c6fccb68c24e0dc3b', class: "ml-auto" }, hAsync("eds-button", { key: 'a274b1d82f30607f61103433aa6ceb745464f530', id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '69a638f2dc3c5ebff95fc4049c47abd4884b13ad', class: `w-full`, style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: '820f39174c6e6d42e7c4407a2a4175fb077f86ac', id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '3d9ea33856d350434d26c07ddc9d230e28d8c344', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-4`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '1d0761d7894d5ba4d7c7f5051031857555ce0b0c', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: 'ed31f44736a8ce85a7df4216b2f90c2ca7d9b873' })))))));
|
|
2944
2944
|
}
|
|
2945
2945
|
get el() { return getElement(this); }
|
|
2946
2946
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3105,12 +3105,12 @@ class EdsAlert {
|
|
|
3105
3105
|
linkElement.dispatchEvent(event);
|
|
3106
3106
|
}
|
|
3107
3107
|
render() {
|
|
3108
|
-
return (hAsync("div", { key: '
|
|
3108
|
+
return (hAsync("div", { key: '5252aca583e87d8c3249c501e55368e340ef0d64', class: alertStyles({
|
|
3109
3109
|
intent: this.intent,
|
|
3110
3110
|
brd: this.brd,
|
|
3111
3111
|
direction: this.direction,
|
|
3112
3112
|
withBtn: this.withBtn
|
|
3113
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
3113
|
+
}), role: "alert" }, hAsync("p", { key: 'bb23c94e802ec5e287a2b8619277e83de173b498', class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn &&
|
|
3114
3114
|
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3115
3115
|
}
|
|
3116
3116
|
get el() { return getElement(this); }
|
|
@@ -3245,7 +3245,7 @@ class EdsAvatar {
|
|
|
3245
3245
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3246
3246
|
*/
|
|
3247
3247
|
render() {
|
|
3248
|
-
return (hAsync("div", { key: '
|
|
3248
|
+
return (hAsync("div", { key: 'b7eff7ae1a1dea3509041e39316b49b673dbdf17', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
3249
3249
|
}
|
|
3250
3250
|
static get style() { return EdsAvatarStyle0; }
|
|
3251
3251
|
static get cmpMeta() { return {
|
|
@@ -3276,7 +3276,7 @@ class EdsBlockBreak {
|
|
|
3276
3276
|
this.inverse = false;
|
|
3277
3277
|
}
|
|
3278
3278
|
render() {
|
|
3279
|
-
return hAsync("hr", { key: '
|
|
3279
|
+
return hAsync("hr", { key: 'b604a776cae7edeee189e00af6993b42b57203f0', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3280
3280
|
}
|
|
3281
3281
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3282
3282
|
static get cmpMeta() { return {
|
|
@@ -3436,7 +3436,7 @@ class EdsBreadcrumb {
|
|
|
3436
3436
|
*/
|
|
3437
3437
|
render() {
|
|
3438
3438
|
const itemsToRender = this.getTruncatedItems();
|
|
3439
|
-
return (hAsync("nav", { key: '
|
|
3439
|
+
return (hAsync("nav", { key: 'db769320b42e627fffd71676c1e0551646f1de70', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '6cef8ed43cabcee73cb4ad4fb26f809d0690c0ec', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3440
3440
|
const isLast = index === itemsToRender.length - 1;
|
|
3441
3441
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3442
3442
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3643,7 +3643,7 @@ class EdsButton {
|
|
|
3643
3643
|
iconSmall: this.iconSmall
|
|
3644
3644
|
});
|
|
3645
3645
|
const ElementType = this.elementType;
|
|
3646
|
-
return (hAsync(ElementType, { key: '
|
|
3646
|
+
return (hAsync(ElementType, { key: 'ecdd901c70578c07ef094aadbcd287588d4ba705', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && hAsync("span", { key: 'af8d0ca1c5c3e54f9db3066931a69d3a5a812666', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (hAsync("span", { key: '29b72c15e80f46e023f829568f58d8a8dca82b78', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: 'bad8bd059b1312ca3f5ab173b1203eb395e9bbd8', class: "loader", style: {
|
|
3647
3647
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3648
3648
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3649
3649
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
@@ -3702,7 +3702,7 @@ class EdsCardDesc {
|
|
|
3702
3702
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3703
3703
|
}
|
|
3704
3704
|
render() {
|
|
3705
|
-
return (hAsync("p", { key: '
|
|
3705
|
+
return (hAsync("p", { key: '2421ea469339e3d56fc5c0ebbec213eeb1a2a9cf', class: "text-light f-ui-03-light" }, hAsync("span", { key: 'd024adda16a85bf2913803c06eb05af3b4af6bb9', class: this.getTruncateClass() }, this.description)));
|
|
3706
3706
|
}
|
|
3707
3707
|
static get style() { return EdsCardDescStyle0; }
|
|
3708
3708
|
static get cmpMeta() { return {
|
|
@@ -4021,7 +4021,7 @@ class EdsCardProject {
|
|
|
4021
4021
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4022
4022
|
].join(' ');
|
|
4023
4023
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4024
|
-
return (hAsync("article", { key: '
|
|
4024
|
+
return (hAsync("article", { key: '8b4707ad7689824c50db3112b5844e28beb31533', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '5cb7673378ab23826202b34034247145b7289bda', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '8111b523840c8b363bbb422c1f314ce07057ea92', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: 'a326e1384873edb9bfc86c33e3abeb95064cc8db', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '5e2de62642363533a950f3e923e3f4dfc64c56c1', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '424fed86ec4e714dc5f3644d85e5670d8be56d7f', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: 'b6961cc23835a9b3d1abae47e1c4224a29255164', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '69564e0c65f6422a6ccc3957a8080e7e494461bb', class: imageClasses }, hAsync("div", { key: 'e47a21a5356459936b6f528a3aba50240851fcf2', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: 'f64af6387cdef28619aa8a0465d4a50ec3a95007', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
4025
4025
|
}
|
|
4026
4026
|
get el() { return getElement(this); }
|
|
4027
4027
|
static get cmpMeta() { return {
|
|
@@ -4110,7 +4110,7 @@ class EdsCardTags {
|
|
|
4110
4110
|
this.tags = [];
|
|
4111
4111
|
}
|
|
4112
4112
|
render() {
|
|
4113
|
-
return (hAsync("div", { key: '
|
|
4113
|
+
return (hAsync("div", { key: '5da9fcbc472476a7b438451e563586643a818bc0', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4114
4114
|
}
|
|
4115
4115
|
static get style() { return EdsCardTagsStyle0; }
|
|
4116
4116
|
static get cmpMeta() { return {
|
|
@@ -4174,7 +4174,7 @@ class EdsCardTitle {
|
|
|
4174
4174
|
render() {
|
|
4175
4175
|
//const Tag = this.getTag();
|
|
4176
4176
|
const Heading = this.headingLevel;
|
|
4177
|
-
return (hAsync(Heading, { key: '
|
|
4177
|
+
return (hAsync(Heading, { key: '494d8b7ea90ccb93cf0395374951e90c89a59d3a', class: this.getTitleClass() }, hAsync("a", { key: 'ab739472fd796767cd6e7ab4f4c09bcf24ec200a', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4178
4178
|
}
|
|
4179
4179
|
static get style() { return EdsCardTitleStyle0; }
|
|
4180
4180
|
static get cmpMeta() { return {
|
|
@@ -4262,7 +4262,7 @@ class EdsCardTool {
|
|
|
4262
4262
|
});
|
|
4263
4263
|
}
|
|
4264
4264
|
render() {
|
|
4265
|
-
return (hAsync("article", { key: '
|
|
4265
|
+
return (hAsync("article", { key: '465a4593a4d28c5bfcef7325be7674b6301bc275', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '5d6c13f582bd89f03d95aa9027b83d8d4c4184ca', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '4872956b7d97e222abd8e429c73a7e97fe1f7a06', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '10c20ab24e836c06ba2da070cbcf21cf11537e17', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4266
4266
|
}
|
|
4267
4267
|
get el() { return getElement(this); }
|
|
4268
4268
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6774,7 +6774,7 @@ class EdsCodeBlock {
|
|
|
6774
6774
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6775
6775
|
}
|
|
6776
6776
|
render() {
|
|
6777
|
-
return (hAsync("div", { key: '
|
|
6777
|
+
return (hAsync("div", { key: '7550f1c5e29a9be39614404d51dfec9a7aa194a9', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: '8e654051ec6105e051af723e056b4151afc4305c', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '1f558301727adb451524850b352844d7658f33a8', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '7def1f38f949c32d6138d88a0a7edf9655852491', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: '9eabcd54f3bcdc1c4627a7ca7e22fd38e9755ca6', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: 'd15dce4b1692bf1956e1b3cb3586dde4d9561f1b', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: 'ad7eb7b40aaab69b6bc929c632ce4736fe3c39a5', innerHTML: this.getHighlightedCode() })))));
|
|
6778
6778
|
}
|
|
6779
6779
|
get el() { return getElement(this); }
|
|
6780
6780
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6958,14 +6958,14 @@ class EdsDropdown {
|
|
|
6958
6958
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6959
6959
|
*/
|
|
6960
6960
|
render() {
|
|
6961
|
-
return (hAsync("div", { key: '
|
|
6961
|
+
return (hAsync("div", { key: 'eb48745937126e580737c1da6787c3f16c06ba9e', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: '3af6863201b1c25ad66e9f8c52d9e13505d742a3', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: 'c225074b3fbee543966523f8cd1c146485bc04bd', role: "menu", class: {
|
|
6962
6962
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
6963
6963
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6964
6964
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6965
6965
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6966
6966
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6967
6967
|
'rounded-lg': this.rounded
|
|
6968
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6968
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '6a7ba94045d366d20c6618845692d977f20437e3' }))));
|
|
6969
6969
|
}
|
|
6970
6970
|
get host() { return getElement(this); }
|
|
6971
6971
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7118,9 +7118,9 @@ class EdsFooter {
|
|
|
7118
7118
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7119
7119
|
*/
|
|
7120
7120
|
render() {
|
|
7121
|
-
return (hAsync("footer", { key: '7bbc8cd8e0e3a153dc30bb3569e83afc0bc09b0a' }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, hAsync("div", { class: "container pb-20" }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })))))) : null, hAsync("div", { key: '9ee8ada698546344b18e557ee1de76042cd727ed', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: 'e795e5bba0273b4147c66ed667142997bc0cbaff', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: 'fa09a0dbccb035b1e4f496aa447aca241bcc2415', class: "flex items-center gap-x-12" }, hAsync("a", { key: '
|
|
7121
|
+
return (hAsync("footer", { key: '7bbc8cd8e0e3a153dc30bb3569e83afc0bc09b0a' }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, hAsync("div", { class: "container pb-20" }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })))))) : null, hAsync("div", { key: '9ee8ada698546344b18e557ee1de76042cd727ed', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: 'e795e5bba0273b4147c66ed667142997bc0cbaff', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: 'fa09a0dbccb035b1e4f496aa447aca241bcc2415', class: "flex items-center gap-x-12" }, hAsync("a", { key: '578d6a8463e65d07278f8328c108ee266cfba2b8', 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" }, hAsync("eds-img", { key: '5b9e987c2ecf62fb4f44c1faacad7c569a149805', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), hAsync("div", { key: 'df75949c0718b8fb7dd449a6e7df39d332da366f' }, hAsync("div", { key: 'f83d31b16d0601cd456d5cb72e9fa2adb29a2b66', class: "f-ui-04 text-light" }, hAsync("p", { key: 'dcdf09d78ca64c5391d56fe5ed69bab987cbf67b' }, this.fundedBy), hAsync("div", { key: 'af279fb5dfdf0a8f1f85e6ce7446dc3a0eeac397', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, hAsync("span", { key: '026b41fa6162ffb6825ccf98364b4caf64b6457a', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (hAsync("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
|
|
7122
7122
|
this.toggleCookiesConsent();
|
|
7123
|
-
} })) : null))), hAsync("div", { key: '
|
|
7123
|
+
} })) : null))), hAsync("div", { key: '27cb561815d6918567ab8cfa1148019aca8aeda0', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("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)))));
|
|
7124
7124
|
}
|
|
7125
7125
|
static get style() { return EdsFooterStyle0; }
|
|
7126
7126
|
static get cmpMeta() { return {
|
|
@@ -7319,6 +7319,9 @@ class EdsForm {
|
|
|
7319
7319
|
this.errors = {};
|
|
7320
7320
|
this.parsedFields = [];
|
|
7321
7321
|
}
|
|
7322
|
+
async setData(newData) {
|
|
7323
|
+
this.populateFormWithInitData(newData);
|
|
7324
|
+
}
|
|
7322
7325
|
componentWillLoad() {
|
|
7323
7326
|
this.parseFields(this.fields);
|
|
7324
7327
|
// Emit context for each eds-link element after the component is fully loaded
|
|
@@ -7491,6 +7494,14 @@ class EdsForm {
|
|
|
7491
7494
|
// Update the errors state and the hasError flag.
|
|
7492
7495
|
this.errors = newErrors;
|
|
7493
7496
|
this.hasError = Object.keys(newErrors).length > 0;
|
|
7497
|
+
// Emit the updated form state.
|
|
7498
|
+
this.form.emit({
|
|
7499
|
+
event: 'input',
|
|
7500
|
+
field: field.name,
|
|
7501
|
+
value: target.type === 'checkbox' ? this.values[field.name] : target.value,
|
|
7502
|
+
message: `${field.name} updated`
|
|
7503
|
+
//data: this.makeFormData()
|
|
7504
|
+
});
|
|
7494
7505
|
}
|
|
7495
7506
|
handleSubmit() {
|
|
7496
7507
|
var _a, _b;
|
|
@@ -7551,13 +7562,13 @@ class EdsForm {
|
|
|
7551
7562
|
render() {
|
|
7552
7563
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7553
7564
|
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7554
|
-
return (hAsync("form", { key: '
|
|
7565
|
+
return (hAsync("form", { key: '1418bbac3ea7c994bf363602e6ddd18ed3c6c661', ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, hAsync("div", { key: 'ae6f05d50a1c32312e585d55f0b5d64b0dd1fc9c' }, hAsync("slot", { key: '09c9ddd0d3b77ae9cbcb54389b799af7a6fc6c9e' }), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
|
|
7555
7566
|
var _a, _b;
|
|
7556
7567
|
if (!this.isFieldVisible(field)) {
|
|
7557
7568
|
return null;
|
|
7558
7569
|
}
|
|
7559
7570
|
return (hAsync("eds-input-field", { key: index, 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), onChange: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
|
|
7560
|
-
})), this.formBtn && (hAsync("div", { key: '
|
|
7571
|
+
})), this.formBtn && (hAsync("div", { key: 'af6ce29d25ae2e7c71537618456308891ff8abf4', class: "mt-20" }, hAsync("eds-button", { key: '1442f4f6b924533f9aa46bd22e1d0adf69561370', intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
7561
7572
|
}
|
|
7562
7573
|
get el() { return getElement(this); }
|
|
7563
7574
|
static get watchers() { return {
|
|
@@ -7580,6 +7591,7 @@ class EdsForm {
|
|
|
7580
7591
|
"hasError": [32],
|
|
7581
7592
|
"errors": [32],
|
|
7582
7593
|
"parsedFields": [32],
|
|
7594
|
+
"setData": [64],
|
|
7583
7595
|
"getData": [64]
|
|
7584
7596
|
},
|
|
7585
7597
|
"$listeners$": undefined,
|
|
@@ -7841,7 +7853,7 @@ class EdsGauge {
|
|
|
7841
7853
|
const textStyle = {
|
|
7842
7854
|
fontSize: `${fontSize}px`
|
|
7843
7855
|
};
|
|
7844
|
-
return (hAsync("div", { key: '
|
|
7856
|
+
return (hAsync("div", { key: '2918e034b24749fd1fcad84f4a8614043c6a9ea2', role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": clamped, "aria-label": `Gauge value: ${clamped} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: containerStyle }, hAsync("div", { key: 'a24d393bfcdbd45019f7a560c4af0330c720af0c', class: "absolute bg-inverse rounded-full", style: maskStyle }), hAsync("div", { key: '712fc9211b6e90afdf7063a4e6a6af74ec88dfdd', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '88d3ffc3fea9ff77247b4ecbb4af3a6ac39c1cb4', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
7845
7857
|
}
|
|
7846
7858
|
static get style() { return EdsGaugeStyle0; }
|
|
7847
7859
|
static get cmpMeta() { return {
|
|
@@ -9922,7 +9934,7 @@ class EdsIconArrowDiagonal {
|
|
|
9922
9934
|
this.class = '';
|
|
9923
9935
|
}
|
|
9924
9936
|
render() {
|
|
9925
|
-
return hAsync("span", { key: '
|
|
9937
|
+
return hAsync("span", { key: 'd178d36fd0888a40da0873bfd8abe862770e06e9', class: this.class, innerHTML: arrowDiagonal });
|
|
9926
9938
|
}
|
|
9927
9939
|
static get cmpMeta() { return {
|
|
9928
9940
|
"$flags$": 0,
|
|
@@ -9945,7 +9957,7 @@ class EdsIconArrowRight {
|
|
|
9945
9957
|
this.class = '';
|
|
9946
9958
|
}
|
|
9947
9959
|
render() {
|
|
9948
|
-
return hAsync("span", { key: '
|
|
9960
|
+
return hAsync("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
|
|
9949
9961
|
}
|
|
9950
9962
|
static get cmpMeta() { return {
|
|
9951
9963
|
"$flags$": 0,
|
|
@@ -9968,7 +9980,7 @@ class EdsIconBluesky {
|
|
|
9968
9980
|
this.class = '';
|
|
9969
9981
|
}
|
|
9970
9982
|
render() {
|
|
9971
|
-
return hAsync("span", { key: '
|
|
9983
|
+
return hAsync("span", { key: '68917ac759cd684a6f3f3f67cb174d7291841070', class: this.class, innerHTML: bluesky });
|
|
9972
9984
|
}
|
|
9973
9985
|
static get cmpMeta() { return {
|
|
9974
9986
|
"$flags$": 0,
|
|
@@ -9991,7 +10003,7 @@ class EdsIconBookmark {
|
|
|
9991
10003
|
this.class = '';
|
|
9992
10004
|
}
|
|
9993
10005
|
render() {
|
|
9994
|
-
return hAsync("span", { key: '
|
|
10006
|
+
return hAsync("span", { key: '61dd6e752db1c28d082d80aba71267f4e971492d', class: this.class, innerHTML: bookmark });
|
|
9995
10007
|
}
|
|
9996
10008
|
static get cmpMeta() { return {
|
|
9997
10009
|
"$flags$": 0,
|
|
@@ -10014,7 +10026,7 @@ class EdsIconChevronDown {
|
|
|
10014
10026
|
this.class = '';
|
|
10015
10027
|
}
|
|
10016
10028
|
render() {
|
|
10017
|
-
return hAsync("span", { key: '
|
|
10029
|
+
return hAsync("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
|
|
10018
10030
|
}
|
|
10019
10031
|
static get cmpMeta() { return {
|
|
10020
10032
|
"$flags$": 0,
|
|
@@ -10037,7 +10049,7 @@ class EdsIconChevronLeft {
|
|
|
10037
10049
|
this.class = '';
|
|
10038
10050
|
}
|
|
10039
10051
|
render() {
|
|
10040
|
-
return hAsync("span", { key: '
|
|
10052
|
+
return hAsync("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
|
|
10041
10053
|
}
|
|
10042
10054
|
static get cmpMeta() { return {
|
|
10043
10055
|
"$flags$": 0,
|
|
@@ -10060,7 +10072,7 @@ class EdsIconChevronRight {
|
|
|
10060
10072
|
this.class = '';
|
|
10061
10073
|
}
|
|
10062
10074
|
render() {
|
|
10063
|
-
return hAsync("span", { key: '
|
|
10075
|
+
return hAsync("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
|
|
10064
10076
|
}
|
|
10065
10077
|
static get cmpMeta() { return {
|
|
10066
10078
|
"$flags$": 0,
|
|
@@ -10083,7 +10095,7 @@ class EdsIconChevronUp {
|
|
|
10083
10095
|
this.class = '';
|
|
10084
10096
|
}
|
|
10085
10097
|
render() {
|
|
10086
|
-
return hAsync("span", { key: '
|
|
10098
|
+
return hAsync("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
|
|
10087
10099
|
}
|
|
10088
10100
|
static get cmpMeta() { return {
|
|
10089
10101
|
"$flags$": 0,
|
|
@@ -10106,7 +10118,7 @@ class EdsIconClose {
|
|
|
10106
10118
|
this.class = '';
|
|
10107
10119
|
}
|
|
10108
10120
|
render() {
|
|
10109
|
-
return hAsync("span", { key: '
|
|
10121
|
+
return hAsync("span", { key: '8e4dedef0fe684fdd6078db8005661e49207da55', class: this.class, innerHTML: close });
|
|
10110
10122
|
}
|
|
10111
10123
|
static get cmpMeta() { return {
|
|
10112
10124
|
"$flags$": 0,
|
|
@@ -10129,7 +10141,7 @@ class EdsIconCopy {
|
|
|
10129
10141
|
this.class = '';
|
|
10130
10142
|
}
|
|
10131
10143
|
render() {
|
|
10132
|
-
return hAsync("span", { key: '
|
|
10144
|
+
return hAsync("span", { key: 'ff014a9761d8380a9fd8c97d3dd483b8d6fc786c', class: this.class, innerHTML: copy });
|
|
10133
10145
|
}
|
|
10134
10146
|
static get cmpMeta() { return {
|
|
10135
10147
|
"$flags$": 0,
|
|
@@ -10152,7 +10164,7 @@ class EdsIconEu {
|
|
|
10152
10164
|
this.class = '';
|
|
10153
10165
|
}
|
|
10154
10166
|
render() {
|
|
10155
|
-
return hAsync("span", { key: '
|
|
10167
|
+
return hAsync("span", { key: '3888f0338df2496c334d95dbcb52a0e39906362d', class: this.class, innerHTML: euSvg });
|
|
10156
10168
|
}
|
|
10157
10169
|
static get cmpMeta() { return {
|
|
10158
10170
|
"$flags$": 0,
|
|
@@ -10175,7 +10187,7 @@ class EdsIconExternal {
|
|
|
10175
10187
|
this.class = '';
|
|
10176
10188
|
}
|
|
10177
10189
|
render() {
|
|
10178
|
-
return hAsync("span", { key: '
|
|
10190
|
+
return hAsync("span", { key: '58d51f84a7b6326ef117a905f2c50d4fff6369c5', class: this.class, innerHTML: arrowDiagonal });
|
|
10179
10191
|
}
|
|
10180
10192
|
static get cmpMeta() { return {
|
|
10181
10193
|
"$flags$": 0,
|
|
@@ -10198,7 +10210,7 @@ class EdsIconFacebook {
|
|
|
10198
10210
|
this.class = '';
|
|
10199
10211
|
}
|
|
10200
10212
|
render() {
|
|
10201
|
-
return hAsync("span", { key: '
|
|
10213
|
+
return hAsync("span", { key: '3ea80799436c93b1c02ad177bd48910409aebf51', class: this.class, innerHTML: facebook });
|
|
10202
10214
|
}
|
|
10203
10215
|
static get cmpMeta() { return {
|
|
10204
10216
|
"$flags$": 0,
|
|
@@ -10221,7 +10233,7 @@ class EdsIconGitlab {
|
|
|
10221
10233
|
this.class = '';
|
|
10222
10234
|
}
|
|
10223
10235
|
render() {
|
|
10224
|
-
return hAsync("span", { key: '
|
|
10236
|
+
return hAsync("span", { key: 'a2f423ed9227463e27c0c698e6b4bba44cdc6263', class: this.class, innerHTML: gitlabBlack });
|
|
10225
10237
|
}
|
|
10226
10238
|
static get cmpMeta() { return {
|
|
10227
10239
|
"$flags$": 0,
|
|
@@ -10244,7 +10256,7 @@ class EdsIconLinkedin {
|
|
|
10244
10256
|
this.class = '';
|
|
10245
10257
|
}
|
|
10246
10258
|
render() {
|
|
10247
|
-
return hAsync("span", { key: '
|
|
10259
|
+
return hAsync("span", { key: '88852ca054a7e637efc7fe5b01f343a9b1798e41', class: this.class, innerHTML: linkedin });
|
|
10248
10260
|
}
|
|
10249
10261
|
static get cmpMeta() { return {
|
|
10250
10262
|
"$flags$": 0,
|
|
@@ -10267,7 +10279,7 @@ class EdsIconLoader {
|
|
|
10267
10279
|
this.class = '';
|
|
10268
10280
|
}
|
|
10269
10281
|
render() {
|
|
10270
|
-
return hAsync("span", { key: '
|
|
10282
|
+
return hAsync("span", { key: '283c8842f0f755074521fdcbae46969d87b86312', class: this.class, innerHTML: loader });
|
|
10271
10283
|
}
|
|
10272
10284
|
static get cmpMeta() { return {
|
|
10273
10285
|
"$flags$": 0,
|
|
@@ -10290,7 +10302,7 @@ class EdsIconMastodon {
|
|
|
10290
10302
|
this.class = '';
|
|
10291
10303
|
}
|
|
10292
10304
|
render() {
|
|
10293
|
-
return hAsync("span", { key: '
|
|
10305
|
+
return hAsync("span", { key: '5a5a90094c1f974dc7932654e97de04975e675bb', class: this.class, innerHTML: mastodon });
|
|
10294
10306
|
}
|
|
10295
10307
|
static get cmpMeta() { return {
|
|
10296
10308
|
"$flags$": 0,
|
|
@@ -10313,7 +10325,7 @@ class EdsIconMenu {
|
|
|
10313
10325
|
this.class = '';
|
|
10314
10326
|
}
|
|
10315
10327
|
render() {
|
|
10316
|
-
return hAsync("span", { key: '
|
|
10328
|
+
return hAsync("span", { key: 'dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0', class: this.class, innerHTML: menu });
|
|
10317
10329
|
}
|
|
10318
10330
|
static get cmpMeta() { return {
|
|
10319
10331
|
"$flags$": 0,
|
|
@@ -10336,7 +10348,7 @@ class EdsIconMinus {
|
|
|
10336
10348
|
this.class = '';
|
|
10337
10349
|
}
|
|
10338
10350
|
render() {
|
|
10339
|
-
return hAsync("span", { key: '
|
|
10351
|
+
return hAsync("span", { key: 'e76f56aaba4a67096e6314e61d53bc2512941552', class: this.class, innerHTML: minus });
|
|
10340
10352
|
}
|
|
10341
10353
|
static get cmpMeta() { return {
|
|
10342
10354
|
"$flags$": 0,
|
|
@@ -10359,7 +10371,7 @@ class EdsIconMore {
|
|
|
10359
10371
|
this.class = '';
|
|
10360
10372
|
}
|
|
10361
10373
|
render() {
|
|
10362
|
-
return hAsync("span", { key: '
|
|
10374
|
+
return hAsync("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: more });
|
|
10363
10375
|
}
|
|
10364
10376
|
static get cmpMeta() { return {
|
|
10365
10377
|
"$flags$": 0,
|
|
@@ -10382,7 +10394,7 @@ class EdsIconPaper {
|
|
|
10382
10394
|
this.class = '';
|
|
10383
10395
|
}
|
|
10384
10396
|
render() {
|
|
10385
|
-
return hAsync("span", { key: '
|
|
10397
|
+
return hAsync("span", { key: 'abc728a23571f7cc24f6d9d1dc5c72c397983aa3', class: this.class, innerHTML: paper });
|
|
10386
10398
|
}
|
|
10387
10399
|
static get cmpMeta() { return {
|
|
10388
10400
|
"$flags$": 0,
|
|
@@ -10405,7 +10417,7 @@ class EdsIconPlus {
|
|
|
10405
10417
|
this.class = '';
|
|
10406
10418
|
}
|
|
10407
10419
|
render() {
|
|
10408
|
-
return hAsync("span", { key: '
|
|
10420
|
+
return hAsync("span", { key: '35d8e069fbb1bdb01ae6f068c28edd19d299c7c3', class: this.class, innerHTML: plus });
|
|
10409
10421
|
}
|
|
10410
10422
|
static get cmpMeta() { return {
|
|
10411
10423
|
"$flags$": 0,
|
|
@@ -10428,7 +10440,7 @@ class EdsIconPortal {
|
|
|
10428
10440
|
this.class = '';
|
|
10429
10441
|
}
|
|
10430
10442
|
render() {
|
|
10431
|
-
return hAsync("span", { key: '
|
|
10443
|
+
return hAsync("span", { key: '9383784da3e52d22395288f8eba5b6f4ee826aa5', class: this.class, innerHTML: portal });
|
|
10432
10444
|
}
|
|
10433
10445
|
static get cmpMeta() { return {
|
|
10434
10446
|
"$flags$": 0,
|
|
@@ -10451,7 +10463,7 @@ class EdsIconPrivate {
|
|
|
10451
10463
|
this.class = '';
|
|
10452
10464
|
}
|
|
10453
10465
|
render() {
|
|
10454
|
-
return hAsync("span", { key: '
|
|
10466
|
+
return hAsync("span", { key: '9466d1ce37e58f512579d63ec5049cc58e8b9836', class: this.class, innerHTML: privat });
|
|
10455
10467
|
}
|
|
10456
10468
|
static get cmpMeta() { return {
|
|
10457
10469
|
"$flags$": 0,
|
|
@@ -10474,7 +10486,7 @@ class EdsIconPublic {
|
|
|
10474
10486
|
this.class = '';
|
|
10475
10487
|
}
|
|
10476
10488
|
render() {
|
|
10477
|
-
return hAsync("span", { key: '
|
|
10489
|
+
return hAsync("span", { key: 'e4815b72c160ae98d66dbfa877f82f1d2f7c50b3', class: this.class, innerHTML: pub });
|
|
10478
10490
|
}
|
|
10479
10491
|
static get cmpMeta() { return {
|
|
10480
10492
|
"$flags$": 0,
|
|
@@ -10497,7 +10509,7 @@ class EdsIconSearch {
|
|
|
10497
10509
|
this.class = '';
|
|
10498
10510
|
}
|
|
10499
10511
|
render() {
|
|
10500
|
-
return hAsync("span", { key: '
|
|
10512
|
+
return hAsync("span", { key: '6a35ea0c0de4916a867f760eb058a3cbb1bc218e', class: this.class, innerHTML: search });
|
|
10501
10513
|
}
|
|
10502
10514
|
static get cmpMeta() { return {
|
|
10503
10515
|
"$flags$": 0,
|
|
@@ -10520,7 +10532,7 @@ class EdsIconStar {
|
|
|
10520
10532
|
this.class = '';
|
|
10521
10533
|
}
|
|
10522
10534
|
render() {
|
|
10523
|
-
return hAsync("span", { key: '
|
|
10535
|
+
return hAsync("span", { key: 'f7ebc68658fcf8c0df627871481cce90cd7800fb', class: this.class, innerHTML: star });
|
|
10524
10536
|
}
|
|
10525
10537
|
static get cmpMeta() { return {
|
|
10526
10538
|
"$flags$": 0,
|
|
@@ -10543,7 +10555,7 @@ class EdsIconSuccess {
|
|
|
10543
10555
|
this.class = '';
|
|
10544
10556
|
}
|
|
10545
10557
|
render() {
|
|
10546
|
-
return hAsync("span", { key: '
|
|
10558
|
+
return hAsync("span", { key: 'd78b06493302958306d408d823f4a7703d9b9adc', class: this.class, innerHTML: success });
|
|
10547
10559
|
}
|
|
10548
10560
|
static get cmpMeta() { return {
|
|
10549
10561
|
"$flags$": 0,
|
|
@@ -10566,7 +10578,7 @@ class EdsIconThumbsDown {
|
|
|
10566
10578
|
this.class = '';
|
|
10567
10579
|
}
|
|
10568
10580
|
render() {
|
|
10569
|
-
return hAsync("span", { key: '
|
|
10581
|
+
return hAsync("span", { key: '84e6d8cff80004a650c6d0fc6b9702cf1ca85ba2', class: this.class, innerHTML: thumbsDown });
|
|
10570
10582
|
}
|
|
10571
10583
|
static get cmpMeta() { return {
|
|
10572
10584
|
"$flags$": 0,
|
|
@@ -10589,7 +10601,7 @@ class EdsIconThumbsUp {
|
|
|
10589
10601
|
this.class = '';
|
|
10590
10602
|
}
|
|
10591
10603
|
render() {
|
|
10592
|
-
return hAsync("span", { key: '
|
|
10604
|
+
return hAsync("span", { key: '5f5198ad92684dc173d603499b485e7d0ca8811b', class: this.class, innerHTML: thumbsUp });
|
|
10593
10605
|
}
|
|
10594
10606
|
static get cmpMeta() { return {
|
|
10595
10607
|
"$flags$": 0,
|
|
@@ -10612,7 +10624,7 @@ class EdsIconTutorial {
|
|
|
10612
10624
|
this.class = '';
|
|
10613
10625
|
}
|
|
10614
10626
|
render() {
|
|
10615
|
-
return hAsync("span", { key: '
|
|
10627
|
+
return hAsync("span", { key: '8be08569144889cca6f801cdd31e4cc31fdc11e5', class: this.class, innerHTML: tutorial });
|
|
10616
10628
|
}
|
|
10617
10629
|
static get cmpMeta() { return {
|
|
10618
10630
|
"$flags$": 0,
|
|
@@ -10635,7 +10647,7 @@ class EdsIconTwitter {
|
|
|
10635
10647
|
this.class = '';
|
|
10636
10648
|
}
|
|
10637
10649
|
render() {
|
|
10638
|
-
return hAsync("span", { key: '
|
|
10650
|
+
return hAsync("span", { key: 'c2ee643b5da517a53bd97ec6263161927ad229a7', class: this.class, innerHTML: twitter });
|
|
10639
10651
|
}
|
|
10640
10652
|
static get cmpMeta() { return {
|
|
10641
10653
|
"$flags$": 0,
|
|
@@ -10658,7 +10670,7 @@ class EdsIconUnknown {
|
|
|
10658
10670
|
this.class = '';
|
|
10659
10671
|
}
|
|
10660
10672
|
render() {
|
|
10661
|
-
return hAsync("span", { key: '
|
|
10673
|
+
return hAsync("span", { key: '449cd62f697607ebb17bed06835ee9529d7e8999', class: this.class, innerHTML: unknown });
|
|
10662
10674
|
}
|
|
10663
10675
|
static get cmpMeta() { return {
|
|
10664
10676
|
"$flags$": 0,
|
|
@@ -10681,7 +10693,7 @@ class EdsIconUpdown {
|
|
|
10681
10693
|
this.class = '';
|
|
10682
10694
|
}
|
|
10683
10695
|
render() {
|
|
10684
|
-
return hAsync("span", { key: '
|
|
10696
|
+
return hAsync("span", { key: '5b0e914205c9f3fb5e216e0ccb16e350a4449c02', class: this.class, innerHTML: upDonw });
|
|
10685
10697
|
}
|
|
10686
10698
|
static get cmpMeta() { return {
|
|
10687
10699
|
"$flags$": 0,
|
|
@@ -10704,7 +10716,7 @@ class EdsIconUser {
|
|
|
10704
10716
|
this.class = '';
|
|
10705
10717
|
}
|
|
10706
10718
|
render() {
|
|
10707
|
-
return hAsync("span", { key: '
|
|
10719
|
+
return hAsync("span", { key: '297e73664320032b2f78dd3c43aa0852545c0723', class: this.class, innerHTML: user });
|
|
10708
10720
|
}
|
|
10709
10721
|
static get cmpMeta() { return {
|
|
10710
10722
|
"$flags$": 0,
|
|
@@ -10783,7 +10795,7 @@ class EdsIconYoutube {
|
|
|
10783
10795
|
this.class = '';
|
|
10784
10796
|
}
|
|
10785
10797
|
render() {
|
|
10786
|
-
return hAsync("span", { key: '
|
|
10798
|
+
return hAsync("span", { key: '0a6abd6b62e24c07b4338f0f1f6febbec876791f', class: this.class, innerHTML: youtube });
|
|
10787
10799
|
}
|
|
10788
10800
|
static get cmpMeta() { return {
|
|
10789
10801
|
"$flags$": 0,
|
|
@@ -10859,10 +10871,10 @@ class EdsImg {
|
|
|
10859
10871
|
imgOpts['loading'] = 'lazy';
|
|
10860
10872
|
imgOpts['decoding'] = 'async';
|
|
10861
10873
|
}
|
|
10862
|
-
return (hAsync("div", { key: '
|
|
10874
|
+
return (hAsync("div", { key: '13ed3aa346c99321c609e49ce045b6361921350f', class: {
|
|
10863
10875
|
'items-center justify-center': true,
|
|
10864
10876
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
10865
|
-
} }, hAsync("picture", { key: '
|
|
10877
|
+
} }, hAsync("picture", { key: '56aa0ed8fd1ef8f9faf6ad576dd05edc34139c9b' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: '78e3ed9adcfe423d48388bf30140f4b70649faf7', ref: (el) => (this.img = el), class: {
|
|
10866
10878
|
'effect-opacity object-cover object-center': true,
|
|
10867
10879
|
'opacity-100': this.loaded,
|
|
10868
10880
|
'opacity-0': !this.loaded
|
|
@@ -10941,12 +10953,12 @@ class EdsInput {
|
|
|
10941
10953
|
render() {
|
|
10942
10954
|
const withIcon = !!this.icon;
|
|
10943
10955
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
10944
|
-
return (hAsync("div", { key: '
|
|
10956
|
+
return (hAsync("div", { key: '5c66c14b19aa3d5fc37e7a77a2d1194fa0be9b8c', class: "relative flex items-center" }, this.type === 'textarea' ? (hAsync("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' ? (hAsync("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) => (hAsync("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (hAsync("input", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined, class: `
|
|
10945
10957
|
${this.extraClass || ''}
|
|
10946
10958
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
10947
10959
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
10948
10960
|
${this.error ? 'input-error' : ''}
|
|
10949
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '
|
|
10961
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '4326db3729dea8bbddb7a109a90424aa832aded7', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (hAsync("eds-icon-wrapper", { key: 'df2f5598aedd36b9cb2ce886fb8ea08da58dc5ff', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
|
|
10950
10962
|
}
|
|
10951
10963
|
get el() { return getElement(this); }
|
|
10952
10964
|
static get watchers() { return {
|
|
@@ -11078,7 +11090,7 @@ class EdsInputField {
|
|
|
11078
11090
|
icon: this.icon,
|
|
11079
11091
|
checked: this.checked
|
|
11080
11092
|
};
|
|
11081
|
-
return (hAsync("div", { key: '
|
|
11093
|
+
return (hAsync("div", { key: 'e46f1b26212ee915c2fde3fa0c58a152005d2b50', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4 mt-8" }, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (hAsync("div", { class: "flex items-center gap-x-2", key: option.value }, hAsync("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: (typeof this.value === 'string' ? this.value.split(',') : []).includes(String(option.value)) })), hAsync("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (hAsync("div", { class: "flex items-center gap-x-8" }, hAsync("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' })), this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (hAsync("div", null, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (hAsync("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (hAsync("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
11082
11094
|
var _a, _b, _c;
|
|
11083
11095
|
const rangeProps = {
|
|
11084
11096
|
name: inputOpts.name,
|
|
@@ -11091,7 +11103,7 @@ class EdsInputField {
|
|
|
11091
11103
|
const opt = this.parsedOptions;
|
|
11092
11104
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11093
11105
|
return (hAsync("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 })));
|
|
11094
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '
|
|
11106
|
+
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: 'ecf3ee5c0400749f1d89b53edfdee6fe62ca2a32', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
|
|
11095
11107
|
}
|
|
11096
11108
|
get hostEl() { return getElement(this); }
|
|
11097
11109
|
static get style() { return EdsInputFieldStyle0; }
|
|
@@ -11139,7 +11151,7 @@ class EdsInputFooter {
|
|
|
11139
11151
|
this.link = undefined;
|
|
11140
11152
|
}
|
|
11141
11153
|
render() {
|
|
11142
|
-
return (hAsync("div", { key: '
|
|
11154
|
+
return (hAsync("div", { key: 'd5424778da81d6558246efe97917d3e3ccfa9aaa', class: "space-y-4 mt-4" }, this.error && this.errorMessage && (hAsync("div", { key: 'e915fc1f4719f48eca5a831ac72913d2f91f633b', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: '9cc87cfd4955766947a2581604fe1e072f8d82a9', icon: "warning" }), hAsync("p", { key: '564a2397fb7e8185e43e1c2be216c76060e7498e', class: "f-ui-04 ml-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '24e0702df7e5c2fe4ef0cc6755159fefe76b70a7', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("a", { key: '9e3720a3ded9d755afd7755104df0942246f1fbe', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
|
|
11143
11155
|
}
|
|
11144
11156
|
static get cmpMeta() { return {
|
|
11145
11157
|
"$flags$": 0,
|
|
@@ -11169,7 +11181,7 @@ class EdsInputLabel {
|
|
|
11169
11181
|
this.disabled = false;
|
|
11170
11182
|
}
|
|
11171
11183
|
render() {
|
|
11172
|
-
return (hAsync("label", { key: '
|
|
11184
|
+
return (hAsync("label", { key: 'd700690a67a8348836aec27d2ff4f4d4ee18b9c8', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: '9b52c053652db132a9bdb2d9fc64c569a529c2d9' }, hAsync("span", { key: 'cd17268b6048ebaa70dc7f905fc7f7bf3ed3fa34', "aria-hidden": "true" }, "*"), hAsync("span", { key: '352d7b5ef080336a5c7b53e0b710d5b0d7aa0efe', class: "sr-only" }, "required")))));
|
|
11173
11185
|
}
|
|
11174
11186
|
static get cmpMeta() { return {
|
|
11175
11187
|
"$flags$": 0,
|
|
@@ -11234,7 +11246,7 @@ class EdsInputRange {
|
|
|
11234
11246
|
return this.inputElement;
|
|
11235
11247
|
}
|
|
11236
11248
|
render() {
|
|
11237
|
-
return (hAsync("div", { key: '
|
|
11249
|
+
return (hAsync("div", { key: '5c55f65e2acd6f4554af7d8ba513c9d9dfd445eb', class: "relative flex flex-col items-start space-y-2" }, hAsync("input", { key: '4fcd0d3d978ddba7929958dd22a283c2ba61ee48', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.sliderVal, onInput: this.onInput, onChange: this.onChange }), hAsync("p", { key: 'c63b223e6af149efb68cabbe5228e77b09ca2168', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
11238
11250
|
}
|
|
11239
11251
|
get el() { return getElement(this); }
|
|
11240
11252
|
static get watchers() { return {
|
|
@@ -11329,7 +11341,7 @@ class EdsInputSearch {
|
|
|
11329
11341
|
return this.inputElement;
|
|
11330
11342
|
}
|
|
11331
11343
|
render() {
|
|
11332
|
-
return (hAsync("div", { key: '
|
|
11344
|
+
return (hAsync("div", { key: '27d6871df962e2bd27eac38b1a105142b1b68bab', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: 'b4b497cb435c673a550b169dea93fbc7006d0c5e', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), hAsync("input", { key: '1419cd8f5b8791b5b812c57ba649567e1b6ec0bb', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", "aria-label": this.placeholder, class: `input pl-36 ${this.decorate}`,
|
|
11333
11345
|
//onInput={this.onInput}
|
|
11334
11346
|
onChange: this.onChange })));
|
|
11335
11347
|
}
|
|
@@ -11383,12 +11395,12 @@ class EdsInputSelect {
|
|
|
11383
11395
|
const selectId = this.inputId || this.name;
|
|
11384
11396
|
const placeholderText = this.placeholder || `Please select ${this.name}`;
|
|
11385
11397
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
11386
|
-
return (hAsync("div", { key: '
|
|
11398
|
+
return (hAsync("div", { key: '80cbdab87f5baa21df5edc857685c3af4dee3a58', class: "relative" }, hAsync("select", { key: '4e8f84fd9dbc63df7981898cadc24450f48aa92a', id: selectId, name: this.name, class: {
|
|
11387
11399
|
input: true,
|
|
11388
11400
|
'input-error': this.error,
|
|
11389
11401
|
'px-4': true,
|
|
11390
11402
|
'py-2': true
|
|
11391
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
11403
|
+
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '54b90339cae4c5c80711793a8c68c4587e0c2495', value: "", disabled: true, hidden: true }, placeholderText), this.options.map((opt, index) => (hAsync("option", { key: index, value: opt.value, selected: opt.value === this.value }, opt.label)))), hAsync("span", { key: '6c9f0a0606f1d6f282c756f84ace7618584d5fa3', class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, hAsync("eds-icon-wrapper", { key: '4524af72468d3b37c01b0252d4b6b2bf7454514e', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
11392
11404
|
}
|
|
11393
11405
|
static get cmpMeta() { return {
|
|
11394
11406
|
"$flags$": 0,
|
|
@@ -11629,7 +11641,7 @@ class EdsLink {
|
|
|
11629
11641
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11630
11642
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11631
11643
|
: '';
|
|
11632
|
-
return (hAsync(ComponentType, { key: '
|
|
11644
|
+
return (hAsync(ComponentType, { key: '8c7ab8b80b9765e83e4e57d59ba1b45fe36f15b7', 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) }, hAsync("span", { key: '94284b425a331f6a56a3e63db89fed5fa1a207c1', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), hAsync("span", { key: '7496886c7c975d6795633c36b9cc8d31673d5a4b', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
11633
11645
|
}
|
|
11634
11646
|
get el() { return getElement(this); }
|
|
11635
11647
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11737,7 +11749,7 @@ class EdsLogo {
|
|
|
11737
11749
|
}
|
|
11738
11750
|
render() {
|
|
11739
11751
|
const logoContent = this.getLogo();
|
|
11740
|
-
return (hAsync("a", { key: '
|
|
11752
|
+
return (hAsync("a", { key: 'ab11d53e1f417221dcca2de441c7b3efa96f99a5', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: '0d4a6b970788534d34d55b28fe83407ce7c4e00e', innerHTML: logoContent })));
|
|
11741
11753
|
}
|
|
11742
11754
|
get el() { return getElement(this); }
|
|
11743
11755
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12012,9 +12024,9 @@ class EdsModal {
|
|
|
12012
12024
|
render() {
|
|
12013
12025
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12014
12026
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12015
|
-
return (hAsync("div", { key: '
|
|
12027
|
+
return (hAsync("div", { key: 'affa340307adc5bdd637696b56a59e3f73cbf7e9', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: 'e4359b32052a155f879070deea34fbca2fb67e3b', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
12016
12028
|
,
|
|
12017
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12029
|
+
onClick: () => this.close() })), hAsync("div", { key: 'ba95f463e8c807e2ac2e900b3167191908ca2f5d', class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: '1fc4649d6ba728745e4f1ed73e8fb8bdac6eda59', 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'}` }, hAsync("span", { key: '731e7cb6c7aaa36bcda8d1c32bd1b8da9d85f253', id: titleId, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), hAsync("eds-button", { key: '89657ac29b27ce173569353f3101e998cb756eec', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), hAsync("div", { key: '2e39edaa1f5cc5389873e203c3e4294de8b56678', class: "pt-8 px-20 py-20" }, hAsync("slot", { key: '0fb09f52100042fc5f20f5f443a8f5cff381d944' })))));
|
|
12018
12030
|
}
|
|
12019
12031
|
get el() { return getElement(this); }
|
|
12020
12032
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12215,7 +12227,7 @@ class EdsPagination {
|
|
|
12215
12227
|
}
|
|
12216
12228
|
}
|
|
12217
12229
|
render() {
|
|
12218
|
-
return (hAsync("div", { key: '
|
|
12230
|
+
return (hAsync("div", { key: '6377e0187e461bcbeac835dd7cb83e93ef199865' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: 'ec2a6b6a40c76352743d012c51cda5d7fe1137df', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, hAsync("span", { key: '3a23e3d156f87167b0dacb4085870958ce19e793', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination" }, hAsync("ul", { class: "flex items-center justify-center gap-x-8" }, hAsync("li", { class: "mr-auto" }, hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
12219
12231
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
12220
12232
|
: this.isFirstPage()
|
|
12221
12233
|
? '#'
|
|
@@ -12434,7 +12446,7 @@ class EdsProgressBar {
|
|
|
12434
12446
|
]
|
|
12435
12447
|
.filter(Boolean)
|
|
12436
12448
|
.join(' ');
|
|
12437
|
-
return (hAsync("div", { key: '
|
|
12449
|
+
return (hAsync("div", { key: '3360c1a9e61c83fee5312d007f6d2965a8983eba', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, hAsync("div", { key: '7210dc5931f08626b286c30ae790a3a864533632', class: fillClasses, style: { width: `${progressValue}%` } }), hAsync("div", { key: '7586cd593b4e851f4605ad33b96781841ee0b1aa', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, hAsync("span", { key: '21fa3de543e5e717ed4fd76c689aa47c3fa6a853', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
12438
12450
|
}
|
|
12439
12451
|
static get style() { return EdsProgressBarStyle0; }
|
|
12440
12452
|
static get cmpMeta() { return {
|
|
@@ -12496,7 +12508,7 @@ class EdsRating {
|
|
|
12496
12508
|
this.rating.emit(rating);
|
|
12497
12509
|
}
|
|
12498
12510
|
render() {
|
|
12499
|
-
return (hAsync("div", { key: '
|
|
12511
|
+
return (hAsync("div", { key: '6686575f0b8b9017bf19b105208f6adbfd46dabd', role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (_, index) => {
|
|
12500
12512
|
const starRating = index + 1;
|
|
12501
12513
|
const isSelected = starRating <= this.selectedRating;
|
|
12502
12514
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -12545,7 +12557,7 @@ class EdsSectionCore {
|
|
|
12545
12557
|
}
|
|
12546
12558
|
render() {
|
|
12547
12559
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
12548
|
-
return (hAsync(TagType, { key: '
|
|
12560
|
+
return (hAsync(TagType, { key: '43f8d599041ae0c9761988fdec4872ec4a8ca037' }, hAsync("eds-section-heading", { key: 'd120ddd851a0485e2edb43e2a6f508a661f35c07', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '9818b82a3eebcb741f5bccc9781e4212f2c5fa3d' })));
|
|
12549
12561
|
}
|
|
12550
12562
|
static get style() { return EdsSectionCoreStyle0; }
|
|
12551
12563
|
static get cmpMeta() { return {
|
|
@@ -12600,12 +12612,12 @@ class EdsSectionHeading {
|
|
|
12600
12612
|
render() {
|
|
12601
12613
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
12602
12614
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
12603
|
-
return (hAsync(TagType, { key: '
|
|
12615
|
+
return (hAsync(TagType, { key: '740ed8b3208e07091a1f4c79888e172dec33773a', class: {
|
|
12604
12616
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
12605
12617
|
container: this.withContainer,
|
|
12606
12618
|
'pt-48': this.spacingLarge,
|
|
12607
12619
|
'pt-28': !this.spacingLarge
|
|
12608
|
-
} }, hAsync(HeadingTag, { key: '
|
|
12620
|
+
} }, hAsync(HeadingTag, { key: '4d4ceef35b7cb06bfbff2fdae47e66dd7ac10c49', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
12609
12621
|
}
|
|
12610
12622
|
static get cmpMeta() { return {
|
|
12611
12623
|
"$flags$": 0,
|
|
@@ -12738,7 +12750,7 @@ class EdsSpinner {
|
|
|
12738
12750
|
alignItems: 'center',
|
|
12739
12751
|
justifyContent: 'center'
|
|
12740
12752
|
};
|
|
12741
|
-
return (hAsync(Host, { key: '
|
|
12753
|
+
return (hAsync(Host, { key: 'f687ccbbb05840b7699202f3758ec4a8d0de1bc4' }, hAsync("div", { key: '4bb5c697f1ccd90d2d65d519fcfb3ec809b106ac', class: "spinner-overlay", style: overlayStyle }, hAsync("span", { key: 'a07722d9ee9c94d03d9766a4b297a498998c00be', class: "spinner", style: spinnerStyle }))));
|
|
12742
12754
|
}
|
|
12743
12755
|
static get style() { return EdsSpinnerStyle0; }
|
|
12744
12756
|
static get cmpMeta() { return {
|
|
@@ -12902,10 +12914,10 @@ class EdsSteps {
|
|
|
12902
12914
|
render() {
|
|
12903
12915
|
const steps = this.parsedSteps;
|
|
12904
12916
|
if (this.type === 'linear') {
|
|
12905
|
-
return (hAsync("div", null, hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), this.activeStep === index && (hAsync("div", { class: "content" }, hAsync("div", { class:
|
|
12917
|
+
return (hAsync("div", null, hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), this.activeStep === index && (hAsync("div", { class: "content" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })), hAsync("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', intent: "primary", class: "next-btn", onClick: this.handleNext }), hAsync("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' })))))))));
|
|
12906
12918
|
}
|
|
12907
12919
|
// Static mode: show all steps with their content, no navigation buttons.
|
|
12908
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", null, step.title), hAsync("div", { class: "content" }, hAsync("div", { class:
|
|
12920
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", null, step.title), hAsync("div", { class: "content" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
|
|
12909
12921
|
}
|
|
12910
12922
|
get el() { return getElement(this); }
|
|
12911
12923
|
static get watchers() { return {
|
|
@@ -12926,7 +12938,7 @@ class EdsSteps {
|
|
|
12926
12938
|
}; }
|
|
12927
12939
|
}
|
|
12928
12940
|
|
|
12929
|
-
const edsStepsV2Css = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}";
|
|
12941
|
+
const edsStepsV2Css = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}";
|
|
12930
12942
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
12931
12943
|
|
|
12932
12944
|
class EdsStepsV2 {
|
|
@@ -12948,6 +12960,7 @@ class EdsStepsV2 {
|
|
|
12948
12960
|
this.steps = [];
|
|
12949
12961
|
this.type = 'static';
|
|
12950
12962
|
this.imageSrc = undefined;
|
|
12963
|
+
this.imageWidth = undefined;
|
|
12951
12964
|
this.bg = true;
|
|
12952
12965
|
this.message = undefined;
|
|
12953
12966
|
this.activeStep = 0;
|
|
@@ -13003,9 +13016,9 @@ class EdsStepsV2 {
|
|
|
13003
13016
|
}
|
|
13004
13017
|
render() {
|
|
13005
13018
|
const steps = this.parsedSteps;
|
|
13006
|
-
return (hAsync("div", { key: '
|
|
13019
|
+
return (hAsync("div", { key: 'bbcec2dd9a5096eb0cecf0d413892e5708822f52', class: this.articleClasses() }, this.imageSrc ? (hAsync("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, hAsync("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (hAsync("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, hAsync("div", { class: "p-24" }, hAsync("span", { class: "text-inverse f-heading-04 " }, this.message))))), hAsync("div", { key: 'db0618aad7d5986fcb0889f1c439be73f83a00df', class: "p-8" }, this.type === 'linear' ? (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: index === 0 ? 'step' : 'step space-y-16', key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), this.activeStep === index && (hAsync("div", { class: "content" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })), hAsync("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', intent: "primary", class: "next-btn", onClick: this.handleNext }), hAsync("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' })))))))) : (
|
|
13007
13020
|
// Static mode: show all steps with their content.
|
|
13008
|
-
hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), hAsync("div", { class: "content" }, hAsync("div", { class:
|
|
13021
|
+
hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), hAsync("div", { class: "content" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content })))))))))));
|
|
13009
13022
|
}
|
|
13010
13023
|
get el() { return getElement(this); }
|
|
13011
13024
|
static get watchers() { return {
|
|
@@ -13019,6 +13032,7 @@ class EdsStepsV2 {
|
|
|
13019
13032
|
"steps": [1],
|
|
13020
13033
|
"type": [1],
|
|
13021
13034
|
"imageSrc": [1, "image-src"],
|
|
13035
|
+
"imageWidth": [2, "image-width"],
|
|
13022
13036
|
"bg": [4],
|
|
13023
13037
|
"message": [1],
|
|
13024
13038
|
"activeStep": [32]
|
|
@@ -13057,11 +13071,11 @@ class EdsSwitch {
|
|
|
13057
13071
|
render() {
|
|
13058
13072
|
// Compute an accessible name based on state.
|
|
13059
13073
|
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
13060
|
-
return (hAsync("div", { key: '
|
|
13074
|
+
return (hAsync("div", { key: '385c1463b11e83ff5b982218e0f28c54299210fd', class: "switch-container" }, this.labelOff && hAsync("span", { key: 'f7e825a34487a1cec466b5172d77c2802029607c', class: "switch-label switch-label--off mr-8" }, this.labelOff), hAsync("button", { key: 'fd1e8ffab675ee79edc6b99de4dfff42545d91af', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
|
|
13061
13075
|
switch: true,
|
|
13062
13076
|
'switch--checked': this.checked,
|
|
13063
13077
|
'switch--disabled': this.disabled
|
|
13064
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '
|
|
13078
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '0d185957ffe2577ffc8798c298820c84c838a2a4', class: "switch-handle" })), this.labelOn && hAsync("span", { key: 'f12b752ff94a363bb9593bd00cf43e7110e4399e', class: "switch-label switch-label--on ml-8" }, this.labelOn)));
|
|
13065
13079
|
}
|
|
13066
13080
|
get el() { return getElement(this); }
|
|
13067
13081
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -13080,7 +13094,7 @@ class EdsSwitch {
|
|
|
13080
13094
|
}; }
|
|
13081
13095
|
}
|
|
13082
13096
|
|
|
13083
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
13097
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
13084
13098
|
var EdsTableStyle0 = edsTableCss;
|
|
13085
13099
|
|
|
13086
13100
|
/**
|
|
@@ -13097,6 +13111,7 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13097
13111
|
class EdsTable {
|
|
13098
13112
|
constructor(hostRef) {
|
|
13099
13113
|
registerInstance(this, hostRef);
|
|
13114
|
+
this.rowaction = createEvent(this, "rowaction", 7);
|
|
13100
13115
|
this.handleResize = () => {
|
|
13101
13116
|
this.updateContainerWidth();
|
|
13102
13117
|
};
|
|
@@ -13108,6 +13123,10 @@ class EdsTable {
|
|
|
13108
13123
|
this.searchEnabled = false;
|
|
13109
13124
|
this.hostWidth = undefined;
|
|
13110
13125
|
this.columnSize = 'default';
|
|
13126
|
+
this.actions = [];
|
|
13127
|
+
this.actionTemplate = undefined;
|
|
13128
|
+
this.parsedActions = [];
|
|
13129
|
+
this.dataColumns = [];
|
|
13111
13130
|
this.tbData = [];
|
|
13112
13131
|
this.columns = [];
|
|
13113
13132
|
this.currentPage = 1;
|
|
@@ -13122,8 +13141,18 @@ class EdsTable {
|
|
|
13122
13141
|
handleConfigChange() {
|
|
13123
13142
|
this.parseConfig();
|
|
13124
13143
|
}
|
|
13144
|
+
handleActionsChange() {
|
|
13145
|
+
try {
|
|
13146
|
+
this.parsedActions = typeof this.actions === 'string' ? JSON.parse(this.actions) : this.actions;
|
|
13147
|
+
}
|
|
13148
|
+
catch (_a) {
|
|
13149
|
+
console.error('Failed to parse actions JSON');
|
|
13150
|
+
this.parsedActions = [];
|
|
13151
|
+
}
|
|
13152
|
+
}
|
|
13125
13153
|
componentWillLoad() {
|
|
13126
13154
|
this.parseConfig();
|
|
13155
|
+
this.handleActionsChange();
|
|
13127
13156
|
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
13128
13157
|
}
|
|
13129
13158
|
componentDidLoad() {
|
|
@@ -13152,24 +13181,20 @@ class EdsTable {
|
|
|
13152
13181
|
parseData() {
|
|
13153
13182
|
try {
|
|
13154
13183
|
this.tbData = parseData(this.data);
|
|
13155
|
-
//this.tbData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
13156
13184
|
this.totalRows = this.tbData.length;
|
|
13157
13185
|
this.updateColumns();
|
|
13158
13186
|
this.currentPage = 1;
|
|
13159
13187
|
}
|
|
13160
13188
|
catch (error) {
|
|
13161
|
-
// eslint-disable-next-line
|
|
13162
13189
|
console.error('Failed to parse data:', error);
|
|
13163
13190
|
this.tbData = [];
|
|
13164
13191
|
}
|
|
13165
13192
|
}
|
|
13166
13193
|
parseConfig() {
|
|
13167
13194
|
try {
|
|
13168
|
-
//this.parsedConfig = parseData(this.config);
|
|
13169
13195
|
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
13170
13196
|
}
|
|
13171
13197
|
catch (error) {
|
|
13172
|
-
// eslint-disable-next-line
|
|
13173
13198
|
console.error('Failed to parse config:', error);
|
|
13174
13199
|
this.parsedConfig = {};
|
|
13175
13200
|
}
|
|
@@ -13181,7 +13206,6 @@ class EdsTable {
|
|
|
13181
13206
|
this.data = data;
|
|
13182
13207
|
}
|
|
13183
13208
|
catch (error) {
|
|
13184
|
-
// eslint-disable-next-line
|
|
13185
13209
|
console.error('Failed to fetch data:', error);
|
|
13186
13210
|
}
|
|
13187
13211
|
}
|
|
@@ -13217,24 +13241,52 @@ class EdsTable {
|
|
|
13217
13241
|
handleSearch(event) {
|
|
13218
13242
|
this.searchQuery = event.target.value;
|
|
13219
13243
|
this.currentPage = 1;
|
|
13220
|
-
/*sendAnalytics({
|
|
13221
|
-
category: 'ui-component',
|
|
13222
|
-
parentContext: null,
|
|
13223
|
-
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
13224
|
-
name: `${this.searchQuery}` || '',
|
|
13225
|
-
action: 'page'
|
|
13226
|
-
});*/
|
|
13227
13244
|
}
|
|
13228
13245
|
renderCell(value, column) {
|
|
13229
13246
|
var _a;
|
|
13230
13247
|
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
13231
13248
|
return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (hAsync("div", { innerHTML: value })) : format === 'bold' ? (hAsync("strong", null, value)) : format === 'code' ? (hAsync("code", null, value)) : (value);
|
|
13232
13249
|
}
|
|
13250
|
+
/**
|
|
13251
|
+
* Renders one action (button or checkbox) for a specific action‐name.
|
|
13252
|
+
* Used by the “Actions” column below.
|
|
13253
|
+
*/
|
|
13254
|
+
renderSingleActionCell(actionName, row) {
|
|
13255
|
+
var _a;
|
|
13256
|
+
const act = this.parsedActions.find((a) => a.name === actionName);
|
|
13257
|
+
if (this.actionTemplate) {
|
|
13258
|
+
return this.actionTemplate(row);
|
|
13259
|
+
}
|
|
13260
|
+
const type = act.type || 'button';
|
|
13261
|
+
if (type === 'checkbox') {
|
|
13262
|
+
const boundField = (_a = act.field) !== null && _a !== void 0 ? _a : act.name;
|
|
13263
|
+
const checked = !!row[boundField];
|
|
13264
|
+
return (hAsync("eds-input-field", { name: `chc-${actionName}`, label: act.label, type: "checkbox", checked: checked, onChange: (e) => this.emitAction(act.name, row, e.target.checked) }));
|
|
13265
|
+
}
|
|
13266
|
+
return hAsync("eds-link", { label: act.label, intent: "weak", onClick: () => this.emitAction(act.name, row) });
|
|
13267
|
+
}
|
|
13268
|
+
emitAction(actionName, row, checked) {
|
|
13269
|
+
sendAnalytics({
|
|
13270
|
+
category: 'ui-component',
|
|
13271
|
+
parentContext: null,
|
|
13272
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/action`,
|
|
13273
|
+
name: actionName,
|
|
13274
|
+
action: 'click'
|
|
13275
|
+
});
|
|
13276
|
+
this.rowaction.emit({ action: actionName, row, checked: !!checked });
|
|
13277
|
+
}
|
|
13233
13278
|
shouldEnablePagination() {
|
|
13234
13279
|
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
13235
13280
|
}
|
|
13236
13281
|
updateColumns() {
|
|
13282
|
+
var _a, _b;
|
|
13283
|
+
// 1) Grab all data‐keys from the first row (if any) as before:
|
|
13237
13284
|
this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
|
|
13285
|
+
// 2) Instead of pushing each action.name, we add just a single “actions” column
|
|
13286
|
+
// (you can call it anything; we’ll detect it in render())
|
|
13287
|
+
if (((_b = (_a = this.parsedActions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0 && this.tbData.length > 0) {
|
|
13288
|
+
this.columns.push('actions');
|
|
13289
|
+
}
|
|
13238
13290
|
}
|
|
13239
13291
|
getVisibleColumnsCount() {
|
|
13240
13292
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
@@ -13249,28 +13301,45 @@ class EdsTable {
|
|
|
13249
13301
|
}
|
|
13250
13302
|
return divisionFactor;
|
|
13251
13303
|
}
|
|
13304
|
+
capitalize(str) {
|
|
13305
|
+
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
13306
|
+
}
|
|
13252
13307
|
render() {
|
|
13253
|
-
// Use containerWidth state that is updated on resize.
|
|
13254
13308
|
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
13255
|
-
// Calculate the number of visible columns and the column width.
|
|
13256
13309
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
13257
13310
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
13258
13311
|
const paginatedRows = this.getPaginatedRows();
|
|
13259
13312
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13260
|
-
return (hAsync("div", { key: '
|
|
13261
|
-
// @ts-ignore
|
|
13262
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: 'eb3eebe6fb124d4e1983b2fb7e636707817d36bd', class: "mt-20" }, hAsync("table", { key: '03b312ac20bdec28843a46907a3cc4fba69f62ae', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: 'ccab58dc46ae765df28da97ded6b1dd14d45d7f1' }, hAsync("tr", { key: '904a125aad610cebe42b0bce46615be38f0ee17a', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
13313
|
+
return (hAsync("div", { key: '5034177431626ab2bfc5fd0118c006d11a4f6e96' }, this.searchEnabled && (hAsync("div", { key: '86e1a6ffc4bed69f290b3a53031341ab276eaf04' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: 'bc11838d819ecf89c5ba1cc1cfe7ac0af0e82b59', class: "mt-20" }, hAsync("table", { key: '97f16b65eb1d9387e9ca7588184c9e68c1afcc2e', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: 'f4d64ada28c225db1b224277513e663a99de1cec' }, hAsync("tr", { key: 'c6a69e159cceada0f7143c0acb787e5c23242ae7', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
13263
13314
|
var _a;
|
|
13264
|
-
|
|
13265
|
-
|
|
13315
|
+
// 3) For the “actions” column, override the header to “Actions”
|
|
13316
|
+
if (col === 'actions') {
|
|
13317
|
+
// You can choose a smaller min‐width here if you wish:
|
|
13318
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, "Actions"));
|
|
13319
|
+
}
|
|
13320
|
+
// Otherwise, render column name or action label if you do want to override:
|
|
13321
|
+
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13322
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
13323
|
+
}
|
|
13324
|
+
return null;
|
|
13325
|
+
}))), hAsync("tbody", { key: '133af82fdd1f820e853734ab48123cb3db527e15' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
13266
13326
|
var _a;
|
|
13267
|
-
|
|
13268
|
-
|
|
13327
|
+
if (col === 'actions') {
|
|
13328
|
+
// 4) Render ALL actions inside a single <td> for this row:
|
|
13329
|
+
return (hAsync("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { style: { display: 'flex', gap: '0.5rem', justifyContent: 'center', flexWrap: 'wrap' } }, this.parsedActions.map((act) => (hAsync("span", { style: { whiteSpace: 'nowrap' } }, this.renderSingleActionCell(act.name, row)))))));
|
|
13330
|
+
}
|
|
13331
|
+
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13332
|
+
// Regular data cell:
|
|
13333
|
+
return (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[col], col)));
|
|
13334
|
+
}
|
|
13335
|
+
return null;
|
|
13336
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '85032d06cd0ac5dae9b504d423fceba3cd074861', class: "mt-20" }, hAsync("eds-pagination", { key: '8caf6f57960e222c04d45f57a5811cd7bd524f4c', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
13269
13337
|
}
|
|
13270
13338
|
get hostEl() { return getElement(this); }
|
|
13271
13339
|
static get watchers() { return {
|
|
13272
13340
|
"data": ["handleDataChange", "parseData"],
|
|
13273
|
-
"config": ["handleConfigChange"]
|
|
13341
|
+
"config": ["handleConfigChange"],
|
|
13342
|
+
"actions": ["handleActionsChange"]
|
|
13274
13343
|
}; }
|
|
13275
13344
|
static get style() { return EdsTableStyle0; }
|
|
13276
13345
|
static get cmpMeta() { return {
|
|
@@ -13285,6 +13354,10 @@ class EdsTable {
|
|
|
13285
13354
|
"searchEnabled": [4, "search-enabled"],
|
|
13286
13355
|
"hostWidth": [1, "host-width"],
|
|
13287
13356
|
"columnSize": [1, "column-size"],
|
|
13357
|
+
"actions": [1],
|
|
13358
|
+
"actionTemplate": [16],
|
|
13359
|
+
"parsedActions": [32],
|
|
13360
|
+
"dataColumns": [32],
|
|
13288
13361
|
"tbData": [32],
|
|
13289
13362
|
"columns": [32],
|
|
13290
13363
|
"currentPage": [32],
|
|
@@ -13864,7 +13937,7 @@ class EdsUser {
|
|
|
13864
13937
|
}
|
|
13865
13938
|
render() {
|
|
13866
13939
|
const user = this.parsedUser;
|
|
13867
|
-
return (hAsync("div", { key: '9e2a8da09c2c15080e3b1ccf5b8e0e93b679d34b', class: "block" }, hAsync("div", { key: 'ccc34b3c7b0ab8d515eebfa1962264365d20c788', class: "flex items-center" }, hAsync("eds-dropdown", { key: '
|
|
13940
|
+
return (hAsync("div", { key: '9e2a8da09c2c15080e3b1ccf5b8e0e93b679d34b', class: "block" }, hAsync("div", { key: 'ccc34b3c7b0ab8d515eebfa1962264365d20c788', class: "flex items-center" }, hAsync("eds-dropdown", { key: 'dc4920fd442baa9f13d9f2b9a21065b5184eba83', label: `Hi, ${user.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("div", { key: '0522db7fc229186c645665a4c9eeedc46fb5823b', class: "min-w-[280px] p-8" }, hAsync("div", { key: 'af7b9daec713d24f8a1415415d19cdf48905c0cb', class: "flex gap-x-16" }, hAsync("eds-avatar", { key: 'c3ea7307d9beb597fe93d3942b7724f8526298ad', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "grey" }), hAsync("div", { key: '7af823b5f38a3d7acf16c633471dcfe74bca5e3c', class: "max-w-full" }, user.name && hAsync("p", { key: '5973dfbac0efceeddb0dc211d9c502a1ad3b0dde', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && hAsync("p", { key: '5989927760ed2a2d1365661bbdc112a3a3d23bbf', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && hAsync("p", { key: 'ee36be95298c0c7a748537012d48a85884955904', class: "f-ui-03-light text-light mt-4" }, user.email))), hAsync("eds-block-break", { key: 'fb3ef5cad6e81f51983e54914412131c3bd4cbc2' }), hAsync("div", { key: 'e3784f3f4931378bf55d766d4a1cf5e24a75d462', class: "text-default flex w-full flex-col gap-y-8" }, hAsync("slot", { key: 'c0052bb56286d9a3fdc686c8407e105499a38084' })))))));
|
|
13868
13941
|
}
|
|
13869
13942
|
get hostEl() { return getElement(this); }
|
|
13870
13943
|
static get style() { return EdsUserStyle0; }
|