@ebrains/vue 0.2.0-alpha.0 → 0.4.0-alpha.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-0ba8ed56-BVeDdJAE.js → color-bb472c37-CKu54kOY.js} +1 -1
- package/{color-0ba8ed56-D-UJpBQL.mjs → color-bb472c37-DDERsxdk.mjs} +6 -6
- package/color-primary-palette_6.entry-BB6740d4.js +1 -0
- package/{color-primary-palette_6.entry-CfqMCd3g.mjs → color-primary-palette_6.entry-CSDWEKLH.mjs} +17 -17
- package/correct-use-of-colors.entry-LuyuqIQ9.js +1 -0
- package/correct-use-of-colors.entry-hvZ1z3tc.mjs +59 -0
- package/{eds-alert_28.entry-DbTB72ow.mjs → eds-accordion_33.entry-DFgdjlJE.mjs} +709 -270
- package/{eds-alert_28.entry-Ctl9tHqr.js → eds-accordion_33.entry-DlnbmQ6R.js} +14 -11
- package/{eds-card-project.entry-XK15egnP.js → eds-card-project.entry-BQ-dH8vM.js} +1 -1
- package/{eds-card-project.entry-CKYhNPPH.mjs → eds-card-project.entry-C3eyu1U0.mjs} +2 -2
- package/{eds-card-section.entry-B7jR75ty.js → eds-card-section.entry-DU-1TB0I.js} +1 -1
- package/{eds-card-section.entry-x8CPk5NZ.mjs → eds-card-section.entry-Dxk-Ob_Y.mjs} +14 -8
- package/eds-card-tags.entry-CIu6lD0P.mjs +13 -0
- package/eds-card-tags.entry-YPPBWdFq.js +1 -0
- package/{eds-card-tool.entry-DFuXjfhh.mjs → eds-card-tool.entry-1_RNWh8n.mjs} +2 -2
- package/{eds-card-tool.entry-DZqHML8u.js → eds-card-tool.entry-DgBqQucY.js} +1 -1
- package/{eds-card-wrapper.entry-C_r0u0Fd.js → eds-card-wrapper.entry-BfCDGeFs.js} +1 -1
- package/{eds-card-wrapper.entry-DNnlCvMe.mjs → eds-card-wrapper.entry-C4pNRjIj.mjs} +2 -2
- package/{eds-code-block.entry-DwfHDe4j.mjs → eds-code-block.entry-B2xATQ7r.mjs} +87 -46
- package/{eds-code-block.entry-ClmjgThG.js → eds-code-block.entry-DQEDpAjn.js} +3 -3
- package/eds-components-section.entry-D08woahG.js +132 -0
- package/{eds-components-section.entry-BSRNSdwF.mjs → eds-components-section.entry-DR-984-3.mjs} +93 -42
- package/{eds-docs-palettes.entry-BlQEI2Bl.mjs → eds-docs-palettes.entry-B0yU2ZpL.mjs} +2 -2
- package/{eds-docs-palettes.entry-Gi9kzOYC.js → eds-docs-palettes.entry-qKOj3XU9.js} +1 -1
- package/{eds-docs-tokens.entry-Bxzd9uSz.mjs → eds-docs-tokens.entry-BVHiM7cK.mjs} +2 -2
- package/{eds-docs-tokens.entry-G6O1zRxS.js → eds-docs-tokens.entry-BtRXzjrp.js} +1 -1
- package/{eds-icon-arrow-diagonal.entry-C06V6TIW.js → eds-icon-arrow-diagonal.entry-DjDB--sU.js} +1 -1
- package/{eds-icon-arrow-diagonal.entry-Ky6NoFbS.mjs → eds-icon-arrow-diagonal.entry-E5xC3m8H.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-BPHnm7pX.mjs → eds-icon-arrow-right.entry-DaXIkUew.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-Dv17zi29.js → eds-icon-arrow-right.entry-odZ8U-W2.js} +1 -1
- package/{eds-icon-bluesky.entry-7_AzEVLl.mjs → eds-icon-bluesky.entry-B3yW2mUC.mjs} +1 -1
- package/{eds-icon-bluesky.entry-DQshm0EA.js → eds-icon-bluesky.entry-Dppj9cuC.js} +1 -1
- package/{eds-icon-chevron-down.entry-BlnVbI1I.js → eds-icon-chevron-down.entry-CidjiGQS.js} +1 -1
- package/{eds-icon-chevron-down.entry-DkcBkTRK.mjs → eds-icon-chevron-down.entry-xWODzTE-.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-BwhZiPKE.mjs → eds-icon-chevron-left.entry-CJyHE01I.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-BTxaVVnF.js → eds-icon-chevron-left.entry-DjJj-hmG.js} +1 -1
- package/{eds-icon-chevron-right.entry-c4irNhqS.js → eds-icon-chevron-right.entry-D8RyOADq.js} +1 -1
- package/{eds-icon-chevron-right.entry-BPKLFXW0.mjs → eds-icon-chevron-right.entry-iy6d6tux.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-oja5yYhS.mjs → eds-icon-chevron-up.entry-TKCdY_T3.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-CFiZyc6u.js → eds-icon-chevron-up.entry-ezV-v92v.js} +1 -1
- package/{eds-icon-close.entry-5BdzrFmk.mjs → eds-icon-close.entry-Brv3Uxu1.mjs} +1 -1
- package/{eds-icon-close.entry-DQD_dDo5.js → eds-icon-close.entry-CE-Nory7.js} +1 -1
- package/{eds-icon-copy.entry-CQ237xrq.js → eds-icon-copy.entry-Bpe3I5b6.js} +1 -1
- package/{eds-icon-copy.entry-jpUaAQ7k.mjs → eds-icon-copy.entry-DQioS3t7.mjs} +1 -1
- package/{eds-icon-eu.entry-CjCnJWwP.js → eds-icon-eu.entry-BzmYOiKL.js} +1 -1
- package/{eds-icon-eu.entry-gJ234Xni.mjs → eds-icon-eu.entry-KylDo55P.mjs} +1 -1
- package/{eds-icon-facebook.entry-BHUSe9LK.js → eds-icon-facebook.entry-DWZ02rD5.js} +1 -1
- package/{eds-icon-facebook.entry-Ch94iA-s.mjs → eds-icon-facebook.entry-DpS2m4v2.mjs} +1 -1
- package/{eds-icon-gitlab.entry-j6RBYOBc.js → eds-icon-gitlab.entry-D8PM12SK.js} +1 -1
- package/{eds-icon-gitlab.entry-B06LmNCU.mjs → eds-icon-gitlab.entry-JX-5azIw.mjs} +1 -1
- package/{eds-icon-linkedin.entry-CMW1rKpG.mjs → eds-icon-linkedin.entry-BylIVu8G.mjs} +1 -1
- package/{eds-icon-linkedin.entry-DouHzclR.js → eds-icon-linkedin.entry-CstoPbTS.js} +1 -1
- package/{eds-icon-loader.entry-BlGbpEzt.js → eds-icon-loader.entry-CaGFh0gM.js} +1 -1
- package/{eds-icon-loader.entry-Cx_ffiBq.mjs → eds-icon-loader.entry-DZyUa8Na.mjs} +1 -1
- package/{eds-icon-mastodon.entry-C4ITVPfN.mjs → eds-icon-mastodon.entry-BIckHn_q.mjs} +1 -1
- package/{eds-icon-mastodon.entry-Cpl3lSng.js → eds-icon-mastodon.entry-DxNG__-Y.js} +1 -1
- package/{eds-icon-menu.entry-DvQARmJU.mjs → eds-icon-menu.entry-C9N6s8Oa.mjs} +1 -1
- package/{eds-icon-menu.entry-BcPeEfV2.js → eds-icon-menu.entry-DwN-ZAWi.js} +1 -1
- package/{eds-icon-more.entry-m61loZHO.js → eds-icon-more.entry-68jT9AEw.js} +1 -1
- package/{eds-icon-more.entry-BoAVOpyT.mjs → eds-icon-more.entry-MUkUL_e2.mjs} +1 -1
- package/{eds-icon-search.entry-D-nQvhug.mjs → eds-icon-search.entry-CcwwFnns.mjs} +1 -1
- package/{eds-icon-search.entry-BJMtVlnR.js → eds-icon-search.entry-CrfMqbyi.js} +1 -1
- package/{eds-icon-success.entry-D8S7QlRm.mjs → eds-icon-success.entry-BUzsze9h.mjs} +1 -1
- package/{eds-icon-success.entry-DvIchNgX.js → eds-icon-success.entry-CACuZjP6.js} +1 -1
- package/{eds-icon-twitter.entry-DD48tnaV.mjs → eds-icon-twitter.entry-B1Iw69NW.mjs} +1 -1
- package/{eds-icon-twitter.entry-CD1nT3iI.js → eds-icon-twitter.entry-BbStwaGv.js} +1 -1
- package/{eds-icon-user.entry-DSPBBAZa.mjs → eds-icon-user.entry-CNo6pger.mjs} +1 -1
- package/{eds-icon-user.entry-DDRH46_Z.js → eds-icon-user.entry-vYVsxfK7.js} +1 -1
- package/{eds-icon-youtube.entry-BRyOsCV-.mjs → eds-icon-youtube.entry-CBU7Dvkh.mjs} +1 -1
- package/{eds-icon-youtube.entry-CfpQHgDF.js → eds-icon-youtube.entry-CmCAFp7D.js} +1 -1
- package/{eds-login.entry-CY0ZugpF.js → eds-login.entry-Bfztcsrc.js} +1 -1
- package/{eds-login.entry-bC6f6bvF.mjs → eds-login.entry-XqWPWCDL.mjs} +7 -7
- package/eds-logo-variations.entry-CUD-M_Fd.js +1 -0
- package/eds-logo-variations.entry-Cy_fbJLx.mjs +22 -0
- package/{eds-matomo-notice.entry-DanLI8VZ.js → eds-matomo-notice.entry-CytVSgYS.js} +1 -1
- package/{eds-matomo-notice.entry-DGHq-ICP.mjs → eds-matomo-notice.entry-kSuLDx9K.mjs} +2 -2
- package/{eds-navigator.entry-CUAf3hTM.js → eds-navigator.entry-BJTqtqld.js} +1 -1
- package/{eds-navigator.entry-D-fIKqub.mjs → eds-navigator.entry-DdzcXSRW.mjs} +1 -1
- package/eds-pagination_2.entry-B5PLo2Uu.mjs +249 -0
- package/eds-pagination_2.entry-DUsG8tcv.js +1 -0
- package/eds-progress-bar.entry-BBFsASiy.js +1 -0
- package/eds-progress-bar.entry-DdqH0plT.mjs +21 -0
- package/{eds-rating.entry-B2lhi19L.mjs → eds-rating.entry-CErokyKU.mjs} +6 -8
- package/{eds-rating.entry-BdE-bKae.js → eds-rating.entry-p9oWKCkQ.js} +1 -1
- package/{eds-section-core_2.entry-CqFyAWoq.mjs → eds-section-core_2.entry-D3HYngR_.mjs} +1 -1
- package/{eds-section-core_2.entry-BRNJshCh.js → eds-section-core_2.entry-D_nLUa29.js} +1 -1
- package/{eds-svg-repository.entry-qaL9fhLI.mjs → eds-svg-repository.entry-C-kayEdW.mjs} +71 -65
- package/{eds-svg-repository.entry-BdZya_DA.js → eds-svg-repository.entry-in72TP_1.js} +12 -12
- package/{eds-tab.entry-BqqMdTQv.mjs → eds-tab.entry-BKYSiEkl.mjs} +1 -1
- package/{eds-tab.entry-C6q7naM_.js → eds-tab.entry-BUzZWKac.js} +1 -1
- package/{eds-tabs-content.entry-D9b289Td.mjs → eds-tabs-content.entry-3cyCQAth.mjs} +4 -4
- package/{eds-tabs-content.entry-H__1SNbo.js → eds-tabs-content.entry-Cg7U8c5D.js} +1 -1
- package/{eds-tabs.entry-KsWwc6xS.mjs → eds-tabs.entry-B8q09in2.mjs} +24 -7
- package/eds-tabs.entry-DS6qBEo7.js +1 -0
- package/eds-timeline.entry-DEcov8mq.js +1 -0
- package/eds-timeline.entry-DhHSQScv.mjs +51 -0
- package/{eds-tooltip.entry-ByxJjA_6.mjs → eds-tooltip.entry-BTunlfGS.mjs} +14 -6
- package/eds-tooltip.entry-sjwuhdKF.js +1 -0
- package/eds-trl.entry-BHrlC_5O.js +1 -0
- package/eds-trl.entry-Bt28XH55.mjs +34 -0
- package/generated/components.d.ts +1 -0
- package/incorrect-use-of-colors.entry-DkY89xG1.mjs +42 -0
- package/incorrect-use-of-colors.entry-e4VhTVHS.js +1 -0
- package/index-D2H_BflF.js +21 -0
- package/{index-DQrtrXyM.mjs → index-I5Asbjce.mjs} +338 -363
- package/index.js +1 -1
- package/index.mjs +15 -14
- package/{logo-space.entry-DpgwdyOK.js → logo-space.entry-DsM5jXgX.js} +1 -1
- package/{logo-space.entry-OauRHmO8.mjs → logo-space.entry-GnVq-srD.mjs} +4 -4
- package/logo-variations-horizontal_2.entry-BeQ_r9Li.js +7 -0
- package/logo-variations-horizontal_2.entry-CC7tj8Hr.mjs +29 -0
- package/logo-wrong-usage.entry-Ct1Ae63m.mjs +14 -0
- package/logo-wrong-usage.entry-DkqcMaqp.js +1 -0
- package/package.json +1 -4
- package/{token-list_3.entry-Ca9muGhp.mjs → token-list_3.entry-CReCwFzO.mjs} +4 -4
- package/{token-list_3.entry-CVZDegic.js → token-list_3.entry-DaIOT7_R.js} +1 -1
- package/{token-ratios.entry-D3JWYlHy.mjs → token-ratios.entry-Dh8kvz8R.mjs} +2 -2
- package/{token-ratios.entry-DGMJ2vJj.js → token-ratios.entry-aBiRsmfr.js} +1 -1
- package/token-spacing.entry-C5HX4qPq.mjs +12 -0
- package/token-spacing.entry-DDiMRsNO.js +1 -0
- package/{token-typography.entry-DwUOTznz.mjs → token-typography.entry-CIETKadf.mjs} +2 -2
- package/{token-typography.entry-C8CdhyIM.js → token-typography.entry-DG-4k5gY.js} +1 -1
- package/color-primary-palette_6.entry-CoXWiKJ3.js +0 -1
- package/correct-use-of-colors.entry-CfXsWbhB.js +0 -1
- package/correct-use-of-colors.entry-CotQESQa.mjs +0 -59
- package/eds-accordion.entry-BsT7Ved4.mjs +0 -58
- package/eds-accordion.entry-BvDNoDvv.js +0 -4
- package/eds-block-break.entry-B8gP4ig9.mjs +0 -13
- package/eds-block-break.entry-L9LG-PtO.js +0 -1
- package/eds-breadcrumb.entry-C6mAAYNs.js +0 -1
- package/eds-breadcrumb.entry-Dio_2hx4.mjs +0 -114
- package/eds-card-tags.entry-Bvn8dDXI.mjs +0 -13
- package/eds-card-tags.entry-CndclGXB.js +0 -1
- package/eds-components-section.entry-8sEheaoX.js +0 -130
- package/eds-footer.entry-9xXgg22T.mjs +0 -29
- package/eds-footer.entry-DqnRHQ32.js +0 -1
- package/eds-frame.entry-Bz-23eT7.js +0 -1
- package/eds-frame.entry-YVbNIAAz.mjs +0 -74
- package/eds-fullscreen-menu.entry-4kxB1p-j.mjs +0 -74
- package/eds-fullscreen-menu.entry-DwOubHgX.js +0 -1
- package/eds-modal.entry-Bikh63fB.mjs +0 -65
- package/eds-modal.entry-TMxTmjgT.js +0 -1
- package/eds-pagination.entry-C8g4pxcm.js +0 -1
- package/eds-pagination.entry-D6iJH84k.mjs +0 -128
- package/eds-social-networks.entry-6VfWBLuR.js +0 -1
- package/eds-social-networks.entry-BgiRVGXx.mjs +0 -50
- package/eds-table.entry-BojRZdP2.mjs +0 -112
- package/eds-table.entry-ShWS4LWJ.js +0 -1
- package/eds-tabs.entry-DGHlnSwh.js +0 -1
- package/eds-tooltip.entry-BI1EvTiw.js +0 -1
- package/incorrect-use-of-colors.entry-C7xABbpE.js +0 -1
- package/incorrect-use-of-colors.entry-DNOV6p4p.mjs +0 -42
- package/index-BGGkUjck.js +0 -21
- package/logo-variations-horizontal.entry-BG8fM5Bs.js +0 -4
- package/logo-variations-horizontal.entry-BicKkgRN.mjs +0 -16
- package/logo-variations-vertical.entry-CXVFf9-0.mjs +0 -16
- package/logo-variations-vertical.entry-DJ-IpAyZ.js +0 -4
- package/logo-wrong-usage.entry-7MfyIkPp.js +0 -1
- package/logo-wrong-usage.entry-CH7JMqbI.mjs +0 -14
- package/token-spacing.entry-CdrdqAOb.js +0 -1
- package/token-spacing.entry-CjITQ8pH.mjs +0 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),n=require("./menu-340ea948-ZdelWVw3.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"9d15be28017eb074a69846a2a639861de997130b",class:this.class,innerHTML:n.menu})}};exports.eds_icon_menu=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),r=require("./more-4449d549-D4HA1cRq.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"0f7d61104f8f2b0a83c5b60a6ce81c6ab91ecb9c",class:this.class,innerHTML:r.more})}};exports.eds_icon_more=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),c=require("./search-fbcd79c2-BMxCaeEk.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"6795d973d3a1fff27c2fd6181235d0284abaf3b7",class:this.class,innerHTML:c.search})}};exports.eds_icon_search=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-D2H_BflF.js"),c=require("./success-443809da-BUEhLsAD.js"),r=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"15e428fd72496249adfe372847d5c683cd3412b1",class:this.class,innerHTML:c.success})}};exports.eds_icon_success=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),s=require("./twitter-ac21b505-DDdHS4hB.js"),r=class{constructor(e){t.registerInstance(this,e),this.class=""}render(){return t.h("span",{key:"cfa2d903e79d5a17fb7511e078c0d26bd6d3abd6",class:this.class,innerHTML:s.twitter})}};exports.eds_icon_twitter=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),c=require("./user-71ebdc15-BBKQbcQD.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"dc06f1a54b9542cb2c0165fb3bdff960ecd81cc0",class:this.class,innerHTML:c.user})}};exports.eds_icon_user=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),t=require("./youtube-efbfbdc4-BLTH1Jl9.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"ecd12a21c5797f93f7d8abe67803b27862967b2f",class:this.class,innerHTML:t.youtube})}};exports.eds_icon_youtube=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-D2H_BflF.js"),e=require("./keycloak-13893af6-NiM3zoVg.js"),a=class{constructor(t){i.registerInstance(this,t),this.authStatusChanged=i.createEvent(this,"authStatusChanged",7),this.handleLogout=()=>{e.logout(),this.authenticated=!1},this.keycloakUrl="",this.keycloakRealm="",this.keycloakClientId="",this.authenticated=!1,this.user=null}async componentWillLoad(){await this.checkAuthentication()}async checkAuthentication(){try{const t={url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId};await e.initKeycloak(t),this.authenticated=e.isAuthenticated(),this.authenticated&&(this.user=e.getUser()),this.authStatusChanged.emit({authenticated:this.authenticated,user:this.user})}catch(t){console.error("Keycloak initialization or login check failed:",t)}}async handleLogin(){try{this.authenticated||e.login()}catch(t){console.error("Login failed:",t)}}getBtnLabel(){return this.authenticated?"Logout":"Login"}render(){return i.h("eds-button",{key:"35f298ecf951d5b1087f988262ae7d312c5e2d38",label:this.getBtnLabel(),intent:"primary","extra-class":"text-default","aria-label":this.getBtnLabel(),triggerClick:this.authenticated?this.handleLogout:this.handleLogin.bind(this)})}};exports.eds_login=a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { a as s, i as n, b as
|
|
3
|
-
const
|
|
1
|
+
import { r as e, c as a, h as i } from "./index-I5Asbjce.mjs";
|
|
2
|
+
import { a as s, i as n, b as h, g as o, l as c } from "./keycloak-13893af6-BLzE1H6E.mjs";
|
|
3
|
+
const u = class {
|
|
4
4
|
constructor(t) {
|
|
5
|
-
|
|
5
|
+
e(this, t), this.authStatusChanged = a(this, "authStatusChanged", 7), this.handleLogout = () => {
|
|
6
6
|
s(), this.authenticated = !1;
|
|
7
7
|
}, this.keycloakUrl = "", this.keycloakRealm = "", this.keycloakClientId = "", this.authenticated = !1, this.user = null;
|
|
8
8
|
}
|
|
@@ -18,7 +18,7 @@ const d = class {
|
|
|
18
18
|
realm: this.keycloakRealm,
|
|
19
19
|
clientId: this.keycloakClientId
|
|
20
20
|
};
|
|
21
|
-
await n(t), this.authenticated =
|
|
21
|
+
await n(t), this.authenticated = h(), this.authenticated && (this.user = o()), this.authStatusChanged.emit({
|
|
22
22
|
authenticated: this.authenticated,
|
|
23
23
|
user: this.user
|
|
24
24
|
});
|
|
@@ -38,9 +38,9 @@ const d = class {
|
|
|
38
38
|
return this.authenticated ? "Logout" : "Login";
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return
|
|
41
|
+
return i("eds-button", { key: "35f298ecf951d5b1087f988262ae7d312c5e2d38", label: this.getBtnLabel(), intent: "primary", "extra-class": "text-default", "aria-label": this.getBtnLabel(), triggerClick: this.authenticated ? this.handleLogout : this.handleLogin.bind(this) });
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
u as eds_login
|
|
46
46
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),n=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("logo-variations-horizontal",null);case 1:return e.h("logo-variations-vertical",null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"9d6ce0e75030d6e636aab423181b0ce999f6f1b0",class:"container"},this.renderContent())}};exports.eds_logo_variations=n;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as n, h as e } from "./index-I5Asbjce.mjs";
|
|
2
|
+
const a = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
n(this, t), this.tabIndex = void 0;
|
|
5
|
+
}
|
|
6
|
+
renderContent() {
|
|
7
|
+
switch (this.tabIndex) {
|
|
8
|
+
case 0:
|
|
9
|
+
return e("logo-variations-horizontal", null);
|
|
10
|
+
case 1:
|
|
11
|
+
return e("logo-variations-vertical", null);
|
|
12
|
+
default:
|
|
13
|
+
return e("p", null, "Content not available.");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return e("div", { key: "9d6ce0e75030d6e636aab423181b0ce999f6f1b0", class: "container" }, this.renderContent());
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
a as eds_logo_variations
|
|
22
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),a=require("./toastManager-d9eee791-DvR_vUPI.js"),n=require("./color-bb472c37-CKu54kOY.js"),i=".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left: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))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.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))}}",l=i,o=class{constructor(e){t.registerInstance(this,e),this.title="Analytics Consent",this.description="We use anonymous analytics to improve our services. No personal data is collected unless you give your consent.",this.showNotice=!0}componentWillLoad(){this.checkConsentCookie()}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-button").forEach(s=>{this.emitContext(s)})}emitContext(e){const s=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});e.dispatchEvent(s)}checkConsentCookie(){const e=document.cookie.split("; ").find(r=>r.startsWith("mtm_consent=")),s=sessionStorage.getItem("matomo-deferred");this.showNotice=!e&&!s}optInAnalytics(){n.matomoOptIn(),a.toast.show("You have opted in to analytics.","success"),this.hideNotice()}deferDecision(){sessionStorage.setItem("matomo-deferred","true"),a.toast.show("You can decide later.","warning"),this.hideNotice()}hideNotice(){this.showNotice=!1}render(){return this.showNotice?t.h("div",{class:"fixed bottom-0 p-8 z-10 grow md:left-1/2 md:-translate-x-1/2 md:-translate-y-1/2 justify-center"},t.h("eds-accordion",{title:this.title,description:this.description,switchBg:!0,expanded:!0},t.h("div",{class:"flex items-center gap-4"},t.h("eds-button",{intent:"primary",label:"Yes, I agree","aria-label":"Opt-in for analytics",onClick:()=>this.optInAnalytics()}),t.h("eds-button",{intent:"ghost",label:"Ask me later","aria-label":"Defer analytics decision",onClick:()=>this.deferDecision()})))):null}get el(){return t.getElement(this)}};o.style=l;exports.eds_matomo_notice=o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r, h as s, g as n } from "./index-
|
|
1
|
+
import { r, h as s, g as n } from "./index-I5Asbjce.mjs";
|
|
2
2
|
import { t as a } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
3
|
-
import { m as i } from "./color-
|
|
3
|
+
import { m as i } from "./color-bb472c37-DDERsxdk.mjs";
|
|
4
4
|
const l = ".fixed{position:fixed}.absolute{position:absolute}.w-full{width:100%}.bottom-0{bottom:0rem}.bottom-4{bottom:0.25rem}.p-4{padding:0.25rem}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.z-10{z-index:10}.left-0{left:0rem}.left-1\\/2{left: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))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex{display:flex}.gap-12{gap:0.75rem}.gap-20{gap:1.25rem}.gap-4{gap:0.25rem}@media (min-width: 750px){.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))}}", c = l, d = class {
|
|
5
5
|
constructor(t) {
|
|
6
6
|
r(this, t), this.title = "Analytics Consent", this.description = "We use anonymous analytics to improve our services. No personal data is collected unless you give your consent.", this.showNotice = !0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D2H_BflF.js"),n=class{constructor(t){e.registerInstance(this,t),this.prevLabel=void 0,this.nextLabel=void 0,this.prevUrl=void 0,this.nextUrl=void 0,this.linkSize="small",this.linkIntent="tertiary"}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(i=>{this.emitContext(i)})}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}render(){return e.h("ul",{key:"1ab60197bbc9ee86d77134138744dce39df2aaa7",class:"flex lg:flex grow items-center justify-center gap-x-8"},this.prevLabel&&e.h("eds-link",{key:"b29fd121d33c1e919d24a5d460d8d6864f1ff9db",label:this.prevLabel,url:this.prevUrl||void 0,disabled:!this.prevUrl,"aria-label":this.prevLabel,size:this.linkSize,intent:this.linkIntent,class:"mr-auto !p-8 lg:!pr-12"},e.h("eds-icon-wrapper",{key:"64620ccfaf2e006a6414bcd7e874a352b9d2d56b",icon:"chevron-left"}),this.prevLabel),this.nextLabel&&e.h("eds-link",{key:"ae6425f0f01c8f5bcbdae27d9bea9dc3a5b09d3b",label:this.nextLabel,url:this.nextUrl||void 0,disabled:!this.nextUrl,"aria-label":this.nextLabel,size:this.linkSize,intent:this.linkIntent,class:"ml-auto !p-8 lg:!pl-12"},this.nextLabel,e.h("eds-icon-wrapper",{key:"d286fc26f17ee6cf6828990e98df7865fbbfd352",icon:"chevron-right",class:"w-20 h-20"})))}get el(){return e.getElement(this)}};exports.eds_navigator=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as n, h as e, g as l } from "./index-
|
|
1
|
+
import { r as n, h as e, g as l } from "./index-I5Asbjce.mjs";
|
|
2
2
|
const a = class {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
n(this, t), this.prevLabel = void 0, this.nextLabel = void 0, this.prevUrl = void 0, this.nextUrl = void 0, this.linkSize = "small", this.linkIntent = "tertiary";
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { r as h, h as i, g } from "./index-I5Asbjce.mjs";
|
|
2
|
+
import { s as d } from "./color-bb472c37-DDERsxdk.mjs";
|
|
3
|
+
const c = "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 = c, u = class {
|
|
4
|
+
constructor(t) {
|
|
5
|
+
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 = [];
|
|
6
|
+
}
|
|
7
|
+
/** Lifecycle hook to generate pagination links on component load */
|
|
8
|
+
componentWillLoad() {
|
|
9
|
+
this.mode === "default" && this.generateLinks();
|
|
10
|
+
}
|
|
11
|
+
componentDidLoad() {
|
|
12
|
+
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
13
|
+
this.emitContext(e);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
18
|
+
* This event provides context information about the breadcrumb component.
|
|
19
|
+
*
|
|
20
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
21
|
+
*/
|
|
22
|
+
emitContext(t) {
|
|
23
|
+
const e = new CustomEvent("parentContext", {
|
|
24
|
+
detail: {
|
|
25
|
+
componentName: this.hostEl.tagName.toLowerCase(),
|
|
26
|
+
identifier: null
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
t.dispatchEvent(e);
|
|
30
|
+
}
|
|
31
|
+
onPageOrLastPageChange() {
|
|
32
|
+
this.mode === "default" && this.generateLinks();
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Checks if the current page is the first page
|
|
36
|
+
* @returns {boolean} - true if current page is the first page
|
|
37
|
+
*/
|
|
38
|
+
isFirstPage() {
|
|
39
|
+
return this.currentPage === 1;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Checks if the current page is the last page
|
|
43
|
+
* @returns {boolean} - true if current page is the last page
|
|
44
|
+
*/
|
|
45
|
+
isLastPage() {
|
|
46
|
+
return this.currentPage === this.lastPage;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Generates a pagination link object
|
|
50
|
+
* @param {number} page - Page number for the link
|
|
51
|
+
* @returns {Link} - Link object with page details
|
|
52
|
+
*/
|
|
53
|
+
generateLink(t) {
|
|
54
|
+
const e = this.url.includes("?");
|
|
55
|
+
return {
|
|
56
|
+
ariaLabel: `Page ${t}`,
|
|
57
|
+
url: `${this.url}${e ? "&" : "?"}page=${t}`,
|
|
58
|
+
label: t.toString(),
|
|
59
|
+
current: this.currentPage === t,
|
|
60
|
+
disabled: !1
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/** Generates pagination links based on the last page and current page */
|
|
64
|
+
generateLinks() {
|
|
65
|
+
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)));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Creates a pagination range based on delta, current, and total pages
|
|
69
|
+
* @param {number} current - Current page number
|
|
70
|
+
* @param {number} total - Total number of pages
|
|
71
|
+
* @param {number} delta - Range of pages to display around the current page
|
|
72
|
+
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
73
|
+
*/
|
|
74
|
+
getPaginationGenerator(t, e) {
|
|
75
|
+
const a = [];
|
|
76
|
+
if (e <= 5)
|
|
77
|
+
for (let n = 1; n <= e; n++)
|
|
78
|
+
a.push(n);
|
|
79
|
+
else {
|
|
80
|
+
a.push(1), t - 1 > 2 && a.push("...");
|
|
81
|
+
for (let n = Math.max(2, t - 1); n <= Math.min(e - 1, t + 1); n++)
|
|
82
|
+
a.push(n);
|
|
83
|
+
t + 1 < e - 1 && a.push("..."), a.push(e);
|
|
84
|
+
}
|
|
85
|
+
return a;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Formats the current page results information for display
|
|
89
|
+
* @returns {string} - Formatted page result information
|
|
90
|
+
*/
|
|
91
|
+
pageResults() {
|
|
92
|
+
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}` : "";
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Handles a page click event, updating the current page and dispatching an event
|
|
96
|
+
* @param {MouseEvent} event - Click event
|
|
97
|
+
* @param {number} newPage - New page number
|
|
98
|
+
*/
|
|
99
|
+
handlePageClick(t, e) {
|
|
100
|
+
if (this.mode !== "navigator" && (t.preventDefault(), e !== this.currentPage)) {
|
|
101
|
+
this.links = this.links.map((a) => typeof a == "object" ? Object.assign(Object.assign({}, a), { current: parseInt(a.label) === e }) : a);
|
|
102
|
+
const s = new CustomEvent("pageChange", {
|
|
103
|
+
detail: e,
|
|
104
|
+
bubbles: !0,
|
|
105
|
+
composed: !0
|
|
106
|
+
});
|
|
107
|
+
this.hostEl.dispatchEvent(s), this.currentPage = e;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
render() {
|
|
111
|
+
return i("div", { key: "584e0918b070eac25a7c4bfceff59b000b60076c" }, this.total > 0 && this.mode === "default" && i("p", { key: "c688bd8e1f1d15904fc274454093f03213f59e38", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "c2472919bad41f76e26d518da27509e545ed9db6", 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) => {
|
|
112
|
+
this.mode === "default" && (this.isFirstPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) - 1));
|
|
113
|
+
} })), 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) => {
|
|
114
|
+
this.mode === "default" && (this.isLastPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) + 1));
|
|
115
|
+
} })))) : null);
|
|
116
|
+
}
|
|
117
|
+
get hostEl() {
|
|
118
|
+
return g(this);
|
|
119
|
+
}
|
|
120
|
+
static get watchers() {
|
|
121
|
+
return {
|
|
122
|
+
currentPage: ["onPageOrLastPageChange"],
|
|
123
|
+
lastPage: ["onPageOrLastPageChange"]
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
u.style = f;
|
|
128
|
+
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, b = class {
|
|
129
|
+
constructor(t) {
|
|
130
|
+
h(this, t), 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.tableData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "";
|
|
131
|
+
}
|
|
132
|
+
handleDataChange() {
|
|
133
|
+
this.parseData();
|
|
134
|
+
}
|
|
135
|
+
handleConfigChange() {
|
|
136
|
+
this.parseConfig();
|
|
137
|
+
}
|
|
138
|
+
componentWillLoad() {
|
|
139
|
+
this.parseConfig(), this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
140
|
+
}
|
|
141
|
+
componentDidLoad() {
|
|
142
|
+
this.setupPaginationListener();
|
|
143
|
+
}
|
|
144
|
+
componentDidUpdate() {
|
|
145
|
+
this.setupPaginationListener();
|
|
146
|
+
}
|
|
147
|
+
parseData() {
|
|
148
|
+
try {
|
|
149
|
+
this.tableData = typeof this.data == "string" ? JSON.parse(this.data) : this.data || [], this.totalRows = this.tableData.length, this.updateColumns(), this.currentPage = 1;
|
|
150
|
+
} catch (t) {
|
|
151
|
+
console.error("Failed to parse data:", t), this.tableData = [];
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
parseConfig() {
|
|
155
|
+
try {
|
|
156
|
+
this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
|
|
157
|
+
} catch (t) {
|
|
158
|
+
console.error("Failed to parse config:", t), this.parsedConfig = {};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
async fetchData() {
|
|
162
|
+
try {
|
|
163
|
+
const e = await (await fetch(this.endpoint)).json();
|
|
164
|
+
this.data = e;
|
|
165
|
+
} catch (t) {
|
|
166
|
+
console.error("Failed to fetch data:", t);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
setupPaginationListener() {
|
|
170
|
+
if (!this.shouldEnablePagination())
|
|
171
|
+
return;
|
|
172
|
+
const t = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
173
|
+
t && !t.hasAttribute("listener-attached") && (t.addEventListener("pageChange", (e) => this.handlePageChange(e.detail)), t.setAttribute("listener-attached", "true"));
|
|
174
|
+
}
|
|
175
|
+
getFilteredRows() {
|
|
176
|
+
return this.tableData.filter((t) => Object.values(t).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
177
|
+
}
|
|
178
|
+
getPaginatedRows() {
|
|
179
|
+
const t = this.getFilteredRows();
|
|
180
|
+
this.totalRows = t.length;
|
|
181
|
+
const e = (this.currentPage - 1) * this.rowsPerPage;
|
|
182
|
+
return t.slice(e, e + this.rowsPerPage);
|
|
183
|
+
}
|
|
184
|
+
handlePageChange(t) {
|
|
185
|
+
this.currentPage = t, d({
|
|
186
|
+
category: "ui-component",
|
|
187
|
+
parentContext: null,
|
|
188
|
+
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
189
|
+
name: `${t}` || "",
|
|
190
|
+
action: "page"
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
handleSearch(t) {
|
|
194
|
+
this.searchQuery = t.target.value, this.currentPage = 1;
|
|
195
|
+
}
|
|
196
|
+
renderCell(t, e) {
|
|
197
|
+
var s;
|
|
198
|
+
const a = (s = this.parsedConfig[e]) === null || s === void 0 ? void 0 : s.format;
|
|
199
|
+
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;
|
|
200
|
+
}
|
|
201
|
+
shouldEnablePagination() {
|
|
202
|
+
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
203
|
+
}
|
|
204
|
+
updateColumns() {
|
|
205
|
+
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
206
|
+
}
|
|
207
|
+
getVisibleColumnsCount() {
|
|
208
|
+
return this.columns.filter((t) => {
|
|
209
|
+
var e;
|
|
210
|
+
return !(!((e = this.parsedConfig[t]) === null || e === void 0) && e.hidden);
|
|
211
|
+
}).length;
|
|
212
|
+
}
|
|
213
|
+
divisionFactor() {
|
|
214
|
+
let t = 1;
|
|
215
|
+
return this.columnSize === "medium" ? t = 2 : this.columnSize === "large" && (t = 4), t;
|
|
216
|
+
}
|
|
217
|
+
render() {
|
|
218
|
+
const t = this.getPaginatedRows(), e = Math.ceil(this.totalRows / this.rowsPerPage), s = this.getVisibleColumnsCount(), a = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.hostEl.parentElement instanceof HTMLElement ? this.hostEl.parentElement.getBoundingClientRect().width : this.hostEl.getRootNode().host instanceof HTMLElement ? this.hostEl.getRootNode().host.getBoundingClientRect().width : 400, n = s > 0 ? Math.floor(a / s * this.divisionFactor()) : 100;
|
|
219
|
+
return i("div", { key: "69fd87330d2049eeb91751c781c7aa753fa89883" }, this.searchEnabled && i("div", { key: "2f9680dd17b852b140fe560f7979e1dd58236c5a" }, i("eds-input-field", {
|
|
220
|
+
key: 1,
|
|
221
|
+
name: "search",
|
|
222
|
+
"aria-label": "Search",
|
|
223
|
+
type: "text",
|
|
224
|
+
placeholder: "Search...",
|
|
225
|
+
// @ts-ignore
|
|
226
|
+
onInput: (o) => this.handleSearch(o)
|
|
227
|
+
})), i("div", { key: "d67edb24308e526a3e860a90250d58cf8bfee9c8", class: "mt-20" }, i("table", { key: "9a2ef219110e459ac670a0f9c2e62c600f6b5acd", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "81bae222447e805d06642dda19903d5bf99f2b01" }, i("tr", { key: "582d7ea661823b81ccdf3adc9769fe53cf56f04c", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
|
|
228
|
+
var r;
|
|
229
|
+
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: `${n}px` } }, o);
|
|
230
|
+
}))), i("tbody", { key: "ce7f87e665c394c5e9f2201ef2658e888ea07948" }, t.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
|
|
231
|
+
var l;
|
|
232
|
+
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: `${n}px` } }, this.renderCell(o[r], r));
|
|
233
|
+
})))))), this.shouldEnablePagination() && i("div", { key: "0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0", class: "mt-20" }, i("eds-pagination", { key: "5192f3f4b2ee93d5864d1afed3341a122c826d97", currentPage: this.currentPage, lastPage: e, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
234
|
+
}
|
|
235
|
+
get hostEl() {
|
|
236
|
+
return g(this);
|
|
237
|
+
}
|
|
238
|
+
static get watchers() {
|
|
239
|
+
return {
|
|
240
|
+
data: ["handleDataChange", "parseData"],
|
|
241
|
+
config: ["handleConfigChange"]
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
b.style = m;
|
|
246
|
+
export {
|
|
247
|
+
u as eds_pagination,
|
|
248
|
+
b as eds_table
|
|
249
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-D2H_BflF.js"),d=require("./color-bb472c37-CKu54kOY.js"),c="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=c,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("pageChange",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"584e0918b070eac25a7c4bfceff59b000b60076c"},this.total>0&&this.mode==="default"&&i.h("p",{key:"c688bd8e1f1d15904fc274454093f03213f59e38",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"c2472919bad41f76e26d518da27509e545ed9db6",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 u="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}",p=u,g=class{constructor(t){i.registerInstance(this,t),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.tableData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery=""}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}parseData(){try{this.tableData=typeof this.data=="string"?JSON.parse(this.data):this.data||[],this.totalRows=this.tableData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tableData=[]}}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("pageChange",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tableData.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,d.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.tableData.length>0?Object.keys(this.tableData[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.getPaginatedRows(),e=Math.ceil(this.totalRows/this.rowsPerPage),s=this.getVisibleColumnsCount(),a=this.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.hostEl.parentElement.getBoundingClientRect().width:this.hostEl.getRootNode().host instanceof HTMLElement?this.hostEl.getRootNode().host.getBoundingClientRect().width:400,n=s>0?Math.floor(a/s*this.divisionFactor()):100;return i.h("div",{key:"69fd87330d2049eeb91751c781c7aa753fa89883"},this.searchEnabled&&i.h("div",{key:"2f9680dd17b852b140fe560f7979e1dd58236c5a"},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:"d67edb24308e526a3e860a90250d58cf8bfee9c8",class:"mt-20"},i.h("table",{key:"9a2ef219110e459ac670a0f9c2e62c600f6b5acd",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"81bae222447e805d06642dda19903d5bf99f2b01"},i.h("tr",{key:"582d7ea661823b81ccdf3adc9769fe53cf56f04c",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:`${n}px`}},o)}))),i.h("tbody",{key:"ce7f87e665c394c5e9f2201ef2658e888ea07948"},t.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:`${n}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"0fe6aed0d03c3aa491cd1bb17cd3bdc1e35372a0",class:"mt-20"},i.h("eds-pagination",{key:"5192f3f4b2ee93d5864d1afed3341a122c826d97",currentPage:this.currentPage,lastPage:e,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};g.style=p;exports.eds_pagination=h;exports.eds_table=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),o=".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.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)}",i=o,r=class{constructor(e){t.registerInstance(this,e),this.value=0}async updateValue(e){this.value=Math.min(100,Math.max(0,e))}render(){const e=this.value;return t.h("div",{key:"3131f56034a9fd72ca51e448bc2bcc6281669b25",class:"outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden"},t.h("div",{key:"f1665a254f8dbe1ccb9e512e5f2e7c1e5ab88c07",class:"inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02",style:{width:`${e}%`}},e,"%"))}};r.style=i;exports.eds_progress_bar=r;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r, h as t } from "./index-I5Asbjce.mjs";
|
|
2
|
+
const o = ".w-full{width:100%}.h-full{height:100%}.bg-default{background-color:var(--grey-200)}.rounded-lg{border-radius:16px}.h-24{height:1.5rem}.border{border-width:1px}.border-softer{border:2px solid rgba(0, 0, 0, .1 )}.overflow-hidden{overflow:hidden}.bg-accent{background-color:var(--green-500)}.bg-\\[\\#0034CB\\]{--tw-text-opacity:1;background-color:rgb(0 52 203 / var(--tw-text-opacity))}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-300{transition-duration:300ms}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.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)}", a = o, i = class {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
r(this, e), this.value = 0;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Method to update the progress value externally.
|
|
8
|
+
* @param newValue The new progress value (0-100).
|
|
9
|
+
*/
|
|
10
|
+
async updateValue(e) {
|
|
11
|
+
this.value = Math.min(100, Math.max(0, e));
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const e = this.value;
|
|
15
|
+
return t("div", { key: "3131f56034a9fd72ca51e448bc2bcc6281669b25", class: "outer w-full bg-default rounded-lg h-24 border border-softer overflow-hidden" }, t("div", { key: "f1665a254f8dbe1ccb9e512e5f2e7c1e5ab88c07", class: "inner h-full rounded-lg bg-accent transition-all duration-300 flex items-center justify-center text-default f-body-02", style: { width: `${e}%` } }, e, "%"));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
i.style = a;
|
|
19
|
+
export {
|
|
20
|
+
i as eds_progress_bar
|
|
21
|
+
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { r as a, c as r, h as t } from "./index-
|
|
1
|
+
import { r as a, c as r, h as t } from "./index-I5Asbjce.mjs";
|
|
2
2
|
const s = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-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)}.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)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}", n = s, l = class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
a(this, e), this.ratingChange = r(this, "ratingChange", 7), this.stars = 5, this.label = "Rate your experience", this.textMapping = ["Very Poor", "Poor", "Average", "Good", "Excellent"], this.selectedRating = 0;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
|
-
* Parses the `
|
|
8
|
-
* Returns an empty array if parsing fails
|
|
9
|
-
*
|
|
10
|
-
* @returns {any[]} Array of parsed link objects
|
|
7
|
+
* Parses the `textMapping` prop into an array of strings.
|
|
8
|
+
* Returns an empty array if parsing fails.
|
|
11
9
|
*/
|
|
12
10
|
get parsedMappings() {
|
|
13
11
|
if (typeof this.textMapping == "object")
|
|
@@ -16,7 +14,7 @@ const s = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.2
|
|
|
16
14
|
try {
|
|
17
15
|
return JSON.parse(this.textMapping);
|
|
18
16
|
} catch (e) {
|
|
19
|
-
return console.error("Error parsing
|
|
17
|
+
return console.error("Error parsing textMapping prop:", e), [];
|
|
20
18
|
}
|
|
21
19
|
return [];
|
|
22
20
|
}
|
|
@@ -28,10 +26,10 @@ const s = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.2
|
|
|
28
26
|
this.selectedRating = e, this.ratingChange.emit(e);
|
|
29
27
|
}
|
|
30
28
|
render() {
|
|
31
|
-
return t("div", { key: "
|
|
29
|
+
return t("div", { key: "c9147c2635f091d93f329d2b56a5fee8dce9126c", class: "relative w-full flex flex-col" }, t("span", { key: "39a84bc3d9bcd4b729a35737c883eca7144d13ac", class: "f-body-01" }, this.label), t("div", { key: "3cb84acf399cac0b23393c71df2f2b36aab4f43e", class: "stars" }, Array.from({ length: this.stars }, (e, i) => t("span", { class: {
|
|
32
30
|
star: !0,
|
|
33
31
|
filled: i < this.selectedRating
|
|
34
|
-
}, onClick: () => this.handleClick(i + 1) }, "★"))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && t("span", { key: "
|
|
32
|
+
}, onClick: () => this.handleClick(i + 1) }, "★"))), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && t("span", { key: "60605ec21b542825da0dad629fc1618d9cf63b25", class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]));
|
|
35
33
|
}
|
|
36
34
|
};
|
|
37
35
|
l.style = n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),r=":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-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)}.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)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}",s=r,a=class{constructor(e){t.registerInstance(this,e),this.ratingChange=t.createEvent(this,"ratingChange",7),this.stars=5,this.label="Rate your experience",this.textMapping=["Very Poor","Poor","Average","Good","Excellent"],this.selectedRating=0}get parsedMappings(){if(typeof this.textMapping=="object")return this.textMapping;if(typeof this.textMapping=="string")try{return JSON.parse(this.textMapping)}catch(e){return console.error("Error parsing textMapping prop:",e),[]}return[]}handleClick(e){this.selectedRating=e,this.ratingChange.emit(e)}render(){return t.h("div",{key:"c9147c2635f091d93f329d2b56a5fee8dce9126c",class:"relative w-full flex flex-col"},t.h("span",{key:"39a84bc3d9bcd4b729a35737c883eca7144d13ac",class:"f-body-01"},this.label),t.h("div",{key:"3cb84acf399cac0b23393c71df2f2b36aab4f43e",class:"stars"},Array.from({length:this.stars},(e,i)=>t.h("span",{class:{star:!0,filled:i<this.selectedRating},onClick:()=>this.handleClick(i+1)},"★"))),this.selectedRating>0&&this.parsedMappings[this.selectedRating-1]&&t.h("span",{key:"60605ec21b542825da0dad629fc1618d9cf63b25",class:"f-ui-04 text-lighter"},this.parsedMappings[this.selectedRating-1]))}};a.style=s;exports.eds_rating=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D2H_BflF.js"),n="",a=n,s=class{constructor(e){t.registerInstance(this,e),this.tag="section",this.sectionTitle="",this.headingLevel="h2"}render(){const e=this.tag;return t.h(e,{key:"849c35d9cd587cf14b0d6bc6efd1310a85d447f2"},t.h("eds-section-heading",{key:"7ed4486fcf6e7c653026869c9468be9471db1775",headingLevel:this.headingLevel,sectionTitle:this.sectionTitle}),t.h("slot",{key:"5d95ea6516ecaaab4e07a40b84cd20deb3d8d3b2"}))}};s.style=a;const c=class{constructor(e){t.registerInstance(this,e),this.sectionTitle=void 0,this.withContainer=!0,this.headingLevel="h2",this.tag="div",this.spacingLarge=!1}getHeadingClass(){return{h1:"f-heading-01",h2:"f-heading-02",h3:"f-heading-03",h4:"f-heading-04",h5:"f-heading-05",h6:"f-heading-06"}[this.headingLevel]}render(){const e=this.tag,i=this.headingLevel;return t.h(e,{key:"2c6466c0a02bf8598153c18eafb37affc3dac395",class:{"ui-section-header flex flex-wrap items-center justify-between gap-x-12 gap-y-8 pb-20":!0,container:this.withContainer,"pt-48":this.spacingLarge,"pt-28":!this.spacingLarge}},t.h(i,{key:"fc7f0f09e02e8c63697e46811c465792497126e0",class:this.getHeadingClass()},this.sectionTitle))}};exports.eds_section_core=s;exports.eds_section_heading=c;
|