@ebrains/vue 1.0.0 → 1.2.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-c48Fqrz0.js → color-primary-palette_6.entry-CEsBIhd_.js} +1 -1
- package/{color-primary-palette_6.entry-CfNmHzNO.mjs → color-primary-palette_6.entry-DrWA6jLu.mjs} +1 -1
- package/{components-section.entry-oQTYayXm.mjs → components-section.entry-C7pCeahb.mjs} +2 -2
- package/{components-section.entry-3yJF6nRH.js → components-section.entry-Cwgpz04I.js} +2 -2
- package/{correct-use-of-colors.entry-DEdyB_h5.js → correct-use-of-colors.entry-BDu34tJ8.js} +1 -1
- package/{correct-use-of-colors.entry-7fOSokhJ.mjs → correct-use-of-colors.entry-DJtltvDn.mjs} +1 -1
- package/{docs-palettes.entry-6ekOz4GT.js → docs-palettes.entry-BNlHniKu.js} +1 -1
- package/{docs-palettes.entry-Bz96UO-K.mjs → docs-palettes.entry-CbBIA9pN.mjs} +1 -1
- package/{docs-tokens.entry-DjHB8v2C.js → docs-tokens.entry-7RQd9ha3.js} +1 -1
- package/{docs-tokens.entry-D-hRYpqk.mjs → docs-tokens.entry-j3z4Vi2D.mjs} +1 -1
- package/{eds-accordion.entry-Czj2ZwpQ.js → eds-accordion.entry-K1VYvTsF.js} +2 -2
- package/{eds-accordion.entry-D1L8fv2r.mjs → eds-accordion.entry-XGE_bTo3.mjs} +3 -3
- package/{eds-alert.entry-DAeVRXua.mjs → eds-alert.entry-BUW7EyL8.mjs} +3 -3
- package/{eds-alert.entry-BqEeR0Xw.js → eds-alert.entry-C2gdvOWN.js} +2 -2
- package/{eds-app-root.entry-BrJeEAVb.js → eds-app-root.entry-CbiJsAWc.js} +1 -1
- package/{eds-app-root.entry-BBbgNK8b.mjs → eds-app-root.entry-Dx05XJze.mjs} +1 -1
- package/{eds-avatar_34.entry-iuvkwQW_.js → eds-avatar_28.entry-CIvRf2Z8.js} +9 -14
- package/{eds-avatar_34.entry-1U84FvGQ.mjs → eds-avatar_28.entry-W_rkIwiU.mjs} +580 -627
- package/eds-breadcrumb.entry-B1p3OoEB.js +1 -0
- package/eds-breadcrumb.entry-K9dpBvmJ.mjs +104 -0
- package/eds-card-desc_2.entry-C3L3BUaf.mjs +53 -0
- package/eds-card-desc_2.entry-DvVazM5B.js +1 -0
- package/eds-card-generic.entry-Cf-DdAXt.mjs +56 -0
- package/eds-card-generic.entry-DO8OnbOl.js +1 -0
- package/{eds-card-project.entry-Cd7tP9g4.mjs → eds-card-project.entry-5yKpd6o0.mjs} +2 -2
- package/{eds-card-project.entry-CewRPvW7.js → eds-card-project.entry-DWFw0WMt.js} +1 -1
- package/{eds-card-section.entry-BU4fC9y5.js → eds-card-section.entry-B5zN2gH1.js} +1 -1
- package/{eds-card-section.entry-CQLG4D0D.mjs → eds-card-section.entry-CjIZCL7E.mjs} +1 -1
- package/eds-card-tags.entry-DoeMGhOe.js +1 -0
- package/eds-card-tags.entry-mOuG6IC-.mjs +13 -0
- package/{eds-card-tool.entry-LSjtu5k_.js → eds-card-tool.entry-DHcuWwM-.js} +1 -1
- package/{eds-card-tool.entry-DpfInwr3.mjs → eds-card-tool.entry-_jn05Wfb.mjs} +5 -5
- package/{eds-code-block.entry-DG1tMA_4.js → eds-code-block.entry-DZpQeq0s.js} +2 -2
- package/{eds-code-block.entry-Bz1Pbg4W.mjs → eds-code-block.entry-M3dcOLIF.mjs} +2 -2
- package/{eds-cookies-preference.entry-0J8XlEDN.js → eds-cookies-preference.entry-BvefnEvv.js} +1 -1
- package/{eds-cookies-preference.entry-DgP6pxkr.mjs → eds-cookies-preference.entry-zFjsvydc.mjs} +1 -1
- package/{eds-feedback.entry-CxyxT-OD.mjs → eds-feedback.entry-DcCJFil-.mjs} +1 -1
- package/{eds-feedback.entry-Cmn3G5sR.js → eds-feedback.entry-SNZ7sV31.js} +1 -1
- package/{eds-frame.entry-Dh_T8O60.mjs → eds-frame.entry-BLCK8tz-.mjs} +1 -1
- package/{eds-frame.entry-LDVXpjkU.js → eds-frame.entry-BdrA2bT5.js} +1 -1
- package/eds-gauge.entry-CKzIpfnS.js +1 -0
- package/eds-gauge.entry-jvnnNUo6.mjs +30 -0
- package/{eds-icon-arrow-diagonal.entry-C6AHMuMB.js → eds-icon-arrow-diagonal.entry-A_pdljqB.js} +1 -1
- package/eds-icon-arrow-diagonal.entry-Dw776laB.mjs +13 -0
- package/eds-icon-arrow-right.entry-C9G_Fcl_.mjs +13 -0
- package/eds-icon-arrow-right.entry-DZ_TSpkX.js +1 -0
- package/eds-icon-bluesky.entry-BHcyMtLt.js +1 -0
- package/eds-icon-bluesky.entry-CqWobB9J.mjs +13 -0
- package/{eds-icon-bookmark.entry-DdUP23Uu.js → eds-icon-bookmark.entry-DzVxEKHw.js} +1 -1
- package/eds-icon-bookmark.entry-HX4lLYqS.mjs +13 -0
- package/eds-icon-chevron-down.entry-DC2xCevc.mjs +13 -0
- package/eds-icon-chevron-down.entry-IIq8mNIh.js +1 -0
- package/eds-icon-chevron-left.entry-DMOkczA8.mjs +13 -0
- package/eds-icon-chevron-left.entry-Dj-O8Mya.js +1 -0
- package/eds-icon-chevron-right.entry-BPU6csRU.mjs +13 -0
- package/eds-icon-chevron-right.entry-M1NdBwk3.js +1 -0
- package/eds-icon-chevron-up.entry-e20CUTEz.mjs +13 -0
- package/eds-icon-chevron-up.entry-xoUkajLs.js +1 -0
- package/eds-icon-close.entry-Baot7vVC.mjs +13 -0
- package/{eds-icon-close.entry-Dw7ZUnkQ.js → eds-icon-close.entry-tSX6jomh.js} +1 -1
- package/eds-icon-copy.entry-BUAIVm12.js +1 -0
- package/{eds-icon-copy.entry-DV4qtIA7.mjs → eds-icon-copy.entry-w4y5xFGj.mjs} +2 -2
- package/eds-icon-eu.entry-DVt8OKqO.js +1 -0
- package/eds-icon-eu.entry-j3nnswOb.mjs +13 -0
- package/eds-icon-external.entry-B3fDgHC5.mjs +13 -0
- package/eds-icon-external.entry-CObo8gSp.js +1 -0
- package/eds-icon-facebook.entry-DfLPuCdk.mjs +13 -0
- package/{eds-icon-facebook.entry-DwUcANz7.js → eds-icon-facebook.entry-FyG1_UVR.js} +1 -1
- package/{eds-icon-gitlab.entry-PCSE_PYe.mjs → eds-icon-gitlab.entry-BehGu9ri.mjs} +2 -2
- package/eds-icon-gitlab.entry-fdqyvp56.js +1 -0
- package/eds-icon-linkedin.entry-BYDgtuO6.mjs +13 -0
- package/{eds-icon-linkedin.entry-Bpoynapn.js → eds-icon-linkedin.entry-l3XVDZau.js} +1 -1
- package/eds-icon-loader.entry-CEOhaiM6.js +1 -0
- package/{eds-icon-loader.entry-CkIiBDsV.mjs → eds-icon-loader.entry-Do9987GS.mjs} +2 -2
- package/{eds-icon-mastodon.entry-7CmZhvNG.js → eds-icon-mastodon.entry-Dbt53FIG.js} +1 -1
- package/eds-icon-mastodon.entry-Se2jWlV7.mjs +13 -0
- package/{eds-icon-menu.entry-CFIbaI5j.js → eds-icon-menu.entry-Dw2AHxMT.js} +1 -1
- package/{eds-icon-menu.entry-7zPtmR24.mjs → eds-icon-menu.entry-K_64W1sA.mjs} +2 -2
- package/eds-icon-minus.entry-BUuG1-KE.mjs +13 -0
- package/eds-icon-minus.entry-DWfhk08H.js +1 -0
- package/eds-icon-more.entry-BiU14saz.js +1 -0
- package/eds-icon-more.entry-DeitvEya.mjs +13 -0
- package/eds-icon-paper.entry-CLU8P3am.js +1 -0
- package/eds-icon-paper.entry-CXtF4YoS.mjs +13 -0
- package/eds-icon-plus.entry-BKMWbPk7.js +1 -0
- package/eds-icon-plus.entry-Dhwui2Kk.mjs +13 -0
- package/{eds-icon-portal.entry-CbJqS4OZ.js → eds-icon-portal.entry-DxGM72p7.js} +1 -1
- package/eds-icon-portal.entry-whuMe-F4.mjs +13 -0
- package/{eds-icon-private.entry-DSIHrQEv.js → eds-icon-private.entry-BRR-Whf8.js} +1 -1
- package/eds-icon-private.entry-DvW9Pno6.mjs +13 -0
- package/eds-icon-public.entry-BqV48rE8.mjs +13 -0
- package/{eds-icon-public.entry-Cj1hddsF.js → eds-icon-public.entry-CamNLLgA.js} +1 -1
- package/eds-icon-search.entry-DFx68SNV.mjs +13 -0
- package/{eds-icon-search.entry-CXVkIZak.js → eds-icon-search.entry-uOoHRcc3.js} +1 -1
- package/{eds-icon-star.entry-B3WySZM_.mjs → eds-icon-star.entry-Cx31j8jH.mjs} +2 -2
- package/{eds-icon-star.entry-B464U0ht.js → eds-icon-star.entry-DGVy7Acz.js} +1 -1
- package/eds-icon-success.entry-C2iwNe7M.mjs +13 -0
- package/{eds-icon-success.entry-BhRuLH3J.js → eds-icon-success.entry-L-6KxNv_.js} +1 -1
- package/eds-icon-thumbs-down.entry-Bzg03090.mjs +13 -0
- package/{eds-icon-thumbs-down.entry-DVK5ACMh.js → eds-icon-thumbs-down.entry-H_L3G0Qc.js} +1 -1
- package/eds-icon-thumbs-up.entry-CGsU22Uo.mjs +13 -0
- package/eds-icon-thumbs-up.entry-CtlESMZe.js +1 -0
- package/eds-icon-tutorial.entry-0KlIsV_C.mjs +13 -0
- package/eds-icon-tutorial.entry-eZ7jGnOp.js +1 -0
- package/{eds-icon-twitter.entry-CYCIFfgj.mjs → eds-icon-twitter.entry-Cn4V89u2.mjs} +2 -2
- package/{eds-icon-twitter.entry-CcpEPKUu.js → eds-icon-twitter.entry-DhBDne94.js} +1 -1
- package/eds-icon-unknown.entry-WV-gVCVW.mjs +13 -0
- package/eds-icon-unknown.entry-euVB8GBQ.js +1 -0
- package/eds-icon-updown.entry-BugenFBf.mjs +13 -0
- package/eds-icon-updown.entry-CACq6JHQ.js +1 -0
- package/{eds-icon-user.entry-BimbLh7T.js → eds-icon-user.entry-dO7iZ0Cx.js} +1 -1
- package/eds-icon-user.entry-iBxC9737.mjs +13 -0
- package/eds-icon-youtube.entry-C9W4k_s3.mjs +13 -0
- package/{eds-icon-youtube.entry-BepDLIVw.js → eds-icon-youtube.entry-zumkO4fA.js} +1 -1
- package/{eds-matomo-notice.entry-BnbhjXrV.js → eds-matomo-notice.entry-CQirqE_4.js} +1 -1
- package/{eds-matomo-notice.entry-DQLfTEH4.mjs → eds-matomo-notice.entry-CjyG4-EZ.mjs} +1 -1
- package/eds-pie.entry-BmBUruFw.mjs +68 -0
- package/eds-pie.entry-DYNe4PYX.js +1 -0
- package/{eds-progress-bar.entry-UWeq2B4o.mjs → eds-progress-bar.entry-BXcu_prb.mjs} +4 -4
- package/{eds-progress-bar.entry-CnzFrS-7.js → eds-progress-bar.entry-Cjqp0Kwg.js} +1 -1
- package/{eds-rating.entry-D48_hoBw.js → eds-rating.entry-BvDI78HF.js} +1 -1
- package/{eds-rating.entry-ScrHbfrp.mjs → eds-rating.entry-D2UhQaPd.mjs} +2 -2
- package/{eds-section-core_2.entry-D3FNm7II.mjs → eds-section-core_2.entry-C0cGmGRM.mjs} +6 -6
- package/{eds-section-core_2.entry-DshZ38Q9.js → eds-section-core_2.entry-D9dSp32j.js} +1 -1
- package/{eds-spinner.entry-CAKA3YkP.js → eds-spinner.entry-CBeSDny0.js} +1 -1
- package/{eds-spinner.entry-KZWQRAHb.mjs → eds-spinner.entry-DgIsxAng.mjs} +5 -5
- package/{eds-splash-screen.entry-B7f2rbAn.mjs → eds-splash-screen.entry-DbA7qdl8.mjs} +1 -1
- package/{eds-splash-screen.entry-YJ_mGQYU.js → eds-splash-screen.entry-Deeo7BfB.js} +1 -1
- package/{eds-switch.entry-CKv4fbm-.js → eds-switch.entry-BwO-kuJd.js} +1 -1
- package/{eds-switch.entry-DbBUxVI8.mjs → eds-switch.entry-CP6uuyWY.mjs} +6 -6
- package/{eds-timeline.entry-uFV4mRmh.mjs → eds-timeline.entry-BD5tfzB4.mjs} +1 -1
- package/{eds-timeline.entry-BE-6PK5Q.js → eds-timeline.entry-D7WkN46r.js} +1 -1
- package/{eds-toast-manager.entry-CXL8sMaG.mjs → eds-toast-manager.entry-B5OH6VQt.mjs} +1 -1
- package/{eds-toast-manager.entry-BKIf0Xw3.js → eds-toast-manager.entry-B_xF4nhP.js} +1 -1
- package/{eds-toast.entry-oZ1Juhqm.mjs → eds-toast.entry-5VerBELs.mjs} +1 -1
- package/{eds-toast.entry-a-RIjL18.js → eds-toast.entry-B79TcSYL.js} +1 -1
- package/eds-tooltip.entry-8DmPgiya.js +6 -0
- package/eds-tooltip.entry-CGm5L18V.mjs +31 -0
- package/{eds-trl.entry-Bw8w42hZ.mjs → eds-trl.entry-BWKM05Zn.mjs} +1 -1
- package/{eds-trl.entry-DmSx4bnn.js → eds-trl.entry-DJmeDq92.js} +1 -1
- package/{incorrect-use-of-colors.entry-BlDQxmUQ.mjs → incorrect-use-of-colors.entry-BUl-g-9b.mjs} +1 -1
- package/{incorrect-use-of-colors.entry-CglkFNGU.js → incorrect-use-of-colors.entry-CZoP7lAo.js} +1 -1
- package/{index-BvZ-fq9l.mjs → index-DlF3mhYp.mjs} +446 -410
- package/index-oRFAnZQN.js +21 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{logo-space.entry-d5Tx6GSR.js → logo-space.entry-BEakqZjv.js} +1 -1
- package/{logo-space.entry-D1gv5Jv7.mjs → logo-space.entry-DlW71ecZ.mjs} +1 -1
- package/{logo-variations-horizontal_2.entry-CiMlktdv.js → logo-variations-horizontal_2.entry-DKm5neSg.js} +1 -1
- package/{logo-variations-horizontal_2.entry-DPHzlUCt.mjs → logo-variations-horizontal_2.entry-DgdtCdH6.mjs} +1 -1
- package/{logo-variations-tabs.entry-BYi6NRAo.mjs → logo-variations-tabs.entry-BpMbJUfT.mjs} +1 -1
- package/{logo-variations-tabs.entry-CcSRDFWV.js → logo-variations-tabs.entry-hRkNKrnQ.js} +1 -1
- package/{logo-wrong-usage.entry-gsDvZ1sn.js → logo-wrong-usage.entry-TyewhaS3.js} +1 -1
- package/{logo-wrong-usage.entry-9iDssoCI.mjs → logo-wrong-usage.entry-dhlCSGo4.mjs} +1 -1
- package/package.json +1 -1
- package/{svg-repository.entry-BtksDklW.mjs → svg-repository.entry-BJiV4WBq.mjs} +1 -1
- package/{svg-repository.entry-_-HISW99.js → svg-repository.entry-Brhc-5cS.js} +1 -1
- package/{token-list_3.entry-CRZq4och.js → token-list_3.entry-DIghLBVw.js} +1 -1
- package/{token-list_3.entry-CNkWD89P.mjs → token-list_3.entry-DVABZ5Nq.mjs} +1 -1
- package/{token-ratios.entry-CL40j9gF.js → token-ratios.entry-BJI_gvbW.js} +1 -1
- package/{token-ratios.entry-D4aHLsX-.mjs → token-ratios.entry-BsKRnvCA.mjs} +1 -1
- package/token-spacing.entry-Cyhv1Vla.js +1 -0
- package/token-spacing.entry-kdGFG1Tc.mjs +12 -0
- package/{token-typography.entry-D17oZHbh.js → token-typography.entry-D1mEIcSS.js} +1 -1
- package/{token-typography.entry-ayRMMiOe.mjs → token-typography.entry-DY6BWv55.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 h } from "./index-DlF3mhYp.mjs";
|
|
2
|
+
import { s as f } 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
|
+
f({
|
|
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));
|
|
1426
|
-
}
|
|
1427
|
-
};
|
|
1428
|
-
en.style = nn;
|
|
1429
|
-
const rn = ".h-auto{height:auto}.h-full{height:100%}.\\!min-h-20{min-height:1.25rem !important}.min-h-120{min-height:120px}.min-h-156{min-height:156px}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.effect-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.hover\\:shadow-hover:hover{--tw-shadow:0px 0px 16px rgba(0, 0, 0, 0.2);--tw-shadow-colored:0px 0px 16px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.cursor-pointer{cursor:pointer}.border-soft{border-color:rgba(0, 0, 0, .15)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-12{padding:0.75rem}.p-16{padding:1rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}.gap-x-1{-moz-column-gap:0.0625rem;column-gap:0.0625rem}.gap-y-4{row-gap:0.25rem}.order-first{order:-9999}.mb-10{margin-bottom:0.625rem}.mb-12{margin-bottom:0.75rem}.mx-auto{margin-left:auto;margin-right:auto}.block{display:block}", tn = rn, ln = class {
|
|
1430
|
-
constructor(n) {
|
|
1431
|
-
s(this, n), this.parentContext = null, this.cardTitle = void 0, this.url = void 0, this.description = void 0, this.image = void 0, this.avatar = void 0, this.shortAbbreviation = void 0, this.headingLevel = "h3", this.tags = [], this.tiny = !1, this.bg = !0, this.withHover = !0, this.hierarchy = !0, this.parsedImage = null;
|
|
1432
|
-
}
|
|
1433
|
-
componentWillLoad() {
|
|
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));
|
|
1314
|
+
return c(this);
|
|
1512
1315
|
}
|
|
1513
1316
|
};
|
|
1514
|
-
|
|
1515
|
-
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 {
|
|
1516
1319
|
constructor(n) {
|
|
1517
|
-
s(this, n), this.dropdown =
|
|
1518
|
-
var
|
|
1519
|
-
this.isOpen = !this.isOpen, this.isOpen ? (this.focusIndex = 0, this.focusItem()) : this.closeDropdown(), this.dropdown.emit({ expanded: this.isOpen }),
|
|
1320
|
+
s(this, n), this.dropdown = h(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 }), f({
|
|
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}}", N = q, R = class {
|
|
1594
1397
|
constructor(n) {
|
|
1595
|
-
s(this, n), this.cookies =
|
|
1398
|
+
s(this, n), this.cookies = h(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
|
+
R.style = N;
|
|
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 = h(this, "form", 7), this.name = "eds-form", this.setFormUrl = !0, this.formBtn = !0, this.formBtnLabel = "Submit", this.errorMessage = "Some fields in your form are incorrect.", this.fields = [], this.initData = {}, this.values = {}, this.isSubmitting = !1, this.hasError = !1, this.errors = {}, this.parsedFields = [];
|
|
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
|
+
}), f({
|
|
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
|
+
}), f({
|
|
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), onChangeNative: (o) => this.handleChange(o, r), class: t > 0 ? "mt-20" : "", options: r.options }) : null;
|
|
1634
|
+
})), this.formBtn && i("div", { key: "c97041c2e421c21a38513d3b456991167f5d1cdb", class: "mt-20" }, i("eds-button", { key: "96c35271f7227b9acd467fe822745bd41d3eaa80", 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 = h(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
|
|
1693
|
+
return b(this.menuLinks);
|
|
1882
1694
|
}
|
|
1883
1695
|
render() {
|
|
1884
|
-
return this.isMenuOpen ?
|
|
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;
|
|
1885
1697
|
}
|
|
1886
1698
|
};
|
|
1887
|
-
|
|
1888
|
-
const
|
|
1889
|
-
default: "#f2f2f2",
|
|
1890
|
-
dark: "#d8d8d8",
|
|
1891
|
-
strong: "#666666",
|
|
1892
|
-
black: "#000000"
|
|
1893
|
-
}, Fn = class {
|
|
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 {
|
|
1894
1701
|
constructor(n) {
|
|
1895
|
-
s(this, n), this.
|
|
1896
|
-
}
|
|
1897
|
-
render() {
|
|
1898
|
-
const n = Math.min(Math.max(this.thickness, 0.1), 0.2), i = Math.min(Math.max(this.value, this.valueMin), this.valueMax), r = this.valueMax - this.valueMin || 1, t = (i - this.valueMin) / r, l = this.size, a = t * 360, o = n * l, d = l - o * 2, h = l * 0.2, f = F[this.variant] || F.default, w = {
|
|
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)));
|
|
1911
|
-
}
|
|
1912
|
-
};
|
|
1913
|
-
Fn.style = En;
|
|
1914
|
-
const In = ".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}}", Ln = In, jn = class {
|
|
1915
|
-
constructor(n) {
|
|
1916
|
-
s(this, n), this.toggleheadermenu = x(this, "toggleheadermenu", 7), this.homeUrl = "/", this.links = void 0, this.headerVariant = "default", this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
|
|
1702
|
+
s(this, n), this.toggleheadermenu = h(this, "toggleheadermenu", 7), this.homeUrl = "/", this.links = void 0, this.headerVariant = "default", this.menuEnabled = !1, this.isMenuOpen = !1, this.isUserMenuOpen = !1, this.isAuthenticated = !1;
|
|
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,29 +9666,21 @@ 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.edsinput = h(this, "edsinput", 7), this.edschange = h(this, "edschange", 7), this.handleNativeInput = (e) => {
|
|
9886
9672
|
var r;
|
|
9887
|
-
if ((r = this.onInput) === null || r === void 0 || r.call(this,
|
|
9888
|
-
const t =
|
|
9889
|
-
this.
|
|
9890
|
-
detail: { value: t },
|
|
9891
|
-
bubbles: !1,
|
|
9892
|
-
composed: !0
|
|
9893
|
-
}));
|
|
9673
|
+
if ((r = this.onInput) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9674
|
+
const t = e.target.value;
|
|
9675
|
+
this.edsinput.emit({ value: t });
|
|
9894
9676
|
}
|
|
9895
|
-
}, this.handleNativeChange = (
|
|
9677
|
+
}, this.handleNativeChange = (e) => {
|
|
9896
9678
|
var r;
|
|
9897
|
-
if ((r = this.
|
|
9898
|
-
const
|
|
9899
|
-
this.
|
|
9900
|
-
detail: { value: t.value },
|
|
9901
|
-
bubbles: !1,
|
|
9902
|
-
composed: !0
|
|
9903
|
-
}));
|
|
9679
|
+
if ((r = this.onChangeNative) === null || r === void 0 || r.call(this, e), this.shouldEmitValue()) {
|
|
9680
|
+
const l = e.target.value;
|
|
9681
|
+
this.edschange.emit({ value: l });
|
|
9904
9682
|
}
|
|
9905
|
-
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.
|
|
9683
|
+
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.required = !1, this.label = void 0, this.hint = void 0, this.icon = void 0, this.link = void 0, this.message = void 0, this.error = !1, this.checked = void 0, this.errorMessage = void 0, this.value = void 0, this.maxLength = void 0, this.options = void 0, this.type = "text", this.onChangeNative = void 0, this.onInput = void 0, this.exposeValueEvents = !0;
|
|
9906
9684
|
}
|
|
9907
9685
|
shouldEmitValue() {
|
|
9908
9686
|
return this.exposeValueEvents && this.type !== "password";
|
|
@@ -9933,8 +9711,8 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9933
9711
|
icon: this.icon,
|
|
9934
9712
|
checked: this.checked
|
|
9935
9713
|
};
|
|
9936
|
-
return
|
|
9937
|
-
var
|
|
9714
|
+
return i("div", { key: "2ff82dedd17922c5cb72fc30b7f616c7fafa7b07", 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.onChangeNative, disabled: this.disabled, required: this.required }) : this.type === "search" ? i("eds-input-search", { name: "search-box" }) : this.type === "range" ? (() => {
|
|
9715
|
+
var e, r, t;
|
|
9938
9716
|
const l = {
|
|
9939
9717
|
name: n.name,
|
|
9940
9718
|
inputId: n.id || n.name,
|
|
@@ -9943,35 +9721,35 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
9943
9721
|
onInput: n.onInput,
|
|
9944
9722
|
onChange: n.onChange
|
|
9945
9723
|
}, a = this.parsedOptions, o = typeof this.value == "string" ? parseFloat(this.value) : this.value || 0;
|
|
9946
|
-
return
|
|
9947
|
-
})() :
|
|
9724
|
+
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 }));
|
|
9725
|
+
})() : i("eds-input", Object.assign({}, n))), i("eds-input-footer", { key: "4b8513dcd713d56953934b158ba1b9182e1497a8", id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }));
|
|
9948
9726
|
}
|
|
9949
9727
|
get hostEl() {
|
|
9950
|
-
return
|
|
9728
|
+
return c(this);
|
|
9951
9729
|
}
|
|
9952
9730
|
};
|
|
9953
|
-
|
|
9954
|
-
const
|
|
9731
|
+
cn.style = dn;
|
|
9732
|
+
const ne = class {
|
|
9955
9733
|
constructor(n) {
|
|
9956
9734
|
s(this, n), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
9957
9735
|
}
|
|
9958
9736
|
render() {
|
|
9959
|
-
return
|
|
9737
|
+
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
9738
|
}
|
|
9961
|
-
},
|
|
9739
|
+
}, ee = class {
|
|
9962
9740
|
constructor(n) {
|
|
9963
9741
|
s(this, n), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
9964
9742
|
}
|
|
9965
9743
|
render() {
|
|
9966
|
-
return
|
|
9744
|
+
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
9745
|
}
|
|
9968
|
-
},
|
|
9746
|
+
}, ie = class {
|
|
9969
9747
|
constructor(n) {
|
|
9970
|
-
s(this, n), this.edsrange =
|
|
9971
|
-
const r =
|
|
9748
|
+
s(this, n), this.edsrange = h(this, "edsrange", 7), this.onInput = (e) => {
|
|
9749
|
+
const r = e.target;
|
|
9972
9750
|
this.sliderVal = parseInt(r.value, 10);
|
|
9973
|
-
}, this.onChange = (
|
|
9974
|
-
const r =
|
|
9751
|
+
}, this.onChange = (e) => {
|
|
9752
|
+
const r = e.target;
|
|
9975
9753
|
this.sliderVal = parseInt(r.value, 10), this.edsrange.emit(this.sliderVal);
|
|
9976
9754
|
}, 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
9755
|
}
|
|
@@ -9989,29 +9767,29 @@ const Ce = class {
|
|
|
9989
9767
|
return this.inputElement;
|
|
9990
9768
|
}
|
|
9991
9769
|
render() {
|
|
9992
|
-
return
|
|
9770
|
+
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
9771
|
}
|
|
9994
9772
|
get el() {
|
|
9995
|
-
return
|
|
9773
|
+
return c(this);
|
|
9996
9774
|
}
|
|
9997
9775
|
static get watchers() {
|
|
9998
9776
|
return {
|
|
9999
9777
|
value: ["onValueChange"]
|
|
10000
9778
|
};
|
|
10001
9779
|
}
|
|
10002
|
-
},
|
|
9780
|
+
}, re = class {
|
|
10003
9781
|
constructor(n) {
|
|
10004
|
-
s(this, n), this.search =
|
|
10005
|
-
(
|
|
10006
|
-
}, this.onChange = (
|
|
9782
|
+
s(this, n), this.search = h(this, "search", 7), this.keydownListener = (e) => {
|
|
9783
|
+
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), this.inputElement && !this.disabled && this.inputElement.focus());
|
|
9784
|
+
}, this.onChange = (e) => {
|
|
10007
9785
|
this.search.emit({
|
|
10008
9786
|
event: "change",
|
|
10009
|
-
value:
|
|
10010
|
-
}),
|
|
9787
|
+
value: e.target.value
|
|
9788
|
+
}), f({
|
|
10011
9789
|
category: "ui-component",
|
|
10012
9790
|
parentContext: null,
|
|
10013
9791
|
tag: this.el.tagName.toLowerCase(),
|
|
10014
|
-
name:
|
|
9792
|
+
name: e.target.value || "",
|
|
10015
9793
|
action: "search"
|
|
10016
9794
|
});
|
|
10017
9795
|
}, 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 +9804,8 @@ const Ce = class {
|
|
|
10026
9804
|
return this.inputElement;
|
|
10027
9805
|
}
|
|
10028
9806
|
render() {
|
|
10029
|
-
return
|
|
10030
|
-
key: "
|
|
9807
|
+
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", {
|
|
9808
|
+
key: "1419cd8f5b8791b5b812c57ba649567e1b6ec0bb",
|
|
10031
9809
|
id: this.inputId || this.name,
|
|
10032
9810
|
name: this.name,
|
|
10033
9811
|
placeholder: this.placeholder,
|
|
@@ -10042,25 +9820,25 @@ const Ce = class {
|
|
|
10042
9820
|
}));
|
|
10043
9821
|
}
|
|
10044
9822
|
get el() {
|
|
10045
|
-
return
|
|
9823
|
+
return c(this);
|
|
10046
9824
|
}
|
|
10047
|
-
},
|
|
9825
|
+
}, te = class {
|
|
10048
9826
|
constructor(n) {
|
|
10049
|
-
s(this, n), this.edsselect =
|
|
10050
|
-
const r =
|
|
9827
|
+
s(this, n), this.edsselect = h(this, "edsselect", 7), this.handleChange = (e) => {
|
|
9828
|
+
const r = e.target;
|
|
10051
9829
|
this.edsselect.emit(r.value);
|
|
10052
9830
|
}, 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
9831
|
}
|
|
10054
9832
|
render() {
|
|
10055
|
-
const n = this.inputId || this.name,
|
|
10056
|
-
return
|
|
9833
|
+
const n = this.inputId || this.name, e = this.placeholder || `Please select ${this.name}`, r = this.hasMessage || this.error ? `${this.name}-error` : void 0;
|
|
9834
|
+
return i("div", { key: "80cbdab87f5baa21df5edc857685c3af4dee3a58", class: "relative" }, i("select", { key: "4e8f84fd9dbc63df7981898cadc24450f48aa92a", id: n, name: this.name, class: {
|
|
10057
9835
|
input: !0,
|
|
10058
9836
|
"input-error": this.error,
|
|
10059
9837
|
"px-4": !0,
|
|
10060
9838
|
"py-2": !0
|
|
10061
|
-
}, "aria-invalid": this.error ? "true" : "false", "aria-describedby": r, disabled: this.disabled, required: this.required, onChange: this.handleChange },
|
|
9839
|
+
}, "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
9840
|
}
|
|
10063
|
-
},
|
|
9841
|
+
}, gn = `*,
|
|
10064
9842
|
::before,
|
|
10065
9843
|
::after {
|
|
10066
9844
|
box-sizing: border-box;
|
|
@@ -11297,7 +11075,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11297
11075
|
.lg\\:flex {
|
|
11298
11076
|
display: flex;
|
|
11299
11077
|
}
|
|
11300
|
-
}`,
|
|
11078
|
+
}`, hn = gn, fn = m([
|
|
11301
11079
|
"relative inline-flex justify-center items-center py-8 rounded-sm",
|
|
11302
11080
|
"effect-color effect-focus aria-disabled:text-lightest",
|
|
11303
11081
|
"cursor-pointer",
|
|
@@ -11422,7 +11200,7 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11422
11200
|
size: "small",
|
|
11423
11201
|
hasIcon: !1
|
|
11424
11202
|
}
|
|
11425
|
-
}),
|
|
11203
|
+
}), bn = class {
|
|
11426
11204
|
constructor(n) {
|
|
11427
11205
|
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
11206
|
}
|
|
@@ -11430,16 +11208,16 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11430
11208
|
n.target === this.el && (this.parentContext = n.detail, n.stopPropagation());
|
|
11431
11209
|
}
|
|
11432
11210
|
handleClick(n) {
|
|
11433
|
-
var
|
|
11211
|
+
var e, r;
|
|
11434
11212
|
if (this.disabled) {
|
|
11435
11213
|
n.preventDefault();
|
|
11436
11214
|
return;
|
|
11437
11215
|
}
|
|
11438
|
-
|
|
11216
|
+
f({
|
|
11439
11217
|
category: "ui-component",
|
|
11440
11218
|
parentContext: this.parentContext,
|
|
11441
11219
|
tag: this.el.tagName.toLowerCase(),
|
|
11442
|
-
name: ((
|
|
11220
|
+
name: ((e = this.label) === null || e === void 0 ? void 0 : e.toLowerCase()) || ((r = this.ariaLabel) === null || r === void 0 ? void 0 : r.toLowerCase()) || "",
|
|
11443
11221
|
action: "click"
|
|
11444
11222
|
});
|
|
11445
11223
|
}
|
|
@@ -11447,33 +11225,33 @@ Make sure disabled buttons don't get the pointer cursor.
|
|
|
11447
11225
|
return this.size;
|
|
11448
11226
|
}
|
|
11449
11227
|
renderLeftIcon() {
|
|
11450
|
-
return this.icon && this.iconPos === "left" ?
|
|
11228
|
+
return this.icon && this.iconPos === "left" ? i("span", { class: !this.external && !this.label ? "" : "flex" }, i("eds-icon-wrapper", { class: `
|
|
11451
11229
|
flex inline-flex items-center justify-center
|
|
11452
11230
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
11453
11231
|
`, icon: this.icon })) : null;
|
|
11454
11232
|
}
|
|
11455
11233
|
renderRightIcon() {
|
|
11456
|
-
return this.icon && this.iconPos === "right" ?
|
|
11234
|
+
return this.icon && this.iconPos === "right" ? i("span", { class: !this.external && !this.label ? "" : "flex" }, i("eds-icon-wrapper", { class: `
|
|
11457
11235
|
flex inline-flex items-center justify-center
|
|
11458
11236
|
${this.size === "large" ? "h-24 w-24" : "h-20 w-20"}
|
|
11459
11237
|
`, icon: this.icon })) : null;
|
|
11460
11238
|
}
|
|
11461
11239
|
render() {
|
|
11462
|
-
const n = this.disabled ? "span" : "a",
|
|
11240
|
+
const n = this.disabled ? "span" : "a", e = fn({
|
|
11463
11241
|
intent: this.intent,
|
|
11464
11242
|
size: this.getLinkSize(),
|
|
11465
11243
|
iconSmall: this.iconSmall,
|
|
11466
11244
|
isActive: this.current,
|
|
11467
11245
|
hasIcon: !!this.icon
|
|
11468
11246
|
}), r = this.ariaLabel || this.label || "link", t = this.hideLabelOnSmallScreen ? "hidden lg:flex" : "";
|
|
11469
|
-
return
|
|
11247
|
+
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
11248
|
}
|
|
11471
11249
|
get el() {
|
|
11472
|
-
return
|
|
11250
|
+
return c(this);
|
|
11473
11251
|
}
|
|
11474
11252
|
};
|
|
11475
|
-
|
|
11476
|
-
const
|
|
11253
|
+
bn.style = hn;
|
|
11254
|
+
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
11255
|
constructor(n) {
|
|
11478
11256
|
s(this, n), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
|
|
11479
11257
|
}
|
|
@@ -11486,7 +11264,7 @@ const Dn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11486
11264
|
* - `action`: The action, set as "click".
|
|
11487
11265
|
*/
|
|
11488
11266
|
handleClick() {
|
|
11489
|
-
|
|
11267
|
+
f({
|
|
11490
11268
|
category: "ui-component",
|
|
11491
11269
|
tag: this.el.tagName.toLowerCase(),
|
|
11492
11270
|
name: "logo",
|
|
@@ -11497,37 +11275,37 @@ const Dn = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{
|
|
|
11497
11275
|
* Determines the appropriate SVG content based on the `orientation` and `type` props.
|
|
11498
11276
|
*/
|
|
11499
11277
|
getLogo() {
|
|
11500
|
-
const
|
|
11278
|
+
const e = {
|
|
11501
11279
|
horizontal: {
|
|
11502
|
-
color:
|
|
11503
|
-
black:
|
|
11504
|
-
"color-white":
|
|
11505
|
-
white:
|
|
11506
|
-
"no-bg":
|
|
11280
|
+
color: p,
|
|
11281
|
+
black: w,
|
|
11282
|
+
"color-white": k,
|
|
11283
|
+
white: z,
|
|
11284
|
+
"no-bg": C
|
|
11507
11285
|
},
|
|
11508
11286
|
vertical: {
|
|
11509
|
-
color:
|
|
11510
|
-
black:
|
|
11511
|
-
"color-white":
|
|
11512
|
-
white:
|
|
11513
|
-
"no-bg":
|
|
11287
|
+
color: S,
|
|
11288
|
+
black: E,
|
|
11289
|
+
"color-white": F,
|
|
11290
|
+
white: L,
|
|
11291
|
+
"no-bg": I
|
|
11514
11292
|
}
|
|
11515
11293
|
}[this.orientation];
|
|
11516
|
-
if (!
|
|
11517
|
-
return
|
|
11518
|
-
const r =
|
|
11519
|
-
return r ||
|
|
11294
|
+
if (!e)
|
|
11295
|
+
return p;
|
|
11296
|
+
const r = e[this.type];
|
|
11297
|
+
return r || e.color;
|
|
11520
11298
|
}
|
|
11521
11299
|
render() {
|
|
11522
11300
|
const n = this.getLogo();
|
|
11523
|
-
return
|
|
11301
|
+
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
11302
|
}
|
|
11525
11303
|
get el() {
|
|
11526
|
-
return
|
|
11304
|
+
return c(this);
|
|
11527
11305
|
}
|
|
11528
11306
|
};
|
|
11529
|
-
|
|
11530
|
-
const
|
|
11307
|
+
pn.style = mn;
|
|
11308
|
+
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
11309
|
constructor(n) {
|
|
11532
11310
|
s(this, n), this.heading = "", this.truncate = 1, this.position = "middle", this.inverseHeader = !1, this.isOpen = !1;
|
|
11533
11311
|
}
|
|
@@ -11578,7 +11356,7 @@ const Rn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
11578
11356
|
*/
|
|
11579
11357
|
async open() {
|
|
11580
11358
|
var n;
|
|
11581
|
-
this.isOpen = !0,
|
|
11359
|
+
this.isOpen = !0, f({
|
|
11582
11360
|
category: "ui-component",
|
|
11583
11361
|
parentContext: null,
|
|
11584
11362
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -11591,7 +11369,7 @@ const Rn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
11591
11369
|
*/
|
|
11592
11370
|
async close() {
|
|
11593
11371
|
var n;
|
|
11594
|
-
this.isOpen = !1,
|
|
11372
|
+
this.isOpen = !1, f({
|
|
11595
11373
|
category: "ui-component",
|
|
11596
11374
|
parentContext: null,
|
|
11597
11375
|
tag: this.el.tagName.toLowerCase(),
|
|
@@ -11625,82 +11403,143 @@ const Rn = ".block{display:block}.inline-block{display:inline-block}.inline{disp
|
|
|
11625
11403
|
}
|
|
11626
11404
|
render() {
|
|
11627
11405
|
const n = `modal-title-${this.el.tagName.toLowerCase()}`;
|
|
11628
|
-
return
|
|
11629
|
-
key: "
|
|
11406
|
+
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", {
|
|
11407
|
+
key: "e4359b32052a155f879070deea34fbca2fb67e3b",
|
|
11630
11408
|
class: "fixed inset-0 bg-dark bg-opacity-90",
|
|
11631
11409
|
onClick: () => this.close()
|
|
11632
|
-
}),
|
|
11410
|
+
}), 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
11411
|
}
|
|
11634
11412
|
get el() {
|
|
11635
|
-
return
|
|
11413
|
+
return c(this);
|
|
11636
11414
|
}
|
|
11637
11415
|
};
|
|
11638
|
-
|
|
11639
|
-
const
|
|
11416
|
+
vn.style = yn;
|
|
11417
|
+
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
11418
|
constructor(n) {
|
|
11641
|
-
s(this, n), this.
|
|
11419
|
+
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
11420
|
}
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11421
|
+
/** Lifecycle hook to generate pagination links on component load */
|
|
11422
|
+
componentWillLoad() {
|
|
11423
|
+
this.mode === "default" && this.generateLinks();
|
|
11424
|
+
}
|
|
11425
|
+
componentDidLoad() {
|
|
11426
|
+
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
11427
|
+
this.emitContext(e);
|
|
11428
|
+
});
|
|
11429
|
+
}
|
|
11430
|
+
/**
|
|
11431
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
11432
|
+
* This event provides context information about the breadcrumb component.
|
|
11433
|
+
*
|
|
11434
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
11435
|
+
*/
|
|
11436
|
+
emitContext(n) {
|
|
11437
|
+
const e = new CustomEvent("parentContext", {
|
|
11438
|
+
detail: {
|
|
11439
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
11440
|
+
identifier: null
|
|
11649
11441
|
}
|
|
11650
|
-
|
|
11442
|
+
});
|
|
11443
|
+
n.dispatchEvent(e);
|
|
11651
11444
|
}
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
return { x: n + r * Math.cos(l), y: i + r * Math.sin(l) };
|
|
11445
|
+
onPageOrLastPageChange() {
|
|
11446
|
+
this.mode === "default" && this.generateLinks();
|
|
11655
11447
|
}
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11448
|
+
/**
|
|
11449
|
+
* Checks if the current page is the first page
|
|
11450
|
+
* @returns {boolean} - true if current page is the first page
|
|
11451
|
+
*/
|
|
11452
|
+
isFirstPage() {
|
|
11453
|
+
return this.currentPage === 1;
|
|
11454
|
+
}
|
|
11455
|
+
/**
|
|
11456
|
+
* Checks if the current page is the last page
|
|
11457
|
+
* @returns {boolean} - true if current page is the last page
|
|
11458
|
+
*/
|
|
11459
|
+
isLastPage() {
|
|
11460
|
+
return this.currentPage === this.lastPage;
|
|
11461
|
+
}
|
|
11462
|
+
/**
|
|
11463
|
+
* Generates a pagination link object
|
|
11464
|
+
* @param {number} page - Page number for the link
|
|
11465
|
+
* @returns {Link} - Link object with page details
|
|
11466
|
+
*/
|
|
11467
|
+
generateLink(n) {
|
|
11468
|
+
const e = this.url.includes("?");
|
|
11469
|
+
return {
|
|
11470
|
+
ariaLabel: `Page ${n}`,
|
|
11471
|
+
url: `${this.url}${e ? "&" : "?"}page=${n}`,
|
|
11472
|
+
label: n.toString(),
|
|
11473
|
+
current: this.currentPage === n,
|
|
11474
|
+
disabled: !1
|
|
11475
|
+
};
|
|
11476
|
+
}
|
|
11477
|
+
/** Generates pagination links based on the last page and current page */
|
|
11478
|
+
generateLinks() {
|
|
11479
|
+
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)));
|
|
11480
|
+
}
|
|
11481
|
+
/**
|
|
11482
|
+
* Creates a pagination range based on delta, current, and total pages
|
|
11483
|
+
* @param {number} current - Current page number
|
|
11484
|
+
* @param {number} total - Total number of pages
|
|
11485
|
+
* @param {number} delta - Range of pages to display around the current page
|
|
11486
|
+
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
11487
|
+
*/
|
|
11488
|
+
getPaginationGenerator(n, e) {
|
|
11489
|
+
const t = [];
|
|
11490
|
+
if (e <= 5)
|
|
11491
|
+
for (let l = 1; l <= e; l++)
|
|
11492
|
+
t.push(l);
|
|
11493
|
+
else {
|
|
11494
|
+
t.push(1), n - 1 > 2 && t.push("...");
|
|
11495
|
+
for (let l = Math.max(2, n - 1); l <= Math.min(e - 1, n + 1); l++)
|
|
11496
|
+
t.push(l);
|
|
11497
|
+
n + 1 < e - 1 && t.push("..."), t.push(e);
|
|
11498
|
+
}
|
|
11499
|
+
return t;
|
|
11500
|
+
}
|
|
11501
|
+
/**
|
|
11502
|
+
* Formats the current page results information for display
|
|
11503
|
+
* @returns {string} - Formatted page result information
|
|
11504
|
+
*/
|
|
11505
|
+
pageResults() {
|
|
11506
|
+
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}` : "";
|
|
11507
|
+
}
|
|
11508
|
+
/**
|
|
11509
|
+
* Handles a page click event, updating the current page and dispatching an event
|
|
11510
|
+
* @param {MouseEvent} event - Click event
|
|
11511
|
+
* @param {number} newPage - New page number
|
|
11512
|
+
*/
|
|
11513
|
+
handlePageClick(n, e) {
|
|
11514
|
+
if (this.mode !== "navigator" && (n.preventDefault(), e !== this.currentPage)) {
|
|
11515
|
+
this.links = this.links.map((t) => typeof t == "object" ? Object.assign(Object.assign({}, t), { current: parseInt(t.label) === e }) : t);
|
|
11516
|
+
const r = new CustomEvent("page", {
|
|
11517
|
+
detail: e,
|
|
11518
|
+
bubbles: !0,
|
|
11519
|
+
composed: !0
|
|
11520
|
+
});
|
|
11521
|
+
this.hostEl.dispatchEvent(r), this.currentPage = e;
|
|
11522
|
+
}
|
|
11659
11523
|
}
|
|
11660
11524
|
render() {
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
return
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
}
|
|
11525
|
+
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) => {
|
|
11526
|
+
this.mode === "default" && (this.isFirstPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) - 1));
|
|
11527
|
+
} })), 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) => {
|
|
11528
|
+
this.mode === "default" && (this.isLastPage() ? n.preventDefault() : this.handlePageClick(n, (this.currentPage || 1) + 1));
|
|
11529
|
+
} })))) : null);
|
|
11530
|
+
}
|
|
11531
|
+
get hostEl() {
|
|
11532
|
+
return c(this);
|
|
11533
|
+
}
|
|
11534
|
+
static get watchers() {
|
|
11535
|
+
return {
|
|
11536
|
+
currentPage: ["onPageOrLastPageChange"],
|
|
11537
|
+
lastPage: ["onPageOrLastPageChange"]
|
|
11538
|
+
};
|
|
11675
11539
|
}
|
|
11676
11540
|
};
|
|
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 {
|
|
11541
|
+
zn.style = kn;
|
|
11542
|
+
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
11543
|
constructor(n) {
|
|
11705
11544
|
s(this, n), this.socialNetworks = [
|
|
11706
11545
|
{
|
|
@@ -11742,13 +11581,13 @@ const Gn = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset
|
|
|
11742
11581
|
* @returns {JSX.Element} The rendered JSX for the component.
|
|
11743
11582
|
*/
|
|
11744
11583
|
render() {
|
|
11745
|
-
return
|
|
11584
|
+
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
11585
|
}
|
|
11747
11586
|
};
|
|
11748
|
-
|
|
11749
|
-
const
|
|
11587
|
+
En.style = Sn;
|
|
11588
|
+
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
11589
|
constructor(n) {
|
|
11751
|
-
s(this, n), this.step =
|
|
11590
|
+
s(this, n), this.step = h(this, "step", 7), this.handleNext = () => {
|
|
11752
11591
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
11753
11592
|
}, this.handleBack = () => {
|
|
11754
11593
|
this.activeStep > 0 && (this.activeStep = this.activeStep - 1, this.step.emit(this.activeStep));
|
|
@@ -11761,16 +11600,16 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11761
11600
|
componentDidLoad() {
|
|
11762
11601
|
var n;
|
|
11763
11602
|
if (this.type === "linear") {
|
|
11764
|
-
const
|
|
11765
|
-
|
|
11603
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11604
|
+
e == null || e.forEach((r) => {
|
|
11766
11605
|
this.emitContext(r);
|
|
11767
11606
|
});
|
|
11768
11607
|
}
|
|
11769
11608
|
}
|
|
11770
11609
|
activeStepChanged(n) {
|
|
11771
11610
|
setTimeout(() => {
|
|
11772
|
-
var
|
|
11773
|
-
const r = (
|
|
11611
|
+
var e;
|
|
11612
|
+
const r = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
11774
11613
|
r && r.querySelectorAll("eds-button").forEach((l) => {
|
|
11775
11614
|
this.emitContext(l);
|
|
11776
11615
|
});
|
|
@@ -11783,13 +11622,13 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11783
11622
|
* @param linkElement - The link element to which the event will be dispatched.
|
|
11784
11623
|
*/
|
|
11785
11624
|
emitContext(n) {
|
|
11786
|
-
const
|
|
11625
|
+
const e = new CustomEvent("parentContext", {
|
|
11787
11626
|
detail: {
|
|
11788
11627
|
componentName: this.el.tagName.toLowerCase(),
|
|
11789
11628
|
identifier: this.activeStep
|
|
11790
11629
|
}
|
|
11791
11630
|
});
|
|
11792
|
-
n.dispatchEvent(
|
|
11631
|
+
n.dispatchEvent(e);
|
|
11793
11632
|
}
|
|
11794
11633
|
handleStepClick(n) {
|
|
11795
11634
|
this.step.emit(n), this.type === "linear" && (this.activeStep = n);
|
|
@@ -11798,14 +11637,14 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11798
11637
|
* Parse the JSON string into an array of steps.
|
|
11799
11638
|
*/
|
|
11800
11639
|
get parsedSteps() {
|
|
11801
|
-
return
|
|
11640
|
+
return b(this.steps);
|
|
11802
11641
|
}
|
|
11803
11642
|
render() {
|
|
11804
11643
|
const n = this.parsedSteps;
|
|
11805
|
-
return this.type === "linear" ?
|
|
11644
|
+
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
11645
|
}
|
|
11807
11646
|
get el() {
|
|
11808
|
-
return
|
|
11647
|
+
return c(this);
|
|
11809
11648
|
}
|
|
11810
11649
|
static get watchers() {
|
|
11811
11650
|
return {
|
|
@@ -11813,41 +11652,41 @@ const Qn = ".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-le
|
|
|
11813
11652
|
};
|
|
11814
11653
|
}
|
|
11815
11654
|
};
|
|
11816
|
-
|
|
11817
|
-
const
|
|
11655
|
+
In.style = Ln;
|
|
11656
|
+
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
11657
|
constructor(n) {
|
|
11819
|
-
s(this, n), this.step =
|
|
11658
|
+
s(this, n), this.step = h(this, "step", 7), this.handleNext = () => {
|
|
11820
11659
|
this.activeStep = this.activeStep + 1, this.activeStep < this.parsedSteps.length && this.step.emit(this.activeStep);
|
|
11821
11660
|
}, this.handleBack = () => {
|
|
11822
11661
|
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;
|
|
11662
|
+
}, this.steps = [], this.type = "static", this.imageSrc = void 0, this.imageWidth = void 0, this.bg = !0, this.message = void 0, this.activeStep = 0;
|
|
11824
11663
|
}
|
|
11825
11664
|
componentDidLoad() {
|
|
11826
11665
|
var n;
|
|
11827
11666
|
if (this.type === "linear") {
|
|
11828
|
-
const
|
|
11829
|
-
|
|
11667
|
+
const e = (n = this.el.shadowRoot) === null || n === void 0 ? void 0 : n.querySelectorAll("eds-button");
|
|
11668
|
+
e == null || e.forEach((r) => {
|
|
11830
11669
|
this.emitContext(r);
|
|
11831
11670
|
});
|
|
11832
11671
|
}
|
|
11833
11672
|
}
|
|
11834
11673
|
activeStepChanged(n) {
|
|
11835
11674
|
setTimeout(() => {
|
|
11836
|
-
var
|
|
11837
|
-
const r = (
|
|
11675
|
+
var e;
|
|
11676
|
+
const r = (e = this.el.shadowRoot) === null || e === void 0 ? void 0 : e.querySelectorAll(".step")[n];
|
|
11838
11677
|
r && r.querySelectorAll("eds-button").forEach((l) => {
|
|
11839
11678
|
this.emitContext(l);
|
|
11840
11679
|
});
|
|
11841
11680
|
}, 50);
|
|
11842
11681
|
}
|
|
11843
11682
|
emitContext(n) {
|
|
11844
|
-
const
|
|
11683
|
+
const e = new CustomEvent("parentContext", {
|
|
11845
11684
|
detail: {
|
|
11846
11685
|
componentName: this.el.tagName.toLowerCase(),
|
|
11847
11686
|
identifier: this.activeStep
|
|
11848
11687
|
}
|
|
11849
11688
|
});
|
|
11850
|
-
n.dispatchEvent(
|
|
11689
|
+
n.dispatchEvent(e);
|
|
11851
11690
|
}
|
|
11852
11691
|
articleClasses() {
|
|
11853
11692
|
return [
|
|
@@ -11862,17 +11701,17 @@ const ee = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11862
11701
|
* Parses the steps property into an array of Step objects.
|
|
11863
11702
|
*/
|
|
11864
11703
|
get parsedSteps() {
|
|
11865
|
-
return
|
|
11704
|
+
return b(this.steps);
|
|
11866
11705
|
}
|
|
11867
11706
|
render() {
|
|
11868
11707
|
const n = this.parsedSteps;
|
|
11869
|
-
return
|
|
11708
|
+
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
11709
|
// Static mode: show all steps with their content.
|
|
11871
|
-
|
|
11710
|
+
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
11711
|
)));
|
|
11873
11712
|
}
|
|
11874
11713
|
get el() {
|
|
11875
|
-
return
|
|
11714
|
+
return c(this);
|
|
11876
11715
|
}
|
|
11877
11716
|
static get watchers() {
|
|
11878
11717
|
return {
|
|
@@ -11880,10 +11719,164 @@ const ee = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,d
|
|
|
11880
11719
|
};
|
|
11881
11720
|
}
|
|
11882
11721
|
};
|
|
11883
|
-
|
|
11884
|
-
const
|
|
11722
|
+
An.style = Pn;
|
|
11723
|
+
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 {
|
|
11885
11724
|
constructor(n) {
|
|
11886
|
-
s(this, n), this.
|
|
11725
|
+
s(this, n), this.rowaction = h(this, "rowaction", 7), this.handleResize = () => {
|
|
11726
|
+
this.updateContainerWidth();
|
|
11727
|
+
}, 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;
|
|
11728
|
+
}
|
|
11729
|
+
handleDataChange() {
|
|
11730
|
+
this.parseData();
|
|
11731
|
+
}
|
|
11732
|
+
handleConfigChange() {
|
|
11733
|
+
this.parseConfig();
|
|
11734
|
+
}
|
|
11735
|
+
handleActionsChange() {
|
|
11736
|
+
try {
|
|
11737
|
+
this.parsedActions = typeof this.actions == "string" ? JSON.parse(this.actions) : this.actions;
|
|
11738
|
+
} catch {
|
|
11739
|
+
console.error("Failed to parse actions JSON"), this.parsedActions = [];
|
|
11740
|
+
}
|
|
11741
|
+
}
|
|
11742
|
+
componentWillLoad() {
|
|
11743
|
+
this.parseConfig(), this.handleActionsChange(), this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
11744
|
+
}
|
|
11745
|
+
componentDidLoad() {
|
|
11746
|
+
this.updateContainerWidth(), window.addEventListener("resize", this.handleResize), this.setupPaginationListener();
|
|
11747
|
+
}
|
|
11748
|
+
componentDidUpdate() {
|
|
11749
|
+
this.setupPaginationListener();
|
|
11750
|
+
}
|
|
11751
|
+
disconnectedCallback() {
|
|
11752
|
+
window.removeEventListener("resize", this.handleResize);
|
|
11753
|
+
}
|
|
11754
|
+
updateContainerWidth() {
|
|
11755
|
+
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;
|
|
11756
|
+
}
|
|
11757
|
+
parseData() {
|
|
11758
|
+
try {
|
|
11759
|
+
this.tbData = b(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
11760
|
+
} catch (n) {
|
|
11761
|
+
console.error("Failed to parse data:", n), this.tbData = [];
|
|
11762
|
+
}
|
|
11763
|
+
}
|
|
11764
|
+
parseConfig() {
|
|
11765
|
+
try {
|
|
11766
|
+
this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
|
|
11767
|
+
} catch (n) {
|
|
11768
|
+
console.error("Failed to parse config:", n), this.parsedConfig = {};
|
|
11769
|
+
}
|
|
11770
|
+
}
|
|
11771
|
+
async fetchData() {
|
|
11772
|
+
try {
|
|
11773
|
+
const e = await (await fetch(this.endpoint)).json();
|
|
11774
|
+
this.data = e;
|
|
11775
|
+
} catch (n) {
|
|
11776
|
+
console.error("Failed to fetch data:", n);
|
|
11777
|
+
}
|
|
11778
|
+
}
|
|
11779
|
+
setupPaginationListener() {
|
|
11780
|
+
if (!this.shouldEnablePagination())
|
|
11781
|
+
return;
|
|
11782
|
+
const n = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
11783
|
+
n && !n.hasAttribute("listener-attached") && (n.addEventListener("page", (e) => this.handlePageChange(e.detail)), n.setAttribute("listener-attached", "true"));
|
|
11784
|
+
}
|
|
11785
|
+
getFilteredRows() {
|
|
11786
|
+
return this.tbData.filter((n) => Object.values(n).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
11787
|
+
}
|
|
11788
|
+
getPaginatedRows() {
|
|
11789
|
+
const n = this.getFilteredRows();
|
|
11790
|
+
this.totalRows = n.length;
|
|
11791
|
+
const e = (this.currentPage - 1) * this.rowsPerPage;
|
|
11792
|
+
return n.slice(e, e + this.rowsPerPage);
|
|
11793
|
+
}
|
|
11794
|
+
handlePageChange(n) {
|
|
11795
|
+
this.currentPage = n, f({
|
|
11796
|
+
category: "ui-component",
|
|
11797
|
+
parentContext: null,
|
|
11798
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
11799
|
+
name: `${n}` || "",
|
|
11800
|
+
action: "page"
|
|
11801
|
+
});
|
|
11802
|
+
}
|
|
11803
|
+
handleSearch(n) {
|
|
11804
|
+
this.searchQuery = n.target.value, this.currentPage = 1;
|
|
11805
|
+
}
|
|
11806
|
+
renderCell(n, e) {
|
|
11807
|
+
var r;
|
|
11808
|
+
const t = (r = this.parsedConfig[e]) === null || r === void 0 ? void 0 : r.format;
|
|
11809
|
+
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;
|
|
11810
|
+
}
|
|
11811
|
+
/**
|
|
11812
|
+
* Renders one action (button or checkbox) for a specific action‐name.
|
|
11813
|
+
* Used by the “Actions” column below.
|
|
11814
|
+
*/
|
|
11815
|
+
renderSingleActionCell(n, e) {
|
|
11816
|
+
var r;
|
|
11817
|
+
const t = this.parsedActions.find((a) => a.name === n);
|
|
11818
|
+
if (this.actionTemplate)
|
|
11819
|
+
return this.actionTemplate(e);
|
|
11820
|
+
if ((t.type || "button") === "checkbox") {
|
|
11821
|
+
const a = (r = t.field) !== null && r !== void 0 ? r : t.name, o = !!e[a];
|
|
11822
|
+
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) });
|
|
11823
|
+
}
|
|
11824
|
+
return i("eds-link", { label: t.label, intent: "weak", onClick: () => this.emitAction(t.name, e) });
|
|
11825
|
+
}
|
|
11826
|
+
emitAction(n, e, r) {
|
|
11827
|
+
f({
|
|
11828
|
+
category: "ui-component",
|
|
11829
|
+
parentContext: null,
|
|
11830
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/action`,
|
|
11831
|
+
name: n,
|
|
11832
|
+
action: "click"
|
|
11833
|
+
}), this.rowaction.emit({ action: n, row: e, checked: !!r });
|
|
11834
|
+
}
|
|
11835
|
+
shouldEnablePagination() {
|
|
11836
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
11837
|
+
}
|
|
11838
|
+
updateColumns() {
|
|
11839
|
+
var n, e;
|
|
11840
|
+
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");
|
|
11841
|
+
}
|
|
11842
|
+
getVisibleColumnsCount() {
|
|
11843
|
+
return this.columns.filter((n) => {
|
|
11844
|
+
var e;
|
|
11845
|
+
return !(!((e = this.parsedConfig[n]) === null || e === void 0) && e.hidden);
|
|
11846
|
+
}).length;
|
|
11847
|
+
}
|
|
11848
|
+
divisionFactor() {
|
|
11849
|
+
let n = 1;
|
|
11850
|
+
return this.columnSize === "medium" ? n = 2 : this.columnSize === "large" && (n = 4), n;
|
|
11851
|
+
}
|
|
11852
|
+
capitalize(n) {
|
|
11853
|
+
return n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
|
11854
|
+
}
|
|
11855
|
+
render() {
|
|
11856
|
+
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);
|
|
11857
|
+
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) => {
|
|
11858
|
+
var o;
|
|
11859
|
+
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));
|
|
11860
|
+
}))), 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) => {
|
|
11861
|
+
var d;
|
|
11862
|
+
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));
|
|
11863
|
+
})))))), 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" })));
|
|
11864
|
+
}
|
|
11865
|
+
get hostEl() {
|
|
11866
|
+
return c(this);
|
|
11867
|
+
}
|
|
11868
|
+
static get watchers() {
|
|
11869
|
+
return {
|
|
11870
|
+
data: ["handleDataChange", "parseData"],
|
|
11871
|
+
config: ["handleConfigChange"],
|
|
11872
|
+
actions: ["handleActionsChange"]
|
|
11873
|
+
};
|
|
11874
|
+
}
|
|
11875
|
+
};
|
|
11876
|
+
On.style = _n;
|
|
11877
|
+
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 {
|
|
11878
|
+
constructor(n) {
|
|
11879
|
+
s(this, n), this.tab = h(this, "tab", 7), this.tabCva = m([
|
|
11887
11880
|
"relative py-12",
|
|
11888
11881
|
"f-ui-03 whitespace-nowrap",
|
|
11889
11882
|
"effect-color",
|
|
@@ -11927,7 +11920,7 @@ const te = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11927
11920
|
* @returns {any[]} Array of parsed link objects
|
|
11928
11921
|
*/
|
|
11929
11922
|
parseTabs() {
|
|
11930
|
-
this.parsedTabs =
|
|
11923
|
+
this.parsedTabs = b(this.tabs);
|
|
11931
11924
|
}
|
|
11932
11925
|
componentDidLoad() {
|
|
11933
11926
|
this.scrollToActiveTab();
|
|
@@ -11937,39 +11930,39 @@ const te = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11937
11930
|
}
|
|
11938
11931
|
scrollToActiveTab() {
|
|
11939
11932
|
var n;
|
|
11940
|
-
const
|
|
11941
|
-
|
|
11942
|
-
|
|
11933
|
+
const e = (n = this.tabContainer) === null || n === void 0 ? void 0 : n.querySelector("[data-tab-active]");
|
|
11934
|
+
e && setTimeout(() => {
|
|
11935
|
+
e.scrollIntoView({
|
|
11943
11936
|
inline: "center",
|
|
11944
11937
|
block: "nearest"
|
|
11945
11938
|
});
|
|
11946
11939
|
}, 316);
|
|
11947
11940
|
}
|
|
11948
|
-
getTabOptions(n,
|
|
11949
|
-
const r = n ? "center" : this.activeIndex === -1 &&
|
|
11941
|
+
getTabOptions(n, e) {
|
|
11942
|
+
const r = n ? "center" : this.activeIndex === -1 && e === 0 ? "first" : e < this.activeIndex ? "left" : "right";
|
|
11950
11943
|
return Object.assign({ class: this.tabCva({
|
|
11951
11944
|
active: n,
|
|
11952
11945
|
position: r
|
|
11953
11946
|
}), style: {
|
|
11954
|
-
zIndex: `${n ? this.parsedTabs.length + 99 : r === "left" ?
|
|
11947
|
+
zIndex: `${n ? this.parsedTabs.length + 99 : r === "left" ? e : this.parsedTabs.length + 1 - e}`
|
|
11955
11948
|
} }, n ? { "data-tab-active": "true" } : {});
|
|
11956
11949
|
}
|
|
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:
|
|
11950
|
+
handleTabClick(n, e) {
|
|
11951
|
+
this.activeIndex = n, this.parsedTabs = this.parsedTabs.map((r, t) => Object.assign(Object.assign({}, r), { active: t === n })), this.tab.emit({ tabId: this.identifier, index: n, name: e }), f({
|
|
11959
11952
|
category: "ui-component",
|
|
11960
11953
|
tag: this.el.tagName.toLowerCase(),
|
|
11961
|
-
name: (
|
|
11954
|
+
name: (e == null ? void 0 : e.toLowerCase()) || "",
|
|
11962
11955
|
action: "click"
|
|
11963
11956
|
});
|
|
11964
11957
|
}
|
|
11965
11958
|
render() {
|
|
11966
|
-
return
|
|
11967
|
-
const r = n.active ? "span" : "a", t = this.getTabOptions(n.active,
|
|
11968
|
-
return
|
|
11969
|
-
}))),
|
|
11959
|
+
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) => {
|
|
11960
|
+
const r = n.active ? "span" : "a", t = this.getTabOptions(n.active, e);
|
|
11961
|
+
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);
|
|
11962
|
+
}))), i("div", { key: "09c25532583d443eac47da606955955e1e66f2e8", class: "tab-panels" }, this.parsedTabs.map((n, e) => i("div", { hidden: e !== this.activeIndex }, i("slot", { name: `panel-${e}` })))));
|
|
11970
11963
|
}
|
|
11971
11964
|
get el() {
|
|
11972
|
-
return
|
|
11965
|
+
return c(this);
|
|
11973
11966
|
}
|
|
11974
11967
|
static get watchers() {
|
|
11975
11968
|
return {
|
|
@@ -11977,8 +11970,8 @@ const te = "*,::before,::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;-
|
|
|
11977
11970
|
};
|
|
11978
11971
|
}
|
|
11979
11972
|
};
|
|
11980
|
-
|
|
11981
|
-
const
|
|
11973
|
+
$n.style = Tn;
|
|
11974
|
+
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
11975
|
["border-2 rounded-pill"],
|
|
11983
11976
|
// Base classes
|
|
11984
11977
|
{
|
|
@@ -12006,43 +11999,17 @@ const ae = ".f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-u
|
|
|
12006
11999
|
size: "small"
|
|
12007
12000
|
}
|
|
12008
12001
|
}
|
|
12009
|
-
),
|
|
12002
|
+
), qn = class {
|
|
12010
12003
|
constructor(n) {
|
|
12011
12004
|
s(this, n), this.label = void 0, this.intent = "default", this.size = "small";
|
|
12012
12005
|
}
|
|
12013
12006
|
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);
|
|
12007
|
+
const n = Bn({ intent: this.intent, size: this.size });
|
|
12008
|
+
return i("span", { key: "78ef2d9ed4fc79f078df2fe418c339fc8934eef2", class: n }, this.label);
|
|
12042
12009
|
}
|
|
12043
12010
|
};
|
|
12044
|
-
|
|
12045
|
-
const
|
|
12011
|
+
qn.style = Mn;
|
|
12012
|
+
const Nn = "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}", Rn = Nn, Vn = class {
|
|
12046
12013
|
constructor(n) {
|
|
12047
12014
|
s(this, n), this.user = void 0;
|
|
12048
12015
|
}
|
|
@@ -12061,60 +12028,46 @@ const be = "hr,p{margin:0}.block{display:block}.flex{display:flex}.flex-col{flex
|
|
|
12061
12028
|
async componentWillLoad() {
|
|
12062
12029
|
}
|
|
12063
12030
|
get initials() {
|
|
12064
|
-
var n,
|
|
12031
|
+
var n, e, r, t;
|
|
12065
12032
|
const l = this.parsedUser;
|
|
12066
|
-
return `${((n = l.given_name) === null || n === void 0 ? void 0 : n.charAt(0)) || ""}${((
|
|
12033
|
+
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
12034
|
}
|
|
12068
12035
|
render() {
|
|
12069
12036
|
const n = this.parsedUser;
|
|
12070
|
-
return
|
|
12037
|
+
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
12038
|
}
|
|
12072
12039
|
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"))))));
|
|
12040
|
+
return c(this);
|
|
12083
12041
|
}
|
|
12084
12042
|
};
|
|
12043
|
+
Vn.style = Rn;
|
|
12085
12044
|
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
|
|
12045
|
+
A as eds_avatar,
|
|
12046
|
+
O as eds_block_break,
|
|
12047
|
+
$ as eds_button,
|
|
12048
|
+
B as eds_dropdown,
|
|
12049
|
+
R as eds_footer,
|
|
12050
|
+
Q as eds_form,
|
|
12051
|
+
nn as eds_fullscreen_menu,
|
|
12052
|
+
tn as eds_header,
|
|
12053
|
+
Kn as eds_icon_wrapper,
|
|
12054
|
+
an as eds_img,
|
|
12055
|
+
Zn as eds_input,
|
|
12056
|
+
cn as eds_input_field,
|
|
12057
|
+
ne as eds_input_footer,
|
|
12058
|
+
ee as eds_input_label,
|
|
12059
|
+
ie as eds_input_range,
|
|
12060
|
+
re as eds_input_search,
|
|
12061
|
+
te as eds_input_select,
|
|
12062
|
+
bn as eds_link,
|
|
12063
|
+
pn as eds_logo,
|
|
12064
|
+
vn as eds_modal,
|
|
12065
|
+
zn as eds_pagination,
|
|
12066
|
+
En as eds_social_networks,
|
|
12067
|
+
In as eds_steps,
|
|
12068
|
+
An as eds_steps_v2,
|
|
12069
|
+
On as eds_table,
|
|
12070
|
+
$n as eds_tabs,
|
|
12071
|
+
qn as eds_tag,
|
|
12072
|
+
Vn as eds_user
|
|
12120
12073
|
};
|