@ebrains/vue 1.3.0 → 2.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/bin-37cad2f0-BqMIoPCV.mjs +4 -0
- package/bin-37cad2f0-Bvf97PEl.js +1 -0
- package/color-primary-palette_6.entry-CLPwqXYN.js +1 -0
- package/{color-primary-palette_6.entry-C7BHQEnw.mjs → color-primary-palette_6.entry-Dx0sxiGl.mjs} +15 -15
- package/{components-section.entry-DcfSB-kY.mjs → components-section.entry-CunkKxAI.mjs} +2 -2
- package/{components-section.entry-B_kYIcya.js → components-section.entry-DlSK2XQH.js} +2 -2
- package/{correct-use-of-colors.entry-BGChf9ec.js → correct-use-of-colors.entry-CEWf34uE.js} +1 -1
- package/{correct-use-of-colors.entry-CcnJrMG_.mjs → correct-use-of-colors.entry-DCSZZlrZ.mjs} +2 -2
- package/{docs-palettes.entry-CxxNNtY3.mjs → docs-palettes.entry-BNFu_gbi.mjs} +4 -4
- package/{docs-palettes.entry-CzAVEsqm.js → docs-palettes.entry-DcN9LWvY.js} +1 -1
- package/{docs-tokens.entry-B-0AwUaT.js → docs-tokens.entry-B3fO_wav.js} +1 -1
- package/{docs-tokens.entry-Dmdau8tN.mjs → docs-tokens.entry-BMB3774g.mjs} +2 -2
- package/draft-dd5dada2-AqzrhEzA.js +1 -0
- package/draft-dd5dada2-DEIzQoXJ.mjs +4 -0
- package/edit-1dc8d11b-Bf2mkSUV.js +1 -0
- package/edit-1dc8d11b-CamcJGHE.mjs +4 -0
- package/{eds-accordion.entry-CFtzyK7V.mjs → eds-accordion.entry-Cniy--Pf.mjs} +8 -8
- package/{eds-accordion.entry-BTD6_yTY.js → eds-accordion.entry-DqsJjt8n.js} +2 -2
- package/{eds-alert.entry-DBrGIgok.js → eds-alert.entry-1Mmo8pXz.js} +1 -1
- package/{eds-alert.entry-DNcSOFx-.mjs → eds-alert.entry-DzO39nFn.mjs} +1 -1
- package/eds-app-root.entry-Br_qdv7x.mjs +25 -0
- package/eds-app-root.entry-CuHAu5oB.js +1 -0
- package/{eds-avatar_28.entry-BI00ikeb.mjs → eds-avatar_26.entry-BQ34MNWx.mjs} +435 -486
- package/{eds-avatar_28.entry-DopORaIL.js → eds-avatar_26.entry-t5Dh1R-T.js} +22 -10
- package/{eds-breadcrumb.entry-CV7LDFTG.mjs → eds-breadcrumb.entry-DoRU-2U8.mjs} +1 -1
- package/{eds-breadcrumb.entry-BygCmjM-.js → eds-breadcrumb.entry-WWpJ_3D5.js} +1 -1
- package/{eds-card-desc_2.entry-3kgejbQH.js → eds-card-desc_2.entry-BhqAsb3U.js} +1 -1
- package/{eds-card-desc_2.entry-Do4CAipD.mjs → eds-card-desc_2.entry-D_GE153d.mjs} +1 -1
- package/{eds-card-generic.entry-CbDtabpb.mjs → eds-card-generic.entry-B9M3v5vo.mjs} +2 -2
- package/{eds-card-generic.entry-C_Yw-DLJ.js → eds-card-generic.entry-DNr8lsia.js} +1 -1
- package/{eds-card-project.entry-DAMXRHfD.mjs → eds-card-project.entry-CtwByu-b.mjs} +2 -2
- package/{eds-card-project.entry-BUbV0p8h.js → eds-card-project.entry-DDVZxmW4.js} +1 -1
- package/{eds-card-section.entry-DyA-0-g2.mjs → eds-card-section.entry-DQfUs62H.mjs} +1 -1
- package/{eds-card-section.entry-CqomDmBW.js → eds-card-section.entry-Dq80ib2D.js} +1 -1
- package/{eds-card-tags.entry-jLEzA08t.js → eds-card-tags.entry-CSuzFzX-.js} +1 -1
- package/{eds-card-tags.entry-DHtCc-Su.mjs → eds-card-tags.entry-DrWAV-ko.mjs} +1 -1
- package/{eds-card-tool.entry-poM-4hr7.js → eds-card-tool.entry-CNxFGROK.js} +1 -1
- package/{eds-card-tool.entry-D-ncKPKB.mjs → eds-card-tool.entry-D1HR_5K1.mjs} +1 -1
- package/{eds-code-block.entry-CHxseIw9.mjs → eds-code-block.entry-DGIrW97_.mjs} +1 -1
- package/{eds-code-block.entry-COQqBXRW.js → eds-code-block.entry-JdJJLE4a.js} +1 -1
- package/{eds-cookies-preference.entry-xYpSlhUA.mjs → eds-cookies-preference.entry-CVk-5TmL.mjs} +5 -5
- package/{eds-cookies-preference.entry-B_7xgDUj.js → eds-cookies-preference.entry-D3iYnclm.js} +1 -1
- package/{eds-feedback.entry-_rvRRCPH.mjs → eds-feedback.entry-B1yQSCpz.mjs} +5 -5
- package/{eds-feedback.entry-Bz0Gg-D6.js → eds-feedback.entry-mYb4amQb.js} +1 -1
- package/eds-footer.entry-C93DGupd.mjs +40 -0
- package/eds-footer.entry-DMUzB4MR.js +1 -0
- package/{eds-frame.entry-C7_mlplr.js → eds-frame.entry-eqZLv-6q.js} +1 -1
- package/{eds-frame.entry-AKS6Cg3S.mjs → eds-frame.entry-n9qJhfsP.mjs} +4 -4
- package/eds-fullscreen-menu.entry-CUitgYea.mjs +59 -0
- package/eds-fullscreen-menu.entry-DKAdy3Bn.js +1 -0
- package/{eds-gauge.entry-Bu1wRc7L.js → eds-gauge.entry-Bjp3cj0S.js} +1 -1
- package/{eds-gauge.entry-CTjtmNJE.mjs → eds-gauge.entry-CrqkvnWf.mjs} +1 -1
- package/{eds-icon-arrow-diagonal.entry-EflyyUWB.js → eds-icon-arrow-diagonal.entry-B8-jArDT.js} +1 -1
- package/{eds-icon-arrow-diagonal.entry-DApWIpVN.mjs → eds-icon-arrow-diagonal.entry-DACKEZ7o.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-ZSfBTScX.js → eds-icon-arrow-right.entry-BP77Fhx8.js} +1 -1
- package/{eds-icon-arrow-right.entry-Cix9ivM9.mjs → eds-icon-arrow-right.entry-BvPrrid_.mjs} +1 -1
- package/eds-icon-bin.entry-B54EXA_6.mjs +13 -0
- package/eds-icon-bin.entry-C7Jo_DW-.js +1 -0
- package/eds-icon-bluesky.entry-Bx-UDdty.mjs +13 -0
- package/{eds-icon-bluesky.entry-BRIRJiSV.js → eds-icon-bluesky.entry-DJCdYrfU.js} +1 -1
- package/eds-icon-bookmark.entry-B5IinWaZ.mjs +13 -0
- package/{eds-icon-bookmark.entry-CkgO7mHH.js → eds-icon-bookmark.entry-Dhvd8veD.js} +1 -1
- package/{eds-icon-chevron-down.entry-C8v2vr9X.js → eds-icon-chevron-down.entry-B__d09rD.js} +1 -1
- package/{eds-icon-chevron-down.entry-NlPaF_rj.mjs → eds-icon-chevron-down.entry-P4xqCoWP.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-BeKBF5L3.mjs → eds-icon-chevron-left.entry-CuBl_BGv.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-CBrh9mnu.js → eds-icon-chevron-left.entry-ZkPovDlT.js} +1 -1
- package/{eds-icon-chevron-right.entry-BIIbLECk.js → eds-icon-chevron-right.entry-5h2qhFR-.js} +1 -1
- package/{eds-icon-chevron-right.entry-D62Bse5m.mjs → eds-icon-chevron-right.entry-C0dfqwMy.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-A5aQkjF_.js → eds-icon-chevron-up.entry-D0353BVJ.js} +1 -1
- package/{eds-icon-chevron-up.entry-D2Ztr_9R.mjs → eds-icon-chevron-up.entry-UAZdu3Df.mjs} +1 -1
- package/{eds-icon-close.entry-Cjai9hqm.js → eds-icon-close.entry-D09Q-ylx.js} +1 -1
- package/eds-icon-close.entry-uJAE-Wjb.mjs +13 -0
- package/eds-icon-copy.entry-BtI5KVDq.mjs +13 -0
- package/eds-icon-copy.entry-CECbryXM.js +1 -0
- package/eds-icon-draft.entry-LmdchYUq.mjs +13 -0
- package/eds-icon-draft.entry-TMbsQxNO.js +1 -0
- package/eds-icon-edit.entry-R36lCJ2A.mjs +13 -0
- package/eds-icon-edit.entry-l8L__tUR.js +1 -0
- package/eds-icon-eu.entry--K0Tu14T.js +1 -0
- package/eds-icon-eu.entry-yv7nc0gr.mjs +13 -0
- package/eds-icon-external.entry-DdbbUm2H.mjs +13 -0
- package/{eds-icon-external.entry-DPGDAx-n.js → eds-icon-external.entry-DjuhhmIA.js} +1 -1
- package/{eds-icon-facebook.entry-AD9p9cdA.js → eds-icon-facebook.entry-BdzYJmXP.js} +1 -1
- package/eds-icon-facebook.entry-CrssRpWE.mjs +13 -0
- package/{eds-icon-gitlab.entry-byyKzSVe.js → eds-icon-gitlab.entry-BE8qLkYR.js} +1 -1
- package/eds-icon-gitlab.entry-CeKDBPdQ.mjs +13 -0
- package/{eds-icon-linkedin.entry-1ALOw5Nw.js → eds-icon-linkedin.entry-C4GaDa_x.js} +1 -1
- package/eds-icon-linkedin.entry-DTormNBK.mjs +13 -0
- package/{eds-icon-loader.entry-CuHJjqmg.mjs → eds-icon-loader.entry-BOxUhqUI.mjs} +2 -2
- package/{eds-icon-loader.entry-BV1KIgZF.js → eds-icon-loader.entry-BzyS9rwg.js} +1 -1
- package/eds-icon-mastodon.entry-Cb_b8WxS.mjs +13 -0
- package/{eds-icon-mastodon.entry-jgD7MTYX.js → eds-icon-mastodon.entry-D_cz6_YV.js} +1 -1
- package/eds-icon-menu.entry-DN8ArM1E.js +1 -0
- package/eds-icon-menu.entry-c9wghxje.mjs +13 -0
- package/eds-icon-minus.entry-DPNNp66u.js +1 -0
- package/eds-icon-minus.entry-zF5hDaP1.mjs +13 -0
- package/{eds-icon-more.entry-B1xRZHm5.js → eds-icon-more.entry-C9Qqow2i.js} +1 -1
- package/eds-icon-more.entry-VvMJWQBC.mjs +13 -0
- package/eds-icon-paper.entry-BLYcxhYh.mjs +13 -0
- package/eds-icon-paper.entry-CGeDyZ2Q.js +1 -0
- package/eds-icon-plus.entry-DrhM4x_H.mjs +13 -0
- package/eds-icon-plus.entry-P2gRynxf.js +1 -0
- package/eds-icon-portal.entry-Br9nR5tb.mjs +13 -0
- package/{eds-icon-portal.entry-DnJmIMRm.js → eds-icon-portal.entry-YF8r9Y0s.js} +1 -1
- package/eds-icon-private.entry-C-VoEd-k.mjs +13 -0
- package/{eds-icon-private.entry-DtBSIkHX.js → eds-icon-private.entry-DGy28MBj.js} +1 -1
- package/eds-icon-public.entry-JRATi6FK.mjs +13 -0
- package/eds-icon-public.entry-VrKUyRn4.js +1 -0
- package/eds-icon-search.entry-BFfawTmF.js +1 -0
- package/eds-icon-search.entry-D3nOAH3d.mjs +13 -0
- package/eds-icon-star.entry-CfxlHoON.mjs +13 -0
- package/{eds-icon-star.entry-DF5yuBBL.js → eds-icon-star.entry-D_o_p4FR.js} +1 -1
- package/eds-icon-start.entry-EmqNVYVq.mjs +13 -0
- package/eds-icon-start.entry-gFD3CneX.js +1 -0
- package/{eds-icon-success.entry-B1fogHF3.js → eds-icon-success.entry-D4rmUwOz.js} +1 -1
- package/eds-icon-success.entry-asuFd1wn.mjs +13 -0
- package/eds-icon-thumbs-down.entry-5IoOfXYg.mjs +13 -0
- package/{eds-icon-thumbs-down.entry-CMPpiwL9.js → eds-icon-thumbs-down.entry-BA_isKQz.js} +1 -1
- package/eds-icon-thumbs-up.entry-B90KeLnV.mjs +13 -0
- package/eds-icon-thumbs-up.entry-CBiv69dB.js +1 -0
- package/eds-icon-tutorial.entry-BMlnAYBS.mjs +13 -0
- package/eds-icon-tutorial.entry-DReMsj7W.js +1 -0
- package/{eds-icon-twitter.entry-CmxHLjFA.mjs → eds-icon-twitter.entry-BwOIf0Bv.mjs} +2 -2
- package/{eds-icon-twitter.entry-C9WCQdIw.js → eds-icon-twitter.entry-CZo7HVCl.js} +1 -1
- package/{eds-icon-unknown.entry-BArTU2et.js → eds-icon-unknown.entry-C6uw3X-q.js} +1 -1
- package/eds-icon-unknown.entry-U2OwdtDM.mjs +13 -0
- package/eds-icon-updown.entry-D-ktiRgn.mjs +13 -0
- package/eds-icon-updown.entry-f_pOMD8D.js +1 -0
- package/eds-icon-user.entry-DlnnIhcq.js +1 -0
- package/eds-icon-user.entry-aELakb9j.mjs +13 -0
- package/{eds-icon-youtube.entry-SF25C1Kn.js → eds-icon-youtube.entry-BUryZYQc.js} +1 -1
- package/eds-icon-youtube.entry-HRKBTy8P.mjs +13 -0
- package/{eds-matomo-notice.entry-KHg6Z8hS.js → eds-matomo-notice.entry-B0xxpHZr.js} +1 -1
- package/{eds-matomo-notice.entry-Dk2xauk_.mjs → eds-matomo-notice.entry-NBKdUOFY.mjs} +1 -1
- package/eds-modal.entry-Cjj4QVEc.js +1 -0
- package/eds-modal.entry-DuG9A0QH.mjs +114 -0
- package/{eds-pie.entry-iahHzaRO.mjs → eds-pie.entry-BU0NzwvU.mjs} +1 -1
- package/{eds-pie.entry-D7C4sB-x.js → eds-pie.entry-BiQyGOJw.js} +1 -1
- package/{eds-progress-bar.entry-DnNUjJMk.js → eds-progress-bar.entry-BfV2jWgV.js} +1 -1
- package/{eds-progress-bar.entry-v34osF0f.mjs → eds-progress-bar.entry-BoQmuoGC.mjs} +4 -4
- package/{eds-section-core_2.entry-DTPGi-T3.mjs → eds-section-core_2.entry-D2OlT6Zh.mjs} +9 -9
- package/eds-section-core_2.entry-Jw_e-l_h.js +1 -0
- package/eds-social-networks.entry-0Q7OwcYS.js +1 -0
- package/eds-social-networks.entry-CWPTBmxN.mjs +50 -0
- package/eds-spinner.entry-BKjbNwEi.js +1 -0
- package/eds-spinner.entry-dAJHt3cE.mjs +68 -0
- package/{eds-splash-screen.entry-Befnen9o.js → eds-splash-screen.entry-D3_EbR0-.js} +1 -1
- package/{eds-splash-screen.entry-DBluWXIM.mjs → eds-splash-screen.entry-DOmRKV_v.mjs} +5 -5
- package/{eds-switch.entry-CosNq-p4.mjs → eds-switch.entry-DeWyzUU9.mjs} +4 -4
- package/eds-switch.entry-qYhLXAv2.js +1 -0
- package/{eds-timeline.entry-DjvYLLSp.mjs → eds-timeline.entry-BSozjnyo.mjs} +4 -4
- package/{eds-timeline.entry-BCjmB9Xm.js → eds-timeline.entry-CFhtSoZc.js} +1 -1
- package/{eds-toast-manager.entry-CI2pWD12.mjs → eds-toast-manager.entry-Bj-xEHAg.mjs} +2 -2
- package/{eds-toast-manager.entry-CSLouuKC.js → eds-toast-manager.entry-CWvJ6hUh.js} +1 -1
- package/eds-tooltip.entry-B5DXjEqa.js +5 -0
- package/eds-tooltip.entry-DJZDeWm0.mjs +31 -0
- package/eds-trl.entry-CMwFX2VA.js +1 -0
- package/eds-trl.entry-DWE3RZnq.mjs +34 -0
- package/{incorrect-use-of-colors.entry-vKxKvEdZ.mjs → incorrect-use-of-colors.entry-C0MGEaLB.mjs} +7 -7
- package/incorrect-use-of-colors.entry-CzcQmvFc.js +1 -0
- package/{index-CzMU3jaN.mjs → index-BW6yUYdy.mjs} +505 -469
- package/index-ECY2yg1E.js +21 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{logo-space.entry-BA6ql3EX.mjs → logo-space.entry-C5_FS_1e.mjs} +6 -6
- package/{logo-space.entry-DH8akOBP.js → logo-space.entry-Cq0tziVn.js} +2 -2
- package/{logo-variations-horizontal_2.entry-BirE9z23.mjs → logo-variations-horizontal_2.entry-Bx8geXjs.mjs} +5 -5
- package/{logo-variations-horizontal_2.entry-z5j2TKKV.js → logo-variations-horizontal_2.entry-CQW41pP-.js} +3 -3
- package/logo-variations-tabs.entry-CfkXBk5k.js +1 -0
- package/{logo-variations-tabs.entry-BmTvERXv.mjs → logo-variations-tabs.entry-DgYru0Zn.mjs} +4 -4
- package/{logo-wrong-usage.entry-CjgtFVPG.js → logo-wrong-usage.entry-B2LU9hBv.js} +1 -1
- package/{logo-wrong-usage.entry-BbPrw3j7.mjs → logo-wrong-usage.entry-BdBfaWtI.mjs} +2 -2
- package/package.json +1 -1
- package/start-65126a4f-D1LeCi_N.js +1 -0
- package/start-65126a4f-mQSjIlRh.mjs +4 -0
- package/{svg-repository.entry-CZSA48bf.js → svg-repository.entry-C8PnrvxA.js} +12 -12
- package/{svg-repository.entry-DKFrqv2N.mjs → svg-repository.entry-PcURnvgb.mjs} +47 -39
- package/{token-list_3.entry-CA_dmkg0.mjs → token-list_3.entry-B4ClAGZQ.mjs} +4 -4
- package/{token-list_3.entry-D01IjrRV.js → token-list_3.entry-CnPtT_DH.js} +1 -1
- package/token-ratios.entry-BoaLF_aM.js +1 -0
- package/{token-ratios.entry-DbPXi2kO.mjs → token-ratios.entry-DU33V_Fx.mjs} +2 -2
- package/token-spacing.entry-B6e3-GJR.js +1 -0
- package/token-spacing.entry-DuYrBWKx.mjs +12 -0
- package/{token-typography.entry-CGL980gc.js → token-typography.entry-DFu3h1rd.js} +1 -1
- package/{token-typography.entry-7w397rnv.mjs → token-typography.entry-WBbs4fXw.mjs} +2 -2
- package/color-primary-palette_6.entry-CLe70qe2.js +0 -1
- package/eds-app-root.entry-D71BGBqs.mjs +0 -25
- package/eds-app-root.entry-DAofvGrS.js +0 -1
- package/eds-icon-bluesky.entry-2ANhlM_4.mjs +0 -13
- package/eds-icon-bookmark.entry-Ddl0jrS1.mjs +0 -13
- package/eds-icon-close.entry-Cm9uys75.mjs +0 -13
- package/eds-icon-copy.entry-B014Oj94.mjs +0 -13
- package/eds-icon-copy.entry-BPG9iphp.js +0 -1
- package/eds-icon-eu.entry--ifq4TVY.mjs +0 -13
- package/eds-icon-eu.entry-BkQMef2R.js +0 -1
- package/eds-icon-external.entry-BluwR-M2.mjs +0 -13
- package/eds-icon-facebook.entry-C6vLL-ZK.mjs +0 -13
- package/eds-icon-gitlab.entry-BVntXCkj.mjs +0 -13
- package/eds-icon-linkedin.entry-Biiw6BRH.mjs +0 -13
- package/eds-icon-mastodon.entry-DZPeyJnj.mjs +0 -13
- package/eds-icon-menu.entry-BmluVk4O.mjs +0 -13
- package/eds-icon-menu.entry-K8jBARsc.js +0 -1
- package/eds-icon-minus.entry-B-K-fCLn.js +0 -1
- package/eds-icon-minus.entry-BwS2J-0k.mjs +0 -13
- package/eds-icon-more.entry-C4LI07y7.mjs +0 -13
- package/eds-icon-paper.entry-DYyfOOBp.mjs +0 -13
- package/eds-icon-paper.entry-S2bABr8M.js +0 -1
- package/eds-icon-plus.entry-DrOQR1-5.js +0 -1
- package/eds-icon-plus.entry-lgFingSk.mjs +0 -13
- package/eds-icon-portal.entry-BkiLFOgK.mjs +0 -13
- package/eds-icon-private.entry-CDS_Srbd.mjs +0 -13
- package/eds-icon-public.entry-DDn8AIxa.js +0 -1
- package/eds-icon-public.entry-DR5uGDZS.mjs +0 -13
- package/eds-icon-search.entry-Bnd3z7Gq.mjs +0 -13
- package/eds-icon-search.entry-LBtE2sTv.js +0 -1
- package/eds-icon-star.entry-DL55cn-c.mjs +0 -13
- package/eds-icon-success.entry-3qIhgFfS.mjs +0 -13
- package/eds-icon-thumbs-down.entry-jleRkiuW.mjs +0 -13
- package/eds-icon-thumbs-up.entry-DSi5a3rC.js +0 -1
- package/eds-icon-thumbs-up.entry-uIV1xodW.mjs +0 -13
- package/eds-icon-tutorial.entry-CCB4om6s.js +0 -1
- package/eds-icon-tutorial.entry-Cmufbj9R.mjs +0 -13
- package/eds-icon-unknown.entry-B2KAcq_j.mjs +0 -13
- package/eds-icon-updown.entry-DZipKiZI.mjs +0 -13
- package/eds-icon-updown.entry-NTbpPknC.js +0 -1
- package/eds-icon-user.entry-BHfqBJZM.mjs +0 -13
- package/eds-icon-user.entry-BSfArIua.js +0 -1
- package/eds-icon-youtube.entry-lwJhoDlX.mjs +0 -13
- package/eds-rating.entry-1XJZVuds.mjs +0 -61
- package/eds-rating.entry-BIfkMWJ0.js +0 -1
- package/eds-section-core_2.entry-CJ9ut1Sr.js +0 -1
- package/eds-spinner.entry-B_lPL79O.js +0 -1
- package/eds-spinner.entry-Co2X0o0l.mjs +0 -36
- package/eds-switch.entry-B8LLtctL.js +0 -1
- package/eds-toast.entry-CMhcZNkR.js +0 -3
- package/eds-toast.entry-CZthqnDQ.mjs +0 -61
- package/eds-tooltip.entry-DEB_c3w5.js +0 -6
- package/eds-tooltip.entry-DxkWRXWv.mjs +0 -31
- package/eds-trl.entry-Cq2K9CQO.mjs +0 -34
- package/eds-trl.entry-Z5kWmLOP.js +0 -1
- package/incorrect-use-of-colors.entry-DUP8RsBO.js +0 -1
- package/index-CWPouWg5.js +0 -21
- package/logo-variations-tabs.entry-hp_vi-H9.js +0 -1
- package/token-ratios.entry-etabNNVm.js +0 -1
- package/token-spacing.entry-UQqL_0C-.js +0 -1
- package/token-spacing.entry-h2Rrqa4s.mjs +0 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as d, h as i, g, c as h } from "./index-BW6yUYdy.mjs";
|
|
2
2
|
import { s as f } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
3
|
import { c as m } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
4
|
-
import { p as
|
|
5
|
-
import { h as
|
|
6
|
-
import { h as
|
|
4
|
+
import { p as x } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
5
|
+
import { h as y } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
6
|
+
import { h as k, a as z, b as C, c as S, v as E, d as F, e as L, f as I, g as A } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
|
|
7
7
|
const j = `::before,
|
|
8
8
|
::after {
|
|
9
9
|
box-sizing: border-box;
|
|
@@ -205,9 +205,9 @@ abbr:where([title]) {
|
|
|
205
205
|
|
|
206
206
|
.bg-gradient-04-bottom {
|
|
207
207
|
background: linear-gradient(to top, #2B69FC, ease-in-out, #E6E6E6);
|
|
208
|
-
}`, P = j,
|
|
208
|
+
}`, P = j, W = class {
|
|
209
209
|
constructor(n) {
|
|
210
|
-
|
|
210
|
+
d(this, n), this.firstName = "User", this.lastName = "Avatar", this.picture = void 0, this.initials = void 0, this.color = "grey";
|
|
211
211
|
}
|
|
212
212
|
/**
|
|
213
213
|
* Flag to render the avatar with rounded (pill) shape if `true`.
|
|
@@ -254,17 +254,17 @@ abbr:where([title]) {
|
|
|
254
254
|
return i("div", { key: "b7eff7ae1a1dea3509041e39316b49b673dbdf17", class: this.containerClasses }, this.picture ? i("eds-img", { src: this.picture, width: 54, height: 54, sizes: "120px", alt: `${this.firstName} ${this.lastName}`, lazyload: !0, withBg: !0 }) : i("abbr", { title: this.computedInitials || `${this.firstName} ${this.lastName}`, class: "!no-underline f-ui-01" }, this.computedInitials));
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
|
|
258
|
-
const
|
|
257
|
+
W.style = P;
|
|
258
|
+
const _ = ".border-softer{border-color:rgba(0, 0, 0, .1)}.border-default{border-color:var(--black)}.my-16{margin-top:1rem;margin-bottom:1rem}.block{display:block}.w-full{width:100%}.border-t-2{border-top-width:2px}", T = _, O = class {
|
|
259
259
|
constructor(n) {
|
|
260
|
-
|
|
260
|
+
d(this, n), this.inverse = !1;
|
|
261
261
|
}
|
|
262
262
|
render() {
|
|
263
263
|
return i("hr", { key: "b604a776cae7edeee189e00af6993b42b57203f0", class: `${this.inverse ? "border-default" : "border-softer"} my-16 inline-block w-full border-t-2` });
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
O.style =
|
|
267
|
-
const
|
|
266
|
+
O.style = T;
|
|
267
|
+
const $ = `*,
|
|
268
268
|
::before,
|
|
269
269
|
::after {
|
|
270
270
|
box-sizing: border-box;
|
|
@@ -1173,9 +1173,9 @@ button,
|
|
|
1173
1173
|
|
|
1174
1174
|
.hover\\:before\\:opacity-100:hover::before {
|
|
1175
1175
|
opacity: 1;
|
|
1176
|
-
}`,
|
|
1176
|
+
}`, H = $, D = class {
|
|
1177
1177
|
constructor(n) {
|
|
1178
|
-
|
|
1178
|
+
d(this, n), this.button = m([
|
|
1179
1179
|
"relative inline-flex items-center",
|
|
1180
1180
|
"py-8",
|
|
1181
1181
|
"effect-focus effect-color",
|
|
@@ -1311,13 +1311,13 @@ button,
|
|
|
1311
1311
|
`, icon: this.icon }) : null);
|
|
1312
1312
|
}
|
|
1313
1313
|
get el() {
|
|
1314
|
-
return
|
|
1314
|
+
return g(this);
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1317
|
+
D.style = H;
|
|
1318
|
+
const q = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-shadow:0px 1.5px 2px rgba(0, 0, 0, 0.1);--tw-shadow-colored:0px 1.5px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-inverse{background-color:var(--white)}.border-softest{border:2px solid rgba(0, 0, 0, .05)}.z-10{z-index:10}.z-on-top{z-index:99999}.absolute{position:absolute}.top-full{top:100%}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.gap-y-4{row-gap:0.25rem}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.left-0{left:0rem}.left-1\\/2{left:50%}.left-4{left:0.25rem}.left-\\[4px\\]{left:4px}.right-0{right:0rem}.right-4{right:0.25rem}.right-8{right:0.5rem}", R = q, B = class {
|
|
1319
1319
|
constructor(n) {
|
|
1320
|
-
|
|
1320
|
+
d(this, n), this.dropdown = h(this, "dropdown", 7), this.focusableItems = [], this.handleClick = () => {
|
|
1321
1321
|
var e;
|
|
1322
1322
|
this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), this.dropdown.emit({ expanded: this.isOpen }), f({
|
|
1323
1323
|
category: "ui-component",
|
|
@@ -1326,7 +1326,7 @@ const D = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-sh
|
|
|
1326
1326
|
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
|
|
1327
1327
|
action: this.isOpen ? "expanded" : "collapsed"
|
|
1328
1328
|
});
|
|
1329
|
-
}, this.icon =
|
|
1329
|
+
}, this.icon = void 0, this.label = void 0, this.rounded = !1, this.ariaLabel = "Open dropdown", this.asNav = !0, this.dropdownPos = "left", this.dropdownOffset = !0, this.intent = "tertiary", this.isOpen = !1, this.focusIndex = -1;
|
|
1330
1330
|
}
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Closes the dropdown when a click occurs outside of it.
|
|
@@ -1379,69 +1379,54 @@ const D = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-sh
|
|
|
1379
1379
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
1380
1380
|
*/
|
|
1381
1381
|
render() {
|
|
1382
|
-
return i("div", { key: "
|
|
1382
|
+
return i("div", { key: "14f31163cc0fb25c3d531632ae36e01d8759567d", class: "z-focus relative", ref: (n) => this.dropdownContent = n }, i("eds-button", { key: "748413032b87b13290743f5bb9822cb84c1d0cf9", label: this.label, "aria-label": this.ariaLabel, icon: this.icon, intent: this.intent, onClick: this.handleClick, "aria-expanded": this.isOpen.toString(), "aria-haspopup": "menu" }), i("nav", { key: "1a8f28c02b0782569228f75e030483439374baed", role: "menu", class: {
|
|
1383
1383
|
"shadow-small bg-inverse border-softest z-10 z-on-top absolute top-full mt-4 flex flex-col gap-y-4 border-2 p-8": !0,
|
|
1384
1384
|
"left-4": this.dropdownPos === "left" && this.dropdownOffset,
|
|
1385
1385
|
"left-0": this.dropdownPos === "left" && !this.dropdownOffset,
|
|
1386
1386
|
"right-4": this.dropdownPos === "right" && this.dropdownOffset,
|
|
1387
1387
|
"right-0": this.dropdownPos === "right" && !this.dropdownOffset,
|
|
1388
1388
|
"rounded-lg": this.rounded
|
|
1389
|
-
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, i("slot", { key: "
|
|
1389
|
+
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, i("slot", { key: "31189866f6e1779a5fd5e1b8f3c33d8a0074410b" })));
|
|
1390
1390
|
}
|
|
1391
1391
|
get host() {
|
|
1392
|
-
return
|
|
1392
|
+
return g(this);
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
|
-
B.style =
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
toggleCookiesConsent() {
|
|
1403
|
-
this.cookies.emit("toggle");
|
|
1395
|
+
B.style = R;
|
|
1396
|
+
function p(n, e, r, t, l, o, a) {
|
|
1397
|
+
const s = [];
|
|
1398
|
+
if (t && !e) {
|
|
1399
|
+
const c = n.length > 30 ? `${n.slice(0, 27)}…` : n;
|
|
1400
|
+
s.push(`“${c}” is required.`);
|
|
1404
1401
|
}
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
* legal links such as "Cookies Preferences" and copyright information.
|
|
1409
|
-
*
|
|
1410
|
-
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
1411
|
-
*/
|
|
1412
|
-
render() {
|
|
1413
|
-
return i("footer", { key: "97eecea73acf5ee3d125a446939010055c24e3f3" }, this.social ? i("div", { class: "border-softest border-t-2 pt-20 md:pt-28" }, i("div", { class: "container pb-20" }, i("div", { class: "grid-layout" }, i("div", { class: "grid-col-span-12 lg:grid-col-span-5" }, i("eds-social-networks", { class: "mt-28" }))))) : null, i("div", { key: "b7592d90406aa7b5e4d71e2947335a85dbbf70ae", class: `border-softest ${this.social ? "border-t-2" : ""} pb-28 pt-20 md:pt-28` }, i("div", { key: "054190192082a4fdd2435ef62e5e7765386149f5", class: "container flex items-center gap-20 lg:flex-nowrap" }, i("div", { key: "baa874cda99a882f33643609ffd2b99f09db3646", class: "flex items-center gap-x-12" }, i("a", { key: "f47a0e02c7db660ab2c5b9894fd6ef1f820239cf", target: "_blank", rel: "noopener noreferrer", class: "effect-focus focus-visible:rounded-xs flex w-[54px] ml-0", href: "https://research-and-innovation.ec.europa.eu/funding/funding-opportunities/funding-programmes-and-open-calls/horizon-europe_en", "aria-label": "Learn about Horizon Europe funding" }, i("eds-img", { key: "470f3ccae44a83383ad7f5bfcab880365b203a50", width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), i("div", { key: "a02153ae5b772b105272eac575911826747ea246" }, i("div", { key: "a274e52402142dce7df575b29ce8802d1d662368", class: "f-ui-04 text-light" }, i("p", { key: "ae2c393b8585aecd25d08ad20fe8bd712f9c12b5" }, this.fundedBy), i("div", { key: "9ef102155624ef47071d4285ea00c65d66d8606e", class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, i("span", { key: "86f5992c7570fcd88c80f7877f08cd4b357ca291", class: "effect-focus !no-underline decoration-2 underline-offset-4 hover:!underline mr-4" }, "© ", this.rightsReserved), this.enableCookiesSettings ? i("eds-link", { label: this.cookiesPreferences, intent: "underline", "extra-class": "f-ui-04", onClick: () => {
|
|
1414
|
-
this.toggleCookiesConsent();
|
|
1415
|
-
} }) : null))), i("div", { key: "3ffce63f46352acd80eff48fb121b5ee165c1ad5", class: "ml-auto pl-12" }, this.enableScrollTop ? i("eds-button", { id: "backToTop", "aria-hidden": "true", "aria-label": this.backToTopAriaLabel, intent: "ghostInverse", icon: "chevron-up", onClick: this.backToTop, class: "transition-all transition duration-75 opacity-0 " }) : null))));
|
|
1402
|
+
if (r === "number") {
|
|
1403
|
+
const c = typeof e == "number" ? e : parseFloat(e);
|
|
1404
|
+
isNaN(c) ? s.push(`${n} must be a valid number.`) : (typeof o == "number" && c < o && s.push(`${n} must be greater than or equal to ${o}.`), typeof a == "number" && c > a && s.push(`${n} must be less than or equal to ${a}.`));
|
|
1416
1405
|
}
|
|
1417
|
-
};
|
|
1418
|
-
R.style = N;
|
|
1419
|
-
function u(n, e, r, t, l) {
|
|
1420
|
-
const a = [];
|
|
1421
|
-
return t && !e && a.push(`${n} is required.`), l && typeof e == "string" && e.length > l && a.push(`${n} must be at most ${l} characters.`), r === "email" && e && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.toString()) && a.push("Invalid email format."), a;
|
|
1422
|
-
}
|
|
1423
|
-
function y(n, e, r) {
|
|
1424
|
-
const a = Array.from(r.querySelectorAll("eds-input-field")).filter((d) => {
|
|
1425
|
-
var g, x;
|
|
1426
|
-
return ((x = (g = d.shadowRoot) === null || g === void 0 ? void 0 : g.querySelectorAll(`input[name="${n}"]`)) === null || x === void 0 ? void 0 : x.length) > 0;
|
|
1427
|
-
}).flatMap((d) => {
|
|
1428
|
-
var g;
|
|
1429
|
-
return Array.from(((g = d.shadowRoot) === null || g === void 0 ? void 0 : g.querySelectorAll(`input[name="${n}"]`)) || []);
|
|
1430
|
-
}).some((d) => d.checked), o = [];
|
|
1431
|
-
return e && !a && o.push(`At least one option in ${n} is required.`), o;
|
|
1406
|
+
return l && typeof e == "string" && e.length > l && s.push(`${n} must be at most ${l} characters.`), r === "email" && e && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.toString()) && s.push("Invalid email format."), s;
|
|
1432
1407
|
}
|
|
1433
1408
|
function v(n, e, r) {
|
|
1409
|
+
const o = Array.from(r.querySelectorAll("eds-input-field")).filter((s) => {
|
|
1410
|
+
var c, b;
|
|
1411
|
+
return ((b = (c = s.shadowRoot) === null || c === void 0 ? void 0 : c.querySelectorAll(`input[name="${n}"]`)) === null || b === void 0 ? void 0 : b.length) > 0;
|
|
1412
|
+
}).flatMap((s) => {
|
|
1413
|
+
var c;
|
|
1414
|
+
return Array.from(((c = s.shadowRoot) === null || c === void 0 ? void 0 : c.querySelectorAll(`input[name="${n}"]`)) || []);
|
|
1415
|
+
}).some((s) => s.checked), a = [];
|
|
1416
|
+
return e && !o && a.push(`At least one option in ${n} is required.`), a;
|
|
1417
|
+
}
|
|
1418
|
+
function w(n, e, r) {
|
|
1434
1419
|
var t;
|
|
1435
|
-
const l = [],
|
|
1436
|
-
var
|
|
1437
|
-
return (
|
|
1420
|
+
const l = [], o = Array.from(r.querySelectorAll("eds-input-field")).find((s) => {
|
|
1421
|
+
var c;
|
|
1422
|
+
return (c = s.shadowRoot) === null || c === void 0 ? void 0 : c.querySelector(`[name="${n}"]`);
|
|
1438
1423
|
});
|
|
1439
|
-
if (!
|
|
1424
|
+
if (!o)
|
|
1440
1425
|
return e && l.push(`${n} is required.`), l;
|
|
1441
|
-
const
|
|
1442
|
-
return e &&
|
|
1426
|
+
const a = (t = o.shadowRoot) === null || t === void 0 ? void 0 : t.querySelector(`[name="${n}"]`);
|
|
1427
|
+
return e && a && !a.checked && l.push(`${n} is required.`), l;
|
|
1443
1428
|
}
|
|
1444
|
-
function
|
|
1429
|
+
function N(n, e) {
|
|
1445
1430
|
const r = Array.from(n.querySelectorAll("eds-input-field"));
|
|
1446
1431
|
for (const t of r)
|
|
1447
1432
|
if (t.shadowRoot) {
|
|
@@ -1451,34 +1436,46 @@ function V(n, e) {
|
|
|
1451
1436
|
}
|
|
1452
1437
|
return null;
|
|
1453
1438
|
}
|
|
1454
|
-
function
|
|
1439
|
+
function M(n) {
|
|
1440
|
+
const e = Array.from(n.querySelectorAll("eds-rating"));
|
|
1441
|
+
for (const r of e)
|
|
1442
|
+
return r;
|
|
1443
|
+
return null;
|
|
1444
|
+
}
|
|
1445
|
+
function V(n, e, r, t) {
|
|
1455
1446
|
const l = {};
|
|
1456
|
-
let
|
|
1457
|
-
return n.forEach((
|
|
1458
|
-
if (!t(
|
|
1459
|
-
delete l[
|
|
1447
|
+
let o = !1;
|
|
1448
|
+
return n.forEach((a) => {
|
|
1449
|
+
if (!t(a, r)) {
|
|
1450
|
+
delete l[a.name];
|
|
1460
1451
|
return;
|
|
1461
1452
|
}
|
|
1462
|
-
if (
|
|
1463
|
-
if ((
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
} else if (
|
|
1467
|
-
const
|
|
1468
|
-
|
|
1453
|
+
if (a.type !== "hidden")
|
|
1454
|
+
if ((a.type === "checkbox" || a.type === "radio") && !a.options) {
|
|
1455
|
+
const s = w(a.name, a.required, e);
|
|
1456
|
+
s.length > 0 && (l[a.name] = s, o = !0);
|
|
1457
|
+
} else if (a.options && (a.type === "checkbox" || a.type === "radio")) {
|
|
1458
|
+
const s = v(a.name, a.required, e);
|
|
1459
|
+
s.length > 0 && (l[a.name] = s, o = !0);
|
|
1460
|
+
} else if (a.type === "rating") {
|
|
1461
|
+
const s = M(e);
|
|
1462
|
+
if (s) {
|
|
1463
|
+
const c = s.getAttribute("selected-rating"), b = c !== null ? parseInt(c, 10) : 0, u = p(a.name, b, a.type, a.required);
|
|
1464
|
+
u.length > 0 && (l[a.name] = u, o = !0);
|
|
1465
|
+
}
|
|
1469
1466
|
} else {
|
|
1470
|
-
const
|
|
1471
|
-
if (
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1467
|
+
const s = N(e, a.name);
|
|
1468
|
+
if (s) {
|
|
1469
|
+
const c = s.value, b = p(a.name, c, a.type, a.required, a.maxlength, a.min, a.max);
|
|
1470
|
+
b.length > 0 && (l[a.name] = b, o = !0);
|
|
1474
1471
|
}
|
|
1475
1472
|
}
|
|
1476
|
-
}), { errors: l, hasError:
|
|
1473
|
+
}), { errors: l, hasError: o };
|
|
1477
1474
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return n.type === "checkbox" || n.type === "radio" ? n.options ?
|
|
1475
|
+
function U(n, e, r) {
|
|
1476
|
+
return n.type === "checkbox" || n.type === "radio" ? n.options ? v(n.name, n.required, r) : w(n.name, n.required, r) : p(n.name, e, n.type, n.required, n.maxlength, n.min, n.max);
|
|
1480
1477
|
}
|
|
1481
|
-
function
|
|
1478
|
+
function Y({
|
|
1482
1479
|
initData: n,
|
|
1483
1480
|
parsedFields: e,
|
|
1484
1481
|
currentValues: r
|
|
@@ -1487,19 +1484,19 @@ function X({
|
|
|
1487
1484
|
}) {
|
|
1488
1485
|
const t = Object.assign({}, r);
|
|
1489
1486
|
return e.forEach((l) => {
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1487
|
+
const o = n[l.name];
|
|
1488
|
+
o !== void 0 && (t[l.name] = o);
|
|
1492
1489
|
}), { updatedValues: t };
|
|
1493
1490
|
}
|
|
1494
|
-
const
|
|
1491
|
+
const X = ".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}.flex{display:flex}.flex-col{flex-direction:column}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-01 b,.f-body-01 strong{font-weight:var(--f-body-01---bold-weight, bold)}.f-body-02 b,.f-body-02 strong{font-weight:var(--f-body-02---bold-weight, bold)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.rounded-sm{border-radius:8px}.border-softer{border-color:rgba(0, 0, 0, .1)}.border-2{border-width:2px}.mt-20{margin-top:1.25rem}.mt-32{margin-top:2rem}.mb-32{margin-bottom:2rem}.pt-28{padding-top:1.75rem}.pl-8{padding-left:0.5rem}.pl-16{padding-left:1rem}.border-l-2{border-left-width:2px}.gap-y-8{row-gap:0.5rem}.gap-y-16{row-gap:1rem}.gap-y-24{row-gap:1.5rem}.border-group{border-left:1px solid var(--soft-color, #ddd);padding-left:1rem}", G = X, J = class {
|
|
1495
1492
|
constructor(n) {
|
|
1496
|
-
|
|
1493
|
+
d(this, n), this.form = h(this, "form", 7), this.name = "eds-form", this.setFormUrl = !0, this.formBtn = !0, this.formBtnLabel = "Submit", this.errorMessage = "Some fields in your form are incorrect.", this.fields = [], this.groups = [], this.initData = {}, this.values = {}, this.isSubmitting = !1, this.hasError = !1, this.errors = {}, this.parsedFields = [], this.parsedGroups = [];
|
|
1497
1494
|
}
|
|
1498
1495
|
async setData(n) {
|
|
1499
1496
|
this.populateFormWithInitData(n);
|
|
1500
1497
|
}
|
|
1501
1498
|
componentWillLoad() {
|
|
1502
|
-
this.parseFields(this.fields), this.el.querySelectorAll("eds-button").forEach((e) => {
|
|
1499
|
+
this.parseFields(this.fields), this.parseGroups(this.groups), this.el.querySelectorAll("eds-button").forEach((e) => {
|
|
1503
1500
|
this.emitContext(e);
|
|
1504
1501
|
});
|
|
1505
1502
|
}
|
|
@@ -1510,7 +1507,10 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1510
1507
|
return !!this.initData;
|
|
1511
1508
|
}
|
|
1512
1509
|
parseFields(n) {
|
|
1513
|
-
this.parsedFields =
|
|
1510
|
+
this.parsedFields = x(n);
|
|
1511
|
+
}
|
|
1512
|
+
parseGroups(n) {
|
|
1513
|
+
this.parsedGroups = x(n);
|
|
1514
1514
|
}
|
|
1515
1515
|
emitContext(n) {
|
|
1516
1516
|
const e = new CustomEvent("parentContext", {
|
|
@@ -1522,14 +1522,17 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1522
1522
|
n.dispatchEvent(e);
|
|
1523
1523
|
}
|
|
1524
1524
|
isFieldVisible(n) {
|
|
1525
|
-
|
|
1525
|
+
if (!n.condition)
|
|
1526
|
+
return !0;
|
|
1527
|
+
const e = this.values[n.condition.field], r = n.condition.value;
|
|
1528
|
+
return String(e) === String(r);
|
|
1526
1529
|
}
|
|
1527
1530
|
validateForm() {
|
|
1528
|
-
const { errors: n, hasError: e } =
|
|
1531
|
+
const { errors: n, hasError: e } = V(this.parsedFields, this.formEl, this.values, (r, t) => r.condition ? t[r.condition.field] === r.condition.value : !0);
|
|
1529
1532
|
this.errors = n, this.hasError = e;
|
|
1530
1533
|
}
|
|
1531
1534
|
populateFormWithInitData(n) {
|
|
1532
|
-
const { updatedValues: e } =
|
|
1535
|
+
const { updatedValues: e } = Y({
|
|
1533
1536
|
initData: n,
|
|
1534
1537
|
parsedFields: this.parsedFields,
|
|
1535
1538
|
currentValues: this.values,
|
|
@@ -1545,12 +1548,12 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1545
1548
|
const t = r.shadowRoot.querySelector("input, textarea, select");
|
|
1546
1549
|
if (t && t.name)
|
|
1547
1550
|
if (t.type === "checkbox" || t.type === "radio") {
|
|
1548
|
-
const
|
|
1549
|
-
n.append(t.name,
|
|
1551
|
+
const o = Array.from(r.shadowRoot.querySelectorAll(`input[name="${t.name}"]:checked`)).map((a) => a.value);
|
|
1552
|
+
n.append(t.name, o.join(","));
|
|
1550
1553
|
} else if (t.type === "file") {
|
|
1551
1554
|
const l = t;
|
|
1552
|
-
l.files && l.files.length > 0 && Array.from(l.files).forEach((
|
|
1553
|
-
n.append(l.name,
|
|
1555
|
+
l.files && l.files.length > 0 && Array.from(l.files).forEach((o) => {
|
|
1556
|
+
n.append(l.name, o);
|
|
1554
1557
|
});
|
|
1555
1558
|
} else
|
|
1556
1559
|
n.append(t.name, t.value);
|
|
@@ -1565,30 +1568,48 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1565
1568
|
}
|
|
1566
1569
|
handleChange(n, e) {
|
|
1567
1570
|
const r = n.target;
|
|
1571
|
+
let t = r.value;
|
|
1568
1572
|
if (r.type === "checkbox") {
|
|
1569
|
-
const
|
|
1570
|
-
let
|
|
1571
|
-
r.checked ?
|
|
1572
|
-
} else
|
|
1573
|
-
|
|
1574
|
-
|
|
1573
|
+
const l = this.values[e.name] || "";
|
|
1574
|
+
let o = l ? l.split(",") : [];
|
|
1575
|
+
r.checked ? o.includes(r.value) || o.push(r.value) : o = o.filter((a) => a !== r.value), t = o.join(",");
|
|
1576
|
+
} else if (r.type === "radio") {
|
|
1577
|
+
if (!r.checked)
|
|
1578
|
+
return;
|
|
1579
|
+
t = r.value;
|
|
1580
|
+
}
|
|
1581
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: t }), e.name !== "password" && this.form.emit({
|
|
1575
1582
|
event: "change",
|
|
1576
1583
|
field: e.name,
|
|
1577
|
-
value:
|
|
1584
|
+
value: t,
|
|
1578
1585
|
message: `${e.name} updated`
|
|
1579
1586
|
//data: this.makeFormData()
|
|
1580
1587
|
});
|
|
1581
1588
|
}
|
|
1582
1589
|
handleInput(n, e) {
|
|
1583
|
-
const r = n.target
|
|
1584
|
-
|
|
1590
|
+
const r = n.target;
|
|
1591
|
+
if (r.type === "radio" && !r.checked)
|
|
1592
|
+
return;
|
|
1593
|
+
const t = r.value, l = Object.assign({}, this.errors), o = U(e, r.value, this.formEl);
|
|
1594
|
+
o.length > 0 ? l[e.name] = o : delete l[e.name], this.errors = l, this.hasError = Object.keys(l).length > 0, this.form.emit({
|
|
1585
1595
|
event: "input",
|
|
1586
1596
|
field: e.name,
|
|
1587
|
-
value:
|
|
1597
|
+
value: t,
|
|
1588
1598
|
message: `${e.name} updated`
|
|
1589
1599
|
//data: this.makeFormData()
|
|
1590
1600
|
});
|
|
1591
1601
|
}
|
|
1602
|
+
handleRating(n, e) {
|
|
1603
|
+
const r = n.detail;
|
|
1604
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: r });
|
|
1605
|
+
const t = Object.assign({}, this.errors);
|
|
1606
|
+
e.required && r === 0 ? t[e.name] = ["This field is required"] : delete t[e.name], this.errors = t, this.hasError = Object.keys(t).length > 0, this.form.emit({
|
|
1607
|
+
event: "change",
|
|
1608
|
+
field: e.name,
|
|
1609
|
+
value: r,
|
|
1610
|
+
message: `${e.name} updated`
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1592
1613
|
handleSubmit() {
|
|
1593
1614
|
var n, e;
|
|
1594
1615
|
if (!this.isSubmitting) {
|
|
@@ -1623,83 +1644,44 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1623
1644
|
}), this.errors = {}, this.formEl.reset(), this.isSubmitting = !1;
|
|
1624
1645
|
}
|
|
1625
1646
|
}
|
|
1647
|
+
get groupedFields() {
|
|
1648
|
+
const n = {};
|
|
1649
|
+
return this.parsedGroups.forEach((e) => n[e.id] = []), n.__ungrouped = [], this.parsedFields.forEach((e) => {
|
|
1650
|
+
const r = e.groupId || "__ungrouped";
|
|
1651
|
+
n[r] || (n[r] = []), n[r].push(e);
|
|
1652
|
+
}), n;
|
|
1653
|
+
}
|
|
1654
|
+
renderField(n) {
|
|
1655
|
+
var e, r;
|
|
1656
|
+
if (!this.isFieldVisible(n))
|
|
1657
|
+
return null;
|
|
1658
|
+
if (n.type === "rating") {
|
|
1659
|
+
const t = this.values[n.name] || 0;
|
|
1660
|
+
return i("div", { class: "form-group rating-field", key: n.name }, i("div", { class: "flex justify-between" }, n && i("eds-input-label", { name: `rating-${n.name}`, label: n.label, disabled: n.disabled, required: n.required })), i("eds-rating", { id: `rating-${n.name}`, "rating-type": n.ratingType, "rating-count": n.ratingCount, "selected-rating": t, onRating: (l) => this.handleRating(l, n) }), i("div", { class: "mt-6" }, i("eds-input-footer", { id: `${n.name}-footer`, name: n.name, message: n.message, "error-message": (e = this.errors[n.name]) === null || e === void 0 ? void 0 : e.join("<br/>"), error: !!this.errors[n.name], link: n.link })));
|
|
1661
|
+
}
|
|
1662
|
+
return i("eds-input-field", { key: n.name, name: n.name, label: n.label, placeholder: n.placeholder, type: n.type, value: this.values[n.name], required: n.required, hint: n.hint, message: n.message, error: !!this.errors[n.name], errorMessage: (r = this.errors[n.name]) === null || r === void 0 ? void 0 : r.join("<br/>"), options: n.options, onInput: (t) => this.handleInput(t, n), onChangeNative: (t) => this.handleChange(t, n) });
|
|
1663
|
+
}
|
|
1626
1664
|
async getData() {
|
|
1627
1665
|
return this.makeFormData();
|
|
1628
1666
|
}
|
|
1629
1667
|
render() {
|
|
1630
|
-
const n = this.parsedFields.filter((r) => r.type === "hidden"), e = this.
|
|
1631
|
-
return i("form", { key: "
|
|
1632
|
-
var l, a;
|
|
1633
|
-
return this.isFieldVisible(r) ? i("eds-input-field", { key: t, name: r.name, id: `${this.name}_${r.name}`, label: r.label, placeholder: r.placeholder, value: this.values[r.name] || null, type: r.type, icon: r.icon || null, disabled: r.disabled, required: r.required, maxLength: r.maxlength, hint: r.hint, link: r.link, message: r.message, error: ((l = this.errors[r.name]) === null || l === void 0 ? void 0 : l.length) > 0, errorMessage: (a = this.errors[r.name]) === null || a === void 0 ? void 0 : a.join("<br />"), onInput: (o) => this.handleInput(o, r), onChangeNative: (o) => this.handleChange(o, r), class: t > 0 ? "mt-20" : "", options: r.options }) : null;
|
|
1634
|
-
})), this.formBtn && i("div", { key: "0a120557c574112a8686087cfe2dbf3aae3feaa5", class: "mt-20" }, i("eds-button", { key: "277a39f0d82e01f549966aa0c91347e090a82bc7", intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })));
|
|
1668
|
+
const n = this.parsedFields.filter((r) => r.type === "hidden"), e = this.groupedFields;
|
|
1669
|
+
return i("form", { key: "65b3611bfc26512d594c3f4657bcba93f4e54ec9", ref: (r) => this.formEl = r, autocomplete: "on", onSubmit: this.handleSubmit }, i("div", { key: "24c77c04b83d458528fbb4423f2d1a0f0e7e65e3" }, i("slot", { key: "13cdf29e9da20c91d3fa38ced5f0843046cfeefb" }), n.map((r, t) => i("eds-input", { key: t, type: "hidden", name: r.name, value: r.value })), this.parsedGroups.filter((r) => Array.isArray(e[r.id]) && e[r.id].length > 0).map((r) => i("div", { class: "container mt-20", key: r.id }, i("span", { class: "f-body-02" }, i("b", null, r.title)), i("div", { class: "border-group mt-32 mb-32 flex flex-col gap-y-24" }, e[r.id].map((t) => this.renderField(t))))), i("div", { key: "99706c326e6e18a1099fef82e78a4ea383338fb4", class: "flex flex-col mt-20 gap-y-24" }, e.__ungrouped.map((r) => this.renderField(r)))), this.formBtn && i("div", { key: "6e66e2f87c18022d729fcea33e4db6bc2a173392", class: "mt-32" }, i("eds-button", { key: "a94a3e027f58c5276bec7e612987e738d74e7d1c", intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })));
|
|
1635
1670
|
}
|
|
1636
1671
|
get el() {
|
|
1637
|
-
return
|
|
1672
|
+
return g(this);
|
|
1638
1673
|
}
|
|
1639
1674
|
static get watchers() {
|
|
1640
1675
|
return {
|
|
1641
|
-
fields: ["parseFields"]
|
|
1676
|
+
fields: ["parseFields"],
|
|
1677
|
+
groups: ["parseGroups"]
|
|
1642
1678
|
};
|
|
1643
1679
|
}
|
|
1644
1680
|
};
|
|
1645
|
-
|
|
1646
|
-
const
|
|
1681
|
+
J.style = G;
|
|
1682
|
+
const Q = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}", K = Q, Z = class {
|
|
1647
1683
|
constructor(n) {
|
|
1648
|
-
|
|
1649
|
-
}
|
|
1650
|
-
/**
|
|
1651
|
-
* Listens for the toggleMenu event to open or close the menu.
|
|
1652
|
-
* This event is emitted by the eds-header component.
|
|
1653
|
-
*/
|
|
1654
|
-
handleToggleMenu(n) {
|
|
1655
|
-
this.isMenuOpen = n.detail;
|
|
1656
|
-
}
|
|
1657
|
-
/** Opens the menu */
|
|
1658
|
-
openMenu() {
|
|
1659
|
-
this.isMenuOpen = !0;
|
|
1660
|
-
}
|
|
1661
|
-
/** Closes the menu */
|
|
1662
|
-
closeMenu() {
|
|
1663
|
-
this.isMenuOpen = !1, this.menuClose.emit();
|
|
1664
|
-
}
|
|
1665
|
-
// Lifecycle method to add the resize event listener when component loads
|
|
1666
|
-
componentDidLoad() {
|
|
1667
|
-
window.addEventListener("resize", this.handleResize.bind(this));
|
|
1668
|
-
}
|
|
1669
|
-
// Lifecycle method to remove the resize event listener when component unloads
|
|
1670
|
-
disconnectedCallback() {
|
|
1671
|
-
window.removeEventListener("resize", this.handleResize.bind(this));
|
|
1672
|
-
}
|
|
1673
|
-
// Function to close the menu if screen width is larger than a defined breakpoint (1024px)
|
|
1674
|
-
handleResize() {
|
|
1675
|
-
window.innerWidth >= 1024 && (this.isMenuOpen = !1);
|
|
1676
|
-
}
|
|
1677
|
-
/**
|
|
1678
|
-
* Parses the `links` prop into an array of link objects.
|
|
1679
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
1680
|
-
*
|
|
1681
|
-
* @returns {any[]} Array of parsed link objects
|
|
1682
|
-
*/
|
|
1683
|
-
get parsedLinks() {
|
|
1684
|
-
return b(this.links);
|
|
1685
|
-
}
|
|
1686
|
-
/**
|
|
1687
|
-
* Parses the `menuLinks` prop into an array of link objects.
|
|
1688
|
-
* Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
|
|
1689
|
-
*
|
|
1690
|
-
* @returns {any[]} Array of parsed menu link objects
|
|
1691
|
-
*/
|
|
1692
|
-
get parsedMenuLinks() {
|
|
1693
|
-
return b(this.menuLinks);
|
|
1694
|
-
}
|
|
1695
|
-
render() {
|
|
1696
|
-
return this.isMenuOpen ? i("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, i("div", { class: "flex min-h-full flex-col" }, i("div", { class: `w-full sticky top-0 ${this.inverseHeader ? "bg-strongest" : "bg-default"}` }, i("div", { class: "mx-auto flex items-center justify-between" }, i("div", { class: "mr-auto w-[200px] h-[85px]" }, i("eds-logo", { type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), i("div", { class: "px-16" }, i("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), i("div", { class: "py-16 px-16" }, i("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((n, e) => i("eds-link", { label: n.label, key: e, url: n.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" }))), i("eds-block-break", null), i("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((n, e) => i("eds-link", { label: n.label, key: e, url: n.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))), i("nav", { class: "mt-28 flex flex-col gap-y-8" }, i("slot", null))), i("div", { class: "mt-auto" }, i("eds-footer", { social: !0, "extra-class": "bg-darker" })))) : null;
|
|
1697
|
-
}
|
|
1698
|
-
};
|
|
1699
|
-
nn.style = Z;
|
|
1700
|
-
const en = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}", rn = en, tn = class {
|
|
1701
|
-
constructor(n) {
|
|
1702
|
-
s(this, n), this.toggleheadermenu = h(this, "toggleheadermenu", 7), this.homeUrl = "/", this.links = void 0, this.headerVariant = "default", this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
|
|
1684
|
+
d(this, n), this.toggleheadermenu = h(this, "toggleheadermenu", 7), this.homeUrl = "/", this.links = void 0, this.headerVariant = "default", this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
|
|
1703
1685
|
}
|
|
1704
1686
|
onAuthStatusChanged(n) {
|
|
1705
1687
|
var e;
|
|
@@ -1721,7 +1703,7 @@ const en = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
1721
1703
|
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
1722
1704
|
}
|
|
1723
1705
|
get parsedLinks() {
|
|
1724
|
-
return
|
|
1706
|
+
return x(this.links);
|
|
1725
1707
|
}
|
|
1726
1708
|
render() {
|
|
1727
1709
|
const n = {
|
|
@@ -1729,16 +1711,16 @@ const en = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
1729
1711
|
inverse: "text-default bg-inverse",
|
|
1730
1712
|
strong: "text-inverse bg-strongest"
|
|
1731
1713
|
}, e = n[this.headerVariant] || n.default, r = this.headerVariant === "strong" ? "color-white" : "color";
|
|
1732
|
-
return i("header", { key: "
|
|
1714
|
+
return i("header", { key: "aac532eed29a3d4b310ea2550521c95d562d0ece", class: `flex items-center justify-between relative z-10 ${e}` }, i("div", { key: "8794699aa3401c267aacb95959acd57f9ceea3f5", class: "mr-auto w-[200px] h-[85px]" }, i("eds-logo", { key: "490fae1495ecd2b801b24d068c7a2b446ed8741a", type: r, href: this.homeUrl })), this.parsedLinks && i("nav", { key: "3e109d13e8ae8b911511f7cd067ffc193735121a", class: "absolute left-1/2 top-1/2 grow -translate-x-1/2 -translate-y-1/2 justify-center hidden md:flex" }, i("ul", { key: "87d2e7e9e1d8cafeac2a38b709f77c6bfe83a96d", class: "flex gap-x-2" }, this.parsedLinks.map((t) => i("eds-link", { label: t.label, "aria-label": t.label, url: t.url, intent: "ghost", size: "large", icon: t.icon, external: t.external, "extra-class": "after:effect-opacity aria-current-page:bg-darker whitespace-nowrap !text-current after:!border-transparent after:opacity-0 hover:after:!border-transparent hover:after:opacity-100" })))), i("slot", { key: "c61e952aeb210ec0f1df85dcd165a4af9bee2d35" }), this.menuEnabled && i("div", { key: "6838e9ee79eca023c58236d817524f1f0a0b60a5", class: "md:hidden flex overflow-hidden px-16" }, i("eds-button", { key: "1b5e7090df7021a145914a77c8bc7388a3218465", "aria-label": "Menu", intent: this.headerVariant === "default" ? "ghost" : "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })));
|
|
1733
1715
|
}
|
|
1734
1716
|
get hostEl() {
|
|
1735
|
-
return
|
|
1717
|
+
return g(this);
|
|
1736
1718
|
}
|
|
1737
1719
|
};
|
|
1738
|
-
|
|
1739
|
-
const
|
|
1720
|
+
Z.style = K;
|
|
1721
|
+
const ee = class {
|
|
1740
1722
|
constructor(n) {
|
|
1741
|
-
|
|
1723
|
+
d(this, n), this.TagName = null, this.icon = "arrow-right", this.class = "", this.IconComponent = null;
|
|
1742
1724
|
}
|
|
1743
1725
|
componentWillLoad() {
|
|
1744
1726
|
this.loadIconComponent(this.icon);
|
|
@@ -1762,7 +1744,7 @@ const te = class {
|
|
|
1762
1744
|
icon: ["iconChanged"]
|
|
1763
1745
|
};
|
|
1764
1746
|
}
|
|
1765
|
-
},
|
|
1747
|
+
}, nn = `/*
|
|
1766
1748
|
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
1767
1749
|
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
1768
1750
|
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
@@ -1844,9 +1826,9 @@ video {
|
|
|
1844
1826
|
|
|
1845
1827
|
.opacity-100 {
|
|
1846
1828
|
opacity: 1;
|
|
1847
|
-
}`,
|
|
1829
|
+
}`, en = nn, rn = class {
|
|
1848
1830
|
constructor(n) {
|
|
1849
|
-
|
|
1831
|
+
d(this, n), this.img = null, this.handleLoad = () => {
|
|
1850
1832
|
this.loaded = !0, this.showBg = !1;
|
|
1851
1833
|
}, this.handleError = () => {
|
|
1852
1834
|
this.loaded = !0, this.showBg = !1;
|
|
@@ -1859,26 +1841,26 @@ video {
|
|
|
1859
1841
|
}
|
|
1860
1842
|
render() {
|
|
1861
1843
|
const n = {};
|
|
1862
|
-
return this.lazyload && (n.loading = "lazy", n.decoding = "async"), i("div", { key: "
|
|
1844
|
+
return this.lazyload && (n.loading = "lazy", n.decoding = "async"), i("div", { key: "d40662545cefe458d307c9877c4a8804c4fb7406", class: {
|
|
1863
1845
|
"items-center justify-center": !0,
|
|
1864
1846
|
"effect-bg-pattern": this.lazyload && this.showBg
|
|
1865
|
-
} }, i("picture", { key: "
|
|
1847
|
+
} }, i("picture", { key: "94c28d57611eec83eb7ed03620de4b2449dd665c" }, this.formats.map((e) => i("source", { type: e.type, srcSet: e.srcset, media: e.media, sizes: this.sizes })), i("img", Object.assign({ key: "d7b6e56937a19f558abb29bb1da2f04b945970c9", ref: (e) => this.img = e, class: {
|
|
1866
1848
|
"effect-opacity object-cover object-center": !0,
|
|
1867
1849
|
"opacity-100": this.loaded,
|
|
1868
1850
|
"opacity-0": !this.loaded
|
|
1869
1851
|
}, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, n, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd }))));
|
|
1870
1852
|
}
|
|
1871
1853
|
get imgElement() {
|
|
1872
|
-
return
|
|
1854
|
+
return g(this);
|
|
1873
1855
|
}
|
|
1874
1856
|
};
|
|
1875
|
-
|
|
1876
|
-
const
|
|
1857
|
+
rn.style = en;
|
|
1858
|
+
const ie = class {
|
|
1877
1859
|
constructor(n) {
|
|
1878
|
-
|
|
1860
|
+
d(this, n), this.handleInput = (e) => {
|
|
1879
1861
|
const r = e.target;
|
|
1880
1862
|
this.innerVal = r.value, this.maxLength && this.type === "textarea" && (this.maxLengthReached = r.value.length >= this.maxLength);
|
|
1881
|
-
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.checked = void 0, this.type = "text", this.required = !1, this.value = void 0, this.icon = void 0, this.maxLength = void 0, this.options = [], this.extraClass = void 0, this.innerVal = "", this.maxLengthReached = !1;
|
|
1863
|
+
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.checked = void 0, this.type = "text", this.required = !1, this.value = void 0, this.icon = void 0, this.maxLength = void 0, this.options = [], this.extraClass = void 0, this.min = void 0, this.max = void 0, this.step = void 0, this.innerVal = "", this.maxLengthReached = !1;
|
|
1882
1864
|
}
|
|
1883
1865
|
onValueChanged(n) {
|
|
1884
1866
|
this.innerVal = n;
|
|
@@ -1891,22 +1873,26 @@ const le = class {
|
|
|
1891
1873
|
}
|
|
1892
1874
|
render() {
|
|
1893
1875
|
const n = !!this.icon, e = this.hasMessage || this.error ? `${this.name}-error` : "";
|
|
1894
|
-
return i("div", { key: "
|
|
1876
|
+
return i("div", { key: "f48593b92f28da7f3ea3282ebd0db0f6767ee7b6", class: "relative flex items-center" }, this.type === "textarea" ? i("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${n ? "input-with-icon" : ""} ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }) : this.type === "select" ? i("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((r) => i("option", { value: r.value, selected: r.value === this.innerVal, key: r.value }, r.label))) : i("input", Object.assign({ id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ["radio", "checkbox"].includes(this.type) ? this.checked : void 0 }, this.type === "number" ? {
|
|
1877
|
+
min: this.min,
|
|
1878
|
+
max: this.max,
|
|
1879
|
+
step: this.step
|
|
1880
|
+
} : {}, { class: `
|
|
1895
1881
|
${this.extraClass || ""}
|
|
1896
1882
|
input ${this.type === "radio" ? "input-radio" : this.type === "checkbox" ? "input-checkbox" : ""}
|
|
1897
1883
|
${n && this.type !== "radio" && this.type !== "checkbox" ? "input-icon pl-36" : ""}
|
|
1898
1884
|
${this.error ? "input-error" : ""}
|
|
1899
|
-
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }), this.maxLength && this.type === "textarea" && i("span", { key: "
|
|
1885
|
+
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput })), this.maxLength && this.type === "textarea" && i("span", { key: "0391698008d36d0726ca52f9f5e3ad21136a9edb", class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? "input-counter-error" : ""}` }, this.maxLength), this.icon && i("eds-icon-wrapper", { key: "dd4d8a5e02dd2557deef5441cbe29afdbea8a959", class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled, "text-lightest"}`, icon: this.icon }));
|
|
1900
1886
|
}
|
|
1901
1887
|
get el() {
|
|
1902
|
-
return
|
|
1888
|
+
return g(this);
|
|
1903
1889
|
}
|
|
1904
1890
|
static get watchers() {
|
|
1905
1891
|
return {
|
|
1906
1892
|
value: ["onValueChanged"]
|
|
1907
1893
|
};
|
|
1908
1894
|
}
|
|
1909
|
-
},
|
|
1895
|
+
}, tn = `:root {
|
|
1910
1896
|
font-optical-sizing: auto;
|
|
1911
1897
|
}
|
|
1912
1898
|
html,
|
|
@@ -7735,6 +7721,12 @@ video {
|
|
|
7735
7721
|
content: '';
|
|
7736
7722
|
}
|
|
7737
7723
|
}
|
|
7724
|
+
.input-label-options {
|
|
7725
|
+
font-family: var(--f-ui-03-fontFamily);
|
|
7726
|
+
font-size: var(--f-ui-03-fontSize);
|
|
7727
|
+
line-height: var(--f-ui-03-lineHeight);
|
|
7728
|
+
letter-spacing: var(--f-ui-03-letterSpacing);
|
|
7729
|
+
}
|
|
7738
7730
|
.input-label {
|
|
7739
7731
|
font-family: var(--f-ui-04-fontFamily);
|
|
7740
7732
|
font-weight: var(--f-ui-04-fontWeight);
|
|
@@ -8606,6 +8598,10 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
8606
8598
|
-moz-column-gap: 0.125rem;
|
|
8607
8599
|
column-gap: 0.125rem;
|
|
8608
8600
|
}
|
|
8601
|
+
.gap-x-4 {
|
|
8602
|
+
-moz-column-gap: 0.25rem;
|
|
8603
|
+
column-gap: 0.25rem;
|
|
8604
|
+
}
|
|
8609
8605
|
.gap-x-8 {
|
|
8610
8606
|
-moz-column-gap: 0.5rem;
|
|
8611
8607
|
column-gap: 0.5rem;
|
|
@@ -9666,21 +9662,31 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9666
9662
|
}
|
|
9667
9663
|
}
|
|
9668
9664
|
|
|
9669
|
-
`,
|
|
9665
|
+
`, ln = tn, on = class {
|
|
9670
9666
|
constructor(n) {
|
|
9671
|
-
|
|
9672
|
-
var r;
|
|
9667
|
+
d(this, n), this.edsinput = h(this, "edsinput", 7), this.edschange = h(this, "edschange", 7), this.handleNativeInput = (e) => {
|
|
9668
|
+
var r, t;
|
|
9673
9669
|
if ((r = this.onInput) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9674
|
-
const
|
|
9675
|
-
|
|
9670
|
+
const l = e.target;
|
|
9671
|
+
let o = l.value;
|
|
9672
|
+
if (this.type === "checkbox" && ((t = this.parsedOptions) === null || t === void 0 ? void 0 : t.length) > 0) {
|
|
9673
|
+
const a = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
|
|
9674
|
+
o = Array.from(a).filter((s) => s.checked).map((s) => s.value);
|
|
9675
|
+
} else this.type === "checkbox" ? o = l.checked : (this.type, o = l.value);
|
|
9676
|
+
this.edsinput.emit({ value: o });
|
|
9676
9677
|
}
|
|
9677
9678
|
}, this.handleNativeChange = (e) => {
|
|
9678
|
-
var r;
|
|
9679
|
+
var r, t;
|
|
9679
9680
|
if ((r = this.onChangeNative) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9680
|
-
const l = e.target
|
|
9681
|
-
|
|
9681
|
+
const l = e.target;
|
|
9682
|
+
let o = l.value;
|
|
9683
|
+
if (this.type === "checkbox" && ((t = this.parsedOptions) === null || t === void 0 ? void 0 : t.length) > 0) {
|
|
9684
|
+
const a = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
|
|
9685
|
+
o = Array.from(a).filter((s) => s.checked).map((s) => s.value);
|
|
9686
|
+
} else this.type === "checkbox" ? o = l.checked : (this.type, o = l.value);
|
|
9687
|
+
this.edschange.emit({ value: o });
|
|
9682
9688
|
}
|
|
9683
|
-
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.required = !1, this.label = void 0, this.hint = void 0, this.icon = void 0, this.link = void 0, this.message = void 0, this.error = !1, this.checked = void 0, this.errorMessage = void 0, this.value = void 0, this.maxLength = void 0, this.options = void 0, this.type = "text", this.onChangeNative = void 0, this.onInput = void 0, this.exposeValueEvents = !0;
|
|
9689
|
+
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.required = !1, this.label = void 0, this.hint = void 0, this.icon = void 0, this.link = void 0, this.message = void 0, this.error = !1, this.checked = void 0, this.errorMessage = void 0, this.value = void 0, this.maxLength = void 0, this.min = void 0, this.max = void 0, this.step = void 0, this.options = void 0, this.type = "text", this.onChangeNative = void 0, this.onInput = void 0, this.exposeValueEvents = !0;
|
|
9684
9690
|
}
|
|
9685
9691
|
shouldEmitValue() {
|
|
9686
9692
|
return this.exposeValueEvents && this.type !== "password";
|
|
@@ -9697,21 +9703,8 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9697
9703
|
return [];
|
|
9698
9704
|
}
|
|
9699
9705
|
render() {
|
|
9700
|
-
const n = {
|
|
9701
|
-
|
|
9702
|
-
id: this.inputId,
|
|
9703
|
-
placeholder: this.placeholder,
|
|
9704
|
-
disabled: this.disabled,
|
|
9705
|
-
onInput: this.handleNativeInput,
|
|
9706
|
-
onChange: this.handleNativeChange,
|
|
9707
|
-
type: this.type,
|
|
9708
|
-
required: this.required,
|
|
9709
|
-
value: this.value,
|
|
9710
|
-
error: this.error,
|
|
9711
|
-
icon: this.icon,
|
|
9712
|
-
checked: this.checked
|
|
9713
|
-
};
|
|
9714
|
-
return i("div", { key: "6f048dc1418d0738fc097d3c48148ccfdf70fbdc" }, this.type === "checkbox" || this.type === "radio" ? this.parsedOptions.length > 0 ? i("fieldset", { class: "space-y-4 mt-8" }, i("div", { class: "flex justify-between" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((e) => i("div", { class: "flex items-center gap-x-2", key: e.value }, i("eds-input", Object.assign({}, n, { value: e.value, checked: typeof this.value == "string" && this.value.split(",").includes(String(e.value)) })), i("eds-input-label", { name: `${this.name}-${e.value}`, label: e.label })))) : i("div", { class: "flex items-center gap-x-8" }, i("eds-input", Object.assign({}, n, { value: this.value, checked: this.value === "on" })), this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })) : i("div", null, i("div", { class: "flex justify-between" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === "select" ? i("eds-input-select", Object.assign({}, n, { options: this.parsedOptions })) : this.type === "file" ? i("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required }) : this.type === "search" ? i("eds-input-search", { name: "search-box" }) : this.type === "range" ? (() => {
|
|
9706
|
+
const n = Object.assign({ name: this.name, id: this.inputId, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleNativeInput, onChange: this.handleNativeChange, type: this.type, required: this.required, value: this.value, error: this.error, icon: this.icon, checked: this.checked }, this.type === "number" ? { min: this.min, max: this.max, step: this.step } : {});
|
|
9707
|
+
return i("div", { key: "bf31e95b0fad54062686ae178af0d6b552d04654" }, this.type === "checkbox" || this.type === "radio" ? this.parsedOptions.length > 0 ? i("fieldset", { class: "space-y-4 mt-8" }, i("div", { class: "flex justify-between" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((e) => i("div", { class: "flex items-center gap-x-4 gap-y-4", key: e.value }, i("eds-input", Object.assign({}, n, { value: e.value, checked: typeof this.value == "string" && this.value.split(",").includes(String(e.value)) })), i("label", { htmlFor: this.name, class: `input-label-options ${this.disabled ? "text-lighter" : ""}` }, e.label)))) : i("div", { class: "flex items-center gap-x-8" }, i("eds-input", Object.assign({}, n, { value: this.value, checked: this.value === "on" || this.checked })), this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })) : i("div", null, i("div", { class: "flex justify-between" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === "select" ? i("eds-input-select", Object.assign({}, n, { options: this.parsedOptions })) : this.type === "file" ? i("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChangeNative, disabled: this.disabled, required: this.required }) : this.type === "search" ? i("eds-input-search", { name: "search-box" }) : this.type === "range" ? (() => {
|
|
9715
9708
|
var e, r, t;
|
|
9716
9709
|
const l = {
|
|
9717
9710
|
name: n.name,
|
|
@@ -9720,36 +9713,36 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9720
9713
|
required: n.required,
|
|
9721
9714
|
onInput: n.onInput,
|
|
9722
9715
|
onChange: n.onChange
|
|
9723
|
-
},
|
|
9724
|
-
return i("eds-input-range", Object.assign({}, l, { min: (e =
|
|
9725
|
-
})() : i("eds-input", Object.assign({}, n))), i("div", { key: "
|
|
9716
|
+
}, o = this.parsedOptions, a = typeof this.value == "string" ? parseFloat(this.value) : this.value || 0;
|
|
9717
|
+
return i("eds-input-range", Object.assign({}, l, { min: (e = o[0]) === null || e === void 0 ? void 0 : e.value, max: (r = o[1]) === null || r === void 0 ? void 0 : r.value, step: (t = o[2]) === null || t === void 0 ? void 0 : t.value, value: a }));
|
|
9718
|
+
})() : i("eds-input", Object.assign({}, n))), i("div", { key: "b47668a883a11da148a38a063ecf573e79a6d714", class: "mt-6" }, i("eds-input-footer", { key: "2c25baf0474a573f143b17bcaa19826fdc94dd7f", id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link })));
|
|
9726
9719
|
}
|
|
9727
9720
|
get hostEl() {
|
|
9728
|
-
return
|
|
9721
|
+
return g(this);
|
|
9729
9722
|
}
|
|
9730
9723
|
};
|
|
9731
|
-
|
|
9732
|
-
const
|
|
9724
|
+
on.style = ln;
|
|
9725
|
+
const an = "p{margin:0}.text-error{color:var(--red-700)}.flex{display:flex}.items-center{align-items:center}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.ml-4{margin-left:0.25rem}.mb-4{margin-bottom:0.25rem}.f-ui-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.text-lighter{color:var(--grey-600)}.effect-color{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:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:text-lighter:hover{color:var(--grey-600)}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}", sn = an, dn = class {
|
|
9733
9726
|
constructor(n) {
|
|
9734
|
-
|
|
9727
|
+
d(this, n), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
9735
9728
|
}
|
|
9736
9729
|
render() {
|
|
9737
|
-
return i("div", { key: "
|
|
9730
|
+
return i("div", { key: "08cb0dc972b0aee37260b5e606a4b162afa9100b" }, this.error && this.errorMessage && i("div", { key: "5346af03e591f3ca2338979dc74a0b65fe2f93ba", id: `error_${this.name}`, class: "text-error flex items-center" }, i("eds-icon-wrapper", { key: "072103ec3061a16992672ee92d20249dc1704e0e", icon: "warning" }), i("p", { key: "19f62274acb91ca32e5f9ee7247b27d5a63a95b7", class: "f-ui-04 ml-4 mb-4", innerHTML: this.errorMessage })), this.message && i("p", { key: "e6c97c6dca2c5a7a1e62f56f2d74560861399553", id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && i("a", { key: "528475a848b5fada0acc47dc4aa2e03b0b6e1872", href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label));
|
|
9738
9731
|
}
|
|
9739
9732
|
};
|
|
9740
|
-
|
|
9741
|
-
const
|
|
9733
|
+
dn.style = sn;
|
|
9734
|
+
const cn = ".input-label{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)}.input-label b,.input-label strong{font-weight:var(--f-ui-02---bold-weight, bold)}.text-lighter{color:var(--grey-600)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}", gn = cn, hn = class {
|
|
9742
9735
|
constructor(n) {
|
|
9743
|
-
|
|
9736
|
+
d(this, n), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
9744
9737
|
}
|
|
9745
9738
|
render() {
|
|
9746
|
-
return i("label", { key: "
|
|
9739
|
+
return i("label", { key: "a5ecc454f7d0398d8bf265fb36ac903af4b15c4a", htmlFor: this.name, class: `input-label ${this.disabled ? "text-lighter" : ""}` }, this.label, this.required && i("span", { key: "f6b710dcfe91623d048a95853097f963510ebb13" }, i("span", { key: "e903f319f01b3592ca2ea8bbd5dbf83765942603", "aria-hidden": "true" }, "*"), i("span", { key: "4548229f02d0753855a0b58944e89ff4fe40665a", class: "sr-only" }, "required")));
|
|
9747
9740
|
}
|
|
9748
9741
|
};
|
|
9749
|
-
|
|
9750
|
-
const
|
|
9742
|
+
hn.style = gn;
|
|
9743
|
+
const re = class {
|
|
9751
9744
|
constructor(n) {
|
|
9752
|
-
|
|
9745
|
+
d(this, n), this.edsrange = h(this, "edsrange", 7), this.onInput = (e) => {
|
|
9753
9746
|
const r = e.target;
|
|
9754
9747
|
this.sliderVal = parseInt(r.value, 10);
|
|
9755
9748
|
}, this.onChange = (e) => {
|
|
@@ -9771,19 +9764,19 @@ const oe = class {
|
|
|
9771
9764
|
return this.inputElement;
|
|
9772
9765
|
}
|
|
9773
9766
|
render() {
|
|
9774
|
-
return i("div", { key: "
|
|
9767
|
+
return i("div", { key: "d17d2e14f9c851c2c4b003ac36bae62240bc16d0", class: "relative flex flex-col items-start space-y-2" }, i("input", { key: "dccfa98f53c6283a09de624f32cc34aea2fafbfa", id: this.inputId || this.name, name: this.name, min: this.min, max: this.max, step: this.step, value: this.sliderVal, required: this.required, disabled: this.disabled, type: "range", class: "w-full py-6 input", "aria-describedby": `desc_${this.name}`, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.sliderVal, onInput: this.onInput, onChange: this.onChange }), i("p", { key: "6064aa1f5bfbfc0e925dfec32ee727c5e530226a", id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal));
|
|
9775
9768
|
}
|
|
9776
9769
|
get el() {
|
|
9777
|
-
return
|
|
9770
|
+
return g(this);
|
|
9778
9771
|
}
|
|
9779
9772
|
static get watchers() {
|
|
9780
9773
|
return {
|
|
9781
9774
|
value: ["onValueChange"]
|
|
9782
9775
|
};
|
|
9783
9776
|
}
|
|
9784
|
-
},
|
|
9777
|
+
}, te = class {
|
|
9785
9778
|
constructor(n) {
|
|
9786
|
-
|
|
9779
|
+
d(this, n), this.search = h(this, "search", 7), this.keydownListener = (e) => {
|
|
9787
9780
|
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), this.inputElement && !this.disabled && this.inputElement.focus());
|
|
9788
9781
|
}, this.onChange = (e) => {
|
|
9789
9782
|
this.search.emit({
|
|
@@ -9808,8 +9801,8 @@ const oe = class {
|
|
|
9808
9801
|
return this.inputElement;
|
|
9809
9802
|
}
|
|
9810
9803
|
render() {
|
|
9811
|
-
return i("div", { key: "
|
|
9812
|
-
key: "
|
|
9804
|
+
return i("div", { key: "1084e1dad411bccc4b89fb61be91fbdaefedbe16", class: "relative flex items-center" }, i("eds-icon-wrapper", { key: "eaca5c71cf018cd95ba6debddcbbfa1457a32584", icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), i("input", {
|
|
9805
|
+
key: "e0e888a6518abfb5f5b2a50fb89e2cec4c7ca78c",
|
|
9813
9806
|
id: this.inputId || this.name,
|
|
9814
9807
|
name: this.name,
|
|
9815
9808
|
placeholder: this.placeholder,
|
|
@@ -9824,25 +9817,25 @@ const oe = class {
|
|
|
9824
9817
|
}));
|
|
9825
9818
|
}
|
|
9826
9819
|
get el() {
|
|
9827
|
-
return
|
|
9820
|
+
return g(this);
|
|
9828
9821
|
}
|
|
9829
|
-
},
|
|
9822
|
+
}, le = class {
|
|
9830
9823
|
constructor(n) {
|
|
9831
|
-
|
|
9824
|
+
d(this, n), this.edsselect = h(this, "edsselect", 7), this.handleChange = (e) => {
|
|
9832
9825
|
const r = e.target;
|
|
9833
9826
|
this.edsselect.emit(r.value);
|
|
9834
9827
|
}, this.inputId = void 0, this.name = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.required = !1, this.options = [], this.value = void 0;
|
|
9835
9828
|
}
|
|
9836
9829
|
render() {
|
|
9837
|
-
const n = this.inputId || this.name, e = this.placeholder ||
|
|
9838
|
-
return i("div", { key: "
|
|
9830
|
+
const n = this.inputId || this.name, e = this.placeholder || "Pick from the list", r = this.hasMessage || this.error ? `${this.name}-error` : void 0;
|
|
9831
|
+
return i("div", { key: "8b02195c9cb94edae54d0eaeffc1d5985638e705", class: "relative" }, i("select", { key: "ab86f95d44a22492309e39ea4ed299c7da5460f7", id: n, name: this.name, class: {
|
|
9839
9832
|
input: !0,
|
|
9840
9833
|
"input-error": this.error,
|
|
9841
9834
|
"px-4": !0,
|
|
9842
9835
|
"py-2": !0
|
|
9843
|
-
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": r, disabled: this.disabled, required: this.required, onChange: this.handleChange }, i("option", { key: "
|
|
9836
|
+
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": r, disabled: this.disabled, required: this.required, onChange: this.handleChange }, i("option", { key: "285f9e5be9f469b21fa13c869e998fdaea4e33ad", value: "", disabled: !0, hidden: !0 }, e), this.options.map((t, l) => i("option", { key: l, value: t.value, selected: t.value === this.value }, t.label))), i("span", { key: "0fced74f55c6da75e7f1aa3251fa59e8147e666f", class: "bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center" }, i("eds-icon-wrapper", { key: "70e964580e89d001eb3537038f4e6a28ecba5840", class: "w-20 h-20", icon: "chevron-right" })));
|
|
9844
9837
|
}
|
|
9845
|
-
},
|
|
9838
|
+
}, fn = `*,
|
|
9846
9839
|
::before,
|
|
9847
9840
|
::after {
|
|
9848
9841
|
box-sizing: border-box;
|
|
@@ -11079,7 +11072,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11079
11072
|
.lg\\:flex {
|
|
11080
11073
|
display: flex;
|
|
11081
11074
|
}
|
|
11082
|
-
}`,
|
|
11075
|
+
}`, bn = fn, xn = m([
|
|
11083
11076
|
"relative inline-flex justify-center items-center py-8 rounded-sm",
|
|
11084
11077
|
"effect-color effect-focus aria-disabled:text-lightest",
|
|
11085
11078
|
"cursor-pointer",
|
|
@@ -11204,9 +11197,9 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11204
11197
|
size: "small",
|
|
11205
11198
|
hasIcon: !1
|
|
11206
11199
|
}
|
|
11207
|
-
}),
|
|
11200
|
+
}), mn = class {
|
|
11208
11201
|
constructor(n) {
|
|
11209
|
-
|
|
11202
|
+
d(this, n), this.parentContext = null, this.label = void 0, this.intent = void 0, this.icon = void 0, this.iconPos = "right", this.iconSmall = !1, this.size = "small", this.external = !1, this.current = !1, this.download = !1, this.url = void 0, this.ariaLabel = void 0, this.disabled = !1, this.hideLabelOnSmallScreen = !1, this.extraClass = void 0;
|
|
11210
11203
|
}
|
|
11211
11204
|
handleParentContext(n) {
|
|
11212
11205
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
@@ -11241,23 +11234,23 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11241
11234
|
`, icon: this.icon })) : null;
|
|
11242
11235
|
}
|
|
11243
11236
|
render() {
|
|
11244
|
-
const n = this.disabled ? "span" : "a", e =
|
|
11237
|
+
const n = this.disabled ? "span" : "a", e = xn({
|
|
11245
11238
|
intent: this.intent,
|
|
11246
11239
|
size: this.getLinkSize(),
|
|
11247
11240
|
iconSmall: this.iconSmall,
|
|
11248
11241
|
isActive: this.current,
|
|
11249
11242
|
hasIcon: !!this.icon
|
|
11250
11243
|
}), r = this.ariaLabel || this.label || "link", t = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
|
|
11251
|
-
return i(n, { key: "
|
|
11244
|
+
return i(n, { key: "19e7d05290f3dda2cc4e821c5625f7dd82198dcd", class: `${e || ""} ${this.extraClass || ""}`, href: this.disabled ? void 0 : this.url, target: this.external && !this.disabled ? "_blank" : void 0, rel: this.external && !this.disabled ? "noopener noreferrer" : void 0, "aria-label": r, "aria-disabled": this.disabled ? "true" : null, "aria-current": this.current ? "page" : void 0, download: this.download ? "" : void 0, onClick: (l) => this.handleClick(l) }, i("span", { key: "36ce6891c07cf6e37acef3e6fecd3e96bcaa0312", class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), i("span", { key: "2455011e19a98939aec59768f09ae310ad03692b", class: t }, this.label), this.renderRightIcon()));
|
|
11252
11245
|
}
|
|
11253
11246
|
get el() {
|
|
11254
|
-
return
|
|
11247
|
+
return g(this);
|
|
11255
11248
|
}
|
|
11256
11249
|
};
|
|
11257
|
-
|
|
11258
|
-
const
|
|
11250
|
+
mn.style = bn;
|
|
11251
|
+
const pn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}", un = pn, yn = class {
|
|
11259
11252
|
constructor(n) {
|
|
11260
|
-
|
|
11253
|
+
d(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
|
|
11261
11254
|
}
|
|
11262
11255
|
/**
|
|
11263
11256
|
* Handles the click event on the logo link.
|
|
@@ -11281,146 +11274,37 @@ const wn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11281
11274
|
getLogo() {
|
|
11282
11275
|
const e = {
|
|
11283
11276
|
horizontal: {
|
|
11284
|
-
color:
|
|
11285
|
-
black:
|
|
11286
|
-
"color-white":
|
|
11287
|
-
white:
|
|
11288
|
-
"no-bg":
|
|
11277
|
+
color: y,
|
|
11278
|
+
black: k,
|
|
11279
|
+
"color-white": z,
|
|
11280
|
+
white: C,
|
|
11281
|
+
"no-bg": S
|
|
11289
11282
|
},
|
|
11290
11283
|
vertical: {
|
|
11291
|
-
color:
|
|
11292
|
-
black:
|
|
11293
|
-
"color-white":
|
|
11294
|
-
white:
|
|
11295
|
-
"no-bg":
|
|
11284
|
+
color: E,
|
|
11285
|
+
black: F,
|
|
11286
|
+
"color-white": L,
|
|
11287
|
+
white: I,
|
|
11288
|
+
"no-bg": A
|
|
11296
11289
|
}
|
|
11297
11290
|
}[this.orientation];
|
|
11298
11291
|
if (!e)
|
|
11299
|
-
return
|
|
11292
|
+
return y;
|
|
11300
11293
|
const r = e[this.type];
|
|
11301
11294
|
return r || e.color;
|
|
11302
11295
|
}
|
|
11303
11296
|
render() {
|
|
11304
11297
|
const n = this.getLogo();
|
|
11305
|
-
return i("a", { key: "
|
|
11298
|
+
return i("a", { key: "717ea23a3d9156fd59abb808c3175194b6973d6b", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, i("div", { key: "794768d57ee14767a0475d949c24fafaa28bc924", innerHTML: n }));
|
|
11306
11299
|
}
|
|
11307
11300
|
get el() {
|
|
11308
|
-
return
|
|
11301
|
+
return g(this);
|
|
11309
11302
|
}
|
|
11310
11303
|
};
|
|
11311
|
-
|
|
11312
|
-
const
|
|
11304
|
+
yn.style = un;
|
|
11305
|
+
const vn = "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}}", wn = vn, kn = class {
|
|
11313
11306
|
constructor(n) {
|
|
11314
|
-
|
|
11315
|
-
}
|
|
11316
|
-
getTruncateClass() {
|
|
11317
|
-
return this.truncate ? `line-clamp-${this.truncate}` : "";
|
|
11318
|
-
}
|
|
11319
|
-
/**
|
|
11320
|
-
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
11321
|
-
*
|
|
11322
|
-
* @private
|
|
11323
|
-
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
11324
|
-
*/
|
|
11325
|
-
getModalPositionClasses() {
|
|
11326
|
-
switch (this.position) {
|
|
11327
|
-
case "top":
|
|
11328
|
-
return [
|
|
11329
|
-
// mobile: pinned to top, full-width
|
|
11330
|
-
"top-0",
|
|
11331
|
-
"left-0",
|
|
11332
|
-
"w-full",
|
|
11333
|
-
// desktop: half-width centred and offset down
|
|
11334
|
-
"md:left-1/2",
|
|
11335
|
-
"md:w-auto",
|
|
11336
|
-
"md:-translate-x-1/2",
|
|
11337
|
-
"md:top-20"
|
|
11338
|
-
].join(" ");
|
|
11339
|
-
case "bottom":
|
|
11340
|
-
return ["bottom-0", "left-0", "w-full", "md:left-1/2", "md:w-auto", "md:-translate-x-1/2", "md:bottom-20"].join(" ");
|
|
11341
|
-
case "middle":
|
|
11342
|
-
default:
|
|
11343
|
-
return [
|
|
11344
|
-
// mobile: full-width, start from top with a little padding
|
|
11345
|
-
"top-0",
|
|
11346
|
-
"left-0",
|
|
11347
|
-
"w-full",
|
|
11348
|
-
"pt-4",
|
|
11349
|
-
// desktop: centred both axes
|
|
11350
|
-
"md:left-1/2",
|
|
11351
|
-
"md:top-1/2",
|
|
11352
|
-
"md:w-auto",
|
|
11353
|
-
"md:-translate-x-1/2",
|
|
11354
|
-
"md:-translate-y-1/2"
|
|
11355
|
-
].join(" ");
|
|
11356
|
-
}
|
|
11357
|
-
}
|
|
11358
|
-
/**
|
|
11359
|
-
* Opens the modal.
|
|
11360
|
-
*/
|
|
11361
|
-
async open() {
|
|
11362
|
-
var n;
|
|
11363
|
-
this.isOpen = !0, f({
|
|
11364
|
-
category: "ui-component",
|
|
11365
|
-
parentContext: null,
|
|
11366
|
-
tag: this.el.tagName.toLowerCase(),
|
|
11367
|
-
name: ((n = this.heading) === null || n === void 0 ? void 0 : n.toLowerCase()) || "",
|
|
11368
|
-
action: "opened"
|
|
11369
|
-
});
|
|
11370
|
-
}
|
|
11371
|
-
/**
|
|
11372
|
-
* Closes the modal.
|
|
11373
|
-
*/
|
|
11374
|
-
async close() {
|
|
11375
|
-
var n;
|
|
11376
|
-
this.isOpen = !1, f({
|
|
11377
|
-
category: "ui-component",
|
|
11378
|
-
parentContext: null,
|
|
11379
|
-
tag: this.el.tagName.toLowerCase(),
|
|
11380
|
-
name: ((n = this.heading) === null || n === void 0 ? void 0 : n.toLowerCase()) || "",
|
|
11381
|
-
action: "closed"
|
|
11382
|
-
});
|
|
11383
|
-
}
|
|
11384
|
-
/**
|
|
11385
|
-
* Toggles the modal open or closed.
|
|
11386
|
-
*/
|
|
11387
|
-
async toggle() {
|
|
11388
|
-
this.isOpen = !this.isOpen;
|
|
11389
|
-
}
|
|
11390
|
-
/**
|
|
11391
|
-
* Listens for global custom events to open the modal.
|
|
11392
|
-
*/
|
|
11393
|
-
handleGlobalOpen() {
|
|
11394
|
-
this.open();
|
|
11395
|
-
}
|
|
11396
|
-
/**
|
|
11397
|
-
* Listens for global custom events to close the modal.
|
|
11398
|
-
*/
|
|
11399
|
-
handleGlobalClose() {
|
|
11400
|
-
this.close();
|
|
11401
|
-
}
|
|
11402
|
-
/**
|
|
11403
|
-
* Closes the modal when the Escape key is pressed.
|
|
11404
|
-
*/
|
|
11405
|
-
handleKeyDown(n) {
|
|
11406
|
-
this.isOpen && n.key === "Escape" && this.close();
|
|
11407
|
-
}
|
|
11408
|
-
render() {
|
|
11409
|
-
const n = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
11410
|
-
return i("div", { key: "064613bfc4ada7e980d47b7ccb37b21e313731ca", id: "eds-modal", class: `${this.isOpen ? "block" : "hidden"} fixed inset-0 z-9999999 flex`, role: "dialog", "aria-modal": "true", "aria-labelledby": n }, this.isOpen && i("div", {
|
|
11411
|
-
key: "6430a5e2734f948e40ccdc7bfcbd6e934070ff25",
|
|
11412
|
-
class: "fixed inset-0 bg-dark bg-opacity-90",
|
|
11413
|
-
onClick: () => this.close()
|
|
11414
|
-
}), i("div", { key: "468ce4425ce69c7612d9dbca6b812d7b0c2f869a", class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, i("div", { key: "e694805e5c39df16801fd2f13eaf2f113fbe2c5e", class: `flex justify-between items-center border-b-2 border-softer px-20 py-20 ${this.inverseHeader ? "bg-strongest text-inverse" : "bg-dark text-default"}` }, i("span", { key: "f4c1204f3971618138bd8385b15face3acd1ea71", id: n, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), i("eds-button", { key: "813ba1a0c5d357187fc73964bb66230a15593ddc", intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), i("div", { key: "9ae10bc0e79c4553c2a5bdd2dbacd7a97d99f50c", class: "pt-8 px-20 py-20" }, i("slot", { key: "f460df4582e298289ab7abcd5417b7ef8d8ac827" }))));
|
|
11415
|
-
}
|
|
11416
|
-
get el() {
|
|
11417
|
-
return c(this);
|
|
11418
|
-
}
|
|
11419
|
-
};
|
|
11420
|
-
En.style = Sn;
|
|
11421
|
-
const Fn = "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}}", Ln = Fn, In = class {
|
|
11422
|
-
constructor(n) {
|
|
11423
|
-
s(this, n), 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 = [];
|
|
11307
|
+
d(this, n), 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 = [];
|
|
11424
11308
|
}
|
|
11425
11309
|
/** Lifecycle hook to generate pagination links on component load */
|
|
11426
11310
|
componentWillLoad() {
|
|
@@ -11526,14 +11410,14 @@ const Fn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11526
11410
|
}
|
|
11527
11411
|
}
|
|
11528
11412
|
render() {
|
|
11529
|
-
return i("div", { key: "
|
|
11413
|
+
return i("div", { key: "978896bd8c550afdc30281e1a8d9858022857551" }, this.total > 0 && this.mode === "default" && i("p", { key: "10781adbf2c4754580c31eecc180fc426b5e09a1", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "29765740419772ac83736495c859d2d75097904c", class: "sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination" }, i("ul", { class: "flex items-center justify-center gap-x-8" }, i("li", { class: "mr-auto" }, i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12", onClick: (n) => {
|
|
11530
11414
|
this.mode === "default" && (this.isFirstPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) - 1));
|
|
11531
11415
|
} })), this.mode === "default" && this.links.map((n, e) => i("li", { key: e, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof n == "string" ? i("span", { class: "flex items-center justify-center" }, n) : i("eds-link", { url: n.url, "aria-label": n.ariaLabel, label: n.label, current: n.current, size: "small", class: "!p-8", intent: n.current ? "secondary" : "ghost", onClick: (r) => this.handlePageClick(r, parseInt(n.label)) }))), i("li", { class: "ml-auto" }, i("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (n) => {
|
|
11532
11416
|
this.mode === "default" && (this.isLastPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) + 1));
|
|
11533
11417
|
} })))) : null);
|
|
11534
11418
|
}
|
|
11535
11419
|
get hostEl() {
|
|
11536
|
-
return
|
|
11420
|
+
return g(this);
|
|
11537
11421
|
}
|
|
11538
11422
|
static get watchers() {
|
|
11539
11423
|
return {
|
|
@@ -11542,56 +11426,67 @@ const Fn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11542
11426
|
};
|
|
11543
11427
|
}
|
|
11544
11428
|
};
|
|
11545
|
-
|
|
11546
|
-
const
|
|
11429
|
+
kn.style = wn;
|
|
11430
|
+
const zn = ":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)))}", Cn = zn, Sn = class {
|
|
11547
11431
|
constructor(n) {
|
|
11548
|
-
|
|
11549
|
-
{
|
|
11550
|
-
label: "Twitter",
|
|
11551
|
-
url: "https://twitter.com/ebrains_eu",
|
|
11552
|
-
icon: "twitter"
|
|
11553
|
-
},
|
|
11554
|
-
{
|
|
11555
|
-
label: "Linkedin",
|
|
11556
|
-
url: "https://www.linkedin.com/company/ebrains-eu/about/",
|
|
11557
|
-
icon: "linkedin"
|
|
11558
|
-
},
|
|
11559
|
-
{
|
|
11560
|
-
label: "Facebook",
|
|
11561
|
-
url: "https://www.facebook.com/people/Ebrains_eu/100046659909324/",
|
|
11562
|
-
icon: "facebook"
|
|
11563
|
-
},
|
|
11564
|
-
{
|
|
11565
|
-
label: "Youtube",
|
|
11566
|
-
url: "https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",
|
|
11567
|
-
icon: "youtube"
|
|
11568
|
-
},
|
|
11569
|
-
{
|
|
11570
|
-
label: "Mastodon",
|
|
11571
|
-
url: "https://mastodon.social/@ebrains",
|
|
11572
|
-
icon: "mastodon"
|
|
11573
|
-
},
|
|
11574
|
-
{
|
|
11575
|
-
label: "Bluesky",
|
|
11576
|
-
url: "https://bsky.app/profile/ebrains.bsky.social",
|
|
11577
|
-
icon: "bluesky"
|
|
11578
|
-
}
|
|
11579
|
-
], this.heading = "Follow EBRAINS to keep up-to-date";
|
|
11432
|
+
d(this, n), this.rating = h(this, "rating", 7), this.ratingType = "star", this.ratingCount = 5, this.selectedRating = 0;
|
|
11580
11433
|
}
|
|
11581
11434
|
/**
|
|
11582
|
-
*
|
|
11583
|
-
*
|
|
11435
|
+
* Lifecycle method that runs when the component has fully loaded.
|
|
11436
|
+
* It emits a custom event for each `eds-button` element contained within the breadcrumb.
|
|
11437
|
+
*/
|
|
11438
|
+
componentDidLoad() {
|
|
11439
|
+
this.el.shadowRoot.querySelectorAll("eds-button").forEach((e) => {
|
|
11440
|
+
this.emitContext(e);
|
|
11441
|
+
});
|
|
11442
|
+
}
|
|
11443
|
+
/**
|
|
11444
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
11445
|
+
* This event provides context information about the breadcrumb component.
|
|
11584
11446
|
*
|
|
11585
|
-
* @
|
|
11447
|
+
* @param btnElement - The link element to which the event will be dispatched.
|
|
11448
|
+
*/
|
|
11449
|
+
emitContext(n) {
|
|
11450
|
+
const e = new CustomEvent("parentContext", {
|
|
11451
|
+
detail: {
|
|
11452
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
11453
|
+
identifier: this.selectedRating
|
|
11454
|
+
}
|
|
11455
|
+
});
|
|
11456
|
+
n.dispatchEvent(e);
|
|
11457
|
+
}
|
|
11458
|
+
/**
|
|
11459
|
+
* Handles the click event on a star.
|
|
11460
|
+
* @param rating - The selected rating value.
|
|
11586
11461
|
*/
|
|
11462
|
+
handleClick(n) {
|
|
11463
|
+
this.selectedRating = n, this.rating.emit(n);
|
|
11464
|
+
}
|
|
11587
11465
|
render() {
|
|
11588
|
-
return i("div", { key: "
|
|
11466
|
+
return i("div", { key: "7f70d2d6691257ba0658ab9500ab7200af28366a", role: "radiogroup", class: "stars flex space-x-1 my-8" }, Array.from({ length: this.ratingCount }, (n, e) => {
|
|
11467
|
+
const r = e + 1, t = r <= this.selectedRating;
|
|
11468
|
+
return i("eds-button", {
|
|
11469
|
+
icon: this.ratingType,
|
|
11470
|
+
role: "radio",
|
|
11471
|
+
"aria-checked": t ? "true" : "false",
|
|
11472
|
+
"aria-label": this.ratingType,
|
|
11473
|
+
onClick: () => this.handleClick(r),
|
|
11474
|
+
tabIndex: this.selectedRating === 0 && e === 0 || t ? 0 : -1,
|
|
11475
|
+
intent: t ? "primary" : "ghost",
|
|
11476
|
+
size: "large",
|
|
11477
|
+
"extra-class": "p-2"
|
|
11478
|
+
// Optional padding or styling for the star button
|
|
11479
|
+
});
|
|
11480
|
+
}));
|
|
11481
|
+
}
|
|
11482
|
+
get el() {
|
|
11483
|
+
return g(this);
|
|
11589
11484
|
}
|
|
11590
11485
|
};
|
|
11591
|
-
|
|
11592
|
-
const
|
|
11486
|
+
Sn.style = Cn;
|
|
11487
|
+
const En = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.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)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-28{margin-bottom:1.75rem}", Fn = En, Ln = class {
|
|
11593
11488
|
constructor(n) {
|
|
11594
|
-
|
|
11489
|
+
d(this, n), this.step = h(this, "step", 7), this.handleNext = () => {
|
|
11595
11490
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
11596
11491
|
}, this.handleBack = () => {
|
|
11597
11492
|
this.activeStep > 0 && (this.activeStep = this.activeStep - 1, this.step.emit(this.activeStep));
|
|
@@ -11641,14 +11536,14 @@ const Wn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11641
11536
|
* Parse the JSON string into an array of steps.
|
|
11642
11537
|
*/
|
|
11643
11538
|
get parsedSteps() {
|
|
11644
|
-
return
|
|
11539
|
+
return x(this.steps);
|
|
11645
11540
|
}
|
|
11646
11541
|
render() {
|
|
11647
11542
|
const n = this.parsedSteps;
|
|
11648
11543
|
return this.type === "linear" ? i("div", null, i("div", { class: "steps" }, n.map((e, r) => i("div", { class: "step mb-28", key: r }, i("h3", { onClick: () => this.handleStepClick(r) }, e.title), this.activeStep === r && i("div", { class: "content" }, i("slot", { name: `step-${r}` }, i("div", { class: r === n.length - 1 ? "f-body-02 text-lighter mt-16" : "f-body-02 text-lighter my-16", innerHTML: e.content })), i("eds-button", { label: r === n.length - 1 ? "Finish" : "Continue", intent: "primary", class: "next-btn", onClick: this.handleNext }), i("eds-button", { label: "Back", intent: "ghostInverse", onClick: this.handleBack, disabled: r === 0, "extra-class": r === 0 ? "hidden" : "ml-8 block" })))))) : i("div", { class: "steps" }, n.map((e, r) => i("div", { class: "step mb-28", key: r }, i("h3", null, e.title), i("div", { class: "content" }, i("slot", { name: `step-${r}` }, i("div", { class: r === n.length - 1 ? "f-body-02 text-lighter mt-16" : "f-body-02 text-lighter my-16", innerHTML: e.content }))))));
|
|
11649
11544
|
}
|
|
11650
11545
|
get el() {
|
|
11651
|
-
return
|
|
11546
|
+
return g(this);
|
|
11652
11547
|
}
|
|
11653
11548
|
static get watchers() {
|
|
11654
11549
|
return {
|
|
@@ -11656,10 +11551,10 @@ const Wn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11656
11551
|
};
|
|
11657
11552
|
}
|
|
11658
11553
|
};
|
|
11659
|
-
|
|
11660
|
-
const
|
|
11554
|
+
Ln.style = Fn;
|
|
11555
|
+
const In = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.steps{position:sticky;margin-left:16px;border-left:1px solid var(--soft-color, #ddd);padding-left:23px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.steps-img-placeholder{width:100%;height:200px;background:linear-gradient(to bottom, #9CE142, #00C959, #00A595);}.bg-\\[\\#00A595\\]{--tw-bg-opacity:1;background-color:rgb(0 165 149 / var(--tw-bg-opacity))}.relative{position:relative}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-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)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.w-full{width:100%}.h-52{height:3.25rem}.h-96{height:6rem}.h-\\[200px\\]{height:200px}.mt-16{margin-top:1rem}.my-16{margin-top:1rem;margin-bottom:1rem}.mb-12{margin-bottom:0.75rem}.last\\:mb-0:last-child{margin-bottom:0rem}.last\\:mt-16:last-child{margin-top:1rem}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.relative{position:relative}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.rounded{border-radius:0.25rem}.rounded-lg{border-radius:16px}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.border-2{border-width:2px}.p-8{padding:0.5rem}.p-24{padding:1.5rem}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.top-2{top:0.125rem}.bottom-2{bottom:0.125rem}.left-2{left:0.125rem}.right-2{right:0.125rem}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.overflow-hidden{overflow:hidden}.space-y-8{--tw-space-y-reverse:0;margin-top:calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem * var(--tw-space-y-reverse))}.space-y-16{--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))}", An = In, jn = class {
|
|
11661
11556
|
constructor(n) {
|
|
11662
|
-
|
|
11557
|
+
d(this, n), this.step = h(this, "step", 7), this.handleNext = () => {
|
|
11663
11558
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
11664
11559
|
}, this.handleBack = () => {
|
|
11665
11560
|
this.activeStep > 0 && (this.activeStep = this.activeStep - 1, this.step.emit(this.activeStep));
|
|
@@ -11705,7 +11600,7 @@ const Hn = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11705
11600
|
* Parses the steps property into an array of Step objects.
|
|
11706
11601
|
*/
|
|
11707
11602
|
get parsedSteps() {
|
|
11708
|
-
return
|
|
11603
|
+
return x(this.steps);
|
|
11709
11604
|
}
|
|
11710
11605
|
render() {
|
|
11711
11606
|
const n = this.parsedSteps;
|
|
@@ -11715,7 +11610,7 @@ const Hn = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11715
11610
|
)));
|
|
11716
11611
|
}
|
|
11717
11612
|
get el() {
|
|
11718
|
-
return
|
|
11613
|
+
return g(this);
|
|
11719
11614
|
}
|
|
11720
11615
|
static get watchers() {
|
|
11721
11616
|
return {
|
|
@@ -11723,10 +11618,10 @@ const Hn = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11723
11618
|
};
|
|
11724
11619
|
}
|
|
11725
11620
|
};
|
|
11726
|
-
|
|
11727
|
-
const
|
|
11621
|
+
jn.style = An;
|
|
11622
|
+
const Pn = "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-8{padding-left:0.5rem;padding-right:0.5rem}.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}", Wn = Pn, _n = class {
|
|
11728
11623
|
constructor(n) {
|
|
11729
|
-
|
|
11624
|
+
d(this, n), this.rowaction = h(this, "rowaction", 7), this.handleResize = () => {
|
|
11730
11625
|
this.updateContainerWidth();
|
|
11731
11626
|
}, 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.actions = [], this.actionTemplate = void 0, this.parsedActions = [], this.dataColumns = [], this.tbData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "", this.containerWidth = 0;
|
|
11732
11627
|
}
|
|
@@ -11760,7 +11655,7 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11760
11655
|
}
|
|
11761
11656
|
parseData() {
|
|
11762
11657
|
try {
|
|
11763
|
-
this.tbData =
|
|
11658
|
+
this.tbData = x(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
11764
11659
|
} catch (n) {
|
|
11765
11660
|
console.error("Failed to parse data:", n), this.tbData = [];
|
|
11766
11661
|
}
|
|
@@ -11818,12 +11713,12 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11818
11713
|
*/
|
|
11819
11714
|
renderSingleActionCell(n, e) {
|
|
11820
11715
|
var r;
|
|
11821
|
-
const t = this.parsedActions.find((
|
|
11716
|
+
const t = this.parsedActions.find((o) => o.name === n);
|
|
11822
11717
|
if (this.actionTemplate)
|
|
11823
11718
|
return this.actionTemplate(e);
|
|
11824
11719
|
if ((t.type || "button") === "checkbox") {
|
|
11825
|
-
const
|
|
11826
|
-
return i("eds-input-field", { name: `chc-${n}`, label: t.label, type: "checkbox", checked:
|
|
11720
|
+
const o = (r = t.field) !== null && r !== void 0 ? r : t.name, a = !!e[o];
|
|
11721
|
+
return i("eds-input-field", { name: `chc-${n}`, label: t.label, type: "checkbox", checked: a, onChange: (s) => this.emitAction(t.name, e, s.target.checked) });
|
|
11827
11722
|
}
|
|
11828
11723
|
return i("eds-link", { label: t.label, intent: "weak", onClick: () => this.emitAction(t.name, e) });
|
|
11829
11724
|
}
|
|
@@ -11858,16 +11753,16 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11858
11753
|
}
|
|
11859
11754
|
render() {
|
|
11860
11755
|
const n = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.containerWidth || 400, e = this.getVisibleColumnsCount(), r = e > 0 ? Math.floor(n / e * this.divisionFactor()) : 100, t = this.getPaginatedRows(), l = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
11861
|
-
return i("div", { key: "
|
|
11862
|
-
var
|
|
11863
|
-
return
|
|
11864
|
-
}))), i("tbody", { key: "
|
|
11865
|
-
var
|
|
11866
|
-
return
|
|
11867
|
-
})))))), this.shouldEnablePagination() && i("div", { key: "
|
|
11756
|
+
return i("div", { key: "02339fab49389741529bd4333689e15c0409aecc" }, this.searchEnabled && i("div", { key: "a056734ff7bf25d8f561a185f8cf29742643c81d" }, i("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (o) => this.handleSearch(o) })), i("div", { key: "cbeb04c8d91034db5b7e6386e45c2dbc87d8f6ee", class: "mt-20" }, i("table", { key: "d707ffd979bc80da882ea38ce2d43cb5dee0702e", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "b4087412a0da69f0b3177785fb71ef2ce1d481a6" }, i("tr", { key: "eb4463081686841b3112cab121bf3aa4dcfffe31", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
|
|
11757
|
+
var a;
|
|
11758
|
+
return o === "actions" ? i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${r - 4}px` } }) : !((a = this.parsedConfig[o]) === null || a === void 0) && a.hidden ? null : i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${r - 4}px` } }, this.capitalize(o));
|
|
11759
|
+
}))), i("tbody", { key: "3c0de8287738ff638a46721ee4e0e07bceffed8f" }, t.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((a) => {
|
|
11760
|
+
var s;
|
|
11761
|
+
return a === "actions" ? i("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${r - 4}px` } }, i("div", { style: { display: "flex", gap: "0.5rem", justifyContent: "center", flexWrap: "wrap" } }, this.parsedActions.map((c) => i("span", { style: { whiteSpace: "nowrap" } }, this.renderSingleActionCell(c.name, o))))) : !((s = this.parsedConfig[a]) === null || s === void 0) && s.hidden ? null : i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${r - 4}px` } }, this.renderCell(o[a], a));
|
|
11762
|
+
})))))), this.shouldEnablePagination() && i("div", { key: "27c640dfdd0906abeb7ec77dfb7fb1d052d50093", class: "mt-20" }, i("eds-pagination", { key: "0a74448e3f59098808d8ba1696b891c4ea9a37bc", currentPage: this.currentPage, lastPage: l, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
11868
11763
|
}
|
|
11869
11764
|
get hostEl() {
|
|
11870
|
-
return
|
|
11765
|
+
return g(this);
|
|
11871
11766
|
}
|
|
11872
11767
|
static get watchers() {
|
|
11873
11768
|
return {
|
|
@@ -11877,10 +11772,10 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11877
11772
|
};
|
|
11878
11773
|
}
|
|
11879
11774
|
};
|
|
11880
|
-
|
|
11881
|
-
const
|
|
11775
|
+
_n.style = Wn;
|
|
11776
|
+
const Tn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(147 197 253 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor;}::before,::after{--tw-content:''}a{color:inherit;text-decoration:inherit}.relative{position:relative}.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)}.whitespace-nowrap{white-space:nowrap}.effect-color{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:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.focus-visible\\:text-default:focus-visible{color:var(--black)}.hover\\:text-default:hover{color:var(--black)}.border-2{border-width:2px}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.after\\:bottom-0::after{bottom:0rem}.after\\:border-0::after{border-width:0px}.after\\:border-b-2::after{border-bottom-width:2px}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:rounded-lg::after{border-radius:16px}.after\\:border-solid::after{border-style:solid}.after\\:border-3::after{border-width:3px}.after\\:border-accent::after{border-color:var(--green-500)}.after\\:opacity-0::after{opacity:0}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:after\\:opacity-100:focus-visible::after{opacity:1}.rounded-t-lg{border-top-left-radius:16px;border-top-right-radius:16px}.rounded-tl-lg{border-top-left-radius:16px}.rounded-tr-lg{border-top-right-radius:16px}.border-l-0{border-left-width:0px}.border-r-0{border-right-width:0px}.pr-28{padding-right:1.75rem}.pl-28{padding-left:1.75rem}.-mr-16{margin-right:-1rem}.-ml-16{margin-left:-1rem}.px-16{padding-left:1rem;padding-right:1rem}.py-12{padding-top:0.75rem;padding-bottom:0.75rem}.after\\:left-16::after{left:1rem}.after\\:right-16::after{right:1rem}.text-lighter{color:var(--grey-600)}.bg-dark{background-color:var(--grey-300)}.hover\\:bg-darker:hover{background-color:var(--grey-400)}.border-soft{border-color:var(--grey-400)}.border-softest{border-color:rgba(0, 0, 0, .05)}.bg-default{background-color:var(--grey-200)}.text-default{color:var(--black)}.z-99{z-index:99}.before\\:bottom-0::before{bottom:0rem}.before\\:h-12::before{height:0.75rem}.before\\:opacity-5::before{opacity:0.05}.before\\:content-\\[\\'\\'\\]::before{--tw-content:'';content:var(--tw-content)}.before\\:absolute::before{position:absolute}.before\\:-bottom-2::before{bottom:-0.125rem}.after\\:inset-x-0::after{left:0rem;right:0rem}.before\\:inset-x-0::before{left:0rem;right:0rem}.before\\:h-3::before{height:0.1875rem}.before\\:bg-default::before{background-color:var(--grey-200)}.after\\:border-softest::after{border-color:rgba(0, 0, 0, .05)}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.before\\:bg-gradient-y::before{background:linear-gradient(to bottom, transparent, ease-in-out, black)}.scroller-x{-ms-overflow-style:none;scrollbar-width:none}.overflow-x-auto{overflow-x:auto}.max-w-xxxl{max-width:2200px}.z-1{z-index:1}.mx-auto{margin-left:auto;margin-right:auto}.pt-8{padding-top:0.5rem}.pr-16{padding-right:1rem}.pl-16{padding-left:1rem}.inline-flex{display:inline-flex}@media (min-width: 900px){.lg\\:px-28{padding-left:1.75rem;padding-right:1.75rem}}@media (min-width: 2200px){.xxxl\\:px-0{padding-left:0rem;padding-right:0rem}}", On = Tn, $n = class {
|
|
11882
11777
|
constructor(n) {
|
|
11883
|
-
|
|
11778
|
+
d(this, n), this.tab = h(this, "tab", 7), this.tabCva = m([
|
|
11884
11779
|
"relative py-12",
|
|
11885
11780
|
"f-ui-03 whitespace-nowrap",
|
|
11886
11781
|
"effect-color",
|
|
@@ -11924,7 +11819,7 @@ const qn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11924
11819
|
* @returns {any[]} Array of parsed link objects
|
|
11925
11820
|
*/
|
|
11926
11821
|
parseTabs() {
|
|
11927
|
-
this.parsedTabs =
|
|
11822
|
+
this.parsedTabs = x(this.tabs);
|
|
11928
11823
|
}
|
|
11929
11824
|
componentDidLoad() {
|
|
11930
11825
|
this.scrollToActiveTab();
|
|
@@ -11960,13 +11855,13 @@ const qn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11960
11855
|
});
|
|
11961
11856
|
}
|
|
11962
11857
|
render() {
|
|
11963
|
-
return i("div", { key: "
|
|
11858
|
+
return i("div", { key: "ef6902f4dafc40f290f8b63627f4534d665aa01d", id: `${this.identifier}` }, i("div", { key: "a120ea68061894c2d9e2e3f0b8e61f53732c8753", class: "scroller-x overflow-x-auto max-w-xxxl xxxl:px-0 relative z-[1] mx-auto px-16 pt-8 lg:px-28" }, i("nav", { key: "fb2bb608addcc777a55be828367e92268c676e16", ref: (n) => this.tabContainer = n, class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((n, e) => {
|
|
11964
11859
|
const r = n.active ? "span" : "a", t = this.getTabOptions(n.active, e);
|
|
11965
11860
|
return i(r, Object.assign({}, t, { "aria-label": n.label, "aria-current": e === this.activeIndex, onClick: () => this.handleTabClick(e, n.label) }), n.label || n.ariaLabel);
|
|
11966
|
-
}))), i("div", { key: "
|
|
11861
|
+
}))), i("div", { key: "82d6a43a9c326b6be73c81205201b18f148641ad", class: "tab-panels" }, this.parsedTabs.map((n, e) => i("div", { hidden: e !== this.activeIndex }, i("slot", { name: `panel-${e}` })))));
|
|
11967
11862
|
}
|
|
11968
11863
|
get el() {
|
|
11969
|
-
return
|
|
11864
|
+
return g(this);
|
|
11970
11865
|
}
|
|
11971
11866
|
static get watchers() {
|
|
11972
11867
|
return {
|
|
@@ -11974,8 +11869,8 @@ const qn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11974
11869
|
};
|
|
11975
11870
|
}
|
|
11976
11871
|
};
|
|
11977
|
-
|
|
11978
|
-
const
|
|
11872
|
+
$n.style = On;
|
|
11873
|
+
const Hn = ".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-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-05{font-family:var(--f-ui-05-fontFamily);font-weight:var(--f-ui-05-fontWeight);font-size:var(--f-ui-05-fontSize);line-height:var(--f-ui-05-lineHeight);letter-spacing:var(--f-ui-05-letterSpacing)}.py-2{padding-top:0.125rem;padding-bottom:0.125rem}.py-3{padding-top:0.1875rem;padding-bottom:0.1875rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.px-4{padding-left:0.25rem;padding-right:0.25rem}.px-5{padding-left:0.3125rem;padding-right:0.3125rem}.px-6{padding-left:0.375rem;padding-right:0.375rem}.border-2{border-width:2px}.rounded-pill{border-radius:100px}.border-default{border:2px solid var(--black)}.text-inverse{color:var(--white)}.bg-accent{background-color:var(--green-500)}.bg-strongest{background-color:var(--black)}.text-\\[\\#0034CB\\]{--tw-text-opacity:1;color:rgb(0 52 203 / var(--tw-text-opacity))}.border-\\[\\#0034CB\\]{--tw-border-opacity:1;border:2px solid rgb(0 52 203 / var(--tw-border-opacity))}.text-light{color:var(--grey-700)}.bg-strongest-soft{background-color:rgba(0, 0, 0, .05)}.border-transparent{border-color:var(--transparent)}.border-inverse{border-color:var(--white)}.bg-inverse{background-color:var(--white)}.text-lighter{color:var(--grey-600)}", Dn = Hn, qn = m(
|
|
11979
11874
|
["border-2 rounded-pill"],
|
|
11980
11875
|
// Base classes
|
|
11981
11876
|
{
|
|
@@ -12003,19 +11898,75 @@ const Vn = ".f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-u
|
|
|
12003
11898
|
size: "small"
|
|
12004
11899
|
}
|
|
12005
11900
|
}
|
|
12006
|
-
),
|
|
11901
|
+
), Rn = class {
|
|
11902
|
+
constructor(n) {
|
|
11903
|
+
d(this, n), this.label = void 0, this.intent = "default", this.size = "small";
|
|
11904
|
+
}
|
|
11905
|
+
render() {
|
|
11906
|
+
const n = qn({ intent: this.intent, size: this.size });
|
|
11907
|
+
return i("span", { key: "153cb5a6ab669555dd8e5815413dc0d1be5bee6d", class: n }, this.label);
|
|
11908
|
+
}
|
|
11909
|
+
};
|
|
11910
|
+
Rn.style = Dn;
|
|
11911
|
+
const Bn = `.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),
|
|
11912
|
+
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
11913
|
+
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)}`, Nn = Bn, Mn = m(["relative bottom-4 w-auto p-12 rounded-lg shadow-md"], {
|
|
11914
|
+
variants: {
|
|
11915
|
+
intent: {
|
|
11916
|
+
default: "bg-dark text-light",
|
|
11917
|
+
success: "bg-success text-dark",
|
|
11918
|
+
error: "bg-error text-light",
|
|
11919
|
+
warning: "bg-warning text-dark"
|
|
11920
|
+
}
|
|
11921
|
+
},
|
|
11922
|
+
defaultVariants: {
|
|
11923
|
+
intent: "default"
|
|
11924
|
+
}
|
|
11925
|
+
}), Vn = class {
|
|
12007
11926
|
constructor(n) {
|
|
12008
|
-
|
|
11927
|
+
d(this, n), this.toast = h(this, "toast", 7), this.dismissToast = () => {
|
|
11928
|
+
this.toast.emit({ visible: !1, label: "dismissed" }), this.visible = !1;
|
|
11929
|
+
}, this.message = void 0, this.intent = "default", this.duration = void 0, this.visible = !0;
|
|
11930
|
+
}
|
|
11931
|
+
componentDidLoad() {
|
|
11932
|
+
const n = this.el.shadowRoot.querySelector("eds-button");
|
|
11933
|
+
this.emitContext(n);
|
|
11934
|
+
}
|
|
11935
|
+
/**
|
|
11936
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
11937
|
+
* This event provides context information about the toast component.
|
|
11938
|
+
*
|
|
11939
|
+
* @param btnElement - The link element to which the event will be dispatched.
|
|
11940
|
+
*/
|
|
11941
|
+
emitContext(n) {
|
|
11942
|
+
const e = new CustomEvent("parentContext", {
|
|
11943
|
+
detail: {
|
|
11944
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
11945
|
+
identifier: null
|
|
11946
|
+
}
|
|
11947
|
+
});
|
|
11948
|
+
n.dispatchEvent(e);
|
|
11949
|
+
}
|
|
11950
|
+
connectedCallback() {
|
|
11951
|
+
this.duration && this.duration > 0 && (this.dismissTimeout = setTimeout(this.dismissToast, this.duration));
|
|
11952
|
+
}
|
|
11953
|
+
disconnectedCallback() {
|
|
11954
|
+
clearTimeout(this.dismissTimeout);
|
|
12009
11955
|
}
|
|
12010
11956
|
render() {
|
|
12011
|
-
|
|
12012
|
-
|
|
11957
|
+
if (!this.visible)
|
|
11958
|
+
return null;
|
|
11959
|
+
const n = Mn({ intent: this.intent });
|
|
11960
|
+
return i("div", { class: n, role: "alert", "aria-live": "assertive" }, i("div", { class: "flex items-center justify-between gap-4" }, i("span", { class: "f-ui-01" }, this.message), i("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
|
|
11961
|
+
}
|
|
11962
|
+
get el() {
|
|
11963
|
+
return g(this);
|
|
12013
11964
|
}
|
|
12014
11965
|
};
|
|
12015
|
-
|
|
12016
|
-
const
|
|
11966
|
+
Vn.style = Nn;
|
|
11967
|
+
const Un = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.text-default{color:var(--black)}.min-w-\\[280px\\]{min-width:280px}.p-8{padding:0.5rem}.gap-x-16{-moz-column-gap:1rem;column-gap:1rem}.gap-y-8{row-gap:0.5rem}.pb-16{padding-bottom:1rem}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1 )}.max-w-full{max-width:100%}.w-full{width:100%}.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-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)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mt-16{margin-top:1rem}", Yn = Un, Xn = class {
|
|
12017
11968
|
constructor(n) {
|
|
12018
|
-
|
|
11969
|
+
d(this, n), this.user = void 0;
|
|
12019
11970
|
}
|
|
12020
11971
|
/**
|
|
12021
11972
|
* Helper getter to ensure we work with a User object.
|
|
@@ -12038,40 +11989,38 @@ const Gn = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
12038
11989
|
}
|
|
12039
11990
|
render() {
|
|
12040
11991
|
const n = this.parsedUser;
|
|
12041
|
-
return i("div", { key: "
|
|
11992
|
+
return i("div", { key: "e1413d070d6f5ce0a5f7a45e8eed7a27941bda10", class: "block" }, i("div", { key: "f59cf79c2f09069d9e5bbae2bc126a0e3ef23564", class: "flex items-center" }, i("eds-dropdown", { key: "7316554277baffb16b6a2cc0ab0b4606a46ccfc8", label: `Hi, ${n.preferred_username}`, intent: "tertiary", "aria-label": "User Menu", "dropdown-pos": "right", "dropdown-offset": "false", icon: "chevron-down", class: "text-default" }, i("div", { key: "df80f62cd5c6e0876fcc20c54dbd25d6db031ce0", class: "min-w-[280px] p-8" }, i("div", { key: "34f0bd24c4c8ec55d5e99f77d0378bc14fb6943f", class: "flex gap-x-16" }, i("eds-avatar", { key: "73e45e3d20d02711af982a7a801cb7d6e18e201e", "first-name": n.given_name, "last-name": n.family_name, initials: this.initials, color: "grey" }), i("div", { key: "1070df12372893476cc5ed2909ac735d0655cdb7", class: "max-w-full" }, n.name && i("p", { key: "4d6ca560545810da42d6acd5780c354565dc0d2d", class: "f-ui-01 text-default w-full text-ellipsis" }, n.name), n.preferred_username && i("p", { key: "f7e618449d15fc899484afda94e7837408f0b251", class: "f-ui-03-light text-light mt-4" }, n.preferred_username), n.email && i("p", { key: "e6ca46f9863cea6d6bfa7021ead181509a5806f0", class: "f-ui-03-light text-light mt-4" }, n.email))), i("eds-block-break", { key: "76c0ba26ef63e046b7a01e12332b812ad5873776" }), i("div", { key: "448e592221de4406477bb0eb6bc84975699008f3", class: "text-default flex w-full flex-col gap-y-8" }, i("slot", { key: "47e2d49bef131c827f49d3eaf68f6a09ba948707" }))))));
|
|
12042
11993
|
}
|
|
12043
11994
|
get hostEl() {
|
|
12044
|
-
return
|
|
11995
|
+
return g(this);
|
|
12045
11996
|
}
|
|
12046
11997
|
};
|
|
12047
|
-
|
|
11998
|
+
Xn.style = Yn;
|
|
12048
11999
|
export {
|
|
12049
|
-
|
|
12000
|
+
W as eds_avatar,
|
|
12050
12001
|
O as eds_block_break,
|
|
12051
|
-
|
|
12002
|
+
D as eds_button,
|
|
12052
12003
|
B as eds_dropdown,
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
-
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12069
|
-
|
|
12070
|
-
|
|
12071
|
-
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
Xn as eds_tag,
|
|
12076
|
-
Qn as eds_user
|
|
12004
|
+
J as eds_form,
|
|
12005
|
+
Z as eds_header,
|
|
12006
|
+
ee as eds_icon_wrapper,
|
|
12007
|
+
rn as eds_img,
|
|
12008
|
+
ie as eds_input,
|
|
12009
|
+
on as eds_input_field,
|
|
12010
|
+
dn as eds_input_footer,
|
|
12011
|
+
hn as eds_input_label,
|
|
12012
|
+
re as eds_input_range,
|
|
12013
|
+
te as eds_input_search,
|
|
12014
|
+
le as eds_input_select,
|
|
12015
|
+
mn as eds_link,
|
|
12016
|
+
yn as eds_logo,
|
|
12017
|
+
kn as eds_pagination,
|
|
12018
|
+
Sn as eds_rating,
|
|
12019
|
+
Ln as eds_steps,
|
|
12020
|
+
jn as eds_steps_v2,
|
|
12021
|
+
_n as eds_table,
|
|
12022
|
+
$n as eds_tabs,
|
|
12023
|
+
Rn as eds_tag,
|
|
12024
|
+
Vn as eds_toast,
|
|
12025
|
+
Xn as eds_user
|
|
12077
12026
|
};
|