@ebrains/vue 0.0.1-alpha.1 → 0.2.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/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +4 -0
- package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +1 -0
- package/arrow-right-9322ba8a-DBcxNU_p.js +3 -0
- package/arrow-right-9322ba8a-DHq-_PPe.mjs +6 -0
- package/bluesky-cc5edd2d-DaFQc-pr.js +12 -0
- package/bluesky-cc5edd2d-DfuDDO5h.mjs +15 -0
- package/chevron-down-6144c823-DWGlv9eV.mjs +13 -0
- package/chevron-down-6144c823-D_8976Ke.js +10 -0
- package/chevron-left-ca6c66e1-DANhLw_T.mjs +12 -0
- package/chevron-left-ca6c66e1-uCH5SUhm.js +9 -0
- package/chevron-right-b88ed2d4-C7dkTMvP.js +3 -0
- package/chevron-right-b88ed2d4-CgEZBvy7.mjs +6 -0
- package/chevron-up-c66bd477-ByW7R48t.js +10 -0
- package/chevron-up-c66bd477-CETJkshq.mjs +13 -0
- package/close-87fc0d63-Cbd-ScJr.js +3 -0
- package/close-87fc0d63-DtDU2HIU.mjs +6 -0
- package/color-0ba8ed56-BVeDdJAE.js +1 -0
- package/color-0ba8ed56-D-UJpBQL.mjs +207 -0
- package/color-primary-palette_6.entry-CfqMCd3g.mjs +300 -0
- package/color-primary-palette_6.entry-CoXWiKJ3.js +1 -0
- package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
- package/copy-03b72cb6-CZAFAegx.js +3 -0
- package/correct-use-of-colors.entry-CfXsWbhB.js +1 -0
- package/correct-use-of-colors.entry-CotQESQa.mjs +59 -0
- package/eds-accordion.entry-BsT7Ved4.mjs +58 -0
- package/eds-accordion.entry-BvDNoDvv.js +4 -0
- package/eds-alert_28.entry-Ctl9tHqr.js +29465 -0
- package/eds-alert_28.entry-DbTB72ow.mjs +30921 -0
- package/eds-block-break.entry-B8gP4ig9.mjs +13 -0
- package/eds-block-break.entry-L9LG-PtO.js +1 -0
- package/eds-breadcrumb.entry-C6mAAYNs.js +1 -0
- package/eds-breadcrumb.entry-Dio_2hx4.mjs +114 -0
- package/eds-card-project.entry-CKYhNPPH.mjs +43 -0
- package/eds-card-project.entry-XK15egnP.js +1 -0
- package/eds-card-section.entry-B7jR75ty.js +1 -0
- package/eds-card-section.entry-x8CPk5NZ.mjs +33 -0
- package/eds-card-tags.entry-Bvn8dDXI.mjs +13 -0
- package/eds-card-tags.entry-CndclGXB.js +1 -0
- package/eds-card-tool.entry-DFuXjfhh.mjs +56 -0
- package/eds-card-tool.entry-DZqHML8u.js +1 -0
- package/eds-card-wrapper.entry-C_r0u0Fd.js +1 -0
- package/eds-card-wrapper.entry-DNnlCvMe.mjs +24 -0
- package/eds-code-block.entry-ClmjgThG.js +9 -0
- package/eds-code-block.entry-DwfHDe4j.mjs +1582 -0
- package/eds-components-section.entry-8sEheaoX.js +130 -0
- package/eds-components-section.entry-BSRNSdwF.mjs +244 -0
- package/eds-docs-palettes.entry-BlQEI2Bl.mjs +22 -0
- package/eds-docs-palettes.entry-Gi9kzOYC.js +1 -0
- package/eds-docs-tokens.entry-Bxzd9uSz.mjs +30 -0
- package/eds-docs-tokens.entry-G6O1zRxS.js +1 -0
- package/eds-footer.entry-9xXgg22T.mjs +29 -0
- package/eds-footer.entry-DqnRHQ32.js +1 -0
- package/eds-frame.entry-Bz-23eT7.js +1 -0
- package/eds-frame.entry-YVbNIAAz.mjs +74 -0
- package/eds-fullscreen-menu.entry-4kxB1p-j.mjs +74 -0
- package/eds-fullscreen-menu.entry-DwOubHgX.js +1 -0
- package/eds-icon-arrow-diagonal.entry-C06V6TIW.js +1 -0
- package/eds-icon-arrow-diagonal.entry-Ky6NoFbS.mjs +13 -0
- package/eds-icon-arrow-right.entry-BPHnm7pX.mjs +13 -0
- package/eds-icon-arrow-right.entry-Dv17zi29.js +1 -0
- package/eds-icon-bluesky.entry-7_AzEVLl.mjs +13 -0
- package/eds-icon-bluesky.entry-DQshm0EA.js +1 -0
- package/eds-icon-chevron-down.entry-BlnVbI1I.js +1 -0
- package/eds-icon-chevron-down.entry-DkcBkTRK.mjs +13 -0
- package/eds-icon-chevron-left.entry-BTxaVVnF.js +1 -0
- package/eds-icon-chevron-left.entry-BwhZiPKE.mjs +13 -0
- package/eds-icon-chevron-right.entry-BPKLFXW0.mjs +13 -0
- package/eds-icon-chevron-right.entry-c4irNhqS.js +1 -0
- package/eds-icon-chevron-up.entry-CFiZyc6u.js +1 -0
- package/eds-icon-chevron-up.entry-oja5yYhS.mjs +13 -0
- package/eds-icon-close.entry-5BdzrFmk.mjs +13 -0
- package/eds-icon-close.entry-DQD_dDo5.js +1 -0
- package/eds-icon-copy.entry-CQ237xrq.js +1 -0
- package/eds-icon-copy.entry-jpUaAQ7k.mjs +13 -0
- package/eds-icon-eu.entry-CjCnJWwP.js +1 -0
- package/eds-icon-eu.entry-gJ234Xni.mjs +13 -0
- package/eds-icon-facebook.entry-BHUSe9LK.js +1 -0
- package/eds-icon-facebook.entry-Ch94iA-s.mjs +13 -0
- package/eds-icon-gitlab.entry-B06LmNCU.mjs +13 -0
- package/eds-icon-gitlab.entry-j6RBYOBc.js +1 -0
- package/eds-icon-linkedin.entry-CMW1rKpG.mjs +13 -0
- package/eds-icon-linkedin.entry-DouHzclR.js +1 -0
- package/eds-icon-loader.entry-BlGbpEzt.js +1 -0
- package/eds-icon-loader.entry-Cx_ffiBq.mjs +13 -0
- package/eds-icon-mastodon.entry-C4ITVPfN.mjs +13 -0
- package/eds-icon-mastodon.entry-Cpl3lSng.js +1 -0
- package/eds-icon-menu.entry-BcPeEfV2.js +1 -0
- package/eds-icon-menu.entry-DvQARmJU.mjs +13 -0
- package/eds-icon-more.entry-BoAVOpyT.mjs +13 -0
- package/eds-icon-more.entry-m61loZHO.js +1 -0
- package/eds-icon-search.entry-BJMtVlnR.js +1 -0
- package/eds-icon-search.entry-D-nQvhug.mjs +13 -0
- package/eds-icon-success.entry-D8S7QlRm.mjs +13 -0
- package/eds-icon-success.entry-DvIchNgX.js +1 -0
- package/eds-icon-twitter.entry-CD1nT3iI.js +1 -0
- package/eds-icon-twitter.entry-DD48tnaV.mjs +13 -0
- package/eds-icon-user.entry-DDRH46_Z.js +1 -0
- package/eds-icon-user.entry-DSPBBAZa.mjs +13 -0
- package/eds-icon-youtube.entry-BRyOsCV-.mjs +13 -0
- package/eds-icon-youtube.entry-CfpQHgDF.js +1 -0
- package/eds-login.entry-CY0ZugpF.js +1 -0
- package/eds-login.entry-bC6f6bvF.mjs +46 -0
- package/eds-matomo-notice.entry-DGHq-ICP.mjs +91 -0
- package/eds-matomo-notice.entry-DanLI8VZ.js +1 -0
- package/eds-modal.entry-Bikh63fB.mjs +65 -0
- package/eds-modal.entry-TMxTmjgT.js +1 -0
- package/eds-navigator.entry-CUAf3hTM.js +1 -0
- package/eds-navigator.entry-D-fIKqub.mjs +33 -0
- package/eds-pagination.entry-C8g4pxcm.js +1 -0
- package/eds-pagination.entry-D6iJH84k.mjs +128 -0
- package/eds-rating.entry-B2lhi19L.mjs +40 -0
- package/eds-rating.entry-BdE-bKae.js +1 -0
- package/eds-section-core_2.entry-BRNJshCh.js +1 -0
- package/eds-section-core_2.entry-CqFyAWoq.mjs +39 -0
- package/eds-social-networks.entry-6VfWBLuR.js +1 -0
- package/eds-social-networks.entry-BgiRVGXx.mjs +50 -0
- package/eds-svg-repository.entry-BdZya_DA.js +192 -0
- package/eds-svg-repository.entry-qaL9fhLI.mjs +287 -0
- package/eds-tab.entry-BqqMdTQv.mjs +31 -0
- package/eds-tab.entry-C6q7naM_.js +1 -0
- package/eds-table.entry-BojRZdP2.mjs +112 -0
- package/eds-table.entry-ShWS4LWJ.js +1 -0
- package/eds-tabs-content.entry-D9b289Td.mjs +106 -0
- package/eds-tabs-content.entry-H__1SNbo.js +1 -0
- package/eds-tabs.entry-DGHlnSwh.js +1 -0
- package/eds-tabs.entry-KsWwc6xS.mjs +95 -0
- package/eds-tooltip.entry-BI1EvTiw.js +1 -0
- package/eds-tooltip.entry-ByxJjA_6.mjs +69 -0
- package/eu-9ddde93a-BFtIQw9B.js +28 -0
- package/eu-9ddde93a-ft4szvR5.mjs +31 -0
- package/facebook-9cb5c17f-BcUhbrj6.mjs +15 -0
- package/facebook-9cb5c17f-Y_gvQ682.js +12 -0
- package/generated/components.d.ts +0 -1
- package/incorrect-use-of-colors.entry-C7xABbpE.js +1 -0
- package/incorrect-use-of-colors.entry-DNOV6p4p.mjs +42 -0
- package/index-39c58238-BwYCDOHZ.mjs +44 -0
- package/index-39c58238-SQ-JC-LH.js +1 -0
- package/index-BGGkUjck.js +21 -0
- package/index-DQrtrXyM.mjs +3529 -0
- package/index.js +1 -21
- package/index.mjs +38 -2363
- package/keycloak-13893af6-BLzE1H6E.mjs +878 -0
- package/keycloak-13893af6-NiM3zoVg.js +9 -0
- package/linkedin-e8650abb-BkDrkjzY.js +26 -0
- package/linkedin-e8650abb-DYMdsale.mjs +29 -0
- package/loader-c9628637-ChpnbJkv.mjs +31 -0
- package/loader-c9628637-Vj8Wt1e8.js +28 -0
- package/logo-color-7f1fd803-CFgbXdt8.mjs +116 -0
- package/logo-color-7f1fd803-DRD3vZVn.js +113 -0
- package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +119 -0
- package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +116 -0
- package/logo-space.entry-DpgwdyOK.js +1 -0
- package/logo-space.entry-OauRHmO8.mjs +14 -0
- package/logo-variations-horizontal.entry-BG8fM5Bs.js +4 -0
- package/logo-variations-horizontal.entry-BicKkgRN.mjs +16 -0
- package/logo-variations-vertical.entry-CXVFf9-0.mjs +16 -0
- package/logo-variations-vertical.entry-DJ-IpAyZ.js +4 -0
- package/logo-white-no-bg-f382f86f-DXYn3NwV.js +1011 -0
- package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +1022 -0
- package/logo-wrong-usage.entry-7MfyIkPp.js +1 -0
- package/logo-wrong-usage.entry-CH7JMqbI.mjs +14 -0
- package/mastodon-3703ec61-C7iI4Hk0.mjs +15 -0
- package/mastodon-3703ec61-C9v6Olc-.js +12 -0
- package/menu-340ea948-BpnYX3gY.mjs +12 -0
- package/menu-340ea948-ZdelWVw3.js +9 -0
- package/mono-53f70232-DGi2XDlR.mjs +12 -0
- package/mono-53f70232-DgAsWvoQ.js +9 -0
- package/more-4449d549-D4HA1cRq.js +11 -0
- package/more-4449d549-rI9hOpEp.mjs +14 -0
- package/package.json +2 -2
- package/search-fbcd79c2-BMxCaeEk.js +10 -0
- package/search-fbcd79c2-rfV0PlHP.mjs +13 -0
- package/success-443809da-BD23vltm.mjs +19 -0
- package/success-443809da-BUEhLsAD.js +16 -0
- package/toastManager-d9eee791-CEYNwx25.mjs +30 -0
- package/toastManager-d9eee791-DvR_vUPI.js +1 -0
- package/token-list_3.entry-CVZDegic.js +1 -0
- package/token-list_3.entry-Ca9muGhp.mjs +247 -0
- package/token-ratios.entry-D3JWYlHy.mjs +25 -0
- package/token-ratios.entry-DGMJ2vJj.js +1 -0
- package/token-spacing.entry-CdrdqAOb.js +1 -0
- package/token-spacing.entry-CjITQ8pH.mjs +12 -0
- package/token-typography.entry-C8CdhyIM.js +2 -0
- package/token-typography.entry-DwUOTznz.mjs +213 -0
- package/twitter-ac21b505-CGWVGWM9.mjs +15 -0
- package/twitter-ac21b505-DDdHS4hB.js +12 -0
- package/user-71ebdc15-BBKQbcQD.js +14 -0
- package/user-71ebdc15-CoHlCtJg.mjs +17 -0
- package/youtube-efbfbdc4-BLTH1Jl9.js +12 -0
- package/youtube-efbfbdc4-BfySbfjR.mjs +15 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { r, h as e } from "./index-DQrtrXyM.mjs";
|
|
2
|
+
import { e as i } from "./eu-9ddde93a-ft4szvR5.mjs";
|
|
3
|
+
import { h as s } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
4
|
+
import { h as l, a as h, b as C, c as n, v as a, d as c, e as g, f as w, g as d } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
|
|
5
|
+
import { v as p } from "./logo-color-margins-ff8ce71b-B9nMsY9Q.mjs";
|
|
6
|
+
import { g as v } from "./mono-53f70232-DGi2XDlR.mjs";
|
|
7
|
+
import { c as f } from "./chevron-up-c66bd477-CETJkshq.mjs";
|
|
8
|
+
import { c as m } from "./chevron-down-6144c823-DWGlv9eV.mjs";
|
|
9
|
+
import { c as u } from "./chevron-right-b88ed2d4-CgEZBvy7.mjs";
|
|
10
|
+
import { c as L } from "./chevron-left-ca6c66e1-DANhLw_T.mjs";
|
|
11
|
+
import { a as k } from "./arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs";
|
|
12
|
+
import { a as M } from "./arrow-right-9322ba8a-DHq-_PPe.mjs";
|
|
13
|
+
import { t as x } from "./twitter-ac21b505-CGWVGWM9.mjs";
|
|
14
|
+
import { l as b } from "./linkedin-e8650abb-DYMdsale.mjs";
|
|
15
|
+
import { f as B } from "./facebook-9cb5c17f-BcUhbrj6.mjs";
|
|
16
|
+
import { y as Z } from "./youtube-efbfbdc4-BfySbfjR.mjs";
|
|
17
|
+
import { m as H } from "./mastodon-3703ec61-C7iI4Hk0.mjs";
|
|
18
|
+
import { b as y } from "./bluesky-cc5edd2d-DfuDDO5h.mjs";
|
|
19
|
+
import { s as V } from "./search-fbcd79c2-rfV0PlHP.mjs";
|
|
20
|
+
import { l as W } from "./loader-c9628637-ChpnbJkv.mjs";
|
|
21
|
+
import { s as D } from "./success-443809da-BD23vltm.mjs";
|
|
22
|
+
import { c as S } from "./close-87fc0d63-DtDU2HIU.mjs";
|
|
23
|
+
import { m as N } from "./menu-340ea948-BpnYX3gY.mjs";
|
|
24
|
+
import { m as _ } from "./more-4449d549-rI9hOpEp.mjs";
|
|
25
|
+
import { u as z } from "./user-71ebdc15-CoHlCtJg.mjs";
|
|
26
|
+
import { c as R } from "./copy-03b72cb6-B_WCNQrG.mjs";
|
|
27
|
+
const O = ` <svg width="20" height="20" viewBox="0 0 36 36">
|
|
28
|
+
<path fill="#e24329" d="M2 14l9.38 9v-9l-4-12.28c-.205-.632-1.176-.632-1.38 0z"></path>
|
|
29
|
+
<path fill="#e24329" d="M34 14l-9.38 9v-9l4-12.28c.205-.632 1.176-.632 1.38 0z"></path>
|
|
30
|
+
<path fill="#e24329" d="M18,34.38 3,14 33,14 Z"></path>
|
|
31
|
+
<path fill="#fc6d26" d="M18,34.38 11.38,14 2,14 6,25Z"></path>
|
|
32
|
+
<path fill="#fc6d26" d="M18,34.38 24.62,14 34,14 30,25Z"></path>
|
|
33
|
+
<path fill="#fca326" d="M2 14L.1 20.16c-.18.565 0 1.2.5 1.56l17.42 12.66z"></path>
|
|
34
|
+
<path fill="#fca326" d="M34 14l1.9 6.16c.18.565 0 1.2-.5 1.56L18 34.38z"></path>
|
|
35
|
+
</svg>`, j = `<svg
|
|
36
|
+
width="20"
|
|
37
|
+
height="20"
|
|
38
|
+
viewBox="0 0 20 20"
|
|
39
|
+
fill="none"
|
|
40
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
+
>
|
|
42
|
+
<path
|
|
43
|
+
fill-rule="evenodd"
|
|
44
|
+
clip-rule="evenodd"
|
|
45
|
+
d="M10 2C5.57714 2 2 5.57714 2 10C2 14.4229 5.57714 18 10 18C14.4229 18 18 14.4229 18 10C18 5.57714 14.4229 2 10 2Z"
|
|
46
|
+
stroke="currentColor"
|
|
47
|
+
stroke-width="2"
|
|
48
|
+
/>
|
|
49
|
+
<path
|
|
50
|
+
d="M7 7L10 10M13 13L10 10M10 10L13 7M10 10L7 13"
|
|
51
|
+
stroke="currentColor"
|
|
52
|
+
stroke-width="1.5"
|
|
53
|
+
/>
|
|
54
|
+
</svg>`, J = `<svg
|
|
55
|
+
width="20"
|
|
56
|
+
height="20"
|
|
57
|
+
viewBox="0 0 20 20"
|
|
58
|
+
fill="none"
|
|
59
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
+
>
|
|
61
|
+
<circle
|
|
62
|
+
cx="10.0001"
|
|
63
|
+
cy="10.0001"
|
|
64
|
+
r="9.00007"
|
|
65
|
+
fill="white"
|
|
66
|
+
stroke="currentColor"
|
|
67
|
+
stroke-width="2"
|
|
68
|
+
/>
|
|
69
|
+
<path
|
|
70
|
+
d="M6 9.33303L8.9474 12.6664L14.0001 7.33301"
|
|
71
|
+
stroke="currentColor"
|
|
72
|
+
stroke-width="2.00002"
|
|
73
|
+
/>
|
|
74
|
+
</svg>`, U = `<svg
|
|
75
|
+
width="20"
|
|
76
|
+
height="20"
|
|
77
|
+
viewBox="0 0 20 20"
|
|
78
|
+
fill="none"
|
|
79
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
80
|
+
>
|
|
81
|
+
<circle
|
|
82
|
+
cx="10.0001"
|
|
83
|
+
cy="10.0001"
|
|
84
|
+
r="9.00007"
|
|
85
|
+
fill="white"
|
|
86
|
+
stroke="currentColor"
|
|
87
|
+
stroke-width="2"
|
|
88
|
+
/>
|
|
89
|
+
<path
|
|
90
|
+
d="M6.21053 14.0001L10 10M13.7895 6L10 10M10 10L6 6M10 10L14.0001 14.0001"
|
|
91
|
+
stroke="currentColor"
|
|
92
|
+
stroke-width="2.00002"
|
|
93
|
+
/>
|
|
94
|
+
</svg>`, E = ` <svg
|
|
95
|
+
width="20"
|
|
96
|
+
height="20"
|
|
97
|
+
viewBox="0 0 20 20"
|
|
98
|
+
fill="none"
|
|
99
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
100
|
+
>
|
|
101
|
+
<path
|
|
102
|
+
fill-rule="evenodd"
|
|
103
|
+
clip-rule="evenodd"
|
|
104
|
+
d="M10 3C6.13 3 3 6.13 3 10C3 13.87 6.13 17 10 17C13.87 17 17 13.87 17 10C17 6.13 13.87 3 10 3Z"
|
|
105
|
+
stroke="currentColor"
|
|
106
|
+
stroke-width="2"
|
|
107
|
+
/>
|
|
108
|
+
<path d="M10 6V10.5" stroke="currentColor" stroke-width="2" />
|
|
109
|
+
<circle cx="10" cy="12.9209" r="1.40346" fill="currentColor" />
|
|
110
|
+
</svg>`, I = `<svg
|
|
111
|
+
width="20"
|
|
112
|
+
height="20"
|
|
113
|
+
viewBox="0 0 20 20"
|
|
114
|
+
fill="none"
|
|
115
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
116
|
+
>
|
|
117
|
+
<rect width="20" height="20" rx="4" fill="currentColor" />
|
|
118
|
+
<path d="M4 10L8 14L16 6" stroke="white" stroke-width="3" />
|
|
119
|
+
</svg>`, q = ` <svg
|
|
120
|
+
width="20"
|
|
121
|
+
height="20"
|
|
122
|
+
viewBox="0 0 20 20"
|
|
123
|
+
fill="none"
|
|
124
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
125
|
+
>
|
|
126
|
+
<path
|
|
127
|
+
fill-rule="evenodd"
|
|
128
|
+
clip-rule="evenodd"
|
|
129
|
+
d="M2 10C2 5.57714 5.57714 2 10 2C14.4229 2 18 5.57714 18 10C18 14.4229 14.4229 18 10 18C5.57714 18 2 14.4229 2 10ZM6.50503 7.49497L9.01005 10L6.50503 12.505L7.49497 13.495L10 10.99L12.505 13.495L13.495 12.505L10.99 10L13.495 7.49497L12.505 6.50503L10 9.01005L7.49497 6.50503L6.50503 7.49497Z"
|
|
130
|
+
fill="currentColor"
|
|
131
|
+
/>
|
|
132
|
+
</svg>`, A = `<svg
|
|
133
|
+
width="20"
|
|
134
|
+
height="20"
|
|
135
|
+
viewBox="0 0 20 20"
|
|
136
|
+
fill="none"
|
|
137
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
138
|
+
>
|
|
139
|
+
<path
|
|
140
|
+
d="M12 5C10.8954 5 10 5.89543 10 7V17C10 15.8954 10.8954 15 12 15H18V5H12Z"
|
|
141
|
+
stroke="currentColor"
|
|
142
|
+
stroke-width="1.5"
|
|
143
|
+
/>
|
|
144
|
+
<path
|
|
145
|
+
d="M8 5C9.10457 5 10 5.89543 10 7V17C10 15.8954 9.10457 15 8 15H2V5H8Z"
|
|
146
|
+
stroke="currentColor"
|
|
147
|
+
stroke-width="1.5"
|
|
148
|
+
/>
|
|
149
|
+
</svg>`, F = `<svg
|
|
150
|
+
width="20"
|
|
151
|
+
height="20"
|
|
152
|
+
viewBox="0 0 20 20"
|
|
153
|
+
fill="none"
|
|
154
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
155
|
+
>
|
|
156
|
+
<path
|
|
157
|
+
d="M5.91937 8H9V3H11V8H14.0806L10 13.1008L5.91937 8Z"
|
|
158
|
+
fill="currentColor"
|
|
159
|
+
/>
|
|
160
|
+
<path
|
|
161
|
+
d="M5 15V12H3V15C3 16.1046 3.89543 17 5 17H15C16.1046 17 17 16.1046 17 15V12H15V15H5Z"
|
|
162
|
+
fill="currentColor"
|
|
163
|
+
/>
|
|
164
|
+
</svg>`, G = ` <svg
|
|
165
|
+
width="20"
|
|
166
|
+
height="20"
|
|
167
|
+
viewBox="0 0 20 20"
|
|
168
|
+
fill="none"
|
|
169
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
170
|
+
>
|
|
171
|
+
<path
|
|
172
|
+
d="M2 6.5H6M9 6.5H18M18 13.5H14M11 13.5H2"
|
|
173
|
+
stroke="currentColor"
|
|
174
|
+
stroke-width="2"
|
|
175
|
+
/>
|
|
176
|
+
<path
|
|
177
|
+
d="M10 6.5C10 7.88071 8.88071 9 7.5 9C6.11929 9 5 7.88071 5 6.5C5 5.11929 6.11929 4 7.5 4C8.88071 4 10 5.11929 10 6.5Z"
|
|
178
|
+
stroke="currentColor"
|
|
179
|
+
stroke-width="2"
|
|
180
|
+
/>
|
|
181
|
+
<path
|
|
182
|
+
d="M10 13.5C10 14.8807 11.1193 16 12.5 16C13.8807 16 15 14.8807 15 13.5C15 12.1193 13.8807 11 12.5 11C11.1193 11 10 12.1193 10 13.5Z"
|
|
183
|
+
stroke="currentColor"
|
|
184
|
+
stroke-width="2"
|
|
185
|
+
/>
|
|
186
|
+
</svg>`, K = `<svg
|
|
187
|
+
width="20"
|
|
188
|
+
height="20"
|
|
189
|
+
viewBox="0 0 20 20"
|
|
190
|
+
fill="none"
|
|
191
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
192
|
+
>
|
|
193
|
+
<path
|
|
194
|
+
fill-rule="evenodd"
|
|
195
|
+
clip-rule="evenodd"
|
|
196
|
+
d="M6.75 4C6.75 2.20507 8.20507 0.75 10 0.75C11.7949 0.75 13.25 2.20507 13.25 4C13.25 4.02739 13.2497 4.0547 13.249 4.08193C14.372 4.69978 15.3002 5.62799 15.9181 6.75102C15.9453 6.75034 15.9726 6.75 16 6.75C17.7949 6.75 19.25 8.20507 19.25 10C19.25 11.7949 17.7949 13.25 16 13.25C15.9726 13.25 15.9453 13.2497 15.9181 13.249C15.3002 14.372 14.372 15.3002 13.249 15.9181C13.2497 15.9453 13.25 15.9726 13.25 16C13.25 17.7949 11.7949 19.25 10 19.25C8.20507 19.25 6.75 17.7949 6.75 16C6.75 15.9726 6.75034 15.9453 6.75102 15.9181C5.62799 15.3002 4.69978 14.372 4.08193 13.249C4.0547 13.2497 4.02739 13.25 4 13.25C2.20507 13.25 0.75 11.7949 0.75 10C0.75 8.20507 2.20507 6.75 4 6.75C4.02739 6.75 4.0547 6.75034 4.08193 6.75102C4.69978 5.62799 5.62799 4.69978 6.75101 4.08193C6.75034 4.0547 6.75 4.02739 6.75 4ZM10 2.25C9.0335 2.25 8.25 3.0335 8.25 4C8.25 4.9665 9.0335 5.75 10 5.75C10.9665 5.75 11.75 4.9665 11.75 4C11.75 3.0335 10.9665 2.25 10 2.25ZM14.4169 12.839C13.4224 12.2833 12.75 11.2202 12.75 10C12.75 8.77982 13.4224 7.7167 14.4169 7.16096C14.0099 6.52904 13.471 5.99011 12.839 5.58309C12.2833 6.57758 11.2202 7.25 10 7.25C8.77982 7.25 7.7167 6.57759 7.16097 5.5831C6.52904 5.99011 5.99011 6.52904 5.58309 7.16097C6.57758 7.7167 7.25 8.77982 7.25 10C7.25 11.2202 6.57758 12.2833 5.58309 12.839C5.99011 13.471 6.52904 14.0099 7.16096 14.4169C7.7167 13.4224 8.77982 12.75 10 12.75C11.2202 12.75 12.2833 13.4224 12.839 14.4169C13.471 14.0099 14.0099 13.471 14.4169 12.839ZM8.25 16C8.25 15.0335 9.0335 14.25 10 14.25C10.9665 14.25 11.75 15.0335 11.75 16C11.75 16.9665 10.9665 17.75 10 17.75C9.0335 17.75 8.25 16.9665 8.25 16ZM2.25 10C2.25 10.9665 3.0335 11.75 4 11.75C4.9665 11.75 5.75 10.9665 5.75 10C5.75 9.0335 4.9665 8.25 4 8.25C3.0335 8.25 2.25 9.0335 2.25 10ZM16 11.75C15.0335 11.75 14.25 10.9665 14.25 10C14.25 9.0335 15.0335 8.25 16 8.25C16.9665 8.25 17.75 9.0335 17.75 10C17.75 10.9665 16.9665 11.75 16 11.75Z"
|
|
197
|
+
fill="currentColor"
|
|
198
|
+
/>
|
|
199
|
+
</svg>`, P = `<svg
|
|
200
|
+
width="20"
|
|
201
|
+
height="20"
|
|
202
|
+
viewBox="0 0 20 20"
|
|
203
|
+
fill="none"
|
|
204
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
205
|
+
>
|
|
206
|
+
<circle
|
|
207
|
+
cx="10.0001"
|
|
208
|
+
cy="10.0001"
|
|
209
|
+
r="9.00007"
|
|
210
|
+
fill="white"
|
|
211
|
+
stroke="currentColor"
|
|
212
|
+
stroke-width="2"
|
|
213
|
+
/>
|
|
214
|
+
<path
|
|
215
|
+
d="M8.78976 12.086V11.9135C8.79306 11.3215 8.8442 10.8495 8.94319 10.4977C9.04547 10.1458 9.19395 9.86167 9.38863 9.64515C9.5833 9.42864 9.81757 9.23242 10.0914 9.0565C10.296 8.92118 10.4791 8.78078 10.6408 8.63531C10.8025 8.48984 10.9312 8.32915 11.0268 8.15323C11.1225 7.97392 11.1704 7.77433 11.1704 7.55443C11.1704 7.321 11.1159 7.11632 11.0071 6.9404C10.8982 6.76448 10.7513 6.62916 10.5666 6.53444C10.3851 6.43971 10.1838 6.39235 9.96275 6.39235C9.74828 6.39235 9.54536 6.4414 9.35398 6.53951C9.16261 6.63424 9.00588 6.77632 8.8838 6.96578C8.76171 7.15184 8.69572 7.38358 8.68582 7.66099H6.6665C6.683 6.98438 6.84138 6.42618 7.14164 5.98638C7.4419 5.5432 7.83949 5.21336 8.33442 4.99684C8.82935 4.77694 9.37543 4.66699 9.97265 4.66699C10.6293 4.66699 11.21 4.77863 11.7148 5.00191C12.2196 5.22181 12.6156 5.54151 12.9026 5.96101C13.1897 6.38051 13.3332 6.88627 13.3332 7.47831C13.3332 7.87412 13.2689 8.22596 13.1402 8.53382C13.0148 8.83829 12.8383 9.10894 12.6106 9.34575C12.383 9.57918 12.114 9.79062 11.8039 9.98007C11.5432 10.1391 11.3288 10.3048 11.1605 10.4774C10.9955 10.6499 10.8718 10.8495 10.7893 11.0762C10.7101 11.3028 10.6688 11.5819 10.6655 11.9135V12.086H8.78976ZM9.76972 15.3338C9.43977 15.3338 9.15766 15.2153 8.92339 14.9785C8.69242 14.7383 8.57859 14.4508 8.58189 14.1159C8.57859 13.7843 8.69242 13.5001 8.92339 13.2633C9.15766 13.0265 9.43977 12.9081 9.76972 12.9081C10.0832 12.9081 10.3587 13.0265 10.5963 13.2633C10.8338 13.5001 10.9543 13.7843 10.9576 14.1159C10.9543 14.3391 10.8965 14.5438 10.7843 14.7299C10.6754 14.9126 10.5319 15.0597 10.3537 15.1714C10.1756 15.2796 9.98089 15.3338 9.76972 15.3338Z"
|
|
216
|
+
fill="currentColor"
|
|
217
|
+
/>
|
|
218
|
+
</svg>`, Q = /* @__PURE__ */ Object.freeze({
|
|
219
|
+
__proto__: null,
|
|
220
|
+
twitter: x,
|
|
221
|
+
linkedin: b,
|
|
222
|
+
facebook: B,
|
|
223
|
+
youtube: Z,
|
|
224
|
+
mastodon: H,
|
|
225
|
+
bluesky: y,
|
|
226
|
+
euSvg: i,
|
|
227
|
+
arrowRight: M,
|
|
228
|
+
arrowDiagonal: k,
|
|
229
|
+
chevronUp: f,
|
|
230
|
+
chevronDown: m,
|
|
231
|
+
chevronRight: u,
|
|
232
|
+
chevronLeft: L,
|
|
233
|
+
check: I,
|
|
234
|
+
clear: q,
|
|
235
|
+
close: S,
|
|
236
|
+
completed: J,
|
|
237
|
+
copy: R,
|
|
238
|
+
documentation: A,
|
|
239
|
+
download: F,
|
|
240
|
+
error: j,
|
|
241
|
+
gitlabColor: O,
|
|
242
|
+
gitlabBlack: v,
|
|
243
|
+
loader: W,
|
|
244
|
+
hLogoColor: s,
|
|
245
|
+
hLogoBlack: l,
|
|
246
|
+
hLogoColorWhite: h,
|
|
247
|
+
hLogoWhite: C,
|
|
248
|
+
hLogoWhiteNoBg: n,
|
|
249
|
+
vLogoColor: a,
|
|
250
|
+
vLogoBlack: c,
|
|
251
|
+
vLogoColorWhite: g,
|
|
252
|
+
vLogoWhite: w,
|
|
253
|
+
vLogoWhiteNoBg: d,
|
|
254
|
+
vLogoMargins: p,
|
|
255
|
+
menu: N,
|
|
256
|
+
more: _,
|
|
257
|
+
failed: U,
|
|
258
|
+
filter: G,
|
|
259
|
+
group: K,
|
|
260
|
+
user: z,
|
|
261
|
+
search: V,
|
|
262
|
+
success: D,
|
|
263
|
+
warning: E,
|
|
264
|
+
unknown: P
|
|
265
|
+
}), M1 = class {
|
|
266
|
+
constructor(o) {
|
|
267
|
+
r(this, o);
|
|
268
|
+
}
|
|
269
|
+
// Convert SVG data to a format usable by `eds-table`
|
|
270
|
+
getSvgData() {
|
|
271
|
+
return Object.entries(Q).filter(([o]) => !o.toLowerCase().includes("logo") && !o.toLowerCase().includes("eu")).map(([o, t]) => ({
|
|
272
|
+
name: o,
|
|
273
|
+
icon: t
|
|
274
|
+
// Pass SVG content as innerHTML
|
|
275
|
+
}));
|
|
276
|
+
}
|
|
277
|
+
render() {
|
|
278
|
+
const o = this.getSvgData(), t = {
|
|
279
|
+
icon: { format: "svg" },
|
|
280
|
+
name: { format: "bold" }
|
|
281
|
+
};
|
|
282
|
+
return e("eds-table", { key: "d5b4cdb69826e22d716bf9bf4ff7fb9ab1f65044", data: JSON.stringify(o), config: JSON.stringify(t), "rows-per-page": 10, "search-enabled": !0, "pagination-enabled": !0 });
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
export {
|
|
286
|
+
M1 as eds_svg_repository
|
|
287
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { r as e, h as t } from "./index-DQrtrXyM.mjs";
|
|
2
|
+
import { c as r } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
3
|
+
const n = class {
|
|
4
|
+
constructor(a) {
|
|
5
|
+
e(this, a), this.tabCva = r([
|
|
6
|
+
"cursor-pointer",
|
|
7
|
+
//'px-16 py-12',
|
|
8
|
+
//'border-b-2',
|
|
9
|
+
"text-gray-700",
|
|
10
|
+
"hover:text-black",
|
|
11
|
+
"focus:outline-none",
|
|
12
|
+
"focus-visible:ring"
|
|
13
|
+
], {
|
|
14
|
+
variants: {
|
|
15
|
+
active: {
|
|
16
|
+
true: "border-blue-500 font-bold text-blue-600",
|
|
17
|
+
false: "border-transparent"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
active: !1
|
|
22
|
+
}
|
|
23
|
+
}), this.label = void 0, this.url = void 0, this.active = !1, this.ariaLabel = void 0;
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return t("a", { key: "ba4c995637d8d305249f018a0451775f45907716", "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
n as eds_tab
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BGGkUjck.js"),a=require("./index-39c58238-SQ-JC-LH.js"),i=class{constructor(t){e.registerInstance(this,t),this.tabCva=a.cva(["cursor-pointer","text-gray-700","hover:text-black","focus:outline-none","focus-visible:ring"],{variants:{active:{true:"border-blue-500 font-bold text-blue-600",false:"border-transparent"}},defaultVariants:{active:!1}}),this.label=void 0,this.url=void 0,this.active=!1,this.ariaLabel=void 0}render(){return e.h("a",{key:"ba4c995637d8d305249f018a0451775f45907716","aria-label":this.label,"aria-current":this.active,class:this.tabCva({active:this.active})},this.label)}};exports.eds_tab=i;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { r as d, h as a, g as l } from "./index-DQrtrXyM.mjs";
|
|
2
|
+
const h = "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}", c = h, g = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
d(this, t), this.minWidth = 400, this.data = null, this.endpoint = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.tableData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "";
|
|
5
|
+
}
|
|
6
|
+
handleDataChange() {
|
|
7
|
+
this.parseData();
|
|
8
|
+
}
|
|
9
|
+
handleConfigChange() {
|
|
10
|
+
this.parseConfig();
|
|
11
|
+
}
|
|
12
|
+
componentWillLoad() {
|
|
13
|
+
this.parseConfig(), this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
14
|
+
}
|
|
15
|
+
componentDidLoad() {
|
|
16
|
+
this.setupPaginationListener();
|
|
17
|
+
}
|
|
18
|
+
componentDidUpdate() {
|
|
19
|
+
this.setupPaginationListener();
|
|
20
|
+
}
|
|
21
|
+
parseData() {
|
|
22
|
+
try {
|
|
23
|
+
this.tableData = typeof this.data == "string" ? JSON.parse(this.data) : this.data || [], this.totalRows = this.tableData.length, this.updateColumns(), this.currentPage = 1;
|
|
24
|
+
} catch (t) {
|
|
25
|
+
console.error("Failed to parse data:", t), this.tableData = [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
parseConfig() {
|
|
29
|
+
try {
|
|
30
|
+
this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
|
|
31
|
+
} catch (t) {
|
|
32
|
+
console.error("Failed to parse config:", t), this.parsedConfig = {};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async fetchData() {
|
|
36
|
+
try {
|
|
37
|
+
const e = await (await fetch(this.endpoint)).json();
|
|
38
|
+
this.data = e;
|
|
39
|
+
} catch (t) {
|
|
40
|
+
console.error("Failed to fetch data:", t);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
setupPaginationListener() {
|
|
44
|
+
if (!this.shouldEnablePagination())
|
|
45
|
+
return;
|
|
46
|
+
const t = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
47
|
+
t && !t.hasAttribute("listener-attached") && (t.addEventListener("pageChange", (e) => this.handlePageChange(e.detail)), t.setAttribute("listener-attached", "true"));
|
|
48
|
+
}
|
|
49
|
+
getFilteredRows() {
|
|
50
|
+
return this.tableData.filter((t) => Object.values(t).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
51
|
+
}
|
|
52
|
+
getPaginatedRows() {
|
|
53
|
+
const t = this.getFilteredRows();
|
|
54
|
+
this.totalRows = t.length;
|
|
55
|
+
const e = (this.currentPage - 1) * this.rowsPerPage;
|
|
56
|
+
return t.slice(e, e + this.rowsPerPage);
|
|
57
|
+
}
|
|
58
|
+
handlePageChange(t) {
|
|
59
|
+
this.currentPage = t;
|
|
60
|
+
}
|
|
61
|
+
handleSearch(t) {
|
|
62
|
+
this.searchQuery = t.target.value, this.currentPage = 1;
|
|
63
|
+
}
|
|
64
|
+
renderCell(t, e) {
|
|
65
|
+
var n;
|
|
66
|
+
const i = (n = this.parsedConfig[e]) === null || n === void 0 ? void 0 : n.format;
|
|
67
|
+
return i === "uppercase" ? t == null ? void 0 : t.toString().toUpperCase() : i === "svg" ? a("div", { innerHTML: t }) : i === "bold" ? a("strong", null, t) : i === "code" ? a("code", null, t) : t;
|
|
68
|
+
}
|
|
69
|
+
shouldEnablePagination() {
|
|
70
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
71
|
+
}
|
|
72
|
+
updateColumns() {
|
|
73
|
+
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
74
|
+
}
|
|
75
|
+
getVisibleColumnsCount() {
|
|
76
|
+
return this.columns.filter((t) => {
|
|
77
|
+
var e;
|
|
78
|
+
return !(!((e = this.parsedConfig[t]) === null || e === void 0) && e.hidden);
|
|
79
|
+
}).length;
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const t = this.getPaginatedRows(), e = Math.ceil(this.totalRows / this.rowsPerPage), n = this.getVisibleColumnsCount(), i = n > 0 ? Math.max(this.minWidth / n, 100) : 100;
|
|
83
|
+
return a("div", { key: "c5e50673eb1ed5cf00e0294885bf9cd6d13f9366", class: "container", style: { minWidth: `${this.minWidth}px` } }, a("div", { key: "0e0814a8cb5ae1e11538a26cba630e59d39dde74" }, this.searchEnabled && a("eds-input-field", {
|
|
84
|
+
key: 1,
|
|
85
|
+
name: "search",
|
|
86
|
+
"aria-label": "Search",
|
|
87
|
+
type: "text",
|
|
88
|
+
placeholder: "Search...",
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
onInput: (s) => this.handleSearch(s)
|
|
91
|
+
})), a("div", { key: "65e0c9057c313f220655ecd7692a83c932f441b3", class: "mt-20" }, a("table", { key: "9e77153c2e0983f7598a21ef55ebcf3107655e09", class: "block overflow-x-auto mt-6 p-0" }, a("thead", { key: "38e5ac67ffae80d896c29357615d19b5dfcc52d3" }, a("tr", { key: "526c5b30da0a2aa97bb90f5b473b3e9ea41dde6b", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((s) => {
|
|
92
|
+
var r;
|
|
93
|
+
return !(!((r = this.parsedConfig[s]) === null || r === void 0) && r.hidden) && a("th", { class: "m-0 px-20 py-8 border border-softer f-ui-02", style: { minWidth: `${i}px` } }, s);
|
|
94
|
+
}))), a("tbody", { key: "5a10525ed86eac82291746be4c6cce5f65942d2d" }, t.map((s) => a("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
|
|
95
|
+
var o;
|
|
96
|
+
return !(!((o = this.parsedConfig[r]) === null || o === void 0) && o.hidden) && a("td", { class: "text-center border border-softer m-0 px-20 py-8 f-ui-2", style: { minWidth: `${i}px` } }, this.renderCell(s[r], r));
|
|
97
|
+
})))))), a("div", { key: "af1183fd3e635c7d7ac982231adfdd9d892f6979", class: "mt-20" }, this.shouldEnablePagination() && a("eds-pagination", { key: "a5de7f25054c2d67f0788bfd2bc37d07f46de02c", currentPage: this.currentPage, lastPage: e, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
98
|
+
}
|
|
99
|
+
get hostEl() {
|
|
100
|
+
return l(this);
|
|
101
|
+
}
|
|
102
|
+
static get watchers() {
|
|
103
|
+
return {
|
|
104
|
+
data: ["handleDataChange"],
|
|
105
|
+
config: ["handleConfigChange"]
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
g.style = c;
|
|
110
|
+
export {
|
|
111
|
+
g as eds_table
|
|
112
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BGGkUjck.js"),h="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}",l=h,d=class{constructor(e){t.registerInstance(this,e),this.minWidth=400,this.data=null,this.endpoint=null,this.config={},this.rowsPerPage=10,this.paginationEnabled=!0,this.searchEnabled=!1,this.tableData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery=""}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}parseData(){try{this.tableData=typeof this.data=="string"?JSON.parse(this.data):this.data||[],this.totalRows=this.tableData.length,this.updateColumns(),this.currentPage=1}catch(e){console.error("Failed to parse data:",e),this.tableData=[]}}parseConfig(){try{this.parsedConfig=typeof this.config=="string"?JSON.parse(this.config):this.config}catch(e){console.error("Failed to parse config:",e),this.parsedConfig={}}}async fetchData(){try{const a=await(await fetch(this.endpoint)).json();this.data=a}catch(e){console.error("Failed to fetch data:",e)}}setupPaginationListener(){if(!this.shouldEnablePagination())return;const e=this.hostEl.shadowRoot.querySelector("eds-pagination");e&&!e.hasAttribute("listener-attached")&&(e.addEventListener("pageChange",a=>this.handlePageChange(a.detail)),e.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tableData.filter(e=>Object.values(e).some(a=>a.toString().toLowerCase().includes(this.searchQuery.toLowerCase())))}getPaginatedRows(){const e=this.getFilteredRows();this.totalRows=e.length;const a=(this.currentPage-1)*this.rowsPerPage;return e.slice(a,a+this.rowsPerPage)}handlePageChange(e){this.currentPage=e}handleSearch(e){this.searchQuery=e.target.value,this.currentPage=1}renderCell(e,a){var n;const i=(n=this.parsedConfig[a])===null||n===void 0?void 0:n.format;return i==="uppercase"?e==null?void 0:e.toString().toUpperCase():i==="svg"?t.h("div",{innerHTML:e}):i==="bold"?t.h("strong",null,e):i==="code"?t.h("code",null,e):e}shouldEnablePagination(){return this.paginationEnabled&&this.totalRows>this.rowsPerPage}updateColumns(){this.columns=this.tableData.length>0?Object.keys(this.tableData[0]):[]}getVisibleColumnsCount(){return this.columns.filter(e=>{var a;return!(!((a=this.parsedConfig[e])===null||a===void 0)&&a.hidden)}).length}render(){const e=this.getPaginatedRows(),a=Math.ceil(this.totalRows/this.rowsPerPage),n=this.getVisibleColumnsCount(),i=n>0?Math.max(this.minWidth/n,100):100;return t.h("div",{key:"c5e50673eb1ed5cf00e0294885bf9cd6d13f9366",class:"container",style:{minWidth:`${this.minWidth}px`}},t.h("div",{key:"0e0814a8cb5ae1e11538a26cba630e59d39dde74"},this.searchEnabled&&t.h("eds-input-field",{key:1,name:"search","aria-label":"Search",type:"text",placeholder:"Search...",onInput:s=>this.handleSearch(s)})),t.h("div",{key:"65e0c9057c313f220655ecd7692a83c932f441b3",class:"mt-20"},t.h("table",{key:"9e77153c2e0983f7598a21ef55ebcf3107655e09",class:"block overflow-x-auto mt-6 p-0"},t.h("thead",{key:"38e5ac67ffae80d896c29357615d19b5dfcc52d3"},t.h("tr",{key:"526c5b30da0a2aa97bb90f5b473b3e9ea41dde6b",class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(s=>{var r;return!(!((r=this.parsedConfig[s])===null||r===void 0)&&r.hidden)&&t.h("th",{class:"m-0 px-20 py-8 border border-softer f-ui-02",style:{minWidth:`${i}px`}},s)}))),t.h("tbody",{key:"5a10525ed86eac82291746be4c6cce5f65942d2d"},e.map(s=>t.h("tr",{class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(r=>{var o;return!(!((o=this.parsedConfig[r])===null||o===void 0)&&o.hidden)&&t.h("td",{class:"text-center border border-softer m-0 px-20 py-8 f-ui-2",style:{minWidth:`${i}px`}},this.renderCell(s[r],r))})))))),t.h("div",{key:"af1183fd3e635c7d7ac982231adfdd9d892f6979",class:"mt-20"},this.shouldEnablePagination()&&t.h("eds-pagination",{key:"a5de7f25054c2d67f0788bfd2bc37d07f46de02c",currentPage:this.currentPage,lastPage:a,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return t.getElement(this)}static get watchers(){return{data:["handleDataChange"],config:["handleConfigChange"]}}};d.style=l;exports.eds_table=d;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { r, c as n, h as s, g as o } from "./index-DQrtrXyM.mjs";
|
|
2
|
+
import { s as l } from "./color-0ba8ed56-D-UJpBQL.mjs";
|
|
3
|
+
import { c as b } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
4
|
+
const h = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
r(this, e), this.tabContentChange = n(this, "tabContentChange", 7), this.tabCva = b([
|
|
7
|
+
"relative px-16 py-12",
|
|
8
|
+
"f-ui-03 whitespace-nowrap",
|
|
9
|
+
"effect-color",
|
|
10
|
+
"focus-visible:text-default hover:text-default",
|
|
11
|
+
"border-2",
|
|
12
|
+
"after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:border-3 after:border-accent after:opacity-0",
|
|
13
|
+
"outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100"
|
|
14
|
+
], {
|
|
15
|
+
variants: {
|
|
16
|
+
position: {
|
|
17
|
+
left: "rounded-tl-lg border-r-0 pr-28 -mr-16 after:right-16",
|
|
18
|
+
right: "rounded-tr-lg border-l-0 pl-28 -ml-16 after:left-16",
|
|
19
|
+
center: "",
|
|
20
|
+
first: "rounded-t-lg"
|
|
21
|
+
},
|
|
22
|
+
active: {
|
|
23
|
+
false: "text-lighter bg-dark hover:bg-darker border-softest",
|
|
24
|
+
true: [
|
|
25
|
+
"bg-default text-default z-99",
|
|
26
|
+
"rounded-t-lg",
|
|
27
|
+
"before:content-[''] before:absolute before:-bottom-2 z-1 before:inset-x-0 before:h-3 before:bg-default",
|
|
28
|
+
"border-[#d2d2d2]"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}), this.navAriaLabel = "Tabs", this.tabs = void 0, this.parsedTabs = [], this.activeIndex = -1;
|
|
33
|
+
}
|
|
34
|
+
componentWillLoad() {
|
|
35
|
+
this.parseTabs(), this.setActiveIndex();
|
|
36
|
+
}
|
|
37
|
+
parseTabs() {
|
|
38
|
+
try {
|
|
39
|
+
this.parsedTabs = JSON.parse(this.tabs);
|
|
40
|
+
} catch {
|
|
41
|
+
this.parsedTabs = [];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
componentDidLoad() {
|
|
45
|
+
this.initializeTabContentVisibility(), this.el.addEventListener("tabContentChange", (e) => {
|
|
46
|
+
this.updateTabContentVisibility(e.detail.index);
|
|
47
|
+
}), this.scrollToActiveTab();
|
|
48
|
+
}
|
|
49
|
+
initializeTabContentVisibility() {
|
|
50
|
+
this.el.querySelectorAll(".tab-content").forEach((t, a) => {
|
|
51
|
+
t.setAttribute("style", `display: ${a === this.activeIndex ? "block" : "none"}`);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
updateTabContentVisibility(e) {
|
|
55
|
+
this.el.querySelectorAll(".tab-content").forEach((a, i) => {
|
|
56
|
+
a.setAttribute("style", `display: ${i === e ? "block" : "none"}`);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
setActiveIndex() {
|
|
60
|
+
this.activeIndex = this.parsedTabs.findIndex((e) => e.active);
|
|
61
|
+
}
|
|
62
|
+
scrollToActiveTab() {
|
|
63
|
+
var e;
|
|
64
|
+
const t = (e = this.tabContainer) === null || e === void 0 ? void 0 : e.querySelector("[data-tab-active]");
|
|
65
|
+
t && setTimeout(() => {
|
|
66
|
+
t.scrollIntoView({
|
|
67
|
+
inline: "center",
|
|
68
|
+
block: "nearest"
|
|
69
|
+
});
|
|
70
|
+
}, 316);
|
|
71
|
+
}
|
|
72
|
+
getTabOptions(e, t) {
|
|
73
|
+
const a = e ? "center" : this.activeIndex === -1 && t === 0 ? "first" : t < this.activeIndex ? "left" : "right";
|
|
74
|
+
return Object.assign({ class: this.tabCva({
|
|
75
|
+
active: e,
|
|
76
|
+
position: a
|
|
77
|
+
}), style: {
|
|
78
|
+
zIndex: `${e ? this.parsedTabs.length + 99 : a === "left" ? t : this.parsedTabs.length + 1 - t}`
|
|
79
|
+
} }, e ? { "data-tab-active": "true" } : {});
|
|
80
|
+
}
|
|
81
|
+
handleTabClick(e, t) {
|
|
82
|
+
this.activeIndex = e, this.parsedTabs = this.parsedTabs.map((a, i) => Object.assign(Object.assign({}, a), { active: i === e })), this.tabContentChange.emit({ index: e, name: t }), l({
|
|
83
|
+
category: "ui-component",
|
|
84
|
+
tag: this.el.tagName.toLowerCase(),
|
|
85
|
+
name: (t == null ? void 0 : t.toLowerCase()) || "",
|
|
86
|
+
action: "click"
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return s("div", { key: "b1bfb55fbdee21a10fcc600d4c3ce2842684c519", 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-['']" }, s("div", { key: "1d1aeb094b6c350355abec1bf74928561a1c0f2d", class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, s("nav", { key: "5d5b04ddf5ddb60c2a9b49d19f4efe026cc2557d", ref: (e) => this.tabContainer = e, class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((e, t) => {
|
|
91
|
+
const a = this.getTabOptions(e.active, t);
|
|
92
|
+
return s("eds-tab", Object.assign({}, a, { label: e.label, url: e.url, active: t === this.activeIndex, ariaLabel: e.ariaLabel, onClick: () => this.handleTabClick(t, e.label) }));
|
|
93
|
+
})), s("slot", { key: "58e9281516d0a4485ba0779f9b79c0fa5e989166" })));
|
|
94
|
+
}
|
|
95
|
+
get el() {
|
|
96
|
+
return o(this);
|
|
97
|
+
}
|
|
98
|
+
static get watchers() {
|
|
99
|
+
return {
|
|
100
|
+
tabs: ["parseTabs"]
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
h as eds_tabs_content
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-BGGkUjck.js"),r=require("./color-0ba8ed56-BVeDdJAE.js"),n=require("./index-39c58238-SQ-JC-LH.js"),o=class{constructor(e){i.registerInstance(this,e),this.tabContentChange=i.createEvent(this,"tabContentChange",7),this.tabCva=n.cva(["relative px-16 py-12","f-ui-03 whitespace-nowrap","effect-color","focus-visible:text-default hover:text-default","border-2","after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:border-3 after:border-accent after:opacity-0","outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100"],{variants:{position:{left:"rounded-tl-lg border-r-0 pr-28 -mr-16 after:right-16",right:"rounded-tr-lg border-l-0 pl-28 -ml-16 after:left-16",center:"",first:"rounded-t-lg"},active:{false:"text-lighter bg-dark hover:bg-darker border-softest",true:["bg-default text-default z-99","rounded-t-lg","before:content-[''] before:absolute before:-bottom-2 z-1 before:inset-x-0 before:h-3 before:bg-default","border-[#d2d2d2]"]}}}),this.navAriaLabel="Tabs",this.tabs=void 0,this.parsedTabs=[],this.activeIndex=-1}componentWillLoad(){this.parseTabs(),this.setActiveIndex()}parseTabs(){try{this.parsedTabs=JSON.parse(this.tabs)}catch{this.parsedTabs=[]}}componentDidLoad(){this.initializeTabContentVisibility(),this.el.addEventListener("tabContentChange",e=>{this.updateTabContentVisibility(e.detail.index)}),this.scrollToActiveTab()}initializeTabContentVisibility(){this.el.querySelectorAll(".tab-content").forEach((t,a)=>{t.setAttribute("style",`display: ${a===this.activeIndex?"block":"none"}`)})}updateTabContentVisibility(e){this.el.querySelectorAll(".tab-content").forEach((a,s)=>{a.setAttribute("style",`display: ${s===e?"block":"none"}`)})}setActiveIndex(){this.activeIndex=this.parsedTabs.findIndex(e=>e.active)}scrollToActiveTab(){var e;const t=(e=this.tabContainer)===null||e===void 0?void 0:e.querySelector("[data-tab-active]");t&&setTimeout(()=>{t.scrollIntoView({inline:"center",block:"nearest"})},316)}getTabOptions(e,t){const a=e?"center":this.activeIndex===-1&&t===0?"first":t<this.activeIndex?"left":"right";return Object.assign({class:this.tabCva({active:e,position:a}),style:{zIndex:`${e?this.parsedTabs.length+99:a==="left"?t:this.parsedTabs.length+1-t}`}},e?{"data-tab-active":"true"}:{})}handleTabClick(e,t){this.activeIndex=e,this.parsedTabs=this.parsedTabs.map((a,s)=>Object.assign(Object.assign({},a),{active:s===e})),this.tabContentChange.emit({index:e,name:t}),r.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:(t==null?void 0:t.toLowerCase())||"",action:"click"})}render(){return i.h("div",{key:"b1bfb55fbdee21a10fcc600d4c3ce2842684c519",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-['']"},i.h("div",{key:"1d1aeb094b6c350355abec1bf74928561a1c0f2d",class:"scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28"},i.h("nav",{key:"5d5b04ddf5ddb60c2a9b49d19f4efe026cc2557d",ref:e=>this.tabContainer=e,class:"inline-flex","aria-label":this.navAriaLabel},this.parsedTabs.map((e,t)=>{const a=this.getTabOptions(e.active,t);return i.h("eds-tab",Object.assign({},a,{label:e.label,url:e.url,active:t===this.activeIndex,ariaLabel:e.ariaLabel,onClick:()=>this.handleTabClick(t,e.label)}))})),i.h("slot",{key:"58e9281516d0a4485ba0779f9b79c0fa5e989166"})))}get el(){return i.getElement(this)}static get watchers(){return{tabs:["parseTabs"]}}};exports.eds_tabs_content=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-BGGkUjck.js"),o=require("./color-0ba8ed56-BVeDdJAE.js"),n=require("./index-39c58238-SQ-JC-LH.js"),l="",b=l,r=class{constructor(e){a.registerInstance(this,e),this.tabChange=a.createEvent(this,"tabChange",7),this.tabCva=n.cva(["relative px-16 py-12","f-ui-03 whitespace-nowrap","effect-color","focus-visible:text-default hover:text-default","border-2","after:content-[''] after:absolute after:inset-0 after:rounded-t-lg after:border-3 after:border-accent after:opacity-0","outline-none focus:outline-none focus-visible:outline-none focus-visible:after:opacity-100"],{variants:{position:{left:"rounded-tl-lg border-r-0 pr-28 -mr-16 after:right-16",right:"rounded-tr-lg border-l-0 pl-28 -ml-16 after:left-16",center:"",first:"rounded-t-lg"},active:{false:"text-lighter bg-dark hover:bg-darker border-softest",true:["bg-default text-default z-99","rounded-t-lg","before:content-[''] before:absolute before:-bottom-2 z-1 before:inset-x-0 before:h-3 before:bg-default","border-[#d2d2d2]"]}}}),this.id=void 0,this.navAriaLabel="Tabs",this.tabs=void 0,this.parsedTabs=[],this.activeIndex=-1}componentWillLoad(){this.parseTabs(),this.setActiveIndex(),this.tabChange.emit({tabId:this.id,index:0})}parseTabs(){try{this.parsedTabs=JSON.parse(this.tabs)}catch{this.parsedTabs=[]}}componentDidLoad(){this.scrollToActiveTab()}setActiveIndex(){this.activeIndex=this.parsedTabs.findIndex(e=>e.active)}scrollToActiveTab(){var e;const t=(e=this.tabContainer)===null||e===void 0?void 0:e.querySelector("[data-tab-active]");t&&setTimeout(()=>{t.scrollIntoView({inline:"center",block:"nearest"})},316)}getTabOptions(e,t){const s=e?"center":this.activeIndex===-1&&t===0?"first":t<this.activeIndex?"left":"right";return Object.assign({class:this.tabCva({active:e,position:s}),style:{zIndex:`${e?this.parsedTabs.length+99:s==="left"?t:this.parsedTabs.length+1-t}`}},e?{"data-tab-active":"true"}:{})}handleTabClick(e,t){this.activeIndex=e,this.parsedTabs=this.parsedTabs.map((s,i)=>Object.assign(Object.assign({},s),{active:i===e})),this.tabChange.emit({tabId:this.id,index:e,name:t}),o.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:(t==null?void 0:t.toLowerCase())||"",action:"click"})}render(){return a.h("div",{key:"25078703609dbdaa2025013d0e266b169c880c50",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-['']"},a.h("div",{key:"8aa1b4ab1f15692c912db3ee39486a59d634c6a5",class:"scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28"},a.h("nav",{key:"33728823ca0f039e1037a691da90b295cbe3f3ac",ref:e=>this.tabContainer=e,class:"inline-flex","aria-label":this.navAriaLabel},this.parsedTabs.map((e,t)=>{const s=this.getTabOptions(e.active,t);return a.h("eds-tab",Object.assign({},s,{label:e.label||e.ariaLabel,url:e.url,active:t===this.activeIndex,onClick:()=>this.handleTabClick(t,e.label)}))}))))}get el(){return a.getElement(this)}static get watchers(){return{tabs:["parseTabs"]}}};r.style=b;exports.eds_tabs=r;
|