@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.mjs
CHANGED
|
@@ -2331,7 +2331,7 @@ class ColorPrimaryPalette {
|
|
|
2331
2331
|
];
|
|
2332
2332
|
}
|
|
2333
2333
|
render() {
|
|
2334
|
-
return (hAsync("ul", { key: '
|
|
2334
|
+
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))))))));
|
|
2335
2335
|
}
|
|
2336
2336
|
static get cmpMeta() { return {
|
|
2337
2337
|
"$flags$": 0,
|
|
@@ -2403,7 +2403,7 @@ class ColorSecondaryPalette {
|
|
|
2403
2403
|
this.show = undefined;
|
|
2404
2404
|
}
|
|
2405
2405
|
render() {
|
|
2406
|
-
return (hAsync("ul", { key: '
|
|
2406
|
+
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))))))));
|
|
2407
2407
|
}
|
|
2408
2408
|
static get cmpMeta() { return {
|
|
2409
2409
|
"$flags$": 0,
|
|
@@ -2477,7 +2477,7 @@ class ColorSupportPalette {
|
|
|
2477
2477
|
return 'text-default';
|
|
2478
2478
|
}
|
|
2479
2479
|
render() {
|
|
2480
|
-
return (hAsync("ul", { key: '
|
|
2480
|
+
return (hAsync("ul", { key: '24be31af945fa36a65a512367f61ff64e260acef', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2481
2481
|
// compute once
|
|
2482
2482
|
const textClass = this.getTextColor(color.background);
|
|
2483
2483
|
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)))));
|
|
@@ -2503,26 +2503,25 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2503
2503
|
"."),
|
|
2504
2504
|
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" }),
|
|
2505
2505
|
hAsync("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
|
|
2506
|
-
hAsync("
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
2506
|
+
hAsync("div", { class: "mt-16" },
|
|
2507
|
+
hAsync("eds-steps", { type: "static", steps: [
|
|
2508
|
+
{
|
|
2509
|
+
title: 'Import the Loader Module',
|
|
2510
|
+
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.'
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
title: 'Register Custom Elements',
|
|
2514
|
+
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.'
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
title: 'Lazy Loading in Action',
|
|
2518
|
+
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."
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
title: 'Optimized Performance',
|
|
2522
|
+
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.'
|
|
2523
|
+
}
|
|
2524
|
+
] })),
|
|
2526
2525
|
hAsync("h2", null, "Load the variables and styles"),
|
|
2527
2526
|
hAsync("p", null,
|
|
2528
2527
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -2534,13 +2533,16 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2534
2533
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
2535
2534
|
' ',
|
|
2536
2535
|
hAsync("code", null, "head"),
|
|
2537
|
-
". 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."),
|
|
2536
|
+
". 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."),
|
|
2538
2537
|
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
2539
2538
|
hAsync("p", null,
|
|
2540
2539
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
2541
2540
|
' ',
|
|
2542
2541
|
hAsync("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
2543
|
-
".")
|
|
2542
|
+
"."),
|
|
2543
|
+
hAsync("h2", null, "Example"),
|
|
2544
|
+
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
2545
|
+
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
2544
2546
|
|
|
2545
2547
|
const DocsInstallation = () => (hAsync("div", null,
|
|
2546
2548
|
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."),
|
|
@@ -2569,6 +2571,13 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2569
2571
|
hAsync("h2", null, "Vue Wrappers"),
|
|
2570
2572
|
hAsync("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
|
|
2571
2573
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
2574
|
+
hAsync("h2", null, "Vue Router Initialization"),
|
|
2575
|
+
hAsync("p", null,
|
|
2576
|
+
"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 ",
|
|
2577
|
+
hAsync("code", null, "main.ts"),
|
|
2578
|
+
":"),
|
|
2579
|
+
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" }),
|
|
2580
|
+
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."),
|
|
2572
2581
|
hAsync("h2", null,
|
|
2573
2582
|
"Passing Properties to Custom Elements Using the ",
|
|
2574
2583
|
hAsync("b", null, ".prop"),
|
|
@@ -2590,7 +2599,7 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2590
2599
|
hAsync("b", null, ".prop"),
|
|
2591
2600
|
" 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."),
|
|
2592
2601
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
2593
|
-
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"
|
|
2602
|
+
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" }))));
|
|
2594
2603
|
|
|
2595
2604
|
const DocsAngular = () => (hAsync("div", null,
|
|
2596
2605
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -2628,7 +2637,7 @@ class ComponentsSection {
|
|
|
2628
2637
|
}
|
|
2629
2638
|
}
|
|
2630
2639
|
render() {
|
|
2631
|
-
return hAsync("div", { key: '
|
|
2640
|
+
return hAsync("div", { key: '558e6c2ad94148d2371879fa7ae8f4ce6d996f73', class: "container" }, this.renderContent());
|
|
2632
2641
|
}
|
|
2633
2642
|
static get cmpMeta() { return {
|
|
2634
2643
|
"$flags$": 0,
|
|
@@ -2706,7 +2715,7 @@ class CorrectUseOfColors {
|
|
|
2706
2715
|
registerInstance(this, hostRef);
|
|
2707
2716
|
}
|
|
2708
2717
|
render() {
|
|
2709
|
-
return (hAsync("div", { key: '
|
|
2718
|
+
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 } })))))))));
|
|
2710
2719
|
}
|
|
2711
2720
|
static get cmpMeta() { return {
|
|
2712
2721
|
"$flags$": 0,
|
|
@@ -2745,7 +2754,7 @@ class DocsContent {
|
|
|
2745
2754
|
}
|
|
2746
2755
|
}
|
|
2747
2756
|
render() {
|
|
2748
|
-
return hAsync("div", { key: '
|
|
2757
|
+
return hAsync("div", { key: 'bf55f7238eb1c05bdf6b79a4663070ff257595d8', class: "container" }, this.renderContent());
|
|
2749
2758
|
}
|
|
2750
2759
|
static get cmpMeta() { return {
|
|
2751
2760
|
"$flags$": 0,
|
|
@@ -2778,7 +2787,7 @@ class DocsPalettes {
|
|
|
2778
2787
|
}
|
|
2779
2788
|
}
|
|
2780
2789
|
render() {
|
|
2781
|
-
return hAsync("div", { key: '
|
|
2790
|
+
return hAsync("div", { key: '7cf421f19dc1d70ab5c2df29e8ca22577b1652e2', class: "container" }, this.renderContent());
|
|
2782
2791
|
}
|
|
2783
2792
|
static get cmpMeta() { return {
|
|
2784
2793
|
"$flags$": 0,
|
|
@@ -2936,10 +2945,10 @@ class EdsAccordion {
|
|
|
2936
2945
|
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2937
2946
|
*/
|
|
2938
2947
|
render() {
|
|
2939
|
-
return (hAsync("div", { key: '
|
|
2948
|
+
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
|
|
2940
2949
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2941
2950
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2942
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '
|
|
2951
|
+
${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' })))))));
|
|
2943
2952
|
}
|
|
2944
2953
|
get el() { return getElement(this); }
|
|
2945
2954
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3116,12 +3125,12 @@ class EdsAlert {
|
|
|
3116
3125
|
}
|
|
3117
3126
|
render() {
|
|
3118
3127
|
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3119
|
-
return (hAsync("div", { key: '
|
|
3128
|
+
return (hAsync("div", { key: 'd8f0a45ddbaf3d3eb284751e33ddfdce2e13b67a', class: alertStyles({
|
|
3120
3129
|
intent: this.intent,
|
|
3121
3130
|
brd: this.brd,
|
|
3122
3131
|
direction: this.direction,
|
|
3123
3132
|
withBtn: this.withBtn
|
|
3124
|
-
}), 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: '
|
|
3133
|
+
}), 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() }))))));
|
|
3125
3134
|
}
|
|
3126
3135
|
get el() { return getElement(this); }
|
|
3127
3136
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3172,7 +3181,7 @@ class EdsAppRoot {
|
|
|
3172
3181
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3173
3182
|
}
|
|
3174
3183
|
render() {
|
|
3175
|
-
return (hAsync("div", { key: '
|
|
3184
|
+
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."))));
|
|
3176
3185
|
}
|
|
3177
3186
|
static get cmpMeta() { return {
|
|
3178
3187
|
"$flags$": 9,
|
|
@@ -3255,7 +3264,7 @@ class EdsAvatar {
|
|
|
3255
3264
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3256
3265
|
*/
|
|
3257
3266
|
render() {
|
|
3258
|
-
return (hAsync("div", { key: '
|
|
3267
|
+
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))));
|
|
3259
3268
|
}
|
|
3260
3269
|
static get style() { return EdsAvatarStyle0; }
|
|
3261
3270
|
static get cmpMeta() { return {
|
|
@@ -3286,7 +3295,7 @@ class EdsBlockBreak {
|
|
|
3286
3295
|
this.inverse = false;
|
|
3287
3296
|
}
|
|
3288
3297
|
render() {
|
|
3289
|
-
return hAsync("hr", { key: '
|
|
3298
|
+
return hAsync("hr", { key: 'dd9b98d66f195135ff2fb1374a56d4c670e43d3e', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3290
3299
|
}
|
|
3291
3300
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3292
3301
|
static get cmpMeta() { return {
|
|
@@ -3446,7 +3455,7 @@ class EdsBreadcrumb {
|
|
|
3446
3455
|
*/
|
|
3447
3456
|
render() {
|
|
3448
3457
|
const itemsToRender = this.getTruncatedItems();
|
|
3449
|
-
return (hAsync("nav", { key: '
|
|
3458
|
+
return (hAsync("nav", { key: '4894fb9e6b37ef84880a62f4dcd3289dcb9cab38', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd69405fcee024465d645d9cdbb17189998a94b95', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3450
3459
|
const isLast = index === itemsToRender.length - 1;
|
|
3451
3460
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3452
3461
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3612,7 +3621,6 @@ class EdsButton {
|
|
|
3612
3621
|
this.size = 'small';
|
|
3613
3622
|
this.iconPos = 'right';
|
|
3614
3623
|
this.iconSmall = false;
|
|
3615
|
-
this.extraClass = undefined;
|
|
3616
3624
|
this.triggerClick = undefined;
|
|
3617
3625
|
}
|
|
3618
3626
|
handleParentContext(event) {
|
|
@@ -3663,7 +3671,7 @@ class EdsButton {
|
|
|
3663
3671
|
});
|
|
3664
3672
|
const ElementType = this.elementType;
|
|
3665
3673
|
const isInteractive = !this.disabled && !this.loading;
|
|
3666
|
-
return (hAsync(Host, { key: '
|
|
3674
|
+
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: {
|
|
3667
3675
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3668
3676
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3669
3677
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
@@ -3689,7 +3697,6 @@ class EdsButton {
|
|
|
3689
3697
|
"size": [1],
|
|
3690
3698
|
"iconPos": [1, "icon-pos"],
|
|
3691
3699
|
"iconSmall": [4, "icon-small"],
|
|
3692
|
-
"extraClass": [1, "extra-class"],
|
|
3693
3700
|
"triggerClick": [16]
|
|
3694
3701
|
},
|
|
3695
3702
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
@@ -3723,7 +3730,7 @@ class EdsCardDesc {
|
|
|
3723
3730
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3724
3731
|
}
|
|
3725
3732
|
render() {
|
|
3726
|
-
return (hAsync("p", { key: '
|
|
3733
|
+
return (hAsync("p", { key: '3711e4f24ad19f1dedef3083b9b9c8868f3b4e3f', class: "text-light f-ui-03-light" }, hAsync("span", { key: '46b53c5111bc05ffaaa6f8fcd4b1b6ddfae2d413', class: this.getTruncateClass() }, this.description)));
|
|
3727
3734
|
}
|
|
3728
3735
|
static get style() { return EdsCardDescStyle0; }
|
|
3729
3736
|
static get cmpMeta() { return {
|
|
@@ -3828,7 +3835,7 @@ class EdsCardGeneric {
|
|
|
3828
3835
|
});
|
|
3829
3836
|
}
|
|
3830
3837
|
render() {
|
|
3831
|
-
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 &&
|
|
3838
|
+
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 })))), ' '));
|
|
3832
3839
|
}
|
|
3833
3840
|
get el() { return getElement(this); }
|
|
3834
3841
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -4040,7 +4047,7 @@ class EdsCardProject {
|
|
|
4040
4047
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4041
4048
|
].join(' ');
|
|
4042
4049
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4043
|
-
return (hAsync("article", { key: '
|
|
4050
|
+
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)))))));
|
|
4044
4051
|
}
|
|
4045
4052
|
get el() { return getElement(this); }
|
|
4046
4053
|
static get cmpMeta() { return {
|
|
@@ -4129,7 +4136,7 @@ class EdsCardTags {
|
|
|
4129
4136
|
this.tags = [];
|
|
4130
4137
|
}
|
|
4131
4138
|
render() {
|
|
4132
|
-
return (hAsync("div", { key: '
|
|
4139
|
+
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 })))));
|
|
4133
4140
|
}
|
|
4134
4141
|
static get style() { return EdsCardTagsStyle0; }
|
|
4135
4142
|
static get cmpMeta() { return {
|
|
@@ -4193,7 +4200,7 @@ class EdsCardTitle {
|
|
|
4193
4200
|
render() {
|
|
4194
4201
|
//const Tag = this.getTag();
|
|
4195
4202
|
const Heading = this.headingLevel;
|
|
4196
|
-
return (hAsync(Heading, { key: '
|
|
4203
|
+
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)));
|
|
4197
4204
|
}
|
|
4198
4205
|
static get style() { return EdsCardTitleStyle0; }
|
|
4199
4206
|
static get cmpMeta() { return {
|
|
@@ -4281,7 +4288,7 @@ class EdsCardTool {
|
|
|
4281
4288
|
});
|
|
4282
4289
|
}
|
|
4283
4290
|
render() {
|
|
4284
|
-
return (hAsync("article", { key: '
|
|
4291
|
+
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 }))))));
|
|
4285
4292
|
}
|
|
4286
4293
|
get el() { return getElement(this); }
|
|
4287
4294
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6793,7 +6800,7 @@ class EdsCodeBlock {
|
|
|
6793
6800
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6794
6801
|
}
|
|
6795
6802
|
render() {
|
|
6796
|
-
return (hAsync("div", { key: '
|
|
6803
|
+
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() })))));
|
|
6797
6804
|
}
|
|
6798
6805
|
get el() { return getElement(this); }
|
|
6799
6806
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6841,7 +6848,7 @@ class EdsCookiesPreference {
|
|
|
6841
6848
|
}
|
|
6842
6849
|
}
|
|
6843
6850
|
render() {
|
|
6844
|
-
return (hAsync("div", { key: '
|
|
6851
|
+
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 })));
|
|
6845
6852
|
}
|
|
6846
6853
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6847
6854
|
static get cmpMeta() { return {
|
|
@@ -7030,14 +7037,14 @@ class EdsDropdown {
|
|
|
7030
7037
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
7031
7038
|
*/
|
|
7032
7039
|
render() {
|
|
7033
|
-
return (hAsync("div", { key: '
|
|
7040
|
+
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: {
|
|
7034
7041
|
'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,
|
|
7035
7042
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
7036
7043
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
7037
7044
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
7038
7045
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
7039
7046
|
'rounded-lg': this.rounded
|
|
7040
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
7047
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'ddf003345ef5181b968b4bfd8962805d09d15e89' }))));
|
|
7041
7048
|
}
|
|
7042
7049
|
get host() { return getElement(this); }
|
|
7043
7050
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7122,7 +7129,7 @@ class EdsFeedback {
|
|
|
7122
7129
|
const HeadingTag = this.headingLevel;
|
|
7123
7130
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7124
7131
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7125
|
-
return (hAsync("div", { key: '
|
|
7132
|
+
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]))));
|
|
7126
7133
|
}
|
|
7127
7134
|
get el() { return getElement(this); }
|
|
7128
7135
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7210,9 +7217,9 @@ class EdsFooter {
|
|
|
7210
7217
|
render() {
|
|
7211
7218
|
const year = new Date().getFullYear();
|
|
7212
7219
|
const rights = this.rightsReserved || `${year} EBRAINS. All rights reserved.`;
|
|
7213
|
-
return (hAsync("footer", { key: '
|
|
7220
|
+
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: () => {
|
|
7214
7221
|
this.toggleCookiesConsent();
|
|
7215
|
-
} })) : null))), hAsync("div", { key: '
|
|
7222
|
+
} })) : 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)))));
|
|
7216
7223
|
}
|
|
7217
7224
|
get el() { return getElement(this); }
|
|
7218
7225
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7525,17 +7532,41 @@ class EdsForm {
|
|
|
7525
7532
|
}
|
|
7526
7533
|
const actual = this.values[field.condition.field];
|
|
7527
7534
|
const expected = field.condition.value;
|
|
7528
|
-
// Handle
|
|
7529
|
-
|
|
7535
|
+
// Handle undefined/null/empty
|
|
7536
|
+
if (actual == null) {
|
|
7537
|
+
return expected == null || expected === '';
|
|
7538
|
+
}
|
|
7539
|
+
// Handle arrays (multi-select, checkboxes)
|
|
7540
|
+
if (Array.isArray(actual)) {
|
|
7541
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7542
|
+
}
|
|
7543
|
+
// Handle comma-separated strings (from checkboxes stored as "val1,val2")
|
|
7544
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7545
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7546
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7547
|
+
}
|
|
7548
|
+
// Standard comparison with normalization
|
|
7549
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7550
|
+
}
|
|
7551
|
+
normalizeValue(value) {
|
|
7552
|
+
if (value == null) {
|
|
7553
|
+
return '';
|
|
7554
|
+
}
|
|
7555
|
+
if (typeof value === 'boolean') {
|
|
7556
|
+
return value ? 'true' : 'false';
|
|
7557
|
+
}
|
|
7558
|
+
if (typeof value === 'number') {
|
|
7559
|
+
return String(value);
|
|
7560
|
+
}
|
|
7561
|
+
if (typeof value === 'string') {
|
|
7562
|
+
return value.trim().toLowerCase();
|
|
7563
|
+
}
|
|
7564
|
+
return String(value).trim().toLowerCase();
|
|
7530
7565
|
}
|
|
7531
7566
|
validateForm() {
|
|
7532
|
-
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field,
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
}
|
|
7536
|
-
const parentValue = values[field.condition.field];
|
|
7537
|
-
return parentValue === field.condition.value;
|
|
7538
|
-
});
|
|
7567
|
+
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field, _values) =>
|
|
7568
|
+
// Use a temporary object with the condition to reuse isFieldVisible logic
|
|
7569
|
+
this.isFieldVisible(field));
|
|
7539
7570
|
this.errors = errors;
|
|
7540
7571
|
this.hasError = hasError;
|
|
7541
7572
|
}
|
|
@@ -7549,8 +7580,22 @@ class EdsForm {
|
|
|
7549
7580
|
if (!field.condition) {
|
|
7550
7581
|
return true;
|
|
7551
7582
|
}
|
|
7552
|
-
const
|
|
7553
|
-
|
|
7583
|
+
const actual = values[field.condition.field];
|
|
7584
|
+
const expected = field.condition.value;
|
|
7585
|
+
// Handle undefined/null/empty
|
|
7586
|
+
if (actual == null) {
|
|
7587
|
+
return expected == null || expected === '';
|
|
7588
|
+
}
|
|
7589
|
+
// Handle arrays
|
|
7590
|
+
if (Array.isArray(actual)) {
|
|
7591
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7592
|
+
}
|
|
7593
|
+
// Handle comma-separated strings
|
|
7594
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7595
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7596
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7597
|
+
}
|
|
7598
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7554
7599
|
}
|
|
7555
7600
|
});
|
|
7556
7601
|
this.values = updatedValues;
|
|
@@ -7617,8 +7662,9 @@ class EdsForm {
|
|
|
7617
7662
|
const hosts = Array.from(this.formEl.querySelectorAll('eds-input-field'));
|
|
7618
7663
|
hosts.forEach((host) => {
|
|
7619
7664
|
const root = host.shadowRoot;
|
|
7620
|
-
if (!root)
|
|
7665
|
+
if (!root) {
|
|
7621
7666
|
return;
|
|
7667
|
+
}
|
|
7622
7668
|
const fileInputs = Array.from(root.querySelectorAll('input[type="file"][name]'));
|
|
7623
7669
|
console.log(fileInputs);
|
|
7624
7670
|
fileInputs.forEach((fi) => {
|
|
@@ -7753,8 +7799,9 @@ class EdsForm {
|
|
|
7753
7799
|
handleSubmit(e) {
|
|
7754
7800
|
var _a, _b;
|
|
7755
7801
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
7756
|
-
if (this.isSubmitting)
|
|
7802
|
+
if (this.isSubmitting) {
|
|
7757
7803
|
return;
|
|
7804
|
+
}
|
|
7758
7805
|
this.isSubmitting = true;
|
|
7759
7806
|
this.validateForm();
|
|
7760
7807
|
if (this.hasError) {
|
|
@@ -7836,7 +7883,7 @@ class EdsForm {
|
|
|
7836
7883
|
else if (field.type === 'nps') {
|
|
7837
7884
|
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] }))));
|
|
7838
7885
|
}
|
|
7839
|
-
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) }));
|
|
7886
|
+
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) }));
|
|
7840
7887
|
}
|
|
7841
7888
|
async getData() {
|
|
7842
7889
|
return this.makeFormData();
|
|
@@ -7849,9 +7896,9 @@ class EdsForm {
|
|
|
7849
7896
|
const styleClasses = this.formStyle === 'shadow'
|
|
7850
7897
|
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
7851
7898
|
: '';
|
|
7852
|
-
return (hAsync("form", { key: '
|
|
7899
|
+
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
|
|
7853
7900
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7854
|
-
.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: '
|
|
7901
|
+
.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() })))));
|
|
7855
7902
|
}
|
|
7856
7903
|
get el() { return getElement(this); }
|
|
7857
7904
|
static get watchers() { return {
|
|
@@ -7979,7 +8026,7 @@ class EdsFrame {
|
|
|
7979
8026
|
}
|
|
7980
8027
|
}
|
|
7981
8028
|
render() {
|
|
7982
|
-
return (hAsync("div", { key: '
|
|
8029
|
+
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 })))));
|
|
7983
8030
|
}
|
|
7984
8031
|
get el() { return getElement(this); }
|
|
7985
8032
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -8040,8 +8087,9 @@ class EdsFullscreenMenu {
|
|
|
8040
8087
|
this.isMenuOpen = !!event.detail;
|
|
8041
8088
|
}
|
|
8042
8089
|
onKeydown(e) {
|
|
8043
|
-
if (e.key === 'Escape' && this.isMenuOpen)
|
|
8090
|
+
if (e.key === 'Escape' && this.isMenuOpen) {
|
|
8044
8091
|
this.closeMenu();
|
|
8092
|
+
}
|
|
8045
8093
|
}
|
|
8046
8094
|
/** Opens the menu */
|
|
8047
8095
|
openMenu() {
|
|
@@ -8052,8 +8100,12 @@ class EdsFullscreenMenu {
|
|
|
8052
8100
|
this.isMenuOpen = false;
|
|
8053
8101
|
this.menuClose.emit();
|
|
8054
8102
|
}
|
|
8055
|
-
async open() {
|
|
8056
|
-
|
|
8103
|
+
async open() {
|
|
8104
|
+
this.isMenuOpen = true;
|
|
8105
|
+
}
|
|
8106
|
+
async close() {
|
|
8107
|
+
this.closeMenu();
|
|
8108
|
+
}
|
|
8057
8109
|
// Lifecycle method to add the resize event listener when component loads
|
|
8058
8110
|
componentDidLoad() {
|
|
8059
8111
|
window.addEventListener('resize', this.handleResize.bind(this));
|
|
@@ -8156,7 +8208,7 @@ class EdsGauge {
|
|
|
8156
8208
|
const textStyle = {
|
|
8157
8209
|
fontSize: `${fontSize}px`
|
|
8158
8210
|
};
|
|
8159
|
-
return (hAsync("div", { key: '
|
|
8211
|
+
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))));
|
|
8160
8212
|
}
|
|
8161
8213
|
static get style() { return EdsGaugeStyle0; }
|
|
8162
8214
|
static get cmpMeta() { return {
|
|
@@ -8201,9 +8253,8 @@ class EdsGlobalSearch {
|
|
|
8201
8253
|
category: 'shared-ui',
|
|
8202
8254
|
parentContext: null,
|
|
8203
8255
|
tag: this.el.tagName.toLowerCase(),
|
|
8204
|
-
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` ||
|
|
8205
|
-
|
|
8206
|
-
action: 'click',
|
|
8256
|
+
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` || 'unknow seach input query',
|
|
8257
|
+
action: 'click'
|
|
8207
8258
|
});
|
|
8208
8259
|
this.debounceTimer = window.setTimeout(() => {
|
|
8209
8260
|
this.runSearch();
|
|
@@ -8259,8 +8310,7 @@ class EdsGlobalSearch {
|
|
|
8259
8310
|
break;
|
|
8260
8311
|
case 'Enter':
|
|
8261
8312
|
event.preventDefault();
|
|
8262
|
-
if (this.selectedIndex >= 0 &&
|
|
8263
|
-
this.selectedIndex < this.results.length) {
|
|
8313
|
+
if (this.selectedIndex >= 0 && this.selectedIndex < this.results.length) {
|
|
8264
8314
|
this.selectResult(this.results[this.selectedIndex]);
|
|
8265
8315
|
}
|
|
8266
8316
|
break;
|
|
@@ -8294,7 +8344,7 @@ class EdsGlobalSearch {
|
|
|
8294
8344
|
this.selectedIndex = -1;
|
|
8295
8345
|
}
|
|
8296
8346
|
catch (err) {
|
|
8297
|
-
console.error('Search error:', err);
|
|
8347
|
+
//console.error('Search error:', err);
|
|
8298
8348
|
this.error = 'Search failed. Please try again.';
|
|
8299
8349
|
this.results = [];
|
|
8300
8350
|
this.showDropdown = true;
|
|
@@ -8311,7 +8361,7 @@ class EdsGlobalSearch {
|
|
|
8311
8361
|
parentContext: null,
|
|
8312
8362
|
tag: this.el.tagName.toLowerCase(),
|
|
8313
8363
|
name: `search-select: ${result.url}` || 'unknow search result selection',
|
|
8314
|
-
action: 'click'
|
|
8364
|
+
action: 'click'
|
|
8315
8365
|
});
|
|
8316
8366
|
window.open(result.url, '_blank', 'noopener,noreferrer');
|
|
8317
8367
|
}
|
|
@@ -8332,13 +8382,13 @@ class EdsGlobalSearch {
|
|
|
8332
8382
|
return this.results.length > 0;
|
|
8333
8383
|
}
|
|
8334
8384
|
get showEmpty() {
|
|
8335
|
-
return
|
|
8385
|
+
return this.hasSearched && !this.loading && !this.hasResults && this.query.trim();
|
|
8336
8386
|
}
|
|
8337
8387
|
render() {
|
|
8338
|
-
return (hAsync("div", { key: '
|
|
8388
|
+
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: {
|
|
8339
8389
|
'result-item': true,
|
|
8340
|
-
'result-item--selected': index === this.selectedIndex
|
|
8341
|
-
}, 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 &&
|
|
8390
|
+
'result-item--selected': index === this.selectedIndex
|
|
8391
|
+
}, 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")))))));
|
|
8342
8392
|
}
|
|
8343
8393
|
get el() { return getElement(this); }
|
|
8344
8394
|
static get style() { return EdsGlobalSearchStyle0; }
|
|
@@ -8364,7 +8414,7 @@ class EdsGlobalSearch {
|
|
|
8364
8414
|
}; }
|
|
8365
8415
|
}
|
|
8366
8416
|
|
|
8367
|
-
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}}";
|
|
8417
|
+
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}}";
|
|
8368
8418
|
var EdsHeaderStyle0 = edsHeaderCss;
|
|
8369
8419
|
|
|
8370
8420
|
/**
|
|
@@ -8421,7 +8471,7 @@ class EdsHeader {
|
|
|
8421
8471
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8422
8472
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8423
8473
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8424
|
-
return (hAsync("header", { key: '
|
|
8474
|
+
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() })))));
|
|
8425
8475
|
}
|
|
8426
8476
|
get hostEl() { return getElement(this); }
|
|
8427
8477
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -10338,7 +10388,7 @@ var tutorial = ` <svg
|
|
|
10338
10388
|
/>
|
|
10339
10389
|
</svg>`;
|
|
10340
10390
|
|
|
10341
|
-
var
|
|
10391
|
+
var upDown = ` <svg
|
|
10342
10392
|
width="20"
|
|
10343
10393
|
height="20"
|
|
10344
10394
|
viewBox="0 0 20 20"
|
|
@@ -10411,7 +10461,7 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10411
10461
|
pub: pub,
|
|
10412
10462
|
portal: portal,
|
|
10413
10463
|
user: user,
|
|
10414
|
-
|
|
10464
|
+
upDown: upDown,
|
|
10415
10465
|
search: search,
|
|
10416
10466
|
success: success,
|
|
10417
10467
|
tutorial: tutorial,
|
|
@@ -10438,7 +10488,7 @@ class EdsIconArrowDiagonal {
|
|
|
10438
10488
|
this.class = '';
|
|
10439
10489
|
}
|
|
10440
10490
|
render() {
|
|
10441
|
-
return hAsync("span", { key: '
|
|
10491
|
+
return hAsync("span", { key: '6acdb63c6b56cebeba425280366ab945cb425490', class: this.class, innerHTML: arrowDiagonal });
|
|
10442
10492
|
}
|
|
10443
10493
|
static get cmpMeta() { return {
|
|
10444
10494
|
"$flags$": 0,
|
|
@@ -10461,7 +10511,7 @@ class EdsIconArrowRight {
|
|
|
10461
10511
|
this.class = '';
|
|
10462
10512
|
}
|
|
10463
10513
|
render() {
|
|
10464
|
-
return hAsync("span", { key: '
|
|
10514
|
+
return hAsync("span", { key: 'a276fcdfda8a935cdd871d0a16a078b1948621c6', class: this.class, innerHTML: arrowRight });
|
|
10465
10515
|
}
|
|
10466
10516
|
static get cmpMeta() { return {
|
|
10467
10517
|
"$flags$": 0,
|
|
@@ -10484,7 +10534,7 @@ class EdsIconBin {
|
|
|
10484
10534
|
this.class = '';
|
|
10485
10535
|
}
|
|
10486
10536
|
render() {
|
|
10487
|
-
return hAsync("span", { key: '
|
|
10537
|
+
return hAsync("span", { key: '9aa3fb586bd4cd702b237a7104ed4c8232097999', class: this.class, innerHTML: bin });
|
|
10488
10538
|
}
|
|
10489
10539
|
static get cmpMeta() { return {
|
|
10490
10540
|
"$flags$": 0,
|
|
@@ -10507,7 +10557,7 @@ class EdsIconBluesky {
|
|
|
10507
10557
|
this.class = '';
|
|
10508
10558
|
}
|
|
10509
10559
|
render() {
|
|
10510
|
-
return hAsync("span", { key: '
|
|
10560
|
+
return hAsync("span", { key: '9adf87027690ce28aed73d736ce2d3be6a5245b5', class: this.class, innerHTML: bluesky });
|
|
10511
10561
|
}
|
|
10512
10562
|
static get cmpMeta() { return {
|
|
10513
10563
|
"$flags$": 0,
|
|
@@ -10530,7 +10580,7 @@ class EdsIconBookmark {
|
|
|
10530
10580
|
this.class = '';
|
|
10531
10581
|
}
|
|
10532
10582
|
render() {
|
|
10533
|
-
return hAsync("span", { key: '
|
|
10583
|
+
return hAsync("span", { key: '7ff03ad0ebef09a7e5beb63da0a75b6a8776ca8a', class: this.class, innerHTML: bookmark });
|
|
10534
10584
|
}
|
|
10535
10585
|
static get cmpMeta() { return {
|
|
10536
10586
|
"$flags$": 0,
|
|
@@ -10553,7 +10603,7 @@ class EdsIconChevronDown {
|
|
|
10553
10603
|
this.class = '';
|
|
10554
10604
|
}
|
|
10555
10605
|
render() {
|
|
10556
|
-
return hAsync("span", { key: '
|
|
10606
|
+
return hAsync("span", { key: 'ae0a935c50ae34d6fd9a2f65eff2625617d0fe78', class: this.class, innerHTML: chevronDown });
|
|
10557
10607
|
}
|
|
10558
10608
|
static get cmpMeta() { return {
|
|
10559
10609
|
"$flags$": 0,
|
|
@@ -10576,7 +10626,7 @@ class EdsIconChevronLeft {
|
|
|
10576
10626
|
this.class = '';
|
|
10577
10627
|
}
|
|
10578
10628
|
render() {
|
|
10579
|
-
return hAsync("span", { key: '
|
|
10629
|
+
return hAsync("span", { key: '4fc3150f6c0e74f03ad2bd45b239b3fe20b799d7', class: this.class, innerHTML: chevronLeft });
|
|
10580
10630
|
}
|
|
10581
10631
|
static get cmpMeta() { return {
|
|
10582
10632
|
"$flags$": 0,
|
|
@@ -10599,7 +10649,7 @@ class EdsIconChevronRight {
|
|
|
10599
10649
|
this.class = '';
|
|
10600
10650
|
}
|
|
10601
10651
|
render() {
|
|
10602
|
-
return hAsync("span", { key: '
|
|
10652
|
+
return hAsync("span", { key: '04ffe47e146e18b9c4cabe8694e0f99e789b4e51', class: this.class, innerHTML: chevronRight });
|
|
10603
10653
|
}
|
|
10604
10654
|
static get cmpMeta() { return {
|
|
10605
10655
|
"$flags$": 0,
|
|
@@ -10622,7 +10672,7 @@ class EdsIconChevronUp {
|
|
|
10622
10672
|
this.class = '';
|
|
10623
10673
|
}
|
|
10624
10674
|
render() {
|
|
10625
|
-
return hAsync("span", { key: '
|
|
10675
|
+
return hAsync("span", { key: 'f226a311428de578497d0bfb67d371a6974c220e', class: this.class, innerHTML: chevronUp });
|
|
10626
10676
|
}
|
|
10627
10677
|
static get cmpMeta() { return {
|
|
10628
10678
|
"$flags$": 0,
|
|
@@ -10645,7 +10695,7 @@ class EdsIconClone {
|
|
|
10645
10695
|
this.class = '';
|
|
10646
10696
|
}
|
|
10647
10697
|
render() {
|
|
10648
|
-
return hAsync("span", { key: '
|
|
10698
|
+
return hAsync("span", { key: 'ab89369ec66f8bde06e65217ef324200dd0a7579', class: this.class, innerHTML: clone });
|
|
10649
10699
|
}
|
|
10650
10700
|
static get cmpMeta() { return {
|
|
10651
10701
|
"$flags$": 0,
|
|
@@ -10668,7 +10718,7 @@ class EdsIconClose {
|
|
|
10668
10718
|
this.class = '';
|
|
10669
10719
|
}
|
|
10670
10720
|
render() {
|
|
10671
|
-
return hAsync("span", { key: '
|
|
10721
|
+
return hAsync("span", { key: '046e7605384d1c2cb30132abdde5932024e85960', class: this.class, innerHTML: close });
|
|
10672
10722
|
}
|
|
10673
10723
|
static get cmpMeta() { return {
|
|
10674
10724
|
"$flags$": 0,
|
|
@@ -10691,7 +10741,7 @@ class EdsIconCopy {
|
|
|
10691
10741
|
this.class = '';
|
|
10692
10742
|
}
|
|
10693
10743
|
render() {
|
|
10694
|
-
return hAsync("span", { key: '
|
|
10744
|
+
return hAsync("span", { key: '932738088482900ec6d4b9187ace4fb428e2c0a4', class: this.class, innerHTML: copy });
|
|
10695
10745
|
}
|
|
10696
10746
|
static get cmpMeta() { return {
|
|
10697
10747
|
"$flags$": 0,
|
|
@@ -10714,7 +10764,7 @@ class EdsIconDownload {
|
|
|
10714
10764
|
this.class = '';
|
|
10715
10765
|
}
|
|
10716
10766
|
render() {
|
|
10717
|
-
return hAsync("span", { key: '
|
|
10767
|
+
return hAsync("span", { key: 'dd478172d512fa80b8cab24e0c487c4c4710af50', class: this.class, innerHTML: download });
|
|
10718
10768
|
}
|
|
10719
10769
|
static get cmpMeta() { return {
|
|
10720
10770
|
"$flags$": 0,
|
|
@@ -10737,7 +10787,7 @@ class EdsIconDraft {
|
|
|
10737
10787
|
this.class = '';
|
|
10738
10788
|
}
|
|
10739
10789
|
render() {
|
|
10740
|
-
return hAsync("span", { key: '
|
|
10790
|
+
return hAsync("span", { key: 'f0331f4e0d7f4f5871d33dd355c8a88c286821d5', class: this.class, innerHTML: draft });
|
|
10741
10791
|
}
|
|
10742
10792
|
static get cmpMeta() { return {
|
|
10743
10793
|
"$flags$": 0,
|
|
@@ -10760,7 +10810,7 @@ class EdsIconEdit {
|
|
|
10760
10810
|
this.class = '';
|
|
10761
10811
|
}
|
|
10762
10812
|
render() {
|
|
10763
|
-
return hAsync("span", { key: '
|
|
10813
|
+
return hAsync("span", { key: 'cb85e8d511a4dc5b8628df7663bc2b4854e8ee37', class: this.class, innerHTML: edit });
|
|
10764
10814
|
}
|
|
10765
10815
|
static get cmpMeta() { return {
|
|
10766
10816
|
"$flags$": 0,
|
|
@@ -10783,7 +10833,7 @@ class EdsIconEu {
|
|
|
10783
10833
|
this.class = '';
|
|
10784
10834
|
}
|
|
10785
10835
|
render() {
|
|
10786
|
-
return hAsync("span", { key: '
|
|
10836
|
+
return hAsync("span", { key: '18981f68145f644aed9c96c62c19e0357ebbb1ad', class: this.class, innerHTML: euSvg });
|
|
10787
10837
|
}
|
|
10788
10838
|
static get cmpMeta() { return {
|
|
10789
10839
|
"$flags$": 0,
|
|
@@ -10806,7 +10856,7 @@ class EdsIconExternal {
|
|
|
10806
10856
|
this.class = '';
|
|
10807
10857
|
}
|
|
10808
10858
|
render() {
|
|
10809
|
-
return hAsync("span", { key: '
|
|
10859
|
+
return hAsync("span", { key: 'ccffc1fc9a447e4309eb67782e36bfca5d4bdb4f', class: this.class, innerHTML: arrowDiagonal });
|
|
10810
10860
|
}
|
|
10811
10861
|
static get cmpMeta() { return {
|
|
10812
10862
|
"$flags$": 0,
|
|
@@ -10829,7 +10879,7 @@ class EdsIconFacebook {
|
|
|
10829
10879
|
this.class = '';
|
|
10830
10880
|
}
|
|
10831
10881
|
render() {
|
|
10832
|
-
return hAsync("span", { key: '
|
|
10882
|
+
return hAsync("span", { key: '5be4622aebcbe17b4b40c31fd4b9dc92a102b85e', class: this.class, innerHTML: facebook });
|
|
10833
10883
|
}
|
|
10834
10884
|
static get cmpMeta() { return {
|
|
10835
10885
|
"$flags$": 0,
|
|
@@ -10852,7 +10902,7 @@ class EdsIconGitlab {
|
|
|
10852
10902
|
this.class = '';
|
|
10853
10903
|
}
|
|
10854
10904
|
render() {
|
|
10855
|
-
return hAsync("span", { key: '
|
|
10905
|
+
return hAsync("span", { key: 'e3c7d4a509e36afd5e18e5aea94d07347304702e', class: this.class, innerHTML: gitlabBlack });
|
|
10856
10906
|
}
|
|
10857
10907
|
static get cmpMeta() { return {
|
|
10858
10908
|
"$flags$": 0,
|
|
@@ -10875,7 +10925,7 @@ class EdsIconLinkedin {
|
|
|
10875
10925
|
this.class = '';
|
|
10876
10926
|
}
|
|
10877
10927
|
render() {
|
|
10878
|
-
return hAsync("span", { key: '
|
|
10928
|
+
return hAsync("span", { key: 'bb6879dfc98416128ada13c11e4e480f8774945e', class: this.class, innerHTML: linkedin });
|
|
10879
10929
|
}
|
|
10880
10930
|
static get cmpMeta() { return {
|
|
10881
10931
|
"$flags$": 0,
|
|
@@ -10898,7 +10948,7 @@ class EdsIconLoader {
|
|
|
10898
10948
|
this.class = '';
|
|
10899
10949
|
}
|
|
10900
10950
|
render() {
|
|
10901
|
-
return hAsync("span", { key: '
|
|
10951
|
+
return hAsync("span", { key: '3fcc15aef9c204836bbf4dbbfa52215913549b20', class: this.class, innerHTML: loader });
|
|
10902
10952
|
}
|
|
10903
10953
|
static get cmpMeta() { return {
|
|
10904
10954
|
"$flags$": 0,
|
|
@@ -10921,7 +10971,7 @@ class EdsIconMastodon {
|
|
|
10921
10971
|
this.class = '';
|
|
10922
10972
|
}
|
|
10923
10973
|
render() {
|
|
10924
|
-
return hAsync("span", { key: '
|
|
10974
|
+
return hAsync("span", { key: 'f02291022132866eced365b0f8d190fbb71542e3', class: this.class, innerHTML: mastodon });
|
|
10925
10975
|
}
|
|
10926
10976
|
static get cmpMeta() { return {
|
|
10927
10977
|
"$flags$": 0,
|
|
@@ -10944,7 +10994,7 @@ class EdsIconMenu {
|
|
|
10944
10994
|
this.class = '';
|
|
10945
10995
|
}
|
|
10946
10996
|
render() {
|
|
10947
|
-
return hAsync("span", { key: '
|
|
10997
|
+
return hAsync("span", { key: 'd832774f24d7e335026e35b3b9198f000389a084', class: this.class, innerHTML: menu });
|
|
10948
10998
|
}
|
|
10949
10999
|
static get cmpMeta() { return {
|
|
10950
11000
|
"$flags$": 0,
|
|
@@ -10967,7 +11017,7 @@ class EdsIconMinus {
|
|
|
10967
11017
|
this.class = '';
|
|
10968
11018
|
}
|
|
10969
11019
|
render() {
|
|
10970
|
-
return hAsync("span", { key: '
|
|
11020
|
+
return hAsync("span", { key: '4e9525934775adfffff9c709ee69c0a5ebf03565', class: this.class, innerHTML: minus });
|
|
10971
11021
|
}
|
|
10972
11022
|
static get cmpMeta() { return {
|
|
10973
11023
|
"$flags$": 0,
|
|
@@ -10990,7 +11040,7 @@ class EdsIconMore {
|
|
|
10990
11040
|
this.class = '';
|
|
10991
11041
|
}
|
|
10992
11042
|
render() {
|
|
10993
|
-
return hAsync("span", { key: '
|
|
11043
|
+
return hAsync("span", { key: 'e42d76e608591ec3ea4d1696affdaa6b1a764c31', class: this.class, innerHTML: more });
|
|
10994
11044
|
}
|
|
10995
11045
|
static get cmpMeta() { return {
|
|
10996
11046
|
"$flags$": 0,
|
|
@@ -11013,7 +11063,7 @@ class EdsIconPaper {
|
|
|
11013
11063
|
this.class = '';
|
|
11014
11064
|
}
|
|
11015
11065
|
render() {
|
|
11016
|
-
return hAsync("span", { key: '
|
|
11066
|
+
return hAsync("span", { key: '3da4ed49bfac513943d7655f4c52f48084efcda7', class: this.class, innerHTML: paper });
|
|
11017
11067
|
}
|
|
11018
11068
|
static get cmpMeta() { return {
|
|
11019
11069
|
"$flags$": 0,
|
|
@@ -11036,7 +11086,7 @@ class EdsIconPlus {
|
|
|
11036
11086
|
this.class = '';
|
|
11037
11087
|
}
|
|
11038
11088
|
render() {
|
|
11039
|
-
return hAsync("span", { key: '
|
|
11089
|
+
return hAsync("span", { key: 'a0e18b454752151c3e2ca4e32814df065364bb34', class: this.class, innerHTML: plus });
|
|
11040
11090
|
}
|
|
11041
11091
|
static get cmpMeta() { return {
|
|
11042
11092
|
"$flags$": 0,
|
|
@@ -11059,7 +11109,7 @@ class EdsIconPortal {
|
|
|
11059
11109
|
this.class = '';
|
|
11060
11110
|
}
|
|
11061
11111
|
render() {
|
|
11062
|
-
return hAsync("span", { key: '
|
|
11112
|
+
return hAsync("span", { key: 'f9bc952f9bb354dab1f4883c1909be98116b2416', class: this.class, innerHTML: portal });
|
|
11063
11113
|
}
|
|
11064
11114
|
static get cmpMeta() { return {
|
|
11065
11115
|
"$flags$": 0,
|
|
@@ -11082,7 +11132,7 @@ class EdsIconPrivate {
|
|
|
11082
11132
|
this.class = '';
|
|
11083
11133
|
}
|
|
11084
11134
|
render() {
|
|
11085
|
-
return hAsync("span", { key: '
|
|
11135
|
+
return hAsync("span", { key: '6a7653b8ef8137f6257a2e0c546200bc5afb1d2f', class: this.class, innerHTML: privat });
|
|
11086
11136
|
}
|
|
11087
11137
|
static get cmpMeta() { return {
|
|
11088
11138
|
"$flags$": 0,
|
|
@@ -11105,7 +11155,7 @@ class EdsIconPublic {
|
|
|
11105
11155
|
this.class = '';
|
|
11106
11156
|
}
|
|
11107
11157
|
render() {
|
|
11108
|
-
return hAsync("span", { key: '
|
|
11158
|
+
return hAsync("span", { key: 'fc4ebd716a4e8e8f753c65febfa701e2dbb233a8', class: this.class, innerHTML: pub });
|
|
11109
11159
|
}
|
|
11110
11160
|
static get cmpMeta() { return {
|
|
11111
11161
|
"$flags$": 0,
|
|
@@ -11128,7 +11178,7 @@ class EdsIconSearch {
|
|
|
11128
11178
|
this.class = '';
|
|
11129
11179
|
}
|
|
11130
11180
|
render() {
|
|
11131
|
-
return hAsync("span", { key: '
|
|
11181
|
+
return hAsync("span", { key: '5be70ac50bac9b7b52a2d631dcb6b1449e7b3b0a', class: this.class, innerHTML: search });
|
|
11132
11182
|
}
|
|
11133
11183
|
static get cmpMeta() { return {
|
|
11134
11184
|
"$flags$": 0,
|
|
@@ -11151,7 +11201,7 @@ class EdsIconStar {
|
|
|
11151
11201
|
this.class = '';
|
|
11152
11202
|
}
|
|
11153
11203
|
render() {
|
|
11154
|
-
return hAsync("span", { key: '
|
|
11204
|
+
return hAsync("span", { key: 'fabdb04e16a6ba928a2cb2936f7433fa1aea18ce', class: this.class, innerHTML: star });
|
|
11155
11205
|
}
|
|
11156
11206
|
static get cmpMeta() { return {
|
|
11157
11207
|
"$flags$": 0,
|
|
@@ -11174,7 +11224,7 @@ class EdsIconStart {
|
|
|
11174
11224
|
this.class = '';
|
|
11175
11225
|
}
|
|
11176
11226
|
render() {
|
|
11177
|
-
return hAsync("span", { key: '
|
|
11227
|
+
return hAsync("span", { key: '32b34d3e55370226bca150790f0791067b63ff23', class: this.class, innerHTML: start });
|
|
11178
11228
|
}
|
|
11179
11229
|
static get cmpMeta() { return {
|
|
11180
11230
|
"$flags$": 0,
|
|
@@ -11197,7 +11247,7 @@ class EdsIconSuccess {
|
|
|
11197
11247
|
this.class = '';
|
|
11198
11248
|
}
|
|
11199
11249
|
render() {
|
|
11200
|
-
return hAsync("span", { key: '
|
|
11250
|
+
return hAsync("span", { key: '645920f5bbde45082ad1c093f3f6c546b73b707e', class: this.class, innerHTML: success });
|
|
11201
11251
|
}
|
|
11202
11252
|
static get cmpMeta() { return {
|
|
11203
11253
|
"$flags$": 0,
|
|
@@ -11220,7 +11270,7 @@ class EdsIconThumbsDown {
|
|
|
11220
11270
|
this.class = '';
|
|
11221
11271
|
}
|
|
11222
11272
|
render() {
|
|
11223
|
-
return hAsync("span", { key: '
|
|
11273
|
+
return hAsync("span", { key: '15822639188c8a54d48097e5efb4e6b885d439ef', class: this.class, innerHTML: thumbsDown });
|
|
11224
11274
|
}
|
|
11225
11275
|
static get cmpMeta() { return {
|
|
11226
11276
|
"$flags$": 0,
|
|
@@ -11243,7 +11293,7 @@ class EdsIconThumbsUp {
|
|
|
11243
11293
|
this.class = '';
|
|
11244
11294
|
}
|
|
11245
11295
|
render() {
|
|
11246
|
-
return hAsync("span", { key: '
|
|
11296
|
+
return hAsync("span", { key: 'a2fdeca95d1a8efb48324eb8c9c20d39e7ad31c5', class: this.class, innerHTML: thumbsUp });
|
|
11247
11297
|
}
|
|
11248
11298
|
static get cmpMeta() { return {
|
|
11249
11299
|
"$flags$": 0,
|
|
@@ -11266,7 +11316,7 @@ class EdsIconTutorial {
|
|
|
11266
11316
|
this.class = '';
|
|
11267
11317
|
}
|
|
11268
11318
|
render() {
|
|
11269
|
-
return hAsync("span", { key: '
|
|
11319
|
+
return hAsync("span", { key: 'e1a54a7d3014760ad65851b961041f75eba7b581', class: this.class, innerHTML: tutorial });
|
|
11270
11320
|
}
|
|
11271
11321
|
static get cmpMeta() { return {
|
|
11272
11322
|
"$flags$": 0,
|
|
@@ -11289,7 +11339,7 @@ class EdsIconTwitter {
|
|
|
11289
11339
|
this.class = '';
|
|
11290
11340
|
}
|
|
11291
11341
|
render() {
|
|
11292
|
-
return hAsync("span", { key: '
|
|
11342
|
+
return hAsync("span", { key: 'ec7f7b6453668094c684e4f0a289c6f815d6ec06', class: this.class, innerHTML: twitter });
|
|
11293
11343
|
}
|
|
11294
11344
|
static get cmpMeta() { return {
|
|
11295
11345
|
"$flags$": 0,
|
|
@@ -11312,7 +11362,7 @@ class EdsIconUnknown {
|
|
|
11312
11362
|
this.class = '';
|
|
11313
11363
|
}
|
|
11314
11364
|
render() {
|
|
11315
|
-
return hAsync("span", { key: '
|
|
11365
|
+
return hAsync("span", { key: 'fa19613df173185cc312af7acef6bec4d187cab1', class: this.class, innerHTML: unknown });
|
|
11316
11366
|
}
|
|
11317
11367
|
static get cmpMeta() { return {
|
|
11318
11368
|
"$flags$": 0,
|
|
@@ -11335,7 +11385,7 @@ class EdsIconUpdown {
|
|
|
11335
11385
|
this.class = '';
|
|
11336
11386
|
}
|
|
11337
11387
|
render() {
|
|
11338
|
-
return hAsync("span", { key: '
|
|
11388
|
+
return hAsync("span", { key: '2339adac1ec08234dd1cf09e2bde6e4e55f35109', class: this.class, innerHTML: upDown });
|
|
11339
11389
|
}
|
|
11340
11390
|
static get cmpMeta() { return {
|
|
11341
11391
|
"$flags$": 0,
|
|
@@ -11358,7 +11408,7 @@ class EdsIconUser {
|
|
|
11358
11408
|
this.class = '';
|
|
11359
11409
|
}
|
|
11360
11410
|
render() {
|
|
11361
|
-
return hAsync("span", { key: '
|
|
11411
|
+
return hAsync("span", { key: '6e4ca330f0095f1d0b96919a5d35e5ee09f22bdf', class: this.class, innerHTML: user });
|
|
11362
11412
|
}
|
|
11363
11413
|
static get cmpMeta() { return {
|
|
11364
11414
|
"$flags$": 0,
|
|
@@ -11381,7 +11431,7 @@ class EdsIconView {
|
|
|
11381
11431
|
this.class = '';
|
|
11382
11432
|
}
|
|
11383
11433
|
render() {
|
|
11384
|
-
return hAsync("span", { key: '
|
|
11434
|
+
return hAsync("span", { key: '3414ec5143236a2c8821f460a50684b0a6b565a9', class: this.class, innerHTML: view });
|
|
11385
11435
|
}
|
|
11386
11436
|
static get cmpMeta() { return {
|
|
11387
11437
|
"$flags$": 0,
|
|
@@ -11460,7 +11510,7 @@ class EdsIconYoutube {
|
|
|
11460
11510
|
this.class = '';
|
|
11461
11511
|
}
|
|
11462
11512
|
render() {
|
|
11463
|
-
return hAsync("span", { key: '
|
|
11513
|
+
return hAsync("span", { key: '3a868a9858e68a534e7eab57a7887dfc636d8b95', class: this.class, innerHTML: youtube });
|
|
11464
11514
|
}
|
|
11465
11515
|
static get cmpMeta() { return {
|
|
11466
11516
|
"$flags$": 0,
|
|
@@ -11536,10 +11586,10 @@ class EdsImg {
|
|
|
11536
11586
|
imgOpts['loading'] = 'lazy';
|
|
11537
11587
|
imgOpts['decoding'] = 'async';
|
|
11538
11588
|
}
|
|
11539
|
-
return (hAsync("div", { key: '
|
|
11589
|
+
return (hAsync("div", { key: '20e754d7535484aedde364592c7a08a68e760b7d', class: {
|
|
11540
11590
|
'items-center justify-center': true,
|
|
11541
11591
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11542
|
-
} }, hAsync("picture", { key: '
|
|
11592
|
+
} }, 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: {
|
|
11543
11593
|
'effect-opacity object-cover object-center': true,
|
|
11544
11594
|
'opacity-100': this.loaded,
|
|
11545
11595
|
'opacity-0': !this.loaded
|
|
@@ -11621,7 +11671,7 @@ class EdsInput {
|
|
|
11621
11671
|
render() {
|
|
11622
11672
|
const withIcon = !!this.icon;
|
|
11623
11673
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11624
|
-
return (hAsync("div", { key: '
|
|
11674
|
+
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'
|
|
11625
11675
|
? {
|
|
11626
11676
|
min: this.min,
|
|
11627
11677
|
max: this.max,
|
|
@@ -11632,7 +11682,7 @@ class EdsInput {
|
|
|
11632
11682
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11633
11683
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11634
11684
|
${this.error ? 'input-error' : ''}
|
|
11635
|
-
`, "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: '
|
|
11685
|
+
`, "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 }))));
|
|
11636
11686
|
}
|
|
11637
11687
|
get el() { return getElement(this); }
|
|
11638
11688
|
static get watchers() { return {
|
|
@@ -11771,7 +11821,7 @@ class EdsInputField {
|
|
|
11771
11821
|
}
|
|
11772
11822
|
render() {
|
|
11773
11823
|
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 } : {}));
|
|
11774
|
-
return (hAsync("div", { key: '
|
|
11824
|
+
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' ? ((() => {
|
|
11775
11825
|
var _a, _b, _c;
|
|
11776
11826
|
const rangeProps = {
|
|
11777
11827
|
name: inputOpts.name,
|
|
@@ -11784,7 +11834,7 @@ class EdsInputField {
|
|
|
11784
11834
|
const opt = this.parsedOptions;
|
|
11785
11835
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11786
11836
|
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 })));
|
|
11787
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11837
|
+
})()) : (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 }))));
|
|
11788
11838
|
}
|
|
11789
11839
|
static get delegatesFocus() { return true; }
|
|
11790
11840
|
get hostEl() { return getElement(this); }
|
|
@@ -11836,7 +11886,7 @@ class EdsInputFooter {
|
|
|
11836
11886
|
this.link = undefined;
|
|
11837
11887
|
}
|
|
11838
11888
|
render() {
|
|
11839
|
-
return (hAsync("div", { key: '
|
|
11889
|
+
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 }))));
|
|
11840
11890
|
}
|
|
11841
11891
|
static get style() { return EdsInputFooterStyle0; }
|
|
11842
11892
|
static get cmpMeta() { return {
|
|
@@ -11867,7 +11917,7 @@ class EdsInputLabel {
|
|
|
11867
11917
|
this.disabled = false;
|
|
11868
11918
|
}
|
|
11869
11919
|
render() {
|
|
11870
|
-
return (hAsync("label", { key: '
|
|
11920
|
+
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")))));
|
|
11871
11921
|
}
|
|
11872
11922
|
static get style() { return EdsInputLabelStyle0; }
|
|
11873
11923
|
static get cmpMeta() { return {
|
|
@@ -11933,7 +11983,7 @@ class EdsInputRange {
|
|
|
11933
11983
|
return this.inputElement;
|
|
11934
11984
|
}
|
|
11935
11985
|
render() {
|
|
11936
|
-
return (hAsync("div", { key: '
|
|
11986
|
+
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)));
|
|
11937
11987
|
}
|
|
11938
11988
|
get el() { return getElement(this); }
|
|
11939
11989
|
static get watchers() { return {
|
|
@@ -12028,7 +12078,7 @@ class EdsInputSearch {
|
|
|
12028
12078
|
return this.inputElement;
|
|
12029
12079
|
}
|
|
12030
12080
|
render() {
|
|
12031
|
-
return (hAsync("div", { key: '
|
|
12081
|
+
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}`,
|
|
12032
12082
|
//onInput={this.onInput}
|
|
12033
12083
|
onChange: this.onChange })));
|
|
12034
12084
|
}
|
|
@@ -12082,12 +12132,12 @@ class EdsInputSelect {
|
|
|
12082
12132
|
const selectId = this.inputId || this.name;
|
|
12083
12133
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
12084
12134
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
12085
|
-
return (hAsync("div", { key: '
|
|
12135
|
+
return (hAsync("div", { key: '5f73cb76010cac41f433921395aaf779765e298a', class: "relative" }, hAsync("select", { key: '0705adad43076b6048900d5c62b8be2dff090270', id: selectId, name: this.name, class: {
|
|
12086
12136
|
input: true,
|
|
12087
12137
|
'input-error': this.error,
|
|
12088
12138
|
'px-4': true,
|
|
12089
12139
|
'py-2': true
|
|
12090
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
12140
|
+
}, "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" }))));
|
|
12091
12141
|
}
|
|
12092
12142
|
static get cmpMeta() { return {
|
|
12093
12143
|
"$flags$": 0,
|
|
@@ -12176,7 +12226,6 @@ const linkStyles = cva([
|
|
|
12176
12226
|
false: ''
|
|
12177
12227
|
},
|
|
12178
12228
|
size: {
|
|
12179
|
-
underline: 'f-body-02 ',
|
|
12180
12229
|
small: 'min-h-36 f-ui-02 px-12',
|
|
12181
12230
|
large: 'min-h-44 f-ui-01 px-16'
|
|
12182
12231
|
}
|
|
@@ -12229,6 +12278,16 @@ const linkStyles = cva([
|
|
|
12229
12278
|
intent: 'inverse',
|
|
12230
12279
|
isActive: true,
|
|
12231
12280
|
class: 'before:!opacity-100'
|
|
12281
|
+
},
|
|
12282
|
+
{
|
|
12283
|
+
intent: 'underline',
|
|
12284
|
+
size: 'small',
|
|
12285
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-02'
|
|
12286
|
+
},
|
|
12287
|
+
{
|
|
12288
|
+
intent: 'underline',
|
|
12289
|
+
size: 'large',
|
|
12290
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-01'
|
|
12232
12291
|
}
|
|
12233
12292
|
],
|
|
12234
12293
|
defaultVariants: {
|
|
@@ -12255,7 +12314,7 @@ class EdsLink {
|
|
|
12255
12314
|
registerInstance(this, hostRef);
|
|
12256
12315
|
this.parentContext = null; // Accepts the entire event detail or null
|
|
12257
12316
|
this.label = undefined;
|
|
12258
|
-
this.intent =
|
|
12317
|
+
this.intent = 'primary';
|
|
12259
12318
|
this.icon = undefined;
|
|
12260
12319
|
this.iconPos = 'right';
|
|
12261
12320
|
this.iconSmall = false;
|
|
@@ -12267,7 +12326,6 @@ class EdsLink {
|
|
|
12267
12326
|
this.ariaLabel = undefined;
|
|
12268
12327
|
this.disabled = false;
|
|
12269
12328
|
this.hideLabelOnSmallScreen = false;
|
|
12270
|
-
this.extraClass = undefined;
|
|
12271
12329
|
}
|
|
12272
12330
|
handleParentContext(event) {
|
|
12273
12331
|
if (event.target !== this.el) {
|
|
@@ -12312,9 +12370,6 @@ class EdsLink {
|
|
|
12312
12370
|
}
|
|
12313
12371
|
}
|
|
12314
12372
|
getLinkSize() {
|
|
12315
|
-
if (this.intent === 'underline') {
|
|
12316
|
-
return 'underline';
|
|
12317
|
-
}
|
|
12318
12373
|
return this.size;
|
|
12319
12374
|
}
|
|
12320
12375
|
renderLeftIcon() {
|
|
@@ -12343,12 +12398,13 @@ class EdsLink {
|
|
|
12343
12398
|
isActive: this.current,
|
|
12344
12399
|
hasIcon: !!this.icon
|
|
12345
12400
|
});
|
|
12401
|
+
const safeUrl = typeof this.url === 'string' && this.url.length ? this.url : undefined;
|
|
12346
12402
|
const isInteractive = !this.disabled;
|
|
12347
12403
|
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
12348
12404
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
12349
12405
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
12350
12406
|
: '';
|
|
12351
|
-
return (hAsync("a", { key: '
|
|
12407
|
+
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())));
|
|
12352
12408
|
}
|
|
12353
12409
|
get el() { return getElement(this); }
|
|
12354
12410
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -12368,8 +12424,7 @@ class EdsLink {
|
|
|
12368
12424
|
"url": [1],
|
|
12369
12425
|
"ariaLabel": [1, "aria-label"],
|
|
12370
12426
|
"disabled": [4],
|
|
12371
|
-
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12372
|
-
"extraClass": [1, "extra-class"]
|
|
12427
|
+
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12373
12428
|
},
|
|
12374
12429
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
12375
12430
|
"$lazyBundleId$": "-",
|
|
@@ -12456,7 +12511,7 @@ class EdsLogo {
|
|
|
12456
12511
|
}
|
|
12457
12512
|
render() {
|
|
12458
12513
|
const logoContent = this.getLogo();
|
|
12459
|
-
return (hAsync("a", { key: '
|
|
12514
|
+
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 })));
|
|
12460
12515
|
}
|
|
12461
12516
|
get el() { return getElement(this); }
|
|
12462
12517
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12731,9 +12786,9 @@ class EdsModal {
|
|
|
12731
12786
|
render() {
|
|
12732
12787
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12733
12788
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12734
|
-
return (hAsync("div", { key: '
|
|
12789
|
+
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
|
|
12735
12790
|
,
|
|
12736
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12791
|
+
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' })))));
|
|
12737
12792
|
}
|
|
12738
12793
|
get el() { return getElement(this); }
|
|
12739
12794
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12765,71 +12820,84 @@ class EdsNps {
|
|
|
12765
12820
|
this.nps = createEvent(this, "nps", 7);
|
|
12766
12821
|
this.min = 0;
|
|
12767
12822
|
this.max = 10;
|
|
12823
|
+
this.btnRefs = [];
|
|
12824
|
+
this.onSelect = (value) => {
|
|
12825
|
+
this.selectedValue = value;
|
|
12826
|
+
this.nps.emit(value);
|
|
12827
|
+
// Move focus to the selected button (like your rating component)
|
|
12828
|
+
requestAnimationFrame(() => {
|
|
12829
|
+
var _a, _b;
|
|
12830
|
+
const idx = value - this.min;
|
|
12831
|
+
(_b = (_a = this.btnRefs[idx]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12832
|
+
});
|
|
12833
|
+
};
|
|
12834
|
+
this.handleKeyNav = (e) => {
|
|
12835
|
+
const { key } = e;
|
|
12836
|
+
const navigational = ['ArrowRight', 'ArrowLeft', 'Home', 'End', ' ', 'Enter'];
|
|
12837
|
+
if (!navigational.includes(key)) {
|
|
12838
|
+
return;
|
|
12839
|
+
}
|
|
12840
|
+
e.preventDefault();
|
|
12841
|
+
const count = this.max - this.min + 1;
|
|
12842
|
+
// Derive current index from selectedValue; if none, use 0 (first)
|
|
12843
|
+
let currentIdx = this.selectedValue == null ? 0 : this.selectedValue - this.min;
|
|
12844
|
+
switch (key) {
|
|
12845
|
+
case 'ArrowRight':
|
|
12846
|
+
currentIdx = Math.min(count - 1, currentIdx + 1);
|
|
12847
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12848
|
+
break;
|
|
12849
|
+
case 'ArrowLeft':
|
|
12850
|
+
currentIdx = Math.max(0, currentIdx - 1);
|
|
12851
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12852
|
+
break;
|
|
12853
|
+
case 'Home':
|
|
12854
|
+
this.setActiveByIndex(0, /*commit*/ false);
|
|
12855
|
+
break;
|
|
12856
|
+
case 'End':
|
|
12857
|
+
this.setActiveByIndex(count - 1, /*commit*/ false);
|
|
12858
|
+
break;
|
|
12859
|
+
case ' ':
|
|
12860
|
+
case 'Enter':
|
|
12861
|
+
// Commit current focused item
|
|
12862
|
+
this.onSelect(this.min + currentIdx);
|
|
12863
|
+
break;
|
|
12864
|
+
}
|
|
12865
|
+
};
|
|
12768
12866
|
this.question = undefined;
|
|
12769
12867
|
this.leftLabel = undefined;
|
|
12770
12868
|
this.rightLabel = undefined;
|
|
12771
12869
|
this.selectedValue = null;
|
|
12772
12870
|
}
|
|
12773
|
-
|
|
12871
|
+
/** Move visual highlight & roving tabindex; optionally commit selection */
|
|
12872
|
+
setActiveByIndex(index, commit = false) {
|
|
12873
|
+
var _a;
|
|
12874
|
+
const value = this.min + index;
|
|
12875
|
+
// Update highlight so focus movement is visible (like your rating)
|
|
12774
12876
|
this.selectedValue = value;
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
switch (e.key) {
|
|
12781
|
-
case 'ArrowRight':
|
|
12782
|
-
case 'ArrowLeft': {
|
|
12783
|
-
e.preventDefault();
|
|
12784
|
-
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12785
|
-
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12786
|
-
this.activateRadio(radios, nextIndex);
|
|
12787
|
-
break;
|
|
12788
|
-
}
|
|
12789
|
-
case 'Home': {
|
|
12790
|
-
e.preventDefault();
|
|
12791
|
-
this.activateRadio(radios, 0);
|
|
12792
|
-
break;
|
|
12793
|
-
}
|
|
12794
|
-
case 'End': {
|
|
12795
|
-
e.preventDefault();
|
|
12796
|
-
this.activateRadio(radios, this.max);
|
|
12797
|
-
break;
|
|
12798
|
-
}
|
|
12799
|
-
case 'Enter':
|
|
12800
|
-
case ' ': {
|
|
12801
|
-
e.preventDefault();
|
|
12802
|
-
if (currentIndex >= 0) {
|
|
12803
|
-
this.handleClick(this.min + currentIndex);
|
|
12804
|
-
}
|
|
12805
|
-
break;
|
|
12806
|
-
}
|
|
12807
|
-
case 'Escape': {
|
|
12808
|
-
e.preventDefault();
|
|
12809
|
-
if (currentIndex >= 0) {
|
|
12810
|
-
radios[currentIndex].blur();
|
|
12811
|
-
}
|
|
12812
|
-
break;
|
|
12813
|
-
}
|
|
12814
|
-
default:
|
|
12815
|
-
return;
|
|
12877
|
+
// Focus the button host (ensure eds-button forwards focus to its inner <button>)
|
|
12878
|
+
const target = this.btnRefs[index];
|
|
12879
|
+
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);
|
|
12880
|
+
if (commit) {
|
|
12881
|
+
this.onSelect(value);
|
|
12816
12882
|
}
|
|
12817
12883
|
}
|
|
12818
|
-
activateRadio(radios, index) {
|
|
12819
|
-
const target = radios[index];
|
|
12820
|
-
const value = this.min + index;
|
|
12821
|
-
this.handleClick(value);
|
|
12822
|
-
target.focus();
|
|
12823
|
-
}
|
|
12824
12884
|
render() {
|
|
12825
12885
|
const count = this.max - this.min + 1;
|
|
12826
|
-
|
|
12827
|
-
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) => {
|
|
12886
|
+
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) => {
|
|
12828
12887
|
const val = this.min + i;
|
|
12829
12888
|
const isSelected = val === this.selectedValue;
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12889
|
+
// Roving tabindex: focusable is the selected; if none selected yet, first is focusable
|
|
12890
|
+
const tabIndex = isSelected || (this.selectedValue == null && i === 0) ? 0 : -1;
|
|
12891
|
+
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}`,
|
|
12892
|
+
// Use onClick so keyboard activation on inner <button> works natively
|
|
12893
|
+
onClick: () => this.onSelect(val), tabIndex: tabIndex, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", label: `${val}`,
|
|
12894
|
+
// Optional: keep highlight in sync when tabbing into the group
|
|
12895
|
+
onFocus: () => {
|
|
12896
|
+
// Only move highlight on initial focus or when roving; remove if you
|
|
12897
|
+
// want focus without highlight.
|
|
12898
|
+
this.selectedValue = val;
|
|
12899
|
+
} })));
|
|
12900
|
+
})), 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))));
|
|
12833
12901
|
}
|
|
12834
12902
|
get el() { return getElement(this); }
|
|
12835
12903
|
static get style() { return EdsNpsStyle0; }
|
|
@@ -13101,7 +13169,7 @@ class EdsPagination {
|
|
|
13101
13169
|
}
|
|
13102
13170
|
render() {
|
|
13103
13171
|
const navigableIndex = -1; // Track index for keyboard navigation
|
|
13104
|
-
return (hAsync("div", { key: '
|
|
13172
|
+
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) => {
|
|
13105
13173
|
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
13106
13174
|
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
13107
13175
|
}
|
|
@@ -13308,7 +13376,7 @@ class EdsProgressBar {
|
|
|
13308
13376
|
]
|
|
13309
13377
|
.filter(Boolean)
|
|
13310
13378
|
.join(' ');
|
|
13311
|
-
return (hAsync("div", { key: '
|
|
13379
|
+
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, "%"))));
|
|
13312
13380
|
}
|
|
13313
13381
|
static get style() { return EdsProgressBarStyle0; }
|
|
13314
13382
|
static get cmpMeta() { return {
|
|
@@ -13391,7 +13459,7 @@ class EdsRating {
|
|
|
13391
13459
|
this.onSelect(next);
|
|
13392
13460
|
}
|
|
13393
13461
|
render() {
|
|
13394
|
-
return (hAsync("div", { key: '
|
|
13462
|
+
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) => {
|
|
13395
13463
|
const starRating = index + 1;
|
|
13396
13464
|
const isSelected = starRating <= this.selectedRating;
|
|
13397
13465
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -13441,7 +13509,7 @@ class EdsSectionCore {
|
|
|
13441
13509
|
}
|
|
13442
13510
|
render() {
|
|
13443
13511
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
13444
|
-
return (hAsync(TagType, { key: '
|
|
13512
|
+
return (hAsync(TagType, { key: '3c75c9cda6a41c0d4243c3c111d7cc95f3efb97b' }, hAsync("eds-section-heading", { key: '05b4d011aa1b8f489fe8aa0fd6d43b824da03370', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '1749580398e56d38d83d5f5fdd87f43867a554cb' })));
|
|
13445
13513
|
}
|
|
13446
13514
|
static get style() { return EdsSectionCoreStyle0; }
|
|
13447
13515
|
static get cmpMeta() { return {
|
|
@@ -13496,12 +13564,12 @@ class EdsSectionHeading {
|
|
|
13496
13564
|
render() {
|
|
13497
13565
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
13498
13566
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
13499
|
-
return (hAsync(TagType, { key: '
|
|
13567
|
+
return (hAsync(TagType, { key: '18614645f329d9ccfe6104b544ff306c6190173a', class: {
|
|
13500
13568
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
13501
13569
|
container: this.withContainer,
|
|
13502
13570
|
'pt-48': this.spacingLarge,
|
|
13503
13571
|
'pt-28': !this.spacingLarge
|
|
13504
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13572
|
+
} }, hAsync(HeadingTag, { key: 'ce699077313e9ee8d8a66e68af667451351a35a6', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
13505
13573
|
}
|
|
13506
13574
|
static get cmpMeta() { return {
|
|
13507
13575
|
"$flags$": 0,
|
|
@@ -13519,6 +13587,186 @@ class EdsSectionHeading {
|
|
|
13519
13587
|
}; }
|
|
13520
13588
|
}
|
|
13521
13589
|
|
|
13590
|
+
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}";
|
|
13591
|
+
var EdsSidebarStyle0 = edsSidebarCss;
|
|
13592
|
+
|
|
13593
|
+
class EdsSidebar {
|
|
13594
|
+
constructor(hostRef) {
|
|
13595
|
+
registerInstance(this, hostRef);
|
|
13596
|
+
this.sidebar = createEvent(this, "sidebar", 7);
|
|
13597
|
+
this.toggleItem = (itemId, ev) => {
|
|
13598
|
+
if (ev) {
|
|
13599
|
+
ev.stopPropagation();
|
|
13600
|
+
}
|
|
13601
|
+
const newOpen = new Set(this.openItems);
|
|
13602
|
+
if (newOpen.has(itemId)) {
|
|
13603
|
+
newOpen.delete(itemId);
|
|
13604
|
+
}
|
|
13605
|
+
else {
|
|
13606
|
+
newOpen.add(itemId);
|
|
13607
|
+
}
|
|
13608
|
+
this.openItems = newOpen;
|
|
13609
|
+
};
|
|
13610
|
+
this.navigate = (url, ev) => {
|
|
13611
|
+
if (!this.enableRouting || !url) {
|
|
13612
|
+
return;
|
|
13613
|
+
}
|
|
13614
|
+
if (ev) {
|
|
13615
|
+
ev.preventDefault();
|
|
13616
|
+
ev.stopPropagation();
|
|
13617
|
+
}
|
|
13618
|
+
// Emit custom event for routing
|
|
13619
|
+
this.sidebar.emit(url);
|
|
13620
|
+
// Update browser history if available
|
|
13621
|
+
if (typeof window !== 'undefined' && window.history) {
|
|
13622
|
+
window.history.pushState({}, '', url);
|
|
13623
|
+
}
|
|
13624
|
+
};
|
|
13625
|
+
this.handleItemClick = (item, ev) => {
|
|
13626
|
+
var _a;
|
|
13627
|
+
// If item has children, ONLY toggle (don't navigate)
|
|
13628
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13629
|
+
this.toggleItem(item.id, ev);
|
|
13630
|
+
return;
|
|
13631
|
+
}
|
|
13632
|
+
// Only navigate if no children and has URL
|
|
13633
|
+
if (item.url) {
|
|
13634
|
+
this.navigate(item.url, ev);
|
|
13635
|
+
}
|
|
13636
|
+
};
|
|
13637
|
+
this.items = '[]';
|
|
13638
|
+
this.theme = 'default';
|
|
13639
|
+
this.activeUrl = '';
|
|
13640
|
+
this.enableRouting = true;
|
|
13641
|
+
this.maxLevel = 4;
|
|
13642
|
+
this.openItems = new Set();
|
|
13643
|
+
this.parsedItems = [];
|
|
13644
|
+
}
|
|
13645
|
+
// ---------------------------------------------------------------------------
|
|
13646
|
+
// Lifecycle
|
|
13647
|
+
// ---------------------------------------------------------------------------
|
|
13648
|
+
componentWillLoad() {
|
|
13649
|
+
this.parsedItems = this.parseItems(this.items);
|
|
13650
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13651
|
+
}
|
|
13652
|
+
// ---------------------------------------------------------------------------
|
|
13653
|
+
// Watchers
|
|
13654
|
+
// ---------------------------------------------------------------------------
|
|
13655
|
+
handleItemsChange(newItems) {
|
|
13656
|
+
this.parsedItems = this.parseItems(newItems);
|
|
13657
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13658
|
+
}
|
|
13659
|
+
handleActiveUrlChange() {
|
|
13660
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13661
|
+
}
|
|
13662
|
+
// ---------------------------------------------------------------------------
|
|
13663
|
+
// Utils
|
|
13664
|
+
// ---------------------------------------------------------------------------
|
|
13665
|
+
parseItems(items) {
|
|
13666
|
+
if (Array.isArray(items)) {
|
|
13667
|
+
return items;
|
|
13668
|
+
}
|
|
13669
|
+
if (typeof items === 'string') {
|
|
13670
|
+
if (!items || items.trim() === '') {
|
|
13671
|
+
return [];
|
|
13672
|
+
}
|
|
13673
|
+
try {
|
|
13674
|
+
const parsed = JSON.parse(items);
|
|
13675
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
13676
|
+
}
|
|
13677
|
+
catch (e) {
|
|
13678
|
+
console.error('eds-sidebar: Failed to parse items JSON:', e);
|
|
13679
|
+
console.error('Received string:', items);
|
|
13680
|
+
return [];
|
|
13681
|
+
}
|
|
13682
|
+
}
|
|
13683
|
+
return [];
|
|
13684
|
+
}
|
|
13685
|
+
initializeOpenItems(items, level = 0) {
|
|
13686
|
+
if (level === 0) {
|
|
13687
|
+
// reset before recomputing
|
|
13688
|
+
this.openItems = new Set();
|
|
13689
|
+
}
|
|
13690
|
+
if (level >= this.maxLevel) {
|
|
13691
|
+
return;
|
|
13692
|
+
}
|
|
13693
|
+
items.forEach((item) => {
|
|
13694
|
+
var _a;
|
|
13695
|
+
const isActive = this.activeUrl && item.url === this.activeUrl;
|
|
13696
|
+
const hasActiveChild = this.hasActiveDescendant(item);
|
|
13697
|
+
if (item.open || isActive || hasActiveChild) {
|
|
13698
|
+
this.openItems.add(item.id);
|
|
13699
|
+
}
|
|
13700
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13701
|
+
this.initializeOpenItems(item.children, level + 1);
|
|
13702
|
+
}
|
|
13703
|
+
});
|
|
13704
|
+
}
|
|
13705
|
+
hasActiveDescendant(item) {
|
|
13706
|
+
var _a;
|
|
13707
|
+
if (item.url === this.activeUrl) {
|
|
13708
|
+
return true;
|
|
13709
|
+
}
|
|
13710
|
+
if (!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
13711
|
+
return false;
|
|
13712
|
+
}
|
|
13713
|
+
return item.children.some((child) => this.hasActiveDescendant(child));
|
|
13714
|
+
}
|
|
13715
|
+
// ---------------------------------------------------------------------------
|
|
13716
|
+
// Render
|
|
13717
|
+
// ---------------------------------------------------------------------------
|
|
13718
|
+
renderItem(item, level = 0) {
|
|
13719
|
+
if (level >= this.maxLevel) {
|
|
13720
|
+
return null;
|
|
13721
|
+
}
|
|
13722
|
+
const isOpen = this.openItems.has(item.id);
|
|
13723
|
+
const isActive = !!item.url && this.activeUrl === item.url;
|
|
13724
|
+
const hasChildren = !!(item.children && item.children.length);
|
|
13725
|
+
const itemId = `eds-sidebar-${item.id}`;
|
|
13726
|
+
const childrenId = `${itemId}-children`;
|
|
13727
|
+
return (hAsync("li", { class: {
|
|
13728
|
+
'sidebar-item': true,
|
|
13729
|
+
open: isOpen,
|
|
13730
|
+
active: isActive,
|
|
13731
|
+
'has-children': hasChildren,
|
|
13732
|
+
[`level-${level}`]: true
|
|
13733
|
+
} }, 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) => {
|
|
13734
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13735
|
+
e.preventDefault();
|
|
13736
|
+
this.handleItemClick(item, e);
|
|
13737
|
+
}
|
|
13738
|
+
} }, 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))))));
|
|
13739
|
+
}
|
|
13740
|
+
render() {
|
|
13741
|
+
return (hAsync(Host, { key: '4334d20e5d72671243633253910ab05b4da013da', class: {
|
|
13742
|
+
'eds-sidebar': true,
|
|
13743
|
+
[`theme-${this.theme}`]: true
|
|
13744
|
+
} }, 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))))));
|
|
13745
|
+
}
|
|
13746
|
+
get el() { return getElement(this); }
|
|
13747
|
+
static get watchers() { return {
|
|
13748
|
+
"items": ["handleItemsChange"],
|
|
13749
|
+
"activeUrl": ["handleActiveUrlChange"]
|
|
13750
|
+
}; }
|
|
13751
|
+
static get style() { return EdsSidebarStyle0; }
|
|
13752
|
+
static get cmpMeta() { return {
|
|
13753
|
+
"$flags$": 9,
|
|
13754
|
+
"$tagName$": "eds-sidebar",
|
|
13755
|
+
"$members$": {
|
|
13756
|
+
"items": [1],
|
|
13757
|
+
"theme": [1],
|
|
13758
|
+
"activeUrl": [1, "active-url"],
|
|
13759
|
+
"enableRouting": [4, "enable-routing"],
|
|
13760
|
+
"maxLevel": [2, "max-level"],
|
|
13761
|
+
"openItems": [32],
|
|
13762
|
+
"parsedItems": [32]
|
|
13763
|
+
},
|
|
13764
|
+
"$listeners$": undefined,
|
|
13765
|
+
"$lazyBundleId$": "-",
|
|
13766
|
+
"$attrsToReflect$": []
|
|
13767
|
+
}; }
|
|
13768
|
+
}
|
|
13769
|
+
|
|
13522
13770
|
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}";
|
|
13523
13771
|
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13524
13772
|
|
|
@@ -13575,7 +13823,7 @@ class EdsSocialNetworks {
|
|
|
13575
13823
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
13576
13824
|
*/
|
|
13577
13825
|
render() {
|
|
13578
|
-
return (hAsync("nav", { key: '
|
|
13826
|
+
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" })))))));
|
|
13579
13827
|
}
|
|
13580
13828
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13581
13829
|
static get cmpMeta() { return {
|
|
@@ -13666,7 +13914,7 @@ class EdsSpinner {
|
|
|
13666
13914
|
alignItems: 'center',
|
|
13667
13915
|
justifyContent: 'center'
|
|
13668
13916
|
};
|
|
13669
|
-
return (hAsync(Host, { key: '
|
|
13917
|
+
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))));
|
|
13670
13918
|
}
|
|
13671
13919
|
static get style() { return EdsSpinnerStyle0; }
|
|
13672
13920
|
static get cmpMeta() { return {
|
|
@@ -13750,7 +13998,7 @@ class EdsSplashScreen {
|
|
|
13750
13998
|
}; }
|
|
13751
13999
|
}
|
|
13752
14000
|
|
|
13753
|
-
const edsStepsCss = ".steps{position:sticky;margin-left:16px;
|
|
14001
|
+
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}";
|
|
13754
14002
|
var EdsStepsStyle0 = edsStepsCss;
|
|
13755
14003
|
|
|
13756
14004
|
class EdsSteps {
|
|
@@ -13761,47 +14009,63 @@ class EdsSteps {
|
|
|
13761
14009
|
this.next = createEvent(this, "next", 7);
|
|
13762
14010
|
this.back = createEvent(this, "back", 7);
|
|
13763
14011
|
this.handleTitleClick = (index) => {
|
|
13764
|
-
//
|
|
13765
|
-
if (
|
|
13766
|
-
|
|
14012
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14013
|
+
if (this.type === 'linear') {
|
|
14014
|
+
// prevent jumping forward over disabled steps
|
|
14015
|
+
if (index > this.activeStep) {
|
|
14016
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14017
|
+
if (this.isStepDisabled(i)) {
|
|
14018
|
+
return;
|
|
14019
|
+
}
|
|
14020
|
+
}
|
|
14021
|
+
}
|
|
14022
|
+
this.activeStep = index;
|
|
13767
14023
|
this.step.emit(this.activeStep);
|
|
13768
14024
|
return;
|
|
13769
14025
|
}
|
|
13770
|
-
//
|
|
13771
|
-
|
|
13772
|
-
|
|
14026
|
+
// Non-linear vertical mode: support optional collapse/expand on current title
|
|
14027
|
+
if (this.orientation === 'vertical' && index === this.activeStep && this.collapsibleTitles) {
|
|
14028
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14029
|
+
this.step.emit(this.activeStep);
|
|
13773
14030
|
return;
|
|
13774
|
-
}
|
|
13775
|
-
//
|
|
14031
|
+
}
|
|
14032
|
+
// Otherwise, just set
|
|
13776
14033
|
this.activeStep = index;
|
|
13777
14034
|
this.step.emit(this.activeStep);
|
|
13778
14035
|
};
|
|
13779
14036
|
this.handleNext = () => {
|
|
13780
14037
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14038
|
+
// On last step
|
|
13781
14039
|
if (this.activeStep >= lastIndex) {
|
|
13782
|
-
this.activeStep = -1;
|
|
13783
14040
|
this.finished.emit();
|
|
14041
|
+
this.activeStep = -1; // collapse the content
|
|
14042
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13784
14043
|
return;
|
|
13785
14044
|
}
|
|
13786
14045
|
const target = this.activeStep + 1;
|
|
13787
14046
|
this.next.emit(target);
|
|
13788
|
-
if (this.
|
|
14047
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
13789
14048
|
return;
|
|
13790
|
-
}
|
|
14049
|
+
}
|
|
13791
14050
|
this.activeStep = target;
|
|
13792
14051
|
this.step.emit(this.activeStep);
|
|
13793
|
-
// 2) if using the boolean form, clear it when moving away from a step
|
|
13794
14052
|
if (!Array.isArray(this.disableNext)) {
|
|
13795
14053
|
this.disableNext = false;
|
|
13796
14054
|
}
|
|
13797
14055
|
};
|
|
13798
14056
|
this.handleBack = () => {
|
|
14057
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14058
|
+
// If somehow collapsed, recover to last visible step first
|
|
14059
|
+
if (this.activeStep < 0) {
|
|
14060
|
+
this.activeStep = lastIndex;
|
|
14061
|
+
this.step.emit(this.activeStep);
|
|
14062
|
+
return;
|
|
14063
|
+
}
|
|
13799
14064
|
if (this.activeStep > 0) {
|
|
13800
14065
|
const target = this.activeStep - 1;
|
|
13801
14066
|
this.back.emit(target);
|
|
13802
14067
|
this.activeStep = target;
|
|
13803
14068
|
this.step.emit(this.activeStep);
|
|
13804
|
-
// also clear boolean form on back
|
|
13805
14069
|
if (!Array.isArray(this.disableNext)) {
|
|
13806
14070
|
this.disableNext = false;
|
|
13807
14071
|
}
|
|
@@ -13809,52 +14073,91 @@ class EdsSteps {
|
|
|
13809
14073
|
};
|
|
13810
14074
|
this.steps = [];
|
|
13811
14075
|
this.type = 'static';
|
|
14076
|
+
this.orientation = 'vertical';
|
|
13812
14077
|
this.nextLabel = 'Next';
|
|
13813
14078
|
this.backLabel = 'Back';
|
|
13814
14079
|
this.finishLabel = 'Finish';
|
|
13815
14080
|
this.disableNext = false;
|
|
13816
14081
|
this.headingLevel = 'h4';
|
|
14082
|
+
this.collapsibleTitles = false;
|
|
13817
14083
|
this.activeStep = 0;
|
|
13818
14084
|
}
|
|
14085
|
+
handleDisableNextChange(newValue) {
|
|
14086
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14087
|
+
try {
|
|
14088
|
+
this.disableNext = JSON.parse(newValue);
|
|
14089
|
+
}
|
|
14090
|
+
catch (e) {
|
|
14091
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14092
|
+
}
|
|
14093
|
+
}
|
|
14094
|
+
}
|
|
14095
|
+
componentWillLoad() {
|
|
14096
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14097
|
+
}
|
|
13819
14098
|
componentDidLoad() {
|
|
13820
|
-
var _a;
|
|
13821
14099
|
if (this.type === 'linear') {
|
|
13822
|
-
const
|
|
14100
|
+
const root = this.el.shadowRoot || this.el;
|
|
14101
|
+
const btns = root.querySelectorAll('eds-button');
|
|
13823
14102
|
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
13824
14103
|
}
|
|
13825
14104
|
}
|
|
13826
14105
|
activeStepChanged(newValue) {
|
|
14106
|
+
// Clamp to valid range or collapsed sentinel
|
|
14107
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14108
|
+
if (newValue > max) {
|
|
14109
|
+
this.activeStep = max;
|
|
14110
|
+
return;
|
|
14111
|
+
}
|
|
14112
|
+
if (newValue < -1) {
|
|
14113
|
+
this.activeStep = -1;
|
|
14114
|
+
return;
|
|
14115
|
+
}
|
|
14116
|
+
// If collapsed (only possible in non-linear mode), do not emit context
|
|
14117
|
+
if (newValue < 0) {
|
|
14118
|
+
return;
|
|
14119
|
+
}
|
|
13827
14120
|
setTimeout(() => {
|
|
13828
|
-
|
|
13829
|
-
const
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
}
|
|
14121
|
+
const root = this.el.shadowRoot || this.el;
|
|
14122
|
+
const all = root.querySelectorAll('.step');
|
|
14123
|
+
const active = all && newValue < all.length ? all[newValue] : undefined;
|
|
14124
|
+
active === null || active === void 0 ? void 0 : active.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13833
14125
|
}, 50);
|
|
13834
14126
|
}
|
|
13835
14127
|
emitContext(linkElement) {
|
|
13836
14128
|
const event = new CustomEvent('parentContext', {
|
|
13837
|
-
detail: {
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
}
|
|
14129
|
+
detail: { componentName: this.el.tagName.toLowerCase(), identifier: this.activeStep },
|
|
14130
|
+
bubbles: true,
|
|
14131
|
+
composed: true
|
|
13841
14132
|
});
|
|
13842
14133
|
linkElement.dispatchEvent(event);
|
|
13843
14134
|
}
|
|
13844
14135
|
get parsedSteps() {
|
|
13845
14136
|
return parseData(this.steps);
|
|
13846
14137
|
}
|
|
14138
|
+
isStepDisabled(index) {
|
|
14139
|
+
if (Array.isArray(this.disableNext)) {
|
|
14140
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14141
|
+
}
|
|
14142
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14143
|
+
}
|
|
13847
14144
|
isNextDisabledFor(index) {
|
|
13848
|
-
return
|
|
13849
|
-
? !!this.disableNext[index] // per-step
|
|
13850
|
-
: index === this.activeStep && !!this.disableNext; // only active step
|
|
14145
|
+
return this.isStepDisabled(index);
|
|
13851
14146
|
}
|
|
13852
14147
|
/** Render the semantic heading element as a clickable control only in linear mode */
|
|
13853
14148
|
renderHeading(title, index) {
|
|
13854
14149
|
const Tag = this.headingLevel;
|
|
13855
14150
|
const isOpen = this.activeStep === index;
|
|
13856
14151
|
if (this.type === 'linear') {
|
|
13857
|
-
|
|
14152
|
+
let forwardBlocked = false;
|
|
14153
|
+
if (index > this.activeStep) {
|
|
14154
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14155
|
+
if (this.isStepDisabled(i)) {
|
|
14156
|
+
forwardBlocked = true;
|
|
14157
|
+
break;
|
|
14158
|
+
}
|
|
14159
|
+
}
|
|
14160
|
+
}
|
|
13858
14161
|
const onKey = (e) => {
|
|
13859
14162
|
if (forwardBlocked) {
|
|
13860
14163
|
return;
|
|
@@ -13866,21 +14169,59 @@ class EdsSteps {
|
|
|
13866
14169
|
};
|
|
13867
14170
|
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));
|
|
13868
14171
|
}
|
|
13869
|
-
return hAsync(Tag,
|
|
14172
|
+
return (hAsync(Tag, { class: `eds-steps__title ${this.collapsibleTitles && index !== this.activeStep ? '' : ''}`, onClick: () => this.handleTitleClick(index) }, title));
|
|
14173
|
+
}
|
|
14174
|
+
/** Render horizontal step indicator */
|
|
14175
|
+
renderHorizontalIndicator(step, index) {
|
|
14176
|
+
const isActive = this.activeStep === index;
|
|
14177
|
+
const isCompleted = this.activeStep > index;
|
|
14178
|
+
let forwardBlocked = false;
|
|
14179
|
+
if (index > this.activeStep) {
|
|
14180
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14181
|
+
if (this.isStepDisabled(i)) {
|
|
14182
|
+
forwardBlocked = true;
|
|
14183
|
+
break;
|
|
14184
|
+
}
|
|
14185
|
+
}
|
|
14186
|
+
}
|
|
14187
|
+
const onKey = (e) => {
|
|
14188
|
+
if (forwardBlocked) {
|
|
14189
|
+
return;
|
|
14190
|
+
}
|
|
14191
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14192
|
+
e.preventDefault();
|
|
14193
|
+
this.handleTitleClick(index);
|
|
14194
|
+
}
|
|
14195
|
+
};
|
|
14196
|
+
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)));
|
|
13870
14197
|
}
|
|
13871
14198
|
render() {
|
|
13872
14199
|
const steps = this.parsedSteps;
|
|
14200
|
+
// Horizontal Linear
|
|
14201
|
+
if (this.type === 'linear' && this.orientation === 'horizontal') {
|
|
14202
|
+
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) => {
|
|
14203
|
+
const isLast = index === steps.length - 1;
|
|
14204
|
+
if (this.activeStep !== index) {
|
|
14205
|
+
return null;
|
|
14206
|
+
}
|
|
14207
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14208
|
+
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}` })));
|
|
14209
|
+
})));
|
|
14210
|
+
}
|
|
14211
|
+
// Vertical Linear
|
|
13873
14212
|
if (this.type === 'linear') {
|
|
13874
14213
|
return (hAsync("div", { class: "steps" }, steps.map((step, index) => {
|
|
13875
14214
|
const isLast = index === steps.length - 1;
|
|
13876
|
-
|
|
14215
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14216
|
+
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}` })))));
|
|
13877
14217
|
})));
|
|
13878
14218
|
}
|
|
13879
|
-
// Static
|
|
13880
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-
|
|
14219
|
+
// Static
|
|
14220
|
+
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 }))))))));
|
|
13881
14221
|
}
|
|
13882
14222
|
get el() { return getElement(this); }
|
|
13883
14223
|
static get watchers() { return {
|
|
14224
|
+
"disableNext": ["handleDisableNextChange"],
|
|
13884
14225
|
"activeStep": ["activeStepChanged"]
|
|
13885
14226
|
}; }
|
|
13886
14227
|
static get style() { return EdsStepsStyle0; }
|
|
@@ -13890,11 +14231,13 @@ class EdsSteps {
|
|
|
13890
14231
|
"$members$": {
|
|
13891
14232
|
"steps": [1],
|
|
13892
14233
|
"type": [1],
|
|
14234
|
+
"orientation": [1],
|
|
13893
14235
|
"nextLabel": [1, "next-label"],
|
|
13894
14236
|
"backLabel": [1, "back-label"],
|
|
13895
14237
|
"finishLabel": [1, "finish-label"],
|
|
13896
|
-
"disableNext": [
|
|
14238
|
+
"disableNext": [1032, "disable-next"],
|
|
13897
14239
|
"headingLevel": [513, "heading-level"],
|
|
14240
|
+
"collapsibleTitles": [4, "collapsible-titles"],
|
|
13898
14241
|
"activeStep": [32]
|
|
13899
14242
|
},
|
|
13900
14243
|
"$listeners$": undefined,
|
|
@@ -13903,7 +14246,7 @@ class EdsSteps {
|
|
|
13903
14246
|
}; }
|
|
13904
14247
|
}
|
|
13905
14248
|
|
|
13906
|
-
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:-
|
|
14249
|
+
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}";
|
|
13907
14250
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
13908
14251
|
|
|
13909
14252
|
class EdsStepsV2 {
|
|
@@ -13914,48 +14257,74 @@ class EdsStepsV2 {
|
|
|
13914
14257
|
this.next = createEvent(this, "next", 7);
|
|
13915
14258
|
this.back = createEvent(this, "back", 7);
|
|
13916
14259
|
this.handleTitleClick = (index) => {
|
|
13917
|
-
//
|
|
13918
|
-
if (
|
|
13919
|
-
|
|
14260
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14261
|
+
if (this.type === 'linear') {
|
|
14262
|
+
if (index > this.activeStep) {
|
|
14263
|
+
// Prevent jumping forward over disabled steps
|
|
14264
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14265
|
+
if (this.isStepDisabled(i)) {
|
|
14266
|
+
return;
|
|
14267
|
+
}
|
|
14268
|
+
}
|
|
14269
|
+
}
|
|
14270
|
+
this.activeStep = index;
|
|
13920
14271
|
this.step.emit(this.activeStep);
|
|
13921
14272
|
return;
|
|
13922
14273
|
}
|
|
13923
|
-
//
|
|
13924
|
-
|
|
13925
|
-
|
|
14274
|
+
// Non-linear vertical mode can toggle collapse of the current title
|
|
14275
|
+
if (this.orientation === 'vertical' && index === this.activeStep) {
|
|
14276
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14277
|
+
this.step.emit(this.activeStep);
|
|
13926
14278
|
return;
|
|
13927
14279
|
}
|
|
13928
|
-
//
|
|
14280
|
+
// Otherwise just set
|
|
13929
14281
|
this.activeStep = index;
|
|
13930
14282
|
this.step.emit(this.activeStep);
|
|
13931
14283
|
};
|
|
13932
14284
|
this.handleNext = () => {
|
|
13933
14285
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14286
|
+
// On last step: do NOT collapse; keep content visible, just emit finished
|
|
13934
14287
|
if (this.activeStep >= lastIndex) {
|
|
13935
14288
|
this.finished.emit();
|
|
13936
|
-
this.activeStep = -1; // collapse
|
|
14289
|
+
this.activeStep = -1; // collapse the content
|
|
14290
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13937
14291
|
return;
|
|
13938
14292
|
}
|
|
13939
14293
|
const target = this.activeStep + 1;
|
|
13940
14294
|
this.next.emit(target);
|
|
13941
|
-
if (
|
|
13942
|
-
|
|
13943
|
-
|
|
14295
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
14296
|
+
return;
|
|
14297
|
+
}
|
|
14298
|
+
this.activeStep = target;
|
|
14299
|
+
this.step.emit(this.activeStep);
|
|
14300
|
+
// clear boolean form when moving away from a step
|
|
14301
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14302
|
+
this.disableNext = false;
|
|
13944
14303
|
}
|
|
13945
14304
|
};
|
|
13946
14305
|
this.handleBack = () => {
|
|
14306
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14307
|
+
// Recover from collapsed sentinel if it ever occurs
|
|
14308
|
+
if (this.activeStep < 0) {
|
|
14309
|
+
this.activeStep = lastIndex;
|
|
14310
|
+
this.step.emit(this.activeStep);
|
|
14311
|
+
return;
|
|
14312
|
+
}
|
|
13947
14313
|
if (this.activeStep > 0) {
|
|
13948
14314
|
const target = this.activeStep - 1;
|
|
13949
14315
|
this.back.emit(target);
|
|
13950
14316
|
this.activeStep = target;
|
|
13951
14317
|
this.step.emit(this.activeStep);
|
|
14318
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14319
|
+
this.disableNext = false;
|
|
14320
|
+
}
|
|
13952
14321
|
}
|
|
13953
14322
|
};
|
|
13954
14323
|
this.steps = [];
|
|
13955
14324
|
this.type = 'static';
|
|
14325
|
+
this.orientation = 'vertical';
|
|
13956
14326
|
this.imageSrc = undefined;
|
|
13957
14327
|
this.imageWidth = undefined;
|
|
13958
|
-
this.bg = true;
|
|
13959
14328
|
this.message = undefined;
|
|
13960
14329
|
this.nextLabel = 'Next';
|
|
13961
14330
|
this.backLabel = 'Back';
|
|
@@ -13964,57 +14333,87 @@ class EdsStepsV2 {
|
|
|
13964
14333
|
this.headingLevel = 'h4';
|
|
13965
14334
|
this.activeStep = 0;
|
|
13966
14335
|
}
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
14336
|
+
handleDisableNextChange(newValue) {
|
|
14337
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14338
|
+
try {
|
|
14339
|
+
this.disableNext = JSON.parse(newValue);
|
|
14340
|
+
}
|
|
14341
|
+
catch (e) {
|
|
14342
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14343
|
+
}
|
|
13974
14344
|
}
|
|
13975
14345
|
}
|
|
13976
14346
|
activeStepChanged(newValue) {
|
|
14347
|
+
// Clamp and ignore collapsed sentinel
|
|
14348
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14349
|
+
if (newValue > max) {
|
|
14350
|
+
this.activeStep = max;
|
|
14351
|
+
return;
|
|
14352
|
+
}
|
|
14353
|
+
if (newValue < -1) {
|
|
14354
|
+
this.activeStep = -1;
|
|
14355
|
+
return;
|
|
14356
|
+
}
|
|
14357
|
+
if (newValue < 0) {
|
|
14358
|
+
return;
|
|
14359
|
+
} // ignore collapsed state if ever set elsewhere
|
|
14360
|
+
// Emit parentContext to buttons inside the newly active step
|
|
13977
14361
|
setTimeout(() => {
|
|
13978
|
-
|
|
13979
|
-
const activeStepContainer =
|
|
13980
|
-
|
|
13981
|
-
const btns = activeStepContainer.querySelectorAll('eds-button');
|
|
13982
|
-
btns.forEach((btn) => {
|
|
13983
|
-
this.emitContext(btn);
|
|
13984
|
-
});
|
|
13985
|
-
}
|
|
14362
|
+
const host = this.el.shadowRoot || this.el;
|
|
14363
|
+
const activeStepContainer = host.querySelectorAll('.step')[newValue];
|
|
14364
|
+
activeStepContainer === null || activeStepContainer === void 0 ? void 0 : activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13986
14365
|
}, 50);
|
|
13987
14366
|
}
|
|
14367
|
+
componentWillLoad() {
|
|
14368
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14369
|
+
}
|
|
14370
|
+
componentDidLoad() {
|
|
14371
|
+
if (this.type === 'linear') {
|
|
14372
|
+
const host = this.el.shadowRoot || this.el;
|
|
14373
|
+
const btns = host.querySelectorAll('eds-button');
|
|
14374
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
14375
|
+
}
|
|
14376
|
+
}
|
|
13988
14377
|
emitContext(linkElement) {
|
|
13989
14378
|
const event = new CustomEvent('parentContext', {
|
|
13990
14379
|
detail: {
|
|
13991
14380
|
componentName: this.el.tagName.toLowerCase(),
|
|
13992
14381
|
identifier: this.activeStep
|
|
13993
|
-
}
|
|
14382
|
+
},
|
|
14383
|
+
bubbles: true,
|
|
14384
|
+
composed: true
|
|
13994
14385
|
});
|
|
13995
14386
|
linkElement.dispatchEvent(event);
|
|
13996
14387
|
}
|
|
13997
14388
|
articleClasses() {
|
|
13998
|
-
return [
|
|
13999
|
-
this.bg ? 'bg-inverse' : 'bg-default',
|
|
14000
|
-
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
14001
|
-
].join(' ');
|
|
14389
|
+
return ['border-softer effect-focus-within relative rounded-lg border-2'].join(' ');
|
|
14002
14390
|
}
|
|
14003
|
-
/**
|
|
14004
|
-
* Parses the steps property into an array of Step objects.
|
|
14005
|
-
*/
|
|
14006
14391
|
get parsedSteps() {
|
|
14007
14392
|
return parseData(this.steps);
|
|
14008
14393
|
}
|
|
14009
|
-
|
|
14010
|
-
|
|
14394
|
+
isStepDisabled(index) {
|
|
14395
|
+
if (Array.isArray(this.disableNext)) {
|
|
14396
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14397
|
+
}
|
|
14398
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14399
|
+
}
|
|
14400
|
+
isNextDisabledFor(index) {
|
|
14401
|
+
return this.isStepDisabled(index);
|
|
14011
14402
|
}
|
|
14012
|
-
/** Render the semantic heading element */
|
|
14013
14403
|
renderHeading(title, index) {
|
|
14014
14404
|
const Tag = this.headingLevel;
|
|
14015
14405
|
if (this.type === 'linear') {
|
|
14016
14406
|
const isOpen = this.activeStep === index;
|
|
14017
|
-
|
|
14407
|
+
// Check if jumping to this step crosses a disabled step
|
|
14408
|
+
let forwardBlocked = false;
|
|
14409
|
+
if (index > this.activeStep) {
|
|
14410
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14411
|
+
if (this.isStepDisabled(i)) {
|
|
14412
|
+
forwardBlocked = true;
|
|
14413
|
+
break;
|
|
14414
|
+
}
|
|
14415
|
+
}
|
|
14416
|
+
}
|
|
14018
14417
|
const onKey = (e) => {
|
|
14019
14418
|
if (forwardBlocked) {
|
|
14020
14419
|
return;
|
|
@@ -14026,16 +14425,46 @@ class EdsStepsV2 {
|
|
|
14026
14425
|
};
|
|
14027
14426
|
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));
|
|
14028
14427
|
}
|
|
14029
|
-
return hAsync(Tag, { class: "eds-steps__title" }, title);
|
|
14428
|
+
return (hAsync(Tag, { class: "eds-steps__title", onClick: () => this.handleTitleClick(index) }, title));
|
|
14429
|
+
}
|
|
14430
|
+
/** Render horizontal indicator item */
|
|
14431
|
+
renderHorizontalIndicator(step, index) {
|
|
14432
|
+
const isActive = this.activeStep === index;
|
|
14433
|
+
const isCompleted = this.activeStep > index;
|
|
14434
|
+
let forwardBlocked = false;
|
|
14435
|
+
if (index > this.activeStep) {
|
|
14436
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14437
|
+
if (this.isStepDisabled(i)) {
|
|
14438
|
+
forwardBlocked = true;
|
|
14439
|
+
break;
|
|
14440
|
+
}
|
|
14441
|
+
}
|
|
14442
|
+
}
|
|
14443
|
+
const onKey = (e) => {
|
|
14444
|
+
if (forwardBlocked) {
|
|
14445
|
+
return;
|
|
14446
|
+
}
|
|
14447
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14448
|
+
e.preventDefault();
|
|
14449
|
+
this.handleTitleClick(index);
|
|
14450
|
+
}
|
|
14451
|
+
};
|
|
14452
|
+
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)));
|
|
14030
14453
|
}
|
|
14031
14454
|
render() {
|
|
14032
14455
|
const steps = this.parsedSteps;
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14456
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14457
|
+
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) => {
|
|
14458
|
+
const isLast = index === steps.length - 1;
|
|
14459
|
+
if (this.activeStep !== index) {
|
|
14460
|
+
return null;
|
|
14461
|
+
}
|
|
14462
|
+
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}` })));
|
|
14463
|
+
}))) : 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 }))))))))))));
|
|
14036
14464
|
}
|
|
14037
14465
|
get el() { return getElement(this); }
|
|
14038
14466
|
static get watchers() { return {
|
|
14467
|
+
"disableNext": ["handleDisableNextChange"],
|
|
14039
14468
|
"activeStep": ["activeStepChanged"]
|
|
14040
14469
|
}; }
|
|
14041
14470
|
static get style() { return EdsStepsV2Style0; }
|
|
@@ -14045,14 +14474,14 @@ class EdsStepsV2 {
|
|
|
14045
14474
|
"$members$": {
|
|
14046
14475
|
"steps": [1],
|
|
14047
14476
|
"type": [1],
|
|
14477
|
+
"orientation": [1],
|
|
14048
14478
|
"imageSrc": [1, "image-src"],
|
|
14049
14479
|
"imageWidth": [2, "image-width"],
|
|
14050
|
-
"bg": [4],
|
|
14051
14480
|
"message": [1],
|
|
14052
14481
|
"nextLabel": [1, "next-label"],
|
|
14053
14482
|
"backLabel": [1, "back-label"],
|
|
14054
14483
|
"finishLabel": [1, "finish-label"],
|
|
14055
|
-
"disableNext": [
|
|
14484
|
+
"disableNext": [1032, "disable-next"],
|
|
14056
14485
|
"headingLevel": [513, "heading-level"],
|
|
14057
14486
|
"activeStep": [32]
|
|
14058
14487
|
},
|
|
@@ -14112,11 +14541,11 @@ class EdsSwitch {
|
|
|
14112
14541
|
: this.labelOff
|
|
14113
14542
|
: 'Toggle switch'
|
|
14114
14543
|
: undefined;
|
|
14115
|
-
return (hAsync("div", { key: '
|
|
14544
|
+
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: {
|
|
14116
14545
|
switch: true,
|
|
14117
14546
|
'switch--checked': this.checked,
|
|
14118
14547
|
'switch--disabled': this.disabled
|
|
14119
|
-
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '
|
|
14548
|
+
}, 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))));
|
|
14120
14549
|
}
|
|
14121
14550
|
get el() { return getElement(this); }
|
|
14122
14551
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -14135,7 +14564,7 @@ class EdsSwitch {
|
|
|
14135
14564
|
}; }
|
|
14136
14565
|
}
|
|
14137
14566
|
|
|
14138
|
-
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}";
|
|
14567
|
+
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}";
|
|
14139
14568
|
var EdsTableStyle0 = edsTableCss;
|
|
14140
14569
|
|
|
14141
14570
|
/**
|
|
@@ -14181,6 +14610,24 @@ class EdsTable {
|
|
|
14181
14610
|
}
|
|
14182
14611
|
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14183
14612
|
};
|
|
14613
|
+
this.handleSort = (column) => {
|
|
14614
|
+
if (this.sortColumn === column) {
|
|
14615
|
+
// Toggle direction if same column
|
|
14616
|
+
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
14617
|
+
}
|
|
14618
|
+
else {
|
|
14619
|
+
// New column, default to ascending
|
|
14620
|
+
this.sortColumn = column;
|
|
14621
|
+
this.sortDirection = 'asc';
|
|
14622
|
+
}
|
|
14623
|
+
sendAnalytics({
|
|
14624
|
+
category: 'ui-component',
|
|
14625
|
+
parentContext: null,
|
|
14626
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/sort`,
|
|
14627
|
+
name: column,
|
|
14628
|
+
action: this.sortDirection
|
|
14629
|
+
});
|
|
14630
|
+
};
|
|
14184
14631
|
this.data = null;
|
|
14185
14632
|
this.config = {};
|
|
14186
14633
|
this.rowsPerPage = 10;
|
|
@@ -14190,6 +14637,8 @@ class EdsTable {
|
|
|
14190
14637
|
this.columnSize = 'default';
|
|
14191
14638
|
this.actions = [];
|
|
14192
14639
|
this.actionTemplate = undefined;
|
|
14640
|
+
this.sortingEnabled = false;
|
|
14641
|
+
this.theme = 'color';
|
|
14193
14642
|
this.parsedActions = [];
|
|
14194
14643
|
this.dataColumns = [];
|
|
14195
14644
|
this.tbData = [];
|
|
@@ -14199,6 +14648,8 @@ class EdsTable {
|
|
|
14199
14648
|
this.totalRows = 0;
|
|
14200
14649
|
this.searchQuery = '';
|
|
14201
14650
|
this.containerWidth = 0;
|
|
14651
|
+
this.sortColumn = null;
|
|
14652
|
+
this.sortDirection = 'asc';
|
|
14202
14653
|
}
|
|
14203
14654
|
handleDataChange() {
|
|
14204
14655
|
this.parseData();
|
|
@@ -14281,10 +14732,10 @@ class EdsTable {
|
|
|
14281
14732
|
return this.tbData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
14282
14733
|
}
|
|
14283
14734
|
getPaginatedRows() {
|
|
14284
|
-
const
|
|
14285
|
-
this.totalRows =
|
|
14735
|
+
const sortedRows = this.getSortedRows();
|
|
14736
|
+
this.totalRows = sortedRows.length;
|
|
14286
14737
|
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
14287
|
-
return
|
|
14738
|
+
return sortedRows.slice(start, start + this.rowsPerPage);
|
|
14288
14739
|
}
|
|
14289
14740
|
handlePageChange(newPage) {
|
|
14290
14741
|
this.currentPage = newPage;
|
|
@@ -14364,22 +14815,52 @@ class EdsTable {
|
|
|
14364
14815
|
capitalize(str) {
|
|
14365
14816
|
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
14366
14817
|
}
|
|
14818
|
+
getSortedRows() {
|
|
14819
|
+
const filtered = this.getFilteredRows();
|
|
14820
|
+
if (!this.sortColumn) {
|
|
14821
|
+
return filtered;
|
|
14822
|
+
}
|
|
14823
|
+
return [...filtered].sort((a, b) => {
|
|
14824
|
+
const aVal = a[this.sortColumn];
|
|
14825
|
+
const bVal = b[this.sortColumn];
|
|
14826
|
+
// Handle null/undefined
|
|
14827
|
+
if (aVal == null) {
|
|
14828
|
+
return 1;
|
|
14829
|
+
}
|
|
14830
|
+
if (bVal == null) {
|
|
14831
|
+
return -1;
|
|
14832
|
+
}
|
|
14833
|
+
// Compare values
|
|
14834
|
+
let comparison = 0;
|
|
14835
|
+
if (typeof aVal === 'number' && typeof bVal === 'number') {
|
|
14836
|
+
comparison = aVal - bVal;
|
|
14837
|
+
}
|
|
14838
|
+
else {
|
|
14839
|
+
comparison = String(aVal).localeCompare(String(bVal));
|
|
14840
|
+
}
|
|
14841
|
+
return this.sortDirection === 'asc' ? comparison : -comparison;
|
|
14842
|
+
});
|
|
14843
|
+
}
|
|
14367
14844
|
render() {
|
|
14368
14845
|
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
14369
14846
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
14370
14847
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14371
14848
|
const paginatedRows = this.getPaginatedRows();
|
|
14372
14849
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
14373
|
-
return (hAsync("div", { key: '
|
|
14850
|
+
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) => {
|
|
14374
14851
|
var _a;
|
|
14375
14852
|
if (col === 'actions') {
|
|
14376
14853
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
14377
14854
|
}
|
|
14378
14855
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
14379
|
-
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col))
|
|
14856
|
+
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
|
|
14857
|
+
? this.sortDirection === 'asc'
|
|
14858
|
+
? 'chevron-up'
|
|
14859
|
+
: 'chevron-down'
|
|
14860
|
+
: 'chevron-down', "aria-label": `Sort by ${col}`, onClick: () => this.handleSort(col), style: { cursor: 'pointer' } })))));
|
|
14380
14861
|
}
|
|
14381
14862
|
return null;
|
|
14382
|
-
}))), hAsync("tbody", { key: '
|
|
14863
|
+
}))), 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) => {
|
|
14383
14864
|
var _a;
|
|
14384
14865
|
if (col === 'actions') {
|
|
14385
14866
|
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: {
|
|
@@ -14394,7 +14875,7 @@ class EdsTable {
|
|
|
14394
14875
|
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)));
|
|
14395
14876
|
}
|
|
14396
14877
|
return null;
|
|
14397
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14878
|
+
}))))))), 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" })))));
|
|
14398
14879
|
}
|
|
14399
14880
|
get hostEl() { return getElement(this); }
|
|
14400
14881
|
static get watchers() { return {
|
|
@@ -14416,6 +14897,8 @@ class EdsTable {
|
|
|
14416
14897
|
"columnSize": [1, "column-size"],
|
|
14417
14898
|
"actions": [1],
|
|
14418
14899
|
"actionTemplate": [16],
|
|
14900
|
+
"sortingEnabled": [4, "sorting-enabled"],
|
|
14901
|
+
"theme": [1],
|
|
14419
14902
|
"parsedActions": [32],
|
|
14420
14903
|
"dataColumns": [32],
|
|
14421
14904
|
"tbData": [32],
|
|
@@ -14424,7 +14907,9 @@ class EdsTable {
|
|
|
14424
14907
|
"parsedConfig": [32],
|
|
14425
14908
|
"totalRows": [32],
|
|
14426
14909
|
"searchQuery": [32],
|
|
14427
|
-
"containerWidth": [32]
|
|
14910
|
+
"containerWidth": [32],
|
|
14911
|
+
"sortColumn": [32],
|
|
14912
|
+
"sortDirection": [32]
|
|
14428
14913
|
},
|
|
14429
14914
|
"$listeners$": undefined,
|
|
14430
14915
|
"$lazyBundleId$": "-",
|
|
@@ -14605,12 +15090,12 @@ class EdsTabs {
|
|
|
14605
15090
|
}
|
|
14606
15091
|
}
|
|
14607
15092
|
render() {
|
|
14608
|
-
return (hAsync("div", { key: '
|
|
15093
|
+
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) => {
|
|
14609
15094
|
const TabComponent = 'button';
|
|
14610
15095
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14611
15096
|
const isActive = index === this.activeIndex;
|
|
14612
15097
|
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));
|
|
14613
|
-
}))), hAsync("div", { key: '
|
|
15098
|
+
}))), 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}` })))))));
|
|
14614
15099
|
}
|
|
14615
15100
|
get el() { return getElement(this); }
|
|
14616
15101
|
static get watchers() { return {
|
|
@@ -14673,7 +15158,7 @@ class EdsTag {
|
|
|
14673
15158
|
}
|
|
14674
15159
|
render() {
|
|
14675
15160
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
14676
|
-
return hAsync("span", { key: '
|
|
15161
|
+
return hAsync("span", { key: 'ef36f799cf3226ccf281428929e75326ea6a06e4', class: classes }, this.label);
|
|
14677
15162
|
}
|
|
14678
15163
|
static get style() { return EdsTagStyle0; }
|
|
14679
15164
|
static get cmpMeta() { return {
|
|
@@ -14735,7 +15220,7 @@ class EdsTimeline {
|
|
|
14735
15220
|
}
|
|
14736
15221
|
}
|
|
14737
15222
|
render() {
|
|
14738
|
-
return (hAsync("div", { key: '
|
|
15223
|
+
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
|
|
14739
15224
|
? [{ label: 'completed', style: 'accent' }]
|
|
14740
15225
|
: [{ 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
|
|
14741
15226
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14909,7 +15394,7 @@ class EdsToastManager {
|
|
|
14909
15394
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14910
15395
|
}
|
|
14911
15396
|
render() {
|
|
14912
|
-
return (hAsync("div", { key: '
|
|
15397
|
+
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) }))))));
|
|
14913
15398
|
}
|
|
14914
15399
|
get hostElement() { return getElement(this); }
|
|
14915
15400
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14948,7 +15433,7 @@ class EdsTooltip {
|
|
|
14948
15433
|
}
|
|
14949
15434
|
render() {
|
|
14950
15435
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14951
|
-
return (hAsync("div", { key: '
|
|
15436
|
+
return (hAsync("div", { key: '1c56a6c10a841575d1450750d2aaf55f9f42f6ee', class: "relative w-full inline-block group" }, hAsync("slot", { key: '631775de9a60642ec51de32708e0d6a0c2c27b66' }), hAsync("div", { key: '9def7dbbc301f465b81ff0e77b182be90d0893de', class: `absolute ${positionClass}
|
|
14952
15437
|
rounded-xs bg-strongest text-inverse
|
|
14953
15438
|
f-ui-03-light pointer-events-none
|
|
14954
15439
|
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -15012,7 +15497,7 @@ class EdsTrl {
|
|
|
15012
15497
|
Application: { format: 'code' },
|
|
15013
15498
|
'Current TRL Stage': { format: 'text' }
|
|
15014
15499
|
};
|
|
15015
|
-
return (hAsync("div", { key: '
|
|
15500
|
+
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" })));
|
|
15016
15501
|
}
|
|
15017
15502
|
static get cmpMeta() { return {
|
|
15018
15503
|
"$flags$": 0,
|
|
@@ -15077,7 +15562,7 @@ class EdsUser {
|
|
|
15077
15562
|
render() {
|
|
15078
15563
|
const user = this.parsedUser;
|
|
15079
15564
|
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
15080
|
-
return (hAsync("div", { key: '
|
|
15565
|
+
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' })))))));
|
|
15081
15566
|
}
|
|
15082
15567
|
get hostEl() { return getElement(this); }
|
|
15083
15568
|
static get style() { return EdsUserStyle0; }
|
|
@@ -15133,7 +15618,7 @@ class GradientPrimaryPalette {
|
|
|
15133
15618
|
];
|
|
15134
15619
|
}
|
|
15135
15620
|
render() {
|
|
15136
|
-
return (hAsync("ul", { key: '
|
|
15621
|
+
return (hAsync("ul", { key: 'd49c7b463621ffc3c747c4dab0703415a4275555', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
15137
15622
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
15138
15623
|
} }, 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))))))));
|
|
15139
15624
|
}
|
|
@@ -15206,19 +15691,19 @@ class GradientSecondaryPalette {
|
|
|
15206
15691
|
];
|
|
15207
15692
|
}
|
|
15208
15693
|
render() {
|
|
15209
|
-
return (hAsync("div", { key: '
|
|
15694
|
+
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: {
|
|
15210
15695
|
background: this.colors[0].background
|
|
15211
|
-
} }, hAsync("div", { key: '
|
|
15696
|
+
} }, 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: {
|
|
15212
15697
|
background: this.colors[1].background
|
|
15213
|
-
} }, hAsync("div", { key: '
|
|
15698
|
+
} }, 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: {
|
|
15214
15699
|
background: this.colors[2].background
|
|
15215
|
-
} }, hAsync("div", { key: '
|
|
15700
|
+
} }, 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: {
|
|
15216
15701
|
background: this.colors[3].background
|
|
15217
|
-
} }, hAsync("div", { key: '
|
|
15702
|
+
} }, 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: {
|
|
15218
15703
|
background: this.colors[4].background
|
|
15219
|
-
} }, hAsync("div", { key: '
|
|
15704
|
+
} }, 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: {
|
|
15220
15705
|
background: this.colors[5].background
|
|
15221
|
-
} }, hAsync("div", { key: '
|
|
15706
|
+
} }, 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)))))));
|
|
15222
15707
|
}
|
|
15223
15708
|
static get cmpMeta() { return {
|
|
15224
15709
|
"$flags$": 0,
|
|
@@ -15281,11 +15766,11 @@ class GradientSupportPalette {
|
|
|
15281
15766
|
];
|
|
15282
15767
|
}
|
|
15283
15768
|
render() {
|
|
15284
|
-
return (hAsync("ul", { key: '
|
|
15769
|
+
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: {
|
|
15285
15770
|
background: this.colors[2].background
|
|
15286
|
-
} }, hAsync("div", { key: '
|
|
15771
|
+
} }, 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: {
|
|
15287
15772
|
background: this.colors[3].background
|
|
15288
|
-
} }, hAsync("div", { key: '
|
|
15773
|
+
} }, 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'))))));
|
|
15289
15774
|
}
|
|
15290
15775
|
static get cmpMeta() { return {
|
|
15291
15776
|
"$flags$": 0,
|
|
@@ -15339,7 +15824,7 @@ class IncorrectUseOfColors {
|
|
|
15339
15824
|
registerInstance(this, hostRef);
|
|
15340
15825
|
}
|
|
15341
15826
|
render() {
|
|
15342
|
-
return (hAsync("div", { key: '
|
|
15827
|
+
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 } })))))))));
|
|
15343
15828
|
}
|
|
15344
15829
|
static get cmpMeta() { return {
|
|
15345
15830
|
"$flags$": 0,
|
|
@@ -15362,7 +15847,7 @@ class LogoSpace {
|
|
|
15362
15847
|
registerInstance(this, hostRef);
|
|
15363
15848
|
}
|
|
15364
15849
|
render() {
|
|
15365
|
-
return (hAsync("div", { key: '
|
|
15850
|
+
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" }))));
|
|
15366
15851
|
}
|
|
15367
15852
|
static get style() { return LogoSpaceStyle0; }
|
|
15368
15853
|
static get cmpMeta() { return {
|
|
@@ -15386,7 +15871,7 @@ class LogoVariationsHorizontal {
|
|
|
15386
15871
|
registerInstance(this, hostRef);
|
|
15387
15872
|
}
|
|
15388
15873
|
render() {
|
|
15389
|
-
return (hAsync("div", { key: '
|
|
15874
|
+
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: "#" }))))));
|
|
15390
15875
|
}
|
|
15391
15876
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15392
15877
|
static get cmpMeta() { return {
|
|
@@ -15418,7 +15903,7 @@ class LogoVariationsTabs {
|
|
|
15418
15903
|
}
|
|
15419
15904
|
}
|
|
15420
15905
|
render() {
|
|
15421
|
-
return hAsync("div", { key: '
|
|
15906
|
+
return hAsync("div", { key: 'f35a343973fee85b4aa9341af797dc006aad4a03', class: "container" }, this.renderContent());
|
|
15422
15907
|
}
|
|
15423
15908
|
static get cmpMeta() { return {
|
|
15424
15909
|
"$flags$": 0,
|
|
@@ -15445,7 +15930,7 @@ class LogoVariationsVertical {
|
|
|
15445
15930
|
this.type = undefined;
|
|
15446
15931
|
}
|
|
15447
15932
|
render() {
|
|
15448
|
-
return (hAsync("div", { key: '
|
|
15933
|
+
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: "#" }))))));
|
|
15449
15934
|
}
|
|
15450
15935
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15451
15936
|
static get cmpMeta() { return {
|
|
@@ -15472,7 +15957,7 @@ class LogoWrongUsage {
|
|
|
15472
15957
|
registerInstance(this, hostRef);
|
|
15473
15958
|
}
|
|
15474
15959
|
render() {
|
|
15475
|
-
return (hAsync("div", { key: '
|
|
15960
|
+
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"))))));
|
|
15476
15961
|
}
|
|
15477
15962
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15478
15963
|
static get cmpMeta() { return {
|
|
@@ -15516,7 +16001,7 @@ class SvgRepository {
|
|
|
15516
16001
|
icon: { format: 'svg' },
|
|
15517
16002
|
name: { format: 'bold' }
|
|
15518
16003
|
};
|
|
15519
|
-
return (hAsync("div", { key: '
|
|
16004
|
+
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 })));
|
|
15520
16005
|
}
|
|
15521
16006
|
get hostEl() { return getElement(this); }
|
|
15522
16007
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -15773,7 +16258,7 @@ class TokenList {
|
|
|
15773
16258
|
render() {
|
|
15774
16259
|
// Check if `show` prop is provided; if not, display all sections
|
|
15775
16260
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15776
|
-
return (hAsync("section", { key: '
|
|
16261
|
+
return (hAsync("section", { key: '940429578fd363c79e2dd79f0f2ac758ca87e905', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15777
16262
|
// Only render sections that exist in `colors`
|
|
15778
16263
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15779
16264
|
}
|
|
@@ -15806,7 +16291,7 @@ class TokenRadii {
|
|
|
15806
16291
|
registerInstance(this, hostRef);
|
|
15807
16292
|
}
|
|
15808
16293
|
render() {
|
|
15809
|
-
return (hAsync("section", { key: '
|
|
16294
|
+
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" }))))))));
|
|
15810
16295
|
}
|
|
15811
16296
|
static get cmpMeta() { return {
|
|
15812
16297
|
"$flags$": 0,
|
|
@@ -15835,7 +16320,7 @@ class TokenRatios {
|
|
|
15835
16320
|
registerInstance(this, hostRef);
|
|
15836
16321
|
}
|
|
15837
16322
|
render() {
|
|
15838
|
-
return (hAsync("section", { key: '
|
|
16323
|
+
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: {
|
|
15839
16324
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15840
16325
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15841
16326
|
maxWidth: '300px'
|
|
@@ -15877,7 +16362,7 @@ class TokenShadows {
|
|
|
15877
16362
|
registerInstance(this, hostRef);
|
|
15878
16363
|
}
|
|
15879
16364
|
render() {
|
|
15880
|
-
return (hAsync("section", { key: '
|
|
16365
|
+
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]" })))))))));
|
|
15881
16366
|
}
|
|
15882
16367
|
static get cmpMeta() { return {
|
|
15883
16368
|
"$flags$": 0,
|
|
@@ -15897,7 +16382,7 @@ class TokenSpacing {
|
|
|
15897
16382
|
registerInstance(this, hostRef);
|
|
15898
16383
|
}
|
|
15899
16384
|
render() {
|
|
15900
|
-
return (hAsync("div", { key: '
|
|
16385
|
+
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")))))));
|
|
15901
16386
|
}
|
|
15902
16387
|
static get cmpMeta() { return {
|
|
15903
16388
|
"$flags$": 0,
|
|
@@ -16115,7 +16600,7 @@ class TokenTypography {
|
|
|
16115
16600
|
registerInstance(this, hostRef);
|
|
16116
16601
|
}
|
|
16117
16602
|
render() {
|
|
16118
|
-
return (hAsync("section", { key: '
|
|
16603
|
+
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)
|
|
16119
16604
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
16120
16605
|
.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: {
|
|
16121
16606
|
fontFamily: typography.families.sans,
|
|
@@ -16239,6 +16724,7 @@ registerComponents([
|
|
|
16239
16724
|
EdsRating,
|
|
16240
16725
|
EdsSectionCore,
|
|
16241
16726
|
EdsSectionHeading,
|
|
16727
|
+
EdsSidebar,
|
|
16242
16728
|
EdsSocialNetworks,
|
|
16243
16729
|
EdsSpinner,
|
|
16244
16730
|
EdsSplashScreen,
|