@ebrains/components 0.3.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 +11 -20
- package/dist/cjs/{eds-avatar_17.cjs.entry.js → eds-alert_17.cjs.entry.js} +310 -372
- package/dist/cjs/{eds-card-desc_3.cjs.entry.js → eds-avatar_4.cjs.entry.js} +73 -3
- package/dist/cjs/eds-card-generic.cjs.entry.js +4 -5
- package/dist/cjs/eds-card-project.cjs.entry.js +4 -3
- package/dist/cjs/eds-card-section.cjs.entry.js +3 -3
- 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 +49 -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 +62 -23
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-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 +18 -10
- 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 +49 -38
- package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
- package/dist/cjs/eds-pagination_2.cjs.entry.js +34 -17
- 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 +3 -2
- package/dist/cjs/eds-tooltip.cjs.entry.js +10 -1
- package/dist/cjs/eds-trl.cjs.entry.js +7 -8
- 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 +16 -12
- 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 +5 -2
- package/dist/collection/components/eds-accordion/eds-accordion.js +11 -20
- package/dist/collection/components/eds-alert/eds-alert.js +9 -8
- package/dist/collection/components/eds-alert/eds-alert.stories.js +4 -4
- package/dist/collection/components/eds-avatar/eds-avatar.js +8 -6
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +24 -22
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +23 -28
- 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 +9 -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 +15 -9
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +1 -1
- 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 +58 -3
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +11 -21
- package/dist/collection/components/eds-form/eds-form.js +71 -45
- package/dist/collection/components/eds-form/eds-form.stories.js +0 -3
- package/dist/collection/components/eds-frame/eds-frame.js +1 -1
- package/dist/collection/components/eds-frame/eds-frame.stories.js +19 -18
- 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 +14 -2
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-link/eds-link.js +8 -6
- package/dist/collection/components/eds-logo/eds-logo.js +21 -2
- package/dist/collection/components/eds-modal/eds-modal.css +16 -0
- package/dist/collection/components/eds-modal/eds-modal.js +75 -38
- package/dist/collection/components/eds-modal/eds-modal.stories.js +34 -18
- package/dist/collection/components/eds-navigator/eds-navigator.js +1 -1
- package/dist/collection/components/eds-pagination/eds-pagination.js +13 -9
- 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 +14 -14
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +1 -1
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +12 -11
- 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 +21 -8
- package/dist/collection/components/eds-tag/eds-tag.js +22 -1
- package/dist/collection/components/eds-timeline/eds-timeline.js +3 -2
- package/dist/collection/components/eds-toast/eds-toast.js +22 -1
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +10 -1
- package/dist/collection/components/eds-trl/eds-trl.js +7 -8
- 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 +14 -7
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +8 -39
- 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 +63 -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 +11 -20
- package/dist/components/eds-alert2.js +9 -8
- package/dist/components/eds-avatar2.js +3 -3
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +23 -28
- package/dist/components/eds-button2.js +16 -14
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +3 -4
- package/dist/components/eds-card-project.js +2 -2
- package/dist/components/eds-card-section.js +3 -3
- 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 +49 -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 +11 -21
- package/dist/components/eds-footer2.js +1 -1
- package/dist/components/eds-form.js +67 -26
- 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 +7 -6
- 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 +51 -39
- package/dist/components/eds-navigator.js +1 -1
- package/dist/components/eds-pagination2.js +13 -9
- package/dist/components/eds-progress-bar2.js +1 -1
- package/dist/components/eds-rating.js +25 -13
- 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 +21 -8
- 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 +3 -2
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-toast2.js +22 -1
- package/dist/components/eds-tooltip.js +10 -1
- package/dist/components/eds-trl.js +7 -8
- 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-32f282a9.entry.js → p-06299762.entry.js} +1 -1
- package/dist/components/p-0ab85eee.entry.js +1 -0
- package/dist/components/p-0bafc5ae.entry.js +1 -0
- 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-52ac3456.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-6fc62452.entry.js → p-89f600a3.entry.js} +1 -1
- package/dist/components/{p-2e8459ef.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-a2621d66.entry.js +1 -0
- 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-e6bfbf51.entry.js → p-b1af5000.entry.js} +2 -2
- 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-02e2a62f.entry.js → p-b80457ed.entry.js} +1 -1
- 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-fce25541.entry.js +1 -0
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/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 +11 -20
- package/dist/esm/{eds-avatar_17.entry.js → eds-alert_17.entry.js} +304 -366
- package/dist/esm/{eds-card-desc_3.entry.js → eds-avatar_4.entry.js} +73 -4
- package/dist/esm/eds-card-generic.entry.js +3 -4
- package/dist/esm/eds-card-project.entry.js +3 -2
- package/dist/esm/eds-card-section.entry.js +3 -3
- 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 +50 -3
- 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 +62 -23
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-right.entry.js +1 -1
- package/dist/esm/eds-icon-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 +18 -10
- 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 +49 -38
- package/dist/esm/eds-navigator.entry.js +1 -1
- package/dist/esm/eds-pagination_2.entry.js +34 -17
- 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 +3 -2
- package/dist/esm/eds-tooltip.entry.js +10 -1
- package/dist/esm/eds-trl.entry.js +7 -8
- 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 +16 -12
- 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 +992 -763
- package/dist/hydrate/index.mjs +992 -763
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +5 -12
- package/dist/types/components/eds-alert/eds-alert.d.ts +1 -1
- package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -18
- 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-cards/eds-card-composer/eds-card-desc/eds-card-desc.d.ts +8 -0
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +6 -2
- package/dist/types/components/eds-code-block/eds-code-block.d.ts +43 -3
- package/dist/types/components/eds-code-block/eds-code-block.stories.d.ts +54 -0
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +0 -7
- package/dist/types/components/eds-form/eds-form.d.ts +3 -7
- package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -5
- package/dist/types/components/eds-frame/eds-frame.stories.d.ts +0 -2
- 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 +9 -0
- package/dist/types/components/eds-link/eds-link.d.ts +1 -1
- package/dist/types/components/eds-logo/eds-logo.d.ts +1 -0
- package/dist/types/components/eds-modal/eds-modal.d.ts +20 -10
- package/dist/types/components/eds-modal/eds-modal.stories.d.ts +9 -0
- package/dist/types/components/eds-rating/eds-rating.d.ts +4 -7
- package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +0 -1
- 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-table/eds-table.d.ts +5 -5
- package/dist/types/components/eds-tag/eds-tag.d.ts +5 -0
- package/dist/types/components/eds-toast/eds-toast.d.ts +9 -0
- package/dist/types/components.d.ts +227 -164
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +28 -6
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +42 -21
- 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-3ffe3072.js +0 -342
- package/dist/cjs/eds-alert.cjs.entry.js +0 -96
- package/dist/cjs/eds-rating.cjs.entry.js +0 -58
- 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-32cddd94.entry.js +0 -1
- package/dist/components/p-3617841d.entry.js +0 -1
- package/dist/components/p-373673ca.js +0 -1
- package/dist/components/p-388b4966.entry.js +0 -1
- package/dist/components/p-3ff76976.entry.js +0 -1
- package/dist/components/p-4037ad48.entry.js +0 -1
- package/dist/components/p-42b4ecff.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-54c75346.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-5afb626c.entry.js +0 -1
- package/dist/components/p-5d7af761.entry.js +0 -1
- package/dist/components/p-5fc68438.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-7215789a.entry.js +0 -1
- package/dist/components/p-73bd0c97.entry.js +0 -1
- package/dist/components/p-7802e966.entry.js +0 -1
- package/dist/components/p-79887c2c.entry.js +0 -1
- package/dist/components/p-846fc91c.entry.js +0 -1
- package/dist/components/p-84957b6d.entry.js +0 -1
- package/dist/components/p-8c56e39a.entry.js +0 -1
- package/dist/components/p-96c4deda.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-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-bdd86a3c.entry.js +0 -1
- package/dist/components/p-be6c80da.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-c9c417de.js +0 -1
- package/dist/components/p-d1670eec.entry.js +0 -1
- package/dist/components/p-d1f6a722.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-d7a92efb.entry.js +0 -1
- package/dist/components/p-d9788b54.entry.js +0 -1
- package/dist/components/p-e20ed2c7.entry.js +0 -1
- package/dist/components/p-e74834bc.entry.js +0 -1
- package/dist/components/p-f7a6ce69.entry.js +0 -1
- package/dist/components/p-fd27e56c.entry.js +0 -1
- package/dist/esm/color-0ba8ed56.js +0 -338
- package/dist/esm/eds-alert.entry.js +0 -92
- package/dist/esm/eds-rating.entry.js +0 -54
- 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.mjs
CHANGED
|
@@ -2305,7 +2305,7 @@ class ColorPrimaryPalette {
|
|
|
2305
2305
|
];
|
|
2306
2306
|
}
|
|
2307
2307
|
render() {
|
|
2308
|
-
return (hAsync("ul", { key: '
|
|
2308
|
+
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))))))));
|
|
2309
2309
|
}
|
|
2310
2310
|
static get cmpMeta() { return {
|
|
2311
2311
|
"$flags$": 0,
|
|
@@ -2377,7 +2377,7 @@ class ColorSecondaryPalette {
|
|
|
2377
2377
|
this.show = undefined;
|
|
2378
2378
|
}
|
|
2379
2379
|
render() {
|
|
2380
|
-
return (hAsync("ul", { key: '
|
|
2380
|
+
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))))))));
|
|
2381
2381
|
}
|
|
2382
2382
|
static get cmpMeta() { return {
|
|
2383
2383
|
"$flags$": 0,
|
|
@@ -2442,7 +2442,7 @@ class ColorSupportPalette {
|
|
|
2442
2442
|
];
|
|
2443
2443
|
}
|
|
2444
2444
|
render() {
|
|
2445
|
-
return (hAsync("ul", { key: '
|
|
2445
|
+
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'))))))));
|
|
2446
2446
|
}
|
|
2447
2447
|
static get cmpMeta() { return {
|
|
2448
2448
|
"$flags$": 0,
|
|
@@ -2518,7 +2518,7 @@ class CorrectUseOfColors {
|
|
|
2518
2518
|
registerInstance(this, hostRef);
|
|
2519
2519
|
}
|
|
2520
2520
|
render() {
|
|
2521
|
-
return (hAsync("div", { key: '
|
|
2521
|
+
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 } })))))))));
|
|
2522
2522
|
}
|
|
2523
2523
|
static get cmpMeta() { return {
|
|
2524
2524
|
"$flags$": 0,
|
|
@@ -2530,6 +2530,53 @@ class CorrectUseOfColors {
|
|
|
2530
2530
|
}; }
|
|
2531
2531
|
}
|
|
2532
2532
|
|
|
2533
|
+
// Helper function to check if Matomo is initialized
|
|
2534
|
+
function isMatomoAvailable() {
|
|
2535
|
+
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
2536
|
+
}
|
|
2537
|
+
// General function to push data to Matomo
|
|
2538
|
+
function pushToMatomo(action, ...args) {
|
|
2539
|
+
//console.log('Pushing Matomo')
|
|
2540
|
+
if (isMatomoAvailable()) {
|
|
2541
|
+
window._paq.push([action, ...args]);
|
|
2542
|
+
}
|
|
2543
|
+
else {
|
|
2544
|
+
// eslint-disable-next-line
|
|
2545
|
+
console.warn('Matomo is not available or not initialized.');
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
// Function to send analytics data
|
|
2549
|
+
function sendAnalytics(eventData) {
|
|
2550
|
+
var _a;
|
|
2551
|
+
if (!isMatomoAvailable()) {
|
|
2552
|
+
// eslint-disable-next-line
|
|
2553
|
+
console.warn('Matomo is not available or not initialized.');
|
|
2554
|
+
// eslint-disable-next-line
|
|
2555
|
+
console.log(Object.assign({}, eventData));
|
|
2556
|
+
return;
|
|
2557
|
+
}
|
|
2558
|
+
// Conditionally build the name field
|
|
2559
|
+
const nameParts = [];
|
|
2560
|
+
if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
|
|
2561
|
+
nameParts.push(eventData.parentContext.componentName);
|
|
2562
|
+
}
|
|
2563
|
+
nameParts.push(eventData.tag || 'unknown-tag');
|
|
2564
|
+
nameParts.push(eventData.name || 'unknown-name');
|
|
2565
|
+
const name = nameParts.join('/');
|
|
2566
|
+
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
2567
|
+
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
2568
|
+
// eslint-disable-next-line
|
|
2569
|
+
console.log(Object.assign({}, eventData));
|
|
2570
|
+
}
|
|
2571
|
+
// Function to opt-in the user
|
|
2572
|
+
function matomoOptIn() {
|
|
2573
|
+
if (isMatomoAvailable()) {
|
|
2574
|
+
window._paq.push(['rememberConsentGiven']);
|
|
2575
|
+
// eslint-disable-next-line
|
|
2576
|
+
console.log('User has opted in to tracking');
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2533
2580
|
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}";
|
|
2534
2581
|
var EdsAccordionStyle0 = edsAccordionCss;
|
|
2535
2582
|
|
|
@@ -2561,9 +2608,17 @@ class EdsAccordion {
|
|
|
2561
2608
|
* Toggles the `isExpanded` state and emits the `accordionChange` event.
|
|
2562
2609
|
*/
|
|
2563
2610
|
this.handleClick = () => {
|
|
2611
|
+
var _a;
|
|
2564
2612
|
this.isExpanded = !this.isExpanded;
|
|
2565
2613
|
this.accordionChange.emit(this.isExpanded);
|
|
2566
2614
|
this.setPanelHeight();
|
|
2615
|
+
sendAnalytics({
|
|
2616
|
+
category: 'ui-component',
|
|
2617
|
+
parentContext: null,
|
|
2618
|
+
tag: this.el.tagName.toLowerCase(),
|
|
2619
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
2620
|
+
action: this.isExpanded ? 'expanded' : 'collapsed'
|
|
2621
|
+
});
|
|
2567
2622
|
};
|
|
2568
2623
|
/**
|
|
2569
2624
|
* Calculates and sets the panel height based on the content height
|
|
@@ -2594,26 +2649,8 @@ class EdsAccordion {
|
|
|
2594
2649
|
*/
|
|
2595
2650
|
componentDidLoad() {
|
|
2596
2651
|
this.setPanelHeight();
|
|
2597
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
2598
|
-
const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
2599
|
-
this.emitContext(btn);
|
|
2600
2652
|
window.addEventListener('resize', this.setPanelHeight);
|
|
2601
2653
|
}
|
|
2602
|
-
/**
|
|
2603
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
2604
|
-
* This event provides context information about the breadcrumb component.
|
|
2605
|
-
*
|
|
2606
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
2607
|
-
*/
|
|
2608
|
-
emitContext(linkElement) {
|
|
2609
|
-
const event = new CustomEvent('parentContext', {
|
|
2610
|
-
detail: {
|
|
2611
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
2612
|
-
identifier: null
|
|
2613
|
-
}
|
|
2614
|
-
});
|
|
2615
|
-
linkElement.dispatchEvent(event);
|
|
2616
|
-
}
|
|
2617
2654
|
/**
|
|
2618
2655
|
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
2619
2656
|
*/
|
|
@@ -2626,10 +2663,10 @@ class EdsAccordion {
|
|
|
2626
2663
|
*/
|
|
2627
2664
|
render() {
|
|
2628
2665
|
const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
|
|
2629
|
-
return (hAsync("div", { key: '
|
|
2666
|
+
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
|
|
2630
2667
|
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
2631
2668
|
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
2632
|
-
${minHeightContentClass}` }, hAsync("h3", { key: '
|
|
2669
|
+
${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' })))))));
|
|
2633
2670
|
}
|
|
2634
2671
|
get el() { return getElement(this); }
|
|
2635
2672
|
static get style() { return EdsAccordionStyle0; }
|
|
@@ -2771,11 +2808,12 @@ class EdsAlert {
|
|
|
2771
2808
|
this.withBtn = Boolean(this.pressableLabel);
|
|
2772
2809
|
}
|
|
2773
2810
|
componentDidLoad() {
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2811
|
+
var _a;
|
|
2812
|
+
// Query for the 'eds-link' element inside the shadow root.
|
|
2813
|
+
const lnk = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('eds-link');
|
|
2814
|
+
if (lnk) {
|
|
2815
|
+
this.emitContext(lnk);
|
|
2816
|
+
}
|
|
2779
2817
|
}
|
|
2780
2818
|
emitContext(linkElement) {
|
|
2781
2819
|
const event = new CustomEvent('parentContext', {
|
|
@@ -2787,12 +2825,12 @@ class EdsAlert {
|
|
|
2787
2825
|
linkElement.dispatchEvent(event);
|
|
2788
2826
|
}
|
|
2789
2827
|
render() {
|
|
2790
|
-
return (hAsync("div", { key: '
|
|
2828
|
+
return (hAsync("div", { key: '519742081f681d6d67bc1b42c89fe1b6d005fe0f', class: alertStyles({
|
|
2791
2829
|
intent: this.intent,
|
|
2792
2830
|
direction: this.direction,
|
|
2793
2831
|
withBtn: this.withBtn
|
|
2794
|
-
}), role: "alert" }, hAsync("p", { key: '
|
|
2795
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary" })) : null)));
|
|
2832
|
+
}), role: "alert" }, hAsync("p", { key: '6a5d11fdc2a975512b12c307286b0a8b06998bec', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
|
|
2833
|
+
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
2796
2834
|
}
|
|
2797
2835
|
get el() { return getElement(this); }
|
|
2798
2836
|
static get style() { return EdsAlertStyle0; }
|
|
@@ -2813,212 +2851,6 @@ class EdsAlert {
|
|
|
2813
2851
|
}; }
|
|
2814
2852
|
}
|
|
2815
2853
|
|
|
2816
|
-
[
|
|
2817
|
-
['eds-header', {
|
|
2818
|
-
'home-url': '/',
|
|
2819
|
-
'user-feature': 'false',
|
|
2820
|
-
'keycloak-url': 'http://localhost:8080',
|
|
2821
|
-
'keycloak-realm': 'nigeor-realm',
|
|
2822
|
-
'keycloak-client-id': 'stencil-app',
|
|
2823
|
-
links: JSON.stringify([
|
|
2824
|
-
{ label: 'About', url: '/about' },
|
|
2825
|
-
{ label: 'Focus Areas', url: '/focus-areas' },
|
|
2826
|
-
{ label: 'News & Events', url: '/news-and-events' },
|
|
2827
|
-
{ label: 'Contact', url: '/contact' },
|
|
2828
|
-
]),
|
|
2829
|
-
}],
|
|
2830
|
-
['eds-block-break', {}],
|
|
2831
|
-
['eds-footer', {}],
|
|
2832
|
-
['eds-block-break', {}],
|
|
2833
|
-
['eds-tabs', {
|
|
2834
|
-
tabs: JSON.stringify([
|
|
2835
|
-
{ label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
|
|
2836
|
-
{ label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
|
|
2837
|
-
{ label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
|
|
2838
|
-
]),
|
|
2839
|
-
}],
|
|
2840
|
-
['eds-block-break', {}],
|
|
2841
|
-
['eds-card-section', {
|
|
2842
|
-
cards: JSON.stringify([
|
|
2843
|
-
{ title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
|
|
2844
|
-
{ title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
|
|
2845
|
-
]),
|
|
2846
|
-
cols: '4',
|
|
2847
|
-
}],
|
|
2848
|
-
['eds-block-break', {}],
|
|
2849
|
-
['eds-link', {
|
|
2850
|
-
label: 'Main Link Click Me',
|
|
2851
|
-
url: 'https://example.com',
|
|
2852
|
-
intent: 'primary'
|
|
2853
|
-
}],
|
|
2854
|
-
['eds-block-break', {}],
|
|
2855
|
-
['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
|
|
2856
|
-
['eds-block-break', {}],
|
|
2857
|
-
['eds-breadcrumb', {
|
|
2858
|
-
items: JSON.stringify([
|
|
2859
|
-
{ label: 'Home', url: '/' },
|
|
2860
|
-
{ label: 'Products', url: '/products' },
|
|
2861
|
-
{ label: 'Electronics', url: '/products/electronics' },
|
|
2862
|
-
{ label: 'Laptops', url: '/products/electronics/laptops' },
|
|
2863
|
-
]),
|
|
2864
|
-
intent: 'primary',
|
|
2865
|
-
}],
|
|
2866
|
-
['eds-block-break', {}],
|
|
2867
|
-
['eds-card-generic', {
|
|
2868
|
-
'card-title': 'The Future of AI in Healthcare',
|
|
2869
|
-
url: 'https://example.com/ai-healthcare',
|
|
2870
|
-
description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
|
|
2871
|
-
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',
|
|
2872
|
-
'short-abbreviation': 'AI',
|
|
2873
|
-
'heading-level': 'h2',
|
|
2874
|
-
tags: 'Technology,AI,Healthcare',
|
|
2875
|
-
tiny: 'false',
|
|
2876
|
-
bg: 'true',
|
|
2877
|
-
'with-hover': 'true',
|
|
2878
|
-
}],
|
|
2879
|
-
['eds-block-break', {}],
|
|
2880
|
-
['eds-code-block', {
|
|
2881
|
-
code: 'Hello',
|
|
2882
|
-
language: 'javascript',
|
|
2883
|
-
}],
|
|
2884
|
-
['eds-block-break', {}],
|
|
2885
|
-
['eds-dropdown', {
|
|
2886
|
-
'aria-label': 'More options',
|
|
2887
|
-
'rounded-btn': 'true',
|
|
2888
|
-
'dropdown-pos': 'right',
|
|
2889
|
-
'dropdown-offset': 'true',
|
|
2890
|
-
}],
|
|
2891
|
-
['eds-block-break', {}],
|
|
2892
|
-
['eds-form', {
|
|
2893
|
-
name: 'extended-form',
|
|
2894
|
-
endpoint: 'http://127.0.0.1:5000/api/data',
|
|
2895
|
-
fields: JSON.stringify([
|
|
2896
|
-
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
|
|
2897
|
-
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
2898
|
-
{ name: 'number', label: 'Number', type: 'number', required: true },
|
|
2899
|
-
{ name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
|
|
2900
|
-
{ name: 'date', label: 'Date', type: 'date', required: true },
|
|
2901
|
-
{ name: 'file', label: 'File', type: 'file', required: false },
|
|
2902
|
-
{ name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
|
|
2903
|
-
{ name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
|
|
2904
|
-
{ name: 'role', label: 'Role', type: 'select', required: true, options: [
|
|
2905
|
-
{ label: 'Admin', value: 'admin' },
|
|
2906
|
-
{ label: 'Editor', value: 'editor' },
|
|
2907
|
-
{ label: 'Viewer', value: 'viewer' },
|
|
2908
|
-
] },
|
|
2909
|
-
{ name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
|
|
2910
|
-
{ value: 'option1', label: 'Option 1' },
|
|
2911
|
-
{ value: 'option2', label: 'Option 2' },
|
|
2912
|
-
{ value: 'option3', label: 'Option 3' },
|
|
2913
|
-
], required: true },
|
|
2914
|
-
{ name: 'gender', type: 'radio', label: 'Select your gender', options: [
|
|
2915
|
-
{ value: 'female', label: 'Female' },
|
|
2916
|
-
{ value: 'male', label: 'Male' },
|
|
2917
|
-
], required: true },
|
|
2918
|
-
{ name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
|
|
2919
|
-
{ name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
|
|
2920
|
-
]),
|
|
2921
|
-
'success-message': 'Form submitted successfully!',
|
|
2922
|
-
'error-message': 'Please fix the errors in the form.',
|
|
2923
|
-
'submit-btn': 'true',
|
|
2924
|
-
'small-alert': 'false',
|
|
2925
|
-
'set-form-url': 'true',
|
|
2926
|
-
}],
|
|
2927
|
-
['eds-block-break', {}],
|
|
2928
|
-
['eds-img', {
|
|
2929
|
-
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
2930
|
-
alt: 'EBRAINS Bernstein Conference',
|
|
2931
|
-
width: '400',
|
|
2932
|
-
height: '225',
|
|
2933
|
-
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',
|
|
2934
|
-
sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
|
|
2935
|
-
formats: JSON.stringify([
|
|
2936
|
-
{ 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' },
|
|
2937
|
-
{ 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' },
|
|
2938
|
-
]),
|
|
2939
|
-
lazyload: 'true',
|
|
2940
|
-
'with-bg': 'true',
|
|
2941
|
-
}],
|
|
2942
|
-
['eds-block-break', {}],
|
|
2943
|
-
['eds-input-field', {
|
|
2944
|
-
name: 'username',
|
|
2945
|
-
'input-id': 'username',
|
|
2946
|
-
label: 'Username',
|
|
2947
|
-
placeholder: 'Enter your username',
|
|
2948
|
-
required: 'true',
|
|
2949
|
-
hint: 'Your unique username',
|
|
2950
|
-
message: 'This field is required',
|
|
2951
|
-
'error-message': 'Invalid username',
|
|
2952
|
-
type: 'text',
|
|
2953
|
-
}],
|
|
2954
|
-
['eds-block-break', {}],
|
|
2955
|
-
['eds-pagination', {
|
|
2956
|
-
'current-page': '1',
|
|
2957
|
-
'last-page': '10',
|
|
2958
|
-
'per-page': '5',
|
|
2959
|
-
total: '50',
|
|
2960
|
-
mode: 'default',
|
|
2961
|
-
}],
|
|
2962
|
-
['eds-block-break', {}],
|
|
2963
|
-
['eds-progress-bar', { value: '75' }],
|
|
2964
|
-
['eds-table', {
|
|
2965
|
-
data: JSON.stringify([
|
|
2966
|
-
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
2967
|
-
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
2968
|
-
{ Property: 'email', Type: 'string', Required: 'No' },
|
|
2969
|
-
]),
|
|
2970
|
-
config: JSON.stringify({
|
|
2971
|
-
Type: { format: 'uppercase' },
|
|
2972
|
-
Property: { format: 'code' },
|
|
2973
|
-
Required: { hidden: true },
|
|
2974
|
-
}),
|
|
2975
|
-
}],
|
|
2976
|
-
['eds-block-break', {}],
|
|
2977
|
-
['eds-tag', { label: 'Default Tag', intent: 'default' }],
|
|
2978
|
-
];
|
|
2979
|
-
|
|
2980
|
-
// Helper function to check if Matomo is initialized
|
|
2981
|
-
function isMatomoAvailable() {
|
|
2982
|
-
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
2983
|
-
}
|
|
2984
|
-
// General function to push data to Matomo
|
|
2985
|
-
function pushToMatomo(action, ...args) {
|
|
2986
|
-
console.log('Pushing Matomo');
|
|
2987
|
-
if (isMatomoAvailable()) {
|
|
2988
|
-
window._paq.push([action, ...args]);
|
|
2989
|
-
}
|
|
2990
|
-
else {
|
|
2991
|
-
console.warn('Matomo is not available or not initialized.');
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
// Function to send analytics data
|
|
2995
|
-
function sendAnalytics(eventData) {
|
|
2996
|
-
var _a;
|
|
2997
|
-
if (!isMatomoAvailable()) {
|
|
2998
|
-
console.warn('Matomo is not available or not initialized.');
|
|
2999
|
-
console.log(Object.assign({}, eventData));
|
|
3000
|
-
return;
|
|
3001
|
-
}
|
|
3002
|
-
// Conditionally build the name field
|
|
3003
|
-
const nameParts = [];
|
|
3004
|
-
if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
|
|
3005
|
-
nameParts.push(eventData.parentContext.componentName);
|
|
3006
|
-
}
|
|
3007
|
-
nameParts.push(eventData.tag || 'unknown-tag');
|
|
3008
|
-
nameParts.push(eventData.name || 'unknown-name');
|
|
3009
|
-
const name = nameParts.join('/');
|
|
3010
|
-
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
3011
|
-
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
3012
|
-
console.log(Object.assign({}, eventData));
|
|
3013
|
-
}
|
|
3014
|
-
// Function to opt-in the user
|
|
3015
|
-
function matomoOptIn() {
|
|
3016
|
-
if (isMatomoAvailable()) {
|
|
3017
|
-
window._paq.push(['rememberConsentGiven']);
|
|
3018
|
-
console.log('User has opted in to tracking');
|
|
3019
|
-
}
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
2854
|
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
3023
2855
|
const gradientBGColorVariants = cva([], {
|
|
3024
2856
|
variants: {
|
|
@@ -3166,8 +2998,8 @@ var EdsAvatarStyle0 = edsAvatarCss;
|
|
|
3166
2998
|
class EdsAvatar {
|
|
3167
2999
|
constructor(hostRef) {
|
|
3168
3000
|
registerInstance(this, hostRef);
|
|
3169
|
-
this.firstName =
|
|
3170
|
-
this.lastName =
|
|
3001
|
+
this.firstName = 'User';
|
|
3002
|
+
this.lastName = 'Avatar';
|
|
3171
3003
|
this.picture = undefined;
|
|
3172
3004
|
this.initials = undefined;
|
|
3173
3005
|
this.color = undefined;
|
|
@@ -3220,7 +3052,7 @@ class EdsAvatar {
|
|
|
3220
3052
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3221
3053
|
*/
|
|
3222
3054
|
render() {
|
|
3223
|
-
return (hAsync("div", { key: '
|
|
3055
|
+
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))));
|
|
3224
3056
|
}
|
|
3225
3057
|
static get style() { return EdsAvatarStyle0; }
|
|
3226
3058
|
static get cmpMeta() { return {
|
|
@@ -3258,7 +3090,7 @@ class EdsBlockBreak {
|
|
|
3258
3090
|
this.extraClass = '';
|
|
3259
3091
|
}
|
|
3260
3092
|
render() {
|
|
3261
|
-
return hAsync("hr", { key: '
|
|
3093
|
+
return hAsync("hr", { key: '8cb39dda5d7f909b459390fe7e3f86dfd147ba98', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
|
|
3262
3094
|
}
|
|
3263
3095
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3264
3096
|
static get cmpMeta() { return {
|
|
@@ -3325,7 +3157,7 @@ class EdsBreadcrumb {
|
|
|
3325
3157
|
this.parsedItems = Array.isArray(parsed) ? parsed : [];
|
|
3326
3158
|
}
|
|
3327
3159
|
catch (e) {
|
|
3328
|
-
console.error('Error parsing breadcrumb items:', e);
|
|
3160
|
+
//console.error('Error parsing breadcrumb items:', e);
|
|
3329
3161
|
this.parsedItems = [];
|
|
3330
3162
|
}
|
|
3331
3163
|
}
|
|
@@ -3353,9 +3185,9 @@ class EdsBreadcrumb {
|
|
|
3353
3185
|
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
3354
3186
|
*/
|
|
3355
3187
|
componentDidLoad() {
|
|
3356
|
-
|
|
3357
|
-
const links = this.el.shadowRoot.querySelectorAll('eds-link');
|
|
3358
|
-
links.forEach((link) => {
|
|
3188
|
+
var _a;
|
|
3189
|
+
const links = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('eds-link');
|
|
3190
|
+
links === null || links === void 0 ? void 0 : links.forEach((link) => {
|
|
3359
3191
|
this.emitContext(link);
|
|
3360
3192
|
});
|
|
3361
3193
|
}
|
|
@@ -3375,54 +3207,49 @@ class EdsBreadcrumb {
|
|
|
3375
3207
|
linkElement.dispatchEvent(event);
|
|
3376
3208
|
}
|
|
3377
3209
|
/**
|
|
3378
|
-
*
|
|
3379
|
-
*
|
|
3210
|
+
* Returns breadcrumb items with potential truncation if there are too many.
|
|
3211
|
+
* It inserts an ellipsis item where necessary.
|
|
3380
3212
|
*/
|
|
3381
3213
|
getTruncatedItems() {
|
|
3382
3214
|
const totalItems = this.parsedItems.length;
|
|
3215
|
+
const ellipsis = { label: '...', url: '', isHidden: true };
|
|
3383
3216
|
if (totalItems > this.maxVisibleItems) {
|
|
3384
3217
|
const firstItem = this.parsedItems[0];
|
|
3385
3218
|
const lastItems = this.parsedItems.slice(-2);
|
|
3386
|
-
const ellipsis = { label: '...', url: '', isHidden: true };
|
|
3387
3219
|
if (this.maxVisibleItems === 3) {
|
|
3388
|
-
return [
|
|
3389
|
-
this.truncateLabel(firstItem),
|
|
3390
|
-
ellipsis,
|
|
3391
|
-
...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
|
|
3392
|
-
];
|
|
3220
|
+
return [firstItem, ellipsis, ...lastItems];
|
|
3393
3221
|
}
|
|
3394
3222
|
else if (this.maxVisibleItems === 4) {
|
|
3395
3223
|
const middleItem = this.parsedItems[Math.floor(totalItems / 2)];
|
|
3396
|
-
return [
|
|
3397
|
-
this.truncateLabel(firstItem),
|
|
3398
|
-
this.truncateLabel(middleItem),
|
|
3399
|
-
ellipsis,
|
|
3400
|
-
...lastItems.map((item, index) => (index === lastItems.length - 1 ? item : this.truncateLabel(item)))
|
|
3401
|
-
];
|
|
3224
|
+
return [firstItem, middleItem, ellipsis, ...lastItems];
|
|
3402
3225
|
}
|
|
3403
3226
|
}
|
|
3404
|
-
return this.parsedItems
|
|
3227
|
+
return this.parsedItems;
|
|
3405
3228
|
}
|
|
3406
3229
|
/**
|
|
3407
|
-
*
|
|
3408
|
-
*
|
|
3230
|
+
* Helper to determine the display label and full label.
|
|
3231
|
+
* If the label is longer than 15 characters and the item is not the current (last) item,
|
|
3232
|
+
* we display a truncated version but use the full label for aria attributes.
|
|
3409
3233
|
*/
|
|
3410
|
-
|
|
3411
|
-
if (item.label.length > 15) {
|
|
3412
|
-
return
|
|
3234
|
+
getLabels(item, isCurrent) {
|
|
3235
|
+
if (!isCurrent && item.label.length > 15) {
|
|
3236
|
+
return { displayLabel: `${item.label.slice(0, 15)}...`, fullLabel: item.label };
|
|
3413
3237
|
}
|
|
3414
|
-
return item;
|
|
3238
|
+
return { displayLabel: item.label, fullLabel: item.label };
|
|
3415
3239
|
}
|
|
3416
3240
|
/**
|
|
3417
3241
|
* Render method for the breadcrumb component.
|
|
3418
3242
|
* It creates a navigation element with an ordered list of breadcrumb links.
|
|
3419
|
-
* The last link is
|
|
3243
|
+
* The last link is marked as the current page.
|
|
3420
3244
|
*/
|
|
3421
3245
|
render() {
|
|
3422
3246
|
const itemsToRender = this.getTruncatedItems();
|
|
3423
|
-
return (hAsync("nav", { key: '
|
|
3247
|
+
return (hAsync("nav", { key: 'd177957e1b3218c21991bbdc9636a8e32befe990', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'd10336ddee99b9fb84d17e53093c57c6a025982f', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3424
3248
|
const isLast = index === itemsToRender.length - 1;
|
|
3425
|
-
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? (
|
|
3249
|
+
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? ((() => {
|
|
3250
|
+
const { displayLabel, fullLabel } = this.getLabels(item, isLast);
|
|
3251
|
+
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' } : {}))));
|
|
3252
|
+
})()) : (hAsync("span", { class: "truncate px-2", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
|
|
3426
3253
|
}))));
|
|
3427
3254
|
}
|
|
3428
3255
|
get el() { return getElement(this); }
|
|
@@ -3615,9 +3442,8 @@ class EdsButton {
|
|
|
3615
3442
|
iconOnly: false
|
|
3616
3443
|
}
|
|
3617
3444
|
});
|
|
3618
|
-
this.parentContext = null; // Accepts the entire event detail or null
|
|
3619
3445
|
this.label = undefined;
|
|
3620
|
-
this.ariaLabel =
|
|
3446
|
+
this.ariaLabel = 'Button';
|
|
3621
3447
|
this.elementType = 'button';
|
|
3622
3448
|
this.intent = 'secondary';
|
|
3623
3449
|
this.loading = false;
|
|
@@ -3630,15 +3456,19 @@ class EdsButton {
|
|
|
3630
3456
|
this.extraClass = undefined;
|
|
3631
3457
|
this.triggerClick = undefined;
|
|
3632
3458
|
}
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
//
|
|
3639
|
-
|
|
3640
|
-
|
|
3459
|
+
/*private parentContext: ParentContextDetail | null = null; // Accepts the entire event detail or null
|
|
3460
|
+
|
|
3461
|
+
@Listen('parentContext')
|
|
3462
|
+
handleParentContext(event: CustomEvent) {
|
|
3463
|
+
if (event.target !== this.el) {
|
|
3464
|
+
// Ignore the event if it's not targeted at this specific instance
|
|
3465
|
+
return;
|
|
3466
|
+
}
|
|
3467
|
+
//console.log(event.detail);
|
|
3468
|
+
this.parentContext = event.detail;
|
|
3469
|
+
event.stopPropagation();
|
|
3641
3470
|
}
|
|
3471
|
+
*/
|
|
3642
3472
|
handleClick(event) {
|
|
3643
3473
|
var _a, _b;
|
|
3644
3474
|
if (this.disabled) {
|
|
@@ -3648,7 +3478,7 @@ class EdsButton {
|
|
|
3648
3478
|
}
|
|
3649
3479
|
sendAnalytics({
|
|
3650
3480
|
category: 'ui-component',
|
|
3651
|
-
parentContext:
|
|
3481
|
+
parentContext: null,
|
|
3652
3482
|
tag: this.el.tagName.toLowerCase(),
|
|
3653
3483
|
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ((_b = this.ariaLabel) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || '',
|
|
3654
3484
|
action: 'click'
|
|
@@ -3675,7 +3505,7 @@ class EdsButton {
|
|
|
3675
3505
|
show: !this.loading
|
|
3676
3506
|
});
|
|
3677
3507
|
const ElementType = this.elementType;
|
|
3678
|
-
return (hAsync(ElementType, { key: '
|
|
3508
|
+
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: {
|
|
3679
3509
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3680
3510
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3681
3511
|
} }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -3700,7 +3530,7 @@ class EdsButton {
|
|
|
3700
3530
|
"extraClass": [1, "extra-class"],
|
|
3701
3531
|
"triggerClick": [16]
|
|
3702
3532
|
},
|
|
3703
|
-
"$listeners$":
|
|
3533
|
+
"$listeners$": undefined,
|
|
3704
3534
|
"$lazyBundleId$": "-",
|
|
3705
3535
|
"$attrsToReflect$": []
|
|
3706
3536
|
}; }
|
|
@@ -3709,6 +3539,14 @@ class EdsButton {
|
|
|
3709
3539
|
const edsCardDescCss = ".f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.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)}.text-light{color:var(--grey-700)}.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}";
|
|
3710
3540
|
var EdsCardDescStyle0 = edsCardDescCss;
|
|
3711
3541
|
|
|
3542
|
+
/**
|
|
3543
|
+
* `eds-card-desc` is a simple component that renders a card description.
|
|
3544
|
+
*
|
|
3545
|
+
* It displays a block of text with optional truncation applied using a CSS line clamp.
|
|
3546
|
+
* You can customize the description styling via the `descClass` property and control
|
|
3547
|
+
* whether or not the text is truncated and to how many lines.
|
|
3548
|
+
*
|
|
3549
|
+
*/
|
|
3712
3550
|
class EdsCardDesc {
|
|
3713
3551
|
constructor(hostRef) {
|
|
3714
3552
|
registerInstance(this, hostRef);
|
|
@@ -3721,7 +3559,7 @@ class EdsCardDesc {
|
|
|
3721
3559
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3722
3560
|
}
|
|
3723
3561
|
render() {
|
|
3724
|
-
return (hAsync("p", { key: '
|
|
3562
|
+
return (hAsync("p", { key: '71495cbd6ef4e7d66c4c22a37f8120624ecf57fb', class: `text-light ${this.descClass}` }, hAsync("span", { key: '8708178f7b48cc1f31aac749f50fe92b72c39ab8', class: this.getTruncateClass() }, this.description)));
|
|
3725
3563
|
}
|
|
3726
3564
|
static get style() { return EdsCardDescStyle0; }
|
|
3727
3565
|
static get cmpMeta() { return {
|
|
@@ -3765,7 +3603,7 @@ class EdsCardGeneric {
|
|
|
3765
3603
|
this.avatar = undefined;
|
|
3766
3604
|
this.shortAbbreviation = undefined;
|
|
3767
3605
|
this.headingLevel = 'h3';
|
|
3768
|
-
this.tags =
|
|
3606
|
+
this.tags = [];
|
|
3769
3607
|
this.tiny = false;
|
|
3770
3608
|
this.bg = true;
|
|
3771
3609
|
this.withHover = true;
|
|
@@ -3841,7 +3679,7 @@ class EdsCardGeneric {
|
|
|
3841
3679
|
});
|
|
3842
3680
|
}
|
|
3843
3681
|
render() {
|
|
3844
|
-
return (hAsync("article", { key: '
|
|
3682
|
+
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 })))), ' '));
|
|
3845
3683
|
}
|
|
3846
3684
|
get el() { return getElement(this); }
|
|
3847
3685
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -3856,7 +3694,7 @@ class EdsCardGeneric {
|
|
|
3856
3694
|
"avatar": [1],
|
|
3857
3695
|
"shortAbbreviation": [1, "short-abbreviation"],
|
|
3858
3696
|
"headingLevel": [1, "heading-level"],
|
|
3859
|
-
"tags": [
|
|
3697
|
+
"tags": [1],
|
|
3860
3698
|
"tiny": [4],
|
|
3861
3699
|
"bg": [4],
|
|
3862
3700
|
"withHover": [4, "with-hover"],
|
|
@@ -3925,7 +3763,7 @@ class EdsCardProject {
|
|
|
3925
3763
|
this.vertical ? 'flex-col gap-y-16' : 'flex-col gap-x-16 gap-y-12 lg:flex-row'
|
|
3926
3764
|
].join(' ');
|
|
3927
3765
|
const imageClasses = this.vertical ? '' : 'max-w-120 @md:max-w-192 order-first w-full lg:order-last';
|
|
3928
|
-
return (hAsync("article", { key: '
|
|
3766
|
+
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)))))));
|
|
3929
3767
|
}
|
|
3930
3768
|
get el() { return getElement(this); }
|
|
3931
3769
|
static get cmpMeta() { return {
|
|
@@ -3965,7 +3803,7 @@ var EdsCardSectionStyle0 = edsCardSectionCss;
|
|
|
3965
3803
|
class EdsCardSection {
|
|
3966
3804
|
constructor(hostRef) {
|
|
3967
3805
|
registerInstance(this, hostRef);
|
|
3968
|
-
this.cards =
|
|
3806
|
+
this.cards = [];
|
|
3969
3807
|
this.cols = 4;
|
|
3970
3808
|
}
|
|
3971
3809
|
/**
|
|
@@ -3988,7 +3826,7 @@ class EdsCardSection {
|
|
|
3988
3826
|
}
|
|
3989
3827
|
catch (e) {
|
|
3990
3828
|
// eslint-disable-next-line
|
|
3991
|
-
console.error('Error parsing
|
|
3829
|
+
console.error('Error parsing cards prop:', e);
|
|
3992
3830
|
return [];
|
|
3993
3831
|
}
|
|
3994
3832
|
}
|
|
@@ -4002,7 +3840,7 @@ class EdsCardSection {
|
|
|
4002
3840
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
4003
3841
|
*/
|
|
4004
3842
|
render() {
|
|
4005
|
-
return (hAsync("section", { key: '
|
|
3843
|
+
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 })))))));
|
|
4006
3844
|
}
|
|
4007
3845
|
static get style() { return EdsCardSectionStyle0; }
|
|
4008
3846
|
static get cmpMeta() { return {
|
|
@@ -4031,7 +3869,7 @@ class EdsCardTags {
|
|
|
4031
3869
|
this.tags = [];
|
|
4032
3870
|
}
|
|
4033
3871
|
render() {
|
|
4034
|
-
return (hAsync("div", { key: '
|
|
3872
|
+
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 })))));
|
|
4035
3873
|
}
|
|
4036
3874
|
static get style() { return EdsCardTagsStyle0; }
|
|
4037
3875
|
static get cmpMeta() { return {
|
|
@@ -4095,7 +3933,7 @@ class EdsCardTitle {
|
|
|
4095
3933
|
render() {
|
|
4096
3934
|
//const Tag = this.getTag();
|
|
4097
3935
|
const Heading = this.headingLevel;
|
|
4098
|
-
return (hAsync(Heading, { key: '
|
|
3936
|
+
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)));
|
|
4099
3937
|
}
|
|
4100
3938
|
static get style() { return EdsCardTitleStyle0; }
|
|
4101
3939
|
static get cmpMeta() { return {
|
|
@@ -4183,7 +4021,7 @@ class EdsCardTool {
|
|
|
4183
4021
|
});
|
|
4184
4022
|
}
|
|
4185
4023
|
render() {
|
|
4186
|
-
return (hAsync("article", { key: '
|
|
4024
|
+
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 }))))));
|
|
4187
4025
|
}
|
|
4188
4026
|
get el() { return getElement(this); }
|
|
4189
4027
|
static get style() { return EdsCardToolStyle0; }
|
|
@@ -4234,7 +4072,7 @@ class EdsCardWrapper {
|
|
|
4234
4072
|
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
4235
4073
|
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
4236
4074
|
].join(' ');
|
|
4237
|
-
return (hAsync("article", { key: '
|
|
4075
|
+
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" })))));
|
|
4238
4076
|
}
|
|
4239
4077
|
get el() { return getElement(this); }
|
|
4240
4078
|
static get cmpMeta() { return {
|
|
@@ -6659,6 +6497,14 @@ Prism.languages.py = Prism.languages.python;
|
|
|
6659
6497
|
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}";
|
|
6660
6498
|
var EdsCodeBlockStyle0 = edsCodeBlockCss;
|
|
6661
6499
|
|
|
6500
|
+
//import { sendAnalytics } from '../../utils/analytics';
|
|
6501
|
+
/**
|
|
6502
|
+
* A component that displays a code block with syntax highlighting.
|
|
6503
|
+
*
|
|
6504
|
+
* Uses Prism.js for syntax highlighting. Supports multiple languages such as JavaScript, HTML, CSS,
|
|
6505
|
+
* Python, Bash/Shell, and YAML.
|
|
6506
|
+
*
|
|
6507
|
+
* */
|
|
6662
6508
|
class EdsCodeBlock {
|
|
6663
6509
|
constructor(hostRef) {
|
|
6664
6510
|
registerInstance(this, hostRef);
|
|
@@ -6666,23 +6512,70 @@ class EdsCodeBlock {
|
|
|
6666
6512
|
this.language = undefined;
|
|
6667
6513
|
this.copied = false;
|
|
6668
6514
|
}
|
|
6515
|
+
/**
|
|
6516
|
+
* Copies the current code content to the clipboard and sets a temporary copied state.
|
|
6517
|
+
*
|
|
6518
|
+
* @private
|
|
6519
|
+
* @returns {void}
|
|
6520
|
+
*/
|
|
6669
6521
|
copyToClipboard() {
|
|
6670
6522
|
navigator.clipboard.writeText(this.code).then(() => {
|
|
6671
6523
|
this.copied = true;
|
|
6524
|
+
/*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
|
|
6525
|
+
sendAnalytics({
|
|
6526
|
+
category: 'ui-component',
|
|
6527
|
+
parentContext: null,
|
|
6528
|
+
tag: this.el.tagName.toLowerCase(),
|
|
6529
|
+
name: analyticsName || '',
|
|
6530
|
+
action: 'copy'
|
|
6531
|
+
});*/
|
|
6672
6532
|
setTimeout(() => (this.copied = false), 2000);
|
|
6673
6533
|
});
|
|
6674
6534
|
}
|
|
6535
|
+
/**
|
|
6536
|
+
* Utility function that creates a human-friendly analytics name based on the code and language.
|
|
6537
|
+
* It uses:
|
|
6538
|
+
* - The language (in uppercase)
|
|
6539
|
+
* - The number of non-empty lines in the code
|
|
6540
|
+
* - The first non-empty line of code (truncated to 30 characters, if needed)
|
|
6541
|
+
*
|
|
6542
|
+
* returns A descriptive analytics name.
|
|
6543
|
+
*/
|
|
6544
|
+
/*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
|
|
6545
|
+
// Count non-empty lines
|
|
6546
|
+
const lines = code.split('\n').filter(line => line.trim() !== '').length;
|
|
6547
|
+
|
|
6548
|
+
// Find the first non-empty line and trim it
|
|
6549
|
+
let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
|
|
6550
|
+
firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
|
|
6551
|
+
|
|
6552
|
+
// Truncate the snippet if it’s too long
|
|
6553
|
+
if (firstNonEmptyLine.length > 30) {
|
|
6554
|
+
firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
|
|
6555
|
+
}
|
|
6556
|
+
|
|
6557
|
+
return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
|
|
6558
|
+
}*/
|
|
6559
|
+
/**
|
|
6560
|
+
* Returns the syntax-highlighted HTML for the code.
|
|
6561
|
+
* If the provided language is supported by Prism, this method returns the highlighted code.
|
|
6562
|
+
* Otherwise, it logs a warning and returns the raw code.
|
|
6563
|
+
*
|
|
6564
|
+
* @private
|
|
6565
|
+
* @returns {string} The highlighted HTML string for the code block.
|
|
6566
|
+
*/
|
|
6675
6567
|
getHighlightedCode() {
|
|
6676
6568
|
if (this.language && Prism$1.languages[this.language]) {
|
|
6677
6569
|
return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
|
|
6678
6570
|
}
|
|
6679
6571
|
// eslint-disable-next-line
|
|
6680
|
-
console.warn(`Unsupported or missing language: ${this.language}`);
|
|
6572
|
+
//console.warn(`Unsupported or missing language: ${this.language}`);
|
|
6681
6573
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6682
6574
|
}
|
|
6683
6575
|
render() {
|
|
6684
|
-
return (hAsync("div", { key: '
|
|
6576
|
+
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() })))));
|
|
6685
6577
|
}
|
|
6578
|
+
get el() { return getElement(this); }
|
|
6686
6579
|
static get style() { return EdsCodeBlockStyle0; }
|
|
6687
6580
|
static get cmpMeta() { return {
|
|
6688
6581
|
"$flags$": 9,
|
|
@@ -6730,7 +6623,11 @@ const EdsDocsInstallation = () => (hAsync("div", null,
|
|
|
6730
6623
|
hAsync("div", { class: "my-8" },
|
|
6731
6624
|
hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
6732
6625
|
hAsync("div", { class: "my-8" },
|
|
6733
|
-
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))
|
|
6626
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })),
|
|
6627
|
+
hAsync("div", { class: "my-8" },
|
|
6628
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })),
|
|
6629
|
+
hAsync("div", { class: "my-8" },
|
|
6630
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" }))));
|
|
6734
6631
|
|
|
6735
6632
|
const EdsDocsReact = () => (hAsync("div", null,
|
|
6736
6633
|
hAsync("h2", null, "React Wrappers"),
|
|
@@ -6738,7 +6635,7 @@ const EdsDocsReact = () => (hAsync("div", null,
|
|
|
6738
6635
|
hAsync("div", { class: "my-8" },
|
|
6739
6636
|
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
6740
6637
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
6741
|
-
hAsync("eds-code-block", { code: '\nimport {
|
|
6638
|
+
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" }))));
|
|
6742
6639
|
|
|
6743
6640
|
const EdsDocsVue = () => (hAsync("div", null,
|
|
6744
6641
|
hAsync("h2", null, "Vue Wrappers"),
|
|
@@ -6806,7 +6703,7 @@ class EdsComponentsSection {
|
|
|
6806
6703
|
}
|
|
6807
6704
|
}
|
|
6808
6705
|
render() {
|
|
6809
|
-
return hAsync("div", { key: '
|
|
6706
|
+
return hAsync("div", { key: '7e582a0eeafc2687229454532b5a7f66f91c1856', class: "container" }, this.renderContent());
|
|
6810
6707
|
}
|
|
6811
6708
|
static get cmpMeta() { return {
|
|
6812
6709
|
"$flags$": 0,
|
|
@@ -6847,7 +6744,7 @@ class EdsDocsContent {
|
|
|
6847
6744
|
}
|
|
6848
6745
|
}
|
|
6849
6746
|
render() {
|
|
6850
|
-
return hAsync("div", { key: '
|
|
6747
|
+
return hAsync("div", { key: 'b140f7650e5e01711dc0778b04af83f9d004efc7', class: "container" }, this.renderContent());
|
|
6851
6748
|
}
|
|
6852
6749
|
static get cmpMeta() { return {
|
|
6853
6750
|
"$flags$": 0,
|
|
@@ -6880,7 +6777,7 @@ class EdsDocsPalettes {
|
|
|
6880
6777
|
}
|
|
6881
6778
|
}
|
|
6882
6779
|
render() {
|
|
6883
|
-
return hAsync("div", { key: '
|
|
6780
|
+
return hAsync("div", { key: 'e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a', class: "container" }, this.renderContent());
|
|
6884
6781
|
}
|
|
6885
6782
|
static get cmpMeta() { return {
|
|
6886
6783
|
"$flags$": 0,
|
|
@@ -6918,6 +6815,7 @@ class EdsDropdown {
|
|
|
6918
6815
|
* Toggles the visibility of the dropdown and manages focus.
|
|
6919
6816
|
*/
|
|
6920
6817
|
this.handleClick = () => {
|
|
6818
|
+
var _a;
|
|
6921
6819
|
this.isOpen = !this.isOpen;
|
|
6922
6820
|
if (this.isOpen) {
|
|
6923
6821
|
this.focusIndex = 0;
|
|
@@ -6926,6 +6824,13 @@ class EdsDropdown {
|
|
|
6926
6824
|
else {
|
|
6927
6825
|
this.closeDropdown();
|
|
6928
6826
|
}
|
|
6827
|
+
sendAnalytics({
|
|
6828
|
+
category: 'ui-component',
|
|
6829
|
+
parentContext: null,
|
|
6830
|
+
tag: this.host.tagName.toLowerCase(),
|
|
6831
|
+
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
6832
|
+
action: this.isOpen ? 'expanded' : 'collapsed'
|
|
6833
|
+
});
|
|
6929
6834
|
};
|
|
6930
6835
|
this.icon = 'chevron-down';
|
|
6931
6836
|
this.label = undefined;
|
|
@@ -6992,39 +6897,20 @@ class EdsDropdown {
|
|
|
6992
6897
|
componentDidLoad() {
|
|
6993
6898
|
var _a;
|
|
6994
6899
|
this.focusableItems = Array.from(((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button')) || []);
|
|
6995
|
-
const btns = this.host.shadowRoot.querySelectorAll('eds-button');
|
|
6996
|
-
btns.forEach((btn) => {
|
|
6997
|
-
this.emitContext(btn);
|
|
6998
|
-
});
|
|
6999
|
-
}
|
|
7000
|
-
/**
|
|
7001
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
7002
|
-
* Provides context information about the dropdown component.
|
|
7003
|
-
*
|
|
7004
|
-
* @param linkElement - The button element to which the event will be dispatched.
|
|
7005
|
-
*/
|
|
7006
|
-
emitContext(linkElement) {
|
|
7007
|
-
const event = new CustomEvent('parentContext', {
|
|
7008
|
-
detail: {
|
|
7009
|
-
componentName: this.host.tagName.toLowerCase(),
|
|
7010
|
-
identifier: null
|
|
7011
|
-
}
|
|
7012
|
-
});
|
|
7013
|
-
linkElement.dispatchEvent(event);
|
|
7014
6900
|
}
|
|
7015
6901
|
/**
|
|
7016
6902
|
* Renders the dropdown component and displays its content when open.
|
|
7017
6903
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
7018
6904
|
*/
|
|
7019
6905
|
render() {
|
|
7020
|
-
return (hAsync("div", { key: '
|
|
6906
|
+
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: {
|
|
7021
6907
|
'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,
|
|
7022
6908
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
7023
6909
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
7024
6910
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
7025
6911
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
7026
6912
|
'rounded-lg': this.rounded
|
|
7027
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
6913
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'dda70b865ed03dc7ad36a32934587bbcb0a16c1b' }))));
|
|
7028
6914
|
}
|
|
7029
6915
|
get host() { return getElement(this); }
|
|
7030
6916
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7101,7 +6987,7 @@ class EdsFooter {
|
|
|
7101
6987
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7102
6988
|
*/
|
|
7103
6989
|
render() {
|
|
7104
|
-
return (hAsync("footer", { key: '
|
|
6990
|
+
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)))));
|
|
7105
6991
|
}
|
|
7106
6992
|
static get style() { return EdsFooterStyle0; }
|
|
7107
6993
|
static get cmpMeta() { return {
|
|
@@ -7217,13 +7103,20 @@ class EdsForm {
|
|
|
7217
7103
|
this.hasError = Object.keys(newErrors).length > 0;
|
|
7218
7104
|
};
|
|
7219
7105
|
this.handleSubmit = async (e) => {
|
|
7220
|
-
var _a;
|
|
7106
|
+
var _a, _b, _c;
|
|
7221
7107
|
e.preventDefault();
|
|
7222
7108
|
if (this.isSubmitting) {
|
|
7223
7109
|
return;
|
|
7224
7110
|
}
|
|
7225
7111
|
this.validateForm();
|
|
7226
7112
|
if (this.hasError) {
|
|
7113
|
+
sendAnalytics({
|
|
7114
|
+
category: 'ui-component',
|
|
7115
|
+
parentContext: null,
|
|
7116
|
+
tag: this.el.tagName.toLowerCase(),
|
|
7117
|
+
name: `${(_a = this.submitBtnLabel) === null || _a === void 0 ? void 0 : _a.toLowerCase()}/error` || '',
|
|
7118
|
+
action: 'click'
|
|
7119
|
+
});
|
|
7227
7120
|
this.alertMessage = this.errorMessage;
|
|
7228
7121
|
return;
|
|
7229
7122
|
}
|
|
@@ -7244,7 +7137,7 @@ class EdsForm {
|
|
|
7244
7137
|
formData.set('form_url', window.location.href);
|
|
7245
7138
|
}
|
|
7246
7139
|
if (this.authUser) {
|
|
7247
|
-
formData.set('form_user', (
|
|
7140
|
+
formData.set('form_user', (_b = this.authUser) === null || _b === void 0 ? void 0 : _b.email);
|
|
7248
7141
|
}
|
|
7249
7142
|
/*const formDataObject = Object.fromEntries((formData as any).entries());
|
|
7250
7143
|
console.log(JSON.stringify(formDataObject));*/
|
|
@@ -7270,6 +7163,13 @@ class EdsForm {
|
|
|
7270
7163
|
//this.alertMessage = data.message || this.successMessage;
|
|
7271
7164
|
toast.show(data.message || this.successMessage, 'success');
|
|
7272
7165
|
this.formEl.reset();
|
|
7166
|
+
sendAnalytics({
|
|
7167
|
+
category: 'ui-component',
|
|
7168
|
+
parentContext: null,
|
|
7169
|
+
tag: this.el.tagName.toLowerCase(),
|
|
7170
|
+
name: `${(_c = this.submitBtnLabel) === null || _c === void 0 ? void 0 : _c.toLowerCase()}/success` || '',
|
|
7171
|
+
action: 'click'
|
|
7172
|
+
});
|
|
7273
7173
|
}
|
|
7274
7174
|
catch (err) {
|
|
7275
7175
|
this.hasError = true;
|
|
@@ -7282,7 +7182,6 @@ class EdsForm {
|
|
|
7282
7182
|
this.formSubmitting.emit(this.isSubmitting);
|
|
7283
7183
|
}
|
|
7284
7184
|
};
|
|
7285
|
-
this.smallAlert = false;
|
|
7286
7185
|
this.setFormUrl = true;
|
|
7287
7186
|
this.submitBtn = true;
|
|
7288
7187
|
this.submitBtnLabel = 'Submit';
|
|
@@ -7291,7 +7190,7 @@ class EdsForm {
|
|
|
7291
7190
|
this.submitBtnHintMessage = 'To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.';
|
|
7292
7191
|
this.endpoint = undefined;
|
|
7293
7192
|
this.name = 'form';
|
|
7294
|
-
this.fields =
|
|
7193
|
+
this.fields = [];
|
|
7295
7194
|
this.values = {};
|
|
7296
7195
|
this.coupleAuth = false;
|
|
7297
7196
|
this.formSubmitted = false;
|
|
@@ -7301,6 +7200,7 @@ class EdsForm {
|
|
|
7301
7200
|
this.alertMessage = null;
|
|
7302
7201
|
this.isAuthenticated = false;
|
|
7303
7202
|
this.authUser = undefined;
|
|
7203
|
+
this.parsedFields = [];
|
|
7304
7204
|
}
|
|
7305
7205
|
onAuthStatusChanged(event) {
|
|
7306
7206
|
var _a;
|
|
@@ -7308,21 +7208,23 @@ class EdsForm {
|
|
|
7308
7208
|
this.authUser = event.detail.user;
|
|
7309
7209
|
}
|
|
7310
7210
|
componentDidLoad() {
|
|
7211
|
+
this.parseFields(this.fields);
|
|
7311
7212
|
// Emit context for each eds-link element after the component is fully loaded
|
|
7312
|
-
const links = this.el.querySelectorAll('eds-button');
|
|
7213
|
+
/*const links = this.el.querySelectorAll('eds-button');
|
|
7313
7214
|
links.forEach((link) => {
|
|
7314
|
-
|
|
7315
|
-
})
|
|
7316
|
-
}
|
|
7317
|
-
emitContext(linkElement) {
|
|
7318
|
-
const event = new CustomEvent('parentContext', {
|
|
7319
|
-
detail: {
|
|
7320
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
7321
|
-
identifier: null
|
|
7322
|
-
}
|
|
7323
|
-
});
|
|
7324
|
-
linkElement.dispatchEvent(event);
|
|
7215
|
+
this.emitContext(link);
|
|
7216
|
+
});*/
|
|
7325
7217
|
}
|
|
7218
|
+
/*emitContext(linkElement: HTMLElement) {
|
|
7219
|
+
const event = new CustomEvent<ParentContextDetail>('parentContext', {
|
|
7220
|
+
detail: {
|
|
7221
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
7222
|
+
identifier: null
|
|
7223
|
+
}
|
|
7224
|
+
});
|
|
7225
|
+
|
|
7226
|
+
linkElement.dispatchEvent(event);
|
|
7227
|
+
}*/
|
|
7326
7228
|
// Visibility helper
|
|
7327
7229
|
isFieldVisible(field) {
|
|
7328
7230
|
if (!field.condition) {
|
|
@@ -7380,7 +7282,7 @@ class EdsForm {
|
|
|
7380
7282
|
validateForm() {
|
|
7381
7283
|
this.errors = {};
|
|
7382
7284
|
this.hasError = false;
|
|
7383
|
-
this.
|
|
7285
|
+
this.parsedFields.forEach((field) => {
|
|
7384
7286
|
if (field.type !== 'hidden') {
|
|
7385
7287
|
if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
|
|
7386
7288
|
// Single checkbox validation
|
|
@@ -7462,27 +7364,48 @@ class EdsForm {
|
|
|
7462
7364
|
});
|
|
7463
7365
|
return formData;
|
|
7464
7366
|
}
|
|
7465
|
-
|
|
7466
|
-
|
|
7367
|
+
parseFields(newValue) {
|
|
7368
|
+
try {
|
|
7369
|
+
if (typeof newValue === 'string') {
|
|
7370
|
+
this.parsedFields = JSON.parse(newValue);
|
|
7371
|
+
}
|
|
7372
|
+
else if (Array.isArray(newValue)) {
|
|
7373
|
+
this.parsedFields = newValue;
|
|
7374
|
+
}
|
|
7375
|
+
else if (newValue && typeof newValue === 'object') {
|
|
7376
|
+
// In case a single object is passed, wrap it in an array.
|
|
7377
|
+
this.parsedFields = newValue;
|
|
7378
|
+
}
|
|
7379
|
+
else {
|
|
7380
|
+
this.parsedFields = [];
|
|
7381
|
+
}
|
|
7382
|
+
}
|
|
7383
|
+
catch (error) {
|
|
7384
|
+
// eslint-disable-next-line
|
|
7385
|
+
console.error('Error parsing fields prop:', error);
|
|
7386
|
+
this.parsedFields = [];
|
|
7387
|
+
}
|
|
7467
7388
|
}
|
|
7468
7389
|
render() {
|
|
7469
|
-
const hiddenFields = this.
|
|
7470
|
-
const otherFields = this.
|
|
7471
|
-
return (hAsync("form", { key: '
|
|
7390
|
+
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7391
|
+
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7392
|
+
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) => {
|
|
7472
7393
|
var _a, _b;
|
|
7473
7394
|
if (!this.isFieldVisible(field)) {
|
|
7474
7395
|
return null;
|
|
7475
7396
|
}
|
|
7476
7397
|
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 }));
|
|
7477
|
-
})), this.submitBtn && (hAsync("div", { key: '
|
|
7398
|
+
})), 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" })))));
|
|
7478
7399
|
}
|
|
7479
7400
|
get el() { return getElement(this); }
|
|
7401
|
+
static get watchers() { return {
|
|
7402
|
+
"fields": ["parseFields"]
|
|
7403
|
+
}; }
|
|
7480
7404
|
static get style() { return EdsFormStyle0; }
|
|
7481
7405
|
static get cmpMeta() { return {
|
|
7482
7406
|
"$flags$": 4,
|
|
7483
7407
|
"$tagName$": "eds-form",
|
|
7484
7408
|
"$members$": {
|
|
7485
|
-
"smallAlert": [4, "small-alert"],
|
|
7486
7409
|
"setFormUrl": [4, "set-form-url"],
|
|
7487
7410
|
"submitBtn": [4, "submit-btn"],
|
|
7488
7411
|
"submitBtnLabel": [1, "submit-btn-label"],
|
|
@@ -7500,7 +7423,8 @@ class EdsForm {
|
|
|
7500
7423
|
"isSubmitting": [32],
|
|
7501
7424
|
"alertMessage": [32],
|
|
7502
7425
|
"isAuthenticated": [32],
|
|
7503
|
-
"authUser": [32]
|
|
7426
|
+
"authUser": [32],
|
|
7427
|
+
"parsedFields": [32]
|
|
7504
7428
|
},
|
|
7505
7429
|
"$listeners$": [[16, "authStatusChanged", "onAuthStatusChanged"]],
|
|
7506
7430
|
"$lazyBundleId$": "-",
|
|
@@ -7601,7 +7525,7 @@ class EdsFrame {
|
|
|
7601
7525
|
return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
|
|
7602
7526
|
}
|
|
7603
7527
|
render() {
|
|
7604
|
-
return (hAsync("div", { key: '
|
|
7528
|
+
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 })))));
|
|
7605
7529
|
}
|
|
7606
7530
|
get el() { return getElement(this); }
|
|
7607
7531
|
static get cmpMeta() { return {
|
|
@@ -7767,11 +7691,7 @@ class EdsHeader {
|
|
|
7767
7691
|
this.homeUrl = '/';
|
|
7768
7692
|
this.links = undefined;
|
|
7769
7693
|
this.inverseHeader = false;
|
|
7770
|
-
this.userFeature = false;
|
|
7771
7694
|
this.menuEnabled = false;
|
|
7772
|
-
this.keycloakUrl = undefined;
|
|
7773
|
-
this.keycloakRealm = undefined;
|
|
7774
|
-
this.keycloakClientId = undefined;
|
|
7775
7695
|
this.isMenuOpen = false;
|
|
7776
7696
|
this.isUserMenuOpen = false;
|
|
7777
7697
|
this.isAuthenticated = false;
|
|
@@ -7844,8 +7764,8 @@ class EdsHeader {
|
|
|
7844
7764
|
return [];
|
|
7845
7765
|
}
|
|
7846
7766
|
render() {
|
|
7847
|
-
return (hAsync("header", { key: '
|
|
7848
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '
|
|
7767
|
+
return (hAsync("header", { key: 'ce002da29cee5446f64694ba93ec67f89c180ac4', class: `flex items-center justify-between relative z-10
|
|
7768
|
+
${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));
|
|
7849
7769
|
}
|
|
7850
7770
|
get hostEl() { return getElement(this); }
|
|
7851
7771
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -7856,11 +7776,7 @@ class EdsHeader {
|
|
|
7856
7776
|
"homeUrl": [513, "home-url"],
|
|
7857
7777
|
"links": [1],
|
|
7858
7778
|
"inverseHeader": [4, "inverse-header"],
|
|
7859
|
-
"userFeature": [4, "user-feature"],
|
|
7860
7779
|
"menuEnabled": [4, "menu-enabled"],
|
|
7861
|
-
"keycloakUrl": [1, "keycloak-url"],
|
|
7862
|
-
"keycloakRealm": [1, "keycloak-realm"],
|
|
7863
|
-
"keycloakClientId": [1, "keycloak-client-id"],
|
|
7864
7780
|
"isMenuOpen": [32],
|
|
7865
7781
|
"isUserMenuOpen": [32],
|
|
7866
7782
|
"isAuthenticated": [32]
|
|
@@ -9678,7 +9594,7 @@ class EdsIconArrowDiagonal {
|
|
|
9678
9594
|
this.addClass = '';
|
|
9679
9595
|
}
|
|
9680
9596
|
render() {
|
|
9681
|
-
return hAsync("span", { key: '
|
|
9597
|
+
return hAsync("span", { key: 'd85a4d425e0c255efe4763d4a13f13b6ff727c2c', class: this.addClass, innerHTML: arrowDiagonal });
|
|
9682
9598
|
}
|
|
9683
9599
|
static get cmpMeta() { return {
|
|
9684
9600
|
"$flags$": 0,
|
|
@@ -9701,7 +9617,7 @@ class EdsIconArrowRight {
|
|
|
9701
9617
|
this.class = '';
|
|
9702
9618
|
}
|
|
9703
9619
|
render() {
|
|
9704
|
-
return hAsync("span", { key: '
|
|
9620
|
+
return hAsync("span", { key: '4a2b33b86753acab8270a45c7b250603b128bc88', class: this.class, innerHTML: arrowRight });
|
|
9705
9621
|
}
|
|
9706
9622
|
static get cmpMeta() { return {
|
|
9707
9623
|
"$flags$": 0,
|
|
@@ -9724,7 +9640,7 @@ class EdsIconBluesky {
|
|
|
9724
9640
|
this.class = '';
|
|
9725
9641
|
}
|
|
9726
9642
|
render() {
|
|
9727
|
-
return hAsync("span", { key: '
|
|
9643
|
+
return hAsync("span", { key: '845a157678b9d059b2c9bd8a6265d3a62f33c31a', class: this.class, innerHTML: bluesky });
|
|
9728
9644
|
}
|
|
9729
9645
|
static get cmpMeta() { return {
|
|
9730
9646
|
"$flags$": 0,
|
|
@@ -9747,7 +9663,7 @@ class EdsIconChevronDown {
|
|
|
9747
9663
|
this.class = '';
|
|
9748
9664
|
}
|
|
9749
9665
|
render() {
|
|
9750
|
-
return hAsync("span", { key: '
|
|
9666
|
+
return hAsync("span", { key: 'fa8022d27b91e909d4cd5522c6d0406be698a412', class: this.class, innerHTML: chevronDown });
|
|
9751
9667
|
}
|
|
9752
9668
|
static get cmpMeta() { return {
|
|
9753
9669
|
"$flags$": 0,
|
|
@@ -9770,7 +9686,7 @@ class EdsIconChevronLeft {
|
|
|
9770
9686
|
this.class = '';
|
|
9771
9687
|
}
|
|
9772
9688
|
render() {
|
|
9773
|
-
return hAsync("span", { key: '
|
|
9689
|
+
return hAsync("span", { key: 'c723d7f1bbd596063ae7e66123b8038af5320a54', class: this.class, innerHTML: chevronLeft });
|
|
9774
9690
|
}
|
|
9775
9691
|
static get cmpMeta() { return {
|
|
9776
9692
|
"$flags$": 0,
|
|
@@ -9793,7 +9709,7 @@ class EdsIconChevronRight {
|
|
|
9793
9709
|
this.class = '';
|
|
9794
9710
|
}
|
|
9795
9711
|
render() {
|
|
9796
|
-
return hAsync("span", { key: '
|
|
9712
|
+
return hAsync("span", { key: 'f770cd9151077e8708c76d2082613c65a20c420f', class: this.class, innerHTML: chevronRight });
|
|
9797
9713
|
}
|
|
9798
9714
|
static get cmpMeta() { return {
|
|
9799
9715
|
"$flags$": 0,
|
|
@@ -9816,7 +9732,7 @@ class EdsIconChevronUp {
|
|
|
9816
9732
|
this.class = '';
|
|
9817
9733
|
}
|
|
9818
9734
|
render() {
|
|
9819
|
-
return hAsync("span", { key: '
|
|
9735
|
+
return hAsync("span", { key: '40d18a840277f2aba5d314a36fca5c1f8fd99cc6', class: this.class, innerHTML: chevronUp });
|
|
9820
9736
|
}
|
|
9821
9737
|
static get cmpMeta() { return {
|
|
9822
9738
|
"$flags$": 0,
|
|
@@ -9839,7 +9755,7 @@ class EdsIconClose {
|
|
|
9839
9755
|
this.class = '';
|
|
9840
9756
|
}
|
|
9841
9757
|
render() {
|
|
9842
|
-
return hAsync("span", { key: '
|
|
9758
|
+
return hAsync("span", { key: '947f6615e8ee155be98b379a9c771cc0d453becd', class: this.class, innerHTML: close });
|
|
9843
9759
|
}
|
|
9844
9760
|
static get cmpMeta() { return {
|
|
9845
9761
|
"$flags$": 0,
|
|
@@ -9862,7 +9778,7 @@ class EdsIconCopy {
|
|
|
9862
9778
|
this.class = '';
|
|
9863
9779
|
}
|
|
9864
9780
|
render() {
|
|
9865
|
-
return hAsync("span", { key: '
|
|
9781
|
+
return hAsync("span", { key: '1e23d4493d5a1d07bc794da20cc4e445a87d56b0', class: this.class, innerHTML: copy });
|
|
9866
9782
|
}
|
|
9867
9783
|
static get cmpMeta() { return {
|
|
9868
9784
|
"$flags$": 0,
|
|
@@ -9885,7 +9801,7 @@ class EdsIconEu {
|
|
|
9885
9801
|
this.class = '';
|
|
9886
9802
|
}
|
|
9887
9803
|
render() {
|
|
9888
|
-
return hAsync("span", { key: '
|
|
9804
|
+
return hAsync("span", { key: '14254e1b9d43562e6f3f943de22aa8dd4d89a044', class: this.class, innerHTML: euSvg });
|
|
9889
9805
|
}
|
|
9890
9806
|
static get cmpMeta() { return {
|
|
9891
9807
|
"$flags$": 0,
|
|
@@ -9908,7 +9824,7 @@ class EdsIconFacebook {
|
|
|
9908
9824
|
this.class = '';
|
|
9909
9825
|
}
|
|
9910
9826
|
render() {
|
|
9911
|
-
return hAsync("span", { key: '
|
|
9827
|
+
return hAsync("span", { key: '902598891dfe926f92ce5d30dc135896c6eccd43', class: this.class, innerHTML: facebook });
|
|
9912
9828
|
}
|
|
9913
9829
|
static get cmpMeta() { return {
|
|
9914
9830
|
"$flags$": 0,
|
|
@@ -9931,7 +9847,7 @@ class EdsIconGitlab {
|
|
|
9931
9847
|
this.class = '';
|
|
9932
9848
|
}
|
|
9933
9849
|
render() {
|
|
9934
|
-
return hAsync("span", { key: '
|
|
9850
|
+
return hAsync("span", { key: '128f9265dfc1aee95586ba0a3fd20dd131678893', class: this.class, innerHTML: gitlabBlack });
|
|
9935
9851
|
}
|
|
9936
9852
|
static get cmpMeta() { return {
|
|
9937
9853
|
"$flags$": 0,
|
|
@@ -9954,7 +9870,7 @@ class EdsIconLinkedin {
|
|
|
9954
9870
|
this.class = '';
|
|
9955
9871
|
}
|
|
9956
9872
|
render() {
|
|
9957
|
-
return hAsync("span", { key: '
|
|
9873
|
+
return hAsync("span", { key: '0f9675a371ca7bb460882c04bf2bb0c103273a0d', class: this.class, innerHTML: linkedin });
|
|
9958
9874
|
}
|
|
9959
9875
|
static get cmpMeta() { return {
|
|
9960
9876
|
"$flags$": 0,
|
|
@@ -9977,7 +9893,7 @@ class EdsIconLoader {
|
|
|
9977
9893
|
this.class = '';
|
|
9978
9894
|
}
|
|
9979
9895
|
render() {
|
|
9980
|
-
return hAsync("span", { key: '
|
|
9896
|
+
return hAsync("span", { key: 'f11c60068baa2d2398056b3d7f04129d9deb4517', class: this.class, innerHTML: loader });
|
|
9981
9897
|
}
|
|
9982
9898
|
static get cmpMeta() { return {
|
|
9983
9899
|
"$flags$": 0,
|
|
@@ -10000,7 +9916,7 @@ class EdsIconMastodon {
|
|
|
10000
9916
|
this.class = '';
|
|
10001
9917
|
}
|
|
10002
9918
|
render() {
|
|
10003
|
-
return hAsync("span", { key: '
|
|
9919
|
+
return hAsync("span", { key: '1f68e5d0b6f8455f40bf94f6095eceff00b7887e', class: this.class, innerHTML: mastodon });
|
|
10004
9920
|
}
|
|
10005
9921
|
static get cmpMeta() { return {
|
|
10006
9922
|
"$flags$": 0,
|
|
@@ -10023,7 +9939,7 @@ class EdsIconMenu {
|
|
|
10023
9939
|
this.class = '';
|
|
10024
9940
|
}
|
|
10025
9941
|
render() {
|
|
10026
|
-
return hAsync("span", { key: '
|
|
9942
|
+
return hAsync("span", { key: '0084602c8e870b70caa66479f71bed3bd0cce94e', class: this.class, innerHTML: menu });
|
|
10027
9943
|
}
|
|
10028
9944
|
static get cmpMeta() { return {
|
|
10029
9945
|
"$flags$": 0,
|
|
@@ -10046,7 +9962,7 @@ class EdsIconMore {
|
|
|
10046
9962
|
this.class = '';
|
|
10047
9963
|
}
|
|
10048
9964
|
render() {
|
|
10049
|
-
return hAsync("span", { key: '
|
|
9965
|
+
return hAsync("span", { key: 'dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4', class: this.class, innerHTML: more });
|
|
10050
9966
|
}
|
|
10051
9967
|
static get cmpMeta() { return {
|
|
10052
9968
|
"$flags$": 0,
|
|
@@ -10069,7 +9985,7 @@ class EdsIconSearch {
|
|
|
10069
9985
|
this.class = '';
|
|
10070
9986
|
}
|
|
10071
9987
|
render() {
|
|
10072
|
-
return hAsync("span", { key: '
|
|
9988
|
+
return hAsync("span", { key: '42acc730afd956c2884b0789b3ea37ccf323630b', class: this.class, innerHTML: search });
|
|
10073
9989
|
}
|
|
10074
9990
|
static get cmpMeta() { return {
|
|
10075
9991
|
"$flags$": 0,
|
|
@@ -10092,7 +10008,7 @@ class EdsIconSuccess {
|
|
|
10092
10008
|
this.class = '';
|
|
10093
10009
|
}
|
|
10094
10010
|
render() {
|
|
10095
|
-
return hAsync("span", { key: '
|
|
10011
|
+
return hAsync("span", { key: '8b5d4cfeedf6d7e9bea48d7ba892527d484c858d', class: this.class, innerHTML: success });
|
|
10096
10012
|
}
|
|
10097
10013
|
static get cmpMeta() { return {
|
|
10098
10014
|
"$flags$": 0,
|
|
@@ -10115,7 +10031,7 @@ class EdsIconTwitter {
|
|
|
10115
10031
|
this.class = '';
|
|
10116
10032
|
}
|
|
10117
10033
|
render() {
|
|
10118
|
-
return hAsync("span", { key: '
|
|
10034
|
+
return hAsync("span", { key: 'a06ab2e79a1ec7603244ec09649ccc2c9ea1950c', class: this.class, innerHTML: twitter });
|
|
10119
10035
|
}
|
|
10120
10036
|
static get cmpMeta() { return {
|
|
10121
10037
|
"$flags$": 0,
|
|
@@ -10138,7 +10054,7 @@ class EdsIconUser {
|
|
|
10138
10054
|
this.class = '';
|
|
10139
10055
|
}
|
|
10140
10056
|
render() {
|
|
10141
|
-
return hAsync("span", { key: '
|
|
10057
|
+
return hAsync("span", { key: 'cb31d12146ff577195650b502f51005092404a30', class: this.class, innerHTML: user });
|
|
10142
10058
|
}
|
|
10143
10059
|
static get cmpMeta() { return {
|
|
10144
10060
|
"$flags$": 0,
|
|
@@ -10217,7 +10133,7 @@ class EdsIconYoutube {
|
|
|
10217
10133
|
this.class = '';
|
|
10218
10134
|
}
|
|
10219
10135
|
render() {
|
|
10220
|
-
return hAsync("span", { key: '
|
|
10136
|
+
return hAsync("span", { key: '4eba69bfec926b7a3490feee15b5947a8ab8a7b9', class: this.class, innerHTML: youtube });
|
|
10221
10137
|
}
|
|
10222
10138
|
static get cmpMeta() { return {
|
|
10223
10139
|
"$flags$": 0,
|
|
@@ -10261,11 +10177,16 @@ class EdsImg {
|
|
|
10261
10177
|
this.loaded = true;
|
|
10262
10178
|
this.showBg = false;
|
|
10263
10179
|
};
|
|
10180
|
+
// On error, remove the background effect so users know the image failed to load.
|
|
10181
|
+
this.handleError = () => {
|
|
10182
|
+
this.loaded = true;
|
|
10183
|
+
this.showBg = false;
|
|
10184
|
+
};
|
|
10264
10185
|
this.handleTransitionEnd = () => {
|
|
10265
10186
|
this.showBg = false;
|
|
10266
10187
|
};
|
|
10267
10188
|
this.src = undefined;
|
|
10268
|
-
this.alt =
|
|
10189
|
+
this.alt = '';
|
|
10269
10190
|
this.width = undefined;
|
|
10270
10191
|
this.height = undefined;
|
|
10271
10192
|
this.srcset = undefined;
|
|
@@ -10288,14 +10209,14 @@ class EdsImg {
|
|
|
10288
10209
|
imgOpts['loading'] = 'lazy';
|
|
10289
10210
|
imgOpts['decoding'] = 'async';
|
|
10290
10211
|
}
|
|
10291
|
-
return (hAsync("div", { key: '
|
|
10212
|
+
return (hAsync("div", { key: '733be8df2b9e3db1b5b13aaa47c16a9c26f345d7', class: {
|
|
10292
10213
|
'items-center justify-center': true,
|
|
10293
10214
|
'effect-bg-pattern': this.lazyload && this.showBg
|
|
10294
|
-
} }, hAsync("picture", { key: '
|
|
10215
|
+
} }, 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: {
|
|
10295
10216
|
'effect-opacity object-cover object-center': true,
|
|
10296
10217
|
'opacity-100': this.loaded,
|
|
10297
10218
|
'opacity-0': !this.loaded
|
|
10298
|
-
}, 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 })))));
|
|
10219
|
+
}, 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 })))));
|
|
10299
10220
|
}
|
|
10300
10221
|
get imgElement() { return getElement(this); }
|
|
10301
10222
|
static get style() { return EdsImgStyle0; }
|
|
@@ -10372,12 +10293,12 @@ class EdsInput {
|
|
|
10372
10293
|
render() {
|
|
10373
10294
|
const withIcon = !!this.icon;
|
|
10374
10295
|
const describedBy = this.hasMessage || this.error ? `${this.name}-error` : '';
|
|
10375
|
-
return (hAsync("div", { key: '
|
|
10296
|
+
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: `
|
|
10376
10297
|
${this.extraClass || ''}
|
|
10377
10298
|
input ${this.type === 'radio' ? 'input-radio' : this.type === 'checkbox' ? 'input-checkbox' : ''}
|
|
10378
10299
|
${withIcon && this.type !== 'radio' && this.type !== 'checkbox' ? 'input-icon pl-36' : ''}
|
|
10379
10300
|
${this.error ? 'input-error' : ''}
|
|
10380
|
-
`, "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: '
|
|
10301
|
+
`, "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 }))));
|
|
10381
10302
|
}
|
|
10382
10303
|
get el() { return getElement(this); }
|
|
10383
10304
|
static get watchers() { return {
|
|
@@ -10478,11 +10399,11 @@ class EdsInputField {
|
|
|
10478
10399
|
icon: this.icon,
|
|
10479
10400
|
checked: this.checked
|
|
10480
10401
|
};
|
|
10481
|
-
return (hAsync("div", { key: '
|
|
10402
|
+
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' ? ((() => {
|
|
10482
10403
|
var _a, _b, _c;
|
|
10483
10404
|
const opt = this.parsedOptions;
|
|
10484
10405
|
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" }));
|
|
10485
|
-
})()) : (hAsync("eds-input", Object.assign({}, inputOpts))))), hAsync("eds-input-footer", { key: '
|
|
10406
|
+
})()) : (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 })));
|
|
10486
10407
|
}
|
|
10487
10408
|
static get style() { return EdsInputFieldStyle0; }
|
|
10488
10409
|
static get cmpMeta() { return {
|
|
@@ -10528,7 +10449,7 @@ class EdsInputFooter {
|
|
|
10528
10449
|
this.link = undefined;
|
|
10529
10450
|
}
|
|
10530
10451
|
render() {
|
|
10531
|
-
return (hAsync("div", { key: '
|
|
10452
|
+
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))));
|
|
10532
10453
|
}
|
|
10533
10454
|
static get cmpMeta() { return {
|
|
10534
10455
|
"$flags$": 0,
|
|
@@ -10558,7 +10479,7 @@ class EdsInputLabel {
|
|
|
10558
10479
|
this.disabled = false;
|
|
10559
10480
|
}
|
|
10560
10481
|
render() {
|
|
10561
|
-
return (hAsync("label", { key: '
|
|
10482
|
+
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")))));
|
|
10562
10483
|
}
|
|
10563
10484
|
static get cmpMeta() { return {
|
|
10564
10485
|
"$flags$": 0,
|
|
@@ -10606,9 +10527,9 @@ class EdsInputRange {
|
|
|
10606
10527
|
return this.inputElement;
|
|
10607
10528
|
}
|
|
10608
10529
|
render() {
|
|
10609
|
-
return (hAsync("div", { key: '
|
|
10530
|
+
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",
|
|
10610
10531
|
//aria-describedby={describedBy}
|
|
10611
|
-
onInput: this.onInput }), hAsync("p", { key: '
|
|
10532
|
+
onInput: this.onInput }), hAsync("p", { key: '66bc2e755e4eb38015e32441599a9f9bade7c679', id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal)));
|
|
10612
10533
|
}
|
|
10613
10534
|
get el() { return getElement(this); }
|
|
10614
10535
|
static get cmpMeta() { return {
|
|
@@ -10665,7 +10586,7 @@ class EdsInputSearch {
|
|
|
10665
10586
|
return this.inputElement;
|
|
10666
10587
|
}
|
|
10667
10588
|
render() {
|
|
10668
|
-
return (hAsync("div", { key: '
|
|
10589
|
+
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",
|
|
10669
10590
|
//aria-describedby={describedBy}
|
|
10670
10591
|
onInput: this.onInput, onChange: this.onChange })));
|
|
10671
10592
|
}
|
|
@@ -10706,6 +10627,9 @@ class EdsInputSearch {
|
|
|
10706
10627
|
*
|
|
10707
10628
|
* The component will automatically fetch data if a dynamic configuration is provided.
|
|
10708
10629
|
*/
|
|
10630
|
+
/**
|
|
10631
|
+
* @internal
|
|
10632
|
+
*/
|
|
10709
10633
|
class EdsInputSelect {
|
|
10710
10634
|
constructor(hostRef) {
|
|
10711
10635
|
registerInstance(this, hostRef);
|
|
@@ -10735,6 +10659,7 @@ class EdsInputSelect {
|
|
|
10735
10659
|
this.loading = false;
|
|
10736
10660
|
this.dynamicValueKey = 'value';
|
|
10737
10661
|
this.dynamicLabelKey = 'label';
|
|
10662
|
+
this.hasFetched = false;
|
|
10738
10663
|
}
|
|
10739
10664
|
componentWillLoad() {
|
|
10740
10665
|
this.loadOptions();
|
|
@@ -10751,6 +10676,9 @@ class EdsInputSelect {
|
|
|
10751
10676
|
async loadOptions() {
|
|
10752
10677
|
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
10753
10678
|
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
10679
|
+
if (this.hasFetched) {
|
|
10680
|
+
return;
|
|
10681
|
+
}
|
|
10754
10682
|
const config = this.options[0];
|
|
10755
10683
|
const endpoint = config.endpoint;
|
|
10756
10684
|
this.dynamicValueKey = config.value || 'value';
|
|
@@ -10764,6 +10692,7 @@ class EdsInputSelect {
|
|
|
10764
10692
|
const data = await response.json();
|
|
10765
10693
|
// Assume the API returns an array of objects.
|
|
10766
10694
|
this.dynamicOptions = data;
|
|
10695
|
+
this.hasFetched = true;
|
|
10767
10696
|
}
|
|
10768
10697
|
catch (error) {
|
|
10769
10698
|
//console.error('Error fetching dynamic options:', error);
|
|
@@ -10780,8 +10709,11 @@ class EdsInputSelect {
|
|
|
10780
10709
|
this.dynamicLabelKey = this.labelKey;
|
|
10781
10710
|
}
|
|
10782
10711
|
}
|
|
10712
|
+
getValueByPath(obj, path) {
|
|
10713
|
+
return path.split('.').reduce((acc, part) => acc && acc[part], obj);
|
|
10714
|
+
}
|
|
10783
10715
|
render() {
|
|
10784
|
-
return (hAsync("div", { key: '
|
|
10716
|
+
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" }))));
|
|
10785
10717
|
}
|
|
10786
10718
|
static get watchers() { return {
|
|
10787
10719
|
"options": ["loadOptions"]
|
|
@@ -10804,7 +10736,8 @@ class EdsInputSelect {
|
|
|
10804
10736
|
"dynamicOptions": [32],
|
|
10805
10737
|
"loading": [32],
|
|
10806
10738
|
"dynamicValueKey": [32],
|
|
10807
|
-
"dynamicLabelKey": [32]
|
|
10739
|
+
"dynamicLabelKey": [32],
|
|
10740
|
+
"hasFetched": [32]
|
|
10808
10741
|
},
|
|
10809
10742
|
"$listeners$": undefined,
|
|
10810
10743
|
"$lazyBundleId$": "-",
|
|
@@ -10964,12 +10897,11 @@ class EdsLink {
|
|
|
10964
10897
|
this.hideLabelOnSmallScreen = false;
|
|
10965
10898
|
this.extraClass = undefined;
|
|
10966
10899
|
}
|
|
10967
|
-
|
|
10900
|
+
handleParentContext(event) {
|
|
10968
10901
|
if (event.target !== this.el) {
|
|
10969
10902
|
// Ignore the event if it's not targeted at this specific instance
|
|
10970
10903
|
return;
|
|
10971
10904
|
}
|
|
10972
|
-
//console.log(event.detail);
|
|
10973
10905
|
this.parentContext = event.detail;
|
|
10974
10906
|
event.stopPropagation();
|
|
10975
10907
|
}
|
|
@@ -11002,7 +10934,7 @@ class EdsLink {
|
|
|
11002
10934
|
}
|
|
11003
10935
|
renderRightIcon() {
|
|
11004
10936
|
if (this.icon && this.iconPos === 'right') {
|
|
11005
|
-
return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex' }, hAsync("eds-icon-wrapper", { class: `
|
|
10937
|
+
return (hAsync("span", { class: !this.external && !this.label ? '' : 'flex ml-4' }, hAsync("eds-icon-wrapper", { class: `
|
|
11006
10938
|
flex inline-flex items-center justify-center
|
|
11007
10939
|
${this.size === 'large' ? 'h-32 w-32' : 'h-20 w-20'}
|
|
11008
10940
|
`, icon: this.icon })));
|
|
@@ -11010,6 +10942,7 @@ class EdsLink {
|
|
|
11010
10942
|
return null;
|
|
11011
10943
|
}
|
|
11012
10944
|
render() {
|
|
10945
|
+
// If the link is disabled, use a <span>; otherwise, use an <a> element.
|
|
11013
10946
|
const ComponentType = this.disabled ? 'span' : 'a';
|
|
11014
10947
|
const classes = linkStyles({
|
|
11015
10948
|
intent: this.intent,
|
|
@@ -11017,10 +10950,12 @@ class EdsLink {
|
|
|
11017
10950
|
iconSmall: this.iconSmall,
|
|
11018
10951
|
isActive: this.current
|
|
11019
10952
|
});
|
|
10953
|
+
// If no visible label is provided, ensure ariaLabel is set.
|
|
10954
|
+
const computedAriaLabel = this.ariaLabel || this.label || 'link';
|
|
11020
10955
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
11021
10956
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
11022
10957
|
: '';
|
|
11023
|
-
return (hAsync(ComponentType, { key: '
|
|
10958
|
+
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())));
|
|
11024
10959
|
}
|
|
11025
10960
|
get el() { return getElement(this); }
|
|
11026
10961
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -11043,7 +10978,7 @@ class EdsLink {
|
|
|
11043
10978
|
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"],
|
|
11044
10979
|
"extraClass": [1, "extra-class"]
|
|
11045
10980
|
},
|
|
11046
|
-
"$listeners$": [[0, "parentContext", "
|
|
10981
|
+
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
11047
10982
|
"$lazyBundleId$": "-",
|
|
11048
10983
|
"$attrsToReflect$": []
|
|
11049
10984
|
}; }
|
|
@@ -11111,7 +11046,7 @@ function Keycloak (config) {
|
|
|
11111
11046
|
);
|
|
11112
11047
|
}
|
|
11113
11048
|
|
|
11114
|
-
kc.init = function (initOptions) {
|
|
11049
|
+
kc.init = function (initOptions = {}) {
|
|
11115
11050
|
if (kc.didInitialize) {
|
|
11116
11051
|
throw new Error("A 'Keycloak' instance can only be initialized once.");
|
|
11117
11052
|
}
|
|
@@ -11123,9 +11058,9 @@ function Keycloak (config) {
|
|
|
11123
11058
|
callbackStorage = createCallbackStorage();
|
|
11124
11059
|
var adapters = ['default', 'cordova', 'cordova-native'];
|
|
11125
11060
|
|
|
11126
|
-
if (
|
|
11061
|
+
if (adapters.indexOf(initOptions.adapter) > -1) {
|
|
11127
11062
|
adapter = loadAdapter(initOptions.adapter);
|
|
11128
|
-
} else if (
|
|
11063
|
+
} else if (typeof initOptions.adapter === "object") {
|
|
11129
11064
|
adapter = initOptions.adapter;
|
|
11130
11065
|
} else {
|
|
11131
11066
|
if (window.Cordova || window.cordova) {
|
|
@@ -11135,101 +11070,99 @@ function Keycloak (config) {
|
|
|
11135
11070
|
}
|
|
11136
11071
|
}
|
|
11137
11072
|
|
|
11138
|
-
if (initOptions) {
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
}
|
|
11073
|
+
if (typeof initOptions.useNonce !== 'undefined') {
|
|
11074
|
+
useNonce = initOptions.useNonce;
|
|
11075
|
+
}
|
|
11142
11076
|
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11077
|
+
if (typeof initOptions.checkLoginIframe !== 'undefined') {
|
|
11078
|
+
loginIframe.enable = initOptions.checkLoginIframe;
|
|
11079
|
+
}
|
|
11146
11080
|
|
|
11147
|
-
|
|
11148
|
-
|
|
11149
|
-
|
|
11081
|
+
if (initOptions.checkLoginIframeInterval) {
|
|
11082
|
+
loginIframe.interval = initOptions.checkLoginIframeInterval;
|
|
11083
|
+
}
|
|
11150
11084
|
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11085
|
+
if (initOptions.onLoad === 'login-required') {
|
|
11086
|
+
kc.loginRequired = true;
|
|
11087
|
+
}
|
|
11154
11088
|
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
}
|
|
11089
|
+
if (initOptions.responseMode) {
|
|
11090
|
+
if (initOptions.responseMode === 'query' || initOptions.responseMode === 'fragment') {
|
|
11091
|
+
kc.responseMode = initOptions.responseMode;
|
|
11092
|
+
} else {
|
|
11093
|
+
throw 'Invalid value for responseMode';
|
|
11161
11094
|
}
|
|
11095
|
+
}
|
|
11162
11096
|
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
}
|
|
11177
|
-
kc.flow = initOptions.flow;
|
|
11097
|
+
if (initOptions.flow) {
|
|
11098
|
+
switch (initOptions.flow) {
|
|
11099
|
+
case 'standard':
|
|
11100
|
+
kc.responseType = 'code';
|
|
11101
|
+
break;
|
|
11102
|
+
case 'implicit':
|
|
11103
|
+
kc.responseType = 'id_token token';
|
|
11104
|
+
break;
|
|
11105
|
+
case 'hybrid':
|
|
11106
|
+
kc.responseType = 'code id_token token';
|
|
11107
|
+
break;
|
|
11108
|
+
default:
|
|
11109
|
+
throw 'Invalid value for flow';
|
|
11178
11110
|
}
|
|
11111
|
+
kc.flow = initOptions.flow;
|
|
11112
|
+
}
|
|
11179
11113
|
|
|
11180
|
-
|
|
11181
|
-
|
|
11182
|
-
|
|
11114
|
+
if (initOptions.timeSkew != null) {
|
|
11115
|
+
kc.timeSkew = initOptions.timeSkew;
|
|
11116
|
+
}
|
|
11183
11117
|
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11118
|
+
if(initOptions.redirectUri) {
|
|
11119
|
+
kc.redirectUri = initOptions.redirectUri;
|
|
11120
|
+
}
|
|
11187
11121
|
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11122
|
+
if (initOptions.silentCheckSsoRedirectUri) {
|
|
11123
|
+
kc.silentCheckSsoRedirectUri = initOptions.silentCheckSsoRedirectUri;
|
|
11124
|
+
}
|
|
11191
11125
|
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11126
|
+
if (typeof initOptions.silentCheckSsoFallback === 'boolean') {
|
|
11127
|
+
kc.silentCheckSsoFallback = initOptions.silentCheckSsoFallback;
|
|
11128
|
+
} else {
|
|
11129
|
+
kc.silentCheckSsoFallback = true;
|
|
11130
|
+
}
|
|
11131
|
+
|
|
11132
|
+
if (typeof initOptions.pkceMethod !== "undefined") {
|
|
11133
|
+
if (initOptions.pkceMethod !== "S256" && initOptions.pkceMethod !== false) {
|
|
11134
|
+
throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${initOptions.pkceMethod}.`);
|
|
11196
11135
|
}
|
|
11197
11136
|
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
kc.pkceMethod = initOptions.pkceMethod;
|
|
11204
|
-
} else {
|
|
11205
|
-
kc.pkceMethod = "S256";
|
|
11206
|
-
}
|
|
11137
|
+
kc.pkceMethod = initOptions.pkceMethod;
|
|
11138
|
+
} else {
|
|
11139
|
+
kc.pkceMethod = "S256";
|
|
11140
|
+
}
|
|
11207
11141
|
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11142
|
+
if (typeof initOptions.enableLogging === 'boolean') {
|
|
11143
|
+
kc.enableLogging = initOptions.enableLogging;
|
|
11144
|
+
} else {
|
|
11145
|
+
kc.enableLogging = false;
|
|
11146
|
+
}
|
|
11213
11147
|
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
|
|
11148
|
+
if (initOptions.logoutMethod === 'POST') {
|
|
11149
|
+
kc.logoutMethod = 'POST';
|
|
11150
|
+
} else {
|
|
11151
|
+
kc.logoutMethod = 'GET';
|
|
11152
|
+
}
|
|
11219
11153
|
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11154
|
+
if (typeof initOptions.scope === 'string') {
|
|
11155
|
+
kc.scope = initOptions.scope;
|
|
11156
|
+
}
|
|
11223
11157
|
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11158
|
+
if (typeof initOptions.acrValues === 'string') {
|
|
11159
|
+
kc.acrValues = initOptions.acrValues;
|
|
11160
|
+
}
|
|
11227
11161
|
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
}
|
|
11162
|
+
if (typeof initOptions.messageReceiveTimeout === 'number' && initOptions.messageReceiveTimeout > 0) {
|
|
11163
|
+
kc.messageReceiveTimeout = initOptions.messageReceiveTimeout;
|
|
11164
|
+
} else {
|
|
11165
|
+
kc.messageReceiveTimeout = 10000;
|
|
11233
11166
|
}
|
|
11234
11167
|
|
|
11235
11168
|
if (!kc.responseMode) {
|
|
@@ -11258,7 +11191,7 @@ function Keycloak (config) {
|
|
|
11258
11191
|
options.prompt = 'none';
|
|
11259
11192
|
}
|
|
11260
11193
|
|
|
11261
|
-
if (initOptions
|
|
11194
|
+
if (initOptions.locale) {
|
|
11262
11195
|
options.locale = initOptions.locale;
|
|
11263
11196
|
}
|
|
11264
11197
|
kc.login(options).then(function () {
|
|
@@ -11332,42 +11265,40 @@ function Keycloak (config) {
|
|
|
11332
11265
|
}).catch(function (error) {
|
|
11333
11266
|
initPromise.setError(error);
|
|
11334
11267
|
});
|
|
11335
|
-
}
|
|
11336
|
-
if (initOptions.token && initOptions.refreshToken) {
|
|
11337
|
-
setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
|
|
11268
|
+
}
|
|
11338
11269
|
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
}).catch(function (error) {
|
|
11350
|
-
initPromise.setError(error);
|
|
11351
|
-
});
|
|
11352
|
-
});
|
|
11353
|
-
} else {
|
|
11354
|
-
kc.updateToken(-1).then(function() {
|
|
11355
|
-
kc.onAuthSuccess && kc.onAuthSuccess();
|
|
11356
|
-
initPromise.setSuccess();
|
|
11357
|
-
}).catch(function(error) {
|
|
11358
|
-
kc.onAuthError && kc.onAuthError();
|
|
11359
|
-
if (initOptions.onLoad) {
|
|
11360
|
-
onLoad();
|
|
11270
|
+
if (initOptions.token && initOptions.refreshToken) {
|
|
11271
|
+
setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken);
|
|
11272
|
+
|
|
11273
|
+
if (loginIframe.enable) {
|
|
11274
|
+
setupCheckLoginIframe().then(function() {
|
|
11275
|
+
checkLoginIframe().then(function (unchanged) {
|
|
11276
|
+
if (unchanged) {
|
|
11277
|
+
kc.onAuthSuccess && kc.onAuthSuccess();
|
|
11278
|
+
initPromise.setSuccess();
|
|
11279
|
+
scheduleCheckIframe();
|
|
11361
11280
|
} else {
|
|
11362
|
-
initPromise.
|
|
11281
|
+
initPromise.setSuccess();
|
|
11363
11282
|
}
|
|
11283
|
+
}).catch(function (error) {
|
|
11284
|
+
initPromise.setError(error);
|
|
11364
11285
|
});
|
|
11365
|
-
}
|
|
11366
|
-
} else if (initOptions.onLoad) {
|
|
11367
|
-
onLoad();
|
|
11286
|
+
});
|
|
11368
11287
|
} else {
|
|
11369
|
-
|
|
11288
|
+
kc.updateToken(-1).then(function() {
|
|
11289
|
+
kc.onAuthSuccess && kc.onAuthSuccess();
|
|
11290
|
+
initPromise.setSuccess();
|
|
11291
|
+
}).catch(function(error) {
|
|
11292
|
+
kc.onAuthError && kc.onAuthError();
|
|
11293
|
+
if (initOptions.onLoad) {
|
|
11294
|
+
onLoad();
|
|
11295
|
+
} else {
|
|
11296
|
+
initPromise.setError(error);
|
|
11297
|
+
}
|
|
11298
|
+
});
|
|
11370
11299
|
}
|
|
11300
|
+
} else if (initOptions.onLoad) {
|
|
11301
|
+
onLoad();
|
|
11371
11302
|
} else {
|
|
11372
11303
|
initPromise.setSuccess();
|
|
11373
11304
|
}
|
|
@@ -11728,7 +11659,7 @@ function Keycloak (config) {
|
|
|
11728
11659
|
|
|
11729
11660
|
kc.onAuthRefreshError && kc.onAuthRefreshError();
|
|
11730
11661
|
for (var p = refreshQueue.pop(); p != null; p = refreshQueue.pop()) {
|
|
11731
|
-
p.setError(
|
|
11662
|
+
p.setError("Failed to refresh token: An unexpected HTTP error occurred while attempting to refresh the token.");
|
|
11732
11663
|
}
|
|
11733
11664
|
}
|
|
11734
11665
|
}
|
|
@@ -12296,7 +12227,7 @@ function Keycloak (config) {
|
|
|
12296
12227
|
function check3pCookiesSupported() {
|
|
12297
12228
|
var promise = createPromise();
|
|
12298
12229
|
|
|
12299
|
-
if (loginIframe.enable || kc.silentCheckSsoRedirectUri) {
|
|
12230
|
+
if ((loginIframe.enable || kc.silentCheckSsoRedirectUri) && typeof kc.endpoints.thirdPartyCookiesIframe === 'function') {
|
|
12300
12231
|
var iframe = document.createElement('iframe');
|
|
12301
12232
|
iframe.setAttribute('src', kc.endpoints.thirdPartyCookiesIframe());
|
|
12302
12233
|
iframe.setAttribute('sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin');
|
|
@@ -12316,7 +12247,7 @@ function Keycloak (config) {
|
|
|
12316
12247
|
"[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:\n\n" +
|
|
12317
12248
|
" - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).\n" +
|
|
12318
12249
|
" - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).\n\n" +
|
|
12319
|
-
"For more information see: https://www.keycloak.org/
|
|
12250
|
+
"For more information see: https://www.keycloak.org/securing-apps/javascript-adapter#_modern_browsers"
|
|
12320
12251
|
);
|
|
12321
12252
|
|
|
12322
12253
|
loginIframe.enable = false;
|
|
@@ -12354,34 +12285,37 @@ function Keycloak (config) {
|
|
|
12354
12285
|
return;
|
|
12355
12286
|
}
|
|
12356
12287
|
|
|
12357
|
-
|
|
12358
|
-
const
|
|
12359
|
-
method: "POST",
|
|
12360
|
-
headers: {
|
|
12361
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
12362
|
-
},
|
|
12363
|
-
body: new URLSearchParams({
|
|
12364
|
-
id_token_hint: kc.idToken,
|
|
12365
|
-
client_id: kc.clientId,
|
|
12366
|
-
post_logout_redirect_uri: adapter.redirectUri(options, false)
|
|
12367
|
-
})
|
|
12368
|
-
});
|
|
12288
|
+
// Create form to send POST request.
|
|
12289
|
+
const form = document.createElement("form");
|
|
12369
12290
|
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
}
|
|
12291
|
+
form.setAttribute("method", "POST");
|
|
12292
|
+
form.setAttribute("action", kc.createLogoutUrl(options));
|
|
12293
|
+
form.style.display = "none";
|
|
12374
12294
|
|
|
12375
|
-
|
|
12376
|
-
|
|
12377
|
-
|
|
12295
|
+
// Add data to form as hidden input fields.
|
|
12296
|
+
const data = {
|
|
12297
|
+
id_token_hint: kc.idToken,
|
|
12298
|
+
client_id: kc.clientId,
|
|
12299
|
+
post_logout_redirect_uri: adapter.redirectUri(options, false)
|
|
12300
|
+
};
|
|
12301
|
+
|
|
12302
|
+
for (const [name, value] of Object.entries(data)) {
|
|
12303
|
+
const input = document.createElement("input");
|
|
12304
|
+
|
|
12305
|
+
input.setAttribute("type", "hidden");
|
|
12306
|
+
input.setAttribute("name", name);
|
|
12307
|
+
input.setAttribute("value", value);
|
|
12308
|
+
|
|
12309
|
+
form.appendChild(input);
|
|
12378
12310
|
}
|
|
12379
12311
|
|
|
12380
|
-
|
|
12312
|
+
// Append form to page and submit it to perform logout and redirect.
|
|
12313
|
+
document.body.appendChild(form);
|
|
12314
|
+
form.submit();
|
|
12381
12315
|
},
|
|
12382
12316
|
|
|
12383
|
-
register: function(options) {
|
|
12384
|
-
window.location.assign(kc.createRegisterUrl(options));
|
|
12317
|
+
register: async function(options) {
|
|
12318
|
+
window.location.assign(await kc.createRegisterUrl(options));
|
|
12385
12319
|
return createPromise().promise;
|
|
12386
12320
|
},
|
|
12387
12321
|
|
|
@@ -12534,9 +12468,9 @@ function Keycloak (config) {
|
|
|
12534
12468
|
return promise.promise;
|
|
12535
12469
|
},
|
|
12536
12470
|
|
|
12537
|
-
register : function(options) {
|
|
12471
|
+
register : async function(options) {
|
|
12538
12472
|
var promise = createPromise();
|
|
12539
|
-
var registerUrl = kc.createRegisterUrl();
|
|
12473
|
+
var registerUrl = await kc.createRegisterUrl();
|
|
12540
12474
|
var cordovaOptions = createCordovaOptions(options);
|
|
12541
12475
|
var ref = cordovaOpenWindowWrapper(registerUrl, '_blank', cordovaOptions);
|
|
12542
12476
|
ref.addEventListener('loadstart', function(event) {
|
|
@@ -12603,9 +12537,9 @@ function Keycloak (config) {
|
|
|
12603
12537
|
return promise.promise;
|
|
12604
12538
|
},
|
|
12605
12539
|
|
|
12606
|
-
register : function(options) {
|
|
12540
|
+
register : async function(options) {
|
|
12607
12541
|
var promise = createPromise();
|
|
12608
|
-
var registerUrl = kc.createRegisterUrl(options);
|
|
12542
|
+
var registerUrl = await kc.createRegisterUrl(options);
|
|
12609
12543
|
universalLinks.subscribe('keycloak' , function(event) {
|
|
12610
12544
|
universalLinks.unsubscribe('keycloak');
|
|
12611
12545
|
window.cordova.plugins.browsertab.close();
|
|
@@ -12641,6 +12575,8 @@ function Keycloak (config) {
|
|
|
12641
12575
|
throw 'invalid adapter type: ' + type;
|
|
12642
12576
|
}
|
|
12643
12577
|
|
|
12578
|
+
const STORAGE_KEY_PREFIX = 'kc-callback-';
|
|
12579
|
+
|
|
12644
12580
|
var LocalStorage = function() {
|
|
12645
12581
|
if (!(this instanceof LocalStorage)) {
|
|
12646
12582
|
return new LocalStorage();
|
|
@@ -12651,48 +12587,96 @@ function Keycloak (config) {
|
|
|
12651
12587
|
|
|
12652
12588
|
var cs = this;
|
|
12653
12589
|
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
localStorage.removeItem(key);
|
|
12668
|
-
}
|
|
12669
|
-
}
|
|
12590
|
+
/**
|
|
12591
|
+
* Clears all values from local storage that are no longer valid.
|
|
12592
|
+
*/
|
|
12593
|
+
function clearInvalidValues() {
|
|
12594
|
+
const currentTime = Date.now();
|
|
12595
|
+
|
|
12596
|
+
for (const [key, value] of getStoredEntries()) {
|
|
12597
|
+
// Attempt to parse the expiry time from the value.
|
|
12598
|
+
const expiry = parseExpiry(value);
|
|
12599
|
+
|
|
12600
|
+
// Discard the value if it is malformed or expired.
|
|
12601
|
+
if (expiry === null || expiry < currentTime) {
|
|
12602
|
+
localStorage.removeItem(key);
|
|
12670
12603
|
}
|
|
12671
12604
|
}
|
|
12672
12605
|
}
|
|
12673
12606
|
|
|
12607
|
+
/**
|
|
12608
|
+
* Clears all known values from local storage.
|
|
12609
|
+
*/
|
|
12610
|
+
function clearAllValues() {
|
|
12611
|
+
for (const [key] of getStoredEntries()) {
|
|
12612
|
+
localStorage.removeItem(key);
|
|
12613
|
+
}
|
|
12614
|
+
}
|
|
12615
|
+
|
|
12616
|
+
/**
|
|
12617
|
+
* Gets all entries stored in local storage that are known to be managed by this class.
|
|
12618
|
+
* @returns {Array<[string, unknown]>} An array of key-value pairs.
|
|
12619
|
+
*/
|
|
12620
|
+
function getStoredEntries() {
|
|
12621
|
+
return Object.entries(localStorage).filter(([key]) => key.startsWith(STORAGE_KEY_PREFIX));
|
|
12622
|
+
}
|
|
12623
|
+
|
|
12624
|
+
/**
|
|
12625
|
+
* Parses the expiry time from a value stored in local storage.
|
|
12626
|
+
* @param {unknown} value
|
|
12627
|
+
* @returns {number | null} The expiry time in milliseconds, or `null` if the value is malformed.
|
|
12628
|
+
*/
|
|
12629
|
+
function parseExpiry(value) {
|
|
12630
|
+
let parsedValue;
|
|
12631
|
+
|
|
12632
|
+
// Attempt to parse the value as JSON.
|
|
12633
|
+
try {
|
|
12634
|
+
parsedValue = JSON.parse(value);
|
|
12635
|
+
} catch (error) {
|
|
12636
|
+
return null;
|
|
12637
|
+
}
|
|
12638
|
+
|
|
12639
|
+
// Attempt to extract the 'expires' property.
|
|
12640
|
+
if (isObject(parsedValue) && 'expires' in parsedValue && typeof parsedValue.expires === 'number') {
|
|
12641
|
+
return parsedValue.expires;
|
|
12642
|
+
}
|
|
12643
|
+
|
|
12644
|
+
return null;
|
|
12645
|
+
}
|
|
12646
|
+
|
|
12674
12647
|
cs.get = function(state) {
|
|
12675
12648
|
if (!state) {
|
|
12676
12649
|
return;
|
|
12677
12650
|
}
|
|
12678
12651
|
|
|
12679
|
-
var key =
|
|
12652
|
+
var key = STORAGE_KEY_PREFIX + state;
|
|
12680
12653
|
var value = localStorage.getItem(key);
|
|
12681
12654
|
if (value) {
|
|
12682
12655
|
localStorage.removeItem(key);
|
|
12683
12656
|
value = JSON.parse(value);
|
|
12684
12657
|
}
|
|
12685
12658
|
|
|
12686
|
-
|
|
12659
|
+
clearInvalidValues();
|
|
12687
12660
|
return value;
|
|
12688
12661
|
};
|
|
12689
12662
|
|
|
12690
12663
|
cs.add = function(state) {
|
|
12691
|
-
|
|
12664
|
+
clearInvalidValues();
|
|
12665
|
+
|
|
12666
|
+
const key = STORAGE_KEY_PREFIX + state.state;
|
|
12667
|
+
const value = JSON.stringify({
|
|
12668
|
+
...state,
|
|
12669
|
+
// Set the expiry time to 1 hour from now.
|
|
12670
|
+
expires: Date.now() + (60 * 60 * 1000)
|
|
12671
|
+
});
|
|
12692
12672
|
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12673
|
+
try {
|
|
12674
|
+
localStorage.setItem(key, value);
|
|
12675
|
+
} catch (error) {
|
|
12676
|
+
// If the storage is full, clear all known values and try again.
|
|
12677
|
+
clearAllValues();
|
|
12678
|
+
localStorage.setItem(key, value);
|
|
12679
|
+
}
|
|
12696
12680
|
};
|
|
12697
12681
|
};
|
|
12698
12682
|
|
|
@@ -12708,15 +12692,15 @@ function Keycloak (config) {
|
|
|
12708
12692
|
return;
|
|
12709
12693
|
}
|
|
12710
12694
|
|
|
12711
|
-
var value = getCookie(
|
|
12712
|
-
setCookie(
|
|
12695
|
+
var value = getCookie(STORAGE_KEY_PREFIX + state);
|
|
12696
|
+
setCookie(STORAGE_KEY_PREFIX + state, '', cookieExpiration(-100));
|
|
12713
12697
|
if (value) {
|
|
12714
12698
|
return JSON.parse(value);
|
|
12715
12699
|
}
|
|
12716
12700
|
};
|
|
12717
12701
|
|
|
12718
12702
|
cs.add = function(state) {
|
|
12719
|
-
setCookie(
|
|
12703
|
+
setCookie(STORAGE_KEY_PREFIX + state.state, JSON.stringify(state), cookieExpiration(60));
|
|
12720
12704
|
};
|
|
12721
12705
|
|
|
12722
12706
|
cs.removeItem = function(key) {
|
|
@@ -12870,8 +12854,15 @@ function isObject(input) {
|
|
|
12870
12854
|
}
|
|
12871
12855
|
|
|
12872
12856
|
let keycloak = null;
|
|
12857
|
+
let keycloakInitPromise = null;
|
|
12873
12858
|
// Initialize Keycloak with an optional silent check
|
|
12874
12859
|
function initKeycloak(config, silentCheck = true) {
|
|
12860
|
+
// If already initializing or initialized, return the cached promise
|
|
12861
|
+
if (keycloakInitPromise) {
|
|
12862
|
+
// eslint-disable-next-line
|
|
12863
|
+
console.log('Keycloak already initialized, returning from cache');
|
|
12864
|
+
return keycloakInitPromise;
|
|
12865
|
+
}
|
|
12875
12866
|
if (!keycloak) {
|
|
12876
12867
|
keycloak = new Keycloak({
|
|
12877
12868
|
url: config.url,
|
|
@@ -12879,7 +12870,7 @@ function initKeycloak(config, silentCheck = true) {
|
|
|
12879
12870
|
clientId: config.clientId
|
|
12880
12871
|
});
|
|
12881
12872
|
}
|
|
12882
|
-
|
|
12873
|
+
keycloakInitPromise = keycloak
|
|
12883
12874
|
.init({
|
|
12884
12875
|
onLoad: silentCheck ? 'check-sso' : 'login-required',
|
|
12885
12876
|
checkLoginIframe: false
|
|
@@ -12891,6 +12882,7 @@ function initKeycloak(config, silentCheck = true) {
|
|
|
12891
12882
|
console.error('Failed to initialize Keycloak:', error);
|
|
12892
12883
|
return false;
|
|
12893
12884
|
});
|
|
12885
|
+
return keycloakInitPromise;
|
|
12894
12886
|
}
|
|
12895
12887
|
function getUser() {
|
|
12896
12888
|
if ((keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated) && (keycloak === null || keycloak === void 0 ? void 0 : keycloak.idTokenParsed)) {
|
|
@@ -12913,8 +12905,7 @@ function login() {
|
|
|
12913
12905
|
keycloak.login();
|
|
12914
12906
|
}
|
|
12915
12907
|
else {
|
|
12916
|
-
|
|
12917
|
-
console.error('Keycloak is not initialized.');
|
|
12908
|
+
throw new Error('Keycloak is not initialized.');
|
|
12918
12909
|
}
|
|
12919
12910
|
}
|
|
12920
12911
|
// Log out the user
|
|
@@ -12923,8 +12914,7 @@ function logout() {
|
|
|
12923
12914
|
keycloak.logout();
|
|
12924
12915
|
}
|
|
12925
12916
|
else {
|
|
12926
|
-
|
|
12927
|
-
console.error('Keycloak is not initialized.');
|
|
12917
|
+
throw new Error('Keycloak is not initialized.');
|
|
12928
12918
|
}
|
|
12929
12919
|
}
|
|
12930
12920
|
// Check if the user is authenticated
|
|
@@ -12941,75 +12931,85 @@ async function checkServerAvailability(url) {
|
|
|
12941
12931
|
}
|
|
12942
12932
|
}
|
|
12943
12933
|
|
|
12944
|
-
/**
|
|
12945
|
-
* `EdsLogin` is a login component that integrates Keycloak authentication,
|
|
12946
|
-
* allowing users to log in and out and manage authentication states.
|
|
12947
|
-
* This component is used to handle user login, logout, and authentication status display.
|
|
12948
|
-
*
|
|
12949
|
-
* This component is ideal for applications that require Keycloak-based authentication,
|
|
12950
|
-
* providing a simple login/logout interface and managing user session states.
|
|
12951
|
-
*/
|
|
12952
12934
|
class EdsLogin {
|
|
12953
12935
|
constructor(hostRef) {
|
|
12954
12936
|
registerInstance(this, hostRef);
|
|
12955
12937
|
this.authStatusChanged = createEvent(this, "authStatusChanged", 7);
|
|
12956
|
-
|
|
12957
|
-
|
|
12958
|
-
|
|
12959
|
-
|
|
12938
|
+
/**
|
|
12939
|
+
* Handles user login by invoking the Keycloak `login` function.
|
|
12940
|
+
* Only triggers login if the user is not already authenticated.
|
|
12941
|
+
*/
|
|
12942
|
+
this.handleLogin = async () => {
|
|
12943
|
+
if (!this.authenticated) {
|
|
12944
|
+
try {
|
|
12945
|
+
await login();
|
|
12946
|
+
toast.show('You are authenticated', 'success');
|
|
12947
|
+
}
|
|
12948
|
+
catch (error) {
|
|
12949
|
+
toast.show(error.message, 'error');
|
|
12950
|
+
}
|
|
12951
|
+
}
|
|
12960
12952
|
};
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12953
|
+
/**
|
|
12954
|
+
* Handles user logout by invoking the Keycloak `logout` function.
|
|
12955
|
+
* Resets the `authenticated` state to `false` after logout.
|
|
12956
|
+
*/
|
|
12957
|
+
this.handleLogout = async () => {
|
|
12958
|
+
try {
|
|
12959
|
+
await logout();
|
|
12960
|
+
}
|
|
12961
|
+
catch (error) {
|
|
12962
|
+
toast.show(error.message, 'error');
|
|
12963
|
+
}
|
|
12964
|
+
this.authenticated = false;
|
|
12965
|
+
this.user = null;
|
|
12966
|
+
};
|
|
12967
|
+
this.keycloakUrl = undefined;
|
|
12968
|
+
this.keycloakRealm = undefined;
|
|
12969
|
+
this.keycloakClientId = undefined;
|
|
12964
12970
|
this.authenticated = false;
|
|
12965
12971
|
this.user = null;
|
|
12966
12972
|
}
|
|
12967
|
-
|
|
12973
|
+
/**
|
|
12974
|
+
* Lifecycle method that runs when the component is about to load.
|
|
12975
|
+
* It initializes authentication by calling the `initAuth` method.
|
|
12976
|
+
*/
|
|
12968
12977
|
async componentWillLoad() {
|
|
12969
|
-
|
|
12978
|
+
// Check if required props are provided (optional check)
|
|
12979
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
12980
|
+
// eslint-disable-next-line
|
|
12981
|
+
console.error('Keycloak configuration props are missing.');
|
|
12982
|
+
return;
|
|
12983
|
+
}
|
|
12984
|
+
await this.initAuth();
|
|
12970
12985
|
}
|
|
12971
|
-
|
|
12972
|
-
|
|
12986
|
+
/**
|
|
12987
|
+
* Initializes the Keycloak authentication by configuring Keycloak with the provided props.
|
|
12988
|
+
* Sets the `authenticated` state and `user` data if the user is authenticated.
|
|
12989
|
+
* Emits `authStatusChanged` event with the authentication status.
|
|
12990
|
+
*/
|
|
12991
|
+
async initAuth() {
|
|
12973
12992
|
try {
|
|
12974
|
-
|
|
12993
|
+
await initKeycloak({
|
|
12975
12994
|
url: this.keycloakUrl,
|
|
12976
12995
|
realm: this.keycloakRealm,
|
|
12977
12996
|
clientId: this.keycloakClientId
|
|
12978
|
-
};
|
|
12979
|
-
|
|
12980
|
-
// eslint-disable-next-line
|
|
12981
|
-
// Set authentication state and fetch user data if authenticated
|
|
12982
|
-
this.authenticated = isAuthenticated();
|
|
12983
|
-
if (this.authenticated) {
|
|
12997
|
+
}, true);
|
|
12998
|
+
if (isAuthenticated()) {
|
|
12984
12999
|
this.user = getUser();
|
|
13000
|
+
this.authenticated = true;
|
|
13001
|
+
this.authStatusChanged.emit({
|
|
13002
|
+
authenticated: this.authenticated,
|
|
13003
|
+
user: this.user
|
|
13004
|
+
}); // Emit auth status change
|
|
12985
13005
|
}
|
|
12986
|
-
this.authStatusChanged.emit({
|
|
12987
|
-
authenticated: this.authenticated,
|
|
12988
|
-
user: this.user
|
|
12989
|
-
}); // Emit auth status change
|
|
12990
13006
|
}
|
|
12991
13007
|
catch (error) {
|
|
12992
|
-
|
|
12993
|
-
console.error('Keycloak initialization or login check failed:', error);
|
|
13008
|
+
toast.show(error.message, 'error');
|
|
12994
13009
|
}
|
|
12995
13010
|
}
|
|
12996
|
-
// Method to handle user login
|
|
12997
|
-
async handleLogin() {
|
|
12998
|
-
try {
|
|
12999
|
-
if (!this.authenticated) {
|
|
13000
|
-
login(); // Start the Keycloak login process
|
|
13001
|
-
}
|
|
13002
|
-
}
|
|
13003
|
-
catch (error) {
|
|
13004
|
-
// eslint-disable-next-line
|
|
13005
|
-
console.error('Login failed:', error);
|
|
13006
|
-
}
|
|
13007
|
-
}
|
|
13008
|
-
getBtnLabel() {
|
|
13009
|
-
return this.authenticated ? 'Logout' : 'Login';
|
|
13010
|
-
}
|
|
13011
13011
|
render() {
|
|
13012
|
-
return (hAsync("eds-button", { key: '
|
|
13012
|
+
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) }))));
|
|
13013
13013
|
}
|
|
13014
13014
|
static get cmpMeta() { return {
|
|
13015
13015
|
"$flags$": 9,
|
|
@@ -13053,6 +13053,7 @@ class EdsLogo {
|
|
|
13053
13053
|
this.href = '/';
|
|
13054
13054
|
this.orientation = 'horizontal';
|
|
13055
13055
|
this.type = undefined;
|
|
13056
|
+
this.label = 'Home';
|
|
13056
13057
|
}
|
|
13057
13058
|
/**
|
|
13058
13059
|
* Handles the click event on the logo link.
|
|
@@ -13105,7 +13106,7 @@ class EdsLogo {
|
|
|
13105
13106
|
}
|
|
13106
13107
|
render() {
|
|
13107
13108
|
const logoContent = this.getLogo();
|
|
13108
|
-
return (hAsync("a", { key: '
|
|
13109
|
+
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 })));
|
|
13109
13110
|
}
|
|
13110
13111
|
get el() { return getElement(this); }
|
|
13111
13112
|
static get style() { return EdsLogoStyle0; }
|
|
@@ -13115,7 +13116,8 @@ class EdsLogo {
|
|
|
13115
13116
|
"$members$": {
|
|
13116
13117
|
"href": [1],
|
|
13117
13118
|
"orientation": [1],
|
|
13118
|
-
"type": [1]
|
|
13119
|
+
"type": [1],
|
|
13120
|
+
"label": [1]
|
|
13119
13121
|
},
|
|
13120
13122
|
"$listeners$": undefined,
|
|
13121
13123
|
"$lazyBundleId$": "-",
|
|
@@ -13142,7 +13144,7 @@ class EdsLogoVariations {
|
|
|
13142
13144
|
}
|
|
13143
13145
|
}
|
|
13144
13146
|
render() {
|
|
13145
|
-
return hAsync("div", { key: '
|
|
13147
|
+
return hAsync("div", { key: '0494cbb3e7b4902e91a0c78c691bc3405b9f11cc', class: "container" }, this.renderContent());
|
|
13146
13148
|
}
|
|
13147
13149
|
static get cmpMeta() { return {
|
|
13148
13150
|
"$flags$": 0,
|
|
@@ -13272,10 +13274,9 @@ class EdsMatomoNotice {
|
|
|
13272
13274
|
}; }
|
|
13273
13275
|
}
|
|
13274
13276
|
|
|
13275
|
-
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%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.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}";
|
|
13277
|
+
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}";
|
|
13276
13278
|
var EdsModalStyle0 = edsModalCss;
|
|
13277
13279
|
|
|
13278
|
-
//import { sendAnalytics } from '@ebrains/utils';
|
|
13279
13280
|
/**
|
|
13280
13281
|
* `EdsModal` is a modal dialog component that can be toggled open or closed.
|
|
13281
13282
|
*
|
|
@@ -13293,33 +13294,59 @@ class EdsModal {
|
|
|
13293
13294
|
this.title = '';
|
|
13294
13295
|
this.truncate = true;
|
|
13295
13296
|
this.truncateLines = '1';
|
|
13297
|
+
this.position = 'middle';
|
|
13296
13298
|
}
|
|
13297
13299
|
getTruncateClass() {
|
|
13298
13300
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
13299
13301
|
}
|
|
13302
|
+
/**
|
|
13303
|
+
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
13304
|
+
*
|
|
13305
|
+
* @private
|
|
13306
|
+
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
13307
|
+
*/
|
|
13308
|
+
getModalPositionClasses() {
|
|
13309
|
+
switch (this.position) {
|
|
13310
|
+
case 'top':
|
|
13311
|
+
return 'left-1/2 top-20 -translate-x-1/2';
|
|
13312
|
+
case 'bottom':
|
|
13313
|
+
return 'left-1/2 bottom-20 -translate-x-1/2';
|
|
13314
|
+
case 'left':
|
|
13315
|
+
return 'left-20 top-1/2 -translate-y-1/2';
|
|
13316
|
+
case 'right':
|
|
13317
|
+
return 'right-20 top-1/2 -translate-y-1/2';
|
|
13318
|
+
case 'middle':
|
|
13319
|
+
default:
|
|
13320
|
+
return 'left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2';
|
|
13321
|
+
}
|
|
13322
|
+
}
|
|
13300
13323
|
/**
|
|
13301
13324
|
* Opens the modal.
|
|
13302
13325
|
*/
|
|
13303
13326
|
async open() {
|
|
13327
|
+
var _a;
|
|
13304
13328
|
this.isOpen = true;
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13329
|
+
sendAnalytics({
|
|
13330
|
+
category: 'ui-component',
|
|
13331
|
+
parentContext: null,
|
|
13332
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13333
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
13334
|
+
action: 'opened'
|
|
13335
|
+
});
|
|
13311
13336
|
}
|
|
13312
13337
|
/**
|
|
13313
13338
|
* Closes the modal.
|
|
13314
13339
|
*/
|
|
13315
13340
|
async close() {
|
|
13341
|
+
var _a;
|
|
13316
13342
|
this.isOpen = false;
|
|
13317
|
-
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13322
|
-
|
|
13343
|
+
sendAnalytics({
|
|
13344
|
+
category: 'ui-component',
|
|
13345
|
+
parentContext: null,
|
|
13346
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13347
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
13348
|
+
action: 'closed'
|
|
13349
|
+
});
|
|
13323
13350
|
}
|
|
13324
13351
|
/**
|
|
13325
13352
|
* Toggles the modal open or closed.
|
|
@@ -13328,35 +13355,19 @@ class EdsModal {
|
|
|
13328
13355
|
this.isOpen = !this.isOpen;
|
|
13329
13356
|
}
|
|
13330
13357
|
/**
|
|
13331
|
-
*
|
|
13332
|
-
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
13358
|
+
* Closes the modal when the Escape key is pressed.
|
|
13333
13359
|
*/
|
|
13334
|
-
|
|
13335
|
-
|
|
13336
|
-
|
|
13337
|
-
|
|
13338
|
-
this.emitContext(btn);
|
|
13339
|
-
});
|
|
13340
|
-
}
|
|
13341
|
-
/**
|
|
13342
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
13343
|
-
* This event provides context information about the eds-modal component.
|
|
13344
|
-
*
|
|
13345
|
-
* @param btnElement - The link element to which the event will be dispatched.
|
|
13346
|
-
*/
|
|
13347
|
-
emitContext(btnElement) {
|
|
13348
|
-
const event = new CustomEvent('parentContext', {
|
|
13349
|
-
detail: {
|
|
13350
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
13351
|
-
identifier: null
|
|
13352
|
-
}
|
|
13353
|
-
});
|
|
13354
|
-
btnElement.dispatchEvent(event);
|
|
13360
|
+
handleKeyDown(event) {
|
|
13361
|
+
if (this.isOpen && event.key === 'Escape') {
|
|
13362
|
+
this.close();
|
|
13363
|
+
}
|
|
13355
13364
|
}
|
|
13356
13365
|
render() {
|
|
13357
|
-
|
|
13366
|
+
// Generate a unique id for the title so we can reference it for aria-labelledby.
|
|
13367
|
+
const titleId = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
13368
|
+
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
|
|
13358
13369
|
,
|
|
13359
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
13370
|
+
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' })))));
|
|
13360
13371
|
}
|
|
13361
13372
|
get el() { return getElement(this); }
|
|
13362
13373
|
static get style() { return EdsModalStyle0; }
|
|
@@ -13367,12 +13378,13 @@ class EdsModal {
|
|
|
13367
13378
|
"title": [1],
|
|
13368
13379
|
"truncate": [4],
|
|
13369
13380
|
"truncateLines": [1, "truncate-lines"],
|
|
13381
|
+
"position": [1],
|
|
13370
13382
|
"isOpen": [32],
|
|
13371
13383
|
"open": [64],
|
|
13372
13384
|
"close": [64],
|
|
13373
13385
|
"toggle": [64]
|
|
13374
13386
|
},
|
|
13375
|
-
"$listeners$":
|
|
13387
|
+
"$listeners$": [[8, "keydown", "handleKeyDown"]],
|
|
13376
13388
|
"$lazyBundleId$": "-",
|
|
13377
13389
|
"$attrsToReflect$": []
|
|
13378
13390
|
}; }
|
|
@@ -13412,7 +13424,7 @@ class EdsNavigator {
|
|
|
13412
13424
|
linkElement.dispatchEvent(event);
|
|
13413
13425
|
}
|
|
13414
13426
|
render() {
|
|
13415
|
-
return (hAsync("ul", { key: '
|
|
13427
|
+
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" })))));
|
|
13416
13428
|
}
|
|
13417
13429
|
get el() { return getElement(this); }
|
|
13418
13430
|
static get cmpMeta() { return {
|
|
@@ -13469,14 +13481,18 @@ class EdsPagination {
|
|
|
13469
13481
|
componentDidLoad() {
|
|
13470
13482
|
// Emit context for each eds-link element after the component is fully loaded
|
|
13471
13483
|
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13484
|
+
links.forEach((lnk) => {
|
|
13485
|
+
this.emitContext(lnk);
|
|
13486
|
+
});
|
|
13487
|
+
/*if (links.length > 0) {
|
|
13488
|
+
// Emit context for the first link
|
|
13489
|
+
this.emitContext(links[0]);
|
|
13490
|
+
|
|
13491
|
+
// Emit context for the last link, if it's different from the first
|
|
13492
|
+
if (links.length > 1) {
|
|
13493
|
+
this.emitContext(links[links.length - 1]);
|
|
13494
|
+
}
|
|
13495
|
+
}*/
|
|
13480
13496
|
}
|
|
13481
13497
|
/**
|
|
13482
13498
|
* Emits a custom event called `parentContext` for a given link element.
|
|
@@ -13606,7 +13622,7 @@ class EdsPagination {
|
|
|
13606
13622
|
}
|
|
13607
13623
|
}
|
|
13608
13624
|
render() {
|
|
13609
|
-
return (hAsync("div", { key: '
|
|
13625
|
+
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'
|
|
13610
13626
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
13611
13627
|
: this.isFirstPage()
|
|
13612
13628
|
? '#'
|
|
@@ -13684,7 +13700,7 @@ class EdsProgressBar {
|
|
|
13684
13700
|
}
|
|
13685
13701
|
render() {
|
|
13686
13702
|
const progressValue = this.value;
|
|
13687
|
-
return (hAsync("div", { key: '
|
|
13703
|
+
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, "%")));
|
|
13688
13704
|
}
|
|
13689
13705
|
static get style() { return EdsProgressBarStyle0; }
|
|
13690
13706
|
static get cmpMeta() { return {
|
|
@@ -13700,7 +13716,7 @@ class EdsProgressBar {
|
|
|
13700
13716
|
}; }
|
|
13701
13717
|
}
|
|
13702
13718
|
|
|
13703
|
-
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}";
|
|
13719
|
+
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}";
|
|
13704
13720
|
var EdsRatingStyle0 = edsRatingCss;
|
|
13705
13721
|
|
|
13706
13722
|
class EdsRating {
|
|
@@ -13713,10 +13729,7 @@ class EdsRating {
|
|
|
13713
13729
|
this.selectedRating = 0;
|
|
13714
13730
|
}
|
|
13715
13731
|
/**
|
|
13716
|
-
* Parses the `
|
|
13717
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
13718
|
-
*
|
|
13719
|
-
* @returns {any[]} Array of parsed link objects
|
|
13732
|
+
* Parses the `textMapping` prop into an array of strings.
|
|
13720
13733
|
*/
|
|
13721
13734
|
get parsedMappings() {
|
|
13722
13735
|
if (typeof this.textMapping === 'object') {
|
|
@@ -13727,8 +13740,7 @@ class EdsRating {
|
|
|
13727
13740
|
return JSON.parse(this.textMapping);
|
|
13728
13741
|
}
|
|
13729
13742
|
catch (e) {
|
|
13730
|
-
//
|
|
13731
|
-
console.error('Error parsing links prop:', e);
|
|
13743
|
+
//console.error('Error parsing textMapping prop:', e);
|
|
13732
13744
|
return [];
|
|
13733
13745
|
}
|
|
13734
13746
|
}
|
|
@@ -13743,10 +13755,14 @@ class EdsRating {
|
|
|
13743
13755
|
this.ratingChange.emit(rating);
|
|
13744
13756
|
}
|
|
13745
13757
|
render() {
|
|
13746
|
-
return (hAsync("div", { key: '
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13758
|
+
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) => {
|
|
13759
|
+
const starRating = index + 1;
|
|
13760
|
+
const isSelected = starRating <= this.selectedRating;
|
|
13761
|
+
// Use the mapping text if available; otherwise, fall back to a generic label.
|
|
13762
|
+
const mappingText = this.parsedMappings[starRating - 1] || `Rating ${starRating}`;
|
|
13763
|
+
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
|
|
13764
|
+
}));
|
|
13765
|
+
})), 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]))));
|
|
13750
13766
|
}
|
|
13751
13767
|
static get style() { return EdsRatingStyle0; }
|
|
13752
13768
|
static get cmpMeta() { return {
|
|
@@ -13755,7 +13771,7 @@ class EdsRating {
|
|
|
13755
13771
|
"$members$": {
|
|
13756
13772
|
"stars": [2],
|
|
13757
13773
|
"label": [1],
|
|
13758
|
-
"textMapping": [
|
|
13774
|
+
"textMapping": [1, "text-mapping"],
|
|
13759
13775
|
"selectedRating": [32]
|
|
13760
13776
|
},
|
|
13761
13777
|
"$listeners$": undefined,
|
|
@@ -13786,7 +13802,7 @@ class EdsSectionCore {
|
|
|
13786
13802
|
}
|
|
13787
13803
|
render() {
|
|
13788
13804
|
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
13789
|
-
return (hAsync(TagType, { key: '
|
|
13805
|
+
return (hAsync(TagType, { key: 'e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac' }, hAsync("eds-section-heading", { key: '379c6bc644612d3e0865ce2acd8eacb4d67c7769', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), hAsync("slot", { key: '5828a28c2c8ac65fbc56652f733f148a0d0198b7' })));
|
|
13790
13806
|
}
|
|
13791
13807
|
static get style() { return EdsSectionCoreStyle0; }
|
|
13792
13808
|
static get cmpMeta() { return {
|
|
@@ -13838,12 +13854,12 @@ class EdsSectionHeading {
|
|
|
13838
13854
|
render() {
|
|
13839
13855
|
const TagType = this.tag; // Dynamically set tag type for the container
|
|
13840
13856
|
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
13841
|
-
return (hAsync(TagType, { key: '
|
|
13857
|
+
return (hAsync(TagType, { key: 'c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb', class: {
|
|
13842
13858
|
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20': true,
|
|
13843
13859
|
container: this.withContainer,
|
|
13844
13860
|
'pt-48': this.spacingLarge,
|
|
13845
13861
|
'pt-28': !this.spacingLarge
|
|
13846
|
-
} }, hAsync(HeadingTag, { key: '
|
|
13862
|
+
} }, hAsync(HeadingTag, { key: 'e65e13820553eefa5aec8bc9740e5e9da828ac92', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
13847
13863
|
}
|
|
13848
13864
|
static get cmpMeta() { return {
|
|
13849
13865
|
"$flags$": 0,
|
|
@@ -13919,7 +13935,7 @@ class EdsSocialNetworks {
|
|
|
13919
13935
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
13920
13936
|
*/
|
|
13921
13937
|
render() {
|
|
13922
|
-
return (hAsync("div", { key: '
|
|
13938
|
+
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" })))))));
|
|
13923
13939
|
}
|
|
13924
13940
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13925
13941
|
static get cmpMeta() { return {
|
|
@@ -13934,6 +13950,76 @@ class EdsSocialNetworks {
|
|
|
13934
13950
|
}; }
|
|
13935
13951
|
}
|
|
13936
13952
|
|
|
13953
|
+
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}";
|
|
13954
|
+
var EdsStepsStyle0 = edsStepsCss;
|
|
13955
|
+
|
|
13956
|
+
class EdsSteps {
|
|
13957
|
+
constructor(hostRef) {
|
|
13958
|
+
registerInstance(this, hostRef);
|
|
13959
|
+
this.stepClick = createEvent(this, "stepClick", 7);
|
|
13960
|
+
this.handleNext = () => {
|
|
13961
|
+
if (this.activeStep < this.parsedSteps.length) {
|
|
13962
|
+
this.activeStep = this.activeStep + 1;
|
|
13963
|
+
}
|
|
13964
|
+
};
|
|
13965
|
+
this.handleBack = () => {
|
|
13966
|
+
if (this.activeStep > 0) {
|
|
13967
|
+
this.activeStep = this.activeStep - 1;
|
|
13968
|
+
}
|
|
13969
|
+
};
|
|
13970
|
+
this.handleReset = () => {
|
|
13971
|
+
this.activeStep = 0;
|
|
13972
|
+
};
|
|
13973
|
+
this.steps = [];
|
|
13974
|
+
this.type = 'static';
|
|
13975
|
+
this.activeStep = 0;
|
|
13976
|
+
}
|
|
13977
|
+
handleStepClick(index) {
|
|
13978
|
+
this.stepClick.emit(index);
|
|
13979
|
+
// In linear mode, update the active step on header click.
|
|
13980
|
+
if (this.type === 'linear') {
|
|
13981
|
+
this.activeStep = index;
|
|
13982
|
+
}
|
|
13983
|
+
}
|
|
13984
|
+
/**
|
|
13985
|
+
* Parse the JSON string into an array of steps.
|
|
13986
|
+
*/
|
|
13987
|
+
get parsedSteps() {
|
|
13988
|
+
if (typeof this.steps === 'string') {
|
|
13989
|
+
try {
|
|
13990
|
+
const stepsStr = this.steps;
|
|
13991
|
+
return JSON.parse(stepsStr);
|
|
13992
|
+
}
|
|
13993
|
+
catch (error) {
|
|
13994
|
+
//console.error('Invalid steps JSON', error);
|
|
13995
|
+
return [];
|
|
13996
|
+
}
|
|
13997
|
+
}
|
|
13998
|
+
return this.steps;
|
|
13999
|
+
}
|
|
14000
|
+
render() {
|
|
14001
|
+
const steps = this.parsedSteps;
|
|
14002
|
+
if (this.type === 'linear') {
|
|
14003
|
+
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" })))));
|
|
14004
|
+
}
|
|
14005
|
+
// Static mode: show all steps with their content, no navigation buttons.
|
|
14006
|
+
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)))))));
|
|
14007
|
+
}
|
|
14008
|
+
static get style() { return EdsStepsStyle0; }
|
|
14009
|
+
static get cmpMeta() { return {
|
|
14010
|
+
"$flags$": 0,
|
|
14011
|
+
"$tagName$": "eds-steps",
|
|
14012
|
+
"$members$": {
|
|
14013
|
+
"steps": [1],
|
|
14014
|
+
"type": [1],
|
|
14015
|
+
"activeStep": [32]
|
|
14016
|
+
},
|
|
14017
|
+
"$listeners$": undefined,
|
|
14018
|
+
"$lazyBundleId$": "-",
|
|
14019
|
+
"$attrsToReflect$": []
|
|
14020
|
+
}; }
|
|
14021
|
+
}
|
|
14022
|
+
|
|
13937
14023
|
/**
|
|
13938
14024
|
* @internal
|
|
13939
14025
|
*/
|
|
@@ -13962,7 +14048,7 @@ class EdsSvgRepository {
|
|
|
13962
14048
|
icon: { format: 'svg' },
|
|
13963
14049
|
name: { format: 'bold' }
|
|
13964
14050
|
};
|
|
13965
|
-
return (hAsync("eds-table", { key: '
|
|
14051
|
+
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 }));
|
|
13966
14052
|
}
|
|
13967
14053
|
get hostEl() { return getElement(this); }
|
|
13968
14054
|
static get cmpMeta() { return {
|
|
@@ -13975,6 +14061,50 @@ class EdsSvgRepository {
|
|
|
13975
14061
|
}; }
|
|
13976
14062
|
}
|
|
13977
14063
|
|
|
14064
|
+
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)}";
|
|
14065
|
+
var EdsSwitchStyle0 = edsSwitchCss;
|
|
14066
|
+
|
|
14067
|
+
class EdsSwitch {
|
|
14068
|
+
constructor(hostRef) {
|
|
14069
|
+
registerInstance(this, hostRef);
|
|
14070
|
+
this.change = createEvent(this, "change", 7);
|
|
14071
|
+
this.toggleSwitch = () => {
|
|
14072
|
+
if (this.disabled) {
|
|
14073
|
+
return;
|
|
14074
|
+
}
|
|
14075
|
+
this.checked = !this.checked;
|
|
14076
|
+
this.change.emit(this.checked);
|
|
14077
|
+
};
|
|
14078
|
+
this.checked = false;
|
|
14079
|
+
this.disabled = false;
|
|
14080
|
+
this.labelOn = '';
|
|
14081
|
+
this.labelOff = '';
|
|
14082
|
+
}
|
|
14083
|
+
render() {
|
|
14084
|
+
// Compute an accessible name based on state.
|
|
14085
|
+
const accessibleLabel = this.labelOn || this.labelOff ? (this.checked ? this.labelOn : this.labelOff) : 'Toggle switch';
|
|
14086
|
+
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: {
|
|
14087
|
+
switch: true,
|
|
14088
|
+
'switch--checked': this.checked,
|
|
14089
|
+
'switch--disabled': this.disabled
|
|
14090
|
+
}, 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)));
|
|
14091
|
+
}
|
|
14092
|
+
static get style() { return EdsSwitchStyle0; }
|
|
14093
|
+
static get cmpMeta() { return {
|
|
14094
|
+
"$flags$": 9,
|
|
14095
|
+
"$tagName$": "eds-switch",
|
|
14096
|
+
"$members$": {
|
|
14097
|
+
"checked": [1540],
|
|
14098
|
+
"disabled": [4],
|
|
14099
|
+
"labelOn": [1, "label-on"],
|
|
14100
|
+
"labelOff": [1, "label-off"]
|
|
14101
|
+
},
|
|
14102
|
+
"$listeners$": undefined,
|
|
14103
|
+
"$lazyBundleId$": "-",
|
|
14104
|
+
"$attrsToReflect$": [["checked", "checked"]]
|
|
14105
|
+
}; }
|
|
14106
|
+
}
|
|
14107
|
+
|
|
13978
14108
|
/**
|
|
13979
14109
|
* @internal
|
|
13980
14110
|
*/
|
|
@@ -14006,7 +14136,7 @@ class EdsTab {
|
|
|
14006
14136
|
this.ariaLabel = undefined;
|
|
14007
14137
|
}
|
|
14008
14138
|
render() {
|
|
14009
|
-
return (hAsync("a", { key: '
|
|
14139
|
+
return (hAsync("a", { key: 'a55be2a07e554ab13a0d7e913710382d6126da57', "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label));
|
|
14010
14140
|
}
|
|
14011
14141
|
static get cmpMeta() { return {
|
|
14012
14142
|
"$flags$": 0,
|
|
@@ -14126,10 +14256,24 @@ class EdsTable {
|
|
|
14126
14256
|
}
|
|
14127
14257
|
handlePageChange(newPage) {
|
|
14128
14258
|
this.currentPage = newPage;
|
|
14259
|
+
sendAnalytics({
|
|
14260
|
+
category: 'ui-component',
|
|
14261
|
+
parentContext: null,
|
|
14262
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
14263
|
+
name: `${newPage}` || '',
|
|
14264
|
+
action: 'page'
|
|
14265
|
+
});
|
|
14129
14266
|
}
|
|
14130
14267
|
handleSearch(event) {
|
|
14131
14268
|
this.searchQuery = event.target.value;
|
|
14132
14269
|
this.currentPage = 1;
|
|
14270
|
+
/*sendAnalytics({
|
|
14271
|
+
category: 'ui-component',
|
|
14272
|
+
parentContext: null,
|
|
14273
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
14274
|
+
name: `${this.searchQuery}` || '',
|
|
14275
|
+
action: 'page'
|
|
14276
|
+
});*/
|
|
14133
14277
|
}
|
|
14134
14278
|
renderCell(value, column) {
|
|
14135
14279
|
var _a;
|
|
@@ -14169,18 +14313,16 @@ class EdsTable {
|
|
|
14169
14313
|
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
14170
14314
|
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
14171
14315
|
: 400;
|
|
14172
|
-
//console.log('containerWidth:', containerWidth);
|
|
14173
14316
|
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14174
|
-
|
|
14175
|
-
return (hAsync("div", { key: '178a33c07e6eae9d5edc170f842b6ef29ae21d9c' }, this.searchEnabled && (hAsync("div", { key: 'f1212a4e515a1db218df28b71367c6ffa42e3063' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
14317
|
+
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...",
|
|
14176
14318
|
// @ts-ignore
|
|
14177
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '
|
|
14319
|
+
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) => {
|
|
14178
14320
|
var _a;
|
|
14179
|
-
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));
|
|
14180
|
-
}))), hAsync("tbody", { key: '
|
|
14321
|
+
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));
|
|
14322
|
+
}))), 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) => {
|
|
14181
14323
|
var _a;
|
|
14182
|
-
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)));
|
|
14183
|
-
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '
|
|
14324
|
+
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)));
|
|
14325
|
+
}))))))), 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" })))));
|
|
14184
14326
|
}
|
|
14185
14327
|
get hostEl() { return getElement(this); }
|
|
14186
14328
|
static get watchers() { return {
|
|
@@ -14344,7 +14486,7 @@ class EdsTabs {
|
|
|
14344
14486
|
});
|
|
14345
14487
|
}
|
|
14346
14488
|
render() {
|
|
14347
|
-
return (hAsync("div", { key: '
|
|
14489
|
+
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) => {
|
|
14348
14490
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14349
14491
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14350
14492
|
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) })));
|
|
@@ -14486,11 +14628,11 @@ class EdsTabsContent {
|
|
|
14486
14628
|
});
|
|
14487
14629
|
}
|
|
14488
14630
|
render() {
|
|
14489
|
-
return (hAsync("div", { key: '
|
|
14631
|
+
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) => {
|
|
14490
14632
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14491
14633
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14492
14634
|
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) })));
|
|
14493
|
-
})), hAsync("slot", { key: '
|
|
14635
|
+
})), hAsync("slot", { key: 'e5da088cec99dd0e40560b70fbd9940ac5a7f56f' }))));
|
|
14494
14636
|
}
|
|
14495
14637
|
get el() { return getElement(this); }
|
|
14496
14638
|
static get watchers() { return {
|
|
@@ -14545,6 +14687,7 @@ class EdsTag {
|
|
|
14545
14687
|
constructor(hostRef) {
|
|
14546
14688
|
registerInstance(this, hostRef);
|
|
14547
14689
|
this.label = undefined;
|
|
14690
|
+
this.ariaLabel = '';
|
|
14548
14691
|
this.intent = 'default';
|
|
14549
14692
|
}
|
|
14550
14693
|
/**
|
|
@@ -14552,8 +14695,10 @@ class EdsTag {
|
|
|
14552
14695
|
* @returns The rendered HTML for the tag component with the applied styles and label.
|
|
14553
14696
|
*/
|
|
14554
14697
|
render() {
|
|
14698
|
+
var _a;
|
|
14555
14699
|
const classes = tagStyles({ intent: this.intent });
|
|
14556
|
-
|
|
14700
|
+
const accessibleLabel = ((_a = this.ariaLabel) === null || _a === void 0 ? void 0 : _a.length) ? this.ariaLabel : this.label;
|
|
14701
|
+
return (hAsync("span", { key: '6a517f42aeb641c95d96ecd6c3090a317a3195c6', class: classes, "aria-label": accessibleLabel }, this.label));
|
|
14557
14702
|
}
|
|
14558
14703
|
static get style() { return EdsTagStyle0; }
|
|
14559
14704
|
static get cmpMeta() { return {
|
|
@@ -14561,6 +14706,7 @@ class EdsTag {
|
|
|
14561
14706
|
"$tagName$": "eds-tag",
|
|
14562
14707
|
"$members$": {
|
|
14563
14708
|
"label": [1],
|
|
14709
|
+
"ariaLabel": [1, "aria-label"],
|
|
14564
14710
|
"intent": [1]
|
|
14565
14711
|
},
|
|
14566
14712
|
"$listeners$": undefined,
|
|
@@ -14584,7 +14730,8 @@ class EdsTimeline {
|
|
|
14584
14730
|
parsed = JSON.parse(newValue);
|
|
14585
14731
|
}
|
|
14586
14732
|
catch (e) {
|
|
14587
|
-
|
|
14733
|
+
// eslint-disable-next-line
|
|
14734
|
+
console.error('Error parsing timeline events JSON', e);
|
|
14588
14735
|
parsed = [];
|
|
14589
14736
|
}
|
|
14590
14737
|
}
|
|
@@ -14626,7 +14773,7 @@ class EdsTimeline {
|
|
|
14626
14773
|
}
|
|
14627
14774
|
}
|
|
14628
14775
|
render() {
|
|
14629
|
-
return (hAsync("div", { key: '
|
|
14776
|
+
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
|
|
14630
14777
|
? [{ label: 'completed', style: 'accent' }]
|
|
14631
14778
|
: [{ 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
|
|
14632
14779
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14677,6 +14824,27 @@ class EdsToast {
|
|
|
14677
14824
|
this.duration = 5000;
|
|
14678
14825
|
this.visible = true;
|
|
14679
14826
|
}
|
|
14827
|
+
/**
|
|
14828
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
14829
|
+
* to recalculate height on window resize.
|
|
14830
|
+
*/
|
|
14831
|
+
componentDidLoad() {
|
|
14832
|
+
// Emit context for each eds-button element after the component is fully loaded
|
|
14833
|
+
const btn = this.el.querySelector('eds-button');
|
|
14834
|
+
this.emitContext(btn);
|
|
14835
|
+
}
|
|
14836
|
+
/**
|
|
14837
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
14838
|
+
*/
|
|
14839
|
+
emitContext(linkElement) {
|
|
14840
|
+
const event = new CustomEvent('parentContext', {
|
|
14841
|
+
detail: {
|
|
14842
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
14843
|
+
identifier: null
|
|
14844
|
+
}
|
|
14845
|
+
});
|
|
14846
|
+
linkElement.dispatchEvent(event);
|
|
14847
|
+
}
|
|
14680
14848
|
connectedCallback() {
|
|
14681
14849
|
// Auto-dismiss the toast after the specified duration
|
|
14682
14850
|
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
@@ -14690,7 +14858,7 @@ class EdsToast {
|
|
|
14690
14858
|
return null;
|
|
14691
14859
|
}
|
|
14692
14860
|
const classes = toastStyles({ intent: this.intent });
|
|
14693
|
-
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" }))));
|
|
14861
|
+
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" }))));
|
|
14694
14862
|
}
|
|
14695
14863
|
get el() { return getElement(this); }
|
|
14696
14864
|
static get cmpMeta() { return {
|
|
@@ -14740,7 +14908,7 @@ class EdsToastManager {
|
|
|
14740
14908
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14741
14909
|
}
|
|
14742
14910
|
render() {
|
|
14743
|
-
return (hAsync("div", { key: '
|
|
14911
|
+
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) }))))));
|
|
14744
14912
|
}
|
|
14745
14913
|
get hostElement() { return getElement(this); }
|
|
14746
14914
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14775,9 +14943,17 @@ class EdsTooltip {
|
|
|
14775
14943
|
* Show the tooltip and update its position.
|
|
14776
14944
|
*/
|
|
14777
14945
|
async showTooltip() {
|
|
14946
|
+
var _a;
|
|
14778
14947
|
await this.updateTooltipPosition();
|
|
14779
14948
|
this.isPositioned = true;
|
|
14780
14949
|
this.isVisible = true;
|
|
14950
|
+
sendAnalytics({
|
|
14951
|
+
category: 'ui-component',
|
|
14952
|
+
parentContext: null,
|
|
14953
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14954
|
+
name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
14955
|
+
action: 'hover'
|
|
14956
|
+
});
|
|
14781
14957
|
}
|
|
14782
14958
|
/**
|
|
14783
14959
|
* Hide the tooltip.
|
|
@@ -14842,7 +15018,7 @@ class EdsTooltip {
|
|
|
14842
15018
|
}
|
|
14843
15019
|
}
|
|
14844
15020
|
render() {
|
|
14845
|
-
return (hAsync("div", { key: '
|
|
15021
|
+
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: {
|
|
14846
15022
|
top: this.tooltipStyle.top,
|
|
14847
15023
|
left: this.tooltipStyle.left,
|
|
14848
15024
|
transform: this.tooltipStyle.transform
|
|
@@ -14882,8 +15058,8 @@ class EdsTrl {
|
|
|
14882
15058
|
apps = JSON.parse(this.applications || '[]');
|
|
14883
15059
|
}
|
|
14884
15060
|
catch (error) {
|
|
14885
|
-
//
|
|
14886
|
-
|
|
15061
|
+
// eslint-disable-next-line
|
|
15062
|
+
console.error('Invalid applications trl JSON', error);
|
|
14887
15063
|
apps = [];
|
|
14888
15064
|
}
|
|
14889
15065
|
}
|
|
@@ -14899,18 +15075,17 @@ class EdsTrl {
|
|
|
14899
15075
|
}
|
|
14900
15076
|
render() {
|
|
14901
15077
|
const apps = this.getParsedApplications();
|
|
14902
|
-
console.log('apps:', apps);
|
|
14903
15078
|
// Map applications into table-friendly data.
|
|
14904
|
-
const tableData = apps.map(app => ({
|
|
15079
|
+
const tableData = apps.map((app) => ({
|
|
14905
15080
|
Application: app.name,
|
|
14906
|
-
|
|
15081
|
+
'Current TRL Stage': `TRL ${app.currentTrl}`,
|
|
14907
15082
|
Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
14908
15083
|
}));
|
|
14909
15084
|
const tableConfig = {
|
|
14910
|
-
|
|
14911
|
-
|
|
15085
|
+
Application: { format: 'code' },
|
|
15086
|
+
'Current TRL Stage': { format: 'text' }
|
|
14912
15087
|
};
|
|
14913
|
-
return (hAsync("div", { key: '
|
|
15088
|
+
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" })));
|
|
14914
15089
|
}
|
|
14915
15090
|
static get cmpMeta() { return {
|
|
14916
15091
|
"$flags$": 0,
|
|
@@ -14942,15 +15117,25 @@ class EdsUser {
|
|
|
14942
15117
|
*/
|
|
14943
15118
|
this.handleLogin = () => {
|
|
14944
15119
|
if (!this.authenticated) {
|
|
14945
|
-
|
|
15120
|
+
try {
|
|
15121
|
+
login();
|
|
15122
|
+
}
|
|
15123
|
+
catch (error) {
|
|
15124
|
+
toast.show(error.message, 'error');
|
|
15125
|
+
}
|
|
14946
15126
|
}
|
|
14947
15127
|
};
|
|
14948
15128
|
/**
|
|
14949
15129
|
* Handles user logout by invoking the Keycloak `logout` function.
|
|
14950
15130
|
* Resets the `authenticated` state to `false` after logout.
|
|
14951
15131
|
*/
|
|
14952
|
-
this.handleLogout = () => {
|
|
14953
|
-
|
|
15132
|
+
this.handleLogout = async () => {
|
|
15133
|
+
try {
|
|
15134
|
+
await logout();
|
|
15135
|
+
}
|
|
15136
|
+
catch (error) {
|
|
15137
|
+
toast.show(error.message, 'error');
|
|
15138
|
+
}
|
|
14954
15139
|
this.authenticated = false;
|
|
14955
15140
|
this.user = null;
|
|
14956
15141
|
};
|
|
@@ -14959,8 +15144,8 @@ class EdsUser {
|
|
|
14959
15144
|
this.keycloakClientId = undefined;
|
|
14960
15145
|
this.user = null;
|
|
14961
15146
|
this.authenticated = false;
|
|
14962
|
-
this.serverAvailable = false;
|
|
14963
15147
|
this.username = '';
|
|
15148
|
+
this.serverAvailable = false;
|
|
14964
15149
|
}
|
|
14965
15150
|
/**
|
|
14966
15151
|
* Lifecycle method that runs when the component is about to load.
|
|
@@ -14975,7 +15160,7 @@ class EdsUser {
|
|
|
14975
15160
|
}
|
|
14976
15161
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
14977
15162
|
if (!this.serverAvailable) {
|
|
14978
|
-
|
|
15163
|
+
toast.show('Keycloak server is unavailable.', 'error');
|
|
14979
15164
|
return; // Do not proceed further
|
|
14980
15165
|
}
|
|
14981
15166
|
await this.initAuth();
|
|
@@ -14987,35 +15172,27 @@ class EdsUser {
|
|
|
14987
15172
|
*/
|
|
14988
15173
|
async initAuth() {
|
|
14989
15174
|
try {
|
|
14990
|
-
|
|
15175
|
+
await initKeycloak({
|
|
14991
15176
|
url: this.keycloakUrl,
|
|
14992
15177
|
realm: this.keycloakRealm,
|
|
14993
15178
|
clientId: this.keycloakClientId
|
|
14994
|
-
};
|
|
14995
|
-
await initKeycloak(keycloakConfig, true);
|
|
14996
|
-
// Set authentication state and fetch user data if authenticated
|
|
14997
|
-
//this.authenticated = isAuthenticated();
|
|
15179
|
+
}, true);
|
|
14998
15180
|
if (isAuthenticated()) {
|
|
14999
15181
|
this.user = getUser();
|
|
15000
15182
|
this.authenticated = true;
|
|
15183
|
+
this.authStatusChanged.emit({
|
|
15184
|
+
authenticated: this.authenticated,
|
|
15185
|
+
user: this.user
|
|
15186
|
+
}); // Emit auth status change
|
|
15001
15187
|
}
|
|
15002
|
-
this.authStatusChanged.emit({
|
|
15003
|
-
authenticated: this.authenticated,
|
|
15004
|
-
user: this.user
|
|
15005
|
-
}); // Emit auth status change
|
|
15006
15188
|
}
|
|
15007
15189
|
catch (error) {
|
|
15008
|
-
|
|
15009
|
-
console.error('Keycloak initialization failed:', error);
|
|
15190
|
+
toast.show(error.message, 'error');
|
|
15010
15191
|
}
|
|
15011
15192
|
}
|
|
15012
15193
|
render() {
|
|
15013
15194
|
var _a;
|
|
15014
|
-
|
|
15015
|
-
if (!this.serverAvailable) {
|
|
15016
|
-
return null;
|
|
15017
|
-
}
|
|
15018
|
-
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) }))))));
|
|
15195
|
+
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) }))))));
|
|
15019
15196
|
}
|
|
15020
15197
|
get hostEl() { return getElement(this); }
|
|
15021
15198
|
static get cmpMeta() { return {
|
|
@@ -15027,8 +15204,8 @@ class EdsUser {
|
|
|
15027
15204
|
"keycloakClientId": [1, "keycloak-client-id"],
|
|
15028
15205
|
"user": [32],
|
|
15029
15206
|
"authenticated": [32],
|
|
15030
|
-
"
|
|
15031
|
-
"
|
|
15207
|
+
"username": [32],
|
|
15208
|
+
"serverAvailable": [32]
|
|
15032
15209
|
},
|
|
15033
15210
|
"$listeners$": undefined,
|
|
15034
15211
|
"$lazyBundleId$": "-",
|
|
@@ -15068,7 +15245,7 @@ class EdsUserModal {
|
|
|
15068
15245
|
}
|
|
15069
15246
|
render() {
|
|
15070
15247
|
var _a, _b, _c, _d, _e;
|
|
15071
|
-
return (hAsync("div", { key: '
|
|
15248
|
+
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() })))));
|
|
15072
15249
|
}
|
|
15073
15250
|
static get watchers() { return {
|
|
15074
15251
|
"user": ["parseUserProp"],
|
|
@@ -15090,6 +15267,55 @@ class EdsUserModal {
|
|
|
15090
15267
|
}; }
|
|
15091
15268
|
}
|
|
15092
15269
|
|
|
15270
|
+
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}";
|
|
15271
|
+
var EdsVerticalStepperStyle0 = edsVerticalStepperCss;
|
|
15272
|
+
|
|
15273
|
+
class EdsVerticalStepper {
|
|
15274
|
+
constructor(hostRef) {
|
|
15275
|
+
registerInstance(this, hostRef);
|
|
15276
|
+
this.handleNext = () => {
|
|
15277
|
+
if (this.activeStep < this.parsedSteps.length) {
|
|
15278
|
+
this.activeStep = this.activeStep + 1;
|
|
15279
|
+
}
|
|
15280
|
+
};
|
|
15281
|
+
this.handleBack = () => {
|
|
15282
|
+
if (this.activeStep > 0) {
|
|
15283
|
+
this.activeStep = this.activeStep - 1;
|
|
15284
|
+
}
|
|
15285
|
+
};
|
|
15286
|
+
this.handleReset = () => {
|
|
15287
|
+
this.activeStep = 0;
|
|
15288
|
+
};
|
|
15289
|
+
this.steps = '[]';
|
|
15290
|
+
this.activeStep = 0;
|
|
15291
|
+
}
|
|
15292
|
+
get parsedSteps() {
|
|
15293
|
+
try {
|
|
15294
|
+
return JSON.parse(this.steps);
|
|
15295
|
+
}
|
|
15296
|
+
catch (error) {
|
|
15297
|
+
//console.error('Invalid steps JSON', error);
|
|
15298
|
+
return [];
|
|
15299
|
+
}
|
|
15300
|
+
}
|
|
15301
|
+
render() {
|
|
15302
|
+
const steps = this.parsedSteps;
|
|
15303
|
+
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" })))));
|
|
15304
|
+
}
|
|
15305
|
+
static get style() { return EdsVerticalStepperStyle0; }
|
|
15306
|
+
static get cmpMeta() { return {
|
|
15307
|
+
"$flags$": 9,
|
|
15308
|
+
"$tagName$": "eds-vertical-stepper",
|
|
15309
|
+
"$members$": {
|
|
15310
|
+
"steps": [1],
|
|
15311
|
+
"activeStep": [32]
|
|
15312
|
+
},
|
|
15313
|
+
"$listeners$": undefined,
|
|
15314
|
+
"$lazyBundleId$": "-",
|
|
15315
|
+
"$attrsToReflect$": []
|
|
15316
|
+
}; }
|
|
15317
|
+
}
|
|
15318
|
+
|
|
15093
15319
|
/**
|
|
15094
15320
|
* @internal
|
|
15095
15321
|
*/
|
|
@@ -15125,7 +15351,7 @@ class GradientPrimaryPalette {
|
|
|
15125
15351
|
];
|
|
15126
15352
|
}
|
|
15127
15353
|
render() {
|
|
15128
|
-
return (hAsync("ul", { key: '
|
|
15354
|
+
return (hAsync("ul", { key: '783eb92c379de99659e65e7cb02a1f0ca9df8758', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
15129
15355
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
15130
15356
|
} }, 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))))))));
|
|
15131
15357
|
}
|
|
@@ -15198,19 +15424,19 @@ class GradientSecondaryPalette {
|
|
|
15198
15424
|
];
|
|
15199
15425
|
}
|
|
15200
15426
|
render() {
|
|
15201
|
-
return (hAsync("div", { key: '
|
|
15427
|
+
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: {
|
|
15202
15428
|
background: this.colors[0].background
|
|
15203
|
-
} }, hAsync("div", { key: '
|
|
15429
|
+
} }, 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: {
|
|
15204
15430
|
background: this.colors[1].background
|
|
15205
|
-
} }, hAsync("div", { key: '
|
|
15431
|
+
} }, 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: {
|
|
15206
15432
|
background: this.colors[2].background
|
|
15207
|
-
} }, hAsync("div", { key: '
|
|
15433
|
+
} }, 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: {
|
|
15208
15434
|
background: this.colors[3].background
|
|
15209
|
-
} }, hAsync("div", { key: '
|
|
15435
|
+
} }, 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: {
|
|
15210
15436
|
background: this.colors[4].background
|
|
15211
|
-
} }, hAsync("div", { key: '
|
|
15437
|
+
} }, 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: {
|
|
15212
15438
|
background: this.colors[5].background
|
|
15213
|
-
} }, hAsync("div", { key: '
|
|
15439
|
+
} }, 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)))))));
|
|
15214
15440
|
}
|
|
15215
15441
|
static get cmpMeta() { return {
|
|
15216
15442
|
"$flags$": 0,
|
|
@@ -15273,11 +15499,11 @@ class GradientSupportPalette {
|
|
|
15273
15499
|
];
|
|
15274
15500
|
}
|
|
15275
15501
|
render() {
|
|
15276
|
-
return (hAsync("ul", { key: '
|
|
15502
|
+
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: {
|
|
15277
15503
|
background: this.colors[2].background
|
|
15278
|
-
} }, hAsync("div", { key: '
|
|
15504
|
+
} }, 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: {
|
|
15279
15505
|
background: this.colors[3].background
|
|
15280
|
-
} }, hAsync("div", { key: '
|
|
15506
|
+
} }, 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'))))));
|
|
15281
15507
|
}
|
|
15282
15508
|
static get cmpMeta() { return {
|
|
15283
15509
|
"$flags$": 0,
|
|
@@ -15331,7 +15557,7 @@ class IncorrectUseOfColors {
|
|
|
15331
15557
|
registerInstance(this, hostRef);
|
|
15332
15558
|
}
|
|
15333
15559
|
render() {
|
|
15334
|
-
return (hAsync("div", { key: '
|
|
15560
|
+
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 } })))))))));
|
|
15335
15561
|
}
|
|
15336
15562
|
static get cmpMeta() { return {
|
|
15337
15563
|
"$flags$": 0,
|
|
@@ -15354,7 +15580,7 @@ class LogoSpace {
|
|
|
15354
15580
|
registerInstance(this, hostRef);
|
|
15355
15581
|
}
|
|
15356
15582
|
render() {
|
|
15357
|
-
return (hAsync("div", { key: '
|
|
15583
|
+
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 })))));
|
|
15358
15584
|
}
|
|
15359
15585
|
static get style() { return LogoSpaceStyle0; }
|
|
15360
15586
|
static get cmpMeta() { return {
|
|
@@ -15378,7 +15604,7 @@ class LogoVariationsHorizontal {
|
|
|
15378
15604
|
registerInstance(this, hostRef);
|
|
15379
15605
|
}
|
|
15380
15606
|
render() {
|
|
15381
|
-
return (hAsync("div", { key: '
|
|
15607
|
+
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: "#" })))));
|
|
15382
15608
|
}
|
|
15383
15609
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15384
15610
|
static get cmpMeta() { return {
|
|
@@ -15404,7 +15630,7 @@ class LogoVariationsVertical {
|
|
|
15404
15630
|
this.type = undefined;
|
|
15405
15631
|
}
|
|
15406
15632
|
render() {
|
|
15407
|
-
return (hAsync("div", { key: '
|
|
15633
|
+
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: "#" })))));
|
|
15408
15634
|
}
|
|
15409
15635
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15410
15636
|
static get cmpMeta() { return {
|
|
@@ -15431,7 +15657,7 @@ class LogoWrongUsage {
|
|
|
15431
15657
|
registerInstance(this, hostRef);
|
|
15432
15658
|
}
|
|
15433
15659
|
render() {
|
|
15434
|
-
return (hAsync("ul", { key: '
|
|
15660
|
+
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")))));
|
|
15435
15661
|
}
|
|
15436
15662
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15437
15663
|
static get cmpMeta() { return {
|
|
@@ -15687,7 +15913,7 @@ class TokenList {
|
|
|
15687
15913
|
render() {
|
|
15688
15914
|
// Check if `show` prop is provided; if not, display all sections
|
|
15689
15915
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15690
|
-
return (hAsync("section", { key: '
|
|
15916
|
+
return (hAsync("section", { key: '43d7e8b3192d4a2d596ca99a4dce072ea7387924', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15691
15917
|
// Only render sections that exist in `colors`
|
|
15692
15918
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15693
15919
|
}
|
|
@@ -15720,7 +15946,7 @@ class TokenRadii {
|
|
|
15720
15946
|
registerInstance(this, hostRef);
|
|
15721
15947
|
}
|
|
15722
15948
|
render() {
|
|
15723
|
-
return (hAsync("section", { key: '
|
|
15949
|
+
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" }))))))));
|
|
15724
15950
|
}
|
|
15725
15951
|
static get cmpMeta() { return {
|
|
15726
15952
|
"$flags$": 0,
|
|
@@ -15749,7 +15975,7 @@ class TokenRatios {
|
|
|
15749
15975
|
registerInstance(this, hostRef);
|
|
15750
15976
|
}
|
|
15751
15977
|
render() {
|
|
15752
|
-
return (hAsync("section", { key: '
|
|
15978
|
+
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: {
|
|
15753
15979
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15754
15980
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15755
15981
|
maxWidth: '300px'
|
|
@@ -15791,7 +16017,7 @@ class TokenShadows {
|
|
|
15791
16017
|
registerInstance(this, hostRef);
|
|
15792
16018
|
}
|
|
15793
16019
|
render() {
|
|
15794
|
-
return (hAsync("section", { key: '
|
|
16020
|
+
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]" })))))))));
|
|
15795
16021
|
}
|
|
15796
16022
|
static get cmpMeta() { return {
|
|
15797
16023
|
"$flags$": 0,
|
|
@@ -15811,7 +16037,7 @@ class TokenSpacing {
|
|
|
15811
16037
|
registerInstance(this, hostRef);
|
|
15812
16038
|
}
|
|
15813
16039
|
render() {
|
|
15814
|
-
return (hAsync("div", { key: '
|
|
16040
|
+
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")))))));
|
|
15815
16041
|
}
|
|
15816
16042
|
static get cmpMeta() { return {
|
|
15817
16043
|
"$flags$": 0,
|
|
@@ -16029,7 +16255,7 @@ class TokenTypography {
|
|
|
16029
16255
|
registerInstance(this, hostRef);
|
|
16030
16256
|
}
|
|
16031
16257
|
render() {
|
|
16032
|
-
return (hAsync("section", { key: '
|
|
16258
|
+
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)
|
|
16033
16259
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
16034
16260
|
.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: {
|
|
16035
16261
|
fontFamily: typography.families.sans,
|
|
@@ -16130,7 +16356,9 @@ registerComponents([
|
|
|
16130
16356
|
EdsSectionCore,
|
|
16131
16357
|
EdsSectionHeading,
|
|
16132
16358
|
EdsSocialNetworks,
|
|
16359
|
+
EdsSteps,
|
|
16133
16360
|
EdsSvgRepository,
|
|
16361
|
+
EdsSwitch,
|
|
16134
16362
|
EdsTab,
|
|
16135
16363
|
EdsTable,
|
|
16136
16364
|
EdsTabs,
|
|
@@ -16143,6 +16371,7 @@ registerComponents([
|
|
|
16143
16371
|
EdsTrl,
|
|
16144
16372
|
EdsUser,
|
|
16145
16373
|
EdsUserModal,
|
|
16374
|
+
EdsVerticalStepper,
|
|
16146
16375
|
GradientPrimaryPalette,
|
|
16147
16376
|
GradientSecondaryPalette,
|
|
16148
16377
|
GradientSupportPalette,
|