@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
|
@@ -30,7 +30,13 @@ const Template = (args) => `
|
|
|
30
30
|
<p>This is the content inside the section.</p>
|
|
31
31
|
</eds-section-core>
|
|
32
32
|
`;
|
|
33
|
-
const
|
|
33
|
+
export const Default = Template.bind({});
|
|
34
|
+
Default.args = {
|
|
35
|
+
tag: 'section',
|
|
36
|
+
sectionTitle: 'Default Section Title',
|
|
37
|
+
headingLevel: 'h2'
|
|
38
|
+
};
|
|
39
|
+
/*const TemplateForm = (args) => `
|
|
34
40
|
<eds-section-core
|
|
35
41
|
tag="${args.tag}"
|
|
36
42
|
section-title="${args.sectionTitle}"
|
|
@@ -60,15 +66,10 @@ const TemplateForm = (args) => `
|
|
|
60
66
|
|
|
61
67
|
</eds-section-core>
|
|
62
68
|
`;
|
|
63
|
-
|
|
64
|
-
Default.args = {
|
|
65
|
-
tag: 'section',
|
|
66
|
-
sectionTitle: 'Default Section Title',
|
|
67
|
-
headingLevel: 'h2'
|
|
68
|
-
};
|
|
69
|
+
|
|
69
70
|
export const WithForm = TemplateForm.bind({});
|
|
70
71
|
WithForm.args = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
72
|
+
tag: 'section',
|
|
73
|
+
sectionTitle: 'This a slotted Form',
|
|
74
|
+
headingLevel: 'h2'
|
|
75
|
+
};*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sendAnalytics } from "../../../../../../../packages/utils/src/index";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
/**
|
|
3
4
|
* `EdsTable` is a customizable data table component with support for dynamic data fetching, column configuration, pagination, and search functionality.
|
|
@@ -12,13 +13,14 @@ import { h } from "@stencil/core";
|
|
|
12
13
|
*/
|
|
13
14
|
export class EdsTable {
|
|
14
15
|
constructor() {
|
|
15
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
16
16
|
this.data = null;
|
|
17
17
|
this.endpoint = null;
|
|
18
18
|
this.config = {};
|
|
19
19
|
this.rowsPerPage = 10;
|
|
20
20
|
this.paginationEnabled = true;
|
|
21
21
|
this.searchEnabled = false;
|
|
22
|
+
this.hostWidth = undefined;
|
|
23
|
+
this.columnSize = 'default';
|
|
22
24
|
this.tableData = [];
|
|
23
25
|
this.columns = [];
|
|
24
26
|
this.currentPage = 1;
|
|
@@ -97,10 +99,24 @@ export class EdsTable {
|
|
|
97
99
|
}
|
|
98
100
|
handlePageChange(newPage) {
|
|
99
101
|
this.currentPage = newPage;
|
|
102
|
+
sendAnalytics({
|
|
103
|
+
category: 'ui-component',
|
|
104
|
+
parentContext: null,
|
|
105
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
106
|
+
name: `${newPage}` || '',
|
|
107
|
+
action: 'page'
|
|
108
|
+
});
|
|
100
109
|
}
|
|
101
110
|
handleSearch(event) {
|
|
102
111
|
this.searchQuery = event.target.value;
|
|
103
112
|
this.currentPage = 1;
|
|
113
|
+
/*sendAnalytics({
|
|
114
|
+
category: 'ui-component',
|
|
115
|
+
parentContext: null,
|
|
116
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
117
|
+
name: `${this.searchQuery}` || '',
|
|
118
|
+
action: 'page'
|
|
119
|
+
});*/
|
|
104
120
|
}
|
|
105
121
|
renderCell(value, column) {
|
|
106
122
|
var _a;
|
|
@@ -116,23 +132,40 @@ export class EdsTable {
|
|
|
116
132
|
getVisibleColumnsCount() {
|
|
117
133
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
118
134
|
}
|
|
135
|
+
divisionFactor() {
|
|
136
|
+
let divisionFactor = 1;
|
|
137
|
+
if (this.columnSize === 'medium') {
|
|
138
|
+
divisionFactor = 2;
|
|
139
|
+
}
|
|
140
|
+
else if (this.columnSize === 'large') {
|
|
141
|
+
divisionFactor = 4;
|
|
142
|
+
}
|
|
143
|
+
return divisionFactor;
|
|
144
|
+
}
|
|
119
145
|
render() {
|
|
146
|
+
// Get the paginated rows and calculate the last page.
|
|
120
147
|
const paginatedRows = this.getPaginatedRows();
|
|
121
148
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
122
|
-
//
|
|
123
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
124
|
-
// Use the visible column count to calculate the column width
|
|
149
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
125
150
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
126
|
-
|
|
127
|
-
|
|
151
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
152
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
153
|
+
? Number(this.hostWidth)
|
|
154
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
155
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
156
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
157
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
158
|
+
: 400;
|
|
159
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
160
|
+
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...",
|
|
128
161
|
// @ts-ignore
|
|
129
|
-
onInput: (event) => this.handleSearch(event) }))), h("div", { key: '
|
|
162
|
+
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) => {
|
|
130
163
|
var _a;
|
|
131
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0
|
|
132
|
-
}))), h("tbody", { key: '
|
|
164
|
+
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));
|
|
165
|
+
}))), 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) => {
|
|
133
166
|
var _a;
|
|
134
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0
|
|
135
|
-
}))))))), h("div", { key: '
|
|
167
|
+
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)));
|
|
168
|
+
}))))))), 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" })))));
|
|
136
169
|
}
|
|
137
170
|
static get is() { return "eds-table"; }
|
|
138
171
|
static get encapsulation() { return "shadow"; }
|
|
@@ -189,7 +222,7 @@ export class EdsTable {
|
|
|
189
222
|
"mutable": false,
|
|
190
223
|
"complexType": {
|
|
191
224
|
"original": "| string\n | {\n [key: string]: {\n hidden?: boolean;\n format?: 'uppercase' | 'bold' | 'code';\n };\n }",
|
|
192
|
-
"resolved": "string | { [key: string]: { hidden?: boolean; format?: \"
|
|
225
|
+
"resolved": "string | { [key: string]: { hidden?: boolean; format?: \"code\" | \"uppercase\" | \"bold\"; }; }",
|
|
193
226
|
"references": {}
|
|
194
227
|
},
|
|
195
228
|
"required": false,
|
|
@@ -255,6 +288,41 @@ export class EdsTable {
|
|
|
255
288
|
"attribute": "search-enabled",
|
|
256
289
|
"reflect": false,
|
|
257
290
|
"defaultValue": "false"
|
|
291
|
+
},
|
|
292
|
+
"hostWidth": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "string",
|
|
297
|
+
"resolved": "string",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": true,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": ""
|
|
305
|
+
},
|
|
306
|
+
"attribute": "host-width",
|
|
307
|
+
"reflect": false
|
|
308
|
+
},
|
|
309
|
+
"columnSize": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "'default' | 'medium' | 'large'",
|
|
314
|
+
"resolved": "\"default\" | \"large\" | \"medium\"",
|
|
315
|
+
"references": {}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": true,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": "Optional property to control the column sizing mode.\n- 'default' uses containerWidth / visibleColumns.\n- 'medium' divides that result by 2.\n- 'large' divides that result by 4."
|
|
322
|
+
},
|
|
323
|
+
"attribute": "column-size",
|
|
324
|
+
"reflect": false,
|
|
325
|
+
"defaultValue": "'default'"
|
|
258
326
|
}
|
|
259
327
|
};
|
|
260
328
|
}
|
|
@@ -276,6 +344,9 @@ export class EdsTable {
|
|
|
276
344
|
}, {
|
|
277
345
|
"propName": "config",
|
|
278
346
|
"methodName": "handleConfigChange"
|
|
347
|
+
}, {
|
|
348
|
+
"propName": "data",
|
|
349
|
+
"methodName": "parseData"
|
|
279
350
|
}];
|
|
280
351
|
}
|
|
281
352
|
}
|
|
@@ -43,57 +43,6 @@ export default {
|
|
|
43
43
|
searchEnabled: true
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
export const Default = {
|
|
47
|
-
render: (args) => `
|
|
48
|
-
<eds-table
|
|
49
|
-
data='${JSON.stringify(args.data)}'
|
|
50
|
-
config='${JSON.stringify(args.config)}'>
|
|
51
|
-
</eds-table>`
|
|
52
|
-
};
|
|
53
|
-
export const WithHiddenColumn = {
|
|
54
|
-
render: (args) => `
|
|
55
|
-
<eds-table
|
|
56
|
-
data='${JSON.stringify(args.data)}'
|
|
57
|
-
config='${JSON.stringify(args.config)}'>
|
|
58
|
-
</eds-table>`,
|
|
59
|
-
args: {
|
|
60
|
-
data: [
|
|
61
|
-
{ Property: 'username', Type: 'string', Required: 'Yes' },
|
|
62
|
-
{ Property: 'password', Type: 'string', Required: 'Yes' },
|
|
63
|
-
{ Property: 'email', Type: 'string', Required: 'No' }
|
|
64
|
-
],
|
|
65
|
-
config: {
|
|
66
|
-
Required: { hidden: true }
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
export const WithEndpoint = {
|
|
71
|
-
render: (args) => `
|
|
72
|
-
<eds-table
|
|
73
|
-
endpoint="${args.endpoint}">
|
|
74
|
-
</eds-table>`,
|
|
75
|
-
args: {
|
|
76
|
-
endpoint: 'http://127.0.0.1:5000/api/info'
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export const WithCustomFormats = {
|
|
80
|
-
render: (args) => `
|
|
81
|
-
<eds-table
|
|
82
|
-
data='${JSON.stringify(args.data)}'
|
|
83
|
-
config='${JSON.stringify(args.config)}'>
|
|
84
|
-
</eds-table>`,
|
|
85
|
-
args: {
|
|
86
|
-
data: [
|
|
87
|
-
{ Property: 'username', Type: 'string', Role: 'User' },
|
|
88
|
-
{ Property: 'password', Type: 'password', Role: 'Admin' }
|
|
89
|
-
],
|
|
90
|
-
config: {
|
|
91
|
-
Property: { format: 'code' },
|
|
92
|
-
Type: { format: 'uppercase' },
|
|
93
|
-
Role: { format: 'bold' }
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
46
|
// Sample data for the table
|
|
98
47
|
const sampleData = [
|
|
99
48
|
{ name: 'Alice', age: 25, occupation: 'Engineer' },
|
|
@@ -107,48 +56,7 @@ const sampleData = [
|
|
|
107
56
|
{ name: 'Ian', age: 27, occupation: 'Developer' },
|
|
108
57
|
{ name: 'Jackie', age: 33, occupation: 'Consultant' }
|
|
109
58
|
];
|
|
110
|
-
const
|
|
111
|
-
export const BasicPagination = {
|
|
112
|
-
render: (args) => `
|
|
113
|
-
<eds-table
|
|
114
|
-
data=${tableData}
|
|
115
|
-
rows-per-page="${args.rowsPerPage}"
|
|
116
|
-
pagination-enabled="${args.paginationEnabled}"
|
|
117
|
-
></eds-table>
|
|
118
|
-
`,
|
|
119
|
-
args: {
|
|
120
|
-
rowsPerPage: 5,
|
|
121
|
-
paginationEnabled: true
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
export const CustomRowsPerPage = {
|
|
125
|
-
render: (args) => `
|
|
126
|
-
<eds-table
|
|
127
|
-
data=${tableData}
|
|
128
|
-
rows-per-page="${args.rowsPerPage}"
|
|
129
|
-
pagination-enabled="${args.paginationEnabled}"
|
|
130
|
-
></eds-table>
|
|
131
|
-
`,
|
|
132
|
-
args: {
|
|
133
|
-
rowsPerPage: 3,
|
|
134
|
-
paginationEnabled: true
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
export const CustomRowsPerPageEndpoint = {
|
|
138
|
-
render: (args) => `
|
|
139
|
-
<eds-table
|
|
140
|
-
rows-per-page="${args.rowsPerPage}"
|
|
141
|
-
pagination-enabled="${args.paginationEnabled}"
|
|
142
|
-
endpoint="${args.endpoint}"
|
|
143
|
-
></eds-table>
|
|
144
|
-
`,
|
|
145
|
-
args: {
|
|
146
|
-
rowsPerPage: 3,
|
|
147
|
-
paginationEnabled: true,
|
|
148
|
-
endpoint: 'http://127.0.0.1:5000/api/info'
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
export const CompleteExample = {
|
|
59
|
+
export const Default = {
|
|
152
60
|
render: (args) => `
|
|
153
61
|
<eds-table
|
|
154
62
|
data='${JSON.stringify(args.data)}'
|
|
@@ -171,3 +79,16 @@ export const CompleteExample = {
|
|
|
171
79
|
endpoint: '' // Leave empty for manual data entry
|
|
172
80
|
}
|
|
173
81
|
};
|
|
82
|
+
export const WithEndpoint = {
|
|
83
|
+
render: (args) => `
|
|
84
|
+
<eds-table
|
|
85
|
+
endpoint="${args.endpoint}"
|
|
86
|
+
rows-per-page="${args.rowsPerPage}"
|
|
87
|
+
pagination-enabled="${args.paginationEnabled}"
|
|
88
|
+
search-enabled="${args.searchEnabled}"
|
|
89
|
+
host-width="600">
|
|
90
|
+
</eds-table>`,
|
|
91
|
+
args: {
|
|
92
|
+
endpoint: 'http://127.0.0.1:5001/api/info'
|
|
93
|
+
}
|
|
94
|
+
};
|
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
2
|
export class EdsTimeline {
|
|
6
3
|
constructor() {
|
|
4
|
+
this.events = undefined;
|
|
7
5
|
this.selectedEvent = null;
|
|
8
6
|
this.parsedEvents = [];
|
|
9
|
-
this.events = undefined;
|
|
10
7
|
}
|
|
11
8
|
parseEvents(newValue) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
let parsed;
|
|
10
|
+
// If events is a string, try to parse it
|
|
11
|
+
if (typeof newValue === 'string') {
|
|
12
|
+
try {
|
|
13
|
+
parsed = JSON.parse(newValue);
|
|
14
|
+
}
|
|
15
|
+
catch (e) {
|
|
16
|
+
// eslint-disable-next-line
|
|
17
|
+
console.error('Error parsing timeline events JSON', e);
|
|
18
|
+
parsed = [];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
// If events is already an array, use it directly
|
|
22
|
+
else if (Array.isArray(newValue)) {
|
|
23
|
+
parsed = newValue;
|
|
18
24
|
}
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
// Otherwise, default to an empty array
|
|
26
|
+
else {
|
|
27
|
+
parsed = [];
|
|
21
28
|
}
|
|
29
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
30
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
31
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
32
|
+
: [];
|
|
22
33
|
}
|
|
23
34
|
componentWillLoad() {
|
|
24
35
|
this.parseEvents(this.events);
|
|
@@ -45,7 +56,7 @@ export class EdsTimeline {
|
|
|
45
56
|
}
|
|
46
57
|
}
|
|
47
58
|
render() {
|
|
48
|
-
return (h("div", { key: '
|
|
59
|
+
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
|
|
49
60
|
? [{ label: 'completed', style: 'accent' }]
|
|
50
61
|
: [{ 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
|
|
51
62
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -58,15 +69,15 @@ export class EdsTimeline {
|
|
|
58
69
|
"type": "string",
|
|
59
70
|
"mutable": false,
|
|
60
71
|
"complexType": {
|
|
61
|
-
"original": "string",
|
|
62
|
-
"resolved": "string",
|
|
72
|
+
"original": "string | any[]",
|
|
73
|
+
"resolved": "any[] | string",
|
|
63
74
|
"references": {}
|
|
64
75
|
},
|
|
65
76
|
"required": false,
|
|
66
77
|
"optional": false,
|
|
67
78
|
"docs": {
|
|
68
79
|
"tags": [],
|
|
69
|
-
"text": "Accepts a JSON string of timeline events."
|
|
80
|
+
"text": "Accepts a JSON string or object of timeline events."
|
|
70
81
|
},
|
|
71
82
|
"attribute": "events",
|
|
72
83
|
"reflect": false
|
|
@@ -26,6 +26,27 @@ export class EdsToast {
|
|
|
26
26
|
this.duration = 5000;
|
|
27
27
|
this.visible = true;
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
31
|
+
* to recalculate height on window resize.
|
|
32
|
+
*/
|
|
33
|
+
componentDidLoad() {
|
|
34
|
+
// Emit context for each eds-button element after the component is fully loaded
|
|
35
|
+
const btn = this.el.querySelector('eds-button');
|
|
36
|
+
this.emitContext(btn);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
40
|
+
*/
|
|
41
|
+
emitContext(linkElement) {
|
|
42
|
+
const event = new CustomEvent('parentContext', {
|
|
43
|
+
detail: {
|
|
44
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
45
|
+
identifier: null
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
linkElement.dispatchEvent(event);
|
|
49
|
+
}
|
|
29
50
|
connectedCallback() {
|
|
30
51
|
// Auto-dismiss the toast after the specified duration
|
|
31
52
|
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sendAnalytics } from "../../../../../../../packages/utils/src/index";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
/**
|
|
3
4
|
* `EdsTooltip` dynamically positions a tooltip centered above the slotted element.
|
|
@@ -14,9 +15,17 @@ export class EdsTooltip {
|
|
|
14
15
|
* Show the tooltip and update its position.
|
|
15
16
|
*/
|
|
16
17
|
async showTooltip() {
|
|
18
|
+
var _a;
|
|
17
19
|
await this.updateTooltipPosition();
|
|
18
20
|
this.isPositioned = true;
|
|
19
21
|
this.isVisible = true;
|
|
22
|
+
sendAnalytics({
|
|
23
|
+
category: 'ui-component',
|
|
24
|
+
parentContext: null,
|
|
25
|
+
tag: this.el.tagName.toLowerCase(),
|
|
26
|
+
name: ((_a = this.content) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
27
|
+
action: 'hover'
|
|
28
|
+
});
|
|
20
29
|
}
|
|
21
30
|
/**
|
|
22
31
|
* Hide the tooltip.
|
|
@@ -81,7 +90,7 @@ export class EdsTooltip {
|
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
92
|
render() {
|
|
84
|
-
return (h("div", { key: '
|
|
93
|
+
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: {
|
|
85
94
|
top: this.tooltipStyle.top,
|
|
86
95
|
left: this.tooltipStyle.left,
|
|
87
96
|
transform: this.tooltipStyle.transform
|
|
@@ -7,13 +7,23 @@ export class EdsTrl {
|
|
|
7
7
|
this.applications = undefined;
|
|
8
8
|
}
|
|
9
9
|
getParsedApplications() {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
let apps = [];
|
|
11
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
12
|
+
if (typeof this.applications === 'string') {
|
|
13
|
+
try {
|
|
14
|
+
apps = JSON.parse(this.applications || '[]');
|
|
15
|
+
}
|
|
16
|
+
catch (error) {
|
|
17
|
+
// eslint-disable-next-line
|
|
18
|
+
console.error('Invalid applications trl JSON', error);
|
|
19
|
+
apps = [];
|
|
20
|
+
}
|
|
12
21
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
// If applications is already an array, use it directly.
|
|
23
|
+
else if (Array.isArray(this.applications)) {
|
|
24
|
+
apps = this.applications;
|
|
16
25
|
}
|
|
26
|
+
return apps;
|
|
17
27
|
}
|
|
18
28
|
calculateProgress(currentTrl) {
|
|
19
29
|
const maxTrl = 9;
|
|
@@ -21,37 +31,34 @@ export class EdsTrl {
|
|
|
21
31
|
}
|
|
22
32
|
render() {
|
|
23
33
|
const apps = this.getParsedApplications();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
static get styleUrls() {
|
|
36
|
-
return {
|
|
37
|
-
"$": ["eds-trl.css"]
|
|
34
|
+
// Map applications into table-friendly data.
|
|
35
|
+
const tableData = apps.map((app) => ({
|
|
36
|
+
Application: app.name,
|
|
37
|
+
'Current TRL Stage': `TRL ${app.currentTrl}`,
|
|
38
|
+
Progress: (h("div", { class: "w-[200px]" }, h("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
39
|
+
}));
|
|
40
|
+
const tableConfig = {
|
|
41
|
+
Application: { format: 'code' },
|
|
42
|
+
'Current TRL Stage': { format: 'text' }
|
|
38
43
|
};
|
|
44
|
+
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" })));
|
|
39
45
|
}
|
|
46
|
+
static get is() { return "eds-trl"; }
|
|
40
47
|
static get properties() {
|
|
41
48
|
return {
|
|
42
49
|
"applications": {
|
|
43
50
|
"type": "string",
|
|
44
51
|
"mutable": false,
|
|
45
52
|
"complexType": {
|
|
46
|
-
"original": "string",
|
|
47
|
-
"resolved": "string",
|
|
53
|
+
"original": "string | any[]",
|
|
54
|
+
"resolved": "any[] | string",
|
|
48
55
|
"references": {}
|
|
49
56
|
},
|
|
50
57
|
"required": false,
|
|
51
58
|
"optional": false,
|
|
52
59
|
"docs": {
|
|
53
60
|
"tags": [],
|
|
54
|
-
"text": ""
|
|
61
|
+
"text": "Accepts a JSON string or an array of application objects."
|
|
55
62
|
},
|
|
56
63
|
"attribute": "applications",
|
|
57
64
|
"reflect": false
|
|
@@ -33,7 +33,7 @@ export class ColorPrimaryPalette {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("ul", { key: '
|
|
36
|
+
return (h("ul", { key: '581f0978ebeda33a156d2baf3cc41a10897da1cf', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "color-primary-palette"; }
|
|
39
39
|
}
|
|
@@ -58,7 +58,7 @@ export class ColorSecondaryPalette {
|
|
|
58
58
|
this.show = undefined;
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h("ul", { key: '
|
|
61
|
+
return (h("ul", { key: '7f2e8e7efa207bedaa1e19c0f7d87459a5c22693', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "color-secondary-palette"; }
|
|
64
64
|
static get properties() {
|
|
@@ -49,7 +49,7 @@ export class ColorSupportPalette {
|
|
|
49
49
|
];
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("ul", { key: '
|
|
52
|
+
return (h("ul", { key: '6cd3d5f3128a49e9ac77abc11f46ca880bc6c195', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), h("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "color-support-palette"; }
|
|
55
55
|
}
|
|
@@ -33,7 +33,7 @@ export class GradientPrimaryPalette {
|
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("ul", { key: '
|
|
36
|
+
return (h("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
37
37
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
38
38
|
} }, this.colors.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "effect-height flex items-center justify-between p-16" }, h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.rgb), h("span", { class: "f-body-02 w-full" }, color.cmyk), h("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), h("div", { class: "grid" }, h("span", { class: "f-body-02" }, color.pantoneC), h("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
39
39
|
}
|