@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
|
@@ -5,18 +5,72 @@ import "prismjs/components/prism-bash"; // Add support for Bash/Shell
|
|
|
5
5
|
import "prismjs/components/prism-yaml"; // Add YAML support
|
|
6
6
|
//import 'prismjs/components/prism-html';
|
|
7
7
|
import "prismjs/components/prism-css";
|
|
8
|
+
//import { sendAnalytics } from '@ebrains/utils';
|
|
9
|
+
/**
|
|
10
|
+
* A component that displays a code block with syntax highlighting.
|
|
11
|
+
*
|
|
12
|
+
* Uses Prism.js for syntax highlighting. Supports multiple languages such as JavaScript, HTML, CSS,
|
|
13
|
+
* Python, Bash/Shell, and YAML.
|
|
14
|
+
*
|
|
15
|
+
* */
|
|
8
16
|
export class EdsCodeBlock {
|
|
9
17
|
constructor() {
|
|
10
18
|
this.code = undefined;
|
|
11
19
|
this.language = undefined;
|
|
12
20
|
this.copied = false;
|
|
13
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Copies the current code content to the clipboard and sets a temporary copied state.
|
|
24
|
+
*
|
|
25
|
+
* @private
|
|
26
|
+
* @returns {void}
|
|
27
|
+
*/
|
|
14
28
|
copyToClipboard() {
|
|
15
29
|
navigator.clipboard.writeText(this.code).then(() => {
|
|
16
30
|
this.copied = true;
|
|
31
|
+
/*const analyticsName = this.createHumanFriendlyAnalyticsName(this.code, this.language);
|
|
32
|
+
sendAnalytics({
|
|
33
|
+
category: 'ui-component',
|
|
34
|
+
parentContext: null,
|
|
35
|
+
tag: this.el.tagName.toLowerCase(),
|
|
36
|
+
name: analyticsName || '',
|
|
37
|
+
action: 'copy'
|
|
38
|
+
});*/
|
|
17
39
|
setTimeout(() => (this.copied = false), 2000);
|
|
18
40
|
});
|
|
19
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Utility function that creates a human-friendly analytics name based on the code and language.
|
|
44
|
+
* It uses:
|
|
45
|
+
* - The language (in uppercase)
|
|
46
|
+
* - The number of non-empty lines in the code
|
|
47
|
+
* - The first non-empty line of code (truncated to 30 characters, if needed)
|
|
48
|
+
*
|
|
49
|
+
* returns A descriptive analytics name.
|
|
50
|
+
*/
|
|
51
|
+
/*private createHumanFriendlyAnalyticsName(code: string, language: string): string {
|
|
52
|
+
// Count non-empty lines
|
|
53
|
+
const lines = code.split('\n').filter(line => line.trim() !== '').length;
|
|
54
|
+
|
|
55
|
+
// Find the first non-empty line and trim it
|
|
56
|
+
let firstNonEmptyLine = code.split('\n').find(line => line.trim() !== '');
|
|
57
|
+
firstNonEmptyLine = firstNonEmptyLine ? firstNonEmptyLine.trim() : '';
|
|
58
|
+
|
|
59
|
+
// Truncate the snippet if it’s too long
|
|
60
|
+
if (firstNonEmptyLine.length > 30) {
|
|
61
|
+
firstNonEmptyLine = firstNonEmptyLine.substring(0, 30) + '...';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return `CodeBlock:${language.toLowerCase()}|${lines}-line(s)|${firstNonEmptyLine.toLowerCase()}`;
|
|
65
|
+
}*/
|
|
66
|
+
/**
|
|
67
|
+
* Returns the syntax-highlighted HTML for the code.
|
|
68
|
+
* If the provided language is supported by Prism, this method returns the highlighted code.
|
|
69
|
+
* Otherwise, it logs a warning and returns the raw code.
|
|
70
|
+
*
|
|
71
|
+
* @private
|
|
72
|
+
* @returns {string} The highlighted HTML string for the code block.
|
|
73
|
+
*/
|
|
20
74
|
getHighlightedCode() {
|
|
21
75
|
if (this.language && Prism.languages[this.language]) {
|
|
22
76
|
return Prism.highlight(this.code, Prism.languages[this.language], this.language);
|
|
@@ -26,7 +80,7 @@ export class EdsCodeBlock {
|
|
|
26
80
|
return this.code; // Fallback if language is not provided or unsupported
|
|
27
81
|
}
|
|
28
82
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
83
|
+
return (h("div", { key: '00eba9265ee17605f699d1e5606013b68e900b29', class: "relative bg-stronger rounded-sm" }, h("div", { key: '1192584f04de5ff74e91c88597a3360b92053456', class: "text-inverse flex justify-between items-center p-8" }, this.language ? (h("span", { class: "f-ui-03" }, this.language.toUpperCase())) : (h("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, h("code", { innerHTML: this.getHighlightedCode() }))), h("span", { key: '3666b6529a16a8cc64f448527db4ddee08f977a3', "aria-hidden": "true", class: "w-20 h-20 mt-8" }, h("eds-icon-wrapper", { key: 'f222d95a2e548429f6c4de96a7646e3cef1f360f', icon: this.copied ? 'success' : 'copy', onClick: () => this.copyToClipboard() })), h("span", { key: '8c539deda773909c01a41eb04ee51380c0a9c4bb', class: "sr-only" }, "Copy Code")), this.language && (h("pre", { key: '99541dedb32c543da5e780ffee4460333fbb3724', class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, h("code", { key: '4e6ae6fcfae3de8c1fe5ad9d22309e0c8bee0c2c', innerHTML: this.getHighlightedCode() })))));
|
|
30
84
|
}
|
|
31
85
|
static get is() { return "eds-code-block"; }
|
|
32
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +108,7 @@ export class EdsCodeBlock {
|
|
|
54
108
|
"optional": false,
|
|
55
109
|
"docs": {
|
|
56
110
|
"tags": [],
|
|
57
|
-
"text": "The code content to display"
|
|
111
|
+
"text": "The code content to display."
|
|
58
112
|
},
|
|
59
113
|
"attribute": "code",
|
|
60
114
|
"reflect": false
|
|
@@ -83,4 +137,5 @@ export class EdsCodeBlock {
|
|
|
83
137
|
"copied": {}
|
|
84
138
|
};
|
|
85
139
|
}
|
|
140
|
+
static get elementRef() { return "el"; }
|
|
86
141
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: 'Components/CodeBlock',
|
|
3
|
+
component: 'eds-code-block',
|
|
4
|
+
argTypes: {
|
|
5
|
+
code: {
|
|
6
|
+
control: 'text',
|
|
7
|
+
description: 'The code content to display in the code block.'
|
|
8
|
+
},
|
|
9
|
+
language: {
|
|
10
|
+
control: 'text',
|
|
11
|
+
description: 'The language type for syntax highlighting (e.g., "javascript", "python", "bash", "yaml").'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
args: {
|
|
15
|
+
code: "const greeting = 'Hello, world!';\nconsole.log(greeting);",
|
|
16
|
+
language: 'javascript'
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export const Default = {
|
|
20
|
+
render: (args) => `
|
|
21
|
+
<eds-code-block
|
|
22
|
+
code="${args.code}"
|
|
23
|
+
language="${args.language}"
|
|
24
|
+
></eds-code-block>
|
|
25
|
+
`,
|
|
26
|
+
args: {
|
|
27
|
+
code: "const greeting = 'Hello, world!';\nconsole.log(greeting);",
|
|
28
|
+
language: 'javascript'
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export const PythonExample = {
|
|
32
|
+
render: (args) => `
|
|
33
|
+
<eds-code-block
|
|
34
|
+
code="${args.code}"
|
|
35
|
+
language="${args.language}"
|
|
36
|
+
></eds-code-block>
|
|
37
|
+
`,
|
|
38
|
+
args: {
|
|
39
|
+
code: "def hello_world():\n print('Hello, world!')",
|
|
40
|
+
language: 'python'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export const BashExample = {
|
|
44
|
+
render: (args) => `
|
|
45
|
+
<eds-code-block
|
|
46
|
+
code="${args.code}"
|
|
47
|
+
language="${args.language}"
|
|
48
|
+
></eds-code-block>
|
|
49
|
+
`,
|
|
50
|
+
args: {
|
|
51
|
+
code: '#!/bin/bash\necho "Hello, world!"',
|
|
52
|
+
language: 'bash'
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export const YamlExample = {
|
|
56
|
+
render: (args) => `
|
|
57
|
+
<eds-code-block
|
|
58
|
+
code="${args.code}"
|
|
59
|
+
language="${args.language}"
|
|
60
|
+
></eds-code-block>
|
|
61
|
+
`,
|
|
62
|
+
args: {
|
|
63
|
+
code: 'greeting: "Hello, world!"',
|
|
64
|
+
language: 'yaml'
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
export const UnsupportedLanguage = {
|
|
68
|
+
render: (args) => `
|
|
69
|
+
<eds-code-block
|
|
70
|
+
code="${args.code}"
|
|
71
|
+
language="${args.language}"
|
|
72
|
+
></eds-code-block>
|
|
73
|
+
`,
|
|
74
|
+
args: {
|
|
75
|
+
code: 'This is a code block with an unsupported language. It will render without syntax highlighting.',
|
|
76
|
+
language: 'unknown'
|
|
77
|
+
}
|
|
78
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sendAnalytics } from "../../../../../../../packages/utils/src/index";
|
|
1
2
|
import { h } from "@stencil/core";
|
|
2
3
|
/**
|
|
3
4
|
* `EdsDropdown` is a versatile dropdown component that provides a list of items
|
|
@@ -19,6 +20,7 @@ export class EdsDropdown {
|
|
|
19
20
|
* Toggles the visibility of the dropdown and manages focus.
|
|
20
21
|
*/
|
|
21
22
|
this.handleClick = () => {
|
|
23
|
+
var _a;
|
|
22
24
|
this.isOpen = !this.isOpen;
|
|
23
25
|
if (this.isOpen) {
|
|
24
26
|
this.focusIndex = 0;
|
|
@@ -27,6 +29,13 @@ export class EdsDropdown {
|
|
|
27
29
|
else {
|
|
28
30
|
this.closeDropdown();
|
|
29
31
|
}
|
|
32
|
+
sendAnalytics({
|
|
33
|
+
category: 'ui-component',
|
|
34
|
+
parentContext: null,
|
|
35
|
+
tag: this.host.tagName.toLowerCase(),
|
|
36
|
+
name: ((_a = this.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || '',
|
|
37
|
+
action: this.isOpen ? 'expanded' : 'collapsed'
|
|
38
|
+
});
|
|
30
39
|
};
|
|
31
40
|
this.icon = 'chevron-down';
|
|
32
41
|
this.label = undefined;
|
|
@@ -93,39 +102,20 @@ export class EdsDropdown {
|
|
|
93
102
|
componentDidLoad() {
|
|
94
103
|
var _a;
|
|
95
104
|
this.focusableItems = Array.from(((_a = this.dropdownContent) === null || _a === void 0 ? void 0 : _a.querySelectorAll('a, button')) || []);
|
|
96
|
-
const btns = this.host.shadowRoot.querySelectorAll('eds-button');
|
|
97
|
-
btns.forEach((btn) => {
|
|
98
|
-
this.emitContext(btn);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Emits a custom event called `parentContext` for a given button element.
|
|
103
|
-
* Provides context information about the dropdown component.
|
|
104
|
-
*
|
|
105
|
-
* @param linkElement - The button element to which the event will be dispatched.
|
|
106
|
-
*/
|
|
107
|
-
emitContext(linkElement) {
|
|
108
|
-
const event = new CustomEvent('parentContext', {
|
|
109
|
-
detail: {
|
|
110
|
-
componentName: this.host.tagName.toLowerCase(),
|
|
111
|
-
identifier: null
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
linkElement.dispatchEvent(event);
|
|
115
105
|
}
|
|
116
106
|
/**
|
|
117
107
|
* Renders the dropdown component and displays its content when open.
|
|
118
108
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
119
109
|
*/
|
|
120
110
|
render() {
|
|
121
|
-
return (h("div", { key: '
|
|
111
|
+
return (h("div", { key: '809cb733330db434f94f854ed4d1ee375f598297', class: "z-focus relative", ref: (el) => (this.dropdownContent = el) }, h("eds-button", { key: 'c80f2930b335708a2a01d06b565673597bd8d926', label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), h("nav", { key: '7b3ccb2ab29474a4795d5491960e0713aefcd624', class: {
|
|
122
112
|
'shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8': true,
|
|
123
113
|
'left-4': this.dropdownPos === 'left' && this.dropdownOffset,
|
|
124
114
|
'left-0': this.dropdownPos === 'left' && !this.dropdownOffset,
|
|
125
115
|
'right-4': this.dropdownPos === 'right' && this.dropdownOffset,
|
|
126
116
|
'right-0': this.dropdownPos === 'right' && !this.dropdownOffset,
|
|
127
117
|
'rounded-lg': this.rounded
|
|
128
|
-
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, h("slot", { key: '
|
|
118
|
+
}, style: { display: this.isOpen ? 'block' : 'none' }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, h("slot", { key: 'c514c5dca893708fd1660a61cfeb1607229bbff5' }))));
|
|
129
119
|
}
|
|
130
120
|
static get is() { return "eds-dropdown"; }
|
|
131
121
|
static get encapsulation() { return "shadow"; }
|
|
@@ -125,7 +125,6 @@ export class EdsForm {
|
|
|
125
125
|
this.formSubmitting.emit(this.isSubmitting);
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
-
this.smallAlert = false;
|
|
129
128
|
this.setFormUrl = true;
|
|
130
129
|
this.submitBtn = true;
|
|
131
130
|
this.submitBtnLabel = 'Submit';
|
|
@@ -134,7 +133,7 @@ export class EdsForm {
|
|
|
134
133
|
this.submitBtnHintMessage = 'To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.';
|
|
135
134
|
this.endpoint = undefined;
|
|
136
135
|
this.name = 'form';
|
|
137
|
-
this.fields =
|
|
136
|
+
this.fields = [];
|
|
138
137
|
this.values = {};
|
|
139
138
|
this.coupleAuth = false;
|
|
140
139
|
this.formSubmitted = false;
|
|
@@ -144,6 +143,7 @@ export class EdsForm {
|
|
|
144
143
|
this.alertMessage = null;
|
|
145
144
|
this.isAuthenticated = false;
|
|
146
145
|
this.authUser = undefined;
|
|
146
|
+
this.parsedFields = [];
|
|
147
147
|
}
|
|
148
148
|
onAuthStatusChanged(event) {
|
|
149
149
|
var _a;
|
|
@@ -151,6 +151,7 @@ export class EdsForm {
|
|
|
151
151
|
this.authUser = event.detail.user;
|
|
152
152
|
}
|
|
153
153
|
componentDidLoad() {
|
|
154
|
+
this.parseFields(this.fields);
|
|
154
155
|
// Emit context for each eds-link element after the component is fully loaded
|
|
155
156
|
const links = this.el.querySelectorAll('eds-button');
|
|
156
157
|
links.forEach((link) => {
|
|
@@ -223,7 +224,7 @@ export class EdsForm {
|
|
|
223
224
|
validateForm() {
|
|
224
225
|
this.errors = {};
|
|
225
226
|
this.hasError = false;
|
|
226
|
-
this.
|
|
227
|
+
this.parsedFields.forEach((field) => {
|
|
227
228
|
if (field.type !== 'hidden') {
|
|
228
229
|
if ((field.type === 'checkbox' || field.type === 'radio') && !field.options) {
|
|
229
230
|
// Single checkbox validation
|
|
@@ -305,19 +306,38 @@ export class EdsForm {
|
|
|
305
306
|
});
|
|
306
307
|
return formData;
|
|
307
308
|
}
|
|
308
|
-
|
|
309
|
-
|
|
309
|
+
parseFields(newValue) {
|
|
310
|
+
try {
|
|
311
|
+
if (typeof newValue === 'string') {
|
|
312
|
+
this.parsedFields = JSON.parse(newValue);
|
|
313
|
+
}
|
|
314
|
+
else if (Array.isArray(newValue)) {
|
|
315
|
+
this.parsedFields = newValue;
|
|
316
|
+
}
|
|
317
|
+
else if (newValue && typeof newValue === 'object') {
|
|
318
|
+
// In case a single object is passed, wrap it in an array.
|
|
319
|
+
this.parsedFields = newValue;
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
this.parsedFields = [];
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
catch (error) {
|
|
326
|
+
// eslint-disable-next-line
|
|
327
|
+
console.error('Error parsing fields prop:', error);
|
|
328
|
+
this.parsedFields = [];
|
|
329
|
+
}
|
|
310
330
|
}
|
|
311
331
|
render() {
|
|
312
|
-
const hiddenFields = this.
|
|
313
|
-
const otherFields = this.
|
|
314
|
-
return (h("form", { key: '
|
|
332
|
+
const hiddenFields = this.parsedFields.filter((field) => field.type === 'hidden');
|
|
333
|
+
const otherFields = this.parsedFields.filter((field) => field.type !== 'hidden');
|
|
334
|
+
return (h("form", { key: '0a106caa8aa9f056b55acf6fecfbc7090c4411d2', ref: (el) => (this.formEl = el), enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, h("div", { key: '3478d82640378d9a1c0c09394453e2118b1b3ca9' }, h("slot", { key: '9bc37f54c03b2b0f831da917b6ce6bab2ec11084' }), hiddenFields.map((field, index) => (h("eds-input", { key: index, type: "hidden", name: field.name, value: field.value }))), otherFields.map((field, index) => {
|
|
315
335
|
var _a, _b;
|
|
316
336
|
if (!this.isFieldVisible(field)) {
|
|
317
337
|
return null;
|
|
318
338
|
}
|
|
319
339
|
return (h("eds-input-field", { key: index, name: field.name, id: `${this.name}_${field.name}`, label: field.label, type: field.type, icon: field.icon || null, required: field.required, maxLength: field.maxlength, hint: field.hint, error: ((_a = this.errors[field.name]) === null || _a === void 0 ? void 0 : _a.length) > 0, errorMessage: (_b = this.errors[field.name]) === null || _b === void 0 ? void 0 : _b.join('<br />'), onInput: (e) => this.handleChange(e, field), class: index > 0 ? 'mt-20' : '', options: field.options }));
|
|
320
|
-
})), this.submitBtn && (h("div", { key: '
|
|
340
|
+
})), this.submitBtn && (h("div", { key: 'ca221e8c5c18cf4a107581736728f84cea7831d0', class: "mt-20" }, h("eds-button", { key: 'eef3cf052beb62703c1df74d142650194d60c501', intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || (this.coupleAuth && !this.isAuthenticated), loading: this.isSubmitting, onClick: (e) => this.handleSubmit(e) }), this.coupleAuth && !this.isAuthenticated ? (h("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage)) : null)), this.alertMessage && (this.formSubmitted || this.hasError) && (h("div", { key: '69861c8776b99e26a08585a5a8c893c85a2d9999', class: "mt-20" }, h("eds-alert", { key: 'b4d225d8efcbe6cde95789c367f0ecf94f217c9c', message: this.alertMessage, intent: this.hasError ? 'error' : 'success', direction: "horizontal" })))));
|
|
321
341
|
}
|
|
322
342
|
static get is() { return "eds-form"; }
|
|
323
343
|
static get originalStyleUrls() {
|
|
@@ -332,24 +352,6 @@ export class EdsForm {
|
|
|
332
352
|
}
|
|
333
353
|
static get properties() {
|
|
334
354
|
return {
|
|
335
|
-
"smallAlert": {
|
|
336
|
-
"type": "boolean",
|
|
337
|
-
"mutable": false,
|
|
338
|
-
"complexType": {
|
|
339
|
-
"original": "boolean",
|
|
340
|
-
"resolved": "boolean",
|
|
341
|
-
"references": {}
|
|
342
|
-
},
|
|
343
|
-
"required": false,
|
|
344
|
-
"optional": true,
|
|
345
|
-
"docs": {
|
|
346
|
-
"tags": [],
|
|
347
|
-
"text": "If `true`, displays a small alert for messages."
|
|
348
|
-
},
|
|
349
|
-
"attribute": "small-alert",
|
|
350
|
-
"reflect": false,
|
|
351
|
-
"defaultValue": "false"
|
|
352
|
-
},
|
|
353
355
|
"setFormUrl": {
|
|
354
356
|
"type": "boolean",
|
|
355
357
|
"mutable": false,
|
|
@@ -497,8 +499,8 @@ export class EdsForm {
|
|
|
497
499
|
"type": "string",
|
|
498
500
|
"mutable": false,
|
|
499
501
|
"complexType": {
|
|
500
|
-
"original": "string",
|
|
501
|
-
"resolved": "string",
|
|
502
|
+
"original": "string | any[]",
|
|
503
|
+
"resolved": "any[] | string",
|
|
502
504
|
"references": {}
|
|
503
505
|
},
|
|
504
506
|
"required": false,
|
|
@@ -508,7 +510,8 @@ export class EdsForm {
|
|
|
508
510
|
"text": "A JSON string representing the fields in the form.\nExample:\n```json\n[\n { \"name\": \"email\", \"label\": \"Email\", \"type\": \"text\", \"required\": true },\n { \"name\": \"password\", \"label\": \"Password\", \"type\": \"password\", \"required\": true }\n]\n```"
|
|
509
511
|
},
|
|
510
512
|
"attribute": "fields",
|
|
511
|
-
"reflect": false
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"defaultValue": "[]"
|
|
512
515
|
},
|
|
513
516
|
"coupleAuth": {
|
|
514
517
|
"type": "boolean",
|
|
@@ -539,7 +542,8 @@ export class EdsForm {
|
|
|
539
542
|
"isSubmitting": {},
|
|
540
543
|
"alertMessage": {},
|
|
541
544
|
"isAuthenticated": {},
|
|
542
|
-
"authUser": {}
|
|
545
|
+
"authUser": {},
|
|
546
|
+
"parsedFields": {}
|
|
543
547
|
};
|
|
544
548
|
}
|
|
545
549
|
static get events() {
|
|
@@ -561,6 +565,12 @@ export class EdsForm {
|
|
|
561
565
|
}];
|
|
562
566
|
}
|
|
563
567
|
static get elementRef() { return "el"; }
|
|
568
|
+
static get watchers() {
|
|
569
|
+
return [{
|
|
570
|
+
"propName": "fields",
|
|
571
|
+
"methodName": "parseFields"
|
|
572
|
+
}];
|
|
573
|
+
}
|
|
564
574
|
static get listeners() {
|
|
565
575
|
return [{
|
|
566
576
|
"name": "authStatusChanged",
|
|
@@ -17,7 +17,6 @@ export default {
|
|
|
17
17
|
defaultValue: 'Please fix the errors in the form.'
|
|
18
18
|
},
|
|
19
19
|
submitBtn: { control: 'boolean', description: 'Show submit button', defaultValue: true },
|
|
20
|
-
smallAlert: { control: 'boolean', description: 'Show small alert message', defaultValue: false },
|
|
21
20
|
setFormUrl: { control: 'boolean', description: 'Include the current URL in the form data', defaultValue: true }
|
|
22
21
|
}
|
|
23
22
|
};
|
|
@@ -29,7 +28,6 @@ const Template = (args) => html `
|
|
|
29
28
|
success-message="${args.successMessage}"
|
|
30
29
|
error-message="${args.errorMessage}"
|
|
31
30
|
?submit-btn="${args.submitBtn}"
|
|
32
|
-
?small-alert="${args.smallAlert}"
|
|
33
31
|
?set-form-url="${args.setFormUrl}"
|
|
34
32
|
></eds-form>
|
|
35
33
|
`;
|
|
@@ -84,6 +82,5 @@ Default.args = {
|
|
|
84
82
|
successMessage: 'Form submitted successfully!',
|
|
85
83
|
errorMessage: 'Please fix the errors in the form.',
|
|
86
84
|
submitBtn: true,
|
|
87
|
-
smallAlert: false,
|
|
88
85
|
setFormUrl: true
|
|
89
86
|
};
|
|
@@ -43,25 +43,26 @@ Default.args = {
|
|
|
43
43
|
bg: true,
|
|
44
44
|
withHover: true
|
|
45
45
|
};
|
|
46
|
-
export const SmallFrame = Template.bind({});
|
|
46
|
+
/*export const SmallFrame = Template.bind({});
|
|
47
47
|
SmallFrame.args = {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
frameLabel: 'Small Frame',
|
|
49
|
+
urlLabel: 'Small Frame Link',
|
|
50
|
+
urlLink: 'https://gitlab-org.gitlab.io/gitlab-ui?path=%2Fstory%2Fbase-card--default',
|
|
51
|
+
src: 'https://gitlab-org.gitlab.io/gitlab-ui/iframe.html?id=base-card--default&viewMode=story',
|
|
52
|
+
intent: 'secondary',
|
|
53
|
+
tiny: true,
|
|
54
|
+
bg: true,
|
|
55
|
+
withHover: false
|
|
56
56
|
};
|
|
57
|
+
|
|
57
58
|
export const ErrorState = Template.bind({});
|
|
58
59
|
ErrorState.args = {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
60
|
+
frameLabel: 'Error Frame',
|
|
61
|
+
urlLabel: 'Error Link',
|
|
62
|
+
urlLink: 'https://errorframe.com',
|
|
63
|
+
src: 'https://invalid-url.com', // Simulating a broken URL to trigger the error state
|
|
64
|
+
intent: 'inverse',
|
|
65
|
+
tiny: false,
|
|
66
|
+
bg: false,
|
|
67
|
+
withHover: true
|
|
68
|
+
};*/
|