@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.mjs
CHANGED
|
@@ -2305,7 +2305,7 @@ class ColorPrimaryPalette {
|
|
|
2305
2305
|
];
|
|
2306
2306
|
}
|
|
2307
2307
|
render() {
|
|
2308
|
-
return (hAsync("ul", { key: '
|
|
2308
|
+
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))))))));
|
|
2309
2309
|
}
|
|
2310
2310
|
static get cmpMeta() { return {
|
|
2311
2311
|
"$flags$": 0,
|
|
@@ -2377,7 +2377,7 @@ class ColorSecondaryPalette {
|
|
|
2377
2377
|
this.show = undefined;
|
|
2378
2378
|
}
|
|
2379
2379
|
render() {
|
|
2380
|
-
return (hAsync("ul", { key: '
|
|
2380
|
+
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))))))));
|
|
2381
2381
|
}
|
|
2382
2382
|
static get cmpMeta() { return {
|
|
2383
2383
|
"$flags$": 0,
|
|
@@ -2442,7 +2442,7 @@ class ColorSupportPalette {
|
|
|
2442
2442
|
];
|
|
2443
2443
|
}
|
|
2444
2444
|
render() {
|
|
2445
|
-
return (hAsync("ul", { key: '
|
|
2445
|
+
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'))))))));
|
|
2446
2446
|
}
|
|
2447
2447
|
static get cmpMeta() { return {
|
|
2448
2448
|
"$flags$": 0,
|
|
@@ -2518,7 +2518,7 @@ class CorrectUseOfColors {
|
|
|
2518
2518
|
registerInstance(this, hostRef);
|
|
2519
2519
|
}
|
|
2520
2520
|
render() {
|
|
2521
|
-
return (hAsync("div", { key: '
|
|
2521
|
+
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 } })))))))));
|
|
2522
2522
|
}
|
|
2523
2523
|
static get cmpMeta() { return {
|
|
2524
2524
|
"$flags$": 0,
|
|
@@ -3316,22 +3316,23 @@ class EdsBreadcrumb {
|
|
|
3316
3316
|
this.maxVisibleItems = 6;
|
|
3317
3317
|
}
|
|
3318
3318
|
/**
|
|
3319
|
-
*
|
|
3320
|
-
* Converts the `items` string into an array of objects if it is a JSON string.
|
|
3321
|
-
* If the format is invalid, it logs an error and sets an empty array.
|
|
3322
|
-
*
|
|
3323
|
-
* @param newValue - The new value for the `items` prop.
|
|
3319
|
+
* Watches for changes to the `items` prop and parses it.
|
|
3324
3320
|
*/
|
|
3325
3321
|
parseItems(newValue) {
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3322
|
+
if (typeof newValue === 'string') {
|
|
3323
|
+
try {
|
|
3324
|
+
const parsed = JSON.parse(newValue);
|
|
3325
|
+
this.parsedItems = Array.isArray(parsed) ? parsed : [];
|
|
3329
3326
|
}
|
|
3330
|
-
|
|
3331
|
-
|
|
3327
|
+
catch (e) {
|
|
3328
|
+
console.error('Error parsing breadcrumb items:', e);
|
|
3329
|
+
this.parsedItems = [];
|
|
3332
3330
|
}
|
|
3333
3331
|
}
|
|
3334
|
-
|
|
3332
|
+
else if (Array.isArray(newValue)) {
|
|
3333
|
+
this.parsedItems = newValue;
|
|
3334
|
+
}
|
|
3335
|
+
else {
|
|
3335
3336
|
this.parsedItems = [];
|
|
3336
3337
|
}
|
|
3337
3338
|
}
|
|
@@ -3419,7 +3420,7 @@ class EdsBreadcrumb {
|
|
|
3419
3420
|
*/
|
|
3420
3421
|
render() {
|
|
3421
3422
|
const itemsToRender = this.getTruncatedItems();
|
|
3422
|
-
return (hAsync("nav", { key: '
|
|
3423
|
+
return (hAsync("nav", { key: '1491f7e548ba859e0661129de2ec320552a2bb42', "aria-label": "Breadcrumb" }, hAsync("ol", { key: '93525aad588295e9f2a3f02d143824c7c58ea512', class: "flex items-center space-x-2" }, itemsToRender.map((item, index) => {
|
|
3423
3424
|
const isLast = index === itemsToRender.length - 1;
|
|
3424
3425
|
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" }))));
|
|
3425
3426
|
}))));
|
|
@@ -3674,7 +3675,7 @@ class EdsButton {
|
|
|
3674
3675
|
show: !this.loading
|
|
3675
3676
|
});
|
|
3676
3677
|
const ElementType = this.elementType;
|
|
3677
|
-
return (hAsync(ElementType, { key: '
|
|
3678
|
+
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: {
|
|
3678
3679
|
border: `3px solid ${this.intent === 'secondary' ? 'rgba(255, 255, 255, .3)' : 'rgba(0, 0, 0, .3)'}`,
|
|
3679
3680
|
borderBottomColor: this.intent === 'secondary' ? '#fff' : '#000'
|
|
3680
3681
|
} }))), this.icon ? hAsync("eds-icon-wrapper", { class: iconClasses, icon: this.icon }) : null));
|
|
@@ -3974,13 +3975,24 @@ class EdsCardSection {
|
|
|
3974
3975
|
* @returns {any[]} An array of parsed card objects.
|
|
3975
3976
|
*/
|
|
3976
3977
|
get parsedCards() {
|
|
3977
|
-
|
|
3978
|
-
|
|
3978
|
+
// If it's already an array, return it immediately.
|
|
3979
|
+
if (Array.isArray(this.cards)) {
|
|
3980
|
+
return this.cards;
|
|
3979
3981
|
}
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
return [];
|
|
3982
|
+
if (typeof this.cards === 'object') {
|
|
3983
|
+
return this.cards;
|
|
3983
3984
|
}
|
|
3985
|
+
else if (typeof this.cards === 'string') {
|
|
3986
|
+
try {
|
|
3987
|
+
return JSON.parse(this.cards);
|
|
3988
|
+
}
|
|
3989
|
+
catch (e) {
|
|
3990
|
+
// eslint-disable-next-line
|
|
3991
|
+
console.error('Error parsing links prop:', e);
|
|
3992
|
+
return [];
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
return [];
|
|
3984
3996
|
}
|
|
3985
3997
|
/**
|
|
3986
3998
|
* Renders the card section as a grid layout.
|
|
@@ -3990,7 +4002,7 @@ class EdsCardSection {
|
|
|
3990
4002
|
* @returns {JSX.Element} The rendered section containing a list of cards.
|
|
3991
4003
|
*/
|
|
3992
4004
|
render() {
|
|
3993
|
-
return (hAsync("section", { key: '
|
|
4005
|
+
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 })))))));
|
|
3994
4006
|
}
|
|
3995
4007
|
static get style() { return EdsCardSectionStyle0; }
|
|
3996
4008
|
static get cmpMeta() { return {
|
|
@@ -6687,54 +6699,76 @@ class EdsCodeBlock {
|
|
|
6687
6699
|
}
|
|
6688
6700
|
|
|
6689
6701
|
const EdsComponentsOverview = () => (hAsync("div", { class: "static-content container" },
|
|
6690
|
-
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" }),
|
|
6691
6702
|
hAsync("h2", null, "Load the module"),
|
|
6692
6703
|
hAsync("p", null,
|
|
6693
6704
|
"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",
|
|
6694
6705
|
' ',
|
|
6695
6706
|
hAsync("code", null, "head"),
|
|
6696
6707
|
"."),
|
|
6697
|
-
hAsync("eds-code-block", { code:
|
|
6708
|
+
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" }),
|
|
6698
6709
|
hAsync("h2", null, "Load the styles"),
|
|
6699
6710
|
hAsync("p", null,
|
|
6700
6711
|
"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the",
|
|
6701
6712
|
' ',
|
|
6702
6713
|
hAsync("code", null, "head")),
|
|
6703
|
-
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
6714
|
+
hAsync("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
6715
|
+
hAsync("div", { class: "my-4" },
|
|
6716
|
+
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" })),
|
|
6704
6717
|
hAsync("h2", null, "Load the fonts"),
|
|
6705
6718
|
hAsync("p", null,
|
|
6706
|
-
"To load the
|
|
6719
|
+
"To load the webfonts, add the tag below to the ",
|
|
6707
6720
|
hAsync("code", null, "head")),
|
|
6708
6721
|
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" }),
|
|
6709
6722
|
hAsync("h2", null, "Component Usage"),
|
|
6710
6723
|
hAsync("p", null, "Once included, components can be used in your markup like any other regular HTML elements:"),
|
|
6711
|
-
hAsync("eds-code-block", { code: '<eds-button label="my bytton" intent="primary"
|
|
6724
|
+
hAsync("eds-code-block", { code: '<eds-button \n label="my bytton" \n intent="primary">\n</eds-button>', language: "html", "copy-label": "Copy Code" })));
|
|
6712
6725
|
|
|
6713
6726
|
const EdsDocsInstallation = () => (hAsync("div", null,
|
|
6714
|
-
hAsync("p", null, "
|
|
6715
|
-
hAsync("
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
hAsync("
|
|
6720
|
-
|
|
6727
|
+
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."),
|
|
6728
|
+
hAsync("div", { class: "my-8" },
|
|
6729
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/components", language: "html", "copy-label": "Copy Code" })),
|
|
6730
|
+
hAsync("div", { class: "my-8" },
|
|
6731
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/assets", language: "html", "copy-label": "Copy Code" })),
|
|
6732
|
+
hAsync("div", { class: "my-8" },
|
|
6733
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" }))));
|
|
6721
6734
|
|
|
6722
6735
|
const EdsDocsReact = () => (hAsync("div", null,
|
|
6723
6736
|
hAsync("h2", null, "React Wrappers"),
|
|
6724
|
-
hAsync("p", null, "Learn how to use our components in a React Application."),
|
|
6725
|
-
"
|
|
6726
|
-
|
|
6737
|
+
hAsync("p", null, "Learn how to use our components in a React Application.Simple install the package below and check out the examples"),
|
|
6738
|
+
hAsync("div", { class: "my-8" },
|
|
6739
|
+
hAsync("eds-code-block", { code: "npm install @ebrains/react", language: "javascript", "copy-label": "Copy Code" })),
|
|
6727
6740
|
hAsync("eds-section-core", { "section-title": "Example React App", "heading-level": "h3" },
|
|
6728
|
-
hAsync("eds-code-block", { code: '\nimport { EdsHeader } from "@ebrains/react";\n\ninterface User {\n firstname: string;\n lastname: string;\n
|
|
6741
|
+
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" }))));
|
|
6729
6742
|
|
|
6730
6743
|
const EdsDocsVue = () => (hAsync("div", null,
|
|
6731
6744
|
hAsync("h2", null, "Vue Wrappers"),
|
|
6732
6745
|
hAsync("p", null, "Learn how to use our components in a Vue Application."),
|
|
6746
|
+
hAsync("p", null, "Simply install the latest version of our NPM package."),
|
|
6733
6747
|
hAsync("eds-code-block", { code: "npm install @ebrains/vue", language: "javascript", "copy-label": "Copy Code" }),
|
|
6734
|
-
hAsync("p", null, "
|
|
6748
|
+
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."),
|
|
6735
6749
|
hAsync("eds-code-block", { code: "import { defineCustomElements } from '@ebrains/components/loader';\ndefineCustomElements();", language: "javascript", "copy-label": "Copy Code" }),
|
|
6750
|
+
hAsync("h2", null,
|
|
6751
|
+
"Passing Properties to Custom Elements Using the ",
|
|
6752
|
+
hAsync("b", null, ".prop"),
|
|
6753
|
+
" Modifier in Vue Wrappers"),
|
|
6754
|
+
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."),
|
|
6755
|
+
hAsync("h3", null,
|
|
6756
|
+
"How to Use the ",
|
|
6757
|
+
hAsync("b", null, ".prop"),
|
|
6758
|
+
" Modifier"),
|
|
6759
|
+
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:"),
|
|
6760
|
+
hAsync("div", { class: "mt-8" },
|
|
6761
|
+
hAsync("eds-alert", { message: "This may lead to issues because Vue binds these as attributes .", intent: "error" })),
|
|
6762
|
+
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" }),
|
|
6763
|
+
hAsync("div", { class: "mt-8" },
|
|
6764
|
+
hAsync("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "success" })),
|
|
6765
|
+
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" }),
|
|
6766
|
+
hAsync("p", null,
|
|
6767
|
+
"Using the ",
|
|
6768
|
+
hAsync("b", null, ".prop"),
|
|
6769
|
+
" 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."),
|
|
6736
6770
|
hAsync("eds-section-core", { "section-title": "Example Vue App", "heading-level": "h3" },
|
|
6737
|
-
hAsync("eds-code-block", { code: '\n<template>\n <
|
|
6771
|
+
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" }))));
|
|
6738
6772
|
|
|
6739
6773
|
const EdsDocsAngular = () => (hAsync("div", null,
|
|
6740
6774
|
hAsync("h2", null, "Angular Wrappers"),
|
|
@@ -6745,7 +6779,7 @@ const EdsDocsAngular = () => (hAsync("div", null,
|
|
|
6745
6779
|
hAsync("p", null, "Angular Custom Elements Schema"),
|
|
6746
6780
|
hAsync("eds-code-block", { code: 'import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core";', language: "javascript", "copy-label": "Copy Code" }),
|
|
6747
6781
|
hAsync("eds-section-core", { "section-title": "Example Angular App", "heading-level": "h3" },
|
|
6748
|
-
hAsync("eds-code-block", { code: '\n<div class="container">\n <
|
|
6782
|
+
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" }))));
|
|
6749
6783
|
|
|
6750
6784
|
/**
|
|
6751
6785
|
* @internal
|
|
@@ -6762,19 +6796,17 @@ class EdsComponentsSection {
|
|
|
6762
6796
|
case 1:
|
|
6763
6797
|
return hAsync(EdsDocsInstallation, null);
|
|
6764
6798
|
case 2:
|
|
6765
|
-
return hAsync(EdsDocsUsage, null);
|
|
6766
|
-
case 3:
|
|
6767
6799
|
return hAsync(EdsDocsReact, null);
|
|
6768
|
-
case
|
|
6800
|
+
case 3:
|
|
6769
6801
|
return hAsync(EdsDocsVue, null);
|
|
6770
|
-
case
|
|
6802
|
+
case 4:
|
|
6771
6803
|
return hAsync(EdsDocsAngular, null);
|
|
6772
6804
|
default:
|
|
6773
6805
|
return hAsync("p", null, "Content not available.");
|
|
6774
6806
|
}
|
|
6775
6807
|
}
|
|
6776
6808
|
render() {
|
|
6777
|
-
return hAsync("div", { key: '
|
|
6809
|
+
return hAsync("div", { key: 'ce34514ab73daa5baa011bda56a13d6197f8bfd0', class: "container" }, this.renderContent());
|
|
6778
6810
|
}
|
|
6779
6811
|
static get cmpMeta() { return {
|
|
6780
6812
|
"$flags$": 0,
|
|
@@ -6815,7 +6847,7 @@ class EdsDocsContent {
|
|
|
6815
6847
|
}
|
|
6816
6848
|
}
|
|
6817
6849
|
render() {
|
|
6818
|
-
return hAsync("div", { key: '
|
|
6850
|
+
return hAsync("div", { key: '10708d591c4077e4e1fe94073322f01121253bdb', class: "container" }, this.renderContent());
|
|
6819
6851
|
}
|
|
6820
6852
|
static get cmpMeta() { return {
|
|
6821
6853
|
"$flags$": 0,
|
|
@@ -6848,7 +6880,7 @@ class EdsDocsPalettes {
|
|
|
6848
6880
|
}
|
|
6849
6881
|
}
|
|
6850
6882
|
render() {
|
|
6851
|
-
return hAsync("div", { key: '
|
|
6883
|
+
return hAsync("div", { key: '42f0a4598c64661d98054522e88366ec591a2cb3', class: "container" }, this.renderContent());
|
|
6852
6884
|
}
|
|
6853
6885
|
static get cmpMeta() { return {
|
|
6854
6886
|
"$flags$": 0,
|
|
@@ -7069,7 +7101,7 @@ class EdsFooter {
|
|
|
7069
7101
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
7070
7102
|
*/
|
|
7071
7103
|
render() {
|
|
7072
|
-
return (hAsync("footer", { key: '
|
|
7104
|
+
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)))));
|
|
7073
7105
|
}
|
|
7074
7106
|
static get style() { return EdsFooterStyle0; }
|
|
7075
7107
|
static get cmpMeta() { return {
|
|
@@ -7601,7 +7633,8 @@ var EdsFullscreenMenuStyle0 = edsFullscreenMenuCss;
|
|
|
7601
7633
|
* It provides a responsive, full-window overlay menu with navigation links and additional options.
|
|
7602
7634
|
* This component is suitable for mobile and small screens, where a fullscreen menu enhances user navigation.
|
|
7603
7635
|
*
|
|
7604
|
-
* ## Key Features
|
|
7636
|
+
* ## Key Features
|
|
7637
|
+
*
|
|
7605
7638
|
* - **Links and Menu Links**: Allows configurable primary and secondary navigation links.
|
|
7606
7639
|
* - **Event-Driven Open/Close**: Listens for a `toggleMenu` event to open or close the menu, emitted by the `eds-header` component.
|
|
7607
7640
|
* - **Responsive Behavior**: Automatically closes the menu when the screen width is larger than a specified breakpoint (1024px).
|
|
@@ -7791,6 +7824,10 @@ class EdsHeader {
|
|
|
7791
7824
|
* @returns {any[]} Array of parsed link objects
|
|
7792
7825
|
*/
|
|
7793
7826
|
get parsedLinks() {
|
|
7827
|
+
// If it's already an array, return it immediately.
|
|
7828
|
+
if (Array.isArray(this.links)) {
|
|
7829
|
+
return this.links;
|
|
7830
|
+
}
|
|
7794
7831
|
if (typeof this.links === 'object') {
|
|
7795
7832
|
return this.links;
|
|
7796
7833
|
}
|
|
@@ -7807,8 +7844,8 @@ class EdsHeader {
|
|
|
7807
7844
|
return [];
|
|
7808
7845
|
}
|
|
7809
7846
|
render() {
|
|
7810
|
-
return (hAsync("header", { key: '
|
|
7811
|
-
${this.inverseHeader ? 'text-inverse bg-strongest' : 'text-default bg-dark'}` }, hAsync("div", { key: '
|
|
7847
|
+
return (hAsync("header", { key: 'b16e5e84ba7565ebf4ea5892a9a1af84fc94769d', class: `flex items-center justify-between relative z-10
|
|
7848
|
+
${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));
|
|
7812
7849
|
}
|
|
7813
7850
|
get hostEl() { return getElement(this); }
|
|
7814
7851
|
static get style() { return EdsHeaderStyle0; }
|
|
@@ -10652,12 +10689,33 @@ class EdsInputSearch {
|
|
|
10652
10689
|
}
|
|
10653
10690
|
|
|
10654
10691
|
/**
|
|
10655
|
-
*
|
|
10692
|
+
* A custom select input component that supports both static and dynamic options.
|
|
10693
|
+
*
|
|
10694
|
+
* Options can be provided in two formats:
|
|
10695
|
+
* 1. Dynamic fetch configuration:
|
|
10696
|
+
* [
|
|
10697
|
+
* { endpoint: "http://localhost/api/applications", value: "_id", label: "title" }
|
|
10698
|
+
* ]
|
|
10699
|
+
* 2. Static options:
|
|
10700
|
+
* [
|
|
10701
|
+
* { value: "react", label: "React" },
|
|
10702
|
+
* { value: "angular", label: "Angular" },
|
|
10703
|
+
* { value: "vue", label: "Vue.js" },
|
|
10704
|
+
* // etc.
|
|
10705
|
+
* ]
|
|
10706
|
+
*
|
|
10707
|
+
* The component will automatically fetch data if a dynamic configuration is provided.
|
|
10656
10708
|
*/
|
|
10657
10709
|
class EdsInputSelect {
|
|
10658
10710
|
constructor(hostRef) {
|
|
10659
10711
|
registerInstance(this, hostRef);
|
|
10660
10712
|
this.changeEvent = createEvent(this, "changeEvent", 7);
|
|
10713
|
+
/**
|
|
10714
|
+
* Event handler for the select input's change event.
|
|
10715
|
+
* Emits the selected value.
|
|
10716
|
+
*
|
|
10717
|
+
* @param event The change event from the select input.
|
|
10718
|
+
*/
|
|
10661
10719
|
this.handleChange = (event) => {
|
|
10662
10720
|
const target = event.target;
|
|
10663
10721
|
this.changeEvent.emit(target.value);
|
|
@@ -10670,11 +10728,64 @@ class EdsInputSelect {
|
|
|
10670
10728
|
this.error = false;
|
|
10671
10729
|
this.required = false;
|
|
10672
10730
|
this.options = [];
|
|
10731
|
+
this.labelKey = 'label';
|
|
10732
|
+
this.valueKey = 'value';
|
|
10673
10733
|
this.value = undefined;
|
|
10734
|
+
this.dynamicOptions = [];
|
|
10735
|
+
this.loading = false;
|
|
10736
|
+
this.dynamicValueKey = 'value';
|
|
10737
|
+
this.dynamicLabelKey = 'label';
|
|
10738
|
+
}
|
|
10739
|
+
componentWillLoad() {
|
|
10740
|
+
this.loadOptions();
|
|
10741
|
+
}
|
|
10742
|
+
/**
|
|
10743
|
+
* Watches for changes in the `options` prop and loads the options accordingly.
|
|
10744
|
+
*
|
|
10745
|
+
* If the first object in the options array contains an "endpoint" key,
|
|
10746
|
+
* the component will fetch options from the specified endpoint using the configured keys.
|
|
10747
|
+
* Otherwise, it will treat the options as static.
|
|
10748
|
+
*
|
|
10749
|
+
* @async
|
|
10750
|
+
*/
|
|
10751
|
+
async loadOptions() {
|
|
10752
|
+
// If the first option contains an "endpoint" key, assume dynamic fetch mode.
|
|
10753
|
+
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
10754
|
+
const config = this.options[0];
|
|
10755
|
+
const endpoint = config.endpoint;
|
|
10756
|
+
this.dynamicValueKey = config.value || 'value';
|
|
10757
|
+
this.dynamicLabelKey = config.label || 'label';
|
|
10758
|
+
this.loading = true;
|
|
10759
|
+
try {
|
|
10760
|
+
const response = await fetch(endpoint);
|
|
10761
|
+
if (!response.ok) {
|
|
10762
|
+
toast.show(`<eds-input-select> HTTP error! Status: ${response.status}`, 'error');
|
|
10763
|
+
}
|
|
10764
|
+
const data = await response.json();
|
|
10765
|
+
// Assume the API returns an array of objects.
|
|
10766
|
+
this.dynamicOptions = data;
|
|
10767
|
+
}
|
|
10768
|
+
catch (error) {
|
|
10769
|
+
//console.error('Error fetching dynamic options:', error);
|
|
10770
|
+
toast.show(`<eds-input-select> Error fetching dynamic options ${error}`, 'error');
|
|
10771
|
+
}
|
|
10772
|
+
finally {
|
|
10773
|
+
this.loading = false;
|
|
10774
|
+
}
|
|
10775
|
+
}
|
|
10776
|
+
else {
|
|
10777
|
+
// No dynamic configuration found, assume static options.
|
|
10778
|
+
this.dynamicOptions = this.options;
|
|
10779
|
+
this.dynamicValueKey = this.valueKey;
|
|
10780
|
+
this.dynamicLabelKey = this.labelKey;
|
|
10781
|
+
}
|
|
10674
10782
|
}
|
|
10675
10783
|
render() {
|
|
10676
|
-
return (hAsync("div", { key: '
|
|
10784
|
+
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" }))));
|
|
10677
10785
|
}
|
|
10786
|
+
static get watchers() { return {
|
|
10787
|
+
"options": ["loadOptions"]
|
|
10788
|
+
}; }
|
|
10678
10789
|
static get cmpMeta() { return {
|
|
10679
10790
|
"$flags$": 0,
|
|
10680
10791
|
"$tagName$": "eds-input-select",
|
|
@@ -10687,7 +10798,13 @@ class EdsInputSelect {
|
|
|
10687
10798
|
"error": [4],
|
|
10688
10799
|
"required": [4],
|
|
10689
10800
|
"options": [16],
|
|
10690
|
-
"
|
|
10801
|
+
"labelKey": [1, "label-key"],
|
|
10802
|
+
"valueKey": [1, "value-key"],
|
|
10803
|
+
"value": [8],
|
|
10804
|
+
"dynamicOptions": [32],
|
|
10805
|
+
"loading": [32],
|
|
10806
|
+
"dynamicValueKey": [32],
|
|
10807
|
+
"dynamicLabelKey": [32]
|
|
10691
10808
|
},
|
|
10692
10809
|
"$listeners$": undefined,
|
|
10693
10810
|
"$lazyBundleId$": "-",
|
|
@@ -12892,10 +13009,10 @@ class EdsLogin {
|
|
|
12892
13009
|
return this.authenticated ? 'Logout' : 'Login';
|
|
12893
13010
|
}
|
|
12894
13011
|
render() {
|
|
12895
|
-
return (hAsync("
|
|
13012
|
+
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) }));
|
|
12896
13013
|
}
|
|
12897
13014
|
static get cmpMeta() { return {
|
|
12898
|
-
"$flags$":
|
|
13015
|
+
"$flags$": 9,
|
|
12899
13016
|
"$tagName$": "eds-login",
|
|
12900
13017
|
"$members$": {
|
|
12901
13018
|
"keycloakUrl": [1, "keycloak-url"],
|
|
@@ -13006,6 +13123,39 @@ class EdsLogo {
|
|
|
13006
13123
|
}; }
|
|
13007
13124
|
}
|
|
13008
13125
|
|
|
13126
|
+
/**
|
|
13127
|
+
* @internal
|
|
13128
|
+
*/
|
|
13129
|
+
class EdsLogoVariations {
|
|
13130
|
+
constructor(hostRef) {
|
|
13131
|
+
registerInstance(this, hostRef);
|
|
13132
|
+
this.tabIndex = undefined;
|
|
13133
|
+
}
|
|
13134
|
+
renderContent() {
|
|
13135
|
+
switch (this.tabIndex) {
|
|
13136
|
+
case 0:
|
|
13137
|
+
return hAsync("logo-variations-horizontal", null);
|
|
13138
|
+
case 1:
|
|
13139
|
+
return hAsync("logo-variations-vertical", null);
|
|
13140
|
+
default:
|
|
13141
|
+
return hAsync("p", null, "Content not available.");
|
|
13142
|
+
}
|
|
13143
|
+
}
|
|
13144
|
+
render() {
|
|
13145
|
+
return hAsync("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
13146
|
+
}
|
|
13147
|
+
static get cmpMeta() { return {
|
|
13148
|
+
"$flags$": 0,
|
|
13149
|
+
"$tagName$": "eds-logo-variations",
|
|
13150
|
+
"$members$": {
|
|
13151
|
+
"tabIndex": [2, "tab-index"]
|
|
13152
|
+
},
|
|
13153
|
+
"$listeners$": undefined,
|
|
13154
|
+
"$lazyBundleId$": "-",
|
|
13155
|
+
"$attrsToReflect$": []
|
|
13156
|
+
}; }
|
|
13157
|
+
}
|
|
13158
|
+
|
|
13009
13159
|
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))}}";
|
|
13010
13160
|
var EdsMatomoNoticeStyle0 = edsMatomoNoticeCss;
|
|
13011
13161
|
|
|
@@ -13711,14 +13861,14 @@ class EdsSectionHeading {
|
|
|
13711
13861
|
}; }
|
|
13712
13862
|
}
|
|
13713
13863
|
|
|
13714
|
-
const
|
|
13715
|
-
var EdsSocialNetworksStyle0 =
|
|
13864
|
+
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}";
|
|
13865
|
+
var EdsSocialNetworksStyle0 = edsSocialNetworksCss;
|
|
13716
13866
|
|
|
13717
13867
|
/**
|
|
13718
13868
|
* Component representing a list of social network links for EBRAINS.
|
|
13719
13869
|
* Each link directs users to EBRAINS' profiles on various social networks.
|
|
13720
13870
|
*/
|
|
13721
|
-
class
|
|
13871
|
+
class EdsSocialNetworks {
|
|
13722
13872
|
constructor(hostRef) {
|
|
13723
13873
|
registerInstance(this, hostRef);
|
|
13724
13874
|
/**
|
|
@@ -13769,7 +13919,7 @@ class EdsSocialNetwork {
|
|
|
13769
13919
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
13770
13920
|
*/
|
|
13771
13921
|
render() {
|
|
13772
|
-
return (hAsync("div", { key: '
|
|
13922
|
+
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" })))))));
|
|
13773
13923
|
}
|
|
13774
13924
|
static get style() { return EdsSocialNetworksStyle0; }
|
|
13775
13925
|
static get cmpMeta() { return {
|
|
@@ -13800,6 +13950,11 @@ class EdsSvgRepository {
|
|
|
13800
13950
|
icon: svgContent // Pass SVG content as innerHTML
|
|
13801
13951
|
}));
|
|
13802
13952
|
}
|
|
13953
|
+
get hostWidth() {
|
|
13954
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
13955
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
13956
|
+
return containerWidth;
|
|
13957
|
+
}
|
|
13803
13958
|
render() {
|
|
13804
13959
|
const svgData = this.getSvgData();
|
|
13805
13960
|
// Define table configuration
|
|
@@ -13807,8 +13962,9 @@ class EdsSvgRepository {
|
|
|
13807
13962
|
icon: { format: 'svg' },
|
|
13808
13963
|
name: { format: 'bold' }
|
|
13809
13964
|
};
|
|
13810
|
-
return (hAsync("eds-table", { key: '
|
|
13965
|
+
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 }));
|
|
13811
13966
|
}
|
|
13967
|
+
get hostEl() { return getElement(this); }
|
|
13812
13968
|
static get cmpMeta() { return {
|
|
13813
13969
|
"$flags$": 9,
|
|
13814
13970
|
"$tagName$": "eds-svg-repository",
|
|
@@ -13867,7 +14023,7 @@ class EdsTab {
|
|
|
13867
14023
|
}; }
|
|
13868
14024
|
}
|
|
13869
14025
|
|
|
13870
|
-
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}";
|
|
14026
|
+
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}";
|
|
13871
14027
|
var EdsTableStyle0 = edsTableCss;
|
|
13872
14028
|
|
|
13873
14029
|
/**
|
|
@@ -13884,13 +14040,14 @@ var EdsTableStyle0 = edsTableCss;
|
|
|
13884
14040
|
class EdsTable {
|
|
13885
14041
|
constructor(hostRef) {
|
|
13886
14042
|
registerInstance(this, hostRef);
|
|
13887
|
-
this.minWidth = 400; // Minimum width for components in px
|
|
13888
14043
|
this.data = null;
|
|
13889
14044
|
this.endpoint = null;
|
|
13890
14045
|
this.config = {};
|
|
13891
14046
|
this.rowsPerPage = 10;
|
|
13892
14047
|
this.paginationEnabled = true;
|
|
13893
14048
|
this.searchEnabled = false;
|
|
14049
|
+
this.hostWidth = undefined;
|
|
14050
|
+
this.columnSize = 'default';
|
|
13894
14051
|
this.tableData = [];
|
|
13895
14052
|
this.columns = [];
|
|
13896
14053
|
this.currentPage = 1;
|
|
@@ -13988,27 +14145,46 @@ class EdsTable {
|
|
|
13988
14145
|
getVisibleColumnsCount() {
|
|
13989
14146
|
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
13990
14147
|
}
|
|
14148
|
+
divisionFactor() {
|
|
14149
|
+
let divisionFactor = 1;
|
|
14150
|
+
if (this.columnSize === 'medium') {
|
|
14151
|
+
divisionFactor = 2;
|
|
14152
|
+
}
|
|
14153
|
+
else if (this.columnSize === 'large') {
|
|
14154
|
+
divisionFactor = 4;
|
|
14155
|
+
}
|
|
14156
|
+
return divisionFactor;
|
|
14157
|
+
}
|
|
13991
14158
|
render() {
|
|
14159
|
+
// Get the paginated rows and calculate the last page.
|
|
13992
14160
|
const paginatedRows = this.getPaginatedRows();
|
|
13993
14161
|
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
13994
|
-
//
|
|
13995
|
-
//const columnWidth = Math.max(this.minWidth / this.columns.length, 100);
|
|
13996
|
-
// Use the visible column count to calculate the column width
|
|
14162
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
13997
14163
|
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
13998
|
-
|
|
13999
|
-
|
|
14164
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
14165
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
14166
|
+
? Number(this.hostWidth)
|
|
14167
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
14168
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
14169
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
14170
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
14171
|
+
: 400;
|
|
14172
|
+
//console.log('containerWidth:', containerWidth);
|
|
14173
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
14174
|
+
console.log('columnWidth:', columnWidth);
|
|
14175
|
+
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...",
|
|
14000
14176
|
// @ts-ignore
|
|
14001
|
-
onInput: (event) => this.handleSearch(event) }))), hAsync("div", { key: '
|
|
14177
|
+
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) => {
|
|
14002
14178
|
var _a;
|
|
14003
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("th", { class: "m-0
|
|
14004
|
-
}))), hAsync("tbody", { key: '
|
|
14179
|
+
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));
|
|
14180
|
+
}))), 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) => {
|
|
14005
14181
|
var _a;
|
|
14006
|
-
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (hAsync("td", { class: "text-center border border-softer m-0
|
|
14007
|
-
}))))))), hAsync("div", { key: '
|
|
14182
|
+
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)));
|
|
14183
|
+
}))))))), 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" })))));
|
|
14008
14184
|
}
|
|
14009
14185
|
get hostEl() { return getElement(this); }
|
|
14010
14186
|
static get watchers() { return {
|
|
14011
|
-
"data": ["handleDataChange"],
|
|
14187
|
+
"data": ["handleDataChange", "parseData"],
|
|
14012
14188
|
"config": ["handleConfigChange"]
|
|
14013
14189
|
}; }
|
|
14014
14190
|
static get style() { return EdsTableStyle0; }
|
|
@@ -14022,6 +14198,8 @@ class EdsTable {
|
|
|
14022
14198
|
"rowsPerPage": [2, "rows-per-page"],
|
|
14023
14199
|
"paginationEnabled": [4, "pagination-enabled"],
|
|
14024
14200
|
"searchEnabled": [4, "search-enabled"],
|
|
14201
|
+
"hostWidth": [1, "host-width"],
|
|
14202
|
+
"columnSize": [1, "column-size"],
|
|
14025
14203
|
"tableData": [32],
|
|
14026
14204
|
"columns": [32],
|
|
14027
14205
|
"currentPage": [32],
|
|
@@ -14090,12 +14268,33 @@ class EdsTabs {
|
|
|
14090
14268
|
this.setActiveIndex();
|
|
14091
14269
|
this.tabChange.emit({ tabId: this.id, index: 0 });
|
|
14092
14270
|
}
|
|
14271
|
+
/**
|
|
14272
|
+
* Parses the `links` prop into an array of link objects.
|
|
14273
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14274
|
+
*
|
|
14275
|
+
* @returns {any[]} Array of parsed link objects
|
|
14276
|
+
*/
|
|
14277
|
+
/**
|
|
14278
|
+
* Parses the `links` prop into an array of link objects.
|
|
14279
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
14280
|
+
*
|
|
14281
|
+
* @returns {any[]} Array of parsed link objects
|
|
14282
|
+
*/
|
|
14093
14283
|
parseTabs() {
|
|
14094
|
-
|
|
14095
|
-
this.parsedTabs =
|
|
14284
|
+
if (Array.isArray(this.tabs)) {
|
|
14285
|
+
this.parsedTabs = this.tabs;
|
|
14096
14286
|
}
|
|
14097
|
-
|
|
14098
|
-
|
|
14287
|
+
else if (typeof this.tabs === 'string') {
|
|
14288
|
+
try {
|
|
14289
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
14290
|
+
}
|
|
14291
|
+
catch (e) {
|
|
14292
|
+
//console.error('Error parsing tabs prop:', e);
|
|
14293
|
+
this.parsedTabs = [];
|
|
14294
|
+
}
|
|
14295
|
+
}
|
|
14296
|
+
else {
|
|
14297
|
+
// If the type is not an array or string, assume an empty array.
|
|
14099
14298
|
this.parsedTabs = [];
|
|
14100
14299
|
}
|
|
14101
14300
|
}
|
|
@@ -14145,7 +14344,7 @@ class EdsTabs {
|
|
|
14145
14344
|
});
|
|
14146
14345
|
}
|
|
14147
14346
|
render() {
|
|
14148
|
-
return (hAsync("div", { key: '
|
|
14347
|
+
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) => {
|
|
14149
14348
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14150
14349
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14151
14350
|
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) })));
|
|
@@ -14287,11 +14486,11 @@ class EdsTabsContent {
|
|
|
14287
14486
|
});
|
|
14288
14487
|
}
|
|
14289
14488
|
render() {
|
|
14290
|
-
return (hAsync("div", { key: '
|
|
14489
|
+
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) => {
|
|
14291
14490
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
14292
14491
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
14293
14492
|
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) })));
|
|
14294
|
-
})), hAsync("slot", { key: '
|
|
14493
|
+
})), hAsync("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
|
|
14295
14494
|
}
|
|
14296
14495
|
get el() { return getElement(this); }
|
|
14297
14496
|
static get watchers() { return {
|
|
@@ -14370,27 +14569,37 @@ class EdsTag {
|
|
|
14370
14569
|
}; }
|
|
14371
14570
|
}
|
|
14372
14571
|
|
|
14373
|
-
/**
|
|
14374
|
-
* @internal
|
|
14375
|
-
*/
|
|
14376
14572
|
class EdsTimeline {
|
|
14377
14573
|
constructor(hostRef) {
|
|
14378
14574
|
registerInstance(this, hostRef);
|
|
14575
|
+
this.events = undefined;
|
|
14379
14576
|
this.selectedEvent = null;
|
|
14380
14577
|
this.parsedEvents = [];
|
|
14381
|
-
this.events = undefined;
|
|
14382
14578
|
}
|
|
14383
14579
|
parseEvents(newValue) {
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14580
|
+
let parsed;
|
|
14581
|
+
// If events is a string, try to parse it
|
|
14582
|
+
if (typeof newValue === 'string') {
|
|
14583
|
+
try {
|
|
14584
|
+
parsed = JSON.parse(newValue);
|
|
14585
|
+
}
|
|
14586
|
+
catch (e) {
|
|
14587
|
+
console.error('Error parsing events JSON', e);
|
|
14588
|
+
parsed = [];
|
|
14589
|
+
}
|
|
14590
|
+
}
|
|
14591
|
+
// If events is already an array, use it directly
|
|
14592
|
+
else if (Array.isArray(newValue)) {
|
|
14593
|
+
parsed = newValue;
|
|
14390
14594
|
}
|
|
14391
|
-
|
|
14392
|
-
|
|
14595
|
+
// Otherwise, default to an empty array
|
|
14596
|
+
else {
|
|
14597
|
+
parsed = [];
|
|
14393
14598
|
}
|
|
14599
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
14600
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
14601
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
14602
|
+
: [];
|
|
14394
14603
|
}
|
|
14395
14604
|
componentWillLoad() {
|
|
14396
14605
|
this.parseEvents(this.events);
|
|
@@ -14417,7 +14626,7 @@ class EdsTimeline {
|
|
|
14417
14626
|
}
|
|
14418
14627
|
}
|
|
14419
14628
|
render() {
|
|
14420
|
-
return (hAsync("div", { key: '
|
|
14629
|
+
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
|
|
14421
14630
|
? [{ label: 'completed', style: 'accent' }]
|
|
14422
14631
|
: [{ 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
|
|
14423
14632
|
? [{ label: 'completed', style: 'accent' }]
|
|
@@ -14531,7 +14740,7 @@ class EdsToastManager {
|
|
|
14531
14740
|
this.toasts = this.toasts.filter((t) => t.id !== id);
|
|
14532
14741
|
}
|
|
14533
14742
|
render() {
|
|
14534
|
-
return (hAsync("div", { key: '
|
|
14743
|
+
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) }))))));
|
|
14535
14744
|
}
|
|
14536
14745
|
get hostElement() { return getElement(this); }
|
|
14537
14746
|
static get style() { return EdsToastManagerStyle0; }
|
|
@@ -14657,9 +14866,6 @@ class EdsTooltip {
|
|
|
14657
14866
|
}; }
|
|
14658
14867
|
}
|
|
14659
14868
|
|
|
14660
|
-
const edsTrlCss = "";
|
|
14661
|
-
var EdsTrlStyle0 = edsTrlCss;
|
|
14662
|
-
|
|
14663
14869
|
/**
|
|
14664
14870
|
* @internal
|
|
14665
14871
|
*/
|
|
@@ -14669,13 +14875,23 @@ class EdsTrl {
|
|
|
14669
14875
|
this.applications = undefined;
|
|
14670
14876
|
}
|
|
14671
14877
|
getParsedApplications() {
|
|
14672
|
-
|
|
14673
|
-
|
|
14878
|
+
let apps = [];
|
|
14879
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
14880
|
+
if (typeof this.applications === 'string') {
|
|
14881
|
+
try {
|
|
14882
|
+
apps = JSON.parse(this.applications || '[]');
|
|
14883
|
+
}
|
|
14884
|
+
catch (error) {
|
|
14885
|
+
// Uncomment the next line for debugging
|
|
14886
|
+
// console.error('Invalid applications JSON', error);
|
|
14887
|
+
apps = [];
|
|
14888
|
+
}
|
|
14674
14889
|
}
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14890
|
+
// If applications is already an array, use it directly.
|
|
14891
|
+
else if (Array.isArray(this.applications)) {
|
|
14892
|
+
apps = this.applications;
|
|
14678
14893
|
}
|
|
14894
|
+
return apps;
|
|
14679
14895
|
}
|
|
14680
14896
|
calculateProgress(currentTrl) {
|
|
14681
14897
|
const maxTrl = 9;
|
|
@@ -14683,12 +14899,19 @@ class EdsTrl {
|
|
|
14683
14899
|
}
|
|
14684
14900
|
render() {
|
|
14685
14901
|
const apps = this.getParsedApplications();
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14689
|
-
|
|
14902
|
+
console.log('apps:', apps);
|
|
14903
|
+
// Map applications into table-friendly data.
|
|
14904
|
+
const tableData = apps.map(app => ({
|
|
14905
|
+
Application: app.name,
|
|
14906
|
+
"Current TRL Stage": `TRL ${app.currentTrl}`,
|
|
14907
|
+
Progress: (hAsync("div", { class: "w-[200px]" }, hAsync("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
14908
|
+
}));
|
|
14909
|
+
const tableConfig = {
|
|
14910
|
+
"Application": { "format": "code" },
|
|
14911
|
+
"Current TRL Stage": { "format": "text" }
|
|
14912
|
+
};
|
|
14913
|
+
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" })));
|
|
14690
14914
|
}
|
|
14691
|
-
static get style() { return EdsTrlStyle0; }
|
|
14692
14915
|
static get cmpMeta() { return {
|
|
14693
14916
|
"$flags$": 0,
|
|
14694
14917
|
"$tagName$": "eds-trl",
|
|
@@ -14729,6 +14952,7 @@ class EdsUser {
|
|
|
14729
14952
|
this.handleLogout = () => {
|
|
14730
14953
|
logout();
|
|
14731
14954
|
this.authenticated = false;
|
|
14955
|
+
this.user = null;
|
|
14732
14956
|
};
|
|
14733
14957
|
this.keycloakUrl = undefined;
|
|
14734
14958
|
this.keycloakRealm = undefined;
|
|
@@ -14743,9 +14967,15 @@ class EdsUser {
|
|
|
14743
14967
|
* It initializes authentication by calling the `initAuth` method.
|
|
14744
14968
|
*/
|
|
14745
14969
|
async componentWillLoad() {
|
|
14970
|
+
// Check if required props are provided (optional check)
|
|
14971
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
14972
|
+
// eslint-disable-next-line
|
|
14973
|
+
console.error('Keycloak configuration props are missing.');
|
|
14974
|
+
return;
|
|
14975
|
+
}
|
|
14746
14976
|
this.serverAvailable = await checkServerAvailability(`${this.keycloakUrl}/realms/${this.keycloakRealm}`);
|
|
14747
14977
|
if (!this.serverAvailable) {
|
|
14748
|
-
toast.show('Keycloak server is unavailable.', 'error');
|
|
14978
|
+
//toast.show('Keycloak server is unavailable.', 'error');
|
|
14749
14979
|
return; // Do not proceed further
|
|
14750
14980
|
}
|
|
14751
14981
|
await this.initAuth();
|
|
@@ -14764,15 +14994,15 @@ class EdsUser {
|
|
|
14764
14994
|
};
|
|
14765
14995
|
await initKeycloak(keycloakConfig, true);
|
|
14766
14996
|
// Set authentication state and fetch user data if authenticated
|
|
14767
|
-
this.authenticated = isAuthenticated();
|
|
14768
|
-
if (
|
|
14997
|
+
//this.authenticated = isAuthenticated();
|
|
14998
|
+
if (isAuthenticated()) {
|
|
14769
14999
|
this.user = getUser();
|
|
15000
|
+
this.authenticated = true;
|
|
14770
15001
|
}
|
|
14771
15002
|
this.authStatusChanged.emit({
|
|
14772
15003
|
authenticated: this.authenticated,
|
|
14773
15004
|
user: this.user
|
|
14774
15005
|
}); // Emit auth status change
|
|
14775
|
-
toast.show(`Welcome back, ${this.user.username}`, 'success');
|
|
14776
15006
|
}
|
|
14777
15007
|
catch (error) {
|
|
14778
15008
|
// eslint-disable-next-line
|
|
@@ -14785,7 +15015,7 @@ class EdsUser {
|
|
|
14785
15015
|
if (!this.serverAvailable) {
|
|
14786
15016
|
return null;
|
|
14787
15017
|
}
|
|
14788
|
-
return (hAsync("div", { class: "block" }, !this.authenticated ? (hAsync("eds-button", { label: "Login", intent: "primary", onClick: this.handleLogin
|
|
15018
|
+
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) }))))));
|
|
14789
15019
|
}
|
|
14790
15020
|
get hostEl() { return getElement(this); }
|
|
14791
15021
|
static get cmpMeta() { return {
|
|
@@ -14806,9 +15036,6 @@ class EdsUser {
|
|
|
14806
15036
|
}; }
|
|
14807
15037
|
}
|
|
14808
15038
|
|
|
14809
|
-
const edsUserModalCss = "";
|
|
14810
|
-
var EdsUserModalStyle0 = edsUserModalCss;
|
|
14811
|
-
|
|
14812
15039
|
/**
|
|
14813
15040
|
* @internal
|
|
14814
15041
|
*/
|
|
@@ -14841,13 +15068,12 @@ class EdsUserModal {
|
|
|
14841
15068
|
}
|
|
14842
15069
|
render() {
|
|
14843
15070
|
var _a, _b, _c, _d, _e;
|
|
14844
|
-
return (hAsync("div", { key: '
|
|
15071
|
+
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() })))));
|
|
14845
15072
|
}
|
|
14846
15073
|
static get watchers() { return {
|
|
14847
15074
|
"user": ["parseUserProp"],
|
|
14848
15075
|
"links": ["parseLinksProp"]
|
|
14849
15076
|
}; }
|
|
14850
|
-
static get style() { return EdsUserModalStyle0; }
|
|
14851
15077
|
static get cmpMeta() { return {
|
|
14852
15078
|
"$flags$": 0,
|
|
14853
15079
|
"$tagName$": "eds-user-modal",
|
|
@@ -14899,7 +15125,7 @@ class GradientPrimaryPalette {
|
|
|
14899
15125
|
];
|
|
14900
15126
|
}
|
|
14901
15127
|
render() {
|
|
14902
|
-
return (hAsync("ul", { key: '
|
|
15128
|
+
return (hAsync("ul", { key: '922dbe263e6db86ed17d98d65d38e1d6f4ef25df', class: "gap-y-8 md:gap-y-12 lg:gap-y-16", style: {
|
|
14903
15129
|
background: 'linear-gradient(to bottom, #9CE142 0%, #00C959 50%, #00A595 100%)'
|
|
14904
15130
|
} }, 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))))))));
|
|
14905
15131
|
}
|
|
@@ -14972,19 +15198,19 @@ class GradientSecondaryPalette {
|
|
|
14972
15198
|
];
|
|
14973
15199
|
}
|
|
14974
15200
|
render() {
|
|
14975
|
-
return (hAsync("div", { key: '
|
|
15201
|
+
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: {
|
|
14976
15202
|
background: this.colors[0].background
|
|
14977
|
-
} }, hAsync("div", { key: '
|
|
15203
|
+
} }, 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: {
|
|
14978
15204
|
background: this.colors[1].background
|
|
14979
|
-
} }, hAsync("div", { key: '
|
|
15205
|
+
} }, 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: {
|
|
14980
15206
|
background: this.colors[2].background
|
|
14981
|
-
} }, hAsync("div", { key: '
|
|
15207
|
+
} }, 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: {
|
|
14982
15208
|
background: this.colors[3].background
|
|
14983
|
-
} }, hAsync("div", { key: '
|
|
15209
|
+
} }, 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: {
|
|
14984
15210
|
background: this.colors[4].background
|
|
14985
|
-
} }, hAsync("div", { key: '
|
|
15211
|
+
} }, 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: {
|
|
14986
15212
|
background: this.colors[5].background
|
|
14987
|
-
} }, hAsync("div", { key: '
|
|
15213
|
+
} }, 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)))))));
|
|
14988
15214
|
}
|
|
14989
15215
|
static get cmpMeta() { return {
|
|
14990
15216
|
"$flags$": 0,
|
|
@@ -15047,11 +15273,11 @@ class GradientSupportPalette {
|
|
|
15047
15273
|
];
|
|
15048
15274
|
}
|
|
15049
15275
|
render() {
|
|
15050
|
-
return (hAsync("ul", { key: '
|
|
15276
|
+
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: {
|
|
15051
15277
|
background: this.colors[2].background
|
|
15052
|
-
} }, hAsync("div", { key: '
|
|
15278
|
+
} }, 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: {
|
|
15053
15279
|
background: this.colors[3].background
|
|
15054
|
-
} }, hAsync("div", { key: '
|
|
15280
|
+
} }, 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'))))));
|
|
15055
15281
|
}
|
|
15056
15282
|
static get cmpMeta() { return {
|
|
15057
15283
|
"$flags$": 0,
|
|
@@ -15097,10 +15323,6 @@ const incorrect = [
|
|
|
15097
15323
|
...purple,
|
|
15098
15324
|
...red
|
|
15099
15325
|
];
|
|
15100
|
-
/**
|
|
15101
|
-
* `CorrectUseOfColors` is a component that combines the primary palette and support palette
|
|
15102
|
-
* to display the correct use of colors.
|
|
15103
|
-
*/
|
|
15104
15326
|
/**
|
|
15105
15327
|
* @internal
|
|
15106
15328
|
*/
|
|
@@ -15109,7 +15331,7 @@ class IncorrectUseOfColors {
|
|
|
15109
15331
|
registerInstance(this, hostRef);
|
|
15110
15332
|
}
|
|
15111
15333
|
render() {
|
|
15112
|
-
return (hAsync("div", { key: '
|
|
15334
|
+
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 } })))))))));
|
|
15113
15335
|
}
|
|
15114
15336
|
static get cmpMeta() { return {
|
|
15115
15337
|
"$flags$": 0,
|
|
@@ -15132,7 +15354,7 @@ class LogoSpace {
|
|
|
15132
15354
|
registerInstance(this, hostRef);
|
|
15133
15355
|
}
|
|
15134
15356
|
render() {
|
|
15135
|
-
return (hAsync("div", { key: '
|
|
15357
|
+
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 })))));
|
|
15136
15358
|
}
|
|
15137
15359
|
static get style() { return LogoSpaceStyle0; }
|
|
15138
15360
|
static get cmpMeta() { return {
|
|
@@ -15145,38 +15367,24 @@ class LogoSpace {
|
|
|
15145
15367
|
}; }
|
|
15146
15368
|
}
|
|
15147
15369
|
|
|
15148
|
-
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%)}";
|
|
15370
|
+
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%)}";
|
|
15149
15371
|
var LogoVariationsHorizontalStyle0 = logoVariationsHorizontalCss;
|
|
15150
15372
|
|
|
15151
15373
|
/**
|
|
15152
15374
|
* @internal
|
|
15153
15375
|
*/
|
|
15154
|
-
class
|
|
15376
|
+
class LogoVariationsHorizontal {
|
|
15155
15377
|
constructor(hostRef) {
|
|
15156
15378
|
registerInstance(this, hostRef);
|
|
15157
|
-
this.orientation = 'horizontal';
|
|
15158
|
-
this.type = undefined;
|
|
15159
15379
|
}
|
|
15160
15380
|
render() {
|
|
15161
|
-
|
|
15162
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[300px]" }, hAsync("eds-logo", { type: "no-bg", href: "#" }))));
|
|
15163
|
-
}
|
|
15164
|
-
if (this.type === 'black') {
|
|
15165
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[300px]" }, hAsync("eds-logo", { type: "black", href: "#" }))));
|
|
15166
|
-
}
|
|
15167
|
-
if (this.type === 'color-white') {
|
|
15168
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[300px]" }, hAsync("eds-logo", { type: "color-white", href: "#" }))));
|
|
15169
|
-
}
|
|
15170
|
-
return null;
|
|
15381
|
+
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: "#" })))));
|
|
15171
15382
|
}
|
|
15172
15383
|
static get style() { return LogoVariationsHorizontalStyle0; }
|
|
15173
15384
|
static get cmpMeta() { return {
|
|
15174
15385
|
"$flags$": 9,
|
|
15175
15386
|
"$tagName$": "logo-variations-horizontal",
|
|
15176
|
-
"$members$":
|
|
15177
|
-
"orientation": [1],
|
|
15178
|
-
"type": [1]
|
|
15179
|
-
},
|
|
15387
|
+
"$members$": undefined,
|
|
15180
15388
|
"$listeners$": undefined,
|
|
15181
15389
|
"$lazyBundleId$": "-",
|
|
15182
15390
|
"$attrsToReflect$": []
|
|
@@ -15189,23 +15397,14 @@ var LogoVariationsVerticalStyle0 = logoVariationsVerticalCss;
|
|
|
15189
15397
|
/**
|
|
15190
15398
|
* @internal
|
|
15191
15399
|
*/
|
|
15192
|
-
class
|
|
15400
|
+
class LogoVariationsVertical {
|
|
15193
15401
|
constructor(hostRef) {
|
|
15194
15402
|
registerInstance(this, hostRef);
|
|
15195
|
-
this.orientation = '
|
|
15403
|
+
this.orientation = 'vertical';
|
|
15196
15404
|
this.type = undefined;
|
|
15197
15405
|
}
|
|
15198
15406
|
render() {
|
|
15199
|
-
|
|
15200
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "coloured w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "no-bg", href: "#" }))));
|
|
15201
|
-
}
|
|
15202
|
-
if (this.type === 'black') {
|
|
15203
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "bg-default w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "black", href: "#" }))));
|
|
15204
|
-
}
|
|
15205
|
-
if (this.type === 'color-white') {
|
|
15206
|
-
return (hAsync("div", { class: "container my-16" }, hAsync("div", { class: "w-[200px]" }, hAsync("eds-logo", { orientation: "vertical", type: "color-white", href: "#" }))));
|
|
15207
|
-
}
|
|
15208
|
-
return null;
|
|
15407
|
+
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: "#" })))));
|
|
15209
15408
|
}
|
|
15210
15409
|
static get style() { return LogoVariationsVerticalStyle0; }
|
|
15211
15410
|
static get cmpMeta() { return {
|
|
@@ -15221,7 +15420,7 @@ class LogoVariations {
|
|
|
15221
15420
|
}; }
|
|
15222
15421
|
}
|
|
15223
15422
|
|
|
15224
|
-
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}";
|
|
15423
|
+
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}";
|
|
15225
15424
|
var LogoWrongUsageStyle0 = logoWrongUsageCss;
|
|
15226
15425
|
|
|
15227
15426
|
/**
|
|
@@ -15232,7 +15431,7 @@ class LogoWrongUsage {
|
|
|
15232
15431
|
registerInstance(this, hostRef);
|
|
15233
15432
|
}
|
|
15234
15433
|
render() {
|
|
15235
|
-
return (hAsync("ul", { key: '
|
|
15434
|
+
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")))));
|
|
15236
15435
|
}
|
|
15237
15436
|
static get style() { return LogoWrongUsageStyle0; }
|
|
15238
15437
|
static get cmpMeta() { return {
|
|
@@ -15488,7 +15687,7 @@ class TokenList {
|
|
|
15488
15687
|
render() {
|
|
15489
15688
|
// Check if `show` prop is provided; if not, display all sections
|
|
15490
15689
|
const sectionsToDisplay = this.show ? { [this.show]: colors[this.show] } : colors;
|
|
15491
|
-
return (hAsync("section", { key: '
|
|
15690
|
+
return (hAsync("section", { key: 'ac8573b341ad313eba0f9f082dcc72cfc81208b3', class: "w-full mt-28" }, Object.entries(sectionsToDisplay).map(([sectionName, sectionContent]) =>
|
|
15492
15691
|
// Only render sections that exist in `colors`
|
|
15493
15692
|
sectionContent ? this.renderSection(sectionName, sectionContent) : null)));
|
|
15494
15693
|
}
|
|
@@ -15521,7 +15720,7 @@ class TokenRadii {
|
|
|
15521
15720
|
registerInstance(this, hostRef);
|
|
15522
15721
|
}
|
|
15523
15722
|
render() {
|
|
15524
|
-
return (hAsync("section", { key: '
|
|
15723
|
+
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" }))))))));
|
|
15525
15724
|
}
|
|
15526
15725
|
static get cmpMeta() { return {
|
|
15527
15726
|
"$flags$": 0,
|
|
@@ -15550,7 +15749,7 @@ class TokenRatios {
|
|
|
15550
15749
|
registerInstance(this, hostRef);
|
|
15551
15750
|
}
|
|
15552
15751
|
render() {
|
|
15553
|
-
return (hAsync("section", { key: '
|
|
15752
|
+
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: {
|
|
15554
15753
|
aspectRatio: value.replace('/', ':'), // Cast to string to resolve TypeScript error
|
|
15555
15754
|
width: '100%', // Full width to show the aspect ratio correctly
|
|
15556
15755
|
maxWidth: '300px'
|
|
@@ -15592,7 +15791,7 @@ class TokenShadows {
|
|
|
15592
15791
|
registerInstance(this, hostRef);
|
|
15593
15792
|
}
|
|
15594
15793
|
render() {
|
|
15595
|
-
return (hAsync("section", { key: '
|
|
15794
|
+
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]" })))))))));
|
|
15596
15795
|
}
|
|
15597
15796
|
static get cmpMeta() { return {
|
|
15598
15797
|
"$flags$": 0,
|
|
@@ -15612,7 +15811,7 @@ class TokenSpacing {
|
|
|
15612
15811
|
registerInstance(this, hostRef);
|
|
15613
15812
|
}
|
|
15614
15813
|
render() {
|
|
15615
|
-
return (hAsync("div", { key: '
|
|
15814
|
+
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")))))));
|
|
15616
15815
|
}
|
|
15617
15816
|
static get cmpMeta() { return {
|
|
15618
15817
|
"$flags$": 0,
|
|
@@ -15830,7 +16029,7 @@ class TokenTypography {
|
|
|
15830
16029
|
registerInstance(this, hostRef);
|
|
15831
16030
|
}
|
|
15832
16031
|
render() {
|
|
15833
|
-
return (hAsync("section", { key: '
|
|
16032
|
+
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)
|
|
15834
16033
|
.filter(([typeKey]) => typeKey !== 'displays') // Exclude "displays"
|
|
15835
16034
|
.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: {
|
|
15836
16035
|
fontFamily: typography.families.sans,
|
|
@@ -15921,6 +16120,7 @@ registerComponents([
|
|
|
15921
16120
|
EdsLink,
|
|
15922
16121
|
EdsLogin,
|
|
15923
16122
|
EdsLogo,
|
|
16123
|
+
EdsLogoVariations,
|
|
15924
16124
|
EdsMatomoNotice,
|
|
15925
16125
|
EdsModal,
|
|
15926
16126
|
EdsNavigator,
|
|
@@ -15929,7 +16129,7 @@ registerComponents([
|
|
|
15929
16129
|
EdsRating,
|
|
15930
16130
|
EdsSectionCore,
|
|
15931
16131
|
EdsSectionHeading,
|
|
15932
|
-
|
|
16132
|
+
EdsSocialNetworks,
|
|
15933
16133
|
EdsSvgRepository,
|
|
15934
16134
|
EdsTab,
|
|
15935
16135
|
EdsTable,
|
|
@@ -15948,8 +16148,8 @@ registerComponents([
|
|
|
15948
16148
|
GradientSupportPalette,
|
|
15949
16149
|
IncorrectUseOfColors,
|
|
15950
16150
|
LogoSpace,
|
|
15951
|
-
|
|
15952
|
-
|
|
16151
|
+
LogoVariationsHorizontal,
|
|
16152
|
+
LogoVariationsVertical,
|
|
15953
16153
|
LogoWrongUsage,
|
|
15954
16154
|
TokenList,
|
|
15955
16155
|
TokenRadii,
|