@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
|
@@ -61,7 +61,7 @@ const EdsLogin = class {
|
|
|
61
61
|
return this.authenticated ? 'Logout' : 'Login';
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h("
|
|
64
|
+
return (h("eds-button", { key: '35f298ecf951d5b1087f988262ae7d312c5e2d38', label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) }));
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const EdsLogoVariations = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.tabIndex = undefined;
|
|
7
|
+
}
|
|
8
|
+
renderContent() {
|
|
9
|
+
switch (this.tabIndex) {
|
|
10
|
+
case 0:
|
|
11
|
+
return h("logo-variations-horizontal", null);
|
|
12
|
+
case 1:
|
|
13
|
+
return h("logo-variations-vertical", null);
|
|
14
|
+
default:
|
|
15
|
+
return h("p", null, "Content not available.");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return h("div", { key: '9d6ce0e75030d6e636aab423181b0ce999f6f1b0', class: "container" }, this.renderContent());
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { EdsLogoVariations as eds_logo_variations };
|
|
@@ -205,4 +205,160 @@ const EdsPagination = class {
|
|
|
205
205
|
};
|
|
206
206
|
EdsPagination.style = EdsPaginationStyle0;
|
|
207
207
|
|
|
208
|
-
|
|
208
|
+
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}";
|
|
209
|
+
const EdsTableStyle0 = edsTableCss;
|
|
210
|
+
|
|
211
|
+
const EdsTable = class {
|
|
212
|
+
constructor(hostRef) {
|
|
213
|
+
registerInstance(this, hostRef);
|
|
214
|
+
this.data = null;
|
|
215
|
+
this.endpoint = null;
|
|
216
|
+
this.config = {};
|
|
217
|
+
this.rowsPerPage = 10;
|
|
218
|
+
this.paginationEnabled = true;
|
|
219
|
+
this.searchEnabled = false;
|
|
220
|
+
this.hostWidth = undefined;
|
|
221
|
+
this.columnSize = 'default';
|
|
222
|
+
this.tableData = [];
|
|
223
|
+
this.columns = [];
|
|
224
|
+
this.currentPage = 1;
|
|
225
|
+
this.parsedConfig = {};
|
|
226
|
+
this.totalRows = 0;
|
|
227
|
+
this.searchQuery = '';
|
|
228
|
+
}
|
|
229
|
+
handleDataChange() {
|
|
230
|
+
this.parseData();
|
|
231
|
+
}
|
|
232
|
+
handleConfigChange() {
|
|
233
|
+
this.parseConfig();
|
|
234
|
+
}
|
|
235
|
+
componentWillLoad() {
|
|
236
|
+
this.parseConfig();
|
|
237
|
+
this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
238
|
+
}
|
|
239
|
+
componentDidLoad() {
|
|
240
|
+
this.setupPaginationListener();
|
|
241
|
+
}
|
|
242
|
+
componentDidUpdate() {
|
|
243
|
+
this.setupPaginationListener();
|
|
244
|
+
}
|
|
245
|
+
parseData() {
|
|
246
|
+
try {
|
|
247
|
+
this.tableData = typeof this.data === 'string' ? JSON.parse(this.data) : this.data || [];
|
|
248
|
+
this.totalRows = this.tableData.length;
|
|
249
|
+
this.updateColumns();
|
|
250
|
+
this.currentPage = 1;
|
|
251
|
+
}
|
|
252
|
+
catch (error) {
|
|
253
|
+
// eslint-disable-next-line
|
|
254
|
+
console.error('Failed to parse data:', error);
|
|
255
|
+
this.tableData = [];
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
parseConfig() {
|
|
259
|
+
try {
|
|
260
|
+
this.parsedConfig = typeof this.config === 'string' ? JSON.parse(this.config) : this.config;
|
|
261
|
+
}
|
|
262
|
+
catch (error) {
|
|
263
|
+
// eslint-disable-next-line
|
|
264
|
+
console.error('Failed to parse config:', error);
|
|
265
|
+
this.parsedConfig = {};
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async fetchData() {
|
|
269
|
+
try {
|
|
270
|
+
const response = await fetch(this.endpoint);
|
|
271
|
+
const data = await response.json();
|
|
272
|
+
this.data = data;
|
|
273
|
+
}
|
|
274
|
+
catch (error) {
|
|
275
|
+
// eslint-disable-next-line
|
|
276
|
+
console.error('Failed to fetch data:', error);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
setupPaginationListener() {
|
|
280
|
+
if (!this.shouldEnablePagination()) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
const paginationEl = this.hostEl.shadowRoot.querySelector('eds-pagination');
|
|
284
|
+
if (paginationEl && !paginationEl.hasAttribute('listener-attached')) {
|
|
285
|
+
paginationEl.addEventListener('pageChange', (event) => this.handlePageChange(event.detail));
|
|
286
|
+
paginationEl.setAttribute('listener-attached', 'true');
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
getFilteredRows() {
|
|
290
|
+
return this.tableData.filter((row) => Object.values(row).some((value) => value.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
291
|
+
}
|
|
292
|
+
getPaginatedRows() {
|
|
293
|
+
const filteredRows = this.getFilteredRows();
|
|
294
|
+
this.totalRows = filteredRows.length;
|
|
295
|
+
const start = (this.currentPage - 1) * this.rowsPerPage;
|
|
296
|
+
return filteredRows.slice(start, start + this.rowsPerPage);
|
|
297
|
+
}
|
|
298
|
+
handlePageChange(newPage) {
|
|
299
|
+
this.currentPage = newPage;
|
|
300
|
+
}
|
|
301
|
+
handleSearch(event) {
|
|
302
|
+
this.searchQuery = event.target.value;
|
|
303
|
+
this.currentPage = 1;
|
|
304
|
+
}
|
|
305
|
+
renderCell(value, column) {
|
|
306
|
+
var _a;
|
|
307
|
+
const format = (_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.format;
|
|
308
|
+
return format === 'uppercase' ? (value === null || value === void 0 ? void 0 : value.toString().toUpperCase()) : format === 'svg' ? (h("div", { innerHTML: value })) : format === 'bold' ? (h("strong", null, value)) : format === 'code' ? (h("code", null, value)) : (value);
|
|
309
|
+
}
|
|
310
|
+
shouldEnablePagination() {
|
|
311
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
312
|
+
}
|
|
313
|
+
updateColumns() {
|
|
314
|
+
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
315
|
+
}
|
|
316
|
+
getVisibleColumnsCount() {
|
|
317
|
+
return this.columns.filter((column) => { var _a; return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden); }).length;
|
|
318
|
+
}
|
|
319
|
+
divisionFactor() {
|
|
320
|
+
let divisionFactor = 1;
|
|
321
|
+
if (this.columnSize === 'medium') {
|
|
322
|
+
divisionFactor = 2;
|
|
323
|
+
}
|
|
324
|
+
else if (this.columnSize === 'large') {
|
|
325
|
+
divisionFactor = 4;
|
|
326
|
+
}
|
|
327
|
+
return divisionFactor;
|
|
328
|
+
}
|
|
329
|
+
render() {
|
|
330
|
+
// Get the paginated rows and calculate the last page.
|
|
331
|
+
const paginatedRows = this.getPaginatedRows();
|
|
332
|
+
const lastPage = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
333
|
+
// Determine the number of visible columns (i.e., those not hidden via config)
|
|
334
|
+
const visibleColumnsCount = this.getVisibleColumnsCount();
|
|
335
|
+
/// Calculate container width based on the optional prop or parent's measured width.
|
|
336
|
+
const containerWidth = this.hostWidth && this.hostWidth.trim() !== ''
|
|
337
|
+
? Number(this.hostWidth)
|
|
338
|
+
: this.hostEl.parentElement instanceof HTMLElement
|
|
339
|
+
? this.hostEl.parentElement.getBoundingClientRect().width
|
|
340
|
+
: this.hostEl.getRootNode().host instanceof HTMLElement
|
|
341
|
+
? this.hostEl.getRootNode().host.getBoundingClientRect().width
|
|
342
|
+
: 400;
|
|
343
|
+
//console.log('containerWidth:', containerWidth);
|
|
344
|
+
const columnWidth = visibleColumnsCount > 0 ? Math.floor((containerWidth / visibleColumnsCount) * this.divisionFactor()) : 100;
|
|
345
|
+
console.log('columnWidth:', columnWidth);
|
|
346
|
+
return (h("div", { key: '178a33c07e6eae9d5edc170f842b6ef29ae21d9c' }, this.searchEnabled && (h("div", { key: 'f1212a4e515a1db218df28b71367c6ffa42e3063' }, h("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...",
|
|
347
|
+
// @ts-ignore
|
|
348
|
+
onInput: (event) => this.handleSearch(event) }))), h("div", { key: 'da6ac91e4b4d56780b044a3d35088e7722efe143', class: "mt-20" }, h("table", { key: '3c5734d2370b31d2445ed4f043a80bf87c6d4bde', class: "block overflow-x-auto mt-6 p-0" }, h("thead", { key: '3803a39b4c987ff39bf22e2567bd1bc3d513e1f4' }, h("tr", { key: 'a67fa7bdd48549c69cfa9721083a908ab036a559', class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
349
|
+
var _a;
|
|
350
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${columnWidth}px` } }, column));
|
|
351
|
+
}))), h("tbody", { key: '8e3f21bf2ee5b1bd84cfa93411ca2671f43ced45' }, paginatedRows.map((row) => (h("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((column) => {
|
|
352
|
+
var _a;
|
|
353
|
+
return !((_a = this.parsedConfig[column]) === null || _a === void 0 ? void 0 : _a.hidden) && (h("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${columnWidth}px` } }, this.renderCell(row[column], column)));
|
|
354
|
+
}))))))), this.shouldEnablePagination() && (h("div", { key: '24931f257ef9ced394c1b5b1e589cacedd8035e6', class: "mt-20" }, h("eds-pagination", { key: '996b26ae090ee4fe08cc821fb11362d94879ff72', currentPage: this.currentPage, lastPage: lastPage, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })))));
|
|
355
|
+
}
|
|
356
|
+
get hostEl() { return getElement(this); }
|
|
357
|
+
static get watchers() { return {
|
|
358
|
+
"data": ["handleDataChange", "parseData"],
|
|
359
|
+
"config": ["handleConfigChange"]
|
|
360
|
+
}; }
|
|
361
|
+
};
|
|
362
|
+
EdsTable.style = EdsTableStyle0;
|
|
363
|
+
|
|
364
|
+
export { EdsPagination as eds_pagination, EdsTable as eds_table };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const edsProgressBarCss = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}";
|
|
4
|
+
const EdsProgressBarStyle0 = edsProgressBarCss;
|
|
5
|
+
|
|
6
|
+
const EdsProgressBar = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.value = 0;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Method to update the progress value externally.
|
|
13
|
+
* @param newValue The new progress value (0-100).
|
|
14
|
+
*/
|
|
15
|
+
async updateValue(newValue) {
|
|
16
|
+
this.value = Math.min(100, Math.max(0, newValue)); // Clamp value between 0 and 100
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const progressValue = this.value;
|
|
20
|
+
return (h("div", { key: '3131f56034a9fd72ca51e448bc2bcc6281669b25', class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, h("div", { key: 'f1665a254f8dbe1ccb9e512e5f2e7c1e5ab88c07', class: `inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02`, style: { width: `${progressValue}%` } }, progressValue, "%")));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
EdsProgressBar.style = EdsProgressBarStyle0;
|
|
24
|
+
|
|
25
|
+
export { EdsProgressBar as eds_progress_bar };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-e96badea.js';
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
|
|
2
2
|
import { e as euSvg } from './eu-9ddde93a.js';
|
|
3
3
|
import { h as hLogoColor } from './logo-color-7f1fd803.js';
|
|
4
4
|
import { h as hLogoBlack, a as hLogoColorWhite, b as hLogoWhite, c as hLogoWhiteNoBg, v as vLogoColor, d as vLogoBlack, e as vLogoColorWhite, f as vLogoWhite, g as vLogoWhiteNoBg } from './logo-white-no-bg-f382f86f.js';
|
|
@@ -302,6 +302,11 @@ const EdsSvgRepository = class {
|
|
|
302
302
|
icon: svgContent // Pass SVG content as innerHTML
|
|
303
303
|
}));
|
|
304
304
|
}
|
|
305
|
+
get hostWidth() {
|
|
306
|
+
// Instead of using window.innerWidth, use the parent element's width.
|
|
307
|
+
const containerWidth = this.hostEl.parentElement ? this.hostEl.parentElement.offsetWidth : 400;
|
|
308
|
+
return containerWidth;
|
|
309
|
+
}
|
|
305
310
|
render() {
|
|
306
311
|
const svgData = this.getSvgData();
|
|
307
312
|
// Define table configuration
|
|
@@ -309,8 +314,9 @@ const EdsSvgRepository = class {
|
|
|
309
314
|
icon: { format: 'svg' },
|
|
310
315
|
name: { format: 'bold' }
|
|
311
316
|
};
|
|
312
|
-
return (h("eds-table", { key: '
|
|
317
|
+
return (h("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 }));
|
|
313
318
|
}
|
|
319
|
+
get hostEl() { return getElement(this); }
|
|
314
320
|
};
|
|
315
321
|
|
|
316
322
|
export { EdsSvgRepository as eds_svg_repository };
|
|
@@ -114,11 +114,11 @@ const EdsTabsContent = class {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (h("div", { key: '
|
|
117
|
+
return (h("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-['']" }, h("div", { key: '1bfda380604f1eae1cc5be147a5e3e6b537e0396', class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, h("nav", { key: 'b2ed26b52fd629ec99b01c7dc8e612eae4f3886d', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
118
118
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
119
119
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
120
120
|
return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label, url: tab.url, active: index === this.activeIndex, ariaLabel: tab.ariaLabel, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
121
|
-
})), h("slot", { key: '
|
|
121
|
+
})), h("slot", { key: '5072b877786a23358d540d6d242d5fbdb3c63d7f' }))));
|
|
122
122
|
}
|
|
123
123
|
get el() { return getElement(this); }
|
|
124
124
|
static get watchers() { return {
|
|
@@ -48,12 +48,33 @@ const EdsTabs = class {
|
|
|
48
48
|
this.setActiveIndex();
|
|
49
49
|
this.tabChange.emit({ tabId: this.id, index: 0 });
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Parses the `links` prop into an array of link objects.
|
|
53
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
54
|
+
*
|
|
55
|
+
* @returns {any[]} Array of parsed link objects
|
|
56
|
+
*/
|
|
57
|
+
/**
|
|
58
|
+
* Parses the `links` prop into an array of link objects.
|
|
59
|
+
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
60
|
+
*
|
|
61
|
+
* @returns {any[]} Array of parsed link objects
|
|
62
|
+
*/
|
|
51
63
|
parseTabs() {
|
|
52
|
-
|
|
53
|
-
this.parsedTabs =
|
|
64
|
+
if (Array.isArray(this.tabs)) {
|
|
65
|
+
this.parsedTabs = this.tabs;
|
|
54
66
|
}
|
|
55
|
-
|
|
56
|
-
|
|
67
|
+
else if (typeof this.tabs === 'string') {
|
|
68
|
+
try {
|
|
69
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
70
|
+
}
|
|
71
|
+
catch (e) {
|
|
72
|
+
//console.error('Error parsing tabs prop:', e);
|
|
73
|
+
this.parsedTabs = [];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
// If the type is not an array or string, assume an empty array.
|
|
57
78
|
this.parsedTabs = [];
|
|
58
79
|
}
|
|
59
80
|
}
|
|
@@ -103,7 +124,7 @@ const EdsTabs = class {
|
|
|
103
124
|
});
|
|
104
125
|
}
|
|
105
126
|
render() {
|
|
106
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("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-['']" }, h("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" }, h("nav", { key: 'fcedf94e6f6c14635291d9c8e6d672efc8055433', ref: (el) => (this.tabContainer = el), class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((tab, index) => {
|
|
107
128
|
//const TabComponent = tab.active ? 'span' : 'a';
|
|
108
129
|
const tabProps = this.getTabOptions(tab.active, index);
|
|
109
130
|
return (h("eds-tab", Object.assign({}, tabProps, { label: tab.label || tab.ariaLabel, url: tab.url, active: index === this.activeIndex, onClick: () => this.handleTabClick(index, tab.label) })));
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const EdsTimeline = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.events = undefined;
|
|
7
|
+
this.selectedEvent = null;
|
|
8
|
+
this.parsedEvents = [];
|
|
9
|
+
}
|
|
10
|
+
parseEvents(newValue) {
|
|
11
|
+
let parsed;
|
|
12
|
+
// If events is a string, try to parse it
|
|
13
|
+
if (typeof newValue === 'string') {
|
|
14
|
+
try {
|
|
15
|
+
parsed = JSON.parse(newValue);
|
|
16
|
+
}
|
|
17
|
+
catch (e) {
|
|
18
|
+
console.error('Error parsing events JSON', e);
|
|
19
|
+
parsed = [];
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
// If events is already an array, use it directly
|
|
23
|
+
else if (Array.isArray(newValue)) {
|
|
24
|
+
parsed = newValue;
|
|
25
|
+
}
|
|
26
|
+
// Otherwise, default to an empty array
|
|
27
|
+
else {
|
|
28
|
+
parsed = [];
|
|
29
|
+
}
|
|
30
|
+
// Map over the parsed events to ensure boolean conversion for "completed"
|
|
31
|
+
this.parsedEvents = Array.isArray(parsed)
|
|
32
|
+
? parsed.map((event) => (Object.assign(Object.assign({}, event), { completed: event.completed === 'true' || event.completed === true })))
|
|
33
|
+
: [];
|
|
34
|
+
}
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
this.parseEvents(this.events);
|
|
37
|
+
}
|
|
38
|
+
componentDidLoad() {
|
|
39
|
+
const cards = this.el.querySelectorAll('eds-card-generic');
|
|
40
|
+
cards.forEach((card) => {
|
|
41
|
+
this.emitContext(card);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
emitContext(cardElement) {
|
|
45
|
+
const event = new CustomEvent('parentContext', {
|
|
46
|
+
detail: {
|
|
47
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
48
|
+
identifier: null
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
cardElement.dispatchEvent(event);
|
|
52
|
+
}
|
|
53
|
+
handleEventClick(event) {
|
|
54
|
+
this.selectedEvent = event;
|
|
55
|
+
if (this.modalRef && typeof this.modalRef.open === 'function') {
|
|
56
|
+
this.modalRef.open();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
return (h("div", { key: '29e360adb412c67e7516f04671c276a12197d830', class: "max-w-sidebar mx-auto px-4 py-8" }, h("div", { key: 'c556578a505bfb2da435616cb1f39cb91859ec7e', class: "relative" }, h("div", { key: '8e1d307b2b3b470c643ba992d8307457581e9d4f', class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), h("div", { key: '7b40b6a8944aad01d01524e13056fbafeaa8a8a8', class: "space-y-16" }, this.parsedEvents.map((event, index) => (h("div", { class: "relative flex" }, h("div", { class: `w-1/2 ${index % 2 === 0 ? 'pr-4' : ''}` }, index % 2 === 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
61
|
+
? [{ label: 'completed', style: 'accent' }]
|
|
62
|
+
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))), h("div", { class: "flex items-center justify-center relative" }, event.completed ? (h("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" })) : (h("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" }))), h("div", { class: `w-1/2 ${index % 2 !== 0 ? 'pl-4' : ''}` }, index % 2 !== 0 && (h("eds-card-generic", { cardTitle: event.title, url: "#", description: event.description, "heading-level": "h2", tiny: true, bg: !event.completed, "with-hover": "false", tags: JSON.stringify(event.completed
|
|
63
|
+
? [{ label: 'completed', style: 'accent' }]
|
|
64
|
+
: [{ label: 'pending', style: 'default' }]), onClick: () => this.handleEventClick(event) }))))))))));
|
|
65
|
+
}
|
|
66
|
+
get el() { return getElement(this); }
|
|
67
|
+
static get watchers() { return {
|
|
68
|
+
"events": ["parseEvents"]
|
|
69
|
+
}; }
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export { EdsTimeline as eds_timeline };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-e96badea.js';
|
|
2
|
+
|
|
3
|
+
const EdsTrl = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.applications = undefined;
|
|
7
|
+
}
|
|
8
|
+
getParsedApplications() {
|
|
9
|
+
let apps = [];
|
|
10
|
+
// If applications is a string, attempt to parse it as JSON.
|
|
11
|
+
if (typeof this.applications === 'string') {
|
|
12
|
+
try {
|
|
13
|
+
apps = JSON.parse(this.applications || '[]');
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
// Uncomment the next line for debugging
|
|
17
|
+
// console.error('Invalid applications JSON', error);
|
|
18
|
+
apps = [];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
// If applications is already an array, use it directly.
|
|
22
|
+
else if (Array.isArray(this.applications)) {
|
|
23
|
+
apps = this.applications;
|
|
24
|
+
}
|
|
25
|
+
return apps;
|
|
26
|
+
}
|
|
27
|
+
calculateProgress(currentTrl) {
|
|
28
|
+
const maxTrl = 9;
|
|
29
|
+
return Math.ceil((currentTrl / maxTrl) * 100); // Calculate percentage and round up
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
const apps = this.getParsedApplications();
|
|
33
|
+
console.log('apps:', apps);
|
|
34
|
+
// Map applications into table-friendly data.
|
|
35
|
+
const tableData = apps.map(app => ({
|
|
36
|
+
Application: app.name,
|
|
37
|
+
"Current TRL Stage": `TRL ${app.currentTrl}`,
|
|
38
|
+
Progress: (h("div", { class: "w-[200px]" }, h("eds-progress-bar", { value: this.calculateProgress(app.currentTrl) })))
|
|
39
|
+
}));
|
|
40
|
+
const tableConfig = {
|
|
41
|
+
"Application": { "format": "code" },
|
|
42
|
+
"Current TRL Stage": { "format": "text" }
|
|
43
|
+
};
|
|
44
|
+
return (h("div", { key: '71e903734b5cd1ef74bf93e8fcdc57afacb51f07', class: "container mx-auto px-4 py-8" }, h("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" })));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { EdsTrl as eds_trl };
|
|
@@ -39,7 +39,7 @@ const IncorrectUseOfColors = class {
|
|
|
39
39
|
registerInstance(this, hostRef);
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '2e660e9a788e46e68d6695ae8aa475bbb1ca395e', class: "container" }, h("eds-alert", { key: '1dc4552a33d88055a3a0c33eeb18c53a8379039a', message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" }), h("div", { key: 'fd6bf7f0205422b1bd3ceb3f8374d5a9a73aaca0', class: "flex" }, h("div", { key: 'dae745447f5e9792136f059b1dcfc868e473dfd5', class: "w-full" }, h("ul", { key: 'daeec7514f4027ec3f688f05fb4f1e027b846a81', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, primary.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))), h("div", { key: '1ca202afa9384e78e3ed9c0674e06c51184d3a5a', class: "w-full" }, h("ul", { key: '7bdef2e7d64f3c5553193d127bac69ee89a93686', class: "gap-y-8 md:gap-y-12 lg:gap-y-16" }, incorrect.map((color) => (h("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, h("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: color.background } })))))))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -52,18 +52,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
52
52
|
}
|
|
53
53
|
switch(bundleId) {
|
|
54
54
|
|
|
55
|
-
case 'eds-
|
|
55
|
+
case 'eds-avatar_17':
|
|
56
56
|
return import(
|
|
57
57
|
/* webpackMode: "lazy" */
|
|
58
|
-
'./eds-
|
|
58
|
+
'./eds-avatar_17.entry.js').then(processMod, consoleError);
|
|
59
59
|
case 'correct-use-of-colors':
|
|
60
60
|
return import(
|
|
61
61
|
/* webpackMode: "lazy" */
|
|
62
62
|
'./correct-use-of-colors.entry.js').then(processMod, consoleError);
|
|
63
|
-
case 'eds-breadcrumb':
|
|
64
|
-
return import(
|
|
65
|
-
/* webpackMode: "lazy" */
|
|
66
|
-
'./eds-breadcrumb.entry.js').then(processMod, consoleError);
|
|
67
63
|
case 'eds-card-project':
|
|
68
64
|
return import(
|
|
69
65
|
/* webpackMode: "lazy" */
|
|
@@ -96,14 +92,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
96
92
|
return import(
|
|
97
93
|
/* webpackMode: "lazy" */
|
|
98
94
|
'./eds-docs-tokens.entry.js').then(processMod, consoleError);
|
|
99
|
-
case 'eds-
|
|
95
|
+
case 'eds-form':
|
|
100
96
|
return import(
|
|
101
97
|
/* webpackMode: "lazy" */
|
|
102
|
-
'./eds-
|
|
103
|
-
case 'eds-
|
|
98
|
+
'./eds-form.entry.js').then(processMod, consoleError);
|
|
99
|
+
case 'eds-frame':
|
|
104
100
|
return import(
|
|
105
101
|
/* webpackMode: "lazy" */
|
|
106
|
-
'./eds-
|
|
102
|
+
'./eds-frame.entry.js').then(processMod, consoleError);
|
|
107
103
|
case 'eds-icon-arrow-diagonal':
|
|
108
104
|
return import(
|
|
109
105
|
/* webpackMode: "lazy" */
|
|
@@ -196,6 +192,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
196
192
|
return import(
|
|
197
193
|
/* webpackMode: "lazy" */
|
|
198
194
|
'./eds-login.entry.js').then(processMod, consoleError);
|
|
195
|
+
case 'eds-logo-variations':
|
|
196
|
+
return import(
|
|
197
|
+
/* webpackMode: "lazy" */
|
|
198
|
+
'./eds-logo-variations.entry.js').then(processMod, consoleError);
|
|
199
199
|
case 'eds-matomo-notice':
|
|
200
200
|
return import(
|
|
201
201
|
/* webpackMode: "lazy" */
|
|
@@ -224,10 +224,18 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
224
224
|
return import(
|
|
225
225
|
/* webpackMode: "lazy" */
|
|
226
226
|
'./eds-tabs-content.entry.js').then(processMod, consoleError);
|
|
227
|
+
case 'eds-timeline':
|
|
228
|
+
return import(
|
|
229
|
+
/* webpackMode: "lazy" */
|
|
230
|
+
'./eds-timeline.entry.js').then(processMod, consoleError);
|
|
227
231
|
case 'eds-tooltip':
|
|
228
232
|
return import(
|
|
229
233
|
/* webpackMode: "lazy" */
|
|
230
234
|
'./eds-tooltip.entry.js').then(processMod, consoleError);
|
|
235
|
+
case 'eds-trl':
|
|
236
|
+
return import(
|
|
237
|
+
/* webpackMode: "lazy" */
|
|
238
|
+
'./eds-trl.entry.js').then(processMod, consoleError);
|
|
231
239
|
case 'incorrect-use-of-colors':
|
|
232
240
|
return import(
|
|
233
241
|
/* webpackMode: "lazy" */
|
|
@@ -236,14 +244,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
236
244
|
return import(
|
|
237
245
|
/* webpackMode: "lazy" */
|
|
238
246
|
'./logo-space.entry.js').then(processMod, consoleError);
|
|
239
|
-
case 'logo-variations-horizontal':
|
|
240
|
-
return import(
|
|
241
|
-
/* webpackMode: "lazy" */
|
|
242
|
-
'./logo-variations-horizontal.entry.js').then(processMod, consoleError);
|
|
243
|
-
case 'logo-variations-vertical':
|
|
244
|
-
return import(
|
|
245
|
-
/* webpackMode: "lazy" */
|
|
246
|
-
'./logo-variations-vertical.entry.js').then(processMod, consoleError);
|
|
247
247
|
case 'logo-wrong-usage':
|
|
248
248
|
return import(
|
|
249
249
|
/* webpackMode: "lazy" */
|
|
@@ -268,38 +268,46 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
268
268
|
return import(
|
|
269
269
|
/* webpackMode: "lazy" */
|
|
270
270
|
'./eds-accordion.entry.js').then(processMod, consoleError);
|
|
271
|
-
case 'eds-
|
|
271
|
+
case 'eds-progress-bar':
|
|
272
272
|
return import(
|
|
273
273
|
/* webpackMode: "lazy" */
|
|
274
|
-
'./eds-
|
|
275
|
-
case '
|
|
274
|
+
'./eds-progress-bar.entry.js').then(processMod, consoleError);
|
|
275
|
+
case 'logo-variations-horizontal_2':
|
|
276
276
|
return import(
|
|
277
277
|
/* webpackMode: "lazy" */
|
|
278
|
-
'./
|
|
278
|
+
'./logo-variations-horizontal_2.entry.js').then(processMod, consoleError);
|
|
279
279
|
case 'token-list_3':
|
|
280
280
|
return import(
|
|
281
281
|
/* webpackMode: "lazy" */
|
|
282
282
|
'./token-list_3.entry.js').then(processMod, consoleError);
|
|
283
|
-
case 'eds-
|
|
283
|
+
case 'eds-card-generic':
|
|
284
284
|
return import(
|
|
285
285
|
/* webpackMode: "lazy" */
|
|
286
|
-
'./eds-
|
|
286
|
+
'./eds-card-generic.entry.js').then(processMod, consoleError);
|
|
287
287
|
case 'eds-section-core_2':
|
|
288
288
|
return import(
|
|
289
289
|
/* webpackMode: "lazy" */
|
|
290
290
|
'./eds-section-core_2.entry.js').then(processMod, consoleError);
|
|
291
|
-
case 'eds-social-networks':
|
|
292
|
-
return import(
|
|
293
|
-
/* webpackMode: "lazy" */
|
|
294
|
-
'./eds-social-networks.entry.js').then(processMod, consoleError);
|
|
295
291
|
case 'eds-tab':
|
|
296
292
|
return import(
|
|
297
293
|
/* webpackMode: "lazy" */
|
|
298
294
|
'./eds-tab.entry.js').then(processMod, consoleError);
|
|
299
|
-
case 'eds-
|
|
295
|
+
case 'eds-pagination_2':
|
|
296
|
+
return import(
|
|
297
|
+
/* webpackMode: "lazy" */
|
|
298
|
+
'./eds-pagination_2.entry.js').then(processMod, consoleError);
|
|
299
|
+
case 'eds-alert':
|
|
300
|
+
return import(
|
|
301
|
+
/* webpackMode: "lazy" */
|
|
302
|
+
'./eds-alert.entry.js').then(processMod, consoleError);
|
|
303
|
+
case 'eds-card-desc_3':
|
|
304
|
+
return import(
|
|
305
|
+
/* webpackMode: "lazy" */
|
|
306
|
+
'./eds-card-desc_3.entry.js').then(processMod, consoleError);
|
|
307
|
+
case 'eds-input_7':
|
|
300
308
|
return import(
|
|
301
309
|
/* webpackMode: "lazy" */
|
|
302
|
-
'./eds-
|
|
310
|
+
'./eds-input_7.entry.js').then(processMod, consoleError);
|
|
303
311
|
case 'eds-code-block':
|
|
304
312
|
return import(
|
|
305
313
|
/* webpackMode: "lazy" */
|