@ebrains/vue 1.4.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-CvT9Ya5U.mjs → color-primary-palette_6.entry-Dx0sxiGl.mjs} +15 -15
- package/{components-section.entry-DxoI4HY4.mjs → components-section.entry-CunkKxAI.mjs} +2 -2
- package/{components-section.entry-CWKDKHtQ.js → components-section.entry-DlSK2XQH.js} +2 -2
- package/{correct-use-of-colors.entry-DF18kIaK.js → correct-use-of-colors.entry-CEWf34uE.js} +1 -1
- package/{correct-use-of-colors.entry-C5sWpTko.mjs → correct-use-of-colors.entry-DCSZZlrZ.mjs} +2 -2
- package/{docs-palettes.entry-lOvWFgf-.mjs → docs-palettes.entry-BNFu_gbi.mjs} +4 -4
- package/{docs-palettes.entry-BWpyXx-T.js → docs-palettes.entry-DcN9LWvY.js} +1 -1
- package/{docs-tokens.entry-Bv54B_2f.js → docs-tokens.entry-B3fO_wav.js} +1 -1
- package/{docs-tokens.entry-C1506Ctj.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-RqLUu_aX.mjs → eds-accordion.entry-Cniy--Pf.mjs} +8 -8
- package/{eds-accordion.entry-Df1wwL9c.js → eds-accordion.entry-DqsJjt8n.js} +2 -2
- package/{eds-alert.entry-Du5kP3mG.js → eds-alert.entry-1Mmo8pXz.js} +1 -1
- package/{eds-alert.entry-CbLdoVL6.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_29.entry-BUOXv9To.mjs → eds-avatar_26.entry-BQ34MNWx.mjs} +369 -492
- package/{eds-avatar_29.entry-CjNZgyQq.js → eds-avatar_26.entry-t5Dh1R-T.js} +21 -11
- package/{eds-breadcrumb.entry-CLUX3Y0B.mjs → eds-breadcrumb.entry-DoRU-2U8.mjs} +1 -1
- package/{eds-breadcrumb.entry-Dml0f2Up.js → eds-breadcrumb.entry-WWpJ_3D5.js} +1 -1
- package/{eds-card-desc_2.entry-Dqgd6Zi8.js → eds-card-desc_2.entry-BhqAsb3U.js} +1 -1
- package/{eds-card-desc_2.entry-ZED1q0dr.mjs → eds-card-desc_2.entry-D_GE153d.mjs} +1 -1
- package/{eds-card-generic.entry-BGXNIjXC.mjs → eds-card-generic.entry-B9M3v5vo.mjs} +2 -2
- package/{eds-card-generic.entry-D7VnEfUv.js → eds-card-generic.entry-DNr8lsia.js} +1 -1
- package/{eds-card-project.entry-Dl0CS7vm.mjs → eds-card-project.entry-CtwByu-b.mjs} +2 -2
- package/{eds-card-project.entry-Cq2NyFI-.js → eds-card-project.entry-DDVZxmW4.js} +1 -1
- package/{eds-card-section.entry-DT-_pAUK.mjs → eds-card-section.entry-DQfUs62H.mjs} +1 -1
- package/{eds-card-section.entry-DGruSi5l.js → eds-card-section.entry-Dq80ib2D.js} +1 -1
- package/{eds-card-tags.entry-ClsT3xfY.js → eds-card-tags.entry-CSuzFzX-.js} +1 -1
- package/{eds-card-tags.entry-C7NrBbP8.mjs → eds-card-tags.entry-DrWAV-ko.mjs} +1 -1
- package/{eds-card-tool.entry-z0fP74r5.js → eds-card-tool.entry-CNxFGROK.js} +1 -1
- package/{eds-card-tool.entry-LuekCyVO.mjs → eds-card-tool.entry-D1HR_5K1.mjs} +1 -1
- package/{eds-code-block.entry-BiL7xPb5.mjs → eds-code-block.entry-DGIrW97_.mjs} +1 -1
- package/{eds-code-block.entry-BR4uNheU.js → eds-code-block.entry-JdJJLE4a.js} +1 -1
- package/{eds-cookies-preference.entry-7DUvxDvw.mjs → eds-cookies-preference.entry-CVk-5TmL.mjs} +5 -5
- package/{eds-cookies-preference.entry-DxYNSyjz.js → eds-cookies-preference.entry-D3iYnclm.js} +1 -1
- package/{eds-feedback.entry-C1M_2DF2.mjs → eds-feedback.entry-B1yQSCpz.mjs} +5 -5
- package/{eds-feedback.entry-BYmUBprW.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-Djc8vEPI.js → eds-frame.entry-eqZLv-6q.js} +1 -1
- package/{eds-frame.entry-g6FsDvwR.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-Dg_w6UKG.js → eds-gauge.entry-Bjp3cj0S.js} +1 -1
- package/{eds-gauge.entry-DnkcGo5U.mjs → eds-gauge.entry-CrqkvnWf.mjs} +1 -1
- package/{eds-icon-arrow-diagonal.entry-BThKfy6M.js → eds-icon-arrow-diagonal.entry-B8-jArDT.js} +1 -1
- package/{eds-icon-arrow-diagonal.entry-DfER6mGO.mjs → eds-icon-arrow-diagonal.entry-DACKEZ7o.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-BQoCCX7s.js → eds-icon-arrow-right.entry-BP77Fhx8.js} +1 -1
- package/{eds-icon-arrow-right.entry-CvUL2IEH.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-DtLvqCfL.js → eds-icon-bluesky.entry-DJCdYrfU.js} +1 -1
- package/eds-icon-bookmark.entry-B5IinWaZ.mjs +13 -0
- package/{eds-icon-bookmark.entry-DxEJgwKd.js → eds-icon-bookmark.entry-Dhvd8veD.js} +1 -1
- package/{eds-icon-chevron-down.entry-CfN_CVQg.js → eds-icon-chevron-down.entry-B__d09rD.js} +1 -1
- package/{eds-icon-chevron-down.entry-Cn8FNSj1.mjs → eds-icon-chevron-down.entry-P4xqCoWP.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-KccXzPrS.mjs → eds-icon-chevron-left.entry-CuBl_BGv.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-pFEqXjQr.js → eds-icon-chevron-left.entry-ZkPovDlT.js} +1 -1
- package/{eds-icon-chevron-right.entry-Dq3Uar1F.js → eds-icon-chevron-right.entry-5h2qhFR-.js} +1 -1
- package/{eds-icon-chevron-right.entry-dm-TCY2y.mjs → eds-icon-chevron-right.entry-C0dfqwMy.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-7njN-pDK.js → eds-icon-chevron-up.entry-D0353BVJ.js} +1 -1
- package/{eds-icon-chevron-up.entry-DZeteF2a.mjs → eds-icon-chevron-up.entry-UAZdu3Df.mjs} +1 -1
- package/{eds-icon-close.entry-DI2JTTCg.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-c4JKvZw1.js → eds-icon-external.entry-DjuhhmIA.js} +1 -1
- package/{eds-icon-facebook.entry-DGwJAZfT.js → eds-icon-facebook.entry-BdzYJmXP.js} +1 -1
- package/eds-icon-facebook.entry-CrssRpWE.mjs +13 -0
- package/{eds-icon-gitlab.entry-Ctq954TL.js → eds-icon-gitlab.entry-BE8qLkYR.js} +1 -1
- package/eds-icon-gitlab.entry-CeKDBPdQ.mjs +13 -0
- package/{eds-icon-linkedin.entry-B_zROU0d.js → eds-icon-linkedin.entry-C4GaDa_x.js} +1 -1
- package/eds-icon-linkedin.entry-DTormNBK.mjs +13 -0
- package/{eds-icon-loader.entry-BItAXUxT.mjs → eds-icon-loader.entry-BOxUhqUI.mjs} +2 -2
- package/{eds-icon-loader.entry-CEZn4VxW.js → eds-icon-loader.entry-BzyS9rwg.js} +1 -1
- package/eds-icon-mastodon.entry-Cb_b8WxS.mjs +13 -0
- package/{eds-icon-mastodon.entry-qCWJ_x5W.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-CcJ9pB-o.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-D68nVjL8.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-B-BOsFV3.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-CnkWJzkZ.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-yuF-uDaQ.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-kYL2vKmH.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-CMGpTPzq.mjs → eds-icon-twitter.entry-BwOIf0Bv.mjs} +2 -2
- package/{eds-icon-twitter.entry-bMXEypFu.js → eds-icon-twitter.entry-CZo7HVCl.js} +1 -1
- package/{eds-icon-unknown.entry-DQ3C8FEA.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-DnJcjmle.js → eds-icon-youtube.entry-BUryZYQc.js} +1 -1
- package/eds-icon-youtube.entry-HRKBTy8P.mjs +13 -0
- package/{eds-matomo-notice.entry-DXgylTlk.js → eds-matomo-notice.entry-B0xxpHZr.js} +1 -1
- package/{eds-matomo-notice.entry-DvvvlaFb.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-D_jCamhX.mjs → eds-pie.entry-BU0NzwvU.mjs} +1 -1
- package/{eds-pie.entry-Cu2uq_3h.js → eds-pie.entry-BiQyGOJw.js} +1 -1
- package/{eds-progress-bar.entry-CC1dOWe1.js → eds-progress-bar.entry-BfV2jWgV.js} +1 -1
- package/{eds-progress-bar.entry-C4pfvwx1.mjs → eds-progress-bar.entry-BoQmuoGC.mjs} +4 -4
- package/{eds-section-core_2.entry-JzPcyWhJ.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-V4n8Dvfm.js → eds-splash-screen.entry-D3_EbR0-.js} +1 -1
- package/{eds-splash-screen.entry-DlAoDuzU.mjs → eds-splash-screen.entry-DOmRKV_v.mjs} +5 -5
- package/{eds-switch.entry-Bo0okWHX.mjs → eds-switch.entry-DeWyzUU9.mjs} +4 -4
- package/eds-switch.entry-qYhLXAv2.js +1 -0
- package/{eds-timeline.entry-DBu98TrB.mjs → eds-timeline.entry-BSozjnyo.mjs} +4 -4
- package/{eds-timeline.entry-Cxyvzy8x.js → eds-timeline.entry-CFhtSoZc.js} +1 -1
- package/{eds-toast-manager.entry-pv7Pcl6B.mjs → eds-toast-manager.entry-Bj-xEHAg.mjs} +2 -2
- package/{eds-toast-manager.entry-C5zTIL5J.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-CX3u3L-Z.mjs → incorrect-use-of-colors.entry-C0MGEaLB.mjs} +7 -7
- package/incorrect-use-of-colors.entry-CzcQmvFc.js +1 -0
- package/{index-DpUTWZFA.mjs → index-BW6yUYdy.mjs} +500 -463
- package/index-ECY2yg1E.js +21 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{logo-space.entry-Cow8tI7Y.mjs → logo-space.entry-C5_FS_1e.mjs} +6 -6
- package/{logo-space.entry-dS1l_4Wh.js → logo-space.entry-Cq0tziVn.js} +2 -2
- package/{logo-variations-horizontal_2.entry-DBafIDHo.mjs → logo-variations-horizontal_2.entry-Bx8geXjs.mjs} +5 -5
- package/{logo-variations-horizontal_2.entry-Bzol9fjc.js → logo-variations-horizontal_2.entry-CQW41pP-.js} +3 -3
- package/logo-variations-tabs.entry-CfkXBk5k.js +1 -0
- package/{logo-variations-tabs.entry-D4uKKqh0.mjs → logo-variations-tabs.entry-DgYru0Zn.mjs} +4 -4
- package/{logo-wrong-usage.entry-BkwO7Dgm.js → logo-wrong-usage.entry-B2LU9hBv.js} +1 -1
- package/{logo-wrong-usage.entry-C0ylWAnU.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-TP5g_TK_.js → svg-repository.entry-C8PnrvxA.js} +12 -12
- package/{svg-repository.entry-DHYfAu5N.mjs → svg-repository.entry-PcURnvgb.mjs} +47 -39
- package/{token-list_3.entry-BrA3OWSV.mjs → token-list_3.entry-B4ClAGZQ.mjs} +4 -4
- package/{token-list_3.entry-VmEoB2Ng.js → token-list_3.entry-CnPtT_DH.js} +1 -1
- package/token-ratios.entry-BoaLF_aM.js +1 -0
- package/{token-ratios.entry-vmg0sh70.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-DU8aU6Rt.js → token-typography.entry-DFu3h1rd.js} +1 -1
- package/{token-typography.entry-B0aoPZEB.mjs → token-typography.entry-WBbs4fXw.mjs} +2 -2
- package/color-primary-palette_6.entry-BXRbIYQI.js +0 -1
- package/eds-app-root.entry-6U1IUxaV.js +0 -1
- package/eds-app-root.entry-C1L4rDyg.mjs +0 -25
- package/eds-icon-bluesky.entry-pOakWVwm.mjs +0 -13
- package/eds-icon-bookmark.entry-CAbcBSOw.mjs +0 -13
- package/eds-icon-close.entry-S2eX7MJN.mjs +0 -13
- package/eds-icon-copy.entry-BwDCx4LA.mjs +0 -13
- package/eds-icon-copy.entry-CvgDlhN9.js +0 -1
- package/eds-icon-eu.entry-DAkHQ7Xw.mjs +0 -13
- package/eds-icon-eu.entry-DS-Jji5x.js +0 -1
- package/eds-icon-external.entry-D2b2sLm2.mjs +0 -13
- package/eds-icon-facebook.entry-B46aASQF.mjs +0 -13
- package/eds-icon-gitlab.entry-BCxrsdS_.mjs +0 -13
- package/eds-icon-linkedin.entry-CkviXGQC.mjs +0 -13
- package/eds-icon-mastodon.entry-BzqTkzQ0.mjs +0 -13
- package/eds-icon-menu.entry-BUmP_hTD.js +0 -1
- package/eds-icon-menu.entry-C6A0c2hG.mjs +0 -13
- package/eds-icon-minus.entry-DMTMoQb0.mjs +0 -13
- package/eds-icon-minus.entry-DTHZwwvT.js +0 -1
- package/eds-icon-more.entry-PDClpir4.mjs +0 -13
- package/eds-icon-paper.entry-B7ZesD_k.js +0 -1
- package/eds-icon-paper.entry-Bfr8U_5Z.mjs +0 -13
- package/eds-icon-plus.entry-B9dO_yv1.js +0 -1
- package/eds-icon-plus.entry-qBIxMO6w.mjs +0 -13
- package/eds-icon-portal.entry-BkZn2UlW.mjs +0 -13
- package/eds-icon-private.entry-CPudUW3y.mjs +0 -13
- package/eds-icon-public.entry-BEuGmGDm.js +0 -1
- package/eds-icon-public.entry-l-c12-ot.mjs +0 -13
- package/eds-icon-search.entry-CyujB3B2.js +0 -1
- package/eds-icon-search.entry-xwA-HYjT.mjs +0 -13
- package/eds-icon-star.entry-kHi0LUqR.mjs +0 -13
- package/eds-icon-success.entry-Crhf7xIP.mjs +0 -13
- package/eds-icon-thumbs-down.entry-DBKBcj-i.mjs +0 -13
- package/eds-icon-thumbs-up.entry-0CMBOdab.mjs +0 -13
- package/eds-icon-thumbs-up.entry-z9R1lFQb.js +0 -1
- package/eds-icon-tutorial.entry-Dez96InA.mjs +0 -13
- package/eds-icon-tutorial.entry-JKXn5Erp.js +0 -1
- package/eds-icon-unknown.entry-BXU4Bg9C.mjs +0 -13
- package/eds-icon-updown.entry-B8IWgmtI.mjs +0 -13
- package/eds-icon-updown.entry-Cna08qxN.js +0 -1
- package/eds-icon-user.entry-B1bMKs8B.mjs +0 -13
- package/eds-icon-user.entry-CJFYXCKO.js +0 -1
- package/eds-icon-youtube.entry-pSBbdBV8.mjs +0 -13
- package/eds-rating.entry-B1SkHc9j.mjs +0 -61
- package/eds-rating.entry-Cub8-CYo.js +0 -1
- package/eds-section-core_2.entry-MI92_AWE.js +0 -1
- package/eds-spinner.entry-BEiBPrum.js +0 -1
- package/eds-spinner.entry-DyS6vswP.mjs +0 -36
- package/eds-switch.entry-KL8zZeak.js +0 -1
- package/eds-tooltip.entry-DdyCiR00.js +0 -6
- package/eds-tooltip.entry-DffUxKpF.mjs +0 -31
- package/eds-trl.entry-B0NOKbaT.mjs +0 -34
- package/eds-trl.entry-a4az0XAJ.js +0 -1
- package/incorrect-use-of-colors.entry-BbWaxWJ2.js +0 -1
- package/index-BK320cEL.js +0 -21
- package/logo-variations-tabs.entry-BLa1GqF6.js +0 -1
- package/token-ratios.entry-BjY2DyCo.js +0 -1
- package/token-spacing.entry-B9xNfUfE.js +0 -1
- package/token-spacing.entry-BOxK1TIH.mjs +0 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as d, h as i, g, c as h } from "./index-
|
|
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,7 +205,7 @@ abbr:where([title]) {
|
|
|
205
205
|
|
|
206
206
|
.bg-gradient-04-bottom {
|
|
207
207
|
background: linear-gradient(to top, #2B69FC, ease-in-out, #E6E6E6);
|
|
208
|
-
}`,
|
|
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
|
}
|
|
@@ -254,8 +254,8 @@ 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
|
}
|
|
@@ -263,8 +263,8 @@ const W = ".border-softer{border-color:rgba(0, 0, 0, .1)}.border-default{border-
|
|
|
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
|
-
|
|
267
|
-
const
|
|
266
|
+
O.style = T;
|
|
267
|
+
const $ = `*,
|
|
268
268
|
::before,
|
|
269
269
|
::after {
|
|
270
270
|
box-sizing: border-box;
|
|
@@ -1173,7 +1173,7 @@ 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",
|
|
@@ -1279,7 +1279,7 @@ button,
|
|
|
1279
1279
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
1280
1280
|
}
|
|
1281
1281
|
handleClick(n) {
|
|
1282
|
-
var e,
|
|
1282
|
+
var e, r;
|
|
1283
1283
|
if (this.disabled) {
|
|
1284
1284
|
n.preventDefault();
|
|
1285
1285
|
return;
|
|
@@ -1288,7 +1288,7 @@ button,
|
|
|
1288
1288
|
category: "ui-component",
|
|
1289
1289
|
parentContext: this.parentContext,
|
|
1290
1290
|
tag: this.el.tagName.toLowerCase(),
|
|
1291
|
-
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((
|
|
1291
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((r = this.ariaLabel) === null || r === void 0 ? void 0 : r.toLowerCase()) || "",
|
|
1292
1292
|
action: "click"
|
|
1293
1293
|
}), typeof this.triggerClick == "function" && this.triggerClick();
|
|
1294
1294
|
}
|
|
@@ -1302,7 +1302,7 @@ button,
|
|
|
1302
1302
|
iconOnly: !this.label,
|
|
1303
1303
|
iconSmall: this.iconSmall
|
|
1304
1304
|
}), e = this.elementType;
|
|
1305
|
-
return i(e, { key: "ecdd901c70578c07ef094aadbcd287588d4ba705", "aria-label": this.label || this.ariaLabel || void 0, "aria-disabled": this.elementType === "button" ? this.disabled : void 0, disabled: this.elementType === "button" ? this.disabled : void 0, class: `${n || ""} ${this.extraClass || ""}`, onClick: (
|
|
1305
|
+
return i(e, { key: "ecdd901c70578c07ef094aadbcd287588d4ba705", "aria-label": this.label || this.ariaLabel || void 0, "aria-disabled": this.elementType === "button" ? this.disabled : void 0, disabled: this.elementType === "button" ? this.disabled : void 0, class: `${n || ""} ${this.extraClass || ""}`, onClick: (r) => this.handleClick(r) }, this.label && i("span", { key: "af8d0ca1c5c3e54f9db3066931a69d3a5a812666", class: this.loading ? "opacity-0" : "" }, this.label), this.loading && i("span", { key: "29b72c15e80f46e023f829568f58d8a8dca82b78", class: "absolute inset-0 flex items-center justify-center" }, i("span", { key: "bad8bd059b1312ca3f5ab173b1203eb395e9bbd8", class: "loader", style: {
|
|
1306
1306
|
border: `3px solid ${this.intent === "secondary" ? "rgba(255, 255, 255, .3)" : "rgba(0, 0, 0, .3)"}`,
|
|
1307
1307
|
borderBottomColor: this.intent === "secondary" ? "#fff" : "#000"
|
|
1308
1308
|
} })), this.icon ? i("eds-icon-wrapper", { class: `
|
|
@@ -1314,8 +1314,8 @@ button,
|
|
|
1314
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;
|
|
@@ -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,131 +1379,124 @@ 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
1392
|
return g(this);
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
constructor(n) {
|
|
1398
|
-
d(this, n), this.cookies = h(this, "cookies", 7), this.backToTop = () => {
|
|
1399
|
-
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
1400
|
-
}, this.social = !1, this.enableScrollTop = !1, this.fundedBy = "EBRAINS is funded by the Horizon Europe Framework Programme.", this.rightsReserved = `${(/* @__PURE__ */ new Date()).getFullYear()} EBRAINS. All rights reserved.`, this.cookiesPreferences = "Cookies preferences", this.enableCookiesSettings = !1, this.backToTopAriaLabel = "Back to Top", this.showMatomoNotice = !1;
|
|
1401
|
-
}
|
|
1402
|
-
toggleCookiesConsent() {
|
|
1403
|
-
this.cookies.emit("toggle");
|
|
1404
|
-
}
|
|
1405
|
-
/**
|
|
1406
|
-
* Renders the footer component with optional sections and elements,
|
|
1407
|
-
* including social network links, a Horizon Europe funding acknowledgment, and
|
|
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))));
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
|
-
R.style = B;
|
|
1419
|
-
function u(n, e, t, r, l, o, a) {
|
|
1395
|
+
B.style = R;
|
|
1396
|
+
function p(n, e, r, t, l, o, a) {
|
|
1420
1397
|
const s = [];
|
|
1421
|
-
if (
|
|
1398
|
+
if (t && !e) {
|
|
1399
|
+
const c = n.length > 30 ? `${n.slice(0, 27)}…` : n;
|
|
1400
|
+
s.push(`“${c}” is required.`);
|
|
1401
|
+
}
|
|
1402
|
+
if (r === "number") {
|
|
1422
1403
|
const c = typeof e == "number" ? e : parseFloat(e);
|
|
1423
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}.`));
|
|
1424
1405
|
}
|
|
1425
|
-
return l && typeof e == "string" && e.length > l && s.push(`${n} must be at most ${l} characters.`),
|
|
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;
|
|
1426
1407
|
}
|
|
1427
|
-
function
|
|
1428
|
-
const o = Array.from(
|
|
1429
|
-
var c,
|
|
1430
|
-
return ((
|
|
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;
|
|
1431
1412
|
}).flatMap((s) => {
|
|
1432
1413
|
var c;
|
|
1433
1414
|
return Array.from(((c = s.shadowRoot) === null || c === void 0 ? void 0 : c.querySelectorAll(`input[name="${n}"]`)) || []);
|
|
1434
1415
|
}).some((s) => s.checked), a = [];
|
|
1435
1416
|
return e && !o && a.push(`At least one option in ${n} is required.`), a;
|
|
1436
1417
|
}
|
|
1437
|
-
function
|
|
1438
|
-
var
|
|
1439
|
-
const l = [], o = Array.from(
|
|
1418
|
+
function w(n, e, r) {
|
|
1419
|
+
var t;
|
|
1420
|
+
const l = [], o = Array.from(r.querySelectorAll("eds-input-field")).find((s) => {
|
|
1440
1421
|
var c;
|
|
1441
1422
|
return (c = s.shadowRoot) === null || c === void 0 ? void 0 : c.querySelector(`[name="${n}"]`);
|
|
1442
1423
|
});
|
|
1443
1424
|
if (!o)
|
|
1444
1425
|
return e && l.push(`${n} is required.`), l;
|
|
1445
|
-
const a = (
|
|
1426
|
+
const a = (t = o.shadowRoot) === null || t === void 0 ? void 0 : t.querySelector(`[name="${n}"]`);
|
|
1446
1427
|
return e && a && !a.checked && l.push(`${n} is required.`), l;
|
|
1447
1428
|
}
|
|
1448
|
-
function
|
|
1449
|
-
const
|
|
1450
|
-
for (const
|
|
1451
|
-
if (
|
|
1452
|
-
const l =
|
|
1429
|
+
function N(n, e) {
|
|
1430
|
+
const r = Array.from(n.querySelectorAll("eds-input-field"));
|
|
1431
|
+
for (const t of r)
|
|
1432
|
+
if (t.shadowRoot) {
|
|
1433
|
+
const l = t.shadowRoot.querySelector(`[name="${e}"]`);
|
|
1453
1434
|
if (l)
|
|
1454
1435
|
return l;
|
|
1455
1436
|
}
|
|
1456
1437
|
return null;
|
|
1457
1438
|
}
|
|
1458
|
-
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) {
|
|
1459
1446
|
const l = {};
|
|
1460
1447
|
let o = !1;
|
|
1461
1448
|
return n.forEach((a) => {
|
|
1462
|
-
if (!
|
|
1449
|
+
if (!t(a, r)) {
|
|
1463
1450
|
delete l[a.name];
|
|
1464
1451
|
return;
|
|
1465
1452
|
}
|
|
1466
1453
|
if (a.type !== "hidden")
|
|
1467
1454
|
if ((a.type === "checkbox" || a.type === "radio") && !a.options) {
|
|
1468
|
-
const s =
|
|
1455
|
+
const s = w(a.name, a.required, e);
|
|
1469
1456
|
s.length > 0 && (l[a.name] = s, o = !0);
|
|
1470
1457
|
} else if (a.options && (a.type === "checkbox" || a.type === "radio")) {
|
|
1471
|
-
const s =
|
|
1458
|
+
const s = v(a.name, a.required, e);
|
|
1472
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
|
+
}
|
|
1473
1466
|
} else {
|
|
1474
|
-
const s =
|
|
1467
|
+
const s = N(e, a.name);
|
|
1475
1468
|
if (s) {
|
|
1476
|
-
const c = s.value,
|
|
1477
|
-
|
|
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);
|
|
1478
1471
|
}
|
|
1479
1472
|
}
|
|
1480
1473
|
}), { errors: l, hasError: o };
|
|
1481
1474
|
}
|
|
1482
|
-
function
|
|
1483
|
-
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);
|
|
1484
1477
|
}
|
|
1485
|
-
function
|
|
1478
|
+
function Y({
|
|
1486
1479
|
initData: n,
|
|
1487
1480
|
parsedFields: e,
|
|
1488
|
-
currentValues:
|
|
1481
|
+
currentValues: r
|
|
1489
1482
|
//formEl,
|
|
1490
1483
|
//isFieldVisible
|
|
1491
1484
|
}) {
|
|
1492
|
-
const
|
|
1485
|
+
const t = Object.assign({}, r);
|
|
1493
1486
|
return e.forEach((l) => {
|
|
1494
1487
|
const o = n[l.name];
|
|
1495
|
-
o !== void 0 && (
|
|
1496
|
-
}), { updatedValues:
|
|
1488
|
+
o !== void 0 && (t[l.name] = o);
|
|
1489
|
+
}), { updatedValues: t };
|
|
1497
1490
|
}
|
|
1498
|
-
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 {
|
|
1499
1492
|
constructor(n) {
|
|
1500
|
-
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.initData = {}, this.values = {}, this.isSubmitting = !1, this.hasError = !1, this.errors = {}, this.parsedFields = [];
|
|
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 = [];
|
|
1501
1494
|
}
|
|
1502
1495
|
async setData(n) {
|
|
1503
1496
|
this.populateFormWithInitData(n);
|
|
1504
1497
|
}
|
|
1505
1498
|
componentWillLoad() {
|
|
1506
|
-
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) => {
|
|
1507
1500
|
this.emitContext(e);
|
|
1508
1501
|
});
|
|
1509
1502
|
}
|
|
@@ -1514,7 +1507,10 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1514
1507
|
return !!this.initData;
|
|
1515
1508
|
}
|
|
1516
1509
|
parseFields(n) {
|
|
1517
|
-
this.parsedFields =
|
|
1510
|
+
this.parsedFields = x(n);
|
|
1511
|
+
}
|
|
1512
|
+
parseGroups(n) {
|
|
1513
|
+
this.parsedGroups = x(n);
|
|
1518
1514
|
}
|
|
1519
1515
|
emitContext(n) {
|
|
1520
1516
|
const e = new CustomEvent("parentContext", {
|
|
@@ -1528,39 +1524,39 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1528
1524
|
isFieldVisible(n) {
|
|
1529
1525
|
if (!n.condition)
|
|
1530
1526
|
return !0;
|
|
1531
|
-
const e = this.values[n.condition.field],
|
|
1532
|
-
return String(e) === String(
|
|
1527
|
+
const e = this.values[n.condition.field], r = n.condition.value;
|
|
1528
|
+
return String(e) === String(r);
|
|
1533
1529
|
}
|
|
1534
1530
|
validateForm() {
|
|
1535
|
-
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);
|
|
1536
1532
|
this.errors = n, this.hasError = e;
|
|
1537
1533
|
}
|
|
1538
1534
|
populateFormWithInitData(n) {
|
|
1539
|
-
const { updatedValues: e } =
|
|
1535
|
+
const { updatedValues: e } = Y({
|
|
1540
1536
|
initData: n,
|
|
1541
1537
|
parsedFields: this.parsedFields,
|
|
1542
1538
|
currentValues: this.values,
|
|
1543
1539
|
formEl: this.formEl,
|
|
1544
|
-
isFieldVisible: (
|
|
1540
|
+
isFieldVisible: (r, t) => r.condition ? t[r.condition.field] === r.condition.value : !0
|
|
1545
1541
|
});
|
|
1546
1542
|
this.values = e;
|
|
1547
1543
|
}
|
|
1548
1544
|
getFormData() {
|
|
1549
1545
|
const n = new FormData();
|
|
1550
|
-
return n.append("form_name", this.name), this.setFormUrl && typeof window < "u" && n.set("form_url", window.location.href), Array.from(this.formEl.querySelectorAll("eds-input-field")).forEach((
|
|
1551
|
-
if (
|
|
1552
|
-
const
|
|
1553
|
-
if (
|
|
1554
|
-
if (
|
|
1555
|
-
const o = Array.from(
|
|
1556
|
-
n.append(
|
|
1557
|
-
} else if (
|
|
1558
|
-
const l =
|
|
1546
|
+
return n.append("form_name", this.name), this.setFormUrl && typeof window < "u" && n.set("form_url", window.location.href), Array.from(this.formEl.querySelectorAll("eds-input-field")).forEach((r) => {
|
|
1547
|
+
if (r.shadowRoot) {
|
|
1548
|
+
const t = r.shadowRoot.querySelector("input, textarea, select");
|
|
1549
|
+
if (t && t.name)
|
|
1550
|
+
if (t.type === "checkbox" || t.type === "radio") {
|
|
1551
|
+
const o = Array.from(r.shadowRoot.querySelectorAll(`input[name="${t.name}"]:checked`)).map((a) => a.value);
|
|
1552
|
+
n.append(t.name, o.join(","));
|
|
1553
|
+
} else if (t.type === "file") {
|
|
1554
|
+
const l = t;
|
|
1559
1555
|
l.files && l.files.length > 0 && Array.from(l.files).forEach((o) => {
|
|
1560
1556
|
n.append(l.name, o);
|
|
1561
1557
|
});
|
|
1562
1558
|
} else
|
|
1563
|
-
n.append(
|
|
1559
|
+
n.append(t.name, t.value);
|
|
1564
1560
|
}
|
|
1565
1561
|
}), n;
|
|
1566
1562
|
}
|
|
@@ -1571,38 +1567,49 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1571
1567
|
}), n;
|
|
1572
1568
|
}
|
|
1573
1569
|
handleChange(n, e) {
|
|
1574
|
-
const
|
|
1575
|
-
let
|
|
1576
|
-
if (
|
|
1570
|
+
const r = n.target;
|
|
1571
|
+
let t = r.value;
|
|
1572
|
+
if (r.type === "checkbox") {
|
|
1577
1573
|
const l = this.values[e.name] || "";
|
|
1578
1574
|
let o = l ? l.split(",") : [];
|
|
1579
|
-
|
|
1580
|
-
} else if (
|
|
1581
|
-
if (!
|
|
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)
|
|
1582
1578
|
return;
|
|
1583
|
-
|
|
1579
|
+
t = r.value;
|
|
1584
1580
|
}
|
|
1585
|
-
this.values = Object.assign(Object.assign({}, this.values), { [e.name]:
|
|
1581
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: t }), e.name !== "password" && this.form.emit({
|
|
1586
1582
|
event: "change",
|
|
1587
1583
|
field: e.name,
|
|
1588
|
-
value:
|
|
1584
|
+
value: t,
|
|
1589
1585
|
message: `${e.name} updated`
|
|
1590
1586
|
//data: this.makeFormData()
|
|
1591
1587
|
});
|
|
1592
1588
|
}
|
|
1593
1589
|
handleInput(n, e) {
|
|
1594
|
-
const
|
|
1595
|
-
if (
|
|
1590
|
+
const r = n.target;
|
|
1591
|
+
if (r.type === "radio" && !r.checked)
|
|
1596
1592
|
return;
|
|
1597
|
-
const
|
|
1593
|
+
const t = r.value, l = Object.assign({}, this.errors), o = U(e, r.value, this.formEl);
|
|
1598
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({
|
|
1599
1595
|
event: "input",
|
|
1600
1596
|
field: e.name,
|
|
1601
|
-
value:
|
|
1597
|
+
value: t,
|
|
1602
1598
|
message: `${e.name} updated`
|
|
1603
1599
|
//data: this.makeFormData()
|
|
1604
1600
|
});
|
|
1605
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
|
+
}
|
|
1606
1613
|
handleSubmit() {
|
|
1607
1614
|
var n, e;
|
|
1608
1615
|
if (!this.isSubmitting) {
|
|
@@ -1637,81 +1644,42 @@ const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
|
1637
1644
|
}), this.errors = {}, this.formEl.reset(), this.isSubmitting = !1;
|
|
1638
1645
|
}
|
|
1639
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
|
+
}
|
|
1640
1664
|
async getData() {
|
|
1641
1665
|
return this.makeFormData();
|
|
1642
1666
|
}
|
|
1643
1667
|
render() {
|
|
1644
|
-
const n = this.parsedFields.filter((
|
|
1645
|
-
return i("form", { key: "
|
|
1646
|
-
var l, o;
|
|
1647
|
-
return this.isFieldVisible(t) ? i("eds-input-field", { key: r, name: t.name, id: `${this.name}_${t.name}`, label: t.label, placeholder: t.placeholder, value: this.values[t.name] || null, min: t.min, max: t.max, step: t.step, type: t.type, icon: t.icon || null, disabled: t.disabled, required: t.required, maxLength: t.maxlength, hint: t.hint, link: t.link, message: t.message, error: ((l = this.errors[t.name]) === null || l === void 0 ? void 0 : l.length) > 0, errorMessage: (o = this.errors[t.name]) === null || o === void 0 ? void 0 : o.join("<br />"), onInput: (a) => this.handleInput(a, t), onChangeNative: (a) => this.handleChange(a, t), class: r > 0 ? "mt-20" : "", options: t.options }) : null;
|
|
1648
|
-
})), this.formBtn && i("div", { key: "e0ab2f16ff4a677a2b09a1069212e374f6d6eff8", class: "mt-20" }, i("eds-button", { key: "781250d5e456a3f0176ade6e28356063c6981bb7", 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() })));
|
|
1649
1670
|
}
|
|
1650
1671
|
get el() {
|
|
1651
1672
|
return g(this);
|
|
1652
1673
|
}
|
|
1653
1674
|
static get watchers() {
|
|
1654
1675
|
return {
|
|
1655
|
-
fields: ["parseFields"]
|
|
1676
|
+
fields: ["parseFields"],
|
|
1677
|
+
groups: ["parseGroups"]
|
|
1656
1678
|
};
|
|
1657
1679
|
}
|
|
1658
1680
|
};
|
|
1659
|
-
|
|
1660
|
-
const
|
|
1661
|
-
constructor(n) {
|
|
1662
|
-
d(this, n), this.menuClose = h(this, "menuClose", 7), this.links = void 0, this.menuLinks = void 0, this.homeUrl = "/", this.inverseHeader = !1, this.isMenuOpen = !1;
|
|
1663
|
-
}
|
|
1664
|
-
/**
|
|
1665
|
-
* Listens for the toggleMenu event to open or close the menu.
|
|
1666
|
-
* This event is emitted by the eds-header component.
|
|
1667
|
-
*/
|
|
1668
|
-
handleToggleMenu(n) {
|
|
1669
|
-
this.isMenuOpen = n.detail;
|
|
1670
|
-
}
|
|
1671
|
-
/** Opens the menu */
|
|
1672
|
-
openMenu() {
|
|
1673
|
-
this.isMenuOpen = !0;
|
|
1674
|
-
}
|
|
1675
|
-
/** Closes the menu */
|
|
1676
|
-
closeMenu() {
|
|
1677
|
-
this.isMenuOpen = !1, this.menuClose.emit();
|
|
1678
|
-
}
|
|
1679
|
-
// Lifecycle method to add the resize event listener when component loads
|
|
1680
|
-
componentDidLoad() {
|
|
1681
|
-
window.addEventListener("resize", this.handleResize.bind(this));
|
|
1682
|
-
}
|
|
1683
|
-
// Lifecycle method to remove the resize event listener when component unloads
|
|
1684
|
-
disconnectedCallback() {
|
|
1685
|
-
window.removeEventListener("resize", this.handleResize.bind(this));
|
|
1686
|
-
}
|
|
1687
|
-
// Function to close the menu if screen width is larger than a defined breakpoint (1024px)
|
|
1688
|
-
handleResize() {
|
|
1689
|
-
window.innerWidth >= 1024 && (this.isMenuOpen = !1);
|
|
1690
|
-
}
|
|
1691
|
-
/**
|
|
1692
|
-
* Parses the `links` prop into an array of link objects.
|
|
1693
|
-
* Returns an empty array if parsing fails or if `links` is not a valid JSON string or object.
|
|
1694
|
-
*
|
|
1695
|
-
* @returns {any[]} Array of parsed link objects
|
|
1696
|
-
*/
|
|
1697
|
-
get parsedLinks() {
|
|
1698
|
-
return b(this.links);
|
|
1699
|
-
}
|
|
1700
|
-
/**
|
|
1701
|
-
* Parses the `menuLinks` prop into an array of link objects.
|
|
1702
|
-
* Returns an empty array if parsing fails or if `menuLinks` is not a valid JSON string or object.
|
|
1703
|
-
*
|
|
1704
|
-
* @returns {any[]} Array of parsed menu link objects
|
|
1705
|
-
*/
|
|
1706
|
-
get parsedMenuLinks() {
|
|
1707
|
-
return b(this.menuLinks);
|
|
1708
|
-
}
|
|
1709
|
-
render() {
|
|
1710
|
-
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;
|
|
1711
|
-
}
|
|
1712
|
-
};
|
|
1713
|
-
nn.style = Z;
|
|
1714
|
-
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}}", tn = en, rn = class {
|
|
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 {
|
|
1715
1683
|
constructor(n) {
|
|
1716
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;
|
|
1717
1685
|
}
|
|
@@ -1735,22 +1703,22 @@ const en = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
1735
1703
|
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
1736
1704
|
}
|
|
1737
1705
|
get parsedLinks() {
|
|
1738
|
-
return
|
|
1706
|
+
return x(this.links);
|
|
1739
1707
|
}
|
|
1740
1708
|
render() {
|
|
1741
1709
|
const n = {
|
|
1742
1710
|
default: "text-default bg-dark",
|
|
1743
1711
|
inverse: "text-default bg-inverse",
|
|
1744
1712
|
strong: "text-inverse bg-strongest"
|
|
1745
|
-
}, e = n[this.headerVariant] || n.default,
|
|
1746
|
-
return i("header", { key: "
|
|
1713
|
+
}, e = n[this.headerVariant] || n.default, r = this.headerVariant === "strong" ? "color-white" : "color";
|
|
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() })));
|
|
1747
1715
|
}
|
|
1748
1716
|
get hostEl() {
|
|
1749
1717
|
return g(this);
|
|
1750
1718
|
}
|
|
1751
1719
|
};
|
|
1752
|
-
|
|
1753
|
-
const
|
|
1720
|
+
Z.style = K;
|
|
1721
|
+
const ee = class {
|
|
1754
1722
|
constructor(n) {
|
|
1755
1723
|
d(this, n), this.TagName = null, this.icon = "arrow-right", this.class = "", this.IconComponent = null;
|
|
1756
1724
|
}
|
|
@@ -1776,7 +1744,7 @@ const se = class {
|
|
|
1776
1744
|
icon: ["iconChanged"]
|
|
1777
1745
|
};
|
|
1778
1746
|
}
|
|
1779
|
-
},
|
|
1747
|
+
}, nn = `/*
|
|
1780
1748
|
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
1781
1749
|
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
1782
1750
|
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
@@ -1858,7 +1826,7 @@ video {
|
|
|
1858
1826
|
|
|
1859
1827
|
.opacity-100 {
|
|
1860
1828
|
opacity: 1;
|
|
1861
|
-
}`,
|
|
1829
|
+
}`, en = nn, rn = class {
|
|
1862
1830
|
constructor(n) {
|
|
1863
1831
|
d(this, n), this.img = null, this.handleLoad = () => {
|
|
1864
1832
|
this.loaded = !0, this.showBg = !1;
|
|
@@ -1873,10 +1841,10 @@ video {
|
|
|
1873
1841
|
}
|
|
1874
1842
|
render() {
|
|
1875
1843
|
const n = {};
|
|
1876
|
-
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: {
|
|
1877
1845
|
"items-center justify-center": !0,
|
|
1878
1846
|
"effect-bg-pattern": this.lazyload && this.showBg
|
|
1879
|
-
} }, 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: {
|
|
1880
1848
|
"effect-opacity object-cover object-center": !0,
|
|
1881
1849
|
"opacity-100": this.loaded,
|
|
1882
1850
|
"opacity-0": !this.loaded
|
|
@@ -1886,12 +1854,12 @@ video {
|
|
|
1886
1854
|
return g(this);
|
|
1887
1855
|
}
|
|
1888
1856
|
};
|
|
1889
|
-
|
|
1890
|
-
const
|
|
1857
|
+
rn.style = en;
|
|
1858
|
+
const ie = class {
|
|
1891
1859
|
constructor(n) {
|
|
1892
1860
|
d(this, n), this.handleInput = (e) => {
|
|
1893
|
-
const
|
|
1894
|
-
this.innerVal =
|
|
1861
|
+
const r = e.target;
|
|
1862
|
+
this.innerVal = r.value, this.maxLength && this.type === "textarea" && (this.maxLengthReached = r.value.length >= this.maxLength);
|
|
1895
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;
|
|
1896
1864
|
}
|
|
1897
1865
|
onValueChanged(n) {
|
|
@@ -1905,7 +1873,7 @@ const de = class {
|
|
|
1905
1873
|
}
|
|
1906
1874
|
render() {
|
|
1907
1875
|
const n = !!this.icon, e = this.hasMessage || this.error ? `${this.name}-error` : "";
|
|
1908
|
-
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" ? {
|
|
1909
1877
|
min: this.min,
|
|
1910
1878
|
max: this.max,
|
|
1911
1879
|
step: this.step
|
|
@@ -1914,7 +1882,7 @@ const de = class {
|
|
|
1914
1882
|
input ${this.type === "radio" ? "input-radio" : this.type === "checkbox" ? "input-checkbox" : ""}
|
|
1915
1883
|
${n && this.type !== "radio" && this.type !== "checkbox" ? "input-icon pl-36" : ""}
|
|
1916
1884
|
${this.error ? "input-error" : ""}
|
|
1917
|
-
`, "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 }));
|
|
1918
1886
|
}
|
|
1919
1887
|
get el() {
|
|
1920
1888
|
return g(this);
|
|
@@ -1924,7 +1892,7 @@ const de = class {
|
|
|
1924
1892
|
value: ["onValueChanged"]
|
|
1925
1893
|
};
|
|
1926
1894
|
}
|
|
1927
|
-
},
|
|
1895
|
+
}, tn = `:root {
|
|
1928
1896
|
font-optical-sizing: auto;
|
|
1929
1897
|
}
|
|
1930
1898
|
html,
|
|
@@ -7753,6 +7721,12 @@ video {
|
|
|
7753
7721
|
content: '';
|
|
7754
7722
|
}
|
|
7755
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
|
+
}
|
|
7756
7730
|
.input-label {
|
|
7757
7731
|
font-family: var(--f-ui-04-fontFamily);
|
|
7758
7732
|
font-weight: var(--f-ui-04-fontWeight);
|
|
@@ -8624,6 +8598,10 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
8624
8598
|
-moz-column-gap: 0.125rem;
|
|
8625
8599
|
column-gap: 0.125rem;
|
|
8626
8600
|
}
|
|
8601
|
+
.gap-x-4 {
|
|
8602
|
+
-moz-column-gap: 0.25rem;
|
|
8603
|
+
column-gap: 0.25rem;
|
|
8604
|
+
}
|
|
8627
8605
|
.gap-x-8 {
|
|
8628
8606
|
-moz-column-gap: 0.5rem;
|
|
8629
8607
|
column-gap: 0.5rem;
|
|
@@ -9684,25 +9662,25 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9684
9662
|
}
|
|
9685
9663
|
}
|
|
9686
9664
|
|
|
9687
|
-
`,
|
|
9665
|
+
`, ln = tn, on = class {
|
|
9688
9666
|
constructor(n) {
|
|
9689
9667
|
d(this, n), this.edsinput = h(this, "edsinput", 7), this.edschange = h(this, "edschange", 7), this.handleNativeInput = (e) => {
|
|
9690
|
-
var
|
|
9691
|
-
if ((
|
|
9668
|
+
var r, t;
|
|
9669
|
+
if ((r = this.onInput) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9692
9670
|
const l = e.target;
|
|
9693
9671
|
let o = l.value;
|
|
9694
|
-
if (this.type === "checkbox" && ((
|
|
9672
|
+
if (this.type === "checkbox" && ((t = this.parsedOptions) === null || t === void 0 ? void 0 : t.length) > 0) {
|
|
9695
9673
|
const a = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
|
|
9696
9674
|
o = Array.from(a).filter((s) => s.checked).map((s) => s.value);
|
|
9697
9675
|
} else this.type === "checkbox" ? o = l.checked : (this.type, o = l.value);
|
|
9698
9676
|
this.edsinput.emit({ value: o });
|
|
9699
9677
|
}
|
|
9700
9678
|
}, this.handleNativeChange = (e) => {
|
|
9701
|
-
var
|
|
9702
|
-
if ((
|
|
9679
|
+
var r, t;
|
|
9680
|
+
if ((r = this.onChangeNative) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9703
9681
|
const l = e.target;
|
|
9704
9682
|
let o = l.value;
|
|
9705
|
-
if (this.type === "checkbox" && ((
|
|
9683
|
+
if (this.type === "checkbox" && ((t = this.parsedOptions) === null || t === void 0 ? void 0 : t.length) > 0) {
|
|
9706
9684
|
const a = this.hostEl.querySelectorAll(`input[type="checkbox"][name="${this.name}"]`);
|
|
9707
9685
|
o = Array.from(a).filter((s) => s.checked).map((s) => s.value);
|
|
9708
9686
|
} else this.type === "checkbox" ? o = l.checked : (this.type, o = l.value);
|
|
@@ -9726,8 +9704,8 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9726
9704
|
}
|
|
9727
9705
|
render() {
|
|
9728
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 } : {});
|
|
9729
|
-
return i("div", { key: "
|
|
9730
|
-
var e,
|
|
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" ? (() => {
|
|
9708
|
+
var e, r, t;
|
|
9731
9709
|
const l = {
|
|
9732
9710
|
name: n.name,
|
|
9733
9711
|
inputId: n.id || n.name,
|
|
@@ -9736,40 +9714,40 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9736
9714
|
onInput: n.onInput,
|
|
9737
9715
|
onChange: n.onChange
|
|
9738
9716
|
}, o = this.parsedOptions, a = typeof this.value == "string" ? parseFloat(this.value) : this.value || 0;
|
|
9739
|
-
return i("eds-input-range", Object.assign({}, l, { min: (e = o[0]) === null || e === void 0 ? void 0 : e.value, max: (
|
|
9740
|
-
})() : i("eds-input", Object.assign({}, n))), i("div", { key: "
|
|
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 })));
|
|
9741
9719
|
}
|
|
9742
9720
|
get hostEl() {
|
|
9743
9721
|
return g(this);
|
|
9744
9722
|
}
|
|
9745
9723
|
};
|
|
9746
|
-
|
|
9747
|
-
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 {
|
|
9748
9726
|
constructor(n) {
|
|
9749
9727
|
d(this, n), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
9750
9728
|
}
|
|
9751
9729
|
render() {
|
|
9752
|
-
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));
|
|
9753
9731
|
}
|
|
9754
9732
|
};
|
|
9755
|
-
|
|
9756
|
-
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 {
|
|
9757
9735
|
constructor(n) {
|
|
9758
9736
|
d(this, n), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
9759
9737
|
}
|
|
9760
9738
|
render() {
|
|
9761
|
-
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")));
|
|
9762
9740
|
}
|
|
9763
9741
|
};
|
|
9764
|
-
|
|
9765
|
-
const
|
|
9742
|
+
hn.style = gn;
|
|
9743
|
+
const re = class {
|
|
9766
9744
|
constructor(n) {
|
|
9767
9745
|
d(this, n), this.edsrange = h(this, "edsrange", 7), this.onInput = (e) => {
|
|
9768
|
-
const
|
|
9769
|
-
this.sliderVal = parseInt(
|
|
9746
|
+
const r = e.target;
|
|
9747
|
+
this.sliderVal = parseInt(r.value, 10);
|
|
9770
9748
|
}, this.onChange = (e) => {
|
|
9771
|
-
const
|
|
9772
|
-
this.sliderVal = parseInt(
|
|
9749
|
+
const r = e.target;
|
|
9750
|
+
this.sliderVal = parseInt(r.value, 10), this.edsrange.emit(this.sliderVal);
|
|
9773
9751
|
}, this.name = void 0, this.inputId = "range", this.disabled = !1, this.required = !1, this.min = 0, this.max = 100, this.step = 1, this.value = void 0, this.sliderVal = void 0;
|
|
9774
9752
|
}
|
|
9775
9753
|
componentWillLoad() {
|
|
@@ -9786,7 +9764,7 @@ const ce = class {
|
|
|
9786
9764
|
return this.inputElement;
|
|
9787
9765
|
}
|
|
9788
9766
|
render() {
|
|
9789
|
-
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));
|
|
9790
9768
|
}
|
|
9791
9769
|
get el() {
|
|
9792
9770
|
return g(this);
|
|
@@ -9796,7 +9774,7 @@ const ce = class {
|
|
|
9796
9774
|
value: ["onValueChange"]
|
|
9797
9775
|
};
|
|
9798
9776
|
}
|
|
9799
|
-
},
|
|
9777
|
+
}, te = class {
|
|
9800
9778
|
constructor(n) {
|
|
9801
9779
|
d(this, n), this.search = h(this, "search", 7), this.keydownListener = (e) => {
|
|
9802
9780
|
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), this.inputElement && !this.disabled && this.inputElement.focus());
|
|
@@ -9823,8 +9801,8 @@ const ce = class {
|
|
|
9823
9801
|
return this.inputElement;
|
|
9824
9802
|
}
|
|
9825
9803
|
render() {
|
|
9826
|
-
return i("div", { key: "
|
|
9827
|
-
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",
|
|
9828
9806
|
id: this.inputId || this.name,
|
|
9829
9807
|
name: this.name,
|
|
9830
9808
|
placeholder: this.placeholder,
|
|
@@ -9841,23 +9819,23 @@ const ce = class {
|
|
|
9841
9819
|
get el() {
|
|
9842
9820
|
return g(this);
|
|
9843
9821
|
}
|
|
9844
|
-
},
|
|
9822
|
+
}, le = class {
|
|
9845
9823
|
constructor(n) {
|
|
9846
9824
|
d(this, n), this.edsselect = h(this, "edsselect", 7), this.handleChange = (e) => {
|
|
9847
|
-
const
|
|
9848
|
-
this.edsselect.emit(
|
|
9825
|
+
const r = e.target;
|
|
9826
|
+
this.edsselect.emit(r.value);
|
|
9849
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;
|
|
9850
9828
|
}
|
|
9851
9829
|
render() {
|
|
9852
|
-
const n = this.inputId || this.name, e = this.placeholder ||
|
|
9853
|
-
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: {
|
|
9854
9832
|
input: !0,
|
|
9855
9833
|
"input-error": this.error,
|
|
9856
9834
|
"px-4": !0,
|
|
9857
9835
|
"py-2": !0
|
|
9858
|
-
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby":
|
|
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" })));
|
|
9859
9837
|
}
|
|
9860
|
-
},
|
|
9838
|
+
}, fn = `*,
|
|
9861
9839
|
::before,
|
|
9862
9840
|
::after {
|
|
9863
9841
|
box-sizing: border-box;
|
|
@@ -11094,7 +11072,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11094
11072
|
.lg\\:flex {
|
|
11095
11073
|
display: flex;
|
|
11096
11074
|
}
|
|
11097
|
-
}`,
|
|
11075
|
+
}`, bn = fn, xn = m([
|
|
11098
11076
|
"relative inline-flex justify-center items-center py-8 rounded-sm",
|
|
11099
11077
|
"effect-color effect-focus aria-disabled:text-lightest",
|
|
11100
11078
|
"cursor-pointer",
|
|
@@ -11219,7 +11197,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11219
11197
|
size: "small",
|
|
11220
11198
|
hasIcon: !1
|
|
11221
11199
|
}
|
|
11222
|
-
}),
|
|
11200
|
+
}), mn = class {
|
|
11223
11201
|
constructor(n) {
|
|
11224
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;
|
|
11225
11203
|
}
|
|
@@ -11227,7 +11205,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11227
11205
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
11228
11206
|
}
|
|
11229
11207
|
handleClick(n) {
|
|
11230
|
-
var e,
|
|
11208
|
+
var e, r;
|
|
11231
11209
|
if (this.disabled) {
|
|
11232
11210
|
n.preventDefault();
|
|
11233
11211
|
return;
|
|
@@ -11236,7 +11214,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11236
11214
|
category: "ui-component",
|
|
11237
11215
|
parentContext: this.parentContext,
|
|
11238
11216
|
tag: this.el.tagName.toLowerCase(),
|
|
11239
|
-
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((
|
|
11217
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((r = this.ariaLabel) === null || r === void 0 ? void 0 : r.toLowerCase()) || "",
|
|
11240
11218
|
action: "click"
|
|
11241
11219
|
});
|
|
11242
11220
|
}
|
|
@@ -11256,21 +11234,21 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11256
11234
|
`, icon: this.icon })) : null;
|
|
11257
11235
|
}
|
|
11258
11236
|
render() {
|
|
11259
|
-
const n = this.disabled ? "span" : "a", e =
|
|
11237
|
+
const n = this.disabled ? "span" : "a", e = xn({
|
|
11260
11238
|
intent: this.intent,
|
|
11261
11239
|
size: this.getLinkSize(),
|
|
11262
11240
|
iconSmall: this.iconSmall,
|
|
11263
11241
|
isActive: this.current,
|
|
11264
11242
|
hasIcon: !!this.icon
|
|
11265
|
-
}),
|
|
11266
|
-
return i(n, { key: "
|
|
11243
|
+
}), r = this.ariaLabel || this.label || "link", t = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
|
|
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()));
|
|
11267
11245
|
}
|
|
11268
11246
|
get el() {
|
|
11269
11247
|
return g(this);
|
|
11270
11248
|
}
|
|
11271
11249
|
};
|
|
11272
|
-
|
|
11273
|
-
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 {
|
|
11274
11252
|
constructor(n) {
|
|
11275
11253
|
d(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
|
|
11276
11254
|
}
|
|
@@ -11296,144 +11274,35 @@ const wn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11296
11274
|
getLogo() {
|
|
11297
11275
|
const e = {
|
|
11298
11276
|
horizontal: {
|
|
11299
|
-
color:
|
|
11300
|
-
black:
|
|
11301
|
-
"color-white":
|
|
11302
|
-
white:
|
|
11303
|
-
"no-bg":
|
|
11277
|
+
color: y,
|
|
11278
|
+
black: k,
|
|
11279
|
+
"color-white": z,
|
|
11280
|
+
white: C,
|
|
11281
|
+
"no-bg": S
|
|
11304
11282
|
},
|
|
11305
11283
|
vertical: {
|
|
11306
|
-
color:
|
|
11307
|
-
black:
|
|
11308
|
-
"color-white":
|
|
11309
|
-
white:
|
|
11310
|
-
"no-bg":
|
|
11284
|
+
color: E,
|
|
11285
|
+
black: F,
|
|
11286
|
+
"color-white": L,
|
|
11287
|
+
white: I,
|
|
11288
|
+
"no-bg": A
|
|
11311
11289
|
}
|
|
11312
11290
|
}[this.orientation];
|
|
11313
11291
|
if (!e)
|
|
11314
|
-
return
|
|
11315
|
-
const
|
|
11316
|
-
return
|
|
11292
|
+
return y;
|
|
11293
|
+
const r = e[this.type];
|
|
11294
|
+
return r || e.color;
|
|
11317
11295
|
}
|
|
11318
11296
|
render() {
|
|
11319
11297
|
const n = this.getLogo();
|
|
11320
|
-
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 }));
|
|
11321
11299
|
}
|
|
11322
11300
|
get el() {
|
|
11323
11301
|
return g(this);
|
|
11324
11302
|
}
|
|
11325
11303
|
};
|
|
11326
|
-
|
|
11327
|
-
const
|
|
11328
|
-
constructor(n) {
|
|
11329
|
-
d(this, n), this.heading = "", this.truncate = 1, this.position = "middle", this.inverseHeader = !1, this.isOpen = !1;
|
|
11330
|
-
}
|
|
11331
|
-
getTruncateClass() {
|
|
11332
|
-
return this.truncate ? `line-clamp-${this.truncate}` : "";
|
|
11333
|
-
}
|
|
11334
|
-
/**
|
|
11335
|
-
* Returns the Tailwind CSS classes to position the modal based on the `position` prop.
|
|
11336
|
-
*
|
|
11337
|
-
* @private
|
|
11338
|
-
* @returns {string} The concatenated CSS classes for modal positioning.
|
|
11339
|
-
*/
|
|
11340
|
-
getModalPositionClasses() {
|
|
11341
|
-
switch (this.position) {
|
|
11342
|
-
case "top":
|
|
11343
|
-
return [
|
|
11344
|
-
// mobile: pinned to top, full-width
|
|
11345
|
-
"top-0",
|
|
11346
|
-
"left-0",
|
|
11347
|
-
"w-full",
|
|
11348
|
-
// desktop: half-width centred and offset down
|
|
11349
|
-
"md:left-1/2",
|
|
11350
|
-
"md:w-auto",
|
|
11351
|
-
"md:-translate-x-1/2",
|
|
11352
|
-
"md:top-20"
|
|
11353
|
-
].join(" ");
|
|
11354
|
-
case "bottom":
|
|
11355
|
-
return ["bottom-0", "left-0", "w-full", "md:left-1/2", "md:w-auto", "md:-translate-x-1/2", "md:bottom-20"].join(" ");
|
|
11356
|
-
case "middle":
|
|
11357
|
-
default:
|
|
11358
|
-
return [
|
|
11359
|
-
// mobile: full-width, start from top with a little padding
|
|
11360
|
-
"top-0",
|
|
11361
|
-
"left-0",
|
|
11362
|
-
"w-full",
|
|
11363
|
-
"pt-4",
|
|
11364
|
-
// desktop: centred both axes
|
|
11365
|
-
"md:left-1/2",
|
|
11366
|
-
"md:top-1/2",
|
|
11367
|
-
"md:w-auto",
|
|
11368
|
-
"md:-translate-x-1/2",
|
|
11369
|
-
"md:-translate-y-1/2"
|
|
11370
|
-
].join(" ");
|
|
11371
|
-
}
|
|
11372
|
-
}
|
|
11373
|
-
/**
|
|
11374
|
-
* Opens the modal.
|
|
11375
|
-
*/
|
|
11376
|
-
async open() {
|
|
11377
|
-
var n;
|
|
11378
|
-
this.isOpen = !0, f({
|
|
11379
|
-
category: "ui-component",
|
|
11380
|
-
parentContext: null,
|
|
11381
|
-
tag: this.el.tagName.toLowerCase(),
|
|
11382
|
-
name: ((n = this.heading) === null || n === void 0 ? void 0 : n.toLowerCase()) || "",
|
|
11383
|
-
action: "opened"
|
|
11384
|
-
});
|
|
11385
|
-
}
|
|
11386
|
-
/**
|
|
11387
|
-
* Closes the modal.
|
|
11388
|
-
*/
|
|
11389
|
-
async close() {
|
|
11390
|
-
var n;
|
|
11391
|
-
this.isOpen = !1, f({
|
|
11392
|
-
category: "ui-component",
|
|
11393
|
-
parentContext: null,
|
|
11394
|
-
tag: this.el.tagName.toLowerCase(),
|
|
11395
|
-
name: ((n = this.heading) === null || n === void 0 ? void 0 : n.toLowerCase()) || "",
|
|
11396
|
-
action: "closed"
|
|
11397
|
-
});
|
|
11398
|
-
}
|
|
11399
|
-
/**
|
|
11400
|
-
* Toggles the modal open or closed.
|
|
11401
|
-
*/
|
|
11402
|
-
async toggle() {
|
|
11403
|
-
this.isOpen = !this.isOpen;
|
|
11404
|
-
}
|
|
11405
|
-
/**
|
|
11406
|
-
* Listens for global custom events to open the modal.
|
|
11407
|
-
*/
|
|
11408
|
-
handleGlobalOpen() {
|
|
11409
|
-
this.open();
|
|
11410
|
-
}
|
|
11411
|
-
/**
|
|
11412
|
-
* Listens for global custom events to close the modal.
|
|
11413
|
-
*/
|
|
11414
|
-
handleGlobalClose() {
|
|
11415
|
-
this.close();
|
|
11416
|
-
}
|
|
11417
|
-
/**
|
|
11418
|
-
* Closes the modal when the Escape key is pressed.
|
|
11419
|
-
*/
|
|
11420
|
-
handleKeyDown(n) {
|
|
11421
|
-
this.isOpen && n.key === "Escape" && this.close();
|
|
11422
|
-
}
|
|
11423
|
-
render() {
|
|
11424
|
-
const n = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
11425
|
-
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", {
|
|
11426
|
-
key: "6430a5e2734f948e40ccdc7bfcbd6e934070ff25",
|
|
11427
|
-
class: "fixed inset-0 bg-dark bg-opacity-90",
|
|
11428
|
-
onClick: () => this.close()
|
|
11429
|
-
}), 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" }))));
|
|
11430
|
-
}
|
|
11431
|
-
get el() {
|
|
11432
|
-
return g(this);
|
|
11433
|
-
}
|
|
11434
|
-
};
|
|
11435
|
-
En.style = Sn;
|
|
11436
|
-
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 {
|
|
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 {
|
|
11437
11306
|
constructor(n) {
|
|
11438
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 = [];
|
|
11439
11308
|
}
|
|
@@ -11505,17 +11374,17 @@ const Fn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11505
11374
|
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
11506
11375
|
*/
|
|
11507
11376
|
getPaginationGenerator(n, e) {
|
|
11508
|
-
const
|
|
11377
|
+
const t = [];
|
|
11509
11378
|
if (e <= 5)
|
|
11510
11379
|
for (let l = 1; l <= e; l++)
|
|
11511
|
-
|
|
11380
|
+
t.push(l);
|
|
11512
11381
|
else {
|
|
11513
|
-
|
|
11382
|
+
t.push(1), n - 1 > 2 && t.push("...");
|
|
11514
11383
|
for (let l = Math.max(2, n - 1); l <= Math.min(e - 1, n + 1); l++)
|
|
11515
|
-
|
|
11516
|
-
n + 1 < e - 1 &&
|
|
11384
|
+
t.push(l);
|
|
11385
|
+
n + 1 < e - 1 && t.push("..."), t.push(e);
|
|
11517
11386
|
}
|
|
11518
|
-
return
|
|
11387
|
+
return t;
|
|
11519
11388
|
}
|
|
11520
11389
|
/**
|
|
11521
11390
|
* Formats the current page results information for display
|
|
@@ -11531,19 +11400,19 @@ const Fn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11531
11400
|
*/
|
|
11532
11401
|
handlePageClick(n, e) {
|
|
11533
11402
|
if (this.mode !== "navigator" && (n.preventDefault(), e !== this.currentPage)) {
|
|
11534
|
-
this.links = this.links.map((
|
|
11535
|
-
const
|
|
11403
|
+
this.links = this.links.map((t) => typeof t == "object" ? Object.assign(Object.assign({}, t), { current: parseInt(t.label) === e }) : t);
|
|
11404
|
+
const r = new CustomEvent("page", {
|
|
11536
11405
|
detail: e,
|
|
11537
11406
|
bubbles: !0,
|
|
11538
11407
|
composed: !0
|
|
11539
11408
|
});
|
|
11540
|
-
this.hostEl.dispatchEvent(
|
|
11409
|
+
this.hostEl.dispatchEvent(r), this.currentPage = e;
|
|
11541
11410
|
}
|
|
11542
11411
|
}
|
|
11543
11412
|
render() {
|
|
11544
|
-
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) => {
|
|
11545
11414
|
this.mode === "default" && (this.isFirstPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) - 1));
|
|
11546
|
-
} })), 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: (
|
|
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) => {
|
|
11547
11416
|
this.mode === "default" && (this.isLastPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) + 1));
|
|
11548
11417
|
} })))) : null);
|
|
11549
11418
|
}
|
|
@@ -11557,54 +11426,65 @@ const Fn = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(
|
|
|
11557
11426
|
};
|
|
11558
11427
|
}
|
|
11559
11428
|
};
|
|
11560
|
-
|
|
11561
|
-
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 {
|
|
11562
11431
|
constructor(n) {
|
|
11563
|
-
d(this, n), this.
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
},
|
|
11574
|
-
{
|
|
11575
|
-
label: "Facebook",
|
|
11576
|
-
url: "https://www.facebook.com/people/Ebrains_eu/100046659909324/",
|
|
11577
|
-
icon: "facebook"
|
|
11578
|
-
},
|
|
11579
|
-
{
|
|
11580
|
-
label: "Youtube",
|
|
11581
|
-
url: "https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",
|
|
11582
|
-
icon: "youtube"
|
|
11583
|
-
},
|
|
11584
|
-
{
|
|
11585
|
-
label: "Mastodon",
|
|
11586
|
-
url: "https://mastodon.social/@ebrains",
|
|
11587
|
-
icon: "mastodon"
|
|
11588
|
-
},
|
|
11589
|
-
{
|
|
11590
|
-
label: "Bluesky",
|
|
11591
|
-
url: "https://bsky.app/profile/ebrains.bsky.social",
|
|
11592
|
-
icon: "bluesky"
|
|
11593
|
-
}
|
|
11594
|
-
], 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;
|
|
11433
|
+
}
|
|
11434
|
+
/**
|
|
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
|
+
});
|
|
11595
11442
|
}
|
|
11596
11443
|
/**
|
|
11597
|
-
*
|
|
11598
|
-
*
|
|
11444
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
11445
|
+
* This event provides context information about the breadcrumb component.
|
|
11599
11446
|
*
|
|
11600
|
-
* @
|
|
11447
|
+
* @param btnElement - The link element to which the event will be dispatched.
|
|
11601
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.
|
|
11461
|
+
*/
|
|
11462
|
+
handleClick(n) {
|
|
11463
|
+
this.selectedRating = n, this.rating.emit(n);
|
|
11464
|
+
}
|
|
11602
11465
|
render() {
|
|
11603
|
-
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);
|
|
11604
11484
|
}
|
|
11605
11485
|
};
|
|
11606
|
-
|
|
11607
|
-
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 {
|
|
11608
11488
|
constructor(n) {
|
|
11609
11489
|
d(this, n), this.step = h(this, "step", 7), this.handleNext = () => {
|
|
11610
11490
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
@@ -11620,16 +11500,16 @@ const Wn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11620
11500
|
var n;
|
|
11621
11501
|
if (this.type === "linear") {
|
|
11622
11502
|
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11623
|
-
e == null || e.forEach((
|
|
11624
|
-
this.emitContext(
|
|
11503
|
+
e == null || e.forEach((r) => {
|
|
11504
|
+
this.emitContext(r);
|
|
11625
11505
|
});
|
|
11626
11506
|
}
|
|
11627
11507
|
}
|
|
11628
11508
|
activeStepChanged(n) {
|
|
11629
11509
|
setTimeout(() => {
|
|
11630
11510
|
var e;
|
|
11631
|
-
const
|
|
11632
|
-
|
|
11511
|
+
const r = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
11512
|
+
r && r.querySelectorAll("eds-button").forEach((l) => {
|
|
11633
11513
|
this.emitContext(l);
|
|
11634
11514
|
});
|
|
11635
11515
|
}, 50);
|
|
@@ -11656,11 +11536,11 @@ const Wn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11656
11536
|
* Parse the JSON string into an array of steps.
|
|
11657
11537
|
*/
|
|
11658
11538
|
get parsedSteps() {
|
|
11659
|
-
return
|
|
11539
|
+
return x(this.steps);
|
|
11660
11540
|
}
|
|
11661
11541
|
render() {
|
|
11662
11542
|
const n = this.parsedSteps;
|
|
11663
|
-
return this.type === "linear" ? i("div", null, i("div", { class: "steps" }, n.map((e,
|
|
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 }))))));
|
|
11664
11544
|
}
|
|
11665
11545
|
get el() {
|
|
11666
11546
|
return g(this);
|
|
@@ -11671,8 +11551,8 @@ const Wn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11671
11551
|
};
|
|
11672
11552
|
}
|
|
11673
11553
|
};
|
|
11674
|
-
|
|
11675
|
-
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 {
|
|
11676
11556
|
constructor(n) {
|
|
11677
11557
|
d(this, n), this.step = h(this, "step", 7), this.handleNext = () => {
|
|
11678
11558
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
@@ -11684,16 +11564,16 @@ const On = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11684
11564
|
var n;
|
|
11685
11565
|
if (this.type === "linear") {
|
|
11686
11566
|
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11687
|
-
e == null || e.forEach((
|
|
11688
|
-
this.emitContext(
|
|
11567
|
+
e == null || e.forEach((r) => {
|
|
11568
|
+
this.emitContext(r);
|
|
11689
11569
|
});
|
|
11690
11570
|
}
|
|
11691
11571
|
}
|
|
11692
11572
|
activeStepChanged(n) {
|
|
11693
11573
|
setTimeout(() => {
|
|
11694
11574
|
var e;
|
|
11695
|
-
const
|
|
11696
|
-
|
|
11575
|
+
const r = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
11576
|
+
r && r.querySelectorAll("eds-button").forEach((l) => {
|
|
11697
11577
|
this.emitContext(l);
|
|
11698
11578
|
});
|
|
11699
11579
|
}, 50);
|
|
@@ -11720,13 +11600,13 @@ const On = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11720
11600
|
* Parses the steps property into an array of Step objects.
|
|
11721
11601
|
*/
|
|
11722
11602
|
get parsedSteps() {
|
|
11723
|
-
return
|
|
11603
|
+
return x(this.steps);
|
|
11724
11604
|
}
|
|
11725
11605
|
render() {
|
|
11726
11606
|
const n = this.parsedSteps;
|
|
11727
|
-
return i("div", { key: "bbcec2dd9a5096eb0cecf0d413892e5708822f52", class: this.articleClasses() }, this.imageSrc ? i("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, i("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" })) : this.message && i("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, i("div", { class: "p-24" }, i("span", { class: "text-inverse f-heading-04 " }, this.message))), i("div", { key: "db0618aad7d5986fcb0889f1c439be73f83a00df", class: "p-8" }, this.type === "linear" ? i("div", { class: "steps" }, n.map((e,
|
|
11607
|
+
return i("div", { key: "bbcec2dd9a5096eb0cecf0d413892e5708822f52", class: this.articleClasses() }, this.imageSrc ? i("div", { class: "w-full mb-12 rounded-t-lg overflow-hidden border-2" }, i("eds-img", { src: this.imageSrc, width: this.imageWidth, "with-bg": "true", "lazy-load": "true", alt: "Step illustration" })) : this.message && i("div", { class: "w-full bg-[#00A595] rounded-t-lg border-2" }, i("div", { class: "p-24" }, i("span", { class: "text-inverse f-heading-04 " }, this.message))), i("div", { key: "db0618aad7d5986fcb0889f1c439be73f83a00df", class: "p-8" }, this.type === "linear" ? i("div", { class: "steps" }, n.map((e, r) => i("div", { class: r === 0 ? "step" : "step space-y-16", 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" }))))) : (
|
|
11728
11608
|
// Static mode: show all steps with their content.
|
|
11729
|
-
i("div", { class: "steps space-y-8" }, n.map((e,
|
|
11609
|
+
i("div", { class: "steps space-y-8" }, n.map((e, r) => i("div", { class: "step", key: r }, i("h3", { onClick: () => this.handleStepClick(r) }, 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 }))))))
|
|
11730
11610
|
)));
|
|
11731
11611
|
}
|
|
11732
11612
|
get el() {
|
|
@@ -11738,8 +11618,8 @@ const On = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11738
11618
|
};
|
|
11739
11619
|
}
|
|
11740
11620
|
};
|
|
11741
|
-
|
|
11742
|
-
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 {
|
|
11743
11623
|
constructor(n) {
|
|
11744
11624
|
d(this, n), this.rowaction = h(this, "rowaction", 7), this.handleResize = () => {
|
|
11745
11625
|
this.updateContainerWidth();
|
|
@@ -11775,7 +11655,7 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11775
11655
|
}
|
|
11776
11656
|
parseData() {
|
|
11777
11657
|
try {
|
|
11778
|
-
this.tbData =
|
|
11658
|
+
this.tbData = x(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
11779
11659
|
} catch (n) {
|
|
11780
11660
|
console.error("Failed to parse data:", n), this.tbData = [];
|
|
11781
11661
|
}
|
|
@@ -11823,33 +11703,33 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11823
11703
|
this.searchQuery = n.target.value, this.currentPage = 1;
|
|
11824
11704
|
}
|
|
11825
11705
|
renderCell(n, e) {
|
|
11826
|
-
var
|
|
11827
|
-
const
|
|
11828
|
-
return
|
|
11706
|
+
var r;
|
|
11707
|
+
const t = (r = this.parsedConfig[e]) === null || r === void 0 ? void 0 : r.format;
|
|
11708
|
+
return t === "uppercase" ? n == null ? void 0 : n.toString().toUpperCase() : t === "svg" ? i("div", { innerHTML: n }) : t === "bold" ? i("strong", null, n) : t === "code" ? i("code", null, n) : n;
|
|
11829
11709
|
}
|
|
11830
11710
|
/**
|
|
11831
11711
|
* Renders one action (button or checkbox) for a specific action‐name.
|
|
11832
11712
|
* Used by the “Actions” column below.
|
|
11833
11713
|
*/
|
|
11834
11714
|
renderSingleActionCell(n, e) {
|
|
11835
|
-
var
|
|
11836
|
-
const
|
|
11715
|
+
var r;
|
|
11716
|
+
const t = this.parsedActions.find((o) => o.name === n);
|
|
11837
11717
|
if (this.actionTemplate)
|
|
11838
11718
|
return this.actionTemplate(e);
|
|
11839
|
-
if ((
|
|
11840
|
-
const o = (
|
|
11841
|
-
return i("eds-input-field", { name: `chc-${n}`, label:
|
|
11719
|
+
if ((t.type || "button") === "checkbox") {
|
|
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) });
|
|
11842
11722
|
}
|
|
11843
|
-
return i("eds-link", { label:
|
|
11723
|
+
return i("eds-link", { label: t.label, intent: "weak", onClick: () => this.emitAction(t.name, e) });
|
|
11844
11724
|
}
|
|
11845
|
-
emitAction(n, e,
|
|
11725
|
+
emitAction(n, e, r) {
|
|
11846
11726
|
f({
|
|
11847
11727
|
category: "ui-component",
|
|
11848
11728
|
parentContext: null,
|
|
11849
11729
|
tag: `${this.hostEl.tagName.toLowerCase()}/action`,
|
|
11850
11730
|
name: n,
|
|
11851
11731
|
action: "click"
|
|
11852
|
-
}), this.rowaction.emit({ action: n, row: e, checked: !!
|
|
11732
|
+
}), this.rowaction.emit({ action: n, row: e, checked: !!r });
|
|
11853
11733
|
}
|
|
11854
11734
|
shouldEnablePagination() {
|
|
11855
11735
|
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
@@ -11872,14 +11752,14 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11872
11752
|
return n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
|
11873
11753
|
}
|
|
11874
11754
|
render() {
|
|
11875
|
-
const n = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.containerWidth || 400, e = this.getVisibleColumnsCount(),
|
|
11876
|
-
return i("div", { key: "
|
|
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);
|
|
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) => {
|
|
11877
11757
|
var a;
|
|
11878
|
-
return o === "actions" ? i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${
|
|
11879
|
-
}))), i("tbody", { key: "
|
|
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) => {
|
|
11880
11760
|
var s;
|
|
11881
|
-
return a === "actions" ? i("td", { class: "text-center border border-softer m-0 f-ui-02 break-words actions-cell", style: { minWidth: `${
|
|
11882
|
-
})))))), this.shouldEnablePagination() && i("div", { key: "
|
|
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" })));
|
|
11883
11763
|
}
|
|
11884
11764
|
get hostEl() {
|
|
11885
11765
|
return g(this);
|
|
@@ -11892,8 +11772,8 @@ const Dn = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.
|
|
|
11892
11772
|
};
|
|
11893
11773
|
}
|
|
11894
11774
|
};
|
|
11895
|
-
|
|
11896
|
-
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 {
|
|
11897
11777
|
constructor(n) {
|
|
11898
11778
|
d(this, n), this.tab = h(this, "tab", 7), this.tabCva = m([
|
|
11899
11779
|
"relative py-12",
|
|
@@ -11939,7 +11819,7 @@ const Nn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11939
11819
|
* @returns {any[]} Array of parsed link objects
|
|
11940
11820
|
*/
|
|
11941
11821
|
parseTabs() {
|
|
11942
|
-
this.parsedTabs =
|
|
11822
|
+
this.parsedTabs = x(this.tabs);
|
|
11943
11823
|
}
|
|
11944
11824
|
componentDidLoad() {
|
|
11945
11825
|
this.scrollToActiveTab();
|
|
@@ -11958,16 +11838,16 @@ const Nn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11958
11838
|
}, 316);
|
|
11959
11839
|
}
|
|
11960
11840
|
getTabOptions(n, e) {
|
|
11961
|
-
const
|
|
11841
|
+
const r = n ? "center" : this.activeIndex === -1 && e === 0 ? "first" : e < this.activeIndex ? "left" : "right";
|
|
11962
11842
|
return Object.assign({ class: this.tabCva({
|
|
11963
11843
|
active: n,
|
|
11964
|
-
position:
|
|
11844
|
+
position: r
|
|
11965
11845
|
}), style: {
|
|
11966
|
-
zIndex: `${n ? this.parsedTabs.length + 99 :
|
|
11846
|
+
zIndex: `${n ? this.parsedTabs.length + 99 : r === "left" ? e : this.parsedTabs.length + 1 - e}`
|
|
11967
11847
|
} }, n ? { "data-tab-active": "true" } : {});
|
|
11968
11848
|
}
|
|
11969
11849
|
handleTabClick(n, e) {
|
|
11970
|
-
this.activeIndex = n, this.parsedTabs = this.parsedTabs.map((
|
|
11850
|
+
this.activeIndex = n, this.parsedTabs = this.parsedTabs.map((r, t) => Object.assign(Object.assign({}, r), { active: t === n })), this.tab.emit({ tabId: this.identifier, index: n, name: e }), f({
|
|
11971
11851
|
category: "ui-component",
|
|
11972
11852
|
tag: this.el.tagName.toLowerCase(),
|
|
11973
11853
|
name: (e == null ? void 0 : e.toLowerCase()) || "",
|
|
@@ -11975,10 +11855,10 @@ const Nn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11975
11855
|
});
|
|
11976
11856
|
}
|
|
11977
11857
|
render() {
|
|
11978
|
-
return i("div", { key: "
|
|
11979
|
-
const
|
|
11980
|
-
return i(
|
|
11981
|
-
}))), 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) => {
|
|
11859
|
+
const r = n.active ? "span" : "a", t = this.getTabOptions(n.active, e);
|
|
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);
|
|
11861
|
+
}))), i("div", { key: "82d6a43a9c326b6be73c81205201b18f148641ad", class: "tab-panels" }, this.parsedTabs.map((n, e) => i("div", { hidden: e !== this.activeIndex }, i("slot", { name: `panel-${e}` })))));
|
|
11982
11862
|
}
|
|
11983
11863
|
get el() {
|
|
11984
11864
|
return g(this);
|
|
@@ -11989,8 +11869,8 @@ const Nn = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11989
11869
|
};
|
|
11990
11870
|
}
|
|
11991
11871
|
};
|
|
11992
|
-
|
|
11993
|
-
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(
|
|
11994
11874
|
["border-2 rounded-pill"],
|
|
11995
11875
|
// Base classes
|
|
11996
11876
|
{
|
|
@@ -12018,19 +11898,19 @@ const Vn = ".f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-u
|
|
|
12018
11898
|
size: "small"
|
|
12019
11899
|
}
|
|
12020
11900
|
}
|
|
12021
|
-
),
|
|
11901
|
+
), Rn = class {
|
|
12022
11902
|
constructor(n) {
|
|
12023
11903
|
d(this, n), this.label = void 0, this.intent = "default", this.size = "small";
|
|
12024
11904
|
}
|
|
12025
11905
|
render() {
|
|
12026
|
-
const n =
|
|
12027
|
-
return i("span", { key: "
|
|
11906
|
+
const n = qn({ intent: this.intent, size: this.size });
|
|
11907
|
+
return i("span", { key: "153cb5a6ab669555dd8e5815413dc0d1be5bee6d", class: n }, this.label);
|
|
12028
11908
|
}
|
|
12029
11909
|
};
|
|
12030
|
-
|
|
12031
|
-
const
|
|
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),
|
|
12032
11912
|
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
12033
|
-
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)}`,
|
|
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"], {
|
|
12034
11914
|
variants: {
|
|
12035
11915
|
intent: {
|
|
12036
11916
|
default: "bg-dark text-light",
|
|
@@ -12042,7 +11922,7 @@ const Gn = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:
|
|
|
12042
11922
|
defaultVariants: {
|
|
12043
11923
|
intent: "default"
|
|
12044
11924
|
}
|
|
12045
|
-
}),
|
|
11925
|
+
}), Vn = class {
|
|
12046
11926
|
constructor(n) {
|
|
12047
11927
|
d(this, n), this.toast = h(this, "toast", 7), this.dismissToast = () => {
|
|
12048
11928
|
this.toast.emit({ visible: !1, label: "dismissed" }), this.visible = !1;
|
|
@@ -12076,15 +11956,15 @@ const Gn = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:
|
|
|
12076
11956
|
render() {
|
|
12077
11957
|
if (!this.visible)
|
|
12078
11958
|
return null;
|
|
12079
|
-
const n =
|
|
11959
|
+
const n = Mn({ intent: this.intent });
|
|
12080
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" })));
|
|
12081
11961
|
}
|
|
12082
11962
|
get el() {
|
|
12083
11963
|
return g(this);
|
|
12084
11964
|
}
|
|
12085
11965
|
};
|
|
12086
|
-
|
|
12087
|
-
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 {
|
|
12088
11968
|
constructor(n) {
|
|
12089
11969
|
d(this, n), this.user = void 0;
|
|
12090
11970
|
}
|
|
@@ -12103,47 +11983,44 @@ const Zn = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
12103
11983
|
async componentWillLoad() {
|
|
12104
11984
|
}
|
|
12105
11985
|
get initials() {
|
|
12106
|
-
var n, e,
|
|
11986
|
+
var n, e, r, t;
|
|
12107
11987
|
const l = this.parsedUser;
|
|
12108
|
-
return `${((n = l.given_name) === null || n === void 0 ? void 0 : n.charAt(0)) || ""}${((e = l.family_name) === null || e === void 0 ? void 0 : e.charAt(0)) || ""}`.toUpperCase() || ((
|
|
11988
|
+
return `${((n = l.given_name) === null || n === void 0 ? void 0 : n.charAt(0)) || ""}${((e = l.family_name) === null || e === void 0 ? void 0 : e.charAt(0)) || ""}`.toUpperCase() || ((t = (r = l.name) === null || r === void 0 ? void 0 : r.charAt(0)) === null || t === void 0 ? void 0 : t.toUpperCase()) || "";
|
|
12109
11989
|
}
|
|
12110
11990
|
render() {
|
|
12111
11991
|
const n = this.parsedUser;
|
|
12112
|
-
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" }))))));
|
|
12113
11993
|
}
|
|
12114
11994
|
get hostEl() {
|
|
12115
11995
|
return g(this);
|
|
12116
11996
|
}
|
|
12117
11997
|
};
|
|
12118
|
-
|
|
11998
|
+
Xn.style = Yn;
|
|
12119
11999
|
export {
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
rn as
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
|
|
12141
|
-
|
|
12142
|
-
|
|
12143
|
-
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
Xn as eds_tag,
|
|
12147
|
-
Kn as eds_toast,
|
|
12148
|
-
ee as eds_user
|
|
12000
|
+
W as eds_avatar,
|
|
12001
|
+
O as eds_block_break,
|
|
12002
|
+
D as eds_button,
|
|
12003
|
+
B as eds_dropdown,
|
|
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
|
|
12149
12026
|
};
|