@ebrains/components 0.2.0-alpha.0 → 0.3.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-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.cjs.entry.js +96 -0
- package/dist/cjs/eds-avatar_17.cjs.entry.js +1454 -0
- package/dist/cjs/eds-card-desc_3.cjs.entry.js +117 -0
- package/dist/cjs/eds-card-generic.cjs.entry.js +105 -0
- package/dist/cjs/eds-card-section.cjs.entry.js +17 -6
- 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-form.cjs.entry.js +322 -0
- package/dist/cjs/eds-input_7.cjs.entry.js +316 -0
- 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-pagination.cjs.entry.js → eds-pagination_2.cjs.entry.js} +157 -0
- package/dist/cjs/eds-progress-bar.cjs.entry.js +29 -0
- package/dist/cjs/eds-svg-repository.cjs.entry.js +7 -1
- package/dist/cjs/eds-tabs-content.cjs.entry.js +2 -2
- package/dist/cjs/eds-tabs.cjs.entry.js +26 -5
- package/dist/cjs/eds-timeline.cjs.entry.js +76 -0
- package/dist/cjs/eds-trl.cjs.entry.js +52 -0
- package/dist/cjs/incorrect-use-of-colors.cjs.entry.js +1 -1
- package/dist/cjs/index-f08e4f5c.js +38 -30
- 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 +1 -0
- package/dist/collection/components/eds-breadcrump/eds-breadcrump.js +13 -12
- package/dist/collection/components/eds-button/eds-button.js +3 -3
- package/dist/collection/components/eds-input-elements/eds-input-select/eds-input-select.js +140 -15
- package/dist/collection/components/eds-table/eds-table.css +4 -0
- package/dist/collection/components/eds-table/eds-table.js +69 -11
- package/dist/collection/components/eds-table/eds-table.stories.js +14 -93
- package/dist/collection/components/eds-timeline/eds-timeline.js +26 -16
- package/dist/collection/components/eds-trl/eds-trl.js +30 -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 +19 -8
- package/dist/collection/shared-ui/eds-card-section/eds-card-section.stories.js +40 -7
- 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/components.css +17 -10
- package/dist/components/components.esm.js +1 -1
- package/dist/components/correct-use-of-colors.js +1 -1
- package/dist/components/eds-breadcrumb.js +13 -12
- package/dist/components/eds-button2.js +1 -1
- package/dist/components/eds-card-section.js +17 -6
- 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-footer2.js +1 -1
- package/dist/components/eds-header.js +6 -2
- package/dist/components/eds-input-select2.js +70 -2
- 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-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 +36 -14
- package/dist/components/eds-tabs-content.js +2 -2
- package/dist/components/eds-tabs.js +26 -5
- package/dist/components/eds-timeline.js +23 -10
- package/dist/components/eds-toast-manager.js +1 -1
- package/dist/components/eds-trl.js +95 -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-9722811d.entry.js → p-2e8459ef.entry.js} +1 -1
- package/dist/components/p-3617841d.entry.js +1 -0
- package/dist/components/p-3ff76976.entry.js +1 -0
- package/dist/components/{p-bb60412b.entry.js → p-435a14c1.entry.js} +1 -1
- package/dist/components/p-52ac3456.entry.js +1 -0
- package/dist/components/p-57c964c5.entry.js +1 -0
- package/dist/components/p-5a43503a.entry.js +1 -0
- package/dist/components/p-5afb626c.entry.js +1 -0
- package/dist/components/p-5d7af761.entry.js +1 -0
- package/dist/components/p-6378fb3e.entry.js +1 -0
- package/dist/components/p-7215789a.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-84957b6d.entry.js +1 -0
- package/dist/components/{p-1bcfbaf1.entry.js → p-87830085.entry.js} +1 -1
- 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-be6c80da.entry.js +1 -0
- package/dist/components/p-d1f6a722.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-d7a92efb.entry.js +1 -0
- package/dist/components/p-fd27e56c.entry.js +1 -0
- 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-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.entry.js +92 -0
- package/dist/esm/eds-avatar_17.entry.js +1434 -0
- package/dist/esm/eds-card-desc_3.entry.js +111 -0
- package/dist/esm/eds-card-generic.entry.js +101 -0
- package/dist/esm/eds-card-section.entry.js +17 -6
- 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-form.entry.js +318 -0
- package/dist/esm/eds-input_7.entry.js +306 -0
- package/dist/esm/eds-login.entry.js +1 -1
- package/dist/esm/eds-logo-variations.entry.js +23 -0
- package/dist/esm/{eds-pagination.entry.js → eds-pagination_2.entry.js} +157 -1
- package/dist/esm/eds-progress-bar.entry.js +25 -0
- package/dist/esm/eds-svg-repository.entry.js +8 -2
- package/dist/esm/eds-tabs-content.entry.js +2 -2
- package/dist/esm/eds-tabs.entry.js +26 -5
- package/dist/esm/eds-timeline.entry.js +72 -0
- package/dist/esm/eds-trl.entry.js +48 -0
- package/dist/esm/incorrect-use-of-colors.entry.js +1 -1
- package/dist/esm/index-e96badea.js +38 -30
- 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 +378 -178
- package/dist/hydrate/index.mjs +378 -178
- 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-input-elements/eds-input-select/eds-input-select.d.ts +106 -3
- 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-trl/eds-trl.d.ts +4 -1
- package/dist/types/components.d.ts +217 -38
- 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 +6 -1
- package/dist/types/shared-ui/eds-card-section/eds-card-section.stories.d.ts +20 -1
- 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-alert_28.cjs.entry.js +0 -2059
- 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-fullscreen-menu.cjs.entry.js +0 -100
- 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-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-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-49958f77.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-9000b245.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-alert_28.entry.js +0 -2028
- 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-fullscreen-menu.entry.js +0 -96
- package/dist/esm/eds-social-networks.entry.js +0 -62
- package/dist/esm/eds-table.entry.js +0 -139
- package/dist/esm/logo-variations-horizontal.entry.js +0 -27
- package/dist/esm/logo-variations-vertical.entry.js +0 -27
- /package/dist/collection/shared-ui/eds-social-networks/{eds-social-network.css → eds-social-networks.css} +0 -0
package/dist/hydrate/index.js
CHANGED
|
@@ -2309,7 +2309,7 @@ class ColorPrimaryPalette {
|
|
|
2309
2309
|
];
|
|
2310
2310
|
}
|
|
2311
2311
|
render() {
|
|
2312
|
-
return (hAsync("ul", { key: '
|
|
2312
|
+
return (hAsync("ul", { key: '581f0978ebeda33a156d2baf3cc41a10897da1cf', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2313
2313
|
}
|
|
2314
2314
|
static get cmpMeta() { return {
|
|
2315
2315
|
"$flags$": 0,
|
|
@@ -2381,7 +2381,7 @@ class ColorSecondaryPalette {
|
|
|
2381
2381
|
this.show = undefined;
|
|
2382
2382
|
}
|
|
2383
2383
|
render() {
|
|
2384
|
-
return (hAsync("ul", { key: '
|
|
2384
|
+
return (hAsync("ul", { key: '7f2e8e7efa207bedaa1e19c0f7d87459a5c22693', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
2385
2385
|
}
|
|
2386
2386
|
static get cmpMeta() { return {
|
|
2387
2387
|
"$flags$": 0,
|
|
@@ -2446,7 +2446,7 @@ class ColorSupportPalette {
|
|
|
2446
2446
|
];
|
|
2447
2447
|
}
|
|
2448
2448
|
render() {
|
|
2449
|
-
return (hAsync("ul", { key: '
|
|
2449
|
+
return (hAsync("ul", { key: '6cd3d5f3128a49e9ac77abc11f46ca880bc6c195', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC || 'N/A'), hAsync("span", { class: "f-body-02" }, color.pantoneU || 'N/A'))))))));
|
|
2450
2450
|
}
|
|
2451
2451
|
static get cmpMeta() { return {
|
|
2452
2452
|
"$flags$": 0,
|
|
@@ -2522,7 +2522,7 @@ class CorrectUseOfColors {
|
|
|
2522
2522
|
registerInstance(this, hostRef);
|
|
2523
2523
|
}
|
|
2524
2524
|
render() {
|
|
2525
|
-
return (hAsync("div", { key: '
|
|
2525
|
+
return (hAsync("div", { key: '33f38f14e5b6e7271ae26608fb1a1ed0c7930c7c', class: "container" }, hAsync("p", { key: '4857375e983add7d8e5e0a0d9896641774be018e', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '1c6bd69472074babf8f830fdba9be31e73afcd88', label: "primary", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: 'ae3429fadbea001f01731d3c15f28865d668a50a', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: 'd8c6b9ab88abbf6194a4fb26120244982b59c2c4', class: "flex" }, hAsync("div", { key: 'fc7f854940caabb9e032999f51732b64555e96e7', class: "w-full" }, hAsync("ul", { key: '99c6a2e47c683ac38f2a14feec80177c0cf1c174', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '91048e89cff083356c589c0f1bfecdd482e0c797', class: "w-full" }, hAsync("ul", { key: '6ee69388227089a5224a6d249c8e1eea4efde128', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: 'c0a8e42942f2655648aa2ec3ce74bbf8d043ba63', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '3f272298bcd7d0e6ad791edc408ef636349fbf7d', label: "purple", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '9a0b28f388483944aa4b053b9f8e807c1383431e', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '27ab1cdb936918fafe122c5a569c83322043bb79', class: "flex" }, hAsync("div", { key: '037b9916ff3a3e8c2e9db64b650d44a57aedbcf9', class: "w-full" }, hAsync("ul", { key: '60f4f6290b31a29852fb934c678edcaa61c8e930', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, purple$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '36397292a31417703736b3be5b77e17241675dd9', class: "w-full" }, hAsync("ul", { key: '20a9e6bb396c184c2718a18554eb1b4828817379', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '0b89819b9fce1dff39b06b70873d651b7a1c84ac', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: '9b3e7d46ac8116ff5f47f895bb06e89cd49c4e03', label: "blue", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '94c3384e546bcae55d5634064a37436b4cdaab0f', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '7e3fe503559fa6865b824fd7f93dfdf8ed368f34', class: "flex" }, hAsync("div", { key: '4ed98a3b92ba8b73e3cd67dec625b4b8dfb34ee1', class: "w-full" }, hAsync("ul", { key: '0ccfd018568eb834ae05771976122736f5944205', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, blue.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: 'd2cef9f5bd8ce7fb103e22a8964cee88853c1162', class: "w-full" }, hAsync("ul", { key: '24301ce590bd1530316f351202bd76fafaa7dda5', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } }))))))), hAsync("p", { key: '748852527301ab6465b593f5f271dc6dcef9d198', class: "f-body-01" }, "This guide demonstrates the correct usage of the", hAsync("eds-link", { key: 'f035467c04170412a1b06f05b8675b6be57e8aa2', label: "redish", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", hAsync("eds-link", { key: '6e4eb577c6582a160b8282b54a6edfc58f20926b', label: "support", size: "small", intent: "blueish", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), hAsync("div", { key: '9209fd1ab3092cd21dd81a3328171c8de4fb8bca', class: "flex" }, hAsync("div", { key: 'dc71b931a70fbd31a4f72814b23a1d97933bc721', class: "w-full" }, hAsync("ul", { key: 'd3f6f25439b6fbc8e8c08b39bf46de9ce52482fa', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, red$1.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '78d64d48a72836043c53e485269402bf566a5d98', class: "w-full" }, hAsync("ul", { key: '6eb824d03f4d0e2d3966963c899473e242b31dc6', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, support.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
2526
2526
|
}
|
|
2527
2527
|
static get cmpMeta() { return {
|
|
2528
2528
|
"$flags$": 0,
|
|
@@ -3320,22 +3320,23 @@ class EdsBreadcrumb {
|
|
|
3320
3320
|
this.maxVisibleItems = 6;
|
|
3321
3321
|
}
|
|
3322
3322
|
/**
|
|
3323
|
-
*
|
|
3324
|
-
* Converts the `items` string into an array of objects if it is a JSON string.
|
|
3325
|
-
* If the format is invalid, it logs an error and sets an empty array.
|
|
3326
|
-
*
|
|
3327
|
-
* @param newValue - The new value for the `items` prop.
|
|
3323
|
+
* Watches for changes to the `items` prop and parses it.
|
|
3328
3324
|
*/
|
|
3329
3325
|
parseItems(newValue) {
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3326
|
+
if (typeof newValue === 'string') {
|
|
3327
|
+
try {
|
|
3328
|
+
const parsed = JSON.parse(newValue);
|
|
3329
|
+
this.parsedItems = Array.isArray(parsed) ? parsed : [];
|
|
3333
3330
|
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3331
|
+
catch (e) {
|
|
3332
|
+
console.error('Error parsing breadcrumb items:', e);
|
|
3333
|
+
this.parsedItems = [];
|
|
3336
3334
|
}
|
|
3337
3335
|
}
|
|
3338
|
-
|
|
3336
|
+
else if (Array.isArray(newValue)) {
|
|
3337
|
+
this.parsedItems = newValue;
|
|
3338
|
+
}
|
|
3339
|
+
else {
|
|
3339
3340
|
this.parsedItems = [];
|
|
3340
3341
|
}
|
|
3341
3342
|
}
|
|
@@ -3423,7 +3424,7 @@ class EdsBreadcrumb {
|
|
|
3423
3424
|
*/
|
|
3424
3425
|
render() {
|
|
3425
3426
|
const itemsToRender = this.getTruncatedItems();
|
|
3426
|
-
return (hAsync("nav", { key: '
|
|
3427
|
+
return (hAsync("nav", { key: '1491f7e548ba859e0661129de2ec320552a2bb42', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '93525aad588295e9f2a3f02d143824c7c58ea512', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3427
3428
|
const isLast = index === itemsToRender.length - 1;
|
|
3428
3429
|
return (hAsync("li", { class: "flex items-center" }, !item.isHidden ? (hAsync("eds-link", { label: item.label, url: item.url, intent: this.intent, current: isLast, "aria-label": item.label, size: "small", "icon-small": "false" })) : (hAsync("span", { class: "truncate px-2 ", "aria-hidden": "true" }, "...")), !isLast && !item.isHidden && (hAsync("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }))));
|
|
3429
3430
|
}))));
|
|
@@ -3678,7 +3679,7 @@ class EdsButton {
|
|
|
3678
3679
|
show: !this.loading
|
|
3679
3680
|
});
|
|
3680
3681
|
const ElementType = this.elementType;
|
|
3681
|
-
return (hAsync(ElementType, { key: '
|
|
3682
|
+
return (hAsync(ElementType, { key: '1053db0332f574db35e58453d789567eaf235d30', "aria-label": this.label || this.ariaLabel || undefined, "aria-disabled": this.elementType === 'button' ? this.disabled : undefined, disabled: this.elementType === 'button' ? this.disabled : undefined, class: `${classes || ''} ${this.extraClass || ''}`, onClick: (event) => this.handleClick(event) }, this.label && hAsync("span", { key: 'ff95b889b008075d46b89a1d23e51ad8afa20918', class: this.loading ? 'opacity-0' : '' }, this.label), this.loading && (hAsync("span", { key: '942f3fffcaef08defd3d0ef0dbb275b9d189c907', class: "absolute inset-0 flex items-center justify-center" }, hAsync("span", { key: '91e53dcee9d4f2a842ea922498c9da7f15ffe109', class: "loader", style: {
|
|
3682
3683
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3683
3684
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3684
3685
|
} }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -3978,13 +3979,24 @@ class EdsCardSection {
|
|
|
3978
3979
|
* @returns {any[]} An array of parsed card objects.
|
|
3979
3980
|
*/
|
|
3980
3981
|
get parsedCards() {
|
|
3981
|
-
|
|
3982
|
-
|
|
3982
|
+
// If it's already an array, return it immediately.
|
|
3983
|
+
if (Array.isArray(this.cards)) {
|
|
3984
|
+
return this.cards;
|
|
3983
3985
|
}
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
return [];
|
|
3986
|
+
if (typeof this.cards === 'object') {
|
|
3987
|
+
return this.cards;
|
|
3987
3988
|
}
|
|
3989
|
+
else if (typeof this.cards === 'string') {
|
|
3990
|
+
try {
|
|
3991
|
+
return JSON.parse(this.cards);
|
|
3992
|
+
}
|
|
3993
|
+
catch (e) {
|
|
3994
|
+
// eslint-disable-next-line
|
|
3995
|
+
console.error('Error parsing links prop:', e);
|
|
3996
|
+
return [];
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3999
|
+
return [];
|
|
3988
4000
|
}
|
|
3989
4001
|
/**
|
|
3990
4002
|
* Renders the card section as a grid layout.
|
|
@@ -3994,7 +4006,7 @@ class EdsCardSection {
|
|
|
3994
4006
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
3995
4007
|
*/
|
|
3996
4008
|
render() {
|
|
3997
|
-
return (hAsync("section", { key: '
|
|
4009
|
+
return (hAsync("section", { key: 'c02b0e71ae4658e2f568e9428a9c61455aeb8ccd', class: "w-full" }, hAsync("ul", { key: '7f5d952d5cc5044c2ec23ca6b6b627901c40ab81', class: "grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, this.parsedCards.map((card) => (hAsync("li", { class: `grid-col-span-12 md:grid-col-span-${this.cols} flex flex-col` }, hAsync("eds-card-generic", { cardTitle: card.title, description: card.description, avatar: card.avatar, headingLevel: card.headingLevel, tags: card.tags, url: card.url, bg: card.bg, tiny: card.tiny, image: card.image, withHover: card.withHover })))))));
|
|
3998
4010
|
}
|
|
3999
4011
|
static get style() { return EdsCardSectionStyle0; }
|
|
4000
4012
|
static get cmpMeta() { return {
|
|
@@ -6691,54 +6703,76 @@ class EdsCodeBlock {
|
|
|
6691
6703
|
}
|
|
6692
6704
|
|
|
6693
6705
|
const EdsComponentsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
6694
|
-
hAsync("eds-alert", { message: "EBRAINS Design System makes it easy to implement and use its components across any framework or no framework at all. We\n accomplish this by using standardized web platform APIs and Web Components.", intent: "default" }),
|
|
6695
6706
|
hAsync("h2", null, "Load the module"),
|
|
6696
6707
|
hAsync("p", null,
|
|
6697
6708
|
"Integrating EDSs components to a project without a JavaScript framework is straight forward. If you\u2019re working on a simple HTML page, you can start using the components immediately by adding the tags below to the",
|
|
6698
6709
|
' ',
|
|
6699
6710
|
hAsync("code", null, "head"),
|
|
6700
6711
|
"."),
|
|
6701
|
-
hAsync("eds-code-block", { code:
|
|
6712
|
+
hAsync("eds-code-block", { code: "<script type='module'>\n import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js'; \n // Define custom elements\n defineCustomElements(window);\n</script>", language: "javascript", "copy-label": "Copy Code" }),
|
|
6702
6713
|
hAsync("h2", null, "Load the styles"),
|
|
6703
6714
|
hAsync("p", null,
|
|
6704
6715
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
6705
6716
|
' ',
|
|
6706
6717
|
hAsync("code", null, "head")),
|
|
6707
|
-
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
6718
|
+
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
6719
|
+
hAsync("div", { class: "my-4" },
|
|
6720
|
+
hAsync("eds-alert", { message: "Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.", intent: "warning" })),
|
|
6708
6721
|
hAsync("h2", null, "Load the fonts"),
|
|
6709
6722
|
hAsync("p", null,
|
|
6710
|
-
"To load the
|
|
6723
|
+
"To load the webfonts, add the tag below to the ",
|
|
6711
6724
|
hAsync("code", null, "head")),
|
|
6712
6725
|
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@0.0.1/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
6713
6726
|
hAsync("h2", null, "Component Usage"),
|
|
6714
6727
|
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
6715
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"
|
|
6728
|
+
hAsync("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
6716
6729
|
|
|
6717
6730
|
const EdsDocsInstallation = () => (hAsync("div", null,
|
|
6718
|
-
hAsync("p", null, "
|
|
6719
|
-
hAsync("
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
hAsync("
|
|
6724
|
-
|
|
6731
|
+
hAsync("p", null, "Before proceeding, ensure that Node.js is installed on your machine\u2014you can download the latest version from the official website. If your project doesn\u2019t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
6732
|
+
hAsync("div", { class: "my-8" },
|
|
6733
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })),
|
|
6734
|
+
hAsync("div", { class: "my-8" },
|
|
6735
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
6736
|
+
hAsync("div", { class: "my-8" },
|
|
6737
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
|
|
6725
6738
|
|
|
6726
6739
|
const EdsDocsReact = () => (hAsync("div", null,
|
|
6727
6740
|
hAsync("h2", null, "React Wrappers"),
|
|
6728
|
-
hAsync("p", null, "Learn how to use our components in a React Application."),
|
|
6729
|
-
"
|
|
6730
|
-
|
|
6741
|
+
hAsync("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
|
|
6742
|
+
hAsync("div", { class: "my-8" },
|
|
6743
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
6731
6744
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
6732
|
-
hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n
|
|
6745
|
+
hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n}\n\ninterface AuthStatus {\n authenticated: boolean;\n user: User | null;\n}\n\nimport { useEffect, useState } from "react";\n\nexport function App() {\n\n const [authStatus, setAuthStatus] = useState<AuthStatus>({\n authenticated: false,\n user: null,\n });\n \n const [activeTabIndex, setActiveTabIndex] = useState<number>(0);\n\n // Use useEffect to render Stencil components dynamically after the component mounts\n useEffect(() => {\n \n const handleAuthStatusChange = (event: CustomEvent) => {\n console.log(event.detail);\n setAuthStatus(event.detail); // Set the entire object\n };\n\n const handleTabChange = (\n event: CustomEvent<{ index: number; name: string }>,\n ) => {\n console.log(event.detail);\n setActiveTabIndex(event.detail.index);\n };\n\n document.addEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.addEventListener("tabChange", handleTabChange as EventListener);\n\n return () => {\n document.removeEventListener(\n "authStatusChanged",\n handleAuthStatusChange as EventListener,\n );\n document.removeEventListener(\n "tabChange",\n handleTabChange as EventListener,\n );\n };\n }, []); // Empty dependency array ensures this runs only once after mounting\n\n return (\n <div id="main">\n <EdsHeader\n home-url="/"\n user-feature={false}\n keycloak-url="http://localhost:8080"\n keycloak-realm="nigeor-realm"\n keycloak-client-id="stencil-app"\n links="[\n { "label": "About", "url": "/about" },\n { "label": "Focus Areas", "url": "/focus-areas" },\n { "label": "News & Events", "url": "/news-and-events" },\n { "label": "Contact", "url": "/contact" }\n ]"\n ></EdsHeader>\n\n <div> \n User is{" "} {authStatus.authenticated ? "authenticated" : "not authenticated"}\n </div>\n {authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}\n </div>\n </div>\n );\n}\n\nexport default App;\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6733
6746
|
|
|
6734
6747
|
const EdsDocsVue = () => (hAsync("div", null,
|
|
6735
6748
|
hAsync("h2", null, "Vue Wrappers"),
|
|
6736
6749
|
hAsync("p", null, "Learn how to use our components in a Vue Application."),
|
|
6750
|
+
hAsync("p", null, "Simply install the latest version of our NPM package."),
|
|
6737
6751
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
6738
|
-
hAsync("p", null, "
|
|
6752
|
+
hAsync("p", null, "Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your \"main.ts\" file."),
|
|
6739
6753
|
hAsync("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }),
|
|
6754
|
+
hAsync("h2", null,
|
|
6755
|
+
"Passing Properties to Custom Elements Using the ",
|
|
6756
|
+
hAsync("b", null, ".prop"),
|
|
6757
|
+
" Modifier in Vue Wrappers"),
|
|
6758
|
+
hAsync("p", null, "When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML\u2019s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),
|
|
6759
|
+
hAsync("h3", null,
|
|
6760
|
+
"How to Use the ",
|
|
6761
|
+
hAsync("b", null, ".prop"),
|
|
6762
|
+
" Modifier"),
|
|
6763
|
+
hAsync("p", null, "When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here\u2019s an example of how to do it:"),
|
|
6764
|
+
hAsync("div", { class: "mt-8" },
|
|
6765
|
+
hAsync("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })),
|
|
6766
|
+
hAsync("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel="Press Me"\n :pressableUrl="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
|
|
6767
|
+
hAsync("div", { class: "mt-8" },
|
|
6768
|
+
hAsync("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })),
|
|
6769
|
+
hAsync("eds-code-block", { code: '<EdsAlert\n message="This is a default informational alert."\n intent="default"\n :pressableLabel.prop="Press Me"\n :pressableUrl.prop="https://ebrains.eu"\n></EdsAlert>', language: "javascript", "copy-label": "Copy Code" }),
|
|
6770
|
+
hAsync("p", null,
|
|
6771
|
+
"Using the ",
|
|
6772
|
+
hAsync("b", null, ".prop"),
|
|
6773
|
+
" modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),
|
|
6740
6774
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
6741
|
-
hAsync("eds-code-block", { code: '\n<template>\n <
|
|
6775
|
+
hAsync("eds-code-block", { code: '\n<template>\n <EdsHeader \n :inverseHeader.prop="true"\n :menuEnabled.prop="true">\n </EdsHeader>\n</template>\n\n<script>\n\nimport { EdsHeader } from "@ebrains/vue";\n\nexport default {\n name: "App",\n components: {\n EdsHeader,\n }\n};\n</script>\n', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6742
6776
|
|
|
6743
6777
|
const EdsDocsAngular = () => (hAsync("div", null,
|
|
6744
6778
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -6749,7 +6783,7 @@ const EdsDocsAngular = () => (hAsync("div", null,
|
|
|
6749
6783
|
hAsync("p", null, "Angular Custom Elements Schema"),
|
|
6750
6784
|
hAsync("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
|
|
6751
6785
|
hAsync("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" },
|
|
6752
|
-
hAsync("eds-code-block", { code: '\n<div class="container">\n <
|
|
6786
|
+
hAsync("eds-code-block", { code: '\n<div class="container">\n <eds-breadcrumb\n intent="tertiary"\n items="[\n { "label": "Home", "url": "#" },\n { "label": "Products", "url": "#" },\n ]">\n </eds-breadcrumb>\n <eds-footer></eds-footer>\n</div>', language: "javascript", "copy-label": "Copy Code" }))));
|
|
6753
6787
|
|
|
6754
6788
|
/**
|
|
6755
6789
|
* @internal
|
|
@@ -6766,19 +6800,17 @@ class EdsComponentsSection {
|
|
|
6766
6800
|
case 1:
|
|
6767
6801
|
return hAsync(EdsDocsInstallation, null);
|
|
6768
6802
|
case 2:
|
|
6769
|
-
return hAsync(EdsDocsUsage, null);
|
|
6770
|
-
case 3:
|
|
6771
6803
|
return hAsync(EdsDocsReact, null);
|
|
6772
|
-
case
|
|
6804
|
+
case 3:
|
|
6773
6805
|
return hAsync(EdsDocsVue, null);
|
|
6774
|
-
case
|
|
6806
|
+
case 4:
|
|
6775
6807
|
return hAsync(EdsDocsAngular, null);
|
|
6776
6808
|
default:
|
|
6777
6809
|
return hAsync("p", null, "Content not available.");
|
|
6778
6810
|
}
|
|
6779
6811
|
}
|
|
6780
6812
|
render() {
|
|
6781
|
-
return hAsync("div", { key: '
|
|
6813
|
+
return hAsync("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
|
|
6782
6814
|
}
|
|
6783
6815
|
static get cmpMeta() { return {
|
|
6784
6816
|
"$flags$": 0,
|
|
@@ -6819,7 +6851,7 @@ class EdsDocsContent {
|
|
|
6819
6851
|
}
|
|
6820
6852
|
}
|
|
6821
6853
|
render() {
|
|
6822
|
-
return hAsync("div", { key: '
|
|
6854
|
+
return hAsync("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
|
|
6823
6855
|
}
|
|
6824
6856
|
static get cmpMeta() { return {
|
|
6825
6857
|
"$flags$": 0,
|
|
@@ -6852,7 +6884,7 @@ class EdsDocsPalettes {
|
|
|
6852
6884
|
}
|
|
6853
6885
|
}
|
|
6854
6886
|
render() {
|
|
6855
|
-
return hAsync("div", { key: '
|
|
6887
|
+
return hAsync("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
|
|
6856
6888
|
}
|
|
6857
6889
|
static get cmpMeta() { return {
|
|
6858
6890
|
"$flags$": 0,
|
|
@@ -7073,7 +7105,7 @@ class EdsFooter {
|
|
|
7073
7105
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7074
7106
|
*/
|
|
7075
7107
|
render() {
|
|
7076
|
-
return (hAsync("footer", { key: '
|
|
7108
|
+
return (hAsync("footer", { key: '8d3d1b5d2acd76f56b2bc12539cb7d277b4dcd7f', class: `${this.extraClass} pb-banner` }, this.social ? (hAsync("div", { class: "border-softest border-t-2 pt-20 pb-28 md:pt-28" }, hAsync("div", { class: "container pb-20 xl:pb-40 " }, hAsync("div", { class: "grid-layout" }, hAsync("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, hAsync("eds-social-networks", { class: "mt-28" })), hAsync("nav", { "aria-label": "Secondary nav", class: "grid-col-span-12 lg:grid-col-span-6 lg:grid-col-start-7 grid-layout mt-28 gap-y-12 lg:mt-0" }))))) : null, hAsync("div", { key: '7d6e3a414ec8e8f8e2b795faf639948f8819f5cb', class: `border-softest ${this.social ? 'border-t-2' : ''} pt-20 pb-28 md:pt-28` }, hAsync("div", { key: '9a475fd146ac0e1bc78c43940ee24ec31212fcb9', class: "container flex flex-wrap items-center gap-20 lg:flex-nowrap" }, hAsync("div", { key: '4b465113cdb882f919fba15e944eb56edbe3c570', class: "flex items-center gap-x-12" }, hAsync("a", { key: '1a8ad1ee5f4dfb77da036b03d0770cba8e5d725e', target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-2020_en" }, hAsync("eds-img", { key: '4714ea1a01b7b7eef8b3af0c04ffe793d51c4d5e', width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg" }))), hAsync("div", { key: 'c4db6bab70e570e337c82136a0d9d6dad01c1039', class: "f-ui-04 text-light order-last w-full lg:order-none lg:w-auto" }, hAsync("p", { key: '0b030a92c12a3a96fe2baacc13ac21f5bd708a50' }, this.fundedBy), hAsync("div", { key: '4714d0ccf0e3912ae330a6f39ed3607caf2b51a4', class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap" }, hAsync("span", { key: 'b4bc2d45871c7d1f9de1d6090959b12fd5246f01', class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline" }, "\u00A9 ", this.rightsReserved), this.hasCookiesSetUp && (hAsync("button", { key: '98b56eee7be6bc1558821933cebf2853b3bb68fc', class: "effect-focus !no-underline underline-offset-4 hover:!underline", onClick: () => this.toggleCookiesPopup() }, this.cookiesPreference)))), hAsync("div", { key: 'f4bf4a0c99f3be920dd15f68e6f7e390cd85ecce', class: "ml-auto pl-12" }, this.enableScrollTop ? (hAsync("eds-button", { "aria-label": "Back to top", intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop })) : null)))));
|
|
7077
7109
|
}
|
|
7078
7110
|
static get style() { return EdsFooterStyle0; }
|
|
7079
7111
|
static get cmpMeta() { return {
|
|
@@ -7605,7 +7637,8 @@ var EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
|
7605
7637
|
* It provides a responsive, full-window overlay menu with navigation links and additional options.
|
|
7606
7638
|
* This component is suitable for mobile and small screens, where a fullscreen menu enhances user navigation.
|
|
7607
7639
|
*
|
|
7608
|
-
* ## Key Features
|
|
7640
|
+
* ## Key Features
|
|
7641
|
+
*
|
|
7609
7642
|
* - **Links and Menu Links**: Allows configurable primary and secondary navigation links.
|
|
7610
7643
|
* - **Event-Driven Open/Close**: Listens for a `toggleMenu` event to open or close the menu, emitted by the `eds-header` component.
|
|
7611
7644
|
* - **Responsive Behavior**: Automatically closes the menu when the screen width is larger than a specified breakpoint (1024px).
|
|
@@ -7795,6 +7828,10 @@ class EdsHeader {
|
|
|
7795
7828
|
* @returns {any[]} Array of parsed link objects
|
|
7796
7829
|
*/
|
|
7797
7830
|
get parsedLinks() {
|
|
7831
|
+
// If it's already an array, return it immediately.
|
|
7832
|
+
if (Array.isArray(this.links)) {
|
|
7833
|
+
return this.links;
|
|
7834
|
+
}
|
|
7798
7835
|
if (typeof this.links === 'object') {
|
|
7799
7836
|
return this.links;
|
|
7800
7837
|
}
|
|
@@ -7811,8 +7848,8 @@ class EdsHeader {
|
|
|
7811
7848
|
return [];
|
|
7812
7849
|
}
|
|
7813
7850
|
render() {
|
|
7814
|
-
return (hAsync("header", { key: '
|
|
7815
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '
|
|
7851
|
+
return (hAsync("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
|
|
7852
|
+
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '00206a2714dedfe205151002cc10c430e75814fb', class: "mr-auto w-[200px] h-[85px]" }, hAsync("eds-logo", { key: '25fc6207d61bb4cc06877dd0b15bf56392b50255', type: this.inverseHeader ? 'color-white' : 'color', href: this.homeUrl })), this.parsedLinks && (hAsync("nav", { key: '8d1ee2947db26e5acb556da845fe1b811a8d18b2', class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, hAsync("ul", { key: '5c70e48f3a617a6abe402659b37741e657440cbc', class: "flex gap-x-2" }, this.parsedLinks.map((link) => (hAsync("eds-link", { label: link.label, "aria-label": link.label, url: link.url, intent: "ghost", size: "small", icon: link.icon, external: link.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))))), hAsync("slot", { key: '773b60e90ecfe336fede86ea6e3b0ec2fd10bd72' }), this.userFeature ? (hAsync("div", { class: "px-16" }, hAsync("eds-user", { "keycloak-url": this.keycloakUrl, "keycloak-realm": this.keycloakRealm, "keycloak-client-id": this.keycloakClientId }))) : null, this.menuEnabled ? (hAsync("div", { class: "md:hidden flex overflow-hidden px-16" }, hAsync("eds-button", { "aria-label": "Menu", intent: "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() }))) : null));
|
|
7816
7853
|
}
|
|
7817
7854
|
get hostEl() { return getElement(this); }
|
|
7818
7855
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -10656,12 +10693,33 @@ class EdsInputSearch {
|
|
|
10656
10693
|
}
|
|
10657
10694
|
|
|
10658
10695
|
/**
|
|
10659
|
-
*
|
|
10696
|
+
* A custom select input component that supports both static and dynamic options.
|
|
10697
|
+
*
|
|
10698
|
+
* Options can be provided in two formats:
|
|
10699
|
+
* 1. Dynamic fetch configuration:
|
|
10700
|
+
* [
|
|
10701
|
+
* { endpoint: "http://localhost/api/applications", value: "_id", label: "title" }
|
|
10702
|
+
* ]
|
|
10703
|
+
* 2. Static options:
|
|
10704
|
+
* [
|
|
10705
|
+
* { value: "react", label: "React" },
|
|
10706
|
+
* { value: "angular", label: "Angular" },
|
|
10707
|
+
* { value: "vue", label: "Vue.js" },
|
|
10708
|
+
* // etc.
|
|
10709
|
+
* ]
|
|
10710
|
+
*
|
|
10711
|
+
* The component will automatically fetch data if a dynamic configuration is provided.
|
|
10660
10712
|
*/
|
|
10661
10713
|
class EdsInputSelect {
|
|
10662
10714
|
constructor(hostRef) {
|
|
10663
10715
|
registerInstance(this, hostRef);
|
|
10664
10716
|
this.changeEvent = createEvent(this, "changeEvent", 7);
|
|
10717
|
+
/**
|
|
10718
|
+
* Event handler for the select input's change event.
|
|
10719
|
+
* Emits the selected value.
|
|
10720
|
+
*
|
|
10721
|
+
* @param event The change event from the select input.
|
|
10722
|
+
*/
|
|
10665
10723
|
this.handleChange = (event) => {
|
|
10666
10724
|
const target = event.target;
|
|
10667
10725
|
this.changeEvent.emit(target.value);
|
|
@@ -10674,11 +10732,64 @@ class EdsInputSelect {
|
|
|
10674
10732
|
this.error = false;
|
|
10675
10733
|
this.required = false;
|
|
10676
10734
|
this.options = [];
|
|
10735
|
+
this.labelKey = 'label';
|
|
10736
|
+
this.valueKey = 'value';
|
|
10677
10737
|
this.value = undefined;
|
|
10738
|
+
this.dynamicOptions = [];
|
|
10739
|
+
this.loading = false;
|
|
10740
|
+
this.dynamicValueKey = 'value';
|
|
10741
|
+
this.dynamicLabelKey = 'label';
|
|
10742
|
+
}
|
|
10743
|
+
componentWillLoad() {
|
|
10744
|
+
this.loadOptions();
|
|
10745
|
+
}
|
|
10746
|
+
/**
|
|
10747
|
+
* Watches for changes in the `options` prop and loads the options accordingly.
|
|
10748
|
+
*
|
|
10749
|
+
* If the first object in the options array contains an "endpoint" key,
|
|
10750
|
+
* the component will fetch options from the specified endpoint using the configured keys.
|
|
10751
|
+
* Otherwise, it will treat the options as static.
|
|
10752
|
+
*
|
|
10753
|
+
* @async
|
|
10754
|
+
*/
|
|
10755
|
+
async loadOptions() {
|
|
10756
|
+
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
10757
|
+
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
10758
|
+
const config = this.options[0];
|
|
10759
|
+
const endpoint = config.endpoint;
|
|
10760
|
+
this.dynamicValueKey = config.value || 'value';
|
|
10761
|
+
this.dynamicLabelKey = config.label || 'label';
|
|
10762
|
+
this.loading = true;
|
|
10763
|
+
try {
|
|
10764
|
+
const response = await fetch(endpoint);
|
|
10765
|
+
if (!response.ok) {
|
|
10766
|
+
toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
|
|
10767
|
+
}
|
|
10768
|
+
const data = await response.json();
|
|
10769
|
+
// Assume the API returns an array of objects.
|
|
10770
|
+
this.dynamicOptions = data;
|
|
10771
|
+
}
|
|
10772
|
+
catch (error) {
|
|
10773
|
+
//console.error('Error fetching dynamic options:', error);
|
|
10774
|
+
toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
|
|
10775
|
+
}
|
|
10776
|
+
finally {
|
|
10777
|
+
this.loading = false;
|
|
10778
|
+
}
|
|
10779
|
+
}
|
|
10780
|
+
else {
|
|
10781
|
+
// No dynamic configuration found, assume static options.
|
|
10782
|
+
this.dynamicOptions = this.options;
|
|
10783
|
+
this.dynamicValueKey = this.valueKey;
|
|
10784
|
+
this.dynamicLabelKey = this.labelKey;
|
|
10785
|
+
}
|
|
10678
10786
|
}
|
|
10679
10787
|
render() {
|
|
10680
|
-
return (hAsync("div", { key: '
|
|
10788
|
+
return (hAsync("div", { key: '0b45eaae992171cd9795f7bf01883b0f3efbcc13', class: "relative" }, hAsync("select", { key: '0ee8bccb24f7bd65e9347c0b79905154db39dca7', id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? 'input-error' : ''}`, "aria-invalid": this.error ? 'true' : 'false', "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : '', disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, hAsync("option", { key: 'b1b53dcf8dd3155e8dba28327f05b4725a013435', value: "", disabled: true, hidden: true }, this.loading ? 'Loading options...' : `Please select ${this.name}`), this.dynamicOptions.map((option, index) => (hAsync("option", { key: index, value: option[this.dynamicValueKey] }, option[this.dynamicLabelKey])))), hAsync("span", { key: '3f652e7ed7570b602565af3f0e3c5c91506e4089', class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? 'text-lightest bg-transparent' : ''}` }, hAsync("eds-icon-wrapper", { key: '2237727060af6286c346f749d2e8e3f7f86c7c70', class: "w-20 h-20", icon: "chevron-right" }))));
|
|
10681
10789
|
}
|
|
10790
|
+
static get watchers() { return {
|
|
10791
|
+
"options": ["loadOptions"]
|
|
10792
|
+
}; }
|
|
10682
10793
|
static get cmpMeta() { return {
|
|
10683
10794
|
"$flags$": 0,
|
|
10684
10795
|
"$tagName$": "eds-input-select",
|
|
@@ -10691,7 +10802,13 @@ class EdsInputSelect {
|
|
|
10691
10802
|
"error": [4],
|
|
10692
10803
|
"required": [4],
|
|
10693
10804
|
"options": [16],
|
|
10694
|
-
"
|
|
10805
|
+
"labelKey": [1, "label-key"],
|
|
10806
|
+
"valueKey": [1, "value-key"],
|
|
10807
|
+
"value": [8],
|
|
10808
|
+
"dynamicOptions": [32],
|
|
10809
|
+
"loading": [32],
|
|
10810
|
+
"dynamicValueKey": [32],
|
|
10811
|
+
"dynamicLabelKey": [32]
|
|
10695
10812
|
},
|
|
10696
10813
|
"$listeners$": undefined,
|
|
10697
10814
|
"$lazyBundleId$": "-",
|
|
@@ -12896,10 +13013,10 @@ class EdsLogin {
|
|
|
12896
13013
|
return this.authenticated ? 'Logout' : 'Login';
|
|
12897
13014
|
}
|
|
12898
13015
|
render() {
|
|
12899
|
-
return (hAsync("
|
|
13016
|
+
return (hAsync("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
|
|
12900
13017
|
}
|
|
12901
13018
|
static get cmpMeta() { return {
|
|
12902
|
-
"$flags$":
|
|
13019
|
+
"$flags$": 9,
|
|
12903
13020
|
"$tagName$": "eds-login",
|
|
12904
13021
|
"$members$": {
|
|
12905
13022
|
"keycloakUrl": [1, "keycloak-url"],
|
|
@@ -13010,6 +13127,39 @@ class EdsLogo {
|
|
|
13010
13127
|
}; }
|
|
13011
13128
|
}
|
|
13012
13129
|
|
|
13130
|
+
/**
|
|
13131
|
+
* @internal
|
|
13132
|
+
*/
|
|
13133
|
+
class EdsLogoVariations {
|
|
13134
|
+
constructor(hostRef) {
|
|
13135
|
+
registerInstance(this, hostRef);
|
|
13136
|
+
this.tabIndex = undefined;
|
|
13137
|
+
}
|
|
13138
|
+
renderContent() {
|
|
13139
|
+
switch (this.tabIndex) {
|
|
13140
|
+
case 0:
|
|
13141
|
+
return hAsync("logo-variations-horizontal", null);
|
|
13142
|
+
case 1:
|
|
13143
|
+
return hAsync("logo-variations-vertical", null);
|
|
13144
|
+
default:
|
|
13145
|
+
return hAsync("p", null, "Content not available.");
|
|
13146
|
+
}
|
|
13147
|
+
}
|
|
13148
|
+
render() {
|
|
13149
|
+
return hAsync("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
13150
|
+
}
|
|
13151
|
+
static get cmpMeta() { return {
|
|
13152
|
+
"$flags$": 0,
|
|
13153
|
+
"$tagName$": "eds-logo-variations",
|
|
13154
|
+
"$members$": {
|
|
13155
|
+
"tabIndex": [2, "tab-index"]
|
|
13156
|
+
},
|
|
13157
|
+
"$listeners$": undefined,
|
|
13158
|
+
"$lazyBundleId$": "-",
|
|
13159
|
+
"$attrsToReflect$": []
|
|
13160
|
+
}; }
|
|
13161
|
+
}
|
|
13162
|
+
|
|
13013
13163
|
const edsMatomoNoticeCss = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\\:-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}";
|
|
13014
13164
|
var EdsMatomoNoticeStyle0 = edsMatomoNoticeCss;
|
|
13015
13165
|
|
|
@@ -13715,14 +13865,14 @@ class EdsSectionHeading {
|
|
|
13715
13865
|
}; }
|
|
13716
13866
|
}
|
|
13717
13867
|
|
|
13718
|
-
const
|
|
13719
|
-
var EdsSocialNetworksStyle0 =
|
|
13868
|
+
const edsSocialNetworksCss = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}";
|
|
13869
|
+
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13720
13870
|
|
|
13721
13871
|
/**
|
|
13722
13872
|
* Component representing a list of social network links for EBRAINS.
|
|
13723
13873
|
* Each link directs users to EBRAINS' profiles on various social networks.
|
|
13724
13874
|
*/
|
|
13725
|
-
class
|
|
13875
|
+
class EdsSocialNetworks {
|
|
13726
13876
|
constructor(hostRef) {
|
|
13727
13877
|
registerInstance(this, hostRef);
|
|
13728
13878
|
/**
|
|
@@ -13773,7 +13923,7 @@ class EdsSocialNetwork {
|
|
|
13773
13923
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
13774
13924
|
*/
|
|
13775
13925
|
render() {
|
|
13776
|
-
return (hAsync("div", { key: '
|
|
13926
|
+
return (hAsync("div", { key: 'a6a3e2084eb01def71f6fee67ebe8c5f4f613c89' }, hAsync("p", { key: '43b92e9c33f8abef6070a6a3cd77f7573e2ab454', class: "f-ui-02" }, this.title), hAsync("ul", { key: 'c0e0dfdeff373885f62250c8bf4385268410406c', class: "mt-12 flex gap-4" }, this.socialNetworks.map((network, index) => (hAsync("li", { key: index }, hAsync("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: true, "aria-label": network.label, url: network.url, icon: network.icon, intent: "strong" })))))));
|
|
13777
13927
|
}
|
|
13778
13928
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13779
13929
|
static get cmpMeta() { return {
|
|
@@ -13804,6 +13954,11 @@ class EdsSvgRepository {
|
|
|
13804
13954
|
icon: svgContent // Pass SVG content as innerHTML
|
|
13805
13955
|
}));
|
|
13806
13956
|
}
|
|
13957
|
+
get hostWidth() {
|
|
13958
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
13959
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
13960
|
+
return containerWidth;
|
|
13961
|
+
}
|
|
13807
13962
|
render() {
|
|
13808
13963
|
const svgData = this.getSvgData();
|
|
13809
13964
|
// Define table configuration
|
|
@@ -13811,8 +13966,9 @@ class EdsSvgRepository {
|
|
|
13811
13966
|
icon: { format: 'svg' },
|
|
13812
13967
|
name: { format: 'bold' }
|
|
13813
13968
|
};
|
|
13814
|
-
return (hAsync("eds-table", { key: '
|
|
13969
|
+
return (hAsync("eds-table", { key: 'a1d4a1db6f0886a43513fc34707cdd6140ab685d', data: JSON.stringify(svgData), config: JSON.stringify(tableConfig), "rows-per-page": 10, "search-enabled": true, "pagination-enabled": true, "host-width": this.hostWidth }));
|
|
13815
13970
|
}
|
|
13971
|
+
get hostEl() { return getElement(this); }
|
|
13816
13972
|
static get cmpMeta() { return {
|
|
13817
13973
|
"$flags$": 9,
|
|
13818
13974
|
"$tagName$": "eds-svg-repository",
|
|
@@ -13871,7 +14027,7 @@ class EdsTab {
|
|
|
13871
14027
|
}; }
|
|
13872
14028
|
}
|
|
13873
14029
|
|
|
13874
|
-
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}";
|
|
14030
|
+
const edsTableCss = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}";
|
|
13875
14031
|
var EdsTableStyle0 = edsTableCss;
|
|
13876
14032
|
|
|
13877
14033
|
/**
|
|
@@ -13888,13 +14044,14 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13888
14044
|
class EdsTable {
|
|
13889
14045
|
constructor(hostRef) {
|
|
13890
14046
|
registerInstance(this, hostRef);
|
|
13891
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
13892
14047
|
this.data = null;
|
|
13893
14048
|
this.endpoint = null;
|
|
13894
14049
|
this.config = {};
|
|
13895
14050
|
this.rowsPerPage = 10;
|
|
13896
14051
|
this.paginationEnabled = true;
|
|
13897
14052
|
this.searchEnabled = false;
|
|
14053
|
+
this.hostWidth = undefined;
|
|
14054
|
+
this.columnSize = 'default';
|
|
13898
14055
|
this.tableData = [];
|
|
13899
14056
|
this.columns = [];
|
|
13900
14057
|
this.currentPage = 1;
|
|
@@ -13992,27 +14149,46 @@ class EdsTable {
|
|
|
13992
14149
|
getVisibleColumnsCount() {
|
|
13993
14150
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
13994
14151
|
}
|
|
14152
|
+
divisionFactor() {
|
|
14153
|
+
let divisionFactor = 1;
|
|
14154
|
+
if (this.columnSize === 'medium') {
|
|
14155
|
+
divisionFactor = 2;
|
|
14156
|
+
}
|
|
14157
|
+
else if (this.columnSize === 'large') {
|
|
14158
|
+
divisionFactor = 4;
|
|
14159
|
+
}
|
|
14160
|
+
return divisionFactor;
|
|
14161
|
+
}
|
|
13995
14162
|
render() {
|
|
14163
|
+
// Get the paginated rows and calculate the last page.
|
|
13996
14164
|
const paginatedRows = this.getPaginatedRows();
|
|
13997
14165
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13998
|
-
//
|
|
13999
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
14000
|
-
// Use the visible column count to calculate the column width
|
|
14166
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
14001
14167
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
14002
|
-
|
|
14003
|
-
|
|
14168
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
14169
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
14170
|
+
? Number(this.hostWidth)
|
|
14171
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
14172
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
14173
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
14174
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
14175
|
+
: 400;
|
|
14176
|
+
//console.log('containerWidth:', containerWidth);
|
|
14177
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14178
|
+
console.log('columnWidth:', columnWidth);
|
|
14179
|
+
return (hAsync("div", { key: '178a33c07e6eae9d5edc170f842b6ef29ae21d9c' }, this.searchEnabled && (hAsync("div", { key: 'f1212a4e515a1db218df28b71367c6ffa42e3063' }, hAsync("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
14004
14180
|
// @ts-ignore
|
|
14005
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '
|
|
14181
|
+
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: 'da6ac91e4b4d56780b044a3d35088e7722efe143', class: "mt-20" }, hAsync("table", { key: '3c5734d2370b31d2445ed4f043a80bf87c6d4bde', class: "block overflow-x-auto mt-6 p-0" }, hAsync("thead", { key: '3803a39b4c987ff39bf22e2567bd1bc3d513e1f4' }, hAsync("tr", { key: 'a67fa7bdd48549c69cfa9721083a908ab036a559', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14006
14182
|
var _a;
|
|
14007
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0
|
|
14008
|
-
}))), hAsync("tbody", { key: '
|
|
14183
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
14184
|
+
}))), hAsync("tbody", { key: '8e3f21bf2ee5b1bd84cfa93411ca2671f43ced45' }, paginatedRows.map((row) => (hAsync("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
14009
14185
|
var _a;
|
|
14010
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0
|
|
14011
|
-
}))))))), hAsync("div", { key: '
|
|
14186
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
|
|
14187
|
+
}))))))), this.shouldEnablePagination() && (hAsync("div", { key: '24931f257ef9ced394c1b5b1e589cacedd8035e6', class: "mt-20" }, hAsync("eds-pagination", { key: '996b26ae090ee4fe08cc821fb11362d94879ff72', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
14012
14188
|
}
|
|
14013
14189
|
get hostEl() { return getElement(this); }
|
|
14014
14190
|
static get watchers() { return {
|
|
14015
|
-
"data": ["handleDataChange"],
|
|
14191
|
+
"data": ["handleDataChange", "parseData"],
|
|
14016
14192
|
"config": ["handleConfigChange"]
|
|
14017
14193
|
}; }
|
|
14018
14194
|
static get style() { return EdsTableStyle0; }
|
|
@@ -14026,6 +14202,8 @@ class EdsTable {
|
|
|
14026
14202
|
"rowsPerPage": [2, "rows-per-page"],
|
|
14027
14203
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
14028
14204
|
"searchEnabled": [4, "search-enabled"],
|
|
14205
|
+
"hostWidth": [1, "host-width"],
|
|
14206
|
+
"columnSize": [1, "column-size"],
|
|
14029
14207
|
"tableData": [32],
|
|
14030
14208
|
"columns": [32],
|
|
14031
14209
|
"currentPage": [32],
|
|
@@ -14094,12 +14272,33 @@ class EdsTabs {
|
|
|
14094
14272
|
this.setActiveIndex();
|
|
14095
14273
|
this.tabChange.emit({ tabId: this.id, index: 0 });
|
|
14096
14274
|
}
|
|
14275
|
+
/**
|
|
14276
|
+
* Parses the `links` prop into an array of link objects.
|
|
14277
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14278
|
+
*
|
|
14279
|
+
* @returns {any[]} Array of parsed link objects
|
|
14280
|
+
*/
|
|
14281
|
+
/**
|
|
14282
|
+
* Parses the `links` prop into an array of link objects.
|
|
14283
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14284
|
+
*
|
|
14285
|
+
* @returns {any[]} Array of parsed link objects
|
|
14286
|
+
*/
|
|
14097
14287
|
parseTabs() {
|
|
14098
|
-
|
|
14099
|
-
this.parsedTabs =
|
|
14288
|
+
if (Array.isArray(this.tabs)) {
|
|
14289
|
+
this.parsedTabs = this.tabs;
|
|
14100
14290
|
}
|
|
14101
|
-
|
|
14102
|
-
|
|
14291
|
+
else if (typeof this.tabs === 'string') {
|
|
14292
|
+
try {
|
|
14293
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
14294
|
+
}
|
|
14295
|
+
catch (e) {
|
|
14296
|
+
//console.error('Error parsing tabs prop:', e);
|
|
14297
|
+
this.parsedTabs = [];
|
|
14298
|
+
}
|
|
14299
|
+
}
|
|
14300
|
+
else {
|
|
14301
|
+
// If the type is not an array or string, assume an empty array.
|
|
14103
14302
|
this.parsedTabs = [];
|
|
14104
14303
|
}
|
|
14105
14304
|
}
|
|
@@ -14149,7 +14348,7 @@ class EdsTabs {
|
|
|
14149
14348
|
});
|
|
14150
14349
|
}
|
|
14151
14350
|
render() {
|
|
14152
|
-
return (hAsync("div", { key: '
|
|
14351
|
+
return (hAsync("div", { key: '540bb667084b36ae2151ec39ef6b54a9ac6a4c4a', id: `${this.id}`, class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: 'f0266d39c943b82725ded757cce0b35fb85fa874', class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14153
14352
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14154
14353
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14155
14354
|
return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
@@ -14291,11 +14490,11 @@ class EdsTabsContent {
|
|
|
14291
14490
|
});
|
|
14292
14491
|
}
|
|
14293
14492
|
render() {
|
|
14294
|
-
return (hAsync("div", { key: '
|
|
14493
|
+
return (hAsync("div", { key: '7bc954d9251bd15b5e3a49d5c74b83805f802b07', class: "after:border-softest before:bg-gradient-y relative overflow-x-hidden before:absolute before:inset-x-0 before:bottom-0 before:h-12 before:opacity-5 before:content-[''] after:absolute after:inset-x-0 after:bottom-0 after:border-b-2 after:content-['']" }, hAsync("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, hAsync("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
14295
14494
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14296
14495
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14297
14496
|
return (hAsync("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
14298
|
-
})), hAsync("slot", { key: '
|
|
14497
|
+
})), hAsync("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
|
|
14299
14498
|
}
|
|
14300
14499
|
get el() { return getElement(this); }
|
|
14301
14500
|
static get watchers() { return {
|
|
@@ -14374,27 +14573,37 @@ class EdsTag {
|
|
|
14374
14573
|
}; }
|
|
14375
14574
|
}
|
|
14376
14575
|
|
|
14377
|
-
/**
|
|
14378
|
-
* @internal
|
|
14379
|
-
*/
|
|
14380
14576
|
class EdsTimeline {
|
|
14381
14577
|
constructor(hostRef) {
|
|
14382
14578
|
registerInstance(this, hostRef);
|
|
14579
|
+
this.events = undefined;
|
|
14383
14580
|
this.selectedEvent = null;
|
|
14384
14581
|
this.parsedEvents = [];
|
|
14385
|
-
this.events = undefined;
|
|
14386
14582
|
}
|
|
14387
14583
|
parseEvents(newValue) {
|
|
14388
|
-
|
|
14389
|
-
|
|
14390
|
-
|
|
14391
|
-
|
|
14392
|
-
|
|
14393
|
-
|
|
14584
|
+
let parsed;
|
|
14585
|
+
// If events is a string, try to parse it
|
|
14586
|
+
if (typeof newValue === 'string') {
|
|
14587
|
+
try {
|
|
14588
|
+
parsed = JSON.parse(newValue);
|
|
14589
|
+
}
|
|
14590
|
+
catch (e) {
|
|
14591
|
+
console.error('Error parsing events JSON', e);
|
|
14592
|
+
parsed = [];
|
|
14593
|
+
}
|
|
14594
|
+
}
|
|
14595
|
+
// If events is already an array, use it directly
|
|
14596
|
+
else if (Array.isArray(newValue)) {
|
|
14597
|
+
parsed = newValue;
|
|
14394
14598
|
}
|
|
14395
|
-
|
|
14396
|
-
|
|
14599
|
+
// Otherwise, default to an empty array
|
|
14600
|
+
else {
|
|
14601
|
+
parsed = [];
|
|
14397
14602
|
}
|
|
14603
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
14604
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
14605
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
14606
|
+
: [];
|
|
14398
14607
|
}
|
|
14399
14608
|
componentWillLoad() {
|
|
14400
14609
|
this.parseEvents(this.events);
|
|
@@ -14421,7 +14630,7 @@ class EdsTimeline {
|
|
|
14421
14630
|
}
|
|
14422
14631
|
}
|
|
14423
14632
|
render() {
|
|
14424
|
-
return (hAsync("div", { key: '
|
|
14633
|
+
return (hAsync("div", { key: '29e360adb412c67e7516f04671c276a12197d830', class: "max-w-sidebar mx-auto px-4 py-8" }, hAsync("div", { key: 'c556578a505bfb2da435616cb1f39cb91859ec7e', class: "relative" }, hAsync("div", { key: '8e1d307b2b3b470c643ba992d8307457581e9d4f', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), hAsync("div", { key: '7b40b6a8944aad01d01524e13056fbafeaa8a8a8', class: "space-y-16" }, this.parsedEvents.map((event, index) => (hAsync("div", { class: "relative flex" }, hAsync("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14425
14634
|
? [{ label: 'completed', style: 'accent' }]
|
|
14426
14635
|
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), hAsync("div", { class: "flex items-center justify-center relative" }, event.completed ? (hAsync("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (hAsync("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), hAsync("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (hAsync("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
14427
14636
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14535,7 +14744,7 @@ class EdsToastManager {
|
|
|
14535
14744
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14536
14745
|
}
|
|
14537
14746
|
render() {
|
|
14538
|
-
return (hAsync("div", { key: '
|
|
14747
|
+
return (hAsync("div", { key: '459148404380e386117387f42183e24a069b2de6', class: "toast-container" }, this.toasts.map((t) => (hAsync("div", { key: t.id }, hAsync("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))))));
|
|
14539
14748
|
}
|
|
14540
14749
|
get hostElement() { return getElement(this); }
|
|
14541
14750
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14661,9 +14870,6 @@ class EdsTooltip {
|
|
|
14661
14870
|
}; }
|
|
14662
14871
|
}
|
|
14663
14872
|
|
|
14664
|
-
const edsTrlCss = "";
|
|
14665
|
-
var EdsTrlStyle0 = edsTrlCss;
|
|
14666
|
-
|
|
14667
14873
|
/**
|
|
14668
14874
|
* @internal
|
|
14669
14875
|
*/
|
|
@@ -14673,13 +14879,23 @@ class EdsTrl {
|
|
|
14673
14879
|
this.applications = undefined;
|
|
14674
14880
|
}
|
|
14675
14881
|
getParsedApplications() {
|
|
14676
|
-
|
|
14677
|
-
|
|
14882
|
+
let apps = [];
|
|
14883
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
14884
|
+
if (typeof this.applications === 'string') {
|
|
14885
|
+
try {
|
|
14886
|
+
apps = JSON.parse(this.applications || '[]');
|
|
14887
|
+
}
|
|
14888
|
+
catch (error) {
|
|
14889
|
+
// Uncomment the next line for debugging
|
|
14890
|
+
// console.error('Invalid applications JSON', error);
|
|
14891
|
+
apps = [];
|
|
14892
|
+
}
|
|
14678
14893
|
}
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14894
|
+
// If applications is already an array, use it directly.
|
|
14895
|
+
else if (Array.isArray(this.applications)) {
|
|
14896
|
+
apps = this.applications;
|
|
14682
14897
|
}
|
|
14898
|
+
return apps;
|
|
14683
14899
|
}
|
|
14684
14900
|
calculateProgress(currentTrl) {
|
|
14685
14901
|
const maxTrl = 9;
|
|
@@ -14687,12 +14903,19 @@ class EdsTrl {
|
|
|
14687
14903
|
}
|
|
14688
14904
|
render() {
|
|
14689
14905
|
const apps = this.getParsedApplications();
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14906
|
+
console.log('apps:', apps);
|
|
14907
|
+
// Map applications into table-friendly data.
|
|
14908
|
+
const tableData = apps.map(app => ({
|
|
14909
|
+
Application: app.name,
|
|
14910
|
+
"Current TRL Stage": `TRL ${app.currentTrl}`,
|
|
14911
|
+
Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
14912
|
+
}));
|
|
14913
|
+
const tableConfig = {
|
|
14914
|
+
"Application": { "format": "code" },
|
|
14915
|
+
"Current TRL Stage": { "format": "text" }
|
|
14916
|
+
};
|
|
14917
|
+
return (hAsync("div", { key: '71e903734b5cd1ef74bf93e8fcdc57afacb51f07', class: "container mx-auto px-4 py-8" }, hAsync("eds-table", { key: 'cb8e4324c9c8481dcc2daf74f06c6928257e6f8b', data: JSON.stringify(tableData), config: JSON.stringify(tableConfig), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" })));
|
|
14694
14918
|
}
|
|
14695
|
-
static get style() { return EdsTrlStyle0; }
|
|
14696
14919
|
static get cmpMeta() { return {
|
|
14697
14920
|
"$flags$": 0,
|
|
14698
14921
|
"$tagName$": "eds-trl",
|
|
@@ -14733,6 +14956,7 @@ class EdsUser {
|
|
|
14733
14956
|
this.handleLogout = () => {
|
|
14734
14957
|
logout();
|
|
14735
14958
|
this.authenticated = false;
|
|
14959
|
+
this.user = null;
|
|
14736
14960
|
};
|
|
14737
14961
|
this.keycloakUrl = undefined;
|
|
14738
14962
|
this.keycloakRealm = undefined;
|
|
@@ -14747,9 +14971,15 @@ class EdsUser {
|
|
|
14747
14971
|
* It initializes authentication by calling the `initAuth` method.
|
|
14748
14972
|
*/
|
|
14749
14973
|
async componentWillLoad() {
|
|
14974
|
+
// Check if required props are provided (optional check)
|
|
14975
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
14976
|
+
// eslint-disable-next-line
|
|
14977
|
+
console.error('Keycloak configuration props are missing.');
|
|
14978
|
+
return;
|
|
14979
|
+
}
|
|
14750
14980
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
14751
14981
|
if (!this.serverAvailable) {
|
|
14752
|
-
toast.show('Keycloak server is unavailable.', 'error');
|
|
14982
|
+
//toast.show('Keycloak server is unavailable.', 'error');
|
|
14753
14983
|
return; // Do not proceed further
|
|
14754
14984
|
}
|
|
14755
14985
|
await this.initAuth();
|
|
@@ -14768,15 +14998,15 @@ class EdsUser {
|
|
|
14768
14998
|
};
|
|
14769
14999
|
await initKeycloak(keycloakConfig, true);
|
|
14770
15000
|
// Set authentication state and fetch user data if authenticated
|
|
14771
|
-
this.authenticated = isAuthenticated();
|
|
14772
|
-
if (
|
|
15001
|
+
//this.authenticated = isAuthenticated();
|
|
15002
|
+
if (isAuthenticated()) {
|
|
14773
15003
|
this.user = getUser();
|
|
15004
|
+
this.authenticated = true;
|
|
14774
15005
|
}
|
|
14775
15006
|
this.authStatusChanged.emit({
|
|
14776
15007
|
authenticated: this.authenticated,
|
|
14777
15008
|
user: this.user
|
|
14778
15009
|
}); // Emit auth status change
|
|
14779
|
-
toast.show(`Welcome back, ${this.user.username}`, 'success');
|
|
14780
15010
|
}
|
|
14781
15011
|
catch (error) {
|
|
14782
15012
|
// eslint-disable-next-line
|
|
@@ -14789,7 +15019,7 @@ class EdsUser {
|
|
|
14789
15019
|
if (!this.serverAvailable) {
|
|
14790
15020
|
return null;
|
|
14791
15021
|
}
|
|
14792
|
-
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin
|
|
15022
|
+
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin, "extra-class": "text-default" })) : (hAsync("div", { class: "flex items-center" }, hAsync("eds-dropdown", { label: `Welcome, ${(_a = this.user) === null || _a === void 0 ? void 0 : _a.username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, hAsync("eds-user-modal", { user: JSON.stringify(this.user), onLogout: this.handleLogout.bind(this) }))))));
|
|
14793
15023
|
}
|
|
14794
15024
|
get hostEl() { return getElement(this); }
|
|
14795
15025
|
static get cmpMeta() { return {
|
|
@@ -14810,9 +15040,6 @@ class EdsUser {
|
|
|
14810
15040
|
}; }
|
|
14811
15041
|
}
|
|
14812
15042
|
|
|
14813
|
-
const edsUserModalCss = "";
|
|
14814
|
-
var EdsUserModalStyle0 = edsUserModalCss;
|
|
14815
|
-
|
|
14816
15043
|
/**
|
|
14817
15044
|
* @internal
|
|
14818
15045
|
*/
|
|
@@ -14845,13 +15072,12 @@ class EdsUserModal {
|
|
|
14845
15072
|
}
|
|
14846
15073
|
render() {
|
|
14847
15074
|
var _a, _b, _c, _d, _e;
|
|
14848
|
-
return (hAsync("div", { key: '
|
|
15075
|
+
return (hAsync("div", { key: 'ad99ddd7c2710ef90840a5571ab6a161178cacc0', class: "min-w-[280px] p-8" }, hAsync("div", { key: 'd1da12f3a965fa7503fb3e00566db0796b803352', class: "flex gap-x-16 pb-16 border-b-2 border-softer" }, hAsync("eds-avatar", { key: 'c3d3ca80a9d23cc88f8ee6801b29995138c9b7c6', "first-name": (_a = this.parsedUser) === null || _a === void 0 ? void 0 : _a.firstname, "last-name": (_b = this.parsedUser) === null || _b === void 0 ? void 0 : _b.lastname, initials: this.initials, color: "grey", rounded: true, "initials-strong": true }), hAsync("div", { key: '4efe378b3a9ce76d35e642db150be13d0434db72', class: "max-w-full" }, ((_c = this.parsedUser) === null || _c === void 0 ? void 0 : _c.fullname) && (hAsync("p", { key: '1068082a2894e3c3e3f77d1eea923f9c39d8766c', class: "f-ui-01 text-default w-full text-ellipsis" }, this.parsedUser.fullname)), ((_d = this.parsedUser) === null || _d === void 0 ? void 0 : _d.username) && hAsync("p", { key: 'b86e08b806a37c9957bca7f9ee268303e7ace134', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.username), ((_e = this.parsedUser) === null || _e === void 0 ? void 0 : _e.email) && hAsync("p", { key: 'b3514920e1eb4906cb7f7705bfbc986166e84946', class: "f-ui-03-light text-light mt-4" }, this.parsedUser.email))), hAsync("div", { key: '61941fa0a19a19087da886a73d85d7e438d2c0b0', class: "text-default mt-16 flex w-full flex-col gap-y-8" }, hAsync("div", { key: '5ad2be1763726c9d794b78a2593106fd8ba1dc7b', class: "border-softer mb-10 border-b-2 pb-16" }, hAsync("eds-link", { key: 'dbe3a9de56bf5ccc26426ddb831f2d1a27a0e6ff', label: "My EBRAINS", "aria-label": "My EBRAINS", url: "https://www.ebrains.eu/dashboard", intent: "primary", "extra-class": "w-full", external: true })), hAsync("eds-link", { key: 1, label: "Account Settings", url: "https://iam.ebrains.eu/auth/realms/hbp/account/", intent: "secondary", icon: "arrow-diagonal", external: true, "extra-class": "w-full" }), this.hasLogout && (hAsync("eds-link", { key: '642890827e2fa6735bc616e680dbda481c2c0053', label: "Sign out", intent: "tertiary", "extra-class": "w-full justify-center", onClick: () => this.onLogout && this.onLogout() })))));
|
|
14849
15076
|
}
|
|
14850
15077
|
static get watchers() { return {
|
|
14851
15078
|
"user": ["parseUserProp"],
|
|
14852
15079
|
"links": ["parseLinksProp"]
|
|
14853
15080
|
}; }
|
|
14854
|
-
static get style() { return EdsUserModalStyle0; }
|
|
14855
15081
|
static get cmpMeta() { return {
|
|
14856
15082
|
"$flags$": 0,
|
|
14857
15083
|
"$tagName$": "eds-user-modal",
|
|
@@ -14903,7 +15129,7 @@ class GradientPrimaryPalette {
|
|
|
14903
15129
|
];
|
|
14904
15130
|
}
|
|
14905
15131
|
render() {
|
|
14906
|
-
return (hAsync("ul", { key: '
|
|
15132
|
+
return (hAsync("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14907
15133
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14908
15134
|
} }, this.colors.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "effect-height flex items-center justify-between p-16" }, hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.rgb), hAsync("span", { class: "f-body-02 w-full" }, color.cmyk), hAsync("eds-code-block", { code: color.hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { class: "grid" }, hAsync("span", { class: "f-body-02" }, color.pantoneC), hAsync("span", { class: "f-body-02" }, color.pantoneU))))))));
|
|
14909
15135
|
}
|
|
@@ -14976,19 +15202,19 @@ class GradientSecondaryPalette {
|
|
|
14976
15202
|
];
|
|
14977
15203
|
}
|
|
14978
15204
|
render() {
|
|
14979
|
-
return (hAsync("div", { key: '
|
|
15205
|
+
return (hAsync("div", { key: '29353679b15fce11ec2e357704cffd6a2d1389d4' }, hAsync("ul", { key: '7a262e1c8f17226c6639a00e1829d4f0927f988d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'f3dfcbe6da3ee882ae9100f95fe68788cd82195f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '83e3ac5d6f64e18e38e179251d58ff3ed23019a3', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14980
15206
|
background: this.colors[0].background
|
|
14981
|
-
} }, hAsync("div", { key: '
|
|
15207
|
+
} }, hAsync("div", { key: 'ebc2424dd2950cc2704351456d4d974051e0dd93', class: "grid" }, hAsync("span", { key: '3fdfb110070a8795a1bb1aea12447bc2556937cc', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: '0b929d1ddd40e67bc8cd0248fc7bf0c0f8a11cb7', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: '3f4ab8d6b91afeaba20c273b8ede74593d452bf0', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '80b6a23a151e6b71630071f2d51c03e6b8c957ff', class: "grid" }, hAsync("span", { key: 'c86531490e51f5559d4293bc75bb2477d23d1593', class: "f-body-02" }, this.colors[0].pantoneC), hAsync("span", { key: '5bbc4e02eb2845508c6de7715f5fe202a36249a5', class: "f-body-02" }, this.colors[0].pantoneU))), hAsync("div", { key: '050d2770d4c2e6395dc5350c9f29860ecf3d7e46', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14982
15208
|
background: this.colors[1].background
|
|
14983
|
-
} }, hAsync("div", { key: '
|
|
15209
|
+
} }, hAsync("div", { key: '20a5a6748573d6e059ec81d00a737355cfd7f934', class: "grid" }, hAsync("span", { key: 'a63a0ea4301f11e4984f3749c087041acedb94b4', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: 'd986ecee52e15de1bbd58c48109f8c89d0cf19a2', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: 'd35bb3c1cb26aa9a3828cecfde1b32f428e8b1af', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '8a616b789a99d3721ccc1f102131c2aba1951106', class: "grid" }, hAsync("span", { key: '03d172bbc56a4535d20051bb2ab1bfb4c0889586', class: "f-body-02" }, this.colors[1].pantoneC), hAsync("span", { key: '66f1656d1d41f1616175285cf8f7e7089c9f2657', class: "f-body-02" }, this.colors[1].pantoneU))))), hAsync("eds-block-break", { key: '85a7244a69f0d3af26ea5f148917183e2431140e' }), hAsync("ul", { key: 'eb44b6b21fc75b1fd22e1aee42fac1aa99155b0d', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'ecb50392387996034d1f4211d5336d2071927844', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'f45bf292bf11cb440731ff7bc67e5b364cb7b6c1', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14984
15210
|
background: this.colors[2].background
|
|
14985
|
-
} }, hAsync("div", { key: '
|
|
15211
|
+
} }, hAsync("div", { key: '981db4da9bdbc0f60ba6e8fd83840101a815550f', class: "grid" }, hAsync("span", { key: 'd6aaf058991f0d7e1c4d5d7bfa17b0342880cb9c', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: 'cd63d8d64b9fa30f7a568125f61d3735c3596f0b', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'aca8d6c9668168c6d4b71cb5039e0af4cd419e30', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'ed16477727fe22372cbcd730c4e9cc67f5b35ed8', class: "grid" }, hAsync("span", { key: '4b6989756eb826d93b5b7d71e874f62914d221df', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'a4e3d7e9f3582a0fc5dfabbfc9feb5bb969c2933', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: 'd23b28073abf3c16b3f8d58744fb5f66877cdd94', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14986
15212
|
background: this.colors[3].background
|
|
14987
|
-
} }, hAsync("div", { key: '
|
|
15213
|
+
} }, hAsync("div", { key: '1c96adb58e67d7cada4b4ba382ca2fcd37f0dfd8', class: "grid" }, hAsync("span", { key: 'beaab441ab5852d1141b509a161123ab0f743e7c', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: 'd2e57f4fd72ff1ef9c84f27e81c8c6b03ec50f66', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '48772cedf0b4ad119e14696e58203efce7bb3559', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '0e233bc33432cdd2149ab20b64464d03de22bcef', class: "grid" }, hAsync("span", { key: 'b0f41ae03bfd3bedf2ebd60b6a4b30c677395da0', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '433f30e367352cbd24668dac2ecf741b9f81febe', class: "f-body-02" }, this.colors[3].pantoneU))))), hAsync("eds-block-break", { key: 'a862789d835c146d140b634782eefa7b48139597' }), hAsync("ul", { key: '9fe132435b11fa93057df3d747dfe36f04bfd997', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'e8438aedc62f4d0195a3c4c1c714ba99c6f7b67f', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '9928ba20be7b9100e437345a4c5b03bf6d495707', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14988
15214
|
background: this.colors[4].background
|
|
14989
|
-
} }, hAsync("div", { key: '
|
|
15215
|
+
} }, hAsync("div", { key: '1cd2d6a8ec580b4094335d3c56acfbb398a96c28', class: "grid" }, hAsync("span", { key: 'dbbd548a12bcc861526309132e685a97714de1d5', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '93d38512e45747e4277169ee3221c36f96862f29', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: 'b04c9679ea48bf89e70cc969ecd42984ce3c7286', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '4a6130bdeb963c9674100528e2ef24a2245acbab', class: "grid" }, hAsync("span", { key: '7f49f52d514e36d7886a1aecb3c92c7148dcf595', class: "f-body-02" }, this.colors[4].pantoneC), hAsync("span", { key: '0d9a53c5262183a24114f762175f1d9fe5299950', class: "f-body-02" }, this.colors[4].pantoneU))), hAsync("div", { key: '26a6e6ca4a67e5ff01d4fcb75e40fdb1456ca62f', class: "effect-height flex items-center justify-between p-16", style: {
|
|
14990
15216
|
background: this.colors[5].background
|
|
14991
|
-
} }, hAsync("div", { key: '
|
|
15217
|
+
} }, hAsync("div", { key: 'ff5052b9aa74a3edb7d3ba6d1c75b9073b969b31', class: "grid" }, hAsync("span", { key: 'b69e9f4646835b689fd46c6f84b8b35dba1500a1', class: "f-body-02" }, this.colors[5].rgb), hAsync("span", { key: 'a459cc1600cb4072e6d1cfbcae75d17cf14fbbfe', class: "f-body-02 w-full" }, this.colors[5].cmyk), hAsync("eds-code-block", { key: '55f9185213f01a7891a4e8ff54f4f26759370ef8', code: this.colors[5].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '2f3bbbcdf402f0da4bade772b3cadb1b8cb3370c', class: "grid" }, hAsync("span", { key: '818372e4673ef5c8e35085702a559b744a5cbe8c', class: "f-body-02" }, this.colors[5].pantoneC), hAsync("span", { key: '2bc994826618735b82fd93fe039328a2ff4f6f95', class: "f-body-02" }, this.colors[5].pantoneU)))))));
|
|
14992
15218
|
}
|
|
14993
15219
|
static get cmpMeta() { return {
|
|
14994
15220
|
"$flags$": 0,
|
|
@@ -15051,11 +15277,11 @@ class GradientSupportPalette {
|
|
|
15051
15277
|
];
|
|
15052
15278
|
}
|
|
15053
15279
|
render() {
|
|
15054
|
-
return (hAsync("ul", { key: '
|
|
15280
|
+
return (hAsync("ul", { key: 'e5444717497402cac34586943ffd10abd2e77148', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: '84f6b65181b6f2237b7ef261445a2e58935975ab', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b9eb17a05b1a479e46adf3908ede6d2a74e47e91', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[0].background } }, hAsync("div", { key: '74cb2cf74997cf993557cbf06158578a45439965', class: "grid" }, hAsync("span", { key: '29c00a82880aff024927e29c95fde61016553d5d', class: "f-body-02" }, this.colors[0].rgb), hAsync("span", { key: 'db89f95d9c30eb90ba6d7f9cd12c793f8a500b00', class: "f-body-02 w-full" }, this.colors[0].cmyk), hAsync("eds-code-block", { key: 'd050e9d7910ed8ac88f4f791a2c8a1edaadcb0ac', code: this.colors[0].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'd2b688154a3d1f61df4dcc1f735eae9747011d01', class: "grid" }, hAsync("span", { key: '2a204759a52f881b2d6b0d40116bf00bbda3aed2', class: "f-body-02" }, this.colors[0].pantoneC || 'N/A'), hAsync("span", { key: '9023f33ba5182558f12dfb119ed4338649638bd7', class: "f-body-02" }, this.colors[0].pantoneU || 'N/A')))), hAsync("li", { key: '55a4cf54a4dbc1b5c7f9962c571cbb971cba0d93', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'b4190fda8834ddfe5e53e90d357cc1835e7d16ce', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[1].background } }, hAsync("div", { key: 'cf5415f31d46d7a966fa3da040aec720c0241673', class: "grid" }, hAsync("span", { key: '4fb475890391784e8be7c40d0c74c02a492739f7', class: "f-body-02" }, this.colors[1].rgb), hAsync("span", { key: '02f5bd1fcb7be45141963bb1d723646195978d49', class: "f-body-02 w-full" }, this.colors[1].cmyk), hAsync("eds-code-block", { key: '781791e59a86c8687d9afe6d729161acf05fc9dd', code: this.colors[1].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'dd84d9b36892ff47481babfb2fbb8a9082f43219', class: "grid" }, hAsync("span", { key: 'df5ef60b6866f46bafcd93d8f82498090102a520', class: "f-body-02" }, this.colors[1].pantoneC || 'N/A'), hAsync("span", { key: 'a8cf80fcb9f7fef12daf32055c61fdb33ee38d67', class: "f-body-02" }, this.colors[1].pantoneU || 'N/A')))), hAsync("li", { key: '2ed0376ad5484fadac08c530450e993fa6145328', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: '30ba72591ea4537407b2220a85a961fce0fc54e5', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15055
15281
|
background: this.colors[2].background
|
|
15056
|
-
} }, hAsync("div", { key: '
|
|
15282
|
+
} }, hAsync("div", { key: '641ea920703268846558c852fe087fa9546e14b7', class: "grid" }, hAsync("span", { key: 'f672422e13deb40e9dfaddd6f9855b2de28eab5b', class: "f-body-02" }, this.colors[2].rgb), hAsync("span", { key: '008794c76fb2713438c198c914e718efbbfc7b5e', class: "f-body-02 w-full" }, this.colors[2].cmyk), hAsync("eds-code-block", { key: 'ee1cfa3a78f670c74e00e96b6415f85715334526', code: this.colors[2].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '295c044bb9cc9ed3a85bb488225db4401f0ea542', class: "grid" }, hAsync("span", { key: '9d7dbf15fd44ce3d3e45a39324ad3a60d7ae30f0', class: "f-body-02" }, this.colors[2].pantoneC), hAsync("span", { key: 'd639d12c3215caf3f4f1e8a4ae062b540b6af50d', class: "f-body-02" }, this.colors[2].pantoneU))), hAsync("div", { key: '04e95d8b1a6f7dcdbc465263382e36d05f79d602', class: "effect-height flex items-center justify-between p-16", style: {
|
|
15057
15283
|
background: this.colors[3].background
|
|
15058
|
-
} }, hAsync("div", { key: '
|
|
15284
|
+
} }, hAsync("div", { key: 'e67079bbbdfa1853a2f069f08c52a8388cce688a', class: "grid" }, hAsync("span", { key: '43be6b7785066c0d51aa87e987fb672a758de8bb', class: "f-body-02" }, this.colors[3].rgb), hAsync("span", { key: '791e968b11a9dafefac8fe0eda01b04ab4911802', class: "f-body-02 w-full" }, this.colors[3].cmyk), hAsync("eds-code-block", { key: '5831fd1e75f8ed0d2edc29fbc439389275adf59e', code: this.colors[3].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: '09329acac8fbc33edada7a7c10c675631a240ea2', class: "grid" }, hAsync("span", { key: '42f70fa2578b40e189b95cd1d4c56ccd84cdce69', class: "f-body-02" }, this.colors[3].pantoneC), hAsync("span", { key: '2b8dfefd1e2dff08aa17b234a04cff60e3eb9d7a', class: "f-body-02" }, this.colors[3].pantoneU)))), hAsync("li", { key: 'e3a39fb7ad23526623bfea88cdab8d320847365d', class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { key: 'cfde16c94675c5c9b510e3752f875655c9d098e2', class: "effect-height flex items-center justify-between p-16", style: { backgroundColor: this.colors[4].background } }, hAsync("div", { key: '1f8a8bd2e746c187323841ced84eec52d2c2f2f1', class: "grid" }, hAsync("span", { key: '920fc68ae73790a37c927dabf687ccaf5e248841', class: "f-body-02" }, this.colors[4].rgb), hAsync("span", { key: '40205cf5666e6ba44ca07a09dc08e54f2f9cad56', class: "f-body-02 w-full" }, this.colors[4].cmyk), hAsync("eds-code-block", { key: '8a855110b362569cc9926a09772d12f133aa20b6', code: this.colors[4].hex, style: { minWidth: '150px', marginRight: '5px' } })), hAsync("div", { key: 'a69c90cfac79b0a7ba5fbd921117a12ce997c228', class: "grid" }, hAsync("span", { key: 'bc06aaaaececad3b81e4884380e17fe773f97570', class: "f-body-02" }, this.colors[4].pantoneC || 'N/A'), hAsync("span", { key: '15baae3dafc6b53322e1a67956af1f533ea402f7', class: "f-body-02" }, this.colors[4].pantoneU || 'N/A'))))));
|
|
15059
15285
|
}
|
|
15060
15286
|
static get cmpMeta() { return {
|
|
15061
15287
|
"$flags$": 0,
|
|
@@ -15101,10 +15327,6 @@ const incorrect = [
|
|
|
15101
15327
|
...purple,
|
|
15102
15328
|
...red
|
|
15103
15329
|
];
|
|
15104
|
-
/**
|
|
15105
|
-
* `CorrectUseOfColors` is a component that combines the primary palette and support palette
|
|
15106
|
-
* to display the correct use of colors.
|
|
15107
|
-
*/
|
|
15108
15330
|
/**
|
|
15109
15331
|
* @internal
|
|
15110
15332
|
*/
|
|
@@ -15113,7 +15335,7 @@ class IncorrectUseOfColors {
|
|
|
15113
15335
|
registerInstance(this, hostRef);
|
|
15114
15336
|
}
|
|
15115
15337
|
render() {
|
|
15116
|
-
return (hAsync("div", { key: '
|
|
15338
|
+
return (hAsync("div", { key: '2e660e9a788e46e68d6695ae8aa475bbb1ca395e', class: "container" }, hAsync("eds-alert", { key: '1dc4552a33d88055a3a0c33eeb18c53a8379039a', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), hAsync("div", { key: 'fd6bf7f0205422b1bd3ceb3f8374d5a9a73aaca0', class: "flex" }, hAsync("div", { key: 'dae745447f5e9792136f059b1dcfc868e473dfd5', class: "w-full" }, hAsync("ul", { key: 'daeec7514f4027ec3f688f05fb4f1e027b846a81', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), hAsync("div", { key: '1ca202afa9384e78e3ed9c0674e06c51184d3a5a', class: "w-full" }, hAsync("ul", { key: '7bdef2e7d64f3c5553193d127bac69ee89a93686', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, hAsync("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
15117
15339
|
}
|
|
15118
15340
|
static get cmpMeta() { return {
|
|
15119
15341
|
"$flags$": 0,
|
|
@@ -15136,7 +15358,7 @@ class LogoSpace {
|
|
|
15136
15358
|
registerInstance(this, hostRef);
|
|
15137
15359
|
}
|
|
15138
15360
|
render() {
|
|
15139
|
-
return (hAsync("div", { key: '
|
|
15361
|
+
return (hAsync("div", { key: '004134f2770f755a3ae0d158b9ec6987a64dcc8b', class: "container my-20" }, hAsync("div", { key: '49b57e44a4a68b5d6393ee3284af58d56aa5c014', class: "w-[300px]" }, hAsync("div", { key: '4812ffe1b1df94ece0e2d391648aea812c7c9028', class: "bg-dark" }, hAsync("div", { key: 'ce3bbecdba5bbabb14d1b0e197318cf4180f8699', class: "logo-container", innerHTML: vLogoMargins })))));
|
|
15140
15362
|
}
|
|
15141
15363
|
static get style() { return LogoSpaceStyle0; }
|
|
15142
15364
|
static get cmpMeta() { return {
|
|
@@ -15149,38 +15371,24 @@ class LogoSpace {
|
|
|
15149
15371
|
}; }
|
|
15150
15372
|
}
|
|
15151
15373
|
|
|
15152
|
-
const logoVariationsHorizontalCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[300px\\]{width:500px}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
|
|
15374
|
+
const logoVariationsHorizontalCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.w-\\[150px\\]{width:150px}.w-\\[500px\\]{width:500px}@media (min-width: 750px){.md\\:w-\\[300px\\]{width:300px}.md\\:w-\\[500px\\]{width:500px}}@media (min-width: 900px){.lg\\:w-\\[300px\\]{width:300px}.lg\\:w-\\[500px\\]{width:500px}}.coloured{background:linear-gradient(to left, \n #9CE142 0%, \n #00C959 50%, \n #00A595 100%)}";
|
|
15153
15375
|
var LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
|
|
15154
15376
|
|
|
15155
15377
|
/**
|
|
15156
15378
|
* @internal
|
|
15157
15379
|
*/
|
|
15158
|
-
class
|
|
15380
|
+
class LogoVariationsHorizontal {
|
|
15159
15381
|
constructor(hostRef) {
|
|
15160
15382
|
registerInstance(this, hostRef);
|
|
15161
|
-
this.orientation = 'horizontal';
|
|
15162
|
-
this.type = undefined;
|
|
15163
15383
|
}
|
|
15164
15384
|
render() {
|
|
15165
|
-
|
|
15166
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[300px]" }, hAsync("eds-logo", { type: "no-bg", href: "#" }))));
|
|
15167
|
-
}
|
|
15168
|
-
if (this.type === 'black') {
|
|
15169
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[300px]" }, hAsync("eds-logo", { type: "black", href: "#" }))));
|
|
15170
|
-
}
|
|
15171
|
-
if (this.type === 'color-white') {
|
|
15172
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[300px]" }, hAsync("eds-logo", { type: "color-white", href: "#" }))));
|
|
15173
|
-
}
|
|
15174
|
-
return null;
|
|
15385
|
+
return (hAsync("div", { key: '577cade970766dbbbd654258efe78920d8c0dbaf' }, hAsync("div", { key: '1c577dafe342384bffce716b4bcb9494685f2283', class: "container my-16" }, hAsync("h3", { key: 'b9f78264dbbe144cc9c7823c48874b3618af3919', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'c07b24eb1a3338d33a3b95c0228a1a7f297a0976', class: "coloured lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'ed173d7c59ae22ad55814cf64222a5ce52d108d4', type: "no-bg", href: "#" }))), hAsync("div", { key: '7d939b469a8ce14f609e529121a830d9a47af857', class: "container my-16" }, hAsync("h3", { key: 'f110490f66e3d27f204e289a5eb85461c13594fa', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'd05bd8166d2a60aac723436b96e2451ae4459c04', class: "bg-default lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: 'ce24bb6db3038d781a4d1917012c0d4ed7f23b1a', type: "black", href: "#" }))), hAsync("div", { key: '32fbbb1568604bdfd04c6ca6c14a558a3c490ed8', class: "container my-16" }, hAsync("h3", { key: 'ef03e68319669f548c7826d6387072af8d3f5a66', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: 'a6b082f14400be771f43074c1f7f0bc348e77673', class: "lg:w-[500px] md:w-[300px]" }, hAsync("eds-logo", { key: '569f77f1b43b4a65a39720017b34273d6f3d7baa', type: "color-white", href: "#" })))));
|
|
15175
15386
|
}
|
|
15176
15387
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15177
15388
|
static get cmpMeta() { return {
|
|
15178
15389
|
"$flags$": 9,
|
|
15179
15390
|
"$tagName$": "logo-variations-horizontal",
|
|
15180
|
-
"$members$":
|
|
15181
|
-
"orientation": [1],
|
|
15182
|
-
"type": [1]
|
|
15183
|
-
},
|
|
15391
|
+
"$members$": undefined,
|
|
15184
15392
|
"$listeners$": undefined,
|
|
15185
15393
|
"$lazyBundleId$": "-",
|
|
15186
15394
|
"$attrsToReflect$": []
|
|
@@ -15193,23 +15401,14 @@ var LogoVariationsVerticalStyle0 = logoVariationsVerticalCss;
|
|
|
15193
15401
|
/**
|
|
15194
15402
|
* @internal
|
|
15195
15403
|
*/
|
|
15196
|
-
class
|
|
15404
|
+
class LogoVariationsVertical {
|
|
15197
15405
|
constructor(hostRef) {
|
|
15198
15406
|
registerInstance(this, hostRef);
|
|
15199
|
-
this.orientation = '
|
|
15407
|
+
this.orientation = 'vertical';
|
|
15200
15408
|
this.type = undefined;
|
|
15201
15409
|
}
|
|
15202
15410
|
render() {
|
|
15203
|
-
|
|
15204
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
|
|
15205
|
-
}
|
|
15206
|
-
if (this.type === 'black') {
|
|
15207
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
|
|
15208
|
-
}
|
|
15209
|
-
if (this.type === 'color-white') {
|
|
15210
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
|
|
15211
|
-
}
|
|
15212
|
-
return null;
|
|
15411
|
+
return (hAsync("div", { key: '70bc4a46031bb4456ba28bef27efbbfe5e7cf6f2' }, hAsync("div", { key: '84ab774067350c75982d41b6d97500e19d3fe5e5', class: "container my-16" }, hAsync("h3", { key: 'c080f9b4cfa18a3a48fb703f749c62531a322267', class: "f-heading03" }, "Coloured Background"), hAsync("div", { key: 'a9a871769d76e97c879f49437187ca553a633dd2', class: "coloured w-[200px]" }, hAsync("eds-logo", { key: '668f2607e0394ab1b25ddfbef4cd3e3880e1b4f9', orientation: "vertical", type: "no-bg", href: "#" }))), hAsync("div", { key: 'd1674061f47b242930599337d605b51831214d7a', class: "container my-16" }, hAsync("h3", { key: '8b1470587ad99fdf379c0c4b4646098d14f087e8', class: "f-heading03" }, "Black and White Background"), hAsync("div", { key: 'bbb9997369a93ce84450a7d289948049fcfa5bf6', class: "bg-default w-[200px]" }, hAsync("eds-logo", { key: '4f3dc6ad9f9db6f605d54df3c8adecea051cf34e', orientation: "vertical", type: "black", href: "#" }))), hAsync("div", { key: '0f54fde04fbef65477809b45371ac15914b1433b', class: "container my-16" }, hAsync("h3", { key: '5c46f1d7b09bf3e113e2733531611943ad21be4e', class: "f-heading03" }, "Dark Background "), hAsync("div", { key: '88609875109aae85cb5333426a3bc270314d9fb5', class: "w-[200px]" }, hAsync("eds-logo", { key: '0eeeba0006e25a8a4f0c4fb5c0d38b089e0a22f4', orientation: "vertical", type: "color-white", href: "#" })))));
|
|
15213
15412
|
}
|
|
15214
15413
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15215
15414
|
static get cmpMeta() { return {
|
|
@@ -15225,7 +15424,7 @@ class LogoVariations {
|
|
|
15225
15424
|
}; }
|
|
15226
15425
|
}
|
|
15227
15426
|
|
|
15228
|
-
const logoWrongUsageCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";
|
|
15427
|
+
const logoWrongUsageCss = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.bg-accent{background-color:var(--green-500)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.p-8{padding:0.5rem}.p-16{padding:1rem}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.container{display:flex;flex-wrap:wrap;gap:16px}.example{width:200px;text-align:center;font-size:14px}.logo{width:100%;height:auto}.bg-dark{background-color:#333}.bg-light{background-color:#f3f3f3}.bg-white{background-color:white}.non-brand-color{fill:purple;}.distorted{transform:scaleX(1.5)}.effects{filter:drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.5))}.rotated{transform:rotate(15deg)}.no-other-bg-color{background-color:var(--purple-200)}.no-other-color{color:var(--red-700)}.outlined{stroke:red;stroke-width:2px;fill:none;}.custom-font{font-family:'Comic Sans MS', cursive;font-size:20px;color:#333;}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.gap-y-8{row-gap:0.5rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:gap-y-12{row-gap:0.75rem}.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:order-last{order:9999}.lg\\:order-none{order:0}.lg\\:mt-0{margin-top:0rem}.lg\\:flex{display:flex}.lg\\:w-\\[150px\\]{width:150px}.lg\\:w-auto{width:auto}.lg\\:max-w-\\[720px\\]{max-width:720px}.lg\\:flex-row{flex-direction:row}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:gap-y-16{row-gap:1rem}.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}.lg\\:\\!pl-12{padding-left:0.75rem !important}.lg\\:\\!pr-12{padding-right:0.75rem !important}}@media (min-width: 750px){.md\\:grid-col-span-4{--container-grid-columns:4;grid-column:span 4 / span 4}.md\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}}.flex-col{flex-direction:column}";
|
|
15229
15428
|
var LogoWrongUsageStyle0 = logoWrongUsageCss;
|
|
15230
15429
|
|
|
15231
15430
|
/**
|
|
@@ -15236,7 +15435,7 @@ class LogoWrongUsage {
|
|
|
15236
15435
|
registerInstance(this, hostRef);
|
|
15237
15436
|
}
|
|
15238
15437
|
render() {
|
|
15239
|
-
return (hAsync("ul", { key: '
|
|
15438
|
+
return (hAsync("ul", { key: 'e2fbd7802c153f970a457011a5dcaf3163d6290f', class: "container grid-layout gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("span", { key: '07d6a5b930dd8ae652e63310c4232e8c3e6858b2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '5d3dd01a67f41f839e79aa3d449ba319dcc0209c', class: "example" }, hAsync("div", { key: '6b51ea71b6b4072ec6c66223a4f92c1232e8691a', class: "bg-dark " }, hAsync("div", { key: '03a476635bc1112f1ea2d4ed10df0415ead7f0f8', class: "no-other-bg-color logo", innerHTML: hLogoColor })), hAsync("p", { key: '084116335e9f8ed4c9d2a04a9551097dc2a53c4a', class: "f-ui-02" }, "Do not use with backgrounds that make legibility difficult"))), hAsync("span", { key: 'e67f1bdeee28928f4f6f8fb5d1e0b59160edd949', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'b0e909eb57a6771b32a93dd0932ef5b848a19ff2', class: "example" }, hAsync("div", { key: '19bc9f29ddbffd1c308cb429100f0af3d58237a1', class: "no-other-color p-16" }, hAsync("div", { key: '301c5cb926b9ad167f1ba096f99a874577617fb1', class: "logo non-brand-color", innerHTML: hLogoColor })), hAsync("p", { key: 'b41ab53c2af9efeafb46d41a515eba2f801d49e4', class: "f-ui-02" }, "Do not apply other colors"))), hAsync("span", { key: '826ae54f62c5a3880adf1833dbc19bbb9e1ec6f2', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '092d5fc3176845532ecf577c66d6e3a349ebfe45', class: "example" }, hAsync("div", { key: '1d1d3cc86e728fc21f898c59ff1511c5fa728f9f', class: "bg-light p-16" }, hAsync("div", { key: 'df05102398d3de9916a23d0998529d8ca8a66257', class: "logo distorted", innerHTML: hLogoColor })), hAsync("p", { key: '377e38a762855d563d087eb275481de6a17ddbbb', class: "f-ui-02" }, "Do not deform the logo"))), hAsync("span", { key: '766c4ea568c8bf2fa1efa207ff5f602e5128aef3', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: 'cf4e883370c0ee284167bea7f2c0c603932d1682', class: "example" }, hAsync("div", { key: 'de160646456f91316bf966db6568c20ff382dd3b', class: "bg-white p-16" }, hAsync("div", { key: '5aa03093e5e483547919eaeca58643e54a286405', class: "logo effects", innerHTML: hLogoColor })), hAsync("p", { key: 'aa65e295008001d6fe2b2168d8f7f43a770ec8e3', class: "f-ui-02" }, "Do not apply effects"))), hAsync("span", { key: 'd0eb2536e430b6e9fdb9a37d638d5c31ee81e205', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '43ec87b4632c2709404aff9d3e7bbcb2910426ca', class: "example" }, hAsync("div", { key: '36cd6dc2b23070e5c7fdfc09444d3ccbb8681216', class: "bg-white p-16" }, hAsync("div", { key: 'a1077b322d113220e05ee3edce627c60547cb49a', class: "logo rotated", innerHTML: hLogoColor })), hAsync("p", { key: '86c384f5cf362d16bd6ac5ac8448e3e0d591fa18', class: "f-ui-02" }, "Do not rotate the logo"))), hAsync("span", { key: 'b267f6024a4e7bad6348d323606922888db5264b', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '0bd0c5d62e454ce133a187e7d3917afc0c26c551', class: "example" }, hAsync("div", { key: '71e4c1681cfbb64970237b410e0925a0f22e1141', class: "bg-light p-16" }, hAsync("div", { key: '01ab5d75102b9f476fecebcc31c975f6d4720c12', class: "logo outlined", innerHTML: hLogoColor })), hAsync("p", { key: '0734a049d710d1f6406989668f60da1249e29c7b', class: "f-ui-02" }, "Do not apply outlines"))), hAsync("span", { key: '830b7b2a8cdf6dfc7f395dc92db42fbe626a7ae4', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }), hAsync("span", { key: 'ca40bb4ea839eacf62e93f7fbec41f076f7b12a6', class: `grid-col-span-12 md:grid-col-span-4 flex flex-col` }, hAsync("div", { key: '641a963ba81294eefe8fc00dd0a3bdca91af94a2', class: "example" }, hAsync("div", { key: '70691be08e9081899fb2928d5d287aaebef3b399', class: "bg-accent p-16" }, hAsync("div", { key: '556135fd6596b530bf959bb9984641f185cd9f96', class: "text-inverse", innerHTML: hLogoColor })), hAsync("p", { key: '7eaded302e41fc1d04f2033add829dfaba6e8012', class: "f-ui-02" }, "Do not use the green background for the logo version of the logo with backgrounds with the same tones")))));
|
|
15240
15439
|
}
|
|
15241
15440
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15242
15441
|
static get cmpMeta() { return {
|
|
@@ -15492,7 +15691,7 @@ class TokenList {
|
|
|
15492
15691
|
render() {
|
|
15493
15692
|
// Check if `show` prop is provided; if not, display all sections
|
|
15494
15693
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15495
|
-
return (hAsync("section", { key: '
|
|
15694
|
+
return (hAsync("section", { key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15496
15695
|
// Only render sections that exist in `colors`
|
|
15497
15696
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15498
15697
|
}
|
|
@@ -15525,7 +15724,7 @@ class TokenRadii {
|
|
|
15525
15724
|
registerInstance(this, hostRef);
|
|
15526
15725
|
}
|
|
15527
15726
|
render() {
|
|
15528
|
-
return (hAsync("section", { key: '
|
|
15727
|
+
return (hAsync("section", { key: '84dabcd5a39d49e116f8fc9e9b26e00455c7fbb3', class: "w-full mt-28" }, hAsync("ul", { key: 'a821c747c45b8898ab2e7626d2ead91814549335', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(radii).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: `w-full p-16 block lg:flex items-center justify-center text-center border-3 border-soft rounded-${key}` }, hAsync("eds-code-block", { language: "Utility Class", code: `rounded-${key}`, class: "mx-auto min-w-[200px] sm:mb-4 sm:max-w-[200px] mr-auto" }), hAsync("eds-code-block", { code: `border-radius:${value}`, language: "css", class: "mx-auto min-w-[200px] sm:max-w-[200px] ml-auto" }))))))));
|
|
15529
15728
|
}
|
|
15530
15729
|
static get cmpMeta() { return {
|
|
15531
15730
|
"$flags$": 0,
|
|
@@ -15554,7 +15753,7 @@ class TokenRatios {
|
|
|
15554
15753
|
registerInstance(this, hostRef);
|
|
15555
15754
|
}
|
|
15556
15755
|
render() {
|
|
15557
|
-
return (hAsync("section", { key: '
|
|
15756
|
+
return (hAsync("section", { key: '9c4dc70bd40a40fbeedc88280ea3fdd4b2597e40', class: "w-full" }, hAsync("eds-section-core", { key: '039b72b762e48f62a4fa58d5af7803d0ed73bf6a', tag: "div", "section-title": "Aspect Ratios", "heading-level": "h3" }, hAsync("ul", { key: 'be3e37d842a24536488b7bc03f24399faa1304ff', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(ratios).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "container ratio-box flex items-center justify-center text-center border-2 border-soft", style: {
|
|
15558
15757
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15559
15758
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15560
15759
|
maxWidth: '300px'
|
|
@@ -15596,7 +15795,7 @@ class TokenShadows {
|
|
|
15596
15795
|
registerInstance(this, hostRef);
|
|
15597
15796
|
}
|
|
15598
15797
|
render() {
|
|
15599
|
-
return (hAsync("section", { key: '
|
|
15798
|
+
return (hAsync("section", { key: '4575feac8b5bff23aed39733e638fbb62916988f', class: "w-full mt-28" }, hAsync("ul", { key: 'c9833aa0d698a7ec33911011ccb9227d43c8261a', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(shadowTokens).map(([category, tokens]) => Object.entries(tokens).map(([key, value]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-16 block lg:flex items-center justify-center text-center border-2 border-soft", style: { boxShadow: value } }, hAsync("eds-code-block", { code: `${category}-${key}`, language: "Utility Class", class: "mr-auto sm:mb-4 min-w-[200px]" }), hAsync("eds-code-block", { code: `${value}`, language: "css", class: "ml-auto min-w-[200px]" })))))))));
|
|
15600
15799
|
}
|
|
15601
15800
|
static get cmpMeta() { return {
|
|
15602
15801
|
"$flags$": 0,
|
|
@@ -15616,7 +15815,7 @@ class TokenSpacing {
|
|
|
15616
15815
|
registerInstance(this, hostRef);
|
|
15617
15816
|
}
|
|
15618
15817
|
render() {
|
|
15619
|
-
return (hAsync("div", { key: '
|
|
15818
|
+
return (hAsync("div", { key: '5f72b8386e92973faca8b22ebadcffa5b8ca8744', class: "w-full" }, hAsync("ul", { key: '619cc2546059aaac566dc89f56b098f72f7c2bde', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, hAsync("li", { key: 'b90587543210e02a577854ce061472ef8f3bdc7a', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'd98ea95c641209ba592aae8c695e278549840420', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '6dd84540a213d98fa09480eac823fe030dfb2404', class: "spacing-sample m-32 bg-darker" }, hAsync("span", { key: 'ad0493ba8d97cdcc15535505db4d726d6f69bd38', class: "text-white" }, "Margin: 2rem / m-32")))), hAsync("li", { key: 'a0914d288cdb4b9caef6956af0069cd0937ee019', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '95adc2b10d3962378de300e00b749b691fda88af', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '8bad94397c9fe8112b49933a508958000f9cd99d', class: "spacing-sample ml-64 bg-darker" }, hAsync("span", { key: '04229385104243a5ce9a194c4f8056f7341a6736', class: "text-white" }, "Margin Left: 4rem / ml-64")))), hAsync("li", { key: 'f34e1fd5ccafc528ed9359766deaa5c615a2e14b', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '38e12800b2c8502ea2f9e912af929f71d3ec9699', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'f4e93d89576ab3de7f44ce3a85d9838f21bfa7f6', class: "spacing-sample mt-32 bg-darker" }, hAsync("span", { key: 'e85e2e1c7c4c7e765dfafd25dc9f2c33b6bd5069', class: "text-white" }, "Margin Top: 2rem / mt-32")))), hAsync("li", { key: 'b42299c17c024a5906bd09c80a2f309b461b6fde', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'f54a9e32893ac6f1b0384e79e2959d1e65a251e2', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '4209fa0c979a1d55d42d7b892bc94cc0f3788e88', class: "spacing-sample p-32 bg-darker" }, hAsync("span", { key: '1d9249c56d3a42500dfb8cc1d3eae1f89e79cdcd', class: "text-white" }, "Padding: 2rem / p-32")))), hAsync("li", { key: 'ad6f2e33e15c4c21bdfed8478b3d2faa905490fa', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: '9950970e66b8a382e7b0158b54e980a5e5f45774', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: '40e96cd046eaddf3a23387995affbfc399d171ae', class: "spacing-sample pt-32 bg-darker" }, hAsync("span", { key: '2d120273f7a6d4429061d0ade2164ada9a14b506', class: "text-white" }, "Padding Top: 2rem / pt-32")))), hAsync("li", { key: '8c3327edc63f8959c0cb01cce0a8407bf3a605af', class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { key: 'c0be38039770c54577f073e1a707110cd0807ab5', class: "container p-8 item-center border-2 border-soft" }, hAsync("div", { key: 'd8085da375e734ed11fe580f1a9004f6fddef679', class: "spacing-sample pl-32 bg-darker" }, hAsync("span", { key: '029857c00659221390438d8477734d0f130d1b97', class: "text-white" }, "Padding Left: 2rem / pl-32")))))));
|
|
15620
15819
|
}
|
|
15621
15820
|
static get cmpMeta() { return {
|
|
15622
15821
|
"$flags$": 0,
|
|
@@ -15834,7 +16033,7 @@ class TokenTypography {
|
|
|
15834
16033
|
registerInstance(this, hostRef);
|
|
15835
16034
|
}
|
|
15836
16035
|
render() {
|
|
15837
|
-
return (hAsync("section", { key: '
|
|
16036
|
+
return (hAsync("section", { key: '23815518d694435812ed3d7b9aab850043941b96', class: "w-full" }, hAsync("ul", { key: '366ed5bc5933c5b8a563d33b70471f507a21386c', class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, Object.entries(typography.typesets)
|
|
15838
16037
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15839
16038
|
.flatMap(([typeKey, typeValues]) => Object.entries(typeValues).map(([size, style]) => (hAsync("li", { class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, hAsync("div", { class: "w-full p-4 block lg:flex items-center border border-soft rounded" }, hAsync("div", { class: "mr-auto hidden lg:block", style: {
|
|
15840
16039
|
fontFamily: typography.families.sans,
|
|
@@ -15925,6 +16124,7 @@ registerComponents([
|
|
|
15925
16124
|
EdsLink,
|
|
15926
16125
|
EdsLogin,
|
|
15927
16126
|
EdsLogo,
|
|
16127
|
+
EdsLogoVariations,
|
|
15928
16128
|
EdsMatomoNotice,
|
|
15929
16129
|
EdsModal,
|
|
15930
16130
|
EdsNavigator,
|
|
@@ -15933,7 +16133,7 @@ registerComponents([
|
|
|
15933
16133
|
EdsRating,
|
|
15934
16134
|
EdsSectionCore,
|
|
15935
16135
|
EdsSectionHeading,
|
|
15936
|
-
|
|
16136
|
+
EdsSocialNetworks,
|
|
15937
16137
|
EdsSvgRepository,
|
|
15938
16138
|
EdsTab,
|
|
15939
16139
|
EdsTable,
|
|
@@ -15952,8 +16152,8 @@ registerComponents([
|
|
|
15952
16152
|
GradientSupportPalette,
|
|
15953
16153
|
IncorrectUseOfColors,
|
|
15954
16154
|
LogoSpace,
|
|
15955
|
-
|
|
15956
|
-
|
|
16155
|
+
LogoVariationsHorizontal,
|
|
16156
|
+
LogoVariationsVertical,
|
|
15957
16157
|
LogoWrongUsage,
|
|
15958
16158
|
TokenList,
|
|
15959
16159
|
TokenRadii,
|