@ebrains/vue 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{color-primary-palette_6.entry-CfNmHzNO.mjs → color-primary-palette_6.entry-ATs14_8N.mjs} +1 -1
- package/{color-primary-palette_6.entry-c48Fqrz0.js → color-primary-palette_6.entry-DEKKtdmx.js} +1 -1
- package/{components-section.entry-3yJF6nRH.js → components-section.entry-BeJviBek.js} +2 -2
- package/{components-section.entry-oQTYayXm.mjs → components-section.entry-CIhTwzGP.mjs} +2 -2
- package/{correct-use-of-colors.entry-DEdyB_h5.js → correct-use-of-colors.entry-B7OZy6GP.js} +1 -1
- package/{correct-use-of-colors.entry-7fOSokhJ.mjs → correct-use-of-colors.entry-DUWE69EP.mjs} +1 -1
- package/{docs-palettes.entry-Bz96UO-K.mjs → docs-palettes.entry-h64S6-A4.mjs} +1 -1
- package/{docs-palettes.entry-6ekOz4GT.js → docs-palettes.entry-mgW1Rez8.js} +1 -1
- package/{docs-tokens.entry-D-hRYpqk.mjs → docs-tokens.entry-8fIdMfiG.mjs} +1 -1
- package/{docs-tokens.entry-DjHB8v2C.js → docs-tokens.entry-lcA48bSL.js} +1 -1
- package/{eds-accordion.entry-D1L8fv2r.mjs → eds-accordion.entry-DUOVoYgQ.mjs} +3 -3
- package/{eds-accordion.entry-Czj2ZwpQ.js → eds-accordion.entry-DcBD8nlx.js} +2 -2
- package/{eds-alert.entry-DAeVRXua.mjs → eds-alert.entry-D5Itlbb1.mjs} +3 -3
- package/{eds-alert.entry-BqEeR0Xw.js → eds-alert.entry-DEUTt8yK.js} +2 -2
- package/{eds-app-root.entry-BrJeEAVb.js → eds-app-root.entry-CIXLfod1.js} +1 -1
- package/{eds-app-root.entry-BBbgNK8b.mjs → eds-app-root.entry-DdTcthz6.mjs} +1 -1
- package/{eds-avatar_34.entry-iuvkwQW_.js → eds-avatar_28.entry-B8onWfVW.js} +9 -14
- package/{eds-avatar_34.entry-1U84FvGQ.mjs → eds-avatar_28.entry-D_qLn5o3.mjs} +577 -616
- package/eds-breadcrumb.entry-BW9K7V4U.js +1 -0
- package/eds-breadcrumb.entry-DsdlQ4_L.mjs +104 -0
- package/eds-card-desc_2.entry-D5DCz71U.js +1 -0
- package/eds-card-desc_2.entry-DEWio8dP.mjs +53 -0
- package/eds-card-generic.entry-DkEya266.js +1 -0
- package/eds-card-generic.entry-SEl8JEp_.mjs +56 -0
- package/{eds-card-project.entry-CewRPvW7.js → eds-card-project.entry-Cq22ABZF.js} +1 -1
- package/{eds-card-project.entry-Cd7tP9g4.mjs → eds-card-project.entry-ZOpSBoyz.mjs} +2 -2
- package/{eds-card-section.entry-CQLG4D0D.mjs → eds-card-section.entry-BzylTLQC.mjs} +1 -1
- package/{eds-card-section.entry-BU4fC9y5.js → eds-card-section.entry-DdYM8rV8.js} +1 -1
- package/eds-card-tags.entry-C_n1ZNm3.mjs +13 -0
- package/eds-card-tags.entry-CfH7Q4BG.js +1 -0
- package/{eds-card-tool.entry-DpfInwr3.mjs → eds-card-tool.entry-DTHdLwQI.mjs} +5 -5
- package/{eds-card-tool.entry-LSjtu5k_.js → eds-card-tool.entry-KOKAvEvo.js} +1 -1
- package/{eds-code-block.entry-Bz1Pbg4W.mjs → eds-code-block.entry-B604OhvT.mjs} +2 -2
- package/{eds-code-block.entry-DG1tMA_4.js → eds-code-block.entry-VCJIU7ou.js} +2 -2
- package/{eds-cookies-preference.entry-DgP6pxkr.mjs → eds-cookies-preference.entry-3tfZ_O1U.mjs} +1 -1
- package/{eds-cookies-preference.entry-0J8XlEDN.js → eds-cookies-preference.entry-CLKoQPVj.js} +1 -1
- package/{eds-feedback.entry-CxyxT-OD.mjs → eds-feedback.entry-BmC2Ql0i.mjs} +1 -1
- package/{eds-feedback.entry-Cmn3G5sR.js → eds-feedback.entry-D6nkFFjs.js} +1 -1
- package/{eds-frame.entry-LDVXpjkU.js → eds-frame.entry-CoBQEpyT.js} +1 -1
- package/{eds-frame.entry-Dh_T8O60.mjs → eds-frame.entry-VlvwsJlk.mjs} +1 -1
- package/eds-gauge.entry-CZlEaAkz.js +1 -0
- package/eds-gauge.entry-fM54L3uu.mjs +30 -0
- package/{eds-icon-arrow-diagonal.entry-C6AHMuMB.js → eds-icon-arrow-diagonal.entry-CQ-h4bY9.js} +1 -1
- package/eds-icon-arrow-diagonal.entry-Du9_EV8C.mjs +13 -0
- package/eds-icon-arrow-right.entry-CCfGtNQc.mjs +13 -0
- package/eds-icon-arrow-right.entry-Cu5oN4py.js +1 -0
- package/eds-icon-bluesky.entry-B91N_152.mjs +13 -0
- package/eds-icon-bluesky.entry-lZNwdb9E.js +1 -0
- package/eds-icon-bookmark.entry-BCcsJWsc.mjs +13 -0
- package/{eds-icon-bookmark.entry-DdUP23Uu.js → eds-icon-bookmark.entry-_mceTW12.js} +1 -1
- package/eds-icon-chevron-down.entry-CjfP9NnS.mjs +13 -0
- package/eds-icon-chevron-down.entry-M9t2pnrD.js +1 -0
- package/eds-icon-chevron-left.entry-Bvja7t_t.js +1 -0
- package/eds-icon-chevron-left.entry-CG50CLXP.mjs +13 -0
- package/eds-icon-chevron-right.entry-CkA3V-M-.js +1 -0
- package/eds-icon-chevron-right.entry-YwtfBuIX.mjs +13 -0
- package/eds-icon-chevron-up.entry-CAhyMgfW.mjs +13 -0
- package/eds-icon-chevron-up.entry-_PFTVNT0.js +1 -0
- package/{eds-icon-close.entry-Dw7ZUnkQ.js → eds-icon-close.entry-BDiHqI23.js} +1 -1
- package/eds-icon-close.entry-DSXs_vI6.mjs +13 -0
- package/{eds-icon-copy.entry-DV4qtIA7.mjs → eds-icon-copy.entry-DCo1IOIr.mjs} +2 -2
- package/eds-icon-copy.entry-DPbGeiC5.js +1 -0
- package/eds-icon-eu.entry-B5cE_Fue.js +1 -0
- package/eds-icon-eu.entry-CzrkQ6Me.mjs +13 -0
- package/eds-icon-external.entry-DXS_Rz4h.mjs +13 -0
- package/eds-icon-external.entry-DetBI23k.js +1 -0
- package/eds-icon-facebook.entry-BDTGMONJ.mjs +13 -0
- package/{eds-icon-facebook.entry-DwUcANz7.js → eds-icon-facebook.entry-BgGom0CH.js} +1 -1
- package/{eds-icon-gitlab.entry-PCSE_PYe.mjs → eds-icon-gitlab.entry-CAYVpbnU.mjs} +2 -2
- package/eds-icon-gitlab.entry-DoShP9Zc.js +1 -0
- package/{eds-icon-linkedin.entry-Bpoynapn.js → eds-icon-linkedin.entry-Cf2HMi5t.js} +1 -1
- package/eds-icon-linkedin.entry-jAyFClAF.mjs +13 -0
- package/{eds-icon-loader.entry-CkIiBDsV.mjs → eds-icon-loader.entry-D0l-e0cS.mjs} +2 -2
- package/eds-icon-loader.entry-D57WH0m_.js +1 -0
- package/eds-icon-mastodon.entry-Bt1D0FBe.mjs +13 -0
- package/{eds-icon-mastodon.entry-7CmZhvNG.js → eds-icon-mastodon.entry-CTYew7dL.js} +1 -1
- package/{eds-icon-menu.entry-CFIbaI5j.js → eds-icon-menu.entry-CcgZSSE5.js} +1 -1
- package/{eds-icon-menu.entry-7zPtmR24.mjs → eds-icon-menu.entry-un5QM8-4.mjs} +2 -2
- package/eds-icon-minus.entry-C4EDT_8I.mjs +13 -0
- package/eds-icon-minus.entry-CN9gFN8A.js +1 -0
- package/eds-icon-more.entry-DvmRVLUt.js +1 -0
- package/eds-icon-more.entry-n_HcRvbF.mjs +13 -0
- package/eds-icon-paper.entry-BXchbSEg.mjs +13 -0
- package/eds-icon-paper.entry-yNSQkPEw.js +1 -0
- package/eds-icon-plus.entry-CbFpTIFR.mjs +13 -0
- package/eds-icon-plus.entry-DA1W65Qr.js +1 -0
- package/eds-icon-portal.entry-BN5WoQXI.mjs +13 -0
- package/{eds-icon-portal.entry-CbJqS4OZ.js → eds-icon-portal.entry-CCwAGN8Y.js} +1 -1
- package/{eds-icon-private.entry-DSIHrQEv.js → eds-icon-private.entry-B-VFqlkY.js} +1 -1
- package/eds-icon-private.entry-S7EUOHaT.mjs +13 -0
- package/{eds-icon-public.entry-Cj1hddsF.js → eds-icon-public.entry-DdW8hTxZ.js} +1 -1
- package/eds-icon-public.entry-DjmRvwR8.mjs +13 -0
- package/eds-icon-search.entry-C9kA0DSl.mjs +13 -0
- package/{eds-icon-search.entry-CXVkIZak.js → eds-icon-search.entry-JuKSX7FE.js} +1 -1
- package/{eds-icon-star.entry-B464U0ht.js → eds-icon-star.entry-CEQNjR66.js} +1 -1
- package/{eds-icon-star.entry-B3WySZM_.mjs → eds-icon-star.entry-Dqsszfn7.mjs} +2 -2
- package/{eds-icon-success.entry-BhRuLH3J.js → eds-icon-success.entry-D6aLYU4C.js} +1 -1
- package/eds-icon-success.entry-Dri28PkX.mjs +13 -0
- package/{eds-icon-thumbs-down.entry-DVK5ACMh.js → eds-icon-thumbs-down.entry-CDXhZNp6.js} +1 -1
- package/eds-icon-thumbs-down.entry-CnyeXIZm.mjs +13 -0
- package/eds-icon-thumbs-up.entry-CJWAhbDc.js +1 -0
- package/eds-icon-thumbs-up.entry-DNZkUwSh.mjs +13 -0
- package/eds-icon-tutorial.entry-CQOwwW0X.mjs +13 -0
- package/eds-icon-tutorial.entry-vatT873n.js +1 -0
- package/{eds-icon-twitter.entry-CYCIFfgj.mjs → eds-icon-twitter.entry-BCdKEOgq.mjs} +2 -2
- package/{eds-icon-twitter.entry-CcpEPKUu.js → eds-icon-twitter.entry-dKILV47U.js} +1 -1
- package/eds-icon-unknown.entry-CkTGu7ZD.js +1 -0
- package/eds-icon-unknown.entry-HyqP4dn1.mjs +13 -0
- package/eds-icon-updown.entry-Kv06cvHM.js +1 -0
- package/eds-icon-updown.entry-Xfv3Iuwk.mjs +13 -0
- package/{eds-icon-user.entry-BimbLh7T.js → eds-icon-user.entry-CGdD_hJn.js} +1 -1
- package/eds-icon-user.entry-DlsBz1zY.mjs +13 -0
- package/{eds-icon-youtube.entry-BepDLIVw.js → eds-icon-youtube.entry-CZGYh2Vx.js} +1 -1
- package/eds-icon-youtube.entry-DzXnQlFA.mjs +13 -0
- package/{eds-matomo-notice.entry-DQLfTEH4.mjs → eds-matomo-notice.entry-CEN9eMlC.mjs} +1 -1
- package/{eds-matomo-notice.entry-BnbhjXrV.js → eds-matomo-notice.entry-CWfk1H5v.js} +1 -1
- package/eds-pie.entry-B3U4X-HZ.mjs +68 -0
- package/eds-pie.entry-SAGUUq-x.js +1 -0
- package/{eds-progress-bar.entry-UWeq2B4o.mjs → eds-progress-bar.entry-B40FKDIY.mjs} +4 -4
- package/{eds-progress-bar.entry-CnzFrS-7.js → eds-progress-bar.entry-CdtZMWRD.js} +1 -1
- package/{eds-rating.entry-D48_hoBw.js → eds-rating.entry-DPORnYP5.js} +1 -1
- package/{eds-rating.entry-ScrHbfrp.mjs → eds-rating.entry-DXy8z13n.mjs} +2 -2
- package/{eds-section-core_2.entry-DshZ38Q9.js → eds-section-core_2.entry-CAghqI04.js} +1 -1
- package/{eds-section-core_2.entry-D3FNm7II.mjs → eds-section-core_2.entry-pr5jOFIr.mjs} +6 -6
- package/{eds-spinner.entry-KZWQRAHb.mjs → eds-spinner.entry-DS_0ySXR.mjs} +5 -5
- package/{eds-spinner.entry-CAKA3YkP.js → eds-spinner.entry-ZSmgjLeQ.js} +1 -1
- package/{eds-splash-screen.entry-YJ_mGQYU.js → eds-splash-screen.entry-CAlwA7CE.js} +1 -1
- package/{eds-splash-screen.entry-B7f2rbAn.mjs → eds-splash-screen.entry-CGIsWPg3.mjs} +1 -1
- package/{eds-switch.entry-CKv4fbm-.js → eds-switch.entry-BPvEdy6K.js} +1 -1
- package/{eds-switch.entry-DbBUxVI8.mjs → eds-switch.entry-C8_6uBOS.mjs} +6 -6
- package/{eds-timeline.entry-uFV4mRmh.mjs → eds-timeline.entry-CaCmJ2Fh.mjs} +1 -1
- package/{eds-timeline.entry-BE-6PK5Q.js → eds-timeline.entry-OAW2pkRt.js} +1 -1
- package/{eds-toast-manager.entry-BKIf0Xw3.js → eds-toast-manager.entry-DUxqFVKY.js} +1 -1
- package/{eds-toast-manager.entry-CXL8sMaG.mjs → eds-toast-manager.entry-DtpmGj_R.mjs} +1 -1
- package/{eds-toast.entry-a-RIjL18.js → eds-toast.entry-B1DPCLvR.js} +1 -1
- package/{eds-toast.entry-oZ1Juhqm.mjs → eds-toast.entry-DiJpUvbs.mjs} +1 -1
- package/eds-tooltip.entry-Cbr9FQqk.mjs +31 -0
- package/eds-tooltip.entry-D6WNPimK.js +6 -0
- package/{eds-trl.entry-Bw8w42hZ.mjs → eds-trl.entry-B-_Wzeov.mjs} +1 -1
- package/{eds-trl.entry-DmSx4bnn.js → eds-trl.entry-BZ3G8aVz.js} +1 -1
- package/{incorrect-use-of-colors.entry-BlDQxmUQ.mjs → incorrect-use-of-colors.entry-BMQ4bUVe.mjs} +1 -1
- package/{incorrect-use-of-colors.entry-CglkFNGU.js → incorrect-use-of-colors.entry-C2WUenLf.js} +1 -1
- package/index-BLX1G7Jb.js +21 -0
- package/{index-BvZ-fq9l.mjs → index-BLyMQVPx.mjs} +440 -406
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{logo-space.entry-d5Tx6GSR.js → logo-space.entry-B9810IFA.js} +1 -1
- package/{logo-space.entry-D1gv5Jv7.mjs → logo-space.entry-Dwb40YEh.mjs} +1 -1
- package/{logo-variations-horizontal_2.entry-CiMlktdv.js → logo-variations-horizontal_2.entry-BHbTdGyz.js} +1 -1
- package/{logo-variations-horizontal_2.entry-DPHzlUCt.mjs → logo-variations-horizontal_2.entry-BjqUR-w3.mjs} +1 -1
- package/{logo-variations-tabs.entry-BYi6NRAo.mjs → logo-variations-tabs.entry-7OA38Lpm.mjs} +1 -1
- package/{logo-variations-tabs.entry-CcSRDFWV.js → logo-variations-tabs.entry-Dl2DbP8q.js} +1 -1
- package/{logo-wrong-usage.entry-gsDvZ1sn.js → logo-wrong-usage.entry-C3pp-83N.js} +1 -1
- package/{logo-wrong-usage.entry-9iDssoCI.mjs → logo-wrong-usage.entry-Duywjfj_.mjs} +1 -1
- package/package.json +1 -1
- package/{svg-repository.entry-BtksDklW.mjs → svg-repository.entry-7M1slWVL.mjs} +1 -1
- package/{svg-repository.entry-_-HISW99.js → svg-repository.entry-BqMp75Pt.js} +1 -1
- package/{token-list_3.entry-CRZq4och.js → token-list_3.entry-CaP5VVjM.js} +1 -1
- package/{token-list_3.entry-CNkWD89P.mjs → token-list_3.entry-CkO70Jcu.mjs} +1 -1
- package/{token-ratios.entry-CL40j9gF.js → token-ratios.entry-C2w-OpPQ.js} +1 -1
- package/{token-ratios.entry-D4aHLsX-.mjs → token-ratios.entry-llhdL8NX.mjs} +1 -1
- package/token-spacing.entry-CK8RirEP.js +1 -0
- package/token-spacing.entry-DHyuHRXC.mjs +12 -0
- package/{token-typography.entry-D17oZHbh.js → token-typography.entry-Bqw5oeKI.js} +1 -1
- package/{token-typography.entry-ayRMMiOe.mjs → token-typography.entry-DyzkmiA4.mjs} +1 -1
- package/eds-card-tags.entry-BKuk3O8k.mjs +0 -13
- package/eds-card-tags.entry-DOV6K1FD.js +0 -1
- package/eds-icon-arrow-diagonal.entry-C75xEcUs.mjs +0 -13
- package/eds-icon-arrow-right.entry-DOsVz4oP.mjs +0 -13
- package/eds-icon-arrow-right.entry-VMROpz2J.js +0 -1
- package/eds-icon-bluesky.entry-BmSl31Ky.js +0 -1
- package/eds-icon-bluesky.entry-C9skxio2.mjs +0 -13
- package/eds-icon-bookmark.entry-xWgHPpg-.mjs +0 -13
- package/eds-icon-chevron-down.entry-DNY1bk_l.js +0 -1
- package/eds-icon-chevron-down.entry-ut52sjbR.mjs +0 -13
- package/eds-icon-chevron-left.entry-Bi82EnZL.mjs +0 -13
- package/eds-icon-chevron-left.entry-nzi05fTd.js +0 -1
- package/eds-icon-chevron-right.entry-CBW3L3p8.js +0 -1
- package/eds-icon-chevron-right.entry-Dc_uRypg.mjs +0 -13
- package/eds-icon-chevron-up.entry-CO7nzD9J.mjs +0 -13
- package/eds-icon-chevron-up.entry-Cc10e7Ce.js +0 -1
- package/eds-icon-close.entry-CvXUDttz.mjs +0 -13
- package/eds-icon-copy.entry-x46asO9P.js +0 -1
- package/eds-icon-eu.entry-BaEbXLNS.mjs +0 -13
- package/eds-icon-eu.entry-D2CoGoAF.js +0 -1
- package/eds-icon-external.entry-C0Zm0isI.js +0 -1
- package/eds-icon-external.entry-CckFcmA1.mjs +0 -13
- package/eds-icon-facebook.entry-CIiiUf27.mjs +0 -13
- package/eds-icon-gitlab.entry-CuKUR41Q.js +0 -1
- package/eds-icon-linkedin.entry-C9xqBwJ1.mjs +0 -13
- package/eds-icon-loader.entry-dxgwIFD3.js +0 -1
- package/eds-icon-mastodon.entry-k86mWfUp.mjs +0 -13
- package/eds-icon-minus.entry-B4ntnZW_.js +0 -1
- package/eds-icon-minus.entry-fPsoVmGR.mjs +0 -13
- package/eds-icon-more.entry-D_HCuwKk.js +0 -1
- package/eds-icon-more.entry-DyH3sCa4.mjs +0 -13
- package/eds-icon-paper.entry-BQlPnCrf.mjs +0 -13
- package/eds-icon-paper.entry-CHAw7mqA.js +0 -1
- package/eds-icon-plus.entry-QOVehJoq.js +0 -1
- package/eds-icon-plus.entry-zTfrWeuu.mjs +0 -13
- package/eds-icon-portal.entry-SlgbRrHY.mjs +0 -13
- package/eds-icon-private.entry-uHBGM_wp.mjs +0 -13
- package/eds-icon-public.entry-_sTE1w2W.mjs +0 -13
- package/eds-icon-search.entry-DIww9BJF.mjs +0 -13
- package/eds-icon-success.entry-HesFgi8E.mjs +0 -13
- package/eds-icon-thumbs-down.entry-CbL3623r.mjs +0 -13
- package/eds-icon-thumbs-up.entry-C2QZ3OSz.mjs +0 -13
- package/eds-icon-thumbs-up.entry-MDqpoPcO.js +0 -1
- package/eds-icon-tutorial.entry-DRB27GWh.mjs +0 -13
- package/eds-icon-tutorial.entry-xaf63POz.js +0 -1
- package/eds-icon-unknown.entry-kYRE4en_.js +0 -1
- package/eds-icon-unknown.entry-ksugYL8s.mjs +0 -13
- package/eds-icon-updown.entry-3_UTqXet.js +0 -1
- package/eds-icon-updown.entry-DrW4QdWY.mjs +0 -13
- package/eds-icon-user.entry-CMjrRV4a.mjs +0 -13
- package/eds-icon-youtube.entry-CGXXdMzx.mjs +0 -13
- package/eds-pagination_2.entry-BK--gyZ0.mjs +0 -258
- package/eds-pagination_2.entry-De883ILy.js +0 -1
- package/index-CJvr9v3B.js +0 -21
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as o, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { m as t } from "./mastodon-3703ec61-C7iI4Hk0.mjs";
|
|
3
|
-
const c = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
o(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return r("span", { key: "b998a568e6f0f7811a4984817177c76842127298", class: this.class, innerHTML: t });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
c as eds_icon_mastodon
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CJvr9v3B.js"),n=require("./minus-b30a7c71-DqCTe6Qh.js"),c=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"76fe78207051b486030fc1ef778d55ecfec2c3d2",class:this.class,innerHTML:n.minus})}};exports.eds_icon_minus=c;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as c } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { m as e } from "./minus-b30a7c71-BPAvqHzH.mjs";
|
|
3
|
-
const i = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return c("span", { key: "76fe78207051b486030fc1ef778d55ecfec2c3d2", class: this.class, innerHTML: e });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
i as eds_icon_minus
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),r=require("./more-4449d549-D4HA1cRq.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"546f5d7c76d57c07c34b6455cb1df4fea6c57302",class:this.class,innerHTML:r.more})}};exports.eds_icon_more=c;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as c } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { m as e } from "./more-4449d549-rI9hOpEp.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return c("span", { key: "546f5d7c76d57c07c34b6455cb1df4fea6c57302", class: this.class, innerHTML: e });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_more
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { p as a } from "./paper-8e74ea31-BvGrc1Vo.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return e("span", { key: "e9baa8e9d467104fdeac600678b800787ef7d736", class: this.class, innerHTML: a });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_paper
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),r=require("./paper-8e74ea31-C4CV6tlB.js"),t=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"e9baa8e9d467104fdeac600678b800787ef7d736",class:this.class,innerHTML:r.paper})}};exports.eds_icon_paper=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CJvr9v3B.js"),r=require("./plus-89c07be2-BTXnjg5K.js"),t=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"7510fb2b948a83c216a375f2a84a16b10b38054e",class:this.class,innerHTML:r.plus})}};exports.eds_icon_plus=t;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as a } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { p as t } from "./plus-89c07be2-DyT9I4-L.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return a("span", { key: "7510fb2b948a83c216a375f2a84a16b10b38054e", class: this.class, innerHTML: t });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_plus
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as t } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { p as e } from "./portal-d6c8ce56-Cj61ldo8.mjs";
|
|
3
|
-
const c = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return t("span", { key: "c9f384bf790dd2eef9b84e757403106209f05c04", class: this.class, innerHTML: e });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
c as eds_icon_portal
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as a } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { p as e } from "./private-1c25ff8e-Dz82_Xf8.mjs";
|
|
3
|
-
const i = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return a("span", { key: "d03d51d5aee837edab83aa71cf82fd415a8c71c3", class: this.class, innerHTML: e });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
i as eds_icon_private
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { p as c } from "./public-d4d8c585-BJKDD5F6.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return e("span", { key: "94970e6d7f414cde04a3dae305f3dda43f477e55", class: this.class, innerHTML: c });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_public
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as a, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { s as c } from "./search-fbcd79c2-rfV0PlHP.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
a(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return r("span", { key: "2c35a35b31a988ffa690816a8699d2aac43dd916", class: this.class, innerHTML: c });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_search
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as c, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { s as r } from "./success-443809da-BD23vltm.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
c(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return e("span", { key: "8b5d4cfeedf6d7e9bea48d7ba892527d484c858d", class: this.class, innerHTML: r });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_success
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as c, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { t } from "./thumbs-down-a18fd049-CzuBAj99.mjs";
|
|
3
|
-
const o = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
c(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return r("span", { key: "c60c3e5180cd900ce290448563fc476264ba1fe5", class: this.class, innerHTML: t });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
o as eds_icon_thumbs_down
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as e, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { t } from "./thumbs-up-c19a71bc-CjLv5Wgw.mjs";
|
|
3
|
-
const o = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
e(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return r("span", { key: "eee2fdd0cdf1e9735e90f34c6bb090f3df67eb49", class: this.class, innerHTML: t });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
o as eds_icon_thumbs_up
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),t=require("./thumbs-up-c19a71bc-w8Z8gegt.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"eee2fdd0cdf1e9735e90f34c6bb090f3df67eb49",class:this.class,innerHTML:t.thumbsUp})}};exports.eds_icon_thumbs_up=c;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as t } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { t as a } from "./tutotial-150ee1fd-DFdyoHVA.mjs";
|
|
3
|
-
const o = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return t("span", { key: "0e47e2af80487a28c96e8830dda102c23bff9e5c", class: this.class, innerHTML: a });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
o as eds_icon_tutorial
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),s=require("./tutotial-150ee1fd-DjN_JBL5.js"),r=class{constructor(t){e.registerInstance(this,t),this.class=""}render(){return e.h("span",{key:"0e47e2af80487a28c96e8830dda102c23bff9e5c",class:this.class,innerHTML:s.tutorial})}};exports.eds_icon_tutorial=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CJvr9v3B.js"),s=require("./unknown-ed01a24c-B0AcMuip.js"),c=class{constructor(e){n.registerInstance(this,e),this.class=""}render(){return n.h("span",{key:"a9145c4e133746c314a1ee34d36a5f19f3686565",class:this.class,innerHTML:s.unknown})}};exports.eds_icon_unknown=c;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as n, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { u as e } from "./unknown-ed01a24c-DonOUpIC.mjs";
|
|
3
|
-
const c = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
n(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return r("span", { key: "a9145c4e133746c314a1ee34d36a5f19f3686565", class: this.class, innerHTML: e });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
c as eds_icon_unknown
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),n=require("./up-and-down-d747abee-CWoZjUyq.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"b97da1b406718c7611d1e17d7a9c6b4670600740",class:this.class,innerHTML:n.upDonw})}};exports.eds_icon_updown=r;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as n } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { u as o } from "./up-and-down-d747abee-D7g6H0T0.mjs";
|
|
3
|
-
const a = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return n("span", { key: "b97da1b406718c7611d1e17d7a9c6b4670600740", class: this.class, innerHTML: o });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
a as eds_icon_updown
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { u as c } from "./user-71ebdc15-CoHlCtJg.mjs";
|
|
3
|
-
const a = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
r(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return e("span", { key: "4322703c9e449819dc30946118893d365fa20124", class: this.class, innerHTML: c });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
a as eds_icon_user
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { r as e, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { y as t } from "./youtube-efbfbdc4-BfySbfjR.mjs";
|
|
3
|
-
const n = class {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
e(this, s), this.class = "";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return r("span", { key: "2236f8f5ede15d7eef54f2fd4fe6ca81c996166f", class: this.class, innerHTML: t });
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
n as eds_icon_youtube
|
|
13
|
-
};
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import { r as h, h as i, g as d } from "./index-BvZ-fq9l.mjs";
|
|
2
|
-
import { s as g } from "./analytics-d99780e3-Bay18Oil.mjs";
|
|
3
|
-
import { p as c } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
4
|
-
const u = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}", f = u, p = class {
|
|
5
|
-
constructor(t) {
|
|
6
|
-
h(this, t), this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [];
|
|
7
|
-
}
|
|
8
|
-
/** Lifecycle hook to generate pagination links on component load */
|
|
9
|
-
componentWillLoad() {
|
|
10
|
-
this.mode === "default" && this.generateLinks();
|
|
11
|
-
}
|
|
12
|
-
componentDidLoad() {
|
|
13
|
-
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
14
|
-
this.emitContext(e);
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
19
|
-
* This event provides context information about the breadcrumb component.
|
|
20
|
-
*
|
|
21
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
22
|
-
*/
|
|
23
|
-
emitContext(t) {
|
|
24
|
-
const e = new CustomEvent("parentContext", {
|
|
25
|
-
detail: {
|
|
26
|
-
componentName: this.hostEl.tagName.toLowerCase(),
|
|
27
|
-
identifier: null
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
t.dispatchEvent(e);
|
|
31
|
-
}
|
|
32
|
-
onPageOrLastPageChange() {
|
|
33
|
-
this.mode === "default" && this.generateLinks();
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Checks if the current page is the first page
|
|
37
|
-
* @returns {boolean} - true if current page is the first page
|
|
38
|
-
*/
|
|
39
|
-
isFirstPage() {
|
|
40
|
-
return this.currentPage === 1;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Checks if the current page is the last page
|
|
44
|
-
* @returns {boolean} - true if current page is the last page
|
|
45
|
-
*/
|
|
46
|
-
isLastPage() {
|
|
47
|
-
return this.currentPage === this.lastPage;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Generates a pagination link object
|
|
51
|
-
* @param {number} page - Page number for the link
|
|
52
|
-
* @returns {Link} - Link object with page details
|
|
53
|
-
*/
|
|
54
|
-
generateLink(t) {
|
|
55
|
-
const e = this.url.includes("?");
|
|
56
|
-
return {
|
|
57
|
-
ariaLabel: `Page ${t}`,
|
|
58
|
-
url: `${this.url}${e ? "&" : "?"}page=${t}`,
|
|
59
|
-
label: t.toString(),
|
|
60
|
-
current: this.currentPage === t,
|
|
61
|
-
disabled: !1
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
/** Generates pagination links based on the last page and current page */
|
|
65
|
-
generateLinks() {
|
|
66
|
-
this.lastPage && this.lastPage > 5 ? this.links = this.getPaginationGenerator(this.currentPage || 1, this.lastPage).map((t) => typeof t == "number" ? this.generateLink(t) : t) : this.lastPage && (this.links = Array.from({ length: this.lastPage }).map((t, e) => this.generateLink(e + 1)));
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Creates a pagination range based on delta, current, and total pages
|
|
70
|
-
* @param {number} current - Current page number
|
|
71
|
-
* @param {number} total - Total number of pages
|
|
72
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
73
|
-
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
74
|
-
*/
|
|
75
|
-
getPaginationGenerator(t, e) {
|
|
76
|
-
const a = [];
|
|
77
|
-
if (e <= 5)
|
|
78
|
-
for (let n = 1; n <= e; n++)
|
|
79
|
-
a.push(n);
|
|
80
|
-
else {
|
|
81
|
-
a.push(1), t - 1 > 2 && a.push("...");
|
|
82
|
-
for (let n = Math.max(2, t - 1); n <= Math.min(e - 1, t + 1); n++)
|
|
83
|
-
a.push(n);
|
|
84
|
-
t + 1 < e - 1 && a.push("..."), a.push(e);
|
|
85
|
-
}
|
|
86
|
-
return a;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Formats the current page results information for display
|
|
90
|
-
* @returns {string} - Formatted page result information
|
|
91
|
-
*/
|
|
92
|
-
pageResults() {
|
|
93
|
-
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}` : "";
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Handles a page click event, updating the current page and dispatching an event
|
|
97
|
-
* @param {MouseEvent} event - Click event
|
|
98
|
-
* @param {number} newPage - New page number
|
|
99
|
-
*/
|
|
100
|
-
handlePageClick(t, e) {
|
|
101
|
-
if (this.mode !== "navigator" && (t.preventDefault(), e !== this.currentPage)) {
|
|
102
|
-
this.links = this.links.map((a) => typeof a == "object" ? Object.assign(Object.assign({}, a), { current: parseInt(a.label) === e }) : a);
|
|
103
|
-
const s = new CustomEvent("page", {
|
|
104
|
-
detail: e,
|
|
105
|
-
bubbles: !0,
|
|
106
|
-
composed: !0
|
|
107
|
-
});
|
|
108
|
-
this.hostEl.dispatchEvent(s), this.currentPage = e;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
render() {
|
|
112
|
-
return i("div", { key: "1d53f69179791434224f152503c0b81c4cfc7cd3" }, this.total > 0 && this.mode === "default" && i("p", { key: "00ae324b49d62a74feee9d1cde21d67cd726ecf0", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "dedf2ce2700eae9d1386b305ec1d1904b133f992", 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: (t) => {
|
|
113
|
-
this.mode === "default" && (this.isFirstPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) - 1));
|
|
114
|
-
} })), this.mode === "default" && this.links.map((t, e) => i("li", { key: e, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof t == "string" ? i("span", { class: "flex items-center justify-center" }, t) : i("eds-link", { url: t.url, "aria-label": t.ariaLabel, label: t.label, current: t.current, size: "small", class: "!p-8", intent: t.current ? "secondary" : "ghost", onClick: (s) => this.handlePageClick(s, parseInt(t.label)) }))), i("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: (t) => {
|
|
115
|
-
this.mode === "default" && (this.isLastPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) + 1));
|
|
116
|
-
} })))) : null);
|
|
117
|
-
}
|
|
118
|
-
get hostEl() {
|
|
119
|
-
return d(this);
|
|
120
|
-
}
|
|
121
|
-
static get watchers() {
|
|
122
|
-
return {
|
|
123
|
-
currentPage: ["onPageOrLastPageChange"],
|
|
124
|
-
lastPage: ["onPageOrLastPageChange"]
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
p.style = f;
|
|
129
|
-
const m = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}", b = m, v = class {
|
|
130
|
-
constructor(t) {
|
|
131
|
-
h(this, t), this.handleResize = () => {
|
|
132
|
-
this.updateContainerWidth();
|
|
133
|
-
}, this.data = null, this.endpoint = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.hostWidth = void 0, this.columnSize = "default", this.tbData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "", this.containerWidth = 0;
|
|
134
|
-
}
|
|
135
|
-
handleDataChange() {
|
|
136
|
-
this.parseData();
|
|
137
|
-
}
|
|
138
|
-
handleConfigChange() {
|
|
139
|
-
this.parseConfig();
|
|
140
|
-
}
|
|
141
|
-
componentWillLoad() {
|
|
142
|
-
this.parseConfig(), this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
143
|
-
}
|
|
144
|
-
componentDidLoad() {
|
|
145
|
-
this.updateContainerWidth(), window.addEventListener("resize", this.handleResize), this.setupPaginationListener();
|
|
146
|
-
}
|
|
147
|
-
componentDidUpdate() {
|
|
148
|
-
this.setupPaginationListener();
|
|
149
|
-
}
|
|
150
|
-
disconnectedCallback() {
|
|
151
|
-
window.removeEventListener("resize", this.handleResize);
|
|
152
|
-
}
|
|
153
|
-
updateContainerWidth() {
|
|
154
|
-
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;
|
|
155
|
-
}
|
|
156
|
-
parseData() {
|
|
157
|
-
try {
|
|
158
|
-
this.tbData = c(this.data), this.totalRows = this.tbData.length, this.updateColumns(), this.currentPage = 1;
|
|
159
|
-
} catch (t) {
|
|
160
|
-
console.error("Failed to parse data:", t), this.tbData = [];
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
parseConfig() {
|
|
164
|
-
try {
|
|
165
|
-
this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
|
|
166
|
-
} catch (t) {
|
|
167
|
-
console.error("Failed to parse config:", t), this.parsedConfig = {};
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
async fetchData() {
|
|
171
|
-
try {
|
|
172
|
-
const e = await (await fetch(this.endpoint)).json();
|
|
173
|
-
this.data = e;
|
|
174
|
-
} catch (t) {
|
|
175
|
-
console.error("Failed to fetch data:", t);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
setupPaginationListener() {
|
|
179
|
-
if (!this.shouldEnablePagination())
|
|
180
|
-
return;
|
|
181
|
-
const t = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
182
|
-
t && !t.hasAttribute("listener-attached") && (t.addEventListener("page", (e) => this.handlePageChange(e.detail)), t.setAttribute("listener-attached", "true"));
|
|
183
|
-
}
|
|
184
|
-
getFilteredRows() {
|
|
185
|
-
return this.tbData.filter((t) => Object.values(t).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
186
|
-
}
|
|
187
|
-
getPaginatedRows() {
|
|
188
|
-
const t = this.getFilteredRows();
|
|
189
|
-
this.totalRows = t.length;
|
|
190
|
-
const e = (this.currentPage - 1) * this.rowsPerPage;
|
|
191
|
-
return t.slice(e, e + this.rowsPerPage);
|
|
192
|
-
}
|
|
193
|
-
handlePageChange(t) {
|
|
194
|
-
this.currentPage = t, g({
|
|
195
|
-
category: "ui-component",
|
|
196
|
-
parentContext: null,
|
|
197
|
-
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
198
|
-
name: `${t}` || "",
|
|
199
|
-
action: "page"
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
handleSearch(t) {
|
|
203
|
-
this.searchQuery = t.target.value, this.currentPage = 1;
|
|
204
|
-
}
|
|
205
|
-
renderCell(t, e) {
|
|
206
|
-
var s;
|
|
207
|
-
const a = (s = this.parsedConfig[e]) === null || s === void 0 ? void 0 : s.format;
|
|
208
|
-
return a === "uppercase" ? t == null ? void 0 : t.toString().toUpperCase() : a === "svg" ? i("div", { innerHTML: t }) : a === "bold" ? i("strong", null, t) : a === "code" ? i("code", null, t) : t;
|
|
209
|
-
}
|
|
210
|
-
shouldEnablePagination() {
|
|
211
|
-
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
212
|
-
}
|
|
213
|
-
updateColumns() {
|
|
214
|
-
this.columns = this.tbData.length > 0 ? Object.keys(this.tbData[0]) : [];
|
|
215
|
-
}
|
|
216
|
-
getVisibleColumnsCount() {
|
|
217
|
-
return this.columns.filter((t) => {
|
|
218
|
-
var e;
|
|
219
|
-
return !(!((e = this.parsedConfig[t]) === null || e === void 0) && e.hidden);
|
|
220
|
-
}).length;
|
|
221
|
-
}
|
|
222
|
-
divisionFactor() {
|
|
223
|
-
let t = 1;
|
|
224
|
-
return this.columnSize === "medium" ? t = 2 : this.columnSize === "large" && (t = 4), t;
|
|
225
|
-
}
|
|
226
|
-
render() {
|
|
227
|
-
const t = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.containerWidth || 400, e = this.getVisibleColumnsCount(), s = e > 0 ? Math.floor(t / e * this.divisionFactor()) : 100, a = this.getPaginatedRows(), n = Math.ceil(this.totalRows / this.rowsPerPage);
|
|
228
|
-
return i("div", { key: "81735ac374853c8c92b3f50e26263ff9d71b326c" }, this.searchEnabled && i("div", { key: "0b2ab8dbb343033f605e2028890bd963cd650998" }, i("eds-input-field", {
|
|
229
|
-
key: 1,
|
|
230
|
-
name: "search",
|
|
231
|
-
"aria-label": "Search",
|
|
232
|
-
type: "text",
|
|
233
|
-
placeholder: "Search...",
|
|
234
|
-
// @ts-ignore
|
|
235
|
-
onInput: (o) => this.handleSearch(o)
|
|
236
|
-
})), i("div", { key: "eb3eebe6fb124d4e1983b2fb7e636707817d36bd", class: "mt-20" }, i("table", { key: "03b312ac20bdec28843a46907a3cc4fba69f62ae", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "ccab58dc46ae765df28da97ded6b1dd14d45d7f1" }, i("tr", { key: "904a125aad610cebe42b0bce46615be38f0ee17a", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
|
|
237
|
-
var r;
|
|
238
|
-
return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${s - 4}px` } }, o);
|
|
239
|
-
}))), i("tbody", { key: "a4c54c9c89d15546020dbb684e5486decde33f30" }, a.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
|
|
240
|
-
var l;
|
|
241
|
-
return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${s - 4}px` } }, this.renderCell(o[r], r));
|
|
242
|
-
})))))), this.shouldEnablePagination() && i("div", { key: "2a248cbbe81ac8c1ad4dfbb49a9615f15931bac6", class: "mt-20" }, i("eds-pagination", { key: "11701d81922ca4c8b36fe82be32316a175eddbcd", currentPage: this.currentPage, lastPage: n, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
243
|
-
}
|
|
244
|
-
get hostEl() {
|
|
245
|
-
return d(this);
|
|
246
|
-
}
|
|
247
|
-
static get watchers() {
|
|
248
|
-
return {
|
|
249
|
-
data: ["handleDataChange", "parseData"],
|
|
250
|
-
config: ["handleConfigChange"]
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
v.style = b;
|
|
255
|
-
export {
|
|
256
|
-
p as eds_pagination,
|
|
257
|
-
v as eds_table
|
|
258
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CJvr9v3B.js"),g=require("./analytics-d99780e3-DgvAss6l.js"),c=require("./sharedUtils-a550989c-m4pF1Vqy.js"),u="ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}",f=u,h=class{constructor(t){i.registerInstance(this,t),this.currentPage=void 0,this.lastPage=void 0,this.perPage=10,this.total=0,this.url="",this.mode="default",this.prevLabel="Prev",this.nextLabel="Next",this.prevUrl="",this.nextUrl="",this.links=[]}componentWillLoad(){this.mode==="default"&&this.generateLinks()}componentDidLoad(){this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach(e=>{this.emitContext(e)})}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.hostEl.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(e)}onPageOrLastPageChange(){this.mode==="default"&&this.generateLinks()}isFirstPage(){return this.currentPage===1}isLastPage(){return this.currentPage===this.lastPage}generateLink(t){const e=this.url.includes("?");return{ariaLabel:`Page ${t}`,url:`${this.url}${e?"&":"?"}page=${t}`,label:t.toString(),current:this.currentPage===t,disabled:!1}}generateLinks(){this.lastPage&&this.lastPage>5?this.links=this.getPaginationGenerator(this.currentPage||1,this.lastPage).map(t=>typeof t=="number"?this.generateLink(t):t):this.lastPage&&(this.links=Array.from({length:this.lastPage}).map((t,e)=>this.generateLink(e+1)))}getPaginationGenerator(t,e){const a=[];if(e<=5)for(let n=1;n<=e;n++)a.push(n);else{a.push(1),t-1>2&&a.push("...");for(let n=Math.max(2,t-1);n<=Math.min(e-1,t+1);n++)a.push(n);t+1<e-1&&a.push("..."),a.push(e)}return a}pageResults(){return this.total>0?this.total>this.perPage?`${this.perPage*((this.currentPage||1)-1)+1} - ${this.perPage*(this.currentPage||1)>=this.total?this.total:this.perPage*(this.currentPage||1)} of ${this.total}`:`${this.total}`:""}handlePageClick(t,e){if(this.mode!=="navigator"&&(t.preventDefault(),e!==this.currentPage)){this.links=this.links.map(a=>typeof a=="object"?Object.assign(Object.assign({},a),{current:parseInt(a.label)===e}):a);const s=new CustomEvent("page",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"1d53f69179791434224f152503c0b81c4cfc7cd3"},this.total>0&&this.mode==="default"&&i.h("p",{key:"00ae324b49d62a74feee9d1cde21d67cd726ecf0",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"dedf2ce2700eae9d1386b305ec1d1904b133f992",class:"sr-only"},"Results:"),this.pageResults()),this.mode==="navigator"||this.lastPage&&this.lastPage>1?i.h("nav",{"aria-label":"Pagination"},i.h("ul",{class:"flex items-center justify-center gap-x-8"},i.h("li",{class:"mr-auto"},i.h("eds-link",{label:this.prevLabel,url:this.mode==="navigator"?this.prevUrl||"#":this.isFirstPage()?"#":this.generateLink(this.currentPage-1).url,disabled:this.mode==="navigator"?!this.prevUrl:this.isFirstPage(),"aria-label":"Previous page",icon:"chevron-left","icon-pos":"left",size:"small","icon-small":"true",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pr-12",onClick:t=>{this.mode==="default"&&(this.isFirstPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)-1))}})),this.mode==="default"&&this.links.map((t,e)=>i.h("li",{key:e,class:"f-ui-02 flex h-36 items-center justify-center"},typeof t=="string"?i.h("span",{class:"flex items-center justify-center"},t):i.h("eds-link",{url:t.url,"aria-label":t.ariaLabel,label:t.label,current:t.current,size:"small",class:"!p-8",intent:t.current?"secondary":"ghost",onClick:s=>this.handlePageClick(s,parseInt(t.label))}))),i.h("li",{class:"ml-auto"},i.h("eds-link",{label:this.nextLabel,url:this.mode==="navigator"?this.nextUrl||"#":this.isLastPage()?"#":this.generateLink(this.currentPage+1).url,disabled:this.mode==="navigator"?!this.nextUrl:this.isLastPage(),"aria-label":"Next page",size:"small","icon-small":"true",icon:"chevron-right",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors",onClick:t=>{this.mode==="default"&&(this.isLastPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)+1))}})))):null)}get hostEl(){return i.getElement(this)}static get watchers(){return{currentPage:["onPageOrLastPageChange"],lastPage:["onPageOrLastPageChange"]}}};h.style=f;const p="table{text-indent:0;border-color:inherit;border-collapse:collapse;}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}",m=p,d=class{constructor(t){i.registerInstance(this,t),this.handleResize=()=>{this.updateContainerWidth()},this.data=null,this.endpoint=null,this.config={},this.rowsPerPage=10,this.paginationEnabled=!0,this.searchEnabled=!1,this.hostWidth=void 0,this.columnSize="default",this.tbData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery="",this.containerWidth=0}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.updateContainerWidth(),window.addEventListener("resize",this.handleResize),this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}disconnectedCallback(){window.removeEventListener("resize",this.handleResize)}updateContainerWidth(){this.hostWidth&&this.hostWidth.trim()!==""?this.containerWidth=Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.containerWidth=this.hostEl.parentElement.getBoundingClientRect().width:this.containerWidth=400}parseData(){try{this.tbData=c.parseData(this.data),this.totalRows=this.tbData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tbData=[]}}parseConfig(){try{this.parsedConfig=typeof this.config=="string"?JSON.parse(this.config):this.config}catch(t){console.error("Failed to parse config:",t),this.parsedConfig={}}}async fetchData(){try{const e=await(await fetch(this.endpoint)).json();this.data=e}catch(t){console.error("Failed to fetch data:",t)}}setupPaginationListener(){if(!this.shouldEnablePagination())return;const t=this.hostEl.shadowRoot.querySelector("eds-pagination");t&&!t.hasAttribute("listener-attached")&&(t.addEventListener("page",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tbData.filter(t=>Object.values(t).some(e=>e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())))}getPaginatedRows(){const t=this.getFilteredRows();this.totalRows=t.length;const e=(this.currentPage-1)*this.rowsPerPage;return t.slice(e,e+this.rowsPerPage)}handlePageChange(t){this.currentPage=t,g.sendAnalytics({category:"ui-component",parentContext:null,tag:`${this.hostEl.tagName.toLowerCase()}/eds-pagination`,name:`${t}`||"",action:"page"})}handleSearch(t){this.searchQuery=t.target.value,this.currentPage=1}renderCell(t,e){var s;const a=(s=this.parsedConfig[e])===null||s===void 0?void 0:s.format;return a==="uppercase"?t==null?void 0:t.toString().toUpperCase():a==="svg"?i.h("div",{innerHTML:t}):a==="bold"?i.h("strong",null,t):a==="code"?i.h("code",null,t):t}shouldEnablePagination(){return this.paginationEnabled&&this.totalRows>this.rowsPerPage}updateColumns(){this.columns=this.tbData.length>0?Object.keys(this.tbData[0]):[]}getVisibleColumnsCount(){return this.columns.filter(t=>{var e;return!(!((e=this.parsedConfig[t])===null||e===void 0)&&e.hidden)}).length}divisionFactor(){let t=1;return this.columnSize==="medium"?t=2:this.columnSize==="large"&&(t=4),t}render(){const t=this.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.containerWidth||400,e=this.getVisibleColumnsCount(),s=e>0?Math.floor(t/e*this.divisionFactor()):100,a=this.getPaginatedRows(),n=Math.ceil(this.totalRows/this.rowsPerPage);return i.h("div",{key:"81735ac374853c8c92b3f50e26263ff9d71b326c"},this.searchEnabled&&i.h("div",{key:"0b2ab8dbb343033f605e2028890bd963cd650998"},i.h("eds-input-field",{key:1,name:"search","aria-label":"Search",type:"text",placeholder:"Search...",onInput:o=>this.handleSearch(o)})),i.h("div",{key:"eb3eebe6fb124d4e1983b2fb7e636707817d36bd",class:"mt-20"},i.h("table",{key:"03b312ac20bdec28843a46907a3cc4fba69f62ae",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"ccab58dc46ae765df28da97ded6b1dd14d45d7f1"},i.h("tr",{key:"904a125aad610cebe42b0bce46615be38f0ee17a",class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(o=>{var r;return!(!((r=this.parsedConfig[o])===null||r===void 0)&&r.hidden)&&i.h("th",{class:"m-0 py-8 border border-softer f-ui-02 break-words",style:{minWidth:`${s-4}px`}},o)}))),i.h("tbody",{key:"a4c54c9c89d15546020dbb684e5486decde33f30"},a.map(o=>i.h("tr",{class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(r=>{var l;return!(!((l=this.parsedConfig[r])===null||l===void 0)&&l.hidden)&&i.h("td",{class:"text-center border border-softer m-0 py-8 f-ui-2 break-words",style:{minWidth:`${s-4}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"2a248cbbe81ac8c1ad4dfbb49a9615f15931bac6",class:"mt-20"},i.h("eds-pagination",{key:"11701d81922ca4c8b36fe82be32316a175eddbcd",currentPage:this.currentPage,lastPage:n,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};d.style=m;exports.eds_pagination=h;exports.eds_table=d;
|