@ebrains/components 0.4.0-alpha.0 → 0.5.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/dist/cjs/analytics-223ea8e5.js +51 -0
- package/dist/cjs/color-c00146a8.js +134 -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.cjs.entry.js +84 -0
- package/dist/cjs/eds-alert_17.cjs.entry.js +1392 -0
- package/dist/cjs/eds-avatar_4.cjs.entry.js +187 -0
- package/dist/cjs/eds-card-generic.cjs.entry.js +104 -0
- package/dist/cjs/eds-card-project.cjs.entry.js +4 -3
- package/dist/cjs/eds-card-section.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +3 -4
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +2 -2
- package/dist/cjs/eds-components-section.cjs.entry.js +7 -3
- 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-dropdown_2.cjs.entry.js +158 -0
- package/dist/cjs/eds-form.cjs.entry.js +361 -0
- package/dist/cjs/eds-frame.cjs.entry.js +91 -0
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-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-success.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 +324 -0
- package/dist/cjs/eds-login.cjs.entry.js +60 -41
- package/dist/cjs/eds-logo-variations.cjs.entry.js +1 -1
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +2 -3
- package/dist/cjs/eds-modal.cjs.entry.js +97 -0
- package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
- package/dist/cjs/eds-pagination_2.cjs.entry.js +9 -10
- package/dist/cjs/eds-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/eds-section-core_2.cjs.entry.js +3 -3
- package/dist/cjs/eds-svg-repository.cjs.entry.js +1 -1
- package/dist/cjs/eds-tab.cjs.entry.js +1 -1
- package/dist/cjs/eds-tabs-content.cjs.entry.js +4 -4
- package/dist/cjs/eds-tabs.cjs.entry.js +3 -3
- package/dist/cjs/eds-timeline.cjs.entry.js +1 -1
- package/dist/cjs/eds-tooltip.cjs.entry.js +3 -4
- package/dist/cjs/eds-trl.cjs.entry.js +1 -1
- package/dist/cjs/eds-user.cjs.entry.js +99 -0
- package/dist/cjs/eds-vertical-stepper.cjs.entry.js +45 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +42 -6
- package/dist/cjs/{keycloak-5aaa21af.js → keycloak-93fc0315.js} +225 -170
- 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 +4 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +3 -3
- package/dist/collection/components/eds-alert/eds-alert.js +8 -5
- package/dist/collection/components/eds-avatar/eds-avatar.js +8 -6
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +23 -29
- package/dist/collection/components/eds-button/eds-button.js +20 -25
- 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-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +2 -2
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +3 -2
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +2 -2
- package/dist/collection/components/eds-code-block/eds-code-block.js +3 -3
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +3 -3
- package/dist/collection/components/eds-form/eds-form.js +32 -16
- package/dist/collection/components/eds-frame/eds-frame.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-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-success/eds-icon-success.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 +13 -7
- 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 +2 -2
- 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 +11 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +6 -3
- package/dist/collection/components/eds-logo/eds-logo.js +21 -2
- package/dist/collection/components/eds-modal/eds-modal.js +19 -24
- package/dist/collection/components/eds-navigator/eds-navigator.js +1 -1
- 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.css +48 -0
- package/dist/collection/components/eds-rating/eds-rating.js +10 -8
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +2 -2
- package/dist/collection/components/eds-steps/eds-steps.css +71 -0
- package/dist/collection/components/eds-steps/eds-steps.js +132 -0
- package/dist/collection/components/eds-steps/eds-steps.stories.js +35 -0
- package/dist/collection/components/eds-steps/eds-vertical-stepper.css +78 -0
- package/dist/collection/components/eds-steps/eds-vertical-stepper.js +72 -0
- package/dist/collection/components/eds-switch/eds-switch.css +59 -0
- package/dist/collection/components/eds-switch/eds-switch.js +131 -0
- package/dist/collection/components/eds-switch/eds-switch.stories.js +38 -0
- package/dist/collection/components/eds-tab/eds-tab.js +1 -1
- package/dist/collection/components/eds-table/eds-table.js +8 -8
- package/dist/collection/components/eds-tag/eds-tag.js +22 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +1 -1
- package/dist/collection/components/eds-toast/eds-toast.js +1 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +2 -2
- 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.js +1 -1
- package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
- package/dist/collection/eds-docs-ui/functional/react.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.js +10 -4
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
- package/dist/collection/shared-ui/eds-header/eds-header.js +2 -75
- package/dist/collection/shared-ui/eds-login/eds-login.js +66 -58
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +1 -1
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +1 -1
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +2 -2
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +3 -3
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +27 -24
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -1
- package/dist/collection/utils/analytics.js +85 -0
- package/dist/collection/utils/color.js +129 -0
- package/dist/collection/utils/global.js +8 -0
- package/dist/collection/utils/keycloak.js +11 -5
- package/dist/components/analytics.js +6 -1
- package/dist/components/color.js +0 -164
- package/dist/components/components.css +51 -0
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +2 -3
- package/dist/components/eds-alert2.js +8 -5
- package/dist/components/eds-avatar2.js +3 -3
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +23 -29
- package/dist/components/eds-button2.js +16 -14
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +1 -2
- package/dist/components/eds-card-project.js +2 -2
- 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 -2
- package/dist/components/eds-card-wrapper.js +1 -1
- package/dist/components/eds-code-block2.js +2 -2
- package/dist/components/eds-components-section.js +7 -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 +2 -3
- package/dist/components/eds-footer2.js +1 -1
- package/dist/components/eds-form.js +32 -16
- package/dist/components/eds-frame.js +1 -1
- package/dist/components/eds-header.js +10 -48
- 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-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-success.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 +9 -4
- 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 +2 -2
- package/dist/components/eds-input-search2.js +1 -1
- package/dist/components/eds-input-select2.js +11 -2
- package/dist/components/eds-input2.js +2 -2
- package/dist/components/eds-link2.js +5 -3
- package/dist/components/eds-login.js +60 -41
- package/dist/components/eds-logo-variations.js +1 -1
- package/dist/components/eds-logo2.js +4 -3
- package/dist/components/eds-matomo-notice.js +0 -1
- package/dist/components/eds-modal.js +10 -24
- package/dist/components/eds-navigator.js +1 -1
- package/dist/components/eds-pagination2.js +1 -1
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating.js +23 -9
- 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-steps.d.ts +11 -0
- package/dist/components/eds-steps.js +106 -0
- package/dist/components/eds-svg-repository.js +1 -1
- package/dist/components/eds-switch.d.ts +11 -0
- package/dist/components/eds-switch.js +57 -0
- package/dist/components/eds-tab2.js +1 -1
- package/dist/components/eds-table2.js +6 -7
- package/dist/components/eds-tabs-content.js +2 -3
- package/dist/components/eds-tabs.js +1 -2
- package/dist/components/eds-tag2.js +5 -1
- package/dist/components/eds-timeline.js +1 -1
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-toast2.js +1 -1
- package/dist/components/eds-tooltip.js +1 -2
- package/dist/components/eds-trl.js +1 -1
- package/dist/components/eds-user-modal2.js +1 -1
- package/dist/components/eds-user.js +157 -1
- package/dist/components/eds-vertical-stepper.d.ts +11 -0
- package/dist/components/eds-vertical-stepper.js +86 -0
- package/dist/components/incorrect-use-of-colors.js +1 -1
- package/dist/components/keycloak.js +225 -170
- 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-030f67c1.entry.js +1 -0
- package/dist/components/p-06299762.entry.js +1 -0
- package/dist/components/p-0ab85eee.entry.js +1 -0
- package/dist/components/{p-b04eff31.entry.js → p-0bafc5ae.entry.js} +1 -1
- package/dist/components/p-0e0e1815.entry.js +1 -0
- package/dist/components/p-0e7bdd2c.entry.js +1 -0
- package/dist/components/p-1ed3fdb7.entry.js +1 -0
- package/dist/components/p-209fa119.entry.js +1 -0
- package/dist/components/p-2831a9d5.entry.js +1 -0
- package/dist/components/p-2c00bd76.entry.js +1 -0
- package/dist/components/p-38d70586.entry.js +1 -0
- package/dist/components/p-3babd772.entry.js +1 -0
- package/dist/components/p-4a12a131.entry.js +1 -0
- package/dist/components/p-505ddcda.entry.js +1 -0
- package/dist/components/{p-8ddc67a1.entry.js → p-59405ecf.entry.js} +1 -1
- package/dist/components/p-5980a142.entry.js +1 -0
- package/dist/components/p-599c7b97.entry.js +1 -0
- package/dist/components/{p-22762818.entry.js → p-65703520.entry.js} +1 -1
- package/dist/components/p-6af40c33.entry.js +1 -0
- package/dist/components/p-6df9db15.entry.js +1 -0
- package/dist/components/p-72b42d77.entry.js +1 -0
- package/dist/components/p-75795b05.entry.js +1 -0
- package/dist/components/{p-435a14c1.entry.js → p-759b2640.entry.js} +1 -1
- package/dist/components/p-80a185ba.entry.js +1 -0
- package/dist/components/p-81942665.entry.js +1 -0
- package/dist/components/p-86fbc239.entry.js +1 -0
- package/dist/components/p-89227919.js +1 -0
- package/dist/components/{p-c3b294a0.entry.js → p-89f600a3.entry.js} +1 -1
- package/dist/components/{p-ba6bafef.entry.js → p-8b583210.entry.js} +1 -1
- package/dist/components/p-8c4a0fc9.entry.js +1 -0
- package/dist/components/p-8d19a05b.entry.js +1 -0
- package/dist/components/p-8eab748d.js +1 -0
- package/dist/components/p-911d9b37.entry.js +1 -0
- package/dist/components/p-92e16cc9.entry.js +1 -0
- package/dist/components/p-96fe2267.entry.js +1 -0
- package/dist/components/p-9739def5.entry.js +1 -0
- package/dist/components/p-9826acae.entry.js +1 -0
- package/dist/components/{p-87830085.entry.js → p-9b441a1f.entry.js} +1 -1
- package/dist/components/{p-c72c8fb0.entry.js → p-a2621d66.entry.js} +1 -1
- package/dist/components/p-a535838c.entry.js +1 -0
- package/dist/components/p-a5b7d72d.entry.js +1 -0
- package/dist/components/p-a5d00633.entry.js +1 -0
- package/dist/components/p-a63bd0c9.entry.js +1 -0
- package/dist/components/{p-762c8c83.entry.js → p-a846dbca.entry.js} +1 -1
- package/dist/components/p-a927a455.entry.js +1 -0
- package/dist/components/p-aec9b8e1.entry.js +1 -0
- package/dist/components/{p-5398d652.entry.js → p-b1af5000.entry.js} +1 -1
- package/dist/components/{p-d571d530.entry.js → p-b1de9a6c.entry.js} +1 -1
- package/dist/components/{p-0910d733.entry.js → p-b3c1aef5.entry.js} +1 -1
- package/dist/components/p-b60ed774.entry.js +1 -0
- package/dist/components/p-b67aafe7.entry.js +1 -0
- package/dist/components/p-b79999d5.entry.js +1 -0
- package/dist/components/p-b80457ed.entry.js +1 -0
- package/dist/components/p-b860b4aa.entry.js +1 -0
- package/dist/components/p-c034c395.entry.js +1 -0
- package/dist/components/p-c5fa170d.entry.js +1 -0
- package/dist/components/p-d69ef196.entry.js +1 -0
- package/dist/components/p-de12396f.entry.js +1 -0
- package/dist/components/p-de2fbcfc.entry.js +1 -0
- package/dist/components/p-def72462.entry.js +1 -0
- package/dist/components/p-e2c250c5.entry.js +1 -0
- package/dist/components/p-eb0b93d5.js +1 -0
- package/dist/components/p-eeeb0d83.entry.js +1 -0
- package/dist/components/p-f08eac56.entry.js +1 -0
- package/dist/components/p-f1cd83da.entry.js +1 -0
- package/dist/components/{p-22e6d7d5.entry.js → p-f36f2aeb.entry.js} +1 -1
- package/dist/components/p-f5dafbc8.entry.js +1 -0
- package/dist/components/p-f7493f41.entry.js +1 -0
- package/dist/components/{p-dd6daa96.entry.js → p-fce25541.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/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/analytics-1cde8e4a.js +48 -0
- package/dist/esm/color-2554aad6.js +132 -0
- 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.entry.js +80 -0
- package/dist/esm/eds-alert_17.entry.js +1372 -0
- package/dist/esm/eds-avatar_4.entry.js +180 -0
- package/dist/esm/eds-card-generic.entry.js +100 -0
- package/dist/esm/eds-card-project.entry.js +3 -2
- package/dist/esm/eds-card-section.entry.js +1 -1
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +2 -3
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +2 -2
- package/dist/esm/eds-components-section.entry.js +7 -3
- package/dist/esm/eds-docs-palettes.entry.js +1 -1
- package/dist/esm/eds-docs-tokens.entry.js +1 -1
- package/dist/esm/eds-dropdown_2.entry.js +153 -0
- package/dist/esm/eds-form.entry.js +357 -0
- package/dist/esm/eds-frame.entry.js +87 -0
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-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-success.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 +314 -0
- package/dist/esm/eds-login.entry.js +60 -41
- package/dist/esm/eds-logo-variations.entry.js +1 -1
- package/dist/esm/eds-matomo-notice.entry.js +1 -2
- package/dist/esm/eds-modal.entry.js +93 -0
- package/dist/esm/eds-navigator.entry.js +1 -1
- package/dist/esm/eds-pagination_2.entry.js +8 -9
- package/dist/esm/eds-progress-bar.entry.js +1 -1
- package/dist/esm/eds-section-core_2.entry.js +3 -3
- package/dist/esm/eds-svg-repository.entry.js +1 -1
- package/dist/esm/eds-tab.entry.js +1 -1
- package/dist/esm/eds-tabs-content.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +2 -2
- package/dist/esm/eds-timeline.entry.js +1 -1
- package/dist/esm/eds-tooltip.entry.js +2 -3
- package/dist/esm/eds-trl.entry.js +1 -1
- package/dist/esm/eds-user.entry.js +95 -0
- package/dist/esm/eds-vertical-stepper.entry.js +41 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e96badea.js +42 -6
- package/dist/esm/{keycloak-13893af6.js → keycloak-d502ec16.js} +225 -170
- 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 +900 -804
- package/dist/hydrate/index.mjs +900 -804
- package/dist/types/components/eds-alert/eds-alert.d.ts +1 -1
- package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +9 -8
- package/dist/types/components/eds-button/eds-button.d.ts +2 -3
- package/dist/types/components/eds-form/eds-form.d.ts +0 -1
- package/dist/types/components/eds-img/eds-img.d.ts +3 -1
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +6 -0
- package/dist/types/components/eds-logo/eds-logo.d.ts +1 -0
- package/dist/types/components/eds-modal/eds-modal.d.ts +2 -7
- package/dist/types/components/eds-rating/eds-rating.d.ts +1 -2
- package/dist/types/components/eds-steps/eds-steps.d.ts +39 -0
- package/dist/types/components/eds-steps/eds-steps.stories.d.ts +34 -0
- package/dist/types/components/eds-steps/eds-vertical-stepper.d.ts +22 -0
- package/dist/types/components/eds-switch/eds-switch.d.ts +25 -0
- package/dist/types/components/eds-switch/eds-switch.stories.d.ts +32 -0
- package/dist/types/components/eds-tag/eds-tag.d.ts +5 -0
- package/dist/types/components.d.ts +163 -82
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +28 -1
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +0 -20
- package/dist/types/shared-ui/eds-login/eds-login.d.ts +21 -18
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +5 -5
- package/dist/types/utils/global.d.ts +1 -0
- package/dist/types/utils/keycloak.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/color-88793e49.js +0 -342
- package/dist/cjs/eds-accordion_33.cjs.entry.js +0 -2670
- package/dist/cjs/eds-rating.cjs.entry.js +0 -56
- package/dist/components/eds-user2.js +0 -156
- package/dist/components/p-005de86f.entry.js +0 -1
- package/dist/components/p-0c2e844e.entry.js +0 -1
- package/dist/components/p-145f13ad.entry.js +0 -1
- package/dist/components/p-16458a81.entry.js +0 -1
- package/dist/components/p-2851ff44.entry.js +0 -1
- package/dist/components/p-29648b47.entry.js +0 -1
- package/dist/components/p-297b2bc3.entry.js +0 -1
- package/dist/components/p-2dda1ec4.entry.js +0 -1
- package/dist/components/p-32cddd94.entry.js +0 -1
- package/dist/components/p-35ec730b.entry.js +0 -1
- package/dist/components/p-388b4966.entry.js +0 -1
- package/dist/components/p-4037ad48.entry.js +0 -1
- package/dist/components/p-490ba155.entry.js +0 -1
- package/dist/components/p-4932aab2.entry.js +0 -1
- package/dist/components/p-4a24c2ce.entry.js +0 -1
- package/dist/components/p-57c964c5.entry.js +0 -1
- package/dist/components/p-5a43503a.entry.js +0 -1
- package/dist/components/p-5aad9d3f.entry.js +0 -1
- package/dist/components/p-5fc68438.entry.js +0 -1
- package/dist/components/p-610db2b2.entry.js +0 -1
- package/dist/components/p-6378fb3e.entry.js +0 -1
- package/dist/components/p-673dce11.entry.js +0 -1
- package/dist/components/p-7802e966.entry.js +0 -1
- package/dist/components/p-832dc95a.entry.js +0 -1
- package/dist/components/p-846fc91c.entry.js +0 -1
- package/dist/components/p-855aa1a3.entry.js +0 -1
- package/dist/components/p-8c56e39a.entry.js +0 -1
- package/dist/components/p-a44a1abe.entry.js +0 -1
- package/dist/components/p-a4e9b68b.entry.js +0 -1
- package/dist/components/p-ab32b3fc.entry.js +0 -1
- package/dist/components/p-ac0112d5.entry.js +0 -1
- package/dist/components/p-acb16e1c.entry.js +0 -1
- package/dist/components/p-ae5dbd41.entry.js +0 -1
- package/dist/components/p-b86a4985.js +0 -1
- package/dist/components/p-bdd86a3c.entry.js +0 -1
- package/dist/components/p-bf0f851d.entry.js +0 -1
- package/dist/components/p-c2d369bc.entry.js +0 -1
- package/dist/components/p-c6038449.entry.js +0 -1
- package/dist/components/p-c9c417de.js +0 -1
- package/dist/components/p-d1670eec.entry.js +0 -1
- package/dist/components/p-d53b7a75.entry.js +0 -1
- package/dist/components/p-d6d86366.entry.js +0 -1
- package/dist/components/p-df94285c.entry.js +0 -1
- package/dist/components/p-e74834bc.entry.js +0 -1
- package/dist/components/p-f7a6ce69.entry.js +0 -1
- package/dist/esm/color-bb472c37.js +0 -338
- package/dist/esm/eds-accordion_33.entry.js +0 -2634
- package/dist/esm/eds-rating.entry.js +0 -52
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/index.d.ts +0 -3
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/keycloak.d.ts +0 -30
- package/dist/types/Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib/render.d.ts +0 -8
- /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/analytics.d.ts +0 -0
- /package/dist/types/{Users/nigeor/Documents/Projects/EBRAINS/ebrains-ui-ecosystem/packages/components/.stencil/packages/utils/src/lib → utils}/color.d.ts +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -2309,7 +2309,7 @@ class ColorPrimaryPalette {
|
|
|
2309
2309
|
];
|
|
2310
2310
|
}
|
|
2311
2311
|
render() {
|
|
2312
|
-
return (hAsync("ul", { key: '
|
|
2312
|
+
return (hAsync("ul", { key: 'b9b1f4d9c692d3b6f80dd5e50f7c840ed2dd6139', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2313
2313
|
}
|
|
2314
2314
|
static get cmpMeta() { return {
|
|
2315
2315
|
"$flags$": 0,
|
|
@@ -2381,7 +2381,7 @@ class ColorSecondaryPalette {
|
|
|
2381
2381
|
this.show = undefined;
|
|
2382
2382
|
}
|
|
2383
2383
|
render() {
|
|
2384
|
-
return (hAsync("ul", { key: '
|
|
2384
|
+
return (hAsync("ul", { key: 'f3b7eccec4f67008e8ed73c1a0ff23a542e3c516', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2385
2385
|
}
|
|
2386
2386
|
static get cmpMeta() { return {
|
|
2387
2387
|
"$flags$": 0,
|
|
@@ -2446,7 +2446,7 @@ class ColorSupportPalette {
|
|
|
2446
2446
|
];
|
|
2447
2447
|
}
|
|
2448
2448
|
render() {
|
|
2449
|
-
return (hAsync("ul", { key: '
|
|
2449
|
+
return (hAsync("ul", { key: 'bef8701ffa7aec7ea1f0f21a2dfbe1157647bb0a', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), hAsync("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
|
|
2450
2450
|
}
|
|
2451
2451
|
static get cmpMeta() { return {
|
|
2452
2452
|
"$flags$": 0,
|
|
@@ -2522,7 +2522,7 @@ class CorrectUseOfColors {
|
|
|
2522
2522
|
registerInstance(this, hostRef);
|
|
2523
2523
|
}
|
|
2524
2524
|
render() {
|
|
2525
|
-
return (hAsync("div", { key: '
|
|
2525
|
+
return (hAsync("div", { key: '58274bc750821893f1ff6db6af0c92557e2037dc', class: "container" }, hAsync("p", { key: 'f16ae70777dc595edb9f8ef20df33721816a472a', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'c98c49daddf43987002dd69ab1c00dffbae5e69a', label: "primary", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'e466f6f7e05f68896114551f59673c707d5fd30f', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '32dfc27beebbbab3949c7695293800a2ff552ceb', class: "flex" }, hAsync("div", { key: 'e01d74cf63c84f66d868e180589b45cbc59ebff7', class: "w-full" }, hAsync("ul", { key: '162e9c5ed57689a94c5c59e2664bba2adfcd60fc', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'bb71abb645789030487eccdd0abaf9b223c12ec8', class: "w-full" }, hAsync("ul", { key: 'f85702460f89881d6b8642decad848affdc7002f', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '7b5b8b9c0013a91c97f24c239bde32a727695707', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '81dc2c31eb283a2f64a1fd32329b35b1d04afc12', label: "purple", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'd90877918d973595a7b8bdacd6bb80f1f04cab5b', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '81cf06bb6932b2120b210e7d1ee9d556cedc949b', class: "flex" }, hAsync("div", { key: '2cc1571fe83620fcfa8f961af93b7b0e8e970eb2', class: "w-full" }, hAsync("ul", { key: 'b6b1f7f874dbd8784a0253187438c2eb6282a815', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '49a874de125699d800aee6256bb5b3bf9a0bf907', class: "w-full" }, hAsync("ul", { key: '10d41b5ab948c87c8db43fbddefbe3453c5384a9', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'bc7c40435b87cd31b5bbb2315b3f50fa88b5bafb', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'd5a9f4c30d9108bd8c8207ee0130a15b9c7ff53f', label: "blue", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '35c2440f2c606cd4e8e69b33850ca908f6f36a4a', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: 'cf9dde65d107b20c67e0036e891ad37c1d685477', class: "flex" }, hAsync("div", { key: '807350f20ee902df273ce35c217bcaa134502d13', class: "w-full" }, hAsync("ul", { key: '8198d1e59cb9477978a0b78714e7884a75ce52c0', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'ed4f89cd3d5544a199d0a516e23ee877c16dad6a', class: "w-full" }, hAsync("ul", { key: '47f8617629f34252b2d533f5932dd14b9117f601', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '7b99385726cda59f07b66ff99e050588d5778421', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'f3719f08484d40ceb9ece89474f473cf9e44ee53', label: "redish", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'f1ee0fbf78a5da5f6a7a0836f63cc3312f68a547', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '833dcd6ad96a0c36a127c5384d0858b879bf0b05', class: "flex" }, hAsync("div", { key: 'cf1297f1dfed3e70c184cdb3f4e116292ce1e57f', class: "w-full" }, hAsync("ul", { key: '9d8d9e0f78348cee56f6c91b3289a90f25c088e4', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '836dfd427a087ee512970bf52ee0612a24cfaa72', class: "w-full" }, hAsync("ul", { key: '08e2b7603c2c093b2bd8931d1993aca89801ad1d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
2526
2526
|
}
|
|
2527
2527
|
static get cmpMeta() { return {
|
|
2528
2528
|
"$flags$": 0,
|
|
@@ -2534,170 +2534,6 @@ class CorrectUseOfColors {
|
|
|
2534
2534
|
}; }
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
|
-
[
|
|
2538
|
-
['eds-header', {
|
|
2539
|
-
'home-url': '/',
|
|
2540
|
-
'user-feature': 'false',
|
|
2541
|
-
'keycloak-url': 'http://localhost:8080',
|
|
2542
|
-
'keycloak-realm': 'nigeor-realm',
|
|
2543
|
-
'keycloak-client-id': 'stencil-app',
|
|
2544
|
-
links: JSON.stringify([
|
|
2545
|
-
{ label: 'About', url: '/about' },
|
|
2546
|
-
{ label: 'Focus Areas', url: '/focus-areas' },
|
|
2547
|
-
{ label: 'News & Events', url: '/news-and-events' },
|
|
2548
|
-
{ label: 'Contact', url: '/contact' },
|
|
2549
|
-
]),
|
|
2550
|
-
}],
|
|
2551
|
-
['eds-block-break', {}],
|
|
2552
|
-
['eds-footer', {}],
|
|
2553
|
-
['eds-block-break', {}],
|
|
2554
|
-
['eds-tabs', {
|
|
2555
|
-
tabs: JSON.stringify([
|
|
2556
|
-
{ label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
|
|
2557
|
-
{ label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
|
|
2558
|
-
{ label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
|
|
2559
|
-
]),
|
|
2560
|
-
}],
|
|
2561
|
-
['eds-block-break', {}],
|
|
2562
|
-
['eds-card-section', {
|
|
2563
|
-
cards: JSON.stringify([
|
|
2564
|
-
{ title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
|
|
2565
|
-
{ title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
|
|
2566
|
-
]),
|
|
2567
|
-
cols: '4',
|
|
2568
|
-
}],
|
|
2569
|
-
['eds-block-break', {}],
|
|
2570
|
-
['eds-link', {
|
|
2571
|
-
label: 'Main Link Click Me',
|
|
2572
|
-
url: 'https://example.com',
|
|
2573
|
-
intent: 'primary'
|
|
2574
|
-
}],
|
|
2575
|
-
['eds-block-break', {}],
|
|
2576
|
-
['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
|
|
2577
|
-
['eds-block-break', {}],
|
|
2578
|
-
['eds-breadcrumb', {
|
|
2579
|
-
items: JSON.stringify([
|
|
2580
|
-
{ label: 'Home', url: '/' },
|
|
2581
|
-
{ label: 'Products', url: '/products' },
|
|
2582
|
-
{ label: 'Electronics', url: '/products/electronics' },
|
|
2583
|
-
{ label: 'Laptops', url: '/products/electronics/laptops' },
|
|
2584
|
-
]),
|
|
2585
|
-
intent: 'primary',
|
|
2586
|
-
}],
|
|
2587
|
-
['eds-block-break', {}],
|
|
2588
|
-
['eds-card-generic', {
|
|
2589
|
-
'card-title': 'The Future of AI in Healthcare',
|
|
2590
|
-
url: 'https://example.com/ai-healthcare',
|
|
2591
|
-
description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
|
|
2592
|
-
avatar: 'https://files.ebrains.eu/img/686e0edc-f3be-4d79-aa02-373c32c08d65/ebrains-logo-high-resolution.png?fit=max&q=80&fm=webp&crop=879%2C879%2C597%2C0&w=200',
|
|
2593
|
-
'short-abbreviation': 'AI',
|
|
2594
|
-
'heading-level': 'h2',
|
|
2595
|
-
tags: 'Technology,AI,Healthcare',
|
|
2596
|
-
tiny: 'false',
|
|
2597
|
-
bg: 'true',
|
|
2598
|
-
'with-hover': 'true',
|
|
2599
|
-
}],
|
|
2600
|
-
['eds-block-break', {}],
|
|
2601
|
-
['eds-code-block', {
|
|
2602
|
-
code: 'Hello',
|
|
2603
|
-
language: 'javascript',
|
|
2604
|
-
}],
|
|
2605
|
-
['eds-block-break', {}],
|
|
2606
|
-
['eds-dropdown', {
|
|
2607
|
-
'aria-label': 'More options',
|
|
2608
|
-
'rounded-btn': 'true',
|
|
2609
|
-
'dropdown-pos': 'right',
|
|
2610
|
-
'dropdown-offset': 'true',
|
|
2611
|
-
}],
|
|
2612
|
-
['eds-block-break', {}],
|
|
2613
|
-
['eds-form', {
|
|
2614
|
-
name: 'extended-form',
|
|
2615
|
-
endpoint: 'http://127.0.0.1:5000/api/data',
|
|
2616
|
-
fields: JSON.stringify([
|
|
2617
|
-
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
|
|
2618
|
-
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
2619
|
-
{ name: 'number', label: 'Number', type: 'number', required: true },
|
|
2620
|
-
{ name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
|
|
2621
|
-
{ name: 'date', label: 'Date', type: 'date', required: true },
|
|
2622
|
-
{ name: 'file', label: 'File', type: 'file', required: false },
|
|
2623
|
-
{ name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
|
|
2624
|
-
{ name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
|
|
2625
|
-
{ name: 'role', label: 'Role', type: 'select', required: true, options: [
|
|
2626
|
-
{ label: 'Admin', value: 'admin' },
|
|
2627
|
-
{ label: 'Editor', value: 'editor' },
|
|
2628
|
-
{ label: 'Viewer', value: 'viewer' },
|
|
2629
|
-
] },
|
|
2630
|
-
{ name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
|
|
2631
|
-
{ value: 'option1', label: 'Option 1' },
|
|
2632
|
-
{ value: 'option2', label: 'Option 2' },
|
|
2633
|
-
{ value: 'option3', label: 'Option 3' },
|
|
2634
|
-
], required: true },
|
|
2635
|
-
{ name: 'gender', type: 'radio', label: 'Select your gender', options: [
|
|
2636
|
-
{ value: 'female', label: 'Female' },
|
|
2637
|
-
{ value: 'male', label: 'Male' },
|
|
2638
|
-
], required: true },
|
|
2639
|
-
{ name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
|
|
2640
|
-
{ name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
|
|
2641
|
-
]),
|
|
2642
|
-
'success-message': 'Form submitted successfully!',
|
|
2643
|
-
'error-message': 'Please fix the errors in the form.',
|
|
2644
|
-
'submit-btn': 'true',
|
|
2645
|
-
'small-alert': 'false',
|
|
2646
|
-
'set-form-url': 'true',
|
|
2647
|
-
}],
|
|
2648
|
-
['eds-block-break', {}],
|
|
2649
|
-
['eds-img', {
|
|
2650
|
-
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
2651
|
-
alt: 'EBRAINS Bernstein Conference',
|
|
2652
|
-
width: '400',
|
|
2653
|
-
height: '225',
|
|
2654
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1440w',
|
|
2655
|
-
sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
|
|
2656
|
-
formats: JSON.stringify([
|
|
2657
|
-
{ type: 'image/webp', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 1080w' },
|
|
2658
|
-
{ type: 'image/jpeg', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w' },
|
|
2659
|
-
]),
|
|
2660
|
-
lazyload: 'true',
|
|
2661
|
-
'with-bg': 'true',
|
|
2662
|
-
}],
|
|
2663
|
-
['eds-block-break', {}],
|
|
2664
|
-
['eds-input-field', {
|
|
2665
|
-
name: 'username',
|
|
2666
|
-
'input-id': 'username',
|
|
2667
|
-
label: 'Username',
|
|
2668
|
-
placeholder: 'Enter your username',
|
|
2669
|
-
required: 'true',
|
|
2670
|
-
hint: 'Your unique username',
|
|
2671
|
-
message: 'This field is required',
|
|
2672
|
-
'error-message': 'Invalid username',
|
|
2673
|
-
type: 'text',
|
|
2674
|
-
}],
|
|
2675
|
-
['eds-block-break', {}],
|
|
2676
|
-
['eds-pagination', {
|
|
2677
|
-
'current-page': '1',
|
|
2678
|
-
'last-page': '10',
|
|
2679
|
-
'per-page': '5',
|
|
2680
|
-
total: '50',
|
|
2681
|
-
mode: 'default',
|
|
2682
|
-
}],
|
|
2683
|
-
['eds-block-break', {}],
|
|
2684
|
-
['eds-progress-bar', { value: '75' }],
|
|
2685
|
-
['eds-table', {
|
|
2686
|
-
data: JSON.stringify([
|
|
2687
|
-
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
2688
|
-
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
2689
|
-
{ Property: 'email', Type: 'string', Required: 'No' },
|
|
2690
|
-
]),
|
|
2691
|
-
config: JSON.stringify({
|
|
2692
|
-
Type: { format: 'uppercase' },
|
|
2693
|
-
Property: { format: 'code' },
|
|
2694
|
-
Required: { hidden: true },
|
|
2695
|
-
}),
|
|
2696
|
-
}],
|
|
2697
|
-
['eds-block-break', {}],
|
|
2698
|
-
['eds-tag', { label: 'Default Tag', intent: 'default' }],
|
|
2699
|
-
];
|
|
2700
|
-
|
|
2701
2537
|
// Helper function to check if Matomo is initialized
|
|
2702
2538
|
function isMatomoAvailable() {
|
|
2703
2539
|
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
@@ -2709,6 +2545,7 @@ function pushToMatomo(action, ...args) {
|
|
|
2709
2545
|
window._paq.push([action, ...args]);
|
|
2710
2546
|
}
|
|
2711
2547
|
else {
|
|
2548
|
+
// eslint-disable-next-line
|
|
2712
2549
|
console.warn('Matomo is not available or not initialized.');
|
|
2713
2550
|
}
|
|
2714
2551
|
}
|
|
@@ -2716,8 +2553,10 @@ function pushToMatomo(action, ...args) {
|
|
|
2716
2553
|
function sendAnalytics(eventData) {
|
|
2717
2554
|
var _a;
|
|
2718
2555
|
if (!isMatomoAvailable()) {
|
|
2556
|
+
// eslint-disable-next-line
|
|
2719
2557
|
console.warn('Matomo is not available or not initialized.');
|
|
2720
|
-
//
|
|
2558
|
+
// eslint-disable-next-line
|
|
2559
|
+
console.log(Object.assign({}, eventData));
|
|
2721
2560
|
return;
|
|
2722
2561
|
}
|
|
2723
2562
|
// Conditionally build the name field
|
|
@@ -2730,190 +2569,18 @@ function sendAnalytics(eventData) {
|
|
|
2730
2569
|
const name = nameParts.join('/');
|
|
2731
2570
|
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
2732
2571
|
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
2572
|
+
// eslint-disable-next-line
|
|
2733
2573
|
console.log(Object.assign({}, eventData));
|
|
2734
2574
|
}
|
|
2735
2575
|
// Function to opt-in the user
|
|
2736
2576
|
function matomoOptIn() {
|
|
2737
2577
|
if (isMatomoAvailable()) {
|
|
2738
2578
|
window._paq.push(['rememberConsentGiven']);
|
|
2579
|
+
// eslint-disable-next-line
|
|
2739
2580
|
console.log('User has opted in to tracking');
|
|
2740
2581
|
}
|
|
2741
2582
|
}
|
|
2742
2583
|
|
|
2743
|
-
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2744
|
-
|
|
2745
|
-
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
2746
|
-
const cx = clsx;
|
|
2747
|
-
const cva = (base, config)=>{
|
|
2748
|
-
return (props)=>{
|
|
2749
|
-
var ref;
|
|
2750
|
-
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
2751
|
-
const { variants , defaultVariants } = config;
|
|
2752
|
-
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
|
2753
|
-
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
2754
|
-
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
2755
|
-
if (variantProp === null) return null;
|
|
2756
|
-
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
2757
|
-
return variants[variant][variantKey];
|
|
2758
|
-
});
|
|
2759
|
-
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
|
2760
|
-
let [key, value] = param;
|
|
2761
|
-
if (value === undefined) {
|
|
2762
|
-
return acc;
|
|
2763
|
-
}
|
|
2764
|
-
acc[key] = value;
|
|
2765
|
-
return acc;
|
|
2766
|
-
}, {});
|
|
2767
|
-
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
|
|
2768
|
-
let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
|
|
2769
|
-
return Object.entries(compoundVariantOptions).every((param)=>{
|
|
2770
|
-
let [key, value] = param;
|
|
2771
|
-
return Array.isArray(value) ? value.includes({
|
|
2772
|
-
...defaultVariants,
|
|
2773
|
-
...propsWithoutUndefined
|
|
2774
|
-
}[key]) : ({
|
|
2775
|
-
...defaultVariants,
|
|
2776
|
-
...propsWithoutUndefined
|
|
2777
|
-
})[key] === value;
|
|
2778
|
-
}) ? [
|
|
2779
|
-
...acc,
|
|
2780
|
-
cvClass,
|
|
2781
|
-
cvClassName
|
|
2782
|
-
] : acc;
|
|
2783
|
-
}, []);
|
|
2784
|
-
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
|
|
2788
|
-
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
2789
|
-
const gradientBGColorVariants = cva([], {
|
|
2790
|
-
variants: {
|
|
2791
|
-
color: GRADIANT_TOKENS.reduce((acc, token) => (Object.assign(Object.assign({}, acc), { [token]: '' })), {}),
|
|
2792
|
-
direction: {
|
|
2793
|
-
top: '',
|
|
2794
|
-
bottom: ''
|
|
2795
|
-
},
|
|
2796
|
-
pseudo: {
|
|
2797
|
-
true: 'before:effect-opacity effect-bg-behind',
|
|
2798
|
-
false: ''
|
|
2799
|
-
},
|
|
2800
|
-
hover: {
|
|
2801
|
-
true: 'before:opacity-0 hover:before:opacity-100',
|
|
2802
|
-
false: ''
|
|
2803
|
-
}
|
|
2804
|
-
},
|
|
2805
|
-
compoundVariants: [
|
|
2806
|
-
// region GREEN
|
|
2807
|
-
{
|
|
2808
|
-
color: 'green',
|
|
2809
|
-
direction: 'top',
|
|
2810
|
-
pseudo: true,
|
|
2811
|
-
className: 'before:bg-gradient-01-top'
|
|
2812
|
-
},
|
|
2813
|
-
{
|
|
2814
|
-
color: 'green',
|
|
2815
|
-
pseudo: true,
|
|
2816
|
-
direction: 'bottom',
|
|
2817
|
-
className: 'before:bg-gradient-01-bottom'
|
|
2818
|
-
},
|
|
2819
|
-
{
|
|
2820
|
-
color: 'green',
|
|
2821
|
-
direction: 'top',
|
|
2822
|
-
pseudo: false,
|
|
2823
|
-
className: 'bg-gradient-01-top'
|
|
2824
|
-
},
|
|
2825
|
-
{
|
|
2826
|
-
color: 'green',
|
|
2827
|
-
pseudo: false,
|
|
2828
|
-
direction: 'bottom',
|
|
2829
|
-
className: 'bg-gradient-01-bottom'
|
|
2830
|
-
},
|
|
2831
|
-
// endregion
|
|
2832
|
-
// region YELLOW
|
|
2833
|
-
{
|
|
2834
|
-
color: 'yellow',
|
|
2835
|
-
direction: 'top',
|
|
2836
|
-
pseudo: true,
|
|
2837
|
-
className: 'before:bg-gradient-02-top'
|
|
2838
|
-
},
|
|
2839
|
-
{
|
|
2840
|
-
color: 'yellow',
|
|
2841
|
-
direction: 'bottom',
|
|
2842
|
-
pseudo: true,
|
|
2843
|
-
className: 'before:bg-gradient-02-bottom'
|
|
2844
|
-
},
|
|
2845
|
-
{
|
|
2846
|
-
color: 'yellow',
|
|
2847
|
-
direction: 'top',
|
|
2848
|
-
pseudo: false,
|
|
2849
|
-
className: 'bg-gradient-02-top'
|
|
2850
|
-
},
|
|
2851
|
-
{
|
|
2852
|
-
color: 'yellow',
|
|
2853
|
-
direction: 'bottom',
|
|
2854
|
-
pseudo: false,
|
|
2855
|
-
className: 'bg-gradient-02-bottom'
|
|
2856
|
-
},
|
|
2857
|
-
// endregion
|
|
2858
|
-
// region PURPLE
|
|
2859
|
-
{
|
|
2860
|
-
color: 'purple',
|
|
2861
|
-
direction: 'top',
|
|
2862
|
-
pseudo: true,
|
|
2863
|
-
class: 'before:bg-gradient-03-top'
|
|
2864
|
-
},
|
|
2865
|
-
{
|
|
2866
|
-
color: 'purple',
|
|
2867
|
-
direction: 'bottom',
|
|
2868
|
-
pseudo: true,
|
|
2869
|
-
class: 'before:bg-gradient-03-bottom'
|
|
2870
|
-
},
|
|
2871
|
-
{
|
|
2872
|
-
color: 'purple',
|
|
2873
|
-
direction: 'top',
|
|
2874
|
-
pseudo: false,
|
|
2875
|
-
class: 'bg-gradient-03-top'
|
|
2876
|
-
},
|
|
2877
|
-
{
|
|
2878
|
-
color: 'purple',
|
|
2879
|
-
direction: 'bottom',
|
|
2880
|
-
pseudo: false,
|
|
2881
|
-
class: 'bg-gradient-03-bottom'
|
|
2882
|
-
},
|
|
2883
|
-
// endregion
|
|
2884
|
-
// region AMONG-BLUE
|
|
2885
|
-
{
|
|
2886
|
-
color: 'among-blue',
|
|
2887
|
-
direction: 'top',
|
|
2888
|
-
pseudo: true,
|
|
2889
|
-
class: 'before:bg-gradient-04-top'
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
color: 'among-blue',
|
|
2893
|
-
direction: 'bottom',
|
|
2894
|
-
pseudo: true,
|
|
2895
|
-
class: 'before:bg-gradient-04-bottom'
|
|
2896
|
-
},
|
|
2897
|
-
{
|
|
2898
|
-
color: 'among-blue',
|
|
2899
|
-
direction: 'top',
|
|
2900
|
-
pseudo: false,
|
|
2901
|
-
class: 'bg-gradient-04-top'
|
|
2902
|
-
},
|
|
2903
|
-
{
|
|
2904
|
-
color: 'among-blue',
|
|
2905
|
-
direction: 'bottom',
|
|
2906
|
-
pseudo: false,
|
|
2907
|
-
class: 'bg-gradient-04-bottom'
|
|
2908
|
-
}
|
|
2909
|
-
// endregion
|
|
2910
|
-
],
|
|
2911
|
-
defaultVariants: {
|
|
2912
|
-
direction: 'top',
|
|
2913
|
-
pseudo: true
|
|
2914
|
-
}
|
|
2915
|
-
});
|
|
2916
|
-
|
|
2917
2584
|
const edsAccordionCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
|
|
2918
2585
|
var EdsAccordionStyle0 = edsAccordionCss;
|
|
2919
2586
|
|
|
@@ -3000,10 +2667,10 @@ class EdsAccordion {
|
|
|
3000
2667
|
*/
|
|
3001
2668
|
render() {
|
|
3002
2669
|
const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
|
|
3003
|
-
return (hAsync("div", { key: '
|
|
2670
|
+
return (hAsync("div", { key: '00bd9a34ceb469bef74c827bd1f48bf3d4b545b6', ref: (el) => (this.wrapperRef = el), class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
3004
2671
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
3005
2672
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
3006
|
-
${minHeightContentClass}` }, hAsync("h3", { key: '
|
|
2673
|
+
${minHeightContentClass}` }, hAsync("h3", { key: 'ab6a953797e0a8379a01a9a2f00a4988d4fc8357', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), hAsync("div", { key: 'cfd6f4ad2ec5e412cdf2348d188dfcf90770012d', class: "ml-auto" }, hAsync("eds-button", { key: 'beaee69d610727b397645fc0a507b234003fde5e', id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '795f14c0930a0b0862a86451cc7b7e807cb79c37', class: `w-full` }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: '28f6cba233cdee58743faaacc992bf7497c2ff2e', id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '939e442c55babfd3f1750d20d9b95f664c3a67c8', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '648d16ed84cb3da227a10e6370004c6479789aed', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: '90ca94f15e408b4b05c0eac4bd20fa21766cbb19' })))))));
|
|
3007
2674
|
}
|
|
3008
2675
|
get el() { return getElement(this); }
|
|
3009
2676
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -3027,6 +2694,51 @@ class EdsAccordion {
|
|
|
3027
2694
|
}; }
|
|
3028
2695
|
}
|
|
3029
2696
|
|
|
2697
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
2698
|
+
|
|
2699
|
+
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
2700
|
+
const cx = clsx;
|
|
2701
|
+
const cva = (base, config)=>{
|
|
2702
|
+
return (props)=>{
|
|
2703
|
+
var ref;
|
|
2704
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
2705
|
+
const { variants , defaultVariants } = config;
|
|
2706
|
+
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
|
2707
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
2708
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
2709
|
+
if (variantProp === null) return null;
|
|
2710
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
2711
|
+
return variants[variant][variantKey];
|
|
2712
|
+
});
|
|
2713
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
|
2714
|
+
let [key, value] = param;
|
|
2715
|
+
if (value === undefined) {
|
|
2716
|
+
return acc;
|
|
2717
|
+
}
|
|
2718
|
+
acc[key] = value;
|
|
2719
|
+
return acc;
|
|
2720
|
+
}, {});
|
|
2721
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
|
|
2722
|
+
let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
|
|
2723
|
+
return Object.entries(compoundVariantOptions).every((param)=>{
|
|
2724
|
+
let [key, value] = param;
|
|
2725
|
+
return Array.isArray(value) ? value.includes({
|
|
2726
|
+
...defaultVariants,
|
|
2727
|
+
...propsWithoutUndefined
|
|
2728
|
+
}[key]) : ({
|
|
2729
|
+
...defaultVariants,
|
|
2730
|
+
...propsWithoutUndefined
|
|
2731
|
+
})[key] === value;
|
|
2732
|
+
}) ? [
|
|
2733
|
+
...acc,
|
|
2734
|
+
cvClass,
|
|
2735
|
+
cvClassName
|
|
2736
|
+
] : acc;
|
|
2737
|
+
}, []);
|
|
2738
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
2739
|
+
};
|
|
2740
|
+
};
|
|
2741
|
+
|
|
3030
2742
|
const edsAlertCss = ":root {\n font-optical-sizing: auto;\n}\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n/*\n:focus[data-focus-method=\"mouse\"],\n:focus[data-focus-method=\"touch\"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*, ::before, ::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n::before,\n::after {\n}\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type='button']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\nfieldset {\n margin: 0;\n padding: 0;\n}\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n:root {\n --inner-gutter: 8px;\n}\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n:root {\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n@media (min-width: 750px) {\n :root {\n}\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n@media (min-width: 1024px) {\n :root {\n}\n}\n.f-ui-01 b, .f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n@media (min-width: 750px) {\n .md\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-x-0 > *::before {\n content: none;\n }\n .md\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n@media (min-width: 900px) {\n .lg\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-x-0 > *::before {\n content: none;\n }\n .lg\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1 );\n }\n\n &::after {\n content: '';\n }\n}\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n.w-full {\n width: 100%;\n}\n.flex-row {\n flex-direction: row;\n}\n.items-center {\n align-items: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.space-y-12 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.rounded-lg {\n border-radius: 16px;\n}\n.bg-dark {\n background-color: var(--grey-300);\n}\n.bg-error {\n background-color: var(--red-200);\n}\n.bg-success {\n background-color: var(--green-200);\n}\n.bg-warning {\n background-color: var(--yellow-200);\n}\n.p-16 {\n padding: 1rem;\n}\n.p-20 {\n padding: 1.25rem;\n}\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.pr-12 {\n padding-right: 0.75rem;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n[class*=underline-] {\n text-decoration-line: underline;\n}\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05 );\n}\n";
|
|
3031
2743
|
var EdsAlertStyle0 = edsAlertCss;
|
|
3032
2744
|
|
|
@@ -3100,9 +2812,12 @@ class EdsAlert {
|
|
|
3100
2812
|
this.withBtn = Boolean(this.pressableLabel);
|
|
3101
2813
|
}
|
|
3102
2814
|
componentDidLoad() {
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
this.
|
|
2815
|
+
var _a;
|
|
2816
|
+
// Query for the 'eds-link' element inside the shadow root.
|
|
2817
|
+
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
2818
|
+
if (lnk) {
|
|
2819
|
+
this.emitContext(lnk);
|
|
2820
|
+
}
|
|
3106
2821
|
}
|
|
3107
2822
|
emitContext(linkElement) {
|
|
3108
2823
|
const event = new CustomEvent('parentContext', {
|
|
@@ -3114,11 +2829,11 @@ class EdsAlert {
|
|
|
3114
2829
|
linkElement.dispatchEvent(event);
|
|
3115
2830
|
}
|
|
3116
2831
|
render() {
|
|
3117
|
-
return (hAsync("div", { key: '
|
|
2832
|
+
return (hAsync("div", { key: '519742081f681d6d67bc1b42c89fe1b6d005fe0f', class: alertStyles({
|
|
3118
2833
|
intent: this.intent,
|
|
3119
2834
|
direction: this.direction,
|
|
3120
2835
|
withBtn: this.withBtn
|
|
3121
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
2836
|
+
}), role: "alert" }, hAsync("p", { key: '6a5d11fdc2a975512b12c307286b0a8b06998bec', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
|
|
3122
2837
|
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3123
2838
|
}
|
|
3124
2839
|
get el() { return getElement(this); }
|
|
@@ -3140,6 +2855,135 @@ class EdsAlert {
|
|
|
3140
2855
|
}; }
|
|
3141
2856
|
}
|
|
3142
2857
|
|
|
2858
|
+
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
2859
|
+
const gradientBGColorVariants = cva([], {
|
|
2860
|
+
variants: {
|
|
2861
|
+
color: GRADIANT_TOKENS.reduce((acc, token) => (Object.assign(Object.assign({}, acc), { [token]: '' })), {}),
|
|
2862
|
+
direction: {
|
|
2863
|
+
top: '',
|
|
2864
|
+
bottom: ''
|
|
2865
|
+
},
|
|
2866
|
+
pseudo: {
|
|
2867
|
+
true: 'before:effect-opacity effect-bg-behind',
|
|
2868
|
+
false: ''
|
|
2869
|
+
},
|
|
2870
|
+
hover: {
|
|
2871
|
+
true: 'before:opacity-0 hover:before:opacity-100',
|
|
2872
|
+
false: ''
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
compoundVariants: [
|
|
2876
|
+
// region GREEN
|
|
2877
|
+
{
|
|
2878
|
+
color: 'green',
|
|
2879
|
+
direction: 'top',
|
|
2880
|
+
pseudo: true,
|
|
2881
|
+
className: 'before:bg-gradient-01-top'
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
color: 'green',
|
|
2885
|
+
pseudo: true,
|
|
2886
|
+
direction: 'bottom',
|
|
2887
|
+
className: 'before:bg-gradient-01-bottom'
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
color: 'green',
|
|
2891
|
+
direction: 'top',
|
|
2892
|
+
pseudo: false,
|
|
2893
|
+
className: 'bg-gradient-01-top'
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
color: 'green',
|
|
2897
|
+
pseudo: false,
|
|
2898
|
+
direction: 'bottom',
|
|
2899
|
+
className: 'bg-gradient-01-bottom'
|
|
2900
|
+
},
|
|
2901
|
+
// endregion
|
|
2902
|
+
// region YELLOW
|
|
2903
|
+
{
|
|
2904
|
+
color: 'yellow',
|
|
2905
|
+
direction: 'top',
|
|
2906
|
+
pseudo: true,
|
|
2907
|
+
className: 'before:bg-gradient-02-top'
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
color: 'yellow',
|
|
2911
|
+
direction: 'bottom',
|
|
2912
|
+
pseudo: true,
|
|
2913
|
+
className: 'before:bg-gradient-02-bottom'
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
color: 'yellow',
|
|
2917
|
+
direction: 'top',
|
|
2918
|
+
pseudo: false,
|
|
2919
|
+
className: 'bg-gradient-02-top'
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
color: 'yellow',
|
|
2923
|
+
direction: 'bottom',
|
|
2924
|
+
pseudo: false,
|
|
2925
|
+
className: 'bg-gradient-02-bottom'
|
|
2926
|
+
},
|
|
2927
|
+
// endregion
|
|
2928
|
+
// region PURPLE
|
|
2929
|
+
{
|
|
2930
|
+
color: 'purple',
|
|
2931
|
+
direction: 'top',
|
|
2932
|
+
pseudo: true,
|
|
2933
|
+
class: 'before:bg-gradient-03-top'
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
color: 'purple',
|
|
2937
|
+
direction: 'bottom',
|
|
2938
|
+
pseudo: true,
|
|
2939
|
+
class: 'before:bg-gradient-03-bottom'
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
color: 'purple',
|
|
2943
|
+
direction: 'top',
|
|
2944
|
+
pseudo: false,
|
|
2945
|
+
class: 'bg-gradient-03-top'
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
color: 'purple',
|
|
2949
|
+
direction: 'bottom',
|
|
2950
|
+
pseudo: false,
|
|
2951
|
+
class: 'bg-gradient-03-bottom'
|
|
2952
|
+
},
|
|
2953
|
+
// endregion
|
|
2954
|
+
// region AMONG-BLUE
|
|
2955
|
+
{
|
|
2956
|
+
color: 'among-blue',
|
|
2957
|
+
direction: 'top',
|
|
2958
|
+
pseudo: true,
|
|
2959
|
+
class: 'before:bg-gradient-04-top'
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
color: 'among-blue',
|
|
2963
|
+
direction: 'bottom',
|
|
2964
|
+
pseudo: true,
|
|
2965
|
+
class: 'before:bg-gradient-04-bottom'
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
color: 'among-blue',
|
|
2969
|
+
direction: 'top',
|
|
2970
|
+
pseudo: false,
|
|
2971
|
+
class: 'bg-gradient-04-top'
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
color: 'among-blue',
|
|
2975
|
+
direction: 'bottom',
|
|
2976
|
+
pseudo: false,
|
|
2977
|
+
class: 'bg-gradient-04-bottom'
|
|
2978
|
+
}
|
|
2979
|
+
// endregion
|
|
2980
|
+
],
|
|
2981
|
+
defaultVariants: {
|
|
2982
|
+
direction: 'top',
|
|
2983
|
+
pseudo: true
|
|
2984
|
+
}
|
|
2985
|
+
});
|
|
2986
|
+
|
|
3143
2987
|
const edsAvatarCss = ".border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border: 2px solid rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border: 2px solid rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.aspect-1x1 {\n aspect-ratio: 1/1;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.px-4 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xs {\n border-radius: 4px;\n}\n\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-default {\n color: var(--black);\n}\n\n.\\!no-underline {\n text-decoration-line: none !important;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.w-32 {\n width: 2rem;\n}\n\n.w-44 {\n width: 2.75rem;\n}\n\n.w-\\[54px\\] {\n width: 54px;\n}";
|
|
3144
2988
|
var EdsAvatarStyle0 = edsAvatarCss;
|
|
3145
2989
|
|
|
@@ -3158,8 +3002,8 @@ var EdsAvatarStyle0 = edsAvatarCss;
|
|
|
3158
3002
|
class EdsAvatar {
|
|
3159
3003
|
constructor(hostRef) {
|
|
3160
3004
|
registerInstance(this, hostRef);
|
|
3161
|
-
this.firstName =
|
|
3162
|
-
this.lastName =
|
|
3005
|
+
this.firstName = 'User';
|
|
3006
|
+
this.lastName = 'Avatar';
|
|
3163
3007
|
this.picture = undefined;
|
|
3164
3008
|
this.initials = undefined;
|
|
3165
3009
|
this.color = undefined;
|
|
@@ -3212,7 +3056,7 @@ class EdsAvatar {
|
|
|
3212
3056
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3213
3057
|
*/
|
|
3214
3058
|
render() {
|
|
3215
|
-
return (hAsync("div", { key: '
|
|
3059
|
+
return (hAsync("div", { key: '47ee5ffd12c0f90c536dea77b3ffa9120d67f37f', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
3216
3060
|
}
|
|
3217
3061
|
static get style() { return EdsAvatarStyle0; }
|
|
3218
3062
|
static get cmpMeta() { return {
|
|
@@ -3250,7 +3094,7 @@ class EdsBlockBreak {
|
|
|
3250
3094
|
this.extraClass = '';
|
|
3251
3095
|
}
|
|
3252
3096
|
render() {
|
|
3253
|
-
return hAsync("hr", { key: '
|
|
3097
|
+
return hAsync("hr", { key: '8cb39dda5d7f909b459390fe7e3f86dfd147ba98', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
|
|
3254
3098
|
}
|
|
3255
3099
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3256
3100
|
static get cmpMeta() { return {
|
|
@@ -3317,8 +3161,7 @@ class EdsBreadcrumb {
|
|
|
3317
3161
|
this.parsedItems = Array.isArray(parsed) ? parsed : [];
|
|
3318
3162
|
}
|
|
3319
3163
|
catch (e) {
|
|
3320
|
-
//
|
|
3321
|
-
console.error('Error parsing breadcrumb items:', e);
|
|
3164
|
+
//console.error('Error parsing breadcrumb items:', e);
|
|
3322
3165
|
this.parsedItems = [];
|
|
3323
3166
|
}
|
|
3324
3167
|
}
|
|
@@ -3346,9 +3189,9 @@ class EdsBreadcrumb {
|
|
|
3346
3189
|
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
3347
3190
|
*/
|
|
3348
3191
|
componentDidLoad() {
|
|
3349
|
-
|
|
3350
|
-
const links = this.el.shadowRoot.querySelectorAll('eds-link');
|
|
3351
|
-
links.forEach((link) => {
|
|
3192
|
+
var _a;
|
|
3193
|
+
const links = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link');
|
|
3194
|
+
links === null || links === void 0 ? void 0 : links.forEach((link) => {
|
|
3352
3195
|
this.emitContext(link);
|
|
3353
3196
|
});
|
|
3354
3197
|
}
|
|
@@ -3368,54 +3211,49 @@ class EdsBreadcrumb {
|
|
|
3368
3211
|
linkElement.dispatchEvent(event);
|
|
3369
3212
|
}
|
|
3370
3213
|
/**
|
|
3371
|
-
*
|
|
3372
|
-
*
|
|
3214
|
+
* Returns breadcrumb items with potential truncation if there are too many.
|
|
3215
|
+
* It inserts an ellipsis item where necessary.
|
|
3373
3216
|
*/
|
|
3374
3217
|
getTruncatedItems() {
|
|
3375
3218
|
const totalItems = this.parsedItems.length;
|
|
3219
|
+
const ellipsis = { label: '...', url: '', isHidden: true };
|
|
3376
3220
|
if (totalItems > this.maxVisibleItems) {
|
|
3377
3221
|
const firstItem = this.parsedItems[0];
|
|
3378
3222
|
const lastItems = this.parsedItems.slice(-2);
|
|
3379
|
-
const ellipsis = { label: '...', url: '', isHidden: true };
|
|
3380
3223
|
if (this.maxVisibleItems === 3) {
|
|
3381
|
-
return [
|
|
3382
|
-
this.truncateLabel(firstItem),
|
|
3383
|
-
ellipsis,
|
|
3384
|
-
...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
|
|
3385
|
-
];
|
|
3224
|
+
return [firstItem, ellipsis, ...lastItems];
|
|
3386
3225
|
}
|
|
3387
3226
|
else if (this.maxVisibleItems === 4) {
|
|
3388
3227
|
const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
|
|
3389
|
-
return [
|
|
3390
|
-
this.truncateLabel(firstItem),
|
|
3391
|
-
this.truncateLabel(middleItem),
|
|
3392
|
-
ellipsis,
|
|
3393
|
-
...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
|
|
3394
|
-
];
|
|
3228
|
+
return [firstItem, middleItem, ellipsis, ...lastItems];
|
|
3395
3229
|
}
|
|
3396
3230
|
}
|
|
3397
|
-
return this.parsedItems
|
|
3231
|
+
return this.parsedItems;
|
|
3398
3232
|
}
|
|
3399
3233
|
/**
|
|
3400
|
-
*
|
|
3401
|
-
*
|
|
3234
|
+
* Helper to determine the display label and full label.
|
|
3235
|
+
* If the label is longer than 15 characters and the item is not the current (last) item,
|
|
3236
|
+
* we display a truncated version but use the full label for aria attributes.
|
|
3402
3237
|
*/
|
|
3403
|
-
|
|
3404
|
-
if (item.label.length > 15) {
|
|
3405
|
-
return
|
|
3238
|
+
getLabels(item, isCurrent) {
|
|
3239
|
+
if (!isCurrent && item.label.length > 15) {
|
|
3240
|
+
return { displayLabel: `${item.label.slice(0, 15)}...`, fullLabel: item.label };
|
|
3406
3241
|
}
|
|
3407
|
-
return item;
|
|
3242
|
+
return { displayLabel: item.label, fullLabel: item.label };
|
|
3408
3243
|
}
|
|
3409
3244
|
/**
|
|
3410
3245
|
* Render method for the breadcrumb component.
|
|
3411
3246
|
* It creates a navigation element with an ordered list of breadcrumb links.
|
|
3412
|
-
* The last link is
|
|
3247
|
+
* The last link is marked as the current page.
|
|
3413
3248
|
*/
|
|
3414
3249
|
render() {
|
|
3415
3250
|
const itemsToRender = this.getTruncatedItems();
|
|
3416
|
-
return (hAsync("nav", { key: '
|
|
3251
|
+
return (hAsync("nav", { key: 'd177957e1b3218c21991bbdc9636a8e32befe990', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd10336ddee99b9fb84d17e53093c57c6a025982f', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3417
3252
|
const isLast = index === itemsToRender.length - 1;
|
|
3418
|
-
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? (
|
|
3253
|
+
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3254
|
+
const { displayLabel, fullLabel } = this.getLabels(item, isLast);
|
|
3255
|
+
return (hAsync("eds-link", Object.assign({ label: displayLabel, url: item.url, intent: this.intent, current: isLast, "aria-label": fullLabel, size: "small", "icon-small": "false" }, (isLast ? { 'aria-current': 'page' } : {}))));
|
|
3256
|
+
})()) : (hAsync("span", { class: "truncate px-2", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
|
|
3419
3257
|
}))));
|
|
3420
3258
|
}
|
|
3421
3259
|
get el() { return getElement(this); }
|
|
@@ -3608,9 +3446,8 @@ class EdsButton {
|
|
|
3608
3446
|
iconOnly: false
|
|
3609
3447
|
}
|
|
3610
3448
|
});
|
|
3611
|
-
this.parentContext = null; // Accepts the entire event detail or null
|
|
3612
3449
|
this.label = undefined;
|
|
3613
|
-
this.ariaLabel =
|
|
3450
|
+
this.ariaLabel = 'Button';
|
|
3614
3451
|
this.elementType = 'button';
|
|
3615
3452
|
this.intent = 'secondary';
|
|
3616
3453
|
this.loading = false;
|
|
@@ -3623,15 +3460,19 @@ class EdsButton {
|
|
|
3623
3460
|
this.extraClass = undefined;
|
|
3624
3461
|
this.triggerClick = undefined;
|
|
3625
3462
|
}
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
//
|
|
3632
|
-
|
|
3633
|
-
|
|
3463
|
+
/*private parentContext: ParentContextDetail | null = null; // Accepts the entire event detail or null
|
|
3464
|
+
|
|
3465
|
+
@Listen('parentContext')
|
|
3466
|
+
handleParentContext(event: CustomEvent) {
|
|
3467
|
+
if (event.target !== this.el) {
|
|
3468
|
+
// Ignore the event if it's not targeted at this specific instance
|
|
3469
|
+
return;
|
|
3470
|
+
}
|
|
3471
|
+
//console.log(event.detail);
|
|
3472
|
+
this.parentContext = event.detail;
|
|
3473
|
+
event.stopPropagation();
|
|
3634
3474
|
}
|
|
3475
|
+
*/
|
|
3635
3476
|
handleClick(event) {
|
|
3636
3477
|
var _a, _b;
|
|
3637
3478
|
if (this.disabled) {
|
|
@@ -3641,7 +3482,7 @@ class EdsButton {
|
|
|
3641
3482
|
}
|
|
3642
3483
|
sendAnalytics({
|
|
3643
3484
|
category: 'ui-component',
|
|
3644
|
-
parentContext:
|
|
3485
|
+
parentContext: null,
|
|
3645
3486
|
tag: this.el.tagName.toLowerCase(),
|
|
3646
3487
|
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ((_b = this.ariaLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '',
|
|
3647
3488
|
action: 'click'
|
|
@@ -3668,7 +3509,7 @@ class EdsButton {
|
|
|
3668
3509
|
show: !this.loading
|
|
3669
3510
|
});
|
|
3670
3511
|
const ElementType = this.elementType;
|
|
3671
|
-
return (hAsync(ElementType, { key: '
|
|
3512
|
+
return (hAsync(ElementType, { key: '52cda715164eeca59e35b45f617a2d6d1b05a94c', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && hAsync("span", { key: '866cd0272d9f381b3ecb892e588c860ca8b41051', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (hAsync("span", { key: 'fcba01e3404724869c59f4e21bd5db459643d840', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: 'e44955e5641e757e66eb4961097fb4d60e4def7c', class: "loader", style: {
|
|
3672
3513
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3673
3514
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3674
3515
|
} }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -3693,7 +3534,7 @@ class EdsButton {
|
|
|
3693
3534
|
"extraClass": [1, "extra-class"],
|
|
3694
3535
|
"triggerClick": [16]
|
|
3695
3536
|
},
|
|
3696
|
-
"$listeners$":
|
|
3537
|
+
"$listeners$": undefined,
|
|
3697
3538
|
"$lazyBundleId$": "-",
|
|
3698
3539
|
"$attrsToReflect$": []
|
|
3699
3540
|
}; }
|
|
@@ -3722,7 +3563,7 @@ class EdsCardDesc {
|
|
|
3722
3563
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3723
3564
|
}
|
|
3724
3565
|
render() {
|
|
3725
|
-
return (hAsync("p", { key: '
|
|
3566
|
+
return (hAsync("p", { key: '71495cbd6ef4e7d66c4c22a37f8120624ecf57fb', class: `text-light ${this.descClass}` }, hAsync("span", { key: '8708178f7b48cc1f31aac749f50fe92b72c39ab8', class: this.getTruncateClass() }, this.description)));
|
|
3726
3567
|
}
|
|
3727
3568
|
static get style() { return EdsCardDescStyle0; }
|
|
3728
3569
|
static get cmpMeta() { return {
|
|
@@ -3842,7 +3683,7 @@ class EdsCardGeneric {
|
|
|
3842
3683
|
});
|
|
3843
3684
|
}
|
|
3844
3685
|
render() {
|
|
3845
|
-
return (hAsync("article", { key: '
|
|
3686
|
+
return (hAsync("article", { key: 'dcb7cea87bfb52f8886f7ee3dbc3484d615bc00c', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '94dd6ff2679ce9ac4d25ec921cd1162b1584e4fd', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '433c4fe3a518153d89d48af54455286fa415a688', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '97b75afb4b8de1183d4b212054ff556ba3db8fcb', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label })))), ' '));
|
|
3846
3687
|
}
|
|
3847
3688
|
get el() { return getElement(this); }
|
|
3848
3689
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -3926,7 +3767,7 @@ class EdsCardProject {
|
|
|
3926
3767
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
3927
3768
|
].join(' ');
|
|
3928
3769
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
3929
|
-
return (hAsync("article", { key: '
|
|
3770
|
+
return (hAsync("article", { key: '98c5dbd033ec05d08965559e00f32d9fe18698ef', class: cardClasses, onClick: (event) => this.handleClick(event) }, hAsync("div", { key: 'e083c43e38c3c24fcd996a90267f7cd92d3651b3', class: `flex grow flex-col ${this.vertical ? 'min-h-156' : ''}` }, hAsync("div", { key: '37de1e46023b533fd8595a3077c4e68c11fb01af', class: "lg:max-w-[720px]" }, hAsync("eds-card-title", { key: 'ee31ae2804d2c17c82e8f4c0c3269ac8254331df', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.titleProject, url: this.url }), this.editorialTitle && (hAsync("span", { key: 'c6f74ba9b5b522f713e25d3339f541efa68cdddd', class: `block ${this.vertical ? 'f-ui-02' : 'mt-4 f-heading-06'}` }, this.editorialTitle))), this.categoryTitle && (hAsync("div", { key: 'ab18e55046777cf4a4f58ebd057641db9b9e0328', class: "mt-auto flex items-center gap-x-12 pt-12" }, ((_a = this.categoryTitle) === null || _a === void 0 ? void 0 : _a.length) && hAsync("eds-tag", { key: '3714ee86a74dce7f33a8f953fd726db349ba9271', label: this.categoryTitle })))), this.parsedImage && (hAsync("div", { key: '2818d15f7ab671b7b2dfb34ec3085b390150f38d', class: imageClasses }, hAsync("div", { key: '5166feef3674631298f699449b956655f38f0db9', class: "aspect-1x1 w-full" }, hAsync("eds-img", Object.assign({ key: '86555a43491da5b2aa3b287e539e603a2c2adaf3', sizes: this.vertical ? this.parsedImage.sizes || '' : '192px' }, this.parsedImage)))))));
|
|
3930
3771
|
}
|
|
3931
3772
|
get el() { return getElement(this); }
|
|
3932
3773
|
static get cmpMeta() { return {
|
|
@@ -4003,7 +3844,7 @@ class EdsCardSection {
|
|
|
4003
3844
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
4004
3845
|
*/
|
|
4005
3846
|
render() {
|
|
4006
|
-
return (hAsync("section", { key: '
|
|
3847
|
+
return (hAsync("section", { key: '1f221e1ec7c3cdd0e3aed18f6f930c2c5456c64b', class: "w-full" }, hAsync("ul", { key: '36f984994bb2dc247475c20422f7e6e7da7d058d', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (hAsync("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, hAsync("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
|
|
4007
3848
|
}
|
|
4008
3849
|
static get style() { return EdsCardSectionStyle0; }
|
|
4009
3850
|
static get cmpMeta() { return {
|
|
@@ -4032,7 +3873,7 @@ class EdsCardTags {
|
|
|
4032
3873
|
this.tags = [];
|
|
4033
3874
|
}
|
|
4034
3875
|
render() {
|
|
4035
|
-
return (hAsync("div", { key: '
|
|
3876
|
+
return (hAsync("div", { key: '272d53abb9be9086881cb2f8e99f7fb7aae1bb59', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4036
3877
|
}
|
|
4037
3878
|
static get style() { return EdsCardTagsStyle0; }
|
|
4038
3879
|
static get cmpMeta() { return {
|
|
@@ -4096,7 +3937,7 @@ class EdsCardTitle {
|
|
|
4096
3937
|
render() {
|
|
4097
3938
|
//const Tag = this.getTag();
|
|
4098
3939
|
const Heading = this.headingLevel;
|
|
4099
|
-
return (hAsync(Heading, { key: '
|
|
3940
|
+
return (hAsync(Heading, { key: 'bb97dc6dd53adda14ef251b2ec32952791438986', class: this.getTitleClass() }, hAsync("a", { key: '37b6ac0668257d27fb3f03a6225a2d48e1fd1f79', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4100
3941
|
}
|
|
4101
3942
|
static get style() { return EdsCardTitleStyle0; }
|
|
4102
3943
|
static get cmpMeta() { return {
|
|
@@ -4184,7 +4025,7 @@ class EdsCardTool {
|
|
|
4184
4025
|
});
|
|
4185
4026
|
}
|
|
4186
4027
|
render() {
|
|
4187
|
-
return (hAsync("article", { key: '
|
|
4028
|
+
return (hAsync("article", { key: 'da61b384e966b148cd1f77eec59671bc4d92e259', class: `${this.el.tagName.toLowerCase()} ${this.articleClasses()}`, onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '00702d032bc25f52b2a2c98255ceb60a1d314f4d', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, "external-link": this.external, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: 'd2b135ed422fb64f142af71330dc666e2f0c2b1f', class: "mt-8", "truncate-lines": "3", description: this.description })), this.image ? (hAsync("eds-img", { src: this.image, alt: "Sample Image", width: 200, height: 150 })) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '54111e90175754cb0c1f2eb339e86926914ca0e7', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label }))))));
|
|
4188
4029
|
}
|
|
4189
4030
|
get el() { return getElement(this); }
|
|
4190
4031
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -4235,7 +4076,7 @@ class EdsCardWrapper {
|
|
|
4235
4076
|
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
4236
4077
|
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
4237
4078
|
].join(' ');
|
|
4238
|
-
return (hAsync("article", { key: '
|
|
4079
|
+
return (hAsync("article", { key: 'f21cc9703011026652765b399e2b87b1ef80d220', class: articleClasses }, hAsync("slot", { key: '9a37adad73d2d49edcc9ca9222d5b188202c5612' }), this.hasSlot('footer') && (hAsync("div", { key: '87addfc052ed4ae33736724fbd8fbc8aca873b4d', class: "mt-auto" }, hAsync("slot", { key: '2e48677f42ac2aa951bc1a82afa9291fea3ddd72', name: "footer" })))));
|
|
4239
4080
|
}
|
|
4240
4081
|
get el() { return getElement(this); }
|
|
4241
4082
|
static get cmpMeta() { return {
|
|
@@ -6660,7 +6501,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
6660
6501
|
const edsCodeBlockCss = ":host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*=\"language-\"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.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)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
|
|
6661
6502
|
var EdsCodeBlockStyle0 = edsCodeBlockCss;
|
|
6662
6503
|
|
|
6663
|
-
//import { sendAnalytics } from '
|
|
6504
|
+
//import { sendAnalytics } from '../../utils/analytics';
|
|
6664
6505
|
/**
|
|
6665
6506
|
* A component that displays a code block with syntax highlighting.
|
|
6666
6507
|
*
|
|
@@ -6732,11 +6573,11 @@ class EdsCodeBlock {
|
|
|
6732
6573
|
return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
|
|
6733
6574
|
}
|
|
6734
6575
|
// eslint-disable-next-line
|
|
6735
|
-
console.warn(`Unsupported or missing language: ${this.language}`);
|
|
6576
|
+
//console.warn(`Unsupported or missing language: ${this.language}`);
|
|
6736
6577
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6737
6578
|
}
|
|
6738
6579
|
render() {
|
|
6739
|
-
return (hAsync("div", { key: '
|
|
6580
|
+
return (hAsync("div", { key: 'cb379e82bcf71345945b0b88397650ecd4992770', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: '945046d4fd747cd64a83155b421a897e380cc612', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '3f6c7e996101f0bb83fb8c9e6991a205a0b268c8', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: '8ad9beb61058f29e688f6777233c61f7fb3ccfe8', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: 'a4f9a07906e1c2d9febb7ae789a3eed76dc422e9', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: 'e31339126dd3cc885511aaa2bdf6f06f3a113c74', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '7efacd276f26a00f0f61793f6b8748259e1614b5', innerHTML: this.getHighlightedCode() })))));
|
|
6740
6581
|
}
|
|
6741
6582
|
get el() { return getElement(this); }
|
|
6742
6583
|
static get style() { return EdsCodeBlockStyle0; }
|
|
@@ -6786,7 +6627,11 @@ const EdsDocsInstallation = () => (hAsync("div", null,
|
|
|
6786
6627
|
hAsync("div", { class: "my-8" },
|
|
6787
6628
|
hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
6788
6629
|
hAsync("div", { class: "my-8" },
|
|
6789
|
-
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))
|
|
6630
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })),
|
|
6631
|
+
hAsync("div", { class: "my-8" },
|
|
6632
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })),
|
|
6633
|
+
hAsync("div", { class: "my-8" },
|
|
6634
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" }))));
|
|
6790
6635
|
|
|
6791
6636
|
const EdsDocsReact = () => (hAsync("div", null,
|
|
6792
6637
|
hAsync("h2", null, "React Wrappers"),
|
|
@@ -6794,7 +6639,7 @@ const EdsDocsReact = () => (hAsync("div", null,
|
|
|
6794
6639
|
hAsync("div", { class: "my-8" },
|
|
6795
6640
|
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
6796
6641
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
6797
|
-
hAsync("eds-code-block", { code: '\nimport {
|
|
6642
|
+
hAsync("eds-code-block", { code: '\nimport {\n EdsHeader,\n EdsFullscreenMenu,\n EdsUser\n} from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n // Add any other properties your user object might have\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n };\n }, []);\n\n return (\n <div>\n <EdsHeader\n homeUrl="/"\n menuEnabled={true}\n inverseHeader={false}\n links={[\n { label: "About", url: "#" },\n { label: "Focus Areas", url: "#" },\n { label: "News & Events", url: "#" },\n { label: "Contact", url: "#" }\n ]}\n >\n <div className="px-16">\n <EdsUser\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n ></EdsUser>\n </div>\n </EdsHeader>\n\n <EdsFullscreenMenu\n home-url="/"\n links={[\n { label: "About", url: "#" },\n { label: "Focus Areas", url: "#" },\n { label: "News & Events", url: "#" },\n { label: "Contact", url: "#" }\n ]}\n ></EdsFullscreenMenu>\n \n <div>\n User is{" "}\n {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n\n <div id="main"></div>\n </div>\n );\n}\n\nexport default App;\n\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6798
6643
|
|
|
6799
6644
|
const EdsDocsVue = () => (hAsync("div", null,
|
|
6800
6645
|
hAsync("h2", null, "Vue Wrappers"),
|
|
@@ -6862,7 +6707,7 @@ class EdsComponentsSection {
|
|
|
6862
6707
|
}
|
|
6863
6708
|
}
|
|
6864
6709
|
render() {
|
|
6865
|
-
return hAsync("div", { key: '
|
|
6710
|
+
return hAsync("div", { key: '7e582a0eeafc2687229454532b5a7f66f91c1856', class: "container" }, this.renderContent());
|
|
6866
6711
|
}
|
|
6867
6712
|
static get cmpMeta() { return {
|
|
6868
6713
|
"$flags$": 0,
|
|
@@ -6903,7 +6748,7 @@ class EdsDocsContent {
|
|
|
6903
6748
|
}
|
|
6904
6749
|
}
|
|
6905
6750
|
render() {
|
|
6906
|
-
return hAsync("div", { key: '
|
|
6751
|
+
return hAsync("div", { key: 'b140f7650e5e01711dc0778b04af83f9d004efc7', class: "container" }, this.renderContent());
|
|
6907
6752
|
}
|
|
6908
6753
|
static get cmpMeta() { return {
|
|
6909
6754
|
"$flags$": 0,
|
|
@@ -6936,7 +6781,7 @@ class EdsDocsPalettes {
|
|
|
6936
6781
|
}
|
|
6937
6782
|
}
|
|
6938
6783
|
render() {
|
|
6939
|
-
return hAsync("div", { key: '
|
|
6784
|
+
return hAsync("div", { key: 'e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a', class: "container" }, this.renderContent());
|
|
6940
6785
|
}
|
|
6941
6786
|
static get cmpMeta() { return {
|
|
6942
6787
|
"$flags$": 0,
|
|
@@ -7062,14 +6907,14 @@ class EdsDropdown {
|
|
|
7062
6907
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
7063
6908
|
*/
|
|
7064
6909
|
render() {
|
|
7065
|
-
return (hAsync("div", { key: '
|
|
6910
|
+
return (hAsync("div", { key: '84f4cea78ea1c40c7897a356fe03ac83922fccb8', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: '99dc51632dc82830054502a2d6d77d9fcefe9337', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: 'a63613a7ecf709fd1d22d77da4b2d286905fef3e', role: "menu", class: {
|
|
7066
6911
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
7067
6912
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
7068
6913
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
7069
6914
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
7070
6915
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
7071
6916
|
'rounded-lg': this.rounded
|
|
7072
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6917
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'dda70b865ed03dc7ad36a32934587bbcb0a16c1b' }))));
|
|
7073
6918
|
}
|
|
7074
6919
|
get host() { return getElement(this); }
|
|
7075
6920
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7146,7 +6991,7 @@ class EdsFooter {
|
|
|
7146
6991
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7147
6992
|
*/
|
|
7148
6993
|
render() {
|
|
7149
|
-
return (hAsync("footer", { key: '
|
|
6994
|
+
return (hAsync("footer", { key: 'ba6500548e8f719b8670063918c61b391ddb8387', class: `${this.extraClass} pb-banner` }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, hAsync("div", { class: "container pb-20 xl:pb-40 " }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })), hAsync("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, hAsync("div", { key: '1221cca6d40c4de8ed7ceefa84198817bf904630', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, hAsync("div", { key: 'ad55b938fb2961074822d6bf458f0ea7a15baa84', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '91c13fdd98508a812e5dcfa86056b5adc035623d', class: "flex items-center gap-x-12" }, hAsync("a", { key: '4ddd8715a5cabbff2209f8ceb389900c9eddcd74', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, hAsync("eds-img", { key: 'df5f16284084d9171cd3d567dd249a0ef98bde79', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), hAsync("div", { key: '0ff4328cc30f06c1a85ffc726d5b6b0dc53e49b9', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, hAsync("p", { key: '2cb2b4f072a141e58c9a2185c9179d475f9690bd' }, this.fundedBy), hAsync("div", { key: 'b31d1e18933fb1be11d8454f9a5301dedc839015', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, hAsync("span", { key: 'aab95785cfb2bc7d490ac9426ef5e421f9418dc9', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (hAsync("button", { key: 'fbd5bf3560faf0ee34d740bda423595c3cd21ad8', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), hAsync("div", { key: '0427234b6679ae05b673a5c6efb8447306f61876', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
|
|
7150
6995
|
}
|
|
7151
6996
|
static get style() { return EdsFooterStyle0; }
|
|
7152
6997
|
static get cmpMeta() { return {
|
|
@@ -7262,13 +7107,20 @@ class EdsForm {
|
|
|
7262
7107
|
this.hasError = Object.keys(newErrors).length > 0;
|
|
7263
7108
|
};
|
|
7264
7109
|
this.handleSubmit = async (e) => {
|
|
7265
|
-
var _a;
|
|
7110
|
+
var _a, _b, _c;
|
|
7266
7111
|
e.preventDefault();
|
|
7267
7112
|
if (this.isSubmitting) {
|
|
7268
7113
|
return;
|
|
7269
7114
|
}
|
|
7270
7115
|
this.validateForm();
|
|
7271
7116
|
if (this.hasError) {
|
|
7117
|
+
sendAnalytics({
|
|
7118
|
+
category: 'ui-component',
|
|
7119
|
+
parentContext: null,
|
|
7120
|
+
tag: this.el.tagName.toLowerCase(),
|
|
7121
|
+
name: `${(_a = this.submitBtnLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()}/error` || '',
|
|
7122
|
+
action: 'click'
|
|
7123
|
+
});
|
|
7272
7124
|
this.alertMessage = this.errorMessage;
|
|
7273
7125
|
return;
|
|
7274
7126
|
}
|
|
@@ -7289,7 +7141,7 @@ class EdsForm {
|
|
|
7289
7141
|
formData.set('form_url', window.location.href);
|
|
7290
7142
|
}
|
|
7291
7143
|
if (this.authUser) {
|
|
7292
|
-
formData.set('form_user', (
|
|
7144
|
+
formData.set('form_user', (_b = this.authUser) === null || _b === void 0 ? void 0 : _b.email);
|
|
7293
7145
|
}
|
|
7294
7146
|
/*const formDataObject = Object.fromEntries((formData as any).entries());
|
|
7295
7147
|
console.log(JSON.stringify(formDataObject));*/
|
|
@@ -7315,6 +7167,13 @@ class EdsForm {
|
|
|
7315
7167
|
//this.alertMessage = data.message || this.successMessage;
|
|
7316
7168
|
toast.show(data.message || this.successMessage, 'success');
|
|
7317
7169
|
this.formEl.reset();
|
|
7170
|
+
sendAnalytics({
|
|
7171
|
+
category: 'ui-component',
|
|
7172
|
+
parentContext: null,
|
|
7173
|
+
tag: this.el.tagName.toLowerCase(),
|
|
7174
|
+
name: `${(_c = this.submitBtnLabel) === null || _c === void 0 ? void 0 : _c.toLowerCase()}/success` || '',
|
|
7175
|
+
action: 'click'
|
|
7176
|
+
});
|
|
7318
7177
|
}
|
|
7319
7178
|
catch (err) {
|
|
7320
7179
|
this.hasError = true;
|
|
@@ -7355,20 +7214,21 @@ class EdsForm {
|
|
|
7355
7214
|
componentDidLoad() {
|
|
7356
7215
|
this.parseFields(this.fields);
|
|
7357
7216
|
// Emit context for each eds-link element after the component is fully loaded
|
|
7358
|
-
const links = this.el.querySelectorAll('eds-button');
|
|
7217
|
+
/*const links = this.el.querySelectorAll('eds-button');
|
|
7359
7218
|
links.forEach((link) => {
|
|
7360
|
-
|
|
7361
|
-
})
|
|
7362
|
-
}
|
|
7363
|
-
emitContext(linkElement) {
|
|
7364
|
-
const event = new CustomEvent('parentContext', {
|
|
7365
|
-
detail: {
|
|
7366
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
7367
|
-
identifier: null
|
|
7368
|
-
}
|
|
7369
|
-
});
|
|
7370
|
-
linkElement.dispatchEvent(event);
|
|
7219
|
+
this.emitContext(link);
|
|
7220
|
+
});*/
|
|
7371
7221
|
}
|
|
7222
|
+
/*emitContext(linkElement: HTMLElement) {
|
|
7223
|
+
const event = new CustomEvent<ParentContextDetail>('parentContext', {
|
|
7224
|
+
detail: {
|
|
7225
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
7226
|
+
identifier: null
|
|
7227
|
+
}
|
|
7228
|
+
});
|
|
7229
|
+
|
|
7230
|
+
linkElement.dispatchEvent(event);
|
|
7231
|
+
}*/
|
|
7372
7232
|
// Visibility helper
|
|
7373
7233
|
isFieldVisible(field) {
|
|
7374
7234
|
if (!field.condition) {
|
|
@@ -7533,13 +7393,13 @@ class EdsForm {
|
|
|
7533
7393
|
render() {
|
|
7534
7394
|
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7535
7395
|
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7536
|
-
return (hAsync("form", { key: '
|
|
7396
|
+
return (hAsync("form", { key: '3d4ae34d48c0551f9de6dacb50ceee15b487b5de', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, hAsync("div", { key: '344c56dcba3de5a1b55255d794a78fb0f19d04b5' }, hAsync("slot", { key: '3ca6d203458d67fa66840fac55f94d71acc2ee4d' }), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
|
|
7537
7397
|
var _a, _b;
|
|
7538
7398
|
if (!this.isFieldVisible(field)) {
|
|
7539
7399
|
return null;
|
|
7540
7400
|
}
|
|
7541
7401
|
return (hAsync("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, type: field.type, icon: field.icon || null, required: field.required, maxLength: field.maxlength, hint: field.hint, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
|
|
7542
|
-
})), this.submitBtn && (hAsync("div", { key: '
|
|
7402
|
+
})), this.submitBtn && (hAsync("div", { key: '22915285f3522f6d260e358eea964c59a9557a55', class: "mt-20" }, hAsync("eds-button", { key: '9e2191ba8cc49d7ac2a6588c0fa468214773c791', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated), loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (hAsync("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (hAsync("div", { key: '8045c3dff26286a6735157b82afd56ec9001ba14', class: "mt-20" }, hAsync("eds-alert", { key: 'dc8c8f74e8aada9023f110bb862afee1fb629601', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
|
|
7543
7403
|
}
|
|
7544
7404
|
get el() { return getElement(this); }
|
|
7545
7405
|
static get watchers() { return {
|
|
@@ -7669,7 +7529,7 @@ class EdsFrame {
|
|
|
7669
7529
|
return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
|
|
7670
7530
|
}
|
|
7671
7531
|
render() {
|
|
7672
|
-
return (hAsync("div", { key: '
|
|
7532
|
+
return (hAsync("div", { key: '20786dd40414d29f98d496e29720bd78b9d7cf8e', class: this.articleClasses() }, hAsync("div", { key: '208612330c9d2872c68aeb310e164c8a915a51ef', class: "effect-height flex items-center justify-between py-8 px-12" }, hAsync("span", { key: 'ada2a40384ffaffadc8887580aa6184422008a68', class: "f-ui-02" }, this.frameLabel), !this.iframeError ? (hAsync("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: true, disabled: false, icon: "arrow-diagonal" })) : null), hAsync("div", { key: '26a5ae1c81b60b05b6f4859ffa4dbd13bb2557f3', class: "border-softer border-t-2" }, this.iframeError ? (hAsync("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage)) : (hAsync("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: true })))));
|
|
7673
7533
|
}
|
|
7674
7534
|
get el() { return getElement(this); }
|
|
7675
7535
|
static get cmpMeta() { return {
|
|
@@ -7835,11 +7695,7 @@ class EdsHeader {
|
|
|
7835
7695
|
this.homeUrl = '/';
|
|
7836
7696
|
this.links = undefined;
|
|
7837
7697
|
this.inverseHeader = false;
|
|
7838
|
-
this.userFeature = false;
|
|
7839
7698
|
this.menuEnabled = false;
|
|
7840
|
-
this.keycloakUrl = undefined;
|
|
7841
|
-
this.keycloakRealm = undefined;
|
|
7842
|
-
this.keycloakClientId = undefined;
|
|
7843
7699
|
this.isMenuOpen = false;
|
|
7844
7700
|
this.isUserMenuOpen = false;
|
|
7845
7701
|
this.isAuthenticated = false;
|
|
@@ -7912,8 +7768,8 @@ class EdsHeader {
|
|
|
7912
7768
|
return [];
|
|
7913
7769
|
}
|
|
7914
7770
|
render() {
|
|
7915
|
-
return (hAsync("header", { key: '
|
|
7916
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '
|
|
7771
|
+
return (hAsync("header", { key: 'ce002da29cee5446f64694ba93ec67f89c180ac4', class: `flex items-center justify-between relative z-10
|
|
7772
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '579593f3180b27d129fd9ca380d6b74d0efcbd1e', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: 'c72d87a2ff7cd1ea2b0390cd364e376d1f52c67f', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: '6755e304c48624049af8426d4d9b19d0cb156dda', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: '390f9b6c6c950719598eec88b4befb4224cb0c03', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: 'bc7b093739cc3058e4eb3d4eddbb0b49856b5710' }), this.menuEnabled ? (hAsync("div", { class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
|
|
7917
7773
|
}
|
|
7918
7774
|
get hostEl() { return getElement(this); }
|
|
7919
7775
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -7924,11 +7780,7 @@ class EdsHeader {
|
|
|
7924
7780
|
"homeUrl": [513, "home-url"],
|
|
7925
7781
|
"links": [1],
|
|
7926
7782
|
"inverseHeader": [4, "inverse-header"],
|
|
7927
|
-
"userFeature": [4, "user-feature"],
|
|
7928
7783
|
"menuEnabled": [4, "menu-enabled"],
|
|
7929
|
-
"keycloakUrl": [1, "keycloak-url"],
|
|
7930
|
-
"keycloakRealm": [1, "keycloak-realm"],
|
|
7931
|
-
"keycloakClientId": [1, "keycloak-client-id"],
|
|
7932
7784
|
"isMenuOpen": [32],
|
|
7933
7785
|
"isUserMenuOpen": [32],
|
|
7934
7786
|
"isAuthenticated": [32]
|
|
@@ -9746,7 +9598,7 @@ class EdsIconArrowDiagonal {
|
|
|
9746
9598
|
this.addClass = '';
|
|
9747
9599
|
}
|
|
9748
9600
|
render() {
|
|
9749
|
-
return hAsync("span", { key: '
|
|
9601
|
+
return hAsync("span", { key: 'd85a4d425e0c255efe4763d4a13f13b6ff727c2c', class: this.addClass, innerHTML: arrowDiagonal });
|
|
9750
9602
|
}
|
|
9751
9603
|
static get cmpMeta() { return {
|
|
9752
9604
|
"$flags$": 0,
|
|
@@ -9769,7 +9621,7 @@ class EdsIconArrowRight {
|
|
|
9769
9621
|
this.class = '';
|
|
9770
9622
|
}
|
|
9771
9623
|
render() {
|
|
9772
|
-
return hAsync("span", { key: '
|
|
9624
|
+
return hAsync("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
|
|
9773
9625
|
}
|
|
9774
9626
|
static get cmpMeta() { return {
|
|
9775
9627
|
"$flags$": 0,
|
|
@@ -9792,7 +9644,7 @@ class EdsIconBluesky {
|
|
|
9792
9644
|
this.class = '';
|
|
9793
9645
|
}
|
|
9794
9646
|
render() {
|
|
9795
|
-
return hAsync("span", { key: '
|
|
9647
|
+
return hAsync("span", { key: '845a157678b9d059b2c9bd8a6265d3a62f33c31a', class: this.class, innerHTML: bluesky });
|
|
9796
9648
|
}
|
|
9797
9649
|
static get cmpMeta() { return {
|
|
9798
9650
|
"$flags$": 0,
|
|
@@ -9815,7 +9667,7 @@ class EdsIconChevronDown {
|
|
|
9815
9667
|
this.class = '';
|
|
9816
9668
|
}
|
|
9817
9669
|
render() {
|
|
9818
|
-
return hAsync("span", { key: '
|
|
9670
|
+
return hAsync("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
|
|
9819
9671
|
}
|
|
9820
9672
|
static get cmpMeta() { return {
|
|
9821
9673
|
"$flags$": 0,
|
|
@@ -9838,7 +9690,7 @@ class EdsIconChevronLeft {
|
|
|
9838
9690
|
this.class = '';
|
|
9839
9691
|
}
|
|
9840
9692
|
render() {
|
|
9841
|
-
return hAsync("span", { key: '
|
|
9693
|
+
return hAsync("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
|
|
9842
9694
|
}
|
|
9843
9695
|
static get cmpMeta() { return {
|
|
9844
9696
|
"$flags$": 0,
|
|
@@ -9861,7 +9713,7 @@ class EdsIconChevronRight {
|
|
|
9861
9713
|
this.class = '';
|
|
9862
9714
|
}
|
|
9863
9715
|
render() {
|
|
9864
|
-
return hAsync("span", { key: '
|
|
9716
|
+
return hAsync("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
|
|
9865
9717
|
}
|
|
9866
9718
|
static get cmpMeta() { return {
|
|
9867
9719
|
"$flags$": 0,
|
|
@@ -9884,7 +9736,7 @@ class EdsIconChevronUp {
|
|
|
9884
9736
|
this.class = '';
|
|
9885
9737
|
}
|
|
9886
9738
|
render() {
|
|
9887
|
-
return hAsync("span", { key: '
|
|
9739
|
+
return hAsync("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
|
|
9888
9740
|
}
|
|
9889
9741
|
static get cmpMeta() { return {
|
|
9890
9742
|
"$flags$": 0,
|
|
@@ -9907,7 +9759,7 @@ class EdsIconClose {
|
|
|
9907
9759
|
this.class = '';
|
|
9908
9760
|
}
|
|
9909
9761
|
render() {
|
|
9910
|
-
return hAsync("span", { key: '
|
|
9762
|
+
return hAsync("span", { key: '947f6615e8ee155be98b379a9c771cc0d453becd', class: this.class, innerHTML: close });
|
|
9911
9763
|
}
|
|
9912
9764
|
static get cmpMeta() { return {
|
|
9913
9765
|
"$flags$": 0,
|
|
@@ -9930,7 +9782,7 @@ class EdsIconCopy {
|
|
|
9930
9782
|
this.class = '';
|
|
9931
9783
|
}
|
|
9932
9784
|
render() {
|
|
9933
|
-
return hAsync("span", { key: '
|
|
9785
|
+
return hAsync("span", { key: '1e23d4493d5a1d07bc794da20cc4e445a87d56b0', class: this.class, innerHTML: copy });
|
|
9934
9786
|
}
|
|
9935
9787
|
static get cmpMeta() { return {
|
|
9936
9788
|
"$flags$": 0,
|
|
@@ -9953,7 +9805,7 @@ class EdsIconEu {
|
|
|
9953
9805
|
this.class = '';
|
|
9954
9806
|
}
|
|
9955
9807
|
render() {
|
|
9956
|
-
return hAsync("span", { key: '
|
|
9808
|
+
return hAsync("span", { key: '14254e1b9d43562e6f3f943de22aa8dd4d89a044', class: this.class, innerHTML: euSvg });
|
|
9957
9809
|
}
|
|
9958
9810
|
static get cmpMeta() { return {
|
|
9959
9811
|
"$flags$": 0,
|
|
@@ -9976,7 +9828,7 @@ class EdsIconFacebook {
|
|
|
9976
9828
|
this.class = '';
|
|
9977
9829
|
}
|
|
9978
9830
|
render() {
|
|
9979
|
-
return hAsync("span", { key: '
|
|
9831
|
+
return hAsync("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: facebook });
|
|
9980
9832
|
}
|
|
9981
9833
|
static get cmpMeta() { return {
|
|
9982
9834
|
"$flags$": 0,
|
|
@@ -9999,7 +9851,7 @@ class EdsIconGitlab {
|
|
|
9999
9851
|
this.class = '';
|
|
10000
9852
|
}
|
|
10001
9853
|
render() {
|
|
10002
|
-
return hAsync("span", { key: '
|
|
9854
|
+
return hAsync("span", { key: '128f9265dfc1aee95586ba0a3fd20dd131678893', class: this.class, innerHTML: gitlabBlack });
|
|
10003
9855
|
}
|
|
10004
9856
|
static get cmpMeta() { return {
|
|
10005
9857
|
"$flags$": 0,
|
|
@@ -10022,7 +9874,7 @@ class EdsIconLinkedin {
|
|
|
10022
9874
|
this.class = '';
|
|
10023
9875
|
}
|
|
10024
9876
|
render() {
|
|
10025
|
-
return hAsync("span", { key: '
|
|
9877
|
+
return hAsync("span", { key: '0f9675a371ca7bb460882c04bf2bb0c103273a0d', class: this.class, innerHTML: linkedin });
|
|
10026
9878
|
}
|
|
10027
9879
|
static get cmpMeta() { return {
|
|
10028
9880
|
"$flags$": 0,
|
|
@@ -10045,7 +9897,7 @@ class EdsIconLoader {
|
|
|
10045
9897
|
this.class = '';
|
|
10046
9898
|
}
|
|
10047
9899
|
render() {
|
|
10048
|
-
return hAsync("span", { key: '
|
|
9900
|
+
return hAsync("span", { key: 'f11c60068baa2d2398056b3d7f04129d9deb4517', class: this.class, innerHTML: loader });
|
|
10049
9901
|
}
|
|
10050
9902
|
static get cmpMeta() { return {
|
|
10051
9903
|
"$flags$": 0,
|
|
@@ -10068,7 +9920,7 @@ class EdsIconMastodon {
|
|
|
10068
9920
|
this.class = '';
|
|
10069
9921
|
}
|
|
10070
9922
|
render() {
|
|
10071
|
-
return hAsync("span", { key: '
|
|
9923
|
+
return hAsync("span", { key: '1f68e5d0b6f8455f40bf94f6095eceff00b7887e', class: this.class, innerHTML: mastodon });
|
|
10072
9924
|
}
|
|
10073
9925
|
static get cmpMeta() { return {
|
|
10074
9926
|
"$flags$": 0,
|
|
@@ -10091,7 +9943,7 @@ class EdsIconMenu {
|
|
|
10091
9943
|
this.class = '';
|
|
10092
9944
|
}
|
|
10093
9945
|
render() {
|
|
10094
|
-
return hAsync("span", { key: '
|
|
9946
|
+
return hAsync("span", { key: '0084602c8e870b70caa66479f71bed3bd0cce94e', class: this.class, innerHTML: menu });
|
|
10095
9947
|
}
|
|
10096
9948
|
static get cmpMeta() { return {
|
|
10097
9949
|
"$flags$": 0,
|
|
@@ -10114,7 +9966,7 @@ class EdsIconMore {
|
|
|
10114
9966
|
this.class = '';
|
|
10115
9967
|
}
|
|
10116
9968
|
render() {
|
|
10117
|
-
return hAsync("span", { key: '
|
|
9969
|
+
return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: more });
|
|
10118
9970
|
}
|
|
10119
9971
|
static get cmpMeta() { return {
|
|
10120
9972
|
"$flags$": 0,
|
|
@@ -10137,7 +9989,7 @@ class EdsIconSearch {
|
|
|
10137
9989
|
this.class = '';
|
|
10138
9990
|
}
|
|
10139
9991
|
render() {
|
|
10140
|
-
return hAsync("span", { key: '
|
|
9992
|
+
return hAsync("span", { key: '42acc730afd956c2884b0789b3ea37ccf323630b', class: this.class, innerHTML: search });
|
|
10141
9993
|
}
|
|
10142
9994
|
static get cmpMeta() { return {
|
|
10143
9995
|
"$flags$": 0,
|
|
@@ -10160,7 +10012,7 @@ class EdsIconSuccess {
|
|
|
10160
10012
|
this.class = '';
|
|
10161
10013
|
}
|
|
10162
10014
|
render() {
|
|
10163
|
-
return hAsync("span", { key: '
|
|
10015
|
+
return hAsync("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: success });
|
|
10164
10016
|
}
|
|
10165
10017
|
static get cmpMeta() { return {
|
|
10166
10018
|
"$flags$": 0,
|
|
@@ -10183,7 +10035,7 @@ class EdsIconTwitter {
|
|
|
10183
10035
|
this.class = '';
|
|
10184
10036
|
}
|
|
10185
10037
|
render() {
|
|
10186
|
-
return hAsync("span", { key: '
|
|
10038
|
+
return hAsync("span", { key: 'a06ab2e79a1ec7603244ec09649ccc2c9ea1950c', class: this.class, innerHTML: twitter });
|
|
10187
10039
|
}
|
|
10188
10040
|
static get cmpMeta() { return {
|
|
10189
10041
|
"$flags$": 0,
|
|
@@ -10206,7 +10058,7 @@ class EdsIconUser {
|
|
|
10206
10058
|
this.class = '';
|
|
10207
10059
|
}
|
|
10208
10060
|
render() {
|
|
10209
|
-
return hAsync("span", { key: '
|
|
10061
|
+
return hAsync("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: user });
|
|
10210
10062
|
}
|
|
10211
10063
|
static get cmpMeta() { return {
|
|
10212
10064
|
"$flags$": 0,
|
|
@@ -10285,7 +10137,7 @@ class EdsIconYoutube {
|
|
|
10285
10137
|
this.class = '';
|
|
10286
10138
|
}
|
|
10287
10139
|
render() {
|
|
10288
|
-
return hAsync("span", { key: '
|
|
10140
|
+
return hAsync("span", { key: '4eba69bfec926b7a3490feee15b5947a8ab8a7b9', class: this.class, innerHTML: youtube });
|
|
10289
10141
|
}
|
|
10290
10142
|
static get cmpMeta() { return {
|
|
10291
10143
|
"$flags$": 0,
|
|
@@ -10329,11 +10181,16 @@ class EdsImg {
|
|
|
10329
10181
|
this.loaded = true;
|
|
10330
10182
|
this.showBg = false;
|
|
10331
10183
|
};
|
|
10184
|
+
// On error, remove the background effect so users know the image failed to load.
|
|
10185
|
+
this.handleError = () => {
|
|
10186
|
+
this.loaded = true;
|
|
10187
|
+
this.showBg = false;
|
|
10188
|
+
};
|
|
10332
10189
|
this.handleTransitionEnd = () => {
|
|
10333
10190
|
this.showBg = false;
|
|
10334
10191
|
};
|
|
10335
10192
|
this.src = undefined;
|
|
10336
|
-
this.alt =
|
|
10193
|
+
this.alt = '';
|
|
10337
10194
|
this.width = undefined;
|
|
10338
10195
|
this.height = undefined;
|
|
10339
10196
|
this.srcset = undefined;
|
|
@@ -10356,14 +10213,14 @@ class EdsImg {
|
|
|
10356
10213
|
imgOpts['loading'] = 'lazy';
|
|
10357
10214
|
imgOpts['decoding'] = 'async';
|
|
10358
10215
|
}
|
|
10359
|
-
return (hAsync("div", { key: '
|
|
10216
|
+
return (hAsync("div", { key: '733be8df2b9e3db1b5b13aaa47c16a9c26f345d7', class: {
|
|
10360
10217
|
'items-center justify-center': true,
|
|
10361
10218
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
10362
|
-
} }, hAsync("picture", { key: '
|
|
10219
|
+
} }, hAsync("picture", { key: '3a6a0289bcf8a2851278eb6c6fbe64bfe7004014' }, this.formats.map((format) => (hAsync("source", { type: format.type, srcSet: format.srcset, media: format.media, sizes: this.sizes }))), hAsync("img", Object.assign({ key: 'b5d92e20a28f67a13d926f081b5f85dbd981ff78', ref: (el) => (this.img = el), class: {
|
|
10363
10220
|
'effect-opacity object-cover object-center': true,
|
|
10364
10221
|
'opacity-100': this.loaded,
|
|
10365
10222
|
'opacity-0': !this.loaded
|
|
10366
|
-
}, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, imgOpts, { onLoad: this.handleLoad, onTransitionEnd: this.handleTransitionEnd })))));
|
|
10223
|
+
}, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, imgOpts, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd })))));
|
|
10367
10224
|
}
|
|
10368
10225
|
get imgElement() { return getElement(this); }
|
|
10369
10226
|
static get style() { return EdsImgStyle0; }
|
|
@@ -10440,12 +10297,12 @@ class EdsInput {
|
|
|
10440
10297
|
render() {
|
|
10441
10298
|
const withIcon = !!this.icon;
|
|
10442
10299
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
10443
|
-
return (hAsync("div", { key: '
|
|
10300
|
+
return (hAsync("div", { key: 'e67c7566fe5a1574d6ff0fff61178b163c5881f9', class: "relative flex items-center" }, this.type === 'textarea' ? (hAsync("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${withIcon ? 'input-with-icon' : ''} ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })) : this.type === 'select' ? (hAsync("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? 'input-error' : ''} ${this.extraClass}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((option) => (hAsync("option", { value: option.value, selected: option.value === this.innerVal, key: option.value }, option.label))))) : (hAsync("input", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ['radio', 'checkbox'].includes(this.type) ? this.checked : undefined, class: `
|
|
10444
10301
|
${this.extraClass || ''}
|
|
10445
10302
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
10446
10303
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
10447
10304
|
${this.error ? 'input-error' : ''}
|
|
10448
|
-
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '
|
|
10305
|
+
`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": describedBy, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === 'textarea' && (hAsync("span", { key: '35bc563715e65073898259d12b4ef2c467b14439', class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? 'input-counter-error' : ''}` }, this.maxLength)), this.icon && (hAsync("eds-icon-wrapper", { key: '54cab667a1b8b1bb906c2359cdbd2fb23171ba8b', class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled ? 'text-lightest' : 'text-lightest'}`, icon: this.icon }))));
|
|
10449
10306
|
}
|
|
10450
10307
|
get el() { return getElement(this); }
|
|
10451
10308
|
static get watchers() { return {
|
|
@@ -10546,11 +10403,11 @@ class EdsInputField {
|
|
|
10546
10403
|
icon: this.icon,
|
|
10547
10404
|
checked: this.checked
|
|
10548
10405
|
};
|
|
10549
|
-
return (hAsync("div", { key: '
|
|
10406
|
+
return (hAsync("div", { key: '6c2e228bc3940212ad4df6ed99bdd69b99342afb', class: "space-y-8" }, this.type === 'checkbox' || this.type === 'radio' ? (this.parsedOptions.length > 0 ? (hAsync("fieldset", { class: "space-y-4 mt-8" }, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.parsedOptions.map((option) => (hAsync("div", { class: "flex items-center gap-x-2", key: option.value }, hAsync("eds-input", Object.assign({}, inputOpts, { value: option.value })), hAsync("eds-input-label", { name: `${this.name}-${option.value}`, label: option.label })))))) : (hAsync("div", { class: "flex items-center gap-x-8" }, hAsync("eds-input", Object.assign({}, inputOpts)), this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }))))) : (hAsync("div", null, hAsync("div", { class: "flex justify-between" }, this.label && (hAsync("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })), this.hint && (hAsync("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint))), this.type === 'select' ? (hAsync("eds-input-select", Object.assign({}, inputOpts, { options: this.parsedOptions }))) : this.type === 'file' ? (hAsync("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required })) : this.type === 'search' ? (hAsync("eds-input-search", { name: "search-box" })) : this.type === 'range' ? ((() => {
|
|
10550
10407
|
var _a, _b, _c;
|
|
10551
10408
|
const opt = this.parsedOptions;
|
|
10552
10409
|
return (hAsync("eds-input-range", { min: (_a = opt[0]) === null || _a === void 0 ? void 0 : _a.value, max: (_b = opt[1]) === null || _b === void 0 ? void 0 : _b.value, step: (_c = opt[2]) === null || _c === void 0 ? void 0 : _c.value, name: "range-slider" }));
|
|
10553
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '
|
|
10410
|
+
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '16f2dd9061fc779b081c973e25d1bf9fb26fcf8b', id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
|
|
10554
10411
|
}
|
|
10555
10412
|
static get style() { return EdsInputFieldStyle0; }
|
|
10556
10413
|
static get cmpMeta() { return {
|
|
@@ -10596,7 +10453,7 @@ class EdsInputFooter {
|
|
|
10596
10453
|
this.link = undefined;
|
|
10597
10454
|
}
|
|
10598
10455
|
render() {
|
|
10599
|
-
return (hAsync("div", { key: '
|
|
10456
|
+
return (hAsync("div", { key: 'c088f6c9bf4c3ca1efce1a1ff41ece8d4f8a6756', class: "space-y-4" }, this.error && this.errorMessage && (hAsync("div", { key: '7404a329f2b5da7f9444f986178c5e4dbbe838ad', id: `error_${this.name}`, class: "text-error flex items-center" }, hAsync("eds-icon-wrapper", { key: '8f9d83b1d8dda824cac17d9c2ce3cb6cc5a58945', icon: "warning" }), hAsync("p", { key: 'f223076bc18088e264b4888d18bb9673f803d875', class: "f-ui-04 ml-4", innerHTML: this.errorMessage }))), this.message && hAsync("p", { key: '40bdbc35ba4985802177d7f9b2c44f893e4cb40c', id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && (hAsync("a", { key: 'e6297a49f63ce2ab14bac8df0186fb42fab4416d', href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label))));
|
|
10600
10457
|
}
|
|
10601
10458
|
static get cmpMeta() { return {
|
|
10602
10459
|
"$flags$": 0,
|
|
@@ -10626,7 +10483,7 @@ class EdsInputLabel {
|
|
|
10626
10483
|
this.disabled = false;
|
|
10627
10484
|
}
|
|
10628
10485
|
render() {
|
|
10629
|
-
return (hAsync("label", { key: '
|
|
10486
|
+
return (hAsync("label", { key: '38be7206acfad300657a99218c3138e91069d710', htmlFor: this.name, class: `input-label ${this.disabled ? 'text-lighter' : ''}` }, this.label, this.required && (hAsync("span", { key: '1e80610f66d51a1c46918086bb5b5153c0e35a3c' }, hAsync("span", { key: '83d15d62c0539f1847746b4a2b9c9971b4852da8', "aria-hidden": "true" }, "*"), hAsync("span", { key: '3f45f5a436c41cf7e55570a2abe8844c8daa7525', class: "sr-only" }, "required")))));
|
|
10630
10487
|
}
|
|
10631
10488
|
static get cmpMeta() { return {
|
|
10632
10489
|
"$flags$": 0,
|
|
@@ -10674,9 +10531,9 @@ class EdsInputRange {
|
|
|
10674
10531
|
return this.inputElement;
|
|
10675
10532
|
}
|
|
10676
10533
|
render() {
|
|
10677
|
-
return (hAsync("div", { key: '
|
|
10534
|
+
return (hAsync("div", { key: '6a70b857cfbeb152e6f099b6dfc91cc9fec5bf11', class: "relative flex flex-col items-start space-y-2" }, hAsync("input", { key: 'da4c0158b1d33804404f4373b3c55c53b5b2f53b', id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input",
|
|
10678
10535
|
//aria-describedby={describedBy}
|
|
10679
|
-
onInput: this.onInput }), hAsync("p", { key: '
|
|
10536
|
+
onInput: this.onInput }), hAsync("p", { key: '66bc2e755e4eb38015e32441599a9f9bade7c679', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
10680
10537
|
}
|
|
10681
10538
|
get el() { return getElement(this); }
|
|
10682
10539
|
static get cmpMeta() { return {
|
|
@@ -10733,7 +10590,7 @@ class EdsInputSearch {
|
|
|
10733
10590
|
return this.inputElement;
|
|
10734
10591
|
}
|
|
10735
10592
|
render() {
|
|
10736
|
-
return (hAsync("div", { key: '
|
|
10593
|
+
return (hAsync("div", { key: 'df7ee546beed6eedfba5a19e0fdf349d9aaece90', class: "relative flex items-center" }, hAsync("eds-icon-wrapper", { key: '4663fdd0a9ba4eace47dc90f9c7f50fc2e6f7925', icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest" }), hAsync("input", { key: 'e3e72f3dea068cbab3d398de36dd09e4a7f1ce93', id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.value || '', required: this.required, disabled: this.disabled, type: "search", class: "search-input w-full py-6 input input-icon pl-36",
|
|
10737
10594
|
//aria-describedby={describedBy}
|
|
10738
10595
|
onInput: this.onInput, onChange: this.onChange })));
|
|
10739
10596
|
}
|
|
@@ -10806,6 +10663,7 @@ class EdsInputSelect {
|
|
|
10806
10663
|
this.loading = false;
|
|
10807
10664
|
this.dynamicValueKey = 'value';
|
|
10808
10665
|
this.dynamicLabelKey = 'label';
|
|
10666
|
+
this.hasFetched = false;
|
|
10809
10667
|
}
|
|
10810
10668
|
componentWillLoad() {
|
|
10811
10669
|
this.loadOptions();
|
|
@@ -10822,6 +10680,9 @@ class EdsInputSelect {
|
|
|
10822
10680
|
async loadOptions() {
|
|
10823
10681
|
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
10824
10682
|
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
10683
|
+
if (this.hasFetched) {
|
|
10684
|
+
return;
|
|
10685
|
+
}
|
|
10825
10686
|
const config = this.options[0];
|
|
10826
10687
|
const endpoint = config.endpoint;
|
|
10827
10688
|
this.dynamicValueKey = config.value || 'value';
|
|
@@ -10835,6 +10696,7 @@ class EdsInputSelect {
|
|
|
10835
10696
|
const data = await response.json();
|
|
10836
10697
|
// Assume the API returns an array of objects.
|
|
10837
10698
|
this.dynamicOptions = data;
|
|
10699
|
+
this.hasFetched = true;
|
|
10838
10700
|
}
|
|
10839
10701
|
catch (error) {
|
|
10840
10702
|
//console.error('Error fetching dynamic options:', error);
|
|
@@ -10851,8 +10713,11 @@ class EdsInputSelect {
|
|
|
10851
10713
|
this.dynamicLabelKey = this.labelKey;
|
|
10852
10714
|
}
|
|
10853
10715
|
}
|
|
10716
|
+
getValueByPath(obj, path) {
|
|
10717
|
+
return path.split('.').reduce((acc, part) => acc && acc[part], obj);
|
|
10718
|
+
}
|
|
10854
10719
|
render() {
|
|
10855
|
-
return (hAsync("div", { key: '
|
|
10720
|
+
return (hAsync("div", { key: 'c1469a270fa5e775ac4d17f1c7e259d02477d7a2', class: "relative" }, hAsync("select", { key: '3aab6ec60d386e51ce27c1cfc26059132d96957f', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, hAsync("option", { key: 'ee3aa20ed1b99bddd7bafa3aac43f3c06db07b8f', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (hAsync("option", { key: index, value: this.getValueByPath(option, this.dynamicValueKey) }, this.getValueByPath(option, this.dynamicLabelKey))))), hAsync("span", { key: '7e70051ac49efd053f00521b51ad19e88cf5cdb7', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, hAsync("eds-icon-wrapper", { key: '2ef2d0d744216a1f931ac0bfe1058f54c9af4402', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
10856
10721
|
}
|
|
10857
10722
|
static get watchers() { return {
|
|
10858
10723
|
"options": ["loadOptions"]
|
|
@@ -10875,7 +10740,8 @@ class EdsInputSelect {
|
|
|
10875
10740
|
"dynamicOptions": [32],
|
|
10876
10741
|
"loading": [32],
|
|
10877
10742
|
"dynamicValueKey": [32],
|
|
10878
|
-
"dynamicLabelKey": [32]
|
|
10743
|
+
"dynamicLabelKey": [32],
|
|
10744
|
+
"hasFetched": [32]
|
|
10879
10745
|
},
|
|
10880
10746
|
"$listeners$": undefined,
|
|
10881
10747
|
"$lazyBundleId$": "-",
|
|
@@ -11072,7 +10938,7 @@ class EdsLink {
|
|
|
11072
10938
|
}
|
|
11073
10939
|
renderRightIcon() {
|
|
11074
10940
|
if (this.icon && this.iconPos === 'right') {
|
|
11075
|
-
return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex' }, hAsync("eds-icon-wrapper", { class: `
|
|
10941
|
+
return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex ml-4' }, hAsync("eds-icon-wrapper", { class: `
|
|
11076
10942
|
flex inline-flex items-center justify-center
|
|
11077
10943
|
${this.size === 'large' ? 'h-32 w-32' : 'h-20 w-20'}
|
|
11078
10944
|
`, icon: this.icon })));
|
|
@@ -11080,6 +10946,7 @@ class EdsLink {
|
|
|
11080
10946
|
return null;
|
|
11081
10947
|
}
|
|
11082
10948
|
render() {
|
|
10949
|
+
// If the link is disabled, use a <span>; otherwise, use an <a> element.
|
|
11083
10950
|
const ComponentType = this.disabled ? 'span' : 'a';
|
|
11084
10951
|
const classes = linkStyles({
|
|
11085
10952
|
intent: this.intent,
|
|
@@ -11087,10 +10954,12 @@ class EdsLink {
|
|
|
11087
10954
|
iconSmall: this.iconSmall,
|
|
11088
10955
|
isActive: this.current
|
|
11089
10956
|
});
|
|
10957
|
+
// If no visible label is provided, ensure ariaLabel is set.
|
|
10958
|
+
const computedAriaLabel = this.ariaLabel || this.label || 'link';
|
|
11090
10959
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11091
10960
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11092
10961
|
: '';
|
|
11093
|
-
return (hAsync(ComponentType, { key: '
|
|
10962
|
+
return (hAsync(ComponentType, { key: '965b2bf54c59752e7ed3cafbc167a8f2d1a2a9b1', class: `${classes || ''} ${this.extraClass || ''}`, href: !this.disabled ? this.url : undefined, target: this.external && !this.disabled ? '_blank' : undefined, rel: this.external && !this.disabled ? 'noopener noreferrer' : undefined, "aria-label": computedAriaLabel, "aria-disabled": this.disabled ? 'true' : null, "aria-current": this.current ? 'page' : undefined, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event) }, hAsync("span", { key: '7df72410c98bab3c0ef204e5cd33f1e069976d24', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), hAsync("span", { key: '208b4fa88695bd8e8ed961d4c7639b117341110c', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
11094
10963
|
}
|
|
11095
10964
|
get el() { return getElement(this); }
|
|
11096
10965
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11181,7 +11050,7 @@ function Keycloak (config) {
|
|
|
11181
11050
|
);
|
|
11182
11051
|
}
|
|
11183
11052
|
|
|
11184
|
-
kc.init = function (initOptions) {
|
|
11053
|
+
kc.init = function (initOptions = {}) {
|
|
11185
11054
|
if (kc.didInitialize) {
|
|
11186
11055
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
11187
11056
|
}
|
|
@@ -11193,9 +11062,9 @@ function Keycloak (config) {
|
|
|
11193
11062
|
callbackStorage = createCallbackStorage();
|
|
11194
11063
|
var adapters = ['default', 'cordova', 'cordova-native'];
|
|
11195
11064
|
|
|
11196
|
-
if (
|
|
11065
|
+
if (adapters.indexOf(initOptions.adapter) > -1) {
|
|
11197
11066
|
adapter = loadAdapter(initOptions.adapter);
|
|
11198
|
-
} else if (
|
|
11067
|
+
} else if (typeof initOptions.adapter === "object") {
|
|
11199
11068
|
adapter = initOptions.adapter;
|
|
11200
11069
|
} else {
|
|
11201
11070
|
if (window.Cordova || window.cordova) {
|
|
@@ -11205,101 +11074,99 @@ function Keycloak (config) {
|
|
|
11205
11074
|
}
|
|
11206
11075
|
}
|
|
11207
11076
|
|
|
11208
|
-
if (initOptions) {
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
}
|
|
11212
|
-
|
|
11213
|
-
if (typeof initOptions.checkLoginIframe !== 'undefined') {
|
|
11214
|
-
loginIframe.enable = initOptions.checkLoginIframe;
|
|
11215
|
-
}
|
|
11077
|
+
if (typeof initOptions.useNonce !== 'undefined') {
|
|
11078
|
+
useNonce = initOptions.useNonce;
|
|
11079
|
+
}
|
|
11216
11080
|
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11081
|
+
if (typeof initOptions.checkLoginIframe !== 'undefined') {
|
|
11082
|
+
loginIframe.enable = initOptions.checkLoginIframe;
|
|
11083
|
+
}
|
|
11220
11084
|
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11085
|
+
if (initOptions.checkLoginIframeInterval) {
|
|
11086
|
+
loginIframe.interval = initOptions.checkLoginIframeInterval;
|
|
11087
|
+
}
|
|
11224
11088
|
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
} else {
|
|
11229
|
-
throw 'Invalid value for responseMode';
|
|
11230
|
-
}
|
|
11231
|
-
}
|
|
11089
|
+
if (initOptions.onLoad === 'login-required') {
|
|
11090
|
+
kc.loginRequired = true;
|
|
11091
|
+
}
|
|
11232
11092
|
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
case 'implicit':
|
|
11239
|
-
kc.responseType = 'id_token token';
|
|
11240
|
-
break;
|
|
11241
|
-
case 'hybrid':
|
|
11242
|
-
kc.responseType = 'code id_token token';
|
|
11243
|
-
break;
|
|
11244
|
-
default:
|
|
11245
|
-
throw 'Invalid value for flow';
|
|
11246
|
-
}
|
|
11247
|
-
kc.flow = initOptions.flow;
|
|
11093
|
+
if (initOptions.responseMode) {
|
|
11094
|
+
if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
|
|
11095
|
+
kc.responseMode = initOptions.responseMode;
|
|
11096
|
+
} else {
|
|
11097
|
+
throw 'Invalid value for responseMode';
|
|
11248
11098
|
}
|
|
11099
|
+
}
|
|
11249
11100
|
|
|
11250
|
-
|
|
11251
|
-
|
|
11101
|
+
if (initOptions.flow) {
|
|
11102
|
+
switch (initOptions.flow) {
|
|
11103
|
+
case 'standard':
|
|
11104
|
+
kc.responseType = 'code';
|
|
11105
|
+
break;
|
|
11106
|
+
case 'implicit':
|
|
11107
|
+
kc.responseType = 'id_token token';
|
|
11108
|
+
break;
|
|
11109
|
+
case 'hybrid':
|
|
11110
|
+
kc.responseType = 'code id_token token';
|
|
11111
|
+
break;
|
|
11112
|
+
default:
|
|
11113
|
+
throw 'Invalid value for flow';
|
|
11252
11114
|
}
|
|
11115
|
+
kc.flow = initOptions.flow;
|
|
11116
|
+
}
|
|
11253
11117
|
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11118
|
+
if (initOptions.timeSkew != null) {
|
|
11119
|
+
kc.timeSkew = initOptions.timeSkew;
|
|
11120
|
+
}
|
|
11257
11121
|
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11122
|
+
if(initOptions.redirectUri) {
|
|
11123
|
+
kc.redirectUri = initOptions.redirectUri;
|
|
11124
|
+
}
|
|
11261
11125
|
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
kc.silentCheckSsoFallback = true;
|
|
11266
|
-
}
|
|
11126
|
+
if (initOptions.silentCheckSsoRedirectUri) {
|
|
11127
|
+
kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
|
|
11128
|
+
}
|
|
11267
11129
|
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11130
|
+
if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
|
|
11131
|
+
kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
|
|
11132
|
+
} else {
|
|
11133
|
+
kc.silentCheckSsoFallback = true;
|
|
11134
|
+
}
|
|
11272
11135
|
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11136
|
+
if (typeof initOptions.pkceMethod !== "undefined") {
|
|
11137
|
+
if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
|
|
11138
|
+
throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
|
|
11276
11139
|
}
|
|
11277
11140
|
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11282
|
-
|
|
11141
|
+
kc.pkceMethod = initOptions.pkceMethod;
|
|
11142
|
+
} else {
|
|
11143
|
+
kc.pkceMethod = "S256";
|
|
11144
|
+
}
|
|
11145
|
+
|
|
11146
|
+
if (typeof initOptions.enableLogging === 'boolean') {
|
|
11147
|
+
kc.enableLogging = initOptions.enableLogging;
|
|
11148
|
+
} else {
|
|
11149
|
+
kc.enableLogging = false;
|
|
11150
|
+
}
|
|
11283
11151
|
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11152
|
+
if (initOptions.logoutMethod === 'POST') {
|
|
11153
|
+
kc.logoutMethod = 'POST';
|
|
11154
|
+
} else {
|
|
11155
|
+
kc.logoutMethod = 'GET';
|
|
11156
|
+
}
|
|
11289
11157
|
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11158
|
+
if (typeof initOptions.scope === 'string') {
|
|
11159
|
+
kc.scope = initOptions.scope;
|
|
11160
|
+
}
|
|
11293
11161
|
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11162
|
+
if (typeof initOptions.acrValues === 'string') {
|
|
11163
|
+
kc.acrValues = initOptions.acrValues;
|
|
11164
|
+
}
|
|
11297
11165
|
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
}
|
|
11166
|
+
if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
|
|
11167
|
+
kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
|
|
11168
|
+
} else {
|
|
11169
|
+
kc.messageReceiveTimeout = 10000;
|
|
11303
11170
|
}
|
|
11304
11171
|
|
|
11305
11172
|
if (!kc.responseMode) {
|
|
@@ -11328,7 +11195,7 @@ function Keycloak (config) {
|
|
|
11328
11195
|
options.prompt = 'none';
|
|
11329
11196
|
}
|
|
11330
11197
|
|
|
11331
|
-
if (initOptions
|
|
11198
|
+
if (initOptions.locale) {
|
|
11332
11199
|
options.locale = initOptions.locale;
|
|
11333
11200
|
}
|
|
11334
11201
|
kc.login(options).then(function () {
|
|
@@ -11402,42 +11269,40 @@ function Keycloak (config) {
|
|
|
11402
11269
|
}).catch(function (error) {
|
|
11403
11270
|
initPromise.setError(error);
|
|
11404
11271
|
});
|
|
11405
|
-
}
|
|
11406
|
-
if (initOptions.token && initOptions.refreshToken) {
|
|
11407
|
-
setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
|
|
11272
|
+
}
|
|
11408
11273
|
|
|
11409
|
-
|
|
11410
|
-
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
|
|
11414
|
-
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
}).catch(function (error) {
|
|
11420
|
-
initPromise.setError(error);
|
|
11421
|
-
});
|
|
11422
|
-
});
|
|
11423
|
-
} else {
|
|
11424
|
-
kc.updateToken(-1).then(function() {
|
|
11425
|
-
kc.onAuthSuccess && kc.onAuthSuccess();
|
|
11426
|
-
initPromise.setSuccess();
|
|
11427
|
-
}).catch(function(error) {
|
|
11428
|
-
kc.onAuthError && kc.onAuthError();
|
|
11429
|
-
if (initOptions.onLoad) {
|
|
11430
|
-
onLoad();
|
|
11274
|
+
if (initOptions.token && initOptions.refreshToken) {
|
|
11275
|
+
setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
|
|
11276
|
+
|
|
11277
|
+
if (loginIframe.enable) {
|
|
11278
|
+
setupCheckLoginIframe().then(function() {
|
|
11279
|
+
checkLoginIframe().then(function (unchanged) {
|
|
11280
|
+
if (unchanged) {
|
|
11281
|
+
kc.onAuthSuccess && kc.onAuthSuccess();
|
|
11282
|
+
initPromise.setSuccess();
|
|
11283
|
+
scheduleCheckIframe();
|
|
11431
11284
|
} else {
|
|
11432
|
-
initPromise.
|
|
11285
|
+
initPromise.setSuccess();
|
|
11433
11286
|
}
|
|
11287
|
+
}).catch(function (error) {
|
|
11288
|
+
initPromise.setError(error);
|
|
11434
11289
|
});
|
|
11435
|
-
}
|
|
11436
|
-
} else if (initOptions.onLoad) {
|
|
11437
|
-
onLoad();
|
|
11290
|
+
});
|
|
11438
11291
|
} else {
|
|
11439
|
-
|
|
11292
|
+
kc.updateToken(-1).then(function() {
|
|
11293
|
+
kc.onAuthSuccess && kc.onAuthSuccess();
|
|
11294
|
+
initPromise.setSuccess();
|
|
11295
|
+
}).catch(function(error) {
|
|
11296
|
+
kc.onAuthError && kc.onAuthError();
|
|
11297
|
+
if (initOptions.onLoad) {
|
|
11298
|
+
onLoad();
|
|
11299
|
+
} else {
|
|
11300
|
+
initPromise.setError(error);
|
|
11301
|
+
}
|
|
11302
|
+
});
|
|
11440
11303
|
}
|
|
11304
|
+
} else if (initOptions.onLoad) {
|
|
11305
|
+
onLoad();
|
|
11441
11306
|
} else {
|
|
11442
11307
|
initPromise.setSuccess();
|
|
11443
11308
|
}
|
|
@@ -11798,7 +11663,7 @@ function Keycloak (config) {
|
|
|
11798
11663
|
|
|
11799
11664
|
kc.onAuthRefreshError && kc.onAuthRefreshError();
|
|
11800
11665
|
for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
|
|
11801
|
-
p.setError(
|
|
11666
|
+
p.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.");
|
|
11802
11667
|
}
|
|
11803
11668
|
}
|
|
11804
11669
|
}
|
|
@@ -12366,7 +12231,7 @@ function Keycloak (config) {
|
|
|
12366
12231
|
function check3pCookiesSupported() {
|
|
12367
12232
|
var promise = createPromise();
|
|
12368
12233
|
|
|
12369
|
-
if (loginIframe.enable || kc.silentCheckSsoRedirectUri) {
|
|
12234
|
+
if ((loginIframe.enable || kc.silentCheckSsoRedirectUri) && typeof kc.endpoints.thirdPartyCookiesIframe === 'function') {
|
|
12370
12235
|
var iframe = document.createElement('iframe');
|
|
12371
12236
|
iframe.setAttribute('src', kc.endpoints.thirdPartyCookiesIframe());
|
|
12372
12237
|
iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
|
|
@@ -12386,7 +12251,7 @@ function Keycloak (config) {
|
|
|
12386
12251
|
"[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n" +
|
|
12387
12252
|
" - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n" +
|
|
12388
12253
|
" - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\n" +
|
|
12389
|
-
"For more information see: https://www.keycloak.org/
|
|
12254
|
+
"For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"
|
|
12390
12255
|
);
|
|
12391
12256
|
|
|
12392
12257
|
loginIframe.enable = false;
|
|
@@ -12424,34 +12289,37 @@ function Keycloak (config) {
|
|
|
12424
12289
|
return;
|
|
12425
12290
|
}
|
|
12426
12291
|
|
|
12427
|
-
|
|
12428
|
-
const
|
|
12429
|
-
method: "POST",
|
|
12430
|
-
headers: {
|
|
12431
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
12432
|
-
},
|
|
12433
|
-
body: new URLSearchParams({
|
|
12434
|
-
id_token_hint: kc.idToken,
|
|
12435
|
-
client_id: kc.clientId,
|
|
12436
|
-
post_logout_redirect_uri: adapter.redirectUri(options, false)
|
|
12437
|
-
})
|
|
12438
|
-
});
|
|
12292
|
+
// Create form to send POST request.
|
|
12293
|
+
const form = document.createElement("form");
|
|
12439
12294
|
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
}
|
|
12295
|
+
form.setAttribute("method", "POST");
|
|
12296
|
+
form.setAttribute("action", kc.createLogoutUrl(options));
|
|
12297
|
+
form.style.display = "none";
|
|
12444
12298
|
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12299
|
+
// Add data to form as hidden input fields.
|
|
12300
|
+
const data = {
|
|
12301
|
+
id_token_hint: kc.idToken,
|
|
12302
|
+
client_id: kc.clientId,
|
|
12303
|
+
post_logout_redirect_uri: adapter.redirectUri(options, false)
|
|
12304
|
+
};
|
|
12305
|
+
|
|
12306
|
+
for (const [name, value] of Object.entries(data)) {
|
|
12307
|
+
const input = document.createElement("input");
|
|
12308
|
+
|
|
12309
|
+
input.setAttribute("type", "hidden");
|
|
12310
|
+
input.setAttribute("name", name);
|
|
12311
|
+
input.setAttribute("value", value);
|
|
12312
|
+
|
|
12313
|
+
form.appendChild(input);
|
|
12448
12314
|
}
|
|
12449
12315
|
|
|
12450
|
-
|
|
12316
|
+
// Append form to page and submit it to perform logout and redirect.
|
|
12317
|
+
document.body.appendChild(form);
|
|
12318
|
+
form.submit();
|
|
12451
12319
|
},
|
|
12452
12320
|
|
|
12453
|
-
register: function(options) {
|
|
12454
|
-
window.location.assign(kc.createRegisterUrl(options));
|
|
12321
|
+
register: async function(options) {
|
|
12322
|
+
window.location.assign(await kc.createRegisterUrl(options));
|
|
12455
12323
|
return createPromise().promise;
|
|
12456
12324
|
},
|
|
12457
12325
|
|
|
@@ -12604,9 +12472,9 @@ function Keycloak (config) {
|
|
|
12604
12472
|
return promise.promise;
|
|
12605
12473
|
},
|
|
12606
12474
|
|
|
12607
|
-
register : function(options) {
|
|
12475
|
+
register : async function(options) {
|
|
12608
12476
|
var promise = createPromise();
|
|
12609
|
-
var registerUrl = kc.createRegisterUrl();
|
|
12477
|
+
var registerUrl = await kc.createRegisterUrl();
|
|
12610
12478
|
var cordovaOptions = createCordovaOptions(options);
|
|
12611
12479
|
var ref = cordovaOpenWindowWrapper(registerUrl, '_blank', cordovaOptions);
|
|
12612
12480
|
ref.addEventListener('loadstart', function(event) {
|
|
@@ -12673,9 +12541,9 @@ function Keycloak (config) {
|
|
|
12673
12541
|
return promise.promise;
|
|
12674
12542
|
},
|
|
12675
12543
|
|
|
12676
|
-
register : function(options) {
|
|
12544
|
+
register : async function(options) {
|
|
12677
12545
|
var promise = createPromise();
|
|
12678
|
-
var registerUrl = kc.createRegisterUrl(options);
|
|
12546
|
+
var registerUrl = await kc.createRegisterUrl(options);
|
|
12679
12547
|
universalLinks.subscribe('keycloak' , function(event) {
|
|
12680
12548
|
universalLinks.unsubscribe('keycloak');
|
|
12681
12549
|
window.cordova.plugins.browsertab.close();
|
|
@@ -12711,6 +12579,8 @@ function Keycloak (config) {
|
|
|
12711
12579
|
throw 'invalid adapter type: ' + type;
|
|
12712
12580
|
}
|
|
12713
12581
|
|
|
12582
|
+
const STORAGE_KEY_PREFIX = 'kc-callback-';
|
|
12583
|
+
|
|
12714
12584
|
var LocalStorage = function() {
|
|
12715
12585
|
if (!(this instanceof LocalStorage)) {
|
|
12716
12586
|
return new LocalStorage();
|
|
@@ -12721,48 +12591,96 @@ function Keycloak (config) {
|
|
|
12721
12591
|
|
|
12722
12592
|
var cs = this;
|
|
12723
12593
|
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
localStorage.removeItem(key);
|
|
12738
|
-
}
|
|
12739
|
-
}
|
|
12594
|
+
/**
|
|
12595
|
+
* Clears all values from local storage that are no longer valid.
|
|
12596
|
+
*/
|
|
12597
|
+
function clearInvalidValues() {
|
|
12598
|
+
const currentTime = Date.now();
|
|
12599
|
+
|
|
12600
|
+
for (const [key, value] of getStoredEntries()) {
|
|
12601
|
+
// Attempt to parse the expiry time from the value.
|
|
12602
|
+
const expiry = parseExpiry(value);
|
|
12603
|
+
|
|
12604
|
+
// Discard the value if it is malformed or expired.
|
|
12605
|
+
if (expiry === null || expiry < currentTime) {
|
|
12606
|
+
localStorage.removeItem(key);
|
|
12740
12607
|
}
|
|
12741
12608
|
}
|
|
12742
12609
|
}
|
|
12743
12610
|
|
|
12611
|
+
/**
|
|
12612
|
+
* Clears all known values from local storage.
|
|
12613
|
+
*/
|
|
12614
|
+
function clearAllValues() {
|
|
12615
|
+
for (const [key] of getStoredEntries()) {
|
|
12616
|
+
localStorage.removeItem(key);
|
|
12617
|
+
}
|
|
12618
|
+
}
|
|
12619
|
+
|
|
12620
|
+
/**
|
|
12621
|
+
* Gets all entries stored in local storage that are known to be managed by this class.
|
|
12622
|
+
* @returns {Array<[string, unknown]>} An array of key-value pairs.
|
|
12623
|
+
*/
|
|
12624
|
+
function getStoredEntries() {
|
|
12625
|
+
return Object.entries(localStorage).filter(([key]) => key.startsWith(STORAGE_KEY_PREFIX));
|
|
12626
|
+
}
|
|
12627
|
+
|
|
12628
|
+
/**
|
|
12629
|
+
* Parses the expiry time from a value stored in local storage.
|
|
12630
|
+
* @param {unknown} value
|
|
12631
|
+
* @returns {number | null} The expiry time in milliseconds, or `null` if the value is malformed.
|
|
12632
|
+
*/
|
|
12633
|
+
function parseExpiry(value) {
|
|
12634
|
+
let parsedValue;
|
|
12635
|
+
|
|
12636
|
+
// Attempt to parse the value as JSON.
|
|
12637
|
+
try {
|
|
12638
|
+
parsedValue = JSON.parse(value);
|
|
12639
|
+
} catch (error) {
|
|
12640
|
+
return null;
|
|
12641
|
+
}
|
|
12642
|
+
|
|
12643
|
+
// Attempt to extract the 'expires' property.
|
|
12644
|
+
if (isObject(parsedValue) && 'expires' in parsedValue && typeof parsedValue.expires === 'number') {
|
|
12645
|
+
return parsedValue.expires;
|
|
12646
|
+
}
|
|
12647
|
+
|
|
12648
|
+
return null;
|
|
12649
|
+
}
|
|
12650
|
+
|
|
12744
12651
|
cs.get = function(state) {
|
|
12745
12652
|
if (!state) {
|
|
12746
12653
|
return;
|
|
12747
12654
|
}
|
|
12748
12655
|
|
|
12749
|
-
var key =
|
|
12656
|
+
var key = STORAGE_KEY_PREFIX + state;
|
|
12750
12657
|
var value = localStorage.getItem(key);
|
|
12751
12658
|
if (value) {
|
|
12752
12659
|
localStorage.removeItem(key);
|
|
12753
12660
|
value = JSON.parse(value);
|
|
12754
12661
|
}
|
|
12755
12662
|
|
|
12756
|
-
|
|
12663
|
+
clearInvalidValues();
|
|
12757
12664
|
return value;
|
|
12758
12665
|
};
|
|
12759
12666
|
|
|
12760
12667
|
cs.add = function(state) {
|
|
12761
|
-
|
|
12668
|
+
clearInvalidValues();
|
|
12669
|
+
|
|
12670
|
+
const key = STORAGE_KEY_PREFIX + state.state;
|
|
12671
|
+
const value = JSON.stringify({
|
|
12672
|
+
...state,
|
|
12673
|
+
// Set the expiry time to 1 hour from now.
|
|
12674
|
+
expires: Date.now() + (60 * 60 * 1000)
|
|
12675
|
+
});
|
|
12762
12676
|
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12677
|
+
try {
|
|
12678
|
+
localStorage.setItem(key, value);
|
|
12679
|
+
} catch (error) {
|
|
12680
|
+
// If the storage is full, clear all known values and try again.
|
|
12681
|
+
clearAllValues();
|
|
12682
|
+
localStorage.setItem(key, value);
|
|
12683
|
+
}
|
|
12766
12684
|
};
|
|
12767
12685
|
};
|
|
12768
12686
|
|
|
@@ -12778,15 +12696,15 @@ function Keycloak (config) {
|
|
|
12778
12696
|
return;
|
|
12779
12697
|
}
|
|
12780
12698
|
|
|
12781
|
-
var value = getCookie(
|
|
12782
|
-
setCookie(
|
|
12699
|
+
var value = getCookie(STORAGE_KEY_PREFIX + state);
|
|
12700
|
+
setCookie(STORAGE_KEY_PREFIX + state, '', cookieExpiration(-100));
|
|
12783
12701
|
if (value) {
|
|
12784
12702
|
return JSON.parse(value);
|
|
12785
12703
|
}
|
|
12786
12704
|
};
|
|
12787
12705
|
|
|
12788
12706
|
cs.add = function(state) {
|
|
12789
|
-
setCookie(
|
|
12707
|
+
setCookie(STORAGE_KEY_PREFIX + state.state, JSON.stringify(state), cookieExpiration(60));
|
|
12790
12708
|
};
|
|
12791
12709
|
|
|
12792
12710
|
cs.removeItem = function(key) {
|
|
@@ -12940,8 +12858,15 @@ function isObject(input) {
|
|
|
12940
12858
|
}
|
|
12941
12859
|
|
|
12942
12860
|
let keycloak = null;
|
|
12861
|
+
let keycloakInitPromise = null;
|
|
12943
12862
|
// Initialize Keycloak with an optional silent check
|
|
12944
12863
|
function initKeycloak(config, silentCheck = true) {
|
|
12864
|
+
// If already initializing or initialized, return the cached promise
|
|
12865
|
+
if (keycloakInitPromise) {
|
|
12866
|
+
// eslint-disable-next-line
|
|
12867
|
+
console.log('Keycloak already initialized, returning from cache');
|
|
12868
|
+
return keycloakInitPromise;
|
|
12869
|
+
}
|
|
12945
12870
|
if (!keycloak) {
|
|
12946
12871
|
keycloak = new Keycloak({
|
|
12947
12872
|
url: config.url,
|
|
@@ -12949,7 +12874,7 @@ function initKeycloak(config, silentCheck = true) {
|
|
|
12949
12874
|
clientId: config.clientId
|
|
12950
12875
|
});
|
|
12951
12876
|
}
|
|
12952
|
-
|
|
12877
|
+
keycloakInitPromise = keycloak
|
|
12953
12878
|
.init({
|
|
12954
12879
|
onLoad: silentCheck ? 'check-sso' : 'login-required',
|
|
12955
12880
|
checkLoginIframe: false
|
|
@@ -12961,6 +12886,7 @@ function initKeycloak(config, silentCheck = true) {
|
|
|
12961
12886
|
console.error('Failed to initialize Keycloak:', error);
|
|
12962
12887
|
return false;
|
|
12963
12888
|
});
|
|
12889
|
+
return keycloakInitPromise;
|
|
12964
12890
|
}
|
|
12965
12891
|
function getUser() {
|
|
12966
12892
|
if ((keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated) && (keycloak === null || keycloak === void 0 ? void 0 : keycloak.idTokenParsed)) {
|
|
@@ -12983,8 +12909,7 @@ function login() {
|
|
|
12983
12909
|
keycloak.login();
|
|
12984
12910
|
}
|
|
12985
12911
|
else {
|
|
12986
|
-
|
|
12987
|
-
console.error('Keycloak is not initialized.');
|
|
12912
|
+
throw new Error('Keycloak is not initialized.');
|
|
12988
12913
|
}
|
|
12989
12914
|
}
|
|
12990
12915
|
// Log out the user
|
|
@@ -12993,8 +12918,7 @@ function logout() {
|
|
|
12993
12918
|
keycloak.logout();
|
|
12994
12919
|
}
|
|
12995
12920
|
else {
|
|
12996
|
-
|
|
12997
|
-
console.error('Keycloak is not initialized.');
|
|
12921
|
+
throw new Error('Keycloak is not initialized.');
|
|
12998
12922
|
}
|
|
12999
12923
|
}
|
|
13000
12924
|
// Check if the user is authenticated
|
|
@@ -13011,75 +12935,85 @@ async function checkServerAvailability(url) {
|
|
|
13011
12935
|
}
|
|
13012
12936
|
}
|
|
13013
12937
|
|
|
13014
|
-
/**
|
|
13015
|
-
* `EdsLogin` is a login component that integrates Keycloak authentication,
|
|
13016
|
-
* allowing users to log in and out and manage authentication states.
|
|
13017
|
-
* This component is used to handle user login, logout, and authentication status display.
|
|
13018
|
-
*
|
|
13019
|
-
* This component is ideal for applications that require Keycloak-based authentication,
|
|
13020
|
-
* providing a simple login/logout interface and managing user session states.
|
|
13021
|
-
*/
|
|
13022
12938
|
class EdsLogin {
|
|
13023
12939
|
constructor(hostRef) {
|
|
13024
12940
|
registerInstance(this, hostRef);
|
|
13025
12941
|
this.authStatusChanged = createEvent(this, "authStatusChanged", 7);
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
12942
|
+
/**
|
|
12943
|
+
* Handles user login by invoking the Keycloak `login` function.
|
|
12944
|
+
* Only triggers login if the user is not already authenticated.
|
|
12945
|
+
*/
|
|
12946
|
+
this.handleLogin = async () => {
|
|
12947
|
+
if (!this.authenticated) {
|
|
12948
|
+
try {
|
|
12949
|
+
await login();
|
|
12950
|
+
toast.show('You are authenticated', 'success');
|
|
12951
|
+
}
|
|
12952
|
+
catch (error) {
|
|
12953
|
+
toast.show(error.message, 'error');
|
|
12954
|
+
}
|
|
12955
|
+
}
|
|
12956
|
+
};
|
|
12957
|
+
/**
|
|
12958
|
+
* Handles user logout by invoking the Keycloak `logout` function.
|
|
12959
|
+
* Resets the `authenticated` state to `false` after logout.
|
|
12960
|
+
*/
|
|
12961
|
+
this.handleLogout = async () => {
|
|
12962
|
+
try {
|
|
12963
|
+
await logout();
|
|
12964
|
+
}
|
|
12965
|
+
catch (error) {
|
|
12966
|
+
toast.show(error.message, 'error');
|
|
12967
|
+
}
|
|
12968
|
+
this.authenticated = false;
|
|
12969
|
+
this.user = null;
|
|
13030
12970
|
};
|
|
13031
|
-
this.keycloakUrl =
|
|
13032
|
-
this.keycloakRealm =
|
|
13033
|
-
this.keycloakClientId =
|
|
12971
|
+
this.keycloakUrl = undefined;
|
|
12972
|
+
this.keycloakRealm = undefined;
|
|
12973
|
+
this.keycloakClientId = undefined;
|
|
13034
12974
|
this.authenticated = false;
|
|
13035
12975
|
this.user = null;
|
|
13036
12976
|
}
|
|
13037
|
-
|
|
12977
|
+
/**
|
|
12978
|
+
* Lifecycle method that runs when the component is about to load.
|
|
12979
|
+
* It initializes authentication by calling the `initAuth` method.
|
|
12980
|
+
*/
|
|
13038
12981
|
async componentWillLoad() {
|
|
13039
|
-
|
|
12982
|
+
// Check if required props are provided (optional check)
|
|
12983
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
12984
|
+
// eslint-disable-next-line
|
|
12985
|
+
console.error('Keycloak configuration props are missing.');
|
|
12986
|
+
return;
|
|
12987
|
+
}
|
|
12988
|
+
await this.initAuth();
|
|
13040
12989
|
}
|
|
13041
|
-
|
|
13042
|
-
|
|
12990
|
+
/**
|
|
12991
|
+
* Initializes the Keycloak authentication by configuring Keycloak with the provided props.
|
|
12992
|
+
* Sets the `authenticated` state and `user` data if the user is authenticated.
|
|
12993
|
+
* Emits `authStatusChanged` event with the authentication status.
|
|
12994
|
+
*/
|
|
12995
|
+
async initAuth() {
|
|
13043
12996
|
try {
|
|
13044
|
-
|
|
12997
|
+
await initKeycloak({
|
|
13045
12998
|
url: this.keycloakUrl,
|
|
13046
12999
|
realm: this.keycloakRealm,
|
|
13047
13000
|
clientId: this.keycloakClientId
|
|
13048
|
-
};
|
|
13049
|
-
|
|
13050
|
-
// eslint-disable-next-line
|
|
13051
|
-
// Set authentication state and fetch user data if authenticated
|
|
13052
|
-
this.authenticated = isAuthenticated();
|
|
13053
|
-
if (this.authenticated) {
|
|
13001
|
+
}, true);
|
|
13002
|
+
if (isAuthenticated()) {
|
|
13054
13003
|
this.user = getUser();
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
}
|
|
13061
|
-
catch (error) {
|
|
13062
|
-
// eslint-disable-next-line
|
|
13063
|
-
console.error('Keycloak initialization or login check failed:', error);
|
|
13064
|
-
}
|
|
13065
|
-
}
|
|
13066
|
-
// Method to handle user login
|
|
13067
|
-
async handleLogin() {
|
|
13068
|
-
try {
|
|
13069
|
-
if (!this.authenticated) {
|
|
13070
|
-
login(); // Start the Keycloak login process
|
|
13004
|
+
this.authenticated = true;
|
|
13005
|
+
this.authStatusChanged.emit({
|
|
13006
|
+
authenticated: this.authenticated,
|
|
13007
|
+
user: this.user
|
|
13008
|
+
}); // Emit auth status change
|
|
13071
13009
|
}
|
|
13072
13010
|
}
|
|
13073
13011
|
catch (error) {
|
|
13074
|
-
|
|
13075
|
-
console.error('Login failed:', error);
|
|
13012
|
+
toast.show(error.message, 'error');
|
|
13076
13013
|
}
|
|
13077
13014
|
}
|
|
13078
|
-
getBtnLabel() {
|
|
13079
|
-
return this.authenticated ? 'Logout' : 'Login';
|
|
13080
|
-
}
|
|
13081
13015
|
render() {
|
|
13082
|
-
return (hAsync("eds-button", { key: '
|
|
13016
|
+
return (hAsync("div", { key: 'cd30a135920ae77959330a43a8544bb9c231986e', class: "block" }, !this.authenticated && (hAsync("eds-button", { key: '98fa63c46b063a67c215ff9160c6dfbfee2265f7', label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }))));
|
|
13083
13017
|
}
|
|
13084
13018
|
static get cmpMeta() { return {
|
|
13085
13019
|
"$flags$": 9,
|
|
@@ -13123,6 +13057,7 @@ class EdsLogo {
|
|
|
13123
13057
|
this.href = '/';
|
|
13124
13058
|
this.orientation = 'horizontal';
|
|
13125
13059
|
this.type = undefined;
|
|
13060
|
+
this.label = 'Home';
|
|
13126
13061
|
}
|
|
13127
13062
|
/**
|
|
13128
13063
|
* Handles the click event on the logo link.
|
|
@@ -13175,7 +13110,7 @@ class EdsLogo {
|
|
|
13175
13110
|
}
|
|
13176
13111
|
render() {
|
|
13177
13112
|
const logoContent = this.getLogo();
|
|
13178
|
-
return (hAsync("a", { key: '
|
|
13113
|
+
return (hAsync("a", { key: 'ee8de4071b0137020341982b4c5cb2c938f1c4df', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, hAsync("div", { key: '1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c', innerHTML: logoContent })));
|
|
13179
13114
|
}
|
|
13180
13115
|
get el() { return getElement(this); }
|
|
13181
13116
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -13185,7 +13120,8 @@ class EdsLogo {
|
|
|
13185
13120
|
"$members$": {
|
|
13186
13121
|
"href": [1],
|
|
13187
13122
|
"orientation": [1],
|
|
13188
|
-
"type": [1]
|
|
13123
|
+
"type": [1],
|
|
13124
|
+
"label": [1]
|
|
13189
13125
|
},
|
|
13190
13126
|
"$listeners$": undefined,
|
|
13191
13127
|
"$lazyBundleId$": "-",
|
|
@@ -13212,7 +13148,7 @@ class EdsLogoVariations {
|
|
|
13212
13148
|
}
|
|
13213
13149
|
}
|
|
13214
13150
|
render() {
|
|
13215
|
-
return hAsync("div", { key: '
|
|
13151
|
+
return hAsync("div", { key: '0494cbb3e7b4902e91a0c78c691bc3405b9f11cc', class: "container" }, this.renderContent());
|
|
13216
13152
|
}
|
|
13217
13153
|
static get cmpMeta() { return {
|
|
13218
13154
|
"$flags$": 0,
|
|
@@ -13345,7 +13281,6 @@ class EdsMatomoNotice {
|
|
|
13345
13281
|
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
|
|
13346
13282
|
var EdsModalStyle0 = edsModalCss;
|
|
13347
13283
|
|
|
13348
|
-
//import { sendAnalytics } from '@ebrains/utils';
|
|
13349
13284
|
/**
|
|
13350
13285
|
* `EdsModal` is a modal dialog component that can be toggled open or closed.
|
|
13351
13286
|
*
|
|
@@ -13424,32 +13359,19 @@ class EdsModal {
|
|
|
13424
13359
|
this.isOpen = !this.isOpen;
|
|
13425
13360
|
}
|
|
13426
13361
|
/**
|
|
13427
|
-
*
|
|
13428
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
13429
|
-
*/
|
|
13430
|
-
componentDidLoad() {
|
|
13431
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
13432
|
-
//const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
13433
|
-
//this.emitContext(btn);
|
|
13434
|
-
}
|
|
13435
|
-
/**
|
|
13436
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
13437
|
-
* This event provides context information about the eds-modal component.
|
|
13362
|
+
* Closes the modal when the Escape key is pressed.
|
|
13438
13363
|
*/
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
13443
|
-
identifier: null
|
|
13364
|
+
handleKeyDown(event) {
|
|
13365
|
+
if (this.isOpen && event.key === 'Escape') {
|
|
13366
|
+
this.close();
|
|
13444
13367
|
}
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
btnElement.dispatchEvent(event);
|
|
13448
|
-
}*/
|
|
13368
|
+
}
|
|
13449
13369
|
render() {
|
|
13450
|
-
|
|
13370
|
+
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
13371
|
+
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
13372
|
+
return (hAsync("div", { key: 'cd976fb0cd0c0663279dcd4dbd5823e26b6c32f7', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": titleId }, this.isOpen && (hAsync("div", { key: '40a2febed5d0ec15d5370183c97cfd05abd72007', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
13451
13373
|
,
|
|
13452
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
13374
|
+
onClick: () => this.close() })), hAsync("div", { key: '50f2c23d80a2007aca4d0a8911816141e43b71ee', class: `max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: 'e1cba5879bc488a99b896c48c8a780336b2195e7', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, hAsync("span", { key: '8f018e3d2890346d23e7dcb115676051048bcacb', id: titleId, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), hAsync("eds-button", { key: '4ae4013dd45573648817ac95ee4370ed615aa6a0', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), hAsync("div", { key: 'ac4e3d8f273d04ad02e0123c23b36b89bfc89db2', class: "pt-8" }, hAsync("slot", { key: '60917e9f750bfd7948e580acc817cffe6424608a' })))));
|
|
13453
13375
|
}
|
|
13454
13376
|
get el() { return getElement(this); }
|
|
13455
13377
|
static get style() { return EdsModalStyle0; }
|
|
@@ -13466,7 +13388,7 @@ class EdsModal {
|
|
|
13466
13388
|
"close": [64],
|
|
13467
13389
|
"toggle": [64]
|
|
13468
13390
|
},
|
|
13469
|
-
"$listeners$":
|
|
13391
|
+
"$listeners$": [[8, "keydown", "handleKeyDown"]],
|
|
13470
13392
|
"$lazyBundleId$": "-",
|
|
13471
13393
|
"$attrsToReflect$": []
|
|
13472
13394
|
}; }
|
|
@@ -13506,7 +13428,7 @@ class EdsNavigator {
|
|
|
13506
13428
|
linkElement.dispatchEvent(event);
|
|
13507
13429
|
}
|
|
13508
13430
|
render() {
|
|
13509
|
-
return (hAsync("ul", { key: '
|
|
13431
|
+
return (hAsync("ul", { key: '712287e683436cc98c2d6ef195501add1929522e', class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && (hAsync("eds-link", { key: '4fda36ce37897284d7062f88133f147831d96a6f', label: this.prevLabel, url: this.prevUrl || undefined, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, hAsync("eds-icon-wrapper", { key: '9bfa6bbbdc68641f65bec49f207d96f075b9a5b0', icon: "chevron-left" }), this.prevLabel)), this.nextLabel && (hAsync("eds-link", { key: '6ee8ebee011a2c30a74645b072c7c37929d0a55f', label: this.nextLabel, url: this.nextUrl || undefined, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, hAsync("eds-icon-wrapper", { key: '44ebd4dcce0e367df7d9035bb445e49fde35e913', icon: "chevron-right", class: "w-20 h-20" })))));
|
|
13510
13432
|
}
|
|
13511
13433
|
get el() { return getElement(this); }
|
|
13512
13434
|
static get cmpMeta() { return {
|
|
@@ -13704,7 +13626,7 @@ class EdsPagination {
|
|
|
13704
13626
|
}
|
|
13705
13627
|
}
|
|
13706
13628
|
render() {
|
|
13707
|
-
return (hAsync("div", { key: '
|
|
13629
|
+
return (hAsync("div", { key: '8c8418eec263acc153a928b752775458f897504f' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: '02a5a69772a4812f10b29e8df117b72df210614d', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, hAsync("span", { key: 'ef9804843100c722643c24e31a05f86f2d55efa0', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination" }, hAsync("ul", { class: "flex items-center justify-center gap-x-8" }, hAsync("li", { class: "mr-auto" }, hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
13708
13630
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
13709
13631
|
: this.isFirstPage()
|
|
13710
13632
|
? '#'
|
|
@@ -13782,7 +13704,7 @@ class EdsProgressBar {
|
|
|
13782
13704
|
}
|
|
13783
13705
|
render() {
|
|
13784
13706
|
const progressValue = this.value;
|
|
13785
|
-
return (hAsync("div", { key: '
|
|
13707
|
+
return (hAsync("div", { key: '0f47fedbf9d44887f65b399e184215f0937b1df1', 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" }, hAsync("div", { key: 'a2d095d778842c969832ea6b1ba7f7ef917d1390', 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, "%")));
|
|
13786
13708
|
}
|
|
13787
13709
|
static get style() { return EdsProgressBarStyle0; }
|
|
13788
13710
|
static get cmpMeta() { return {
|
|
@@ -13798,7 +13720,7 @@ class EdsProgressBar {
|
|
|
13798
13720
|
}; }
|
|
13799
13721
|
}
|
|
13800
13722
|
|
|
13801
|
-
const edsRatingCss = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-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)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}";
|
|
13723
|
+
const edsRatingCss = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-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)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}";
|
|
13802
13724
|
var EdsRatingStyle0 = edsRatingCss;
|
|
13803
13725
|
|
|
13804
13726
|
class EdsRating {
|
|
@@ -13812,7 +13734,6 @@ class EdsRating {
|
|
|
13812
13734
|
}
|
|
13813
13735
|
/**
|
|
13814
13736
|
* Parses the `textMapping` prop into an array of strings.
|
|
13815
|
-
* Returns an empty array if parsing fails.
|
|
13816
13737
|
*/
|
|
13817
13738
|
get parsedMappings() {
|
|
13818
13739
|
if (typeof this.textMapping === 'object') {
|
|
@@ -13823,8 +13744,7 @@ class EdsRating {
|
|
|
13823
13744
|
return JSON.parse(this.textMapping);
|
|
13824
13745
|
}
|
|
13825
13746
|
catch (e) {
|
|
13826
|
-
//
|
|
13827
|
-
console.error('Error parsing textMapping prop:', e);
|
|
13747
|
+
//console.error('Error parsing textMapping prop:', e);
|
|
13828
13748
|
return [];
|
|
13829
13749
|
}
|
|
13830
13750
|
}
|
|
@@ -13839,10 +13759,14 @@ class EdsRating {
|
|
|
13839
13759
|
this.ratingChange.emit(rating);
|
|
13840
13760
|
}
|
|
13841
13761
|
render() {
|
|
13842
|
-
return (hAsync("div", { key: '
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13762
|
+
return (hAsync("div", { key: 'b613863ad54ae9b381a5741bce4b188eff806ef0', class: "relative w-full flex flex-col" }, hAsync("span", { key: 'f35cef9c3691aab73995e2ca6e2554cc19bae837', class: "f-heading-05" }, this.label), hAsync("div", { key: '37082eb4bbadf5c211c197f3f81501d0b0e61404', role: "radiogroup", "aria-label": this.label, class: "stars flex space-x-2" }, Array.from({ length: this.stars }, (_, index) => {
|
|
13763
|
+
const starRating = index + 1;
|
|
13764
|
+
const isSelected = starRating <= this.selectedRating;
|
|
13765
|
+
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
13766
|
+
const mappingText = this.parsedMappings[starRating - 1] || `Rating ${starRating}`;
|
|
13767
|
+
return (hAsync("eds-button", { label: "\u2605", role: "radio", "aria-checked": isSelected ? 'true' : 'false', "aria-label": mappingText, onClick: () => this.handleClick(starRating), tabIndex: this.selectedRating === 0 && index === 0 ? 0 : isSelected ? 0 : -1, intent: isSelected ? 'primary' : 'ghost', size: "small", "extra-class": "p-2" // Optional padding or styling for the star button
|
|
13768
|
+
}));
|
|
13769
|
+
})), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '61b4b92e476cfa0dd9bf405cb080dedd995ff9c6', class: "f-ui-04 text-lighter mt-4" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
13846
13770
|
}
|
|
13847
13771
|
static get style() { return EdsRatingStyle0; }
|
|
13848
13772
|
static get cmpMeta() { return {
|
|
@@ -13882,7 +13806,7 @@ class EdsSectionCore {
|
|
|
13882
13806
|
}
|
|
13883
13807
|
render() {
|
|
13884
13808
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
13885
|
-
return (hAsync(TagType, { key: '
|
|
13809
|
+
return (hAsync(TagType, { key: 'e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac' }, hAsync("eds-section-heading", { key: '379c6bc644612d3e0865ce2acd8eacb4d67c7769', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5828a28c2c8ac65fbc56652f733f148a0d0198b7' })));
|
|
13886
13810
|
}
|
|
13887
13811
|
static get style() { return EdsSectionCoreStyle0; }
|
|
13888
13812
|
static get cmpMeta() { return {
|
|
@@ -13934,12 +13858,12 @@ class EdsSectionHeading {
|
|
|
13934
13858
|
render() {
|
|
13935
13859
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
13936
13860
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
13937
|
-
return (hAsync(TagType, { key: '
|
|
13861
|
+
return (hAsync(TagType, { key: 'c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb', class: {
|
|
13938
13862
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20': true,
|
|
13939
13863
|
container: this.withContainer,
|
|
13940
13864
|
'pt-48': this.spacingLarge,
|
|
13941
13865
|
'pt-28': !this.spacingLarge
|
|
13942
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13866
|
+
} }, hAsync(HeadingTag, { key: 'e65e13820553eefa5aec8bc9740e5e9da828ac92', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
13943
13867
|
}
|
|
13944
13868
|
static get cmpMeta() { return {
|
|
13945
13869
|
"$flags$": 0,
|
|
@@ -14015,7 +13939,7 @@ class EdsSocialNetworks {
|
|
|
14015
13939
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
14016
13940
|
*/
|
|
14017
13941
|
render() {
|
|
14018
|
-
return (hAsync("div", { key: '
|
|
13942
|
+
return (hAsync("div", { key: '615a7cb2c26060d2d4cde875291a081b7de12e19' }, hAsync("p", { key: '9e19ad59fcc94508cb60cd4aafa87c3878fb2ebc', class: "f-ui-02" }, this.title), hAsync("ul", { key: 'a4811d16447ab148a7c129f188405f3f7050df70', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
14019
13943
|
}
|
|
14020
13944
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
14021
13945
|
static get cmpMeta() { return {
|
|
@@ -14030,6 +13954,76 @@ class EdsSocialNetworks {
|
|
|
14030
13954
|
}; }
|
|
14031
13955
|
}
|
|
14032
13956
|
|
|
13957
|
+
const edsStepsCss = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:1.125rem;font-weight:500;position:relative;margin-top:1em;margin-bottom:1em}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}";
|
|
13958
|
+
var EdsStepsStyle0 = edsStepsCss;
|
|
13959
|
+
|
|
13960
|
+
class EdsSteps {
|
|
13961
|
+
constructor(hostRef) {
|
|
13962
|
+
registerInstance(this, hostRef);
|
|
13963
|
+
this.stepClick = createEvent(this, "stepClick", 7);
|
|
13964
|
+
this.handleNext = () => {
|
|
13965
|
+
if (this.activeStep < this.parsedSteps.length) {
|
|
13966
|
+
this.activeStep = this.activeStep + 1;
|
|
13967
|
+
}
|
|
13968
|
+
};
|
|
13969
|
+
this.handleBack = () => {
|
|
13970
|
+
if (this.activeStep > 0) {
|
|
13971
|
+
this.activeStep = this.activeStep - 1;
|
|
13972
|
+
}
|
|
13973
|
+
};
|
|
13974
|
+
this.handleReset = () => {
|
|
13975
|
+
this.activeStep = 0;
|
|
13976
|
+
};
|
|
13977
|
+
this.steps = [];
|
|
13978
|
+
this.type = 'static';
|
|
13979
|
+
this.activeStep = 0;
|
|
13980
|
+
}
|
|
13981
|
+
handleStepClick(index) {
|
|
13982
|
+
this.stepClick.emit(index);
|
|
13983
|
+
// In linear mode, update the active step on header click.
|
|
13984
|
+
if (this.type === 'linear') {
|
|
13985
|
+
this.activeStep = index;
|
|
13986
|
+
}
|
|
13987
|
+
}
|
|
13988
|
+
/**
|
|
13989
|
+
* Parse the JSON string into an array of steps.
|
|
13990
|
+
*/
|
|
13991
|
+
get parsedSteps() {
|
|
13992
|
+
if (typeof this.steps === 'string') {
|
|
13993
|
+
try {
|
|
13994
|
+
const stepsStr = this.steps;
|
|
13995
|
+
return JSON.parse(stepsStr);
|
|
13996
|
+
}
|
|
13997
|
+
catch (error) {
|
|
13998
|
+
//console.error('Invalid steps JSON', error);
|
|
13999
|
+
return [];
|
|
14000
|
+
}
|
|
14001
|
+
}
|
|
14002
|
+
return this.steps;
|
|
14003
|
+
}
|
|
14004
|
+
render() {
|
|
14005
|
+
const steps = this.parsedSteps;
|
|
14006
|
+
if (this.type === 'linear') {
|
|
14007
|
+
return (hAsync("div", null, hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", { onClick: () => this.handleStepClick(index) }, step.title), this.activeStep === index && (hAsync("div", { class: "content" }, hAsync("div", { class: "f-body-02 text-lighter my-16" }, step.content), hAsync("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', class: "next-btn", onClick: this.handleNext }), hAsync("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' }))))))), this.activeStep === steps.length && (hAsync("div", { class: "completed" }, hAsync("eds-alert", { intent: "success", message: "All steps completed - you're finished!" }), hAsync("eds-button", { label: "Start again", onClick: this.handleReset, "extra-class": "mt-4" })))));
|
|
14008
|
+
}
|
|
14009
|
+
// Static mode: show all steps with their content, no navigation buttons.
|
|
14010
|
+
return (hAsync("div", { class: "steps" }, steps.map((step, index) => (hAsync("div", { class: "step mb-28", key: index }, hAsync("h3", null, step.title), hAsync("div", { class: "content" }, hAsync("div", { class: "f-body-02 text-lighter my-16" }, step.content)))))));
|
|
14011
|
+
}
|
|
14012
|
+
static get style() { return EdsStepsStyle0; }
|
|
14013
|
+
static get cmpMeta() { return {
|
|
14014
|
+
"$flags$": 0,
|
|
14015
|
+
"$tagName$": "eds-steps",
|
|
14016
|
+
"$members$": {
|
|
14017
|
+
"steps": [1],
|
|
14018
|
+
"type": [1],
|
|
14019
|
+
"activeStep": [32]
|
|
14020
|
+
},
|
|
14021
|
+
"$listeners$": undefined,
|
|
14022
|
+
"$lazyBundleId$": "-",
|
|
14023
|
+
"$attrsToReflect$": []
|
|
14024
|
+
}; }
|
|
14025
|
+
}
|
|
14026
|
+
|
|
14033
14027
|
/**
|
|
14034
14028
|
* @internal
|
|
14035
14029
|
*/
|
|
@@ -14058,7 +14052,7 @@ class EdsSvgRepository {
|
|
|
14058
14052
|
icon: { format: 'svg' },
|
|
14059
14053
|
name: { format: 'bold' }
|
|
14060
14054
|
};
|
|
14061
|
-
return (hAsync("eds-table", { key: '
|
|
14055
|
+
return (hAsync("eds-table", { key: 'a7d7fa426da72e174880a300202390c1016b74df', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true, "host-width": this.hostWidth }));
|
|
14062
14056
|
}
|
|
14063
14057
|
get hostEl() { return getElement(this); }
|
|
14064
14058
|
static get cmpMeta() { return {
|
|
@@ -14071,6 +14065,50 @@ class EdsSvgRepository {
|
|
|
14071
14065
|
}; }
|
|
14072
14066
|
}
|
|
14073
14067
|
|
|
14068
|
+
const edsSwitchCss = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{font-size:14px;margin:0 8px}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}";
|
|
14069
|
+
var EdsSwitchStyle0 = edsSwitchCss;
|
|
14070
|
+
|
|
14071
|
+
class EdsSwitch {
|
|
14072
|
+
constructor(hostRef) {
|
|
14073
|
+
registerInstance(this, hostRef);
|
|
14074
|
+
this.change = createEvent(this, "change", 7);
|
|
14075
|
+
this.toggleSwitch = () => {
|
|
14076
|
+
if (this.disabled) {
|
|
14077
|
+
return;
|
|
14078
|
+
}
|
|
14079
|
+
this.checked = !this.checked;
|
|
14080
|
+
this.change.emit(this.checked);
|
|
14081
|
+
};
|
|
14082
|
+
this.checked = false;
|
|
14083
|
+
this.disabled = false;
|
|
14084
|
+
this.labelOn = '';
|
|
14085
|
+
this.labelOff = '';
|
|
14086
|
+
}
|
|
14087
|
+
render() {
|
|
14088
|
+
// Compute an accessible name based on state.
|
|
14089
|
+
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
14090
|
+
return (hAsync("div", { key: 'd4c727cbb562921b2bcba269e84f25c359c7061b', class: "switch-container" }, this.labelOff && hAsync("span", { key: '90b18fff27bd21501466deb5879e5fe6ff607043', class: "switch-label switch-label--off" }, this.labelOff), hAsync("button", { key: '8675f5d9f972d3932710fa7f9b28f74f95a83003', type: "button", role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": accessibleLabel, class: {
|
|
14091
|
+
switch: true,
|
|
14092
|
+
'switch--checked': this.checked,
|
|
14093
|
+
'switch--disabled': this.disabled
|
|
14094
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, hAsync("span", { key: '26aa30a01b10419c1665b1fd58b5696a02d1504a', class: "switch-handle" })), this.labelOn && hAsync("span", { key: '3680d67555e9193a97e129c0639b411263e070a8', class: "switch-label switch-label--on" }, this.labelOn)));
|
|
14095
|
+
}
|
|
14096
|
+
static get style() { return EdsSwitchStyle0; }
|
|
14097
|
+
static get cmpMeta() { return {
|
|
14098
|
+
"$flags$": 9,
|
|
14099
|
+
"$tagName$": "eds-switch",
|
|
14100
|
+
"$members$": {
|
|
14101
|
+
"checked": [1540],
|
|
14102
|
+
"disabled": [4],
|
|
14103
|
+
"labelOn": [1, "label-on"],
|
|
14104
|
+
"labelOff": [1, "label-off"]
|
|
14105
|
+
},
|
|
14106
|
+
"$listeners$": undefined,
|
|
14107
|
+
"$lazyBundleId$": "-",
|
|
14108
|
+
"$attrsToReflect$": [["checked", "checked"]]
|
|
14109
|
+
}; }
|
|
14110
|
+
}
|
|
14111
|
+
|
|
14074
14112
|
/**
|
|
14075
14113
|
* @internal
|
|
14076
14114
|
*/
|
|
@@ -14102,7 +14140,7 @@ class EdsTab {
|
|
|
14102
14140
|
this.ariaLabel = undefined;
|
|
14103
14141
|
}
|
|
14104
14142
|
render() {
|
|
14105
|
-
return (hAsync("a", { key: '
|
|
14143
|
+
return (hAsync("a", { key: 'a55be2a07e554ab13a0d7e913710382d6126da57', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
|
|
14106
14144
|
}
|
|
14107
14145
|
static get cmpMeta() { return {
|
|
14108
14146
|
"$flags$": 0,
|
|
@@ -14280,15 +14318,15 @@ class EdsTable {
|
|
|
14280
14318
|
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
14281
14319
|
: 400;
|
|
14282
14320
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14283
|
-
return (hAsync("div", { key: '
|
|
14321
|
+
return (hAsync("div", { key: '66ca59804bc8054655ed0d942104516fe4cd259b' }, this.searchEnabled && (hAsync("div", { key: 'df7267fc443da042e4b6ff81ded5800a2213bd73' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
14284
14322
|
// @ts-ignore
|
|
14285
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '
|
|
14323
|
+
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '80ac1fcb3802f9f5d5eabe016fb7345b88908b36', class: "mt-20" }, hAsync("table", { key: '09acf39378b1a4c8bfe40b496ec6bf71a2d761ca', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '8b844806cfef10d1a59da54a385ee8ed6c167050' }, hAsync("tr", { key: '1b3cff91bdaf225e9f3b337e245cd80ad4772b6a', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14286
14324
|
var _a;
|
|
14287
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
14288
|
-
}))), hAsync("tbody", { key: '
|
|
14325
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth - 5}px` } }, column));
|
|
14326
|
+
}))), hAsync("tbody", { key: '93dfd3abd196779c288f85bb6a357ad3e9c01418' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14289
14327
|
var _a;
|
|
14290
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
|
|
14291
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14328
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth - 5}px` } }, this.renderCell(row[column], column)));
|
|
14329
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58', class: "mt-20" }, hAsync("eds-pagination", { key: 'abe3a593827d99437a06e204ea9d8ef92f80aba7', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14292
14330
|
}
|
|
14293
14331
|
get hostEl() { return getElement(this); }
|
|
14294
14332
|
static get watchers() { return {
|
|
@@ -14452,7 +14490,7 @@ class EdsTabs {
|
|
|
14452
14490
|
});
|
|
14453
14491
|
}
|
|
14454
14492
|
render() {
|
|
14455
|
-
return (hAsync("div", { key: '
|
|
14493
|
+
return (hAsync("div", { key: 'f5c9e076fc1fb95b57e0148d85865ce62c14fbe7', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '7d382167fb62999e39b784ce8bfba24267c87a64', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: '99bbfabd817bada1984ddf87a274bf9304a1e6a0', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14456
14494
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14457
14495
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14458
14496
|
return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
@@ -14594,11 +14632,11 @@ class EdsTabsContent {
|
|
|
14594
14632
|
});
|
|
14595
14633
|
}
|
|
14596
14634
|
render() {
|
|
14597
|
-
return (hAsync("div", { key: '
|
|
14635
|
+
return (hAsync("div", { key: 'aa94a55d3ae658797df6ae75724238a17a80a169', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '0e38c695467c272198a605efdb2705b14239756e', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: '525f56d02b41e236d3b713fb972b6803e3f908d5', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14598
14636
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14599
14637
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14600
14638
|
return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
14601
|
-
})), hAsync("slot", { key: '
|
|
14639
|
+
})), hAsync("slot", { key: 'e5da088cec99dd0e40560b70fbd9940ac5a7f56f' }))));
|
|
14602
14640
|
}
|
|
14603
14641
|
get el() { return getElement(this); }
|
|
14604
14642
|
static get watchers() { return {
|
|
@@ -14653,6 +14691,7 @@ class EdsTag {
|
|
|
14653
14691
|
constructor(hostRef) {
|
|
14654
14692
|
registerInstance(this, hostRef);
|
|
14655
14693
|
this.label = undefined;
|
|
14694
|
+
this.ariaLabel = '';
|
|
14656
14695
|
this.intent = 'default';
|
|
14657
14696
|
}
|
|
14658
14697
|
/**
|
|
@@ -14660,8 +14699,10 @@ class EdsTag {
|
|
|
14660
14699
|
* @returns The rendered HTML for the tag component with the applied styles and label.
|
|
14661
14700
|
*/
|
|
14662
14701
|
render() {
|
|
14702
|
+
var _a;
|
|
14663
14703
|
const classes = tagStyles({ intent: this.intent });
|
|
14664
|
-
|
|
14704
|
+
const accessibleLabel = ((_a = this.ariaLabel) === null || _a === void 0 ? void 0 : _a.length) ? this.ariaLabel : this.label;
|
|
14705
|
+
return (hAsync("span", { key: '6a517f42aeb641c95d96ecd6c3090a317a3195c6', class: classes, "aria-label": accessibleLabel }, this.label));
|
|
14665
14706
|
}
|
|
14666
14707
|
static get style() { return EdsTagStyle0; }
|
|
14667
14708
|
static get cmpMeta() { return {
|
|
@@ -14669,6 +14710,7 @@ class EdsTag {
|
|
|
14669
14710
|
"$tagName$": "eds-tag",
|
|
14670
14711
|
"$members$": {
|
|
14671
14712
|
"label": [1],
|
|
14713
|
+
"ariaLabel": [1, "aria-label"],
|
|
14672
14714
|
"intent": [1]
|
|
14673
14715
|
},
|
|
14674
14716
|
"$listeners$": undefined,
|
|
@@ -14735,7 +14777,7 @@ class EdsTimeline {
|
|
|
14735
14777
|
}
|
|
14736
14778
|
}
|
|
14737
14779
|
render() {
|
|
14738
|
-
return (hAsync("div", { key: '
|
|
14780
|
+
return (hAsync("div", { key: '1ba4a93ce518b52f5821af75ae0587c44db92c6d', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: '3e019420ddd4bfab7800567c7130299ea47205c6', class: "relative" }, hAsync("div", { key: 'df99ce8fb08232c46449d7485dd7cffcd04b64d6', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '1b52694d2e8c3656910c02680aa8ce2e78b02997', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14739
14781
|
? [{ label: 'completed', style: 'accent' }]
|
|
14740
14782
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14741
14783
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14820,7 +14862,7 @@ class EdsToast {
|
|
|
14820
14862
|
return null;
|
|
14821
14863
|
}
|
|
14822
14864
|
const classes = toastStyles({ intent: this.intent });
|
|
14823
|
-
return (hAsync("div", { class: classes }, hAsync("div", { class: "flex items-center justify-between gap-4" }, hAsync("p", { class: "f-ui-01" }, this.message), hAsync("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" }))));
|
|
14865
|
+
return (hAsync("div", { class: classes, role: "alert", "aria-live": "assertive" }, hAsync("div", { class: "flex items-center justify-between gap-4" }, hAsync("p", { class: "f-ui-01" }, this.message), hAsync("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" }))));
|
|
14824
14866
|
}
|
|
14825
14867
|
get el() { return getElement(this); }
|
|
14826
14868
|
static get cmpMeta() { return {
|
|
@@ -14870,7 +14912,7 @@ class EdsToastManager {
|
|
|
14870
14912
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14871
14913
|
}
|
|
14872
14914
|
render() {
|
|
14873
|
-
return (hAsync("div", { key: '
|
|
14915
|
+
return (hAsync("div", { key: '22cb79fd617ca1701fba63d3d4bf04f73ce1ac77', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
14874
14916
|
}
|
|
14875
14917
|
get hostElement() { return getElement(this); }
|
|
14876
14918
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14980,7 +15022,7 @@ class EdsTooltip {
|
|
|
14980
15022
|
}
|
|
14981
15023
|
}
|
|
14982
15024
|
render() {
|
|
14983
|
-
return (hAsync("div", { key: '
|
|
15025
|
+
return (hAsync("div", { key: '1635b034319df4827a62ed58267d81db277ad19d', class: "relative" }, hAsync("slot", { key: '6cdfd0f6d456b984464c5091a2829cdba69ba895' }), this.isVisible && this.isPositioned && this.content && (hAsync("div", { key: '7e736731dc700e0273fdfe15202426d2db086aef', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
|
|
14984
15026
|
top: this.tooltipStyle.top,
|
|
14985
15027
|
left: this.tooltipStyle.left,
|
|
14986
15028
|
transform: this.tooltipStyle.transform
|
|
@@ -15047,7 +15089,7 @@ class EdsTrl {
|
|
|
15047
15089
|
Application: { format: 'code' },
|
|
15048
15090
|
'Current TRL Stage': { format: 'text' }
|
|
15049
15091
|
};
|
|
15050
|
-
return (hAsync("div", { key: '
|
|
15092
|
+
return (hAsync("div", { key: 'a329a001d6275fcfe7df9bddf83bd289effe4151', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: '93aebfd840b16416789b15eec0daa16d9126aa9f', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
15051
15093
|
}
|
|
15052
15094
|
static get cmpMeta() { return {
|
|
15053
15095
|
"$flags$": 0,
|
|
@@ -15079,15 +15121,25 @@ class EdsUser {
|
|
|
15079
15121
|
*/
|
|
15080
15122
|
this.handleLogin = () => {
|
|
15081
15123
|
if (!this.authenticated) {
|
|
15082
|
-
|
|
15124
|
+
try {
|
|
15125
|
+
login();
|
|
15126
|
+
}
|
|
15127
|
+
catch (error) {
|
|
15128
|
+
toast.show(error.message, 'error');
|
|
15129
|
+
}
|
|
15083
15130
|
}
|
|
15084
15131
|
};
|
|
15085
15132
|
/**
|
|
15086
15133
|
* Handles user logout by invoking the Keycloak `logout` function.
|
|
15087
15134
|
* Resets the `authenticated` state to `false` after logout.
|
|
15088
15135
|
*/
|
|
15089
|
-
this.handleLogout = () => {
|
|
15090
|
-
|
|
15136
|
+
this.handleLogout = async () => {
|
|
15137
|
+
try {
|
|
15138
|
+
await logout();
|
|
15139
|
+
}
|
|
15140
|
+
catch (error) {
|
|
15141
|
+
toast.show(error.message, 'error');
|
|
15142
|
+
}
|
|
15091
15143
|
this.authenticated = false;
|
|
15092
15144
|
this.user = null;
|
|
15093
15145
|
};
|
|
@@ -15096,8 +15148,8 @@ class EdsUser {
|
|
|
15096
15148
|
this.keycloakClientId = undefined;
|
|
15097
15149
|
this.user = null;
|
|
15098
15150
|
this.authenticated = false;
|
|
15099
|
-
this.serverAvailable = false;
|
|
15100
15151
|
this.username = '';
|
|
15152
|
+
this.serverAvailable = false;
|
|
15101
15153
|
}
|
|
15102
15154
|
/**
|
|
15103
15155
|
* Lifecycle method that runs when the component is about to load.
|
|
@@ -15112,7 +15164,7 @@ class EdsUser {
|
|
|
15112
15164
|
}
|
|
15113
15165
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
15114
15166
|
if (!this.serverAvailable) {
|
|
15115
|
-
|
|
15167
|
+
toast.show('Keycloak server is unavailable.', 'error');
|
|
15116
15168
|
return; // Do not proceed further
|
|
15117
15169
|
}
|
|
15118
15170
|
await this.initAuth();
|
|
@@ -15124,35 +15176,27 @@ class EdsUser {
|
|
|
15124
15176
|
*/
|
|
15125
15177
|
async initAuth() {
|
|
15126
15178
|
try {
|
|
15127
|
-
|
|
15179
|
+
await initKeycloak({
|
|
15128
15180
|
url: this.keycloakUrl,
|
|
15129
15181
|
realm: this.keycloakRealm,
|
|
15130
15182
|
clientId: this.keycloakClientId
|
|
15131
|
-
};
|
|
15132
|
-
await initKeycloak(keycloakConfig, true);
|
|
15133
|
-
// Set authentication state and fetch user data if authenticated
|
|
15134
|
-
//this.authenticated = isAuthenticated();
|
|
15183
|
+
}, true);
|
|
15135
15184
|
if (isAuthenticated()) {
|
|
15136
15185
|
this.user = getUser();
|
|
15137
15186
|
this.authenticated = true;
|
|
15187
|
+
this.authStatusChanged.emit({
|
|
15188
|
+
authenticated: this.authenticated,
|
|
15189
|
+
user: this.user
|
|
15190
|
+
}); // Emit auth status change
|
|
15138
15191
|
}
|
|
15139
|
-
this.authStatusChanged.emit({
|
|
15140
|
-
authenticated: this.authenticated,
|
|
15141
|
-
user: this.user
|
|
15142
|
-
}); // Emit auth status change
|
|
15143
15192
|
}
|
|
15144
15193
|
catch (error) {
|
|
15145
|
-
|
|
15146
|
-
console.error('Keycloak initialization failed:', error);
|
|
15194
|
+
toast.show(error.message, 'error');
|
|
15147
15195
|
}
|
|
15148
15196
|
}
|
|
15149
15197
|
render() {
|
|
15150
15198
|
var _a;
|
|
15151
|
-
|
|
15152
|
-
if (!this.serverAvailable) {
|
|
15153
|
-
return null;
|
|
15154
|
-
}
|
|
15155
|
-
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
15199
|
+
return (hAsync("div", { key: '22ee744979511dd2f8a1e1a15bb99215eadd535b', class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
15156
15200
|
}
|
|
15157
15201
|
get hostEl() { return getElement(this); }
|
|
15158
15202
|
static get cmpMeta() { return {
|
|
@@ -15164,8 +15208,8 @@ class EdsUser {
|
|
|
15164
15208
|
"keycloakClientId": [1, "keycloak-client-id"],
|
|
15165
15209
|
"user": [32],
|
|
15166
15210
|
"authenticated": [32],
|
|
15167
|
-
"
|
|
15168
|
-
"
|
|
15211
|
+
"username": [32],
|
|
15212
|
+
"serverAvailable": [32]
|
|
15169
15213
|
},
|
|
15170
15214
|
"$listeners$": undefined,
|
|
15171
15215
|
"$lazyBundleId$": "-",
|
|
@@ -15205,7 +15249,7 @@ class EdsUserModal {
|
|
|
15205
15249
|
}
|
|
15206
15250
|
render() {
|
|
15207
15251
|
var _a, _b, _c, _d, _e;
|
|
15208
|
-
return (hAsync("div", { key: '
|
|
15252
|
+
return (hAsync("div", { key: '4a80335b6a59b9653130ca75a6e42c04fce68f4f', class: "min-w-[280px] p-8" }, hAsync("div", { key: '9c97f6be46216587692d4852174cecfaacb70593', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, hAsync("eds-avatar", { key: 'c778f6bdfb21068ca7c2deff6e298f61af6dbc67', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), hAsync("div", { key: '7f453546c9cc54597069abb3e4b50312fe7bf364', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (hAsync("p", { key: '34e080ef159535820c09378701de0e6f4fd96009', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && hAsync("p", { key: '2f85764e7d015dc3f3b22ca8a07126f8f57216ef', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && hAsync("p", { key: '002dec51e979c29f2343f55e004449e4cee4075c', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), hAsync("div", { key: '740b78c504257fb755ba7ba04dd25f023d37ed33', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, hAsync("div", { key: 'ac307937bdd3fc86cce502e5eeb3e922d931f418', class: "border-softer mb-10 border-b-2 pb-16" }, hAsync("eds-link", { key: 'bdd0f1ef62ac78ffb1b40ed6873475df360cec66', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), hAsync("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (hAsync("eds-link", { key: 'd73016ad71f3b356b7fb7d0a2a84124eabb05da5', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
|
|
15209
15253
|
}
|
|
15210
15254
|
static get watchers() { return {
|
|
15211
15255
|
"user": ["parseUserProp"],
|
|
@@ -15227,6 +15271,55 @@ class EdsUserModal {
|
|
|
15227
15271
|
}; }
|
|
15228
15272
|
}
|
|
15229
15273
|
|
|
15274
|
+
const edsVerticalStepperCss = ":host{display:block}.stepper-container{margin:0 auto}.stepper{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.step{margin-bottom:24px}.step-label{counter-increment:step;font-size:1.25rem;font-weight:600;position:relative;margin-top:1em;margin-bottom:1em}.step-label::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.optional{font-size:0.8rem;color:#888;margin-left:8px}.step-content{margin-top:8px}.step-buttons{margin-top:12px}.step-buttons button{margin-right:8px;padding:6px 12px;font-size:0.875rem}.completed{padding:16px;border:1px solid #ddd;margin-top:16px;text-align:center}";
|
|
15275
|
+
var EdsVerticalStepperStyle0 = edsVerticalStepperCss;
|
|
15276
|
+
|
|
15277
|
+
class EdsVerticalStepper {
|
|
15278
|
+
constructor(hostRef) {
|
|
15279
|
+
registerInstance(this, hostRef);
|
|
15280
|
+
this.handleNext = () => {
|
|
15281
|
+
if (this.activeStep < this.parsedSteps.length) {
|
|
15282
|
+
this.activeStep = this.activeStep + 1;
|
|
15283
|
+
}
|
|
15284
|
+
};
|
|
15285
|
+
this.handleBack = () => {
|
|
15286
|
+
if (this.activeStep > 0) {
|
|
15287
|
+
this.activeStep = this.activeStep - 1;
|
|
15288
|
+
}
|
|
15289
|
+
};
|
|
15290
|
+
this.handleReset = () => {
|
|
15291
|
+
this.activeStep = 0;
|
|
15292
|
+
};
|
|
15293
|
+
this.steps = '[]';
|
|
15294
|
+
this.activeStep = 0;
|
|
15295
|
+
}
|
|
15296
|
+
get parsedSteps() {
|
|
15297
|
+
try {
|
|
15298
|
+
return JSON.parse(this.steps);
|
|
15299
|
+
}
|
|
15300
|
+
catch (error) {
|
|
15301
|
+
//console.error('Invalid steps JSON', error);
|
|
15302
|
+
return [];
|
|
15303
|
+
}
|
|
15304
|
+
}
|
|
15305
|
+
render() {
|
|
15306
|
+
const steps = this.parsedSteps;
|
|
15307
|
+
return (hAsync("div", { key: '08fa2f85c49dbe217b2f9d068bee486e432f5315', class: "stepper-container" }, hAsync("div", { key: '6f7e0a0ccaa2882794a6be0216201d1bf924e2b2', class: "stepper" }, steps.map((step, index) => (hAsync("div", { class: "step", key: index }, hAsync("div", { class: "step-label" }, hAsync("span", null, step.label), index === steps.length - 1 && hAsync("span", { class: "f-ui-03 text-lightest ml-4" }, "(Last step)")), this.activeStep === index && (hAsync("div", { class: "step-content" }, hAsync("p", null, step.description), hAsync("div", { class: "step-buttons" }, hAsync("eds-button", { label: index === steps.length - 1 ? 'Finish' : 'Continue', class: "next-btn", onClick: this.handleNext }), hAsync("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: index === 0, "extra-class": index === 0 ? 'hidden' : 'ml-8 block' })))))))), this.activeStep === steps.length && (hAsync("div", { key: '8a5ebfed582b25d828758e1762a063df6c745093', class: "" }, hAsync("eds-alert", { key: 'a142fb50b8df533dd97f770aeaa453f2379ea7cb', intent: "success", message: "All steps completed - you're finished!" }), hAsync("eds-button", { key: '5cfba059c9a152f179e7c31fa5d7a222c00defe2', label: "Start again", onClick: this.handleReset, "extra-class": "mt-4" })))));
|
|
15308
|
+
}
|
|
15309
|
+
static get style() { return EdsVerticalStepperStyle0; }
|
|
15310
|
+
static get cmpMeta() { return {
|
|
15311
|
+
"$flags$": 9,
|
|
15312
|
+
"$tagName$": "eds-vertical-stepper",
|
|
15313
|
+
"$members$": {
|
|
15314
|
+
"steps": [1],
|
|
15315
|
+
"activeStep": [32]
|
|
15316
|
+
},
|
|
15317
|
+
"$listeners$": undefined,
|
|
15318
|
+
"$lazyBundleId$": "-",
|
|
15319
|
+
"$attrsToReflect$": []
|
|
15320
|
+
}; }
|
|
15321
|
+
}
|
|
15322
|
+
|
|
15230
15323
|
/**
|
|
15231
15324
|
* @internal
|
|
15232
15325
|
*/
|
|
@@ -15262,7 +15355,7 @@ class GradientPrimaryPalette {
|
|
|
15262
15355
|
];
|
|
15263
15356
|
}
|
|
15264
15357
|
render() {
|
|
15265
|
-
return (hAsync("ul", { key: '
|
|
15358
|
+
return (hAsync("ul", { key: '783eb92c379de99659e65e7cb02a1f0ca9df8758', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
15266
15359
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
15267
15360
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
15268
15361
|
}
|
|
@@ -15335,19 +15428,19 @@ class GradientSecondaryPalette {
|
|
|
15335
15428
|
];
|
|
15336
15429
|
}
|
|
15337
15430
|
render() {
|
|
15338
|
-
return (hAsync("div", { key: '
|
|
15431
|
+
return (hAsync("div", { key: '4bb98c83660ec855ba6b7faeb83386450c27f5fd' }, hAsync("ul", { key: '55b537cacdc2e3df835615e1658f82810633c485', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'd2f0d5c21e96579ef9a29540df473f821e2b29b6', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'e29f3000a3ee702caba1e1867b5d63be74b0d657', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15339
15432
|
background: this.colors[0].background
|
|
15340
|
-
} }, hAsync("div", { key: '
|
|
15433
|
+
} }, hAsync("div", { key: 'b1337194dd634b5820cc33707958fd0a2e0e92a6', class: "grid" }, hAsync("span", { key: '0385f9d05575613fcb99e8e01ee04c427ba66a8d', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'bbebf9ca89b0972376225d1708a356777dc6fcca', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'cb70085fe98e4c3e9f535e626b386b1c51b26fc8', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'cfd3721992823321bb75c0e544b28fa13cabd7eb', class: "grid" }, hAsync("span", { key: '00834f078742102f17dfa76a6ab024b0ccbcb7c9', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: '35d7c496211ab03ce17e17e839c27bcc5a9ef56f', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: 'baae2cbc6859b137a8588b0e9dd56d0c9e3c3acd', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15341
15434
|
background: this.colors[1].background
|
|
15342
|
-
} }, hAsync("div", { key: '
|
|
15435
|
+
} }, hAsync("div", { key: '55e3d9d0ce260c574da96b4775ce5f3e3e7fbaf0', class: "grid" }, hAsync("span", { key: 'c29acb597734c8422532cb303af1eaf04be73bbb', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'f1d9139118ce788e0c59d0fb7e8304b8d2ad2b6b', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'f8d92e3e205baf3c60a776ef6928da3f45682397', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '09c594d5fe6a642bb0b8dc813911516cb933488e', class: "grid" }, hAsync("span", { key: '62caf5d0012613e3ce291efc0539224e20da2180', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '6a6ced363a3b8a3c05298fd82ab9b7ec81d580f3', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '126929a680751e2028b373be442814d677911978' }), hAsync("ul", { key: '522cc84b4b8e1765a97c08927d640981e0a37328', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '4db01022fbe75477a88e7c8e7474e431c126dd63', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '92c1d309578f357745dcde72aae7c54b48d1a378', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15343
15436
|
background: this.colors[2].background
|
|
15344
|
-
} }, hAsync("div", { key: '
|
|
15437
|
+
} }, hAsync("div", { key: 'f789570aa4141bd4dbdbe737fca7a666beb5e635', class: "grid" }, hAsync("span", { key: '2d3840caf5ec39e08271b4400f9ce0e425bc796c', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '41cd0250155a4d8413fb5b35677c6121c3539ab3', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'c36680567bbfd9085b2151748a4dfa7e557925d8', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '14241bc8d0354da8eba7fb06eafc6841b182796a', class: "grid" }, hAsync("span", { key: '97bde70e3d904c55fdf1e7d8b13aff954b905644', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'c5734847ceebbcf235c058c7987415cd47bdba86', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '0c016fdccdbb1c372b28da2c47eacbbfb7af32a8', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15345
15438
|
background: this.colors[3].background
|
|
15346
|
-
} }, hAsync("div", { key: '
|
|
15439
|
+
} }, hAsync("div", { key: '0d34612dbff071b4abd0aa2e0b89885ab1088a60', class: "grid" }, hAsync("span", { key: 'ab9628602287dc6543c086cb6b34dd22d40af58c', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '7ca06f7d0801cf664762b274815747e75023b596', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: 'a910ecaee2d78c6be8af632b497a4fe2d9651a9e', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '420889ad4cb54cd70ed3d10053f836e0b226eee6', class: "grid" }, hAsync("span", { key: 'cc92bf72e7dd47a8d492ef263c46d22c7f5b64b2', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: 'd740c9446d7521e4b6f3e049149d687c74615493', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: 'a6c5dea6ed19042213dcb8c0d12cb3120078c284' }), hAsync("ul", { key: '7eede8a017fc381b57f07c1d3c4cf62b4b9a7f63', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '1202837ab3483b3cb9dd71992e71ea59594596e5', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '5280e99341777daa28196e0be215f58b64d5be37', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15347
15440
|
background: this.colors[4].background
|
|
15348
|
-
} }, hAsync("div", { key: '
|
|
15441
|
+
} }, hAsync("div", { key: '0a29d5eba0d80789df6e2df892f72a210558bc5f', class: "grid" }, hAsync("span", { key: 'b53837c45946fd2a2e2f44d1ed6ffe86fa15de5d', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '236bb0f5c879da738a5b758982262ef23537e863', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'ae5ed445fb1a5203745d71b9507cc1247c244d95', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'b1ee585cd3ae08d506b42e435e00f885b49f8994', class: "grid" }, hAsync("span", { key: '35c51bc7d60ba9fde2b6eac0ce035e0aceaad92c', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: 'c8796f41fe7ef23bafa9139c19b0807f712a8382', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: 'e849871809560f669619b23a695f20103d5872e8', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15349
15442
|
background: this.colors[5].background
|
|
15350
|
-
} }, hAsync("div", { key: '
|
|
15443
|
+
} }, hAsync("div", { key: 'ef1de66807f52f07f65dcdcebb82db99e4488e96', class: "grid" }, hAsync("span", { key: '60e08fa96458ca4e403ac7f44d57fa68c5bdcab8', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: '8c0ca774be1ff12054bfb29ea2b56c12b776f84c', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '2ad43b9dc6d62df3ed3e057262aca05558781f50', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '6f9ca87ef408575620079ca088ae00252cccd0fc', class: "grid" }, hAsync("span", { key: 'ccd038680073b25d8584f06fd1baab655cf6125c', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: '8705f39198fa91da2b26d334dc1c89cd9f511492', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
15351
15444
|
}
|
|
15352
15445
|
static get cmpMeta() { return {
|
|
15353
15446
|
"$flags$": 0,
|
|
@@ -15410,11 +15503,11 @@ class GradientSupportPalette {
|
|
|
15410
15503
|
];
|
|
15411
15504
|
}
|
|
15412
15505
|
render() {
|
|
15413
|
-
return (hAsync("ul", { key: '
|
|
15506
|
+
return (hAsync("ul", { key: 'e1b86872cead72320e3e4cf6cd22e672500cfcab', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '6a39321c305bb9c0f4c79932252faf0c08fd11e6', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '255fb9153e49030054666f086b2e0ac4d6d3dc0e', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: 'fb08851f97cefa4b06a00f7063b558607f5df19e', class: "grid" }, hAsync("span", { key: '4a8a0dc633cca7c36e6ca981e6b85775005ce80f', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '0bebfc5eb567e030e993037f527df3af46615ff2', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'aa06e607647a762ed7150a5aceaeda8c7854a050', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '5c143dd4c8afff2365aad02f68d444fd2234d90f', class: "grid" }, hAsync("span", { key: '47c9334efb42ee8259033bf1a323519d0a048bc7', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: 'bca6d9635f5bcb16ef54154b2d3a2b6734cef7e7', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: 'e78077ac00556ec5faa7d0ec7e3dc2b9ae7643f2', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '10f182a6515a0006f3903dfcf783349870c2e6c2', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: '4ef41025e6e2bb0ebe05933f7fad707c4136c852', class: "grid" }, hAsync("span", { key: 'c2b3c48904efe628b148e080e1487dc8fba70b63', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'ae12e16d9a070b29492a385ff21b6371b9826f85', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'a6e980da23e2c5d0312a9d1a12432388fbba1d56', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a38408a780756f4e81c8d791e52eb87056755eaf', class: "grid" }, hAsync("span", { key: '0180f83000b733914c33696ef4b6d7257efba396', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: 'fdaab526fcb07f4a58e4daae616da144c2f46666', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: 'c771a8d62610c7255835896fe678136838c05235', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'debe404f676d76d4ee6e0bf70fc1fb596b768a72', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15414
15507
|
background: this.colors[2].background
|
|
15415
|
-
} }, hAsync("div", { key: '
|
|
15508
|
+
} }, hAsync("div", { key: 'db1beec1c3ad71ef5fcacaa0d14618acc01666f4', class: "grid" }, hAsync("span", { key: 'cc6e9c599d26813756dc0eb0c240169ea5b2856a', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '9f45b4ec7cd579040a135f63aa3b7aadb8f10ada', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: '2ce58a56fcfd1a3b8f7855296c929c37b634bfca', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd494a074655c8bcf35d4021b700eafcd9acdfb54', class: "grid" }, hAsync("span", { key: '626ae49228b52ff921b5ce2bc15b12a540618691', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'db8c4d3f246851fd18794e317d20f1a1f9be59b9', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: 'f27de0de4bfff2bc26ef573a11b770f55f461425', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15416
15509
|
background: this.colors[3].background
|
|
15417
|
-
} }, hAsync("div", { key: '
|
|
15510
|
+
} }, hAsync("div", { key: '386d0e341c37f0baef2c62a13fcba88640b5ec3a', class: "grid" }, hAsync("span", { key: '5b5f541490612b70841e2ea62bad3b8f86587301', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '88b7fd61a6fe4f15bb37d067e8b9f28fe329de0d', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '7d96a904aa3703ffba953ede2e68aae605aa5921', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8a20e30b1c43b8f50eb8cbde0e735a54d4129e26', class: "grid" }, hAsync("span", { key: 'd843ddf7b0328f99400c106e7705aed0626d2f32', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '57ce96cc38ae1f0b91f512841e0738384e543cb1', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: '5d96a25dcd51b35b01952ebc94c75cfa1045b8da', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '713e347acd6ee623562db92a24b87a2f36086875', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: 'a62ed8e1fda6deb45b131c4d7cefe355862b33ba', class: "grid" }, hAsync("span", { key: 'bb419133f1bfcd07f05d551a4dafa54331ee1c09', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '774de6f18b6ab9d5539cc6889949b7ef9a0511db', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '87d83ce275bfbba7a8930e1e0fcecf14dee2af59', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4e4acde29f939b2e7b2d4925490da515b8bcabf1', class: "grid" }, hAsync("span", { key: 'c2276899357a54e0be5d35fcb9cbc01257882a12', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: 'c78d9648c05583b858d75ff0f6aff57a62ff1628', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
15418
15511
|
}
|
|
15419
15512
|
static get cmpMeta() { return {
|
|
15420
15513
|
"$flags$": 0,
|
|
@@ -15468,7 +15561,7 @@ class IncorrectUseOfColors {
|
|
|
15468
15561
|
registerInstance(this, hostRef);
|
|
15469
15562
|
}
|
|
15470
15563
|
render() {
|
|
15471
|
-
return (hAsync("div", { key: '
|
|
15564
|
+
return (hAsync("div", { key: 'cb22d37293f3b3b5fe3772cfe83234a5d81e1094', class: "container" }, hAsync("eds-alert", { key: '9aa7a510440c32f92242b3e09f9e818cd2509b06', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), hAsync("div", { key: '4d22cba75b7dd45a5a9a7d2b2eba5404875f1403', class: "flex" }, hAsync("div", { key: 'c7f08b3e4ef2692c545edd4185a005ddd6526a23', class: "w-full" }, hAsync("ul", { key: '28561abcdc93a4899a5d7481fdd47c439f734ff6', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'f8836d4805fdd416ee75712f749d5cee3f612559', class: "w-full" }, hAsync("ul", { key: '5842acd55d3a827355f2814c709d057676fb5d0f', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
15472
15565
|
}
|
|
15473
15566
|
static get cmpMeta() { return {
|
|
15474
15567
|
"$flags$": 0,
|
|
@@ -15491,7 +15584,7 @@ class LogoSpace {
|
|
|
15491
15584
|
registerInstance(this, hostRef);
|
|
15492
15585
|
}
|
|
15493
15586
|
render() {
|
|
15494
|
-
return (hAsync("div", { key: '
|
|
15587
|
+
return (hAsync("div", { key: 'fc5040b294d45ecbf8e3ee0ab26875c63efa3625', class: "container my-20" }, hAsync("div", { key: 'acad9c182cb46fd58f37d9195c9e20658df81767', class: "w-[300px]" }, hAsync("div", { key: '4caac9e94b715c967958fe6bd9e5d988622c8729', class: "bg-dark" }, hAsync("div", { key: 'd82b6156de96fd91e996c0ab775b9503395ba04f', class: "logo-container", innerHTML: vLogoMargins })))));
|
|
15495
15588
|
}
|
|
15496
15589
|
static get style() { return LogoSpaceStyle0; }
|
|
15497
15590
|
static get cmpMeta() { return {
|
|
@@ -15515,7 +15608,7 @@ class LogoVariationsHorizontal {
|
|
|
15515
15608
|
registerInstance(this, hostRef);
|
|
15516
15609
|
}
|
|
15517
15610
|
render() {
|
|
15518
|
-
return (hAsync("div", { key: '
|
|
15611
|
+
return (hAsync("div", { key: '17506a830e62dd31e1415d2be8b4553c3068bfd0' }, hAsync("div", { key: '4ae7fe3624155cf1b2a749bed360d8b55cd2bede', class: "container my-16" }, hAsync("h3", { key: 'e6daae3d262a53fb374162b5e3313fa98e11bf6b', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'ab405030d5cac7ec5fe95f638dfeaa0e48f70af7', class: "coloured lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '05441cfb40658a2bd01f7f9a8c28e28d340b6dc1', type: "no-bg", href: "#" }))), hAsync("div", { key: '82731279160c6c666889d32f329cf8469f853783', class: "container my-16" }, hAsync("h3", { key: '73269548408d466223d44f9293f589e7e4b99bae', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: '1d3e89b35eca34712e184ce42ba2f7632439ce4f', class: "bg-default lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'fc59306d8098f4764ab0f72fdbb5009bea5f3c44', type: "black", href: "#" }))), hAsync("div", { key: '355ce3ef5cbd6872ce86ec847c3394deb29f2846', class: "container my-16" }, hAsync("h3", { key: '57adbc464a1e2f2d5818112f00149840c2c0758a', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '84e43ad22d556672c1b0e82a9ed3e2c988649598', class: "lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '0d0d38e691d763189c88ae803f9b02523b362ff8', type: "color-white", href: "#" })))));
|
|
15519
15612
|
}
|
|
15520
15613
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15521
15614
|
static get cmpMeta() { return {
|
|
@@ -15541,7 +15634,7 @@ class LogoVariationsVertical {
|
|
|
15541
15634
|
this.type = undefined;
|
|
15542
15635
|
}
|
|
15543
15636
|
render() {
|
|
15544
|
-
return (hAsync("div", { key: '
|
|
15637
|
+
return (hAsync("div", { key: 'fee70336cee863d905a6537392f1ddf6bda1d449' }, hAsync("div", { key: 'f04e0928bbd1875982190f5fe685c43a0e712704', class: "container my-16" }, hAsync("h3", { key: 'd10318ccf82f90743af6279afea3afa36ec411dc', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: '06cca782bfc5564172c1a745652c66d5304ad9c8', class: "coloured w-[200px]" }, hAsync("eds-logo", { key: '175bbd4acc1b184e8d372b78246524b2d4ae6758', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("div", { key: 'a7eb431d1ee679bc8c28aed0932325c99d4e0798', class: "container my-16" }, hAsync("h3", { key: '0a5d4e193f9b8e36c81beb5fcc81eccaa2433ee9', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'c2d6c02f46629f32155bfb0ef1eee7522cd4b6c1', class: "bg-default w-[200px]" }, hAsync("eds-logo", { key: 'a97c323c7af4c98fab5da6721450b80e2c8d85cb', orientation: "vertical", type: "black", href: "#" }))), hAsync("div", { key: 'ac99317a56b7ce01f324efc3423593a20164f932', class: "container my-16" }, hAsync("h3", { key: '908f915f49802906b1d0d5cb008ed4cdb3b5a68a', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '94e25cd1734ec0ef18d3742f908a08ceec50aa6f', class: "w-[200px]" }, hAsync("eds-logo", { key: '7f74de4532f6696e7168f0fc9c5dc28afed91f98', orientation: "vertical", type: "color-white", href: "#" })))));
|
|
15545
15638
|
}
|
|
15546
15639
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15547
15640
|
static get cmpMeta() { return {
|
|
@@ -15568,7 +15661,7 @@ class LogoWrongUsage {
|
|
|
15568
15661
|
registerInstance(this, hostRef);
|
|
15569
15662
|
}
|
|
15570
15663
|
render() {
|
|
15571
|
-
return (hAsync("ul", { key: '
|
|
15664
|
+
return (hAsync("ul", { key: '3b7b6626be122a983b8e75560519c5cf7e31140a', class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("span", { key: 'ec2af2fbd7ca5fe85b15be216bec42a9289b40f1', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'cef460808c414cc1a14e380d7862523e9d53b214', class: "example" }, hAsync("div", { key: '759ea5b73ced15cf2caef3566f2f1fdeb2122612', class: "bg-dark " }, hAsync("div", { key: '9d0b7aef45f578f1c6e0d84f80583f8116688cf7', class: "no-other-bg-color logo", innerHTML: hLogoColor })), hAsync("p", { key: '223611a3bedea685dd1904922f472fee474ddf11', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), hAsync("span", { key: '49e6907610dfaede93ddf179dafbc93f340832ec', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'f11f675e9b002bc5d571907faeabfa7c8a2ea4f4', class: "example" }, hAsync("div", { key: 'b63ab2771e06f9d56c1ae995be5b23612b670e6e', class: "no-other-color p-16" }, hAsync("div", { key: '91d331a3fd50976496cd9eff08e5150d5fb8c368', class: "logo non-brand-color", innerHTML: hLogoColor })), hAsync("p", { key: 'b34ec2c20218499972367287e730e3ea75d94bb2', class: "f-ui-02" }, "Do not apply other colors"))), hAsync("span", { key: '20d1babcf42bd66e56633f78e5e7a38689b1c831', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '057c8a11c93076e2b9663baa49f101f90c3007be', class: "example" }, hAsync("div", { key: '767471f768d48de8a230dac229f86a751590bfb6', class: "bg-light p-16" }, hAsync("div", { key: 'd5e807d0cdea5958b0c2d93c3207924616fece63', class: "logo distorted", innerHTML: hLogoColor })), hAsync("p", { key: 'c357e9516bb82a3f431270c56a23fd614684d126', class: "f-ui-02" }, "Do not deform the logo"))), hAsync("span", { key: '789d0af543f4ccc9a270c3a332f1dcb2dc79b77f', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'a5e0d0a85a4e1656a0e7d01dc41f59711971b403', class: "example" }, hAsync("div", { key: 'a7eb16e39e2f954e42f5f8c0c2ed152fb53f7c2a', class: "bg-white p-16" }, hAsync("div", { key: '46ec9c3b424cf4661cda4adc31989a8c355376d4', class: "logo effects", innerHTML: hLogoColor })), hAsync("p", { key: '2c7e8e98a0306d08f30e857e5476703993ffda2c', class: "f-ui-02" }, "Do not apply effects"))), hAsync("span", { key: '846791ec992abd3f0632070cb09d9ef3dcfa67b7', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '82fb8f93a6cb8789bf4a56e589975ad353bc88c2', class: "example" }, hAsync("div", { key: '8c7e30c775364fa1d79b118e5aff5cd1e883101f', class: "bg-white p-16" }, hAsync("div", { key: 'a18af5ffaba038fff7a442ab626f783a8a1f08ba', class: "logo rotated", innerHTML: hLogoColor })), hAsync("p", { key: '8ad738506d45e065ad5c96df9f5bf569a632e446', class: "f-ui-02" }, "Do not rotate the logo"))), hAsync("span", { key: 'f556f0d638d48bcd95d0cc198e0408bb109cd92f', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '153d0704622a633e8937bb0a481941cca7446a8f', class: "example" }, hAsync("div", { key: 'e4d9e874f931413d924635432df55de18d329f2f', class: "bg-light p-16" }, hAsync("div", { key: '2435bddf3af2928878338793e895cc080b7e1f7a', class: "logo outlined", innerHTML: hLogoColor })), hAsync("p", { key: '64c46cd279b062ab87ce34187bd979c58f1c9312', class: "f-ui-02" }, "Do not apply outlines"))), hAsync("span", { key: 'd28391400911e4b8481a707a197915d2f9fffbf2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), hAsync("span", { key: '4aa8af822ff81bb7313145ccc24dbb79a7041f26', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '63fc69af51c57497cde82c7377dc5cc56bcd264e', class: "example" }, hAsync("div", { key: '54029b8e273baddb810ea869b341a66f0b9a9e9a', class: "bg-accent p-16" }, hAsync("div", { key: 'd82bbfa6ea877ec8af75230093548fffd086b1b4', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: 'f12f0cd6baedc08020ebd206c1c5c2fd8a6c7eda', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
|
|
15572
15665
|
}
|
|
15573
15666
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15574
15667
|
static get cmpMeta() { return {
|
|
@@ -15824,7 +15917,7 @@ class TokenList {
|
|
|
15824
15917
|
render() {
|
|
15825
15918
|
// Check if `show` prop is provided; if not, display all sections
|
|
15826
15919
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15827
|
-
return (hAsync("section", { key: '
|
|
15920
|
+
return (hAsync("section", { key: '43d7e8b3192d4a2d596ca99a4dce072ea7387924', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15828
15921
|
// Only render sections that exist in `colors`
|
|
15829
15922
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15830
15923
|
}
|
|
@@ -15857,7 +15950,7 @@ class TokenRadii {
|
|
|
15857
15950
|
registerInstance(this, hostRef);
|
|
15858
15951
|
}
|
|
15859
15952
|
render() {
|
|
15860
|
-
return (hAsync("section", { key: '
|
|
15953
|
+
return (hAsync("section", { key: '0b0ccb9adcfa77ea898828ddbb244e959f93e2e4', class: "w-full mt-28" }, hAsync("ul", { key: '7c81d0a9725565c4e2587369528568d640e7b1a3', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
15861
15954
|
}
|
|
15862
15955
|
static get cmpMeta() { return {
|
|
15863
15956
|
"$flags$": 0,
|
|
@@ -15886,7 +15979,7 @@ class TokenRatios {
|
|
|
15886
15979
|
registerInstance(this, hostRef);
|
|
15887
15980
|
}
|
|
15888
15981
|
render() {
|
|
15889
|
-
return (hAsync("section", { key: '
|
|
15982
|
+
return (hAsync("section", { key: '0fb029d34cba573e04e15030b3fdd1497ac9974e', class: "w-full" }, hAsync("eds-section-core", { key: 'd6914b95ef74d590d58b0c90600fc44f5d9d6678', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'f08511f07380707795b810fd0f34c1acdc47d37d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
15890
15983
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15891
15984
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15892
15985
|
maxWidth: '300px'
|
|
@@ -15928,7 +16021,7 @@ class TokenShadows {
|
|
|
15928
16021
|
registerInstance(this, hostRef);
|
|
15929
16022
|
}
|
|
15930
16023
|
render() {
|
|
15931
|
-
return (hAsync("section", { key: '
|
|
16024
|
+
return (hAsync("section", { key: '18d2b4cdcc3b6d6ce8864a9c36e869be9b9e5cb4', class: "w-full mt-28" }, hAsync("ul", { key: 'b258c50ab37a0445d523187c773e92f6569dd6ad', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
15932
16025
|
}
|
|
15933
16026
|
static get cmpMeta() { return {
|
|
15934
16027
|
"$flags$": 0,
|
|
@@ -15948,7 +16041,7 @@ class TokenSpacing {
|
|
|
15948
16041
|
registerInstance(this, hostRef);
|
|
15949
16042
|
}
|
|
15950
16043
|
render() {
|
|
15951
|
-
return (hAsync("div", { key: '
|
|
16044
|
+
return (hAsync("div", { key: '144e643ff3f26d09b932b3bfa2086164134728c0', class: "w-full" }, hAsync("ul", { key: '901ef03cdff10b00eb4c8bdbda083760fcde7f24', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '330a1a3bae65fde46111f2213d25e436fd2a91cf', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '1d2a762f9cf33ea03af1d63892f9ab53293ee1e7', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'adb666cc7517d3bf05d3599c75adb94833522848', class: "spacing-sample m-32 bg-darker" }, hAsync("span", { key: 'b7b11b55a5ccc619c2aa9890d1051995ba9a22f7', class: "text-white" }, "Margin: 2rem / m-32")))), hAsync("li", { key: '0cf9be1778f86479eca5db5d38964cdffeb4d336', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '5327b962b290dcaf1479cee8a0ae4c85d195be6f', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '7ada04bb258adad1d06562a6f35d44fcfe21ab5a', class: "spacing-sample ml-64 bg-darker" }, hAsync("span", { key: '5b50ff36cd166f19704cc431ea607fa95fdfe2aa', class: "text-white" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: '93c162e7bd651e4e7876e9098327b5d0d6a14001', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'baad427ed16e9f64f268cf4b5172426dee3fbf81', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '4e9cf544dd6ef7bace03d025a887e0c21b7fe3b4', class: "spacing-sample mt-32 bg-darker" }, hAsync("span", { key: '64858f80ac6535ad5d1f5e0dda7ed0b4ea61c9ba', class: "text-white" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'a5f0b462645727b11bdd874b7883cde9e3208e04', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '90fd6d72e160d5e16088c715153370b53ba07e36', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'c46fbff19edc9b0389b3a3347e96846e8e01d0ea', class: "spacing-sample p-32 bg-darker" }, hAsync("span", { key: '0acbde0ab78642e37e25103260804a096cb9e996', class: "text-white" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'cdb0d711cad94887bd001defe30f0334dd948d16', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '6874126bd20267fdd9d0031002e24a71e0a39693', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '8ab168cab95089dffdc8bff3b9bb2f9cb1fc3832', class: "spacing-sample pt-32 bg-darker" }, hAsync("span", { key: '4366fbd79ce583f9399bc739da790b01759eb5ea', class: "text-white" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: 'affbabf8b1d8c4abdd61f51ac12cac4c5e3460a7', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '6e9eae3de01dd4ff99b19fdfc62eb4a301d5071d', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '5e6788281bc9f57aab48cd768fa81fb98e1e31c3', class: "spacing-sample pl-32 bg-darker" }, hAsync("span", { key: '8fe02840d35475a60536f13abf97bd98cb53b07e', class: "text-white" }, "Padding Left: 2rem / pl-32")))))));
|
|
15952
16045
|
}
|
|
15953
16046
|
static get cmpMeta() { return {
|
|
15954
16047
|
"$flags$": 0,
|
|
@@ -16166,7 +16259,7 @@ class TokenTypography {
|
|
|
16166
16259
|
registerInstance(this, hostRef);
|
|
16167
16260
|
}
|
|
16168
16261
|
render() {
|
|
16169
|
-
return (hAsync("section", { key: '
|
|
16262
|
+
return (hAsync("section", { key: 'b831c9707b00d17768f585e2015de8a7289b11d2', class: "w-full" }, hAsync("ul", { key: '472e46f2c903597d24e8f24cf28b6f475c7d7a82', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
16170
16263
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
16171
16264
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
16172
16265
|
fontFamily: typography.families.sans,
|
|
@@ -16267,7 +16360,9 @@ registerComponents([
|
|
|
16267
16360
|
EdsSectionCore,
|
|
16268
16361
|
EdsSectionHeading,
|
|
16269
16362
|
EdsSocialNetworks,
|
|
16363
|
+
EdsSteps,
|
|
16270
16364
|
EdsSvgRepository,
|
|
16365
|
+
EdsSwitch,
|
|
16271
16366
|
EdsTab,
|
|
16272
16367
|
EdsTable,
|
|
16273
16368
|
EdsTabs,
|
|
@@ -16280,6 +16375,7 @@ registerComponents([
|
|
|
16280
16375
|
EdsTrl,
|
|
16281
16376
|
EdsUser,
|
|
16282
16377
|
EdsUserModal,
|
|
16378
|
+
EdsVerticalStepper,
|
|
16283
16379
|
GradientPrimaryPalette,
|
|
16284
16380
|
GradientSecondaryPalette,
|
|
16285
16381
|
GradientSupportPalette,
|