@ebrains/components 2.3.0 → 2.4.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/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components-section.cjs.entry.js +33 -24
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/{eds-accordion_36.cjs.entry.js → eds-accordion_37.cjs.entry.js} +671 -224
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-generic.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-footer.cjs.entry.js +4 -2
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +12 -1
- package/dist/cjs/eds-gauge.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-clone.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-close.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-download.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-draft.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-edit.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-external.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-loader.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-menu.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-minus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-more.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-paper.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-plus.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-portal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-private.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-public.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-search.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-star.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-start.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-success.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-view.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +2 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-social-networks.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-50bc1aa4.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +1 -1
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +1 -1
- package/dist/cjs/svg-repository.cjs.entry.js +3 -3
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/cjs/{up-and-down-d71df67d.js → up-and-down-6f179dd8.js} +2 -2
- package/dist/collection/collection-manifest.json +15 -14
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-alert/eds-alert.js +2 -2
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +1 -1
- package/dist/collection/components/eds-button/eds-button.js +1 -19
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/{shared-ui → components/eds-cards}/eds-card-section/eds-card-section.js +4 -4
- package/dist/collection/{shared-ui → components/eds-cards}/eds-card-section/eds-card-section.stories.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/{shared-ui → components}/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-feedback/eds-feedback.stories.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-footer/eds-footer.js +4 -2
- package/dist/collection/{shared-ui → components}/eds-footer/eds-footer.stories.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-form/eds-form.js +63 -24
- package/dist/collection/{shared-ui → components}/eds-form/eds-form.stories.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-frame/eds-frame.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-frame/eds-frame.stories.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-fullscreen-menu/eds-fullscreen-menu.js +56 -1
- package/dist/collection/{shared-ui → components}/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-header/eds-header.css +5 -0
- package/dist/collection/{shared-ui → components}/eds-header/eds-header.js +4 -18
- package/dist/collection/{shared-ui → components}/eds-header/eds-header.stories.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +1 -1
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bin/eds-icon-bin.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-clone/eds-icon-clone.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-download/eds-icon-download.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-draft/eds-icon-draft.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-edit/eds-icon-edit.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-start/eds-icon-start.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +2 -2
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +1 -1
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +1 -1
- package/dist/collection/components/eds-img/eds-img.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +2 -2
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +1 -1
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +2 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +15 -25
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.js +2 -2
- package/dist/collection/components/eds-nps/eds-npm.stories.js +1 -1
- package/dist/collection/components/eds-nps/eds-nps.js +66 -53
- package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +1 -1
- package/dist/collection/components/eds-rating/eds-rating.js +1 -1
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-sidebar/eds-sidebar.css +458 -0
- package/dist/collection/components/eds-sidebar/eds-sidebar.js +299 -0
- package/dist/collection/components/eds-sidebar/eds-sidebar.stories.js +141 -0
- package/dist/collection/{shared-ui → components}/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-social-networks/eds-social-networks.stories.js +1 -1
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-splash-screen/eds-splash-screen.stories.js +1 -1
- package/dist/collection/components/eds-steps/eds-steps.css +463 -0
- package/dist/collection/components/eds-steps/eds-steps.js +481 -0
- package/dist/collection/{shared-ui → components}/eds-steps/eds-steps.stories.js +22 -4
- package/dist/collection/{shared-ui → components}/eds-steps-v2/eds-steps-v2.css +167 -3
- package/dist/collection/{shared-ui → components}/eds-steps-v2/eds-steps-v2.js +179 -115
- package/dist/collection/{shared-ui → components}/eds-steps-v2/eds-steps-v2.stories.js +9 -2
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.css +14 -0
- package/dist/collection/components/eds-table/eds-table.js +99 -9
- package/dist/collection/{shared-ui → components}/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/{shared-ui → components}/eds-tabs/eds-tabs.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/{shared-ui → components}/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-user/eds-user.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-user/eds-user.stories.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/secondary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/color-palette/support.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/primary.js +1 -1
- package/dist/collection/eds-docs-ui/colors/gradient-palette/secondary.js +7 -7
- package/dist/collection/eds-docs-ui/colors/gradient-palette/support.js +3 -3
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/components-section.js +1 -1
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +2 -2
- package/dist/collection/eds-docs-ui/components-section/functional/vue.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-radii/token-radii.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js +1 -1
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +1 -1
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.js +1 -1
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -1
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +10 -12
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +3 -2
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components-section.js +33 -24
- package/dist/components/components.css +619 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/docs-palettes.js +1 -1
- package/dist/components/docs-tokens.js +1 -1
- package/dist/components/eds-accordion2.js +2 -2
- package/dist/components/eds-alert2.js +2 -2
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +1 -1
- package/dist/components/eds-button2.js +1 -3
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +1 -1
- package/dist/components/eds-card-project.js +1 -1
- package/dist/components/eds-card-section.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 +4 -2
- package/dist/components/eds-form.js +87 -42
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +16 -3
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-global-search.js +31 -27
- package/dist/components/eds-header.js +6 -11
- package/dist/components/eds-icon-arrow-diagonal.js +1 -1
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bin.js +1 -1
- package/dist/components/eds-icon-bluesky.js +1 -1
- package/dist/components/eds-icon-bookmark.js +1 -1
- package/dist/components/eds-icon-chevron-down.js +1 -1
- package/dist/components/eds-icon-chevron-left.js +1 -1
- package/dist/components/eds-icon-chevron-right.js +1 -1
- package/dist/components/eds-icon-chevron-up.js +1 -1
- package/dist/components/eds-icon-clone.js +1 -1
- package/dist/components/eds-icon-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-download.js +1 -1
- package/dist/components/eds-icon-draft.js +1 -1
- package/dist/components/eds-icon-edit.js +1 -1
- package/dist/components/eds-icon-eu.js +1 -1
- package/dist/components/eds-icon-external.js +1 -1
- package/dist/components/eds-icon-facebook.js +1 -1
- package/dist/components/eds-icon-gitlab.js +1 -1
- package/dist/components/eds-icon-linkedin.js +1 -1
- package/dist/components/eds-icon-loader.js +1 -1
- package/dist/components/eds-icon-mastodon.js +1 -1
- package/dist/components/eds-icon-menu.js +1 -1
- package/dist/components/eds-icon-minus.js +1 -1
- package/dist/components/eds-icon-more.js +1 -1
- package/dist/components/eds-icon-paper.js +1 -1
- package/dist/components/eds-icon-plus.js +1 -1
- package/dist/components/eds-icon-portal.js +1 -1
- package/dist/components/eds-icon-private.js +1 -1
- package/dist/components/eds-icon-public.js +1 -1
- package/dist/components/eds-icon-search.js +1 -1
- package/dist/components/eds-icon-star.js +1 -1
- package/dist/components/eds-icon-start.js +1 -1
- package/dist/components/eds-icon-success.js +1 -1
- package/dist/components/eds-icon-thumbs-down.js +1 -1
- package/dist/components/eds-icon-thumbs-up.js +1 -1
- package/dist/components/eds-icon-tutorial.js +1 -1
- package/dist/components/eds-icon-twitter.js +1 -1
- package/dist/components/eds-icon-unknown.js +1 -1
- package/dist/components/eds-icon-updown.js +2 -2
- package/dist/components/eds-icon-user.js +1 -1
- package/dist/components/eds-icon-view.js +1 -1
- package/dist/components/eds-icon-youtube.js +1 -1
- package/dist/components/eds-img2.js +2 -2
- package/dist/components/eds-input-field2.js +22 -16
- package/dist/components/eds-input-footer2.js +9 -3
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +14 -9
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +2 -2
- package/dist/components/eds-nps2.js +66 -53
- package/dist/components/eds-pagination2.js +1 -1
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating2.js +1 -1
- package/dist/components/eds-section-core2.js +1 -1
- package/dist/components/eds-section-heading2.js +2 -2
- package/dist/components/eds-sidebar.d.ts +11 -0
- package/dist/components/eds-sidebar.js +208 -0
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +133 -46
- package/dist/components/eds-steps2.js +131 -35
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +65 -9
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip2.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +1 -1
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal2.js +1 -1
- package/dist/components/logo-variations-tabs.js +1 -1
- package/dist/components/logo-variations-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/p-062d2f91.entry.js +1 -0
- package/dist/components/p-0725a684.entry.js +1 -0
- package/dist/components/{p-84a04d37.entry.js → p-07d5560c.entry.js} +1 -1
- package/dist/components/p-13f74e41.entry.js +1 -0
- package/dist/components/p-15dc5ecf.entry.js +1 -0
- package/dist/components/{p-ca91952b.entry.js → p-15df046d.entry.js} +1 -1
- package/dist/components/p-15f94425.entry.js +1 -0
- package/dist/components/{p-37a3d3ba.entry.js → p-1f0819cf.entry.js} +1 -1
- package/dist/components/p-1f74c192.entry.js +1 -0
- package/dist/components/p-20e711e6.entry.js +1 -0
- package/dist/components/{p-e7b7179f.entry.js → p-21510f7a.entry.js} +1 -1
- package/dist/components/{p-219842c0.entry.js → p-277d0045.entry.js} +1 -1
- package/dist/components/p-28ce55ae.entry.js +1 -0
- package/dist/components/p-30e88fc2.entry.js +1 -0
- package/dist/components/{p-1297d926.entry.js → p-314aa952.entry.js} +1 -1
- package/dist/components/p-355df495.entry.js +1 -0
- package/dist/components/p-366c5c03.entry.js +1 -0
- package/dist/components/p-38113b9c.entry.js +1 -0
- package/dist/components/{p-c5d6c2a5.entry.js → p-3a1e54bd.entry.js} +1 -1
- package/dist/components/{p-c8cba3a9.entry.js → p-3ad7a15b.entry.js} +1 -1
- package/dist/components/p-3b838def.entry.js +1 -0
- package/dist/components/p-48825534.entry.js +1 -0
- package/dist/components/{p-b9bd1209.entry.js → p-4cebd89e.entry.js} +1 -1
- package/dist/components/p-51d0e443.entry.js +1 -0
- package/dist/components/p-53f6527b.entry.js +1 -0
- package/dist/components/{p-9385c5fd.entry.js → p-5ba1c4b4.entry.js} +1 -1
- package/dist/components/{p-7a34b267.entry.js → p-5e6f5588.entry.js} +1 -1
- package/dist/components/p-6197c589.entry.js +1 -0
- package/dist/components/p-632bd36e.entry.js +1 -0
- package/dist/components/p-65948a6e.entry.js +1 -0
- package/dist/components/{p-06428b6c.entry.js → p-67c3bedc.entry.js} +1 -1
- package/dist/components/{p-a258d382.entry.js → p-721431b8.entry.js} +1 -1
- package/dist/components/p-7737d5c7.entry.js +1 -0
- package/dist/components/p-78e85217.entry.js +1 -0
- package/dist/components/p-7a62ae0d.entry.js +1 -0
- package/dist/components/p-7aa97ad6.entry.js +1 -0
- package/dist/components/{p-067a184b.entry.js → p-7f820989.entry.js} +1 -1
- package/dist/components/{p-b9b6ac74.entry.js → p-801f67a1.entry.js} +1 -1
- package/dist/components/{p-9c68934f.entry.js → p-80ced58a.entry.js} +1 -1
- package/dist/components/p-87481169.entry.js +1 -0
- package/dist/components/p-87df6442.entry.js +1 -0
- package/dist/components/p-8bd954b5.entry.js +1 -0
- package/dist/components/{p-bce8a58d.entry.js → p-8c520685.entry.js} +1 -1
- package/dist/components/p-941dc156.entry.js +1 -0
- package/dist/components/p-9afd31cb.entry.js +1 -0
- package/dist/components/p-9cd1cc1e.entry.js +1 -0
- package/dist/components/{p-4beb1e06.entry.js → p-9d57b51f.entry.js} +1 -1
- package/dist/components/{p-df18ffd1.entry.js → p-a61dbad5.entry.js} +1 -1
- package/dist/components/p-a7323642.entry.js +1 -0
- package/dist/components/p-a83c336c.entry.js +1 -0
- package/dist/components/{p-71f4afdf.entry.js → p-ab4acc26.entry.js} +1 -1
- package/dist/components/{p-71e9b1e9.entry.js → p-ac501eb6.entry.js} +1 -1
- package/dist/components/p-ad036475.entry.js +1 -0
- package/dist/components/p-ad295d47.entry.js +1 -0
- package/dist/components/p-ad6e7daf.entry.js +1 -0
- package/dist/components/{p-dd34feaa.entry.js → p-ae471b33.entry.js} +1 -1
- package/dist/components/p-b64f8ffc.entry.js +1 -0
- package/dist/components/p-bb800eec.entry.js +1 -0
- package/dist/components/p-bfb00131.entry.js +1 -0
- package/dist/components/p-c07e3269.entry.js +1 -0
- package/dist/components/p-c286e9d3.entry.js +1 -0
- package/dist/components/p-c38c527e.entry.js +1 -0
- package/dist/components/p-c404226a.entry.js +1 -0
- package/dist/components/p-c9d60f21.entry.js +1 -0
- package/dist/components/p-d29676a0.entry.js +1 -0
- package/dist/components/p-df5fc158.entry.js +1 -0
- package/dist/components/p-e311fe9e.entry.js +1 -0
- package/dist/components/p-e4f0f24a.entry.js +1 -0
- package/dist/components/{p-1fad228f.entry.js → p-eda55db0.entry.js} +1 -1
- package/dist/components/p-ee93afac.entry.js +1 -0
- package/dist/components/{p-c12b0af1.entry.js → p-f0993844.entry.js} +1 -1
- package/dist/components/p-f1c8f841.entry.js +1 -0
- package/dist/components/p-f227bac5.entry.js +1 -0
- package/dist/components/{p-7ada2015.entry.js → p-f24bfc6a.entry.js} +1 -1
- package/dist/components/p-f3754a20.entry.js +1 -0
- package/dist/components/{p-d650c6c3.entry.js → p-f4c954ec.entry.js} +1 -1
- package/dist/components/p-f6baca73.entry.js +9 -0
- package/dist/components/p-f7b88ef5.entry.js +1 -0
- package/dist/components/{p-c51b90c2.entry.js → p-fda3df86.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/svg-repository.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/components/up-and-down.js +2 -2
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components-section.entry.js +33 -24
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/docs-palettes.entry.js +1 -1
- package/dist/esm/docs-tokens.entry.js +1 -1
- package/dist/esm/{eds-accordion_36.entry.js → eds-accordion_37.entry.js} +671 -225
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-card-desc_2.entry.js +2 -2
- package/dist/esm/eds-card-generic.entry.js +1 -1
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-section.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-footer.entry.js +4 -2
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-fullscreen-menu.entry.js +12 -1
- package/dist/esm/eds-gauge.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-bin.entry.js +1 -1
- package/dist/esm/eds-icon-bluesky.entry.js +1 -1
- package/dist/esm/eds-icon-bookmark.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-down.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-left.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-right.entry.js +1 -1
- package/dist/esm/eds-icon-chevron-up.entry.js +1 -1
- package/dist/esm/eds-icon-clone.entry.js +1 -1
- package/dist/esm/eds-icon-close.entry.js +1 -1
- package/dist/esm/eds-icon-copy.entry.js +1 -1
- package/dist/esm/eds-icon-download.entry.js +1 -1
- package/dist/esm/eds-icon-draft.entry.js +1 -1
- package/dist/esm/eds-icon-edit.entry.js +1 -1
- package/dist/esm/eds-icon-eu.entry.js +1 -1
- package/dist/esm/eds-icon-external.entry.js +1 -1
- package/dist/esm/eds-icon-facebook.entry.js +1 -1
- package/dist/esm/eds-icon-gitlab.entry.js +1 -1
- package/dist/esm/eds-icon-linkedin.entry.js +1 -1
- package/dist/esm/eds-icon-loader.entry.js +1 -1
- package/dist/esm/eds-icon-mastodon.entry.js +1 -1
- package/dist/esm/eds-icon-menu.entry.js +1 -1
- package/dist/esm/eds-icon-minus.entry.js +1 -1
- package/dist/esm/eds-icon-more.entry.js +1 -1
- package/dist/esm/eds-icon-paper.entry.js +1 -1
- package/dist/esm/eds-icon-plus.entry.js +1 -1
- package/dist/esm/eds-icon-portal.entry.js +1 -1
- package/dist/esm/eds-icon-private.entry.js +1 -1
- package/dist/esm/eds-icon-public.entry.js +1 -1
- package/dist/esm/eds-icon-search.entry.js +1 -1
- package/dist/esm/eds-icon-star.entry.js +1 -1
- package/dist/esm/eds-icon-start.entry.js +1 -1
- package/dist/esm/eds-icon-success.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-down.entry.js +1 -1
- package/dist/esm/eds-icon-thumbs-up.entry.js +1 -1
- package/dist/esm/eds-icon-tutorial.entry.js +1 -1
- package/dist/esm/eds-icon-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-unknown.entry.js +1 -1
- package/dist/esm/eds-icon-updown.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-view.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-modal.entry.js +2 -2
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-social-networks.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-870ab08f.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +2 -2
- package/dist/esm/logo-variations-tabs.entry.js +1 -1
- package/dist/esm/logo-wrong-usage.entry.js +1 -1
- package/dist/esm/svg-repository.entry.js +3 -3
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/esm/{up-and-down-d747abee.js → up-and-down-8b69ca97.js} +2 -2
- package/dist/hydrate/index.js +850 -360
- package/dist/hydrate/index.mjs +850 -360
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/svgs/src/lib/svgs.d.ts +2 -2
- package/dist/types/components/eds-button/eds-button.d.ts +0 -1
- package/dist/types/{shared-ui → components}/eds-form/eds-form.d.ts +1 -0
- package/dist/types/{shared-ui → components}/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +3 -0
- package/dist/types/{shared-ui → components}/eds-header/eds-header.d.ts +0 -2
- package/dist/types/components/eds-link/eds-link.d.ts +0 -1
- package/dist/types/components/eds-nps/eds-nps.d.ts +5 -3
- package/dist/types/components/eds-sidebar/eds-sidebar.d.ts +50 -0
- package/dist/types/components/eds-sidebar/eds-sidebar.stories.d.ts +98 -0
- package/dist/types/components/eds-steps/eds-steps.d.ts +53 -0
- package/dist/types/{shared-ui → components}/eds-steps/eds-steps.stories.d.ts +18 -0
- package/dist/types/components/eds-steps-v2/eds-steps-v2.d.ts +56 -0
- package/dist/types/{shared-ui → components}/eds-steps-v2/eds-steps-v2.stories.d.ts +8 -0
- package/dist/types/components/eds-table/eds-table.d.ts +8 -0
- package/dist/types/components.d.ts +151 -130
- package/package.json +1 -1
- package/dist/collection/shared-ui/eds-steps/eds-steps.css +0 -139
- package/dist/collection/shared-ui/eds-steps/eds-steps.js +0 -395
- package/dist/components/p-03714413.entry.js +0 -1
- package/dist/components/p-097665cb.entry.js +0 -1
- package/dist/components/p-09f1b358.entry.js +0 -1
- package/dist/components/p-1928711b.entry.js +0 -1
- package/dist/components/p-204f97de.entry.js +0 -1
- package/dist/components/p-20e385b8.entry.js +0 -1
- package/dist/components/p-21b5ca1f.entry.js +0 -1
- package/dist/components/p-290b3d61.entry.js +0 -1
- package/dist/components/p-2db9f80a.entry.js +0 -1
- package/dist/components/p-354857a8.entry.js +0 -1
- package/dist/components/p-3a295312.entry.js +0 -1
- package/dist/components/p-3ff1f198.entry.js +0 -1
- package/dist/components/p-404b4dec.entry.js +0 -1
- package/dist/components/p-422c08a9.entry.js +0 -1
- package/dist/components/p-44cc0966.entry.js +0 -1
- package/dist/components/p-473aeaa0.entry.js +0 -1
- package/dist/components/p-4b2d40d4.entry.js +0 -1
- package/dist/components/p-4faa0047.entry.js +0 -1
- package/dist/components/p-552125e3.entry.js +0 -1
- package/dist/components/p-5db8003b.entry.js +0 -1
- package/dist/components/p-5ea2afdf.entry.js +0 -1
- package/dist/components/p-5f2bb217.entry.js +0 -1
- package/dist/components/p-65d1c8e9.entry.js +0 -1
- package/dist/components/p-67823a16.entry.js +0 -1
- package/dist/components/p-69db1210.entry.js +0 -1
- package/dist/components/p-701dc6d8.entry.js +0 -1
- package/dist/components/p-73daee37.entry.js +0 -1
- package/dist/components/p-77143afc.entry.js +0 -1
- package/dist/components/p-7a137d91.entry.js +0 -1
- package/dist/components/p-81cce4f8.entry.js +0 -1
- package/dist/components/p-8d66718e.entry.js +0 -1
- package/dist/components/p-9154e892.entry.js +0 -1
- package/dist/components/p-98501e25.entry.js +0 -1
- package/dist/components/p-98d79948.entry.js +0 -1
- package/dist/components/p-9992fbdb.entry.js +0 -1
- package/dist/components/p-a82fc224.entry.js +0 -1
- package/dist/components/p-ad0519b7.entry.js +0 -1
- package/dist/components/p-b15b11de.entry.js +0 -9
- package/dist/components/p-b56a3fc9.entry.js +0 -1
- package/dist/components/p-c6f5d9df.entry.js +0 -1
- package/dist/components/p-c770c97b.entry.js +0 -1
- package/dist/components/p-cba7d276.entry.js +0 -1
- package/dist/components/p-cffb13fa.entry.js +0 -1
- package/dist/components/p-d3cbc8f9.entry.js +0 -1
- package/dist/components/p-d6a6879c.entry.js +0 -1
- package/dist/components/p-d9e02227.entry.js +0 -1
- package/dist/components/p-e3b89fab.entry.js +0 -1
- package/dist/components/p-e696531f.entry.js +0 -1
- package/dist/components/p-e8bc4649.entry.js +0 -1
- package/dist/components/p-ef86f330.entry.js +0 -1
- package/dist/components/p-f5470900.entry.js +0 -1
- package/dist/components/p-ff433e09.entry.js +0 -1
- package/dist/types/shared-ui/eds-steps/eds-steps.d.ts +0 -104
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +0 -84
- /package/dist/collection/{shared-ui → components/eds-cards}/eds-card-section/eds-card-section.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-feedback/eds-feedback.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-footer/eds-footer.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-form/eds-form.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-frame/eds-frame.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-social-networks/eds-social-networks.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-splash-screen/eds-splash-screen.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-splash-screen/eds-splash-screen.js +0 -0
- /package/dist/collection/{shared-ui → components}/eds-tabs/eds-tabs.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-toast-manager/eds-toast-manager.css +0 -0
- /package/dist/collection/{shared-ui → components}/eds-toast-manager/eds-toast-manager.st.js +0 -0
- /package/dist/collection/{shared-ui → components}/eds-user/eds-user.css +0 -0
- /package/dist/components/{p-1b2913c8.js → p-553ca350.js} +0 -0
- /package/dist/types/{shared-ui → components/eds-cards}/eds-card-section/eds-card-section.d.ts +0 -0
- /package/dist/types/{shared-ui → components/eds-cards}/eds-card-section/eds-card-section.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-feedback/eds-feedback.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-feedback/eds-feedback.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-footer/eds-footer.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-footer/eds-footer.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-form/eds-form.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-frame/eds-frame.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-frame/eds-frame.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-header/eds-header.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-social-networks/eds-social-networks.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-social-networks/eds-social-networks.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-splash-screen/eds-splash-screen.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-splash-screen/eds-splash-screen.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-tabs/eds-tabs.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-tabs/eds-tabs.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-toast-manager/eds-toast-manager.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-toast-manager/eds-toast-manager.st.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-user/eds-user.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-user/eds-user.stories.d.ts +0 -0
package/dist/hydrate/index.mjs
CHANGED
|
@@ -2331,7 +2331,7 @@ class ColorPrimaryPalette {
|
|
|
2331
2331
|
];
|
|
2332
2332
|
}
|
|
2333
2333
|
render() {
|
|
2334
|
-
return (hAsync("ul", { key: '
|
|
2334
|
+
return (hAsync("ul", { key: '247df18cb7672b14048e390299894acf0ff44714', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2335
2335
|
}
|
|
2336
2336
|
static get cmpMeta() { return {
|
|
2337
2337
|
"$flags$": 0,
|
|
@@ -2403,7 +2403,7 @@ class ColorSecondaryPalette {
|
|
|
2403
2403
|
this.show = undefined;
|
|
2404
2404
|
}
|
|
2405
2405
|
render() {
|
|
2406
|
-
return (hAsync("ul", { key: '
|
|
2406
|
+
return (hAsync("ul", { key: '1712cc4bd243d5bde96aac8334ce26706edf4731', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2407
2407
|
}
|
|
2408
2408
|
static get cmpMeta() { return {
|
|
2409
2409
|
"$flags$": 0,
|
|
@@ -2477,7 +2477,7 @@ class ColorSupportPalette {
|
|
|
2477
2477
|
return 'text-default';
|
|
2478
2478
|
}
|
|
2479
2479
|
render() {
|
|
2480
|
-
return (hAsync("ul", { key: '
|
|
2480
|
+
return (hAsync("ul", { key: 'f8847f5ebf1c015d60cc1b699b4cfbeceff77b59', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2481
2481
|
// compute once
|
|
2482
2482
|
const textClass = this.getTextColor(color.background);
|
|
2483
2483
|
return (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' }, class: textClass })), hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneC), hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneU)))));
|
|
@@ -2503,26 +2503,25 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2503
2503
|
"."),
|
|
2504
2504
|
hAsync("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
|
|
2505
2505
|
hAsync("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
|
|
2506
|
-
hAsync("
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
2506
|
+
hAsync("div", { class: "mt-16" },
|
|
2507
|
+
hAsync("eds-steps", { type: "static", steps: [
|
|
2508
|
+
{
|
|
2509
|
+
title: 'Import the Loader Module',
|
|
2510
|
+
content: 'The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components.'
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
title: 'Register Custom Elements',
|
|
2514
|
+
content: 'Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM.'
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
title: 'Lazy Loading in Action',
|
|
2518
|
+
content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
title: 'Optimized Performance',
|
|
2522
|
+
content: 'By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed.'
|
|
2523
|
+
}
|
|
2524
|
+
] })),
|
|
2526
2525
|
hAsync("h2", null, "Load the variables and styles"),
|
|
2527
2526
|
hAsync("p", null,
|
|
2528
2527
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -2534,13 +2533,16 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2534
2533
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
2535
2534
|
' ',
|
|
2536
2535
|
hAsync("code", null, "head"),
|
|
2537
|
-
". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."),
|
|
2536
|
+
". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to dynamic css configurations."),
|
|
2538
2537
|
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
2539
2538
|
hAsync("p", null,
|
|
2540
2539
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
2541
2540
|
' ',
|
|
2542
2541
|
hAsync("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
2543
|
-
".")
|
|
2542
|
+
"."),
|
|
2543
|
+
hAsync("h2", null, "Example"),
|
|
2544
|
+
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
2545
|
+
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
2544
2546
|
|
|
2545
2547
|
const DocsInstallation = () => (hAsync("div", null,
|
|
2546
2548
|
hAsync("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
@@ -2569,6 +2571,13 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2569
2571
|
hAsync("h2", null, "Vue Wrappers"),
|
|
2570
2572
|
hAsync("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
|
|
2571
2573
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
2574
|
+
hAsync("h2", null, "Vue Router Initialization"),
|
|
2575
|
+
hAsync("p", null,
|
|
2576
|
+
"For better component handling and to avoid potential asynchronous initialization issues (such as runtime errors from components that depend on the router context), make sure the application waits for the router to fully initialize before mounting the app. Use the following pattern in your ",
|
|
2577
|
+
hAsync("code", null, "main.ts"),
|
|
2578
|
+
":"),
|
|
2579
|
+
hAsync("eds-code-block", { code: "import { createApp } from 'vue';\nimport App from './App.vue';\nimport router from './router';\n\nconst app = createApp(App);\napp.use(router);\n\n// Wait for router to finish resolving initial navigation\nrouter.isReady().then(() => {\n app.mount('#root');\n});\n", language: "javascript", "copy-label": "Copy Code" }),
|
|
2580
|
+
hAsync("p", null, "This ensures that all components relying on routing information (e.g., navigation links, route guards, or async route data) are rendered only after the router is ready, preventing timing-related errors or unexpected behavior at startup."),
|
|
2572
2581
|
hAsync("h2", null,
|
|
2573
2582
|
"Passing Properties to Custom Elements Using the ",
|
|
2574
2583
|
hAsync("b", null, ".prop"),
|
|
@@ -2590,7 +2599,7 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2590
2599
|
hAsync("b", null, ".prop"),
|
|
2591
2600
|
" modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
|
|
2592
2601
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
2593
|
-
hAsync("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible"
|
|
2602
|
+
hAsync("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader headerVariant="strong"></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible" style="padding: 10px;">\n <EdsSteps \n :steps="JSON.stringify(stepsdata)"\n type="linear"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: { EdsHeader, EdsSplashScreen, EdsSteps },\n data() {\n return {\n stepsdata: [\n { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },\n { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }\n ],\n splashVisible: true\n };\n },\n methods: {\n delay(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n async initialize() {\n try {\n // simulate your init work\n await this.delay(2000);\n\n // fire the built-in event that EdsSplashScreen listens for\n window.dispatchEvent(new Event("hideSplash"));\n } catch (e) {\n console.error("Init error", e);\n window.dispatchEvent(new Event("hideSplash"));\n } finally {\n // show the rest of the app\n this.splashVisible = false;\n }\n }\n },\n mounted() {\n this.initialize();\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
2594
2603
|
|
|
2595
2604
|
const DocsAngular = () => (hAsync("div", null,
|
|
2596
2605
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -2628,7 +2637,7 @@ class ComponentsSection {
|
|
|
2628
2637
|
}
|
|
2629
2638
|
}
|
|
2630
2639
|
render() {
|
|
2631
|
-
return hAsync("div", { key: '
|
|
2640
|
+
return hAsync("div", { key: '2716938c52b8f67e031d8508745cccb8f015a110', class: "container" }, this.renderContent());
|
|
2632
2641
|
}
|
|
2633
2642
|
static get cmpMeta() { return {
|
|
2634
2643
|
"$flags$": 0,
|
|
@@ -2706,7 +2715,7 @@ class CorrectUseOfColors {
|
|
|
2706
2715
|
registerInstance(this, hostRef);
|
|
2707
2716
|
}
|
|
2708
2717
|
render() {
|
|
2709
|
-
return (hAsync("div", { key: '
|
|
2718
|
+
return (hAsync("div", { key: '4fe6cbf0872ceb38e8c4ade73f9cd5d71dc02a6d', class: "container" }, hAsync("p", { key: 'a2f95067e472c8ecc8010cc529ec69c48746f243', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '304fd52f6ef4744d6a531a5d7b8729d505c6d7e5', 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: 'eea7378f6153492e2238417887f2ce786c450293', 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: '87608635aa776aea41fd8d6a9b794fd617e58316', class: "flex" }, hAsync("div", { key: '39197725e0a769ce5aeae4ecf3490c40368a1a69', class: "w-full" }, hAsync("ul", { key: 'fc7bc2dd624ad83209d2e55a31c7fe228e27a05c', 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: '487f4c9776ef797fed3a504bc988529fafafe5d8', class: "w-full" }, hAsync("ul", { key: '40cc46b58f95bdfe281b8336d57200f0b10ba7bf', 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: '0d7f40bfb85770112c13562ec947475f3b31a581', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '2574eb39b09d61126d4caceb1ca39718fb84cc49', 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: '19ae32c4f3db95043b10be2dd1f8542910295db0', 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: '500638a0a9d1a29962dcffa485612bc716b17585', class: "flex" }, hAsync("div", { key: '8564beedaa965489c3224ab8279a35af3f8234a4', class: "w-full" }, hAsync("ul", { key: 'a60d9044f83a891df3f8855699c9add12826b1e2', 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: '312f36e79e1a1c1d6c009c8e61fdff15aa7d2d36', class: "w-full" }, hAsync("ul", { key: '239670d7c3ff0eb8e8183999250dd4599f7eb57d', 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: '0ad90e8f9b9b5a6e02f60f1992c3290811f7712c', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'df616406dd19b599afba16f1eb7c6efd0ab0a676', 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: '595d7edcb5d5309daff1bda838a87afaeb91d1ac', 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: '553e6261bd0b27dee6993b3b828f0a32e9125fa7', class: "flex" }, hAsync("div", { key: 'c2117c24b17629ab511eff847954b54b5ef7dafe', class: "w-full" }, hAsync("ul", { key: 'a18f9635a15188a3b9ae057d83968a26f225289e', 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: '31a3b39cebe2d27d0f14769e9031a6342956ae48', class: "w-full" }, hAsync("ul", { key: 'acd7aab003bade1303b98c6e5cfa31f65078315e', 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: '3d85b99a224355957176c8511e2ce8847a10b15f', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'c362a37363f542dc6e93f74fd19e1be47a9c2e26', 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: '30890c8730d50a567611fee53a879511d6c83170', 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: '0711dc09f3de81be950f9b1103fef11579bf269f', class: "flex" }, hAsync("div", { key: '84e885c4a4102791febe68fa3b3f65f7f14cbf66', class: "w-full" }, hAsync("ul", { key: '68f65fecdc6a4875d0ec1dcc3a187b32a13edaa6', 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: '9eb65cffe9ec2b8cd8505dffaf67bb9da1545327', class: "w-full" }, hAsync("ul", { key: 'b8ec8142577d347f87a4a34984c83a7b2b6390de', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
2710
2719
|
}
|
|
2711
2720
|
static get cmpMeta() { return {
|
|
2712
2721
|
"$flags$": 0,
|
|
@@ -2745,7 +2754,7 @@ class DocsContent {
|
|
|
2745
2754
|
}
|
|
2746
2755
|
}
|
|
2747
2756
|
render() {
|
|
2748
|
-
return hAsync("div", { key: '
|
|
2757
|
+
return hAsync("div", { key: 'dfc087cb088b4505939bcf69559639f0a2075255', class: "container" }, this.renderContent());
|
|
2749
2758
|
}
|
|
2750
2759
|
static get cmpMeta() { return {
|
|
2751
2760
|
"$flags$": 0,
|
|
@@ -2778,7 +2787,7 @@ class DocsPalettes {
|
|
|
2778
2787
|
}
|
|
2779
2788
|
}
|
|
2780
2789
|
render() {
|
|
2781
|
-
return hAsync("div", { key: '
|
|
2790
|
+
return hAsync("div", { key: 'dd4c39b9b45b3ac9d7e54898e27c09b3c6b4259d', class: "container" }, this.renderContent());
|
|
2782
2791
|
}
|
|
2783
2792
|
static get cmpMeta() { return {
|
|
2784
2793
|
"$flags$": 0,
|
|
@@ -2936,10 +2945,10 @@ class EdsAccordion {
|
|
|
2936
2945
|
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2937
2946
|
*/
|
|
2938
2947
|
render() {
|
|
2939
|
-
return (hAsync("div", { key: '
|
|
2948
|
+
return (hAsync("div", { key: '095474500f7c60f20e4d737188001d2f3084dbcc', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2940
2949
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2941
2950
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2942
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '
|
|
2951
|
+
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: 'f090fbe3632df8302046f1178e82b8affc4cc821', ref: (el) => (this.headerRef = el), class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), hAsync("div", { key: '0a30ab8c27cadbb342fc57f6393111c84f10a664', class: "ml-auto" }, hAsync("eds-button", { key: '01f4658df8181b63b71a2e0d2a67e8f8b58efbb7', id: "toggleAccordion", intent: this.buttonIntent, "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '9f3b5a0e425c2dffe3b6fe40fa33b020d64256d8', class: `w-full`, style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: '414735d7d982de76d8a1b8db24aa9a569eba37c7', id: "accordionSection", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '11097a0646b18f728af494c14aa4cc0e5335defe', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-4`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '88414c40490aa77166d23868f16556b9356279a7', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '8070a7676ca8fba065f813852a2e0cf4146f3374' })))))));
|
|
2943
2952
|
}
|
|
2944
2953
|
get el() { return getElement(this); }
|
|
2945
2954
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3116,12 +3125,12 @@ class EdsAlert {
|
|
|
3116
3125
|
}
|
|
3117
3126
|
render() {
|
|
3118
3127
|
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3119
|
-
return (hAsync("div", { key: '
|
|
3128
|
+
return (hAsync("div", { key: 'd8f0a45ddbaf3d3eb284751e33ddfdce2e13b67a', class: alertStyles({
|
|
3120
3129
|
intent: this.intent,
|
|
3121
3130
|
brd: this.brd,
|
|
3122
3131
|
direction: this.direction,
|
|
3123
3132
|
withBtn: this.withBtn
|
|
3124
|
-
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: '
|
|
3133
|
+
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: '179862c141a2ce05fa9f8562be7e64196baa3922', id: "alert-message", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && (hAsync("div", { key: '3677358bd563a3e2ee1b74309dc4fb6c84ac475f', id: "alert-action" }, this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : (hAsync("eds-button", { class: "eds-alert-button", label: this.pressableLabel, intent: "secondary", onClick: () => this.handleAction() }))))));
|
|
3125
3134
|
}
|
|
3126
3135
|
get el() { return getElement(this); }
|
|
3127
3136
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3172,7 +3181,7 @@ class EdsAppRoot {
|
|
|
3172
3181
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3173
3182
|
}
|
|
3174
3183
|
render() {
|
|
3175
|
-
return (hAsync("div", { key: '
|
|
3184
|
+
return (hAsync("div", { key: 'aa412cafecaceba211d0938d42779d33a20b418f' }, hAsync("eds-splash-screen", { key: '78de23a74a0263c09e400cb16d20e014a50913ba', inverse: true, initPromise: this.combinedInitPromise }), hAsync("eds-login", { key: '6a690104e273cbefa9ec4e66c5479c2db0666f39', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), hAsync("main", { key: 'e011a7d8a0a78a932f61a218d85aac8f25e8021b' }, this.isAuthenticated ? hAsync("h1", null, "Welcome, authenticated user!") : hAsync("h1", null, "Please log in."))));
|
|
3176
3185
|
}
|
|
3177
3186
|
static get cmpMeta() { return {
|
|
3178
3187
|
"$flags$": 9,
|
|
@@ -3255,7 +3264,7 @@ class EdsAvatar {
|
|
|
3255
3264
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3256
3265
|
*/
|
|
3257
3266
|
render() {
|
|
3258
|
-
return (hAsync("div", { key: '
|
|
3267
|
+
return (hAsync("div", { key: '7b5bf31c794c9bbddd2976fdd5a273842a75603a', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
3259
3268
|
}
|
|
3260
3269
|
static get style() { return EdsAvatarStyle0; }
|
|
3261
3270
|
static get cmpMeta() { return {
|
|
@@ -3286,7 +3295,7 @@ class EdsBlockBreak {
|
|
|
3286
3295
|
this.inverse = false;
|
|
3287
3296
|
}
|
|
3288
3297
|
render() {
|
|
3289
|
-
return hAsync("hr", { key: '
|
|
3298
|
+
return hAsync("hr", { key: 'dd9b98d66f195135ff2fb1374a56d4c670e43d3e', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3290
3299
|
}
|
|
3291
3300
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3292
3301
|
static get cmpMeta() { return {
|
|
@@ -3446,7 +3455,7 @@ class EdsBreadcrumb {
|
|
|
3446
3455
|
*/
|
|
3447
3456
|
render() {
|
|
3448
3457
|
const itemsToRender = this.getTruncatedItems();
|
|
3449
|
-
return (hAsync("nav", { key: '
|
|
3458
|
+
return (hAsync("nav", { key: '4894fb9e6b37ef84880a62f4dcd3289dcb9cab38', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd69405fcee024465d645d9cdbb17189998a94b95', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3450
3459
|
const isLast = index === itemsToRender.length - 1;
|
|
3451
3460
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3452
3461
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3612,7 +3621,6 @@ class EdsButton {
|
|
|
3612
3621
|
this.size = 'small';
|
|
3613
3622
|
this.iconPos = 'right';
|
|
3614
3623
|
this.iconSmall = false;
|
|
3615
|
-
this.extraClass = undefined;
|
|
3616
3624
|
this.triggerClick = undefined;
|
|
3617
3625
|
}
|
|
3618
3626
|
handleParentContext(event) {
|
|
@@ -3663,7 +3671,7 @@ class EdsButton {
|
|
|
3663
3671
|
});
|
|
3664
3672
|
const ElementType = this.elementType;
|
|
3665
3673
|
const isInteractive = !this.disabled && !this.loading;
|
|
3666
|
-
return (hAsync(Host, { key: '
|
|
3674
|
+
return (hAsync(Host, { key: '25a7b4ffda3df65e91c77a18becd45bc40973f3c' }, hAsync(ElementType, { key: '0f00d82a37f3189b862015eb2d915f2364b6d75d', tabindex: isInteractive ? '0' : '-1', "aria-label": this.label ? undefined : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? 'true' : undefined, "aria-busy": this.loading ? 'true' : undefined, disabled: this.elementType === 'button' ? this.disabled || this.loading : undefined, role: this.elementType === 'a' ? 'button' : undefined, class: `${classes || ''}`, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, this.label && (hAsync("span", { key: '6e45dfefb4805eef0574f7462becca6cde85dbc0', class: this.loading ? 'opacity-0' : '', "aria-hidden": this.loading ? 'true' : undefined }, this.label)), this.loading && (hAsync("span", { key: '9909c70db39a039b883854caff816d25f132b866', class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, hAsync("span", { key: '367cd65a13f81cbcb12d93855dc091a4309566bb', class: "loader", style: {
|
|
3667
3675
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3668
3676
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3669
3677
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
@@ -3689,7 +3697,6 @@ class EdsButton {
|
|
|
3689
3697
|
"size": [1],
|
|
3690
3698
|
"iconPos": [1, "icon-pos"],
|
|
3691
3699
|
"iconSmall": [4, "icon-small"],
|
|
3692
|
-
"extraClass": [1, "extra-class"],
|
|
3693
3700
|
"triggerClick": [16]
|
|
3694
3701
|
},
|
|
3695
3702
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
@@ -3723,7 +3730,7 @@ class EdsCardDesc {
|
|
|
3723
3730
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3724
3731
|
}
|
|
3725
3732
|
render() {
|
|
3726
|
-
return (hAsync("p", { key: '
|
|
3733
|
+
return (hAsync("p", { key: '3711e4f24ad19f1dedef3083b9b9c8868f3b4e3f', class: "text-light f-ui-03-light" }, hAsync("span", { key: '46b53c5111bc05ffaaa6f8fcd4b1b6ddfae2d413', class: this.getTruncateClass() }, this.description)));
|
|
3727
3734
|
}
|
|
3728
3735
|
static get style() { return EdsCardDescStyle0; }
|
|
3729
3736
|
static get cmpMeta() { return {
|
|
@@ -3828,7 +3835,7 @@ class EdsCardGeneric {
|
|
|
3828
3835
|
});
|
|
3829
3836
|
}
|
|
3830
3837
|
render() {
|
|
3831
|
-
return (hAsync("article", { key: '76e77261a0c6e0c506fe7600d31a492808293d27', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'ca26508b05a31310df7fc0c3fa5769f7947e80fc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), hAsync("div", { key: '00ba325e6a0093cb2be35854f2bcb579ad4eb35b', class: "mt-8 mb-8" }, this.description &&
|
|
3838
|
+
return (hAsync("article", { key: '76e77261a0c6e0c506fe7600d31a492808293d27', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'ca26508b05a31310df7fc0c3fa5769f7947e80fc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), hAsync("div", { key: '00ba325e6a0093cb2be35854f2bcb579ad4eb35b', class: "mt-8 mb-8" }, this.description && hAsync("eds-card-desc", { key: '2d775f772092b7873dd1eabc7c3e8606dded0c47', "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8 block mx-auto" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: 'e51237f8196212715d1d97ae1e6bfc2625573cb3', class: "flex flex-wrap gap-y-4 gap-x-1" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label, size: tag.size })))), ' '));
|
|
3832
3839
|
}
|
|
3833
3840
|
get el() { return getElement(this); }
|
|
3834
3841
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -4040,7 +4047,7 @@ class EdsCardProject {
|
|
|
4040
4047
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4041
4048
|
].join(' ');
|
|
4042
4049
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4043
|
-
return (hAsync("article", { key: '
|
|
4050
|
+
return (hAsync("article", { key: '5f72c2dc52a8ef7edb004c6cf9a2035097c5aa28', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '145809ee5e4800d852bb6d9b84a023160098f3c4', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '3d77551f7518cf63f16daffc7d59a2dd23b66148', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: '715a73ee7a013d13ef5e9f3f180eedf043998d76', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '418fc9fe39b480f4d1c9e99f2ef4361a6ad3827f', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '58764ae4d610e2d1205cf09b7274a14a8bfb5694', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: 'c552bbc88aca3e3b114aef1fbd3e3bdf3e334624', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '3e85ad957b7d782cc228a508ce8e76ccb7490a9c', class: imageClasses }, hAsync("div", { key: '77e161fd2deb2c6ec3e30ad0ef34f934ba9197d1', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: 'e9f0f4982bddba64ee979490024af471f4e9d8f8', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
4044
4051
|
}
|
|
4045
4052
|
get el() { return getElement(this); }
|
|
4046
4053
|
static get cmpMeta() { return {
|
|
@@ -4100,7 +4107,7 @@ class EdsCardSection {
|
|
|
4100
4107
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
4101
4108
|
*/
|
|
4102
4109
|
render() {
|
|
4103
|
-
return (hAsync("section", { key: '
|
|
4110
|
+
return (hAsync("section", { key: '4b30b9eb2585350196efa901f5b36d903e43af4d', class: "w-full" }, hAsync("ul", { key: 'ab51c67c0f4095e70be1b1c2fdf9975726b50760', class: "grid-layout grid-cols-4 gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (hAsync("li", { class: `grid-col-span-4 md:grid-col-span-${this.occupyCols} flex flex-col` }, hAsync("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
|
|
4104
4111
|
}
|
|
4105
4112
|
static get style() { return EdsCardSectionStyle0; }
|
|
4106
4113
|
static get cmpMeta() { return {
|
|
@@ -4129,7 +4136,7 @@ class EdsCardTags {
|
|
|
4129
4136
|
this.tags = [];
|
|
4130
4137
|
}
|
|
4131
4138
|
render() {
|
|
4132
|
-
return (hAsync("div", { key: '
|
|
4139
|
+
return (hAsync("div", { key: 'a0184d0900e08d0ae48dd4d2164c9d7ca0ef8db1', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4133
4140
|
}
|
|
4134
4141
|
static get style() { return EdsCardTagsStyle0; }
|
|
4135
4142
|
static get cmpMeta() { return {
|
|
@@ -4193,7 +4200,7 @@ class EdsCardTitle {
|
|
|
4193
4200
|
render() {
|
|
4194
4201
|
//const Tag = this.getTag();
|
|
4195
4202
|
const Heading = this.headingLevel;
|
|
4196
|
-
return (hAsync(Heading, { key: '
|
|
4203
|
+
return (hAsync(Heading, { key: '5d356d301cfee459ac142895a042e9b1ccd59367', class: this.getTitleClass() }, hAsync("a", { key: '348fffdd2abccf3b08ecab9481718b4a2aa50807', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4197
4204
|
}
|
|
4198
4205
|
static get style() { return EdsCardTitleStyle0; }
|
|
4199
4206
|
static get cmpMeta() { return {
|
|
@@ -4281,7 +4288,7 @@ class EdsCardTool {
|
|
|
4281
4288
|
});
|
|
4282
4289
|
}
|
|
4283
4290
|
render() {
|
|
4284
|
-
return (hAsync("article", { key: '
|
|
4291
|
+
return (hAsync("article", { key: 'bde34da77105309a05bf36cc1cf24888e62dc826', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '521f11ef8f9f13cdc35b27e45e20d0bec81cc3f8', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '615ccb630818a49e278f1308aa95caec3a02e3fe', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '40cfa7d940136d4bce5de0c2b37fca91187110f8', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4285
4292
|
}
|
|
4286
4293
|
get el() { return getElement(this); }
|
|
4287
4294
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6793,7 +6800,7 @@ class EdsCodeBlock {
|
|
|
6793
6800
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6794
6801
|
}
|
|
6795
6802
|
render() {
|
|
6796
|
-
return (hAsync("div", { key: '
|
|
6803
|
+
return (hAsync("div", { key: 'bc74b6be37bcb24700d17b48b5398077e485abd7', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: 'db0395bfd55eb3394ab2149c5c436f2a54e8afb0', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '628ad41f15f3a38abe4b7c382074c8f5a8679a8c', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '1c95d57a5d8113d6ab7ebf7da713e058c7cc10f1', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: 'a64b2450b631835b6fc2c15047b09ceea5a9fc95', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '51945cbee1504625b54362505b60f1bd1784bdda', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '55961aa8278177451e13c929ec7f7065afcac93b', innerHTML: this.getHighlightedCode() })))));
|
|
6797
6804
|
}
|
|
6798
6805
|
get el() { return getElement(this); }
|
|
6799
6806
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6841,7 +6848,7 @@ class EdsCookiesPreference {
|
|
|
6841
6848
|
}
|
|
6842
6849
|
}
|
|
6843
6850
|
render() {
|
|
6844
|
-
return (hAsync("div", { key: '
|
|
6851
|
+
return (hAsync("div", { key: 'c1754394ac9c249ef4c5959ed0b6a74d8ec365ab' }, hAsync("eds-link", { key: '4bb5d796d14dc242024df4681dea493d4511a8b6', size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && hAsync("eds-matomo-notice", { "force-show": true, key: this.noticeKey })));
|
|
6845
6852
|
}
|
|
6846
6853
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6847
6854
|
static get cmpMeta() { return {
|
|
@@ -7030,14 +7037,14 @@ class EdsDropdown {
|
|
|
7030
7037
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
7031
7038
|
*/
|
|
7032
7039
|
render() {
|
|
7033
|
-
return (hAsync("div", { key: '
|
|
7040
|
+
return (hAsync("div", { key: 'ffc4915b2104e3d2dd347900acd897f56910a674', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: 'ba48bdd7b75fd230bdc2dd564bd477f0349f5426', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: 'a29b57598a2ed8fcc9593c928df9443fd4449481', ref: (el) => (this.panelEl = el), role: "menu", class: {
|
|
7034
7041
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
7035
7042
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
7036
7043
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
7037
7044
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
7038
7045
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
7039
7046
|
'rounded-lg': this.rounded
|
|
7040
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
7047
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'ddf003345ef5181b968b4bfd8962805d09d15e89' }))));
|
|
7041
7048
|
}
|
|
7042
7049
|
get host() { return getElement(this); }
|
|
7043
7050
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7122,7 +7129,7 @@ class EdsFeedback {
|
|
|
7122
7129
|
const HeadingTag = this.headingLevel;
|
|
7123
7130
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7124
7131
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7125
|
-
return (hAsync("div", { key: '
|
|
7132
|
+
return (hAsync("div", { key: '5405127cfc114d4906617955d7b1069a04ed7b8e', class: "grid inline" }, hAsync(HeadingTag, { key: 'c0a2593d843577323b6a27d0f8fdca3b84063bd5', class: headingClass }, this.label), hAsync("p", { key: '5b7ef9fbd8c5b4a9d3c7c39e3092244d08dde126', class: "f-body-01 text-light" }, this.description), hAsync("eds-rating", { key: '2de1ad00dd21d987bc4a91438500a58a0bcd63a7', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '3de038a0ae8ee334edde65194356f021e14e7cb3', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
7126
7133
|
}
|
|
7127
7134
|
get el() { return getElement(this); }
|
|
7128
7135
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7208,9 +7215,11 @@ class EdsFooter {
|
|
|
7208
7215
|
* legal links such as "Cookies Preferences" and copyright information.
|
|
7209
7216
|
*/
|
|
7210
7217
|
render() {
|
|
7211
|
-
|
|
7218
|
+
const year = new Date().getFullYear();
|
|
7219
|
+
const rights = this.rightsReserved || `${year} EBRAINS. All rights reserved.`;
|
|
7220
|
+
return (hAsync("footer", { key: 'bf9d98eea0bd151bf87818b770e85fe0cfa1044f' }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, hAsync("div", { class: "container pb-20" }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })))))) : null, hAsync("div", { key: 'c0058cd32e2904e4e08ec46b99a0cbbabb5df588', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: '4f2993ccded30ca66da34eca632b62abf02e06d5', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '81efd584b5de410522d338bb6ab4b53096a36868', class: "flex items-center gap-x-12" }, hAsync("a", { key: '5a641163b3cb1549ee886e9029b65a012b31cd85', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, hAsync("eds-img", { key: '6428f6d0b70f802a7eaa81fcce7641f754c0071a', width: 63, height: 50, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), hAsync("div", { key: 'c3612f7c694abd66831a6c04f2d9f98bc9f8a2dd' }, hAsync("div", { key: '7d16c929479ee8db9d981d6178f17fd832184e29', class: "f-ui-02 text-light" }, hAsync("p", { key: '86c6e3eec115a886a37618963e973004f130950e' }, this.fundedBy), hAsync("div", { key: '13e4e3925ea8f76865684cba29c91653bba0c45d', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, hAsync("span", { key: '21c77485fffbe352edb8501dab07fd6628de62ba', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "\u00A9 ", rights), this.enableCookiesSettings ? (hAsync("eds-link", { label: this.cookiesPreferences, intent: "underline", size: "small", onClick: () => {
|
|
7212
7221
|
this.toggleCookiesConsent();
|
|
7213
|
-
} })) : null))), hAsync("div", { key: '
|
|
7222
|
+
} })) : null))), hAsync("div", { key: '1c8417017493de5e446bfdeec248948d920c1a95', 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)))));
|
|
7214
7223
|
}
|
|
7215
7224
|
get el() { return getElement(this); }
|
|
7216
7225
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7523,17 +7532,41 @@ class EdsForm {
|
|
|
7523
7532
|
}
|
|
7524
7533
|
const actual = this.values[field.condition.field];
|
|
7525
7534
|
const expected = field.condition.value;
|
|
7526
|
-
// Handle
|
|
7527
|
-
|
|
7535
|
+
// Handle undefined/null/empty
|
|
7536
|
+
if (actual == null) {
|
|
7537
|
+
return expected == null || expected === '';
|
|
7538
|
+
}
|
|
7539
|
+
// Handle arrays (multi-select, checkboxes)
|
|
7540
|
+
if (Array.isArray(actual)) {
|
|
7541
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7542
|
+
}
|
|
7543
|
+
// Handle comma-separated strings (from checkboxes stored as "val1,val2")
|
|
7544
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7545
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7546
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7547
|
+
}
|
|
7548
|
+
// Standard comparison with normalization
|
|
7549
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7550
|
+
}
|
|
7551
|
+
normalizeValue(value) {
|
|
7552
|
+
if (value == null) {
|
|
7553
|
+
return '';
|
|
7554
|
+
}
|
|
7555
|
+
if (typeof value === 'boolean') {
|
|
7556
|
+
return value ? 'true' : 'false';
|
|
7557
|
+
}
|
|
7558
|
+
if (typeof value === 'number') {
|
|
7559
|
+
return String(value);
|
|
7560
|
+
}
|
|
7561
|
+
if (typeof value === 'string') {
|
|
7562
|
+
return value.trim().toLowerCase();
|
|
7563
|
+
}
|
|
7564
|
+
return String(value).trim().toLowerCase();
|
|
7528
7565
|
}
|
|
7529
7566
|
validateForm() {
|
|
7530
|
-
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field,
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
}
|
|
7534
|
-
const parentValue = values[field.condition.field];
|
|
7535
|
-
return parentValue === field.condition.value;
|
|
7536
|
-
});
|
|
7567
|
+
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field, _values) =>
|
|
7568
|
+
// Use a temporary object with the condition to reuse isFieldVisible logic
|
|
7569
|
+
this.isFieldVisible(field));
|
|
7537
7570
|
this.errors = errors;
|
|
7538
7571
|
this.hasError = hasError;
|
|
7539
7572
|
}
|
|
@@ -7547,8 +7580,22 @@ class EdsForm {
|
|
|
7547
7580
|
if (!field.condition) {
|
|
7548
7581
|
return true;
|
|
7549
7582
|
}
|
|
7550
|
-
const
|
|
7551
|
-
|
|
7583
|
+
const actual = values[field.condition.field];
|
|
7584
|
+
const expected = field.condition.value;
|
|
7585
|
+
// Handle undefined/null/empty
|
|
7586
|
+
if (actual == null) {
|
|
7587
|
+
return expected == null || expected === '';
|
|
7588
|
+
}
|
|
7589
|
+
// Handle arrays
|
|
7590
|
+
if (Array.isArray(actual)) {
|
|
7591
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7592
|
+
}
|
|
7593
|
+
// Handle comma-separated strings
|
|
7594
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7595
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7596
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7597
|
+
}
|
|
7598
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7552
7599
|
}
|
|
7553
7600
|
});
|
|
7554
7601
|
this.values = updatedValues;
|
|
@@ -7615,8 +7662,9 @@ class EdsForm {
|
|
|
7615
7662
|
const hosts = Array.from(this.formEl.querySelectorAll('eds-input-field'));
|
|
7616
7663
|
hosts.forEach((host) => {
|
|
7617
7664
|
const root = host.shadowRoot;
|
|
7618
|
-
if (!root)
|
|
7665
|
+
if (!root) {
|
|
7619
7666
|
return;
|
|
7667
|
+
}
|
|
7620
7668
|
const fileInputs = Array.from(root.querySelectorAll('input[type="file"][name]'));
|
|
7621
7669
|
console.log(fileInputs);
|
|
7622
7670
|
fileInputs.forEach((fi) => {
|
|
@@ -7631,14 +7679,13 @@ class EdsForm {
|
|
|
7631
7679
|
// (Optional) mark that this payload includes files (handy in logs / policies)
|
|
7632
7680
|
// formData.set('_has_files', '1');
|
|
7633
7681
|
}
|
|
7634
|
-
formData.forEach((value, key) => {
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
});
|
|
7682
|
+
/*formData.forEach((value, key) => {
|
|
7683
|
+
if (value instanceof File) {
|
|
7684
|
+
console.log(`File field: ${key}, File name: ${value.name}, File size: ${value.size}`);
|
|
7685
|
+
} else {
|
|
7686
|
+
console.log(`Field: ${key}, Value: ${value}`);
|
|
7687
|
+
}
|
|
7688
|
+
});*/
|
|
7642
7689
|
return formData;
|
|
7643
7690
|
}
|
|
7644
7691
|
handleChange(e, field) {
|
|
@@ -7752,8 +7799,9 @@ class EdsForm {
|
|
|
7752
7799
|
handleSubmit(e) {
|
|
7753
7800
|
var _a, _b;
|
|
7754
7801
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
7755
|
-
if (this.isSubmitting)
|
|
7802
|
+
if (this.isSubmitting) {
|
|
7756
7803
|
return;
|
|
7804
|
+
}
|
|
7757
7805
|
this.isSubmitting = true;
|
|
7758
7806
|
this.validateForm();
|
|
7759
7807
|
if (this.hasError) {
|
|
@@ -7835,7 +7883,7 @@ class EdsForm {
|
|
|
7835
7883
|
else if (field.type === 'nps') {
|
|
7836
7884
|
return (hAsync("div", { class: "form-group nps-field", key: field.name }, hAsync("div", { class: "flex justify-between" }, field && (hAsync("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), hAsync("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), hAsync("div", { class: "mt-6" }, hAsync("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name] }))));
|
|
7837
7885
|
}
|
|
7838
|
-
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7886
|
+
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, link: field.link, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7839
7887
|
}
|
|
7840
7888
|
async getData() {
|
|
7841
7889
|
return this.makeFormData();
|
|
@@ -7848,9 +7896,9 @@ class EdsForm {
|
|
|
7848
7896
|
const styleClasses = this.formStyle === 'shadow'
|
|
7849
7897
|
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
7850
7898
|
: '';
|
|
7851
|
-
return (hAsync("form", { key: '
|
|
7899
|
+
return (hAsync("form", { key: 'a4b6cf51242567739fc3ff2da482c41edb4e4e57', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, hAsync("div", { key: '5f7e1d618f8a10a1cd6aa8d512c04064a484cd93', class: "flex flex-col gap-y-24" }, this.title && (hAsync("span", { key: '283d752d3e9f4ede0f50493ba9e5010376ebfb1f', role: "heading", class: "f-heading-04" }, this.title)), this.description && hAsync("span", { key: 'bd5866482b87bdc86a59594b884a9b81c676afdb', class: "f-body-02 text-light" }, this.description), hAsync("slot", { key: 'b2de746ccf8743fdef545a70ab111dfff0d7912f' })), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
7852
7900
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7853
|
-
.map((g) => (hAsync("div", { class: "mt-32", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '
|
|
7901
|
+
.map((g) => (hAsync("div", { class: "mt-32", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '917c5bd2e6048a91487f0a66bd0426e529295f9e', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (hAsync("div", { key: '96abbd19ea2869c21146f0b37da7ff6b89fbf66c', class: "mt-32" }, hAsync("eds-button", { key: '066348df32cf27fc6e56c94b9d5c455bc51b4adf', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
7854
7902
|
}
|
|
7855
7903
|
get el() { return getElement(this); }
|
|
7856
7904
|
static get watchers() { return {
|
|
@@ -7978,7 +8026,7 @@ class EdsFrame {
|
|
|
7978
8026
|
}
|
|
7979
8027
|
}
|
|
7980
8028
|
render() {
|
|
7981
|
-
return (hAsync("div", { key: '
|
|
8029
|
+
return (hAsync("div", { key: '5bcdb5bdd66a7530a82662ff9b6ef06d3a1eb1d3', class: this.articleClasses() }, hAsync("div", { key: '4c9e224f1a6421398cfef1fd89d113513727b6dd', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: '7704b4f1d1a3e8a728f0ad751891ecbfd118411a', 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: 'd4372713fc8984d14808171857d6efd40790dec2', 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 })))));
|
|
7982
8030
|
}
|
|
7983
8031
|
get el() { return getElement(this); }
|
|
7984
8032
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -8038,6 +8086,11 @@ class EdsFullscreenMenu {
|
|
|
8038
8086
|
handleToggleMenu(event) {
|
|
8039
8087
|
this.isMenuOpen = !!event.detail;
|
|
8040
8088
|
}
|
|
8089
|
+
onKeydown(e) {
|
|
8090
|
+
if (e.key === 'Escape' && this.isMenuOpen) {
|
|
8091
|
+
this.closeMenu();
|
|
8092
|
+
}
|
|
8093
|
+
}
|
|
8041
8094
|
/** Opens the menu */
|
|
8042
8095
|
openMenu() {
|
|
8043
8096
|
this.isMenuOpen = true;
|
|
@@ -8047,6 +8100,12 @@ class EdsFullscreenMenu {
|
|
|
8047
8100
|
this.isMenuOpen = false;
|
|
8048
8101
|
this.menuClose.emit();
|
|
8049
8102
|
}
|
|
8103
|
+
async open() {
|
|
8104
|
+
this.isMenuOpen = true;
|
|
8105
|
+
}
|
|
8106
|
+
async close() {
|
|
8107
|
+
this.closeMenu();
|
|
8108
|
+
}
|
|
8050
8109
|
// Lifecycle method to add the resize event listener when component loads
|
|
8051
8110
|
componentDidLoad() {
|
|
8052
8111
|
window.addEventListener('resize', this.handleResize.bind(this));
|
|
@@ -8080,7 +8139,7 @@ class EdsFullscreenMenu {
|
|
|
8080
8139
|
return parseData(this.menuLinks);
|
|
8081
8140
|
}
|
|
8082
8141
|
render() {
|
|
8083
|
-
return this.isMenuOpen ? (hAsync("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, hAsync("div", { class: "flex min-h-full flex-col" }, hAsync("div", { class: `w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, hAsync("div", { class: "mx-auto flex items-center justify-between" }, hAsync("div", { class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), hAsync("div", { class: "px-16" }, hAsync("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), hAsync("div", { class: "py-16 px-16" }, hAsync("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (hAsync("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" })))), hAsync("eds-block-break", null), hAsync("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (hAsync("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" })))), hAsync("nav", { class: "mt-28 flex flex-col gap-y-8" }, hAsync("slot", null))), hAsync("div", { class: "mt-auto" }, hAsync("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
8142
|
+
return this.isMenuOpen ? (hAsync("div", { role: "dialog", "aria-modal": "true", "aria-label": "Main menu", class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, hAsync("div", { class: "flex min-h-full flex-col" }, hAsync("div", { class: `w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, hAsync("div", { class: "mx-auto flex items-center justify-between" }, hAsync("div", { class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), hAsync("div", { class: "px-16" }, hAsync("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), hAsync("div", { class: "py-16 px-16" }, hAsync("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (hAsync("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" })))), hAsync("eds-block-break", null), hAsync("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (hAsync("eds-link", { label: link.label, key: index, url: link.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" })))), hAsync("nav", { class: "mt-28 flex flex-col gap-y-8" }, hAsync("slot", null))), hAsync("div", { class: "mt-auto" }, hAsync("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
8084
8143
|
}
|
|
8085
8144
|
static get style() { return EdsFullscreenMenuStyle0; }
|
|
8086
8145
|
static get cmpMeta() { return {
|
|
@@ -8091,9 +8150,11 @@ class EdsFullscreenMenu {
|
|
|
8091
8150
|
"menuLinks": [1, "menu-links"],
|
|
8092
8151
|
"homeUrl": [1, "home-url"],
|
|
8093
8152
|
"inverseHeader": [4, "inverse-header"],
|
|
8094
|
-
"isMenuOpen": [32]
|
|
8153
|
+
"isMenuOpen": [32],
|
|
8154
|
+
"open": [64],
|
|
8155
|
+
"close": [64]
|
|
8095
8156
|
},
|
|
8096
|
-
"$listeners$": [[16, "toggleheadermenu", "handleToggleMenu"]],
|
|
8157
|
+
"$listeners$": [[16, "toggleheadermenu", "handleToggleMenu"], [8, "keydown", "onKeydown"]],
|
|
8097
8158
|
"$lazyBundleId$": "-",
|
|
8098
8159
|
"$attrsToReflect$": []
|
|
8099
8160
|
}; }
|
|
@@ -8147,7 +8208,7 @@ class EdsGauge {
|
|
|
8147
8208
|
const textStyle = {
|
|
8148
8209
|
fontSize: `${fontSize}px`
|
|
8149
8210
|
};
|
|
8150
|
-
return (hAsync("div", { key: '
|
|
8211
|
+
return (hAsync("div", { key: '33388b250acd0aeaf3bf4888fd5ac72ba0337a42', role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": clamped, "aria-label": `Gauge value: ${clamped} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: containerStyle }, hAsync("div", { key: 'b920dd12644a5457b512b65e2c093ef53f339969', class: "absolute bg-inverse rounded-full", style: maskStyle }), hAsync("div", { key: '0149f680aad2c2b2cf4e308b1510d2fb3482a06f', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '31fee43895b99a2c19358acce9eee0965eef574a', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
8151
8212
|
}
|
|
8152
8213
|
static get style() { return EdsGaugeStyle0; }
|
|
8153
8214
|
static get cmpMeta() { return {
|
|
@@ -8192,9 +8253,8 @@ class EdsGlobalSearch {
|
|
|
8192
8253
|
category: 'shared-ui',
|
|
8193
8254
|
parentContext: null,
|
|
8194
8255
|
tag: this.el.tagName.toLowerCase(),
|
|
8195
|
-
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` ||
|
|
8196
|
-
|
|
8197
|
-
action: 'click',
|
|
8256
|
+
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` || 'unknow seach input query',
|
|
8257
|
+
action: 'click'
|
|
8198
8258
|
});
|
|
8199
8259
|
this.debounceTimer = window.setTimeout(() => {
|
|
8200
8260
|
this.runSearch();
|
|
@@ -8250,8 +8310,7 @@ class EdsGlobalSearch {
|
|
|
8250
8310
|
break;
|
|
8251
8311
|
case 'Enter':
|
|
8252
8312
|
event.preventDefault();
|
|
8253
|
-
if (this.selectedIndex >= 0 &&
|
|
8254
|
-
this.selectedIndex < this.results.length) {
|
|
8313
|
+
if (this.selectedIndex >= 0 && this.selectedIndex < this.results.length) {
|
|
8255
8314
|
this.selectResult(this.results[this.selectedIndex]);
|
|
8256
8315
|
}
|
|
8257
8316
|
break;
|
|
@@ -8285,7 +8344,7 @@ class EdsGlobalSearch {
|
|
|
8285
8344
|
this.selectedIndex = -1;
|
|
8286
8345
|
}
|
|
8287
8346
|
catch (err) {
|
|
8288
|
-
console.error('Search error:', err);
|
|
8347
|
+
//console.error('Search error:', err);
|
|
8289
8348
|
this.error = 'Search failed. Please try again.';
|
|
8290
8349
|
this.results = [];
|
|
8291
8350
|
this.showDropdown = true;
|
|
@@ -8302,7 +8361,7 @@ class EdsGlobalSearch {
|
|
|
8302
8361
|
parentContext: null,
|
|
8303
8362
|
tag: this.el.tagName.toLowerCase(),
|
|
8304
8363
|
name: `search-select: ${result.url}` || 'unknow search result selection',
|
|
8305
|
-
action: 'click'
|
|
8364
|
+
action: 'click'
|
|
8306
8365
|
});
|
|
8307
8366
|
window.open(result.url, '_blank', 'noopener,noreferrer');
|
|
8308
8367
|
}
|
|
@@ -8323,13 +8382,13 @@ class EdsGlobalSearch {
|
|
|
8323
8382
|
return this.results.length > 0;
|
|
8324
8383
|
}
|
|
8325
8384
|
get showEmpty() {
|
|
8326
|
-
return
|
|
8385
|
+
return this.hasSearched && !this.loading && !this.hasResults && this.query.trim();
|
|
8327
8386
|
}
|
|
8328
8387
|
render() {
|
|
8329
|
-
return (hAsync("div", { key: '
|
|
8388
|
+
return (hAsync("div", { key: 'be8f46caa1d12a034401686c9860b87032652322', class: "search-wrapper" }, hAsync("eds-input-field", { key: 'c31ac27a5e9f97729da8f7168e22ad09205ffce0', icon: "search", "input-id": "search-global", type: "text", name: "search-box-global", placeholder: this.placeholder, value: this.query, onInput: this.handleInput }), this.showDropdown && (hAsync("div", { key: '57b87393636913be24856bedc805e180171f084e', class: "search-dropdown", ref: (el) => (this.dropdownRef = el) }, this.loading && (hAsync("div", { key: '3ddb78e5a734d69b581e64ee825d12574f98574d', class: "flex text-center justify-center p-64" }, hAsync("eds-spinner", { key: '178c99535ce61b320fd70ab1f3aeb8408c868fe3', variant: "primary", size: "sm" }))), this.error && !this.loading && (hAsync("div", { key: '87feb37ffec93fa12185cd1fffb5c4f8ac54cd55', class: "flex text-center justify-center p-16" }, hAsync("span", { key: '07544fe95721c9e0898364f3bdcfc0b1ca79a48d', class: "text-error f-body-02" }, this.error))), this.showEmpty && (hAsync("div", { key: '6595178cb14ce5e21cdb15f96e039975a8af0c67', class: "dropdown-state" }, hAsync("eds-icon-wrapper", { key: 'f5b614218bb6ef642c3d1f4c7d41f56f28319a9d', icon: "search" }), hAsync("div", { key: '857671d7783d8fe854e6b3203a3755d24f337e5d' }, hAsync("p", { key: '89bae3bfb4efa63e777121088a59d873652de4e9', class: "f-body-02" }, "No results found"), hAsync("p", { key: '1a951b1a6f0daf7506e6e7892a211f92d95b94d4', class: "f-ui-04 text-lightest" }, "Try different keywords")))), this.hasResults && !this.loading && (hAsync("ul", { key: '1c1711dc4332d70cefe965dcfeeabc3c6745ce4d', class: "dropdown-results" }, this.results.map((result, index) => (hAsync("li", { key: result.id, "data-index": index, class: {
|
|
8330
8389
|
'result-item': true,
|
|
8331
|
-
'result-item--selected': index === this.selectedIndex
|
|
8332
|
-
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, hAsync("div", { class: "result-header" }, hAsync("span", { class: "f-body-02" }, result.title)), hAsync("div", { class: "inline" }, hAsync("eds-tag", { intent: "accent", label: result.source }), result.section &&
|
|
8390
|
+
'result-item--selected': index === this.selectedIndex
|
|
8391
|
+
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, hAsync("div", { class: "result-header" }, hAsync("span", { class: "f-body-02" }, result.title)), hAsync("div", { class: "inline" }, hAsync("eds-tag", { intent: "accent", label: result.source }), result.section && hAsync("span", { class: "result-badge" }, result.section), hAsync("span", { class: "f-ui-03-light text-lighter ml-8" }, result.url)), result.snippet && hAsync("p", { class: "result-snippet" }, this.stripHtml(result.snippet))))))), this.hasResults && !this.loading && (hAsync("div", { key: '26e172b579f71b7096481994c0a4af80d3e416d3', class: "dropdown-footer" }, hAsync("span", { key: '57a6432125472aaed3b7b46c106aeec0d0a5ee50', class: "footer-hint" }, hAsync("kbd", { key: 'c8ca5d4b1a2e8f59665290ab78499f8db431a2e9' }, "\u2191"), " ", hAsync("kbd", { key: '89a6520e51bed33cfc37b892480af44e5b77a9c3' }, "\u2193"), " navigate \u2022 ", hAsync("kbd", { key: '4173b9ec77d52d4570e016c3366e27fef225ccb0' }, "\u21B5"), " select \u2022 ", hAsync("kbd", { key: '7f118c184acf52edd545e1f97b4ca991eaa1aa1f' }, "esc"), " close")))))));
|
|
8333
8392
|
}
|
|
8334
8393
|
get el() { return getElement(this); }
|
|
8335
8394
|
static get style() { return EdsGlobalSearchStyle0; }
|
|
@@ -8355,7 +8414,7 @@ class EdsGlobalSearch {
|
|
|
8355
8414
|
}; }
|
|
8356
8415
|
}
|
|
8357
8416
|
|
|
8358
|
-
const edsHeaderCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}";
|
|
8417
|
+
const edsHeaderCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}";
|
|
8359
8418
|
var EdsHeaderStyle0 = edsHeaderCss;
|
|
8360
8419
|
|
|
8361
8420
|
/**
|
|
@@ -8381,14 +8440,10 @@ class EdsHeader {
|
|
|
8381
8440
|
this.menuEnabled = false;
|
|
8382
8441
|
this.isMenuOpen = false;
|
|
8383
8442
|
this.isUserMenuOpen = false;
|
|
8384
|
-
this.isAuthenticated = false;
|
|
8385
|
-
}
|
|
8386
|
-
onAuthStatusChanged(event) {
|
|
8387
|
-
var _a;
|
|
8388
|
-
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
8389
8443
|
}
|
|
8390
8444
|
componentDidLoad() {
|
|
8391
|
-
|
|
8445
|
+
var _a, _b;
|
|
8446
|
+
const links = (_b = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link')) !== null && _b !== void 0 ? _b : [];
|
|
8392
8447
|
links.forEach((link) => this.emitContext(link));
|
|
8393
8448
|
}
|
|
8394
8449
|
emitContext(linkElement) {
|
|
@@ -8416,7 +8471,7 @@ class EdsHeader {
|
|
|
8416
8471
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8417
8472
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8418
8473
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8419
|
-
return (hAsync("header", { key: '
|
|
8474
|
+
return (hAsync("header", { key: 'cf272ed6242b2effa3027081d72b58025c49d055', role: "banner", class: `flex items-center justify-between relative z-10 ${classes}` }, hAsync("div", { key: '16f81e55c3aa28beabfead914488ce1fd70b408d', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: '0961fb91dff26c457833b67ef963d60a9902a916', type: logoType, href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: 'a034d1bfc21da2245b3c91a2f91f092476d67f97', role: "navigation", "aria-label": "Primary", class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: '06ebd9012b829a30f7cdc27f417116a21d2bfc2f', class: "flex gap-x-16" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "strong", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: '68c34af928ee215329d354ca1a5ef7850d1112cf', name: "actions" }), this.menuEnabled && (hAsync("div", { key: 'cb4cd94fbf5ebbd770631066f2f69f8ac50a3f5f', class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { key: '8f2aa4d59705e9410a0fa8b10c9f348fcfe73db3', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
8420
8475
|
}
|
|
8421
8476
|
get hostEl() { return getElement(this); }
|
|
8422
8477
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -8429,10 +8484,9 @@ class EdsHeader {
|
|
|
8429
8484
|
"headerVariant": [513, "header-variant"],
|
|
8430
8485
|
"menuEnabled": [4, "menu-enabled"],
|
|
8431
8486
|
"isMenuOpen": [32],
|
|
8432
|
-
"isUserMenuOpen": [32]
|
|
8433
|
-
"isAuthenticated": [32]
|
|
8487
|
+
"isUserMenuOpen": [32]
|
|
8434
8488
|
},
|
|
8435
|
-
"$listeners$":
|
|
8489
|
+
"$listeners$": undefined,
|
|
8436
8490
|
"$lazyBundleId$": "-",
|
|
8437
8491
|
"$attrsToReflect$": [["homeUrl", "home-url"], ["headerVariant", "header-variant"]]
|
|
8438
8492
|
}; }
|
|
@@ -10334,7 +10388,7 @@ var tutorial = ` <svg
|
|
|
10334
10388
|
/>
|
|
10335
10389
|
</svg>`;
|
|
10336
10390
|
|
|
10337
|
-
var
|
|
10391
|
+
var upDown = ` <svg
|
|
10338
10392
|
width="20"
|
|
10339
10393
|
height="20"
|
|
10340
10394
|
viewBox="0 0 20 20"
|
|
@@ -10407,7 +10461,7 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10407
10461
|
pub: pub,
|
|
10408
10462
|
portal: portal,
|
|
10409
10463
|
user: user,
|
|
10410
|
-
|
|
10464
|
+
upDown: upDown,
|
|
10411
10465
|
search: search,
|
|
10412
10466
|
success: success,
|
|
10413
10467
|
tutorial: tutorial,
|
|
@@ -10434,7 +10488,7 @@ class EdsIconArrowDiagonal {
|
|
|
10434
10488
|
this.class = '';
|
|
10435
10489
|
}
|
|
10436
10490
|
render() {
|
|
10437
|
-
return hAsync("span", { key: '
|
|
10491
|
+
return hAsync("span", { key: '29883d8b41d72d84f22e6babbfdac666ba57f5ca', class: this.class, innerHTML: arrowDiagonal });
|
|
10438
10492
|
}
|
|
10439
10493
|
static get cmpMeta() { return {
|
|
10440
10494
|
"$flags$": 0,
|
|
@@ -10457,7 +10511,7 @@ class EdsIconArrowRight {
|
|
|
10457
10511
|
this.class = '';
|
|
10458
10512
|
}
|
|
10459
10513
|
render() {
|
|
10460
|
-
return hAsync("span", { key: '
|
|
10514
|
+
return hAsync("span", { key: '652d9843e8855eeb7bd9c364fe8600116eb54897', class: this.class, innerHTML: arrowRight });
|
|
10461
10515
|
}
|
|
10462
10516
|
static get cmpMeta() { return {
|
|
10463
10517
|
"$flags$": 0,
|
|
@@ -10480,7 +10534,7 @@ class EdsIconBin {
|
|
|
10480
10534
|
this.class = '';
|
|
10481
10535
|
}
|
|
10482
10536
|
render() {
|
|
10483
|
-
return hAsync("span", { key: '
|
|
10537
|
+
return hAsync("span", { key: '7ba82b3f303e9d0dc30afef19154637af1d20811', class: this.class, innerHTML: bin });
|
|
10484
10538
|
}
|
|
10485
10539
|
static get cmpMeta() { return {
|
|
10486
10540
|
"$flags$": 0,
|
|
@@ -10503,7 +10557,7 @@ class EdsIconBluesky {
|
|
|
10503
10557
|
this.class = '';
|
|
10504
10558
|
}
|
|
10505
10559
|
render() {
|
|
10506
|
-
return hAsync("span", { key: '
|
|
10560
|
+
return hAsync("span", { key: '686dbb5f0c3c5f156940c83380c16c169f016219', class: this.class, innerHTML: bluesky });
|
|
10507
10561
|
}
|
|
10508
10562
|
static get cmpMeta() { return {
|
|
10509
10563
|
"$flags$": 0,
|
|
@@ -10526,7 +10580,7 @@ class EdsIconBookmark {
|
|
|
10526
10580
|
this.class = '';
|
|
10527
10581
|
}
|
|
10528
10582
|
render() {
|
|
10529
|
-
return hAsync("span", { key: '
|
|
10583
|
+
return hAsync("span", { key: '66bd28a12ce759d916099635f81aff9b8a66c774', class: this.class, innerHTML: bookmark });
|
|
10530
10584
|
}
|
|
10531
10585
|
static get cmpMeta() { return {
|
|
10532
10586
|
"$flags$": 0,
|
|
@@ -10549,7 +10603,7 @@ class EdsIconChevronDown {
|
|
|
10549
10603
|
this.class = '';
|
|
10550
10604
|
}
|
|
10551
10605
|
render() {
|
|
10552
|
-
return hAsync("span", { key: '
|
|
10606
|
+
return hAsync("span", { key: '7efcb724d1d4c35985dc5f858c23c43aaaad1319', class: this.class, innerHTML: chevronDown });
|
|
10553
10607
|
}
|
|
10554
10608
|
static get cmpMeta() { return {
|
|
10555
10609
|
"$flags$": 0,
|
|
@@ -10572,7 +10626,7 @@ class EdsIconChevronLeft {
|
|
|
10572
10626
|
this.class = '';
|
|
10573
10627
|
}
|
|
10574
10628
|
render() {
|
|
10575
|
-
return hAsync("span", { key: '
|
|
10629
|
+
return hAsync("span", { key: '6ee35c634c737769fa20bcfb631aa4e32ee6e9da', class: this.class, innerHTML: chevronLeft });
|
|
10576
10630
|
}
|
|
10577
10631
|
static get cmpMeta() { return {
|
|
10578
10632
|
"$flags$": 0,
|
|
@@ -10595,7 +10649,7 @@ class EdsIconChevronRight {
|
|
|
10595
10649
|
this.class = '';
|
|
10596
10650
|
}
|
|
10597
10651
|
render() {
|
|
10598
|
-
return hAsync("span", { key: '
|
|
10652
|
+
return hAsync("span", { key: '60ca9c3f312d711df76743901b5373ee573b99d7', class: this.class, innerHTML: chevronRight });
|
|
10599
10653
|
}
|
|
10600
10654
|
static get cmpMeta() { return {
|
|
10601
10655
|
"$flags$": 0,
|
|
@@ -10618,7 +10672,7 @@ class EdsIconChevronUp {
|
|
|
10618
10672
|
this.class = '';
|
|
10619
10673
|
}
|
|
10620
10674
|
render() {
|
|
10621
|
-
return hAsync("span", { key: '
|
|
10675
|
+
return hAsync("span", { key: '61506941edc3f2da20a848d8f435241027ee131a', class: this.class, innerHTML: chevronUp });
|
|
10622
10676
|
}
|
|
10623
10677
|
static get cmpMeta() { return {
|
|
10624
10678
|
"$flags$": 0,
|
|
@@ -10641,7 +10695,7 @@ class EdsIconClone {
|
|
|
10641
10695
|
this.class = '';
|
|
10642
10696
|
}
|
|
10643
10697
|
render() {
|
|
10644
|
-
return hAsync("span", { key: '
|
|
10698
|
+
return hAsync("span", { key: '25b5552f8f0952bde3058c85d2ef61bb69102c24', class: this.class, innerHTML: clone });
|
|
10645
10699
|
}
|
|
10646
10700
|
static get cmpMeta() { return {
|
|
10647
10701
|
"$flags$": 0,
|
|
@@ -10664,7 +10718,7 @@ class EdsIconClose {
|
|
|
10664
10718
|
this.class = '';
|
|
10665
10719
|
}
|
|
10666
10720
|
render() {
|
|
10667
|
-
return hAsync("span", { key: '
|
|
10721
|
+
return hAsync("span", { key: '50792b8ec547fba6fd0416e80cdaf706079f42b2', class: this.class, innerHTML: close });
|
|
10668
10722
|
}
|
|
10669
10723
|
static get cmpMeta() { return {
|
|
10670
10724
|
"$flags$": 0,
|
|
@@ -10687,7 +10741,7 @@ class EdsIconCopy {
|
|
|
10687
10741
|
this.class = '';
|
|
10688
10742
|
}
|
|
10689
10743
|
render() {
|
|
10690
|
-
return hAsync("span", { key: '
|
|
10744
|
+
return hAsync("span", { key: 'f0f8d3264c9ea781865ffd2bc2e5ebd4b44435a3', class: this.class, innerHTML: copy });
|
|
10691
10745
|
}
|
|
10692
10746
|
static get cmpMeta() { return {
|
|
10693
10747
|
"$flags$": 0,
|
|
@@ -10710,7 +10764,7 @@ class EdsIconDownload {
|
|
|
10710
10764
|
this.class = '';
|
|
10711
10765
|
}
|
|
10712
10766
|
render() {
|
|
10713
|
-
return hAsync("span", { key: '
|
|
10767
|
+
return hAsync("span", { key: '17b9c232930d8efec279f777ced4a7e95cc559bd', class: this.class, innerHTML: download });
|
|
10714
10768
|
}
|
|
10715
10769
|
static get cmpMeta() { return {
|
|
10716
10770
|
"$flags$": 0,
|
|
@@ -10733,7 +10787,7 @@ class EdsIconDraft {
|
|
|
10733
10787
|
this.class = '';
|
|
10734
10788
|
}
|
|
10735
10789
|
render() {
|
|
10736
|
-
return hAsync("span", { key: '
|
|
10790
|
+
return hAsync("span", { key: '9a0acb29472fee4627c23cd528a601d80fb065d9', class: this.class, innerHTML: draft });
|
|
10737
10791
|
}
|
|
10738
10792
|
static get cmpMeta() { return {
|
|
10739
10793
|
"$flags$": 0,
|
|
@@ -10756,7 +10810,7 @@ class EdsIconEdit {
|
|
|
10756
10810
|
this.class = '';
|
|
10757
10811
|
}
|
|
10758
10812
|
render() {
|
|
10759
|
-
return hAsync("span", { key: '
|
|
10813
|
+
return hAsync("span", { key: '603d3cb68e01aadbcb05d232773490b93593a4e7', class: this.class, innerHTML: edit });
|
|
10760
10814
|
}
|
|
10761
10815
|
static get cmpMeta() { return {
|
|
10762
10816
|
"$flags$": 0,
|
|
@@ -10779,7 +10833,7 @@ class EdsIconEu {
|
|
|
10779
10833
|
this.class = '';
|
|
10780
10834
|
}
|
|
10781
10835
|
render() {
|
|
10782
|
-
return hAsync("span", { key: '
|
|
10836
|
+
return hAsync("span", { key: '400a5811c1d31a1c8d490e9614d89fe861cb4dd6', class: this.class, innerHTML: euSvg });
|
|
10783
10837
|
}
|
|
10784
10838
|
static get cmpMeta() { return {
|
|
10785
10839
|
"$flags$": 0,
|
|
@@ -10802,7 +10856,7 @@ class EdsIconExternal {
|
|
|
10802
10856
|
this.class = '';
|
|
10803
10857
|
}
|
|
10804
10858
|
render() {
|
|
10805
|
-
return hAsync("span", { key: '
|
|
10859
|
+
return hAsync("span", { key: 'dc82ae5d96587a46362008670e4096d8f3ed8941', class: this.class, innerHTML: arrowDiagonal });
|
|
10806
10860
|
}
|
|
10807
10861
|
static get cmpMeta() { return {
|
|
10808
10862
|
"$flags$": 0,
|
|
@@ -10825,7 +10879,7 @@ class EdsIconFacebook {
|
|
|
10825
10879
|
this.class = '';
|
|
10826
10880
|
}
|
|
10827
10881
|
render() {
|
|
10828
|
-
return hAsync("span", { key: '
|
|
10882
|
+
return hAsync("span", { key: '97ff8677a8252ec4cce47f9f857185945aca7cc8', class: this.class, innerHTML: facebook });
|
|
10829
10883
|
}
|
|
10830
10884
|
static get cmpMeta() { return {
|
|
10831
10885
|
"$flags$": 0,
|
|
@@ -10848,7 +10902,7 @@ class EdsIconGitlab {
|
|
|
10848
10902
|
this.class = '';
|
|
10849
10903
|
}
|
|
10850
10904
|
render() {
|
|
10851
|
-
return hAsync("span", { key: '
|
|
10905
|
+
return hAsync("span", { key: 'ef1ed1fd0fc7bcc7b0904589699656943af3f77e', class: this.class, innerHTML: gitlabBlack });
|
|
10852
10906
|
}
|
|
10853
10907
|
static get cmpMeta() { return {
|
|
10854
10908
|
"$flags$": 0,
|
|
@@ -10871,7 +10925,7 @@ class EdsIconLinkedin {
|
|
|
10871
10925
|
this.class = '';
|
|
10872
10926
|
}
|
|
10873
10927
|
render() {
|
|
10874
|
-
return hAsync("span", { key: '
|
|
10928
|
+
return hAsync("span", { key: 'bfed785cb748dc93f95bb317750b5e82dc6c1dcc', class: this.class, innerHTML: linkedin });
|
|
10875
10929
|
}
|
|
10876
10930
|
static get cmpMeta() { return {
|
|
10877
10931
|
"$flags$": 0,
|
|
@@ -10894,7 +10948,7 @@ class EdsIconLoader {
|
|
|
10894
10948
|
this.class = '';
|
|
10895
10949
|
}
|
|
10896
10950
|
render() {
|
|
10897
|
-
return hAsync("span", { key: '
|
|
10951
|
+
return hAsync("span", { key: '59a8089a2505c0e1e8087f7bd078533a1059cd3a', class: this.class, innerHTML: loader });
|
|
10898
10952
|
}
|
|
10899
10953
|
static get cmpMeta() { return {
|
|
10900
10954
|
"$flags$": 0,
|
|
@@ -10917,7 +10971,7 @@ class EdsIconMastodon {
|
|
|
10917
10971
|
this.class = '';
|
|
10918
10972
|
}
|
|
10919
10973
|
render() {
|
|
10920
|
-
return hAsync("span", { key: '
|
|
10974
|
+
return hAsync("span", { key: '5be4622aebcbe17b4b40c31fd4b9dc92a102b85e', class: this.class, innerHTML: mastodon });
|
|
10921
10975
|
}
|
|
10922
10976
|
static get cmpMeta() { return {
|
|
10923
10977
|
"$flags$": 0,
|
|
@@ -10940,7 +10994,7 @@ class EdsIconMenu {
|
|
|
10940
10994
|
this.class = '';
|
|
10941
10995
|
}
|
|
10942
10996
|
render() {
|
|
10943
|
-
return hAsync("span", { key: '
|
|
10997
|
+
return hAsync("span", { key: 'd0edf1b3b59b2455e4f0af36bb637cf3fdea2202', class: this.class, innerHTML: menu });
|
|
10944
10998
|
}
|
|
10945
10999
|
static get cmpMeta() { return {
|
|
10946
11000
|
"$flags$": 0,
|
|
@@ -10963,7 +11017,7 @@ class EdsIconMinus {
|
|
|
10963
11017
|
this.class = '';
|
|
10964
11018
|
}
|
|
10965
11019
|
render() {
|
|
10966
|
-
return hAsync("span", { key: '
|
|
11020
|
+
return hAsync("span", { key: '15a4b124b598595958bfbaf7be0b9a9795cfb105', class: this.class, innerHTML: minus });
|
|
10967
11021
|
}
|
|
10968
11022
|
static get cmpMeta() { return {
|
|
10969
11023
|
"$flags$": 0,
|
|
@@ -10986,7 +11040,7 @@ class EdsIconMore {
|
|
|
10986
11040
|
this.class = '';
|
|
10987
11041
|
}
|
|
10988
11042
|
render() {
|
|
10989
|
-
return hAsync("span", { key: '
|
|
11043
|
+
return hAsync("span", { key: 'd832774f24d7e335026e35b3b9198f000389a084', class: this.class, innerHTML: more });
|
|
10990
11044
|
}
|
|
10991
11045
|
static get cmpMeta() { return {
|
|
10992
11046
|
"$flags$": 0,
|
|
@@ -11009,7 +11063,7 @@ class EdsIconPaper {
|
|
|
11009
11063
|
this.class = '';
|
|
11010
11064
|
}
|
|
11011
11065
|
render() {
|
|
11012
|
-
return hAsync("span", { key: '
|
|
11066
|
+
return hAsync("span", { key: '4e9525934775adfffff9c709ee69c0a5ebf03565', class: this.class, innerHTML: paper });
|
|
11013
11067
|
}
|
|
11014
11068
|
static get cmpMeta() { return {
|
|
11015
11069
|
"$flags$": 0,
|
|
@@ -11032,7 +11086,7 @@ class EdsIconPlus {
|
|
|
11032
11086
|
this.class = '';
|
|
11033
11087
|
}
|
|
11034
11088
|
render() {
|
|
11035
|
-
return hAsync("span", { key: '
|
|
11089
|
+
return hAsync("span", { key: '66caca52d82371c81a2c751a4becbbe4a4b24df2', class: this.class, innerHTML: plus });
|
|
11036
11090
|
}
|
|
11037
11091
|
static get cmpMeta() { return {
|
|
11038
11092
|
"$flags$": 0,
|
|
@@ -11055,7 +11109,7 @@ class EdsIconPortal {
|
|
|
11055
11109
|
this.class = '';
|
|
11056
11110
|
}
|
|
11057
11111
|
render() {
|
|
11058
|
-
return hAsync("span", { key: '
|
|
11112
|
+
return hAsync("span", { key: '8c4137eb4257ed474f2f6b9f4330504c0b3dd5b3', class: this.class, innerHTML: portal });
|
|
11059
11113
|
}
|
|
11060
11114
|
static get cmpMeta() { return {
|
|
11061
11115
|
"$flags$": 0,
|
|
@@ -11078,7 +11132,7 @@ class EdsIconPrivate {
|
|
|
11078
11132
|
this.class = '';
|
|
11079
11133
|
}
|
|
11080
11134
|
render() {
|
|
11081
|
-
return hAsync("span", { key: '
|
|
11135
|
+
return hAsync("span", { key: 'cd1790e118743455f95c1dcef5fef5b7eea8d4b7', class: this.class, innerHTML: privat });
|
|
11082
11136
|
}
|
|
11083
11137
|
static get cmpMeta() { return {
|
|
11084
11138
|
"$flags$": 0,
|
|
@@ -11101,7 +11155,7 @@ class EdsIconPublic {
|
|
|
11101
11155
|
this.class = '';
|
|
11102
11156
|
}
|
|
11103
11157
|
render() {
|
|
11104
|
-
return hAsync("span", { key: '
|
|
11158
|
+
return hAsync("span", { key: '992b0db1543110d0561199c44407129fcd1c0c2f', class: this.class, innerHTML: pub });
|
|
11105
11159
|
}
|
|
11106
11160
|
static get cmpMeta() { return {
|
|
11107
11161
|
"$flags$": 0,
|
|
@@ -11124,7 +11178,7 @@ class EdsIconSearch {
|
|
|
11124
11178
|
this.class = '';
|
|
11125
11179
|
}
|
|
11126
11180
|
render() {
|
|
11127
|
-
return hAsync("span", { key: '
|
|
11181
|
+
return hAsync("span", { key: '14f24d633305efb74dba50aafd31f31b5f2d8e48', class: this.class, innerHTML: search });
|
|
11128
11182
|
}
|
|
11129
11183
|
static get cmpMeta() { return {
|
|
11130
11184
|
"$flags$": 0,
|
|
@@ -11147,7 +11201,7 @@ class EdsIconStar {
|
|
|
11147
11201
|
this.class = '';
|
|
11148
11202
|
}
|
|
11149
11203
|
render() {
|
|
11150
|
-
return hAsync("span", { key: '
|
|
11204
|
+
return hAsync("span", { key: '5546e3debfb9ecf0efe34c31b987dc6ca1f2ba6b', class: this.class, innerHTML: star });
|
|
11151
11205
|
}
|
|
11152
11206
|
static get cmpMeta() { return {
|
|
11153
11207
|
"$flags$": 0,
|
|
@@ -11170,7 +11224,7 @@ class EdsIconStart {
|
|
|
11170
11224
|
this.class = '';
|
|
11171
11225
|
}
|
|
11172
11226
|
render() {
|
|
11173
|
-
return hAsync("span", { key: '
|
|
11227
|
+
return hAsync("span", { key: 'd17186a319ab9a5755330b641aa4620cb811c7ae', class: this.class, innerHTML: start });
|
|
11174
11228
|
}
|
|
11175
11229
|
static get cmpMeta() { return {
|
|
11176
11230
|
"$flags$": 0,
|
|
@@ -11193,7 +11247,7 @@ class EdsIconSuccess {
|
|
|
11193
11247
|
this.class = '';
|
|
11194
11248
|
}
|
|
11195
11249
|
render() {
|
|
11196
|
-
return hAsync("span", { key: '
|
|
11250
|
+
return hAsync("span", { key: 'd70032613d160c820ec95934b17a43c654fe4d26', class: this.class, innerHTML: success });
|
|
11197
11251
|
}
|
|
11198
11252
|
static get cmpMeta() { return {
|
|
11199
11253
|
"$flags$": 0,
|
|
@@ -11216,7 +11270,7 @@ class EdsIconThumbsDown {
|
|
|
11216
11270
|
this.class = '';
|
|
11217
11271
|
}
|
|
11218
11272
|
render() {
|
|
11219
|
-
return hAsync("span", { key: '
|
|
11273
|
+
return hAsync("span", { key: 'dbc457ba89db7b7b142be6736a8640ffff2d2cb3', class: this.class, innerHTML: thumbsDown });
|
|
11220
11274
|
}
|
|
11221
11275
|
static get cmpMeta() { return {
|
|
11222
11276
|
"$flags$": 0,
|
|
@@ -11239,7 +11293,7 @@ class EdsIconThumbsUp {
|
|
|
11239
11293
|
this.class = '';
|
|
11240
11294
|
}
|
|
11241
11295
|
render() {
|
|
11242
|
-
return hAsync("span", { key: '
|
|
11296
|
+
return hAsync("span", { key: '867c4f63cd5ceeeabc94ae444fe978df39066618', class: this.class, innerHTML: thumbsUp });
|
|
11243
11297
|
}
|
|
11244
11298
|
static get cmpMeta() { return {
|
|
11245
11299
|
"$flags$": 0,
|
|
@@ -11262,7 +11316,7 @@ class EdsIconTutorial {
|
|
|
11262
11316
|
this.class = '';
|
|
11263
11317
|
}
|
|
11264
11318
|
render() {
|
|
11265
|
-
return hAsync("span", { key: '
|
|
11319
|
+
return hAsync("span", { key: '06c66194f30295a5bd250edcba88aa4473c8ab1b', class: this.class, innerHTML: tutorial });
|
|
11266
11320
|
}
|
|
11267
11321
|
static get cmpMeta() { return {
|
|
11268
11322
|
"$flags$": 0,
|
|
@@ -11285,7 +11339,7 @@ class EdsIconTwitter {
|
|
|
11285
11339
|
this.class = '';
|
|
11286
11340
|
}
|
|
11287
11341
|
render() {
|
|
11288
|
-
return hAsync("span", { key: '
|
|
11342
|
+
return hAsync("span", { key: 'e149a8a26c99f8048a42ed42f143a5947b215ea5', class: this.class, innerHTML: twitter });
|
|
11289
11343
|
}
|
|
11290
11344
|
static get cmpMeta() { return {
|
|
11291
11345
|
"$flags$": 0,
|
|
@@ -11308,7 +11362,7 @@ class EdsIconUnknown {
|
|
|
11308
11362
|
this.class = '';
|
|
11309
11363
|
}
|
|
11310
11364
|
render() {
|
|
11311
|
-
return hAsync("span", { key: '
|
|
11365
|
+
return hAsync("span", { key: 'f07457a22c642dfe24b1073649bfbef3964cff7e', class: this.class, innerHTML: unknown });
|
|
11312
11366
|
}
|
|
11313
11367
|
static get cmpMeta() { return {
|
|
11314
11368
|
"$flags$": 0,
|
|
@@ -11331,7 +11385,7 @@ class EdsIconUpdown {
|
|
|
11331
11385
|
this.class = '';
|
|
11332
11386
|
}
|
|
11333
11387
|
render() {
|
|
11334
|
-
return hAsync("span", { key: '
|
|
11388
|
+
return hAsync("span", { key: 'f08301d06b129ce9cbd91cceedb64d9db2be6e83', class: this.class, innerHTML: upDown });
|
|
11335
11389
|
}
|
|
11336
11390
|
static get cmpMeta() { return {
|
|
11337
11391
|
"$flags$": 0,
|
|
@@ -11354,7 +11408,7 @@ class EdsIconUser {
|
|
|
11354
11408
|
this.class = '';
|
|
11355
11409
|
}
|
|
11356
11410
|
render() {
|
|
11357
|
-
return hAsync("span", { key: '
|
|
11411
|
+
return hAsync("span", { key: 'e515aa4524e19bdb254712054ebd6283f22c57c8', class: this.class, innerHTML: user });
|
|
11358
11412
|
}
|
|
11359
11413
|
static get cmpMeta() { return {
|
|
11360
11414
|
"$flags$": 0,
|
|
@@ -11377,7 +11431,7 @@ class EdsIconView {
|
|
|
11377
11431
|
this.class = '';
|
|
11378
11432
|
}
|
|
11379
11433
|
render() {
|
|
11380
|
-
return hAsync("span", { key: '
|
|
11434
|
+
return hAsync("span", { key: '18dbaa801845137982847a9cfc4a9ca1ff729b0d', class: this.class, innerHTML: view });
|
|
11381
11435
|
}
|
|
11382
11436
|
static get cmpMeta() { return {
|
|
11383
11437
|
"$flags$": 0,
|
|
@@ -11456,7 +11510,7 @@ class EdsIconYoutube {
|
|
|
11456
11510
|
this.class = '';
|
|
11457
11511
|
}
|
|
11458
11512
|
render() {
|
|
11459
|
-
return hAsync("span", { key: '
|
|
11513
|
+
return hAsync("span", { key: 'a2dd7d5f2d615999cd5e7970a96117ed90bdcda3', class: this.class, innerHTML: youtube });
|
|
11460
11514
|
}
|
|
11461
11515
|
static get cmpMeta() { return {
|
|
11462
11516
|
"$flags$": 0,
|
|
@@ -11532,10 +11586,10 @@ class EdsImg {
|
|
|
11532
11586
|
imgOpts['loading'] = 'lazy';
|
|
11533
11587
|
imgOpts['decoding'] = 'async';
|
|
11534
11588
|
}
|
|
11535
|
-
return (hAsync("div", { key: '
|
|
11589
|
+
return (hAsync("div", { key: '1ff909ca6fe3fe40ca5659cea033b404a45580fb', class: {
|
|
11536
11590
|
'items-center justify-center': true,
|
|
11537
11591
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11538
|
-
} }, hAsync("picture", { key: '
|
|
11592
|
+
} }, hAsync("picture", { key: '92c92a5aaebd84d96a7bf8c291542d6a8cf4d896' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: 'ac8eb664987b1205d5a96c723840ac3ccd779ac1', ref: (el) => (this.img = el), class: {
|
|
11539
11593
|
'effect-opacity object-cover object-center': true,
|
|
11540
11594
|
'opacity-100': this.loaded,
|
|
11541
11595
|
'opacity-0': !this.loaded
|
|
@@ -11617,7 +11671,7 @@ class EdsInput {
|
|
|
11617
11671
|
render() {
|
|
11618
11672
|
const withIcon = !!this.icon;
|
|
11619
11673
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11620
|
-
return (hAsync("div", { key: '
|
|
11674
|
+
return (hAsync("div", { key: '1800587d54da282566893c538d47aadf9f9bb390', 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'
|
|
11621
11675
|
? {
|
|
11622
11676
|
min: this.min,
|
|
11623
11677
|
max: this.max,
|
|
@@ -11628,7 +11682,7 @@ class EdsInput {
|
|
|
11628
11682
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11629
11683
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11630
11684
|
${this.error ? 'input-error' : ''}
|
|
11631
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '
|
|
11685
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: 'cc6cc50cdebea1d4eaecb78bc6ab2b4b92503893', 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: 'ff4b36e873438f7208eb660c77381f87f0805109', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
|
|
11632
11686
|
}
|
|
11633
11687
|
get el() { return getElement(this); }
|
|
11634
11688
|
static get watchers() { return {
|
|
@@ -11767,7 +11821,7 @@ class EdsInputField {
|
|
|
11767
11821
|
}
|
|
11768
11822
|
render() {
|
|
11769
11823
|
const inputOpts = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, (this.type === 'number' ? { min: this.min, max: this.max, step: this.step } : {}));
|
|
11770
|
-
return (hAsync("div", { key: '
|
|
11824
|
+
return (hAsync("div", { key: 'aca76f43840c0e8344d548610bc832cd75ff7bd9' }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4" }, hAsync("div", { class: "flex justify-between mb-4" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (hAsync("div", { class: "flex items-center gap-x-4 gap-y-4", key: option.value }, hAsync("eds-input", Object.assign({}, inputOpts, { value: option.value, checked: typeof this.value === 'string' && this.value.split(',').includes(String(option.value)) })), hAsync("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? 'text-lighter' : ''}` }, option.label)))))) : (hAsync("div", { class: "flex items-center gap-x-8" }, hAsync("eds-input", Object.assign({}, inputOpts, { value: this.value, checked: this.value === 'on' || this.checked })), this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (hAsync("div", null, hAsync("div", { class: "flex justify-between mb-4" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (hAsync("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (hAsync("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
11771
11825
|
var _a, _b, _c;
|
|
11772
11826
|
const rangeProps = {
|
|
11773
11827
|
name: inputOpts.name,
|
|
@@ -11780,7 +11834,7 @@ class EdsInputField {
|
|
|
11780
11834
|
const opt = this.parsedOptions;
|
|
11781
11835
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11782
11836
|
return (hAsync("eds-input-range", Object.assign({}, rangeProps, { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, value: numberValue })));
|
|
11783
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11837
|
+
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '27dc5705b9627fb597b04837b488326371fac2e2', class: "mt-6" }, hAsync("eds-input-footer", { key: '6e73fb80b91de81ee22cb33b7589916b7eb882fe', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }))));
|
|
11784
11838
|
}
|
|
11785
11839
|
static get delegatesFocus() { return true; }
|
|
11786
11840
|
get hostEl() { return getElement(this); }
|
|
@@ -11832,7 +11886,7 @@ class EdsInputFooter {
|
|
|
11832
11886
|
this.link = undefined;
|
|
11833
11887
|
}
|
|
11834
11888
|
render() {
|
|
11835
|
-
return (hAsync("div", { key: '
|
|
11889
|
+
return (hAsync("div", { key: '6c045ff40d674a27cf4fe4c1a125251edd7455ab' }, this.error && this.errorMessage && (hAsync("div", { key: 'd6edd41359f7efb8f0a3bce487b852c1b26c035a', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: 'cd24f34b58c81f00046cc1d90a5b993928e72be8', icon: "warning" }), hAsync("p", { key: 'bf718bcf0e04c5af1924381f567d5921bd43edec', class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '4ea38b231e7b7fba679a05c12773a486aa3201bc', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("eds-link", { key: 'e2e1255c198b707abb2b2194100b83f7b00de9e7', label: this.link.label, url: this.link.url, intent: "underline", size: "small", external: true }))));
|
|
11836
11890
|
}
|
|
11837
11891
|
static get style() { return EdsInputFooterStyle0; }
|
|
11838
11892
|
static get cmpMeta() { return {
|
|
@@ -11863,7 +11917,7 @@ class EdsInputLabel {
|
|
|
11863
11917
|
this.disabled = false;
|
|
11864
11918
|
}
|
|
11865
11919
|
render() {
|
|
11866
|
-
return (hAsync("label", { key: '
|
|
11920
|
+
return (hAsync("label", { key: '5e97f430a0ef1cdc4d0b28618d78402991fda8fe', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: 'fedf93c4b037f387c4aad3ffab354de94de564d3' }, hAsync("span", { key: '72ae856c25308b676d84d7ee0bf214362218a203', "aria-hidden": "true" }, "*"), hAsync("span", { key: '39fcf9a2b39a0207eb0b6f62c16183885c98f145', class: "sr-only" }, "required")))));
|
|
11867
11921
|
}
|
|
11868
11922
|
static get style() { return EdsInputLabelStyle0; }
|
|
11869
11923
|
static get cmpMeta() { return {
|
|
@@ -11929,7 +11983,7 @@ class EdsInputRange {
|
|
|
11929
11983
|
return this.inputElement;
|
|
11930
11984
|
}
|
|
11931
11985
|
render() {
|
|
11932
|
-
return (hAsync("div", { key: '
|
|
11986
|
+
return (hAsync("div", { key: 'c8106420cb482123e72c8e5b00079d9921749290', class: "relative flex flex-col items-start" }, hAsync("input", { key: '752dfbeb9fb73c8a4b5ad874461b63e73477ca99', 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: 'de123d07b20996d3f0c7c5baff788ab42fa0a386', id: `desc_${this.name}`, class: "block f-ui-05 mt-4 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
11933
11987
|
}
|
|
11934
11988
|
get el() { return getElement(this); }
|
|
11935
11989
|
static get watchers() { return {
|
|
@@ -12024,7 +12078,7 @@ class EdsInputSearch {
|
|
|
12024
12078
|
return this.inputElement;
|
|
12025
12079
|
}
|
|
12026
12080
|
render() {
|
|
12027
|
-
return (hAsync("div", { key: '
|
|
12081
|
+
return (hAsync("div", { key: 'f8484e4e4a971db07a75ca91b66d4b3cddd5cee9', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '68782ac168c062564d6378bc1bc62e58efeb3555', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), hAsync("input", { key: 'c59e9b91f214fc94fc4fb4c991c3e667ea3c24ae', 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}`,
|
|
12028
12082
|
//onInput={this.onInput}
|
|
12029
12083
|
onChange: this.onChange })));
|
|
12030
12084
|
}
|
|
@@ -12078,12 +12132,12 @@ class EdsInputSelect {
|
|
|
12078
12132
|
const selectId = this.inputId || this.name;
|
|
12079
12133
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
12080
12134
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
12081
|
-
return (hAsync("div", { key: '
|
|
12135
|
+
return (hAsync("div", { key: '7f6a81c0f3d1f998c2bd671722cd06992b382540', class: "relative" }, hAsync("select", { key: '3e62519e3973cf1136cda70a3af1cc2a2e093451', id: selectId, name: this.name, class: {
|
|
12082
12136
|
input: true,
|
|
12083
12137
|
'input-error': this.error,
|
|
12084
12138
|
'px-4': true,
|
|
12085
12139
|
'py-2': true
|
|
12086
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
12140
|
+
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '4292bd21e8c912f3bb0bc727ed2657051a3e03b8', 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: 'a03c59be80950fd17a89b0adc693654e99496018', 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: '0183976264d130c3c12b30c829fae36512607ac4', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
12087
12141
|
}
|
|
12088
12142
|
static get cmpMeta() { return {
|
|
12089
12143
|
"$flags$": 0,
|
|
@@ -12172,7 +12226,6 @@ const linkStyles = cva([
|
|
|
12172
12226
|
false: ''
|
|
12173
12227
|
},
|
|
12174
12228
|
size: {
|
|
12175
|
-
underline: 'f-body-02 ',
|
|
12176
12229
|
small: 'min-h-36 f-ui-02 px-12',
|
|
12177
12230
|
large: 'min-h-44 f-ui-01 px-16'
|
|
12178
12231
|
}
|
|
@@ -12225,6 +12278,16 @@ const linkStyles = cva([
|
|
|
12225
12278
|
intent: 'inverse',
|
|
12226
12279
|
isActive: true,
|
|
12227
12280
|
class: 'before:!opacity-100'
|
|
12281
|
+
},
|
|
12282
|
+
{
|
|
12283
|
+
intent: 'underline',
|
|
12284
|
+
size: 'small',
|
|
12285
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-02'
|
|
12286
|
+
},
|
|
12287
|
+
{
|
|
12288
|
+
intent: 'underline',
|
|
12289
|
+
size: 'large',
|
|
12290
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-01'
|
|
12228
12291
|
}
|
|
12229
12292
|
],
|
|
12230
12293
|
defaultVariants: {
|
|
@@ -12251,7 +12314,7 @@ class EdsLink {
|
|
|
12251
12314
|
registerInstance(this, hostRef);
|
|
12252
12315
|
this.parentContext = null; // Accepts the entire event detail or null
|
|
12253
12316
|
this.label = undefined;
|
|
12254
|
-
this.intent =
|
|
12317
|
+
this.intent = 'primary';
|
|
12255
12318
|
this.icon = undefined;
|
|
12256
12319
|
this.iconPos = 'right';
|
|
12257
12320
|
this.iconSmall = false;
|
|
@@ -12263,7 +12326,6 @@ class EdsLink {
|
|
|
12263
12326
|
this.ariaLabel = undefined;
|
|
12264
12327
|
this.disabled = false;
|
|
12265
12328
|
this.hideLabelOnSmallScreen = false;
|
|
12266
|
-
this.extraClass = undefined;
|
|
12267
12329
|
}
|
|
12268
12330
|
handleParentContext(event) {
|
|
12269
12331
|
if (event.target !== this.el) {
|
|
@@ -12308,9 +12370,6 @@ class EdsLink {
|
|
|
12308
12370
|
}
|
|
12309
12371
|
}
|
|
12310
12372
|
getLinkSize() {
|
|
12311
|
-
if (this.intent === 'underline') {
|
|
12312
|
-
return 'underline';
|
|
12313
|
-
}
|
|
12314
12373
|
return this.size;
|
|
12315
12374
|
}
|
|
12316
12375
|
renderLeftIcon() {
|
|
@@ -12339,12 +12398,13 @@ class EdsLink {
|
|
|
12339
12398
|
isActive: this.current,
|
|
12340
12399
|
hasIcon: !!this.icon
|
|
12341
12400
|
});
|
|
12401
|
+
const safeUrl = typeof this.url === 'string' && this.url.length ? this.url : undefined;
|
|
12342
12402
|
const isInteractive = !this.disabled;
|
|
12343
12403
|
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
12344
12404
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
12345
12405
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
12346
12406
|
: '';
|
|
12347
|
-
return (hAsync("a", { key: '
|
|
12407
|
+
return (hAsync("a", { key: '2d72b4f56aad829c674edc920d8b8b9f83a6c9c1', class: `${classes || ''}`, href: isInteractive ? safeUrl : undefined, target: this.external && isInteractive ? '_blank' : undefined, rel: this.external && isInteractive ? 'noopener noreferrer' : undefined, tabIndex: isInteractive ? 0 : -1, "aria-label": isIconOnly ? this.ariaLabel || 'Link' : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-current": this.current ? 'page' : undefined, role: this.disabled ? 'link' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, hAsync("span", { key: '8a8d9d31456c414d2167db7520978aefd9d955dc', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), this.label && hAsync("span", { key: 'b26b2f5aafa647912ced4b747c8b1e1c7a508050', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
12348
12408
|
}
|
|
12349
12409
|
get el() { return getElement(this); }
|
|
12350
12410
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -12364,8 +12424,7 @@ class EdsLink {
|
|
|
12364
12424
|
"url": [1],
|
|
12365
12425
|
"ariaLabel": [1, "aria-label"],
|
|
12366
12426
|
"disabled": [4],
|
|
12367
|
-
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12368
|
-
"extraClass": [1, "extra-class"]
|
|
12427
|
+
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12369
12428
|
},
|
|
12370
12429
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
12371
12430
|
"$lazyBundleId$": "-",
|
|
@@ -12452,7 +12511,7 @@ class EdsLogo {
|
|
|
12452
12511
|
}
|
|
12453
12512
|
render() {
|
|
12454
12513
|
const logoContent = this.getLogo();
|
|
12455
|
-
return (hAsync("a", { key: '
|
|
12514
|
+
return (hAsync("a", { key: '341988e61c1b9f946bd4529f5562af8366704868', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: '1a1e4516ba223b6132a85889626ca7856ca5a16c', innerHTML: logoContent })));
|
|
12456
12515
|
}
|
|
12457
12516
|
get el() { return getElement(this); }
|
|
12458
12517
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12727,9 +12786,9 @@ class EdsModal {
|
|
|
12727
12786
|
render() {
|
|
12728
12787
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12729
12788
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12730
|
-
return (hAsync("div", { key: '
|
|
12789
|
+
return (hAsync("div", { key: '25f038fe934339968388e7b5281a8f0b8509f789', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-9999991 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: '57f180a65ef43fc8f8c5a232c4b80a880fdfc8e9', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
12731
12790
|
,
|
|
12732
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12791
|
+
onClick: () => this.close() })), hAsync("div", { key: 'f8e4005425c463fbfd38c4174f3bc315a648d05f', class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: 'dd9c641489dfea9ec2784de91ca3e819a8c2413c', 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: '2e596080da1d79bcc91d542f592ab2b22c96b9d6', id: titleId, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), hAsync("eds-button", { key: '260a6ccb15c3aed11585b7d81c1c1d4912e3cd3f', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), hAsync("div", { key: '96f67530d2c0504507e3fb9becf537f5517081d1', class: "pt-8 px-20 py-20" }, hAsync("slot", { key: '3ffc38832d4a4e8d61c5182f7ceda4ea7876fa31' })))));
|
|
12733
12792
|
}
|
|
12734
12793
|
get el() { return getElement(this); }
|
|
12735
12794
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12761,71 +12820,84 @@ class EdsNps {
|
|
|
12761
12820
|
this.nps = createEvent(this, "nps", 7);
|
|
12762
12821
|
this.min = 0;
|
|
12763
12822
|
this.max = 10;
|
|
12823
|
+
this.btnRefs = [];
|
|
12824
|
+
this.onSelect = (value) => {
|
|
12825
|
+
this.selectedValue = value;
|
|
12826
|
+
this.nps.emit(value);
|
|
12827
|
+
// Move focus to the selected button (like your rating component)
|
|
12828
|
+
requestAnimationFrame(() => {
|
|
12829
|
+
var _a, _b;
|
|
12830
|
+
const idx = value - this.min;
|
|
12831
|
+
(_b = (_a = this.btnRefs[idx]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12832
|
+
});
|
|
12833
|
+
};
|
|
12834
|
+
this.handleKeyNav = (e) => {
|
|
12835
|
+
const { key } = e;
|
|
12836
|
+
const navigational = ['ArrowRight', 'ArrowLeft', 'Home', 'End', ' ', 'Enter'];
|
|
12837
|
+
if (!navigational.includes(key)) {
|
|
12838
|
+
return;
|
|
12839
|
+
}
|
|
12840
|
+
e.preventDefault();
|
|
12841
|
+
const count = this.max - this.min + 1;
|
|
12842
|
+
// Derive current index from selectedValue; if none, use 0 (first)
|
|
12843
|
+
let currentIdx = this.selectedValue == null ? 0 : this.selectedValue - this.min;
|
|
12844
|
+
switch (key) {
|
|
12845
|
+
case 'ArrowRight':
|
|
12846
|
+
currentIdx = Math.min(count - 1, currentIdx + 1);
|
|
12847
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12848
|
+
break;
|
|
12849
|
+
case 'ArrowLeft':
|
|
12850
|
+
currentIdx = Math.max(0, currentIdx - 1);
|
|
12851
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12852
|
+
break;
|
|
12853
|
+
case 'Home':
|
|
12854
|
+
this.setActiveByIndex(0, /*commit*/ false);
|
|
12855
|
+
break;
|
|
12856
|
+
case 'End':
|
|
12857
|
+
this.setActiveByIndex(count - 1, /*commit*/ false);
|
|
12858
|
+
break;
|
|
12859
|
+
case ' ':
|
|
12860
|
+
case 'Enter':
|
|
12861
|
+
// Commit current focused item
|
|
12862
|
+
this.onSelect(this.min + currentIdx);
|
|
12863
|
+
break;
|
|
12864
|
+
}
|
|
12865
|
+
};
|
|
12764
12866
|
this.question = undefined;
|
|
12765
12867
|
this.leftLabel = undefined;
|
|
12766
12868
|
this.rightLabel = undefined;
|
|
12767
12869
|
this.selectedValue = null;
|
|
12768
12870
|
}
|
|
12769
|
-
|
|
12871
|
+
/** Move visual highlight & roving tabindex; optionally commit selection */
|
|
12872
|
+
setActiveByIndex(index, commit = false) {
|
|
12873
|
+
var _a;
|
|
12874
|
+
const value = this.min + index;
|
|
12875
|
+
// Update highlight so focus movement is visible (like your rating)
|
|
12770
12876
|
this.selectedValue = value;
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
switch (e.key) {
|
|
12777
|
-
case 'ArrowRight':
|
|
12778
|
-
case 'ArrowLeft': {
|
|
12779
|
-
e.preventDefault();
|
|
12780
|
-
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12781
|
-
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12782
|
-
this.activateRadio(radios, nextIndex);
|
|
12783
|
-
break;
|
|
12784
|
-
}
|
|
12785
|
-
case 'Home': {
|
|
12786
|
-
e.preventDefault();
|
|
12787
|
-
this.activateRadio(radios, 0);
|
|
12788
|
-
break;
|
|
12789
|
-
}
|
|
12790
|
-
case 'End': {
|
|
12791
|
-
e.preventDefault();
|
|
12792
|
-
this.activateRadio(radios, this.max);
|
|
12793
|
-
break;
|
|
12794
|
-
}
|
|
12795
|
-
case 'Enter':
|
|
12796
|
-
case ' ': {
|
|
12797
|
-
e.preventDefault();
|
|
12798
|
-
if (currentIndex >= 0) {
|
|
12799
|
-
this.handleClick(this.min + currentIndex);
|
|
12800
|
-
}
|
|
12801
|
-
break;
|
|
12802
|
-
}
|
|
12803
|
-
case 'Escape': {
|
|
12804
|
-
e.preventDefault();
|
|
12805
|
-
if (currentIndex >= 0) {
|
|
12806
|
-
radios[currentIndex].blur();
|
|
12807
|
-
}
|
|
12808
|
-
break;
|
|
12809
|
-
}
|
|
12810
|
-
default:
|
|
12811
|
-
return;
|
|
12877
|
+
// Focus the button host (ensure eds-button forwards focus to its inner <button>)
|
|
12878
|
+
const target = this.btnRefs[index];
|
|
12879
|
+
typeof (target === null || target === void 0 ? void 0 : target.focusInner) === 'function' ? target.focusInner() : (_a = target === null || target === void 0 ? void 0 : target.focus) === null || _a === void 0 ? void 0 : _a.call(target);
|
|
12880
|
+
if (commit) {
|
|
12881
|
+
this.onSelect(value);
|
|
12812
12882
|
}
|
|
12813
12883
|
}
|
|
12814
|
-
activateRadio(radios, index) {
|
|
12815
|
-
const target = radios[index];
|
|
12816
|
-
const value = this.min + index;
|
|
12817
|
-
this.handleClick(value);
|
|
12818
|
-
target.focus();
|
|
12819
|
-
}
|
|
12820
12884
|
render() {
|
|
12821
12885
|
const count = this.max - this.min + 1;
|
|
12822
|
-
|
|
12823
|
-
return (hAsync("div", { key: '51e0d272693fd42d1f239f8498d9a5744dead8d7', class: "eds-nps" }, hAsync("eds-input-label", { key: 'f9d3b65985e221f9608da3aba22cc1dc4dd54417', id: "nps-question", name: "nps-question", label: this.question }), hAsync("div", { key: '00b22eff70fd1dd3d210e17aaef5df2057f99bb7', role: "group", id: "nps-buttons", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: (e) => this.handleKeyNav(e) }, Array.from({ length: count }, (_, i) => {
|
|
12886
|
+
return (hAsync("div", { key: 'ca0a63dd6554e39b78fe1c607af0fede74c692c7', class: "eds-nps" }, hAsync("eds-input-label", { key: 'bdf231836d8c6dbd46e852753696c4b7dad577c7', id: "nps-question", name: "nps-question", label: this.question }), hAsync("div", { key: '004ad431ca02e57c7848a4c3fd0a4ecff40b6573', id: "nps-buttons", role: "radiogroup", "aria-labelledby": "nps-question", class: "grid grid-cols-11", onKeyDown: this.handleKeyNav }, Array.from({ length: count }, (_, i) => {
|
|
12824
12887
|
const val = this.min + i;
|
|
12825
12888
|
const isSelected = val === this.selectedValue;
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12889
|
+
// Roving tabindex: focusable is the selected; if none selected yet, first is focusable
|
|
12890
|
+
const tabIndex = isSelected || (this.selectedValue == null && i === 0) ? 0 : -1;
|
|
12891
|
+
return (hAsync("div", { class: "grid-col-span-1", key: val }, hAsync("eds-button", { ref: (el) => (this.btnRefs[i] = el), role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": `${val}`,
|
|
12892
|
+
// Use onClick so keyboard activation on inner <button> works natively
|
|
12893
|
+
onClick: () => this.onSelect(val), tabIndex: tabIndex, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", label: `${val}`,
|
|
12894
|
+
// Optional: keep highlight in sync when tabbing into the group
|
|
12895
|
+
onFocus: () => {
|
|
12896
|
+
// Only move highlight on initial focus or when roving; remove if you
|
|
12897
|
+
// want focus without highlight.
|
|
12898
|
+
this.selectedValue = val;
|
|
12899
|
+
} })));
|
|
12900
|
+
})), hAsync("div", { key: 'ffd498e00559a76b44e8d98ed060db86e60fbde7', class: "flex justify-between mt-8" }, hAsync("span", { key: '80065344c34d88ce3f01aac28d2b87ded60ec524', class: "f-ui-04 text-light ml-4" }, this.leftLabel), hAsync("span", { key: '2a67b416e4e7b0bf61aa66cb4546192860bd372f', class: "f-ui-04 text-light mr-4" }, this.rightLabel))));
|
|
12829
12901
|
}
|
|
12830
12902
|
get el() { return getElement(this); }
|
|
12831
12903
|
static get style() { return EdsNpsStyle0; }
|
|
@@ -13097,7 +13169,7 @@ class EdsPagination {
|
|
|
13097
13169
|
}
|
|
13098
13170
|
render() {
|
|
13099
13171
|
const navigableIndex = -1; // Track index for keyboard navigation
|
|
13100
|
-
return (hAsync("div", { key: '
|
|
13172
|
+
return (hAsync("div", { key: '3ca147814cf1e0003bac73502a0ae2bf96412ce2' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: '85e3fe3224888a4fc9029e91c53c5a753506af55', class: "f-ui-03 text-light mb-28 w-full text-center", "aria-live": "polite", id: "pagination-info" }, hAsync("span", { key: '9edeecb5ae0a1c74dcbf11829a4079cdbbfd46e4', 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) => {
|
|
13101
13173
|
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
13102
13174
|
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
13103
13175
|
}
|
|
@@ -13304,7 +13376,7 @@ class EdsProgressBar {
|
|
|
13304
13376
|
]
|
|
13305
13377
|
.filter(Boolean)
|
|
13306
13378
|
.join(' ');
|
|
13307
|
-
return (hAsync("div", { key: '
|
|
13379
|
+
return (hAsync("div", { key: 'feb13579d8257dd845e9c61ddfa8a6dd21594c84', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: outerClasses }, hAsync("div", { key: '2cef98e8ea9f099cb0642bf7927512f33fc8cad9', class: fillClasses, style: { width: `${progressValue}%` } }), hAsync("div", { key: '00cdb6afecb2d2fc5da66d287171d6949d081b20', class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, hAsync("span", { key: '43be66f9b0fe11e3fb5c41ba69e00b8c7f7cea1c', class: "text-default f-body-02" }, progressValue, "%"))));
|
|
13308
13380
|
}
|
|
13309
13381
|
static get style() { return EdsProgressBarStyle0; }
|
|
13310
13382
|
static get cmpMeta() { return {
|
|
@@ -13387,7 +13459,7 @@ class EdsRating {
|
|
|
13387
13459
|
this.onSelect(next);
|
|
13388
13460
|
}
|
|
13389
13461
|
render() {
|
|
13390
|
-
return (hAsync("div", { key: '
|
|
13462
|
+
return (hAsync("div", { key: '52cc87859b174e2eb89392c083031ffde587fb7d', 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) => {
|
|
13391
13463
|
const starRating = index + 1;
|
|
13392
13464
|
const isSelected = starRating <= this.selectedRating;
|
|
13393
13465
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -13437,7 +13509,7 @@ class EdsSectionCore {
|
|
|
13437
13509
|
}
|
|
13438
13510
|
render() {
|
|
13439
13511
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
13440
|
-
return (hAsync(TagType, { key: '
|
|
13512
|
+
return (hAsync(TagType, { key: '97a75a0b2a26e912499d844df4e3eb10c2c9eb29' }, hAsync("eds-section-heading", { key: 'fe5d0d7a0594bac513551c4a7ea45e34598ec265', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5f6492d074ffc9996ac39449a037e267a5b399d2' })));
|
|
13441
13513
|
}
|
|
13442
13514
|
static get style() { return EdsSectionCoreStyle0; }
|
|
13443
13515
|
static get cmpMeta() { return {
|
|
@@ -13492,12 +13564,12 @@ class EdsSectionHeading {
|
|
|
13492
13564
|
render() {
|
|
13493
13565
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
13494
13566
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
13495
|
-
return (hAsync(TagType, { key: '
|
|
13567
|
+
return (hAsync(TagType, { key: '9003f6d452637cdc9ed3bea69689cd92546860b8', class: {
|
|
13496
13568
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
13497
13569
|
container: this.withContainer,
|
|
13498
13570
|
'pt-48': this.spacingLarge,
|
|
13499
13571
|
'pt-28': !this.spacingLarge
|
|
13500
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13572
|
+
} }, hAsync(HeadingTag, { key: '2cb120e1bf8e4816cb56c8ba8f8bbae546bd7baf', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
13501
13573
|
}
|
|
13502
13574
|
static get cmpMeta() { return {
|
|
13503
13575
|
"$flags$": 0,
|
|
@@ -13515,6 +13587,186 @@ class EdsSectionHeading {
|
|
|
13515
13587
|
}; }
|
|
13516
13588
|
}
|
|
13517
13589
|
|
|
13590
|
+
const edsSidebarCss = ":host{display:block;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;transition:width 0.3s ease}:host(.collapsed){width:4rem}:host::-webkit-scrollbar{width:8px}:host::-webkit-scrollbar-track{background:transparent}:host::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.2);border-radius:4px}:host::-webkit-scrollbar-thumb:hover{background:rgba(0, 0, 0, 0.3)}.sidebar-nav{padding:0.5rem 0}.sidebar-header{display:flex;justify-content:flex-end;padding:0.5rem 0.75rem;margin-bottom:0.5rem}:host(.collapsed) .sidebar-header{justify-content:center;padding:0.5rem}.collapse-toggle{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:none;border:none;cursor:pointer;padding:0;border-radius:0.375rem;transition:background-color 0.15s ease;color:inherit}.collapse-toggle:hover{background-color:rgba(0, 0, 0, 0.08)}.collapse-toggle:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:2px}.sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.125rem}.sidebar-item{display:flex;flex-direction:column}.sidebar-item-content{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;cursor:pointer;user-select:none;word-break:break-word;transition:background-color 0.15s ease;border-radius:0.375rem;margin:0 0.5rem;position:relative}:host(.collapsed) .sidebar-item-content{justify-content:center;padding:0.75rem;margin:0 0.5rem}.sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}.sidebar-item-content:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:-2px;z-index:1}.sidebar-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem}.sidebar-content-wrapper{display:flex;align-items:center;gap:0.5rem;flex:1;min-width:0}.sidebar-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;margin:-0.125rem 0;pointer-events:none}.sidebar-link-wrapper{flex:1;min-width:0;pointer-events:none}.sidebar-link{font-weight:400;pointer-events:none}.sidebar-children{list-style:none;margin:0.25rem 0 0 0;padding:0;display:flex;flex-direction:column;gap:0.125rem;overflow:hidden;animation:slideDown 0.2s ease}@keyframes slideDown{from{opacity:0;transform:translateY(-0.25rem)}to{opacity:1;transform:translateY(0)}}.sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.collapsed) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}.sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}.sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}.sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}.sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}.sidebar-item.level-5 .sidebar-item-content{padding-left:7rem}:host(.theme-default) .sidebar-item-content{border-radius:0.375rem;margin:0 0.5rem;padding:0.5rem 0.75rem}:host(.theme-default.collapsed) .sidebar-item-content{margin:0 0.5rem;border-radius:0.375rem}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:transparent}:host(.theme-default) .sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:600}:host(.theme-default) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.theme-default) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-default) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-default) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-default) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-item-content{border-radius:0;margin:0;padding-left:1rem;padding-right:1rem}:host(.theme-minimal.collapsed) .sidebar-item-content{margin:0 0.25rem;border-radius:0.375rem}:host(.theme-minimal) .sidebar-item-content:hover{background-color:var(--grey-300)}:host(.theme-minimal) .sidebar-item.active>.sidebar-item-content{background-color:var(--grey-400);border-left:3px solid var(--grey-900);padding-left:calc(1rem - 3px)}:host(.theme-minimal.collapsed) .sidebar-item.active>.sidebar-item-content{border-left:none;border-radius:0.375rem;padding-left:0.75rem}:host(.theme-minimal) .sidebar-item.level-1.active>.sidebar-item-content{padding-left:calc(2rem - 3px)}:host(.theme-minimal) .sidebar-item.level-2.active>.sidebar-item-content{padding-left:calc(3.25rem - 3px)}:host(.theme-minimal) .sidebar-item.level-3.active>.sidebar-item-content{padding-left:calc(4.5rem - 3px)}:host(.theme-minimal) .sidebar-item.level-4.active>.sidebar-item-content{padding-left:calc(5.75rem - 3px)}:host(.theme-minimal) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-minimal) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-minimal) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-minimal) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-minimal) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-children{position:relative}:host(.theme-ebrains) .sidebar-item-content{padding:0.5rem 1rem;border-radius:0.5rem;margin:0 0.5rem}:host(.theme-ebrains.collapsed) .sidebar-item-content{padding:0.75rem}:host(.theme-ebrains) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.05)}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content{background-color:var(--green-600, #22c55e);color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-link{--eds-link-color:white;--eds-link-hover-color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-toggle{color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-icon{color:white}:host(.theme-ebrains) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-ebrains) .sidebar-item.level-1 .sidebar-item-content{padding-left:2.25rem}:host(.theme-ebrains) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.5rem}:host(.theme-ebrains) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.75rem}:host(.theme-ebrains) .sidebar-item.level-4 .sidebar-item-content{padding-left:6rem}@media (prefers-color-scheme: dark){.collapse-toggle:hover{background-color:rgba(255, 255, 255, 0.08)}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.05)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:rgba(0, 102, 204, 0.15)}:host(.theme-minimal) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.06)}:host::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.2)}:host::-webkit-scrollbar-thumb:hover{background:rgba(255, 255, 255, 0.3)}}.sidebar-toggle eds-icon-wrapper,.sidebar-icon eds-icon-wrapper,.collapse-toggle eds-icon-wrapper{transition:transform 0.15s ease;display:flex;align-items:center;justify-content:center}.sidebar-item-content:focus-visible .sidebar-link{text-decoration:underline}.sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:500}:host(.collapsed) .sidebar-item-content::after{content:attr(title);position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:0.5rem;padding:0.5rem 0.75rem;background:rgba(0, 0, 0, 0.9);color:white;border-radius:0.375rem;white-space:nowrap;font-size:0.875rem;opacity:0;pointer-events:none;transition:opacity 0.2s ease;z-index:1000}:host(.collapsed) .sidebar-item-content:hover::after{opacity:1;transition-delay:0.3s}.-ml-4{margin-left:-0.25rem}.mt-2{margin-top:0.125rem}";
|
|
13591
|
+
var EdsSidebarStyle0 = edsSidebarCss;
|
|
13592
|
+
|
|
13593
|
+
class EdsSidebar {
|
|
13594
|
+
constructor(hostRef) {
|
|
13595
|
+
registerInstance(this, hostRef);
|
|
13596
|
+
this.sidebar = createEvent(this, "sidebar", 7);
|
|
13597
|
+
this.toggleItem = (itemId, ev) => {
|
|
13598
|
+
if (ev) {
|
|
13599
|
+
ev.stopPropagation();
|
|
13600
|
+
}
|
|
13601
|
+
const newOpen = new Set(this.openItems);
|
|
13602
|
+
if (newOpen.has(itemId)) {
|
|
13603
|
+
newOpen.delete(itemId);
|
|
13604
|
+
}
|
|
13605
|
+
else {
|
|
13606
|
+
newOpen.add(itemId);
|
|
13607
|
+
}
|
|
13608
|
+
this.openItems = newOpen;
|
|
13609
|
+
};
|
|
13610
|
+
this.navigate = (url, ev) => {
|
|
13611
|
+
if (!this.enableRouting || !url) {
|
|
13612
|
+
return;
|
|
13613
|
+
}
|
|
13614
|
+
if (ev) {
|
|
13615
|
+
ev.preventDefault();
|
|
13616
|
+
ev.stopPropagation();
|
|
13617
|
+
}
|
|
13618
|
+
// Emit custom event for routing
|
|
13619
|
+
this.sidebar.emit(url);
|
|
13620
|
+
// Update browser history if available
|
|
13621
|
+
if (typeof window !== 'undefined' && window.history) {
|
|
13622
|
+
window.history.pushState({}, '', url);
|
|
13623
|
+
}
|
|
13624
|
+
};
|
|
13625
|
+
this.handleItemClick = (item, ev) => {
|
|
13626
|
+
var _a;
|
|
13627
|
+
// If item has children, ONLY toggle (don't navigate)
|
|
13628
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13629
|
+
this.toggleItem(item.id, ev);
|
|
13630
|
+
return;
|
|
13631
|
+
}
|
|
13632
|
+
// Only navigate if no children and has URL
|
|
13633
|
+
if (item.url) {
|
|
13634
|
+
this.navigate(item.url, ev);
|
|
13635
|
+
}
|
|
13636
|
+
};
|
|
13637
|
+
this.items = '[]';
|
|
13638
|
+
this.theme = 'default';
|
|
13639
|
+
this.activeUrl = '';
|
|
13640
|
+
this.enableRouting = true;
|
|
13641
|
+
this.maxLevel = 4;
|
|
13642
|
+
this.openItems = new Set();
|
|
13643
|
+
this.parsedItems = [];
|
|
13644
|
+
}
|
|
13645
|
+
// ---------------------------------------------------------------------------
|
|
13646
|
+
// Lifecycle
|
|
13647
|
+
// ---------------------------------------------------------------------------
|
|
13648
|
+
componentWillLoad() {
|
|
13649
|
+
this.parsedItems = this.parseItems(this.items);
|
|
13650
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13651
|
+
}
|
|
13652
|
+
// ---------------------------------------------------------------------------
|
|
13653
|
+
// Watchers
|
|
13654
|
+
// ---------------------------------------------------------------------------
|
|
13655
|
+
handleItemsChange(newItems) {
|
|
13656
|
+
this.parsedItems = this.parseItems(newItems);
|
|
13657
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13658
|
+
}
|
|
13659
|
+
handleActiveUrlChange() {
|
|
13660
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13661
|
+
}
|
|
13662
|
+
// ---------------------------------------------------------------------------
|
|
13663
|
+
// Utils
|
|
13664
|
+
// ---------------------------------------------------------------------------
|
|
13665
|
+
parseItems(items) {
|
|
13666
|
+
if (Array.isArray(items)) {
|
|
13667
|
+
return items;
|
|
13668
|
+
}
|
|
13669
|
+
if (typeof items === 'string') {
|
|
13670
|
+
if (!items || items.trim() === '') {
|
|
13671
|
+
return [];
|
|
13672
|
+
}
|
|
13673
|
+
try {
|
|
13674
|
+
const parsed = JSON.parse(items);
|
|
13675
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
13676
|
+
}
|
|
13677
|
+
catch (e) {
|
|
13678
|
+
console.error('eds-sidebar: Failed to parse items JSON:', e);
|
|
13679
|
+
console.error('Received string:', items);
|
|
13680
|
+
return [];
|
|
13681
|
+
}
|
|
13682
|
+
}
|
|
13683
|
+
return [];
|
|
13684
|
+
}
|
|
13685
|
+
initializeOpenItems(items, level = 0) {
|
|
13686
|
+
if (level === 0) {
|
|
13687
|
+
// reset before recomputing
|
|
13688
|
+
this.openItems = new Set();
|
|
13689
|
+
}
|
|
13690
|
+
if (level >= this.maxLevel) {
|
|
13691
|
+
return;
|
|
13692
|
+
}
|
|
13693
|
+
items.forEach((item) => {
|
|
13694
|
+
var _a;
|
|
13695
|
+
const isActive = this.activeUrl && item.url === this.activeUrl;
|
|
13696
|
+
const hasActiveChild = this.hasActiveDescendant(item);
|
|
13697
|
+
if (item.open || isActive || hasActiveChild) {
|
|
13698
|
+
this.openItems.add(item.id);
|
|
13699
|
+
}
|
|
13700
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13701
|
+
this.initializeOpenItems(item.children, level + 1);
|
|
13702
|
+
}
|
|
13703
|
+
});
|
|
13704
|
+
}
|
|
13705
|
+
hasActiveDescendant(item) {
|
|
13706
|
+
var _a;
|
|
13707
|
+
if (item.url === this.activeUrl) {
|
|
13708
|
+
return true;
|
|
13709
|
+
}
|
|
13710
|
+
if (!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
13711
|
+
return false;
|
|
13712
|
+
}
|
|
13713
|
+
return item.children.some((child) => this.hasActiveDescendant(child));
|
|
13714
|
+
}
|
|
13715
|
+
// ---------------------------------------------------------------------------
|
|
13716
|
+
// Render
|
|
13717
|
+
// ---------------------------------------------------------------------------
|
|
13718
|
+
renderItem(item, level = 0) {
|
|
13719
|
+
if (level >= this.maxLevel) {
|
|
13720
|
+
return null;
|
|
13721
|
+
}
|
|
13722
|
+
const isOpen = this.openItems.has(item.id);
|
|
13723
|
+
const isActive = !!item.url && this.activeUrl === item.url;
|
|
13724
|
+
const hasChildren = !!(item.children && item.children.length);
|
|
13725
|
+
const itemId = `eds-sidebar-${item.id}`;
|
|
13726
|
+
const childrenId = `${itemId}-children`;
|
|
13727
|
+
return (hAsync("li", { class: {
|
|
13728
|
+
'sidebar-item': true,
|
|
13729
|
+
open: isOpen,
|
|
13730
|
+
active: isActive,
|
|
13731
|
+
'has-children': hasChildren,
|
|
13732
|
+
[`level-${level}`]: true
|
|
13733
|
+
} }, hAsync("div", { class: "sidebar-item-content", onClick: (e) => this.handleItemClick(item, e), role: hasChildren ? 'button' : item.url ? 'link' : 'button', tabindex: "0", "aria-current": isActive ? 'page' : undefined, "aria-expanded": hasChildren ? (isOpen ? 'true' : 'false') : undefined, "aria-controls": hasChildren ? childrenId : undefined, onKeyDown: (e) => {
|
|
13734
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13735
|
+
e.preventDefault();
|
|
13736
|
+
this.handleItemClick(item, e);
|
|
13737
|
+
}
|
|
13738
|
+
} }, hasChildren && (hAsync("span", { class: "sidebar-toggle mt-2 -ml-4", "aria-hidden": "true" }, hAsync("eds-icon-wrapper", { icon: isOpen ? 'chevron-down' : 'chevron-right' }))), hAsync("span", { class: "sidebar-link-wrapper" }, hAsync("eds-link", { label: item.title, url: item.url || '#', intent: isActive ? 'strong' : 'weak', size: "small", "aria-label": item.title, "extra-class": "sidebar-link", tabindex: "-1" }))), hasChildren && isOpen && (hAsync("ul", { id: childrenId, class: "sidebar-children" }, item.children.map((child) => this.renderItem(child, level + 1))))));
|
|
13739
|
+
}
|
|
13740
|
+
render() {
|
|
13741
|
+
return (hAsync(Host, { key: '4334d20e5d72671243633253910ab05b4da013da', class: {
|
|
13742
|
+
'eds-sidebar': true,
|
|
13743
|
+
[`theme-${this.theme}`]: true
|
|
13744
|
+
} }, hAsync("nav", { key: '319f6f42416d4229f1b011bf1216b39c8627302d', class: "sidebar-nav", "aria-label": "Sidebar" }, hAsync("ul", { key: '687ceae3eca3e844e8f6a361db4a76d127d27813', class: "sidebar-list" }, this.parsedItems.map((item) => this.renderItem(item, 0))))));
|
|
13745
|
+
}
|
|
13746
|
+
get el() { return getElement(this); }
|
|
13747
|
+
static get watchers() { return {
|
|
13748
|
+
"items": ["handleItemsChange"],
|
|
13749
|
+
"activeUrl": ["handleActiveUrlChange"]
|
|
13750
|
+
}; }
|
|
13751
|
+
static get style() { return EdsSidebarStyle0; }
|
|
13752
|
+
static get cmpMeta() { return {
|
|
13753
|
+
"$flags$": 9,
|
|
13754
|
+
"$tagName$": "eds-sidebar",
|
|
13755
|
+
"$members$": {
|
|
13756
|
+
"items": [1],
|
|
13757
|
+
"theme": [1],
|
|
13758
|
+
"activeUrl": [1, "active-url"],
|
|
13759
|
+
"enableRouting": [4, "enable-routing"],
|
|
13760
|
+
"maxLevel": [2, "max-level"],
|
|
13761
|
+
"openItems": [32],
|
|
13762
|
+
"parsedItems": [32]
|
|
13763
|
+
},
|
|
13764
|
+
"$listeners$": undefined,
|
|
13765
|
+
"$lazyBundleId$": "-",
|
|
13766
|
+
"$attrsToReflect$": []
|
|
13767
|
+
}; }
|
|
13768
|
+
}
|
|
13769
|
+
|
|
13518
13770
|
const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.mt-12{margin-top:0.75rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
13519
13771
|
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13520
13772
|
|
|
@@ -13571,7 +13823,7 @@ class EdsSocialNetworks {
|
|
|
13571
13823
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
13572
13824
|
*/
|
|
13573
13825
|
render() {
|
|
13574
|
-
return (hAsync("nav", { key: '
|
|
13826
|
+
return (hAsync("nav", { key: 'f56d034a9c934e1be2003a0fedaf6c9ec4fc5909', "aria-label": "Social media" }, hAsync("p", { key: '66d7c2384206143eef36cdb085780d4a1590fe76', class: "f-ui-02" }, this.heading), hAsync("ul", { key: '0ccb5fd44ee30f77c19fdb67dc1cc19fadd3561e', 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" })))))));
|
|
13575
13827
|
}
|
|
13576
13828
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13577
13829
|
static get cmpMeta() { return {
|
|
@@ -13662,7 +13914,7 @@ class EdsSpinner {
|
|
|
13662
13914
|
alignItems: 'center',
|
|
13663
13915
|
justifyContent: 'center'
|
|
13664
13916
|
};
|
|
13665
|
-
return (hAsync(Host, { key: '
|
|
13917
|
+
return (hAsync(Host, { key: 'c50ca410eb23855b3076babb78b4849246722cf7' }, hAsync("div", { key: '9b3722b00777a0dd77288c4c3b29419a9b87640b', class: "spinner-overlay", style: overlayStyle }, hAsync("span", { key: '5479d0195b6d8991613df8ae03eee34b2a095b6b', class: "spinner", style: spinnerStyle }), this.message && hAsync("p", { key: '448c3b0e6ce0aac6c21b53c58b97e423a1739864', class: "f-body-01" }, this.message))));
|
|
13666
13918
|
}
|
|
13667
13919
|
static get style() { return EdsSpinnerStyle0; }
|
|
13668
13920
|
static get cmpMeta() { return {
|
|
@@ -13746,7 +13998,7 @@ class EdsSplashScreen {
|
|
|
13746
13998
|
}; }
|
|
13747
13999
|
}
|
|
13748
14000
|
|
|
13749
|
-
const edsStepsCss = ".steps{position:sticky;margin-left:16px;
|
|
14001
|
+
const edsStepsCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-39px;top:-2px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.mb-16{margin-bottom:1rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role=\"button\"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0}.horizontal-step{display:flex;flex-direction:column;align-items:center;gap:0.5rem;cursor:pointer;flex:1;position:relative}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.25rem;left:50%;width:100%;height:2px;background-color:#e0e0e0;z-index:-1}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--green-500);}.step-indicator{width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease}.horizontal-step.is-active .step-indicator{border-color:var(--green-500);background-color:var(--green-500);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--green-500);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-weight:600;font-size:0.875rem}.step-label{font-size:0.875rem;text-align:center;font-weight:500}.horizontal-step.is-active .step-label{color:var(--green-500)}.step-content{padding:2rem 0;margin-left:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem);margin-right:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem)}.opacity-50{opacity:0.5}.eds-steps__title[role=\"button\"]{cursor:pointer}";
|
|
13750
14002
|
var EdsStepsStyle0 = edsStepsCss;
|
|
13751
14003
|
|
|
13752
14004
|
class EdsSteps {
|
|
@@ -13757,47 +14009,63 @@ class EdsSteps {
|
|
|
13757
14009
|
this.next = createEvent(this, "next", 7);
|
|
13758
14010
|
this.back = createEvent(this, "back", 7);
|
|
13759
14011
|
this.handleTitleClick = (index) => {
|
|
13760
|
-
//
|
|
13761
|
-
if (
|
|
13762
|
-
|
|
14012
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14013
|
+
if (this.type === 'linear') {
|
|
14014
|
+
// prevent jumping forward over disabled steps
|
|
14015
|
+
if (index > this.activeStep) {
|
|
14016
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14017
|
+
if (this.isStepDisabled(i)) {
|
|
14018
|
+
return;
|
|
14019
|
+
}
|
|
14020
|
+
}
|
|
14021
|
+
}
|
|
14022
|
+
this.activeStep = index;
|
|
13763
14023
|
this.step.emit(this.activeStep);
|
|
13764
14024
|
return;
|
|
13765
14025
|
}
|
|
13766
|
-
//
|
|
13767
|
-
|
|
13768
|
-
|
|
14026
|
+
// Non-linear vertical mode: support optional collapse/expand on current title
|
|
14027
|
+
if (this.orientation === 'vertical' && index === this.activeStep && this.collapsibleTitles) {
|
|
14028
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14029
|
+
this.step.emit(this.activeStep);
|
|
13769
14030
|
return;
|
|
13770
|
-
}
|
|
13771
|
-
//
|
|
14031
|
+
}
|
|
14032
|
+
// Otherwise, just set
|
|
13772
14033
|
this.activeStep = index;
|
|
13773
14034
|
this.step.emit(this.activeStep);
|
|
13774
14035
|
};
|
|
13775
14036
|
this.handleNext = () => {
|
|
13776
14037
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14038
|
+
// On last step
|
|
13777
14039
|
if (this.activeStep >= lastIndex) {
|
|
13778
|
-
this.activeStep = -1;
|
|
13779
14040
|
this.finished.emit();
|
|
14041
|
+
this.activeStep = -1; // collapse the content
|
|
14042
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13780
14043
|
return;
|
|
13781
14044
|
}
|
|
13782
14045
|
const target = this.activeStep + 1;
|
|
13783
14046
|
this.next.emit(target);
|
|
13784
|
-
if (this.
|
|
14047
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
13785
14048
|
return;
|
|
13786
|
-
}
|
|
14049
|
+
}
|
|
13787
14050
|
this.activeStep = target;
|
|
13788
14051
|
this.step.emit(this.activeStep);
|
|
13789
|
-
// 2) if using the boolean form, clear it when moving away from a step
|
|
13790
14052
|
if (!Array.isArray(this.disableNext)) {
|
|
13791
14053
|
this.disableNext = false;
|
|
13792
14054
|
}
|
|
13793
14055
|
};
|
|
13794
14056
|
this.handleBack = () => {
|
|
14057
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14058
|
+
// If somehow collapsed, recover to last visible step first
|
|
14059
|
+
if (this.activeStep < 0) {
|
|
14060
|
+
this.activeStep = lastIndex;
|
|
14061
|
+
this.step.emit(this.activeStep);
|
|
14062
|
+
return;
|
|
14063
|
+
}
|
|
13795
14064
|
if (this.activeStep > 0) {
|
|
13796
14065
|
const target = this.activeStep - 1;
|
|
13797
14066
|
this.back.emit(target);
|
|
13798
14067
|
this.activeStep = target;
|
|
13799
14068
|
this.step.emit(this.activeStep);
|
|
13800
|
-
// also clear boolean form on back
|
|
13801
14069
|
if (!Array.isArray(this.disableNext)) {
|
|
13802
14070
|
this.disableNext = false;
|
|
13803
14071
|
}
|
|
@@ -13805,51 +14073,91 @@ class EdsSteps {
|
|
|
13805
14073
|
};
|
|
13806
14074
|
this.steps = [];
|
|
13807
14075
|
this.type = 'static';
|
|
14076
|
+
this.orientation = 'vertical';
|
|
13808
14077
|
this.nextLabel = 'Next';
|
|
13809
14078
|
this.backLabel = 'Back';
|
|
13810
14079
|
this.finishLabel = 'Finish';
|
|
13811
14080
|
this.disableNext = false;
|
|
13812
14081
|
this.headingLevel = 'h4';
|
|
14082
|
+
this.collapsibleTitles = false;
|
|
13813
14083
|
this.activeStep = 0;
|
|
13814
14084
|
}
|
|
14085
|
+
handleDisableNextChange(newValue) {
|
|
14086
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14087
|
+
try {
|
|
14088
|
+
this.disableNext = JSON.parse(newValue);
|
|
14089
|
+
}
|
|
14090
|
+
catch (e) {
|
|
14091
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14092
|
+
}
|
|
14093
|
+
}
|
|
14094
|
+
}
|
|
14095
|
+
componentWillLoad() {
|
|
14096
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14097
|
+
}
|
|
13815
14098
|
componentDidLoad() {
|
|
13816
|
-
var _a;
|
|
13817
14099
|
if (this.type === 'linear') {
|
|
13818
|
-
const
|
|
14100
|
+
const root = this.el.shadowRoot || this.el;
|
|
14101
|
+
const btns = root.querySelectorAll('eds-button');
|
|
13819
14102
|
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
13820
14103
|
}
|
|
13821
14104
|
}
|
|
13822
14105
|
activeStepChanged(newValue) {
|
|
14106
|
+
// Clamp to valid range or collapsed sentinel
|
|
14107
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14108
|
+
if (newValue > max) {
|
|
14109
|
+
this.activeStep = max;
|
|
14110
|
+
return;
|
|
14111
|
+
}
|
|
14112
|
+
if (newValue < -1) {
|
|
14113
|
+
this.activeStep = -1;
|
|
14114
|
+
return;
|
|
14115
|
+
}
|
|
14116
|
+
// If collapsed (only possible in non-linear mode), do not emit context
|
|
14117
|
+
if (newValue < 0) {
|
|
14118
|
+
return;
|
|
14119
|
+
}
|
|
13823
14120
|
setTimeout(() => {
|
|
13824
|
-
|
|
13825
|
-
const
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
}
|
|
14121
|
+
const root = this.el.shadowRoot || this.el;
|
|
14122
|
+
const all = root.querySelectorAll('.step');
|
|
14123
|
+
const active = all && newValue < all.length ? all[newValue] : undefined;
|
|
14124
|
+
active === null || active === void 0 ? void 0 : active.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13829
14125
|
}, 50);
|
|
13830
14126
|
}
|
|
13831
14127
|
emitContext(linkElement) {
|
|
13832
14128
|
const event = new CustomEvent('parentContext', {
|
|
13833
|
-
detail: {
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
}
|
|
14129
|
+
detail: { componentName: this.el.tagName.toLowerCase(), identifier: this.activeStep },
|
|
14130
|
+
bubbles: true,
|
|
14131
|
+
composed: true
|
|
13837
14132
|
});
|
|
13838
14133
|
linkElement.dispatchEvent(event);
|
|
13839
14134
|
}
|
|
13840
14135
|
get parsedSteps() {
|
|
13841
14136
|
return parseData(this.steps);
|
|
13842
14137
|
}
|
|
14138
|
+
isStepDisabled(index) {
|
|
14139
|
+
if (Array.isArray(this.disableNext)) {
|
|
14140
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14141
|
+
}
|
|
14142
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14143
|
+
}
|
|
13843
14144
|
isNextDisabledFor(index) {
|
|
13844
|
-
return
|
|
13845
|
-
? !!this.disableNext[index] // per-step
|
|
13846
|
-
: index === this.activeStep && !!this.disableNext; // only active step
|
|
14145
|
+
return this.isStepDisabled(index);
|
|
13847
14146
|
}
|
|
13848
14147
|
/** Render the semantic heading element as a clickable control only in linear mode */
|
|
13849
14148
|
renderHeading(title, index) {
|
|
13850
14149
|
const Tag = this.headingLevel;
|
|
14150
|
+
const isOpen = this.activeStep === index;
|
|
13851
14151
|
if (this.type === 'linear') {
|
|
13852
|
-
|
|
14152
|
+
let forwardBlocked = false;
|
|
14153
|
+
if (index > this.activeStep) {
|
|
14154
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14155
|
+
if (this.isStepDisabled(i)) {
|
|
14156
|
+
forwardBlocked = true;
|
|
14157
|
+
break;
|
|
14158
|
+
}
|
|
14159
|
+
}
|
|
14160
|
+
}
|
|
13853
14161
|
const onKey = (e) => {
|
|
13854
14162
|
if (forwardBlocked) {
|
|
13855
14163
|
return;
|
|
@@ -13859,24 +14167,61 @@ class EdsSteps {
|
|
|
13859
14167
|
this.handleTitleClick(index);
|
|
13860
14168
|
}
|
|
13861
14169
|
};
|
|
13862
|
-
const isOpen = this.activeStep === index;
|
|
13863
14170
|
return (hAsync(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
|
|
13864
14171
|
}
|
|
13865
|
-
return hAsync(Tag, { class:
|
|
14172
|
+
return (hAsync(Tag, { class: `eds-steps__title ${this.collapsibleTitles && index !== this.activeStep ? '' : ''}`, onClick: () => this.handleTitleClick(index) }, title));
|
|
14173
|
+
}
|
|
14174
|
+
/** Render horizontal step indicator */
|
|
14175
|
+
renderHorizontalIndicator(step, index) {
|
|
14176
|
+
const isActive = this.activeStep === index;
|
|
14177
|
+
const isCompleted = this.activeStep > index;
|
|
14178
|
+
let forwardBlocked = false;
|
|
14179
|
+
if (index > this.activeStep) {
|
|
14180
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14181
|
+
if (this.isStepDisabled(i)) {
|
|
14182
|
+
forwardBlocked = true;
|
|
14183
|
+
break;
|
|
14184
|
+
}
|
|
14185
|
+
}
|
|
14186
|
+
}
|
|
14187
|
+
const onKey = (e) => {
|
|
14188
|
+
if (forwardBlocked) {
|
|
14189
|
+
return;
|
|
14190
|
+
}
|
|
14191
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14192
|
+
e.preventDefault();
|
|
14193
|
+
this.handleTitleClick(index);
|
|
14194
|
+
}
|
|
14195
|
+
};
|
|
14196
|
+
return (hAsync("div", { class: `horizontal-step ${isActive ? 'is-active' : ''} ${isCompleted ? 'is-completed' : ''}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-label": `Step ${index + 1}: ${step.title}`, "aria-current": isActive ? 'step' : undefined, "aria-disabled": forwardBlocked ? 'true' : 'false' }, hAsync("div", { class: "step-indicator" }, hAsync("span", { class: "step-number" }, index + 1)), hAsync("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
13866
14197
|
}
|
|
13867
14198
|
render() {
|
|
13868
14199
|
const steps = this.parsedSteps;
|
|
14200
|
+
// Horizontal Linear
|
|
14201
|
+
if (this.type === 'linear' && this.orientation === 'horizontal') {
|
|
14202
|
+
return (hAsync("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, hAsync("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
14203
|
+
const isLast = index === steps.length - 1;
|
|
14204
|
+
if (this.activeStep !== index) {
|
|
14205
|
+
return null;
|
|
14206
|
+
}
|
|
14207
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14208
|
+
return (hAsync("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })));
|
|
14209
|
+
})));
|
|
14210
|
+
}
|
|
14211
|
+
// Vertical Linear
|
|
13869
14212
|
if (this.type === 'linear') {
|
|
13870
14213
|
return (hAsync("div", { class: "steps" }, steps.map((step, index) => {
|
|
13871
14214
|
const isLast = index === steps.length - 1;
|
|
13872
|
-
|
|
14215
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14216
|
+
return (hAsync("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })))));
|
|
13873
14217
|
})));
|
|
13874
14218
|
}
|
|
13875
|
-
// Static
|
|
13876
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-
|
|
14219
|
+
// Static
|
|
14220
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), hAsync("div", { class: "content", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter my-16", innerHTML: step.content }))))))));
|
|
13877
14221
|
}
|
|
13878
14222
|
get el() { return getElement(this); }
|
|
13879
14223
|
static get watchers() { return {
|
|
14224
|
+
"disableNext": ["handleDisableNextChange"],
|
|
13880
14225
|
"activeStep": ["activeStepChanged"]
|
|
13881
14226
|
}; }
|
|
13882
14227
|
static get style() { return EdsStepsStyle0; }
|
|
@@ -13886,11 +14231,13 @@ class EdsSteps {
|
|
|
13886
14231
|
"$members$": {
|
|
13887
14232
|
"steps": [1],
|
|
13888
14233
|
"type": [1],
|
|
14234
|
+
"orientation": [1],
|
|
13889
14235
|
"nextLabel": [1, "next-label"],
|
|
13890
14236
|
"backLabel": [1, "back-label"],
|
|
13891
14237
|
"finishLabel": [1, "finish-label"],
|
|
13892
|
-
"disableNext": [
|
|
14238
|
+
"disableNext": [1032, "disable-next"],
|
|
13893
14239
|
"headingLevel": [513, "heading-level"],
|
|
14240
|
+
"collapsibleTitles": [4, "collapsible-titles"],
|
|
13894
14241
|
"activeStep": [32]
|
|
13895
14242
|
},
|
|
13896
14243
|
"$listeners$": undefined,
|
|
@@ -13899,7 +14246,7 @@ class EdsSteps {
|
|
|
13899
14246
|
}; }
|
|
13900
14247
|
}
|
|
13901
14248
|
|
|
13902
|
-
const edsStepsV2Css = ".steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-
|
|
14249
|
+
const edsStepsV2Css = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-41px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role=\"button\"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0}.horizontal-step{display:flex;flex-direction:column;align-items:center;gap:0.5rem;cursor:pointer;flex:1;position:relative}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.25rem;left:50%;width:100%;height:2px;background-color:#e0e0e0;z-index:-1}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--green-500);}.step-indicator{width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease;z-index:2}.horizontal-step.is-active .step-indicator{border-color:var(--green-500);background-color:var(--green-500);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--green-500);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-weight:600;font-size:0.875rem}.step-label{font-size:0.875rem;text-align:center;font-weight:500}.horizontal-step.is-active .step-label{color:var(--green-500)}.step-content{padding:2rem 0;margin-left:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem);margin-right:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem)}.opacity-50{opacity:0.5}";
|
|
13903
14250
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
13904
14251
|
|
|
13905
14252
|
class EdsStepsV2 {
|
|
@@ -13910,48 +14257,74 @@ class EdsStepsV2 {
|
|
|
13910
14257
|
this.next = createEvent(this, "next", 7);
|
|
13911
14258
|
this.back = createEvent(this, "back", 7);
|
|
13912
14259
|
this.handleTitleClick = (index) => {
|
|
13913
|
-
//
|
|
13914
|
-
if (
|
|
13915
|
-
|
|
14260
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14261
|
+
if (this.type === 'linear') {
|
|
14262
|
+
if (index > this.activeStep) {
|
|
14263
|
+
// Prevent jumping forward over disabled steps
|
|
14264
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14265
|
+
if (this.isStepDisabled(i)) {
|
|
14266
|
+
return;
|
|
14267
|
+
}
|
|
14268
|
+
}
|
|
14269
|
+
}
|
|
14270
|
+
this.activeStep = index;
|
|
13916
14271
|
this.step.emit(this.activeStep);
|
|
13917
14272
|
return;
|
|
13918
14273
|
}
|
|
13919
|
-
//
|
|
13920
|
-
|
|
13921
|
-
|
|
14274
|
+
// Non-linear vertical mode can toggle collapse of the current title
|
|
14275
|
+
if (this.orientation === 'vertical' && index === this.activeStep) {
|
|
14276
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14277
|
+
this.step.emit(this.activeStep);
|
|
13922
14278
|
return;
|
|
13923
14279
|
}
|
|
13924
|
-
//
|
|
14280
|
+
// Otherwise just set
|
|
13925
14281
|
this.activeStep = index;
|
|
13926
14282
|
this.step.emit(this.activeStep);
|
|
13927
14283
|
};
|
|
13928
14284
|
this.handleNext = () => {
|
|
13929
14285
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14286
|
+
// On last step: do NOT collapse; keep content visible, just emit finished
|
|
13930
14287
|
if (this.activeStep >= lastIndex) {
|
|
13931
14288
|
this.finished.emit();
|
|
13932
|
-
this.activeStep = -1; // collapse
|
|
14289
|
+
this.activeStep = -1; // collapse the content
|
|
14290
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13933
14291
|
return;
|
|
13934
14292
|
}
|
|
13935
14293
|
const target = this.activeStep + 1;
|
|
13936
14294
|
this.next.emit(target);
|
|
13937
|
-
if (
|
|
13938
|
-
|
|
13939
|
-
|
|
14295
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
14296
|
+
return;
|
|
14297
|
+
}
|
|
14298
|
+
this.activeStep = target;
|
|
14299
|
+
this.step.emit(this.activeStep);
|
|
14300
|
+
// clear boolean form when moving away from a step
|
|
14301
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14302
|
+
this.disableNext = false;
|
|
13940
14303
|
}
|
|
13941
14304
|
};
|
|
13942
14305
|
this.handleBack = () => {
|
|
14306
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14307
|
+
// Recover from collapsed sentinel if it ever occurs
|
|
14308
|
+
if (this.activeStep < 0) {
|
|
14309
|
+
this.activeStep = lastIndex;
|
|
14310
|
+
this.step.emit(this.activeStep);
|
|
14311
|
+
return;
|
|
14312
|
+
}
|
|
13943
14313
|
if (this.activeStep > 0) {
|
|
13944
14314
|
const target = this.activeStep - 1;
|
|
13945
14315
|
this.back.emit(target);
|
|
13946
14316
|
this.activeStep = target;
|
|
13947
14317
|
this.step.emit(this.activeStep);
|
|
14318
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14319
|
+
this.disableNext = false;
|
|
14320
|
+
}
|
|
13948
14321
|
}
|
|
13949
14322
|
};
|
|
13950
14323
|
this.steps = [];
|
|
13951
14324
|
this.type = 'static';
|
|
14325
|
+
this.orientation = 'vertical';
|
|
13952
14326
|
this.imageSrc = undefined;
|
|
13953
14327
|
this.imageWidth = undefined;
|
|
13954
|
-
this.bg = true;
|
|
13955
14328
|
this.message = undefined;
|
|
13956
14329
|
this.nextLabel = 'Next';
|
|
13957
14330
|
this.backLabel = 'Back';
|
|
@@ -13960,57 +14333,87 @@ class EdsStepsV2 {
|
|
|
13960
14333
|
this.headingLevel = 'h4';
|
|
13961
14334
|
this.activeStep = 0;
|
|
13962
14335
|
}
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
14336
|
+
handleDisableNextChange(newValue) {
|
|
14337
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14338
|
+
try {
|
|
14339
|
+
this.disableNext = JSON.parse(newValue);
|
|
14340
|
+
}
|
|
14341
|
+
catch (e) {
|
|
14342
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14343
|
+
}
|
|
13970
14344
|
}
|
|
13971
14345
|
}
|
|
13972
14346
|
activeStepChanged(newValue) {
|
|
14347
|
+
// Clamp and ignore collapsed sentinel
|
|
14348
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14349
|
+
if (newValue > max) {
|
|
14350
|
+
this.activeStep = max;
|
|
14351
|
+
return;
|
|
14352
|
+
}
|
|
14353
|
+
if (newValue < -1) {
|
|
14354
|
+
this.activeStep = -1;
|
|
14355
|
+
return;
|
|
14356
|
+
}
|
|
14357
|
+
if (newValue < 0) {
|
|
14358
|
+
return;
|
|
14359
|
+
} // ignore collapsed state if ever set elsewhere
|
|
14360
|
+
// Emit parentContext to buttons inside the newly active step
|
|
13973
14361
|
setTimeout(() => {
|
|
13974
|
-
|
|
13975
|
-
const activeStepContainer =
|
|
13976
|
-
|
|
13977
|
-
const btns = activeStepContainer.querySelectorAll('eds-button');
|
|
13978
|
-
btns.forEach((btn) => {
|
|
13979
|
-
this.emitContext(btn);
|
|
13980
|
-
});
|
|
13981
|
-
}
|
|
14362
|
+
const host = this.el.shadowRoot || this.el;
|
|
14363
|
+
const activeStepContainer = host.querySelectorAll('.step')[newValue];
|
|
14364
|
+
activeStepContainer === null || activeStepContainer === void 0 ? void 0 : activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13982
14365
|
}, 50);
|
|
13983
14366
|
}
|
|
14367
|
+
componentWillLoad() {
|
|
14368
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14369
|
+
}
|
|
14370
|
+
componentDidLoad() {
|
|
14371
|
+
if (this.type === 'linear') {
|
|
14372
|
+
const host = this.el.shadowRoot || this.el;
|
|
14373
|
+
const btns = host.querySelectorAll('eds-button');
|
|
14374
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
14375
|
+
}
|
|
14376
|
+
}
|
|
13984
14377
|
emitContext(linkElement) {
|
|
13985
14378
|
const event = new CustomEvent('parentContext', {
|
|
13986
14379
|
detail: {
|
|
13987
14380
|
componentName: this.el.tagName.toLowerCase(),
|
|
13988
14381
|
identifier: this.activeStep
|
|
13989
|
-
}
|
|
14382
|
+
},
|
|
14383
|
+
bubbles: true,
|
|
14384
|
+
composed: true
|
|
13990
14385
|
});
|
|
13991
14386
|
linkElement.dispatchEvent(event);
|
|
13992
14387
|
}
|
|
13993
14388
|
articleClasses() {
|
|
13994
|
-
return [
|
|
13995
|
-
this.bg ? 'bg-inverse' : 'bg-default',
|
|
13996
|
-
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
13997
|
-
].join(' ');
|
|
14389
|
+
return ['border-softer effect-focus-within relative rounded-lg border-2'].join(' ');
|
|
13998
14390
|
}
|
|
13999
|
-
/**
|
|
14000
|
-
* Parses the steps property into an array of Step objects.
|
|
14001
|
-
*/
|
|
14002
14391
|
get parsedSteps() {
|
|
14003
14392
|
return parseData(this.steps);
|
|
14004
14393
|
}
|
|
14005
|
-
|
|
14006
|
-
|
|
14394
|
+
isStepDisabled(index) {
|
|
14395
|
+
if (Array.isArray(this.disableNext)) {
|
|
14396
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14397
|
+
}
|
|
14398
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14399
|
+
}
|
|
14400
|
+
isNextDisabledFor(index) {
|
|
14401
|
+
return this.isStepDisabled(index);
|
|
14007
14402
|
}
|
|
14008
|
-
/** Render the semantic heading element */
|
|
14009
14403
|
renderHeading(title, index) {
|
|
14010
14404
|
const Tag = this.headingLevel;
|
|
14011
14405
|
if (this.type === 'linear') {
|
|
14012
14406
|
const isOpen = this.activeStep === index;
|
|
14013
|
-
|
|
14407
|
+
// Check if jumping to this step crosses a disabled step
|
|
14408
|
+
let forwardBlocked = false;
|
|
14409
|
+
if (index > this.activeStep) {
|
|
14410
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14411
|
+
if (this.isStepDisabled(i)) {
|
|
14412
|
+
forwardBlocked = true;
|
|
14413
|
+
break;
|
|
14414
|
+
}
|
|
14415
|
+
}
|
|
14416
|
+
}
|
|
14014
14417
|
const onKey = (e) => {
|
|
14015
14418
|
if (forwardBlocked) {
|
|
14016
14419
|
return;
|
|
@@ -14022,16 +14425,46 @@ class EdsStepsV2 {
|
|
|
14022
14425
|
};
|
|
14023
14426
|
return (hAsync(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
|
|
14024
14427
|
}
|
|
14025
|
-
return hAsync(Tag, { class: "eds-steps__title" }, title);
|
|
14428
|
+
return (hAsync(Tag, { class: "eds-steps__title", onClick: () => this.handleTitleClick(index) }, title));
|
|
14429
|
+
}
|
|
14430
|
+
/** Render horizontal indicator item */
|
|
14431
|
+
renderHorizontalIndicator(step, index) {
|
|
14432
|
+
const isActive = this.activeStep === index;
|
|
14433
|
+
const isCompleted = this.activeStep > index;
|
|
14434
|
+
let forwardBlocked = false;
|
|
14435
|
+
if (index > this.activeStep) {
|
|
14436
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14437
|
+
if (this.isStepDisabled(i)) {
|
|
14438
|
+
forwardBlocked = true;
|
|
14439
|
+
break;
|
|
14440
|
+
}
|
|
14441
|
+
}
|
|
14442
|
+
}
|
|
14443
|
+
const onKey = (e) => {
|
|
14444
|
+
if (forwardBlocked) {
|
|
14445
|
+
return;
|
|
14446
|
+
}
|
|
14447
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14448
|
+
e.preventDefault();
|
|
14449
|
+
this.handleTitleClick(index);
|
|
14450
|
+
}
|
|
14451
|
+
};
|
|
14452
|
+
return (hAsync("div", { class: `horizontal-step ${isActive ? 'is-active' : ''} ${isCompleted ? 'is-completed' : ''}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-label": `Step ${index + 1}: ${step.title}`, "aria-current": isActive ? 'step' : undefined, "aria-disabled": forwardBlocked ? 'true' : 'false' }, hAsync("div", { class: "step-indicator" }, hAsync("span", { class: "step-number" }, index + 1)), hAsync("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
14026
14453
|
}
|
|
14027
14454
|
render() {
|
|
14028
14455
|
const steps = this.parsedSteps;
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
|
|
14456
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14457
|
+
return (hAsync("div", { key: '0f9dbb87f9cd269057183ee969addd55e85b2149', class: this.articleClasses() }, this.imageSrc ? (hAsync("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, hAsync("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (hAsync("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, hAsync("div", { class: "p-24" }, hAsync("span", { class: "text-inverse f-heading-04" }, this.message))))), hAsync("div", { key: 'd636d36c2e95d73c23c269b1faf67870eca97c16', class: "mt-16 pb-20 px-8" }, this.type === 'linear' && this.orientation === 'horizontal' ? (hAsync("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, hAsync("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
14458
|
+
const isLast = index === steps.length - 1;
|
|
14459
|
+
if (this.activeStep !== index) {
|
|
14460
|
+
return null;
|
|
14461
|
+
}
|
|
14462
|
+
return (hAsync("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })));
|
|
14463
|
+
}))) : this.type === 'linear' ? (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: index === 0 ? 'step' : 'step mt-16', key: index }, this.renderHeading(step.title, index), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: index === steps.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null }))))))))) : (hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, this.renderHeading(step.title, index), hAsync("div", { class: "content", id: `eds-step-panel-${index}` }, hAsync("div", { class: "content-body" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content }))))))))))));
|
|
14032
14464
|
}
|
|
14033
14465
|
get el() { return getElement(this); }
|
|
14034
14466
|
static get watchers() { return {
|
|
14467
|
+
"disableNext": ["handleDisableNextChange"],
|
|
14035
14468
|
"activeStep": ["activeStepChanged"]
|
|
14036
14469
|
}; }
|
|
14037
14470
|
static get style() { return EdsStepsV2Style0; }
|
|
@@ -14041,14 +14474,14 @@ class EdsStepsV2 {
|
|
|
14041
14474
|
"$members$": {
|
|
14042
14475
|
"steps": [1],
|
|
14043
14476
|
"type": [1],
|
|
14477
|
+
"orientation": [1],
|
|
14044
14478
|
"imageSrc": [1, "image-src"],
|
|
14045
14479
|
"imageWidth": [2, "image-width"],
|
|
14046
|
-
"bg": [4],
|
|
14047
14480
|
"message": [1],
|
|
14048
14481
|
"nextLabel": [1, "next-label"],
|
|
14049
14482
|
"backLabel": [1, "back-label"],
|
|
14050
14483
|
"finishLabel": [1, "finish-label"],
|
|
14051
|
-
"disableNext": [
|
|
14484
|
+
"disableNext": [1032, "disable-next"],
|
|
14052
14485
|
"headingLevel": [513, "heading-level"],
|
|
14053
14486
|
"activeStep": [32]
|
|
14054
14487
|
},
|
|
@@ -14108,11 +14541,11 @@ class EdsSwitch {
|
|
|
14108
14541
|
: this.labelOff
|
|
14109
14542
|
: 'Toggle switch'
|
|
14110
14543
|
: undefined;
|
|
14111
|
-
return (hAsync("div", { key: '
|
|
14544
|
+
return (hAsync("div", { key: 'a339677097f16cd2dfe180f0a7de26d4963a9f17', class: "switch-container" }, this.labelOff && (hAsync("span", { key: '7db8e71c0f1668fb66f2b1ff049706b80b4683b3', id: `${switchId}-off`, class: "switch-label switch-label--off mr-8" }, this.labelOff)), hAsync("button", { key: 'ce2a8400bc42612bcb22b47ce46762348a7a7b80', 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: {
|
|
14112
14545
|
switch: true,
|
|
14113
14546
|
'switch--checked': this.checked,
|
|
14114
14547
|
'switch--disabled': this.disabled
|
|
14115
|
-
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '
|
|
14548
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: 'c7bbace6e78fe2358ee4b91febec51a280305df0', class: "switch-handle" })), this.labelOn && (hAsync("span", { key: 'b4fa05fc1296a6d906abb4a7fa609d721d01248f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
14116
14549
|
}
|
|
14117
14550
|
get el() { return getElement(this); }
|
|
14118
14551
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -14131,7 +14564,7 @@ class EdsSwitch {
|
|
|
14131
14564
|
}; }
|
|
14132
14565
|
}
|
|
14133
14566
|
|
|
14134
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
14567
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}tr.table-row-default{background-color:transparent}tr.table-row-color:nth-child(even){background-color:var(--grey-100)}tr.table-row-color:nth-child(odd){background-color:transparent}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
14135
14568
|
var EdsTableStyle0 = edsTableCss;
|
|
14136
14569
|
|
|
14137
14570
|
/**
|
|
@@ -14177,6 +14610,24 @@ class EdsTable {
|
|
|
14177
14610
|
}
|
|
14178
14611
|
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14179
14612
|
};
|
|
14613
|
+
this.handleSort = (column) => {
|
|
14614
|
+
if (this.sortColumn === column) {
|
|
14615
|
+
// Toggle direction if same column
|
|
14616
|
+
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
14617
|
+
}
|
|
14618
|
+
else {
|
|
14619
|
+
// New column, default to ascending
|
|
14620
|
+
this.sortColumn = column;
|
|
14621
|
+
this.sortDirection = 'asc';
|
|
14622
|
+
}
|
|
14623
|
+
sendAnalytics({
|
|
14624
|
+
category: 'ui-component',
|
|
14625
|
+
parentContext: null,
|
|
14626
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/sort`,
|
|
14627
|
+
name: column,
|
|
14628
|
+
action: this.sortDirection
|
|
14629
|
+
});
|
|
14630
|
+
};
|
|
14180
14631
|
this.data = null;
|
|
14181
14632
|
this.config = {};
|
|
14182
14633
|
this.rowsPerPage = 10;
|
|
@@ -14186,6 +14637,8 @@ class EdsTable {
|
|
|
14186
14637
|
this.columnSize = 'default';
|
|
14187
14638
|
this.actions = [];
|
|
14188
14639
|
this.actionTemplate = undefined;
|
|
14640
|
+
this.sortingEnabled = false;
|
|
14641
|
+
this.theme = 'color';
|
|
14189
14642
|
this.parsedActions = [];
|
|
14190
14643
|
this.dataColumns = [];
|
|
14191
14644
|
this.tbData = [];
|
|
@@ -14195,6 +14648,8 @@ class EdsTable {
|
|
|
14195
14648
|
this.totalRows = 0;
|
|
14196
14649
|
this.searchQuery = '';
|
|
14197
14650
|
this.containerWidth = 0;
|
|
14651
|
+
this.sortColumn = null;
|
|
14652
|
+
this.sortDirection = 'asc';
|
|
14198
14653
|
}
|
|
14199
14654
|
handleDataChange() {
|
|
14200
14655
|
this.parseData();
|
|
@@ -14277,10 +14732,10 @@ class EdsTable {
|
|
|
14277
14732
|
return this.tbData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
14278
14733
|
}
|
|
14279
14734
|
getPaginatedRows() {
|
|
14280
|
-
const
|
|
14281
|
-
this.totalRows =
|
|
14735
|
+
const sortedRows = this.getSortedRows();
|
|
14736
|
+
this.totalRows = sortedRows.length;
|
|
14282
14737
|
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
14283
|
-
return
|
|
14738
|
+
return sortedRows.slice(start, start + this.rowsPerPage);
|
|
14284
14739
|
}
|
|
14285
14740
|
handlePageChange(newPage) {
|
|
14286
14741
|
this.currentPage = newPage;
|
|
@@ -14360,22 +14815,52 @@ class EdsTable {
|
|
|
14360
14815
|
capitalize(str) {
|
|
14361
14816
|
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
14362
14817
|
}
|
|
14818
|
+
getSortedRows() {
|
|
14819
|
+
const filtered = this.getFilteredRows();
|
|
14820
|
+
if (!this.sortColumn) {
|
|
14821
|
+
return filtered;
|
|
14822
|
+
}
|
|
14823
|
+
return [...filtered].sort((a, b) => {
|
|
14824
|
+
const aVal = a[this.sortColumn];
|
|
14825
|
+
const bVal = b[this.sortColumn];
|
|
14826
|
+
// Handle null/undefined
|
|
14827
|
+
if (aVal == null) {
|
|
14828
|
+
return 1;
|
|
14829
|
+
}
|
|
14830
|
+
if (bVal == null) {
|
|
14831
|
+
return -1;
|
|
14832
|
+
}
|
|
14833
|
+
// Compare values
|
|
14834
|
+
let comparison = 0;
|
|
14835
|
+
if (typeof aVal === 'number' && typeof bVal === 'number') {
|
|
14836
|
+
comparison = aVal - bVal;
|
|
14837
|
+
}
|
|
14838
|
+
else {
|
|
14839
|
+
comparison = String(aVal).localeCompare(String(bVal));
|
|
14840
|
+
}
|
|
14841
|
+
return this.sortDirection === 'asc' ? comparison : -comparison;
|
|
14842
|
+
});
|
|
14843
|
+
}
|
|
14363
14844
|
render() {
|
|
14364
14845
|
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
14365
14846
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
14366
14847
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14367
14848
|
const paginatedRows = this.getPaginatedRows();
|
|
14368
14849
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
14369
|
-
return (hAsync("div", { key: '
|
|
14850
|
+
return (hAsync("div", { key: '0601cea60a05d044a717219e6ff6385ef915defa' }, this.searchEnabled && (hAsync("div", { key: 'de1affaf192dc5e63b16d534d2f518c206ab7010' }, hAsync("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '49f71b5a2481d719cb8fe0547f05a5ae83ad5541', class: "mt-20" }, hAsync("table", { key: 'b63ca6615ed681c741fb2d3ff2675f9cc061d194', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '817b534cca3c2492b69b3816a41b54ec850847ab' }, hAsync("tr", { key: '6cb8735ac56c3fe2acc4a257815bc0d07009118c', class: `m-0 p-0 border border-softer table-row-${this.theme}` }, this.columns.map((col) => {
|
|
14370
14851
|
var _a;
|
|
14371
14852
|
if (col === 'actions') {
|
|
14372
14853
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
14373
14854
|
}
|
|
14374
14855
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
14375
|
-
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col))
|
|
14856
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '0.25rem' } }, hAsync("span", null, this.capitalize(col)), this.sortingEnabled && (hAsync("eds-icon-wrapper", { icon: this.sortColumn === col
|
|
14857
|
+
? this.sortDirection === 'asc'
|
|
14858
|
+
? 'chevron-up'
|
|
14859
|
+
: 'chevron-down'
|
|
14860
|
+
: 'chevron-down', "aria-label": `Sort by ${col}`, onClick: () => this.handleSort(col), style: { cursor: 'pointer' } })))));
|
|
14376
14861
|
}
|
|
14377
14862
|
return null;
|
|
14378
|
-
}))), hAsync("tbody", { key: '
|
|
14863
|
+
}))), hAsync("tbody", { key: '3c8630ed1f47720688bfcdb78c5dbfc84cb238cf' }, paginatedRows.map((row) => (hAsync("tr", { class: `m-0 p-0 border border-softer table-row-${this.theme}` }, this.columns.map((col) => {
|
|
14379
14864
|
var _a;
|
|
14380
14865
|
if (col === 'actions') {
|
|
14381
14866
|
return (hAsync("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
@@ -14390,7 +14875,7 @@ class EdsTable {
|
|
|
14390
14875
|
return (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[col], col)));
|
|
14391
14876
|
}
|
|
14392
14877
|
return null;
|
|
14393
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14878
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '09faef418edc676bb2b60c2439e0652a92fe023d', class: "mt-20" }, hAsync("eds-pagination", { key: '9403d33a37505c73fe3bec652ef93f533bdb4f03', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14394
14879
|
}
|
|
14395
14880
|
get hostEl() { return getElement(this); }
|
|
14396
14881
|
static get watchers() { return {
|
|
@@ -14412,6 +14897,8 @@ class EdsTable {
|
|
|
14412
14897
|
"columnSize": [1, "column-size"],
|
|
14413
14898
|
"actions": [1],
|
|
14414
14899
|
"actionTemplate": [16],
|
|
14900
|
+
"sortingEnabled": [4, "sorting-enabled"],
|
|
14901
|
+
"theme": [1],
|
|
14415
14902
|
"parsedActions": [32],
|
|
14416
14903
|
"dataColumns": [32],
|
|
14417
14904
|
"tbData": [32],
|
|
@@ -14420,7 +14907,9 @@ class EdsTable {
|
|
|
14420
14907
|
"parsedConfig": [32],
|
|
14421
14908
|
"totalRows": [32],
|
|
14422
14909
|
"searchQuery": [32],
|
|
14423
|
-
"containerWidth": [32]
|
|
14910
|
+
"containerWidth": [32],
|
|
14911
|
+
"sortColumn": [32],
|
|
14912
|
+
"sortDirection": [32]
|
|
14424
14913
|
},
|
|
14425
14914
|
"$listeners$": undefined,
|
|
14426
14915
|
"$lazyBundleId$": "-",
|
|
@@ -14601,12 +15090,12 @@ class EdsTabs {
|
|
|
14601
15090
|
}
|
|
14602
15091
|
}
|
|
14603
15092
|
render() {
|
|
14604
|
-
return (hAsync("div", { key: '
|
|
15093
|
+
return (hAsync("div", { key: '36b4771f5dc68c2b2686ece5957b4a54f70d8c38', id: `${this.identifier}` }, hAsync("div", { key: '0b9cac117898a5c8d179c69aaa971c63fed5b12c', 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: '6bb2ca84bd9b12e67bb2e6055cb435c66061f547', role: "tablist", ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14605
15094
|
const TabComponent = 'button';
|
|
14606
15095
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14607
15096
|
const isActive = index === this.activeIndex;
|
|
14608
15097
|
return (hAsync(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index}`, id: `tab-${index}`, ref: (el) => this.setTabRef(el, index), onClick: () => this.handleTabClick(index, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index) }), tab.label || tab.ariaLabel));
|
|
14609
|
-
}))), hAsync("div", { key: '
|
|
15098
|
+
}))), hAsync("div", { key: '7b17d99c5dda91842171c941228b0a0f82d595d4', 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}` })))))));
|
|
14610
15099
|
}
|
|
14611
15100
|
get el() { return getElement(this); }
|
|
14612
15101
|
static get watchers() { return {
|
|
@@ -14669,7 +15158,7 @@ class EdsTag {
|
|
|
14669
15158
|
}
|
|
14670
15159
|
render() {
|
|
14671
15160
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
14672
|
-
return hAsync("span", { key: '
|
|
15161
|
+
return hAsync("span", { key: '0b37fdd21a8828a00daba55a7157e164e7057a88', class: classes }, this.label);
|
|
14673
15162
|
}
|
|
14674
15163
|
static get style() { return EdsTagStyle0; }
|
|
14675
15164
|
static get cmpMeta() { return {
|
|
@@ -14731,7 +15220,7 @@ class EdsTimeline {
|
|
|
14731
15220
|
}
|
|
14732
15221
|
}
|
|
14733
15222
|
render() {
|
|
14734
|
-
return (hAsync("div", { key: '
|
|
15223
|
+
return (hAsync("div", { key: 'cc0184654ced150ab0500a77d89f831530ddc52c', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: '693b53e776bdf110d7f21e68b9e3f8fb6f5eab4b', class: "relative" }, hAsync("div", { key: '030ef1b15f76a75292b2998cb7083da0e5f16bd4', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '0811245c700b23e10a3d2b83504673aee12a8bc4', 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
|
|
14735
15224
|
? [{ label: 'completed', style: 'accent' }]
|
|
14736
15225
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14737
15226
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14905,7 +15394,7 @@ class EdsToastManager {
|
|
|
14905
15394
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14906
15395
|
}
|
|
14907
15396
|
render() {
|
|
14908
|
-
return (hAsync("div", { key: '
|
|
15397
|
+
return (hAsync("div", { key: 'ac2e0d12975d88e9a22db8b92255a597e7f6ea6f', 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) }))))));
|
|
14909
15398
|
}
|
|
14910
15399
|
get hostElement() { return getElement(this); }
|
|
14911
15400
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14944,7 +15433,7 @@ class EdsTooltip {
|
|
|
14944
15433
|
}
|
|
14945
15434
|
render() {
|
|
14946
15435
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14947
|
-
return (hAsync("div", { key: '
|
|
15436
|
+
return (hAsync("div", { key: '1ba27ac30f67a50e39b2bfdff2b4392b4adc948a', class: "relative w-full inline-block group" }, hAsync("slot", { key: 'c84887cde7b92c3684ef61e36039d2e8c96f71f2' }), hAsync("div", { key: 'c7e475e74d977b6ab291ba8a315cdb237742a8e6', class: `absolute ${positionClass}
|
|
14948
15437
|
rounded-xs bg-strongest text-inverse
|
|
14949
15438
|
f-ui-03-light pointer-events-none
|
|
14950
15439
|
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -15008,7 +15497,7 @@ class EdsTrl {
|
|
|
15008
15497
|
Application: { format: 'code' },
|
|
15009
15498
|
'Current TRL Stage': { format: 'text' }
|
|
15010
15499
|
};
|
|
15011
|
-
return (hAsync("div", { key: '
|
|
15500
|
+
return (hAsync("div", { key: '082770e1b722223f6adb457db7f98950df4aa8df', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: 'b79b7cb53e045cb9b3a640ded6a4d841579112b8', "table-data": JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
15012
15501
|
}
|
|
15013
15502
|
static get cmpMeta() { return {
|
|
15014
15503
|
"$flags$": 0,
|
|
@@ -15073,7 +15562,7 @@ class EdsUser {
|
|
|
15073
15562
|
render() {
|
|
15074
15563
|
const user = this.parsedUser;
|
|
15075
15564
|
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
15076
|
-
return (hAsync("div", { key: '
|
|
15565
|
+
return (hAsync("div", { key: '1c4017bd33c81ad29385e164dc8611cfac58eca0', class: "block" }, hAsync("div", { key: 'b692ce5a4b6b424c7e109589bdff5617d4e3b33c', class: "flex items-center" }, hAsync("eds-dropdown", { key: '0df9e3b3c5212433ec88da84edd746a1dce8c763', ref: (el) => (this.dropdownEl = el), label: this.dropdownLabel, intent: this.intent, "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: iconName, class: "text-default", onDropdown: this.handleDropdown }, hAsync("div", { key: 'ef25176f1fc1796dde0b1d56264617d067d06adb', class: "min-w-[280px] p-8" }, hAsync("div", { key: '539532b05094ad47281f7d03c7900b93162e175a', class: "flex gap-x-16", "data-dropdown-no-close": true }, hAsync("eds-avatar", { key: 'ff51082744e2d32e5bc57069ccc99a3214ac3c03', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "black" }), hAsync("div", { key: '1850d3ad72889a446fb8f5f29cf96d7434bc8c81', class: "max-w-full" }, user.name && hAsync("p", { key: '29a458e82be47f3b4ce801e289253158b6f7372b', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && hAsync("p", { key: 'fbb49fa957c32bd90b15dd71691b975c920049bb', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && hAsync("p", { key: 'e634ceb7b74062a19f466abb1f50266370a82747', class: "f-ui-03-light text-light mt-4" }, user.email))), hAsync("div", { key: '3a8a04862973d0e28d7c62d84a6928953fd08df3', class: "text-default flex w-full flex-col gap-y-8" }, hAsync("slot", { key: '50627b6ed0b735079d60b66092181334cd1a954a' })))))));
|
|
15077
15566
|
}
|
|
15078
15567
|
get hostEl() { return getElement(this); }
|
|
15079
15568
|
static get style() { return EdsUserStyle0; }
|
|
@@ -15129,7 +15618,7 @@ class GradientPrimaryPalette {
|
|
|
15129
15618
|
];
|
|
15130
15619
|
}
|
|
15131
15620
|
render() {
|
|
15132
|
-
return (hAsync("ul", { key: '
|
|
15621
|
+
return (hAsync("ul", { key: '6858be14a27601106581efe8fd9221daf4f0ddfc', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
15133
15622
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
15134
15623
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
15135
15624
|
}
|
|
@@ -15202,19 +15691,19 @@ class GradientSecondaryPalette {
|
|
|
15202
15691
|
];
|
|
15203
15692
|
}
|
|
15204
15693
|
render() {
|
|
15205
|
-
return (hAsync("div", { key: '
|
|
15694
|
+
return (hAsync("div", { key: '568e55cca12f97a4afc1a5acffd8ffd64938da44' }, hAsync("ul", { key: '16f19b9d89e83015db81290acfddb3ffc0368aa2', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'd1b205d58e171e2a194685888a919d7178291118', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '3be3ecf27999f572951253260802099e49c60392', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15206
15695
|
background: this.colors[0].background
|
|
15207
|
-
} }, hAsync("div", { key: '
|
|
15696
|
+
} }, hAsync("div", { key: '931046b9a1b98bcb147f3d65f1278aa0104b7620', class: "grid" }, hAsync("span", { key: '15341ab5e4937589bd6495e88af46f52b66c13f6', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'f73ee08c5e15162f757c1f20084c23dc4cd4fa4f', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '414005a29611c2abf4adb9e1429ba46ed946e17c', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'ea676e150c48d8b6f92d664955e435445c00b290', class: "grid" }, hAsync("span", { key: '1b379dba41b32ebf0e79feee6c73646686976123', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: 'b327219cfb31f7f6cc2ef1bfbba30acb676f1df8', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: 'b8192f45ddef48a5adc24b9dbd023ab39212b9b7', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15208
15697
|
background: this.colors[1].background
|
|
15209
|
-
} }, hAsync("div", { key: '
|
|
15698
|
+
} }, hAsync("div", { key: '945802383c8208d374156a239bd902e55e54993b', class: "grid" }, hAsync("span", { key: 'dc9b6be317846769a1e8365c0a3a2c974ccfa23b', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'bbff2c3bf5769945f07db0813c21d7a14d8495b6', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '93d9b9d19f789a9731ed444c74bada150295ce28', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8b87555408c3539afe4bd90c19f3d2034cc57d54', class: "grid" }, hAsync("span", { key: '2d5b21465eeb219886486f77f2f72351c5f054aa', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: 'b16aa8a075b2a7a3676b7f193ba4fa3185e72f49', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '3878257fda9acf2175bc8a152c62b09ec5c4924f' }), hAsync("ul", { key: '8b98d84de8eab1fdf31b21ec30aef8af95f82f4d', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '6eec8f2913b8805929a6931856be3fea0b665fdd', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'fdc4febd09538cc9d2e0d5efee8394d680859aef', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15210
15699
|
background: this.colors[2].background
|
|
15211
|
-
} }, hAsync("div", { key: '
|
|
15700
|
+
} }, hAsync("div", { key: '05e44f954e17e71e93983544efb08fb3f8415efb', class: "grid" }, hAsync("span", { key: 'ff3dac59c5d99e3c3a0bea5454771a46546699dc', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '629424b91fe69ba2348995ea321b5de71b9bb0e1', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '3cadcf4a4d666bfea773aeaf797dcebe0224e9c7', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a725f4f13d4c944a18c3158f735d8dd172e35128', class: "grid" }, hAsync("span", { key: '02c30563e47078f08752ab718e923dacfca8cf6b', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '460cfb91e2f9bf5c9f557b844c0bd1d7e904c9d2', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '14c4755af95cb41e5149db0de90a0f0aef429325', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15212
15701
|
background: this.colors[3].background
|
|
15213
|
-
} }, hAsync("div", { key: '
|
|
15702
|
+
} }, hAsync("div", { key: 'ef619263619ba173c62312b766cb00d6d5098123', class: "grid" }, hAsync("span", { key: 'b5585b81fbc61845e6e5cf0ed23782f904cf3d58', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '346257d86c37f5058f9b4deddf9166f1522970ce', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '59b89beef607a724b2bfed5b9bad2a78e5708b42', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'f8e1a2462a31e0a3901618ec76338dde5ae10943', class: "grid" }, hAsync("span", { key: '6e83c3aaae0ae9ec8df2d6eff620059256e4540f', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '714d4e2a90966381c56671c295ec106581eeddef', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: '0014a9aa45398ea35a1f80b6d2e01b4cbc0e99e0' }), hAsync("ul", { key: 'ef5896480deed0bf14c7ebc583b875e31271cff1', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '130103977198e73dcf1e76c8b247dfd0052e66b4', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '8f971d70daed0c51ae3794f5eeea9b8d5bbd689a', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15214
15703
|
background: this.colors[4].background
|
|
15215
|
-
} }, hAsync("div", { key: '
|
|
15704
|
+
} }, hAsync("div", { key: '8563d07bc98d7a37b1c0eb04957420875247571e', class: "grid" }, hAsync("span", { key: 'b99f1f4d7c044625462542434c6b8941e0b4f8eb', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '1d5524bcd82d295aa9bb502f04a4b3deb6816a4d', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'f3dec7ffb1d822eec1fbda4e189624c52b3d46b3', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '61135fbeab7e0657b589199cdf8caa39b5a97191', class: "grid" }, hAsync("span", { key: '3feae86bababfb8dd0ae4c78e342b6b40a5353d6', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '458f2c43915ff00eff926dc39afe9a56b822df67', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: '6fdbdbd92c843ddaa42d3cad358317ec7dc92723', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15216
15705
|
background: this.colors[5].background
|
|
15217
|
-
} }, hAsync("div", { key: '
|
|
15706
|
+
} }, hAsync("div", { key: '1f0f2dd84c18ab45e5db4f09cdacc4cffdd6db30', class: "grid" }, hAsync("span", { key: '3050e33955bd0c6486ac385b7d89f404fd2ffb47', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: 'c40759231240722eb9c93878d74f4a2028492b3a', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '01746b746ebe1c229169f8c9d0b078bff564edbf', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'c11478286125955885b8e4e650f284876af7144b', class: "grid" }, hAsync("span", { key: '013e2e01b741eaff76a5ab017304dd6f2afb91c4', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: 'ab81b5c103a1dd18b91227848fdd0ed379e92738', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
15218
15707
|
}
|
|
15219
15708
|
static get cmpMeta() { return {
|
|
15220
15709
|
"$flags$": 0,
|
|
@@ -15277,11 +15766,11 @@ class GradientSupportPalette {
|
|
|
15277
15766
|
];
|
|
15278
15767
|
}
|
|
15279
15768
|
render() {
|
|
15280
|
-
return (hAsync("ul", { key: '
|
|
15769
|
+
return (hAsync("ul", { key: '8f8703b8b6ef19574984d630d23f4a078e2683c1', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '6981ecea14309c747455aff6dff44c807391fb22', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '23dc2b606d633779313a98cde5df750a21c50267', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: '3649c7d9a2c815cc6ab1f414f062321f29a00701', class: "grid" }, hAsync("span", { key: '732dfac36b9bb5d9df0dfe96bfd4fb36c5288d2e', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'f0505ec5aaff33b24b19db784b3b16b9f73f18db', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'ca7457b315b438bf41a7f0b1dfd2205d493e1c06', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd29ebbce1ea5dbf25888388bbc3cd73416642c94', class: "grid" }, hAsync("span", { key: '8e503b62bc19087efe3291f2454eec4b00b18a4a', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: '5a12462534602160bce47b9c9f397557f8f1057d', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: '491e060c9201186f987ae4f075eee0efca38b6bc', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'e2084e7d7cfce5a784efbcdaf0c597b749ecc1d0', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: '633ced7174a5242a3dff2d51d53add5a20bcbf0a', class: "grid" }, hAsync("span", { key: 'a0000924f7a9614b4dd8651880b51925f0868487', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '6007da47921d8ae881156f9c57af43a839e71743', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '4aa67182a26f57bbeb9dd251db1cbbe0ba1919fe', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '963ac8d736c7b54366d2e2798e77bc04ac01d539', class: "grid" }, hAsync("span", { key: 'd574f8c3b02fdcd9bca10d186916b848b275ae85', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: '97b5290bd127179160eb6fc8b76914cb620b733c', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: 'f5f7ff4bdad90dff2506112c812fe4c466539f7f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '8517f8e52dbb41ece0da2019d072f7e73fc8d2a0', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15281
15770
|
background: this.colors[2].background
|
|
15282
|
-
} }, hAsync("div", { key: '
|
|
15771
|
+
} }, hAsync("div", { key: '08db76c840f25159be21cf66f8ab1a5e7c0ec206', class: "grid" }, hAsync("span", { key: 'b46181d8eaa69635063b39efeab603d6961428cc', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'a91102f446f351b6be7d27051b947bf72a394606', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '98d406eaa5d641640ca5eb95271fc400282c6f69', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a4cf89fe913982b3c296dc745323630518b9834f', class: "grid" }, hAsync("span", { key: 'ea5a30092e75135670580b40263314a1e16fb725', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: '0a4fe2b93027193d508f593432c7c2589ceedba9', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '117711ee44837fe7545490304e714e4e433c608b', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15283
15772
|
background: this.colors[3].background
|
|
15284
|
-
} }, hAsync("div", { key: '
|
|
15773
|
+
} }, hAsync("div", { key: '49227a94ee6c63902c24ae6e1ce598721f2179e7', class: "grid" }, hAsync("span", { key: '25c2e7c420bf7501c91fb810dcc15b8fabe75211', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '0a7918f45e4315630fdd51701fd502930db1d62d', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '93fd3a9ce6103b162559697d43bd6c79134bd12e', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '9b8af5c7b8c039647035c2252cb9febddf1c12d8', class: "grid" }, hAsync("span", { key: 'c50c154e8587bb41f1c80b61869103d12339308f', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '567798f8d597a9fe26123dd489443e6c752f0b38', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: '4297335389feff02c051beea3bbfee33677f61ac', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '0a5cda329ffc92c33e323ded6c74a2f3b6309797', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: '02babf093dea42599bdd40ae789b795714b638a2', class: "grid" }, hAsync("span", { key: 'a5c2e49f307c005c29b6c3c0d5c37604a20b38d7', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: 'e9281ee3b7c23920e165f90796772c5057f0e591', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '0144a15a5f4276c6d686dd7ea2893ead295d81ad', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '84e6de06e4c31803fa99ef2113866e947631be02', class: "grid" }, hAsync("span", { key: '1a21ce9476d86e83c3a61c591d015d917f34bad2', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: 'c81bd5ea778d4694847bcbd0f23c320e5acc9167', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
15285
15774
|
}
|
|
15286
15775
|
static get cmpMeta() { return {
|
|
15287
15776
|
"$flags$": 0,
|
|
@@ -15335,7 +15824,7 @@ class IncorrectUseOfColors {
|
|
|
15335
15824
|
registerInstance(this, hostRef);
|
|
15336
15825
|
}
|
|
15337
15826
|
render() {
|
|
15338
|
-
return (hAsync("div", { key: '
|
|
15827
|
+
return (hAsync("div", { key: 'dc96e5e7e26b90d55edf211a12cca96331fd50ee', class: "container" }, hAsync("div", { key: '7168395a53d0d1ccb01ea8850dc78b9bafbc80db', class: "mb-8" }, hAsync("eds-alert", { key: '66969d5478be8b0e07dc96e62aac4273fe23927c', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), hAsync("div", { key: '1b31ee746e23288fc37c17e71bc9c5a4d9333a0a', class: "flex" }, hAsync("div", { key: 'f04c1b2349c82720f7e3d9a29c2aaf0ff9d73af0', class: "w-full" }, hAsync("ul", { key: '2ba63701fdde544e5c510e03676d1b1c74061931', 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: '7642247ada8ff3201e3a1273a20cb37860a1581d', class: "w-full" }, hAsync("ul", { key: 'ef03781a8ed2067adc0b8cb65ba9268ba0920f04', 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 } })))))))));
|
|
15339
15828
|
}
|
|
15340
15829
|
static get cmpMeta() { return {
|
|
15341
15830
|
"$flags$": 0,
|
|
@@ -15358,7 +15847,7 @@ class LogoSpace {
|
|
|
15358
15847
|
registerInstance(this, hostRef);
|
|
15359
15848
|
}
|
|
15360
15849
|
render() {
|
|
15361
|
-
return (hAsync("div", { key: '
|
|
15850
|
+
return (hAsync("div", { key: '60dcb01fe1791ae536755d50234c38fe1b8355f2', class: "container" }, hAsync("ul", { key: 'f8392d3dd6620cfe57b39a03c4f427eb201faa2a', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'f89baf7dfe7257402a93c06faf09d6602a169de3', 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: '94ba054bcc5ada258cb95530dcc380184820cc59', class: "logo-container mx-auto w-[300px]", innerHTML: vLogoMargins })), hAsync("li", { key: '226d955d9d0a049d2a99b83a3d1223369c3a75a3', 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: 'ebd3897ab3207f1ddebbf4d9cdbbe6a2069c9952', class: "text-center mt-16" }, hAsync("p", { key: '4e56dc98d24514717e4711204d9bad0c59ca816c', class: "f-body-01" }, "To ensure legibility, follow these minimum size guidelines:"), hAsync("eds-table", { key: 'e04e02f59c35d52d647f18a71a37657a5d7115b3', 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: 'd499f9bf757d0daa9d22fdb41e56058a1d7b3749', 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" }))));
|
|
15362
15851
|
}
|
|
15363
15852
|
static get style() { return LogoSpaceStyle0; }
|
|
15364
15853
|
static get cmpMeta() { return {
|
|
@@ -15382,7 +15871,7 @@ class LogoVariationsHorizontal {
|
|
|
15382
15871
|
registerInstance(this, hostRef);
|
|
15383
15872
|
}
|
|
15384
15873
|
render() {
|
|
15385
|
-
return (hAsync("div", { key: '
|
|
15874
|
+
return (hAsync("div", { key: '0f0c8f6752da65c793c2f7ad20a9e9a038c15f16', class: "container" }, hAsync("ul", { key: 'fb9647dcdb07fc5eec1a84c7458094add83233ba', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '06069a4da6863f7bd714191610ce44730531c25d', 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: 'a2c24b224acb98ea80b4d43695a0cae87de8f311', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: 'a672294c291984c387fb5ddfbbf89a5209cf88d3', class: "coloured" }, hAsync("eds-logo", { key: 'f6540444fabfeb1313103ecc860c9543335bf693', type: "no-bg", href: "#" }))), hAsync("li", { key: '769c0e2d304e117ae5925a0d2d981f85cb31281f', 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: '1c4b6cb455ef32c5b94bead22b7116aec3b9233c', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '8e3c36097fa1dd5d0fa8cdafe00daaaa035f5463', class: "bg-default" }, hAsync("eds-logo", { key: 'cdd92bd788afa9e127ad6163ce132f2e6d620c95', type: "black", href: "#" }))), hAsync("li", { key: 'e8012388b0209873684706e16306144174212b6c', 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: '49b42b62f6f769c81526add05822df44941bba5c', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: '4ba6fc32175d6b6dd3f38e551eb80f4e5d1144d0' }, hAsync("eds-logo", { key: '3ebe5f6551a960873a82af20a4d415b175b7f8de', type: "color-white", href: "#" }))))));
|
|
15386
15875
|
}
|
|
15387
15876
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15388
15877
|
static get cmpMeta() { return {
|
|
@@ -15414,7 +15903,7 @@ class LogoVariationsTabs {
|
|
|
15414
15903
|
}
|
|
15415
15904
|
}
|
|
15416
15905
|
render() {
|
|
15417
|
-
return hAsync("div", { key: '
|
|
15906
|
+
return hAsync("div", { key: 'b05bf7f07b39c2119f4716da95f34372f75f6137', class: "container" }, this.renderContent());
|
|
15418
15907
|
}
|
|
15419
15908
|
static get cmpMeta() { return {
|
|
15420
15909
|
"$flags$": 0,
|
|
@@ -15441,7 +15930,7 @@ class LogoVariationsVertical {
|
|
|
15441
15930
|
this.type = undefined;
|
|
15442
15931
|
}
|
|
15443
15932
|
render() {
|
|
15444
|
-
return (hAsync("div", { key: '
|
|
15933
|
+
return (hAsync("div", { key: '7d88d267037ee805159ea73f27b15d2e7ec0e1b6', class: "container" }, hAsync("ul", { key: '848defdb55c164b9fb3cee0b1425acbcbfeda209', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '9e5d7a1218da406b571ef4a8026aabfd2618846d', 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: 'ed5bc7c77061eee46c95e719aa938d1374d413c6', class: "f-body-01 text-center my-4" }, "#1 Coloured"), hAsync("div", { key: 'b508a4c0fb271a880e16a375cff36ecfe70d55a7', class: "mx-auto coloured w-[300px]" }, hAsync("eds-logo", { key: 'e92421e0d04d84ae40d36bdd1d7d20b0582da600', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("li", { key: '1a6c57792d0b9a7fd89036d963556def55a9a3cf', 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: '56b18c6f6932f92995b5e936dc271f07fdcb2896', class: "f-body-01 text-center my-4" }, "#2 Black & White"), hAsync("div", { key: '8d77de5838230e17a30d6327c71a3e93cf52c8db', class: "mx-auto bg-default w-[300px]" }, hAsync("eds-logo", { key: 'f818a1028b59b30aa2d7ddd35146e81d332f653a', orientation: "vertical", type: "black", href: "#" }))), hAsync("li", { key: '0ce7ef6e6f3e95d43a8133c12a0b2b57bfb9b67a', 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: '8a0e61ff35121c1c3e60320d4023e44e639cee72', class: "f-body-01 text-center my-4" }, "#3 Dark"), hAsync("div", { key: '412f19f119a71743bae3a824874e1a1dcafcd258', class: "mx-auto w-[300px]" }, hAsync("eds-logo", { key: 'a62f01cb47568231e90facf00ab74481e818a40b', orientation: "vertical", type: "color-white", href: "#" }))))));
|
|
15445
15934
|
}
|
|
15446
15935
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15447
15936
|
static get cmpMeta() { return {
|
|
@@ -15468,7 +15957,7 @@ class LogoWrongUsage {
|
|
|
15468
15957
|
registerInstance(this, hostRef);
|
|
15469
15958
|
}
|
|
15470
15959
|
render() {
|
|
15471
|
-
return (hAsync("div", { key: '
|
|
15960
|
+
return (hAsync("div", { key: '37850687dda1175073866d4898102d185ced3e2d', class: "container" }, hAsync("ul", { key: '2734a992d3ee5249c024dbb982fc452334645dff', class: "not-prose grid-layout grid-cols-6 gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '26514741d093eb98a9898df179a5308864116b2a', 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: '8162f53c61380494f776122dd5e7183dbaa5a941', class: "mx-auto no-other-bg-color logo", innerHTML: hLogoColor }), hAsync("p", { key: 'c8a6b7af377d7bd214f3fa85d0032af5d9c64b58', class: "f-ui-02 text-center" }, "Do not use with backgrounds that make legibility difficult")), hAsync("li", { key: 'c17db6db70ecaf33bf39942d18d11041d233c6e0', 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: 'c0e542cfa0cec0729dd56f4b7dd5e3e514a4c375', class: "mx-auto no-other-color logo non-brand-color", innerHTML: hLogoColor }), hAsync("p", { key: '10ee19b46078ea7fcaad394adff676f7a90d39e1', class: "f-ui-02 text-center" }, "Do not apply other colors")), hAsync("li", { key: '7e02bb8a4d1ba255a7a2323bbf7056788822301d', 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: '7901b9c28eaed72f2816cc4fa16461a64b2b876c', class: "mx-auto distorted logo", innerHTML: hLogoColor }), hAsync("p", { key: '011b641e58c216d125bf0fe0495be11c65710a13', class: "f-ui-02 text-center" }, "Do not deform the logo")), hAsync("li", { key: '4dd09cd947f29519c2c7b3f78dd98bd40a80b54f', 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: 'c19319983842106734c63c103fb04b5e5fc32e39', class: "mx-auto effects logo", innerHTML: hLogoColor }), hAsync("p", { key: '2de8694d6e8b790086a5d9e2ce8c2454ad02e1fb', class: "f-ui-02 text-center" }, "Do not apply effects")), hAsync("li", { key: '9e70df0ce29692c5f70ac4849fa0765fbf979ad8', 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: 'd0f778976c8dc89ec22174b56600aa69f15a45a2', class: "mx-auto rotated logo", innerHTML: hLogoColor }), hAsync("p", { key: 'e8d9c2bafc5eebfd2f289fee9cfb916abe77b04a', class: "f-ui-02 text-center" }, "Do not rotate the logo")), hAsync("li", { key: 'd590b661312fd6b56199ee0790a10acda0b8aadb', 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: 'cfeb7d7a4af9fc595c0d4e083ad670a170ca2885', class: "mx-auto outlined logo", innerHTML: hLogoColor }), hAsync("p", { key: '15f6ff0ba150d42f18a19973d167510ae4c95c6b', class: "f-ui-02 text-center" }, "Do not apply outlines")), hAsync("li", { key: '56c45146f541a7fb8814810a31e8b0393c976281', 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: '1ded3e72b457a639184f4f3f0801eb62af87f536', class: "mx-auto" }, hAsync("div", { key: '67661f2f1273b925779001cb94b345771a74d726', class: "bg-accent p-16" }, hAsync("div", { key: '33d473c812643bf3fbc87170c80638566de1b0b5', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: '7a5edbc5ae089dd87eef05baa755caf8e4a5bde3', 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"))))));
|
|
15472
15961
|
}
|
|
15473
15962
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15474
15963
|
static get cmpMeta() { return {
|
|
@@ -15512,7 +16001,7 @@ class SvgRepository {
|
|
|
15512
16001
|
icon: { format: 'svg' },
|
|
15513
16002
|
name: { format: 'bold' }
|
|
15514
16003
|
};
|
|
15515
|
-
return (hAsync("div", { key: '
|
|
16004
|
+
return (hAsync("div", { key: '996c9a1b05d34ec171b8c58098fb3fd8e28aa81f', class: "full-width" }, hAsync("eds-table", { key: 'bc8d69bba7a6e6580ee808935fe7845194f6d38b', "table-data": JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true })));
|
|
15516
16005
|
}
|
|
15517
16006
|
get hostEl() { return getElement(this); }
|
|
15518
16007
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -15769,7 +16258,7 @@ class TokenList {
|
|
|
15769
16258
|
render() {
|
|
15770
16259
|
// Check if `show` prop is provided; if not, display all sections
|
|
15771
16260
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15772
|
-
return (hAsync("section", { key: '
|
|
16261
|
+
return (hAsync("section", { key: '2fcc5dd08b84b47b561c6f32f49c65b90560069f', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15773
16262
|
// Only render sections that exist in `colors`
|
|
15774
16263
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15775
16264
|
}
|
|
@@ -15802,7 +16291,7 @@ class TokenRadii {
|
|
|
15802
16291
|
registerInstance(this, hostRef);
|
|
15803
16292
|
}
|
|
15804
16293
|
render() {
|
|
15805
|
-
return (hAsync("section", { key: '
|
|
16294
|
+
return (hAsync("section", { key: '2afbed04fa53695bfc13275ab6d6f77d314e4d14', class: "w-full mt-28" }, hAsync("ul", { key: '87490ba0d46027993d10cdf5f5deef419cc147c1', 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" }))))))));
|
|
15806
16295
|
}
|
|
15807
16296
|
static get cmpMeta() { return {
|
|
15808
16297
|
"$flags$": 0,
|
|
@@ -15831,7 +16320,7 @@ class TokenRatios {
|
|
|
15831
16320
|
registerInstance(this, hostRef);
|
|
15832
16321
|
}
|
|
15833
16322
|
render() {
|
|
15834
|
-
return (hAsync("section", { key: '
|
|
16323
|
+
return (hAsync("section", { key: '4dcf52cac610208030db8af7681cfee611f02a62', class: "w-full" }, hAsync("eds-section-core", { key: 'cb571aba92bc59c7b458281258362ca91becc09b', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: '734f5db424dce811f5b6508c49c9f4c9ea4f4474', 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: {
|
|
15835
16324
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15836
16325
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15837
16326
|
maxWidth: '300px'
|
|
@@ -15873,7 +16362,7 @@ class TokenShadows {
|
|
|
15873
16362
|
registerInstance(this, hostRef);
|
|
15874
16363
|
}
|
|
15875
16364
|
render() {
|
|
15876
|
-
return (hAsync("section", { key: '
|
|
16365
|
+
return (hAsync("section", { key: '56dcf320ff3ee79c493757a3cfe27c1f7bca33d9', class: "w-full mt-28" }, hAsync("ul", { key: '8113c23d2eaab9abd28acb618c9599d5be1262a6', 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]" })))))))));
|
|
15877
16366
|
}
|
|
15878
16367
|
static get cmpMeta() { return {
|
|
15879
16368
|
"$flags$": 0,
|
|
@@ -15893,7 +16382,7 @@ class TokenSpacing {
|
|
|
15893
16382
|
registerInstance(this, hostRef);
|
|
15894
16383
|
}
|
|
15895
16384
|
render() {
|
|
15896
|
-
return (hAsync("div", { key: '
|
|
16385
|
+
return (hAsync("div", { key: '45442561f72445e84c257ebc9d30f2147303427a', class: "w-full" }, hAsync("ul", { key: 'cca0cba4260ddebb2b0f1e39a9cc96d067d3fa73', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '8c38c0e0802683d9ba2cb38dff013aa02650bbe0', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '406aac1f24a9a812b7405b5e323e3cb73574fb79', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'ec7f90ce92020a91b57e28545ede5d782d4a7dcc', class: "spacing-sample m-16 bg-strong" }, hAsync("span", { key: 'e84d0c8ccc0c6be14ca41bceece9cc63a8137dfb', class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), hAsync("li", { key: 'dce507afa0eac9ddd430d8b2034b943e844a9b32', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'cc986ee89d249ac351c6ed81650668a8ba8ab139', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '1778c2032e322a0cde34987e5ecaaeec38933892', class: "spacing-sample ml-64 bg-strong" }, hAsync("span", { key: '8ee98a9847db2baf69adf1e5919ecefa86a1dea8', class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: '589485906ebebf8fdc348e995e6aae0dcd4124fd', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'b94fe2cd4f93f7e52fc82423d728f5ffd3cb7dd1', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '5c6ed8a3c4573eb4f7644e18a4e6c10cab958e2a', class: "spacing-sample mt-32 bg-strong" }, hAsync("span", { key: 'bec15bc9092c36295bf012f82fd34e8eee5954cf', class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'e9568891252c4597431f117f0f8c9136d30c3658', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '1fac252cd3bfd2cb1f9aa3b419e04f570f57f4e8', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'd59e7e5f180ab164837c5b94cf3f61a7084a6385', class: "spacing-sample p-32 bg-strong" }, hAsync("span", { key: '73dc397292ae7ff9c532b4c6c9f2a42c35945493', class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'af9c0e9fb5fd5c314d34f2cf6b2bdc9a63133c0d', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '498a46c66ec671f41681f458615d69a741784761', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '6e511b973ff53d748e99728fb1b186796437bbca', class: "spacing-sample pt-32 bg-strong" }, hAsync("span", { key: 'cae79c38937cae94930fa8750fb308ab4329de45', class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '67e0ec47dfcbaf8c51969973137c4ba87ee6337d', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'aa8003ce3db28c8697d57728c02797324dffbf1f', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'aeaa333a1e0fbfaf5d2fcc49c4e8180e94b91b03', class: "spacing-sample pl-32 bg-strong" }, hAsync("span", { key: '708a18ad1ebeb0a24fcea4d06aa42c024bb2258a', class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32")))))));
|
|
15897
16386
|
}
|
|
15898
16387
|
static get cmpMeta() { return {
|
|
15899
16388
|
"$flags$": 0,
|
|
@@ -16111,7 +16600,7 @@ class TokenTypography {
|
|
|
16111
16600
|
registerInstance(this, hostRef);
|
|
16112
16601
|
}
|
|
16113
16602
|
render() {
|
|
16114
|
-
return (hAsync("section", { key: '
|
|
16603
|
+
return (hAsync("section", { key: '859a416f39219fa58601b57eab3d3ceeceb072fa', class: "w-full" }, hAsync("ul", { key: '3c29d182685328e8bf1ae8b46909426c2b2164cf', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
16115
16604
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
16116
16605
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
16117
16606
|
fontFamily: typography.families.sans,
|
|
@@ -16235,6 +16724,7 @@ registerComponents([
|
|
|
16235
16724
|
EdsRating,
|
|
16236
16725
|
EdsSectionCore,
|
|
16237
16726
|
EdsSectionHeading,
|
|
16727
|
+
EdsSidebar,
|
|
16238
16728
|
EdsSocialNetworks,
|
|
16239
16729
|
EdsSpinner,
|
|
16240
16730
|
EdsSplashScreen,
|