@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.js
CHANGED
|
@@ -2309,7 +2309,7 @@ class ColorPrimaryPalette {
|
|
|
2309
2309
|
];
|
|
2310
2310
|
}
|
|
2311
2311
|
render() {
|
|
2312
|
-
return (hAsync("ul", { key: '
|
|
2312
|
+
return (hAsync("ul", { key: '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))))))));
|
|
2313
2313
|
}
|
|
2314
2314
|
static get cmpMeta() { return {
|
|
2315
2315
|
"$flags$": 0,
|
|
@@ -2381,7 +2381,7 @@ class ColorSecondaryPalette {
|
|
|
2381
2381
|
this.show = undefined;
|
|
2382
2382
|
}
|
|
2383
2383
|
render() {
|
|
2384
|
-
return (hAsync("ul", { key: '
|
|
2384
|
+
return (hAsync("ul", { key: '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))))))));
|
|
2385
2385
|
}
|
|
2386
2386
|
static get cmpMeta() { return {
|
|
2387
2387
|
"$flags$": 0,
|
|
@@ -2446,7 +2446,7 @@ class ColorSupportPalette {
|
|
|
2446
2446
|
];
|
|
2447
2447
|
}
|
|
2448
2448
|
render() {
|
|
2449
|
-
return (hAsync("ul", { key: '
|
|
2449
|
+
return (hAsync("ul", { key: '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'))))))));
|
|
2450
2450
|
}
|
|
2451
2451
|
static get cmpMeta() { return {
|
|
2452
2452
|
"$flags$": 0,
|
|
@@ -2522,7 +2522,7 @@ class CorrectUseOfColors {
|
|
|
2522
2522
|
registerInstance(this, hostRef);
|
|
2523
2523
|
}
|
|
2524
2524
|
render() {
|
|
2525
|
-
return (hAsync("div", { key: '
|
|
2525
|
+
return (hAsync("div", { key: '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 } })))))))));
|
|
2526
2526
|
}
|
|
2527
2527
|
static get cmpMeta() { return {
|
|
2528
2528
|
"$flags$": 0,
|
|
@@ -2534,127 +2534,210 @@ class CorrectUseOfColors {
|
|
|
2534
2534
|
}; }
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
|
-
|
|
2538
|
-
|
|
2537
|
+
[
|
|
2538
|
+
['eds-header', {
|
|
2539
|
+
'home-url': '/',
|
|
2540
|
+
'user-feature': 'false',
|
|
2541
|
+
'keycloak-url': 'http://localhost:8080',
|
|
2542
|
+
'keycloak-realm': 'nigeor-realm',
|
|
2543
|
+
'keycloak-client-id': 'stencil-app',
|
|
2544
|
+
links: JSON.stringify([
|
|
2545
|
+
{ label: 'About', url: '/about' },
|
|
2546
|
+
{ label: 'Focus Areas', url: '/focus-areas' },
|
|
2547
|
+
{ label: 'News & Events', url: '/news-and-events' },
|
|
2548
|
+
{ label: 'Contact', url: '/contact' },
|
|
2549
|
+
]),
|
|
2550
|
+
}],
|
|
2551
|
+
['eds-block-break', {}],
|
|
2552
|
+
['eds-footer', {}],
|
|
2553
|
+
['eds-block-break', {}],
|
|
2554
|
+
['eds-tabs', {
|
|
2555
|
+
tabs: JSON.stringify([
|
|
2556
|
+
{ label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
|
|
2557
|
+
{ label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
|
|
2558
|
+
{ label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
|
|
2559
|
+
]),
|
|
2560
|
+
}],
|
|
2561
|
+
['eds-block-break', {}],
|
|
2562
|
+
['eds-card-section', {
|
|
2563
|
+
cards: JSON.stringify([
|
|
2564
|
+
{ title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
|
|
2565
|
+
{ title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
|
|
2566
|
+
]),
|
|
2567
|
+
cols: '4',
|
|
2568
|
+
}],
|
|
2569
|
+
['eds-block-break', {}],
|
|
2570
|
+
['eds-link', {
|
|
2571
|
+
label: 'Main Link Click Me',
|
|
2572
|
+
url: 'https://example.com',
|
|
2573
|
+
intent: 'primary'
|
|
2574
|
+
}],
|
|
2575
|
+
['eds-block-break', {}],
|
|
2576
|
+
['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
|
|
2577
|
+
['eds-block-break', {}],
|
|
2578
|
+
['eds-breadcrumb', {
|
|
2579
|
+
items: JSON.stringify([
|
|
2580
|
+
{ label: 'Home', url: '/' },
|
|
2581
|
+
{ label: 'Products', url: '/products' },
|
|
2582
|
+
{ label: 'Electronics', url: '/products/electronics' },
|
|
2583
|
+
{ label: 'Laptops', url: '/products/electronics/laptops' },
|
|
2584
|
+
]),
|
|
2585
|
+
intent: 'primary',
|
|
2586
|
+
}],
|
|
2587
|
+
['eds-block-break', {}],
|
|
2588
|
+
['eds-card-generic', {
|
|
2589
|
+
'card-title': 'The Future of AI in Healthcare',
|
|
2590
|
+
url: 'https://example.com/ai-healthcare',
|
|
2591
|
+
description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
|
|
2592
|
+
avatar: 'https://files.ebrains.eu/img/686e0edc-f3be-4d79-aa02-373c32c08d65/ebrains-logo-high-resolution.png?fit=max&q=80&fm=webp&crop=879%2C879%2C597%2C0&w=200',
|
|
2593
|
+
'short-abbreviation': 'AI',
|
|
2594
|
+
'heading-level': 'h2',
|
|
2595
|
+
tags: 'Technology,AI,Healthcare',
|
|
2596
|
+
tiny: 'false',
|
|
2597
|
+
bg: 'true',
|
|
2598
|
+
'with-hover': 'true',
|
|
2599
|
+
}],
|
|
2600
|
+
['eds-block-break', {}],
|
|
2601
|
+
['eds-code-block', {
|
|
2602
|
+
code: 'Hello',
|
|
2603
|
+
language: 'javascript',
|
|
2604
|
+
}],
|
|
2605
|
+
['eds-block-break', {}],
|
|
2606
|
+
['eds-dropdown', {
|
|
2607
|
+
'aria-label': 'More options',
|
|
2608
|
+
'rounded-btn': 'true',
|
|
2609
|
+
'dropdown-pos': 'right',
|
|
2610
|
+
'dropdown-offset': 'true',
|
|
2611
|
+
}],
|
|
2612
|
+
['eds-block-break', {}],
|
|
2613
|
+
['eds-form', {
|
|
2614
|
+
name: 'extended-form',
|
|
2615
|
+
endpoint: 'http://127.0.0.1:5000/api/data',
|
|
2616
|
+
fields: JSON.stringify([
|
|
2617
|
+
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
|
|
2618
|
+
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
2619
|
+
{ name: 'number', label: 'Number', type: 'number', required: true },
|
|
2620
|
+
{ name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
|
|
2621
|
+
{ name: 'date', label: 'Date', type: 'date', required: true },
|
|
2622
|
+
{ name: 'file', label: 'File', type: 'file', required: false },
|
|
2623
|
+
{ name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
|
|
2624
|
+
{ name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
|
|
2625
|
+
{ name: 'role', label: 'Role', type: 'select', required: true, options: [
|
|
2626
|
+
{ label: 'Admin', value: 'admin' },
|
|
2627
|
+
{ label: 'Editor', value: 'editor' },
|
|
2628
|
+
{ label: 'Viewer', value: 'viewer' },
|
|
2629
|
+
] },
|
|
2630
|
+
{ name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
|
|
2631
|
+
{ value: 'option1', label: 'Option 1' },
|
|
2632
|
+
{ value: 'option2', label: 'Option 2' },
|
|
2633
|
+
{ value: 'option3', label: 'Option 3' },
|
|
2634
|
+
], required: true },
|
|
2635
|
+
{ name: 'gender', type: 'radio', label: 'Select your gender', options: [
|
|
2636
|
+
{ value: 'female', label: 'Female' },
|
|
2637
|
+
{ value: 'male', label: 'Male' },
|
|
2638
|
+
], required: true },
|
|
2639
|
+
{ name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
|
|
2640
|
+
{ name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
|
|
2641
|
+
]),
|
|
2642
|
+
'success-message': 'Form submitted successfully!',
|
|
2643
|
+
'error-message': 'Please fix the errors in the form.',
|
|
2644
|
+
'submit-btn': 'true',
|
|
2645
|
+
'small-alert': 'false',
|
|
2646
|
+
'set-form-url': 'true',
|
|
2647
|
+
}],
|
|
2648
|
+
['eds-block-break', {}],
|
|
2649
|
+
['eds-img', {
|
|
2650
|
+
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
2651
|
+
alt: 'EBRAINS Bernstein Conference',
|
|
2652
|
+
width: '400',
|
|
2653
|
+
height: '225',
|
|
2654
|
+
srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1440w',
|
|
2655
|
+
sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
|
|
2656
|
+
formats: JSON.stringify([
|
|
2657
|
+
{ type: 'image/webp', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.webp 1080w' },
|
|
2658
|
+
{ type: 'image/jpeg', srcset: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 720w, https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg 1080w' },
|
|
2659
|
+
]),
|
|
2660
|
+
lazyload: 'true',
|
|
2661
|
+
'with-bg': 'true',
|
|
2662
|
+
}],
|
|
2663
|
+
['eds-block-break', {}],
|
|
2664
|
+
['eds-input-field', {
|
|
2665
|
+
name: 'username',
|
|
2666
|
+
'input-id': 'username',
|
|
2667
|
+
label: 'Username',
|
|
2668
|
+
placeholder: 'Enter your username',
|
|
2669
|
+
required: 'true',
|
|
2670
|
+
hint: 'Your unique username',
|
|
2671
|
+
message: 'This field is required',
|
|
2672
|
+
'error-message': 'Invalid username',
|
|
2673
|
+
type: 'text',
|
|
2674
|
+
}],
|
|
2675
|
+
['eds-block-break', {}],
|
|
2676
|
+
['eds-pagination', {
|
|
2677
|
+
'current-page': '1',
|
|
2678
|
+
'last-page': '10',
|
|
2679
|
+
'per-page': '5',
|
|
2680
|
+
total: '50',
|
|
2681
|
+
mode: 'default',
|
|
2682
|
+
}],
|
|
2683
|
+
['eds-block-break', {}],
|
|
2684
|
+
['eds-progress-bar', { value: '75' }],
|
|
2685
|
+
['eds-table', {
|
|
2686
|
+
data: JSON.stringify([
|
|
2687
|
+
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
2688
|
+
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
2689
|
+
{ Property: 'email', Type: 'string', Required: 'No' },
|
|
2690
|
+
]),
|
|
2691
|
+
config: JSON.stringify({
|
|
2692
|
+
Type: { format: 'uppercase' },
|
|
2693
|
+
Property: { format: 'code' },
|
|
2694
|
+
Required: { hidden: true },
|
|
2695
|
+
}),
|
|
2696
|
+
}],
|
|
2697
|
+
['eds-block-break', {}],
|
|
2698
|
+
['eds-tag', { label: 'Default Tag', intent: 'default' }],
|
|
2699
|
+
];
|
|
2539
2700
|
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
* to track its open/close status.
|
|
2550
|
-
*
|
|
2551
|
-
* Key features include:
|
|
2552
|
-
* - Header with customizable title
|
|
2553
|
-
* - Expandable/collapsible content section
|
|
2554
|
-
* - Background color switch on expand and hover
|
|
2555
|
-
* - Compact layout option with reduced header height
|
|
2556
|
-
* - Adjustable content height and text clamping
|
|
2557
|
-
* - Emitted events for tracking changes in expansion state and context
|
|
2558
|
-
*/
|
|
2559
|
-
class EdsAccordion {
|
|
2560
|
-
constructor(hostRef) {
|
|
2561
|
-
registerInstance(this, hostRef);
|
|
2562
|
-
this.accordionChange = createEvent(this, "accordionChange", 7);
|
|
2563
|
-
/**
|
|
2564
|
-
* Handles the click event on the accordion header to toggle expansion.
|
|
2565
|
-
* Toggles the `isExpanded` state and emits the `accordionChange` event.
|
|
2566
|
-
*/
|
|
2567
|
-
this.handleClick = () => {
|
|
2568
|
-
this.isExpanded = !this.isExpanded;
|
|
2569
|
-
this.accordionChange.emit(this.isExpanded);
|
|
2570
|
-
this.setPanelHeight();
|
|
2571
|
-
};
|
|
2572
|
-
/**
|
|
2573
|
-
* Calculates and sets the panel height based on the content height
|
|
2574
|
-
* and adjusts based on the `shortContent` and `isExpanded` states.
|
|
2575
|
-
*/
|
|
2576
|
-
this.setPanelHeight = () => {
|
|
2577
|
-
if (this.childContentRef) {
|
|
2578
|
-
this.shortContent =
|
|
2579
|
-
this.wrapperRef.scrollWidth > 830 && !this.description
|
|
2580
|
-
? this.childContentRef.scrollHeight <= 80
|
|
2581
|
-
: this.childContentRef.scrollHeight <= 20;
|
|
2582
|
-
this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
|
|
2583
|
-
}
|
|
2584
|
-
};
|
|
2585
|
-
this.title = undefined;
|
|
2586
|
-
this.description = undefined;
|
|
2587
|
-
this.switchBg = true;
|
|
2588
|
-
this.expanded = false;
|
|
2589
|
-
this.clampText = true;
|
|
2590
|
-
this.minHeightContent = false;
|
|
2591
|
-
this.isExpanded = this.expanded;
|
|
2592
|
-
this.panelHeight = 0;
|
|
2593
|
-
this.shortContent = false;
|
|
2594
|
-
}
|
|
2595
|
-
/**
|
|
2596
|
-
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
2597
|
-
* to recalculate height on window resize.
|
|
2598
|
-
*/
|
|
2599
|
-
componentDidLoad() {
|
|
2600
|
-
this.setPanelHeight();
|
|
2601
|
-
// Emit context for each eds-link element after the component is fully loaded
|
|
2602
|
-
const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
2603
|
-
this.emitContext(btn);
|
|
2604
|
-
window.addEventListener('resize', this.setPanelHeight);
|
|
2701
|
+
// Helper function to check if Matomo is initialized
|
|
2702
|
+
function isMatomoAvailable() {
|
|
2703
|
+
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
2704
|
+
}
|
|
2705
|
+
// General function to push data to Matomo
|
|
2706
|
+
function pushToMatomo(action, ...args) {
|
|
2707
|
+
//console.log('Pushing Matomo')
|
|
2708
|
+
if (isMatomoAvailable()) {
|
|
2709
|
+
window._paq.push([action, ...args]);
|
|
2605
2710
|
}
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
* This event provides context information about the breadcrumb component.
|
|
2609
|
-
*
|
|
2610
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
2611
|
-
*/
|
|
2612
|
-
emitContext(linkElement) {
|
|
2613
|
-
const event = new CustomEvent('parentContext', {
|
|
2614
|
-
detail: {
|
|
2615
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
2616
|
-
identifier: null
|
|
2617
|
-
}
|
|
2618
|
-
});
|
|
2619
|
-
linkElement.dispatchEvent(event);
|
|
2711
|
+
else {
|
|
2712
|
+
console.warn('Matomo is not available or not initialized.');
|
|
2620
2713
|
}
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2714
|
+
}
|
|
2715
|
+
// Function to send analytics data
|
|
2716
|
+
function sendAnalytics(eventData) {
|
|
2717
|
+
var _a;
|
|
2718
|
+
if (!isMatomoAvailable()) {
|
|
2719
|
+
console.warn('Matomo is not available or not initialized.');
|
|
2720
|
+
//console.log({ ...eventData });
|
|
2721
|
+
return;
|
|
2626
2722
|
}
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2723
|
+
// Conditionally build the name field
|
|
2724
|
+
const nameParts = [];
|
|
2725
|
+
if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
|
|
2726
|
+
nameParts.push(eventData.parentContext.componentName);
|
|
2727
|
+
}
|
|
2728
|
+
nameParts.push(eventData.tag || 'unknown-tag');
|
|
2729
|
+
nameParts.push(eventData.name || 'unknown-name');
|
|
2730
|
+
const name = nameParts.join('/');
|
|
2731
|
+
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
2732
|
+
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
2733
|
+
console.log(Object.assign({}, eventData));
|
|
2734
|
+
}
|
|
2735
|
+
// Function to opt-in the user
|
|
2736
|
+
function matomoOptIn() {
|
|
2737
|
+
if (isMatomoAvailable()) {
|
|
2738
|
+
window._paq.push(['rememberConsentGiven']);
|
|
2739
|
+
console.log('User has opted in to tracking');
|
|
2637
2740
|
}
|
|
2638
|
-
get el() { return getElement(this); }
|
|
2639
|
-
static get style() { return EdsAccordionStyle0; }
|
|
2640
|
-
static get cmpMeta() { return {
|
|
2641
|
-
"$flags$": 9,
|
|
2642
|
-
"$tagName$": "eds-accordion",
|
|
2643
|
-
"$members$": {
|
|
2644
|
-
"title": [1],
|
|
2645
|
-
"description": [1],
|
|
2646
|
-
"switchBg": [4, "switch-bg"],
|
|
2647
|
-
"expanded": [4],
|
|
2648
|
-
"clampText": [4, "clamp-text"],
|
|
2649
|
-
"minHeightContent": [4, "min-height-content"],
|
|
2650
|
-
"isExpanded": [32],
|
|
2651
|
-
"panelHeight": [32],
|
|
2652
|
-
"shortContent": [32]
|
|
2653
|
-
},
|
|
2654
|
-
"$listeners$": undefined,
|
|
2655
|
-
"$lazyBundleId$": "-",
|
|
2656
|
-
"$attrsToReflect$": []
|
|
2657
|
-
}; }
|
|
2658
2741
|
}
|
|
2659
2742
|
|
|
2660
2743
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
@@ -2702,455 +2785,360 @@ const cva = (base, config)=>{
|
|
|
2702
2785
|
};
|
|
2703
2786
|
};
|
|
2704
2787
|
|
|
2705
|
-
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";
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-softest after:rounded-lg'], {
|
|
2788
|
+
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
2789
|
+
const gradientBGColorVariants = cva([], {
|
|
2709
2790
|
variants: {
|
|
2710
|
-
|
|
2711
|
-
default: '',
|
|
2712
|
-
warning: 'bg-warning',
|
|
2713
|
-
error: 'bg-error',
|
|
2714
|
-
success: 'bg-success'
|
|
2715
|
-
},
|
|
2791
|
+
color: GRADIANT_TOKENS.reduce((acc, token) => (Object.assign(Object.assign({}, acc), { [token]: '' })), {}),
|
|
2716
2792
|
direction: {
|
|
2717
|
-
|
|
2718
|
-
|
|
2793
|
+
top: '',
|
|
2794
|
+
bottom: ''
|
|
2719
2795
|
},
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2796
|
+
pseudo: {
|
|
2797
|
+
true: 'before:effect-opacity effect-bg-behind',
|
|
2798
|
+
false: ''
|
|
2799
|
+
},
|
|
2800
|
+
hover: {
|
|
2801
|
+
true: 'before:opacity-0 hover:before:opacity-100',
|
|
2802
|
+
false: ''
|
|
2723
2803
|
}
|
|
2724
2804
|
},
|
|
2725
2805
|
compoundVariants: [
|
|
2806
|
+
// region GREEN
|
|
2726
2807
|
{
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2808
|
+
color: 'green',
|
|
2809
|
+
direction: 'top',
|
|
2810
|
+
pseudo: true,
|
|
2811
|
+
className: 'before:bg-gradient-01-top'
|
|
2730
2812
|
},
|
|
2731
2813
|
{
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2814
|
+
color: 'green',
|
|
2815
|
+
pseudo: true,
|
|
2816
|
+
direction: 'bottom',
|
|
2817
|
+
className: 'before:bg-gradient-01-bottom'
|
|
2735
2818
|
},
|
|
2736
2819
|
{
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2820
|
+
color: 'green',
|
|
2821
|
+
direction: 'top',
|
|
2822
|
+
pseudo: false,
|
|
2823
|
+
className: 'bg-gradient-01-top'
|
|
2740
2824
|
},
|
|
2741
2825
|
{
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2826
|
+
color: 'green',
|
|
2827
|
+
pseudo: false,
|
|
2828
|
+
direction: 'bottom',
|
|
2829
|
+
className: 'bg-gradient-01-bottom'
|
|
2830
|
+
},
|
|
2831
|
+
// endregion
|
|
2832
|
+
// region YELLOW
|
|
2833
|
+
{
|
|
2834
|
+
color: 'yellow',
|
|
2835
|
+
direction: 'top',
|
|
2836
|
+
pseudo: true,
|
|
2837
|
+
className: 'before:bg-gradient-02-top'
|
|
2838
|
+
},
|
|
2839
|
+
{
|
|
2840
|
+
color: 'yellow',
|
|
2841
|
+
direction: 'bottom',
|
|
2842
|
+
pseudo: true,
|
|
2843
|
+
className: 'before:bg-gradient-02-bottom'
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
color: 'yellow',
|
|
2847
|
+
direction: 'top',
|
|
2848
|
+
pseudo: false,
|
|
2849
|
+
className: 'bg-gradient-02-top'
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
color: 'yellow',
|
|
2853
|
+
direction: 'bottom',
|
|
2854
|
+
pseudo: false,
|
|
2855
|
+
className: 'bg-gradient-02-bottom'
|
|
2856
|
+
},
|
|
2857
|
+
// endregion
|
|
2858
|
+
// region PURPLE
|
|
2859
|
+
{
|
|
2860
|
+
color: 'purple',
|
|
2861
|
+
direction: 'top',
|
|
2862
|
+
pseudo: true,
|
|
2863
|
+
class: 'before:bg-gradient-03-top'
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
color: 'purple',
|
|
2867
|
+
direction: 'bottom',
|
|
2868
|
+
pseudo: true,
|
|
2869
|
+
class: 'before:bg-gradient-03-bottom'
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
color: 'purple',
|
|
2873
|
+
direction: 'top',
|
|
2874
|
+
pseudo: false,
|
|
2875
|
+
class: 'bg-gradient-03-top'
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
color: 'purple',
|
|
2879
|
+
direction: 'bottom',
|
|
2880
|
+
pseudo: false,
|
|
2881
|
+
class: 'bg-gradient-03-bottom'
|
|
2882
|
+
},
|
|
2883
|
+
// endregion
|
|
2884
|
+
// region AMONG-BLUE
|
|
2885
|
+
{
|
|
2886
|
+
color: 'among-blue',
|
|
2887
|
+
direction: 'top',
|
|
2888
|
+
pseudo: true,
|
|
2889
|
+
class: 'before:bg-gradient-04-top'
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
color: 'among-blue',
|
|
2893
|
+
direction: 'bottom',
|
|
2894
|
+
pseudo: true,
|
|
2895
|
+
class: 'before:bg-gradient-04-bottom'
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
color: 'among-blue',
|
|
2899
|
+
direction: 'top',
|
|
2900
|
+
pseudo: false,
|
|
2901
|
+
class: 'bg-gradient-04-top'
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
color: 'among-blue',
|
|
2905
|
+
direction: 'bottom',
|
|
2906
|
+
pseudo: false,
|
|
2907
|
+
class: 'bg-gradient-04-bottom'
|
|
2745
2908
|
}
|
|
2909
|
+
// endregion
|
|
2746
2910
|
],
|
|
2747
2911
|
defaultVariants: {
|
|
2748
|
-
|
|
2749
|
-
|
|
2912
|
+
direction: 'top',
|
|
2913
|
+
pseudo: true
|
|
2750
2914
|
}
|
|
2751
2915
|
});
|
|
2916
|
+
|
|
2917
|
+
const edsAccordionCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}";
|
|
2918
|
+
var EdsAccordionStyle0 = edsAccordionCss;
|
|
2919
|
+
|
|
2752
2920
|
/**
|
|
2753
|
-
* `
|
|
2754
|
-
*
|
|
2921
|
+
* `EdsAccordion` is a flexible, interactive component for expanding and collapsing content sections.
|
|
2922
|
+
* It features a customizable header, optional description, and content area that can be dynamically expanded.
|
|
2923
|
+
* This component supports a range of configurations, including background toggling, minimum height adjustments,
|
|
2924
|
+
* and various styles to suit different layouts and display requirements.
|
|
2755
2925
|
*
|
|
2756
|
-
*
|
|
2757
|
-
* - Customizable alert message with different visual intents (`default`, `warning`, `error`, `success`).
|
|
2758
|
-
* - Configurable layout direction (`horizontal` or `vertical`) to accommodate various design requirements.
|
|
2759
|
-
* - Optional pressable element (link or button) that allows users to interact with the alert.
|
|
2760
|
-
* - Emits context events to allow parent components to track alert interactions.
|
|
2926
|
+
* It includes an optional button or link element within the header, which can be customized for additional interactions.
|
|
2761
2927
|
*
|
|
2762
|
-
*
|
|
2928
|
+
* The `accordionChange` event is emitted when the accordion's expanded state changes, allowing parent components
|
|
2929
|
+
* to track its open/close status.
|
|
2930
|
+
*
|
|
2931
|
+
* Key features include:
|
|
2932
|
+
* - Header with customizable title
|
|
2933
|
+
* - Expandable/collapsible content section
|
|
2934
|
+
* - Background color switch on expand and hover
|
|
2935
|
+
* - Compact layout option with reduced header height
|
|
2936
|
+
* - Adjustable content height and text clamping
|
|
2937
|
+
* - Emitted events for tracking changes in expansion state and context
|
|
2763
2938
|
*/
|
|
2764
|
-
class
|
|
2939
|
+
class EdsAccordion {
|
|
2765
2940
|
constructor(hostRef) {
|
|
2766
2941
|
registerInstance(this, hostRef);
|
|
2767
|
-
this.
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
this.
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2942
|
+
this.accordionChange = createEvent(this, "accordionChange", 7);
|
|
2943
|
+
/**
|
|
2944
|
+
* Handles the click event on the accordion header to toggle expansion.
|
|
2945
|
+
* Toggles the `isExpanded` state and emits the `accordionChange` event.
|
|
2946
|
+
*/
|
|
2947
|
+
this.handleClick = () => {
|
|
2948
|
+
var _a;
|
|
2949
|
+
this.isExpanded = !this.isExpanded;
|
|
2950
|
+
this.accordionChange.emit(this.isExpanded);
|
|
2951
|
+
this.setPanelHeight();
|
|
2952
|
+
sendAnalytics({
|
|
2953
|
+
category: 'ui-component',
|
|
2954
|
+
parentContext: null,
|
|
2955
|
+
tag: this.el.tagName.toLowerCase(),
|
|
2956
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
2957
|
+
action: this.isExpanded ? 'expanded' : 'collapsed'
|
|
2958
|
+
});
|
|
2959
|
+
};
|
|
2960
|
+
/**
|
|
2961
|
+
* Calculates and sets the panel height based on the content height
|
|
2962
|
+
* and adjusts based on the `shortContent` and `isExpanded` states.
|
|
2963
|
+
*/
|
|
2964
|
+
this.setPanelHeight = () => {
|
|
2965
|
+
if (this.childContentRef) {
|
|
2966
|
+
this.shortContent =
|
|
2967
|
+
this.wrapperRef.scrollWidth > 830 && !this.description
|
|
2968
|
+
? this.childContentRef.scrollHeight <= 80
|
|
2969
|
+
: this.childContentRef.scrollHeight <= 20;
|
|
2970
|
+
this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0;
|
|
2971
|
+
}
|
|
2972
|
+
};
|
|
2973
|
+
this.title = undefined;
|
|
2974
|
+
this.description = undefined;
|
|
2975
|
+
this.switchBg = true;
|
|
2976
|
+
this.expanded = false;
|
|
2977
|
+
this.clampText = true;
|
|
2978
|
+
this.minHeightContent = false;
|
|
2979
|
+
this.isExpanded = this.expanded;
|
|
2980
|
+
this.panelHeight = 0;
|
|
2981
|
+
this.shortContent = false;
|
|
2776
2982
|
}
|
|
2983
|
+
/**
|
|
2984
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
2985
|
+
* to recalculate height on window resize.
|
|
2986
|
+
*/
|
|
2777
2987
|
componentDidLoad() {
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
links.forEach((link) => {
|
|
2781
|
-
this.emitContext(link);
|
|
2782
|
-
});
|
|
2988
|
+
this.setPanelHeight();
|
|
2989
|
+
window.addEventListener('resize', this.setPanelHeight);
|
|
2783
2990
|
}
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
}
|
|
2790
|
-
});
|
|
2791
|
-
linkElement.dispatchEvent(event);
|
|
2991
|
+
/**
|
|
2992
|
+
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
2993
|
+
*/
|
|
2994
|
+
disconnectedCallback() {
|
|
2995
|
+
window.removeEventListener('resize', this.setPanelHeight);
|
|
2792
2996
|
}
|
|
2997
|
+
/**
|
|
2998
|
+
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
2999
|
+
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
3000
|
+
*/
|
|
2793
3001
|
render() {
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary" })) : null)));
|
|
3002
|
+
const minHeightContentClass = this.minHeightContent ? 'min-h-56' : '';
|
|
3003
|
+
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
|
|
3004
|
+
${this.switchBg && this.isExpanded ? 'bg-inverse' : 'bg-default'}
|
|
3005
|
+
${this.switchBg ? 'hover:bg-inverse' : ''}
|
|
3006
|
+
${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' })))))));
|
|
2800
3007
|
}
|
|
2801
3008
|
get el() { return getElement(this); }
|
|
2802
|
-
static get style() { return
|
|
3009
|
+
static get style() { return EdsAccordionStyle0; }
|
|
2803
3010
|
static get cmpMeta() { return {
|
|
2804
3011
|
"$flags$": 9,
|
|
2805
|
-
"$tagName$": "eds-
|
|
3012
|
+
"$tagName$": "eds-accordion",
|
|
2806
3013
|
"$members$": {
|
|
2807
|
-
"
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2810
|
-
"
|
|
2811
|
-
"
|
|
2812
|
-
"
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
['eds-header', {
|
|
2822
|
-
'home-url': '/',
|
|
2823
|
-
'user-feature': 'false',
|
|
2824
|
-
'keycloak-url': 'http://localhost:8080',
|
|
2825
|
-
'keycloak-realm': 'nigeor-realm',
|
|
2826
|
-
'keycloak-client-id': 'stencil-app',
|
|
2827
|
-
links: JSON.stringify([
|
|
2828
|
-
{ label: 'About', url: '/about' },
|
|
2829
|
-
{ label: 'Focus Areas', url: '/focus-areas' },
|
|
2830
|
-
{ label: 'News & Events', url: '/news-and-events' },
|
|
2831
|
-
{ label: 'Contact', url: '/contact' },
|
|
2832
|
-
]),
|
|
2833
|
-
}],
|
|
2834
|
-
['eds-block-break', {}],
|
|
2835
|
-
['eds-footer', {}],
|
|
2836
|
-
['eds-block-break', {}],
|
|
2837
|
-
['eds-tabs', {
|
|
2838
|
-
tabs: JSON.stringify([
|
|
2839
|
-
{ label: 'Home', url: '#', active: true, ariaLabel: 'Home Tab' },
|
|
2840
|
-
{ label: 'Profile', url: '#', active: false, ariaLabel: 'Profile Tab' },
|
|
2841
|
-
{ label: 'Settings', url: '#', active: false, ariaLabel: 'Settings Tab' },
|
|
2842
|
-
]),
|
|
2843
|
-
}],
|
|
2844
|
-
['eds-block-break', {}],
|
|
2845
|
-
['eds-card-section', {
|
|
2846
|
-
cards: JSON.stringify([
|
|
2847
|
-
{ title: 'Card 1', description: 'Description 1', tags: 'tag1, tag2', url: '/link1' },
|
|
2848
|
-
{ title: 'Card 2', description: 'Description 2', tags: 'tag3', url: '/link2' },
|
|
2849
|
-
]),
|
|
2850
|
-
cols: '4',
|
|
2851
|
-
}],
|
|
2852
|
-
['eds-block-break', {}],
|
|
2853
|
-
['eds-link', {
|
|
2854
|
-
label: 'Main Link Click Me',
|
|
2855
|
-
url: 'https://example.com',
|
|
2856
|
-
intent: 'primary'
|
|
2857
|
-
}],
|
|
2858
|
-
['eds-block-break', {}],
|
|
2859
|
-
['eds-avatar', { 'first-name': 'John', 'last-name': 'Doe' }],
|
|
2860
|
-
['eds-block-break', {}],
|
|
2861
|
-
['eds-breadcrumb', {
|
|
2862
|
-
items: JSON.stringify([
|
|
2863
|
-
{ label: 'Home', url: '/' },
|
|
2864
|
-
{ label: 'Products', url: '/products' },
|
|
2865
|
-
{ label: 'Electronics', url: '/products/electronics' },
|
|
2866
|
-
{ label: 'Laptops', url: '/products/electronics/laptops' },
|
|
2867
|
-
]),
|
|
2868
|
-
intent: 'primary',
|
|
2869
|
-
}],
|
|
2870
|
-
['eds-block-break', {}],
|
|
2871
|
-
['eds-card-generic', {
|
|
2872
|
-
'card-title': 'The Future of AI in Healthcare',
|
|
2873
|
-
url: 'https://example.com/ai-healthcare',
|
|
2874
|
-
description: 'Explore how AI is transforming the healthcare industry with cutting-edge technologies and research.',
|
|
2875
|
-
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',
|
|
2876
|
-
'short-abbreviation': 'AI',
|
|
2877
|
-
'heading-level': 'h2',
|
|
2878
|
-
tags: 'Technology,AI,Healthcare',
|
|
2879
|
-
tiny: 'false',
|
|
2880
|
-
bg: 'true',
|
|
2881
|
-
'with-hover': 'true',
|
|
2882
|
-
}],
|
|
2883
|
-
['eds-block-break', {}],
|
|
2884
|
-
['eds-code-block', {
|
|
2885
|
-
code: 'Hello',
|
|
2886
|
-
language: 'javascript',
|
|
2887
|
-
}],
|
|
2888
|
-
['eds-block-break', {}],
|
|
2889
|
-
['eds-dropdown', {
|
|
2890
|
-
'aria-label': 'More options',
|
|
2891
|
-
'rounded-btn': 'true',
|
|
2892
|
-
'dropdown-pos': 'right',
|
|
2893
|
-
'dropdown-offset': 'true',
|
|
2894
|
-
}],
|
|
2895
|
-
['eds-block-break', {}],
|
|
2896
|
-
['eds-form', {
|
|
2897
|
-
name: 'extended-form',
|
|
2898
|
-
endpoint: 'http://127.0.0.1:5000/api/data',
|
|
2899
|
-
fields: JSON.stringify([
|
|
2900
|
-
{ name: 'username', label: 'Username', type: 'text', required: true, maxlength: 10 },
|
|
2901
|
-
{ name: 'email', label: 'Email', type: 'email', required: true },
|
|
2902
|
-
{ name: 'number', label: 'Number', type: 'number', required: true },
|
|
2903
|
-
{ name: 'password', label: 'Password', type: 'password', required: true, maxlength: 50 },
|
|
2904
|
-
{ name: 'date', label: 'Date', type: 'date', required: true },
|
|
2905
|
-
{ name: 'file', label: 'File', type: 'file', required: false },
|
|
2906
|
-
{ name: 'hiddenField', type: 'hidden', value: 'hiddenValue' },
|
|
2907
|
-
{ name: 'bio', label: 'Biography', type: 'textarea', required: true, maxlength: 300 },
|
|
2908
|
-
{ name: 'role', label: 'Role', type: 'select', required: true, options: [
|
|
2909
|
-
{ label: 'Admin', value: 'admin' },
|
|
2910
|
-
{ label: 'Editor', value: 'editor' },
|
|
2911
|
-
{ label: 'Viewer', value: 'viewer' },
|
|
2912
|
-
] },
|
|
2913
|
-
{ name: 'preferences', type: 'checkbox', label: 'Select your preferences', options: [
|
|
2914
|
-
{ value: 'option1', label: 'Option 1' },
|
|
2915
|
-
{ value: 'option2', label: 'Option 2' },
|
|
2916
|
-
{ value: 'option3', label: 'Option 3' },
|
|
2917
|
-
], required: true },
|
|
2918
|
-
{ name: 'gender', type: 'radio', label: 'Select your gender', options: [
|
|
2919
|
-
{ value: 'female', label: 'Female' },
|
|
2920
|
-
{ value: 'male', label: 'Male' },
|
|
2921
|
-
], required: true },
|
|
2922
|
-
{ name: 'newsletter', label: 'newsletter', type: 'checkbox', value: 'subscribe', required: true },
|
|
2923
|
-
{ name: 'range', label: 'Range bar', type: 'range', min: '0', max: '10', step: '1', required: true },
|
|
2924
|
-
]),
|
|
2925
|
-
'success-message': 'Form submitted successfully!',
|
|
2926
|
-
'error-message': 'Please fix the errors in the form.',
|
|
2927
|
-
'submit-btn': 'true',
|
|
2928
|
-
'small-alert': 'false',
|
|
2929
|
-
'set-form-url': 'true',
|
|
2930
|
-
}],
|
|
2931
|
-
['eds-block-break', {}],
|
|
2932
|
-
['eds-img', {
|
|
2933
|
-
src: 'https://files.ebrains.eu/img/f999348c-beaa-40f8-ba60-230316d4a947/EBRAINS-BernsteinConference01.jpg',
|
|
2934
|
-
alt: 'EBRAINS Bernstein Conference',
|
|
2935
|
-
width: '400',
|
|
2936
|
-
height: '225',
|
|
2937
|
-
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',
|
|
2938
|
-
sizes: '(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 33vw',
|
|
2939
|
-
formats: JSON.stringify([
|
|
2940
|
-
{ 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' },
|
|
2941
|
-
{ 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' },
|
|
2942
|
-
]),
|
|
2943
|
-
lazyload: 'true',
|
|
2944
|
-
'with-bg': 'true',
|
|
2945
|
-
}],
|
|
2946
|
-
['eds-block-break', {}],
|
|
2947
|
-
['eds-input-field', {
|
|
2948
|
-
name: 'username',
|
|
2949
|
-
'input-id': 'username',
|
|
2950
|
-
label: 'Username',
|
|
2951
|
-
placeholder: 'Enter your username',
|
|
2952
|
-
required: 'true',
|
|
2953
|
-
hint: 'Your unique username',
|
|
2954
|
-
message: 'This field is required',
|
|
2955
|
-
'error-message': 'Invalid username',
|
|
2956
|
-
type: 'text',
|
|
2957
|
-
}],
|
|
2958
|
-
['eds-block-break', {}],
|
|
2959
|
-
['eds-pagination', {
|
|
2960
|
-
'current-page': '1',
|
|
2961
|
-
'last-page': '10',
|
|
2962
|
-
'per-page': '5',
|
|
2963
|
-
total: '50',
|
|
2964
|
-
mode: 'default',
|
|
2965
|
-
}],
|
|
2966
|
-
['eds-block-break', {}],
|
|
2967
|
-
['eds-progress-bar', { value: '75' }],
|
|
2968
|
-
['eds-table', {
|
|
2969
|
-
data: JSON.stringify([
|
|
2970
|
-
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
2971
|
-
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
2972
|
-
{ Property: 'email', Type: 'string', Required: 'No' },
|
|
2973
|
-
]),
|
|
2974
|
-
config: JSON.stringify({
|
|
2975
|
-
Type: { format: 'uppercase' },
|
|
2976
|
-
Property: { format: 'code' },
|
|
2977
|
-
Required: { hidden: true },
|
|
2978
|
-
}),
|
|
2979
|
-
}],
|
|
2980
|
-
['eds-block-break', {}],
|
|
2981
|
-
['eds-tag', { label: 'Default Tag', intent: 'default' }],
|
|
2982
|
-
];
|
|
2983
|
-
|
|
2984
|
-
// Helper function to check if Matomo is initialized
|
|
2985
|
-
function isMatomoAvailable() {
|
|
2986
|
-
return typeof window !== 'undefined' && typeof window._paq !== 'undefined';
|
|
2987
|
-
}
|
|
2988
|
-
// General function to push data to Matomo
|
|
2989
|
-
function pushToMatomo(action, ...args) {
|
|
2990
|
-
console.log('Pushing Matomo');
|
|
2991
|
-
if (isMatomoAvailable()) {
|
|
2992
|
-
window._paq.push([action, ...args]);
|
|
2993
|
-
}
|
|
2994
|
-
else {
|
|
2995
|
-
console.warn('Matomo is not available or not initialized.');
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
|
-
// Function to send analytics data
|
|
2999
|
-
function sendAnalytics(eventData) {
|
|
3000
|
-
var _a;
|
|
3001
|
-
if (!isMatomoAvailable()) {
|
|
3002
|
-
console.warn('Matomo is not available or not initialized.');
|
|
3003
|
-
console.log(Object.assign({}, eventData));
|
|
3004
|
-
return;
|
|
3005
|
-
}
|
|
3006
|
-
// Conditionally build the name field
|
|
3007
|
-
const nameParts = [];
|
|
3008
|
-
if ((_a = eventData.parentContext) === null || _a === void 0 ? void 0 : _a.componentName) {
|
|
3009
|
-
nameParts.push(eventData.parentContext.componentName);
|
|
3010
|
-
}
|
|
3011
|
-
nameParts.push(eventData.tag || 'unknown-tag');
|
|
3012
|
-
nameParts.push(eventData.name || 'unknown-name');
|
|
3013
|
-
const name = nameParts.join('/');
|
|
3014
|
-
//console.log('trackEvent', eventData.category, eventData.action, name)
|
|
3015
|
-
pushToMatomo('trackEvent', eventData.category, eventData.action, name);
|
|
3016
|
-
console.log(Object.assign({}, eventData));
|
|
3017
|
-
}
|
|
3018
|
-
// Function to opt-in the user
|
|
3019
|
-
function matomoOptIn() {
|
|
3020
|
-
if (isMatomoAvailable()) {
|
|
3021
|
-
window._paq.push(['rememberConsentGiven']);
|
|
3022
|
-
console.log('User has opted in to tracking');
|
|
3023
|
-
}
|
|
3014
|
+
"title": [1],
|
|
3015
|
+
"description": [1],
|
|
3016
|
+
"switchBg": [4, "switch-bg"],
|
|
3017
|
+
"expanded": [4],
|
|
3018
|
+
"clampText": [4, "clamp-text"],
|
|
3019
|
+
"minHeightContent": [4, "min-height-content"],
|
|
3020
|
+
"isExpanded": [32],
|
|
3021
|
+
"panelHeight": [32],
|
|
3022
|
+
"shortContent": [32]
|
|
3023
|
+
},
|
|
3024
|
+
"$listeners$": undefined,
|
|
3025
|
+
"$lazyBundleId$": "-",
|
|
3026
|
+
"$attrsToReflect$": []
|
|
3027
|
+
}; }
|
|
3024
3028
|
}
|
|
3025
3029
|
|
|
3026
|
-
const GRADIANT_TOKENS = ['green', 'yellow', 'among-blue', 'purple'];
|
|
3027
|
-
|
|
3030
|
+
const edsAlertCss = ":root {\n font-optical-sizing: auto;\n}\nhtml,\nbody {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n/*\n:focus[data-focus-method=\"mouse\"],\n:focus[data-focus-method=\"touch\"] {\n outline: none !important;\n}\n*/\n/*FADE*/\n/*FADE TRANSLATE Y*/\n/*SLIDE LEFT*/\n/*SLIDE BOTTOM*/\n/*COLLAPSE Y*/\n*, ::before, ::after {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n::backdrop {\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n}\n/*\n! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com\n*/\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: currentColor; /* 2 */\n}\n::before,\n::after {\n}\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n/*\nRemove the default font size and weight for headings.\n*/\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\na {\n color: inherit;\n text-decoration: inherit;\n}\n/*\nAdd the correct font weight in Edge and Safari.\n*/\nb,\nstrong {\n font-weight: bolder;\n}\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\ncode,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n/*\nAdd the correct font size in all browsers.\n*/\nsmall {\n font-size: 80%;\n}\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\nsub {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\nbutton,\ninput,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\nbutton,\nselect {\n text-transform: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\nbutton,\ninput:where([type='button']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n/*\nAdd the correct display in Chrome and Safari.\n*/\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\np,\npre {\n margin: 0;\n}\nfieldset {\n margin: 0;\n padding: 0;\n}\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n/*\nPrevent resizing textareas horizontally by default.\n*/\ntextarea {\n resize: vertical;\n}\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n/*\nSet the default cursor for buttons.\n*/\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\nimg,\niframe,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\nimg {\n max-width: 100%;\n height: auto;\n}\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n:root {\n --inner-gutter: 8px;\n}\n@media (min-width: 750px) {\n :root {\n --inner-gutter: 12px;\n }\n}\n@media (min-width: 900px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1024px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 1280px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n@media (min-width: 2200px) {\n :root {\n --inner-gutter: 16px;\n }\n}\n:root {\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n:root {\n --sans: Inter, Helvetica, Arial, sans-serif;\n --f-ui-01-fontFamily: var(--sans);\n --f-ui-01-fontWeight: 800;\n --f-ui-01-fontSize: 18px;\n --f-ui-01-lineHeight: 110%;\n --f-ui-01-letterSpacing: -0.01em;\n}\n.f-ui-01 {\n font-family: var(--f-ui-01-fontFamily);\n font-weight: var(--f-ui-01-fontWeight);\n font-size: var(--f-ui-01-fontSize);\n line-height: var(--f-ui-01-lineHeight);\n letter-spacing: var(--f-ui-01-letterSpacing);\n}\n@media (min-width: 750px) {\n :root {\n}\n}\n@media (min-width: 900px) {\n :root {\n}\n}\n@media (min-width: 1024px) {\n :root {\n}\n}\n.f-ui-01 b, .f-ui-01 strong {\n font-weight: var(--f-ui-01---bold-weight, bold);\n}\n:root {\n --grey-300: #e6e6e6;\n --green-200: #d3ffdc;\n --yellow-200: #ffffcb;\n --red-200: #ffe0e1;\n}\n@media (min-width: 750px) {\n .md\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .md\\:grid-line-x-0 > *::before {\n content: none;\n }\n .md\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .md\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n@media (min-width: 900px) {\n .lg\\:grid-line-x > *::before {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: 0;\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-xfull > *::before {\n content: attr(👻);\n inset-inline-start: calc(var(--inner-gutter) / -2);\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: calc(var(--inner-gutter) / -2);\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n }\n .lg\\:grid-line-x-0 > *::before {\n content: none;\n }\n .lg\\:grid-line-y > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: 0;\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-yfull > *::after {\n content: attr(👻);\n inset-inline-start: 0;\n inset-inline-end: calc(var(--inner-gutter) / -2);\n top: calc(var(--inner-gutter) / -1);\n bottom: 0;\n border-inline-start: 0 solid transparent;\n border-inline-end: 0 solid transparent;\n }\n .lg\\:grid-line-y-0 > *::after {\n content: none;\n }\n}\n.border-inside {\n position: relative;\n\n &::after {\n pointer-events: none;\n }\n\n &::after {\n position: absolute;\n }\n\n &::after {\n inset: 0rem;\n }\n\n &::after {\n z-index: 1;\n }\n\n &::after {\n border-radius: 8px;\n }\n\n &::after {\n border-width: 1px;\n }\n\n &::after {\n border-width: 2px;\n }\n\n &::after {\n border-color: rgba(0, 0, 0, .1 );\n }\n\n &::after {\n content: '';\n }\n}\n/** region TRANSITIONS */\n/** endregion */\n/* region FOCUS */\n/* endregion */\n/* region BG */\n/* endregion */\n/*region shadow*/\n/*endregion*/\n.flex {\n display: flex;\n}\n.w-full {\n width: 100%;\n}\n.flex-row {\n flex-direction: row;\n}\n.items-center {\n align-items: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.gap-x-12 {\n -moz-column-gap: 0.75rem;\n column-gap: 0.75rem;\n}\n.space-y-12 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.rounded-lg {\n border-radius: 16px;\n}\n.bg-dark {\n background-color: var(--grey-300);\n}\n.bg-error {\n background-color: var(--red-200);\n}\n.bg-success {\n background-color: var(--green-200);\n}\n.bg-warning {\n background-color: var(--yellow-200);\n}\n.p-16 {\n padding: 1rem;\n}\n.p-20 {\n padding: 1.25rem;\n}\n.px-12 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-20 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.py-12 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-20 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-8 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.pr-12 {\n padding-right: 0.75rem;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n[class*=underline-] {\n text-decoration-line: underline;\n}\n.after\\:rounded-lg::after {\n border-radius: 16px;\n}\n.after\\:border-softest::after {\n border-color: rgba(0, 0, 0, .05 );\n}\n";
|
|
3031
|
+
var EdsAlertStyle0 = edsAlertCss;
|
|
3032
|
+
|
|
3033
|
+
const alertStyles = cva(['w-full bg-dark rounded-lg border-inside after:border-softest after:rounded-lg'], {
|
|
3028
3034
|
variants: {
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3035
|
+
intent: {
|
|
3036
|
+
default: '',
|
|
3037
|
+
warning: 'bg-warning',
|
|
3038
|
+
error: 'bg-error',
|
|
3039
|
+
success: 'bg-success'
|
|
3033
3040
|
},
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3041
|
+
direction: {
|
|
3042
|
+
vertical: 'space-y-12',
|
|
3043
|
+
horizontal: 'flex flex-row items-center justify-between gap-x-12'
|
|
3037
3044
|
},
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3045
|
+
withBtn: {
|
|
3046
|
+
false: '',
|
|
3047
|
+
true: ''
|
|
3041
3048
|
}
|
|
3042
3049
|
},
|
|
3043
3050
|
compoundVariants: [
|
|
3044
|
-
// region GREEN
|
|
3045
|
-
{
|
|
3046
|
-
color: 'green',
|
|
3047
|
-
direction: 'top',
|
|
3048
|
-
pseudo: true,
|
|
3049
|
-
className: 'before:bg-gradient-01-top'
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
color: 'green',
|
|
3053
|
-
pseudo: true,
|
|
3054
|
-
direction: 'bottom',
|
|
3055
|
-
className: 'before:bg-gradient-01-bottom'
|
|
3056
|
-
},
|
|
3057
|
-
{
|
|
3058
|
-
color: 'green',
|
|
3059
|
-
direction: 'top',
|
|
3060
|
-
pseudo: false,
|
|
3061
|
-
className: 'bg-gradient-01-top'
|
|
3062
|
-
},
|
|
3063
|
-
{
|
|
3064
|
-
color: 'green',
|
|
3065
|
-
pseudo: false,
|
|
3066
|
-
direction: 'bottom',
|
|
3067
|
-
className: 'bg-gradient-01-bottom'
|
|
3068
|
-
},
|
|
3069
|
-
// endregion
|
|
3070
|
-
// region YELLOW
|
|
3071
|
-
{
|
|
3072
|
-
color: 'yellow',
|
|
3073
|
-
direction: 'top',
|
|
3074
|
-
pseudo: true,
|
|
3075
|
-
className: 'before:bg-gradient-02-top'
|
|
3076
|
-
},
|
|
3077
|
-
{
|
|
3078
|
-
color: 'yellow',
|
|
3079
|
-
direction: 'bottom',
|
|
3080
|
-
pseudo: true,
|
|
3081
|
-
className: 'before:bg-gradient-02-bottom'
|
|
3082
|
-
},
|
|
3083
|
-
{
|
|
3084
|
-
color: 'yellow',
|
|
3085
|
-
direction: 'top',
|
|
3086
|
-
pseudo: false,
|
|
3087
|
-
className: 'bg-gradient-02-top'
|
|
3088
|
-
},
|
|
3089
|
-
{
|
|
3090
|
-
color: 'yellow',
|
|
3091
|
-
direction: 'bottom',
|
|
3092
|
-
pseudo: false,
|
|
3093
|
-
className: 'bg-gradient-02-bottom'
|
|
3094
|
-
},
|
|
3095
|
-
// endregion
|
|
3096
|
-
// region PURPLE
|
|
3097
|
-
{
|
|
3098
|
-
color: 'purple',
|
|
3099
|
-
direction: 'top',
|
|
3100
|
-
pseudo: true,
|
|
3101
|
-
class: 'before:bg-gradient-03-top'
|
|
3102
|
-
},
|
|
3103
|
-
{
|
|
3104
|
-
color: 'purple',
|
|
3105
|
-
direction: 'bottom',
|
|
3106
|
-
pseudo: true,
|
|
3107
|
-
class: 'before:bg-gradient-03-bottom'
|
|
3108
|
-
},
|
|
3109
|
-
{
|
|
3110
|
-
color: 'purple',
|
|
3111
|
-
direction: 'top',
|
|
3112
|
-
pseudo: false,
|
|
3113
|
-
class: 'bg-gradient-03-top'
|
|
3114
|
-
},
|
|
3115
|
-
{
|
|
3116
|
-
color: 'purple',
|
|
3117
|
-
direction: 'bottom',
|
|
3118
|
-
pseudo: false,
|
|
3119
|
-
class: 'bg-gradient-03-bottom'
|
|
3120
|
-
},
|
|
3121
|
-
// endregion
|
|
3122
|
-
// region AMONG-BLUE
|
|
3123
3051
|
{
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
class: 'before:bg-gradient-04-top'
|
|
3052
|
+
direction: 'horizontal',
|
|
3053
|
+
withBtn: true,
|
|
3054
|
+
class: 'px-20 pr-12 py-12'
|
|
3128
3055
|
},
|
|
3129
3056
|
{
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
class: 'before:bg-gradient-04-bottom'
|
|
3057
|
+
direction: 'horizontal',
|
|
3058
|
+
withBtn: false,
|
|
3059
|
+
class: 'p-20'
|
|
3134
3060
|
},
|
|
3135
3061
|
{
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
class: 'bg-gradient-04-top'
|
|
3062
|
+
direction: 'vertical',
|
|
3063
|
+
withBtn: true,
|
|
3064
|
+
class: 'p-16'
|
|
3140
3065
|
},
|
|
3141
3066
|
{
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
class: 'bg-gradient-04-bottom'
|
|
3067
|
+
direction: 'vertical',
|
|
3068
|
+
withBtn: false,
|
|
3069
|
+
class: 'px-12 py-20'
|
|
3146
3070
|
}
|
|
3147
|
-
// endregion
|
|
3148
3071
|
],
|
|
3149
3072
|
defaultVariants: {
|
|
3150
|
-
|
|
3151
|
-
|
|
3073
|
+
intent: 'default',
|
|
3074
|
+
direction: 'horizontal'
|
|
3152
3075
|
}
|
|
3153
3076
|
});
|
|
3077
|
+
/**
|
|
3078
|
+
* `EdsAlert` is a versatile alert component designed for displaying contextual messages.
|
|
3079
|
+
* This component offers various configuration options to support different use cases, making it ideal for notifying users of information, warnings, errors, or successes.
|
|
3080
|
+
*
|
|
3081
|
+
* Key features include:
|
|
3082
|
+
* - Customizable alert message with different visual intents (`default`, `warning`, `error`, `success`).
|
|
3083
|
+
* - Configurable layout direction (`horizontal` or `vertical`) to accommodate various design requirements.
|
|
3084
|
+
* - Optional pressable element (link or button) that allows users to interact with the alert.
|
|
3085
|
+
* - Emits context events to allow parent components to track alert interactions.
|
|
3086
|
+
*
|
|
3087
|
+
* This component is styled with predefined CSS classes to ensure consistent appearance across different alert types and layout configurations.
|
|
3088
|
+
*/
|
|
3089
|
+
class EdsAlert {
|
|
3090
|
+
constructor(hostRef) {
|
|
3091
|
+
registerInstance(this, hostRef);
|
|
3092
|
+
this.message = undefined;
|
|
3093
|
+
this.pressableLabel = undefined;
|
|
3094
|
+
this.pressableUrl = undefined;
|
|
3095
|
+
this.direction = 'horizontal';
|
|
3096
|
+
this.intent = 'default';
|
|
3097
|
+
this.withBtn = false;
|
|
3098
|
+
}
|
|
3099
|
+
componentWillLoad() {
|
|
3100
|
+
this.withBtn = Boolean(this.pressableLabel);
|
|
3101
|
+
}
|
|
3102
|
+
componentDidLoad() {
|
|
3103
|
+
// Query all 'eds-link' elements, including those inside shadow DOM
|
|
3104
|
+
const lnk = this.el.shadowRoot.querySelector('eds-link');
|
|
3105
|
+
this.emitContext(lnk);
|
|
3106
|
+
}
|
|
3107
|
+
emitContext(linkElement) {
|
|
3108
|
+
const event = new CustomEvent('parentContext', {
|
|
3109
|
+
detail: {
|
|
3110
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
3111
|
+
identifier: null
|
|
3112
|
+
}
|
|
3113
|
+
});
|
|
3114
|
+
linkElement.dispatchEvent(event);
|
|
3115
|
+
}
|
|
3116
|
+
render() {
|
|
3117
|
+
return (hAsync("div", { key: '089491004acd618827ef139a7c2ef486726cea9d', class: alertStyles({
|
|
3118
|
+
intent: this.intent,
|
|
3119
|
+
direction: this.direction,
|
|
3120
|
+
withBtn: this.withBtn
|
|
3121
|
+
}), role: "alert" }, hAsync("p", { key: '9a54555621b492f65b38ecd3cbb44660bf516e51', class: "f-ui-01 py-8" }, this.message), this.withBtn &&
|
|
3122
|
+
(this.pressableUrl ? (hAsync("eds-link", { class: "eds-alert-link", label: this.pressableLabel, url: this.pressableUrl, intent: "secondary", external: true })) : null)));
|
|
3123
|
+
}
|
|
3124
|
+
get el() { return getElement(this); }
|
|
3125
|
+
static get style() { return EdsAlertStyle0; }
|
|
3126
|
+
static get cmpMeta() { return {
|
|
3127
|
+
"$flags$": 9,
|
|
3128
|
+
"$tagName$": "eds-alert",
|
|
3129
|
+
"$members$": {
|
|
3130
|
+
"message": [1],
|
|
3131
|
+
"pressableLabel": [1, "pressable-label"],
|
|
3132
|
+
"pressableUrl": [1, "pressable-url"],
|
|
3133
|
+
"direction": [1],
|
|
3134
|
+
"intent": [1],
|
|
3135
|
+
"withBtn": [32]
|
|
3136
|
+
},
|
|
3137
|
+
"$listeners$": undefined,
|
|
3138
|
+
"$lazyBundleId$": "-",
|
|
3139
|
+
"$attrsToReflect$": []
|
|
3140
|
+
}; }
|
|
3141
|
+
}
|
|
3154
3142
|
|
|
3155
3143
|
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}";
|
|
3156
3144
|
var EdsAvatarStyle0 = edsAvatarCss;
|
|
@@ -3224,7 +3212,7 @@ class EdsAvatar {
|
|
|
3224
3212
|
* @returns {JSX.Element} The rendered avatar component.
|
|
3225
3213
|
*/
|
|
3226
3214
|
render() {
|
|
3227
|
-
return (hAsync("div", { key: '
|
|
3215
|
+
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))));
|
|
3228
3216
|
}
|
|
3229
3217
|
static get style() { return EdsAvatarStyle0; }
|
|
3230
3218
|
static get cmpMeta() { return {
|
|
@@ -3262,7 +3250,7 @@ class EdsBlockBreak {
|
|
|
3262
3250
|
this.extraClass = '';
|
|
3263
3251
|
}
|
|
3264
3252
|
render() {
|
|
3265
|
-
return hAsync("hr", { key: '
|
|
3253
|
+
return hAsync("hr", { key: '58ffdece778da8f323dd130908254690b3f6c8d3', class: `border-softer my-20 inline-block w-full border-t-2 ${this.extraClass}` });
|
|
3266
3254
|
}
|
|
3267
3255
|
static get style() { return EdsBlockBreakStyle0; }
|
|
3268
3256
|
static get cmpMeta() { return {
|
|
@@ -3320,22 +3308,24 @@ class EdsBreadcrumb {
|
|
|
3320
3308
|
this.maxVisibleItems = 6;
|
|
3321
3309
|
}
|
|
3322
3310
|
/**
|
|
3323
|
-
*
|
|
3324
|
-
* Converts the `items` string into an array of objects if it is a JSON string.
|
|
3325
|
-
* If the format is invalid, it logs an error and sets an empty array.
|
|
3326
|
-
*
|
|
3327
|
-
* @param newValue - The new value for the `items` prop.
|
|
3311
|
+
* Watches for changes to the `items` prop and parses it.
|
|
3328
3312
|
*/
|
|
3329
3313
|
parseItems(newValue) {
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3314
|
+
if (typeof newValue === 'string') {
|
|
3315
|
+
try {
|
|
3316
|
+
const parsed = JSON.parse(newValue);
|
|
3317
|
+
this.parsedItems = Array.isArray(parsed) ? parsed : [];
|
|
3333
3318
|
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3319
|
+
catch (e) {
|
|
3320
|
+
// eslint-disable-next-line
|
|
3321
|
+
console.error('Error parsing breadcrumb items:', e);
|
|
3322
|
+
this.parsedItems = [];
|
|
3336
3323
|
}
|
|
3337
3324
|
}
|
|
3338
|
-
|
|
3325
|
+
else if (Array.isArray(newValue)) {
|
|
3326
|
+
this.parsedItems = newValue;
|
|
3327
|
+
}
|
|
3328
|
+
else {
|
|
3339
3329
|
this.parsedItems = [];
|
|
3340
3330
|
}
|
|
3341
3331
|
}
|
|
@@ -3423,7 +3413,7 @@ class EdsBreadcrumb {
|
|
|
3423
3413
|
*/
|
|
3424
3414
|
render() {
|
|
3425
3415
|
const itemsToRender = this.getTruncatedItems();
|
|
3426
|
-
return (hAsync("nav", { key: '
|
|
3416
|
+
return (hAsync("nav", { key: 'd66dd18fe856e4a8d82e47117d2de0288a9e3c56', "aria-label": "Breadcrumb" }, hAsync("ol", { key: 'b3a218032b312cb5973c1ca59ab7bedcfc07d676', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3427
3417
|
const isLast = index === itemsToRender.length - 1;
|
|
3428
3418
|
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" }))));
|
|
3429
3419
|
}))));
|
|
@@ -3678,7 +3668,7 @@ class EdsButton {
|
|
|
3678
3668
|
show: !this.loading
|
|
3679
3669
|
});
|
|
3680
3670
|
const ElementType = this.elementType;
|
|
3681
|
-
return (hAsync(ElementType, { key: '
|
|
3671
|
+
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: {
|
|
3682
3672
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3683
3673
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3684
3674
|
} }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -3712,6 +3702,14 @@ class EdsButton {
|
|
|
3712
3702
|
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}";
|
|
3713
3703
|
var EdsCardDescStyle0 = edsCardDescCss;
|
|
3714
3704
|
|
|
3705
|
+
/**
|
|
3706
|
+
* `eds-card-desc` is a simple component that renders a card description.
|
|
3707
|
+
*
|
|
3708
|
+
* It displays a block of text with optional truncation applied using a CSS line clamp.
|
|
3709
|
+
* You can customize the description styling via the `descClass` property and control
|
|
3710
|
+
* whether or not the text is truncated and to how many lines.
|
|
3711
|
+
*
|
|
3712
|
+
*/
|
|
3715
3713
|
class EdsCardDesc {
|
|
3716
3714
|
constructor(hostRef) {
|
|
3717
3715
|
registerInstance(this, hostRef);
|
|
@@ -3724,7 +3722,7 @@ class EdsCardDesc {
|
|
|
3724
3722
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
3725
3723
|
}
|
|
3726
3724
|
render() {
|
|
3727
|
-
return (hAsync("p", { key: '
|
|
3725
|
+
return (hAsync("p", { key: 'ca38bcc0895d5a0c87fda782ef455e45c4b53263', class: `text-light ${this.descClass}` }, hAsync("span", { key: '3108eec08a760b1db7ce1a7be05b68749f8f930b', class: this.getTruncateClass() }, this.description)));
|
|
3728
3726
|
}
|
|
3729
3727
|
static get style() { return EdsCardDescStyle0; }
|
|
3730
3728
|
static get cmpMeta() { return {
|
|
@@ -3768,7 +3766,7 @@ class EdsCardGeneric {
|
|
|
3768
3766
|
this.avatar = undefined;
|
|
3769
3767
|
this.shortAbbreviation = undefined;
|
|
3770
3768
|
this.headingLevel = 'h3';
|
|
3771
|
-
this.tags =
|
|
3769
|
+
this.tags = [];
|
|
3772
3770
|
this.tiny = false;
|
|
3773
3771
|
this.bg = true;
|
|
3774
3772
|
this.withHover = true;
|
|
@@ -3844,7 +3842,7 @@ class EdsCardGeneric {
|
|
|
3844
3842
|
});
|
|
3845
3843
|
}
|
|
3846
3844
|
render() {
|
|
3847
|
-
return (hAsync("article", { key: '
|
|
3845
|
+
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 })))), ' '));
|
|
3848
3846
|
}
|
|
3849
3847
|
get el() { return getElement(this); }
|
|
3850
3848
|
static get style() { return EdsCardGenericStyle0; }
|
|
@@ -3859,7 +3857,7 @@ class EdsCardGeneric {
|
|
|
3859
3857
|
"avatar": [1],
|
|
3860
3858
|
"shortAbbreviation": [1, "short-abbreviation"],
|
|
3861
3859
|
"headingLevel": [1, "heading-level"],
|
|
3862
|
-
"tags": [
|
|
3860
|
+
"tags": [1],
|
|
3863
3861
|
"tiny": [4],
|
|
3864
3862
|
"bg": [4],
|
|
3865
3863
|
"withHover": [4, "with-hover"],
|
|
@@ -3968,7 +3966,7 @@ var EdsCardSectionStyle0 = edsCardSectionCss;
|
|
|
3968
3966
|
class EdsCardSection {
|
|
3969
3967
|
constructor(hostRef) {
|
|
3970
3968
|
registerInstance(this, hostRef);
|
|
3971
|
-
this.cards =
|
|
3969
|
+
this.cards = [];
|
|
3972
3970
|
this.cols = 4;
|
|
3973
3971
|
}
|
|
3974
3972
|
/**
|
|
@@ -3978,13 +3976,24 @@ class EdsCardSection {
|
|
|
3978
3976
|
* @returns {any[]} An array of parsed card objects.
|
|
3979
3977
|
*/
|
|
3980
3978
|
get parsedCards() {
|
|
3981
|
-
|
|
3982
|
-
|
|
3979
|
+
// If it's already an array, return it immediately.
|
|
3980
|
+
if (Array.isArray(this.cards)) {
|
|
3981
|
+
return this.cards;
|
|
3982
|
+
}
|
|
3983
|
+
if (typeof this.cards === 'object') {
|
|
3984
|
+
return this.cards;
|
|
3983
3985
|
}
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3986
|
+
else if (typeof this.cards === 'string') {
|
|
3987
|
+
try {
|
|
3988
|
+
return JSON.parse(this.cards);
|
|
3989
|
+
}
|
|
3990
|
+
catch (e) {
|
|
3991
|
+
// eslint-disable-next-line
|
|
3992
|
+
console.error('Error parsing cards prop:', e);
|
|
3993
|
+
return [];
|
|
3994
|
+
}
|
|
3987
3995
|
}
|
|
3996
|
+
return [];
|
|
3988
3997
|
}
|
|
3989
3998
|
/**
|
|
3990
3999
|
* Renders the card section as a grid layout.
|
|
@@ -3994,7 +4003,7 @@ class EdsCardSection {
|
|
|
3994
4003
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
3995
4004
|
*/
|
|
3996
4005
|
render() {
|
|
3997
|
-
return (hAsync("section", { key: '
|
|
4006
|
+
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 })))))));
|
|
3998
4007
|
}
|
|
3999
4008
|
static get style() { return EdsCardSectionStyle0; }
|
|
4000
4009
|
static get cmpMeta() { return {
|
|
@@ -4023,7 +4032,7 @@ class EdsCardTags {
|
|
|
4023
4032
|
this.tags = [];
|
|
4024
4033
|
}
|
|
4025
4034
|
render() {
|
|
4026
|
-
return (hAsync("div", { key: '
|
|
4035
|
+
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 })))));
|
|
4027
4036
|
}
|
|
4028
4037
|
static get style() { return EdsCardTagsStyle0; }
|
|
4029
4038
|
static get cmpMeta() { return {
|
|
@@ -4087,7 +4096,7 @@ class EdsCardTitle {
|
|
|
4087
4096
|
render() {
|
|
4088
4097
|
//const Tag = this.getTag();
|
|
4089
4098
|
const Heading = this.headingLevel;
|
|
4090
|
-
return (hAsync(Heading, { key: '
|
|
4099
|
+
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)));
|
|
4091
4100
|
}
|
|
4092
4101
|
static get style() { return EdsCardTitleStyle0; }
|
|
4093
4102
|
static get cmpMeta() { return {
|
|
@@ -4226,7 +4235,7 @@ class EdsCardWrapper {
|
|
|
4226
4235
|
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
4227
4236
|
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
4228
4237
|
].join(' ');
|
|
4229
|
-
return (hAsync("article", { key: '
|
|
4238
|
+
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" })))));
|
|
4230
4239
|
}
|
|
4231
4240
|
get el() { return getElement(this); }
|
|
4232
4241
|
static get cmpMeta() { return {
|
|
@@ -6651,6 +6660,14 @@ Prism.languages.py = Prism.languages.python;
|
|
|
6651
6660
|
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}";
|
|
6652
6661
|
var EdsCodeBlockStyle0 = edsCodeBlockCss;
|
|
6653
6662
|
|
|
6663
|
+
//import { sendAnalytics } from '@ebrains/utils';
|
|
6664
|
+
/**
|
|
6665
|
+
* A component that displays a code block with syntax highlighting.
|
|
6666
|
+
*
|
|
6667
|
+
* Uses Prism.js for syntax highlighting. Supports multiple languages such as JavaScript, HTML, CSS,
|
|
6668
|
+
* Python, Bash/Shell, and YAML.
|
|
6669
|
+
*
|
|
6670
|
+
* */
|
|
6654
6671
|
class EdsCodeBlock {
|
|
6655
6672
|
constructor(hostRef) {
|
|
6656
6673
|
registerInstance(this, hostRef);
|
|
@@ -6658,12 +6675,58 @@ class EdsCodeBlock {
|
|
|
6658
6675
|
this.language = undefined;
|
|
6659
6676
|
this.copied = false;
|
|
6660
6677
|
}
|
|
6678
|
+
/**
|
|
6679
|
+
* Copies the current code content to the clipboard and sets a temporary copied state.
|
|
6680
|
+
*
|
|
6681
|
+
* @private
|
|
6682
|
+
* @returns {void}
|
|
6683
|
+
*/
|
|
6661
6684
|
copyToClipboard() {
|
|
6662
6685
|
navigator.clipboard.writeText(this.code).then(() => {
|
|
6663
6686
|
this.copied = true;
|
|
6687
|
+
/*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
|
|
6688
|
+
sendAnalytics({
|
|
6689
|
+
category: 'ui-component',
|
|
6690
|
+
parentContext: null,
|
|
6691
|
+
tag: this.el.tagName.toLowerCase(),
|
|
6692
|
+
name: analyticsName || '',
|
|
6693
|
+
action: 'copy'
|
|
6694
|
+
});*/
|
|
6664
6695
|
setTimeout(() => (this.copied = false), 2000);
|
|
6665
6696
|
});
|
|
6666
6697
|
}
|
|
6698
|
+
/**
|
|
6699
|
+
* Utility function that creates a human-friendly analytics name based on the code and language.
|
|
6700
|
+
* It uses:
|
|
6701
|
+
* - The language (in uppercase)
|
|
6702
|
+
* - The number of non-empty lines in the code
|
|
6703
|
+
* - The first non-empty line of code (truncated to 30 characters, if needed)
|
|
6704
|
+
*
|
|
6705
|
+
* returns A descriptive analytics name.
|
|
6706
|
+
*/
|
|
6707
|
+
/*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
|
|
6708
|
+
// Count non-empty lines
|
|
6709
|
+
const lines = code.split('\n').filter(line => line.trim() !== '').length;
|
|
6710
|
+
|
|
6711
|
+
// Find the first non-empty line and trim it
|
|
6712
|
+
let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
|
|
6713
|
+
firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
|
|
6714
|
+
|
|
6715
|
+
// Truncate the snippet if it’s too long
|
|
6716
|
+
if (firstNonEmptyLine.length > 30) {
|
|
6717
|
+
firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
|
|
6718
|
+
}
|
|
6719
|
+
|
|
6720
|
+
return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
|
|
6721
|
+
}*/
|
|
6722
|
+
/**
|
|
6723
|
+
* Returns the syntax-highlighted HTML for the code.
|
|
6724
|
+
* If the provided language is supported by Prism, this method returns the highlighted code.
|
|
6725
|
+
* Otherwise, it logs a warning and returns the raw code.
|
|
6726
|
+
*
|
|
6727
|
+
* @private
|
|
6728
|
+
* @returns {string} The highlighted HTML string for the code block.
|
|
6729
|
+
*/
|
|
6667
6730
|
getHighlightedCode() {
|
|
6668
6731
|
if (this.language && Prism$1.languages[this.language]) {
|
|
6669
6732
|
return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
|
|
@@ -6673,8 +6736,9 @@ class EdsCodeBlock {
|
|
|
6673
6736
|
return this.code; // Fallback if language is not provided or unsupported
|
|
6674
6737
|
}
|
|
6675
6738
|
render() {
|
|
6676
|
-
return (hAsync("div", { key: '
|
|
6739
|
+
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() })))));
|
|
6677
6740
|
}
|
|
6741
|
+
get el() { return getElement(this); }
|
|
6678
6742
|
static get style() { return EdsCodeBlockStyle0; }
|
|
6679
6743
|
static get cmpMeta() { return {
|
|
6680
6744
|
"$flags$": 9,
|
|
@@ -6691,54 +6755,76 @@ class EdsCodeBlock {
|
|
|
6691
6755
|
}
|
|
6692
6756
|
|
|
6693
6757
|
const EdsComponentsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
6694
|
-
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" }),
|
|
6695
6758
|
hAsync("h2", null, "Load the module"),
|
|
6696
6759
|
hAsync("p", null,
|
|
6697
6760
|
"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",
|
|
6698
6761
|
' ',
|
|
6699
6762
|
hAsync("code", null, "head"),
|
|
6700
6763
|
"."),
|
|
6701
|
-
hAsync("eds-code-block", { code:
|
|
6764
|
+
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" }),
|
|
6702
6765
|
hAsync("h2", null, "Load the styles"),
|
|
6703
6766
|
hAsync("p", null,
|
|
6704
6767
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
6705
6768
|
' ',
|
|
6706
6769
|
hAsync("code", null, "head")),
|
|
6707
|
-
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
6770
|
+
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
6771
|
+
hAsync("div", { class: "my-4" },
|
|
6772
|
+
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" })),
|
|
6708
6773
|
hAsync("h2", null, "Load the fonts"),
|
|
6709
6774
|
hAsync("p", null,
|
|
6710
|
-
"To load the
|
|
6775
|
+
"To load the webfonts, add the tag below to the ",
|
|
6711
6776
|
hAsync("code", null, "head")),
|
|
6712
6777
|
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" }),
|
|
6713
6778
|
hAsync("h2", null, "Component Usage"),
|
|
6714
6779
|
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
6715
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"
|
|
6780
|
+
hAsync("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
6716
6781
|
|
|
6717
6782
|
const EdsDocsInstallation = () => (hAsync("div", null,
|
|
6718
|
-
hAsync("p", null, "
|
|
6719
|
-
hAsync("
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
hAsync("
|
|
6724
|
-
|
|
6783
|
+
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."),
|
|
6784
|
+
hAsync("div", { class: "my-8" },
|
|
6785
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })),
|
|
6786
|
+
hAsync("div", { class: "my-8" },
|
|
6787
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
6788
|
+
hAsync("div", { class: "my-8" },
|
|
6789
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
|
|
6725
6790
|
|
|
6726
6791
|
const EdsDocsReact = () => (hAsync("div", null,
|
|
6727
6792
|
hAsync("h2", null, "React Wrappers"),
|
|
6728
|
-
hAsync("p", null, "Learn how to use our components in a React Application."),
|
|
6729
|
-
"
|
|
6730
|
-
|
|
6793
|
+
hAsync("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
|
|
6794
|
+
hAsync("div", { class: "my-8" },
|
|
6795
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
6731
6796
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
6732
|
-
hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n
|
|
6797
|
+
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" }))));
|
|
6733
6798
|
|
|
6734
6799
|
const EdsDocsVue = () => (hAsync("div", null,
|
|
6735
6800
|
hAsync("h2", null, "Vue Wrappers"),
|
|
6736
6801
|
hAsync("p", null, "Learn how to use our components in a Vue Application."),
|
|
6802
|
+
hAsync("p", null, "Simply install the latest version of our NPM package."),
|
|
6737
6803
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
6738
|
-
hAsync("p", null, "
|
|
6804
|
+
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."),
|
|
6739
6805
|
hAsync("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }),
|
|
6806
|
+
hAsync("h2", null,
|
|
6807
|
+
"Passing Properties to Custom Elements Using the ",
|
|
6808
|
+
hAsync("b", null, ".prop"),
|
|
6809
|
+
" Modifier in Vue Wrappers"),
|
|
6810
|
+
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."),
|
|
6811
|
+
hAsync("h3", null,
|
|
6812
|
+
"How to Use the ",
|
|
6813
|
+
hAsync("b", null, ".prop"),
|
|
6814
|
+
" Modifier"),
|
|
6815
|
+
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:"),
|
|
6816
|
+
hAsync("div", { class: "mt-8" },
|
|
6817
|
+
hAsync("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })),
|
|
6818
|
+
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" }),
|
|
6819
|
+
hAsync("div", { class: "mt-8" },
|
|
6820
|
+
hAsync("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })),
|
|
6821
|
+
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" }),
|
|
6822
|
+
hAsync("p", null,
|
|
6823
|
+
"Using the ",
|
|
6824
|
+
hAsync("b", null, ".prop"),
|
|
6825
|
+
" 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."),
|
|
6740
6826
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
6741
|
-
hAsync("eds-code-block", { code: '\n<template>\n <
|
|
6827
|
+
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" }))));
|
|
6742
6828
|
|
|
6743
6829
|
const EdsDocsAngular = () => (hAsync("div", null,
|
|
6744
6830
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -6749,7 +6835,7 @@ const EdsDocsAngular = () => (hAsync("div", null,
|
|
|
6749
6835
|
hAsync("p", null, "Angular Custom Elements Schema"),
|
|
6750
6836
|
hAsync("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
|
|
6751
6837
|
hAsync("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" },
|
|
6752
|
-
hAsync("eds-code-block", { code: '\n<div class="container">\n <
|
|
6838
|
+
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" }))));
|
|
6753
6839
|
|
|
6754
6840
|
/**
|
|
6755
6841
|
* @internal
|
|
@@ -6766,19 +6852,17 @@ class EdsComponentsSection {
|
|
|
6766
6852
|
case 1:
|
|
6767
6853
|
return hAsync(EdsDocsInstallation, null);
|
|
6768
6854
|
case 2:
|
|
6769
|
-
return hAsync(EdsDocsUsage, null);
|
|
6770
|
-
case 3:
|
|
6771
6855
|
return hAsync(EdsDocsReact, null);
|
|
6772
|
-
case
|
|
6856
|
+
case 3:
|
|
6773
6857
|
return hAsync(EdsDocsVue, null);
|
|
6774
|
-
case
|
|
6858
|
+
case 4:
|
|
6775
6859
|
return hAsync(EdsDocsAngular, null);
|
|
6776
6860
|
default:
|
|
6777
6861
|
return hAsync("p", null, "Content not available.");
|
|
6778
6862
|
}
|
|
6779
6863
|
}
|
|
6780
6864
|
render() {
|
|
6781
|
-
return hAsync("div", { key: '
|
|
6865
|
+
return hAsync("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
|
|
6782
6866
|
}
|
|
6783
6867
|
static get cmpMeta() { return {
|
|
6784
6868
|
"$flags$": 0,
|
|
@@ -6819,7 +6903,7 @@ class EdsDocsContent {
|
|
|
6819
6903
|
}
|
|
6820
6904
|
}
|
|
6821
6905
|
render() {
|
|
6822
|
-
return hAsync("div", { key: '
|
|
6906
|
+
return hAsync("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
|
|
6823
6907
|
}
|
|
6824
6908
|
static get cmpMeta() { return {
|
|
6825
6909
|
"$flags$": 0,
|
|
@@ -6852,7 +6936,7 @@ class EdsDocsPalettes {
|
|
|
6852
6936
|
}
|
|
6853
6937
|
}
|
|
6854
6938
|
render() {
|
|
6855
|
-
return hAsync("div", { key: '
|
|
6939
|
+
return hAsync("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
|
|
6856
6940
|
}
|
|
6857
6941
|
static get cmpMeta() { return {
|
|
6858
6942
|
"$flags$": 0,
|
|
@@ -6890,6 +6974,7 @@ class EdsDropdown {
|
|
|
6890
6974
|
* Toggles the visibility of the dropdown and manages focus.
|
|
6891
6975
|
*/
|
|
6892
6976
|
this.handleClick = () => {
|
|
6977
|
+
var _a;
|
|
6893
6978
|
this.isOpen = !this.isOpen;
|
|
6894
6979
|
if (this.isOpen) {
|
|
6895
6980
|
this.focusIndex = 0;
|
|
@@ -6898,6 +6983,13 @@ class EdsDropdown {
|
|
|
6898
6983
|
else {
|
|
6899
6984
|
this.closeDropdown();
|
|
6900
6985
|
}
|
|
6986
|
+
sendAnalytics({
|
|
6987
|
+
category: 'ui-component',
|
|
6988
|
+
parentContext: null,
|
|
6989
|
+
tag: this.host.tagName.toLowerCase(),
|
|
6990
|
+
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
6991
|
+
action: this.isOpen ? 'expanded' : 'collapsed'
|
|
6992
|
+
});
|
|
6901
6993
|
};
|
|
6902
6994
|
this.icon = 'chevron-down';
|
|
6903
6995
|
this.label = undefined;
|
|
@@ -6964,39 +7056,20 @@ class EdsDropdown {
|
|
|
6964
7056
|
componentDidLoad() {
|
|
6965
7057
|
var _a;
|
|
6966
7058
|
this.focusableItems = Array.from(((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button')) || []);
|
|
6967
|
-
const btns = this.host.shadowRoot.querySelectorAll('eds-button');
|
|
6968
|
-
btns.forEach((btn) => {
|
|
6969
|
-
this.emitContext(btn);
|
|
6970
|
-
});
|
|
6971
|
-
}
|
|
6972
|
-
/**
|
|
6973
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
6974
|
-
* Provides context information about the dropdown component.
|
|
6975
|
-
*
|
|
6976
|
-
* @param linkElement - The button element to which the event will be dispatched.
|
|
6977
|
-
*/
|
|
6978
|
-
emitContext(linkElement) {
|
|
6979
|
-
const event = new CustomEvent('parentContext', {
|
|
6980
|
-
detail: {
|
|
6981
|
-
componentName: this.host.tagName.toLowerCase(),
|
|
6982
|
-
identifier: null
|
|
6983
|
-
}
|
|
6984
|
-
});
|
|
6985
|
-
linkElement.dispatchEvent(event);
|
|
6986
7059
|
}
|
|
6987
7060
|
/**
|
|
6988
7061
|
* Renders the dropdown component and displays its content when open.
|
|
6989
7062
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
6990
7063
|
*/
|
|
6991
7064
|
render() {
|
|
6992
|
-
return (hAsync("div", { key: '
|
|
7065
|
+
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: {
|
|
6993
7066
|
'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,
|
|
6994
7067
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
6995
7068
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
6996
7069
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
6997
7070
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
6998
7071
|
'rounded-lg': this.rounded
|
|
6999
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: '
|
|
7072
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, hAsync("slot", { key: 'c514c5dca893708fd1660a61cfeb1607229bbff5' }))));
|
|
7000
7073
|
}
|
|
7001
7074
|
get host() { return getElement(this); }
|
|
7002
7075
|
static get style() { return EdsDropdownStyle0; }
|
|
@@ -7073,7 +7146,7 @@ class EdsFooter {
|
|
|
7073
7146
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7074
7147
|
*/
|
|
7075
7148
|
render() {
|
|
7076
|
-
return (hAsync("footer", { key: '
|
|
7149
|
+
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)))));
|
|
7077
7150
|
}
|
|
7078
7151
|
static get style() { return EdsFooterStyle0; }
|
|
7079
7152
|
static get cmpMeta() { return {
|
|
@@ -7254,7 +7327,6 @@ class EdsForm {
|
|
|
7254
7327
|
this.formSubmitting.emit(this.isSubmitting);
|
|
7255
7328
|
}
|
|
7256
7329
|
};
|
|
7257
|
-
this.smallAlert = false;
|
|
7258
7330
|
this.setFormUrl = true;
|
|
7259
7331
|
this.submitBtn = true;
|
|
7260
7332
|
this.submitBtnLabel = 'Submit';
|
|
@@ -7263,7 +7335,7 @@ class EdsForm {
|
|
|
7263
7335
|
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.';
|
|
7264
7336
|
this.endpoint = undefined;
|
|
7265
7337
|
this.name = 'form';
|
|
7266
|
-
this.fields =
|
|
7338
|
+
this.fields = [];
|
|
7267
7339
|
this.values = {};
|
|
7268
7340
|
this.coupleAuth = false;
|
|
7269
7341
|
this.formSubmitted = false;
|
|
@@ -7273,6 +7345,7 @@ class EdsForm {
|
|
|
7273
7345
|
this.alertMessage = null;
|
|
7274
7346
|
this.isAuthenticated = false;
|
|
7275
7347
|
this.authUser = undefined;
|
|
7348
|
+
this.parsedFields = [];
|
|
7276
7349
|
}
|
|
7277
7350
|
onAuthStatusChanged(event) {
|
|
7278
7351
|
var _a;
|
|
@@ -7280,6 +7353,7 @@ class EdsForm {
|
|
|
7280
7353
|
this.authUser = event.detail.user;
|
|
7281
7354
|
}
|
|
7282
7355
|
componentDidLoad() {
|
|
7356
|
+
this.parseFields(this.fields);
|
|
7283
7357
|
// Emit context for each eds-link element after the component is fully loaded
|
|
7284
7358
|
const links = this.el.querySelectorAll('eds-button');
|
|
7285
7359
|
links.forEach((link) => {
|
|
@@ -7352,7 +7426,7 @@ class EdsForm {
|
|
|
7352
7426
|
validateForm() {
|
|
7353
7427
|
this.errors = {};
|
|
7354
7428
|
this.hasError = false;
|
|
7355
|
-
this.
|
|
7429
|
+
this.parsedFields.forEach((field) => {
|
|
7356
7430
|
if (field.type !== 'hidden') {
|
|
7357
7431
|
if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
|
|
7358
7432
|
// Single checkbox validation
|
|
@@ -7434,27 +7508,48 @@ class EdsForm {
|
|
|
7434
7508
|
});
|
|
7435
7509
|
return formData;
|
|
7436
7510
|
}
|
|
7437
|
-
|
|
7438
|
-
|
|
7511
|
+
parseFields(newValue) {
|
|
7512
|
+
try {
|
|
7513
|
+
if (typeof newValue === 'string') {
|
|
7514
|
+
this.parsedFields = JSON.parse(newValue);
|
|
7515
|
+
}
|
|
7516
|
+
else if (Array.isArray(newValue)) {
|
|
7517
|
+
this.parsedFields = newValue;
|
|
7518
|
+
}
|
|
7519
|
+
else if (newValue && typeof newValue === 'object') {
|
|
7520
|
+
// In case a single object is passed, wrap it in an array.
|
|
7521
|
+
this.parsedFields = newValue;
|
|
7522
|
+
}
|
|
7523
|
+
else {
|
|
7524
|
+
this.parsedFields = [];
|
|
7525
|
+
}
|
|
7526
|
+
}
|
|
7527
|
+
catch (error) {
|
|
7528
|
+
// eslint-disable-next-line
|
|
7529
|
+
console.error('Error parsing fields prop:', error);
|
|
7530
|
+
this.parsedFields = [];
|
|
7531
|
+
}
|
|
7439
7532
|
}
|
|
7440
7533
|
render() {
|
|
7441
|
-
const hiddenFields = this.
|
|
7442
|
-
const otherFields = this.
|
|
7443
|
-
return (hAsync("form", { key: '
|
|
7534
|
+
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
7535
|
+
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
7536
|
+
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) => {
|
|
7444
7537
|
var _a, _b;
|
|
7445
7538
|
if (!this.isFieldVisible(field)) {
|
|
7446
7539
|
return null;
|
|
7447
7540
|
}
|
|
7448
7541
|
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 }));
|
|
7449
|
-
})), this.submitBtn && (hAsync("div", { key: '
|
|
7542
|
+
})), 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" })))));
|
|
7450
7543
|
}
|
|
7451
7544
|
get el() { return getElement(this); }
|
|
7545
|
+
static get watchers() { return {
|
|
7546
|
+
"fields": ["parseFields"]
|
|
7547
|
+
}; }
|
|
7452
7548
|
static get style() { return EdsFormStyle0; }
|
|
7453
7549
|
static get cmpMeta() { return {
|
|
7454
7550
|
"$flags$": 4,
|
|
7455
7551
|
"$tagName$": "eds-form",
|
|
7456
7552
|
"$members$": {
|
|
7457
|
-
"smallAlert": [4, "small-alert"],
|
|
7458
7553
|
"setFormUrl": [4, "set-form-url"],
|
|
7459
7554
|
"submitBtn": [4, "submit-btn"],
|
|
7460
7555
|
"submitBtnLabel": [1, "submit-btn-label"],
|
|
@@ -7472,7 +7567,8 @@ class EdsForm {
|
|
|
7472
7567
|
"isSubmitting": [32],
|
|
7473
7568
|
"alertMessage": [32],
|
|
7474
7569
|
"isAuthenticated": [32],
|
|
7475
|
-
"authUser": [32]
|
|
7570
|
+
"authUser": [32],
|
|
7571
|
+
"parsedFields": [32]
|
|
7476
7572
|
},
|
|
7477
7573
|
"$listeners$": [[16, "authStatusChanged", "onAuthStatusChanged"]],
|
|
7478
7574
|
"$lazyBundleId$": "-",
|
|
@@ -7605,7 +7701,8 @@ var EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
|
7605
7701
|
* It provides a responsive, full-window overlay menu with navigation links and additional options.
|
|
7606
7702
|
* This component is suitable for mobile and small screens, where a fullscreen menu enhances user navigation.
|
|
7607
7703
|
*
|
|
7608
|
-
* ## Key Features
|
|
7704
|
+
* ## Key Features
|
|
7705
|
+
*
|
|
7609
7706
|
* - **Links and Menu Links**: Allows configurable primary and secondary navigation links.
|
|
7610
7707
|
* - **Event-Driven Open/Close**: Listens for a `toggleMenu` event to open or close the menu, emitted by the `eds-header` component.
|
|
7611
7708
|
* - **Responsive Behavior**: Automatically closes the menu when the screen width is larger than a specified breakpoint (1024px).
|
|
@@ -7795,6 +7892,10 @@ class EdsHeader {
|
|
|
7795
7892
|
* @returns {any[]} Array of parsed link objects
|
|
7796
7893
|
*/
|
|
7797
7894
|
get parsedLinks() {
|
|
7895
|
+
// If it's already an array, return it immediately.
|
|
7896
|
+
if (Array.isArray(this.links)) {
|
|
7897
|
+
return this.links;
|
|
7898
|
+
}
|
|
7798
7899
|
if (typeof this.links === 'object') {
|
|
7799
7900
|
return this.links;
|
|
7800
7901
|
}
|
|
@@ -7811,8 +7912,8 @@ class EdsHeader {
|
|
|
7811
7912
|
return [];
|
|
7812
7913
|
}
|
|
7813
7914
|
render() {
|
|
7814
|
-
return (hAsync("header", { key: '
|
|
7815
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '
|
|
7915
|
+
return (hAsync("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
|
|
7916
|
+
${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));
|
|
7816
7917
|
}
|
|
7817
7918
|
get hostEl() { return getElement(this); }
|
|
7818
7919
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -10655,6 +10756,24 @@ class EdsInputSearch {
|
|
|
10655
10756
|
}; }
|
|
10656
10757
|
}
|
|
10657
10758
|
|
|
10759
|
+
/**
|
|
10760
|
+
* A custom select input component that supports both static and dynamic options.
|
|
10761
|
+
*
|
|
10762
|
+
* Options can be provided in two formats:
|
|
10763
|
+
* 1. Dynamic fetch configuration:
|
|
10764
|
+
* [
|
|
10765
|
+
* { endpoint: "http://localhost/api/applications", value: "_id", label: "title" }
|
|
10766
|
+
* ]
|
|
10767
|
+
* 2. Static options:
|
|
10768
|
+
* [
|
|
10769
|
+
* { value: "react", label: "React" },
|
|
10770
|
+
* { value: "angular", label: "Angular" },
|
|
10771
|
+
* { value: "vue", label: "Vue.js" },
|
|
10772
|
+
* // etc.
|
|
10773
|
+
* ]
|
|
10774
|
+
*
|
|
10775
|
+
* The component will automatically fetch data if a dynamic configuration is provided.
|
|
10776
|
+
*/
|
|
10658
10777
|
/**
|
|
10659
10778
|
* @internal
|
|
10660
10779
|
*/
|
|
@@ -10662,6 +10781,12 @@ class EdsInputSelect {
|
|
|
10662
10781
|
constructor(hostRef) {
|
|
10663
10782
|
registerInstance(this, hostRef);
|
|
10664
10783
|
this.changeEvent = createEvent(this, "changeEvent", 7);
|
|
10784
|
+
/**
|
|
10785
|
+
* Event handler for the select input's change event.
|
|
10786
|
+
* Emits the selected value.
|
|
10787
|
+
*
|
|
10788
|
+
* @param event The change event from the select input.
|
|
10789
|
+
*/
|
|
10665
10790
|
this.handleChange = (event) => {
|
|
10666
10791
|
const target = event.target;
|
|
10667
10792
|
this.changeEvent.emit(target.value);
|
|
@@ -10674,11 +10799,64 @@ class EdsInputSelect {
|
|
|
10674
10799
|
this.error = false;
|
|
10675
10800
|
this.required = false;
|
|
10676
10801
|
this.options = [];
|
|
10802
|
+
this.labelKey = 'label';
|
|
10803
|
+
this.valueKey = 'value';
|
|
10677
10804
|
this.value = undefined;
|
|
10805
|
+
this.dynamicOptions = [];
|
|
10806
|
+
this.loading = false;
|
|
10807
|
+
this.dynamicValueKey = 'value';
|
|
10808
|
+
this.dynamicLabelKey = 'label';
|
|
10809
|
+
}
|
|
10810
|
+
componentWillLoad() {
|
|
10811
|
+
this.loadOptions();
|
|
10812
|
+
}
|
|
10813
|
+
/**
|
|
10814
|
+
* Watches for changes in the `options` prop and loads the options accordingly.
|
|
10815
|
+
*
|
|
10816
|
+
* If the first object in the options array contains an "endpoint" key,
|
|
10817
|
+
* the component will fetch options from the specified endpoint using the configured keys.
|
|
10818
|
+
* Otherwise, it will treat the options as static.
|
|
10819
|
+
*
|
|
10820
|
+
* @async
|
|
10821
|
+
*/
|
|
10822
|
+
async loadOptions() {
|
|
10823
|
+
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
10824
|
+
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
10825
|
+
const config = this.options[0];
|
|
10826
|
+
const endpoint = config.endpoint;
|
|
10827
|
+
this.dynamicValueKey = config.value || 'value';
|
|
10828
|
+
this.dynamicLabelKey = config.label || 'label';
|
|
10829
|
+
this.loading = true;
|
|
10830
|
+
try {
|
|
10831
|
+
const response = await fetch(endpoint);
|
|
10832
|
+
if (!response.ok) {
|
|
10833
|
+
toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
|
|
10834
|
+
}
|
|
10835
|
+
const data = await response.json();
|
|
10836
|
+
// Assume the API returns an array of objects.
|
|
10837
|
+
this.dynamicOptions = data;
|
|
10838
|
+
}
|
|
10839
|
+
catch (error) {
|
|
10840
|
+
//console.error('Error fetching dynamic options:', error);
|
|
10841
|
+
toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
|
|
10842
|
+
}
|
|
10843
|
+
finally {
|
|
10844
|
+
this.loading = false;
|
|
10845
|
+
}
|
|
10846
|
+
}
|
|
10847
|
+
else {
|
|
10848
|
+
// No dynamic configuration found, assume static options.
|
|
10849
|
+
this.dynamicOptions = this.options;
|
|
10850
|
+
this.dynamicValueKey = this.valueKey;
|
|
10851
|
+
this.dynamicLabelKey = this.labelKey;
|
|
10852
|
+
}
|
|
10678
10853
|
}
|
|
10679
10854
|
render() {
|
|
10680
|
-
return (hAsync("div", { key: '
|
|
10855
|
+
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" }))));
|
|
10681
10856
|
}
|
|
10857
|
+
static get watchers() { return {
|
|
10858
|
+
"options": ["loadOptions"]
|
|
10859
|
+
}; }
|
|
10682
10860
|
static get cmpMeta() { return {
|
|
10683
10861
|
"$flags$": 0,
|
|
10684
10862
|
"$tagName$": "eds-input-select",
|
|
@@ -10691,7 +10869,13 @@ class EdsInputSelect {
|
|
|
10691
10869
|
"error": [4],
|
|
10692
10870
|
"required": [4],
|
|
10693
10871
|
"options": [16],
|
|
10694
|
-
"
|
|
10872
|
+
"labelKey": [1, "label-key"],
|
|
10873
|
+
"valueKey": [1, "value-key"],
|
|
10874
|
+
"value": [8],
|
|
10875
|
+
"dynamicOptions": [32],
|
|
10876
|
+
"loading": [32],
|
|
10877
|
+
"dynamicValueKey": [32],
|
|
10878
|
+
"dynamicLabelKey": [32]
|
|
10695
10879
|
},
|
|
10696
10880
|
"$listeners$": undefined,
|
|
10697
10881
|
"$lazyBundleId$": "-",
|
|
@@ -10851,12 +11035,11 @@ class EdsLink {
|
|
|
10851
11035
|
this.hideLabelOnSmallScreen = false;
|
|
10852
11036
|
this.extraClass = undefined;
|
|
10853
11037
|
}
|
|
10854
|
-
|
|
11038
|
+
handleParentContext(event) {
|
|
10855
11039
|
if (event.target !== this.el) {
|
|
10856
11040
|
// Ignore the event if it's not targeted at this specific instance
|
|
10857
11041
|
return;
|
|
10858
11042
|
}
|
|
10859
|
-
//console.log(event.detail);
|
|
10860
11043
|
this.parentContext = event.detail;
|
|
10861
11044
|
event.stopPropagation();
|
|
10862
11045
|
}
|
|
@@ -10907,7 +11090,7 @@ class EdsLink {
|
|
|
10907
11090
|
const labelClasses = this.hideLabelOnSmallScreen
|
|
10908
11091
|
? 'hidden lg:flex' // Tailwind example: hidden on small screens, visible on larger
|
|
10909
11092
|
: '';
|
|
10910
|
-
return (hAsync(ComponentType, { key: '
|
|
11093
|
+
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())));
|
|
10911
11094
|
}
|
|
10912
11095
|
get el() { return getElement(this); }
|
|
10913
11096
|
static get style() { return EdsLinkStyle0; }
|
|
@@ -10930,7 +11113,7 @@ class EdsLink {
|
|
|
10930
11113
|
"hideLabelOnSmallScreen": [4, "hide-label-on-small-screen"],
|
|
10931
11114
|
"extraClass": [1, "extra-class"]
|
|
10932
11115
|
},
|
|
10933
|
-
"$listeners$": [[0, "parentContext", "
|
|
11116
|
+
"$listeners$": [[0, "parentContext", "handleParentContext"]],
|
|
10934
11117
|
"$lazyBundleId$": "-",
|
|
10935
11118
|
"$attrsToReflect$": []
|
|
10936
11119
|
}; }
|
|
@@ -12896,10 +13079,10 @@ class EdsLogin {
|
|
|
12896
13079
|
return this.authenticated ? 'Logout' : 'Login';
|
|
12897
13080
|
}
|
|
12898
13081
|
render() {
|
|
12899
|
-
return (hAsync("
|
|
13082
|
+
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) }));
|
|
12900
13083
|
}
|
|
12901
13084
|
static get cmpMeta() { return {
|
|
12902
|
-
"$flags$":
|
|
13085
|
+
"$flags$": 9,
|
|
12903
13086
|
"$tagName$": "eds-login",
|
|
12904
13087
|
"$members$": {
|
|
12905
13088
|
"keycloakUrl": [1, "keycloak-url"],
|
|
@@ -13010,6 +13193,39 @@ class EdsLogo {
|
|
|
13010
13193
|
}; }
|
|
13011
13194
|
}
|
|
13012
13195
|
|
|
13196
|
+
/**
|
|
13197
|
+
* @internal
|
|
13198
|
+
*/
|
|
13199
|
+
class EdsLogoVariations {
|
|
13200
|
+
constructor(hostRef) {
|
|
13201
|
+
registerInstance(this, hostRef);
|
|
13202
|
+
this.tabIndex = undefined;
|
|
13203
|
+
}
|
|
13204
|
+
renderContent() {
|
|
13205
|
+
switch (this.tabIndex) {
|
|
13206
|
+
case 0:
|
|
13207
|
+
return hAsync("logo-variations-horizontal", null);
|
|
13208
|
+
case 1:
|
|
13209
|
+
return hAsync("logo-variations-vertical", null);
|
|
13210
|
+
default:
|
|
13211
|
+
return hAsync("p", null, "Content not available.");
|
|
13212
|
+
}
|
|
13213
|
+
}
|
|
13214
|
+
render() {
|
|
13215
|
+
return hAsync("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
13216
|
+
}
|
|
13217
|
+
static get cmpMeta() { return {
|
|
13218
|
+
"$flags$": 0,
|
|
13219
|
+
"$tagName$": "eds-logo-variations",
|
|
13220
|
+
"$members$": {
|
|
13221
|
+
"tabIndex": [2, "tab-index"]
|
|
13222
|
+
},
|
|
13223
|
+
"$listeners$": undefined,
|
|
13224
|
+
"$lazyBundleId$": "-",
|
|
13225
|
+
"$attrsToReflect$": []
|
|
13226
|
+
}; }
|
|
13227
|
+
}
|
|
13228
|
+
|
|
13013
13229
|
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))}}";
|
|
13014
13230
|
var EdsMatomoNoticeStyle0 = edsMatomoNoticeCss;
|
|
13015
13231
|
|
|
@@ -13126,7 +13342,7 @@ class EdsMatomoNotice {
|
|
|
13126
13342
|
}; }
|
|
13127
13343
|
}
|
|
13128
13344
|
|
|
13129
|
-
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}";
|
|
13345
|
+
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}";
|
|
13130
13346
|
var EdsModalStyle0 = edsModalCss;
|
|
13131
13347
|
|
|
13132
13348
|
//import { sendAnalytics } from '@ebrains/utils';
|
|
@@ -13147,33 +13363,59 @@ class EdsModal {
|
|
|
13147
13363
|
this.title = '';
|
|
13148
13364
|
this.truncate = true;
|
|
13149
13365
|
this.truncateLines = '1';
|
|
13366
|
+
this.position = 'middle';
|
|
13150
13367
|
}
|
|
13151
13368
|
getTruncateClass() {
|
|
13152
13369
|
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : '';
|
|
13153
13370
|
}
|
|
13371
|
+
/**
|
|
13372
|
+
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
13373
|
+
*
|
|
13374
|
+
* @private
|
|
13375
|
+
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
13376
|
+
*/
|
|
13377
|
+
getModalPositionClasses() {
|
|
13378
|
+
switch (this.position) {
|
|
13379
|
+
case 'top':
|
|
13380
|
+
return 'left-1/2 top-20 -translate-x-1/2';
|
|
13381
|
+
case 'bottom':
|
|
13382
|
+
return 'left-1/2 bottom-20 -translate-x-1/2';
|
|
13383
|
+
case 'left':
|
|
13384
|
+
return 'left-20 top-1/2 -translate-y-1/2';
|
|
13385
|
+
case 'right':
|
|
13386
|
+
return 'right-20 top-1/2 -translate-y-1/2';
|
|
13387
|
+
case 'middle':
|
|
13388
|
+
default:
|
|
13389
|
+
return 'left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2';
|
|
13390
|
+
}
|
|
13391
|
+
}
|
|
13154
13392
|
/**
|
|
13155
13393
|
* Opens the modal.
|
|
13156
13394
|
*/
|
|
13157
13395
|
async open() {
|
|
13396
|
+
var _a;
|
|
13158
13397
|
this.isOpen = true;
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13398
|
+
sendAnalytics({
|
|
13399
|
+
category: 'ui-component',
|
|
13400
|
+
parentContext: null,
|
|
13401
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13402
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
13403
|
+
action: 'opened'
|
|
13404
|
+
});
|
|
13165
13405
|
}
|
|
13166
13406
|
/**
|
|
13167
13407
|
* Closes the modal.
|
|
13168
13408
|
*/
|
|
13169
13409
|
async close() {
|
|
13410
|
+
var _a;
|
|
13170
13411
|
this.isOpen = false;
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13412
|
+
sendAnalytics({
|
|
13413
|
+
category: 'ui-component',
|
|
13414
|
+
parentContext: null,
|
|
13415
|
+
tag: this.el.tagName.toLowerCase(),
|
|
13416
|
+
name: ((_a = this.title) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
13417
|
+
action: 'closed'
|
|
13418
|
+
});
|
|
13177
13419
|
}
|
|
13178
13420
|
/**
|
|
13179
13421
|
* Toggles the modal open or closed.
|
|
@@ -13187,30 +13429,27 @@ class EdsModal {
|
|
|
13187
13429
|
*/
|
|
13188
13430
|
componentDidLoad() {
|
|
13189
13431
|
// Emit context for each eds-link element after the component is fully loaded
|
|
13190
|
-
const
|
|
13191
|
-
|
|
13192
|
-
this.emitContext(btn);
|
|
13193
|
-
});
|
|
13432
|
+
//const btn = this.el.shadowRoot.querySelector('eds-button');
|
|
13433
|
+
//this.emitContext(btn);
|
|
13194
13434
|
}
|
|
13195
13435
|
/**
|
|
13196
13436
|
* Emits a custom event called `parentContext` for a given button element.
|
|
13197
13437
|
* This event provides context information about the eds-modal component.
|
|
13198
|
-
*
|
|
13199
|
-
* @param btnElement - The link element to which the event will be dispatched.
|
|
13200
13438
|
*/
|
|
13201
|
-
emitContext(btnElement) {
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13439
|
+
/*emitContext(btnElement: HTMLElement) {
|
|
13440
|
+
const event = new CustomEvent<ParentContextDetail>('parentContext', {
|
|
13441
|
+
detail: {
|
|
13442
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
13443
|
+
identifier: null
|
|
13444
|
+
}
|
|
13445
|
+
});
|
|
13446
|
+
|
|
13447
|
+
btnElement.dispatchEvent(event);
|
|
13448
|
+
}*/
|
|
13210
13449
|
render() {
|
|
13211
|
-
return (hAsync("div", { key: '
|
|
13450
|
+
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
|
|
13212
13451
|
,
|
|
13213
|
-
onClick: () => this.close() })), hAsync("div", { key: '
|
|
13452
|
+
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' })))));
|
|
13214
13453
|
}
|
|
13215
13454
|
get el() { return getElement(this); }
|
|
13216
13455
|
static get style() { return EdsModalStyle0; }
|
|
@@ -13221,6 +13460,7 @@ class EdsModal {
|
|
|
13221
13460
|
"title": [1],
|
|
13222
13461
|
"truncate": [4],
|
|
13223
13462
|
"truncateLines": [1, "truncate-lines"],
|
|
13463
|
+
"position": [1],
|
|
13224
13464
|
"isOpen": [32],
|
|
13225
13465
|
"open": [64],
|
|
13226
13466
|
"close": [64],
|
|
@@ -13323,14 +13563,18 @@ class EdsPagination {
|
|
|
13323
13563
|
componentDidLoad() {
|
|
13324
13564
|
// Emit context for each eds-link element after the component is fully loaded
|
|
13325
13565
|
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
13326
|
-
|
|
13327
|
-
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13331
|
-
|
|
13332
|
-
|
|
13333
|
-
|
|
13566
|
+
links.forEach((lnk) => {
|
|
13567
|
+
this.emitContext(lnk);
|
|
13568
|
+
});
|
|
13569
|
+
/*if (links.length > 0) {
|
|
13570
|
+
// Emit context for the first link
|
|
13571
|
+
this.emitContext(links[0]);
|
|
13572
|
+
|
|
13573
|
+
// Emit context for the last link, if it's different from the first
|
|
13574
|
+
if (links.length > 1) {
|
|
13575
|
+
this.emitContext(links[links.length - 1]);
|
|
13576
|
+
}
|
|
13577
|
+
}*/
|
|
13334
13578
|
}
|
|
13335
13579
|
/**
|
|
13336
13580
|
* Emits a custom event called `parentContext` for a given link element.
|
|
@@ -13460,7 +13704,7 @@ class EdsPagination {
|
|
|
13460
13704
|
}
|
|
13461
13705
|
}
|
|
13462
13706
|
render() {
|
|
13463
|
-
return (hAsync("div", { key: '
|
|
13707
|
+
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'
|
|
13464
13708
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
13465
13709
|
: this.isFirstPage()
|
|
13466
13710
|
? '#'
|
|
@@ -13567,10 +13811,8 @@ class EdsRating {
|
|
|
13567
13811
|
this.selectedRating = 0;
|
|
13568
13812
|
}
|
|
13569
13813
|
/**
|
|
13570
|
-
* Parses the `
|
|
13571
|
-
* Returns an empty array if parsing fails
|
|
13572
|
-
*
|
|
13573
|
-
* @returns {any[]} Array of parsed link objects
|
|
13814
|
+
* Parses the `textMapping` prop into an array of strings.
|
|
13815
|
+
* Returns an empty array if parsing fails.
|
|
13574
13816
|
*/
|
|
13575
13817
|
get parsedMappings() {
|
|
13576
13818
|
if (typeof this.textMapping === 'object') {
|
|
@@ -13582,7 +13824,7 @@ class EdsRating {
|
|
|
13582
13824
|
}
|
|
13583
13825
|
catch (e) {
|
|
13584
13826
|
// eslint-disable-next-line
|
|
13585
|
-
console.error('Error parsing
|
|
13827
|
+
console.error('Error parsing textMapping prop:', e);
|
|
13586
13828
|
return [];
|
|
13587
13829
|
}
|
|
13588
13830
|
}
|
|
@@ -13597,10 +13839,10 @@ class EdsRating {
|
|
|
13597
13839
|
this.ratingChange.emit(rating);
|
|
13598
13840
|
}
|
|
13599
13841
|
render() {
|
|
13600
|
-
return (hAsync("div", { key: '
|
|
13842
|
+
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: {
|
|
13601
13843
|
star: true,
|
|
13602
13844
|
filled: index < this.selectedRating
|
|
13603
|
-
}, onClick: () => this.handleClick(index + 1) }, "\u2605")))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && (hAsync("span", { key: '
|
|
13845
|
+
}, 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]))));
|
|
13604
13846
|
}
|
|
13605
13847
|
static get style() { return EdsRatingStyle0; }
|
|
13606
13848
|
static get cmpMeta() { return {
|
|
@@ -13609,7 +13851,7 @@ class EdsRating {
|
|
|
13609
13851
|
"$members$": {
|
|
13610
13852
|
"stars": [2],
|
|
13611
13853
|
"label": [1],
|
|
13612
|
-
"textMapping": [
|
|
13854
|
+
"textMapping": [1, "text-mapping"],
|
|
13613
13855
|
"selectedRating": [32]
|
|
13614
13856
|
},
|
|
13615
13857
|
"$listeners$": undefined,
|
|
@@ -13715,14 +13957,14 @@ class EdsSectionHeading {
|
|
|
13715
13957
|
}; }
|
|
13716
13958
|
}
|
|
13717
13959
|
|
|
13718
|
-
const
|
|
13719
|
-
var EdsSocialNetworksStyle0 =
|
|
13960
|
+
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}";
|
|
13961
|
+
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13720
13962
|
|
|
13721
13963
|
/**
|
|
13722
13964
|
* Component representing a list of social network links for EBRAINS.
|
|
13723
13965
|
* Each link directs users to EBRAINS' profiles on various social networks.
|
|
13724
13966
|
*/
|
|
13725
|
-
class
|
|
13967
|
+
class EdsSocialNetworks {
|
|
13726
13968
|
constructor(hostRef) {
|
|
13727
13969
|
registerInstance(this, hostRef);
|
|
13728
13970
|
/**
|
|
@@ -13773,7 +14015,7 @@ class EdsSocialNetwork {
|
|
|
13773
14015
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
13774
14016
|
*/
|
|
13775
14017
|
render() {
|
|
13776
|
-
return (hAsync("div", { key: '
|
|
14018
|
+
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" })))))));
|
|
13777
14019
|
}
|
|
13778
14020
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13779
14021
|
static get cmpMeta() { return {
|
|
@@ -13804,6 +14046,11 @@ class EdsSvgRepository {
|
|
|
13804
14046
|
icon: svgContent // Pass SVG content as innerHTML
|
|
13805
14047
|
}));
|
|
13806
14048
|
}
|
|
14049
|
+
get hostWidth() {
|
|
14050
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
14051
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
14052
|
+
return containerWidth;
|
|
14053
|
+
}
|
|
13807
14054
|
render() {
|
|
13808
14055
|
const svgData = this.getSvgData();
|
|
13809
14056
|
// Define table configuration
|
|
@@ -13811,8 +14058,9 @@ class EdsSvgRepository {
|
|
|
13811
14058
|
icon: { format: 'svg' },
|
|
13812
14059
|
name: { format: 'bold' }
|
|
13813
14060
|
};
|
|
13814
|
-
return (hAsync("eds-table", { key: '
|
|
14061
|
+
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 }));
|
|
13815
14062
|
}
|
|
14063
|
+
get hostEl() { return getElement(this); }
|
|
13816
14064
|
static get cmpMeta() { return {
|
|
13817
14065
|
"$flags$": 9,
|
|
13818
14066
|
"$tagName$": "eds-svg-repository",
|
|
@@ -13871,7 +14119,7 @@ class EdsTab {
|
|
|
13871
14119
|
}; }
|
|
13872
14120
|
}
|
|
13873
14121
|
|
|
13874
|
-
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}";
|
|
14122
|
+
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}";
|
|
13875
14123
|
var EdsTableStyle0 = edsTableCss;
|
|
13876
14124
|
|
|
13877
14125
|
/**
|
|
@@ -13888,13 +14136,14 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13888
14136
|
class EdsTable {
|
|
13889
14137
|
constructor(hostRef) {
|
|
13890
14138
|
registerInstance(this, hostRef);
|
|
13891
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
13892
14139
|
this.data = null;
|
|
13893
14140
|
this.endpoint = null;
|
|
13894
14141
|
this.config = {};
|
|
13895
14142
|
this.rowsPerPage = 10;
|
|
13896
14143
|
this.paginationEnabled = true;
|
|
13897
14144
|
this.searchEnabled = false;
|
|
14145
|
+
this.hostWidth = undefined;
|
|
14146
|
+
this.columnSize = 'default';
|
|
13898
14147
|
this.tableData = [];
|
|
13899
14148
|
this.columns = [];
|
|
13900
14149
|
this.currentPage = 1;
|
|
@@ -13973,10 +14222,24 @@ class EdsTable {
|
|
|
13973
14222
|
}
|
|
13974
14223
|
handlePageChange(newPage) {
|
|
13975
14224
|
this.currentPage = newPage;
|
|
14225
|
+
sendAnalytics({
|
|
14226
|
+
category: 'ui-component',
|
|
14227
|
+
parentContext: null,
|
|
14228
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
14229
|
+
name: `${newPage}` || '',
|
|
14230
|
+
action: 'page'
|
|
14231
|
+
});
|
|
13976
14232
|
}
|
|
13977
14233
|
handleSearch(event) {
|
|
13978
14234
|
this.searchQuery = event.target.value;
|
|
13979
14235
|
this.currentPage = 1;
|
|
14236
|
+
/*sendAnalytics({
|
|
14237
|
+
category: 'ui-component',
|
|
14238
|
+
parentContext: null,
|
|
14239
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
14240
|
+
name: `${this.searchQuery}` || '',
|
|
14241
|
+
action: 'page'
|
|
14242
|
+
});*/
|
|
13980
14243
|
}
|
|
13981
14244
|
renderCell(value, column) {
|
|
13982
14245
|
var _a;
|
|
@@ -13992,27 +14255,44 @@ class EdsTable {
|
|
|
13992
14255
|
getVisibleColumnsCount() {
|
|
13993
14256
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
13994
14257
|
}
|
|
14258
|
+
divisionFactor() {
|
|
14259
|
+
let divisionFactor = 1;
|
|
14260
|
+
if (this.columnSize === 'medium') {
|
|
14261
|
+
divisionFactor = 2;
|
|
14262
|
+
}
|
|
14263
|
+
else if (this.columnSize === 'large') {
|
|
14264
|
+
divisionFactor = 4;
|
|
14265
|
+
}
|
|
14266
|
+
return divisionFactor;
|
|
14267
|
+
}
|
|
13995
14268
|
render() {
|
|
14269
|
+
// Get the paginated rows and calculate the last page.
|
|
13996
14270
|
const paginatedRows = this.getPaginatedRows();
|
|
13997
14271
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13998
|
-
//
|
|
13999
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
14000
|
-
// Use the visible column count to calculate the column width
|
|
14272
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
14001
14273
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
14002
|
-
|
|
14003
|
-
|
|
14274
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
14275
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
14276
|
+
? Number(this.hostWidth)
|
|
14277
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
14278
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
14279
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
14280
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
14281
|
+
: 400;
|
|
14282
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14283
|
+
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...",
|
|
14004
14284
|
// @ts-ignore
|
|
14005
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '
|
|
14285
|
+
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) => {
|
|
14006
14286
|
var _a;
|
|
14007
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0
|
|
14008
|
-
}))), hAsync("tbody", { key: '
|
|
14287
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
14288
|
+
}))), hAsync("tbody", { key: 'ce7f87e665c394c5e9f2201ef2658e888ea07948' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14009
14289
|
var _a;
|
|
14010
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0
|
|
14011
|
-
}))))))), hAsync("div", { key: '
|
|
14290
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
|
|
14291
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0', class: "mt-20" }, hAsync("eds-pagination", { key: '5192f3f4b2ee93d5864d1afed3341a122c826d97', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14012
14292
|
}
|
|
14013
14293
|
get hostEl() { return getElement(this); }
|
|
14014
14294
|
static get watchers() { return {
|
|
14015
|
-
"data": ["handleDataChange"],
|
|
14295
|
+
"data": ["handleDataChange", "parseData"],
|
|
14016
14296
|
"config": ["handleConfigChange"]
|
|
14017
14297
|
}; }
|
|
14018
14298
|
static get style() { return EdsTableStyle0; }
|
|
@@ -14026,6 +14306,8 @@ class EdsTable {
|
|
|
14026
14306
|
"rowsPerPage": [2, "rows-per-page"],
|
|
14027
14307
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
14028
14308
|
"searchEnabled": [4, "search-enabled"],
|
|
14309
|
+
"hostWidth": [1, "host-width"],
|
|
14310
|
+
"columnSize": [1, "column-size"],
|
|
14029
14311
|
"tableData": [32],
|
|
14030
14312
|
"columns": [32],
|
|
14031
14313
|
"currentPage": [32],
|
|
@@ -14094,12 +14376,33 @@ class EdsTabs {
|
|
|
14094
14376
|
this.setActiveIndex();
|
|
14095
14377
|
this.tabChange.emit({ tabId: this.id, index: 0 });
|
|
14096
14378
|
}
|
|
14379
|
+
/**
|
|
14380
|
+
* Parses the `links` prop into an array of link objects.
|
|
14381
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14382
|
+
*
|
|
14383
|
+
* @returns {any[]} Array of parsed link objects
|
|
14384
|
+
*/
|
|
14385
|
+
/**
|
|
14386
|
+
* Parses the `links` prop into an array of link objects.
|
|
14387
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14388
|
+
*
|
|
14389
|
+
* @returns {any[]} Array of parsed link objects
|
|
14390
|
+
*/
|
|
14097
14391
|
parseTabs() {
|
|
14098
|
-
|
|
14099
|
-
this.parsedTabs =
|
|
14392
|
+
if (Array.isArray(this.tabs)) {
|
|
14393
|
+
this.parsedTabs = this.tabs;
|
|
14100
14394
|
}
|
|
14101
|
-
|
|
14102
|
-
|
|
14395
|
+
else if (typeof this.tabs === 'string') {
|
|
14396
|
+
try {
|
|
14397
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
14398
|
+
}
|
|
14399
|
+
catch (e) {
|
|
14400
|
+
//console.error('Error parsing tabs prop:', e);
|
|
14401
|
+
this.parsedTabs = [];
|
|
14402
|
+
}
|
|
14403
|
+
}
|
|
14404
|
+
else {
|
|
14405
|
+
// If the type is not an array or string, assume an empty array.
|
|
14103
14406
|
this.parsedTabs = [];
|
|
14104
14407
|
}
|
|
14105
14408
|
}
|
|
@@ -14149,7 +14452,7 @@ class EdsTabs {
|
|
|
14149
14452
|
});
|
|
14150
14453
|
}
|
|
14151
14454
|
render() {
|
|
14152
|
-
return (hAsync("div", { key: '
|
|
14455
|
+
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) => {
|
|
14153
14456
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14154
14457
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14155
14458
|
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) })));
|
|
@@ -14291,11 +14594,11 @@ class EdsTabsContent {
|
|
|
14291
14594
|
});
|
|
14292
14595
|
}
|
|
14293
14596
|
render() {
|
|
14294
|
-
return (hAsync("div", { key: '
|
|
14597
|
+
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) => {
|
|
14295
14598
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14296
14599
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14297
14600
|
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) })));
|
|
14298
|
-
})), hAsync("slot", { key: '
|
|
14601
|
+
})), hAsync("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
|
|
14299
14602
|
}
|
|
14300
14603
|
get el() { return getElement(this); }
|
|
14301
14604
|
static get watchers() { return {
|
|
@@ -14374,27 +14677,38 @@ class EdsTag {
|
|
|
14374
14677
|
}; }
|
|
14375
14678
|
}
|
|
14376
14679
|
|
|
14377
|
-
/**
|
|
14378
|
-
* @internal
|
|
14379
|
-
*/
|
|
14380
14680
|
class EdsTimeline {
|
|
14381
14681
|
constructor(hostRef) {
|
|
14382
14682
|
registerInstance(this, hostRef);
|
|
14683
|
+
this.events = undefined;
|
|
14383
14684
|
this.selectedEvent = null;
|
|
14384
14685
|
this.parsedEvents = [];
|
|
14385
|
-
this.events = undefined;
|
|
14386
14686
|
}
|
|
14387
14687
|
parseEvents(newValue) {
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14688
|
+
let parsed;
|
|
14689
|
+
// If events is a string, try to parse it
|
|
14690
|
+
if (typeof newValue === 'string') {
|
|
14691
|
+
try {
|
|
14692
|
+
parsed = JSON.parse(newValue);
|
|
14693
|
+
}
|
|
14694
|
+
catch (e) {
|
|
14695
|
+
// eslint-disable-next-line
|
|
14696
|
+
console.error('Error parsing timeline events JSON', e);
|
|
14697
|
+
parsed = [];
|
|
14698
|
+
}
|
|
14394
14699
|
}
|
|
14395
|
-
|
|
14396
|
-
|
|
14700
|
+
// If events is already an array, use it directly
|
|
14701
|
+
else if (Array.isArray(newValue)) {
|
|
14702
|
+
parsed = newValue;
|
|
14397
14703
|
}
|
|
14704
|
+
// Otherwise, default to an empty array
|
|
14705
|
+
else {
|
|
14706
|
+
parsed = [];
|
|
14707
|
+
}
|
|
14708
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
14709
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
14710
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
14711
|
+
: [];
|
|
14398
14712
|
}
|
|
14399
14713
|
componentWillLoad() {
|
|
14400
14714
|
this.parseEvents(this.events);
|
|
@@ -14421,7 +14735,7 @@ class EdsTimeline {
|
|
|
14421
14735
|
}
|
|
14422
14736
|
}
|
|
14423
14737
|
render() {
|
|
14424
|
-
return (hAsync("div", { key: '
|
|
14738
|
+
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
|
|
14425
14739
|
? [{ label: 'completed', style: 'accent' }]
|
|
14426
14740
|
: [{ 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
|
|
14427
14741
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14472,6 +14786,27 @@ class EdsToast {
|
|
|
14472
14786
|
this.duration = 5000;
|
|
14473
14787
|
this.visible = true;
|
|
14474
14788
|
}
|
|
14789
|
+
/**
|
|
14790
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
14791
|
+
* to recalculate height on window resize.
|
|
14792
|
+
*/
|
|
14793
|
+
componentDidLoad() {
|
|
14794
|
+
// Emit context for each eds-button element after the component is fully loaded
|
|
14795
|
+
const btn = this.el.querySelector('eds-button');
|
|
14796
|
+
this.emitContext(btn);
|
|
14797
|
+
}
|
|
14798
|
+
/**
|
|
14799
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
14800
|
+
*/
|
|
14801
|
+
emitContext(linkElement) {
|
|
14802
|
+
const event = new CustomEvent('parentContext', {
|
|
14803
|
+
detail: {
|
|
14804
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
14805
|
+
identifier: null
|
|
14806
|
+
}
|
|
14807
|
+
});
|
|
14808
|
+
linkElement.dispatchEvent(event);
|
|
14809
|
+
}
|
|
14475
14810
|
connectedCallback() {
|
|
14476
14811
|
// Auto-dismiss the toast after the specified duration
|
|
14477
14812
|
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
@@ -14535,7 +14870,7 @@ class EdsToastManager {
|
|
|
14535
14870
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14536
14871
|
}
|
|
14537
14872
|
render() {
|
|
14538
|
-
return (hAsync("div", { key: '
|
|
14873
|
+
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) }))))));
|
|
14539
14874
|
}
|
|
14540
14875
|
get hostElement() { return getElement(this); }
|
|
14541
14876
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14570,9 +14905,17 @@ class EdsTooltip {
|
|
|
14570
14905
|
* Show the tooltip and update its position.
|
|
14571
14906
|
*/
|
|
14572
14907
|
async showTooltip() {
|
|
14908
|
+
var _a;
|
|
14573
14909
|
await this.updateTooltipPosition();
|
|
14574
14910
|
this.isPositioned = true;
|
|
14575
14911
|
this.isVisible = true;
|
|
14912
|
+
sendAnalytics({
|
|
14913
|
+
category: 'ui-component',
|
|
14914
|
+
parentContext: null,
|
|
14915
|
+
tag: this.el.tagName.toLowerCase(),
|
|
14916
|
+
name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
14917
|
+
action: 'hover'
|
|
14918
|
+
});
|
|
14576
14919
|
}
|
|
14577
14920
|
/**
|
|
14578
14921
|
* Hide the tooltip.
|
|
@@ -14637,7 +14980,7 @@ class EdsTooltip {
|
|
|
14637
14980
|
}
|
|
14638
14981
|
}
|
|
14639
14982
|
render() {
|
|
14640
|
-
return (hAsync("div", { key: '
|
|
14983
|
+
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: {
|
|
14641
14984
|
top: this.tooltipStyle.top,
|
|
14642
14985
|
left: this.tooltipStyle.left,
|
|
14643
14986
|
transform: this.tooltipStyle.transform
|
|
@@ -14661,9 +15004,6 @@ class EdsTooltip {
|
|
|
14661
15004
|
}; }
|
|
14662
15005
|
}
|
|
14663
15006
|
|
|
14664
|
-
const edsTrlCss = "";
|
|
14665
|
-
var EdsTrlStyle0 = edsTrlCss;
|
|
14666
|
-
|
|
14667
15007
|
/**
|
|
14668
15008
|
* @internal
|
|
14669
15009
|
*/
|
|
@@ -14673,13 +15013,23 @@ class EdsTrl {
|
|
|
14673
15013
|
this.applications = undefined;
|
|
14674
15014
|
}
|
|
14675
15015
|
getParsedApplications() {
|
|
14676
|
-
|
|
14677
|
-
|
|
15016
|
+
let apps = [];
|
|
15017
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
15018
|
+
if (typeof this.applications === 'string') {
|
|
15019
|
+
try {
|
|
15020
|
+
apps = JSON.parse(this.applications || '[]');
|
|
15021
|
+
}
|
|
15022
|
+
catch (error) {
|
|
15023
|
+
// eslint-disable-next-line
|
|
15024
|
+
console.error('Invalid applications trl JSON', error);
|
|
15025
|
+
apps = [];
|
|
15026
|
+
}
|
|
14678
15027
|
}
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
15028
|
+
// If applications is already an array, use it directly.
|
|
15029
|
+
else if (Array.isArray(this.applications)) {
|
|
15030
|
+
apps = this.applications;
|
|
14682
15031
|
}
|
|
15032
|
+
return apps;
|
|
14683
15033
|
}
|
|
14684
15034
|
calculateProgress(currentTrl) {
|
|
14685
15035
|
const maxTrl = 9;
|
|
@@ -14687,12 +15037,18 @@ class EdsTrl {
|
|
|
14687
15037
|
}
|
|
14688
15038
|
render() {
|
|
14689
15039
|
const apps = this.getParsedApplications();
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
15040
|
+
// Map applications into table-friendly data.
|
|
15041
|
+
const tableData = apps.map((app) => ({
|
|
15042
|
+
Application: app.name,
|
|
15043
|
+
'Current TRL Stage': `TRL ${app.currentTrl}`,
|
|
15044
|
+
Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
15045
|
+
}));
|
|
15046
|
+
const tableConfig = {
|
|
15047
|
+
Application: { format: 'code' },
|
|
15048
|
+
'Current TRL Stage': { format: 'text' }
|
|
15049
|
+
};
|
|
15050
|
+
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" })));
|
|
14694
15051
|
}
|
|
14695
|
-
static get style() { return EdsTrlStyle0; }
|
|
14696
15052
|
static get cmpMeta() { return {
|
|
14697
15053
|
"$flags$": 0,
|
|
14698
15054
|
"$tagName$": "eds-trl",
|
|
@@ -14733,6 +15089,7 @@ class EdsUser {
|
|
|
14733
15089
|
this.handleLogout = () => {
|
|
14734
15090
|
logout();
|
|
14735
15091
|
this.authenticated = false;
|
|
15092
|
+
this.user = null;
|
|
14736
15093
|
};
|
|
14737
15094
|
this.keycloakUrl = undefined;
|
|
14738
15095
|
this.keycloakRealm = undefined;
|
|
@@ -14747,9 +15104,15 @@ class EdsUser {
|
|
|
14747
15104
|
* It initializes authentication by calling the `initAuth` method.
|
|
14748
15105
|
*/
|
|
14749
15106
|
async componentWillLoad() {
|
|
15107
|
+
// Check if required props are provided (optional check)
|
|
15108
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
15109
|
+
// eslint-disable-next-line
|
|
15110
|
+
console.error('Keycloak configuration props are missing.');
|
|
15111
|
+
return;
|
|
15112
|
+
}
|
|
14750
15113
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
14751
15114
|
if (!this.serverAvailable) {
|
|
14752
|
-
toast.show('Keycloak server is unavailable.', 'error');
|
|
15115
|
+
//toast.show('Keycloak server is unavailable.', 'error');
|
|
14753
15116
|
return; // Do not proceed further
|
|
14754
15117
|
}
|
|
14755
15118
|
await this.initAuth();
|
|
@@ -14768,15 +15131,15 @@ class EdsUser {
|
|
|
14768
15131
|
};
|
|
14769
15132
|
await initKeycloak(keycloakConfig, true);
|
|
14770
15133
|
// Set authentication state and fetch user data if authenticated
|
|
14771
|
-
this.authenticated = isAuthenticated();
|
|
14772
|
-
if (
|
|
15134
|
+
//this.authenticated = isAuthenticated();
|
|
15135
|
+
if (isAuthenticated()) {
|
|
14773
15136
|
this.user = getUser();
|
|
15137
|
+
this.authenticated = true;
|
|
14774
15138
|
}
|
|
14775
15139
|
this.authStatusChanged.emit({
|
|
14776
15140
|
authenticated: this.authenticated,
|
|
14777
15141
|
user: this.user
|
|
14778
15142
|
}); // Emit auth status change
|
|
14779
|
-
toast.show(`Welcome back, ${this.user.username}`, 'success');
|
|
14780
15143
|
}
|
|
14781
15144
|
catch (error) {
|
|
14782
15145
|
// eslint-disable-next-line
|
|
@@ -14789,7 +15152,7 @@ class EdsUser {
|
|
|
14789
15152
|
if (!this.serverAvailable) {
|
|
14790
15153
|
return null;
|
|
14791
15154
|
}
|
|
14792
|
-
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin
|
|
15155
|
+
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
14793
15156
|
}
|
|
14794
15157
|
get hostEl() { return getElement(this); }
|
|
14795
15158
|
static get cmpMeta() { return {
|
|
@@ -14810,9 +15173,6 @@ class EdsUser {
|
|
|
14810
15173
|
}; }
|
|
14811
15174
|
}
|
|
14812
15175
|
|
|
14813
|
-
const edsUserModalCss = "";
|
|
14814
|
-
var EdsUserModalStyle0 = edsUserModalCss;
|
|
14815
|
-
|
|
14816
15176
|
/**
|
|
14817
15177
|
* @internal
|
|
14818
15178
|
*/
|
|
@@ -14845,13 +15205,12 @@ class EdsUserModal {
|
|
|
14845
15205
|
}
|
|
14846
15206
|
render() {
|
|
14847
15207
|
var _a, _b, _c, _d, _e;
|
|
14848
|
-
return (hAsync("div", { key: '
|
|
15208
|
+
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() })))));
|
|
14849
15209
|
}
|
|
14850
15210
|
static get watchers() { return {
|
|
14851
15211
|
"user": ["parseUserProp"],
|
|
14852
15212
|
"links": ["parseLinksProp"]
|
|
14853
15213
|
}; }
|
|
14854
|
-
static get style() { return EdsUserModalStyle0; }
|
|
14855
15214
|
static get cmpMeta() { return {
|
|
14856
15215
|
"$flags$": 0,
|
|
14857
15216
|
"$tagName$": "eds-user-modal",
|
|
@@ -14903,7 +15262,7 @@ class GradientPrimaryPalette {
|
|
|
14903
15262
|
];
|
|
14904
15263
|
}
|
|
14905
15264
|
render() {
|
|
14906
|
-
return (hAsync("ul", { key: '
|
|
15265
|
+
return (hAsync("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14907
15266
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14908
15267
|
} }, 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))))))));
|
|
14909
15268
|
}
|
|
@@ -14976,19 +15335,19 @@ class GradientSecondaryPalette {
|
|
|
14976
15335
|
];
|
|
14977
15336
|
}
|
|
14978
15337
|
render() {
|
|
14979
|
-
return (hAsync("div", { key: '
|
|
15338
|
+
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: {
|
|
14980
15339
|
background: this.colors[0].background
|
|
14981
|
-
} }, hAsync("div", { key: '
|
|
15340
|
+
} }, 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: {
|
|
14982
15341
|
background: this.colors[1].background
|
|
14983
|
-
} }, hAsync("div", { key: '
|
|
15342
|
+
} }, 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: {
|
|
14984
15343
|
background: this.colors[2].background
|
|
14985
|
-
} }, hAsync("div", { key: '
|
|
15344
|
+
} }, 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: {
|
|
14986
15345
|
background: this.colors[3].background
|
|
14987
|
-
} }, hAsync("div", { key: '
|
|
15346
|
+
} }, 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: {
|
|
14988
15347
|
background: this.colors[4].background
|
|
14989
|
-
} }, hAsync("div", { key: '
|
|
15348
|
+
} }, 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: {
|
|
14990
15349
|
background: this.colors[5].background
|
|
14991
|
-
} }, hAsync("div", { key: '
|
|
15350
|
+
} }, 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)))))));
|
|
14992
15351
|
}
|
|
14993
15352
|
static get cmpMeta() { return {
|
|
14994
15353
|
"$flags$": 0,
|
|
@@ -15051,11 +15410,11 @@ class GradientSupportPalette {
|
|
|
15051
15410
|
];
|
|
15052
15411
|
}
|
|
15053
15412
|
render() {
|
|
15054
|
-
return (hAsync("ul", { key: '
|
|
15413
|
+
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: {
|
|
15055
15414
|
background: this.colors[2].background
|
|
15056
|
-
} }, hAsync("div", { key: '
|
|
15415
|
+
} }, 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: {
|
|
15057
15416
|
background: this.colors[3].background
|
|
15058
|
-
} }, hAsync("div", { key: '
|
|
15417
|
+
} }, 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'))))));
|
|
15059
15418
|
}
|
|
15060
15419
|
static get cmpMeta() { return {
|
|
15061
15420
|
"$flags$": 0,
|
|
@@ -15101,10 +15460,6 @@ const incorrect = [
|
|
|
15101
15460
|
...purple,
|
|
15102
15461
|
...red
|
|
15103
15462
|
];
|
|
15104
|
-
/**
|
|
15105
|
-
* `CorrectUseOfColors` is a component that combines the primary palette and support palette
|
|
15106
|
-
* to display the correct use of colors.
|
|
15107
|
-
*/
|
|
15108
15463
|
/**
|
|
15109
15464
|
* @internal
|
|
15110
15465
|
*/
|
|
@@ -15113,7 +15468,7 @@ class IncorrectUseOfColors {
|
|
|
15113
15468
|
registerInstance(this, hostRef);
|
|
15114
15469
|
}
|
|
15115
15470
|
render() {
|
|
15116
|
-
return (hAsync("div", { key: '
|
|
15471
|
+
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 } })))))))));
|
|
15117
15472
|
}
|
|
15118
15473
|
static get cmpMeta() { return {
|
|
15119
15474
|
"$flags$": 0,
|
|
@@ -15136,7 +15491,7 @@ class LogoSpace {
|
|
|
15136
15491
|
registerInstance(this, hostRef);
|
|
15137
15492
|
}
|
|
15138
15493
|
render() {
|
|
15139
|
-
return (hAsync("div", { key: '
|
|
15494
|
+
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 })))));
|
|
15140
15495
|
}
|
|
15141
15496
|
static get style() { return LogoSpaceStyle0; }
|
|
15142
15497
|
static get cmpMeta() { return {
|
|
@@ -15149,38 +15504,24 @@ class LogoSpace {
|
|
|
15149
15504
|
}; }
|
|
15150
15505
|
}
|
|
15151
15506
|
|
|
15152
|
-
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%)}";
|
|
15507
|
+
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%)}";
|
|
15153
15508
|
var LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
|
|
15154
15509
|
|
|
15155
15510
|
/**
|
|
15156
15511
|
* @internal
|
|
15157
15512
|
*/
|
|
15158
|
-
class
|
|
15513
|
+
class LogoVariationsHorizontal {
|
|
15159
15514
|
constructor(hostRef) {
|
|
15160
15515
|
registerInstance(this, hostRef);
|
|
15161
|
-
this.orientation = 'horizontal';
|
|
15162
|
-
this.type = undefined;
|
|
15163
15516
|
}
|
|
15164
15517
|
render() {
|
|
15165
|
-
|
|
15166
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[300px]" }, hAsync("eds-logo", { type: "no-bg", href: "#" }))));
|
|
15167
|
-
}
|
|
15168
|
-
if (this.type === 'black') {
|
|
15169
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[300px]" }, hAsync("eds-logo", { type: "black", href: "#" }))));
|
|
15170
|
-
}
|
|
15171
|
-
if (this.type === 'color-white') {
|
|
15172
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[300px]" }, hAsync("eds-logo", { type: "color-white", href: "#" }))));
|
|
15173
|
-
}
|
|
15174
|
-
return null;
|
|
15518
|
+
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: "#" })))));
|
|
15175
15519
|
}
|
|
15176
15520
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15177
15521
|
static get cmpMeta() { return {
|
|
15178
15522
|
"$flags$": 9,
|
|
15179
15523
|
"$tagName$": "logo-variations-horizontal",
|
|
15180
|
-
"$members$":
|
|
15181
|
-
"orientation": [1],
|
|
15182
|
-
"type": [1]
|
|
15183
|
-
},
|
|
15524
|
+
"$members$": undefined,
|
|
15184
15525
|
"$listeners$": undefined,
|
|
15185
15526
|
"$lazyBundleId$": "-",
|
|
15186
15527
|
"$attrsToReflect$": []
|
|
@@ -15193,23 +15534,14 @@ var LogoVariationsVerticalStyle0 = logoVariationsVerticalCss;
|
|
|
15193
15534
|
/**
|
|
15194
15535
|
* @internal
|
|
15195
15536
|
*/
|
|
15196
|
-
class
|
|
15537
|
+
class LogoVariationsVertical {
|
|
15197
15538
|
constructor(hostRef) {
|
|
15198
15539
|
registerInstance(this, hostRef);
|
|
15199
|
-
this.orientation = '
|
|
15540
|
+
this.orientation = 'vertical';
|
|
15200
15541
|
this.type = undefined;
|
|
15201
15542
|
}
|
|
15202
15543
|
render() {
|
|
15203
|
-
|
|
15204
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
|
|
15205
|
-
}
|
|
15206
|
-
if (this.type === 'black') {
|
|
15207
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
|
|
15208
|
-
}
|
|
15209
|
-
if (this.type === 'color-white') {
|
|
15210
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
|
|
15211
|
-
}
|
|
15212
|
-
return null;
|
|
15544
|
+
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: "#" })))));
|
|
15213
15545
|
}
|
|
15214
15546
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15215
15547
|
static get cmpMeta() { return {
|
|
@@ -15225,7 +15557,7 @@ class LogoVariations {
|
|
|
15225
15557
|
}; }
|
|
15226
15558
|
}
|
|
15227
15559
|
|
|
15228
|
-
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}";
|
|
15560
|
+
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}";
|
|
15229
15561
|
var LogoWrongUsageStyle0 = logoWrongUsageCss;
|
|
15230
15562
|
|
|
15231
15563
|
/**
|
|
@@ -15236,7 +15568,7 @@ class LogoWrongUsage {
|
|
|
15236
15568
|
registerInstance(this, hostRef);
|
|
15237
15569
|
}
|
|
15238
15570
|
render() {
|
|
15239
|
-
return (hAsync("ul", { key: '
|
|
15571
|
+
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")))));
|
|
15240
15572
|
}
|
|
15241
15573
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15242
15574
|
static get cmpMeta() { return {
|
|
@@ -15492,7 +15824,7 @@ class TokenList {
|
|
|
15492
15824
|
render() {
|
|
15493
15825
|
// Check if `show` prop is provided; if not, display all sections
|
|
15494
15826
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15495
|
-
return (hAsync("section", { key: '
|
|
15827
|
+
return (hAsync("section", { key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15496
15828
|
// Only render sections that exist in `colors`
|
|
15497
15829
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15498
15830
|
}
|
|
@@ -15525,7 +15857,7 @@ class TokenRadii {
|
|
|
15525
15857
|
registerInstance(this, hostRef);
|
|
15526
15858
|
}
|
|
15527
15859
|
render() {
|
|
15528
|
-
return (hAsync("section", { key: '
|
|
15860
|
+
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" }))))))));
|
|
15529
15861
|
}
|
|
15530
15862
|
static get cmpMeta() { return {
|
|
15531
15863
|
"$flags$": 0,
|
|
@@ -15554,7 +15886,7 @@ class TokenRatios {
|
|
|
15554
15886
|
registerInstance(this, hostRef);
|
|
15555
15887
|
}
|
|
15556
15888
|
render() {
|
|
15557
|
-
return (hAsync("section", { key: '
|
|
15889
|
+
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: {
|
|
15558
15890
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15559
15891
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15560
15892
|
maxWidth: '300px'
|
|
@@ -15596,7 +15928,7 @@ class TokenShadows {
|
|
|
15596
15928
|
registerInstance(this, hostRef);
|
|
15597
15929
|
}
|
|
15598
15930
|
render() {
|
|
15599
|
-
return (hAsync("section", { key: '
|
|
15931
|
+
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]" })))))))));
|
|
15600
15932
|
}
|
|
15601
15933
|
static get cmpMeta() { return {
|
|
15602
15934
|
"$flags$": 0,
|
|
@@ -15616,7 +15948,7 @@ class TokenSpacing {
|
|
|
15616
15948
|
registerInstance(this, hostRef);
|
|
15617
15949
|
}
|
|
15618
15950
|
render() {
|
|
15619
|
-
return (hAsync("div", { key: '
|
|
15951
|
+
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")))))));
|
|
15620
15952
|
}
|
|
15621
15953
|
static get cmpMeta() { return {
|
|
15622
15954
|
"$flags$": 0,
|
|
@@ -15834,7 +16166,7 @@ class TokenTypography {
|
|
|
15834
16166
|
registerInstance(this, hostRef);
|
|
15835
16167
|
}
|
|
15836
16168
|
render() {
|
|
15837
|
-
return (hAsync("section", { key: '
|
|
16169
|
+
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)
|
|
15838
16170
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15839
16171
|
.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: {
|
|
15840
16172
|
fontFamily: typography.families.sans,
|
|
@@ -15925,6 +16257,7 @@ registerComponents([
|
|
|
15925
16257
|
EdsLink,
|
|
15926
16258
|
EdsLogin,
|
|
15927
16259
|
EdsLogo,
|
|
16260
|
+
EdsLogoVariations,
|
|
15928
16261
|
EdsMatomoNotice,
|
|
15929
16262
|
EdsModal,
|
|
15930
16263
|
EdsNavigator,
|
|
@@ -15933,7 +16266,7 @@ registerComponents([
|
|
|
15933
16266
|
EdsRating,
|
|
15934
16267
|
EdsSectionCore,
|
|
15935
16268
|
EdsSectionHeading,
|
|
15936
|
-
|
|
16269
|
+
EdsSocialNetworks,
|
|
15937
16270
|
EdsSvgRepository,
|
|
15938
16271
|
EdsTab,
|
|
15939
16272
|
EdsTable,
|
|
@@ -15952,8 +16285,8 @@ registerComponents([
|
|
|
15952
16285
|
GradientSupportPalette,
|
|
15953
16286
|
IncorrectUseOfColors,
|
|
15954
16287
|
LogoSpace,
|
|
15955
|
-
|
|
15956
|
-
|
|
16288
|
+
LogoVariationsHorizontal,
|
|
16289
|
+
LogoVariationsVertical,
|
|
15957
16290
|
LogoWrongUsage,
|
|
15958
16291
|
TokenList,
|
|
15959
16292
|
TokenRadii,
|