@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.js
CHANGED
|
@@ -2335,7 +2335,7 @@ class ColorPrimaryPalette {
|
|
|
2335
2335
|
];
|
|
2336
2336
|
}
|
|
2337
2337
|
render() {
|
|
2338
|
-
return (hAsync("ul", { key: '
|
|
2338
|
+
return (hAsync("ul", { key: '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))))))));
|
|
2339
2339
|
}
|
|
2340
2340
|
static get cmpMeta() { return {
|
|
2341
2341
|
"$flags$": 0,
|
|
@@ -2407,7 +2407,7 @@ class ColorSecondaryPalette {
|
|
|
2407
2407
|
this.show = undefined;
|
|
2408
2408
|
}
|
|
2409
2409
|
render() {
|
|
2410
|
-
return (hAsync("ul", { key: '
|
|
2410
|
+
return (hAsync("ul", { key: '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))))))));
|
|
2411
2411
|
}
|
|
2412
2412
|
static get cmpMeta() { return {
|
|
2413
2413
|
"$flags$": 0,
|
|
@@ -2481,7 +2481,7 @@ class ColorSupportPalette {
|
|
|
2481
2481
|
return 'text-default';
|
|
2482
2482
|
}
|
|
2483
2483
|
render() {
|
|
2484
|
-
return (hAsync("ul", { key: '
|
|
2484
|
+
return (hAsync("ul", { key: 'f8847f5ebf1c015d60cc1b699b4cfbeceff77b59', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => {
|
|
2485
2485
|
// compute once
|
|
2486
2486
|
const textClass = this.getTextColor(color.background);
|
|
2487
2487
|
return (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' }, class: textClass })), hAsync("div", { class: "grid" }, hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneC), hAsync("span", { class: `f-body-02 ${textClass}` }, color.pantoneU)))));
|
|
@@ -2507,26 +2507,25 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2507
2507
|
"."),
|
|
2508
2508
|
hAsync("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
|
|
2509
2509
|
hAsync("p", null, "This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),
|
|
2510
|
-
hAsync("
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" }),
|
|
2510
|
+
hAsync("div", { class: "mt-16" },
|
|
2511
|
+
hAsync("eds-steps", { type: "static", steps: [
|
|
2512
|
+
{
|
|
2513
|
+
title: 'Import the Loader Module',
|
|
2514
|
+
content: 'The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components.'
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
title: 'Register Custom Elements',
|
|
2518
|
+
content: 'Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM.'
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
title: 'Lazy Loading in Action',
|
|
2522
|
+
content: "Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
title: 'Optimized Performance',
|
|
2526
|
+
content: 'By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed.'
|
|
2527
|
+
}
|
|
2528
|
+
] })),
|
|
2530
2529
|
hAsync("h2", null, "Load the variables and styles"),
|
|
2531
2530
|
hAsync("p", null,
|
|
2532
2531
|
"To directly use only the produced variables (colors, breakpoints, typography) add the tag below to the",
|
|
@@ -2538,13 +2537,16 @@ const DocsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
|
2538
2537
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
2539
2538
|
' ',
|
|
2540
2539
|
hAsync("code", null, "head"),
|
|
2541
|
-
". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to css configurations."),
|
|
2540
|
+
". Use this when you want quick access to ready-made utilities for building your own components or applications and you do not wish to dive deep to dynamic css configurations."),
|
|
2542
2541
|
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
2543
2542
|
hAsync("p", null,
|
|
2544
2543
|
"Note that, loading either the variables or the predefined CSS framework above,",
|
|
2545
2544
|
' ',
|
|
2546
2545
|
hAsync("b", null, "automatically loads the fonts so you can skip loading them separately"),
|
|
2547
|
-
".")
|
|
2546
|
+
"."),
|
|
2547
|
+
hAsync("h2", null, "Example"),
|
|
2548
|
+
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
2549
|
+
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"></eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
2548
2550
|
|
|
2549
2551
|
const DocsInstallation = () => (hAsync("div", null,
|
|
2550
2552
|
hAsync("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
@@ -2573,6 +2575,13 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2573
2575
|
hAsync("h2", null, "Vue Wrappers"),
|
|
2574
2576
|
hAsync("p", null, "To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),
|
|
2575
2577
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
2578
|
+
hAsync("h2", null, "Vue Router Initialization"),
|
|
2579
|
+
hAsync("p", null,
|
|
2580
|
+
"For better component handling and to avoid potential asynchronous initialization issues (such as runtime errors from components that depend on the router context), make sure the application waits for the router to fully initialize before mounting the app. Use the following pattern in your ",
|
|
2581
|
+
hAsync("code", null, "main.ts"),
|
|
2582
|
+
":"),
|
|
2583
|
+
hAsync("eds-code-block", { code: "import { createApp } from 'vue';\nimport App from './App.vue';\nimport router from './router';\n\nconst app = createApp(App);\napp.use(router);\n\n// Wait for router to finish resolving initial navigation\nrouter.isReady().then(() => {\n app.mount('#root');\n});\n", language: "javascript", "copy-label": "Copy Code" }),
|
|
2584
|
+
hAsync("p", null, "This ensures that all components relying on routing information (e.g., navigation links, route guards, or async route data) are rendered only after the router is ready, preventing timing-related errors or unexpected behavior at startup."),
|
|
2576
2585
|
hAsync("h2", null,
|
|
2577
2586
|
"Passing Properties to Custom Elements Using the ",
|
|
2578
2587
|
hAsync("b", null, ".prop"),
|
|
@@ -2594,7 +2603,7 @@ const DocsVue = () => (hAsync("div", null,
|
|
|
2594
2603
|
hAsync("b", null, ".prop"),
|
|
2595
2604
|
" modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
|
|
2596
2605
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
2597
|
-
hAsync("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible"
|
|
2606
|
+
hAsync("eds-code-block", { code: '\n<template>\n <div>\n <EdsHeader headerVariant="strong"></EdsHeader>\n <!-- render the splash until we manually hide it -->\n <EdsSplashScreen inverse="false" />\n\n <!-- then show main UI -->\n <div v-if="!splashVisible" style="padding: 10px;">\n <EdsSteps \n :steps="JSON.stringify(stepsdata)"\n type="linear"\n />\n </div>\n </div>\n</template>\n\n<script>\nimport { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: { EdsHeader, EdsSplashScreen, EdsSteps },\n data() {\n return {\n stepsdata: [\n { title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },\n { title: "Process Overview", content: "Review the detailed steps and understand the workflow." }\n ],\n splashVisible: true\n };\n },\n methods: {\n delay(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n },\n async initialize() {\n try {\n // simulate your init work\n await this.delay(2000);\n\n // fire the built-in event that EdsSplashScreen listens for\n window.dispatchEvent(new Event("hideSplash"));\n } catch (e) {\n console.error("Init error", e);\n window.dispatchEvent(new Event("hideSplash"));\n } finally {\n // show the rest of the app\n this.splashVisible = false;\n }\n }\n },\n mounted() {\n this.initialize();\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
2598
2607
|
|
|
2599
2608
|
const DocsAngular = () => (hAsync("div", null,
|
|
2600
2609
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -2632,7 +2641,7 @@ class ComponentsSection {
|
|
|
2632
2641
|
}
|
|
2633
2642
|
}
|
|
2634
2643
|
render() {
|
|
2635
|
-
return hAsync("div", { key: '
|
|
2644
|
+
return hAsync("div", { key: '2716938c52b8f67e031d8508745cccb8f015a110', class: "container" }, this.renderContent());
|
|
2636
2645
|
}
|
|
2637
2646
|
static get cmpMeta() { return {
|
|
2638
2647
|
"$flags$": 0,
|
|
@@ -2710,7 +2719,7 @@ class CorrectUseOfColors {
|
|
|
2710
2719
|
registerInstance(this, hostRef);
|
|
2711
2720
|
}
|
|
2712
2721
|
render() {
|
|
2713
|
-
return (hAsync("div", { key: '
|
|
2722
|
+
return (hAsync("div", { key: '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 } })))))))));
|
|
2714
2723
|
}
|
|
2715
2724
|
static get cmpMeta() { return {
|
|
2716
2725
|
"$flags$": 0,
|
|
@@ -2749,7 +2758,7 @@ class DocsContent {
|
|
|
2749
2758
|
}
|
|
2750
2759
|
}
|
|
2751
2760
|
render() {
|
|
2752
|
-
return hAsync("div", { key: '
|
|
2761
|
+
return hAsync("div", { key: 'dfc087cb088b4505939bcf69559639f0a2075255', class: "container" }, this.renderContent());
|
|
2753
2762
|
}
|
|
2754
2763
|
static get cmpMeta() { return {
|
|
2755
2764
|
"$flags$": 0,
|
|
@@ -2782,7 +2791,7 @@ class DocsPalettes {
|
|
|
2782
2791
|
}
|
|
2783
2792
|
}
|
|
2784
2793
|
render() {
|
|
2785
|
-
return hAsync("div", { key: '
|
|
2794
|
+
return hAsync("div", { key: 'dd4c39b9b45b3ac9d7e54898e27c09b3c6b4259d', class: "container" }, this.renderContent());
|
|
2786
2795
|
}
|
|
2787
2796
|
static get cmpMeta() { return {
|
|
2788
2797
|
"$flags$": 0,
|
|
@@ -2940,10 +2949,10 @@ class EdsAccordion {
|
|
|
2940
2949
|
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2941
2950
|
*/
|
|
2942
2951
|
render() {
|
|
2943
|
-
return (hAsync("div", { key: '
|
|
2952
|
+
return (hAsync("div", { key: '095474500f7c60f20e4d737188001d2f3084dbcc', ref: (el) => (this.wrapperRef = el), class: `flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2944
2953
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2945
2954
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2946
|
-
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: '
|
|
2955
|
+
${this.description ? 'min-h-56' : ''}` }, hAsync("h3", { key: 'f090fbe3632df8302046f1178e82b8affc4cc821', ref: (el) => (this.headerRef = el), class: "mr-auto f-heading-06 text-left absolute inset-x-16 break-words top-16 pr-40" }, this.heading), hAsync("div", { key: '0a30ab8c27cadbb342fc57f6393111c84f10a664', class: "ml-auto" }, hAsync("eds-button", { key: '01f4658df8181b63b71a2e0d2a67e8f8b58efbb7', id: "toggleAccordion", intent: this.buttonIntent, "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '9f3b5a0e425c2dffe3b6fe40fa33b020d64256d8', class: `w-full`, style: Number.isFinite(this.headerHeight) ? { marginTop: `${this.headerHeight}px` } : {} }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: '414735d7d982de76d8a1b8db24aa9a569eba37c7', id: "accordionSection", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '11097a0646b18f728af494c14aa4cc0e5335defe', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-4`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '88414c40490aa77166d23868f16556b9356279a7', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '8070a7676ca8fba065f813852a2e0cf4146f3374' })))))));
|
|
2947
2956
|
}
|
|
2948
2957
|
get el() { return getElement(this); }
|
|
2949
2958
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3120,12 +3129,12 @@ class EdsAlert {
|
|
|
3120
3129
|
}
|
|
3121
3130
|
render() {
|
|
3122
3131
|
const ariaLabel = this.intent !== 'default' ? `${this.intent} alert` : 'alert';
|
|
3123
|
-
return (hAsync("div", { key: '
|
|
3132
|
+
return (hAsync("div", { key: 'd8f0a45ddbaf3d3eb284751e33ddfdce2e13b67a', class: alertStyles({
|
|
3124
3133
|
intent: this.intent,
|
|
3125
3134
|
brd: this.brd,
|
|
3126
3135
|
direction: this.direction,
|
|
3127
3136
|
withBtn: this.withBtn
|
|
3128
|
-
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: '
|
|
3137
|
+
}), role: "alert", "aria-label": ariaLabel, "aria-live": this.intent === 'error' ? 'assertive' : 'polite', "aria-labelledby": "alert-message", "aria-describedby": this.withBtn ? 'alert-action' : undefined }, hAsync("p", { key: '179862c141a2ce05fa9f8562be7e64196baa3922', id: "alert-message", class: "f-ui-01 py-8", innerHTML: this.message }), this.withBtn && (hAsync("div", { key: '3677358bd563a3e2ee1b74309dc4fb6c84ac475f', id: "alert-action" }, this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : (hAsync("eds-button", { class: "eds-alert-button", label: this.pressableLabel, intent: "secondary", onClick: () => this.handleAction() }))))));
|
|
3129
3138
|
}
|
|
3130
3139
|
get el() { return getElement(this); }
|
|
3131
3140
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -3176,7 +3185,7 @@ class EdsAppRoot {
|
|
|
3176
3185
|
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
3177
3186
|
}
|
|
3178
3187
|
render() {
|
|
3179
|
-
return (hAsync("div", { key: '
|
|
3188
|
+
return (hAsync("div", { key: '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."))));
|
|
3180
3189
|
}
|
|
3181
3190
|
static get cmpMeta() { return {
|
|
3182
3191
|
"$flags$": 9,
|
|
@@ -3259,7 +3268,7 @@ class EdsAvatar {
|
|
|
3259
3268
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3260
3269
|
*/
|
|
3261
3270
|
render() {
|
|
3262
|
-
return (hAsync("div", { key: '
|
|
3271
|
+
return (hAsync("div", { key: '7b5bf31c794c9bbddd2976fdd5a273842a75603a', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
3263
3272
|
}
|
|
3264
3273
|
static get style() { return EdsAvatarStyle0; }
|
|
3265
3274
|
static get cmpMeta() { return {
|
|
@@ -3290,7 +3299,7 @@ class EdsBlockBreak {
|
|
|
3290
3299
|
this.inverse = false;
|
|
3291
3300
|
}
|
|
3292
3301
|
render() {
|
|
3293
|
-
return hAsync("hr", { key: '
|
|
3302
|
+
return hAsync("hr", { key: 'dd9b98d66f195135ff2fb1374a56d4c670e43d3e', class: `${this.inverse ? 'border-default' : 'border-softer'} my-16 inline-block w-full border-t-2` });
|
|
3294
3303
|
}
|
|
3295
3304
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3296
3305
|
static get cmpMeta() { return {
|
|
@@ -3450,7 +3459,7 @@ class EdsBreadcrumb {
|
|
|
3450
3459
|
*/
|
|
3451
3460
|
render() {
|
|
3452
3461
|
const itemsToRender = this.getTruncatedItems();
|
|
3453
|
-
return (hAsync("nav", { key: '
|
|
3462
|
+
return (hAsync("nav", { key: '4894fb9e6b37ef84880a62f4dcd3289dcb9cab38', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd69405fcee024465d645d9cdbb17189998a94b95', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3454
3463
|
const isLast = index === itemsToRender.length - 1;
|
|
3455
3464
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3456
3465
|
const { fullLabel } = this.getLabels(item, isLast);
|
|
@@ -3616,7 +3625,6 @@ class EdsButton {
|
|
|
3616
3625
|
this.size = 'small';
|
|
3617
3626
|
this.iconPos = 'right';
|
|
3618
3627
|
this.iconSmall = false;
|
|
3619
|
-
this.extraClass = undefined;
|
|
3620
3628
|
this.triggerClick = undefined;
|
|
3621
3629
|
}
|
|
3622
3630
|
handleParentContext(event) {
|
|
@@ -3667,7 +3675,7 @@ class EdsButton {
|
|
|
3667
3675
|
});
|
|
3668
3676
|
const ElementType = this.elementType;
|
|
3669
3677
|
const isInteractive = !this.disabled && !this.loading;
|
|
3670
|
-
return (hAsync(Host, { key: '
|
|
3678
|
+
return (hAsync(Host, { key: '25a7b4ffda3df65e91c77a18becd45bc40973f3c' }, hAsync(ElementType, { key: '0f00d82a37f3189b862015eb2d915f2364b6d75d', tabindex: isInteractive ? '0' : '-1', "aria-label": this.label ? undefined : this.ariaLabel, "aria-disabled": this.disabled || this.loading ? 'true' : undefined, "aria-busy": this.loading ? 'true' : undefined, disabled: this.elementType === 'button' ? this.disabled || this.loading : undefined, role: this.elementType === 'a' ? 'button' : undefined, class: `${classes || ''}`, onClick: (event) => this.handleClick(event), onKeyDown: (event) => this.handleKeyDown(event) }, this.label && (hAsync("span", { key: '6e45dfefb4805eef0574f7462becca6cde85dbc0', class: this.loading ? 'opacity-0' : '', "aria-hidden": this.loading ? 'true' : undefined }, this.label)), this.loading && (hAsync("span", { key: '9909c70db39a039b883854caff816d25f132b866', class: "absolute inset-0 flex items-center justify-center", "aria-hidden": "true" }, hAsync("span", { key: '367cd65a13f81cbcb12d93855dc091a4309566bb', class: "loader", style: {
|
|
3671
3679
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3672
3680
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3673
3681
|
} }))), this.icon ? (hAsync("eds-icon-wrapper", { class: `
|
|
@@ -3693,7 +3701,6 @@ class EdsButton {
|
|
|
3693
3701
|
"size": [1],
|
|
3694
3702
|
"iconPos": [1, "icon-pos"],
|
|
3695
3703
|
"iconSmall": [4, "icon-small"],
|
|
3696
|
-
"extraClass": [1, "extra-class"],
|
|
3697
3704
|
"triggerClick": [16]
|
|
3698
3705
|
},
|
|
3699
3706
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
@@ -3727,7 +3734,7 @@ class EdsCardDesc {
|
|
|
3727
3734
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3728
3735
|
}
|
|
3729
3736
|
render() {
|
|
3730
|
-
return (hAsync("p", { key: '
|
|
3737
|
+
return (hAsync("p", { key: '3711e4f24ad19f1dedef3083b9b9c8868f3b4e3f', class: "text-light f-ui-03-light" }, hAsync("span", { key: '46b53c5111bc05ffaaa6f8fcd4b1b6ddfae2d413', class: this.getTruncateClass() }, this.description)));
|
|
3731
3738
|
}
|
|
3732
3739
|
static get style() { return EdsCardDescStyle0; }
|
|
3733
3740
|
static get cmpMeta() { return {
|
|
@@ -3832,7 +3839,7 @@ class EdsCardGeneric {
|
|
|
3832
3839
|
});
|
|
3833
3840
|
}
|
|
3834
3841
|
render() {
|
|
3835
|
-
return (hAsync("article", { key: '76e77261a0c6e0c506fe7600d31a492808293d27', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'ca26508b05a31310df7fc0c3fa5769f7947e80fc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), hAsync("div", { key: '00ba325e6a0093cb2be35854f2bcb579ad4eb35b', class: "mt-8 mb-8" }, this.description &&
|
|
3842
|
+
return (hAsync("article", { key: '76e77261a0c6e0c506fe7600d31a492808293d27', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: 'ca26508b05a31310df7fc0c3fa5769f7947e80fc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), hAsync("div", { key: '00ba325e6a0093cb2be35854f2bcb579ad4eb35b', class: "mt-8 mb-8" }, this.description && hAsync("eds-card-desc", { key: '2d775f772092b7873dd1eabc7c3e8606dded0c47', "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8 block mx-auto" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: 'e51237f8196212715d1d97ae1e6bfc2625573cb3', class: "flex flex-wrap gap-y-4 gap-x-1" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label, size: tag.size })))), ' '));
|
|
3836
3843
|
}
|
|
3837
3844
|
get el() { return getElement(this); }
|
|
3838
3845
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -4044,7 +4051,7 @@ class EdsCardProject {
|
|
|
4044
4051
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
4045
4052
|
].join(' ');
|
|
4046
4053
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
4047
|
-
return (hAsync("article", { key: '
|
|
4054
|
+
return (hAsync("article", { key: '5f72c2dc52a8ef7edb004c6cf9a2035097c5aa28', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: '145809ee5e4800d852bb6d9b84a023160098f3c4', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '3d77551f7518cf63f16daffc7d59a2dd23b66148', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: '715a73ee7a013d13ef5e9f3f180eedf043998d76', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: '418fc9fe39b480f4d1c9e99f2ef4361a6ad3827f', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: '58764ae4d610e2d1205cf09b7274a14a8bfb5694', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: 'c552bbc88aca3e3b114aef1fbd3e3bdf3e334624', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '3e85ad957b7d782cc228a508ce8e76ccb7490a9c', class: imageClasses }, hAsync("div", { key: '77e161fd2deb2c6ec3e30ad0ef34f934ba9197d1', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: 'e9f0f4982bddba64ee979490024af471f4e9d8f8', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
4048
4055
|
}
|
|
4049
4056
|
get el() { return getElement(this); }
|
|
4050
4057
|
static get cmpMeta() { return {
|
|
@@ -4104,7 +4111,7 @@ class EdsCardSection {
|
|
|
4104
4111
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
4105
4112
|
*/
|
|
4106
4113
|
render() {
|
|
4107
|
-
return (hAsync("section", { key: '
|
|
4114
|
+
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 })))))));
|
|
4108
4115
|
}
|
|
4109
4116
|
static get style() { return EdsCardSectionStyle0; }
|
|
4110
4117
|
static get cmpMeta() { return {
|
|
@@ -4133,7 +4140,7 @@ class EdsCardTags {
|
|
|
4133
4140
|
this.tags = [];
|
|
4134
4141
|
}
|
|
4135
4142
|
render() {
|
|
4136
|
-
return (hAsync("div", { key: '
|
|
4143
|
+
return (hAsync("div", { key: 'a0184d0900e08d0ae48dd4d2164c9d7ca0ef8db1', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4137
4144
|
}
|
|
4138
4145
|
static get style() { return EdsCardTagsStyle0; }
|
|
4139
4146
|
static get cmpMeta() { return {
|
|
@@ -4197,7 +4204,7 @@ class EdsCardTitle {
|
|
|
4197
4204
|
render() {
|
|
4198
4205
|
//const Tag = this.getTag();
|
|
4199
4206
|
const Heading = this.headingLevel;
|
|
4200
|
-
return (hAsync(Heading, { key: '
|
|
4207
|
+
return (hAsync(Heading, { key: '5d356d301cfee459ac142895a042e9b1ccd59367', class: this.getTitleClass() }, hAsync("a", { key: '348fffdd2abccf3b08ecab9481718b4a2aa50807', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4201
4208
|
}
|
|
4202
4209
|
static get style() { return EdsCardTitleStyle0; }
|
|
4203
4210
|
static get cmpMeta() { return {
|
|
@@ -4285,7 +4292,7 @@ class EdsCardTool {
|
|
|
4285
4292
|
});
|
|
4286
4293
|
}
|
|
4287
4294
|
render() {
|
|
4288
|
-
return (hAsync("article", { key: '
|
|
4295
|
+
return (hAsync("article", { key: 'bde34da77105309a05bf36cc1cf24888e62dc826', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '521f11ef8f9f13cdc35b27e45e20d0bec81cc3f8', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '615ccb630818a49e278f1308aa95caec3a02e3fe', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '40cfa7d940136d4bce5de0c2b37fca91187110f8', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4289
4296
|
}
|
|
4290
4297
|
get el() { return getElement(this); }
|
|
4291
4298
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -6797,7 +6804,7 @@ class EdsCodeBlock {
|
|
|
6797
6804
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6798
6805
|
}
|
|
6799
6806
|
render() {
|
|
6800
|
-
return (hAsync("div", { key: '
|
|
6807
|
+
return (hAsync("div", { key: 'bc74b6be37bcb24700d17b48b5398077e485abd7', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: 'db0395bfd55eb3394ab2149c5c436f2a54e8afb0', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '628ad41f15f3a38abe4b7c382074c8f5a8679a8c', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '1c95d57a5d8113d6ab7ebf7da713e058c7cc10f1', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: 'a64b2450b631835b6fc2c15047b09ceea5a9fc95', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '51945cbee1504625b54362505b60f1bd1784bdda', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '55961aa8278177451e13c929ec7f7065afcac93b', innerHTML: this.getHighlightedCode() })))));
|
|
6801
6808
|
}
|
|
6802
6809
|
get el() { return getElement(this); }
|
|
6803
6810
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6845,7 +6852,7 @@ class EdsCookiesPreference {
|
|
|
6845
6852
|
}
|
|
6846
6853
|
}
|
|
6847
6854
|
render() {
|
|
6848
|
-
return (hAsync("div", { key: '
|
|
6855
|
+
return (hAsync("div", { key: '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 })));
|
|
6849
6856
|
}
|
|
6850
6857
|
static get style() { return EdsCookiesPreferenceStyle0; }
|
|
6851
6858
|
static get cmpMeta() { return {
|
|
@@ -7034,14 +7041,14 @@ class EdsDropdown {
|
|
|
7034
7041
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
7035
7042
|
*/
|
|
7036
7043
|
render() {
|
|
7037
|
-
return (hAsync("div", { key: '
|
|
7044
|
+
return (hAsync("div", { key: 'ffc4915b2104e3d2dd347900acd897f56910a674', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: 'ba48bdd7b75fd230bdc2dd564bd477f0349f5426', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: 'a29b57598a2ed8fcc9593c928df9443fd4449481', ref: (el) => (this.panelEl = el), role: "menu", class: {
|
|
7038
7045
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
7039
7046
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
7040
7047
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
7041
7048
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
7042
7049
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
7043
7050
|
'rounded-lg': this.rounded
|
|
7044
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
7051
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'ddf003345ef5181b968b4bfd8962805d09d15e89' }))));
|
|
7045
7052
|
}
|
|
7046
7053
|
get host() { return getElement(this); }
|
|
7047
7054
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7126,7 +7133,7 @@ class EdsFeedback {
|
|
|
7126
7133
|
const HeadingTag = this.headingLevel;
|
|
7127
7134
|
const levelNum = this.headingLevel.replace('h', '');
|
|
7128
7135
|
const headingClass = `f-heading-${levelNum.padStart(2, '0')} my-4`;
|
|
7129
|
-
return (hAsync("div", { key: '
|
|
7136
|
+
return (hAsync("div", { key: '5405127cfc114d4906617955d7b1069a04ed7b8e', class: "grid inline" }, hAsync(HeadingTag, { key: 'c0a2593d843577323b6a27d0f8fdca3b84063bd5', class: headingClass }, this.label), hAsync("p", { key: '5b7ef9fbd8c5b4a9d3c7c39e3092244d08dde126', class: "f-body-01 text-light" }, this.description), hAsync("eds-rating", { key: '2de1ad00dd21d987bc4a91438500a58a0bcd63a7', "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '3de038a0ae8ee334edde65194356f021e14e7cb3', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
7130
7137
|
}
|
|
7131
7138
|
get el() { return getElement(this); }
|
|
7132
7139
|
static get style() { return EdsFeedbackStyle0; }
|
|
@@ -7212,9 +7219,11 @@ class EdsFooter {
|
|
|
7212
7219
|
* legal links such as "Cookies Preferences" and copyright information.
|
|
7213
7220
|
*/
|
|
7214
7221
|
render() {
|
|
7215
|
-
|
|
7222
|
+
const year = new Date().getFullYear();
|
|
7223
|
+
const rights = this.rightsReserved || `${year} EBRAINS. All rights reserved.`;
|
|
7224
|
+
return (hAsync("footer", { key: 'bf9d98eea0bd151bf87818b770e85fe0cfa1044f' }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, hAsync("div", { class: "container pb-20" }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })))))) : null, hAsync("div", { key: 'c0058cd32e2904e4e08ec46b99a0cbbabb5df588', class: `border-softest ${this.social ? 'border-t-2' : ''} pb-28 pt-20 md:pt-28` }, hAsync("div", { key: '4f2993ccded30ca66da34eca632b62abf02e06d5', class: "container flex items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '81efd584b5de410522d338bb6ab4b53096a36868', class: "flex items-center gap-x-12" }, hAsync("a", { key: '5a641163b3cb1549ee886e9029b65a012b31cd85', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, hAsync("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: () => {
|
|
7216
7225
|
this.toggleCookiesConsent();
|
|
7217
|
-
} })) : null))), hAsync("div", { key: '
|
|
7226
|
+
} })) : 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)))));
|
|
7218
7227
|
}
|
|
7219
7228
|
get el() { return getElement(this); }
|
|
7220
7229
|
static get style() { return EdsFooterStyle0; }
|
|
@@ -7527,17 +7536,41 @@ class EdsForm {
|
|
|
7527
7536
|
}
|
|
7528
7537
|
const actual = this.values[field.condition.field];
|
|
7529
7538
|
const expected = field.condition.value;
|
|
7530
|
-
// Handle
|
|
7531
|
-
|
|
7539
|
+
// Handle undefined/null/empty
|
|
7540
|
+
if (actual == null) {
|
|
7541
|
+
return expected == null || expected === '';
|
|
7542
|
+
}
|
|
7543
|
+
// Handle arrays (multi-select, checkboxes)
|
|
7544
|
+
if (Array.isArray(actual)) {
|
|
7545
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7546
|
+
}
|
|
7547
|
+
// Handle comma-separated strings (from checkboxes stored as "val1,val2")
|
|
7548
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7549
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7550
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7551
|
+
}
|
|
7552
|
+
// Standard comparison with normalization
|
|
7553
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7554
|
+
}
|
|
7555
|
+
normalizeValue(value) {
|
|
7556
|
+
if (value == null) {
|
|
7557
|
+
return '';
|
|
7558
|
+
}
|
|
7559
|
+
if (typeof value === 'boolean') {
|
|
7560
|
+
return value ? 'true' : 'false';
|
|
7561
|
+
}
|
|
7562
|
+
if (typeof value === 'number') {
|
|
7563
|
+
return String(value);
|
|
7564
|
+
}
|
|
7565
|
+
if (typeof value === 'string') {
|
|
7566
|
+
return value.trim().toLowerCase();
|
|
7567
|
+
}
|
|
7568
|
+
return String(value).trim().toLowerCase();
|
|
7532
7569
|
}
|
|
7533
7570
|
validateForm() {
|
|
7534
|
-
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field,
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
}
|
|
7538
|
-
const parentValue = values[field.condition.field];
|
|
7539
|
-
return parentValue === field.condition.value;
|
|
7540
|
-
});
|
|
7571
|
+
const { errors, hasError } = validateFormFields(this.parsedFields, this.formEl, this.values, (field, _values) =>
|
|
7572
|
+
// Use a temporary object with the condition to reuse isFieldVisible logic
|
|
7573
|
+
this.isFieldVisible(field));
|
|
7541
7574
|
this.errors = errors;
|
|
7542
7575
|
this.hasError = hasError;
|
|
7543
7576
|
}
|
|
@@ -7551,8 +7584,22 @@ class EdsForm {
|
|
|
7551
7584
|
if (!field.condition) {
|
|
7552
7585
|
return true;
|
|
7553
7586
|
}
|
|
7554
|
-
const
|
|
7555
|
-
|
|
7587
|
+
const actual = values[field.condition.field];
|
|
7588
|
+
const expected = field.condition.value;
|
|
7589
|
+
// Handle undefined/null/empty
|
|
7590
|
+
if (actual == null) {
|
|
7591
|
+
return expected == null || expected === '';
|
|
7592
|
+
}
|
|
7593
|
+
// Handle arrays
|
|
7594
|
+
if (Array.isArray(actual)) {
|
|
7595
|
+
return actual.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7596
|
+
}
|
|
7597
|
+
// Handle comma-separated strings
|
|
7598
|
+
if (typeof actual === 'string' && actual.includes(',')) {
|
|
7599
|
+
const values = actual.split(',').map((v) => v.trim());
|
|
7600
|
+
return values.some((val) => this.normalizeValue(val) === this.normalizeValue(expected));
|
|
7601
|
+
}
|
|
7602
|
+
return this.normalizeValue(actual) === this.normalizeValue(expected);
|
|
7556
7603
|
}
|
|
7557
7604
|
});
|
|
7558
7605
|
this.values = updatedValues;
|
|
@@ -7619,8 +7666,9 @@ class EdsForm {
|
|
|
7619
7666
|
const hosts = Array.from(this.formEl.querySelectorAll('eds-input-field'));
|
|
7620
7667
|
hosts.forEach((host) => {
|
|
7621
7668
|
const root = host.shadowRoot;
|
|
7622
|
-
if (!root)
|
|
7669
|
+
if (!root) {
|
|
7623
7670
|
return;
|
|
7671
|
+
}
|
|
7624
7672
|
const fileInputs = Array.from(root.querySelectorAll('input[type="file"][name]'));
|
|
7625
7673
|
console.log(fileInputs);
|
|
7626
7674
|
fileInputs.forEach((fi) => {
|
|
@@ -7635,14 +7683,13 @@ class EdsForm {
|
|
|
7635
7683
|
// (Optional) mark that this payload includes files (handy in logs / policies)
|
|
7636
7684
|
// formData.set('_has_files', '1');
|
|
7637
7685
|
}
|
|
7638
|
-
formData.forEach((value, key) => {
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
});
|
|
7686
|
+
/*formData.forEach((value, key) => {
|
|
7687
|
+
if (value instanceof File) {
|
|
7688
|
+
console.log(`File field: ${key}, File name: ${value.name}, File size: ${value.size}`);
|
|
7689
|
+
} else {
|
|
7690
|
+
console.log(`Field: ${key}, Value: ${value}`);
|
|
7691
|
+
}
|
|
7692
|
+
});*/
|
|
7646
7693
|
return formData;
|
|
7647
7694
|
}
|
|
7648
7695
|
handleChange(e, field) {
|
|
@@ -7756,8 +7803,9 @@ class EdsForm {
|
|
|
7756
7803
|
handleSubmit(e) {
|
|
7757
7804
|
var _a, _b;
|
|
7758
7805
|
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
7759
|
-
if (this.isSubmitting)
|
|
7806
|
+
if (this.isSubmitting) {
|
|
7760
7807
|
return;
|
|
7808
|
+
}
|
|
7761
7809
|
this.isSubmitting = true;
|
|
7762
7810
|
this.validateForm();
|
|
7763
7811
|
if (this.hasError) {
|
|
@@ -7839,7 +7887,7 @@ class EdsForm {
|
|
|
7839
7887
|
else if (field.type === 'nps') {
|
|
7840
7888
|
return (hAsync("div", { class: "form-group nps-field", key: field.name }, hAsync("div", { class: "flex justify-between" }, field && (hAsync("eds-input-label", { name: `nps-${field.name}`, label: field.question, disabled: field.disabled, required: field.required }))), hAsync("eds-nps", { id: `nps-${field.name}`, "right-label": field.rightLabel, "left-label": field.leftLabel, onNps: (e) => this.handleNPS(e, field) }), hAsync("div", { class: "mt-6" }, hAsync("eds-input-footer", { id: `${field.name}-footer`, name: field.name, "error-message": (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br/>'), error: !!this.errors[field.name] }))));
|
|
7841
7889
|
}
|
|
7842
|
-
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7890
|
+
return (hAsync("eds-input-field", { key: field.name, name: field.name, label: field.label, placeholder: field.placeholder, type: field.type, value: this.values[field.name], required: field.required, hint: field.hint, message: field.message, link: field.link, error: !!this.errors[field.name], errorMessage: (_c = this.errors[field.name]) === null || _c === void 0 ? void 0 : _c.join('<br/>'), options: field.options, onInput: (e) => this.handleInput(e, field), onChangeNative: (e) => this.handleChange(e, field) }));
|
|
7843
7891
|
}
|
|
7844
7892
|
async getData() {
|
|
7845
7893
|
return this.makeFormData();
|
|
@@ -7852,9 +7900,9 @@ class EdsForm {
|
|
|
7852
7900
|
const styleClasses = this.formStyle === 'shadow'
|
|
7853
7901
|
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
7854
7902
|
: '';
|
|
7855
|
-
return (hAsync("form", { key: '
|
|
7903
|
+
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
|
|
7856
7904
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
7857
|
-
.map((g) => (hAsync("div", { class: "mt-32", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '
|
|
7905
|
+
.map((g) => (hAsync("div", { class: "mt-32", key: g.id }, hAsync("span", { class: "f-body-02" }, hAsync("b", null, g.title)), hAsync("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), hAsync("div", { key: '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() })))));
|
|
7858
7906
|
}
|
|
7859
7907
|
get el() { return getElement(this); }
|
|
7860
7908
|
static get watchers() { return {
|
|
@@ -7982,7 +8030,7 @@ class EdsFrame {
|
|
|
7982
8030
|
}
|
|
7983
8031
|
}
|
|
7984
8032
|
render() {
|
|
7985
|
-
return (hAsync("div", { key: '
|
|
8033
|
+
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 })))));
|
|
7986
8034
|
}
|
|
7987
8035
|
get el() { return getElement(this); }
|
|
7988
8036
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -8042,6 +8090,11 @@ class EdsFullscreenMenu {
|
|
|
8042
8090
|
handleToggleMenu(event) {
|
|
8043
8091
|
this.isMenuOpen = !!event.detail;
|
|
8044
8092
|
}
|
|
8093
|
+
onKeydown(e) {
|
|
8094
|
+
if (e.key === 'Escape' && this.isMenuOpen) {
|
|
8095
|
+
this.closeMenu();
|
|
8096
|
+
}
|
|
8097
|
+
}
|
|
8045
8098
|
/** Opens the menu */
|
|
8046
8099
|
openMenu() {
|
|
8047
8100
|
this.isMenuOpen = true;
|
|
@@ -8051,6 +8104,12 @@ class EdsFullscreenMenu {
|
|
|
8051
8104
|
this.isMenuOpen = false;
|
|
8052
8105
|
this.menuClose.emit();
|
|
8053
8106
|
}
|
|
8107
|
+
async open() {
|
|
8108
|
+
this.isMenuOpen = true;
|
|
8109
|
+
}
|
|
8110
|
+
async close() {
|
|
8111
|
+
this.closeMenu();
|
|
8112
|
+
}
|
|
8054
8113
|
// Lifecycle method to add the resize event listener when component loads
|
|
8055
8114
|
componentDidLoad() {
|
|
8056
8115
|
window.addEventListener('resize', this.handleResize.bind(this));
|
|
@@ -8084,7 +8143,7 @@ class EdsFullscreenMenu {
|
|
|
8084
8143
|
return parseData(this.menuLinks);
|
|
8085
8144
|
}
|
|
8086
8145
|
render() {
|
|
8087
|
-
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;
|
|
8146
|
+
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;
|
|
8088
8147
|
}
|
|
8089
8148
|
static get style() { return EdsFullscreenMenuStyle0; }
|
|
8090
8149
|
static get cmpMeta() { return {
|
|
@@ -8095,9 +8154,11 @@ class EdsFullscreenMenu {
|
|
|
8095
8154
|
"menuLinks": [1, "menu-links"],
|
|
8096
8155
|
"homeUrl": [1, "home-url"],
|
|
8097
8156
|
"inverseHeader": [4, "inverse-header"],
|
|
8098
|
-
"isMenuOpen": [32]
|
|
8157
|
+
"isMenuOpen": [32],
|
|
8158
|
+
"open": [64],
|
|
8159
|
+
"close": [64]
|
|
8099
8160
|
},
|
|
8100
|
-
"$listeners$": [[16, "toggleheadermenu", "handleToggleMenu"]],
|
|
8161
|
+
"$listeners$": [[16, "toggleheadermenu", "handleToggleMenu"], [8, "keydown", "onKeydown"]],
|
|
8101
8162
|
"$lazyBundleId$": "-",
|
|
8102
8163
|
"$attrsToReflect$": []
|
|
8103
8164
|
}; }
|
|
@@ -8151,7 +8212,7 @@ class EdsGauge {
|
|
|
8151
8212
|
const textStyle = {
|
|
8152
8213
|
fontSize: `${fontSize}px`
|
|
8153
8214
|
};
|
|
8154
|
-
return (hAsync("div", { key: '
|
|
8215
|
+
return (hAsync("div", { key: '33388b250acd0aeaf3bf4888fd5ac72ba0337a42', role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": clamped, "aria-label": `Gauge value: ${clamped} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: containerStyle }, hAsync("div", { key: 'b920dd12644a5457b512b65e2c093ef53f339969', class: "absolute bg-inverse rounded-full", style: maskStyle }), hAsync("div", { key: '0149f680aad2c2b2cf4e308b1510d2fb3482a06f', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '31fee43895b99a2c19358acce9eee0965eef574a', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
8155
8216
|
}
|
|
8156
8217
|
static get style() { return EdsGaugeStyle0; }
|
|
8157
8218
|
static get cmpMeta() { return {
|
|
@@ -8196,9 +8257,8 @@ class EdsGlobalSearch {
|
|
|
8196
8257
|
category: 'shared-ui',
|
|
8197
8258
|
parentContext: null,
|
|
8198
8259
|
tag: this.el.tagName.toLowerCase(),
|
|
8199
|
-
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` ||
|
|
8200
|
-
|
|
8201
|
-
action: 'click',
|
|
8260
|
+
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` || 'unknow seach input query',
|
|
8261
|
+
action: 'click'
|
|
8202
8262
|
});
|
|
8203
8263
|
this.debounceTimer = window.setTimeout(() => {
|
|
8204
8264
|
this.runSearch();
|
|
@@ -8254,8 +8314,7 @@ class EdsGlobalSearch {
|
|
|
8254
8314
|
break;
|
|
8255
8315
|
case 'Enter':
|
|
8256
8316
|
event.preventDefault();
|
|
8257
|
-
if (this.selectedIndex >= 0 &&
|
|
8258
|
-
this.selectedIndex < this.results.length) {
|
|
8317
|
+
if (this.selectedIndex >= 0 && this.selectedIndex < this.results.length) {
|
|
8259
8318
|
this.selectResult(this.results[this.selectedIndex]);
|
|
8260
8319
|
}
|
|
8261
8320
|
break;
|
|
@@ -8289,7 +8348,7 @@ class EdsGlobalSearch {
|
|
|
8289
8348
|
this.selectedIndex = -1;
|
|
8290
8349
|
}
|
|
8291
8350
|
catch (err) {
|
|
8292
|
-
console.error('Search error:', err);
|
|
8351
|
+
//console.error('Search error:', err);
|
|
8293
8352
|
this.error = 'Search failed. Please try again.';
|
|
8294
8353
|
this.results = [];
|
|
8295
8354
|
this.showDropdown = true;
|
|
@@ -8306,7 +8365,7 @@ class EdsGlobalSearch {
|
|
|
8306
8365
|
parentContext: null,
|
|
8307
8366
|
tag: this.el.tagName.toLowerCase(),
|
|
8308
8367
|
name: `search-select: ${result.url}` || 'unknow search result selection',
|
|
8309
|
-
action: 'click'
|
|
8368
|
+
action: 'click'
|
|
8310
8369
|
});
|
|
8311
8370
|
window.open(result.url, '_blank', 'noopener,noreferrer');
|
|
8312
8371
|
}
|
|
@@ -8327,13 +8386,13 @@ class EdsGlobalSearch {
|
|
|
8327
8386
|
return this.results.length > 0;
|
|
8328
8387
|
}
|
|
8329
8388
|
get showEmpty() {
|
|
8330
|
-
return
|
|
8389
|
+
return this.hasSearched && !this.loading && !this.hasResults && this.query.trim();
|
|
8331
8390
|
}
|
|
8332
8391
|
render() {
|
|
8333
|
-
return (hAsync("div", { key: '
|
|
8392
|
+
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: {
|
|
8334
8393
|
'result-item': true,
|
|
8335
|
-
'result-item--selected': index === this.selectedIndex
|
|
8336
|
-
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, hAsync("div", { class: "result-header" }, hAsync("span", { class: "f-body-02" }, result.title)), hAsync("div", { class: "inline" }, hAsync("eds-tag", { intent: "accent", label: result.source }), result.section &&
|
|
8394
|
+
'result-item--selected': index === this.selectedIndex
|
|
8395
|
+
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, hAsync("div", { class: "result-header" }, hAsync("span", { class: "f-body-02" }, result.title)), hAsync("div", { class: "inline" }, hAsync("eds-tag", { intent: "accent", label: result.source }), result.section && hAsync("span", { class: "result-badge" }, result.section), hAsync("span", { class: "f-ui-03-light text-lighter ml-8" }, result.url)), result.snippet && hAsync("p", { class: "result-snippet" }, this.stripHtml(result.snippet))))))), this.hasResults && !this.loading && (hAsync("div", { key: '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")))))));
|
|
8337
8396
|
}
|
|
8338
8397
|
get el() { return getElement(this); }
|
|
8339
8398
|
static get style() { return EdsGlobalSearchStyle0; }
|
|
@@ -8359,7 +8418,7 @@ class EdsGlobalSearch {
|
|
|
8359
8418
|
}; }
|
|
8360
8419
|
}
|
|
8361
8420
|
|
|
8362
|
-
const edsHeaderCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}";
|
|
8421
|
+
const edsHeaderCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}";
|
|
8363
8422
|
var EdsHeaderStyle0 = edsHeaderCss;
|
|
8364
8423
|
|
|
8365
8424
|
/**
|
|
@@ -8385,14 +8444,10 @@ class EdsHeader {
|
|
|
8385
8444
|
this.menuEnabled = false;
|
|
8386
8445
|
this.isMenuOpen = false;
|
|
8387
8446
|
this.isUserMenuOpen = false;
|
|
8388
|
-
this.isAuthenticated = false;
|
|
8389
|
-
}
|
|
8390
|
-
onAuthStatusChanged(event) {
|
|
8391
|
-
var _a;
|
|
8392
|
-
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
8393
8447
|
}
|
|
8394
8448
|
componentDidLoad() {
|
|
8395
|
-
|
|
8449
|
+
var _a, _b;
|
|
8450
|
+
const links = (_b = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link')) !== null && _b !== void 0 ? _b : [];
|
|
8396
8451
|
links.forEach((link) => this.emitContext(link));
|
|
8397
8452
|
}
|
|
8398
8453
|
emitContext(linkElement) {
|
|
@@ -8420,7 +8475,7 @@ class EdsHeader {
|
|
|
8420
8475
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
8421
8476
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
8422
8477
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
8423
|
-
return (hAsync("header", { key: '
|
|
8478
|
+
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() })))));
|
|
8424
8479
|
}
|
|
8425
8480
|
get hostEl() { return getElement(this); }
|
|
8426
8481
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -8433,10 +8488,9 @@ class EdsHeader {
|
|
|
8433
8488
|
"headerVariant": [513, "header-variant"],
|
|
8434
8489
|
"menuEnabled": [4, "menu-enabled"],
|
|
8435
8490
|
"isMenuOpen": [32],
|
|
8436
|
-
"isUserMenuOpen": [32]
|
|
8437
|
-
"isAuthenticated": [32]
|
|
8491
|
+
"isUserMenuOpen": [32]
|
|
8438
8492
|
},
|
|
8439
|
-
"$listeners$":
|
|
8493
|
+
"$listeners$": undefined,
|
|
8440
8494
|
"$lazyBundleId$": "-",
|
|
8441
8495
|
"$attrsToReflect$": [["homeUrl", "home-url"], ["headerVariant", "header-variant"]]
|
|
8442
8496
|
}; }
|
|
@@ -10338,7 +10392,7 @@ var tutorial = ` <svg
|
|
|
10338
10392
|
/>
|
|
10339
10393
|
</svg>`;
|
|
10340
10394
|
|
|
10341
|
-
var
|
|
10395
|
+
var upDown = ` <svg
|
|
10342
10396
|
width="20"
|
|
10343
10397
|
height="20"
|
|
10344
10398
|
viewBox="0 0 20 20"
|
|
@@ -10411,7 +10465,7 @@ var svgs = /*#__PURE__*/Object.freeze({
|
|
|
10411
10465
|
pub: pub,
|
|
10412
10466
|
portal: portal,
|
|
10413
10467
|
user: user,
|
|
10414
|
-
|
|
10468
|
+
upDown: upDown,
|
|
10415
10469
|
search: search,
|
|
10416
10470
|
success: success,
|
|
10417
10471
|
tutorial: tutorial,
|
|
@@ -10438,7 +10492,7 @@ class EdsIconArrowDiagonal {
|
|
|
10438
10492
|
this.class = '';
|
|
10439
10493
|
}
|
|
10440
10494
|
render() {
|
|
10441
|
-
return hAsync("span", { key: '
|
|
10495
|
+
return hAsync("span", { key: '29883d8b41d72d84f22e6babbfdac666ba57f5ca', class: this.class, innerHTML: arrowDiagonal });
|
|
10442
10496
|
}
|
|
10443
10497
|
static get cmpMeta() { return {
|
|
10444
10498
|
"$flags$": 0,
|
|
@@ -10461,7 +10515,7 @@ class EdsIconArrowRight {
|
|
|
10461
10515
|
this.class = '';
|
|
10462
10516
|
}
|
|
10463
10517
|
render() {
|
|
10464
|
-
return hAsync("span", { key: '
|
|
10518
|
+
return hAsync("span", { key: '652d9843e8855eeb7bd9c364fe8600116eb54897', class: this.class, innerHTML: arrowRight });
|
|
10465
10519
|
}
|
|
10466
10520
|
static get cmpMeta() { return {
|
|
10467
10521
|
"$flags$": 0,
|
|
@@ -10484,7 +10538,7 @@ class EdsIconBin {
|
|
|
10484
10538
|
this.class = '';
|
|
10485
10539
|
}
|
|
10486
10540
|
render() {
|
|
10487
|
-
return hAsync("span", { key: '
|
|
10541
|
+
return hAsync("span", { key: '7ba82b3f303e9d0dc30afef19154637af1d20811', class: this.class, innerHTML: bin });
|
|
10488
10542
|
}
|
|
10489
10543
|
static get cmpMeta() { return {
|
|
10490
10544
|
"$flags$": 0,
|
|
@@ -10507,7 +10561,7 @@ class EdsIconBluesky {
|
|
|
10507
10561
|
this.class = '';
|
|
10508
10562
|
}
|
|
10509
10563
|
render() {
|
|
10510
|
-
return hAsync("span", { key: '
|
|
10564
|
+
return hAsync("span", { key: '686dbb5f0c3c5f156940c83380c16c169f016219', class: this.class, innerHTML: bluesky });
|
|
10511
10565
|
}
|
|
10512
10566
|
static get cmpMeta() { return {
|
|
10513
10567
|
"$flags$": 0,
|
|
@@ -10530,7 +10584,7 @@ class EdsIconBookmark {
|
|
|
10530
10584
|
this.class = '';
|
|
10531
10585
|
}
|
|
10532
10586
|
render() {
|
|
10533
|
-
return hAsync("span", { key: '
|
|
10587
|
+
return hAsync("span", { key: '66bd28a12ce759d916099635f81aff9b8a66c774', class: this.class, innerHTML: bookmark });
|
|
10534
10588
|
}
|
|
10535
10589
|
static get cmpMeta() { return {
|
|
10536
10590
|
"$flags$": 0,
|
|
@@ -10553,7 +10607,7 @@ class EdsIconChevronDown {
|
|
|
10553
10607
|
this.class = '';
|
|
10554
10608
|
}
|
|
10555
10609
|
render() {
|
|
10556
|
-
return hAsync("span", { key: '
|
|
10610
|
+
return hAsync("span", { key: '7efcb724d1d4c35985dc5f858c23c43aaaad1319', class: this.class, innerHTML: chevronDown });
|
|
10557
10611
|
}
|
|
10558
10612
|
static get cmpMeta() { return {
|
|
10559
10613
|
"$flags$": 0,
|
|
@@ -10576,7 +10630,7 @@ class EdsIconChevronLeft {
|
|
|
10576
10630
|
this.class = '';
|
|
10577
10631
|
}
|
|
10578
10632
|
render() {
|
|
10579
|
-
return hAsync("span", { key: '
|
|
10633
|
+
return hAsync("span", { key: '6ee35c634c737769fa20bcfb631aa4e32ee6e9da', class: this.class, innerHTML: chevronLeft });
|
|
10580
10634
|
}
|
|
10581
10635
|
static get cmpMeta() { return {
|
|
10582
10636
|
"$flags$": 0,
|
|
@@ -10599,7 +10653,7 @@ class EdsIconChevronRight {
|
|
|
10599
10653
|
this.class = '';
|
|
10600
10654
|
}
|
|
10601
10655
|
render() {
|
|
10602
|
-
return hAsync("span", { key: '
|
|
10656
|
+
return hAsync("span", { key: '60ca9c3f312d711df76743901b5373ee573b99d7', class: this.class, innerHTML: chevronRight });
|
|
10603
10657
|
}
|
|
10604
10658
|
static get cmpMeta() { return {
|
|
10605
10659
|
"$flags$": 0,
|
|
@@ -10622,7 +10676,7 @@ class EdsIconChevronUp {
|
|
|
10622
10676
|
this.class = '';
|
|
10623
10677
|
}
|
|
10624
10678
|
render() {
|
|
10625
|
-
return hAsync("span", { key: '
|
|
10679
|
+
return hAsync("span", { key: '61506941edc3f2da20a848d8f435241027ee131a', class: this.class, innerHTML: chevronUp });
|
|
10626
10680
|
}
|
|
10627
10681
|
static get cmpMeta() { return {
|
|
10628
10682
|
"$flags$": 0,
|
|
@@ -10645,7 +10699,7 @@ class EdsIconClone {
|
|
|
10645
10699
|
this.class = '';
|
|
10646
10700
|
}
|
|
10647
10701
|
render() {
|
|
10648
|
-
return hAsync("span", { key: '
|
|
10702
|
+
return hAsync("span", { key: '25b5552f8f0952bde3058c85d2ef61bb69102c24', class: this.class, innerHTML: clone });
|
|
10649
10703
|
}
|
|
10650
10704
|
static get cmpMeta() { return {
|
|
10651
10705
|
"$flags$": 0,
|
|
@@ -10668,7 +10722,7 @@ class EdsIconClose {
|
|
|
10668
10722
|
this.class = '';
|
|
10669
10723
|
}
|
|
10670
10724
|
render() {
|
|
10671
|
-
return hAsync("span", { key: '
|
|
10725
|
+
return hAsync("span", { key: '50792b8ec547fba6fd0416e80cdaf706079f42b2', class: this.class, innerHTML: close });
|
|
10672
10726
|
}
|
|
10673
10727
|
static get cmpMeta() { return {
|
|
10674
10728
|
"$flags$": 0,
|
|
@@ -10691,7 +10745,7 @@ class EdsIconCopy {
|
|
|
10691
10745
|
this.class = '';
|
|
10692
10746
|
}
|
|
10693
10747
|
render() {
|
|
10694
|
-
return hAsync("span", { key: '
|
|
10748
|
+
return hAsync("span", { key: 'f0f8d3264c9ea781865ffd2bc2e5ebd4b44435a3', class: this.class, innerHTML: copy });
|
|
10695
10749
|
}
|
|
10696
10750
|
static get cmpMeta() { return {
|
|
10697
10751
|
"$flags$": 0,
|
|
@@ -10714,7 +10768,7 @@ class EdsIconDownload {
|
|
|
10714
10768
|
this.class = '';
|
|
10715
10769
|
}
|
|
10716
10770
|
render() {
|
|
10717
|
-
return hAsync("span", { key: '
|
|
10771
|
+
return hAsync("span", { key: '17b9c232930d8efec279f777ced4a7e95cc559bd', class: this.class, innerHTML: download });
|
|
10718
10772
|
}
|
|
10719
10773
|
static get cmpMeta() { return {
|
|
10720
10774
|
"$flags$": 0,
|
|
@@ -10737,7 +10791,7 @@ class EdsIconDraft {
|
|
|
10737
10791
|
this.class = '';
|
|
10738
10792
|
}
|
|
10739
10793
|
render() {
|
|
10740
|
-
return hAsync("span", { key: '
|
|
10794
|
+
return hAsync("span", { key: '9a0acb29472fee4627c23cd528a601d80fb065d9', class: this.class, innerHTML: draft });
|
|
10741
10795
|
}
|
|
10742
10796
|
static get cmpMeta() { return {
|
|
10743
10797
|
"$flags$": 0,
|
|
@@ -10760,7 +10814,7 @@ class EdsIconEdit {
|
|
|
10760
10814
|
this.class = '';
|
|
10761
10815
|
}
|
|
10762
10816
|
render() {
|
|
10763
|
-
return hAsync("span", { key: '
|
|
10817
|
+
return hAsync("span", { key: '603d3cb68e01aadbcb05d232773490b93593a4e7', class: this.class, innerHTML: edit });
|
|
10764
10818
|
}
|
|
10765
10819
|
static get cmpMeta() { return {
|
|
10766
10820
|
"$flags$": 0,
|
|
@@ -10783,7 +10837,7 @@ class EdsIconEu {
|
|
|
10783
10837
|
this.class = '';
|
|
10784
10838
|
}
|
|
10785
10839
|
render() {
|
|
10786
|
-
return hAsync("span", { key: '
|
|
10840
|
+
return hAsync("span", { key: '400a5811c1d31a1c8d490e9614d89fe861cb4dd6', class: this.class, innerHTML: euSvg });
|
|
10787
10841
|
}
|
|
10788
10842
|
static get cmpMeta() { return {
|
|
10789
10843
|
"$flags$": 0,
|
|
@@ -10806,7 +10860,7 @@ class EdsIconExternal {
|
|
|
10806
10860
|
this.class = '';
|
|
10807
10861
|
}
|
|
10808
10862
|
render() {
|
|
10809
|
-
return hAsync("span", { key: '
|
|
10863
|
+
return hAsync("span", { key: 'dc82ae5d96587a46362008670e4096d8f3ed8941', class: this.class, innerHTML: arrowDiagonal });
|
|
10810
10864
|
}
|
|
10811
10865
|
static get cmpMeta() { return {
|
|
10812
10866
|
"$flags$": 0,
|
|
@@ -10829,7 +10883,7 @@ class EdsIconFacebook {
|
|
|
10829
10883
|
this.class = '';
|
|
10830
10884
|
}
|
|
10831
10885
|
render() {
|
|
10832
|
-
return hAsync("span", { key: '
|
|
10886
|
+
return hAsync("span", { key: '97ff8677a8252ec4cce47f9f857185945aca7cc8', class: this.class, innerHTML: facebook });
|
|
10833
10887
|
}
|
|
10834
10888
|
static get cmpMeta() { return {
|
|
10835
10889
|
"$flags$": 0,
|
|
@@ -10852,7 +10906,7 @@ class EdsIconGitlab {
|
|
|
10852
10906
|
this.class = '';
|
|
10853
10907
|
}
|
|
10854
10908
|
render() {
|
|
10855
|
-
return hAsync("span", { key: '
|
|
10909
|
+
return hAsync("span", { key: 'ef1ed1fd0fc7bcc7b0904589699656943af3f77e', class: this.class, innerHTML: gitlabBlack });
|
|
10856
10910
|
}
|
|
10857
10911
|
static get cmpMeta() { return {
|
|
10858
10912
|
"$flags$": 0,
|
|
@@ -10875,7 +10929,7 @@ class EdsIconLinkedin {
|
|
|
10875
10929
|
this.class = '';
|
|
10876
10930
|
}
|
|
10877
10931
|
render() {
|
|
10878
|
-
return hAsync("span", { key: '
|
|
10932
|
+
return hAsync("span", { key: 'bfed785cb748dc93f95bb317750b5e82dc6c1dcc', class: this.class, innerHTML: linkedin });
|
|
10879
10933
|
}
|
|
10880
10934
|
static get cmpMeta() { return {
|
|
10881
10935
|
"$flags$": 0,
|
|
@@ -10898,7 +10952,7 @@ class EdsIconLoader {
|
|
|
10898
10952
|
this.class = '';
|
|
10899
10953
|
}
|
|
10900
10954
|
render() {
|
|
10901
|
-
return hAsync("span", { key: '
|
|
10955
|
+
return hAsync("span", { key: '59a8089a2505c0e1e8087f7bd078533a1059cd3a', class: this.class, innerHTML: loader });
|
|
10902
10956
|
}
|
|
10903
10957
|
static get cmpMeta() { return {
|
|
10904
10958
|
"$flags$": 0,
|
|
@@ -10921,7 +10975,7 @@ class EdsIconMastodon {
|
|
|
10921
10975
|
this.class = '';
|
|
10922
10976
|
}
|
|
10923
10977
|
render() {
|
|
10924
|
-
return hAsync("span", { key: '
|
|
10978
|
+
return hAsync("span", { key: '5be4622aebcbe17b4b40c31fd4b9dc92a102b85e', class: this.class, innerHTML: mastodon });
|
|
10925
10979
|
}
|
|
10926
10980
|
static get cmpMeta() { return {
|
|
10927
10981
|
"$flags$": 0,
|
|
@@ -10944,7 +10998,7 @@ class EdsIconMenu {
|
|
|
10944
10998
|
this.class = '';
|
|
10945
10999
|
}
|
|
10946
11000
|
render() {
|
|
10947
|
-
return hAsync("span", { key: '
|
|
11001
|
+
return hAsync("span", { key: 'd0edf1b3b59b2455e4f0af36bb637cf3fdea2202', class: this.class, innerHTML: menu });
|
|
10948
11002
|
}
|
|
10949
11003
|
static get cmpMeta() { return {
|
|
10950
11004
|
"$flags$": 0,
|
|
@@ -10967,7 +11021,7 @@ class EdsIconMinus {
|
|
|
10967
11021
|
this.class = '';
|
|
10968
11022
|
}
|
|
10969
11023
|
render() {
|
|
10970
|
-
return hAsync("span", { key: '
|
|
11024
|
+
return hAsync("span", { key: '15a4b124b598595958bfbaf7be0b9a9795cfb105', class: this.class, innerHTML: minus });
|
|
10971
11025
|
}
|
|
10972
11026
|
static get cmpMeta() { return {
|
|
10973
11027
|
"$flags$": 0,
|
|
@@ -10990,7 +11044,7 @@ class EdsIconMore {
|
|
|
10990
11044
|
this.class = '';
|
|
10991
11045
|
}
|
|
10992
11046
|
render() {
|
|
10993
|
-
return hAsync("span", { key: '
|
|
11047
|
+
return hAsync("span", { key: 'd832774f24d7e335026e35b3b9198f000389a084', class: this.class, innerHTML: more });
|
|
10994
11048
|
}
|
|
10995
11049
|
static get cmpMeta() { return {
|
|
10996
11050
|
"$flags$": 0,
|
|
@@ -11013,7 +11067,7 @@ class EdsIconPaper {
|
|
|
11013
11067
|
this.class = '';
|
|
11014
11068
|
}
|
|
11015
11069
|
render() {
|
|
11016
|
-
return hAsync("span", { key: '
|
|
11070
|
+
return hAsync("span", { key: '4e9525934775adfffff9c709ee69c0a5ebf03565', class: this.class, innerHTML: paper });
|
|
11017
11071
|
}
|
|
11018
11072
|
static get cmpMeta() { return {
|
|
11019
11073
|
"$flags$": 0,
|
|
@@ -11036,7 +11090,7 @@ class EdsIconPlus {
|
|
|
11036
11090
|
this.class = '';
|
|
11037
11091
|
}
|
|
11038
11092
|
render() {
|
|
11039
|
-
return hAsync("span", { key: '
|
|
11093
|
+
return hAsync("span", { key: '66caca52d82371c81a2c751a4becbbe4a4b24df2', class: this.class, innerHTML: plus });
|
|
11040
11094
|
}
|
|
11041
11095
|
static get cmpMeta() { return {
|
|
11042
11096
|
"$flags$": 0,
|
|
@@ -11059,7 +11113,7 @@ class EdsIconPortal {
|
|
|
11059
11113
|
this.class = '';
|
|
11060
11114
|
}
|
|
11061
11115
|
render() {
|
|
11062
|
-
return hAsync("span", { key: '
|
|
11116
|
+
return hAsync("span", { key: '8c4137eb4257ed474f2f6b9f4330504c0b3dd5b3', class: this.class, innerHTML: portal });
|
|
11063
11117
|
}
|
|
11064
11118
|
static get cmpMeta() { return {
|
|
11065
11119
|
"$flags$": 0,
|
|
@@ -11082,7 +11136,7 @@ class EdsIconPrivate {
|
|
|
11082
11136
|
this.class = '';
|
|
11083
11137
|
}
|
|
11084
11138
|
render() {
|
|
11085
|
-
return hAsync("span", { key: '
|
|
11139
|
+
return hAsync("span", { key: 'cd1790e118743455f95c1dcef5fef5b7eea8d4b7', class: this.class, innerHTML: privat });
|
|
11086
11140
|
}
|
|
11087
11141
|
static get cmpMeta() { return {
|
|
11088
11142
|
"$flags$": 0,
|
|
@@ -11105,7 +11159,7 @@ class EdsIconPublic {
|
|
|
11105
11159
|
this.class = '';
|
|
11106
11160
|
}
|
|
11107
11161
|
render() {
|
|
11108
|
-
return hAsync("span", { key: '
|
|
11162
|
+
return hAsync("span", { key: '992b0db1543110d0561199c44407129fcd1c0c2f', class: this.class, innerHTML: pub });
|
|
11109
11163
|
}
|
|
11110
11164
|
static get cmpMeta() { return {
|
|
11111
11165
|
"$flags$": 0,
|
|
@@ -11128,7 +11182,7 @@ class EdsIconSearch {
|
|
|
11128
11182
|
this.class = '';
|
|
11129
11183
|
}
|
|
11130
11184
|
render() {
|
|
11131
|
-
return hAsync("span", { key: '
|
|
11185
|
+
return hAsync("span", { key: '14f24d633305efb74dba50aafd31f31b5f2d8e48', class: this.class, innerHTML: search });
|
|
11132
11186
|
}
|
|
11133
11187
|
static get cmpMeta() { return {
|
|
11134
11188
|
"$flags$": 0,
|
|
@@ -11151,7 +11205,7 @@ class EdsIconStar {
|
|
|
11151
11205
|
this.class = '';
|
|
11152
11206
|
}
|
|
11153
11207
|
render() {
|
|
11154
|
-
return hAsync("span", { key: '
|
|
11208
|
+
return hAsync("span", { key: '5546e3debfb9ecf0efe34c31b987dc6ca1f2ba6b', class: this.class, innerHTML: star });
|
|
11155
11209
|
}
|
|
11156
11210
|
static get cmpMeta() { return {
|
|
11157
11211
|
"$flags$": 0,
|
|
@@ -11174,7 +11228,7 @@ class EdsIconStart {
|
|
|
11174
11228
|
this.class = '';
|
|
11175
11229
|
}
|
|
11176
11230
|
render() {
|
|
11177
|
-
return hAsync("span", { key: '
|
|
11231
|
+
return hAsync("span", { key: 'd17186a319ab9a5755330b641aa4620cb811c7ae', class: this.class, innerHTML: start });
|
|
11178
11232
|
}
|
|
11179
11233
|
static get cmpMeta() { return {
|
|
11180
11234
|
"$flags$": 0,
|
|
@@ -11197,7 +11251,7 @@ class EdsIconSuccess {
|
|
|
11197
11251
|
this.class = '';
|
|
11198
11252
|
}
|
|
11199
11253
|
render() {
|
|
11200
|
-
return hAsync("span", { key: '
|
|
11254
|
+
return hAsync("span", { key: 'd70032613d160c820ec95934b17a43c654fe4d26', class: this.class, innerHTML: success });
|
|
11201
11255
|
}
|
|
11202
11256
|
static get cmpMeta() { return {
|
|
11203
11257
|
"$flags$": 0,
|
|
@@ -11220,7 +11274,7 @@ class EdsIconThumbsDown {
|
|
|
11220
11274
|
this.class = '';
|
|
11221
11275
|
}
|
|
11222
11276
|
render() {
|
|
11223
|
-
return hAsync("span", { key: '
|
|
11277
|
+
return hAsync("span", { key: 'dbc457ba89db7b7b142be6736a8640ffff2d2cb3', class: this.class, innerHTML: thumbsDown });
|
|
11224
11278
|
}
|
|
11225
11279
|
static get cmpMeta() { return {
|
|
11226
11280
|
"$flags$": 0,
|
|
@@ -11243,7 +11297,7 @@ class EdsIconThumbsUp {
|
|
|
11243
11297
|
this.class = '';
|
|
11244
11298
|
}
|
|
11245
11299
|
render() {
|
|
11246
|
-
return hAsync("span", { key: '
|
|
11300
|
+
return hAsync("span", { key: '867c4f63cd5ceeeabc94ae444fe978df39066618', class: this.class, innerHTML: thumbsUp });
|
|
11247
11301
|
}
|
|
11248
11302
|
static get cmpMeta() { return {
|
|
11249
11303
|
"$flags$": 0,
|
|
@@ -11266,7 +11320,7 @@ class EdsIconTutorial {
|
|
|
11266
11320
|
this.class = '';
|
|
11267
11321
|
}
|
|
11268
11322
|
render() {
|
|
11269
|
-
return hAsync("span", { key: '
|
|
11323
|
+
return hAsync("span", { key: '06c66194f30295a5bd250edcba88aa4473c8ab1b', class: this.class, innerHTML: tutorial });
|
|
11270
11324
|
}
|
|
11271
11325
|
static get cmpMeta() { return {
|
|
11272
11326
|
"$flags$": 0,
|
|
@@ -11289,7 +11343,7 @@ class EdsIconTwitter {
|
|
|
11289
11343
|
this.class = '';
|
|
11290
11344
|
}
|
|
11291
11345
|
render() {
|
|
11292
|
-
return hAsync("span", { key: '
|
|
11346
|
+
return hAsync("span", { key: 'e149a8a26c99f8048a42ed42f143a5947b215ea5', class: this.class, innerHTML: twitter });
|
|
11293
11347
|
}
|
|
11294
11348
|
static get cmpMeta() { return {
|
|
11295
11349
|
"$flags$": 0,
|
|
@@ -11312,7 +11366,7 @@ class EdsIconUnknown {
|
|
|
11312
11366
|
this.class = '';
|
|
11313
11367
|
}
|
|
11314
11368
|
render() {
|
|
11315
|
-
return hAsync("span", { key: '
|
|
11369
|
+
return hAsync("span", { key: 'f07457a22c642dfe24b1073649bfbef3964cff7e', class: this.class, innerHTML: unknown });
|
|
11316
11370
|
}
|
|
11317
11371
|
static get cmpMeta() { return {
|
|
11318
11372
|
"$flags$": 0,
|
|
@@ -11335,7 +11389,7 @@ class EdsIconUpdown {
|
|
|
11335
11389
|
this.class = '';
|
|
11336
11390
|
}
|
|
11337
11391
|
render() {
|
|
11338
|
-
return hAsync("span", { key: '
|
|
11392
|
+
return hAsync("span", { key: 'f08301d06b129ce9cbd91cceedb64d9db2be6e83', class: this.class, innerHTML: upDown });
|
|
11339
11393
|
}
|
|
11340
11394
|
static get cmpMeta() { return {
|
|
11341
11395
|
"$flags$": 0,
|
|
@@ -11358,7 +11412,7 @@ class EdsIconUser {
|
|
|
11358
11412
|
this.class = '';
|
|
11359
11413
|
}
|
|
11360
11414
|
render() {
|
|
11361
|
-
return hAsync("span", { key: '
|
|
11415
|
+
return hAsync("span", { key: 'e515aa4524e19bdb254712054ebd6283f22c57c8', class: this.class, innerHTML: user });
|
|
11362
11416
|
}
|
|
11363
11417
|
static get cmpMeta() { return {
|
|
11364
11418
|
"$flags$": 0,
|
|
@@ -11381,7 +11435,7 @@ class EdsIconView {
|
|
|
11381
11435
|
this.class = '';
|
|
11382
11436
|
}
|
|
11383
11437
|
render() {
|
|
11384
|
-
return hAsync("span", { key: '
|
|
11438
|
+
return hAsync("span", { key: '18dbaa801845137982847a9cfc4a9ca1ff729b0d', class: this.class, innerHTML: view });
|
|
11385
11439
|
}
|
|
11386
11440
|
static get cmpMeta() { return {
|
|
11387
11441
|
"$flags$": 0,
|
|
@@ -11460,7 +11514,7 @@ class EdsIconYoutube {
|
|
|
11460
11514
|
this.class = '';
|
|
11461
11515
|
}
|
|
11462
11516
|
render() {
|
|
11463
|
-
return hAsync("span", { key: '
|
|
11517
|
+
return hAsync("span", { key: 'a2dd7d5f2d615999cd5e7970a96117ed90bdcda3', class: this.class, innerHTML: youtube });
|
|
11464
11518
|
}
|
|
11465
11519
|
static get cmpMeta() { return {
|
|
11466
11520
|
"$flags$": 0,
|
|
@@ -11536,10 +11590,10 @@ class EdsImg {
|
|
|
11536
11590
|
imgOpts['loading'] = 'lazy';
|
|
11537
11591
|
imgOpts['decoding'] = 'async';
|
|
11538
11592
|
}
|
|
11539
|
-
return (hAsync("div", { key: '
|
|
11593
|
+
return (hAsync("div", { key: '1ff909ca6fe3fe40ca5659cea033b404a45580fb', class: {
|
|
11540
11594
|
'items-center justify-center': true,
|
|
11541
11595
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
11542
|
-
} }, hAsync("picture", { key: '
|
|
11596
|
+
} }, 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: {
|
|
11543
11597
|
'effect-opacity object-cover object-center': true,
|
|
11544
11598
|
'opacity-100': this.loaded,
|
|
11545
11599
|
'opacity-0': !this.loaded
|
|
@@ -11621,7 +11675,7 @@ class EdsInput {
|
|
|
11621
11675
|
render() {
|
|
11622
11676
|
const withIcon = !!this.icon;
|
|
11623
11677
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
11624
|
-
return (hAsync("div", { key: '
|
|
11678
|
+
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'
|
|
11625
11679
|
? {
|
|
11626
11680
|
min: this.min,
|
|
11627
11681
|
max: this.max,
|
|
@@ -11632,7 +11686,7 @@ class EdsInput {
|
|
|
11632
11686
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
11633
11687
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
11634
11688
|
${this.error ? 'input-error' : ''}
|
|
11635
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '
|
|
11689
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }))), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '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 }))));
|
|
11636
11690
|
}
|
|
11637
11691
|
get el() { return getElement(this); }
|
|
11638
11692
|
static get watchers() { return {
|
|
@@ -11771,7 +11825,7 @@ class EdsInputField {
|
|
|
11771
11825
|
}
|
|
11772
11826
|
render() {
|
|
11773
11827
|
const inputOpts = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, (this.type === 'number' ? { min: this.min, max: this.max, step: this.step } : {}));
|
|
11774
|
-
return (hAsync("div", { key: '
|
|
11828
|
+
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' ? ((() => {
|
|
11775
11829
|
var _a, _b, _c;
|
|
11776
11830
|
const rangeProps = {
|
|
11777
11831
|
name: inputOpts.name,
|
|
@@ -11784,7 +11838,7 @@ class EdsInputField {
|
|
|
11784
11838
|
const opt = this.parsedOptions;
|
|
11785
11839
|
const numberValue = typeof this.value === 'string' ? parseFloat(this.value) : this.value || 0;
|
|
11786
11840
|
return (hAsync("eds-input-range", Object.assign({}, rangeProps, { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, value: numberValue })));
|
|
11787
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("div", { key: '
|
|
11841
|
+
})()) : (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 }))));
|
|
11788
11842
|
}
|
|
11789
11843
|
static get delegatesFocus() { return true; }
|
|
11790
11844
|
get hostEl() { return getElement(this); }
|
|
@@ -11836,7 +11890,7 @@ class EdsInputFooter {
|
|
|
11836
11890
|
this.link = undefined;
|
|
11837
11891
|
}
|
|
11838
11892
|
render() {
|
|
11839
|
-
return (hAsync("div", { key: '
|
|
11893
|
+
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 }))));
|
|
11840
11894
|
}
|
|
11841
11895
|
static get style() { return EdsInputFooterStyle0; }
|
|
11842
11896
|
static get cmpMeta() { return {
|
|
@@ -11867,7 +11921,7 @@ class EdsInputLabel {
|
|
|
11867
11921
|
this.disabled = false;
|
|
11868
11922
|
}
|
|
11869
11923
|
render() {
|
|
11870
|
-
return (hAsync("label", { key: '
|
|
11924
|
+
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")))));
|
|
11871
11925
|
}
|
|
11872
11926
|
static get style() { return EdsInputLabelStyle0; }
|
|
11873
11927
|
static get cmpMeta() { return {
|
|
@@ -11933,7 +11987,7 @@ class EdsInputRange {
|
|
|
11933
11987
|
return this.inputElement;
|
|
11934
11988
|
}
|
|
11935
11989
|
render() {
|
|
11936
|
-
return (hAsync("div", { key: '
|
|
11990
|
+
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)));
|
|
11937
11991
|
}
|
|
11938
11992
|
get el() { return getElement(this); }
|
|
11939
11993
|
static get watchers() { return {
|
|
@@ -12028,7 +12082,7 @@ class EdsInputSearch {
|
|
|
12028
12082
|
return this.inputElement;
|
|
12029
12083
|
}
|
|
12030
12084
|
render() {
|
|
12031
|
-
return (hAsync("div", { key: '
|
|
12085
|
+
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}`,
|
|
12032
12086
|
//onInput={this.onInput}
|
|
12033
12087
|
onChange: this.onChange })));
|
|
12034
12088
|
}
|
|
@@ -12082,12 +12136,12 @@ class EdsInputSelect {
|
|
|
12082
12136
|
const selectId = this.inputId || this.name;
|
|
12083
12137
|
const placeholderText = this.placeholder || `Pick from the list`;
|
|
12084
12138
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : undefined;
|
|
12085
|
-
return (hAsync("div", { key: '
|
|
12139
|
+
return (hAsync("div", { key: '7f6a81c0f3d1f998c2bd671722cd06992b382540', class: "relative" }, hAsync("select", { key: '3e62519e3973cf1136cda70a3af1cc2a2e093451', id: selectId, name: this.name, class: {
|
|
12086
12140
|
input: true,
|
|
12087
12141
|
'input-error': this.error,
|
|
12088
12142
|
'px-4': true,
|
|
12089
12143
|
'py-2': true
|
|
12090
|
-
}, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, disabled: this.disabled, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '
|
|
12144
|
+
}, "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" }))));
|
|
12091
12145
|
}
|
|
12092
12146
|
static get cmpMeta() { return {
|
|
12093
12147
|
"$flags$": 0,
|
|
@@ -12176,7 +12230,6 @@ const linkStyles = cva([
|
|
|
12176
12230
|
false: ''
|
|
12177
12231
|
},
|
|
12178
12232
|
size: {
|
|
12179
|
-
underline: 'f-body-02 ',
|
|
12180
12233
|
small: 'min-h-36 f-ui-02 px-12',
|
|
12181
12234
|
large: 'min-h-44 f-ui-01 px-16'
|
|
12182
12235
|
}
|
|
@@ -12229,6 +12282,16 @@ const linkStyles = cva([
|
|
|
12229
12282
|
intent: 'inverse',
|
|
12230
12283
|
isActive: true,
|
|
12231
12284
|
class: 'before:!opacity-100'
|
|
12285
|
+
},
|
|
12286
|
+
{
|
|
12287
|
+
intent: 'underline',
|
|
12288
|
+
size: 'small',
|
|
12289
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-02'
|
|
12290
|
+
},
|
|
12291
|
+
{
|
|
12292
|
+
intent: 'underline',
|
|
12293
|
+
size: 'large',
|
|
12294
|
+
class: '!px-0 !py-0 !min-h-0 f-ui-01'
|
|
12232
12295
|
}
|
|
12233
12296
|
],
|
|
12234
12297
|
defaultVariants: {
|
|
@@ -12255,7 +12318,7 @@ class EdsLink {
|
|
|
12255
12318
|
registerInstance(this, hostRef);
|
|
12256
12319
|
this.parentContext = null; // Accepts the entire event detail or null
|
|
12257
12320
|
this.label = undefined;
|
|
12258
|
-
this.intent =
|
|
12321
|
+
this.intent = 'primary';
|
|
12259
12322
|
this.icon = undefined;
|
|
12260
12323
|
this.iconPos = 'right';
|
|
12261
12324
|
this.iconSmall = false;
|
|
@@ -12267,7 +12330,6 @@ class EdsLink {
|
|
|
12267
12330
|
this.ariaLabel = undefined;
|
|
12268
12331
|
this.disabled = false;
|
|
12269
12332
|
this.hideLabelOnSmallScreen = false;
|
|
12270
|
-
this.extraClass = undefined;
|
|
12271
12333
|
}
|
|
12272
12334
|
handleParentContext(event) {
|
|
12273
12335
|
if (event.target !== this.el) {
|
|
@@ -12312,9 +12374,6 @@ class EdsLink {
|
|
|
12312
12374
|
}
|
|
12313
12375
|
}
|
|
12314
12376
|
getLinkSize() {
|
|
12315
|
-
if (this.intent === 'underline') {
|
|
12316
|
-
return 'underline';
|
|
12317
|
-
}
|
|
12318
12377
|
return this.size;
|
|
12319
12378
|
}
|
|
12320
12379
|
renderLeftIcon() {
|
|
@@ -12343,12 +12402,13 @@ class EdsLink {
|
|
|
12343
12402
|
isActive: this.current,
|
|
12344
12403
|
hasIcon: !!this.icon
|
|
12345
12404
|
});
|
|
12405
|
+
const safeUrl = typeof this.url === 'string' && this.url.length ? this.url : undefined;
|
|
12346
12406
|
const isInteractive = !this.disabled;
|
|
12347
12407
|
const isIconOnly = !this.label || (this.hideLabelOnSmallScreen && this.icon);
|
|
12348
12408
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
12349
12409
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
12350
12410
|
: '';
|
|
12351
|
-
return (hAsync("a", { key: '
|
|
12411
|
+
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())));
|
|
12352
12412
|
}
|
|
12353
12413
|
get el() { return getElement(this); }
|
|
12354
12414
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -12368,8 +12428,7 @@ class EdsLink {
|
|
|
12368
12428
|
"url": [1],
|
|
12369
12429
|
"ariaLabel": [1, "aria-label"],
|
|
12370
12430
|
"disabled": [4],
|
|
12371
|
-
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12372
|
-
"extraClass": [1, "extra-class"]
|
|
12431
|
+
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"]
|
|
12373
12432
|
},
|
|
12374
12433
|
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
12375
12434
|
"$lazyBundleId$": "-",
|
|
@@ -12456,7 +12515,7 @@ class EdsLogo {
|
|
|
12456
12515
|
}
|
|
12457
12516
|
render() {
|
|
12458
12517
|
const logoContent = this.getLogo();
|
|
12459
|
-
return (hAsync("a", { key: '
|
|
12518
|
+
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 })));
|
|
12460
12519
|
}
|
|
12461
12520
|
get el() { return getElement(this); }
|
|
12462
12521
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -12731,9 +12790,9 @@ class EdsModal {
|
|
|
12731
12790
|
render() {
|
|
12732
12791
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
12733
12792
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
12734
|
-
return (hAsync("div", { key: '
|
|
12793
|
+
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
|
|
12735
12794
|
,
|
|
12736
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
12795
|
+
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' })))));
|
|
12737
12796
|
}
|
|
12738
12797
|
get el() { return getElement(this); }
|
|
12739
12798
|
static get style() { return EdsModalStyle0; }
|
|
@@ -12765,71 +12824,84 @@ class EdsNps {
|
|
|
12765
12824
|
this.nps = createEvent(this, "nps", 7);
|
|
12766
12825
|
this.min = 0;
|
|
12767
12826
|
this.max = 10;
|
|
12827
|
+
this.btnRefs = [];
|
|
12828
|
+
this.onSelect = (value) => {
|
|
12829
|
+
this.selectedValue = value;
|
|
12830
|
+
this.nps.emit(value);
|
|
12831
|
+
// Move focus to the selected button (like your rating component)
|
|
12832
|
+
requestAnimationFrame(() => {
|
|
12833
|
+
var _a, _b;
|
|
12834
|
+
const idx = value - this.min;
|
|
12835
|
+
(_b = (_a = this.btnRefs[idx]) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
12836
|
+
});
|
|
12837
|
+
};
|
|
12838
|
+
this.handleKeyNav = (e) => {
|
|
12839
|
+
const { key } = e;
|
|
12840
|
+
const navigational = ['ArrowRight', 'ArrowLeft', 'Home', 'End', ' ', 'Enter'];
|
|
12841
|
+
if (!navigational.includes(key)) {
|
|
12842
|
+
return;
|
|
12843
|
+
}
|
|
12844
|
+
e.preventDefault();
|
|
12845
|
+
const count = this.max - this.min + 1;
|
|
12846
|
+
// Derive current index from selectedValue; if none, use 0 (first)
|
|
12847
|
+
let currentIdx = this.selectedValue == null ? 0 : this.selectedValue - this.min;
|
|
12848
|
+
switch (key) {
|
|
12849
|
+
case 'ArrowRight':
|
|
12850
|
+
currentIdx = Math.min(count - 1, currentIdx + 1);
|
|
12851
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12852
|
+
break;
|
|
12853
|
+
case 'ArrowLeft':
|
|
12854
|
+
currentIdx = Math.max(0, currentIdx - 1);
|
|
12855
|
+
this.setActiveByIndex(currentIdx, /*commit*/ false);
|
|
12856
|
+
break;
|
|
12857
|
+
case 'Home':
|
|
12858
|
+
this.setActiveByIndex(0, /*commit*/ false);
|
|
12859
|
+
break;
|
|
12860
|
+
case 'End':
|
|
12861
|
+
this.setActiveByIndex(count - 1, /*commit*/ false);
|
|
12862
|
+
break;
|
|
12863
|
+
case ' ':
|
|
12864
|
+
case 'Enter':
|
|
12865
|
+
// Commit current focused item
|
|
12866
|
+
this.onSelect(this.min + currentIdx);
|
|
12867
|
+
break;
|
|
12868
|
+
}
|
|
12869
|
+
};
|
|
12768
12870
|
this.question = undefined;
|
|
12769
12871
|
this.leftLabel = undefined;
|
|
12770
12872
|
this.rightLabel = undefined;
|
|
12771
12873
|
this.selectedValue = null;
|
|
12772
12874
|
}
|
|
12773
|
-
|
|
12875
|
+
/** Move visual highlight & roving tabindex; optionally commit selection */
|
|
12876
|
+
setActiveByIndex(index, commit = false) {
|
|
12877
|
+
var _a;
|
|
12878
|
+
const value = this.min + index;
|
|
12879
|
+
// Update highlight so focus movement is visible (like your rating)
|
|
12774
12880
|
this.selectedValue = value;
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
switch (e.key) {
|
|
12781
|
-
case 'ArrowRight':
|
|
12782
|
-
case 'ArrowLeft': {
|
|
12783
|
-
e.preventDefault();
|
|
12784
|
-
const delta = e.key === 'ArrowRight' ? 1 : -1;
|
|
12785
|
-
const nextIndex = Math.min(this.max, Math.max(0, currentIndex + delta));
|
|
12786
|
-
this.activateRadio(radios, nextIndex);
|
|
12787
|
-
break;
|
|
12788
|
-
}
|
|
12789
|
-
case 'Home': {
|
|
12790
|
-
e.preventDefault();
|
|
12791
|
-
this.activateRadio(radios, 0);
|
|
12792
|
-
break;
|
|
12793
|
-
}
|
|
12794
|
-
case 'End': {
|
|
12795
|
-
e.preventDefault();
|
|
12796
|
-
this.activateRadio(radios, this.max);
|
|
12797
|
-
break;
|
|
12798
|
-
}
|
|
12799
|
-
case 'Enter':
|
|
12800
|
-
case ' ': {
|
|
12801
|
-
e.preventDefault();
|
|
12802
|
-
if (currentIndex >= 0) {
|
|
12803
|
-
this.handleClick(this.min + currentIndex);
|
|
12804
|
-
}
|
|
12805
|
-
break;
|
|
12806
|
-
}
|
|
12807
|
-
case 'Escape': {
|
|
12808
|
-
e.preventDefault();
|
|
12809
|
-
if (currentIndex >= 0) {
|
|
12810
|
-
radios[currentIndex].blur();
|
|
12811
|
-
}
|
|
12812
|
-
break;
|
|
12813
|
-
}
|
|
12814
|
-
default:
|
|
12815
|
-
return;
|
|
12881
|
+
// Focus the button host (ensure eds-button forwards focus to its inner <button>)
|
|
12882
|
+
const target = this.btnRefs[index];
|
|
12883
|
+
typeof (target === null || target === void 0 ? void 0 : target.focusInner) === 'function' ? target.focusInner() : (_a = target === null || target === void 0 ? void 0 : target.focus) === null || _a === void 0 ? void 0 : _a.call(target);
|
|
12884
|
+
if (commit) {
|
|
12885
|
+
this.onSelect(value);
|
|
12816
12886
|
}
|
|
12817
12887
|
}
|
|
12818
|
-
activateRadio(radios, index) {
|
|
12819
|
-
const target = radios[index];
|
|
12820
|
-
const value = this.min + index;
|
|
12821
|
-
this.handleClick(value);
|
|
12822
|
-
target.focus();
|
|
12823
|
-
}
|
|
12824
12888
|
render() {
|
|
12825
12889
|
const count = this.max - this.min + 1;
|
|
12826
|
-
|
|
12827
|
-
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) => {
|
|
12890
|
+
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) => {
|
|
12828
12891
|
const val = this.min + i;
|
|
12829
12892
|
const isSelected = val === this.selectedValue;
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12893
|
+
// Roving tabindex: focusable is the selected; if none selected yet, first is focusable
|
|
12894
|
+
const tabIndex = isSelected || (this.selectedValue == null && i === 0) ? 0 : -1;
|
|
12895
|
+
return (hAsync("div", { class: "grid-col-span-1", key: val }, hAsync("eds-button", { ref: (el) => (this.btnRefs[i] = el), role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": `${val}`,
|
|
12896
|
+
// Use onClick so keyboard activation on inner <button> works natively
|
|
12897
|
+
onClick: () => this.onSelect(val), tabIndex: tabIndex, intent: isSelected ? 'primary' : 'ghost', "extra-class": "!block !px-0 w-full", label: `${val}`,
|
|
12898
|
+
// Optional: keep highlight in sync when tabbing into the group
|
|
12899
|
+
onFocus: () => {
|
|
12900
|
+
// Only move highlight on initial focus or when roving; remove if you
|
|
12901
|
+
// want focus without highlight.
|
|
12902
|
+
this.selectedValue = val;
|
|
12903
|
+
} })));
|
|
12904
|
+
})), hAsync("div", { key: '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))));
|
|
12833
12905
|
}
|
|
12834
12906
|
get el() { return getElement(this); }
|
|
12835
12907
|
static get style() { return EdsNpsStyle0; }
|
|
@@ -13101,7 +13173,7 @@ class EdsPagination {
|
|
|
13101
13173
|
}
|
|
13102
13174
|
render() {
|
|
13103
13175
|
const navigableIndex = -1; // Track index for keyboard navigation
|
|
13104
|
-
return (hAsync("div", { key: '
|
|
13176
|
+
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) => {
|
|
13105
13177
|
if (this.mode === 'default' && !this.isFirstPage()) {
|
|
13106
13178
|
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
13107
13179
|
}
|
|
@@ -13308,7 +13380,7 @@ class EdsProgressBar {
|
|
|
13308
13380
|
]
|
|
13309
13381
|
.filter(Boolean)
|
|
13310
13382
|
.join(' ');
|
|
13311
|
-
return (hAsync("div", { key: '
|
|
13383
|
+
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, "%"))));
|
|
13312
13384
|
}
|
|
13313
13385
|
static get style() { return EdsProgressBarStyle0; }
|
|
13314
13386
|
static get cmpMeta() { return {
|
|
@@ -13391,7 +13463,7 @@ class EdsRating {
|
|
|
13391
13463
|
this.onSelect(next);
|
|
13392
13464
|
}
|
|
13393
13465
|
render() {
|
|
13394
|
-
return (hAsync("div", { key: '
|
|
13466
|
+
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) => {
|
|
13395
13467
|
const starRating = index + 1;
|
|
13396
13468
|
const isSelected = starRating <= this.selectedRating;
|
|
13397
13469
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -13441,7 +13513,7 @@ class EdsSectionCore {
|
|
|
13441
13513
|
}
|
|
13442
13514
|
render() {
|
|
13443
13515
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
13444
|
-
return (hAsync(TagType, { key: '
|
|
13516
|
+
return (hAsync(TagType, { key: '97a75a0b2a26e912499d844df4e3eb10c2c9eb29' }, hAsync("eds-section-heading", { key: 'fe5d0d7a0594bac513551c4a7ea45e34598ec265', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5f6492d074ffc9996ac39449a037e267a5b399d2' })));
|
|
13445
13517
|
}
|
|
13446
13518
|
static get style() { return EdsSectionCoreStyle0; }
|
|
13447
13519
|
static get cmpMeta() { return {
|
|
@@ -13496,12 +13568,12 @@ class EdsSectionHeading {
|
|
|
13496
13568
|
render() {
|
|
13497
13569
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
13498
13570
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
13499
|
-
return (hAsync(TagType, { key: '
|
|
13571
|
+
return (hAsync(TagType, { key: '9003f6d452637cdc9ed3bea69689cd92546860b8', class: {
|
|
13500
13572
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
13501
13573
|
container: this.withContainer,
|
|
13502
13574
|
'pt-48': this.spacingLarge,
|
|
13503
13575
|
'pt-28': !this.spacingLarge
|
|
13504
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13576
|
+
} }, hAsync(HeadingTag, { key: '2cb120e1bf8e4816cb56c8ba8f8bbae546bd7baf', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
13505
13577
|
}
|
|
13506
13578
|
static get cmpMeta() { return {
|
|
13507
13579
|
"$flags$": 0,
|
|
@@ -13519,6 +13591,186 @@ class EdsSectionHeading {
|
|
|
13519
13591
|
}; }
|
|
13520
13592
|
}
|
|
13521
13593
|
|
|
13594
|
+
const edsSidebarCss = ":host{display:block;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;transition:width 0.3s ease}:host(.collapsed){width:4rem}:host::-webkit-scrollbar{width:8px}:host::-webkit-scrollbar-track{background:transparent}:host::-webkit-scrollbar-thumb{background:rgba(0, 0, 0, 0.2);border-radius:4px}:host::-webkit-scrollbar-thumb:hover{background:rgba(0, 0, 0, 0.3)}.sidebar-nav{padding:0.5rem 0}.sidebar-header{display:flex;justify-content:flex-end;padding:0.5rem 0.75rem;margin-bottom:0.5rem}:host(.collapsed) .sidebar-header{justify-content:center;padding:0.5rem}.collapse-toggle{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;background:none;border:none;cursor:pointer;padding:0;border-radius:0.375rem;transition:background-color 0.15s ease;color:inherit}.collapse-toggle:hover{background-color:rgba(0, 0, 0, 0.08)}.collapse-toggle:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:2px}.sidebar-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.125rem}.sidebar-item{display:flex;flex-direction:column}.sidebar-item-content{display:flex;align-items:center;gap:0.5rem;padding:0.5rem 0.75rem;cursor:pointer;user-select:none;word-break:break-word;transition:background-color 0.15s ease;border-radius:0.375rem;margin:0 0.5rem;position:relative}:host(.collapsed) .sidebar-item-content{justify-content:center;padding:0.75rem;margin:0 0.5rem}.sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}.sidebar-item-content:focus-visible{outline:2px solid var(--eds-focus-color, #0066cc);outline-offset:-2px;z-index:1}.sidebar-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem}.sidebar-content-wrapper{display:flex;align-items:center;gap:0.5rem;flex:1;min-width:0}.sidebar-toggle{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;margin:-0.125rem 0;pointer-events:none}.sidebar-link-wrapper{flex:1;min-width:0;pointer-events:none}.sidebar-link{font-weight:400;pointer-events:none}.sidebar-children{list-style:none;margin:0.25rem 0 0 0;padding:0;display:flex;flex-direction:column;gap:0.125rem;overflow:hidden;animation:slideDown 0.2s ease}@keyframes slideDown{from{opacity:0;transform:translateY(-0.25rem)}to{opacity:1;transform:translateY(0)}}.sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.collapsed) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}.sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}.sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}.sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}.sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}.sidebar-item.level-5 .sidebar-item-content{padding-left:7rem}:host(.theme-default) .sidebar-item-content{border-radius:0.375rem;margin:0 0.5rem;padding:0.5rem 0.75rem}:host(.theme-default.collapsed) .sidebar-item-content{margin:0 0.5rem;border-radius:0.375rem}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.04)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:transparent}:host(.theme-default) .sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:600}:host(.theme-default) .sidebar-item.level-0 .sidebar-item-content{padding-left:0.75rem}:host(.theme-default) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-default) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-default) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-default) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-item-content{border-radius:0;margin:0;padding-left:1rem;padding-right:1rem}:host(.theme-minimal.collapsed) .sidebar-item-content{margin:0 0.25rem;border-radius:0.375rem}:host(.theme-minimal) .sidebar-item-content:hover{background-color:var(--grey-300)}:host(.theme-minimal) .sidebar-item.active>.sidebar-item-content{background-color:var(--grey-400);border-left:3px solid var(--grey-900);padding-left:calc(1rem - 3px)}:host(.theme-minimal.collapsed) .sidebar-item.active>.sidebar-item-content{border-left:none;border-radius:0.375rem;padding-left:0.75rem}:host(.theme-minimal) .sidebar-item.level-1.active>.sidebar-item-content{padding-left:calc(2rem - 3px)}:host(.theme-minimal) .sidebar-item.level-2.active>.sidebar-item-content{padding-left:calc(3.25rem - 3px)}:host(.theme-minimal) .sidebar-item.level-3.active>.sidebar-item-content{padding-left:calc(4.5rem - 3px)}:host(.theme-minimal) .sidebar-item.level-4.active>.sidebar-item-content{padding-left:calc(5.75rem - 3px)}:host(.theme-minimal) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-minimal) .sidebar-item.level-1 .sidebar-item-content{padding-left:2rem}:host(.theme-minimal) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.25rem}:host(.theme-minimal) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.5rem}:host(.theme-minimal) .sidebar-item.level-4 .sidebar-item-content{padding-left:5.75rem}:host(.theme-minimal) .sidebar-children{position:relative}:host(.theme-ebrains) .sidebar-item-content{padding:0.5rem 1rem;border-radius:0.5rem;margin:0 0.5rem}:host(.theme-ebrains.collapsed) .sidebar-item-content{padding:0.75rem}:host(.theme-ebrains) .sidebar-item-content:hover{background-color:rgba(0, 0, 0, 0.05)}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content{background-color:var(--green-600, #22c55e);color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-link{--eds-link-color:white;--eds-link-hover-color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-toggle{color:white}:host(.theme-ebrains) .sidebar-item.active>.sidebar-item-content .sidebar-icon{color:white}:host(.theme-ebrains) .sidebar-item.level-0 .sidebar-item-content{padding-left:1rem}:host(.theme-ebrains) .sidebar-item.level-1 .sidebar-item-content{padding-left:2.25rem}:host(.theme-ebrains) .sidebar-item.level-2 .sidebar-item-content{padding-left:3.5rem}:host(.theme-ebrains) .sidebar-item.level-3 .sidebar-item-content{padding-left:4.75rem}:host(.theme-ebrains) .sidebar-item.level-4 .sidebar-item-content{padding-left:6rem}@media (prefers-color-scheme: dark){.collapse-toggle:hover{background-color:rgba(255, 255, 255, 0.08)}:host(.theme-default) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.05)}:host(.theme-default) .sidebar-item.active>.sidebar-item-content{background-color:rgba(0, 102, 204, 0.15)}:host(.theme-minimal) .sidebar-item-content:hover{background-color:rgba(255, 255, 255, 0.06)}:host::-webkit-scrollbar-thumb{background:rgba(255, 255, 255, 0.2)}:host::-webkit-scrollbar-thumb:hover{background:rgba(255, 255, 255, 0.3)}}.sidebar-toggle eds-icon-wrapper,.sidebar-icon eds-icon-wrapper,.collapse-toggle eds-icon-wrapper{transition:transform 0.15s ease;display:flex;align-items:center;justify-content:center}.sidebar-item-content:focus-visible .sidebar-link{text-decoration:underline}.sidebar-item.active>.sidebar-item-content .sidebar-link{font-weight:500}:host(.collapsed) .sidebar-item-content::after{content:attr(title);position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:0.5rem;padding:0.5rem 0.75rem;background:rgba(0, 0, 0, 0.9);color:white;border-radius:0.375rem;white-space:nowrap;font-size:0.875rem;opacity:0;pointer-events:none;transition:opacity 0.2s ease;z-index:1000}:host(.collapsed) .sidebar-item-content:hover::after{opacity:1;transition-delay:0.3s}.-ml-4{margin-left:-0.25rem}.mt-2{margin-top:0.125rem}";
|
|
13595
|
+
var EdsSidebarStyle0 = edsSidebarCss;
|
|
13596
|
+
|
|
13597
|
+
class EdsSidebar {
|
|
13598
|
+
constructor(hostRef) {
|
|
13599
|
+
registerInstance(this, hostRef);
|
|
13600
|
+
this.sidebar = createEvent(this, "sidebar", 7);
|
|
13601
|
+
this.toggleItem = (itemId, ev) => {
|
|
13602
|
+
if (ev) {
|
|
13603
|
+
ev.stopPropagation();
|
|
13604
|
+
}
|
|
13605
|
+
const newOpen = new Set(this.openItems);
|
|
13606
|
+
if (newOpen.has(itemId)) {
|
|
13607
|
+
newOpen.delete(itemId);
|
|
13608
|
+
}
|
|
13609
|
+
else {
|
|
13610
|
+
newOpen.add(itemId);
|
|
13611
|
+
}
|
|
13612
|
+
this.openItems = newOpen;
|
|
13613
|
+
};
|
|
13614
|
+
this.navigate = (url, ev) => {
|
|
13615
|
+
if (!this.enableRouting || !url) {
|
|
13616
|
+
return;
|
|
13617
|
+
}
|
|
13618
|
+
if (ev) {
|
|
13619
|
+
ev.preventDefault();
|
|
13620
|
+
ev.stopPropagation();
|
|
13621
|
+
}
|
|
13622
|
+
// Emit custom event for routing
|
|
13623
|
+
this.sidebar.emit(url);
|
|
13624
|
+
// Update browser history if available
|
|
13625
|
+
if (typeof window !== 'undefined' && window.history) {
|
|
13626
|
+
window.history.pushState({}, '', url);
|
|
13627
|
+
}
|
|
13628
|
+
};
|
|
13629
|
+
this.handleItemClick = (item, ev) => {
|
|
13630
|
+
var _a;
|
|
13631
|
+
// If item has children, ONLY toggle (don't navigate)
|
|
13632
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13633
|
+
this.toggleItem(item.id, ev);
|
|
13634
|
+
return;
|
|
13635
|
+
}
|
|
13636
|
+
// Only navigate if no children and has URL
|
|
13637
|
+
if (item.url) {
|
|
13638
|
+
this.navigate(item.url, ev);
|
|
13639
|
+
}
|
|
13640
|
+
};
|
|
13641
|
+
this.items = '[]';
|
|
13642
|
+
this.theme = 'default';
|
|
13643
|
+
this.activeUrl = '';
|
|
13644
|
+
this.enableRouting = true;
|
|
13645
|
+
this.maxLevel = 4;
|
|
13646
|
+
this.openItems = new Set();
|
|
13647
|
+
this.parsedItems = [];
|
|
13648
|
+
}
|
|
13649
|
+
// ---------------------------------------------------------------------------
|
|
13650
|
+
// Lifecycle
|
|
13651
|
+
// ---------------------------------------------------------------------------
|
|
13652
|
+
componentWillLoad() {
|
|
13653
|
+
this.parsedItems = this.parseItems(this.items);
|
|
13654
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13655
|
+
}
|
|
13656
|
+
// ---------------------------------------------------------------------------
|
|
13657
|
+
// Watchers
|
|
13658
|
+
// ---------------------------------------------------------------------------
|
|
13659
|
+
handleItemsChange(newItems) {
|
|
13660
|
+
this.parsedItems = this.parseItems(newItems);
|
|
13661
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13662
|
+
}
|
|
13663
|
+
handleActiveUrlChange() {
|
|
13664
|
+
this.initializeOpenItems(this.parsedItems);
|
|
13665
|
+
}
|
|
13666
|
+
// ---------------------------------------------------------------------------
|
|
13667
|
+
// Utils
|
|
13668
|
+
// ---------------------------------------------------------------------------
|
|
13669
|
+
parseItems(items) {
|
|
13670
|
+
if (Array.isArray(items)) {
|
|
13671
|
+
return items;
|
|
13672
|
+
}
|
|
13673
|
+
if (typeof items === 'string') {
|
|
13674
|
+
if (!items || items.trim() === '') {
|
|
13675
|
+
return [];
|
|
13676
|
+
}
|
|
13677
|
+
try {
|
|
13678
|
+
const parsed = JSON.parse(items);
|
|
13679
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
13680
|
+
}
|
|
13681
|
+
catch (e) {
|
|
13682
|
+
console.error('eds-sidebar: Failed to parse items JSON:', e);
|
|
13683
|
+
console.error('Received string:', items);
|
|
13684
|
+
return [];
|
|
13685
|
+
}
|
|
13686
|
+
}
|
|
13687
|
+
return [];
|
|
13688
|
+
}
|
|
13689
|
+
initializeOpenItems(items, level = 0) {
|
|
13690
|
+
if (level === 0) {
|
|
13691
|
+
// reset before recomputing
|
|
13692
|
+
this.openItems = new Set();
|
|
13693
|
+
}
|
|
13694
|
+
if (level >= this.maxLevel) {
|
|
13695
|
+
return;
|
|
13696
|
+
}
|
|
13697
|
+
items.forEach((item) => {
|
|
13698
|
+
var _a;
|
|
13699
|
+
const isActive = this.activeUrl && item.url === this.activeUrl;
|
|
13700
|
+
const hasActiveChild = this.hasActiveDescendant(item);
|
|
13701
|
+
if (item.open || isActive || hasActiveChild) {
|
|
13702
|
+
this.openItems.add(item.id);
|
|
13703
|
+
}
|
|
13704
|
+
if ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13705
|
+
this.initializeOpenItems(item.children, level + 1);
|
|
13706
|
+
}
|
|
13707
|
+
});
|
|
13708
|
+
}
|
|
13709
|
+
hasActiveDescendant(item) {
|
|
13710
|
+
var _a;
|
|
13711
|
+
if (item.url === this.activeUrl) {
|
|
13712
|
+
return true;
|
|
13713
|
+
}
|
|
13714
|
+
if (!((_a = item.children) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
13715
|
+
return false;
|
|
13716
|
+
}
|
|
13717
|
+
return item.children.some((child) => this.hasActiveDescendant(child));
|
|
13718
|
+
}
|
|
13719
|
+
// ---------------------------------------------------------------------------
|
|
13720
|
+
// Render
|
|
13721
|
+
// ---------------------------------------------------------------------------
|
|
13722
|
+
renderItem(item, level = 0) {
|
|
13723
|
+
if (level >= this.maxLevel) {
|
|
13724
|
+
return null;
|
|
13725
|
+
}
|
|
13726
|
+
const isOpen = this.openItems.has(item.id);
|
|
13727
|
+
const isActive = !!item.url && this.activeUrl === item.url;
|
|
13728
|
+
const hasChildren = !!(item.children && item.children.length);
|
|
13729
|
+
const itemId = `eds-sidebar-${item.id}`;
|
|
13730
|
+
const childrenId = `${itemId}-children`;
|
|
13731
|
+
return (hAsync("li", { class: {
|
|
13732
|
+
'sidebar-item': true,
|
|
13733
|
+
open: isOpen,
|
|
13734
|
+
active: isActive,
|
|
13735
|
+
'has-children': hasChildren,
|
|
13736
|
+
[`level-${level}`]: true
|
|
13737
|
+
} }, hAsync("div", { class: "sidebar-item-content", onClick: (e) => this.handleItemClick(item, e), role: hasChildren ? 'button' : item.url ? 'link' : 'button', tabindex: "0", "aria-current": isActive ? 'page' : undefined, "aria-expanded": hasChildren ? (isOpen ? 'true' : 'false') : undefined, "aria-controls": hasChildren ? childrenId : undefined, onKeyDown: (e) => {
|
|
13738
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
13739
|
+
e.preventDefault();
|
|
13740
|
+
this.handleItemClick(item, e);
|
|
13741
|
+
}
|
|
13742
|
+
} }, hasChildren && (hAsync("span", { class: "sidebar-toggle mt-2 -ml-4", "aria-hidden": "true" }, hAsync("eds-icon-wrapper", { icon: isOpen ? 'chevron-down' : 'chevron-right' }))), hAsync("span", { class: "sidebar-link-wrapper" }, hAsync("eds-link", { label: item.title, url: item.url || '#', intent: isActive ? 'strong' : 'weak', size: "small", "aria-label": item.title, "extra-class": "sidebar-link", tabindex: "-1" }))), hasChildren && isOpen && (hAsync("ul", { id: childrenId, class: "sidebar-children" }, item.children.map((child) => this.renderItem(child, level + 1))))));
|
|
13743
|
+
}
|
|
13744
|
+
render() {
|
|
13745
|
+
return (hAsync(Host, { key: '4334d20e5d72671243633253910ab05b4da013da', class: {
|
|
13746
|
+
'eds-sidebar': true,
|
|
13747
|
+
[`theme-${this.theme}`]: true
|
|
13748
|
+
} }, hAsync("nav", { key: '319f6f42416d4229f1b011bf1216b39c8627302d', class: "sidebar-nav", "aria-label": "Sidebar" }, hAsync("ul", { key: '687ceae3eca3e844e8f6a361db4a76d127d27813', class: "sidebar-list" }, this.parsedItems.map((item) => this.renderItem(item, 0))))));
|
|
13749
|
+
}
|
|
13750
|
+
get el() { return getElement(this); }
|
|
13751
|
+
static get watchers() { return {
|
|
13752
|
+
"items": ["handleItemsChange"],
|
|
13753
|
+
"activeUrl": ["handleActiveUrlChange"]
|
|
13754
|
+
}; }
|
|
13755
|
+
static get style() { return EdsSidebarStyle0; }
|
|
13756
|
+
static get cmpMeta() { return {
|
|
13757
|
+
"$flags$": 9,
|
|
13758
|
+
"$tagName$": "eds-sidebar",
|
|
13759
|
+
"$members$": {
|
|
13760
|
+
"items": [1],
|
|
13761
|
+
"theme": [1],
|
|
13762
|
+
"activeUrl": [1, "active-url"],
|
|
13763
|
+
"enableRouting": [4, "enable-routing"],
|
|
13764
|
+
"maxLevel": [2, "max-level"],
|
|
13765
|
+
"openItems": [32],
|
|
13766
|
+
"parsedItems": [32]
|
|
13767
|
+
},
|
|
13768
|
+
"$listeners$": undefined,
|
|
13769
|
+
"$lazyBundleId$": "-",
|
|
13770
|
+
"$attrsToReflect$": []
|
|
13771
|
+
}; }
|
|
13772
|
+
}
|
|
13773
|
+
|
|
13522
13774
|
const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.mt-12{margin-top:0.75rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
13523
13775
|
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13524
13776
|
|
|
@@ -13575,7 +13827,7 @@ class EdsSocialNetworks {
|
|
|
13575
13827
|
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
13576
13828
|
*/
|
|
13577
13829
|
render() {
|
|
13578
|
-
return (hAsync("nav", { key: '
|
|
13830
|
+
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" })))))));
|
|
13579
13831
|
}
|
|
13580
13832
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13581
13833
|
static get cmpMeta() { return {
|
|
@@ -13666,7 +13918,7 @@ class EdsSpinner {
|
|
|
13666
13918
|
alignItems: 'center',
|
|
13667
13919
|
justifyContent: 'center'
|
|
13668
13920
|
};
|
|
13669
|
-
return (hAsync(Host, { key: '
|
|
13921
|
+
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))));
|
|
13670
13922
|
}
|
|
13671
13923
|
static get style() { return EdsSpinnerStyle0; }
|
|
13672
13924
|
static get cmpMeta() { return {
|
|
@@ -13750,7 +14002,7 @@ class EdsSplashScreen {
|
|
|
13750
14002
|
}; }
|
|
13751
14003
|
}
|
|
13752
14004
|
|
|
13753
|
-
const edsStepsCss = ".steps{position:sticky;margin-left:16px;
|
|
14005
|
+
const edsStepsCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-39px;top:-2px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.mb-16{margin-bottom:1rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role=\"button\"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0}.horizontal-step{display:flex;flex-direction:column;align-items:center;gap:0.5rem;cursor:pointer;flex:1;position:relative}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.25rem;left:50%;width:100%;height:2px;background-color:#e0e0e0;z-index:-1}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--green-500);}.step-indicator{width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease}.horizontal-step.is-active .step-indicator{border-color:var(--green-500);background-color:var(--green-500);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--green-500);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-weight:600;font-size:0.875rem}.step-label{font-size:0.875rem;text-align:center;font-weight:500}.horizontal-step.is-active .step-label{color:var(--green-500)}.step-content{padding:2rem 0;margin-left:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem);margin-right:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem)}.opacity-50{opacity:0.5}.eds-steps__title[role=\"button\"]{cursor:pointer}";
|
|
13754
14006
|
var EdsStepsStyle0 = edsStepsCss;
|
|
13755
14007
|
|
|
13756
14008
|
class EdsSteps {
|
|
@@ -13761,47 +14013,63 @@ class EdsSteps {
|
|
|
13761
14013
|
this.next = createEvent(this, "next", 7);
|
|
13762
14014
|
this.back = createEvent(this, "back", 7);
|
|
13763
14015
|
this.handleTitleClick = (index) => {
|
|
13764
|
-
//
|
|
13765
|
-
if (
|
|
13766
|
-
|
|
14016
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14017
|
+
if (this.type === 'linear') {
|
|
14018
|
+
// prevent jumping forward over disabled steps
|
|
14019
|
+
if (index > this.activeStep) {
|
|
14020
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14021
|
+
if (this.isStepDisabled(i)) {
|
|
14022
|
+
return;
|
|
14023
|
+
}
|
|
14024
|
+
}
|
|
14025
|
+
}
|
|
14026
|
+
this.activeStep = index;
|
|
13767
14027
|
this.step.emit(this.activeStep);
|
|
13768
14028
|
return;
|
|
13769
14029
|
}
|
|
13770
|
-
//
|
|
13771
|
-
|
|
13772
|
-
|
|
14030
|
+
// Non-linear vertical mode: support optional collapse/expand on current title
|
|
14031
|
+
if (this.orientation === 'vertical' && index === this.activeStep && this.collapsibleTitles) {
|
|
14032
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14033
|
+
this.step.emit(this.activeStep);
|
|
13773
14034
|
return;
|
|
13774
|
-
}
|
|
13775
|
-
//
|
|
14035
|
+
}
|
|
14036
|
+
// Otherwise, just set
|
|
13776
14037
|
this.activeStep = index;
|
|
13777
14038
|
this.step.emit(this.activeStep);
|
|
13778
14039
|
};
|
|
13779
14040
|
this.handleNext = () => {
|
|
13780
14041
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14042
|
+
// On last step
|
|
13781
14043
|
if (this.activeStep >= lastIndex) {
|
|
13782
|
-
this.activeStep = -1;
|
|
13783
14044
|
this.finished.emit();
|
|
14045
|
+
this.activeStep = -1; // collapse the content
|
|
14046
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13784
14047
|
return;
|
|
13785
14048
|
}
|
|
13786
14049
|
const target = this.activeStep + 1;
|
|
13787
14050
|
this.next.emit(target);
|
|
13788
|
-
if (this.
|
|
14051
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
13789
14052
|
return;
|
|
13790
|
-
}
|
|
14053
|
+
}
|
|
13791
14054
|
this.activeStep = target;
|
|
13792
14055
|
this.step.emit(this.activeStep);
|
|
13793
|
-
// 2) if using the boolean form, clear it when moving away from a step
|
|
13794
14056
|
if (!Array.isArray(this.disableNext)) {
|
|
13795
14057
|
this.disableNext = false;
|
|
13796
14058
|
}
|
|
13797
14059
|
};
|
|
13798
14060
|
this.handleBack = () => {
|
|
14061
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14062
|
+
// If somehow collapsed, recover to last visible step first
|
|
14063
|
+
if (this.activeStep < 0) {
|
|
14064
|
+
this.activeStep = lastIndex;
|
|
14065
|
+
this.step.emit(this.activeStep);
|
|
14066
|
+
return;
|
|
14067
|
+
}
|
|
13799
14068
|
if (this.activeStep > 0) {
|
|
13800
14069
|
const target = this.activeStep - 1;
|
|
13801
14070
|
this.back.emit(target);
|
|
13802
14071
|
this.activeStep = target;
|
|
13803
14072
|
this.step.emit(this.activeStep);
|
|
13804
|
-
// also clear boolean form on back
|
|
13805
14073
|
if (!Array.isArray(this.disableNext)) {
|
|
13806
14074
|
this.disableNext = false;
|
|
13807
14075
|
}
|
|
@@ -13809,51 +14077,91 @@ class EdsSteps {
|
|
|
13809
14077
|
};
|
|
13810
14078
|
this.steps = [];
|
|
13811
14079
|
this.type = 'static';
|
|
14080
|
+
this.orientation = 'vertical';
|
|
13812
14081
|
this.nextLabel = 'Next';
|
|
13813
14082
|
this.backLabel = 'Back';
|
|
13814
14083
|
this.finishLabel = 'Finish';
|
|
13815
14084
|
this.disableNext = false;
|
|
13816
14085
|
this.headingLevel = 'h4';
|
|
14086
|
+
this.collapsibleTitles = false;
|
|
13817
14087
|
this.activeStep = 0;
|
|
13818
14088
|
}
|
|
14089
|
+
handleDisableNextChange(newValue) {
|
|
14090
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14091
|
+
try {
|
|
14092
|
+
this.disableNext = JSON.parse(newValue);
|
|
14093
|
+
}
|
|
14094
|
+
catch (e) {
|
|
14095
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14096
|
+
}
|
|
14097
|
+
}
|
|
14098
|
+
}
|
|
14099
|
+
componentWillLoad() {
|
|
14100
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14101
|
+
}
|
|
13819
14102
|
componentDidLoad() {
|
|
13820
|
-
var _a;
|
|
13821
14103
|
if (this.type === 'linear') {
|
|
13822
|
-
const
|
|
14104
|
+
const root = this.el.shadowRoot || this.el;
|
|
14105
|
+
const btns = root.querySelectorAll('eds-button');
|
|
13823
14106
|
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
13824
14107
|
}
|
|
13825
14108
|
}
|
|
13826
14109
|
activeStepChanged(newValue) {
|
|
14110
|
+
// Clamp to valid range or collapsed sentinel
|
|
14111
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14112
|
+
if (newValue > max) {
|
|
14113
|
+
this.activeStep = max;
|
|
14114
|
+
return;
|
|
14115
|
+
}
|
|
14116
|
+
if (newValue < -1) {
|
|
14117
|
+
this.activeStep = -1;
|
|
14118
|
+
return;
|
|
14119
|
+
}
|
|
14120
|
+
// If collapsed (only possible in non-linear mode), do not emit context
|
|
14121
|
+
if (newValue < 0) {
|
|
14122
|
+
return;
|
|
14123
|
+
}
|
|
13827
14124
|
setTimeout(() => {
|
|
13828
|
-
|
|
13829
|
-
const
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
}
|
|
14125
|
+
const root = this.el.shadowRoot || this.el;
|
|
14126
|
+
const all = root.querySelectorAll('.step');
|
|
14127
|
+
const active = all && newValue < all.length ? all[newValue] : undefined;
|
|
14128
|
+
active === null || active === void 0 ? void 0 : active.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13833
14129
|
}, 50);
|
|
13834
14130
|
}
|
|
13835
14131
|
emitContext(linkElement) {
|
|
13836
14132
|
const event = new CustomEvent('parentContext', {
|
|
13837
|
-
detail: {
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
}
|
|
14133
|
+
detail: { componentName: this.el.tagName.toLowerCase(), identifier: this.activeStep },
|
|
14134
|
+
bubbles: true,
|
|
14135
|
+
composed: true
|
|
13841
14136
|
});
|
|
13842
14137
|
linkElement.dispatchEvent(event);
|
|
13843
14138
|
}
|
|
13844
14139
|
get parsedSteps() {
|
|
13845
14140
|
return parseData(this.steps);
|
|
13846
14141
|
}
|
|
14142
|
+
isStepDisabled(index) {
|
|
14143
|
+
if (Array.isArray(this.disableNext)) {
|
|
14144
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14145
|
+
}
|
|
14146
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14147
|
+
}
|
|
13847
14148
|
isNextDisabledFor(index) {
|
|
13848
|
-
return
|
|
13849
|
-
? !!this.disableNext[index] // per-step
|
|
13850
|
-
: index === this.activeStep && !!this.disableNext; // only active step
|
|
14149
|
+
return this.isStepDisabled(index);
|
|
13851
14150
|
}
|
|
13852
14151
|
/** Render the semantic heading element as a clickable control only in linear mode */
|
|
13853
14152
|
renderHeading(title, index) {
|
|
13854
14153
|
const Tag = this.headingLevel;
|
|
14154
|
+
const isOpen = this.activeStep === index;
|
|
13855
14155
|
if (this.type === 'linear') {
|
|
13856
|
-
|
|
14156
|
+
let forwardBlocked = false;
|
|
14157
|
+
if (index > this.activeStep) {
|
|
14158
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14159
|
+
if (this.isStepDisabled(i)) {
|
|
14160
|
+
forwardBlocked = true;
|
|
14161
|
+
break;
|
|
14162
|
+
}
|
|
14163
|
+
}
|
|
14164
|
+
}
|
|
13857
14165
|
const onKey = (e) => {
|
|
13858
14166
|
if (forwardBlocked) {
|
|
13859
14167
|
return;
|
|
@@ -13863,24 +14171,61 @@ class EdsSteps {
|
|
|
13863
14171
|
this.handleTitleClick(index);
|
|
13864
14172
|
}
|
|
13865
14173
|
};
|
|
13866
|
-
const isOpen = this.activeStep === index;
|
|
13867
14174
|
return (hAsync(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
|
|
13868
14175
|
}
|
|
13869
|
-
return hAsync(Tag, { class:
|
|
14176
|
+
return (hAsync(Tag, { class: `eds-steps__title ${this.collapsibleTitles && index !== this.activeStep ? '' : ''}`, onClick: () => this.handleTitleClick(index) }, title));
|
|
14177
|
+
}
|
|
14178
|
+
/** Render horizontal step indicator */
|
|
14179
|
+
renderHorizontalIndicator(step, index) {
|
|
14180
|
+
const isActive = this.activeStep === index;
|
|
14181
|
+
const isCompleted = this.activeStep > index;
|
|
14182
|
+
let forwardBlocked = false;
|
|
14183
|
+
if (index > this.activeStep) {
|
|
14184
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14185
|
+
if (this.isStepDisabled(i)) {
|
|
14186
|
+
forwardBlocked = true;
|
|
14187
|
+
break;
|
|
14188
|
+
}
|
|
14189
|
+
}
|
|
14190
|
+
}
|
|
14191
|
+
const onKey = (e) => {
|
|
14192
|
+
if (forwardBlocked) {
|
|
14193
|
+
return;
|
|
14194
|
+
}
|
|
14195
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14196
|
+
e.preventDefault();
|
|
14197
|
+
this.handleTitleClick(index);
|
|
14198
|
+
}
|
|
14199
|
+
};
|
|
14200
|
+
return (hAsync("div", { class: `horizontal-step ${isActive ? 'is-active' : ''} ${isCompleted ? 'is-completed' : ''}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-label": `Step ${index + 1}: ${step.title}`, "aria-current": isActive ? 'step' : undefined, "aria-disabled": forwardBlocked ? 'true' : 'false' }, hAsync("div", { class: "step-indicator" }, hAsync("span", { class: "step-number" }, index + 1)), hAsync("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
13870
14201
|
}
|
|
13871
14202
|
render() {
|
|
13872
14203
|
const steps = this.parsedSteps;
|
|
14204
|
+
// Horizontal Linear
|
|
14205
|
+
if (this.type === 'linear' && this.orientation === 'horizontal') {
|
|
14206
|
+
return (hAsync("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, hAsync("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
14207
|
+
const isLast = index === steps.length - 1;
|
|
14208
|
+
if (this.activeStep !== index) {
|
|
14209
|
+
return null;
|
|
14210
|
+
}
|
|
14211
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14212
|
+
return (hAsync("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })));
|
|
14213
|
+
})));
|
|
14214
|
+
}
|
|
14215
|
+
// Vertical Linear
|
|
13873
14216
|
if (this.type === 'linear') {
|
|
13874
14217
|
return (hAsync("div", { class: "steps" }, steps.map((step, index) => {
|
|
13875
14218
|
const isLast = index === steps.length - 1;
|
|
13876
|
-
|
|
14219
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14220
|
+
return (hAsync("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })))));
|
|
13877
14221
|
})));
|
|
13878
14222
|
}
|
|
13879
|
-
// Static
|
|
13880
|
-
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-
|
|
14223
|
+
// Static
|
|
14224
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), hAsync("div", { class: "content", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter my-16", innerHTML: step.content }))))))));
|
|
13881
14225
|
}
|
|
13882
14226
|
get el() { return getElement(this); }
|
|
13883
14227
|
static get watchers() { return {
|
|
14228
|
+
"disableNext": ["handleDisableNextChange"],
|
|
13884
14229
|
"activeStep": ["activeStepChanged"]
|
|
13885
14230
|
}; }
|
|
13886
14231
|
static get style() { return EdsStepsStyle0; }
|
|
@@ -13890,11 +14235,13 @@ class EdsSteps {
|
|
|
13890
14235
|
"$members$": {
|
|
13891
14236
|
"steps": [1],
|
|
13892
14237
|
"type": [1],
|
|
14238
|
+
"orientation": [1],
|
|
13893
14239
|
"nextLabel": [1, "next-label"],
|
|
13894
14240
|
"backLabel": [1, "back-label"],
|
|
13895
14241
|
"finishLabel": [1, "finish-label"],
|
|
13896
|
-
"disableNext": [
|
|
14242
|
+
"disableNext": [1032, "disable-next"],
|
|
13897
14243
|
"headingLevel": [513, "heading-level"],
|
|
14244
|
+
"collapsibleTitles": [4, "collapsible-titles"],
|
|
13898
14245
|
"activeStep": [32]
|
|
13899
14246
|
},
|
|
13900
14247
|
"$listeners$": undefined,
|
|
@@ -13903,7 +14250,7 @@ class EdsSteps {
|
|
|
13903
14250
|
}; }
|
|
13904
14251
|
}
|
|
13905
14252
|
|
|
13906
|
-
const edsStepsV2Css = ".steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-
|
|
14253
|
+
const edsStepsV2Css = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-41px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4,.steps h5{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before,.steps h5::before{content:counter(step);position:absolute;left:-40px;top:-2px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.text-center{text-align:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.justify-between{justify-content:space-between}.mt-16{margin-top:1rem}.mt-32{margin-top:2rem}.mt-64{margin-top:4rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.ml-8{margin-left:0.5rem}.gap-y-16{row-gap:1rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.block{display:block}.items-center{align-items:center}.px-8{padding-left:0.5rem;padding-right:0.5rem}.pb-20{padding-bottom:1.25rem}.eds-steps__title[role=\"button\"]{cursor:pointer}.eds-steps__title.is-disabled{cursor:not-allowed;color:rgba(0, 0, 0, 0.5);}.eds-steps__title.is-disabled::before{opacity:1;filter:none}.steps--horizontal{display:flex;flex-direction:column;gap:2rem}.horizontal-indicators{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0}.horizontal-step{display:flex;flex-direction:column;align-items:center;gap:0.5rem;cursor:pointer;flex:1;position:relative}.horizontal-step:not(:last-child)::after{content:'';position:absolute;top:1.25rem;left:50%;width:100%;height:2px;background-color:#e0e0e0;z-index:-1}.horizontal-step.is-completed:not(:last-child)::after{background-color:var(--green-500);}.step-indicator{width:2.5rem;height:2.5rem;border-radius:50%;border:2px solid #e0e0e0;display:flex;align-items:center;justify-content:center;background-color:white;transition:all 0.3s ease;z-index:2}.horizontal-step.is-active .step-indicator{border-color:var(--green-500);background-color:var(--green-500);color:var(--white)}.horizontal-step.is-completed .step-indicator{border-color:var(--green-500);background-color:var(--white)}.horizontal-step.is-disabled{opacity:0.5;cursor:not-allowed}.step-number{font-weight:600;font-size:0.875rem}.step-label{font-size:0.875rem;text-align:center;font-weight:500}.horizontal-step.is-active .step-label{color:var(--green-500)}.step-content{padding:2rem 0;margin-left:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem);margin-right:calc((100% / var(--step-count, 1)) * 0.45 - 1.25rem)}.opacity-50{opacity:0.5}";
|
|
13907
14254
|
var EdsStepsV2Style0 = edsStepsV2Css;
|
|
13908
14255
|
|
|
13909
14256
|
class EdsStepsV2 {
|
|
@@ -13914,48 +14261,74 @@ class EdsStepsV2 {
|
|
|
13914
14261
|
this.next = createEvent(this, "next", 7);
|
|
13915
14262
|
this.back = createEvent(this, "back", 7);
|
|
13916
14263
|
this.handleTitleClick = (index) => {
|
|
13917
|
-
//
|
|
13918
|
-
if (
|
|
13919
|
-
|
|
14264
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
14265
|
+
if (this.type === 'linear') {
|
|
14266
|
+
if (index > this.activeStep) {
|
|
14267
|
+
// Prevent jumping forward over disabled steps
|
|
14268
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14269
|
+
if (this.isStepDisabled(i)) {
|
|
14270
|
+
return;
|
|
14271
|
+
}
|
|
14272
|
+
}
|
|
14273
|
+
}
|
|
14274
|
+
this.activeStep = index;
|
|
13920
14275
|
this.step.emit(this.activeStep);
|
|
13921
14276
|
return;
|
|
13922
14277
|
}
|
|
13923
|
-
//
|
|
13924
|
-
|
|
13925
|
-
|
|
14278
|
+
// Non-linear vertical mode can toggle collapse of the current title
|
|
14279
|
+
if (this.orientation === 'vertical' && index === this.activeStep) {
|
|
14280
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
14281
|
+
this.step.emit(this.activeStep);
|
|
13926
14282
|
return;
|
|
13927
14283
|
}
|
|
13928
|
-
//
|
|
14284
|
+
// Otherwise just set
|
|
13929
14285
|
this.activeStep = index;
|
|
13930
14286
|
this.step.emit(this.activeStep);
|
|
13931
14287
|
};
|
|
13932
14288
|
this.handleNext = () => {
|
|
13933
14289
|
const lastIndex = this.parsedSteps.length - 1;
|
|
14290
|
+
// On last step: do NOT collapse; keep content visible, just emit finished
|
|
13934
14291
|
if (this.activeStep >= lastIndex) {
|
|
13935
14292
|
this.finished.emit();
|
|
13936
|
-
this.activeStep = -1; // collapse
|
|
14293
|
+
this.activeStep = -1; // collapse the content
|
|
14294
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
13937
14295
|
return;
|
|
13938
14296
|
}
|
|
13939
14297
|
const target = this.activeStep + 1;
|
|
13940
14298
|
this.next.emit(target);
|
|
13941
|
-
if (
|
|
13942
|
-
|
|
13943
|
-
|
|
14299
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
14300
|
+
return;
|
|
14301
|
+
}
|
|
14302
|
+
this.activeStep = target;
|
|
14303
|
+
this.step.emit(this.activeStep);
|
|
14304
|
+
// clear boolean form when moving away from a step
|
|
14305
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14306
|
+
this.disableNext = false;
|
|
13944
14307
|
}
|
|
13945
14308
|
};
|
|
13946
14309
|
this.handleBack = () => {
|
|
14310
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
14311
|
+
// Recover from collapsed sentinel if it ever occurs
|
|
14312
|
+
if (this.activeStep < 0) {
|
|
14313
|
+
this.activeStep = lastIndex;
|
|
14314
|
+
this.step.emit(this.activeStep);
|
|
14315
|
+
return;
|
|
14316
|
+
}
|
|
13947
14317
|
if (this.activeStep > 0) {
|
|
13948
14318
|
const target = this.activeStep - 1;
|
|
13949
14319
|
this.back.emit(target);
|
|
13950
14320
|
this.activeStep = target;
|
|
13951
14321
|
this.step.emit(this.activeStep);
|
|
14322
|
+
if (!Array.isArray(this.disableNext)) {
|
|
14323
|
+
this.disableNext = false;
|
|
14324
|
+
}
|
|
13952
14325
|
}
|
|
13953
14326
|
};
|
|
13954
14327
|
this.steps = [];
|
|
13955
14328
|
this.type = 'static';
|
|
14329
|
+
this.orientation = 'vertical';
|
|
13956
14330
|
this.imageSrc = undefined;
|
|
13957
14331
|
this.imageWidth = undefined;
|
|
13958
|
-
this.bg = true;
|
|
13959
14332
|
this.message = undefined;
|
|
13960
14333
|
this.nextLabel = 'Next';
|
|
13961
14334
|
this.backLabel = 'Back';
|
|
@@ -13964,57 +14337,87 @@ class EdsStepsV2 {
|
|
|
13964
14337
|
this.headingLevel = 'h4';
|
|
13965
14338
|
this.activeStep = 0;
|
|
13966
14339
|
}
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
14340
|
+
handleDisableNextChange(newValue) {
|
|
14341
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
14342
|
+
try {
|
|
14343
|
+
this.disableNext = JSON.parse(newValue);
|
|
14344
|
+
}
|
|
14345
|
+
catch (e) {
|
|
14346
|
+
console.error('Failed to parse disable-next array:', e);
|
|
14347
|
+
}
|
|
13974
14348
|
}
|
|
13975
14349
|
}
|
|
13976
14350
|
activeStepChanged(newValue) {
|
|
14351
|
+
// Clamp and ignore collapsed sentinel
|
|
14352
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
14353
|
+
if (newValue > max) {
|
|
14354
|
+
this.activeStep = max;
|
|
14355
|
+
return;
|
|
14356
|
+
}
|
|
14357
|
+
if (newValue < -1) {
|
|
14358
|
+
this.activeStep = -1;
|
|
14359
|
+
return;
|
|
14360
|
+
}
|
|
14361
|
+
if (newValue < 0) {
|
|
14362
|
+
return;
|
|
14363
|
+
} // ignore collapsed state if ever set elsewhere
|
|
14364
|
+
// Emit parentContext to buttons inside the newly active step
|
|
13977
14365
|
setTimeout(() => {
|
|
13978
|
-
|
|
13979
|
-
const activeStepContainer =
|
|
13980
|
-
|
|
13981
|
-
const btns = activeStepContainer.querySelectorAll('eds-button');
|
|
13982
|
-
btns.forEach((btn) => {
|
|
13983
|
-
this.emitContext(btn);
|
|
13984
|
-
});
|
|
13985
|
-
}
|
|
14366
|
+
const host = this.el.shadowRoot || this.el;
|
|
14367
|
+
const activeStepContainer = host.querySelectorAll('.step')[newValue];
|
|
14368
|
+
activeStepContainer === null || activeStepContainer === void 0 ? void 0 : activeStepContainer.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
13986
14369
|
}, 50);
|
|
13987
14370
|
}
|
|
14371
|
+
componentWillLoad() {
|
|
14372
|
+
this.handleDisableNextChange(this.disableNext);
|
|
14373
|
+
}
|
|
14374
|
+
componentDidLoad() {
|
|
14375
|
+
if (this.type === 'linear') {
|
|
14376
|
+
const host = this.el.shadowRoot || this.el;
|
|
14377
|
+
const btns = host.querySelectorAll('eds-button');
|
|
14378
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
14379
|
+
}
|
|
14380
|
+
}
|
|
13988
14381
|
emitContext(linkElement) {
|
|
13989
14382
|
const event = new CustomEvent('parentContext', {
|
|
13990
14383
|
detail: {
|
|
13991
14384
|
componentName: this.el.tagName.toLowerCase(),
|
|
13992
14385
|
identifier: this.activeStep
|
|
13993
|
-
}
|
|
14386
|
+
},
|
|
14387
|
+
bubbles: true,
|
|
14388
|
+
composed: true
|
|
13994
14389
|
});
|
|
13995
14390
|
linkElement.dispatchEvent(event);
|
|
13996
14391
|
}
|
|
13997
14392
|
articleClasses() {
|
|
13998
|
-
return [
|
|
13999
|
-
this.bg ? 'bg-inverse' : 'bg-default',
|
|
14000
|
-
'border-softer effect-focus-within relative rounded-lg border-2'
|
|
14001
|
-
].join(' ');
|
|
14393
|
+
return ['border-softer effect-focus-within relative rounded-lg border-2'].join(' ');
|
|
14002
14394
|
}
|
|
14003
|
-
/**
|
|
14004
|
-
* Parses the steps property into an array of Step objects.
|
|
14005
|
-
*/
|
|
14006
14395
|
get parsedSteps() {
|
|
14007
14396
|
return parseData(this.steps);
|
|
14008
14397
|
}
|
|
14009
|
-
|
|
14010
|
-
|
|
14398
|
+
isStepDisabled(index) {
|
|
14399
|
+
if (Array.isArray(this.disableNext)) {
|
|
14400
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
14401
|
+
}
|
|
14402
|
+
return index === this.activeStep && !!this.disableNext;
|
|
14403
|
+
}
|
|
14404
|
+
isNextDisabledFor(index) {
|
|
14405
|
+
return this.isStepDisabled(index);
|
|
14011
14406
|
}
|
|
14012
|
-
/** Render the semantic heading element */
|
|
14013
14407
|
renderHeading(title, index) {
|
|
14014
14408
|
const Tag = this.headingLevel;
|
|
14015
14409
|
if (this.type === 'linear') {
|
|
14016
14410
|
const isOpen = this.activeStep === index;
|
|
14017
|
-
|
|
14411
|
+
// Check if jumping to this step crosses a disabled step
|
|
14412
|
+
let forwardBlocked = false;
|
|
14413
|
+
if (index > this.activeStep) {
|
|
14414
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14415
|
+
if (this.isStepDisabled(i)) {
|
|
14416
|
+
forwardBlocked = true;
|
|
14417
|
+
break;
|
|
14418
|
+
}
|
|
14419
|
+
}
|
|
14420
|
+
}
|
|
14018
14421
|
const onKey = (e) => {
|
|
14019
14422
|
if (forwardBlocked) {
|
|
14020
14423
|
return;
|
|
@@ -14026,16 +14429,46 @@ class EdsStepsV2 {
|
|
|
14026
14429
|
};
|
|
14027
14430
|
return (hAsync(Tag, { class: `eds-steps__title ${forwardBlocked ? 'is-disabled' : ''}`, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-disabled": forwardBlocked ? 'true' : 'false', "aria-expanded": isOpen, "aria-controls": `eds-step-panel-${index}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey }, title));
|
|
14028
14431
|
}
|
|
14029
|
-
return hAsync(Tag, { class: "eds-steps__title" }, title);
|
|
14432
|
+
return (hAsync(Tag, { class: "eds-steps__title", onClick: () => this.handleTitleClick(index) }, title));
|
|
14433
|
+
}
|
|
14434
|
+
/** Render horizontal indicator item */
|
|
14435
|
+
renderHorizontalIndicator(step, index) {
|
|
14436
|
+
const isActive = this.activeStep === index;
|
|
14437
|
+
const isCompleted = this.activeStep > index;
|
|
14438
|
+
let forwardBlocked = false;
|
|
14439
|
+
if (index > this.activeStep) {
|
|
14440
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
14441
|
+
if (this.isStepDisabled(i)) {
|
|
14442
|
+
forwardBlocked = true;
|
|
14443
|
+
break;
|
|
14444
|
+
}
|
|
14445
|
+
}
|
|
14446
|
+
}
|
|
14447
|
+
const onKey = (e) => {
|
|
14448
|
+
if (forwardBlocked) {
|
|
14449
|
+
return;
|
|
14450
|
+
}
|
|
14451
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
14452
|
+
e.preventDefault();
|
|
14453
|
+
this.handleTitleClick(index);
|
|
14454
|
+
}
|
|
14455
|
+
};
|
|
14456
|
+
return (hAsync("div", { class: `horizontal-step ${isActive ? 'is-active' : ''} ${isCompleted ? 'is-completed' : ''}`, onClick: () => !forwardBlocked && this.handleTitleClick(index), onKeyDown: onKey, role: "button", tabindex: forwardBlocked ? -1 : 0, "aria-label": `Step ${index + 1}: ${step.title}`, "aria-current": isActive ? 'step' : undefined, "aria-disabled": forwardBlocked ? 'true' : 'false' }, hAsync("div", { class: "step-indicator" }, hAsync("span", { class: "step-number" }, index + 1)), hAsync("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
14030
14457
|
}
|
|
14031
14458
|
render() {
|
|
14032
14459
|
const steps = this.parsedSteps;
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14460
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
14461
|
+
return (hAsync("div", { key: '0f9dbb87f9cd269057183ee969addd55e85b2149', class: this.articleClasses() }, this.imageSrc ? (hAsync("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, hAsync("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" }))) : (this.message && (hAsync("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, hAsync("div", { class: "p-24" }, hAsync("span", { class: "text-inverse f-heading-04" }, this.message))))), hAsync("div", { key: 'd636d36c2e95d73c23c269b1faf67870eca97c16', class: "mt-16 pb-20 px-8" }, this.type === 'linear' && this.orientation === 'horizontal' ? (hAsync("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, hAsync("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
14462
|
+
const isLast = index === steps.length - 1;
|
|
14463
|
+
if (this.activeStep !== index) {
|
|
14464
|
+
return null;
|
|
14465
|
+
}
|
|
14466
|
+
return (hAsync("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: isLast ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null })), hAsync("slot", { name: `actions-${index}` })));
|
|
14467
|
+
}))) : this.type === 'linear' ? (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: index === 0 ? 'step' : 'step mt-16', key: index }, this.renderHeading(step.title, index), this.activeStep === index && (hAsync("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), hAsync("div", { class: `flex items-center justify-between ${marginClass}` }, hAsync("eds-button", { label: this.backLabel, intent: "ghost", icon: "chevron-left", iconPos: "left", iconSmall: true, onClick: this.handleBack, disabled: index === 0, class: index === 0 ? 'hidden' : 'block', size: "small" }), hAsync("eds-button", { label: index === steps.length - 1 ? this.finishLabel : this.nextLabel, intent: "primary", icon: "chevron-right", iconSmall: true, onClick: this.handleNext, disabled: this.isNextDisabledFor(index), size: "small", class: index > 0 ? 'ml-8' : null }))))))))) : (hAsync("div", { class: "steps space-y-8" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, this.renderHeading(step.title, index), hAsync("div", { class: "content", id: `eds-step-panel-${index}` }, hAsync("div", { class: "content-body" }, hAsync("slot", { name: `step-${index}` }, hAsync("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content }))))))))))));
|
|
14036
14468
|
}
|
|
14037
14469
|
get el() { return getElement(this); }
|
|
14038
14470
|
static get watchers() { return {
|
|
14471
|
+
"disableNext": ["handleDisableNextChange"],
|
|
14039
14472
|
"activeStep": ["activeStepChanged"]
|
|
14040
14473
|
}; }
|
|
14041
14474
|
static get style() { return EdsStepsV2Style0; }
|
|
@@ -14045,14 +14478,14 @@ class EdsStepsV2 {
|
|
|
14045
14478
|
"$members$": {
|
|
14046
14479
|
"steps": [1],
|
|
14047
14480
|
"type": [1],
|
|
14481
|
+
"orientation": [1],
|
|
14048
14482
|
"imageSrc": [1, "image-src"],
|
|
14049
14483
|
"imageWidth": [2, "image-width"],
|
|
14050
|
-
"bg": [4],
|
|
14051
14484
|
"message": [1],
|
|
14052
14485
|
"nextLabel": [1, "next-label"],
|
|
14053
14486
|
"backLabel": [1, "back-label"],
|
|
14054
14487
|
"finishLabel": [1, "finish-label"],
|
|
14055
|
-
"disableNext": [
|
|
14488
|
+
"disableNext": [1032, "disable-next"],
|
|
14056
14489
|
"headingLevel": [513, "heading-level"],
|
|
14057
14490
|
"activeStep": [32]
|
|
14058
14491
|
},
|
|
@@ -14112,11 +14545,11 @@ class EdsSwitch {
|
|
|
14112
14545
|
: this.labelOff
|
|
14113
14546
|
: 'Toggle switch'
|
|
14114
14547
|
: undefined;
|
|
14115
|
-
return (hAsync("div", { key: '
|
|
14548
|
+
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: {
|
|
14116
14549
|
switch: true,
|
|
14117
14550
|
'switch--checked': this.checked,
|
|
14118
14551
|
'switch--disabled': this.disabled
|
|
14119
|
-
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: '
|
|
14552
|
+
}, onClick: this.toggleSwitch, onKeyDown: this.handleKeyDown, disabled: this.disabled }, hAsync("span", { key: 'c7bbace6e78fe2358ee4b91febec51a280305df0', class: "switch-handle" })), this.labelOn && (hAsync("span", { key: 'b4fa05fc1296a6d906abb4a7fa609d721d01248f', id: `${switchId}-on`, class: "switch-label switch-label--on ml-8" }, this.labelOn))));
|
|
14120
14553
|
}
|
|
14121
14554
|
get el() { return getElement(this); }
|
|
14122
14555
|
static get style() { return EdsSwitchStyle0; }
|
|
@@ -14135,7 +14568,7 @@ class EdsSwitch {
|
|
|
14135
14568
|
}; }
|
|
14136
14569
|
}
|
|
14137
14570
|
|
|
14138
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
14571
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}tr.table-row-default{background-color:transparent}tr.table-row-color:nth-child(even){background-color:var(--grey-100)}tr.table-row-color:nth-child(odd){background-color:transparent}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.p-4{padding:0.25rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-8{padding-left:0.5rem;padding-right:0.5rem}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
14139
14572
|
var EdsTableStyle0 = edsTableCss;
|
|
14140
14573
|
|
|
14141
14574
|
/**
|
|
@@ -14181,6 +14614,24 @@ class EdsTable {
|
|
|
14181
14614
|
}
|
|
14182
14615
|
(_a = actionButtons[nextIndex]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
14183
14616
|
};
|
|
14617
|
+
this.handleSort = (column) => {
|
|
14618
|
+
if (this.sortColumn === column) {
|
|
14619
|
+
// Toggle direction if same column
|
|
14620
|
+
this.sortDirection = this.sortDirection === 'asc' ? 'desc' : 'asc';
|
|
14621
|
+
}
|
|
14622
|
+
else {
|
|
14623
|
+
// New column, default to ascending
|
|
14624
|
+
this.sortColumn = column;
|
|
14625
|
+
this.sortDirection = 'asc';
|
|
14626
|
+
}
|
|
14627
|
+
sendAnalytics({
|
|
14628
|
+
category: 'ui-component',
|
|
14629
|
+
parentContext: null,
|
|
14630
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/sort`,
|
|
14631
|
+
name: column,
|
|
14632
|
+
action: this.sortDirection
|
|
14633
|
+
});
|
|
14634
|
+
};
|
|
14184
14635
|
this.data = null;
|
|
14185
14636
|
this.config = {};
|
|
14186
14637
|
this.rowsPerPage = 10;
|
|
@@ -14190,6 +14641,8 @@ class EdsTable {
|
|
|
14190
14641
|
this.columnSize = 'default';
|
|
14191
14642
|
this.actions = [];
|
|
14192
14643
|
this.actionTemplate = undefined;
|
|
14644
|
+
this.sortingEnabled = false;
|
|
14645
|
+
this.theme = 'color';
|
|
14193
14646
|
this.parsedActions = [];
|
|
14194
14647
|
this.dataColumns = [];
|
|
14195
14648
|
this.tbData = [];
|
|
@@ -14199,6 +14652,8 @@ class EdsTable {
|
|
|
14199
14652
|
this.totalRows = 0;
|
|
14200
14653
|
this.searchQuery = '';
|
|
14201
14654
|
this.containerWidth = 0;
|
|
14655
|
+
this.sortColumn = null;
|
|
14656
|
+
this.sortDirection = 'asc';
|
|
14202
14657
|
}
|
|
14203
14658
|
handleDataChange() {
|
|
14204
14659
|
this.parseData();
|
|
@@ -14281,10 +14736,10 @@ class EdsTable {
|
|
|
14281
14736
|
return this.tbData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
14282
14737
|
}
|
|
14283
14738
|
getPaginatedRows() {
|
|
14284
|
-
const
|
|
14285
|
-
this.totalRows =
|
|
14739
|
+
const sortedRows = this.getSortedRows();
|
|
14740
|
+
this.totalRows = sortedRows.length;
|
|
14286
14741
|
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
14287
|
-
return
|
|
14742
|
+
return sortedRows.slice(start, start + this.rowsPerPage);
|
|
14288
14743
|
}
|
|
14289
14744
|
handlePageChange(newPage) {
|
|
14290
14745
|
this.currentPage = newPage;
|
|
@@ -14364,22 +14819,52 @@ class EdsTable {
|
|
|
14364
14819
|
capitalize(str) {
|
|
14365
14820
|
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
14366
14821
|
}
|
|
14822
|
+
getSortedRows() {
|
|
14823
|
+
const filtered = this.getFilteredRows();
|
|
14824
|
+
if (!this.sortColumn) {
|
|
14825
|
+
return filtered;
|
|
14826
|
+
}
|
|
14827
|
+
return [...filtered].sort((a, b) => {
|
|
14828
|
+
const aVal = a[this.sortColumn];
|
|
14829
|
+
const bVal = b[this.sortColumn];
|
|
14830
|
+
// Handle null/undefined
|
|
14831
|
+
if (aVal == null) {
|
|
14832
|
+
return 1;
|
|
14833
|
+
}
|
|
14834
|
+
if (bVal == null) {
|
|
14835
|
+
return -1;
|
|
14836
|
+
}
|
|
14837
|
+
// Compare values
|
|
14838
|
+
let comparison = 0;
|
|
14839
|
+
if (typeof aVal === 'number' && typeof bVal === 'number') {
|
|
14840
|
+
comparison = aVal - bVal;
|
|
14841
|
+
}
|
|
14842
|
+
else {
|
|
14843
|
+
comparison = String(aVal).localeCompare(String(bVal));
|
|
14844
|
+
}
|
|
14845
|
+
return this.sortDirection === 'asc' ? comparison : -comparison;
|
|
14846
|
+
});
|
|
14847
|
+
}
|
|
14367
14848
|
render() {
|
|
14368
14849
|
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
14369
14850
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
14370
14851
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14371
14852
|
const paginatedRows = this.getPaginatedRows();
|
|
14372
14853
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
14373
|
-
return (hAsync("div", { key: '
|
|
14854
|
+
return (hAsync("div", { key: '0601cea60a05d044a717219e6ff6385ef915defa' }, this.searchEnabled && (hAsync("div", { key: 'de1affaf192dc5e63b16d534d2f518c206ab7010' }, hAsync("eds-input-field", { key: 1, icon: "search", name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '49f71b5a2481d719cb8fe0547f05a5ae83ad5541', class: "mt-20" }, hAsync("table", { key: 'b63ca6615ed681c741fb2d3ff2675f9cc061d194', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '817b534cca3c2492b69b3816a41b54ec850847ab' }, hAsync("tr", { key: '6cb8735ac56c3fe2acc4a257815bc0d07009118c', class: `m-0 p-0 border border-softer table-row-${this.theme}` }, this.columns.map((col) => {
|
|
14374
14855
|
var _a;
|
|
14375
14856
|
if (col === 'actions') {
|
|
14376
14857
|
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }));
|
|
14377
14858
|
}
|
|
14378
14859
|
if (!((_a = this.parsedConfig[col]) === null || _a === void 0 ? void 0 : _a.hidden)) {
|
|
14379
|
-
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.capitalize(col))
|
|
14860
|
+
return (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '0.25rem' } }, hAsync("span", null, this.capitalize(col)), this.sortingEnabled && (hAsync("eds-icon-wrapper", { icon: this.sortColumn === col
|
|
14861
|
+
? this.sortDirection === 'asc'
|
|
14862
|
+
? 'chevron-up'
|
|
14863
|
+
: 'chevron-down'
|
|
14864
|
+
: 'chevron-down', "aria-label": `Sort by ${col}`, onClick: () => this.handleSort(col), style: { cursor: 'pointer' } })))));
|
|
14380
14865
|
}
|
|
14381
14866
|
return null;
|
|
14382
|
-
}))), hAsync("tbody", { key: '
|
|
14867
|
+
}))), hAsync("tbody", { key: '3c8630ed1f47720688bfcdb78c5dbfc84cb238cf' }, paginatedRows.map((row) => (hAsync("tr", { class: `m-0 p-0 border border-softer table-row-${this.theme}` }, this.columns.map((col) => {
|
|
14383
14868
|
var _a;
|
|
14384
14869
|
if (col === 'actions') {
|
|
14385
14870
|
return (hAsync("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${columnWidth - 4}px` } }, hAsync("div", { role: "toolbar", "aria-label": "Row actions", onKeyDown: this.onActionKeyDown, style: {
|
|
@@ -14394,7 +14879,7 @@ class EdsTable {
|
|
|
14394
14879
|
return (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[col], col)));
|
|
14395
14880
|
}
|
|
14396
14881
|
return null;
|
|
14397
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14882
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '09faef418edc676bb2b60c2439e0652a92fe023d', class: "mt-20" }, hAsync("eds-pagination", { key: '9403d33a37505c73fe3bec652ef93f533bdb4f03', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14398
14883
|
}
|
|
14399
14884
|
get hostEl() { return getElement(this); }
|
|
14400
14885
|
static get watchers() { return {
|
|
@@ -14416,6 +14901,8 @@ class EdsTable {
|
|
|
14416
14901
|
"columnSize": [1, "column-size"],
|
|
14417
14902
|
"actions": [1],
|
|
14418
14903
|
"actionTemplate": [16],
|
|
14904
|
+
"sortingEnabled": [4, "sorting-enabled"],
|
|
14905
|
+
"theme": [1],
|
|
14419
14906
|
"parsedActions": [32],
|
|
14420
14907
|
"dataColumns": [32],
|
|
14421
14908
|
"tbData": [32],
|
|
@@ -14424,7 +14911,9 @@ class EdsTable {
|
|
|
14424
14911
|
"parsedConfig": [32],
|
|
14425
14912
|
"totalRows": [32],
|
|
14426
14913
|
"searchQuery": [32],
|
|
14427
|
-
"containerWidth": [32]
|
|
14914
|
+
"containerWidth": [32],
|
|
14915
|
+
"sortColumn": [32],
|
|
14916
|
+
"sortDirection": [32]
|
|
14428
14917
|
},
|
|
14429
14918
|
"$listeners$": undefined,
|
|
14430
14919
|
"$lazyBundleId$": "-",
|
|
@@ -14605,12 +15094,12 @@ class EdsTabs {
|
|
|
14605
15094
|
}
|
|
14606
15095
|
}
|
|
14607
15096
|
render() {
|
|
14608
|
-
return (hAsync("div", { key: '
|
|
15097
|
+
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) => {
|
|
14609
15098
|
const TabComponent = 'button';
|
|
14610
15099
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14611
15100
|
const isActive = index === this.activeIndex;
|
|
14612
15101
|
return (hAsync(TabComponent, Object.assign({}, tabProps, { type: "button", role: "tab", "aria-selected": tab.active ? 'true' : 'false', tabIndex: isActive ? 0 : -1, "aria-label": tab.ariaLabel || tab.label, "aria-controls": `panel-${index}`, id: `tab-${index}`, ref: (el) => this.setTabRef(el, index), onClick: () => this.handleTabClick(index, tab.label, true), onKeyDown: (e) => this.onKeyDown(e, index) }), tab.label || tab.ariaLabel));
|
|
14613
|
-
}))), hAsync("div", { key: '
|
|
15102
|
+
}))), 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}` })))))));
|
|
14614
15103
|
}
|
|
14615
15104
|
get el() { return getElement(this); }
|
|
14616
15105
|
static get watchers() { return {
|
|
@@ -14673,7 +15162,7 @@ class EdsTag {
|
|
|
14673
15162
|
}
|
|
14674
15163
|
render() {
|
|
14675
15164
|
const classes = tagStyles({ intent: this.intent, size: this.size });
|
|
14676
|
-
return hAsync("span", { key: '
|
|
15165
|
+
return hAsync("span", { key: '0b37fdd21a8828a00daba55a7157e164e7057a88', class: classes }, this.label);
|
|
14677
15166
|
}
|
|
14678
15167
|
static get style() { return EdsTagStyle0; }
|
|
14679
15168
|
static get cmpMeta() { return {
|
|
@@ -14735,7 +15224,7 @@ class EdsTimeline {
|
|
|
14735
15224
|
}
|
|
14736
15225
|
}
|
|
14737
15226
|
render() {
|
|
14738
|
-
return (hAsync("div", { key: '
|
|
15227
|
+
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
|
|
14739
15228
|
? [{ label: 'completed', style: 'accent' }]
|
|
14740
15229
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14741
15230
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14909,7 +15398,7 @@ class EdsToastManager {
|
|
|
14909
15398
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14910
15399
|
}
|
|
14911
15400
|
render() {
|
|
14912
|
-
return (hAsync("div", { key: '
|
|
15401
|
+
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) }))))));
|
|
14913
15402
|
}
|
|
14914
15403
|
get hostElement() { return getElement(this); }
|
|
14915
15404
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14948,7 +15437,7 @@ class EdsTooltip {
|
|
|
14948
15437
|
}
|
|
14949
15438
|
render() {
|
|
14950
15439
|
const positionClass = this.position === 'bottom' ? 'top-full mt-2' : 'bottom-full mb-2';
|
|
14951
|
-
return (hAsync("div", { key: '
|
|
15440
|
+
return (hAsync("div", { key: '1ba27ac30f67a50e39b2bfdff2b4392b4adc948a', class: "relative w-full inline-block group" }, hAsync("slot", { key: 'c84887cde7b92c3684ef61e36039d2e8c96f71f2' }), hAsync("div", { key: 'c7e475e74d977b6ab291ba8a315cdb237742a8e6', class: `absolute ${positionClass}
|
|
14952
15441
|
rounded-xs bg-strongest text-inverse
|
|
14953
15442
|
f-ui-03-light pointer-events-none
|
|
14954
15443
|
z-10 px-4 opacity-0 transition-opacity duration-150 ease-in-out
|
|
@@ -15012,7 +15501,7 @@ class EdsTrl {
|
|
|
15012
15501
|
Application: { format: 'code' },
|
|
15013
15502
|
'Current TRL Stage': { format: 'text' }
|
|
15014
15503
|
};
|
|
15015
|
-
return (hAsync("div", { key: '
|
|
15504
|
+
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" })));
|
|
15016
15505
|
}
|
|
15017
15506
|
static get cmpMeta() { return {
|
|
15018
15507
|
"$flags$": 0,
|
|
@@ -15077,7 +15566,7 @@ class EdsUser {
|
|
|
15077
15566
|
render() {
|
|
15078
15567
|
const user = this.parsedUser;
|
|
15079
15568
|
const iconName = this.expanded ? 'chevron-down' : 'chevron-right';
|
|
15080
|
-
return (hAsync("div", { key: '
|
|
15569
|
+
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' })))))));
|
|
15081
15570
|
}
|
|
15082
15571
|
get hostEl() { return getElement(this); }
|
|
15083
15572
|
static get style() { return EdsUserStyle0; }
|
|
@@ -15133,7 +15622,7 @@ class GradientPrimaryPalette {
|
|
|
15133
15622
|
];
|
|
15134
15623
|
}
|
|
15135
15624
|
render() {
|
|
15136
|
-
return (hAsync("ul", { key: '
|
|
15625
|
+
return (hAsync("ul", { key: '6858be14a27601106581efe8fd9221daf4f0ddfc', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
15137
15626
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
15138
15627
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
15139
15628
|
}
|
|
@@ -15206,19 +15695,19 @@ class GradientSecondaryPalette {
|
|
|
15206
15695
|
];
|
|
15207
15696
|
}
|
|
15208
15697
|
render() {
|
|
15209
|
-
return (hAsync("div", { key: '
|
|
15698
|
+
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: {
|
|
15210
15699
|
background: this.colors[0].background
|
|
15211
|
-
} }, hAsync("div", { key: '
|
|
15700
|
+
} }, 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: {
|
|
15212
15701
|
background: this.colors[1].background
|
|
15213
|
-
} }, hAsync("div", { key: '
|
|
15702
|
+
} }, 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: {
|
|
15214
15703
|
background: this.colors[2].background
|
|
15215
|
-
} }, hAsync("div", { key: '
|
|
15704
|
+
} }, 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: {
|
|
15216
15705
|
background: this.colors[3].background
|
|
15217
|
-
} }, hAsync("div", { key: '
|
|
15706
|
+
} }, 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: {
|
|
15218
15707
|
background: this.colors[4].background
|
|
15219
|
-
} }, hAsync("div", { key: '
|
|
15708
|
+
} }, 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: {
|
|
15220
15709
|
background: this.colors[5].background
|
|
15221
|
-
} }, hAsync("div", { key: '
|
|
15710
|
+
} }, 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)))))));
|
|
15222
15711
|
}
|
|
15223
15712
|
static get cmpMeta() { return {
|
|
15224
15713
|
"$flags$": 0,
|
|
@@ -15281,11 +15770,11 @@ class GradientSupportPalette {
|
|
|
15281
15770
|
];
|
|
15282
15771
|
}
|
|
15283
15772
|
render() {
|
|
15284
|
-
return (hAsync("ul", { key: '
|
|
15773
|
+
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: {
|
|
15285
15774
|
background: this.colors[2].background
|
|
15286
|
-
} }, hAsync("div", { key: '
|
|
15775
|
+
} }, 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: {
|
|
15287
15776
|
background: this.colors[3].background
|
|
15288
|
-
} }, hAsync("div", { key: '
|
|
15777
|
+
} }, 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'))))));
|
|
15289
15778
|
}
|
|
15290
15779
|
static get cmpMeta() { return {
|
|
15291
15780
|
"$flags$": 0,
|
|
@@ -15339,7 +15828,7 @@ class IncorrectUseOfColors {
|
|
|
15339
15828
|
registerInstance(this, hostRef);
|
|
15340
15829
|
}
|
|
15341
15830
|
render() {
|
|
15342
|
-
return (hAsync("div", { key: '
|
|
15831
|
+
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 } })))))))));
|
|
15343
15832
|
}
|
|
15344
15833
|
static get cmpMeta() { return {
|
|
15345
15834
|
"$flags$": 0,
|
|
@@ -15362,7 +15851,7 @@ class LogoSpace {
|
|
|
15362
15851
|
registerInstance(this, hostRef);
|
|
15363
15852
|
}
|
|
15364
15853
|
render() {
|
|
15365
|
-
return (hAsync("div", { key: '
|
|
15854
|
+
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" }))));
|
|
15366
15855
|
}
|
|
15367
15856
|
static get style() { return LogoSpaceStyle0; }
|
|
15368
15857
|
static get cmpMeta() { return {
|
|
@@ -15386,7 +15875,7 @@ class LogoVariationsHorizontal {
|
|
|
15386
15875
|
registerInstance(this, hostRef);
|
|
15387
15876
|
}
|
|
15388
15877
|
render() {
|
|
15389
|
-
return (hAsync("div", { key: '
|
|
15878
|
+
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: "#" }))))));
|
|
15390
15879
|
}
|
|
15391
15880
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15392
15881
|
static get cmpMeta() { return {
|
|
@@ -15418,7 +15907,7 @@ class LogoVariationsTabs {
|
|
|
15418
15907
|
}
|
|
15419
15908
|
}
|
|
15420
15909
|
render() {
|
|
15421
|
-
return hAsync("div", { key: '
|
|
15910
|
+
return hAsync("div", { key: 'b05bf7f07b39c2119f4716da95f34372f75f6137', class: "container" }, this.renderContent());
|
|
15422
15911
|
}
|
|
15423
15912
|
static get cmpMeta() { return {
|
|
15424
15913
|
"$flags$": 0,
|
|
@@ -15445,7 +15934,7 @@ class LogoVariationsVertical {
|
|
|
15445
15934
|
this.type = undefined;
|
|
15446
15935
|
}
|
|
15447
15936
|
render() {
|
|
15448
|
-
return (hAsync("div", { key: '
|
|
15937
|
+
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: "#" }))))));
|
|
15449
15938
|
}
|
|
15450
15939
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15451
15940
|
static get cmpMeta() { return {
|
|
@@ -15472,7 +15961,7 @@ class LogoWrongUsage {
|
|
|
15472
15961
|
registerInstance(this, hostRef);
|
|
15473
15962
|
}
|
|
15474
15963
|
render() {
|
|
15475
|
-
return (hAsync("div", { key: '
|
|
15964
|
+
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"))))));
|
|
15476
15965
|
}
|
|
15477
15966
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15478
15967
|
static get cmpMeta() { return {
|
|
@@ -15516,7 +16005,7 @@ class SvgRepository {
|
|
|
15516
16005
|
icon: { format: 'svg' },
|
|
15517
16006
|
name: { format: 'bold' }
|
|
15518
16007
|
};
|
|
15519
|
-
return (hAsync("div", { key: '
|
|
16008
|
+
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 })));
|
|
15520
16009
|
}
|
|
15521
16010
|
get hostEl() { return getElement(this); }
|
|
15522
16011
|
static get style() { return SvgRepositoryStyle0; }
|
|
@@ -15773,7 +16262,7 @@ class TokenList {
|
|
|
15773
16262
|
render() {
|
|
15774
16263
|
// Check if `show` prop is provided; if not, display all sections
|
|
15775
16264
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15776
|
-
return (hAsync("section", { key: '
|
|
16265
|
+
return (hAsync("section", { key: '2fcc5dd08b84b47b561c6f32f49c65b90560069f', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15777
16266
|
// Only render sections that exist in `colors`
|
|
15778
16267
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15779
16268
|
}
|
|
@@ -15806,7 +16295,7 @@ class TokenRadii {
|
|
|
15806
16295
|
registerInstance(this, hostRef);
|
|
15807
16296
|
}
|
|
15808
16297
|
render() {
|
|
15809
|
-
return (hAsync("section", { key: '
|
|
16298
|
+
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" }))))))));
|
|
15810
16299
|
}
|
|
15811
16300
|
static get cmpMeta() { return {
|
|
15812
16301
|
"$flags$": 0,
|
|
@@ -15835,7 +16324,7 @@ class TokenRatios {
|
|
|
15835
16324
|
registerInstance(this, hostRef);
|
|
15836
16325
|
}
|
|
15837
16326
|
render() {
|
|
15838
|
-
return (hAsync("section", { key: '
|
|
16327
|
+
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: {
|
|
15839
16328
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15840
16329
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15841
16330
|
maxWidth: '300px'
|
|
@@ -15877,7 +16366,7 @@ class TokenShadows {
|
|
|
15877
16366
|
registerInstance(this, hostRef);
|
|
15878
16367
|
}
|
|
15879
16368
|
render() {
|
|
15880
|
-
return (hAsync("section", { key: '
|
|
16369
|
+
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]" })))))))));
|
|
15881
16370
|
}
|
|
15882
16371
|
static get cmpMeta() { return {
|
|
15883
16372
|
"$flags$": 0,
|
|
@@ -15897,7 +16386,7 @@ class TokenSpacing {
|
|
|
15897
16386
|
registerInstance(this, hostRef);
|
|
15898
16387
|
}
|
|
15899
16388
|
render() {
|
|
15900
|
-
return (hAsync("div", { key: '
|
|
16389
|
+
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")))))));
|
|
15901
16390
|
}
|
|
15902
16391
|
static get cmpMeta() { return {
|
|
15903
16392
|
"$flags$": 0,
|
|
@@ -16115,7 +16604,7 @@ class TokenTypography {
|
|
|
16115
16604
|
registerInstance(this, hostRef);
|
|
16116
16605
|
}
|
|
16117
16606
|
render() {
|
|
16118
|
-
return (hAsync("section", { key: '
|
|
16607
|
+
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)
|
|
16119
16608
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
16120
16609
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
16121
16610
|
fontFamily: typography.families.sans,
|
|
@@ -16239,6 +16728,7 @@ registerComponents([
|
|
|
16239
16728
|
EdsRating,
|
|
16240
16729
|
EdsSectionCore,
|
|
16241
16730
|
EdsSectionHeading,
|
|
16731
|
+
EdsSidebar,
|
|
16242
16732
|
EdsSocialNetworks,
|
|
16243
16733
|
EdsSpinner,
|
|
16244
16734
|
EdsSplashScreen,
|