@ebrains/components 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/clone-846acfdd.js +5 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components-section.cjs.entry.js +4 -6
- package/dist/cjs/components.cjs.js +2 -2
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/download-9d17d025.js +20 -0
- package/dist/cjs/edit-ff5b84d8.js +5 -0
- package/dist/cjs/{eds-avatar_26.cjs.entry.js → eds-accordion_34.cjs.entry.js} +3597 -203
- package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
- package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +9 -5
- package/dist/cjs/eds-frame.cjs.entry.js +2 -2
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +9 -4
- package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-clone.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-download.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-edit.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-view.cjs.entry.js +18 -0
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +3 -3
- package/dist/cjs/eds-pie.cjs.entry.js +1 -1
- package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-social-networks.cjs.entry.js +3 -5
- package/dist/cjs/eds-spinner.cjs.entry.js +2 -2
- package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
- package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
- package/dist/cjs/eds-trl.cjs.entry.js +2 -2
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-88c8039f.js → index-0249a32e.js} +19 -32
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/svg-repository.cjs.entry.js +10 -22
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/cjs/view-80d5c6c8.js +5 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +1 -1
- package/dist/collection/components/eds-alert/eds-alert.js +30 -3
- 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.css +4 -0
- package/dist/collection/components/eds-button/eds-button.js +19 -8
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-charts/eds-gauge/eds-gauge.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +2 -2
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-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 +36 -0
- 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 +36 -0
- 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 +1 -1
- 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 +36 -0
- 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 +3 -2
- package/dist/collection/components/eds-link/eds-link.js +27 -7
- package/dist/collection/components/eds-link/eds-link.stories.js +3 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-npm.stories.js +36 -0
- package/dist/collection/components/eds-nps/eds-nps.css +73 -0
- package/dist/collection/components/eds-nps/eds-nps.js +163 -0
- package/dist/collection/components/eds-pagination/eds-pagination.css +16 -0
- package/dist/collection/components/eds-pagination/eds-pagination.js +131 -51
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +25 -3
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.css +15 -5
- package/dist/collection/components/eds-switch/eds-switch.js +26 -4
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +42 -39
- package/dist/collection/components/eds-table/eds-table.stories.js +1 -1
- 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-tooltip/eds-tooltip.css +5 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
- package/dist/collection/components/eds-trl/eds-trl.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 +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-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +13 -6
- package/dist/collection/shared-ui/eds-form/eds-form.css +72 -0
- package/dist/collection/shared-ui/eds-form/eds-form.js +110 -5
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +33 -4
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +50 -16
- package/dist/collection/shared-ui/eds-header/eds-header.js +1 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +20 -8
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -20
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -3
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +6 -7
- package/dist/collection/shared-ui/eds-steps/eds-steps.css +136 -92
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +234 -40
- package/dist/collection/shared-ui/eds-steps/eds-steps.stories.js +71 -7
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +44 -33
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +195 -19
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.stories.js +65 -4
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +26 -5
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +89 -31
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +35 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/collection/utils/eds-form/formValidators.js +34 -0
- package/dist/components/clone.js +3 -0
- package/dist/components/components-section.js +3 -5
- package/dist/components/components.css +7 -12
- 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/download.js +18 -0
- package/dist/components/edit.js +1 -1
- package/dist/components/eds-accordion2.js +1 -1
- package/dist/components/eds-alert2.js +21 -5
- 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 +21 -10
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-tool.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-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 +8 -4
- package/dist/components/eds-form.js +100 -24
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +8 -3
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-header.js +1 -1
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-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.d.ts +11 -0
- package/dist/components/eds-icon-clone.js +33 -0
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-download.d.ts +11 -0
- package/dist/components/eds-icon-download.js +33 -0
- 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 +1 -1
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.d.ts +11 -0
- package/dist/components/eds-icon-view.js +33 -0
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +4 -3
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +27 -7
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps.d.ts +11 -0
- package/dist/components/eds-nps.js +6 -0
- package/dist/components/eds-nps2.js +120 -0
- package/dist/components/eds-pagination2.js +120 -53
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +25 -3
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-social-networks2.js +2 -4
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +35 -13
- package/dist/components/eds-steps2.js +54 -35
- package/dist/components/eds-switch.js +27 -5
- package/dist/components/eds-table2.js +74 -41
- package/dist/components/eds-tabs.js +90 -32
- 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-tooltip.js +1 -50
- package/dist/components/eds-tooltip2.js +52 -0
- package/dist/components/eds-trl.js +37 -25
- package/dist/components/eds-user.js +12 -10
- package/dist/components/incorrect-use-of-colors.js +9 -3
- package/dist/components/logo-space.js +35 -23
- 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-0452fe52.entry.js +1 -0
- package/dist/components/p-04f288b1.entry.js +1 -0
- package/dist/components/p-06951aa3.entry.js +1 -0
- package/dist/components/p-0da7d1c9.js +1 -0
- package/dist/components/p-101392d0.entry.js +1 -0
- package/dist/components/{p-ed4d9bf5.entry.js → p-171f8e6b.entry.js} +1 -1
- package/dist/components/p-19e69c03.entry.js +1 -0
- package/dist/components/{p-e2e7250a.entry.js → p-1b032aa8.entry.js} +1 -1
- package/dist/components/{p-adbd0d7b.entry.js → p-265150a1.entry.js} +1 -1
- package/dist/components/p-27c4a06e.js +1 -0
- package/dist/components/p-28ec52a7.entry.js +1 -0
- package/dist/components/p-2f712656.entry.js +1 -0
- package/dist/components/p-3097c321.entry.js +1 -0
- package/dist/components/p-36db7db0.entry.js +1 -0
- package/dist/components/p-38b0ea8d.entry.js +1 -0
- package/dist/components/p-3b551ade.entry.js +9 -0
- package/dist/components/p-3fa4a703.entry.js +1 -0
- package/dist/components/p-3fa54526.entry.js +1 -0
- package/dist/components/p-42680319.entry.js +1 -0
- package/dist/components/{p-6d3b5818.entry.js → p-4c618a35.entry.js} +1 -1
- package/dist/components/p-4d207d0e.entry.js +1 -0
- package/dist/components/p-4db384d9.entry.js +1 -0
- package/dist/components/p-4eb2cf7f.js +1 -0
- package/dist/components/{p-70e8e66f.entry.js → p-50d7eed9.entry.js} +1 -1
- package/dist/components/p-5367bb59.entry.js +1 -0
- package/dist/components/{p-356846cd.entry.js → p-5479e43b.entry.js} +1 -1
- package/dist/components/{p-3e183368.entry.js → p-58c8c0d7.entry.js} +1 -1
- package/dist/components/p-5a88cdc2.entry.js +1 -0
- package/dist/components/p-5b574bb2.entry.js +1 -0
- package/dist/components/p-5ec9fc29.entry.js +1 -0
- package/dist/components/p-5f350866.entry.js +1 -0
- package/dist/components/p-5ff10b6f.entry.js +1 -0
- package/dist/components/p-6420754e.entry.js +1 -0
- package/dist/components/{p-b073d78f.entry.js → p-64b7a6fc.entry.js} +1 -1
- package/dist/components/{p-02d94d2d.entry.js → p-6614881d.entry.js} +1 -1
- package/dist/components/p-68a2cd95.entry.js +1 -0
- package/dist/components/{p-f6ca2aa6.entry.js → p-6a2d1e11.entry.js} +1 -1
- package/dist/components/p-6b988c76.entry.js +1 -0
- package/dist/components/p-7032a73b.entry.js +1 -0
- package/dist/components/p-7272628d.entry.js +1 -0
- package/dist/components/p-78c348e2.entry.js +1 -0
- package/dist/components/{p-8c0b0121.entry.js → p-79afd8aa.entry.js} +1 -1
- package/dist/components/p-7a5623b5.entry.js +1 -0
- package/dist/components/p-7fa46b01.entry.js +1 -0
- package/dist/components/p-86eff0cb.entry.js +1 -0
- package/dist/components/p-870001ee.entry.js +1 -0
- package/dist/components/p-88eeaeca.entry.js +1 -0
- package/dist/components/p-8b7910d2.entry.js +1 -0
- package/dist/components/p-8cf98230.entry.js +1 -0
- package/dist/components/{p-e35e156d.entry.js → p-8eced026.entry.js} +1 -1
- package/dist/components/{p-0687532c.entry.js → p-8edd07db.entry.js} +1 -1
- package/dist/components/p-8ef68d8a.entry.js +1 -0
- package/dist/components/p-8fb1eb43.entry.js +1 -0
- package/dist/components/p-9261d27c.entry.js +1 -0
- package/dist/components/{p-9d18d7b1.entry.js → p-94a223ec.entry.js} +1 -1
- package/dist/components/{p-1f5c19b9.entry.js → p-9c1c5e8d.entry.js} +1 -1
- package/dist/components/p-9cb14b1f.entry.js +1 -0
- package/dist/components/{p-024789cc.entry.js → p-a5fd4fc9.entry.js} +1 -1
- package/dist/components/p-a6586448.entry.js +1 -0
- package/dist/components/p-ad7d603b.entry.js +1 -0
- package/dist/components/p-b24ef7f7.entry.js +1 -0
- package/dist/components/{p-66f4cdd9.entry.js → p-b31babda.entry.js} +1 -1
- package/dist/components/p-baa2df0b.entry.js +1 -0
- package/dist/components/p-bfe9d934.entry.js +1 -0
- package/dist/components/p-c1943b8f.entry.js +1 -0
- package/dist/components/{p-b3a40663.entry.js → p-c66f4dd8.entry.js} +1 -1
- package/dist/components/{p-4e473b4e.entry.js → p-d1927da7.entry.js} +1 -1
- package/dist/components/{p-543f2347.entry.js → p-d2e485a1.entry.js} +1 -1
- package/dist/components/{p-794f11e7.entry.js → p-d3391236.entry.js} +1 -1
- package/dist/components/p-da0e9a75.entry.js +1 -0
- package/dist/components/p-dbe11048.entry.js +1 -0
- package/dist/components/{p-773a119a.entry.js → p-dd28ab38.entry.js} +1 -1
- package/dist/components/p-e42ac312.entry.js +1 -0
- package/dist/components/p-e6c3f38c.entry.js +1 -0
- package/dist/components/p-e7c37e5b.entry.js +1 -0
- package/dist/components/p-e8374410.entry.js +1 -0
- package/dist/components/p-e90da4ba.entry.js +1 -0
- package/dist/components/p-e9cd3c4b.entry.js +1 -0
- package/dist/components/p-ebd59113.entry.js +1 -0
- package/dist/components/{p-28ae3f3a.js → p-efbc374c.js} +2 -2
- package/dist/components/p-f092b706.entry.js +1 -0
- package/dist/components/p-f29e7506.entry.js +1 -0
- package/dist/components/p-f2abe4d8.js +1 -0
- package/dist/components/p-f40dd50d.entry.js +1 -0
- package/dist/components/p-fc099d59.entry.js +1 -0
- package/dist/components/p-fda3da92.entry.js +1 -0
- package/dist/components/{p-2839899a.entry.js → p-ff902c98.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 +41 -41
- 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/view.js +3 -0
- package/dist/esm/clone-dab56639.js +3 -0
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components-section.entry.js +4 -6
- package/dist/esm/components.js +3 -3
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/docs-palettes.entry.js +2 -2
- package/dist/esm/docs-tokens.entry.js +2 -2
- package/dist/esm/download-47746956.js +18 -0
- package/dist/esm/edit-3893a517.js +3 -0
- package/dist/esm/{eds-avatar_26.entry.js → eds-accordion_34.entry.js} +3591 -205
- package/dist/esm/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-card-desc_2.entry.js +3 -3
- package/dist/esm/eds-card-generic.entry.js +1 -1
- package/dist/esm/eds-card-project.entry.js +2 -2
- package/dist/esm/eds-card-section.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +2 -2
- package/dist/esm/eds-card-tool.entry.js +2 -2
- package/dist/esm/eds-cookies-preference.entry.js +2 -2
- package/dist/esm/eds-feedback.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +9 -5
- package/dist/esm/eds-frame.entry.js +2 -2
- package/dist/esm/eds-fullscreen-menu.entry.js +9 -4
- package/dist/esm/eds-gauge.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bin.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-bookmark.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-clone.entry.js +14 -0
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-download.entry.js +14 -0
- package/dist/esm/eds-icon-draft.entry.js +2 -2
- package/dist/esm/eds-icon-edit.entry.js +3 -3
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-external.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-minus.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-paper.entry.js +2 -2
- package/dist/esm/eds-icon-plus.entry.js +2 -2
- package/dist/esm/eds-icon-portal.entry.js +2 -2
- package/dist/esm/eds-icon-private.entry.js +2 -2
- package/dist/esm/eds-icon-public.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-star.entry.js +2 -2
- package/dist/esm/eds-icon-start.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
- package/dist/esm/eds-icon-tutorial.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-unknown.entry.js +2 -2
- package/dist/esm/eds-icon-updown.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-view.entry.js +14 -0
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +3 -3
- package/dist/esm/eds-pie.entry.js +1 -1
- package/dist/esm/eds-progress-bar.entry.js +2 -2
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-social-networks.entry.js +3 -5
- package/dist/esm/eds-spinner.entry.js +2 -2
- package/dist/esm/eds-splash-screen.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +2 -2
- package/dist/esm/eds-toast-manager.entry.js +2 -2
- package/dist/esm/eds-trl.entry.js +2 -2
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-fdb33359.js → index-e84b871c.js} +19 -32
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +2 -2
- package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
- package/dist/esm/logo-variations-tabs.entry.js +2 -2
- package/dist/esm/logo-wrong-usage.entry.js +2 -2
- package/dist/esm/svg-repository.entry.js +9 -21
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/esm/view-e900f2d4.js +3 -0
- package/dist/hydrate/index.js +852 -327
- package/dist/hydrate/index.mjs +852 -327
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +3 -1
- package/dist/types/components/eds-alert/eds-alert.d.ts +6 -0
- package/dist/types/components/eds-button/eds-button.d.ts +1 -0
- package/dist/types/components/eds-icons/eds-icon-clone/eds-icon-clone.d.ts +10 -0
- package/dist/types/components/eds-icons/eds-icon-download/eds-icon-download.d.ts +10 -0
- package/dist/types/components/eds-icons/eds-icon-view/eds-icon-view.d.ts +10 -0
- package/dist/types/components/eds-link/eds-link.d.ts +1 -0
- package/dist/types/components/eds-nps/eds-npm.stories.d.ts +28 -0
- package/dist/types/components/eds-nps/eds-nps.d.ts +20 -0
- package/dist/types/components/eds-pagination/eds-pagination.d.ts +23 -2
- package/dist/types/components/eds-rating/eds-rating.d.ts +3 -1
- package/dist/types/components/eds-switch/eds-switch.d.ts +1 -0
- package/dist/types/components/eds-table/eds-table.d.ts +23 -8
- package/dist/types/components/eds-table/eds-table.stories.d.ts +7 -2
- package/dist/types/components.d.ts +421 -41
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -2
- package/dist/types/shared-ui/eds-form/eds-form.d.ts +18 -0
- package/dist/types/shared-ui/eds-form/eds-form.stories.d.ts +19 -0
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +44 -13
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -3
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +0 -2
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +1 -1
- package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +72 -24
- package/dist/types/shared-ui/eds-steps/eds-steps.stories.d.ts +58 -0
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +42 -19
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.stories.d.ts +33 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +7 -9
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -0
- package/dist/types/utils/eds-form/formValidators.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/edit-5714c144.js +0 -5
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -87
- package/dist/cjs/eds-alert.cjs.entry.js +0 -104
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -145
- package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -125
- package/dist/cjs/eds-switch.cjs.entry.js +0 -46
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -38
- package/dist/components/p-023bc47c.entry.js +0 -1
- package/dist/components/p-02df910c.entry.js +0 -1
- package/dist/components/p-0be79e08.entry.js +0 -1
- package/dist/components/p-0e74d8b4.entry.js +0 -1
- package/dist/components/p-11efb1d1.entry.js +0 -1
- package/dist/components/p-1791ce82.entry.js +0 -1
- package/dist/components/p-19d586e6.entry.js +0 -1
- package/dist/components/p-2679926c.entry.js +0 -1
- package/dist/components/p-2d1a7471.entry.js +0 -1
- package/dist/components/p-2ff16a39.entry.js +0 -1
- package/dist/components/p-32e18e48.entry.js +0 -1
- package/dist/components/p-38e99d4b.entry.js +0 -1
- package/dist/components/p-3a331c68.entry.js +0 -1
- package/dist/components/p-4088ae0e.entry.js +0 -1
- package/dist/components/p-4277fb1a.entry.js +0 -1
- package/dist/components/p-42a73db4.entry.js +0 -1
- package/dist/components/p-43468b0f.entry.js +0 -1
- package/dist/components/p-44055e68.entry.js +0 -1
- package/dist/components/p-4a5d0dcd.entry.js +0 -1
- package/dist/components/p-4a7412ec.entry.js +0 -1
- package/dist/components/p-4b88d84c.entry.js +0 -1
- package/dist/components/p-50f43dfd.entry.js +0 -1
- package/dist/components/p-562afa88.entry.js +0 -1
- package/dist/components/p-564431ad.entry.js +0 -1
- package/dist/components/p-5aa4065a.entry.js +0 -1
- package/dist/components/p-5ae1c931.entry.js +0 -1
- package/dist/components/p-634258e6.entry.js +0 -1
- package/dist/components/p-68f45098.entry.js +0 -1
- package/dist/components/p-73a44c48.entry.js +0 -1
- package/dist/components/p-73c74835.entry.js +0 -1
- package/dist/components/p-76905315.entry.js +0 -1
- package/dist/components/p-7dbe791f.entry.js +0 -1
- package/dist/components/p-7ec52188.entry.js +0 -1
- package/dist/components/p-7fc84bb2.js +0 -1
- package/dist/components/p-82559816.entry.js +0 -1
- package/dist/components/p-85683b18.entry.js +0 -1
- package/dist/components/p-8681e5d8.entry.js +0 -1
- package/dist/components/p-877d13d9.entry.js +0 -1
- package/dist/components/p-8dee879d.entry.js +0 -1
- package/dist/components/p-911b1c0b.entry.js +0 -1
- package/dist/components/p-93e6ba0f.entry.js +0 -1
- package/dist/components/p-960aa103.entry.js +0 -1
- package/dist/components/p-996005b7.entry.js +0 -1
- package/dist/components/p-9e53eca3.entry.js +0 -1
- package/dist/components/p-aa5e75b4.entry.js +0 -1
- package/dist/components/p-ae9393b6.entry.js +0 -1
- package/dist/components/p-af137162.entry.js +0 -1
- package/dist/components/p-b630e51a.entry.js +0 -1
- package/dist/components/p-bb9af709.entry.js +0 -1
- package/dist/components/p-c2dc3692.entry.js +0 -1
- package/dist/components/p-c91b4eec.entry.js +0 -1
- package/dist/components/p-caff3355.entry.js +0 -1
- package/dist/components/p-ce66ea37.entry.js +0 -1
- package/dist/components/p-d4f239d7.entry.js +0 -1
- package/dist/components/p-d7251d4d.entry.js +0 -1
- package/dist/components/p-deb9bbed.entry.js +0 -1
- package/dist/components/p-ed7696a2.entry.js +0 -1
- package/dist/components/p-f2416727.entry.js +0 -1
- package/dist/components/p-f28b5da7.entry.js +0 -1
- package/dist/components/p-f3839914.entry.js +0 -1
- package/dist/components/p-f42b6251.entry.js +0 -1
- package/dist/components/p-f7a31196.entry.js +0 -1
- package/dist/components/p-f973c83b.entry.js +0 -1
- package/dist/components/p-fe167c78.entry.js +0 -9
- package/dist/esm/edit-1dc8d11b.js +0 -3
- package/dist/esm/eds-accordion.entry.js +0 -83
- package/dist/esm/eds-alert.entry.js +0 -100
- package/dist/esm/eds-breadcrumb.entry.js +0 -141
- package/dist/esm/eds-code-block.entry.js +0 -2485
- package/dist/esm/eds-matomo-notice.entry.js +0 -121
- package/dist/esm/eds-switch.entry.js +0 -42
- package/dist/esm/eds-tooltip.entry.js +0 -34
- /package/dist/collection/shared-ui/eds-toast-manager/{eds-toast-manager.stories.js → eds-toast-manager.st.js} +0 -0
- /package/dist/types/shared-ui/eds-toast-manager/{eds-toast-manager.stories.d.ts → eds-toast-manager.st.d.ts} +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -127,7 +127,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
const NAMESPACE = 'components';
|
|
130
|
-
const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus:
|
|
130
|
+
const BUILD = /* components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
131
131
|
|
|
132
132
|
/*
|
|
133
133
|
Stencil Hydrate Platform v4.22.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1911,7 +1911,10 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1913
1913
|
{
|
|
1914
|
-
elm.attachShadow({
|
|
1914
|
+
elm.attachShadow({
|
|
1915
|
+
mode: "open",
|
|
1916
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1917
|
+
});
|
|
1915
1918
|
}
|
|
1916
1919
|
}
|
|
1917
1920
|
if (cmpMeta.$members$ != null) {
|
|
@@ -2331,7 +2334,7 @@ class ColorPrimaryPalette {
|
|
|
2331
2334
|
];
|
|
2332
2335
|
}
|
|
2333
2336
|
render() {
|
|
2334
|
-
return (hAsync("ul", { key: '
|
|
2337
|
+
return (hAsync("ul", { key: '80a1683bf07afddfc75d803735a7ebb6e175275e', 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
2338
|
}
|
|
2336
2339
|
static get cmpMeta() { return {
|
|
2337
2340
|
"$flags$": 0,
|
|
@@ -2403,7 +2406,7 @@ class ColorSecondaryPalette {
|
|
|
2403
2406
|
this.show = undefined;
|
|
2404
2407
|
}
|
|
2405
2408
|
render() {
|
|
2406
|
-
return (hAsync("ul", { key: '
|
|
2409
|
+
return (hAsync("ul", { key: '8897905f5b4e2a95b0697e90bc9b0476b9110c10', 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
2410
|
}
|
|
2408
2411
|
static get cmpMeta() { return {
|
|
2409
2412
|
"$flags$": 0,
|
|
@@ -2477,7 +2480,7 @@ class ColorSupportPalette {
|
|
|
2477
2480
|
return 'text-default';
|
|
2478
2481
|
}
|
|
2479
2482
|
render() {
|
|
2480
|
-
return (hAsync("ul", { key: '
|
|
2483
|
+
return (hAsync("ul", { key: 'f0ba44197d75db8e8c35b1c774fcb9a5cf57b955', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2481
2484
|
// compute once
|
|
2482
2485
|
const textClass = this.getTextColor(color.background);
|
|
2483
2486
|
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)))));
|
|
@@ -2522,7 +2525,7 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2522
2525
|
}
|
|
2523
2526
|
] }),
|
|
2524
2527
|
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
2525
|
-
hAsync("eds-code-block", { code: '<eds-button
|
|
2528
|
+
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
2526
2529
|
hAsync("h2", null, "Load the variables and styles"),
|
|
2527
2530
|
hAsync("p", null,
|
|
2528
2531
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -2540,9 +2543,7 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2540
2543
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
2541
2544
|
' ',
|
|
2542
2545
|
hAsync("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
2543
|
-
".
|
|
2544
|
-
hAsync("code", null, "head")),
|
|
2545
|
-
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })));
|
|
2546
|
+
".")));
|
|
2546
2547
|
|
|
2547
2548
|
const DocsInstallation = () => (hAsync("div", null,
|
|
2548
2549
|
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."),
|
|
@@ -2630,7 +2631,7 @@ class ComponentsSection {
|
|
|
2630
2631
|
}
|
|
2631
2632
|
}
|
|
2632
2633
|
render() {
|
|
2633
|
-
return hAsync("div", { key: '
|
|
2634
|
+
return hAsync("div", { key: 'a5c54560de99e81caaabafc4342522602ffe35a1', class: "container" }, this.renderContent());
|
|
2634
2635
|
}
|
|
2635
2636
|
static get cmpMeta() { return {
|
|
2636
2637
|
"$flags$": 0,
|
|
@@ -2708,7 +2709,7 @@ class CorrectUseOfColors {
|
|
|
2708
2709
|
registerInstance(this, hostRef);
|
|
2709
2710
|
}
|
|
2710
2711
|
render() {
|
|
2711
|
-
return (hAsync("div", { key: '
|
|
2712
|
+
return (hAsync("div", { key: '2ece8530e14e2578756ea7a4b7c6de47692ea437', class: "container" }, hAsync("p", { key: '2c1de740ce1273bff57584a89d126996b89a2585', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '3ce5ec41aff1fa649799bb1b24e2c78ce3d5709e', 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: 'f067c4b8812fb79ddd8302a6e469131bb5ca2540', 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: '07216a1e8bc1c8944d7cd266fd88fd779a47af2e', class: "flex" }, hAsync("div", { key: '86594b56c689f5013ad372f61591256b96983d1e', class: "w-full" }, hAsync("ul", { key: '890766f2292df846fddf466b950ad572bd012732', 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: 'c118abd619f14e52c4987a7994603ff61976a30a', class: "w-full" }, hAsync("ul", { key: '68ff730e9d179c7c29701f82f08d0086af20d00b', 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: '183bb8155e1584b04b493934edaa437d5cf4b783', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'a040517846fb066a35816d293ac04bc7872b3b26', 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: '386c5220437d6e6659488e7bef5b3ffe52caf4ee', 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: '0d63252310aaa25e69938f3347454094d8722071', class: "flex" }, hAsync("div", { key: 'e4afc567b16e421b47d60679f1ea35e6663d06c6', class: "w-full" }, hAsync("ul", { key: '479d5422ddc0fbc7bb7364fd004c91b6091eb23c', 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: 'cd991c92db354f80862ae1542396ea32b95c208a', class: "w-full" }, hAsync("ul", { key: 'b88178a45d9f371feab17accb2e7316ef8471380', 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: '3777953463dcb70490b0c2ce6c42dc2dcbbf1d30', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '13fe2cb15600d4c8d38cb62537222b7cc254b4ea', 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: 'e8156e3295aefedc79483b2f07abeb840980c76e', 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: 'a37aa06966858518d02108f3dc62666fdac001ad', class: "flex" }, hAsync("div", { key: '58dd02808202c7a3e1b09b9ca2dbd560e76cd336', class: "w-full" }, hAsync("ul", { key: '0db69e93ff385af493c2b4e6797108d3b20eb4ff', 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: 'f7135c48160aec5de8d7a8f550b416e54ea2c7e8', class: "w-full" }, hAsync("ul", { key: 'f0d5d0a49bcc9ea372266683b6c029b427db73bf', 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: '0a42fea17681992eec8f8c107b49cc90934730b4', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '17c3efd3b9a55bea075920137d2a58cb910115c1', 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: '60e5ed7491f4d1814973f6c9f7fbfe8b96626f9d', 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: '87b6b39208abc11441edc407a81208f4cda8bf49', class: "flex" }, hAsync("div", { key: 'a123aa0926649903d2167293788e02ebfced78b9', class: "w-full" }, hAsync("ul", { key: '2e791bb7cd1c15cccb46942e92a3fa9f6241742a', 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: '3b7effab5bce2b76d6ac73c8d2353eb0d69cb021', class: "w-full" }, hAsync("ul", { key: '2412301e05f2f711e5b48f86eff270795f363ee6', 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 } })))))))));
|
|
2712
2713
|
}
|
|
2713
2714
|
static get cmpMeta() { return {
|
|
2714
2715
|
"$flags$": 0,
|
|
@@ -2747,7 +2748,7 @@ class DocsContent {
|
|
|
2747
2748
|
}
|
|
2748
2749
|
}
|
|
2749
2750
|
render() {
|
|
2750
|
-
return hAsync("div", { key: '
|
|
2751
|
+
return hAsync("div", { key: '17148efe64117050084010b77d85de64bdfe2000', class: "container" }, this.renderContent());
|
|
2751
2752
|
}
|
|
2752
2753
|
static get cmpMeta() { return {
|
|
2753
2754
|
"$flags$": 0,
|
|
@@ -2780,7 +2781,7 @@ class DocsPalettes {
|
|
|
2780
2781
|
}
|
|
2781
2782
|
}
|
|
2782
2783
|
render() {
|
|
2783
|
-
return hAsync("div", { key: '
|
|
2784
|
+
return hAsync("div", { key: '8ef26f3be50f9083f1430ec0c9dbf5213ac1268e', class: "container" }, this.renderContent());
|
|
2784
2785
|
}
|
|
2785
2786
|
static get cmpMeta() { return {
|
|
2786
2787
|
"$flags$": 0,
|
|
@@ -2941,7 +2942,7 @@ class EdsAccordion {
|
|
|
2941
2942
|
return (hAsync("div", { key: '1abfd8bfea763bc10e6f17148dbc252d0c3ffdea', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2942
2943
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2943
2944
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2944
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '137a3311195d51f46c6677558219828e5f4d06b5', 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: '0fc6d493fd61726a53a8c4311bd183eb3ad5b270', class: "ml-auto" }, hAsync("eds-button", { key: '
|
|
2945
|
+
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '137a3311195d51f46c6677558219828e5f4d06b5', 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: '0fc6d493fd61726a53a8c4311bd183eb3ad5b270', class: "ml-auto" }, hAsync("eds-button", { key: 'cb8182e05c5c11950c0e624ce6b11e27a4d506ab', 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: '084bfb116dcccadf7253ca8ac8de6a1e1d4aa41f', 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: 'c332a210fa4ce90f1974098ff790a7600dfb1721', id: "accordionSection", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '842bc3bc7a968ef5a428a97327f38253e8a32888', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-4`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '7c8fa8040da18cc2c128b42cdf9e75bfffe4c439', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '852837c0c8c9d8a36f6263f7a943f50d82563a3c' })))))));
|
|
2945
2946
|
}
|
|
2946
2947
|
get el() { return getElement(this); }
|
|
2947
2948
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3078,6 +3079,7 @@ const alertStyles = cva(['w-full bg-dark'], {
|
|
|
3078
3079
|
class EdsAlert {
|
|
3079
3080
|
constructor(hostRef) {
|
|
3080
3081
|
registerInstance(this, hostRef);
|
|
3082
|
+
this.edsalert = createEvent(this, "edsalert", 7);
|
|
3081
3083
|
this.message = undefined;
|
|
3082
3084
|
this.pressableLabel = undefined;
|
|
3083
3085
|
this.pressableUrl = undefined;
|
|
@@ -3090,6 +3092,11 @@ class EdsAlert {
|
|
|
3090
3092
|
this.withBtn = Boolean(this.pressableLabel);
|
|
3091
3093
|
}
|
|
3092
3094
|
componentDidLoad() {
|
|
3095
|
+
// Focus the alert container for immediate screen reader announcement
|
|
3096
|
+
/*if (this.intent === 'error' || this.intent === 'warning') {
|
|
3097
|
+
this.el.shadowRoot?.querySelector('[role="alert"]')?.setAttribute('tabindex', '-1');
|
|
3098
|
+
(this.el.shadowRoot?.querySelector('[role="alert"]') as HTMLElement)?.focus();
|
|
3099
|
+
}*/
|
|
3093
3100
|
var _a;
|
|
3094
3101
|
// Query for the 'eds-link' element inside the shadow root.
|
|
3095
3102
|
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
@@ -3106,14 +3113,18 @@ class EdsAlert {
|
|
|
3106
3113
|
});
|
|
3107
3114
|
linkElement.dispatchEvent(event);
|
|
3108
3115
|
}
|
|
3116
|
+
handleAction() {
|
|
3117
|
+
// Emit the alertAction event for parent components to handle
|
|
3118
|
+
this.edsalert.emit();
|
|
3119
|
+
}
|
|
3109
3120
|
render() {
|
|
3110
|
-
|
|
3121
|
+
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3122
|
+
return (hAsync("div", { key: '2d22944e7ae86cf2523c194e20215a3d986083d9', class: alertStyles({
|
|
3111
3123
|
intent: this.intent,
|
|
3112
3124
|
brd: this.brd,
|
|
3113
3125
|
direction: this.direction,
|
|
3114
3126
|
withBtn: this.withBtn
|
|
3115
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
3116
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3127
|
+
}), 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: 'b6c22446b0d87fb01a3cb882fe205ef48ea60b05', id: "alert-message", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && (hAsync("div", { key: '8414820eb7b65c83459cfb90adef3ea696e42444', 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() }))))));
|
|
3117
3128
|
}
|
|
3118
3129
|
get el() { return getElement(this); }
|
|
3119
3130
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3164,7 +3175,7 @@ class EdsAppRoot {
|
|
|
3164
3175
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3165
3176
|
}
|
|
3166
3177
|
render() {
|
|
3167
|
-
return (hAsync("div", { key: '
|
|
3178
|
+
return (hAsync("div", { key: '01c80f8c47f13066a4b9e6978951c2a264efbd15' }, hAsync("eds-splash-screen", { key: 'bb17fc106515c71c7d70196a933301987c69ae4b', inverse: true, initPromise: this.combinedInitPromise }), hAsync("eds-login", { key: 'dbedc547296adc5ca8c9c9ff3e7c85e33e104e92', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), hAsync("main", { key: '24ce16d73eb316e5fdbc0a3bdd16b44cc6a740a4' }, this.isAuthenticated ? hAsync("h1", null, "Welcome, authenticated user!") : hAsync("h1", null, "Please log in."))));
|
|
3168
3179
|
}
|
|
3169
3180
|
static get cmpMeta() { return {
|
|
3170
3181
|
"$flags$": 9,
|
|
@@ -3247,7 +3258,7 @@ class EdsAvatar {
|
|
|
3247
3258
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3248
3259
|
*/
|
|
3249
3260
|
render() {
|
|
3250
|
-
return (hAsync("div", { key: '
|
|
3261
|
+
return (hAsync("div", { key: '34e86e50b1176efd8ae0cd9b30cd3823527d7eee', 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))));
|
|
3251
3262
|
}
|
|
3252
3263
|
static get style() { return EdsAvatarStyle0; }
|
|
3253
3264
|
static get cmpMeta() { return {
|
|
@@ -3278,7 +3289,7 @@ class EdsBlockBreak {
|
|
|
3278
3289
|
this.inverse = false;
|
|
3279
3290
|
}
|
|
3280
3291
|
render() {
|
|
3281
|
-
return hAsync("hr", { key: '
|
|
3292
|
+
return hAsync("hr", { key: '688e11c730af1193f28db196cd144c6dd2efc3c6', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3282
3293
|
}
|
|
3283
3294
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3284
3295
|
static get cmpMeta() { return {
|
|
@@ -3438,7 +3449,7 @@ class EdsBreadcrumb {
|
|
|
3438
3449
|
*/
|
|
3439
3450
|
render() {
|
|
3440
3451
|
const itemsToRender = this.getTruncatedItems();
|
|
3441
|
-
return (hAsync("nav", { key: '
|
|
3452
|
+
return (hAsync("nav", { key: '0625a234ec9f5095abbeaafa11e56bceb0432764', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '3898a4b048eca6c606a6948b26ec25a608cb908e', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3442
3453
|
const isLast = index === itemsToRender.length - 1;
|
|
3443
3454
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3444
3455
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3474,7 +3485,7 @@ class EdsBreadcrumb {
|
|
|
3474
3485
|
}; }
|
|
3475
3486
|
}
|
|
3476
3487
|
|
|
3477
|
-
const edsButtonCss = "*,\n::before,\n::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n}\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\n 1. Change the font styles in all browsers.\n 2. Remove the margin in Firefox and Safari.\n 3. Remove default padding in all browsers.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\n\n/*\n Remove the inheritance of text transform in Edge and Firefox.\n */\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n 1. Correct the inability to style clickable types in iOS and Safari.\n 2. Remove default button styles.\n */\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\np {\n margin: 0;\n}\n\n/*\n Set the default cursor for buttons.\n */\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\n Make sure disabled buttons don't get the pointer cursor.\n */\n:disabled {\n cursor: default;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n.f-body-01 {\n font-family: var(--f-body-01-fontFamily);\n font-weight: var(--f-body-01-fontWeight);\n font-size: var(--f-body-01-fontSize);\n line-height: var(--f-body-01-lineHeight);\n letter-spacing: var(--f-body-01-letterSpacing);\n}\n\n.f-body-02 {\n font-family: var(--f-body-02-fontFamily);\n font-weight: var(--f-body-02-fontWeight);\n font-size: var(--f-body-02-fontSize);\n line-height: var(--f-body-02-lineHeight);\n letter-spacing: var(--f-body-02-letterSpacing);\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.f-ui-02 {\n font-family: var(--f-ui-02-fontFamily);\n font-weight: var(--f-ui-02-fontWeight);\n font-size: var(--f-ui-02-fontSize);\n line-height: var(--f-ui-02-lineHeight);\n letter-spacing: var(--f-ui-02-letterSpacing);\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border-color: rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.loader {\n box-sizing: border-box;\n display: inline-block;\n height: 1rem;\n width: 1rem;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n.loader {\n animation: spin 1s linear infinite;\n border-radius: 9999px;\n border: 3px solid rgba(0, 0, 0, .3);\n border-bottom-color: #000;\n}\n\n/** region TRANSITIONS */\n.effect-color {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.effect-focus {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus:focus-visible {\n outline-style: solid;\n}\n\n.effect-focus-within {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus-within:focus-within {\n outline-style: solid;\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.sticky {\n position: sticky;\n}\n\n.inset-0 {\n inset: 0rem;\n}\n\n.inset-x-16 {\n left: 1rem;\n right: 1rem;\n}\n\n.-top-8 {\n top: -0.5rem;\n}\n\n.left-0 {\n left: 0rem;\n}\n\n.left-1\\/2 {\n left: 50%;\n}\n\n.left-4 {\n left: 0.25rem;\n}\n\n.left-\\[4px\\] {\n left: 4px;\n}\n\n.right-0 {\n right: 0rem;\n}\n\n.right-4 {\n right: 0.25rem;\n}\n\n.right-8 {\n right: 0.5rem;\n}\n\n.right-\\[6px\\] {\n right: 6px;\n}\n\n.top-0 {\n top: 0rem;\n}\n\n.top-1\\/2 {\n top: 50%;\n}\n\n.m-0 {\n margin: 0rem;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.-ml-16 {\n margin-left: -1rem;\n}\n\n.-mr-16 {\n margin-right: -1rem;\n}\n\n.ml-0 {\n margin-left: 0rem;\n}\n\n.ml-4 {\n margin-left: 0.25rem;\n}\n\n.ml-64 {\n margin-left: 4rem;\n}\n\n.ml-8 {\n margin-left: 0.5rem;\n}\n\n.ml-auto {\n margin-left: auto;\n}\n\n.mr-4 {\n margin-right: 0.25rem;\n}\n\n.mr-8 {\n margin-right: 0.5rem;\n}\n\n.mr-auto {\n margin-right: auto;\n}\n\n.block {\n display: block;\n}\n\n.inline-block {\n display: inline-block;\n}\n\n.inline {\n display: inline;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.hidden {\n display: none;\n}\n\n.h-20 {\n height: 1.25rem;\n}\n\n.h-24 {\n height: 1.5rem;\n}\n\n.h-36 {\n height: 2.25rem;\n}\n\n.h-44 {\n height: 2.75rem;\n}\n\n.h-auto {\n height: auto;\n}\n\n.h-full {\n height: 100%;\n}\n\n.\\!min-h-20 {\n min-height: 1.25rem !important;\n}\n\n.min-h-screen {\n min-height: 100vh;\n}\n\n.w-20 {\n width: 1.25rem;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-none {\n flex: none;\n}\n\n.grow {\n flex-grow: 1;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.resize {\n resize: both;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.space-x-2> :not([hidden])~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.overflow-x-auto {\n overflow-x: auto;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll;\n}\n\n.whitespace-nowrap {\n white-space: nowrap;\n}\n\n.break-words {\n overflow-wrap: break-word;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-full {\n border-radius: 9999px;\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.rounded-md {\n border-radius: 12px;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xxs {\n border-radius: 2px;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-\\[\\#0034CB\\] {\n --tw-border-opacity: 1;\n border-color: rgb(0 52 203 / var(--tw-border-opacity));\n}\n\n.border-\\[\\#d2d2d2\\] {\n --tw-border-opacity: 1;\n border-color: rgb(210 210 210 / var(--tw-border-opacity));\n}\n\n.border-softest {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.border-b-softer {\n border-bottom-color: rgba(0, 0, 0, .1);\n}\n\n.\\!bg-accent-dark {\n background-color: var(--green-600) !important;\n}\n\n.\\!bg-darker {\n background-color: var(--grey-400) !important;\n}\n\n.\\!bg-strong-dark {\n background-color: var(--grey-800) !important;\n}\n\n.bg-accent {\n background-color: var(--green-500);\n}\n\n.bg-accent-dark {\n background-color: var(--green-600);\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-overlay {\n background-color: rgba(0, 0, 0, 0.25);\n}\n\n.bg-strong {\n background-color: var(--grey-700);\n}\n\n.bg-strong-dark {\n background-color: var(--grey-800);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.p-12 {\n padding: 0.75rem;\n}\n\n.p-6 {\n padding: 0.375rem;\n}\n\n.p-8 {\n padding: 0.5rem;\n}\n\n.\\!px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-16 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pl-4 {\n padding-left: 0.25rem;\n}\n\n.pl-8 {\n padding-left: 0.5rem;\n}\n\n.pr-4 {\n padding-right: 0.25rem;\n}\n\n.pr-8 {\n padding-right: 0.5rem;\n}\n\n.\\!text-current {\n color: currentColor !important;\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-current {\n color: currentColor;\n}\n\n.text-default {\n color: var(--black);\n}\n\n.text-inverse {\n color: var(--white);\n}\n\n.text-lightest {\n color: var(--grey-500);\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-accent {\n --tw-shadow: 0px 0px 12px rgba(0, 201, 89, 0.6);\n --tw-shadow-colored: 0px 0px 12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.underline-offset-4 {\n text-underline-offset: 0.2em;\n}\n\n.\\@container {\n container-type: inline-size;\n}\n\n.after\\:effect-opacity::after {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.even\\:bg-inverse-softer:nth-child(even) {\n background-color: rgba(255, 255, 255, .15);\n}\n\n.invalid\\:text-lightest:invalid {\n color: var(--grey-500);\n}\n\n.focus-within\\:bg-transparent:focus-within {\n background-color: var(--transparent);\n}\n\n.hover\\:bg-accent-dark:hover {\n background-color: var(--green-600);\n}\n\n.hover\\:bg-dark:hover {\n background-color: var(--grey-300);\n}\n\n.hover\\:bg-darker:hover {\n background-color: var(--grey-400);\n}\n\n.hover\\:bg-default:hover {\n background-color: var(--grey-200);\n}\n\n.hover\\:bg-inverse:hover {\n background-color: var(--white);\n}\n\n.hover\\:bg-strong-dark:hover {\n background-color: var(--grey-800);\n}\n\n.hover\\:bg-transparent:hover {\n background-color: var(--transparent);\n}\n\n.hover\\:text-default:hover {\n color: var(--black);\n}\n\n.hover\\:text-lighter:hover {\n color: var(--grey-600);\n}\n\n.hover\\:\\!underline:hover {\n text-decoration-line: underline !important;\n}\n\n.hover\\:no-underline:hover {\n text-decoration-line: none;\n}\n\n.hover\\:shadow-hover:hover {\n --tw-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);\n --tw-shadow-colored: 0px 0px 16px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:shadow-none:focus {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.disabled\\:bg-dark:disabled {\n background-color: var(--grey-300);\n}\n\n.disabled\\:text-lightest:disabled {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:cursor-not-allowed[aria-disabled=\"true\"] {\n cursor: not-allowed;\n}\n\n.aria-disabled\\:\\!border-transparent[aria-disabled=\"true\"] {\n border-color: var(--transparent) !important;\n}\n\n.aria-disabled\\:bg-dark[aria-disabled=\"true\"] {\n background-color: var(--grey-300);\n}\n\n.aria-disabled\\:bg-transparent[aria-disabled=\"true\"] {\n background-color: var(--transparent);\n}\n\n.aria-disabled\\:text-light[aria-disabled=\"true\"] {\n color: var(--grey-700);\n}\n\n.aria-disabled\\:text-lightest[aria-disabled=\"true\"] {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:line-through[aria-disabled=\"true\"] {\n text-decoration-line: line-through;\n}\n\n.aria-disabled\\:shadow-none[aria-disabled=\"true\"] {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.aria-current-page\\:bg-darker[aria-current=\"page\"] {\n background-color: var(--grey-400);\n}\n\n.after\\:absolute::after {\n position: absolute;\n}\n\n.after\\:inset-0::after {\n inset: 0rem;\n}\n\n.after\\:inset-x-0::after {\n left: 0rem;\n right: 0rem;\n}\n\n.after\\:bottom-0::after {\n bottom: 0rem;\n}\n\n.after\\:left-16::after {\n left: 1rem;\n}\n\n.after\\:right-16::after {\n right: 1rem;\n}\n\n.after\\:z-10::after {\n z-index: 10;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:rounded-t-lg::after {\n border-top-left-radius: 16px;\n border-top-right-radius: 16px;\n}\n\n.after\\:border-3::after {\n border-width: 3px;\n}\n\n.after\\:border-b-2::after {\n border-bottom-width: 2px;\n}\n\n.after\\:\\!border-transparent::after {\n border-color: var(--transparent) !important;\n}\n\n.after\\:border-accent::after {\n border-color: var(--green-500);\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.after\\:opacity-0::after {\n opacity: 0;\n}\n\n.after\\:content-\\[\\'\\'\\]::after {\n --tw-content: '';\n content: var(--tw-content);\n}\n\n.hover\\:after\\:\\!border-transparent:hover::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:after\\:opacity-100:hover::after {\n opacity: 1;\n}\n\n.focus-visible\\:after\\:opacity-100:focus-visible::after {\n opacity: 1;\n}\n\n.aria-disabled\\:after\\:\\!border-transparent[aria-disabled=\"true\"]::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:before\\:opacity-100:hover::before {\n opacity: 1;\n}";
|
|
3488
|
+
const edsButtonCss = "*,\n::before,\n::after {\n box-sizing: border-box;\n border-width: 0;\n border-style: solid;\n border-color: currentColor;\n}\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\n 1. Change the font styles in all browsers.\n 2. Remove the margin in Firefox and Safari.\n 3. Remove default padding in all browsers.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n font-size: 100%;\n font-weight: inherit;\n line-height: inherit;\n letter-spacing: inherit;\n color: inherit;\n margin: 0;\n padding: 0;\n}\n\n/*\n Remove the inheritance of text transform in Edge and Firefox.\n */\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n 1. Correct the inability to style clickable types in iOS and Safari.\n 2. Remove default button styles.\n */\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button;\n /* 1 */\n background-color: transparent;\n /* 2 */\n background-image: none;\n /* 2 */\n}\n\np {\n margin: 0;\n}\n\n/*\n Set the default cursor for buttons.\n */\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\n Make sure disabled buttons don't get the pointer cursor.\n */\n:disabled {\n cursor: default;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n.f-body-01 {\n font-family: var(--f-body-01-fontFamily);\n font-weight: var(--f-body-01-fontWeight);\n font-size: var(--f-body-01-fontSize);\n line-height: var(--f-body-01-lineHeight);\n letter-spacing: var(--f-body-01-letterSpacing);\n}\n\n.f-body-02 {\n font-family: var(--f-body-02-fontFamily);\n font-weight: var(--f-body-02-fontWeight);\n font-size: var(--f-body-02-fontSize);\n line-height: var(--f-body-02-lineHeight);\n letter-spacing: var(--f-body-02-letterSpacing);\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.f-ui-02 {\n font-family: var(--f-ui-02-fontFamily);\n font-weight: var(--f-ui-02-fontWeight);\n font-size: var(--f-ui-02-fontSize);\n line-height: var(--f-ui-02-lineHeight);\n letter-spacing: var(--f-ui-02-letterSpacing);\n}\n\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border-color: rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.loader {\n box-sizing: border-box;\n display: inline-block;\n height: 1rem;\n width: 1rem;\n}\n\n@keyframes spin {\n to {\n transform: rotate(360deg);\n }\n}\n\n.loader {\n animation: spin 1s linear infinite;\n border-radius: 9999px;\n border: 3px solid rgba(0, 0, 0, .3);\n border-bottom-color: #000;\n}\n\n/** region TRANSITIONS */\n.effect-color {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.effect-focus {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus:focus-visible {\n outline-style: solid;\n}\n\n.effect-focus-within {\n outline-width: 3px;\n outline-offset: 2px;\n outline-color: var(--green-500);\n}\n\n.effect-focus-within:focus-within {\n outline-style: solid;\n}\n\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.pointer-events-none {\n pointer-events: none;\n}\n\n.static {\n position: static;\n}\n\n.fixed {\n position: fixed;\n}\n\n.absolute {\n position: absolute;\n}\n\n.relative {\n position: relative;\n}\n\n.sticky {\n position: sticky;\n}\n\n.inset-0 {\n inset: 0rem;\n}\n\n.inset-x-16 {\n left: 1rem;\n right: 1rem;\n}\n\n.-top-8 {\n top: -0.5rem;\n}\n\n.left-0 {\n left: 0rem;\n}\n\n.left-1\\/2 {\n left: 50%;\n}\n\n.left-4 {\n left: 0.25rem;\n}\n\n.left-\\[4px\\] {\n left: 4px;\n}\n\n.right-0 {\n right: 0rem;\n}\n\n.right-4 {\n right: 0.25rem;\n}\n\n.right-8 {\n right: 0.5rem;\n}\n\n.right-\\[6px\\] {\n right: 6px;\n}\n\n.top-0 {\n top: 0rem;\n}\n\n.top-1\\/2 {\n top: 50%;\n}\n\n.m-0 {\n margin: 0rem;\n}\n\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n\n.-ml-16 {\n margin-left: -1rem;\n}\n\n.-mr-16 {\n margin-right: -1rem;\n}\n\n.ml-0 {\n margin-left: 0rem;\n}\n\n.ml-4 {\n margin-left: 0.25rem;\n}\n\n.ml-64 {\n margin-left: 4rem;\n}\n\n.ml-8 {\n margin-left: 0.5rem;\n}\n\n.ml-auto {\n margin-left: auto;\n}\n\n.mr-4 {\n margin-right: 0.25rem;\n}\n\n.mr-8 {\n margin-right: 0.5rem;\n}\n\n.mr-auto {\n margin-right: auto;\n}\n\n.block {\n display: block;\n}\n\n.\\!block {\n display: block !important;\n}\n\n.inline-block {\n display: inline-block;\n}\n\n.inline {\n display: inline;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.hidden {\n display: none;\n}\n\n.h-20 {\n height: 1.25rem;\n}\n\n.h-24 {\n height: 1.5rem;\n}\n\n.h-36 {\n height: 2.25rem;\n}\n\n.h-44 {\n height: 2.75rem;\n}\n\n.h-auto {\n height: auto;\n}\n\n.h-full {\n height: 100%;\n}\n\n.\\!min-h-20 {\n min-height: 1.25rem !important;\n}\n\n.min-h-screen {\n min-height: 100vh;\n}\n\n.w-20 {\n width: 1.25rem;\n}\n\n.w-full {\n width: 100%;\n}\n\n.flex-none {\n flex: none;\n}\n\n.grow {\n flex-grow: 1;\n}\n\n.cursor-pointer {\n cursor: pointer;\n}\n\n.resize {\n resize: both;\n}\n\n.flex-row {\n flex-direction: row;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n\n.flex-col {\n flex-direction: column;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.space-x-2> :not([hidden])~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.125rem * var(--tw-space-x-reverse));\n margin-left: calc(0.125rem * calc(1 - var(--tw-space-x-reverse)));\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.overflow-x-auto {\n overflow-x: auto;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll;\n}\n\n.whitespace-nowrap {\n white-space: nowrap;\n}\n\n.break-words {\n overflow-wrap: break-word;\n}\n\n.rounded {\n border-radius: 0.25rem;\n}\n\n.rounded-full {\n border-radius: 9999px;\n}\n\n.rounded-lg {\n border-radius: 16px;\n}\n\n.rounded-md {\n border-radius: 12px;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xxs {\n border-radius: 2px;\n}\n\n.border {\n border-width: 1px;\n}\n\n.border-\\[\\#0034CB\\] {\n --tw-border-opacity: 1;\n border-color: rgb(0 52 203 / var(--tw-border-opacity));\n}\n\n.border-\\[\\#d2d2d2\\] {\n --tw-border-opacity: 1;\n border-color: rgb(210 210 210 / var(--tw-border-opacity));\n}\n\n.border-softest {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.border-b-softer {\n border-bottom-color: rgba(0, 0, 0, .1);\n}\n\n.\\!bg-accent-dark {\n background-color: var(--green-600) !important;\n}\n\n.\\!bg-darker {\n background-color: var(--grey-400) !important;\n}\n\n.\\!bg-strong-dark {\n background-color: var(--grey-800) !important;\n}\n\n.bg-accent {\n background-color: var(--green-500);\n}\n\n.bg-accent-dark {\n background-color: var(--green-600);\n}\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-overlay {\n background-color: rgba(0, 0, 0, 0.25);\n}\n\n.bg-strong {\n background-color: var(--grey-700);\n}\n\n.bg-strong-dark {\n background-color: var(--grey-800);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.p-12 {\n padding: 0.75rem;\n}\n\n.p-6 {\n padding: 0.375rem;\n}\n\n.p-8 {\n padding: 0.5rem;\n}\n\n.\\!px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n\n.px-16 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n\n.pl-4 {\n padding-left: 0.25rem;\n}\n\n.pl-8 {\n padding-left: 0.5rem;\n}\n\n.pr-4 {\n padding-right: 0.25rem;\n}\n\n.pr-8 {\n padding-right: 0.5rem;\n}\n\n.\\!text-current {\n color: currentColor !important;\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-current {\n color: currentColor;\n}\n\n.text-default {\n color: var(--black);\n}\n\n.text-inverse {\n color: var(--white);\n}\n\n.text-lightest {\n color: var(--grey-500);\n}\n\n.opacity-0 {\n opacity: 0;\n}\n\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-accent {\n --tw-shadow: 0px 0px 12px rgba(0, 201, 89, 0.6);\n --tw-shadow-colored: 0px 0px 12px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.underline-offset-4 {\n text-underline-offset: 0.2em;\n}\n\n.\\@container {\n container-type: inline-size;\n}\n\n.after\\:effect-opacity::after {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 300ms;\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.even\\:bg-inverse-softer:nth-child(even) {\n background-color: rgba(255, 255, 255, .15);\n}\n\n.invalid\\:text-lightest:invalid {\n color: var(--grey-500);\n}\n\n.focus-within\\:bg-transparent:focus-within {\n background-color: var(--transparent);\n}\n\n.hover\\:bg-accent-dark:hover {\n background-color: var(--green-600);\n}\n\n.hover\\:bg-dark:hover {\n background-color: var(--grey-300);\n}\n\n.hover\\:bg-darker:hover {\n background-color: var(--grey-400);\n}\n\n.hover\\:bg-default:hover {\n background-color: var(--grey-200);\n}\n\n.hover\\:bg-inverse:hover {\n background-color: var(--white);\n}\n\n.hover\\:bg-strong-dark:hover {\n background-color: var(--grey-800);\n}\n\n.hover\\:bg-transparent:hover {\n background-color: var(--transparent);\n}\n\n.hover\\:text-default:hover {\n color: var(--black);\n}\n\n.hover\\:text-lighter:hover {\n color: var(--grey-600);\n}\n\n.hover\\:\\!underline:hover {\n text-decoration-line: underline !important;\n}\n\n.hover\\:no-underline:hover {\n text-decoration-line: none;\n}\n\n.hover\\:shadow-hover:hover {\n --tw-shadow: 0px 0px 16px rgba(0, 0, 0, 0.2);\n --tw-shadow-colored: 0px 0px 16px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:shadow-none:focus {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n.disabled\\:cursor-not-allowed:disabled {\n cursor: not-allowed;\n}\n\n.disabled\\:bg-dark:disabled {\n background-color: var(--grey-300);\n}\n\n.disabled\\:text-lightest:disabled {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:cursor-not-allowed[aria-disabled=\"true\"] {\n cursor: not-allowed;\n}\n\n.aria-disabled\\:\\!border-transparent[aria-disabled=\"true\"] {\n border-color: var(--transparent) !important;\n}\n\n.aria-disabled\\:bg-dark[aria-disabled=\"true\"] {\n background-color: var(--grey-300);\n}\n\n.aria-disabled\\:bg-transparent[aria-disabled=\"true\"] {\n background-color: var(--transparent);\n}\n\n.aria-disabled\\:text-light[aria-disabled=\"true\"] {\n color: var(--grey-700);\n}\n\n.aria-disabled\\:text-lightest[aria-disabled=\"true\"] {\n color: var(--grey-500);\n}\n\n.aria-disabled\\:line-through[aria-disabled=\"true\"] {\n text-decoration-line: line-through;\n}\n\n.aria-disabled\\:shadow-none[aria-disabled=\"true\"] {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.aria-current-page\\:bg-darker[aria-current=\"page\"] {\n background-color: var(--grey-400);\n}\n\n.after\\:absolute::after {\n position: absolute;\n}\n\n.after\\:inset-0::after {\n inset: 0rem;\n}\n\n.after\\:inset-x-0::after {\n left: 0rem;\n right: 0rem;\n}\n\n.after\\:bottom-0::after {\n bottom: 0rem;\n}\n\n.after\\:left-16::after {\n left: 1rem;\n}\n\n.after\\:right-16::after {\n right: 1rem;\n}\n\n.after\\:z-10::after {\n z-index: 10;\n}\n\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n\n.after\\:rounded-t-lg::after {\n border-top-left-radius: 16px;\n border-top-right-radius: 16px;\n}\n\n.after\\:border-3::after {\n border-width: 3px;\n}\n\n.after\\:border-b-2::after {\n border-bottom-width: 2px;\n}\n\n.after\\:\\!border-transparent::after {\n border-color: var(--transparent) !important;\n}\n\n.after\\:border-accent::after {\n border-color: var(--green-500);\n}\n\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05);\n}\n\n.after\\:opacity-0::after {\n opacity: 0;\n}\n\n.after\\:content-\\[\\'\\'\\]::after {\n --tw-content: '';\n content: var(--tw-content);\n}\n\n.hover\\:after\\:\\!border-transparent:hover::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:after\\:opacity-100:hover::after {\n opacity: 1;\n}\n\n.focus-visible\\:after\\:opacity-100:focus-visible::after {\n opacity: 1;\n}\n\n.aria-disabled\\:after\\:\\!border-transparent[aria-disabled=\"true\"]::after {\n border-color: var(--transparent) !important;\n}\n\n.hover\\:before\\:opacity-100:hover::before {\n opacity: 1;\n}";
|
|
3478
3489
|
var EdsButtonStyle0 = edsButtonCss;
|
|
3479
3490
|
|
|
3480
3491
|
/**
|
|
@@ -3507,7 +3518,7 @@ class EdsButton {
|
|
|
3507
3518
|
secondary: 'border-inside border-inside-inverse text-inverse bg-strongest hover:bg-strong-dark',
|
|
3508
3519
|
tertiary: 'border-inside after:border-softest bg-dark hover:bg-darker',
|
|
3509
3520
|
ghost: 'border-inside hover:bg-darker',
|
|
3510
|
-
ghostInverse: 'border-inside hover:bg-dark'
|
|
3521
|
+
ghostInverse: 'border-inside text-lightest hover:bg-dark'
|
|
3511
3522
|
},
|
|
3512
3523
|
loading: {
|
|
3513
3524
|
true: 'pointer-events-none',
|
|
@@ -3617,8 +3628,7 @@ class EdsButton {
|
|
|
3617
3628
|
}
|
|
3618
3629
|
handleClick(event) {
|
|
3619
3630
|
var _a, _b;
|
|
3620
|
-
if (this.disabled) {
|
|
3621
|
-
// Prevent navigation if the link is disabled
|
|
3631
|
+
if (this.disabled || this.loading) {
|
|
3622
3632
|
event.preventDefault();
|
|
3623
3633
|
return;
|
|
3624
3634
|
}
|
|
@@ -3634,6 +3644,16 @@ class EdsButton {
|
|
|
3634
3644
|
this.triggerClick(); // Trigger the passed-in function
|
|
3635
3645
|
}
|
|
3636
3646
|
}
|
|
3647
|
+
handleKeyDown(event) {
|
|
3648
|
+
if (this.disabled || this.loading) {
|
|
3649
|
+
// Fix: check loading too
|
|
3650
|
+
return;
|
|
3651
|
+
}
|
|
3652
|
+
if (event.key === 'Enter' || (this.elementType === 'a' && event.key === ' ')) {
|
|
3653
|
+
event.preventDefault();
|
|
3654
|
+
this.handleClick(event);
|
|
3655
|
+
}
|
|
3656
|
+
}
|
|
3637
3657
|
render() {
|
|
3638
3658
|
const classes = this.button({
|
|
3639
3659
|
intent: this.intent,
|
|
@@ -3645,18 +3665,20 @@ class EdsButton {
|
|
|
3645
3665
|
iconSmall: this.iconSmall
|
|
3646
3666
|
});
|
|
3647
3667
|
const ElementType = this.elementType;
|
|
3648
|
-
|
|
3668
|
+
const isInteractive = !this.disabled && !this.loading;
|
|
3669
|
+
return (hAsync(Host, { key: '835cc81d3563abf1b5cb4c21165de1ef726d1e43' }, hAsync(ElementType, { key: 'df05b2b2152e707e5fdd6028c5f557097d7e2b04', 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 || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, this.label && (hAsync("span", { key: '27c7473403e7c1bfd3dfc270151d44dbb639ceb3', class: this.loading ? 'opacity-0' : '', "aria-hidden": this.loading ? 'true' : undefined }, this.label)), this.loading && (hAsync("span", { key: 'f52496884816bc299fb76c1afae5e4798bf642d2', class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, hAsync("span", { key: 'd42bf2c229f6956a1e0dbe64aa6c79ad5608ca5c', class: "loader", style: {
|
|
3649
3670
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3650
3671
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3651
3672
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3673
|
+
flex inline-flex items-center justify-center
|
|
3674
|
+
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
3675
|
+
`, icon: this.icon, "aria-hidden": "true" })) : null)));
|
|
3655
3676
|
}
|
|
3677
|
+
static get delegatesFocus() { return true; }
|
|
3656
3678
|
get el() { return getElement(this); }
|
|
3657
3679
|
static get style() { return EdsButtonStyle0; }
|
|
3658
3680
|
static get cmpMeta() { return {
|
|
3659
|
-
"$flags$":
|
|
3681
|
+
"$flags$": 25,
|
|
3660
3682
|
"$tagName$": "eds-button",
|
|
3661
3683
|
"$members$": {
|
|
3662
3684
|
"label": [1],
|
|
@@ -3704,7 +3726,7 @@ class EdsCardDesc {
|
|
|
3704
3726
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3705
3727
|
}
|
|
3706
3728
|
render() {
|
|
3707
|
-
return (hAsync("p", { key: '
|
|
3729
|
+
return (hAsync("p", { key: '302734334d08002f94c269977ebda7762fd19843', class: "text-light f-ui-03-light" }, hAsync("span", { key: '925f6cea41068b62d22902f33d80d700d0975f39', class: this.getTruncateClass() }, this.description)));
|
|
3708
3730
|
}
|
|
3709
3731
|
static get style() { return EdsCardDescStyle0; }
|
|
3710
3732
|
static get cmpMeta() { return {
|
|
@@ -4021,7 +4043,7 @@ class EdsCardProject {
|
|
|
4021
4043
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4022
4044
|
].join(' ');
|
|
4023
4045
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4024
|
-
return (hAsync("article", { key: '
|
|
4046
|
+
return (hAsync("article", { key: 'b4587158532ddc495a1cda29941b69934b93c7d3', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '96ab6c6b9f5e89db0ca29c678c0ff3d7643976de', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '6b1e39c1b3445c2eff43f03efc0d14307e044428', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: 'a5a2c5916c35dec35d261da0bf10a3905ce0452e', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '65f034e9ae8f7abbc37fb8fc3b03a440467c33f5', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '690f9157169e6344af51407fca8c25f7cf35ac74', 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: '651b1f0424b45348c854b7ec98e4dae1e4952bbd', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: 'b761288da975f05bb558b0e60767292c20e767e8', class: imageClasses }, hAsync("div", { key: 'bf027b4359774454d9f866f4bb17872a1c0ba724', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: '19b4c37dcbe7c463afd3ece46d5c348c681771c8', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
4025
4047
|
}
|
|
4026
4048
|
get el() { return getElement(this); }
|
|
4027
4049
|
static get cmpMeta() { return {
|
|
@@ -4110,7 +4132,7 @@ class EdsCardTags {
|
|
|
4110
4132
|
this.tags = [];
|
|
4111
4133
|
}
|
|
4112
4134
|
render() {
|
|
4113
|
-
return (hAsync("div", { key: '
|
|
4135
|
+
return (hAsync("div", { key: '2acec4bb37d05bb40910cdd198e2ffac9f16610d', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4114
4136
|
}
|
|
4115
4137
|
static get style() { return EdsCardTagsStyle0; }
|
|
4116
4138
|
static get cmpMeta() { return {
|
|
@@ -4174,7 +4196,7 @@ class EdsCardTitle {
|
|
|
4174
4196
|
render() {
|
|
4175
4197
|
//const Tag = this.getTag();
|
|
4176
4198
|
const Heading = this.headingLevel;
|
|
4177
|
-
return (hAsync(Heading, { key: '
|
|
4199
|
+
return (hAsync(Heading, { key: 'f3a72db6143e59ef04e589397126dcbf5b4d2d47', class: this.getTitleClass() }, hAsync("a", { key: '4fe1c9af922959b26824f01a0e5b52137c3854f2', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4178
4200
|
}
|
|
4179
4201
|
static get style() { return EdsCardTitleStyle0; }
|
|
4180
4202
|
static get cmpMeta() { return {
|
|
@@ -4262,7 +4284,7 @@ class EdsCardTool {
|
|
|
4262
4284
|
});
|
|
4263
4285
|
}
|
|
4264
4286
|
render() {
|
|
4265
|
-
return (hAsync("article", { key: '
|
|
4287
|
+
return (hAsync("article", { key: '2ae8e814b1509d167912424bb5093dba780f70e7', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '1d0e4312589a917bc96b2c2dd3455ad0edc54b25', "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: '70b074fa7755e20627c50383e1a04a684dd1bab6', 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: 'eb5b236057ef9044701d9662cdc2fa359d5c8053', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4266
4288
|
}
|
|
4267
4289
|
get el() { return getElement(this); }
|
|
4268
4290
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6774,7 +6796,7 @@ class EdsCodeBlock {
|
|
|
6774
6796
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6775
6797
|
}
|
|
6776
6798
|
render() {
|
|
6777
|
-
return (hAsync("div", { key: '
|
|
6799
|
+
return (hAsync("div", { key: '3cfaec27c58d05868313150f1a358ff64c8eafbd', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: 'ed91821385f30305348750dbfffec5fdd7b4dbb8', 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: '3e419585214883c878a8e84c440dbd29d590002d', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '051fa9c714d5c077d5d96ec9b92f8a744ec123bc', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: '707950ce89cb0c24b1afac42a8801d13659b6bab', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '59923dd4c16cfecafffa2edaaac5ef7579c3f128', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '8c708992c04029d71685ad8922383ecdda05ac3c', innerHTML: this.getHighlightedCode() })))));
|
|
6778
6800
|
}
|
|
6779
6801
|
get el() { return getElement(this); }
|
|
6780
6802
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6822,7 +6844,7 @@ class EdsCookiesPreference {
|
|
|
6822
6844
|
}
|
|
6823
6845
|
}
|
|
6824
6846
|
render() {
|
|
6825
|
-
return (hAsync("div", { key: '
|
|
6847
|
+
return (hAsync("div", { key: '030dd5db2221d5613fae0fb215cac7c20c815c2b' }, hAsync("eds-link", { key: '61d1bdf5e4299e65d980a08d25bec93b089f5330', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && hAsync("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
|
|
6826
6848
|
}
|
|
6827
6849
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6828
6850
|
static get cmpMeta() { return {
|
|
@@ -6958,14 +6980,14 @@ class EdsDropdown {
|
|
|
6958
6980
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6959
6981
|
*/
|
|
6960
6982
|
render() {
|
|
6961
|
-
return (hAsync("div", { key: '
|
|
6983
|
+
return (hAsync("div", { key: '31e8b1fd4e146cbcad4d74bd78dff1cd1e1950bd', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: '7021a0b0ff66780a324d7d9d1f6cff250ab64178', 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: '904fd2a7f727a8b3966eab6cf9ebdb0efa474ae0', role: "menu", class: {
|
|
6962
6984
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
6963
6985
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6964
6986
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6965
6987
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6966
6988
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6967
6989
|
'rounded-lg': this.rounded
|
|
6968
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6990
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'b416621930c7117775fef2ee91bdca0f660302f5' }))));
|
|
6969
6991
|
}
|
|
6970
6992
|
get host() { return getElement(this); }
|
|
6971
6993
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7047,7 +7069,7 @@ class EdsFeedback {
|
|
|
7047
7069
|
const HeadingTag = this.headingLevel;
|
|
7048
7070
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7049
7071
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7050
|
-
return (hAsync("div", { key: '
|
|
7072
|
+
return (hAsync("div", { key: '58d69e0acbaca740439666bb9da015eaa81d160a', class: "grid inline" }, hAsync(HeadingTag, { key: 'f7b066a56636e6555ace1b4947e00c293961b4ca', class: headingClass }, this.label), hAsync("p", { key: '9bfb1903e25ba6c1d53849874f3309845c1b86dc', class: "f-body-01 text-light" }, this.description), hAsync("eds-rating", { key: '785ea01ac3d2f40bb148d52c9c18698c89424175', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '16d5b1ab0ab56a5e320a878f8259dc643b533e16', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
7051
7073
|
}
|
|
7052
7074
|
get el() { return getElement(this); }
|
|
7053
7075
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7117,6 +7139,12 @@ class EdsFooter {
|
|
|
7117
7139
|
}
|
|
7118
7140
|
const shouldShow = window.scrollY > 100 && document.body.scrollHeight > window.innerHeight;
|
|
7119
7141
|
this.backBtn.style.opacity = shouldShow ? '1' : '0';
|
|
7142
|
+
this.backBtn.style.pointerEvents = shouldShow ? 'auto' : 'none';
|
|
7143
|
+
const btn = this.backBtn.querySelector('eds-button');
|
|
7144
|
+
if (btn) {
|
|
7145
|
+
btn.removeAttribute('aria-hidden');
|
|
7146
|
+
btn.setAttribute('tabindex', shouldShow ? '0' : '-1');
|
|
7147
|
+
}
|
|
7120
7148
|
}
|
|
7121
7149
|
toggleCookiesConsent() {
|
|
7122
7150
|
this.cookies.emit('toggle');
|
|
@@ -7125,13 +7153,11 @@ class EdsFooter {
|
|
|
7125
7153
|
* Renders the footer component with optional sections and elements,
|
|
7126
7154
|
* including social network links, a Horizon Europe funding acknowledgment, and
|
|
7127
7155
|
* legal links such as "Cookies Preferences" and copyright information.
|
|
7128
|
-
*
|
|
7129
|
-
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7130
7156
|
*/
|
|
7131
7157
|
render() {
|
|
7132
|
-
return (hAsync("footer", { key: '
|
|
7158
|
+
return (hAsync("footer", { key: '844c47f7e5119a577b03d1bf4bb598e891d7f8c7' }, 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: '0a6f03f13cf5513758740ce6f3d3357cac413826', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: '1751d052c529e46de47bbe09ef24621b546b1514', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '86b3c5fac384d1ae0f310d43f9a4492ce96866cf', class: "flex items-center gap-x-12" }, hAsync("a", { key: '7fed16c8a7bb7c15ea59438427987303a5a0ae14', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, hAsync("eds-img", { key: '491b2691d011359df1dc24a2408347574a893ca8', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), hAsync("div", { key: '50e5d853ee86066c932dd5fa3f04706d21b0d3aa' }, hAsync("div", { key: 'ba36e26f29e1aee7d7da4cd91235419b18ab813a', class: "f-ui-04 text-light" }, hAsync("p", { key: '120302d9cdad309da91bcd9f82e81f707f5f5b48' }, this.fundedBy), hAsync("div", { key: '222a27fb7f085750312654c11d03793f02e29676', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, hAsync("span", { key: '56db11dc4295c21c5e9d54cbc5568c5889f2dbb9', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", this.rightsReserved), this.enableCookiesSettings ? (hAsync("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
|
|
7133
7159
|
this.toggleCookiesConsent();
|
|
7134
|
-
} })) : null))), hAsync("div", { key: '
|
|
7160
|
+
} })) : null))), hAsync("div", { key: '221f15b6c92e91835dcc2efa3d2247b055690a22', 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)))));
|
|
7135
7161
|
}
|
|
7136
7162
|
get el() { return getElement(this); }
|
|
7137
7163
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7239,6 +7265,13 @@ function findRatingElement(formEl) {
|
|
|
7239
7265
|
}
|
|
7240
7266
|
return null;
|
|
7241
7267
|
}
|
|
7268
|
+
function findNpsElement(formEl) {
|
|
7269
|
+
const elements = Array.from(formEl.querySelectorAll('eds-nps'));
|
|
7270
|
+
for (const element of elements) {
|
|
7271
|
+
return element;
|
|
7272
|
+
}
|
|
7273
|
+
return null;
|
|
7274
|
+
}
|
|
7242
7275
|
/**
|
|
7243
7276
|
* Validates all fields and returns an object containing the errors and a flag indicating any errors.
|
|
7244
7277
|
*/
|
|
@@ -7248,6 +7281,7 @@ isFieldVisible) {
|
|
|
7248
7281
|
const errors = {};
|
|
7249
7282
|
let hasError = false;
|
|
7250
7283
|
parsedFields.forEach((field) => {
|
|
7284
|
+
var _a;
|
|
7251
7285
|
// Only validate fields that are visible.
|
|
7252
7286
|
if (!isFieldVisible(field, values)) {
|
|
7253
7287
|
// If a field is hidden, clear its error.
|
|
@@ -7283,6 +7317,29 @@ isFieldVisible) {
|
|
|
7283
7317
|
}
|
|
7284
7318
|
}
|
|
7285
7319
|
}
|
|
7320
|
+
// NPS type
|
|
7321
|
+
else if (field.type === 'nps') {
|
|
7322
|
+
const npsEl = findNpsElement(formEl);
|
|
7323
|
+
if (npsEl && npsEl.shadowRoot) {
|
|
7324
|
+
const raw = (_a = npsEl.shadowRoot
|
|
7325
|
+
.querySelector('eds-button[tabindex="0"]')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
|
|
7326
|
+
const parsed = raw !== null ? parseInt(raw, 10) : NaN;
|
|
7327
|
+
const value = Number.isInteger(parsed) && parsed >= 0 && parsed <= 10 ? parsed : NaN;
|
|
7328
|
+
if (isNaN(value)) {
|
|
7329
|
+
// eslint-disable-next-line
|
|
7330
|
+
if (field.required) {
|
|
7331
|
+
errors[field.name] = ['This field is required.'];
|
|
7332
|
+
hasError = true;
|
|
7333
|
+
}
|
|
7334
|
+
}
|
|
7335
|
+
}
|
|
7336
|
+
else if (field.required) {
|
|
7337
|
+
// No NPS component found but required
|
|
7338
|
+
errors[field.name] = ['This field is required.'];
|
|
7339
|
+
hasError = true;
|
|
7340
|
+
}
|
|
7341
|
+
return;
|
|
7342
|
+
}
|
|
7286
7343
|
else {
|
|
7287
7344
|
// For all other types, find the first matching element.
|
|
7288
7345
|
const inputEl = findFieldElement(formEl, field.name);
|
|
@@ -7334,7 +7391,7 @@ function getFormInitData({ initData, parsedFields, currentValues
|
|
|
7334
7391
|
return { updatedValues };
|
|
7335
7392
|
}
|
|
7336
7393
|
|
|
7337
|
-
const edsFormCss = ".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}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.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)}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.mt-20{margin-top:1.25rem}.mt-32{margin-top:2rem}.mb-32{margin-bottom:2rem}.pt-28{padding-top:1.75rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}";
|
|
7394
|
+
const edsFormCss = ".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}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-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-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.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-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.mt-20{margin-top:1.25rem}.mt-32{margin-top:2rem}.mb-32{margin-bottom:2rem}.pt-28{padding-top:1.75rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.shadow-hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.rounded-lg{border-radius:16px}.px-16{padding-left:1rem;padding-right:1rem}.pb-16{padding-bottom:1rem}.p-32{padding:2rem}";
|
|
7338
7395
|
var EdsFormStyle0 = edsFormCss;
|
|
7339
7396
|
|
|
7340
7397
|
/**
|
|
@@ -7354,13 +7411,17 @@ class EdsForm {
|
|
|
7354
7411
|
registerInstance(this, hostRef);
|
|
7355
7412
|
this.form = createEvent(this, "form", 7);
|
|
7356
7413
|
this.name = 'eds-form';
|
|
7414
|
+
this.title = undefined;
|
|
7415
|
+
this.description = undefined;
|
|
7357
7416
|
this.setFormUrl = true;
|
|
7358
7417
|
this.formBtn = true;
|
|
7359
7418
|
this.formBtnLabel = 'Submit';
|
|
7419
|
+
this.buttonIntent = 'primary';
|
|
7360
7420
|
this.errorMessage = 'Some fields in your form are incorrect.';
|
|
7361
7421
|
this.fields = [];
|
|
7362
7422
|
this.groups = [];
|
|
7363
7423
|
this.initData = {};
|
|
7424
|
+
this.formStyle = 'default';
|
|
7364
7425
|
this.values = {};
|
|
7365
7426
|
this.isSubmitting = false;
|
|
7366
7427
|
this.hasError = false;
|
|
@@ -7584,6 +7645,25 @@ class EdsForm {
|
|
|
7584
7645
|
message: `${field.name} updated`
|
|
7585
7646
|
});
|
|
7586
7647
|
}
|
|
7648
|
+
handleNPS(e, field) {
|
|
7649
|
+
const score = e.detail;
|
|
7650
|
+
this.values = Object.assign(Object.assign({}, this.values), { [field.name]: score });
|
|
7651
|
+
const newErrors = Object.assign({}, this.errors);
|
|
7652
|
+
if (field.required && score === null) {
|
|
7653
|
+
newErrors[field.name] = ['This field is required'];
|
|
7654
|
+
}
|
|
7655
|
+
else {
|
|
7656
|
+
delete newErrors[field.name];
|
|
7657
|
+
}
|
|
7658
|
+
this.errors = newErrors;
|
|
7659
|
+
this.hasError = Object.keys(newErrors).length > 0;
|
|
7660
|
+
this.form.emit({
|
|
7661
|
+
event: 'change',
|
|
7662
|
+
field: field.name,
|
|
7663
|
+
value: score,
|
|
7664
|
+
message: `${field.name} updated`
|
|
7665
|
+
});
|
|
7666
|
+
}
|
|
7587
7667
|
handleSubmit() {
|
|
7588
7668
|
var _a, _b;
|
|
7589
7669
|
if (this.isSubmitting) {
|
|
@@ -7639,10 +7719,15 @@ class EdsForm {
|
|
|
7639
7719
|
}
|
|
7640
7720
|
get groupedFields() {
|
|
7641
7721
|
const map = {};
|
|
7642
|
-
// initialize buckets for each group
|
|
7722
|
+
// initialize buckets for each declared group
|
|
7643
7723
|
this.parsedGroups.forEach((g) => (map[g.id] = []));
|
|
7724
|
+
// always keep an ungrouped bucket
|
|
7644
7725
|
map['__ungrouped'] = [];
|
|
7726
|
+
// only bucket fields that are currently visible
|
|
7645
7727
|
this.parsedFields.forEach((f) => {
|
|
7728
|
+
if (!this.isFieldVisible(f)) {
|
|
7729
|
+
return;
|
|
7730
|
+
}
|
|
7646
7731
|
const gid = f.groupId || '__ungrouped';
|
|
7647
7732
|
if (!map[gid]) {
|
|
7648
7733
|
map[gid] = [];
|
|
@@ -7652,7 +7737,7 @@ class EdsForm {
|
|
|
7652
7737
|
return map;
|
|
7653
7738
|
}
|
|
7654
7739
|
renderField(field) {
|
|
7655
|
-
var _a, _b;
|
|
7740
|
+
var _a, _b, _c;
|
|
7656
7741
|
if (!this.isFieldVisible(field)) {
|
|
7657
7742
|
return null;
|
|
7658
7743
|
}
|
|
@@ -7662,7 +7747,10 @@ class EdsForm {
|
|
|
7662
7747
|
const val = this.values[field.name] || 0;
|
|
7663
7748
|
return (hAsync("div", { class: "form-group rating-field", key: field.name }, hAsync("div", { class: "flex justify-between" }, field && (hAsync("eds-input-label", { name: `rating-${field.name}`, label: field.label, disabled: field.disabled, required: field.required }))), hAsync("eds-rating", { id: `rating-${field.name}`, "rating-type": field.ratingType, "rating-count": field.ratingCount, "selected-rating": val, onRating: (e) => this.handleRating(e, field) }), hAsync("div", { class: "mt-6" }, hAsync("eds-input-footer", { id: `${field.name}-footer`, name: field.name, message: field.message, "error-message": (_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.join('<br/>'), error: !!this.errors[field.name], link: field.link }))));
|
|
7664
7749
|
}
|
|
7665
|
-
|
|
7750
|
+
else if (field.type === 'nps') {
|
|
7751
|
+
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] }))));
|
|
7752
|
+
}
|
|
7753
|
+
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) }));
|
|
7666
7754
|
}
|
|
7667
7755
|
async getData() {
|
|
7668
7756
|
return this.makeFormData();
|
|
@@ -7671,9 +7759,13 @@ class EdsForm {
|
|
|
7671
7759
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7672
7760
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7673
7761
|
const buckets = this.groupedFields;
|
|
7674
|
-
|
|
7762
|
+
// build the shadow/bg classes if formStyle="shadow"
|
|
7763
|
+
const styleClasses = this.formStyle === 'shadow'
|
|
7764
|
+
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
7765
|
+
: '';
|
|
7766
|
+
return (hAsync("form", { key: 'ecf49eb81f18b444d059d3bdea4600f4ae594ea9', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, hAsync("div", { key: '65137fb770f274431c7906326cdf49e0fee73b18', class: "flex flex-col gap-y-24" }, this.title && (hAsync("span", { key: 'e4c5b4a7883c4569a657cc234f18f995480ec8df', role: "heading", class: "f-heading-04" }, this.title)), this.description && hAsync("span", { key: '65528e4600127f1cff4ce0e5be6f8a6bddc4c864', class: "f-body-02 text-light" }, this.description), hAsync("slot", { key: '6230035a050386763723c2b60bd5e81b912762d7' })), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
7675
7767
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7676
|
-
.map((g) => (hAsync("div", { class: "container mt-
|
|
7768
|
+
.map((g) => (hAsync("div", { class: "container 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: '8116d30248f8461a842365470da9915200531028', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (hAsync("div", { key: 'e2f1d3ca6a9f6a3b44c45e576150505c49e41dd1', class: "mt-32" }, hAsync("eds-button", { key: 'e312bf08b5db526c00497fafaa9476a225919aaf', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
7677
7769
|
}
|
|
7678
7770
|
get el() { return getElement(this); }
|
|
7679
7771
|
static get watchers() { return {
|
|
@@ -7686,13 +7778,17 @@ class EdsForm {
|
|
|
7686
7778
|
"$tagName$": "eds-form",
|
|
7687
7779
|
"$members$": {
|
|
7688
7780
|
"name": [1],
|
|
7781
|
+
"title": [1],
|
|
7782
|
+
"description": [1],
|
|
7689
7783
|
"setFormUrl": [4, "set-form-url"],
|
|
7690
7784
|
"formBtn": [4, "form-btn"],
|
|
7691
7785
|
"formBtnLabel": [1, "form-btn-label"],
|
|
7786
|
+
"buttonIntent": [1, "button-intent"],
|
|
7692
7787
|
"errorMessage": [1, "error-message"],
|
|
7693
7788
|
"fields": [1],
|
|
7694
7789
|
"groups": [1],
|
|
7695
7790
|
"initData": [16],
|
|
7791
|
+
"formStyle": [1, "form-style"],
|
|
7696
7792
|
"values": [32],
|
|
7697
7793
|
"isSubmitting": [32],
|
|
7698
7794
|
"hasError": [32],
|
|
@@ -7797,7 +7893,7 @@ class EdsFrame {
|
|
|
7797
7893
|
}
|
|
7798
7894
|
}
|
|
7799
7895
|
render() {
|
|
7800
|
-
return (hAsync("div", { key: '
|
|
7896
|
+
return (hAsync("div", { key: '665bc189cd905a55a9c6ac31eb2ec82853552f34', class: this.articleClasses() }, hAsync("div", { key: '6ad6183a94cd0cb26d3e5641c5e584e8afc652d7', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: '85bd9a7a4475ca3664cadf17ef1e729643c758f6', 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: '4799d59442cabb05f3bfea26a02db22a429266e6', 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 })))));
|
|
7801
7897
|
}
|
|
7802
7898
|
get el() { return getElement(this); }
|
|
7803
7899
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -7846,11 +7942,16 @@ class EdsFullscreenMenu {
|
|
|
7846
7942
|
this.isMenuOpen = false;
|
|
7847
7943
|
}
|
|
7848
7944
|
/**
|
|
7849
|
-
* Listens
|
|
7850
|
-
*
|
|
7945
|
+
* Listens on `body` for `toggleheadermenu` to open/close the menu.
|
|
7946
|
+
* The event detail should be a boolean (`true` = open, `false` = close).
|
|
7947
|
+
*
|
|
7948
|
+
* @example
|
|
7949
|
+
* ```js
|
|
7950
|
+
* document.body.dispatchEvent(new CustomEvent('toggleheadermenu', { detail: true }));
|
|
7951
|
+
* ```
|
|
7851
7952
|
*/
|
|
7852
7953
|
handleToggleMenu(event) {
|
|
7853
|
-
this.isMenuOpen = event.detail;
|
|
7954
|
+
this.isMenuOpen = !!event.detail;
|
|
7854
7955
|
}
|
|
7855
7956
|
/** Opens the menu */
|
|
7856
7957
|
openMenu() {
|
|
@@ -7961,7 +8062,7 @@ class EdsGauge {
|
|
|
7961
8062
|
const textStyle = {
|
|
7962
8063
|
fontSize: `${fontSize}px`
|
|
7963
8064
|
};
|
|
7964
|
-
return (hAsync("div", { key: '
|
|
8065
|
+
return (hAsync("div", { key: '798a7345ee5c3eeb59b5fe29a39827ce347dc756', 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: 'f255f7036a5b11de88fbb32648388905932eb56e', class: "absolute bg-inverse rounded-full", style: maskStyle }), hAsync("div", { key: '2a6dd1d88b32cb2c534f253703a8caa0099f2a43', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: 'ccbf1852d2f43b925f565c7117aca4a878e7f636', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
7965
8066
|
}
|
|
7966
8067
|
static get style() { return EdsGaugeStyle0; }
|
|
7967
8068
|
static get cmpMeta() { return {
|
|
@@ -8042,7 +8143,7 @@ class EdsHeader {
|
|
|
8042
8143
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8043
8144
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8044
8145
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8045
|
-
return (hAsync("header", { key: '
|
|
8146
|
+
return (hAsync("header", { key: 'a0f5bb7d9e850e9414db804019674d6bcbc8ea0b', class: `flex items-center justify-between relative z-10 ${classes}` }, hAsync("div", { key: '678d5b1583e6fa47c0eac8ce734e8ec34cd76ad9', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: '12ce9c42b266bbddfd75d2a8f0097708480a2490', type: logoType, href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: 'eb388b679d4e268dc7fc011bc2a6406a619287c8', 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: 'c3f8689bb257166c50dd678287c8ad4f54eb315a', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", 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: '3f689a811a60052393a795937a908cf7d0604cc6' }), this.menuEnabled && (hAsync("div", { key: '506b953b455b72085d83bdaafc6855992075ddbe', class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { key: '5b526affd813549a6142efab255d6486a5e2dd66', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
8046
8147
|
}
|
|
8047
8148
|
get hostEl() { return getElement(this); }
|
|
8048
8149
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -9977,7 +10078,11 @@ var start = `<svg fill="#000000" width="20" height="20" viewBox="0 0 1920 1920"
|
|
|
9977
10078
|
|
|
9978
10079
|
var draft = `<svg width="20" height="20" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path fill="none" d="M0 0L24 0 24 24 0 24z"></path> <path d="M20 2c.552 0 1 .448 1 1v3.757l-2 2V4H5v16h14v-2.758l2-2V21c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V3c0-.552.448-1 1-1h16zm1.778 6.808l1.414 1.414L15.414 18l-1.416-.002.002-1.412 7.778-7.778zM13 12v2H8v-2h5zm3-4v2H8V8h8z"></path> </g> </g></svg>`;
|
|
9979
10080
|
|
|
9980
|
-
var edit = `<svg width="20" height="20"
|
|
10081
|
+
var edit = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M12 3.99997H6C4.89543 3.99997 4 4.8954 4 5.99997V18C4 19.1045 4.89543 20 6 20H18C19.1046 20 20 19.1045 20 18V12M18.4142 8.41417L19.5 7.32842C20.281 6.54737 20.281 5.28104 19.5 4.5C18.7189 3.71895 17.4526 3.71895 16.6715 4.50001L15.5858 5.58575M18.4142 8.41417L12.3779 14.4505C12.0987 14.7297 11.7431 14.9201 11.356 14.9975L8.41422 15.5858L9.00257 12.6441C9.08001 12.2569 9.27032 11.9013 9.54951 11.6221L15.5858 5.58575M18.4142 8.41417L15.5858 5.58575" stroke="#000000" stroke-width="1.44" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>`;
|
|
10082
|
+
|
|
10083
|
+
var view = `<svg width="20" height="20" viewBox="-102.4 -102.4 1228.80 1228.80" xmlns="http://www.w3.org/2000/svg" fill="#000000" stroke="#000000" stroke-width="0.01024" transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path fill="#000000" d="M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"></path></g></svg>`;
|
|
10084
|
+
|
|
10085
|
+
var clone = `<svg fill="#000000" height="20" width="20" version="1.1" id="XMLID_158_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g id="clone"> <g> <path d="M24,24H6V6h18V24z M8,22h14V8H8V22z M4,18H0v-4h2v2h2V18z M2,12H0V6h2V12z M18,4h-2V2h-2V0h4V4z M2,4H0V0h4v2H2V4z M12,2 H6V0h6V2z"></path> </g> </g> </g></svg>`;
|
|
9981
10086
|
|
|
9982
10087
|
var svgs = /*#__PURE__*/Object.freeze({
|
|
9983
10088
|
__proto__: null,
|
|
@@ -10042,7 +10147,9 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10042
10147
|
bin: bin,
|
|
10043
10148
|
start: start,
|
|
10044
10149
|
draft: draft,
|
|
10045
|
-
edit: edit
|
|
10150
|
+
edit: edit,
|
|
10151
|
+
view: view,
|
|
10152
|
+
clone: clone
|
|
10046
10153
|
});
|
|
10047
10154
|
|
|
10048
10155
|
/**
|
|
@@ -10054,7 +10161,7 @@ class EdsIconArrowDiagonal {
|
|
|
10054
10161
|
this.class = '';
|
|
10055
10162
|
}
|
|
10056
10163
|
render() {
|
|
10057
|
-
return hAsync("span", { key: '
|
|
10164
|
+
return hAsync("span", { key: 'ef60986a4391dffcbb2a66109f217f3cec95a5fc', class: this.class, innerHTML: arrowDiagonal });
|
|
10058
10165
|
}
|
|
10059
10166
|
static get cmpMeta() { return {
|
|
10060
10167
|
"$flags$": 0,
|
|
@@ -10077,7 +10184,7 @@ class EdsIconArrowRight {
|
|
|
10077
10184
|
this.class = '';
|
|
10078
10185
|
}
|
|
10079
10186
|
render() {
|
|
10080
|
-
return hAsync("span", { key: '
|
|
10187
|
+
return hAsync("span", { key: '02288b13fa941076a5cc73fd3821bd78e206b2b3', class: this.class, innerHTML: arrowRight });
|
|
10081
10188
|
}
|
|
10082
10189
|
static get cmpMeta() { return {
|
|
10083
10190
|
"$flags$": 0,
|
|
@@ -10100,7 +10207,7 @@ class EdsIconBin {
|
|
|
10100
10207
|
this.class = '';
|
|
10101
10208
|
}
|
|
10102
10209
|
render() {
|
|
10103
|
-
return hAsync("span", { key: '
|
|
10210
|
+
return hAsync("span", { key: '5f314df297274d153638c96027c23632f47f6a3a', class: this.class, innerHTML: bin });
|
|
10104
10211
|
}
|
|
10105
10212
|
static get cmpMeta() { return {
|
|
10106
10213
|
"$flags$": 0,
|
|
@@ -10123,7 +10230,7 @@ class EdsIconBluesky {
|
|
|
10123
10230
|
this.class = '';
|
|
10124
10231
|
}
|
|
10125
10232
|
render() {
|
|
10126
|
-
return hAsync("span", { key: '
|
|
10233
|
+
return hAsync("span", { key: 'dd1f0043450c0970da5487a4c7c69859d3d97e2f', class: this.class, innerHTML: bluesky });
|
|
10127
10234
|
}
|
|
10128
10235
|
static get cmpMeta() { return {
|
|
10129
10236
|
"$flags$": 0,
|
|
@@ -10146,7 +10253,7 @@ class EdsIconBookmark {
|
|
|
10146
10253
|
this.class = '';
|
|
10147
10254
|
}
|
|
10148
10255
|
render() {
|
|
10149
|
-
return hAsync("span", { key: '
|
|
10256
|
+
return hAsync("span", { key: 'b7c85131bafc5d7d3fcf8fde09cf646b4dd3fdab', class: this.class, innerHTML: bookmark });
|
|
10150
10257
|
}
|
|
10151
10258
|
static get cmpMeta() { return {
|
|
10152
10259
|
"$flags$": 0,
|
|
@@ -10169,7 +10276,7 @@ class EdsIconChevronDown {
|
|
|
10169
10276
|
this.class = '';
|
|
10170
10277
|
}
|
|
10171
10278
|
render() {
|
|
10172
|
-
return hAsync("span", { key: '
|
|
10279
|
+
return hAsync("span", { key: '5547e9d98f781dc03e88a014f726b3a402e6425d', class: this.class, innerHTML: chevronDown });
|
|
10173
10280
|
}
|
|
10174
10281
|
static get cmpMeta() { return {
|
|
10175
10282
|
"$flags$": 0,
|
|
@@ -10192,7 +10299,7 @@ class EdsIconChevronLeft {
|
|
|
10192
10299
|
this.class = '';
|
|
10193
10300
|
}
|
|
10194
10301
|
render() {
|
|
10195
|
-
return hAsync("span", { key: '
|
|
10302
|
+
return hAsync("span", { key: '49925425ac1fd676eb96b973b1419f1f2aec1c81', class: this.class, innerHTML: chevronLeft });
|
|
10196
10303
|
}
|
|
10197
10304
|
static get cmpMeta() { return {
|
|
10198
10305
|
"$flags$": 0,
|
|
@@ -10215,7 +10322,7 @@ class EdsIconChevronRight {
|
|
|
10215
10322
|
this.class = '';
|
|
10216
10323
|
}
|
|
10217
10324
|
render() {
|
|
10218
|
-
return hAsync("span", { key: '
|
|
10325
|
+
return hAsync("span", { key: 'e9abd378d28d9e2251e530f97a11973ea558fbe2', class: this.class, innerHTML: chevronRight });
|
|
10219
10326
|
}
|
|
10220
10327
|
static get cmpMeta() { return {
|
|
10221
10328
|
"$flags$": 0,
|
|
@@ -10238,7 +10345,7 @@ class EdsIconChevronUp {
|
|
|
10238
10345
|
this.class = '';
|
|
10239
10346
|
}
|
|
10240
10347
|
render() {
|
|
10241
|
-
return hAsync("span", { key: '
|
|
10348
|
+
return hAsync("span", { key: 'f81db967bf78d75a4a8e572cda6427046603f0a6', class: this.class, innerHTML: chevronUp });
|
|
10242
10349
|
}
|
|
10243
10350
|
static get cmpMeta() { return {
|
|
10244
10351
|
"$flags$": 0,
|
|
@@ -10252,6 +10359,29 @@ class EdsIconChevronUp {
|
|
|
10252
10359
|
}; }
|
|
10253
10360
|
}
|
|
10254
10361
|
|
|
10362
|
+
/**
|
|
10363
|
+
* @internal
|
|
10364
|
+
*/
|
|
10365
|
+
class EdsIconClone {
|
|
10366
|
+
constructor(hostRef) {
|
|
10367
|
+
registerInstance(this, hostRef);
|
|
10368
|
+
this.class = '';
|
|
10369
|
+
}
|
|
10370
|
+
render() {
|
|
10371
|
+
return hAsync("span", { key: 'ebbda9e150151cc6e6d2677307287f2d2f1ab4db', class: this.class, innerHTML: clone });
|
|
10372
|
+
}
|
|
10373
|
+
static get cmpMeta() { return {
|
|
10374
|
+
"$flags$": 0,
|
|
10375
|
+
"$tagName$": "eds-icon-clone",
|
|
10376
|
+
"$members$": {
|
|
10377
|
+
"class": [1]
|
|
10378
|
+
},
|
|
10379
|
+
"$listeners$": undefined,
|
|
10380
|
+
"$lazyBundleId$": "-",
|
|
10381
|
+
"$attrsToReflect$": []
|
|
10382
|
+
}; }
|
|
10383
|
+
}
|
|
10384
|
+
|
|
10255
10385
|
/**
|
|
10256
10386
|
* @internal
|
|
10257
10387
|
*/
|
|
@@ -10261,7 +10391,7 @@ class EdsIconClose {
|
|
|
10261
10391
|
this.class = '';
|
|
10262
10392
|
}
|
|
10263
10393
|
render() {
|
|
10264
|
-
return hAsync("span", { key: '
|
|
10394
|
+
return hAsync("span", { key: '91f33941205260a787d69146e390fa970a1c0d72', class: this.class, innerHTML: close });
|
|
10265
10395
|
}
|
|
10266
10396
|
static get cmpMeta() { return {
|
|
10267
10397
|
"$flags$": 0,
|
|
@@ -10284,7 +10414,7 @@ class EdsIconCopy {
|
|
|
10284
10414
|
this.class = '';
|
|
10285
10415
|
}
|
|
10286
10416
|
render() {
|
|
10287
|
-
return hAsync("span", { key: '
|
|
10417
|
+
return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: copy });
|
|
10288
10418
|
}
|
|
10289
10419
|
static get cmpMeta() { return {
|
|
10290
10420
|
"$flags$": 0,
|
|
@@ -10298,6 +10428,29 @@ class EdsIconCopy {
|
|
|
10298
10428
|
}; }
|
|
10299
10429
|
}
|
|
10300
10430
|
|
|
10431
|
+
/**
|
|
10432
|
+
* @internal
|
|
10433
|
+
*/
|
|
10434
|
+
class EdsIconDownload {
|
|
10435
|
+
constructor(hostRef) {
|
|
10436
|
+
registerInstance(this, hostRef);
|
|
10437
|
+
this.class = '';
|
|
10438
|
+
}
|
|
10439
|
+
render() {
|
|
10440
|
+
return hAsync("span", { key: '1fc6b1410cf98a4a992c0d98d78ec27aeac65b7c', class: this.class, innerHTML: download });
|
|
10441
|
+
}
|
|
10442
|
+
static get cmpMeta() { return {
|
|
10443
|
+
"$flags$": 0,
|
|
10444
|
+
"$tagName$": "eds-icon-download",
|
|
10445
|
+
"$members$": {
|
|
10446
|
+
"class": [1]
|
|
10447
|
+
},
|
|
10448
|
+
"$listeners$": undefined,
|
|
10449
|
+
"$lazyBundleId$": "-",
|
|
10450
|
+
"$attrsToReflect$": []
|
|
10451
|
+
}; }
|
|
10452
|
+
}
|
|
10453
|
+
|
|
10301
10454
|
/**
|
|
10302
10455
|
* @internal
|
|
10303
10456
|
*/
|
|
@@ -10307,7 +10460,7 @@ class EdsIconDraft {
|
|
|
10307
10460
|
this.class = '';
|
|
10308
10461
|
}
|
|
10309
10462
|
render() {
|
|
10310
|
-
return hAsync("span", { key: '
|
|
10463
|
+
return hAsync("span", { key: 'e76f56aaba4a67096e6314e61d53bc2512941552', class: this.class, innerHTML: draft });
|
|
10311
10464
|
}
|
|
10312
10465
|
static get cmpMeta() { return {
|
|
10313
10466
|
"$flags$": 0,
|
|
@@ -10330,7 +10483,7 @@ class EdsIconEdit {
|
|
|
10330
10483
|
this.class = '';
|
|
10331
10484
|
}
|
|
10332
10485
|
render() {
|
|
10333
|
-
return hAsync("span", { key: '
|
|
10486
|
+
return hAsync("span", { key: '54502ee7a072ad54a5c22367b89c1d00afcaaafe', class: this.class, innerHTML: edit });
|
|
10334
10487
|
}
|
|
10335
10488
|
static get cmpMeta() { return {
|
|
10336
10489
|
"$flags$": 0,
|
|
@@ -10353,7 +10506,7 @@ class EdsIconEu {
|
|
|
10353
10506
|
this.class = '';
|
|
10354
10507
|
}
|
|
10355
10508
|
render() {
|
|
10356
|
-
return hAsync("span", { key: '
|
|
10509
|
+
return hAsync("span", { key: '89fde5fbed839d6fdedc0399bf1475abf22d205d', class: this.class, innerHTML: euSvg });
|
|
10357
10510
|
}
|
|
10358
10511
|
static get cmpMeta() { return {
|
|
10359
10512
|
"$flags$": 0,
|
|
@@ -10376,7 +10529,7 @@ class EdsIconExternal {
|
|
|
10376
10529
|
this.class = '';
|
|
10377
10530
|
}
|
|
10378
10531
|
render() {
|
|
10379
|
-
return hAsync("span", { key: '
|
|
10532
|
+
return hAsync("span", { key: '1abc7edbab033c99ffaede9ebe0f210849fe8d61', class: this.class, innerHTML: arrowDiagonal });
|
|
10380
10533
|
}
|
|
10381
10534
|
static get cmpMeta() { return {
|
|
10382
10535
|
"$flags$": 0,
|
|
@@ -10399,7 +10552,7 @@ class EdsIconFacebook {
|
|
|
10399
10552
|
this.class = '';
|
|
10400
10553
|
}
|
|
10401
10554
|
render() {
|
|
10402
|
-
return hAsync("span", { key: '
|
|
10555
|
+
return hAsync("span", { key: '1981b2c066cfa5f0fb4326017df4bfbdfff09873', class: this.class, innerHTML: facebook });
|
|
10403
10556
|
}
|
|
10404
10557
|
static get cmpMeta() { return {
|
|
10405
10558
|
"$flags$": 0,
|
|
@@ -10422,7 +10575,7 @@ class EdsIconGitlab {
|
|
|
10422
10575
|
this.class = '';
|
|
10423
10576
|
}
|
|
10424
10577
|
render() {
|
|
10425
|
-
return hAsync("span", { key: '
|
|
10578
|
+
return hAsync("span", { key: 'b35f2e94d903549d867579f2e008c323a441019c', class: this.class, innerHTML: gitlabBlack });
|
|
10426
10579
|
}
|
|
10427
10580
|
static get cmpMeta() { return {
|
|
10428
10581
|
"$flags$": 0,
|
|
@@ -10445,7 +10598,7 @@ class EdsIconLinkedin {
|
|
|
10445
10598
|
this.class = '';
|
|
10446
10599
|
}
|
|
10447
10600
|
render() {
|
|
10448
|
-
return hAsync("span", { key: '
|
|
10601
|
+
return hAsync("span", { key: '8bba88cba6d29b204b4a4ceae3c41129bb6edcaa', class: this.class, innerHTML: linkedin });
|
|
10449
10602
|
}
|
|
10450
10603
|
static get cmpMeta() { return {
|
|
10451
10604
|
"$flags$": 0,
|
|
@@ -10468,7 +10621,7 @@ class EdsIconLoader {
|
|
|
10468
10621
|
this.class = '';
|
|
10469
10622
|
}
|
|
10470
10623
|
render() {
|
|
10471
|
-
return hAsync("span", { key: '
|
|
10624
|
+
return hAsync("span", { key: 'b97da1b406718c7611d1e17d7a9c6b4670600740', class: this.class, innerHTML: loader });
|
|
10472
10625
|
}
|
|
10473
10626
|
static get cmpMeta() { return {
|
|
10474
10627
|
"$flags$": 0,
|
|
@@ -10491,7 +10644,7 @@ class EdsIconMastodon {
|
|
|
10491
10644
|
this.class = '';
|
|
10492
10645
|
}
|
|
10493
10646
|
render() {
|
|
10494
|
-
return hAsync("span", { key: '
|
|
10647
|
+
return hAsync("span", { key: '36bf44e06217f9b2521f374028a1316fb17ff21a', class: this.class, innerHTML: mastodon });
|
|
10495
10648
|
}
|
|
10496
10649
|
static get cmpMeta() { return {
|
|
10497
10650
|
"$flags$": 0,
|
|
@@ -10514,7 +10667,7 @@ class EdsIconMenu {
|
|
|
10514
10667
|
this.class = '';
|
|
10515
10668
|
}
|
|
10516
10669
|
render() {
|
|
10517
|
-
return hAsync("span", { key: '
|
|
10670
|
+
return hAsync("span", { key: '4322703c9e449819dc30946118893d365fa20124', class: this.class, innerHTML: menu });
|
|
10518
10671
|
}
|
|
10519
10672
|
static get cmpMeta() { return {
|
|
10520
10673
|
"$flags$": 0,
|
|
@@ -10537,7 +10690,7 @@ class EdsIconMinus {
|
|
|
10537
10690
|
this.class = '';
|
|
10538
10691
|
}
|
|
10539
10692
|
render() {
|
|
10540
|
-
return hAsync("span", { key: '
|
|
10693
|
+
return hAsync("span", { key: '9b9efb71d724cc1eb0e9bebd7256fe11b39e4da3', class: this.class, innerHTML: minus });
|
|
10541
10694
|
}
|
|
10542
10695
|
static get cmpMeta() { return {
|
|
10543
10696
|
"$flags$": 0,
|
|
@@ -10560,7 +10713,7 @@ class EdsIconMore {
|
|
|
10560
10713
|
this.class = '';
|
|
10561
10714
|
}
|
|
10562
10715
|
render() {
|
|
10563
|
-
return hAsync("span", { key: '
|
|
10716
|
+
return hAsync("span", { key: 'f7ebc68658fcf8c0df627871481cce90cd7800fb', class: this.class, innerHTML: more });
|
|
10564
10717
|
}
|
|
10565
10718
|
static get cmpMeta() { return {
|
|
10566
10719
|
"$flags$": 0,
|
|
@@ -10583,7 +10736,7 @@ class EdsIconPaper {
|
|
|
10583
10736
|
this.class = '';
|
|
10584
10737
|
}
|
|
10585
10738
|
render() {
|
|
10586
|
-
return hAsync("span", { key: '
|
|
10739
|
+
return hAsync("span", { key: 'eaa676b09d81da31b600a910b99b416c1a5420d3', class: this.class, innerHTML: paper });
|
|
10587
10740
|
}
|
|
10588
10741
|
static get cmpMeta() { return {
|
|
10589
10742
|
"$flags$": 0,
|
|
@@ -10606,7 +10759,7 @@ class EdsIconPlus {
|
|
|
10606
10759
|
this.class = '';
|
|
10607
10760
|
}
|
|
10608
10761
|
render() {
|
|
10609
|
-
return hAsync("span", { key: '
|
|
10762
|
+
return hAsync("span", { key: '825957824697ceeec9d6f81007c4dd1dfc208b28', class: this.class, innerHTML: plus });
|
|
10610
10763
|
}
|
|
10611
10764
|
static get cmpMeta() { return {
|
|
10612
10765
|
"$flags$": 0,
|
|
@@ -10629,7 +10782,7 @@ class EdsIconPortal {
|
|
|
10629
10782
|
this.class = '';
|
|
10630
10783
|
}
|
|
10631
10784
|
render() {
|
|
10632
|
-
return hAsync("span", { key: '
|
|
10785
|
+
return hAsync("span", { key: '4c557c9fe9168f361c55aae7a7c6874d78ec620d', class: this.class, innerHTML: portal });
|
|
10633
10786
|
}
|
|
10634
10787
|
static get cmpMeta() { return {
|
|
10635
10788
|
"$flags$": 0,
|
|
@@ -10652,7 +10805,7 @@ class EdsIconPrivate {
|
|
|
10652
10805
|
this.class = '';
|
|
10653
10806
|
}
|
|
10654
10807
|
render() {
|
|
10655
|
-
return hAsync("span", { key: '
|
|
10808
|
+
return hAsync("span", { key: 'fe423636431e96ce42d0b8236b04c11c92633a18', class: this.class, innerHTML: privat });
|
|
10656
10809
|
}
|
|
10657
10810
|
static get cmpMeta() { return {
|
|
10658
10811
|
"$flags$": 0,
|
|
@@ -10675,7 +10828,7 @@ class EdsIconPublic {
|
|
|
10675
10828
|
this.class = '';
|
|
10676
10829
|
}
|
|
10677
10830
|
render() {
|
|
10678
|
-
return hAsync("span", { key: '
|
|
10831
|
+
return hAsync("span", { key: '4c0a1ff37a1bfa79173c6b91da33fb808ef1b918', class: this.class, innerHTML: pub });
|
|
10679
10832
|
}
|
|
10680
10833
|
static get cmpMeta() { return {
|
|
10681
10834
|
"$flags$": 0,
|
|
@@ -10698,7 +10851,7 @@ class EdsIconSearch {
|
|
|
10698
10851
|
this.class = '';
|
|
10699
10852
|
}
|
|
10700
10853
|
render() {
|
|
10701
|
-
return hAsync("span", { key: '
|
|
10854
|
+
return hAsync("span", { key: 'c788833c6a51e489ca432697a9c46d9b5756a519', class: this.class, innerHTML: search });
|
|
10702
10855
|
}
|
|
10703
10856
|
static get cmpMeta() { return {
|
|
10704
10857
|
"$flags$": 0,
|
|
@@ -10721,7 +10874,7 @@ class EdsIconStar {
|
|
|
10721
10874
|
this.class = '';
|
|
10722
10875
|
}
|
|
10723
10876
|
render() {
|
|
10724
|
-
return hAsync("span", { key: '
|
|
10877
|
+
return hAsync("span", { key: '297e73664320032b2f78dd3c43aa0852545c0723', class: this.class, innerHTML: star });
|
|
10725
10878
|
}
|
|
10726
10879
|
static get cmpMeta() { return {
|
|
10727
10880
|
"$flags$": 0,
|
|
@@ -10744,7 +10897,7 @@ class EdsIconStart {
|
|
|
10744
10897
|
this.class = '';
|
|
10745
10898
|
}
|
|
10746
10899
|
render() {
|
|
10747
|
-
return hAsync("span", { key: '
|
|
10900
|
+
return hAsync("span", { key: '360d1178d8f9f8485718f5ab1ed823ac16be2987', class: this.class, innerHTML: start });
|
|
10748
10901
|
}
|
|
10749
10902
|
static get cmpMeta() { return {
|
|
10750
10903
|
"$flags$": 0,
|
|
@@ -10767,7 +10920,7 @@ class EdsIconSuccess {
|
|
|
10767
10920
|
this.class = '';
|
|
10768
10921
|
}
|
|
10769
10922
|
render() {
|
|
10770
|
-
return hAsync("span", { key: '
|
|
10923
|
+
return hAsync("span", { key: '281f7141b6b45b60e8f11f85430af0cd8364d91f', class: this.class, innerHTML: success });
|
|
10771
10924
|
}
|
|
10772
10925
|
static get cmpMeta() { return {
|
|
10773
10926
|
"$flags$": 0,
|
|
@@ -10790,7 +10943,7 @@ class EdsIconThumbsDown {
|
|
|
10790
10943
|
this.class = '';
|
|
10791
10944
|
}
|
|
10792
10945
|
render() {
|
|
10793
|
-
return hAsync("span", { key: '
|
|
10946
|
+
return hAsync("span", { key: 'b119fa870a00fbad7cffeb30b0ab76d2165eb76d', class: this.class, innerHTML: thumbsDown });
|
|
10794
10947
|
}
|
|
10795
10948
|
static get cmpMeta() { return {
|
|
10796
10949
|
"$flags$": 0,
|
|
@@ -10813,7 +10966,7 @@ class EdsIconThumbsUp {
|
|
|
10813
10966
|
this.class = '';
|
|
10814
10967
|
}
|
|
10815
10968
|
render() {
|
|
10816
|
-
return hAsync("span", { key: '
|
|
10969
|
+
return hAsync("span", { key: '86834f96ac586f4bd7404ebdcd8ac0e496f063bb', class: this.class, innerHTML: thumbsUp });
|
|
10817
10970
|
}
|
|
10818
10971
|
static get cmpMeta() { return {
|
|
10819
10972
|
"$flags$": 0,
|
|
@@ -10836,7 +10989,7 @@ class EdsIconTutorial {
|
|
|
10836
10989
|
this.class = '';
|
|
10837
10990
|
}
|
|
10838
10991
|
render() {
|
|
10839
|
-
return hAsync("span", { key: '
|
|
10992
|
+
return hAsync("span", { key: 'f7457ee049fe477b51776527b58d459312c52cf4', class: this.class, innerHTML: tutorial });
|
|
10840
10993
|
}
|
|
10841
10994
|
static get cmpMeta() { return {
|
|
10842
10995
|
"$flags$": 0,
|
|
@@ -10859,7 +11012,7 @@ class EdsIconTwitter {
|
|
|
10859
11012
|
this.class = '';
|
|
10860
11013
|
}
|
|
10861
11014
|
render() {
|
|
10862
|
-
return hAsync("span", { key: '
|
|
11015
|
+
return hAsync("span", { key: '6f1d0b5e073ef4d754aecb600a8578fc59950496', class: this.class, innerHTML: twitter });
|
|
10863
11016
|
}
|
|
10864
11017
|
static get cmpMeta() { return {
|
|
10865
11018
|
"$flags$": 0,
|
|
@@ -10882,7 +11035,7 @@ class EdsIconUnknown {
|
|
|
10882
11035
|
this.class = '';
|
|
10883
11036
|
}
|
|
10884
11037
|
render() {
|
|
10885
|
-
return hAsync("span", { key: '
|
|
11038
|
+
return hAsync("span", { key: '3b2750a85a74227efe458ceaa2d0995ab0c472b3', class: this.class, innerHTML: unknown });
|
|
10886
11039
|
}
|
|
10887
11040
|
static get cmpMeta() { return {
|
|
10888
11041
|
"$flags$": 0,
|
|
@@ -10905,7 +11058,7 @@ class EdsIconUpdown {
|
|
|
10905
11058
|
this.class = '';
|
|
10906
11059
|
}
|
|
10907
11060
|
render() {
|
|
10908
|
-
return hAsync("span", { key: '
|
|
11061
|
+
return hAsync("span", { key: '1768da9f606b60dd3dc1c8ef76673c6b17eb1b37', class: this.class, innerHTML: upDonw });
|
|
10909
11062
|
}
|
|
10910
11063
|
static get cmpMeta() { return {
|
|
10911
11064
|
"$flags$": 0,
|
|
@@ -10928,7 +11081,7 @@ class EdsIconUser {
|
|
|
10928
11081
|
this.class = '';
|
|
10929
11082
|
}
|
|
10930
11083
|
render() {
|
|
10931
|
-
return hAsync("span", { key: '
|
|
11084
|
+
return hAsync("span", { key: 'ccb41b3ad799e44dab0664dadd5407f6aef9b39c', class: this.class, innerHTML: user });
|
|
10932
11085
|
}
|
|
10933
11086
|
static get cmpMeta() { return {
|
|
10934
11087
|
"$flags$": 0,
|
|
@@ -10942,6 +11095,29 @@ class EdsIconUser {
|
|
|
10942
11095
|
}; }
|
|
10943
11096
|
}
|
|
10944
11097
|
|
|
11098
|
+
/**
|
|
11099
|
+
* @internal
|
|
11100
|
+
*/
|
|
11101
|
+
class EdsIconView {
|
|
11102
|
+
constructor(hostRef) {
|
|
11103
|
+
registerInstance(this, hostRef);
|
|
11104
|
+
this.class = '';
|
|
11105
|
+
}
|
|
11106
|
+
render() {
|
|
11107
|
+
return hAsync("span", { key: 'af0fae74516d7f51af3616aa09c16b80b603504f', class: this.class, innerHTML: view });
|
|
11108
|
+
}
|
|
11109
|
+
static get cmpMeta() { return {
|
|
11110
|
+
"$flags$": 0,
|
|
11111
|
+
"$tagName$": "eds-icon-view",
|
|
11112
|
+
"$members$": {
|
|
11113
|
+
"class": [1]
|
|
11114
|
+
},
|
|
11115
|
+
"$listeners$": undefined,
|
|
11116
|
+
"$lazyBundleId$": "-",
|
|
11117
|
+
"$attrsToReflect$": []
|
|
11118
|
+
}; }
|
|
11119
|
+
}
|
|
11120
|
+
|
|
10945
11121
|
/**
|
|
10946
11122
|
* `EdsIconWrapper` is a wrapper component for displaying icons with dynamic loading capabilities.
|
|
10947
11123
|
* It allows specifying the icon name, which is dynamically imported and rendered within the component.
|
|
@@ -11007,7 +11183,7 @@ class EdsIconYoutube {
|
|
|
11007
11183
|
this.class = '';
|
|
11008
11184
|
}
|
|
11009
11185
|
render() {
|
|
11010
|
-
return hAsync("span", { key: '
|
|
11186
|
+
return hAsync("span", { key: '063a941c7795658f2dd79fbdafd7ea1f8ed4b2f4', class: this.class, innerHTML: youtube });
|
|
11011
11187
|
}
|
|
11012
11188
|
static get cmpMeta() { return {
|
|
11013
11189
|
"$flags$": 0,
|
|
@@ -11083,10 +11259,10 @@ class EdsImg {
|
|
|
11083
11259
|
imgOpts['loading'] = 'lazy';
|
|
11084
11260
|
imgOpts['decoding'] = 'async';
|
|
11085
11261
|
}
|
|
11086
|
-
return (hAsync("div", { key: '
|
|
11262
|
+
return (hAsync("div", { key: 'fec0dcf2ec178a953f4ced8a71b037030983670d', class: {
|
|
11087
11263
|
'items-center justify-center': true,
|
|
11088
11264
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11089
|
-
} }, hAsync("picture", { key: '
|
|
11265
|
+
} }, hAsync("picture", { key: '0df010a6ed50519be0a2017bf12db7d1ab2fb208' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: 'ea4275b2cc6be0cce5ab63f97d05454e3c4ee1dc', ref: (el) => (this.img = el), class: {
|
|
11090
11266
|
'effect-opacity object-cover object-center': true,
|
|
11091
11267
|
'opacity-100': this.loaded,
|
|
11092
11268
|
'opacity-0': !this.loaded
|
|
@@ -11168,7 +11344,7 @@ class EdsInput {
|
|
|
11168
11344
|
render() {
|
|
11169
11345
|
const withIcon = !!this.icon;
|
|
11170
11346
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11171
|
-
return (hAsync("div", { key: '
|
|
11347
|
+
return (hAsync("div", { key: '0a6386205f78655569bf93960a4e2664563e4014', 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'
|
|
11172
11348
|
? {
|
|
11173
11349
|
min: this.min,
|
|
11174
11350
|
max: this.max,
|
|
@@ -11179,7 +11355,7 @@ class EdsInput {
|
|
|
11179
11355
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11180
11356
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11181
11357
|
${this.error ? 'input-error' : ''}
|
|
11182
|
-
`, "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: '
|
|
11358
|
+
`, "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: 'c78bf1501f682cde9a193ea6726baf2433566516', 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: 'c07e7d5d8394292cf365f32838dfd837ccf168d6', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
|
|
11183
11359
|
}
|
|
11184
11360
|
get el() { return getElement(this); }
|
|
11185
11361
|
static get watchers() { return {
|
|
@@ -11318,7 +11494,7 @@ class EdsInputField {
|
|
|
11318
11494
|
}
|
|
11319
11495
|
render() {
|
|
11320
11496
|
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 } : {}));
|
|
11321
|
-
return (hAsync("div", { key: '
|
|
11497
|
+
return (hAsync("div", { key: 'eaa1d9c1095204c82bd01eab0f19f80eeee64d05' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4 mt-8" }, 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' ? ((() => {
|
|
11322
11498
|
var _a, _b, _c;
|
|
11323
11499
|
const rangeProps = {
|
|
11324
11500
|
name: inputOpts.name,
|
|
@@ -11331,12 +11507,13 @@ class EdsInputField {
|
|
|
11331
11507
|
const opt = this.parsedOptions;
|
|
11332
11508
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11333
11509
|
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 })));
|
|
11334
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11510
|
+
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '60e6c848d41591b2e9ec8c5cf8dd656ec8562c38', class: "mt-6" }, hAsync("eds-input-footer", { key: 'e9298e01dbab9aa6a98a486286b32024766348d1', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
|
|
11335
11511
|
}
|
|
11512
|
+
static get delegatesFocus() { return true; }
|
|
11336
11513
|
get hostEl() { return getElement(this); }
|
|
11337
11514
|
static get style() { return EdsInputFieldStyle0; }
|
|
11338
11515
|
static get cmpMeta() { return {
|
|
11339
|
-
"$flags$":
|
|
11516
|
+
"$flags$": 25,
|
|
11340
11517
|
"$tagName$": "eds-input-field",
|
|
11341
11518
|
"$members$": {
|
|
11342
11519
|
"name": [1],
|
|
@@ -11382,7 +11559,7 @@ class EdsInputFooter {
|
|
|
11382
11559
|
this.link = undefined;
|
|
11383
11560
|
}
|
|
11384
11561
|
render() {
|
|
11385
|
-
return (hAsync("div", { key: '
|
|
11562
|
+
return (hAsync("div", { key: '54571d8f3c08a7a4f12e40728e02a7210ab0d345' }, this.error && this.errorMessage && (hAsync("div", { key: 'db35f0c0dfa931d55d57a9c4ad3fffaeb4cea914', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: '63e401d86876829d8d2bbab887a66ef0dbd1837f', icon: "warning" }), hAsync("p", { key: '81f8b0819a7cb119353c8ac38ab1df0cafb9d36f', class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: 'e5018623e2d8578864dc1f0b06d54e4a60ff9020', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("a", { key: 'e7b6bde26ae02cf07ac8b8e6461282a4ba1355ed', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
|
|
11386
11563
|
}
|
|
11387
11564
|
static get style() { return EdsInputFooterStyle0; }
|
|
11388
11565
|
static get cmpMeta() { return {
|
|
@@ -11413,7 +11590,7 @@ class EdsInputLabel {
|
|
|
11413
11590
|
this.disabled = false;
|
|
11414
11591
|
}
|
|
11415
11592
|
render() {
|
|
11416
|
-
return (hAsync("label", { key: '
|
|
11593
|
+
return (hAsync("label", { key: '90e0659383fd3be9a166457de5429385fe3bfe02', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: '4d417c45dd636bfd5872d846e5eb89ff3694a4d4' }, hAsync("span", { key: '3924011891ee03e530fe25b269bf4231f3acd9cb', "aria-hidden": "true" }, "*"), hAsync("span", { key: '2f343b6b4ab4cbd538189cfa404210cf676eefe7', class: "sr-only" }, "required")))));
|
|
11417
11594
|
}
|
|
11418
11595
|
static get style() { return EdsInputLabelStyle0; }
|
|
11419
11596
|
static get cmpMeta() { return {
|
|
@@ -11479,7 +11656,7 @@ class EdsInputRange {
|
|
|
11479
11656
|
return this.inputElement;
|
|
11480
11657
|
}
|
|
11481
11658
|
render() {
|
|
11482
|
-
return (hAsync("div", { key: '
|
|
11659
|
+
return (hAsync("div", { key: '3fa2ef579847e66bcacc35afe202192b78a06975', class: "relative flex flex-col items-start" }, hAsync("input", { key: '669cc03e44dfa1ae8eae758f82f41939de1be625', 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: 'b3865e1bfacb423da277f4b76dfd0f3294f96cc6', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
11483
11660
|
}
|
|
11484
11661
|
get el() { return getElement(this); }
|
|
11485
11662
|
static get watchers() { return {
|
|
@@ -11574,7 +11751,7 @@ class EdsInputSearch {
|
|
|
11574
11751
|
return this.inputElement;
|
|
11575
11752
|
}
|
|
11576
11753
|
render() {
|
|
11577
|
-
return (hAsync("div", { key: '
|
|
11754
|
+
return (hAsync("div", { key: 'ad7c42baf7c54ede5dca7dd2a6916557f46d33d6', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '6de80c397bae5e541de1ce3c2937bed860b58363', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), hAsync("input", { key: '9637c5569c97061fde3735ecb58b6a6f81a10e15', 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}`,
|
|
11578
11755
|
//onInput={this.onInput}
|
|
11579
11756
|
onChange: this.onChange })));
|
|
11580
11757
|
}
|
|
@@ -11628,12 +11805,12 @@ class EdsInputSelect {
|
|
|
11628
11805
|
const selectId = this.inputId || this.name;
|
|
11629
11806
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
11630
11807
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
11631
|
-
return (hAsync("div", { key: '
|
|
11808
|
+
return (hAsync("div", { key: '06be08db809ec9970ca4d7bdbdcdf1c8f2bc8840', class: "relative" }, hAsync("select", { key: 'e4319592e6c2f0c71e0dc75ca2d854506bda70bc', id: selectId, name: this.name, class: {
|
|
11632
11809
|
input: true,
|
|
11633
11810
|
'input-error': this.error,
|
|
11634
11811
|
'px-4': true,
|
|
11635
11812
|
'py-2': true
|
|
11636
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
11813
|
+
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: 'a0ece38948f84a10ea8cd4c0a01b3f8b9730c7ef', 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: '8ce085e43d0ba6340e52b0666dc0a31abbf1a2f9', 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: '8b91b3fa3a819d04ede5d7816fcb2f04e66fd03b', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
11637
11814
|
}
|
|
11638
11815
|
static get cmpMeta() { return {
|
|
11639
11816
|
"$flags$": 0,
|
|
@@ -11838,12 +12015,34 @@ class EdsLink {
|
|
|
11838
12015
|
action: 'click'
|
|
11839
12016
|
});
|
|
11840
12017
|
}
|
|
12018
|
+
handleKeyDown(event) {
|
|
12019
|
+
if (this.disabled) {
|
|
12020
|
+
return;
|
|
12021
|
+
}
|
|
12022
|
+
// Handle Enter and Space keys for activation
|
|
12023
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
12024
|
+
event.preventDefault();
|
|
12025
|
+
this.handleClick(event);
|
|
12026
|
+
// For actual navigation, trigger the native link behavior
|
|
12027
|
+
if (this.url && !this.disabled) {
|
|
12028
|
+
if (this.external) {
|
|
12029
|
+
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
12030
|
+
}
|
|
12031
|
+
else {
|
|
12032
|
+
window.location.href = this.url;
|
|
12033
|
+
}
|
|
12034
|
+
}
|
|
12035
|
+
}
|
|
12036
|
+
}
|
|
11841
12037
|
getLinkSize() {
|
|
12038
|
+
if (this.intent === 'underline') {
|
|
12039
|
+
return 'underline';
|
|
12040
|
+
}
|
|
11842
12041
|
return this.size;
|
|
11843
12042
|
}
|
|
11844
12043
|
renderLeftIcon() {
|
|
11845
12044
|
if (this.icon && this.iconPos === 'left') {
|
|
11846
|
-
return (hAsync("span", { class:
|
|
12045
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11847
12046
|
flex inline-flex items-center justify-center
|
|
11848
12047
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11849
12048
|
`, icon: this.icon })));
|
|
@@ -11852,7 +12051,7 @@ class EdsLink {
|
|
|
11852
12051
|
}
|
|
11853
12052
|
renderRightIcon() {
|
|
11854
12053
|
if (this.icon && this.iconPos === 'right') {
|
|
11855
|
-
return (hAsync("span", { class:
|
|
12054
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11856
12055
|
flex inline-flex items-center justify-center
|
|
11857
12056
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11858
12057
|
`, icon: this.icon })));
|
|
@@ -11860,8 +12059,6 @@ class EdsLink {
|
|
|
11860
12059
|
return null;
|
|
11861
12060
|
}
|
|
11862
12061
|
render() {
|
|
11863
|
-
// If the link is disabled, use a <span>; otherwise, use an <a> element.
|
|
11864
|
-
const ComponentType = this.disabled ? 'span' : 'a';
|
|
11865
12062
|
const classes = linkStyles({
|
|
11866
12063
|
intent: this.intent,
|
|
11867
12064
|
size: this.getLinkSize(),
|
|
@@ -11869,12 +12066,12 @@ class EdsLink {
|
|
|
11869
12066
|
isActive: this.current,
|
|
11870
12067
|
hasIcon: !!this.icon
|
|
11871
12068
|
});
|
|
11872
|
-
|
|
11873
|
-
const
|
|
12069
|
+
const isInteractive = !this.disabled;
|
|
12070
|
+
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
11874
12071
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11875
12072
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11876
12073
|
: '';
|
|
11877
|
-
return (hAsync(
|
|
12074
|
+
return (hAsync("a", { key: 'bc82c9ea21f98ed71c812c8366ba8368c3ac5bf4', class: `${classes || ''} ${this.extraClass || ''}`, href: isInteractive ? this.url : 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: 'eed89377d27a476a7d7e70a8c40f3100b8089a0b', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && hAsync("span", { key: 'c6d09f0c54e092e53350014d6d89b67c35a8be71', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
11878
12075
|
}
|
|
11879
12076
|
get el() { return getElement(this); }
|
|
11880
12077
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11982,7 +12179,7 @@ class EdsLogo {
|
|
|
11982
12179
|
}
|
|
11983
12180
|
render() {
|
|
11984
12181
|
const logoContent = this.getLogo();
|
|
11985
|
-
return (hAsync("a", { key: '
|
|
12182
|
+
return (hAsync("a", { key: 'e5c4e4701d698282dc85561c8c434f0790fb2401', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: '32cc8649fe67b6c4a874b5c1aaa6d4d793b4c4c7', innerHTML: logoContent })));
|
|
11986
12183
|
}
|
|
11987
12184
|
get el() { return getElement(this); }
|
|
11988
12185
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12257,9 +12454,9 @@ class EdsModal {
|
|
|
12257
12454
|
render() {
|
|
12258
12455
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12259
12456
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12260
|
-
return (hAsync("div", { key: '
|
|
12457
|
+
return (hAsync("div", { key: '29700a7b84c8728c11232aaaa526638dc6cd3156', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: '0cc973541fcde90a0b69a8d3b8a95e54d987fd7d', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
12261
12458
|
,
|
|
12262
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12459
|
+
onClick: () => this.close() })), hAsync("div", { key: 'd69445a547c27fccc868bee1dae9537e3e4c9d68', class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: 'e4d3ddcadf49051ebb0fe5c1d12d40f8992a5549', 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: '6a9e5c1cb187e4684b267859f2150f485d6fcced', id: titleId, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), hAsync("eds-button", { key: '7c9cd571b76cc87e13f9b153c4d24844b40e47c7', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), hAsync("div", { key: '150e61106d25a1a0ecf470abf14ac5c5ba836b64', class: "pt-8 px-20 py-20" }, hAsync("slot", { key: '30100f97aa7504023e43b51fc9bebad20097b480' })))));
|
|
12263
12460
|
}
|
|
12264
12461
|
get el() { return getElement(this); }
|
|
12265
12462
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12282,7 +12479,99 @@ class EdsModal {
|
|
|
12282
12479
|
}; }
|
|
12283
12480
|
}
|
|
12284
12481
|
|
|
12285
|
-
const
|
|
12482
|
+
const edsNpsCss = ".flex{display:flex}.justify-between{justify-content:space-between}.mt-4{margin-top:0.25rem}.mt-8{margin-top:0.5rem}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.grid{display:grid}.grid-col-span-1{--container-grid-columns:1;grid-column:span 1 / span 1}.grid-cols-11{grid-template-columns:repeat(11, minmax(0, 1fr))}.grid-cols-11[class*=\"grid-line-x\"][class*=\"grid-line-x\"]>*:nth-child(n)::before{border-bottom-width:1px}.grid-cols-11[class*=\"grid-line-xfull\"]>*:nth-child(n)::before{inset-inline-start:calc(var(--inner-gutter) / -2);inset-inline-end:calc(var(--inner-gutter) / -2)}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1)::before{inset-inline-start:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+11)::before{inset-inline-end:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1):nth-last-child(-n+11)::before{border-bottom-width:0}.grid-cols-11[class*=\"grid-line-x\"]>*:nth-child(11n+1):nth-last-child(-n+11)~*::before{border-bottom-width:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(n)::after{border-inline-end-width:1px}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+11)::after{border-inline-end-width:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(-n+11)::after{top:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+1):nth-last-child(-n+11)::after{bottom:0}.grid-cols-11[class*=\"grid-line-y\"][class*=\"grid-line-y\"]>*:nth-child(11n+1):nth-last-child(-n+11)~li::after{bottom:0}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.text-light{color:var(--grey-700)}";
|
|
12483
|
+
var EdsNpsStyle0 = edsNpsCss;
|
|
12484
|
+
|
|
12485
|
+
class EdsNps {
|
|
12486
|
+
constructor(hostRef) {
|
|
12487
|
+
registerInstance(this, hostRef);
|
|
12488
|
+
this.nps = createEvent(this, "nps", 7);
|
|
12489
|
+
this.min = 0;
|
|
12490
|
+
this.max = 10;
|
|
12491
|
+
this.question = undefined;
|
|
12492
|
+
this.leftLabel = undefined;
|
|
12493
|
+
this.rightLabel = undefined;
|
|
12494
|
+
this.selectedValue = null;
|
|
12495
|
+
}
|
|
12496
|
+
handleClick(value) {
|
|
12497
|
+
this.selectedValue = value;
|
|
12498
|
+
this.nps.emit(value);
|
|
12499
|
+
}
|
|
12500
|
+
handleKeyNav(e) {
|
|
12501
|
+
const radios = Array.from(this.el.shadowRoot.querySelectorAll('eds-button'));
|
|
12502
|
+
const currentIndex = radios.findIndex((r) => r.tabIndex === 0);
|
|
12503
|
+
switch (e.key) {
|
|
12504
|
+
case 'ArrowRight':
|
|
12505
|
+
case 'ArrowLeft': {
|
|
12506
|
+
e.preventDefault();
|
|
12507
|
+
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12508
|
+
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12509
|
+
this.activateRadio(radios, nextIndex);
|
|
12510
|
+
break;
|
|
12511
|
+
}
|
|
12512
|
+
case 'Home': {
|
|
12513
|
+
e.preventDefault();
|
|
12514
|
+
this.activateRadio(radios, 0);
|
|
12515
|
+
break;
|
|
12516
|
+
}
|
|
12517
|
+
case 'End': {
|
|
12518
|
+
e.preventDefault();
|
|
12519
|
+
this.activateRadio(radios, this.max);
|
|
12520
|
+
break;
|
|
12521
|
+
}
|
|
12522
|
+
case 'Enter':
|
|
12523
|
+
case ' ': {
|
|
12524
|
+
e.preventDefault();
|
|
12525
|
+
if (currentIndex >= 0) {
|
|
12526
|
+
this.handleClick(this.min + currentIndex);
|
|
12527
|
+
}
|
|
12528
|
+
break;
|
|
12529
|
+
}
|
|
12530
|
+
case 'Escape': {
|
|
12531
|
+
e.preventDefault();
|
|
12532
|
+
if (currentIndex >= 0) {
|
|
12533
|
+
radios[currentIndex].blur();
|
|
12534
|
+
}
|
|
12535
|
+
break;
|
|
12536
|
+
}
|
|
12537
|
+
default:
|
|
12538
|
+
return;
|
|
12539
|
+
}
|
|
12540
|
+
}
|
|
12541
|
+
activateRadio(radios, index) {
|
|
12542
|
+
const target = radios[index];
|
|
12543
|
+
const value = this.min + index;
|
|
12544
|
+
this.handleClick(value);
|
|
12545
|
+
target.focus();
|
|
12546
|
+
}
|
|
12547
|
+
render() {
|
|
12548
|
+
const count = this.max - this.min + 1;
|
|
12549
|
+
//onst fallback = 0;
|
|
12550
|
+
return (hAsync("div", { key: '3831baab086cbf44a3d1511885f15bbab23c9cd2', class: "eds-nps" }, hAsync("eds-input-label", { key: 'f9bd8a812d1b65a634dfaa7aae704218dc79468c', id: "nps-question", name: "nps-question", label: this.question }), hAsync("div", { key: '398f5225c5b4071c2570a74a9e642f5059bb7813', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
|
|
12551
|
+
const val = this.min + i;
|
|
12552
|
+
const isSelected = val === this.selectedValue;
|
|
12553
|
+
const tabIndex = isSelected ? 0 : -1;
|
|
12554
|
+
return (hAsync("div", { class: "grid-col-span-1", key: val }, hAsync("eds-button", { tabindex: tabIndex, label: `${val}`, "aria-label": `${val}`, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", triggerClick: () => this.handleClick(val) })));
|
|
12555
|
+
})), hAsync("div", { key: '0acafaae3f2ce522ffbc245c5733ca509d4bf3c1', class: "flex justify-between mt-8" }, hAsync("span", { key: '001e0be00b07ae2e831ea6af0c577a5eeecb9a56', class: "f-ui-04 text-light ml-4" }, this.leftLabel), hAsync("span", { key: '99a12d89ea577fb2bb9c34241a2b9f0f254c284a', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
|
|
12556
|
+
}
|
|
12557
|
+
get el() { return getElement(this); }
|
|
12558
|
+
static get style() { return EdsNpsStyle0; }
|
|
12559
|
+
static get cmpMeta() { return {
|
|
12560
|
+
"$flags$": 9,
|
|
12561
|
+
"$tagName$": "eds-nps",
|
|
12562
|
+
"$members$": {
|
|
12563
|
+
"question": [1],
|
|
12564
|
+
"leftLabel": [1, "left-label"],
|
|
12565
|
+
"rightLabel": [1, "right-label"],
|
|
12566
|
+
"selectedValue": [32]
|
|
12567
|
+
},
|
|
12568
|
+
"$listeners$": undefined,
|
|
12569
|
+
"$lazyBundleId$": "-",
|
|
12570
|
+
"$attrsToReflect$": []
|
|
12571
|
+
}; }
|
|
12572
|
+
}
|
|
12573
|
+
|
|
12574
|
+
const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.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)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-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-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-light{color:var(--grey-700)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{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:150ms}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
|
|
12286
12575
|
var EdsPaginationStyle0 = edsPaginationCss;
|
|
12287
12576
|
|
|
12288
12577
|
/**
|
|
@@ -12292,23 +12581,73 @@ var EdsPaginationStyle0 = edsPaginationCss;
|
|
|
12292
12581
|
* - Supports two display modes: "default" (shows numbered page links) and "navigator" (shows Previous/Next buttons).
|
|
12293
12582
|
* - Emits a `page` event when the page is changed in "default" mode.
|
|
12294
12583
|
* - Automatically generates pagination links based on the `currentPage` and `lastPage`.
|
|
12584
|
+
* - Full keyboard navigation support with arrow keys, Home, End
|
|
12585
|
+
* - Proper ARIA labels and screen reader support
|
|
12295
12586
|
*
|
|
12296
12587
|
* This component is designed for flexible and accessible pagination controls, suitable for various display needs.
|
|
12297
12588
|
*/
|
|
12298
12589
|
class EdsPagination {
|
|
12299
12590
|
constructor(hostRef) {
|
|
12300
12591
|
registerInstance(this, hostRef);
|
|
12592
|
+
/**
|
|
12593
|
+
* Handles keyboard navigation within the pagination
|
|
12594
|
+
*/
|
|
12595
|
+
this.handleKeyDown = (e) => {
|
|
12596
|
+
if (this.mode !== 'default' || !this.useButtons) {
|
|
12597
|
+
return;
|
|
12598
|
+
}
|
|
12599
|
+
const navigableItems = this.getNavigableItems();
|
|
12600
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
12601
|
+
e.preventDefault();
|
|
12602
|
+
const increment = e.key === 'ArrowRight' ? 1 : -1;
|
|
12603
|
+
let currentIndex = this.focusedIndex;
|
|
12604
|
+
// If no item is focused, start from current page or first item
|
|
12605
|
+
if (currentIndex === -1) {
|
|
12606
|
+
const currentPageIndex = navigableItems.findIndex((item) => item.type === 'page' && item.page === this.currentPage);
|
|
12607
|
+
currentIndex = currentPageIndex !== -1 ? currentPageIndex : 0;
|
|
12608
|
+
}
|
|
12609
|
+
let newIndex = currentIndex + increment;
|
|
12610
|
+
// Wrap around navigation
|
|
12611
|
+
if (newIndex >= navigableItems.length) {
|
|
12612
|
+
newIndex = 0;
|
|
12613
|
+
}
|
|
12614
|
+
else if (newIndex < 0) {
|
|
12615
|
+
newIndex = navigableItems.length - 1;
|
|
12616
|
+
}
|
|
12617
|
+
this.focusedIndex = newIndex;
|
|
12618
|
+
this.focusPaginationItem(newIndex);
|
|
12619
|
+
}
|
|
12620
|
+
else if (e.key === 'Home') {
|
|
12621
|
+
e.preventDefault();
|
|
12622
|
+
this.focusedIndex = 0;
|
|
12623
|
+
this.focusPaginationItem(0);
|
|
12624
|
+
}
|
|
12625
|
+
else if (e.key === 'End') {
|
|
12626
|
+
e.preventDefault();
|
|
12627
|
+
const lastIndex = navigableItems.length - 1;
|
|
12628
|
+
this.focusedIndex = lastIndex;
|
|
12629
|
+
this.focusPaginationItem(lastIndex);
|
|
12630
|
+
}
|
|
12631
|
+
};
|
|
12632
|
+
/**
|
|
12633
|
+
* Handles focus events for pagination items
|
|
12634
|
+
*/
|
|
12635
|
+
this.handleItemFocus = (index) => {
|
|
12636
|
+
this.focusedIndex = index;
|
|
12637
|
+
};
|
|
12301
12638
|
this.currentPage = undefined;
|
|
12302
12639
|
this.lastPage = undefined;
|
|
12303
12640
|
this.perPage = 10;
|
|
12304
12641
|
this.total = 0;
|
|
12305
12642
|
this.url = '';
|
|
12306
12643
|
this.mode = 'default';
|
|
12644
|
+
this.useButtons = true;
|
|
12307
12645
|
this.prevLabel = 'Prev';
|
|
12308
12646
|
this.nextLabel = 'Next';
|
|
12309
12647
|
this.prevUrl = '';
|
|
12310
12648
|
this.nextUrl = '';
|
|
12311
12649
|
this.links = [];
|
|
12650
|
+
this.focusedIndex = -1;
|
|
12312
12651
|
}
|
|
12313
12652
|
/** Lifecycle hook to generate pagination links on component load */
|
|
12314
12653
|
componentWillLoad() {
|
|
@@ -12317,24 +12656,17 @@ class EdsPagination {
|
|
|
12317
12656
|
}
|
|
12318
12657
|
}
|
|
12319
12658
|
componentDidLoad() {
|
|
12320
|
-
//
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
this.emitContext(links[0]);
|
|
12328
|
-
|
|
12329
|
-
// Emit context for the last link, if it's different from the first
|
|
12330
|
-
if (links.length > 1) {
|
|
12331
|
-
this.emitContext(links[links.length - 1]);
|
|
12332
|
-
}
|
|
12333
|
-
}*/
|
|
12659
|
+
// Only emit context for links, not buttons
|
|
12660
|
+
if (!this.useButtons) {
|
|
12661
|
+
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
12662
|
+
links.forEach((lnk) => {
|
|
12663
|
+
this.emitContext(lnk);
|
|
12664
|
+
});
|
|
12665
|
+
}
|
|
12334
12666
|
}
|
|
12335
12667
|
/**
|
|
12336
12668
|
* Emits a custom event called `parentContext` for a given link element.
|
|
12337
|
-
* This event provides context information about the
|
|
12669
|
+
* This event provides context information about the pagination component.
|
|
12338
12670
|
*
|
|
12339
12671
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
12340
12672
|
*/
|
|
@@ -12352,6 +12684,34 @@ class EdsPagination {
|
|
|
12352
12684
|
this.generateLinks();
|
|
12353
12685
|
}
|
|
12354
12686
|
}
|
|
12687
|
+
/**
|
|
12688
|
+
* Gets all navigable pagination items for keyboard navigation
|
|
12689
|
+
*/
|
|
12690
|
+
getNavigableItems() {
|
|
12691
|
+
const items = [];
|
|
12692
|
+
// Previous button
|
|
12693
|
+
items.push({ type: 'prev', disabled: this.isFirstPage() });
|
|
12694
|
+
// Page numbers
|
|
12695
|
+
this.links.forEach((link) => {
|
|
12696
|
+
if (typeof link === 'object') {
|
|
12697
|
+
items.push({ type: 'page', page: parseInt(link.label), disabled: false });
|
|
12698
|
+
}
|
|
12699
|
+
});
|
|
12700
|
+
// Next button
|
|
12701
|
+
items.push({ type: 'next', disabled: this.isLastPage() });
|
|
12702
|
+
return items.filter((item) => !item.disabled);
|
|
12703
|
+
}
|
|
12704
|
+
/**
|
|
12705
|
+
* Focuses a specific pagination item by index
|
|
12706
|
+
*/
|
|
12707
|
+
focusPaginationItem(index) {
|
|
12708
|
+
var _a;
|
|
12709
|
+
const buttons = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.pagination-button');
|
|
12710
|
+
const targetButton = buttons === null || buttons === void 0 ? void 0 : buttons[index];
|
|
12711
|
+
if (targetButton) {
|
|
12712
|
+
targetButton.focus();
|
|
12713
|
+
}
|
|
12714
|
+
}
|
|
12355
12715
|
/**
|
|
12356
12716
|
* Checks if the current page is the first page
|
|
12357
12717
|
* @returns {boolean} - true if current page is the first page
|
|
@@ -12374,7 +12734,7 @@ class EdsPagination {
|
|
|
12374
12734
|
generateLink(page) {
|
|
12375
12735
|
const urlHasQuery = this.url.includes('?');
|
|
12376
12736
|
return {
|
|
12377
|
-
ariaLabel: `
|
|
12737
|
+
ariaLabel: `Go to page ${page}`,
|
|
12378
12738
|
url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
|
|
12379
12739
|
label: page.toString(),
|
|
12380
12740
|
current: this.currentPage === page,
|
|
@@ -12394,7 +12754,6 @@ class EdsPagination {
|
|
|
12394
12754
|
* Creates a pagination range based on delta, current, and total pages
|
|
12395
12755
|
* @param {number} current - Current page number
|
|
12396
12756
|
* @param {number} total - Total number of pages
|
|
12397
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
12398
12757
|
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
12399
12758
|
*/
|
|
12400
12759
|
getPaginationGenerator(current, total) {
|
|
@@ -12409,7 +12768,7 @@ class EdsPagination {
|
|
|
12409
12768
|
else {
|
|
12410
12769
|
// Always show the first page
|
|
12411
12770
|
range.push(1);
|
|
12412
|
-
// Add ellipsis if there
|
|
12771
|
+
// Add ellipsis if there's a gap between the first page and the current range start
|
|
12413
12772
|
if (current - delta > 2) {
|
|
12414
12773
|
range.push('...');
|
|
12415
12774
|
}
|
|
@@ -12417,7 +12776,7 @@ class EdsPagination {
|
|
|
12417
12776
|
for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
|
|
12418
12777
|
range.push(i);
|
|
12419
12778
|
}
|
|
12420
|
-
// Add ellipsis if there
|
|
12779
|
+
// Add ellipsis if there's a gap between the current range end and the last page
|
|
12421
12780
|
if (current + delta < total - 1) {
|
|
12422
12781
|
range.push('...');
|
|
12423
12782
|
}
|
|
@@ -12432,9 +12791,11 @@ class EdsPagination {
|
|
|
12432
12791
|
*/
|
|
12433
12792
|
pageResults() {
|
|
12434
12793
|
if (this.total > 0) {
|
|
12794
|
+
const start = this.perPage * ((this.currentPage || 1) - 1) + 1;
|
|
12795
|
+
const end = Math.min(this.perPage * (this.currentPage || 1), this.total);
|
|
12435
12796
|
return this.total > this.perPage
|
|
12436
|
-
?
|
|
12437
|
-
:
|
|
12797
|
+
? `Showing ${start} to ${end} of ${this.total} results`
|
|
12798
|
+
: `Showing ${this.total} result${this.total !== 1 ? 's' : ''}`;
|
|
12438
12799
|
}
|
|
12439
12800
|
return '';
|
|
12440
12801
|
}
|
|
@@ -12447,11 +12808,13 @@ class EdsPagination {
|
|
|
12447
12808
|
if (this.mode === 'navigator') {
|
|
12448
12809
|
return; // No page clicking logic for navigator mode
|
|
12449
12810
|
}
|
|
12450
|
-
|
|
12811
|
+
if (this.useButtons) {
|
|
12812
|
+
event.preventDefault(); // Prevent default for buttons
|
|
12813
|
+
}
|
|
12451
12814
|
if (newPage !== this.currentPage) {
|
|
12452
12815
|
this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
|
|
12453
12816
|
const pageChangeEvent = new CustomEvent('page', {
|
|
12454
|
-
detail: newPage,
|
|
12817
|
+
detail: { value: newPage },
|
|
12455
12818
|
bubbles: true,
|
|
12456
12819
|
composed: true
|
|
12457
12820
|
});
|
|
@@ -12460,38 +12823,25 @@ class EdsPagination {
|
|
|
12460
12823
|
}
|
|
12461
12824
|
}
|
|
12462
12825
|
render() {
|
|
12463
|
-
|
|
12464
|
-
|
|
12826
|
+
const navigableIndex = -1; // Track index for keyboard navigation
|
|
12827
|
+
return (hAsync("div", { key: '9379c40daaca176e67fb59918f1ca387cb4759b9' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: 'd09f7f6b7de136987d5b52564bc60afb3775299a', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, hAsync("span", { key: '4af8f097a79c8fb0495838f06424f43e5e5dcddc', 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) => {
|
|
12828
|
+
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
12829
|
+
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12830
|
+
}
|
|
12831
|
+
} }))) : (hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
12832
|
+
? this.prevUrl || '#'
|
|
12465
12833
|
: this.isFirstPage()
|
|
12466
12834
|
? '#'
|
|
12467
|
-
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
if (this.isFirstPage()) {
|
|
12472
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12473
|
-
}
|
|
12474
|
-
else {
|
|
12475
|
-
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12476
|
-
}
|
|
12835
|
+
: this.generateLink(this.currentPage - 1).url, 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: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12" }))), this.mode === 'default' &&
|
|
12836
|
+
this.links.map((link, index) => (hAsync("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (hAsync("span", { class: "flex items-center justify-center", "aria-hidden": "true" }, link)) : this.useButtons ? (hAsync("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, hAsync("eds-button", { label: link.label, "aria-label": link.current ? `Current page, page ${link.label}` : `Go to page ${link.label}`, "aria-current": link.current ? 'page' : undefined, size: "small", "extra-class": "!p-8 pagination-button", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))) : (hAsync("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, "aria-current": link.current ? 'page' : undefined, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), hAsync("li", { class: "ml-auto" }, this.useButtons ? (hAsync("div", { class: "pagination-button-wrapper", onFocus: () => this.handleItemFocus(navigableIndex) }, hAsync("eds-button", { label: this.nextLabel, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "ghost", "extra-class": "!p-8 lg:!pl-12 pagination-button", onClick: (event) => {
|
|
12837
|
+
if (this.mode === 'default' && !this.isLastPage()) {
|
|
12838
|
+
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12477
12839
|
}
|
|
12478
|
-
} })), this.mode === '
|
|
12479
|
-
|
|
12480
|
-
? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
|
|
12840
|
+
} }))) : (hAsync("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
|
|
12841
|
+
? this.nextUrl || '#'
|
|
12481
12842
|
: this.isLastPage()
|
|
12482
12843
|
? '#'
|
|
12483
|
-
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
|
|
12484
|
-
? !this.nextUrl // Disable if nextUrl is not provided
|
|
12485
|
-
: this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (event) => {
|
|
12486
|
-
if (this.mode === 'default') {
|
|
12487
|
-
if (this.isLastPage()) {
|
|
12488
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12489
|
-
}
|
|
12490
|
-
else {
|
|
12491
|
-
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12492
|
-
}
|
|
12493
|
-
}
|
|
12494
|
-
} }))))) : null));
|
|
12844
|
+
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator' ? !this.nextUrl : this.isLastPage(), "aria-label": "Go to next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors" })))))) : null));
|
|
12495
12845
|
}
|
|
12496
12846
|
get hostEl() { return getElement(this); }
|
|
12497
12847
|
static get watchers() { return {
|
|
@@ -12509,11 +12859,13 @@ class EdsPagination {
|
|
|
12509
12859
|
"total": [2],
|
|
12510
12860
|
"url": [1],
|
|
12511
12861
|
"mode": [1],
|
|
12862
|
+
"useButtons": [4, "use-buttons"],
|
|
12512
12863
|
"prevLabel": [1, "prev-label"],
|
|
12513
12864
|
"nextLabel": [1, "next-label"],
|
|
12514
12865
|
"prevUrl": [1, "prev-url"],
|
|
12515
12866
|
"nextUrl": [1, "next-url"],
|
|
12516
|
-
"links": [32]
|
|
12867
|
+
"links": [32],
|
|
12868
|
+
"focusedIndex": [32]
|
|
12517
12869
|
},
|
|
12518
12870
|
"$listeners$": undefined,
|
|
12519
12871
|
"$lazyBundleId$": "-",
|
|
@@ -12679,7 +13031,7 @@ class EdsProgressBar {
|
|
|
12679
13031
|
]
|
|
12680
13032
|
.filter(Boolean)
|
|
12681
13033
|
.join(' ');
|
|
12682
|
-
return (hAsync("div", { key: '
|
|
13034
|
+
return (hAsync("div", { key: '6c273c0fae28e5a1af49eb7e6be7b9fca717a503', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, hAsync("div", { key: 'a46a83e9086471adde1837e59d909096d59e7882', class: fillClasses, style: { width: `${progressValue}%` } }), hAsync("div", { key: '193f2efa8259e7facacba374fff8087e9702c246', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, hAsync("span", { key: 'e3454f3507d2a30245671698752a7f0f26baff57', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
12683
13035
|
}
|
|
12684
13036
|
static get style() { return EdsProgressBarStyle0; }
|
|
12685
13037
|
static get cmpMeta() { return {
|
|
@@ -12703,6 +13055,7 @@ class EdsRating {
|
|
|
12703
13055
|
constructor(hostRef) {
|
|
12704
13056
|
registerInstance(this, hostRef);
|
|
12705
13057
|
this.rating = createEvent(this, "rating", 7);
|
|
13058
|
+
this.buttonRefs = [];
|
|
12706
13059
|
this.ratingType = 'star';
|
|
12707
13060
|
this.ratingCount = 5;
|
|
12708
13061
|
this.selectedRating = 0;
|
|
@@ -12736,16 +13089,37 @@ class EdsRating {
|
|
|
12736
13089
|
* Handles the click event on a star.
|
|
12737
13090
|
* @param rating - The selected rating value.
|
|
12738
13091
|
*/
|
|
12739
|
-
|
|
13092
|
+
onSelect(rating) {
|
|
12740
13093
|
this.selectedRating = rating;
|
|
12741
13094
|
this.rating.emit(rating);
|
|
13095
|
+
setTimeout(() => {
|
|
13096
|
+
const btn = this.buttonRefs[rating - 1];
|
|
13097
|
+
btn === null || btn === void 0 ? void 0 : btn.focus();
|
|
13098
|
+
}, 0);
|
|
13099
|
+
}
|
|
13100
|
+
handleKeyNav(e) {
|
|
13101
|
+
const { key } = e;
|
|
13102
|
+
if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(key)) {
|
|
13103
|
+
return;
|
|
13104
|
+
}
|
|
13105
|
+
e.preventDefault();
|
|
13106
|
+
const increment = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
|
|
13107
|
+
let next = (this.selectedRating || 1) + increment;
|
|
13108
|
+
if (next > this.ratingCount) {
|
|
13109
|
+
next = 1;
|
|
13110
|
+
}
|
|
13111
|
+
if (next < 1) {
|
|
13112
|
+
next = this.ratingCount;
|
|
13113
|
+
}
|
|
13114
|
+
this.onSelect(next);
|
|
12742
13115
|
}
|
|
12743
13116
|
render() {
|
|
12744
|
-
return (hAsync("div", { key: '
|
|
13117
|
+
return (hAsync("div", { key: 'a7fc18897f2901f60432432899da18861e76edf6', 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) => {
|
|
12745
13118
|
const starRating = index + 1;
|
|
12746
13119
|
const isSelected = starRating <= this.selectedRating;
|
|
12747
13120
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
12748
|
-
|
|
13121
|
+
const checked = this.selectedRating === starRating;
|
|
13122
|
+
return (hAsync("eds-button", { ref: (el) => (this.buttonRefs[index] = el), icon: this.ratingType, "aria-label": `${starRating} ${this.ratingType}${starRating > 1 ? 's' : ''}`, onClick: () => this.onSelect(starRating), tabIndex: checked || (this.selectedRating === 0 && index === 0) ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "large", "extra-class": "p-2" // Optional padding or styling for the star button
|
|
12749
13123
|
}));
|
|
12750
13124
|
})));
|
|
12751
13125
|
}
|
|
@@ -12790,7 +13164,7 @@ class EdsSectionCore {
|
|
|
12790
13164
|
}
|
|
12791
13165
|
render() {
|
|
12792
13166
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
12793
|
-
return (hAsync(TagType, { key: '
|
|
13167
|
+
return (hAsync(TagType, { key: '99f87da56df0ac4b5b28ce721288507beb0cd431' }, hAsync("eds-section-heading", { key: '101137aa9637a95580393a52e7f41d71e8ae8e8b', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '0b6a6131d8e1e2528982571cf7ba617736a34173' })));
|
|
12794
13168
|
}
|
|
12795
13169
|
static get style() { return EdsSectionCoreStyle0; }
|
|
12796
13170
|
static get cmpMeta() { return {
|
|
@@ -12845,12 +13219,12 @@ class EdsSectionHeading {
|
|
|
12845
13219
|
render() {
|
|
12846
13220
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
12847
13221
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
12848
|
-
return (hAsync(TagType, { key: '
|
|
13222
|
+
return (hAsync(TagType, { key: '2af16d4d21378244ba843b619b3fd4f283b3e179', class: {
|
|
12849
13223
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
12850
13224
|
container: this.withContainer,
|
|
12851
13225
|
'pt-48': this.spacingLarge,
|
|
12852
13226
|
'pt-28': !this.spacingLarge
|
|
12853
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13227
|
+
} }, hAsync(HeadingTag, { key: '8caa529d940fd5d2f7e8f49f7b8e5f2572712f9e', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
12854
13228
|
}
|
|
12855
13229
|
static get cmpMeta() { return {
|
|
12856
13230
|
"$flags$": 0,
|
|
@@ -12868,7 +13242,7 @@ class EdsSectionHeading {
|
|
|
12868
13242
|
}; }
|
|
12869
13243
|
}
|
|
12870
13244
|
|
|
12871
|
-
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)}.
|
|
13245
|
+
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}";
|
|
12872
13246
|
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
12873
13247
|
|
|
12874
13248
|
/**
|
|
@@ -12922,11 +13296,9 @@ class EdsSocialNetworks {
|
|
|
12922
13296
|
/**
|
|
12923
13297
|
* Renders the component's HTML structure with links to EBRAINS social profiles.
|
|
12924
13298
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
12925
|
-
*
|
|
12926
|
-
* @returns {JSX.Element} The rendered JSX for the component.
|
|
12927
13299
|
*/
|
|
12928
13300
|
render() {
|
|
12929
|
-
return (hAsync("
|
|
13301
|
+
return (hAsync("nav", { key: '62692c53f820ff5d6569e42af692063ad8918cdd', "aria-label": "Social media" }, hAsync("p", { key: 'a571612ba3c1b669e0145484bec4d480b17c1979', class: "f-ui-02" }, this.heading), hAsync("ul", { key: 'c0cc02cd5eebf16130f7b09fb8f11319695fdccb', 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" })))))));
|
|
12930
13302
|
}
|
|
12931
13303
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
12932
13304
|
static get cmpMeta() { return {
|
|
@@ -13017,7 +13389,7 @@ class EdsSpinner {
|
|
|
13017
13389
|
alignItems: 'center',
|
|
13018
13390
|
justifyContent: 'center'
|
|
13019
13391
|
};
|
|
13020
|
-
return (hAsync(Host, { key: '
|
|
13392
|
+
return (hAsync(Host, { key: 'b10a5d28d0b06e7b36276fb814e3b8b57b767094' }, hAsync("div", { key: '8f2205bb74775c16660d35f80bf880ac9c39d725', class: "spinner-overlay", style: overlayStyle }, hAsync("span", { key: 'f681700791c6c10ea63473f34719a873757bcf5e', class: "spinner", style: spinnerStyle }), this.message && hAsync("p", { key: 'b0afdd60a6c74fd740626cb7da3402a9a5075e34', class: "f-body-01" }, this.message))));
|
|
13021
13393
|
}
|
|
13022
13394
|
static get style() { return EdsSpinnerStyle0; }
|
|
13023
13395
|
static get cmpMeta() { return {
|
|
@@ -13101,40 +13473,60 @@ class EdsSplashScreen {
|
|
|
13101
13473
|
}; }
|
|
13102
13474
|
}
|
|
13103
13475
|
|
|
13104
|
-
const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top
|
|
13476
|
+
const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:-2px;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}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.my-16{margin-top:1rem;margin-bottom:1rem}.mt-16{margin-top:1rem}.mb-28{margin-bottom:1.75rem}.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}.cursor-pointer{cursor:pointer}";
|
|
13105
13477
|
var EdsStepsStyle0 = edsStepsCss;
|
|
13106
13478
|
|
|
13107
13479
|
class EdsSteps {
|
|
13108
13480
|
constructor(hostRef) {
|
|
13109
13481
|
registerInstance(this, hostRef);
|
|
13110
13482
|
this.step = createEvent(this, "step", 7);
|
|
13483
|
+
this.finished = createEvent(this, "finished", 7);
|
|
13484
|
+
this.next = createEvent(this, "next", 7);
|
|
13485
|
+
this.back = createEvent(this, "back", 7);
|
|
13111
13486
|
this.handleNext = () => {
|
|
13112
|
-
|
|
13113
|
-
if (this.activeStep
|
|
13114
|
-
this.
|
|
13487
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
13488
|
+
if (this.activeStep >= lastIndex) {
|
|
13489
|
+
this.finished.emit();
|
|
13490
|
+
return;
|
|
13491
|
+
}
|
|
13492
|
+
const target = this.activeStep + 1;
|
|
13493
|
+
this.next.emit(target);
|
|
13494
|
+
if (this.isNextDisabledFor(this.activeStep)) {
|
|
13495
|
+
return;
|
|
13496
|
+
} // block advance only if current is disabled
|
|
13497
|
+
this.activeStep = target;
|
|
13498
|
+
this.step.emit(this.activeStep);
|
|
13499
|
+
// 2) if using the boolean form, clear it when moving away from a step
|
|
13500
|
+
if (!Array.isArray(this.disableNext)) {
|
|
13501
|
+
this.disableNext = false;
|
|
13115
13502
|
}
|
|
13116
13503
|
};
|
|
13117
13504
|
this.handleBack = () => {
|
|
13118
13505
|
if (this.activeStep > 0) {
|
|
13119
|
-
|
|
13506
|
+
const target = this.activeStep - 1;
|
|
13507
|
+
this.back.emit(target);
|
|
13508
|
+
this.activeStep = target;
|
|
13120
13509
|
this.step.emit(this.activeStep);
|
|
13510
|
+
// also clear boolean form on back
|
|
13511
|
+
if (!Array.isArray(this.disableNext)) {
|
|
13512
|
+
this.disableNext = false;
|
|
13513
|
+
}
|
|
13121
13514
|
}
|
|
13122
13515
|
};
|
|
13123
13516
|
this.steps = [];
|
|
13124
13517
|
this.type = 'static';
|
|
13518
|
+
this.nextLabel = 'Next';
|
|
13519
|
+
this.backLabel = 'Back';
|
|
13520
|
+
this.finishLabel = 'Finish';
|
|
13521
|
+
this.disableNext = false;
|
|
13522
|
+
this.headingLevel = 'h4';
|
|
13125
13523
|
this.activeStep = 0;
|
|
13126
13524
|
}
|
|
13127
|
-
/**
|
|
13128
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
13129
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
13130
|
-
*/
|
|
13131
13525
|
componentDidLoad() {
|
|
13132
13526
|
var _a;
|
|
13133
13527
|
if (this.type === 'linear') {
|
|
13134
13528
|
const btns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-button');
|
|
13135
|
-
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) =>
|
|
13136
|
-
this.emitContext(btn);
|
|
13137
|
-
});
|
|
13529
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
13138
13530
|
}
|
|
13139
13531
|
}
|
|
13140
13532
|
activeStepChanged(newValue) {
|
|
@@ -13142,19 +13534,10 @@ class EdsSteps {
|
|
|
13142
13534
|
var _a;
|
|
13143
13535
|
const activeStepContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.step')[newValue];
|
|
13144
13536
|
if (activeStepContainer) {
|
|
13145
|
-
|
|
13146
|
-
btns.forEach((btn) => {
|
|
13147
|
-
this.emitContext(btn);
|
|
13148
|
-
});
|
|
13537
|
+
activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13149
13538
|
}
|
|
13150
13539
|
}, 50);
|
|
13151
13540
|
}
|
|
13152
|
-
/**
|
|
13153
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
13154
|
-
* This event provides context information about the breadcrumb component.
|
|
13155
|
-
*
|
|
13156
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
13157
|
-
*/
|
|
13158
13541
|
emitContext(linkElement) {
|
|
13159
13542
|
const event = new CustomEvent('parentContext', {
|
|
13160
13543
|
detail: {
|
|
@@ -13164,26 +13547,29 @@ class EdsSteps {
|
|
|
13164
13547
|
});
|
|
13165
13548
|
linkElement.dispatchEvent(event);
|
|
13166
13549
|
}
|
|
13167
|
-
handleStepClick(index) {
|
|
13168
|
-
this.step.emit(index);
|
|
13169
|
-
// In linear mode, update the active step on header click.
|
|
13170
|
-
if (this.type === 'linear') {
|
|
13171
|
-
this.activeStep = index;
|
|
13172
|
-
}
|
|
13173
|
-
}
|
|
13174
|
-
/**
|
|
13175
|
-
* Parse the JSON string into an array of steps.
|
|
13176
|
-
*/
|
|
13177
13550
|
get parsedSteps() {
|
|
13178
13551
|
return parseData(this.steps);
|
|
13179
13552
|
}
|
|
13553
|
+
isNextDisabledFor(index) {
|
|
13554
|
+
return Array.isArray(this.disableNext)
|
|
13555
|
+
? !!this.disableNext[index] // per-step
|
|
13556
|
+
: index === this.activeStep && !!this.disableNext; // only active step
|
|
13557
|
+
}
|
|
13558
|
+
/** Render the semantic heading element */
|
|
13559
|
+
renderHeading(title) {
|
|
13560
|
+
const Tag = this.headingLevel;
|
|
13561
|
+
return hAsync(Tag, null, title);
|
|
13562
|
+
}
|
|
13180
13563
|
render() {
|
|
13181
13564
|
const steps = this.parsedSteps;
|
|
13182
13565
|
if (this.type === 'linear') {
|
|
13183
|
-
return (hAsync("div",
|
|
13566
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => {
|
|
13567
|
+
const isLast = index === steps.length - 1;
|
|
13568
|
+
return (hAsync("div", { class: "step mb-28", key: index }, this.renderHeading(step.title), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: isLast ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), hAsync("div", { class: "flex items-center mt-16" }, 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: "ml-8" })), hAsync("slot", { name: `actions-${index}` })))));
|
|
13569
|
+
})));
|
|
13184
13570
|
}
|
|
13185
|
-
// Static
|
|
13186
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index },
|
|
13571
|
+
// Static: no navigation buttons
|
|
13572
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, this.renderHeading(step.title), hAsync("div", { class: "content" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter my-16', innerHTML: step.content }))))))));
|
|
13187
13573
|
}
|
|
13188
13574
|
get el() { return getElement(this); }
|
|
13189
13575
|
static get watchers() { return {
|
|
@@ -13196,30 +13582,49 @@ class EdsSteps {
|
|
|
13196
13582
|
"$members$": {
|
|
13197
13583
|
"steps": [1],
|
|
13198
13584
|
"type": [1],
|
|
13585
|
+
"nextLabel": [1, "next-label"],
|
|
13586
|
+
"backLabel": [1, "back-label"],
|
|
13587
|
+
"finishLabel": [1, "finish-label"],
|
|
13588
|
+
"disableNext": [1028, "disable-next"],
|
|
13589
|
+
"headingLevel": [513, "heading-level"],
|
|
13199
13590
|
"activeStep": [32]
|
|
13200
13591
|
},
|
|
13201
13592
|
"$listeners$": undefined,
|
|
13202
13593
|
"$lazyBundleId$": "-",
|
|
13203
|
-
"$attrsToReflect$": []
|
|
13594
|
+
"$attrsToReflect$": [["headingLevel", "heading-level"]]
|
|
13204
13595
|
}; }
|
|
13205
13596
|
}
|
|
13206
13597
|
|
|
13207
|
-
const edsStepsV2Css = "
|
|
13598
|
+
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:-40px;top:-2px;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)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.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}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}";
|
|
13208
13599
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
13209
13600
|
|
|
13210
13601
|
class EdsStepsV2 {
|
|
13211
13602
|
constructor(hostRef) {
|
|
13212
13603
|
registerInstance(this, hostRef);
|
|
13213
13604
|
this.step = createEvent(this, "step", 7);
|
|
13605
|
+
this.finished = createEvent(this, "finished", 7);
|
|
13606
|
+
this.next = createEvent(this, "next", 7);
|
|
13607
|
+
this.back = createEvent(this, "back", 7);
|
|
13214
13608
|
this.handleNext = () => {
|
|
13215
|
-
|
|
13216
|
-
if (this.activeStep
|
|
13609
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
13610
|
+
if (this.activeStep >= lastIndex) {
|
|
13611
|
+
// Finish
|
|
13612
|
+
this.finished.emit();
|
|
13613
|
+
return;
|
|
13614
|
+
}
|
|
13615
|
+
// Next
|
|
13616
|
+
const target = this.activeStep + 1;
|
|
13617
|
+
this.next.emit(target);
|
|
13618
|
+
if (!this.disableNext) {
|
|
13619
|
+
this.activeStep = target;
|
|
13217
13620
|
this.step.emit(this.activeStep);
|
|
13218
13621
|
}
|
|
13219
13622
|
};
|
|
13220
13623
|
this.handleBack = () => {
|
|
13221
13624
|
if (this.activeStep > 0) {
|
|
13222
|
-
|
|
13625
|
+
const target = this.activeStep - 1;
|
|
13626
|
+
this.back.emit(target);
|
|
13627
|
+
this.activeStep = target;
|
|
13223
13628
|
this.step.emit(this.activeStep);
|
|
13224
13629
|
}
|
|
13225
13630
|
};
|
|
@@ -13229,6 +13634,11 @@ class EdsStepsV2 {
|
|
|
13229
13634
|
this.imageWidth = undefined;
|
|
13230
13635
|
this.bg = true;
|
|
13231
13636
|
this.message = undefined;
|
|
13637
|
+
this.nextLabel = 'Next';
|
|
13638
|
+
this.backLabel = 'Back';
|
|
13639
|
+
this.finishLabel = 'Finish';
|
|
13640
|
+
this.disableNext = false;
|
|
13641
|
+
this.headingLevel = 'h4';
|
|
13232
13642
|
this.activeStep = 0;
|
|
13233
13643
|
}
|
|
13234
13644
|
componentDidLoad() {
|
|
@@ -13267,24 +13677,22 @@ class EdsStepsV2 {
|
|
|
13267
13677
|
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
13268
13678
|
].join(' ');
|
|
13269
13679
|
}
|
|
13270
|
-
handleStepClick(index) {
|
|
13271
|
-
this.step.emit(index);
|
|
13272
|
-
// In linear mode, update the active step on header click.
|
|
13273
|
-
if (this.type === 'linear') {
|
|
13274
|
-
this.activeStep = index;
|
|
13275
|
-
}
|
|
13276
|
-
}
|
|
13277
13680
|
/**
|
|
13278
13681
|
* Parses the steps property into an array of Step objects.
|
|
13279
13682
|
*/
|
|
13280
13683
|
get parsedSteps() {
|
|
13281
13684
|
return parseData(this.steps);
|
|
13282
13685
|
}
|
|
13686
|
+
/** Render the semantic heading element */
|
|
13687
|
+
renderHeading(title) {
|
|
13688
|
+
const Tag = this.headingLevel;
|
|
13689
|
+
return hAsync(Tag, null, title);
|
|
13690
|
+
}
|
|
13283
13691
|
render() {
|
|
13284
13692
|
const steps = this.parsedSteps;
|
|
13285
|
-
return (hAsync("div", { key: '
|
|
13693
|
+
return (hAsync("div", { key: '1ff00f17a85e9a3a9d7bef23694560acd77e7ee4', 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: 'a0328e80df5d9447cfa5378eb9e45925f1f68c69', class: "pb-20 px-8" }, this.type === 'linear' ? (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: index === 0 ? 'step' : 'step space-y-16', key: index }, this.renderHeading(step.title), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter' : 'f-body-02 text-lighter', innerHTML: step.content })), hAsync("div", { class: "flex items-center" }, 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.disableNext, size: "small", class: "ml-8" }))))))))) : (
|
|
13286
13694
|
// Static mode: show all steps with their content.
|
|
13287
|
-
hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index },
|
|
13695
|
+
hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, this.renderHeading(step.title), hAsync("div", { class: "content" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: index === steps.length - 1 ? 'f-body-02 text-lighter mt-16' : 'f-body-02 text-lighter', innerHTML: step.content })))))))))));
|
|
13288
13696
|
}
|
|
13289
13697
|
get el() { return getElement(this); }
|
|
13290
13698
|
static get watchers() { return {
|
|
@@ -13301,15 +13709,20 @@ class EdsStepsV2 {
|
|
|
13301
13709
|
"imageWidth": [2, "image-width"],
|
|
13302
13710
|
"bg": [4],
|
|
13303
13711
|
"message": [1],
|
|
13712
|
+
"nextLabel": [1, "next-label"],
|
|
13713
|
+
"backLabel": [1, "back-label"],
|
|
13714
|
+
"finishLabel": [1, "finish-label"],
|
|
13715
|
+
"disableNext": [4, "disable-next"],
|
|
13716
|
+
"headingLevel": [513, "heading-level"],
|
|
13304
13717
|
"activeStep": [32]
|
|
13305
13718
|
},
|
|
13306
13719
|
"$listeners$": undefined,
|
|
13307
13720
|
"$lazyBundleId$": "-",
|
|
13308
|
-
"$attrsToReflect$": []
|
|
13721
|
+
"$attrsToReflect$": [["headingLevel", "heading-level"]]
|
|
13309
13722
|
}; }
|
|
13310
13723
|
}
|
|
13311
13724
|
|
|
13312
|
-
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch
|
|
13725
|
+
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.switch:focus{outline:2px solid #005fcc;outline-offset:2px}.switch:focus:not(:focus-visible){outline:none}.switch:focus-visible{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}";
|
|
13313
13726
|
var EdsSwitchStyle0 = edsSwitchCss;
|
|
13314
13727
|
|
|
13315
13728
|
class EdsSwitch {
|
|
@@ -13329,19 +13742,41 @@ class EdsSwitch {
|
|
|
13329
13742
|
action: 'checked'
|
|
13330
13743
|
});
|
|
13331
13744
|
};
|
|
13745
|
+
this.handleKeyDown = (e) => {
|
|
13746
|
+
if (this.disabled) {
|
|
13747
|
+
return;
|
|
13748
|
+
}
|
|
13749
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13750
|
+
e.preventDefault();
|
|
13751
|
+
this.toggleSwitch();
|
|
13752
|
+
}
|
|
13753
|
+
};
|
|
13332
13754
|
this.checked = false;
|
|
13333
13755
|
this.disabled = false;
|
|
13334
13756
|
this.labelOn = '';
|
|
13335
13757
|
this.labelOff = '';
|
|
13336
13758
|
}
|
|
13337
13759
|
render() {
|
|
13338
|
-
|
|
13339
|
-
const
|
|
13340
|
-
|
|
13760
|
+
const switchId = `switch-${Math.random().toString(36).substr(2, 9)}`;
|
|
13761
|
+
const labelledBy = [];
|
|
13762
|
+
if (this.labelOff) {
|
|
13763
|
+
labelledBy.push(`${switchId}-off`);
|
|
13764
|
+
}
|
|
13765
|
+
if (this.labelOn) {
|
|
13766
|
+
labelledBy.push(`${switchId}-on`);
|
|
13767
|
+
}
|
|
13768
|
+
const accessibleLabel = labelledBy.length === 0
|
|
13769
|
+
? this.labelOn || this.labelOff
|
|
13770
|
+
? this.checked
|
|
13771
|
+
? this.labelOn
|
|
13772
|
+
: this.labelOff
|
|
13773
|
+
: 'Toggle switch'
|
|
13774
|
+
: undefined;
|
|
13775
|
+
return (hAsync("div", { key: '95a833cbe8e736d7e747f6fdd8504dd8c169ea60', class: "switch-container" }, this.labelOff && (hAsync("span", { key: 'a88de63c35409ab244a6cba5bd70a10728a08b2a', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), hAsync("button", { key: 'd6573f05164f2b57063e9a97c3b983f32700bd7a', 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: {
|
|
13341
13776
|
switch: true,
|
|
13342
13777
|
'switch--checked': this.checked,
|
|
13343
13778
|
'switch--disabled': this.disabled
|
|
13344
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '
|
|
13779
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '35e6da3bb76779bfaad04d8990dec419524fb543', class: "switch-handle" })), this.labelOn && (hAsync("span", { key: 'b14243d9d45dbdddb9473ad2c5696e07be9831d3', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
13345
13780
|
}
|
|
13346
13781
|
get el() { return getElement(this); }
|
|
13347
13782
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -13360,14 +13795,13 @@ class EdsSwitch {
|
|
|
13360
13795
|
}; }
|
|
13361
13796
|
}
|
|
13362
13797
|
|
|
13363
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
13798
|
+
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}";
|
|
13364
13799
|
var EdsTableStyle0 = edsTableCss;
|
|
13365
13800
|
|
|
13366
13801
|
/**
|
|
13367
13802
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
13368
13803
|
*
|
|
13369
13804
|
* Key Features:
|
|
13370
|
-
* - Accepts static data or fetches dynamic data from an endpoint.
|
|
13371
13805
|
* - Configurable columns with options to hide or apply text formatting (uppercase, bold, or code).
|
|
13372
13806
|
* - Pagination support with adjustable rows per page.
|
|
13373
13807
|
* - Searchable content for easier data filtering.
|
|
@@ -13381,8 +13815,33 @@ class EdsTable {
|
|
|
13381
13815
|
this.handleResize = () => {
|
|
13382
13816
|
this.updateContainerWidth();
|
|
13383
13817
|
};
|
|
13818
|
+
this.onActionKeyDown = (e) => {
|
|
13819
|
+
var _a;
|
|
13820
|
+
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') {
|
|
13821
|
+
return;
|
|
13822
|
+
}
|
|
13823
|
+
e.preventDefault();
|
|
13824
|
+
const currentButton = e.target;
|
|
13825
|
+
const toolbar = currentButton.closest('[role="toolbar"]');
|
|
13826
|
+
if (!toolbar) {
|
|
13827
|
+
return;
|
|
13828
|
+
}
|
|
13829
|
+
// Find all focusable action buttons in this row
|
|
13830
|
+
const actionButtons = Array.from(toolbar.querySelectorAll('eds-button'));
|
|
13831
|
+
const currentIndex = actionButtons.indexOf(currentButton);
|
|
13832
|
+
if (currentIndex === -1) {
|
|
13833
|
+
return;
|
|
13834
|
+
}
|
|
13835
|
+
let nextIndex;
|
|
13836
|
+
if (e.key === 'ArrowRight') {
|
|
13837
|
+
nextIndex = (currentIndex + 1) % actionButtons.length;
|
|
13838
|
+
}
|
|
13839
|
+
else {
|
|
13840
|
+
nextIndex = (currentIndex - 1 + actionButtons.length) % actionButtons.length;
|
|
13841
|
+
}
|
|
13842
|
+
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13843
|
+
};
|
|
13384
13844
|
this.data = null;
|
|
13385
|
-
this.endpoint = null;
|
|
13386
13845
|
this.config = {};
|
|
13387
13846
|
this.rowsPerPage = 10;
|
|
13388
13847
|
this.paginationEnabled = true;
|
|
@@ -13420,7 +13879,7 @@ class EdsTable {
|
|
|
13420
13879
|
componentWillLoad() {
|
|
13421
13880
|
this.parseConfig();
|
|
13422
13881
|
this.handleActionsChange();
|
|
13423
|
-
this.
|
|
13882
|
+
this.parseData();
|
|
13424
13883
|
}
|
|
13425
13884
|
componentDidLoad() {
|
|
13426
13885
|
this.updateContainerWidth();
|
|
@@ -13468,24 +13927,13 @@ class EdsTable {
|
|
|
13468
13927
|
this.parsedConfig = {};
|
|
13469
13928
|
}
|
|
13470
13929
|
}
|
|
13471
|
-
async fetchData() {
|
|
13472
|
-
try {
|
|
13473
|
-
const response = await fetch(this.endpoint);
|
|
13474
|
-
const data = await response.json();
|
|
13475
|
-
this.data = data;
|
|
13476
|
-
}
|
|
13477
|
-
catch (error) {
|
|
13478
|
-
// eslint-disable-next-line
|
|
13479
|
-
console.error('Failed to fetch data:', error);
|
|
13480
|
-
}
|
|
13481
|
-
}
|
|
13482
13930
|
setupPaginationListener() {
|
|
13483
13931
|
if (!this.shouldEnablePagination()) {
|
|
13484
13932
|
return;
|
|
13485
13933
|
}
|
|
13486
13934
|
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
13487
13935
|
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
13488
|
-
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail));
|
|
13936
|
+
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail.value));
|
|
13489
13937
|
paginationEl.setAttribute('listener-attached', 'true');
|
|
13490
13938
|
}
|
|
13491
13939
|
}
|
|
@@ -13533,7 +13981,10 @@ class EdsTable {
|
|
|
13533
13981
|
const checked = !!row[boundField];
|
|
13534
13982
|
return (hAsync("eds-input-field", { name: `chc-${actionName}`, label: act.label, type: "checkbox", checked: checked, onChange: (e) => this.emitAction(act.name, row, e.target.checked) }));
|
|
13535
13983
|
}
|
|
13536
|
-
|
|
13984
|
+
// Let all action buttons be focusable naturally
|
|
13985
|
+
const showLabel = act.showLabel === true;
|
|
13986
|
+
const btn = (hAsync("eds-button", { icon: act.icon, label: showLabel ? act.label : null, iconPos: "left", pill: true, size: "small", intent: "ghost", tabIndex: 0, onClick: () => this.emitAction(act.name, row) }));
|
|
13987
|
+
return showLabel ? btn : hAsync("eds-tooltip", { content: act.label }, btn);
|
|
13537
13988
|
}
|
|
13538
13989
|
emitAction(actionName, row, checked) {
|
|
13539
13990
|
sendAnalytics({
|
|
@@ -13579,7 +14030,7 @@ class EdsTable {
|
|
|
13579
14030
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
13580
14031
|
const paginatedRows = this.getPaginatedRows();
|
|
13581
14032
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13582
|
-
return (hAsync("div", { key: '
|
|
14033
|
+
return (hAsync("div", { key: '67cfdabc741af13585699e43e67ba0d204a60706' }, this.searchEnabled && (hAsync("div", { key: '208240b9832f9b2e9645cc9d7315a43bd47b54b3' }, 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: '893924497d1535b7d29bc0b64ba48f4a3e366c43', class: "mt-20" }, hAsync("table", { key: 'a019fa4f2886d4c2aa4bddc88dc7b6d7aa63fdcb', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: 'a6360fea59c605878e443a23cf45d0f8a9644140' }, hAsync("tr", { key: '09702e8838f32c52bf6314b59ec598c6fa55d609', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
13583
14034
|
var _a;
|
|
13584
14035
|
if (col === 'actions') {
|
|
13585
14036
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
@@ -13588,17 +14039,22 @@ class EdsTable {
|
|
|
13588
14039
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
13589
14040
|
}
|
|
13590
14041
|
return null;
|
|
13591
|
-
}))), hAsync("tbody", { key: '
|
|
14042
|
+
}))), hAsync("tbody", { key: '5cdb3697e6c84921a823b40714a497f02c82e360' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((col) => {
|
|
13592
14043
|
var _a;
|
|
13593
14044
|
if (col === 'actions') {
|
|
13594
|
-
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", {
|
|
14045
|
+
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: {
|
|
14046
|
+
display: 'flex',
|
|
14047
|
+
gap: '0.5rem',
|
|
14048
|
+
justifyContent: 'center',
|
|
14049
|
+
flexWrap: 'wrap'
|
|
14050
|
+
} }, this.parsedActions.map((act) => (hAsync("span", { style: { whiteSpace: 'nowrap' } }, this.renderSingleActionCell(act.name, row)))))));
|
|
13595
14051
|
}
|
|
13596
14052
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13597
14053
|
// Regular data cell
|
|
13598
14054
|
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)));
|
|
13599
14055
|
}
|
|
13600
14056
|
return null;
|
|
13601
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14057
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: 'f5af2cd6e65c3ed55ec2810ec4b1e3f891866271', class: "mt-20" }, hAsync("eds-pagination", { key: '32965384707df502fb197712c73bb290e38ce040', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
13602
14058
|
}
|
|
13603
14059
|
get hostEl() { return getElement(this); }
|
|
13604
14060
|
static get watchers() { return {
|
|
@@ -13612,7 +14068,6 @@ class EdsTable {
|
|
|
13612
14068
|
"$tagName$": "eds-table",
|
|
13613
14069
|
"$members$": {
|
|
13614
14070
|
"data": [1, "table-data"],
|
|
13615
|
-
"endpoint": [1],
|
|
13616
14071
|
"config": [1],
|
|
13617
14072
|
"rowsPerPage": [2, "rows-per-page"],
|
|
13618
14073
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
@@ -13637,7 +14092,7 @@ class EdsTable {
|
|
|
13637
14092
|
}; }
|
|
13638
14093
|
}
|
|
13639
14094
|
|
|
13640
|
-
const edsTabsCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(147 197 253 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;}::before,::after{--tw-content:''}a{color:inherit;text-decoration:inherit}.relative{position:relative}.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)}.whitespace-nowrap{white-space:nowrap}.effect-
|
|
14095
|
+
const edsTabsCss = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(147 197 253 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;}::before,::after{--tw-content:''}a{color:inherit;text-decoration:inherit}.relative{position:relative}.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)}.whitespace-nowrap{white-space:nowrap}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus:focus-visible{outline-style:solid}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.focus-visible\\:text-default:focus-visible{color:var(--black)}.hover\\:text-default:hover{color:var(--black)}.border-2{border-width:2px}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.after\\:bottom-0::after{bottom:0rem}.after\\:border-0::after{border-width:0px}.after\\:border-b-2::after{border-bottom-width:2px}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:rounded-lg::after{border-radius:16px}.after\\:border-solid::after{border-style:solid}.after\\:border-3::after{border-width:3px}.after\\:border-accent::after{border-color:var(--green-500)}.after\\:opacity-0::after{opacity:0}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:after\\:opacity-100:focus-visible::after{opacity:1}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.rounded-tl-lg{border-top-left-radius:16px}.rounded-tr-lg{border-top-right-radius:16px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.border-b-0{border-bottom-width:0px}.pr-28{padding-right:1.75rem}.pl-28{padding-left:1.75rem}.-mr-16{margin-right:-1rem}.-ml-16{margin-left:-1rem}.px-16{padding-left:1rem;padding-right:1rem}.py-12{padding-top:0.75rem;padding-bottom:0.75rem}.after\\:left-16::after{left:1rem}.after\\:right-16::after{right:1rem}.text-lighter{color:var(--grey-600)}.bg-dark{background-color:var(--grey-300)}.hover\\:bg-darker:hover{background-color:var(--grey-400)}.border-soft{border-color:var(--grey-400)}.border-softest{border-color:rgba(0, 0, 0, .05)}.bg-default{background-color:var(--grey-200)}.text-default{color:var(--black)}.z-99{z-index:99}.after\\:z-10::after{z-index:10}.before\\:bottom-0::before{bottom:0rem}.before\\:h-12::before{height:0.75rem}.before\\:opacity-5::before{opacity:0.05}.before\\:content-\\[\\'\\'\\]::before{--tw-content:'';content:var(--tw-content)}.before\\:absolute::before{position:absolute}.before\\:-bottom-2::before{bottom:-0.125rem}.after\\:inset-x-0::after{left:0rem;right:0rem}.before\\:inset-x-0::before{left:0rem;right:0rem}.before\\:h-3::before{height:0.1875rem}.before\\:bg-default::before{background-color:var(--grey-200)}.after\\:border-soft::after{border-color:rgba(0, 0, 0, .15 )}.after\\:border-softest::after{border-color:rgba(0, 0, 0, .05)}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.before\\:bg-gradient-y::before{background:linear-gradient(to bottom, transparent, ease-in-out, black)}.scroller-x{-ms-overflow-style:none;scrollbar-width:none}.overflow-x-auto{overflow-x:auto}.max-w-xxxl{max-width:2200px}.z-1{z-index:1}.mx-auto{margin-left:auto;margin-right:auto}.pt-8{padding-top:0.5rem}.pr-16{padding-right:1rem}.pl-16{padding-left:1rem}.inline-flex{display:inline-flex}@media (min-width: 900px){.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}}@media (min-width: 2200px){.xxxl\\:px-0{padding-left:0rem;padding-right:0rem}}";
|
|
13641
14096
|
var EdsTabsStyle0 = edsTabsCss;
|
|
13642
14097
|
|
|
13643
14098
|
/**
|
|
@@ -13653,15 +14108,20 @@ class EdsTabs {
|
|
|
13653
14108
|
constructor(hostRef) {
|
|
13654
14109
|
registerInstance(this, hostRef);
|
|
13655
14110
|
this.tab = createEvent(this, "tab", 7);
|
|
14111
|
+
this.tabRefs = [];
|
|
14112
|
+
// Store tab reference
|
|
14113
|
+
this.setTabRef = (el, index) => {
|
|
14114
|
+
if (el) {
|
|
14115
|
+
this.tabRefs[index] = el;
|
|
14116
|
+
}
|
|
14117
|
+
};
|
|
13656
14118
|
// cva configuration
|
|
13657
14119
|
this.tabCva = cva([
|
|
13658
14120
|
'relative py-12',
|
|
13659
14121
|
'f-ui-03 whitespace-nowrap',
|
|
13660
|
-
'effect-color',
|
|
14122
|
+
'effect-color effect-focus',
|
|
13661
14123
|
'focus-visible:text-default hover:text-default',
|
|
13662
|
-
'border-2'
|
|
13663
|
-
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:opacity-0",
|
|
13664
|
-
'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
|
|
14124
|
+
'border-2'
|
|
13665
14125
|
], {
|
|
13666
14126
|
variants: {
|
|
13667
14127
|
position: {
|
|
@@ -13671,7 +14131,10 @@ class EdsTabs {
|
|
|
13671
14131
|
right: 'pl-28 pr-16 rounded-tr-lg border-l-0 -ml-16 after:left-16'
|
|
13672
14132
|
},
|
|
13673
14133
|
active: {
|
|
13674
|
-
false:
|
|
14134
|
+
false: [
|
|
14135
|
+
'text-lighter bg-dark hover:bg-darker border-softest border-b-0 z-1',
|
|
14136
|
+
"after:content-[''] after:absolute after:bottom-0 after:inset-x-0 after:h-2 after:border-soft"
|
|
14137
|
+
],
|
|
13675
14138
|
true: [
|
|
13676
14139
|
'bg-default text-default z-99',
|
|
13677
14140
|
'rounded-t-lg',
|
|
@@ -13690,28 +14153,35 @@ class EdsTabs {
|
|
|
13690
14153
|
componentWillLoad() {
|
|
13691
14154
|
this.parseTabs();
|
|
13692
14155
|
this.setActiveIndex();
|
|
13693
|
-
this.tab.emit({ tabId: this.identifier, index:
|
|
14156
|
+
this.tab.emit({ tabId: this.identifier, index: this.activeIndex });
|
|
13694
14157
|
}
|
|
13695
14158
|
/**
|
|
13696
|
-
* Parses the `
|
|
13697
|
-
* Returns an empty array if parsing fails or if `
|
|
13698
|
-
*
|
|
13699
|
-
* @returns {any[]} Array of parsed link objects
|
|
13700
|
-
*/
|
|
13701
|
-
/**
|
|
13702
|
-
* Parses the `links` prop into an array of link objects.
|
|
13703
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14159
|
+
* Parses the `tabs` prop into an array of tab objects.
|
|
14160
|
+
* Returns an empty array if parsing fails or if `tabs` is not a valid JSON string or object.
|
|
13704
14161
|
*
|
|
13705
|
-
* @returns {any[]} Array of parsed
|
|
14162
|
+
* @returns {any[]} Array of parsed tab objects
|
|
13706
14163
|
*/
|
|
13707
14164
|
parseTabs() {
|
|
13708
14165
|
this.parsedTabs = parseData(this.tabs);
|
|
14166
|
+
// Reset tab refs when tabs change
|
|
14167
|
+
this.tabRefs = [];
|
|
13709
14168
|
}
|
|
13710
14169
|
componentDidLoad() {
|
|
13711
14170
|
this.scrollToActiveTab();
|
|
13712
14171
|
}
|
|
14172
|
+
componentDidUpdate() {
|
|
14173
|
+
// Ensure we have the correct number of tab refs after render
|
|
14174
|
+
if (this.tabRefs.length !== this.parsedTabs.length) {
|
|
14175
|
+
this.tabRefs = new Array(this.parsedTabs.length).fill(null);
|
|
14176
|
+
}
|
|
14177
|
+
}
|
|
13713
14178
|
setActiveIndex() {
|
|
13714
14179
|
this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
|
|
14180
|
+
// If no active tab found, default to first tab
|
|
14181
|
+
if (this.activeIndex === -1 && this.parsedTabs.length > 0) {
|
|
14182
|
+
this.activeIndex = 0;
|
|
14183
|
+
this.parsedTabs[0].active = true;
|
|
14184
|
+
}
|
|
13715
14185
|
}
|
|
13716
14186
|
scrollToActiveTab() {
|
|
13717
14187
|
var _a;
|
|
@@ -13733,31 +14203,74 @@ class EdsTabs {
|
|
|
13733
14203
|
: index < this.activeIndex
|
|
13734
14204
|
? 'left'
|
|
13735
14205
|
: 'right';
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
14206
|
+
const rawZ = position === 'left' ? index : this.parsedTabs.length + 1 - index;
|
|
14207
|
+
// clamp inactive to at least 1
|
|
14208
|
+
const z = active ? this.parsedTabs.length + 99 : Math.max(rawZ, 1);
|
|
14209
|
+
return Object.assign({ class: this.tabCva({ active, position }), style: {
|
|
14210
|
+
// stringify the number so it matches { [key: string]: string }
|
|
14211
|
+
zIndex: `${z}`
|
|
13741
14212
|
} }, (active ? { 'data-tab-active': 'true' } : {}));
|
|
13742
14213
|
}
|
|
13743
|
-
handleTabClick(index, tabLabel) {
|
|
14214
|
+
handleTabClick(index, tabLabel, shouldFocus = true) {
|
|
14215
|
+
// Validate index
|
|
14216
|
+
if (index < 0 || index >= this.parsedTabs.length) {
|
|
14217
|
+
return;
|
|
14218
|
+
}
|
|
13744
14219
|
// Update the active index and set all tabs' active state accordingly
|
|
13745
14220
|
this.activeIndex = index;
|
|
13746
14221
|
this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
|
|
13747
14222
|
this.tab.emit({ tabId: this.identifier, index: index, name: tabLabel });
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
14223
|
+
// Only send analytics for actual clicks, not keyboard navigation
|
|
14224
|
+
if (shouldFocus) {
|
|
14225
|
+
sendAnalytics({
|
|
14226
|
+
category: 'ui-component',
|
|
14227
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14228
|
+
name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
|
|
14229
|
+
action: 'click'
|
|
14230
|
+
});
|
|
14231
|
+
}
|
|
14232
|
+
// Focus management for keyboard navigation
|
|
14233
|
+
if (shouldFocus && this.tabRefs[index]) {
|
|
14234
|
+
// Use a small timeout to ensure the DOM has updated
|
|
14235
|
+
setTimeout(() => {
|
|
14236
|
+
var _a;
|
|
14237
|
+
(_a = this.tabRefs[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14238
|
+
}, 0);
|
|
14239
|
+
}
|
|
14240
|
+
}
|
|
14241
|
+
onKeyDown(ev, idx) {
|
|
14242
|
+
let newIndex = idx;
|
|
14243
|
+
switch (ev.key) {
|
|
14244
|
+
case 'ArrowRight':
|
|
14245
|
+
newIndex = (idx + 1) % this.parsedTabs.length;
|
|
14246
|
+
ev.preventDefault();
|
|
14247
|
+
break;
|
|
14248
|
+
case 'ArrowLeft':
|
|
14249
|
+
newIndex = (idx - 1 + this.parsedTabs.length) % this.parsedTabs.length;
|
|
14250
|
+
ev.preventDefault();
|
|
14251
|
+
break;
|
|
14252
|
+
case 'Home':
|
|
14253
|
+
newIndex = 0;
|
|
14254
|
+
ev.preventDefault();
|
|
14255
|
+
break;
|
|
14256
|
+
case 'End':
|
|
14257
|
+
newIndex = this.parsedTabs.length - 1;
|
|
14258
|
+
ev.preventDefault();
|
|
14259
|
+
break;
|
|
14260
|
+
default:
|
|
14261
|
+
return; // Don't handle other keys
|
|
14262
|
+
}
|
|
14263
|
+
if (newIndex !== idx) {
|
|
14264
|
+
this.handleTabClick(newIndex, this.parsedTabs[newIndex].label, true);
|
|
14265
|
+
}
|
|
13754
14266
|
}
|
|
13755
14267
|
render() {
|
|
13756
|
-
return (hAsync("div", { key: '
|
|
13757
|
-
const TabComponent =
|
|
14268
|
+
return (hAsync("div", { key: '7cb51cf475d45ee3e43877ee4d42565f5930613a', id: `${this.identifier}` }, hAsync("div", { key: '4f3c6d23f9084f07e5728b72310b96798d20b724', 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: '4d55e72e9f437cef8be06931445f619196a973a7', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14269
|
+
const TabComponent = 'button';
|
|
13758
14270
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
13759
|
-
|
|
13760
|
-
|
|
14271
|
+
const isActive = index === this.activeIndex;
|
|
14272
|
+
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));
|
|
14273
|
+
}))), hAsync("div", { key: 'e75f877da39c25e912853fea5dc2438fc15c67b5', 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}` })))))));
|
|
13761
14274
|
}
|
|
13762
14275
|
get el() { return getElement(this); }
|
|
13763
14276
|
static get watchers() { return {
|
|
@@ -13820,7 +14333,7 @@ class EdsTag {
|
|
|
13820
14333
|
}
|
|
13821
14334
|
render() {
|
|
13822
14335
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
13823
|
-
return hAsync("span", { key: '
|
|
14336
|
+
return hAsync("span", { key: 'e3fe041e8783a7d1bb5a281eb154e3c07851da38', class: classes }, this.label);
|
|
13824
14337
|
}
|
|
13825
14338
|
static get style() { return EdsTagStyle0; }
|
|
13826
14339
|
static get cmpMeta() { return {
|
|
@@ -13882,7 +14395,7 @@ class EdsTimeline {
|
|
|
13882
14395
|
}
|
|
13883
14396
|
}
|
|
13884
14397
|
render() {
|
|
13885
|
-
return (hAsync("div", { key: '
|
|
14398
|
+
return (hAsync("div", { key: 'c3362fa23185787a8d5a974f1f53978569e28a63', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: '59f85c0ae88876cf891b8fd2852cb15426f05c2a', class: "relative" }, hAsync("div", { key: '89fc0969c72ba183dee530a428d6d1d9421b2764', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '190262fe1b382ac41fba398d05e640d0db746fe9', 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
|
|
13886
14399
|
? [{ label: 'completed', style: 'accent' }]
|
|
13887
14400
|
: [{ 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
|
|
13888
14401
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14056,7 +14569,7 @@ class EdsToastManager {
|
|
|
14056
14569
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14057
14570
|
}
|
|
14058
14571
|
render() {
|
|
14059
|
-
return (hAsync("div", { key: '
|
|
14572
|
+
return (hAsync("div", { key: '27172b1f3c76ebb460c35ea070eeff330390ed7d', 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) }))))));
|
|
14060
14573
|
}
|
|
14061
14574
|
get hostElement() { return getElement(this); }
|
|
14062
14575
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14072,7 +14585,7 @@ class EdsToastManager {
|
|
|
14072
14585
|
}; }
|
|
14073
14586
|
}
|
|
14074
14587
|
|
|
14075
|
-
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{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-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))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
|
|
14588
|
+
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{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-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))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.top-full{top:100%}.bottom-full{bottom:100%}.right-full{right:100%}.left-full{left:100%}.mr-2{margin-right:0.125rem}.ml-2{margin-left:0.125rem}.mt-2{margin-top:0.125rem}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}.max-w-\\[20rem\\]{max-width:20rem}.whitespace-normal{white-space:normal}.break-words{overflow-wrap:break-word}.w-full{width:100%}";
|
|
14076
14589
|
var EdsTooltipStyle0 = edsTooltipCss;
|
|
14077
14590
|
|
|
14078
14591
|
/**
|
|
@@ -14095,10 +14608,10 @@ class EdsTooltip {
|
|
|
14095
14608
|
}
|
|
14096
14609
|
render() {
|
|
14097
14610
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14098
|
-
return (hAsync("div", { key: '
|
|
14611
|
+
return (hAsync("div", { key: '135df7d17db03fb3bb7bbcc50ad9ee5d84a2bca2', class: "relative w-full inline-block group" }, hAsync("slot", { key: '4c12874eeb942e33f9c62ea6f1077fd051f683b6' }), hAsync("div", { key: '8bb7173d16889b2ae550dc0269d9e47e1dae00ac', class: `absolute ${positionClass}
|
|
14099
14612
|
rounded-xs bg-strongest text-inverse
|
|
14100
14613
|
f-ui-03-light pointer-events-none
|
|
14101
|
-
z-10
|
|
14614
|
+
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
14102
14615
|
group-hover:opacity-100 whitespace-normal break-words`, role: "tooltip" }, this.content)));
|
|
14103
14616
|
}
|
|
14104
14617
|
get el() { return getElement(this); }
|
|
@@ -14159,7 +14672,7 @@ class EdsTrl {
|
|
|
14159
14672
|
Application: { format: 'code' },
|
|
14160
14673
|
'Current TRL Stage': { format: 'text' }
|
|
14161
14674
|
};
|
|
14162
|
-
return (hAsync("div", { key: '
|
|
14675
|
+
return (hAsync("div", { key: '42873472d353599cbc2903b00ff03f0f802f1120', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: '980a4d934f0554fefd34f8c4631f305d45f81bc3', "table-data": JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
14163
14676
|
}
|
|
14164
14677
|
static get cmpMeta() { return {
|
|
14165
14678
|
"$flags$": 0,
|
|
@@ -14185,7 +14698,12 @@ var EdsUserStyle0 = edsUserCss;
|
|
|
14185
14698
|
class EdsUser {
|
|
14186
14699
|
constructor(hostRef) {
|
|
14187
14700
|
registerInstance(this, hostRef);
|
|
14701
|
+
this.handleDropdown = (e) => {
|
|
14702
|
+
this.expanded = e.detail.expanded;
|
|
14703
|
+
};
|
|
14188
14704
|
this.user = undefined;
|
|
14705
|
+
this.intent = 'tertiary';
|
|
14706
|
+
this.expanded = false;
|
|
14189
14707
|
}
|
|
14190
14708
|
/**
|
|
14191
14709
|
* Helper getter to ensure we work with a User object.
|
|
@@ -14211,7 +14729,8 @@ class EdsUser {
|
|
|
14211
14729
|
}
|
|
14212
14730
|
render() {
|
|
14213
14731
|
const user = this.parsedUser;
|
|
14214
|
-
|
|
14732
|
+
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
14733
|
+
return (hAsync("div", { key: '965387104c4bd6cd3223c08f16d90146c098594c', class: "block" }, hAsync("div", { key: '37fe5539cb058112ebe0d910439acb55b5abccd8', class: "flex items-center" }, hAsync("eds-dropdown", { key: '17afc8dbae191aec1202ba04d85c41ed656a8c5b', label: `Hi, ${user.preferred_username}`, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: iconName, class: "text-default", onDropdown: this.handleDropdown }, hAsync("div", { key: '0228c1728b0b73e2504d2608339f9be408be09b8', class: "min-w-[280px] p-8" }, hAsync("div", { key: 'b83148ff8249bde91842b036da5506f9f5cbb145', class: "flex gap-x-16" }, hAsync("eds-avatar", { key: '243a05bae2e4e592dc386b1897d824232d0bcfa6', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), hAsync("div", { key: '6938f54621aa89e61aa6639e8c88af4e262e0fec', class: "max-w-full" }, user.name && hAsync("p", { key: '224ce5cf6819a9dd0c3794410a94da30cc4213bf', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && hAsync("p", { key: '096ac761149763ef4305ef5e9bf1f4b593a0fe4f', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && hAsync("p", { key: '79f7da3c6c5efc1f521991c403184cf050b3d2e7', class: "f-ui-03-light text-light mt-4" }, user.email))), hAsync("div", { key: '52ce98bcc290902605ebd427ee8ab72ac9af3d62', class: "text-default flex w-full flex-col gap-y-8" }, hAsync("slot", { key: '88d1b250c434830347e0eb813214382ce899c485' })))))));
|
|
14215
14734
|
}
|
|
14216
14735
|
get hostEl() { return getElement(this); }
|
|
14217
14736
|
static get style() { return EdsUserStyle0; }
|
|
@@ -14219,7 +14738,9 @@ class EdsUser {
|
|
|
14219
14738
|
"$flags$": 9,
|
|
14220
14739
|
"$tagName$": "eds-user",
|
|
14221
14740
|
"$members$": {
|
|
14222
|
-
"user": [1025]
|
|
14741
|
+
"user": [1025],
|
|
14742
|
+
"intent": [1],
|
|
14743
|
+
"expanded": [32]
|
|
14223
14744
|
},
|
|
14224
14745
|
"$listeners$": undefined,
|
|
14225
14746
|
"$lazyBundleId$": "-",
|
|
@@ -14262,7 +14783,7 @@ class GradientPrimaryPalette {
|
|
|
14262
14783
|
];
|
|
14263
14784
|
}
|
|
14264
14785
|
render() {
|
|
14265
|
-
return (hAsync("ul", { key: '
|
|
14786
|
+
return (hAsync("ul", { key: '1a8020d4141fdd0e5849eeec1f474a9e423df044', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14266
14787
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14267
14788
|
} }, 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))))))));
|
|
14268
14789
|
}
|
|
@@ -14335,19 +14856,19 @@ class GradientSecondaryPalette {
|
|
|
14335
14856
|
];
|
|
14336
14857
|
}
|
|
14337
14858
|
render() {
|
|
14338
|
-
return (hAsync("div", { key: '
|
|
14859
|
+
return (hAsync("div", { key: '3f2934f897c4cc6f620542a1ba4283c1d5a33df9' }, hAsync("ul", { key: 'aaaf0f3c8930efd24ed43c2a921821442dd73050', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '52df1b6804670c365e43dc704d9ac5b8b15715a8', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'c301ab6086f2c1c9596336a2ad971242d1e21083', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14339
14860
|
background: this.colors[0].background
|
|
14340
|
-
} }, hAsync("div", { key: '
|
|
14861
|
+
} }, hAsync("div", { key: '2b25b2b94472be6cf429f3698f0b867b779d5289', class: "grid" }, hAsync("span", { key: 'dcd99303196abf883d50d9f0e3d952a5ab8213ea', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'b7bf94422eddb9d39463f261275cc2d2264c09a1', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '9ba5dec72e690f1612361102191dfa35da9f6260', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '594086b8cca19613c8470f018f01dc4f006cf0ea', class: "grid" }, hAsync("span", { key: '2c5b9af8a63edb49b863a491b2d05c03bf1d4074', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: 'ca8b44a7f414459f63398ed1f77c60e9ab5f3cc1', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: 'f97f1c58886e6802e4c4ef7601570bcf39a34d33', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14341
14862
|
background: this.colors[1].background
|
|
14342
|
-
} }, hAsync("div", { key: '
|
|
14863
|
+
} }, hAsync("div", { key: 'fe4232938f50f1ed4438fbda528e825924317bb1', class: "grid" }, hAsync("span", { key: '17fd45986226dc01589a6214c9c409ea7b83a2b7', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '78a16b2a247b3b7ef9ba55fcea86a46414d48dd4', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '5ba4c6cb2a15ba812ad2155f03279e45a4eb5470', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'e3459241ff6aee17dcca8b40c6d032c39eb85dcb', class: "grid" }, hAsync("span", { key: 'cc3085e05ddc7d1837ab73aba82562ca10dc5ad8', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '40e81ff1064c79bc1217d7548d9af3f0aa71820b', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '7748f6c8cc03b4e8107da154294263408238bc72' }), hAsync("ul", { key: '371c71de57cce47d517fbc5e070b5abc7249d1d1', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '368f86411b9f0b09ade201b7ed95e2e571c92b86', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'e311b5b80115d467ffd03b222017d422def6c157', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14343
14864
|
background: this.colors[2].background
|
|
14344
|
-
} }, hAsync("div", { key: '
|
|
14865
|
+
} }, hAsync("div", { key: '7b8dfb5ee427559431a5ebb64d0fe62b0611e809', class: "grid" }, hAsync("span", { key: '607edea5d452ed3b6cde489eb1bd86d4b0fff9af', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '6cdeef4b8a3c443274334cfd42c2793b54e1fe02', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '0632e3bb77e36fe5dca4cc4177ff9cabd52a0139', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '0036eb061196835f1406a7e50aab44fcab32d308', class: "grid" }, hAsync("span", { key: 'c26f3a1e9a0ab48883e0e70986c21b11a0b7b014', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '46f7a99fcfbf3aa8a6b9d03f4b3fe4733d1d2133', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: 'f4c1504965dc6e26aeeb580f16b2934f3f5038df', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14345
14866
|
background: this.colors[3].background
|
|
14346
|
-
} }, hAsync("div", { key: '
|
|
14867
|
+
} }, hAsync("div", { key: 'be7223a1145d57111f1db9aff6ff362f6338e526', class: "grid" }, hAsync("span", { key: 'de3f52cc909b249e3bfb327a8d4404cf22d9f79f', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '44ee6cf212e334ef7b825add5754288382d98cc7', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'e3f55aaa3015811c4186e09a68ec3c5fde3a8e0a', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'fd2196253e2d01363143862935eeac2b9e16ee4a', class: "grid" }, hAsync("span", { key: 'd27d7ed13497d0e3c81a9d01a02b4fa48390613e', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '85f65a7bf51b56e03e17448eaf8a2b1cf67b13f9', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: 'c4571ad26fc567e66106c8d4925aa1234cf6a343' }), hAsync("ul", { key: 'cd9d2007239b792d15a9f31242cec6748ee0962b', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '9d668bd5fe1fa168996a878c1dca6da6c2575794', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '46e2911bf0d340aabff6e2e3f374bd9d165c0ff9', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14347
14868
|
background: this.colors[4].background
|
|
14348
|
-
} }, hAsync("div", { key: '
|
|
14869
|
+
} }, hAsync("div", { key: '9871887c8fdfb870081bd6811ec7d1345d903602', class: "grid" }, hAsync("span", { key: '417a74c81f179931fb935a979f2cd6b8d9d36a10', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '6a4d66af1fc49a403eb3b9d618191752631912d6', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'f5b3dfafd77f41040fd364f12f9993eee6efa678', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '78b8cd5951f2c058bdc989ef9e8ecd33fd4e227e', class: "grid" }, hAsync("span", { key: '81c591df12b07254704c4c888e79ee795182aae8', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '546eb21d683067f23c0c392413945c5ff59d0992', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: 'a1d7d8ac8f18b76a2b0174be4e20a538ba58e836', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14349
14870
|
background: this.colors[5].background
|
|
14350
|
-
} }, hAsync("div", { key: '
|
|
14871
|
+
} }, hAsync("div", { key: '30ff0da22696dd631e21ddd8354b4fc0a54f430d', class: "grid" }, hAsync("span", { key: '7546e1a8e2ebaf41e2241dd536581308cc4a92b0', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: '650027eddd52b22d4e735ba459eb325e10f6c1af', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '5b119196ead9e34bc4360c270f02bcc21e31dafe', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '07af615883c1648cbca851527bf7ebcaef6ec1cf', class: "grid" }, hAsync("span", { key: '4cf871344f93b002d32022a270a7ff0ba5de7c92', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: 'e4240bbaed87c2a5c6eb717d186d6eca0e84952f', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
14351
14872
|
}
|
|
14352
14873
|
static get cmpMeta() { return {
|
|
14353
14874
|
"$flags$": 0,
|
|
@@ -14410,11 +14931,11 @@ class GradientSupportPalette {
|
|
|
14410
14931
|
];
|
|
14411
14932
|
}
|
|
14412
14933
|
render() {
|
|
14413
|
-
return (hAsync("ul", { key: '
|
|
14934
|
+
return (hAsync("ul", { key: '19fa0d13f425559a057eac44251af122fa28d8f2', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '04b62c9e98c068d300d76584eee86c7a441d7308', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '51b00b545676c2f755f5209c39d299bbe5bfb3eb', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: '0f9074bc3de0bc69e7500ea57d43a454af8e453b', class: "grid" }, hAsync("span", { key: '41d0e3badfab9220b9ef6c1b3fe089238cb1ee4b', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '8f02aa05d411d781215b7b41234f5ea816ed5af8', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '08ec618c5fcc6ebeb7d92c5dda2fb58c7af26293', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'e9aaf995a542a3d4497f4e2129fa8e9b99d0e8f1', class: "grid" }, hAsync("span", { key: 'ab62f5c7d81f83570bd25f9ae8c0872bdffdee49', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: '20d1b270e55f172373e498b96fde480e75436893', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: 'c12be45607f611fb7ef295a1942949ed4197d3c2', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '82119d77e7b21d5fff3dbfb2ae6352417f927397', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: 'c76edf55a482aeb8fcdc6d7c442337db086d2874', class: "grid" }, hAsync("span", { key: '5a828a7f6c8ea95afe08e220b4474d09abb8ba38', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '39ecebe4bdebf12b27bad8267a20bdae7bc91c5c', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '478d7cf0b85dc6fd125a4e879628737a89b34ef9', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '639acf9fb8e989bc42b18908ba6e063f2943a619', class: "grid" }, hAsync("span", { key: '604c16acc523e86e355a4d9cb21b577d4305b153', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: '681d72b5503e3e4886661879b73d611238802be0', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: '13b78355e265c0ae0b69af342d7c335349bf9656', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'eb7de148459e79667b8a0abea79f29c0a29f4c04', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14414
14935
|
background: this.colors[2].background
|
|
14415
|
-
} }, hAsync("div", { key: '
|
|
14936
|
+
} }, hAsync("div", { key: '8053120d580f111fbb1f3d9554567892a50a140c', class: "grid" }, hAsync("span", { key: '0e4c72fcb479d8ce3625443d4c09430f905c8cf4', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '1cc8f9ecd5f3c753d227d5d8f0b8a79b218167b9', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '68b0940f2317af55229b792088abe9021ece3382', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4213b6f6e59300a79d01108a0a530042c2eb164b', class: "grid" }, hAsync("span", { key: '3942f091461176f14e7115d4ec26454dc84a77af', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '7d56bffc0bbcd7fedc2b429eda6cd843ce75084c', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '6e54e4369bc24fe897372626d2b8f524c899979e', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14416
14937
|
background: this.colors[3].background
|
|
14417
|
-
} }, hAsync("div", { key: '
|
|
14938
|
+
} }, hAsync("div", { key: 'c10240910d81584325f5fb8fe99ea2bdf471fcca', class: "grid" }, hAsync("span", { key: 'b463043e7fcec06836ea668caaf8f88d662c0b50', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: 'd4cb38555b59b84b8c28e6f94a194198237087d8', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'e11e259fdf1b28d83f425bbb627c3cfb4a4eb80b', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'bdd93a1bd8f270ddb2ccc6a8ab0643092d4c57c9', class: "grid" }, hAsync("span", { key: 'a9874a23df6404e94c467322a416d161ae07a31b', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '84fc3e06a694fc63d991a84f92e1ef4a74ef3db8', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: '43d5a6b41ab34621e54769e32cdb896e09e4f94a', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '4cd11ea97f536e8eb36b04aca8b3da178d282817', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: 'bc41de6560f69b0818f9655430099d80fc65146a', class: "grid" }, hAsync("span", { key: '8d075abf0d186b80377dee9f4ccb3770e9c16ab3', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '78d0f7796b14ed72742e5f4cb88688179b0f1630', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'ddec227e11cb2b73e14ba7b5600f18d19788bc31', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '5f2ea3156897994045de1b86bc1cf77230a5a93d', class: "grid" }, hAsync("span", { key: '72b20e3cd6bea5de93311ee02d245570f7164ad4', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: '48e0fc418cac0932891c20266099c9f6293f366a', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
14418
14939
|
}
|
|
14419
14940
|
static get cmpMeta() { return {
|
|
14420
14941
|
"$flags$": 0,
|
|
@@ -14468,7 +14989,7 @@ class IncorrectUseOfColors {
|
|
|
14468
14989
|
registerInstance(this, hostRef);
|
|
14469
14990
|
}
|
|
14470
14991
|
render() {
|
|
14471
|
-
return (hAsync("div", { key: '
|
|
14992
|
+
return (hAsync("div", { key: 'd09d8204f4369476882f0614e96c07c953b34f54', class: "container" }, hAsync("div", { key: 'a80342ee08961192aa3a664f66406b220cd208ed', class: "mb-8" }, hAsync("eds-alert", { key: '242c9bae130e9a7487412da4f75ab30a2db49335', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), hAsync("div", { key: 'f9d60933f46189f848938a5beb1ca5fadfa84934', class: "flex" }, hAsync("div", { key: 'd7f33f14834c5a97aafbdb447f723e1a20b5e498', class: "w-full" }, hAsync("ul", { key: '0e3b7baf000534530164f373884a6957419539a7', 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: 'd0422452dbb56de94fee33562b07867fb9bfd6ac', class: "w-full" }, hAsync("ul", { key: 'e5daf06bbcec1227ccf03b3f3a8a6016a33c289c', 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 } })))))))));
|
|
14472
14993
|
}
|
|
14473
14994
|
static get cmpMeta() { return {
|
|
14474
14995
|
"$flags$": 0,
|
|
@@ -14491,7 +15012,7 @@ class LogoSpace {
|
|
|
14491
15012
|
registerInstance(this, hostRef);
|
|
14492
15013
|
}
|
|
14493
15014
|
render() {
|
|
14494
|
-
return (hAsync("div", { key: '
|
|
15015
|
+
return (hAsync("div", { key: '2ff3cdb12cbd61fc4053418d1a678409c05755f2', class: "container" }, hAsync("ul", { key: 'abfc33d14841a457959f5b15e8542465e8a0f883', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'd81281a2d146a19d036678cb794f5224236ce521', 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: '9d3774468a2b09098b84a8354683b2c6940491f5', class: "logo-container mx-auto w-[300px]", innerHTML: vLogoMargins })), hAsync("li", { key: 'cb4d4a3ff951b25fba627bd98cc1319dcb803158', 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: 'fa2f563d8ad8100b6d12c626f41b4552d99c743e', class: "text-center mt-16" }, hAsync("p", { key: 'bda0bb099f9e82b9462bee494f7d417bdd9984b9', class: "f-body-01" }, "To ensure legibility, follow these minimum size guidelines:"), hAsync("eds-table", { key: '92b100f67e3a7dd84d817b5dbc8cdfe76d6b2408', 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: '4d6ad4aacf24c4386493fe74ed928321627602ac', 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" }))));
|
|
14495
15016
|
}
|
|
14496
15017
|
static get style() { return LogoSpaceStyle0; }
|
|
14497
15018
|
static get cmpMeta() { return {
|
|
@@ -14515,7 +15036,7 @@ class LogoVariationsHorizontal {
|
|
|
14515
15036
|
registerInstance(this, hostRef);
|
|
14516
15037
|
}
|
|
14517
15038
|
render() {
|
|
14518
|
-
return (hAsync("div", { key: '
|
|
15039
|
+
return (hAsync("div", { key: 'd8357d0a4234d0c411881928a6daabdda928f272', class: "container" }, hAsync("ul", { key: '30e3d8efd0f5fd173f48c6e1e02005e7da813ce9', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '751d2de97fe8774614b15de1feda7f59c8da2ef0', 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: 'd0ba9b152a505a591cabf5a54b720b6e718173e0', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: '81b91d5c53a7ac440364083dd06222f32bf5dc51', class: "coloured" }, hAsync("eds-logo", { key: '921cac572b2da3871eff8c2912de79babb909c91', type: "no-bg", href: "#" }))), hAsync("li", { key: '74cebe6855e0e23d95a3ec74927b569c29b34d07', 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: 'ed5484e8ff8f85251f85a61fb53d21639dbb914b', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '7a5f1894fe514a323e8955c01d1ab071187c2a5c', class: "bg-default" }, hAsync("eds-logo", { key: '9a072cdaf4f7f901b8cb91d3fe9bc85ddb0e8eba', type: "black", href: "#" }))), hAsync("li", { key: 'ea3f60807f78264c6305061dc292d1d17f7fd173', 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: '530e8f71e5d6f56a9f8981ad454ecbd00162030e', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: 'b74d2cfb21a8d6f8288444cfed8ba9dc80d929b7' }, hAsync("eds-logo", { key: 'f31c76f4f3e3f03f02d2712a272ba893f7832a7a', type: "color-white", href: "#" }))))));
|
|
14519
15040
|
}
|
|
14520
15041
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
14521
15042
|
static get cmpMeta() { return {
|
|
@@ -14547,7 +15068,7 @@ class LogoVariationsTabs {
|
|
|
14547
15068
|
}
|
|
14548
15069
|
}
|
|
14549
15070
|
render() {
|
|
14550
|
-
return hAsync("div", { key: '
|
|
15071
|
+
return hAsync("div", { key: 'a7e8981363410d2a325478150990092516e74f2e', class: "container" }, this.renderContent());
|
|
14551
15072
|
}
|
|
14552
15073
|
static get cmpMeta() { return {
|
|
14553
15074
|
"$flags$": 0,
|
|
@@ -14574,7 +15095,7 @@ class LogoVariationsVertical {
|
|
|
14574
15095
|
this.type = undefined;
|
|
14575
15096
|
}
|
|
14576
15097
|
render() {
|
|
14577
|
-
return (hAsync("div", { key: '
|
|
15098
|
+
return (hAsync("div", { key: '983decc613dcf98cc903eb0220e4604e6eaff4d0', class: "container" }, hAsync("ul", { key: '4c76eb52168bc862e3d9ba4afcfce2feadb92ab8', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '4e51746424e45dcae4bd01fe5ff30a9634333e2f', 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: '18227e8430d94259740bcbcfe100540831d2a857', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: '374be81aba7532670ff470026317a49d78f54762', class: "mx-auto coloured w-[300px]" }, hAsync("eds-logo", { key: 'fdfe6b1cc100dff3a53c9065bc16803043df97e5', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("li", { key: '5aaf638a69109964188bbcad753f420177859107', 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: 'aadc470260f28236f3f4628ebf5c7261915f1fb2', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '3fed72cb0a3f38c6619d78a6995746a3cee5ee0e', class: "mx-auto bg-default w-[300px]" }, hAsync("eds-logo", { key: 'bcf169b31b33615c82b768f20a0b648236644c65', orientation: "vertical", type: "black", href: "#" }))), hAsync("li", { key: '62f0c6803ca0ec6090db435388da6754054c2007', 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: '32813722dca892164d108df2ef0a3048cb4ebbbd', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: 'e33669ea223f6d923d71e2a8568140ae5ef739e3', class: "mx-auto w-[300px]" }, hAsync("eds-logo", { key: '4176811098a57727ed30bfc1db82fa16aa06bd6c', orientation: "vertical", type: "color-white", href: "#" }))))));
|
|
14578
15099
|
}
|
|
14579
15100
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
14580
15101
|
static get cmpMeta() { return {
|
|
@@ -14601,7 +15122,7 @@ class LogoWrongUsage {
|
|
|
14601
15122
|
registerInstance(this, hostRef);
|
|
14602
15123
|
}
|
|
14603
15124
|
render() {
|
|
14604
|
-
return (hAsync("div", { key: '
|
|
15125
|
+
return (hAsync("div", { key: 'fa573cdaaa0d55c820b5a355bff48d5f1d10544a', class: "container" }, hAsync("ul", { key: '5c1941d3c45fa4814ffbdfaf30af106542862802', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'fd02c67fbe23ebb78289e5281c5b4917a44c950e', 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: '246527a7926c377c287a3c8073b06952b54dc694', class: "mx-auto no-other-bg-color logo", innerHTML: hLogoColor }), hAsync("p", { key: '88ebc748214a558e6cee28b8624f287de2faf80c', class: "f-ui-02 text-center" }, "Do not use with backgrounds that make legibility difficult")), hAsync("li", { key: 'dbf4655e3bbbad7566f64f5b8eb474c749967c38', 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: '5d2c9c916bc81ce831daf99c6293024aa9b0b2f0', class: "mx-auto no-other-color logo non-brand-color", innerHTML: hLogoColor }), hAsync("p", { key: 'f9a37e0a587b60bf607efd2e1f3aa4114f67ef33', class: "f-ui-02 text-center" }, "Do not apply other colors")), hAsync("li", { key: '3e1126e6636e0064ce852cc4249a684b77d7ba0a', 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: 'a1eb4d8ea7764734f24b39cb95b36d6718f331a3', class: "mx-auto distorted logo", innerHTML: hLogoColor }), hAsync("p", { key: 'e3d0156ec563c657c03beaa61a7ae068e78df09c', class: "f-ui-02 text-center" }, "Do not deform the logo")), hAsync("li", { key: '062a45841b978d79fe82e5773ba82c98e8f9eb6c', 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: 'd0f276a91bf1ea13b4f482e39e9f83b7ef3f2593', class: "mx-auto effects logo", innerHTML: hLogoColor }), hAsync("p", { key: '62f67b5f28839a5bb3706e78004c1989feced677', class: "f-ui-02 text-center" }, "Do not apply effects")), hAsync("li", { key: 'c4d0025e06c8385935a4b6162d65f78bc3d7b94d', 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: 'c6118e7d56abcf4a54f6f590d9a77a9397fa3209', class: "mx-auto rotated logo", innerHTML: hLogoColor }), hAsync("p", { key: 'a6c71000e3cf8b6d3a28c8f8c0df0840fdf2a749', class: "f-ui-02 text-center" }, "Do not rotate the logo")), hAsync("li", { key: 'd558e277275a305f3d491eba94aad8c1e7eec471', 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: '56947add9521b76a88ea05f8f64b6f0f656a9863', class: "mx-auto outlined logo", innerHTML: hLogoColor }), hAsync("p", { key: '0de198ca711a32e9b0f6ff7275af9dc2bce3c1b6', class: "f-ui-02 text-center" }, "Do not apply outlines")), hAsync("li", { key: '12b7c15e994ae6b40041da68eaa609ee0ec499a7', 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: '9ef38af84bee3b83b04f881e6481769fc39991ff', class: "mx-auto" }, hAsync("div", { key: '7f793491cf76a2c937ab0ca820dfd3f2a5779728', class: "bg-accent p-16" }, hAsync("div", { key: '60bfff8e962a543dcda5db9d1bdf75a3702f8b38', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: '8a0a6a43def963fd5bd00e857ab7e21d60e54454', 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"))))));
|
|
14605
15126
|
}
|
|
14606
15127
|
static get style() { return LogoWrongUsageStyle0; }
|
|
14607
15128
|
static get cmpMeta() { return {
|
|
@@ -14645,7 +15166,7 @@ class SvgRepository {
|
|
|
14645
15166
|
icon: { format: 'svg' },
|
|
14646
15167
|
name: { format: 'bold' }
|
|
14647
15168
|
};
|
|
14648
|
-
return (hAsync("div", { key: '
|
|
15169
|
+
return (hAsync("div", { key: '36ab796174ab215a5e8f834f0d6291853305e732', class: "full-width" }, hAsync("eds-table", { key: '31fca470f340fa54137887ef426f4f7e1fc72f73', "table-data": JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true })));
|
|
14649
15170
|
}
|
|
14650
15171
|
get hostEl() { return getElement(this); }
|
|
14651
15172
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -14902,7 +15423,7 @@ class TokenList {
|
|
|
14902
15423
|
render() {
|
|
14903
15424
|
// Check if `show` prop is provided; if not, display all sections
|
|
14904
15425
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
14905
|
-
return (hAsync("section", { key: '
|
|
15426
|
+
return (hAsync("section", { key: 'c5a0dc7f4e58c77624481262b1a6ac31df5425ee', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
14906
15427
|
// Only render sections that exist in `colors`
|
|
14907
15428
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
14908
15429
|
}
|
|
@@ -14935,7 +15456,7 @@ class TokenRadii {
|
|
|
14935
15456
|
registerInstance(this, hostRef);
|
|
14936
15457
|
}
|
|
14937
15458
|
render() {
|
|
14938
|
-
return (hAsync("section", { key: '
|
|
15459
|
+
return (hAsync("section", { key: 'd0e212f61414068b55b2ce1a3d9c7c2a51743908', class: "w-full mt-28" }, hAsync("ul", { key: 'f656822bfc1a95bb4435eec2db9573e4362d1c59', 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" }))))))));
|
|
14939
15460
|
}
|
|
14940
15461
|
static get cmpMeta() { return {
|
|
14941
15462
|
"$flags$": 0,
|
|
@@ -14964,7 +15485,7 @@ class TokenRatios {
|
|
|
14964
15485
|
registerInstance(this, hostRef);
|
|
14965
15486
|
}
|
|
14966
15487
|
render() {
|
|
14967
|
-
return (hAsync("section", { key: '
|
|
15488
|
+
return (hAsync("section", { key: '0215729c6c798288f74b3e9a589763c8a71c6fd3', class: "w-full" }, hAsync("eds-section-core", { key: '9ac3c1b933b7bb7cc6c8dd9aeface59ba3646750', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'd4ae2c487aa2402740dfd1465823fe3d04c19e18', 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: {
|
|
14968
15489
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
14969
15490
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
14970
15491
|
maxWidth: '300px'
|
|
@@ -15006,7 +15527,7 @@ class TokenShadows {
|
|
|
15006
15527
|
registerInstance(this, hostRef);
|
|
15007
15528
|
}
|
|
15008
15529
|
render() {
|
|
15009
|
-
return (hAsync("section", { key: '
|
|
15530
|
+
return (hAsync("section", { key: '2f8e9eef279ee176ba1c72660181a4a36a184985', class: "w-full mt-28" }, hAsync("ul", { key: 'a5ddc9f6faab20c73b6dbb08364925d3b221e848', 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]" })))))))));
|
|
15010
15531
|
}
|
|
15011
15532
|
static get cmpMeta() { return {
|
|
15012
15533
|
"$flags$": 0,
|
|
@@ -15026,7 +15547,7 @@ class TokenSpacing {
|
|
|
15026
15547
|
registerInstance(this, hostRef);
|
|
15027
15548
|
}
|
|
15028
15549
|
render() {
|
|
15029
|
-
return (hAsync("div", { key: '
|
|
15550
|
+
return (hAsync("div", { key: 'e01032fc0640d466fbf25d52c786c2ad09282deb', class: "w-full" }, hAsync("ul", { key: '067499a0d422c6759393a729018a0e428ac5bb73', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '18811cd88f3627f824c09ed57522b624c905704a', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '6f810ada1266d71181c85ae01f6d0f03d74c5d62', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'be8c8193dd759eb651230904f482bdd29ece17d9', class: "spacing-sample m-16 bg-strong" }, hAsync("span", { key: '3275ae8d2dcc26a097fcec9e47e865d122e8a7a0', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), hAsync("li", { key: '1501280856acd0f86ed6d18deb2994e2b938d550', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '9c6bd09fb408bf28e1ff7259ee82858657055d53', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '66ce0e318e1ef01c95634678d8dad929261c3559', class: "spacing-sample ml-64 bg-strong" }, hAsync("span", { key: '746c47d3d838c4a2afc3e33f97ea92e4152505a4', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: '1e743a6b9907f8d533b6bb0e47204ca9f2ac1540', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '9b127a0fc072a67d2a03af42718407f7c570981c', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '603d387bfc95e7eaaa688d9bed69d17dcdbeb023', class: "spacing-sample mt-32 bg-strong" }, hAsync("span", { key: '19105f04e3571991899dcd237a2e88285200fa2a', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'a4bba328ebdb74767c06aed1ddf90251ff53c774', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '8c0ddf065902880ea676a0178d8d384696d11d44', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'c73eb82ac1b447d2441be39f1e07e4864bba2a49', class: "spacing-sample p-32 bg-strong" }, hAsync("span", { key: '6c76e373c0827ed4449abfd0fa1b69db2e02ef10', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), hAsync("li", { key: '23699817570e914c03849e8bc5ab3c72b732470c', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '253d94e4ddabd622302bbc38a5e866b9a9dc8826', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'c366056f299a7fd53eb589cedbf8f40aa996d032', class: "spacing-sample pt-32 bg-strong" }, hAsync("span", { key: '22b94a1f3f4605af8f11dcd10b03f112ad426798', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '18418c7ea84aaaefe187e484774e96d5233946ab', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '953b9ebfb47560f768bdf606fdc455eae18fa351', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '1ee32fc2918a078e421e0641c84e76c2bf48e839', class: "spacing-sample pl-32 bg-strong" }, hAsync("span", { key: '15f50b76c805eb9fc1610d8027cd710f6c8c89b4', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
15030
15551
|
}
|
|
15031
15552
|
static get cmpMeta() { return {
|
|
15032
15553
|
"$flags$": 0,
|
|
@@ -15244,7 +15765,7 @@ class TokenTypography {
|
|
|
15244
15765
|
registerInstance(this, hostRef);
|
|
15245
15766
|
}
|
|
15246
15767
|
render() {
|
|
15247
|
-
return (hAsync("section", { key: '
|
|
15768
|
+
return (hAsync("section", { key: 'a50023eb5ce02aebb63994e4319450f3a330617d', class: "w-full" }, hAsync("ul", { key: '757a1845f16da440eaa8ba332b39f62ccb69ed89', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
15248
15769
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15249
15770
|
.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: {
|
|
15250
15771
|
fontFamily: typography.families.sans,
|
|
@@ -15313,8 +15834,10 @@ registerComponents([
|
|
|
15313
15834
|
EdsIconChevronLeft,
|
|
15314
15835
|
EdsIconChevronRight,
|
|
15315
15836
|
EdsIconChevronUp,
|
|
15837
|
+
EdsIconClone,
|
|
15316
15838
|
EdsIconClose,
|
|
15317
15839
|
EdsIconCopy,
|
|
15840
|
+
EdsIconDownload,
|
|
15318
15841
|
EdsIconDraft,
|
|
15319
15842
|
EdsIconEdit,
|
|
15320
15843
|
EdsIconEu,
|
|
@@ -15343,6 +15866,7 @@ registerComponents([
|
|
|
15343
15866
|
EdsIconUnknown,
|
|
15344
15867
|
EdsIconUpdown,
|
|
15345
15868
|
EdsIconUser,
|
|
15869
|
+
EdsIconView,
|
|
15346
15870
|
EdsIconWrapper,
|
|
15347
15871
|
EdsIconYoutube,
|
|
15348
15872
|
EdsImg,
|
|
@@ -15357,6 +15881,7 @@ registerComponents([
|
|
|
15357
15881
|
EdsLogo,
|
|
15358
15882
|
EdsMatomoNotice,
|
|
15359
15883
|
EdsModal,
|
|
15884
|
+
EdsNps,
|
|
15360
15885
|
EdsPagination,
|
|
15361
15886
|
EdsPie,
|
|
15362
15887
|
EdsProgressBar,
|