@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
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import './color.js';
|
|
3
|
+
import { s as sendAnalytics } from './analytics.js';
|
|
2
4
|
import { d as defineCustomElement$a } from './eds-icon-wrapper2.js';
|
|
3
5
|
import { d as defineCustomElement$9 } from './eds-input2.js';
|
|
4
6
|
import { d as defineCustomElement$8 } from './eds-input-field2.js';
|
|
@@ -10,7 +12,7 @@ import { d as defineCustomElement$3 } from './eds-input-select2.js';
|
|
|
10
12
|
import { d as defineCustomElement$2 } from './eds-link2.js';
|
|
11
13
|
import { d as defineCustomElement$1 } from './eds-pagination2.js';
|
|
12
14
|
|
|
13
|
-
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}";
|
|
15
|
+
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}";
|
|
14
16
|
const EdsTableStyle0 = edsTableCss;
|
|
15
17
|
|
|
16
18
|
const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLElement {
|
|
@@ -18,13 +20,14 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
18
20
|
super();
|
|
19
21
|
this.__registerHost();
|
|
20
22
|
this.__attachShadow();
|
|
21
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
22
23
|
this.data = null;
|
|
23
24
|
this.endpoint = null;
|
|
24
25
|
this.config = {};
|
|
25
26
|
this.rowsPerPage = 10;
|
|
26
27
|
this.paginationEnabled = true;
|
|
27
28
|
this.searchEnabled = false;
|
|
29
|
+
this.hostWidth = undefined;
|
|
30
|
+
this.columnSize = 'default';
|
|
28
31
|
this.tableData = [];
|
|
29
32
|
this.columns = [];
|
|
30
33
|
this.currentPage = 1;
|
|
@@ -103,10 +106,24 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
103
106
|
}
|
|
104
107
|
handlePageChange(newPage) {
|
|
105
108
|
this.currentPage = newPage;
|
|
109
|
+
sendAnalytics({
|
|
110
|
+
category: 'ui-component',
|
|
111
|
+
parentContext: null,
|
|
112
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
113
|
+
name: `${newPage}` || '',
|
|
114
|
+
action: 'page'
|
|
115
|
+
});
|
|
106
116
|
}
|
|
107
117
|
handleSearch(event) {
|
|
108
118
|
this.searchQuery = event.target.value;
|
|
109
119
|
this.currentPage = 1;
|
|
120
|
+
/*sendAnalytics({
|
|
121
|
+
category: 'ui-component',
|
|
122
|
+
parentContext: null,
|
|
123
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
124
|
+
name: `${this.searchQuery}` || '',
|
|
125
|
+
action: 'page'
|
|
126
|
+
});*/
|
|
110
127
|
}
|
|
111
128
|
renderCell(value, column) {
|
|
112
129
|
var _a;
|
|
@@ -122,27 +139,44 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
122
139
|
getVisibleColumnsCount() {
|
|
123
140
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
124
141
|
}
|
|
142
|
+
divisionFactor() {
|
|
143
|
+
let divisionFactor = 1;
|
|
144
|
+
if (this.columnSize === 'medium') {
|
|
145
|
+
divisionFactor = 2;
|
|
146
|
+
}
|
|
147
|
+
else if (this.columnSize === 'large') {
|
|
148
|
+
divisionFactor = 4;
|
|
149
|
+
}
|
|
150
|
+
return divisionFactor;
|
|
151
|
+
}
|
|
125
152
|
render() {
|
|
153
|
+
// Get the paginated rows and calculate the last page.
|
|
126
154
|
const paginatedRows = this.getPaginatedRows();
|
|
127
155
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
128
|
-
//
|
|
129
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
130
|
-
// Use the visible column count to calculate the column width
|
|
156
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
131
157
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
132
|
-
|
|
133
|
-
|
|
158
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
159
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
160
|
+
? Number(this.hostWidth)
|
|
161
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
162
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
163
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
164
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
165
|
+
: 400;
|
|
166
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
167
|
+
return (h("div", { key: '69fd87330d2049eeb91751c781c7aa753fa89883' }, this.searchEnabled && (h("div", { key: '2f9680dd17b852b140fe560f7979e1dd58236c5a' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
134
168
|
// @ts-ignore
|
|
135
|
-
onInput: (event) => this.handleSearch(event) }))), h("div", { key: '
|
|
169
|
+
onInput: (event) => this.handleSearch(event) }))), h("div", { key: 'd67edb24308e526a3e860a90250d58cf8bfee9c8', class: "mt-20" }, h("table", { key: '9a2ef219110e459ac670a0f9c2e62c600f6b5acd', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '81bae222447e805d06642dda19903d5bf99f2b01' }, h("tr", { key: '582d7ea661823b81ccdf3adc9769fe53cf56f04c', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
136
170
|
var _a;
|
|
137
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0
|
|
138
|
-
}))), h("tbody", { key: '
|
|
171
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
172
|
+
}))), h("tbody", { key: 'ce7f87e665c394c5e9f2201ef2658e888ea07948' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
139
173
|
var _a;
|
|
140
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0
|
|
141
|
-
}))))))), h("div", { key: '
|
|
174
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("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)));
|
|
175
|
+
}))))))), this.shouldEnablePagination() && (h("div", { key: '0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0', class: "mt-20" }, h("eds-pagination", { key: '5192f3f4b2ee93d5864d1afed3341a122c826d97', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
142
176
|
}
|
|
143
177
|
get hostEl() { return this; }
|
|
144
178
|
static get watchers() { return {
|
|
145
|
-
"data": ["handleDataChange"],
|
|
179
|
+
"data": ["handleDataChange", "parseData"],
|
|
146
180
|
"config": ["handleConfigChange"]
|
|
147
181
|
}; }
|
|
148
182
|
static get style() { return EdsTableStyle0; }
|
|
@@ -153,6 +187,8 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
153
187
|
"rowsPerPage": [2, "rows-per-page"],
|
|
154
188
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
155
189
|
"searchEnabled": [4, "search-enabled"],
|
|
190
|
+
"hostWidth": [1, "host-width"],
|
|
191
|
+
"columnSize": [1, "column-size"],
|
|
156
192
|
"tableData": [32],
|
|
157
193
|
"columns": [32],
|
|
158
194
|
"currentPage": [32],
|
|
@@ -160,7 +196,7 @@ const EdsTable = /*@__PURE__*/ proxyCustomElement(class EdsTable extends HTMLEle
|
|
|
160
196
|
"totalRows": [32],
|
|
161
197
|
"searchQuery": [32]
|
|
162
198
|
}, undefined, {
|
|
163
|
-
"data": ["handleDataChange"],
|
|
199
|
+
"data": ["handleDataChange", "parseData"],
|
|
164
200
|
"config": ["handleConfigChange"]
|
|
165
201
|
}]);
|
|
166
202
|
function defineCustomElement() {
|
|
@@ -117,11 +117,11 @@ const EdsTabsContent$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabsContent e
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (h("div", { key: '
|
|
120
|
+
return (h("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-['']" }, h("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
121
121
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
122
122
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
123
123
|
return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
124
|
-
})), h("slot", { key: '
|
|
124
|
+
})), h("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
|
|
125
125
|
}
|
|
126
126
|
get el() { return this; }
|
|
127
127
|
static get watchers() { return {
|
|
@@ -51,12 +51,33 @@ const EdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabs extends HTMLEle
|
|
|
51
51
|
this.setActiveIndex();
|
|
52
52
|
this.tabChange.emit({ tabId: this.id, index: 0 });
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Parses the `links` prop into an array of link objects.
|
|
56
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
57
|
+
*
|
|
58
|
+
* @returns {any[]} Array of parsed link objects
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Parses the `links` prop into an array of link objects.
|
|
62
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
63
|
+
*
|
|
64
|
+
* @returns {any[]} Array of parsed link objects
|
|
65
|
+
*/
|
|
54
66
|
parseTabs() {
|
|
55
|
-
|
|
56
|
-
this.parsedTabs =
|
|
67
|
+
if (Array.isArray(this.tabs)) {
|
|
68
|
+
this.parsedTabs = this.tabs;
|
|
57
69
|
}
|
|
58
|
-
|
|
59
|
-
|
|
70
|
+
else if (typeof this.tabs === 'string') {
|
|
71
|
+
try {
|
|
72
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
//console.error('Error parsing tabs prop:', e);
|
|
76
|
+
this.parsedTabs = [];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
// If the type is not an array or string, assume an empty array.
|
|
60
81
|
this.parsedTabs = [];
|
|
61
82
|
}
|
|
62
83
|
}
|
|
@@ -106,7 +127,7 @@ const EdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class EdsTabs extends HTMLEle
|
|
|
106
127
|
});
|
|
107
128
|
}
|
|
108
129
|
render() {
|
|
109
|
-
return (h("div", { key: '
|
|
130
|
+
return (h("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-['']" }, h("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" }, h("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
110
131
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
111
132
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
112
133
|
return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
@@ -10,21 +10,35 @@ const EdsTimeline$1 = /*@__PURE__*/ proxyCustomElement(class EdsTimeline extends
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
12
12
|
this.__registerHost();
|
|
13
|
+
this.events = undefined;
|
|
13
14
|
this.selectedEvent = null;
|
|
14
15
|
this.parsedEvents = [];
|
|
15
|
-
this.events = undefined;
|
|
16
16
|
}
|
|
17
17
|
parseEvents(newValue) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
let parsed;
|
|
19
|
+
// If events is a string, try to parse it
|
|
20
|
+
if (typeof newValue === 'string') {
|
|
21
|
+
try {
|
|
22
|
+
parsed = JSON.parse(newValue);
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
// eslint-disable-next-line
|
|
26
|
+
console.error('Error parsing timeline events JSON', e);
|
|
27
|
+
parsed = [];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
// If events is already an array, use it directly
|
|
31
|
+
else if (Array.isArray(newValue)) {
|
|
32
|
+
parsed = newValue;
|
|
24
33
|
}
|
|
25
|
-
|
|
26
|
-
|
|
34
|
+
// Otherwise, default to an empty array
|
|
35
|
+
else {
|
|
36
|
+
parsed = [];
|
|
27
37
|
}
|
|
38
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
39
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
40
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
41
|
+
: [];
|
|
28
42
|
}
|
|
29
43
|
componentWillLoad() {
|
|
30
44
|
this.parseEvents(this.events);
|
|
@@ -51,7 +65,7 @@ const EdsTimeline$1 = /*@__PURE__*/ proxyCustomElement(class EdsTimeline extends
|
|
|
51
65
|
}
|
|
52
66
|
}
|
|
53
67
|
render() {
|
|
54
|
-
return (h("div", { key: '
|
|
68
|
+
return (h("div", { key: '6016cb89d3fe3250482b42d8a0bf500fe18cee5d', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: '994cc7af75950a0f09d108804efff796602aeb93', class: "relative" }, h("div", { key: '77b15ae60feb380ea20c6466b49d0efd5d8f5180', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: '60bb384ce4eedd7bfc3b15a7a637e2b89318d619', class: "space-y-16" }, this.parsedEvents.map((event, index) => (h("div", { class: "relative flex" }, h("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (h("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
|
|
55
69
|
? [{ label: 'completed', style: 'accent' }]
|
|
56
70
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), h("div", { class: "flex items-center justify-center relative" }, event.completed ? (h("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (h("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), h("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (h("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
|
|
57
71
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -37,7 +37,7 @@ const EdsToastManager$1 = /*@__PURE__*/ proxyCustomElement(class EdsToastManager
|
|
|
37
37
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: '459148404380e386117387f42183e24a069b2de6', class: "toast-container" }, this.toasts.map((t) => (h("div", { key: t.id }, h("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
41
41
|
}
|
|
42
42
|
get hostElement() { return this; }
|
|
43
43
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -31,6 +31,27 @@ const EdsToast = /*@__PURE__*/ proxyCustomElement(class EdsToast extends HTMLEle
|
|
|
31
31
|
this.duration = 5000;
|
|
32
32
|
this.visible = true;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
36
|
+
* to recalculate height on window resize.
|
|
37
|
+
*/
|
|
38
|
+
componentDidLoad() {
|
|
39
|
+
// Emit context for each eds-button element after the component is fully loaded
|
|
40
|
+
const btn = this.el.querySelector('eds-button');
|
|
41
|
+
this.emitContext(btn);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
45
|
+
*/
|
|
46
|
+
emitContext(linkElement) {
|
|
47
|
+
const event = new CustomEvent('parentContext', {
|
|
48
|
+
detail: {
|
|
49
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
50
|
+
identifier: null
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
linkElement.dispatchEvent(event);
|
|
54
|
+
}
|
|
34
55
|
connectedCallback() {
|
|
35
56
|
// Auto-dismiss the toast after the specified duration
|
|
36
57
|
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import './color.js';
|
|
3
|
+
import { s as sendAnalytics } from './analytics.js';
|
|
2
4
|
|
|
3
5
|
const edsTooltipCss = ".relative{position:relative}.absolute{position:absolute}.rounded-sm{border-radius:8px}.rounded-xs{border-radius:4px}.bg-stronger{background-color:var(--grey-900)}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.text-default{color:var(--black)}.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)}.pointer-events-none{pointer-events:none}.-top-8{top:-0.5rem}.left-1\\/2{left:50%}.z-10{z-index:10}.block{display:block}.-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))}.-translate-y-full{--tw-translate-y:-100%;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))}.whitespace-nowrap{white-space:nowrap}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.p-12{padding:0.75rem}.p-16{padding:1rem}.p-20{padding:1.25rem}";
|
|
4
6
|
const EdsTooltipStyle0 = edsTooltipCss;
|
|
@@ -18,9 +20,17 @@ const EdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class EdsTooltip extends H
|
|
|
18
20
|
* Show the tooltip and update its position.
|
|
19
21
|
*/
|
|
20
22
|
async showTooltip() {
|
|
23
|
+
var _a;
|
|
21
24
|
await this.updateTooltipPosition();
|
|
22
25
|
this.isPositioned = true;
|
|
23
26
|
this.isVisible = true;
|
|
27
|
+
sendAnalytics({
|
|
28
|
+
category: 'ui-component',
|
|
29
|
+
parentContext: null,
|
|
30
|
+
tag: this.el.tagName.toLowerCase(),
|
|
31
|
+
name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
32
|
+
action: 'hover'
|
|
33
|
+
});
|
|
24
34
|
}
|
|
25
35
|
/**
|
|
26
36
|
* Hide the tooltip.
|
|
@@ -85,7 +95,7 @@ const EdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class EdsTooltip extends H
|
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
render() {
|
|
88
|
-
return (h("div", { key: '
|
|
98
|
+
return (h("div", { key: '673ab0ee31378410f9c83bb5fd37b27d00a7b018', class: "relative" }, h("slot", { key: '0c0138dfdf9aafecc1e0e925c84d4b0ca957f82d' }), this.isVisible && this.isPositioned && this.content && (h("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: {
|
|
89
99
|
top: this.tooltipStyle.top,
|
|
90
100
|
left: this.tooltipStyle.left,
|
|
91
101
|
transform: this.tooltipStyle.transform
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { d as defineCustomElement$
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { d as defineCustomElement$d } from './eds-icon-wrapper2.js';
|
|
3
|
+
import { d as defineCustomElement$c } from './eds-input2.js';
|
|
4
|
+
import { d as defineCustomElement$b } from './eds-input-field2.js';
|
|
5
|
+
import { d as defineCustomElement$a } from './eds-input-footer2.js';
|
|
6
|
+
import { d as defineCustomElement$9 } from './eds-input-label2.js';
|
|
7
|
+
import { d as defineCustomElement$8 } from './eds-input-range2.js';
|
|
8
|
+
import { d as defineCustomElement$7 } from './eds-input-search2.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './eds-input-select2.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './eds-link2.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './eds-pagination2.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './eds-progress-bar2.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './eds-table2.js';
|
|
6
14
|
|
|
7
15
|
const EdsTrl$1 = /*@__PURE__*/ proxyCustomElement(class EdsTrl extends HTMLElement {
|
|
8
16
|
constructor() {
|
|
@@ -11,13 +19,23 @@ const EdsTrl$1 = /*@__PURE__*/ proxyCustomElement(class EdsTrl extends HTMLEleme
|
|
|
11
19
|
this.applications = undefined;
|
|
12
20
|
}
|
|
13
21
|
getParsedApplications() {
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
let apps = [];
|
|
23
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
24
|
+
if (typeof this.applications === 'string') {
|
|
25
|
+
try {
|
|
26
|
+
apps = JSON.parse(this.applications || '[]');
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
// eslint-disable-next-line
|
|
30
|
+
console.error('Invalid applications trl JSON', error);
|
|
31
|
+
apps = [];
|
|
32
|
+
}
|
|
16
33
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
// If applications is already an array, use it directly.
|
|
35
|
+
else if (Array.isArray(this.applications)) {
|
|
36
|
+
apps = this.applications;
|
|
20
37
|
}
|
|
38
|
+
return apps;
|
|
21
39
|
}
|
|
22
40
|
calculateProgress(currentTrl) {
|
|
23
41
|
const maxTrl = 9;
|
|
@@ -25,12 +43,18 @@ const EdsTrl$1 = /*@__PURE__*/ proxyCustomElement(class EdsTrl extends HTMLEleme
|
|
|
25
43
|
}
|
|
26
44
|
render() {
|
|
27
45
|
const apps = this.getParsedApplications();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
46
|
+
// Map applications into table-friendly data.
|
|
47
|
+
const tableData = apps.map((app) => ({
|
|
48
|
+
Application: app.name,
|
|
49
|
+
'Current TRL Stage': `TRL ${app.currentTrl}`,
|
|
50
|
+
Progress: (h("div", { class: "w-[200px]" }, h("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
51
|
+
}));
|
|
52
|
+
const tableConfig = {
|
|
53
|
+
Application: { format: 'code' },
|
|
54
|
+
'Current TRL Stage': { format: 'text' }
|
|
55
|
+
};
|
|
56
|
+
return (h("div", { key: '868a7c45e6495d7a2ed8a4ad2974ac31f74535a6', class: "container mx-auto px-4 py-8" }, h("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" })));
|
|
32
57
|
}
|
|
33
|
-
static get style() { return EdsTrlStyle0; }
|
|
34
58
|
}, [0, "eds-trl", {
|
|
35
59
|
"applications": [1]
|
|
36
60
|
}]);
|
|
@@ -38,14 +62,69 @@ function defineCustomElement$1() {
|
|
|
38
62
|
if (typeof customElements === "undefined") {
|
|
39
63
|
return;
|
|
40
64
|
}
|
|
41
|
-
const components = ["eds-trl", "eds-progress-bar"];
|
|
65
|
+
const components = ["eds-trl", "eds-icon-wrapper", "eds-input", "eds-input-field", "eds-input-footer", "eds-input-label", "eds-input-range", "eds-input-search", "eds-input-select", "eds-link", "eds-pagination", "eds-progress-bar", "eds-table"];
|
|
42
66
|
components.forEach(tagName => { switch (tagName) {
|
|
43
67
|
case "eds-trl":
|
|
44
68
|
if (!customElements.get(tagName)) {
|
|
45
69
|
customElements.define(tagName, EdsTrl$1);
|
|
46
70
|
}
|
|
47
71
|
break;
|
|
72
|
+
case "eds-icon-wrapper":
|
|
73
|
+
if (!customElements.get(tagName)) {
|
|
74
|
+
defineCustomElement$d();
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "eds-input":
|
|
78
|
+
if (!customElements.get(tagName)) {
|
|
79
|
+
defineCustomElement$c();
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
case "eds-input-field":
|
|
83
|
+
if (!customElements.get(tagName)) {
|
|
84
|
+
defineCustomElement$b();
|
|
85
|
+
}
|
|
86
|
+
break;
|
|
87
|
+
case "eds-input-footer":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
defineCustomElement$a();
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
case "eds-input-label":
|
|
93
|
+
if (!customElements.get(tagName)) {
|
|
94
|
+
defineCustomElement$9();
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case "eds-input-range":
|
|
98
|
+
if (!customElements.get(tagName)) {
|
|
99
|
+
defineCustomElement$8();
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
case "eds-input-search":
|
|
103
|
+
if (!customElements.get(tagName)) {
|
|
104
|
+
defineCustomElement$7();
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case "eds-input-select":
|
|
108
|
+
if (!customElements.get(tagName)) {
|
|
109
|
+
defineCustomElement$6();
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
case "eds-link":
|
|
113
|
+
if (!customElements.get(tagName)) {
|
|
114
|
+
defineCustomElement$5();
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
case "eds-pagination":
|
|
118
|
+
if (!customElements.get(tagName)) {
|
|
119
|
+
defineCustomElement$4();
|
|
120
|
+
}
|
|
121
|
+
break;
|
|
48
122
|
case "eds-progress-bar":
|
|
123
|
+
if (!customElements.get(tagName)) {
|
|
124
|
+
defineCustomElement$3();
|
|
125
|
+
}
|
|
126
|
+
break;
|
|
127
|
+
case "eds-table":
|
|
49
128
|
if (!customElements.get(tagName)) {
|
|
50
129
|
defineCustomElement$2();
|
|
51
130
|
}
|
|
@@ -4,9 +4,6 @@ import { d as defineCustomElement$3 } from './eds-icon-wrapper2.js';
|
|
|
4
4
|
import { d as defineCustomElement$2 } from './eds-img2.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './eds-link2.js';
|
|
6
6
|
|
|
7
|
-
const edsUserModalCss = "";
|
|
8
|
-
const EdsUserModalStyle0 = edsUserModalCss;
|
|
9
|
-
|
|
10
7
|
const EdsUserModal = /*@__PURE__*/ proxyCustomElement(class EdsUserModal extends HTMLElement {
|
|
11
8
|
constructor() {
|
|
12
9
|
super();
|
|
@@ -37,13 +34,12 @@ const EdsUserModal = /*@__PURE__*/ proxyCustomElement(class EdsUserModal extends
|
|
|
37
34
|
}
|
|
38
35
|
render() {
|
|
39
36
|
var _a, _b, _c, _d, _e;
|
|
40
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: 'ad99ddd7c2710ef90840a5571ab6a161178cacc0', class: "min-w-[280px] p-8" }, h("div", { key: 'd1da12f3a965fa7503fb3e00566db0796b803352', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, h("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 }), h("div", { key: '4efe378b3a9ce76d35e642db150be13d0434db72', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (h("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) && h("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) && h("p", { key: 'b3514920e1eb4906cb7f7705bfbc986166e84946', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), h("div", { key: '61941fa0a19a19087da886a73d85d7e438d2c0b0', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, h("div", { key: '5ad2be1763726c9d794b78a2593106fd8ba1dc7b', class: "border-softer mb-10 border-b-2 pb-16" }, h("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 })), h("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 && (h("eds-link", { key: '642890827e2fa6735bc616e680dbda481c2c0053', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
|
|
41
38
|
}
|
|
42
39
|
static get watchers() { return {
|
|
43
40
|
"user": ["parseUserProp"],
|
|
44
41
|
"links": ["parseLinksProp"]
|
|
45
42
|
}; }
|
|
46
|
-
static get style() { return EdsUserModalStyle0; }
|
|
47
43
|
}, [0, "eds-user-modal", {
|
|
48
44
|
"user": [1],
|
|
49
45
|
"links": [1],
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { l as login, a as logout, c as checkServerAvailability, i as initKeycloak, b as isAuthenticated, g as getUser } from './keycloak.js';
|
|
3
|
-
import { t as toast } from './toastManager.js';
|
|
4
3
|
import { d as defineCustomElement$7 } from './eds-avatar2.js';
|
|
5
4
|
import { d as defineCustomElement$6 } from './eds-button2.js';
|
|
6
5
|
import { d as defineCustomElement$5 } from './eds-dropdown2.js';
|
|
@@ -30,6 +29,7 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
|
|
|
30
29
|
this.handleLogout = () => {
|
|
31
30
|
logout();
|
|
32
31
|
this.authenticated = false;
|
|
32
|
+
this.user = null;
|
|
33
33
|
};
|
|
34
34
|
this.keycloakUrl = undefined;
|
|
35
35
|
this.keycloakRealm = undefined;
|
|
@@ -44,9 +44,15 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
|
|
|
44
44
|
* It initializes authentication by calling the `initAuth` method.
|
|
45
45
|
*/
|
|
46
46
|
async componentWillLoad() {
|
|
47
|
+
// Check if required props are provided (optional check)
|
|
48
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
49
|
+
// eslint-disable-next-line
|
|
50
|
+
console.error('Keycloak configuration props are missing.');
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
47
53
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
48
54
|
if (!this.serverAvailable) {
|
|
49
|
-
toast.show('Keycloak server is unavailable.', 'error');
|
|
55
|
+
//toast.show('Keycloak server is unavailable.', 'error');
|
|
50
56
|
return; // Do not proceed further
|
|
51
57
|
}
|
|
52
58
|
await this.initAuth();
|
|
@@ -65,15 +71,15 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
|
|
|
65
71
|
};
|
|
66
72
|
await initKeycloak(keycloakConfig, true);
|
|
67
73
|
// Set authentication state and fetch user data if authenticated
|
|
68
|
-
this.authenticated = isAuthenticated();
|
|
69
|
-
if (
|
|
74
|
+
//this.authenticated = isAuthenticated();
|
|
75
|
+
if (isAuthenticated()) {
|
|
70
76
|
this.user = getUser();
|
|
77
|
+
this.authenticated = true;
|
|
71
78
|
}
|
|
72
79
|
this.authStatusChanged.emit({
|
|
73
80
|
authenticated: this.authenticated,
|
|
74
81
|
user: this.user
|
|
75
82
|
}); // Emit auth status change
|
|
76
|
-
toast.show(`Welcome back, ${this.user.username}`, 'success');
|
|
77
83
|
}
|
|
78
84
|
catch (error) {
|
|
79
85
|
// eslint-disable-next-line
|
|
@@ -86,7 +92,7 @@ const EdsUser = /*@__PURE__*/ proxyCustomElement(class EdsUser extends HTMLEleme
|
|
|
86
92
|
if (!this.serverAvailable) {
|
|
87
93
|
return null;
|
|
88
94
|
}
|
|
89
|
-
return (h("div", { class: "block" }, !this.authenticated ? (h("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin
|
|
95
|
+
return (h("div", { class: "block" }, !this.authenticated ? (h("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (h("div", { class: "flex items-center" }, h("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" }, h("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
90
96
|
}
|
|
91
97
|
get hostEl() { return this; }
|
|
92
98
|
}, [0, "eds-user", {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$4 } from './eds-alert2.js';
|
|
3
|
+
import { d as defineCustomElement$3 } from './eds-icon-wrapper2.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './eds-link2.js';
|
|
2
5
|
|
|
3
6
|
const primary = [
|
|
4
7
|
{
|
|
@@ -40,20 +43,35 @@ const IncorrectUseOfColors$1 = /*@__PURE__*/ proxyCustomElement(class IncorrectU
|
|
|
40
43
|
this.__registerHost();
|
|
41
44
|
}
|
|
42
45
|
render() {
|
|
43
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: '2e660e9a788e46e68d6695ae8aa475bbb1ca395e', class: "container" }, h("eds-alert", { key: '1dc4552a33d88055a3a0c33eeb18c53a8379039a', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), h("div", { key: 'fd6bf7f0205422b1bd3ceb3f8374d5a9a73aaca0', class: "flex" }, h("div", { key: 'dae745447f5e9792136f059b1dcfc868e473dfd5', class: "w-full" }, h("ul", { key: 'daeec7514f4027ec3f688f05fb4f1e027b846a81', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: '1ca202afa9384e78e3ed9c0674e06c51184d3a5a', class: "w-full" }, h("ul", { key: '7bdef2e7d64f3c5553193d127bac69ee89a93686', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
44
47
|
}
|
|
45
48
|
}, [0, "incorrect-use-of-colors"]);
|
|
46
49
|
function defineCustomElement$1() {
|
|
47
50
|
if (typeof customElements === "undefined") {
|
|
48
51
|
return;
|
|
49
52
|
}
|
|
50
|
-
const components = ["incorrect-use-of-colors"];
|
|
53
|
+
const components = ["incorrect-use-of-colors", "eds-alert", "eds-icon-wrapper", "eds-link"];
|
|
51
54
|
components.forEach(tagName => { switch (tagName) {
|
|
52
55
|
case "incorrect-use-of-colors":
|
|
53
56
|
if (!customElements.get(tagName)) {
|
|
54
57
|
customElements.define(tagName, IncorrectUseOfColors$1);
|
|
55
58
|
}
|
|
56
59
|
break;
|
|
60
|
+
case "eds-alert":
|
|
61
|
+
if (!customElements.get(tagName)) {
|
|
62
|
+
defineCustomElement$4();
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
case "eds-icon-wrapper":
|
|
66
|
+
if (!customElements.get(tagName)) {
|
|
67
|
+
defineCustomElement$3();
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
case "eds-link":
|
|
71
|
+
if (!customElements.get(tagName)) {
|
|
72
|
+
defineCustomElement$2();
|
|
73
|
+
}
|
|
74
|
+
break;
|
|
57
75
|
} });
|
|
58
76
|
}
|
|
59
77
|
|