@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
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { parseData } from "../../utils/sharedUtils";
|
|
3
|
+
export class EdsSteps {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.handleTitleClick = (index) => {
|
|
6
|
+
// In linear mode, do NOT collapse; only navigate if allowed.
|
|
7
|
+
if (this.type === 'linear') {
|
|
8
|
+
// prevent jumping forward over disabled steps
|
|
9
|
+
if (index > this.activeStep) {
|
|
10
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
11
|
+
if (this.isStepDisabled(i)) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
this.activeStep = index;
|
|
17
|
+
this.step.emit(this.activeStep);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
// Non-linear vertical mode: support optional collapse/expand on current title
|
|
21
|
+
if (this.orientation === 'vertical' && index === this.activeStep && this.collapsibleTitles) {
|
|
22
|
+
this.activeStep = this.activeStep === index ? -1 : index;
|
|
23
|
+
this.step.emit(this.activeStep);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
// Otherwise, just set
|
|
27
|
+
this.activeStep = index;
|
|
28
|
+
this.step.emit(this.activeStep);
|
|
29
|
+
};
|
|
30
|
+
this.handleNext = () => {
|
|
31
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
32
|
+
// On last step
|
|
33
|
+
if (this.activeStep >= lastIndex) {
|
|
34
|
+
this.finished.emit();
|
|
35
|
+
this.activeStep = -1; // collapse the content
|
|
36
|
+
this.step.emit(this.activeStep); // notify change (-1 sentinel)
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const target = this.activeStep + 1;
|
|
40
|
+
this.next.emit(target);
|
|
41
|
+
if (this.isStepDisabled(this.activeStep)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
this.activeStep = target;
|
|
45
|
+
this.step.emit(this.activeStep);
|
|
46
|
+
if (!Array.isArray(this.disableNext)) {
|
|
47
|
+
this.disableNext = false;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
this.handleBack = () => {
|
|
51
|
+
const lastIndex = this.parsedSteps.length - 1;
|
|
52
|
+
// If somehow collapsed, recover to last visible step first
|
|
53
|
+
if (this.activeStep < 0) {
|
|
54
|
+
this.activeStep = lastIndex;
|
|
55
|
+
this.step.emit(this.activeStep);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (this.activeStep > 0) {
|
|
59
|
+
const target = this.activeStep - 1;
|
|
60
|
+
this.back.emit(target);
|
|
61
|
+
this.activeStep = target;
|
|
62
|
+
this.step.emit(this.activeStep);
|
|
63
|
+
if (!Array.isArray(this.disableNext)) {
|
|
64
|
+
this.disableNext = false;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
this.steps = [];
|
|
69
|
+
this.type = 'static';
|
|
70
|
+
this.orientation = 'vertical';
|
|
71
|
+
this.nextLabel = 'Next';
|
|
72
|
+
this.backLabel = 'Back';
|
|
73
|
+
this.finishLabel = 'Finish';
|
|
74
|
+
this.disableNext = false;
|
|
75
|
+
this.headingLevel = 'h4';
|
|
76
|
+
this.collapsibleTitles = false;
|
|
77
|
+
this.activeStep = 0;
|
|
78
|
+
}
|
|
79
|
+
handleDisableNextChange(newValue) {
|
|
80
|
+
if (typeof newValue === 'string' && newValue.trim().startsWith('[')) {
|
|
81
|
+
try {
|
|
82
|
+
this.disableNext = JSON.parse(newValue);
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
console.error('Failed to parse disable-next array:', e);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
componentWillLoad() {
|
|
90
|
+
this.handleDisableNextChange(this.disableNext);
|
|
91
|
+
}
|
|
92
|
+
componentDidLoad() {
|
|
93
|
+
if (this.type === 'linear') {
|
|
94
|
+
const root = this.el.shadowRoot || this.el;
|
|
95
|
+
const btns = root.querySelectorAll('eds-button');
|
|
96
|
+
btns === null || btns === void 0 ? void 0 : btns.forEach((btn) => this.emitContext(btn));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
activeStepChanged(newValue) {
|
|
100
|
+
// Clamp to valid range or collapsed sentinel
|
|
101
|
+
const max = Math.max(0, this.parsedSteps.length - 1);
|
|
102
|
+
if (newValue > max) {
|
|
103
|
+
this.activeStep = max;
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
if (newValue < -1) {
|
|
107
|
+
this.activeStep = -1;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
// If collapsed (only possible in non-linear mode), do not emit context
|
|
111
|
+
if (newValue < 0) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
const root = this.el.shadowRoot || this.el;
|
|
116
|
+
const all = root.querySelectorAll('.step');
|
|
117
|
+
const active = all && newValue < all.length ? all[newValue] : undefined;
|
|
118
|
+
active === null || active === void 0 ? void 0 : active.querySelectorAll('eds-button').forEach((btn) => this.emitContext(btn));
|
|
119
|
+
}, 50);
|
|
120
|
+
}
|
|
121
|
+
emitContext(linkElement) {
|
|
122
|
+
const event = new CustomEvent('parentContext', {
|
|
123
|
+
detail: { componentName: this.el.tagName.toLowerCase(), identifier: this.activeStep },
|
|
124
|
+
bubbles: true,
|
|
125
|
+
composed: true
|
|
126
|
+
});
|
|
127
|
+
linkElement.dispatchEvent(event);
|
|
128
|
+
}
|
|
129
|
+
get parsedSteps() {
|
|
130
|
+
return parseData(this.steps);
|
|
131
|
+
}
|
|
132
|
+
isStepDisabled(index) {
|
|
133
|
+
if (Array.isArray(this.disableNext)) {
|
|
134
|
+
return index < this.disableNext.length ? !!this.disableNext[index] : false;
|
|
135
|
+
}
|
|
136
|
+
return index === this.activeStep && !!this.disableNext;
|
|
137
|
+
}
|
|
138
|
+
isNextDisabledFor(index) {
|
|
139
|
+
return this.isStepDisabled(index);
|
|
140
|
+
}
|
|
141
|
+
/** Render the semantic heading element as a clickable control only in linear mode */
|
|
142
|
+
renderHeading(title, index) {
|
|
143
|
+
const Tag = this.headingLevel;
|
|
144
|
+
const isOpen = this.activeStep === index;
|
|
145
|
+
if (this.type === 'linear') {
|
|
146
|
+
let forwardBlocked = false;
|
|
147
|
+
if (index > this.activeStep) {
|
|
148
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
149
|
+
if (this.isStepDisabled(i)) {
|
|
150
|
+
forwardBlocked = true;
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const onKey = (e) => {
|
|
156
|
+
if (forwardBlocked) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
this.handleTitleClick(index);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
return (h(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));
|
|
165
|
+
}
|
|
166
|
+
return (h(Tag, { class: `eds-steps__title ${this.collapsibleTitles && index !== this.activeStep ? '' : ''}`, onClick: () => this.handleTitleClick(index) }, title));
|
|
167
|
+
}
|
|
168
|
+
/** Render horizontal step indicator */
|
|
169
|
+
renderHorizontalIndicator(step, index) {
|
|
170
|
+
const isActive = this.activeStep === index;
|
|
171
|
+
const isCompleted = this.activeStep > index;
|
|
172
|
+
let forwardBlocked = false;
|
|
173
|
+
if (index > this.activeStep) {
|
|
174
|
+
for (let i = this.activeStep; i < index; i++) {
|
|
175
|
+
if (this.isStepDisabled(i)) {
|
|
176
|
+
forwardBlocked = true;
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
const onKey = (e) => {
|
|
182
|
+
if (forwardBlocked) {
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
186
|
+
e.preventDefault();
|
|
187
|
+
this.handleTitleClick(index);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
return (h("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' }, h("div", { class: "step-indicator" }, h("span", { class: "step-number" }, index + 1)), h("span", { class: `text-center text-default f-ui-03 ${forwardBlocked ? 'opacity-50' : ''}` }, step.title)));
|
|
191
|
+
}
|
|
192
|
+
render() {
|
|
193
|
+
const steps = this.parsedSteps;
|
|
194
|
+
// Horizontal Linear
|
|
195
|
+
if (this.type === 'linear' && this.orientation === 'horizontal') {
|
|
196
|
+
return (h("div", { class: "steps--horizontal", style: { '--step-count': steps.length.toString() } }, h("div", { class: "horizontal-indicators" }, steps.map((step, index) => this.renderHorizontalIndicator(step, index))), steps.map((step, index) => {
|
|
197
|
+
const isLast = index === steps.length - 1;
|
|
198
|
+
if (this.activeStep !== index) {
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
202
|
+
return (h("div", { class: "step-content", key: index, id: `eds-step-panel-${index}` }, h("slot", { name: `step-${index}` }, h("div", { class: "f-body-02 text-lighter", innerHTML: step.content })), h("div", { class: `flex items-center justify-between ${marginClass}` }, h("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" }), h("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 })), h("slot", { name: `actions-${index}` })));
|
|
203
|
+
})));
|
|
204
|
+
}
|
|
205
|
+
// Vertical Linear
|
|
206
|
+
if (this.type === 'linear') {
|
|
207
|
+
return (h("div", { class: "steps" }, steps.map((step, index) => {
|
|
208
|
+
const isLast = index === steps.length - 1;
|
|
209
|
+
const marginClass = this.orientation === 'horizontal' ? 'mt-64' : 'mt-32';
|
|
210
|
+
return (h("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), this.activeStep === index && (h("div", { class: "content grid gap-y-16", id: `eds-step-panel-${index}` }, h("slot", { name: `step-${index}` }, h("div", { class: "my-16 f-body-02 text-lighter", innerHTML: step.content })), h("div", { class: `flex items-center justify-between ${marginClass}` }, h("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" }), h("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 })), h("slot", { name: `actions-${index}` })))));
|
|
211
|
+
})));
|
|
212
|
+
}
|
|
213
|
+
// Static
|
|
214
|
+
return (h("div", { class: "steps" }, steps.map((step, index) => (h("div", { class: "step mb-16", key: index }, this.renderHeading(step.title, index), h("div", { class: "content", id: `eds-step-panel-${index}` }, h("slot", { name: `step-${index}` }, h("div", { class: "f-body-02 text-lighter my-16", innerHTML: step.content }))))))));
|
|
215
|
+
}
|
|
216
|
+
static get is() { return "eds-steps"; }
|
|
217
|
+
static get encapsulation() { return "shadow"; }
|
|
218
|
+
static get originalStyleUrls() {
|
|
219
|
+
return {
|
|
220
|
+
"$": ["eds-steps.css"]
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
static get styleUrls() {
|
|
224
|
+
return {
|
|
225
|
+
"$": ["eds-steps.css"]
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
static get properties() {
|
|
229
|
+
return {
|
|
230
|
+
"steps": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "string | Step[]",
|
|
235
|
+
"resolved": "Step[] | string",
|
|
236
|
+
"references": {
|
|
237
|
+
"Step": {
|
|
238
|
+
"location": "local",
|
|
239
|
+
"path": "/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/src/components/eds-steps/eds-steps.tsx",
|
|
240
|
+
"id": "../../../packages/components/src/components/eds-steps/eds-steps.tsx::Step"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": false,
|
|
245
|
+
"optional": false,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "Steps data as array or JSON string."
|
|
249
|
+
},
|
|
250
|
+
"attribute": "steps",
|
|
251
|
+
"reflect": false,
|
|
252
|
+
"defaultValue": "[]"
|
|
253
|
+
},
|
|
254
|
+
"type": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "'static' | 'linear'",
|
|
259
|
+
"resolved": "\"linear\" | \"static\"",
|
|
260
|
+
"references": {}
|
|
261
|
+
},
|
|
262
|
+
"required": false,
|
|
263
|
+
"optional": false,
|
|
264
|
+
"docs": {
|
|
265
|
+
"tags": [],
|
|
266
|
+
"text": "Stepper mode."
|
|
267
|
+
},
|
|
268
|
+
"attribute": "type",
|
|
269
|
+
"reflect": false,
|
|
270
|
+
"defaultValue": "'static'"
|
|
271
|
+
},
|
|
272
|
+
"orientation": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"mutable": false,
|
|
275
|
+
"complexType": {
|
|
276
|
+
"original": "'vertical' | 'horizontal'",
|
|
277
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
278
|
+
"references": {}
|
|
279
|
+
},
|
|
280
|
+
"required": false,
|
|
281
|
+
"optional": false,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [],
|
|
284
|
+
"text": "Orientation (applies to linear mode visuals)."
|
|
285
|
+
},
|
|
286
|
+
"attribute": "orientation",
|
|
287
|
+
"reflect": false,
|
|
288
|
+
"defaultValue": "'vertical'"
|
|
289
|
+
},
|
|
290
|
+
"nextLabel": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"mutable": false,
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "string",
|
|
295
|
+
"resolved": "string",
|
|
296
|
+
"references": {}
|
|
297
|
+
},
|
|
298
|
+
"required": false,
|
|
299
|
+
"optional": false,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": "Labels"
|
|
303
|
+
},
|
|
304
|
+
"attribute": "next-label",
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"defaultValue": "'Next'"
|
|
307
|
+
},
|
|
308
|
+
"backLabel": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "string",
|
|
313
|
+
"resolved": "string",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": ""
|
|
321
|
+
},
|
|
322
|
+
"attribute": "back-label",
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"defaultValue": "'Back'"
|
|
325
|
+
},
|
|
326
|
+
"finishLabel": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "string",
|
|
331
|
+
"resolved": "string",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"attribute": "finish-label",
|
|
341
|
+
"reflect": false,
|
|
342
|
+
"defaultValue": "'Finish'"
|
|
343
|
+
},
|
|
344
|
+
"disableNext": {
|
|
345
|
+
"type": "any",
|
|
346
|
+
"mutable": true,
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "boolean | boolean[] | string",
|
|
349
|
+
"resolved": "boolean | boolean[] | string",
|
|
350
|
+
"references": {}
|
|
351
|
+
},
|
|
352
|
+
"required": false,
|
|
353
|
+
"optional": false,
|
|
354
|
+
"docs": {
|
|
355
|
+
"tags": [{
|
|
356
|
+
"name": "attr",
|
|
357
|
+
"text": "disable-next"
|
|
358
|
+
}],
|
|
359
|
+
"text": "Disable Next/Finish (boolean or per-step boolean[]). Also accepts a JSON array string."
|
|
360
|
+
},
|
|
361
|
+
"attribute": "disable-next",
|
|
362
|
+
"reflect": false,
|
|
363
|
+
"defaultValue": "false"
|
|
364
|
+
},
|
|
365
|
+
"headingLevel": {
|
|
366
|
+
"type": "string",
|
|
367
|
+
"mutable": false,
|
|
368
|
+
"complexType": {
|
|
369
|
+
"original": "'h3' | 'h4' | 'h5'",
|
|
370
|
+
"resolved": "\"h3\" | \"h4\" | \"h5\"",
|
|
371
|
+
"references": {}
|
|
372
|
+
},
|
|
373
|
+
"required": false,
|
|
374
|
+
"optional": false,
|
|
375
|
+
"docs": {
|
|
376
|
+
"tags": [],
|
|
377
|
+
"text": "Heading level for step titles."
|
|
378
|
+
},
|
|
379
|
+
"attribute": "heading-level",
|
|
380
|
+
"reflect": true,
|
|
381
|
+
"defaultValue": "'h4'"
|
|
382
|
+
},
|
|
383
|
+
"collapsibleTitles": {
|
|
384
|
+
"type": "boolean",
|
|
385
|
+
"mutable": false,
|
|
386
|
+
"complexType": {
|
|
387
|
+
"original": "boolean",
|
|
388
|
+
"resolved": "boolean",
|
|
389
|
+
"references": {}
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"optional": false,
|
|
393
|
+
"docs": {
|
|
394
|
+
"tags": [],
|
|
395
|
+
"text": "Allow collapsing the active title (accordion-like) in **non-linear** vertical mode.\nIgnored in linear mode to prevent content hiding."
|
|
396
|
+
},
|
|
397
|
+
"attribute": "collapsible-titles",
|
|
398
|
+
"reflect": false,
|
|
399
|
+
"defaultValue": "false"
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
static get states() {
|
|
404
|
+
return {
|
|
405
|
+
"activeStep": {}
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
static get events() {
|
|
409
|
+
return [{
|
|
410
|
+
"method": "step",
|
|
411
|
+
"name": "step",
|
|
412
|
+
"bubbles": true,
|
|
413
|
+
"cancelable": true,
|
|
414
|
+
"composed": true,
|
|
415
|
+
"docs": {
|
|
416
|
+
"tags": [],
|
|
417
|
+
"text": ""
|
|
418
|
+
},
|
|
419
|
+
"complexType": {
|
|
420
|
+
"original": "number",
|
|
421
|
+
"resolved": "number",
|
|
422
|
+
"references": {}
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
"method": "finished",
|
|
426
|
+
"name": "finished",
|
|
427
|
+
"bubbles": true,
|
|
428
|
+
"cancelable": true,
|
|
429
|
+
"composed": true,
|
|
430
|
+
"docs": {
|
|
431
|
+
"tags": [],
|
|
432
|
+
"text": ""
|
|
433
|
+
},
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "void",
|
|
436
|
+
"resolved": "void",
|
|
437
|
+
"references": {}
|
|
438
|
+
}
|
|
439
|
+
}, {
|
|
440
|
+
"method": "next",
|
|
441
|
+
"name": "next",
|
|
442
|
+
"bubbles": true,
|
|
443
|
+
"cancelable": true,
|
|
444
|
+
"composed": true,
|
|
445
|
+
"docs": {
|
|
446
|
+
"tags": [],
|
|
447
|
+
"text": ""
|
|
448
|
+
},
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "number",
|
|
451
|
+
"resolved": "number",
|
|
452
|
+
"references": {}
|
|
453
|
+
}
|
|
454
|
+
}, {
|
|
455
|
+
"method": "back",
|
|
456
|
+
"name": "back",
|
|
457
|
+
"bubbles": true,
|
|
458
|
+
"cancelable": true,
|
|
459
|
+
"composed": true,
|
|
460
|
+
"docs": {
|
|
461
|
+
"tags": [],
|
|
462
|
+
"text": ""
|
|
463
|
+
},
|
|
464
|
+
"complexType": {
|
|
465
|
+
"original": "number",
|
|
466
|
+
"resolved": "number",
|
|
467
|
+
"references": {}
|
|
468
|
+
}
|
|
469
|
+
}];
|
|
470
|
+
}
|
|
471
|
+
static get elementRef() { return "el"; }
|
|
472
|
+
static get watchers() {
|
|
473
|
+
return [{
|
|
474
|
+
"propName": "disableNext",
|
|
475
|
+
"methodName": "handleDisableNextChange"
|
|
476
|
+
}, {
|
|
477
|
+
"propName": "activeStep",
|
|
478
|
+
"methodName": "activeStepChanged"
|
|
479
|
+
}];
|
|
480
|
+
}
|
|
481
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
title: '
|
|
2
|
+
title: 'Components/Steps',
|
|
3
3
|
component: 'eds-steps',
|
|
4
4
|
argTypes: {
|
|
5
5
|
type: {
|
|
@@ -11,6 +11,11 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
description: 'The type of stepper: "static" shows all steps simultaneously, while "linear" shows one step at a time with navigation controls.'
|
|
13
13
|
},
|
|
14
|
+
orientation: {
|
|
15
|
+
control: { type: 'select' },
|
|
16
|
+
options: ['vertical', 'horizontal'],
|
|
17
|
+
description: 'Stepper orientation (applies to **linear** mode only). "vertical" stacks steps; "horizontal" shows numbered indicators above content.'
|
|
18
|
+
},
|
|
14
19
|
steps: {
|
|
15
20
|
control: { type: 'object' },
|
|
16
21
|
description: 'An array of step objects. Each object should include a "title" and an optional "content" property.'
|
|
@@ -40,6 +45,7 @@ export default {
|
|
|
40
45
|
},
|
|
41
46
|
args: {
|
|
42
47
|
type: 'static',
|
|
48
|
+
orientation: 'vertical',
|
|
43
49
|
steps: [
|
|
44
50
|
{ title: 'Introduction', content: 'Begin by familiarizing yourself with the overall process.' },
|
|
45
51
|
{ title: 'Process Overview', content: 'Review the detailed steps and understand the workflow.' },
|
|
@@ -53,7 +59,9 @@ export default {
|
|
|
53
59
|
}
|
|
54
60
|
};
|
|
55
61
|
const renderSteps = (args) => {
|
|
56
|
-
const disableAttr = args.disableNext ? ' disable-next' : '';
|
|
62
|
+
const disableAttr = typeof args.disableNext === 'boolean' && args.disableNext ? ' disable-next' : '';
|
|
63
|
+
// orientation only matters in linear mode
|
|
64
|
+
const orientationAttr = args.type === 'linear' && args.orientation ? ` orientation="${args.orientation}"` : '';
|
|
57
65
|
return `
|
|
58
66
|
<eds-steps
|
|
59
67
|
type="${args.type}"
|
|
@@ -61,7 +69,7 @@ const renderSteps = (args) => {
|
|
|
61
69
|
heading-level="${args.headingLevel}"
|
|
62
70
|
next-label="${args.nextLabel}"
|
|
63
71
|
back-label="${args.backLabel}"
|
|
64
|
-
finish-label="${args.finishLabel}"${disableAttr}
|
|
72
|
+
finish-label="${args.finishLabel}"${disableAttr}${orientationAttr}
|
|
65
73
|
></eds-steps>
|
|
66
74
|
`;
|
|
67
75
|
};
|
|
@@ -70,13 +78,22 @@ export const Default = {
|
|
|
70
78
|
};
|
|
71
79
|
export const Linear = {
|
|
72
80
|
args: {
|
|
73
|
-
type: 'linear'
|
|
81
|
+
type: 'linear',
|
|
82
|
+
orientation: 'vertical'
|
|
83
|
+
},
|
|
84
|
+
render: (args) => renderSteps(args)
|
|
85
|
+
};
|
|
86
|
+
export const LinearHorizontal = {
|
|
87
|
+
args: {
|
|
88
|
+
type: 'linear',
|
|
89
|
+
orientation: 'horizontal'
|
|
74
90
|
},
|
|
75
91
|
render: (args) => renderSteps(args)
|
|
76
92
|
};
|
|
77
93
|
export const LinearBlocked = {
|
|
78
94
|
args: {
|
|
79
95
|
type: 'linear',
|
|
96
|
+
orientation: 'vertical',
|
|
80
97
|
disableNext: true
|
|
81
98
|
},
|
|
82
99
|
render: (args) => renderSteps(args)
|
|
@@ -84,6 +101,7 @@ export const LinearBlocked = {
|
|
|
84
101
|
export const CustomLabels = {
|
|
85
102
|
args: {
|
|
86
103
|
type: 'linear',
|
|
104
|
+
orientation: 'vertical',
|
|
87
105
|
nextLabel: 'Continue',
|
|
88
106
|
backLabel: 'Previous',
|
|
89
107
|
finishLabel: 'Create form'
|