@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.mjs
CHANGED
|
@@ -2561,7 +2561,7 @@ const DocsReact = () => (hAsync("div", null,
|
|
|
2561
2561
|
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" }),
|
|
2562
2562
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
2563
2563
|
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."),
|
|
2564
|
-
hAsync("eds-code-block", { code: "\nimport React, { useMemo, useState } from 'react';\nimport {\n EdsHeader
|
|
2564
|
+
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" }))));
|
|
2565
2565
|
|
|
2566
2566
|
const DocsVue = () => (hAsync("div", null,
|
|
2567
2567
|
hAsync("h2", null, "Vue Wrappers"),
|
|
@@ -2933,10 +2933,10 @@ class EdsAccordion {
|
|
|
2933
2933
|
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2934
2934
|
*/
|
|
2935
2935
|
render() {
|
|
2936
|
-
return (hAsync("div", { key: '
|
|
2936
|
+
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
|
|
2937
2937
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2938
2938
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2939
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '
|
|
2939
|
+
${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' })))))));
|
|
2940
2940
|
}
|
|
2941
2941
|
get el() { return getElement(this); }
|
|
2942
2942
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3101,12 +3101,12 @@ class EdsAlert {
|
|
|
3101
3101
|
linkElement.dispatchEvent(event);
|
|
3102
3102
|
}
|
|
3103
3103
|
render() {
|
|
3104
|
-
return (hAsync("div", { key: '
|
|
3104
|
+
return (hAsync("div", { key: '5252aca583e87d8c3249c501e55368e340ef0d64', class: alertStyles({
|
|
3105
3105
|
intent: this.intent,
|
|
3106
3106
|
brd: this.brd,
|
|
3107
3107
|
direction: this.direction,
|
|
3108
3108
|
withBtn: this.withBtn
|
|
3109
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
3109
|
+
}), role: "alert" }, hAsync("p", { key: 'bb23c94e802ec5e287a2b8619277e83de173b498', class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn &&
|
|
3110
3110
|
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3111
3111
|
}
|
|
3112
3112
|
get el() { return getElement(this); }
|
|
@@ -3241,7 +3241,7 @@ class EdsAvatar {
|
|
|
3241
3241
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3242
3242
|
*/
|
|
3243
3243
|
render() {
|
|
3244
|
-
return (hAsync("div", { key: '
|
|
3244
|
+
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))));
|
|
3245
3245
|
}
|
|
3246
3246
|
static get style() { return EdsAvatarStyle0; }
|
|
3247
3247
|
static get cmpMeta() { return {
|
|
@@ -3272,7 +3272,7 @@ class EdsBlockBreak {
|
|
|
3272
3272
|
this.inverse = false;
|
|
3273
3273
|
}
|
|
3274
3274
|
render() {
|
|
3275
|
-
return hAsync("hr", { key: '
|
|
3275
|
+
return hAsync("hr", { key: 'b604a776cae7edeee189e00af6993b42b57203f0', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3276
3276
|
}
|
|
3277
3277
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3278
3278
|
static get cmpMeta() { return {
|
|
@@ -3432,7 +3432,7 @@ class EdsBreadcrumb {
|
|
|
3432
3432
|
*/
|
|
3433
3433
|
render() {
|
|
3434
3434
|
const itemsToRender = this.getTruncatedItems();
|
|
3435
|
-
return (hAsync("nav", { key: '
|
|
3435
|
+
return (hAsync("nav", { key: 'db769320b42e627fffd71676c1e0551646f1de70', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '6cef8ed43cabcee73cb4ad4fb26f809d0690c0ec', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3436
3436
|
const isLast = index === itemsToRender.length - 1;
|
|
3437
3437
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3438
3438
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3639,7 +3639,7 @@ class EdsButton {
|
|
|
3639
3639
|
iconSmall: this.iconSmall
|
|
3640
3640
|
});
|
|
3641
3641
|
const ElementType = this.elementType;
|
|
3642
|
-
return (hAsync(ElementType, { key: '
|
|
3642
|
+
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: {
|
|
3643
3643
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3644
3644
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3645
3645
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
@@ -3698,7 +3698,7 @@ class EdsCardDesc {
|
|
|
3698
3698
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3699
3699
|
}
|
|
3700
3700
|
render() {
|
|
3701
|
-
return (hAsync("p", { key: '
|
|
3701
|
+
return (hAsync("p", { key: '2421ea469339e3d56fc5c0ebbec213eeb1a2a9cf', class: "text-light f-ui-03-light" }, hAsync("span", { key: 'd024adda16a85bf2913803c06eb05af3b4af6bb9', class: this.getTruncateClass() }, this.description)));
|
|
3702
3702
|
}
|
|
3703
3703
|
static get style() { return EdsCardDescStyle0; }
|
|
3704
3704
|
static get cmpMeta() { return {
|
|
@@ -4017,7 +4017,7 @@ class EdsCardProject {
|
|
|
4017
4017
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4018
4018
|
].join(' ');
|
|
4019
4019
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4020
|
-
return (hAsync("article", { key: '
|
|
4020
|
+
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)))))));
|
|
4021
4021
|
}
|
|
4022
4022
|
get el() { return getElement(this); }
|
|
4023
4023
|
static get cmpMeta() { return {
|
|
@@ -4106,7 +4106,7 @@ class EdsCardTags {
|
|
|
4106
4106
|
this.tags = [];
|
|
4107
4107
|
}
|
|
4108
4108
|
render() {
|
|
4109
|
-
return (hAsync("div", { key: '
|
|
4109
|
+
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 })))));
|
|
4110
4110
|
}
|
|
4111
4111
|
static get style() { return EdsCardTagsStyle0; }
|
|
4112
4112
|
static get cmpMeta() { return {
|
|
@@ -4170,7 +4170,7 @@ class EdsCardTitle {
|
|
|
4170
4170
|
render() {
|
|
4171
4171
|
//const Tag = this.getTag();
|
|
4172
4172
|
const Heading = this.headingLevel;
|
|
4173
|
-
return (hAsync(Heading, { key: '
|
|
4173
|
+
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)));
|
|
4174
4174
|
}
|
|
4175
4175
|
static get style() { return EdsCardTitleStyle0; }
|
|
4176
4176
|
static get cmpMeta() { return {
|
|
@@ -4258,7 +4258,7 @@ class EdsCardTool {
|
|
|
4258
4258
|
});
|
|
4259
4259
|
}
|
|
4260
4260
|
render() {
|
|
4261
|
-
return (hAsync("article", { key: '
|
|
4261
|
+
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 }))))));
|
|
4262
4262
|
}
|
|
4263
4263
|
get el() { return getElement(this); }
|
|
4264
4264
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6770,7 +6770,7 @@ class EdsCodeBlock {
|
|
|
6770
6770
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6771
6771
|
}
|
|
6772
6772
|
render() {
|
|
6773
|
-
return (hAsync("div", { key: '
|
|
6773
|
+
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() })))));
|
|
6774
6774
|
}
|
|
6775
6775
|
get el() { return getElement(this); }
|
|
6776
6776
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6954,14 +6954,14 @@ class EdsDropdown {
|
|
|
6954
6954
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6955
6955
|
*/
|
|
6956
6956
|
render() {
|
|
6957
|
-
return (hAsync("div", { key: '
|
|
6957
|
+
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: {
|
|
6958
6958
|
'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,
|
|
6959
6959
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6960
6960
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6961
6961
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6962
6962
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6963
6963
|
'rounded-lg': this.rounded
|
|
6964
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6964
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '6a7ba94045d366d20c6618845692d977f20437e3' }))));
|
|
6965
6965
|
}
|
|
6966
6966
|
get host() { return getElement(this); }
|
|
6967
6967
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7114,9 +7114,9 @@ class EdsFooter {
|
|
|
7114
7114
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7115
7115
|
*/
|
|
7116
7116
|
render() {
|
|
7117
|
-
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: '
|
|
7117
|
+
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: () => {
|
|
7118
7118
|
this.toggleCookiesConsent();
|
|
7119
|
-
} })) : null))), hAsync("div", { key: '
|
|
7119
|
+
} })) : 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)))));
|
|
7120
7120
|
}
|
|
7121
7121
|
static get style() { return EdsFooterStyle0; }
|
|
7122
7122
|
static get cmpMeta() { return {
|
|
@@ -7315,6 +7315,9 @@ class EdsForm {
|
|
|
7315
7315
|
this.errors = {};
|
|
7316
7316
|
this.parsedFields = [];
|
|
7317
7317
|
}
|
|
7318
|
+
async setData(newData) {
|
|
7319
|
+
this.populateFormWithInitData(newData);
|
|
7320
|
+
}
|
|
7318
7321
|
componentWillLoad() {
|
|
7319
7322
|
this.parseFields(this.fields);
|
|
7320
7323
|
// Emit context for each eds-link element after the component is fully loaded
|
|
@@ -7487,6 +7490,14 @@ class EdsForm {
|
|
|
7487
7490
|
// Update the errors state and the hasError flag.
|
|
7488
7491
|
this.errors = newErrors;
|
|
7489
7492
|
this.hasError = Object.keys(newErrors).length > 0;
|
|
7493
|
+
// Emit the updated form state.
|
|
7494
|
+
this.form.emit({
|
|
7495
|
+
event: 'input',
|
|
7496
|
+
field: field.name,
|
|
7497
|
+
value: target.type === 'checkbox' ? this.values[field.name] : target.value,
|
|
7498
|
+
message: `${field.name} updated`
|
|
7499
|
+
//data: this.makeFormData()
|
|
7500
|
+
});
|
|
7490
7501
|
}
|
|
7491
7502
|
handleSubmit() {
|
|
7492
7503
|
var _a, _b;
|
|
@@ -7547,13 +7558,13 @@ class EdsForm {
|
|
|
7547
7558
|
render() {
|
|
7548
7559
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7549
7560
|
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7550
|
-
return (hAsync("form", { key: '
|
|
7561
|
+
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) => {
|
|
7551
7562
|
var _a, _b;
|
|
7552
7563
|
if (!this.isFieldVisible(field)) {
|
|
7553
7564
|
return null;
|
|
7554
7565
|
}
|
|
7555
7566
|
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 }));
|
|
7556
|
-
})), this.formBtn && (hAsync("div", { key: '
|
|
7567
|
+
})), 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() })))));
|
|
7557
7568
|
}
|
|
7558
7569
|
get el() { return getElement(this); }
|
|
7559
7570
|
static get watchers() { return {
|
|
@@ -7576,6 +7587,7 @@ class EdsForm {
|
|
|
7576
7587
|
"hasError": [32],
|
|
7577
7588
|
"errors": [32],
|
|
7578
7589
|
"parsedFields": [32],
|
|
7590
|
+
"setData": [64],
|
|
7579
7591
|
"getData": [64]
|
|
7580
7592
|
},
|
|
7581
7593
|
"$listeners$": undefined,
|
|
@@ -7837,7 +7849,7 @@ class EdsGauge {
|
|
|
7837
7849
|
const textStyle = {
|
|
7838
7850
|
fontSize: `${fontSize}px`
|
|
7839
7851
|
};
|
|
7840
|
-
return (hAsync("div", { key: '
|
|
7852
|
+
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))));
|
|
7841
7853
|
}
|
|
7842
7854
|
static get style() { return EdsGaugeStyle0; }
|
|
7843
7855
|
static get cmpMeta() { return {
|
|
@@ -9918,7 +9930,7 @@ class EdsIconArrowDiagonal {
|
|
|
9918
9930
|
this.class = '';
|
|
9919
9931
|
}
|
|
9920
9932
|
render() {
|
|
9921
|
-
return hAsync("span", { key: '
|
|
9933
|
+
return hAsync("span", { key: 'd178d36fd0888a40da0873bfd8abe862770e06e9', class: this.class, innerHTML: arrowDiagonal });
|
|
9922
9934
|
}
|
|
9923
9935
|
static get cmpMeta() { return {
|
|
9924
9936
|
"$flags$": 0,
|
|
@@ -9941,7 +9953,7 @@ class EdsIconArrowRight {
|
|
|
9941
9953
|
this.class = '';
|
|
9942
9954
|
}
|
|
9943
9955
|
render() {
|
|
9944
|
-
return hAsync("span", { key: '
|
|
9956
|
+
return hAsync("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
|
|
9945
9957
|
}
|
|
9946
9958
|
static get cmpMeta() { return {
|
|
9947
9959
|
"$flags$": 0,
|
|
@@ -9964,7 +9976,7 @@ class EdsIconBluesky {
|
|
|
9964
9976
|
this.class = '';
|
|
9965
9977
|
}
|
|
9966
9978
|
render() {
|
|
9967
|
-
return hAsync("span", { key: '
|
|
9979
|
+
return hAsync("span", { key: '68917ac759cd684a6f3f3f67cb174d7291841070', class: this.class, innerHTML: bluesky });
|
|
9968
9980
|
}
|
|
9969
9981
|
static get cmpMeta() { return {
|
|
9970
9982
|
"$flags$": 0,
|
|
@@ -9987,7 +9999,7 @@ class EdsIconBookmark {
|
|
|
9987
9999
|
this.class = '';
|
|
9988
10000
|
}
|
|
9989
10001
|
render() {
|
|
9990
|
-
return hAsync("span", { key: '
|
|
10002
|
+
return hAsync("span", { key: '61dd6e752db1c28d082d80aba71267f4e971492d', class: this.class, innerHTML: bookmark });
|
|
9991
10003
|
}
|
|
9992
10004
|
static get cmpMeta() { return {
|
|
9993
10005
|
"$flags$": 0,
|
|
@@ -10010,7 +10022,7 @@ class EdsIconChevronDown {
|
|
|
10010
10022
|
this.class = '';
|
|
10011
10023
|
}
|
|
10012
10024
|
render() {
|
|
10013
|
-
return hAsync("span", { key: '
|
|
10025
|
+
return hAsync("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
|
|
10014
10026
|
}
|
|
10015
10027
|
static get cmpMeta() { return {
|
|
10016
10028
|
"$flags$": 0,
|
|
@@ -10033,7 +10045,7 @@ class EdsIconChevronLeft {
|
|
|
10033
10045
|
this.class = '';
|
|
10034
10046
|
}
|
|
10035
10047
|
render() {
|
|
10036
|
-
return hAsync("span", { key: '
|
|
10048
|
+
return hAsync("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
|
|
10037
10049
|
}
|
|
10038
10050
|
static get cmpMeta() { return {
|
|
10039
10051
|
"$flags$": 0,
|
|
@@ -10056,7 +10068,7 @@ class EdsIconChevronRight {
|
|
|
10056
10068
|
this.class = '';
|
|
10057
10069
|
}
|
|
10058
10070
|
render() {
|
|
10059
|
-
return hAsync("span", { key: '
|
|
10071
|
+
return hAsync("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
|
|
10060
10072
|
}
|
|
10061
10073
|
static get cmpMeta() { return {
|
|
10062
10074
|
"$flags$": 0,
|
|
@@ -10079,7 +10091,7 @@ class EdsIconChevronUp {
|
|
|
10079
10091
|
this.class = '';
|
|
10080
10092
|
}
|
|
10081
10093
|
render() {
|
|
10082
|
-
return hAsync("span", { key: '
|
|
10094
|
+
return hAsync("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
|
|
10083
10095
|
}
|
|
10084
10096
|
static get cmpMeta() { return {
|
|
10085
10097
|
"$flags$": 0,
|
|
@@ -10102,7 +10114,7 @@ class EdsIconClose {
|
|
|
10102
10114
|
this.class = '';
|
|
10103
10115
|
}
|
|
10104
10116
|
render() {
|
|
10105
|
-
return hAsync("span", { key: '
|
|
10117
|
+
return hAsync("span", { key: '8e4dedef0fe684fdd6078db8005661e49207da55', class: this.class, innerHTML: close });
|
|
10106
10118
|
}
|
|
10107
10119
|
static get cmpMeta() { return {
|
|
10108
10120
|
"$flags$": 0,
|
|
@@ -10125,7 +10137,7 @@ class EdsIconCopy {
|
|
|
10125
10137
|
this.class = '';
|
|
10126
10138
|
}
|
|
10127
10139
|
render() {
|
|
10128
|
-
return hAsync("span", { key: '
|
|
10140
|
+
return hAsync("span", { key: 'ff014a9761d8380a9fd8c97d3dd483b8d6fc786c', class: this.class, innerHTML: copy });
|
|
10129
10141
|
}
|
|
10130
10142
|
static get cmpMeta() { return {
|
|
10131
10143
|
"$flags$": 0,
|
|
@@ -10148,7 +10160,7 @@ class EdsIconEu {
|
|
|
10148
10160
|
this.class = '';
|
|
10149
10161
|
}
|
|
10150
10162
|
render() {
|
|
10151
|
-
return hAsync("span", { key: '
|
|
10163
|
+
return hAsync("span", { key: '3888f0338df2496c334d95dbcb52a0e39906362d', class: this.class, innerHTML: euSvg });
|
|
10152
10164
|
}
|
|
10153
10165
|
static get cmpMeta() { return {
|
|
10154
10166
|
"$flags$": 0,
|
|
@@ -10171,7 +10183,7 @@ class EdsIconExternal {
|
|
|
10171
10183
|
this.class = '';
|
|
10172
10184
|
}
|
|
10173
10185
|
render() {
|
|
10174
|
-
return hAsync("span", { key: '
|
|
10186
|
+
return hAsync("span", { key: '58d51f84a7b6326ef117a905f2c50d4fff6369c5', class: this.class, innerHTML: arrowDiagonal });
|
|
10175
10187
|
}
|
|
10176
10188
|
static get cmpMeta() { return {
|
|
10177
10189
|
"$flags$": 0,
|
|
@@ -10194,7 +10206,7 @@ class EdsIconFacebook {
|
|
|
10194
10206
|
this.class = '';
|
|
10195
10207
|
}
|
|
10196
10208
|
render() {
|
|
10197
|
-
return hAsync("span", { key: '
|
|
10209
|
+
return hAsync("span", { key: '3ea80799436c93b1c02ad177bd48910409aebf51', class: this.class, innerHTML: facebook });
|
|
10198
10210
|
}
|
|
10199
10211
|
static get cmpMeta() { return {
|
|
10200
10212
|
"$flags$": 0,
|
|
@@ -10217,7 +10229,7 @@ class EdsIconGitlab {
|
|
|
10217
10229
|
this.class = '';
|
|
10218
10230
|
}
|
|
10219
10231
|
render() {
|
|
10220
|
-
return hAsync("span", { key: '
|
|
10232
|
+
return hAsync("span", { key: 'a2f423ed9227463e27c0c698e6b4bba44cdc6263', class: this.class, innerHTML: gitlabBlack });
|
|
10221
10233
|
}
|
|
10222
10234
|
static get cmpMeta() { return {
|
|
10223
10235
|
"$flags$": 0,
|
|
@@ -10240,7 +10252,7 @@ class EdsIconLinkedin {
|
|
|
10240
10252
|
this.class = '';
|
|
10241
10253
|
}
|
|
10242
10254
|
render() {
|
|
10243
|
-
return hAsync("span", { key: '
|
|
10255
|
+
return hAsync("span", { key: '88852ca054a7e637efc7fe5b01f343a9b1798e41', class: this.class, innerHTML: linkedin });
|
|
10244
10256
|
}
|
|
10245
10257
|
static get cmpMeta() { return {
|
|
10246
10258
|
"$flags$": 0,
|
|
@@ -10263,7 +10275,7 @@ class EdsIconLoader {
|
|
|
10263
10275
|
this.class = '';
|
|
10264
10276
|
}
|
|
10265
10277
|
render() {
|
|
10266
|
-
return hAsync("span", { key: '
|
|
10278
|
+
return hAsync("span", { key: '283c8842f0f755074521fdcbae46969d87b86312', class: this.class, innerHTML: loader });
|
|
10267
10279
|
}
|
|
10268
10280
|
static get cmpMeta() { return {
|
|
10269
10281
|
"$flags$": 0,
|
|
@@ -10286,7 +10298,7 @@ class EdsIconMastodon {
|
|
|
10286
10298
|
this.class = '';
|
|
10287
10299
|
}
|
|
10288
10300
|
render() {
|
|
10289
|
-
return hAsync("span", { key: '
|
|
10301
|
+
return hAsync("span", { key: '5a5a90094c1f974dc7932654e97de04975e675bb', class: this.class, innerHTML: mastodon });
|
|
10290
10302
|
}
|
|
10291
10303
|
static get cmpMeta() { return {
|
|
10292
10304
|
"$flags$": 0,
|
|
@@ -10309,7 +10321,7 @@ class EdsIconMenu {
|
|
|
10309
10321
|
this.class = '';
|
|
10310
10322
|
}
|
|
10311
10323
|
render() {
|
|
10312
|
-
return hAsync("span", { key: '
|
|
10324
|
+
return hAsync("span", { key: 'dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0', class: this.class, innerHTML: menu });
|
|
10313
10325
|
}
|
|
10314
10326
|
static get cmpMeta() { return {
|
|
10315
10327
|
"$flags$": 0,
|
|
@@ -10332,7 +10344,7 @@ class EdsIconMinus {
|
|
|
10332
10344
|
this.class = '';
|
|
10333
10345
|
}
|
|
10334
10346
|
render() {
|
|
10335
|
-
return hAsync("span", { key: '
|
|
10347
|
+
return hAsync("span", { key: 'e76f56aaba4a67096e6314e61d53bc2512941552', class: this.class, innerHTML: minus });
|
|
10336
10348
|
}
|
|
10337
10349
|
static get cmpMeta() { return {
|
|
10338
10350
|
"$flags$": 0,
|
|
@@ -10355,7 +10367,7 @@ class EdsIconMore {
|
|
|
10355
10367
|
this.class = '';
|
|
10356
10368
|
}
|
|
10357
10369
|
render() {
|
|
10358
|
-
return hAsync("span", { key: '
|
|
10370
|
+
return hAsync("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: more });
|
|
10359
10371
|
}
|
|
10360
10372
|
static get cmpMeta() { return {
|
|
10361
10373
|
"$flags$": 0,
|
|
@@ -10378,7 +10390,7 @@ class EdsIconPaper {
|
|
|
10378
10390
|
this.class = '';
|
|
10379
10391
|
}
|
|
10380
10392
|
render() {
|
|
10381
|
-
return hAsync("span", { key: '
|
|
10393
|
+
return hAsync("span", { key: 'abc728a23571f7cc24f6d9d1dc5c72c397983aa3', class: this.class, innerHTML: paper });
|
|
10382
10394
|
}
|
|
10383
10395
|
static get cmpMeta() { return {
|
|
10384
10396
|
"$flags$": 0,
|
|
@@ -10401,7 +10413,7 @@ class EdsIconPlus {
|
|
|
10401
10413
|
this.class = '';
|
|
10402
10414
|
}
|
|
10403
10415
|
render() {
|
|
10404
|
-
return hAsync("span", { key: '
|
|
10416
|
+
return hAsync("span", { key: '35d8e069fbb1bdb01ae6f068c28edd19d299c7c3', class: this.class, innerHTML: plus });
|
|
10405
10417
|
}
|
|
10406
10418
|
static get cmpMeta() { return {
|
|
10407
10419
|
"$flags$": 0,
|
|
@@ -10424,7 +10436,7 @@ class EdsIconPortal {
|
|
|
10424
10436
|
this.class = '';
|
|
10425
10437
|
}
|
|
10426
10438
|
render() {
|
|
10427
|
-
return hAsync("span", { key: '
|
|
10439
|
+
return hAsync("span", { key: '9383784da3e52d22395288f8eba5b6f4ee826aa5', class: this.class, innerHTML: portal });
|
|
10428
10440
|
}
|
|
10429
10441
|
static get cmpMeta() { return {
|
|
10430
10442
|
"$flags$": 0,
|
|
@@ -10447,7 +10459,7 @@ class EdsIconPrivate {
|
|
|
10447
10459
|
this.class = '';
|
|
10448
10460
|
}
|
|
10449
10461
|
render() {
|
|
10450
|
-
return hAsync("span", { key: '
|
|
10462
|
+
return hAsync("span", { key: '9466d1ce37e58f512579d63ec5049cc58e8b9836', class: this.class, innerHTML: privat });
|
|
10451
10463
|
}
|
|
10452
10464
|
static get cmpMeta() { return {
|
|
10453
10465
|
"$flags$": 0,
|
|
@@ -10470,7 +10482,7 @@ class EdsIconPublic {
|
|
|
10470
10482
|
this.class = '';
|
|
10471
10483
|
}
|
|
10472
10484
|
render() {
|
|
10473
|
-
return hAsync("span", { key: '
|
|
10485
|
+
return hAsync("span", { key: 'e4815b72c160ae98d66dbfa877f82f1d2f7c50b3', class: this.class, innerHTML: pub });
|
|
10474
10486
|
}
|
|
10475
10487
|
static get cmpMeta() { return {
|
|
10476
10488
|
"$flags$": 0,
|
|
@@ -10493,7 +10505,7 @@ class EdsIconSearch {
|
|
|
10493
10505
|
this.class = '';
|
|
10494
10506
|
}
|
|
10495
10507
|
render() {
|
|
10496
|
-
return hAsync("span", { key: '
|
|
10508
|
+
return hAsync("span", { key: '6a35ea0c0de4916a867f760eb058a3cbb1bc218e', class: this.class, innerHTML: search });
|
|
10497
10509
|
}
|
|
10498
10510
|
static get cmpMeta() { return {
|
|
10499
10511
|
"$flags$": 0,
|
|
@@ -10516,7 +10528,7 @@ class EdsIconStar {
|
|
|
10516
10528
|
this.class = '';
|
|
10517
10529
|
}
|
|
10518
10530
|
render() {
|
|
10519
|
-
return hAsync("span", { key: '
|
|
10531
|
+
return hAsync("span", { key: 'f7ebc68658fcf8c0df627871481cce90cd7800fb', class: this.class, innerHTML: star });
|
|
10520
10532
|
}
|
|
10521
10533
|
static get cmpMeta() { return {
|
|
10522
10534
|
"$flags$": 0,
|
|
@@ -10539,7 +10551,7 @@ class EdsIconSuccess {
|
|
|
10539
10551
|
this.class = '';
|
|
10540
10552
|
}
|
|
10541
10553
|
render() {
|
|
10542
|
-
return hAsync("span", { key: '
|
|
10554
|
+
return hAsync("span", { key: 'd78b06493302958306d408d823f4a7703d9b9adc', class: this.class, innerHTML: success });
|
|
10543
10555
|
}
|
|
10544
10556
|
static get cmpMeta() { return {
|
|
10545
10557
|
"$flags$": 0,
|
|
@@ -10562,7 +10574,7 @@ class EdsIconThumbsDown {
|
|
|
10562
10574
|
this.class = '';
|
|
10563
10575
|
}
|
|
10564
10576
|
render() {
|
|
10565
|
-
return hAsync("span", { key: '
|
|
10577
|
+
return hAsync("span", { key: '84e6d8cff80004a650c6d0fc6b9702cf1ca85ba2', class: this.class, innerHTML: thumbsDown });
|
|
10566
10578
|
}
|
|
10567
10579
|
static get cmpMeta() { return {
|
|
10568
10580
|
"$flags$": 0,
|
|
@@ -10585,7 +10597,7 @@ class EdsIconThumbsUp {
|
|
|
10585
10597
|
this.class = '';
|
|
10586
10598
|
}
|
|
10587
10599
|
render() {
|
|
10588
|
-
return hAsync("span", { key: '
|
|
10600
|
+
return hAsync("span", { key: '5f5198ad92684dc173d603499b485e7d0ca8811b', class: this.class, innerHTML: thumbsUp });
|
|
10589
10601
|
}
|
|
10590
10602
|
static get cmpMeta() { return {
|
|
10591
10603
|
"$flags$": 0,
|
|
@@ -10608,7 +10620,7 @@ class EdsIconTutorial {
|
|
|
10608
10620
|
this.class = '';
|
|
10609
10621
|
}
|
|
10610
10622
|
render() {
|
|
10611
|
-
return hAsync("span", { key: '
|
|
10623
|
+
return hAsync("span", { key: '8be08569144889cca6f801cdd31e4cc31fdc11e5', class: this.class, innerHTML: tutorial });
|
|
10612
10624
|
}
|
|
10613
10625
|
static get cmpMeta() { return {
|
|
10614
10626
|
"$flags$": 0,
|
|
@@ -10631,7 +10643,7 @@ class EdsIconTwitter {
|
|
|
10631
10643
|
this.class = '';
|
|
10632
10644
|
}
|
|
10633
10645
|
render() {
|
|
10634
|
-
return hAsync("span", { key: '
|
|
10646
|
+
return hAsync("span", { key: 'c2ee643b5da517a53bd97ec6263161927ad229a7', class: this.class, innerHTML: twitter });
|
|
10635
10647
|
}
|
|
10636
10648
|
static get cmpMeta() { return {
|
|
10637
10649
|
"$flags$": 0,
|
|
@@ -10654,7 +10666,7 @@ class EdsIconUnknown {
|
|
|
10654
10666
|
this.class = '';
|
|
10655
10667
|
}
|
|
10656
10668
|
render() {
|
|
10657
|
-
return hAsync("span", { key: '
|
|
10669
|
+
return hAsync("span", { key: '449cd62f697607ebb17bed06835ee9529d7e8999', class: this.class, innerHTML: unknown });
|
|
10658
10670
|
}
|
|
10659
10671
|
static get cmpMeta() { return {
|
|
10660
10672
|
"$flags$": 0,
|
|
@@ -10677,7 +10689,7 @@ class EdsIconUpdown {
|
|
|
10677
10689
|
this.class = '';
|
|
10678
10690
|
}
|
|
10679
10691
|
render() {
|
|
10680
|
-
return hAsync("span", { key: '
|
|
10692
|
+
return hAsync("span", { key: '5b0e914205c9f3fb5e216e0ccb16e350a4449c02', class: this.class, innerHTML: upDonw });
|
|
10681
10693
|
}
|
|
10682
10694
|
static get cmpMeta() { return {
|
|
10683
10695
|
"$flags$": 0,
|
|
@@ -10700,7 +10712,7 @@ class EdsIconUser {
|
|
|
10700
10712
|
this.class = '';
|
|
10701
10713
|
}
|
|
10702
10714
|
render() {
|
|
10703
|
-
return hAsync("span", { key: '
|
|
10715
|
+
return hAsync("span", { key: '297e73664320032b2f78dd3c43aa0852545c0723', class: this.class, innerHTML: user });
|
|
10704
10716
|
}
|
|
10705
10717
|
static get cmpMeta() { return {
|
|
10706
10718
|
"$flags$": 0,
|
|
@@ -10779,7 +10791,7 @@ class EdsIconYoutube {
|
|
|
10779
10791
|
this.class = '';
|
|
10780
10792
|
}
|
|
10781
10793
|
render() {
|
|
10782
|
-
return hAsync("span", { key: '
|
|
10794
|
+
return hAsync("span", { key: '0a6abd6b62e24c07b4338f0f1f6febbec876791f', class: this.class, innerHTML: youtube });
|
|
10783
10795
|
}
|
|
10784
10796
|
static get cmpMeta() { return {
|
|
10785
10797
|
"$flags$": 0,
|
|
@@ -10855,10 +10867,10 @@ class EdsImg {
|
|
|
10855
10867
|
imgOpts['loading'] = 'lazy';
|
|
10856
10868
|
imgOpts['decoding'] = 'async';
|
|
10857
10869
|
}
|
|
10858
|
-
return (hAsync("div", { key: '
|
|
10870
|
+
return (hAsync("div", { key: '13ed3aa346c99321c609e49ce045b6361921350f', class: {
|
|
10859
10871
|
'items-center justify-center': true,
|
|
10860
10872
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
10861
|
-
} }, hAsync("picture", { key: '
|
|
10873
|
+
} }, 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: {
|
|
10862
10874
|
'effect-opacity object-cover object-center': true,
|
|
10863
10875
|
'opacity-100': this.loaded,
|
|
10864
10876
|
'opacity-0': !this.loaded
|
|
@@ -10937,12 +10949,12 @@ class EdsInput {
|
|
|
10937
10949
|
render() {
|
|
10938
10950
|
const withIcon = !!this.icon;
|
|
10939
10951
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
10940
|
-
return (hAsync("div", { key: '
|
|
10952
|
+
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: `
|
|
10941
10953
|
${this.extraClass || ''}
|
|
10942
10954
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
10943
10955
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
10944
10956
|
${this.error ? 'input-error' : ''}
|
|
10945
|
-
`, "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: '
|
|
10957
|
+
`, "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 }))));
|
|
10946
10958
|
}
|
|
10947
10959
|
get el() { return getElement(this); }
|
|
10948
10960
|
static get watchers() { return {
|
|
@@ -11074,7 +11086,7 @@ class EdsInputField {
|
|
|
11074
11086
|
icon: this.icon,
|
|
11075
11087
|
checked: this.checked
|
|
11076
11088
|
};
|
|
11077
|
-
return (hAsync("div", { key: '
|
|
11089
|
+
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' ? ((() => {
|
|
11078
11090
|
var _a, _b, _c;
|
|
11079
11091
|
const rangeProps = {
|
|
11080
11092
|
name: inputOpts.name,
|
|
@@ -11087,7 +11099,7 @@ class EdsInputField {
|
|
|
11087
11099
|
const opt = this.parsedOptions;
|
|
11088
11100
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11089
11101
|
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 })));
|
|
11090
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '
|
|
11102
|
+
})()) : (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 })));
|
|
11091
11103
|
}
|
|
11092
11104
|
get hostEl() { return getElement(this); }
|
|
11093
11105
|
static get style() { return EdsInputFieldStyle0; }
|
|
@@ -11135,7 +11147,7 @@ class EdsInputFooter {
|
|
|
11135
11147
|
this.link = undefined;
|
|
11136
11148
|
}
|
|
11137
11149
|
render() {
|
|
11138
|
-
return (hAsync("div", { key: '
|
|
11150
|
+
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))));
|
|
11139
11151
|
}
|
|
11140
11152
|
static get cmpMeta() { return {
|
|
11141
11153
|
"$flags$": 0,
|
|
@@ -11165,7 +11177,7 @@ class EdsInputLabel {
|
|
|
11165
11177
|
this.disabled = false;
|
|
11166
11178
|
}
|
|
11167
11179
|
render() {
|
|
11168
|
-
return (hAsync("label", { key: '
|
|
11180
|
+
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")))));
|
|
11169
11181
|
}
|
|
11170
11182
|
static get cmpMeta() { return {
|
|
11171
11183
|
"$flags$": 0,
|
|
@@ -11230,7 +11242,7 @@ class EdsInputRange {
|
|
|
11230
11242
|
return this.inputElement;
|
|
11231
11243
|
}
|
|
11232
11244
|
render() {
|
|
11233
|
-
return (hAsync("div", { key: '
|
|
11245
|
+
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)));
|
|
11234
11246
|
}
|
|
11235
11247
|
get el() { return getElement(this); }
|
|
11236
11248
|
static get watchers() { return {
|
|
@@ -11325,7 +11337,7 @@ class EdsInputSearch {
|
|
|
11325
11337
|
return this.inputElement;
|
|
11326
11338
|
}
|
|
11327
11339
|
render() {
|
|
11328
|
-
return (hAsync("div", { key: '
|
|
11340
|
+
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}`,
|
|
11329
11341
|
//onInput={this.onInput}
|
|
11330
11342
|
onChange: this.onChange })));
|
|
11331
11343
|
}
|
|
@@ -11379,12 +11391,12 @@ class EdsInputSelect {
|
|
|
11379
11391
|
const selectId = this.inputId || this.name;
|
|
11380
11392
|
const placeholderText = this.placeholder || `Please select ${this.name}`;
|
|
11381
11393
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
11382
|
-
return (hAsync("div", { key: '
|
|
11394
|
+
return (hAsync("div", { key: '80cbdab87f5baa21df5edc857685c3af4dee3a58', class: "relative" }, hAsync("select", { key: '4e8f84fd9dbc63df7981898cadc24450f48aa92a', id: selectId, name: this.name, class: {
|
|
11383
11395
|
input: true,
|
|
11384
11396
|
'input-error': this.error,
|
|
11385
11397
|
'px-4': true,
|
|
11386
11398
|
'py-2': true
|
|
11387
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
11399
|
+
}, "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" }))));
|
|
11388
11400
|
}
|
|
11389
11401
|
static get cmpMeta() { return {
|
|
11390
11402
|
"$flags$": 0,
|
|
@@ -11625,7 +11637,7 @@ class EdsLink {
|
|
|
11625
11637
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11626
11638
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11627
11639
|
: '';
|
|
11628
|
-
return (hAsync(ComponentType, { key: '
|
|
11640
|
+
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())));
|
|
11629
11641
|
}
|
|
11630
11642
|
get el() { return getElement(this); }
|
|
11631
11643
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11733,7 +11745,7 @@ class EdsLogo {
|
|
|
11733
11745
|
}
|
|
11734
11746
|
render() {
|
|
11735
11747
|
const logoContent = this.getLogo();
|
|
11736
|
-
return (hAsync("a", { key: '
|
|
11748
|
+
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 })));
|
|
11737
11749
|
}
|
|
11738
11750
|
get el() { return getElement(this); }
|
|
11739
11751
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12008,9 +12020,9 @@ class EdsModal {
|
|
|
12008
12020
|
render() {
|
|
12009
12021
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12010
12022
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12011
|
-
return (hAsync("div", { key: '
|
|
12023
|
+
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
|
|
12012
12024
|
,
|
|
12013
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12025
|
+
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' })))));
|
|
12014
12026
|
}
|
|
12015
12027
|
get el() { return getElement(this); }
|
|
12016
12028
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12211,7 +12223,7 @@ class EdsPagination {
|
|
|
12211
12223
|
}
|
|
12212
12224
|
}
|
|
12213
12225
|
render() {
|
|
12214
|
-
return (hAsync("div", { key: '
|
|
12226
|
+
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'
|
|
12215
12227
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
12216
12228
|
: this.isFirstPage()
|
|
12217
12229
|
? '#'
|
|
@@ -12430,7 +12442,7 @@ class EdsProgressBar {
|
|
|
12430
12442
|
]
|
|
12431
12443
|
.filter(Boolean)
|
|
12432
12444
|
.join(' ');
|
|
12433
|
-
return (hAsync("div", { key: '
|
|
12445
|
+
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, "%"))));
|
|
12434
12446
|
}
|
|
12435
12447
|
static get style() { return EdsProgressBarStyle0; }
|
|
12436
12448
|
static get cmpMeta() { return {
|
|
@@ -12492,7 +12504,7 @@ class EdsRating {
|
|
|
12492
12504
|
this.rating.emit(rating);
|
|
12493
12505
|
}
|
|
12494
12506
|
render() {
|
|
12495
|
-
return (hAsync("div", { key: '
|
|
12507
|
+
return (hAsync("div", { key: '6686575f0b8b9017bf19b105208f6adbfd46dabd', role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (_, index) => {
|
|
12496
12508
|
const starRating = index + 1;
|
|
12497
12509
|
const isSelected = starRating <= this.selectedRating;
|
|
12498
12510
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -12541,7 +12553,7 @@ class EdsSectionCore {
|
|
|
12541
12553
|
}
|
|
12542
12554
|
render() {
|
|
12543
12555
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
12544
|
-
return (hAsync(TagType, { key: '
|
|
12556
|
+
return (hAsync(TagType, { key: '43f8d599041ae0c9761988fdec4872ec4a8ca037' }, hAsync("eds-section-heading", { key: 'd120ddd851a0485e2edb43e2a6f508a661f35c07', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '9818b82a3eebcb741f5bccc9781e4212f2c5fa3d' })));
|
|
12545
12557
|
}
|
|
12546
12558
|
static get style() { return EdsSectionCoreStyle0; }
|
|
12547
12559
|
static get cmpMeta() { return {
|
|
@@ -12596,12 +12608,12 @@ class EdsSectionHeading {
|
|
|
12596
12608
|
render() {
|
|
12597
12609
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
12598
12610
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
12599
|
-
return (hAsync(TagType, { key: '
|
|
12611
|
+
return (hAsync(TagType, { key: '740ed8b3208e07091a1f4c79888e172dec33773a', class: {
|
|
12600
12612
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
12601
12613
|
container: this.withContainer,
|
|
12602
12614
|
'pt-48': this.spacingLarge,
|
|
12603
12615
|
'pt-28': !this.spacingLarge
|
|
12604
|
-
} }, hAsync(HeadingTag, { key: '
|
|
12616
|
+
} }, hAsync(HeadingTag, { key: '4d4ceef35b7cb06bfbff2fdae47e66dd7ac10c49', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
12605
12617
|
}
|
|
12606
12618
|
static get cmpMeta() { return {
|
|
12607
12619
|
"$flags$": 0,
|
|
@@ -12734,7 +12746,7 @@ class EdsSpinner {
|
|
|
12734
12746
|
alignItems: 'center',
|
|
12735
12747
|
justifyContent: 'center'
|
|
12736
12748
|
};
|
|
12737
|
-
return (hAsync(Host, { key: '
|
|
12749
|
+
return (hAsync(Host, { key: 'f687ccbbb05840b7699202f3758ec4a8d0de1bc4' }, hAsync("div", { key: '4bb5c697f1ccd90d2d65d519fcfb3ec809b106ac', class: "spinner-overlay", style: overlayStyle }, hAsync("span", { key: 'a07722d9ee9c94d03d9766a4b297a498998c00be', class: "spinner", style: spinnerStyle }))));
|
|
12738
12750
|
}
|
|
12739
12751
|
static get style() { return EdsSpinnerStyle0; }
|
|
12740
12752
|
static get cmpMeta() { return {
|
|
@@ -12898,10 +12910,10 @@ class EdsSteps {
|
|
|
12898
12910
|
render() {
|
|
12899
12911
|
const steps = this.parsedSteps;
|
|
12900
12912
|
if (this.type === 'linear') {
|
|
12901
|
-
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:
|
|
12913
|
+
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' })))))))));
|
|
12902
12914
|
}
|
|
12903
12915
|
// Static mode: show all steps with their content, no navigation buttons.
|
|
12904
|
-
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:
|
|
12916
|
+
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 }))))))));
|
|
12905
12917
|
}
|
|
12906
12918
|
get el() { return getElement(this); }
|
|
12907
12919
|
static get watchers() { return {
|
|
@@ -12922,7 +12934,7 @@ class EdsSteps {
|
|
|
12922
12934
|
}; }
|
|
12923
12935
|
}
|
|
12924
12936
|
|
|
12925
|
-
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}";
|
|
12937
|
+
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))}";
|
|
12926
12938
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
12927
12939
|
|
|
12928
12940
|
class EdsStepsV2 {
|
|
@@ -12944,6 +12956,7 @@ class EdsStepsV2 {
|
|
|
12944
12956
|
this.steps = [];
|
|
12945
12957
|
this.type = 'static';
|
|
12946
12958
|
this.imageSrc = undefined;
|
|
12959
|
+
this.imageWidth = undefined;
|
|
12947
12960
|
this.bg = true;
|
|
12948
12961
|
this.message = undefined;
|
|
12949
12962
|
this.activeStep = 0;
|
|
@@ -12999,9 +13012,9 @@ class EdsStepsV2 {
|
|
|
12999
13012
|
}
|
|
13000
13013
|
render() {
|
|
13001
13014
|
const steps = this.parsedSteps;
|
|
13002
|
-
return (hAsync("div", { key: '
|
|
13015
|
+
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' })))))))) : (
|
|
13003
13016
|
// Static mode: show all steps with their content.
|
|
13004
|
-
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:
|
|
13017
|
+
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 })))))))))));
|
|
13005
13018
|
}
|
|
13006
13019
|
get el() { return getElement(this); }
|
|
13007
13020
|
static get watchers() { return {
|
|
@@ -13015,6 +13028,7 @@ class EdsStepsV2 {
|
|
|
13015
13028
|
"steps": [1],
|
|
13016
13029
|
"type": [1],
|
|
13017
13030
|
"imageSrc": [1, "image-src"],
|
|
13031
|
+
"imageWidth": [2, "image-width"],
|
|
13018
13032
|
"bg": [4],
|
|
13019
13033
|
"message": [1],
|
|
13020
13034
|
"activeStep": [32]
|
|
@@ -13053,11 +13067,11 @@ class EdsSwitch {
|
|
|
13053
13067
|
render() {
|
|
13054
13068
|
// Compute an accessible name based on state.
|
|
13055
13069
|
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
13056
|
-
return (hAsync("div", { key: '
|
|
13070
|
+
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: {
|
|
13057
13071
|
switch: true,
|
|
13058
13072
|
'switch--checked': this.checked,
|
|
13059
13073
|
'switch--disabled': this.disabled
|
|
13060
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '
|
|
13074
|
+
}, 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)));
|
|
13061
13075
|
}
|
|
13062
13076
|
get el() { return getElement(this); }
|
|
13063
13077
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -13076,7 +13090,7 @@ class EdsSwitch {
|
|
|
13076
13090
|
}; }
|
|
13077
13091
|
}
|
|
13078
13092
|
|
|
13079
|
-
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}";
|
|
13093
|
+
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}";
|
|
13080
13094
|
var EdsTableStyle0 = edsTableCss;
|
|
13081
13095
|
|
|
13082
13096
|
/**
|
|
@@ -13093,6 +13107,7 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13093
13107
|
class EdsTable {
|
|
13094
13108
|
constructor(hostRef) {
|
|
13095
13109
|
registerInstance(this, hostRef);
|
|
13110
|
+
this.rowaction = createEvent(this, "rowaction", 7);
|
|
13096
13111
|
this.handleResize = () => {
|
|
13097
13112
|
this.updateContainerWidth();
|
|
13098
13113
|
};
|
|
@@ -13104,6 +13119,10 @@ class EdsTable {
|
|
|
13104
13119
|
this.searchEnabled = false;
|
|
13105
13120
|
this.hostWidth = undefined;
|
|
13106
13121
|
this.columnSize = 'default';
|
|
13122
|
+
this.actions = [];
|
|
13123
|
+
this.actionTemplate = undefined;
|
|
13124
|
+
this.parsedActions = [];
|
|
13125
|
+
this.dataColumns = [];
|
|
13107
13126
|
this.tbData = [];
|
|
13108
13127
|
this.columns = [];
|
|
13109
13128
|
this.currentPage = 1;
|
|
@@ -13118,8 +13137,18 @@ class EdsTable {
|
|
|
13118
13137
|
handleConfigChange() {
|
|
13119
13138
|
this.parseConfig();
|
|
13120
13139
|
}
|
|
13140
|
+
handleActionsChange() {
|
|
13141
|
+
try {
|
|
13142
|
+
this.parsedActions = typeof this.actions === 'string' ? JSON.parse(this.actions) : this.actions;
|
|
13143
|
+
}
|
|
13144
|
+
catch (_a) {
|
|
13145
|
+
console.error('Failed to parse actions JSON');
|
|
13146
|
+
this.parsedActions = [];
|
|
13147
|
+
}
|
|
13148
|
+
}
|
|
13121
13149
|
componentWillLoad() {
|
|
13122
13150
|
this.parseConfig();
|
|
13151
|
+
this.handleActionsChange();
|
|
13123
13152
|
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
13124
13153
|
}
|
|
13125
13154
|
componentDidLoad() {
|
|
@@ -13148,24 +13177,20 @@ class EdsTable {
|
|
|
13148
13177
|
parseData() {
|
|
13149
13178
|
try {
|
|
13150
13179
|
this.tbData = parseData(this.data);
|
|
13151
|
-
//this.tbData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
13152
13180
|
this.totalRows = this.tbData.length;
|
|
13153
13181
|
this.updateColumns();
|
|
13154
13182
|
this.currentPage = 1;
|
|
13155
13183
|
}
|
|
13156
13184
|
catch (error) {
|
|
13157
|
-
// eslint-disable-next-line
|
|
13158
13185
|
console.error('Failed to parse data:', error);
|
|
13159
13186
|
this.tbData = [];
|
|
13160
13187
|
}
|
|
13161
13188
|
}
|
|
13162
13189
|
parseConfig() {
|
|
13163
13190
|
try {
|
|
13164
|
-
//this.parsedConfig = parseData(this.config);
|
|
13165
13191
|
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
13166
13192
|
}
|
|
13167
13193
|
catch (error) {
|
|
13168
|
-
// eslint-disable-next-line
|
|
13169
13194
|
console.error('Failed to parse config:', error);
|
|
13170
13195
|
this.parsedConfig = {};
|
|
13171
13196
|
}
|
|
@@ -13177,7 +13202,6 @@ class EdsTable {
|
|
|
13177
13202
|
this.data = data;
|
|
13178
13203
|
}
|
|
13179
13204
|
catch (error) {
|
|
13180
|
-
// eslint-disable-next-line
|
|
13181
13205
|
console.error('Failed to fetch data:', error);
|
|
13182
13206
|
}
|
|
13183
13207
|
}
|
|
@@ -13213,24 +13237,52 @@ class EdsTable {
|
|
|
13213
13237
|
handleSearch(event) {
|
|
13214
13238
|
this.searchQuery = event.target.value;
|
|
13215
13239
|
this.currentPage = 1;
|
|
13216
|
-
/*sendAnalytics({
|
|
13217
|
-
category: 'ui-component',
|
|
13218
|
-
parentContext: null,
|
|
13219
|
-
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
13220
|
-
name: `${this.searchQuery}` || '',
|
|
13221
|
-
action: 'page'
|
|
13222
|
-
});*/
|
|
13223
13240
|
}
|
|
13224
13241
|
renderCell(value, column) {
|
|
13225
13242
|
var _a;
|
|
13226
13243
|
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
13227
13244
|
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);
|
|
13228
13245
|
}
|
|
13246
|
+
/**
|
|
13247
|
+
* Renders one action (button or checkbox) for a specific action‐name.
|
|
13248
|
+
* Used by the “Actions” column below.
|
|
13249
|
+
*/
|
|
13250
|
+
renderSingleActionCell(actionName, row) {
|
|
13251
|
+
var _a;
|
|
13252
|
+
const act = this.parsedActions.find((a) => a.name === actionName);
|
|
13253
|
+
if (this.actionTemplate) {
|
|
13254
|
+
return this.actionTemplate(row);
|
|
13255
|
+
}
|
|
13256
|
+
const type = act.type || 'button';
|
|
13257
|
+
if (type === 'checkbox') {
|
|
13258
|
+
const boundField = (_a = act.field) !== null && _a !== void 0 ? _a : act.name;
|
|
13259
|
+
const checked = !!row[boundField];
|
|
13260
|
+
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) }));
|
|
13261
|
+
}
|
|
13262
|
+
return hAsync("eds-link", { label: act.label, intent: "weak", onClick: () => this.emitAction(act.name, row) });
|
|
13263
|
+
}
|
|
13264
|
+
emitAction(actionName, row, checked) {
|
|
13265
|
+
sendAnalytics({
|
|
13266
|
+
category: 'ui-component',
|
|
13267
|
+
parentContext: null,
|
|
13268
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/action`,
|
|
13269
|
+
name: actionName,
|
|
13270
|
+
action: 'click'
|
|
13271
|
+
});
|
|
13272
|
+
this.rowaction.emit({ action: actionName, row, checked: !!checked });
|
|
13273
|
+
}
|
|
13229
13274
|
shouldEnablePagination() {
|
|
13230
13275
|
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
13231
13276
|
}
|
|
13232
13277
|
updateColumns() {
|
|
13278
|
+
var _a, _b;
|
|
13279
|
+
// 1) Grab all data‐keys from the first row (if any) as before:
|
|
13233
13280
|
this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
|
|
13281
|
+
// 2) Instead of pushing each action.name, we add just a single “actions” column
|
|
13282
|
+
// (you can call it anything; we’ll detect it in render())
|
|
13283
|
+
if (((_b = (_a = this.parsedActions) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) > 0 && this.tbData.length > 0) {
|
|
13284
|
+
this.columns.push('actions');
|
|
13285
|
+
}
|
|
13234
13286
|
}
|
|
13235
13287
|
getVisibleColumnsCount() {
|
|
13236
13288
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
@@ -13245,28 +13297,45 @@ class EdsTable {
|
|
|
13245
13297
|
}
|
|
13246
13298
|
return divisionFactor;
|
|
13247
13299
|
}
|
|
13300
|
+
capitalize(str) {
|
|
13301
|
+
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
13302
|
+
}
|
|
13248
13303
|
render() {
|
|
13249
|
-
// Use containerWidth state that is updated on resize.
|
|
13250
13304
|
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
13251
|
-
// Calculate the number of visible columns and the column width.
|
|
13252
13305
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
13253
13306
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
13254
13307
|
const paginatedRows = this.getPaginatedRows();
|
|
13255
13308
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13256
|
-
return (hAsync("div", { key: '
|
|
13257
|
-
// @ts-ignore
|
|
13258
|
-
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) => {
|
|
13309
|
+
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) => {
|
|
13259
13310
|
var _a;
|
|
13260
|
-
|
|
13261
|
-
|
|
13311
|
+
// 3) For the “actions” column, override the header to “Actions”
|
|
13312
|
+
if (col === 'actions') {
|
|
13313
|
+
// You can choose a smaller min‐width here if you wish:
|
|
13314
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, "Actions"));
|
|
13315
|
+
}
|
|
13316
|
+
// Otherwise, render column name or action label if you do want to override:
|
|
13317
|
+
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13318
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
13319
|
+
}
|
|
13320
|
+
return null;
|
|
13321
|
+
}))), 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) => {
|
|
13262
13322
|
var _a;
|
|
13263
|
-
|
|
13264
|
-
|
|
13323
|
+
if (col === 'actions') {
|
|
13324
|
+
// 4) Render ALL actions inside a single <td> for this row:
|
|
13325
|
+
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)))))));
|
|
13326
|
+
}
|
|
13327
|
+
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13328
|
+
// Regular data cell:
|
|
13329
|
+
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)));
|
|
13330
|
+
}
|
|
13331
|
+
return null;
|
|
13332
|
+
}))))))), 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" })))));
|
|
13265
13333
|
}
|
|
13266
13334
|
get hostEl() { return getElement(this); }
|
|
13267
13335
|
static get watchers() { return {
|
|
13268
13336
|
"data": ["handleDataChange", "parseData"],
|
|
13269
|
-
"config": ["handleConfigChange"]
|
|
13337
|
+
"config": ["handleConfigChange"],
|
|
13338
|
+
"actions": ["handleActionsChange"]
|
|
13270
13339
|
}; }
|
|
13271
13340
|
static get style() { return EdsTableStyle0; }
|
|
13272
13341
|
static get cmpMeta() { return {
|
|
@@ -13281,6 +13350,10 @@ class EdsTable {
|
|
|
13281
13350
|
"searchEnabled": [4, "search-enabled"],
|
|
13282
13351
|
"hostWidth": [1, "host-width"],
|
|
13283
13352
|
"columnSize": [1, "column-size"],
|
|
13353
|
+
"actions": [1],
|
|
13354
|
+
"actionTemplate": [16],
|
|
13355
|
+
"parsedActions": [32],
|
|
13356
|
+
"dataColumns": [32],
|
|
13284
13357
|
"tbData": [32],
|
|
13285
13358
|
"columns": [32],
|
|
13286
13359
|
"currentPage": [32],
|
|
@@ -13860,7 +13933,7 @@ class EdsUser {
|
|
|
13860
13933
|
}
|
|
13861
13934
|
render() {
|
|
13862
13935
|
const user = this.parsedUser;
|
|
13863
|
-
return (hAsync("div", { key: '9e2a8da09c2c15080e3b1ccf5b8e0e93b679d34b', class: "block" }, hAsync("div", { key: 'ccc34b3c7b0ab8d515eebfa1962264365d20c788', class: "flex items-center" }, hAsync("eds-dropdown", { key: '
|
|
13936
|
+
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' })))))));
|
|
13864
13937
|
}
|
|
13865
13938
|
get hostEl() { return getElement(this); }
|
|
13866
13939
|
static get style() { return EdsUserStyle0; }
|