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