@ebrains/components 0.7.0-alpha.0 → 0.8.0-alpha.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/README.md +370 -0
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/eds-accordion_17.cjs.entry.js +1468 -0
- package/dist/cjs/eds-alert.cjs.entry.js +11 -4
- package/dist/cjs/eds-app-root.cjs.entry.js +1 -1
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +6 -2
- package/dist/cjs/{eds-avatar_4.cjs.entry.js → eds-card-desc_3.cjs.entry.js} +3 -70
- 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-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +1 -1
- package/dist/cjs/eds-components-section.cjs.entry.js +34 -20
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +1 -1
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/eds-feedback.cjs.entry.js +1 -1
- package/dist/cjs/eds-form.cjs.entry.js +211 -146
- package/dist/cjs/eds-frame.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +2 -2
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-bluesky.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-close.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-copy.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-eu.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-more.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-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-twitter.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-user.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +1 -1
- package/dist/cjs/eds-input_7.cjs.entry.js +357 -0
- package/dist/cjs/eds-login_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-logo-variations.cjs.entry.js +1 -1
- package/dist/cjs/eds-modal.cjs.entry.js +2 -2
- package/dist/cjs/eds-pagination_2.cjs.entry.js +403 -0
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-rating.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +4 -4
- package/dist/cjs/eds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/eds-svg-repository.cjs.entry.js +5 -1
- package/dist/cjs/eds-switch.cjs.entry.js +2 -2
- package/dist/cjs/eds-tabs.cjs.entry.js +2 -2
- package/dist/cjs/eds-timeline.cjs.entry.js +5 -1
- package/dist/cjs/eds-toast-manager.cjs.entry.js +1 -1
- package/dist/cjs/eds-tooltip.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-2f63169d.js +14 -22
- 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-wrong-usage.cjs.entry.js +1 -1
- 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/collection/collection-manifest.json +3 -4
- package/dist/collection/components/eds-accordion/eds-accordion.css +12 -8
- package/dist/collection/components/eds-accordion/eds-accordion.js +9 -24
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +2 -2
- package/dist/collection/components/eds-alert/eds-alert.css +223 -91
- package/dist/collection/components/eds-alert/eds-alert.js +28 -3
- package/dist/collection/components/eds-alert/eds-alert.stories.js +10 -2
- package/dist/collection/components/eds-avatar/eds-avatar.css +38 -0
- package/dist/collection/components/eds-avatar/eds-avatar.js +11 -40
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +19 -46
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +1 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +14 -6
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +6 -2
- package/dist/collection/components/eds-button/eds-button.css +8420 -6638
- 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 +4 -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-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +133 -102
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +10 -1
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.css +30 -3
- package/dist/collection/components/eds-code-block/eds-code-block.js +1 -1
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +4 -3
- 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 +4 -4
- 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-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-eu/eds-icon-eu.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-more/eds-icon-more.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-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-user/eds-icon-user.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 +5 -5
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +8 -10
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +49 -10
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +1 -1
- package/dist/collection/components/eds-input-field/eds-input-field.css +651 -52
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.css +12 -204
- package/dist/collection/components/eds-link/eds-link.js +5 -5
- 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-pagination/eds-pagination.css +137 -109
- package/dist/collection/components/eds-pagination/eds-pagination.js +1 -1
- package/dist/collection/components/eds-pagination/eds-pagination.stories.js +0 -6
- 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 +3 -3
- package/dist/collection/components/eds-spinner/eds-spinner.js +1 -1
- package/dist/collection/components/eds-steps/eds-steps.js +48 -1
- package/dist/collection/components/eds-switch/eds-switch.js +2 -2
- package/dist/collection/components/eds-table/eds-table.js +42 -27
- package/dist/collection/components/eds-table/eds-table.stories.js +1 -1
- package/dist/collection/components/eds-tag/eds-tag.js +1 -1
- package/dist/collection/components/eds-timeline/eds-timeline.css +7758 -0
- package/dist/collection/components/eds-timeline/eds-timeline.js +12 -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/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/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/eds-components-section/eds-components-section.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-palettes/eds-docs-palettes.js +1 -1
- package/dist/collection/eds-docs-ui/eds-docs-tokens/eds-docs-tokens.js +1 -1
- package/dist/collection/eds-docs-ui/eds-logo-variations/eds-logo-variations.js +1 -1
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.css +5 -0
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +11 -1
- package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
- package/dist/collection/eds-docs-ui/functional/overview.js +18 -1
- package/dist/collection/eds-docs-ui/functional/react.js +1 -1
- package/dist/collection/eds-docs-ui/functional/vue.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-wrong-usage/logo-wrong-usage.js +1 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +1 -6
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +1 -2
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +1 -1
- package/dist/collection/shared-ui/eds-footer/eds-footer.css +226 -0
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +44 -23
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +10 -16
- package/dist/collection/shared-ui/eds-form/eds-form.css +3 -0
- package/dist/collection/{components/eds-form-v2/eds-form-v2.js → shared-ui/eds-form/eds-form.js} +7 -6
- package/dist/collection/{components/eds-form-v2/eds-form-v2.stories.js → shared-ui/eds-form/eds-form.stories.js} +4 -4
- package/dist/collection/{eds-docs-ui → shared-ui}/eds-frame/eds-frame.css +3 -0
- package/dist/collection/{eds-docs-ui → shared-ui}/eds-frame/eds-frame.js +2 -2
- package/dist/collection/{eds-docs-ui → shared-ui}/eds-frame/eds-frame.stories.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +120 -0
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +2 -1
- package/dist/collection/shared-ui/eds-header/eds-header.css +138 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +3 -2
- package/dist/collection/shared-ui/eds-login/eds-login.js +1 -1
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +4 -0
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +57 -3
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +361 -0
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +219 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +32 -48
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +1 -1
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.css +7758 -0
- package/dist/collection/shared-ui/eds-user/eds-user.js +44 -14
- package/dist/collection/shared-ui/eds-user/eds-user.stories.js +1 -1
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +1 -1
- package/dist/components/components.css +32 -48
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +10 -8
- package/dist/components/eds-alert2.js +12 -4
- package/dist/components/eds-app-root.js +1 -1
- package/dist/components/eds-avatar2.js +13 -8
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +6 -2
- package/dist/components/eds-button2.js +2 -2
- 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-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-card-wrapper.js +1 -1
- package/dist/components/eds-code-block2.js +1 -1
- package/dist/components/eds-components-section.js +58 -32
- package/dist/components/eds-cookies-preference.js +2 -3
- package/dist/components/eds-docs-palettes.js +1 -1
- package/dist/components/eds-docs-tokens.js +1 -1
- package/dist/components/eds-dropdown2.js +4 -3
- package/dist/components/eds-feedback.js +1 -1
- package/dist/components/eds-footer2.js +13 -6
- package/dist/components/eds-form.js +234 -189
- package/dist/components/eds-frame.js +3 -3
- package/dist/components/eds-fullscreen-menu.js +4 -3
- package/dist/components/eds-header.js +5 -4
- package/dist/components/eds-icon-arrow-diagonal.js +3 -3
- package/dist/components/eds-icon-arrow-right.js +1 -1
- package/dist/components/eds-icon-bluesky.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-close.js +1 -1
- package/dist/components/eds-icon-copy.js +1 -1
- package/dist/components/eds-icon-eu.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-more.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-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-twitter.js +1 -1
- package/dist/components/eds-icon-user.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 +3 -3
- package/dist/components/eds-input-footer2.js +1 -1
- package/dist/components/eds-input-label2.js +1 -1
- package/dist/components/eds-input-range2.js +1 -3
- package/dist/components/eds-input-search2.js +24 -2
- package/dist/components/eds-input-select2.js +1 -1
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +6 -6
- package/dist/components/eds-login2.js +1 -1
- package/dist/components/eds-logo-variations.js +1 -1
- package/dist/components/eds-logo2.js +1 -1
- package/dist/components/eds-matomo-notice2.js +32 -4
- package/dist/components/eds-modal.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 +3 -3
- package/dist/components/eds-social-networks2.js +1 -1
- package/dist/components/eds-spinner2.js +1 -1
- package/dist/components/{eds-form-v2.d.ts → eds-steps-v2.d.ts} +4 -4
- package/dist/components/eds-steps-v2.js +137 -0
- package/dist/components/eds-steps.js +1 -92
- package/dist/{esm/eds-steps.entry.js → components/eds-steps2.js} +86 -9
- package/dist/components/eds-svg-repository.js +5 -1
- package/dist/components/eds-switch.js +2 -2
- package/dist/components/eds-table2.js +41 -26
- package/dist/components/eds-tabs.js +2 -2
- package/dist/components/eds-tag2.js +1 -1
- package/dist/components/eds-timeline.js +7 -2
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-tooltip.js +1 -1
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user.js +26 -9
- 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-vertical2.js +1 -1
- package/dist/components/logo-wrong-usage.js +1 -1
- package/dist/components/{p-62f2f274.entry.js → p-01cb7ceb.entry.js} +1 -1
- package/dist/components/p-03a38eab.entry.js +1 -0
- package/dist/components/p-05d8fdc3.entry.js +1 -0
- package/dist/components/{p-8b70a350.entry.js → p-07ba7c89.entry.js} +1 -1
- package/dist/components/p-0918a2e2.entry.js +1 -0
- package/dist/components/p-096d3274.entry.js +1 -0
- package/dist/components/{p-ad746789.entry.js → p-0f73391d.entry.js} +1 -1
- package/dist/components/p-10a318e0.entry.js +1 -0
- package/dist/components/p-16e0b902.entry.js +1 -0
- package/dist/components/{p-5e63e8a5.entry.js → p-18e10983.entry.js} +1 -1
- package/dist/components/p-215f3b21.entry.js +1 -0
- package/dist/components/{p-43350dff.entry.js → p-21a746a4.entry.js} +1 -1
- package/dist/components/{p-c935aa46.entry.js → p-24507e71.entry.js} +1 -1
- package/dist/components/p-30075622.entry.js +1 -0
- package/dist/components/p-32a7f571.entry.js +1 -0
- package/dist/components/p-376b706b.entry.js +1 -0
- package/dist/components/{p-fba4080d.entry.js → p-3f0fd469.entry.js} +1 -1
- package/dist/components/{p-5e2216ae.entry.js → p-3f480c3c.entry.js} +1 -1
- package/dist/components/p-4675ac16.entry.js +1 -0
- package/dist/components/p-46c9a35e.entry.js +1 -0
- package/dist/components/{p-2354daeb.entry.js → p-4aefc66e.entry.js} +1 -1
- package/dist/components/p-4bcf6077.entry.js +1 -0
- package/dist/components/{p-56ec190f.entry.js → p-4d295eb7.entry.js} +1 -1
- package/dist/components/{p-9eb2e870.entry.js → p-4df00ba5.entry.js} +1 -1
- package/dist/components/p-5cf480a8.entry.js +1 -0
- package/dist/components/p-5d26f527.entry.js +1 -0
- package/dist/components/{p-0443ac40.entry.js → p-622dd2a1.entry.js} +1 -1
- package/dist/components/p-64f6f07e.entry.js +1 -0
- package/dist/components/p-69e5af42.entry.js +1 -0
- package/dist/components/p-6a73ac42.entry.js +1 -0
- package/dist/components/p-70201ae6.entry.js +1 -0
- package/dist/components/p-7ba154c5.entry.js +1 -0
- package/dist/components/p-7ba4ca15.entry.js +1 -0
- package/dist/components/p-84faf1b3.entry.js +1 -0
- package/dist/components/p-8527ef5f.entry.js +1 -0
- package/dist/components/{p-066f6d27.entry.js → p-8803ecf9.entry.js} +1 -1
- package/dist/components/p-8baa7e01.entry.js +1 -0
- package/dist/components/p-8cf4ee6e.entry.js +1 -0
- package/dist/components/{p-f905ac92.entry.js → p-91440d2f.entry.js} +1 -1
- package/dist/components/p-9873ebec.entry.js +1 -0
- package/dist/components/{p-0e0106fc.entry.js → p-9cbcccf8.entry.js} +1 -1
- package/dist/components/p-9e2a0f5a.entry.js +1 -0
- package/dist/components/p-9f4ad4e4.entry.js +1 -0
- package/dist/components/{p-a91ab66e.entry.js → p-a02c5c4a.entry.js} +1 -1
- package/dist/components/p-a0abe772.entry.js +1 -0
- package/dist/components/p-a1d55013.entry.js +1 -0
- package/dist/components/{p-4cd69983.entry.js → p-a6bf9bf8.entry.js} +1 -1
- package/dist/components/p-abaf04e1.entry.js +1 -0
- package/dist/components/p-ae60f98b.entry.js +1 -0
- package/dist/components/p-b299b89a.entry.js +1 -0
- package/dist/components/p-b2f0f40b.entry.js +1 -0
- package/dist/components/p-b4332c34.entry.js +1 -0
- package/dist/components/p-b47d115d.entry.js +1 -0
- package/dist/components/p-c86243a3.entry.js +1 -0
- package/dist/components/p-cdc36ea8.entry.js +1 -0
- package/dist/components/p-ceac6200.entry.js +1 -0
- package/dist/components/{p-5520a3b6.entry.js → p-cee891dc.entry.js} +1 -1
- package/dist/components/p-d06faa08.entry.js +1 -0
- package/dist/components/{p-a5c61d1c.entry.js → p-d17ea8af.entry.js} +1 -1
- package/dist/components/p-d2159cc9.entry.js +1 -0
- package/dist/components/p-d895d036.entry.js +1 -0
- package/dist/components/{p-b80a9020.entry.js → p-db970de6.entry.js} +1 -1
- package/dist/components/p-e343cd31.entry.js +1 -0
- package/dist/components/{p-c06d4f14.entry.js → p-e3811d4b.entry.js} +1 -1
- package/dist/components/p-e8bd6106.entry.js +1 -0
- package/dist/components/p-e96a5c8e.entry.js +1 -0
- package/dist/components/{p-ff7acb55.entry.js → p-f223a835.entry.js} +1 -1
- package/dist/components/{p-e64cd6f7.entry.js → p-f2e66c82.entry.js} +1 -1
- package/dist/components/p-fec4cba7.entry.js +1 -0
- 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/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 +14 -14
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/eds-accordion_17.entry.js +1448 -0
- package/dist/esm/eds-alert.entry.js +11 -4
- package/dist/esm/eds-app-root.entry.js +1 -1
- package/dist/esm/eds-breadcrumb.entry.js +6 -2
- package/dist/esm/{eds-avatar_4.entry.js → eds-card-desc_3.entry.js} +4 -70
- 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-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +1 -1
- package/dist/esm/eds-components-section.entry.js +34 -20
- package/dist/esm/eds-cookies-preference.entry.js +1 -1
- package/dist/esm/eds-docs-palettes.entry.js +1 -1
- package/dist/esm/eds-docs-tokens.entry.js +1 -1
- package/dist/esm/eds-feedback.entry.js +1 -1
- package/dist/esm/eds-form.entry.js +209 -144
- package/dist/esm/eds-frame.entry.js +3 -3
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-bluesky.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-close.entry.js +1 -1
- package/dist/esm/eds-icon-copy.entry.js +1 -1
- package/dist/esm/eds-icon-eu.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-more.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-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-twitter.entry.js +1 -1
- package/dist/esm/eds-icon-user.entry.js +1 -1
- package/dist/esm/eds-icon-youtube.entry.js +1 -1
- package/dist/esm/eds-input_7.entry.js +347 -0
- package/dist/esm/eds-login_2.entry.js +1 -1
- package/dist/esm/eds-logo-variations.entry.js +1 -1
- package/dist/esm/eds-modal.entry.js +2 -2
- package/dist/esm/eds-pagination_2.entry.js +398 -0
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-rating.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +4 -4
- package/dist/esm/eds-spinner.entry.js +1 -1
- package/dist/esm/eds-svg-repository.entry.js +5 -1
- package/dist/esm/eds-switch.entry.js +2 -2
- package/dist/esm/eds-tabs.entry.js +2 -2
- package/dist/esm/eds-timeline.entry.js +5 -1
- package/dist/esm/eds-toast-manager.entry.js +1 -1
- package/dist/esm/eds-tooltip.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-8a71b9a7.js +14 -22
- 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-wrong-usage.entry.js +1 -1
- 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/hydrate/index.js +551 -748
- package/dist/hydrate/index.mjs +551 -748
- package/dist/stencil.config.js +2 -7
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +4 -2
- package/dist/types/components/eds-accordion/eds-accordion.stories.d.ts +1 -1
- package/dist/types/components/eds-alert/eds-alert.d.ts +5 -0
- package/dist/types/components/eds-alert/eds-alert.stories.d.ts +7 -0
- package/dist/types/components/eds-avatar/eds-avatar.d.ts +0 -2
- package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -9
- package/dist/types/components/eds-breadcrump/eds-breadcrumb.stories.d.ts +8 -3
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +3 -0
- package/dist/types/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.d.ts +1 -1
- package/dist/types/components/eds-input-elements/eds-input-label/eds-input-label.d.ts +13 -0
- package/dist/types/components/eds-input-elements/eds-input-range/eds-input-range.d.ts +21 -0
- package/dist/types/components/eds-input-elements/eds-input-search/eds-input-search.d.ts +39 -0
- package/dist/types/components/eds-pagination/eds-pagination.stories.d.ts +0 -8
- package/dist/types/components/eds-steps/eds-steps.d.ts +17 -0
- package/dist/types/components/eds-table/eds-table.d.ts +5 -1
- package/dist/types/components.d.ts +234 -301
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +1 -6
- package/dist/types/shared-ui/eds-footer/eds-footer.d.ts +4 -5
- package/dist/types/shared-ui/eds-footer/eds-footer.stories.d.ts +4 -9
- package/dist/types/{components/eds-form-v2/eds-form-v2.d.ts → shared-ui/eds-form/eds-form.d.ts} +1 -1
- package/dist/types/shared-ui/eds-matomo-notice/eds-matomo-notice.d.ts +11 -0
- package/dist/types/shared-ui/eds-steps-v2/eds-steps-v2.d.ts +57 -0
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +13 -11
- package/package.json +3 -3
- package/dist/cjs/eds-accordion_22.cjs.entry.js +0 -1959
- package/dist/cjs/eds-dropdown.cjs.entry.js +0 -125
- package/dist/cjs/eds-steps.cjs.entry.js +0 -55
- package/dist/cjs/eds-user.cjs.entry.js +0 -29
- package/dist/cjs/eds-vertical-stepper.cjs.entry.js +0 -45
- package/dist/cjs/formUtils-4315a99c.js +0 -228
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.js +0 -31
- package/dist/collection/components/eds-form/eds-form.css +0 -7153
- package/dist/collection/components/eds-form/eds-form.js +0 -609
- package/dist/collection/components/eds-form/eds-form.stories.js +0 -86
- package/dist/collection/components/eds-form-v2/eds-form-v2.css +0 -7153
- package/dist/collection/components/eds-steps/eds-vertical-stepper.css +0 -78
- package/dist/collection/components/eds-steps/eds-vertical-stepper.js +0 -72
- package/dist/components/eds-form-v2.js +0 -317
- package/dist/components/eds-vertical-stepper.d.ts +0 -11
- package/dist/components/eds-vertical-stepper.js +0 -86
- package/dist/components/formUtils.js +0 -223
- package/dist/components/p-033480b2.entry.js +0 -1
- package/dist/components/p-117d180f.entry.js +0 -1
- package/dist/components/p-20e9ae7f.entry.js +0 -1
- package/dist/components/p-2b31ca60.entry.js +0 -1
- package/dist/components/p-3368cfd5.entry.js +0 -1
- package/dist/components/p-33c5b937.entry.js +0 -1
- package/dist/components/p-3af94671.entry.js +0 -1
- package/dist/components/p-43b3579a.entry.js +0 -1
- package/dist/components/p-467fe746.entry.js +0 -1
- package/dist/components/p-46a6042d.entry.js +0 -1
- package/dist/components/p-4a860d5b.entry.js +0 -1
- package/dist/components/p-4ac27fe7.entry.js +0 -1
- package/dist/components/p-4b2e6f03.entry.js +0 -1
- package/dist/components/p-552b6a50.entry.js +0 -1
- package/dist/components/p-56b4e0fe.entry.js +0 -1
- package/dist/components/p-5aff1ea0.entry.js +0 -1
- package/dist/components/p-5c12a0df.entry.js +0 -1
- package/dist/components/p-60e7e745.entry.js +0 -1
- package/dist/components/p-6404e157.entry.js +0 -1
- package/dist/components/p-6fd0c3b3.entry.js +0 -1
- package/dist/components/p-77cc7c02.entry.js +0 -1
- package/dist/components/p-79c14cf1.entry.js +0 -1
- package/dist/components/p-7dd81017.entry.js +0 -1
- package/dist/components/p-7e0dd5d8.entry.js +0 -1
- package/dist/components/p-80dba155.js +0 -1
- package/dist/components/p-8154d013.entry.js +0 -1
- package/dist/components/p-86eed1b7.entry.js +0 -1
- package/dist/components/p-8e548691.entry.js +0 -1
- package/dist/components/p-90503a64.entry.js +0 -1
- package/dist/components/p-90f85604.entry.js +0 -1
- package/dist/components/p-94698510.entry.js +0 -1
- package/dist/components/p-950ecb1c.entry.js +0 -1
- package/dist/components/p-9b9fba38.entry.js +0 -1
- package/dist/components/p-9dc879c9.entry.js +0 -1
- package/dist/components/p-9ebc84d6.entry.js +0 -1
- package/dist/components/p-a56f0579.entry.js +0 -1
- package/dist/components/p-a6cd418e.entry.js +0 -1
- package/dist/components/p-a8dd1953.entry.js +0 -1
- package/dist/components/p-ab292dd5.entry.js +0 -1
- package/dist/components/p-c12d9350.entry.js +0 -1
- package/dist/components/p-c3dda942.entry.js +0 -1
- package/dist/components/p-c6b32753.entry.js +0 -1
- package/dist/components/p-dbcf1f0e.entry.js +0 -1
- package/dist/components/p-dcc08064.entry.js +0 -1
- package/dist/components/p-e9a533e0.entry.js +0 -1
- package/dist/components/p-eac63c82.entry.js +0 -1
- package/dist/components/p-f5959676.entry.js +0 -1
- package/dist/components/p-fc619588.entry.js +0 -1
- package/dist/components/p-fcc32210.entry.js +0 -1
- package/dist/esm/eds-accordion_22.entry.js +0 -1934
- package/dist/esm/eds-dropdown.entry.js +0 -121
- package/dist/esm/eds-user.entry.js +0 -25
- package/dist/esm/eds-vertical-stepper.entry.js +0 -41
- package/dist/esm/formUtils-ac68474d.js +0 -223
- package/dist/types/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.stories.d.ts +0 -32
- package/dist/types/components/eds-form/eds-form.d.ts +0 -148
- package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -42
- package/dist/types/components/eds-steps/eds-vertical-stepper.d.ts +0 -22
- /package/dist/types/{components/eds-form-v2/eds-form-v2.stories.d.ts → shared-ui/eds-form/eds-form.stories.d.ts} +0 -0
- /package/dist/types/{eds-docs-ui → shared-ui}/eds-frame/eds-frame.d.ts +0 -0
- /package/dist/types/{eds-docs-ui → shared-ui}/eds-frame/eds-frame.stories.d.ts +0 -0
|
@@ -2039,7 +2039,7 @@ const EdsLogin = class {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
2041
|
render() {
|
|
2042
|
-
return (index.h("div", { key: '
|
|
2042
|
+
return (index.h("div", { key: 'dace7b16af2f945e4981c9ef139f4c2ae94e130c', class: "block" }, !this.authenticated && (index.h("eds-button", { key: 'a8d0bd545e8ae4a159b5977d50d05ae27dec7df3', label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }))));
|
|
2043
2043
|
}
|
|
2044
2044
|
};
|
|
2045
2045
|
|
|
@@ -20,7 +20,7 @@ const EdsLogoVariations = class {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return index.h("div", { key: '
|
|
23
|
+
return index.h("div", { key: '31bd93b3412b859adc59f6a4fe67018bf9c13336', class: "container" }, this.renderContent());
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -98,9 +98,9 @@ const EdsModal = class {
|
|
|
98
98
|
render() {
|
|
99
99
|
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
100
100
|
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
101
|
-
return (index.h("div", { key: '
|
|
101
|
+
return (index.h("div", { key: '456972d43bddeec93053c1518ca35dff028f0416', id: "eds-modal", class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (index.h("div", { key: 'f3b84d1086f70f7863691835fe8984a4ff091b8f', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
102
102
|
,
|
|
103
|
-
onClick: () => this.close() })), index.h("div", { key: '
|
|
103
|
+
onClick: () => this.close() })), index.h("div", { key: '5038d3564881f4580e63a1afd883affa0aee8750', class: `container max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, index.h("div", { key: '4ce4d6f11afc552579a35f23901bc79e2ae19274', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, index.h("span", { key: 'a9475d9cdcd4d3a1d68bce973f672621a30c53d4', id: titleId, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), index.h("eds-button", { key: 'c1e32fb266333856de6f0e63757fca02778330a9', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), index.h("div", { key: '58b1d9a3228516a1de31a81c6cd3a2696c65ce5f', class: "pt-8" }, index.h("slot", { key: '0d81e88fcaa138bd746cc894543f264e4a3afb2f' })))));
|
|
104
104
|
}
|
|
105
105
|
get el() { return index.getElement(this); }
|
|
106
106
|
};
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-2f63169d.js');
|
|
6
|
+
const analytics = require('./analytics-d8fb3fdd.js');
|
|
7
|
+
const sharedUtils = require('./sharedUtils-8e287250.js');
|
|
8
|
+
|
|
9
|
+
const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
|
|
10
|
+
const EdsPaginationStyle0 = edsPaginationCss;
|
|
11
|
+
|
|
12
|
+
const EdsPagination = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.currentPage = undefined;
|
|
16
|
+
this.lastPage = undefined;
|
|
17
|
+
this.perPage = 10;
|
|
18
|
+
this.total = 0;
|
|
19
|
+
this.url = '';
|
|
20
|
+
this.mode = 'default';
|
|
21
|
+
this.prevLabel = 'Prev';
|
|
22
|
+
this.nextLabel = 'Next';
|
|
23
|
+
this.prevUrl = '';
|
|
24
|
+
this.nextUrl = '';
|
|
25
|
+
this.links = [];
|
|
26
|
+
}
|
|
27
|
+
/** Lifecycle hook to generate pagination links on component load */
|
|
28
|
+
componentWillLoad() {
|
|
29
|
+
if (this.mode === 'default') {
|
|
30
|
+
this.generateLinks();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
componentDidLoad() {
|
|
34
|
+
// Emit context for each eds-link element after the component is fully loaded
|
|
35
|
+
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
36
|
+
links.forEach((lnk) => {
|
|
37
|
+
this.emitContext(lnk);
|
|
38
|
+
});
|
|
39
|
+
/*if (links.length > 0) {
|
|
40
|
+
// Emit context for the first link
|
|
41
|
+
this.emitContext(links[0]);
|
|
42
|
+
|
|
43
|
+
// Emit context for the last link, if it's different from the first
|
|
44
|
+
if (links.length > 1) {
|
|
45
|
+
this.emitContext(links[links.length - 1]);
|
|
46
|
+
}
|
|
47
|
+
}*/
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
51
|
+
* This event provides context information about the breadcrumb component.
|
|
52
|
+
*
|
|
53
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
54
|
+
*/
|
|
55
|
+
emitContext(linkElement) {
|
|
56
|
+
const event = new CustomEvent('parentContext', {
|
|
57
|
+
detail: {
|
|
58
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
59
|
+
identifier: null
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
linkElement.dispatchEvent(event);
|
|
63
|
+
}
|
|
64
|
+
onPageOrLastPageChange() {
|
|
65
|
+
if (this.mode === 'default') {
|
|
66
|
+
this.generateLinks();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Checks if the current page is the first page
|
|
71
|
+
* @returns {boolean} - true if current page is the first page
|
|
72
|
+
*/
|
|
73
|
+
isFirstPage() {
|
|
74
|
+
return this.currentPage === 1;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Checks if the current page is the last page
|
|
78
|
+
* @returns {boolean} - true if current page is the last page
|
|
79
|
+
*/
|
|
80
|
+
isLastPage() {
|
|
81
|
+
return this.currentPage === this.lastPage;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Generates a pagination link object
|
|
85
|
+
* @param {number} page - Page number for the link
|
|
86
|
+
* @returns {Link} - Link object with page details
|
|
87
|
+
*/
|
|
88
|
+
generateLink(page) {
|
|
89
|
+
const urlHasQuery = this.url.includes('?');
|
|
90
|
+
return {
|
|
91
|
+
ariaLabel: `Page ${page}`,
|
|
92
|
+
url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
|
|
93
|
+
label: page.toString(),
|
|
94
|
+
current: this.currentPage === page,
|
|
95
|
+
disabled: false
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/** Generates pagination links based on the last page and current page */
|
|
99
|
+
generateLinks() {
|
|
100
|
+
if (this.lastPage && this.lastPage > 5) {
|
|
101
|
+
this.links = this.getPaginationGenerator(this.currentPage || 1, this.lastPage).map((page) => typeof page === 'number' ? this.generateLink(page) : page);
|
|
102
|
+
}
|
|
103
|
+
else if (this.lastPage) {
|
|
104
|
+
this.links = Array.from({ length: this.lastPage }).map((_, i) => this.generateLink(i + 1));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Creates a pagination range based on delta, current, and total pages
|
|
109
|
+
* @param {number} current - Current page number
|
|
110
|
+
* @param {number} total - Total number of pages
|
|
111
|
+
* @param {number} delta - Range of pages to display around the current page
|
|
112
|
+
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
113
|
+
*/
|
|
114
|
+
getPaginationGenerator(current, total) {
|
|
115
|
+
const delta = 1; // Show one page before and one after the current page
|
|
116
|
+
const range = [];
|
|
117
|
+
if (total <= 5) {
|
|
118
|
+
// If total pages are 5 or less, show all pages
|
|
119
|
+
for (let i = 1; i <= total; i++) {
|
|
120
|
+
range.push(i);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
// Always show the first page
|
|
125
|
+
range.push(1);
|
|
126
|
+
// Add ellipsis if there’s a gap between the first page and the current range start
|
|
127
|
+
if (current - delta > 2) {
|
|
128
|
+
range.push('...');
|
|
129
|
+
}
|
|
130
|
+
// Determine range for pages around the current page
|
|
131
|
+
for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
|
|
132
|
+
range.push(i);
|
|
133
|
+
}
|
|
134
|
+
// Add ellipsis if there’s a gap between the current range end and the last page
|
|
135
|
+
if (current + delta < total - 1) {
|
|
136
|
+
range.push('...');
|
|
137
|
+
}
|
|
138
|
+
// Always show the last page
|
|
139
|
+
range.push(total);
|
|
140
|
+
}
|
|
141
|
+
return range;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Formats the current page results information for display
|
|
145
|
+
* @returns {string} - Formatted page result information
|
|
146
|
+
*/
|
|
147
|
+
pageResults() {
|
|
148
|
+
if (this.total > 0) {
|
|
149
|
+
return this.total > this.perPage
|
|
150
|
+
? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}`
|
|
151
|
+
: `${this.total}`;
|
|
152
|
+
}
|
|
153
|
+
return '';
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Handles a page click event, updating the current page and dispatching an event
|
|
157
|
+
* @param {MouseEvent} event - Click event
|
|
158
|
+
* @param {number} newPage - New page number
|
|
159
|
+
*/
|
|
160
|
+
handlePageClick(event, newPage) {
|
|
161
|
+
if (this.mode === 'navigator') {
|
|
162
|
+
return; // No page clicking logic for navigator mode
|
|
163
|
+
}
|
|
164
|
+
event.preventDefault(); // Prevent default link navigation
|
|
165
|
+
if (newPage !== this.currentPage) {
|
|
166
|
+
this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
|
|
167
|
+
const pageChangeEvent = new CustomEvent('page', {
|
|
168
|
+
detail: newPage,
|
|
169
|
+
bubbles: true,
|
|
170
|
+
composed: true
|
|
171
|
+
});
|
|
172
|
+
this.hostEl.dispatchEvent(pageChangeEvent);
|
|
173
|
+
this.currentPage = newPage;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
render() {
|
|
177
|
+
return (index.h("div", { key: '4ebae5738982b21456e2852babeef2f5e2b4b1e0' }, this.total > 0 && this.mode === 'default' && (index.h("p", { key: '9c18413928a471adb2b6964c78ea3339f251c81b', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, index.h("span", { key: '3d9d08eaaf7944ef1a6aba9b0912b7d9ebb58e28', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (index.h("nav", { "aria-label": "Pagination" }, index.h("ul", { class: "flex items-center justify-center gap-x-8" }, index.h("li", { class: "mr-auto" }, index.h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
178
|
+
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
179
|
+
: this.isFirstPage()
|
|
180
|
+
? '#'
|
|
181
|
+
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
|
|
182
|
+
? !this.prevUrl // Disable if prevUrl is not provided
|
|
183
|
+
: this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12", onClick: (event) => {
|
|
184
|
+
if (this.mode === 'default') {
|
|
185
|
+
if (this.isFirstPage()) {
|
|
186
|
+
event.preventDefault(); // Prevent click if disabled
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
} })), this.mode === 'default' &&
|
|
193
|
+
this.links.map((link, index$1) => (index.h("li", { key: index$1, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (index.h("span", { class: "flex items-center justify-center" }, link)) : (index.h("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), index.h("li", { class: "ml-auto" }, index.h("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
|
|
194
|
+
? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
|
|
195
|
+
: this.isLastPage()
|
|
196
|
+
? '#'
|
|
197
|
+
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
|
|
198
|
+
? !this.nextUrl // Disable if nextUrl is not provided
|
|
199
|
+
: this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (event) => {
|
|
200
|
+
if (this.mode === 'default') {
|
|
201
|
+
if (this.isLastPage()) {
|
|
202
|
+
event.preventDefault(); // Prevent click if disabled
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
} }))))) : null));
|
|
209
|
+
}
|
|
210
|
+
get hostEl() { return index.getElement(this); }
|
|
211
|
+
static get watchers() { return {
|
|
212
|
+
"currentPage": ["onPageOrLastPageChange"],
|
|
213
|
+
"lastPage": ["onPageOrLastPageChange"]
|
|
214
|
+
}; }
|
|
215
|
+
};
|
|
216
|
+
EdsPagination.style = EdsPaginationStyle0;
|
|
217
|
+
|
|
218
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
219
|
+
const EdsTableStyle0 = edsTableCss;
|
|
220
|
+
|
|
221
|
+
const EdsTable = class {
|
|
222
|
+
constructor(hostRef) {
|
|
223
|
+
index.registerInstance(this, hostRef);
|
|
224
|
+
this.handleResize = () => {
|
|
225
|
+
this.updateContainerWidth();
|
|
226
|
+
};
|
|
227
|
+
this.data = null;
|
|
228
|
+
this.endpoint = null;
|
|
229
|
+
this.config = {};
|
|
230
|
+
this.rowsPerPage = 10;
|
|
231
|
+
this.paginationEnabled = true;
|
|
232
|
+
this.searchEnabled = false;
|
|
233
|
+
this.hostWidth = undefined;
|
|
234
|
+
this.columnSize = 'default';
|
|
235
|
+
this.tbData = [];
|
|
236
|
+
this.columns = [];
|
|
237
|
+
this.currentPage = 1;
|
|
238
|
+
this.parsedConfig = {};
|
|
239
|
+
this.totalRows = 0;
|
|
240
|
+
this.searchQuery = '';
|
|
241
|
+
this.containerWidth = 0;
|
|
242
|
+
}
|
|
243
|
+
handleDataChange() {
|
|
244
|
+
this.parseData();
|
|
245
|
+
}
|
|
246
|
+
handleConfigChange() {
|
|
247
|
+
this.parseConfig();
|
|
248
|
+
}
|
|
249
|
+
componentWillLoad() {
|
|
250
|
+
this.parseConfig();
|
|
251
|
+
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
252
|
+
}
|
|
253
|
+
componentDidLoad() {
|
|
254
|
+
this.updateContainerWidth();
|
|
255
|
+
window.addEventListener('resize', this.handleResize);
|
|
256
|
+
this.setupPaginationListener();
|
|
257
|
+
}
|
|
258
|
+
componentDidUpdate() {
|
|
259
|
+
this.setupPaginationListener();
|
|
260
|
+
}
|
|
261
|
+
disconnectedCallback() {
|
|
262
|
+
window.removeEventListener('resize', this.handleResize);
|
|
263
|
+
}
|
|
264
|
+
updateContainerWidth() {
|
|
265
|
+
// Use hostWidth prop if provided; otherwise, measure parent element
|
|
266
|
+
if (this.hostWidth && this.hostWidth.trim() !== '') {
|
|
267
|
+
this.containerWidth = Number(this.hostWidth);
|
|
268
|
+
}
|
|
269
|
+
else if (this.hostEl.parentElement instanceof HTMLElement) {
|
|
270
|
+
this.containerWidth = this.hostEl.parentElement.getBoundingClientRect().width;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
this.containerWidth = 400;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
parseData() {
|
|
277
|
+
try {
|
|
278
|
+
this.tbData = sharedUtils.parseData(this.data);
|
|
279
|
+
//this.tbData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
280
|
+
this.totalRows = this.tbData.length;
|
|
281
|
+
this.updateColumns();
|
|
282
|
+
this.currentPage = 1;
|
|
283
|
+
}
|
|
284
|
+
catch (error) {
|
|
285
|
+
// eslint-disable-next-line
|
|
286
|
+
console.error('Failed to parse data:', error);
|
|
287
|
+
this.tbData = [];
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
parseConfig() {
|
|
291
|
+
try {
|
|
292
|
+
//this.parsedConfig = parseData(this.config);
|
|
293
|
+
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
294
|
+
}
|
|
295
|
+
catch (error) {
|
|
296
|
+
// eslint-disable-next-line
|
|
297
|
+
console.error('Failed to parse config:', error);
|
|
298
|
+
this.parsedConfig = {};
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
async fetchData() {
|
|
302
|
+
try {
|
|
303
|
+
const response = await fetch(this.endpoint);
|
|
304
|
+
const data = await response.json();
|
|
305
|
+
this.data = data;
|
|
306
|
+
}
|
|
307
|
+
catch (error) {
|
|
308
|
+
// eslint-disable-next-line
|
|
309
|
+
console.error('Failed to fetch data:', error);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
setupPaginationListener() {
|
|
313
|
+
if (!this.shouldEnablePagination()) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
317
|
+
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
318
|
+
paginationEl.addEventListener('page', (event) => this.handlePageChange(event.detail));
|
|
319
|
+
paginationEl.setAttribute('listener-attached', 'true');
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
getFilteredRows() {
|
|
323
|
+
return this.tbData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
324
|
+
}
|
|
325
|
+
getPaginatedRows() {
|
|
326
|
+
const filteredRows = this.getFilteredRows();
|
|
327
|
+
this.totalRows = filteredRows.length;
|
|
328
|
+
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
329
|
+
return filteredRows.slice(start, start + this.rowsPerPage);
|
|
330
|
+
}
|
|
331
|
+
handlePageChange(newPage) {
|
|
332
|
+
this.currentPage = newPage;
|
|
333
|
+
analytics.sendAnalytics({
|
|
334
|
+
category: 'ui-component',
|
|
335
|
+
parentContext: null,
|
|
336
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
337
|
+
name: `${newPage}` || '',
|
|
338
|
+
action: 'page'
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
handleSearch(event) {
|
|
342
|
+
this.searchQuery = event.target.value;
|
|
343
|
+
this.currentPage = 1;
|
|
344
|
+
/*sendAnalytics({
|
|
345
|
+
category: 'ui-component',
|
|
346
|
+
parentContext: null,
|
|
347
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
348
|
+
name: `${this.searchQuery}` || '',
|
|
349
|
+
action: 'page'
|
|
350
|
+
});*/
|
|
351
|
+
}
|
|
352
|
+
renderCell(value, column) {
|
|
353
|
+
var _a;
|
|
354
|
+
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
355
|
+
return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (index.h("div", { innerHTML: value })) : format === 'bold' ? (index.h("strong", null, value)) : format === 'code' ? (index.h("code", null, value)) : (value);
|
|
356
|
+
}
|
|
357
|
+
shouldEnablePagination() {
|
|
358
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
359
|
+
}
|
|
360
|
+
updateColumns() {
|
|
361
|
+
this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
|
|
362
|
+
}
|
|
363
|
+
getVisibleColumnsCount() {
|
|
364
|
+
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
365
|
+
}
|
|
366
|
+
divisionFactor() {
|
|
367
|
+
let divisionFactor = 1;
|
|
368
|
+
if (this.columnSize === 'medium') {
|
|
369
|
+
divisionFactor = 2;
|
|
370
|
+
}
|
|
371
|
+
else if (this.columnSize === 'large') {
|
|
372
|
+
divisionFactor = 4;
|
|
373
|
+
}
|
|
374
|
+
return divisionFactor;
|
|
375
|
+
}
|
|
376
|
+
render() {
|
|
377
|
+
// Use containerWidth state that is updated on resize.
|
|
378
|
+
const currentContainerWidth = this.hostWidth && this.hostWidth.trim() !== '' ? Number(this.hostWidth) : this.containerWidth || 400;
|
|
379
|
+
// Calculate the number of visible columns and the column width.
|
|
380
|
+
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
381
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((currentContainerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
382
|
+
const paginatedRows = this.getPaginatedRows();
|
|
383
|
+
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
384
|
+
return (index.h("div", { key: 'a9df6351c49bb17abebfaf3640c71a7c7d15cb61' }, this.searchEnabled && (index.h("div", { key: 'feb5708050593e791835456e6d2244332cee6062' }, index.h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
385
|
+
// @ts-ignore
|
|
386
|
+
onInput: (event) => this.handleSearch(event) }))), index.h("div", { key: '88dcb3d9e984a77f54735fa352c811dbf4745838', class: "mt-20" }, index.h("table", { key: '32ff7b76066a96bce51f885e8339c258fdecd0c6', class: "block overflow-x-auto mt-6 p-0" }, index.h("thead", { key: '9f4bbf0725c618c8c2f8a3b90d6d2f2a7f9c0186' }, index.h("tr", { key: 'd8f24a31aad07b667ae9cc06257ddddf529f8e31', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
387
|
+
var _a;
|
|
388
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (index.h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 4}px` } }, column));
|
|
389
|
+
}))), index.h("tbody", { key: '932e2f9cbd51d1115eef42f8b1acb7bb58ccdab7' }, paginatedRows.map((row) => (index.h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
390
|
+
var _a;
|
|
391
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (index.h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 4}px` } }, this.renderCell(row[column], column)));
|
|
392
|
+
}))))))), this.shouldEnablePagination() && (index.h("div", { key: '6368d38cec298dc8efa1a790d6b0cb93357f0ae5', class: "mt-20" }, index.h("eds-pagination", { key: '2183eb4a6861a0e42538706bd0c9fe10a1e5d8bd', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
393
|
+
}
|
|
394
|
+
get hostEl() { return index.getElement(this); }
|
|
395
|
+
static get watchers() { return {
|
|
396
|
+
"data": ["handleDataChange", "parseData"],
|
|
397
|
+
"config": ["handleConfigChange"]
|
|
398
|
+
}; }
|
|
399
|
+
};
|
|
400
|
+
EdsTable.style = EdsTableStyle0;
|
|
401
|
+
|
|
402
|
+
exports.eds_pagination = EdsPagination;
|
|
403
|
+
exports.eds_table = EdsTable;
|
|
@@ -21,7 +21,7 @@ const EdsProgressBar = class {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const progressValue = this.value;
|
|
24
|
-
return (index.h("div", { key: '
|
|
24
|
+
return (index.h("div", { key: '259c247cbf6269d1118b652c70cc45e6ea9192b5', role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": progressValue, "aria-valuetext": `${progressValue}%`, class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, index.h("div", { key: 'e6141a6aa1eb8d1f9562028d95f6dfffc2777b11', class: `inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02`, style: { width: `${progressValue}%` } }, progressValue, "%")));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
EdsProgressBar.style = EdsProgressBarStyle0;
|
|
@@ -49,7 +49,7 @@ const EdsRating = class {
|
|
|
49
49
|
this.rating.emit(rating);
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (index.h("div", { key: '
|
|
52
|
+
return (index.h("div", { key: '34344f12d4ca8a80fe7c96537d417c199421e139', role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (_, index$1) => {
|
|
53
53
|
const starRating = index$1 + 1;
|
|
54
54
|
const isSelected = starRating <= this.selectedRating;
|
|
55
55
|
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
@@ -16,7 +16,7 @@ const EdsSectionCore = class {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
19
|
-
return (index.h(TagType, { key: '
|
|
19
|
+
return (index.h(TagType, { key: '81d5d6f6010c56bb217b32fa520fdaf96e1c7adc' }, index.h("eds-section-heading", { key: 'c47dda41c2f553ef87f432109ead4bd0debcd99c', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), index.h("slot", { key: '9276798e2c581440c46ff9914809e87203a86b1b' })));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
EdsSectionCore.style = EdsSectionCoreStyle0;
|
|
@@ -46,12 +46,12 @@ const EdsSectionHeading = class {
|
|
|
46
46
|
render() {
|
|
47
47
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
48
48
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
49
|
-
return (index.h(TagType, { key: '
|
|
50
|
-
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8
|
|
49
|
+
return (index.h(TagType, { key: '6741f5bbede7d44109c5e60f92290d4b2eda4d42', class: {
|
|
50
|
+
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8': true,
|
|
51
51
|
container: this.withContainer,
|
|
52
52
|
'pt-48': this.spacingLarge,
|
|
53
53
|
'pt-28': !this.spacingLarge
|
|
54
|
-
} }, index.h(HeadingTag, { key: '
|
|
54
|
+
} }, index.h(HeadingTag, { key: 'cc65df919db1dc1d5725116ce1ab473319185901', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -46,7 +46,7 @@ const EdsSpinner = class {
|
|
|
46
46
|
alignItems: 'center',
|
|
47
47
|
justifyContent: 'center'
|
|
48
48
|
};
|
|
49
|
-
return (index.h(index.Host, { key: '
|
|
49
|
+
return (index.h(index.Host, { key: '49a825afb039ee46b26609eea60109e0a060c104' }, index.h("div", { key: '6445a4e7f1e7c553bdee660c42f1db0e011443f2', class: "spinner-overlay", style: overlayStyle }, index.h("span", { key: '07feeb7736e6d306e2b7baf5d253b2ce96bb2c9e', class: "spinner", style: spinnerStyle }))));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
EdsSpinner.style = EdsSpinnerStyle0;
|
|
@@ -299,6 +299,9 @@ const svgs = /*#__PURE__*/Object.freeze({
|
|
|
299
299
|
star: star.star
|
|
300
300
|
});
|
|
301
301
|
|
|
302
|
+
const edsSvgRepositoryCss = ":host,.full-width{display:block;width:100%}";
|
|
303
|
+
const EdsSvgRepositoryStyle0 = edsSvgRepositoryCss;
|
|
304
|
+
|
|
302
305
|
const EdsSvgRepository = class {
|
|
303
306
|
constructor(hostRef) {
|
|
304
307
|
index.registerInstance(this, hostRef);
|
|
@@ -324,9 +327,10 @@ const EdsSvgRepository = class {
|
|
|
324
327
|
icon: { format: 'svg' },
|
|
325
328
|
name: { format: 'bold' }
|
|
326
329
|
};
|
|
327
|
-
return (index.h("eds-table", { key: '
|
|
330
|
+
return (index.h("div", { key: '8b10e6b478c9a2354f4cf418dacb33d5629585ac', class: "full-width" }, index.h("eds-table", { key: '04ea0a3bc8d72f42225290210aa0bda441e14b95', "table-data": JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true })));
|
|
328
331
|
}
|
|
329
332
|
get hostEl() { return index.getElement(this); }
|
|
330
333
|
};
|
|
334
|
+
EdsSvgRepository.style = EdsSvgRepositoryStyle0;
|
|
331
335
|
|
|
332
336
|
exports.eds_svg_repository = EdsSvgRepository;
|
|
@@ -26,11 +26,11 @@ const EdsSwitch = class {
|
|
|
26
26
|
render() {
|
|
27
27
|
// Compute an accessible name based on state.
|
|
28
28
|
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
29
|
-
return (index.h("div", { key: '
|
|
29
|
+
return (index.h("div", { key: 'd9e216919a58d90017b6fec249e7fc811c4fb681', class: "switch-container" }, this.labelOff && index.h("span", { key: '161bca12a4c6eebf4240ea0bdd07fd1acba35228', class: "switch-label switch-label--off" }, this.labelOff), index.h("button", { key: '855477e89765d01d5a52f3d9db279a1e5c56ea9d', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
|
|
30
30
|
switch: true,
|
|
31
31
|
'switch--checked': this.checked,
|
|
32
32
|
'switch--disabled': this.disabled
|
|
33
|
-
}, onClick: this.toggleSwitch, disabled: this.disabled }, index.h("span", { key: '
|
|
33
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, index.h("span", { key: '4486e5f54ee75b95fd174291e1f5d67e181f3243', class: "switch-handle" })), this.labelOn && index.h("span", { key: '702e5385f6e941dcb67eecdd766725c4b04b8b7c', class: "switch-label switch-label--on" }, this.labelOn)));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
EdsSwitch.style = EdsSwitchStyle0;
|