@ebrains/components 0.9.1-beta → 0.9.2-beta
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/{collection/utils/analytics.js → components/analytics-e29fcd53.js} +8 -6
- package/dist/components/{color.js → color-47266964.js} +1 -1
- package/dist/{collection/eds-docs-ui/colors/color-palette/primary.js → components/color-primary-palette.entry.js} +8 -8
- package/dist/{collection/eds-docs-ui/colors/color-palette/secondary.js → components/color-secondary-palette.entry.js} +8 -29
- package/dist/{collection/eds-docs-ui/colors/color-palette/support.js → components/color-support-palette.entry.js} +8 -8
- package/dist/{esm → components}/components-section.entry.js +1 -1
- package/dist/components/components.esm.js +47 -1
- package/dist/{esm → components}/correct-use-of-colors.entry.js +1 -1
- package/dist/{esm → components}/docs-palettes.entry.js +1 -1
- package/dist/{esm → components}/docs-tokens.entry.js +1 -1
- package/dist/{esm → components}/eds-accordion.entry.js +3 -4
- package/dist/{esm → components}/eds-alert.entry.js +3 -4
- package/dist/{esm → components}/eds-app-root.entry.js +1 -1
- package/dist/components/{eds-avatar2.js → eds-avatar.entry.js} +9 -36
- package/dist/components/eds-block-break.entry.js +16 -0
- package/dist/components/{eds-breadcrumb.js → eds-breadcrumb.entry.js} +16 -56
- package/dist/components/{eds-button2.js → eds-button.entry.js} +10 -46
- package/dist/components/{eds-card-desc2.js → eds-card-desc.entry.js} +7 -28
- package/dist/{esm → components}/eds-card-generic.entry.js +4 -5
- package/dist/{esm → components}/eds-card-project.entry.js +4 -4
- package/dist/{esm → components}/eds-card-section.entry.js +3 -4
- package/dist/{esm → components}/eds-card-tags.entry.js +2 -3
- package/dist/components/{eds-card-title2.js → eds-card-title.entry.js} +7 -30
- package/dist/{esm → components}/eds-card-tool.entry.js +3 -4
- package/dist/{esm → components}/eds-card-wrapper.entry.js +1 -1
- package/dist/{esm → components}/eds-code-block.entry.js +34 -4
- package/dist/{esm → components}/eds-cookies-preference.entry.js +2 -3
- package/dist/components/{eds-dropdown2.js → eds-dropdown.entry.js} +9 -48
- package/dist/{esm → components}/eds-feedback.entry.js +3 -4
- package/dist/components/{eds-footer2.js → eds-footer.entry.js} +7 -60
- package/dist/components/{eds-form.js → eds-form.entry.js} +66 -100
- package/dist/{esm → components}/eds-frame.entry.js +2 -3
- package/dist/components/{eds-fullscreen-menu.js → eds-fullscreen-menu.entry.js} +8 -81
- package/dist/components/{eds-header.js → eds-header.entry.js} +9 -60
- package/dist/{esm → components}/eds-icon-arrow-diagonal.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-arrow-right.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-bluesky.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-bookmark.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-down.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-left.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-right.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-chevron-up.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-close.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-copy.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-eu.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-external.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-facebook.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-gitlab.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-linkedin.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-loader.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-mastodon.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-menu.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-minus.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-more.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-paper.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-plus.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-portal.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-private.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-public.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-search.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-star.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-success.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-thumbs-down.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-thumbs-up.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-tutorial.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-twitter.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-unknown.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-updown.entry.js +2 -2
- package/dist/{esm → components}/eds-icon-user.entry.js +2 -2
- package/dist/components/{eds-icon-wrapper2.js → eds-icon-wrapper.entry.js} +6 -26
- package/dist/{esm → components}/eds-icon-youtube.entry.js +2 -2
- package/dist/components/{eds-img2.js → eds-img.entry.js} +8 -36
- package/dist/components/{eds-input-field2.js → eds-input-field.entry.js} +8 -86
- package/dist/components/eds-input-footer.entry.js +17 -0
- package/dist/components/eds-input-label.entry.js +16 -0
- package/dist/components/{eds-input-range2.js → eds-input-range.entry.js} +7 -34
- package/dist/components/{eds-input-search2.js → eds-input-search.entry.js} +8 -38
- package/dist/components/{eds-input-select2.js → eds-input-select.entry.js} +7 -46
- package/dist/components/{eds-input2.js → eds-input.entry.js} +7 -46
- package/dist/components/{eds-link2.js → eds-link.entry.js} +10 -47
- package/dist/components/{eds-login2.js → eds-login.entry.js} +17 -41
- package/dist/components/{eds-logo2.js → eds-logo.entry.js} +10 -32
- package/dist/{esm → components}/eds-matomo-notice.entry.js +6 -7
- package/dist/{esm → components}/eds-modal.entry.js +3 -4
- package/dist/components/{eds-pagination2.js → eds-pagination.entry.js} +8 -51
- package/dist/{esm → components}/eds-progress-bar.entry.js +2 -3
- package/dist/{esm → components}/eds-rating.entry.js +2 -3
- package/dist/components/eds-section-core.entry.js +19 -0
- package/dist/{esm/eds-section-core_2.entry.js → components/eds-section-heading.entry.js} +2 -19
- package/dist/components/{eds-social-networks2.js → eds-social-networks.entry.js} +7 -37
- package/dist/{esm → components}/eds-spinner.entry.js +2 -3
- package/dist/components/{eds-splash-screen2.js → eds-splash-screen.entry.js} +7 -41
- package/dist/components/{eds-steps-v2.js → eds-steps-v2.entry.js} +9 -55
- package/dist/components/{eds-steps2.js → eds-steps.entry.js} +9 -43
- package/dist/{esm → components}/eds-switch.entry.js +2 -3
- package/dist/components/{eds-table2.js → eds-table.entry.js} +10 -105
- package/dist/{esm → components}/eds-tabs.entry.js +5 -6
- package/dist/components/{eds-tag2.js → eds-tag.entry.js} +8 -28
- package/dist/{esm → components}/eds-timeline.entry.js +3 -4
- package/dist/{esm → components}/eds-toast-manager.entry.js +3 -4
- package/dist/{esm → components}/eds-toast.entry.js +3 -4
- package/dist/{esm → components}/eds-tooltip.entry.js +3 -4
- package/dist/{esm → components}/eds-trl.entry.js +1 -1
- package/dist/components/{eds-user.js → eds-user.entry.js} +8 -59
- package/dist/{collection/eds-docs-ui/colors/gradient-palette/primary.js → components/gradient-primary-palette.entry.js} +8 -8
- package/dist/{collection/eds-docs-ui/colors/gradient-palette/secondary.js → components/gradient-secondary-palette.entry.js} +8 -8
- package/dist/{collection/eds-docs-ui/colors/gradient-palette/support.js → components/gradient-support-palette.entry.js} +8 -8
- package/dist/{esm → components}/incorrect-use-of-colors.entry.js +1 -1
- package/dist/{cjs/logo-white-no-bg-4a0e0f4b.js → components/index-7281d120.js} +941 -10
- package/dist/{esm/index-8a71b9a7.js → components/index-9d277061.js} +1332 -507
- package/dist/components/index.esm.js +1 -0
- package/dist/{esm → components}/logo-space.entry.js +3 -4
- package/dist/components/{logo-variations-horizontal2.js → logo-variations-horizontal.entry.js} +7 -29
- package/dist/{esm → components}/logo-variations-tabs.entry.js +1 -1
- package/dist/components/{logo-variations-vertical2.js → logo-variations-vertical.entry.js} +7 -32
- package/dist/{esm → components}/logo-wrong-usage.entry.js +3 -4
- package/dist/components/shadow-css-423dab2c.js +332 -0
- package/dist/{collection/eds-docs-ui/svg-repository/svg-repository.js → components/svg-repository.entry.js} +14 -20
- package/dist/components/{token-list2.js → token-list.entry.js} +6 -34
- package/dist/{collection/eds-docs-ui/design-tokens/token-radii/token-radii.js → components/token-radii.entry.js} +18 -8
- package/dist/{esm → components}/token-ratios.entry.js +1 -1
- package/dist/{collection/eds-docs-ui/design-tokens/token-shadows/token-shadows.js → components/token-shadows.entry.js} +27 -8
- package/dist/{collection/eds-docs-ui/design-tokens/token-spacing/token-spacing.js → components/token-spacing.entry.js} +9 -7
- package/dist/{esm → components}/token-typography.entry.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/analytics-d8fb3fdd.js +0 -60
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/arrow-diagonal-black-0eb8640e.js +0 -5
- package/dist/cjs/arrow-right-3e38e8a9.js +0 -7
- package/dist/cjs/bluesky-eb0d6051.js +0 -16
- package/dist/cjs/bookmark-c61853d9.js +0 -18
- package/dist/cjs/chevron-down-27344777.js +0 -14
- package/dist/cjs/chevron-left-6fc9c6ef.js +0 -13
- package/dist/cjs/chevron-right-6d95a117.js +0 -7
- package/dist/cjs/chevron-up-e37d7713.js +0 -14
- package/dist/cjs/close-51284af5.js +0 -7
- package/dist/cjs/color-c00146a8.js +0 -134
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +0 -340
- package/dist/cjs/components-section.cjs.entry.js +0 -139
- package/dist/cjs/components.cjs.js +0 -25
- package/dist/cjs/copy-53102d0c.js +0 -7
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +0 -68
- package/dist/cjs/docs-palettes.cjs.entry.js +0 -27
- package/dist/cjs/docs-tokens.cjs.entry.js +0 -35
- package/dist/cjs/eds-accordion.cjs.entry.js +0 -86
- package/dist/cjs/eds-alert.cjs.entry.js +0 -104
- package/dist/cjs/eds-app-root.cjs.entry.js +0 -37
- package/dist/cjs/eds-avatar_26.cjs.entry.js +0 -2281
- package/dist/cjs/eds-card-desc_2.cjs.entry.js +0 -78
- package/dist/cjs/eds-card-generic.cjs.entry.js +0 -92
- package/dist/cjs/eds-card-project.cjs.entry.js +0 -68
- package/dist/cjs/eds-card-section.cjs.entry.js +0 -39
- package/dist/cjs/eds-card-tags.cjs.entry.js +0 -22
- package/dist/cjs/eds-card-tool.cjs.entry.js +0 -79
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +0 -32
- package/dist/cjs/eds-code-block.cjs.entry.js +0 -2489
- package/dist/cjs/eds-cookies-preference.cjs.entry.js +0 -39
- package/dist/cjs/eds-feedback.cjs.entry.js +0 -66
- package/dist/cjs/eds-frame.cjs.entry.js +0 -85
- package/dist/cjs/eds-icon-arrow-diagonal.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-arrow-right.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-bluesky.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-bookmark.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-down.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-left.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-right.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-chevron-up.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-close.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-copy.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-eu.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-external.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-facebook.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-gitlab.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-linkedin.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-loader.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-mastodon.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-menu.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-minus.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-more.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-paper.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-plus.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-portal.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-private.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-public.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-search.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-star.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-success.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-thumbs-down.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-thumbs-up.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-tutorial.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-twitter.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-unknown.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-updown.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-user.cjs.entry.js +0 -18
- package/dist/cjs/eds-icon-youtube.cjs.entry.js +0 -18
- package/dist/cjs/eds-login_2.cjs.entry.js +0 -2100
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +0 -123
- package/dist/cjs/eds-modal.cjs.entry.js +0 -109
- package/dist/cjs/eds-pagination_2.cjs.entry.js +0 -403
- package/dist/cjs/eds-progress-bar.cjs.entry.js +0 -29
- package/dist/cjs/eds-rating.cjs.entry.js +0 -64
- package/dist/cjs/eds-section-core_2.cjs.entry.js +0 -59
- package/dist/cjs/eds-spinner.cjs.entry.js +0 -54
- package/dist/cjs/eds-switch.cjs.entry.js +0 -38
- package/dist/cjs/eds-tabs.cjs.entry.js +0 -130
- package/dist/cjs/eds-timeline.cjs.entry.js +0 -63
- package/dist/cjs/eds-toast-manager.cjs.entry.js +0 -46
- package/dist/cjs/eds-toast.cjs.entry.js +0 -76
- package/dist/cjs/eds-tooltip.cjs.entry.js +0 -109
- package/dist/cjs/eds-trl.cjs.entry.js +0 -51
- package/dist/cjs/eu-b9665157.js +0 -32
- package/dist/cjs/facebook-7aa65e57.js +0 -16
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +0 -50
- package/dist/cjs/index-2f63169d.js +0 -2227
- package/dist/cjs/index-ab9fbefe.js +0 -48
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/linkedin-46b0dd56.js +0 -30
- package/dist/cjs/loader-72f9d178.js +0 -32
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/logo-color-6c787ac1.js +0 -117
- package/dist/cjs/logo-color-margins-b49c0f46.js +0 -120
- package/dist/cjs/logo-space.cjs.entry.js +0 -21
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +0 -36
- package/dist/cjs/logo-variations-tabs.cjs.entry.js +0 -27
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +0 -21
- package/dist/cjs/mastodon-20c5bb7d.js +0 -16
- package/dist/cjs/menu-7050a6d1.js +0 -13
- package/dist/cjs/minus-1da6a98a.js +0 -13
- package/dist/cjs/mono-2f3cd653.js +0 -13
- package/dist/cjs/more-1d3dd8bc.js +0 -15
- package/dist/cjs/paper-0d6302f6.js +0 -17
- package/dist/cjs/plus-d0e00ad0.js +0 -14
- package/dist/cjs/portal-46212559.js +0 -20
- package/dist/cjs/private-38835fe7.js +0 -27
- package/dist/cjs/public-b519b1f6.js +0 -18
- package/dist/cjs/search-5533d877.js +0 -14
- package/dist/cjs/sharedUtils-8e287250.js +0 -21
- package/dist/cjs/star-942eee9f.js +0 -7
- package/dist/cjs/success-ef661a11.js +0 -20
- package/dist/cjs/svg-repository.cjs.entry.js +0 -337
- package/dist/cjs/thumbs-down-714036b1.js +0 -7
- package/dist/cjs/thumbs-up-411babb8.js +0 -8
- package/dist/cjs/toastManager-4e9535f3.js +0 -33
- package/dist/cjs/token-list_3.cjs.entry.js +0 -300
- package/dist/cjs/token-ratios.cjs.entry.js +0 -29
- package/dist/cjs/token-typography.cjs.entry.js +0 -230
- package/dist/cjs/tutotial-7855df3c.js +0 -29
- package/dist/cjs/twitter-73956e9a.js +0 -16
- package/dist/cjs/unknown-6814e551.js +0 -24
- package/dist/cjs/up-and-down-d71df67d.js +0 -14
- package/dist/cjs/user-a3c2230f.js +0 -18
- package/dist/cjs/youtube-c238a461.js +0 -16
- package/dist/collection/collection-manifest.json +0 -128
- package/dist/collection/components/eds-accordion/eds-accordion.css +0 -264
- package/dist/collection/components/eds-accordion/eds-accordion.js +0 -222
- package/dist/collection/components/eds-accordion/eds-accordion.stories.js +0 -87
- package/dist/collection/components/eds-alert/eds-alert.css +0 -739
- package/dist/collection/components/eds-alert/eds-alert.js +0 -230
- package/dist/collection/components/eds-alert/eds-alert.stories.js +0 -60
- package/dist/collection/components/eds-avatar/eds-avatar.css +0 -187
- package/dist/collection/components/eds-avatar/eds-avatar.js +0 -183
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +0 -40
- package/dist/collection/components/eds-block-break/eds-block-break.css +0 -49
- package/dist/collection/components/eds-block-break/eds-block-break.js +0 -51
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.css +0 -112
- package/dist/collection/components/eds-breadcrump/eds-breadcrumb.stories.js +0 -40
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +0 -213
- package/dist/collection/components/eds-button/eds-button.css +0 -8904
- package/dist/collection/components/eds-button/eds-button.js +0 -487
- package/dist/collection/components/eds-button/eds-button.stories.js +0 -47
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.css +0 -41
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +0 -113
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.css +0 -9
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +0 -63
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.css +0 -92
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +0 -169
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +0 -86
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.css +0 -139
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +0 -338
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +0 -133
- package/dist/collection/components/eds-cards/eds-card-project/eds-card-project.js +0 -228
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.css +0 -103
- package/dist/collection/components/eds-cards/eds-card-tool/eds-card-tool.js +0 -314
- package/dist/collection/components/eds-code-block/eds-code-block.css +0 -204
- package/dist/collection/components/eds-code-block/eds-code-block.js +0 -141
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +0 -78
- package/dist/collection/components/eds-dropdown/eds-dropdown.css +0 -117
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +0 -369
- package/dist/collection/components/eds-icon-wrapper/eds-icon-wrapper.js +0 -92
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-down/eds-icon-chevron-down.js +0 -36
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-left/eds-icon-chevron-left.js +0 -36
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-right/eds-icon-chevron-right.js +0 -36
- package/dist/collection/components/eds-icons/chevron/eds-icon-chevron-up/eds-icon-chevron-up.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-arrow-diagonal/eds-icon-arrow-diagonal.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-arrow-right/eds-icon-arrow-right.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-bookmark/eds-icon-bookmark.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-close/eds-icon-close.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-copy/eds-icon-copy.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-eu/eds-icon-eu.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-external/eds-icon-external.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-gitlab/eds-icon-gitlab.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-loader/eds-icon-loader.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-menu/eds-icon-menu.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-minus/eds-icon-minus.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-more/eds-icon-more.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-paper/eds-icon-paper.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-plus/eds-icon-plus.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-portal/eds-icon-portal.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-private/eds-icon-private.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-public/eds-icon-public.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-search/eds-icon-search.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-star/eds-icon-star.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-success/eds-icon-success.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-thumbs-down/eds-icon-thumbs-down.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-thumbs-up/eds-icon-thumbs-up.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-tutorial/eds-icon-tutorial.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-unknown/eds-icon-unknown.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-updown/eds-icon-updown.js +0 -36
- package/dist/collection/components/eds-icons/eds-icon-user/eds-icon-user.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-bluesky/eds-icon-bluesky.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-facebook/eds-icon-facebook.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-linkedin/eds-icon-linkedin.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-mastodon/eds-icon-mastodon.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-twitter/eds-icon-twitter.js +0 -36
- package/dist/collection/components/eds-icons/social/eds-icon-youtube/eds-icon-youtube.js +0 -36
- package/dist/collection/components/eds-img/eds-img.css +0 -83
- package/dist/collection/components/eds-img/eds-img.js +0 -252
- package/dist/collection/components/eds-img/eds-img.stories.js +0 -101
- package/dist/collection/components/eds-input-elements/eds-input/eds-input.js +0 -317
- package/dist/collection/components/eds-input-elements/eds-input-footer/eds-input-footer.js +0 -105
- package/dist/collection/components/eds-input-elements/eds-input-label/eds-input-label.js +0 -90
- package/dist/collection/components/eds-input-elements/eds-input-range/eds-input-range.js +0 -252
- package/dist/collection/components/eds-input-elements/eds-input-search/eds-input-search.js +0 -263
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +0 -343
- package/dist/collection/components/eds-input-field/eds-input-field.css +0 -7760
- package/dist/collection/components/eds-input-field/eds-input-field.js +0 -451
- package/dist/collection/components/eds-input-field/eds-input-field.stories.js +0 -206
- package/dist/collection/components/eds-link/eds-link.css +0 -7101
- package/dist/collection/components/eds-link/eds-link.js +0 -492
- package/dist/collection/components/eds-link/eds-link.stories.js +0 -86
- package/dist/collection/components/eds-logo/eds-logo.css +0 -47
- package/dist/collection/components/eds-logo/eds-logo.js +0 -169
- package/dist/collection/components/eds-logo/eds-logo.stories.js +0 -38
- package/dist/collection/components/eds-modal/eds-modal.css +0 -258
- package/dist/collection/components/eds-modal/eds-modal.js +0 -276
- package/dist/collection/components/eds-modal/eds-modal.stories.js +0 -80
- package/dist/collection/components/eds-pagination/eds-pagination.css +0 -148
- package/dist/collection/components/eds-pagination/eds-pagination.js +0 -418
- package/dist/collection/components/eds-pagination/eds-pagination.stories.js +0 -135
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.css +0 -62
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.js +0 -79
- package/dist/collection/components/eds-progress-bar/eds-progress-bar.stories.js +0 -25
- package/dist/collection/components/eds-rating/eds-rating.css +0 -79
- package/dist/collection/components/eds-rating/eds-rating.js +0 -126
- package/dist/collection/components/eds-rating/eds-rating.stories.js +0 -43
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.css +0 -0
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.js +0 -91
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +0 -75
- package/dist/collection/components/eds-section/eds-section-heading/eds-section-heading.js +0 -140
- package/dist/collection/components/eds-spinner/eds-spinner.css +0 -17
- package/dist/collection/components/eds-spinner/eds-spinner.js +0 -166
- package/dist/collection/components/eds-spinner/eds-spinner.stories.js +0 -52
- package/dist/collection/components/eds-steps/eds-steps.css +0 -126
- package/dist/collection/components/eds-steps/eds-steps.js +0 -170
- package/dist/collection/components/eds-steps/eds-steps.stories.js +0 -35
- package/dist/collection/components/eds-switch/eds-switch.css +0 -58
- package/dist/collection/components/eds-switch/eds-switch.js +0 -131
- package/dist/collection/components/eds-switch/eds-switch.stories.js +0 -38
- package/dist/collection/components/eds-table/eds-table.css +0 -142
- package/dist/collection/components/eds-table/eds-table.js +0 -370
- package/dist/collection/components/eds-table/eds-table.stories.js +0 -99
- package/dist/collection/components/eds-tag/eds-tag.css +0 -101
- package/dist/collection/components/eds-tag/eds-tag.js +0 -110
- package/dist/collection/components/eds-tag/eds-tag.stories.js +0 -34
- package/dist/collection/components/eds-timeline/eds-timeline.css +0 -7796
- package/dist/collection/components/eds-timeline/eds-timeline.js +0 -93
- package/dist/collection/components/eds-timeline/eds-timeline.stories.js +0 -35
- package/dist/collection/components/eds-toast/eds-toast.css +0 -91
- package/dist/collection/components/eds-toast/eds-toast.js +0 -138
- package/dist/collection/components/eds-toast/eds-toast.stories.js +0 -38
- package/dist/collection/components/eds-tooltip/eds-tooltip.css +0 -94
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +0 -179
- package/dist/collection/components/eds-tooltip/eds-tooltip.stories.js +0 -21
- package/dist/collection/components/eds-trl/eds-trl.js +0 -68
- package/dist/collection/eds-docs-ui/colors/use-of-colors/correct-use-of-colors.js +0 -66
- package/dist/collection/eds-docs-ui/colors/use-of-colors/incorrect-use-of-colors.js +0 -44
- package/dist/collection/eds-docs-ui/components-section/components-section.js +0 -55
- package/dist/collection/eds-docs-ui/components-section/functional/angular.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/installation.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/overview.js +0 -19
- package/dist/collection/eds-docs-ui/components-section/functional/react.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/usage.js +0 -2
- package/dist/collection/eds-docs-ui/components-section/functional/vue.js +0 -2
- package/dist/collection/eds-docs-ui/design-tokens/docs-tokens/docs-tokens.js +0 -52
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.js +0 -98
- package/dist/collection/eds-docs-ui/design-tokens/token-list/token-list.stories.js +0 -44
- package/dist/collection/eds-docs-ui/design-tokens/token-ratios/token-ratios.js +0 -15
- package/dist/collection/eds-docs-ui/design-tokens/token-typography/token-typography.js +0 -27
- package/dist/collection/eds-docs-ui/docs-palettes/docs-palettes.js +0 -44
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.css +0 -154
- package/dist/collection/eds-docs-ui/logo/logo-space/logo-space.js +0 -22
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.css +0 -161
- package/dist/collection/eds-docs-ui/logo/logo-variations/horizontal/logo-variations-horizontal.js +0 -21
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.css +0 -169
- package/dist/collection/eds-docs-ui/logo/logo-variations/vertical/logo-variations-vertical.js +0 -64
- package/dist/collection/eds-docs-ui/logo/logo-variations-tabs/logo-variations.js +0 -44
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.css +0 -240
- package/dist/collection/eds-docs-ui/logo/logo-wrong-usage/logo-wrong-usage.js +0 -22
- package/dist/collection/eds-docs-ui/svg-repository/svg-repository.css +0 -5
- package/dist/collection/index.js +0 -1
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.css +0 -249
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.js +0 -95
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +0 -71
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.css +0 -0
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.js +0 -86
- package/dist/collection/shared-ui/eds-cookies-preference/eds-cookies-preference.st.js +0 -31
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.css +0 -163
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.js +0 -191
- package/dist/collection/shared-ui/eds-feedback/eds-feedback.stories.js +0 -121
- package/dist/collection/shared-ui/eds-footer/eds-footer.css +0 -226
- package/dist/collection/shared-ui/eds-footer/eds-footer.js +0 -189
- package/dist/collection/shared-ui/eds-footer/eds-footer.stories.js +0 -44
- package/dist/collection/shared-ui/eds-form/eds-form.css +0 -3
- package/dist/collection/shared-ui/eds-form/eds-form.js +0 -441
- package/dist/collection/shared-ui/eds-form/eds-form.stories.js +0 -73
- package/dist/collection/shared-ui/eds-frame/eds-frame.css +0 -116
- package/dist/collection/shared-ui/eds-frame/eds-frame.js +0 -234
- package/dist/collection/shared-ui/eds-frame/eds-frame.stories.js +0 -52
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.css +0 -120
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.js +0 -192
- package/dist/collection/shared-ui/eds-fullscreen-menu/eds-fullscreen-menu.stories.js +0 -77
- package/dist/collection/shared-ui/eds-header/eds-header.css +0 -138
- package/dist/collection/shared-ui/eds-header/eds-header.js +0 -202
- package/dist/collection/shared-ui/eds-header/eds-header.stories.js +0 -40
- package/dist/collection/shared-ui/eds-login/eds-login.js +0 -190
- package/dist/collection/shared-ui/eds-login/eds-login.stories.js +0 -37
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.css +0 -109
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.js +0 -230
- package/dist/collection/shared-ui/eds-matomo-notice/eds-matomo-notice.stories.js +0 -36
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.css +0 -124
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.js +0 -92
- package/dist/collection/shared-ui/eds-social-networks/eds-social-networks.stories.js +0 -21
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.css +0 -29
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.js +0 -136
- package/dist/collection/shared-ui/eds-splash-screen/eds-splash-screen.stories.js +0 -23
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.css +0 -361
- package/dist/collection/shared-ui/eds-steps-v2/eds-steps-v2.js +0 -219
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.css +0 -7796
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.js +0 -221
- package/dist/collection/shared-ui/eds-tabs/eds-tabs.stories.js +0 -54
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.css +0 -51
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.js +0 -54
- package/dist/collection/shared-ui/eds-toast-manager/eds-toast-manager.stories.js +0 -25
- package/dist/collection/shared-ui/eds-user/eds-user.css +0 -7796
- package/dist/collection/shared-ui/eds-user/eds-user.js +0 -77
- package/dist/collection/shared-ui/eds-user/eds-user.stories.js +0 -45
- package/dist/collection/shared-ui/examples/eds-app-root/eds-app-root.js +0 -39
- package/dist/collection/utils/api.js +0 -27
- package/dist/collection/utils/color.js +0 -129
- package/dist/collection/utils/eds-form/formUtils.js +0 -65
- package/dist/collection/utils/eds-form/formValidators.js +0 -64
- package/dist/collection/utils/eds-form/individualValidator.js +0 -46
- package/dist/collection/utils/eds-form/validateInput.js +0 -23
- package/dist/collection/utils/global.js +0 -8
- package/dist/collection/utils/keycloak.js +0 -85
- package/dist/collection/utils/sharedUtils.js +0 -17
- package/dist/collection/utils/toastManager.js +0 -29
- package/dist/components/analytics.js +0 -56
- package/dist/components/arrow-diagonal-black.js +0 -3
- package/dist/components/arrow-right.js +0 -5
- package/dist/components/bluesky.js +0 -14
- package/dist/components/bookmark.js +0 -16
- package/dist/components/chevron-down.js +0 -12
- package/dist/components/chevron-left.js +0 -11
- package/dist/components/chevron-right.js +0 -5
- package/dist/components/chevron-up.js +0 -12
- package/dist/components/close.js +0 -5
- package/dist/components/color-primary-palette.d.ts +0 -11
- package/dist/components/color-primary-palette.js +0 -6
- package/dist/components/color-secondary-palette.d.ts +0 -11
- package/dist/components/color-secondary-palette.js +0 -6
- package/dist/components/color-support-palette.d.ts +0 -11
- package/dist/components/color-support-palette.js +0 -6
- package/dist/components/components-section.d.ts +0 -11
- package/dist/components/components-section.js +0 -202
- package/dist/components/components.css +0 -7796
- package/dist/components/copy.js +0 -5
- package/dist/components/correct-use-of-colors.d.ts +0 -11
- package/dist/components/correct-use-of-colors.js +0 -93
- package/dist/components/docs-palettes.d.ts +0 -11
- package/dist/components/docs-palettes.js +0 -96
- package/dist/components/docs-tokens.d.ts +0 -11
- package/dist/components/docs-tokens.js +0 -80
- package/dist/components/eds-accordion.d.ts +0 -11
- package/dist/components/eds-accordion.js +0 -6
- package/dist/components/eds-accordion2.js +0 -119
- package/dist/components/eds-alert.d.ts +0 -11
- package/dist/components/eds-alert.js +0 -6
- package/dist/components/eds-alert2.js +0 -135
- package/dist/components/eds-app-root.d.ts +0 -11
- package/dist/components/eds-app-root.js +0 -89
- package/dist/components/eds-avatar.d.ts +0 -11
- package/dist/components/eds-avatar.js +0 -6
- package/dist/components/eds-block-break.d.ts +0 -11
- package/dist/components/eds-block-break.js +0 -6
- package/dist/components/eds-block-break2.js +0 -34
- package/dist/components/eds-breadcrumb.d.ts +0 -11
- package/dist/components/eds-button.d.ts +0 -11
- package/dist/components/eds-button.js +0 -6
- package/dist/components/eds-card-desc.d.ts +0 -11
- package/dist/components/eds-card-desc.js +0 -6
- package/dist/components/eds-card-generic.d.ts +0 -11
- package/dist/components/eds-card-generic.js +0 -6
- package/dist/components/eds-card-generic2.js +0 -147
- package/dist/components/eds-card-project.d.ts +0 -11
- package/dist/components/eds-card-project.js +0 -109
- package/dist/components/eds-card-section.d.ts +0 -11
- package/dist/components/eds-card-section.js +0 -92
- package/dist/components/eds-card-tags.d.ts +0 -11
- package/dist/components/eds-card-tags.js +0 -45
- package/dist/components/eds-card-title.d.ts +0 -11
- package/dist/components/eds-card-title.js +0 -6
- package/dist/components/eds-card-tool.d.ts +0 -11
- package/dist/components/eds-card-tool.js +0 -137
- package/dist/components/eds-card-wrapper.d.ts +0 -11
- package/dist/components/eds-card-wrapper.js +0 -49
- package/dist/components/eds-code-block.d.ts +0 -11
- package/dist/components/eds-code-block.js +0 -6
- package/dist/components/eds-code-block2.js +0 -2510
- package/dist/components/eds-cookies-preference.d.ts +0 -11
- package/dist/components/eds-cookies-preference.js +0 -87
- package/dist/components/eds-dropdown.d.ts +0 -11
- package/dist/components/eds-dropdown.js +0 -6
- package/dist/components/eds-feedback.d.ts +0 -11
- package/dist/components/eds-feedback.js +0 -105
- package/dist/components/eds-footer.d.ts +0 -11
- package/dist/components/eds-footer.js +0 -6
- package/dist/components/eds-form.d.ts +0 -11
- package/dist/components/eds-frame.d.ts +0 -11
- package/dist/components/eds-frame.js +0 -120
- package/dist/components/eds-fullscreen-menu.d.ts +0 -11
- package/dist/components/eds-header.d.ts +0 -11
- package/dist/components/eds-icon-arrow-diagonal.d.ts +0 -11
- package/dist/components/eds-icon-arrow-diagonal.js +0 -33
- package/dist/components/eds-icon-arrow-right.d.ts +0 -11
- package/dist/components/eds-icon-arrow-right.js +0 -33
- package/dist/components/eds-icon-bluesky.d.ts +0 -11
- package/dist/components/eds-icon-bluesky.js +0 -33
- package/dist/components/eds-icon-bookmark.d.ts +0 -11
- package/dist/components/eds-icon-bookmark.js +0 -33
- package/dist/components/eds-icon-chevron-down.d.ts +0 -11
- package/dist/components/eds-icon-chevron-down.js +0 -33
- package/dist/components/eds-icon-chevron-left.d.ts +0 -11
- package/dist/components/eds-icon-chevron-left.js +0 -33
- package/dist/components/eds-icon-chevron-right.d.ts +0 -11
- package/dist/components/eds-icon-chevron-right.js +0 -33
- package/dist/components/eds-icon-chevron-up.d.ts +0 -11
- package/dist/components/eds-icon-chevron-up.js +0 -33
- package/dist/components/eds-icon-close.d.ts +0 -11
- package/dist/components/eds-icon-close.js +0 -33
- package/dist/components/eds-icon-copy.d.ts +0 -11
- package/dist/components/eds-icon-copy.js +0 -33
- package/dist/components/eds-icon-eu.d.ts +0 -11
- package/dist/components/eds-icon-eu.js +0 -33
- package/dist/components/eds-icon-external.d.ts +0 -11
- package/dist/components/eds-icon-external.js +0 -33
- package/dist/components/eds-icon-facebook.d.ts +0 -11
- package/dist/components/eds-icon-facebook.js +0 -33
- package/dist/components/eds-icon-gitlab.d.ts +0 -11
- package/dist/components/eds-icon-gitlab.js +0 -33
- package/dist/components/eds-icon-linkedin.d.ts +0 -11
- package/dist/components/eds-icon-linkedin.js +0 -33
- package/dist/components/eds-icon-loader.d.ts +0 -11
- package/dist/components/eds-icon-loader.js +0 -33
- package/dist/components/eds-icon-mastodon.d.ts +0 -11
- package/dist/components/eds-icon-mastodon.js +0 -33
- package/dist/components/eds-icon-menu.d.ts +0 -11
- package/dist/components/eds-icon-menu.js +0 -33
- package/dist/components/eds-icon-minus.d.ts +0 -11
- package/dist/components/eds-icon-minus.js +0 -33
- package/dist/components/eds-icon-more.d.ts +0 -11
- package/dist/components/eds-icon-more.js +0 -33
- package/dist/components/eds-icon-paper.d.ts +0 -11
- package/dist/components/eds-icon-paper.js +0 -33
- package/dist/components/eds-icon-plus.d.ts +0 -11
- package/dist/components/eds-icon-plus.js +0 -33
- package/dist/components/eds-icon-portal.d.ts +0 -11
- package/dist/components/eds-icon-portal.js +0 -33
- package/dist/components/eds-icon-private.d.ts +0 -11
- package/dist/components/eds-icon-private.js +0 -33
- package/dist/components/eds-icon-public.d.ts +0 -11
- package/dist/components/eds-icon-public.js +0 -33
- package/dist/components/eds-icon-search.d.ts +0 -11
- package/dist/components/eds-icon-search.js +0 -33
- package/dist/components/eds-icon-star.d.ts +0 -11
- package/dist/components/eds-icon-star.js +0 -33
- package/dist/components/eds-icon-success.d.ts +0 -11
- package/dist/components/eds-icon-success.js +0 -33
- package/dist/components/eds-icon-thumbs-down.d.ts +0 -11
- package/dist/components/eds-icon-thumbs-down.js +0 -33
- package/dist/components/eds-icon-thumbs-up.d.ts +0 -11
- package/dist/components/eds-icon-thumbs-up.js +0 -33
- package/dist/components/eds-icon-tutorial.d.ts +0 -11
- package/dist/components/eds-icon-tutorial.js +0 -33
- package/dist/components/eds-icon-twitter.d.ts +0 -11
- package/dist/components/eds-icon-twitter.js +0 -33
- package/dist/components/eds-icon-unknown.d.ts +0 -11
- package/dist/components/eds-icon-unknown.js +0 -33
- package/dist/components/eds-icon-updown.d.ts +0 -11
- package/dist/components/eds-icon-updown.js +0 -33
- package/dist/components/eds-icon-user.d.ts +0 -11
- package/dist/components/eds-icon-user.js +0 -33
- package/dist/components/eds-icon-wrapper.d.ts +0 -11
- package/dist/components/eds-icon-wrapper.js +0 -6
- package/dist/components/eds-icon-youtube.d.ts +0 -11
- package/dist/components/eds-icon-youtube.js +0 -33
- package/dist/components/eds-img.d.ts +0 -11
- package/dist/components/eds-img.js +0 -6
- package/dist/components/eds-input-field.d.ts +0 -11
- package/dist/components/eds-input-field.js +0 -6
- package/dist/components/eds-input-footer.d.ts +0 -11
- package/dist/components/eds-input-footer.js +0 -6
- package/dist/components/eds-input-footer2.js +0 -43
- package/dist/components/eds-input-label.d.ts +0 -11
- package/dist/components/eds-input-label.js +0 -6
- package/dist/components/eds-input-label2.js +0 -35
- package/dist/components/eds-input-range.d.ts +0 -11
- package/dist/components/eds-input-range.js +0 -6
- package/dist/components/eds-input-search.d.ts +0 -11
- package/dist/components/eds-input-search.js +0 -6
- package/dist/components/eds-input-select.d.ts +0 -11
- package/dist/components/eds-input-select.js +0 -6
- package/dist/components/eds-input.d.ts +0 -11
- package/dist/components/eds-input.js +0 -6
- package/dist/components/eds-link.d.ts +0 -11
- package/dist/components/eds-link.js +0 -6
- package/dist/components/eds-login.d.ts +0 -11
- package/dist/components/eds-login.js +0 -6
- package/dist/components/eds-logo.d.ts +0 -11
- package/dist/components/eds-logo.js +0 -6
- package/dist/components/eds-matomo-notice.d.ts +0 -11
- package/dist/components/eds-matomo-notice.js +0 -6
- package/dist/components/eds-matomo-notice2.js +0 -158
- package/dist/components/eds-modal.d.ts +0 -11
- package/dist/components/eds-modal.js +0 -144
- package/dist/components/eds-pagination.d.ts +0 -11
- package/dist/components/eds-pagination.js +0 -6
- package/dist/components/eds-progress-bar.d.ts +0 -11
- package/dist/components/eds-progress-bar.js +0 -6
- package/dist/components/eds-progress-bar2.js +0 -43
- package/dist/components/eds-rating.d.ts +0 -11
- package/dist/components/eds-rating.js +0 -6
- package/dist/components/eds-rating2.js +0 -91
- package/dist/components/eds-section-core.d.ts +0 -11
- package/dist/components/eds-section-core.js +0 -6
- package/dist/components/eds-section-core2.js +0 -44
- package/dist/components/eds-section-heading.d.ts +0 -11
- package/dist/components/eds-section-heading.js +0 -6
- package/dist/components/eds-section-heading2.js +0 -57
- package/dist/components/eds-social-networks.d.ts +0 -11
- package/dist/components/eds-social-networks.js +0 -6
- package/dist/components/eds-spinner.d.ts +0 -11
- package/dist/components/eds-spinner.js +0 -6
- package/dist/components/eds-spinner2.js +0 -72
- package/dist/components/eds-splash-screen.d.ts +0 -11
- package/dist/components/eds-splash-screen.js +0 -6
- package/dist/components/eds-steps-v2.d.ts +0 -11
- package/dist/components/eds-steps.d.ts +0 -11
- package/dist/components/eds-steps.js +0 -6
- package/dist/components/eds-switch.d.ts +0 -11
- package/dist/components/eds-switch.js +0 -57
- package/dist/components/eds-table.d.ts +0 -11
- package/dist/components/eds-table.js +0 -6
- package/dist/components/eds-tabs.d.ts +0 -11
- package/dist/components/eds-tabs.js +0 -152
- package/dist/components/eds-tag.d.ts +0 -11
- package/dist/components/eds-tag.js +0 -6
- package/dist/components/eds-timeline.d.ts +0 -11
- package/dist/components/eds-timeline.js +0 -119
- package/dist/components/eds-toast-manager.d.ts +0 -11
- package/dist/components/eds-toast-manager.js +0 -80
- package/dist/components/eds-toast.d.ts +0 -11
- package/dist/components/eds-toast.js +0 -6
- package/dist/components/eds-toast2.js +0 -104
- package/dist/components/eds-tooltip.d.ts +0 -11
- package/dist/components/eds-tooltip.js +0 -129
- package/dist/components/eds-trl.d.ts +0 -11
- package/dist/components/eds-trl.js +0 -138
- package/dist/components/eds-user.d.ts +0 -11
- package/dist/components/eu.js +0 -30
- package/dist/components/facebook.js +0 -14
- package/dist/components/gradient-primary-palette.d.ts +0 -11
- package/dist/components/gradient-primary-palette.js +0 -6
- package/dist/components/gradient-secondary-palette.d.ts +0 -11
- package/dist/components/gradient-secondary-palette.js +0 -6
- package/dist/components/gradient-support-palette.d.ts +0 -11
- package/dist/components/gradient-support-palette.js +0 -6
- package/dist/components/incorrect-use-of-colors.d.ts +0 -11
- package/dist/components/incorrect-use-of-colors.js +0 -81
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -1
- package/dist/components/linkedin.js +0 -28
- package/dist/components/loader.js +0 -30
- package/dist/components/logo-color-margins.js +0 -118
- package/dist/components/logo-color.js +0 -115
- package/dist/components/logo-space.d.ts +0 -11
- package/dist/components/logo-space.js +0 -101
- package/dist/components/logo-variations-horizontal.d.ts +0 -11
- package/dist/components/logo-variations-horizontal.js +0 -6
- package/dist/components/logo-variations-tabs.d.ts +0 -11
- package/dist/components/logo-variations-tabs.js +0 -60
- package/dist/components/logo-variations-vertical.d.ts +0 -11
- package/dist/components/logo-variations-vertical.js +0 -6
- package/dist/components/logo-white-no-bg.js +0 -1029
- package/dist/components/logo-wrong-usage.d.ts +0 -11
- package/dist/components/logo-wrong-usage.js +0 -35
- package/dist/components/mastodon.js +0 -14
- package/dist/components/menu.js +0 -11
- package/dist/components/minus.js +0 -11
- package/dist/components/mono.js +0 -11
- package/dist/components/more.js +0 -13
- package/dist/components/p-024c7937.js +0 -1
- package/dist/components/p-0467ceb5.entry.js +0 -1
- package/dist/components/p-05754401.js +0 -1
- package/dist/components/p-063b0683.entry.js +0 -1
- package/dist/components/p-0be28996.js +0 -1
- package/dist/components/p-0ce924b1.entry.js +0 -1
- package/dist/components/p-0e6d43c5.js +0 -1
- package/dist/components/p-112122d6.js +0 -1
- package/dist/components/p-1309a74c.entry.js +0 -1
- package/dist/components/p-13efafb9.js +0 -1
- package/dist/components/p-18eb23ff.entry.js +0 -1
- package/dist/components/p-1aab55cf.entry.js +0 -1
- package/dist/components/p-1b2913c8.js +0 -1
- package/dist/components/p-1ded61bd.js +0 -1
- package/dist/components/p-2066b033.js +0 -1
- package/dist/components/p-20b3a999.entry.js +0 -1
- package/dist/components/p-20e9ae7f.entry.js +0 -1
- package/dist/components/p-2117611b.js +0 -1
- package/dist/components/p-21a746a4.entry.js +0 -9
- package/dist/components/p-22f9e720.js +0 -1
- package/dist/components/p-2692f93d.js +0 -1
- package/dist/components/p-29041952.js +0 -1
- package/dist/components/p-29e807f5.entry.js +0 -1
- package/dist/components/p-2c1be2bb.entry.js +0 -1
- package/dist/components/p-32e6c4df.js +0 -1
- package/dist/components/p-35ed7ebf.entry.js +0 -1
- package/dist/components/p-373119b3.js +0 -1
- package/dist/components/p-376b706b.entry.js +0 -1
- package/dist/components/p-3932d0af.entry.js +0 -1
- package/dist/components/p-3a7be9a7.entry.js +0 -1
- package/dist/components/p-3af94671.entry.js +0 -1
- package/dist/components/p-3f480c3c.entry.js +0 -1
- package/dist/components/p-41e89554.entry.js +0 -1
- package/dist/components/p-435a8942.entry.js +0 -1
- package/dist/components/p-4587d0ef.js +0 -1
- package/dist/components/p-4620ebf5.entry.js +0 -1
- package/dist/components/p-4687b64c.js +0 -1
- package/dist/components/p-46d0716d.js +0 -1
- package/dist/components/p-4c7852f8.entry.js +0 -1
- package/dist/components/p-4e8a317b.entry.js +0 -1
- package/dist/components/p-50e27321.js +0 -1
- package/dist/components/p-526cdc57.entry.js +0 -1
- package/dist/components/p-52913e2e.entry.js +0 -1
- package/dist/components/p-54b8f143.js +0 -1
- package/dist/components/p-5ab1d64a.js +0 -1
- package/dist/components/p-5d046674.js +0 -1
- package/dist/components/p-622dd2a1.entry.js +0 -1
- package/dist/components/p-6404e157.entry.js +0 -1
- package/dist/components/p-66bb44c9.entry.js +0 -1
- package/dist/components/p-694fc085.js +0 -1
- package/dist/components/p-69c5074b.js +0 -1
- package/dist/components/p-6dc26e53.entry.js +0 -1
- package/dist/components/p-7198c024.js +0 -1
- package/dist/components/p-78fa7132.entry.js +0 -1
- package/dist/components/p-7dce734a.entry.js +0 -1
- package/dist/components/p-7fa88255.entry.js +0 -1
- package/dist/components/p-81899237.js +0 -1
- package/dist/components/p-83936521.entry.js +0 -1
- package/dist/components/p-83ff4a95.js +0 -1
- package/dist/components/p-8527ef5f.entry.js +0 -1
- package/dist/components/p-8653bc36.entry.js +0 -1
- package/dist/components/p-86bb73dc.js +0 -1
- package/dist/components/p-8983de37.js +0 -1
- package/dist/components/p-8baa7e01.entry.js +0 -1
- package/dist/components/p-8e3c6c63.entry.js +0 -1
- package/dist/components/p-91440d2f.entry.js +0 -1
- package/dist/components/p-923f67b5.entry.js +0 -1
- package/dist/components/p-93093977.entry.js +0 -1
- package/dist/components/p-941240b5.entry.js +0 -1
- package/dist/components/p-94b1f974.entry.js +0 -1
- package/dist/components/p-97e95520.entry.js +0 -1
- package/dist/components/p-9873ebec.entry.js +0 -1
- package/dist/components/p-9a1a6df1.entry.js +0 -1
- package/dist/components/p-9c5a453b.js +0 -1
- package/dist/components/p-9dc879c9.entry.js +0 -1
- package/dist/components/p-a1d55013.entry.js +0 -1
- package/dist/components/p-a56f0579.entry.js +0 -1
- package/dist/components/p-a8b0fe92.entry.js +0 -1
- package/dist/components/p-acc4d234.entry.js +0 -1
- package/dist/components/p-aefcb641.js +0 -1
- package/dist/components/p-b0b37831.entry.js +0 -1
- package/dist/components/p-b299b89a.entry.js +0 -1
- package/dist/components/p-b2b46793.entry.js +0 -1
- package/dist/components/p-b73410de.js +0 -1
- package/dist/components/p-b76aa402.entry.js +0 -1
- package/dist/components/p-b822abb7.js +0 -1
- package/dist/components/p-b8ba7e5c.entry.js +0 -1
- package/dist/components/p-b931a634.entry.js +0 -1
- package/dist/components/p-b96fc468.entry.js +0 -1
- package/dist/components/p-ba720bf3.js +0 -1
- package/dist/components/p-bab07ba6.entry.js +0 -1
- package/dist/components/p-c1e4ef92.js +0 -1
- package/dist/components/p-c5c782e7.entry.js +0 -1
- package/dist/components/p-c776b6f8.js +0 -1
- package/dist/components/p-c86243a3.entry.js +0 -1
- package/dist/components/p-c8abff96.entry.js +0 -1
- package/dist/components/p-c8e7c854.js +0 -1
- package/dist/components/p-c935aa46.entry.js +0 -1
- package/dist/components/p-c99745a8.entry.js +0 -1
- package/dist/components/p-cccacbd3.js +0 -2
- package/dist/components/p-cccff1e3.entry.js +0 -1
- package/dist/components/p-cd624044.entry.js +0 -1
- package/dist/components/p-cdc36ea8.entry.js +0 -1
- package/dist/components/p-cdf19579.js +0 -1
- package/dist/components/p-d525ed36.entry.js +0 -1
- package/dist/components/p-d94a44b9.entry.js +0 -1
- package/dist/components/p-d962849c.js +0 -1
- package/dist/components/p-dbcf1f0e.entry.js +0 -1
- package/dist/components/p-dcc08064.entry.js +0 -1
- package/dist/components/p-dcd4de1f.entry.js +0 -1
- package/dist/components/p-e1255160.js +0 -1
- package/dist/components/p-e2d5a487.js +0 -1
- package/dist/components/p-e42eb100.entry.js +0 -1
- package/dist/components/p-e64cd6f7.entry.js +0 -1
- package/dist/components/p-e710c860.entry.js +0 -1
- package/dist/components/p-ea089f4e.entry.js +0 -1
- package/dist/components/p-eb0b93d5.js +0 -1
- package/dist/components/p-ecbb679f.js +0 -1
- package/dist/components/p-ece618b3.js +0 -1
- package/dist/components/p-eebf7ebf.entry.js +0 -1
- package/dist/components/p-efc73304.entry.js +0 -1
- package/dist/components/p-f13e9ab1.entry.js +0 -1
- package/dist/components/p-f48a4313.entry.js +0 -1
- package/dist/components/p-f4ce515a.entry.js +0 -1
- package/dist/components/p-ff7acb55.entry.js +0 -1
- package/dist/components/paper.js +0 -15
- package/dist/components/plus.js +0 -12
- package/dist/components/portal.js +0 -18
- package/dist/components/primary.js +0 -65
- package/dist/components/primary2.js +0 -67
- package/dist/components/private.js +0 -25
- package/dist/components/public.js +0 -16
- package/dist/components/search.js +0 -12
- package/dist/components/secondary.js +0 -92
- package/dist/components/secondary2.js +0 -107
- package/dist/components/star.js +0 -5
- package/dist/components/success.js +0 -18
- package/dist/components/support.js +0 -94
- package/dist/components/support2.js +0 -85
- package/dist/components/svg-repository.d.ts +0 -11
- package/dist/components/svg-repository.js +0 -417
- package/dist/components/thumbs-down.js +0 -5
- package/dist/components/thumbs-up.js +0 -6
- package/dist/components/token-list.d.ts +0 -11
- package/dist/components/token-list.js +0 -6
- package/dist/components/token-radii.d.ts +0 -11
- package/dist/components/token-radii.js +0 -6
- package/dist/components/token-radii2.js +0 -47
- package/dist/components/token-ratios.d.ts +0 -11
- package/dist/components/token-ratios.js +0 -54
- package/dist/components/token-shadows.d.ts +0 -11
- package/dist/components/token-shadows.js +0 -6
- package/dist/components/token-shadows2.js +0 -56
- package/dist/components/token-spacing.d.ts +0 -11
- package/dist/components/token-spacing.js +0 -29
- package/dist/components/token-typography.d.ts +0 -11
- package/dist/components/token-typography.js +0 -255
- package/dist/components/tutotial.js +0 -27
- package/dist/components/twitter.js +0 -14
- package/dist/components/unknown.js +0 -22
- package/dist/components/up-and-down.js +0 -12
- package/dist/components/user.js +0 -16
- package/dist/components/youtube.js +0 -14
- package/dist/esm/analytics-44b1416b.js +0 -56
- package/dist/esm/arrow-diagonal-black-8f0494c3.js +0 -3
- package/dist/esm/arrow-right-9322ba8a.js +0 -5
- package/dist/esm/bluesky-cc5edd2d.js +0 -14
- package/dist/esm/bookmark-c200037c.js +0 -16
- package/dist/esm/chevron-down-6144c823.js +0 -12
- package/dist/esm/chevron-left-ca6c66e1.js +0 -11
- package/dist/esm/chevron-right-b88ed2d4.js +0 -5
- package/dist/esm/chevron-up-c66bd477.js +0 -12
- package/dist/esm/close-87fc0d63.js +0 -5
- package/dist/esm/color-2554aad6.js +0 -132
- package/dist/esm/color-primary-palette_6.entry.js +0 -331
- package/dist/esm/components.js +0 -20
- package/dist/esm/copy-03b72cb6.js +0 -5
- package/dist/esm/eds-avatar_26.entry.js +0 -2252
- package/dist/esm/eds-card-desc_2.entry.js +0 -73
- package/dist/esm/eds-login_2.entry.js +0 -2095
- package/dist/esm/eds-pagination_2.entry.js +0 -398
- package/dist/esm/eu-9ddde93a.js +0 -30
- package/dist/esm/facebook-9cb5c17f.js +0 -14
- package/dist/esm/index-39c58238.js +0 -46
- package/dist/esm/index.js +0 -1
- package/dist/esm/linkedin-e8650abb.js +0 -28
- package/dist/esm/loader-c9628637.js +0 -30
- package/dist/esm/loader.js +0 -11
- package/dist/esm/logo-color-7f1fd803.js +0 -115
- package/dist/esm/logo-color-margins-ff8ce71b.js +0 -118
- package/dist/esm/logo-variations-horizontal_2.entry.js +0 -31
- package/dist/esm/logo-white-no-bg-f382f86f.js +0 -1029
- package/dist/esm/mastodon-3703ec61.js +0 -14
- package/dist/esm/menu-340ea948.js +0 -11
- package/dist/esm/minus-b30a7c71.js +0 -11
- package/dist/esm/mono-53f70232.js +0 -11
- package/dist/esm/more-4449d549.js +0 -13
- package/dist/esm/paper-8e74ea31.js +0 -15
- package/dist/esm/plus-89c07be2.js +0 -12
- package/dist/esm/portal-d6c8ce56.js +0 -18
- package/dist/esm/private-1c25ff8e.js +0 -25
- package/dist/esm/public-d4d8c585.js +0 -16
- package/dist/esm/search-fbcd79c2.js +0 -12
- package/dist/esm/sharedUtils-a550989c.js +0 -19
- package/dist/esm/star-0da9b5e9.js +0 -5
- package/dist/esm/success-443809da.js +0 -18
- package/dist/esm/svg-repository.entry.js +0 -333
- package/dist/esm/thumbs-down-a18fd049.js +0 -5
- package/dist/esm/thumbs-up-c19a71bc.js +0 -6
- package/dist/esm/toastManager-d9eee791.js +0 -31
- package/dist/esm/token-list_3.entry.js +0 -294
- package/dist/esm/tutotial-150ee1fd.js +0 -27
- package/dist/esm/twitter-ac21b505.js +0 -14
- package/dist/esm/unknown-ed01a24c.js +0 -22
- package/dist/esm/up-and-down-d747abee.js +0 -12
- package/dist/esm/user-71ebdc15.js +0 -16
- package/dist/esm/youtube-efbfbdc4.js +0 -14
- package/dist/hydrate/index.d.ts +0 -242
- package/dist/hydrate/index.js +0 -32729
- package/dist/hydrate/index.mjs +0 -32721
- package/dist/hydrate/package.json +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -75
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/loader/package.json +0 -11
- /package/dist/{esm → components}/app-globals-0f993ce5.js +0 -0
- /package/dist/components/{index2.js → index-144c9ae8.js} +0 -0
- /package/dist/components/{sharedUtils.js → sharedUtils-6a231dd4.js} +0 -0
- /package/dist/components/{toastManager.js → toastManager-b716afd8.js} +0 -0
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* `EdsUser` is a user component for managing and displaying
|
|
4
|
-
* the user's auth information. Displays a user dropdown menu when authenticated.
|
|
5
|
-
*
|
|
6
|
-
* This component is ideal for embedding into any layout requiring user authentication.
|
|
7
|
-
*/
|
|
8
|
-
export class EdsUser {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.user = undefined;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Helper getter to ensure we work with a User object.
|
|
14
|
-
*/
|
|
15
|
-
get parsedUser() {
|
|
16
|
-
if (typeof this.user === 'string') {
|
|
17
|
-
try {
|
|
18
|
-
return JSON.parse(this.user);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
//console.error('Failed to parse user JSON:', error);
|
|
22
|
-
return {};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return this.user;
|
|
26
|
-
}
|
|
27
|
-
async componentWillLoad() { }
|
|
28
|
-
get initials() {
|
|
29
|
-
var _a, _b, _c, _d;
|
|
30
|
-
const user = this.parsedUser;
|
|
31
|
-
const initials = `${((_a = user.given_name) === null || _a === void 0 ? void 0 : _a.charAt(0)) || ''}${((_b = user.family_name) === null || _b === void 0 ? void 0 : _b.charAt(0)) || ''}`.toUpperCase();
|
|
32
|
-
return initials || ((_d = (_c = user.name) === null || _c === void 0 ? void 0 : _c.charAt(0)) === null || _d === void 0 ? void 0 : _d.toUpperCase()) || '';
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
const user = this.parsedUser;
|
|
36
|
-
return (h("div", { key: '099427eda976cd3fffcd201a2629d9db752f427d', class: "block" }, h("div", { key: '33e8e4a2aca3fa48420abbd9304ed1d681dbad60', class: "flex items-center" }, h("eds-dropdown", { key: '6f25836fbe49e6cb08e7fe8f057a094e21271784', label: `Welcome, ${user.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, h("div", { key: '143b3561a2b0484f60df993882d1c9e74e413859', class: "min-w-[280px] p-8" }, h("div", { key: '5f178c0ce2a4b08a4bef0e2a2348b5372fc1a723', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, h("eds-avatar", { key: '6ee2187e673738f3ac5e8bbd5ef56b4df69a51f5', "first-name": user.given_name, "last-name": user.family_name, initials: this.initials, color: "grey" }), h("div", { key: '73a58dfadc56f71e75f14d7edf4385682d45126a', class: "max-w-full" }, user.name && h("p", { key: '17d87baf2254d8b1667eb2ba196acc783f66a5d7', class: "f-ui-01 text-default w-full text-ellipsis" }, user.name), user.preferred_username && h("p", { key: 'cc8c94e020735521b046805067c1ecef86ccb4bf', class: "f-ui-03-light text-light mt-4" }, user.preferred_username), user.email && h("p", { key: '70989c3cc79d174f3ad99dc40db7b69a22f14d34', class: "f-ui-03-light text-light mt-4" }, user.email))), h("div", { key: 'f028bde937b98a01c2f9d5028bdd5038003193a0', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, h("slot", { key: '3f6d7c1c540f93c9a35e6c6fa30c68bf06fa1a92' })))))));
|
|
37
|
-
}
|
|
38
|
-
static get is() { return "eds-user"; }
|
|
39
|
-
static get encapsulation() { return "shadow"; }
|
|
40
|
-
static get originalStyleUrls() {
|
|
41
|
-
return {
|
|
42
|
-
"$": ["eds-user.css"]
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
static get styleUrls() {
|
|
46
|
-
return {
|
|
47
|
-
"$": ["eds-user.css"]
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
static get properties() {
|
|
51
|
-
return {
|
|
52
|
-
"user": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"mutable": true,
|
|
55
|
-
"complexType": {
|
|
56
|
-
"original": "string | User",
|
|
57
|
-
"resolved": "User | string",
|
|
58
|
-
"references": {
|
|
59
|
-
"User": {
|
|
60
|
-
"location": "global",
|
|
61
|
-
"id": "global::User"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": "The user object containing user information, or a JSON string to be parsed."
|
|
70
|
-
},
|
|
71
|
-
"attribute": "user",
|
|
72
|
-
"reflect": false
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
static get elementRef() { return "hostEl"; }
|
|
77
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Shared Ui/User',
|
|
3
|
-
component: 'eds-user',
|
|
4
|
-
argTypes: {
|
|
5
|
-
user: {
|
|
6
|
-
control: 'object',
|
|
7
|
-
description: 'User object containing authentication information'
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
args: {
|
|
11
|
-
user: {
|
|
12
|
-
given_name: 'John',
|
|
13
|
-
family_name: 'Doe',
|
|
14
|
-
preferred_username: 'johndoe',
|
|
15
|
-
name: 'John Doe',
|
|
16
|
-
email: 'john.doe@example.com'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
export const Default = {
|
|
21
|
-
render: (args) => {
|
|
22
|
-
// Create a container element
|
|
23
|
-
const container = document.createElement('div');
|
|
24
|
-
container.innerHTML = `
|
|
25
|
-
<eds-header>
|
|
26
|
-
<div class="px-16">
|
|
27
|
-
<eds-user></eds-user>
|
|
28
|
-
</div>
|
|
29
|
-
</eds-header>
|
|
30
|
-
`;
|
|
31
|
-
// Grab the eds-user element and assign the user property
|
|
32
|
-
const edsUser = container.querySelector('eds-user');
|
|
33
|
-
edsUser.user = args.user;
|
|
34
|
-
return container;
|
|
35
|
-
},
|
|
36
|
-
args: {
|
|
37
|
-
user: {
|
|
38
|
-
given_name: 'John',
|
|
39
|
-
family_name: 'Doe',
|
|
40
|
-
preferred_username: 'johndoe',
|
|
41
|
-
name: 'John Doe',
|
|
42
|
-
email: 'john.doe@example.com'
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export class EdsAppRoot {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.isAuthenticated = false;
|
|
8
|
-
}
|
|
9
|
-
componentWillLoad() {
|
|
10
|
-
// Create a promise for the initKeycloak event.
|
|
11
|
-
const initKeycloakPromise = new Promise((resolve) => {
|
|
12
|
-
document.addEventListener('initKeycloak', (event) => {
|
|
13
|
-
//console.log('initKeycloak event received:', event.detail);
|
|
14
|
-
resolve(event.detail);
|
|
15
|
-
}, { once: true });
|
|
16
|
-
});
|
|
17
|
-
// Create a promise for the authStatusChanged event.
|
|
18
|
-
const authStatusPromise = new Promise((resolve) => {
|
|
19
|
-
document.addEventListener('authStatusChanged', (event) => {
|
|
20
|
-
var _a;
|
|
21
|
-
this.isAuthenticated = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.authenticated;
|
|
22
|
-
//console.log('authStatusChanged event received:', event.detail);
|
|
23
|
-
resolve(event.detail);
|
|
24
|
-
}, { once: true });
|
|
25
|
-
});
|
|
26
|
-
// Combine both promises. The splash screen will hide only when both have resolved.
|
|
27
|
-
this.combinedInitPromise = Promise.all([initKeycloakPromise, authStatusPromise]);
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
return (h("div", { key: '7b0b74c02f9fa25dc3d3e5a0fd10d8b4c3a59ffe' }, h("eds-splash-screen", { key: 'e1fabb47903b011c397af3a8da59130e8455280f', inverse: true, initPromise: this.combinedInitPromise }), h("eds-login", { key: '30d8ca5116c5b8a18972df9c55bd4a947226d682', "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), h("main", { key: '16ead78b24f561049fb12609b23bff028262d9d5' }, this.isAuthenticated ? h("h1", null, "Welcome, authenticated user!") : h("h1", null, "Please log in."))));
|
|
31
|
-
}
|
|
32
|
-
static get is() { return "eds-app-root"; }
|
|
33
|
-
static get encapsulation() { return "shadow"; }
|
|
34
|
-
static get states() {
|
|
35
|
-
return {
|
|
36
|
-
"isAuthenticated": {}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// utils/api.ts
|
|
2
|
-
async function checkResponse(response) {
|
|
3
|
-
const data = await response.json().catch(() => ({}));
|
|
4
|
-
if (!response.ok) {
|
|
5
|
-
// Optionally, throw an error or return a structured error object.
|
|
6
|
-
//throw new Error(data.error || `HTTP error! Status: ${response.status}`);
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
return data;
|
|
10
|
-
}
|
|
11
|
-
export async function get(url, options = {}) {
|
|
12
|
-
const response = await fetch(url, {
|
|
13
|
-
method: 'GET',
|
|
14
|
-
headers: options.headers
|
|
15
|
-
});
|
|
16
|
-
return checkResponse(response);
|
|
17
|
-
}
|
|
18
|
-
export async function post(url, body, options = {}) {
|
|
19
|
-
// If the body is FormData, omit the 'Content-Type' header so the browser sets it correctly.
|
|
20
|
-
const headers = body instanceof FormData ? options.headers || {} : Object.assign({ 'Content-Type': 'application/json' }, options.headers);
|
|
21
|
-
const response = await fetch(url, {
|
|
22
|
-
method: 'POST',
|
|
23
|
-
headers,
|
|
24
|
-
body: body instanceof FormData ? body : JSON.stringify(body)
|
|
25
|
-
});
|
|
26
|
-
return checkResponse(response);
|
|
27
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
export const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
3
|
-
export const gradientBGColorVariants = cva([], {
|
|
4
|
-
variants: {
|
|
5
|
-
color: GRADIANT_TOKENS.reduce((acc, token) => (Object.assign(Object.assign({}, acc), { [token]: '' })), {}),
|
|
6
|
-
direction: {
|
|
7
|
-
top: '',
|
|
8
|
-
bottom: ''
|
|
9
|
-
},
|
|
10
|
-
pseudo: {
|
|
11
|
-
true: 'before:effect-opacity effect-bg-behind',
|
|
12
|
-
false: ''
|
|
13
|
-
},
|
|
14
|
-
hover: {
|
|
15
|
-
true: 'before:opacity-0 hover:before:opacity-100',
|
|
16
|
-
false: ''
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
compoundVariants: [
|
|
20
|
-
// region GREEN
|
|
21
|
-
{
|
|
22
|
-
color: 'green',
|
|
23
|
-
direction: 'top',
|
|
24
|
-
pseudo: true,
|
|
25
|
-
className: 'before:bg-gradient-01-top'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
color: 'green',
|
|
29
|
-
pseudo: true,
|
|
30
|
-
direction: 'bottom',
|
|
31
|
-
className: 'before:bg-gradient-01-bottom'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
color: 'green',
|
|
35
|
-
direction: 'top',
|
|
36
|
-
pseudo: false,
|
|
37
|
-
className: 'bg-gradient-01-top'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
color: 'green',
|
|
41
|
-
pseudo: false,
|
|
42
|
-
direction: 'bottom',
|
|
43
|
-
className: 'bg-gradient-01-bottom'
|
|
44
|
-
},
|
|
45
|
-
// endregion
|
|
46
|
-
// region YELLOW
|
|
47
|
-
{
|
|
48
|
-
color: 'yellow',
|
|
49
|
-
direction: 'top',
|
|
50
|
-
pseudo: true,
|
|
51
|
-
className: 'before:bg-gradient-02-top'
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
color: 'yellow',
|
|
55
|
-
direction: 'bottom',
|
|
56
|
-
pseudo: true,
|
|
57
|
-
className: 'before:bg-gradient-02-bottom'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
color: 'yellow',
|
|
61
|
-
direction: 'top',
|
|
62
|
-
pseudo: false,
|
|
63
|
-
className: 'bg-gradient-02-top'
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
color: 'yellow',
|
|
67
|
-
direction: 'bottom',
|
|
68
|
-
pseudo: false,
|
|
69
|
-
className: 'bg-gradient-02-bottom'
|
|
70
|
-
},
|
|
71
|
-
// endregion
|
|
72
|
-
// region PURPLE
|
|
73
|
-
{
|
|
74
|
-
color: 'purple',
|
|
75
|
-
direction: 'top',
|
|
76
|
-
pseudo: true,
|
|
77
|
-
class: 'before:bg-gradient-03-top'
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
color: 'purple',
|
|
81
|
-
direction: 'bottom',
|
|
82
|
-
pseudo: true,
|
|
83
|
-
class: 'before:bg-gradient-03-bottom'
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
color: 'purple',
|
|
87
|
-
direction: 'top',
|
|
88
|
-
pseudo: false,
|
|
89
|
-
class: 'bg-gradient-03-top'
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
color: 'purple',
|
|
93
|
-
direction: 'bottom',
|
|
94
|
-
pseudo: false,
|
|
95
|
-
class: 'bg-gradient-03-bottom'
|
|
96
|
-
},
|
|
97
|
-
// endregion
|
|
98
|
-
// region AMONG-BLUE
|
|
99
|
-
{
|
|
100
|
-
color: 'among-blue',
|
|
101
|
-
direction: 'top',
|
|
102
|
-
pseudo: true,
|
|
103
|
-
class: 'before:bg-gradient-04-top'
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
color: 'among-blue',
|
|
107
|
-
direction: 'bottom',
|
|
108
|
-
pseudo: true,
|
|
109
|
-
class: 'before:bg-gradient-04-bottom'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
color: 'among-blue',
|
|
113
|
-
direction: 'top',
|
|
114
|
-
pseudo: false,
|
|
115
|
-
class: 'bg-gradient-04-top'
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
color: 'among-blue',
|
|
119
|
-
direction: 'bottom',
|
|
120
|
-
pseudo: false,
|
|
121
|
-
class: 'bg-gradient-04-bottom'
|
|
122
|
-
}
|
|
123
|
-
// endregion
|
|
124
|
-
],
|
|
125
|
-
defaultVariants: {
|
|
126
|
-
direction: 'top',
|
|
127
|
-
pseudo: true
|
|
128
|
-
}
|
|
129
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { findFieldElement } from "./formValidators";
|
|
2
|
-
/**
|
|
3
|
-
* Updates state values based on draft data and, after a delay, updates the corresponding DOM inputs.
|
|
4
|
-
*/
|
|
5
|
-
export function getFormInitData({ initData, parsedFields, currentValues
|
|
6
|
-
//formEl,
|
|
7
|
-
//isFieldVisible
|
|
8
|
-
}) {
|
|
9
|
-
// Pass 1: Update state for all fields.
|
|
10
|
-
const updatedValues = Object.assign({}, currentValues);
|
|
11
|
-
parsedFields.forEach((field) => {
|
|
12
|
-
const value = initData[field.name];
|
|
13
|
-
if (value !== undefined) {
|
|
14
|
-
updatedValues[field.name] = value;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
return { updatedValues };
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Updates state values based on draft data and, after a delay, updates the corresponding DOM inputs.
|
|
21
|
-
*/
|
|
22
|
-
export function getFormDraftData({ draftData, parsedFields, currentValues, formEl, isFieldVisible }) {
|
|
23
|
-
// Pass 1: Update state for all fields.
|
|
24
|
-
const updatedValues = Object.assign({}, currentValues);
|
|
25
|
-
parsedFields.forEach((field) => {
|
|
26
|
-
const value = draftData[field.name];
|
|
27
|
-
if (value !== undefined) {
|
|
28
|
-
updatedValues[field.name] = value;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
// Pass 2: Delay DOM updates to ensure nested fields are rendered.
|
|
32
|
-
setTimeout(() => {
|
|
33
|
-
parsedFields.forEach((field) => {
|
|
34
|
-
// Only update if the field is visible.
|
|
35
|
-
if (isFieldVisible(field, updatedValues)) {
|
|
36
|
-
const value = draftData[field.name];
|
|
37
|
-
if (value !== undefined) {
|
|
38
|
-
if (field.type === 'checkbox' || field.type === 'radio') {
|
|
39
|
-
// Query all eds-input-field components and update matching inputs.
|
|
40
|
-
const elements = Array.from(formEl.querySelectorAll('eds-input-field'));
|
|
41
|
-
elements.forEach((element) => {
|
|
42
|
-
if (element.shadowRoot) {
|
|
43
|
-
const inputs = Array.from(element.shadowRoot.querySelectorAll(`[name="${field.name}"]`));
|
|
44
|
-
// Convert stored comma-separated value into a trimmed array.
|
|
45
|
-
const valuesArray = value.split(',').map((v) => v.trim());
|
|
46
|
-
inputs.forEach((inputEl) => {
|
|
47
|
-
// eslint-disable-next-line
|
|
48
|
-
inputEl.checked = valuesArray.includes(inputEl.value);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
// For non-checkbox/radio inputs, update the first matching element using findFieldElement.
|
|
55
|
-
const inputEl = findFieldElement(formEl, field.name);
|
|
56
|
-
if (inputEl) {
|
|
57
|
-
inputEl.value = value;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}, 50); // A 50ms delay to allow re-render
|
|
64
|
-
return { updatedValues };
|
|
65
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { validateField, validateFieldGroup, validateSingleBox } from "./individualValidator";
|
|
2
|
-
/**
|
|
3
|
-
* Finds the first input element for a given field name inside eds-input-field components.
|
|
4
|
-
*/
|
|
5
|
-
export function findFieldElement(formEl, name) {
|
|
6
|
-
const elements = Array.from(formEl.querySelectorAll('eds-input-field'));
|
|
7
|
-
for (const element of elements) {
|
|
8
|
-
if (element.shadowRoot) {
|
|
9
|
-
const input = element.shadowRoot.querySelector(`[name="${name}"]`);
|
|
10
|
-
if (input) {
|
|
11
|
-
return input;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Validates all fields and returns an object containing the errors and a flag indicating any errors.
|
|
19
|
-
*/
|
|
20
|
-
export function validateFormFields(parsedFields, formEl, values,
|
|
21
|
-
// eslint-disable-next-line
|
|
22
|
-
isFieldVisible) {
|
|
23
|
-
const errors = {};
|
|
24
|
-
let hasError = false;
|
|
25
|
-
parsedFields.forEach((field) => {
|
|
26
|
-
// Only validate fields that are visible.
|
|
27
|
-
if (!isFieldVisible(field, values)) {
|
|
28
|
-
// If a field is hidden, clear its error.
|
|
29
|
-
delete errors[field.name];
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
if (field.type !== 'hidden') {
|
|
33
|
-
if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
|
|
34
|
-
// Single checkbox or radio without multiple options
|
|
35
|
-
const fieldErrors = validateSingleBox(field.name, field.required, formEl);
|
|
36
|
-
if (fieldErrors.length > 0) {
|
|
37
|
-
errors[field.name] = fieldErrors;
|
|
38
|
-
hasError = true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else if (field.options && (field.type === 'checkbox' || field.type === 'radio')) {
|
|
42
|
-
// Checkbox or radio group with options
|
|
43
|
-
const fieldErrors = validateFieldGroup(field.name, field.required, formEl);
|
|
44
|
-
if (fieldErrors.length > 0) {
|
|
45
|
-
errors[field.name] = fieldErrors;
|
|
46
|
-
hasError = true;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
// For all other types, find the first matching element.
|
|
51
|
-
const inputEl = findFieldElement(formEl, field.name);
|
|
52
|
-
if (inputEl) {
|
|
53
|
-
const value = inputEl.value;
|
|
54
|
-
const fieldErrors = validateField(field.name, value, field.type, field.required, field.maxlength);
|
|
55
|
-
if (fieldErrors.length > 0) {
|
|
56
|
-
errors[field.name] = fieldErrors;
|
|
57
|
-
hasError = true;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
return { errors, hasError };
|
|
64
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// utils/validators.ts
|
|
2
|
-
export function validateField(name, value, type, required, maxLength) {
|
|
3
|
-
const errors = [];
|
|
4
|
-
if (required && !value) {
|
|
5
|
-
errors.push(`${name} is required.`);
|
|
6
|
-
}
|
|
7
|
-
if (maxLength && typeof value === 'string' && value.length > maxLength) {
|
|
8
|
-
errors.push(`${name} must be at most ${maxLength} characters.`);
|
|
9
|
-
}
|
|
10
|
-
if (type === 'email' && value && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value.toString())) {
|
|
11
|
-
errors.push('Invalid email format.');
|
|
12
|
-
}
|
|
13
|
-
return errors;
|
|
14
|
-
}
|
|
15
|
-
export function validateFieldGroup(name, required, formEl) {
|
|
16
|
-
// Find all eds-input-field components that contain inputs with the given name.
|
|
17
|
-
const groupFields = Array.from(formEl.querySelectorAll('eds-input-field')).filter((edsField) => { var _a, _b; return ((_b = (_a = edsField.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`input[name="${name}"]`)) === null || _b === void 0 ? void 0 : _b.length) > 0; });
|
|
18
|
-
// Collect all input elements with the matching name inside those components.
|
|
19
|
-
const groupElements = groupFields.flatMap((edsField) => { var _a; return Array.from(((_a = edsField.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`input[name="${name}"]`)) || []); });
|
|
20
|
-
// Check if at least one input is checked.
|
|
21
|
-
const isChecked = groupElements.some((el) => el.checked);
|
|
22
|
-
const errors = [];
|
|
23
|
-
if (required && !isChecked) {
|
|
24
|
-
errors.push(`At least one option in ${name} is required.`);
|
|
25
|
-
}
|
|
26
|
-
return errors;
|
|
27
|
-
}
|
|
28
|
-
export function validateSingleBox(name, required, formEl) {
|
|
29
|
-
var _a;
|
|
30
|
-
const errors = [];
|
|
31
|
-
// Find the eds-input-field component containing the input with the given name.
|
|
32
|
-
const edsField = Array.from(formEl.querySelectorAll('eds-input-field')).find((field) => { var _a; return (_a = field.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`[name="${name}"]`); });
|
|
33
|
-
// If no such field is found and it's required, return an error.
|
|
34
|
-
if (!edsField) {
|
|
35
|
-
if (required) {
|
|
36
|
-
errors.push(`${name} is required.`);
|
|
37
|
-
}
|
|
38
|
-
return errors;
|
|
39
|
-
}
|
|
40
|
-
// Query within the component's shadow root.
|
|
41
|
-
const inputEl = (_a = edsField.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`[name="${name}"]`);
|
|
42
|
-
if (required && inputEl && !inputEl.checked) {
|
|
43
|
-
errors.push(`${name} is required.`);
|
|
44
|
-
}
|
|
45
|
-
return errors;
|
|
46
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { validateField, validateFieldGroup, validateSingleBox } from "./individualValidator"; // your existing text/email validator
|
|
2
|
-
/**
|
|
3
|
-
* Validates a field based on its type and returns an array of error messages.
|
|
4
|
-
* @param field - The field configuration object.
|
|
5
|
-
* @param value - The input value (if applicable).
|
|
6
|
-
* @param formEl - The form element used for DOM queries.
|
|
7
|
-
*/
|
|
8
|
-
export function validateInputField(field, value, formEl) {
|
|
9
|
-
if (field.type === 'checkbox' || field.type === 'radio') {
|
|
10
|
-
if (field.options) {
|
|
11
|
-
return validateFieldGroup(field.name, field.required, formEl);
|
|
12
|
-
}
|
|
13
|
-
return validateSingleBox(field.name, field.required, formEl);
|
|
14
|
-
}
|
|
15
|
-
return validateField(field.name, value, field.type, field.required, field.maxlength);
|
|
16
|
-
}
|
|
17
|
-
export function isFieldVisible(field, values) {
|
|
18
|
-
if (!field.condition) {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
const parentValue = values[field.condition.field];
|
|
22
|
-
return parentValue === field.condition.value;
|
|
23
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import Keycloak from "keycloak-js/lib/keycloak";
|
|
2
|
-
let keycloak = null;
|
|
3
|
-
let keycloakInitPromise = null;
|
|
4
|
-
// Initialize Keycloak with an optional silent check
|
|
5
|
-
export function initKeycloak(config, silentCheck = true) {
|
|
6
|
-
// If already initializing or initialized, return the cached promise
|
|
7
|
-
if (keycloakInitPromise) {
|
|
8
|
-
// eslint-disable-next-line
|
|
9
|
-
console.log('Keycloak already initialized, returning from cache');
|
|
10
|
-
return keycloakInitPromise;
|
|
11
|
-
}
|
|
12
|
-
if (!keycloak) {
|
|
13
|
-
keycloak = new Keycloak({
|
|
14
|
-
url: config.url,
|
|
15
|
-
realm: config.realm,
|
|
16
|
-
clientId: config.clientId
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
keycloakInitPromise = keycloak
|
|
20
|
-
.init({
|
|
21
|
-
onLoad: silentCheck ? 'check-sso' : 'login-required',
|
|
22
|
-
checkLoginIframe: false
|
|
23
|
-
//silentCheckSsoRedirectUri: `${window.location.origin}/silent-check-sso.html`, // Ensure this file is set up
|
|
24
|
-
})
|
|
25
|
-
.then((authenticated) => authenticated)
|
|
26
|
-
.catch((error) => {
|
|
27
|
-
// eslint-disable-next-line
|
|
28
|
-
console.error('Failed to initialize Keycloak:', error);
|
|
29
|
-
return false;
|
|
30
|
-
});
|
|
31
|
-
return keycloakInitPromise;
|
|
32
|
-
}
|
|
33
|
-
// Get the username of the authenticated user
|
|
34
|
-
export function getUsername() {
|
|
35
|
-
if (keycloak && keycloak.tokenParsed) {
|
|
36
|
-
return keycloak.tokenParsed.preferred_username || 'Unknown';
|
|
37
|
-
}
|
|
38
|
-
return 'Unknown';
|
|
39
|
-
}
|
|
40
|
-
export function getUser() {
|
|
41
|
-
if ((keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated) && (keycloak === null || keycloak === void 0 ? void 0 : keycloak.idTokenParsed)) {
|
|
42
|
-
return {
|
|
43
|
-
fullname: keycloak.idTokenParsed.name,
|
|
44
|
-
email: keycloak.idTokenParsed.email,
|
|
45
|
-
lastname: keycloak.idTokenParsed.family_name,
|
|
46
|
-
firstname: keycloak.idTokenParsed.given_name,
|
|
47
|
-
username: keycloak.idTokenParsed.preferred_username,
|
|
48
|
-
background: 'grey', // Optional custom value
|
|
49
|
-
token: keycloak.token,
|
|
50
|
-
sub: keycloak.idTokenParsed.sub
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
return {};
|
|
54
|
-
}
|
|
55
|
-
// Log in the user
|
|
56
|
-
export function login() {
|
|
57
|
-
if (keycloak) {
|
|
58
|
-
keycloak.login();
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
throw new Error('Keycloak is not initialized.');
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
// Log out the user
|
|
65
|
-
export function logout() {
|
|
66
|
-
if (keycloak) {
|
|
67
|
-
keycloak.logout();
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
throw new Error('Keycloak is not initialized.');
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
// Check if the user is authenticated
|
|
74
|
-
export function isAuthenticated() {
|
|
75
|
-
return !!(keycloak === null || keycloak === void 0 ? void 0 : keycloak.authenticated);
|
|
76
|
-
}
|
|
77
|
-
export async function checkServerAvailability(url) {
|
|
78
|
-
try {
|
|
79
|
-
const response = await fetch(url, { method: 'HEAD', mode: 'no-cors' });
|
|
80
|
-
return response.ok || response.type === 'opaque';
|
|
81
|
-
}
|
|
82
|
-
catch (_a) {
|
|
83
|
-
return false;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export function parseData(input) {
|
|
2
|
-
if (typeof input === 'string') {
|
|
3
|
-
try {
|
|
4
|
-
const parsed = JSON.parse(input);
|
|
5
|
-
return Array.isArray(parsed) ? parsed : [];
|
|
6
|
-
}
|
|
7
|
-
catch (e) {
|
|
8
|
-
// eslint-disable-next-line
|
|
9
|
-
console.error('Error parsing data:', e);
|
|
10
|
-
return [];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
else if (Array.isArray(input)) {
|
|
14
|
-
return input;
|
|
15
|
-
}
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
class ToastManager {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.toastManagerElement = null;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Initialize the ToastManager with a reference to the `eds-toast-manager` component.
|
|
7
|
-
*/
|
|
8
|
-
init(toastManagerElement) {
|
|
9
|
-
this.toastManagerElement = toastManagerElement;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Display a toast.
|
|
13
|
-
* @param message - The message to display.
|
|
14
|
-
* @param intent - The type of the toast ('success', 'error', 'warning', 'default').
|
|
15
|
-
*/
|
|
16
|
-
show(message, intent = 'default') {
|
|
17
|
-
if (!this.toastManagerElement) {
|
|
18
|
-
// eslint-disable-next-line
|
|
19
|
-
console.error('ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.');
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const event = new CustomEvent('show-toast', {
|
|
23
|
-
detail: { message, intent }
|
|
24
|
-
});
|
|
25
|
-
this.toastManagerElement.dispatchEvent(event);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
// Export a singleton instance
|
|
29
|
-
export const toast = new ToastManager();
|