@ebrains/components 0.0.1-alpha.0 → 0.3.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/{color-ac51ccf7.js → color-3ffe3072.js} +6 -6
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +15 -15
- package/dist/cjs/components.cjs.js +3 -30
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/eds-accordion.cjs.entry.js +5 -4
- package/dist/cjs/eds-alert.cjs.entry.js +10 -9
- package/dist/cjs/{eds-accordion_23.cjs.entry.js → eds-avatar_17.cjs.entry.js} +353 -785
- package/dist/cjs/eds-card-desc_3.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-generic.cjs.entry.js +18 -6
- package/dist/cjs/eds-card-project.cjs.entry.js +5 -5
- package/dist/cjs/eds-card-section.cjs.entry.js +20 -8
- package/dist/cjs/eds-card-tags.cjs.entry.js +3 -2
- package/dist/cjs/eds-card-tool.cjs.entry.js +6 -5
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +4 -34
- package/dist/cjs/eds-components-section.cjs.entry.js +45 -25
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +2 -2
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +2 -2
- package/dist/cjs/eds-form.cjs.entry.js +96 -23
- package/dist/cjs/eds-frame.cjs.entry.js +1 -1
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-close.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-copy.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-eu.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-loader.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-menu.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-more.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-search.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-success.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-user.cjs.entry.js +3 -3
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +3 -3
- package/dist/cjs/{eds-input-field.cjs.entry.js → eds-input_7.cjs.entry.js} +249 -5
- package/dist/cjs/eds-login.cjs.entry.js +3 -3
- package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +7 -6
- package/dist/cjs/eds-modal.cjs.entry.js +45 -5
- package/dist/cjs/eds-navigator.cjs.entry.js +1 -1
- package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +160 -2
- package/dist/cjs/eds-progress-bar.cjs.entry.js +3 -2
- package/dist/cjs/eds-rating.cjs.entry.js +3 -2
- package/dist/cjs/eds-section-core_2.cjs.entry.js +1 -1
- package/dist/cjs/eds-svg-repository.cjs.entry.js +298 -4
- package/dist/cjs/eds-tab.cjs.entry.js +2 -2
- package/dist/cjs/eds-tabs-content.cjs.entry.js +6 -6
- package/dist/cjs/eds-tabs.cjs.entry.js +32 -10
- package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
- package/dist/cjs/eds-tooltip.cjs.entry.js +4 -3
- package/dist/cjs/eds-trl.cjs.entry.js +52 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +2 -2
- package/dist/cjs/{index-2cc3495f.js → index-f08e4f5c.js} +54 -37
- package/dist/cjs/{loader-5efe2c21.js → loader-72f9d178.js} +2 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/logo-space.cjs.entry.js +5 -4
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +6 -5
- package/dist/cjs/token-list_3.cjs.entry.js +4 -4
- package/dist/cjs/token-ratios.cjs.entry.js +2 -2
- package/dist/cjs/token-spacing.cjs.entry.js +2 -2
- package/dist/cjs/token-typography.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/eds-accordion/eds-accordion.js +2 -2
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
- package/dist/collection/components/eds-button/eds-button.js +3 -3
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +21 -1
- package/dist/collection/components/eds-form/eds-form.css +10 -0
- package/dist/collection/components/eds-form/eds-form.js +111 -20
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
- package/dist/collection/components/eds-input-field/eds-input-field.css +16 -6
- package/dist/collection/components/eds-input-field/eds-input-field.js +2 -2
- package/dist/collection/components/eds-modal/eds-modal.css +8 -0
- package/dist/collection/components/eds-modal/eds-modal.js +42 -2
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +69 -11
- package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
- package/dist/collection/components/eds-timeline/eds-timeline.js +99 -0
- package/dist/collection/components/eds-timeline/eds-timeline.stories.js +35 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +1 -1
- package/dist/collection/components/eds-trl/eds-trl.js +69 -0
- 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 -5
- 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 +3 -6
- 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 +44 -0
- package/dist/collection/eds-docs-ui/eds-svg-repository/eds-svg-repository.js +7 -1
- package/dist/collection/eds-docs-ui/functional/angular.js +1 -1
- package/dist/collection/eds-docs-ui/functional/installation.js +1 -1
- package/dist/collection/eds-docs-ui/functional/overview.js +1 -1
- package/dist/collection/eds-docs-ui/functional/react.js +1 -1
- package/dist/collection/eds-docs-ui/functional/vue.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +1 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +21 -1
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +2 -54
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +4 -13
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +4 -0
- 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 +19 -8
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +1 -1
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +4 -3
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +77 -0
- package/dist/collection/shared-ui/eds-header/eds-header.js +10 -6
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +16 -10
- package/dist/collection/shared-ui/eds-login/eds-login.js +3 -2
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +4 -4
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +21 -0
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +29 -8
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +22 -4
- package/dist/collection/shared-ui/eds-tabs-content/eds-tabs-content.js +2 -2
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +48 -34
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +1 -1
- package/dist/collection/shared-ui/eds-user/eds-user.js +12 -6
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.js +1 -11
- package/dist/components/analytics.js +6 -6
- package/dist/components/components.css +38 -0
- package/dist/components/components.esm.js +1 -47
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +4 -3
- package/dist/components/eds-alert2.js +3 -2
- package/dist/components/eds-avatar2.js +3 -2
- package/dist/components/eds-block-break2.js +2 -1
- package/dist/components/eds-breadcrumb.js +15 -13
- package/dist/components/eds-button2.js +6 -4
- package/dist/components/eds-card-desc2.js +2 -1
- package/dist/components/eds-card-generic2.js +17 -4
- package/dist/components/eds-card-project.js +2 -1
- package/dist/components/eds-card-section.js +19 -7
- package/dist/components/eds-card-tags.js +2 -1
- package/dist/components/eds-card-title2.js +2 -1
- package/dist/components/eds-card-tool.js +4 -2
- package/dist/components/eds-code-block2.js +3 -33
- package/dist/components/eds-components-section.js +44 -24
- package/dist/components/eds-docs-palettes.js +1 -1
- package/dist/components/eds-docs-tokens.js +1 -1
- package/dist/components/eds-dropdown2.js +2 -1
- package/dist/components/eds-footer2.js +3 -2
- package/dist/components/eds-form.js +97 -22
- package/dist/components/eds-fullscreen-menu.js +2 -1
- package/dist/components/eds-header.js +9 -4
- 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 +2 -1
- package/dist/components/eds-input-field2.js +5 -4
- package/dist/components/eds-input-select2.js +70 -2
- package/dist/components/eds-link2.js +5 -3
- package/dist/components/eds-login.js +3 -2
- package/dist/components/eds-logo-variations.d.ts +11 -0
- package/dist/components/eds-logo-variations.js +60 -0
- package/dist/components/eds-logo2.js +6 -3
- package/dist/components/eds-matomo-notice.js +4 -2
- package/dist/components/eds-modal.js +44 -4
- package/dist/components/eds-pagination2.js +2 -1
- package/dist/components/eds-progress-bar.js +1 -40
- package/dist/components/{eds-progress-bar.entry.js → eds-progress-bar2.js} +26 -7
- package/dist/components/eds-rating.js +2 -1
- package/dist/components/eds-section-core2.js +2 -1
- package/dist/components/eds-social-networks.js +2 -2
- package/dist/components/eds-social-networks2.js +7 -6
- package/dist/components/eds-svg-repository.js +296 -2
- package/dist/components/eds-tab2.js +1 -1
- package/dist/components/eds-table2.js +38 -15
- package/dist/components/eds-tabs-content.js +5 -4
- package/dist/components/eds-tabs.js +31 -8
- package/dist/components/eds-tag2.js +3 -2
- package/dist/components/eds-timeline.d.ts +11 -0
- package/dist/components/eds-timeline.js +131 -0
- package/dist/components/eds-toast-manager.js +3 -2
- package/dist/components/eds-toast2.js +1 -1
- package/dist/components/eds-tooltip.js +3 -2
- package/dist/components/eds-trl.d.ts +11 -0
- package/dist/components/eds-trl.js +139 -0
- package/dist/components/eds-user-modal2.js +1 -4
- package/dist/components/eds-user2.js +12 -6
- package/dist/components/incorrect-use-of-colors.js +20 -2
- package/dist/components/index.esm.js +0 -1
- package/dist/components/index2.js +44 -399
- package/dist/components/keycloak.js +0 -10
- package/dist/components/loader.js +2 -5
- package/dist/components/logo-space.js +4 -3
- package/dist/components/logo-variations-horizontal.js +2 -49
- package/dist/components/logo-variations-horizontal2.js +37 -0
- package/dist/components/logo-variations-vertical.js +2 -49
- package/dist/components/logo-variations-vertical2.js +42 -0
- package/dist/components/logo-wrong-usage.js +5 -4
- package/dist/components/{p-9c05e349.entry.js → p-005de86f.entry.js} +1 -1
- package/dist/components/{p-877403df.entry.js → p-02e2a62f.entry.js} +1 -1
- package/dist/components/{p-3dbf2ac9.entry.js → p-0910d733.entry.js} +1 -1
- package/dist/components/{p-6bc00fad.entry.js → p-0c2e844e.entry.js} +1 -1
- package/dist/components/{p-378d371f.entry.js → p-145f13ad.entry.js} +1 -1
- package/dist/components/{p-0a195bfe.entry.js → p-16458a81.entry.js} +1 -1
- package/dist/components/p-2117611b.js +1 -0
- package/dist/components/{p-513bf756.entry.js → p-22762818.entry.js} +1 -1
- package/dist/components/{p-94b74ae8.entry.js → p-22e6d7d5.entry.js} +1 -1
- package/dist/components/p-22f9e720.js +1 -0
- package/dist/components/p-2851ff44.entry.js +1 -0
- package/dist/components/p-29648b47.entry.js +1 -0
- package/dist/components/p-297b2bc3.entry.js +1 -0
- package/dist/components/{p-4541cb5f.entry.js → p-2e8459ef.entry.js} +1 -1
- package/dist/components/p-32cddd94.entry.js +1 -0
- package/dist/components/{p-0611bbac.entry.js → p-32f282a9.entry.js} +1 -1
- package/dist/components/p-3617841d.entry.js +1 -0
- package/dist/components/p-373673ca.js +1 -0
- package/dist/components/{p-677f60bc.entry.js → p-388b4966.entry.js} +1 -1
- package/dist/components/p-3ff76976.entry.js +1 -0
- package/dist/components/{p-ff6b25a1.entry.js → p-4037ad48.entry.js} +1 -1
- package/dist/components/{p-c16b3c0c.entry.js → p-42b4ecff.entry.js} +1 -1
- package/dist/components/{p-fa1276cc.entry.js → p-435a14c1.entry.js} +1 -1
- package/dist/components/p-490ba155.entry.js +1 -0
- package/dist/components/p-4932aab2.entry.js +1 -0
- package/dist/components/p-4a24c2ce.entry.js +1 -0
- package/dist/components/p-52ac3456.entry.js +1 -0
- package/dist/components/{p-b544f216.entry.js → p-54c75346.entry.js} +1 -1
- package/dist/components/{p-11a4ef34.entry.js → p-57c964c5.entry.js} +1 -1
- package/dist/components/p-5a43503a.entry.js +1 -0
- package/dist/components/p-5aad9d3f.entry.js +1 -0
- package/dist/components/p-5afb626c.entry.js +1 -0
- package/dist/components/p-5d7af761.entry.js +1 -0
- package/dist/components/{p-2728a189.entry.js → p-5fc68438.entry.js} +1 -1
- package/dist/components/p-6378fb3e.entry.js +1 -0
- package/dist/components/p-673dce11.entry.js +1 -0
- package/dist/components/{p-c0afe524.entry.js → p-6fc62452.entry.js} +1 -1
- package/dist/components/p-7215789a.entry.js +1 -0
- package/dist/components/{p-36c0f3ee.entry.js → p-73bd0c97.entry.js} +1 -1
- package/dist/components/p-762c8c83.entry.js +1 -0
- package/dist/components/p-7802e966.entry.js +1 -0
- package/dist/components/p-79887c2c.entry.js +1 -0
- package/dist/components/{p-e9a1fb1e.js → p-7a8b9de5.js} +2 -2
- package/dist/components/p-846fc91c.entry.js +1 -0
- package/dist/components/p-84957b6d.entry.js +1 -0
- package/dist/components/{p-e69ff916.entry.js → p-87830085.entry.js} +1 -1
- package/dist/components/p-8c56e39a.entry.js +1 -0
- package/dist/components/p-96c4deda.entry.js +1 -0
- package/dist/components/p-a44a1abe.entry.js +1 -0
- package/dist/components/p-a4e9b68b.entry.js +1 -0
- package/dist/components/p-ac0112d5.entry.js +1 -0
- package/dist/components/p-acb16e1c.entry.js +1 -0
- package/dist/components/p-ae5dbd41.entry.js +1 -0
- package/dist/components/{p-6cb8c52d.entry.js → p-bdd86a3c.entry.js} +1 -1
- package/dist/components/{p-22ee5374.entry.js → p-be6c80da.entry.js} +1 -1
- package/dist/components/p-bf0f851d.entry.js +1 -0
- package/dist/components/{p-82453a66.entry.js → p-c2d369bc.entry.js} +1 -1
- package/dist/components/p-d1670eec.entry.js +1 -0
- package/dist/components/p-d1f6a722.entry.js +1 -0
- package/dist/components/p-d53b7a75.entry.js +1 -0
- package/dist/components/{p-c11d93cf.entry.js → p-d571d530.entry.js} +1 -1
- package/dist/components/{p-bad2a33a.entry.js → p-d6d86366.entry.js} +1 -1
- package/dist/components/p-d7a92efb.entry.js +1 -0
- package/dist/components/p-d9788b54.entry.js +1 -0
- package/dist/components/{p-606d8f86.entry.js → p-e20ed2c7.entry.js} +1 -1
- package/dist/components/{p-200ad980.entry.js → p-e6bfbf51.entry.js} +1 -1
- package/dist/components/{p-ddd005a3.entry.js → p-e74834bc.entry.js} +1 -1
- package/dist/components/{p-b94318f2.entry.js → p-f7a6ce69.entry.js} +1 -1
- package/dist/components/p-fd27e56c.entry.js +1 -0
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/{color-49aa977d.js → color-0ba8ed56.js} +6 -6
- package/dist/esm/color-primary-palette_6.entry.js +15 -15
- package/dist/esm/components.js +4 -31
- package/dist/esm/correct-use-of-colors.entry.js +2 -2
- package/dist/esm/eds-accordion.entry.js +5 -4
- package/dist/esm/eds-alert.entry.js +4 -3
- package/dist/esm/{eds-accordion_23.entry.js → eds-avatar_17.entry.js} +348 -774
- package/dist/esm/eds-card-desc_3.entry.js +1 -1
- package/dist/esm/eds-card-generic.entry.js +17 -5
- package/dist/esm/eds-card-project.entry.js +3 -3
- package/dist/esm/eds-card-section.entry.js +20 -8
- package/dist/esm/eds-card-tags.entry.js +3 -2
- package/dist/esm/eds-card-tool.entry.js +5 -4
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +4 -34
- package/dist/esm/eds-components-section.entry.js +45 -25
- package/dist/esm/eds-docs-palettes.entry.js +2 -2
- package/dist/esm/eds-docs-tokens.entry.js +2 -2
- package/dist/esm/eds-form.entry.js +96 -23
- package/dist/esm/eds-frame.entry.js +1 -1
- package/dist/esm/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/esm/eds-icon-arrow-right.entry.js +2 -2
- package/dist/esm/eds-icon-bluesky.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-down.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-left.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-right.entry.js +2 -2
- package/dist/esm/eds-icon-chevron-up.entry.js +2 -2
- package/dist/esm/eds-icon-close.entry.js +2 -2
- package/dist/esm/eds-icon-copy.entry.js +2 -2
- package/dist/esm/eds-icon-eu.entry.js +2 -2
- package/dist/esm/eds-icon-facebook.entry.js +2 -2
- package/dist/esm/eds-icon-gitlab.entry.js +2 -2
- package/dist/esm/eds-icon-linkedin.entry.js +2 -2
- package/dist/esm/eds-icon-loader.entry.js +2 -2
- package/dist/esm/eds-icon-mastodon.entry.js +2 -2
- package/dist/esm/eds-icon-menu.entry.js +2 -2
- package/dist/esm/eds-icon-more.entry.js +2 -2
- package/dist/esm/eds-icon-search.entry.js +2 -2
- package/dist/esm/eds-icon-success.entry.js +2 -2
- package/dist/esm/eds-icon-twitter.entry.js +2 -2
- package/dist/esm/eds-icon-user.entry.js +2 -2
- package/dist/esm/eds-icon-youtube.entry.js +2 -2
- package/dist/{components/eds-input-field.entry.js → esm/eds-input_7.entry.js} +244 -6
- package/dist/esm/eds-login.entry.js +3 -3
- package/dist/esm/eds-logo-variations.entry.js +23 -0
- package/dist/esm/eds-matomo-notice.entry.js +6 -5
- package/dist/esm/eds-modal.entry.js +45 -5
- package/dist/esm/eds-navigator.entry.js +1 -1
- package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +160 -3
- package/dist/esm/eds-progress-bar.entry.js +3 -2
- package/dist/esm/eds-rating.entry.js +3 -2
- package/dist/esm/eds-section-core_2.entry.js +1 -1
- package/dist/esm/eds-svg-repository.entry.js +297 -3
- package/dist/esm/eds-tab.entry.js +2 -2
- package/dist/esm/eds-tabs-content.entry.js +5 -5
- package/dist/esm/eds-tabs.entry.js +31 -9
- package/dist/esm/eds-timeline.entry.js +72 -0
- package/dist/esm/eds-tooltip.entry.js +4 -3
- package/dist/esm/eds-trl.entry.js +48 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +2 -2
- package/dist/esm/{index-f1426055.js → index-e96badea.js} +54 -37
- package/dist/esm/{loader-66341740.js → loader-c9628637.js} +2 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/logo-space.entry.js +5 -4
- package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
- package/dist/esm/logo-wrong-usage.entry.js +6 -5
- package/dist/esm/token-list_3.entry.js +4 -4
- package/dist/esm/token-ratios.entry.js +2 -2
- package/dist/esm/token-spacing.entry.js +2 -2
- package/dist/esm/token-typography.entry.js +2 -2
- package/dist/hydrate/index.js +671 -223
- package/dist/hydrate/index.mjs +671 -223
- package/dist/stencil.config.js +4 -3
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +2 -2
- package/dist/types/components/eds-breadcrump/eds-breadcrump.d.ts +1 -5
- package/dist/types/components/eds-button/eds-button.d.ts +2 -2
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +2 -0
- package/dist/types/components/eds-form/eds-form.d.ts +8 -0
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
- package/dist/types/components/eds-modal/eds-modal.d.ts +16 -0
- package/dist/types/components/eds-table/eds-table.d.ts +9 -1
- package/dist/types/components/eds-table/eds-table.stories.d.ts +6 -67
- package/dist/types/components/eds-timeline/eds-timeline.d.ts +26 -0
- package/dist/types/components/eds-timeline/eds-timeline.stories.d.ts +24 -0
- package/dist/types/components/eds-trl/eds-trl.d.ts +12 -0
- package/dist/types/components.d.ts +255 -32
- package/dist/types/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.d.ts +0 -4
- package/dist/types/eds-docs-ui/eds-logo-variations/eds-logo-variations.d.ts +9 -0
- package/dist/types/eds-docs-ui/eds-svg-repository/eds-svg-repository.d.ts +2 -0
- package/dist/types/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.d.ts +1 -7
- package/dist/types/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.d.ts +1 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.d.ts +6 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.d.ts +8 -2
- package/dist/types/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.d.ts +29 -0
- package/dist/types/shared-ui/eds-header/eds-header.d.ts +7 -1
- package/dist/types/shared-ui/eds-header/eds-header.stories.d.ts +9 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.d.ts +1 -1
- package/dist/types/shared-ui/eds-social-networks/eds-social-networks.stories.d.ts +13 -0
- package/dist/types/shared-ui/eds-tabs/eds-tabs.d.ts +18 -1
- package/dist/types/shared-ui/eds-user/eds-user.d.ts +1 -2
- package/package.json +3 -3
- package/dist/cjs/color-primary-palette.cjs.entry.js +0 -43
- package/dist/cjs/color-secondary-palette.cjs.entry.js +0 -68
- package/dist/cjs/color-support-palette.cjs.entry.js +0 -59
- package/dist/cjs/eds-avatar.cjs.entry.js +0 -73
- package/dist/cjs/eds-block-break.cjs.entry.js +0 -20
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -152
- package/dist/cjs/eds-button.cjs.entry.js +0 -233
- package/dist/cjs/eds-card-desc.cjs.entry.js +0 -26
- package/dist/cjs/eds-card-title.cjs.entry.js +0 -56
- package/dist/cjs/eds-dropdown.cjs.entry.js +0 -129
- package/dist/cjs/eds-footer.cjs.entry.js +0 -49
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -99
- package/dist/cjs/eds-header.cjs.entry.js +0 -96
- package/dist/cjs/eds-icon-wrapper.cjs.entry.js +0 -40
- package/dist/cjs/eds-img.cjs.entry.js +0 -57
- package/dist/cjs/eds-input-footer.cjs.entry.js +0 -21
- package/dist/cjs/eds-input-label.cjs.entry.js +0 -20
- package/dist/cjs/eds-input-range.cjs.entry.js +0 -39
- package/dist/cjs/eds-input-search.cjs.entry.js +0 -41
- package/dist/cjs/eds-input-select.cjs.entry.js +0 -30
- package/dist/cjs/eds-input.cjs.entry.js +0 -68
- package/dist/cjs/eds-link.cjs.entry.js +0 -211
- package/dist/cjs/eds-logo.cjs.entry.js +0 -76
- package/dist/cjs/eds-section-core.cjs.entry.js +0 -23
- package/dist/cjs/eds-section-heading.cjs.entry.js +0 -41
- package/dist/cjs/eds-social-networks.cjs.entry.js +0 -65
- package/dist/cjs/eds-table.cjs.entry.js +0 -142
- package/dist/cjs/eds-tag.cjs.entry.js +0 -44
- package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -45
- package/dist/cjs/eds-toast.cjs.entry.js +0 -53
- package/dist/cjs/eds-user-modal.cjs.entry.js +0 -47
- package/dist/cjs/eds-user.cjs.entry.js +0 -90
- package/dist/cjs/gradient-primary-palette.cjs.entry.js +0 -45
- package/dist/cjs/gradient-secondary-palette.cjs.entry.js +0 -79
- package/dist/cjs/gradient-support-palette.cjs.entry.js +0 -63
- package/dist/cjs/index-1ff5f25c.js +0 -48
- package/dist/cjs/index-383d2951.js +0 -3449
- package/dist/cjs/index-96a4261e.js +0 -405
- package/dist/cjs/index-f62478aa.js +0 -1837
- package/dist/cjs/keycloak-940b83c1.js +0 -1910
- package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -30
- package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -30
- package/dist/cjs/shadow-css-988e4292.js +0 -334
- package/dist/cjs/token-list.cjs.entry.js +0 -253
- package/dist/cjs/token-radii.cjs.entry.js +0 -25
- package/dist/cjs/token-shadows.cjs.entry.js +0 -34
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
- package/dist/components/app-globals-0f993ce5.js +0 -3
- package/dist/components/color-primary-palette.entry.js +0 -39
- package/dist/components/color-secondary-palette.entry.js +0 -64
- package/dist/components/color-support-palette.entry.js +0 -55
- package/dist/components/correct-use-of-colors.entry.js +0 -64
- package/dist/components/eds-accordion.entry.js +0 -88
- package/dist/components/eds-alert.entry.js +0 -91
- package/dist/components/eds-avatar.entry.js +0 -69
- package/dist/components/eds-block-break.entry.js +0 -16
- package/dist/components/eds-breadcrumb.entry.js +0 -148
- package/dist/components/eds-button.entry.js +0 -229
- package/dist/components/eds-card-desc.entry.js +0 -22
- package/dist/components/eds-card-generic.entry.js +0 -89
- package/dist/components/eds-card-project.entry.js +0 -63
- package/dist/components/eds-card-section.entry.js +0 -39
- package/dist/components/eds-card-tags.entry.js +0 -17
- package/dist/components/eds-card-title.entry.js +0 -52
- package/dist/components/eds-card-tool.entry.js +0 -75
- package/dist/components/eds-card-wrapper.entry.js +0 -28
- package/dist/components/eds-code-block.entry.js +0 -2468
- package/dist/components/eds-components-section.entry.js +0 -92
- package/dist/components/eds-docs-palettes.entry.js +0 -23
- package/dist/components/eds-docs-tokens.entry.js +0 -31
- package/dist/components/eds-dropdown.entry.js +0 -125
- package/dist/components/eds-footer.entry.js +0 -45
- package/dist/components/eds-form.entry.js +0 -245
- package/dist/components/eds-frame.entry.js +0 -87
- package/dist/components/eds-fullscreen-menu.entry.js +0 -95
- package/dist/components/eds-header.entry.js +0 -92
- package/dist/components/eds-icon-arrow-diagonal.entry.js +0 -14
- package/dist/components/eds-icon-arrow-right.entry.js +0 -14
- package/dist/components/eds-icon-bluesky.entry.js +0 -14
- package/dist/components/eds-icon-chevron-down.entry.js +0 -14
- package/dist/components/eds-icon-chevron-left.entry.js +0 -14
- package/dist/components/eds-icon-chevron-right.entry.js +0 -14
- package/dist/components/eds-icon-chevron-up.entry.js +0 -14
- package/dist/components/eds-icon-close.entry.js +0 -14
- package/dist/components/eds-icon-copy.entry.js +0 -14
- package/dist/components/eds-icon-eu.entry.js +0 -14
- package/dist/components/eds-icon-facebook.entry.js +0 -14
- package/dist/components/eds-icon-gitlab.entry.js +0 -14
- package/dist/components/eds-icon-linkedin.entry.js +0 -14
- package/dist/components/eds-icon-loader.entry.js +0 -14
- package/dist/components/eds-icon-mastodon.entry.js +0 -14
- package/dist/components/eds-icon-menu.entry.js +0 -14
- package/dist/components/eds-icon-more.entry.js +0 -14
- package/dist/components/eds-icon-search.entry.js +0 -14
- package/dist/components/eds-icon-success.entry.js +0 -14
- package/dist/components/eds-icon-twitter.entry.js +0 -14
- package/dist/components/eds-icon-user.entry.js +0 -14
- package/dist/components/eds-icon-wrapper.entry.js +0 -36
- package/dist/components/eds-icon-youtube.entry.js +0 -14
- package/dist/components/eds-img.entry.js +0 -53
- package/dist/components/eds-input-footer.entry.js +0 -17
- package/dist/components/eds-input-label.entry.js +0 -16
- package/dist/components/eds-input-range.entry.js +0 -35
- package/dist/components/eds-input-search.entry.js +0 -37
- package/dist/components/eds-input-select.entry.js +0 -26
- package/dist/components/eds-input.entry.js +0 -64
- package/dist/components/eds-link.entry.js +0 -207
- package/dist/components/eds-login.entry.js +0 -68
- package/dist/components/eds-logo.entry.js +0 -72
- package/dist/components/eds-matomo-notice.entry.js +0 -105
- package/dist/components/eds-modal.entry.js +0 -42
- package/dist/components/eds-navigator.entry.js +0 -39
- package/dist/components/eds-pagination.entry.js +0 -207
- package/dist/components/eds-rating.entry.js +0 -53
- package/dist/components/eds-section-core.entry.js +0 -19
- package/dist/components/eds-section-heading.entry.js +0 -37
- package/dist/components/eds-social-networks.entry.js +0 -61
- package/dist/components/eds-svg-repository.entry.js +0 -28
- package/dist/components/eds-tab.entry.js +0 -36
- package/dist/components/eds-table.entry.js +0 -138
- package/dist/components/eds-tabs-content.entry.js +0 -129
- package/dist/components/eds-tabs.entry.js +0 -118
- package/dist/components/eds-tag.entry.js +0 -40
- package/dist/components/eds-toast-manager.entry.js +0 -41
- package/dist/components/eds-toast.entry.js +0 -49
- package/dist/components/eds-tooltip.entry.js +0 -95
- package/dist/components/eds-user-modal.entry.js +0 -43
- package/dist/components/eds-user.entry.js +0 -86
- package/dist/components/gradient-primary-palette.entry.js +0 -41
- package/dist/components/gradient-secondary-palette.entry.js +0 -75
- package/dist/components/gradient-support-palette.entry.js +0 -59
- package/dist/components/incorrect-use-of-colors.entry.js +0 -46
- package/dist/components/index-144c9ae8.js +0 -46
- package/dist/components/index-360dc790.js +0 -401
- package/dist/components/index-a9afa43f.js +0 -1802
- package/dist/components/index-b384416e.js +0 -3023
- package/dist/components/index3.js +0 -46
- package/dist/components/index4.js +0 -1802
- package/dist/components/keycloak-b647d452.js +0 -1903
- package/dist/components/logo-space.entry.js +0 -16
- package/dist/components/logo-variations-horizontal.entry.js +0 -26
- package/dist/components/logo-variations-vertical.entry.js +0 -26
- package/dist/components/logo-wrong-usage.entry.js +0 -16
- package/dist/components/p-0a6262b7.entry.js +0 -1
- package/dist/components/p-145d8e4d.entry.js +0 -1
- package/dist/components/p-1a1b8e28.entry.js +0 -1
- package/dist/components/p-1d94d663.entry.js +0 -1
- package/dist/components/p-219d9f68.entry.js +0 -1
- package/dist/components/p-25eb1801.entry.js +0 -1
- package/dist/components/p-2b14f03a.entry.js +0 -1
- package/dist/components/p-3048bdec.entry.js +0 -1
- package/dist/components/p-42dfb426.entry.js +0 -1
- package/dist/components/p-49a5eef5.entry.js +0 -1
- package/dist/components/p-52a487ee.entry.js +0 -1
- package/dist/components/p-55444767.entry.js +0 -1
- package/dist/components/p-5b900a2c.entry.js +0 -1
- package/dist/components/p-5edc806a.entry.js +0 -1
- package/dist/components/p-64d4a6e0.entry.js +0 -1
- package/dist/components/p-6f601454.entry.js +0 -1
- package/dist/components/p-763cbe2f.entry.js +0 -1
- package/dist/components/p-77a81dfa.entry.js +0 -1
- package/dist/components/p-7a2b35b4.entry.js +0 -1
- package/dist/components/p-81d2a9be.entry.js +0 -1
- package/dist/components/p-8c1be2b6.entry.js +0 -1
- package/dist/components/p-923e4d23.entry.js +0 -1
- package/dist/components/p-9c74a5dd.entry.js +0 -1
- package/dist/components/p-abcdf35f.js +0 -1
- package/dist/components/p-ac083317.entry.js +0 -1
- package/dist/components/p-ad79cc3c.entry.js +0 -1
- package/dist/components/p-b4055691.entry.js +0 -1
- package/dist/components/p-bfd2fdf1.entry.js +0 -1
- package/dist/components/p-c3c61db1.entry.js +0 -1
- package/dist/components/p-caf2af08.entry.js +0 -1
- package/dist/components/p-d80de13e.entry.js +0 -1
- package/dist/components/p-e04097a2.entry.js +0 -1
- package/dist/components/p-e2e715a2.entry.js +0 -1
- package/dist/components/p-e639818b.entry.js +0 -1
- package/dist/components/p-e80f4f24.js +0 -1
- package/dist/components/p-ec95188c.entry.js +0 -1
- package/dist/components/p-f04946a5.entry.js +0 -1
- package/dist/components/shadow-css-423dab2c.js +0 -332
- package/dist/components/token-list.entry.js +0 -249
- package/dist/components/token-radii.entry.js +0 -21
- package/dist/components/token-ratios.entry.js +0 -25
- package/dist/components/token-shadows.entry.js +0 -30
- package/dist/components/token-spacing.entry.js +0 -12
- package/dist/components/token-typography.entry.js +0 -226
- package/dist/esm/color-primary-palette.entry.js +0 -39
- package/dist/esm/color-secondary-palette.entry.js +0 -64
- package/dist/esm/color-support-palette.entry.js +0 -55
- package/dist/esm/eds-avatar.entry.js +0 -69
- package/dist/esm/eds-block-break.entry.js +0 -16
- package/dist/esm/eds-breadcrumb.entry.js +0 -148
- package/dist/esm/eds-button.entry.js +0 -229
- package/dist/esm/eds-card-desc.entry.js +0 -22
- package/dist/esm/eds-card-title.entry.js +0 -52
- package/dist/esm/eds-dropdown.entry.js +0 -125
- package/dist/esm/eds-footer.entry.js +0 -45
- package/dist/esm/eds-fullscreen-menu.entry.js +0 -95
- package/dist/esm/eds-header.entry.js +0 -92
- package/dist/esm/eds-icon-wrapper.entry.js +0 -36
- package/dist/esm/eds-img.entry.js +0 -53
- package/dist/esm/eds-input-field.entry.js +0 -68
- package/dist/esm/eds-input-footer.entry.js +0 -17
- package/dist/esm/eds-input-label.entry.js +0 -16
- package/dist/esm/eds-input-range.entry.js +0 -35
- package/dist/esm/eds-input-search.entry.js +0 -37
- package/dist/esm/eds-input-select.entry.js +0 -26
- package/dist/esm/eds-input.entry.js +0 -64
- package/dist/esm/eds-link.entry.js +0 -207
- package/dist/esm/eds-logo.entry.js +0 -72
- package/dist/esm/eds-section-core.entry.js +0 -19
- package/dist/esm/eds-section-heading.entry.js +0 -37
- package/dist/esm/eds-social-networks.entry.js +0 -61
- package/dist/esm/eds-table.entry.js +0 -138
- package/dist/esm/eds-tag.entry.js +0 -40
- package/dist/esm/eds-toast-manager.entry.js +0 -41
- package/dist/esm/eds-toast.entry.js +0 -49
- package/dist/esm/eds-user-modal.entry.js +0 -43
- package/dist/esm/eds-user.entry.js +0 -86
- package/dist/esm/gradient-primary-palette.entry.js +0 -41
- package/dist/esm/gradient-secondary-palette.entry.js +0 -75
- package/dist/esm/gradient-support-palette.entry.js +0 -59
- package/dist/esm/index-144c9ae8.js +0 -46
- package/dist/esm/index-360dc790.js +0 -401
- package/dist/esm/index-a9afa43f.js +0 -1802
- package/dist/esm/index-b384416e.js +0 -3416
- package/dist/esm/keycloak-b647d452.js +0 -1903
- package/dist/esm/logo-variations-horizontal.entry.js +0 -26
- package/dist/esm/logo-variations-vertical.entry.js +0 -26
- package/dist/esm/shadow-css-423dab2c.js +0 -332
- package/dist/esm/toastManager-b716afd8.js +0 -31
- package/dist/esm/token-list.entry.js +0 -249
- package/dist/esm/token-radii.entry.js +0 -21
- package/dist/esm/token-shadows.entry.js +0 -30
- /package/dist/cjs/{toastManager-1fb1a402.js → toastManager-4e9535f3.js} +0 -0
- /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
- /package/dist/{components/toastManager-b716afd8.js → esm/toastManager-d9eee791.js} +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h } from './index-b384416e.js';
|
|
2
|
-
import { l as logout, i as initKeycloak, a as isAuthenticated, g as getUser, b as login } from './keycloak-b647d452.js';
|
|
3
|
-
|
|
4
|
-
const EdsLogin = class {
|
|
5
|
-
constructor(hostRef) {
|
|
6
|
-
registerInstance(this, hostRef);
|
|
7
|
-
this.authStatusChanged = createEvent(this, "authStatusChanged", 7);
|
|
8
|
-
// Method to handle user logout
|
|
9
|
-
this.handleLogout = () => {
|
|
10
|
-
logout();
|
|
11
|
-
this.authenticated = false; // Reset authentication state after logout
|
|
12
|
-
};
|
|
13
|
-
this.keycloakUrl = '';
|
|
14
|
-
this.keycloakRealm = '';
|
|
15
|
-
this.keycloakClientId = '';
|
|
16
|
-
this.authenticated = false;
|
|
17
|
-
this.user = null;
|
|
18
|
-
}
|
|
19
|
-
// Lifecycle method to check authentication status before the component loads
|
|
20
|
-
async componentWillLoad() {
|
|
21
|
-
await this.checkAuthentication();
|
|
22
|
-
}
|
|
23
|
-
// Method to initialize Keycloak and check if the user is authenticated
|
|
24
|
-
async checkAuthentication() {
|
|
25
|
-
try {
|
|
26
|
-
const keycloakConfig = {
|
|
27
|
-
url: this.keycloakUrl,
|
|
28
|
-
realm: this.keycloakRealm,
|
|
29
|
-
clientId: this.keycloakClientId
|
|
30
|
-
};
|
|
31
|
-
await initKeycloak(keycloakConfig);
|
|
32
|
-
// eslint-disable-next-line
|
|
33
|
-
// Set authentication state and fetch user data if authenticated
|
|
34
|
-
this.authenticated = isAuthenticated();
|
|
35
|
-
if (this.authenticated) {
|
|
36
|
-
this.user = getUser();
|
|
37
|
-
}
|
|
38
|
-
this.authStatusChanged.emit({
|
|
39
|
-
authenticated: this.authenticated,
|
|
40
|
-
user: this.user
|
|
41
|
-
}); // Emit auth status change
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
// eslint-disable-next-line
|
|
45
|
-
console.error('Keycloak initialization or login check failed:', error);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
// Method to handle user login
|
|
49
|
-
async handleLogin() {
|
|
50
|
-
try {
|
|
51
|
-
if (!this.authenticated) {
|
|
52
|
-
login(); // Start the Keycloak login process
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
catch (error) {
|
|
56
|
-
// eslint-disable-next-line
|
|
57
|
-
console.error('Login failed:', error);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
getBtnLabel() {
|
|
61
|
-
return this.authenticated ? 'Logout' : 'Login';
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return (h("div", { key: 'ef7e95a8390ac27ed55e41100dd1a0cb50e98ec4' }, h("eds-button", { key: '54969165777f2ac857fb43ef641307dd7e17043b', label: this.getBtnLabel(), intent: "primary", loading: false, disabled: false, pill: false, icon: "arrow-diagonal", size: "small", "icon-pos": "right", "aria-label": this.getBtnLabel(), "element-type": "button", triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) })));
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export { EdsLogin as eds_login };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-b384416e.js';
|
|
2
|
-
import { x as hLogoColor, z as hLogoBlack, A as hLogoColorWhite, B as hLogoWhite, C as hLogoWhiteNoBg, D as vLogoColor, E as vLogoBlack, F as vLogoColorWhite, G as vLogoWhite, H as vLogoWhiteNoBg } from './index-a9afa43f.js';
|
|
3
|
-
import { s as sendAnalytics } from './index-360dc790.js';
|
|
4
|
-
import './index-144c9ae8.js';
|
|
5
|
-
|
|
6
|
-
const edsLogoCss = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}";
|
|
7
|
-
|
|
8
|
-
const EdsLogo = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.href = '/';
|
|
12
|
-
this.orientation = 'horizontal';
|
|
13
|
-
this.type = undefined;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Handles the click event on the logo link.
|
|
17
|
-
* Emits a `matomoEvent` for analytics tracking with details about the interaction.
|
|
18
|
-
* - `category`: Component type (e.g., "ui-component").
|
|
19
|
-
* - `tag`: The HTML tag name of the component.
|
|
20
|
-
* - `name`: Event name, set as "logo".
|
|
21
|
-
* - `action`: The action, set as "click".
|
|
22
|
-
*/
|
|
23
|
-
handleClick() {
|
|
24
|
-
sendAnalytics({
|
|
25
|
-
category: 'ui-component',
|
|
26
|
-
tag: this.el.tagName.toLowerCase(),
|
|
27
|
-
name: 'logo',
|
|
28
|
-
action: 'click'
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Determines the appropriate SVG content based on the `orientation` and `type` props.
|
|
33
|
-
*/
|
|
34
|
-
getLogo() {
|
|
35
|
-
const logos = {
|
|
36
|
-
horizontal: {
|
|
37
|
-
color: hLogoColor,
|
|
38
|
-
black: hLogoBlack,
|
|
39
|
-
'color-white': hLogoColorWhite,
|
|
40
|
-
white: hLogoWhite,
|
|
41
|
-
'no-bg': hLogoWhiteNoBg
|
|
42
|
-
},
|
|
43
|
-
vertical: {
|
|
44
|
-
color: vLogoColor,
|
|
45
|
-
black: vLogoBlack,
|
|
46
|
-
'color-white': vLogoColorWhite,
|
|
47
|
-
white: vLogoWhite,
|
|
48
|
-
'no-bg': vLogoWhiteNoBg
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
// Validate the orientation and type
|
|
52
|
-
const validOrientation = logos[this.orientation];
|
|
53
|
-
if (!validOrientation) {
|
|
54
|
-
//console.error(`Invalid orientation "${this.orientation}". Falling back to "horizontal".`);
|
|
55
|
-
return hLogoColor; // Default fallback logo
|
|
56
|
-
}
|
|
57
|
-
const validLogo = validOrientation[this.type];
|
|
58
|
-
if (!validLogo) {
|
|
59
|
-
//console.error(`Invalid type "${this.type}" for orientation "${this.orientation}". Falling back to "color".`);
|
|
60
|
-
return validOrientation['color']; // Fallback to color logo
|
|
61
|
-
}
|
|
62
|
-
return validLogo;
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
const logoContent = this.getLogo();
|
|
66
|
-
return (h("a", { key: '3d9435fbc45427865bfa7bacb36bea4c34f08c4e', href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper" }, h("div", { key: '662122c4b687a082c930c034b033e9732ef611be', innerHTML: logoContent })));
|
|
67
|
-
}
|
|
68
|
-
get el() { return getElement(this); }
|
|
69
|
-
};
|
|
70
|
-
EdsLogo.style = edsLogoCss;
|
|
71
|
-
|
|
72
|
-
export { EdsLogo as eds_logo };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-b384416e.js';
|
|
2
|
-
import { t as toast } from './toastManager-b716afd8.js';
|
|
3
|
-
import { m as matomoOptIn } from './index-360dc790.js';
|
|
4
|
-
import './index-144c9ae8.js';
|
|
5
|
-
|
|
6
|
-
const edsMatomoNoticeCss = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left: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}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-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))}.md\\:-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))}}";
|
|
7
|
-
|
|
8
|
-
const EdsMatomoNotice = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
registerInstance(this, hostRef);
|
|
11
|
-
this.title = 'Analytics Consent';
|
|
12
|
-
this.description = 'We use anonymous analytics to improve our services. No personal data is collected unless you give your consent.';
|
|
13
|
-
this.showNotice = true;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Lifecycle method called before the component is rendered.
|
|
17
|
-
* Checks for the presence of the "mtm_consent" cookie to determine
|
|
18
|
-
* if the notice should be displayed.
|
|
19
|
-
*/
|
|
20
|
-
componentWillLoad() {
|
|
21
|
-
this.checkConsentCookie();
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Lifecycle method called after the component has been rendered.
|
|
25
|
-
* Emits `parentContext` events for each `eds-button` in the shadow DOM.
|
|
26
|
-
*/
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
const btns = this.el.shadowRoot.querySelectorAll('eds-button');
|
|
29
|
-
btns.forEach((b) => {
|
|
30
|
-
this.emitContext(b);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Emits a custom `parentContext` event for a given button element.
|
|
35
|
-
* This can be used to provide context information about the component.
|
|
36
|
-
*
|
|
37
|
-
* @param linkElement - The button element to which the event will be dispatched.
|
|
38
|
-
*/
|
|
39
|
-
emitContext(linkElement) {
|
|
40
|
-
const event = new CustomEvent('parentContext', {
|
|
41
|
-
detail: {
|
|
42
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
43
|
-
identifier: null
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
linkElement.dispatchEvent(event);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Checks if the Matomo "mtm_consent" cookie exists in the browser.
|
|
50
|
-
* If the cookie is found, the notice is hidden.
|
|
51
|
-
*/
|
|
52
|
-
checkConsentCookie() {
|
|
53
|
-
const consentCookie = document.cookie.split('; ').find((row) => row.startsWith('mtm_consent='));
|
|
54
|
-
//this.showNotice = !consentCookie;
|
|
55
|
-
const sessionDeferred = sessionStorage.getItem('matomo-deferred');
|
|
56
|
-
this.showNotice = !consentCookie && !sessionDeferred;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Handles user consent for analytics tracking.
|
|
60
|
-
* Calls the `matomoOptIn` utility and shows a success toast notification.
|
|
61
|
-
*/
|
|
62
|
-
optInAnalytics() {
|
|
63
|
-
matomoOptIn();
|
|
64
|
-
toast.show('You have opted in to analytics.', 'success');
|
|
65
|
-
this.hideNotice();
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Handles user opt-out from analytics tracking.
|
|
69
|
-
* Calls the `matomoOptOut` utility and shows a warning toast notification.
|
|
70
|
-
|
|
71
|
-
private optOutAnalytics() {
|
|
72
|
-
matomoOptOut();
|
|
73
|
-
toast.show('You have opted out of analytics.', 'warning');
|
|
74
|
-
this.hideNotice();
|
|
75
|
-
}*/
|
|
76
|
-
/**
|
|
77
|
-
* Handles "Ask me later" action by storing a session storage entry
|
|
78
|
-
* and hiding the notice for the rest of the session.
|
|
79
|
-
*/
|
|
80
|
-
deferDecision() {
|
|
81
|
-
sessionStorage.setItem('matomo-deferred', 'true');
|
|
82
|
-
toast.show('You can decide later.', 'warning');
|
|
83
|
-
this.hideNotice();
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Hides the notice by updating the `showNotice` state.
|
|
87
|
-
*/
|
|
88
|
-
hideNotice() {
|
|
89
|
-
this.showNotice = false;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Renders the Matomo consent notice with user options.
|
|
93
|
-
* Includes an accordion for the description and two buttons for user consent.
|
|
94
|
-
*/
|
|
95
|
-
render() {
|
|
96
|
-
if (!this.showNotice) {
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
return (h("div", { class: "fixed bottom-0 p-8 z-10 grow md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2 justify-center" }, h("eds-accordion", { title: this.title, description: this.description, switchBg: true, expanded: true }, h("div", { class: "flex items-center gap-4" }, h("eds-button", { intent: "primary", label: "Yes, I agree", "aria-label": "Opt-in for analytics", onClick: () => this.optInAnalytics() }), h("eds-button", { intent: "ghost", label: "Ask me later", "aria-label": "Defer analytics decision", onClick: () => this.deferDecision() })))));
|
|
100
|
-
}
|
|
101
|
-
get el() { return getElement(this); }
|
|
102
|
-
};
|
|
103
|
-
EdsMatomoNotice.style = edsMatomoNoticeCss;
|
|
104
|
-
|
|
105
|
-
export { EdsMatomoNotice as eds_matomo_notice };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
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)}.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}.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}";
|
|
4
|
-
|
|
5
|
-
const EdsModal = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.isOpen = false;
|
|
9
|
-
this.title = '';
|
|
10
|
-
this.truncate = true;
|
|
11
|
-
this.truncateLines = '1';
|
|
12
|
-
}
|
|
13
|
-
getTruncateClass() {
|
|
14
|
-
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Opens the modal.
|
|
18
|
-
*/
|
|
19
|
-
async open() {
|
|
20
|
-
this.isOpen = true;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Closes the modal.
|
|
24
|
-
*/
|
|
25
|
-
async close() {
|
|
26
|
-
this.isOpen = false;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Toggles the modal open or closed.
|
|
30
|
-
*/
|
|
31
|
-
async toggle() {
|
|
32
|
-
this.isOpen = !this.isOpen;
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return (h("div", { key: '97e718578e2801320cd38581782f3ed7adbd3ba5', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (h("div", { key: 'b7b27479b384552a02c8de602906916d2e77c8db', class: "fixed inset-0 backdrop-blur" // Add backdrop-blur utility class here
|
|
36
|
-
,
|
|
37
|
-
onClick: () => this.close() })), h("div", { key: '96fa205da65fbec35777b30b8b7ff8ee9e091f05', class: "max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center " }, h("div", { key: '4f712243107cc43ebaa012e91a3165f7009a0e95', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, h("span", { key: '7ed021a29d50f99f2624ed9913b43aa5d63dd7ac', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), h("eds-button", { key: '1e8e3321e06e506a102613d57fc78af4c0c3aa34', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), h("div", { key: 'b67b5636b5a619d54c83e754a4ca4418e33e5e13', class: "pt-8" }, h("slot", { key: '8dffee0db6547e58d12a78dd7240cc625a3e70f8' })))));
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
EdsModal.style = edsModalCss;
|
|
41
|
-
|
|
42
|
-
export { EdsModal as eds_modal };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const EdsNavigator = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
this.prevLabel = undefined;
|
|
7
|
-
this.nextLabel = undefined;
|
|
8
|
-
this.prevUrl = undefined;
|
|
9
|
-
this.nextUrl = undefined;
|
|
10
|
-
this.linkSize = 'small';
|
|
11
|
-
this.linkIntent = 'tertiary';
|
|
12
|
-
}
|
|
13
|
-
componentDidLoad() {
|
|
14
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
15
|
-
const links = this.el.querySelectorAll('eds-link');
|
|
16
|
-
links.forEach((link) => {
|
|
17
|
-
this.emitContext(link);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Emits a custom event 'parentContext' for a given link element with the component's context.
|
|
22
|
-
* @param linkElement - The eds-link element to emit the event for.
|
|
23
|
-
*/
|
|
24
|
-
emitContext(linkElement) {
|
|
25
|
-
const event = new CustomEvent('parentContext', {
|
|
26
|
-
detail: {
|
|
27
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
28
|
-
identifier: null
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
linkElement.dispatchEvent(event);
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
return (h("ul", { key: '1ab60197bbc9ee86d77134138744dce39df2aaa7', class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && (h("eds-link", { key: 'b29fd121d33c1e919d24a5d460d8d6864f1ff9db', 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" }, h("eds-icon-wrapper", { key: '64620ccfaf2e006a6414bcd7e874a352b9d2d56b', icon: "chevron-left" }), this.prevLabel)), this.nextLabel && (h("eds-link", { key: 'ae6425f0f01c8f5bcbdae27d9bea9dc3a5b09d3b', 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, h("eds-icon-wrapper", { key: 'd286fc26f17ee6cf6828990e98df7865fbbfd352', icon: "chevron-right", class: "w-20 h-20" })))));
|
|
35
|
-
}
|
|
36
|
-
get el() { return getElement(this); }
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export { EdsNavigator as eds_navigator };
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
|
|
4
|
-
|
|
5
|
-
const EdsPagination = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.currentPage = undefined;
|
|
9
|
-
this.lastPage = undefined;
|
|
10
|
-
this.perPage = 10;
|
|
11
|
-
this.total = 0;
|
|
12
|
-
this.url = '';
|
|
13
|
-
this.mode = 'default';
|
|
14
|
-
this.prevLabel = 'Prev';
|
|
15
|
-
this.nextLabel = 'Next';
|
|
16
|
-
this.prevUrl = '';
|
|
17
|
-
this.nextUrl = '';
|
|
18
|
-
this.links = [];
|
|
19
|
-
}
|
|
20
|
-
/** Lifecycle hook to generate pagination links on component load */
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
if (this.mode === 'default') {
|
|
23
|
-
this.generateLinks();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
componentDidLoad() {
|
|
27
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
28
|
-
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
29
|
-
if (links.length > 0) {
|
|
30
|
-
// Emit context for the first link
|
|
31
|
-
this.emitContext(links[0]);
|
|
32
|
-
// Emit context for the last link, if it's different from the first
|
|
33
|
-
if (links.length > 1) {
|
|
34
|
-
this.emitContext(links[links.length - 1]);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
40
|
-
* This event provides context information about the breadcrumb component.
|
|
41
|
-
*
|
|
42
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
43
|
-
*/
|
|
44
|
-
emitContext(linkElement) {
|
|
45
|
-
const event = new CustomEvent('parentContext', {
|
|
46
|
-
detail: {
|
|
47
|
-
componentName: this.hostEl.tagName.toLowerCase(),
|
|
48
|
-
identifier: null
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
linkElement.dispatchEvent(event);
|
|
52
|
-
}
|
|
53
|
-
onPageOrLastPageChange() {
|
|
54
|
-
if (this.mode === 'default') {
|
|
55
|
-
this.generateLinks();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Checks if the current page is the first page
|
|
60
|
-
* @returns {boolean} - true if current page is the first page
|
|
61
|
-
*/
|
|
62
|
-
isFirstPage() {
|
|
63
|
-
return this.currentPage === 1;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Checks if the current page is the last page
|
|
67
|
-
* @returns {boolean} - true if current page is the last page
|
|
68
|
-
*/
|
|
69
|
-
isLastPage() {
|
|
70
|
-
return this.currentPage === this.lastPage;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Generates a pagination link object
|
|
74
|
-
* @param {number} page - Page number for the link
|
|
75
|
-
* @returns {Link} - Link object with page details
|
|
76
|
-
*/
|
|
77
|
-
generateLink(page) {
|
|
78
|
-
const urlHasQuery = this.url.includes('?');
|
|
79
|
-
return {
|
|
80
|
-
ariaLabel: `Page ${page}`,
|
|
81
|
-
url: `${this.url}${urlHasQuery ? '&' : '?'}page=${page}`,
|
|
82
|
-
label: page.toString(),
|
|
83
|
-
current: this.currentPage === page,
|
|
84
|
-
disabled: false
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
/** Generates pagination links based on the last page and current page */
|
|
88
|
-
generateLinks() {
|
|
89
|
-
if (this.lastPage && this.lastPage > 5) {
|
|
90
|
-
this.links = this.getPaginationGenerator(this.currentPage || 1, this.lastPage).map((page) => typeof page === 'number' ? this.generateLink(page) : page);
|
|
91
|
-
}
|
|
92
|
-
else if (this.lastPage) {
|
|
93
|
-
this.links = Array.from({ length: this.lastPage }).map((_, i) => this.generateLink(i + 1));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Creates a pagination range based on delta, current, and total pages
|
|
98
|
-
* @param {number} current - Current page number
|
|
99
|
-
* @param {number} total - Total number of pages
|
|
100
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
101
|
-
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
102
|
-
*/
|
|
103
|
-
getPaginationGenerator(current, total) {
|
|
104
|
-
const delta = 1; // Show one page before and one after the current page
|
|
105
|
-
const range = [];
|
|
106
|
-
if (total <= 5) {
|
|
107
|
-
// If total pages are 5 or less, show all pages
|
|
108
|
-
for (let i = 1; i <= total; i++) {
|
|
109
|
-
range.push(i);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
// Always show the first page
|
|
114
|
-
range.push(1);
|
|
115
|
-
// Add ellipsis if there’s a gap between the first page and the current range start
|
|
116
|
-
if (current - delta > 2) {
|
|
117
|
-
range.push('...');
|
|
118
|
-
}
|
|
119
|
-
// Determine range for pages around the current page
|
|
120
|
-
for (let i = Math.max(2, current - delta); i <= Math.min(total - 1, current + delta); i++) {
|
|
121
|
-
range.push(i);
|
|
122
|
-
}
|
|
123
|
-
// Add ellipsis if there’s a gap between the current range end and the last page
|
|
124
|
-
if (current + delta < total - 1) {
|
|
125
|
-
range.push('...');
|
|
126
|
-
}
|
|
127
|
-
// Always show the last page
|
|
128
|
-
range.push(total);
|
|
129
|
-
}
|
|
130
|
-
return range;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Formats the current page results information for display
|
|
134
|
-
* @returns {string} - Formatted page result information
|
|
135
|
-
*/
|
|
136
|
-
pageResults() {
|
|
137
|
-
if (this.total > 0) {
|
|
138
|
-
return this.total > this.perPage
|
|
139
|
-
? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}`
|
|
140
|
-
: `${this.total}`;
|
|
141
|
-
}
|
|
142
|
-
return '';
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Handles a page click event, updating the current page and dispatching an event
|
|
146
|
-
* @param {MouseEvent} event - Click event
|
|
147
|
-
* @param {number} newPage - New page number
|
|
148
|
-
*/
|
|
149
|
-
handlePageClick(event, newPage) {
|
|
150
|
-
if (this.mode === 'navigator') {
|
|
151
|
-
return; // No page clicking logic for navigator mode
|
|
152
|
-
}
|
|
153
|
-
event.preventDefault(); // Prevent default link navigation
|
|
154
|
-
if (newPage !== this.currentPage) {
|
|
155
|
-
this.links = this.links.map((link) => typeof link === 'object' ? Object.assign(Object.assign({}, link), { current: parseInt(link.label) === newPage }) : link);
|
|
156
|
-
const pageChangeEvent = new CustomEvent('pageChange', {
|
|
157
|
-
detail: newPage,
|
|
158
|
-
bubbles: true,
|
|
159
|
-
composed: true
|
|
160
|
-
});
|
|
161
|
-
this.hostEl.dispatchEvent(pageChangeEvent);
|
|
162
|
-
this.currentPage = newPage;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
render() {
|
|
166
|
-
return (h("div", { key: '2385b59b0a8b2bbdc40bfc5032b846c0ec20065e' }, this.total > 0 && this.mode === 'default' && (h("p", { key: '6aea281a4df247874f354469bbabae039424ad9e', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, h("span", { key: 'eeb5f0ea902505c3853a30d51026cef9d9785e48', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (h("nav", { "aria-label": "Pagination" }, h("ul", { class: "flex items-center justify-center gap-x-8" }, h("li", { class: "mr-auto" }, h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
167
|
-
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
168
|
-
: this.isFirstPage()
|
|
169
|
-
? '#'
|
|
170
|
-
: this.generateLink(this.currentPage - 1).url, disabled: this.mode === 'navigator'
|
|
171
|
-
? !this.prevUrl // Disable if prevUrl is not provided
|
|
172
|
-
: this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pr-12", onClick: (event) => {
|
|
173
|
-
if (this.mode === 'default') {
|
|
174
|
-
if (this.isFirstPage()) {
|
|
175
|
-
event.preventDefault(); // Prevent click if disabled
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
this.handlePageClick(event, (this.currentPage || 1) - 1);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
} })), this.mode === 'default' &&
|
|
182
|
-
this.links.map((link, index) => (h("li", { key: index, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof link === 'string' ? (h("span", { class: "flex items-center justify-center" }, link)) : (h("eds-link", { url: link.url, "aria-label": link.ariaLabel, label: link.label, current: link.current, size: "small", class: "!p-8", intent: link.current ? 'secondary' : 'ghost', onClick: (event) => this.handlePageClick(event, parseInt(link.label)) }))))), h("li", { class: "ml-auto" }, h("eds-link", { label: this.nextLabel, url: this.mode === 'navigator'
|
|
183
|
-
? this.nextUrl || '#' // Use nextUrl if provided, otherwise disable with '#'
|
|
184
|
-
: this.isLastPage()
|
|
185
|
-
? '#'
|
|
186
|
-
: this.generateLink(this.currentPage + 1).url, disabled: this.mode === 'navigator'
|
|
187
|
-
? !this.nextUrl // Disable if nextUrl is not provided
|
|
188
|
-
: this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": true, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (event) => {
|
|
189
|
-
if (this.mode === 'default') {
|
|
190
|
-
if (this.isLastPage()) {
|
|
191
|
-
event.preventDefault(); // Prevent click if disabled
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
this.handlePageClick(event, (this.currentPage || 1) + 1);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
} }))))) : null));
|
|
198
|
-
}
|
|
199
|
-
get hostEl() { return getElement(this); }
|
|
200
|
-
static get watchers() { return {
|
|
201
|
-
"currentPage": ["onPageOrLastPageChange"],
|
|
202
|
-
"lastPage": ["onPageOrLastPageChange"]
|
|
203
|
-
}; }
|
|
204
|
-
};
|
|
205
|
-
EdsPagination.style = edsPaginationCss;
|
|
206
|
-
|
|
207
|
-
export { EdsPagination as eds_pagination };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
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}";
|
|
4
|
-
|
|
5
|
-
const EdsRating = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.ratingChange = createEvent(this, "ratingChange", 7);
|
|
9
|
-
this.stars = 5;
|
|
10
|
-
this.label = 'Rate your experience';
|
|
11
|
-
this.textMapping = ['Very Poor', 'Poor', 'Average', 'Good', 'Excellent'];
|
|
12
|
-
this.selectedRating = 0;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Parses the `links` prop into an array of link objects.
|
|
16
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
17
|
-
*
|
|
18
|
-
* @returns {any[]} Array of parsed link objects
|
|
19
|
-
*/
|
|
20
|
-
get parsedMappings() {
|
|
21
|
-
if (typeof this.textMapping === 'object') {
|
|
22
|
-
return this.textMapping;
|
|
23
|
-
}
|
|
24
|
-
else if (typeof this.textMapping === 'string') {
|
|
25
|
-
try {
|
|
26
|
-
return JSON.parse(this.textMapping);
|
|
27
|
-
}
|
|
28
|
-
catch (e) {
|
|
29
|
-
// eslint-disable-next-line
|
|
30
|
-
console.error('Error parsing links prop:', e);
|
|
31
|
-
return [];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return [];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Handles the click event on a star.
|
|
38
|
-
* @param rating - The selected rating value.
|
|
39
|
-
*/
|
|
40
|
-
handleClick(rating) {
|
|
41
|
-
this.selectedRating = rating;
|
|
42
|
-
this.ratingChange.emit(rating);
|
|
43
|
-
}
|
|
44
|
-
render() {
|
|
45
|
-
return (h("div", { key: '4ca6d5e0fb35d8ebce1acd5c1a7c6c857ba4f463', class: "relative w-full flex flex-col" }, h("span", { key: '784b77f84098b8d88cd3872004b0208a4437c51b', class: "f-body-01" }, this.label), h("div", { key: '6780db58d3c96046a99d383518cfe1db1e3f1c68', class: "stars" }, Array.from({ length: this.stars }, (_, index) => (h("span", { class: {
|
|
46
|
-
star: true,
|
|
47
|
-
filled: index < this.selectedRating
|
|
48
|
-
}, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (h("span", { key: 'ce0eec3c29cf27bff86e3307a29a2c39c2167087', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
EdsRating.style = edsRatingCss;
|
|
52
|
-
|
|
53
|
-
export { EdsRating as eds_rating };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const edsSectionCoreCss = "";
|
|
4
|
-
|
|
5
|
-
const EdsSectionCore = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.tag = 'section';
|
|
9
|
-
this.sectionTitle = '';
|
|
10
|
-
this.headingLevel = 'h2';
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
const TagType = this.tag; // Set dynamic tag type (div or section)
|
|
14
|
-
return (h(TagType, { key: '849c35d9cd587cf14b0d6bc6efd1310a85d447f2' }, h("eds-section-heading", { key: '7ed4486fcf6e7c653026869c9468be9471db1775', headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), h("slot", { key: '5d95ea6516ecaaab4e07a40b84cd20deb3d8d3b2' })));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
EdsSectionCore.style = edsSectionCoreCss;
|
|
18
|
-
|
|
19
|
-
export { EdsSectionCore as eds_section_core };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-b384416e.js';
|
|
2
|
-
|
|
3
|
-
const EdsSectionHeading = class {
|
|
4
|
-
constructor(hostRef) {
|
|
5
|
-
registerInstance(this, hostRef);
|
|
6
|
-
this.sectionTitle = undefined;
|
|
7
|
-
this.withContainer = true;
|
|
8
|
-
this.headingLevel = 'h2';
|
|
9
|
-
this.tag = 'div';
|
|
10
|
-
this.spacingLarge = false;
|
|
11
|
-
}
|
|
12
|
-
getHeadingClass() {
|
|
13
|
-
// Map heading levels to their respective classes
|
|
14
|
-
const headingClasses = {
|
|
15
|
-
h1: 'f-heading-01',
|
|
16
|
-
h2: 'f-heading-02',
|
|
17
|
-
h3: 'f-heading-03',
|
|
18
|
-
h4: 'f-heading-04',
|
|
19
|
-
h5: 'f-heading-05',
|
|
20
|
-
h6: 'f-heading-06'
|
|
21
|
-
};
|
|
22
|
-
// Return the class based on the heading level
|
|
23
|
-
return headingClasses[this.headingLevel];
|
|
24
|
-
}
|
|
25
|
-
render() {
|
|
26
|
-
const TagType = this.tag; // Dynamically set tag type for the container
|
|
27
|
-
const HeadingTag = this.headingLevel; // Dynamically set heading level
|
|
28
|
-
return (h(TagType, { key: '2c6466c0a02bf8598153c18eafb37affc3dac395', class: {
|
|
29
|
-
'ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20': true,
|
|
30
|
-
container: this.withContainer,
|
|
31
|
-
'pt-48': this.spacingLarge,
|
|
32
|
-
'pt-28': !this.spacingLarge
|
|
33
|
-
} }, h(HeadingTag, { key: 'fc7f0f09e02e8c63697e46811c465792497126e0', class: this.getHeadingClass() }, this.sectionTitle)));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export { EdsSectionHeading as eds_section_heading };
|