@ebrains/vue 0.9.3-beta → 1.1.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/README.md +4 -4
- package/analytics-d99780e3-Bay18Oil.mjs +28 -0
- package/analytics-d99780e3-DgvAss6l.js +1 -0
- package/{color-primary-palette_6.entry-CloKiAKI.mjs → color-primary-palette_6.entry-ATs14_8N.mjs} +15 -15
- package/color-primary-palette_6.entry-DEKKtdmx.js +1 -0
- package/{components-section.entry-BZl-upvI.js → components-section.entry-BeJviBek.js} +6 -6
- package/{components-section.entry-DEtf0V8r.mjs → components-section.entry-CIhTwzGP.mjs} +29 -20
- package/{correct-use-of-colors.entry-ajROARV6.js → correct-use-of-colors.entry-B7OZy6GP.js} +1 -1
- package/{correct-use-of-colors.entry-CvrVVhIA.mjs → correct-use-of-colors.entry-DUWE69EP.mjs} +2 -2
- package/{docs-palettes.entry-OWUmgE8-.mjs → docs-palettes.entry-h64S6-A4.mjs} +2 -2
- package/{docs-palettes.entry-CegYRhKo.js → docs-palettes.entry-mgW1Rez8.js} +1 -1
- package/{docs-tokens.entry-D720jRIB.mjs → docs-tokens.entry-8fIdMfiG.mjs} +2 -2
- package/{docs-tokens.entry-BIwcLv8t.js → docs-tokens.entry-lcA48bSL.js} +1 -1
- package/{eds-accordion.entry-Ct4upGzD.mjs → eds-accordion.entry-DUOVoYgQ.mjs} +7 -7
- package/{eds-accordion.entry-D5Qn9bWB.js → eds-accordion.entry-DcBD8nlx.js} +2 -2
- package/eds-alert.entry-D5Itlbb1.mjs +251 -0
- package/eds-alert.entry-DEUTt8yK.js +165 -0
- package/{eds-app-root.entry-C-CwU-8Y.js → eds-app-root.entry-CIXLfod1.js} +1 -1
- package/{eds-app-root.entry-DPM5X6uN.mjs → eds-app-root.entry-DdTcthz6.mjs} +2 -2
- package/{eds-timeline.entry-MDj5oqZG.js → eds-avatar_28.entry-B8onWfVW.js} +5133 -2723
- package/{eds-tabs.entry-DRJv1vVW.mjs → eds-avatar_28.entry-D_qLn5o3.mjs} +7300 -3116
- package/eds-breadcrumb.entry-BW9K7V4U.js +1 -0
- package/eds-breadcrumb.entry-DsdlQ4_L.mjs +104 -0
- package/eds-card-desc_2.entry-D5DCz71U.js +1 -0
- package/{eds-card-desc_2.entry-1GoZmzeQ.mjs → eds-card-desc_2.entry-DEWio8dP.mjs} +5 -5
- package/eds-card-generic.entry-DkEya266.js +1 -0
- package/{eds-card-generic.entry-CT7jqo3p.mjs → eds-card-generic.entry-SEl8JEp_.mjs} +4 -4
- package/eds-card-project.entry-Cq22ABZF.js +1 -0
- package/eds-card-project.entry-ZOpSBoyz.mjs +170 -0
- package/{eds-card-section.entry-CXFOGMeJ.mjs → eds-card-section.entry-BzylTLQC.mjs} +1 -1
- package/{eds-card-section.entry-BWDrARpV.js → eds-card-section.entry-DdYM8rV8.js} +1 -1
- package/eds-card-tags.entry-C_n1ZNm3.mjs +13 -0
- package/eds-card-tags.entry-CfH7Q4BG.js +1 -0
- package/{eds-card-tool.entry-CXluEgpO.mjs → eds-card-tool.entry-DTHdLwQI.mjs} +3 -3
- package/{eds-card-tool.entry-kxsYfCOl.js → eds-card-tool.entry-KOKAvEvo.js} +1 -1
- package/{eds-code-block.entry-BIGwear1.mjs → eds-code-block.entry-B604OhvT.mjs} +2 -2
- package/{eds-code-block.entry-B2tVEczx.js → eds-code-block.entry-VCJIU7ou.js} +2 -2
- package/{eds-cookies-preference.entry-BwTBWuc7.mjs → eds-cookies-preference.entry-3tfZ_O1U.mjs} +2 -2
- package/{eds-cookies-preference.entry-mbjVkbaf.js → eds-cookies-preference.entry-CLKoQPVj.js} +1 -1
- package/{eds-feedback.entry-DQZP2iFN.mjs → eds-feedback.entry-BmC2Ql0i.mjs} +10 -9
- package/{eds-feedback.entry-CxE8Mda2.js → eds-feedback.entry-D6nkFFjs.js} +1 -1
- package/eds-frame.entry-CoBQEpyT.js +1 -0
- package/eds-frame.entry-VlvwsJlk.mjs +67 -0
- package/eds-gauge.entry-CZlEaAkz.js +1 -0
- package/eds-gauge.entry-fM54L3uu.mjs +30 -0
- package/{eds-icon-arrow-diagonal.entry-BzMthIH3.js → eds-icon-arrow-diagonal.entry-CQ-h4bY9.js} +1 -1
- package/eds-icon-arrow-diagonal.entry-Du9_EV8C.mjs +13 -0
- package/eds-icon-arrow-right.entry-CCfGtNQc.mjs +13 -0
- package/eds-icon-arrow-right.entry-Cu5oN4py.js +1 -0
- package/eds-icon-bluesky.entry-B91N_152.mjs +13 -0
- package/eds-icon-bluesky.entry-lZNwdb9E.js +1 -0
- package/eds-icon-bookmark.entry-BCcsJWsc.mjs +13 -0
- package/{eds-icon-bookmark.entry-vBTnOEht.js → eds-icon-bookmark.entry-_mceTW12.js} +1 -1
- package/eds-icon-chevron-down.entry-CjfP9NnS.mjs +13 -0
- package/eds-icon-chevron-down.entry-M9t2pnrD.js +1 -0
- package/eds-icon-chevron-left.entry-Bvja7t_t.js +1 -0
- package/eds-icon-chevron-left.entry-CG50CLXP.mjs +13 -0
- package/eds-icon-chevron-right.entry-CkA3V-M-.js +1 -0
- package/eds-icon-chevron-right.entry-YwtfBuIX.mjs +13 -0
- package/eds-icon-chevron-up.entry-CAhyMgfW.mjs +13 -0
- package/eds-icon-chevron-up.entry-_PFTVNT0.js +1 -0
- package/{eds-icon-close.entry-4xYgUnOY.js → eds-icon-close.entry-BDiHqI23.js} +1 -1
- package/eds-icon-close.entry-DSXs_vI6.mjs +13 -0
- package/{eds-icon-copy.entry-C7-kaujN.mjs → eds-icon-copy.entry-DCo1IOIr.mjs} +2 -2
- package/eds-icon-copy.entry-DPbGeiC5.js +1 -0
- package/eds-icon-eu.entry-B5cE_Fue.js +1 -0
- package/eds-icon-eu.entry-CzrkQ6Me.mjs +13 -0
- package/eds-icon-external.entry-DXS_Rz4h.mjs +13 -0
- package/eds-icon-external.entry-DetBI23k.js +1 -0
- package/eds-icon-facebook.entry-BDTGMONJ.mjs +13 -0
- package/{eds-icon-facebook.entry-Do2GEkmS.js → eds-icon-facebook.entry-BgGom0CH.js} +1 -1
- package/{eds-icon-gitlab.entry-D7FC3Vn4.mjs → eds-icon-gitlab.entry-CAYVpbnU.mjs} +2 -2
- package/eds-icon-gitlab.entry-DoShP9Zc.js +1 -0
- package/{eds-icon-linkedin.entry-BYQGxGkX.js → eds-icon-linkedin.entry-Cf2HMi5t.js} +1 -1
- package/eds-icon-linkedin.entry-jAyFClAF.mjs +13 -0
- package/{eds-icon-loader.entry-C8zfXt5G.mjs → eds-icon-loader.entry-D0l-e0cS.mjs} +2 -2
- package/eds-icon-loader.entry-D57WH0m_.js +1 -0
- package/eds-icon-mastodon.entry-Bt1D0FBe.mjs +13 -0
- package/{eds-icon-mastodon.entry-C_TXVQJB.js → eds-icon-mastodon.entry-CTYew7dL.js} +1 -1
- package/{eds-icon-menu.entry-BtdrFvM4.js → eds-icon-menu.entry-CcgZSSE5.js} +1 -1
- package/{eds-icon-menu.entry-Dl7Xqhc3.mjs → eds-icon-menu.entry-un5QM8-4.mjs} +2 -2
- package/eds-icon-minus.entry-C4EDT_8I.mjs +13 -0
- package/eds-icon-minus.entry-CN9gFN8A.js +1 -0
- package/eds-icon-more.entry-DvmRVLUt.js +1 -0
- package/eds-icon-more.entry-n_HcRvbF.mjs +13 -0
- package/eds-icon-paper.entry-BXchbSEg.mjs +13 -0
- package/eds-icon-paper.entry-yNSQkPEw.js +1 -0
- package/eds-icon-plus.entry-CbFpTIFR.mjs +13 -0
- package/eds-icon-plus.entry-DA1W65Qr.js +1 -0
- package/eds-icon-portal.entry-BN5WoQXI.mjs +13 -0
- package/{eds-icon-portal.entry-DgJxnehb.js → eds-icon-portal.entry-CCwAGN8Y.js} +1 -1
- package/{eds-icon-private.entry-BtxnzDjj.js → eds-icon-private.entry-B-VFqlkY.js} +1 -1
- package/eds-icon-private.entry-S7EUOHaT.mjs +13 -0
- package/{eds-icon-public.entry-BKL5QMPS.js → eds-icon-public.entry-DdW8hTxZ.js} +1 -1
- package/eds-icon-public.entry-DjmRvwR8.mjs +13 -0
- package/eds-icon-search.entry-C9kA0DSl.mjs +13 -0
- package/{eds-icon-search.entry-BPeHLF3h.js → eds-icon-search.entry-JuKSX7FE.js} +1 -1
- package/{eds-icon-star.entry-DSHqvj6t.js → eds-icon-star.entry-CEQNjR66.js} +1 -1
- package/{eds-icon-star.entry-BP6oBKRH.mjs → eds-icon-star.entry-Dqsszfn7.mjs} +2 -2
- package/{eds-icon-success.entry-DoaW0KlM.js → eds-icon-success.entry-D6aLYU4C.js} +1 -1
- package/eds-icon-success.entry-Dri28PkX.mjs +13 -0
- package/{eds-icon-thumbs-down.entry-CFMyu-CY.js → eds-icon-thumbs-down.entry-CDXhZNp6.js} +1 -1
- package/eds-icon-thumbs-down.entry-CnyeXIZm.mjs +13 -0
- package/eds-icon-thumbs-up.entry-CJWAhbDc.js +1 -0
- package/eds-icon-thumbs-up.entry-DNZkUwSh.mjs +13 -0
- package/eds-icon-tutorial.entry-CQOwwW0X.mjs +13 -0
- package/eds-icon-tutorial.entry-vatT873n.js +1 -0
- package/{eds-icon-twitter.entry-Da3X1sWO.mjs → eds-icon-twitter.entry-BCdKEOgq.mjs} +2 -2
- package/{eds-icon-twitter.entry-BLvpOiN-.js → eds-icon-twitter.entry-dKILV47U.js} +1 -1
- package/eds-icon-unknown.entry-CkTGu7ZD.js +1 -0
- package/eds-icon-unknown.entry-HyqP4dn1.mjs +13 -0
- package/eds-icon-updown.entry-Kv06cvHM.js +1 -0
- package/eds-icon-updown.entry-Xfv3Iuwk.mjs +13 -0
- package/{eds-icon-user.entry-yNOw7Z1J.js → eds-icon-user.entry-CGdD_hJn.js} +1 -1
- package/eds-icon-user.entry-DlsBz1zY.mjs +13 -0
- package/{eds-icon-youtube.entry-CNH9Mxfw.js → eds-icon-youtube.entry-CZGYh2Vx.js} +1 -1
- package/eds-icon-youtube.entry-DzXnQlFA.mjs +13 -0
- package/{eds-matomo-notice.entry-DD0R8UUN.mjs → eds-matomo-notice.entry-CEN9eMlC.mjs} +26 -24
- package/{eds-matomo-notice.entry-cucI3F6F.js → eds-matomo-notice.entry-CWfk1H5v.js} +1 -1
- package/eds-pie.entry-B3U4X-HZ.mjs +68 -0
- package/eds-pie.entry-SAGUUq-x.js +1 -0
- package/eds-progress-bar.entry-B40FKDIY.mjs +39 -0
- package/eds-progress-bar.entry-CdtZMWRD.js +1 -0
- package/{eds-rating.entry-BJZaV3ft.js → eds-rating.entry-DPORnYP5.js} +1 -1
- package/{eds-rating.entry-BaneuoOA.mjs → eds-rating.entry-DXy8z13n.mjs} +2 -2
- package/eds-section-core_2.entry-CAghqI04.js +1 -0
- package/{eds-section-core_2.entry-dmjdE4gJ.mjs → eds-section-core_2.entry-pr5jOFIr.mjs} +9 -9
- package/{eds-spinner.entry-BwIR2ZO2.mjs → eds-spinner.entry-DS_0ySXR.mjs} +5 -5
- package/{eds-spinner.entry-Cdu4PTNJ.js → eds-spinner.entry-ZSmgjLeQ.js} +1 -1
- package/eds-splash-screen.entry-CAlwA7CE.js +1 -0
- package/eds-splash-screen.entry-CGIsWPg3.mjs +39 -0
- package/eds-switch.entry-BPvEdy6K.js +1 -0
- package/eds-switch.entry-C8_6uBOS.mjs +29 -0
- package/eds-timeline.entry-CaCmJ2Fh.mjs +46 -0
- package/eds-timeline.entry-OAW2pkRt.js +1 -0
- package/eds-toast-manager.entry-DUxqFVKY.js +1 -0
- package/eds-toast-manager.entry-DtpmGj_R.mjs +61 -0
- package/{eds-toast.entry-B1RS9m4v.js → eds-toast.entry-B1DPCLvR.js} +2 -2
- package/{eds-toast.entry-BNYlJ84c.mjs → eds-toast.entry-DiJpUvbs.mjs} +6 -6
- package/eds-tooltip.entry-Cbr9FQqk.mjs +31 -0
- package/eds-tooltip.entry-D6WNPimK.js +6 -0
- package/eds-trl.entry-B-_Wzeov.mjs +34 -0
- package/eds-trl.entry-BZ3G8aVz.js +1 -0
- package/generated/components.d.ts +2 -2
- package/incorrect-use-of-colors.entry-BMQ4bUVe.mjs +42 -0
- package/incorrect-use-of-colors.entry-C2WUenLf.js +1 -0
- package/index-BLX1G7Jb.js +21 -0
- package/index-BLyMQVPx.mjs +3520 -0
- package/index.js +1 -1
- package/index.mjs +18 -18
- package/{logo-space.entry-DxZ7v-wS.js → logo-space.entry-B9810IFA.js} +2 -2
- package/{logo-space.entry-GOUZQmu9.mjs → logo-space.entry-Dwb40YEh.mjs} +5 -5
- package/{logo-variations-horizontal_2.entry-CRdycvC5.js → logo-variations-horizontal_2.entry-BHbTdGyz.js} +3 -3
- package/{logo-variations-horizontal_2.entry-DimbU2IU.mjs → logo-variations-horizontal_2.entry-BjqUR-w3.mjs} +10 -10
- package/{logo-variations-tabs.entry-Uc3TLufg.mjs → logo-variations-tabs.entry-7OA38Lpm.mjs} +3 -3
- package/{logo-variations-tabs.entry-5kLk6tXo.js → logo-variations-tabs.entry-Dl2DbP8q.js} +1 -1
- package/{logo-wrong-usage.entry-13RSC-bu.js → logo-wrong-usage.entry-C3pp-83N.js} +1 -1
- package/{logo-wrong-usage.entry-CYcqaVbn.mjs → logo-wrong-usage.entry-Duywjfj_.mjs} +5 -5
- package/package.json +1 -1
- package/{svg-repository.entry-IIRiiFbB.mjs → svg-repository.entry-7M1slWVL.mjs} +11 -11
- package/{svg-repository.entry-Ck1z1CpA.js → svg-repository.entry-BqMp75Pt.js} +2 -2
- package/{token-list_3.entry-CLlUT7ge.js → token-list_3.entry-CaP5VVjM.js} +1 -1
- package/{token-list_3.entry-CQ9aUIVd.mjs → token-list_3.entry-CkO70Jcu.mjs} +4 -4
- package/token-ratios.entry-C2w-OpPQ.js +1 -0
- package/{token-ratios.entry-DkgSpwqw.mjs → token-ratios.entry-llhdL8NX.mjs} +5 -5
- package/token-spacing.entry-CK8RirEP.js +1 -0
- package/token-spacing.entry-DHyuHRXC.mjs +12 -0
- package/{token-typography.entry-CgJdJgCR.js → token-typography.entry-Bqw5oeKI.js} +1 -1
- package/{token-typography.entry-CrMCS1R0.mjs → token-typography.entry-DyzkmiA4.mjs} +2 -2
- package/analytics-44b1416b-3vYuu4Xs.mjs +0 -28
- package/analytics-44b1416b-ol77SdQE.js +0 -1
- package/color-2554aad6-CCcV5UJZ.mjs +0 -131
- package/color-2554aad6-D1hFGX4H.js +0 -1
- package/color-primary-palette_6.entry-DnBuZqiu.js +0 -1
- package/eds-alert.entry-D9ClanEp.js +0 -739
- package/eds-alert.entry-D9R2BeLM.mjs +0 -825
- package/eds-avatar_27.entry-7vAHtj7m.mjs +0 -33545
- package/eds-avatar_27.entry-CnmtSNAS.js +0 -31838
- package/eds-card-desc_2.entry-BfOXVZi0.js +0 -1
- package/eds-card-generic.entry-BKpFgWlR.js +0 -1
- package/eds-card-project.entry-BbLZfxAE.js +0 -1
- package/eds-card-project.entry-O11d3day.mjs +0 -44
- package/eds-card-tags.entry-Debtxwjy.mjs +0 -13
- package/eds-card-tags.entry-Do7oGWtS.js +0 -1
- package/eds-card-wrapper.entry-DnHxiCgs.js +0 -1
- package/eds-card-wrapper.entry-Dyrfqp6K.mjs +0 -24
- package/eds-frame.entry-BzGgy3Ya.mjs +0 -67
- package/eds-frame.entry-CGFInzxQ.js +0 -1
- package/eds-icon-arrow-diagonal.entry-D0nObc1G.mjs +0 -13
- package/eds-icon-arrow-right.entry-BGLDpWIT.mjs +0 -13
- package/eds-icon-arrow-right.entry-DPLcd0Dg.js +0 -1
- package/eds-icon-bluesky.entry-ZXTtFyYw.mjs +0 -13
- package/eds-icon-bluesky.entry-bnwTCSoD.js +0 -1
- package/eds-icon-bookmark.entry-BV8nKCLz.mjs +0 -13
- package/eds-icon-chevron-down.entry-9YeZRA_B.mjs +0 -13
- package/eds-icon-chevron-down.entry-BNSIoEMh.js +0 -1
- package/eds-icon-chevron-left.entry-BBKqN2RH.js +0 -1
- package/eds-icon-chevron-left.entry-Bm5LaJAt.mjs +0 -13
- package/eds-icon-chevron-right.entry-ChbDkmms.mjs +0 -13
- package/eds-icon-chevron-right.entry-CieI-tuC.js +0 -1
- package/eds-icon-chevron-up.entry-BqkKRoL-.js +0 -1
- package/eds-icon-chevron-up.entry-D3DkXrLO.mjs +0 -13
- package/eds-icon-close.entry-DQv18xqh.mjs +0 -13
- package/eds-icon-copy.entry-DQl13_LK.js +0 -1
- package/eds-icon-eu.entry-B8fNjCUv.js +0 -1
- package/eds-icon-eu.entry-DR5lezcj.mjs +0 -13
- package/eds-icon-external.entry-BaIofxzF.js +0 -1
- package/eds-icon-external.entry-DvY_6Ld0.mjs +0 -13
- package/eds-icon-facebook.entry-D7FANZCQ.mjs +0 -13
- package/eds-icon-gitlab.entry-p78Zzlxs.js +0 -1
- package/eds-icon-linkedin.entry-CchbiOIO.mjs +0 -13
- package/eds-icon-loader.entry-Cw7oYrm3.js +0 -1
- package/eds-icon-mastodon.entry-BOgFKnbj.mjs +0 -13
- package/eds-icon-minus.entry-BA5Al4_F.js +0 -1
- package/eds-icon-minus.entry-Bfm78Q48.mjs +0 -13
- package/eds-icon-more.entry-CHzRpt-L.mjs +0 -13
- package/eds-icon-more.entry-mAUgJoHF.js +0 -1
- package/eds-icon-paper.entry-DEiOlvnw.mjs +0 -13
- package/eds-icon-paper.entry-DtE79_lg.js +0 -1
- package/eds-icon-plus.entry-BCc2gk-Y.js +0 -1
- package/eds-icon-plus.entry-DxdfImnp.mjs +0 -13
- package/eds-icon-portal.entry-DygPWj8q.mjs +0 -13
- package/eds-icon-private.entry-ClDqtUa4.mjs +0 -13
- package/eds-icon-public.entry-D0qOA8dF.mjs +0 -13
- package/eds-icon-search.entry-iegCSWzH.mjs +0 -13
- package/eds-icon-success.entry-B2vqFpAU.mjs +0 -13
- package/eds-icon-thumbs-down.entry-CmV8Km2F.mjs +0 -13
- package/eds-icon-thumbs-up.entry-8RPnzfnW.js +0 -1
- package/eds-icon-thumbs-up.entry-DhfFxKPT.mjs +0 -13
- package/eds-icon-tutorial.entry-B3NRKCnl.mjs +0 -13
- package/eds-icon-tutorial.entry-ImfBSV9b.js +0 -1
- package/eds-icon-unknown.entry--9_uerA-.js +0 -1
- package/eds-icon-unknown.entry-DH3YcJSO.mjs +0 -13
- package/eds-icon-updown.entry-BU4FzzAC.js +0 -1
- package/eds-icon-updown.entry-D6t6TWtG.mjs +0 -13
- package/eds-icon-user.entry-pb-JM7tE.mjs +0 -13
- package/eds-icon-youtube.entry-CIx5D-1i.mjs +0 -13
- package/eds-login_2.entry-shWfmpH4.mjs +0 -981
- package/eds-login_2.entry-swrZnwUp.js +0 -9
- package/eds-pagination_2.entry-Cmqe9RbB.mjs +0 -258
- package/eds-pagination_2.entry-DFO92YFs.js +0 -1
- package/eds-progress-bar.entry-CIkJEHf9.mjs +0 -21
- package/eds-progress-bar.entry-CUoQ0OmO.js +0 -1
- package/eds-section-core_2.entry-wnSqKsfm.js +0 -1
- package/eds-switch.entry-8g9JkW0c.js +0 -1
- package/eds-switch.entry-BOxsYeYC.mjs +0 -20
- package/eds-tabs.entry-CdlLmrmB.js +0 -7794
- package/eds-timeline.entry-AsApD57a.mjs +0 -7839
- package/eds-toast-manager.entry-Bri3h_MP.mjs +0 -36
- package/eds-toast-manager.entry-zrDxthPz.js +0 -1
- package/eds-tooltip.entry-B6UpJ0wf.js +0 -1
- package/eds-tooltip.entry-Ci5te9B_.mjs +0 -77
- package/eds-trl.entry-CuUDfGYw.js +0 -1
- package/eds-trl.entry-Dz7LP4G1.mjs +0 -34
- package/incorrect-use-of-colors.entry-CYXsk3TR.mjs +0 -42
- package/incorrect-use-of-colors.entry-CfmdbA7l.js +0 -1
- package/index-7ljGsgwC.js +0 -21
- package/index-l365C9dI.mjs +0 -3617
- package/toastManager-d9eee791-CEYNwx25.mjs +0 -30
- package/toastManager-d9eee791-DvR_vUPI.js +0 -1
- package/token-ratios.entry-Dtrkv16c.js +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { r as k, h as r, H as w } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
const S = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-full{border-radius:9999px}.overflow-hidden{overflow:hidden}.bg-inverse{background-color:var(--white)}.bg-current{background-color:currentColor}.bg-dark{background-color:var(--grey-300)}.bg-darker{background-color:var(--grey-400)}.bg-default{background-color:var(--grey-200)}.bg-strong{background-color:var(--grey-700)}.bg-strongest{background-color:var(--black)}.inset-0{inset:0rem}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.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)}.text-default{color:var(--black)}.w-8{width:0.5rem}.h-8{height:0.5rem}.mr-4{margin-right:0.25rem}:host{display:block}.wrapper{display:flex;align-items:center;justify-content:center;height:100%}.pie-chart{overflow:visible}.slice-label{font-size:var(--font-size-chart-label);font-weight:var(--font-weight-chart-label);fill:var(--color-text);pointer-events:none}.legend{list-style:none;margin:0;padding:0 0 0 1rem}.legend-item{display:flex;align-items:center;margin-bottom:0.5rem;outline:none}.legend-item:focus{outline:2px dashed var(--color-primary)}.legend-swatch{width:1rem;height:1rem;border-radius:50%;margin-right:0.5rem}.legend-label{font-size:var(--font-size-base);color:var(--color-text)}", x = S, g = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
k(this, t), this.size = 200, this.slices = [], this.thickness = 1, this.display = "value", this.legend = !0, this.colorScheme = "semantic";
|
|
5
|
+
}
|
|
6
|
+
parseSlices() {
|
|
7
|
+
if (typeof this.slices == "string")
|
|
8
|
+
try {
|
|
9
|
+
return JSON.parse(this.slices);
|
|
10
|
+
} catch {
|
|
11
|
+
console.warn("eds-pie: invalid slices JSON");
|
|
12
|
+
}
|
|
13
|
+
return Array.isArray(this.slices) ? this.slices : [];
|
|
14
|
+
}
|
|
15
|
+
polarToCartesian(t, i, l, c) {
|
|
16
|
+
const o = (c - 90) * (Math.PI / 180);
|
|
17
|
+
return { x: t + l * Math.cos(o), y: i + l * Math.sin(o) };
|
|
18
|
+
}
|
|
19
|
+
describeArc(t, i, l, c, o) {
|
|
20
|
+
const n = this.polarToCartesian(t, i, l, o), h = this.polarToCartesian(t, i, l, c), a = o - c <= 180 ? "0" : "1";
|
|
21
|
+
return [`M ${n.x} ${n.y}`, `A ${l} ${l} 0 ${a} 0 ${h.x} ${h.y}`, `L ${t} ${i}`, "Z"].join(" ");
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
const t = this.parseSlices();
|
|
25
|
+
t.length > g.MAX_SLICES && console.warn(`eds-pie: too many slices (${t.length}), results may overlap.`);
|
|
26
|
+
const i = t.reduce((e, s) => e + s.value, 0) || 1, l = [...g.PALETTES[this.colorScheme]], c = [...t].sort((e, s) => s.value - e.value);
|
|
27
|
+
let o = 0;
|
|
28
|
+
const n = c.map((e) => {
|
|
29
|
+
const s = e.value / i * 360, v = o, d = o + s;
|
|
30
|
+
o = d;
|
|
31
|
+
const f = e.color || l.shift() || "var(--color-chart-neutral-1)";
|
|
32
|
+
return Object.assign(Object.assign({}, e), { start: v, end: d, color: f });
|
|
33
|
+
}), h = this.size, a = h / 2, m = Math.min(Math.max(this.thickness, 0.5), 1), u = a * (1 - m), p = a, y = (a + u) / 2, b = n.map((e) => `${e.label}: ${this.display === "percent" ? `${Math.round(e.value / i * 100)}%` : e.value}`).join(", ");
|
|
34
|
+
return r(w, null, r("div", { class: "wrapper" }, r("svg", { width: h, height: h, role: "img", "aria-label": `Pie chart: ${b}`, class: "pie-chart" }, r("title", null, "Pie chart"), r("g", null, n.map((e) => r("path", { key: e.id, d: this.describeArc(a, a, p, e.start, e.end), fill: e.color })), u > 0 && r("circle", { cx: a, cy: a, r: u, fill: "var(--white)" }), n.map((e) => {
|
|
35
|
+
const s = e.start + (e.end - e.start) / 2, { x: v, y: d } = this.polarToCartesian(a, a, y, s), f = this.display === "percent" ? `${Math.round(e.value / i * 100)}%` : String(e.value);
|
|
36
|
+
return r("text", { key: e.id, x: v, y: d, class: "f-ui-02", "text-anchor": "middle", "alignment-baseline": "middle" }, f);
|
|
37
|
+
}))), this.legend && r("ul", { class: "legend", role: "list" }, n.map((e) => r("li", { key: e.id, role: "listitem", tabindex: "0", class: "legend-item" }, r("span", { class: "legend-swatch", style: { backgroundColor: e.color } }), r("span", { class: "legend-label" }, e.label))))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
g.MAX_SLICES = 9;
|
|
41
|
+
g.PALETTES = {
|
|
42
|
+
semantic: [
|
|
43
|
+
"var(--color-chart-accent)",
|
|
44
|
+
"var(--color-chart-strong)",
|
|
45
|
+
"var(--color-chart-accent-dark)",
|
|
46
|
+
"var(--color-chart-lighter)",
|
|
47
|
+
"var(--color-chart-accent-light)",
|
|
48
|
+
"var(--color-chart-lightest)",
|
|
49
|
+
"var(--color-chart-accent-lighter)",
|
|
50
|
+
"var(--color-chart-darker)",
|
|
51
|
+
"var(--color-chart-accent-lightest)"
|
|
52
|
+
],
|
|
53
|
+
mono: [
|
|
54
|
+
"var(--grey-700)",
|
|
55
|
+
"var(--grey-500)",
|
|
56
|
+
"var(--grey-300)",
|
|
57
|
+
"var(--grey-100)",
|
|
58
|
+
"var(--grey-800)",
|
|
59
|
+
"var(--grey-600)",
|
|
60
|
+
"var(--grey-400)",
|
|
61
|
+
"var(--grey-200)",
|
|
62
|
+
"var(--grey-900)"
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
g.style = x;
|
|
66
|
+
export {
|
|
67
|
+
g as eds_pie
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BLX1G7Jb.js"),k=".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-full{border-radius:9999px}.overflow-hidden{overflow:hidden}.bg-inverse{background-color:var(--white)}.bg-current{background-color:currentColor}.bg-dark{background-color:var(--grey-300)}.bg-darker{background-color:var(--grey-400)}.bg-default{background-color:var(--grey-200)}.bg-strong{background-color:var(--grey-700)}.bg-strongest{background-color:var(--black)}.inset-0{inset:0rem}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.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)}.text-default{color:var(--black)}.w-8{width:0.5rem}.h-8{height:0.5rem}.mr-4{margin-right:0.25rem}:host{display:block}.wrapper{display:flex;align-items:center;justify-content:center;height:100%}.pie-chart{overflow:visible}.slice-label{font-size:var(--font-size-chart-label);font-weight:var(--font-weight-chart-label);fill:var(--color-text);pointer-events:none}.legend{list-style:none;margin:0;padding:0 0 0 1rem}.legend-item{display:flex;align-items:center;margin-bottom:0.5rem;outline:none}.legend-item:focus{outline:2px dashed var(--color-primary)}.legend-swatch{width:1rem;height:1rem;border-radius:50%;margin-right:0.5rem}.legend-label{font-size:var(--font-size-base);color:var(--color-text)}",S=k,g=class{constructor(r){t.registerInstance(this,r),this.size=200,this.slices=[],this.thickness=1,this.display="value",this.legend=!0,this.colorScheme="semantic"}parseSlices(){if(typeof this.slices=="string")try{return JSON.parse(this.slices)}catch{console.warn("eds-pie: invalid slices JSON")}return Array.isArray(this.slices)?this.slices:[]}polarToCartesian(r,i,l,c){const o=(c-90)*(Math.PI/180);return{x:r+l*Math.cos(o),y:i+l*Math.sin(o)}}describeArc(r,i,l,c,o){const n=this.polarToCartesian(r,i,l,o),h=this.polarToCartesian(r,i,l,c),a=o-c<=180?"0":"1";return[`M ${n.x} ${n.y}`,`A ${l} ${l} 0 ${a} 0 ${h.x} ${h.y}`,`L ${r} ${i}`,"Z"].join(" ")}render(){const r=this.parseSlices();r.length>g.MAX_SLICES&&console.warn(`eds-pie: too many slices (${r.length}), results may overlap.`);const i=r.reduce((e,s)=>e+s.value,0)||1,l=[...g.PALETTES[this.colorScheme]],c=[...r].sort((e,s)=>s.value-e.value);let o=0;const n=c.map(e=>{const s=e.value/i*360,v=o,d=o+s;o=d;const f=e.color||l.shift()||"var(--color-chart-neutral-1)";return Object.assign(Object.assign({},e),{start:v,end:d,color:f})}),h=this.size,a=h/2,y=Math.min(Math.max(this.thickness,.5),1),u=a*(1-y),m=a,p=(a+u)/2,b=n.map(e=>`${e.label}: ${this.display==="percent"?`${Math.round(e.value/i*100)}%`:e.value}`).join(", ");return t.h(t.Host,null,t.h("div",{class:"wrapper"},t.h("svg",{width:h,height:h,role:"img","aria-label":`Pie chart: ${b}`,class:"pie-chart"},t.h("title",null,"Pie chart"),t.h("g",null,n.map(e=>t.h("path",{key:e.id,d:this.describeArc(a,a,m,e.start,e.end),fill:e.color})),u>0&&t.h("circle",{cx:a,cy:a,r:u,fill:"var(--white)"}),n.map(e=>{const s=e.start+(e.end-e.start)/2,{x:v,y:d}=this.polarToCartesian(a,a,p,s),f=this.display==="percent"?`${Math.round(e.value/i*100)}%`:String(e.value);return t.h("text",{key:e.id,x:v,y:d,class:"f-ui-02","text-anchor":"middle","alignment-baseline":"middle"},f)}))),this.legend&&t.h("ul",{class:"legend",role:"list"},n.map(e=>t.h("li",{key:e.id,role:"listitem",tabindex:"0",class:"legend-item"},t.h("span",{class:"legend-swatch",style:{backgroundColor:e.color}}),t.h("span",{class:"legend-label"},e.label))))))}};g.MAX_SLICES=9;g.PALETTES={semantic:["var(--color-chart-accent)","var(--color-chart-strong)","var(--color-chart-accent-dark)","var(--color-chart-lighter)","var(--color-chart-accent-light)","var(--color-chart-lightest)","var(--color-chart-accent-lighter)","var(--color-chart-darker)","var(--color-chart-accent-lightest)"],mono:["var(--grey-700)","var(--grey-500)","var(--grey-300)","var(--grey-100)","var(--grey-800)","var(--grey-600)","var(--grey-400)","var(--grey-200)","var(--grey-900)"]};g.style=S;exports.eds_pie=g;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as o, h as t } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
const n = ".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)}.absolute{position:absolute}.relative{position:relative}.z-0{z-index:0}.z-10{z-index:10}.inset-0{inset:0rem}.pointer-events-none{pointer-events:none}", i = n, s = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
o(this, e), this.value = 0, this.rounded = !0;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Method to update the progress value externally.
|
|
8
|
+
* @param newValue The new progress value (0-100).
|
|
9
|
+
*/
|
|
10
|
+
async updateValue(e) {
|
|
11
|
+
this.value = Math.min(100, Math.max(0, e));
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const e = Math.min(100, Math.max(0, this.value)), r = [
|
|
15
|
+
"outer",
|
|
16
|
+
"w-full",
|
|
17
|
+
"h-24",
|
|
18
|
+
"bg-default",
|
|
19
|
+
"border",
|
|
20
|
+
"border-softer",
|
|
21
|
+
"overflow-hidden",
|
|
22
|
+
this.rounded ? "rounded-lg" : "",
|
|
23
|
+
"relative"
|
|
24
|
+
].filter(Boolean).join(" "), a = [
|
|
25
|
+
"inner",
|
|
26
|
+
"h-full",
|
|
27
|
+
"transition-all",
|
|
28
|
+
"duration-300",
|
|
29
|
+
"bg-accent",
|
|
30
|
+
e > 0 && this.rounded ? "rounded-lg" : "",
|
|
31
|
+
"z-0"
|
|
32
|
+
].filter(Boolean).join(" ");
|
|
33
|
+
return t("div", { key: "3360c1a9e61c83fee5312d007f6d2965a8983eba", role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": e, "aria-valuetext": `${e}%`, class: r }, t("div", { key: "7210dc5931f08626b286c30ae790a3a864533632", class: a, style: { width: `${e}%` } }), t("div", { key: "7586cd593b4e851f4605ad33b96781841ee0b1aa", class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, t("span", { key: "21fa3de543e5e717ed4fd76c689aa47c3fa6a853", class: "text-default f-body-02" }, e, "%")));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
s.style = i;
|
|
37
|
+
export {
|
|
38
|
+
s as eds_progress_bar
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BLX1G7Jb.js"),n=".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)}.absolute{position:absolute}.relative{position:relative}.z-0{z-index:0}.z-10{z-index:10}.inset-0{inset:0rem}.pointer-events-none{pointer-events:none}",i=n,r=class{constructor(e){t.registerInstance(this,e),this.value=0,this.rounded=!0}async updateValue(e){this.value=Math.min(100,Math.max(0,e))}render(){const e=Math.min(100,Math.max(0,this.value)),a=["outer","w-full","h-24","bg-default","border","border-softer","overflow-hidden",this.rounded?"rounded-lg":"","relative"].filter(Boolean).join(" "),o=["inner","h-full","transition-all","duration-300","bg-accent",e>0&&this.rounded?"rounded-lg":"","z-0"].filter(Boolean).join(" ");return t.h("div",{key:"3360c1a9e61c83fee5312d007f6d2965a8983eba",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e,"aria-valuetext":`${e}%`,class:a},t.h("div",{key:"7210dc5931f08626b286c30ae790a3a864533632",class:o,style:{width:`${e}%`}}),t.h("div",{key:"7586cd593b4e851f4605ad33b96781841ee0b1aa",class:"absolute inset-0 flex items-center justify-center pointer-events-none z-10"},t.h("span",{key:"21fa3de543e5e717ed4fd76c689aa47c3fa6a853",class:"text-default f-body-02"},e,"%")))}};r.style=i;exports.eds_progress_bar=r;
|
|
@@ -1 +1 @@
|
|
|
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-BLX1G7Jb.js"),s=":host{display:inline-block}.block{display:block}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.0625rem * var(--tw-space-x-reverse));margin-left:calc(0.0625rem * calc(1 - var(--tw-space-x-reverse)))}",o=s,n=class{constructor(t){r.registerInstance(this,t),this.rating=r.createEvent(this,"rating",7),this.ratingType="star",this.ratingCount=5,this.selectedRating=0}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-button").forEach(e=>{this.emitContext(e)})}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.selectedRating}});t.dispatchEvent(e)}handleClick(t){this.selectedRating=t,this.rating.emit(t)}render(){return r.h("div",{key:"6686575f0b8b9017bf19b105208f6adbfd46dabd",role:"radiogroup",class:"stars flex space-x-1 my-8"},Array.from({length:this.ratingCount},(t,e)=>{const a=e+1,i=a<=this.selectedRating;return r.h("eds-button",{icon:this.ratingType,role:"radio","aria-checked":i?"true":"false","aria-label":this.ratingType,onClick:()=>this.handleClick(a),tabIndex:this.selectedRating===0&&e===0||i?0:-1,intent:i?"primary":"ghost",size:"large","extra-class":"p-2"})}))}get el(){return r.getElement(this)}};n.style=o;exports.eds_rating=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, c as n, h as i, g as o } from "./index-
|
|
1
|
+
import { r as s, c as n, h as i, g as o } from "./index-BLyMQVPx.mjs";
|
|
2
2
|
const l = ":host{display:inline-block}.block{display:block}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(0.0625rem * var(--tw-space-x-reverse));margin-left:calc(0.0625rem * calc(1 - var(--tw-space-x-reverse)))}", c = l, m = class {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
s(this, t), this.rating = n(this, "rating", 7), this.ratingType = "star", this.ratingCount = 5, this.selectedRating = 0;
|
|
@@ -35,7 +35,7 @@ const l = ":host{display:inline-block}.block{display:block}.stars{display:flex;g
|
|
|
35
35
|
this.selectedRating = t, this.rating.emit(t);
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return i("div", { key: "
|
|
38
|
+
return i("div", { key: "6686575f0b8b9017bf19b105208f6adbfd46dabd", role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (t, e) => {
|
|
39
39
|
const a = e + 1, r = a <= this.selectedRating;
|
|
40
40
|
return i("eds-button", {
|
|
41
41
|
icon: this.ratingType,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BLX1G7Jb.js"),n="",a=n,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:"43f8d599041ae0c9761988fdec4872ec4a8ca037"},t.h("eds-section-heading",{key:"d120ddd851a0485e2edb43e2a6f508a661f35c07",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"9818b82a3eebcb741f5bccc9781e4212f2c5fa3d"}))}};s.style=a;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:"740ed8b3208e07091a1f4c79888e172dec33773a",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},t.h(i,{key:"4d4ceef35b7cb06bfbff2fdae47e66dd7ac10c49",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=c;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as t, h as s } from "./index-
|
|
2
|
-
const a = "", n = a,
|
|
1
|
+
import { r as t, h as s } from "./index-BLyMQVPx.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: "43f8d599041ae0c9761988fdec4872ec4a8ca037" }, s("eds-section-heading", { key: "d120ddd851a0485e2edb43e2a6f508a661f35c07", headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), s("slot", { key: "9818b82a3eebcb741f5bccc9781e4212f2c5fa3d" }));
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
const
|
|
11
|
+
c.style = n;
|
|
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;
|
|
15
15
|
}
|
|
@@ -25,15 +25,15 @@ const c = 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: "740ed8b3208e07091a1f4c79888e172dec33773a", class: {
|
|
29
29
|
"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8": !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: "4d4ceef35b7cb06bfbff2fdae47e66dd7ac10c49", class: this.getHeadingClass() }, this.sectionTitle));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
c as eds_section_core,
|
|
38
|
+
d as eds_section_heading
|
|
39
39
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as i, h as s, H as r } from "./index-
|
|
2
|
-
const n = ":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}", o = n,
|
|
1
|
+
import { r as i, h as s, H as r } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
const n = ":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}", o = n, l = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
i(this, e), this.size = "1rem", this.thickness = "10px", this.borderColor = "var(--grey-400)", this.bottomColor = "var(--grey-900)", this.background = "var(--grey-200)", this.fullscreen = !1;
|
|
5
5
|
}
|
|
@@ -27,10 +27,10 @@ const n = ":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;
|
|
|
27
27
|
alignItems: "center",
|
|
28
28
|
justifyContent: "center"
|
|
29
29
|
};
|
|
30
|
-
return s(r, { key: "
|
|
30
|
+
return s(r, { key: "f687ccbbb05840b7699202f3758ec4a8d0de1bc4" }, s("div", { key: "4bb5c697f1ccd90d2d65d519fcfb3ec809b106ac", class: "spinner-overlay", style: t }, s("span", { key: "a07722d9ee9c94d03d9766a4b297a498998c00be", class: "spinner", style: e })));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
l.style = o;
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
l as eds_spinner
|
|
36
36
|
};
|
|
@@ -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-BLX1G7Jb.js"),r=":host{display:block}.spinner{box-sizing:border-box;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}",n=r,t=class{constructor(s){e.registerInstance(this,s),this.size="1rem",this.thickness="10px",this.borderColor="var(--grey-400)",this.bottomColor="var(--grey-900)",this.background="var(--grey-200)",this.fullscreen=!1}render(){const s=Object.assign({width:this.size,height:this.size,border:`${this.thickness} solid ${this.borderColor}`,borderBottomColor:this.bottomColor},!this.fullscreen&&{display:"inline-block"}),i=this.fullscreen?{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",zIndex:"9999999",backgroundColor:this.background,display:"flex",alignItems:"center",justifyContent:"center"}:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",zIndex:"1000",backgroundColor:this.background,display:"flex",alignItems:"center",justifyContent:"center"};return e.h(e.Host,{key:"f687ccbbb05840b7699202f3758ec4a8d0de1bc4"},e.h("div",{key:"4bb5c697f1ccd90d2d65d519fcfb3ec809b106ac",class:"spinner-overlay",style:i},e.h("span",{key:"a07722d9ee9c94d03d9766a4b297a498998c00be",class:"spinner",style:s})))}};t.style=n;exports.eds_spinner=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BLX1G7Jb.js"),n=".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}",r=n,i=class{constructor(s){e.registerInstance(this,s),this.splash=e.createEvent(this,"splash",7),this.inverse=!1,this.initPromise=void 0,this.isVisible=!0}componentWillLoad(){this.initPromise&&this.handleInitPromise(this.initPromise)}async watchInitPromise(s){s&&this.handleInitPromise(s)}async handleInitPromise(s){try{await s,this.hideSplash()}catch(t){this.splash.emit({type:"error",message:t.message||"Unknown error"})}}handleHideSplash(){this.hideSplash()}hideSplash(){this.isVisible=!1,this.splash.emit({type:"hidden",message:"Splash screen hidden successfully"})}render(){return this.isVisible?e.h(e.Host,null,e.h("div",{class:"splash-overlay",style:{background:this.inverse?"black":"var(--grey-200)"}},e.h("div",{class:"logo-container"},this.inverse?e.h("eds-logo",{orientation:"vertical",type:"color-white"}):e.h("eds-logo",{orientation:"vertical",type:"color"})),e.h("div",{class:"content-container"},e.h("eds-spinner",{size:"1rem",thickness:"3px","border-color":"var(--grey-400)","bottom-color":"var(--grey-900)",background:"none",fullscreen:!1})))):null}static get watchers(){return{initPromise:["watchInitPromise"]}}};i.style=r;exports.eds_splash_screen=i;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as t, c as r, h as e, H as n } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
const o = ".splash-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999999;background-color:var(--grey-200);display:flex;flex-direction:column;align-items:center;justify-content:center}.logo-container{width:200px;height:200px;margin-bottom:1rem}.content-container{position:relative;width:5rem;height:5rem;display:flex;align-items:center;justify-content:center}", a = o, l = class {
|
|
3
|
+
constructor(s) {
|
|
4
|
+
t(this, s), this.splash = r(this, "splash", 7), this.inverse = !1, this.initPromise = void 0, this.isVisible = !0;
|
|
5
|
+
}
|
|
6
|
+
// When the component loads, check if there is a promise.
|
|
7
|
+
componentWillLoad() {
|
|
8
|
+
this.initPromise && this.handleInitPromise(this.initPromise);
|
|
9
|
+
}
|
|
10
|
+
// Watch for changes on initPromise.
|
|
11
|
+
async watchInitPromise(s) {
|
|
12
|
+
s && this.handleInitPromise(s);
|
|
13
|
+
}
|
|
14
|
+
async handleInitPromise(s) {
|
|
15
|
+
try {
|
|
16
|
+
await s, this.hideSplash();
|
|
17
|
+
} catch (i) {
|
|
18
|
+
this.splash.emit({ type: "error", message: i.message || "Unknown error" });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
handleHideSplash() {
|
|
22
|
+
this.hideSplash();
|
|
23
|
+
}
|
|
24
|
+
hideSplash() {
|
|
25
|
+
this.isVisible = !1, this.splash.emit({ type: "hidden", message: "Splash screen hidden successfully" });
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return this.isVisible ? e(n, null, e("div", { class: "splash-overlay", style: { background: this.inverse ? "black" : "var(--grey-200)" } }, e("div", { class: "logo-container" }, this.inverse ? e("eds-logo", { orientation: "vertical", type: "color-white" }) : e("eds-logo", { orientation: "vertical", type: "color" })), e("div", { class: "content-container" }, e("eds-spinner", { size: "1rem", thickness: "3px", "border-color": "var(--grey-400)", "bottom-color": "var(--grey-900)", background: "none", fullscreen: !1 })))) : null;
|
|
29
|
+
}
|
|
30
|
+
static get watchers() {
|
|
31
|
+
return {
|
|
32
|
+
initPromise: ["watchInitPromise"]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
l.style = a;
|
|
37
|
+
export {
|
|
38
|
+
l as eds_splash_screen
|
|
39
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BLX1G7Jb.js"),s=require("./analytics-d99780e3-DgvAss6l.js"),c=":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{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)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}",l=c,i=class{constructor(t){e.registerInstance(this,t),this.uiswitch=e.createEvent(this,"uiswitch",7),this.toggleSwitch=()=>{this.disabled||(this.checked=!this.checked,this.uiswitch.emit(this.checked),s.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:this.checked?this.labelOn:this.labelOff||"",action:"checked"}))},this.checked=!1,this.disabled=!1,this.labelOn="",this.labelOff=""}render(){const t=this.labelOn||this.labelOff?this.checked?this.labelOn:this.labelOff:"Toggle switch";return e.h("div",{key:"385c1463b11e83ff5b982218e0f28c54299210fd",class:"switch-container"},this.labelOff&&e.h("span",{key:"f7e825a34487a1cec466b5172d77c2802029607c",class:"switch-label switch-label--off mr-8"},this.labelOff),e.h("button",{key:"fd1e8ffab675ee79edc6b99de4dfff42545d91af",type:"button",role:"switch","aria-checked":this.checked?"true":"false","aria-disabled":this.disabled?"true":"false","aria-label":t,class:{switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled},onClick:this.toggleSwitch,disabled:this.disabled},e.h("span",{key:"0d185957ffe2577ffc8798c298820c84c838a2a4",class:"switch-handle"})),this.labelOn&&e.h("span",{key:"f12b752ff94a363bb9593bd00cf43e7110e4399e",class:"switch-label switch-label--on ml-8"},this.labelOn))}get el(){return e.getElement(this)}};i.style=l;exports.eds_switch=i;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as i, c as s, h as e, g as c } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
import { s as a } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
+
const l = ":host{display:inline-block}.switch-container{display:inline-flex;align-items:center}.switch-label{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)}button.switch{position:relative;display:inline-flex;align-items:center;width:50px;height:26px;border:none;border-radius:13px;background-color:#ccc;padding:0;cursor:pointer;transition:background-color 0.2s}button.switch:focus{outline:none;box-shadow:0 0 0 2px #007aff}button.switch.switch--checked{background-color:var(--green-500)}button.switch.switch--disabled{opacity:0.6;cursor:not-allowed}.switch-handle{position:absolute;width:22px;height:22px;border-radius:50%;background-color:#fff;top:2px;left:2px;transition:transform 0.2s}button.switch.switch--checked .switch-handle{transform:translateX(24px)}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}", h = l, n = class {
|
|
4
|
+
constructor(t) {
|
|
5
|
+
i(this, t), this.uiswitch = s(this, "uiswitch", 7), this.toggleSwitch = () => {
|
|
6
|
+
this.disabled || (this.checked = !this.checked, this.uiswitch.emit(this.checked), a({
|
|
7
|
+
category: "ui-component",
|
|
8
|
+
tag: this.el.tagName.toLowerCase(),
|
|
9
|
+
name: this.checked ? this.labelOn : this.labelOff || "",
|
|
10
|
+
action: "checked"
|
|
11
|
+
}));
|
|
12
|
+
}, this.checked = !1, this.disabled = !1, this.labelOn = "", this.labelOff = "";
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = this.labelOn || this.labelOff ? this.checked ? this.labelOn : this.labelOff : "Toggle switch";
|
|
16
|
+
return e("div", { key: "385c1463b11e83ff5b982218e0f28c54299210fd", class: "switch-container" }, this.labelOff && e("span", { key: "f7e825a34487a1cec466b5172d77c2802029607c", class: "switch-label switch-label--off mr-8" }, this.labelOff), e("button", { key: "fd1e8ffab675ee79edc6b99de4dfff42545d91af", type: "button", role: "switch", "aria-checked": this.checked ? "true" : "false", "aria-disabled": this.disabled ? "true" : "false", "aria-label": t, class: {
|
|
17
|
+
switch: !0,
|
|
18
|
+
"switch--checked": this.checked,
|
|
19
|
+
"switch--disabled": this.disabled
|
|
20
|
+
}, onClick: this.toggleSwitch, disabled: this.disabled }, e("span", { key: "0d185957ffe2577ffc8798c298820c84c838a2a4", class: "switch-handle" })), this.labelOn && e("span", { key: "f12b752ff94a363bb9593bd00cf43e7110e4399e", class: "switch-label switch-label--on ml-8" }, this.labelOn));
|
|
21
|
+
}
|
|
22
|
+
get el() {
|
|
23
|
+
return c(this);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
n.style = h;
|
|
27
|
+
export {
|
|
28
|
+
n as eds_switch
|
|
29
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { r, h as t, g as l } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
import { p as i } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
3
|
+
const n = ".max-w-sidebar{max-width:1224px}.mx-auto{margin-left:auto;margin-right:auto}.px-4{padding-left:0.25rem;padding-right:0.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.relative{position:relative}.absolute{position:absolute}.flex{display:flex}.w-4{width:0.25rem}.pr-4{padding-right:0.25rem}.pl-4{padding-left:0.25rem}.w-1\\/2{width:50%}.left-1\\/2{left:50%}.transform{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-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))}.bg-strong{background-color:var(--grey-700)}.h-full{height:100%}.z-0{z-index:0}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.items-center{align-items:center}.justify-center{justify-content:center}.w-32{width:2rem}.h-32{height:2rem}.bg-accent{background-color:var(--green-500)}.rounded-full{border-radius:9999px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}", c = n, o = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.events = void 0, this.selectedEvent = null, this.parsedEvents = [];
|
|
6
|
+
}
|
|
7
|
+
parseEvents(e) {
|
|
8
|
+
const a = i(e);
|
|
9
|
+
this.parsedEvents = Array.isArray(a) ? a.map((s) => Object.assign(Object.assign({}, s), { completed: s.completed === "true" || s.completed === !0 })) : [];
|
|
10
|
+
}
|
|
11
|
+
componentWillLoad() {
|
|
12
|
+
this.parseEvents(this.events);
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
this.el.querySelectorAll("eds-card-generic").forEach((a) => {
|
|
16
|
+
this.emitContext(a);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
emitContext(e) {
|
|
20
|
+
const a = new CustomEvent("parentContext", {
|
|
21
|
+
detail: {
|
|
22
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
23
|
+
identifier: null
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
e.dispatchEvent(a);
|
|
27
|
+
}
|
|
28
|
+
handleEventClick(e) {
|
|
29
|
+
this.selectedEvent = e, this.modalRef && typeof this.modalRef.open == "function" && this.modalRef.open();
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return t("div", { key: "63ce0ce7e3a632906f664011243abf9f816bc53a", class: "max-w-sidebar mx-auto px-4 py-8" }, t("div", { key: "794d16f6b68d87bb1fb4665cc5ef84b381fb55ea", class: "relative" }, t("div", { key: "2b82b5594a9ed5c056898725f40e56858282412a", class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), t("div", { key: "6d33b71396649e7b90d050c0858912fa49c309a7", class: "space-y-16" }, this.parsedEvents.map((e, a) => t("div", { class: "relative flex" }, t("div", { class: `w-1/2 ${a % 2 === 0 ? "pr-4" : ""}` }, a % 2 === 0 && t("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) })), t("div", { class: "flex items-center justify-center relative" }, e.completed ? t("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" }) : t("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" })), t("div", { class: `w-1/2 ${a % 2 !== 0 ? "pl-4" : ""}` }, a % 2 !== 0 && t("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) })))))));
|
|
33
|
+
}
|
|
34
|
+
get el() {
|
|
35
|
+
return l(this);
|
|
36
|
+
}
|
|
37
|
+
static get watchers() {
|
|
38
|
+
return {
|
|
39
|
+
events: ["parseEvents"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
o.style = c;
|
|
44
|
+
export {
|
|
45
|
+
o as eds_timeline
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BLX1G7Jb.js"),l=require("./sharedUtils-a550989c-m4pF1Vqy.js"),i=".max-w-sidebar{max-width:1224px}.mx-auto{margin-left:auto;margin-right:auto}.px-4{padding-left:0.25rem;padding-right:0.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.relative{position:relative}.absolute{position:absolute}.flex{display:flex}.w-4{width:0.25rem}.pr-4{padding-right:0.25rem}.pl-4{padding-left:0.25rem}.w-1\\/2{width:50%}.left-1\\/2{left:50%}.transform{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-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))}.bg-strong{background-color:var(--grey-700)}.h-full{height:100%}.z-0{z-index:0}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.items-center{align-items:center}.justify-center{justify-content:center}.w-32{width:2rem}.h-32{height:2rem}.bg-accent{background-color:var(--green-500)}.rounded-full{border-radius:9999px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}",n=i,r=class{constructor(e){t.registerInstance(this,e),this.events=void 0,this.selectedEvent=null,this.parsedEvents=[]}parseEvents(e){const a=l.parseData(e);this.parsedEvents=Array.isArray(a)?a.map(s=>Object.assign(Object.assign({},s),{completed:s.completed==="true"||s.completed===!0})):[]}componentWillLoad(){this.parseEvents(this.events)}componentDidLoad(){this.el.querySelectorAll("eds-card-generic").forEach(a=>{this.emitContext(a)})}emitContext(e){const a=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});e.dispatchEvent(a)}handleEventClick(e){this.selectedEvent=e,this.modalRef&&typeof this.modalRef.open=="function"&&this.modalRef.open()}render(){return t.h("div",{key:"63ce0ce7e3a632906f664011243abf9f816bc53a",class:"max-w-sidebar mx-auto px-4 py-8"},t.h("div",{key:"794d16f6b68d87bb1fb4665cc5ef84b381fb55ea",class:"relative"},t.h("div",{key:"2b82b5594a9ed5c056898725f40e56858282412a",class:"absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0"}),t.h("div",{key:"6d33b71396649e7b90d050c0858912fa49c309a7",class:"space-y-16"},this.parsedEvents.map((e,a)=>t.h("div",{class:"relative flex"},t.h("div",{class:`w-1/2 ${a%2===0?"pr-4":""}`},a%2===0&&t.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)})),t.h("div",{class:"flex items-center justify-center relative"},e.completed?t.h("div",{class:"w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center"}):t.h("div",{class:"w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center"})),t.h("div",{class:`w-1/2 ${a%2!==0?"pl-4":""}`},a%2!==0&&t.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 t.getElement(this)}static get watchers(){return{events:["parseEvents"]}}};r.style=n;exports.eds_timeline=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-BLX1G7Jb.js");class i{constructor(){this.toastManagerElement=null}init(e){this.toastManagerElement=e}show(e,s="default"){if(!this.toastManagerElement){console.error("ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.");return}const o=new CustomEvent("show-toast",{detail:{message:e,intent:s}});this.toastManagerElement.dispatchEvent(o)}}const r=new i,d=".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}",l=d,n=class{constructor(t){a.registerInstance(this,t),this.toastId=0,this.toasts=[]}connectedCallback(){r.init(this.hostElement),this.hostElement.addEventListener("show-toast",t=>{const{message:e,intent:s}=t.detail;this.addToast(e,s)})}addToast(t,e){const s=this.toastId++;this.toasts=[...this.toasts,{id:s,message:t,intent:e}]}removeToast(t){this.toasts=this.toasts.filter(e=>e.id!==t)}render(){return a.h("div",{key:"b86b71e71fa88b56acab6d7060e7b05beec344e1",class:"toast-container"},this.toasts.map(t=>a.h("div",{key:t.id},a.h("eds-toast",{message:t.message,intent:t.intent,onClick:()=>this.removeToast(t.id)}))))}get hostElement(){return a.getElement(this)}};n.style=l;exports.eds_toast_manager=n;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as o, h as a, g as i } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
class r {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.toastManagerElement = null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Initialize the ToastManager with a reference to the `eds-toast-manager` component.
|
|
8
|
+
*/
|
|
9
|
+
init(s) {
|
|
10
|
+
this.toastManagerElement = s;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Display a toast.
|
|
14
|
+
* @param message - The message to display.
|
|
15
|
+
* @param intent - The type of the toast ('success', 'error', 'warning', 'default').
|
|
16
|
+
*/
|
|
17
|
+
show(s, e = "default") {
|
|
18
|
+
if (!this.toastManagerElement) {
|
|
19
|
+
console.error("ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.");
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const n = new CustomEvent("show-toast", {
|
|
23
|
+
detail: { message: s, intent: e }
|
|
24
|
+
});
|
|
25
|
+
this.toastManagerElement.dispatchEvent(n);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const d = new r(), l = ".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}", m = l, c = class {
|
|
29
|
+
constructor(t) {
|
|
30
|
+
o(this, t), this.toastId = 0, this.toasts = [];
|
|
31
|
+
}
|
|
32
|
+
connectedCallback() {
|
|
33
|
+
d.init(this.hostElement), this.hostElement.addEventListener("show-toast", (t) => {
|
|
34
|
+
const { message: s, intent: e } = t.detail;
|
|
35
|
+
this.addToast(s, e);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Adds a new toast.
|
|
40
|
+
*/
|
|
41
|
+
addToast(t, s) {
|
|
42
|
+
const e = this.toastId++;
|
|
43
|
+
this.toasts = [...this.toasts, { id: e, message: t, intent: s }];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Removes a toast by ID.
|
|
47
|
+
*/
|
|
48
|
+
removeToast(t) {
|
|
49
|
+
this.toasts = this.toasts.filter((s) => s.id !== t);
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return a("div", { key: "b86b71e71fa88b56acab6d7060e7b05beec344e1", class: "toast-container" }, this.toasts.map((t) => a("div", { key: t.id }, a("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))));
|
|
53
|
+
}
|
|
54
|
+
get hostElement() {
|
|
55
|
+
return i(this);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
c.style = m;
|
|
59
|
+
export {
|
|
60
|
+
c as eds_toast_manager
|
|
61
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
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-BLX1G7Jb.js"),r=require("./index-39c58238-SQ-JC-LH.js"),o=`.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.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)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
2
2
|
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
3
|
-
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`,a=o,n=r.cva(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"],{variants:{intent:{default:"bg-dark text-light",success:"bg-success text-dark",error:"bg-error text-light",warning:"bg-warning text-dark"}},defaultVariants:{intent:"default"}}),s=class{constructor(t){e.registerInstance(this,t),this.dismissToast=()=>{this.visible=!1},this.message=void 0,this.intent="default",this.duration=
|
|
3
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`,a=o,n=r.cva(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"],{variants:{intent:{default:"bg-dark text-light",success:"bg-success text-dark",error:"bg-error text-light",warning:"bg-warning text-dark"}},defaultVariants:{intent:"default"}}),s=class{constructor(t){e.registerInstance(this,t),this.dismissToast=()=>{this.visible=!1},this.message=void 0,this.intent="default",this.duration=void 0,this.visible=!0}componentDidLoad(){const t=this.el.shadowRoot.querySelector("eds-button");this.emitContext(t)}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}connectedCallback(){this.duration&&this.duration>0&&(this.dismissTimeout=setTimeout(this.dismissToast,this.duration))}disconnectedCallback(){clearTimeout(this.dismissTimeout)}render(){if(!this.visible)return null;const t=n({intent:this.intent});return e.h("div",{class:t,role:"alert","aria-live":"assertive"},e.h("div",{class:"flex items-center justify-between gap-4"},e.h("span",{class:"f-ui-01"},this.message),e.h("eds-button",{intent:"tertiary",icon:"close","aria-label":"Close Toast",onClick:()=>this.dismissToast(),"extra-class":"ml-8"})))}get el(){return e.getElement(this)}};s.style=a;exports.eds_toast=s;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as i, h as e, g as r } from "./index-
|
|
1
|
+
import { r as i, h as e, g as r } from "./index-BLyMQVPx.mjs";
|
|
2
2
|
import { c as o } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
3
3
|
const a = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.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)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
4
4
|
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
@@ -14,11 +14,11 @@ const a = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0
|
|
|
14
14
|
defaultVariants: {
|
|
15
15
|
intent: "default"
|
|
16
16
|
}
|
|
17
|
-
}),
|
|
17
|
+
}), d = class {
|
|
18
18
|
constructor(t) {
|
|
19
19
|
i(this, t), this.dismissToast = () => {
|
|
20
20
|
this.visible = !1;
|
|
21
|
-
}, this.message = void 0, this.intent = "default", this.duration =
|
|
21
|
+
}, this.message = void 0, this.intent = "default", this.duration = void 0, this.visible = !0;
|
|
22
22
|
}
|
|
23
23
|
componentDidLoad() {
|
|
24
24
|
const t = this.el.shadowRoot.querySelector("eds-button");
|
|
@@ -40,7 +40,7 @@ const a = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0
|
|
|
40
40
|
t.dispatchEvent(s);
|
|
41
41
|
}
|
|
42
42
|
connectedCallback() {
|
|
43
|
-
this.dismissTimeout = setTimeout(this.dismissToast, this.duration);
|
|
43
|
+
this.duration && this.duration > 0 && (this.dismissTimeout = setTimeout(this.dismissToast, this.duration));
|
|
44
44
|
}
|
|
45
45
|
disconnectedCallback() {
|
|
46
46
|
clearTimeout(this.dismissTimeout);
|
|
@@ -55,7 +55,7 @@ const a = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0
|
|
|
55
55
|
return r(this);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
d.style = n;
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
d as eds_toast
|
|
61
61
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { r as a, h as t, g as o } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
import { s as i } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
+
const n = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.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)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{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-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))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.bottom-full{bottom:100%}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}", r = n, s = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
a(this, e), this.content = void 0;
|
|
6
|
+
}
|
|
7
|
+
/** fire analytics on every hover */
|
|
8
|
+
handleHover() {
|
|
9
|
+
i({
|
|
10
|
+
category: "ui-component",
|
|
11
|
+
tag: this.el.tagName.toLowerCase(),
|
|
12
|
+
name: this.content.toLowerCase(),
|
|
13
|
+
action: "hover"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return t("div", { key: "cf17cd61cd5888d6ea12bf6be0fb8c841072b4d6", class: "relative inline-block group" }, t("slot", { key: "7a41d90940fff4e8b887ec4a3240371466f219a5" }), t("div", { key: "ccf06592f4c977030b0cf54cce48d13889c059f3", class: `absolute bottom-full left-1/2
|
|
18
|
+
transform -translate-x-1/2 mb-2
|
|
19
|
+
rounded-xs bg-strongest text-inverse
|
|
20
|
+
f-ui-03-light pointer-events-none
|
|
21
|
+
z-10 whitespace-nowrap p-6 opacity-0 transition-opacity duration-150 ease-in-out
|
|
22
|
+
group-hover:opacity-100`, role: "tooltip" }, this.content));
|
|
23
|
+
}
|
|
24
|
+
get el() {
|
|
25
|
+
return o(this);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
s.style = r;
|
|
29
|
+
export {
|
|
30
|
+
s as eds_tooltip
|
|
31
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BLX1G7Jb.js"),o=require("./analytics-d99780e3-DgvAss6l.js"),n=".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.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)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{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-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))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.bottom-full{bottom:100%}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}",i=n,e=class{constructor(a){t.registerInstance(this,a),this.content=void 0}handleHover(){o.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:this.content.toLowerCase(),action:"hover"})}render(){return t.h("div",{key:"cf17cd61cd5888d6ea12bf6be0fb8c841072b4d6",class:"relative inline-block group"},t.h("slot",{key:"7a41d90940fff4e8b887ec4a3240371466f219a5"}),t.h("div",{key:"ccf06592f4c977030b0cf54cce48d13889c059f3",class:`absolute bottom-full left-1/2
|
|
2
|
+
transform -translate-x-1/2 mb-2
|
|
3
|
+
rounded-xs bg-strongest text-inverse
|
|
4
|
+
f-ui-03-light pointer-events-none
|
|
5
|
+
z-10 whitespace-nowrap p-6 opacity-0 transition-opacity duration-150 ease-in-out
|
|
6
|
+
group-hover:opacity-100`,role:"tooltip"},this.content))}get el(){return t.getElement(this)}};e.style=i;exports.eds_tooltip=e;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as i, h as r } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
const c = class {
|
|
3
|
+
constructor(a) {
|
|
4
|
+
i(this, a), this.applications = void 0;
|
|
5
|
+
}
|
|
6
|
+
getParsedApplications() {
|
|
7
|
+
let a = [];
|
|
8
|
+
if (typeof this.applications == "string")
|
|
9
|
+
try {
|
|
10
|
+
a = JSON.parse(this.applications || "[]");
|
|
11
|
+
} catch (t) {
|
|
12
|
+
console.error("Invalid applications trl JSON", t), a = [];
|
|
13
|
+
}
|
|
14
|
+
else Array.isArray(this.applications) && (a = this.applications);
|
|
15
|
+
return a;
|
|
16
|
+
}
|
|
17
|
+
calculateProgress(a) {
|
|
18
|
+
return Math.ceil(a / 9 * 100);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const t = this.getParsedApplications().map((e) => ({
|
|
22
|
+
Application: e.name,
|
|
23
|
+
"Current TRL Stage": `TRL ${e.currentTrl}`,
|
|
24
|
+
Progress: r("div", { class: "w-[200px]" }, r("eds-progress-bar", { value: this.calculateProgress(e.currentTrl) }))
|
|
25
|
+
})), s = {
|
|
26
|
+
Application: { format: "code" },
|
|
27
|
+
"Current TRL Stage": { format: "text" }
|
|
28
|
+
};
|
|
29
|
+
return r("div", { key: "8a798c644632d3168af51aa8a0775b7455ab5b52", class: "container mx-auto px-4 py-8" }, r("eds-table", { key: "82a692c0f7e46fe7438a594a7b5c567855c0e308", "table-data": JSON.stringify(t), config: JSON.stringify(s), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" }));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
c as eds_trl
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-BLX1G7Jb.js"),i=class{constructor(e){t.registerInstance(this,e),this.applications=void 0}getParsedApplications(){let e=[];if(typeof this.applications=="string")try{e=JSON.parse(this.applications||"[]")}catch(a){console.error("Invalid applications trl JSON",a),e=[]}else Array.isArray(this.applications)&&(e=this.applications);return e}calculateProgress(e){return Math.ceil(e/9*100)}render(){const a=this.getParsedApplications().map(r=>({Application:r.name,"Current TRL Stage":`TRL ${r.currentTrl}`,Progress:t.h("div",{class:"w-[200px]"},t.h("eds-progress-bar",{value:this.calculateProgress(r.currentTrl)}))})),s={Application:{format:"code"},"Current TRL Stage":{format:"text"}};return t.h("div",{key:"8a798c644632d3168af51aa8a0775b7455ab5b52",class:"container mx-auto px-4 py-8"},t.h("eds-table",{key:"82a692c0f7e46fe7438a594a7b5c567855c0e308","table-data":JSON.stringify(a),config:JSON.stringify(s),"rows-per-page":"2","pagination-enabled":"true","search-enabled":"true","column-size":"default"}))}};exports.eds_trl=i;
|