@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.mjs
CHANGED
|
@@ -123,7 +123,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
const NAMESPACE = 'components';
|
|
126
|
-
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:
|
|
126
|
+
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 };
|
|
127
127
|
|
|
128
128
|
/*
|
|
129
129
|
Stencil Hydrate Platform v4.22.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1907,7 +1907,10 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
1909
1909
|
{
|
|
1910
|
-
elm.attachShadow({
|
|
1910
|
+
elm.attachShadow({
|
|
1911
|
+
mode: "open",
|
|
1912
|
+
delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
|
|
1913
|
+
});
|
|
1911
1914
|
}
|
|
1912
1915
|
}
|
|
1913
1916
|
if (cmpMeta.$members$ != null) {
|
|
@@ -2327,7 +2330,7 @@ class ColorPrimaryPalette {
|
|
|
2327
2330
|
];
|
|
2328
2331
|
}
|
|
2329
2332
|
render() {
|
|
2330
|
-
return (hAsync("ul", { key: '
|
|
2333
|
+
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))))))));
|
|
2331
2334
|
}
|
|
2332
2335
|
static get cmpMeta() { return {
|
|
2333
2336
|
"$flags$": 0,
|
|
@@ -2399,7 +2402,7 @@ class ColorSecondaryPalette {
|
|
|
2399
2402
|
this.show = undefined;
|
|
2400
2403
|
}
|
|
2401
2404
|
render() {
|
|
2402
|
-
return (hAsync("ul", { key: '
|
|
2405
|
+
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))))))));
|
|
2403
2406
|
}
|
|
2404
2407
|
static get cmpMeta() { return {
|
|
2405
2408
|
"$flags$": 0,
|
|
@@ -2473,7 +2476,7 @@ class ColorSupportPalette {
|
|
|
2473
2476
|
return 'text-default';
|
|
2474
2477
|
}
|
|
2475
2478
|
render() {
|
|
2476
|
-
return (hAsync("ul", { key: '
|
|
2479
|
+
return (hAsync("ul", { key: 'f0ba44197d75db8e8c35b1c774fcb9a5cf57b955', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2477
2480
|
// compute once
|
|
2478
2481
|
const textClass = this.getTextColor(color.background);
|
|
2479
2482
|
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)))));
|
|
@@ -2518,7 +2521,7 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2518
2521
|
}
|
|
2519
2522
|
] }),
|
|
2520
2523
|
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
2521
|
-
hAsync("eds-code-block", { code: '<eds-button
|
|
2524
|
+
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
2522
2525
|
hAsync("h2", null, "Load the variables and styles"),
|
|
2523
2526
|
hAsync("p", null,
|
|
2524
2527
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -2536,9 +2539,7 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2536
2539
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
2537
2540
|
' ',
|
|
2538
2541
|
hAsync("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
2539
|
-
".
|
|
2540
|
-
hAsync("code", null, "head")),
|
|
2541
|
-
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" })));
|
|
2542
|
+
".")));
|
|
2542
2543
|
|
|
2543
2544
|
const DocsInstallation = () => (hAsync("div", null,
|
|
2544
2545
|
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."),
|
|
@@ -2626,7 +2627,7 @@ class ComponentsSection {
|
|
|
2626
2627
|
}
|
|
2627
2628
|
}
|
|
2628
2629
|
render() {
|
|
2629
|
-
return hAsync("div", { key: '
|
|
2630
|
+
return hAsync("div", { key: 'a5c54560de99e81caaabafc4342522602ffe35a1', class: "container" }, this.renderContent());
|
|
2630
2631
|
}
|
|
2631
2632
|
static get cmpMeta() { return {
|
|
2632
2633
|
"$flags$": 0,
|
|
@@ -2704,7 +2705,7 @@ class CorrectUseOfColors {
|
|
|
2704
2705
|
registerInstance(this, hostRef);
|
|
2705
2706
|
}
|
|
2706
2707
|
render() {
|
|
2707
|
-
return (hAsync("div", { key: '
|
|
2708
|
+
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 } })))))))));
|
|
2708
2709
|
}
|
|
2709
2710
|
static get cmpMeta() { return {
|
|
2710
2711
|
"$flags$": 0,
|
|
@@ -2743,7 +2744,7 @@ class DocsContent {
|
|
|
2743
2744
|
}
|
|
2744
2745
|
}
|
|
2745
2746
|
render() {
|
|
2746
|
-
return hAsync("div", { key: '
|
|
2747
|
+
return hAsync("div", { key: '17148efe64117050084010b77d85de64bdfe2000', class: "container" }, this.renderContent());
|
|
2747
2748
|
}
|
|
2748
2749
|
static get cmpMeta() { return {
|
|
2749
2750
|
"$flags$": 0,
|
|
@@ -2776,7 +2777,7 @@ class DocsPalettes {
|
|
|
2776
2777
|
}
|
|
2777
2778
|
}
|
|
2778
2779
|
render() {
|
|
2779
|
-
return hAsync("div", { key: '
|
|
2780
|
+
return hAsync("div", { key: '8ef26f3be50f9083f1430ec0c9dbf5213ac1268e', class: "container" }, this.renderContent());
|
|
2780
2781
|
}
|
|
2781
2782
|
static get cmpMeta() { return {
|
|
2782
2783
|
"$flags$": 0,
|
|
@@ -2937,7 +2938,7 @@ class EdsAccordion {
|
|
|
2937
2938
|
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
|
|
2938
2939
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2939
2940
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2940
|
-
${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: '
|
|
2941
|
+
${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' })))))));
|
|
2941
2942
|
}
|
|
2942
2943
|
get el() { return getElement(this); }
|
|
2943
2944
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3074,6 +3075,7 @@ const alertStyles = cva(['w-full bg-dark'], {
|
|
|
3074
3075
|
class EdsAlert {
|
|
3075
3076
|
constructor(hostRef) {
|
|
3076
3077
|
registerInstance(this, hostRef);
|
|
3078
|
+
this.edsalert = createEvent(this, "edsalert", 7);
|
|
3077
3079
|
this.message = undefined;
|
|
3078
3080
|
this.pressableLabel = undefined;
|
|
3079
3081
|
this.pressableUrl = undefined;
|
|
@@ -3086,6 +3088,11 @@ class EdsAlert {
|
|
|
3086
3088
|
this.withBtn = Boolean(this.pressableLabel);
|
|
3087
3089
|
}
|
|
3088
3090
|
componentDidLoad() {
|
|
3091
|
+
// Focus the alert container for immediate screen reader announcement
|
|
3092
|
+
/*if (this.intent === 'error' || this.intent === 'warning') {
|
|
3093
|
+
this.el.shadowRoot?.querySelector('[role="alert"]')?.setAttribute('tabindex', '-1');
|
|
3094
|
+
(this.el.shadowRoot?.querySelector('[role="alert"]') as HTMLElement)?.focus();
|
|
3095
|
+
}*/
|
|
3089
3096
|
var _a;
|
|
3090
3097
|
// Query for the 'eds-link' element inside the shadow root.
|
|
3091
3098
|
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
@@ -3102,14 +3109,18 @@ class EdsAlert {
|
|
|
3102
3109
|
});
|
|
3103
3110
|
linkElement.dispatchEvent(event);
|
|
3104
3111
|
}
|
|
3112
|
+
handleAction() {
|
|
3113
|
+
// Emit the alertAction event for parent components to handle
|
|
3114
|
+
this.edsalert.emit();
|
|
3115
|
+
}
|
|
3105
3116
|
render() {
|
|
3106
|
-
|
|
3117
|
+
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3118
|
+
return (hAsync("div", { key: '2d22944e7ae86cf2523c194e20215a3d986083d9', class: alertStyles({
|
|
3107
3119
|
intent: this.intent,
|
|
3108
3120
|
brd: this.brd,
|
|
3109
3121
|
direction: this.direction,
|
|
3110
3122
|
withBtn: this.withBtn
|
|
3111
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
3112
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3123
|
+
}), 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() }))))));
|
|
3113
3124
|
}
|
|
3114
3125
|
get el() { return getElement(this); }
|
|
3115
3126
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3160,7 +3171,7 @@ class EdsAppRoot {
|
|
|
3160
3171
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3161
3172
|
}
|
|
3162
3173
|
render() {
|
|
3163
|
-
return (hAsync("div", { key: '
|
|
3174
|
+
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."))));
|
|
3164
3175
|
}
|
|
3165
3176
|
static get cmpMeta() { return {
|
|
3166
3177
|
"$flags$": 9,
|
|
@@ -3243,7 +3254,7 @@ class EdsAvatar {
|
|
|
3243
3254
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3244
3255
|
*/
|
|
3245
3256
|
render() {
|
|
3246
|
-
return (hAsync("div", { key: '
|
|
3257
|
+
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))));
|
|
3247
3258
|
}
|
|
3248
3259
|
static get style() { return EdsAvatarStyle0; }
|
|
3249
3260
|
static get cmpMeta() { return {
|
|
@@ -3274,7 +3285,7 @@ class EdsBlockBreak {
|
|
|
3274
3285
|
this.inverse = false;
|
|
3275
3286
|
}
|
|
3276
3287
|
render() {
|
|
3277
|
-
return hAsync("hr", { key: '
|
|
3288
|
+
return hAsync("hr", { key: '688e11c730af1193f28db196cd144c6dd2efc3c6', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3278
3289
|
}
|
|
3279
3290
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3280
3291
|
static get cmpMeta() { return {
|
|
@@ -3434,7 +3445,7 @@ class EdsBreadcrumb {
|
|
|
3434
3445
|
*/
|
|
3435
3446
|
render() {
|
|
3436
3447
|
const itemsToRender = this.getTruncatedItems();
|
|
3437
|
-
return (hAsync("nav", { key: '
|
|
3448
|
+
return (hAsync("nav", { key: '0625a234ec9f5095abbeaafa11e56bceb0432764', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '3898a4b048eca6c606a6948b26ec25a608cb908e', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3438
3449
|
const isLast = index === itemsToRender.length - 1;
|
|
3439
3450
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3440
3451
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3470,7 +3481,7 @@ class EdsBreadcrumb {
|
|
|
3470
3481
|
}; }
|
|
3471
3482
|
}
|
|
3472
3483
|
|
|
3473
|
-
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}";
|
|
3484
|
+
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}";
|
|
3474
3485
|
var EdsButtonStyle0 = edsButtonCss;
|
|
3475
3486
|
|
|
3476
3487
|
/**
|
|
@@ -3503,7 +3514,7 @@ class EdsButton {
|
|
|
3503
3514
|
secondary: 'border-inside border-inside-inverse text-inverse bg-strongest hover:bg-strong-dark',
|
|
3504
3515
|
tertiary: 'border-inside after:border-softest bg-dark hover:bg-darker',
|
|
3505
3516
|
ghost: 'border-inside hover:bg-darker',
|
|
3506
|
-
ghostInverse: 'border-inside hover:bg-dark'
|
|
3517
|
+
ghostInverse: 'border-inside text-lightest hover:bg-dark'
|
|
3507
3518
|
},
|
|
3508
3519
|
loading: {
|
|
3509
3520
|
true: 'pointer-events-none',
|
|
@@ -3613,8 +3624,7 @@ class EdsButton {
|
|
|
3613
3624
|
}
|
|
3614
3625
|
handleClick(event) {
|
|
3615
3626
|
var _a, _b;
|
|
3616
|
-
if (this.disabled) {
|
|
3617
|
-
// Prevent navigation if the link is disabled
|
|
3627
|
+
if (this.disabled || this.loading) {
|
|
3618
3628
|
event.preventDefault();
|
|
3619
3629
|
return;
|
|
3620
3630
|
}
|
|
@@ -3630,6 +3640,16 @@ class EdsButton {
|
|
|
3630
3640
|
this.triggerClick(); // Trigger the passed-in function
|
|
3631
3641
|
}
|
|
3632
3642
|
}
|
|
3643
|
+
handleKeyDown(event) {
|
|
3644
|
+
if (this.disabled || this.loading) {
|
|
3645
|
+
// Fix: check loading too
|
|
3646
|
+
return;
|
|
3647
|
+
}
|
|
3648
|
+
if (event.key === 'Enter' || (this.elementType === 'a' && event.key === ' ')) {
|
|
3649
|
+
event.preventDefault();
|
|
3650
|
+
this.handleClick(event);
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3633
3653
|
render() {
|
|
3634
3654
|
const classes = this.button({
|
|
3635
3655
|
intent: this.intent,
|
|
@@ -3641,18 +3661,20 @@ class EdsButton {
|
|
|
3641
3661
|
iconSmall: this.iconSmall
|
|
3642
3662
|
});
|
|
3643
3663
|
const ElementType = this.elementType;
|
|
3644
|
-
|
|
3664
|
+
const isInteractive = !this.disabled && !this.loading;
|
|
3665
|
+
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: {
|
|
3645
3666
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3646
3667
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3647
3668
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3669
|
+
flex inline-flex items-center justify-center
|
|
3670
|
+
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
3671
|
+
`, icon: this.icon, "aria-hidden": "true" })) : null)));
|
|
3651
3672
|
}
|
|
3673
|
+
static get delegatesFocus() { return true; }
|
|
3652
3674
|
get el() { return getElement(this); }
|
|
3653
3675
|
static get style() { return EdsButtonStyle0; }
|
|
3654
3676
|
static get cmpMeta() { return {
|
|
3655
|
-
"$flags$":
|
|
3677
|
+
"$flags$": 25,
|
|
3656
3678
|
"$tagName$": "eds-button",
|
|
3657
3679
|
"$members$": {
|
|
3658
3680
|
"label": [1],
|
|
@@ -3700,7 +3722,7 @@ class EdsCardDesc {
|
|
|
3700
3722
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3701
3723
|
}
|
|
3702
3724
|
render() {
|
|
3703
|
-
return (hAsync("p", { key: '
|
|
3725
|
+
return (hAsync("p", { key: '302734334d08002f94c269977ebda7762fd19843', class: "text-light f-ui-03-light" }, hAsync("span", { key: '925f6cea41068b62d22902f33d80d700d0975f39', class: this.getTruncateClass() }, this.description)));
|
|
3704
3726
|
}
|
|
3705
3727
|
static get style() { return EdsCardDescStyle0; }
|
|
3706
3728
|
static get cmpMeta() { return {
|
|
@@ -4017,7 +4039,7 @@ class EdsCardProject {
|
|
|
4017
4039
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4018
4040
|
].join(' ');
|
|
4019
4041
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4020
|
-
return (hAsync("article", { key: '
|
|
4042
|
+
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)))))));
|
|
4021
4043
|
}
|
|
4022
4044
|
get el() { return getElement(this); }
|
|
4023
4045
|
static get cmpMeta() { return {
|
|
@@ -4106,7 +4128,7 @@ class EdsCardTags {
|
|
|
4106
4128
|
this.tags = [];
|
|
4107
4129
|
}
|
|
4108
4130
|
render() {
|
|
4109
|
-
return (hAsync("div", { key: '
|
|
4131
|
+
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 })))));
|
|
4110
4132
|
}
|
|
4111
4133
|
static get style() { return EdsCardTagsStyle0; }
|
|
4112
4134
|
static get cmpMeta() { return {
|
|
@@ -4170,7 +4192,7 @@ class EdsCardTitle {
|
|
|
4170
4192
|
render() {
|
|
4171
4193
|
//const Tag = this.getTag();
|
|
4172
4194
|
const Heading = this.headingLevel;
|
|
4173
|
-
return (hAsync(Heading, { key: '
|
|
4195
|
+
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)));
|
|
4174
4196
|
}
|
|
4175
4197
|
static get style() { return EdsCardTitleStyle0; }
|
|
4176
4198
|
static get cmpMeta() { return {
|
|
@@ -4258,7 +4280,7 @@ class EdsCardTool {
|
|
|
4258
4280
|
});
|
|
4259
4281
|
}
|
|
4260
4282
|
render() {
|
|
4261
|
-
return (hAsync("article", { key: '
|
|
4283
|
+
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 }))))));
|
|
4262
4284
|
}
|
|
4263
4285
|
get el() { return getElement(this); }
|
|
4264
4286
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6770,7 +6792,7 @@ class EdsCodeBlock {
|
|
|
6770
6792
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6771
6793
|
}
|
|
6772
6794
|
render() {
|
|
6773
|
-
return (hAsync("div", { key: '
|
|
6795
|
+
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() })))));
|
|
6774
6796
|
}
|
|
6775
6797
|
get el() { return getElement(this); }
|
|
6776
6798
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6818,7 +6840,7 @@ class EdsCookiesPreference {
|
|
|
6818
6840
|
}
|
|
6819
6841
|
}
|
|
6820
6842
|
render() {
|
|
6821
|
-
return (hAsync("div", { key: '
|
|
6843
|
+
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 })));
|
|
6822
6844
|
}
|
|
6823
6845
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6824
6846
|
static get cmpMeta() { return {
|
|
@@ -6954,14 +6976,14 @@ class EdsDropdown {
|
|
|
6954
6976
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6955
6977
|
*/
|
|
6956
6978
|
render() {
|
|
6957
|
-
return (hAsync("div", { key: '
|
|
6979
|
+
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: {
|
|
6958
6980
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
6959
6981
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6960
6982
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6961
6983
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6962
6984
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6963
6985
|
'rounded-lg': this.rounded
|
|
6964
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6986
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'b416621930c7117775fef2ee91bdca0f660302f5' }))));
|
|
6965
6987
|
}
|
|
6966
6988
|
get host() { return getElement(this); }
|
|
6967
6989
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7043,7 +7065,7 @@ class EdsFeedback {
|
|
|
7043
7065
|
const HeadingTag = this.headingLevel;
|
|
7044
7066
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7045
7067
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7046
|
-
return (hAsync("div", { key: '
|
|
7068
|
+
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]))));
|
|
7047
7069
|
}
|
|
7048
7070
|
get el() { return getElement(this); }
|
|
7049
7071
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7113,6 +7135,12 @@ class EdsFooter {
|
|
|
7113
7135
|
}
|
|
7114
7136
|
const shouldShow = window.scrollY > 100 && document.body.scrollHeight > window.innerHeight;
|
|
7115
7137
|
this.backBtn.style.opacity = shouldShow ? '1' : '0';
|
|
7138
|
+
this.backBtn.style.pointerEvents = shouldShow ? 'auto' : 'none';
|
|
7139
|
+
const btn = this.backBtn.querySelector('eds-button');
|
|
7140
|
+
if (btn) {
|
|
7141
|
+
btn.removeAttribute('aria-hidden');
|
|
7142
|
+
btn.setAttribute('tabindex', shouldShow ? '0' : '-1');
|
|
7143
|
+
}
|
|
7116
7144
|
}
|
|
7117
7145
|
toggleCookiesConsent() {
|
|
7118
7146
|
this.cookies.emit('toggle');
|
|
@@ -7121,13 +7149,11 @@ class EdsFooter {
|
|
|
7121
7149
|
* Renders the footer component with optional sections and elements,
|
|
7122
7150
|
* including social network links, a Horizon Europe funding acknowledgment, and
|
|
7123
7151
|
* legal links such as "Cookies Preferences" and copyright information.
|
|
7124
|
-
*
|
|
7125
|
-
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7126
7152
|
*/
|
|
7127
7153
|
render() {
|
|
7128
|
-
return (hAsync("footer", { key: '
|
|
7154
|
+
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: () => {
|
|
7129
7155
|
this.toggleCookiesConsent();
|
|
7130
|
-
} })) : null))), hAsync("div", { key: '
|
|
7156
|
+
} })) : 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)))));
|
|
7131
7157
|
}
|
|
7132
7158
|
get el() { return getElement(this); }
|
|
7133
7159
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7235,6 +7261,13 @@ function findRatingElement(formEl) {
|
|
|
7235
7261
|
}
|
|
7236
7262
|
return null;
|
|
7237
7263
|
}
|
|
7264
|
+
function findNpsElement(formEl) {
|
|
7265
|
+
const elements = Array.from(formEl.querySelectorAll('eds-nps'));
|
|
7266
|
+
for (const element of elements) {
|
|
7267
|
+
return element;
|
|
7268
|
+
}
|
|
7269
|
+
return null;
|
|
7270
|
+
}
|
|
7238
7271
|
/**
|
|
7239
7272
|
* Validates all fields and returns an object containing the errors and a flag indicating any errors.
|
|
7240
7273
|
*/
|
|
@@ -7244,6 +7277,7 @@ isFieldVisible) {
|
|
|
7244
7277
|
const errors = {};
|
|
7245
7278
|
let hasError = false;
|
|
7246
7279
|
parsedFields.forEach((field) => {
|
|
7280
|
+
var _a;
|
|
7247
7281
|
// Only validate fields that are visible.
|
|
7248
7282
|
if (!isFieldVisible(field, values)) {
|
|
7249
7283
|
// If a field is hidden, clear its error.
|
|
@@ -7279,6 +7313,29 @@ isFieldVisible) {
|
|
|
7279
7313
|
}
|
|
7280
7314
|
}
|
|
7281
7315
|
}
|
|
7316
|
+
// NPS type
|
|
7317
|
+
else if (field.type === 'nps') {
|
|
7318
|
+
const npsEl = findNpsElement(formEl);
|
|
7319
|
+
if (npsEl && npsEl.shadowRoot) {
|
|
7320
|
+
const raw = (_a = npsEl.shadowRoot
|
|
7321
|
+
.querySelector('eds-button[tabindex="0"]')) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-label');
|
|
7322
|
+
const parsed = raw !== null ? parseInt(raw, 10) : NaN;
|
|
7323
|
+
const value = Number.isInteger(parsed) && parsed >= 0 && parsed <= 10 ? parsed : NaN;
|
|
7324
|
+
if (isNaN(value)) {
|
|
7325
|
+
// eslint-disable-next-line
|
|
7326
|
+
if (field.required) {
|
|
7327
|
+
errors[field.name] = ['This field is required.'];
|
|
7328
|
+
hasError = true;
|
|
7329
|
+
}
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7332
|
+
else if (field.required) {
|
|
7333
|
+
// No NPS component found but required
|
|
7334
|
+
errors[field.name] = ['This field is required.'];
|
|
7335
|
+
hasError = true;
|
|
7336
|
+
}
|
|
7337
|
+
return;
|
|
7338
|
+
}
|
|
7282
7339
|
else {
|
|
7283
7340
|
// For all other types, find the first matching element.
|
|
7284
7341
|
const inputEl = findFieldElement(formEl, field.name);
|
|
@@ -7330,7 +7387,7 @@ function getFormInitData({ initData, parsedFields, currentValues
|
|
|
7330
7387
|
return { updatedValues };
|
|
7331
7388
|
}
|
|
7332
7389
|
|
|
7333
|
-
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}";
|
|
7390
|
+
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}";
|
|
7334
7391
|
var EdsFormStyle0 = edsFormCss;
|
|
7335
7392
|
|
|
7336
7393
|
/**
|
|
@@ -7350,13 +7407,17 @@ class EdsForm {
|
|
|
7350
7407
|
registerInstance(this, hostRef);
|
|
7351
7408
|
this.form = createEvent(this, "form", 7);
|
|
7352
7409
|
this.name = 'eds-form';
|
|
7410
|
+
this.title = undefined;
|
|
7411
|
+
this.description = undefined;
|
|
7353
7412
|
this.setFormUrl = true;
|
|
7354
7413
|
this.formBtn = true;
|
|
7355
7414
|
this.formBtnLabel = 'Submit';
|
|
7415
|
+
this.buttonIntent = 'primary';
|
|
7356
7416
|
this.errorMessage = 'Some fields in your form are incorrect.';
|
|
7357
7417
|
this.fields = [];
|
|
7358
7418
|
this.groups = [];
|
|
7359
7419
|
this.initData = {};
|
|
7420
|
+
this.formStyle = 'default';
|
|
7360
7421
|
this.values = {};
|
|
7361
7422
|
this.isSubmitting = false;
|
|
7362
7423
|
this.hasError = false;
|
|
@@ -7580,6 +7641,25 @@ class EdsForm {
|
|
|
7580
7641
|
message: `${field.name} updated`
|
|
7581
7642
|
});
|
|
7582
7643
|
}
|
|
7644
|
+
handleNPS(e, field) {
|
|
7645
|
+
const score = e.detail;
|
|
7646
|
+
this.values = Object.assign(Object.assign({}, this.values), { [field.name]: score });
|
|
7647
|
+
const newErrors = Object.assign({}, this.errors);
|
|
7648
|
+
if (field.required && score === null) {
|
|
7649
|
+
newErrors[field.name] = ['This field is required'];
|
|
7650
|
+
}
|
|
7651
|
+
else {
|
|
7652
|
+
delete newErrors[field.name];
|
|
7653
|
+
}
|
|
7654
|
+
this.errors = newErrors;
|
|
7655
|
+
this.hasError = Object.keys(newErrors).length > 0;
|
|
7656
|
+
this.form.emit({
|
|
7657
|
+
event: 'change',
|
|
7658
|
+
field: field.name,
|
|
7659
|
+
value: score,
|
|
7660
|
+
message: `${field.name} updated`
|
|
7661
|
+
});
|
|
7662
|
+
}
|
|
7583
7663
|
handleSubmit() {
|
|
7584
7664
|
var _a, _b;
|
|
7585
7665
|
if (this.isSubmitting) {
|
|
@@ -7635,10 +7715,15 @@ class EdsForm {
|
|
|
7635
7715
|
}
|
|
7636
7716
|
get groupedFields() {
|
|
7637
7717
|
const map = {};
|
|
7638
|
-
// initialize buckets for each group
|
|
7718
|
+
// initialize buckets for each declared group
|
|
7639
7719
|
this.parsedGroups.forEach((g) => (map[g.id] = []));
|
|
7720
|
+
// always keep an ungrouped bucket
|
|
7640
7721
|
map['__ungrouped'] = [];
|
|
7722
|
+
// only bucket fields that are currently visible
|
|
7641
7723
|
this.parsedFields.forEach((f) => {
|
|
7724
|
+
if (!this.isFieldVisible(f)) {
|
|
7725
|
+
return;
|
|
7726
|
+
}
|
|
7642
7727
|
const gid = f.groupId || '__ungrouped';
|
|
7643
7728
|
if (!map[gid]) {
|
|
7644
7729
|
map[gid] = [];
|
|
@@ -7648,7 +7733,7 @@ class EdsForm {
|
|
|
7648
7733
|
return map;
|
|
7649
7734
|
}
|
|
7650
7735
|
renderField(field) {
|
|
7651
|
-
var _a, _b;
|
|
7736
|
+
var _a, _b, _c;
|
|
7652
7737
|
if (!this.isFieldVisible(field)) {
|
|
7653
7738
|
return null;
|
|
7654
7739
|
}
|
|
@@ -7658,7 +7743,10 @@ class EdsForm {
|
|
|
7658
7743
|
const val = this.values[field.name] || 0;
|
|
7659
7744
|
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 }))));
|
|
7660
7745
|
}
|
|
7661
|
-
|
|
7746
|
+
else if (field.type === 'nps') {
|
|
7747
|
+
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] }))));
|
|
7748
|
+
}
|
|
7749
|
+
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) }));
|
|
7662
7750
|
}
|
|
7663
7751
|
async getData() {
|
|
7664
7752
|
return this.makeFormData();
|
|
@@ -7667,9 +7755,13 @@ class EdsForm {
|
|
|
7667
7755
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7668
7756
|
//const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7669
7757
|
const buckets = this.groupedFields;
|
|
7670
|
-
|
|
7758
|
+
// build the shadow/bg classes if formStyle="shadow"
|
|
7759
|
+
const styleClasses = this.formStyle === 'shadow'
|
|
7760
|
+
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
7761
|
+
: '';
|
|
7762
|
+
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
|
|
7671
7763
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7672
|
-
.map((g) => (hAsync("div", { class: "container mt-
|
|
7764
|
+
.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() })))));
|
|
7673
7765
|
}
|
|
7674
7766
|
get el() { return getElement(this); }
|
|
7675
7767
|
static get watchers() { return {
|
|
@@ -7682,13 +7774,17 @@ class EdsForm {
|
|
|
7682
7774
|
"$tagName$": "eds-form",
|
|
7683
7775
|
"$members$": {
|
|
7684
7776
|
"name": [1],
|
|
7777
|
+
"title": [1],
|
|
7778
|
+
"description": [1],
|
|
7685
7779
|
"setFormUrl": [4, "set-form-url"],
|
|
7686
7780
|
"formBtn": [4, "form-btn"],
|
|
7687
7781
|
"formBtnLabel": [1, "form-btn-label"],
|
|
7782
|
+
"buttonIntent": [1, "button-intent"],
|
|
7688
7783
|
"errorMessage": [1, "error-message"],
|
|
7689
7784
|
"fields": [1],
|
|
7690
7785
|
"groups": [1],
|
|
7691
7786
|
"initData": [16],
|
|
7787
|
+
"formStyle": [1, "form-style"],
|
|
7692
7788
|
"values": [32],
|
|
7693
7789
|
"isSubmitting": [32],
|
|
7694
7790
|
"hasError": [32],
|
|
@@ -7793,7 +7889,7 @@ class EdsFrame {
|
|
|
7793
7889
|
}
|
|
7794
7890
|
}
|
|
7795
7891
|
render() {
|
|
7796
|
-
return (hAsync("div", { key: '
|
|
7892
|
+
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 })))));
|
|
7797
7893
|
}
|
|
7798
7894
|
get el() { return getElement(this); }
|
|
7799
7895
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -7842,11 +7938,16 @@ class EdsFullscreenMenu {
|
|
|
7842
7938
|
this.isMenuOpen = false;
|
|
7843
7939
|
}
|
|
7844
7940
|
/**
|
|
7845
|
-
* Listens
|
|
7846
|
-
*
|
|
7941
|
+
* Listens on `body` for `toggleheadermenu` to open/close the menu.
|
|
7942
|
+
* The event detail should be a boolean (`true` = open, `false` = close).
|
|
7943
|
+
*
|
|
7944
|
+
* @example
|
|
7945
|
+
* ```js
|
|
7946
|
+
* document.body.dispatchEvent(new CustomEvent('toggleheadermenu', { detail: true }));
|
|
7947
|
+
* ```
|
|
7847
7948
|
*/
|
|
7848
7949
|
handleToggleMenu(event) {
|
|
7849
|
-
this.isMenuOpen = event.detail;
|
|
7950
|
+
this.isMenuOpen = !!event.detail;
|
|
7850
7951
|
}
|
|
7851
7952
|
/** Opens the menu */
|
|
7852
7953
|
openMenu() {
|
|
@@ -7957,7 +8058,7 @@ class EdsGauge {
|
|
|
7957
8058
|
const textStyle = {
|
|
7958
8059
|
fontSize: `${fontSize}px`
|
|
7959
8060
|
};
|
|
7960
|
-
return (hAsync("div", { key: '
|
|
8061
|
+
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))));
|
|
7961
8062
|
}
|
|
7962
8063
|
static get style() { return EdsGaugeStyle0; }
|
|
7963
8064
|
static get cmpMeta() { return {
|
|
@@ -8038,7 +8139,7 @@ class EdsHeader {
|
|
|
8038
8139
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8039
8140
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8040
8141
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8041
|
-
return (hAsync("header", { key: '
|
|
8142
|
+
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() })))));
|
|
8042
8143
|
}
|
|
8043
8144
|
get hostEl() { return getElement(this); }
|
|
8044
8145
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -9973,7 +10074,11 @@ var start = `<svg fill="#000000" width="20" height="20" viewBox="0 0 1920 1920"
|
|
|
9973
10074
|
|
|
9974
10075
|
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>`;
|
|
9975
10076
|
|
|
9976
|
-
var edit = `<svg width="20" height="20"
|
|
10077
|
+
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>`;
|
|
10078
|
+
|
|
10079
|
+
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>`;
|
|
10080
|
+
|
|
10081
|
+
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>`;
|
|
9977
10082
|
|
|
9978
10083
|
var svgs = /*#__PURE__*/Object.freeze({
|
|
9979
10084
|
__proto__: null,
|
|
@@ -10038,7 +10143,9 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10038
10143
|
bin: bin,
|
|
10039
10144
|
start: start,
|
|
10040
10145
|
draft: draft,
|
|
10041
|
-
edit: edit
|
|
10146
|
+
edit: edit,
|
|
10147
|
+
view: view,
|
|
10148
|
+
clone: clone
|
|
10042
10149
|
});
|
|
10043
10150
|
|
|
10044
10151
|
/**
|
|
@@ -10050,7 +10157,7 @@ class EdsIconArrowDiagonal {
|
|
|
10050
10157
|
this.class = '';
|
|
10051
10158
|
}
|
|
10052
10159
|
render() {
|
|
10053
|
-
return hAsync("span", { key: '
|
|
10160
|
+
return hAsync("span", { key: 'ef60986a4391dffcbb2a66109f217f3cec95a5fc', class: this.class, innerHTML: arrowDiagonal });
|
|
10054
10161
|
}
|
|
10055
10162
|
static get cmpMeta() { return {
|
|
10056
10163
|
"$flags$": 0,
|
|
@@ -10073,7 +10180,7 @@ class EdsIconArrowRight {
|
|
|
10073
10180
|
this.class = '';
|
|
10074
10181
|
}
|
|
10075
10182
|
render() {
|
|
10076
|
-
return hAsync("span", { key: '
|
|
10183
|
+
return hAsync("span", { key: '02288b13fa941076a5cc73fd3821bd78e206b2b3', class: this.class, innerHTML: arrowRight });
|
|
10077
10184
|
}
|
|
10078
10185
|
static get cmpMeta() { return {
|
|
10079
10186
|
"$flags$": 0,
|
|
@@ -10096,7 +10203,7 @@ class EdsIconBin {
|
|
|
10096
10203
|
this.class = '';
|
|
10097
10204
|
}
|
|
10098
10205
|
render() {
|
|
10099
|
-
return hAsync("span", { key: '
|
|
10206
|
+
return hAsync("span", { key: '5f314df297274d153638c96027c23632f47f6a3a', class: this.class, innerHTML: bin });
|
|
10100
10207
|
}
|
|
10101
10208
|
static get cmpMeta() { return {
|
|
10102
10209
|
"$flags$": 0,
|
|
@@ -10119,7 +10226,7 @@ class EdsIconBluesky {
|
|
|
10119
10226
|
this.class = '';
|
|
10120
10227
|
}
|
|
10121
10228
|
render() {
|
|
10122
|
-
return hAsync("span", { key: '
|
|
10229
|
+
return hAsync("span", { key: 'dd1f0043450c0970da5487a4c7c69859d3d97e2f', class: this.class, innerHTML: bluesky });
|
|
10123
10230
|
}
|
|
10124
10231
|
static get cmpMeta() { return {
|
|
10125
10232
|
"$flags$": 0,
|
|
@@ -10142,7 +10249,7 @@ class EdsIconBookmark {
|
|
|
10142
10249
|
this.class = '';
|
|
10143
10250
|
}
|
|
10144
10251
|
render() {
|
|
10145
|
-
return hAsync("span", { key: '
|
|
10252
|
+
return hAsync("span", { key: 'b7c85131bafc5d7d3fcf8fde09cf646b4dd3fdab', class: this.class, innerHTML: bookmark });
|
|
10146
10253
|
}
|
|
10147
10254
|
static get cmpMeta() { return {
|
|
10148
10255
|
"$flags$": 0,
|
|
@@ -10165,7 +10272,7 @@ class EdsIconChevronDown {
|
|
|
10165
10272
|
this.class = '';
|
|
10166
10273
|
}
|
|
10167
10274
|
render() {
|
|
10168
|
-
return hAsync("span", { key: '
|
|
10275
|
+
return hAsync("span", { key: '5547e9d98f781dc03e88a014f726b3a402e6425d', class: this.class, innerHTML: chevronDown });
|
|
10169
10276
|
}
|
|
10170
10277
|
static get cmpMeta() { return {
|
|
10171
10278
|
"$flags$": 0,
|
|
@@ -10188,7 +10295,7 @@ class EdsIconChevronLeft {
|
|
|
10188
10295
|
this.class = '';
|
|
10189
10296
|
}
|
|
10190
10297
|
render() {
|
|
10191
|
-
return hAsync("span", { key: '
|
|
10298
|
+
return hAsync("span", { key: '49925425ac1fd676eb96b973b1419f1f2aec1c81', class: this.class, innerHTML: chevronLeft });
|
|
10192
10299
|
}
|
|
10193
10300
|
static get cmpMeta() { return {
|
|
10194
10301
|
"$flags$": 0,
|
|
@@ -10211,7 +10318,7 @@ class EdsIconChevronRight {
|
|
|
10211
10318
|
this.class = '';
|
|
10212
10319
|
}
|
|
10213
10320
|
render() {
|
|
10214
|
-
return hAsync("span", { key: '
|
|
10321
|
+
return hAsync("span", { key: 'e9abd378d28d9e2251e530f97a11973ea558fbe2', class: this.class, innerHTML: chevronRight });
|
|
10215
10322
|
}
|
|
10216
10323
|
static get cmpMeta() { return {
|
|
10217
10324
|
"$flags$": 0,
|
|
@@ -10234,7 +10341,7 @@ class EdsIconChevronUp {
|
|
|
10234
10341
|
this.class = '';
|
|
10235
10342
|
}
|
|
10236
10343
|
render() {
|
|
10237
|
-
return hAsync("span", { key: '
|
|
10344
|
+
return hAsync("span", { key: 'f81db967bf78d75a4a8e572cda6427046603f0a6', class: this.class, innerHTML: chevronUp });
|
|
10238
10345
|
}
|
|
10239
10346
|
static get cmpMeta() { return {
|
|
10240
10347
|
"$flags$": 0,
|
|
@@ -10248,6 +10355,29 @@ class EdsIconChevronUp {
|
|
|
10248
10355
|
}; }
|
|
10249
10356
|
}
|
|
10250
10357
|
|
|
10358
|
+
/**
|
|
10359
|
+
* @internal
|
|
10360
|
+
*/
|
|
10361
|
+
class EdsIconClone {
|
|
10362
|
+
constructor(hostRef) {
|
|
10363
|
+
registerInstance(this, hostRef);
|
|
10364
|
+
this.class = '';
|
|
10365
|
+
}
|
|
10366
|
+
render() {
|
|
10367
|
+
return hAsync("span", { key: 'ebbda9e150151cc6e6d2677307287f2d2f1ab4db', class: this.class, innerHTML: clone });
|
|
10368
|
+
}
|
|
10369
|
+
static get cmpMeta() { return {
|
|
10370
|
+
"$flags$": 0,
|
|
10371
|
+
"$tagName$": "eds-icon-clone",
|
|
10372
|
+
"$members$": {
|
|
10373
|
+
"class": [1]
|
|
10374
|
+
},
|
|
10375
|
+
"$listeners$": undefined,
|
|
10376
|
+
"$lazyBundleId$": "-",
|
|
10377
|
+
"$attrsToReflect$": []
|
|
10378
|
+
}; }
|
|
10379
|
+
}
|
|
10380
|
+
|
|
10251
10381
|
/**
|
|
10252
10382
|
* @internal
|
|
10253
10383
|
*/
|
|
@@ -10257,7 +10387,7 @@ class EdsIconClose {
|
|
|
10257
10387
|
this.class = '';
|
|
10258
10388
|
}
|
|
10259
10389
|
render() {
|
|
10260
|
-
return hAsync("span", { key: '
|
|
10390
|
+
return hAsync("span", { key: '91f33941205260a787d69146e390fa970a1c0d72', class: this.class, innerHTML: close });
|
|
10261
10391
|
}
|
|
10262
10392
|
static get cmpMeta() { return {
|
|
10263
10393
|
"$flags$": 0,
|
|
@@ -10280,7 +10410,7 @@ class EdsIconCopy {
|
|
|
10280
10410
|
this.class = '';
|
|
10281
10411
|
}
|
|
10282
10412
|
render() {
|
|
10283
|
-
return hAsync("span", { key: '
|
|
10413
|
+
return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: copy });
|
|
10284
10414
|
}
|
|
10285
10415
|
static get cmpMeta() { return {
|
|
10286
10416
|
"$flags$": 0,
|
|
@@ -10294,6 +10424,29 @@ class EdsIconCopy {
|
|
|
10294
10424
|
}; }
|
|
10295
10425
|
}
|
|
10296
10426
|
|
|
10427
|
+
/**
|
|
10428
|
+
* @internal
|
|
10429
|
+
*/
|
|
10430
|
+
class EdsIconDownload {
|
|
10431
|
+
constructor(hostRef) {
|
|
10432
|
+
registerInstance(this, hostRef);
|
|
10433
|
+
this.class = '';
|
|
10434
|
+
}
|
|
10435
|
+
render() {
|
|
10436
|
+
return hAsync("span", { key: '1fc6b1410cf98a4a992c0d98d78ec27aeac65b7c', class: this.class, innerHTML: download });
|
|
10437
|
+
}
|
|
10438
|
+
static get cmpMeta() { return {
|
|
10439
|
+
"$flags$": 0,
|
|
10440
|
+
"$tagName$": "eds-icon-download",
|
|
10441
|
+
"$members$": {
|
|
10442
|
+
"class": [1]
|
|
10443
|
+
},
|
|
10444
|
+
"$listeners$": undefined,
|
|
10445
|
+
"$lazyBundleId$": "-",
|
|
10446
|
+
"$attrsToReflect$": []
|
|
10447
|
+
}; }
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10297
10450
|
/**
|
|
10298
10451
|
* @internal
|
|
10299
10452
|
*/
|
|
@@ -10303,7 +10456,7 @@ class EdsIconDraft {
|
|
|
10303
10456
|
this.class = '';
|
|
10304
10457
|
}
|
|
10305
10458
|
render() {
|
|
10306
|
-
return hAsync("span", { key: '
|
|
10459
|
+
return hAsync("span", { key: 'e76f56aaba4a67096e6314e61d53bc2512941552', class: this.class, innerHTML: draft });
|
|
10307
10460
|
}
|
|
10308
10461
|
static get cmpMeta() { return {
|
|
10309
10462
|
"$flags$": 0,
|
|
@@ -10326,7 +10479,7 @@ class EdsIconEdit {
|
|
|
10326
10479
|
this.class = '';
|
|
10327
10480
|
}
|
|
10328
10481
|
render() {
|
|
10329
|
-
return hAsync("span", { key: '
|
|
10482
|
+
return hAsync("span", { key: '54502ee7a072ad54a5c22367b89c1d00afcaaafe', class: this.class, innerHTML: edit });
|
|
10330
10483
|
}
|
|
10331
10484
|
static get cmpMeta() { return {
|
|
10332
10485
|
"$flags$": 0,
|
|
@@ -10349,7 +10502,7 @@ class EdsIconEu {
|
|
|
10349
10502
|
this.class = '';
|
|
10350
10503
|
}
|
|
10351
10504
|
render() {
|
|
10352
|
-
return hAsync("span", { key: '
|
|
10505
|
+
return hAsync("span", { key: '89fde5fbed839d6fdedc0399bf1475abf22d205d', class: this.class, innerHTML: euSvg });
|
|
10353
10506
|
}
|
|
10354
10507
|
static get cmpMeta() { return {
|
|
10355
10508
|
"$flags$": 0,
|
|
@@ -10372,7 +10525,7 @@ class EdsIconExternal {
|
|
|
10372
10525
|
this.class = '';
|
|
10373
10526
|
}
|
|
10374
10527
|
render() {
|
|
10375
|
-
return hAsync("span", { key: '
|
|
10528
|
+
return hAsync("span", { key: '1abc7edbab033c99ffaede9ebe0f210849fe8d61', class: this.class, innerHTML: arrowDiagonal });
|
|
10376
10529
|
}
|
|
10377
10530
|
static get cmpMeta() { return {
|
|
10378
10531
|
"$flags$": 0,
|
|
@@ -10395,7 +10548,7 @@ class EdsIconFacebook {
|
|
|
10395
10548
|
this.class = '';
|
|
10396
10549
|
}
|
|
10397
10550
|
render() {
|
|
10398
|
-
return hAsync("span", { key: '
|
|
10551
|
+
return hAsync("span", { key: '1981b2c066cfa5f0fb4326017df4bfbdfff09873', class: this.class, innerHTML: facebook });
|
|
10399
10552
|
}
|
|
10400
10553
|
static get cmpMeta() { return {
|
|
10401
10554
|
"$flags$": 0,
|
|
@@ -10418,7 +10571,7 @@ class EdsIconGitlab {
|
|
|
10418
10571
|
this.class = '';
|
|
10419
10572
|
}
|
|
10420
10573
|
render() {
|
|
10421
|
-
return hAsync("span", { key: '
|
|
10574
|
+
return hAsync("span", { key: 'b35f2e94d903549d867579f2e008c323a441019c', class: this.class, innerHTML: gitlabBlack });
|
|
10422
10575
|
}
|
|
10423
10576
|
static get cmpMeta() { return {
|
|
10424
10577
|
"$flags$": 0,
|
|
@@ -10441,7 +10594,7 @@ class EdsIconLinkedin {
|
|
|
10441
10594
|
this.class = '';
|
|
10442
10595
|
}
|
|
10443
10596
|
render() {
|
|
10444
|
-
return hAsync("span", { key: '
|
|
10597
|
+
return hAsync("span", { key: '8bba88cba6d29b204b4a4ceae3c41129bb6edcaa', class: this.class, innerHTML: linkedin });
|
|
10445
10598
|
}
|
|
10446
10599
|
static get cmpMeta() { return {
|
|
10447
10600
|
"$flags$": 0,
|
|
@@ -10464,7 +10617,7 @@ class EdsIconLoader {
|
|
|
10464
10617
|
this.class = '';
|
|
10465
10618
|
}
|
|
10466
10619
|
render() {
|
|
10467
|
-
return hAsync("span", { key: '
|
|
10620
|
+
return hAsync("span", { key: 'b97da1b406718c7611d1e17d7a9c6b4670600740', class: this.class, innerHTML: loader });
|
|
10468
10621
|
}
|
|
10469
10622
|
static get cmpMeta() { return {
|
|
10470
10623
|
"$flags$": 0,
|
|
@@ -10487,7 +10640,7 @@ class EdsIconMastodon {
|
|
|
10487
10640
|
this.class = '';
|
|
10488
10641
|
}
|
|
10489
10642
|
render() {
|
|
10490
|
-
return hAsync("span", { key: '
|
|
10643
|
+
return hAsync("span", { key: '36bf44e06217f9b2521f374028a1316fb17ff21a', class: this.class, innerHTML: mastodon });
|
|
10491
10644
|
}
|
|
10492
10645
|
static get cmpMeta() { return {
|
|
10493
10646
|
"$flags$": 0,
|
|
@@ -10510,7 +10663,7 @@ class EdsIconMenu {
|
|
|
10510
10663
|
this.class = '';
|
|
10511
10664
|
}
|
|
10512
10665
|
render() {
|
|
10513
|
-
return hAsync("span", { key: '
|
|
10666
|
+
return hAsync("span", { key: '4322703c9e449819dc30946118893d365fa20124', class: this.class, innerHTML: menu });
|
|
10514
10667
|
}
|
|
10515
10668
|
static get cmpMeta() { return {
|
|
10516
10669
|
"$flags$": 0,
|
|
@@ -10533,7 +10686,7 @@ class EdsIconMinus {
|
|
|
10533
10686
|
this.class = '';
|
|
10534
10687
|
}
|
|
10535
10688
|
render() {
|
|
10536
|
-
return hAsync("span", { key: '
|
|
10689
|
+
return hAsync("span", { key: '9b9efb71d724cc1eb0e9bebd7256fe11b39e4da3', class: this.class, innerHTML: minus });
|
|
10537
10690
|
}
|
|
10538
10691
|
static get cmpMeta() { return {
|
|
10539
10692
|
"$flags$": 0,
|
|
@@ -10556,7 +10709,7 @@ class EdsIconMore {
|
|
|
10556
10709
|
this.class = '';
|
|
10557
10710
|
}
|
|
10558
10711
|
render() {
|
|
10559
|
-
return hAsync("span", { key: '
|
|
10712
|
+
return hAsync("span", { key: 'f7ebc68658fcf8c0df627871481cce90cd7800fb', class: this.class, innerHTML: more });
|
|
10560
10713
|
}
|
|
10561
10714
|
static get cmpMeta() { return {
|
|
10562
10715
|
"$flags$": 0,
|
|
@@ -10579,7 +10732,7 @@ class EdsIconPaper {
|
|
|
10579
10732
|
this.class = '';
|
|
10580
10733
|
}
|
|
10581
10734
|
render() {
|
|
10582
|
-
return hAsync("span", { key: '
|
|
10735
|
+
return hAsync("span", { key: 'eaa676b09d81da31b600a910b99b416c1a5420d3', class: this.class, innerHTML: paper });
|
|
10583
10736
|
}
|
|
10584
10737
|
static get cmpMeta() { return {
|
|
10585
10738
|
"$flags$": 0,
|
|
@@ -10602,7 +10755,7 @@ class EdsIconPlus {
|
|
|
10602
10755
|
this.class = '';
|
|
10603
10756
|
}
|
|
10604
10757
|
render() {
|
|
10605
|
-
return hAsync("span", { key: '
|
|
10758
|
+
return hAsync("span", { key: '825957824697ceeec9d6f81007c4dd1dfc208b28', class: this.class, innerHTML: plus });
|
|
10606
10759
|
}
|
|
10607
10760
|
static get cmpMeta() { return {
|
|
10608
10761
|
"$flags$": 0,
|
|
@@ -10625,7 +10778,7 @@ class EdsIconPortal {
|
|
|
10625
10778
|
this.class = '';
|
|
10626
10779
|
}
|
|
10627
10780
|
render() {
|
|
10628
|
-
return hAsync("span", { key: '
|
|
10781
|
+
return hAsync("span", { key: '4c557c9fe9168f361c55aae7a7c6874d78ec620d', class: this.class, innerHTML: portal });
|
|
10629
10782
|
}
|
|
10630
10783
|
static get cmpMeta() { return {
|
|
10631
10784
|
"$flags$": 0,
|
|
@@ -10648,7 +10801,7 @@ class EdsIconPrivate {
|
|
|
10648
10801
|
this.class = '';
|
|
10649
10802
|
}
|
|
10650
10803
|
render() {
|
|
10651
|
-
return hAsync("span", { key: '
|
|
10804
|
+
return hAsync("span", { key: 'fe423636431e96ce42d0b8236b04c11c92633a18', class: this.class, innerHTML: privat });
|
|
10652
10805
|
}
|
|
10653
10806
|
static get cmpMeta() { return {
|
|
10654
10807
|
"$flags$": 0,
|
|
@@ -10671,7 +10824,7 @@ class EdsIconPublic {
|
|
|
10671
10824
|
this.class = '';
|
|
10672
10825
|
}
|
|
10673
10826
|
render() {
|
|
10674
|
-
return hAsync("span", { key: '
|
|
10827
|
+
return hAsync("span", { key: '4c0a1ff37a1bfa79173c6b91da33fb808ef1b918', class: this.class, innerHTML: pub });
|
|
10675
10828
|
}
|
|
10676
10829
|
static get cmpMeta() { return {
|
|
10677
10830
|
"$flags$": 0,
|
|
@@ -10694,7 +10847,7 @@ class EdsIconSearch {
|
|
|
10694
10847
|
this.class = '';
|
|
10695
10848
|
}
|
|
10696
10849
|
render() {
|
|
10697
|
-
return hAsync("span", { key: '
|
|
10850
|
+
return hAsync("span", { key: 'c788833c6a51e489ca432697a9c46d9b5756a519', class: this.class, innerHTML: search });
|
|
10698
10851
|
}
|
|
10699
10852
|
static get cmpMeta() { return {
|
|
10700
10853
|
"$flags$": 0,
|
|
@@ -10717,7 +10870,7 @@ class EdsIconStar {
|
|
|
10717
10870
|
this.class = '';
|
|
10718
10871
|
}
|
|
10719
10872
|
render() {
|
|
10720
|
-
return hAsync("span", { key: '
|
|
10873
|
+
return hAsync("span", { key: '297e73664320032b2f78dd3c43aa0852545c0723', class: this.class, innerHTML: star });
|
|
10721
10874
|
}
|
|
10722
10875
|
static get cmpMeta() { return {
|
|
10723
10876
|
"$flags$": 0,
|
|
@@ -10740,7 +10893,7 @@ class EdsIconStart {
|
|
|
10740
10893
|
this.class = '';
|
|
10741
10894
|
}
|
|
10742
10895
|
render() {
|
|
10743
|
-
return hAsync("span", { key: '
|
|
10896
|
+
return hAsync("span", { key: '360d1178d8f9f8485718f5ab1ed823ac16be2987', class: this.class, innerHTML: start });
|
|
10744
10897
|
}
|
|
10745
10898
|
static get cmpMeta() { return {
|
|
10746
10899
|
"$flags$": 0,
|
|
@@ -10763,7 +10916,7 @@ class EdsIconSuccess {
|
|
|
10763
10916
|
this.class = '';
|
|
10764
10917
|
}
|
|
10765
10918
|
render() {
|
|
10766
|
-
return hAsync("span", { key: '
|
|
10919
|
+
return hAsync("span", { key: '281f7141b6b45b60e8f11f85430af0cd8364d91f', class: this.class, innerHTML: success });
|
|
10767
10920
|
}
|
|
10768
10921
|
static get cmpMeta() { return {
|
|
10769
10922
|
"$flags$": 0,
|
|
@@ -10786,7 +10939,7 @@ class EdsIconThumbsDown {
|
|
|
10786
10939
|
this.class = '';
|
|
10787
10940
|
}
|
|
10788
10941
|
render() {
|
|
10789
|
-
return hAsync("span", { key: '
|
|
10942
|
+
return hAsync("span", { key: 'b119fa870a00fbad7cffeb30b0ab76d2165eb76d', class: this.class, innerHTML: thumbsDown });
|
|
10790
10943
|
}
|
|
10791
10944
|
static get cmpMeta() { return {
|
|
10792
10945
|
"$flags$": 0,
|
|
@@ -10809,7 +10962,7 @@ class EdsIconThumbsUp {
|
|
|
10809
10962
|
this.class = '';
|
|
10810
10963
|
}
|
|
10811
10964
|
render() {
|
|
10812
|
-
return hAsync("span", { key: '
|
|
10965
|
+
return hAsync("span", { key: '86834f96ac586f4bd7404ebdcd8ac0e496f063bb', class: this.class, innerHTML: thumbsUp });
|
|
10813
10966
|
}
|
|
10814
10967
|
static get cmpMeta() { return {
|
|
10815
10968
|
"$flags$": 0,
|
|
@@ -10832,7 +10985,7 @@ class EdsIconTutorial {
|
|
|
10832
10985
|
this.class = '';
|
|
10833
10986
|
}
|
|
10834
10987
|
render() {
|
|
10835
|
-
return hAsync("span", { key: '
|
|
10988
|
+
return hAsync("span", { key: 'f7457ee049fe477b51776527b58d459312c52cf4', class: this.class, innerHTML: tutorial });
|
|
10836
10989
|
}
|
|
10837
10990
|
static get cmpMeta() { return {
|
|
10838
10991
|
"$flags$": 0,
|
|
@@ -10855,7 +11008,7 @@ class EdsIconTwitter {
|
|
|
10855
11008
|
this.class = '';
|
|
10856
11009
|
}
|
|
10857
11010
|
render() {
|
|
10858
|
-
return hAsync("span", { key: '
|
|
11011
|
+
return hAsync("span", { key: '6f1d0b5e073ef4d754aecb600a8578fc59950496', class: this.class, innerHTML: twitter });
|
|
10859
11012
|
}
|
|
10860
11013
|
static get cmpMeta() { return {
|
|
10861
11014
|
"$flags$": 0,
|
|
@@ -10878,7 +11031,7 @@ class EdsIconUnknown {
|
|
|
10878
11031
|
this.class = '';
|
|
10879
11032
|
}
|
|
10880
11033
|
render() {
|
|
10881
|
-
return hAsync("span", { key: '
|
|
11034
|
+
return hAsync("span", { key: '3b2750a85a74227efe458ceaa2d0995ab0c472b3', class: this.class, innerHTML: unknown });
|
|
10882
11035
|
}
|
|
10883
11036
|
static get cmpMeta() { return {
|
|
10884
11037
|
"$flags$": 0,
|
|
@@ -10901,7 +11054,7 @@ class EdsIconUpdown {
|
|
|
10901
11054
|
this.class = '';
|
|
10902
11055
|
}
|
|
10903
11056
|
render() {
|
|
10904
|
-
return hAsync("span", { key: '
|
|
11057
|
+
return hAsync("span", { key: '1768da9f606b60dd3dc1c8ef76673c6b17eb1b37', class: this.class, innerHTML: upDonw });
|
|
10905
11058
|
}
|
|
10906
11059
|
static get cmpMeta() { return {
|
|
10907
11060
|
"$flags$": 0,
|
|
@@ -10924,7 +11077,7 @@ class EdsIconUser {
|
|
|
10924
11077
|
this.class = '';
|
|
10925
11078
|
}
|
|
10926
11079
|
render() {
|
|
10927
|
-
return hAsync("span", { key: '
|
|
11080
|
+
return hAsync("span", { key: 'ccb41b3ad799e44dab0664dadd5407f6aef9b39c', class: this.class, innerHTML: user });
|
|
10928
11081
|
}
|
|
10929
11082
|
static get cmpMeta() { return {
|
|
10930
11083
|
"$flags$": 0,
|
|
@@ -10938,6 +11091,29 @@ class EdsIconUser {
|
|
|
10938
11091
|
}; }
|
|
10939
11092
|
}
|
|
10940
11093
|
|
|
11094
|
+
/**
|
|
11095
|
+
* @internal
|
|
11096
|
+
*/
|
|
11097
|
+
class EdsIconView {
|
|
11098
|
+
constructor(hostRef) {
|
|
11099
|
+
registerInstance(this, hostRef);
|
|
11100
|
+
this.class = '';
|
|
11101
|
+
}
|
|
11102
|
+
render() {
|
|
11103
|
+
return hAsync("span", { key: 'af0fae74516d7f51af3616aa09c16b80b603504f', class: this.class, innerHTML: view });
|
|
11104
|
+
}
|
|
11105
|
+
static get cmpMeta() { return {
|
|
11106
|
+
"$flags$": 0,
|
|
11107
|
+
"$tagName$": "eds-icon-view",
|
|
11108
|
+
"$members$": {
|
|
11109
|
+
"class": [1]
|
|
11110
|
+
},
|
|
11111
|
+
"$listeners$": undefined,
|
|
11112
|
+
"$lazyBundleId$": "-",
|
|
11113
|
+
"$attrsToReflect$": []
|
|
11114
|
+
}; }
|
|
11115
|
+
}
|
|
11116
|
+
|
|
10941
11117
|
/**
|
|
10942
11118
|
* `EdsIconWrapper` is a wrapper component for displaying icons with dynamic loading capabilities.
|
|
10943
11119
|
* It allows specifying the icon name, which is dynamically imported and rendered within the component.
|
|
@@ -11003,7 +11179,7 @@ class EdsIconYoutube {
|
|
|
11003
11179
|
this.class = '';
|
|
11004
11180
|
}
|
|
11005
11181
|
render() {
|
|
11006
|
-
return hAsync("span", { key: '
|
|
11182
|
+
return hAsync("span", { key: '063a941c7795658f2dd79fbdafd7ea1f8ed4b2f4', class: this.class, innerHTML: youtube });
|
|
11007
11183
|
}
|
|
11008
11184
|
static get cmpMeta() { return {
|
|
11009
11185
|
"$flags$": 0,
|
|
@@ -11079,10 +11255,10 @@ class EdsImg {
|
|
|
11079
11255
|
imgOpts['loading'] = 'lazy';
|
|
11080
11256
|
imgOpts['decoding'] = 'async';
|
|
11081
11257
|
}
|
|
11082
|
-
return (hAsync("div", { key: '
|
|
11258
|
+
return (hAsync("div", { key: 'fec0dcf2ec178a953f4ced8a71b037030983670d', class: {
|
|
11083
11259
|
'items-center justify-center': true,
|
|
11084
11260
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11085
|
-
} }, hAsync("picture", { key: '
|
|
11261
|
+
} }, 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: {
|
|
11086
11262
|
'effect-opacity object-cover object-center': true,
|
|
11087
11263
|
'opacity-100': this.loaded,
|
|
11088
11264
|
'opacity-0': !this.loaded
|
|
@@ -11164,7 +11340,7 @@ class EdsInput {
|
|
|
11164
11340
|
render() {
|
|
11165
11341
|
const withIcon = !!this.icon;
|
|
11166
11342
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11167
|
-
return (hAsync("div", { key: '
|
|
11343
|
+
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'
|
|
11168
11344
|
? {
|
|
11169
11345
|
min: this.min,
|
|
11170
11346
|
max: this.max,
|
|
@@ -11175,7 +11351,7 @@ class EdsInput {
|
|
|
11175
11351
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11176
11352
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11177
11353
|
${this.error ? 'input-error' : ''}
|
|
11178
|
-
`, "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: '
|
|
11354
|
+
`, "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 }))));
|
|
11179
11355
|
}
|
|
11180
11356
|
get el() { return getElement(this); }
|
|
11181
11357
|
static get watchers() { return {
|
|
@@ -11314,7 +11490,7 @@ class EdsInputField {
|
|
|
11314
11490
|
}
|
|
11315
11491
|
render() {
|
|
11316
11492
|
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 } : {}));
|
|
11317
|
-
return (hAsync("div", { key: '
|
|
11493
|
+
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' ? ((() => {
|
|
11318
11494
|
var _a, _b, _c;
|
|
11319
11495
|
const rangeProps = {
|
|
11320
11496
|
name: inputOpts.name,
|
|
@@ -11327,12 +11503,13 @@ class EdsInputField {
|
|
|
11327
11503
|
const opt = this.parsedOptions;
|
|
11328
11504
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11329
11505
|
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 })));
|
|
11330
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11506
|
+
})()) : (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 }))));
|
|
11331
11507
|
}
|
|
11508
|
+
static get delegatesFocus() { return true; }
|
|
11332
11509
|
get hostEl() { return getElement(this); }
|
|
11333
11510
|
static get style() { return EdsInputFieldStyle0; }
|
|
11334
11511
|
static get cmpMeta() { return {
|
|
11335
|
-
"$flags$":
|
|
11512
|
+
"$flags$": 25,
|
|
11336
11513
|
"$tagName$": "eds-input-field",
|
|
11337
11514
|
"$members$": {
|
|
11338
11515
|
"name": [1],
|
|
@@ -11378,7 +11555,7 @@ class EdsInputFooter {
|
|
|
11378
11555
|
this.link = undefined;
|
|
11379
11556
|
}
|
|
11380
11557
|
render() {
|
|
11381
|
-
return (hAsync("div", { key: '
|
|
11558
|
+
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))));
|
|
11382
11559
|
}
|
|
11383
11560
|
static get style() { return EdsInputFooterStyle0; }
|
|
11384
11561
|
static get cmpMeta() { return {
|
|
@@ -11409,7 +11586,7 @@ class EdsInputLabel {
|
|
|
11409
11586
|
this.disabled = false;
|
|
11410
11587
|
}
|
|
11411
11588
|
render() {
|
|
11412
|
-
return (hAsync("label", { key: '
|
|
11589
|
+
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")))));
|
|
11413
11590
|
}
|
|
11414
11591
|
static get style() { return EdsInputLabelStyle0; }
|
|
11415
11592
|
static get cmpMeta() { return {
|
|
@@ -11475,7 +11652,7 @@ class EdsInputRange {
|
|
|
11475
11652
|
return this.inputElement;
|
|
11476
11653
|
}
|
|
11477
11654
|
render() {
|
|
11478
|
-
return (hAsync("div", { key: '
|
|
11655
|
+
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)));
|
|
11479
11656
|
}
|
|
11480
11657
|
get el() { return getElement(this); }
|
|
11481
11658
|
static get watchers() { return {
|
|
@@ -11570,7 +11747,7 @@ class EdsInputSearch {
|
|
|
11570
11747
|
return this.inputElement;
|
|
11571
11748
|
}
|
|
11572
11749
|
render() {
|
|
11573
|
-
return (hAsync("div", { key: '
|
|
11750
|
+
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}`,
|
|
11574
11751
|
//onInput={this.onInput}
|
|
11575
11752
|
onChange: this.onChange })));
|
|
11576
11753
|
}
|
|
@@ -11624,12 +11801,12 @@ class EdsInputSelect {
|
|
|
11624
11801
|
const selectId = this.inputId || this.name;
|
|
11625
11802
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
11626
11803
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
11627
|
-
return (hAsync("div", { key: '
|
|
11804
|
+
return (hAsync("div", { key: '06be08db809ec9970ca4d7bdbdcdf1c8f2bc8840', class: "relative" }, hAsync("select", { key: 'e4319592e6c2f0c71e0dc75ca2d854506bda70bc', id: selectId, name: this.name, class: {
|
|
11628
11805
|
input: true,
|
|
11629
11806
|
'input-error': this.error,
|
|
11630
11807
|
'px-4': true,
|
|
11631
11808
|
'py-2': true
|
|
11632
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
11809
|
+
}, "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" }))));
|
|
11633
11810
|
}
|
|
11634
11811
|
static get cmpMeta() { return {
|
|
11635
11812
|
"$flags$": 0,
|
|
@@ -11834,12 +12011,34 @@ class EdsLink {
|
|
|
11834
12011
|
action: 'click'
|
|
11835
12012
|
});
|
|
11836
12013
|
}
|
|
12014
|
+
handleKeyDown(event) {
|
|
12015
|
+
if (this.disabled) {
|
|
12016
|
+
return;
|
|
12017
|
+
}
|
|
12018
|
+
// Handle Enter and Space keys for activation
|
|
12019
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
12020
|
+
event.preventDefault();
|
|
12021
|
+
this.handleClick(event);
|
|
12022
|
+
// For actual navigation, trigger the native link behavior
|
|
12023
|
+
if (this.url && !this.disabled) {
|
|
12024
|
+
if (this.external) {
|
|
12025
|
+
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
12026
|
+
}
|
|
12027
|
+
else {
|
|
12028
|
+
window.location.href = this.url;
|
|
12029
|
+
}
|
|
12030
|
+
}
|
|
12031
|
+
}
|
|
12032
|
+
}
|
|
11837
12033
|
getLinkSize() {
|
|
12034
|
+
if (this.intent === 'underline') {
|
|
12035
|
+
return 'underline';
|
|
12036
|
+
}
|
|
11838
12037
|
return this.size;
|
|
11839
12038
|
}
|
|
11840
12039
|
renderLeftIcon() {
|
|
11841
12040
|
if (this.icon && this.iconPos === 'left') {
|
|
11842
|
-
return (hAsync("span", { class:
|
|
12041
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11843
12042
|
flex inline-flex items-center justify-center
|
|
11844
12043
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11845
12044
|
`, icon: this.icon })));
|
|
@@ -11848,7 +12047,7 @@ class EdsLink {
|
|
|
11848
12047
|
}
|
|
11849
12048
|
renderRightIcon() {
|
|
11850
12049
|
if (this.icon && this.iconPos === 'right') {
|
|
11851
|
-
return (hAsync("span", { class:
|
|
12050
|
+
return (hAsync("span", { class: "flex" }, hAsync("eds-icon-wrapper", { "aria-hidden": "true", class: `
|
|
11852
12051
|
flex inline-flex items-center justify-center
|
|
11853
12052
|
${this.size === 'large' ? 'h-24 w-24' : 'h-20 w-20'}
|
|
11854
12053
|
`, icon: this.icon })));
|
|
@@ -11856,8 +12055,6 @@ class EdsLink {
|
|
|
11856
12055
|
return null;
|
|
11857
12056
|
}
|
|
11858
12057
|
render() {
|
|
11859
|
-
// If the link is disabled, use a <span>; otherwise, use an <a> element.
|
|
11860
|
-
const ComponentType = this.disabled ? 'span' : 'a';
|
|
11861
12058
|
const classes = linkStyles({
|
|
11862
12059
|
intent: this.intent,
|
|
11863
12060
|
size: this.getLinkSize(),
|
|
@@ -11865,12 +12062,12 @@ class EdsLink {
|
|
|
11865
12062
|
isActive: this.current,
|
|
11866
12063
|
hasIcon: !!this.icon
|
|
11867
12064
|
});
|
|
11868
|
-
|
|
11869
|
-
const
|
|
12065
|
+
const isInteractive = !this.disabled;
|
|
12066
|
+
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
11870
12067
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11871
12068
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11872
12069
|
: '';
|
|
11873
|
-
return (hAsync(
|
|
12070
|
+
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())));
|
|
11874
12071
|
}
|
|
11875
12072
|
get el() { return getElement(this); }
|
|
11876
12073
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11978,7 +12175,7 @@ class EdsLogo {
|
|
|
11978
12175
|
}
|
|
11979
12176
|
render() {
|
|
11980
12177
|
const logoContent = this.getLogo();
|
|
11981
|
-
return (hAsync("a", { key: '
|
|
12178
|
+
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 })));
|
|
11982
12179
|
}
|
|
11983
12180
|
get el() { return getElement(this); }
|
|
11984
12181
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12253,9 +12450,9 @@ class EdsModal {
|
|
|
12253
12450
|
render() {
|
|
12254
12451
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12255
12452
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12256
|
-
return (hAsync("div", { key: '
|
|
12453
|
+
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
|
|
12257
12454
|
,
|
|
12258
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12455
|
+
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' })))));
|
|
12259
12456
|
}
|
|
12260
12457
|
get el() { return getElement(this); }
|
|
12261
12458
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12278,7 +12475,99 @@ class EdsModal {
|
|
|
12278
12475
|
}; }
|
|
12279
12476
|
}
|
|
12280
12477
|
|
|
12281
|
-
const
|
|
12478
|
+
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)}";
|
|
12479
|
+
var EdsNpsStyle0 = edsNpsCss;
|
|
12480
|
+
|
|
12481
|
+
class EdsNps {
|
|
12482
|
+
constructor(hostRef) {
|
|
12483
|
+
registerInstance(this, hostRef);
|
|
12484
|
+
this.nps = createEvent(this, "nps", 7);
|
|
12485
|
+
this.min = 0;
|
|
12486
|
+
this.max = 10;
|
|
12487
|
+
this.question = undefined;
|
|
12488
|
+
this.leftLabel = undefined;
|
|
12489
|
+
this.rightLabel = undefined;
|
|
12490
|
+
this.selectedValue = null;
|
|
12491
|
+
}
|
|
12492
|
+
handleClick(value) {
|
|
12493
|
+
this.selectedValue = value;
|
|
12494
|
+
this.nps.emit(value);
|
|
12495
|
+
}
|
|
12496
|
+
handleKeyNav(e) {
|
|
12497
|
+
const radios = Array.from(this.el.shadowRoot.querySelectorAll('eds-button'));
|
|
12498
|
+
const currentIndex = radios.findIndex((r) => r.tabIndex === 0);
|
|
12499
|
+
switch (e.key) {
|
|
12500
|
+
case 'ArrowRight':
|
|
12501
|
+
case 'ArrowLeft': {
|
|
12502
|
+
e.preventDefault();
|
|
12503
|
+
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12504
|
+
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12505
|
+
this.activateRadio(radios, nextIndex);
|
|
12506
|
+
break;
|
|
12507
|
+
}
|
|
12508
|
+
case 'Home': {
|
|
12509
|
+
e.preventDefault();
|
|
12510
|
+
this.activateRadio(radios, 0);
|
|
12511
|
+
break;
|
|
12512
|
+
}
|
|
12513
|
+
case 'End': {
|
|
12514
|
+
e.preventDefault();
|
|
12515
|
+
this.activateRadio(radios, this.max);
|
|
12516
|
+
break;
|
|
12517
|
+
}
|
|
12518
|
+
case 'Enter':
|
|
12519
|
+
case ' ': {
|
|
12520
|
+
e.preventDefault();
|
|
12521
|
+
if (currentIndex >= 0) {
|
|
12522
|
+
this.handleClick(this.min + currentIndex);
|
|
12523
|
+
}
|
|
12524
|
+
break;
|
|
12525
|
+
}
|
|
12526
|
+
case 'Escape': {
|
|
12527
|
+
e.preventDefault();
|
|
12528
|
+
if (currentIndex >= 0) {
|
|
12529
|
+
radios[currentIndex].blur();
|
|
12530
|
+
}
|
|
12531
|
+
break;
|
|
12532
|
+
}
|
|
12533
|
+
default:
|
|
12534
|
+
return;
|
|
12535
|
+
}
|
|
12536
|
+
}
|
|
12537
|
+
activateRadio(radios, index) {
|
|
12538
|
+
const target = radios[index];
|
|
12539
|
+
const value = this.min + index;
|
|
12540
|
+
this.handleClick(value);
|
|
12541
|
+
target.focus();
|
|
12542
|
+
}
|
|
12543
|
+
render() {
|
|
12544
|
+
const count = this.max - this.min + 1;
|
|
12545
|
+
//onst fallback = 0;
|
|
12546
|
+
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) => {
|
|
12547
|
+
const val = this.min + i;
|
|
12548
|
+
const isSelected = val === this.selectedValue;
|
|
12549
|
+
const tabIndex = isSelected ? 0 : -1;
|
|
12550
|
+
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) })));
|
|
12551
|
+
})), 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))));
|
|
12552
|
+
}
|
|
12553
|
+
get el() { return getElement(this); }
|
|
12554
|
+
static get style() { return EdsNpsStyle0; }
|
|
12555
|
+
static get cmpMeta() { return {
|
|
12556
|
+
"$flags$": 9,
|
|
12557
|
+
"$tagName$": "eds-nps",
|
|
12558
|
+
"$members$": {
|
|
12559
|
+
"question": [1],
|
|
12560
|
+
"leftLabel": [1, "left-label"],
|
|
12561
|
+
"rightLabel": [1, "right-label"],
|
|
12562
|
+
"selectedValue": [32]
|
|
12563
|
+
},
|
|
12564
|
+
"$listeners$": undefined,
|
|
12565
|
+
"$lazyBundleId$": "-",
|
|
12566
|
+
"$attrsToReflect$": []
|
|
12567
|
+
}; }
|
|
12568
|
+
}
|
|
12569
|
+
|
|
12570
|
+
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}}";
|
|
12282
12571
|
var EdsPaginationStyle0 = edsPaginationCss;
|
|
12283
12572
|
|
|
12284
12573
|
/**
|
|
@@ -12288,23 +12577,73 @@ var EdsPaginationStyle0 = edsPaginationCss;
|
|
|
12288
12577
|
* - Supports two display modes: "default" (shows numbered page links) and "navigator" (shows Previous/Next buttons).
|
|
12289
12578
|
* - Emits a `page` event when the page is changed in "default" mode.
|
|
12290
12579
|
* - Automatically generates pagination links based on the `currentPage` and `lastPage`.
|
|
12580
|
+
* - Full keyboard navigation support with arrow keys, Home, End
|
|
12581
|
+
* - Proper ARIA labels and screen reader support
|
|
12291
12582
|
*
|
|
12292
12583
|
* This component is designed for flexible and accessible pagination controls, suitable for various display needs.
|
|
12293
12584
|
*/
|
|
12294
12585
|
class EdsPagination {
|
|
12295
12586
|
constructor(hostRef) {
|
|
12296
12587
|
registerInstance(this, hostRef);
|
|
12588
|
+
/**
|
|
12589
|
+
* Handles keyboard navigation within the pagination
|
|
12590
|
+
*/
|
|
12591
|
+
this.handleKeyDown = (e) => {
|
|
12592
|
+
if (this.mode !== 'default' || !this.useButtons) {
|
|
12593
|
+
return;
|
|
12594
|
+
}
|
|
12595
|
+
const navigableItems = this.getNavigableItems();
|
|
12596
|
+
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
|
12597
|
+
e.preventDefault();
|
|
12598
|
+
const increment = e.key === 'ArrowRight' ? 1 : -1;
|
|
12599
|
+
let currentIndex = this.focusedIndex;
|
|
12600
|
+
// If no item is focused, start from current page or first item
|
|
12601
|
+
if (currentIndex === -1) {
|
|
12602
|
+
const currentPageIndex = navigableItems.findIndex((item) => item.type === 'page' && item.page === this.currentPage);
|
|
12603
|
+
currentIndex = currentPageIndex !== -1 ? currentPageIndex : 0;
|
|
12604
|
+
}
|
|
12605
|
+
let newIndex = currentIndex + increment;
|
|
12606
|
+
// Wrap around navigation
|
|
12607
|
+
if (newIndex >= navigableItems.length) {
|
|
12608
|
+
newIndex = 0;
|
|
12609
|
+
}
|
|
12610
|
+
else if (newIndex < 0) {
|
|
12611
|
+
newIndex = navigableItems.length - 1;
|
|
12612
|
+
}
|
|
12613
|
+
this.focusedIndex = newIndex;
|
|
12614
|
+
this.focusPaginationItem(newIndex);
|
|
12615
|
+
}
|
|
12616
|
+
else if (e.key === 'Home') {
|
|
12617
|
+
e.preventDefault();
|
|
12618
|
+
this.focusedIndex = 0;
|
|
12619
|
+
this.focusPaginationItem(0);
|
|
12620
|
+
}
|
|
12621
|
+
else if (e.key === 'End') {
|
|
12622
|
+
e.preventDefault();
|
|
12623
|
+
const lastIndex = navigableItems.length - 1;
|
|
12624
|
+
this.focusedIndex = lastIndex;
|
|
12625
|
+
this.focusPaginationItem(lastIndex);
|
|
12626
|
+
}
|
|
12627
|
+
};
|
|
12628
|
+
/**
|
|
12629
|
+
* Handles focus events for pagination items
|
|
12630
|
+
*/
|
|
12631
|
+
this.handleItemFocus = (index) => {
|
|
12632
|
+
this.focusedIndex = index;
|
|
12633
|
+
};
|
|
12297
12634
|
this.currentPage = undefined;
|
|
12298
12635
|
this.lastPage = undefined;
|
|
12299
12636
|
this.perPage = 10;
|
|
12300
12637
|
this.total = 0;
|
|
12301
12638
|
this.url = '';
|
|
12302
12639
|
this.mode = 'default';
|
|
12640
|
+
this.useButtons = true;
|
|
12303
12641
|
this.prevLabel = 'Prev';
|
|
12304
12642
|
this.nextLabel = 'Next';
|
|
12305
12643
|
this.prevUrl = '';
|
|
12306
12644
|
this.nextUrl = '';
|
|
12307
12645
|
this.links = [];
|
|
12646
|
+
this.focusedIndex = -1;
|
|
12308
12647
|
}
|
|
12309
12648
|
/** Lifecycle hook to generate pagination links on component load */
|
|
12310
12649
|
componentWillLoad() {
|
|
@@ -12313,24 +12652,17 @@ class EdsPagination {
|
|
|
12313
12652
|
}
|
|
12314
12653
|
}
|
|
12315
12654
|
componentDidLoad() {
|
|
12316
|
-
//
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
this.emitContext(links[0]);
|
|
12324
|
-
|
|
12325
|
-
// Emit context for the last link, if it's different from the first
|
|
12326
|
-
if (links.length > 1) {
|
|
12327
|
-
this.emitContext(links[links.length - 1]);
|
|
12328
|
-
}
|
|
12329
|
-
}*/
|
|
12655
|
+
// Only emit context for links, not buttons
|
|
12656
|
+
if (!this.useButtons) {
|
|
12657
|
+
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
12658
|
+
links.forEach((lnk) => {
|
|
12659
|
+
this.emitContext(lnk);
|
|
12660
|
+
});
|
|
12661
|
+
}
|
|
12330
12662
|
}
|
|
12331
12663
|
/**
|
|
12332
12664
|
* Emits a custom event called `parentContext` for a given link element.
|
|
12333
|
-
* This event provides context information about the
|
|
12665
|
+
* This event provides context information about the pagination component.
|
|
12334
12666
|
*
|
|
12335
12667
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
12336
12668
|
*/
|
|
@@ -12348,6 +12680,34 @@ class EdsPagination {
|
|
|
12348
12680
|
this.generateLinks();
|
|
12349
12681
|
}
|
|
12350
12682
|
}
|
|
12683
|
+
/**
|
|
12684
|
+
* Gets all navigable pagination items for keyboard navigation
|
|
12685
|
+
*/
|
|
12686
|
+
getNavigableItems() {
|
|
12687
|
+
const items = [];
|
|
12688
|
+
// Previous button
|
|
12689
|
+
items.push({ type: 'prev', disabled: this.isFirstPage() });
|
|
12690
|
+
// Page numbers
|
|
12691
|
+
this.links.forEach((link) => {
|
|
12692
|
+
if (typeof link === 'object') {
|
|
12693
|
+
items.push({ type: 'page', page: parseInt(link.label), disabled: false });
|
|
12694
|
+
}
|
|
12695
|
+
});
|
|
12696
|
+
// Next button
|
|
12697
|
+
items.push({ type: 'next', disabled: this.isLastPage() });
|
|
12698
|
+
return items.filter((item) => !item.disabled);
|
|
12699
|
+
}
|
|
12700
|
+
/**
|
|
12701
|
+
* Focuses a specific pagination item by index
|
|
12702
|
+
*/
|
|
12703
|
+
focusPaginationItem(index) {
|
|
12704
|
+
var _a;
|
|
12705
|
+
const buttons = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.pagination-button');
|
|
12706
|
+
const targetButton = buttons === null || buttons === void 0 ? void 0 : buttons[index];
|
|
12707
|
+
if (targetButton) {
|
|
12708
|
+
targetButton.focus();
|
|
12709
|
+
}
|
|
12710
|
+
}
|
|
12351
12711
|
/**
|
|
12352
12712
|
* Checks if the current page is the first page
|
|
12353
12713
|
* @returns {boolean} - true if current page is the first page
|
|
@@ -12370,7 +12730,7 @@ class EdsPagination {
|
|
|
12370
12730
|
generateLink(page) {
|
|
12371
12731
|
const urlHasQuery = this.url.includes('?');
|
|
12372
12732
|
return {
|
|
12373
|
-
ariaLabel: `
|
|
12733
|
+
ariaLabel: `Go to page ${page}`,
|
|
12374
12734
|
url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
|
|
12375
12735
|
label: page.toString(),
|
|
12376
12736
|
current: this.currentPage === page,
|
|
@@ -12390,7 +12750,6 @@ class EdsPagination {
|
|
|
12390
12750
|
* Creates a pagination range based on delta, current, and total pages
|
|
12391
12751
|
* @param {number} current - Current page number
|
|
12392
12752
|
* @param {number} total - Total number of pages
|
|
12393
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
12394
12753
|
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
12395
12754
|
*/
|
|
12396
12755
|
getPaginationGenerator(current, total) {
|
|
@@ -12405,7 +12764,7 @@ class EdsPagination {
|
|
|
12405
12764
|
else {
|
|
12406
12765
|
// Always show the first page
|
|
12407
12766
|
range.push(1);
|
|
12408
|
-
// Add ellipsis if there
|
|
12767
|
+
// Add ellipsis if there's a gap between the first page and the current range start
|
|
12409
12768
|
if (current - delta > 2) {
|
|
12410
12769
|
range.push('...');
|
|
12411
12770
|
}
|
|
@@ -12413,7 +12772,7 @@ class EdsPagination {
|
|
|
12413
12772
|
for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
|
|
12414
12773
|
range.push(i);
|
|
12415
12774
|
}
|
|
12416
|
-
// Add ellipsis if there
|
|
12775
|
+
// Add ellipsis if there's a gap between the current range end and the last page
|
|
12417
12776
|
if (current + delta < total - 1) {
|
|
12418
12777
|
range.push('...');
|
|
12419
12778
|
}
|
|
@@ -12428,9 +12787,11 @@ class EdsPagination {
|
|
|
12428
12787
|
*/
|
|
12429
12788
|
pageResults() {
|
|
12430
12789
|
if (this.total > 0) {
|
|
12790
|
+
const start = this.perPage * ((this.currentPage || 1) - 1) + 1;
|
|
12791
|
+
const end = Math.min(this.perPage * (this.currentPage || 1), this.total);
|
|
12431
12792
|
return this.total > this.perPage
|
|
12432
|
-
?
|
|
12433
|
-
:
|
|
12793
|
+
? `Showing ${start} to ${end} of ${this.total} results`
|
|
12794
|
+
: `Showing ${this.total} result${this.total !== 1 ? 's' : ''}`;
|
|
12434
12795
|
}
|
|
12435
12796
|
return '';
|
|
12436
12797
|
}
|
|
@@ -12443,11 +12804,13 @@ class EdsPagination {
|
|
|
12443
12804
|
if (this.mode === 'navigator') {
|
|
12444
12805
|
return; // No page clicking logic for navigator mode
|
|
12445
12806
|
}
|
|
12446
|
-
|
|
12807
|
+
if (this.useButtons) {
|
|
12808
|
+
event.preventDefault(); // Prevent default for buttons
|
|
12809
|
+
}
|
|
12447
12810
|
if (newPage !== this.currentPage) {
|
|
12448
12811
|
this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
|
|
12449
12812
|
const pageChangeEvent = new CustomEvent('page', {
|
|
12450
|
-
detail: newPage,
|
|
12813
|
+
detail: { value: newPage },
|
|
12451
12814
|
bubbles: true,
|
|
12452
12815
|
composed: true
|
|
12453
12816
|
});
|
|
@@ -12456,38 +12819,25 @@ class EdsPagination {
|
|
|
12456
12819
|
}
|
|
12457
12820
|
}
|
|
12458
12821
|
render() {
|
|
12459
|
-
|
|
12460
|
-
|
|
12822
|
+
const navigableIndex = -1; // Track index for keyboard navigation
|
|
12823
|
+
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) => {
|
|
12824
|
+
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
12825
|
+
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12826
|
+
}
|
|
12827
|
+
} }))) : (hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
12828
|
+
? this.prevUrl || '#'
|
|
12461
12829
|
: this.isFirstPage()
|
|
12462
12830
|
? '#'
|
|
12463
|
-
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
if (this.isFirstPage()) {
|
|
12468
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12469
|
-
}
|
|
12470
|
-
else {
|
|
12471
|
-
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
12472
|
-
}
|
|
12831
|
+
: 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' &&
|
|
12832
|
+
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) => {
|
|
12833
|
+
if (this.mode === 'default' && !this.isLastPage()) {
|
|
12834
|
+
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12473
12835
|
}
|
|
12474
|
-
} })), this.mode === '
|
|
12475
|
-
|
|
12476
|
-
? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
|
|
12836
|
+
} }))) : (hAsync("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
|
|
12837
|
+
? this.nextUrl || '#'
|
|
12477
12838
|
: this.isLastPage()
|
|
12478
12839
|
? '#'
|
|
12479
|
-
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
|
|
12480
|
-
? !this.nextUrl // Disable if nextUrl is not provided
|
|
12481
|
-
: 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) => {
|
|
12482
|
-
if (this.mode === 'default') {
|
|
12483
|
-
if (this.isLastPage()) {
|
|
12484
|
-
event.preventDefault(); // Prevent click if disabled
|
|
12485
|
-
}
|
|
12486
|
-
else {
|
|
12487
|
-
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
12488
|
-
}
|
|
12489
|
-
}
|
|
12490
|
-
} }))))) : null));
|
|
12840
|
+
: 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));
|
|
12491
12841
|
}
|
|
12492
12842
|
get hostEl() { return getElement(this); }
|
|
12493
12843
|
static get watchers() { return {
|
|
@@ -12505,11 +12855,13 @@ class EdsPagination {
|
|
|
12505
12855
|
"total": [2],
|
|
12506
12856
|
"url": [1],
|
|
12507
12857
|
"mode": [1],
|
|
12858
|
+
"useButtons": [4, "use-buttons"],
|
|
12508
12859
|
"prevLabel": [1, "prev-label"],
|
|
12509
12860
|
"nextLabel": [1, "next-label"],
|
|
12510
12861
|
"prevUrl": [1, "prev-url"],
|
|
12511
12862
|
"nextUrl": [1, "next-url"],
|
|
12512
|
-
"links": [32]
|
|
12863
|
+
"links": [32],
|
|
12864
|
+
"focusedIndex": [32]
|
|
12513
12865
|
},
|
|
12514
12866
|
"$listeners$": undefined,
|
|
12515
12867
|
"$lazyBundleId$": "-",
|
|
@@ -12675,7 +13027,7 @@ class EdsProgressBar {
|
|
|
12675
13027
|
]
|
|
12676
13028
|
.filter(Boolean)
|
|
12677
13029
|
.join(' ');
|
|
12678
|
-
return (hAsync("div", { key: '
|
|
13030
|
+
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, "%"))));
|
|
12679
13031
|
}
|
|
12680
13032
|
static get style() { return EdsProgressBarStyle0; }
|
|
12681
13033
|
static get cmpMeta() { return {
|
|
@@ -12699,6 +13051,7 @@ class EdsRating {
|
|
|
12699
13051
|
constructor(hostRef) {
|
|
12700
13052
|
registerInstance(this, hostRef);
|
|
12701
13053
|
this.rating = createEvent(this, "rating", 7);
|
|
13054
|
+
this.buttonRefs = [];
|
|
12702
13055
|
this.ratingType = 'star';
|
|
12703
13056
|
this.ratingCount = 5;
|
|
12704
13057
|
this.selectedRating = 0;
|
|
@@ -12732,16 +13085,37 @@ class EdsRating {
|
|
|
12732
13085
|
* Handles the click event on a star.
|
|
12733
13086
|
* @param rating - The selected rating value.
|
|
12734
13087
|
*/
|
|
12735
|
-
|
|
13088
|
+
onSelect(rating) {
|
|
12736
13089
|
this.selectedRating = rating;
|
|
12737
13090
|
this.rating.emit(rating);
|
|
13091
|
+
setTimeout(() => {
|
|
13092
|
+
const btn = this.buttonRefs[rating - 1];
|
|
13093
|
+
btn === null || btn === void 0 ? void 0 : btn.focus();
|
|
13094
|
+
}, 0);
|
|
13095
|
+
}
|
|
13096
|
+
handleKeyNav(e) {
|
|
13097
|
+
const { key } = e;
|
|
13098
|
+
if (!['ArrowRight', 'ArrowLeft', 'ArrowDown', 'ArrowUp'].includes(key)) {
|
|
13099
|
+
return;
|
|
13100
|
+
}
|
|
13101
|
+
e.preventDefault();
|
|
13102
|
+
const increment = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
|
|
13103
|
+
let next = (this.selectedRating || 1) + increment;
|
|
13104
|
+
if (next > this.ratingCount) {
|
|
13105
|
+
next = 1;
|
|
13106
|
+
}
|
|
13107
|
+
if (next < 1) {
|
|
13108
|
+
next = this.ratingCount;
|
|
13109
|
+
}
|
|
13110
|
+
this.onSelect(next);
|
|
12738
13111
|
}
|
|
12739
13112
|
render() {
|
|
12740
|
-
return (hAsync("div", { key: '
|
|
13113
|
+
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) => {
|
|
12741
13114
|
const starRating = index + 1;
|
|
12742
13115
|
const isSelected = starRating <= this.selectedRating;
|
|
12743
13116
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
12744
|
-
|
|
13117
|
+
const checked = this.selectedRating === starRating;
|
|
13118
|
+
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
|
|
12745
13119
|
}));
|
|
12746
13120
|
})));
|
|
12747
13121
|
}
|
|
@@ -12786,7 +13160,7 @@ class EdsSectionCore {
|
|
|
12786
13160
|
}
|
|
12787
13161
|
render() {
|
|
12788
13162
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
12789
|
-
return (hAsync(TagType, { key: '
|
|
13163
|
+
return (hAsync(TagType, { key: '99f87da56df0ac4b5b28ce721288507beb0cd431' }, hAsync("eds-section-heading", { key: '101137aa9637a95580393a52e7f41d71e8ae8e8b', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '0b6a6131d8e1e2528982571cf7ba617736a34173' })));
|
|
12790
13164
|
}
|
|
12791
13165
|
static get style() { return EdsSectionCoreStyle0; }
|
|
12792
13166
|
static get cmpMeta() { return {
|
|
@@ -12841,12 +13215,12 @@ class EdsSectionHeading {
|
|
|
12841
13215
|
render() {
|
|
12842
13216
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
12843
13217
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
12844
|
-
return (hAsync(TagType, { key: '
|
|
13218
|
+
return (hAsync(TagType, { key: '2af16d4d21378244ba843b619b3fd4f283b3e179', class: {
|
|
12845
13219
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
12846
13220
|
container: this.withContainer,
|
|
12847
13221
|
'pt-48': this.spacingLarge,
|
|
12848
13222
|
'pt-28': !this.spacingLarge
|
|
12849
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13223
|
+
} }, hAsync(HeadingTag, { key: '8caa529d940fd5d2f7e8f49f7b8e5f2572712f9e', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
12850
13224
|
}
|
|
12851
13225
|
static get cmpMeta() { return {
|
|
12852
13226
|
"$flags$": 0,
|
|
@@ -12864,7 +13238,7 @@ class EdsSectionHeading {
|
|
|
12864
13238
|
}; }
|
|
12865
13239
|
}
|
|
12866
13240
|
|
|
12867
|
-
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)}.
|
|
13241
|
+
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}";
|
|
12868
13242
|
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
12869
13243
|
|
|
12870
13244
|
/**
|
|
@@ -12918,11 +13292,9 @@ class EdsSocialNetworks {
|
|
|
12918
13292
|
/**
|
|
12919
13293
|
* Renders the component's HTML structure with links to EBRAINS social profiles.
|
|
12920
13294
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
12921
|
-
*
|
|
12922
|
-
* @returns {JSX.Element} The rendered JSX for the component.
|
|
12923
13295
|
*/
|
|
12924
13296
|
render() {
|
|
12925
|
-
return (hAsync("
|
|
13297
|
+
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" })))))));
|
|
12926
13298
|
}
|
|
12927
13299
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
12928
13300
|
static get cmpMeta() { return {
|
|
@@ -13013,7 +13385,7 @@ class EdsSpinner {
|
|
|
13013
13385
|
alignItems: 'center',
|
|
13014
13386
|
justifyContent: 'center'
|
|
13015
13387
|
};
|
|
13016
|
-
return (hAsync(Host, { key: '
|
|
13388
|
+
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))));
|
|
13017
13389
|
}
|
|
13018
13390
|
static get style() { return EdsSpinnerStyle0; }
|
|
13019
13391
|
static get cmpMeta() { return {
|
|
@@ -13097,40 +13469,60 @@ class EdsSplashScreen {
|
|
|
13097
13469
|
}; }
|
|
13098
13470
|
}
|
|
13099
13471
|
|
|
13100
|
-
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
|
|
13472
|
+
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}";
|
|
13101
13473
|
var EdsStepsStyle0 = edsStepsCss;
|
|
13102
13474
|
|
|
13103
13475
|
class EdsSteps {
|
|
13104
13476
|
constructor(hostRef) {
|
|
13105
13477
|
registerInstance(this, hostRef);
|
|
13106
13478
|
this.step = createEvent(this, "step", 7);
|
|
13479
|
+
this.finished = createEvent(this, "finished", 7);
|
|
13480
|
+
this.next = createEvent(this, "next", 7);
|
|
13481
|
+
this.back = createEvent(this, "back", 7);
|
|
13107
13482
|
this.handleNext = () => {
|
|
13108
|
-
|
|
13109
|
-
if (this.activeStep
|
|
13110
|
-
this.
|
|
13483
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
13484
|
+
if (this.activeStep >= lastIndex) {
|
|
13485
|
+
this.finished.emit();
|
|
13486
|
+
return;
|
|
13487
|
+
}
|
|
13488
|
+
const target = this.activeStep + 1;
|
|
13489
|
+
this.next.emit(target);
|
|
13490
|
+
if (this.isNextDisabledFor(this.activeStep)) {
|
|
13491
|
+
return;
|
|
13492
|
+
} // block advance only if current is disabled
|
|
13493
|
+
this.activeStep = target;
|
|
13494
|
+
this.step.emit(this.activeStep);
|
|
13495
|
+
// 2) if using the boolean form, clear it when moving away from a step
|
|
13496
|
+
if (!Array.isArray(this.disableNext)) {
|
|
13497
|
+
this.disableNext = false;
|
|
13111
13498
|
}
|
|
13112
13499
|
};
|
|
13113
13500
|
this.handleBack = () => {
|
|
13114
13501
|
if (this.activeStep > 0) {
|
|
13115
|
-
|
|
13502
|
+
const target = this.activeStep - 1;
|
|
13503
|
+
this.back.emit(target);
|
|
13504
|
+
this.activeStep = target;
|
|
13116
13505
|
this.step.emit(this.activeStep);
|
|
13506
|
+
// also clear boolean form on back
|
|
13507
|
+
if (!Array.isArray(this.disableNext)) {
|
|
13508
|
+
this.disableNext = false;
|
|
13509
|
+
}
|
|
13117
13510
|
}
|
|
13118
13511
|
};
|
|
13119
13512
|
this.steps = [];
|
|
13120
13513
|
this.type = 'static';
|
|
13514
|
+
this.nextLabel = 'Next';
|
|
13515
|
+
this.backLabel = 'Back';
|
|
13516
|
+
this.finishLabel = 'Finish';
|
|
13517
|
+
this.disableNext = false;
|
|
13518
|
+
this.headingLevel = 'h4';
|
|
13121
13519
|
this.activeStep = 0;
|
|
13122
13520
|
}
|
|
13123
|
-
/**
|
|
13124
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
13125
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
13126
|
-
*/
|
|
13127
13521
|
componentDidLoad() {
|
|
13128
13522
|
var _a;
|
|
13129
13523
|
if (this.type === 'linear') {
|
|
13130
13524
|
const btns = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-button');
|
|
13131
|
-
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) =>
|
|
13132
|
-
this.emitContext(btn);
|
|
13133
|
-
});
|
|
13525
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
13134
13526
|
}
|
|
13135
13527
|
}
|
|
13136
13528
|
activeStepChanged(newValue) {
|
|
@@ -13138,19 +13530,10 @@ class EdsSteps {
|
|
|
13138
13530
|
var _a;
|
|
13139
13531
|
const activeStepContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('.step')[newValue];
|
|
13140
13532
|
if (activeStepContainer) {
|
|
13141
|
-
|
|
13142
|
-
btns.forEach((btn) => {
|
|
13143
|
-
this.emitContext(btn);
|
|
13144
|
-
});
|
|
13533
|
+
activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13145
13534
|
}
|
|
13146
13535
|
}, 50);
|
|
13147
13536
|
}
|
|
13148
|
-
/**
|
|
13149
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
13150
|
-
* This event provides context information about the breadcrumb component.
|
|
13151
|
-
*
|
|
13152
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
13153
|
-
*/
|
|
13154
13537
|
emitContext(linkElement) {
|
|
13155
13538
|
const event = new CustomEvent('parentContext', {
|
|
13156
13539
|
detail: {
|
|
@@ -13160,26 +13543,29 @@ class EdsSteps {
|
|
|
13160
13543
|
});
|
|
13161
13544
|
linkElement.dispatchEvent(event);
|
|
13162
13545
|
}
|
|
13163
|
-
handleStepClick(index) {
|
|
13164
|
-
this.step.emit(index);
|
|
13165
|
-
// In linear mode, update the active step on header click.
|
|
13166
|
-
if (this.type === 'linear') {
|
|
13167
|
-
this.activeStep = index;
|
|
13168
|
-
}
|
|
13169
|
-
}
|
|
13170
|
-
/**
|
|
13171
|
-
* Parse the JSON string into an array of steps.
|
|
13172
|
-
*/
|
|
13173
13546
|
get parsedSteps() {
|
|
13174
13547
|
return parseData(this.steps);
|
|
13175
13548
|
}
|
|
13549
|
+
isNextDisabledFor(index) {
|
|
13550
|
+
return Array.isArray(this.disableNext)
|
|
13551
|
+
? !!this.disableNext[index] // per-step
|
|
13552
|
+
: index === this.activeStep && !!this.disableNext; // only active step
|
|
13553
|
+
}
|
|
13554
|
+
/** Render the semantic heading element */
|
|
13555
|
+
renderHeading(title) {
|
|
13556
|
+
const Tag = this.headingLevel;
|
|
13557
|
+
return hAsync(Tag, null, title);
|
|
13558
|
+
}
|
|
13176
13559
|
render() {
|
|
13177
13560
|
const steps = this.parsedSteps;
|
|
13178
13561
|
if (this.type === 'linear') {
|
|
13179
|
-
return (hAsync("div",
|
|
13562
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => {
|
|
13563
|
+
const isLast = index === steps.length - 1;
|
|
13564
|
+
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}` })))));
|
|
13565
|
+
})));
|
|
13180
13566
|
}
|
|
13181
|
-
// Static
|
|
13182
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index },
|
|
13567
|
+
// Static: no navigation buttons
|
|
13568
|
+
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 }))))))));
|
|
13183
13569
|
}
|
|
13184
13570
|
get el() { return getElement(this); }
|
|
13185
13571
|
static get watchers() { return {
|
|
@@ -13192,30 +13578,49 @@ class EdsSteps {
|
|
|
13192
13578
|
"$members$": {
|
|
13193
13579
|
"steps": [1],
|
|
13194
13580
|
"type": [1],
|
|
13581
|
+
"nextLabel": [1, "next-label"],
|
|
13582
|
+
"backLabel": [1, "back-label"],
|
|
13583
|
+
"finishLabel": [1, "finish-label"],
|
|
13584
|
+
"disableNext": [1028, "disable-next"],
|
|
13585
|
+
"headingLevel": [513, "heading-level"],
|
|
13195
13586
|
"activeStep": [32]
|
|
13196
13587
|
},
|
|
13197
13588
|
"$listeners$": undefined,
|
|
13198
13589
|
"$lazyBundleId$": "-",
|
|
13199
|
-
"$attrsToReflect$": []
|
|
13590
|
+
"$attrsToReflect$": [["headingLevel", "heading-level"]]
|
|
13200
13591
|
}; }
|
|
13201
13592
|
}
|
|
13202
13593
|
|
|
13203
|
-
const edsStepsV2Css = "
|
|
13594
|
+
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}";
|
|
13204
13595
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
13205
13596
|
|
|
13206
13597
|
class EdsStepsV2 {
|
|
13207
13598
|
constructor(hostRef) {
|
|
13208
13599
|
registerInstance(this, hostRef);
|
|
13209
13600
|
this.step = createEvent(this, "step", 7);
|
|
13601
|
+
this.finished = createEvent(this, "finished", 7);
|
|
13602
|
+
this.next = createEvent(this, "next", 7);
|
|
13603
|
+
this.back = createEvent(this, "back", 7);
|
|
13210
13604
|
this.handleNext = () => {
|
|
13211
|
-
|
|
13212
|
-
if (this.activeStep
|
|
13605
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
13606
|
+
if (this.activeStep >= lastIndex) {
|
|
13607
|
+
// Finish
|
|
13608
|
+
this.finished.emit();
|
|
13609
|
+
return;
|
|
13610
|
+
}
|
|
13611
|
+
// Next
|
|
13612
|
+
const target = this.activeStep + 1;
|
|
13613
|
+
this.next.emit(target);
|
|
13614
|
+
if (!this.disableNext) {
|
|
13615
|
+
this.activeStep = target;
|
|
13213
13616
|
this.step.emit(this.activeStep);
|
|
13214
13617
|
}
|
|
13215
13618
|
};
|
|
13216
13619
|
this.handleBack = () => {
|
|
13217
13620
|
if (this.activeStep > 0) {
|
|
13218
|
-
|
|
13621
|
+
const target = this.activeStep - 1;
|
|
13622
|
+
this.back.emit(target);
|
|
13623
|
+
this.activeStep = target;
|
|
13219
13624
|
this.step.emit(this.activeStep);
|
|
13220
13625
|
}
|
|
13221
13626
|
};
|
|
@@ -13225,6 +13630,11 @@ class EdsStepsV2 {
|
|
|
13225
13630
|
this.imageWidth = undefined;
|
|
13226
13631
|
this.bg = true;
|
|
13227
13632
|
this.message = undefined;
|
|
13633
|
+
this.nextLabel = 'Next';
|
|
13634
|
+
this.backLabel = 'Back';
|
|
13635
|
+
this.finishLabel = 'Finish';
|
|
13636
|
+
this.disableNext = false;
|
|
13637
|
+
this.headingLevel = 'h4';
|
|
13228
13638
|
this.activeStep = 0;
|
|
13229
13639
|
}
|
|
13230
13640
|
componentDidLoad() {
|
|
@@ -13263,24 +13673,22 @@ class EdsStepsV2 {
|
|
|
13263
13673
|
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
13264
13674
|
].join(' ');
|
|
13265
13675
|
}
|
|
13266
|
-
handleStepClick(index) {
|
|
13267
|
-
this.step.emit(index);
|
|
13268
|
-
// In linear mode, update the active step on header click.
|
|
13269
|
-
if (this.type === 'linear') {
|
|
13270
|
-
this.activeStep = index;
|
|
13271
|
-
}
|
|
13272
|
-
}
|
|
13273
13676
|
/**
|
|
13274
13677
|
* Parses the steps property into an array of Step objects.
|
|
13275
13678
|
*/
|
|
13276
13679
|
get parsedSteps() {
|
|
13277
13680
|
return parseData(this.steps);
|
|
13278
13681
|
}
|
|
13682
|
+
/** Render the semantic heading element */
|
|
13683
|
+
renderHeading(title) {
|
|
13684
|
+
const Tag = this.headingLevel;
|
|
13685
|
+
return hAsync(Tag, null, title);
|
|
13686
|
+
}
|
|
13279
13687
|
render() {
|
|
13280
13688
|
const steps = this.parsedSteps;
|
|
13281
|
-
return (hAsync("div", { key: '
|
|
13689
|
+
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" }))))))))) : (
|
|
13282
13690
|
// Static mode: show all steps with their content.
|
|
13283
|
-
hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index },
|
|
13691
|
+
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 })))))))))));
|
|
13284
13692
|
}
|
|
13285
13693
|
get el() { return getElement(this); }
|
|
13286
13694
|
static get watchers() { return {
|
|
@@ -13297,15 +13705,20 @@ class EdsStepsV2 {
|
|
|
13297
13705
|
"imageWidth": [2, "image-width"],
|
|
13298
13706
|
"bg": [4],
|
|
13299
13707
|
"message": [1],
|
|
13708
|
+
"nextLabel": [1, "next-label"],
|
|
13709
|
+
"backLabel": [1, "back-label"],
|
|
13710
|
+
"finishLabel": [1, "finish-label"],
|
|
13711
|
+
"disableNext": [4, "disable-next"],
|
|
13712
|
+
"headingLevel": [513, "heading-level"],
|
|
13300
13713
|
"activeStep": [32]
|
|
13301
13714
|
},
|
|
13302
13715
|
"$listeners$": undefined,
|
|
13303
13716
|
"$lazyBundleId$": "-",
|
|
13304
|
-
"$attrsToReflect$": []
|
|
13717
|
+
"$attrsToReflect$": [["headingLevel", "heading-level"]]
|
|
13305
13718
|
}; }
|
|
13306
13719
|
}
|
|
13307
13720
|
|
|
13308
|
-
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
|
|
13721
|
+
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)}";
|
|
13309
13722
|
var EdsSwitchStyle0 = edsSwitchCss;
|
|
13310
13723
|
|
|
13311
13724
|
class EdsSwitch {
|
|
@@ -13325,19 +13738,41 @@ class EdsSwitch {
|
|
|
13325
13738
|
action: 'checked'
|
|
13326
13739
|
});
|
|
13327
13740
|
};
|
|
13741
|
+
this.handleKeyDown = (e) => {
|
|
13742
|
+
if (this.disabled) {
|
|
13743
|
+
return;
|
|
13744
|
+
}
|
|
13745
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13746
|
+
e.preventDefault();
|
|
13747
|
+
this.toggleSwitch();
|
|
13748
|
+
}
|
|
13749
|
+
};
|
|
13328
13750
|
this.checked = false;
|
|
13329
13751
|
this.disabled = false;
|
|
13330
13752
|
this.labelOn = '';
|
|
13331
13753
|
this.labelOff = '';
|
|
13332
13754
|
}
|
|
13333
13755
|
render() {
|
|
13334
|
-
|
|
13335
|
-
const
|
|
13336
|
-
|
|
13756
|
+
const switchId = `switch-${Math.random().toString(36).substr(2, 9)}`;
|
|
13757
|
+
const labelledBy = [];
|
|
13758
|
+
if (this.labelOff) {
|
|
13759
|
+
labelledBy.push(`${switchId}-off`);
|
|
13760
|
+
}
|
|
13761
|
+
if (this.labelOn) {
|
|
13762
|
+
labelledBy.push(`${switchId}-on`);
|
|
13763
|
+
}
|
|
13764
|
+
const accessibleLabel = labelledBy.length === 0
|
|
13765
|
+
? this.labelOn || this.labelOff
|
|
13766
|
+
? this.checked
|
|
13767
|
+
? this.labelOn
|
|
13768
|
+
: this.labelOff
|
|
13769
|
+
: 'Toggle switch'
|
|
13770
|
+
: undefined;
|
|
13771
|
+
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: {
|
|
13337
13772
|
switch: true,
|
|
13338
13773
|
'switch--checked': this.checked,
|
|
13339
13774
|
'switch--disabled': this.disabled
|
|
13340
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '
|
|
13775
|
+
}, 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))));
|
|
13341
13776
|
}
|
|
13342
13777
|
get el() { return getElement(this); }
|
|
13343
13778
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -13356,14 +13791,13 @@ class EdsSwitch {
|
|
|
13356
13791
|
}; }
|
|
13357
13792
|
}
|
|
13358
13793
|
|
|
13359
|
-
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}";
|
|
13794
|
+
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}";
|
|
13360
13795
|
var EdsTableStyle0 = edsTableCss;
|
|
13361
13796
|
|
|
13362
13797
|
/**
|
|
13363
13798
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
13364
13799
|
*
|
|
13365
13800
|
* Key Features:
|
|
13366
|
-
* - Accepts static data or fetches dynamic data from an endpoint.
|
|
13367
13801
|
* - Configurable columns with options to hide or apply text formatting (uppercase, bold, or code).
|
|
13368
13802
|
* - Pagination support with adjustable rows per page.
|
|
13369
13803
|
* - Searchable content for easier data filtering.
|
|
@@ -13377,8 +13811,33 @@ class EdsTable {
|
|
|
13377
13811
|
this.handleResize = () => {
|
|
13378
13812
|
this.updateContainerWidth();
|
|
13379
13813
|
};
|
|
13814
|
+
this.onActionKeyDown = (e) => {
|
|
13815
|
+
var _a;
|
|
13816
|
+
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft') {
|
|
13817
|
+
return;
|
|
13818
|
+
}
|
|
13819
|
+
e.preventDefault();
|
|
13820
|
+
const currentButton = e.target;
|
|
13821
|
+
const toolbar = currentButton.closest('[role="toolbar"]');
|
|
13822
|
+
if (!toolbar) {
|
|
13823
|
+
return;
|
|
13824
|
+
}
|
|
13825
|
+
// Find all focusable action buttons in this row
|
|
13826
|
+
const actionButtons = Array.from(toolbar.querySelectorAll('eds-button'));
|
|
13827
|
+
const currentIndex = actionButtons.indexOf(currentButton);
|
|
13828
|
+
if (currentIndex === -1) {
|
|
13829
|
+
return;
|
|
13830
|
+
}
|
|
13831
|
+
let nextIndex;
|
|
13832
|
+
if (e.key === 'ArrowRight') {
|
|
13833
|
+
nextIndex = (currentIndex + 1) % actionButtons.length;
|
|
13834
|
+
}
|
|
13835
|
+
else {
|
|
13836
|
+
nextIndex = (currentIndex - 1 + actionButtons.length) % actionButtons.length;
|
|
13837
|
+
}
|
|
13838
|
+
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
13839
|
+
};
|
|
13380
13840
|
this.data = null;
|
|
13381
|
-
this.endpoint = null;
|
|
13382
13841
|
this.config = {};
|
|
13383
13842
|
this.rowsPerPage = 10;
|
|
13384
13843
|
this.paginationEnabled = true;
|
|
@@ -13416,7 +13875,7 @@ class EdsTable {
|
|
|
13416
13875
|
componentWillLoad() {
|
|
13417
13876
|
this.parseConfig();
|
|
13418
13877
|
this.handleActionsChange();
|
|
13419
|
-
this.
|
|
13878
|
+
this.parseData();
|
|
13420
13879
|
}
|
|
13421
13880
|
componentDidLoad() {
|
|
13422
13881
|
this.updateContainerWidth();
|
|
@@ -13464,24 +13923,13 @@ class EdsTable {
|
|
|
13464
13923
|
this.parsedConfig = {};
|
|
13465
13924
|
}
|
|
13466
13925
|
}
|
|
13467
|
-
async fetchData() {
|
|
13468
|
-
try {
|
|
13469
|
-
const response = await fetch(this.endpoint);
|
|
13470
|
-
const data = await response.json();
|
|
13471
|
-
this.data = data;
|
|
13472
|
-
}
|
|
13473
|
-
catch (error) {
|
|
13474
|
-
// eslint-disable-next-line
|
|
13475
|
-
console.error('Failed to fetch data:', error);
|
|
13476
|
-
}
|
|
13477
|
-
}
|
|
13478
13926
|
setupPaginationListener() {
|
|
13479
13927
|
if (!this.shouldEnablePagination()) {
|
|
13480
13928
|
return;
|
|
13481
13929
|
}
|
|
13482
13930
|
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
13483
13931
|
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
13484
|
-
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail));
|
|
13932
|
+
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail.value));
|
|
13485
13933
|
paginationEl.setAttribute('listener-attached', 'true');
|
|
13486
13934
|
}
|
|
13487
13935
|
}
|
|
@@ -13529,7 +13977,10 @@ class EdsTable {
|
|
|
13529
13977
|
const checked = !!row[boundField];
|
|
13530
13978
|
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) }));
|
|
13531
13979
|
}
|
|
13532
|
-
|
|
13980
|
+
// Let all action buttons be focusable naturally
|
|
13981
|
+
const showLabel = act.showLabel === true;
|
|
13982
|
+
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) }));
|
|
13983
|
+
return showLabel ? btn : hAsync("eds-tooltip", { content: act.label }, btn);
|
|
13533
13984
|
}
|
|
13534
13985
|
emitAction(actionName, row, checked) {
|
|
13535
13986
|
sendAnalytics({
|
|
@@ -13575,7 +14026,7 @@ class EdsTable {
|
|
|
13575
14026
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
13576
14027
|
const paginatedRows = this.getPaginatedRows();
|
|
13577
14028
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13578
|
-
return (hAsync("div", { key: '
|
|
14029
|
+
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) => {
|
|
13579
14030
|
var _a;
|
|
13580
14031
|
if (col === 'actions') {
|
|
13581
14032
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
@@ -13584,17 +14035,22 @@ class EdsTable {
|
|
|
13584
14035
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col)));
|
|
13585
14036
|
}
|
|
13586
14037
|
return null;
|
|
13587
|
-
}))), hAsync("tbody", { key: '
|
|
14038
|
+
}))), 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) => {
|
|
13588
14039
|
var _a;
|
|
13589
14040
|
if (col === 'actions') {
|
|
13590
|
-
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", {
|
|
14041
|
+
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: {
|
|
14042
|
+
display: 'flex',
|
|
14043
|
+
gap: '0.5rem',
|
|
14044
|
+
justifyContent: 'center',
|
|
14045
|
+
flexWrap: 'wrap'
|
|
14046
|
+
} }, this.parsedActions.map((act) => (hAsync("span", { style: { whiteSpace: 'nowrap' } }, this.renderSingleActionCell(act.name, row)))))));
|
|
13591
14047
|
}
|
|
13592
14048
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
13593
14049
|
// Regular data cell
|
|
13594
14050
|
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)));
|
|
13595
14051
|
}
|
|
13596
14052
|
return null;
|
|
13597
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14053
|
+
}))))))), 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" })))));
|
|
13598
14054
|
}
|
|
13599
14055
|
get hostEl() { return getElement(this); }
|
|
13600
14056
|
static get watchers() { return {
|
|
@@ -13608,7 +14064,6 @@ class EdsTable {
|
|
|
13608
14064
|
"$tagName$": "eds-table",
|
|
13609
14065
|
"$members$": {
|
|
13610
14066
|
"data": [1, "table-data"],
|
|
13611
|
-
"endpoint": [1],
|
|
13612
14067
|
"config": [1],
|
|
13613
14068
|
"rowsPerPage": [2, "rows-per-page"],
|
|
13614
14069
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
@@ -13633,7 +14088,7 @@ class EdsTable {
|
|
|
13633
14088
|
}; }
|
|
13634
14089
|
}
|
|
13635
14090
|
|
|
13636
|
-
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-
|
|
14091
|
+
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}}";
|
|
13637
14092
|
var EdsTabsStyle0 = edsTabsCss;
|
|
13638
14093
|
|
|
13639
14094
|
/**
|
|
@@ -13649,15 +14104,20 @@ class EdsTabs {
|
|
|
13649
14104
|
constructor(hostRef) {
|
|
13650
14105
|
registerInstance(this, hostRef);
|
|
13651
14106
|
this.tab = createEvent(this, "tab", 7);
|
|
14107
|
+
this.tabRefs = [];
|
|
14108
|
+
// Store tab reference
|
|
14109
|
+
this.setTabRef = (el, index) => {
|
|
14110
|
+
if (el) {
|
|
14111
|
+
this.tabRefs[index] = el;
|
|
14112
|
+
}
|
|
14113
|
+
};
|
|
13652
14114
|
// cva configuration
|
|
13653
14115
|
this.tabCva = cva([
|
|
13654
14116
|
'relative py-12',
|
|
13655
14117
|
'f-ui-03 whitespace-nowrap',
|
|
13656
|
-
'effect-color',
|
|
14118
|
+
'effect-color effect-focus',
|
|
13657
14119
|
'focus-visible:text-default hover:text-default',
|
|
13658
|
-
'border-2'
|
|
13659
|
-
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:opacity-0",
|
|
13660
|
-
'outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100'
|
|
14120
|
+
'border-2'
|
|
13661
14121
|
], {
|
|
13662
14122
|
variants: {
|
|
13663
14123
|
position: {
|
|
@@ -13667,7 +14127,10 @@ class EdsTabs {
|
|
|
13667
14127
|
right: 'pl-28 pr-16 rounded-tr-lg border-l-0 -ml-16 after:left-16'
|
|
13668
14128
|
},
|
|
13669
14129
|
active: {
|
|
13670
|
-
false:
|
|
14130
|
+
false: [
|
|
14131
|
+
'text-lighter bg-dark hover:bg-darker border-softest border-b-0 z-1',
|
|
14132
|
+
"after:content-[''] after:absolute after:bottom-0 after:inset-x-0 after:h-2 after:border-soft"
|
|
14133
|
+
],
|
|
13671
14134
|
true: [
|
|
13672
14135
|
'bg-default text-default z-99',
|
|
13673
14136
|
'rounded-t-lg',
|
|
@@ -13686,28 +14149,35 @@ class EdsTabs {
|
|
|
13686
14149
|
componentWillLoad() {
|
|
13687
14150
|
this.parseTabs();
|
|
13688
14151
|
this.setActiveIndex();
|
|
13689
|
-
this.tab.emit({ tabId: this.identifier, index:
|
|
14152
|
+
this.tab.emit({ tabId: this.identifier, index: this.activeIndex });
|
|
13690
14153
|
}
|
|
13691
14154
|
/**
|
|
13692
|
-
* Parses the `
|
|
13693
|
-
* Returns an empty array if parsing fails or if `
|
|
13694
|
-
*
|
|
13695
|
-
* @returns {any[]} Array of parsed link objects
|
|
13696
|
-
*/
|
|
13697
|
-
/**
|
|
13698
|
-
* Parses the `links` prop into an array of link objects.
|
|
13699
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14155
|
+
* Parses the `tabs` prop into an array of tab objects.
|
|
14156
|
+
* Returns an empty array if parsing fails or if `tabs` is not a valid JSON string or object.
|
|
13700
14157
|
*
|
|
13701
|
-
* @returns {any[]} Array of parsed
|
|
14158
|
+
* @returns {any[]} Array of parsed tab objects
|
|
13702
14159
|
*/
|
|
13703
14160
|
parseTabs() {
|
|
13704
14161
|
this.parsedTabs = parseData(this.tabs);
|
|
14162
|
+
// Reset tab refs when tabs change
|
|
14163
|
+
this.tabRefs = [];
|
|
13705
14164
|
}
|
|
13706
14165
|
componentDidLoad() {
|
|
13707
14166
|
this.scrollToActiveTab();
|
|
13708
14167
|
}
|
|
14168
|
+
componentDidUpdate() {
|
|
14169
|
+
// Ensure we have the correct number of tab refs after render
|
|
14170
|
+
if (this.tabRefs.length !== this.parsedTabs.length) {
|
|
14171
|
+
this.tabRefs = new Array(this.parsedTabs.length).fill(null);
|
|
14172
|
+
}
|
|
14173
|
+
}
|
|
13709
14174
|
setActiveIndex() {
|
|
13710
14175
|
this.activeIndex = this.parsedTabs.findIndex((tab) => tab.active);
|
|
14176
|
+
// If no active tab found, default to first tab
|
|
14177
|
+
if (this.activeIndex === -1 && this.parsedTabs.length > 0) {
|
|
14178
|
+
this.activeIndex = 0;
|
|
14179
|
+
this.parsedTabs[0].active = true;
|
|
14180
|
+
}
|
|
13711
14181
|
}
|
|
13712
14182
|
scrollToActiveTab() {
|
|
13713
14183
|
var _a;
|
|
@@ -13729,31 +14199,74 @@ class EdsTabs {
|
|
|
13729
14199
|
: index < this.activeIndex
|
|
13730
14200
|
? 'left'
|
|
13731
14201
|
: 'right';
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
14202
|
+
const rawZ = position === 'left' ? index : this.parsedTabs.length + 1 - index;
|
|
14203
|
+
// clamp inactive to at least 1
|
|
14204
|
+
const z = active ? this.parsedTabs.length + 99 : Math.max(rawZ, 1);
|
|
14205
|
+
return Object.assign({ class: this.tabCva({ active, position }), style: {
|
|
14206
|
+
// stringify the number so it matches { [key: string]: string }
|
|
14207
|
+
zIndex: `${z}`
|
|
13737
14208
|
} }, (active ? { 'data-tab-active': 'true' } : {}));
|
|
13738
14209
|
}
|
|
13739
|
-
handleTabClick(index, tabLabel) {
|
|
14210
|
+
handleTabClick(index, tabLabel, shouldFocus = true) {
|
|
14211
|
+
// Validate index
|
|
14212
|
+
if (index < 0 || index >= this.parsedTabs.length) {
|
|
14213
|
+
return;
|
|
14214
|
+
}
|
|
13740
14215
|
// Update the active index and set all tabs' active state accordingly
|
|
13741
14216
|
this.activeIndex = index;
|
|
13742
14217
|
this.parsedTabs = this.parsedTabs.map((tab, tabIndex) => (Object.assign(Object.assign({}, tab), { active: tabIndex === index })));
|
|
13743
14218
|
this.tab.emit({ tabId: this.identifier, index: index, name: tabLabel });
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
14219
|
+
// Only send analytics for actual clicks, not keyboard navigation
|
|
14220
|
+
if (shouldFocus) {
|
|
14221
|
+
sendAnalytics({
|
|
14222
|
+
category: 'ui-component',
|
|
14223
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14224
|
+
name: (tabLabel === null || tabLabel === void 0 ? void 0 : tabLabel.toLowerCase()) || '',
|
|
14225
|
+
action: 'click'
|
|
14226
|
+
});
|
|
14227
|
+
}
|
|
14228
|
+
// Focus management for keyboard navigation
|
|
14229
|
+
if (shouldFocus && this.tabRefs[index]) {
|
|
14230
|
+
// Use a small timeout to ensure the DOM has updated
|
|
14231
|
+
setTimeout(() => {
|
|
14232
|
+
var _a;
|
|
14233
|
+
(_a = this.tabRefs[index]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14234
|
+
}, 0);
|
|
14235
|
+
}
|
|
14236
|
+
}
|
|
14237
|
+
onKeyDown(ev, idx) {
|
|
14238
|
+
let newIndex = idx;
|
|
14239
|
+
switch (ev.key) {
|
|
14240
|
+
case 'ArrowRight':
|
|
14241
|
+
newIndex = (idx + 1) % this.parsedTabs.length;
|
|
14242
|
+
ev.preventDefault();
|
|
14243
|
+
break;
|
|
14244
|
+
case 'ArrowLeft':
|
|
14245
|
+
newIndex = (idx - 1 + this.parsedTabs.length) % this.parsedTabs.length;
|
|
14246
|
+
ev.preventDefault();
|
|
14247
|
+
break;
|
|
14248
|
+
case 'Home':
|
|
14249
|
+
newIndex = 0;
|
|
14250
|
+
ev.preventDefault();
|
|
14251
|
+
break;
|
|
14252
|
+
case 'End':
|
|
14253
|
+
newIndex = this.parsedTabs.length - 1;
|
|
14254
|
+
ev.preventDefault();
|
|
14255
|
+
break;
|
|
14256
|
+
default:
|
|
14257
|
+
return; // Don't handle other keys
|
|
14258
|
+
}
|
|
14259
|
+
if (newIndex !== idx) {
|
|
14260
|
+
this.handleTabClick(newIndex, this.parsedTabs[newIndex].label, true);
|
|
14261
|
+
}
|
|
13750
14262
|
}
|
|
13751
14263
|
render() {
|
|
13752
|
-
return (hAsync("div", { key: '
|
|
13753
|
-
const TabComponent =
|
|
14264
|
+
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) => {
|
|
14265
|
+
const TabComponent = 'button';
|
|
13754
14266
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
13755
|
-
|
|
13756
|
-
|
|
14267
|
+
const isActive = index === this.activeIndex;
|
|
14268
|
+
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));
|
|
14269
|
+
}))), 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}` })))))));
|
|
13757
14270
|
}
|
|
13758
14271
|
get el() { return getElement(this); }
|
|
13759
14272
|
static get watchers() { return {
|
|
@@ -13816,7 +14329,7 @@ class EdsTag {
|
|
|
13816
14329
|
}
|
|
13817
14330
|
render() {
|
|
13818
14331
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
13819
|
-
return hAsync("span", { key: '
|
|
14332
|
+
return hAsync("span", { key: 'e3fe041e8783a7d1bb5a281eb154e3c07851da38', class: classes }, this.label);
|
|
13820
14333
|
}
|
|
13821
14334
|
static get style() { return EdsTagStyle0; }
|
|
13822
14335
|
static get cmpMeta() { return {
|
|
@@ -13878,7 +14391,7 @@ class EdsTimeline {
|
|
|
13878
14391
|
}
|
|
13879
14392
|
}
|
|
13880
14393
|
render() {
|
|
13881
|
-
return (hAsync("div", { key: '
|
|
14394
|
+
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
|
|
13882
14395
|
? [{ label: 'completed', style: 'accent' }]
|
|
13883
14396
|
: [{ 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
|
|
13884
14397
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14052,7 +14565,7 @@ class EdsToastManager {
|
|
|
14052
14565
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14053
14566
|
}
|
|
14054
14567
|
render() {
|
|
14055
|
-
return (hAsync("div", { key: '
|
|
14568
|
+
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) }))))));
|
|
14056
14569
|
}
|
|
14057
14570
|
get hostElement() { return getElement(this); }
|
|
14058
14571
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14068,7 +14581,7 @@ class EdsToastManager {
|
|
|
14068
14581
|
}; }
|
|
14069
14582
|
}
|
|
14070
14583
|
|
|
14071
|
-
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%}";
|
|
14584
|
+
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%}";
|
|
14072
14585
|
var EdsTooltipStyle0 = edsTooltipCss;
|
|
14073
14586
|
|
|
14074
14587
|
/**
|
|
@@ -14091,10 +14604,10 @@ class EdsTooltip {
|
|
|
14091
14604
|
}
|
|
14092
14605
|
render() {
|
|
14093
14606
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14094
|
-
return (hAsync("div", { key: '
|
|
14607
|
+
return (hAsync("div", { key: '135df7d17db03fb3bb7bbcc50ad9ee5d84a2bca2', class: "relative w-full inline-block group" }, hAsync("slot", { key: '4c12874eeb942e33f9c62ea6f1077fd051f683b6' }), hAsync("div", { key: '8bb7173d16889b2ae550dc0269d9e47e1dae00ac', class: `absolute ${positionClass}
|
|
14095
14608
|
rounded-xs bg-strongest text-inverse
|
|
14096
14609
|
f-ui-03-light pointer-events-none
|
|
14097
|
-
z-10
|
|
14610
|
+
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
14098
14611
|
group-hover:opacity-100 whitespace-normal break-words`, role: "tooltip" }, this.content)));
|
|
14099
14612
|
}
|
|
14100
14613
|
get el() { return getElement(this); }
|
|
@@ -14155,7 +14668,7 @@ class EdsTrl {
|
|
|
14155
14668
|
Application: { format: 'code' },
|
|
14156
14669
|
'Current TRL Stage': { format: 'text' }
|
|
14157
14670
|
};
|
|
14158
|
-
return (hAsync("div", { key: '
|
|
14671
|
+
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" })));
|
|
14159
14672
|
}
|
|
14160
14673
|
static get cmpMeta() { return {
|
|
14161
14674
|
"$flags$": 0,
|
|
@@ -14181,7 +14694,12 @@ var EdsUserStyle0 = edsUserCss;
|
|
|
14181
14694
|
class EdsUser {
|
|
14182
14695
|
constructor(hostRef) {
|
|
14183
14696
|
registerInstance(this, hostRef);
|
|
14697
|
+
this.handleDropdown = (e) => {
|
|
14698
|
+
this.expanded = e.detail.expanded;
|
|
14699
|
+
};
|
|
14184
14700
|
this.user = undefined;
|
|
14701
|
+
this.intent = 'tertiary';
|
|
14702
|
+
this.expanded = false;
|
|
14185
14703
|
}
|
|
14186
14704
|
/**
|
|
14187
14705
|
* Helper getter to ensure we work with a User object.
|
|
@@ -14207,7 +14725,8 @@ class EdsUser {
|
|
|
14207
14725
|
}
|
|
14208
14726
|
render() {
|
|
14209
14727
|
const user = this.parsedUser;
|
|
14210
|
-
|
|
14728
|
+
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
14729
|
+
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' })))))));
|
|
14211
14730
|
}
|
|
14212
14731
|
get hostEl() { return getElement(this); }
|
|
14213
14732
|
static get style() { return EdsUserStyle0; }
|
|
@@ -14215,7 +14734,9 @@ class EdsUser {
|
|
|
14215
14734
|
"$flags$": 9,
|
|
14216
14735
|
"$tagName$": "eds-user",
|
|
14217
14736
|
"$members$": {
|
|
14218
|
-
"user": [1025]
|
|
14737
|
+
"user": [1025],
|
|
14738
|
+
"intent": [1],
|
|
14739
|
+
"expanded": [32]
|
|
14219
14740
|
},
|
|
14220
14741
|
"$listeners$": undefined,
|
|
14221
14742
|
"$lazyBundleId$": "-",
|
|
@@ -14258,7 +14779,7 @@ class GradientPrimaryPalette {
|
|
|
14258
14779
|
];
|
|
14259
14780
|
}
|
|
14260
14781
|
render() {
|
|
14261
|
-
return (hAsync("ul", { key: '
|
|
14782
|
+
return (hAsync("ul", { key: '1a8020d4141fdd0e5849eeec1f474a9e423df044', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14262
14783
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14263
14784
|
} }, 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))))))));
|
|
14264
14785
|
}
|
|
@@ -14331,19 +14852,19 @@ class GradientSecondaryPalette {
|
|
|
14331
14852
|
];
|
|
14332
14853
|
}
|
|
14333
14854
|
render() {
|
|
14334
|
-
return (hAsync("div", { key: '
|
|
14855
|
+
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: {
|
|
14335
14856
|
background: this.colors[0].background
|
|
14336
|
-
} }, hAsync("div", { key: '
|
|
14857
|
+
} }, 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: {
|
|
14337
14858
|
background: this.colors[1].background
|
|
14338
|
-
} }, hAsync("div", { key: '
|
|
14859
|
+
} }, 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: {
|
|
14339
14860
|
background: this.colors[2].background
|
|
14340
|
-
} }, hAsync("div", { key: '
|
|
14861
|
+
} }, 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: {
|
|
14341
14862
|
background: this.colors[3].background
|
|
14342
|
-
} }, hAsync("div", { key: '
|
|
14863
|
+
} }, 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: {
|
|
14343
14864
|
background: this.colors[4].background
|
|
14344
|
-
} }, hAsync("div", { key: '
|
|
14865
|
+
} }, 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: {
|
|
14345
14866
|
background: this.colors[5].background
|
|
14346
|
-
} }, hAsync("div", { key: '
|
|
14867
|
+
} }, 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)))))));
|
|
14347
14868
|
}
|
|
14348
14869
|
static get cmpMeta() { return {
|
|
14349
14870
|
"$flags$": 0,
|
|
@@ -14406,11 +14927,11 @@ class GradientSupportPalette {
|
|
|
14406
14927
|
];
|
|
14407
14928
|
}
|
|
14408
14929
|
render() {
|
|
14409
|
-
return (hAsync("ul", { key: '
|
|
14930
|
+
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: {
|
|
14410
14931
|
background: this.colors[2].background
|
|
14411
|
-
} }, hAsync("div", { key: '
|
|
14932
|
+
} }, 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: {
|
|
14412
14933
|
background: this.colors[3].background
|
|
14413
|
-
} }, hAsync("div", { key: '
|
|
14934
|
+
} }, 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'))))));
|
|
14414
14935
|
}
|
|
14415
14936
|
static get cmpMeta() { return {
|
|
14416
14937
|
"$flags$": 0,
|
|
@@ -14464,7 +14985,7 @@ class IncorrectUseOfColors {
|
|
|
14464
14985
|
registerInstance(this, hostRef);
|
|
14465
14986
|
}
|
|
14466
14987
|
render() {
|
|
14467
|
-
return (hAsync("div", { key: '
|
|
14988
|
+
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 } })))))))));
|
|
14468
14989
|
}
|
|
14469
14990
|
static get cmpMeta() { return {
|
|
14470
14991
|
"$flags$": 0,
|
|
@@ -14487,7 +15008,7 @@ class LogoSpace {
|
|
|
14487
15008
|
registerInstance(this, hostRef);
|
|
14488
15009
|
}
|
|
14489
15010
|
render() {
|
|
14490
|
-
return (hAsync("div", { key: '
|
|
15011
|
+
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" }))));
|
|
14491
15012
|
}
|
|
14492
15013
|
static get style() { return LogoSpaceStyle0; }
|
|
14493
15014
|
static get cmpMeta() { return {
|
|
@@ -14511,7 +15032,7 @@ class LogoVariationsHorizontal {
|
|
|
14511
15032
|
registerInstance(this, hostRef);
|
|
14512
15033
|
}
|
|
14513
15034
|
render() {
|
|
14514
|
-
return (hAsync("div", { key: '
|
|
15035
|
+
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: "#" }))))));
|
|
14515
15036
|
}
|
|
14516
15037
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
14517
15038
|
static get cmpMeta() { return {
|
|
@@ -14543,7 +15064,7 @@ class LogoVariationsTabs {
|
|
|
14543
15064
|
}
|
|
14544
15065
|
}
|
|
14545
15066
|
render() {
|
|
14546
|
-
return hAsync("div", { key: '
|
|
15067
|
+
return hAsync("div", { key: 'a7e8981363410d2a325478150990092516e74f2e', class: "container" }, this.renderContent());
|
|
14547
15068
|
}
|
|
14548
15069
|
static get cmpMeta() { return {
|
|
14549
15070
|
"$flags$": 0,
|
|
@@ -14570,7 +15091,7 @@ class LogoVariationsVertical {
|
|
|
14570
15091
|
this.type = undefined;
|
|
14571
15092
|
}
|
|
14572
15093
|
render() {
|
|
14573
|
-
return (hAsync("div", { key: '
|
|
15094
|
+
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: "#" }))))));
|
|
14574
15095
|
}
|
|
14575
15096
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
14576
15097
|
static get cmpMeta() { return {
|
|
@@ -14597,7 +15118,7 @@ class LogoWrongUsage {
|
|
|
14597
15118
|
registerInstance(this, hostRef);
|
|
14598
15119
|
}
|
|
14599
15120
|
render() {
|
|
14600
|
-
return (hAsync("div", { key: '
|
|
15121
|
+
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"))))));
|
|
14601
15122
|
}
|
|
14602
15123
|
static get style() { return LogoWrongUsageStyle0; }
|
|
14603
15124
|
static get cmpMeta() { return {
|
|
@@ -14641,7 +15162,7 @@ class SvgRepository {
|
|
|
14641
15162
|
icon: { format: 'svg' },
|
|
14642
15163
|
name: { format: 'bold' }
|
|
14643
15164
|
};
|
|
14644
|
-
return (hAsync("div", { key: '
|
|
15165
|
+
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 })));
|
|
14645
15166
|
}
|
|
14646
15167
|
get hostEl() { return getElement(this); }
|
|
14647
15168
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -14898,7 +15419,7 @@ class TokenList {
|
|
|
14898
15419
|
render() {
|
|
14899
15420
|
// Check if `show` prop is provided; if not, display all sections
|
|
14900
15421
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
14901
|
-
return (hAsync("section", { key: '
|
|
15422
|
+
return (hAsync("section", { key: 'c5a0dc7f4e58c77624481262b1a6ac31df5425ee', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
14902
15423
|
// Only render sections that exist in `colors`
|
|
14903
15424
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
14904
15425
|
}
|
|
@@ -14931,7 +15452,7 @@ class TokenRadii {
|
|
|
14931
15452
|
registerInstance(this, hostRef);
|
|
14932
15453
|
}
|
|
14933
15454
|
render() {
|
|
14934
|
-
return (hAsync("section", { key: '
|
|
15455
|
+
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" }))))))));
|
|
14935
15456
|
}
|
|
14936
15457
|
static get cmpMeta() { return {
|
|
14937
15458
|
"$flags$": 0,
|
|
@@ -14960,7 +15481,7 @@ class TokenRatios {
|
|
|
14960
15481
|
registerInstance(this, hostRef);
|
|
14961
15482
|
}
|
|
14962
15483
|
render() {
|
|
14963
|
-
return (hAsync("section", { key: '
|
|
15484
|
+
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: {
|
|
14964
15485
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
14965
15486
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
14966
15487
|
maxWidth: '300px'
|
|
@@ -15002,7 +15523,7 @@ class TokenShadows {
|
|
|
15002
15523
|
registerInstance(this, hostRef);
|
|
15003
15524
|
}
|
|
15004
15525
|
render() {
|
|
15005
|
-
return (hAsync("section", { key: '
|
|
15526
|
+
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]" })))))))));
|
|
15006
15527
|
}
|
|
15007
15528
|
static get cmpMeta() { return {
|
|
15008
15529
|
"$flags$": 0,
|
|
@@ -15022,7 +15543,7 @@ class TokenSpacing {
|
|
|
15022
15543
|
registerInstance(this, hostRef);
|
|
15023
15544
|
}
|
|
15024
15545
|
render() {
|
|
15025
|
-
return (hAsync("div", { key: '
|
|
15546
|
+
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")))))));
|
|
15026
15547
|
}
|
|
15027
15548
|
static get cmpMeta() { return {
|
|
15028
15549
|
"$flags$": 0,
|
|
@@ -15240,7 +15761,7 @@ class TokenTypography {
|
|
|
15240
15761
|
registerInstance(this, hostRef);
|
|
15241
15762
|
}
|
|
15242
15763
|
render() {
|
|
15243
|
-
return (hAsync("section", { key: '
|
|
15764
|
+
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)
|
|
15244
15765
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15245
15766
|
.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: {
|
|
15246
15767
|
fontFamily: typography.families.sans,
|
|
@@ -15309,8 +15830,10 @@ registerComponents([
|
|
|
15309
15830
|
EdsIconChevronLeft,
|
|
15310
15831
|
EdsIconChevronRight,
|
|
15311
15832
|
EdsIconChevronUp,
|
|
15833
|
+
EdsIconClone,
|
|
15312
15834
|
EdsIconClose,
|
|
15313
15835
|
EdsIconCopy,
|
|
15836
|
+
EdsIconDownload,
|
|
15314
15837
|
EdsIconDraft,
|
|
15315
15838
|
EdsIconEdit,
|
|
15316
15839
|
EdsIconEu,
|
|
@@ -15339,6 +15862,7 @@ registerComponents([
|
|
|
15339
15862
|
EdsIconUnknown,
|
|
15340
15863
|
EdsIconUpdown,
|
|
15341
15864
|
EdsIconUser,
|
|
15865
|
+
EdsIconView,
|
|
15342
15866
|
EdsIconWrapper,
|
|
15343
15867
|
EdsIconYoutube,
|
|
15344
15868
|
EdsImg,
|
|
@@ -15353,6 +15877,7 @@ registerComponents([
|
|
|
15353
15877
|
EdsLogo,
|
|
15354
15878
|
EdsMatomoNotice,
|
|
15355
15879
|
EdsModal,
|
|
15880
|
+
EdsNps,
|
|
15356
15881
|
EdsPagination,
|
|
15357
15882
|
EdsPie,
|
|
15358
15883
|
EdsProgressBar,
|