@ebrains/components 0.2.0-alpha.0 → 0.4.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-3ffe3072.js → color-88793e49.js} +2 -2
- package/dist/cjs/color-primary-palette_6.cjs.entry.js +14 -14
- package/dist/cjs/components.cjs.js +1 -1
- package/dist/cjs/correct-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/{eds-alert_28.cjs.entry.js → eds-accordion_33.cjs.entry.js} +773 -162
- package/dist/cjs/eds-card-project.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-section.cjs.entry.js +18 -7
- package/dist/cjs/eds-card-tags.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-tool.cjs.entry.js +1 -1
- package/dist/cjs/eds-card-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/eds-code-block.cjs.entry.js +48 -1
- package/dist/cjs/eds-components-section.cjs.entry.js +44 -24
- package/dist/cjs/eds-docs-palettes.cjs.entry.js +1 -1
- package/dist/cjs/eds-docs-tokens.cjs.entry.js +1 -1
- package/dist/cjs/eds-login.cjs.entry.js +1 -1
- package/dist/cjs/eds-logo-variations.cjs.entry.js +27 -0
- package/dist/cjs/eds-matomo-notice.cjs.entry.js +1 -1
- package/dist/cjs/{eds-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +184 -9
- package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
- package/dist/cjs/eds-rating.cjs.entry.js +5 -7
- package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
- package/dist/cjs/eds-tabs-content.cjs.entry.js +3 -3
- package/dist/cjs/eds-tabs.cjs.entry.js +27 -6
- package/dist/cjs/eds-timeline.cjs.entry.js +77 -0
- package/dist/cjs/eds-tooltip.cjs.entry.js +11 -1
- package/dist/cjs/eds-trl.cjs.entry.js +51 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +20 -44
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logo-space.cjs.entry.js +1 -1
- package/dist/cjs/logo-variations-horizontal_2.cjs.entry.js +36 -0
- package/dist/cjs/logo-wrong-usage.cjs.entry.js +2 -2
- package/dist/cjs/token-list_3.cjs.entry.js +3 -3
- package/dist/cjs/token-ratios.cjs.entry.js +1 -1
- package/dist/cjs/token-spacing.cjs.entry.js +1 -1
- package/dist/cjs/token-typography.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/eds-accordion/eds-accordion.js +11 -20
- package/dist/collection/components/eds-alert/eds-alert.js +5 -7
- package/dist/collection/components/eds-alert/eds-alert.stories.js +4 -4
- package/dist/collection/components/eds-avatar/eds-avatar.js +1 -1
- package/dist/collection/components/eds-avatar/eds-avatar.stories.js +24 -22
- package/dist/collection/components/eds-block-break/eds-block-break.js +1 -1
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +14 -12
- package/dist/collection/components/eds-button/eds-button.js +3 -3
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-desc/eds-card-desc.js +9 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-tags/eds-card-tags.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-title/eds-card-title.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-composer/eds-card-wrapper/eds-card-wrapper.js +1 -1
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.js +14 -8
- package/dist/collection/components/eds-cards/eds-card-generic/eds-card-generic.stories.js +1 -1
- package/dist/collection/components/eds-code-block/eds-code-block.js +57 -2
- package/dist/collection/components/eds-code-block/eds-code-block.stories.js +78 -0
- package/dist/collection/components/eds-dropdown/eds-dropdown.js +11 -21
- package/dist/collection/components/eds-form/eds-form.js +41 -31
- package/dist/collection/components/eds-form/eds-form.stories.js +0 -3
- package/dist/collection/components/eds-frame/eds-frame.stories.js +19 -18
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +142 -14
- package/dist/collection/components/eds-link/eds-link.js +3 -4
- package/dist/collection/components/eds-modal/eds-modal.css +16 -0
- package/dist/collection/components/eds-modal/eds-modal.js +71 -29
- package/dist/collection/components/eds-modal/eds-modal.stories.js +34 -18
- package/dist/collection/components/eds-pagination/eds-pagination.js +13 -9
- package/dist/collection/components/eds-rating/eds-rating.js +8 -10
- package/dist/collection/components/eds-section/eds-section-core/eds-section-core.stories.js +12 -11
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +83 -12
- package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
- package/dist/collection/components/eds-timeline/eds-timeline.js +27 -16
- package/dist/collection/components/eds-toast/eds-toast.js +21 -0
- package/dist/collection/components/eds-tooltip/eds-tooltip.js +10 -1
- package/dist/collection/components/eds-trl/eds-trl.js +29 -22
- 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 +22 -10
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +13 -11
- 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 +9 -5
- 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 +2 -2
- package/dist/components/components.css +29 -10
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-accordion2.js +12 -20
- package/dist/components/eds-alert2.js +5 -7
- package/dist/components/eds-avatar2.js +1 -1
- package/dist/components/eds-block-break2.js +1 -1
- package/dist/components/eds-breadcrumb.js +14 -12
- package/dist/components/eds-button2.js +1 -1
- package/dist/components/eds-card-desc2.js +1 -1
- package/dist/components/eds-card-generic2.js +3 -3
- package/dist/components/eds-card-section.js +18 -7
- package/dist/components/eds-card-tags.js +1 -1
- package/dist/components/eds-card-title2.js +1 -1
- package/dist/components/eds-card-wrapper.js +1 -1
- package/dist/components/eds-code-block2.js +48 -1
- 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 +12 -21
- package/dist/components/eds-footer2.js +1 -1
- package/dist/components/eds-form.js +37 -12
- package/dist/components/eds-header.js +6 -2
- package/dist/components/eds-input-select2.js +70 -2
- package/dist/components/eds-link2.js +3 -4
- 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-modal.js +56 -30
- package/dist/components/eds-pagination2.js +13 -9
- package/dist/components/eds-rating.js +6 -8
- package/dist/components/eds-social-networks.js +2 -2
- package/dist/components/eds-social-networks2.js +6 -6
- package/dist/components/eds-svg-repository.js +7 -1
- package/dist/components/eds-table2.js +50 -14
- package/dist/components/eds-tabs-content.js +2 -2
- package/dist/components/eds-tabs.js +26 -5
- package/dist/components/eds-timeline.js +24 -10
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-toast2.js +21 -0
- package/dist/components/eds-tooltip.js +11 -1
- package/dist/components/eds-trl.js +94 -15
- package/dist/components/eds-user-modal2.js +1 -5
- package/dist/components/eds-user2.js +12 -6
- package/dist/components/incorrect-use-of-colors.js +20 -2
- package/dist/components/logo-space.js +1 -1
- package/dist/components/logo-variations-horizontal.js +2 -50
- package/dist/components/logo-variations-horizontal2.js +37 -0
- package/dist/components/logo-variations-vertical.js +2 -50
- package/dist/components/logo-variations-vertical2.js +42 -0
- package/dist/components/logo-wrong-usage.js +2 -2
- package/dist/components/p-005de86f.entry.js +1 -0
- package/dist/components/{p-5eb32f03.entry.js → p-0910d733.entry.js} +1 -1
- package/dist/components/{p-c9c3cc49.entry.js → p-22e6d7d5.entry.js} +1 -1
- package/dist/components/p-2851ff44.entry.js +1 -0
- package/dist/components/p-29648b47.entry.js +1 -0
- package/dist/components/p-2dda1ec4.entry.js +1 -0
- package/dist/components/{p-d9788b54.entry.js → p-35ec730b.entry.js} +1 -1
- package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
- package/dist/components/{p-e6bfbf51.entry.js → p-5398d652.entry.js} +2 -2
- package/dist/components/p-57c964c5.entry.js +1 -0
- package/dist/components/p-5a43503a.entry.js +1 -0
- package/dist/components/{p-e20ed2c7.entry.js → p-610db2b2.entry.js} +1 -1
- package/dist/components/p-6378fb3e.entry.js +1 -0
- package/dist/components/p-762c8c83.entry.js +1 -0
- package/dist/components/p-7802e966.entry.js +1 -0
- package/dist/components/p-832dc95a.entry.js +1 -0
- package/dist/components/p-855aa1a3.entry.js +1 -0
- package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
- package/dist/components/p-8ddc67a1.entry.js +1 -0
- package/dist/components/p-ab32b3fc.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-b04eff31.entry.js +1 -0
- package/dist/components/p-b86a4985.js +1 -0
- package/dist/components/{p-9722811d.entry.js → p-ba6bafef.entry.js} +1 -1
- package/dist/components/{p-6fc62452.entry.js → p-c3b294a0.entry.js} +1 -1
- package/dist/components/p-c6038449.entry.js +1 -0
- package/dist/components/p-c72c8fb0.entry.js +1 -0
- package/dist/components/p-d53b7a75.entry.js +1 -0
- package/dist/components/{p-b717f95a.entry.js → p-d571d530.entry.js} +1 -1
- package/dist/components/p-dd6daa96.entry.js +1 -0
- package/dist/components/{p-73bd0c97.entry.js → p-df94285c.entry.js} +1 -1
- package/dist/components/primary.js +1 -1
- package/dist/components/primary2.js +1 -1
- package/dist/components/secondary.js +1 -1
- package/dist/components/secondary2.js +7 -7
- package/dist/components/support.js +1 -1
- package/dist/components/support2.js +3 -3
- package/dist/components/token-list2.js +1 -1
- package/dist/components/token-radii2.js +1 -1
- package/dist/components/token-ratios.js +1 -1
- package/dist/components/token-shadows2.js +1 -1
- package/dist/components/token-spacing.js +1 -1
- package/dist/components/token-typography.js +1 -1
- package/dist/esm/{color-0ba8ed56.js → color-bb472c37.js} +2 -2
- package/dist/esm/color-primary-palette_6.entry.js +14 -14
- package/dist/esm/components.js +1 -1
- package/dist/esm/correct-use-of-colors.entry.js +1 -1
- package/dist/esm/{eds-alert_28.entry.js → eds-accordion_33.entry.js} +767 -161
- package/dist/esm/eds-card-project.entry.js +1 -1
- package/dist/esm/eds-card-section.entry.js +18 -7
- package/dist/esm/eds-card-tags.entry.js +1 -1
- package/dist/esm/eds-card-tool.entry.js +1 -1
- package/dist/esm/eds-card-wrapper.entry.js +1 -1
- package/dist/esm/eds-code-block.entry.js +49 -2
- package/dist/esm/eds-components-section.entry.js +44 -24
- package/dist/esm/eds-docs-palettes.entry.js +1 -1
- package/dist/esm/eds-docs-tokens.entry.js +1 -1
- package/dist/esm/eds-login.entry.js +1 -1
- package/dist/esm/eds-logo-variations.entry.js +23 -0
- package/dist/esm/eds-matomo-notice.entry.js +1 -1
- package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +184 -10
- package/dist/esm/eds-progress-bar.entry.js +25 -0
- package/dist/esm/eds-rating.entry.js +5 -7
- package/dist/esm/eds-svg-repository.entry.js +8 -2
- package/dist/esm/eds-tabs-content.entry.js +3 -3
- package/dist/esm/eds-tabs.entry.js +27 -6
- package/dist/esm/eds-timeline.entry.js +73 -0
- package/dist/esm/eds-tooltip.entry.js +11 -1
- package/dist/esm/eds-trl.entry.js +47 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e96badea.js +20 -44
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logo-space.entry.js +1 -1
- package/dist/esm/logo-variations-horizontal_2.entry.js +31 -0
- package/dist/esm/logo-wrong-usage.entry.js +2 -2
- package/dist/esm/token-list_3.entry.js +3 -3
- package/dist/esm/token-ratios.entry.js +1 -1
- package/dist/esm/token-spacing.entry.js +1 -1
- package/dist/esm/token-typography.entry.js +1 -1
- package/dist/hydrate/index.js +1116 -783
- package/dist/hydrate/index.mjs +1116 -783
- package/dist/types/components/eds-accordion/eds-accordion.d.ts +5 -12
- package/dist/types/components/eds-avatar/eds-avatar.stories.d.ts +0 -18
- 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-composer/eds-card-desc/eds-card-desc.d.ts +8 -0
- package/dist/types/components/eds-cards/eds-card-generic/eds-card-generic.d.ts +6 -2
- package/dist/types/components/eds-code-block/eds-code-block.d.ts +43 -3
- package/dist/types/components/eds-code-block/eds-code-block.stories.d.ts +54 -0
- package/dist/types/components/eds-dropdown/eds-dropdown.d.ts +0 -7
- package/dist/types/components/eds-form/eds-form.d.ts +3 -6
- package/dist/types/components/eds-form/eds-form.stories.d.ts +0 -5
- package/dist/types/components/eds-frame/eds-frame.stories.d.ts +0 -2
- package/dist/types/components/eds-input-elements/eds-input-select/eds-input-select.d.ts +108 -2
- package/dist/types/components/eds-link/eds-link.d.ts +1 -1
- package/dist/types/components/eds-modal/eds-modal.d.ts +18 -3
- package/dist/types/components/eds-modal/eds-modal.stories.d.ts +9 -0
- package/dist/types/components/eds-rating/eds-rating.d.ts +4 -6
- package/dist/types/components/eds-section/eds-section-core/eds-section-core.stories.d.ts +0 -1
- 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 +9 -12
- package/dist/types/components/eds-toast/eds-toast.d.ts +9 -0
- package/dist/types/components/eds-trl/eds-trl.d.ts +4 -1
- package/dist/types/components.d.ts +217 -56
- 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 +1 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +42 -2
- 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/eds-accordion.cjs.entry.js +0 -93
- package/dist/cjs/eds-block-break.cjs.entry.js +0 -21
- package/dist/cjs/eds-breadcrumb.cjs.entry.js +0 -153
- package/dist/cjs/eds-footer.cjs.entry.js +0 -50
- package/dist/cjs/eds-frame.cjs.entry.js +0 -91
- package/dist/cjs/eds-fullscreen-menu.cjs.entry.js +0 -100
- package/dist/cjs/eds-modal.cjs.entry.js +0 -86
- package/dist/cjs/eds-social-networks.cjs.entry.js +0 -66
- package/dist/cjs/eds-table.cjs.entry.js +0 -143
- package/dist/cjs/logo-variations-horizontal.cjs.entry.js +0 -31
- package/dist/cjs/logo-variations-vertical.cjs.entry.js +0 -31
- package/dist/collection/components/eds-trl/eds-trl.css +0 -0
- package/dist/collection/shared-ui/eds-user-modal/eds-user-modal.css +0 -0
- package/dist/components/p-02e2a62f.entry.js +0 -1
- package/dist/components/p-04e47e04.entry.js +0 -1
- package/dist/components/p-0a3b2576.entry.js +0 -1
- package/dist/components/p-0c99ef81.entry.js +0 -1
- package/dist/components/p-272d249f.entry.js +0 -1
- package/dist/components/p-2d8508cd.entry.js +0 -1
- package/dist/components/p-32f282a9.entry.js +0 -1
- package/dist/components/p-373673ca.js +0 -1
- package/dist/components/p-3a2e8ef3.entry.js +0 -1
- package/dist/components/p-3afafa59.entry.js +0 -1
- package/dist/components/p-3b40559e.entry.js +0 -1
- package/dist/components/p-42b4ecff.entry.js +0 -1
- package/dist/components/p-49958f77.entry.js +0 -1
- package/dist/components/p-54c75346.entry.js +0 -1
- package/dist/components/p-551c0b58.entry.js +0 -1
- package/dist/components/p-559b6ec9.entry.js +0 -1
- package/dist/components/p-5ae9722b.entry.js +0 -1
- package/dist/components/p-79887c2c.entry.js +0 -1
- package/dist/components/p-9000b245.entry.js +0 -1
- package/dist/components/p-96c4deda.entry.js +0 -1
- package/dist/components/p-b14ef448.entry.js +0 -1
- package/dist/components/p-b203eb1b.entry.js +0 -1
- package/dist/components/p-b33941a0.entry.js +0 -1
- package/dist/components/p-bca40434.entry.js +0 -1
- package/dist/components/p-df93db96.entry.js +0 -1
- package/dist/components/p-ebed87b8.entry.js +0 -1
- package/dist/components/p-ff5de62c.entry.js +0 -1
- package/dist/components/p-ffec8755.entry.js +0 -1
- package/dist/esm/eds-accordion.entry.js +0 -89
- package/dist/esm/eds-block-break.entry.js +0 -17
- package/dist/esm/eds-breadcrumb.entry.js +0 -149
- package/dist/esm/eds-footer.entry.js +0 -46
- package/dist/esm/eds-frame.entry.js +0 -87
- package/dist/esm/eds-fullscreen-menu.entry.js +0 -96
- package/dist/esm/eds-modal.entry.js +0 -82
- package/dist/esm/eds-social-networks.entry.js +0 -62
- package/dist/esm/eds-table.entry.js +0 -139
- package/dist/esm/logo-variations-horizontal.entry.js +0 -27
- package/dist/esm/logo-variations-vertical.entry.js +0 -27
- /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
package/dist/hydrate/index.mjs
CHANGED
|
@@ -2305,7 +2305,7 @@ class ColorPrimaryPalette {
|
|
|
2305
2305
|
];
|
|
2306
2306
|
}
|
|
2307
2307
|
render() {
|
|
2308
|
-
return (hAsync("ul", { key: '
|
|
2308
|
+
return (hAsync("ul", { key: '581f0978ebeda33a156d2baf3cc41a10897da1cf', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2309
2309
|
}
|
|
2310
2310
|
static get cmpMeta() { return {
|
|
2311
2311
|
"$flags$": 0,
|
|
@@ -2377,7 +2377,7 @@ class ColorSecondaryPalette {
|
|
|
2377
2377
|
this.show = undefined;
|
|
2378
2378
|
}
|
|
2379
2379
|
render() {
|
|
2380
|
-
return (hAsync("ul", { key: '
|
|
2380
|
+
return (hAsync("ul", { key: '7f2e8e7efa207bedaa1e19c0f7d87459a5c22693', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2381
2381
|
}
|
|
2382
2382
|
static get cmpMeta() { return {
|
|
2383
2383
|
"$flags$": 0,
|
|
@@ -2442,7 +2442,7 @@ class ColorSupportPalette {
|
|
|
2442
2442
|
];
|
|
2443
2443
|
}
|
|
2444
2444
|
render() {
|
|
2445
|
-
return (hAsync("ul", { key: '
|
|
2445
|
+
return (hAsync("ul", { key: '6cd3d5f3128a49e9ac77abc11f46ca880bc6c195', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), hAsync("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
|
|
2446
2446
|
}
|
|
2447
2447
|
static get cmpMeta() { return {
|
|
2448
2448
|
"$flags$": 0,
|
|
@@ -2518,7 +2518,7 @@ class CorrectUseOfColors {
|
|
|
2518
2518
|
registerInstance(this, hostRef);
|
|
2519
2519
|
}
|
|
2520
2520
|
render() {
|
|
2521
|
-
return (hAsync("div", { key: '
|
|
2521
|
+
return (hAsync("div", { key: '33f38f14e5b6e7271ae26608fb1a1ed0c7930c7c', class: "container" }, hAsync("p", { key: '4857375e983add7d8e5e0a0d9896641774be018e', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '1c6bd69472074babf8f830fdba9be31e73afcd88', label: "primary", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'ae3429fadbea001f01731d3c15f28865d668a50a', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: 'd8c6b9ab88abbf6194a4fb26120244982b59c2c4', class: "flex" }, hAsync("div", { key: 'fc7f854940caabb9e032999f51732b64555e96e7', class: "w-full" }, hAsync("ul", { key: '99c6a2e47c683ac38f2a14feec80177c0cf1c174', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '91048e89cff083356c589c0f1bfecdd482e0c797', class: "w-full" }, hAsync("ul", { key: '6ee69388227089a5224a6d249c8e1eea4efde128', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'c0a8e42942f2655648aa2ec3ce74bbf8d043ba63', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '3f272298bcd7d0e6ad791edc408ef636349fbf7d', label: "purple", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '9a0b28f388483944aa4b053b9f8e807c1383431e', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '27ab1cdb936918fafe122c5a569c83322043bb79', class: "flex" }, hAsync("div", { key: '037b9916ff3a3e8c2e9db64b650d44a57aedbcf9', class: "w-full" }, hAsync("ul", { key: '60f4f6290b31a29852fb934c678edcaa61c8e930', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '36397292a31417703736b3be5b77e17241675dd9', class: "w-full" }, hAsync("ul", { key: '20a9e6bb396c184c2718a18554eb1b4828817379', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '0b89819b9fce1dff39b06b70873d651b7a1c84ac', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '9b3e7d46ac8116ff5f47f895bb06e89cd49c4e03', label: "blue", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '94c3384e546bcae55d5634064a37436b4cdaab0f', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '7e3fe503559fa6865b824fd7f93dfdf8ed368f34', class: "flex" }, hAsync("div", { key: '4ed98a3b92ba8b73e3cd67dec625b4b8dfb34ee1', class: "w-full" }, hAsync("ul", { key: '0ccfd018568eb834ae05771976122736f5944205', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'd2cef9f5bd8ce7fb103e22a8964cee88853c1162', class: "w-full" }, hAsync("ul", { key: '24301ce590bd1530316f351202bd76fafaa7dda5', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '748852527301ab6465b593f5f271dc6dcef9d198', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'f035467c04170412a1b06f05b8675b6be57e8aa2', label: "redish", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '6e4eb577c6582a160b8282b54a6edfc58f20926b', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '9209fd1ab3092cd21dd81a3328171c8de4fb8bca', class: "flex" }, hAsync("div", { key: 'dc71b931a70fbd31a4f72814b23a1d97933bc721', class: "w-full" }, hAsync("ul", { key: 'd3f6f25439b6fbc8e8c08b39bf46de9ce52482fa', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '78d64d48a72836043c53e485269402bf566a5d98', class: "w-full" }, hAsync("ul", { key: '6eb824d03f4d0e2d3966963c899473e242b31dc6', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
2522
2522
|
}
|
|
2523
2523
|
static get cmpMeta() { return {
|
|
2524
2524
|
"$flags$": 0,
|
|
@@ -2530,127 +2530,210 @@ class CorrectUseOfColors {
|
|
|
2530
2530
|
}; }
|
|
2531
2531
|
}
|
|
2532
2532
|
|
|
2533
|
-
|
|
2534
|
-
|
|
2533
|
+
[
|
|
2534
|
+
['eds-header', {
|
|
2535
|
+
'home-url': '/',
|
|
2536
|
+
'user-feature': 'false',
|
|
2537
|
+
'keycloak-url': 'http://localhost:8080',
|
|
2538
|
+
'keycloak-realm': 'nigeor-realm',
|
|
2539
|
+
'keycloak-client-id': 'stencil-app',
|
|
2540
|
+
links: JSON.stringify([
|
|
2541
|
+
{ label: 'About', url: '/about' },
|
|
2542
|
+
{ label: 'Focus Areas', url: '/focus-areas' },
|
|
2543
|
+
{ label: 'News & Events', url: '/news-and-events' },
|
|
2544
|
+
{ label: 'Contact', url: '/contact' },
|
|
2545
|
+
]),
|
|
2546
|
+
}],
|
|
2547
|
+
['eds-block-break', {}],
|
|
2548
|
+
['eds-footer', {}],
|
|
2549
|
+
['eds-block-break', {}],
|
|
2550
|
+
['eds-tabs', {
|
|
2551
|
+
tabs: JSON.stringify([
|
|
2552
|
+
{ label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
|
|
2553
|
+
{ label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
|
|
2554
|
+
{ label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
|
|
2555
|
+
]),
|
|
2556
|
+
}],
|
|
2557
|
+
['eds-block-break', {}],
|
|
2558
|
+
['eds-card-section', {
|
|
2559
|
+
cards: JSON.stringify([
|
|
2560
|
+
{ title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
|
|
2561
|
+
{ title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
|
|
2562
|
+
]),
|
|
2563
|
+
cols: '4',
|
|
2564
|
+
}],
|
|
2565
|
+
['eds-block-break', {}],
|
|
2566
|
+
['eds-link', {
|
|
2567
|
+
label: 'Main Link Click Me',
|
|
2568
|
+
url: 'https://example.com',
|
|
2569
|
+
intent: 'primary'
|
|
2570
|
+
}],
|
|
2571
|
+
['eds-block-break', {}],
|
|
2572
|
+
['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
|
|
2573
|
+
['eds-block-break', {}],
|
|
2574
|
+
['eds-breadcrumb', {
|
|
2575
|
+
items: JSON.stringify([
|
|
2576
|
+
{ label: 'Home', url: '/' },
|
|
2577
|
+
{ label: 'Products', url: '/products' },
|
|
2578
|
+
{ label: 'Electronics', url: '/products/electronics' },
|
|
2579
|
+
{ label: 'Laptops', url: '/products/electronics/laptops' },
|
|
2580
|
+
]),
|
|
2581
|
+
intent: 'primary',
|
|
2582
|
+
}],
|
|
2583
|
+
['eds-block-break', {}],
|
|
2584
|
+
['eds-card-generic', {
|
|
2585
|
+
'card-title': 'The Future of AI in Healthcare',
|
|
2586
|
+
url: 'https://example.com/ai-healthcare',
|
|
2587
|
+
description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
|
|
2588
|
+
avatar: 'https://files.ebrains.eu/img/686e0edc-f3be-4d79-aa02-373c32c08d65/ebrains-logo-high-resolution.png?fit=max&q=80&fm=webp&crop=879%2C879%2C597%2C0&w=200',
|
|
2589
|
+
'short-abbreviation': 'AI',
|
|
2590
|
+
'heading-level': 'h2',
|
|
2591
|
+
tags: 'Technology,AI,Healthcare',
|
|
2592
|
+
tiny: 'false',
|
|
2593
|
+
bg: 'true',
|
|
2594
|
+
'with-hover': 'true',
|
|
2595
|
+
}],
|
|
2596
|
+
['eds-block-break', {}],
|
|
2597
|
+
['eds-code-block', {
|
|
2598
|
+
code: 'Hello',
|
|
2599
|
+
language: 'javascript',
|
|
2600
|
+
}],
|
|
2601
|
+
['eds-block-break', {}],
|
|
2602
|
+
['eds-dropdown', {
|
|
2603
|
+
'aria-label': 'More options',
|
|
2604
|
+
'rounded-btn': 'true',
|
|
2605
|
+
'dropdown-pos': 'right',
|
|
2606
|
+
'dropdown-offset': 'true',
|
|
2607
|
+
}],
|
|
2608
|
+
['eds-block-break', {}],
|
|
2609
|
+
['eds-form', {
|
|
2610
|
+
name: 'extended-form',
|
|
2611
|
+
endpoint: 'http://127.0.0.1:5000/api/data',
|
|
2612
|
+
fields: JSON.stringify([
|
|
2613
|
+
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
|
|
2614
|
+
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
2615
|
+
{ name: 'number', label: 'Number', type: 'number', required: true },
|
|
2616
|
+
{ name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
|
|
2617
|
+
{ name: 'date', label: 'Date', type: 'date', required: true },
|
|
2618
|
+
{ name: 'file', label: 'File', type: 'file', required: false },
|
|
2619
|
+
{ name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
|
|
2620
|
+
{ name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
|
|
2621
|
+
{ name: 'role', label: 'Role', type: 'select', required: true, options: [
|
|
2622
|
+
{ label: 'Admin', value: 'admin' },
|
|
2623
|
+
{ label: 'Editor', value: 'editor' },
|
|
2624
|
+
{ label: 'Viewer', value: 'viewer' },
|
|
2625
|
+
] },
|
|
2626
|
+
{ name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
|
|
2627
|
+
{ value: 'option1', label: 'Option 1' },
|
|
2628
|
+
{ value: 'option2', label: 'Option 2' },
|
|
2629
|
+
{ value: 'option3', label: 'Option 3' },
|
|
2630
|
+
], required: true },
|
|
2631
|
+
{ name: 'gender', type: 'radio', label: 'Select your gender', options: [
|
|
2632
|
+
{ value: 'female', label: 'Female' },
|
|
2633
|
+
{ value: 'male', label: 'Male' },
|
|
2634
|
+
], required: true },
|
|
2635
|
+
{ name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
|
|
2636
|
+
{ name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
|
|
2637
|
+
]),
|
|
2638
|
+
'success-message': 'Form submitted successfully!',
|
|
2639
|
+
'error-message': 'Please fix the errors in the form.',
|
|
2640
|
+
'submit-btn': 'true',
|
|
2641
|
+
'small-alert': 'false',
|
|
2642
|
+
'set-form-url': 'true',
|
|
2643
|
+
}],
|
|
2644
|
+
['eds-block-break', {}],
|
|
2645
|
+
['eds-img', {
|
|
2646
|
+
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
2647
|
+
alt: 'EBRAINS Bernstein Conference',
|
|
2648
|
+
width: '400',
|
|
2649
|
+
height: '225',
|
|
2650
|
+
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1440w',
|
|
2651
|
+
sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
|
|
2652
|
+
formats: JSON.stringify([
|
|
2653
|
+
{ type: 'image/webp', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 1080w' },
|
|
2654
|
+
{ type: 'image/jpeg', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w' },
|
|
2655
|
+
]),
|
|
2656
|
+
lazyload: 'true',
|
|
2657
|
+
'with-bg': 'true',
|
|
2658
|
+
}],
|
|
2659
|
+
['eds-block-break', {}],
|
|
2660
|
+
['eds-input-field', {
|
|
2661
|
+
name: 'username',
|
|
2662
|
+
'input-id': 'username',
|
|
2663
|
+
label: 'Username',
|
|
2664
|
+
placeholder: 'Enter your username',
|
|
2665
|
+
required: 'true',
|
|
2666
|
+
hint: 'Your unique username',
|
|
2667
|
+
message: 'This field is required',
|
|
2668
|
+
'error-message': 'Invalid username',
|
|
2669
|
+
type: 'text',
|
|
2670
|
+
}],
|
|
2671
|
+
['eds-block-break', {}],
|
|
2672
|
+
['eds-pagination', {
|
|
2673
|
+
'current-page': '1',
|
|
2674
|
+
'last-page': '10',
|
|
2675
|
+
'per-page': '5',
|
|
2676
|
+
total: '50',
|
|
2677
|
+
mode: 'default',
|
|
2678
|
+
}],
|
|
2679
|
+
['eds-block-break', {}],
|
|
2680
|
+
['eds-progress-bar', { value: '75' }],
|
|
2681
|
+
['eds-table', {
|
|
2682
|
+
data: JSON.stringify([
|
|
2683
|
+
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
2684
|
+
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
2685
|
+
{ Property: 'email', Type: 'string', Required: 'No' },
|
|
2686
|
+
]),
|
|
2687
|
+
config: JSON.stringify({
|
|
2688
|
+
Type: { format: 'uppercase' },
|
|
2689
|
+
Property: { format: 'code' },
|
|
2690
|
+
Required: { hidden: true },
|
|
2691
|
+
}),
|
|
2692
|
+
}],
|
|
2693
|
+
['eds-block-break', {}],
|
|
2694
|
+
['eds-tag', { label: 'Default Tag', intent: 'default' }],
|
|
2695
|
+
];
|
|
2535
2696
|
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
* to track its open/close status.
|
|
2546
|
-
*
|
|
2547
|
-
* Key features include:
|
|
2548
|
-
* - Header with customizable title
|
|
2549
|
-
* - Expandable/collapsible content section
|
|
2550
|
-
* - Background color switch on expand and hover
|
|
2551
|
-
* - Compact layout option with reduced header height
|
|
2552
|
-
* - Adjustable content height and text clamping
|
|
2553
|
-
* - Emitted events for tracking changes in expansion state and context
|
|
2554
|
-
*/
|
|
2555
|
-
class EdsAccordion {
|
|
2556
|
-
constructor(hostRef) {
|
|
2557
|
-
registerInstance(this, hostRef);
|
|
2558
|
-
this.accordionChange = createEvent(this, "accordionChange", 7);
|
|
2559
|
-
/**
|
|
2560
|
-
* Handles the click event on the accordion header to toggle expansion.
|
|
2561
|
-
* Toggles the `isExpanded` state and emits the `accordionChange` event.
|
|
2562
|
-
*/
|
|
2563
|
-
this.handleClick = () => {
|
|
2564
|
-
this.isExpanded = !this.isExpanded;
|
|
2565
|
-
this.accordionChange.emit(this.isExpanded);
|
|
2566
|
-
this.setPanelHeight();
|
|
2567
|
-
};
|
|
2568
|
-
/**
|
|
2569
|
-
* Calculates and sets the panel height based on the content height
|
|
2570
|
-
* and adjusts based on the `shortContent` and `isExpanded` states.
|
|
2571
|
-
*/
|
|
2572
|
-
this.setPanelHeight = () => {
|
|
2573
|
-
if (this.childContentRef) {
|
|
2574
|
-
this.shortContent =
|
|
2575
|
-
this.wrapperRef.scrollWidth > 830 && !this.description
|
|
2576
|
-
? this.childContentRef.scrollHeight <= 80
|
|
2577
|
-
: this.childContentRef.scrollHeight <= 20;
|
|
2578
|
-
this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
|
|
2579
|
-
}
|
|
2580
|
-
};
|
|
2581
|
-
this.title = undefined;
|
|
2582
|
-
this.description = undefined;
|
|
2583
|
-
this.switchBg = true;
|
|
2584
|
-
this.expanded = false;
|
|
2585
|
-
this.clampText = true;
|
|
2586
|
-
this.minHeightContent = false;
|
|
2587
|
-
this.isExpanded = this.expanded;
|
|
2588
|
-
this.panelHeight = 0;
|
|
2589
|
-
this.shortContent = false;
|
|
2590
|
-
}
|
|
2591
|
-
/**
|
|
2592
|
-
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
2593
|
-
* to recalculate height on window resize.
|
|
2594
|
-
*/
|
|
2595
|
-
componentDidLoad() {
|
|
2596
|
-
this.setPanelHeight();
|
|
2597
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
2598
|
-
const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
2599
|
-
this.emitContext(btn);
|
|
2600
|
-
window.addEventListener('resize', this.setPanelHeight);
|
|
2697
|
+
// Helper function to check if Matomo is initialized
|
|
2698
|
+
function isMatomoAvailable() {
|
|
2699
|
+
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
2700
|
+
}
|
|
2701
|
+
// General function to push data to Matomo
|
|
2702
|
+
function pushToMatomo(action, ...args) {
|
|
2703
|
+
//console.log('Pushing Matomo')
|
|
2704
|
+
if (isMatomoAvailable()) {
|
|
2705
|
+
window._paq.push([action, ...args]);
|
|
2601
2706
|
}
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
* This event provides context information about the breadcrumb component.
|
|
2605
|
-
*
|
|
2606
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
2607
|
-
*/
|
|
2608
|
-
emitContext(linkElement) {
|
|
2609
|
-
const event = new CustomEvent('parentContext', {
|
|
2610
|
-
detail: {
|
|
2611
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
2612
|
-
identifier: null
|
|
2613
|
-
}
|
|
2614
|
-
});
|
|
2615
|
-
linkElement.dispatchEvent(event);
|
|
2707
|
+
else {
|
|
2708
|
+
console.warn('Matomo is not available or not initialized.');
|
|
2616
2709
|
}
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2710
|
+
}
|
|
2711
|
+
// Function to send analytics data
|
|
2712
|
+
function sendAnalytics(eventData) {
|
|
2713
|
+
var _a;
|
|
2714
|
+
if (!isMatomoAvailable()) {
|
|
2715
|
+
console.warn('Matomo is not available or not initialized.');
|
|
2716
|
+
//console.log({ ...eventData });
|
|
2717
|
+
return;
|
|
2622
2718
|
}
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2719
|
+
// Conditionally build the name field
|
|
2720
|
+
const nameParts = [];
|
|
2721
|
+
if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
|
|
2722
|
+
nameParts.push(eventData.parentContext.componentName);
|
|
2723
|
+
}
|
|
2724
|
+
nameParts.push(eventData.tag || 'unknown-tag');
|
|
2725
|
+
nameParts.push(eventData.name || 'unknown-name');
|
|
2726
|
+
const name = nameParts.join('/');
|
|
2727
|
+
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
2728
|
+
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
2729
|
+
console.log(Object.assign({}, eventData));
|
|
2730
|
+
}
|
|
2731
|
+
// Function to opt-in the user
|
|
2732
|
+
function matomoOptIn() {
|
|
2733
|
+
if (isMatomoAvailable()) {
|
|
2734
|
+
window._paq.push(['rememberConsentGiven']);
|
|
2735
|
+
console.log('User has opted in to tracking');
|
|
2633
2736
|
}
|
|
2634
|
-
get el() { return getElement(this); }
|
|
2635
|
-
static get style() { return EdsAccordionStyle0; }
|
|
2636
|
-
static get cmpMeta() { return {
|
|
2637
|
-
"$flags$": 9,
|
|
2638
|
-
"$tagName$": "eds-accordion",
|
|
2639
|
-
"$members$": {
|
|
2640
|
-
"title": [1],
|
|
2641
|
-
"description": [1],
|
|
2642
|
-
"switchBg": [4, "switch-bg"],
|
|
2643
|
-
"expanded": [4],
|
|
2644
|
-
"clampText": [4, "clamp-text"],
|
|
2645
|
-
"minHeightContent": [4, "min-height-content"],
|
|
2646
|
-
"isExpanded": [32],
|
|
2647
|
-
"panelHeight": [32],
|
|
2648
|
-
"shortContent": [32]
|
|
2649
|
-
},
|
|
2650
|
-
"$listeners$": undefined,
|
|
2651
|
-
"$lazyBundleId$": "-",
|
|
2652
|
-
"$attrsToReflect$": []
|
|
2653
|
-
}; }
|
|
2654
2737
|
}
|
|
2655
2738
|
|
|
2656
2739
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
@@ -2698,455 +2781,360 @@ const cva = (base, config)=>{
|
|
|
2698
2781
|
};
|
|
2699
2782
|
};
|
|
2700
2783
|
|
|
2701
|
-
const edsAlertCss = ":root {\n font-optical-sizing: auto;\n}\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n/*\n:focus[data-focus-method=\"mouse\"],\n:focus[data-focus-method=\"touch\"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*, ::before, ::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n::before,\n::after {\n}\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type='button']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\nfieldset {\n margin: 0;\n padding: 0;\n}\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n:root {\n --inner-gutter: 8px;\n}\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n:root {\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n@media (min-width: 750px) {\n :root {\n}\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n@media (min-width: 1024px) {\n :root {\n}\n}\n.f-ui-01 b, .f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n@media (min-width: 750px) {\n .md\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-x-0 > *::before {\n content: none;\n }\n .md\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n@media (min-width: 900px) {\n .lg\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-x-0 > *::before {\n content: none;\n }\n .lg\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1 );\n }\n\n &::after {\n content: '';\n }\n}\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n.w-full {\n width: 100%;\n}\n.flex-row {\n flex-direction: row;\n}\n.items-center {\n align-items: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.space-y-12 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.rounded-lg {\n border-radius: 16px;\n}\n.bg-dark {\n background-color: var(--grey-300);\n}\n.bg-error {\n background-color: var(--red-200);\n}\n.bg-success {\n background-color: var(--green-200);\n}\n.bg-warning {\n background-color: var(--yellow-200);\n}\n.p-16 {\n padding: 1rem;\n}\n.p-20 {\n padding: 1.25rem;\n}\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.pr-12 {\n padding-right: 0.75rem;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n[class*=underline-] {\n text-decoration-line: underline;\n}\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05 );\n}\n";
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-softest after:rounded-lg'], {
|
|
2784
|
+
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
2785
|
+
const gradientBGColorVariants = cva([], {
|
|
2705
2786
|
variants: {
|
|
2706
|
-
|
|
2707
|
-
default: '',
|
|
2708
|
-
warning: 'bg-warning',
|
|
2709
|
-
error: 'bg-error',
|
|
2710
|
-
success: 'bg-success'
|
|
2711
|
-
},
|
|
2787
|
+
color: GRADIANT_TOKENS.reduce((acc, token) => (Object.assign(Object.assign({}, acc), { [token]: '' })), {}),
|
|
2712
2788
|
direction: {
|
|
2713
|
-
|
|
2714
|
-
|
|
2789
|
+
top: '',
|
|
2790
|
+
bottom: ''
|
|
2715
2791
|
},
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2792
|
+
pseudo: {
|
|
2793
|
+
true: 'before:effect-opacity effect-bg-behind',
|
|
2794
|
+
false: ''
|
|
2795
|
+
},
|
|
2796
|
+
hover: {
|
|
2797
|
+
true: 'before:opacity-0 hover:before:opacity-100',
|
|
2798
|
+
false: ''
|
|
2719
2799
|
}
|
|
2720
2800
|
},
|
|
2721
2801
|
compoundVariants: [
|
|
2802
|
+
// region GREEN
|
|
2722
2803
|
{
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2804
|
+
color: 'green',
|
|
2805
|
+
direction: 'top',
|
|
2806
|
+
pseudo: true,
|
|
2807
|
+
className: 'before:bg-gradient-01-top'
|
|
2726
2808
|
},
|
|
2727
2809
|
{
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2810
|
+
color: 'green',
|
|
2811
|
+
pseudo: true,
|
|
2812
|
+
direction: 'bottom',
|
|
2813
|
+
className: 'before:bg-gradient-01-bottom'
|
|
2731
2814
|
},
|
|
2732
2815
|
{
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2816
|
+
color: 'green',
|
|
2817
|
+
direction: 'top',
|
|
2818
|
+
pseudo: false,
|
|
2819
|
+
className: 'bg-gradient-01-top'
|
|
2736
2820
|
},
|
|
2737
2821
|
{
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2822
|
+
color: 'green',
|
|
2823
|
+
pseudo: false,
|
|
2824
|
+
direction: 'bottom',
|
|
2825
|
+
className: 'bg-gradient-01-bottom'
|
|
2826
|
+
},
|
|
2827
|
+
// endregion
|
|
2828
|
+
// region YELLOW
|
|
2829
|
+
{
|
|
2830
|
+
color: 'yellow',
|
|
2831
|
+
direction: 'top',
|
|
2832
|
+
pseudo: true,
|
|
2833
|
+
className: 'before:bg-gradient-02-top'
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
color: 'yellow',
|
|
2837
|
+
direction: 'bottom',
|
|
2838
|
+
pseudo: true,
|
|
2839
|
+
className: 'before:bg-gradient-02-bottom'
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
color: 'yellow',
|
|
2843
|
+
direction: 'top',
|
|
2844
|
+
pseudo: false,
|
|
2845
|
+
className: 'bg-gradient-02-top'
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
color: 'yellow',
|
|
2849
|
+
direction: 'bottom',
|
|
2850
|
+
pseudo: false,
|
|
2851
|
+
className: 'bg-gradient-02-bottom'
|
|
2852
|
+
},
|
|
2853
|
+
// endregion
|
|
2854
|
+
// region PURPLE
|
|
2855
|
+
{
|
|
2856
|
+
color: 'purple',
|
|
2857
|
+
direction: 'top',
|
|
2858
|
+
pseudo: true,
|
|
2859
|
+
class: 'before:bg-gradient-03-top'
|
|
2860
|
+
},
|
|
2861
|
+
{
|
|
2862
|
+
color: 'purple',
|
|
2863
|
+
direction: 'bottom',
|
|
2864
|
+
pseudo: true,
|
|
2865
|
+
class: 'before:bg-gradient-03-bottom'
|
|
2866
|
+
},
|
|
2867
|
+
{
|
|
2868
|
+
color: 'purple',
|
|
2869
|
+
direction: 'top',
|
|
2870
|
+
pseudo: false,
|
|
2871
|
+
class: 'bg-gradient-03-top'
|
|
2872
|
+
},
|
|
2873
|
+
{
|
|
2874
|
+
color: 'purple',
|
|
2875
|
+
direction: 'bottom',
|
|
2876
|
+
pseudo: false,
|
|
2877
|
+
class: 'bg-gradient-03-bottom'
|
|
2878
|
+
},
|
|
2879
|
+
// endregion
|
|
2880
|
+
// region AMONG-BLUE
|
|
2881
|
+
{
|
|
2882
|
+
color: 'among-blue',
|
|
2883
|
+
direction: 'top',
|
|
2884
|
+
pseudo: true,
|
|
2885
|
+
class: 'before:bg-gradient-04-top'
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
color: 'among-blue',
|
|
2889
|
+
direction: 'bottom',
|
|
2890
|
+
pseudo: true,
|
|
2891
|
+
class: 'before:bg-gradient-04-bottom'
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
color: 'among-blue',
|
|
2895
|
+
direction: 'top',
|
|
2896
|
+
pseudo: false,
|
|
2897
|
+
class: 'bg-gradient-04-top'
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
color: 'among-blue',
|
|
2901
|
+
direction: 'bottom',
|
|
2902
|
+
pseudo: false,
|
|
2903
|
+
class: 'bg-gradient-04-bottom'
|
|
2741
2904
|
}
|
|
2905
|
+
// endregion
|
|
2742
2906
|
],
|
|
2743
2907
|
defaultVariants: {
|
|
2744
|
-
|
|
2745
|
-
|
|
2908
|
+
direction: 'top',
|
|
2909
|
+
pseudo: true
|
|
2746
2910
|
}
|
|
2747
2911
|
});
|
|
2912
|
+
|
|
2913
|
+
const edsAccordionCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
|
|
2914
|
+
var EdsAccordionStyle0 = edsAccordionCss;
|
|
2915
|
+
|
|
2748
2916
|
/**
|
|
2749
|
-
* `
|
|
2750
|
-
*
|
|
2917
|
+
* `EdsAccordion` is a flexible, interactive component for expanding and collapsing content sections.
|
|
2918
|
+
* It features a customizable header, optional description, and content area that can be dynamically expanded.
|
|
2919
|
+
* This component supports a range of configurations, including background toggling, minimum height adjustments,
|
|
2920
|
+
* and various styles to suit different layouts and display requirements.
|
|
2751
2921
|
*
|
|
2752
|
-
*
|
|
2753
|
-
* - Customizable alert message with different visual intents (`default`, `warning`, `error`, `success`).
|
|
2754
|
-
* - Configurable layout direction (`horizontal` or `vertical`) to accommodate various design requirements.
|
|
2755
|
-
* - Optional pressable element (link or button) that allows users to interact with the alert.
|
|
2756
|
-
* - Emits context events to allow parent components to track alert interactions.
|
|
2922
|
+
* It includes an optional button or link element within the header, which can be customized for additional interactions.
|
|
2757
2923
|
*
|
|
2758
|
-
*
|
|
2924
|
+
* The `accordionChange` event is emitted when the accordion's expanded state changes, allowing parent components
|
|
2925
|
+
* to track its open/close status.
|
|
2926
|
+
*
|
|
2927
|
+
* Key features include:
|
|
2928
|
+
* - Header with customizable title
|
|
2929
|
+
* - Expandable/collapsible content section
|
|
2930
|
+
* - Background color switch on expand and hover
|
|
2931
|
+
* - Compact layout option with reduced header height
|
|
2932
|
+
* - Adjustable content height and text clamping
|
|
2933
|
+
* - Emitted events for tracking changes in expansion state and context
|
|
2759
2934
|
*/
|
|
2760
|
-
class
|
|
2935
|
+
class EdsAccordion {
|
|
2761
2936
|
constructor(hostRef) {
|
|
2762
2937
|
registerInstance(this, hostRef);
|
|
2763
|
-
this.
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
this.
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2938
|
+
this.accordionChange = createEvent(this, "accordionChange", 7);
|
|
2939
|
+
/**
|
|
2940
|
+
* Handles the click event on the accordion header to toggle expansion.
|
|
2941
|
+
* Toggles the `isExpanded` state and emits the `accordionChange` event.
|
|
2942
|
+
*/
|
|
2943
|
+
this.handleClick = () => {
|
|
2944
|
+
var _a;
|
|
2945
|
+
this.isExpanded = !this.isExpanded;
|
|
2946
|
+
this.accordionChange.emit(this.isExpanded);
|
|
2947
|
+
this.setPanelHeight();
|
|
2948
|
+
sendAnalytics({
|
|
2949
|
+
category: 'ui-component',
|
|
2950
|
+
parentContext: null,
|
|
2951
|
+
tag: this.el.tagName.toLowerCase(),
|
|
2952
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
2953
|
+
action: this.isExpanded ? 'expanded' : 'collapsed'
|
|
2954
|
+
});
|
|
2955
|
+
};
|
|
2956
|
+
/**
|
|
2957
|
+
* Calculates and sets the panel height based on the content height
|
|
2958
|
+
* and adjusts based on the `shortContent` and `isExpanded` states.
|
|
2959
|
+
*/
|
|
2960
|
+
this.setPanelHeight = () => {
|
|
2961
|
+
if (this.childContentRef) {
|
|
2962
|
+
this.shortContent =
|
|
2963
|
+
this.wrapperRef.scrollWidth > 830 && !this.description
|
|
2964
|
+
? this.childContentRef.scrollHeight <= 80
|
|
2965
|
+
: this.childContentRef.scrollHeight <= 20;
|
|
2966
|
+
this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
|
|
2967
|
+
}
|
|
2968
|
+
};
|
|
2969
|
+
this.title = undefined;
|
|
2970
|
+
this.description = undefined;
|
|
2971
|
+
this.switchBg = true;
|
|
2972
|
+
this.expanded = false;
|
|
2973
|
+
this.clampText = true;
|
|
2974
|
+
this.minHeightContent = false;
|
|
2975
|
+
this.isExpanded = this.expanded;
|
|
2976
|
+
this.panelHeight = 0;
|
|
2977
|
+
this.shortContent = false;
|
|
2772
2978
|
}
|
|
2979
|
+
/**
|
|
2980
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
2981
|
+
* to recalculate height on window resize.
|
|
2982
|
+
*/
|
|
2773
2983
|
componentDidLoad() {
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
links.forEach((link) => {
|
|
2777
|
-
this.emitContext(link);
|
|
2778
|
-
});
|
|
2984
|
+
this.setPanelHeight();
|
|
2985
|
+
window.addEventListener('resize', this.setPanelHeight);
|
|
2779
2986
|
}
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
}
|
|
2786
|
-
});
|
|
2787
|
-
linkElement.dispatchEvent(event);
|
|
2987
|
+
/**
|
|
2988
|
+
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
2989
|
+
*/
|
|
2990
|
+
disconnectedCallback() {
|
|
2991
|
+
window.removeEventListener('resize', this.setPanelHeight);
|
|
2788
2992
|
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
2995
|
+
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
2996
|
+
*/
|
|
2789
2997
|
render() {
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary" })) : null)));
|
|
2998
|
+
const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
|
|
2999
|
+
return (hAsync("div", { key: '14811b7517511999f97dc8d486f6c1138d89538b', ref: (el) => (this.wrapperRef = el), class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
3000
|
+
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
3001
|
+
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
3002
|
+
${minHeightContentClass}` }, hAsync("h3", { key: 'a55ab98b74555ab2ff470d824106d3ff2e9b7fec', class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), hAsync("div", { key: 'b3a76425eed4d05404a51d8991070a12cd1609a1', class: "ml-auto" }, hAsync("eds-button", { key: '06ddefe21175e4bc28ef4477f5fd552689e1cd31', id: "accordionId", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-controls": "accordionId", class: `effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none`, onClick: this.handleClick, icon: "chevron-down" })), hAsync("div", { key: '7330f2824689a61e82c42f00f79e12d4148df2f9', class: `w-full` }, this.description ? (hAsync("span", { class: `text-light ${!this.isExpanded && this.clampText ? 'line-clamp-1' : ''}` }, this.description)) : null, hAsync("section", { key: '533e8014f43ed6d50424f02bfb793456187badd9', id: "sectionId", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? 'overflow-hidden' : ''}`, style: { height: this.isExpanded ? 'auto' : '0' } }, hAsync("div", { key: '02a0fa8a79942cd2bc760eb62da9cb910252b6cd', ref: (el) => (this.childContentRef = el), class: `accordion-content effect-color pt-20`, "aria-hidden": !this.isExpanded }, hAsync("span", { key: '33edc6bc83eb4eaa49ae5482841ae642a60ffde8', class: `${!this.isExpanded && this.clampText ? 'line-clamp-2' : ''}` }, hAsync("slot", { key: 'bbbc3fa2b8fc5be7f55d6a45f0f37dc569706ac8' })))))));
|
|
2796
3003
|
}
|
|
2797
3004
|
get el() { return getElement(this); }
|
|
2798
|
-
static get style() { return
|
|
3005
|
+
static get style() { return EdsAccordionStyle0; }
|
|
2799
3006
|
static get cmpMeta() { return {
|
|
2800
3007
|
"$flags$": 9,
|
|
2801
|
-
"$tagName$": "eds-
|
|
3008
|
+
"$tagName$": "eds-accordion",
|
|
2802
3009
|
"$members$": {
|
|
2803
|
-
"
|
|
2804
|
-
"
|
|
2805
|
-
"
|
|
2806
|
-
"
|
|
2807
|
-
"
|
|
2808
|
-
"
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
['eds-header', {
|
|
2818
|
-
'home-url': '/',
|
|
2819
|
-
'user-feature': 'false',
|
|
2820
|
-
'keycloak-url': 'http://localhost:8080',
|
|
2821
|
-
'keycloak-realm': 'nigeor-realm',
|
|
2822
|
-
'keycloak-client-id': 'stencil-app',
|
|
2823
|
-
links: JSON.stringify([
|
|
2824
|
-
{ label: 'About', url: '/about' },
|
|
2825
|
-
{ label: 'Focus Areas', url: '/focus-areas' },
|
|
2826
|
-
{ label: 'News & Events', url: '/news-and-events' },
|
|
2827
|
-
{ label: 'Contact', url: '/contact' },
|
|
2828
|
-
]),
|
|
2829
|
-
}],
|
|
2830
|
-
['eds-block-break', {}],
|
|
2831
|
-
['eds-footer', {}],
|
|
2832
|
-
['eds-block-break', {}],
|
|
2833
|
-
['eds-tabs', {
|
|
2834
|
-
tabs: JSON.stringify([
|
|
2835
|
-
{ label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
|
|
2836
|
-
{ label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
|
|
2837
|
-
{ label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
|
|
2838
|
-
]),
|
|
2839
|
-
}],
|
|
2840
|
-
['eds-block-break', {}],
|
|
2841
|
-
['eds-card-section', {
|
|
2842
|
-
cards: JSON.stringify([
|
|
2843
|
-
{ title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
|
|
2844
|
-
{ title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
|
|
2845
|
-
]),
|
|
2846
|
-
cols: '4',
|
|
2847
|
-
}],
|
|
2848
|
-
['eds-block-break', {}],
|
|
2849
|
-
['eds-link', {
|
|
2850
|
-
label: 'Main Link Click Me',
|
|
2851
|
-
url: 'https://example.com',
|
|
2852
|
-
intent: 'primary'
|
|
2853
|
-
}],
|
|
2854
|
-
['eds-block-break', {}],
|
|
2855
|
-
['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
|
|
2856
|
-
['eds-block-break', {}],
|
|
2857
|
-
['eds-breadcrumb', {
|
|
2858
|
-
items: JSON.stringify([
|
|
2859
|
-
{ label: 'Home', url: '/' },
|
|
2860
|
-
{ label: 'Products', url: '/products' },
|
|
2861
|
-
{ label: 'Electronics', url: '/products/electronics' },
|
|
2862
|
-
{ label: 'Laptops', url: '/products/electronics/laptops' },
|
|
2863
|
-
]),
|
|
2864
|
-
intent: 'primary',
|
|
2865
|
-
}],
|
|
2866
|
-
['eds-block-break', {}],
|
|
2867
|
-
['eds-card-generic', {
|
|
2868
|
-
'card-title': 'The Future of AI in Healthcare',
|
|
2869
|
-
url: 'https://example.com/ai-healthcare',
|
|
2870
|
-
description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
|
|
2871
|
-
avatar: 'https://files.ebrains.eu/img/686e0edc-f3be-4d79-aa02-373c32c08d65/ebrains-logo-high-resolution.png?fit=max&q=80&fm=webp&crop=879%2C879%2C597%2C0&w=200',
|
|
2872
|
-
'short-abbreviation': 'AI',
|
|
2873
|
-
'heading-level': 'h2',
|
|
2874
|
-
tags: 'Technology,AI,Healthcare',
|
|
2875
|
-
tiny: 'false',
|
|
2876
|
-
bg: 'true',
|
|
2877
|
-
'with-hover': 'true',
|
|
2878
|
-
}],
|
|
2879
|
-
['eds-block-break', {}],
|
|
2880
|
-
['eds-code-block', {
|
|
2881
|
-
code: 'Hello',
|
|
2882
|
-
language: 'javascript',
|
|
2883
|
-
}],
|
|
2884
|
-
['eds-block-break', {}],
|
|
2885
|
-
['eds-dropdown', {
|
|
2886
|
-
'aria-label': 'More options',
|
|
2887
|
-
'rounded-btn': 'true',
|
|
2888
|
-
'dropdown-pos': 'right',
|
|
2889
|
-
'dropdown-offset': 'true',
|
|
2890
|
-
}],
|
|
2891
|
-
['eds-block-break', {}],
|
|
2892
|
-
['eds-form', {
|
|
2893
|
-
name: 'extended-form',
|
|
2894
|
-
endpoint: 'http://127.0.0.1:5000/api/data',
|
|
2895
|
-
fields: JSON.stringify([
|
|
2896
|
-
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
|
|
2897
|
-
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
2898
|
-
{ name: 'number', label: 'Number', type: 'number', required: true },
|
|
2899
|
-
{ name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
|
|
2900
|
-
{ name: 'date', label: 'Date', type: 'date', required: true },
|
|
2901
|
-
{ name: 'file', label: 'File', type: 'file', required: false },
|
|
2902
|
-
{ name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
|
|
2903
|
-
{ name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
|
|
2904
|
-
{ name: 'role', label: 'Role', type: 'select', required: true, options: [
|
|
2905
|
-
{ label: 'Admin', value: 'admin' },
|
|
2906
|
-
{ label: 'Editor', value: 'editor' },
|
|
2907
|
-
{ label: 'Viewer', value: 'viewer' },
|
|
2908
|
-
] },
|
|
2909
|
-
{ name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
|
|
2910
|
-
{ value: 'option1', label: 'Option 1' },
|
|
2911
|
-
{ value: 'option2', label: 'Option 2' },
|
|
2912
|
-
{ value: 'option3', label: 'Option 3' },
|
|
2913
|
-
], required: true },
|
|
2914
|
-
{ name: 'gender', type: 'radio', label: 'Select your gender', options: [
|
|
2915
|
-
{ value: 'female', label: 'Female' },
|
|
2916
|
-
{ value: 'male', label: 'Male' },
|
|
2917
|
-
], required: true },
|
|
2918
|
-
{ name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
|
|
2919
|
-
{ name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
|
|
2920
|
-
]),
|
|
2921
|
-
'success-message': 'Form submitted successfully!',
|
|
2922
|
-
'error-message': 'Please fix the errors in the form.',
|
|
2923
|
-
'submit-btn': 'true',
|
|
2924
|
-
'small-alert': 'false',
|
|
2925
|
-
'set-form-url': 'true',
|
|
2926
|
-
}],
|
|
2927
|
-
['eds-block-break', {}],
|
|
2928
|
-
['eds-img', {
|
|
2929
|
-
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
2930
|
-
alt: 'EBRAINS Bernstein Conference',
|
|
2931
|
-
width: '400',
|
|
2932
|
-
height: '225',
|
|
2933
|
-
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1440w',
|
|
2934
|
-
sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
|
|
2935
|
-
formats: JSON.stringify([
|
|
2936
|
-
{ type: 'image/webp', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 1080w' },
|
|
2937
|
-
{ type: 'image/jpeg', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w' },
|
|
2938
|
-
]),
|
|
2939
|
-
lazyload: 'true',
|
|
2940
|
-
'with-bg': 'true',
|
|
2941
|
-
}],
|
|
2942
|
-
['eds-block-break', {}],
|
|
2943
|
-
['eds-input-field', {
|
|
2944
|
-
name: 'username',
|
|
2945
|
-
'input-id': 'username',
|
|
2946
|
-
label: 'Username',
|
|
2947
|
-
placeholder: 'Enter your username',
|
|
2948
|
-
required: 'true',
|
|
2949
|
-
hint: 'Your unique username',
|
|
2950
|
-
message: 'This field is required',
|
|
2951
|
-
'error-message': 'Invalid username',
|
|
2952
|
-
type: 'text',
|
|
2953
|
-
}],
|
|
2954
|
-
['eds-block-break', {}],
|
|
2955
|
-
['eds-pagination', {
|
|
2956
|
-
'current-page': '1',
|
|
2957
|
-
'last-page': '10',
|
|
2958
|
-
'per-page': '5',
|
|
2959
|
-
total: '50',
|
|
2960
|
-
mode: 'default',
|
|
2961
|
-
}],
|
|
2962
|
-
['eds-block-break', {}],
|
|
2963
|
-
['eds-progress-bar', { value: '75' }],
|
|
2964
|
-
['eds-table', {
|
|
2965
|
-
data: JSON.stringify([
|
|
2966
|
-
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
2967
|
-
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
2968
|
-
{ Property: 'email', Type: 'string', Required: 'No' },
|
|
2969
|
-
]),
|
|
2970
|
-
config: JSON.stringify({
|
|
2971
|
-
Type: { format: 'uppercase' },
|
|
2972
|
-
Property: { format: 'code' },
|
|
2973
|
-
Required: { hidden: true },
|
|
2974
|
-
}),
|
|
2975
|
-
}],
|
|
2976
|
-
['eds-block-break', {}],
|
|
2977
|
-
['eds-tag', { label: 'Default Tag', intent: 'default' }],
|
|
2978
|
-
];
|
|
2979
|
-
|
|
2980
|
-
// Helper function to check if Matomo is initialized
|
|
2981
|
-
function isMatomoAvailable() {
|
|
2982
|
-
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
2983
|
-
}
|
|
2984
|
-
// General function to push data to Matomo
|
|
2985
|
-
function pushToMatomo(action, ...args) {
|
|
2986
|
-
console.log('Pushing Matomo');
|
|
2987
|
-
if (isMatomoAvailable()) {
|
|
2988
|
-
window._paq.push([action, ...args]);
|
|
2989
|
-
}
|
|
2990
|
-
else {
|
|
2991
|
-
console.warn('Matomo is not available or not initialized.');
|
|
2992
|
-
}
|
|
2993
|
-
}
|
|
2994
|
-
// Function to send analytics data
|
|
2995
|
-
function sendAnalytics(eventData) {
|
|
2996
|
-
var _a;
|
|
2997
|
-
if (!isMatomoAvailable()) {
|
|
2998
|
-
console.warn('Matomo is not available or not initialized.');
|
|
2999
|
-
console.log(Object.assign({}, eventData));
|
|
3000
|
-
return;
|
|
3001
|
-
}
|
|
3002
|
-
// Conditionally build the name field
|
|
3003
|
-
const nameParts = [];
|
|
3004
|
-
if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
|
|
3005
|
-
nameParts.push(eventData.parentContext.componentName);
|
|
3006
|
-
}
|
|
3007
|
-
nameParts.push(eventData.tag || 'unknown-tag');
|
|
3008
|
-
nameParts.push(eventData.name || 'unknown-name');
|
|
3009
|
-
const name = nameParts.join('/');
|
|
3010
|
-
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
3011
|
-
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
3012
|
-
console.log(Object.assign({}, eventData));
|
|
3013
|
-
}
|
|
3014
|
-
// Function to opt-in the user
|
|
3015
|
-
function matomoOptIn() {
|
|
3016
|
-
if (isMatomoAvailable()) {
|
|
3017
|
-
window._paq.push(['rememberConsentGiven']);
|
|
3018
|
-
console.log('User has opted in to tracking');
|
|
3019
|
-
}
|
|
3010
|
+
"title": [1],
|
|
3011
|
+
"description": [1],
|
|
3012
|
+
"switchBg": [4, "switch-bg"],
|
|
3013
|
+
"expanded": [4],
|
|
3014
|
+
"clampText": [4, "clamp-text"],
|
|
3015
|
+
"minHeightContent": [4, "min-height-content"],
|
|
3016
|
+
"isExpanded": [32],
|
|
3017
|
+
"panelHeight": [32],
|
|
3018
|
+
"shortContent": [32]
|
|
3019
|
+
},
|
|
3020
|
+
"$listeners$": undefined,
|
|
3021
|
+
"$lazyBundleId$": "-",
|
|
3022
|
+
"$attrsToReflect$": []
|
|
3023
|
+
}; }
|
|
3020
3024
|
}
|
|
3021
3025
|
|
|
3022
|
-
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
3023
|
-
|
|
3026
|
+
const edsAlertCss = ":root {\n font-optical-sizing: auto;\n}\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n/*\n:focus[data-focus-method=\"mouse\"],\n:focus[data-focus-method=\"touch\"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*, ::before, ::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n::before,\n::after {\n}\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type='button']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\nfieldset {\n margin: 0;\n padding: 0;\n}\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n:root {\n --inner-gutter: 8px;\n}\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n:root {\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n@media (min-width: 750px) {\n :root {\n}\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n@media (min-width: 1024px) {\n :root {\n}\n}\n.f-ui-01 b, .f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n@media (min-width: 750px) {\n .md\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-x-0 > *::before {\n content: none;\n }\n .md\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n@media (min-width: 900px) {\n .lg\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-x-0 > *::before {\n content: none;\n }\n .lg\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1 );\n }\n\n &::after {\n content: '';\n }\n}\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n.w-full {\n width: 100%;\n}\n.flex-row {\n flex-direction: row;\n}\n.items-center {\n align-items: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.space-y-12 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.rounded-lg {\n border-radius: 16px;\n}\n.bg-dark {\n background-color: var(--grey-300);\n}\n.bg-error {\n background-color: var(--red-200);\n}\n.bg-success {\n background-color: var(--green-200);\n}\n.bg-warning {\n background-color: var(--yellow-200);\n}\n.p-16 {\n padding: 1rem;\n}\n.p-20 {\n padding: 1.25rem;\n}\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.pr-12 {\n padding-right: 0.75rem;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n[class*=underline-] {\n text-decoration-line: underline;\n}\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05 );\n}\n";
|
|
3027
|
+
var EdsAlertStyle0 = edsAlertCss;
|
|
3028
|
+
|
|
3029
|
+
const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-softest after:rounded-lg'], {
|
|
3024
3030
|
variants: {
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3031
|
+
intent: {
|
|
3032
|
+
default: '',
|
|
3033
|
+
warning: 'bg-warning',
|
|
3034
|
+
error: 'bg-error',
|
|
3035
|
+
success: 'bg-success'
|
|
3029
3036
|
},
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3037
|
+
direction: {
|
|
3038
|
+
vertical: 'space-y-12',
|
|
3039
|
+
horizontal: 'flex flex-row items-center justify-between gap-x-12'
|
|
3033
3040
|
},
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3041
|
+
withBtn: {
|
|
3042
|
+
false: '',
|
|
3043
|
+
true: ''
|
|
3037
3044
|
}
|
|
3038
3045
|
},
|
|
3039
3046
|
compoundVariants: [
|
|
3040
|
-
// region GREEN
|
|
3041
|
-
{
|
|
3042
|
-
color: 'green',
|
|
3043
|
-
direction: 'top',
|
|
3044
|
-
pseudo: true,
|
|
3045
|
-
className: 'before:bg-gradient-01-top'
|
|
3046
|
-
},
|
|
3047
|
-
{
|
|
3048
|
-
color: 'green',
|
|
3049
|
-
pseudo: true,
|
|
3050
|
-
direction: 'bottom',
|
|
3051
|
-
className: 'before:bg-gradient-01-bottom'
|
|
3052
|
-
},
|
|
3053
|
-
{
|
|
3054
|
-
color: 'green',
|
|
3055
|
-
direction: 'top',
|
|
3056
|
-
pseudo: false,
|
|
3057
|
-
className: 'bg-gradient-01-top'
|
|
3058
|
-
},
|
|
3059
|
-
{
|
|
3060
|
-
color: 'green',
|
|
3061
|
-
pseudo: false,
|
|
3062
|
-
direction: 'bottom',
|
|
3063
|
-
className: 'bg-gradient-01-bottom'
|
|
3064
|
-
},
|
|
3065
|
-
// endregion
|
|
3066
|
-
// region YELLOW
|
|
3067
|
-
{
|
|
3068
|
-
color: 'yellow',
|
|
3069
|
-
direction: 'top',
|
|
3070
|
-
pseudo: true,
|
|
3071
|
-
className: 'before:bg-gradient-02-top'
|
|
3072
|
-
},
|
|
3073
|
-
{
|
|
3074
|
-
color: 'yellow',
|
|
3075
|
-
direction: 'bottom',
|
|
3076
|
-
pseudo: true,
|
|
3077
|
-
className: 'before:bg-gradient-02-bottom'
|
|
3078
|
-
},
|
|
3079
|
-
{
|
|
3080
|
-
color: 'yellow',
|
|
3081
|
-
direction: 'top',
|
|
3082
|
-
pseudo: false,
|
|
3083
|
-
className: 'bg-gradient-02-top'
|
|
3084
|
-
},
|
|
3085
|
-
{
|
|
3086
|
-
color: 'yellow',
|
|
3087
|
-
direction: 'bottom',
|
|
3088
|
-
pseudo: false,
|
|
3089
|
-
className: 'bg-gradient-02-bottom'
|
|
3090
|
-
},
|
|
3091
|
-
// endregion
|
|
3092
|
-
// region PURPLE
|
|
3093
|
-
{
|
|
3094
|
-
color: 'purple',
|
|
3095
|
-
direction: 'top',
|
|
3096
|
-
pseudo: true,
|
|
3097
|
-
class: 'before:bg-gradient-03-top'
|
|
3098
|
-
},
|
|
3099
|
-
{
|
|
3100
|
-
color: 'purple',
|
|
3101
|
-
direction: 'bottom',
|
|
3102
|
-
pseudo: true,
|
|
3103
|
-
class: 'before:bg-gradient-03-bottom'
|
|
3104
|
-
},
|
|
3105
|
-
{
|
|
3106
|
-
color: 'purple',
|
|
3107
|
-
direction: 'top',
|
|
3108
|
-
pseudo: false,
|
|
3109
|
-
class: 'bg-gradient-03-top'
|
|
3110
|
-
},
|
|
3111
|
-
{
|
|
3112
|
-
color: 'purple',
|
|
3113
|
-
direction: 'bottom',
|
|
3114
|
-
pseudo: false,
|
|
3115
|
-
class: 'bg-gradient-03-bottom'
|
|
3116
|
-
},
|
|
3117
|
-
// endregion
|
|
3118
|
-
// region AMONG-BLUE
|
|
3119
3047
|
{
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
class: 'before:bg-gradient-04-top'
|
|
3048
|
+
direction: 'horizontal',
|
|
3049
|
+
withBtn: true,
|
|
3050
|
+
class: 'px-20 pr-12 py-12'
|
|
3124
3051
|
},
|
|
3125
3052
|
{
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
class: 'before:bg-gradient-04-bottom'
|
|
3053
|
+
direction: 'horizontal',
|
|
3054
|
+
withBtn: false,
|
|
3055
|
+
class: 'p-20'
|
|
3130
3056
|
},
|
|
3131
3057
|
{
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
class: 'bg-gradient-04-top'
|
|
3058
|
+
direction: 'vertical',
|
|
3059
|
+
withBtn: true,
|
|
3060
|
+
class: 'p-16'
|
|
3136
3061
|
},
|
|
3137
3062
|
{
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
class: 'bg-gradient-04-bottom'
|
|
3063
|
+
direction: 'vertical',
|
|
3064
|
+
withBtn: false,
|
|
3065
|
+
class: 'px-12 py-20'
|
|
3142
3066
|
}
|
|
3143
|
-
// endregion
|
|
3144
3067
|
],
|
|
3145
3068
|
defaultVariants: {
|
|
3146
|
-
|
|
3147
|
-
|
|
3069
|
+
intent: 'default',
|
|
3070
|
+
direction: 'horizontal'
|
|
3148
3071
|
}
|
|
3149
3072
|
});
|
|
3073
|
+
/**
|
|
3074
|
+
* `EdsAlert` is a versatile alert component designed for displaying contextual messages.
|
|
3075
|
+
* This component offers various configuration options to support different use cases, making it ideal for notifying users of information, warnings, errors, or successes.
|
|
3076
|
+
*
|
|
3077
|
+
* Key features include:
|
|
3078
|
+
* - Customizable alert message with different visual intents (`default`, `warning`, `error`, `success`).
|
|
3079
|
+
* - Configurable layout direction (`horizontal` or `vertical`) to accommodate various design requirements.
|
|
3080
|
+
* - Optional pressable element (link or button) that allows users to interact with the alert.
|
|
3081
|
+
* - Emits context events to allow parent components to track alert interactions.
|
|
3082
|
+
*
|
|
3083
|
+
* This component is styled with predefined CSS classes to ensure consistent appearance across different alert types and layout configurations.
|
|
3084
|
+
*/
|
|
3085
|
+
class EdsAlert {
|
|
3086
|
+
constructor(hostRef) {
|
|
3087
|
+
registerInstance(this, hostRef);
|
|
3088
|
+
this.message = undefined;
|
|
3089
|
+
this.pressableLabel = undefined;
|
|
3090
|
+
this.pressableUrl = undefined;
|
|
3091
|
+
this.direction = 'horizontal';
|
|
3092
|
+
this.intent = 'default';
|
|
3093
|
+
this.withBtn = false;
|
|
3094
|
+
}
|
|
3095
|
+
componentWillLoad() {
|
|
3096
|
+
this.withBtn = Boolean(this.pressableLabel);
|
|
3097
|
+
}
|
|
3098
|
+
componentDidLoad() {
|
|
3099
|
+
// Query all 'eds-link' elements, including those inside shadow DOM
|
|
3100
|
+
const lnk = this.el.shadowRoot.querySelector('eds-link');
|
|
3101
|
+
this.emitContext(lnk);
|
|
3102
|
+
}
|
|
3103
|
+
emitContext(linkElement) {
|
|
3104
|
+
const event = new CustomEvent('parentContext', {
|
|
3105
|
+
detail: {
|
|
3106
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
3107
|
+
identifier: null
|
|
3108
|
+
}
|
|
3109
|
+
});
|
|
3110
|
+
linkElement.dispatchEvent(event);
|
|
3111
|
+
}
|
|
3112
|
+
render() {
|
|
3113
|
+
return (hAsync("div", { key: '089491004acd618827ef139a7c2ef486726cea9d', class: alertStyles({
|
|
3114
|
+
intent: this.intent,
|
|
3115
|
+
direction: this.direction,
|
|
3116
|
+
withBtn: this.withBtn
|
|
3117
|
+
}), role: "alert" }, hAsync("p", { key: '9a54555621b492f65b38ecd3cbb44660bf516e51', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
|
|
3118
|
+
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3119
|
+
}
|
|
3120
|
+
get el() { return getElement(this); }
|
|
3121
|
+
static get style() { return EdsAlertStyle0; }
|
|
3122
|
+
static get cmpMeta() { return {
|
|
3123
|
+
"$flags$": 9,
|
|
3124
|
+
"$tagName$": "eds-alert",
|
|
3125
|
+
"$members$": {
|
|
3126
|
+
"message": [1],
|
|
3127
|
+
"pressableLabel": [1, "pressable-label"],
|
|
3128
|
+
"pressableUrl": [1, "pressable-url"],
|
|
3129
|
+
"direction": [1],
|
|
3130
|
+
"intent": [1],
|
|
3131
|
+
"withBtn": [32]
|
|
3132
|
+
},
|
|
3133
|
+
"$listeners$": undefined,
|
|
3134
|
+
"$lazyBundleId$": "-",
|
|
3135
|
+
"$attrsToReflect$": []
|
|
3136
|
+
}; }
|
|
3137
|
+
}
|
|
3150
3138
|
|
|
3151
3139
|
const edsAvatarCss = ".border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border: 2px solid rgba(0, 0, 0, .1);\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-pill {\n &::after {\n border-radius: 100px;\n }\n\n &::after {\n content: '';\n }\n}\n\n.border-inside-inverse {\n &::after {\n border: 2px solid rgba(255, 255, 255, 0.3);\n }\n\n &::after {\n content: '';\n }\n}\n\n.aspect-1x1 {\n aspect-ratio: 1/1;\n}\n\n.flex {\n display: flex;\n}\n\n.inline-flex {\n display: inline-flex;\n}\n\n.items-center {\n align-items: center;\n}\n\n.justify-center {\n justify-content: center;\n}\n\n.overflow-hidden {\n overflow: hidden;\n}\n\n.px-4 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n\n.rounded-pill {\n border-radius: 100px;\n}\n\n.rounded-sm {\n border-radius: 8px;\n}\n\n.rounded-xs {\n border-radius: 4px;\n}\n\n\n.bg-dark {\n background-color: var(--grey-300);\n}\n\n.bg-darker {\n background-color: var(--grey-400);\n}\n\n.bg-stronger {\n background-color: var(--grey-900);\n}\n\n.bg-strongest {\n background-color: var(--black);\n}\n\n.text-accent {\n color: var(--green-500);\n}\n\n.text-default {\n color: var(--black);\n}\n\n.\\!no-underline {\n text-decoration-line: none !important;\n}\n\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n\n.w-32 {\n width: 2rem;\n}\n\n.w-44 {\n width: 2.75rem;\n}\n\n.w-\\[54px\\] {\n width: 54px;\n}";
|
|
3152
3140
|
var EdsAvatarStyle0 = edsAvatarCss;
|
|
@@ -3220,7 +3208,7 @@ class EdsAvatar {
|
|
|
3220
3208
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3221
3209
|
*/
|
|
3222
3210
|
render() {
|
|
3223
|
-
return (hAsync("div", { key: '
|
|
3211
|
+
return (hAsync("div", { key: '3ba716296c615d31ce7f3f41fd57e732adc530bf', class: this.containerClasses }, this.picture ? (hAsync("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: true, withBg: true })) : (hAsync("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials))));
|
|
3224
3212
|
}
|
|
3225
3213
|
static get style() { return EdsAvatarStyle0; }
|
|
3226
3214
|
static get cmpMeta() { return {
|
|
@@ -3258,7 +3246,7 @@ class EdsBlockBreak {
|
|
|
3258
3246
|
this.extraClass = '';
|
|
3259
3247
|
}
|
|
3260
3248
|
render() {
|
|
3261
|
-
return hAsync("hr", { key: '
|
|
3249
|
+
return hAsync("hr", { key: '58ffdece778da8f323dd130908254690b3f6c8d3', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
|
|
3262
3250
|
}
|
|
3263
3251
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3264
3252
|
static get cmpMeta() { return {
|
|
@@ -3316,22 +3304,24 @@ class EdsBreadcrumb {
|
|
|
3316
3304
|
this.maxVisibleItems = 6;
|
|
3317
3305
|
}
|
|
3318
3306
|
/**
|
|
3319
|
-
*
|
|
3320
|
-
* Converts the `items` string into an array of objects if it is a JSON string.
|
|
3321
|
-
* If the format is invalid, it logs an error and sets an empty array.
|
|
3322
|
-
*
|
|
3323
|
-
* @param newValue - The new value for the `items` prop.
|
|
3307
|
+
* Watches for changes to the `items` prop and parses it.
|
|
3324
3308
|
*/
|
|
3325
3309
|
parseItems(newValue) {
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3310
|
+
if (typeof newValue === 'string') {
|
|
3311
|
+
try {
|
|
3312
|
+
const parsed = JSON.parse(newValue);
|
|
3313
|
+
this.parsedItems = Array.isArray(parsed) ? parsed : [];
|
|
3329
3314
|
}
|
|
3330
|
-
|
|
3331
|
-
|
|
3315
|
+
catch (e) {
|
|
3316
|
+
// eslint-disable-next-line
|
|
3317
|
+
console.error('Error parsing breadcrumb items:', e);
|
|
3318
|
+
this.parsedItems = [];
|
|
3332
3319
|
}
|
|
3333
3320
|
}
|
|
3334
|
-
|
|
3321
|
+
else if (Array.isArray(newValue)) {
|
|
3322
|
+
this.parsedItems = newValue;
|
|
3323
|
+
}
|
|
3324
|
+
else {
|
|
3335
3325
|
this.parsedItems = [];
|
|
3336
3326
|
}
|
|
3337
3327
|
}
|
|
@@ -3419,7 +3409,7 @@ class EdsBreadcrumb {
|
|
|
3419
3409
|
*/
|
|
3420
3410
|
render() {
|
|
3421
3411
|
const itemsToRender = this.getTruncatedItems();
|
|
3422
|
-
return (hAsync("nav", { key: '
|
|
3412
|
+
return (hAsync("nav", { key: 'd66dd18fe856e4a8d82e47117d2de0288a9e3c56', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'b3a218032b312cb5973c1ca59ab7bedcfc07d676', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3423
3413
|
const isLast = index === itemsToRender.length - 1;
|
|
3424
3414
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? (hAsync("eds-link", { label: item.label, url: item.url, intent: this.intent, current: isLast, "aria-label": item.label, size: "small", "icon-small": "false" })) : (hAsync("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
|
|
3425
3415
|
}))));
|
|
@@ -3674,7 +3664,7 @@ class EdsButton {
|
|
|
3674
3664
|
show: !this.loading
|
|
3675
3665
|
});
|
|
3676
3666
|
const ElementType = this.elementType;
|
|
3677
|
-
return (hAsync(ElementType, { key: '
|
|
3667
|
+
return (hAsync(ElementType, { key: 'e571ed0d3e2f4aa262259afea7d44d19b5685be7', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && hAsync("span", { key: '8928bd512c6fb592ed8d2d25ad46213a5a7f4bf5', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (hAsync("span", { key: '8fdb5947ef65c60e5cc47f04d8fbe2f8485aa6bf', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '5a6cf5d4f2debc279066cb49fa30da7b66f5532b', class: "loader", style: {
|
|
3678
3668
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3679
3669
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3680
3670
|
} }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -3708,6 +3698,14 @@ class EdsButton {
|
|
|
3708
3698
|
const edsCardDescCss = ".f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.text-light{color:var(--grey-700)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
|
|
3709
3699
|
var EdsCardDescStyle0 = edsCardDescCss;
|
|
3710
3700
|
|
|
3701
|
+
/**
|
|
3702
|
+
* `eds-card-desc` is a simple component that renders a card description.
|
|
3703
|
+
*
|
|
3704
|
+
* It displays a block of text with optional truncation applied using a CSS line clamp.
|
|
3705
|
+
* You can customize the description styling via the `descClass` property and control
|
|
3706
|
+
* whether or not the text is truncated and to how many lines.
|
|
3707
|
+
*
|
|
3708
|
+
*/
|
|
3711
3709
|
class EdsCardDesc {
|
|
3712
3710
|
constructor(hostRef) {
|
|
3713
3711
|
registerInstance(this, hostRef);
|
|
@@ -3720,7 +3718,7 @@ class EdsCardDesc {
|
|
|
3720
3718
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3721
3719
|
}
|
|
3722
3720
|
render() {
|
|
3723
|
-
return (hAsync("p", { key: '
|
|
3721
|
+
return (hAsync("p", { key: 'ca38bcc0895d5a0c87fda782ef455e45c4b53263', class: `text-light ${this.descClass}` }, hAsync("span", { key: '3108eec08a760b1db7ce1a7be05b68749f8f930b', class: this.getTruncateClass() }, this.description)));
|
|
3724
3722
|
}
|
|
3725
3723
|
static get style() { return EdsCardDescStyle0; }
|
|
3726
3724
|
static get cmpMeta() { return {
|
|
@@ -3764,7 +3762,7 @@ class EdsCardGeneric {
|
|
|
3764
3762
|
this.avatar = undefined;
|
|
3765
3763
|
this.shortAbbreviation = undefined;
|
|
3766
3764
|
this.headingLevel = 'h3';
|
|
3767
|
-
this.tags =
|
|
3765
|
+
this.tags = [];
|
|
3768
3766
|
this.tiny = false;
|
|
3769
3767
|
this.bg = true;
|
|
3770
3768
|
this.withHover = true;
|
|
@@ -3840,7 +3838,7 @@ class EdsCardGeneric {
|
|
|
3840
3838
|
});
|
|
3841
3839
|
}
|
|
3842
3840
|
render() {
|
|
3843
|
-
return (hAsync("article", { key: '
|
|
3841
|
+
return (hAsync("article", { key: '5b498abfc65206fe89c9e54e673a81e1b6ed37d5', class: this.articleClasses(), onClick: () => this.handleClick() }, hAsync("eds-card-title", { key: '61a0c6076957e39ab2a059c8587fc2e716e470bc', "heading-level": this.headingLevel, titleClass: this.image ? 'f-ui-01' : undefined, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && (hAsync("eds-card-desc", { key: '6df3c08512acf60e22001867ab5691aa19f67961', class: "mt-8", "truncate-lines": "3", description: this.description })), this.parsedImage ? (hAsync("eds-img", Object.assign({ class: "mt-8" }, this.parsedImage))) : this.avatar || this.shortAbbreviation ? (hAsync("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation })) : null, hAsync("div", { key: '712193c8afac6744e2512d8b760daf2c850987b9', class: "flex flex-wrap gap-y-4" }, this.parsedTags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: tag.style, label: tag.label })))), ' '));
|
|
3844
3842
|
}
|
|
3845
3843
|
get el() { return getElement(this); }
|
|
3846
3844
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -3855,7 +3853,7 @@ class EdsCardGeneric {
|
|
|
3855
3853
|
"avatar": [1],
|
|
3856
3854
|
"shortAbbreviation": [1, "short-abbreviation"],
|
|
3857
3855
|
"headingLevel": [1, "heading-level"],
|
|
3858
|
-
"tags": [
|
|
3856
|
+
"tags": [1],
|
|
3859
3857
|
"tiny": [4],
|
|
3860
3858
|
"bg": [4],
|
|
3861
3859
|
"withHover": [4, "with-hover"],
|
|
@@ -3964,7 +3962,7 @@ var EdsCardSectionStyle0 = edsCardSectionCss;
|
|
|
3964
3962
|
class EdsCardSection {
|
|
3965
3963
|
constructor(hostRef) {
|
|
3966
3964
|
registerInstance(this, hostRef);
|
|
3967
|
-
this.cards =
|
|
3965
|
+
this.cards = [];
|
|
3968
3966
|
this.cols = 4;
|
|
3969
3967
|
}
|
|
3970
3968
|
/**
|
|
@@ -3974,13 +3972,24 @@ class EdsCardSection {
|
|
|
3974
3972
|
* @returns {any[]} An array of parsed card objects.
|
|
3975
3973
|
*/
|
|
3976
3974
|
get parsedCards() {
|
|
3977
|
-
|
|
3978
|
-
|
|
3975
|
+
// If it's already an array, return it immediately.
|
|
3976
|
+
if (Array.isArray(this.cards)) {
|
|
3977
|
+
return this.cards;
|
|
3978
|
+
}
|
|
3979
|
+
if (typeof this.cards === 'object') {
|
|
3980
|
+
return this.cards;
|
|
3979
3981
|
}
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3982
|
+
else if (typeof this.cards === 'string') {
|
|
3983
|
+
try {
|
|
3984
|
+
return JSON.parse(this.cards);
|
|
3985
|
+
}
|
|
3986
|
+
catch (e) {
|
|
3987
|
+
// eslint-disable-next-line
|
|
3988
|
+
console.error('Error parsing cards prop:', e);
|
|
3989
|
+
return [];
|
|
3990
|
+
}
|
|
3983
3991
|
}
|
|
3992
|
+
return [];
|
|
3984
3993
|
}
|
|
3985
3994
|
/**
|
|
3986
3995
|
* Renders the card section as a grid layout.
|
|
@@ -3990,7 +3999,7 @@ class EdsCardSection {
|
|
|
3990
3999
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
3991
4000
|
*/
|
|
3992
4001
|
render() {
|
|
3993
|
-
return (hAsync("section", { key: '
|
|
4002
|
+
return (hAsync("section", { key: 'da139da167230819e494a6426c2431f209a2e557', class: "w-full" }, hAsync("ul", { key: '3e8affe5c9aee91c4487480c72c437339265101a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (hAsync("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, hAsync("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
|
|
3994
4003
|
}
|
|
3995
4004
|
static get style() { return EdsCardSectionStyle0; }
|
|
3996
4005
|
static get cmpMeta() { return {
|
|
@@ -4019,7 +4028,7 @@ class EdsCardTags {
|
|
|
4019
4028
|
this.tags = [];
|
|
4020
4029
|
}
|
|
4021
4030
|
render() {
|
|
4022
|
-
return (hAsync("div", { key: '
|
|
4031
|
+
return (hAsync("div", { key: '60a129de62d45736eba0884cc24c9738f3a0f55c', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index) => (hAsync("eds-tag", { key: index, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
4023
4032
|
}
|
|
4024
4033
|
static get style() { return EdsCardTagsStyle0; }
|
|
4025
4034
|
static get cmpMeta() { return {
|
|
@@ -4083,7 +4092,7 @@ class EdsCardTitle {
|
|
|
4083
4092
|
render() {
|
|
4084
4093
|
//const Tag = this.getTag();
|
|
4085
4094
|
const Heading = this.headingLevel;
|
|
4086
|
-
return (hAsync(Heading, { key: '
|
|
4095
|
+
return (hAsync(Heading, { key: 'a654161b2c53e944eaefb21be7189a5e0acb06cf', class: this.getTitleClass() }, hAsync("a", { key: '868fd911c1a8c366d726e886bfc7827487013e27', class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? '_blank' : undefined, rel: this.externalLink ? 'noopener noreferrer' : undefined }, this.cardTitle)));
|
|
4087
4096
|
}
|
|
4088
4097
|
static get style() { return EdsCardTitleStyle0; }
|
|
4089
4098
|
static get cmpMeta() { return {
|
|
@@ -4222,7 +4231,7 @@ class EdsCardWrapper {
|
|
|
4222
4231
|
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
4223
4232
|
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
4224
4233
|
].join(' ');
|
|
4225
|
-
return (hAsync("article", { key: '
|
|
4234
|
+
return (hAsync("article", { key: '7c12b1d147f061e189b5dda5d517ec4eae0c3691', class: articleClasses }, hAsync("slot", { key: 'f506bad73ed38ae36931f88f7d7c5f5d94705e4f' }), this.hasSlot('footer') && (hAsync("div", { key: '783f480be269e4a2f61aa8d4396e757fe41bfcc6', class: "mt-auto" }, hAsync("slot", { key: 'f07ddaa2d930518a5c8ac82efab3cb0dd6647bdd', name: "footer" })))));
|
|
4226
4235
|
}
|
|
4227
4236
|
get el() { return getElement(this); }
|
|
4228
4237
|
static get cmpMeta() { return {
|
|
@@ -6647,6 +6656,14 @@ Prism.languages.py = Prism.languages.python;
|
|
|
6647
6656
|
const edsCodeBlockCss = ":host{display:block;font-family:var(--font-family, 'Courier New', monospace)}pre[class*=\"language-\"]{white-space:pre-wrap;word-break:break-word;}.language{font-weight:bold;text-transform:uppercase}pre{margin:0;border-radius:8px;color:var(--purple-200);overflow:auto}code{font-family:'Courier New', monospace}.token.keyword{color:var(--purple-500)}.token.string{color:var(--green-500)}.token.function{color:var(--cyan-500)}.token.comment{color:var(--grey-700)}.relative{position:relative}.bg-stronger{background-color:var(--grey-900)}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.p-0{padding:0rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.pl-8{padding-left:0.5rem}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mb-28{margin-bottom:1.75rem}.pb-16{padding-bottom:1rem}.pb-20{padding-bottom:1.25rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.pb-8{padding-bottom:0.5rem}.mt-16{margin-top:1rem}.mt-2{margin-top:0.125rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.w-20{width:1.25rem}.h-20{height:1.25rem}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}";
|
|
6648
6657
|
var EdsCodeBlockStyle0 = edsCodeBlockCss;
|
|
6649
6658
|
|
|
6659
|
+
//import { sendAnalytics } from '@ebrains/utils';
|
|
6660
|
+
/**
|
|
6661
|
+
* A component that displays a code block with syntax highlighting.
|
|
6662
|
+
*
|
|
6663
|
+
* Uses Prism.js for syntax highlighting. Supports multiple languages such as JavaScript, HTML, CSS,
|
|
6664
|
+
* Python, Bash/Shell, and YAML.
|
|
6665
|
+
*
|
|
6666
|
+
* */
|
|
6650
6667
|
class EdsCodeBlock {
|
|
6651
6668
|
constructor(hostRef) {
|
|
6652
6669
|
registerInstance(this, hostRef);
|
|
@@ -6654,12 +6671,58 @@ class EdsCodeBlock {
|
|
|
6654
6671
|
this.language = undefined;
|
|
6655
6672
|
this.copied = false;
|
|
6656
6673
|
}
|
|
6674
|
+
/**
|
|
6675
|
+
* Copies the current code content to the clipboard and sets a temporary copied state.
|
|
6676
|
+
*
|
|
6677
|
+
* @private
|
|
6678
|
+
* @returns {void}
|
|
6679
|
+
*/
|
|
6657
6680
|
copyToClipboard() {
|
|
6658
6681
|
navigator.clipboard.writeText(this.code).then(() => {
|
|
6659
6682
|
this.copied = true;
|
|
6683
|
+
/*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
|
|
6684
|
+
sendAnalytics({
|
|
6685
|
+
category: 'ui-component',
|
|
6686
|
+
parentContext: null,
|
|
6687
|
+
tag: this.el.tagName.toLowerCase(),
|
|
6688
|
+
name: analyticsName || '',
|
|
6689
|
+
action: 'copy'
|
|
6690
|
+
});*/
|
|
6660
6691
|
setTimeout(() => (this.copied = false), 2000);
|
|
6661
6692
|
});
|
|
6662
6693
|
}
|
|
6694
|
+
/**
|
|
6695
|
+
* Utility function that creates a human-friendly analytics name based on the code and language.
|
|
6696
|
+
* It uses:
|
|
6697
|
+
* - The language (in uppercase)
|
|
6698
|
+
* - The number of non-empty lines in the code
|
|
6699
|
+
* - The first non-empty line of code (truncated to 30 characters, if needed)
|
|
6700
|
+
*
|
|
6701
|
+
* returns A descriptive analytics name.
|
|
6702
|
+
*/
|
|
6703
|
+
/*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
|
|
6704
|
+
// Count non-empty lines
|
|
6705
|
+
const lines = code.split('\n').filter(line => line.trim() !== '').length;
|
|
6706
|
+
|
|
6707
|
+
// Find the first non-empty line and trim it
|
|
6708
|
+
let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
|
|
6709
|
+
firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
|
|
6710
|
+
|
|
6711
|
+
// Truncate the snippet if it’s too long
|
|
6712
|
+
if (firstNonEmptyLine.length > 30) {
|
|
6713
|
+
firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
|
|
6714
|
+
}
|
|
6715
|
+
|
|
6716
|
+
return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
|
|
6717
|
+
}*/
|
|
6718
|
+
/**
|
|
6719
|
+
* Returns the syntax-highlighted HTML for the code.
|
|
6720
|
+
* If the provided language is supported by Prism, this method returns the highlighted code.
|
|
6721
|
+
* Otherwise, it logs a warning and returns the raw code.
|
|
6722
|
+
*
|
|
6723
|
+
* @private
|
|
6724
|
+
* @returns {string} The highlighted HTML string for the code block.
|
|
6725
|
+
*/
|
|
6663
6726
|
getHighlightedCode() {
|
|
6664
6727
|
if (this.language && Prism$1.languages[this.language]) {
|
|
6665
6728
|
return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
|
|
@@ -6669,8 +6732,9 @@ class EdsCodeBlock {
|
|
|
6669
6732
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6670
6733
|
}
|
|
6671
6734
|
render() {
|
|
6672
|
-
return (hAsync("div", { key: '
|
|
6735
|
+
return (hAsync("div", { key: '00eba9265ee17605f699d1e5606013b68e900b29', class: "relative bg-stronger rounded-sm" }, hAsync("div", { key: '1192584f04de5ff74e91c88597a3360b92053456', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (hAsync("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (hAsync("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, hAsync("code", { innerHTML: this.getHighlightedCode() }))), hAsync("span", { key: '3666b6529a16a8cc64f448527db4ddee08f977a3', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, hAsync("eds-icon-wrapper", { key: 'f222d95a2e548429f6c4de96a7646e3cef1f360f', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), hAsync("span", { key: '8c539deda773909c01a41eb04ee51380c0a9c4bb', class: "sr-only" }, "Copy Code")), this.language && (hAsync("pre", { key: '99541dedb32c543da5e780ffee4460333fbb3724', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, hAsync("code", { key: '4e6ae6fcfae3de8c1fe5ad9d22309e0c8bee0c2c', innerHTML: this.getHighlightedCode() })))));
|
|
6673
6736
|
}
|
|
6737
|
+
get el() { return getElement(this); }
|
|
6674
6738
|
static get style() { return EdsCodeBlockStyle0; }
|
|
6675
6739
|
static get cmpMeta() { return {
|
|
6676
6740
|
"$flags$": 9,
|
|
@@ -6687,54 +6751,76 @@ class EdsCodeBlock {
|
|
|
6687
6751
|
}
|
|
6688
6752
|
|
|
6689
6753
|
const EdsComponentsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
6690
|
-
hAsync("eds-alert", { message: "EBRAINS Design System makes it easy to implement and use its components across any framework or no framework at all. We\n accomplish this by using standardized web platform APIs and Web Components.", intent: "default" }),
|
|
6691
6754
|
hAsync("h2", null, "Load the module"),
|
|
6692
6755
|
hAsync("p", null,
|
|
6693
6756
|
"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
|
|
6694
6757
|
' ',
|
|
6695
6758
|
hAsync("code", null, "head"),
|
|
6696
6759
|
"."),
|
|
6697
|
-
hAsync("eds-code-block", { code:
|
|
6760
|
+
hAsync("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
|
|
6698
6761
|
hAsync("h2", null, "Load the styles"),
|
|
6699
6762
|
hAsync("p", null,
|
|
6700
6763
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
6701
6764
|
' ',
|
|
6702
6765
|
hAsync("code", null, "head")),
|
|
6703
|
-
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
6766
|
+
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
6767
|
+
hAsync("div", { class: "my-4" },
|
|
6768
|
+
hAsync("eds-alert", { message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.", intent: "warning" })),
|
|
6704
6769
|
hAsync("h2", null, "Load the fonts"),
|
|
6705
6770
|
hAsync("p", null,
|
|
6706
|
-
"To load the
|
|
6771
|
+
"To load the webfonts, add the tag below to the ",
|
|
6707
6772
|
hAsync("code", null, "head")),
|
|
6708
6773
|
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
6709
6774
|
hAsync("h2", null, "Component Usage"),
|
|
6710
6775
|
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
6711
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"
|
|
6776
|
+
hAsync("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
6712
6777
|
|
|
6713
6778
|
const EdsDocsInstallation = () => (hAsync("div", null,
|
|
6714
|
-
hAsync("p", null, "
|
|
6715
|
-
hAsync("
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
hAsync("
|
|
6720
|
-
|
|
6779
|
+
hAsync("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
6780
|
+
hAsync("div", { class: "my-8" },
|
|
6781
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })),
|
|
6782
|
+
hAsync("div", { class: "my-8" },
|
|
6783
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
6784
|
+
hAsync("div", { class: "my-8" },
|
|
6785
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
|
|
6721
6786
|
|
|
6722
6787
|
const EdsDocsReact = () => (hAsync("div", null,
|
|
6723
6788
|
hAsync("h2", null, "React Wrappers"),
|
|
6724
|
-
hAsync("p", null, "Learn how to use our components in a React Application."),
|
|
6725
|
-
"
|
|
6726
|
-
|
|
6789
|
+
hAsync("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
|
|
6790
|
+
hAsync("div", { class: "my-8" },
|
|
6791
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
6727
6792
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
6728
|
-
hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n
|
|
6793
|
+
hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6729
6794
|
|
|
6730
6795
|
const EdsDocsVue = () => (hAsync("div", null,
|
|
6731
6796
|
hAsync("h2", null, "Vue Wrappers"),
|
|
6732
6797
|
hAsync("p", null, "Learn how to use our components in a Vue Application."),
|
|
6798
|
+
hAsync("p", null, "Simply install the latest version of our NPM package."),
|
|
6733
6799
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
6734
|
-
hAsync("p", null, "
|
|
6800
|
+
hAsync("p", null, "Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your \"main.ts\" file."),
|
|
6735
6801
|
hAsync("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }),
|
|
6802
|
+
hAsync("h2", null,
|
|
6803
|
+
"Passing Properties to Custom Elements Using the ",
|
|
6804
|
+
hAsync("b", null, ".prop"),
|
|
6805
|
+
" Modifier in Vue Wrappers"),
|
|
6806
|
+
hAsync("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML\u2019s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),
|
|
6807
|
+
hAsync("h3", null,
|
|
6808
|
+
"How to Use the ",
|
|
6809
|
+
hAsync("b", null, ".prop"),
|
|
6810
|
+
" Modifier"),
|
|
6811
|
+
hAsync("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here\u2019s an example of how to do it:"),
|
|
6812
|
+
hAsync("div", { class: "mt-8" },
|
|
6813
|
+
hAsync("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })),
|
|
6814
|
+
hAsync("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel="Press Me"\n :pressableUrl="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
|
|
6815
|
+
hAsync("div", { class: "mt-8" },
|
|
6816
|
+
hAsync("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })),
|
|
6817
|
+
hAsync("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel.prop="Press Me"\n :pressableUrl.prop="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
|
|
6818
|
+
hAsync("p", null,
|
|
6819
|
+
"Using the ",
|
|
6820
|
+
hAsync("b", null, ".prop"),
|
|
6821
|
+
" modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
|
|
6736
6822
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
6737
|
-
hAsync("eds-code-block", { code: '\n<template>\n <
|
|
6823
|
+
hAsync("eds-code-block", { code: '\n<template>\n <EdsHeader \n :inverseHeader.prop="true"\n :menuEnabled.prop="true">\n </EdsHeader>\n</template>\n\n<script>\n\nimport { EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: {\n EdsHeader,\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6738
6824
|
|
|
6739
6825
|
const EdsDocsAngular = () => (hAsync("div", null,
|
|
6740
6826
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -6745,7 +6831,7 @@ const EdsDocsAngular = () => (hAsync("div", null,
|
|
|
6745
6831
|
hAsync("p", null, "Angular Custom Elements Schema"),
|
|
6746
6832
|
hAsync("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
|
|
6747
6833
|
hAsync("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" },
|
|
6748
|
-
hAsync("eds-code-block", { code: '\n<div class="container">\n <
|
|
6834
|
+
hAsync("eds-code-block", { code: '\n<div class="container">\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6749
6835
|
|
|
6750
6836
|
/**
|
|
6751
6837
|
* @internal
|
|
@@ -6762,19 +6848,17 @@ class EdsComponentsSection {
|
|
|
6762
6848
|
case 1:
|
|
6763
6849
|
return hAsync(EdsDocsInstallation, null);
|
|
6764
6850
|
case 2:
|
|
6765
|
-
return hAsync(EdsDocsUsage, null);
|
|
6766
|
-
case 3:
|
|
6767
6851
|
return hAsync(EdsDocsReact, null);
|
|
6768
|
-
case
|
|
6852
|
+
case 3:
|
|
6769
6853
|
return hAsync(EdsDocsVue, null);
|
|
6770
|
-
case
|
|
6854
|
+
case 4:
|
|
6771
6855
|
return hAsync(EdsDocsAngular, null);
|
|
6772
6856
|
default:
|
|
6773
6857
|
return hAsync("p", null, "Content not available.");
|
|
6774
6858
|
}
|
|
6775
6859
|
}
|
|
6776
6860
|
render() {
|
|
6777
|
-
return hAsync("div", { key: '
|
|
6861
|
+
return hAsync("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
|
|
6778
6862
|
}
|
|
6779
6863
|
static get cmpMeta() { return {
|
|
6780
6864
|
"$flags$": 0,
|
|
@@ -6815,7 +6899,7 @@ class EdsDocsContent {
|
|
|
6815
6899
|
}
|
|
6816
6900
|
}
|
|
6817
6901
|
render() {
|
|
6818
|
-
return hAsync("div", { key: '
|
|
6902
|
+
return hAsync("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
|
|
6819
6903
|
}
|
|
6820
6904
|
static get cmpMeta() { return {
|
|
6821
6905
|
"$flags$": 0,
|
|
@@ -6848,7 +6932,7 @@ class EdsDocsPalettes {
|
|
|
6848
6932
|
}
|
|
6849
6933
|
}
|
|
6850
6934
|
render() {
|
|
6851
|
-
return hAsync("div", { key: '
|
|
6935
|
+
return hAsync("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
|
|
6852
6936
|
}
|
|
6853
6937
|
static get cmpMeta() { return {
|
|
6854
6938
|
"$flags$": 0,
|
|
@@ -6886,6 +6970,7 @@ class EdsDropdown {
|
|
|
6886
6970
|
* Toggles the visibility of the dropdown and manages focus.
|
|
6887
6971
|
*/
|
|
6888
6972
|
this.handleClick = () => {
|
|
6973
|
+
var _a;
|
|
6889
6974
|
this.isOpen = !this.isOpen;
|
|
6890
6975
|
if (this.isOpen) {
|
|
6891
6976
|
this.focusIndex = 0;
|
|
@@ -6894,6 +6979,13 @@ class EdsDropdown {
|
|
|
6894
6979
|
else {
|
|
6895
6980
|
this.closeDropdown();
|
|
6896
6981
|
}
|
|
6982
|
+
sendAnalytics({
|
|
6983
|
+
category: 'ui-component',
|
|
6984
|
+
parentContext: null,
|
|
6985
|
+
tag: this.host.tagName.toLowerCase(),
|
|
6986
|
+
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
6987
|
+
action: this.isOpen ? 'expanded' : 'collapsed'
|
|
6988
|
+
});
|
|
6897
6989
|
};
|
|
6898
6990
|
this.icon = 'chevron-down';
|
|
6899
6991
|
this.label = undefined;
|
|
@@ -6960,39 +7052,20 @@ class EdsDropdown {
|
|
|
6960
7052
|
componentDidLoad() {
|
|
6961
7053
|
var _a;
|
|
6962
7054
|
this.focusableItems = Array.from(((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button')) || []);
|
|
6963
|
-
const btns = this.host.shadowRoot.querySelectorAll('eds-button');
|
|
6964
|
-
btns.forEach((btn) => {
|
|
6965
|
-
this.emitContext(btn);
|
|
6966
|
-
});
|
|
6967
|
-
}
|
|
6968
|
-
/**
|
|
6969
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
6970
|
-
* Provides context information about the dropdown component.
|
|
6971
|
-
*
|
|
6972
|
-
* @param linkElement - The button element to which the event will be dispatched.
|
|
6973
|
-
*/
|
|
6974
|
-
emitContext(linkElement) {
|
|
6975
|
-
const event = new CustomEvent('parentContext', {
|
|
6976
|
-
detail: {
|
|
6977
|
-
componentName: this.host.tagName.toLowerCase(),
|
|
6978
|
-
identifier: null
|
|
6979
|
-
}
|
|
6980
|
-
});
|
|
6981
|
-
linkElement.dispatchEvent(event);
|
|
6982
7055
|
}
|
|
6983
7056
|
/**
|
|
6984
7057
|
* Renders the dropdown component and displays its content when open.
|
|
6985
7058
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6986
7059
|
*/
|
|
6987
7060
|
render() {
|
|
6988
|
-
return (hAsync("div", { key: '
|
|
7061
|
+
return (hAsync("div", { key: '809cb733330db434f94f854ed4d1ee375f598297', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, hAsync("eds-button", { key: 'c80f2930b335708a2a01d06b565673597bd8d926', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), hAsync("nav", { key: '7b3ccb2ab29474a4795d5491960e0713aefcd624', class: {
|
|
6989
7062
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
6990
7063
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6991
7064
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6992
7065
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6993
7066
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6994
7067
|
'rounded-lg': this.rounded
|
|
6995
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
7068
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'c514c5dca893708fd1660a61cfeb1607229bbff5' }))));
|
|
6996
7069
|
}
|
|
6997
7070
|
get host() { return getElement(this); }
|
|
6998
7071
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7069,7 +7142,7 @@ class EdsFooter {
|
|
|
7069
7142
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7070
7143
|
*/
|
|
7071
7144
|
render() {
|
|
7072
|
-
return (hAsync("footer", { key: '
|
|
7145
|
+
return (hAsync("footer", { key: '8d3d1b5d2acd76f56b2bc12539cb7d277b4dcd7f', class: `${this.extraClass} pb-banner` }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, hAsync("div", { class: "container pb-20 xl:pb-40 " }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })), hAsync("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, hAsync("div", { key: '7d6e3a414ec8e8f8e2b795faf639948f8819f5cb', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, hAsync("div", { key: '9a475fd146ac0e1bc78c43940ee24ec31212fcb9', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '4b465113cdb882f919fba15e944eb56edbe3c570', class: "flex items-center gap-x-12" }, hAsync("a", { key: '1a8ad1ee5f4dfb77da036b03d0770cba8e5d725e', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, hAsync("eds-img", { key: '4714ea1a01b7b7eef8b3af0c04ffe793d51c4d5e', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), hAsync("div", { key: 'c4db6bab70e570e337c82136a0d9d6dad01c1039', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, hAsync("p", { key: '0b030a92c12a3a96fe2baacc13ac21f5bd708a50' }, this.fundedBy), hAsync("div", { key: '4714d0ccf0e3912ae330a6f39ed3607caf2b51a4', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, hAsync("span", { key: 'b4bc2d45871c7d1f9de1d6090959b12fd5246f01', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (hAsync("button", { key: '98b56eee7be6bc1558821933cebf2853b3bb68fc', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), hAsync("div", { key: 'f4bf4a0c99f3be920dd15f68e6f7e390cd85ecce', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
|
|
7073
7146
|
}
|
|
7074
7147
|
static get style() { return EdsFooterStyle0; }
|
|
7075
7148
|
static get cmpMeta() { return {
|
|
@@ -7250,7 +7323,6 @@ class EdsForm {
|
|
|
7250
7323
|
this.formSubmitting.emit(this.isSubmitting);
|
|
7251
7324
|
}
|
|
7252
7325
|
};
|
|
7253
|
-
this.smallAlert = false;
|
|
7254
7326
|
this.setFormUrl = true;
|
|
7255
7327
|
this.submitBtn = true;
|
|
7256
7328
|
this.submitBtnLabel = 'Submit';
|
|
@@ -7259,7 +7331,7 @@ class EdsForm {
|
|
|
7259
7331
|
this.submitBtnHintMessage = 'To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.';
|
|
7260
7332
|
this.endpoint = undefined;
|
|
7261
7333
|
this.name = 'form';
|
|
7262
|
-
this.fields =
|
|
7334
|
+
this.fields = [];
|
|
7263
7335
|
this.values = {};
|
|
7264
7336
|
this.coupleAuth = false;
|
|
7265
7337
|
this.formSubmitted = false;
|
|
@@ -7269,6 +7341,7 @@ class EdsForm {
|
|
|
7269
7341
|
this.alertMessage = null;
|
|
7270
7342
|
this.isAuthenticated = false;
|
|
7271
7343
|
this.authUser = undefined;
|
|
7344
|
+
this.parsedFields = [];
|
|
7272
7345
|
}
|
|
7273
7346
|
onAuthStatusChanged(event) {
|
|
7274
7347
|
var _a;
|
|
@@ -7276,6 +7349,7 @@ class EdsForm {
|
|
|
7276
7349
|
this.authUser = event.detail.user;
|
|
7277
7350
|
}
|
|
7278
7351
|
componentDidLoad() {
|
|
7352
|
+
this.parseFields(this.fields);
|
|
7279
7353
|
// Emit context for each eds-link element after the component is fully loaded
|
|
7280
7354
|
const links = this.el.querySelectorAll('eds-button');
|
|
7281
7355
|
links.forEach((link) => {
|
|
@@ -7348,7 +7422,7 @@ class EdsForm {
|
|
|
7348
7422
|
validateForm() {
|
|
7349
7423
|
this.errors = {};
|
|
7350
7424
|
this.hasError = false;
|
|
7351
|
-
this.
|
|
7425
|
+
this.parsedFields.forEach((field) => {
|
|
7352
7426
|
if (field.type !== 'hidden') {
|
|
7353
7427
|
if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
|
|
7354
7428
|
// Single checkbox validation
|
|
@@ -7430,27 +7504,48 @@ class EdsForm {
|
|
|
7430
7504
|
});
|
|
7431
7505
|
return formData;
|
|
7432
7506
|
}
|
|
7433
|
-
|
|
7434
|
-
|
|
7507
|
+
parseFields(newValue) {
|
|
7508
|
+
try {
|
|
7509
|
+
if (typeof newValue === 'string') {
|
|
7510
|
+
this.parsedFields = JSON.parse(newValue);
|
|
7511
|
+
}
|
|
7512
|
+
else if (Array.isArray(newValue)) {
|
|
7513
|
+
this.parsedFields = newValue;
|
|
7514
|
+
}
|
|
7515
|
+
else if (newValue && typeof newValue === 'object') {
|
|
7516
|
+
// In case a single object is passed, wrap it in an array.
|
|
7517
|
+
this.parsedFields = newValue;
|
|
7518
|
+
}
|
|
7519
|
+
else {
|
|
7520
|
+
this.parsedFields = [];
|
|
7521
|
+
}
|
|
7522
|
+
}
|
|
7523
|
+
catch (error) {
|
|
7524
|
+
// eslint-disable-next-line
|
|
7525
|
+
console.error('Error parsing fields prop:', error);
|
|
7526
|
+
this.parsedFields = [];
|
|
7527
|
+
}
|
|
7435
7528
|
}
|
|
7436
7529
|
render() {
|
|
7437
|
-
const hiddenFields = this.
|
|
7438
|
-
const otherFields = this.
|
|
7439
|
-
return (hAsync("form", { key: '
|
|
7530
|
+
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7531
|
+
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7532
|
+
return (hAsync("form", { key: '0a106caa8aa9f056b55acf6fecfbc7090c4411d2', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, hAsync("div", { key: '3478d82640378d9a1c0c09394453e2118b1b3ca9' }, hAsync("slot", { key: '9bc37f54c03b2b0f831da917b6ce6bab2ec11084' }), hiddenFields.map((field, index) => (hAsync("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
|
|
7440
7533
|
var _a, _b;
|
|
7441
7534
|
if (!this.isFieldVisible(field)) {
|
|
7442
7535
|
return null;
|
|
7443
7536
|
}
|
|
7444
7537
|
return (hAsync("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, type: field.type, icon: field.icon || null, required: field.required, maxLength: field.maxlength, hint: field.hint, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
|
|
7445
|
-
})), this.submitBtn && (hAsync("div", { key: '
|
|
7538
|
+
})), this.submitBtn && (hAsync("div", { key: 'ca221e8c5c18cf4a107581736728f84cea7831d0', class: "mt-20" }, hAsync("eds-button", { key: 'eef3cf052beb62703c1df74d142650194d60c501', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated), loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (hAsync("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (hAsync("div", { key: '69861c8776b99e26a08585a5a8c893c85a2d9999', class: "mt-20" }, hAsync("eds-alert", { key: 'b4d225d8efcbe6cde95789c367f0ecf94f217c9c', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
|
|
7446
7539
|
}
|
|
7447
7540
|
get el() { return getElement(this); }
|
|
7541
|
+
static get watchers() { return {
|
|
7542
|
+
"fields": ["parseFields"]
|
|
7543
|
+
}; }
|
|
7448
7544
|
static get style() { return EdsFormStyle0; }
|
|
7449
7545
|
static get cmpMeta() { return {
|
|
7450
7546
|
"$flags$": 4,
|
|
7451
7547
|
"$tagName$": "eds-form",
|
|
7452
7548
|
"$members$": {
|
|
7453
|
-
"smallAlert": [4, "small-alert"],
|
|
7454
7549
|
"setFormUrl": [4, "set-form-url"],
|
|
7455
7550
|
"submitBtn": [4, "submit-btn"],
|
|
7456
7551
|
"submitBtnLabel": [1, "submit-btn-label"],
|
|
@@ -7468,7 +7563,8 @@ class EdsForm {
|
|
|
7468
7563
|
"isSubmitting": [32],
|
|
7469
7564
|
"alertMessage": [32],
|
|
7470
7565
|
"isAuthenticated": [32],
|
|
7471
|
-
"authUser": [32]
|
|
7566
|
+
"authUser": [32],
|
|
7567
|
+
"parsedFields": [32]
|
|
7472
7568
|
},
|
|
7473
7569
|
"$listeners$": [[16, "authStatusChanged", "onAuthStatusChanged"]],
|
|
7474
7570
|
"$lazyBundleId$": "-",
|
|
@@ -7601,7 +7697,8 @@ var EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
|
7601
7697
|
* It provides a responsive, full-window overlay menu with navigation links and additional options.
|
|
7602
7698
|
* This component is suitable for mobile and small screens, where a fullscreen menu enhances user navigation.
|
|
7603
7699
|
*
|
|
7604
|
-
* ## Key Features
|
|
7700
|
+
* ## Key Features
|
|
7701
|
+
*
|
|
7605
7702
|
* - **Links and Menu Links**: Allows configurable primary and secondary navigation links.
|
|
7606
7703
|
* - **Event-Driven Open/Close**: Listens for a `toggleMenu` event to open or close the menu, emitted by the `eds-header` component.
|
|
7607
7704
|
* - **Responsive Behavior**: Automatically closes the menu when the screen width is larger than a specified breakpoint (1024px).
|
|
@@ -7791,6 +7888,10 @@ class EdsHeader {
|
|
|
7791
7888
|
* @returns {any[]} Array of parsed link objects
|
|
7792
7889
|
*/
|
|
7793
7890
|
get parsedLinks() {
|
|
7891
|
+
// If it's already an array, return it immediately.
|
|
7892
|
+
if (Array.isArray(this.links)) {
|
|
7893
|
+
return this.links;
|
|
7894
|
+
}
|
|
7794
7895
|
if (typeof this.links === 'object') {
|
|
7795
7896
|
return this.links;
|
|
7796
7897
|
}
|
|
@@ -7807,8 +7908,8 @@ class EdsHeader {
|
|
|
7807
7908
|
return [];
|
|
7808
7909
|
}
|
|
7809
7910
|
render() {
|
|
7810
|
-
return (hAsync("header", { key: '
|
|
7811
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '
|
|
7911
|
+
return (hAsync("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
|
|
7912
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '00206a2714dedfe205151002cc10c430e75814fb', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: '25fc6207d61bb4cc06877dd0b15bf56392b50255', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: '8d1ee2947db26e5acb556da845fe1b811a8d18b2', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: '5c70e48f3a617a6abe402659b37741e657440cbc', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: '773b60e90ecfe336fede86ea6e3b0ec2fd10bd72' }), this.userFeature ? (hAsync("div", { class: "px-16" }, hAsync("eds-user", { "keycloak-url": this.keycloakUrl, "keycloak-realm": this.keycloakRealm, "keycloak-client-id": this.keycloakClientId }))) : null, this.menuEnabled ? (hAsync("div", { class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
|
|
7812
7913
|
}
|
|
7813
7914
|
get hostEl() { return getElement(this); }
|
|
7814
7915
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -10651,6 +10752,24 @@ class EdsInputSearch {
|
|
|
10651
10752
|
}; }
|
|
10652
10753
|
}
|
|
10653
10754
|
|
|
10755
|
+
/**
|
|
10756
|
+
* A custom select input component that supports both static and dynamic options.
|
|
10757
|
+
*
|
|
10758
|
+
* Options can be provided in two formats:
|
|
10759
|
+
* 1. Dynamic fetch configuration:
|
|
10760
|
+
* [
|
|
10761
|
+
* { endpoint: "http://localhost/api/applications", value: "_id", label: "title" }
|
|
10762
|
+
* ]
|
|
10763
|
+
* 2. Static options:
|
|
10764
|
+
* [
|
|
10765
|
+
* { value: "react", label: "React" },
|
|
10766
|
+
* { value: "angular", label: "Angular" },
|
|
10767
|
+
* { value: "vue", label: "Vue.js" },
|
|
10768
|
+
* // etc.
|
|
10769
|
+
* ]
|
|
10770
|
+
*
|
|
10771
|
+
* The component will automatically fetch data if a dynamic configuration is provided.
|
|
10772
|
+
*/
|
|
10654
10773
|
/**
|
|
10655
10774
|
* @internal
|
|
10656
10775
|
*/
|
|
@@ -10658,6 +10777,12 @@ class EdsInputSelect {
|
|
|
10658
10777
|
constructor(hostRef) {
|
|
10659
10778
|
registerInstance(this, hostRef);
|
|
10660
10779
|
this.changeEvent = createEvent(this, "changeEvent", 7);
|
|
10780
|
+
/**
|
|
10781
|
+
* Event handler for the select input's change event.
|
|
10782
|
+
* Emits the selected value.
|
|
10783
|
+
*
|
|
10784
|
+
* @param event The change event from the select input.
|
|
10785
|
+
*/
|
|
10661
10786
|
this.handleChange = (event) => {
|
|
10662
10787
|
const target = event.target;
|
|
10663
10788
|
this.changeEvent.emit(target.value);
|
|
@@ -10670,11 +10795,64 @@ class EdsInputSelect {
|
|
|
10670
10795
|
this.error = false;
|
|
10671
10796
|
this.required = false;
|
|
10672
10797
|
this.options = [];
|
|
10798
|
+
this.labelKey = 'label';
|
|
10799
|
+
this.valueKey = 'value';
|
|
10673
10800
|
this.value = undefined;
|
|
10801
|
+
this.dynamicOptions = [];
|
|
10802
|
+
this.loading = false;
|
|
10803
|
+
this.dynamicValueKey = 'value';
|
|
10804
|
+
this.dynamicLabelKey = 'label';
|
|
10805
|
+
}
|
|
10806
|
+
componentWillLoad() {
|
|
10807
|
+
this.loadOptions();
|
|
10808
|
+
}
|
|
10809
|
+
/**
|
|
10810
|
+
* Watches for changes in the `options` prop and loads the options accordingly.
|
|
10811
|
+
*
|
|
10812
|
+
* If the first object in the options array contains an "endpoint" key,
|
|
10813
|
+
* the component will fetch options from the specified endpoint using the configured keys.
|
|
10814
|
+
* Otherwise, it will treat the options as static.
|
|
10815
|
+
*
|
|
10816
|
+
* @async
|
|
10817
|
+
*/
|
|
10818
|
+
async loadOptions() {
|
|
10819
|
+
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
10820
|
+
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
10821
|
+
const config = this.options[0];
|
|
10822
|
+
const endpoint = config.endpoint;
|
|
10823
|
+
this.dynamicValueKey = config.value || 'value';
|
|
10824
|
+
this.dynamicLabelKey = config.label || 'label';
|
|
10825
|
+
this.loading = true;
|
|
10826
|
+
try {
|
|
10827
|
+
const response = await fetch(endpoint);
|
|
10828
|
+
if (!response.ok) {
|
|
10829
|
+
toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
|
|
10830
|
+
}
|
|
10831
|
+
const data = await response.json();
|
|
10832
|
+
// Assume the API returns an array of objects.
|
|
10833
|
+
this.dynamicOptions = data;
|
|
10834
|
+
}
|
|
10835
|
+
catch (error) {
|
|
10836
|
+
//console.error('Error fetching dynamic options:', error);
|
|
10837
|
+
toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
|
|
10838
|
+
}
|
|
10839
|
+
finally {
|
|
10840
|
+
this.loading = false;
|
|
10841
|
+
}
|
|
10842
|
+
}
|
|
10843
|
+
else {
|
|
10844
|
+
// No dynamic configuration found, assume static options.
|
|
10845
|
+
this.dynamicOptions = this.options;
|
|
10846
|
+
this.dynamicValueKey = this.valueKey;
|
|
10847
|
+
this.dynamicLabelKey = this.labelKey;
|
|
10848
|
+
}
|
|
10674
10849
|
}
|
|
10675
10850
|
render() {
|
|
10676
|
-
return (hAsync("div", { key: '
|
|
10851
|
+
return (hAsync("div", { key: 'd37107564a86281b3a3920a5eb128f47f6fd4ceb', class: "relative" }, hAsync("select", { key: 'a69cd907ef6732ec42a99fd46bbf9a52ef03735a', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, hAsync("option", { key: '8b84a2b7edd7e989411908b16f35c46853889d8e', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (hAsync("option", { key: index, value: option[this.dynamicValueKey] }, option[this.dynamicLabelKey])))), hAsync("span", { key: 'dbccb6161aafc2dc31cc6dd5b3d8c812545eab9a', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, hAsync("eds-icon-wrapper", { key: 'b0fd24cb54185d8558dfabcb94d05b6257caacd1', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
10677
10852
|
}
|
|
10853
|
+
static get watchers() { return {
|
|
10854
|
+
"options": ["loadOptions"]
|
|
10855
|
+
}; }
|
|
10678
10856
|
static get cmpMeta() { return {
|
|
10679
10857
|
"$flags$": 0,
|
|
10680
10858
|
"$tagName$": "eds-input-select",
|
|
@@ -10687,7 +10865,13 @@ class EdsInputSelect {
|
|
|
10687
10865
|
"error": [4],
|
|
10688
10866
|
"required": [4],
|
|
10689
10867
|
"options": [16],
|
|
10690
|
-
"
|
|
10868
|
+
"labelKey": [1, "label-key"],
|
|
10869
|
+
"valueKey": [1, "value-key"],
|
|
10870
|
+
"value": [8],
|
|
10871
|
+
"dynamicOptions": [32],
|
|
10872
|
+
"loading": [32],
|
|
10873
|
+
"dynamicValueKey": [32],
|
|
10874
|
+
"dynamicLabelKey": [32]
|
|
10691
10875
|
},
|
|
10692
10876
|
"$listeners$": undefined,
|
|
10693
10877
|
"$lazyBundleId$": "-",
|
|
@@ -10847,12 +11031,11 @@ class EdsLink {
|
|
|
10847
11031
|
this.hideLabelOnSmallScreen = false;
|
|
10848
11032
|
this.extraClass = undefined;
|
|
10849
11033
|
}
|
|
10850
|
-
|
|
11034
|
+
handleParentContext(event) {
|
|
10851
11035
|
if (event.target !== this.el) {
|
|
10852
11036
|
// Ignore the event if it's not targeted at this specific instance
|
|
10853
11037
|
return;
|
|
10854
11038
|
}
|
|
10855
|
-
//console.log(event.detail);
|
|
10856
11039
|
this.parentContext = event.detail;
|
|
10857
11040
|
event.stopPropagation();
|
|
10858
11041
|
}
|
|
@@ -10903,7 +11086,7 @@ class EdsLink {
|
|
|
10903
11086
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
10904
11087
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
10905
11088
|
: '';
|
|
10906
|
-
return (hAsync(ComponentType, { key: '
|
|
11089
|
+
return (hAsync(ComponentType, { key: '58eb3c1c5c192c2855424864c9e3e9c7a5fe3378', class: `${classes || ''} ${this.extraClass || ''}`, href: !this.disabled ? this.url : undefined, target: this.external && !this.disabled ? '_blank' : undefined, rel: this.external && !this.disabled ? 'noopener noreferrer' : undefined, "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.disabled ? 'true' : null, download: this.download ? '' : undefined, onClick: (event) => this.handleClick(event) }, hAsync("span", { key: 'd4033ba589552f60f8dc7559434a3c035d226de4', class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), hAsync("span", { key: 'ca520cc66febaf8c8ddfd2fd8ee8a13b71a3078d', class: labelClasses }, this.label), this.renderRightIcon())));
|
|
10907
11090
|
}
|
|
10908
11091
|
get el() { return getElement(this); }
|
|
10909
11092
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -10926,7 +11109,7 @@ class EdsLink {
|
|
|
10926
11109
|
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"],
|
|
10927
11110
|
"extraClass": [1, "extra-class"]
|
|
10928
11111
|
},
|
|
10929
|
-
"$listeners$": [[0, "parentContext", "
|
|
11112
|
+
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
10930
11113
|
"$lazyBundleId$": "-",
|
|
10931
11114
|
"$attrsToReflect$": []
|
|
10932
11115
|
}; }
|
|
@@ -12892,10 +13075,10 @@ class EdsLogin {
|
|
|
12892
13075
|
return this.authenticated ? 'Logout' : 'Login';
|
|
12893
13076
|
}
|
|
12894
13077
|
render() {
|
|
12895
|
-
return (hAsync("
|
|
13078
|
+
return (hAsync("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
|
|
12896
13079
|
}
|
|
12897
13080
|
static get cmpMeta() { return {
|
|
12898
|
-
"$flags$":
|
|
13081
|
+
"$flags$": 9,
|
|
12899
13082
|
"$tagName$": "eds-login",
|
|
12900
13083
|
"$members$": {
|
|
12901
13084
|
"keycloakUrl": [1, "keycloak-url"],
|
|
@@ -13006,6 +13189,39 @@ class EdsLogo {
|
|
|
13006
13189
|
}; }
|
|
13007
13190
|
}
|
|
13008
13191
|
|
|
13192
|
+
/**
|
|
13193
|
+
* @internal
|
|
13194
|
+
*/
|
|
13195
|
+
class EdsLogoVariations {
|
|
13196
|
+
constructor(hostRef) {
|
|
13197
|
+
registerInstance(this, hostRef);
|
|
13198
|
+
this.tabIndex = undefined;
|
|
13199
|
+
}
|
|
13200
|
+
renderContent() {
|
|
13201
|
+
switch (this.tabIndex) {
|
|
13202
|
+
case 0:
|
|
13203
|
+
return hAsync("logo-variations-horizontal", null);
|
|
13204
|
+
case 1:
|
|
13205
|
+
return hAsync("logo-variations-vertical", null);
|
|
13206
|
+
default:
|
|
13207
|
+
return hAsync("p", null, "Content not available.");
|
|
13208
|
+
}
|
|
13209
|
+
}
|
|
13210
|
+
render() {
|
|
13211
|
+
return hAsync("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
13212
|
+
}
|
|
13213
|
+
static get cmpMeta() { return {
|
|
13214
|
+
"$flags$": 0,
|
|
13215
|
+
"$tagName$": "eds-logo-variations",
|
|
13216
|
+
"$members$": {
|
|
13217
|
+
"tabIndex": [2, "tab-index"]
|
|
13218
|
+
},
|
|
13219
|
+
"$listeners$": undefined,
|
|
13220
|
+
"$lazyBundleId$": "-",
|
|
13221
|
+
"$attrsToReflect$": []
|
|
13222
|
+
}; }
|
|
13223
|
+
}
|
|
13224
|
+
|
|
13009
13225
|
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))}}";
|
|
13010
13226
|
var EdsMatomoNoticeStyle0 = edsMatomoNoticeCss;
|
|
13011
13227
|
|
|
@@ -13122,7 +13338,7 @@ class EdsMatomoNotice {
|
|
|
13122
13338
|
}; }
|
|
13123
13339
|
}
|
|
13124
13340
|
|
|
13125
|
-
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
|
|
13341
|
+
const edsModalCss = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}";
|
|
13126
13342
|
var EdsModalStyle0 = edsModalCss;
|
|
13127
13343
|
|
|
13128
13344
|
//import { sendAnalytics } from '@ebrains/utils';
|
|
@@ -13143,33 +13359,59 @@ class EdsModal {
|
|
|
13143
13359
|
this.title = '';
|
|
13144
13360
|
this.truncate = true;
|
|
13145
13361
|
this.truncateLines = '1';
|
|
13362
|
+
this.position = 'middle';
|
|
13146
13363
|
}
|
|
13147
13364
|
getTruncateClass() {
|
|
13148
13365
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
13149
13366
|
}
|
|
13367
|
+
/**
|
|
13368
|
+
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
13369
|
+
*
|
|
13370
|
+
* @private
|
|
13371
|
+
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
13372
|
+
*/
|
|
13373
|
+
getModalPositionClasses() {
|
|
13374
|
+
switch (this.position) {
|
|
13375
|
+
case 'top':
|
|
13376
|
+
return 'left-1/2 top-20 -translate-x-1/2';
|
|
13377
|
+
case 'bottom':
|
|
13378
|
+
return 'left-1/2 bottom-20 -translate-x-1/2';
|
|
13379
|
+
case 'left':
|
|
13380
|
+
return 'left-20 top-1/2 -translate-y-1/2';
|
|
13381
|
+
case 'right':
|
|
13382
|
+
return 'right-20 top-1/2 -translate-y-1/2';
|
|
13383
|
+
case 'middle':
|
|
13384
|
+
default:
|
|
13385
|
+
return 'left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2';
|
|
13386
|
+
}
|
|
13387
|
+
}
|
|
13150
13388
|
/**
|
|
13151
13389
|
* Opens the modal.
|
|
13152
13390
|
*/
|
|
13153
13391
|
async open() {
|
|
13392
|
+
var _a;
|
|
13154
13393
|
this.isOpen = true;
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13394
|
+
sendAnalytics({
|
|
13395
|
+
category: 'ui-component',
|
|
13396
|
+
parentContext: null,
|
|
13397
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13398
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
13399
|
+
action: 'opened'
|
|
13400
|
+
});
|
|
13161
13401
|
}
|
|
13162
13402
|
/**
|
|
13163
13403
|
* Closes the modal.
|
|
13164
13404
|
*/
|
|
13165
13405
|
async close() {
|
|
13406
|
+
var _a;
|
|
13166
13407
|
this.isOpen = false;
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13172
|
-
|
|
13408
|
+
sendAnalytics({
|
|
13409
|
+
category: 'ui-component',
|
|
13410
|
+
parentContext: null,
|
|
13411
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13412
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
13413
|
+
action: 'closed'
|
|
13414
|
+
});
|
|
13173
13415
|
}
|
|
13174
13416
|
/**
|
|
13175
13417
|
* Toggles the modal open or closed.
|
|
@@ -13183,30 +13425,27 @@ class EdsModal {
|
|
|
13183
13425
|
*/
|
|
13184
13426
|
componentDidLoad() {
|
|
13185
13427
|
// Emit context for each eds-link element after the component is fully loaded
|
|
13186
|
-
const
|
|
13187
|
-
|
|
13188
|
-
this.emitContext(btn);
|
|
13189
|
-
});
|
|
13428
|
+
//const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
13429
|
+
//this.emitContext(btn);
|
|
13190
13430
|
}
|
|
13191
13431
|
/**
|
|
13192
13432
|
* Emits a custom event called `parentContext` for a given button element.
|
|
13193
13433
|
* This event provides context information about the eds-modal component.
|
|
13194
|
-
*
|
|
13195
|
-
* @param btnElement - The link element to which the event will be dispatched.
|
|
13196
13434
|
*/
|
|
13197
|
-
emitContext(btnElement) {
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13435
|
+
/*emitContext(btnElement: HTMLElement) {
|
|
13436
|
+
const event = new CustomEvent<ParentContextDetail>('parentContext', {
|
|
13437
|
+
detail: {
|
|
13438
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
13439
|
+
identifier: null
|
|
13440
|
+
}
|
|
13441
|
+
});
|
|
13442
|
+
|
|
13443
|
+
btnElement.dispatchEvent(event);
|
|
13444
|
+
}*/
|
|
13206
13445
|
render() {
|
|
13207
|
-
return (hAsync("div", { key: '
|
|
13446
|
+
return (hAsync("div", { key: 'eedcdc49c9f4a16ef4537ec02335757aa1143bd9', class: `${this.isOpen ? 'block' : 'hidden'} fixed inset-0 z-50 flex` }, this.isOpen && (hAsync("div", { key: '2b24903b85895fd5eca389d6897aa85c892e762f', class: "fixed inset-0 bg-dark bg-opacity-90" // Add backdrop-blur utility class here
|
|
13208
13447
|
,
|
|
13209
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
13448
|
+
onClick: () => this.close() })), hAsync("div", { key: 'd135a2d9eff1764b6335b9b16be54d8fec7d4112', class: `max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, hAsync("div", { key: 'bc8ea6f95443f01d3e5b88953581e1f2eae4009c', class: "flex justify-between items-center border-b-2 border-softer pb-8" }, hAsync("span", { key: '872b9a4bf44db478d38f18d3459a816c119f352d', class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), hAsync("eds-button", { key: 'bdf27a3f564d295383985cb1f0ce7df7f13a97fb', intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), hAsync("div", { key: '600cc4d544d0a41d9d2be74aedbb0d2fe2028141', class: "pt-8" }, hAsync("slot", { key: '8ce560804a6d960b4075e4b6d1607dda6530c08d' })))));
|
|
13210
13449
|
}
|
|
13211
13450
|
get el() { return getElement(this); }
|
|
13212
13451
|
static get style() { return EdsModalStyle0; }
|
|
@@ -13217,6 +13456,7 @@ class EdsModal {
|
|
|
13217
13456
|
"title": [1],
|
|
13218
13457
|
"truncate": [4],
|
|
13219
13458
|
"truncateLines": [1, "truncate-lines"],
|
|
13459
|
+
"position": [1],
|
|
13220
13460
|
"isOpen": [32],
|
|
13221
13461
|
"open": [64],
|
|
13222
13462
|
"close": [64],
|
|
@@ -13319,14 +13559,18 @@ class EdsPagination {
|
|
|
13319
13559
|
componentDidLoad() {
|
|
13320
13560
|
// Emit context for each eds-link element after the component is fully loaded
|
|
13321
13561
|
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13562
|
+
links.forEach((lnk) => {
|
|
13563
|
+
this.emitContext(lnk);
|
|
13564
|
+
});
|
|
13565
|
+
/*if (links.length > 0) {
|
|
13566
|
+
// Emit context for the first link
|
|
13567
|
+
this.emitContext(links[0]);
|
|
13568
|
+
|
|
13569
|
+
// Emit context for the last link, if it's different from the first
|
|
13570
|
+
if (links.length > 1) {
|
|
13571
|
+
this.emitContext(links[links.length - 1]);
|
|
13572
|
+
}
|
|
13573
|
+
}*/
|
|
13330
13574
|
}
|
|
13331
13575
|
/**
|
|
13332
13576
|
* Emits a custom event called `parentContext` for a given link element.
|
|
@@ -13456,7 +13700,7 @@ class EdsPagination {
|
|
|
13456
13700
|
}
|
|
13457
13701
|
}
|
|
13458
13702
|
render() {
|
|
13459
|
-
return (hAsync("div", { key: '
|
|
13703
|
+
return (hAsync("div", { key: '584e0918b070eac25a7c4bfceff59b000b60076c' }, this.total > 0 && this.mode === 'default' && (hAsync("p", { key: 'c688bd8e1f1d15904fc274454093f03213f59e38', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, hAsync("span", { key: 'c2472919bad41f76e26d518da27509e545ed9db6', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (hAsync("nav", { "aria-label": "Pagination" }, hAsync("ul", { class: "flex items-center justify-center gap-x-8" }, hAsync("li", { class: "mr-auto" }, hAsync("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
13460
13704
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
13461
13705
|
: this.isFirstPage()
|
|
13462
13706
|
? '#'
|
|
@@ -13563,10 +13807,8 @@ class EdsRating {
|
|
|
13563
13807
|
this.selectedRating = 0;
|
|
13564
13808
|
}
|
|
13565
13809
|
/**
|
|
13566
|
-
* Parses the `
|
|
13567
|
-
* Returns an empty array if parsing fails
|
|
13568
|
-
*
|
|
13569
|
-
* @returns {any[]} Array of parsed link objects
|
|
13810
|
+
* Parses the `textMapping` prop into an array of strings.
|
|
13811
|
+
* Returns an empty array if parsing fails.
|
|
13570
13812
|
*/
|
|
13571
13813
|
get parsedMappings() {
|
|
13572
13814
|
if (typeof this.textMapping === 'object') {
|
|
@@ -13578,7 +13820,7 @@ class EdsRating {
|
|
|
13578
13820
|
}
|
|
13579
13821
|
catch (e) {
|
|
13580
13822
|
// eslint-disable-next-line
|
|
13581
|
-
console.error('Error parsing
|
|
13823
|
+
console.error('Error parsing textMapping prop:', e);
|
|
13582
13824
|
return [];
|
|
13583
13825
|
}
|
|
13584
13826
|
}
|
|
@@ -13593,10 +13835,10 @@ class EdsRating {
|
|
|
13593
13835
|
this.ratingChange.emit(rating);
|
|
13594
13836
|
}
|
|
13595
13837
|
render() {
|
|
13596
|
-
return (hAsync("div", { key: '
|
|
13838
|
+
return (hAsync("div", { key: 'c9147c2635f091d93f329d2b56a5fee8dce9126c', class: "relative w-full flex flex-col" }, hAsync("span", { key: '39a84bc3d9bcd4b729a35737c883eca7144d13ac', class: "f-body-01" }, this.label), hAsync("div", { key: '3cb84acf399cac0b23393c71df2f2b36aab4f43e', class: "stars" }, Array.from({ length: this.stars }, (_, index) => (hAsync("span", { class: {
|
|
13597
13839
|
star: true,
|
|
13598
13840
|
filled: index < this.selectedRating
|
|
13599
|
-
}, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '
|
|
13841
|
+
}, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '60605ec21b542825da0dad629fc1618d9cf63b25', class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]))));
|
|
13600
13842
|
}
|
|
13601
13843
|
static get style() { return EdsRatingStyle0; }
|
|
13602
13844
|
static get cmpMeta() { return {
|
|
@@ -13605,7 +13847,7 @@ class EdsRating {
|
|
|
13605
13847
|
"$members$": {
|
|
13606
13848
|
"stars": [2],
|
|
13607
13849
|
"label": [1],
|
|
13608
|
-
"textMapping": [
|
|
13850
|
+
"textMapping": [1, "text-mapping"],
|
|
13609
13851
|
"selectedRating": [32]
|
|
13610
13852
|
},
|
|
13611
13853
|
"$listeners$": undefined,
|
|
@@ -13711,14 +13953,14 @@ class EdsSectionHeading {
|
|
|
13711
13953
|
}; }
|
|
13712
13954
|
}
|
|
13713
13955
|
|
|
13714
|
-
const
|
|
13715
|
-
var EdsSocialNetworksStyle0 =
|
|
13956
|
+
const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.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)}.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)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
13957
|
+
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13716
13958
|
|
|
13717
13959
|
/**
|
|
13718
13960
|
* Component representing a list of social network links for EBRAINS.
|
|
13719
13961
|
* Each link directs users to EBRAINS' profiles on various social networks.
|
|
13720
13962
|
*/
|
|
13721
|
-
class
|
|
13963
|
+
class EdsSocialNetworks {
|
|
13722
13964
|
constructor(hostRef) {
|
|
13723
13965
|
registerInstance(this, hostRef);
|
|
13724
13966
|
/**
|
|
@@ -13769,7 +14011,7 @@ class EdsSocialNetwork {
|
|
|
13769
14011
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
13770
14012
|
*/
|
|
13771
14013
|
render() {
|
|
13772
|
-
return (hAsync("div", { key: '
|
|
14014
|
+
return (hAsync("div", { key: 'a6a3e2084eb01def71f6fee67ebe8c5f4f613c89' }, hAsync("p", { key: '43b92e9c33f8abef6070a6a3cd77f7573e2ab454', class: "f-ui-02" }, this.title), hAsync("ul", { key: 'c0e0dfdeff373885f62250c8bf4385268410406c', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
13773
14015
|
}
|
|
13774
14016
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13775
14017
|
static get cmpMeta() { return {
|
|
@@ -13800,6 +14042,11 @@ class EdsSvgRepository {
|
|
|
13800
14042
|
icon: svgContent // Pass SVG content as innerHTML
|
|
13801
14043
|
}));
|
|
13802
14044
|
}
|
|
14045
|
+
get hostWidth() {
|
|
14046
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
14047
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
14048
|
+
return containerWidth;
|
|
14049
|
+
}
|
|
13803
14050
|
render() {
|
|
13804
14051
|
const svgData = this.getSvgData();
|
|
13805
14052
|
// Define table configuration
|
|
@@ -13807,8 +14054,9 @@ class EdsSvgRepository {
|
|
|
13807
14054
|
icon: { format: 'svg' },
|
|
13808
14055
|
name: { format: 'bold' }
|
|
13809
14056
|
};
|
|
13810
|
-
return (hAsync("eds-table", { key: '
|
|
14057
|
+
return (hAsync("eds-table", { key: 'a1d4a1db6f0886a43513fc34707cdd6140ab685d', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true, "host-width": this.hostWidth }));
|
|
13811
14058
|
}
|
|
14059
|
+
get hostEl() { return getElement(this); }
|
|
13812
14060
|
static get cmpMeta() { return {
|
|
13813
14061
|
"$flags$": 9,
|
|
13814
14062
|
"$tagName$": "eds-svg-repository",
|
|
@@ -13867,7 +14115,7 @@ class EdsTab {
|
|
|
13867
14115
|
}; }
|
|
13868
14116
|
}
|
|
13869
14117
|
|
|
13870
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}";
|
|
14118
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
13871
14119
|
var EdsTableStyle0 = edsTableCss;
|
|
13872
14120
|
|
|
13873
14121
|
/**
|
|
@@ -13884,13 +14132,14 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13884
14132
|
class EdsTable {
|
|
13885
14133
|
constructor(hostRef) {
|
|
13886
14134
|
registerInstance(this, hostRef);
|
|
13887
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
13888
14135
|
this.data = null;
|
|
13889
14136
|
this.endpoint = null;
|
|
13890
14137
|
this.config = {};
|
|
13891
14138
|
this.rowsPerPage = 10;
|
|
13892
14139
|
this.paginationEnabled = true;
|
|
13893
14140
|
this.searchEnabled = false;
|
|
14141
|
+
this.hostWidth = undefined;
|
|
14142
|
+
this.columnSize = 'default';
|
|
13894
14143
|
this.tableData = [];
|
|
13895
14144
|
this.columns = [];
|
|
13896
14145
|
this.currentPage = 1;
|
|
@@ -13969,10 +14218,24 @@ class EdsTable {
|
|
|
13969
14218
|
}
|
|
13970
14219
|
handlePageChange(newPage) {
|
|
13971
14220
|
this.currentPage = newPage;
|
|
14221
|
+
sendAnalytics({
|
|
14222
|
+
category: 'ui-component',
|
|
14223
|
+
parentContext: null,
|
|
14224
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
14225
|
+
name: `${newPage}` || '',
|
|
14226
|
+
action: 'page'
|
|
14227
|
+
});
|
|
13972
14228
|
}
|
|
13973
14229
|
handleSearch(event) {
|
|
13974
14230
|
this.searchQuery = event.target.value;
|
|
13975
14231
|
this.currentPage = 1;
|
|
14232
|
+
/*sendAnalytics({
|
|
14233
|
+
category: 'ui-component',
|
|
14234
|
+
parentContext: null,
|
|
14235
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
14236
|
+
name: `${this.searchQuery}` || '',
|
|
14237
|
+
action: 'page'
|
|
14238
|
+
});*/
|
|
13976
14239
|
}
|
|
13977
14240
|
renderCell(value, column) {
|
|
13978
14241
|
var _a;
|
|
@@ -13988,27 +14251,44 @@ class EdsTable {
|
|
|
13988
14251
|
getVisibleColumnsCount() {
|
|
13989
14252
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
13990
14253
|
}
|
|
14254
|
+
divisionFactor() {
|
|
14255
|
+
let divisionFactor = 1;
|
|
14256
|
+
if (this.columnSize === 'medium') {
|
|
14257
|
+
divisionFactor = 2;
|
|
14258
|
+
}
|
|
14259
|
+
else if (this.columnSize === 'large') {
|
|
14260
|
+
divisionFactor = 4;
|
|
14261
|
+
}
|
|
14262
|
+
return divisionFactor;
|
|
14263
|
+
}
|
|
13991
14264
|
render() {
|
|
14265
|
+
// Get the paginated rows and calculate the last page.
|
|
13992
14266
|
const paginatedRows = this.getPaginatedRows();
|
|
13993
14267
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13994
|
-
//
|
|
13995
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
13996
|
-
// Use the visible column count to calculate the column width
|
|
14268
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
13997
14269
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
13998
|
-
|
|
13999
|
-
|
|
14270
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
14271
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
14272
|
+
? Number(this.hostWidth)
|
|
14273
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
14274
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
14275
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
14276
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
14277
|
+
: 400;
|
|
14278
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14279
|
+
return (hAsync("div", { key: '69fd87330d2049eeb91751c781c7aa753fa89883' }, this.searchEnabled && (hAsync("div", { key: '2f9680dd17b852b140fe560f7979e1dd58236c5a' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
14000
14280
|
// @ts-ignore
|
|
14001
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '
|
|
14281
|
+
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: 'd67edb24308e526a3e860a90250d58cf8bfee9c8', class: "mt-20" }, hAsync("table", { key: '9a2ef219110e459ac670a0f9c2e62c600f6b5acd', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '81bae222447e805d06642dda19903d5bf99f2b01' }, hAsync("tr", { key: '582d7ea661823b81ccdf3adc9769fe53cf56f04c', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14002
14282
|
var _a;
|
|
14003
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0
|
|
14004
|
-
}))), hAsync("tbody", { key: '
|
|
14283
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
14284
|
+
}))), hAsync("tbody", { key: 'ce7f87e665c394c5e9f2201ef2658e888ea07948' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14005
14285
|
var _a;
|
|
14006
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0
|
|
14007
|
-
}))))))), hAsync("div", { key: '
|
|
14286
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
|
|
14287
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0', class: "mt-20" }, hAsync("eds-pagination", { key: '5192f3f4b2ee93d5864d1afed3341a122c826d97', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14008
14288
|
}
|
|
14009
14289
|
get hostEl() { return getElement(this); }
|
|
14010
14290
|
static get watchers() { return {
|
|
14011
|
-
"data": ["handleDataChange"],
|
|
14291
|
+
"data": ["handleDataChange", "parseData"],
|
|
14012
14292
|
"config": ["handleConfigChange"]
|
|
14013
14293
|
}; }
|
|
14014
14294
|
static get style() { return EdsTableStyle0; }
|
|
@@ -14022,6 +14302,8 @@ class EdsTable {
|
|
|
14022
14302
|
"rowsPerPage": [2, "rows-per-page"],
|
|
14023
14303
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
14024
14304
|
"searchEnabled": [4, "search-enabled"],
|
|
14305
|
+
"hostWidth": [1, "host-width"],
|
|
14306
|
+
"columnSize": [1, "column-size"],
|
|
14025
14307
|
"tableData": [32],
|
|
14026
14308
|
"columns": [32],
|
|
14027
14309
|
"currentPage": [32],
|
|
@@ -14090,12 +14372,33 @@ class EdsTabs {
|
|
|
14090
14372
|
this.setActiveIndex();
|
|
14091
14373
|
this.tabChange.emit({ tabId: this.id, index: 0 });
|
|
14092
14374
|
}
|
|
14375
|
+
/**
|
|
14376
|
+
* Parses the `links` prop into an array of link objects.
|
|
14377
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14378
|
+
*
|
|
14379
|
+
* @returns {any[]} Array of parsed link objects
|
|
14380
|
+
*/
|
|
14381
|
+
/**
|
|
14382
|
+
* Parses the `links` prop into an array of link objects.
|
|
14383
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14384
|
+
*
|
|
14385
|
+
* @returns {any[]} Array of parsed link objects
|
|
14386
|
+
*/
|
|
14093
14387
|
parseTabs() {
|
|
14094
|
-
|
|
14095
|
-
this.parsedTabs =
|
|
14388
|
+
if (Array.isArray(this.tabs)) {
|
|
14389
|
+
this.parsedTabs = this.tabs;
|
|
14096
14390
|
}
|
|
14097
|
-
|
|
14098
|
-
|
|
14391
|
+
else if (typeof this.tabs === 'string') {
|
|
14392
|
+
try {
|
|
14393
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
14394
|
+
}
|
|
14395
|
+
catch (e) {
|
|
14396
|
+
//console.error('Error parsing tabs prop:', e);
|
|
14397
|
+
this.parsedTabs = [];
|
|
14398
|
+
}
|
|
14399
|
+
}
|
|
14400
|
+
else {
|
|
14401
|
+
// If the type is not an array or string, assume an empty array.
|
|
14099
14402
|
this.parsedTabs = [];
|
|
14100
14403
|
}
|
|
14101
14404
|
}
|
|
@@ -14145,7 +14448,7 @@ class EdsTabs {
|
|
|
14145
14448
|
});
|
|
14146
14449
|
}
|
|
14147
14450
|
render() {
|
|
14148
|
-
return (hAsync("div", { key: '
|
|
14451
|
+
return (hAsync("div", { key: '540bb667084b36ae2151ec39ef6b54a9ac6a4c4a', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: 'f0266d39c943b82725ded757cce0b35fb85fa874', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14149
14452
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14150
14453
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14151
14454
|
return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
@@ -14287,11 +14590,11 @@ class EdsTabsContent {
|
|
|
14287
14590
|
});
|
|
14288
14591
|
}
|
|
14289
14592
|
render() {
|
|
14290
|
-
return (hAsync("div", { key: '
|
|
14593
|
+
return (hAsync("div", { key: '7bc954d9251bd15b5e3a49d5c74b83805f802b07', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14291
14594
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14292
14595
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14293
14596
|
return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
14294
|
-
})), hAsync("slot", { key: '
|
|
14597
|
+
})), hAsync("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
|
|
14295
14598
|
}
|
|
14296
14599
|
get el() { return getElement(this); }
|
|
14297
14600
|
static get watchers() { return {
|
|
@@ -14370,27 +14673,38 @@ class EdsTag {
|
|
|
14370
14673
|
}; }
|
|
14371
14674
|
}
|
|
14372
14675
|
|
|
14373
|
-
/**
|
|
14374
|
-
* @internal
|
|
14375
|
-
*/
|
|
14376
14676
|
class EdsTimeline {
|
|
14377
14677
|
constructor(hostRef) {
|
|
14378
14678
|
registerInstance(this, hostRef);
|
|
14679
|
+
this.events = undefined;
|
|
14379
14680
|
this.selectedEvent = null;
|
|
14380
14681
|
this.parsedEvents = [];
|
|
14381
|
-
this.events = undefined;
|
|
14382
14682
|
}
|
|
14383
14683
|
parseEvents(newValue) {
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14684
|
+
let parsed;
|
|
14685
|
+
// If events is a string, try to parse it
|
|
14686
|
+
if (typeof newValue === 'string') {
|
|
14687
|
+
try {
|
|
14688
|
+
parsed = JSON.parse(newValue);
|
|
14689
|
+
}
|
|
14690
|
+
catch (e) {
|
|
14691
|
+
// eslint-disable-next-line
|
|
14692
|
+
console.error('Error parsing timeline events JSON', e);
|
|
14693
|
+
parsed = [];
|
|
14694
|
+
}
|
|
14390
14695
|
}
|
|
14391
|
-
|
|
14392
|
-
|
|
14696
|
+
// If events is already an array, use it directly
|
|
14697
|
+
else if (Array.isArray(newValue)) {
|
|
14698
|
+
parsed = newValue;
|
|
14393
14699
|
}
|
|
14700
|
+
// Otherwise, default to an empty array
|
|
14701
|
+
else {
|
|
14702
|
+
parsed = [];
|
|
14703
|
+
}
|
|
14704
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
14705
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
14706
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
14707
|
+
: [];
|
|
14394
14708
|
}
|
|
14395
14709
|
componentWillLoad() {
|
|
14396
14710
|
this.parseEvents(this.events);
|
|
@@ -14417,7 +14731,7 @@ class EdsTimeline {
|
|
|
14417
14731
|
}
|
|
14418
14732
|
}
|
|
14419
14733
|
render() {
|
|
14420
|
-
return (hAsync("div", { key: '
|
|
14734
|
+
return (hAsync("div", { key: '6016cb89d3fe3250482b42d8a0bf500fe18cee5d', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: '994cc7af75950a0f09d108804efff796602aeb93', class: "relative" }, hAsync("div", { key: '77b15ae60feb380ea20c6466b49d0efd5d8f5180', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '60bb384ce4eedd7bfc3b15a7a637e2b89318d619', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14421
14735
|
? [{ label: 'completed', style: 'accent' }]
|
|
14422
14736
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14423
14737
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14468,6 +14782,27 @@ class EdsToast {
|
|
|
14468
14782
|
this.duration = 5000;
|
|
14469
14783
|
this.visible = true;
|
|
14470
14784
|
}
|
|
14785
|
+
/**
|
|
14786
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
14787
|
+
* to recalculate height on window resize.
|
|
14788
|
+
*/
|
|
14789
|
+
componentDidLoad() {
|
|
14790
|
+
// Emit context for each eds-button element after the component is fully loaded
|
|
14791
|
+
const btn = this.el.querySelector('eds-button');
|
|
14792
|
+
this.emitContext(btn);
|
|
14793
|
+
}
|
|
14794
|
+
/**
|
|
14795
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
14796
|
+
*/
|
|
14797
|
+
emitContext(linkElement) {
|
|
14798
|
+
const event = new CustomEvent('parentContext', {
|
|
14799
|
+
detail: {
|
|
14800
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
14801
|
+
identifier: null
|
|
14802
|
+
}
|
|
14803
|
+
});
|
|
14804
|
+
linkElement.dispatchEvent(event);
|
|
14805
|
+
}
|
|
14471
14806
|
connectedCallback() {
|
|
14472
14807
|
// Auto-dismiss the toast after the specified duration
|
|
14473
14808
|
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
@@ -14531,7 +14866,7 @@ class EdsToastManager {
|
|
|
14531
14866
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14532
14867
|
}
|
|
14533
14868
|
render() {
|
|
14534
|
-
return (hAsync("div", { key: '
|
|
14869
|
+
return (hAsync("div", { key: '459148404380e386117387f42183e24a069b2de6', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
14535
14870
|
}
|
|
14536
14871
|
get hostElement() { return getElement(this); }
|
|
14537
14872
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14566,9 +14901,17 @@ class EdsTooltip {
|
|
|
14566
14901
|
* Show the tooltip and update its position.
|
|
14567
14902
|
*/
|
|
14568
14903
|
async showTooltip() {
|
|
14904
|
+
var _a;
|
|
14569
14905
|
await this.updateTooltipPosition();
|
|
14570
14906
|
this.isPositioned = true;
|
|
14571
14907
|
this.isVisible = true;
|
|
14908
|
+
sendAnalytics({
|
|
14909
|
+
category: 'ui-component',
|
|
14910
|
+
parentContext: null,
|
|
14911
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14912
|
+
name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
14913
|
+
action: 'hover'
|
|
14914
|
+
});
|
|
14572
14915
|
}
|
|
14573
14916
|
/**
|
|
14574
14917
|
* Hide the tooltip.
|
|
@@ -14633,7 +14976,7 @@ class EdsTooltip {
|
|
|
14633
14976
|
}
|
|
14634
14977
|
}
|
|
14635
14978
|
render() {
|
|
14636
|
-
return (hAsync("div", { key: '
|
|
14979
|
+
return (hAsync("div", { key: '673ab0ee31378410f9c83bb5fd37b27d00a7b018', class: "relative" }, hAsync("slot", { key: '0c0138dfdf9aafecc1e0e925c84d4b0ca957f82d' }), this.isVisible && this.isPositioned && this.content && (hAsync("div", { key: '798d01cf631f2e5b3af9d9bb11a847041a6ee2ba', class: "rounded-xs bg-strongest text-inverse f-ui-03-light pointer-events-none absolute z-10 whitespace-nowrap p-6", role: "tooltip", style: {
|
|
14637
14980
|
top: this.tooltipStyle.top,
|
|
14638
14981
|
left: this.tooltipStyle.left,
|
|
14639
14982
|
transform: this.tooltipStyle.transform
|
|
@@ -14657,9 +15000,6 @@ class EdsTooltip {
|
|
|
14657
15000
|
}; }
|
|
14658
15001
|
}
|
|
14659
15002
|
|
|
14660
|
-
const edsTrlCss = "";
|
|
14661
|
-
var EdsTrlStyle0 = edsTrlCss;
|
|
14662
|
-
|
|
14663
15003
|
/**
|
|
14664
15004
|
* @internal
|
|
14665
15005
|
*/
|
|
@@ -14669,13 +15009,23 @@ class EdsTrl {
|
|
|
14669
15009
|
this.applications = undefined;
|
|
14670
15010
|
}
|
|
14671
15011
|
getParsedApplications() {
|
|
14672
|
-
|
|
14673
|
-
|
|
15012
|
+
let apps = [];
|
|
15013
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
15014
|
+
if (typeof this.applications === 'string') {
|
|
15015
|
+
try {
|
|
15016
|
+
apps = JSON.parse(this.applications || '[]');
|
|
15017
|
+
}
|
|
15018
|
+
catch (error) {
|
|
15019
|
+
// eslint-disable-next-line
|
|
15020
|
+
console.error('Invalid applications trl JSON', error);
|
|
15021
|
+
apps = [];
|
|
15022
|
+
}
|
|
14674
15023
|
}
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
15024
|
+
// If applications is already an array, use it directly.
|
|
15025
|
+
else if (Array.isArray(this.applications)) {
|
|
15026
|
+
apps = this.applications;
|
|
14678
15027
|
}
|
|
15028
|
+
return apps;
|
|
14679
15029
|
}
|
|
14680
15030
|
calculateProgress(currentTrl) {
|
|
14681
15031
|
const maxTrl = 9;
|
|
@@ -14683,12 +15033,18 @@ class EdsTrl {
|
|
|
14683
15033
|
}
|
|
14684
15034
|
render() {
|
|
14685
15035
|
const apps = this.getParsedApplications();
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14689
|
-
|
|
15036
|
+
// Map applications into table-friendly data.
|
|
15037
|
+
const tableData = apps.map((app) => ({
|
|
15038
|
+
Application: app.name,
|
|
15039
|
+
'Current TRL Stage': `TRL ${app.currentTrl}`,
|
|
15040
|
+
Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
15041
|
+
}));
|
|
15042
|
+
const tableConfig = {
|
|
15043
|
+
Application: { format: 'code' },
|
|
15044
|
+
'Current TRL Stage': { format: 'text' }
|
|
15045
|
+
};
|
|
15046
|
+
return (hAsync("div", { key: '868a7c45e6495d7a2ed8a4ad2974ac31f74535a6', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: 'ed3e2a949d0e1d66a5e80018fa5fcac9bbe64620', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
14690
15047
|
}
|
|
14691
|
-
static get style() { return EdsTrlStyle0; }
|
|
14692
15048
|
static get cmpMeta() { return {
|
|
14693
15049
|
"$flags$": 0,
|
|
14694
15050
|
"$tagName$": "eds-trl",
|
|
@@ -14729,6 +15085,7 @@ class EdsUser {
|
|
|
14729
15085
|
this.handleLogout = () => {
|
|
14730
15086
|
logout();
|
|
14731
15087
|
this.authenticated = false;
|
|
15088
|
+
this.user = null;
|
|
14732
15089
|
};
|
|
14733
15090
|
this.keycloakUrl = undefined;
|
|
14734
15091
|
this.keycloakRealm = undefined;
|
|
@@ -14743,9 +15100,15 @@ class EdsUser {
|
|
|
14743
15100
|
* It initializes authentication by calling the `initAuth` method.
|
|
14744
15101
|
*/
|
|
14745
15102
|
async componentWillLoad() {
|
|
15103
|
+
// Check if required props are provided (optional check)
|
|
15104
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
15105
|
+
// eslint-disable-next-line
|
|
15106
|
+
console.error('Keycloak configuration props are missing.');
|
|
15107
|
+
return;
|
|
15108
|
+
}
|
|
14746
15109
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
14747
15110
|
if (!this.serverAvailable) {
|
|
14748
|
-
toast.show('Keycloak server is unavailable.', 'error');
|
|
15111
|
+
//toast.show('Keycloak server is unavailable.', 'error');
|
|
14749
15112
|
return; // Do not proceed further
|
|
14750
15113
|
}
|
|
14751
15114
|
await this.initAuth();
|
|
@@ -14764,15 +15127,15 @@ class EdsUser {
|
|
|
14764
15127
|
};
|
|
14765
15128
|
await initKeycloak(keycloakConfig, true);
|
|
14766
15129
|
// Set authentication state and fetch user data if authenticated
|
|
14767
|
-
this.authenticated = isAuthenticated();
|
|
14768
|
-
if (
|
|
15130
|
+
//this.authenticated = isAuthenticated();
|
|
15131
|
+
if (isAuthenticated()) {
|
|
14769
15132
|
this.user = getUser();
|
|
15133
|
+
this.authenticated = true;
|
|
14770
15134
|
}
|
|
14771
15135
|
this.authStatusChanged.emit({
|
|
14772
15136
|
authenticated: this.authenticated,
|
|
14773
15137
|
user: this.user
|
|
14774
15138
|
}); // Emit auth status change
|
|
14775
|
-
toast.show(`Welcome back, ${this.user.username}`, 'success');
|
|
14776
15139
|
}
|
|
14777
15140
|
catch (error) {
|
|
14778
15141
|
// eslint-disable-next-line
|
|
@@ -14785,7 +15148,7 @@ class EdsUser {
|
|
|
14785
15148
|
if (!this.serverAvailable) {
|
|
14786
15149
|
return null;
|
|
14787
15150
|
}
|
|
14788
|
-
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin
|
|
15151
|
+
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
14789
15152
|
}
|
|
14790
15153
|
get hostEl() { return getElement(this); }
|
|
14791
15154
|
static get cmpMeta() { return {
|
|
@@ -14806,9 +15169,6 @@ class EdsUser {
|
|
|
14806
15169
|
}; }
|
|
14807
15170
|
}
|
|
14808
15171
|
|
|
14809
|
-
const edsUserModalCss = "";
|
|
14810
|
-
var EdsUserModalStyle0 = edsUserModalCss;
|
|
14811
|
-
|
|
14812
15172
|
/**
|
|
14813
15173
|
* @internal
|
|
14814
15174
|
*/
|
|
@@ -14841,13 +15201,12 @@ class EdsUserModal {
|
|
|
14841
15201
|
}
|
|
14842
15202
|
render() {
|
|
14843
15203
|
var _a, _b, _c, _d, _e;
|
|
14844
|
-
return (hAsync("div", { key: '
|
|
15204
|
+
return (hAsync("div", { key: 'ad99ddd7c2710ef90840a5571ab6a161178cacc0', class: "min-w-[280px] p-8" }, hAsync("div", { key: 'd1da12f3a965fa7503fb3e00566db0796b803352', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, hAsync("eds-avatar", { key: 'c3d3ca80a9d23cc88f8ee6801b29995138c9b7c6', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), hAsync("div", { key: '4efe378b3a9ce76d35e642db150be13d0434db72', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (hAsync("p", { key: '1068082a2894e3c3e3f77d1eea923f9c39d8766c', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && hAsync("p", { key: 'b86e08b806a37c9957bca7f9ee268303e7ace134', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && hAsync("p", { key: 'b3514920e1eb4906cb7f7705bfbc986166e84946', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), hAsync("div", { key: '61941fa0a19a19087da886a73d85d7e438d2c0b0', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, hAsync("div", { key: '5ad2be1763726c9d794b78a2593106fd8ba1dc7b', class: "border-softer mb-10 border-b-2 pb-16" }, hAsync("eds-link", { key: 'dbe3a9de56bf5ccc26426ddb831f2d1a27a0e6ff', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), hAsync("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (hAsync("eds-link", { key: '642890827e2fa6735bc616e680dbda481c2c0053', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
|
|
14845
15205
|
}
|
|
14846
15206
|
static get watchers() { return {
|
|
14847
15207
|
"user": ["parseUserProp"],
|
|
14848
15208
|
"links": ["parseLinksProp"]
|
|
14849
15209
|
}; }
|
|
14850
|
-
static get style() { return EdsUserModalStyle0; }
|
|
14851
15210
|
static get cmpMeta() { return {
|
|
14852
15211
|
"$flags$": 0,
|
|
14853
15212
|
"$tagName$": "eds-user-modal",
|
|
@@ -14899,7 +15258,7 @@ class GradientPrimaryPalette {
|
|
|
14899
15258
|
];
|
|
14900
15259
|
}
|
|
14901
15260
|
render() {
|
|
14902
|
-
return (hAsync("ul", { key: '
|
|
15261
|
+
return (hAsync("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14903
15262
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14904
15263
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
14905
15264
|
}
|
|
@@ -14972,19 +15331,19 @@ class GradientSecondaryPalette {
|
|
|
14972
15331
|
];
|
|
14973
15332
|
}
|
|
14974
15333
|
render() {
|
|
14975
|
-
return (hAsync("div", { key: '
|
|
15334
|
+
return (hAsync("div", { key: '29353679b15fce11ec2e357704cffd6a2d1389d4' }, hAsync("ul", { key: '7a262e1c8f17226c6639a00e1829d4f0927f988d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'f3dfcbe6da3ee882ae9100f95fe68788cd82195f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '83e3ac5d6f64e18e38e179251d58ff3ed23019a3', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14976
15335
|
background: this.colors[0].background
|
|
14977
|
-
} }, hAsync("div", { key: '
|
|
15336
|
+
} }, hAsync("div", { key: 'ebc2424dd2950cc2704351456d4d974051e0dd93', class: "grid" }, hAsync("span", { key: '3fdfb110070a8795a1bb1aea12447bc2556937cc', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '0b929d1ddd40e67bc8cd0248fc7bf0c0f8a11cb7', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '3f4ab8d6b91afeaba20c273b8ede74593d452bf0', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '80b6a23a151e6b71630071f2d51c03e6b8c957ff', class: "grid" }, hAsync("span", { key: 'c86531490e51f5559d4293bc75bb2477d23d1593', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: '5bbc4e02eb2845508c6de7715f5fe202a36249a5', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: '050d2770d4c2e6395dc5350c9f29860ecf3d7e46', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14978
15337
|
background: this.colors[1].background
|
|
14979
|
-
} }, hAsync("div", { key: '
|
|
15338
|
+
} }, hAsync("div", { key: '20a5a6748573d6e059ec81d00a737355cfd7f934', class: "grid" }, hAsync("span", { key: 'a63a0ea4301f11e4984f3749c087041acedb94b4', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'd986ecee52e15de1bbd58c48109f8c89d0cf19a2', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'd35bb3c1cb26aa9a3828cecfde1b32f428e8b1af', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8a616b789a99d3721ccc1f102131c2aba1951106', class: "grid" }, hAsync("span", { key: '03d172bbc56a4535d20051bb2ab1bfb4c0889586', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '66f1656d1d41f1616175285cf8f7e7089c9f2657', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '85a7244a69f0d3af26ea5f148917183e2431140e' }), hAsync("ul", { key: 'eb44b6b21fc75b1fd22e1aee42fac1aa99155b0d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'ecb50392387996034d1f4211d5336d2071927844', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'f45bf292bf11cb440731ff7bc67e5b364cb7b6c1', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14980
15339
|
background: this.colors[2].background
|
|
14981
|
-
} }, hAsync("div", { key: '
|
|
15340
|
+
} }, hAsync("div", { key: '981db4da9bdbc0f60ba6e8fd83840101a815550f', class: "grid" }, hAsync("span", { key: 'd6aaf058991f0d7e1c4d5d7bfa17b0342880cb9c', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'cd63d8d64b9fa30f7a568125f61d3735c3596f0b', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'aca8d6c9668168c6d4b71cb5039e0af4cd419e30', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'ed16477727fe22372cbcd730c4e9cc67f5b35ed8', class: "grid" }, hAsync("span", { key: '4b6989756eb826d93b5b7d71e874f62914d221df', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'a4e3d7e9f3582a0fc5dfabbfc9feb5bb969c2933', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: 'd23b28073abf3c16b3f8d58744fb5f66877cdd94', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14982
15341
|
background: this.colors[3].background
|
|
14983
|
-
} }, hAsync("div", { key: '
|
|
15342
|
+
} }, hAsync("div", { key: '1c96adb58e67d7cada4b4ba382ca2fcd37f0dfd8', class: "grid" }, hAsync("span", { key: 'beaab441ab5852d1141b509a161123ab0f743e7c', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: 'd2e57f4fd72ff1ef9c84f27e81c8c6b03ec50f66', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '48772cedf0b4ad119e14696e58203efce7bb3559', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '0e233bc33432cdd2149ab20b64464d03de22bcef', class: "grid" }, hAsync("span", { key: 'b0f41ae03bfd3bedf2ebd60b6a4b30c677395da0', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '433f30e367352cbd24668dac2ecf741b9f81febe', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: 'a862789d835c146d140b634782eefa7b48139597' }), hAsync("ul", { key: '9fe132435b11fa93057df3d747dfe36f04bfd997', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'e8438aedc62f4d0195a3c4c1c714ba99c6f7b67f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '9928ba20be7b9100e437345a4c5b03bf6d495707', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14984
15343
|
background: this.colors[4].background
|
|
14985
|
-
} }, hAsync("div", { key: '
|
|
15344
|
+
} }, hAsync("div", { key: '1cd2d6a8ec580b4094335d3c56acfbb398a96c28', class: "grid" }, hAsync("span", { key: 'dbbd548a12bcc861526309132e685a97714de1d5', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '93d38512e45747e4277169ee3221c36f96862f29', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'b04c9679ea48bf89e70cc969ecd42984ce3c7286', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4a6130bdeb963c9674100528e2ef24a2245acbab', class: "grid" }, hAsync("span", { key: '7f49f52d514e36d7886a1aecb3c92c7148dcf595', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '0d9a53c5262183a24114f762175f1d9fe5299950', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: '26a6e6ca4a67e5ff01d4fcb75e40fdb1456ca62f', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14986
15345
|
background: this.colors[5].background
|
|
14987
|
-
} }, hAsync("div", { key: '
|
|
15346
|
+
} }, hAsync("div", { key: 'ff5052b9aa74a3edb7d3ba6d1c75b9073b969b31', class: "grid" }, hAsync("span", { key: 'b69e9f4646835b689fd46c6f84b8b35dba1500a1', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: 'a459cc1600cb4072e6d1cfbcae75d17cf14fbbfe', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '55f9185213f01a7891a4e8ff54f4f26759370ef8', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '2f3bbbcdf402f0da4bade772b3cadb1b8cb3370c', class: "grid" }, hAsync("span", { key: '818372e4673ef5c8e35085702a559b744a5cbe8c', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: '2bc994826618735b82fd93fe039328a2ff4f6f95', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
14988
15347
|
}
|
|
14989
15348
|
static get cmpMeta() { return {
|
|
14990
15349
|
"$flags$": 0,
|
|
@@ -15047,11 +15406,11 @@ class GradientSupportPalette {
|
|
|
15047
15406
|
];
|
|
15048
15407
|
}
|
|
15049
15408
|
render() {
|
|
15050
|
-
return (hAsync("ul", { key: '
|
|
15409
|
+
return (hAsync("ul", { key: 'e5444717497402cac34586943ffd10abd2e77148', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '84f6b65181b6f2237b7ef261445a2e58935975ab', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b9eb17a05b1a479e46adf3908ede6d2a74e47e91', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: '74cb2cf74997cf993557cbf06158578a45439965', class: "grid" }, hAsync("span", { key: '29c00a82880aff024927e29c95fde61016553d5d', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'db89f95d9c30eb90ba6d7f9cd12c793f8a500b00', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'd050e9d7910ed8ac88f4f791a2c8a1edaadcb0ac', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd2b688154a3d1f61df4dcc1f735eae9747011d01', class: "grid" }, hAsync("span", { key: '2a204759a52f881b2d6b0d40116bf00bbda3aed2', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: '9023f33ba5182558f12dfb119ed4338649638bd7', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: '55a4cf54a4dbc1b5c7f9962c571cbb971cba0d93', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b4190fda8834ddfe5e53e90d357cc1835e7d16ce', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: 'cf5415f31d46d7a966fa3da040aec720c0241673', class: "grid" }, hAsync("span", { key: '4fb475890391784e8be7c40d0c74c02a492739f7', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '02f5bd1fcb7be45141963bb1d723646195978d49', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '781791e59a86c8687d9afe6d729161acf05fc9dd', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'dd84d9b36892ff47481babfb2fbb8a9082f43219', class: "grid" }, hAsync("span", { key: 'df5ef60b6866f46bafcd93d8f82498090102a520', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: 'a8cf80fcb9f7fef12daf32055c61fdb33ee38d67', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: '2ed0376ad5484fadac08c530450e993fa6145328', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '30ba72591ea4537407b2220a85a961fce0fc54e5', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15051
15410
|
background: this.colors[2].background
|
|
15052
|
-
} }, hAsync("div", { key: '
|
|
15411
|
+
} }, hAsync("div", { key: '641ea920703268846558c852fe087fa9546e14b7', class: "grid" }, hAsync("span", { key: 'f672422e13deb40e9dfaddd6f9855b2de28eab5b', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '008794c76fb2713438c198c914e718efbbfc7b5e', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'ee1cfa3a78f670c74e00e96b6415f85715334526', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '295c044bb9cc9ed3a85bb488225db4401f0ea542', class: "grid" }, hAsync("span", { key: '9d7dbf15fd44ce3d3e45a39324ad3a60d7ae30f0', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'd639d12c3215caf3f4f1e8a4ae062b540b6af50d', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '04e95d8b1a6f7dcdbc465263382e36d05f79d602', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15053
15412
|
background: this.colors[3].background
|
|
15054
|
-
} }, hAsync("div", { key: '
|
|
15413
|
+
} }, hAsync("div", { key: 'e67079bbbdfa1853a2f069f08c52a8388cce688a', class: "grid" }, hAsync("span", { key: '43be6b7785066c0d51aa87e987fb672a758de8bb', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '791e968b11a9dafefac8fe0eda01b04ab4911802', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '5831fd1e75f8ed0d2edc29fbc439389275adf59e', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '09329acac8fbc33edada7a7c10c675631a240ea2', class: "grid" }, hAsync("span", { key: '42f70fa2578b40e189b95cd1d4c56ccd84cdce69', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '2b8dfefd1e2dff08aa17b234a04cff60e3eb9d7a', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: 'e3a39fb7ad23526623bfea88cdab8d320847365d', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'cfde16c94675c5c9b510e3752f875655c9d098e2', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: '1f8a8bd2e746c187323841ced84eec52d2c2f2f1', class: "grid" }, hAsync("span", { key: '920fc68ae73790a37c927dabf687ccaf5e248841', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '40205cf5666e6ba44ca07a09dc08e54f2f9cad56', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '8a855110b362569cc9926a09772d12f133aa20b6', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a69c90cfac79b0a7ba5fbd921117a12ce997c228', class: "grid" }, hAsync("span", { key: 'bc06aaaaececad3b81e4884380e17fe773f97570', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: '15baae3dafc6b53322e1a67956af1f533ea402f7', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
15055
15414
|
}
|
|
15056
15415
|
static get cmpMeta() { return {
|
|
15057
15416
|
"$flags$": 0,
|
|
@@ -15097,10 +15456,6 @@ const incorrect = [
|
|
|
15097
15456
|
...purple,
|
|
15098
15457
|
...red
|
|
15099
15458
|
];
|
|
15100
|
-
/**
|
|
15101
|
-
* `CorrectUseOfColors` is a component that combines the primary palette and support palette
|
|
15102
|
-
* to display the correct use of colors.
|
|
15103
|
-
*/
|
|
15104
15459
|
/**
|
|
15105
15460
|
* @internal
|
|
15106
15461
|
*/
|
|
@@ -15109,7 +15464,7 @@ class IncorrectUseOfColors {
|
|
|
15109
15464
|
registerInstance(this, hostRef);
|
|
15110
15465
|
}
|
|
15111
15466
|
render() {
|
|
15112
|
-
return (hAsync("div", { key: '
|
|
15467
|
+
return (hAsync("div", { key: '2e660e9a788e46e68d6695ae8aa475bbb1ca395e', class: "container" }, hAsync("eds-alert", { key: '1dc4552a33d88055a3a0c33eeb18c53a8379039a', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), hAsync("div", { key: 'fd6bf7f0205422b1bd3ceb3f8374d5a9a73aaca0', class: "flex" }, hAsync("div", { key: 'dae745447f5e9792136f059b1dcfc868e473dfd5', class: "w-full" }, hAsync("ul", { key: 'daeec7514f4027ec3f688f05fb4f1e027b846a81', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '1ca202afa9384e78e3ed9c0674e06c51184d3a5a', class: "w-full" }, hAsync("ul", { key: '7bdef2e7d64f3c5553193d127bac69ee89a93686', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
15113
15468
|
}
|
|
15114
15469
|
static get cmpMeta() { return {
|
|
15115
15470
|
"$flags$": 0,
|
|
@@ -15132,7 +15487,7 @@ class LogoSpace {
|
|
|
15132
15487
|
registerInstance(this, hostRef);
|
|
15133
15488
|
}
|
|
15134
15489
|
render() {
|
|
15135
|
-
return (hAsync("div", { key: '
|
|
15490
|
+
return (hAsync("div", { key: '004134f2770f755a3ae0d158b9ec6987a64dcc8b', class: "container my-20" }, hAsync("div", { key: '49b57e44a4a68b5d6393ee3284af58d56aa5c014', class: "w-[300px]" }, hAsync("div", { key: '4812ffe1b1df94ece0e2d391648aea812c7c9028', class: "bg-dark" }, hAsync("div", { key: 'ce3bbecdba5bbabb14d1b0e197318cf4180f8699', class: "logo-container", innerHTML: vLogoMargins })))));
|
|
15136
15491
|
}
|
|
15137
15492
|
static get style() { return LogoSpaceStyle0; }
|
|
15138
15493
|
static get cmpMeta() { return {
|
|
@@ -15145,38 +15500,24 @@ class LogoSpace {
|
|
|
15145
15500
|
}; }
|
|
15146
15501
|
}
|
|
15147
15502
|
|
|
15148
|
-
const logoVariationsHorizontalCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.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)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
|
|
15503
|
+
const logoVariationsHorizontalCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.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)}.w-\\[150px\\]{width:150px}.w-\\[500px\\]{width:500px}@media (min-width: 750px){.md\\:w-\\[300px\\]{width:300px}.md\\:w-\\[500px\\]{width:500px}}@media (min-width: 900px){.lg\\:w-\\[300px\\]{width:300px}.lg\\:w-\\[500px\\]{width:500px}}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
|
|
15149
15504
|
var LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
|
|
15150
15505
|
|
|
15151
15506
|
/**
|
|
15152
15507
|
* @internal
|
|
15153
15508
|
*/
|
|
15154
|
-
class
|
|
15509
|
+
class LogoVariationsHorizontal {
|
|
15155
15510
|
constructor(hostRef) {
|
|
15156
15511
|
registerInstance(this, hostRef);
|
|
15157
|
-
this.orientation = 'horizontal';
|
|
15158
|
-
this.type = undefined;
|
|
15159
15512
|
}
|
|
15160
15513
|
render() {
|
|
15161
|
-
|
|
15162
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[300px]" }, hAsync("eds-logo", { type: "no-bg", href: "#" }))));
|
|
15163
|
-
}
|
|
15164
|
-
if (this.type === 'black') {
|
|
15165
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[300px]" }, hAsync("eds-logo", { type: "black", href: "#" }))));
|
|
15166
|
-
}
|
|
15167
|
-
if (this.type === 'color-white') {
|
|
15168
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[300px]" }, hAsync("eds-logo", { type: "color-white", href: "#" }))));
|
|
15169
|
-
}
|
|
15170
|
-
return null;
|
|
15514
|
+
return (hAsync("div", { key: '577cade970766dbbbd654258efe78920d8c0dbaf' }, hAsync("div", { key: '1c577dafe342384bffce716b4bcb9494685f2283', class: "container my-16" }, hAsync("h3", { key: 'b9f78264dbbe144cc9c7823c48874b3618af3919', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'c07b24eb1a3338d33a3b95c0228a1a7f297a0976', class: "coloured lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'ed173d7c59ae22ad55814cf64222a5ce52d108d4', type: "no-bg", href: "#" }))), hAsync("div", { key: '7d939b469a8ce14f609e529121a830d9a47af857', class: "container my-16" }, hAsync("h3", { key: 'f110490f66e3d27f204e289a5eb85461c13594fa', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'd05bd8166d2a60aac723436b96e2451ae4459c04', class: "bg-default lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'ce24bb6db3038d781a4d1917012c0d4ed7f23b1a', type: "black", href: "#" }))), hAsync("div", { key: '32fbbb1568604bdfd04c6ca6c14a558a3c490ed8', class: "container my-16" }, hAsync("h3", { key: 'ef03e68319669f548c7826d6387072af8d3f5a66', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: 'a6b082f14400be771f43074c1f7f0bc348e77673', class: "lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '569f77f1b43b4a65a39720017b34273d6f3d7baa', type: "color-white", href: "#" })))));
|
|
15171
15515
|
}
|
|
15172
15516
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15173
15517
|
static get cmpMeta() { return {
|
|
15174
15518
|
"$flags$": 9,
|
|
15175
15519
|
"$tagName$": "logo-variations-horizontal",
|
|
15176
|
-
"$members$":
|
|
15177
|
-
"orientation": [1],
|
|
15178
|
-
"type": [1]
|
|
15179
|
-
},
|
|
15520
|
+
"$members$": undefined,
|
|
15180
15521
|
"$listeners$": undefined,
|
|
15181
15522
|
"$lazyBundleId$": "-",
|
|
15182
15523
|
"$attrsToReflect$": []
|
|
@@ -15189,23 +15530,14 @@ var LogoVariationsVerticalStyle0 = logoVariationsVerticalCss;
|
|
|
15189
15530
|
/**
|
|
15190
15531
|
* @internal
|
|
15191
15532
|
*/
|
|
15192
|
-
class
|
|
15533
|
+
class LogoVariationsVertical {
|
|
15193
15534
|
constructor(hostRef) {
|
|
15194
15535
|
registerInstance(this, hostRef);
|
|
15195
|
-
this.orientation = '
|
|
15536
|
+
this.orientation = 'vertical';
|
|
15196
15537
|
this.type = undefined;
|
|
15197
15538
|
}
|
|
15198
15539
|
render() {
|
|
15199
|
-
|
|
15200
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
|
|
15201
|
-
}
|
|
15202
|
-
if (this.type === 'black') {
|
|
15203
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
|
|
15204
|
-
}
|
|
15205
|
-
if (this.type === 'color-white') {
|
|
15206
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
|
|
15207
|
-
}
|
|
15208
|
-
return null;
|
|
15540
|
+
return (hAsync("div", { key: '70bc4a46031bb4456ba28bef27efbbfe5e7cf6f2' }, hAsync("div", { key: '84ab774067350c75982d41b6d97500e19d3fe5e5', class: "container my-16" }, hAsync("h3", { key: 'c080f9b4cfa18a3a48fb703f749c62531a322267', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'a9a871769d76e97c879f49437187ca553a633dd2', class: "coloured w-[200px]" }, hAsync("eds-logo", { key: '668f2607e0394ab1b25ddfbef4cd3e3880e1b4f9', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("div", { key: 'd1674061f47b242930599337d605b51831214d7a', class: "container my-16" }, hAsync("h3", { key: '8b1470587ad99fdf379c0c4b4646098d14f087e8', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'bbb9997369a93ce84450a7d289948049fcfa5bf6', class: "bg-default w-[200px]" }, hAsync("eds-logo", { key: '4f3dc6ad9f9db6f605d54df3c8adecea051cf34e', orientation: "vertical", type: "black", href: "#" }))), hAsync("div", { key: '0f54fde04fbef65477809b45371ac15914b1433b', class: "container my-16" }, hAsync("h3", { key: '5c46f1d7b09bf3e113e2733531611943ad21be4e', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '88609875109aae85cb5333426a3bc270314d9fb5', class: "w-[200px]" }, hAsync("eds-logo", { key: '0eeeba0006e25a8a4f0c4fb5c0d38b089e0a22f4', orientation: "vertical", type: "color-white", href: "#" })))));
|
|
15209
15541
|
}
|
|
15210
15542
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15211
15543
|
static get cmpMeta() { return {
|
|
@@ -15221,7 +15553,7 @@ class LogoVariations {
|
|
|
15221
15553
|
}; }
|
|
15222
15554
|
}
|
|
15223
15555
|
|
|
15224
|
-
const logoWrongUsageCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-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)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";
|
|
15556
|
+
const logoWrongUsageCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-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)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";
|
|
15225
15557
|
var LogoWrongUsageStyle0 = logoWrongUsageCss;
|
|
15226
15558
|
|
|
15227
15559
|
/**
|
|
@@ -15232,7 +15564,7 @@ class LogoWrongUsage {
|
|
|
15232
15564
|
registerInstance(this, hostRef);
|
|
15233
15565
|
}
|
|
15234
15566
|
render() {
|
|
15235
|
-
return (hAsync("ul", { key: '
|
|
15567
|
+
return (hAsync("ul", { key: 'e2fbd7802c153f970a457011a5dcaf3163d6290f', class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("span", { key: '07d6a5b930dd8ae652e63310c4232e8c3e6858b2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '5d3dd01a67f41f839e79aa3d449ba319dcc0209c', class: "example" }, hAsync("div", { key: '6b51ea71b6b4072ec6c66223a4f92c1232e8691a', class: "bg-dark " }, hAsync("div", { key: '03a476635bc1112f1ea2d4ed10df0415ead7f0f8', class: "no-other-bg-color logo", innerHTML: hLogoColor })), hAsync("p", { key: '084116335e9f8ed4c9d2a04a9551097dc2a53c4a', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), hAsync("span", { key: 'e67f1bdeee28928f4f6f8fb5d1e0b59160edd949', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'b0e909eb57a6771b32a93dd0932ef5b848a19ff2', class: "example" }, hAsync("div", { key: '19bc9f29ddbffd1c308cb429100f0af3d58237a1', class: "no-other-color p-16" }, hAsync("div", { key: '301c5cb926b9ad167f1ba096f99a874577617fb1', class: "logo non-brand-color", innerHTML: hLogoColor })), hAsync("p", { key: 'b41ab53c2af9efeafb46d41a515eba2f801d49e4', class: "f-ui-02" }, "Do not apply other colors"))), hAsync("span", { key: '826ae54f62c5a3880adf1833dbc19bbb9e1ec6f2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '092d5fc3176845532ecf577c66d6e3a349ebfe45', class: "example" }, hAsync("div", { key: '1d1d3cc86e728fc21f898c59ff1511c5fa728f9f', class: "bg-light p-16" }, hAsync("div", { key: 'df05102398d3de9916a23d0998529d8ca8a66257', class: "logo distorted", innerHTML: hLogoColor })), hAsync("p", { key: '377e38a762855d563d087eb275481de6a17ddbbb', class: "f-ui-02" }, "Do not deform the logo"))), hAsync("span", { key: '766c4ea568c8bf2fa1efa207ff5f602e5128aef3', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'cf4e883370c0ee284167bea7f2c0c603932d1682', class: "example" }, hAsync("div", { key: 'de160646456f91316bf966db6568c20ff382dd3b', class: "bg-white p-16" }, hAsync("div", { key: '5aa03093e5e483547919eaeca58643e54a286405', class: "logo effects", innerHTML: hLogoColor })), hAsync("p", { key: 'aa65e295008001d6fe2b2168d8f7f43a770ec8e3', class: "f-ui-02" }, "Do not apply effects"))), hAsync("span", { key: 'd0eb2536e430b6e9fdb9a37d638d5c31ee81e205', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '43ec87b4632c2709404aff9d3e7bbcb2910426ca', class: "example" }, hAsync("div", { key: '36cd6dc2b23070e5c7fdfc09444d3ccbb8681216', class: "bg-white p-16" }, hAsync("div", { key: 'a1077b322d113220e05ee3edce627c60547cb49a', class: "logo rotated", innerHTML: hLogoColor })), hAsync("p", { key: '86c384f5cf362d16bd6ac5ac8448e3e0d591fa18', class: "f-ui-02" }, "Do not rotate the logo"))), hAsync("span", { key: 'b267f6024a4e7bad6348d323606922888db5264b', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '0bd0c5d62e454ce133a187e7d3917afc0c26c551', class: "example" }, hAsync("div", { key: '71e4c1681cfbb64970237b410e0925a0f22e1141', class: "bg-light p-16" }, hAsync("div", { key: '01ab5d75102b9f476fecebcc31c975f6d4720c12', class: "logo outlined", innerHTML: hLogoColor })), hAsync("p", { key: '0734a049d710d1f6406989668f60da1249e29c7b', class: "f-ui-02" }, "Do not apply outlines"))), hAsync("span", { key: '830b7b2a8cdf6dfc7f395dc92db42fbe626a7ae4', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), hAsync("span", { key: 'ca40bb4ea839eacf62e93f7fbec41f076f7b12a6', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '641a963ba81294eefe8fc00dd0a3bdca91af94a2', class: "example" }, hAsync("div", { key: '70691be08e9081899fb2928d5d287aaebef3b399', class: "bg-accent p-16" }, hAsync("div", { key: '556135fd6596b530bf959bb9984641f185cd9f96', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: '7eaded302e41fc1d04f2033add829dfaba6e8012', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
|
|
15236
15568
|
}
|
|
15237
15569
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15238
15570
|
static get cmpMeta() { return {
|
|
@@ -15488,7 +15820,7 @@ class TokenList {
|
|
|
15488
15820
|
render() {
|
|
15489
15821
|
// Check if `show` prop is provided; if not, display all sections
|
|
15490
15822
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15491
|
-
return (hAsync("section", { key: '
|
|
15823
|
+
return (hAsync("section", { key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15492
15824
|
// Only render sections that exist in `colors`
|
|
15493
15825
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15494
15826
|
}
|
|
@@ -15521,7 +15853,7 @@ class TokenRadii {
|
|
|
15521
15853
|
registerInstance(this, hostRef);
|
|
15522
15854
|
}
|
|
15523
15855
|
render() {
|
|
15524
|
-
return (hAsync("section", { key: '
|
|
15856
|
+
return (hAsync("section", { key: '84dabcd5a39d49e116f8fc9e9b26e00455c7fbb3', class: "w-full mt-28" }, hAsync("ul", { key: 'a821c747c45b8898ab2e7626d2ead91814549335', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
15525
15857
|
}
|
|
15526
15858
|
static get cmpMeta() { return {
|
|
15527
15859
|
"$flags$": 0,
|
|
@@ -15550,7 +15882,7 @@ class TokenRatios {
|
|
|
15550
15882
|
registerInstance(this, hostRef);
|
|
15551
15883
|
}
|
|
15552
15884
|
render() {
|
|
15553
|
-
return (hAsync("section", { key: '
|
|
15885
|
+
return (hAsync("section", { key: '9c4dc70bd40a40fbeedc88280ea3fdd4b2597e40', class: "w-full" }, hAsync("eds-section-core", { key: '039b72b762e48f62a4fa58d5af7803d0ed73bf6a', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'be3e37d842a24536488b7bc03f24399faa1304ff', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
15554
15886
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15555
15887
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15556
15888
|
maxWidth: '300px'
|
|
@@ -15592,7 +15924,7 @@ class TokenShadows {
|
|
|
15592
15924
|
registerInstance(this, hostRef);
|
|
15593
15925
|
}
|
|
15594
15926
|
render() {
|
|
15595
|
-
return (hAsync("section", { key: '
|
|
15927
|
+
return (hAsync("section", { key: '4575feac8b5bff23aed39733e638fbb62916988f', class: "w-full mt-28" }, hAsync("ul", { key: 'c9833aa0d698a7ec33911011ccb9227d43c8261a', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
15596
15928
|
}
|
|
15597
15929
|
static get cmpMeta() { return {
|
|
15598
15930
|
"$flags$": 0,
|
|
@@ -15612,7 +15944,7 @@ class TokenSpacing {
|
|
|
15612
15944
|
registerInstance(this, hostRef);
|
|
15613
15945
|
}
|
|
15614
15946
|
render() {
|
|
15615
|
-
return (hAsync("div", { key: '
|
|
15947
|
+
return (hAsync("div", { key: '5f72b8386e92973faca8b22ebadcffa5b8ca8744', class: "w-full" }, hAsync("ul", { key: '619cc2546059aaac566dc89f56b098f72f7c2bde', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'b90587543210e02a577854ce061472ef8f3bdc7a', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'd98ea95c641209ba592aae8c695e278549840420', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '6dd84540a213d98fa09480eac823fe030dfb2404', class: "spacing-sample m-32 bg-darker" }, hAsync("span", { key: 'ad0493ba8d97cdcc15535505db4d726d6f69bd38', class: "text-white" }, "Margin: 2rem / m-32")))), hAsync("li", { key: 'a0914d288cdb4b9caef6956af0069cd0937ee019', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '95adc2b10d3962378de300e00b749b691fda88af', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '8bad94397c9fe8112b49933a508958000f9cd99d', class: "spacing-sample ml-64 bg-darker" }, hAsync("span", { key: '04229385104243a5ce9a194c4f8056f7341a6736', class: "text-white" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: 'f34e1fd5ccafc528ed9359766deaa5c615a2e14b', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '38e12800b2c8502ea2f9e912af929f71d3ec9699', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'f4e93d89576ab3de7f44ce3a85d9838f21bfa7f6', class: "spacing-sample mt-32 bg-darker" }, hAsync("span", { key: 'e85e2e1c7c4c7e765dfafd25dc9f2c33b6bd5069', class: "text-white" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'b42299c17c024a5906bd09c80a2f309b461b6fde', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'f54a9e32893ac6f1b0384e79e2959d1e65a251e2', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '4209fa0c979a1d55d42d7b892bc94cc0f3788e88', class: "spacing-sample p-32 bg-darker" }, hAsync("span", { key: '1d9249c56d3a42500dfb8cc1d3eae1f89e79cdcd', class: "text-white" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'ad6f2e33e15c4c21bdfed8478b3d2faa905490fa', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '9950970e66b8a382e7b0158b54e980a5e5f45774', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '40e96cd046eaddf3a23387995affbfc399d171ae', class: "spacing-sample pt-32 bg-darker" }, hAsync("span", { key: '2d120273f7a6d4429061d0ade2164ada9a14b506', class: "text-white" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '8c3327edc63f8959c0cb01cce0a8407bf3a605af', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'c0be38039770c54577f073e1a707110cd0807ab5', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'd8085da375e734ed11fe580f1a9004f6fddef679', class: "spacing-sample pl-32 bg-darker" }, hAsync("span", { key: '029857c00659221390438d8477734d0f130d1b97', class: "text-white" }, "Padding Left: 2rem / pl-32")))))));
|
|
15616
15948
|
}
|
|
15617
15949
|
static get cmpMeta() { return {
|
|
15618
15950
|
"$flags$": 0,
|
|
@@ -15830,7 +16162,7 @@ class TokenTypography {
|
|
|
15830
16162
|
registerInstance(this, hostRef);
|
|
15831
16163
|
}
|
|
15832
16164
|
render() {
|
|
15833
|
-
return (hAsync("section", { key: '
|
|
16165
|
+
return (hAsync("section", { key: '23815518d694435812ed3d7b9aab850043941b96', class: "w-full" }, hAsync("ul", { key: '366ed5bc5933c5b8a563d33b70471f507a21386c', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
15834
16166
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15835
16167
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
15836
16168
|
fontFamily: typography.families.sans,
|
|
@@ -15921,6 +16253,7 @@ registerComponents([
|
|
|
15921
16253
|
EdsLink,
|
|
15922
16254
|
EdsLogin,
|
|
15923
16255
|
EdsLogo,
|
|
16256
|
+
EdsLogoVariations,
|
|
15924
16257
|
EdsMatomoNotice,
|
|
15925
16258
|
EdsModal,
|
|
15926
16259
|
EdsNavigator,
|
|
@@ -15929,7 +16262,7 @@ registerComponents([
|
|
|
15929
16262
|
EdsRating,
|
|
15930
16263
|
EdsSectionCore,
|
|
15931
16264
|
EdsSectionHeading,
|
|
15932
|
-
|
|
16265
|
+
EdsSocialNetworks,
|
|
15933
16266
|
EdsSvgRepository,
|
|
15934
16267
|
EdsTab,
|
|
15935
16268
|
EdsTable,
|
|
@@ -15948,8 +16281,8 @@ registerComponents([
|
|
|
15948
16281
|
GradientSupportPalette,
|
|
15949
16282
|
IncorrectUseOfColors,
|
|
15950
16283
|
LogoSpace,
|
|
15951
|
-
|
|
15952
|
-
|
|
16284
|
+
LogoVariationsHorizontal,
|
|
16285
|
+
LogoVariationsVertical,
|
|
15953
16286
|
LogoWrongUsage,
|
|
15954
16287
|
TokenList,
|
|
15955
16288
|
TokenRadii,
|