@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const color = require('./color-
|
|
6
|
+
const color = require('./color-88793e49.js');
|
|
7
7
|
require('./index-ab9fbefe.js');
|
|
8
8
|
|
|
9
9
|
const EdsCardProject = class {
|
|
@@ -10,7 +10,7 @@ const EdsCardSectionStyle0 = edsCardSectionCss;
|
|
|
10
10
|
const EdsCardSection = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.cards =
|
|
13
|
+
this.cards = [];
|
|
14
14
|
this.cols = 4;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -20,13 +20,24 @@ const EdsCardSection = class {
|
|
|
20
20
|
* @returns {any[]} An array of parsed card objects.
|
|
21
21
|
*/
|
|
22
22
|
get parsedCards() {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// If it's already an array, return it immediately.
|
|
24
|
+
if (Array.isArray(this.cards)) {
|
|
25
|
+
return this.cards;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return [];
|
|
27
|
+
if (typeof this.cards === 'object') {
|
|
28
|
+
return this.cards;
|
|
29
29
|
}
|
|
30
|
+
else if (typeof this.cards === 'string') {
|
|
31
|
+
try {
|
|
32
|
+
return JSON.parse(this.cards);
|
|
33
|
+
}
|
|
34
|
+
catch (e) {
|
|
35
|
+
// eslint-disable-next-line
|
|
36
|
+
console.error('Error parsing cards prop:', e);
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return [];
|
|
30
41
|
}
|
|
31
42
|
/**
|
|
32
43
|
* Renders the card section as a grid layout.
|
|
@@ -36,7 +47,7 @@ const EdsCardSection = class {
|
|
|
36
47
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
37
48
|
*/
|
|
38
49
|
render() {
|
|
39
|
-
return (index.h("section", { key: '
|
|
50
|
+
return (index.h("section", { key: 'da139da167230819e494a6426c2431f209a2e557', class: "w-full" }, index.h("ul", { key: '3e8affe5c9aee91c4487480c72c437339265101a', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (index.h("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, index.h("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
|
|
40
51
|
}
|
|
41
52
|
};
|
|
42
53
|
EdsCardSection.style = EdsCardSectionStyle0;
|
|
@@ -14,7 +14,7 @@ const EdsCardTags = class {
|
|
|
14
14
|
this.tags = [];
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h("div", { key: '
|
|
17
|
+
return (index.h("div", { key: '60a129de62d45736eba0884cc24c9738f3a0f55c', class: "flex flex-wrap gap-y-4" }, this.tags.map((tag, index$1) => (index.h("eds-tag", { key: index$1, intent: this.accent ? 'accent' : 'default', label: tag })))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
EdsCardTags.style = EdsCardTagsStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
-
const color = require('./color-
|
|
6
|
+
const color = require('./color-88793e49.js');
|
|
7
7
|
require('./index-ab9fbefe.js');
|
|
8
8
|
|
|
9
9
|
const edsCardToolCss = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}";
|
|
@@ -24,7 +24,7 @@ const EdsCardWrapper = class {
|
|
|
24
24
|
this.withHover ? 'effect-shadow hover:shadow-hover cursor-pointer' : '',
|
|
25
25
|
'border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16'
|
|
26
26
|
].join(' ');
|
|
27
|
-
return (index.h("article", { key: '
|
|
27
|
+
return (index.h("article", { key: '7c12b1d147f061e189b5dda5d517ec4eae0c3691', class: articleClasses }, index.h("slot", { key: 'f506bad73ed38ae36931f88f7d7c5f5d94705e4f' }), this.hasSlot('footer') && (index.h("div", { key: '783f480be269e4a2f61aa8d4396e757fe41bfcc6', class: "mt-auto" }, index.h("slot", { key: 'f07ddaa2d930518a5c8ac82efab3cb0dd6647bdd', name: "footer" })))));
|
|
28
28
|
}
|
|
29
29
|
get el() { return index.getElement(this); }
|
|
30
30
|
};
|
|
@@ -2419,12 +2419,58 @@ const EdsCodeBlock = class {
|
|
|
2419
2419
|
this.language = undefined;
|
|
2420
2420
|
this.copied = false;
|
|
2421
2421
|
}
|
|
2422
|
+
/**
|
|
2423
|
+
* Copies the current code content to the clipboard and sets a temporary copied state.
|
|
2424
|
+
*
|
|
2425
|
+
* @private
|
|
2426
|
+
* @returns {void}
|
|
2427
|
+
*/
|
|
2422
2428
|
copyToClipboard() {
|
|
2423
2429
|
navigator.clipboard.writeText(this.code).then(() => {
|
|
2424
2430
|
this.copied = true;
|
|
2431
|
+
/*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
|
|
2432
|
+
sendAnalytics({
|
|
2433
|
+
category: 'ui-component',
|
|
2434
|
+
parentContext: null,
|
|
2435
|
+
tag: this.el.tagName.toLowerCase(),
|
|
2436
|
+
name: analyticsName || '',
|
|
2437
|
+
action: 'copy'
|
|
2438
|
+
});*/
|
|
2425
2439
|
setTimeout(() => (this.copied = false), 2000);
|
|
2426
2440
|
});
|
|
2427
2441
|
}
|
|
2442
|
+
/**
|
|
2443
|
+
* Utility function that creates a human-friendly analytics name based on the code and language.
|
|
2444
|
+
* It uses:
|
|
2445
|
+
* - The language (in uppercase)
|
|
2446
|
+
* - The number of non-empty lines in the code
|
|
2447
|
+
* - The first non-empty line of code (truncated to 30 characters, if needed)
|
|
2448
|
+
*
|
|
2449
|
+
* returns A descriptive analytics name.
|
|
2450
|
+
*/
|
|
2451
|
+
/*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
|
|
2452
|
+
// Count non-empty lines
|
|
2453
|
+
const lines = code.split('\n').filter(line => line.trim() !== '').length;
|
|
2454
|
+
|
|
2455
|
+
// Find the first non-empty line and trim it
|
|
2456
|
+
let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
|
|
2457
|
+
firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
|
|
2458
|
+
|
|
2459
|
+
// Truncate the snippet if it’s too long
|
|
2460
|
+
if (firstNonEmptyLine.length > 30) {
|
|
2461
|
+
firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
|
|
2465
|
+
}*/
|
|
2466
|
+
/**
|
|
2467
|
+
* Returns the syntax-highlighted HTML for the code.
|
|
2468
|
+
* If the provided language is supported by Prism, this method returns the highlighted code.
|
|
2469
|
+
* Otherwise, it logs a warning and returns the raw code.
|
|
2470
|
+
*
|
|
2471
|
+
* @private
|
|
2472
|
+
* @returns {string} The highlighted HTML string for the code block.
|
|
2473
|
+
*/
|
|
2428
2474
|
getHighlightedCode() {
|
|
2429
2475
|
if (this.language && Prism$1.languages[this.language]) {
|
|
2430
2476
|
return Prism$1.highlight(this.code, Prism$1.languages[this.language], this.language);
|
|
@@ -2434,8 +2480,9 @@ const EdsCodeBlock = class {
|
|
|
2434
2480
|
return this.code; // Fallback if language is not provided or unsupported
|
|
2435
2481
|
}
|
|
2436
2482
|
render() {
|
|
2437
|
-
return (index.h("div", { key: '
|
|
2483
|
+
return (index.h("div", { key: '00eba9265ee17605f699d1e5606013b68e900b29', class: "relative bg-stronger rounded-sm" }, index.h("div", { key: '1192584f04de5ff74e91c88597a3360b92053456', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (index.h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (index.h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, index.h("code", { innerHTML: this.getHighlightedCode() }))), index.h("span", { key: '3666b6529a16a8cc64f448527db4ddee08f977a3', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, index.h("eds-icon-wrapper", { key: 'f222d95a2e548429f6c4de96a7646e3cef1f360f', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), index.h("span", { key: '8c539deda773909c01a41eb04ee51380c0a9c4bb', class: "sr-only" }, "Copy Code")), this.language && (index.h("pre", { key: '99541dedb32c543da5e780ffee4460333fbb3724', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, index.h("code", { key: '4e6ae6fcfae3de8c1fe5ad9d22309e0c8bee0c2c', innerHTML: this.getHighlightedCode() })))));
|
|
2438
2484
|
}
|
|
2485
|
+
get el() { return index.getElement(this); }
|
|
2439
2486
|
};
|
|
2440
2487
|
EdsCodeBlock.style = EdsCodeBlockStyle0;
|
|
2441
2488
|
|
|
@@ -5,54 +5,76 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
6
|
|
|
7
7
|
const EdsComponentsOverview = () => (index.h("div", { class: "static-content container" },
|
|
8
|
-
index.h("eds-alert", { message: "EBRAINS Design System makes it easy to implement and use its components across any framework or no framework at all. We\n accomplish this by using standardized web platform APIs and Web Components.", intent: "default" }),
|
|
9
8
|
index.h("h2", null, "Load the module"),
|
|
10
9
|
index.h("p", null,
|
|
11
10
|
"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
|
|
12
11
|
' ',
|
|
13
12
|
index.h("code", null, "head"),
|
|
14
13
|
"."),
|
|
15
|
-
index.h("eds-code-block", { code:
|
|
14
|
+
index.h("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
|
|
16
15
|
index.h("h2", null, "Load the styles"),
|
|
17
16
|
index.h("p", null,
|
|
18
17
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
19
18
|
' ',
|
|
20
19
|
index.h("code", null, "head")),
|
|
21
|
-
index.h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
20
|
+
index.h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
21
|
+
index.h("div", { class: "my-4" },
|
|
22
|
+
index.h("eds-alert", { message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.", intent: "warning" })),
|
|
22
23
|
index.h("h2", null, "Load the fonts"),
|
|
23
24
|
index.h("p", null,
|
|
24
|
-
"To load the
|
|
25
|
+
"To load the webfonts, add the tag below to the ",
|
|
25
26
|
index.h("code", null, "head")),
|
|
26
27
|
index.h("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
27
28
|
index.h("h2", null, "Component Usage"),
|
|
28
29
|
index.h("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
29
|
-
index.h("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"
|
|
30
|
+
index.h("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
30
31
|
|
|
31
32
|
const EdsDocsInstallation = () => (index.h("div", null,
|
|
32
|
-
index.h("p", null, "
|
|
33
|
-
index.h("
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
index.h("
|
|
38
|
-
|
|
33
|
+
index.h("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
34
|
+
index.h("div", { class: "my-8" },
|
|
35
|
+
index.h("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })),
|
|
36
|
+
index.h("div", { class: "my-8" },
|
|
37
|
+
index.h("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
38
|
+
index.h("div", { class: "my-8" },
|
|
39
|
+
index.h("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
|
|
39
40
|
|
|
40
41
|
const EdsDocsReact = () => (index.h("div", null,
|
|
41
42
|
index.h("h2", null, "React Wrappers"),
|
|
42
|
-
index.h("p", null, "Learn how to use our components in a React Application."),
|
|
43
|
-
"
|
|
44
|
-
|
|
43
|
+
index.h("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
|
|
44
|
+
index.h("div", { class: "my-8" },
|
|
45
|
+
index.h("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
45
46
|
index.h("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
46
|
-
index.h("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n
|
|
47
|
+
index.h("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
47
48
|
|
|
48
49
|
const EdsDocsVue = () => (index.h("div", null,
|
|
49
50
|
index.h("h2", null, "Vue Wrappers"),
|
|
50
51
|
index.h("p", null, "Learn how to use our components in a Vue Application."),
|
|
52
|
+
index.h("p", null, "Simply install the latest version of our NPM package."),
|
|
51
53
|
index.h("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
52
|
-
index.h("p", null, "
|
|
54
|
+
index.h("p", null, "Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your \"main.ts\" file."),
|
|
53
55
|
index.h("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }),
|
|
56
|
+
index.h("h2", null,
|
|
57
|
+
"Passing Properties to Custom Elements Using the ",
|
|
58
|
+
index.h("b", null, ".prop"),
|
|
59
|
+
" Modifier in Vue Wrappers"),
|
|
60
|
+
index.h("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML\u2019s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),
|
|
61
|
+
index.h("h3", null,
|
|
62
|
+
"How to Use the ",
|
|
63
|
+
index.h("b", null, ".prop"),
|
|
64
|
+
" Modifier"),
|
|
65
|
+
index.h("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here\u2019s an example of how to do it:"),
|
|
66
|
+
index.h("div", { class: "mt-8" },
|
|
67
|
+
index.h("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })),
|
|
68
|
+
index.h("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel="Press Me"\n :pressableUrl="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
|
|
69
|
+
index.h("div", { class: "mt-8" },
|
|
70
|
+
index.h("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })),
|
|
71
|
+
index.h("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel.prop="Press Me"\n :pressableUrl.prop="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
|
|
72
|
+
index.h("p", null,
|
|
73
|
+
"Using the ",
|
|
74
|
+
index.h("b", null, ".prop"),
|
|
75
|
+
" modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
|
|
54
76
|
index.h("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
55
|
-
index.h("eds-code-block", { code: '\n<template>\n <
|
|
77
|
+
index.h("eds-code-block", { code: '\n<template>\n <EdsHeader \n :inverseHeader.prop="true"\n :menuEnabled.prop="true">\n </EdsHeader>\n</template>\n\n<script>\n\nimport { EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: {\n EdsHeader,\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
56
78
|
|
|
57
79
|
const EdsDocsAngular = () => (index.h("div", null,
|
|
58
80
|
index.h("h2", null, "Angular Wrappers"),
|
|
@@ -63,7 +85,7 @@ const EdsDocsAngular = () => (index.h("div", null,
|
|
|
63
85
|
index.h("p", null, "Angular Custom Elements Schema"),
|
|
64
86
|
index.h("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
|
|
65
87
|
index.h("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" },
|
|
66
|
-
index.h("eds-code-block", { code: '\n<div class="container">\n <
|
|
88
|
+
index.h("eds-code-block", { code: '\n<div class="container">\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>', language: "javascript", "copy-label": "Copy Code" }))));
|
|
67
89
|
|
|
68
90
|
const EdsComponentsSection = class {
|
|
69
91
|
constructor(hostRef) {
|
|
@@ -77,19 +99,17 @@ const EdsComponentsSection = class {
|
|
|
77
99
|
case 1:
|
|
78
100
|
return index.h(EdsDocsInstallation, null);
|
|
79
101
|
case 2:
|
|
80
|
-
return index.h(EdsDocsUsage, null);
|
|
81
|
-
case 3:
|
|
82
102
|
return index.h(EdsDocsReact, null);
|
|
83
|
-
case
|
|
103
|
+
case 3:
|
|
84
104
|
return index.h(EdsDocsVue, null);
|
|
85
|
-
case
|
|
105
|
+
case 4:
|
|
86
106
|
return index.h(EdsDocsAngular, null);
|
|
87
107
|
default:
|
|
88
108
|
return index.h("p", null, "Content not available.");
|
|
89
109
|
}
|
|
90
110
|
}
|
|
91
111
|
render() {
|
|
92
|
-
return index.h("div", { key: '
|
|
112
|
+
return index.h("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
|
|
93
113
|
}
|
|
94
114
|
};
|
|
95
115
|
|
|
@@ -20,7 +20,7 @@ const EdsDocsPalettes = class {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return index.h("div", { key: '
|
|
23
|
+
return index.h("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ const EdsDocsContent = class {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return index.h("div", { key: '
|
|
31
|
+
return index.h("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
@@ -65,7 +65,7 @@ const EdsLogin = class {
|
|
|
65
65
|
return this.authenticated ? 'Logout' : 'Login';
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (index.h("
|
|
68
|
+
return (index.h("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
|
|
7
|
+
const EdsLogoVariations = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.tabIndex = undefined;
|
|
11
|
+
}
|
|
12
|
+
renderContent() {
|
|
13
|
+
switch (this.tabIndex) {
|
|
14
|
+
case 0:
|
|
15
|
+
return index.h("logo-variations-horizontal", null);
|
|
16
|
+
case 1:
|
|
17
|
+
return index.h("logo-variations-vertical", null);
|
|
18
|
+
default:
|
|
19
|
+
return index.h("p", null, "Content not available.");
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return index.h("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.eds_logo_variations = EdsLogoVariations;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
6
|
const toastManager = require('./toastManager-4e9535f3.js');
|
|
7
|
-
const color = require('./color-
|
|
7
|
+
const color = require('./color-88793e49.js');
|
|
8
8
|
require('./index-ab9fbefe.js');
|
|
9
9
|
|
|
10
10
|
const edsMatomoNoticeCss = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}";
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f08e4f5c.js');
|
|
6
|
+
const color = require('./color-88793e49.js');
|
|
7
|
+
require('./index-ab9fbefe.js');
|
|
6
8
|
|
|
7
9
|
const edsPaginationCss = "ul,menu{list-style:none;margin:0;padding:0}.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)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}";
|
|
8
10
|
const EdsPaginationStyle0 = edsPaginationCss;
|
|
@@ -31,14 +33,18 @@ const EdsPagination = class {
|
|
|
31
33
|
componentDidLoad() {
|
|
32
34
|
// Emit context for each eds-link element after the component is fully loaded
|
|
33
35
|
const links = this.hostEl.shadowRoot.querySelectorAll('eds-link');
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
links.forEach((lnk) => {
|
|
37
|
+
this.emitContext(lnk);
|
|
38
|
+
});
|
|
39
|
+
/*if (links.length > 0) {
|
|
40
|
+
// Emit context for the first link
|
|
41
|
+
this.emitContext(links[0]);
|
|
42
|
+
|
|
43
|
+
// Emit context for the last link, if it's different from the first
|
|
44
|
+
if (links.length > 1) {
|
|
45
|
+
this.emitContext(links[links.length - 1]);
|
|
46
|
+
}
|
|
47
|
+
}*/
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Emits a custom event called `parentContext` for a given link element.
|
|
@@ -168,7 +174,7 @@ const EdsPagination = class {
|
|
|
168
174
|
}
|
|
169
175
|
}
|
|
170
176
|
render() {
|
|
171
|
-
return (index.h("div", { key: '
|
|
177
|
+
return (index.h("div", { key: '584e0918b070eac25a7c4bfceff59b000b60076c' }, this.total > 0 && this.mode === 'default' && (index.h("p", { key: 'c688bd8e1f1d15904fc274454093f03213f59e38', class: "f-ui-03 text-lightest mb-28 w-full text-center" }, index.h("span", { key: 'c2472919bad41f76e26d518da27509e545ed9db6', class: "sr-only" }, "Results:"), this.pageResults())), this.mode === 'navigator' || (this.lastPage && this.lastPage > 1) ? (index.h("nav", { "aria-label": "Pagination" }, index.h("ul", { class: "flex items-center justify-center gap-x-8" }, index.h("li", { class: "mr-auto" }, index.h("eds-link", { label: this.prevLabel, url: this.mode === 'navigator'
|
|
172
178
|
? this.prevUrl || '#' // Use prevUrl if provided, otherwise disable with '#'
|
|
173
179
|
: this.isFirstPage()
|
|
174
180
|
? '#'
|
|
@@ -209,4 +215,173 @@ const EdsPagination = class {
|
|
|
209
215
|
};
|
|
210
216
|
EdsPagination.style = EdsPaginationStyle0;
|
|
211
217
|
|
|
218
|
+
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}";
|
|
219
|
+
const EdsTableStyle0 = edsTableCss;
|
|
220
|
+
|
|
221
|
+
const EdsTable = class {
|
|
222
|
+
constructor(hostRef) {
|
|
223
|
+
index.registerInstance(this, hostRef);
|
|
224
|
+
this.data = null;
|
|
225
|
+
this.endpoint = null;
|
|
226
|
+
this.config = {};
|
|
227
|
+
this.rowsPerPage = 10;
|
|
228
|
+
this.paginationEnabled = true;
|
|
229
|
+
this.searchEnabled = false;
|
|
230
|
+
this.hostWidth = undefined;
|
|
231
|
+
this.columnSize = 'default';
|
|
232
|
+
this.tableData = [];
|
|
233
|
+
this.columns = [];
|
|
234
|
+
this.currentPage = 1;
|
|
235
|
+
this.parsedConfig = {};
|
|
236
|
+
this.totalRows = 0;
|
|
237
|
+
this.searchQuery = '';
|
|
238
|
+
}
|
|
239
|
+
handleDataChange() {
|
|
240
|
+
this.parseData();
|
|
241
|
+
}
|
|
242
|
+
handleConfigChange() {
|
|
243
|
+
this.parseConfig();
|
|
244
|
+
}
|
|
245
|
+
componentWillLoad() {
|
|
246
|
+
this.parseConfig();
|
|
247
|
+
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
248
|
+
}
|
|
249
|
+
componentDidLoad() {
|
|
250
|
+
this.setupPaginationListener();
|
|
251
|
+
}
|
|
252
|
+
componentDidUpdate() {
|
|
253
|
+
this.setupPaginationListener();
|
|
254
|
+
}
|
|
255
|
+
parseData() {
|
|
256
|
+
try {
|
|
257
|
+
this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
258
|
+
this.totalRows = this.tableData.length;
|
|
259
|
+
this.updateColumns();
|
|
260
|
+
this.currentPage = 1;
|
|
261
|
+
}
|
|
262
|
+
catch (error) {
|
|
263
|
+
// eslint-disable-next-line
|
|
264
|
+
console.error('Failed to parse data:', error);
|
|
265
|
+
this.tableData = [];
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
parseConfig() {
|
|
269
|
+
try {
|
|
270
|
+
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
271
|
+
}
|
|
272
|
+
catch (error) {
|
|
273
|
+
// eslint-disable-next-line
|
|
274
|
+
console.error('Failed to parse config:', error);
|
|
275
|
+
this.parsedConfig = {};
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
async fetchData() {
|
|
279
|
+
try {
|
|
280
|
+
const response = await fetch(this.endpoint);
|
|
281
|
+
const data = await response.json();
|
|
282
|
+
this.data = data;
|
|
283
|
+
}
|
|
284
|
+
catch (error) {
|
|
285
|
+
// eslint-disable-next-line
|
|
286
|
+
console.error('Failed to fetch data:', error);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
setupPaginationListener() {
|
|
290
|
+
if (!this.shouldEnablePagination()) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
294
|
+
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
295
|
+
paginationEl.addEventListener('pageChange', (event) => this.handlePageChange(event.detail));
|
|
296
|
+
paginationEl.setAttribute('listener-attached', 'true');
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
getFilteredRows() {
|
|
300
|
+
return this.tableData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
301
|
+
}
|
|
302
|
+
getPaginatedRows() {
|
|
303
|
+
const filteredRows = this.getFilteredRows();
|
|
304
|
+
this.totalRows = filteredRows.length;
|
|
305
|
+
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
306
|
+
return filteredRows.slice(start, start + this.rowsPerPage);
|
|
307
|
+
}
|
|
308
|
+
handlePageChange(newPage) {
|
|
309
|
+
this.currentPage = newPage;
|
|
310
|
+
color.sendAnalytics({
|
|
311
|
+
category: 'ui-component',
|
|
312
|
+
parentContext: null,
|
|
313
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
314
|
+
name: `${newPage}` || '',
|
|
315
|
+
action: 'page'
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
handleSearch(event) {
|
|
319
|
+
this.searchQuery = event.target.value;
|
|
320
|
+
this.currentPage = 1;
|
|
321
|
+
/*sendAnalytics({
|
|
322
|
+
category: 'ui-component',
|
|
323
|
+
parentContext: null,
|
|
324
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-input-field/search`,
|
|
325
|
+
name: `${this.searchQuery}` || '',
|
|
326
|
+
action: 'page'
|
|
327
|
+
});*/
|
|
328
|
+
}
|
|
329
|
+
renderCell(value, column) {
|
|
330
|
+
var _a;
|
|
331
|
+
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
332
|
+
return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (index.h("div", { innerHTML: value })) : format === 'bold' ? (index.h("strong", null, value)) : format === 'code' ? (index.h("code", null, value)) : (value);
|
|
333
|
+
}
|
|
334
|
+
shouldEnablePagination() {
|
|
335
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
336
|
+
}
|
|
337
|
+
updateColumns() {
|
|
338
|
+
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
339
|
+
}
|
|
340
|
+
getVisibleColumnsCount() {
|
|
341
|
+
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
342
|
+
}
|
|
343
|
+
divisionFactor() {
|
|
344
|
+
let divisionFactor = 1;
|
|
345
|
+
if (this.columnSize === 'medium') {
|
|
346
|
+
divisionFactor = 2;
|
|
347
|
+
}
|
|
348
|
+
else if (this.columnSize === 'large') {
|
|
349
|
+
divisionFactor = 4;
|
|
350
|
+
}
|
|
351
|
+
return divisionFactor;
|
|
352
|
+
}
|
|
353
|
+
render() {
|
|
354
|
+
// Get the paginated rows and calculate the last page.
|
|
355
|
+
const paginatedRows = this.getPaginatedRows();
|
|
356
|
+
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
357
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
358
|
+
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
359
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
360
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
361
|
+
? Number(this.hostWidth)
|
|
362
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
363
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
364
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
365
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
366
|
+
: 400;
|
|
367
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
368
|
+
return (index.h("div", { key: '69fd87330d2049eeb91751c781c7aa753fa89883' }, this.searchEnabled && (index.h("div", { key: '2f9680dd17b852b140fe560f7979e1dd58236c5a' }, index.h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
369
|
+
// @ts-ignore
|
|
370
|
+
onInput: (event) => this.handleSearch(event) }))), index.h("div", { key: 'd67edb24308e526a3e860a90250d58cf8bfee9c8', class: "mt-20" }, index.h("table", { key: '9a2ef219110e459ac670a0f9c2e62c600f6b5acd', class: "block overflow-x-auto mt-6 p-0" }, index.h("thead", { key: '81bae222447e805d06642dda19903d5bf99f2b01' }, index.h("tr", { key: '582d7ea661823b81ccdf3adc9769fe53cf56f04c', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
371
|
+
var _a;
|
|
372
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (index.h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
373
|
+
}))), index.h("tbody", { key: 'ce7f87e665c394c5e9f2201ef2658e888ea07948' }, paginatedRows.map((row) => (index.h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
374
|
+
var _a;
|
|
375
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (index.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)));
|
|
376
|
+
}))))))), this.shouldEnablePagination() && (index.h("div", { key: '0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0', class: "mt-20" }, index.h("eds-pagination", { key: '5192f3f4b2ee93d5864d1afed3341a122c826d97', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
377
|
+
}
|
|
378
|
+
get hostEl() { return index.getElement(this); }
|
|
379
|
+
static get watchers() { return {
|
|
380
|
+
"data": ["handleDataChange", "parseData"],
|
|
381
|
+
"config": ["handleConfigChange"]
|
|
382
|
+
}; }
|
|
383
|
+
};
|
|
384
|
+
EdsTable.style = EdsTableStyle0;
|
|
385
|
+
|
|
212
386
|
exports.eds_pagination = EdsPagination;
|
|
387
|
+
exports.eds_table = EdsTable;
|