@ebrains/vue 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{color-primary-palette_6.entry-CfNmHzNO.mjs → color-primary-palette_6.entry-ATs14_8N.mjs} +1 -1
- package/{color-primary-palette_6.entry-c48Fqrz0.js → color-primary-palette_6.entry-DEKKtdmx.js} +1 -1
- package/{components-section.entry-3yJF6nRH.js → components-section.entry-BeJviBek.js} +2 -2
- package/{components-section.entry-oQTYayXm.mjs → components-section.entry-CIhTwzGP.mjs} +2 -2
- package/{correct-use-of-colors.entry-DEdyB_h5.js → correct-use-of-colors.entry-B7OZy6GP.js} +1 -1
- package/{correct-use-of-colors.entry-7fOSokhJ.mjs → correct-use-of-colors.entry-DUWE69EP.mjs} +1 -1
- package/{docs-palettes.entry-Bz96UO-K.mjs → docs-palettes.entry-h64S6-A4.mjs} +1 -1
- package/{docs-palettes.entry-6ekOz4GT.js → docs-palettes.entry-mgW1Rez8.js} +1 -1
- package/{docs-tokens.entry-D-hRYpqk.mjs → docs-tokens.entry-8fIdMfiG.mjs} +1 -1
- package/{docs-tokens.entry-DjHB8v2C.js → docs-tokens.entry-lcA48bSL.js} +1 -1
- package/{eds-accordion.entry-D1L8fv2r.mjs → eds-accordion.entry-DUOVoYgQ.mjs} +3 -3
- package/{eds-accordion.entry-Czj2ZwpQ.js → eds-accordion.entry-DcBD8nlx.js} +2 -2
- package/{eds-alert.entry-DAeVRXua.mjs → eds-alert.entry-D5Itlbb1.mjs} +3 -3
- package/{eds-alert.entry-BqEeR0Xw.js → eds-alert.entry-DEUTt8yK.js} +2 -2
- package/{eds-app-root.entry-BrJeEAVb.js → eds-app-root.entry-CIXLfod1.js} +1 -1
- package/{eds-app-root.entry-BBbgNK8b.mjs → eds-app-root.entry-DdTcthz6.mjs} +1 -1
- package/{eds-avatar_34.entry-iuvkwQW_.js → eds-avatar_28.entry-B8onWfVW.js} +9 -14
- package/{eds-avatar_34.entry-1U84FvGQ.mjs → eds-avatar_28.entry-D_qLn5o3.mjs} +577 -616
- package/eds-breadcrumb.entry-BW9K7V4U.js +1 -0
- package/eds-breadcrumb.entry-DsdlQ4_L.mjs +104 -0
- package/eds-card-desc_2.entry-D5DCz71U.js +1 -0
- package/eds-card-desc_2.entry-DEWio8dP.mjs +53 -0
- package/eds-card-generic.entry-DkEya266.js +1 -0
- package/eds-card-generic.entry-SEl8JEp_.mjs +56 -0
- package/{eds-card-project.entry-CewRPvW7.js → eds-card-project.entry-Cq22ABZF.js} +1 -1
- package/{eds-card-project.entry-Cd7tP9g4.mjs → eds-card-project.entry-ZOpSBoyz.mjs} +2 -2
- package/{eds-card-section.entry-CQLG4D0D.mjs → eds-card-section.entry-BzylTLQC.mjs} +1 -1
- package/{eds-card-section.entry-BU4fC9y5.js → eds-card-section.entry-DdYM8rV8.js} +1 -1
- package/eds-card-tags.entry-C_n1ZNm3.mjs +13 -0
- package/eds-card-tags.entry-CfH7Q4BG.js +1 -0
- package/{eds-card-tool.entry-DpfInwr3.mjs → eds-card-tool.entry-DTHdLwQI.mjs} +5 -5
- package/{eds-card-tool.entry-LSjtu5k_.js → eds-card-tool.entry-KOKAvEvo.js} +1 -1
- package/{eds-code-block.entry-Bz1Pbg4W.mjs → eds-code-block.entry-B604OhvT.mjs} +2 -2
- package/{eds-code-block.entry-DG1tMA_4.js → eds-code-block.entry-VCJIU7ou.js} +2 -2
- package/{eds-cookies-preference.entry-DgP6pxkr.mjs → eds-cookies-preference.entry-3tfZ_O1U.mjs} +1 -1
- package/{eds-cookies-preference.entry-0J8XlEDN.js → eds-cookies-preference.entry-CLKoQPVj.js} +1 -1
- package/{eds-feedback.entry-CxyxT-OD.mjs → eds-feedback.entry-BmC2Ql0i.mjs} +1 -1
- package/{eds-feedback.entry-Cmn3G5sR.js → eds-feedback.entry-D6nkFFjs.js} +1 -1
- package/{eds-frame.entry-LDVXpjkU.js → eds-frame.entry-CoBQEpyT.js} +1 -1
- package/{eds-frame.entry-Dh_T8O60.mjs → eds-frame.entry-VlvwsJlk.mjs} +1 -1
- package/eds-gauge.entry-CZlEaAkz.js +1 -0
- package/eds-gauge.entry-fM54L3uu.mjs +30 -0
- package/{eds-icon-arrow-diagonal.entry-C6AHMuMB.js → eds-icon-arrow-diagonal.entry-CQ-h4bY9.js} +1 -1
- package/eds-icon-arrow-diagonal.entry-Du9_EV8C.mjs +13 -0
- package/eds-icon-arrow-right.entry-CCfGtNQc.mjs +13 -0
- package/eds-icon-arrow-right.entry-Cu5oN4py.js +1 -0
- package/eds-icon-bluesky.entry-B91N_152.mjs +13 -0
- package/eds-icon-bluesky.entry-lZNwdb9E.js +1 -0
- package/eds-icon-bookmark.entry-BCcsJWsc.mjs +13 -0
- package/{eds-icon-bookmark.entry-DdUP23Uu.js → eds-icon-bookmark.entry-_mceTW12.js} +1 -1
- package/eds-icon-chevron-down.entry-CjfP9NnS.mjs +13 -0
- package/eds-icon-chevron-down.entry-M9t2pnrD.js +1 -0
- package/eds-icon-chevron-left.entry-Bvja7t_t.js +1 -0
- package/eds-icon-chevron-left.entry-CG50CLXP.mjs +13 -0
- package/eds-icon-chevron-right.entry-CkA3V-M-.js +1 -0
- package/eds-icon-chevron-right.entry-YwtfBuIX.mjs +13 -0
- package/eds-icon-chevron-up.entry-CAhyMgfW.mjs +13 -0
- package/eds-icon-chevron-up.entry-_PFTVNT0.js +1 -0
- package/{eds-icon-close.entry-Dw7ZUnkQ.js → eds-icon-close.entry-BDiHqI23.js} +1 -1
- package/eds-icon-close.entry-DSXs_vI6.mjs +13 -0
- package/{eds-icon-copy.entry-DV4qtIA7.mjs → eds-icon-copy.entry-DCo1IOIr.mjs} +2 -2
- package/eds-icon-copy.entry-DPbGeiC5.js +1 -0
- package/eds-icon-eu.entry-B5cE_Fue.js +1 -0
- package/eds-icon-eu.entry-CzrkQ6Me.mjs +13 -0
- package/eds-icon-external.entry-DXS_Rz4h.mjs +13 -0
- package/eds-icon-external.entry-DetBI23k.js +1 -0
- package/eds-icon-facebook.entry-BDTGMONJ.mjs +13 -0
- package/{eds-icon-facebook.entry-DwUcANz7.js → eds-icon-facebook.entry-BgGom0CH.js} +1 -1
- package/{eds-icon-gitlab.entry-PCSE_PYe.mjs → eds-icon-gitlab.entry-CAYVpbnU.mjs} +2 -2
- package/eds-icon-gitlab.entry-DoShP9Zc.js +1 -0
- package/{eds-icon-linkedin.entry-Bpoynapn.js → eds-icon-linkedin.entry-Cf2HMi5t.js} +1 -1
- package/eds-icon-linkedin.entry-jAyFClAF.mjs +13 -0
- package/{eds-icon-loader.entry-CkIiBDsV.mjs → eds-icon-loader.entry-D0l-e0cS.mjs} +2 -2
- package/eds-icon-loader.entry-D57WH0m_.js +1 -0
- package/eds-icon-mastodon.entry-Bt1D0FBe.mjs +13 -0
- package/{eds-icon-mastodon.entry-7CmZhvNG.js → eds-icon-mastodon.entry-CTYew7dL.js} +1 -1
- package/{eds-icon-menu.entry-CFIbaI5j.js → eds-icon-menu.entry-CcgZSSE5.js} +1 -1
- package/{eds-icon-menu.entry-7zPtmR24.mjs → eds-icon-menu.entry-un5QM8-4.mjs} +2 -2
- package/eds-icon-minus.entry-C4EDT_8I.mjs +13 -0
- package/eds-icon-minus.entry-CN9gFN8A.js +1 -0
- package/eds-icon-more.entry-DvmRVLUt.js +1 -0
- package/eds-icon-more.entry-n_HcRvbF.mjs +13 -0
- package/eds-icon-paper.entry-BXchbSEg.mjs +13 -0
- package/eds-icon-paper.entry-yNSQkPEw.js +1 -0
- package/eds-icon-plus.entry-CbFpTIFR.mjs +13 -0
- package/eds-icon-plus.entry-DA1W65Qr.js +1 -0
- package/eds-icon-portal.entry-BN5WoQXI.mjs +13 -0
- package/{eds-icon-portal.entry-CbJqS4OZ.js → eds-icon-portal.entry-CCwAGN8Y.js} +1 -1
- package/{eds-icon-private.entry-DSIHrQEv.js → eds-icon-private.entry-B-VFqlkY.js} +1 -1
- package/eds-icon-private.entry-S7EUOHaT.mjs +13 -0
- package/{eds-icon-public.entry-Cj1hddsF.js → eds-icon-public.entry-DdW8hTxZ.js} +1 -1
- package/eds-icon-public.entry-DjmRvwR8.mjs +13 -0
- package/eds-icon-search.entry-C9kA0DSl.mjs +13 -0
- package/{eds-icon-search.entry-CXVkIZak.js → eds-icon-search.entry-JuKSX7FE.js} +1 -1
- package/{eds-icon-star.entry-B464U0ht.js → eds-icon-star.entry-CEQNjR66.js} +1 -1
- package/{eds-icon-star.entry-B3WySZM_.mjs → eds-icon-star.entry-Dqsszfn7.mjs} +2 -2
- package/{eds-icon-success.entry-BhRuLH3J.js → eds-icon-success.entry-D6aLYU4C.js} +1 -1
- package/eds-icon-success.entry-Dri28PkX.mjs +13 -0
- package/{eds-icon-thumbs-down.entry-DVK5ACMh.js → eds-icon-thumbs-down.entry-CDXhZNp6.js} +1 -1
- package/eds-icon-thumbs-down.entry-CnyeXIZm.mjs +13 -0
- package/eds-icon-thumbs-up.entry-CJWAhbDc.js +1 -0
- package/eds-icon-thumbs-up.entry-DNZkUwSh.mjs +13 -0
- package/eds-icon-tutorial.entry-CQOwwW0X.mjs +13 -0
- package/eds-icon-tutorial.entry-vatT873n.js +1 -0
- package/{eds-icon-twitter.entry-CYCIFfgj.mjs → eds-icon-twitter.entry-BCdKEOgq.mjs} +2 -2
- package/{eds-icon-twitter.entry-CcpEPKUu.js → eds-icon-twitter.entry-dKILV47U.js} +1 -1
- package/eds-icon-unknown.entry-CkTGu7ZD.js +1 -0
- package/eds-icon-unknown.entry-HyqP4dn1.mjs +13 -0
- package/eds-icon-updown.entry-Kv06cvHM.js +1 -0
- package/eds-icon-updown.entry-Xfv3Iuwk.mjs +13 -0
- package/{eds-icon-user.entry-BimbLh7T.js → eds-icon-user.entry-CGdD_hJn.js} +1 -1
- package/eds-icon-user.entry-DlsBz1zY.mjs +13 -0
- package/{eds-icon-youtube.entry-BepDLIVw.js → eds-icon-youtube.entry-CZGYh2Vx.js} +1 -1
- package/eds-icon-youtube.entry-DzXnQlFA.mjs +13 -0
- package/{eds-matomo-notice.entry-DQLfTEH4.mjs → eds-matomo-notice.entry-CEN9eMlC.mjs} +1 -1
- package/{eds-matomo-notice.entry-BnbhjXrV.js → eds-matomo-notice.entry-CWfk1H5v.js} +1 -1
- package/eds-pie.entry-B3U4X-HZ.mjs +68 -0
- package/eds-pie.entry-SAGUUq-x.js +1 -0
- package/{eds-progress-bar.entry-UWeq2B4o.mjs → eds-progress-bar.entry-B40FKDIY.mjs} +4 -4
- package/{eds-progress-bar.entry-CnzFrS-7.js → eds-progress-bar.entry-CdtZMWRD.js} +1 -1
- package/{eds-rating.entry-D48_hoBw.js → eds-rating.entry-DPORnYP5.js} +1 -1
- package/{eds-rating.entry-ScrHbfrp.mjs → eds-rating.entry-DXy8z13n.mjs} +2 -2
- package/{eds-section-core_2.entry-DshZ38Q9.js → eds-section-core_2.entry-CAghqI04.js} +1 -1
- package/{eds-section-core_2.entry-D3FNm7II.mjs → eds-section-core_2.entry-pr5jOFIr.mjs} +6 -6
- package/{eds-spinner.entry-KZWQRAHb.mjs → eds-spinner.entry-DS_0ySXR.mjs} +5 -5
- package/{eds-spinner.entry-CAKA3YkP.js → eds-spinner.entry-ZSmgjLeQ.js} +1 -1
- package/{eds-splash-screen.entry-YJ_mGQYU.js → eds-splash-screen.entry-CAlwA7CE.js} +1 -1
- package/{eds-splash-screen.entry-B7f2rbAn.mjs → eds-splash-screen.entry-CGIsWPg3.mjs} +1 -1
- package/{eds-switch.entry-CKv4fbm-.js → eds-switch.entry-BPvEdy6K.js} +1 -1
- package/{eds-switch.entry-DbBUxVI8.mjs → eds-switch.entry-C8_6uBOS.mjs} +6 -6
- package/{eds-timeline.entry-uFV4mRmh.mjs → eds-timeline.entry-CaCmJ2Fh.mjs} +1 -1
- package/{eds-timeline.entry-BE-6PK5Q.js → eds-timeline.entry-OAW2pkRt.js} +1 -1
- package/{eds-toast-manager.entry-BKIf0Xw3.js → eds-toast-manager.entry-DUxqFVKY.js} +1 -1
- package/{eds-toast-manager.entry-CXL8sMaG.mjs → eds-toast-manager.entry-DtpmGj_R.mjs} +1 -1
- package/{eds-toast.entry-a-RIjL18.js → eds-toast.entry-B1DPCLvR.js} +1 -1
- package/{eds-toast.entry-oZ1Juhqm.mjs → eds-toast.entry-DiJpUvbs.mjs} +1 -1
- package/eds-tooltip.entry-Cbr9FQqk.mjs +31 -0
- package/eds-tooltip.entry-D6WNPimK.js +6 -0
- package/{eds-trl.entry-Bw8w42hZ.mjs → eds-trl.entry-B-_Wzeov.mjs} +1 -1
- package/{eds-trl.entry-DmSx4bnn.js → eds-trl.entry-BZ3G8aVz.js} +1 -1
- package/{incorrect-use-of-colors.entry-BlDQxmUQ.mjs → incorrect-use-of-colors.entry-BMQ4bUVe.mjs} +1 -1
- package/{incorrect-use-of-colors.entry-CglkFNGU.js → incorrect-use-of-colors.entry-C2WUenLf.js} +1 -1
- package/index-BLX1G7Jb.js +21 -0
- package/{index-BvZ-fq9l.mjs → index-BLyMQVPx.mjs} +440 -406
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{logo-space.entry-d5Tx6GSR.js → logo-space.entry-B9810IFA.js} +1 -1
- package/{logo-space.entry-D1gv5Jv7.mjs → logo-space.entry-Dwb40YEh.mjs} +1 -1
- package/{logo-variations-horizontal_2.entry-CiMlktdv.js → logo-variations-horizontal_2.entry-BHbTdGyz.js} +1 -1
- package/{logo-variations-horizontal_2.entry-DPHzlUCt.mjs → logo-variations-horizontal_2.entry-BjqUR-w3.mjs} +1 -1
- package/{logo-variations-tabs.entry-BYi6NRAo.mjs → logo-variations-tabs.entry-7OA38Lpm.mjs} +1 -1
- package/{logo-variations-tabs.entry-CcSRDFWV.js → logo-variations-tabs.entry-Dl2DbP8q.js} +1 -1
- package/{logo-wrong-usage.entry-gsDvZ1sn.js → logo-wrong-usage.entry-C3pp-83N.js} +1 -1
- package/{logo-wrong-usage.entry-9iDssoCI.mjs → logo-wrong-usage.entry-Duywjfj_.mjs} +1 -1
- package/package.json +1 -1
- package/{svg-repository.entry-BtksDklW.mjs → svg-repository.entry-7M1slWVL.mjs} +1 -1
- package/{svg-repository.entry-_-HISW99.js → svg-repository.entry-BqMp75Pt.js} +1 -1
- package/{token-list_3.entry-CRZq4och.js → token-list_3.entry-CaP5VVjM.js} +1 -1
- package/{token-list_3.entry-CNkWD89P.mjs → token-list_3.entry-CkO70Jcu.mjs} +1 -1
- package/{token-ratios.entry-CL40j9gF.js → token-ratios.entry-C2w-OpPQ.js} +1 -1
- package/{token-ratios.entry-D4aHLsX-.mjs → token-ratios.entry-llhdL8NX.mjs} +1 -1
- package/token-spacing.entry-CK8RirEP.js +1 -0
- package/token-spacing.entry-DHyuHRXC.mjs +12 -0
- package/{token-typography.entry-D17oZHbh.js → token-typography.entry-Bqw5oeKI.js} +1 -1
- package/{token-typography.entry-ayRMMiOe.mjs → token-typography.entry-DyzkmiA4.mjs} +1 -1
- package/eds-card-tags.entry-BKuk3O8k.mjs +0 -13
- package/eds-card-tags.entry-DOV6K1FD.js +0 -1
- package/eds-icon-arrow-diagonal.entry-C75xEcUs.mjs +0 -13
- package/eds-icon-arrow-right.entry-DOsVz4oP.mjs +0 -13
- package/eds-icon-arrow-right.entry-VMROpz2J.js +0 -1
- package/eds-icon-bluesky.entry-BmSl31Ky.js +0 -1
- package/eds-icon-bluesky.entry-C9skxio2.mjs +0 -13
- package/eds-icon-bookmark.entry-xWgHPpg-.mjs +0 -13
- package/eds-icon-chevron-down.entry-DNY1bk_l.js +0 -1
- package/eds-icon-chevron-down.entry-ut52sjbR.mjs +0 -13
- package/eds-icon-chevron-left.entry-Bi82EnZL.mjs +0 -13
- package/eds-icon-chevron-left.entry-nzi05fTd.js +0 -1
- package/eds-icon-chevron-right.entry-CBW3L3p8.js +0 -1
- package/eds-icon-chevron-right.entry-Dc_uRypg.mjs +0 -13
- package/eds-icon-chevron-up.entry-CO7nzD9J.mjs +0 -13
- package/eds-icon-chevron-up.entry-Cc10e7Ce.js +0 -1
- package/eds-icon-close.entry-CvXUDttz.mjs +0 -13
- package/eds-icon-copy.entry-x46asO9P.js +0 -1
- package/eds-icon-eu.entry-BaEbXLNS.mjs +0 -13
- package/eds-icon-eu.entry-D2CoGoAF.js +0 -1
- package/eds-icon-external.entry-C0Zm0isI.js +0 -1
- package/eds-icon-external.entry-CckFcmA1.mjs +0 -13
- package/eds-icon-facebook.entry-CIiiUf27.mjs +0 -13
- package/eds-icon-gitlab.entry-CuKUR41Q.js +0 -1
- package/eds-icon-linkedin.entry-C9xqBwJ1.mjs +0 -13
- package/eds-icon-loader.entry-dxgwIFD3.js +0 -1
- package/eds-icon-mastodon.entry-k86mWfUp.mjs +0 -13
- package/eds-icon-minus.entry-B4ntnZW_.js +0 -1
- package/eds-icon-minus.entry-fPsoVmGR.mjs +0 -13
- package/eds-icon-more.entry-D_HCuwKk.js +0 -1
- package/eds-icon-more.entry-DyH3sCa4.mjs +0 -13
- package/eds-icon-paper.entry-BQlPnCrf.mjs +0 -13
- package/eds-icon-paper.entry-CHAw7mqA.js +0 -1
- package/eds-icon-plus.entry-QOVehJoq.js +0 -1
- package/eds-icon-plus.entry-zTfrWeuu.mjs +0 -13
- package/eds-icon-portal.entry-SlgbRrHY.mjs +0 -13
- package/eds-icon-private.entry-uHBGM_wp.mjs +0 -13
- package/eds-icon-public.entry-_sTE1w2W.mjs +0 -13
- package/eds-icon-search.entry-DIww9BJF.mjs +0 -13
- package/eds-icon-success.entry-HesFgi8E.mjs +0 -13
- package/eds-icon-thumbs-down.entry-CbL3623r.mjs +0 -13
- package/eds-icon-thumbs-up.entry-C2QZ3OSz.mjs +0 -13
- package/eds-icon-thumbs-up.entry-MDqpoPcO.js +0 -1
- package/eds-icon-tutorial.entry-DRB27GWh.mjs +0 -13
- package/eds-icon-tutorial.entry-xaf63POz.js +0 -1
- package/eds-icon-unknown.entry-kYRE4en_.js +0 -1
- package/eds-icon-unknown.entry-ksugYL8s.mjs +0 -13
- package/eds-icon-updown.entry-3_UTqXet.js +0 -1
- package/eds-icon-updown.entry-DrW4QdWY.mjs +0 -13
- package/eds-icon-user.entry-CMjrRV4a.mjs +0 -13
- package/eds-icon-youtube.entry-CGXXdMzx.mjs +0 -13
- package/eds-pagination_2.entry-BK--gyZ0.mjs +0 -258
- package/eds-pagination_2.entry-De883ILy.js +0 -1
- package/index-CJvr9v3B.js +0 -21
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as s, h as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { h as
|
|
6
|
-
import { h as
|
|
7
|
-
const
|
|
1
|
+
import { r as s, h as i, g as c, c as f } from "./index-BLyMQVPx.mjs";
|
|
2
|
+
import { s as h } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
+
import { c as m } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
4
|
+
import { p as b } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
5
|
+
import { h as p } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
6
|
+
import { h as w, a as k, b as z, c as C, v as S, d as E, e as F, f as L, g as I } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
|
|
7
|
+
const j = `::before,
|
|
8
8
|
::after {
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
border-width: 0;
|
|
@@ -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, A = class {
|
|
209
209
|
constructor(n) {
|
|
210
210
|
s(this, n), this.firstName = "User", this.lastName = "Avatar", this.picture = void 0, this.initials = void 0, this.color = "grey";
|
|
211
211
|
}
|
|
@@ -251,119 +251,20 @@ abbr:where([title]) {
|
|
|
251
251
|
* @returns {JSX.Element} The rendered avatar component.
|
|
252
252
|
*/
|
|
253
253
|
render() {
|
|
254
|
-
return
|
|
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
|
+
A.style = P;
|
|
258
|
+
const W = ".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}", _ = W, O = class {
|
|
259
259
|
constructor(n) {
|
|
260
260
|
s(this, n), this.inverse = !1;
|
|
261
261
|
}
|
|
262
262
|
render() {
|
|
263
|
-
return
|
|
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
|
|
268
|
-
constructor(n) {
|
|
269
|
-
s(this, n), this.updateScreenSize = () => {
|
|
270
|
-
const i = window.innerWidth;
|
|
271
|
-
i < 769 ? this.maxVisibleItems = 3 : i <= 1024 ? this.maxVisibleItems = 3 : i <= 1280 ? this.maxVisibleItems = 3 : i <= 2200 ? this.maxVisibleItems = 4 : this.maxVisibleItems = 6;
|
|
272
|
-
}, this.items = [], this.intent = "ghost", this.parsedItems = [], this.isSmallScreen = !1, this.maxVisibleItems = 6;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Watches for changes to the `items` prop and parses it.
|
|
276
|
-
*/
|
|
277
|
-
parseItems(n) {
|
|
278
|
-
this.parsedItems = m(n);
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Lifecycle method that runs when the component is about to be loaded.
|
|
282
|
-
* It parses the initial `items` prop value.
|
|
283
|
-
*/
|
|
284
|
-
componentWillLoad() {
|
|
285
|
-
this.parseItems(this.items), this.updateScreenSize(), window.addEventListener("resize", this.updateScreenSize);
|
|
286
|
-
}
|
|
287
|
-
disconnectedCallback() {
|
|
288
|
-
window.removeEventListener("resize", this.updateScreenSize);
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Lifecycle method that runs when the component has fully loaded.
|
|
292
|
-
* It emits a custom event for each `eds-link` element contained within the breadcrumb.
|
|
293
|
-
*/
|
|
294
|
-
componentDidLoad() {
|
|
295
|
-
var n;
|
|
296
|
-
const i = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-link");
|
|
297
|
-
i == null || i.forEach((r) => {
|
|
298
|
-
this.emitContext(r);
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
303
|
-
* This event provides context information about the breadcrumb component.
|
|
304
|
-
*
|
|
305
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
306
|
-
*/
|
|
307
|
-
emitContext(n) {
|
|
308
|
-
const i = new CustomEvent("parentContext", {
|
|
309
|
-
detail: {
|
|
310
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
311
|
-
identifier: null
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
n.dispatchEvent(i);
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Returns breadcrumb items with potential truncation if there are too many.
|
|
318
|
-
* It inserts an ellipsis item where necessary.
|
|
319
|
-
*/
|
|
320
|
-
getTruncatedItems() {
|
|
321
|
-
const n = this.parsedItems.length, i = { label: "...", url: "", isHidden: !0 };
|
|
322
|
-
if (n > this.maxVisibleItems) {
|
|
323
|
-
const r = this.parsedItems[0], t = this.parsedItems.slice(-2);
|
|
324
|
-
if (this.maxVisibleItems === 3)
|
|
325
|
-
return [r, i, ...t];
|
|
326
|
-
if (this.maxVisibleItems === 4) {
|
|
327
|
-
const l = this.parsedItems[Math.floor(n / 2)];
|
|
328
|
-
return [r, l, i, ...t];
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
return this.parsedItems;
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Helper to determine the display label and full label.
|
|
335
|
-
* If the label is longer than 15 characters and the item is not the current (last) item,
|
|
336
|
-
* we display a truncated version but use the full label for aria attributes.
|
|
337
|
-
*/
|
|
338
|
-
getLabels(n, i) {
|
|
339
|
-
return !i && n.label.length > 15 ? { displayLabel: `${n.label.slice(0, 15)}...`, fullLabel: n.label } : { displayLabel: n.label, fullLabel: n.label };
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Render method for the breadcrumb component.
|
|
343
|
-
* It creates a navigation element with an ordered list of breadcrumb links.
|
|
344
|
-
* The last link is marked as the current page.
|
|
345
|
-
*/
|
|
346
|
-
render() {
|
|
347
|
-
const n = this.getTruncatedItems();
|
|
348
|
-
return e("nav", { key: "2651e18e4c157f49e1da2ef93d4f68b9497118e4", "aria-label": "Breadcrumb" }, e("ol", { key: "d1f5bb18bb35df9455a4c7a566850d59eb657242", class: "flex items-center space-x-2" }, n.map((i, r) => {
|
|
349
|
-
const t = r === n.length - 1;
|
|
350
|
-
return e("li", { class: "flex items-center" }, i.isHidden ? e("eds-link", { label: "...", url: "#", intent: "strong", current: !1, "aria-label": "...", size: "small", "icon-small": "false", icon: "chevron-right" }) : (() => {
|
|
351
|
-
const { fullLabel: l } = this.getLabels(i, t), a = t ? this.intent === "strong" ? "weak" : this.intent === "weak" ? "strong" : this.intent : this.intent;
|
|
352
|
-
return e("eds-link", Object.assign({ label: l, url: i.url, intent: a, disabled: t, current: t, "aria-label": l, size: "small", "icon-small": "false" }, t ? { "aria-current": "page" } : {}));
|
|
353
|
-
})(), !t && !i.isHidden && e("eds-icon-wrapper", { icon: "chevron-right", class: "w-20 h-20" }));
|
|
354
|
-
})));
|
|
355
|
-
}
|
|
356
|
-
get el() {
|
|
357
|
-
return g(this);
|
|
358
|
-
}
|
|
359
|
-
static get watchers() {
|
|
360
|
-
return {
|
|
361
|
-
items: ["parseItems"]
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
G.style = X;
|
|
366
|
-
const J = `*,
|
|
266
|
+
O.style = _;
|
|
267
|
+
const H = `*,
|
|
367
268
|
::before,
|
|
368
269
|
::after {
|
|
369
270
|
box-sizing: border-box;
|
|
@@ -1272,9 +1173,9 @@ button,
|
|
|
1272
1173
|
|
|
1273
1174
|
.hover\\:before\\:opacity-100:hover::before {
|
|
1274
1175
|
opacity: 1;
|
|
1275
|
-
}`,
|
|
1176
|
+
}`, T = H, $ = class {
|
|
1276
1177
|
constructor(n) {
|
|
1277
|
-
s(this, n), this.button =
|
|
1178
|
+
s(this, n), this.button = m([
|
|
1278
1179
|
"relative inline-flex items-center",
|
|
1279
1180
|
"py-8",
|
|
1280
1181
|
"effect-focus effect-color",
|
|
@@ -1378,16 +1279,16 @@ button,
|
|
|
1378
1279
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
1379
1280
|
}
|
|
1380
1281
|
handleClick(n) {
|
|
1381
|
-
var
|
|
1282
|
+
var e, r;
|
|
1382
1283
|
if (this.disabled) {
|
|
1383
1284
|
n.preventDefault();
|
|
1384
1285
|
return;
|
|
1385
1286
|
}
|
|
1386
|
-
|
|
1287
|
+
h({
|
|
1387
1288
|
category: "ui-component",
|
|
1388
1289
|
parentContext: this.parentContext,
|
|
1389
1290
|
tag: this.el.tagName.toLowerCase(),
|
|
1390
|
-
name: ((
|
|
1291
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((r = this.ariaLabel) === null || r === void 0 ? void 0 : r.toLowerCase()) || "",
|
|
1391
1292
|
action: "click"
|
|
1392
1293
|
}), typeof this.triggerClick == "function" && this.triggerClick();
|
|
1393
1294
|
}
|
|
@@ -1400,127 +1301,29 @@ button,
|
|
|
1400
1301
|
pill: this.pill,
|
|
1401
1302
|
iconOnly: !this.label,
|
|
1402
1303
|
iconSmall: this.iconSmall
|
|
1403
|
-
}),
|
|
1404
|
-
return e
|
|
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: (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: {
|
|
1405
1306
|
border: `3px solid ${this.intent === "secondary" ? "rgba(255, 255, 255, .3)" : "rgba(0, 0, 0, .3)"}`,
|
|
1406
1307
|
borderBottomColor: this.intent === "secondary" ? "#fff" : "#000"
|
|
1407
|
-
} })), this.icon ?
|
|
1308
|
+
} })), this.icon ? i("eds-icon-wrapper", { class: `
|
|
1408
1309
|
flex inline-flex items-center justify-center
|
|
1409
1310
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
1410
1311
|
`, icon: this.icon }) : null);
|
|
1411
1312
|
}
|
|
1412
1313
|
get el() {
|
|
1413
|
-
return
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
|
-
Q.style = K;
|
|
1417
|
-
const Z = ".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)}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}", nn = Z, en = class {
|
|
1418
|
-
constructor(n) {
|
|
1419
|
-
s(this, n), this.description = void 0, this.truncate = !0, this.truncateLines = "3";
|
|
1420
|
-
}
|
|
1421
|
-
getTruncateClass() {
|
|
1422
|
-
return this.truncate && this.truncateLines ? `line-clamp-${this.truncateLines}` : "";
|
|
1423
|
-
}
|
|
1424
|
-
render() {
|
|
1425
|
-
return e("p", { key: "f2eec4a947de74a1e36bb13fdd2bfeb7a9f711b3", class: "text-light f-ui-03-light" }, e("span", { key: "444ffa34c3e8cac12af2f396144fd182d49c6baa", class: this.getTruncateClass() }, this.description));
|
|
1314
|
+
return c(this);
|
|
1426
1315
|
}
|
|
1427
1316
|
};
|
|
1428
|
-
|
|
1429
|
-
const
|
|
1317
|
+
$.style = T;
|
|
1318
|
+
const D = ".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}", M = D, B = class {
|
|
1430
1319
|
constructor(n) {
|
|
1431
|
-
s(this, n), this.
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
if (this.image)
|
|
1435
|
-
try {
|
|
1436
|
-
typeof this.image == "object" ? this.parsedImage = this.image : typeof this.image == "string" && (this.parsedImage = JSON.parse(this.image));
|
|
1437
|
-
} catch (n) {
|
|
1438
|
-
console.error("Error parsing image prop:", n), this.parsedImage = {};
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
handleParentContext(n) {
|
|
1442
|
-
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
1443
|
-
}
|
|
1444
|
-
/**
|
|
1445
|
-
* Parses the `tags` prop into an array of link objects.
|
|
1446
|
-
* Returns an empty array if parsing fails or if `tags` is not a valid JSON string or object.
|
|
1447
|
-
*
|
|
1448
|
-
* @returns {any[]} Array of parsed link objects
|
|
1449
|
-
*/
|
|
1450
|
-
get parsedTags() {
|
|
1451
|
-
return m(this.tags);
|
|
1452
|
-
}
|
|
1453
|
-
articleClasses() {
|
|
1454
|
-
return [
|
|
1455
|
-
this.description ? this.tiny ? "min-h-120" : "min-h-156" : "h-auto",
|
|
1456
|
-
this.bg ? "bg-inverse" : "bg-default",
|
|
1457
|
-
this.withHover ? "effect-shadow hover:shadow-hover cursor-pointer" : "",
|
|
1458
|
-
"border-softer effect-focus-within relative flex grow flex-col rounded-lg border-2 p-16"
|
|
1459
|
-
].join(" ");
|
|
1460
|
-
}
|
|
1461
|
-
handleClick() {
|
|
1462
|
-
var n;
|
|
1463
|
-
b({
|
|
1464
|
-
category: "ui-component",
|
|
1465
|
-
parentContext: this.parentContext,
|
|
1466
|
-
tag: this.el.tagName.toLowerCase(),
|
|
1467
|
-
name: ((n = this.cardTitle) === null || n === void 0 ? void 0 : n.toLowerCase()) || "",
|
|
1468
|
-
action: "click"
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
render() {
|
|
1472
|
-
return e("article", { key: "440a448c841370838c0c66610bd1266b46f66541", class: this.articleClasses(), onClick: () => this.handleClick() }, e("eds-card-title", { key: "292d93a9a993c6dcbfd276097a21d3984b1794c4", "heading-level": this.headingLevel, titleClass: this.image ? "f-ui-01" : void 0, "card-title": this.cardTitle, url: this.url, hierarchy: this.hierarchy }), this.description && e("eds-card-desc", { key: "4b304cc3c65a42b3b1bcbebd9968c45e79cdabf7", class: "mt-8", "truncate-lines": "3", description: this.description }), this.parsedImage ? e("eds-img", Object.assign({ class: "mt-8 block mx-auto" }, this.parsedImage)) : this.avatar || this.shortAbbreviation ? e("eds-avatar", { class: "order-first mb-12", picture: this.avatar, initials: this.shortAbbreviation }) : null, e("div", { key: "40388913b1abb9308f42469956342efdbb48d508", class: "flex flex-wrap gap-y-4 gap-x-1" }, this.parsedTags.map((n, i) => e("eds-tag", { key: i, intent: n.style, label: n.label }))), " ");
|
|
1473
|
-
}
|
|
1474
|
-
get el() {
|
|
1475
|
-
return g(this);
|
|
1476
|
-
}
|
|
1477
|
-
};
|
|
1478
|
-
ln.style = tn;
|
|
1479
|
-
const on = "a{all:unset;display:inline;color:inherit;text-decoration:none;cursor:pointer}h1,h2,h3,h4,h5,h6{margin:0}.f-heading-01{font-family:var(--f-heading-01-fontFamily);font-weight:var(--f-heading-01-fontWeight);font-size:var(--f-heading-01-fontSize);line-height:var(--f-heading-01-lineHeight);letter-spacing:var(--f-heading-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.break-words{overflow-wrap:break-word}.after\\:absolute::after{position:absolute}.after\\:inset-0::after{inset:0rem}.after\\:z-10::after{z-index:10}.after\\:content-\\[\\'\\'\\]::after{--tw-content:'';content:var(--tw-content)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}", an = on, sn = class {
|
|
1480
|
-
constructor(n) {
|
|
1481
|
-
s(this, n), this.url = void 0, this.titleClass = void 0, this.headingLevel = "h3", this.externalLink = !1, this.cardTitle = void 0, this.hierarchy = !0;
|
|
1482
|
-
}
|
|
1483
|
-
/**
|
|
1484
|
-
* Dynamically generate the title class based on the heading level.
|
|
1485
|
-
*/
|
|
1486
|
-
getTitleClass() {
|
|
1487
|
-
return `f-heading-${(this.hierarchy ? {
|
|
1488
|
-
h1: "05",
|
|
1489
|
-
h2: "05",
|
|
1490
|
-
h3: "05",
|
|
1491
|
-
h4: "05",
|
|
1492
|
-
h5: "05",
|
|
1493
|
-
h6: "06"
|
|
1494
|
-
} : {
|
|
1495
|
-
h1: "01",
|
|
1496
|
-
h2: "02",
|
|
1497
|
-
h3: "03",
|
|
1498
|
-
h4: "04",
|
|
1499
|
-
h5: "05",
|
|
1500
|
-
h6: "06"
|
|
1501
|
-
})[this.headingLevel]}`;
|
|
1502
|
-
}
|
|
1503
|
-
/*private getTag() {
|
|
1504
|
-
if (this.url) {
|
|
1505
|
-
return 'a';
|
|
1506
|
-
}
|
|
1507
|
-
return 'span';
|
|
1508
|
-
}*/
|
|
1509
|
-
render() {
|
|
1510
|
-
const n = this.headingLevel;
|
|
1511
|
-
return e(n, { key: "9914950b1581456a3a875ed7383975710c05fa7f", class: this.getTitleClass() }, e("a", { key: "9b3298d8bacd8fbaecd8c714329ef5e6ac7192c7", class: "break-words after:absolute after:inset-0 after:z-10 after:content-[''] focus:outline-none", href: this.url, target: this.externalLink ? "_blank" : void 0, rel: this.externalLink ? "noopener noreferrer" : void 0 }, this.cardTitle));
|
|
1512
|
-
}
|
|
1513
|
-
};
|
|
1514
|
-
sn.style = an;
|
|
1515
|
-
const dn = ".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}", cn = dn, gn = class {
|
|
1516
|
-
constructor(n) {
|
|
1517
|
-
s(this, n), this.dropdown = x(this, "dropdown", 7), this.focusableItems = [], this.handleClick = () => {
|
|
1518
|
-
var i;
|
|
1519
|
-
this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), this.dropdown.emit({ expanded: this.isOpen }), b({
|
|
1320
|
+
s(this, n), this.dropdown = f(this, "dropdown", 7), this.focusableItems = [], this.handleClick = () => {
|
|
1321
|
+
var e;
|
|
1322
|
+
this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), this.dropdown.emit({ expanded: this.isOpen }), h({
|
|
1520
1323
|
category: "ui-component",
|
|
1521
1324
|
parentContext: null,
|
|
1522
1325
|
tag: this.host.tagName.toLowerCase(),
|
|
1523
|
-
name: ((
|
|
1326
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || "",
|
|
1524
1327
|
action: this.isOpen ? "expanded" : "collapsed"
|
|
1525
1328
|
});
|
|
1526
1329
|
}, this.icon = "chevron-down", 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;
|
|
@@ -1576,23 +1379,23 @@ const dn = ".z-focus{z-index:99}.relative{position:relative}.shadow-small{--tw-s
|
|
|
1576
1379
|
* @returns {JSX.Element} The rendered dropdown component.
|
|
1577
1380
|
*/
|
|
1578
1381
|
render() {
|
|
1579
|
-
return
|
|
1382
|
+
return i("div", { key: "eb48745937126e580737c1da6787c3f16c06ba9e", class: "z-focus relative", ref: (n) => this.dropdownContent = n }, i("eds-button", { key: "3af6863201b1c25ad66e9f8c52d9e13505d742a3", 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: "c225074b3fbee543966523f8cd1c146485bc04bd", role: "menu", class: {
|
|
1580
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,
|
|
1581
1384
|
"left-4": this.dropdownPos === "left" && this.dropdownOffset,
|
|
1582
1385
|
"left-0": this.dropdownPos === "left" && !this.dropdownOffset,
|
|
1583
1386
|
"right-4": this.dropdownPos === "right" && this.dropdownOffset,
|
|
1584
1387
|
"right-0": this.dropdownPos === "right" && !this.dropdownOffset,
|
|
1585
1388
|
"rounded-lg": this.rounded
|
|
1586
|
-
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen },
|
|
1389
|
+
}, style: { display: this.isOpen ? "block" : "none" }, "aria-label": "Dropdown", "aria-hidden": !this.isOpen }, i("slot", { key: "6a7ba94045d366d20c6618845692d977f20437e3" })));
|
|
1587
1390
|
}
|
|
1588
1391
|
get host() {
|
|
1589
|
-
return
|
|
1392
|
+
return c(this);
|
|
1590
1393
|
}
|
|
1591
1394
|
};
|
|
1592
|
-
|
|
1593
|
-
const
|
|
1395
|
+
B.style = M;
|
|
1396
|
+
const q = "p{margin:0}.cursor-pointer{cursor:pointer}.ml-4{margin-left:0.25rem}.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}.bg-darker{background-color:var(--grey-400)}.border-softest{border-color:rgba(0, 0, 0, .05)}.border-t-2{border-top-width:2px}.pt-20{padding-top:1.25rem}.pb-28{padding-bottom:1.75rem}.grid-layout{display:grid;grid-template-columns:repeat(var(--container-grid-columns, var(--grid-columns)), 1fr);grid-gap:var(--inner-gutter)}.grid-col-span-12{--container-grid-columns:12;grid-column:span 12 / span 12}.mt-28{margin-top:1.75rem}.gap-y-12{row-gap:0.75rem}.gap-x-12{-moz-column-gap:0.75rem;column-gap:0.75rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-20{gap:1.25rem}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.focus-visible\\:rounded-xs:focus-visible{border-radius:4px}.flex{display:flex}.w-\\[54px\\]{width:54px}.ml-0{margin-left:0rem}.order-last{order:9999}.w-full{width:100%}.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)}.text-light{color:var(--grey-700)}.mt-4{margin-top:0.25rem}.mr-4{margin-right:0.25rem}.gap-12{gap:0.75rem}.inline-block{display:inline-block}.\\!no-underline{text-decoration-line:none !important}.decoration-2{text-decoration-thickness:2px}.underline-offset-4{text-underline-offset:4px}.hover\\:\\!underline:hover{text-decoration-line:underline !important}.ml-auto{margin-left:auto}.pl-12{padding-left:0.75rem}@media (min-width: 750px){.md\\:pt-28{padding-top:1.75rem}}@media (min-width: 900px){.lg\\:grid-col-span-5{--container-grid-columns:5;grid-column:span 5 / span 5}.lg\\:grid-col-span-6{--container-grid-columns:6;grid-column:span 6 / span 6}.lg\\:grid-col-start-7{grid-column-start:7}.lg\\:mt-0{margin-top:0rem}.lg\\:flex-nowrap{flex-wrap:nowrap}.lg\\:order-none{order:0}.lg\\:w-auto{width:auto}}@media (min-width: 1024px){.xl\\:pb-40{padding-bottom:2.5rem}}", R = q, N = class {
|
|
1594
1397
|
constructor(n) {
|
|
1595
|
-
s(this, n), this.cookies =
|
|
1398
|
+
s(this, n), this.cookies = f(this, "cookies", 7), this.backToTop = () => {
|
|
1596
1399
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
1597
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;
|
|
1598
1401
|
}
|
|
@@ -1607,48 +1410,48 @@ const hn = "p{margin:0}.cursor-pointer{cursor:pointer}.ml-4{margin-left:0.25rem}
|
|
|
1607
1410
|
* @returns {JSX.Element} The rendered JSX for the footer component.
|
|
1608
1411
|
*/
|
|
1609
1412
|
render() {
|
|
1610
|
-
return
|
|
1413
|
+
return i("footer", { key: "7bbc8cd8e0e3a153dc30bb3569e83afc0bc09b0a" }, 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: "9ee8ada698546344b18e557ee1de76042cd727ed", class: `border-softest ${this.social ? "border-t-2" : ""} pb-28 pt-20 md:pt-28` }, i("div", { key: "e795e5bba0273b4147c66ed667142997bc0cbaff", class: "container flex items-center gap-20 lg:flex-nowrap" }, i("div", { key: "fa09a0dbccb035b1e4f496aa447aca241bcc2415", class: "flex items-center gap-x-12" }, i("a", { key: "578d6a8463e65d07278f8328c108ee266cfba2b8", 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: "5b9e987c2ecf62fb4f44c1faacad7c569a149805", width: 54, height: 41, src: "https://www.ebrains.eu/flags/4x3/eu.svg", alt: "European Union Flag" }))), i("div", { key: "df75949c0718b8fb7dd449a6e7df39d332da366f" }, i("div", { key: "f83d31b16d0601cd456d5cb72e9fa2adb29a2b66", class: "f-ui-04 text-light" }, i("p", { key: "dcdf09d78ca64c5391d56fe5ed69bab987cbf67b" }, this.fundedBy), i("div", { key: "af279fb5dfdf0a8f1f85e6ce7446dc3a0eeac397", class: "mt-4 flex flex-wrap gap-12 lg:flex-nowrap inline-block" }, i("span", { key: "026b41fa6162ffb6825ccf98364b4caf64b6457a", 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: () => {
|
|
1611
1414
|
this.toggleCookiesConsent();
|
|
1612
|
-
} }) : null))),
|
|
1415
|
+
} }) : null))), i("div", { key: "27cb561815d6918567ab8cfa1148019aca8aeda0", 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))));
|
|
1613
1416
|
}
|
|
1614
1417
|
};
|
|
1615
|
-
|
|
1616
|
-
function
|
|
1418
|
+
N.style = R;
|
|
1419
|
+
function u(n, e, r, t, l) {
|
|
1617
1420
|
const a = [];
|
|
1618
|
-
return t && !
|
|
1421
|
+
return t && !e && a.push(`${n} is required.`), l && typeof e == "string" && e.length > l && a.push(`${n} must be at most ${l} characters.`), r === "email" && e && !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.toString()) && a.push("Invalid email format."), a;
|
|
1619
1422
|
}
|
|
1620
|
-
function
|
|
1423
|
+
function y(n, e, r) {
|
|
1621
1424
|
const a = Array.from(r.querySelectorAll("eds-input-field")).filter((d) => {
|
|
1622
|
-
var
|
|
1623
|
-
return ((
|
|
1425
|
+
var g, x;
|
|
1426
|
+
return ((x = (g = d.shadowRoot) === null || g === void 0 ? void 0 : g.querySelectorAll(`input[name="${n}"]`)) === null || x === void 0 ? void 0 : x.length) > 0;
|
|
1624
1427
|
}).flatMap((d) => {
|
|
1625
|
-
var
|
|
1626
|
-
return Array.from(((
|
|
1428
|
+
var g;
|
|
1429
|
+
return Array.from(((g = d.shadowRoot) === null || g === void 0 ? void 0 : g.querySelectorAll(`input[name="${n}"]`)) || []);
|
|
1627
1430
|
}).some((d) => d.checked), o = [];
|
|
1628
|
-
return
|
|
1431
|
+
return e && !a && o.push(`At least one option in ${n} is required.`), o;
|
|
1629
1432
|
}
|
|
1630
|
-
function
|
|
1433
|
+
function v(n, e, r) {
|
|
1631
1434
|
var t;
|
|
1632
1435
|
const l = [], a = Array.from(r.querySelectorAll("eds-input-field")).find((d) => {
|
|
1633
|
-
var
|
|
1634
|
-
return (
|
|
1436
|
+
var g;
|
|
1437
|
+
return (g = d.shadowRoot) === null || g === void 0 ? void 0 : g.querySelector(`[name="${n}"]`);
|
|
1635
1438
|
});
|
|
1636
1439
|
if (!a)
|
|
1637
|
-
return
|
|
1440
|
+
return e && l.push(`${n} is required.`), l;
|
|
1638
1441
|
const o = (t = a.shadowRoot) === null || t === void 0 ? void 0 : t.querySelector(`[name="${n}"]`);
|
|
1639
|
-
return
|
|
1442
|
+
return e && o && !o.checked && l.push(`${n} is required.`), l;
|
|
1640
1443
|
}
|
|
1641
|
-
function
|
|
1444
|
+
function V(n, e) {
|
|
1642
1445
|
const r = Array.from(n.querySelectorAll("eds-input-field"));
|
|
1643
1446
|
for (const t of r)
|
|
1644
1447
|
if (t.shadowRoot) {
|
|
1645
|
-
const l = t.shadowRoot.querySelector(`[name="${
|
|
1448
|
+
const l = t.shadowRoot.querySelector(`[name="${e}"]`);
|
|
1646
1449
|
if (l)
|
|
1647
1450
|
return l;
|
|
1648
1451
|
}
|
|
1649
1452
|
return null;
|
|
1650
1453
|
}
|
|
1651
|
-
function
|
|
1454
|
+
function U(n, e, r, t) {
|
|
1652
1455
|
const l = {};
|
|
1653
1456
|
let a = !1;
|
|
1654
1457
|
return n.forEach((o) => {
|
|
@@ -1658,43 +1461,46 @@ function mn(n, i, r, t) {
|
|
|
1658
1461
|
}
|
|
1659
1462
|
if (o.type !== "hidden")
|
|
1660
1463
|
if ((o.type === "checkbox" || o.type === "radio") && !o.options) {
|
|
1661
|
-
const d =
|
|
1464
|
+
const d = v(o.name, o.required, e);
|
|
1662
1465
|
d.length > 0 && (l[o.name] = d, a = !0);
|
|
1663
1466
|
} else if (o.options && (o.type === "checkbox" || o.type === "radio")) {
|
|
1664
|
-
const d =
|
|
1467
|
+
const d = y(o.name, o.required, e);
|
|
1665
1468
|
d.length > 0 && (l[o.name] = d, a = !0);
|
|
1666
1469
|
} else {
|
|
1667
|
-
const d =
|
|
1470
|
+
const d = V(e, o.name);
|
|
1668
1471
|
if (d) {
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1472
|
+
const g = d.value, x = u(o.name, g, o.type, o.required, o.maxlength);
|
|
1473
|
+
x.length > 0 && (l[o.name] = x, a = !0);
|
|
1671
1474
|
}
|
|
1672
1475
|
}
|
|
1673
1476
|
}), { errors: l, hasError: a };
|
|
1674
1477
|
}
|
|
1675
|
-
function
|
|
1676
|
-
return n.type === "checkbox" || n.type === "radio" ? n.options ?
|
|
1478
|
+
function Y(n, e, r) {
|
|
1479
|
+
return n.type === "checkbox" || n.type === "radio" ? n.options ? y(n.name, n.required, r) : v(n.name, n.required, r) : u(n.name, e, n.type, n.required, n.maxlength);
|
|
1677
1480
|
}
|
|
1678
|
-
function
|
|
1481
|
+
function X({
|
|
1679
1482
|
initData: n,
|
|
1680
|
-
parsedFields:
|
|
1483
|
+
parsedFields: e,
|
|
1681
1484
|
currentValues: r
|
|
1682
1485
|
//formEl,
|
|
1683
1486
|
//isFieldVisible
|
|
1684
1487
|
}) {
|
|
1685
1488
|
const t = Object.assign({}, r);
|
|
1686
|
-
return
|
|
1489
|
+
return e.forEach((l) => {
|
|
1687
1490
|
const a = n[l.name];
|
|
1688
1491
|
a !== void 0 && (t[l.name] = a);
|
|
1689
1492
|
}), { updatedValues: t };
|
|
1690
1493
|
}
|
|
1691
|
-
const
|
|
1494
|
+
const G = ".mt-20{margin-top:1.25rem}", J = G, Q = class {
|
|
1692
1495
|
constructor(n) {
|
|
1693
|
-
s(this, n), this.form =
|
|
1496
|
+
s(this, n), this.form = f(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 = [];
|
|
1497
|
+
}
|
|
1498
|
+
async setData(n) {
|
|
1499
|
+
this.populateFormWithInitData(n);
|
|
1694
1500
|
}
|
|
1695
1501
|
componentWillLoad() {
|
|
1696
|
-
this.parseFields(this.fields), this.el.querySelectorAll("eds-button").forEach((
|
|
1697
|
-
this.emitContext(
|
|
1502
|
+
this.parseFields(this.fields), this.el.querySelectorAll("eds-button").forEach((e) => {
|
|
1503
|
+
this.emitContext(e);
|
|
1698
1504
|
});
|
|
1699
1505
|
}
|
|
1700
1506
|
componentDidLoad() {
|
|
@@ -1704,33 +1510,33 @@ const yn = ".mt-20{margin-top:1.25rem}", vn = yn, wn = class {
|
|
|
1704
1510
|
return !!this.initData;
|
|
1705
1511
|
}
|
|
1706
1512
|
parseFields(n) {
|
|
1707
|
-
this.parsedFields =
|
|
1513
|
+
this.parsedFields = b(n);
|
|
1708
1514
|
}
|
|
1709
1515
|
emitContext(n) {
|
|
1710
|
-
const
|
|
1516
|
+
const e = new CustomEvent("parentContext", {
|
|
1711
1517
|
detail: {
|
|
1712
1518
|
componentName: this.el.tagName.toLowerCase(),
|
|
1713
1519
|
identifier: null
|
|
1714
1520
|
}
|
|
1715
1521
|
});
|
|
1716
|
-
n.dispatchEvent(
|
|
1522
|
+
n.dispatchEvent(e);
|
|
1717
1523
|
}
|
|
1718
1524
|
isFieldVisible(n) {
|
|
1719
1525
|
return n.condition ? this.values[n.condition.field] === n.condition.value : !0;
|
|
1720
1526
|
}
|
|
1721
1527
|
validateForm() {
|
|
1722
|
-
const { errors: n, hasError:
|
|
1723
|
-
this.errors = n, this.hasError =
|
|
1528
|
+
const { errors: n, hasError: e } = U(this.parsedFields, this.formEl, this.values, (r, t) => r.condition ? t[r.condition.field] === r.condition.value : !0);
|
|
1529
|
+
this.errors = n, this.hasError = e;
|
|
1724
1530
|
}
|
|
1725
1531
|
populateFormWithInitData(n) {
|
|
1726
|
-
const { updatedValues:
|
|
1532
|
+
const { updatedValues: e } = X({
|
|
1727
1533
|
initData: n,
|
|
1728
1534
|
parsedFields: this.parsedFields,
|
|
1729
1535
|
currentValues: this.values,
|
|
1730
1536
|
formEl: this.formEl,
|
|
1731
1537
|
isFieldVisible: (r, t) => r.condition ? t[r.condition.field] === r.condition.value : !0
|
|
1732
1538
|
});
|
|
1733
|
-
this.values =
|
|
1539
|
+
this.values = e;
|
|
1734
1540
|
}
|
|
1735
1541
|
getFormData() {
|
|
1736
1542
|
const n = new FormData();
|
|
@@ -1753,32 +1559,38 @@ const yn = ".mt-20{margin-top:1.25rem}", vn = yn, wn = class {
|
|
|
1753
1559
|
}
|
|
1754
1560
|
makeFormData() {
|
|
1755
1561
|
const n = new FormData();
|
|
1756
|
-
return n.append("form_name", this.name), this.setFormUrl && typeof window < "u" && n.set("form_url", window.location.href), Object.keys(this.values).forEach((
|
|
1757
|
-
n.append(
|
|
1562
|
+
return n.append("form_name", this.name), this.setFormUrl && typeof window < "u" && n.set("form_url", window.location.href), Object.keys(this.values).forEach((e) => {
|
|
1563
|
+
n.append(e, this.values[e]);
|
|
1758
1564
|
}), n;
|
|
1759
1565
|
}
|
|
1760
|
-
handleChange(n,
|
|
1566
|
+
handleChange(n, e) {
|
|
1761
1567
|
const r = n.target;
|
|
1762
1568
|
if (r.type === "checkbox") {
|
|
1763
|
-
const t = this.values[
|
|
1569
|
+
const t = this.values[e.name] || "";
|
|
1764
1570
|
let l = t ? t.split(",") : [];
|
|
1765
|
-
r.checked ? l.includes(r.value) || l.push(r.value) : l = l.filter((a) => a !== r.value), this.values = Object.assign(Object.assign({}, this.values), { [
|
|
1571
|
+
r.checked ? l.includes(r.value) || l.push(r.value) : l = l.filter((a) => a !== r.value), this.values = Object.assign(Object.assign({}, this.values), { [e.name]: l.join(",") });
|
|
1766
1572
|
} else
|
|
1767
|
-
this.values = Object.assign(Object.assign({}, this.values), { [
|
|
1768
|
-
|
|
1573
|
+
this.values = Object.assign(Object.assign({}, this.values), { [e.name]: r.value });
|
|
1574
|
+
e.name !== "password" && this.form.emit({
|
|
1769
1575
|
event: "change",
|
|
1770
|
-
field:
|
|
1771
|
-
value: r.type === "checkbox" ? this.values[
|
|
1772
|
-
message: `${
|
|
1576
|
+
field: e.name,
|
|
1577
|
+
value: r.type === "checkbox" ? this.values[e.name] : r.value,
|
|
1578
|
+
message: `${e.name} updated`
|
|
1773
1579
|
//data: this.makeFormData()
|
|
1774
1580
|
});
|
|
1775
1581
|
}
|
|
1776
|
-
handleInput(n,
|
|
1777
|
-
const r = n.target, t = Object.assign({}, this.errors), l =
|
|
1778
|
-
l.length > 0 ? t[
|
|
1582
|
+
handleInput(n, e) {
|
|
1583
|
+
const r = n.target, t = Object.assign({}, this.errors), l = Y(e, r.value, this.formEl);
|
|
1584
|
+
l.length > 0 ? t[e.name] = l : delete t[e.name], this.errors = t, this.hasError = Object.keys(t).length > 0, this.form.emit({
|
|
1585
|
+
event: "input",
|
|
1586
|
+
field: e.name,
|
|
1587
|
+
value: r.type === "checkbox" ? this.values[e.name] : r.value,
|
|
1588
|
+
message: `${e.name} updated`
|
|
1589
|
+
//data: this.makeFormData()
|
|
1590
|
+
});
|
|
1779
1591
|
}
|
|
1780
1592
|
handleSubmit() {
|
|
1781
|
-
var n,
|
|
1593
|
+
var n, e;
|
|
1782
1594
|
if (!this.isSubmitting) {
|
|
1783
1595
|
if (this.isSubmitting = !0, this.validateForm(), this.hasError) {
|
|
1784
1596
|
this.isSubmitting = !1, this.form.emit({
|
|
@@ -1787,7 +1599,7 @@ const yn = ".mt-20{margin-top:1.25rem}", vn = yn, wn = class {
|
|
|
1787
1599
|
success: !1,
|
|
1788
1600
|
message: this.errorMessage
|
|
1789
1601
|
//data: this.makeFormData()
|
|
1790
|
-
}),
|
|
1602
|
+
}), h({
|
|
1791
1603
|
category: "ui-component",
|
|
1792
1604
|
parentContext: null,
|
|
1793
1605
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -1802,11 +1614,11 @@ const yn = ".mt-20{margin-top:1.25rem}", vn = yn, wn = class {
|
|
|
1802
1614
|
validated: !0,
|
|
1803
1615
|
message: "Form data validated successfully"
|
|
1804
1616
|
//data: this.getFormData()
|
|
1805
|
-
}),
|
|
1617
|
+
}), h({
|
|
1806
1618
|
category: "ui-component",
|
|
1807
1619
|
parentContext: null,
|
|
1808
1620
|
tag: this.el.tagName.toLowerCase(),
|
|
1809
|
-
name: `${(
|
|
1621
|
+
name: `${(e = this.formBtnLabel) === null || e === void 0 ? void 0 : e.toLowerCase()}/validated` || "",
|
|
1810
1622
|
action: "click"
|
|
1811
1623
|
}), this.errors = {}, this.formEl.reset(), this.isSubmitting = !1;
|
|
1812
1624
|
}
|
|
@@ -1815,14 +1627,14 @@ const yn = ".mt-20{margin-top:1.25rem}", vn = yn, wn = class {
|
|
|
1815
1627
|
return this.makeFormData();
|
|
1816
1628
|
}
|
|
1817
1629
|
render() {
|
|
1818
|
-
const n = this.parsedFields.filter((r) => r.type === "hidden"),
|
|
1819
|
-
return
|
|
1630
|
+
const n = this.parsedFields.filter((r) => r.type === "hidden"), e = this.parsedFields.filter((r) => r.type !== "hidden");
|
|
1631
|
+
return i("form", { key: "1418bbac3ea7c994bf363602e6ddd18ed3c6c661", ref: (r) => this.formEl = r, autocomplete: "on", onSubmit: this.handleSubmit }, i("div", { key: "ae6f05d50a1c32312e585d55f0b5d64b0dd1fc9c" }, i("slot", { key: "09c9ddd0d3b77ae9cbcb54389b799af7a6fc6c9e" }), n.map((r, t) => i("eds-input", { key: t, type: "hidden", name: r.name, value: r.value })), e.map((r, t) => {
|
|
1820
1632
|
var l, a;
|
|
1821
|
-
return this.isFieldVisible(r) ?
|
|
1822
|
-
})), this.formBtn &&
|
|
1633
|
+
return this.isFieldVisible(r) ? i("eds-input-field", { key: t, name: r.name, id: `${this.name}_${r.name}`, label: r.label, placeholder: r.placeholder, value: this.values[r.name] || null, type: r.type, icon: r.icon || null, disabled: r.disabled, required: r.required, maxLength: r.maxlength, hint: r.hint, link: r.link, message: r.message, error: ((l = this.errors[r.name]) === null || l === void 0 ? void 0 : l.length) > 0, errorMessage: (a = this.errors[r.name]) === null || a === void 0 ? void 0 : a.join("<br />"), onInput: (o) => this.handleInput(o, r), onChange: (o) => this.handleChange(o, r), class: t > 0 ? "mt-20" : "", options: r.options }) : null;
|
|
1634
|
+
})), this.formBtn && i("div", { key: "af6ce29d25ae2e7c71537618456308891ff8abf4", class: "mt-20" }, i("eds-button", { key: "1442f4f6b924533f9aa46bd22e1d0adf69561370", intent: "primary", label: this.formBtnLabel, disabled: this.isSubmitting, loading: this.isSubmitting, onClick: () => this.handleSubmit() })));
|
|
1823
1635
|
}
|
|
1824
1636
|
get el() {
|
|
1825
|
-
return
|
|
1637
|
+
return c(this);
|
|
1826
1638
|
}
|
|
1827
1639
|
static get watchers() {
|
|
1828
1640
|
return {
|
|
@@ -1830,10 +1642,10 @@ const yn = ".mt-20{margin-top:1.25rem}", vn = yn, wn = class {
|
|
|
1830
1642
|
};
|
|
1831
1643
|
}
|
|
1832
1644
|
};
|
|
1833
|
-
|
|
1834
|
-
const
|
|
1645
|
+
Q.style = J;
|
|
1646
|
+
const K = ".bg-default{background-color:var(--grey-200)}.bg-darker{background-color:var(--grey-400)}.bg-inverse{background-color:var(--white)}.bg-strongest{background-color:var(--black)}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0rem}.z-\\[999999\\]{z-index:999999}.overflow-y-scroll{overflow-y:scroll}.flex{display:flex}.inline-flex{display:inline-flex}.min-h-full{min-height:100%}.flex-col{flex-direction:column}.w-full{width:100%}.top-0{top:0rem}.mx-auto{margin-left:auto;margin-right:auto}.mt-auto{margin-top:auto}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.px-16{padding-left:1rem;padding-right:1rem}.py-16{padding-top:1rem;padding-bottom:1rem}.mt-28{margin-top:1.75rem}.gap-y-8{row-gap:0.5rem}.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)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.rounded-xs{border-radius:4px}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.hover\\:text-lighter:hover{color:var(--grey-600)}.w-fit{width:-moz-fit-content;width:fit-content}", Z = K, nn = class {
|
|
1835
1647
|
constructor(n) {
|
|
1836
|
-
s(this, n), this.menuClose =
|
|
1648
|
+
s(this, n), this.menuClose = f(this, "menuClose", 7), this.links = void 0, this.menuLinks = void 0, this.homeUrl = "/", this.inverseHeader = !1, this.isMenuOpen = !1;
|
|
1837
1649
|
}
|
|
1838
1650
|
/**
|
|
1839
1651
|
* Listens for the toggleMenu event to open or close the menu.
|
|
@@ -1869,7 +1681,7 @@ const kn = ".bg-default{background-color:var(--grey-200)}.bg-darker{background-c
|
|
|
1869
1681
|
* @returns {any[]} Array of parsed link objects
|
|
1870
1682
|
*/
|
|
1871
1683
|
get parsedLinks() {
|
|
1872
|
-
return
|
|
1684
|
+
return b(this.links);
|
|
1873
1685
|
}
|
|
1874
1686
|
/**
|
|
1875
1687
|
* Parses the `menuLinks` prop into an array of link objects.
|
|
@@ -1878,55 +1690,29 @@ const kn = ".bg-default{background-color:var(--grey-200)}.bg-darker{background-c
|
|
|
1878
1690
|
* @returns {any[]} Array of parsed menu link objects
|
|
1879
1691
|
*/
|
|
1880
1692
|
get parsedMenuLinks() {
|
|
1881
|
-
return
|
|
1882
|
-
}
|
|
1883
|
-
render() {
|
|
1884
|
-
return this.isMenuOpen ? e("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, e("div", { class: "flex min-h-full flex-col" }, e("div", { class: `w-full sticky top-0 ${this.inverseHeader ? "bg-strongest" : "bg-default"}` }, e("div", { class: "mx-auto flex items-center justify-between" }, e("div", { class: "mr-auto w-[200px] h-[85px]" }, e("eds-logo", { type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), e("div", { class: "px-16" }, e("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), e("div", { class: "py-16 px-16" }, e("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((n, i) => e("eds-link", { label: n.label, key: i, 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" }))), e("eds-block-break", null), e("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((n, i) => e("eds-link", { label: n.label, key: i, 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" }))), e("nav", { class: "mt-28 flex flex-col gap-y-8" }, e("slot", null))), e("div", { class: "mt-auto" }, e("eds-footer", { social: !0, "extra-class": "bg-darker" })))) : null;
|
|
1885
|
-
}
|
|
1886
|
-
};
|
|
1887
|
-
Sn.style = zn;
|
|
1888
|
-
const Cn = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-full{border-radius:9999px}.overflow-hidden{overflow:hidden}.bg-inverse{background-color:var(--white)}.bg-current{background-color:currentColor}.bg-dark{background-color:var(--grey-300)}.bg-darker{background-color:var(--grey-400)}.bg-default{background-color:var(--grey-200)}.bg-strong{background-color:var(--grey-700)}.bg-strongest{background-color:var(--black)}.inset-0{inset:0rem}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.text-default{color:var(--black)}", En = Cn, F = {
|
|
1889
|
-
default: "#f2f2f2",
|
|
1890
|
-
dark: "#d8d8d8",
|
|
1891
|
-
strong: "#666666",
|
|
1892
|
-
black: "#000000"
|
|
1893
|
-
}, Fn = class {
|
|
1894
|
-
constructor(n) {
|
|
1895
|
-
s(this, n), this.size = 100, this.valueMin = 0, this.valueMax = 100, this.value = 60, this.thickness = 0.1, this.variant = "default";
|
|
1693
|
+
return b(this.menuLinks);
|
|
1896
1694
|
}
|
|
1897
1695
|
render() {
|
|
1898
|
-
|
|
1899
|
-
width: `${l}px`,
|
|
1900
|
-
height: `${l}px`,
|
|
1901
|
-
background: `conic-gradient(#00e766 0deg ${a}deg, ${f} ${a}deg 360deg)`
|
|
1902
|
-
}, k = {
|
|
1903
|
-
width: `${d}px`,
|
|
1904
|
-
height: `${d}px`,
|
|
1905
|
-
top: `${o}px`,
|
|
1906
|
-
left: `${o}px`
|
|
1907
|
-
}, z = {
|
|
1908
|
-
fontSize: `${h}px`
|
|
1909
|
-
};
|
|
1910
|
-
return e("div", { key: "a549808bcd0fc64583f90f284a7b139386e71be7", role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": i, "aria-label": `Gauge value: ${i} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: w }, e("div", { key: "c3efb2d512f96e4c3a9371416c6d9bb938cab43e", class: "absolute bg-inverse rounded-full", style: k }), e("div", { key: "7a6254e22240301b6716a2d6fed785196a39cdd8", class: "absolute inset-0 flex items-center justify-center" }, e("span", { key: "78d8d1b7c442f75947b2813bbb569c566357c121", class: "f-body-01 text-default", style: z }, i)));
|
|
1696
|
+
return this.isMenuOpen ? i("div", { class: "eds-full-screen bg-default fixed inset-0 z-[999999] overflow-y-scroll" }, i("div", { class: "flex min-h-full flex-col" }, i("div", { class: `w-full sticky top-0 ${this.inverseHeader ? "bg-strongest" : "bg-default"}` }, i("div", { class: "mx-auto flex items-center justify-between" }, i("div", { class: "mr-auto w-[200px] h-[85px]" }, i("eds-logo", { type: this.inverseHeader ? "color-white" : "color", href: this.homeUrl })), i("div", { class: "px-16" }, i("eds-button", { "aria-label": "Close menu", intent: "ghostInverse", icon: "close", onClick: () => this.closeMenu() })))), i("div", { class: "py-16 px-16" }, i("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedLinks.map((n, e) => i("eds-link", { label: n.label, key: e, url: n.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "arrow-right" }))), i("eds-block-break", null), i("nav", { class: "mt-28 flex flex-col gap-y-8" }, this.parsedMenuLinks.map((n, e) => i("eds-link", { label: n.label, key: e, url: n.url, intent: "tertiary", size: "large", class: "effect-color effect-focus rounded-xs f-heading-02 hover:text-lighter w-fit", onClick: () => this.closeMenu(), icon: "chevron-right" }))), i("nav", { class: "mt-28 flex flex-col gap-y-8" }, i("slot", null))), i("div", { class: "mt-auto" }, i("eds-footer", { social: !0, "extra-class": "bg-darker" })))) : null;
|
|
1911
1697
|
}
|
|
1912
1698
|
};
|
|
1913
|
-
|
|
1914
|
-
const
|
|
1699
|
+
nn.style = Z;
|
|
1700
|
+
const en = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.z-10{z-index:10}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strongest{background-color:var(--black)}.mr-auto{margin-right:auto}.w-\\[200px\\]{width:200px}.h-\\[85px\\]{height:85px}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hidden{display:none}.gap-x-2{-moz-column-gap:0.125rem;column-gap:0.125rem}.after\\:effect-opacity::after{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.whitespace-nowrap{white-space:nowrap}.\\!text-current{color:currentColor !important}.overflow-hidden{overflow:hidden}.after\\:\\!border-transparent::after{border-color:var(--transparent) !important}.hover\\:after\\:\\!border-transparent:hover::after{border-color:var(--transparent) !important}.after\\:opacity-0::after{opacity:0}.hover\\:after\\:opacity-100:hover::after{opacity:1}.px-16{padding-left:1rem;padding-right:1rem}@media (min-width: 750px){.md\\:flex{display:flex}.md\\:hidden{display:none}}", rn = en, tn = class {
|
|
1915
1701
|
constructor(n) {
|
|
1916
|
-
s(this, n), this.toggleheadermenu =
|
|
1702
|
+
s(this, n), this.toggleheadermenu = f(this, "toggleheadermenu", 7), this.homeUrl = "/", this.links = void 0, this.headerVariant = "default", this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
|
|
1917
1703
|
}
|
|
1918
1704
|
onAuthStatusChanged(n) {
|
|
1919
|
-
var
|
|
1920
|
-
this.isAuthenticated = (
|
|
1705
|
+
var e;
|
|
1706
|
+
this.isAuthenticated = (e = n.detail) === null || e === void 0 ? void 0 : e.authenticated;
|
|
1921
1707
|
}
|
|
1922
1708
|
componentDidLoad() {
|
|
1923
|
-
this.hostEl.querySelectorAll("eds-link").forEach((
|
|
1709
|
+
this.hostEl.querySelectorAll("eds-link").forEach((e) => this.emitContext(e));
|
|
1924
1710
|
}
|
|
1925
1711
|
emitContext(n) {
|
|
1926
|
-
const
|
|
1712
|
+
const e = new CustomEvent("parentContext", {
|
|
1927
1713
|
detail: { componentName: this.hostEl.tagName.toLowerCase(), identifier: null }
|
|
1928
1714
|
});
|
|
1929
|
-
n.dispatchEvent(
|
|
1715
|
+
n.dispatchEvent(e);
|
|
1930
1716
|
}
|
|
1931
1717
|
handleToggleMenu() {
|
|
1932
1718
|
this.toggleheadermenu.emit(!this.isMenuOpen);
|
|
@@ -1935,22 +1721,22 @@ const In = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
1935
1721
|
this.isUserMenuOpen = !this.isUserMenuOpen;
|
|
1936
1722
|
}
|
|
1937
1723
|
get parsedLinks() {
|
|
1938
|
-
return
|
|
1724
|
+
return b(this.links);
|
|
1939
1725
|
}
|
|
1940
1726
|
render() {
|
|
1941
1727
|
const n = {
|
|
1942
1728
|
default: "text-default bg-dark",
|
|
1943
1729
|
inverse: "text-default bg-inverse",
|
|
1944
1730
|
strong: "text-inverse bg-strongest"
|
|
1945
|
-
},
|
|
1946
|
-
return
|
|
1731
|
+
}, e = n[this.headerVariant] || n.default, r = this.headerVariant === "strong" ? "color-white" : "color";
|
|
1732
|
+
return i("header", { key: "3c6ae4789993e140ee8a00e7f32c8ff3a2793b87", class: `flex items-center justify-between relative z-10 ${e}` }, i("div", { key: "a406f073ae110622ad8930c61438b46d16553362", class: "mr-auto w-[200px] h-[85px]" }, i("eds-logo", { key: "19c91de446b76f76e97f160c0af538db2637ffdc", type: r, href: this.homeUrl })), this.parsedLinks && i("nav", { key: "921c87b668b25abc8117014880c9669a96c04122", 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: "b0de4a0eaafb7409eeedc77104b39fed8a55441b", 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: "2b3d292703b8b7083a7ae1dcfbefbd091d5a744b" }), this.menuEnabled && i("div", { key: "10d16f0f0ecdc450acf900dd8d7d7b439deb8dcd", class: "md:hidden flex overflow-hidden px-16" }, i("eds-button", { key: "2e62e0a57bf008d0e566988011beab9a09f7774d", "aria-label": "Menu", intent: this.headerVariant === "default" ? "ghost" : "ghostInverse", icon: "menu", size: "small", onClick: () => this.handleToggleMenu() })));
|
|
1947
1733
|
}
|
|
1948
1734
|
get hostEl() {
|
|
1949
|
-
return
|
|
1735
|
+
return c(this);
|
|
1950
1736
|
}
|
|
1951
1737
|
};
|
|
1952
|
-
|
|
1953
|
-
const
|
|
1738
|
+
tn.style = rn;
|
|
1739
|
+
const Kn = class {
|
|
1954
1740
|
constructor(n) {
|
|
1955
1741
|
s(this, n), this.TagName = null, this.icon = "arrow-right", this.class = "", this.IconComponent = null;
|
|
1956
1742
|
}
|
|
@@ -1969,14 +1755,14 @@ const ze = class {
|
|
|
1969
1755
|
}
|
|
1970
1756
|
render() {
|
|
1971
1757
|
const n = this.IconComponent;
|
|
1972
|
-
return n ?
|
|
1758
|
+
return n ? i(n, { class: this.class }) : null;
|
|
1973
1759
|
}
|
|
1974
1760
|
static get watchers() {
|
|
1975
1761
|
return {
|
|
1976
1762
|
icon: ["iconChanged"]
|
|
1977
1763
|
};
|
|
1978
1764
|
}
|
|
1979
|
-
},
|
|
1765
|
+
}, ln = `/*
|
|
1980
1766
|
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
1981
1767
|
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
1982
1768
|
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
@@ -2058,7 +1844,7 @@ video {
|
|
|
2058
1844
|
|
|
2059
1845
|
.opacity-100 {
|
|
2060
1846
|
opacity: 1;
|
|
2061
|
-
}`,
|
|
1847
|
+
}`, on = ln, an = class {
|
|
2062
1848
|
constructor(n) {
|
|
2063
1849
|
s(this, n), this.img = null, this.handleLoad = () => {
|
|
2064
1850
|
this.loaded = !0, this.showBg = !1;
|
|
@@ -2073,24 +1859,24 @@ video {
|
|
|
2073
1859
|
}
|
|
2074
1860
|
render() {
|
|
2075
1861
|
const n = {};
|
|
2076
|
-
return this.lazyload && (n.loading = "lazy", n.decoding = "async"),
|
|
1862
|
+
return this.lazyload && (n.loading = "lazy", n.decoding = "async"), i("div", { key: "13ed3aa346c99321c609e49ce045b6361921350f", class: {
|
|
2077
1863
|
"items-center justify-center": !0,
|
|
2078
1864
|
"effect-bg-pattern": this.lazyload && this.showBg
|
|
2079
|
-
} },
|
|
1865
|
+
} }, i("picture", { key: "56aa0ed8fd1ef8f9faf6ad576dd05edc34139c9b" }, this.formats.map((e) => i("source", { type: e.type, srcSet: e.srcset, media: e.media, sizes: this.sizes })), i("img", Object.assign({ key: "78e3ed9adcfe423d48388bf30140f4b70649faf7", ref: (e) => this.img = e, class: {
|
|
2080
1866
|
"effect-opacity object-cover object-center": !0,
|
|
2081
1867
|
"opacity-100": this.loaded,
|
|
2082
1868
|
"opacity-0": !this.loaded
|
|
2083
1869
|
}, width: this.width, height: this.height, sizes: this.sizes, src: this.src, srcSet: this.srcset, alt: this.alt }, n, { onLoad: this.handleLoad, onError: this.handleError, onTransitionEnd: this.handleTransitionEnd }))));
|
|
2084
1870
|
}
|
|
2085
1871
|
get imgElement() {
|
|
2086
|
-
return
|
|
1872
|
+
return c(this);
|
|
2087
1873
|
}
|
|
2088
1874
|
};
|
|
2089
|
-
|
|
2090
|
-
const
|
|
1875
|
+
an.style = on;
|
|
1876
|
+
const Zn = class {
|
|
2091
1877
|
constructor(n) {
|
|
2092
|
-
s(this, n), this.handleInput = (
|
|
2093
|
-
const r =
|
|
1878
|
+
s(this, n), this.handleInput = (e) => {
|
|
1879
|
+
const r = e.target;
|
|
2094
1880
|
this.innerVal = r.value, this.maxLength && this.type === "textarea" && (this.maxLengthReached = r.value.length >= this.maxLength);
|
|
2095
1881
|
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.checked = void 0, this.type = "text", this.required = !1, this.value = void 0, this.icon = void 0, this.maxLength = void 0, this.options = [], this.extraClass = void 0, this.innerVal = "", this.maxLengthReached = !1;
|
|
2096
1882
|
}
|
|
@@ -2104,23 +1890,23 @@ const Se = class {
|
|
|
2104
1890
|
return this.el.querySelector("input");
|
|
2105
1891
|
}
|
|
2106
1892
|
render() {
|
|
2107
|
-
const n = !!this.icon,
|
|
2108
|
-
return
|
|
1893
|
+
const n = !!this.icon, e = this.hasMessage || this.error ? `${this.name}-error` : "";
|
|
1894
|
+
return i("div", { key: "5c66c14b19aa3d5fc37e7a77a2d1194fa0be9b8c", 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", { 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, class: `
|
|
2109
1895
|
${this.extraClass || ""}
|
|
2110
1896
|
input ${this.type === "radio" ? "input-radio" : this.type === "checkbox" ? "input-checkbox" : ""}
|
|
2111
1897
|
${n && this.type !== "radio" && this.type !== "checkbox" ? "input-icon pl-36" : ""}
|
|
2112
1898
|
${this.error ? "input-error" : ""}
|
|
2113
|
-
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby":
|
|
1899
|
+
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": e, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }), this.maxLength && this.type === "textarea" && i("span", { key: "4326db3729dea8bbddb7a109a90424aa832aded7", 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: "df2f5598aedd36b9cb2ce886fb8ea08da58dc5ff", class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled, "text-lightest"}`, icon: this.icon }));
|
|
2114
1900
|
}
|
|
2115
1901
|
get el() {
|
|
2116
|
-
return
|
|
1902
|
+
return c(this);
|
|
2117
1903
|
}
|
|
2118
1904
|
static get watchers() {
|
|
2119
1905
|
return {
|
|
2120
1906
|
value: ["onValueChanged"]
|
|
2121
1907
|
};
|
|
2122
1908
|
}
|
|
2123
|
-
},
|
|
1909
|
+
}, sn = `:root {
|
|
2124
1910
|
font-optical-sizing: auto;
|
|
2125
1911
|
}
|
|
2126
1912
|
html,
|
|
@@ -9880,22 +9666,22 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9880
9666
|
}
|
|
9881
9667
|
}
|
|
9882
9668
|
|
|
9883
|
-
`,
|
|
9669
|
+
`, dn = sn, cn = class {
|
|
9884
9670
|
constructor(n) {
|
|
9885
|
-
s(this, n), this.handleNativeInput = (
|
|
9671
|
+
s(this, n), this.handleNativeInput = (e) => {
|
|
9886
9672
|
var r;
|
|
9887
|
-
if ((r = this.onInput) === null || r === void 0 || r.call(this,
|
|
9888
|
-
const t =
|
|
9673
|
+
if ((r = this.onInput) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9674
|
+
const t = e.target.value;
|
|
9889
9675
|
this.hostEl.dispatchEvent(new CustomEvent("oninput", {
|
|
9890
9676
|
detail: { value: t },
|
|
9891
9677
|
bubbles: !1,
|
|
9892
9678
|
composed: !0
|
|
9893
9679
|
}));
|
|
9894
9680
|
}
|
|
9895
|
-
}, this.handleNativeChange = (
|
|
9681
|
+
}, this.handleNativeChange = (e) => {
|
|
9896
9682
|
var r;
|
|
9897
|
-
if ((r = this.onChange) === null || r === void 0 || r.call(this,
|
|
9898
|
-
const t =
|
|
9683
|
+
if ((r = this.onChange) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9684
|
+
const t = e.target;
|
|
9899
9685
|
this.hostEl.dispatchEvent(new CustomEvent("onchange", {
|
|
9900
9686
|
detail: { value: t.value },
|
|
9901
9687
|
bubbles: !1,
|
|
@@ -9933,8 +9719,8 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9933
9719
|
icon: this.icon,
|
|
9934
9720
|
checked: this.checked
|
|
9935
9721
|
};
|
|
9936
|
-
return
|
|
9937
|
-
var
|
|
9722
|
+
return i("div", { key: "e46f1b26212ee915c2fde3fa0c58a152005d2b50", class: "space-y-8" }, this.type === "checkbox" || this.type === "radio" ? this.parsedOptions.length > 0 ? i("fieldset", { class: "space-y-4 mt-8" }, i("div", { class: "flex justify-between" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((e) => i("div", { class: "flex items-center gap-x-2", key: e.value }, i("eds-input", Object.assign({}, n, { value: e.value, checked: (typeof this.value == "string" ? this.value.split(",") : []).includes(String(e.value)) })), i("eds-input-label", { name: `${this.name}-${e.value}`, label: e.label })))) : i("div", { class: "flex items-center gap-x-8" }, i("eds-input", Object.assign({}, n, { value: this.value, checked: this.value === "on" })), this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })) : i("div", null, i("div", { class: "flex justify-between" }, this.label && i("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }), this.hint && i("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === "select" ? i("eds-input-select", Object.assign({}, n, { options: this.parsedOptions })) : this.type === "file" ? i("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required }) : this.type === "search" ? i("eds-input-search", { name: "search-box" }) : this.type === "range" ? (() => {
|
|
9723
|
+
var e, r, t;
|
|
9938
9724
|
const l = {
|
|
9939
9725
|
name: n.name,
|
|
9940
9726
|
inputId: n.id || n.name,
|
|
@@ -9943,35 +9729,35 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9943
9729
|
onInput: n.onInput,
|
|
9944
9730
|
onChange: n.onChange
|
|
9945
9731
|
}, a = this.parsedOptions, o = typeof this.value == "string" ? parseFloat(this.value) : this.value || 0;
|
|
9946
|
-
return
|
|
9947
|
-
})() :
|
|
9732
|
+
return i("eds-input-range", Object.assign({}, l, { min: (e = a[0]) === null || e === void 0 ? void 0 : e.value, max: (r = a[1]) === null || r === void 0 ? void 0 : r.value, step: (t = a[2]) === null || t === void 0 ? void 0 : t.value, value: o }));
|
|
9733
|
+
})() : i("eds-input", Object.assign({}, n))), i("eds-input-footer", { key: "ecf3ee5c0400749f1d89b53edfdee6fe62ca2a32", id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }));
|
|
9948
9734
|
}
|
|
9949
9735
|
get hostEl() {
|
|
9950
|
-
return
|
|
9736
|
+
return c(this);
|
|
9951
9737
|
}
|
|
9952
9738
|
};
|
|
9953
|
-
|
|
9954
|
-
const
|
|
9739
|
+
cn.style = dn;
|
|
9740
|
+
const ne = class {
|
|
9955
9741
|
constructor(n) {
|
|
9956
9742
|
s(this, n), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
9957
9743
|
}
|
|
9958
9744
|
render() {
|
|
9959
|
-
return
|
|
9745
|
+
return i("div", { key: "d5424778da81d6558246efe97917d3e3ccfa9aaa", class: "space-y-4 mt-4" }, this.error && this.errorMessage && i("div", { key: "e915fc1f4719f48eca5a831ac72913d2f91f633b", id: `error_${this.name}`, class: "text-error flex items-center" }, i("eds-icon-wrapper", { key: "9cc87cfd4955766947a2581604fe1e072f8d82a9", icon: "warning" }), i("p", { key: "564a2397fb7e8185e43e1c2be216c76060e7498e", class: "f-ui-04 ml-4", innerHTML: this.errorMessage })), this.message && i("p", { key: "24e0702df7e5c2fe4ef0cc6755159fefe76b70a7", id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && i("a", { key: "9e3720a3ded9d755afd7755104df0942246f1fbe", href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label));
|
|
9960
9746
|
}
|
|
9961
|
-
},
|
|
9747
|
+
}, ee = class {
|
|
9962
9748
|
constructor(n) {
|
|
9963
9749
|
s(this, n), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
9964
9750
|
}
|
|
9965
9751
|
render() {
|
|
9966
|
-
return
|
|
9752
|
+
return i("label", { key: "d700690a67a8348836aec27d2ff4f4d4ee18b9c8", htmlFor: this.name, class: `input-label ${this.disabled ? "text-lighter" : ""}` }, this.label, this.required && i("span", { key: "9b52c053652db132a9bdb2d9fc64c569a529c2d9" }, i("span", { key: "cd17268b6048ebaa70dc7f905fc7f7bf3ed3fa34", "aria-hidden": "true" }, "*"), i("span", { key: "352d7b5ef080336a5c7b53e0b710d5b0d7aa0efe", class: "sr-only" }, "required")));
|
|
9967
9753
|
}
|
|
9968
|
-
},
|
|
9754
|
+
}, ie = class {
|
|
9969
9755
|
constructor(n) {
|
|
9970
|
-
s(this, n), this.edsrange =
|
|
9971
|
-
const r =
|
|
9756
|
+
s(this, n), this.edsrange = f(this, "edsrange", 7), this.onInput = (e) => {
|
|
9757
|
+
const r = e.target;
|
|
9972
9758
|
this.sliderVal = parseInt(r.value, 10);
|
|
9973
|
-
}, this.onChange = (
|
|
9974
|
-
const r =
|
|
9759
|
+
}, this.onChange = (e) => {
|
|
9760
|
+
const r = e.target;
|
|
9975
9761
|
this.sliderVal = parseInt(r.value, 10), this.edsrange.emit(this.sliderVal);
|
|
9976
9762
|
}, 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;
|
|
9977
9763
|
}
|
|
@@ -9989,29 +9775,29 @@ const Ce = class {
|
|
|
9989
9775
|
return this.inputElement;
|
|
9990
9776
|
}
|
|
9991
9777
|
render() {
|
|
9992
|
-
return
|
|
9778
|
+
return i("div", { key: "5c55f65e2acd6f4554af7d8ba513c9d9dfd445eb", class: "relative flex flex-col items-start space-y-2" }, i("input", { key: "4fcd0d3d978ddba7929958dd22a283c2ba61ee48", 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: "c63b223e6af149efb68cabbe5228e77b09ca2168", id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal));
|
|
9993
9779
|
}
|
|
9994
9780
|
get el() {
|
|
9995
|
-
return
|
|
9781
|
+
return c(this);
|
|
9996
9782
|
}
|
|
9997
9783
|
static get watchers() {
|
|
9998
9784
|
return {
|
|
9999
9785
|
value: ["onValueChange"]
|
|
10000
9786
|
};
|
|
10001
9787
|
}
|
|
10002
|
-
},
|
|
9788
|
+
}, re = class {
|
|
10003
9789
|
constructor(n) {
|
|
10004
|
-
s(this, n), this.search =
|
|
10005
|
-
(
|
|
10006
|
-
}, this.onChange = (
|
|
9790
|
+
s(this, n), this.search = f(this, "search", 7), this.keydownListener = (e) => {
|
|
9791
|
+
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), this.inputElement && !this.disabled && this.inputElement.focus());
|
|
9792
|
+
}, this.onChange = (e) => {
|
|
10007
9793
|
this.search.emit({
|
|
10008
9794
|
event: "change",
|
|
10009
|
-
value:
|
|
10010
|
-
}),
|
|
9795
|
+
value: e.target.value
|
|
9796
|
+
}), h({
|
|
10011
9797
|
category: "ui-component",
|
|
10012
9798
|
parentContext: null,
|
|
10013
9799
|
tag: this.el.tagName.toLowerCase(),
|
|
10014
|
-
name:
|
|
9800
|
+
name: e.target.value || "",
|
|
10015
9801
|
action: "search"
|
|
10016
9802
|
});
|
|
10017
9803
|
}, this.name = void 0, this.inputId = "search-main", this.placeholder = "Search...", this.value = void 0, this.disabled = !1, this.required = !1, this.decorate = void 0, this.label = "Search";
|
|
@@ -10026,8 +9812,8 @@ const Ce = class {
|
|
|
10026
9812
|
return this.inputElement;
|
|
10027
9813
|
}
|
|
10028
9814
|
render() {
|
|
10029
|
-
return
|
|
10030
|
-
key: "
|
|
9815
|
+
return i("div", { key: "27d6871df962e2bd27eac38b1a105142b1b68bab", class: "relative flex items-center" }, i("eds-icon-wrapper", { key: "b4b497cb435c673a550b169dea93fbc7006d0c5e", icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest", "aria-hidden": "true" }), i("input", {
|
|
9816
|
+
key: "1419cd8f5b8791b5b812c57ba649567e1b6ec0bb",
|
|
10031
9817
|
id: this.inputId || this.name,
|
|
10032
9818
|
name: this.name,
|
|
10033
9819
|
placeholder: this.placeholder,
|
|
@@ -10042,25 +9828,25 @@ const Ce = class {
|
|
|
10042
9828
|
}));
|
|
10043
9829
|
}
|
|
10044
9830
|
get el() {
|
|
10045
|
-
return
|
|
9831
|
+
return c(this);
|
|
10046
9832
|
}
|
|
10047
|
-
},
|
|
9833
|
+
}, te = class {
|
|
10048
9834
|
constructor(n) {
|
|
10049
|
-
s(this, n), this.edsselect =
|
|
10050
|
-
const r =
|
|
9835
|
+
s(this, n), this.edsselect = f(this, "edsselect", 7), this.handleChange = (e) => {
|
|
9836
|
+
const r = e.target;
|
|
10051
9837
|
this.edsselect.emit(r.value);
|
|
10052
9838
|
}, 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;
|
|
10053
9839
|
}
|
|
10054
9840
|
render() {
|
|
10055
|
-
const n = this.inputId || this.name,
|
|
10056
|
-
return
|
|
9841
|
+
const n = this.inputId || this.name, e = this.placeholder || `Please select ${this.name}`, r = this.hasMessage || this.error ? `${this.name}-error` : void 0;
|
|
9842
|
+
return i("div", { key: "80cbdab87f5baa21df5edc857685c3af4dee3a58", class: "relative" }, i("select", { key: "4e8f84fd9dbc63df7981898cadc24450f48aa92a", id: n, name: this.name, class: {
|
|
10057
9843
|
input: !0,
|
|
10058
9844
|
"input-error": this.error,
|
|
10059
9845
|
"px-4": !0,
|
|
10060
9846
|
"py-2": !0
|
|
10061
|
-
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": r, disabled: this.disabled, required: this.required, onChange: this.handleChange },
|
|
9847
|
+
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": r, disabled: this.disabled, required: this.required, onChange: this.handleChange }, i("option", { key: "54b90339cae4c5c80711793a8c68c4587e0c2495", 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: "6c9f0a0606f1d6f282c756f84ace7618584d5fa3", 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: "4524af72468d3b37c01b0252d4b6b2bf7454514e", class: "w-20 h-20", icon: "chevron-right" })));
|
|
10062
9848
|
}
|
|
10063
|
-
},
|
|
9849
|
+
}, gn = `*,
|
|
10064
9850
|
::before,
|
|
10065
9851
|
::after {
|
|
10066
9852
|
box-sizing: border-box;
|
|
@@ -11297,7 +11083,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11297
11083
|
.lg\\:flex {
|
|
11298
11084
|
display: flex;
|
|
11299
11085
|
}
|
|
11300
|
-
}`,
|
|
11086
|
+
}`, hn = gn, fn = m([
|
|
11301
11087
|
"relative inline-flex justify-center items-center py-8 rounded-sm",
|
|
11302
11088
|
"effect-color effect-focus aria-disabled:text-lightest",
|
|
11303
11089
|
"cursor-pointer",
|
|
@@ -11422,7 +11208,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11422
11208
|
size: "small",
|
|
11423
11209
|
hasIcon: !1
|
|
11424
11210
|
}
|
|
11425
|
-
}),
|
|
11211
|
+
}), bn = class {
|
|
11426
11212
|
constructor(n) {
|
|
11427
11213
|
s(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;
|
|
11428
11214
|
}
|
|
@@ -11430,16 +11216,16 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11430
11216
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
11431
11217
|
}
|
|
11432
11218
|
handleClick(n) {
|
|
11433
|
-
var
|
|
11219
|
+
var e, r;
|
|
11434
11220
|
if (this.disabled) {
|
|
11435
11221
|
n.preventDefault();
|
|
11436
11222
|
return;
|
|
11437
11223
|
}
|
|
11438
|
-
|
|
11224
|
+
h({
|
|
11439
11225
|
category: "ui-component",
|
|
11440
11226
|
parentContext: this.parentContext,
|
|
11441
11227
|
tag: this.el.tagName.toLowerCase(),
|
|
11442
|
-
name: ((
|
|
11228
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((r = this.ariaLabel) === null || r === void 0 ? void 0 : r.toLowerCase()) || "",
|
|
11443
11229
|
action: "click"
|
|
11444
11230
|
});
|
|
11445
11231
|
}
|
|
@@ -11447,33 +11233,33 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11447
11233
|
return this.size;
|
|
11448
11234
|
}
|
|
11449
11235
|
renderLeftIcon() {
|
|
11450
|
-
return this.icon && this.iconPos === "left" ?
|
|
11236
|
+
return this.icon && this.iconPos === "left" ? i("span", { class: !this.external && !this.label ? "" : "flex" }, i("eds-icon-wrapper", { class: `
|
|
11451
11237
|
flex inline-flex items-center justify-center
|
|
11452
11238
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
11453
11239
|
`, icon: this.icon })) : null;
|
|
11454
11240
|
}
|
|
11455
11241
|
renderRightIcon() {
|
|
11456
|
-
return this.icon && this.iconPos === "right" ?
|
|
11242
|
+
return this.icon && this.iconPos === "right" ? i("span", { class: !this.external && !this.label ? "" : "flex" }, i("eds-icon-wrapper", { class: `
|
|
11457
11243
|
flex inline-flex items-center justify-center
|
|
11458
11244
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
11459
11245
|
`, icon: this.icon })) : null;
|
|
11460
11246
|
}
|
|
11461
11247
|
render() {
|
|
11462
|
-
const n = this.disabled ? "span" : "a",
|
|
11248
|
+
const n = this.disabled ? "span" : "a", e = fn({
|
|
11463
11249
|
intent: this.intent,
|
|
11464
11250
|
size: this.getLinkSize(),
|
|
11465
11251
|
iconSmall: this.iconSmall,
|
|
11466
11252
|
isActive: this.current,
|
|
11467
11253
|
hasIcon: !!this.icon
|
|
11468
11254
|
}), r = this.ariaLabel || this.label || "link", t = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
|
|
11469
|
-
return
|
|
11255
|
+
return i(n, { key: "8c7ab8b80b9765e83e4e57d59ba1b45fe36f15b7", 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: "94284b425a331f6a56a3e63db89fed5fa1a207c1", class: "z-1 relative inline-flex items-center justify-center" }, this.renderLeftIcon(), i("span", { key: "7496886c7c975d6795633c36b9cc8d31673d5a4b", class: t }, this.label), this.renderRightIcon()));
|
|
11470
11256
|
}
|
|
11471
11257
|
get el() {
|
|
11472
|
-
return
|
|
11258
|
+
return c(this);
|
|
11473
11259
|
}
|
|
11474
11260
|
};
|
|
11475
|
-
|
|
11476
|
-
const
|
|
11261
|
+
bn.style = hn;
|
|
11262
|
+
const xn = ".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}}", mn = xn, pn = class {
|
|
11477
11263
|
constructor(n) {
|
|
11478
11264
|
s(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
|
|
11479
11265
|
}
|
|
@@ -11486,7 +11272,7 @@ const Dn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11486
11272
|
* - `action`: The action, set as "click".
|
|
11487
11273
|
*/
|
|
11488
11274
|
handleClick() {
|
|
11489
|
-
|
|
11275
|
+
h({
|
|
11490
11276
|
category: "ui-component",
|
|
11491
11277
|
tag: this.el.tagName.toLowerCase(),
|
|
11492
11278
|
name: "logo",
|
|
@@ -11497,37 +11283,37 @@ const Dn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11497
11283
|
* Determines the appropriate SVG content based on the `orientation` and `type` props.
|
|
11498
11284
|
*/
|
|
11499
11285
|
getLogo() {
|
|
11500
|
-
const
|
|
11286
|
+
const e = {
|
|
11501
11287
|
horizontal: {
|
|
11502
|
-
color:
|
|
11503
|
-
black:
|
|
11504
|
-
"color-white":
|
|
11505
|
-
white:
|
|
11506
|
-
"no-bg":
|
|
11288
|
+
color: p,
|
|
11289
|
+
black: w,
|
|
11290
|
+
"color-white": k,
|
|
11291
|
+
white: z,
|
|
11292
|
+
"no-bg": C
|
|
11507
11293
|
},
|
|
11508
11294
|
vertical: {
|
|
11509
|
-
color:
|
|
11510
|
-
black:
|
|
11511
|
-
"color-white":
|
|
11512
|
-
white:
|
|
11513
|
-
"no-bg":
|
|
11295
|
+
color: S,
|
|
11296
|
+
black: E,
|
|
11297
|
+
"color-white": F,
|
|
11298
|
+
white: L,
|
|
11299
|
+
"no-bg": I
|
|
11514
11300
|
}
|
|
11515
11301
|
}[this.orientation];
|
|
11516
|
-
if (!
|
|
11517
|
-
return
|
|
11518
|
-
const r =
|
|
11519
|
-
return r ||
|
|
11302
|
+
if (!e)
|
|
11303
|
+
return p;
|
|
11304
|
+
const r = e[this.type];
|
|
11305
|
+
return r || e.color;
|
|
11520
11306
|
}
|
|
11521
11307
|
render() {
|
|
11522
11308
|
const n = this.getLogo();
|
|
11523
|
-
return
|
|
11309
|
+
return i("a", { key: "ab11d53e1f417221dcca2de441c7b3efa96f99a5", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, i("div", { key: "0d4a6b970788534d34d55b28fe83407ce7c4e00e", innerHTML: n }));
|
|
11524
11310
|
}
|
|
11525
11311
|
get el() {
|
|
11526
|
-
return
|
|
11312
|
+
return c(this);
|
|
11527
11313
|
}
|
|
11528
11314
|
};
|
|
11529
|
-
|
|
11530
|
-
const
|
|
11315
|
+
pn.style = mn;
|
|
11316
|
+
const un = ".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.z-50{z-index:50}.z-9999999{z-index:9999999}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-0{top:0rem}.left-0{left:0rem}.top-20{top:1.25rem}.bottom-0{bottom:0rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.bg-dark{background-color:var(--grey-300)}.bg-strong{background-color:var(--grey-700)}.bg-strongest{background-color:var(--black)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}@media (min-width: 750px){.md\\:bottom-20{bottom:1.25rem}.md\\:w-auto{width:auto}.md\\:top-20{top:1.25rem}.md\\:top-1\\/2{top:50%}.md\\:left-1\\/2{left:50%}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:-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))}.md\\:-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))}.md\\:gap-y-12{row-gap:0.75rem}}", yn = un, vn = class {
|
|
11531
11317
|
constructor(n) {
|
|
11532
11318
|
s(this, n), this.heading = "", this.truncate = 1, this.position = "middle", this.inverseHeader = !1, this.isOpen = !1;
|
|
11533
11319
|
}
|
|
@@ -11578,7 +11364,7 @@ const Rn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
11578
11364
|
*/
|
|
11579
11365
|
async open() {
|
|
11580
11366
|
var n;
|
|
11581
|
-
this.isOpen = !0,
|
|
11367
|
+
this.isOpen = !0, h({
|
|
11582
11368
|
category: "ui-component",
|
|
11583
11369
|
parentContext: null,
|
|
11584
11370
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -11591,7 +11377,7 @@ const Rn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
11591
11377
|
*/
|
|
11592
11378
|
async close() {
|
|
11593
11379
|
var n;
|
|
11594
|
-
this.isOpen = !1,
|
|
11380
|
+
this.isOpen = !1, h({
|
|
11595
11381
|
category: "ui-component",
|
|
11596
11382
|
parentContext: null,
|
|
11597
11383
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -11625,82 +11411,143 @@ const Rn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
11625
11411
|
}
|
|
11626
11412
|
render() {
|
|
11627
11413
|
const n = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
11628
|
-
return
|
|
11629
|
-
key: "
|
|
11414
|
+
return i("div", { key: "affa340307adc5bdd637696b56a59e3f73cbf7e9", 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", {
|
|
11415
|
+
key: "e4359b32052a155f879070deea34fbca2fb67e3b",
|
|
11630
11416
|
class: "fixed inset-0 bg-dark bg-opacity-90",
|
|
11631
11417
|
onClick: () => this.close()
|
|
11632
|
-
}),
|
|
11418
|
+
}), i("div", { key: "ba95f463e8c807e2ac2e900b3167191908ca2f5d", class: `container absolute bg-inverse z-10 ${this.getModalPositionClasses()} grow justify-center` }, i("div", { key: "1fc4649d6ba728745e4f1ed73e8fb8bdac6eda59", 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: "731e7cb6c7aaa36bcda8d1c32bd1b8da9d85f253", id: n, class: `f-heading-04 ${this.getTruncateClass()}` }, this.heading), i("eds-button", { key: "89657ac29b27ce173569353f3101e998cb756eec", intent: "tertiary", icon: "close", "aria-label": "Close modal", onClick: () => this.close(), "extra-class": "ml-8 text-default" })), i("div", { key: "2e39edaa1f5cc5389873e203c3e4294de8b56678", class: "pt-8 px-20 py-20" }, i("slot", { key: "0fb09f52100042fc5f20f5f443a8f5cff381d944" }))));
|
|
11633
11419
|
}
|
|
11634
11420
|
get el() {
|
|
11635
|
-
return
|
|
11421
|
+
return c(this);
|
|
11636
11422
|
}
|
|
11637
11423
|
};
|
|
11638
|
-
|
|
11639
|
-
const
|
|
11424
|
+
vn.style = yn;
|
|
11425
|
+
const wn = "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}}", kn = wn, zn = class {
|
|
11640
11426
|
constructor(n) {
|
|
11641
|
-
s(this, n), this.
|
|
11427
|
+
s(this, n), this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [];
|
|
11642
11428
|
}
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11429
|
+
/** Lifecycle hook to generate pagination links on component load */
|
|
11430
|
+
componentWillLoad() {
|
|
11431
|
+
this.mode === "default" && this.generateLinks();
|
|
11432
|
+
}
|
|
11433
|
+
componentDidLoad() {
|
|
11434
|
+
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
11435
|
+
this.emitContext(e);
|
|
11436
|
+
});
|
|
11437
|
+
}
|
|
11438
|
+
/**
|
|
11439
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
11440
|
+
* This event provides context information about the breadcrumb component.
|
|
11441
|
+
*
|
|
11442
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
11443
|
+
*/
|
|
11444
|
+
emitContext(n) {
|
|
11445
|
+
const e = new CustomEvent("parentContext", {
|
|
11446
|
+
detail: {
|
|
11447
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
11448
|
+
identifier: null
|
|
11649
11449
|
}
|
|
11650
|
-
|
|
11450
|
+
});
|
|
11451
|
+
n.dispatchEvent(e);
|
|
11651
11452
|
}
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
return { x: n + r * Math.cos(l), y: i + r * Math.sin(l) };
|
|
11453
|
+
onPageOrLastPageChange() {
|
|
11454
|
+
this.mode === "default" && this.generateLinks();
|
|
11655
11455
|
}
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11456
|
+
/**
|
|
11457
|
+
* Checks if the current page is the first page
|
|
11458
|
+
* @returns {boolean} - true if current page is the first page
|
|
11459
|
+
*/
|
|
11460
|
+
isFirstPage() {
|
|
11461
|
+
return this.currentPage === 1;
|
|
11462
|
+
}
|
|
11463
|
+
/**
|
|
11464
|
+
* Checks if the current page is the last page
|
|
11465
|
+
* @returns {boolean} - true if current page is the last page
|
|
11466
|
+
*/
|
|
11467
|
+
isLastPage() {
|
|
11468
|
+
return this.currentPage === this.lastPage;
|
|
11469
|
+
}
|
|
11470
|
+
/**
|
|
11471
|
+
* Generates a pagination link object
|
|
11472
|
+
* @param {number} page - Page number for the link
|
|
11473
|
+
* @returns {Link} - Link object with page details
|
|
11474
|
+
*/
|
|
11475
|
+
generateLink(n) {
|
|
11476
|
+
const e = this.url.includes("?");
|
|
11477
|
+
return {
|
|
11478
|
+
ariaLabel: `Page ${n}`,
|
|
11479
|
+
url: `${this.url}${e ? "&" : "?"}page=${n}`,
|
|
11480
|
+
label: n.toString(),
|
|
11481
|
+
current: this.currentPage === n,
|
|
11482
|
+
disabled: !1
|
|
11483
|
+
};
|
|
11484
|
+
}
|
|
11485
|
+
/** Generates pagination links based on the last page and current page */
|
|
11486
|
+
generateLinks() {
|
|
11487
|
+
this.lastPage && this.lastPage > 5 ? this.links = this.getPaginationGenerator(this.currentPage || 1, this.lastPage).map((n) => typeof n == "number" ? this.generateLink(n) : n) : this.lastPage && (this.links = Array.from({ length: this.lastPage }).map((n, e) => this.generateLink(e + 1)));
|
|
11488
|
+
}
|
|
11489
|
+
/**
|
|
11490
|
+
* Creates a pagination range based on delta, current, and total pages
|
|
11491
|
+
* @param {number} current - Current page number
|
|
11492
|
+
* @param {number} total - Total number of pages
|
|
11493
|
+
* @param {number} delta - Range of pages to display around the current page
|
|
11494
|
+
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
11495
|
+
*/
|
|
11496
|
+
getPaginationGenerator(n, e) {
|
|
11497
|
+
const t = [];
|
|
11498
|
+
if (e <= 5)
|
|
11499
|
+
for (let l = 1; l <= e; l++)
|
|
11500
|
+
t.push(l);
|
|
11501
|
+
else {
|
|
11502
|
+
t.push(1), n - 1 > 2 && t.push("...");
|
|
11503
|
+
for (let l = Math.max(2, n - 1); l <= Math.min(e - 1, n + 1); l++)
|
|
11504
|
+
t.push(l);
|
|
11505
|
+
n + 1 < e - 1 && t.push("..."), t.push(e);
|
|
11506
|
+
}
|
|
11507
|
+
return t;
|
|
11508
|
+
}
|
|
11509
|
+
/**
|
|
11510
|
+
* Formats the current page results information for display
|
|
11511
|
+
* @returns {string} - Formatted page result information
|
|
11512
|
+
*/
|
|
11513
|
+
pageResults() {
|
|
11514
|
+
return this.total > 0 ? this.total > this.perPage ? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}` : `${this.total}` : "";
|
|
11515
|
+
}
|
|
11516
|
+
/**
|
|
11517
|
+
* Handles a page click event, updating the current page and dispatching an event
|
|
11518
|
+
* @param {MouseEvent} event - Click event
|
|
11519
|
+
* @param {number} newPage - New page number
|
|
11520
|
+
*/
|
|
11521
|
+
handlePageClick(n, e) {
|
|
11522
|
+
if (this.mode !== "navigator" && (n.preventDefault(), e !== this.currentPage)) {
|
|
11523
|
+
this.links = this.links.map((t) => typeof t == "object" ? Object.assign(Object.assign({}, t), { current: parseInt(t.label) === e }) : t);
|
|
11524
|
+
const r = new CustomEvent("page", {
|
|
11525
|
+
detail: e,
|
|
11526
|
+
bubbles: !0,
|
|
11527
|
+
composed: !0
|
|
11528
|
+
});
|
|
11529
|
+
this.hostEl.dispatchEvent(r), this.currentPage = e;
|
|
11530
|
+
}
|
|
11659
11531
|
}
|
|
11660
11532
|
render() {
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
return
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
}
|
|
11533
|
+
return i("div", { key: "6377e0187e461bcbeac835dd7cb83e93ef199865" }, this.total > 0 && this.mode === "default" && i("p", { key: "ec2a6b6a40c76352743d012c51cda5d7fe1137df", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "3a23e3d156f87167b0dacb4085870958ce19e793", 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) => {
|
|
11534
|
+
this.mode === "default" && (this.isFirstPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) - 1));
|
|
11535
|
+
} })), 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) => {
|
|
11536
|
+
this.mode === "default" && (this.isLastPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) + 1));
|
|
11537
|
+
} })))) : null);
|
|
11538
|
+
}
|
|
11539
|
+
get hostEl() {
|
|
11540
|
+
return c(this);
|
|
11541
|
+
}
|
|
11542
|
+
static get watchers() {
|
|
11543
|
+
return {
|
|
11544
|
+
currentPage: ["onPageOrLastPageChange"],
|
|
11545
|
+
lastPage: ["onPageOrLastPageChange"]
|
|
11546
|
+
};
|
|
11675
11547
|
}
|
|
11676
11548
|
};
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
semantic: [
|
|
11680
|
-
"var(--color-chart-accent)",
|
|
11681
|
-
"var(--color-chart-strong)",
|
|
11682
|
-
"var(--color-chart-accent-dark)",
|
|
11683
|
-
"var(--color-chart-lighter)",
|
|
11684
|
-
"var(--color-chart-accent-light)",
|
|
11685
|
-
"var(--color-chart-lightest)",
|
|
11686
|
-
"var(--color-chart-accent-lighter)",
|
|
11687
|
-
"var(--color-chart-darker)",
|
|
11688
|
-
"var(--color-chart-accent-lightest)"
|
|
11689
|
-
],
|
|
11690
|
-
mono: [
|
|
11691
|
-
"var(--grey-700)",
|
|
11692
|
-
"var(--grey-500)",
|
|
11693
|
-
"var(--grey-300)",
|
|
11694
|
-
"var(--grey-100)",
|
|
11695
|
-
"var(--grey-800)",
|
|
11696
|
-
"var(--grey-600)",
|
|
11697
|
-
"var(--grey-400)",
|
|
11698
|
-
"var(--grey-200)",
|
|
11699
|
-
"var(--grey-900)"
|
|
11700
|
-
]
|
|
11701
|
-
};
|
|
11702
|
-
u.style = Xn;
|
|
11703
|
-
const Gn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.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)}.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)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.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)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}", Jn = Gn, Kn = class {
|
|
11549
|
+
zn.style = kn;
|
|
11550
|
+
const Cn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.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)}.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)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.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)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}", Sn = Cn, En = class {
|
|
11704
11551
|
constructor(n) {
|
|
11705
11552
|
s(this, n), this.socialNetworks = [
|
|
11706
11553
|
{
|
|
@@ -11742,13 +11589,13 @@ const Gn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset
|
|
|
11742
11589
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
11743
11590
|
*/
|
|
11744
11591
|
render() {
|
|
11745
|
-
return
|
|
11592
|
+
return i("div", { key: "49661af4c05520403c4801e447c730b971e0096f" }, i("p", { key: "22fc89817969a9e7059335b43f8e7b6cc2d095f7", class: "f-ui-02" }, this.heading), i("ul", { key: "90c04408db4f9d58a5ee4834f8fcfde88aede8ee", class: "mt-12 flex gap-4" }, this.socialNetworks.map((n, e) => i("li", { key: e }, i("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: !0, "aria-label": n.label, url: n.url, icon: n.icon, intent: "strong" })))));
|
|
11746
11593
|
}
|
|
11747
11594
|
};
|
|
11748
|
-
|
|
11749
|
-
const
|
|
11595
|
+
En.style = Sn;
|
|
11596
|
+
const Fn = ".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}", Ln = Fn, In = class {
|
|
11750
11597
|
constructor(n) {
|
|
11751
|
-
s(this, n), this.step =
|
|
11598
|
+
s(this, n), this.step = f(this, "step", 7), this.handleNext = () => {
|
|
11752
11599
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
11753
11600
|
}, this.handleBack = () => {
|
|
11754
11601
|
this.activeStep > 0 && (this.activeStep = this.activeStep - 1, this.step.emit(this.activeStep));
|
|
@@ -11761,16 +11608,16 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11761
11608
|
componentDidLoad() {
|
|
11762
11609
|
var n;
|
|
11763
11610
|
if (this.type === "linear") {
|
|
11764
|
-
const
|
|
11765
|
-
|
|
11611
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11612
|
+
e == null || e.forEach((r) => {
|
|
11766
11613
|
this.emitContext(r);
|
|
11767
11614
|
});
|
|
11768
11615
|
}
|
|
11769
11616
|
}
|
|
11770
11617
|
activeStepChanged(n) {
|
|
11771
11618
|
setTimeout(() => {
|
|
11772
|
-
var
|
|
11773
|
-
const r = (
|
|
11619
|
+
var e;
|
|
11620
|
+
const r = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
11774
11621
|
r && r.querySelectorAll("eds-button").forEach((l) => {
|
|
11775
11622
|
this.emitContext(l);
|
|
11776
11623
|
});
|
|
@@ -11783,13 +11630,13 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11783
11630
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
11784
11631
|
*/
|
|
11785
11632
|
emitContext(n) {
|
|
11786
|
-
const
|
|
11633
|
+
const e = new CustomEvent("parentContext", {
|
|
11787
11634
|
detail: {
|
|
11788
11635
|
componentName: this.el.tagName.toLowerCase(),
|
|
11789
11636
|
identifier: this.activeStep
|
|
11790
11637
|
}
|
|
11791
11638
|
});
|
|
11792
|
-
n.dispatchEvent(
|
|
11639
|
+
n.dispatchEvent(e);
|
|
11793
11640
|
}
|
|
11794
11641
|
handleStepClick(n) {
|
|
11795
11642
|
this.step.emit(n), this.type === "linear" && (this.activeStep = n);
|
|
@@ -11798,14 +11645,14 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11798
11645
|
* Parse the JSON string into an array of steps.
|
|
11799
11646
|
*/
|
|
11800
11647
|
get parsedSteps() {
|
|
11801
|
-
return
|
|
11648
|
+
return b(this.steps);
|
|
11802
11649
|
}
|
|
11803
11650
|
render() {
|
|
11804
11651
|
const n = this.parsedSteps;
|
|
11805
|
-
return this.type === "linear" ?
|
|
11652
|
+
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 }))))));
|
|
11806
11653
|
}
|
|
11807
11654
|
get el() {
|
|
11808
|
-
return
|
|
11655
|
+
return c(this);
|
|
11809
11656
|
}
|
|
11810
11657
|
static get watchers() {
|
|
11811
11658
|
return {
|
|
@@ -11813,41 +11660,41 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11813
11660
|
};
|
|
11814
11661
|
}
|
|
11815
11662
|
};
|
|
11816
|
-
|
|
11817
|
-
const
|
|
11663
|
+
In.style = Ln;
|
|
11664
|
+
const jn = "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))}", Pn = jn, An = class {
|
|
11818
11665
|
constructor(n) {
|
|
11819
|
-
s(this, n), this.step =
|
|
11666
|
+
s(this, n), this.step = f(this, "step", 7), this.handleNext = () => {
|
|
11820
11667
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
11821
11668
|
}, this.handleBack = () => {
|
|
11822
11669
|
this.activeStep > 0 && (this.activeStep = this.activeStep - 1, this.step.emit(this.activeStep));
|
|
11823
|
-
}, this.steps = [], this.type = "static", this.imageSrc = void 0, this.bg = !0, this.message = void 0, this.activeStep = 0;
|
|
11670
|
+
}, this.steps = [], this.type = "static", this.imageSrc = void 0, this.imageWidth = void 0, this.bg = !0, this.message = void 0, this.activeStep = 0;
|
|
11824
11671
|
}
|
|
11825
11672
|
componentDidLoad() {
|
|
11826
11673
|
var n;
|
|
11827
11674
|
if (this.type === "linear") {
|
|
11828
|
-
const
|
|
11829
|
-
|
|
11675
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11676
|
+
e == null || e.forEach((r) => {
|
|
11830
11677
|
this.emitContext(r);
|
|
11831
11678
|
});
|
|
11832
11679
|
}
|
|
11833
11680
|
}
|
|
11834
11681
|
activeStepChanged(n) {
|
|
11835
11682
|
setTimeout(() => {
|
|
11836
|
-
var
|
|
11837
|
-
const r = (
|
|
11683
|
+
var e;
|
|
11684
|
+
const r = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
11838
11685
|
r && r.querySelectorAll("eds-button").forEach((l) => {
|
|
11839
11686
|
this.emitContext(l);
|
|
11840
11687
|
});
|
|
11841
11688
|
}, 50);
|
|
11842
11689
|
}
|
|
11843
11690
|
emitContext(n) {
|
|
11844
|
-
const
|
|
11691
|
+
const e = new CustomEvent("parentContext", {
|
|
11845
11692
|
detail: {
|
|
11846
11693
|
componentName: this.el.tagName.toLowerCase(),
|
|
11847
11694
|
identifier: this.activeStep
|
|
11848
11695
|
}
|
|
11849
11696
|
});
|
|
11850
|
-
n.dispatchEvent(
|
|
11697
|
+
n.dispatchEvent(e);
|
|
11851
11698
|
}
|
|
11852
11699
|
articleClasses() {
|
|
11853
11700
|
return [
|
|
@@ -11862,17 +11709,17 @@ const ee = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11862
11709
|
* Parses the steps property into an array of Step objects.
|
|
11863
11710
|
*/
|
|
11864
11711
|
get parsedSteps() {
|
|
11865
|
-
return
|
|
11712
|
+
return b(this.steps);
|
|
11866
11713
|
}
|
|
11867
11714
|
render() {
|
|
11868
11715
|
const n = this.parsedSteps;
|
|
11869
|
-
return
|
|
11716
|
+
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" }))))) : (
|
|
11870
11717
|
// Static mode: show all steps with their content.
|
|
11871
|
-
|
|
11718
|
+
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 }))))))
|
|
11872
11719
|
)));
|
|
11873
11720
|
}
|
|
11874
11721
|
get el() {
|
|
11875
|
-
return
|
|
11722
|
+
return c(this);
|
|
11876
11723
|
}
|
|
11877
11724
|
static get watchers() {
|
|
11878
11725
|
return {
|
|
@@ -11880,10 +11727,164 @@ const ee = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11880
11727
|
};
|
|
11881
11728
|
}
|
|
11882
11729
|
};
|
|
11883
|
-
|
|
11884
|
-
const
|
|
11730
|
+
An.style = Pn;
|
|
11731
|
+
const Wn = "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}", _n = Wn, On = class {
|
|
11732
|
+
constructor(n) {
|
|
11733
|
+
s(this, n), this.rowaction = f(this, "rowaction", 7), this.handleResize = () => {
|
|
11734
|
+
this.updateContainerWidth();
|
|
11735
|
+
}, this.data = null, this.endpoint = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.hostWidth = void 0, this.columnSize = "default", this.actions = [], this.actionTemplate = void 0, this.parsedActions = [], this.dataColumns = [], this.tbData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "", this.containerWidth = 0;
|
|
11736
|
+
}
|
|
11737
|
+
handleDataChange() {
|
|
11738
|
+
this.parseData();
|
|
11739
|
+
}
|
|
11740
|
+
handleConfigChange() {
|
|
11741
|
+
this.parseConfig();
|
|
11742
|
+
}
|
|
11743
|
+
handleActionsChange() {
|
|
11744
|
+
try {
|
|
11745
|
+
this.parsedActions = typeof this.actions == "string" ? JSON.parse(this.actions) : this.actions;
|
|
11746
|
+
} catch {
|
|
11747
|
+
console.error("Failed to parse actions JSON"), this.parsedActions = [];
|
|
11748
|
+
}
|
|
11749
|
+
}
|
|
11750
|
+
componentWillLoad() {
|
|
11751
|
+
this.parseConfig(), this.handleActionsChange(), this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
11752
|
+
}
|
|
11753
|
+
componentDidLoad() {
|
|
11754
|
+
this.updateContainerWidth(), window.addEventListener("resize", this.handleResize), this.setupPaginationListener();
|
|
11755
|
+
}
|
|
11756
|
+
componentDidUpdate() {
|
|
11757
|
+
this.setupPaginationListener();
|
|
11758
|
+
}
|
|
11759
|
+
disconnectedCallback() {
|
|
11760
|
+
window.removeEventListener("resize", this.handleResize);
|
|
11761
|
+
}
|
|
11762
|
+
updateContainerWidth() {
|
|
11763
|
+
this.hostWidth && this.hostWidth.trim() !== "" ? this.containerWidth = Number(this.hostWidth) : this.hostEl.parentElement instanceof HTMLElement ? this.containerWidth = this.hostEl.parentElement.getBoundingClientRect().width : this.containerWidth = 400;
|
|
11764
|
+
}
|
|
11765
|
+
parseData() {
|
|
11766
|
+
try {
|
|
11767
|
+
this.tbData = b(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
11768
|
+
} catch (n) {
|
|
11769
|
+
console.error("Failed to parse data:", n), this.tbData = [];
|
|
11770
|
+
}
|
|
11771
|
+
}
|
|
11772
|
+
parseConfig() {
|
|
11773
|
+
try {
|
|
11774
|
+
this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
|
|
11775
|
+
} catch (n) {
|
|
11776
|
+
console.error("Failed to parse config:", n), this.parsedConfig = {};
|
|
11777
|
+
}
|
|
11778
|
+
}
|
|
11779
|
+
async fetchData() {
|
|
11780
|
+
try {
|
|
11781
|
+
const e = await (await fetch(this.endpoint)).json();
|
|
11782
|
+
this.data = e;
|
|
11783
|
+
} catch (n) {
|
|
11784
|
+
console.error("Failed to fetch data:", n);
|
|
11785
|
+
}
|
|
11786
|
+
}
|
|
11787
|
+
setupPaginationListener() {
|
|
11788
|
+
if (!this.shouldEnablePagination())
|
|
11789
|
+
return;
|
|
11790
|
+
const n = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
11791
|
+
n && !n.hasAttribute("listener-attached") && (n.addEventListener("page", (e) => this.handlePageChange(e.detail)), n.setAttribute("listener-attached", "true"));
|
|
11792
|
+
}
|
|
11793
|
+
getFilteredRows() {
|
|
11794
|
+
return this.tbData.filter((n) => Object.values(n).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
11795
|
+
}
|
|
11796
|
+
getPaginatedRows() {
|
|
11797
|
+
const n = this.getFilteredRows();
|
|
11798
|
+
this.totalRows = n.length;
|
|
11799
|
+
const e = (this.currentPage - 1) * this.rowsPerPage;
|
|
11800
|
+
return n.slice(e, e + this.rowsPerPage);
|
|
11801
|
+
}
|
|
11802
|
+
handlePageChange(n) {
|
|
11803
|
+
this.currentPage = n, h({
|
|
11804
|
+
category: "ui-component",
|
|
11805
|
+
parentContext: null,
|
|
11806
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
11807
|
+
name: `${n}` || "",
|
|
11808
|
+
action: "page"
|
|
11809
|
+
});
|
|
11810
|
+
}
|
|
11811
|
+
handleSearch(n) {
|
|
11812
|
+
this.searchQuery = n.target.value, this.currentPage = 1;
|
|
11813
|
+
}
|
|
11814
|
+
renderCell(n, e) {
|
|
11815
|
+
var r;
|
|
11816
|
+
const t = (r = this.parsedConfig[e]) === null || r === void 0 ? void 0 : r.format;
|
|
11817
|
+
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;
|
|
11818
|
+
}
|
|
11819
|
+
/**
|
|
11820
|
+
* Renders one action (button or checkbox) for a specific action‐name.
|
|
11821
|
+
* Used by the “Actions” column below.
|
|
11822
|
+
*/
|
|
11823
|
+
renderSingleActionCell(n, e) {
|
|
11824
|
+
var r;
|
|
11825
|
+
const t = this.parsedActions.find((a) => a.name === n);
|
|
11826
|
+
if (this.actionTemplate)
|
|
11827
|
+
return this.actionTemplate(e);
|
|
11828
|
+
if ((t.type || "button") === "checkbox") {
|
|
11829
|
+
const a = (r = t.field) !== null && r !== void 0 ? r : t.name, o = !!e[a];
|
|
11830
|
+
return i("eds-input-field", { name: `chc-${n}`, label: t.label, type: "checkbox", checked: o, onChange: (d) => this.emitAction(t.name, e, d.target.checked) });
|
|
11831
|
+
}
|
|
11832
|
+
return i("eds-link", { label: t.label, intent: "weak", onClick: () => this.emitAction(t.name, e) });
|
|
11833
|
+
}
|
|
11834
|
+
emitAction(n, e, r) {
|
|
11835
|
+
h({
|
|
11836
|
+
category: "ui-component",
|
|
11837
|
+
parentContext: null,
|
|
11838
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/action`,
|
|
11839
|
+
name: n,
|
|
11840
|
+
action: "click"
|
|
11841
|
+
}), this.rowaction.emit({ action: n, row: e, checked: !!r });
|
|
11842
|
+
}
|
|
11843
|
+
shouldEnablePagination() {
|
|
11844
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
11845
|
+
}
|
|
11846
|
+
updateColumns() {
|
|
11847
|
+
var n, e;
|
|
11848
|
+
this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [], ((e = (n = this.parsedActions) === null || n === void 0 ? void 0 : n.length) !== null && e !== void 0 ? e : 0) > 0 && this.tbData.length > 0 && this.columns.push("actions");
|
|
11849
|
+
}
|
|
11850
|
+
getVisibleColumnsCount() {
|
|
11851
|
+
return this.columns.filter((n) => {
|
|
11852
|
+
var e;
|
|
11853
|
+
return !(!((e = this.parsedConfig[n]) === null || e === void 0) && e.hidden);
|
|
11854
|
+
}).length;
|
|
11855
|
+
}
|
|
11856
|
+
divisionFactor() {
|
|
11857
|
+
let n = 1;
|
|
11858
|
+
return this.columnSize === "medium" ? n = 2 : this.columnSize === "large" && (n = 4), n;
|
|
11859
|
+
}
|
|
11860
|
+
capitalize(n) {
|
|
11861
|
+
return n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
|
11862
|
+
}
|
|
11863
|
+
render() {
|
|
11864
|
+
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);
|
|
11865
|
+
return i("div", { key: "5034177431626ab2bfc5fd0118c006d11a4f6e96" }, this.searchEnabled && i("div", { key: "86e1a6ffc4bed69f290b3a53031341ab276eaf04" }, i("eds-input-field", { key: 1, name: "search", "aria-label": "Search", type: "text", placeholder: "Search...", onInput: (a) => this.handleSearch(a) })), i("div", { key: "bc11838d819ecf89c5ba1cc1cfe7ac0af0e82b59", class: "mt-20" }, i("table", { key: "97f16b65eb1d9387e9ca7588184c9e68c1afcc2e", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "f4d64ada28c225db1b224277513e663a99de1cec" }, i("tr", { key: "c6a69e159cceada0f7143c0acb787e5c23242ae7", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((a) => {
|
|
11866
|
+
var o;
|
|
11867
|
+
return a === "actions" ? i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${r - 4}px` } }, "Actions") : !((o = this.parsedConfig[a]) === null || o === void 0) && o.hidden ? null : i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${r - 4}px` } }, this.capitalize(a));
|
|
11868
|
+
}))), i("tbody", { key: "133af82fdd1f820e853734ab48123cb3db527e15" }, t.map((a) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
|
|
11869
|
+
var d;
|
|
11870
|
+
return o === "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((g) => i("span", { style: { whiteSpace: "nowrap" } }, this.renderSingleActionCell(g.name, a))))) : !((d = this.parsedConfig[o]) === null || d === void 0) && d.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(a[o], o));
|
|
11871
|
+
})))))), this.shouldEnablePagination() && i("div", { key: "85032d06cd0ac5dae9b504d423fceba3cd074861", class: "mt-20" }, i("eds-pagination", { key: "8caf6f57960e222c04d45f57a5811cd7bd524f4c", currentPage: this.currentPage, lastPage: l, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
11872
|
+
}
|
|
11873
|
+
get hostEl() {
|
|
11874
|
+
return c(this);
|
|
11875
|
+
}
|
|
11876
|
+
static get watchers() {
|
|
11877
|
+
return {
|
|
11878
|
+
data: ["handleDataChange", "parseData"],
|
|
11879
|
+
config: ["handleConfigChange"],
|
|
11880
|
+
actions: ["handleActionsChange"]
|
|
11881
|
+
};
|
|
11882
|
+
}
|
|
11883
|
+
};
|
|
11884
|
+
On.style = _n;
|
|
11885
|
+
const Hn = "*,::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}}", Tn = Hn, $n = class {
|
|
11885
11886
|
constructor(n) {
|
|
11886
|
-
s(this, n), this.tab =
|
|
11887
|
+
s(this, n), this.tab = f(this, "tab", 7), this.tabCva = m([
|
|
11887
11888
|
"relative py-12",
|
|
11888
11889
|
"f-ui-03 whitespace-nowrap",
|
|
11889
11890
|
"effect-color",
|
|
@@ -11927,7 +11928,7 @@ const te = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11927
11928
|
* @returns {any[]} Array of parsed link objects
|
|
11928
11929
|
*/
|
|
11929
11930
|
parseTabs() {
|
|
11930
|
-
this.parsedTabs =
|
|
11931
|
+
this.parsedTabs = b(this.tabs);
|
|
11931
11932
|
}
|
|
11932
11933
|
componentDidLoad() {
|
|
11933
11934
|
this.scrollToActiveTab();
|
|
@@ -11937,39 +11938,39 @@ const te = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11937
11938
|
}
|
|
11938
11939
|
scrollToActiveTab() {
|
|
11939
11940
|
var n;
|
|
11940
|
-
const
|
|
11941
|
-
|
|
11942
|
-
|
|
11941
|
+
const e = (n = this.tabContainer) === null || n === void 0 ? void 0 : n.querySelector("[data-tab-active]");
|
|
11942
|
+
e && setTimeout(() => {
|
|
11943
|
+
e.scrollIntoView({
|
|
11943
11944
|
inline: "center",
|
|
11944
11945
|
block: "nearest"
|
|
11945
11946
|
});
|
|
11946
11947
|
}, 316);
|
|
11947
11948
|
}
|
|
11948
|
-
getTabOptions(n,
|
|
11949
|
-
const r = n ? "center" : this.activeIndex === -1 &&
|
|
11949
|
+
getTabOptions(n, e) {
|
|
11950
|
+
const r = n ? "center" : this.activeIndex === -1 && e === 0 ? "first" : e < this.activeIndex ? "left" : "right";
|
|
11950
11951
|
return Object.assign({ class: this.tabCva({
|
|
11951
11952
|
active: n,
|
|
11952
11953
|
position: r
|
|
11953
11954
|
}), style: {
|
|
11954
|
-
zIndex: `${n ? this.parsedTabs.length + 99 : r === "left" ?
|
|
11955
|
+
zIndex: `${n ? this.parsedTabs.length + 99 : r === "left" ? e : this.parsedTabs.length + 1 - e}`
|
|
11955
11956
|
} }, n ? { "data-tab-active": "true" } : {});
|
|
11956
11957
|
}
|
|
11957
|
-
handleTabClick(n,
|
|
11958
|
-
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:
|
|
11958
|
+
handleTabClick(n, e) {
|
|
11959
|
+
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 }), h({
|
|
11959
11960
|
category: "ui-component",
|
|
11960
11961
|
tag: this.el.tagName.toLowerCase(),
|
|
11961
|
-
name: (
|
|
11962
|
+
name: (e == null ? void 0 : e.toLowerCase()) || "",
|
|
11962
11963
|
action: "click"
|
|
11963
11964
|
});
|
|
11964
11965
|
}
|
|
11965
11966
|
render() {
|
|
11966
|
-
return
|
|
11967
|
-
const r = n.active ? "span" : "a", t = this.getTabOptions(n.active,
|
|
11968
|
-
return
|
|
11969
|
-
}))),
|
|
11967
|
+
return i("div", { key: "b6752f90f4c1a9501816c574baf92a0c8b95e802", id: `${this.identifier}` }, i("div", { key: "266813bd461bae3d5df1b76563b949b8dd900482", 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: "b16c4f78ee24dace9a188097a8c5995476d7da41", ref: (n) => this.tabContainer = n, class: "inline-flex", "aria-label": this.navAriaLabel }, this.parsedTabs.map((n, e) => {
|
|
11968
|
+
const r = n.active ? "span" : "a", t = this.getTabOptions(n.active, e);
|
|
11969
|
+
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);
|
|
11970
|
+
}))), i("div", { key: "09c25532583d443eac47da606955955e1e66f2e8", class: "tab-panels" }, this.parsedTabs.map((n, e) => i("div", { hidden: e !== this.activeIndex }, i("slot", { name: `panel-${e}` })))));
|
|
11970
11971
|
}
|
|
11971
11972
|
get el() {
|
|
11972
|
-
return
|
|
11973
|
+
return c(this);
|
|
11973
11974
|
}
|
|
11974
11975
|
static get watchers() {
|
|
11975
11976
|
return {
|
|
@@ -11977,8 +11978,8 @@ const te = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11977
11978
|
};
|
|
11978
11979
|
}
|
|
11979
11980
|
};
|
|
11980
|
-
|
|
11981
|
-
const
|
|
11981
|
+
$n.style = Tn;
|
|
11982
|
+
const Dn = ".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)}", Mn = Dn, Bn = m(
|
|
11982
11983
|
["border-2 rounded-pill"],
|
|
11983
11984
|
// Base classes
|
|
11984
11985
|
{
|
|
@@ -12006,43 +12007,17 @@ const ae = ".f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-u
|
|
|
12006
12007
|
size: "small"
|
|
12007
12008
|
}
|
|
12008
12009
|
}
|
|
12009
|
-
),
|
|
12010
|
+
), qn = class {
|
|
12010
12011
|
constructor(n) {
|
|
12011
12012
|
s(this, n), this.label = void 0, this.intent = "default", this.size = "small";
|
|
12012
12013
|
}
|
|
12013
12014
|
render() {
|
|
12014
|
-
const n =
|
|
12015
|
-
return
|
|
12016
|
-
}
|
|
12017
|
-
};
|
|
12018
|
-
ce.style = se;
|
|
12019
|
-
const ge = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-xs{border-radius:4px}.bg-strongest{background-color:var(--black)}.text-inverse{color:var(--white)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.pointer-events-none{pointer-events:none}.left-1\\/2{left:50%}.z-10{z-index:10}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.whitespace-nowrap{white-space:nowrap}.p-6{padding:0.375rem}.bottom-full{bottom:100%}.mb-2{margin-bottom:0.125rem}.opacity-0{opacity:0}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-150{transition-duration:150ms}.ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.group:hover .group-hover\\:opacity-100{opacity:1}", he = ge, fe = class {
|
|
12020
|
-
constructor(n) {
|
|
12021
|
-
s(this, n), this.content = void 0;
|
|
12022
|
-
}
|
|
12023
|
-
/** fire analytics on every hover */
|
|
12024
|
-
handleHover() {
|
|
12025
|
-
b({
|
|
12026
|
-
category: "ui-component",
|
|
12027
|
-
tag: this.el.tagName.toLowerCase(),
|
|
12028
|
-
name: this.content.toLowerCase(),
|
|
12029
|
-
action: "hover"
|
|
12030
|
-
});
|
|
12031
|
-
}
|
|
12032
|
-
render() {
|
|
12033
|
-
return e("div", { key: "cf17cd61cd5888d6ea12bf6be0fb8c841072b4d6", class: "relative inline-block group" }, e("slot", { key: "7a41d90940fff4e8b887ec4a3240371466f219a5" }), e("div", { key: "ccf06592f4c977030b0cf54cce48d13889c059f3", class: `absolute bottom-full left-1/2
|
|
12034
|
-
transform -translate-x-1/2 mb-2
|
|
12035
|
-
rounded-xs bg-strongest text-inverse
|
|
12036
|
-
f-ui-03-light pointer-events-none
|
|
12037
|
-
z-10 whitespace-nowrap p-6 opacity-0 transition-opacity duration-150 ease-in-out
|
|
12038
|
-
group-hover:opacity-100`, role: "tooltip" }, this.content));
|
|
12039
|
-
}
|
|
12040
|
-
get el() {
|
|
12041
|
-
return g(this);
|
|
12015
|
+
const n = Bn({ intent: this.intent, size: this.size });
|
|
12016
|
+
return i("span", { key: "78ef2d9ed4fc79f078df2fe418c339fc8934eef2", class: n }, this.label);
|
|
12042
12017
|
}
|
|
12043
12018
|
};
|
|
12044
|
-
|
|
12045
|
-
const
|
|
12019
|
+
qn.style = Mn;
|
|
12020
|
+
const Rn = "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}", Nn = Rn, Vn = class {
|
|
12046
12021
|
constructor(n) {
|
|
12047
12022
|
s(this, n), this.user = void 0;
|
|
12048
12023
|
}
|
|
@@ -12061,60 +12036,46 @@ const be = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
12061
12036
|
async componentWillLoad() {
|
|
12062
12037
|
}
|
|
12063
12038
|
get initials() {
|
|
12064
|
-
var n,
|
|
12039
|
+
var n, e, r, t;
|
|
12065
12040
|
const l = this.parsedUser;
|
|
12066
|
-
return `${((n = l.given_name) === null || n === void 0 ? void 0 : n.charAt(0)) || ""}${((
|
|
12041
|
+
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()) || "";
|
|
12067
12042
|
}
|
|
12068
12043
|
render() {
|
|
12069
12044
|
const n = this.parsedUser;
|
|
12070
|
-
return
|
|
12045
|
+
return i("div", { key: "9e2a8da09c2c15080e3b1ccf5b8e0e93b679d34b", class: "block" }, i("div", { key: "ccc34b3c7b0ab8d515eebfa1962264365d20c788", class: "flex items-center" }, i("eds-dropdown", { key: "dc4920fd442baa9f13d9f2b9a21065b5184eba83", 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: "0522db7fc229186c645665a4c9eeedc46fb5823b", class: "min-w-[280px] p-8" }, i("div", { key: "af7b9daec713d24f8a1415415d19cdf48905c0cb", class: "flex gap-x-16" }, i("eds-avatar", { key: "c3ea7307d9beb597fe93d3942b7724f8526298ad", "first-name": n.given_name, "last-name": n.family_name, initials: this.initials, color: "grey" }), i("div", { key: "7af823b5f38a3d7acf16c633471dcfe74bca5e3c", class: "max-w-full" }, n.name && i("p", { key: "5973dfbac0efceeddb0dc211d9c502a1ad3b0dde", class: "f-ui-01 text-default w-full text-ellipsis" }, n.name), n.preferred_username && i("p", { key: "5989927760ed2a2d1365661bbdc112a3a3d23bbf", class: "f-ui-03-light text-light mt-4" }, n.preferred_username), n.email && i("p", { key: "ee36be95298c0c7a748537012d48a85884955904", class: "f-ui-03-light text-light mt-4" }, n.email))), i("eds-block-break", { key: "fb3ef5cad6e81f51983e54914412131c3bd4cbc2" }), i("div", { key: "e3784f3f4931378bf55d766d4a1cf5e24a75d462", class: "text-default flex w-full flex-col gap-y-8" }, i("slot", { key: "c0052bb56286d9a3fdc686c8407e105499a38084" }))))));
|
|
12071
12046
|
}
|
|
12072
12047
|
get hostEl() {
|
|
12073
|
-
return
|
|
12074
|
-
}
|
|
12075
|
-
};
|
|
12076
|
-
me.style = xe;
|
|
12077
|
-
const je = class {
|
|
12078
|
-
constructor(n) {
|
|
12079
|
-
s(this, n);
|
|
12080
|
-
}
|
|
12081
|
-
render() {
|
|
12082
|
-
return e("div", { key: "ad89d21ec01f11c77d85853f7c0dbefd8ea9f07f", class: "w-full" }, e("ul", { key: "6108fb2870c358de8e5c48e6d14f6c1e76af856f", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, e("li", { key: "cd0d1986b416f12164b8d0458262987a445662ca", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "f2cfd77fcba601b89605dabf109f599816bb118e", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "69e4cb5660f5c51d2b9c1ba30a38f3b7decacc58", class: "spacing-sample m-16 bg-strong" }, e("span", { key: "70a07326b0a95655db3aad083637499f5ed4aa73", class: "f-body-01 text-inverse" }, "Margin: 1rem / m-16")))), e("li", { key: "97b8c127e9bbe9af4ec8f6876ebae3f87a52d130", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "58537d6aa824b489ae9c5150400af21f11f1f447", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "3f2913d232cb9de1b678b7f7903bef0642ef42df", class: "spacing-sample ml-64 bg-strong" }, e("span", { key: "fe56d1a501dc219a1bac474b674586609499f3de", class: "f-body-01 text-inverse" }, "Margin Left: 4rem / ml-64")))), e("li", { key: "e2dee648fd4bce503414d76f3afe64655285523c", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "e788fa22248ac92fb8bc89566c5b8a77cf14578f", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "9629958b453aa831a1d871bb4e846d0926d9e57c", class: "spacing-sample mt-32 bg-strong" }, e("span", { key: "0efde7eaed0fe3e14f476617e7e9bf2e20131f2c", class: "f-body-01 text-inverse" }, "Margin Top: 2rem / mt-32")))), e("li", { key: "6dabfeb0086c784c50843abd12d5a505a56e0933", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "164e7eec6ed3aad2847c4ede97f4bbfed34138d1", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "9be99b05ba29204f6163df2c1522e7aa6211bd3d", class: "spacing-sample p-32 bg-strong" }, e("span", { key: "ae0a7ea74e31ea324015b844848c3d5a68930e8d", class: "f-body-01 text-inverse" }, "Padding: 2rem / p-32")))), e("li", { key: "3804dbfb6a64a1dfd478bd0132ff83f51bcff33e", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "75c96b0762c3fac8b4de897ab8147b2c5614a360", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "d00487531406fa89112bee34e05306c59dc4f497", class: "spacing-sample pt-32 bg-strong" }, e("span", { key: "8a750b7ac07739a71949b236421427b8bb05b067", class: "f-body-01 text-inverse" }, "Padding Top: 2rem / pt-32")))), e("li", { key: "5e5fe43383f13b4377aca7cfb07c97b6ac1dd79b", class: "grid-col-span-12 md:grid-col-span-4 flex flex-col items-center mt-16" }, e("div", { key: "ed2ac88c543eba8c580d029ccacb1a8b26c1cae7", class: "container p-8 item-center border-2 border-soft" }, e("div", { key: "cf9a94b61e598c0ee6da9e771717574b48264333", class: "spacing-sample pl-32 bg-strong" }, e("span", { key: "a2d3fce66240c6b0d49d1a655c0b5a84be9c630d", class: "f-body-01 text-inverse" }, "Padding Left: 2rem / pl-32"))))));
|
|
12048
|
+
return c(this);
|
|
12083
12049
|
}
|
|
12084
12050
|
};
|
|
12051
|
+
Vn.style = Nn;
|
|
12085
12052
|
export {
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12099
|
-
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
re as eds_steps_v2,
|
|
12115
|
-
oe as eds_tabs,
|
|
12116
|
-
ce as eds_tag,
|
|
12117
|
-
fe as eds_tooltip,
|
|
12118
|
-
me as eds_user,
|
|
12119
|
-
je as token_spacing
|
|
12053
|
+
A as eds_avatar,
|
|
12054
|
+
O as eds_block_break,
|
|
12055
|
+
$ as eds_button,
|
|
12056
|
+
B as eds_dropdown,
|
|
12057
|
+
N as eds_footer,
|
|
12058
|
+
Q as eds_form,
|
|
12059
|
+
nn as eds_fullscreen_menu,
|
|
12060
|
+
tn as eds_header,
|
|
12061
|
+
Kn as eds_icon_wrapper,
|
|
12062
|
+
an as eds_img,
|
|
12063
|
+
Zn as eds_input,
|
|
12064
|
+
cn as eds_input_field,
|
|
12065
|
+
ne as eds_input_footer,
|
|
12066
|
+
ee as eds_input_label,
|
|
12067
|
+
ie as eds_input_range,
|
|
12068
|
+
re as eds_input_search,
|
|
12069
|
+
te as eds_input_select,
|
|
12070
|
+
bn as eds_link,
|
|
12071
|
+
pn as eds_logo,
|
|
12072
|
+
vn as eds_modal,
|
|
12073
|
+
zn as eds_pagination,
|
|
12074
|
+
En as eds_social_networks,
|
|
12075
|
+
In as eds_steps,
|
|
12076
|
+
An as eds_steps_v2,
|
|
12077
|
+
On as eds_table,
|
|
12078
|
+
$n as eds_tabs,
|
|
12079
|
+
qn as eds_tag,
|
|
12080
|
+
Vn as eds_user
|
|
12120
12081
|
};
|