@ebrains/vue 0.3.0-alpha.0 → 0.5.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/analytics-1cde8e4a-BDRcCMlV.mjs +24 -0
- package/analytics-1cde8e4a-B_MD-9qW.js +1 -0
- package/color-2554aad6-CCcV5UJZ.mjs +131 -0
- package/color-2554aad6-D1hFGX4H.js +1 -0
- package/{color-primary-palette_6.entry-WwN9tuB9.mjs → color-primary-palette_6.entry-CgeStD0V.mjs} +21 -21
- package/color-primary-palette_6.entry-c_K7930i.js +1 -0
- package/correct-use-of-colors.entry-De5Tcxdm.mjs +59 -0
- package/correct-use-of-colors.entry-DpmXW_CD.js +1 -0
- package/{eds-accordion.entry-RvtdAQT0.mjs → eds-accordion.entry-B8TjhnWX.mjs} +19 -28
- package/eds-accordion.entry-BySfMYU2.js +4 -0
- package/{eds-avatar_17.entry-BQZz43q9.js → eds-alert_17.entry-BfpBSBVW.js} +572 -113
- package/{eds-avatar_17.entry-08AUpBqo.mjs → eds-alert_17.entry-IJq6baZd.mjs} +897 -452
- package/eds-avatar_4.entry-B7CV7v_n.mjs +283 -0
- package/eds-avatar_4.entry-D1CDRW_R.js +149 -0
- package/eds-card-generic.entry-BhLK-nyp.js +1 -0
- package/{eds-card-generic.entry-0IAAHjtS.mjs → eds-card-generic.entry-DIHPUjbI.mjs} +4 -4
- package/{eds-card-project.entry-Ckgpwy2Y.mjs → eds-card-project.entry-C2dWgXXW.mjs} +12 -11
- package/eds-card-project.entry-CunHqbYK.js +1 -0
- package/{eds-card-section.entry-B90kv8Pj.js → eds-card-section.entry-0n2V-MH6.js} +1 -1
- package/{eds-card-section.entry-DnktDeDm.mjs → eds-card-section.entry-Ccjil38X.mjs} +4 -4
- package/eds-card-tags.entry-C6jjLiGA.mjs +13 -0
- package/eds-card-tags.entry-CQS5AtAg.js +1 -0
- package/{eds-card-tool.entry-CmRu6pmc.mjs → eds-card-tool.entry-Bi8w0xds.mjs} +7 -7
- package/eds-card-tool.entry-DJA23zJf.js +1 -0
- package/{eds-card-wrapper.entry-rBHdbwzh.js → eds-card-wrapper.entry-BKPCc7ci.js} +1 -1
- package/{eds-card-wrapper.entry-Buesg37A.mjs → eds-card-wrapper.entry-UPnkq2JI.mjs} +4 -4
- package/{eds-code-block.entry-DKnuVY85.mjs → eds-code-block.entry-BZTLGjqq.mjs} +50 -9
- package/{eds-code-block.entry-M3x0FsRB.js → eds-code-block.entry-Ckb3jisn.js} +3 -3
- package/{eds-components-section.entry-BEBky2Me.js → eds-components-section.entry-B3WrdIfL.js} +45 -36
- package/{eds-components-section.entry-BAWU9rKy.mjs → eds-components-section.entry-D1ovrn93.mjs} +56 -37
- package/{eds-docs-palettes.entry-D3DdXkoo.js → eds-docs-palettes.entry-Bk77Xn04.js} +1 -1
- package/{eds-docs-palettes.entry-etHagd2P.mjs → eds-docs-palettes.entry-lpT0ypSs.mjs} +2 -2
- package/{eds-docs-tokens.entry-CIGNTs97.mjs → eds-docs-tokens.entry-Bi35zxEM.mjs} +2 -2
- package/{eds-docs-tokens.entry--gW4Z293.js → eds-docs-tokens.entry-DCHw-jrS.js} +1 -1
- package/eds-dropdown_2.entry-Bamjbo1o.mjs +115 -0
- package/eds-dropdown_2.entry-YEBzyKJu.js +1 -0
- package/{eds-form.entry-D8FLPsaS.js → eds-form.entry-a52cYx3b.js} +2 -2
- package/{eds-form.entry-zewjTpaa.mjs → eds-form.entry-xm937wbh.mjs} +113 -92
- package/{eds-frame.entry-BlOnLCrI.js → eds-frame.entry-BnT9nQwa.js} +1 -1
- package/{eds-frame.entry-SCGm_pju.mjs → eds-frame.entry-CU7GoLj6.mjs} +2 -2
- package/eds-icon-arrow-diagonal.entry-fzsCJiPP.js +1 -0
- package/eds-icon-arrow-diagonal.entry-kClkB8LF.mjs +13 -0
- package/eds-icon-arrow-right.entry-B75Ra6OD.js +1 -0
- package/eds-icon-arrow-right.entry-DX6A-VKL.mjs +13 -0
- package/{eds-icon-bluesky.entry-BDD9os2p.js → eds-icon-bluesky.entry-7tzCZSoL.js} +1 -1
- package/eds-icon-bluesky.entry-BNSdVu2K.mjs +13 -0
- package/eds-icon-chevron-down.entry-BLvZ3e_N.mjs +13 -0
- package/{eds-icon-chevron-down.entry-DA_Mq25N.js → eds-icon-chevron-down.entry-BUG6E9eR.js} +1 -1
- package/eds-icon-chevron-left.entry-BT-KYjSo.js +1 -0
- package/eds-icon-chevron-left.entry-Vq-R3b59.mjs +13 -0
- package/{eds-icon-chevron-right.entry-B2HI3b59.mjs → eds-icon-chevron-right.entry-B1qzmGrD.mjs} +2 -2
- package/eds-icon-chevron-right.entry-BmU_I0Y1.js +1 -0
- package/eds-icon-chevron-up.entry-DXXRgw1V.js +1 -0
- package/eds-icon-chevron-up.entry-DuySJU_i.mjs +13 -0
- package/eds-icon-close.entry-DDxUAr21.mjs +13 -0
- package/{eds-icon-close.entry-JIzBTjIa.js → eds-icon-close.entry-DS7BLTzl.js} +1 -1
- package/eds-icon-copy.entry-DNa1wI4F.mjs +13 -0
- package/{eds-icon-copy.entry-Ccrvu27o.js → eds-icon-copy.entry-Nz_P5A7p.js} +1 -1
- package/eds-icon-eu.entry-CLQcoimB.js +1 -0
- package/eds-icon-eu.entry-DTdf6Skc.mjs +13 -0
- package/eds-icon-facebook.entry-B9szoikj.mjs +13 -0
- package/eds-icon-facebook.entry-knUdck2t.js +1 -0
- package/eds-icon-gitlab.entry-IO7f4hgL.mjs +13 -0
- package/eds-icon-gitlab.entry-pKxaKA0B.js +1 -0
- package/{eds-icon-linkedin.entry-B4ev6evD.js → eds-icon-linkedin.entry-BD__kbDV.js} +1 -1
- package/eds-icon-linkedin.entry-CryUW1Er.mjs +13 -0
- package/{eds-icon-loader.entry-BFeh0vtX.js → eds-icon-loader.entry-B_3Sd6PB.js} +1 -1
- package/eds-icon-loader.entry-CxizdRT8.mjs +13 -0
- package/eds-icon-mastodon.entry-7152lwgd.js +1 -0
- package/eds-icon-mastodon.entry-MyM74vvm.mjs +13 -0
- package/eds-icon-menu.entry-5RRmRTxa.mjs +13 -0
- package/eds-icon-menu.entry-BVU8htgo.js +1 -0
- package/eds-icon-more.entry-KE6_EsAg.mjs +13 -0
- package/{eds-icon-more.entry-C-v0Cjp9.js → eds-icon-more.entry-lossstHZ.js} +1 -1
- package/eds-icon-search.entry-Dg0wabdP.mjs +13 -0
- package/eds-icon-search.entry-DiYaxnYX.js +1 -0
- package/{eds-icon-success.entry-DSukl_w-.js → eds-icon-success.entry-CRu9Ssdi.js} +1 -1
- package/eds-icon-success.entry-_fWfddhX.mjs +13 -0
- package/eds-icon-twitter.entry-B4xPE3Vz.js +1 -0
- package/eds-icon-twitter.entry-DHFpeStb.mjs +13 -0
- package/eds-icon-user.entry-BOv2lInW.mjs +13 -0
- package/eds-icon-user.entry-DkRLDrdp.js +1 -0
- package/eds-icon-youtube.entry-CRRGbDsw.mjs +13 -0
- package/eds-icon-youtube.entry-DL5fWU8k.js +1 -0
- package/{eds-input_7.entry-BV0VagCj.js → eds-input_7.entry-BZ9afXqe.js} +3 -3
- package/{eds-input_7.entry-CRNkC-uR.mjs → eds-input_7.entry-WvoE_Mue.mjs} +30 -25
- package/eds-login.entry-BRWK6otG.js +1 -0
- package/eds-login.entry-C0eOhlEq.mjs +58 -0
- package/{eds-logo-variations.entry-U65PDVhE.js → eds-logo-variations.entry-BnB25dDH.js} +1 -1
- package/eds-logo-variations.entry-Cw44vuQE.mjs +22 -0
- package/eds-matomo-notice.entry-BpwE1vQ3.js +1 -0
- package/{eds-matomo-notice.entry-y5SvHzsZ.mjs → eds-matomo-notice.entry-DsLbzeqQ.mjs} +2 -2
- package/eds-modal.entry-B9gXEOjT.js +1 -0
- package/eds-modal.entry-CCy9SRVR.mjs +84 -0
- package/{eds-navigator.entry-DixbL3UY.js → eds-navigator.entry-B9scz8p_.js} +1 -1
- package/{eds-navigator.entry-CvKDpQVM.mjs → eds-navigator.entry-Dk-4UW_d.mjs} +2 -2
- package/eds-pagination_2.entry-D_sngThL.js +1 -0
- package/{eds-pagination_2.entry-CRrIKRa-.mjs → eds-pagination_2.entry-M3CLFGN_.mjs} +25 -17
- package/{eds-progress-bar.entry-sdqDGSI3.mjs → eds-progress-bar.entry-BtI2_94Z.mjs} +5 -5
- package/{eds-progress-bar.entry-Bmjv2r3W.js → eds-progress-bar.entry-D56TNSGj.js} +1 -1
- package/{eds-section-core_2.entry-DBjBQ_AT.js → eds-section-core_2.entry-BmbK_RfT.js} +1 -1
- package/{eds-section-core_2.entry-cwkrHET8.mjs → eds-section-core_2.entry-pmUkAIz7.mjs} +6 -6
- package/{eds-svg-repository.entry-UvAba6M3.mjs → eds-svg-repository.entry-B3xCCFOp.mjs} +2 -2
- package/{eds-svg-repository.entry-BEJBJ538.js → eds-svg-repository.entry-DZ1FMRrQ.js} +2 -2
- package/{eds-tab.entry-CR1nFyrH.mjs → eds-tab.entry-Bpv6R_M0.mjs} +2 -2
- package/{eds-tab.entry-uQka8MTr.js → eds-tab.entry-DjpVgaDN.js} +1 -1
- package/eds-tabs-content.entry-Bj5wNmkr.js +1 -0
- package/{eds-tabs-content.entry-BKT7-iAV.mjs → eds-tabs-content.entry-CzwoLZzR.mjs} +4 -4
- package/{eds-tabs.entry-BKx8xHJ8.mjs → eds-tabs.entry-BYBPkYRs.mjs} +5 -5
- package/eds-tabs.entry-Cbc9yhHL.js +1 -0
- package/eds-timeline.entry-Bq-eo4Og.js +1 -0
- package/{eds-timeline.entry-B7jxBFA4.mjs → eds-timeline.entry-DJYcN7rN.mjs} +7 -7
- package/{eds-tooltip.entry-DJqN6_P4.mjs → eds-tooltip.entry-CTCdKTKM.mjs} +14 -6
- package/eds-tooltip.entry-eiFlYpfl.js +1 -0
- package/eds-trl.entry-8BXrp9SK.mjs +34 -0
- package/eds-trl.entry-DtffM-e5.js +1 -0
- package/eds-user.entry-DfBE6LuF.js +1 -0
- package/eds-user.entry-ybggwcts.mjs +66 -0
- package/eds-vertical-stepper.entry-DpcwvOst.mjs +27 -0
- package/eds-vertical-stepper.entry-O_GJNo8B.js +1 -0
- package/generated/components.d.ts +3 -1
- package/incorrect-use-of-colors.entry-CDHLoNBa.js +1 -0
- package/incorrect-use-of-colors.entry-DbwiJCH0.mjs +42 -0
- package/{index-Dg2DO7q4.mjs → index-C-Gy1Lax.mjs} +502 -498
- package/index-D_kZU_4I.js +21 -0
- package/index.js +1 -1
- package/index.mjs +33 -31
- package/{keycloak-13893af6-BLzE1H6E.mjs → keycloak-d502ec16-Ce0iGqyk.mjs} +259 -247
- package/keycloak-d502ec16-m7LwS-Gh.js +9 -0
- package/{logo-space.entry-DC5fUroI.js → logo-space.entry-D56IaLNE.js} +1 -1
- package/{logo-space.entry-Cf-keXHv.mjs → logo-space.entry-DERJLkyL.mjs} +7 -7
- package/logo-variations-horizontal_2.entry-OY3Zka_7.js +7 -0
- package/logo-variations-horizontal_2.entry-wp9D1MMl.mjs +29 -0
- package/logo-wrong-usage.entry-BniBpQrN.js +1 -0
- package/logo-wrong-usage.entry-RgKFDObE.mjs +14 -0
- package/package.json +1 -4
- package/{token-list_3.entry-BkOkChEb.js → token-list_3.entry-C0Tohj1W.js} +1 -1
- package/{token-list_3.entry-CheMK1r_.mjs → token-list_3.entry-Zgzwbhio.mjs} +4 -4
- package/{token-ratios.entry-rSMXHIix.mjs → token-ratios.entry-B7ZwRluK.mjs} +2 -2
- package/token-ratios.entry-bO5CkZ9D.js +1 -0
- package/token-spacing.entry-BTYazF9c.js +1 -0
- package/token-spacing.entry-_yyMlwbO.mjs +12 -0
- package/{token-typography.entry-AjIHL4M4.js → token-typography.entry-D-PPtDvs.js} +1 -1
- package/{token-typography.entry-CExckWkx.mjs → token-typography.entry-D4bxbB2m.mjs} +2 -2
- package/color-0ba8ed56-BVeDdJAE.js +0 -1
- package/color-0ba8ed56-D-UJpBQL.mjs +0 -207
- package/color-primary-palette_6.entry-_ANGnnBl.js +0 -1
- package/correct-use-of-colors.entry-B312hpv9.js +0 -1
- package/correct-use-of-colors.entry-BjxRVkfm.mjs +0 -59
- package/eds-accordion.entry-h9ApF51u.js +0 -4
- package/eds-alert.entry-C6VZ3ss6.js +0 -608
- package/eds-alert.entry-D5o-ZjCb.mjs +0 -688
- package/eds-card-desc_3.entry-D7hiMZ09.mjs +0 -87
- package/eds-card-desc_3.entry-Dxs_izUN.js +0 -1
- package/eds-card-generic.entry-DZYZP5oa.js +0 -1
- package/eds-card-project.entry-D7P4K88F.js +0 -1
- package/eds-card-tags.entry-CnHitp9l.js +0 -1
- package/eds-card-tags.entry-XboLA5-P.mjs +0 -13
- package/eds-card-tool.entry-CbreK2xg.js +0 -1
- package/eds-icon-arrow-diagonal.entry-CEffhVkn.mjs +0 -13
- package/eds-icon-arrow-diagonal.entry-abxXXnCe.js +0 -1
- package/eds-icon-arrow-right.entry-4zl098Gq.js +0 -1
- package/eds-icon-arrow-right.entry-DrA5pZ5q.mjs +0 -13
- package/eds-icon-bluesky.entry-CRey5aEK.mjs +0 -13
- package/eds-icon-chevron-down.entry-DCd5FfEN.mjs +0 -13
- package/eds-icon-chevron-left.entry-CiGlPKup.js +0 -1
- package/eds-icon-chevron-left.entry-Lmfmw6QC.mjs +0 -13
- package/eds-icon-chevron-right.entry-DMwxsQGs.js +0 -1
- package/eds-icon-chevron-up.entry-CwavCcA0.mjs +0 -13
- package/eds-icon-chevron-up.entry-D9pmuoVK.js +0 -1
- package/eds-icon-close.entry-pxvkbolY.mjs +0 -13
- package/eds-icon-copy.entry-Begn9c9I.mjs +0 -13
- package/eds-icon-eu.entry-C0ZIqXHV.js +0 -1
- package/eds-icon-eu.entry-CLI94rkv.mjs +0 -13
- package/eds-icon-facebook.entry-BIZwxPBr.js +0 -1
- package/eds-icon-facebook.entry-o2SylrAp.mjs +0 -13
- package/eds-icon-gitlab.entry-BJi35Zov.js +0 -1
- package/eds-icon-gitlab.entry-BWfZkXKF.mjs +0 -13
- package/eds-icon-linkedin.entry-Z4gD9HGr.mjs +0 -13
- package/eds-icon-loader.entry-DgIgWpYk.mjs +0 -13
- package/eds-icon-mastodon.entry-BLCaUfQY.js +0 -1
- package/eds-icon-mastodon.entry-C_2paQis.mjs +0 -13
- package/eds-icon-menu.entry-CNtaXAOo.mjs +0 -13
- package/eds-icon-menu.entry-CzF-GJXn.js +0 -1
- package/eds-icon-more.entry-4gqxzs_k.mjs +0 -13
- package/eds-icon-search.entry-D070uKfZ.mjs +0 -13
- package/eds-icon-search.entry-iLCAU3Et.js +0 -1
- package/eds-icon-success.entry-Ci0RTnP5.mjs +0 -13
- package/eds-icon-twitter.entry-D6I83zuS.mjs +0 -13
- package/eds-icon-twitter.entry-I9FRjdSE.js +0 -1
- package/eds-icon-user.entry-BI7Uw3Pp.mjs +0 -13
- package/eds-icon-user.entry-DcLB78T6.js +0 -1
- package/eds-icon-youtube.entry-CR4ml_RW.mjs +0 -13
- package/eds-icon-youtube.entry-DAke-XDg.js +0 -1
- package/eds-login.entry-DOeyfoyM.js +0 -1
- package/eds-login.entry-DmJw6ABI.mjs +0 -46
- package/eds-logo-variations.entry-o4lyGmhR.mjs +0 -22
- package/eds-matomo-notice.entry-tzuOtKT9.js +0 -1
- package/eds-modal.entry-B7Ph4m3y.js +0 -1
- package/eds-modal.entry-BW8crUoC.mjs +0 -65
- package/eds-pagination_2.entry-DoZ-NFBH.js +0 -1
- package/eds-rating.entry-J5lQt6oj.mjs +0 -40
- package/eds-rating.entry-dK5fopCq.js +0 -1
- package/eds-tabs-content.entry-CTM0EjTl.js +0 -1
- package/eds-tabs.entry-BWxSN8SV.js +0 -1
- package/eds-timeline.entry-D9KWrb_r.js +0 -1
- package/eds-tooltip.entry-CfhqHRxF.js +0 -1
- package/eds-trl.entry-COK7rgVS.mjs +0 -36
- package/eds-trl.entry-CoySvAJL.js +0 -1
- package/incorrect-use-of-colors.entry-D7xAYXu2.js +0 -1
- package/incorrect-use-of-colors.entry-DsNEjuWo.mjs +0 -42
- package/index-Dvww9rdy.js +0 -21
- package/keycloak-13893af6-NiM3zoVg.js +0 -9
- package/logo-variations-horizontal_2.entry-BWau6qh4.js +0 -7
- package/logo-variations-horizontal_2.entry-xvJ8Iiu5.mjs +0 -29
- package/logo-wrong-usage.entry-RcSb8NIe.mjs +0 -14
- package/logo-wrong-usage.entry-sU8NISwX.js +0 -1
- package/token-ratios.entry-Dfz4q4qy.js +0 -1
- package/token-spacing.entry-ByzbVlGi.js +0 -1
- package/token-spacing.entry-DvopunO1.mjs +0 -12
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { r, h as t, g as i } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { s as a } from "./analytics-1cde8e4a-BDRcCMlV.mjs";
|
|
3
|
+
const o = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}", n = o, s = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.isOpen = !1, this.title = "", this.truncate = !0, this.truncateLines = "1", this.position = "middle";
|
|
6
|
+
}
|
|
7
|
+
getTruncateClass() {
|
|
8
|
+
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : "";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
12
|
+
*
|
|
13
|
+
* @private
|
|
14
|
+
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
15
|
+
*/
|
|
16
|
+
getModalPositionClasses() {
|
|
17
|
+
switch (this.position) {
|
|
18
|
+
case "top":
|
|
19
|
+
return "left-1/2 top-20 -translate-x-1/2";
|
|
20
|
+
case "bottom":
|
|
21
|
+
return "left-1/2 bottom-20 -translate-x-1/2";
|
|
22
|
+
case "left":
|
|
23
|
+
return "left-20 top-1/2 -translate-y-1/2";
|
|
24
|
+
case "right":
|
|
25
|
+
return "right-20 top-1/2 -translate-y-1/2";
|
|
26
|
+
case "middle":
|
|
27
|
+
default:
|
|
28
|
+
return "left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Opens the modal.
|
|
33
|
+
*/
|
|
34
|
+
async open() {
|
|
35
|
+
var e;
|
|
36
|
+
this.isOpen = !0, a({
|
|
37
|
+
category: "ui-component",
|
|
38
|
+
parentContext: null,
|
|
39
|
+
tag: this.el.tagName.toLowerCase(),
|
|
40
|
+
name: ((e = this.title) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
|
|
41
|
+
action: "opened"
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Closes the modal.
|
|
46
|
+
*/
|
|
47
|
+
async close() {
|
|
48
|
+
var e;
|
|
49
|
+
this.isOpen = !1, a({
|
|
50
|
+
category: "ui-component",
|
|
51
|
+
parentContext: null,
|
|
52
|
+
tag: this.el.tagName.toLowerCase(),
|
|
53
|
+
name: ((e = this.title) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
|
|
54
|
+
action: "closed"
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Toggles the modal open or closed.
|
|
59
|
+
*/
|
|
60
|
+
async toggle() {
|
|
61
|
+
this.isOpen = !this.isOpen;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Closes the modal when the Escape key is pressed.
|
|
65
|
+
*/
|
|
66
|
+
handleKeyDown(e) {
|
|
67
|
+
this.isOpen && e.key === "Escape" && this.close();
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
const e = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
71
|
+
return t("div", { key: "cd976fb0cd0c0663279dcd4dbd5823e26b6c32f7", class: `${this.isOpen ? "block" : "hidden"} fixed inset-0 z-50 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": e }, this.isOpen && t("div", {
|
|
72
|
+
key: "40a2febed5d0ec15d5370183c97cfd05abd72007",
|
|
73
|
+
class: "fixed inset-0 bg-dark bg-opacity-90",
|
|
74
|
+
onClick: () => this.close()
|
|
75
|
+
}), t("div", { key: "50f2c23d80a2007aca4d0a8911816141e43b71ee", class: `max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center` }, t("div", { key: "e1cba5879bc488a99b896c48c8a780336b2195e7", class: "flex justify-between items-center border-b-2 border-softer pb-8" }, t("span", { key: "8f018e3d2890346d23e7dcb115676051048bcacb", id: e, class: `f-heading-04 text-lighter ${this.getTruncateClass()}` }, this.title), t("eds-button", { key: "4ae4013dd45573648817ac95ee4370ed615aa6a0", intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8" })), t("div", { key: "ac4e3d8f273d04ad02e0123c23b36b89bfc89db2", class: "pt-8" }, t("slot", { key: "60917e9f750bfd7948e580acc817cffe6424608a" }))));
|
|
76
|
+
}
|
|
77
|
+
get el() {
|
|
78
|
+
return i(this);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
s.style = n;
|
|
82
|
+
export {
|
|
83
|
+
s as eds_modal
|
|
84
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),n=class{constructor(t){e.registerInstance(this,t),this.prevLabel=void 0,this.nextLabel=void 0,this.prevUrl=void 0,this.nextUrl=void 0,this.linkSize="small",this.linkIntent="tertiary"}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(i=>{this.emitContext(i)})}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}render(){return e.h("ul",{key:"712287e683436cc98c2d6ef195501add1929522e",class:"flex lg:flex grow items-center justify-center gap-x-8"},this.prevLabel&&e.h("eds-link",{key:"4fda36ce37897284d7062f88133f147831d96a6f",label:this.prevLabel,url:this.prevUrl||void 0,disabled:!this.prevUrl,"aria-label":this.prevLabel,size:this.linkSize,intent:this.linkIntent,class:"mr-auto !p-8 lg:!pr-12"},e.h("eds-icon-wrapper",{key:"9bfa6bbbdc68641f65bec49f207d96f075b9a5b0",icon:"chevron-left"}),this.prevLabel),this.nextLabel&&e.h("eds-link",{key:"6ee8ebee011a2c30a74645b072c7c37929d0a55f",label:this.nextLabel,url:this.nextUrl||void 0,disabled:!this.nextUrl,"aria-label":this.nextLabel,size:this.linkSize,intent:this.linkIntent,class:"ml-auto !p-8 lg:!pl-12"},this.nextLabel,e.h("eds-icon-wrapper",{key:"44ebd4dcce0e367df7d9035bb445e49fde35e913",icon:"chevron-right",class:"w-20 h-20"})))}get el(){return e.getElement(this)}};exports.eds_navigator=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, h as e, g as l } from "./index-
|
|
1
|
+
import { r as n, h as e, g as l } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
const a = class {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
n(this, t), this.prevLabel = void 0, this.nextLabel = void 0, this.prevUrl = void 0, this.nextUrl = void 0, this.linkSize = "small", this.linkIntent = "tertiary";
|
|
@@ -22,7 +22,7 @@ const a = class {
|
|
|
22
22
|
t.dispatchEvent(i);
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return e("ul", { key: "
|
|
25
|
+
return e("ul", { key: "712287e683436cc98c2d6ef195501add1929522e", class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && e("eds-link", { key: "4fda36ce37897284d7062f88133f147831d96a6f", label: this.prevLabel, url: this.prevUrl || void 0, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, e("eds-icon-wrapper", { key: "9bfa6bbbdc68641f65bec49f207d96f075b9a5b0", icon: "chevron-left" }), this.prevLabel), this.nextLabel && e("eds-link", { key: "6ee8ebee011a2c30a74645b072c7c37929d0a55f", label: this.nextLabel, url: this.nextUrl || void 0, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, e("eds-icon-wrapper", { key: "44ebd4dcce0e367df7d9035bb445e49fde35e913", icon: "chevron-right", class: "w-20 h-20" })));
|
|
26
26
|
}
|
|
27
27
|
get el() {
|
|
28
28
|
return l(this);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-D_kZU_4I.js"),d=require("./analytics-1cde8e4a-B_MD-9qW.js"),c="ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}",f=c,h=class{constructor(t){i.registerInstance(this,t),this.currentPage=void 0,this.lastPage=void 0,this.perPage=10,this.total=0,this.url="",this.mode="default",this.prevLabel="Prev",this.nextLabel="Next",this.prevUrl="",this.nextUrl="",this.links=[]}componentWillLoad(){this.mode==="default"&&this.generateLinks()}componentDidLoad(){this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach(e=>{this.emitContext(e)})}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.hostEl.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(e)}onPageOrLastPageChange(){this.mode==="default"&&this.generateLinks()}isFirstPage(){return this.currentPage===1}isLastPage(){return this.currentPage===this.lastPage}generateLink(t){const e=this.url.includes("?");return{ariaLabel:`Page ${t}`,url:`${this.url}${e?"&":"?"}page=${t}`,label:t.toString(),current:this.currentPage===t,disabled:!1}}generateLinks(){this.lastPage&&this.lastPage>5?this.links=this.getPaginationGenerator(this.currentPage||1,this.lastPage).map(t=>typeof t=="number"?this.generateLink(t):t):this.lastPage&&(this.links=Array.from({length:this.lastPage}).map((t,e)=>this.generateLink(e+1)))}getPaginationGenerator(t,e){const a=[];if(e<=5)for(let n=1;n<=e;n++)a.push(n);else{a.push(1),t-1>2&&a.push("...");for(let n=Math.max(2,t-1);n<=Math.min(e-1,t+1);n++)a.push(n);t+1<e-1&&a.push("..."),a.push(e)}return a}pageResults(){return this.total>0?this.total>this.perPage?`${this.perPage*((this.currentPage||1)-1)+1} - ${this.perPage*(this.currentPage||1)>=this.total?this.total:this.perPage*(this.currentPage||1)} of ${this.total}`:`${this.total}`:""}handlePageClick(t,e){if(this.mode!=="navigator"&&(t.preventDefault(),e!==this.currentPage)){this.links=this.links.map(a=>typeof a=="object"?Object.assign(Object.assign({},a),{current:parseInt(a.label)===e}):a);const s=new CustomEvent("pageChange",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"8c8418eec263acc153a928b752775458f897504f"},this.total>0&&this.mode==="default"&&i.h("p",{key:"02a5a69772a4812f10b29e8df117b72df210614d",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"ef9804843100c722643c24e31a05f86f2d55efa0",class:"sr-only"},"Results:"),this.pageResults()),this.mode==="navigator"||this.lastPage&&this.lastPage>1?i.h("nav",{"aria-label":"Pagination"},i.h("ul",{class:"flex items-center justify-center gap-x-8"},i.h("li",{class:"mr-auto"},i.h("eds-link",{label:this.prevLabel,url:this.mode==="navigator"?this.prevUrl||"#":this.isFirstPage()?"#":this.generateLink(this.currentPage-1).url,disabled:this.mode==="navigator"?!this.prevUrl:this.isFirstPage(),"aria-label":"Previous page",icon:"chevron-left","icon-pos":"left",size:"small","icon-small":"true",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pr-12",onClick:t=>{this.mode==="default"&&(this.isFirstPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)-1))}})),this.mode==="default"&&this.links.map((t,e)=>i.h("li",{key:e,class:"f-ui-02 flex h-36 items-center justify-center"},typeof t=="string"?i.h("span",{class:"flex items-center justify-center"},t):i.h("eds-link",{url:t.url,"aria-label":t.ariaLabel,label:t.label,current:t.current,size:"small",class:"!p-8",intent:t.current?"secondary":"ghost",onClick:s=>this.handlePageClick(s,parseInt(t.label))}))),i.h("li",{class:"ml-auto"},i.h("eds-link",{label:this.nextLabel,url:this.mode==="navigator"?this.nextUrl||"#":this.isLastPage()?"#":this.generateLink(this.currentPage+1).url,disabled:this.mode==="navigator"?!this.nextUrl:this.isLastPage(),"aria-label":"Next page",size:"small","icon-small":"true",icon:"chevron-right",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors",onClick:t=>{this.mode==="default"&&(this.isLastPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)+1))}})))):null)}get hostEl(){return i.getElement(this)}static get watchers(){return{currentPage:["onPageOrLastPageChange"],lastPage:["onPageOrLastPageChange"]}}};h.style=f;const u="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}",p=u,g=class{constructor(t){i.registerInstance(this,t),this.data=null,this.endpoint=null,this.config={},this.rowsPerPage=10,this.paginationEnabled=!0,this.searchEnabled=!1,this.hostWidth=void 0,this.columnSize="default",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(t){console.error("Failed to parse data:",t),this.tableData=[]}}parseConfig(){try{this.parsedConfig=typeof this.config=="string"?JSON.parse(this.config):this.config}catch(t){console.error("Failed to parse config:",t),this.parsedConfig={}}}async fetchData(){try{const e=await(await fetch(this.endpoint)).json();this.data=e}catch(t){console.error("Failed to fetch data:",t)}}setupPaginationListener(){if(!this.shouldEnablePagination())return;const t=this.hostEl.shadowRoot.querySelector("eds-pagination");t&&!t.hasAttribute("listener-attached")&&(t.addEventListener("pageChange",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tableData.filter(t=>Object.values(t).some(e=>e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())))}getPaginatedRows(){const t=this.getFilteredRows();this.totalRows=t.length;const e=(this.currentPage-1)*this.rowsPerPage;return t.slice(e,e+this.rowsPerPage)}handlePageChange(t){this.currentPage=t,d.sendAnalytics({category:"ui-component",parentContext:null,tag:`${this.hostEl.tagName.toLowerCase()}/eds-pagination`,name:`${t}`||"",action:"page"})}handleSearch(t){this.searchQuery=t.target.value,this.currentPage=1}renderCell(t,e){var s;const a=(s=this.parsedConfig[e])===null||s===void 0?void 0:s.format;return a==="uppercase"?t==null?void 0:t.toString().toUpperCase():a==="svg"?i.h("div",{innerHTML:t}):a==="bold"?i.h("strong",null,t):a==="code"?i.h("code",null,t):t}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(t=>{var e;return!(!((e=this.parsedConfig[t])===null||e===void 0)&&e.hidden)}).length}divisionFactor(){let t=1;return this.columnSize==="medium"?t=2:this.columnSize==="large"&&(t=4),t}render(){const t=this.getPaginatedRows(),e=Math.ceil(this.totalRows/this.rowsPerPage),s=this.getVisibleColumnsCount(),a=this.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.hostEl.parentElement.getBoundingClientRect().width:this.hostEl.getRootNode().host instanceof HTMLElement?this.hostEl.getRootNode().host.getBoundingClientRect().width:400,n=s>0?Math.floor(a/s*this.divisionFactor()):100;return i.h("div",{key:"66ca59804bc8054655ed0d942104516fe4cd259b"},this.searchEnabled&&i.h("div",{key:"df7267fc443da042e4b6ff81ded5800a2213bd73"},i.h("eds-input-field",{key:1,name:"search","aria-label":"Search",type:"text",placeholder:"Search...",onInput:o=>this.handleSearch(o)})),i.h("div",{key:"80ac1fcb3802f9f5d5eabe016fb7345b88908b36",class:"mt-20"},i.h("table",{key:"09acf39378b1a4c8bfe40b496ec6bf71a2d761ca",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"8b844806cfef10d1a59da54a385ee8ed6c167050"},i.h("tr",{key:"1b3cff91bdaf225e9f3b337e245cd80ad4772b6a",class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(o=>{var r;return!(!((r=this.parsedConfig[o])===null||r===void 0)&&r.hidden)&&i.h("th",{class:"m-0 py-8 border border-softer f-ui-02 break-words",style:{minWidth:`${n-5}px`}},o)}))),i.h("tbody",{key:"93dfd3abd196779c288f85bb6a357ad3e9c01418"},t.map(o=>i.h("tr",{class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(r=>{var l;return!(!((l=this.parsedConfig[r])===null||l===void 0)&&l.hidden)&&i.h("td",{class:"text-center border border-softer m-0 py-8 f-ui-2 break-words",style:{minWidth:`${n-5}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58",class:"mt-20"},i.h("eds-pagination",{key:"abe3a593827d99437a06e204ea9d8ef92f80aba7",currentPage:this.currentPage,lastPage:e,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};g.style=p;exports.eds_pagination=h;exports.eds_table=g;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { r as h, h as i, g } from "./index-
|
|
2
|
-
|
|
1
|
+
import { r as h, h as i, g } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { s as d } from "./analytics-1cde8e4a-BDRcCMlV.mjs";
|
|
3
|
+
const c = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}", f = c, u = class {
|
|
3
4
|
constructor(t) {
|
|
4
5
|
h(this, t), this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [];
|
|
5
6
|
}
|
|
@@ -8,8 +9,9 @@ const d = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(-
|
|
|
8
9
|
this.mode === "default" && this.generateLinks();
|
|
9
10
|
}
|
|
10
11
|
componentDidLoad() {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
13
|
+
this.emitContext(e);
|
|
14
|
+
});
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Emits a custom event called `parentContext` for a given link element.
|
|
@@ -106,7 +108,7 @@ const d = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(-
|
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
render() {
|
|
109
|
-
return i("div", { key: "
|
|
111
|
+
return i("div", { key: "8c8418eec263acc153a928b752775458f897504f" }, this.total > 0 && this.mode === "default" && i("p", { key: "02a5a69772a4812f10b29e8df117b72df210614d", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "ef9804843100c722643c24e31a05f86f2d55efa0", class: "sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination" }, i("ul", { class: "flex items-center justify-center gap-x-8" }, i("li", { class: "mr-auto" }, i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12", onClick: (t) => {
|
|
110
112
|
this.mode === "default" && (this.isFirstPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) - 1));
|
|
111
113
|
} })), this.mode === "default" && this.links.map((t, e) => i("li", { key: e, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof t == "string" ? i("span", { class: "flex items-center justify-center" }, t) : i("eds-link", { url: t.url, "aria-label": t.ariaLabel, label: t.label, current: t.current, size: "small", class: "!p-8", intent: t.current ? "secondary" : "ghost", onClick: (s) => this.handlePageClick(s, parseInt(t.label)) }))), i("li", { class: "ml-auto" }, i("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (t) => {
|
|
112
114
|
this.mode === "default" && (this.isLastPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) + 1));
|
|
@@ -122,8 +124,8 @@ const d = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(-
|
|
|
122
124
|
};
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
+
u.style = f;
|
|
128
|
+
const p = "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}", m = p, b = class {
|
|
127
129
|
constructor(t) {
|
|
128
130
|
h(this, t), this.data = null, this.endpoint = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.hostWidth = void 0, this.columnSize = "default", this.tableData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "";
|
|
129
131
|
}
|
|
@@ -180,7 +182,13 @@ const u = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.c
|
|
|
180
182
|
return t.slice(e, e + this.rowsPerPage);
|
|
181
183
|
}
|
|
182
184
|
handlePageChange(t) {
|
|
183
|
-
this.currentPage = t
|
|
185
|
+
this.currentPage = t, d({
|
|
186
|
+
category: "ui-component",
|
|
187
|
+
parentContext: null,
|
|
188
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
189
|
+
name: `${t}` || "",
|
|
190
|
+
action: "page"
|
|
191
|
+
});
|
|
184
192
|
}
|
|
185
193
|
handleSearch(t) {
|
|
186
194
|
this.searchQuery = t.target.value, this.currentPage = 1;
|
|
@@ -208,7 +216,7 @@ const u = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.c
|
|
|
208
216
|
}
|
|
209
217
|
render() {
|
|
210
218
|
const t = this.getPaginatedRows(), e = Math.ceil(this.totalRows / this.rowsPerPage), s = this.getVisibleColumnsCount(), a = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.hostEl.parentElement instanceof HTMLElement ? this.hostEl.parentElement.getBoundingClientRect().width : this.hostEl.getRootNode().host instanceof HTMLElement ? this.hostEl.getRootNode().host.getBoundingClientRect().width : 400, n = s > 0 ? Math.floor(a / s * this.divisionFactor()) : 100;
|
|
211
|
-
return
|
|
219
|
+
return i("div", { key: "66ca59804bc8054655ed0d942104516fe4cd259b" }, this.searchEnabled && i("div", { key: "df7267fc443da042e4b6ff81ded5800a2213bd73" }, i("eds-input-field", {
|
|
212
220
|
key: 1,
|
|
213
221
|
name: "search",
|
|
214
222
|
"aria-label": "Search",
|
|
@@ -216,13 +224,13 @@ const u = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.c
|
|
|
216
224
|
placeholder: "Search...",
|
|
217
225
|
// @ts-ignore
|
|
218
226
|
onInput: (o) => this.handleSearch(o)
|
|
219
|
-
})), i("div", { key: "
|
|
227
|
+
})), i("div", { key: "80ac1fcb3802f9f5d5eabe016fb7345b88908b36", class: "mt-20" }, i("table", { key: "09acf39378b1a4c8bfe40b496ec6bf71a2d761ca", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "8b844806cfef10d1a59da54a385ee8ed6c167050" }, i("tr", { key: "1b3cff91bdaf225e9f3b337e245cd80ad4772b6a", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
|
|
220
228
|
var r;
|
|
221
|
-
return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${n}px` } }, o);
|
|
222
|
-
}))), i("tbody", { key: "
|
|
229
|
+
return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${n - 5}px` } }, o);
|
|
230
|
+
}))), i("tbody", { key: "93dfd3abd196779c288f85bb6a357ad3e9c01418" }, t.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
|
|
223
231
|
var l;
|
|
224
|
-
return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${n}px` } }, this.renderCell(o[r], r));
|
|
225
|
-
})))))), this.shouldEnablePagination() && i("div", { key: "
|
|
232
|
+
return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${n - 5}px` } }, this.renderCell(o[r], r));
|
|
233
|
+
})))))), this.shouldEnablePagination() && i("div", { key: "516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58", class: "mt-20" }, i("eds-pagination", { key: "abe3a593827d99437a06e204ea9d8ef92f80aba7", currentPage: this.currentPage, lastPage: e, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
226
234
|
}
|
|
227
235
|
get hostEl() {
|
|
228
236
|
return g(this);
|
|
@@ -234,8 +242,8 @@ const u = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.c
|
|
|
234
242
|
};
|
|
235
243
|
}
|
|
236
244
|
};
|
|
237
|
-
|
|
245
|
+
b.style = m;
|
|
238
246
|
export {
|
|
239
|
-
|
|
240
|
-
|
|
247
|
+
u as eds_pagination,
|
|
248
|
+
b as eds_table
|
|
241
249
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r, h as
|
|
2
|
-
const
|
|
1
|
+
import { r as t, h as r } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
const a = ".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)}", o = a, i = class {
|
|
3
3
|
constructor(e) {
|
|
4
|
-
|
|
4
|
+
t(this, e), this.value = 0;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Method to update the progress value externally.
|
|
@@ -12,10 +12,10 @@ const o = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:v
|
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
14
|
const e = this.value;
|
|
15
|
-
return
|
|
15
|
+
return r("div", { key: "0f47fedbf9d44887f65b399e184215f0937b1df1", role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": e, "aria-valuetext": `${e}%`, class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, r("div", { key: "a2d095d778842c969832ea6b1ba7f7ef917d1390", class: "inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02", style: { width: `${e}%` } }, e, "%"));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
i.style =
|
|
18
|
+
i.style = o;
|
|
19
19
|
export {
|
|
20
20
|
i as eds_progress_bar
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-D_kZU_4I.js"),a=".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)}",o=a,t=class{constructor(e){r.registerInstance(this,e),this.value=0}async updateValue(e){this.value=Math.min(100,Math.max(0,e))}render(){const e=this.value;return r.h("div",{key:"0f47fedbf9d44887f65b399e184215f0937b1df1",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e,"aria-valuetext":`${e}%`,class:"outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"},r.h("div",{key:"a2d095d778842c969832ea6b1ba7f7ef917d1390",class:"inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02",style:{width:`${e}%`}},e,"%"))}};t.style=o;exports.eds_progress_bar=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D_kZU_4I.js"),a="",n=a,s=class{constructor(e){t.registerInstance(this,e),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){const e=this.tag;return t.h(e,{key:"e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac"},t.h("eds-section-heading",{key:"379c6bc644612d3e0865ce2acd8eacb4d67c7769",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"5828a28c2c8ac65fbc56652f733f148a0d0198b7"}))}};s.style=n;const c=class{constructor(e){t.registerInstance(this,e),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){const e=this.tag,i=this.headingLevel;return t.h(e,{key:"c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},t.h(i,{key:"e65e13820553eefa5aec8bc9740e5e9da828ac92",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=c;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as t, h as s } from "./index-
|
|
2
|
-
const
|
|
1
|
+
import { r as t, h as s } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
const a = "", n = a, c = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
t(this, e), this.tag = "section", this.sectionTitle = "", this.headingLevel = "h2";
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
7
|
const e = this.tag;
|
|
8
|
-
return s(e, { key: "
|
|
8
|
+
return s(e, { key: "e7ef9e7a589d8cde8aa54d73dff8421d74a7d0ac" }, s("eds-section-heading", { key: "379c6bc644612d3e0865ce2acd8eacb4d67c7769", headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), s("slot", { key: "5828a28c2c8ac65fbc56652f733f148a0d0198b7" }));
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
c.style =
|
|
11
|
+
c.style = n;
|
|
12
12
|
const d = class {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
t(this, e), this.sectionTitle = void 0, this.withContainer = !0, this.headingLevel = "h2", this.tag = "div", this.spacingLarge = !1;
|
|
@@ -25,12 +25,12 @@ const d = class {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const e = this.tag, i = this.headingLevel;
|
|
28
|
-
return s(e, { key: "
|
|
28
|
+
return s(e, { key: "c15f83f8aaa4fb01c884fb1390965fcf9dbd61fb", class: {
|
|
29
29
|
"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20": !0,
|
|
30
30
|
container: this.withContainer,
|
|
31
31
|
"pt-48": this.spacingLarge,
|
|
32
32
|
"pt-28": !this.spacingLarge
|
|
33
|
-
} }, s(i, { key: "
|
|
33
|
+
} }, s(i, { key: "e65e13820553eefa5aec8bc9740e5e9da828ac92", class: this.getHeadingClass() }, this.sectionTitle));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, h as e, g as i } from "./index-
|
|
1
|
+
import { r, h as e, g as i } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
import { e as s } from "./eu-9ddde93a-ft4szvR5.mjs";
|
|
3
3
|
import { h as l } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
4
4
|
import { h, a as n, b as a, c as C, v as c, d as g, e as d, f as w, g as p } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
|
|
@@ -282,7 +282,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
282
282
|
icon: { format: "svg" },
|
|
283
283
|
name: { format: "bold" }
|
|
284
284
|
};
|
|
285
|
-
return e("eds-table", { key: "
|
|
285
|
+
return e("eds-table", { key: "a7d7fa426da72e174880a300202390c1016b74df", data: JSON.stringify(o), config: JSON.stringify(t), "rows-per-page": 10, "search-enabled": !0, "pagination-enabled": !0, "host-width": this.hostWidth });
|
|
286
286
|
}
|
|
287
287
|
get hostEl() {
|
|
288
288
|
return i(this);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-D_kZU_4I.js"),i=require("./eu-9ddde93a-BFtIQw9B.js"),l=require("./logo-color-7f1fd803-DRD3vZVn.js"),e=require("./logo-white-no-bg-f382f86f-DXYn3NwV.js"),n=require("./logo-color-margins-ff8ce71b-Dk06zr1Z.js"),s=require("./mono-53f70232-DgAsWvoQ.js"),c=require("./chevron-up-c66bd477-ByW7R48t.js"),h=require("./chevron-down-6144c823-D_8976Ke.js"),C=require("./chevron-right-b88ed2d4-C7dkTMvP.js"),g=require("./chevron-left-ca6c66e1-uCH5SUhm.js"),d=require("./arrow-diagonal-black-8f0494c3-DqsB6ni-.js"),a=require("./arrow-right-9322ba8a-DBcxNU_p.js"),w=require("./twitter-ac21b505-DDdHS4hB.js"),u=require("./linkedin-e8650abb-BkDrkjzY.js"),v=require("./facebook-9cb5c17f-Y_gvQ682.js"),f=require("./youtube-efbfbdc4-BLTH1Jl9.js"),p=require("./mastodon-3703ec61-C9v6Olc-.js"),L=require("./bluesky-cc5edd2d-DaFQc-pr.js"),k=require("./search-fbcd79c2-BMxCaeEk.js"),M=require("./loader-c9628637-Vj8Wt1e8.js"),b=require("./success-443809da-BUEhLsAD.js"),m=require("./close-87fc0d63-Cbd-ScJr.js"),x=require("./menu-340ea948-ZdelWVw3.js"),q=require("./more-4449d549-D4HA1cRq.js"),B=require("./user-71ebdc15-BBKQbcQD.js"),Z=require("./copy-03b72cb6-CZAFAegx.js"),y=` <svg width="20" height="20" viewBox="0 0 36 36">
|
|
2
2
|
<path fill="#e24329" d="M2 14l9.38 9v-9l-4-12.28c-.205-.632-1.176-.632-1.38 0z"></path>
|
|
3
3
|
<path fill="#e24329" d="M34 14l-9.38 9v-9l4-12.28c.205-.632 1.176-.632 1.38 0z"></path>
|
|
4
4
|
<path fill="#e24329" d="M18,34.38 3,14 33,14 Z"></path>
|
|
@@ -189,4 +189,4 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
189
189
|
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"
|
|
190
190
|
fill="currentColor"
|
|
191
191
|
/>
|
|
192
|
-
</svg>`,j=Object.freeze({__proto__:null,twitter:w.twitter,linkedin:u.linkedin,facebook:v.facebook,youtube:f.youtube,mastodon:p.mastodon,bluesky:L.bluesky,euSvg:i.euSvg,arrowRight:a.arrowRight,arrowDiagonal:d.arrowDiagonal,chevronUp:c.chevronUp,chevronDown:h.chevronDown,chevronRight:C.chevronRight,chevronLeft:g.chevronLeft,check:E,clear:S,close:m.close,completed:H,copy:Z.copy,documentation:N,download:R,error:W,gitlabColor:y,gitlabBlack:s.gitlabBlack,loader:M.loader,hLogoColor:l.hLogoColor,hLogoBlack:e.hLogoBlack,hLogoColorWhite:e.hLogoColorWhite,hLogoWhite:e.hLogoWhite,hLogoWhiteNoBg:e.hLogoWhiteNoBg,vLogoColor:e.vLogoColor,vLogoBlack:e.vLogoBlack,vLogoColorWhite:e.vLogoColorWhite,vLogoWhite:e.vLogoWhite,vLogoWhiteNoBg:e.vLogoWhiteNoBg,vLogoMargins:n.vLogoMargins,menu:x.menu,more:q.more,failed:V,filter:_,group:z,user:B.user,search:k.search,success:b.success,warning:D,unknown:O}),F=class{constructor(o){r.registerInstance(this,o)}getSvgData(){return Object.entries(j).filter(([o])=>!o.toLowerCase().includes("logo")&&!o.toLowerCase().includes("eu")).map(([o,t])=>({name:o,icon:t}))}get hostWidth(){return this.hostEl.parentElement?this.hostEl.parentElement.offsetWidth:400}render(){const o=this.getSvgData(),t={icon:{format:"svg"},name:{format:"bold"}};return r.h("eds-table",{key:"
|
|
192
|
+
</svg>`,j=Object.freeze({__proto__:null,twitter:w.twitter,linkedin:u.linkedin,facebook:v.facebook,youtube:f.youtube,mastodon:p.mastodon,bluesky:L.bluesky,euSvg:i.euSvg,arrowRight:a.arrowRight,arrowDiagonal:d.arrowDiagonal,chevronUp:c.chevronUp,chevronDown:h.chevronDown,chevronRight:C.chevronRight,chevronLeft:g.chevronLeft,check:E,clear:S,close:m.close,completed:H,copy:Z.copy,documentation:N,download:R,error:W,gitlabColor:y,gitlabBlack:s.gitlabBlack,loader:M.loader,hLogoColor:l.hLogoColor,hLogoBlack:e.hLogoBlack,hLogoColorWhite:e.hLogoColorWhite,hLogoWhite:e.hLogoWhite,hLogoWhiteNoBg:e.hLogoWhiteNoBg,vLogoColor:e.vLogoColor,vLogoBlack:e.vLogoBlack,vLogoColorWhite:e.vLogoColorWhite,vLogoWhite:e.vLogoWhite,vLogoWhiteNoBg:e.vLogoWhiteNoBg,vLogoMargins:n.vLogoMargins,menu:x.menu,more:q.more,failed:V,filter:_,group:z,user:B.user,search:k.search,success:b.success,warning:D,unknown:O}),F=class{constructor(o){r.registerInstance(this,o)}getSvgData(){return Object.entries(j).filter(([o])=>!o.toLowerCase().includes("logo")&&!o.toLowerCase().includes("eu")).map(([o,t])=>({name:o,icon:t}))}get hostWidth(){return this.hostEl.parentElement?this.hostEl.parentElement.offsetWidth:400}render(){const o=this.getSvgData(),t={icon:{format:"svg"},name:{format:"bold"}};return r.h("eds-table",{key:"a7d7fa426da72e174880a300202390c1016b74df",data:JSON.stringify(o),config:JSON.stringify(t),"rows-per-page":10,"search-enabled":!0,"pagination-enabled":!0,"host-width":this.hostWidth})}get hostEl(){return r.getElement(this)}};exports.eds_svg_repository=F;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as t } from "./index-
|
|
1
|
+
import { r as e, h as t } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
import { c as r } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
3
3
|
const n = class {
|
|
4
4
|
constructor(a) {
|
|
@@ -23,7 +23,7 @@ const n = class {
|
|
|
23
23
|
}), this.label = void 0, this.url = void 0, this.active = !1, this.ariaLabel = void 0;
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return t("a", { key: "
|
|
26
|
+
return t("a", { key: "a55be2a07e554ab13a0d7e913710382d6126da57", "aria-label": this.label, "aria-current": this.active, class: this.tabCva({ active: this.active }) }, this.label);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.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:"a55be2a07e554ab13a0d7e913710382d6126da57","aria-label":this.label,"aria-current":this.active,class:this.tabCva({active:this.active})},this.label)}};exports.eds_tab=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-D_kZU_4I.js"),r=require("./analytics-1cde8e4a-B_MD-9qW.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:"aa94a55d3ae658797df6ae75724238a17a80a169",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:"0e38c695467c272198a605efdb2705b14239756e",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:"525f56d02b41e236d3b713fb972b6803e3f908d5",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:"e5da088cec99dd0e40560b70fbd9940ac5a7f56f"})))}get el(){return i.getElement(this)}static get watchers(){return{tabs:["parseTabs"]}}};exports.eds_tabs_content=o;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r, c as n, h as s, g as o } from "./index-
|
|
2
|
-
import { s as l } from "./
|
|
1
|
+
import { r, c as n, h as s, g as o } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { s as l } from "./analytics-1cde8e4a-BDRcCMlV.mjs";
|
|
3
3
|
import { c as b } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
4
4
|
const h = class {
|
|
5
5
|
constructor(e) {
|
|
@@ -87,10 +87,10 @@ const h = class {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return s("div", { key: "
|
|
90
|
+
return s("div", { key: "aa94a55d3ae658797df6ae75724238a17a80a169", 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: "0e38c695467c272198a605efdb2705b14239756e", class: "scroller-x max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, s("nav", { key: "525f56d02b41e236d3b713fb972b6803e3f908d5", ref: (e) => this.tabContainer = e, class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((e, t) => {
|
|
91
91
|
const a = this.getTabOptions(e.active, t);
|
|
92
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: "
|
|
93
|
+
})), s("slot", { key: "e5da088cec99dd0e40560b70fbd9940ac5a7f56f" })));
|
|
94
94
|
}
|
|
95
95
|
get el() {
|
|
96
96
|
return o(this);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as i, c as o, h as s, g as n } from "./index-
|
|
2
|
-
import { s as b } from "./
|
|
1
|
+
import { r as i, c as o, h as s, g as n } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { s as b } from "./analytics-1cde8e4a-BDRcCMlV.mjs";
|
|
3
3
|
import { c as l } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
4
|
-
const
|
|
4
|
+
const d = "", c = d, f = class {
|
|
5
5
|
constructor(e) {
|
|
6
6
|
i(this, e), this.tabChange = o(this, "tabChange", 7), this.tabCva = l([
|
|
7
7
|
"relative px-16 py-12",
|
|
@@ -92,7 +92,7 @@ const c = "", d = c, f = class {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return s("div", { key: "
|
|
95
|
+
return s("div", { key: "f5c9e076fc1fb95b57e0148d85865ce62c14fbe7", 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-['']" }, s("div", { key: "7d382167fb62999e39b784ce8bfba24267c87a64", class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, s("nav", { key: "99bbfabd817bada1984ddf87a274bf9304a1e6a0", ref: (e) => this.tabContainer = e, class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((e, t) => {
|
|
96
96
|
const a = this.getTabOptions(e.active, t);
|
|
97
97
|
return s("eds-tab", Object.assign({}, a, { label: e.label || e.ariaLabel, url: e.url, active: t === this.activeIndex, onClick: () => this.handleTabClick(t, e.label) }));
|
|
98
98
|
}))));
|
|
@@ -106,7 +106,7 @@ const c = "", d = c, f = class {
|
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
|
-
f.style =
|
|
109
|
+
f.style = c;
|
|
110
110
|
export {
|
|
111
111
|
f as eds_tabs
|
|
112
112
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-D_kZU_4I.js"),o=require("./analytics-1cde8e4a-B_MD-9qW.js"),n=require("./index-39c58238-SQ-JC-LH.js"),b="",l=b,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(){if(Array.isArray(this.tabs))this.parsedTabs=this.tabs;else if(typeof this.tabs=="string")try{this.parsedTabs=JSON.parse(this.tabs)}catch{this.parsedTabs=[]}else 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:"f5c9e076fc1fb95b57e0148d85865ce62c14fbe7",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:"7d382167fb62999e39b784ce8bfba24267c87a64",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:"99bbfabd817bada1984ddf87a274bf9304a1e6a0",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=l;exports.eds_tabs=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-D_kZU_4I.js"),l=class{constructor(e){s.registerInstance(this,e),this.events=void 0,this.selectedEvent=null,this.parsedEvents=[]}parseEvents(e){let t;if(typeof e=="string")try{t=JSON.parse(e)}catch(i){console.error("Error parsing timeline events JSON",i),t=[]}else Array.isArray(e)?t=e:t=[];this.parsedEvents=Array.isArray(t)?t.map(i=>Object.assign(Object.assign({},i),{completed:i.completed==="true"||i.completed===!0})):[]}componentWillLoad(){this.parseEvents(this.events)}componentDidLoad(){this.el.querySelectorAll("eds-card-generic").forEach(t=>{this.emitContext(t)})}emitContext(e){const t=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});e.dispatchEvent(t)}handleEventClick(e){this.selectedEvent=e,this.modalRef&&typeof this.modalRef.open=="function"&&this.modalRef.open()}render(){return s.h("div",{key:"1ba4a93ce518b52f5821af75ae0587c44db92c6d",class:"max-w-sidebar mx-auto px-4 py-8"},s.h("div",{key:"3e019420ddd4bfab7800567c7130299ea47205c6",class:"relative"},s.h("div",{key:"df99ce8fb08232c46449d7485dd7cffcd04b64d6",class:"absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0"}),s.h("div",{key:"1b52694d2e8c3656910c02680aa8ce2e78b02997",class:"space-y-16"},this.parsedEvents.map((e,t)=>s.h("div",{class:"relative flex"},s.h("div",{class:`w-1/2 ${t%2===0?"pr-4":""}`},t%2===0&&s.h("eds-card-generic",{cardTitle:e.title,url:"#",description:e.description,"heading-level":"h2",tiny:!0,bg:!e.completed,"with-hover":"false",tags:JSON.stringify(e.completed?[{label:"completed",style:"accent"}]:[{label:"pending",style:"default"}]),onClick:()=>this.handleEventClick(e)})),s.h("div",{class:"flex items-center justify-center relative"},e.completed?s.h("div",{class:"w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center"}):s.h("div",{class:"w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center"})),s.h("div",{class:`w-1/2 ${t%2!==0?"pl-4":""}`},t%2!==0&&s.h("eds-card-generic",{cardTitle:e.title,url:"#",description:e.description,"heading-level":"h2",tiny:!0,bg:!e.completed,"with-hover":"false",tags:JSON.stringify(e.completed?[{label:"completed",style:"accent"}]:[{label:"pending",style:"default"}]),onClick:()=>this.handleEventClick(e)})))))))}get el(){return s.getElement(this)}static get watchers(){return{events:["parseEvents"]}}};exports.eds_timeline=l;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as l, h as s, g as a } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
const c = class {
|
|
3
3
|
constructor(e) {
|
|
4
|
-
|
|
4
|
+
l(this, e), this.events = void 0, this.selectedEvent = null, this.parsedEvents = [];
|
|
5
5
|
}
|
|
6
6
|
parseEvents(e) {
|
|
7
7
|
let t;
|
|
8
8
|
if (typeof e == "string")
|
|
9
9
|
try {
|
|
10
10
|
t = JSON.parse(e);
|
|
11
|
-
} catch (
|
|
12
|
-
console.error("Error parsing events JSON",
|
|
11
|
+
} catch (i) {
|
|
12
|
+
console.error("Error parsing timeline events JSON", i), t = [];
|
|
13
13
|
}
|
|
14
14
|
else Array.isArray(e) ? t = e : t = [];
|
|
15
|
-
this.parsedEvents = Array.isArray(t) ? t.map((
|
|
15
|
+
this.parsedEvents = Array.isArray(t) ? t.map((i) => Object.assign(Object.assign({}, i), { completed: i.completed === "true" || i.completed === !0 })) : [];
|
|
16
16
|
}
|
|
17
17
|
componentWillLoad() {
|
|
18
18
|
this.parseEvents(this.events);
|
|
@@ -35,10 +35,10 @@ const c = class {
|
|
|
35
35
|
this.selectedEvent = e, this.modalRef && typeof this.modalRef.open == "function" && this.modalRef.open();
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return s("div", { key: "
|
|
38
|
+
return s("div", { key: "1ba4a93ce518b52f5821af75ae0587c44db92c6d", class: "max-w-sidebar mx-auto px-4 py-8" }, s("div", { key: "3e019420ddd4bfab7800567c7130299ea47205c6", class: "relative" }, s("div", { key: "df99ce8fb08232c46449d7485dd7cffcd04b64d6", class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), s("div", { key: "1b52694d2e8c3656910c02680aa8ce2e78b02997", class: "space-y-16" }, this.parsedEvents.map((e, t) => s("div", { class: "relative flex" }, s("div", { class: `w-1/2 ${t % 2 === 0 ? "pr-4" : ""}` }, t % 2 === 0 && s("eds-card-generic", { cardTitle: e.title, url: "#", description: e.description, "heading-level": "h2", tiny: !0, bg: !e.completed, "with-hover": "false", tags: JSON.stringify(e.completed ? [{ label: "completed", style: "accent" }] : [{ label: "pending", style: "default" }]), onClick: () => this.handleEventClick(e) })), s("div", { class: "flex items-center justify-center relative" }, e.completed ? s("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" }) : s("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" })), s("div", { class: `w-1/2 ${t % 2 !== 0 ? "pl-4" : ""}` }, t % 2 !== 0 && s("eds-card-generic", { cardTitle: e.title, url: "#", description: e.description, "heading-level": "h2", tiny: !0, bg: !e.completed, "with-hover": "false", tags: JSON.stringify(e.completed ? [{ label: "completed", style: "accent" }] : [{ label: "pending", style: "default" }]), onClick: () => this.handleEventClick(e) })))))));
|
|
39
39
|
}
|
|
40
40
|
get el() {
|
|
41
|
-
return
|
|
41
|
+
return a(this);
|
|
42
42
|
}
|
|
43
43
|
static get watchers() {
|
|
44
44
|
return {
|