@ebrains/components 2.2.0 → 2.3.1
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 +15 -15
- package/dist/cjs/components-section.cjs.entry.js +2 -2
- package/dist/cjs/components.cjs.js +2 -2
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/{eds-accordion_34.cjs.entry.js → eds-accordion_36.cjs.entry.js} +460 -69
- package/dist/cjs/eds-app-root.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-card-generic.cjs.entry.js +3 -3
- package/dist/cjs/eds-card-project.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-section.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-tags.cjs.entry.js +2 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +2 -2
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +2 -2
- package/dist/cjs/eds-feedback.cjs.entry.js +2 -2
- package/dist/cjs/eds-footer.cjs.entry.js +5 -3
- package/dist/cjs/eds-frame.cjs.entry.js +2 -2
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +8 -2
- package/dist/cjs/eds-gauge.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-clone.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-close.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-copy.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-download.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-draft.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-edit.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-eu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-external.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-loader.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-menu.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-minus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-more.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-paper.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-plus.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-portal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-private.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-public.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-search.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-star.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-start.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-success.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-updown.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-user.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-view.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +2 -2
- package/dist/cjs/eds-modal.cjs.entry.js +4 -4
- package/dist/cjs/eds-pie.cjs.entry.js +1 -1
- package/dist/cjs/eds-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-social-networks.cjs.entry.js +2 -2
- package/dist/cjs/eds-splash-screen.cjs.entry.js +1 -1
- package/dist/cjs/eds-timeline.cjs.entry.js +2 -2
- package/dist/cjs/eds-toast-manager.cjs.entry.js +2 -2
- package/dist/cjs/eds-trl.cjs.entry.js +2 -2
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-0249a32e.js → index-50bc1aa4.js} +4 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +2 -2
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +3 -3
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +2 -2
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/svg-repository.cjs.entry.js +2 -2
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/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 -1
- 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.css +8 -0
- 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 +127 -11
- 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 +47 -10
- 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 +51 -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.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 +1 -1
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +1 -1
- package/dist/collection/components/eds-icons/eds-icon-view/eds-icon-view.js +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 +1 -1
- package/dist/collection/components/eds-logo/eds-logo.js +1 -1
- package/dist/collection/components/eds-modal/eds-modal.css +41 -22
- 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 +2 -2
- 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/{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/{shared-ui → components}/eds-steps/eds-steps.css +3 -1
- package/dist/collection/{shared-ui → components}/eds-steps/eds-steps.js +37 -6
- package/dist/collection/{shared-ui → components}/eds-steps/eds-steps.stories.js +1 -1
- package/dist/collection/{shared-ui → components}/eds-steps-v2/eds-steps-v2.css +3 -1
- package/dist/collection/{shared-ui → components}/eds-steps-v2/eds-steps-v2.js +40 -8
- package/dist/collection/{shared-ui → components}/eds-steps-v2/eds-steps-v2.stories.js +1 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.js +3 -3
- 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 +3 -3
- 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 +49 -2
- 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/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.css +222 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.js +309 -0
- package/dist/collection/shared-ui/eds-global-search/eds-global-search.stories.js +277 -0
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components-section.js +1 -1
- package/dist/components/components.css +310 -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 -1
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +2 -2
- 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 +53 -7
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +4 -2
- package/dist/components/eds-form.js +38 -7
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-fullscreen-menu.js +11 -3
- package/dist/components/eds-gauge.js +1 -1
- package/dist/components/eds-global-search.d.ts +11 -0
- package/dist/components/eds-global-search.js +262 -0
- package/dist/components/eds-header.js +5 -10
- 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 +1 -1
- 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 +2 -2
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -1
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +2 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-modal.js +3 -3
- package/dist/components/eds-nps2.js +2 -2
- 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-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/eds-steps-v2.js +39 -7
- package/dist/components/eds-steps2.js +36 -5
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +3 -3
- 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 +12 -2
- 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-004801b2.entry.js +1 -0
- package/dist/components/p-02648f82.entry.js +1 -0
- package/dist/components/{p-a5fd4fc9.entry.js → p-0798d50d.entry.js} +1 -1
- package/dist/components/p-09f1b358.entry.js +1 -0
- package/dist/components/p-0ec9dcf5.entry.js +1 -0
- package/dist/components/p-0fb8511d.entry.js +1 -0
- package/dist/components/p-127870d7.entry.js +1 -0
- package/dist/components/p-12e153fb.entry.js +1 -0
- package/dist/components/p-1f80e708.entry.js +1 -0
- package/dist/components/{p-870001ee.entry.js → p-21b5ca1f.entry.js} +1 -1
- package/dist/components/p-24683124.entry.js +1 -0
- package/dist/components/{p-efbc374c.js → p-271c61ff.js} +1 -1
- package/dist/components/p-2bfcb3cf.entry.js +1 -0
- package/dist/components/{p-c66f4dd8.entry.js → p-2d6ca1c5.entry.js} +1 -1
- package/dist/components/p-2efa0ba6.entry.js +1 -0
- package/dist/components/p-33a639b5.entry.js +1 -0
- package/dist/components/p-36b17bf2.entry.js +1 -0
- package/dist/components/{p-dd28ab38.entry.js → p-398255ff.entry.js} +1 -1
- package/dist/components/p-3c478e74.entry.js +1 -0
- package/dist/components/{p-8fb1eb43.entry.js → p-447e436c.entry.js} +1 -1
- package/dist/components/p-44d33938.entry.js +1 -0
- package/dist/components/p-4995b8b2.entry.js +1 -0
- package/dist/components/{p-d1927da7.entry.js → p-4beb1e06.entry.js} +1 -1
- package/dist/components/p-53343ea1.entry.js +1 -0
- package/dist/components/p-54e29971.entry.js +1 -0
- package/dist/components/p-56447243.entry.js +1 -0
- package/dist/components/p-56cc4a15.entry.js +1 -0
- package/dist/components/p-5ddcec77.entry.js +1 -0
- package/dist/components/p-5e8142ed.entry.js +1 -0
- package/dist/components/p-70f5e9f5.entry.js +1 -0
- package/dist/components/p-714445de.entry.js +1 -0
- package/dist/components/p-7436a99a.entry.js +1 -0
- package/dist/components/{p-28ec52a7.entry.js → p-75b40e57.entry.js} +1 -1
- package/dist/components/{p-5479e43b.entry.js → p-76330532.entry.js} +1 -1
- package/dist/components/p-772d6ca9.entry.js +1 -0
- package/dist/components/p-79044ab6.entry.js +1 -0
- package/dist/components/{p-b31babda.entry.js → p-7ada2015.entry.js} +1 -1
- package/dist/components/{p-6a2d1e11.entry.js → p-7b0496b1.entry.js} +1 -1
- package/dist/components/{p-36db7db0.entry.js → p-7c7aaa95.entry.js} +1 -1
- package/dist/components/p-81ba0feb.entry.js +1 -0
- package/dist/components/p-82b357f7.entry.js +1 -0
- package/dist/components/{p-8eced026.entry.js → p-838d6773.entry.js} +1 -1
- package/dist/components/{p-d2e485a1.entry.js → p-83dde536.entry.js} +1 -1
- package/dist/components/p-84239973.entry.js +1 -0
- package/dist/components/p-85dfbfd3.entry.js +1 -0
- package/dist/components/{p-4c618a35.entry.js → p-963feadd.entry.js} +1 -1
- package/dist/components/p-a155c283.entry.js +1 -0
- package/dist/components/p-a4080044.entry.js +1 -0
- package/dist/components/p-abd40167.entry.js +1 -0
- package/dist/components/p-ae41414e.entry.js +1 -0
- package/dist/components/p-afb55d52.entry.js +1 -0
- package/dist/components/p-b471922f.entry.js +1 -0
- package/dist/components/p-b4c2c58d.entry.js +9 -0
- package/dist/components/{p-8edd07db.entry.js → p-b522fa70.entry.js} +1 -1
- package/dist/components/p-b6fc1a7d.entry.js +1 -0
- package/dist/components/p-b8a36d0f.entry.js +1 -0
- package/dist/components/{p-d3391236.entry.js → p-b8b4c01e.entry.js} +1 -1
- package/dist/components/p-bb4633ec.entry.js +1 -0
- package/dist/components/p-bc59e5ff.entry.js +1 -0
- package/dist/components/{p-9c1c5e8d.entry.js → p-bce8a58d.entry.js} +1 -1
- package/dist/components/{p-64b7a6fc.entry.js → p-ca91952b.entry.js} +1 -1
- package/dist/components/p-cdabb63e.entry.js +1 -0
- package/dist/components/{p-1b032aa8.entry.js → p-ce3b6043.entry.js} +1 -1
- package/dist/components/p-d3fa440f.entry.js +1 -0
- package/dist/components/{p-79afd8aa.entry.js → p-da96c7cd.entry.js} +1 -1
- package/dist/components/p-dacd8c26.entry.js +1 -0
- package/dist/components/p-ddec1f12.entry.js +1 -0
- package/dist/components/p-df18ffd1.entry.js +1 -0
- package/dist/components/p-e2bc6329.entry.js +1 -0
- package/dist/components/{p-4db384d9.entry.js → p-e614c8e8.entry.js} +1 -1
- package/dist/components/p-e6819f4d.entry.js +1 -0
- package/dist/components/p-e8d0a2db.entry.js +1 -0
- package/dist/components/{p-ff902c98.entry.js → p-e9a6f693.entry.js} +1 -1
- package/dist/components/p-eaf5d057.entry.js +1 -0
- package/dist/components/p-eb57d477.entry.js +1 -0
- package/dist/components/p-efdc6fd7.entry.js +1 -0
- package/dist/components/p-f013c0ac.entry.js +1 -0
- package/dist/components/p-f1ead3b3.entry.js +1 -0
- package/dist/components/p-f227bac5.entry.js +1 -0
- package/dist/components/{p-50d7eed9.entry.js → p-f2b12631.entry.js} +1 -1
- package/dist/components/{p-265150a1.entry.js → p-fda3df86.entry.js} +1 -1
- package/dist/components/{p-58c8c0d7.entry.js → p-fe2bb83e.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 +1 -1
- 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/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components-section.entry.js +2 -2
- package/dist/esm/components.js +3 -3
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/docs-palettes.entry.js +2 -2
- package/dist/esm/docs-tokens.entry.js +2 -2
- package/dist/esm/{eds-accordion_34.entry.js → eds-accordion_36.entry.js} +459 -70
- package/dist/esm/eds-app-root.entry.js +2 -2
- package/dist/esm/eds-card-desc_2.entry.js +3 -3
- package/dist/esm/eds-card-generic.entry.js +3 -3
- package/dist/esm/eds-card-project.entry.js +2 -2
- package/dist/esm/eds-card-section.entry.js +2 -2
- package/dist/esm/eds-card-tags.entry.js +2 -2
- package/dist/esm/eds-card-tool.entry.js +2 -2
- package/dist/esm/eds-cookies-preference.entry.js +2 -2
- package/dist/esm/eds-feedback.entry.js +2 -2
- package/dist/esm/eds-footer.entry.js +5 -3
- package/dist/esm/eds-frame.entry.js +2 -2
- package/dist/esm/eds-fullscreen-menu.entry.js +8 -2
- package/dist/esm/eds-gauge.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bin.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-bookmark.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-clone.entry.js +2 -2
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-download.entry.js +2 -2
- package/dist/esm/eds-icon-draft.entry.js +2 -2
- package/dist/esm/eds-icon-edit.entry.js +2 -2
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-external.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-minus.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-paper.entry.js +2 -2
- package/dist/esm/eds-icon-plus.entry.js +2 -2
- package/dist/esm/eds-icon-portal.entry.js +2 -2
- package/dist/esm/eds-icon-private.entry.js +2 -2
- package/dist/esm/eds-icon-public.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-star.entry.js +2 -2
- package/dist/esm/eds-icon-start.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-down.entry.js +2 -2
- package/dist/esm/eds-icon-thumbs-up.entry.js +2 -2
- package/dist/esm/eds-icon-tutorial.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-unknown.entry.js +2 -2
- package/dist/esm/eds-icon-updown.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-view.entry.js +2 -2
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/esm/eds-modal.entry.js +4 -4
- package/dist/esm/eds-pie.entry.js +1 -1
- package/dist/esm/eds-progress-bar.entry.js +2 -2
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-social-networks.entry.js +2 -2
- package/dist/esm/eds-splash-screen.entry.js +1 -1
- package/dist/esm/eds-timeline.entry.js +2 -2
- package/dist/esm/eds-toast-manager.entry.js +2 -2
- package/dist/esm/eds-trl.entry.js +2 -2
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-e84b871c.js → index-870ab08f.js} +4 -7
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +2 -2
- package/dist/esm/logo-variations-horizontal_2.entry.js +3 -3
- package/dist/esm/logo-variations-tabs.entry.js +2 -2
- package/dist/esm/logo-wrong-usage.entry.js +2 -2
- package/dist/esm/svg-repository.entry.js +2 -2
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/hydrate/index.js +540 -185
- package/dist/hydrate/index.mjs +540 -185
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +1 -0
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +27 -6
- package/dist/types/{shared-ui → components}/eds-form/eds-form.d.ts +2 -2
- 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/{shared-ui → components}/eds-steps/eds-steps.d.ts +2 -1
- package/dist/types/{shared-ui → components}/eds-steps-v2/eds-steps-v2.d.ts +2 -0
- package/dist/types/components/eds-tag/eds-tag.d.ts +1 -1
- package/dist/types/{shared-ui → components}/eds-user/eds-user.d.ts +4 -0
- package/dist/types/components.d.ts +176 -33
- package/dist/types/shared-ui/eds-global-search/eds-global-search.d.ts +72 -0
- package/dist/types/shared-ui/eds-global-search/eds-global-search.stories.d.ts +40 -0
- package/dist/types/types/global.d.ts +11 -0
- package/package.json +1 -1
- package/dist/cjs/eds-spinner.cjs.entry.js +0 -88
- package/dist/components/p-0452fe52.entry.js +0 -1
- package/dist/components/p-04f288b1.entry.js +0 -1
- package/dist/components/p-06951aa3.entry.js +0 -1
- package/dist/components/p-101392d0.entry.js +0 -1
- package/dist/components/p-171f8e6b.entry.js +0 -1
- package/dist/components/p-19e69c03.entry.js +0 -1
- package/dist/components/p-2f712656.entry.js +0 -1
- package/dist/components/p-3097c321.entry.js +0 -1
- package/dist/components/p-38b0ea8d.entry.js +0 -1
- package/dist/components/p-3b551ade.entry.js +0 -9
- package/dist/components/p-3fa4a703.entry.js +0 -1
- package/dist/components/p-3fa54526.entry.js +0 -1
- package/dist/components/p-42680319.entry.js +0 -1
- package/dist/components/p-4d207d0e.entry.js +0 -1
- package/dist/components/p-5367bb59.entry.js +0 -1
- package/dist/components/p-5a88cdc2.entry.js +0 -1
- package/dist/components/p-5b574bb2.entry.js +0 -1
- package/dist/components/p-5ec9fc29.entry.js +0 -1
- package/dist/components/p-5f350866.entry.js +0 -1
- package/dist/components/p-5ff10b6f.entry.js +0 -1
- package/dist/components/p-6420754e.entry.js +0 -1
- package/dist/components/p-6614881d.entry.js +0 -1
- package/dist/components/p-68a2cd95.entry.js +0 -1
- package/dist/components/p-6b988c76.entry.js +0 -1
- package/dist/components/p-7032a73b.entry.js +0 -1
- package/dist/components/p-7272628d.entry.js +0 -1
- package/dist/components/p-78c348e2.entry.js +0 -1
- package/dist/components/p-7a5623b5.entry.js +0 -1
- package/dist/components/p-7fa46b01.entry.js +0 -1
- package/dist/components/p-86eff0cb.entry.js +0 -1
- package/dist/components/p-88eeaeca.entry.js +0 -1
- package/dist/components/p-8b7910d2.entry.js +0 -1
- package/dist/components/p-8cf98230.entry.js +0 -1
- package/dist/components/p-8ef68d8a.entry.js +0 -1
- package/dist/components/p-9261d27c.entry.js +0 -1
- package/dist/components/p-94a223ec.entry.js +0 -1
- package/dist/components/p-9cb14b1f.entry.js +0 -1
- package/dist/components/p-a6586448.entry.js +0 -1
- package/dist/components/p-ad7d603b.entry.js +0 -1
- package/dist/components/p-b24ef7f7.entry.js +0 -1
- package/dist/components/p-baa2df0b.entry.js +0 -1
- package/dist/components/p-bfe9d934.entry.js +0 -1
- package/dist/components/p-c1943b8f.entry.js +0 -1
- package/dist/components/p-da0e9a75.entry.js +0 -1
- package/dist/components/p-dbe11048.entry.js +0 -1
- package/dist/components/p-e42ac312.entry.js +0 -1
- package/dist/components/p-e6c3f38c.entry.js +0 -1
- package/dist/components/p-e7c37e5b.entry.js +0 -1
- package/dist/components/p-e8374410.entry.js +0 -1
- package/dist/components/p-e90da4ba.entry.js +0 -1
- package/dist/components/p-e9cd3c4b.entry.js +0 -1
- package/dist/components/p-ebd59113.entry.js +0 -1
- package/dist/components/p-f092b706.entry.js +0 -1
- package/dist/components/p-f29e7506.entry.js +0 -1
- package/dist/components/p-f40dd50d.entry.js +0 -1
- package/dist/components/p-fc099d59.entry.js +0 -1
- package/dist/components/p-fda3da92.entry.js +0 -1
- package/dist/esm/eds-spinner.entry.js +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-header/eds-header.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/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-steps/eds-steps.stories.d.ts +0 -0
- /package/dist/types/{shared-ui → components}/eds-steps-v2/eds-steps-v2.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.stories.d.ts +0 -0
|
@@ -234,8 +234,8 @@ const EdsForm$1 = /*@__PURE__*/ proxyCustomElement(class EdsForm extends HTMLEle
|
|
|
234
234
|
this.__attachShadow();
|
|
235
235
|
this.form = createEvent(this, "form", 7);
|
|
236
236
|
this.name = 'eds-form';
|
|
237
|
-
this.title =
|
|
238
|
-
this.description =
|
|
237
|
+
this.title = 'Form Title';
|
|
238
|
+
this.description = 'Form Description';
|
|
239
239
|
this.setFormUrl = true;
|
|
240
240
|
this.formBtn = true;
|
|
241
241
|
this.formBtnLabel = 'Submit';
|
|
@@ -366,6 +366,7 @@ const EdsForm$1 = /*@__PURE__*/ proxyCustomElement(class EdsForm extends HTMLEle
|
|
|
366
366
|
return formData;
|
|
367
367
|
}
|
|
368
368
|
makeFormData() {
|
|
369
|
+
var _a;
|
|
369
370
|
const formData = new FormData();
|
|
370
371
|
// Add the form name
|
|
371
372
|
formData.append('form_name', this.name);
|
|
@@ -377,6 +378,36 @@ const EdsForm$1 = /*@__PURE__*/ proxyCustomElement(class EdsForm extends HTMLEle
|
|
|
377
378
|
// Append each key-value pair to the FormData object.
|
|
378
379
|
formData.append(key, this.values[key]);
|
|
379
380
|
});
|
|
381
|
+
// 2) Only do the (slower) DOM scan if we actually have file fields in the config
|
|
382
|
+
const hasFileField = (_a = this.parsedFields) === null || _a === void 0 ? void 0 : _a.some((f) => (f === null || f === void 0 ? void 0 : f.type) === 'file');
|
|
383
|
+
if (hasFileField && this.formEl) {
|
|
384
|
+
// Find file inputs inside each eds-input-field's shadowRoot
|
|
385
|
+
const hosts = Array.from(this.formEl.querySelectorAll('eds-input-field'));
|
|
386
|
+
hosts.forEach((host) => {
|
|
387
|
+
const root = host.shadowRoot;
|
|
388
|
+
if (!root)
|
|
389
|
+
return;
|
|
390
|
+
const fileInputs = Array.from(root.querySelectorAll('input[type="file"][name]'));
|
|
391
|
+
console.log(fileInputs);
|
|
392
|
+
fileInputs.forEach((fi) => {
|
|
393
|
+
const name = fi.name;
|
|
394
|
+
const files = fi.files ? Array.from(fi.files) : [];
|
|
395
|
+
if (files.length > 0) {
|
|
396
|
+
// Append each file under the same field name (backend can use request.files.getlist(name))
|
|
397
|
+
files.forEach((file) => formData.append(name, file));
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
// (Optional) mark that this payload includes files (handy in logs / policies)
|
|
402
|
+
// formData.set('_has_files', '1');
|
|
403
|
+
}
|
|
404
|
+
/*formData.forEach((value, key) => {
|
|
405
|
+
if (value instanceof File) {
|
|
406
|
+
console.log(`File field: ${key}, File name: ${value.name}, File size: ${value.size}`);
|
|
407
|
+
} else {
|
|
408
|
+
console.log(`Field: ${key}, Value: ${value}`);
|
|
409
|
+
}
|
|
410
|
+
});*/
|
|
380
411
|
return formData;
|
|
381
412
|
}
|
|
382
413
|
handleChange(e, field) {
|
|
@@ -487,11 +518,11 @@ const EdsForm$1 = /*@__PURE__*/ proxyCustomElement(class EdsForm extends HTMLEle
|
|
|
487
518
|
message: `${field.name} updated`
|
|
488
519
|
});
|
|
489
520
|
}
|
|
490
|
-
handleSubmit() {
|
|
521
|
+
handleSubmit(e) {
|
|
491
522
|
var _a, _b;
|
|
492
|
-
|
|
523
|
+
e === null || e === void 0 ? void 0 : e.preventDefault();
|
|
524
|
+
if (this.isSubmitting)
|
|
493
525
|
return;
|
|
494
|
-
}
|
|
495
526
|
this.isSubmitting = true;
|
|
496
527
|
this.validateForm();
|
|
497
528
|
if (this.hasError) {
|
|
@@ -586,9 +617,9 @@ const EdsForm$1 = /*@__PURE__*/ proxyCustomElement(class EdsForm extends HTMLEle
|
|
|
586
617
|
const styleClasses = this.formStyle === 'shadow'
|
|
587
618
|
? 'bg-inverse effect-shadow shadow-hover border-softer relative rounded-lg border-2 p-32'
|
|
588
619
|
: '';
|
|
589
|
-
return (h("form", { key: '
|
|
620
|
+
return (h("form", { key: '0b7014a7e6c641f2abc6217d919583dafce50067', class: styleClasses, ref: (el) => (this.formEl = el), autocomplete: "on", onSubmit: this.handleSubmit }, h("div", { key: '3beaa87c72ac60e37bf5c7093b8a3f5b54c9eb4b', class: "flex flex-col gap-y-24" }, this.title && (h("span", { key: '5d07685b0e31419d442765c230f9cd2373ce2773', role: "heading", class: "f-heading-04" }, this.title)), this.description && h("span", { key: '13fe635ea00fa3c950951f1df37549fa75341666', class: "f-body-02 text-light" }, this.description), h("slot", { key: '5e62b8844536ef127ce2565e4167766bf6d5ba4d' })), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), this.parsedGroups
|
|
590
621
|
.filter((g) => Array.isArray(buckets[g.id]) && buckets[g.id].length > 0)
|
|
591
|
-
.map((g) => (h("div", { class: "
|
|
622
|
+
.map((g) => (h("div", { class: "mt-32", key: g.id }, h("span", { class: "f-body-02" }, h("b", null, g.title)), h("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, buckets[g.id].map((f) => this.renderField(f)))))), h("div", { key: '831b919b0784a671596678392fe5aa0433af35a5', class: "flex flex-col mt-32 gap-y-24" }, buckets['__ungrouped'].map((f) => this.renderField(f))), this.formBtn && (h("div", { key: 'bdddee0aa0899c9cea3ce737f30f1e25ce8d95c5', class: "mt-32" }, h("eds-button", { key: 'f9a61383079b998dc98558d85b93e30aa32a3eeb', intent: this.buttonIntent, label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })))));
|
|
592
623
|
}
|
|
593
624
|
get el() { return this; }
|
|
594
625
|
static get watchers() { return {
|
|
@@ -76,7 +76,7 @@ const EdsFrame$1 = /*@__PURE__*/ proxyCustomElement(class EdsFrame extends HTMLE
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '919f5de224a556016a2ccf7bdfc20a4885afa3f5', class: this.articleClasses() }, h("div", { key: '13f6c97cd99ddc7a15bed69efed236f44266d9ab', class: "effect-height flex items-center justify-between py-8 px-12" }, h("span", { key: 'a1b912042dbf197dd7044016582412980c9a177b', class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? (h("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), h("div", { key: '186fa28cc18e183318f94ccfd2d557ee800f43b7', class: "border-softer" }, this.iframeError ? (h("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (h("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
80
80
|
}
|
|
81
81
|
get el() { return this; }
|
|
82
82
|
static get style() { return EdsFrameStyle0; }
|
|
@@ -36,6 +36,10 @@ const EdsFullscreenMenu$1 = /*@__PURE__*/ proxyCustomElement(class EdsFullscreen
|
|
|
36
36
|
handleToggleMenu(event) {
|
|
37
37
|
this.isMenuOpen = !!event.detail;
|
|
38
38
|
}
|
|
39
|
+
onKeydown(e) {
|
|
40
|
+
if (e.key === 'Escape' && this.isMenuOpen)
|
|
41
|
+
this.closeMenu();
|
|
42
|
+
}
|
|
39
43
|
/** Opens the menu */
|
|
40
44
|
openMenu() {
|
|
41
45
|
this.isMenuOpen = true;
|
|
@@ -45,6 +49,8 @@ const EdsFullscreenMenu$1 = /*@__PURE__*/ proxyCustomElement(class EdsFullscreen
|
|
|
45
49
|
this.isMenuOpen = false;
|
|
46
50
|
this.menuClose.emit();
|
|
47
51
|
}
|
|
52
|
+
async open() { this.isMenuOpen = true; }
|
|
53
|
+
async close() { this.closeMenu(); }
|
|
48
54
|
// Lifecycle method to add the resize event listener when component loads
|
|
49
55
|
componentDidLoad() {
|
|
50
56
|
window.addEventListener('resize', this.handleResize.bind(this));
|
|
@@ -78,7 +84,7 @@ const EdsFullscreenMenu$1 = /*@__PURE__*/ proxyCustomElement(class EdsFullscreen
|
|
|
78
84
|
return parseData(this.menuLinks);
|
|
79
85
|
}
|
|
80
86
|
render() {
|
|
81
|
-
return this.isMenuOpen ? (h("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, h("div", { class: "flex min-h-full flex-col" }, h("div", { class: `w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, h("div", { class: "mx-auto flex items-center justify-between" }, h("div", { class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), h("div", { class: "px-16" }, h("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), h("div", { class: "py-16 px-16" }, h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (h("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" })))), h("eds-block-break", null), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (h("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" })))), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, h("slot", null))), h("div", { class: "mt-auto" }, h("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
87
|
+
return this.isMenuOpen ? (h("div", { role: "dialog", "aria-modal": "true", "aria-label": "Main menu", class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, h("div", { class: "flex min-h-full flex-col" }, h("div", { class: `w-full sticky top-0 ${this.inverseHeader ? 'bg-strongest' : 'bg-default'}` }, h("div", { class: "mx-auto flex items-center justify-between" }, h("div", { class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), h("div", { class: "px-16" }, h("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), h("div", { class: "py-16 px-16" }, h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((link, index) => (h("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" })))), h("eds-block-break", null), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((link, index) => (h("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" })))), h("nav", { class: "mt-28 flex flex-col gap-y-8" }, h("slot", null))), h("div", { class: "mt-auto" }, h("eds-footer", { social: true, "extra-class": "bg-darker" }))))) : null;
|
|
82
88
|
}
|
|
83
89
|
static get style() { return EdsFullscreenMenuStyle0; }
|
|
84
90
|
}, [1, "eds-fullscreen-menu", {
|
|
@@ -86,8 +92,10 @@ const EdsFullscreenMenu$1 = /*@__PURE__*/ proxyCustomElement(class EdsFullscreen
|
|
|
86
92
|
"menuLinks": [1, "menu-links"],
|
|
87
93
|
"homeUrl": [1, "home-url"],
|
|
88
94
|
"inverseHeader": [4, "inverse-header"],
|
|
89
|
-
"isMenuOpen": [32]
|
|
90
|
-
|
|
95
|
+
"isMenuOpen": [32],
|
|
96
|
+
"open": [64],
|
|
97
|
+
"close": [64]
|
|
98
|
+
}, [[16, "toggleheadermenu", "handleToggleMenu"], [8, "keydown", "onKeydown"]]]);
|
|
91
99
|
function defineCustomElement$1() {
|
|
92
100
|
if (typeof customElements === "undefined") {
|
|
93
101
|
return;
|
|
@@ -50,7 +50,7 @@ const EdsGauge$1 = /*@__PURE__*/ proxyCustomElement(class EdsGauge extends HTMLE
|
|
|
50
50
|
const textStyle = {
|
|
51
51
|
fontSize: `${fontSize}px`
|
|
52
52
|
};
|
|
53
|
-
return (h("div", { key: '
|
|
53
|
+
return (h("div", { key: '8834b0fc3cb78c0e7926392d04229d67d8deab90', 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 }, h("div", { key: 'f9ad68bd6bf19bceb46df1cfe16cdbbc2375099c', class: "absolute bg-inverse rounded-full", style: maskStyle }), h("div", { key: '64a2ba3ba2f104fa018f81949cdabc0fc53eea42', class: "absolute inset-0 flex items-center justify-center" }, h("span", { key: 'ae66f977802793f4e10210e75ddfa53839a9ff6e', class: "f-body-01 text-default", style: textStyle }, clamped))));
|
|
54
54
|
}
|
|
55
55
|
static get style() { return EdsGaugeStyle0; }
|
|
56
56
|
}, [1, "eds-gauge", {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface EdsGlobalSearch extends Components.EdsGlobalSearch, HTMLElement {}
|
|
4
|
+
export const EdsGlobalSearch: {
|
|
5
|
+
prototype: EdsGlobalSearch;
|
|
6
|
+
new (): EdsGlobalSearch;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { s as sendAnalytics } from './analytics.js';
|
|
3
|
+
import { d as defineCustomElement$b } from './eds-icon-wrapper2.js';
|
|
4
|
+
import { d as defineCustomElement$a } from './eds-input2.js';
|
|
5
|
+
import { d as defineCustomElement$9 } from './eds-input-field2.js';
|
|
6
|
+
import { d as defineCustomElement$8 } from './eds-input-footer2.js';
|
|
7
|
+
import { d as defineCustomElement$7 } from './eds-input-label2.js';
|
|
8
|
+
import { d as defineCustomElement$6 } from './eds-input-range2.js';
|
|
9
|
+
import { d as defineCustomElement$5 } from './eds-input-search2.js';
|
|
10
|
+
import { d as defineCustomElement$4 } from './eds-input-select2.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './eds-spinner2.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './eds-tag2.js';
|
|
13
|
+
|
|
14
|
+
const edsGlobalSearchCss = ":host{display:block;width:100%}p{margin:0}ol,ul,menu{list-style:none;margin:0;padding:0}.search-wrapper{position:relative;width:100%}.search-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;background:white;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);max-height:500px;overflow:hidden;z-index:9999;display:flex;flex-direction:column}.dropdown-state{display:flex;align-items:center;justify-content:center;gap:8px;padding:24px;color:#616161;font-size:14px}.dropdown-results{list-style:none;margin:0;overflow-y:auto;overflow-x:hidden;max-height:440px}.result-item{padding:10px 14px;cursor:pointer;transition:background-color 0.15s ease;border-left:3px solid transparent;overflow:hidden;word-wrap:break-word;word-break:break-word}.result-item:hover,.result-item--selected{background-color:var(--grey-200);border-left-color:var(--green-600)}.result-header{display:flex;align-items:center;justify-content:space-between}.result-snippet{font-size:13px;color:#616161;line-height:1.4;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dropdown-footer{border-top:1px solid #e0e0e0;padding:8px 16px;background:#fafafa;flex-shrink:0}.footer-hint{font-size:11px;color:#757575;display:flex;align-items:center;gap:4px;flex-wrap:wrap}kbd{display:inline-block;padding:2px 5px;font-size:10px;font-family:monospace;line-height:1;color:#424242;background-color:#f5f5f5;border:1px solid #bdbdbd;border-radius:3px;box-shadow:0 1px 0 rgba(0, 0, 0, 0.1)}.dropdown-results::-webkit-scrollbar{width:8px}.dropdown-results::-webkit-scrollbar-track{background:#f5f5f5}.dropdown-results::-webkit-scrollbar-thumb{background:#bdbdbd;border-radius:4px}.dropdown-results::-webkit-scrollbar-thumb:hover{background:#9e9e9e}.flex{display:flex}.inline-flex{display:inline-flex}.text-center{text-align:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-error{color:var(--red-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-4{margin-left:0.25rem}.ml-8{margin-left:0.5rem}.ml-16{margin-left:1rem}.p-16{padding:1rem}.p-64{padding:4rem}.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-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}";
|
|
15
|
+
const EdsGlobalSearchStyle0 = edsGlobalSearchCss;
|
|
16
|
+
|
|
17
|
+
const EdsGlobalSearch$1 = /*@__PURE__*/ proxyCustomElement(class EdsGlobalSearch extends HTMLElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.__registerHost();
|
|
21
|
+
this.__attachShadow();
|
|
22
|
+
this.resultSelected = createEvent(this, "resultSelected", 7);
|
|
23
|
+
this.searchClosed = createEvent(this, "searchClosed", 7);
|
|
24
|
+
this.handleInput = (event) => {
|
|
25
|
+
var _a;
|
|
26
|
+
const target = event.target;
|
|
27
|
+
this.query = target.value;
|
|
28
|
+
if (this.debounceTimer) {
|
|
29
|
+
clearTimeout(this.debounceTimer);
|
|
30
|
+
}
|
|
31
|
+
if (!this.query.trim()) {
|
|
32
|
+
this.results = [];
|
|
33
|
+
this.hasSearched = false;
|
|
34
|
+
this.showDropdown = false;
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
sendAnalytics({
|
|
38
|
+
category: 'shared-ui',
|
|
39
|
+
parentContext: null,
|
|
40
|
+
tag: this.el.tagName.toLowerCase(),
|
|
41
|
+
name: `search-input: ${(_a = this.query) === null || _a === void 0 ? void 0 : _a.toLowerCase()}` ||
|
|
42
|
+
'unknow seach input query',
|
|
43
|
+
action: 'click',
|
|
44
|
+
});
|
|
45
|
+
this.debounceTimer = window.setTimeout(() => {
|
|
46
|
+
this.runSearch();
|
|
47
|
+
}, this.debounceDelay);
|
|
48
|
+
};
|
|
49
|
+
this.apiEndpoint = '/api/v1/global-search';
|
|
50
|
+
this.placeholder = 'Search Handbook + Design...';
|
|
51
|
+
this.limit = 20;
|
|
52
|
+
this.debounceDelay = 300;
|
|
53
|
+
this.query = '';
|
|
54
|
+
this.results = [];
|
|
55
|
+
this.loading = false;
|
|
56
|
+
this.error = '';
|
|
57
|
+
this.hasSearched = false;
|
|
58
|
+
this.showDropdown = false;
|
|
59
|
+
this.selectedIndex = -1;
|
|
60
|
+
}
|
|
61
|
+
componentDidLoad() {
|
|
62
|
+
// Focus input if needed
|
|
63
|
+
if (this.inputRef) {
|
|
64
|
+
this.inputRef.focus();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
disconnectedCallback() {
|
|
68
|
+
if (this.debounceTimer) {
|
|
69
|
+
clearTimeout(this.debounceTimer);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
handleDocumentClick(event) {
|
|
73
|
+
const path = event.composedPath();
|
|
74
|
+
if (!path.includes(this.el)) {
|
|
75
|
+
this.showDropdown = false;
|
|
76
|
+
this.selectedIndex = -1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
handleKeydown(event) {
|
|
80
|
+
if (!this.showDropdown || this.results.length === 0) {
|
|
81
|
+
if (event.key === 'Escape') {
|
|
82
|
+
this.searchClosed.emit();
|
|
83
|
+
}
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
switch (event.key) {
|
|
87
|
+
case 'ArrowDown':
|
|
88
|
+
event.preventDefault();
|
|
89
|
+
this.selectedIndex = Math.min(this.selectedIndex + 1, this.results.length - 1);
|
|
90
|
+
this.scrollToSelected();
|
|
91
|
+
break;
|
|
92
|
+
case 'ArrowUp':
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
this.selectedIndex = Math.max(this.selectedIndex - 1, -1);
|
|
95
|
+
this.scrollToSelected();
|
|
96
|
+
break;
|
|
97
|
+
case 'Enter':
|
|
98
|
+
event.preventDefault();
|
|
99
|
+
if (this.selectedIndex >= 0 &&
|
|
100
|
+
this.selectedIndex < this.results.length) {
|
|
101
|
+
this.selectResult(this.results[this.selectedIndex]);
|
|
102
|
+
}
|
|
103
|
+
break;
|
|
104
|
+
case 'Escape':
|
|
105
|
+
this.showDropdown = false;
|
|
106
|
+
this.selectedIndex = -1;
|
|
107
|
+
this.searchClosed.emit();
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async runSearch() {
|
|
112
|
+
var _a;
|
|
113
|
+
const query = this.query.trim();
|
|
114
|
+
if (!query) {
|
|
115
|
+
this.results = [];
|
|
116
|
+
this.hasSearched = false;
|
|
117
|
+
this.showDropdown = false;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
this.loading = true;
|
|
121
|
+
this.error = '';
|
|
122
|
+
try {
|
|
123
|
+
const response = await fetch(`${this.apiEndpoint}?q=${encodeURIComponent(query)}&limit=${this.limit}`);
|
|
124
|
+
if (!response.ok) {
|
|
125
|
+
throw new Error('Search failed');
|
|
126
|
+
}
|
|
127
|
+
const data = await response.json();
|
|
128
|
+
this.results = (_a = data.items) !== null && _a !== void 0 ? _a : [];
|
|
129
|
+
this.hasSearched = true;
|
|
130
|
+
this.showDropdown = true;
|
|
131
|
+
this.selectedIndex = -1;
|
|
132
|
+
}
|
|
133
|
+
catch (err) {
|
|
134
|
+
console.error('Search error:', err);
|
|
135
|
+
this.error = 'Search failed. Please try again.';
|
|
136
|
+
this.results = [];
|
|
137
|
+
this.showDropdown = true;
|
|
138
|
+
}
|
|
139
|
+
finally {
|
|
140
|
+
this.loading = false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
selectResult(result) {
|
|
144
|
+
this.resultSelected.emit(result);
|
|
145
|
+
this.searchClosed.emit();
|
|
146
|
+
sendAnalytics({
|
|
147
|
+
category: 'shared-ui',
|
|
148
|
+
parentContext: null,
|
|
149
|
+
tag: this.el.tagName.toLowerCase(),
|
|
150
|
+
name: `search-select: ${result.url}` || 'unknow search result selection',
|
|
151
|
+
action: 'click',
|
|
152
|
+
});
|
|
153
|
+
window.open(result.url, '_blank', 'noopener,noreferrer');
|
|
154
|
+
}
|
|
155
|
+
scrollToSelected() {
|
|
156
|
+
if (this.selectedIndex >= 0 && this.dropdownRef) {
|
|
157
|
+
const selectedItem = this.dropdownRef.querySelector(`[data-index="${this.selectedIndex}"]`);
|
|
158
|
+
if (selectedItem) {
|
|
159
|
+
selectedItem.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
stripHtml(html) {
|
|
164
|
+
const div = document.createElement('div');
|
|
165
|
+
div.innerHTML = html;
|
|
166
|
+
return div.textContent || div.innerText || '';
|
|
167
|
+
}
|
|
168
|
+
get hasResults() {
|
|
169
|
+
return this.results.length > 0;
|
|
170
|
+
}
|
|
171
|
+
get showEmpty() {
|
|
172
|
+
return (this.hasSearched && !this.loading && !this.hasResults && this.query.trim());
|
|
173
|
+
}
|
|
174
|
+
render() {
|
|
175
|
+
return (h("div", { key: 'e3c15463b46aa6349efb86e4907d6f7bfabf682f', class: "search-wrapper" }, h("eds-input-field", { key: 'f2164163925534652c62541b3e954d4bb66510bc', icon: "search", "input-id": "search-global", type: "text", name: "search-box-global", placeholder: this.placeholder, value: this.query, onInput: this.handleInput }), this.showDropdown && (h("div", { key: 'f592d322fb3d1556743edc39713c8dbaa6449fa6', class: "search-dropdown", ref: (el) => (this.dropdownRef = el) }, this.loading && (h("div", { key: '4d3171271b27f70650bbded9cb7c0b76799dc1a1', class: "flex text-center justify-center p-64" }, h("eds-spinner", { key: '74fed5cf70ba698468dd2ca03dc5ff4eb7aeb7db', variant: "primary", size: "sm" }))), this.error && !this.loading && (h("div", { key: '481fd52e321ff02ca61cc0877a61f577b6a1ebd7', class: "flex text-center justify-center p-16" }, h("span", { key: '073d2a12b960b3309e0ab597c41d36f946615ed6', class: "text-error f-body-02" }, this.error))), this.showEmpty && (h("div", { key: '7b031eec1e6720f4cda6bc107ebc6f64f1c6e35f', class: "dropdown-state" }, h("eds-icon-wrapper", { key: '3ce91c3dcdaf27bd85f7ea4c855bab58b1208355', icon: "search" }), h("div", { key: 'c1a9b0c3f62fc568fa9d34d41730da8960bcdd54' }, h("p", { key: 'd3b87b4a6b06e81e5c62e817b924f762974c589e', class: "f-body-02" }, "No results found"), h("p", { key: '67fde47420811b9eaef805d9e6aa1b3515c74251', class: "f-ui-04 text-lightest" }, "Try different keywords")))), this.hasResults && !this.loading && (h("ul", { key: 'ba3a77467ba5e709bdf95dc793c316a18a135b64', class: "dropdown-results" }, this.results.map((result, index) => (h("li", { key: result.id, "data-index": index, class: {
|
|
176
|
+
'result-item': true,
|
|
177
|
+
'result-item--selected': index === this.selectedIndex,
|
|
178
|
+
}, onClick: () => this.selectResult(result), onMouseEnter: () => (this.selectedIndex = index) }, h("div", { class: "result-header" }, h("span", { class: "f-body-02" }, result.title)), h("div", { class: "inline" }, h("eds-tag", { intent: "accent", label: result.source }), result.section && (h("span", { class: "result-badge" }, result.section)), h("span", { class: "f-ui-03-light text-lighter ml-8" }, result.url)), result.snippet && (h("p", { class: "result-snippet" }, this.stripHtml(result.snippet)))))))), this.hasResults && !this.loading && (h("div", { key: 'ccdceeb06f423b28868dbf5ec2a11c5b84c651d7', class: "dropdown-footer" }, h("span", { key: 'e9dfb424b4dd277b11c6a630c673ec6368b09ef2', class: "footer-hint" }, h("kbd", { key: '4d045d4356b035c6efc7e029ea9e1f5bb4828b6b' }, "\u2191"), " ", h("kbd", { key: '5ee2913fe448ad3763ca9a70f474bfa9fcd3aad9' }, "\u2193"), " navigate \u2022 ", h("kbd", { key: 'd745261bb53ecffae5ff41d53e349fd74d37b955' }, "\u21B5"), " select \u2022", ' ', h("kbd", { key: 'baa93b7af9e8ae8994f8e73c1bf7942f659b0491' }, "esc"), " close")))))));
|
|
179
|
+
}
|
|
180
|
+
get el() { return this; }
|
|
181
|
+
static get style() { return EdsGlobalSearchStyle0; }
|
|
182
|
+
}, [1, "eds-global-search", {
|
|
183
|
+
"apiEndpoint": [1, "api-endpoint"],
|
|
184
|
+
"placeholder": [1],
|
|
185
|
+
"limit": [2],
|
|
186
|
+
"debounceDelay": [2, "debounce-delay"],
|
|
187
|
+
"query": [32],
|
|
188
|
+
"results": [32],
|
|
189
|
+
"loading": [32],
|
|
190
|
+
"error": [32],
|
|
191
|
+
"hasSearched": [32],
|
|
192
|
+
"showDropdown": [32],
|
|
193
|
+
"selectedIndex": [32]
|
|
194
|
+
}, [[4, "click", "handleDocumentClick"], [0, "keydown", "handleKeydown"]]]);
|
|
195
|
+
function defineCustomElement$1() {
|
|
196
|
+
if (typeof customElements === "undefined") {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
const components = ["eds-global-search", "eds-icon-wrapper", "eds-input", "eds-input-field", "eds-input-footer", "eds-input-label", "eds-input-range", "eds-input-search", "eds-input-select", "eds-spinner", "eds-tag"];
|
|
200
|
+
components.forEach(tagName => { switch (tagName) {
|
|
201
|
+
case "eds-global-search":
|
|
202
|
+
if (!customElements.get(tagName)) {
|
|
203
|
+
customElements.define(tagName, EdsGlobalSearch$1);
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case "eds-icon-wrapper":
|
|
207
|
+
if (!customElements.get(tagName)) {
|
|
208
|
+
defineCustomElement$b();
|
|
209
|
+
}
|
|
210
|
+
break;
|
|
211
|
+
case "eds-input":
|
|
212
|
+
if (!customElements.get(tagName)) {
|
|
213
|
+
defineCustomElement$a();
|
|
214
|
+
}
|
|
215
|
+
break;
|
|
216
|
+
case "eds-input-field":
|
|
217
|
+
if (!customElements.get(tagName)) {
|
|
218
|
+
defineCustomElement$9();
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
221
|
+
case "eds-input-footer":
|
|
222
|
+
if (!customElements.get(tagName)) {
|
|
223
|
+
defineCustomElement$8();
|
|
224
|
+
}
|
|
225
|
+
break;
|
|
226
|
+
case "eds-input-label":
|
|
227
|
+
if (!customElements.get(tagName)) {
|
|
228
|
+
defineCustomElement$7();
|
|
229
|
+
}
|
|
230
|
+
break;
|
|
231
|
+
case "eds-input-range":
|
|
232
|
+
if (!customElements.get(tagName)) {
|
|
233
|
+
defineCustomElement$6();
|
|
234
|
+
}
|
|
235
|
+
break;
|
|
236
|
+
case "eds-input-search":
|
|
237
|
+
if (!customElements.get(tagName)) {
|
|
238
|
+
defineCustomElement$5();
|
|
239
|
+
}
|
|
240
|
+
break;
|
|
241
|
+
case "eds-input-select":
|
|
242
|
+
if (!customElements.get(tagName)) {
|
|
243
|
+
defineCustomElement$4();
|
|
244
|
+
}
|
|
245
|
+
break;
|
|
246
|
+
case "eds-spinner":
|
|
247
|
+
if (!customElements.get(tagName)) {
|
|
248
|
+
defineCustomElement$3();
|
|
249
|
+
}
|
|
250
|
+
break;
|
|
251
|
+
case "eds-tag":
|
|
252
|
+
if (!customElements.get(tagName)) {
|
|
253
|
+
defineCustomElement$2();
|
|
254
|
+
}
|
|
255
|
+
break;
|
|
256
|
+
} });
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
const EdsGlobalSearch = EdsGlobalSearch$1;
|
|
260
|
+
const defineCustomElement = defineCustomElement$1;
|
|
261
|
+
|
|
262
|
+
export { EdsGlobalSearch, defineCustomElement };
|
|
@@ -20,14 +20,10 @@ const EdsHeader$1 = /*@__PURE__*/ proxyCustomElement(class EdsHeader extends HTM
|
|
|
20
20
|
this.menuEnabled = false;
|
|
21
21
|
this.isMenuOpen = false;
|
|
22
22
|
this.isUserMenuOpen = false;
|
|
23
|
-
this.isAuthenticated = false;
|
|
24
|
-
}
|
|
25
|
-
onAuthStatusChanged(event) {
|
|
26
|
-
var _a;
|
|
27
|
-
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
28
23
|
}
|
|
29
24
|
componentDidLoad() {
|
|
30
|
-
|
|
25
|
+
var _a, _b;
|
|
26
|
+
const links = (_b = (_a = this.hostEl.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link')) !== null && _b !== void 0 ? _b : [];
|
|
31
27
|
links.forEach((link) => this.emitContext(link));
|
|
32
28
|
}
|
|
33
29
|
emitContext(linkElement) {
|
|
@@ -55,7 +51,7 @@ const EdsHeader$1 = /*@__PURE__*/ proxyCustomElement(class EdsHeader extends HTM
|
|
|
55
51
|
const classes = variantClasses[this.headerVariant] || variantClasses.default;
|
|
56
52
|
// Logo color variant: default and inverse use 'color', strong uses 'color-white'
|
|
57
53
|
const logoType = this.headerVariant === 'strong' ? 'color-white' : 'color';
|
|
58
|
-
return (h("header", { key: '
|
|
54
|
+
return (h("header", { key: '33f041754210d5fce8b190e63a6f19ac62262cfd', role: "banner", class: `flex items-center justify-between relative z-10 ${classes}` }, h("div", { key: '596d4b9cbb08fa95aa9b715599290ac91aff3f77', class: "mr-auto w-[200px] h-[85px]" }, h("eds-logo", { key: 'd13e83eca926b82f7406d5efb3f16555c25c167c', type: logoType, href: this.homeUrl })), this.parsedLinks && (h("nav", { key: 'e120bef9e976e75d523bd6d1e65e8aecd7c6a694', 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" }, h("ul", { key: 'ea3db252b028340a007a18b4cb1fb995fefd51b0', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (h("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "large", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), h("slot", { key: '47dfb8dcd8e77bd908236aef0cc0c3c5542de11e', name: "actions" }), this.menuEnabled && (h("div", { key: 'a6f4a3fb9834696d39a6831098c12f1a5a519a6b', class: "md:hidden flex overflow-hidden px-16" }, h("eds-button", { key: '2c6586152953caa33911d19fa69d3518cb73fc41', "aria-label": "Menu", intent: this.headerVariant === 'default' ? 'ghost' : 'ghostInverse', icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })))));
|
|
59
55
|
}
|
|
60
56
|
get hostEl() { return this; }
|
|
61
57
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -65,9 +61,8 @@ const EdsHeader$1 = /*@__PURE__*/ proxyCustomElement(class EdsHeader extends HTM
|
|
|
65
61
|
"headerVariant": [513, "header-variant"],
|
|
66
62
|
"menuEnabled": [4, "menu-enabled"],
|
|
67
63
|
"isMenuOpen": [32],
|
|
68
|
-
"isUserMenuOpen": [32]
|
|
69
|
-
|
|
70
|
-
}, [[16, "authStatusChanged", "onAuthStatusChanged"]]]);
|
|
64
|
+
"isUserMenuOpen": [32]
|
|
65
|
+
}]);
|
|
71
66
|
function defineCustomElement$1() {
|
|
72
67
|
if (typeof customElements === "undefined") {
|
|
73
68
|
return;
|
|
@@ -8,7 +8,7 @@ const EdsIconArrowDiagonal$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconArr
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '4dd5fc5be465494e8546404231cfdb63609e64f1', class: this.class, innerHTML: arrowDiagonal });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-arrow-diagonal", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconArrowRight$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconArrowR
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '64d0cb03ab1a33096ad9e3b7219a2e758707a1d5', class: this.class, innerHTML: arrowRight });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-arrow-right", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconBin$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconBin extends H
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '9a7b52f2a2006bd83418d6b4bb2834bffa79305c', class: this.class, innerHTML: bin });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-bin", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconBluesky$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconBluesky e
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '4f21c5659e92ea08e1f464d23e351fbfef6e347d', class: this.class, innerHTML: bluesky });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-bluesky", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconBookmark$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconBookmark
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '48b2e81ac7f597b50d13a7a0a753894ac18022cd', class: this.class, innerHTML: bookmark });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-bookmark", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconChevronDown$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconChevr
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'ea6e2250c63af2a7f3ed1d50e6514a28e5629e6d', class: this.class, innerHTML: chevronDown });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-chevron-down", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconChevronLeft$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconChevr
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '8847183f6f31439d94f87a24ee01697babe53ecf', class: this.class, innerHTML: chevronLeft });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-chevron-left", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconChevronRight$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconChev
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '398a406ad137aeb4d51286b82eccee3c0bff2f2b', class: this.class, innerHTML: chevronRight });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-chevron-right", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconChevronUp$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconChevron
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'f0647dcbf0e597fc3dd2f31d0e1de2ce7237d25a', class: this.class, innerHTML: chevronUp });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-chevron-up", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconClone$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconClone exten
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'faa232cc2d703f00cbda76fb9c152773a032ded2', class: this.class, innerHTML: clone });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-clone", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconClose$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconClose exten
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '001c4d41b324d9b2636087e1fde76e2fdeef9f33', class: this.class, innerHTML: close });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-close", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconCopy$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconCopy extends
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '6a7eb765b426e0e142a0d7f742ddc33c9de98601', class: this.class, innerHTML: copy });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-copy", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconDownload$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconDownload
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: 'b2b380a299ee2b9941613ddddc3d67b2db4ce57e', class: this.class, innerHTML: download });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-download", {
|
|
14
14
|
"class": [1]
|
|
@@ -8,7 +8,7 @@ const EdsIconDraft$1 = /*@__PURE__*/ proxyCustomElement(class EdsIconDraft exten
|
|
|
8
8
|
this.class = '';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return h("span", { key: '
|
|
11
|
+
return h("span", { key: '0defed3e15ba10e6e62cf35d0540901ec1dd2485', class: this.class, innerHTML: draft });
|
|
12
12
|
}
|
|
13
13
|
}, [0, "eds-icon-draft", {
|
|
14
14
|
"class": [1]
|