@ebrains/components 2.3.1 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +33 -24
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/{eds-accordion_36.cjs.entry.js → eds-accordion_37.cjs.entry.js} +661 -209
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
- 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-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-footer.cjs.entry.js +2 -2
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -3
- package/dist/cjs/eds-gauge.cjs.entry.js +1 -1
- 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-bin.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-clone.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-download.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-edit.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-start.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 +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +2 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-social-networks.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-50bc1aa4.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +3 -3
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/cjs/{up-and-down-d71df67d.js → up-and-down-6f179dd8.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- 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 -19
- 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-generic/eds-card-generic.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-feedback/eds-feedback.js +1 -1
- package/dist/collection/components/eds-footer/eds-footer.js +2 -2
- package/dist/collection/components/eds-form/eds-form.js +56 -16
- package/dist/collection/components/eds-frame/eds-frame.js +1 -1
- package/dist/collection/components/eds-fullscreen-menu/eds-fullscreen-menu.js +8 -3
- package/dist/collection/components/eds-header/eds-header.css +5 -0
- package/dist/collection/components/eds-header/eds-header.js +1 -1
- 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-bin/eds-icon-bin.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-clone/eds-icon-clone.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-download/eds-icon-download.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.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-start/eds-icon-start.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 +2 -2
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.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 +15 -25
- 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-nps/eds-nps.js +66 -53
- 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-sidebar/eds-sidebar.css +458 -0
- package/dist/collection/components/eds-sidebar/eds-sidebar.js +299 -0
- package/dist/collection/components/eds-sidebar/eds-sidebar.stories.js +141 -0
- package/dist/collection/components/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-steps/eds-steps.css +334 -10
- package/dist/collection/components/eds-steps/eds-steps.js +187 -101
- package/dist/collection/components/eds-steps/eds-steps.stories.js +21 -3
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.css +167 -3
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.js +177 -113
- package/dist/collection/components/eds-steps-v2/eds-steps-v2.stories.js +8 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.css +14 -0
- package/dist/collection/components/eds-table/eds-table.js +99 -9
- package/dist/collection/components/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/components/eds-user/eds-user.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +2 -2
- package/dist/collection/eds-docs-ui/components-section/functional/vue.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +10 -12
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +2 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components-section.js +33 -24
- package/dist/components/components.css +315 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-alert2.js +2 -2
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +1 -1
- package/dist/components/eds-button2.js +1 -3
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.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-cookies-preference.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -2
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +6 -12
- package/dist/components/eds-form.js +80 -34
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +16 -17
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-global-search.js +31 -27
- package/dist/components/eds-header.js +2 -2
- 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-bin.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-clone.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-download.js +1 -1
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.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-start.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 +2 -2
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.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 +22 -16
- package/dist/components/eds-input-footer2.js +9 -3
- 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 +14 -9
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps2.js +66 -53
- 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-sidebar.d.ts +11 -0
- package/dist/components/eds-sidebar.js +208 -0
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +133 -46
- package/dist/components/eds-steps2.js +130 -34
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +65 -9
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip2.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/{p-838d6773.entry.js → p-0e504247.entry.js} +1 -1
- package/dist/components/{p-b8b4c01e.entry.js → p-0f319eac.entry.js} +1 -1
- package/dist/components/{p-7b0496b1.entry.js → p-11bf02db.entry.js} +1 -1
- package/dist/components/{p-ca91952b.entry.js → p-15df046d.entry.js} +1 -1
- package/dist/components/p-15e5229b.entry.js +1 -0
- package/dist/components/{p-75b40e57.entry.js → p-1804a119.entry.js} +1 -1
- package/dist/components/p-19c628e6.entry.js +1 -0
- package/dist/components/p-19e241e9.entry.js +1 -0
- package/dist/components/p-1a674723.entry.js +9 -0
- package/dist/components/p-1dd6faeb.entry.js +1 -0
- package/dist/components/{p-e614c8e8.entry.js → p-21ed7e2e.entry.js} +1 -1
- package/dist/components/{p-2d6ca1c5.entry.js → p-2bd9605b.entry.js} +1 -1
- package/dist/components/{p-44d33938.entry.js → p-2d4f6e90.entry.js} +1 -1
- package/dist/components/p-2e3bd154.entry.js +1 -0
- package/dist/components/p-3004d956.entry.js +1 -0
- package/dist/components/p-313b04c9.entry.js +1 -0
- package/dist/components/p-31a3c6a2.entry.js +1 -0
- package/dist/components/p-3778e162.entry.js +1 -0
- package/dist/components/p-39548acc.entry.js +1 -0
- package/dist/components/p-3aac5c73.entry.js +1 -0
- package/dist/components/p-3d313fb5.entry.js +1 -0
- package/dist/components/p-43bc9224.entry.js +1 -0
- package/dist/components/p-48eaf544.entry.js +1 -0
- package/dist/components/{p-b522fa70.entry.js → p-4c2a8bf1.entry.js} +1 -1
- package/dist/components/{p-fe2bb83e.entry.js → p-4eaa7ba2.entry.js} +1 -1
- package/dist/components/p-5157eb25.entry.js +1 -0
- package/dist/components/{p-0798d50d.entry.js → p-59d2b2a9.entry.js} +1 -1
- package/dist/components/p-5c28d2d3.entry.js +1 -0
- package/dist/components/p-63d9ab86.entry.js +1 -0
- package/dist/components/p-640c4463.entry.js +1 -0
- package/dist/components/p-643eee62.entry.js +1 -0
- package/dist/components/p-64be8ed5.entry.js +1 -0
- package/dist/components/{p-e9a6f693.entry.js → p-67c3bedc.entry.js} +1 -1
- package/dist/components/{p-f2b12631.entry.js → p-70cbe02d.entry.js} +1 -1
- package/dist/components/p-7aa97ad6.entry.js +1 -0
- package/dist/components/{p-24683124.entry.js → p-7b160270.entry.js} +1 -1
- package/dist/components/p-83b26d8c.entry.js +1 -0
- package/dist/components/{p-e2bc6329.entry.js → p-85f866f0.entry.js} +1 -1
- package/dist/components/p-8779905b.entry.js +1 -0
- package/dist/components/p-88814860.entry.js +1 -0
- package/dist/components/{p-b471922f.entry.js → p-8998eec7.entry.js} +1 -1
- package/dist/components/p-8c42cefe.entry.js +1 -0
- package/dist/components/{p-bce8a58d.entry.js → p-8c520685.entry.js} +1 -1
- package/dist/components/p-8cba26bd.entry.js +1 -0
- package/dist/components/p-8ef830f5.entry.js +1 -0
- package/dist/components/p-942f4a95.entry.js +1 -0
- package/dist/components/p-9b05145b.entry.js +1 -0
- package/dist/components/{p-4beb1e06.entry.js → p-9d57b51f.entry.js} +1 -1
- package/dist/components/p-9e46df74.entry.js +1 -0
- package/dist/components/{p-76330532.entry.js → p-9fe2c4ba.entry.js} +1 -1
- package/dist/components/p-a38bb645.entry.js +1 -0
- package/dist/components/{p-df18ffd1.entry.js → p-a61dbad5.entry.js} +1 -1
- package/dist/components/{p-398255ff.entry.js → p-a78079b7.entry.js} +1 -1
- package/dist/components/p-a8e5591c.entry.js +1 -0
- package/dist/components/p-afceabd6.entry.js +1 -0
- package/dist/components/p-b00352ff.entry.js +1 -0
- package/dist/components/p-b93f983c.entry.js +1 -0
- package/dist/components/p-bb6a6de2.entry.js +1 -0
- package/dist/components/p-bc2204f3.entry.js +1 -0
- package/dist/components/p-be54a6c8.entry.js +1 -0
- package/dist/components/p-bef9bf37.entry.js +1 -0
- package/dist/components/p-c1ad7132.entry.js +1 -0
- package/dist/components/p-cb5e39d1.entry.js +1 -0
- package/dist/components/p-ccb6ad15.entry.js +1 -0
- package/dist/components/p-d090b9fa.entry.js +1 -0
- package/dist/components/p-d11f2808.entry.js +1 -0
- package/dist/components/p-d6e5a9fb.entry.js +1 -0
- package/dist/components/{p-ce3b6043.entry.js → p-d958e1f3.entry.js} +1 -1
- package/dist/components/{p-963feadd.entry.js → p-da7b4b6a.entry.js} +1 -1
- package/dist/components/p-dea41137.entry.js +1 -0
- package/dist/components/p-e01cf4f8.entry.js +1 -0
- package/dist/components/{p-54e29971.entry.js → p-e5a1118d.entry.js} +1 -1
- package/dist/components/p-eb818455.entry.js +1 -0
- package/dist/components/p-f061ff11.entry.js +1 -0
- package/dist/components/p-f0a330ef.entry.js +1 -0
- package/dist/components/p-f11e3f42.entry.js +1 -0
- package/dist/components/{p-7ada2015.entry.js → p-f24bfc6a.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/components/up-and-down.js +2 -2
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +33 -24
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/{eds-accordion_36.entry.js → eds-accordion_37.entry.js} +661 -210
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-card-desc_2.entry.js +2 -2
- package/dist/esm/eds-card-generic.entry.js +1 -1
- 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-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-footer.entry.js +2 -2
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +8 -3
- package/dist/esm/eds-gauge.entry.js +1 -1
- 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-bin.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-clone.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-download.entry.js +1 -1
- package/dist/esm/eds-icon-draft.entry.js +1 -1
- package/dist/esm/eds-icon-edit.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-start.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 +2 -2
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-view.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-modal.entry.js +2 -2
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-social-networks.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-870ab08f.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +3 -3
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/esm/{up-and-down-d747abee.js → up-and-down-8b69ca97.js} +2 -2
- package/dist/hydrate/index.js +827 -341
- package/dist/hydrate/index.mjs +827 -341
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +2 -2
- package/dist/types/components/eds-button/eds-button.d.ts +0 -1
- package/dist/types/components/eds-form/eds-form.d.ts +1 -0
- package/dist/types/components/eds-link/eds-link.d.ts +0 -1
- package/dist/types/components/eds-nps/eds-nps.d.ts +5 -3
- package/dist/types/components/eds-sidebar/eds-sidebar.d.ts +50 -0
- package/dist/types/components/eds-sidebar/eds-sidebar.stories.d.ts +98 -0
- package/dist/types/components/eds-steps/eds-steps.d.ts +18 -69
- package/dist/types/components/eds-steps/eds-steps.stories.d.ts +18 -0
- package/dist/types/components/eds-steps-v2/eds-steps-v2.d.ts +24 -52
- package/dist/types/components/eds-steps-v2/eds-steps-v2.stories.d.ts +8 -0
- package/dist/types/components/eds-table/eds-table.d.ts +8 -0
- package/dist/types/components.d.ts +143 -124
- package/package.json +1 -1
- package/dist/components/p-004801b2.entry.js +0 -1
- package/dist/components/p-02648f82.entry.js +0 -1
- package/dist/components/p-09f1b358.entry.js +0 -1
- package/dist/components/p-0ec9dcf5.entry.js +0 -1
- package/dist/components/p-0fb8511d.entry.js +0 -1
- package/dist/components/p-127870d7.entry.js +0 -1
- package/dist/components/p-12e153fb.entry.js +0 -1
- package/dist/components/p-1f80e708.entry.js +0 -1
- package/dist/components/p-21b5ca1f.entry.js +0 -1
- package/dist/components/p-2bfcb3cf.entry.js +0 -1
- package/dist/components/p-2efa0ba6.entry.js +0 -1
- package/dist/components/p-33a639b5.entry.js +0 -1
- package/dist/components/p-36b17bf2.entry.js +0 -1
- package/dist/components/p-3c478e74.entry.js +0 -1
- package/dist/components/p-447e436c.entry.js +0 -1
- package/dist/components/p-4995b8b2.entry.js +0 -1
- package/dist/components/p-53343ea1.entry.js +0 -1
- package/dist/components/p-56447243.entry.js +0 -1
- package/dist/components/p-56cc4a15.entry.js +0 -1
- package/dist/components/p-5ddcec77.entry.js +0 -1
- package/dist/components/p-5e8142ed.entry.js +0 -1
- package/dist/components/p-70f5e9f5.entry.js +0 -1
- package/dist/components/p-714445de.entry.js +0 -1
- package/dist/components/p-7436a99a.entry.js +0 -1
- package/dist/components/p-772d6ca9.entry.js +0 -1
- package/dist/components/p-79044ab6.entry.js +0 -1
- package/dist/components/p-7c7aaa95.entry.js +0 -1
- package/dist/components/p-81ba0feb.entry.js +0 -1
- package/dist/components/p-82b357f7.entry.js +0 -1
- package/dist/components/p-84239973.entry.js +0 -1
- package/dist/components/p-85dfbfd3.entry.js +0 -1
- package/dist/components/p-a155c283.entry.js +0 -1
- package/dist/components/p-a4080044.entry.js +0 -1
- package/dist/components/p-abd40167.entry.js +0 -1
- package/dist/components/p-ae41414e.entry.js +0 -1
- package/dist/components/p-afb55d52.entry.js +0 -1
- package/dist/components/p-b4c2c58d.entry.js +0 -9
- package/dist/components/p-b6fc1a7d.entry.js +0 -1
- package/dist/components/p-b8a36d0f.entry.js +0 -1
- package/dist/components/p-bb4633ec.entry.js +0 -1
- package/dist/components/p-bc59e5ff.entry.js +0 -1
- package/dist/components/p-cdabb63e.entry.js +0 -1
- package/dist/components/p-d3fa440f.entry.js +0 -1
- package/dist/components/p-dacd8c26.entry.js +0 -1
- package/dist/components/p-ddec1f12.entry.js +0 -1
- package/dist/components/p-e6819f4d.entry.js +0 -1
- package/dist/components/p-e8d0a2db.entry.js +0 -1
- package/dist/components/p-eaf5d057.entry.js +0 -1
- package/dist/components/p-eb57d477.entry.js +0 -1
- package/dist/components/p-efdc6fd7.entry.js +0 -1
- package/dist/components/p-f013c0ac.entry.js +0 -1
- package/dist/components/p-f1ead3b3.entry.js +0 -1
- /package/dist/components/{p-1b2913c8.js → p-553ca350.js} +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -2335,7 +2335,7 @@ class ColorPrimaryPalette {
|
|
|
2335
2335
|
];
|
|
2336
2336
|
}
|
|
2337
2337
|
render() {
|
|
2338
|
-
return (hAsync("ul", { key: '
|
|
2338
|
+
return (hAsync("ul", { key: '126edc10e07814fef8d8832a3defca18aa1f183e', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2339
2339
|
}
|
|
2340
2340
|
static get cmpMeta() { return {
|
|
2341
2341
|
"$flags$": 0,
|
|
@@ -2407,7 +2407,7 @@ class ColorSecondaryPalette {
|
|
|
2407
2407
|
this.show = undefined;
|
|
2408
2408
|
}
|
|
2409
2409
|
render() {
|
|
2410
|
-
return (hAsync("ul", { key: '
|
|
2410
|
+
return (hAsync("ul", { key: '77522e66323f22f1201b7b70a9c7a244627b350b', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2411
2411
|
}
|
|
2412
2412
|
static get cmpMeta() { return {
|
|
2413
2413
|
"$flags$": 0,
|
|
@@ -2481,7 +2481,7 @@ class ColorSupportPalette {
|
|
|
2481
2481
|
return 'text-default';
|
|
2482
2482
|
}
|
|
2483
2483
|
render() {
|
|
2484
|
-
return (hAsync("ul", { key: '
|
|
2484
|
+
return (hAsync("ul", { key: '24be31af945fa36a65a512367f61ff64e260acef', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2485
2485
|
// compute once
|
|
2486
2486
|
const textClass = this.getTextColor(color.background);
|
|
2487
2487
|
return (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' }, class: textClass })), hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneC), hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneU)))));
|
|
@@ -2507,26 +2507,25 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2507
2507
|
"."),
|
|
2508
2508
|
hAsync("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
|
|
2509
2509
|
hAsync("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
|
|
2510
|
-
hAsync("
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
2510
|
+
hAsync("div", { class: "mt-16" },
|
|
2511
|
+
hAsync("eds-steps", { type: "static", steps: [
|
|
2512
|
+
{
|
|
2513
|
+
title: 'Import the Loader Module',
|
|
2514
|
+
content: 'The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components.'
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
title: 'Register Custom Elements',
|
|
2518
|
+
content: 'Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM.'
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
title: 'Lazy Loading in Action',
|
|
2522
|
+
content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
title: 'Optimized Performance',
|
|
2526
|
+
content: 'By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed.'
|
|
2527
|
+
}
|
|
2528
|
+
] })),
|
|
2530
2529
|
hAsync("h2", null, "Load the variables and styles"),
|
|
2531
2530
|
hAsync("p", null,
|
|
2532
2531
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -2538,13 +2537,16 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2538
2537
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
2539
2538
|
' ',
|
|
2540
2539
|
hAsync("code", null, "head"),
|
|
2541
|
-
". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."),
|
|
2540
|
+
". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to dynamic css configurations."),
|
|
2542
2541
|
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
2543
2542
|
hAsync("p", null,
|
|
2544
2543
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
2545
2544
|
' ',
|
|
2546
2545
|
hAsync("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
2547
|
-
".")
|
|
2546
|
+
"."),
|
|
2547
|
+
hAsync("h2", null, "Example"),
|
|
2548
|
+
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
2549
|
+
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
2548
2550
|
|
|
2549
2551
|
const DocsInstallation = () => (hAsync("div", null,
|
|
2550
2552
|
hAsync("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
@@ -2573,6 +2575,13 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2573
2575
|
hAsync("h2", null, "Vue Wrappers"),
|
|
2574
2576
|
hAsync("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
|
|
2575
2577
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
2578
|
+
hAsync("h2", null, "Vue Router Initialization"),
|
|
2579
|
+
hAsync("p", null,
|
|
2580
|
+
"For better component handling and to avoid potential asynchronous initialization issues (such as runtime errors from components that depend on the router context), make sure the application waits for the router to fully initialize before mounting the app. Use the following pattern in your ",
|
|
2581
|
+
hAsync("code", null, "main.ts"),
|
|
2582
|
+
":"),
|
|
2583
|
+
hAsync("eds-code-block", { code: "import { createApp } from 'vue';\nimport App from './App.vue';\nimport router from './router';\n\nconst app = createApp(App);\napp.use(router);\n\n// Wait for router to finish resolving initial navigation\nrouter.isReady().then(() => {\n app.mount('#root');\n});\n", language: "javascript", "copy-label": "Copy Code" }),
|
|
2584
|
+
hAsync("p", null, "This ensures that all components relying on routing information (e.g., navigation links, route guards, or async route data) are rendered only after the router is ready, preventing timing-related errors or unexpected behavior at startup."),
|
|
2576
2585
|
hAsync("h2", null,
|
|
2577
2586
|
"Passing Properties to Custom Elements Using the ",
|
|
2578
2587
|
hAsync("b", null, ".prop"),
|
|
@@ -2594,7 +2603,7 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2594
2603
|
hAsync("b", null, ".prop"),
|
|
2595
2604
|
" modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
|
|
2596
2605
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
2597
|
-
hAsync("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible"
|
|
2606
|
+
hAsync("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader headerVariant="strong"></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible" style="padding: 10px;">\n <EdsSteps \n :steps="JSON.stringify(stepsdata)"\n type="linear"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: { EdsHeader, EdsSplashScreen, EdsSteps },\n data() {\n return {\n stepsdata: [\n { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },\n { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }\n ],\n splashVisible: true\n };\n },\n methods: {\n delay(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n async initialize() {\n try {\n // simulate your init work\n await this.delay(2000);\n\n // fire the built-in event that EdsSplashScreen listens for\n window.dispatchEvent(new Event("hideSplash"));\n } catch (e) {\n console.error("Init error", e);\n window.dispatchEvent(new Event("hideSplash"));\n } finally {\n // show the rest of the app\n this.splashVisible = false;\n }\n }\n },\n mounted() {\n this.initialize();\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
2598
2607
|
|
|
2599
2608
|
const DocsAngular = () => (hAsync("div", null,
|
|
2600
2609
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -2632,7 +2641,7 @@ class ComponentsSection {
|
|
|
2632
2641
|
}
|
|
2633
2642
|
}
|
|
2634
2643
|
render() {
|
|
2635
|
-
return hAsync("div", { key: '
|
|
2644
|
+
return hAsync("div", { key: '558e6c2ad94148d2371879fa7ae8f4ce6d996f73', class: "container" }, this.renderContent());
|
|
2636
2645
|
}
|
|
2637
2646
|
static get cmpMeta() { return {
|
|
2638
2647
|
"$flags$": 0,
|
|
@@ -2710,7 +2719,7 @@ class CorrectUseOfColors {
|
|
|
2710
2719
|
registerInstance(this, hostRef);
|
|
2711
2720
|
}
|
|
2712
2721
|
render() {
|
|
2713
|
-
return (hAsync("div", { key: '
|
|
2722
|
+
return (hAsync("div", { key: '9d28ec9943d0677134197c13540de9bb7c2f12cd', class: "container" }, hAsync("p", { key: '6f7d0b82630b3c49f9dff5ccd36bca698a1fbd5c', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'd7f9671b3cbb38b08cd81c30587abdf0d8f41f51', label: "primary", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'f2f511e348e059b3dd4f297f5b4a3979cd375129', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '969c18ae721d4f00760e98cd80059dc2aa453d67', class: "flex" }, hAsync("div", { key: '1b17ab8ece1291526e71d18dcf3c1f93a00fa2c4', class: "w-full" }, hAsync("ul", { key: '986f769f30231630847cdfe86b8656839a939d88', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '86eefc26ae16cd6e9677740d9bc79510a52fc73f', class: "w-full" }, hAsync("ul", { key: 'f9d33602d9d0074e708853f4f8414be3059df356', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '07b359efde4e571b7aca720c96a4bbf14c838d4d', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'd298f15d103db28cee0d20c033a32588ed5fd19e', label: "purple", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '30104956c75990db31768f55fe29a3c58c3db6ee', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '2ac588649556015429c13fc99639dcfc156262d6', class: "flex" }, hAsync("div", { key: '80a4806cad7dbfe512b77fd24e5d857301cba9cb', class: "w-full" }, hAsync("ul", { key: '92f3708e7750b344f7b493023cb76fb40c859a4d', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '7bdd5b1548c55260c6425b167ec4dbb89dd6eda2', class: "w-full" }, hAsync("ul", { key: '387542a843d26539d7fea2af38ef9ae4308eeb32', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '0f1ba1c7c7408685f371c4044f95c7ca502fc944', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '8ed5ff96b53904e8ba20ef1511245c0b5154afa4', label: "blue", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'a14d384ccfd1147cf97b368b2cde7382a54c0a45', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '155d52d56352a506e3b7737d427a14a3abcaebcd', class: "flex" }, hAsync("div", { key: 'e91aa745ca8cff4fa9b704317ddfd43a6f40ca38', class: "w-full" }, hAsync("ul", { key: 'c7011ffce80763f4042be97d0ea69babfac40361', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'a98a22aa0af0b286575bed2e334b184617be1ecf', class: "w-full" }, hAsync("ul", { key: '20b30469c9c0d2999139d8e0f1d80f5ab0a3c514', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '10e39fc6e1aa2682ada0ec5183b3552c9958bc98', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '849655d792c79a191cf6cab7672ec649de59cb5a', label: "redish", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'b1e5d967791190f20c86d54ef46b703270b5b637', label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '292f06ed7f8d9af814439e8774308068c2aa6a3b', class: "flex" }, hAsync("div", { key: '44575c8a4582d31170803e390265f02548045831', class: "w-full" }, hAsync("ul", { key: 'fc137b3481b601c0b7eb216b9393ddd291eb9a02', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '39c79f448361189f8f439622099271276d3ebe3d', class: "w-full" }, hAsync("ul", { key: '6195f5159065e800f84f1d0f78f6523986506369', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
2714
2723
|
}
|
|
2715
2724
|
static get cmpMeta() { return {
|
|
2716
2725
|
"$flags$": 0,
|
|
@@ -2749,7 +2758,7 @@ class DocsContent {
|
|
|
2749
2758
|
}
|
|
2750
2759
|
}
|
|
2751
2760
|
render() {
|
|
2752
|
-
return hAsync("div", { key: '
|
|
2761
|
+
return hAsync("div", { key: 'bf55f7238eb1c05bdf6b79a4663070ff257595d8', class: "container" }, this.renderContent());
|
|
2753
2762
|
}
|
|
2754
2763
|
static get cmpMeta() { return {
|
|
2755
2764
|
"$flags$": 0,
|
|
@@ -2782,7 +2791,7 @@ class DocsPalettes {
|
|
|
2782
2791
|
}
|
|
2783
2792
|
}
|
|
2784
2793
|
render() {
|
|
2785
|
-
return hAsync("div", { key: '
|
|
2794
|
+
return hAsync("div", { key: '7cf421f19dc1d70ab5c2df29e8ca22577b1652e2', class: "container" }, this.renderContent());
|
|
2786
2795
|
}
|
|
2787
2796
|
static get cmpMeta() { return {
|
|
2788
2797
|
"$flags$": 0,
|
|
@@ -2940,10 +2949,10 @@ class EdsAccordion {
|
|
|
2940
2949
|
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2941
2950
|
*/
|
|
2942
2951
|
render() {
|
|
2943
|
-
return (hAsync("div", { key: '
|
|
2952
|
+
return (hAsync("div", { key: '095474500f7c60f20e4d737188001d2f3084dbcc', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2944
2953
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2945
2954
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2946
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '
|
|
2955
|
+
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: 'f090fbe3632df8302046f1178e82b8affc4cc821', 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: '0a30ab8c27cadbb342fc57f6393111c84f10a664', class: "ml-auto" }, hAsync("eds-button", { key: '01f4658df8181b63b71a2e0d2a67e8f8b58efbb7', id: "toggleAccordion", intent: this.buttonIntent, "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`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '9f3b5a0e425c2dffe3b6fe40fa33b020d64256d8', 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: '414735d7d982de76d8a1b8db24aa9a569eba37c7', id: "accordionSection", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '11097a0646b18f728af494c14aa4cc0e5335defe', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-4`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '88414c40490aa77166d23868f16556b9356279a7', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '8070a7676ca8fba065f813852a2e0cf4146f3374' })))))));
|
|
2947
2956
|
}
|
|
2948
2957
|
get el() { return getElement(this); }
|
|
2949
2958
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3120,12 +3129,12 @@ class EdsAlert {
|
|
|
3120
3129
|
}
|
|
3121
3130
|
render() {
|
|
3122
3131
|
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3123
|
-
return (hAsync("div", { key: '
|
|
3132
|
+
return (hAsync("div", { key: 'd8f0a45ddbaf3d3eb284751e33ddfdce2e13b67a', class: alertStyles({
|
|
3124
3133
|
intent: this.intent,
|
|
3125
3134
|
brd: this.brd,
|
|
3126
3135
|
direction: this.direction,
|
|
3127
3136
|
withBtn: this.withBtn
|
|
3128
|
-
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: '
|
|
3137
|
+
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: '179862c141a2ce05fa9f8562be7e64196baa3922', id: "alert-message", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && (hAsync("div", { key: '3677358bd563a3e2ee1b74309dc4fb6c84ac475f', id: "alert-action" }, this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : (hAsync("eds-button", { class: "eds-alert-button", label: this.pressableLabel, intent: "secondary", onClick: () => this.handleAction() }))))));
|
|
3129
3138
|
}
|
|
3130
3139
|
get el() { return getElement(this); }
|
|
3131
3140
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3176,7 +3185,7 @@ class EdsAppRoot {
|
|
|
3176
3185
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3177
3186
|
}
|
|
3178
3187
|
render() {
|
|
3179
|
-
return (hAsync("div", { key: '
|
|
3188
|
+
return (hAsync("div", { key: 'd05cf471a9e7dfd9a5e87311def9774510e1b30a' }, hAsync("eds-splash-screen", { key: 'ae568d4bda15c9e99365f37421b4caad9576c6a0', inverse: true, initPromise: this.combinedInitPromise }), hAsync("eds-login", { key: '624b82b77f87e636bed424ec66dc564120f370c2', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), hAsync("main", { key: 'fb8a582f971c715e34be9c3e0ed8b3437dea883d' }, this.isAuthenticated ? hAsync("h1", null, "Welcome, authenticated user!") : hAsync("h1", null, "Please log in."))));
|
|
3180
3189
|
}
|
|
3181
3190
|
static get cmpMeta() { return {
|
|
3182
3191
|
"$flags$": 9,
|
|
@@ -3259,7 +3268,7 @@ class EdsAvatar {
|
|
|
3259
3268
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3260
3269
|
*/
|
|
3261
3270
|
render() {
|
|
3262
|
-
return (hAsync("div", { key: '
|
|
3271
|
+
return (hAsync("div", { key: '7b5bf31c794c9bbddd2976fdd5a273842a75603a', 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))));
|
|
3263
3272
|
}
|
|
3264
3273
|
static get style() { return EdsAvatarStyle0; }
|
|
3265
3274
|
static get cmpMeta() { return {
|
|
@@ -3290,7 +3299,7 @@ class EdsBlockBreak {
|
|
|
3290
3299
|
this.inverse = false;
|
|
3291
3300
|
}
|
|
3292
3301
|
render() {
|
|
3293
|
-
return hAsync("hr", { key: '
|
|
3302
|
+
return hAsync("hr", { key: 'dd9b98d66f195135ff2fb1374a56d4c670e43d3e', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3294
3303
|
}
|
|
3295
3304
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3296
3305
|
static get cmpMeta() { return {
|
|
@@ -3450,7 +3459,7 @@ class EdsBreadcrumb {
|
|
|
3450
3459
|
*/
|
|
3451
3460
|
render() {
|
|
3452
3461
|
const itemsToRender = this.getTruncatedItems();
|
|
3453
|
-
return (hAsync("nav", { key: '
|
|
3462
|
+
return (hAsync("nav", { key: '4894fb9e6b37ef84880a62f4dcd3289dcb9cab38', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd69405fcee024465d645d9cdbb17189998a94b95', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3454
3463
|
const isLast = index === itemsToRender.length - 1;
|
|
3455
3464
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3456
3465
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3616,7 +3625,6 @@ class EdsButton {
|
|
|
3616
3625
|
this.size = 'small';
|
|
3617
3626
|
this.iconPos = 'right';
|
|
3618
3627
|
this.iconSmall = false;
|
|
3619
|
-
this.extraClass = undefined;
|
|
3620
3628
|
this.triggerClick = undefined;
|
|
3621
3629
|
}
|
|
3622
3630
|
handleParentContext(event) {
|
|
@@ -3667,7 +3675,7 @@ class EdsButton {
|
|
|
3667
3675
|
});
|
|
3668
3676
|
const ElementType = this.elementType;
|
|
3669
3677
|
const isInteractive = !this.disabled && !this.loading;
|
|
3670
|
-
return (hAsync(Host, { key: '
|
|
3678
|
+
return (hAsync(Host, { key: '25a7b4ffda3df65e91c77a18becd45bc40973f3c' }, hAsync(ElementType, { key: '0f00d82a37f3189b862015eb2d915f2364b6d75d', tabindex: isInteractive ? '0' : '-1', "aria-label": this.label ? undefined : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? 'true' : undefined, "aria-busy": this.loading ? 'true' : undefined, disabled: this.elementType === 'button' ? this.disabled || this.loading : undefined, role: this.elementType === 'a' ? 'button' : undefined, class: `${classes || ''}`, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, this.label && (hAsync("span", { key: '6e45dfefb4805eef0574f7462becca6cde85dbc0', class: this.loading ? 'opacity-0' : '', "aria-hidden": this.loading ? 'true' : undefined }, this.label)), this.loading && (hAsync("span", { key: '9909c70db39a039b883854caff816d25f132b866', class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, hAsync("span", { key: '367cd65a13f81cbcb12d93855dc091a4309566bb', class: "loader", style: {
|
|
3671
3679
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3672
3680
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3673
3681
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
@@ -3693,7 +3701,6 @@ class EdsButton {
|
|
|
3693
3701
|
"size": [1],
|
|
3694
3702
|
"iconPos": [1, "icon-pos"],
|
|
3695
3703
|
"iconSmall": [4, "icon-small"],
|
|
3696
|
-
"extraClass": [1, "extra-class"],
|
|
3697
3704
|
"triggerClick": [16]
|
|
3698
3705
|
},
|
|
3699
3706
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
@@ -3727,7 +3734,7 @@ class EdsCardDesc {
|
|
|
3727
3734
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3728
3735
|
}
|
|
3729
3736
|
render() {
|
|
3730
|
-
return (hAsync("p", { key: '
|
|
3737
|
+
return (hAsync("p", { key: '3711e4f24ad19f1dedef3083b9b9c8868f3b4e3f', class: "text-light f-ui-03-light" }, hAsync("span", { key: '46b53c5111bc05ffaaa6f8fcd4b1b6ddfae2d413', class: this.getTruncateClass() }, this.description)));
|
|
3731
3738
|
}
|
|
3732
3739
|
static get style() { return EdsCardDescStyle0; }
|
|
3733
3740
|
static get cmpMeta() { return {
|
|
@@ -3832,7 +3839,7 @@ class EdsCardGeneric {
|
|
|
3832
3839
|
});
|
|
3833
3840
|
}
|
|
3834
3841
|
render() {
|
|
3835
|
-
return (hAsync("article", { key: '76e77261a0c6e0c506fe7600d31a492808293d27', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'ca26508b05a31310df7fc0c3fa5769f7947e80fc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), hAsync("div", { key: '00ba325e6a0093cb2be35854f2bcb579ad4eb35b', class: "mt-8 mb-8" }, this.description &&
|
|
3842
|
+
return (hAsync("article", { key: '76e77261a0c6e0c506fe7600d31a492808293d27', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'ca26508b05a31310df7fc0c3fa5769f7947e80fc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), hAsync("div", { key: '00ba325e6a0093cb2be35854f2bcb579ad4eb35b', class: "mt-8 mb-8" }, this.description && hAsync("eds-card-desc", { key: '2d775f772092b7873dd1eabc7c3e8606dded0c47', "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8 block mx-auto" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: 'e51237f8196212715d1d97ae1e6bfc2625573cb3', class: "flex flex-wrap gap-y-4 gap-x-1" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label, size: tag.size })))), ' '));
|
|
3836
3843
|
}
|
|
3837
3844
|
get el() { return getElement(this); }
|
|
3838
3845
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -4044,7 +4051,7 @@ class EdsCardProject {
|
|
|
4044
4051
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4045
4052
|
].join(' ');
|
|
4046
4053
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4047
|
-
return (hAsync("article", { key: '
|
|
4054
|
+
return (hAsync("article", { key: '5f72c2dc52a8ef7edb004c6cf9a2035097c5aa28', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '145809ee5e4800d852bb6d9b84a023160098f3c4', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '3d77551f7518cf63f16daffc7d59a2dd23b66148', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: '715a73ee7a013d13ef5e9f3f180eedf043998d76', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '418fc9fe39b480f4d1c9e99f2ef4361a6ad3827f', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '58764ae4d610e2d1205cf09b7274a14a8bfb5694', 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: 'c552bbc88aca3e3b114aef1fbd3e3bdf3e334624', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '3e85ad957b7d782cc228a508ce8e76ccb7490a9c', class: imageClasses }, hAsync("div", { key: '77e161fd2deb2c6ec3e30ad0ef34f934ba9197d1', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: 'e9f0f4982bddba64ee979490024af471f4e9d8f8', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
4048
4055
|
}
|
|
4049
4056
|
get el() { return getElement(this); }
|
|
4050
4057
|
static get cmpMeta() { return {
|
|
@@ -4133,7 +4140,7 @@ class EdsCardTags {
|
|
|
4133
4140
|
this.tags = [];
|
|
4134
4141
|
}
|
|
4135
4142
|
render() {
|
|
4136
|
-
return (hAsync("div", { key: '
|
|
4143
|
+
return (hAsync("div", { key: 'a0184d0900e08d0ae48dd4d2164c9d7ca0ef8db1', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4137
4144
|
}
|
|
4138
4145
|
static get style() { return EdsCardTagsStyle0; }
|
|
4139
4146
|
static get cmpMeta() { return {
|
|
@@ -4197,7 +4204,7 @@ class EdsCardTitle {
|
|
|
4197
4204
|
render() {
|
|
4198
4205
|
//const Tag = this.getTag();
|
|
4199
4206
|
const Heading = this.headingLevel;
|
|
4200
|
-
return (hAsync(Heading, { key: '
|
|
4207
|
+
return (hAsync(Heading, { key: '5d356d301cfee459ac142895a042e9b1ccd59367', class: this.getTitleClass() }, hAsync("a", { key: '348fffdd2abccf3b08ecab9481718b4a2aa50807', 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)));
|
|
4201
4208
|
}
|
|
4202
4209
|
static get style() { return EdsCardTitleStyle0; }
|
|
4203
4210
|
static get cmpMeta() { return {
|
|
@@ -4285,7 +4292,7 @@ class EdsCardTool {
|
|
|
4285
4292
|
});
|
|
4286
4293
|
}
|
|
4287
4294
|
render() {
|
|
4288
|
-
return (hAsync("article", { key: '
|
|
4295
|
+
return (hAsync("article", { key: 'bde34da77105309a05bf36cc1cf24888e62dc826', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '521f11ef8f9f13cdc35b27e45e20d0bec81cc3f8', "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: '615ccb630818a49e278f1308aa95caec3a02e3fe', 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: '40cfa7d940136d4bce5de0c2b37fca91187110f8', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4289
4296
|
}
|
|
4290
4297
|
get el() { return getElement(this); }
|
|
4291
4298
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6797,7 +6804,7 @@ class EdsCodeBlock {
|
|
|
6797
6804
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6798
6805
|
}
|
|
6799
6806
|
render() {
|
|
6800
|
-
return (hAsync("div", { key: '
|
|
6807
|
+
return (hAsync("div", { key: 'bc74b6be37bcb24700d17b48b5398077e485abd7', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: 'db0395bfd55eb3394ab2149c5c436f2a54e8afb0', 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: '628ad41f15f3a38abe4b7c382074c8f5a8679a8c', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '1c95d57a5d8113d6ab7ebf7da713e058c7cc10f1', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: 'a64b2450b631835b6fc2c15047b09ceea5a9fc95', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '51945cbee1504625b54362505b60f1bd1784bdda', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '55961aa8278177451e13c929ec7f7065afcac93b', innerHTML: this.getHighlightedCode() })))));
|
|
6801
6808
|
}
|
|
6802
6809
|
get el() { return getElement(this); }
|
|
6803
6810
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6845,7 +6852,7 @@ class EdsCookiesPreference {
|
|
|
6845
6852
|
}
|
|
6846
6853
|
}
|
|
6847
6854
|
render() {
|
|
6848
|
-
return (hAsync("div", { key: '
|
|
6855
|
+
return (hAsync("div", { key: 'daf8dae47d699797488bddeb6be5951647d26a86' }, hAsync("eds-link", { key: 'a07c16a0c89acc9230a3ebebbd4bb4d1993f34ab', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && hAsync("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
|
|
6849
6856
|
}
|
|
6850
6857
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6851
6858
|
static get cmpMeta() { return {
|
|
@@ -7034,14 +7041,14 @@ class EdsDropdown {
|
|
|
7034
7041
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
7035
7042
|
*/
|
|
7036
7043
|
render() {
|
|
7037
|
-
return (hAsync("div", { key: '
|
|
7044
|
+
return (hAsync("div", { key: 'ffc4915b2104e3d2dd347900acd897f56910a674', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: 'ba48bdd7b75fd230bdc2dd564bd477f0349f5426', 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: 'a29b57598a2ed8fcc9593c928df9443fd4449481', ref: (el) => (this.panelEl = el), role: "menu", class: {
|
|
7038
7045
|
'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,
|
|
7039
7046
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
7040
7047
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
7041
7048
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
7042
7049
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
7043
7050
|
'rounded-lg': this.rounded
|
|
7044
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
7051
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'ddf003345ef5181b968b4bfd8962805d09d15e89' }))));
|
|
7045
7052
|
}
|
|
7046
7053
|
get host() { return getElement(this); }
|
|
7047
7054
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7126,7 +7133,7 @@ class EdsFeedback {
|
|
|
7126
7133
|
const HeadingTag = this.headingLevel;
|
|
7127
7134
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7128
7135
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7129
|
-
return (hAsync("div", { key: '
|
|
7136
|
+
return (hAsync("div", { key: '5405127cfc114d4906617955d7b1069a04ed7b8e', class: "grid inline" }, hAsync(HeadingTag, { key: 'c0a2593d843577323b6a27d0f8fdca3b84063bd5', class: headingClass }, this.label), hAsync("p", { key: '5b7ef9fbd8c5b4a9d3c7c39e3092244d08dde126', class: "f-body-01 text-light" }, this.description), hAsync("eds-rating", { key: '2de1ad00dd21d987bc4a91438500a58a0bcd63a7', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '3de038a0ae8ee334edde65194356f021e14e7cb3', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
7130
7137
|
}
|
|
7131
7138
|
get el() { return getElement(this); }
|
|
7132
7139
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7214,9 +7221,9 @@ class EdsFooter {
|
|
|
7214
7221
|
render() {
|
|
7215
7222
|
const year = new Date().getFullYear();
|
|
7216
7223
|
const rights = this.rightsReserved || `${year} EBRAINS. All rights reserved.`;
|
|
7217
|
-
return (hAsync("footer", { key: '
|
|
7224
|
+
return (hAsync("footer", { key: 'bf9d98eea0bd151bf87818b770e85fe0cfa1044f' }, 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: 'c0058cd32e2904e4e08ec46b99a0cbbabb5df588', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: '4f2993ccded30ca66da34eca632b62abf02e06d5', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '81efd584b5de410522d338bb6ab4b53096a36868', class: "flex items-center gap-x-12" }, hAsync("a", { key: '5a641163b3cb1549ee886e9029b65a012b31cd85', 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("svg", { key: 'ccec5c50780a74912f51a46e79c5064e099cf678', class: "h-auto w-full fill-current", width: "63", height: "50", viewBox: "0 0 640 480", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, hAsync("path", { key: '8aa7bbb7cd4e3386c11c194af1ee63a19fa9de34', d: "M0 0h640v480H0V0z", fill: "#039" }), hAsync("path", { key: 'c5fcce97d10391a07c081558b970175d80da1106', d: "M325.032 93.15l17.513-.398-14.401 9.972 5.789 16.53L320 108.639l-13.933 10.615 5.789-16.531-14.399-9.97 17.51.396L320 76.374l5.032 16.775zm0 284.444l17.513-.398-14.401 9.972 5.789 16.53L320 393.083l-13.933 10.615 5.789-16.531-14.399-9.97 17.51.397L320 360.818l5.032 16.776zm-147.25-158.983l5.029 16.761 17.511-.397-14.4 9.969 5.79 16.533-13.933-10.616-13.932 10.616 5.788-16.531-14.401-9.971 17.511.397 5.028-16.761.004-.015.001.003.001-.003.003.015zm77.885-105.334l17.511-.397-14.401 9.971 5.79 16.531-13.932-10.614-13.933 10.615 5.788-16.531-14.4-9.971h.005l-.003-.001 17.51.397 5.033-16.775 5.032 16.775zm-52.729 52.729l17.511-.398h.002l-14.402 9.971 5.79 16.531-13.933-10.615-13.932 10.615 5.789-16.532-14.4-9.97 17.51.397 5.033-16.776 5.032 16.777zm-5.001 125.803l5.027 16.759 17.513-.397-14.401 9.971 5.79 16.531-.005-.005.003.006-13.932-10.615-13.933 10.615 5.788-16.532-14.398-9.97 17.51.396 5.029-16.759.004-.016v.003l.002-.003.003.016zm51.445 47.71l5.027 16.76 17.513-.397-14.401 9.97 5.791 16.532-.004-.004.002.004-13.933-10.615-13.933 10.615 5.788-16.532-14.398-9.97 17.51.397 5.029-16.76.004-.016v.003l.002-.003.003.016zm217.873-104.147l17.511-.397-14.401 9.969 5.79 16.533-13.934-10.616-13.931 10.616 5.789-16.533-14.399-9.969 17.509.397 5.034-16.776 5.032 16.776zm-63.958-95.997l-5.786-16.522 14.401-9.972-17.511.398-5.033-16.778-5.034 16.777-17.51-.398 14.4 9.972-5.789 16.53 13.932-10.614 13.934 10.614-.004-.007zm38.797 42.122l13.934 10.614-.004-.007-5.787-16.524 14.401-9.971-17.51.399-5.033-16.778-5.033 16.777-17.51-.398h-.001l14.399 9.972-5.787 16.529 13.931-10.613zm5.007 127.071l17.51-.397-14.4 9.971 5.79 16.531-13.933-10.614-13.932 10.615 5.788-16.531-14.401-9.971h.005l-.003-.001 17.51.397 5.033-16.775 5.033 16.775zm-51.446 47.711l17.511-.397-14.4 9.97 5.79 16.532-13.933-10.615-13.933 10.615 5.789-16.531-14.401-9.971h.002l17.51.397 5.033-16.776 5.032 16.776z", fill: "#FC0" })))), hAsync("div", { key: '11168a0466d48398c6e9318317141966b5a2f996' }, hAsync("div", { key: '3728a394fd33133169f17e26ba5135e4c7e28f0a', class: "f-ui-02 text-light" }, hAsync("p", { key: '2329c76b69487d4c4f8fff0b0daa0ab8ce0ea15c' }, this.fundedBy), hAsync("div", { key: 'c9423d9261da2d3f0ff3b5f00fc8e24522733f32', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, hAsync("span", { key: '3257b0c6f7952e4d70e35fa93ba8e4bae23369b7', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", rights), this.enableCookiesSettings ? (hAsync("eds-link", { label: this.cookiesPreferences, intent: "underline", size: "small", onClick: () => {
|
|
7218
7225
|
this.toggleCookiesConsent();
|
|
7219
|
-
} })) : null))), hAsync("div", { key: '
|
|
7226
|
+
} })) : null))), hAsync("div", { key: '9ef1a84e41dea0dda90a699a9ff8a844e3b6294d', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("div", { id: "toTop", class: "transition-all transition duration-75 opacity-0" }, hAsync("eds-button", { id: "backToTop", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, tabindex: "-1" }))) : null)))));
|
|
7220
7227
|
}
|
|
7221
7228
|
get el() { return getElement(this); }
|
|
7222
7229
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7529,17 +7536,41 @@ class EdsForm {
|
|
|
7529
7536
|
}
|
|
7530
7537
|
const actual = this.values[field.condition.field];
|
|
7531
7538
|
const expected = field.condition.value;
|
|
7532
|
-
// Handle
|
|
7533
|
-
|
|
7539
|
+
// Handle undefined/null/empty
|
|
7540
|
+
if (actual == null) {
|
|
7541
|
+
return expected == null || expected === '';
|
|
7542
|
+
}
|
|
7543
|
+
// Handle arrays (multi-select, checkboxes)
|
|
7544
|
+
if (Array.isArray(actual)) {
|
|
7545
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7546
|
+
}
|
|
7547
|
+
// Handle comma-separated strings (from checkboxes stored as "val1,val2")
|
|
7548
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7549
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7550
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7551
|
+
}
|
|
7552
|
+
// Standard comparison with normalization
|
|
7553
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7554
|
+
}
|
|
7555
|
+
normalizeValue(value) {
|
|
7556
|
+
if (value == null) {
|
|
7557
|
+
return '';
|
|
7558
|
+
}
|
|
7559
|
+
if (typeof value === 'boolean') {
|
|
7560
|
+
return value ? 'true' : 'false';
|
|
7561
|
+
}
|
|
7562
|
+
if (typeof value === 'number') {
|
|
7563
|
+
return String(value);
|
|
7564
|
+
}
|
|
7565
|
+
if (typeof value === 'string') {
|
|
7566
|
+
return value.trim().toLowerCase();
|
|
7567
|
+
}
|
|
7568
|
+
return String(value).trim().toLowerCase();
|
|
7534
7569
|
}
|
|
7535
7570
|
validateForm() {
|
|
7536
|
-
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field,
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
}
|
|
7540
|
-
const parentValue = values[field.condition.field];
|
|
7541
|
-
return parentValue === field.condition.value;
|
|
7542
|
-
});
|
|
7571
|
+
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field, _values) =>
|
|
7572
|
+
// Use a temporary object with the condition to reuse isFieldVisible logic
|
|
7573
|
+
this.isFieldVisible(field));
|
|
7543
7574
|
this.errors = errors;
|
|
7544
7575
|
this.hasError = hasError;
|
|
7545
7576
|
}
|
|
@@ -7553,8 +7584,22 @@ class EdsForm {
|
|
|
7553
7584
|
if (!field.condition) {
|
|
7554
7585
|
return true;
|
|
7555
7586
|
}
|
|
7556
|
-
const
|
|
7557
|
-
|
|
7587
|
+
const actual = values[field.condition.field];
|
|
7588
|
+
const expected = field.condition.value;
|
|
7589
|
+
// Handle undefined/null/empty
|
|
7590
|
+
if (actual == null) {
|
|
7591
|
+
return expected == null || expected === '';
|
|
7592
|
+
}
|
|
7593
|
+
// Handle arrays
|
|
7594
|
+
if (Array.isArray(actual)) {
|
|
7595
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7596
|
+
}
|
|
7597
|
+
// Handle comma-separated strings
|
|
7598
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7599
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7600
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7601
|
+
}
|
|
7602
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7558
7603
|
}
|
|
7559
7604
|
});
|
|
7560
7605
|
this.values = updatedValues;
|
|
@@ -7621,8 +7666,9 @@ class EdsForm {
|
|
|
7621
7666
|
const hosts = Array.from(this.formEl.querySelectorAll('eds-input-field'));
|
|
7622
7667
|
hosts.forEach((host) => {
|
|
7623
7668
|
const root = host.shadowRoot;
|
|
7624
|
-
if (!root)
|
|
7669
|
+
if (!root) {
|
|
7625
7670
|
return;
|
|
7671
|
+
}
|
|
7626
7672
|
const fileInputs = Array.from(root.querySelectorAll('input[type="file"][name]'));
|
|
7627
7673
|
console.log(fileInputs);
|
|
7628
7674
|
fileInputs.forEach((fi) => {
|
|
@@ -7757,8 +7803,9 @@ class EdsForm {
|
|
|
7757
7803
|
handleSubmit(e) {
|
|
7758
7804
|
var _a, _b;
|
|
7759
7805
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
7760
|
-
if (this.isSubmitting)
|
|
7806
|
+
if (this.isSubmitting) {
|
|
7761
7807
|
return;
|
|
7808
|
+
}
|
|
7762
7809
|
this.isSubmitting = true;
|
|
7763
7810
|
this.validateForm();
|
|
7764
7811
|
if (this.hasError) {
|
|
@@ -7840,7 +7887,7 @@ class EdsForm {
|
|
|
7840
7887
|
else if (field.type === 'nps') {
|
|
7841
7888
|
return (hAsync("div", { class: "form-group nps-field", key: field.name }, hAsync("div", { class: "flex justify-between" }, field && (hAsync("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), hAsync("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), hAsync("div", { class: "mt-6" }, hAsync("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name] }))));
|
|
7842
7889
|
}
|
|
7843
|
-
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7890
|
+
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, link: field.link, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7844
7891
|
}
|
|
7845
7892
|
async getData() {
|
|
7846
7893
|
return this.makeFormData();
|
|
@@ -7853,9 +7900,9 @@ class EdsForm {
|
|
|
7853
7900
|
const styleClasses = this.formStyle === 'shadow'
|
|
7854
7901
|
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
7855
7902
|
: '';
|
|
7856
|
-
return (hAsync("form", { key: '
|
|
7903
|
+
return (hAsync("form", { key: '8a722f99ea8ad7b063805b3377180d73b16d96e1', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, hAsync("div", { key: '6a091913152adad7df2f8581a62d2146d9ea2f1d', class: "flex flex-col gap-y-24" }, this.title && (hAsync("span", { key: '11dc49375a4eef1dfd4994a6ba2b2876262f9f55', role: "heading", class: "f-heading-04" }, this.title)), this.description && hAsync("span", { key: 'dfa8bfa745828e8a57a4909dcbfd9f48497205c0', class: "f-body-02 text-light" }, this.description), hAsync("slot", { key: 'db2c00b99038a6feddbe057de16b1002bbf14f03' })), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
7857
7904
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7858
|
-
.map((g) => (hAsync("div", { class: "mt-32", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '
|
|
7905
|
+
.map((g) => (hAsync("div", { class: "mt-32", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: 'ed2cbf6dada2bf43c8846f5f2af8f3f0767a5b1c', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (hAsync("div", { key: '1cc4b51279214181f1894a573227cda0cbf385ee', class: "mt-32" }, hAsync("eds-button", { key: '2a004027664d1433cf625c48f3447960de9c5c84', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
7859
7906
|
}
|
|
7860
7907
|
get el() { return getElement(this); }
|
|
7861
7908
|
static get watchers() { return {
|
|
@@ -7983,7 +8030,7 @@ class EdsFrame {
|
|
|
7983
8030
|
}
|
|
7984
8031
|
}
|
|
7985
8032
|
render() {
|
|
7986
|
-
return (hAsync("div", { key: '
|
|
8033
|
+
return (hAsync("div", { key: 'dce969c76fcfbb77f315ab0203ef77136f8a449b', class: this.articleClasses() }, hAsync("div", { key: '80ab4a9035e3008708a4f4bfe53d9679a9e687d1', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: 'f065ee637af801e5fbc8039211384002dd594d84', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (hAsync("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), hAsync("div", { key: 'eae4f61cec9aab217116dbed39c54b39fc5b2040', class: "border-softer" }, this.iframeError ? (hAsync("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (hAsync("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
7987
8034
|
}
|
|
7988
8035
|
get el() { return getElement(this); }
|
|
7989
8036
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -8044,8 +8091,9 @@ class EdsFullscreenMenu {
|
|
|
8044
8091
|
this.isMenuOpen = !!event.detail;
|
|
8045
8092
|
}
|
|
8046
8093
|
onKeydown(e) {
|
|
8047
|
-
if (e.key === 'Escape' && this.isMenuOpen)
|
|
8094
|
+
if (e.key === 'Escape' && this.isMenuOpen) {
|
|
8048
8095
|
this.closeMenu();
|
|
8096
|
+
}
|
|
8049
8097
|
}
|
|
8050
8098
|
/** Opens the menu */
|
|
8051
8099
|
openMenu() {
|
|
@@ -8056,8 +8104,12 @@ class EdsFullscreenMenu {
|
|
|
8056
8104
|
this.isMenuOpen = false;
|
|
8057
8105
|
this.menuClose.emit();
|
|
8058
8106
|
}
|
|
8059
|
-
async open() {
|
|
8060
|
-
|
|
8107
|
+
async open() {
|
|
8108
|
+
this.isMenuOpen = true;
|
|
8109
|
+
}
|
|
8110
|
+
async close() {
|
|
8111
|
+
this.closeMenu();
|
|
8112
|
+
}
|
|
8061
8113
|
// Lifecycle method to add the resize event listener when component loads
|
|
8062
8114
|
componentDidLoad() {
|
|
8063
8115
|
window.addEventListener('resize', this.handleResize.bind(this));
|
|
@@ -8160,7 +8212,7 @@ class EdsGauge {
|
|
|
8160
8212
|
const textStyle = {
|
|
8161
8213
|
fontSize: `${fontSize}px`
|
|
8162
8214
|
};
|
|
8163
|
-
return (hAsync("div", { key: '
|
|
8215
|
+
return (hAsync("div", { key: '33388b250acd0aeaf3bf4888fd5ac72ba0337a42', 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: 'b920dd12644a5457b512b65e2c093ef53f339969', class: "absolute bg-inverse rounded-full", style: maskStyle }), hAsync("div", { key: '0149f680aad2c2b2cf4e308b1510d2fb3482a06f', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '31fee43895b99a2c19358acce9eee0965eef574a', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
8164
8216
|
}
|
|
8165
8217
|
static get style() { return EdsGaugeStyle0; }
|
|
8166
8218
|
static get cmpMeta() { return {
|
|
@@ -8205,9 +8257,8 @@ class EdsGlobalSearch {
|
|
|
8205
8257
|
category: 'shared-ui',
|
|
8206
8258
|
parentContext: null,
|
|
8207
8259
|
tag: this.el.tagName.toLowerCase(),
|
|
8208
|
-
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` ||
|
|
8209
|
-
|
|
8210
|
-
action: 'click',
|
|
8260
|
+
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` || 'unknow seach input query',
|
|
8261
|
+
action: 'click'
|
|
8211
8262
|
});
|
|
8212
8263
|
this.debounceTimer = window.setTimeout(() => {
|
|
8213
8264
|
this.runSearch();
|
|
@@ -8263,8 +8314,7 @@ class EdsGlobalSearch {
|
|
|
8263
8314
|
break;
|
|
8264
8315
|
case 'Enter':
|
|
8265
8316
|
event.preventDefault();
|
|
8266
|
-
if (this.selectedIndex >= 0 &&
|
|
8267
|
-
this.selectedIndex < this.results.length) {
|
|
8317
|
+
if (this.selectedIndex >= 0 && this.selectedIndex < this.results.length) {
|
|
8268
8318
|
this.selectResult(this.results[this.selectedIndex]);
|
|
8269
8319
|
}
|
|
8270
8320
|
break;
|
|
@@ -8298,7 +8348,7 @@ class EdsGlobalSearch {
|
|
|
8298
8348
|
this.selectedIndex = -1;
|
|
8299
8349
|
}
|
|
8300
8350
|
catch (err) {
|
|
8301
|
-
console.error('Search error:', err);
|
|
8351
|
+
//console.error('Search error:', err);
|
|
8302
8352
|
this.error = 'Search failed. Please try again.';
|
|
8303
8353
|
this.results = [];
|
|
8304
8354
|
this.showDropdown = true;
|
|
@@ -8315,7 +8365,7 @@ class EdsGlobalSearch {
|
|
|
8315
8365
|
parentContext: null,
|
|
8316
8366
|
tag: this.el.tagName.toLowerCase(),
|
|
8317
8367
|
name: `search-select: ${result.url}` || 'unknow search result selection',
|
|
8318
|
-
action: 'click'
|
|
8368
|
+
action: 'click'
|
|
8319
8369
|
});
|
|
8320
8370
|
window.open(result.url, '_blank', 'noopener,noreferrer');
|
|
8321
8371
|
}
|
|
@@ -8336,13 +8386,13 @@ class EdsGlobalSearch {
|
|
|
8336
8386
|
return this.results.length > 0;
|
|
8337
8387
|
}
|
|
8338
8388
|
get showEmpty() {
|
|
8339
|
-
return
|
|
8389
|
+
return this.hasSearched && !this.loading && !this.hasResults && this.query.trim();
|
|
8340
8390
|
}
|
|
8341
8391
|
render() {
|
|
8342
|
-
return (hAsync("div", { key: '
|
|
8392
|
+
return (hAsync("div", { key: '03beb0a36e20ff5e0c1213584361c9b85ef52684', class: "search-wrapper" }, hAsync("eds-input-field", { key: 'cefbfcc4c32067fc57f4425fde7e646b2ca36bc6', icon: "search", "input-id": "search-global", type: "text", name: "search-box-global", placeholder: this.placeholder, value: this.query, onInput: this.handleInput }), this.showDropdown && (hAsync("div", { key: '60a8f38d2eb06335f97f232a7e810f22ccf379b3', class: "search-dropdown", ref: (el) => (this.dropdownRef = el) }, this.loading && (hAsync("div", { key: '2e8dcab16d8fef0f0ec07bcb78fd568f91156095', class: "flex text-center justify-center p-64" }, hAsync("eds-spinner", { key: 'f512b3508fe5ba35a762346f43fa780a9b0c5c11', variant: "primary", size: "sm" }))), this.error && !this.loading && (hAsync("div", { key: '549a6ec4f84c10d5bb4449cb7aa9a4dc61a4ff05', class: "flex text-center justify-center p-16" }, hAsync("span", { key: '2de6645b976ed3d7958867447c090639b3b613a6', class: "text-error f-body-02" }, this.error))), this.showEmpty && (hAsync("div", { key: '1006b88e3508a51898f305e1a221762f9cbc0204', class: "dropdown-state" }, hAsync("eds-icon-wrapper", { key: 'bc635e10a72aaf715747f8c512ebc3d18d0657c5', icon: "search" }), hAsync("div", { key: 'd267ee5c228ae85031088faf7b44b99bacbb77f4' }, hAsync("p", { key: '526094eab25fcb55d5e5a1529c165a39e80db386', class: "f-body-02" }, "No results found"), hAsync("p", { key: '770ff6f735b09068bcb26eec2552c6e7081348ba', class: "f-ui-04 text-lightest" }, "Try different keywords")))), this.hasResults && !this.loading && (hAsync("ul", { key: '75597ab0dc1c11854e366294a12a9bd448f53877', class: "dropdown-results" }, this.results.map((result, index) => (hAsync("li", { key: result.id, "data-index": index, class: {
|
|
8343
8393
|
'result-item': true,
|
|
8344
|
-
'result-item--selected': index === this.selectedIndex
|
|
8345
|
-
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, hAsync("div", { class: "result-header" }, hAsync("span", { class: "f-body-02" }, result.title)), hAsync("div", { class: "inline" }, hAsync("eds-tag", { intent: "accent", label: result.source }), result.section &&
|
|
8394
|
+
'result-item--selected': index === this.selectedIndex
|
|
8395
|
+
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, hAsync("div", { class: "result-header" }, hAsync("span", { class: "f-body-02" }, result.title)), hAsync("div", { class: "inline" }, hAsync("eds-tag", { intent: "accent", label: result.source }), result.section && hAsync("span", { class: "result-badge" }, result.section), hAsync("span", { class: "f-ui-03-light text-lighter ml-8" }, result.url)), result.snippet && hAsync("p", { class: "result-snippet" }, this.stripHtml(result.snippet))))))), this.hasResults && !this.loading && (hAsync("div", { key: '4af4caf6e6856feaeb91218aa249950ac835e5d8', class: "dropdown-footer" }, hAsync("span", { key: '4634ee9a9a15674cae0eee784b7ee408c7707874', class: "footer-hint" }, hAsync("kbd", { key: 'ea0dd3cbb169f0db034fa3ee9019592d943398f6' }, "\u2191"), " ", hAsync("kbd", { key: 'f1fc8937f965f695b402a78c82661e0ddee8126d' }, "\u2193"), " navigate \u2022 ", hAsync("kbd", { key: '1d7de6abe02b46362c0e7d1998aaa9b78d1c1378' }, "\u21B5"), " select \u2022 ", hAsync("kbd", { key: '50d7d6ab8176e654529fa7e977dc67eadff84c3d' }, "esc"), " close")))))));
|
|
8346
8396
|
}
|
|
8347
8397
|
get el() { return getElement(this); }
|
|
8348
8398
|
static get style() { return EdsGlobalSearchStyle0; }
|
|
@@ -8368,7 +8418,7 @@ class EdsGlobalSearch {
|
|
|
8368
8418
|
}; }
|
|
8369
8419
|
}
|
|
8370
8420
|
|
|
8371
|
-
const edsHeaderCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}";
|
|
8421
|
+
const edsHeaderCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}";
|
|
8372
8422
|
var EdsHeaderStyle0 = edsHeaderCss;
|
|
8373
8423
|
|
|
8374
8424
|
/**
|
|
@@ -8425,7 +8475,7 @@ class EdsHeader {
|
|
|
8425
8475
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8426
8476
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8427
8477
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8428
|
-
return (hAsync("header", { key: '
|
|
8478
|
+
return (hAsync("header", { key: 'ebfd125d1e27d224e5702f0c7a4b8f46e279f3b7', role: "banner", class: `flex items-center justify-between relative z-10 ${classes}` }, hAsync("div", { key: '64be678f68c5d5590e0a976f46a1939320d5d9c2', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: 'a94192d8df3fb22d629d29d58d681e2a2eb0506d', type: logoType, href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: 'd7f1055e683b90d91c977ae9fef52a00f90b63a0', role: "navigation", "aria-label": "Primary", class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: 'a15b4d203bacbe7f58490b8d34dd57dc31d4f573', class: "flex gap-x-16" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "strong", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: '2d83f5093b34bdc40f574f8d5676e046029c6e5d', name: "actions" }), this.menuEnabled && (hAsync("div", { key: 'd2ad33f5ea9e55a5efb1f4dd598be5d61f1d9ab6', class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { key: 'da824afdcaa6ce68d837096bff6bdfadec4af17c', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
8429
8479
|
}
|
|
8430
8480
|
get hostEl() { return getElement(this); }
|
|
8431
8481
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -10342,7 +10392,7 @@ var tutorial = ` <svg
|
|
|
10342
10392
|
/>
|
|
10343
10393
|
</svg>`;
|
|
10344
10394
|
|
|
10345
|
-
var
|
|
10395
|
+
var upDown = ` <svg
|
|
10346
10396
|
width="20"
|
|
10347
10397
|
height="20"
|
|
10348
10398
|
viewBox="0 0 20 20"
|
|
@@ -10415,7 +10465,7 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10415
10465
|
pub: pub,
|
|
10416
10466
|
portal: portal,
|
|
10417
10467
|
user: user,
|
|
10418
|
-
|
|
10468
|
+
upDown: upDown,
|
|
10419
10469
|
search: search,
|
|
10420
10470
|
success: success,
|
|
10421
10471
|
tutorial: tutorial,
|
|
@@ -10442,7 +10492,7 @@ class EdsIconArrowDiagonal {
|
|
|
10442
10492
|
this.class = '';
|
|
10443
10493
|
}
|
|
10444
10494
|
render() {
|
|
10445
|
-
return hAsync("span", { key: '
|
|
10495
|
+
return hAsync("span", { key: '6acdb63c6b56cebeba425280366ab945cb425490', class: this.class, innerHTML: arrowDiagonal });
|
|
10446
10496
|
}
|
|
10447
10497
|
static get cmpMeta() { return {
|
|
10448
10498
|
"$flags$": 0,
|
|
@@ -10465,7 +10515,7 @@ class EdsIconArrowRight {
|
|
|
10465
10515
|
this.class = '';
|
|
10466
10516
|
}
|
|
10467
10517
|
render() {
|
|
10468
|
-
return hAsync("span", { key: '
|
|
10518
|
+
return hAsync("span", { key: 'a276fcdfda8a935cdd871d0a16a078b1948621c6', class: this.class, innerHTML: arrowRight });
|
|
10469
10519
|
}
|
|
10470
10520
|
static get cmpMeta() { return {
|
|
10471
10521
|
"$flags$": 0,
|
|
@@ -10488,7 +10538,7 @@ class EdsIconBin {
|
|
|
10488
10538
|
this.class = '';
|
|
10489
10539
|
}
|
|
10490
10540
|
render() {
|
|
10491
|
-
return hAsync("span", { key: '
|
|
10541
|
+
return hAsync("span", { key: '9aa3fb586bd4cd702b237a7104ed4c8232097999', class: this.class, innerHTML: bin });
|
|
10492
10542
|
}
|
|
10493
10543
|
static get cmpMeta() { return {
|
|
10494
10544
|
"$flags$": 0,
|
|
@@ -10511,7 +10561,7 @@ class EdsIconBluesky {
|
|
|
10511
10561
|
this.class = '';
|
|
10512
10562
|
}
|
|
10513
10563
|
render() {
|
|
10514
|
-
return hAsync("span", { key: '
|
|
10564
|
+
return hAsync("span", { key: '9adf87027690ce28aed73d736ce2d3be6a5245b5', class: this.class, innerHTML: bluesky });
|
|
10515
10565
|
}
|
|
10516
10566
|
static get cmpMeta() { return {
|
|
10517
10567
|
"$flags$": 0,
|
|
@@ -10534,7 +10584,7 @@ class EdsIconBookmark {
|
|
|
10534
10584
|
this.class = '';
|
|
10535
10585
|
}
|
|
10536
10586
|
render() {
|
|
10537
|
-
return hAsync("span", { key: '
|
|
10587
|
+
return hAsync("span", { key: '7ff03ad0ebef09a7e5beb63da0a75b6a8776ca8a', class: this.class, innerHTML: bookmark });
|
|
10538
10588
|
}
|
|
10539
10589
|
static get cmpMeta() { return {
|
|
10540
10590
|
"$flags$": 0,
|
|
@@ -10557,7 +10607,7 @@ class EdsIconChevronDown {
|
|
|
10557
10607
|
this.class = '';
|
|
10558
10608
|
}
|
|
10559
10609
|
render() {
|
|
10560
|
-
return hAsync("span", { key: '
|
|
10610
|
+
return hAsync("span", { key: 'ae0a935c50ae34d6fd9a2f65eff2625617d0fe78', class: this.class, innerHTML: chevronDown });
|
|
10561
10611
|
}
|
|
10562
10612
|
static get cmpMeta() { return {
|
|
10563
10613
|
"$flags$": 0,
|
|
@@ -10580,7 +10630,7 @@ class EdsIconChevronLeft {
|
|
|
10580
10630
|
this.class = '';
|
|
10581
10631
|
}
|
|
10582
10632
|
render() {
|
|
10583
|
-
return hAsync("span", { key: '
|
|
10633
|
+
return hAsync("span", { key: '4fc3150f6c0e74f03ad2bd45b239b3fe20b799d7', class: this.class, innerHTML: chevronLeft });
|
|
10584
10634
|
}
|
|
10585
10635
|
static get cmpMeta() { return {
|
|
10586
10636
|
"$flags$": 0,
|
|
@@ -10603,7 +10653,7 @@ class EdsIconChevronRight {
|
|
|
10603
10653
|
this.class = '';
|
|
10604
10654
|
}
|
|
10605
10655
|
render() {
|
|
10606
|
-
return hAsync("span", { key: '
|
|
10656
|
+
return hAsync("span", { key: '04ffe47e146e18b9c4cabe8694e0f99e789b4e51', class: this.class, innerHTML: chevronRight });
|
|
10607
10657
|
}
|
|
10608
10658
|
static get cmpMeta() { return {
|
|
10609
10659
|
"$flags$": 0,
|
|
@@ -10626,7 +10676,7 @@ class EdsIconChevronUp {
|
|
|
10626
10676
|
this.class = '';
|
|
10627
10677
|
}
|
|
10628
10678
|
render() {
|
|
10629
|
-
return hAsync("span", { key: '
|
|
10679
|
+
return hAsync("span", { key: 'f226a311428de578497d0bfb67d371a6974c220e', class: this.class, innerHTML: chevronUp });
|
|
10630
10680
|
}
|
|
10631
10681
|
static get cmpMeta() { return {
|
|
10632
10682
|
"$flags$": 0,
|
|
@@ -10649,7 +10699,7 @@ class EdsIconClone {
|
|
|
10649
10699
|
this.class = '';
|
|
10650
10700
|
}
|
|
10651
10701
|
render() {
|
|
10652
|
-
return hAsync("span", { key: '
|
|
10702
|
+
return hAsync("span", { key: 'ab89369ec66f8bde06e65217ef324200dd0a7579', class: this.class, innerHTML: clone });
|
|
10653
10703
|
}
|
|
10654
10704
|
static get cmpMeta() { return {
|
|
10655
10705
|
"$flags$": 0,
|
|
@@ -10672,7 +10722,7 @@ class EdsIconClose {
|
|
|
10672
10722
|
this.class = '';
|
|
10673
10723
|
}
|
|
10674
10724
|
render() {
|
|
10675
|
-
return hAsync("span", { key: '
|
|
10725
|
+
return hAsync("span", { key: '046e7605384d1c2cb30132abdde5932024e85960', class: this.class, innerHTML: close });
|
|
10676
10726
|
}
|
|
10677
10727
|
static get cmpMeta() { return {
|
|
10678
10728
|
"$flags$": 0,
|
|
@@ -10695,7 +10745,7 @@ class EdsIconCopy {
|
|
|
10695
10745
|
this.class = '';
|
|
10696
10746
|
}
|
|
10697
10747
|
render() {
|
|
10698
|
-
return hAsync("span", { key: '
|
|
10748
|
+
return hAsync("span", { key: '932738088482900ec6d4b9187ace4fb428e2c0a4', class: this.class, innerHTML: copy });
|
|
10699
10749
|
}
|
|
10700
10750
|
static get cmpMeta() { return {
|
|
10701
10751
|
"$flags$": 0,
|
|
@@ -10718,7 +10768,7 @@ class EdsIconDownload {
|
|
|
10718
10768
|
this.class = '';
|
|
10719
10769
|
}
|
|
10720
10770
|
render() {
|
|
10721
|
-
return hAsync("span", { key: '
|
|
10771
|
+
return hAsync("span", { key: 'dd478172d512fa80b8cab24e0c487c4c4710af50', class: this.class, innerHTML: download });
|
|
10722
10772
|
}
|
|
10723
10773
|
static get cmpMeta() { return {
|
|
10724
10774
|
"$flags$": 0,
|
|
@@ -10741,7 +10791,7 @@ class EdsIconDraft {
|
|
|
10741
10791
|
this.class = '';
|
|
10742
10792
|
}
|
|
10743
10793
|
render() {
|
|
10744
|
-
return hAsync("span", { key: '
|
|
10794
|
+
return hAsync("span", { key: 'f0331f4e0d7f4f5871d33dd355c8a88c286821d5', class: this.class, innerHTML: draft });
|
|
10745
10795
|
}
|
|
10746
10796
|
static get cmpMeta() { return {
|
|
10747
10797
|
"$flags$": 0,
|
|
@@ -10764,7 +10814,7 @@ class EdsIconEdit {
|
|
|
10764
10814
|
this.class = '';
|
|
10765
10815
|
}
|
|
10766
10816
|
render() {
|
|
10767
|
-
return hAsync("span", { key: '
|
|
10817
|
+
return hAsync("span", { key: 'cb85e8d511a4dc5b8628df7663bc2b4854e8ee37', class: this.class, innerHTML: edit });
|
|
10768
10818
|
}
|
|
10769
10819
|
static get cmpMeta() { return {
|
|
10770
10820
|
"$flags$": 0,
|
|
@@ -10787,7 +10837,7 @@ class EdsIconEu {
|
|
|
10787
10837
|
this.class = '';
|
|
10788
10838
|
}
|
|
10789
10839
|
render() {
|
|
10790
|
-
return hAsync("span", { key: '
|
|
10840
|
+
return hAsync("span", { key: '18981f68145f644aed9c96c62c19e0357ebbb1ad', class: this.class, innerHTML: euSvg });
|
|
10791
10841
|
}
|
|
10792
10842
|
static get cmpMeta() { return {
|
|
10793
10843
|
"$flags$": 0,
|
|
@@ -10810,7 +10860,7 @@ class EdsIconExternal {
|
|
|
10810
10860
|
this.class = '';
|
|
10811
10861
|
}
|
|
10812
10862
|
render() {
|
|
10813
|
-
return hAsync("span", { key: '
|
|
10863
|
+
return hAsync("span", { key: 'ccffc1fc9a447e4309eb67782e36bfca5d4bdb4f', class: this.class, innerHTML: arrowDiagonal });
|
|
10814
10864
|
}
|
|
10815
10865
|
static get cmpMeta() { return {
|
|
10816
10866
|
"$flags$": 0,
|
|
@@ -10833,7 +10883,7 @@ class EdsIconFacebook {
|
|
|
10833
10883
|
this.class = '';
|
|
10834
10884
|
}
|
|
10835
10885
|
render() {
|
|
10836
|
-
return hAsync("span", { key: '
|
|
10886
|
+
return hAsync("span", { key: '5be4622aebcbe17b4b40c31fd4b9dc92a102b85e', class: this.class, innerHTML: facebook });
|
|
10837
10887
|
}
|
|
10838
10888
|
static get cmpMeta() { return {
|
|
10839
10889
|
"$flags$": 0,
|
|
@@ -10856,7 +10906,7 @@ class EdsIconGitlab {
|
|
|
10856
10906
|
this.class = '';
|
|
10857
10907
|
}
|
|
10858
10908
|
render() {
|
|
10859
|
-
return hAsync("span", { key: '
|
|
10909
|
+
return hAsync("span", { key: 'e3c7d4a509e36afd5e18e5aea94d07347304702e', class: this.class, innerHTML: gitlabBlack });
|
|
10860
10910
|
}
|
|
10861
10911
|
static get cmpMeta() { return {
|
|
10862
10912
|
"$flags$": 0,
|
|
@@ -10879,7 +10929,7 @@ class EdsIconLinkedin {
|
|
|
10879
10929
|
this.class = '';
|
|
10880
10930
|
}
|
|
10881
10931
|
render() {
|
|
10882
|
-
return hAsync("span", { key: '
|
|
10932
|
+
return hAsync("span", { key: 'bb6879dfc98416128ada13c11e4e480f8774945e', class: this.class, innerHTML: linkedin });
|
|
10883
10933
|
}
|
|
10884
10934
|
static get cmpMeta() { return {
|
|
10885
10935
|
"$flags$": 0,
|
|
@@ -10902,7 +10952,7 @@ class EdsIconLoader {
|
|
|
10902
10952
|
this.class = '';
|
|
10903
10953
|
}
|
|
10904
10954
|
render() {
|
|
10905
|
-
return hAsync("span", { key: '
|
|
10955
|
+
return hAsync("span", { key: '3fcc15aef9c204836bbf4dbbfa52215913549b20', class: this.class, innerHTML: loader });
|
|
10906
10956
|
}
|
|
10907
10957
|
static get cmpMeta() { return {
|
|
10908
10958
|
"$flags$": 0,
|
|
@@ -10925,7 +10975,7 @@ class EdsIconMastodon {
|
|
|
10925
10975
|
this.class = '';
|
|
10926
10976
|
}
|
|
10927
10977
|
render() {
|
|
10928
|
-
return hAsync("span", { key: '
|
|
10978
|
+
return hAsync("span", { key: 'f02291022132866eced365b0f8d190fbb71542e3', class: this.class, innerHTML: mastodon });
|
|
10929
10979
|
}
|
|
10930
10980
|
static get cmpMeta() { return {
|
|
10931
10981
|
"$flags$": 0,
|
|
@@ -10948,7 +10998,7 @@ class EdsIconMenu {
|
|
|
10948
10998
|
this.class = '';
|
|
10949
10999
|
}
|
|
10950
11000
|
render() {
|
|
10951
|
-
return hAsync("span", { key: '
|
|
11001
|
+
return hAsync("span", { key: 'd832774f24d7e335026e35b3b9198f000389a084', class: this.class, innerHTML: menu });
|
|
10952
11002
|
}
|
|
10953
11003
|
static get cmpMeta() { return {
|
|
10954
11004
|
"$flags$": 0,
|
|
@@ -10971,7 +11021,7 @@ class EdsIconMinus {
|
|
|
10971
11021
|
this.class = '';
|
|
10972
11022
|
}
|
|
10973
11023
|
render() {
|
|
10974
|
-
return hAsync("span", { key: '
|
|
11024
|
+
return hAsync("span", { key: '4e9525934775adfffff9c709ee69c0a5ebf03565', class: this.class, innerHTML: minus });
|
|
10975
11025
|
}
|
|
10976
11026
|
static get cmpMeta() { return {
|
|
10977
11027
|
"$flags$": 0,
|
|
@@ -10994,7 +11044,7 @@ class EdsIconMore {
|
|
|
10994
11044
|
this.class = '';
|
|
10995
11045
|
}
|
|
10996
11046
|
render() {
|
|
10997
|
-
return hAsync("span", { key: '
|
|
11047
|
+
return hAsync("span", { key: 'e42d76e608591ec3ea4d1696affdaa6b1a764c31', class: this.class, innerHTML: more });
|
|
10998
11048
|
}
|
|
10999
11049
|
static get cmpMeta() { return {
|
|
11000
11050
|
"$flags$": 0,
|
|
@@ -11017,7 +11067,7 @@ class EdsIconPaper {
|
|
|
11017
11067
|
this.class = '';
|
|
11018
11068
|
}
|
|
11019
11069
|
render() {
|
|
11020
|
-
return hAsync("span", { key: '
|
|
11070
|
+
return hAsync("span", { key: '3da4ed49bfac513943d7655f4c52f48084efcda7', class: this.class, innerHTML: paper });
|
|
11021
11071
|
}
|
|
11022
11072
|
static get cmpMeta() { return {
|
|
11023
11073
|
"$flags$": 0,
|
|
@@ -11040,7 +11090,7 @@ class EdsIconPlus {
|
|
|
11040
11090
|
this.class = '';
|
|
11041
11091
|
}
|
|
11042
11092
|
render() {
|
|
11043
|
-
return hAsync("span", { key: '
|
|
11093
|
+
return hAsync("span", { key: 'a0e18b454752151c3e2ca4e32814df065364bb34', class: this.class, innerHTML: plus });
|
|
11044
11094
|
}
|
|
11045
11095
|
static get cmpMeta() { return {
|
|
11046
11096
|
"$flags$": 0,
|
|
@@ -11063,7 +11113,7 @@ class EdsIconPortal {
|
|
|
11063
11113
|
this.class = '';
|
|
11064
11114
|
}
|
|
11065
11115
|
render() {
|
|
11066
|
-
return hAsync("span", { key: '
|
|
11116
|
+
return hAsync("span", { key: 'f9bc952f9bb354dab1f4883c1909be98116b2416', class: this.class, innerHTML: portal });
|
|
11067
11117
|
}
|
|
11068
11118
|
static get cmpMeta() { return {
|
|
11069
11119
|
"$flags$": 0,
|
|
@@ -11086,7 +11136,7 @@ class EdsIconPrivate {
|
|
|
11086
11136
|
this.class = '';
|
|
11087
11137
|
}
|
|
11088
11138
|
render() {
|
|
11089
|
-
return hAsync("span", { key: '
|
|
11139
|
+
return hAsync("span", { key: '6a7653b8ef8137f6257a2e0c546200bc5afb1d2f', class: this.class, innerHTML: privat });
|
|
11090
11140
|
}
|
|
11091
11141
|
static get cmpMeta() { return {
|
|
11092
11142
|
"$flags$": 0,
|
|
@@ -11109,7 +11159,7 @@ class EdsIconPublic {
|
|
|
11109
11159
|
this.class = '';
|
|
11110
11160
|
}
|
|
11111
11161
|
render() {
|
|
11112
|
-
return hAsync("span", { key: '
|
|
11162
|
+
return hAsync("span", { key: 'fc4ebd716a4e8e8f753c65febfa701e2dbb233a8', class: this.class, innerHTML: pub });
|
|
11113
11163
|
}
|
|
11114
11164
|
static get cmpMeta() { return {
|
|
11115
11165
|
"$flags$": 0,
|
|
@@ -11132,7 +11182,7 @@ class EdsIconSearch {
|
|
|
11132
11182
|
this.class = '';
|
|
11133
11183
|
}
|
|
11134
11184
|
render() {
|
|
11135
|
-
return hAsync("span", { key: '
|
|
11185
|
+
return hAsync("span", { key: '5be70ac50bac9b7b52a2d631dcb6b1449e7b3b0a', class: this.class, innerHTML: search });
|
|
11136
11186
|
}
|
|
11137
11187
|
static get cmpMeta() { return {
|
|
11138
11188
|
"$flags$": 0,
|
|
@@ -11155,7 +11205,7 @@ class EdsIconStar {
|
|
|
11155
11205
|
this.class = '';
|
|
11156
11206
|
}
|
|
11157
11207
|
render() {
|
|
11158
|
-
return hAsync("span", { key: '
|
|
11208
|
+
return hAsync("span", { key: 'fabdb04e16a6ba928a2cb2936f7433fa1aea18ce', class: this.class, innerHTML: star });
|
|
11159
11209
|
}
|
|
11160
11210
|
static get cmpMeta() { return {
|
|
11161
11211
|
"$flags$": 0,
|
|
@@ -11178,7 +11228,7 @@ class EdsIconStart {
|
|
|
11178
11228
|
this.class = '';
|
|
11179
11229
|
}
|
|
11180
11230
|
render() {
|
|
11181
|
-
return hAsync("span", { key: '
|
|
11231
|
+
return hAsync("span", { key: '32b34d3e55370226bca150790f0791067b63ff23', class: this.class, innerHTML: start });
|
|
11182
11232
|
}
|
|
11183
11233
|
static get cmpMeta() { return {
|
|
11184
11234
|
"$flags$": 0,
|
|
@@ -11201,7 +11251,7 @@ class EdsIconSuccess {
|
|
|
11201
11251
|
this.class = '';
|
|
11202
11252
|
}
|
|
11203
11253
|
render() {
|
|
11204
|
-
return hAsync("span", { key: '
|
|
11254
|
+
return hAsync("span", { key: '645920f5bbde45082ad1c093f3f6c546b73b707e', class: this.class, innerHTML: success });
|
|
11205
11255
|
}
|
|
11206
11256
|
static get cmpMeta() { return {
|
|
11207
11257
|
"$flags$": 0,
|
|
@@ -11224,7 +11274,7 @@ class EdsIconThumbsDown {
|
|
|
11224
11274
|
this.class = '';
|
|
11225
11275
|
}
|
|
11226
11276
|
render() {
|
|
11227
|
-
return hAsync("span", { key: '
|
|
11277
|
+
return hAsync("span", { key: '15822639188c8a54d48097e5efb4e6b885d439ef', class: this.class, innerHTML: thumbsDown });
|
|
11228
11278
|
}
|
|
11229
11279
|
static get cmpMeta() { return {
|
|
11230
11280
|
"$flags$": 0,
|
|
@@ -11247,7 +11297,7 @@ class EdsIconThumbsUp {
|
|
|
11247
11297
|
this.class = '';
|
|
11248
11298
|
}
|
|
11249
11299
|
render() {
|
|
11250
|
-
return hAsync("span", { key: '
|
|
11300
|
+
return hAsync("span", { key: 'a2fdeca95d1a8efb48324eb8c9c20d39e7ad31c5', class: this.class, innerHTML: thumbsUp });
|
|
11251
11301
|
}
|
|
11252
11302
|
static get cmpMeta() { return {
|
|
11253
11303
|
"$flags$": 0,
|
|
@@ -11270,7 +11320,7 @@ class EdsIconTutorial {
|
|
|
11270
11320
|
this.class = '';
|
|
11271
11321
|
}
|
|
11272
11322
|
render() {
|
|
11273
|
-
return hAsync("span", { key: '
|
|
11323
|
+
return hAsync("span", { key: 'e1a54a7d3014760ad65851b961041f75eba7b581', class: this.class, innerHTML: tutorial });
|
|
11274
11324
|
}
|
|
11275
11325
|
static get cmpMeta() { return {
|
|
11276
11326
|
"$flags$": 0,
|
|
@@ -11293,7 +11343,7 @@ class EdsIconTwitter {
|
|
|
11293
11343
|
this.class = '';
|
|
11294
11344
|
}
|
|
11295
11345
|
render() {
|
|
11296
|
-
return hAsync("span", { key: '
|
|
11346
|
+
return hAsync("span", { key: 'ec7f7b6453668094c684e4f0a289c6f815d6ec06', class: this.class, innerHTML: twitter });
|
|
11297
11347
|
}
|
|
11298
11348
|
static get cmpMeta() { return {
|
|
11299
11349
|
"$flags$": 0,
|
|
@@ -11316,7 +11366,7 @@ class EdsIconUnknown {
|
|
|
11316
11366
|
this.class = '';
|
|
11317
11367
|
}
|
|
11318
11368
|
render() {
|
|
11319
|
-
return hAsync("span", { key: '
|
|
11369
|
+
return hAsync("span", { key: 'fa19613df173185cc312af7acef6bec4d187cab1', class: this.class, innerHTML: unknown });
|
|
11320
11370
|
}
|
|
11321
11371
|
static get cmpMeta() { return {
|
|
11322
11372
|
"$flags$": 0,
|
|
@@ -11339,7 +11389,7 @@ class EdsIconUpdown {
|
|
|
11339
11389
|
this.class = '';
|
|
11340
11390
|
}
|
|
11341
11391
|
render() {
|
|
11342
|
-
return hAsync("span", { key: '
|
|
11392
|
+
return hAsync("span", { key: '2339adac1ec08234dd1cf09e2bde6e4e55f35109', class: this.class, innerHTML: upDown });
|
|
11343
11393
|
}
|
|
11344
11394
|
static get cmpMeta() { return {
|
|
11345
11395
|
"$flags$": 0,
|
|
@@ -11362,7 +11412,7 @@ class EdsIconUser {
|
|
|
11362
11412
|
this.class = '';
|
|
11363
11413
|
}
|
|
11364
11414
|
render() {
|
|
11365
|
-
return hAsync("span", { key: '
|
|
11415
|
+
return hAsync("span", { key: '6e4ca330f0095f1d0b96919a5d35e5ee09f22bdf', class: this.class, innerHTML: user });
|
|
11366
11416
|
}
|
|
11367
11417
|
static get cmpMeta() { return {
|
|
11368
11418
|
"$flags$": 0,
|
|
@@ -11385,7 +11435,7 @@ class EdsIconView {
|
|
|
11385
11435
|
this.class = '';
|
|
11386
11436
|
}
|
|
11387
11437
|
render() {
|
|
11388
|
-
return hAsync("span", { key: '
|
|
11438
|
+
return hAsync("span", { key: '3414ec5143236a2c8821f460a50684b0a6b565a9', class: this.class, innerHTML: view });
|
|
11389
11439
|
}
|
|
11390
11440
|
static get cmpMeta() { return {
|
|
11391
11441
|
"$flags$": 0,
|
|
@@ -11464,7 +11514,7 @@ class EdsIconYoutube {
|
|
|
11464
11514
|
this.class = '';
|
|
11465
11515
|
}
|
|
11466
11516
|
render() {
|
|
11467
|
-
return hAsync("span", { key: '
|
|
11517
|
+
return hAsync("span", { key: '3a868a9858e68a534e7eab57a7887dfc636d8b95', class: this.class, innerHTML: youtube });
|
|
11468
11518
|
}
|
|
11469
11519
|
static get cmpMeta() { return {
|
|
11470
11520
|
"$flags$": 0,
|
|
@@ -11540,10 +11590,10 @@ class EdsImg {
|
|
|
11540
11590
|
imgOpts['loading'] = 'lazy';
|
|
11541
11591
|
imgOpts['decoding'] = 'async';
|
|
11542
11592
|
}
|
|
11543
|
-
return (hAsync("div", { key: '
|
|
11593
|
+
return (hAsync("div", { key: '20e754d7535484aedde364592c7a08a68e760b7d', class: {
|
|
11544
11594
|
'items-center justify-center': true,
|
|
11545
11595
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11546
|
-
} }, hAsync("picture", { key: '
|
|
11596
|
+
} }, hAsync("picture", { key: 'c6b1561f51587341af50b4129242424961b13788' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: '136c7a183750f61d237fd0845750e70f38603f48', ref: (el) => (this.img = el), class: {
|
|
11547
11597
|
'effect-opacity object-cover object-center': true,
|
|
11548
11598
|
'opacity-100': this.loaded,
|
|
11549
11599
|
'opacity-0': !this.loaded
|
|
@@ -11625,7 +11675,7 @@ class EdsInput {
|
|
|
11625
11675
|
render() {
|
|
11626
11676
|
const withIcon = !!this.icon;
|
|
11627
11677
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11628
|
-
return (hAsync("div", { key: '
|
|
11678
|
+
return (hAsync("div", { key: '10cacc49f2e61f8b357d1d0dd303822d7b3d7800', 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", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined }, (this.type === 'number'
|
|
11629
11679
|
? {
|
|
11630
11680
|
min: this.min,
|
|
11631
11681
|
max: this.max,
|
|
@@ -11636,7 +11686,7 @@ class EdsInput {
|
|
|
11636
11686
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11637
11687
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11638
11688
|
${this.error ? 'input-error' : ''}
|
|
11639
|
-
`, "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: '
|
|
11689
|
+
`, "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: '2f17e830e7d5977c06dff45e248ec6d4bcf2885c', 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: 'd171f505b869787c01945720489343a6d57e02bf', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
|
|
11640
11690
|
}
|
|
11641
11691
|
get el() { return getElement(this); }
|
|
11642
11692
|
static get watchers() { return {
|
|
@@ -11775,7 +11825,7 @@ class EdsInputField {
|
|
|
11775
11825
|
}
|
|
11776
11826
|
render() {
|
|
11777
11827
|
const inputOpts = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, (this.type === 'number' ? { min: this.min, max: this.max, step: this.step } : {}));
|
|
11778
|
-
return (hAsync("div", { key: '
|
|
11828
|
+
return (hAsync("div", { key: '646cf997652c5401115c5f7d96b29cf752feeacf' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4" }, hAsync("div", { class: "flex justify-between mb-4" }, 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-4 gap-y-4", 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("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? 'text-lighter' : ''}` }, 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.checked })), 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 mb-4" }, 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.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
11779
11829
|
var _a, _b, _c;
|
|
11780
11830
|
const rangeProps = {
|
|
11781
11831
|
name: inputOpts.name,
|
|
@@ -11788,7 +11838,7 @@ class EdsInputField {
|
|
|
11788
11838
|
const opt = this.parsedOptions;
|
|
11789
11839
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11790
11840
|
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 })));
|
|
11791
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11841
|
+
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: 'dd39d14a7bd629d259d9a04cd83530330d05b6fd', class: "mt-6" }, hAsync("eds-input-footer", { key: 'd909871d432841039a82a57d174f71a3733cf51c', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
|
|
11792
11842
|
}
|
|
11793
11843
|
static get delegatesFocus() { return true; }
|
|
11794
11844
|
get hostEl() { return getElement(this); }
|
|
@@ -11840,7 +11890,7 @@ class EdsInputFooter {
|
|
|
11840
11890
|
this.link = undefined;
|
|
11841
11891
|
}
|
|
11842
11892
|
render() {
|
|
11843
|
-
return (hAsync("div", { key: '
|
|
11893
|
+
return (hAsync("div", { key: 'ac60e5d56a86af64ea34445f9376c942258c9026' }, this.error && this.errorMessage && (hAsync("div", { key: '25ff09f276f7028e1b2877133ab639b35cdebaba', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: '2add9a34a966428af96598f3e8e07f9535da8728', icon: "warning" }), hAsync("p", { key: 'bcb624339190c0585e960a0c4debc3fec2ada4eb', class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '00944237618f325774f316faaf4620e5eb507289', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("eds-link", { key: '464c5a59e9c36a06f1cdae9be9e09a4f8b05d282', label: this.link.label, url: this.link.url, intent: "underline", size: "small", external: true }))));
|
|
11844
11894
|
}
|
|
11845
11895
|
static get style() { return EdsInputFooterStyle0; }
|
|
11846
11896
|
static get cmpMeta() { return {
|
|
@@ -11871,7 +11921,7 @@ class EdsInputLabel {
|
|
|
11871
11921
|
this.disabled = false;
|
|
11872
11922
|
}
|
|
11873
11923
|
render() {
|
|
11874
|
-
return (hAsync("label", { key: '
|
|
11924
|
+
return (hAsync("label", { key: '8a421c62ddec859bd7837454aa664a116001fd31', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: 'ad49202fb172a182822587248c141e0f8d7bcc6f' }, hAsync("span", { key: 'e682ff5f3ac83b8adce37c8c9893c2aa235c97b1', "aria-hidden": "true" }, "*"), hAsync("span", { key: '343d2abb7c452fc2a6a67b04727237fea9519838', class: "sr-only" }, "required")))));
|
|
11875
11925
|
}
|
|
11876
11926
|
static get style() { return EdsInputLabelStyle0; }
|
|
11877
11927
|
static get cmpMeta() { return {
|
|
@@ -11937,7 +11987,7 @@ class EdsInputRange {
|
|
|
11937
11987
|
return this.inputElement;
|
|
11938
11988
|
}
|
|
11939
11989
|
render() {
|
|
11940
|
-
return (hAsync("div", { key: '
|
|
11990
|
+
return (hAsync("div", { key: '27c60fe7ad5cf3cf8255129529ef64905c87b609', class: "relative flex flex-col items-start" }, hAsync("input", { key: '8ef115e18b6afd956c57a30cd4b9ee45ecd79334', 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", tabindex: "0", role: "slider", "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: 'beb95f6aa032db57ec401839cea48ac1d3a1861d', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
11941
11991
|
}
|
|
11942
11992
|
get el() { return getElement(this); }
|
|
11943
11993
|
static get watchers() { return {
|
|
@@ -12032,7 +12082,7 @@ class EdsInputSearch {
|
|
|
12032
12082
|
return this.inputElement;
|
|
12033
12083
|
}
|
|
12034
12084
|
render() {
|
|
12035
|
-
return (hAsync("div", { key: '
|
|
12085
|
+
return (hAsync("div", { key: '4057975b193458daff5cc779e7671f3aa8df82fb', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '47366d7737c3c044aa97f6e5a5a76301c5f688ae', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), hAsync("input", { key: '70195ba54b9afd1c953735899d6fbfd668f81c71', 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}`,
|
|
12036
12086
|
//onInput={this.onInput}
|
|
12037
12087
|
onChange: this.onChange })));
|
|
12038
12088
|
}
|
|
@@ -12086,12 +12136,12 @@ class EdsInputSelect {
|
|
|
12086
12136
|
const selectId = this.inputId || this.name;
|
|
12087
12137
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
12088
12138
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
12089
|
-
return (hAsync("div", { key: '
|
|
12139
|
+
return (hAsync("div", { key: '5f73cb76010cac41f433921395aaf779765e298a', class: "relative" }, hAsync("select", { key: '0705adad43076b6048900d5c62b8be2dff090270', id: selectId, name: this.name, class: {
|
|
12090
12140
|
input: true,
|
|
12091
12141
|
'input-error': this.error,
|
|
12092
12142
|
'px-4': true,
|
|
12093
12143
|
'py-2': true
|
|
12094
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
12144
|
+
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '6b2d7856821cfe804f63f6f289f78bd3f7a8273c', 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: '161692e967ed9c094feb171c6d067058dfafa146', 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: '513a74b4753a08280326970dfbb16642b5c6b986', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
12095
12145
|
}
|
|
12096
12146
|
static get cmpMeta() { return {
|
|
12097
12147
|
"$flags$": 0,
|
|
@@ -12180,7 +12230,6 @@ const linkStyles = cva([
|
|
|
12180
12230
|
false: ''
|
|
12181
12231
|
},
|
|
12182
12232
|
size: {
|
|
12183
|
-
underline: 'f-body-02 ',
|
|
12184
12233
|
small: 'min-h-36 f-ui-02 px-12',
|
|
12185
12234
|
large: 'min-h-44 f-ui-01 px-16'
|
|
12186
12235
|
}
|
|
@@ -12233,6 +12282,16 @@ const linkStyles = cva([
|
|
|
12233
12282
|
intent: 'inverse',
|
|
12234
12283
|
isActive: true,
|
|
12235
12284
|
class: 'before:!opacity-100'
|
|
12285
|
+
},
|
|
12286
|
+
{
|
|
12287
|
+
intent: 'underline',
|
|
12288
|
+
size: 'small',
|
|
12289
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-02'
|
|
12290
|
+
},
|
|
12291
|
+
{
|
|
12292
|
+
intent: 'underline',
|
|
12293
|
+
size: 'large',
|
|
12294
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-01'
|
|
12236
12295
|
}
|
|
12237
12296
|
],
|
|
12238
12297
|
defaultVariants: {
|
|
@@ -12259,7 +12318,7 @@ class EdsLink {
|
|
|
12259
12318
|
registerInstance(this, hostRef);
|
|
12260
12319
|
this.parentContext = null; // Accepts the entire event detail or null
|
|
12261
12320
|
this.label = undefined;
|
|
12262
|
-
this.intent =
|
|
12321
|
+
this.intent = 'primary';
|
|
12263
12322
|
this.icon = undefined;
|
|
12264
12323
|
this.iconPos = 'right';
|
|
12265
12324
|
this.iconSmall = false;
|
|
@@ -12271,7 +12330,6 @@ class EdsLink {
|
|
|
12271
12330
|
this.ariaLabel = undefined;
|
|
12272
12331
|
this.disabled = false;
|
|
12273
12332
|
this.hideLabelOnSmallScreen = false;
|
|
12274
|
-
this.extraClass = undefined;
|
|
12275
12333
|
}
|
|
12276
12334
|
handleParentContext(event) {
|
|
12277
12335
|
if (event.target !== this.el) {
|
|
@@ -12316,9 +12374,6 @@ class EdsLink {
|
|
|
12316
12374
|
}
|
|
12317
12375
|
}
|
|
12318
12376
|
getLinkSize() {
|
|
12319
|
-
if (this.intent === 'underline') {
|
|
12320
|
-
return 'underline';
|
|
12321
|
-
}
|
|
12322
12377
|
return this.size;
|
|
12323
12378
|
}
|
|
12324
12379
|
renderLeftIcon() {
|
|
@@ -12347,12 +12402,13 @@ class EdsLink {
|
|
|
12347
12402
|
isActive: this.current,
|
|
12348
12403
|
hasIcon: !!this.icon
|
|
12349
12404
|
});
|
|
12405
|
+
const safeUrl = typeof this.url === 'string' && this.url.length ? this.url : undefined;
|
|
12350
12406
|
const isInteractive = !this.disabled;
|
|
12351
12407
|
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
12352
12408
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
12353
12409
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
12354
12410
|
: '';
|
|
12355
|
-
return (hAsync("a", { key: '
|
|
12411
|
+
return (hAsync("a", { key: '1ae7cb8fda0fdc0a4396504a4dfa13afa428d98f', class: `${classes || ''}`, href: isInteractive ? safeUrl : undefined, target: this.external && isInteractive ? '_blank' : undefined, rel: this.external && isInteractive ? 'noopener noreferrer' : undefined, tabIndex: isInteractive ? 0 : -1, "aria-label": isIconOnly ? this.ariaLabel || 'Link' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-current": this.current ? 'page' : undefined, role: this.disabled ? 'link' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, hAsync("span", { key: '7fc137758d974ba4a3a974f7b22587d3ca3b031e', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && hAsync("span", { key: '7c79baae49579eef264ab6546aa3ac8e044dcb46', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
12356
12412
|
}
|
|
12357
12413
|
get el() { return getElement(this); }
|
|
12358
12414
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -12372,8 +12428,7 @@ class EdsLink {
|
|
|
12372
12428
|
"url": [1],
|
|
12373
12429
|
"ariaLabel": [1, "aria-label"],
|
|
12374
12430
|
"disabled": [4],
|
|
12375
|
-
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12376
|
-
"extraClass": [1, "extra-class"]
|
|
12431
|
+
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12377
12432
|
},
|
|
12378
12433
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
12379
12434
|
"$lazyBundleId$": "-",
|
|
@@ -12460,7 +12515,7 @@ class EdsLogo {
|
|
|
12460
12515
|
}
|
|
12461
12516
|
render() {
|
|
12462
12517
|
const logoContent = this.getLogo();
|
|
12463
|
-
return (hAsync("a", { key: '
|
|
12518
|
+
return (hAsync("a", { key: '0a0d4dd69a1af10c1c571a56ed0f698d95652405', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: '0d8ca0f9c647b3b12daf944b9c2919a93134bec2', innerHTML: logoContent })));
|
|
12464
12519
|
}
|
|
12465
12520
|
get el() { return getElement(this); }
|
|
12466
12521
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12735,9 +12790,9 @@ class EdsModal {
|
|
|
12735
12790
|
render() {
|
|
12736
12791
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12737
12792
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12738
|
-
return (hAsync("div", { key: '
|
|
12793
|
+
return (hAsync("div", { key: '6b7cbab7db29bb09415bb9538d69ac9a238a7776', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999991 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: '56f00980b2f843b5c1ce85502409d4711d89fad7', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
12739
12794
|
,
|
|
12740
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12795
|
+
onClick: () => this.close() })), hAsync("div", { key: '687e1975bb8a17b0a6eb42038f72117dc71ca876', class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: '653886c1ee090152b0a9d8dbb6e554762496167f', 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: 'efefadd7e6630d9d9b498e68480a41b604c16c9f', id: titleId, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), hAsync("eds-button", { key: '79a156bd0640990911f1480a4e6becc7c4c20d7b', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), hAsync("div", { key: '802a6cc72f1bb41e8f907baa8d37cb5a01baf0cf', class: "pt-8 px-20 py-20" }, hAsync("slot", { key: '1a59aaa764e4c4ed972de7a700ddf8f716e40e58' })))));
|
|
12741
12796
|
}
|
|
12742
12797
|
get el() { return getElement(this); }
|
|
12743
12798
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12769,71 +12824,84 @@ class EdsNps {
|
|
|
12769
12824
|
this.nps = createEvent(this, "nps", 7);
|
|
12770
12825
|
this.min = 0;
|
|
12771
12826
|
this.max = 10;
|
|
12827
|
+
this.btnRefs = [];
|
|
12828
|
+
this.onSelect = (value) => {
|
|
12829
|
+
this.selectedValue = value;
|
|
12830
|
+
this.nps.emit(value);
|
|
12831
|
+
// Move focus to the selected button (like your rating component)
|
|
12832
|
+
requestAnimationFrame(() => {
|
|
12833
|
+
var _a, _b;
|
|
12834
|
+
const idx = value - this.min;
|
|
12835
|
+
(_b = (_a = this.btnRefs[idx]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12836
|
+
});
|
|
12837
|
+
};
|
|
12838
|
+
this.handleKeyNav = (e) => {
|
|
12839
|
+
const { key } = e;
|
|
12840
|
+
const navigational = ['ArrowRight', 'ArrowLeft', 'Home', 'End', ' ', 'Enter'];
|
|
12841
|
+
if (!navigational.includes(key)) {
|
|
12842
|
+
return;
|
|
12843
|
+
}
|
|
12844
|
+
e.preventDefault();
|
|
12845
|
+
const count = this.max - this.min + 1;
|
|
12846
|
+
// Derive current index from selectedValue; if none, use 0 (first)
|
|
12847
|
+
let currentIdx = this.selectedValue == null ? 0 : this.selectedValue - this.min;
|
|
12848
|
+
switch (key) {
|
|
12849
|
+
case 'ArrowRight':
|
|
12850
|
+
currentIdx = Math.min(count - 1, currentIdx + 1);
|
|
12851
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12852
|
+
break;
|
|
12853
|
+
case 'ArrowLeft':
|
|
12854
|
+
currentIdx = Math.max(0, currentIdx - 1);
|
|
12855
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12856
|
+
break;
|
|
12857
|
+
case 'Home':
|
|
12858
|
+
this.setActiveByIndex(0, /*commit*/ false);
|
|
12859
|
+
break;
|
|
12860
|
+
case 'End':
|
|
12861
|
+
this.setActiveByIndex(count - 1, /*commit*/ false);
|
|
12862
|
+
break;
|
|
12863
|
+
case ' ':
|
|
12864
|
+
case 'Enter':
|
|
12865
|
+
// Commit current focused item
|
|
12866
|
+
this.onSelect(this.min + currentIdx);
|
|
12867
|
+
break;
|
|
12868
|
+
}
|
|
12869
|
+
};
|
|
12772
12870
|
this.question = undefined;
|
|
12773
12871
|
this.leftLabel = undefined;
|
|
12774
12872
|
this.rightLabel = undefined;
|
|
12775
12873
|
this.selectedValue = null;
|
|
12776
12874
|
}
|
|
12777
|
-
|
|
12875
|
+
/** Move visual highlight & roving tabindex; optionally commit selection */
|
|
12876
|
+
setActiveByIndex(index, commit = false) {
|
|
12877
|
+
var _a;
|
|
12878
|
+
const value = this.min + index;
|
|
12879
|
+
// Update highlight so focus movement is visible (like your rating)
|
|
12778
12880
|
this.selectedValue = value;
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
switch (e.key) {
|
|
12785
|
-
case 'ArrowRight':
|
|
12786
|
-
case 'ArrowLeft': {
|
|
12787
|
-
e.preventDefault();
|
|
12788
|
-
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12789
|
-
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12790
|
-
this.activateRadio(radios, nextIndex);
|
|
12791
|
-
break;
|
|
12792
|
-
}
|
|
12793
|
-
case 'Home': {
|
|
12794
|
-
e.preventDefault();
|
|
12795
|
-
this.activateRadio(radios, 0);
|
|
12796
|
-
break;
|
|
12797
|
-
}
|
|
12798
|
-
case 'End': {
|
|
12799
|
-
e.preventDefault();
|
|
12800
|
-
this.activateRadio(radios, this.max);
|
|
12801
|
-
break;
|
|
12802
|
-
}
|
|
12803
|
-
case 'Enter':
|
|
12804
|
-
case ' ': {
|
|
12805
|
-
e.preventDefault();
|
|
12806
|
-
if (currentIndex >= 0) {
|
|
12807
|
-
this.handleClick(this.min + currentIndex);
|
|
12808
|
-
}
|
|
12809
|
-
break;
|
|
12810
|
-
}
|
|
12811
|
-
case 'Escape': {
|
|
12812
|
-
e.preventDefault();
|
|
12813
|
-
if (currentIndex >= 0) {
|
|
12814
|
-
radios[currentIndex].blur();
|
|
12815
|
-
}
|
|
12816
|
-
break;
|
|
12817
|
-
}
|
|
12818
|
-
default:
|
|
12819
|
-
return;
|
|
12881
|
+
// Focus the button host (ensure eds-button forwards focus to its inner <button>)
|
|
12882
|
+
const target = this.btnRefs[index];
|
|
12883
|
+
typeof (target === null || target === void 0 ? void 0 : target.focusInner) === 'function' ? target.focusInner() : (_a = target === null || target === void 0 ? void 0 : target.focus) === null || _a === void 0 ? void 0 : _a.call(target);
|
|
12884
|
+
if (commit) {
|
|
12885
|
+
this.onSelect(value);
|
|
12820
12886
|
}
|
|
12821
12887
|
}
|
|
12822
|
-
activateRadio(radios, index) {
|
|
12823
|
-
const target = radios[index];
|
|
12824
|
-
const value = this.min + index;
|
|
12825
|
-
this.handleClick(value);
|
|
12826
|
-
target.focus();
|
|
12827
|
-
}
|
|
12828
12888
|
render() {
|
|
12829
12889
|
const count = this.max - this.min + 1;
|
|
12830
|
-
|
|
12831
|
-
return (hAsync("div", { key: '19326c22d2b5c9f2fbc97bfb3c3d958d14cdfa25', class: "eds-nps" }, hAsync("eds-input-label", { key: '046239977d2dc639eabfc60a67df62011833a983', id: "nps-question", name: "nps-question", label: this.question }), hAsync("div", { key: 'e296b8ff3a081f42263ee0c0a28ef3f304b1e1c0', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
|
|
12890
|
+
return (hAsync("div", { key: 'f5e19e0f750c0de6da3bae5713dca0e13eba85fc', class: "eds-nps" }, hAsync("eds-input-label", { key: '3ff611a932976956735395fb531d9a800b554974', id: "nps-question", name: "nps-question", label: this.question }), hAsync("div", { key: 'da0c3af26dd24d7dc618675aa7f197f55023230f', id: "nps-buttons", role: "radiogroup", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: this.handleKeyNav }, Array.from({ length: count }, (_, i) => {
|
|
12832
12891
|
const val = this.min + i;
|
|
12833
12892
|
const isSelected = val === this.selectedValue;
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12893
|
+
// Roving tabindex: focusable is the selected; if none selected yet, first is focusable
|
|
12894
|
+
const tabIndex = isSelected || (this.selectedValue == null && i === 0) ? 0 : -1;
|
|
12895
|
+
return (hAsync("div", { class: "grid-col-span-1", key: val }, hAsync("eds-button", { ref: (el) => (this.btnRefs[i] = el), role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": `${val}`,
|
|
12896
|
+
// Use onClick so keyboard activation on inner <button> works natively
|
|
12897
|
+
onClick: () => this.onSelect(val), tabIndex: tabIndex, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", label: `${val}`,
|
|
12898
|
+
// Optional: keep highlight in sync when tabbing into the group
|
|
12899
|
+
onFocus: () => {
|
|
12900
|
+
// Only move highlight on initial focus or when roving; remove if you
|
|
12901
|
+
// want focus without highlight.
|
|
12902
|
+
this.selectedValue = val;
|
|
12903
|
+
} })));
|
|
12904
|
+
})), hAsync("div", { key: '10b2f854cff8192e54ee30feb44ad4143c54ad10', class: "flex justify-between mt-8" }, hAsync("span", { key: '361b421b368219f9d7aa6306d912913e9d401fa0', class: "f-ui-04 text-light ml-4" }, this.leftLabel), hAsync("span", { key: '2969496e1b6f772fcdf49667f66eee6dee6760fa', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
|
|
12837
12905
|
}
|
|
12838
12906
|
get el() { return getElement(this); }
|
|
12839
12907
|
static get style() { return EdsNpsStyle0; }
|
|
@@ -13105,7 +13173,7 @@ class EdsPagination {
|
|
|
13105
13173
|
}
|
|
13106
13174
|
render() {
|
|
13107
13175
|
const navigableIndex = -1; // Track index for keyboard navigation
|
|
13108
|
-
return (hAsync("div", { key: '
|
|
13176
|
+
return (hAsync("div", { key: '17128145803ac6af5f37d5e7c7f0576961c3e372' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: 'e50738bfadd0b115ed2d05b81199f0d4cfadda18', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, hAsync("span", { key: '230f2306254d7c5fa2bfd354f308e4fa6b5c2994', class: "text-light sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination Navigation", "aria-describedby": this.mode === 'default' ? 'pagination-info' : undefined, onKeyDown: this.handleKeyDown }, hAsync("ul", { class: "flex items-center justify-center gap-x-8", role: "list" }, hAsync("li", { class: "mr-auto" }, this.useButtons ? (hAsync("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, hAsync("eds-button", { label: this.prevLabel, disabled: this.mode === 'navigator' ? !this.prevUrl : this.isFirstPage(), "aria-label": "Go to previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "ghost", "extra-class": "!p-8 lg:!pr-12 pagination-button", onClick: (event) => {
|
|
13109
13177
|
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
13110
13178
|
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
13111
13179
|
}
|
|
@@ -13312,7 +13380,7 @@ class EdsProgressBar {
|
|
|
13312
13380
|
]
|
|
13313
13381
|
.filter(Boolean)
|
|
13314
13382
|
.join(' ');
|
|
13315
|
-
return (hAsync("div", { key: '
|
|
13383
|
+
return (hAsync("div", { key: 'a3a56c8ed86104fb26ce5a3f7d583d02705b59d0', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, hAsync("div", { key: 'ef56ff5501bfec77174a90dafabdd35210936c9d', class: fillClasses, style: { width: `${progressValue}%` } }), hAsync("div", { key: '69eec5cd3a6b8fec6defa621b69559da47df66a6', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, hAsync("span", { key: '7fdeea8fbe2e600daca350e67a27fbed9708c1e1', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
13316
13384
|
}
|
|
13317
13385
|
static get style() { return EdsProgressBarStyle0; }
|
|
13318
13386
|
static get cmpMeta() { return {
|
|
@@ -13395,7 +13463,7 @@ class EdsRating {
|
|
|
13395
13463
|
this.onSelect(next);
|
|
13396
13464
|
}
|
|
13397
13465
|
render() {
|
|
13398
|
-
return (hAsync("div", { key: '
|
|
13466
|
+
return (hAsync("div", { key: '5d1cf924d2a59b4141eac1bd4f122c9cf640cf9c', id: "rating-buttons", role: "group", "aria-labelledby": "rating", class: "stars flex space-x-1 my-8", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: this.ratingCount }, (_, index) => {
|
|
13399
13467
|
const starRating = index + 1;
|
|
13400
13468
|
const isSelected = starRating <= this.selectedRating;
|
|
13401
13469
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -13445,7 +13513,7 @@ class EdsSectionCore {
|
|
|
13445
13513
|
}
|
|
13446
13514
|
render() {
|
|
13447
13515
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
13448
|
-
return (hAsync(TagType, { key: '
|
|
13516
|
+
return (hAsync(TagType, { key: '3c75c9cda6a41c0d4243c3c111d7cc95f3efb97b' }, hAsync("eds-section-heading", { key: '05b4d011aa1b8f489fe8aa0fd6d43b824da03370', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '1749580398e56d38d83d5f5fdd87f43867a554cb' })));
|
|
13449
13517
|
}
|
|
13450
13518
|
static get style() { return EdsSectionCoreStyle0; }
|
|
13451
13519
|
static get cmpMeta() { return {
|
|
@@ -13500,12 +13568,12 @@ class EdsSectionHeading {
|
|
|
13500
13568
|
render() {
|
|
13501
13569
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
13502
13570
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
13503
|
-
return (hAsync(TagType, { key: '
|
|
13571
|
+
return (hAsync(TagType, { key: '18614645f329d9ccfe6104b544ff306c6190173a', class: {
|
|
13504
13572
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
13505
13573
|
container: this.withContainer,
|
|
13506
13574
|
'pt-48': this.spacingLarge,
|
|
13507
13575
|
'pt-28': !this.spacingLarge
|
|
13508
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13576
|
+
} }, hAsync(HeadingTag, { key: 'ce699077313e9ee8d8a66e68af667451351a35a6', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
13509
13577
|
}
|
|
13510
13578
|
static get cmpMeta() { return {
|
|
13511
13579
|
"$flags$": 0,
|
|
@@ -13523,6 +13591,186 @@ class EdsSectionHeading {
|
|
|
13523
13591
|
}; }
|
|
13524
13592
|
}
|
|
13525
13593
|
|
|
13594
|
+
const edsSidebarCss = ":host{display:block;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;transition:width 0.3s ease}:host(.collapsed){width:4rem}:host::-webkit-scrollbar{width:8px}:host::-webkit-scrollbar-track{background:transparent}:host::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.2);border-radius:4px}:host::-webkit-scrollbar-thumb:hover{background:rgba(0, 0, 0, 0.3)}.sidebar-nav{padding:0.5rem 0}.sidebar-header{display:flex;justify-content:flex-end;padding:0.5rem 0.75rem;margin-bottom:0.5rem}:host(.collapsed) .sidebar-header{justify-content:center;padding:0.5rem}.collapse-toggle{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:none;border:none;cursor:pointer;padding:0;border-radius:0.375rem;transition:background-color 0.15s ease;color:inherit}.collapse-toggle:hover{background-color:rgba(0, 0, 0, 0.08)}.collapse-toggle:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:2px}.sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.125rem}.sidebar-item{display:flex;flex-direction:column}.sidebar-item-content{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;cursor:pointer;user-select:none;word-break:break-word;transition:background-color 0.15s ease;border-radius:0.375rem;margin:0 0.5rem;position:relative}:host(.collapsed) .sidebar-item-content{justify-content:center;padding:0.75rem;margin:0 0.5rem}.sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}.sidebar-item-content:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:-2px;z-index:1}.sidebar-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem}.sidebar-content-wrapper{display:flex;align-items:center;gap:0.5rem;flex:1;min-width:0}.sidebar-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;margin:-0.125rem 0;pointer-events:none}.sidebar-link-wrapper{flex:1;min-width:0;pointer-events:none}.sidebar-link{font-weight:400;pointer-events:none}.sidebar-children{list-style:none;margin:0.25rem 0 0 0;padding:0;display:flex;flex-direction:column;gap:0.125rem;overflow:hidden;animation:slideDown 0.2s ease}@keyframes slideDown{from{opacity:0;transform:translateY(-0.25rem)}to{opacity:1;transform:translateY(0)}}.sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.collapsed) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}.sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}.sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}.sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}.sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}.sidebar-item.level-5 .sidebar-item-content{padding-left:7rem}:host(.theme-default) .sidebar-item-content{border-radius:0.375rem;margin:0 0.5rem;padding:0.5rem 0.75rem}:host(.theme-default.collapsed) .sidebar-item-content{margin:0 0.5rem;border-radius:0.375rem}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:transparent}:host(.theme-default) .sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:600}:host(.theme-default) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.theme-default) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-default) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-default) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-default) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-item-content{border-radius:0;margin:0;padding-left:1rem;padding-right:1rem}:host(.theme-minimal.collapsed) .sidebar-item-content{margin:0 0.25rem;border-radius:0.375rem}:host(.theme-minimal) .sidebar-item-content:hover{background-color:var(--grey-300)}:host(.theme-minimal) .sidebar-item.active>.sidebar-item-content{background-color:var(--grey-400);border-left:3px solid var(--grey-900);padding-left:calc(1rem - 3px)}:host(.theme-minimal.collapsed) .sidebar-item.active>.sidebar-item-content{border-left:none;border-radius:0.375rem;padding-left:0.75rem}:host(.theme-minimal) .sidebar-item.level-1.active>.sidebar-item-content{padding-left:calc(2rem - 3px)}:host(.theme-minimal) .sidebar-item.level-2.active>.sidebar-item-content{padding-left:calc(3.25rem - 3px)}:host(.theme-minimal) .sidebar-item.level-3.active>.sidebar-item-content{padding-left:calc(4.5rem - 3px)}:host(.theme-minimal) .sidebar-item.level-4.active>.sidebar-item-content{padding-left:calc(5.75rem - 3px)}:host(.theme-minimal) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-minimal) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-minimal) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-minimal) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-minimal) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-children{position:relative}:host(.theme-ebrains) .sidebar-item-content{padding:0.5rem 1rem;border-radius:0.5rem;margin:0 0.5rem}:host(.theme-ebrains.collapsed) .sidebar-item-content{padding:0.75rem}:host(.theme-ebrains) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.05)}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content{background-color:var(--green-600, #22c55e);color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-link{--eds-link-color:white;--eds-link-hover-color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-toggle{color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-icon{color:white}:host(.theme-ebrains) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-ebrains) .sidebar-item.level-1 .sidebar-item-content{padding-left:2.25rem}:host(.theme-ebrains) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.5rem}:host(.theme-ebrains) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.75rem}:host(.theme-ebrains) .sidebar-item.level-4 .sidebar-item-content{padding-left:6rem}@media (prefers-color-scheme: dark){.collapse-toggle:hover{background-color:rgba(255, 255, 255, 0.08)}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.05)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:rgba(0, 102, 204, 0.15)}:host(.theme-minimal) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.06)}:host::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.2)}:host::-webkit-scrollbar-thumb:hover{background:rgba(255, 255, 255, 0.3)}}.sidebar-toggle eds-icon-wrapper,.sidebar-icon eds-icon-wrapper,.collapse-toggle eds-icon-wrapper{transition:transform 0.15s ease;display:flex;align-items:center;justify-content:center}.sidebar-item-content:focus-visible .sidebar-link{text-decoration:underline}.sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:500}:host(.collapsed) .sidebar-item-content::after{content:attr(title);position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:0.5rem;padding:0.5rem 0.75rem;background:rgba(0, 0, 0, 0.9);color:white;border-radius:0.375rem;white-space:nowrap;font-size:0.875rem;opacity:0;pointer-events:none;transition:opacity 0.2s ease;z-index:1000}:host(.collapsed) .sidebar-item-content:hover::after{opacity:1;transition-delay:0.3s}.-ml-4{margin-left:-0.25rem}.mt-2{margin-top:0.125rem}";
|
|
13595
|
+
var EdsSidebarStyle0 = edsSidebarCss;
|
|
13596
|
+
|
|
13597
|
+
class EdsSidebar {
|
|
13598
|
+
constructor(hostRef) {
|
|
13599
|
+
registerInstance(this, hostRef);
|
|
13600
|
+
this.sidebar = createEvent(this, "sidebar", 7);
|
|
13601
|
+
this.toggleItem = (itemId, ev) => {
|
|
13602
|
+
if (ev) {
|
|
13603
|
+
ev.stopPropagation();
|
|
13604
|
+
}
|
|
13605
|
+
const newOpen = new Set(this.openItems);
|
|
13606
|
+
if (newOpen.has(itemId)) {
|
|
13607
|
+
newOpen.delete(itemId);
|
|
13608
|
+
}
|
|
13609
|
+
else {
|
|
13610
|
+
newOpen.add(itemId);
|
|
13611
|
+
}
|
|
13612
|
+
this.openItems = newOpen;
|
|
13613
|
+
};
|
|
13614
|
+
this.navigate = (url, ev) => {
|
|
13615
|
+
if (!this.enableRouting || !url) {
|
|
13616
|
+
return;
|
|
13617
|
+
}
|
|
13618
|
+
if (ev) {
|
|
13619
|
+
ev.preventDefault();
|
|
13620
|
+
ev.stopPropagation();
|
|
13621
|
+
}
|
|
13622
|
+
// Emit custom event for routing
|
|
13623
|
+
this.sidebar.emit(url);
|
|
13624
|
+
// Update browser history if available
|
|
13625
|
+
if (typeof window !== 'undefined' && window.history) {
|
|
13626
|
+
window.history.pushState({}, '', url);
|
|
13627
|
+
}
|
|
13628
|
+
};
|
|
13629
|
+
this.handleItemClick = (item, ev) => {
|
|
13630
|
+
var _a;
|
|
13631
|
+
// If item has children, ONLY toggle (don't navigate)
|
|
13632
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13633
|
+
this.toggleItem(item.id, ev);
|
|
13634
|
+
return;
|
|
13635
|
+
}
|
|
13636
|
+
// Only navigate if no children and has URL
|
|
13637
|
+
if (item.url) {
|
|
13638
|
+
this.navigate(item.url, ev);
|
|
13639
|
+
}
|
|
13640
|
+
};
|
|
13641
|
+
this.items = '[]';
|
|
13642
|
+
this.theme = 'default';
|
|
13643
|
+
this.activeUrl = '';
|
|
13644
|
+
this.enableRouting = true;
|
|
13645
|
+
this.maxLevel = 4;
|
|
13646
|
+
this.openItems = new Set();
|
|
13647
|
+
this.parsedItems = [];
|
|
13648
|
+
}
|
|
13649
|
+
// ---------------------------------------------------------------------------
|
|
13650
|
+
// Lifecycle
|
|
13651
|
+
// ---------------------------------------------------------------------------
|
|
13652
|
+
componentWillLoad() {
|
|
13653
|
+
this.parsedItems = this.parseItems(this.items);
|
|
13654
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13655
|
+
}
|
|
13656
|
+
// ---------------------------------------------------------------------------
|
|
13657
|
+
// Watchers
|
|
13658
|
+
// ---------------------------------------------------------------------------
|
|
13659
|
+
handleItemsChange(newItems) {
|
|
13660
|
+
this.parsedItems = this.parseItems(newItems);
|
|
13661
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13662
|
+
}
|
|
13663
|
+
handleActiveUrlChange() {
|
|
13664
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13665
|
+
}
|
|
13666
|
+
// ---------------------------------------------------------------------------
|
|
13667
|
+
// Utils
|
|
13668
|
+
// ---------------------------------------------------------------------------
|
|
13669
|
+
parseItems(items) {
|
|
13670
|
+
if (Array.isArray(items)) {
|
|
13671
|
+
return items;
|
|
13672
|
+
}
|
|
13673
|
+
if (typeof items === 'string') {
|
|
13674
|
+
if (!items || items.trim() === '') {
|
|
13675
|
+
return [];
|
|
13676
|
+
}
|
|
13677
|
+
try {
|
|
13678
|
+
const parsed = JSON.parse(items);
|
|
13679
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
13680
|
+
}
|
|
13681
|
+
catch (e) {
|
|
13682
|
+
console.error('eds-sidebar: Failed to parse items JSON:', e);
|
|
13683
|
+
console.error('Received string:', items);
|
|
13684
|
+
return [];
|
|
13685
|
+
}
|
|
13686
|
+
}
|
|
13687
|
+
return [];
|
|
13688
|
+
}
|
|
13689
|
+
initializeOpenItems(items, level = 0) {
|
|
13690
|
+
if (level === 0) {
|
|
13691
|
+
// reset before recomputing
|
|
13692
|
+
this.openItems = new Set();
|
|
13693
|
+
}
|
|
13694
|
+
if (level >= this.maxLevel) {
|
|
13695
|
+
return;
|
|
13696
|
+
}
|
|
13697
|
+
items.forEach((item) => {
|
|
13698
|
+
var _a;
|
|
13699
|
+
const isActive = this.activeUrl && item.url === this.activeUrl;
|
|
13700
|
+
const hasActiveChild = this.hasActiveDescendant(item);
|
|
13701
|
+
if (item.open || isActive || hasActiveChild) {
|
|
13702
|
+
this.openItems.add(item.id);
|
|
13703
|
+
}
|
|
13704
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13705
|
+
this.initializeOpenItems(item.children, level + 1);
|
|
13706
|
+
}
|
|
13707
|
+
});
|
|
13708
|
+
}
|
|
13709
|
+
hasActiveDescendant(item) {
|
|
13710
|
+
var _a;
|
|
13711
|
+
if (item.url === this.activeUrl) {
|
|
13712
|
+
return true;
|
|
13713
|
+
}
|
|
13714
|
+
if (!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
13715
|
+
return false;
|
|
13716
|
+
}
|
|
13717
|
+
return item.children.some((child) => this.hasActiveDescendant(child));
|
|
13718
|
+
}
|
|
13719
|
+
// ---------------------------------------------------------------------------
|
|
13720
|
+
// Render
|
|
13721
|
+
// ---------------------------------------------------------------------------
|
|
13722
|
+
renderItem(item, level = 0) {
|
|
13723
|
+
if (level >= this.maxLevel) {
|
|
13724
|
+
return null;
|
|
13725
|
+
}
|
|
13726
|
+
const isOpen = this.openItems.has(item.id);
|
|
13727
|
+
const isActive = !!item.url && this.activeUrl === item.url;
|
|
13728
|
+
const hasChildren = !!(item.children && item.children.length);
|
|
13729
|
+
const itemId = `eds-sidebar-${item.id}`;
|
|
13730
|
+
const childrenId = `${itemId}-children`;
|
|
13731
|
+
return (hAsync("li", { class: {
|
|
13732
|
+
'sidebar-item': true,
|
|
13733
|
+
open: isOpen,
|
|
13734
|
+
active: isActive,
|
|
13735
|
+
'has-children': hasChildren,
|
|
13736
|
+
[`level-${level}`]: true
|
|
13737
|
+
} }, hAsync("div", { class: "sidebar-item-content", onClick: (e) => this.handleItemClick(item, e), role: hasChildren ? 'button' : item.url ? 'link' : 'button', tabindex: "0", "aria-current": isActive ? 'page' : undefined, "aria-expanded": hasChildren ? (isOpen ? 'true' : 'false') : undefined, "aria-controls": hasChildren ? childrenId : undefined, onKeyDown: (e) => {
|
|
13738
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13739
|
+
e.preventDefault();
|
|
13740
|
+
this.handleItemClick(item, e);
|
|
13741
|
+
}
|
|
13742
|
+
} }, hasChildren && (hAsync("span", { class: "sidebar-toggle mt-2 -ml-4", "aria-hidden": "true" }, hAsync("eds-icon-wrapper", { icon: isOpen ? 'chevron-down' : 'chevron-right' }))), hAsync("span", { class: "sidebar-link-wrapper" }, hAsync("eds-link", { label: item.title, url: item.url || '#', intent: isActive ? 'strong' : 'weak', size: "small", "aria-label": item.title, "extra-class": "sidebar-link", tabindex: "-1" }))), hasChildren && isOpen && (hAsync("ul", { id: childrenId, class: "sidebar-children" }, item.children.map((child) => this.renderItem(child, level + 1))))));
|
|
13743
|
+
}
|
|
13744
|
+
render() {
|
|
13745
|
+
return (hAsync(Host, { key: '4334d20e5d72671243633253910ab05b4da013da', class: {
|
|
13746
|
+
'eds-sidebar': true,
|
|
13747
|
+
[`theme-${this.theme}`]: true
|
|
13748
|
+
} }, hAsync("nav", { key: '319f6f42416d4229f1b011bf1216b39c8627302d', class: "sidebar-nav", "aria-label": "Sidebar" }, hAsync("ul", { key: '687ceae3eca3e844e8f6a361db4a76d127d27813', class: "sidebar-list" }, this.parsedItems.map((item) => this.renderItem(item, 0))))));
|
|
13749
|
+
}
|
|
13750
|
+
get el() { return getElement(this); }
|
|
13751
|
+
static get watchers() { return {
|
|
13752
|
+
"items": ["handleItemsChange"],
|
|
13753
|
+
"activeUrl": ["handleActiveUrlChange"]
|
|
13754
|
+
}; }
|
|
13755
|
+
static get style() { return EdsSidebarStyle0; }
|
|
13756
|
+
static get cmpMeta() { return {
|
|
13757
|
+
"$flags$": 9,
|
|
13758
|
+
"$tagName$": "eds-sidebar",
|
|
13759
|
+
"$members$": {
|
|
13760
|
+
"items": [1],
|
|
13761
|
+
"theme": [1],
|
|
13762
|
+
"activeUrl": [1, "active-url"],
|
|
13763
|
+
"enableRouting": [4, "enable-routing"],
|
|
13764
|
+
"maxLevel": [2, "max-level"],
|
|
13765
|
+
"openItems": [32],
|
|
13766
|
+
"parsedItems": [32]
|
|
13767
|
+
},
|
|
13768
|
+
"$listeners$": undefined,
|
|
13769
|
+
"$lazyBundleId$": "-",
|
|
13770
|
+
"$attrsToReflect$": []
|
|
13771
|
+
}; }
|
|
13772
|
+
}
|
|
13773
|
+
|
|
13526
13774
|
const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.mt-12{margin-top:0.75rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
13527
13775
|
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13528
13776
|
|
|
@@ -13579,7 +13827,7 @@ class EdsSocialNetworks {
|
|
|
13579
13827
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
13580
13828
|
*/
|
|
13581
13829
|
render() {
|
|
13582
|
-
return (hAsync("nav", { key: '
|
|
13830
|
+
return (hAsync("nav", { key: 'a18759794a383be1ce670ff3ac9f251b3c7327a5', "aria-label": "Social media" }, hAsync("p", { key: '404fbffecd29c6efdfc8ade90f0da9d68e6c7b8e', class: "f-ui-02" }, this.heading), hAsync("ul", { key: '959079149753b1c13e974dd610e3109e1f54c6f6', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": `EBRAINS on ${network.label}`, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
13583
13831
|
}
|
|
13584
13832
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13585
13833
|
static get cmpMeta() { return {
|
|
@@ -13670,7 +13918,7 @@ class EdsSpinner {
|
|
|
13670
13918
|
alignItems: 'center',
|
|
13671
13919
|
justifyContent: 'center'
|
|
13672
13920
|
};
|
|
13673
|
-
return (hAsync(Host, { key: '
|
|
13921
|
+
return (hAsync(Host, { key: '28271d7eced2bc3d69538aa490d623167affd590' }, hAsync("div", { key: '2a8987cb80c67a42f18ac0db8c0078a90d9fd97a', class: "spinner-overlay", style: overlayStyle }, hAsync("span", { key: 'c6267576391c24c41ceb0141dd897f590033b26f', class: "spinner", style: spinnerStyle }), this.message && hAsync("p", { key: 'ae67369899652f6ecc9c9411fd62a68a437553c5', class: "f-body-01" }, this.message))));
|
|
13674
13922
|
}
|
|
13675
13923
|
static get style() { return EdsSpinnerStyle0; }
|
|
13676
13924
|
static get cmpMeta() { return {
|
|
@@ -13754,7 +14002,7 @@ class EdsSplashScreen {
|
|
|
13754
14002
|
}; }
|
|
13755
14003
|
}
|
|
13756
14004
|
|
|
13757
|
-
const edsStepsCss = ".steps{position:sticky;margin-left:16px;
|
|
14005
|
+
const edsStepsCss = "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;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,.steps h5{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,.steps h5::before{content:counter(step);position:absolute;left:-39px;top:-2px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;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)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--black)}.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}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.mb-16{margin-bottom:1rem}.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))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role=\"button\"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0}.horizontal-step{display:flex;flex-direction:column;align-items:center;gap:0.5rem;cursor:pointer;flex:1;position:relative}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.25rem;left:50%;width:100%;height:2px;background-color:#e0e0e0;z-index:-1}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--green-500);}.step-indicator{width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease}.horizontal-step.is-active .step-indicator{border-color:var(--green-500);background-color:var(--green-500);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--green-500);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-weight:600;font-size:0.875rem}.step-label{font-size:0.875rem;text-align:center;font-weight:500}.horizontal-step.is-active .step-label{color:var(--green-500)}.step-content{padding:2rem 0;margin-left:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem);margin-right:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem)}.opacity-50{opacity:0.5}.eds-steps__title[role=\"button\"]{cursor:pointer}";
|
|
13758
14006
|
var EdsStepsStyle0 = edsStepsCss;
|
|
13759
14007
|
|
|
13760
14008
|
class EdsSteps {
|
|
@@ -13765,47 +14013,63 @@ class EdsSteps {
|
|
|
13765
14013
|
this.next = createEvent(this, "next", 7);
|
|
13766
14014
|
this.back = createEvent(this, "back", 7);
|
|
13767
14015
|
this.handleTitleClick = (index) => {
|
|
13768
|
-
//
|
|
13769
|
-
if (
|
|
13770
|
-
|
|
14016
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14017
|
+
if (this.type === 'linear') {
|
|
14018
|
+
// prevent jumping forward over disabled steps
|
|
14019
|
+
if (index > this.activeStep) {
|
|
14020
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14021
|
+
if (this.isStepDisabled(i)) {
|
|
14022
|
+
return;
|
|
14023
|
+
}
|
|
14024
|
+
}
|
|
14025
|
+
}
|
|
14026
|
+
this.activeStep = index;
|
|
13771
14027
|
this.step.emit(this.activeStep);
|
|
13772
14028
|
return;
|
|
13773
14029
|
}
|
|
13774
|
-
//
|
|
13775
|
-
|
|
13776
|
-
|
|
14030
|
+
// Non-linear vertical mode: support optional collapse/expand on current title
|
|
14031
|
+
if (this.orientation === 'vertical' && index === this.activeStep && this.collapsibleTitles) {
|
|
14032
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14033
|
+
this.step.emit(this.activeStep);
|
|
13777
14034
|
return;
|
|
13778
|
-
}
|
|
13779
|
-
//
|
|
14035
|
+
}
|
|
14036
|
+
// Otherwise, just set
|
|
13780
14037
|
this.activeStep = index;
|
|
13781
14038
|
this.step.emit(this.activeStep);
|
|
13782
14039
|
};
|
|
13783
14040
|
this.handleNext = () => {
|
|
13784
14041
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14042
|
+
// On last step
|
|
13785
14043
|
if (this.activeStep >= lastIndex) {
|
|
13786
|
-
this.activeStep = -1;
|
|
13787
14044
|
this.finished.emit();
|
|
14045
|
+
this.activeStep = -1; // collapse the content
|
|
14046
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13788
14047
|
return;
|
|
13789
14048
|
}
|
|
13790
14049
|
const target = this.activeStep + 1;
|
|
13791
14050
|
this.next.emit(target);
|
|
13792
|
-
if (this.
|
|
14051
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
13793
14052
|
return;
|
|
13794
|
-
}
|
|
14053
|
+
}
|
|
13795
14054
|
this.activeStep = target;
|
|
13796
14055
|
this.step.emit(this.activeStep);
|
|
13797
|
-
// 2) if using the boolean form, clear it when moving away from a step
|
|
13798
14056
|
if (!Array.isArray(this.disableNext)) {
|
|
13799
14057
|
this.disableNext = false;
|
|
13800
14058
|
}
|
|
13801
14059
|
};
|
|
13802
14060
|
this.handleBack = () => {
|
|
14061
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14062
|
+
// If somehow collapsed, recover to last visible step first
|
|
14063
|
+
if (this.activeStep < 0) {
|
|
14064
|
+
this.activeStep = lastIndex;
|
|
14065
|
+
this.step.emit(this.activeStep);
|
|
14066
|
+
return;
|
|
14067
|
+
}
|
|
13803
14068
|
if (this.activeStep > 0) {
|
|
13804
14069
|
const target = this.activeStep - 1;
|
|
13805
14070
|
this.back.emit(target);
|
|
13806
14071
|
this.activeStep = target;
|
|
13807
14072
|
this.step.emit(this.activeStep);
|
|
13808
|
-
// also clear boolean form on back
|
|
13809
14073
|
if (!Array.isArray(this.disableNext)) {
|
|
13810
14074
|
this.disableNext = false;
|
|
13811
14075
|
}
|
|
@@ -13813,52 +14077,91 @@ class EdsSteps {
|
|
|
13813
14077
|
};
|
|
13814
14078
|
this.steps = [];
|
|
13815
14079
|
this.type = 'static';
|
|
14080
|
+
this.orientation = 'vertical';
|
|
13816
14081
|
this.nextLabel = 'Next';
|
|
13817
14082
|
this.backLabel = 'Back';
|
|
13818
14083
|
this.finishLabel = 'Finish';
|
|
13819
14084
|
this.disableNext = false;
|
|
13820
14085
|
this.headingLevel = 'h4';
|
|
14086
|
+
this.collapsibleTitles = false;
|
|
13821
14087
|
this.activeStep = 0;
|
|
13822
14088
|
}
|
|
14089
|
+
handleDisableNextChange(newValue) {
|
|
14090
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14091
|
+
try {
|
|
14092
|
+
this.disableNext = JSON.parse(newValue);
|
|
14093
|
+
}
|
|
14094
|
+
catch (e) {
|
|
14095
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14096
|
+
}
|
|
14097
|
+
}
|
|
14098
|
+
}
|
|
14099
|
+
componentWillLoad() {
|
|
14100
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14101
|
+
}
|
|
13823
14102
|
componentDidLoad() {
|
|
13824
|
-
var _a;
|
|
13825
14103
|
if (this.type === 'linear') {
|
|
13826
|
-
const
|
|
14104
|
+
const root = this.el.shadowRoot || this.el;
|
|
14105
|
+
const btns = root.querySelectorAll('eds-button');
|
|
13827
14106
|
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
13828
14107
|
}
|
|
13829
14108
|
}
|
|
13830
14109
|
activeStepChanged(newValue) {
|
|
14110
|
+
// Clamp to valid range or collapsed sentinel
|
|
14111
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14112
|
+
if (newValue > max) {
|
|
14113
|
+
this.activeStep = max;
|
|
14114
|
+
return;
|
|
14115
|
+
}
|
|
14116
|
+
if (newValue < -1) {
|
|
14117
|
+
this.activeStep = -1;
|
|
14118
|
+
return;
|
|
14119
|
+
}
|
|
14120
|
+
// If collapsed (only possible in non-linear mode), do not emit context
|
|
14121
|
+
if (newValue < 0) {
|
|
14122
|
+
return;
|
|
14123
|
+
}
|
|
13831
14124
|
setTimeout(() => {
|
|
13832
|
-
|
|
13833
|
-
const
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
}
|
|
14125
|
+
const root = this.el.shadowRoot || this.el;
|
|
14126
|
+
const all = root.querySelectorAll('.step');
|
|
14127
|
+
const active = all && newValue < all.length ? all[newValue] : undefined;
|
|
14128
|
+
active === null || active === void 0 ? void 0 : active.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13837
14129
|
}, 50);
|
|
13838
14130
|
}
|
|
13839
14131
|
emitContext(linkElement) {
|
|
13840
14132
|
const event = new CustomEvent('parentContext', {
|
|
13841
|
-
detail: {
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
}
|
|
14133
|
+
detail: { componentName: this.el.tagName.toLowerCase(), identifier: this.activeStep },
|
|
14134
|
+
bubbles: true,
|
|
14135
|
+
composed: true
|
|
13845
14136
|
});
|
|
13846
14137
|
linkElement.dispatchEvent(event);
|
|
13847
14138
|
}
|
|
13848
14139
|
get parsedSteps() {
|
|
13849
14140
|
return parseData(this.steps);
|
|
13850
14141
|
}
|
|
14142
|
+
isStepDisabled(index) {
|
|
14143
|
+
if (Array.isArray(this.disableNext)) {
|
|
14144
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14145
|
+
}
|
|
14146
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14147
|
+
}
|
|
13851
14148
|
isNextDisabledFor(index) {
|
|
13852
|
-
return
|
|
13853
|
-
? !!this.disableNext[index] // per-step
|
|
13854
|
-
: index === this.activeStep && !!this.disableNext; // only active step
|
|
14149
|
+
return this.isStepDisabled(index);
|
|
13855
14150
|
}
|
|
13856
14151
|
/** Render the semantic heading element as a clickable control only in linear mode */
|
|
13857
14152
|
renderHeading(title, index) {
|
|
13858
14153
|
const Tag = this.headingLevel;
|
|
13859
14154
|
const isOpen = this.activeStep === index;
|
|
13860
14155
|
if (this.type === 'linear') {
|
|
13861
|
-
|
|
14156
|
+
let forwardBlocked = false;
|
|
14157
|
+
if (index > this.activeStep) {
|
|
14158
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14159
|
+
if (this.isStepDisabled(i)) {
|
|
14160
|
+
forwardBlocked = true;
|
|
14161
|
+
break;
|
|
14162
|
+
}
|
|
14163
|
+
}
|
|
14164
|
+
}
|
|
13862
14165
|
const onKey = (e) => {
|
|
13863
14166
|
if (forwardBlocked) {
|
|
13864
14167
|
return;
|
|
@@ -13870,21 +14173,59 @@ class EdsSteps {
|
|
|
13870
14173
|
};
|
|
13871
14174
|
return (hAsync(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
|
|
13872
14175
|
}
|
|
13873
|
-
return hAsync(Tag,
|
|
14176
|
+
return (hAsync(Tag, { class: `eds-steps__title ${this.collapsibleTitles && index !== this.activeStep ? '' : ''}`, onClick: () => this.handleTitleClick(index) }, title));
|
|
14177
|
+
}
|
|
14178
|
+
/** Render horizontal step indicator */
|
|
14179
|
+
renderHorizontalIndicator(step, index) {
|
|
14180
|
+
const isActive = this.activeStep === index;
|
|
14181
|
+
const isCompleted = this.activeStep > index;
|
|
14182
|
+
let forwardBlocked = false;
|
|
14183
|
+
if (index > this.activeStep) {
|
|
14184
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14185
|
+
if (this.isStepDisabled(i)) {
|
|
14186
|
+
forwardBlocked = true;
|
|
14187
|
+
break;
|
|
14188
|
+
}
|
|
14189
|
+
}
|
|
14190
|
+
}
|
|
14191
|
+
const onKey = (e) => {
|
|
14192
|
+
if (forwardBlocked) {
|
|
14193
|
+
return;
|
|
14194
|
+
}
|
|
14195
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14196
|
+
e.preventDefault();
|
|
14197
|
+
this.handleTitleClick(index);
|
|
14198
|
+
}
|
|
14199
|
+
};
|
|
14200
|
+
return (hAsync("div", { class: `horizontal-step ${isActive ? 'is-active' : ''} ${isCompleted ? 'is-completed' : ''}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-label": `Step ${index + 1}: ${step.title}`, "aria-current": isActive ? 'step' : undefined, "aria-disabled": forwardBlocked ? 'true' : 'false' }, hAsync("div", { class: "step-indicator" }, hAsync("span", { class: "step-number" }, index + 1)), hAsync("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
13874
14201
|
}
|
|
13875
14202
|
render() {
|
|
13876
14203
|
const steps = this.parsedSteps;
|
|
14204
|
+
// Horizontal Linear
|
|
14205
|
+
if (this.type === 'linear' && this.orientation === 'horizontal') {
|
|
14206
|
+
return (hAsync("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, hAsync("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
14207
|
+
const isLast = index === steps.length - 1;
|
|
14208
|
+
if (this.activeStep !== index) {
|
|
14209
|
+
return null;
|
|
14210
|
+
}
|
|
14211
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14212
|
+
return (hAsync("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })));
|
|
14213
|
+
})));
|
|
14214
|
+
}
|
|
14215
|
+
// Vertical Linear
|
|
13877
14216
|
if (this.type === 'linear') {
|
|
13878
14217
|
return (hAsync("div", { class: "steps" }, steps.map((step, index) => {
|
|
13879
14218
|
const isLast = index === steps.length - 1;
|
|
13880
|
-
|
|
14219
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14220
|
+
return (hAsync("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })))));
|
|
13881
14221
|
})));
|
|
13882
14222
|
}
|
|
13883
|
-
// Static
|
|
13884
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-
|
|
14223
|
+
// Static
|
|
14224
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), hAsync("div", { class: "content", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter my-16", innerHTML: step.content }))))))));
|
|
13885
14225
|
}
|
|
13886
14226
|
get el() { return getElement(this); }
|
|
13887
14227
|
static get watchers() { return {
|
|
14228
|
+
"disableNext": ["handleDisableNextChange"],
|
|
13888
14229
|
"activeStep": ["activeStepChanged"]
|
|
13889
14230
|
}; }
|
|
13890
14231
|
static get style() { return EdsStepsStyle0; }
|
|
@@ -13894,11 +14235,13 @@ class EdsSteps {
|
|
|
13894
14235
|
"$members$": {
|
|
13895
14236
|
"steps": [1],
|
|
13896
14237
|
"type": [1],
|
|
14238
|
+
"orientation": [1],
|
|
13897
14239
|
"nextLabel": [1, "next-label"],
|
|
13898
14240
|
"backLabel": [1, "back-label"],
|
|
13899
14241
|
"finishLabel": [1, "finish-label"],
|
|
13900
|
-
"disableNext": [
|
|
14242
|
+
"disableNext": [1032, "disable-next"],
|
|
13901
14243
|
"headingLevel": [513, "heading-level"],
|
|
14244
|
+
"collapsibleTitles": [4, "collapsible-titles"],
|
|
13902
14245
|
"activeStep": [32]
|
|
13903
14246
|
},
|
|
13904
14247
|
"$listeners$": undefined,
|
|
@@ -13907,7 +14250,7 @@ class EdsSteps {
|
|
|
13907
14250
|
}; }
|
|
13908
14251
|
}
|
|
13909
14252
|
|
|
13910
|
-
const edsStepsV2Css = ".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:-
|
|
14253
|
+
const edsStepsV2Css = "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:-41px;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,.steps h5{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,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;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)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--black)}.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}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.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))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role=\"button\"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0}.horizontal-step{display:flex;flex-direction:column;align-items:center;gap:0.5rem;cursor:pointer;flex:1;position:relative}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.25rem;left:50%;width:100%;height:2px;background-color:#e0e0e0;z-index:-1}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--green-500);}.step-indicator{width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease;z-index:2}.horizontal-step.is-active .step-indicator{border-color:var(--green-500);background-color:var(--green-500);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--green-500);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-weight:600;font-size:0.875rem}.step-label{font-size:0.875rem;text-align:center;font-weight:500}.horizontal-step.is-active .step-label{color:var(--green-500)}.step-content{padding:2rem 0;margin-left:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem);margin-right:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem)}.opacity-50{opacity:0.5}";
|
|
13911
14254
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
13912
14255
|
|
|
13913
14256
|
class EdsStepsV2 {
|
|
@@ -13918,48 +14261,74 @@ class EdsStepsV2 {
|
|
|
13918
14261
|
this.next = createEvent(this, "next", 7);
|
|
13919
14262
|
this.back = createEvent(this, "back", 7);
|
|
13920
14263
|
this.handleTitleClick = (index) => {
|
|
13921
|
-
//
|
|
13922
|
-
if (
|
|
13923
|
-
|
|
14264
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14265
|
+
if (this.type === 'linear') {
|
|
14266
|
+
if (index > this.activeStep) {
|
|
14267
|
+
// Prevent jumping forward over disabled steps
|
|
14268
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14269
|
+
if (this.isStepDisabled(i)) {
|
|
14270
|
+
return;
|
|
14271
|
+
}
|
|
14272
|
+
}
|
|
14273
|
+
}
|
|
14274
|
+
this.activeStep = index;
|
|
13924
14275
|
this.step.emit(this.activeStep);
|
|
13925
14276
|
return;
|
|
13926
14277
|
}
|
|
13927
|
-
//
|
|
13928
|
-
|
|
13929
|
-
|
|
14278
|
+
// Non-linear vertical mode can toggle collapse of the current title
|
|
14279
|
+
if (this.orientation === 'vertical' && index === this.activeStep) {
|
|
14280
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14281
|
+
this.step.emit(this.activeStep);
|
|
13930
14282
|
return;
|
|
13931
14283
|
}
|
|
13932
|
-
//
|
|
14284
|
+
// Otherwise just set
|
|
13933
14285
|
this.activeStep = index;
|
|
13934
14286
|
this.step.emit(this.activeStep);
|
|
13935
14287
|
};
|
|
13936
14288
|
this.handleNext = () => {
|
|
13937
14289
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14290
|
+
// On last step: do NOT collapse; keep content visible, just emit finished
|
|
13938
14291
|
if (this.activeStep >= lastIndex) {
|
|
13939
14292
|
this.finished.emit();
|
|
13940
|
-
this.activeStep = -1; // collapse
|
|
14293
|
+
this.activeStep = -1; // collapse the content
|
|
14294
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13941
14295
|
return;
|
|
13942
14296
|
}
|
|
13943
14297
|
const target = this.activeStep + 1;
|
|
13944
14298
|
this.next.emit(target);
|
|
13945
|
-
if (
|
|
13946
|
-
|
|
13947
|
-
|
|
14299
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
14300
|
+
return;
|
|
14301
|
+
}
|
|
14302
|
+
this.activeStep = target;
|
|
14303
|
+
this.step.emit(this.activeStep);
|
|
14304
|
+
// clear boolean form when moving away from a step
|
|
14305
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14306
|
+
this.disableNext = false;
|
|
13948
14307
|
}
|
|
13949
14308
|
};
|
|
13950
14309
|
this.handleBack = () => {
|
|
14310
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14311
|
+
// Recover from collapsed sentinel if it ever occurs
|
|
14312
|
+
if (this.activeStep < 0) {
|
|
14313
|
+
this.activeStep = lastIndex;
|
|
14314
|
+
this.step.emit(this.activeStep);
|
|
14315
|
+
return;
|
|
14316
|
+
}
|
|
13951
14317
|
if (this.activeStep > 0) {
|
|
13952
14318
|
const target = this.activeStep - 1;
|
|
13953
14319
|
this.back.emit(target);
|
|
13954
14320
|
this.activeStep = target;
|
|
13955
14321
|
this.step.emit(this.activeStep);
|
|
14322
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14323
|
+
this.disableNext = false;
|
|
14324
|
+
}
|
|
13956
14325
|
}
|
|
13957
14326
|
};
|
|
13958
14327
|
this.steps = [];
|
|
13959
14328
|
this.type = 'static';
|
|
14329
|
+
this.orientation = 'vertical';
|
|
13960
14330
|
this.imageSrc = undefined;
|
|
13961
14331
|
this.imageWidth = undefined;
|
|
13962
|
-
this.bg = true;
|
|
13963
14332
|
this.message = undefined;
|
|
13964
14333
|
this.nextLabel = 'Next';
|
|
13965
14334
|
this.backLabel = 'Back';
|
|
@@ -13968,57 +14337,87 @@ class EdsStepsV2 {
|
|
|
13968
14337
|
this.headingLevel = 'h4';
|
|
13969
14338
|
this.activeStep = 0;
|
|
13970
14339
|
}
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
14340
|
+
handleDisableNextChange(newValue) {
|
|
14341
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14342
|
+
try {
|
|
14343
|
+
this.disableNext = JSON.parse(newValue);
|
|
14344
|
+
}
|
|
14345
|
+
catch (e) {
|
|
14346
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14347
|
+
}
|
|
13978
14348
|
}
|
|
13979
14349
|
}
|
|
13980
14350
|
activeStepChanged(newValue) {
|
|
14351
|
+
// Clamp and ignore collapsed sentinel
|
|
14352
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14353
|
+
if (newValue > max) {
|
|
14354
|
+
this.activeStep = max;
|
|
14355
|
+
return;
|
|
14356
|
+
}
|
|
14357
|
+
if (newValue < -1) {
|
|
14358
|
+
this.activeStep = -1;
|
|
14359
|
+
return;
|
|
14360
|
+
}
|
|
14361
|
+
if (newValue < 0) {
|
|
14362
|
+
return;
|
|
14363
|
+
} // ignore collapsed state if ever set elsewhere
|
|
14364
|
+
// Emit parentContext to buttons inside the newly active step
|
|
13981
14365
|
setTimeout(() => {
|
|
13982
|
-
|
|
13983
|
-
const activeStepContainer =
|
|
13984
|
-
|
|
13985
|
-
const btns = activeStepContainer.querySelectorAll('eds-button');
|
|
13986
|
-
btns.forEach((btn) => {
|
|
13987
|
-
this.emitContext(btn);
|
|
13988
|
-
});
|
|
13989
|
-
}
|
|
14366
|
+
const host = this.el.shadowRoot || this.el;
|
|
14367
|
+
const activeStepContainer = host.querySelectorAll('.step')[newValue];
|
|
14368
|
+
activeStepContainer === null || activeStepContainer === void 0 ? void 0 : activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13990
14369
|
}, 50);
|
|
13991
14370
|
}
|
|
14371
|
+
componentWillLoad() {
|
|
14372
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14373
|
+
}
|
|
14374
|
+
componentDidLoad() {
|
|
14375
|
+
if (this.type === 'linear') {
|
|
14376
|
+
const host = this.el.shadowRoot || this.el;
|
|
14377
|
+
const btns = host.querySelectorAll('eds-button');
|
|
14378
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
14379
|
+
}
|
|
14380
|
+
}
|
|
13992
14381
|
emitContext(linkElement) {
|
|
13993
14382
|
const event = new CustomEvent('parentContext', {
|
|
13994
14383
|
detail: {
|
|
13995
14384
|
componentName: this.el.tagName.toLowerCase(),
|
|
13996
14385
|
identifier: this.activeStep
|
|
13997
|
-
}
|
|
14386
|
+
},
|
|
14387
|
+
bubbles: true,
|
|
14388
|
+
composed: true
|
|
13998
14389
|
});
|
|
13999
14390
|
linkElement.dispatchEvent(event);
|
|
14000
14391
|
}
|
|
14001
14392
|
articleClasses() {
|
|
14002
|
-
return [
|
|
14003
|
-
this.bg ? 'bg-inverse' : 'bg-default',
|
|
14004
|
-
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
14005
|
-
].join(' ');
|
|
14393
|
+
return ['border-softer effect-focus-within relative rounded-lg border-2'].join(' ');
|
|
14006
14394
|
}
|
|
14007
|
-
/**
|
|
14008
|
-
* Parses the steps property into an array of Step objects.
|
|
14009
|
-
*/
|
|
14010
14395
|
get parsedSteps() {
|
|
14011
14396
|
return parseData(this.steps);
|
|
14012
14397
|
}
|
|
14013
|
-
|
|
14014
|
-
|
|
14398
|
+
isStepDisabled(index) {
|
|
14399
|
+
if (Array.isArray(this.disableNext)) {
|
|
14400
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14401
|
+
}
|
|
14402
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14403
|
+
}
|
|
14404
|
+
isNextDisabledFor(index) {
|
|
14405
|
+
return this.isStepDisabled(index);
|
|
14015
14406
|
}
|
|
14016
|
-
/** Render the semantic heading element */
|
|
14017
14407
|
renderHeading(title, index) {
|
|
14018
14408
|
const Tag = this.headingLevel;
|
|
14019
14409
|
if (this.type === 'linear') {
|
|
14020
14410
|
const isOpen = this.activeStep === index;
|
|
14021
|
-
|
|
14411
|
+
// Check if jumping to this step crosses a disabled step
|
|
14412
|
+
let forwardBlocked = false;
|
|
14413
|
+
if (index > this.activeStep) {
|
|
14414
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14415
|
+
if (this.isStepDisabled(i)) {
|
|
14416
|
+
forwardBlocked = true;
|
|
14417
|
+
break;
|
|
14418
|
+
}
|
|
14419
|
+
}
|
|
14420
|
+
}
|
|
14022
14421
|
const onKey = (e) => {
|
|
14023
14422
|
if (forwardBlocked) {
|
|
14024
14423
|
return;
|
|
@@ -14030,16 +14429,46 @@ class EdsStepsV2 {
|
|
|
14030
14429
|
};
|
|
14031
14430
|
return (hAsync(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
|
|
14032
14431
|
}
|
|
14033
|
-
return hAsync(Tag, { class: "eds-steps__title" }, title);
|
|
14432
|
+
return (hAsync(Tag, { class: "eds-steps__title", onClick: () => this.handleTitleClick(index) }, title));
|
|
14433
|
+
}
|
|
14434
|
+
/** Render horizontal indicator item */
|
|
14435
|
+
renderHorizontalIndicator(step, index) {
|
|
14436
|
+
const isActive = this.activeStep === index;
|
|
14437
|
+
const isCompleted = this.activeStep > index;
|
|
14438
|
+
let forwardBlocked = false;
|
|
14439
|
+
if (index > this.activeStep) {
|
|
14440
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14441
|
+
if (this.isStepDisabled(i)) {
|
|
14442
|
+
forwardBlocked = true;
|
|
14443
|
+
break;
|
|
14444
|
+
}
|
|
14445
|
+
}
|
|
14446
|
+
}
|
|
14447
|
+
const onKey = (e) => {
|
|
14448
|
+
if (forwardBlocked) {
|
|
14449
|
+
return;
|
|
14450
|
+
}
|
|
14451
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14452
|
+
e.preventDefault();
|
|
14453
|
+
this.handleTitleClick(index);
|
|
14454
|
+
}
|
|
14455
|
+
};
|
|
14456
|
+
return (hAsync("div", { class: `horizontal-step ${isActive ? 'is-active' : ''} ${isCompleted ? 'is-completed' : ''}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-label": `Step ${index + 1}: ${step.title}`, "aria-current": isActive ? 'step' : undefined, "aria-disabled": forwardBlocked ? 'true' : 'false' }, hAsync("div", { class: "step-indicator" }, hAsync("span", { class: "step-number" }, index + 1)), hAsync("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
14034
14457
|
}
|
|
14035
14458
|
render() {
|
|
14036
14459
|
const steps = this.parsedSteps;
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14460
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14461
|
+
return (hAsync("div", { key: '0f9dbb87f9cd269057183ee969addd55e85b2149', 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: 'd636d36c2e95d73c23c269b1faf67870eca97c16', class: "mt-16 pb-20 px-8" }, this.type === 'linear' && this.orientation === 'horizontal' ? (hAsync("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, hAsync("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
14462
|
+
const isLast = index === steps.length - 1;
|
|
14463
|
+
if (this.activeStep !== index) {
|
|
14464
|
+
return null;
|
|
14465
|
+
}
|
|
14466
|
+
return (hAsync("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })));
|
|
14467
|
+
}))) : this.type === 'linear' ? (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: index === 0 ? 'step' : 'step mt-16', key: index }, this.renderHeading(step.title, index), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: index === steps.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null }))))))))) : (hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, this.renderHeading(step.title, index), hAsync("div", { class: "content", id: `eds-step-panel-${index}` }, hAsync("div", { class: "content-body" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content }))))))))))));
|
|
14040
14468
|
}
|
|
14041
14469
|
get el() { return getElement(this); }
|
|
14042
14470
|
static get watchers() { return {
|
|
14471
|
+
"disableNext": ["handleDisableNextChange"],
|
|
14043
14472
|
"activeStep": ["activeStepChanged"]
|
|
14044
14473
|
}; }
|
|
14045
14474
|
static get style() { return EdsStepsV2Style0; }
|
|
@@ -14049,14 +14478,14 @@ class EdsStepsV2 {
|
|
|
14049
14478
|
"$members$": {
|
|
14050
14479
|
"steps": [1],
|
|
14051
14480
|
"type": [1],
|
|
14481
|
+
"orientation": [1],
|
|
14052
14482
|
"imageSrc": [1, "image-src"],
|
|
14053
14483
|
"imageWidth": [2, "image-width"],
|
|
14054
|
-
"bg": [4],
|
|
14055
14484
|
"message": [1],
|
|
14056
14485
|
"nextLabel": [1, "next-label"],
|
|
14057
14486
|
"backLabel": [1, "back-label"],
|
|
14058
14487
|
"finishLabel": [1, "finish-label"],
|
|
14059
|
-
"disableNext": [
|
|
14488
|
+
"disableNext": [1032, "disable-next"],
|
|
14060
14489
|
"headingLevel": [513, "heading-level"],
|
|
14061
14490
|
"activeStep": [32]
|
|
14062
14491
|
},
|
|
@@ -14116,11 +14545,11 @@ class EdsSwitch {
|
|
|
14116
14545
|
: this.labelOff
|
|
14117
14546
|
: 'Toggle switch'
|
|
14118
14547
|
: undefined;
|
|
14119
|
-
return (hAsync("div", { key: '
|
|
14548
|
+
return (hAsync("div", { key: '0ee7bcdc3d6bb78881c310e36e5189e5ef99bab0', class: "switch-container" }, this.labelOff && (hAsync("span", { key: '858c4a43ccc633530d4e13a6bfa8115194ff5082', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), hAsync("button", { key: 'faa59b03c46dd814c4125534a88fd7564b02205a', id: switchId, tabindex: this.disabled ? '-1' : '0', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-labelledby": labelledBy.length > 0 ? labelledBy.join(' ') : undefined, "aria-label": accessibleLabel, class: {
|
|
14120
14549
|
switch: true,
|
|
14121
14550
|
'switch--checked': this.checked,
|
|
14122
14551
|
'switch--disabled': this.disabled
|
|
14123
|
-
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '
|
|
14552
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '74db0f827a4f50dd77b88e0d372cbef1adb10f87', class: "switch-handle" })), this.labelOn && (hAsync("span", { key: '2648bb13d533bc9fde1dc04af9cfd7116dadd581', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
14124
14553
|
}
|
|
14125
14554
|
get el() { return getElement(this); }
|
|
14126
14555
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -14139,7 +14568,7 @@ class EdsSwitch {
|
|
|
14139
14568
|
}; }
|
|
14140
14569
|
}
|
|
14141
14570
|
|
|
14142
|
-
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}.p-4{padding:0.25rem}.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}";
|
|
14571
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}tr.table-row-default{background-color:transparent}tr.table-row-color:nth-child(even){background-color:var(--grey-100)}tr.table-row-color:nth-child(odd){background-color:transparent}.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}.p-4{padding:0.25rem}.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}";
|
|
14143
14572
|
var EdsTableStyle0 = edsTableCss;
|
|
14144
14573
|
|
|
14145
14574
|
/**
|
|
@@ -14185,6 +14614,24 @@ class EdsTable {
|
|
|
14185
14614
|
}
|
|
14186
14615
|
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14187
14616
|
};
|
|
14617
|
+
this.handleSort = (column) => {
|
|
14618
|
+
if (this.sortColumn === column) {
|
|
14619
|
+
// Toggle direction if same column
|
|
14620
|
+
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
14621
|
+
}
|
|
14622
|
+
else {
|
|
14623
|
+
// New column, default to ascending
|
|
14624
|
+
this.sortColumn = column;
|
|
14625
|
+
this.sortDirection = 'asc';
|
|
14626
|
+
}
|
|
14627
|
+
sendAnalytics({
|
|
14628
|
+
category: 'ui-component',
|
|
14629
|
+
parentContext: null,
|
|
14630
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/sort`,
|
|
14631
|
+
name: column,
|
|
14632
|
+
action: this.sortDirection
|
|
14633
|
+
});
|
|
14634
|
+
};
|
|
14188
14635
|
this.data = null;
|
|
14189
14636
|
this.config = {};
|
|
14190
14637
|
this.rowsPerPage = 10;
|
|
@@ -14194,6 +14641,8 @@ class EdsTable {
|
|
|
14194
14641
|
this.columnSize = 'default';
|
|
14195
14642
|
this.actions = [];
|
|
14196
14643
|
this.actionTemplate = undefined;
|
|
14644
|
+
this.sortingEnabled = false;
|
|
14645
|
+
this.theme = 'color';
|
|
14197
14646
|
this.parsedActions = [];
|
|
14198
14647
|
this.dataColumns = [];
|
|
14199
14648
|
this.tbData = [];
|
|
@@ -14203,6 +14652,8 @@ class EdsTable {
|
|
|
14203
14652
|
this.totalRows = 0;
|
|
14204
14653
|
this.searchQuery = '';
|
|
14205
14654
|
this.containerWidth = 0;
|
|
14655
|
+
this.sortColumn = null;
|
|
14656
|
+
this.sortDirection = 'asc';
|
|
14206
14657
|
}
|
|
14207
14658
|
handleDataChange() {
|
|
14208
14659
|
this.parseData();
|
|
@@ -14285,10 +14736,10 @@ class EdsTable {
|
|
|
14285
14736
|
return this.tbData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
14286
14737
|
}
|
|
14287
14738
|
getPaginatedRows() {
|
|
14288
|
-
const
|
|
14289
|
-
this.totalRows =
|
|
14739
|
+
const sortedRows = this.getSortedRows();
|
|
14740
|
+
this.totalRows = sortedRows.length;
|
|
14290
14741
|
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
14291
|
-
return
|
|
14742
|
+
return sortedRows.slice(start, start + this.rowsPerPage);
|
|
14292
14743
|
}
|
|
14293
14744
|
handlePageChange(newPage) {
|
|
14294
14745
|
this.currentPage = newPage;
|
|
@@ -14368,22 +14819,52 @@ class EdsTable {
|
|
|
14368
14819
|
capitalize(str) {
|
|
14369
14820
|
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
14370
14821
|
}
|
|
14822
|
+
getSortedRows() {
|
|
14823
|
+
const filtered = this.getFilteredRows();
|
|
14824
|
+
if (!this.sortColumn) {
|
|
14825
|
+
return filtered;
|
|
14826
|
+
}
|
|
14827
|
+
return [...filtered].sort((a, b) => {
|
|
14828
|
+
const aVal = a[this.sortColumn];
|
|
14829
|
+
const bVal = b[this.sortColumn];
|
|
14830
|
+
// Handle null/undefined
|
|
14831
|
+
if (aVal == null) {
|
|
14832
|
+
return 1;
|
|
14833
|
+
}
|
|
14834
|
+
if (bVal == null) {
|
|
14835
|
+
return -1;
|
|
14836
|
+
}
|
|
14837
|
+
// Compare values
|
|
14838
|
+
let comparison = 0;
|
|
14839
|
+
if (typeof aVal === 'number' && typeof bVal === 'number') {
|
|
14840
|
+
comparison = aVal - bVal;
|
|
14841
|
+
}
|
|
14842
|
+
else {
|
|
14843
|
+
comparison = String(aVal).localeCompare(String(bVal));
|
|
14844
|
+
}
|
|
14845
|
+
return this.sortDirection === 'asc' ? comparison : -comparison;
|
|
14846
|
+
});
|
|
14847
|
+
}
|
|
14371
14848
|
render() {
|
|
14372
14849
|
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
14373
14850
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
14374
14851
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14375
14852
|
const paginatedRows = this.getPaginatedRows();
|
|
14376
14853
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
14377
|
-
return (hAsync("div", { key: '
|
|
14854
|
+
return (hAsync("div", { key: '0601cea60a05d044a717219e6ff6385ef915defa' }, this.searchEnabled && (hAsync("div", { key: 'de1affaf192dc5e63b16d534d2f518c206ab7010' }, hAsync("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '49f71b5a2481d719cb8fe0547f05a5ae83ad5541', class: "mt-20" }, hAsync("table", { key: 'b63ca6615ed681c741fb2d3ff2675f9cc061d194', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '817b534cca3c2492b69b3816a41b54ec850847ab' }, hAsync("tr", { key: '6cb8735ac56c3fe2acc4a257815bc0d07009118c', class: `m-0 p-0 border border-softer table-row-${this.theme}` }, this.columns.map((col) => {
|
|
14378
14855
|
var _a;
|
|
14379
14856
|
if (col === 'actions') {
|
|
14380
14857
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
14381
14858
|
}
|
|
14382
14859
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
14383
|
-
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col))
|
|
14860
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '0.25rem' } }, hAsync("span", null, this.capitalize(col)), this.sortingEnabled && (hAsync("eds-icon-wrapper", { icon: this.sortColumn === col
|
|
14861
|
+
? this.sortDirection === 'asc'
|
|
14862
|
+
? 'chevron-up'
|
|
14863
|
+
: 'chevron-down'
|
|
14864
|
+
: 'chevron-down', "aria-label": `Sort by ${col}`, onClick: () => this.handleSort(col), style: { cursor: 'pointer' } })))));
|
|
14384
14865
|
}
|
|
14385
14866
|
return null;
|
|
14386
|
-
}))), hAsync("tbody", { key: '
|
|
14867
|
+
}))), hAsync("tbody", { key: '3c8630ed1f47720688bfcdb78c5dbfc84cb238cf' }, paginatedRows.map((row) => (hAsync("tr", { class: `m-0 p-0 border border-softer table-row-${this.theme}` }, this.columns.map((col) => {
|
|
14387
14868
|
var _a;
|
|
14388
14869
|
if (col === 'actions') {
|
|
14389
14870
|
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", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
@@ -14398,7 +14879,7 @@ class EdsTable {
|
|
|
14398
14879
|
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)));
|
|
14399
14880
|
}
|
|
14400
14881
|
return null;
|
|
14401
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14882
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '09faef418edc676bb2b60c2439e0652a92fe023d', class: "mt-20" }, hAsync("eds-pagination", { key: '9403d33a37505c73fe3bec652ef93f533bdb4f03', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14402
14883
|
}
|
|
14403
14884
|
get hostEl() { return getElement(this); }
|
|
14404
14885
|
static get watchers() { return {
|
|
@@ -14420,6 +14901,8 @@ class EdsTable {
|
|
|
14420
14901
|
"columnSize": [1, "column-size"],
|
|
14421
14902
|
"actions": [1],
|
|
14422
14903
|
"actionTemplate": [16],
|
|
14904
|
+
"sortingEnabled": [4, "sorting-enabled"],
|
|
14905
|
+
"theme": [1],
|
|
14423
14906
|
"parsedActions": [32],
|
|
14424
14907
|
"dataColumns": [32],
|
|
14425
14908
|
"tbData": [32],
|
|
@@ -14428,7 +14911,9 @@ class EdsTable {
|
|
|
14428
14911
|
"parsedConfig": [32],
|
|
14429
14912
|
"totalRows": [32],
|
|
14430
14913
|
"searchQuery": [32],
|
|
14431
|
-
"containerWidth": [32]
|
|
14914
|
+
"containerWidth": [32],
|
|
14915
|
+
"sortColumn": [32],
|
|
14916
|
+
"sortDirection": [32]
|
|
14432
14917
|
},
|
|
14433
14918
|
"$listeners$": undefined,
|
|
14434
14919
|
"$lazyBundleId$": "-",
|
|
@@ -14609,12 +15094,12 @@ class EdsTabs {
|
|
|
14609
15094
|
}
|
|
14610
15095
|
}
|
|
14611
15096
|
render() {
|
|
14612
|
-
return (hAsync("div", { key: '
|
|
15097
|
+
return (hAsync("div", { key: '94766d744d61eb8d1eef51393621f85b06af822f', id: `${this.identifier}` }, hAsync("div", { key: 'd76f26bd4e70baebab9fed6c61df26b496d899a5', class: "scroller-x overflow-x-auto relative z-[1] mx-auto px-16 pt-8 lg:px-28 after:border-soft before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("nav", { key: '74afc95f82764cedb44b99a482bedc7b5f918196', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14613
15098
|
const TabComponent = 'button';
|
|
14614
15099
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14615
15100
|
const isActive = index === this.activeIndex;
|
|
14616
15101
|
return (hAsync(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index}`, id: `tab-${index}`, ref: (el) => this.setTabRef(el, index), onClick: () => this.handleTabClick(index, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index) }), tab.label || tab.ariaLabel));
|
|
14617
|
-
}))), hAsync("div", { key: '
|
|
15102
|
+
}))), hAsync("div", { key: '4652dc3741f95ccfac7d53e5e49607515f559ce1', class: "tab-panels" }, this.parsedTabs.map((_, index) => (hAsync("div", { role: "tabpanel", id: `panel-${index}`, "aria-labelledby": `tab-${index}`, hidden: index !== this.activeIndex, tabIndex: index === this.activeIndex ? 0 : -1, class: "effect-focus" }, hAsync("slot", { name: `panel-${index}` })))))));
|
|
14618
15103
|
}
|
|
14619
15104
|
get el() { return getElement(this); }
|
|
14620
15105
|
static get watchers() { return {
|
|
@@ -14677,7 +15162,7 @@ class EdsTag {
|
|
|
14677
15162
|
}
|
|
14678
15163
|
render() {
|
|
14679
15164
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
14680
|
-
return hAsync("span", { key: '
|
|
15165
|
+
return hAsync("span", { key: 'ef36f799cf3226ccf281428929e75326ea6a06e4', class: classes }, this.label);
|
|
14681
15166
|
}
|
|
14682
15167
|
static get style() { return EdsTagStyle0; }
|
|
14683
15168
|
static get cmpMeta() { return {
|
|
@@ -14739,7 +15224,7 @@ class EdsTimeline {
|
|
|
14739
15224
|
}
|
|
14740
15225
|
}
|
|
14741
15226
|
render() {
|
|
14742
|
-
return (hAsync("div", { key: '
|
|
15227
|
+
return (hAsync("div", { key: '0e33d3aed6e58d34209012bf65b0388b501f1667', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: 'ac0c5cfa6685d79cce06faa4481568ce1018c562', class: "relative" }, hAsync("div", { key: '96be2703fc36ecbe8b872d7ed79873375ef05de9', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '9d4e75de9f35a00c76edf08f7e570c62c325741d', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14743
15228
|
? [{ label: 'completed', style: 'accent' }]
|
|
14744
15229
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14745
15230
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14913,7 +15398,7 @@ class EdsToastManager {
|
|
|
14913
15398
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14914
15399
|
}
|
|
14915
15400
|
render() {
|
|
14916
|
-
return (hAsync("div", { key: '
|
|
15401
|
+
return (hAsync("div", { key: '871b9d1b34f1e03b77754a1bfd82b5e506d12592', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
14917
15402
|
}
|
|
14918
15403
|
get hostElement() { return getElement(this); }
|
|
14919
15404
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14952,7 +15437,7 @@ class EdsTooltip {
|
|
|
14952
15437
|
}
|
|
14953
15438
|
render() {
|
|
14954
15439
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14955
|
-
return (hAsync("div", { key: '
|
|
15440
|
+
return (hAsync("div", { key: '1c56a6c10a841575d1450750d2aaf55f9f42f6ee', class: "relative w-full inline-block group" }, hAsync("slot", { key: '631775de9a60642ec51de32708e0d6a0c2c27b66' }), hAsync("div", { key: '9def7dbbc301f465b81ff0e77b182be90d0893de', class: `absolute ${positionClass}
|
|
14956
15441
|
rounded-xs bg-strongest text-inverse
|
|
14957
15442
|
f-ui-03-light pointer-events-none
|
|
14958
15443
|
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -15016,7 +15501,7 @@ class EdsTrl {
|
|
|
15016
15501
|
Application: { format: 'code' },
|
|
15017
15502
|
'Current TRL Stage': { format: 'text' }
|
|
15018
15503
|
};
|
|
15019
|
-
return (hAsync("div", { key: '
|
|
15504
|
+
return (hAsync("div", { key: 'a38f75e6defd9d618e3cc8a8404c6634adcd7cdb', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: '87ccaf97a5d635348347ce1c80c96d78e6631541', "table-data": JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
15020
15505
|
}
|
|
15021
15506
|
static get cmpMeta() { return {
|
|
15022
15507
|
"$flags$": 0,
|
|
@@ -15081,7 +15566,7 @@ class EdsUser {
|
|
|
15081
15566
|
render() {
|
|
15082
15567
|
const user = this.parsedUser;
|
|
15083
15568
|
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
15084
|
-
return (hAsync("div", { key: '
|
|
15569
|
+
return (hAsync("div", { key: 'a16f22ec9cc18d2904ea687cbcc56099ea6273ea', class: "block" }, hAsync("div", { key: 'f2f52774b7d5fee5169a0e944f0f9d871421da89', class: "flex items-center" }, hAsync("eds-dropdown", { key: '5232b88c109f2e4957f3582113750d49b1bc025c', ref: (el) => (this.dropdownEl = el), label: this.dropdownLabel, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: iconName, class: "text-default", onDropdown: this.handleDropdown }, hAsync("div", { key: '476d9ae9f4812611ae06d0dd1aecb08f0751742a', class: "min-w-[280px] p-8" }, hAsync("div", { key: 'ad74767750213daf55029741a4ed4c8b32f55a27', class: "flex gap-x-16", "data-dropdown-no-close": true }, hAsync("eds-avatar", { key: '64bcf2b15cc095143919d5e6a255498d77260607', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), hAsync("div", { key: 'b3850b7c774b5434fc41dd0fad6a88c9835d4946', class: "max-w-full" }, user.name && hAsync("p", { key: '74027025ccd58fa4f4016699ebb3f4f541cea858', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && hAsync("p", { key: '850f015e7a19a8f711cf22477daa5119d4211e15', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && hAsync("p", { key: '414e6ec14738be04b9b4e5e1fe99a4f263eb2e3b', class: "f-ui-03-light text-light mt-4" }, user.email))), hAsync("div", { key: '9b12da0776f6d63461c5fd7201bdccb35f430610', class: "text-default flex w-full flex-col gap-y-8" }, hAsync("slot", { key: '867b2ce8149f402ae879bd2fab689b252abed95c' })))))));
|
|
15085
15570
|
}
|
|
15086
15571
|
get hostEl() { return getElement(this); }
|
|
15087
15572
|
static get style() { return EdsUserStyle0; }
|
|
@@ -15137,7 +15622,7 @@ class GradientPrimaryPalette {
|
|
|
15137
15622
|
];
|
|
15138
15623
|
}
|
|
15139
15624
|
render() {
|
|
15140
|
-
return (hAsync("ul", { key: '
|
|
15625
|
+
return (hAsync("ul", { key: 'd49c7b463621ffc3c747c4dab0703415a4275555', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
15141
15626
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
15142
15627
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
15143
15628
|
}
|
|
@@ -15210,19 +15695,19 @@ class GradientSecondaryPalette {
|
|
|
15210
15695
|
];
|
|
15211
15696
|
}
|
|
15212
15697
|
render() {
|
|
15213
|
-
return (hAsync("div", { key: '
|
|
15698
|
+
return (hAsync("div", { key: 'f2a833d8e2e4b13f8149a2b47772489ba7eec29e' }, hAsync("ul", { key: '0d787bde224fcef07d6b5fbae338e2a521c52f05', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'd739f505deed8cab298dc94a6bd76521ca8ac847', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '0ae2b7e3cdda8b54defa9f82f1356cd5d1c9b709', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15214
15699
|
background: this.colors[0].background
|
|
15215
|
-
} }, hAsync("div", { key: '
|
|
15700
|
+
} }, hAsync("div", { key: '64eb1288afd2cdefa1f104bb43258d55c3245b8c', class: "grid" }, hAsync("span", { key: 'f7fb79a235046c7892b91394b444d17443ca0248', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'f1cece71d557e453c8c9787fd28d7a3f8475a7e2', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '0200a4cf288f1328c67e079171a4530801b78921', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '79666e2d3b62155de387cee661dfc94778b28aa5', class: "grid" }, hAsync("span", { key: 'ee58f239ce1b20323813674c086ae138a7cb70c7', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: 'ee1753329fe850c66dc58dfe900b38c67e8acd55', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: 'c7b2e2a19336afbded9f8ae3eff507ab12ecc4ac', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15216
15701
|
background: this.colors[1].background
|
|
15217
|
-
} }, hAsync("div", { key: '
|
|
15702
|
+
} }, hAsync("div", { key: 'f130fec6b8a3c9ab2eb9ed4d09672624a26865e1', class: "grid" }, hAsync("span", { key: 'b22ec15019ebe56721b7dfb63bcf327aaf5b9823', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '805c9ccaaea2baa8b6c1d41a08ebcd37b6d4153b', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '58b09ffd2a465b1c35d71224db3d56b664669273', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '87e3b35c6837b8b2249c65c2775d86352cdfbaa1', class: "grid" }, hAsync("span", { key: '14da8f6c8e8993d652889808a23dd49e40c515f8', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '739355001e3488c8fd100fc92f90e01d32079311', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '7a9d217a2a097c49eb31c3740cc9c075ee12f646' }), hAsync("ul", { key: 'd12159ccfdbeb0aecb24c6a1d653cad16e692df1', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '3619595f2daa91bf7ba9ad3ad6a1775e6e972c56', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b01fa5e47c8c0d3c96d78235c3210a5351b19c39', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15218
15703
|
background: this.colors[2].background
|
|
15219
|
-
} }, hAsync("div", { key: '
|
|
15704
|
+
} }, hAsync("div", { key: 'd494257a35394278969f2ba6db366576e9ae9e49', class: "grid" }, hAsync("span", { key: '849658f307afb30dce0ac150fa9a573ccdbf4c04', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'b86d3700b71389ffa098746c57bef30a9dcb4c60', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '264f5a6e7c66b3feac9ab2476078f43ae864657c', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '67d58325bc81537a1df54aa92bd1c20afb6d4337', class: "grid" }, hAsync("span", { key: '5961ba6cc25b866236521f7aac9e74a2eaa56f6b', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '6f891a3d8a392f7f993a3be70430dd107e2fb687', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '48eb15e8bc88a4df98c15351956e7e3c23fd4f5b', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15220
15705
|
background: this.colors[3].background
|
|
15221
|
-
} }, hAsync("div", { key: '
|
|
15706
|
+
} }, hAsync("div", { key: '102f3ef256c4640cd218f50eb368c62f3bacdcae', class: "grid" }, hAsync("span", { key: '84f60a51251d14e207b849c1c4f5cf324f144db7', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '2fb2ce9460a4c1a031678df3625aef0d46c58ca3', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'dd95a53afc3b16fdc47c99cc12764a151e4adc78', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8857d41ec688b9b654e935dc5068d7a56db1175d', class: "grid" }, hAsync("span", { key: '967db71db927b65cff00298730e3195b23927f9c', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '942d70c17ccdd39d5fee5aaa7d08cb7607aba083', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: '9905640465b352ee2581ba2f2fb0c111df2e4d51' }), hAsync("ul", { key: '3b503ca2aa38d5ca087b03195f5e8e316f91a046', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'dee0de27a82ce6baf0ef5cb18b8d51015095e93b', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '7cbc284a013f4a3ef36991f66ce4174a6459c414', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15222
15707
|
background: this.colors[4].background
|
|
15223
|
-
} }, hAsync("div", { key: '
|
|
15708
|
+
} }, hAsync("div", { key: '159d904075a396929e34d9b0b0c47c64e5b2d392', class: "grid" }, hAsync("span", { key: 'e9fe88d716b42ee87cd00cec2e6aba4979778327', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: 'b2b8401366adbc00142e4b993b193b849034bb64', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '9a29a5ce1149b9581fbc7389117e331c118b7353', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a0f65e92dc676413301ab868d267f1dc621041a3', class: "grid" }, hAsync("span", { key: 'aa6719d23be2279fc63cf11c714b2f3f509a757c', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '64c9b712f7719c7e695044153e1b568c4a52d5f7', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: '33ff5f6a668ade9681d9652a8a295f148c86f612', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15224
15709
|
background: this.colors[5].background
|
|
15225
|
-
} }, hAsync("div", { key: '
|
|
15710
|
+
} }, hAsync("div", { key: '2800012e3986478469d57dd0d4a44bd4778dbe8d', class: "grid" }, hAsync("span", { key: 'ccb1d4d1b76547aa711bade0d4f02c6c0536edb0', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: '71fc93f55e10505f0d806d5ae08198c744c3ccbe', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '99ac406de66c5196e5d7e5cfc75cec977d0a300c', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'fabb9ea805a237c89a06703f17baa630f219b67c', class: "grid" }, hAsync("span", { key: 'ffba37cdb47b4b3ba020a75b8302776569b93df9', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: '9831ad808be56cbc208b76686d6a9a22e4daf643', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
15226
15711
|
}
|
|
15227
15712
|
static get cmpMeta() { return {
|
|
15228
15713
|
"$flags$": 0,
|
|
@@ -15285,11 +15770,11 @@ class GradientSupportPalette {
|
|
|
15285
15770
|
];
|
|
15286
15771
|
}
|
|
15287
15772
|
render() {
|
|
15288
|
-
return (hAsync("ul", { key: '
|
|
15773
|
+
return (hAsync("ul", { key: '4536bf9450bc01b4288801fd244fbf62b2c7c6ea', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'bd9714faac09cb05215bfb07c852579b08811d84', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '5dec5f2445f60c982bb90688fa15af5f5d0fc429', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: 'bdfdb8c692531fce0f968c5bdddbe8cf01c30cb5', class: "grid" }, hAsync("span", { key: '74b10fc06c3cf8b221bbcbd240787bd667c1eac6', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '7068886705095e95884dbca60f6955ed1bb3afda', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'aa72791c1ae4129ab625430804eaafea77913852', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '9b9875d0701745fd6d3c27d7cf8e8e1438ad1f10', class: "grid" }, hAsync("span", { key: '49034e6e4668ef271a039250b633b042de668932', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: 'b8a5448822eff24b533f27c66f5c67c99fcff631', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: 'af96a3795f253000ec44634d8bd8879cbb42dc02', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '39c7718379605d3bb087928fceb92f1772d32d0f', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: '9a2ebe2703870e187652821a9f1e5c312d234b1e', class: "grid" }, hAsync("span", { key: 'f1f50954ea41d6ba2581abacc3be8259b2c5f6df', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '15d0acd635db2af23e23c583e555726d98516499', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '5c587f4fc2d824caef7986348a98e5016314ec71', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8e465b3324ee9f3c2d3a3f77af219f3b9fbd38bd', class: "grid" }, hAsync("span", { key: 'f462ad550675c18668a4710e34adf49106a4010f', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: '19cef6f8c5502c1e6ed3344365614a0fed3b7479', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: 'c33912ea002fd04f953d787ab3429aad6cb22819', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '7ee1396dcc55d2ab311a2dd8f3f684f690d149cc', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15289
15774
|
background: this.colors[2].background
|
|
15290
|
-
} }, hAsync("div", { key: '
|
|
15775
|
+
} }, hAsync("div", { key: '5a9e865e7e21279d95072a1e36e514d19bc320f2', class: "grid" }, hAsync("span", { key: '3f50ab38b2537aaa5bd8b0835d3f1bef56ab3a4f', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'e54e1bb4f6f98dc2fc00e3e9777673923a5acb39', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'a840c223d88b635c5c8d6c769148157c5c706589', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'e5df78c22dec1102cccfe147fe399d9c2dd95763', class: "grid" }, hAsync("span", { key: 'fac7fb25462577388b702d4d344e6a92c2fef703', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '9ee513ef286f8aa73308e312f2dd15dbd9cd66a6', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '1298bd6a27cfb1f6ae78893aecede2ea38dd5918', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15291
15776
|
background: this.colors[3].background
|
|
15292
|
-
} }, hAsync("div", { key: '
|
|
15777
|
+
} }, hAsync("div", { key: '0fba58a3d08292a83f9ea355c9f5eaf302ec7e62', class: "grid" }, hAsync("span", { key: '06978e5ccd45c684114baba14197fae88a29b009', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '0bd72456a2de62ef77b091861aa042ab9fd0739b', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'f2e9fe5798503e662637ee73182dc00e183c01b7', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '489311b860dfdd54a1facb310a94c684fa34e169', class: "grid" }, hAsync("span", { key: '98b03f75771f438b1dfe1325f0e21ee5b45f9447', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: 'dfa8933173fdb19186372a63fdf7a2b683c36b95', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: '5e7516b9e860965a9a1c1b140988bc8789f4e92e', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'cde427ae68e8d16a547dd1e714847359e5b39197', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: '547066eac01d4cc61a1938dccf2d51c1ee3b4f6a', class: "grid" }, hAsync("span", { key: '2deac787b948cfdeaf00b39de8731fa6ffe54512', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '3bbd8a2f82a25f16bb989252912e69bee13b61dd', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'f262c5f8bdfa4355181700078d3a38c13b5598f3', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '352d72f29eba7dec334e1e46898921cfe9dbb1e5', class: "grid" }, hAsync("span", { key: 'd199696680cc4cea53920f3898e97a9cd7cce4ca', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: '058951afa29e29683fcb6b0f89ee046482c50669', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
15293
15778
|
}
|
|
15294
15779
|
static get cmpMeta() { return {
|
|
15295
15780
|
"$flags$": 0,
|
|
@@ -15343,7 +15828,7 @@ class IncorrectUseOfColors {
|
|
|
15343
15828
|
registerInstance(this, hostRef);
|
|
15344
15829
|
}
|
|
15345
15830
|
render() {
|
|
15346
|
-
return (hAsync("div", { key: '
|
|
15831
|
+
return (hAsync("div", { key: '46ba571846c2b481f3ace83fa6ba4a87bcd30782', class: "container" }, hAsync("div", { key: '9dc5ab29cf5eaad08c8b83207e7aeb90b6ab4a4d', class: "mb-8" }, hAsync("eds-alert", { key: '8e7f6cef090d49b6bbc7073287160c1043c55a93', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), hAsync("div", { key: 'f1179f91e386c3eafea6a0ddfe8f4cec957d8e45', class: "flex" }, hAsync("div", { key: 'a2e2bdde2b2e7db03cdc7c4bcf3340a1de588502', class: "w-full" }, hAsync("ul", { key: 'de6f792de1485bb7771b5feb911185ad8e433dab', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'b018dc2bf1644efc96807184e7996bb32221ecc3', class: "w-full" }, hAsync("ul", { key: '6ec1aff24d751fde41e3f4a878f641a84bf91854', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
15347
15832
|
}
|
|
15348
15833
|
static get cmpMeta() { return {
|
|
15349
15834
|
"$flags$": 0,
|
|
@@ -15366,7 +15851,7 @@ class LogoSpace {
|
|
|
15366
15851
|
registerInstance(this, hostRef);
|
|
15367
15852
|
}
|
|
15368
15853
|
render() {
|
|
15369
|
-
return (hAsync("div", { key: '
|
|
15854
|
+
return (hAsync("div", { key: '636539f79ffa0f99700e05a7dc5096e824959aed', class: "container" }, hAsync("ul", { key: '505f5632c6726bd10f9a4f98c471452dd69f87db', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '7488de77952464c75c7b427f642673e63def6344', class: "grid-col-span-6 xxl:grid-col-span-3 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'f892d703e92f518d58ca51c87ea51b67c5a520d1', class: "logo-container mx-auto w-[300px]", innerHTML: vLogoMargins })), hAsync("li", { key: '22e2f278b5bba1cd20742fc04c4f3bceba67f916', class: "grid-col-span-6 xxl:grid-col-span-3 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '76fa2224e922e312c132c817a32334b5737568c5', class: "text-center mt-16" }, hAsync("p", { key: '446e27f37cf9f49ca2acdd5ba206dd37a7bf96d2', class: "f-body-01" }, "To ensure legibility, follow these minimum size guidelines:"), hAsync("eds-table", { key: 'bcefae89104a8690b21db7bfa23b3fdc2486be0c', data: '[\n { "Media": "Print", "Landscape": "0.75 cm", "Portrait": "1.75 cm" },\n { "Media": "Web", "Landscape": "29 px", "Portrait": "50 px" }\n ]', config: '{\n "Media": { "format": "bold" }\n }' }))), hAsync("li", { key: 'cbd5ddd28fd58cef55cde10d93a72c6464eb92ef', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }))));
|
|
15370
15855
|
}
|
|
15371
15856
|
static get style() { return LogoSpaceStyle0; }
|
|
15372
15857
|
static get cmpMeta() { return {
|
|
@@ -15390,7 +15875,7 @@ class LogoVariationsHorizontal {
|
|
|
15390
15875
|
registerInstance(this, hostRef);
|
|
15391
15876
|
}
|
|
15392
15877
|
render() {
|
|
15393
|
-
return (hAsync("div", { key: '
|
|
15878
|
+
return (hAsync("div", { key: '31080c3f61b7081b812d2148af7f6b534d3b9205', class: "container" }, hAsync("ul", { key: '8c425610616c76af3511717cd9848d8c08b6bb5a', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'ac2a5a9aa41ff24812ec784afc48a824914b9b5f', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: 'c6c4506d720f25b8fd5c640f1e6ac88d16c5f3cd', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: 'cf934aaffba7de45df6d520f10cd62a3446e3513', class: "coloured" }, hAsync("eds-logo", { key: '7e7f53445d58659b79ac0894b330c8bfa6cf0029', type: "no-bg", href: "#" }))), hAsync("li", { key: 'e0df9fe7cba5df458cc0b4a71155a3142cda903f', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: 'fd276f221216a21255a91983d3e7dd01a68c249e', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '1a6fb9c33f9b08a530e77abd0ee52a1ff331593a', class: "bg-default" }, hAsync("eds-logo", { key: 'eadd809060652b6258164bb4fa28a932177d916d', type: "black", href: "#" }))), hAsync("li", { key: '12bf924628c51eccf3ce49a9cbb8505852256f49', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '5b5378282b032642133d624cf0b795c443fab16e', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: 'f84ba6c4c58ee16adcaccfcf04537e60f8bb694a' }, hAsync("eds-logo", { key: 'd0e17a1eb56a657bd390543b8d2f27543f8cb4e1', type: "color-white", href: "#" }))))));
|
|
15394
15879
|
}
|
|
15395
15880
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15396
15881
|
static get cmpMeta() { return {
|
|
@@ -15422,7 +15907,7 @@ class LogoVariationsTabs {
|
|
|
15422
15907
|
}
|
|
15423
15908
|
}
|
|
15424
15909
|
render() {
|
|
15425
|
-
return hAsync("div", { key: '
|
|
15910
|
+
return hAsync("div", { key: 'f35a343973fee85b4aa9341af797dc006aad4a03', class: "container" }, this.renderContent());
|
|
15426
15911
|
}
|
|
15427
15912
|
static get cmpMeta() { return {
|
|
15428
15913
|
"$flags$": 0,
|
|
@@ -15449,7 +15934,7 @@ class LogoVariationsVertical {
|
|
|
15449
15934
|
this.type = undefined;
|
|
15450
15935
|
}
|
|
15451
15936
|
render() {
|
|
15452
|
-
return (hAsync("div", { key: '
|
|
15937
|
+
return (hAsync("div", { key: 'c3c9836a877143b6cc94fb1b1e5460651290c55a', class: "container" }, hAsync("ul", { key: '09c53755ca2f7c96dffc3c2cb431c0283b22e476', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '4e69783ee97bc8a87e355aded11969bd722b9cb6', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: '8dbb1dc5944bdd0c8a291953a812aa8260e891ae', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: '80014d18145ff1a926eae339472ca7c7281ca7b0', class: "mx-auto coloured w-[300px]" }, hAsync("eds-logo", { key: '832765f9d2e6bfd286917ab64bc30c8f5eee4f6f', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("li", { key: '3501b56b46e16bdf16b963dc1ce21c7bb537d7a7', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: 'beb34779015221aa5595d0741b07e6d25b096afa', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '01f629499e08510989e7091c5360a568998bf3d7', class: "mx-auto bg-default w-[300px]" }, hAsync("eds-logo", { key: '49aa4ef2bf284c891fe2ecca8fbe3a867e7de039', orientation: "vertical", type: "black", href: "#" }))), hAsync("li", { key: '9b55564be0a4fb1d55452e7d3c0d4bd643d0517f', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("p", { key: 'a95288658f7199722ab086779e8613856e7079bd', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: 'edaa539d4b4733274311621f65395371addffbdf', class: "mx-auto w-[300px]" }, hAsync("eds-logo", { key: 'e8a2997d451664afca22b6dc61c5da109a096e54', orientation: "vertical", type: "color-white", href: "#" }))))));
|
|
15453
15938
|
}
|
|
15454
15939
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15455
15940
|
static get cmpMeta() { return {
|
|
@@ -15476,7 +15961,7 @@ class LogoWrongUsage {
|
|
|
15476
15961
|
registerInstance(this, hostRef);
|
|
15477
15962
|
}
|
|
15478
15963
|
render() {
|
|
15479
|
-
return (hAsync("div", { key: '
|
|
15964
|
+
return (hAsync("div", { key: '6bbcb3339a0704b6bc75d38d8c699dbdf333ed4f', class: "container" }, hAsync("ul", { key: 'a87538139dce51e0b67274cd7eb4a514cddf1892', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'c1b2d506f4bc4212ced9f42ca2cf5940e8c50002', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '3af5af8f6b1388fd61550838cf3aa6dcfbc6f78d', class: "mx-auto no-other-bg-color logo", innerHTML: hLogoColor }), hAsync("p", { key: 'c6576b28269f62dfbc9ad4c012f7253265e40ed7', class: "f-ui-02 text-center" }, "Do not use with backgrounds that make legibility difficult")), hAsync("li", { key: '2f0cf0b80c42585d5f49667e758be1bd666686a8', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '1483d36ce2107a2c4e2a3b4bb581559ef651dae0', class: "mx-auto no-other-color logo non-brand-color", innerHTML: hLogoColor }), hAsync("p", { key: 'f4f654f2ffcbc628620fdf93593effe220f5ab80', class: "f-ui-02 text-center" }, "Do not apply other colors")), hAsync("li", { key: '5411619f96e5db5f9e41c998bb2624346d9fc874', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '1bf1eae3cac99a849ed20d77c340faa3ed333189', class: "mx-auto distorted logo", innerHTML: hLogoColor }), hAsync("p", { key: '73156bd4f715e56510f83ac12442516a5955c85c', class: "f-ui-02 text-center" }, "Do not deform the logo")), hAsync("li", { key: '784997d0d0b9f438d04b0e6e5c373ea16a7350b7', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: '6c630fadddafc30eeed0512298a01b7f609cc9c0', class: "mx-auto effects logo", innerHTML: hLogoColor }), hAsync("p", { key: 'd94d025029f55a163c14ee601f93bfce69a90b98', class: "f-ui-02 text-center" }, "Do not apply effects")), hAsync("li", { key: '54de1bb2f15c4817365f81b00c054f5ce5c3f73f', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'd10080524287c741489bcb0b0e110a1d5fe85e6a', class: "mx-auto rotated logo", innerHTML: hLogoColor }), hAsync("p", { key: '09f9f4e58ef7b5c0d5f3226f5e7f985a85876c9f', class: "f-ui-02 text-center" }, "Do not rotate the logo")), hAsync("li", { key: '9cf00dcba969bfc4b979f4e48a6fc54eef0a0f70', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'ea6ac8711d0bd15c90b57e0b49d429df29db1f46', class: "mx-auto outlined logo", innerHTML: hLogoColor }), hAsync("p", { key: '034f83d9ed7e7d28824060a725676180ea4c5558', class: "f-ui-02 text-center" }, "Do not apply outlines")), hAsync("li", { key: '530423af692930c0b7dfad9ce66584d1bfb6f61a', class: "grid-col-span-6 xxl:grid-col-span-2 xl:grid-col-span-3 lg:grid-col-span-3 md:grid-col-span-3 flex flex-col" }, hAsync("div", { key: 'cf068a0bf96cbaa1ec78badc46d7045257ecbae3', class: "mx-auto" }, hAsync("div", { key: 'fb927d7148d7dbc3fd8d0a7cb585c29ccc4082dc', class: "bg-accent p-16" }, hAsync("div", { key: '2b272b08d0fa2d5972d6c26387279813d83c6990', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: '1c104c8279497a6c4cce15f973de9341d4768653', class: "f-ui-02 text-center" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones"))))));
|
|
15480
15965
|
}
|
|
15481
15966
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15482
15967
|
static get cmpMeta() { return {
|
|
@@ -15520,7 +16005,7 @@ class SvgRepository {
|
|
|
15520
16005
|
icon: { format: 'svg' },
|
|
15521
16006
|
name: { format: 'bold' }
|
|
15522
16007
|
};
|
|
15523
|
-
return (hAsync("div", { key: '
|
|
16008
|
+
return (hAsync("div", { key: '741972b0adefcb91106a9229df6d1eb258b9a20e', class: "full-width" }, hAsync("eds-table", { key: '2c06211f9e1ad7d3a10ddf95908db83783c37e53', "table-data": JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true })));
|
|
15524
16009
|
}
|
|
15525
16010
|
get hostEl() { return getElement(this); }
|
|
15526
16011
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -15777,7 +16262,7 @@ class TokenList {
|
|
|
15777
16262
|
render() {
|
|
15778
16263
|
// Check if `show` prop is provided; if not, display all sections
|
|
15779
16264
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15780
|
-
return (hAsync("section", { key: '
|
|
16265
|
+
return (hAsync("section", { key: '940429578fd363c79e2dd79f0f2ac758ca87e905', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15781
16266
|
// Only render sections that exist in `colors`
|
|
15782
16267
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15783
16268
|
}
|
|
@@ -15810,7 +16295,7 @@ class TokenRadii {
|
|
|
15810
16295
|
registerInstance(this, hostRef);
|
|
15811
16296
|
}
|
|
15812
16297
|
render() {
|
|
15813
|
-
return (hAsync("section", { key: '
|
|
16298
|
+
return (hAsync("section", { key: '4e8ae60a6a8c9ed3f49c4d69a6b68b2f9e6e5c5a', class: "w-full mt-28" }, hAsync("ul", { key: '5a4b2c649170390872aec0c21694067d735f4069', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
15814
16299
|
}
|
|
15815
16300
|
static get cmpMeta() { return {
|
|
15816
16301
|
"$flags$": 0,
|
|
@@ -15839,7 +16324,7 @@ class TokenRatios {
|
|
|
15839
16324
|
registerInstance(this, hostRef);
|
|
15840
16325
|
}
|
|
15841
16326
|
render() {
|
|
15842
|
-
return (hAsync("section", { key: '
|
|
16327
|
+
return (hAsync("section", { key: '70fd39ec49cf5e57a1d1775b18a3dacc3f6afa73', class: "w-full" }, hAsync("eds-section-core", { key: 'fd94df5d8f1049a86e6bebd2e96f5b1c44b8881d', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'cd5928f33ea769e01ff0f7bf402e737cb03940e6', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
15843
16328
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15844
16329
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15845
16330
|
maxWidth: '300px'
|
|
@@ -15881,7 +16366,7 @@ class TokenShadows {
|
|
|
15881
16366
|
registerInstance(this, hostRef);
|
|
15882
16367
|
}
|
|
15883
16368
|
render() {
|
|
15884
|
-
return (hAsync("section", { key: '
|
|
16369
|
+
return (hAsync("section", { key: 'b5a033c491057c60a7b0d2ac1a1ef46a234eb718', class: "w-full mt-28" }, hAsync("ul", { key: '3f39094a92599645183ee2eb60b3726bd69b6166', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
15885
16370
|
}
|
|
15886
16371
|
static get cmpMeta() { return {
|
|
15887
16372
|
"$flags$": 0,
|
|
@@ -15901,7 +16386,7 @@ class TokenSpacing {
|
|
|
15901
16386
|
registerInstance(this, hostRef);
|
|
15902
16387
|
}
|
|
15903
16388
|
render() {
|
|
15904
|
-
return (hAsync("div", { key: '
|
|
16389
|
+
return (hAsync("div", { key: '6b3242864d2a095f7a39a2e13be792d864a2f349', class: "w-full" }, hAsync("ul", { key: 'afb2db7e82d1efc4c5f2118d3ce912836214b65c', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '01f8b99e5d3bc38d9946f645c79c93bd7c2118b1', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'd6986922cca32cdfeb39d3b31f7c3a1a7c1bb9e4', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'f8cfae4596dbd048053d5e433b55d6b4ecaa5351', class: "spacing-sample m-16 bg-strong" }, hAsync("span", { key: '4b19dd66840ea52b31b94d7222bde7cde6346225', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), hAsync("li", { key: '8a8a0b2815f07dd8e9c3235b16ae1e8bdac1c3e3', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '096cc724cec2033f1f8f87bb5b6fac60dce82bd5', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'cf1917d881f307141e011aadc6d353883bf96720', class: "spacing-sample ml-64 bg-strong" }, hAsync("span", { key: '46c1054edcbad036d37d31ea86f85c13ea141dc3', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: '562965b0245275992204e227b7cdb0d15df3e7fe', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '1e3f7de64f7916a507b2dad14b9f6f711990dc0f', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'e7d391fca34899535c0c480dca50a169832cad89', class: "spacing-sample mt-32 bg-strong" }, hAsync("span", { key: 'c8ecacf9b3ffe5cc0d5178953ed81612bfe7bfb9', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: '578d79c02cfd18f3fd325c854c83a175358de29c', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'ea1b373a23cb9f504bb2f668592b05d7906463ff', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '4f5c6994dd127b2d8f6242d34182e768bff37a93', class: "spacing-sample p-32 bg-strong" }, hAsync("span", { key: '6833463ec21e77da1bed3b1c2d2e4df3892d655c', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'c625bba2faa660cd7de320d5de8833ad67124e65', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '1c28128ae1046cbe561f526725f2e1f4098841a8', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '2d82995a9278f32ad257b5f43e299dc59fccfb8b', class: "spacing-sample pt-32 bg-strong" }, hAsync("span", { key: '7afad7410f0f0c867d32b7e81a384fe294bdba07', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '96a65c8b325e8c271e95d3e98c447ed6c438ee09', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '4907c7fdc86c09e0760ba4ab9e0b06606804ca46', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'cebf638f44789c31845edfafe6d6e82e6fe8d188', class: "spacing-sample pl-32 bg-strong" }, hAsync("span", { key: '3ca0c927fe573467215c84ffb8373bb90e4bf949', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
15905
16390
|
}
|
|
15906
16391
|
static get cmpMeta() { return {
|
|
15907
16392
|
"$flags$": 0,
|
|
@@ -16119,7 +16604,7 @@ class TokenTypography {
|
|
|
16119
16604
|
registerInstance(this, hostRef);
|
|
16120
16605
|
}
|
|
16121
16606
|
render() {
|
|
16122
|
-
return (hAsync("section", { key: '
|
|
16607
|
+
return (hAsync("section", { key: 'aedc3e99bcef2710c6919855fd30de9fa44d48f5', class: "w-full" }, hAsync("ul", { key: '7391f39ff3599e976cd19805f35a5d4e74e06fa6', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
16123
16608
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
16124
16609
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
16125
16610
|
fontFamily: typography.families.sans,
|
|
@@ -16243,6 +16728,7 @@ registerComponents([
|
|
|
16243
16728
|
EdsRating,
|
|
16244
16729
|
EdsSectionCore,
|
|
16245
16730
|
EdsSectionHeading,
|
|
16731
|
+
EdsSidebar,
|
|
16246
16732
|
EdsSocialNetworks,
|
|
16247
16733
|
EdsSpinner,
|
|
16248
16734
|
EdsSplashScreen,
|