@ebrains/vue 0.9.3-beta → 1.0.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-CfNmHzNO.mjs} +15 -15
- package/color-primary-palette_6.entry-c48Fqrz0.js +1 -0
- package/{components-section.entry-BZl-upvI.js → components-section.entry-3yJF6nRH.js} +5 -5
- package/{components-section.entry-DEtf0V8r.mjs → components-section.entry-oQTYayXm.mjs} +28 -19
- package/{correct-use-of-colors.entry-CvrVVhIA.mjs → correct-use-of-colors.entry-7fOSokhJ.mjs} +2 -2
- package/{correct-use-of-colors.entry-ajROARV6.js → correct-use-of-colors.entry-DEdyB_h5.js} +1 -1
- package/{docs-palettes.entry-CegYRhKo.js → docs-palettes.entry-6ekOz4GT.js} +1 -1
- package/{docs-palettes.entry-OWUmgE8-.mjs → docs-palettes.entry-Bz96UO-K.mjs} +2 -2
- package/{docs-tokens.entry-D720jRIB.mjs → docs-tokens.entry-D-hRYpqk.mjs} +2 -2
- package/{docs-tokens.entry-BIwcLv8t.js → docs-tokens.entry-DjHB8v2C.js} +1 -1
- package/{eds-accordion.entry-D5Qn9bWB.js → eds-accordion.entry-Czj2ZwpQ.js} +1 -1
- package/{eds-accordion.entry-Ct4upGzD.mjs → eds-accordion.entry-D1L8fv2r.mjs} +5 -5
- package/eds-alert.entry-BqEeR0Xw.js +165 -0
- package/eds-alert.entry-DAeVRXua.mjs +251 -0
- package/{eds-app-root.entry-DPM5X6uN.mjs → eds-app-root.entry-BBbgNK8b.mjs} +2 -2
- package/{eds-app-root.entry-C-CwU-8Y.js → eds-app-root.entry-BrJeEAVb.js} +1 -1
- package/{eds-timeline.entry-AsApD57a.mjs → eds-avatar_34.entry-1U84FvGQ.mjs} +7346 -3065
- package/{eds-tabs.entry-DRJv1vVW.mjs → eds-avatar_34.entry-iuvkwQW_.js} +5138 -2826
- package/eds-card-project.entry-Cd7tP9g4.mjs +170 -0
- package/eds-card-project.entry-CewRPvW7.js +1 -0
- package/{eds-card-section.entry-BWDrARpV.js → eds-card-section.entry-BU4fC9y5.js} +1 -1
- package/{eds-card-section.entry-CXFOGMeJ.mjs → eds-card-section.entry-CQLG4D0D.mjs} +1 -1
- package/{eds-card-tags.entry-Debtxwjy.mjs → eds-card-tags.entry-BKuk3O8k.mjs} +1 -1
- package/{eds-card-tags.entry-Do7oGWtS.js → eds-card-tags.entry-DOV6K1FD.js} +1 -1
- package/{eds-card-tool.entry-CXluEgpO.mjs → eds-card-tool.entry-DpfInwr3.mjs} +5 -5
- package/{eds-card-tool.entry-kxsYfCOl.js → eds-card-tool.entry-LSjtu5k_.js} +1 -1
- package/{eds-code-block.entry-BIGwear1.mjs → eds-code-block.entry-Bz1Pbg4W.mjs} +1 -1
- package/{eds-code-block.entry-B2tVEczx.js → eds-code-block.entry-DG1tMA_4.js} +1 -1
- package/{eds-cookies-preference.entry-mbjVkbaf.js → eds-cookies-preference.entry-0J8XlEDN.js} +1 -1
- package/{eds-cookies-preference.entry-BwTBWuc7.mjs → eds-cookies-preference.entry-DgP6pxkr.mjs} +2 -2
- package/{eds-feedback.entry-CxE8Mda2.js → eds-feedback.entry-Cmn3G5sR.js} +1 -1
- package/{eds-feedback.entry-DQZP2iFN.mjs → eds-feedback.entry-CxyxT-OD.mjs} +10 -9
- package/eds-frame.entry-Dh_T8O60.mjs +67 -0
- package/eds-frame.entry-LDVXpjkU.js +1 -0
- package/{eds-icon-arrow-diagonal.entry-BzMthIH3.js → eds-icon-arrow-diagonal.entry-C6AHMuMB.js} +1 -1
- package/{eds-icon-arrow-diagonal.entry-D0nObc1G.mjs → eds-icon-arrow-diagonal.entry-C75xEcUs.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-BGLDpWIT.mjs → eds-icon-arrow-right.entry-DOsVz4oP.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-DPLcd0Dg.js → eds-icon-arrow-right.entry-VMROpz2J.js} +1 -1
- package/{eds-icon-bluesky.entry-bnwTCSoD.js → eds-icon-bluesky.entry-BmSl31Ky.js} +1 -1
- package/{eds-icon-bluesky.entry-ZXTtFyYw.mjs → eds-icon-bluesky.entry-C9skxio2.mjs} +1 -1
- package/{eds-icon-bookmark.entry-vBTnOEht.js → eds-icon-bookmark.entry-DdUP23Uu.js} +1 -1
- package/{eds-icon-bookmark.entry-BV8nKCLz.mjs → eds-icon-bookmark.entry-xWgHPpg-.mjs} +1 -1
- package/{eds-icon-chevron-down.entry-BNSIoEMh.js → eds-icon-chevron-down.entry-DNY1bk_l.js} +1 -1
- package/{eds-icon-chevron-down.entry-9YeZRA_B.mjs → eds-icon-chevron-down.entry-ut52sjbR.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-Bm5LaJAt.mjs → eds-icon-chevron-left.entry-Bi82EnZL.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-BBKqN2RH.js → eds-icon-chevron-left.entry-nzi05fTd.js} +1 -1
- package/{eds-icon-chevron-right.entry-CieI-tuC.js → eds-icon-chevron-right.entry-CBW3L3p8.js} +1 -1
- package/{eds-icon-chevron-right.entry-ChbDkmms.mjs → eds-icon-chevron-right.entry-Dc_uRypg.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-D3DkXrLO.mjs → eds-icon-chevron-up.entry-CO7nzD9J.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-BqkKRoL-.js → eds-icon-chevron-up.entry-Cc10e7Ce.js} +1 -1
- package/{eds-icon-close.entry-DQv18xqh.mjs → eds-icon-close.entry-CvXUDttz.mjs} +1 -1
- package/{eds-icon-close.entry-4xYgUnOY.js → eds-icon-close.entry-Dw7ZUnkQ.js} +1 -1
- package/{eds-icon-copy.entry-C7-kaujN.mjs → eds-icon-copy.entry-DV4qtIA7.mjs} +1 -1
- package/{eds-icon-copy.entry-DQl13_LK.js → eds-icon-copy.entry-x46asO9P.js} +1 -1
- package/{eds-icon-eu.entry-DR5lezcj.mjs → eds-icon-eu.entry-BaEbXLNS.mjs} +1 -1
- package/{eds-icon-eu.entry-B8fNjCUv.js → eds-icon-eu.entry-D2CoGoAF.js} +1 -1
- package/{eds-icon-external.entry-BaIofxzF.js → eds-icon-external.entry-C0Zm0isI.js} +1 -1
- package/{eds-icon-external.entry-DvY_6Ld0.mjs → eds-icon-external.entry-CckFcmA1.mjs} +1 -1
- package/{eds-icon-facebook.entry-D7FANZCQ.mjs → eds-icon-facebook.entry-CIiiUf27.mjs} +1 -1
- package/{eds-icon-facebook.entry-Do2GEkmS.js → eds-icon-facebook.entry-DwUcANz7.js} +1 -1
- package/{eds-icon-gitlab.entry-p78Zzlxs.js → eds-icon-gitlab.entry-CuKUR41Q.js} +1 -1
- package/{eds-icon-gitlab.entry-D7FC3Vn4.mjs → eds-icon-gitlab.entry-PCSE_PYe.mjs} +1 -1
- package/{eds-icon-linkedin.entry-BYQGxGkX.js → eds-icon-linkedin.entry-Bpoynapn.js} +1 -1
- package/{eds-icon-linkedin.entry-CchbiOIO.mjs → eds-icon-linkedin.entry-C9xqBwJ1.mjs} +1 -1
- package/{eds-icon-loader.entry-C8zfXt5G.mjs → eds-icon-loader.entry-CkIiBDsV.mjs} +1 -1
- package/{eds-icon-loader.entry-Cw7oYrm3.js → eds-icon-loader.entry-dxgwIFD3.js} +1 -1
- package/{eds-icon-mastodon.entry-C_TXVQJB.js → eds-icon-mastodon.entry-7CmZhvNG.js} +1 -1
- package/{eds-icon-mastodon.entry-BOgFKnbj.mjs → eds-icon-mastodon.entry-k86mWfUp.mjs} +1 -1
- package/{eds-icon-menu.entry-Dl7Xqhc3.mjs → eds-icon-menu.entry-7zPtmR24.mjs} +1 -1
- package/{eds-icon-menu.entry-BtdrFvM4.js → eds-icon-menu.entry-CFIbaI5j.js} +1 -1
- package/{eds-icon-minus.entry-BA5Al4_F.js → eds-icon-minus.entry-B4ntnZW_.js} +1 -1
- package/{eds-icon-minus.entry-Bfm78Q48.mjs → eds-icon-minus.entry-fPsoVmGR.mjs} +1 -1
- package/{eds-icon-more.entry-mAUgJoHF.js → eds-icon-more.entry-D_HCuwKk.js} +1 -1
- package/{eds-icon-more.entry-CHzRpt-L.mjs → eds-icon-more.entry-DyH3sCa4.mjs} +1 -1
- package/{eds-icon-paper.entry-DEiOlvnw.mjs → eds-icon-paper.entry-BQlPnCrf.mjs} +1 -1
- package/{eds-icon-paper.entry-DtE79_lg.js → eds-icon-paper.entry-CHAw7mqA.js} +1 -1
- package/{eds-icon-plus.entry-BCc2gk-Y.js → eds-icon-plus.entry-QOVehJoq.js} +1 -1
- package/{eds-icon-plus.entry-DxdfImnp.mjs → eds-icon-plus.entry-zTfrWeuu.mjs} +1 -1
- package/{eds-icon-portal.entry-DgJxnehb.js → eds-icon-portal.entry-CbJqS4OZ.js} +1 -1
- package/{eds-icon-portal.entry-DygPWj8q.mjs → eds-icon-portal.entry-SlgbRrHY.mjs} +1 -1
- package/{eds-icon-private.entry-BtxnzDjj.js → eds-icon-private.entry-DSIHrQEv.js} +1 -1
- package/{eds-icon-private.entry-ClDqtUa4.mjs → eds-icon-private.entry-uHBGM_wp.mjs} +1 -1
- package/{eds-icon-public.entry-BKL5QMPS.js → eds-icon-public.entry-Cj1hddsF.js} +1 -1
- package/{eds-icon-public.entry-D0qOA8dF.mjs → eds-icon-public.entry-_sTE1w2W.mjs} +1 -1
- package/{eds-icon-search.entry-BPeHLF3h.js → eds-icon-search.entry-CXVkIZak.js} +1 -1
- package/{eds-icon-search.entry-iegCSWzH.mjs → eds-icon-search.entry-DIww9BJF.mjs} +1 -1
- package/{eds-icon-star.entry-BP6oBKRH.mjs → eds-icon-star.entry-B3WySZM_.mjs} +1 -1
- package/{eds-icon-star.entry-DSHqvj6t.js → eds-icon-star.entry-B464U0ht.js} +1 -1
- package/{eds-icon-success.entry-DoaW0KlM.js → eds-icon-success.entry-BhRuLH3J.js} +1 -1
- package/{eds-icon-success.entry-B2vqFpAU.mjs → eds-icon-success.entry-HesFgi8E.mjs} +1 -1
- package/{eds-icon-thumbs-down.entry-CmV8Km2F.mjs → eds-icon-thumbs-down.entry-CbL3623r.mjs} +1 -1
- package/{eds-icon-thumbs-down.entry-CFMyu-CY.js → eds-icon-thumbs-down.entry-DVK5ACMh.js} +1 -1
- package/{eds-icon-thumbs-up.entry-DhfFxKPT.mjs → eds-icon-thumbs-up.entry-C2QZ3OSz.mjs} +1 -1
- package/{eds-icon-thumbs-up.entry-8RPnzfnW.js → eds-icon-thumbs-up.entry-MDqpoPcO.js} +1 -1
- package/{eds-icon-tutorial.entry-B3NRKCnl.mjs → eds-icon-tutorial.entry-DRB27GWh.mjs} +1 -1
- package/{eds-icon-tutorial.entry-ImfBSV9b.js → eds-icon-tutorial.entry-xaf63POz.js} +1 -1
- package/{eds-icon-twitter.entry-Da3X1sWO.mjs → eds-icon-twitter.entry-CYCIFfgj.mjs} +1 -1
- package/{eds-icon-twitter.entry-BLvpOiN-.js → eds-icon-twitter.entry-CcpEPKUu.js} +1 -1
- package/{eds-icon-unknown.entry--9_uerA-.js → eds-icon-unknown.entry-kYRE4en_.js} +1 -1
- package/{eds-icon-unknown.entry-DH3YcJSO.mjs → eds-icon-unknown.entry-ksugYL8s.mjs} +1 -1
- package/{eds-icon-updown.entry-BU4FzzAC.js → eds-icon-updown.entry-3_UTqXet.js} +1 -1
- package/{eds-icon-updown.entry-D6t6TWtG.mjs → eds-icon-updown.entry-DrW4QdWY.mjs} +1 -1
- package/{eds-icon-user.entry-yNOw7Z1J.js → eds-icon-user.entry-BimbLh7T.js} +1 -1
- package/{eds-icon-user.entry-pb-JM7tE.mjs → eds-icon-user.entry-CMjrRV4a.mjs} +1 -1
- package/{eds-icon-youtube.entry-CNH9Mxfw.js → eds-icon-youtube.entry-BepDLIVw.js} +1 -1
- package/{eds-icon-youtube.entry-CIx5D-1i.mjs → eds-icon-youtube.entry-CGXXdMzx.mjs} +1 -1
- package/{eds-matomo-notice.entry-cucI3F6F.js → eds-matomo-notice.entry-BnbhjXrV.js} +1 -1
- package/{eds-matomo-notice.entry-DD0R8UUN.mjs → eds-matomo-notice.entry-DQLfTEH4.mjs} +26 -24
- package/{eds-pagination_2.entry-Cmqe9RbB.mjs → eds-pagination_2.entry-BK--gyZ0.mjs} +8 -8
- package/{eds-pagination_2.entry-DFO92YFs.js → eds-pagination_2.entry-De883ILy.js} +1 -1
- package/eds-progress-bar.entry-CnzFrS-7.js +1 -0
- package/eds-progress-bar.entry-UWeq2B4o.mjs +39 -0
- package/{eds-rating.entry-BJZaV3ft.js → eds-rating.entry-D48_hoBw.js} +1 -1
- package/{eds-rating.entry-BaneuoOA.mjs → eds-rating.entry-ScrHbfrp.mjs} +2 -2
- package/{eds-section-core_2.entry-dmjdE4gJ.mjs → eds-section-core_2.entry-D3FNm7II.mjs} +9 -9
- package/eds-section-core_2.entry-DshZ38Q9.js +1 -0
- package/{eds-spinner.entry-Cdu4PTNJ.js → eds-spinner.entry-CAKA3YkP.js} +1 -1
- package/{eds-spinner.entry-BwIR2ZO2.mjs → eds-spinner.entry-KZWQRAHb.mjs} +5 -5
- package/eds-splash-screen.entry-B7f2rbAn.mjs +39 -0
- package/eds-splash-screen.entry-YJ_mGQYU.js +1 -0
- package/eds-switch.entry-CKv4fbm-.js +1 -0
- package/eds-switch.entry-DbBUxVI8.mjs +29 -0
- package/eds-timeline.entry-BE-6PK5Q.js +1 -0
- package/eds-timeline.entry-uFV4mRmh.mjs +46 -0
- package/eds-toast-manager.entry-BKIf0Xw3.js +1 -0
- package/eds-toast-manager.entry-CXL8sMaG.mjs +61 -0
- package/{eds-toast.entry-B1RS9m4v.js → eds-toast.entry-a-RIjL18.js} +2 -2
- package/{eds-toast.entry-BNYlJ84c.mjs → eds-toast.entry-oZ1Juhqm.mjs} +6 -6
- package/eds-trl.entry-Bw8w42hZ.mjs +34 -0
- package/eds-trl.entry-DmSx4bnn.js +1 -0
- package/generated/components.d.ts +2 -2
- package/incorrect-use-of-colors.entry-BlDQxmUQ.mjs +42 -0
- package/incorrect-use-of-colors.entry-CglkFNGU.js +1 -0
- package/index-BvZ-fq9l.mjs +3486 -0
- package/index-CJvr9v3B.js +21 -0
- package/index.js +1 -1
- package/index.mjs +18 -18
- package/{logo-space.entry-GOUZQmu9.mjs → logo-space.entry-D1gv5Jv7.mjs} +5 -5
- package/{logo-space.entry-DxZ7v-wS.js → logo-space.entry-d5Tx6GSR.js} +2 -2
- package/{logo-variations-horizontal_2.entry-CRdycvC5.js → logo-variations-horizontal_2.entry-CiMlktdv.js} +3 -3
- package/{logo-variations-horizontal_2.entry-DimbU2IU.mjs → logo-variations-horizontal_2.entry-DPHzlUCt.mjs} +10 -10
- package/{logo-variations-tabs.entry-Uc3TLufg.mjs → logo-variations-tabs.entry-BYi6NRAo.mjs} +3 -3
- package/{logo-variations-tabs.entry-5kLk6tXo.js → logo-variations-tabs.entry-CcSRDFWV.js} +1 -1
- package/{logo-wrong-usage.entry-CYcqaVbn.mjs → logo-wrong-usage.entry-9iDssoCI.mjs} +5 -5
- package/{logo-wrong-usage.entry-13RSC-bu.js → logo-wrong-usage.entry-gsDvZ1sn.js} +1 -1
- package/package.json +1 -1
- package/{svg-repository.entry-IIRiiFbB.mjs → svg-repository.entry-BtksDklW.mjs} +11 -11
- package/{svg-repository.entry-Ck1z1CpA.js → svg-repository.entry-_-HISW99.js} +2 -2
- package/{token-list_3.entry-CQ9aUIVd.mjs → token-list_3.entry-CNkWD89P.mjs} +4 -4
- package/{token-list_3.entry-CLlUT7ge.js → token-list_3.entry-CRZq4och.js} +1 -1
- package/token-ratios.entry-CL40j9gF.js +1 -0
- package/{token-ratios.entry-DkgSpwqw.mjs → token-ratios.entry-D4aHLsX-.mjs} +5 -5
- package/{token-typography.entry-CgJdJgCR.js → token-typography.entry-D17oZHbh.js} +1 -1
- package/{token-typography.entry-CrMCS1R0.mjs → token-typography.entry-ayRMMiOe.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-1GoZmzeQ.mjs +0 -53
- package/eds-card-desc_2.entry-BfOXVZi0.js +0 -1
- package/eds-card-generic.entry-BKpFgWlR.js +0 -1
- package/eds-card-generic.entry-CT7jqo3p.mjs +0 -56
- package/eds-card-project.entry-BbLZfxAE.js +0 -1
- package/eds-card-project.entry-O11d3day.mjs +0 -44
- 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-login_2.entry-shWfmpH4.mjs +0 -981
- package/eds-login_2.entry-swrZnwUp.js +0 -9
- 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-MDj5oqZG.js +0 -7794
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-7ljGsgwC.js"),g=require("./analytics-44b1416b-ol77SdQE.js"),c=require("./sharedUtils-a550989c-m4pF1Vqy.js"),u="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=u,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("page",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"1d53f69179791434224f152503c0b81c4cfc7cd3"},this.total>0&&this.mode==="default"&&i.h("p",{key:"00ae324b49d62a74feee9d1cde21d67cd726ecf0",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"dedf2ce2700eae9d1386b305ec1d1904b133f992",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 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,d=class{constructor(t){i.registerInstance(this,t),this.handleResize=()=>{this.updateContainerWidth()},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.tbData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery="",this.containerWidth=0}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.updateContainerWidth(),window.addEventListener("resize",this.handleResize),this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateContainerWidth(){this.hostWidth&&this.hostWidth.trim()!==""?this.containerWidth=Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.containerWidth=this.hostEl.parentElement.getBoundingClientRect().width:this.containerWidth=400}parseData(){try{this.tbData=c.parseData(this.data),this.totalRows=this.tbData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tbData=[]}}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("page",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tbData.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,g.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.tbData.length>0?Object.keys(this.tbData[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.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.containerWidth||400,e=this.getVisibleColumnsCount(),s=e>0?Math.floor(t/e*this.divisionFactor()):100,a=this.getPaginatedRows(),n=Math.ceil(this.totalRows/this.rowsPerPage);return i.h("div",{key:"9ac7ad4f02237c02eaf5d3b351ded21bce29bd6c"},this.searchEnabled&&i.h("div",{key:"1cecf9a9089391c3bce72dd53a6f5ffa92692661"},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:"435bbfd0a4dd3ddd0a7766863cdd8c2eaf41eb8f",class:"mt-20"},i.h("table",{key:"4785490532015b7069be068e80135220f37c3955",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"8a99a961cf350bca26b1f73b8ffd6c8e1c48378f"},i.h("tr",{key:"a4ee04e342687830e905a3bd5217e53e513f0167",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:`${s-4}px`}},o)}))),i.h("tbody",{key:"3c764ac7137d1b21f45003c6df5324e7d0db749f"},a.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:`${s-4}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"98a1179b45fbc1b2f079825c899410ef4faf8c45",class:"mt-20"},i.h("eds-pagination",{key:"662c479139658ea7f3d2a3955c77e24d44dd6e74",currentPage:this.currentPage,lastPage:n,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};d.style=m;exports.eds_pagination=h;exports.eds_table=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CJvr9v3B.js"),g=require("./analytics-d99780e3-DgvAss6l.js"),c=require("./sharedUtils-a550989c-m4pF1Vqy.js"),u="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=u,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("page",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"1d53f69179791434224f152503c0b81c4cfc7cd3"},this.total>0&&this.mode==="default"&&i.h("p",{key:"00ae324b49d62a74feee9d1cde21d67cd726ecf0",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"dedf2ce2700eae9d1386b305ec1d1904b133f992",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 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,d=class{constructor(t){i.registerInstance(this,t),this.handleResize=()=>{this.updateContainerWidth()},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.tbData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery="",this.containerWidth=0}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.updateContainerWidth(),window.addEventListener("resize",this.handleResize),this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateContainerWidth(){this.hostWidth&&this.hostWidth.trim()!==""?this.containerWidth=Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.containerWidth=this.hostEl.parentElement.getBoundingClientRect().width:this.containerWidth=400}parseData(){try{this.tbData=c.parseData(this.data),this.totalRows=this.tbData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tbData=[]}}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("page",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tbData.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,g.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.tbData.length>0?Object.keys(this.tbData[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.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.containerWidth||400,e=this.getVisibleColumnsCount(),s=e>0?Math.floor(t/e*this.divisionFactor()):100,a=this.getPaginatedRows(),n=Math.ceil(this.totalRows/this.rowsPerPage);return i.h("div",{key:"81735ac374853c8c92b3f50e26263ff9d71b326c"},this.searchEnabled&&i.h("div",{key:"0b2ab8dbb343033f605e2028890bd963cd650998"},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:"eb3eebe6fb124d4e1983b2fb7e636707817d36bd",class:"mt-20"},i.h("table",{key:"03b312ac20bdec28843a46907a3cc4fba69f62ae",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"ccab58dc46ae765df28da97ded6b1dd14d45d7f1"},i.h("tr",{key:"904a125aad610cebe42b0bce46615be38f0ee17a",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:`${s-4}px`}},o)}))),i.h("tbody",{key:"a4c54c9c89d15546020dbb684e5486decde33f30"},a.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:`${s-4}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"2a248cbbe81ac8c1ad4dfbb49a9615f15931bac6",class:"mt-20"},i.h("eds-pagination",{key:"11701d81922ca4c8b36fe82be32316a175eddbcd",currentPage:this.currentPage,lastPage:n,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};d.style=m;exports.eds_pagination=h;exports.eds_table=d;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CJvr9v3B.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)),o=["outer","w-full","h-24","bg-default","border","border-softer","overflow-hidden",this.rounded?"rounded-lg":"","relative"].filter(Boolean).join(" "),a=["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:"8760afff9f85f05fec52b0a7fb668661e49dc06f",role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e,"aria-valuetext":`${e}%`,class:o},t.h("div",{key:"06165b69fe7e170f4f61d9f95b5a44342d4ee67a",class:a,style:{width:`${e}%`}}),t.h("div",{key:"0c48e65c5a6cb0b4dff7a7e3e248052cdc29957d",class:"absolute inset-0 flex items-center justify-center pointer-events-none z-10"},t.h("span",{key:"fc6f7396cf741ba18d1b5d065bdd1b7bfff12abe",class:"text-default f-body-02"},e,"%")))}};r.style=i;exports.eds_progress_bar=r;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as a, h as t } from "./index-BvZ-fq9l.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
|
+
a(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(" "), o = [
|
|
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: "8760afff9f85f05fec52b0a7fb668661e49dc06f", role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": e, "aria-valuetext": `${e}%`, class: r }, t("div", { key: "06165b69fe7e170f4f61d9f95b5a44342d4ee67a", class: o, style: { width: `${e}%` } }), t("div", { key: "0c48e65c5a6cb0b4dff7a7e3e248052cdc29957d", class: "absolute inset-0 flex items-center justify-center pointer-events-none z-10" }, t("span", { key: "fc6f7396cf741ba18d1b5d065bdd1b7bfff12abe", class: "text-default f-body-02" }, e, "%")));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
s.style = i;
|
|
37
|
+
export {
|
|
38
|
+
s as eds_progress_bar
|
|
39
|
+
};
|
|
@@ -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-CJvr9v3B.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(e){r.registerInstance(this,e),this.rating=r.createEvent(this,"rating",7),this.ratingType="star",this.ratingCount=5,this.selectedRating=0}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-button").forEach(t=>{this.emitContext(t)})}emitContext(e){const t=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.selectedRating}});e.dispatchEvent(t)}handleClick(e){this.selectedRating=e,this.rating.emit(e)}render(){return r.h("div",{key:"685ac01e4db577b07d00030b0c25e10b9b0defa8",role:"radiogroup",class:"stars flex space-x-1 my-8"},Array.from({length:this.ratingCount},(e,t)=>{const a=t+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&&t===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-BvZ-fq9l.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: "685ac01e4db577b07d00030b0c25e10b9b0defa8", 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,
|
|
@@ -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-BvZ-fq9l.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: "ff0b28dffb8aca2ad0ac1ee3eea7ebda75078f96" }, s("eds-section-heading", { key: "23e9bb2b084c6b8a534dd310fbe10e0de0211187", headingLevel: this.headingLevel, sectionTitle: this.sectionTitle }), s("slot", { key: "9cae6378bdb5304191d393967025570f94fdcdb2" }));
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
const
|
|
11
|
+
c.style = n;
|
|
12
|
+
const h = 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: "bb32f87fd944ebf08ebcde3980c18cd4bed18783", 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: "0cd8ea8aada58e30675579c82ba130b40257c7c6", class: this.getHeadingClass() }, this.sectionTitle));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
c as eds_section_core,
|
|
38
|
+
h as eds_section_heading
|
|
39
39
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CJvr9v3B.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:"ff0b28dffb8aca2ad0ac1ee3eea7ebda75078f96"},t.h("eds-section-heading",{key:"23e9bb2b084c6b8a534dd310fbe10e0de0211187",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"9cae6378bdb5304191d393967025570f94fdcdb2"}))}};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:"bb32f87fd944ebf08ebcde3980c18cd4bed18783",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:"0cd8ea8aada58e30675579c82ba130b40257c7c6",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=c;
|
|
@@ -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-CJvr9v3B.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:"214876a56949c147e74c1a7072406234c2fb1a02"},e.h("div",{key:"b75b639fa38aafaf13e1eb727e28c5e67f3edafe",class:"spinner-overlay",style:i},e.h("span",{key:"87ba2ef7e1e9601ac0ae8132e9c891b4149a20b5",class:"spinner",style:s})))}};t.style=n;exports.eds_spinner=t;
|
|
@@ -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-BvZ-fq9l.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, a = 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: "214876a56949c147e74c1a7072406234c2fb1a02" }, s("div", { key: "b75b639fa38aafaf13e1eb727e28c5e67f3edafe", class: "spinner-overlay", style: t }, s("span", { key: "87ba2ef7e1e9601ac0ae8132e9c891b4149a20b5", class: "spinner", style: e })));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
a.style = o;
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
a as eds_spinner
|
|
36
36
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as t, c as r, h as e, H as n } from "./index-BvZ-fq9l.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-CJvr9v3B.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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),s=require("./analytics-d99780e3-DgvAss6l.js"),a=":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}",c=a,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:"442876be1bad7ea8c9e383bc68b192a2744c38f9",class:"switch-container"},this.labelOff&&e.h("span",{key:"e4a7b01c0188d26e5b6524741b1c8ef66e357e35",class:"switch-label switch-label--off mr-8"},this.labelOff),e.h("button",{key:"f56b3762622671acf793568a96567193c38999c7",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:"b76e89a1e37130542dd86ce3aed8c5690aeeda63",class:"switch-handle"})),this.labelOn&&e.h("span",{key:"4e5d4f8a2f19bb612a17fa73e441e7e718b71508",class:"switch-label switch-label--on ml-8"},this.labelOn))}get el(){return e.getElement(this)}};i.style=c;exports.eds_switch=i;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as i, c as s, h as e, g as a } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
import { s as c } 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), c({
|
|
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: "442876be1bad7ea8c9e383bc68b192a2744c38f9", class: "switch-container" }, this.labelOff && e("span", { key: "e4a7b01c0188d26e5b6524741b1c8ef66e357e35", class: "switch-label switch-label--off mr-8" }, this.labelOff), e("button", { key: "f56b3762622671acf793568a96567193c38999c7", 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: "b76e89a1e37130542dd86ce3aed8c5690aeeda63", class: "switch-handle" })), this.labelOn && e("span", { key: "4e5d4f8a2f19bb612a17fa73e441e7e718b71508", class: "switch-label switch-label--on ml-8" }, this.labelOn));
|
|
21
|
+
}
|
|
22
|
+
get el() {
|
|
23
|
+
return a(this);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
n.style = h;
|
|
27
|
+
export {
|
|
28
|
+
n as eds_switch
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CJvr9v3B.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,46 @@
|
|
|
1
|
+
import { r, h as t, g as l } from "./index-BvZ-fq9l.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 a=require("./index-CJvr9v3B.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-BvZ-fq9l.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-CJvr9v3B.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-BvZ-fq9l.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,34 @@
|
|
|
1
|
+
import { r as i, h as r } from "./index-BvZ-fq9l.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-CJvr9v3B.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;
|
|
@@ -13,6 +13,7 @@ export declare const EdsFeedback: import('vue').DefineSetupFnComponent<JSX.EdsFe
|
|
|
13
13
|
export declare const EdsFooter: import('vue').DefineSetupFnComponent<JSX.EdsFooter & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFooter & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
14
14
|
export declare const EdsForm: import('vue').DefineSetupFnComponent<JSX.EdsForm & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsForm & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
15
15
|
export declare const EdsFullscreenMenu: import('vue').DefineSetupFnComponent<JSX.EdsFullscreenMenu & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFullscreenMenu & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
16
|
+
export declare const EdsGauge: import('vue').DefineSetupFnComponent<JSX.EdsGauge & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsGauge & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
16
17
|
export declare const EdsHeader: import('vue').DefineSetupFnComponent<JSX.EdsHeader & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsHeader & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
17
18
|
export declare const EdsIconWrapper: import('vue').DefineSetupFnComponent<JSX.EdsIconWrapper & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsIconWrapper & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
18
19
|
export declare const EdsImg: import('vue').DefineSetupFnComponent<JSX.EdsImg & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsImg & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
@@ -22,9 +23,9 @@ export declare const EdsLogo: import('vue').DefineSetupFnComponent<JSX.EdsLogo &
|
|
|
22
23
|
export declare const EdsMatomoNotice: import('vue').DefineSetupFnComponent<JSX.EdsMatomoNotice & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsMatomoNotice & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
23
24
|
export declare const EdsModal: import('vue').DefineSetupFnComponent<JSX.EdsModal & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsModal & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
24
25
|
export declare const EdsPagination: import('vue').DefineSetupFnComponent<JSX.EdsPagination & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsPagination & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
26
|
+
export declare const EdsPie: import('vue').DefineSetupFnComponent<JSX.EdsPie & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsPie & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
25
27
|
export declare const EdsProgressBar: import('vue').DefineSetupFnComponent<JSX.EdsProgressBar & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsProgressBar & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
26
28
|
export declare const EdsRating: import('vue').DefineSetupFnComponent<JSX.EdsRating & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsRating & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
27
|
-
export declare const EdsSectionCore: import('vue').DefineSetupFnComponent<JSX.EdsSectionCore & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSectionCore & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
28
29
|
export declare const EdsSocialNetworks: import('vue').DefineSetupFnComponent<JSX.EdsSocialNetworks & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSocialNetworks & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
29
30
|
export declare const EdsSpinner: import('vue').DefineSetupFnComponent<JSX.EdsSpinner & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSpinner & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
30
31
|
export declare const EdsSplashScreen: import('vue').DefineSetupFnComponent<JSX.EdsSplashScreen & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSplashScreen & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
@@ -34,7 +35,6 @@ export declare const EdsSwitch: import('vue').DefineSetupFnComponent<JSX.EdsSwit
|
|
|
34
35
|
export declare const EdsTable: import('vue').DefineSetupFnComponent<JSX.EdsTable & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTable & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
35
36
|
export declare const EdsTabs: import('vue').DefineSetupFnComponent<JSX.EdsTabs & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTabs & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
36
37
|
export declare const EdsTag: import('vue').DefineSetupFnComponent<JSX.EdsTag & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTag & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
37
|
-
export declare const EdsTimeline: import('vue').DefineSetupFnComponent<JSX.EdsTimeline & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTimeline & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
38
38
|
export declare const EdsToast: import('vue').DefineSetupFnComponent<JSX.EdsToast & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsToast & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
39
39
|
export declare const EdsTooltip: import('vue').DefineSetupFnComponent<JSX.EdsTooltip & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTooltip & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
40
40
|
export declare const EdsUser: import('vue').DefineSetupFnComponent<JSX.EdsUser & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsUser & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|