@ebrains/vue 0.3.0-alpha.0 → 0.5.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/analytics-1cde8e4a-BDRcCMlV.mjs +24 -0
- package/analytics-1cde8e4a-B_MD-9qW.js +1 -0
- package/color-2554aad6-CCcV5UJZ.mjs +131 -0
- package/color-2554aad6-D1hFGX4H.js +1 -0
- package/{color-primary-palette_6.entry-WwN9tuB9.mjs → color-primary-palette_6.entry-CgeStD0V.mjs} +21 -21
- package/color-primary-palette_6.entry-c_K7930i.js +1 -0
- package/correct-use-of-colors.entry-De5Tcxdm.mjs +59 -0
- package/correct-use-of-colors.entry-DpmXW_CD.js +1 -0
- package/{eds-accordion.entry-RvtdAQT0.mjs → eds-accordion.entry-B8TjhnWX.mjs} +19 -28
- package/eds-accordion.entry-BySfMYU2.js +4 -0
- package/{eds-avatar_17.entry-BQZz43q9.js → eds-alert_17.entry-BfpBSBVW.js} +572 -113
- package/{eds-avatar_17.entry-08AUpBqo.mjs → eds-alert_17.entry-IJq6baZd.mjs} +897 -452
- package/eds-avatar_4.entry-B7CV7v_n.mjs +283 -0
- package/eds-avatar_4.entry-D1CDRW_R.js +149 -0
- package/eds-card-generic.entry-BhLK-nyp.js +1 -0
- package/{eds-card-generic.entry-0IAAHjtS.mjs → eds-card-generic.entry-DIHPUjbI.mjs} +4 -4
- package/{eds-card-project.entry-Ckgpwy2Y.mjs → eds-card-project.entry-C2dWgXXW.mjs} +12 -11
- package/eds-card-project.entry-CunHqbYK.js +1 -0
- package/{eds-card-section.entry-B90kv8Pj.js → eds-card-section.entry-0n2V-MH6.js} +1 -1
- package/{eds-card-section.entry-DnktDeDm.mjs → eds-card-section.entry-Ccjil38X.mjs} +4 -4
- package/eds-card-tags.entry-C6jjLiGA.mjs +13 -0
- package/eds-card-tags.entry-CQS5AtAg.js +1 -0
- package/{eds-card-tool.entry-CmRu6pmc.mjs → eds-card-tool.entry-Bi8w0xds.mjs} +7 -7
- package/eds-card-tool.entry-DJA23zJf.js +1 -0
- package/{eds-card-wrapper.entry-rBHdbwzh.js → eds-card-wrapper.entry-BKPCc7ci.js} +1 -1
- package/{eds-card-wrapper.entry-Buesg37A.mjs → eds-card-wrapper.entry-UPnkq2JI.mjs} +4 -4
- package/{eds-code-block.entry-DKnuVY85.mjs → eds-code-block.entry-BZTLGjqq.mjs} +50 -9
- package/{eds-code-block.entry-M3x0FsRB.js → eds-code-block.entry-Ckb3jisn.js} +3 -3
- package/{eds-components-section.entry-BEBky2Me.js → eds-components-section.entry-B3WrdIfL.js} +45 -36
- package/{eds-components-section.entry-BAWU9rKy.mjs → eds-components-section.entry-D1ovrn93.mjs} +56 -37
- package/{eds-docs-palettes.entry-D3DdXkoo.js → eds-docs-palettes.entry-Bk77Xn04.js} +1 -1
- package/{eds-docs-palettes.entry-etHagd2P.mjs → eds-docs-palettes.entry-lpT0ypSs.mjs} +2 -2
- package/{eds-docs-tokens.entry-CIGNTs97.mjs → eds-docs-tokens.entry-Bi35zxEM.mjs} +2 -2
- package/{eds-docs-tokens.entry--gW4Z293.js → eds-docs-tokens.entry-DCHw-jrS.js} +1 -1
- package/eds-dropdown_2.entry-Bamjbo1o.mjs +115 -0
- package/eds-dropdown_2.entry-YEBzyKJu.js +1 -0
- package/{eds-form.entry-D8FLPsaS.js → eds-form.entry-a52cYx3b.js} +2 -2
- package/{eds-form.entry-zewjTpaa.mjs → eds-form.entry-xm937wbh.mjs} +113 -92
- package/{eds-frame.entry-BlOnLCrI.js → eds-frame.entry-BnT9nQwa.js} +1 -1
- package/{eds-frame.entry-SCGm_pju.mjs → eds-frame.entry-CU7GoLj6.mjs} +2 -2
- package/eds-icon-arrow-diagonal.entry-fzsCJiPP.js +1 -0
- package/eds-icon-arrow-diagonal.entry-kClkB8LF.mjs +13 -0
- package/eds-icon-arrow-right.entry-B75Ra6OD.js +1 -0
- package/eds-icon-arrow-right.entry-DX6A-VKL.mjs +13 -0
- package/{eds-icon-bluesky.entry-BDD9os2p.js → eds-icon-bluesky.entry-7tzCZSoL.js} +1 -1
- package/eds-icon-bluesky.entry-BNSdVu2K.mjs +13 -0
- package/eds-icon-chevron-down.entry-BLvZ3e_N.mjs +13 -0
- package/{eds-icon-chevron-down.entry-DA_Mq25N.js → eds-icon-chevron-down.entry-BUG6E9eR.js} +1 -1
- package/eds-icon-chevron-left.entry-BT-KYjSo.js +1 -0
- package/eds-icon-chevron-left.entry-Vq-R3b59.mjs +13 -0
- package/{eds-icon-chevron-right.entry-B2HI3b59.mjs → eds-icon-chevron-right.entry-B1qzmGrD.mjs} +2 -2
- package/eds-icon-chevron-right.entry-BmU_I0Y1.js +1 -0
- package/eds-icon-chevron-up.entry-DXXRgw1V.js +1 -0
- package/eds-icon-chevron-up.entry-DuySJU_i.mjs +13 -0
- package/eds-icon-close.entry-DDxUAr21.mjs +13 -0
- package/{eds-icon-close.entry-JIzBTjIa.js → eds-icon-close.entry-DS7BLTzl.js} +1 -1
- package/eds-icon-copy.entry-DNa1wI4F.mjs +13 -0
- package/{eds-icon-copy.entry-Ccrvu27o.js → eds-icon-copy.entry-Nz_P5A7p.js} +1 -1
- package/eds-icon-eu.entry-CLQcoimB.js +1 -0
- package/eds-icon-eu.entry-DTdf6Skc.mjs +13 -0
- package/eds-icon-facebook.entry-B9szoikj.mjs +13 -0
- package/eds-icon-facebook.entry-knUdck2t.js +1 -0
- package/eds-icon-gitlab.entry-IO7f4hgL.mjs +13 -0
- package/eds-icon-gitlab.entry-pKxaKA0B.js +1 -0
- package/{eds-icon-linkedin.entry-B4ev6evD.js → eds-icon-linkedin.entry-BD__kbDV.js} +1 -1
- package/eds-icon-linkedin.entry-CryUW1Er.mjs +13 -0
- package/{eds-icon-loader.entry-BFeh0vtX.js → eds-icon-loader.entry-B_3Sd6PB.js} +1 -1
- package/eds-icon-loader.entry-CxizdRT8.mjs +13 -0
- package/eds-icon-mastodon.entry-7152lwgd.js +1 -0
- package/eds-icon-mastodon.entry-MyM74vvm.mjs +13 -0
- package/eds-icon-menu.entry-5RRmRTxa.mjs +13 -0
- package/eds-icon-menu.entry-BVU8htgo.js +1 -0
- package/eds-icon-more.entry-KE6_EsAg.mjs +13 -0
- package/{eds-icon-more.entry-C-v0Cjp9.js → eds-icon-more.entry-lossstHZ.js} +1 -1
- package/eds-icon-search.entry-Dg0wabdP.mjs +13 -0
- package/eds-icon-search.entry-DiYaxnYX.js +1 -0
- package/{eds-icon-success.entry-DSukl_w-.js → eds-icon-success.entry-CRu9Ssdi.js} +1 -1
- package/eds-icon-success.entry-_fWfddhX.mjs +13 -0
- package/eds-icon-twitter.entry-B4xPE3Vz.js +1 -0
- package/eds-icon-twitter.entry-DHFpeStb.mjs +13 -0
- package/eds-icon-user.entry-BOv2lInW.mjs +13 -0
- package/eds-icon-user.entry-DkRLDrdp.js +1 -0
- package/eds-icon-youtube.entry-CRRGbDsw.mjs +13 -0
- package/eds-icon-youtube.entry-DL5fWU8k.js +1 -0
- package/{eds-input_7.entry-BV0VagCj.js → eds-input_7.entry-BZ9afXqe.js} +3 -3
- package/{eds-input_7.entry-CRNkC-uR.mjs → eds-input_7.entry-WvoE_Mue.mjs} +30 -25
- package/eds-login.entry-BRWK6otG.js +1 -0
- package/eds-login.entry-C0eOhlEq.mjs +58 -0
- package/{eds-logo-variations.entry-U65PDVhE.js → eds-logo-variations.entry-BnB25dDH.js} +1 -1
- package/eds-logo-variations.entry-Cw44vuQE.mjs +22 -0
- package/eds-matomo-notice.entry-BpwE1vQ3.js +1 -0
- package/{eds-matomo-notice.entry-y5SvHzsZ.mjs → eds-matomo-notice.entry-DsLbzeqQ.mjs} +2 -2
- package/eds-modal.entry-B9gXEOjT.js +1 -0
- package/eds-modal.entry-CCy9SRVR.mjs +84 -0
- package/{eds-navigator.entry-DixbL3UY.js → eds-navigator.entry-B9scz8p_.js} +1 -1
- package/{eds-navigator.entry-CvKDpQVM.mjs → eds-navigator.entry-Dk-4UW_d.mjs} +2 -2
- package/eds-pagination_2.entry-D_sngThL.js +1 -0
- package/{eds-pagination_2.entry-CRrIKRa-.mjs → eds-pagination_2.entry-M3CLFGN_.mjs} +25 -17
- package/{eds-progress-bar.entry-sdqDGSI3.mjs → eds-progress-bar.entry-BtI2_94Z.mjs} +5 -5
- package/{eds-progress-bar.entry-Bmjv2r3W.js → eds-progress-bar.entry-D56TNSGj.js} +1 -1
- package/{eds-section-core_2.entry-DBjBQ_AT.js → eds-section-core_2.entry-BmbK_RfT.js} +1 -1
- package/{eds-section-core_2.entry-cwkrHET8.mjs → eds-section-core_2.entry-pmUkAIz7.mjs} +6 -6
- package/{eds-svg-repository.entry-UvAba6M3.mjs → eds-svg-repository.entry-B3xCCFOp.mjs} +2 -2
- package/{eds-svg-repository.entry-BEJBJ538.js → eds-svg-repository.entry-DZ1FMRrQ.js} +2 -2
- package/{eds-tab.entry-CR1nFyrH.mjs → eds-tab.entry-Bpv6R_M0.mjs} +2 -2
- package/{eds-tab.entry-uQka8MTr.js → eds-tab.entry-DjpVgaDN.js} +1 -1
- package/eds-tabs-content.entry-Bj5wNmkr.js +1 -0
- package/{eds-tabs-content.entry-BKT7-iAV.mjs → eds-tabs-content.entry-CzwoLZzR.mjs} +4 -4
- package/{eds-tabs.entry-BKx8xHJ8.mjs → eds-tabs.entry-BYBPkYRs.mjs} +5 -5
- package/eds-tabs.entry-Cbc9yhHL.js +1 -0
- package/eds-timeline.entry-Bq-eo4Og.js +1 -0
- package/{eds-timeline.entry-B7jxBFA4.mjs → eds-timeline.entry-DJYcN7rN.mjs} +7 -7
- package/{eds-tooltip.entry-DJqN6_P4.mjs → eds-tooltip.entry-CTCdKTKM.mjs} +14 -6
- package/eds-tooltip.entry-eiFlYpfl.js +1 -0
- package/eds-trl.entry-8BXrp9SK.mjs +34 -0
- package/eds-trl.entry-DtffM-e5.js +1 -0
- package/eds-user.entry-DfBE6LuF.js +1 -0
- package/eds-user.entry-ybggwcts.mjs +66 -0
- package/eds-vertical-stepper.entry-DpcwvOst.mjs +27 -0
- package/eds-vertical-stepper.entry-O_GJNo8B.js +1 -0
- package/generated/components.d.ts +3 -1
- package/incorrect-use-of-colors.entry-CDHLoNBa.js +1 -0
- package/incorrect-use-of-colors.entry-DbwiJCH0.mjs +42 -0
- package/{index-Dg2DO7q4.mjs → index-C-Gy1Lax.mjs} +502 -498
- package/index-D_kZU_4I.js +21 -0
- package/index.js +1 -1
- package/index.mjs +33 -31
- package/{keycloak-13893af6-BLzE1H6E.mjs → keycloak-d502ec16-Ce0iGqyk.mjs} +259 -247
- package/keycloak-d502ec16-m7LwS-Gh.js +9 -0
- package/{logo-space.entry-DC5fUroI.js → logo-space.entry-D56IaLNE.js} +1 -1
- package/{logo-space.entry-Cf-keXHv.mjs → logo-space.entry-DERJLkyL.mjs} +7 -7
- package/logo-variations-horizontal_2.entry-OY3Zka_7.js +7 -0
- package/logo-variations-horizontal_2.entry-wp9D1MMl.mjs +29 -0
- package/logo-wrong-usage.entry-BniBpQrN.js +1 -0
- package/logo-wrong-usage.entry-RgKFDObE.mjs +14 -0
- package/package.json +1 -4
- package/{token-list_3.entry-BkOkChEb.js → token-list_3.entry-C0Tohj1W.js} +1 -1
- package/{token-list_3.entry-CheMK1r_.mjs → token-list_3.entry-Zgzwbhio.mjs} +4 -4
- package/{token-ratios.entry-rSMXHIix.mjs → token-ratios.entry-B7ZwRluK.mjs} +2 -2
- package/token-ratios.entry-bO5CkZ9D.js +1 -0
- package/token-spacing.entry-BTYazF9c.js +1 -0
- package/token-spacing.entry-_yyMlwbO.mjs +12 -0
- package/{token-typography.entry-AjIHL4M4.js → token-typography.entry-D-PPtDvs.js} +1 -1
- package/{token-typography.entry-CExckWkx.mjs → token-typography.entry-D4bxbB2m.mjs} +2 -2
- package/color-0ba8ed56-BVeDdJAE.js +0 -1
- package/color-0ba8ed56-D-UJpBQL.mjs +0 -207
- package/color-primary-palette_6.entry-_ANGnnBl.js +0 -1
- package/correct-use-of-colors.entry-B312hpv9.js +0 -1
- package/correct-use-of-colors.entry-BjxRVkfm.mjs +0 -59
- package/eds-accordion.entry-h9ApF51u.js +0 -4
- package/eds-alert.entry-C6VZ3ss6.js +0 -608
- package/eds-alert.entry-D5o-ZjCb.mjs +0 -688
- package/eds-card-desc_3.entry-D7hiMZ09.mjs +0 -87
- package/eds-card-desc_3.entry-Dxs_izUN.js +0 -1
- package/eds-card-generic.entry-DZYZP5oa.js +0 -1
- package/eds-card-project.entry-D7P4K88F.js +0 -1
- package/eds-card-tags.entry-CnHitp9l.js +0 -1
- package/eds-card-tags.entry-XboLA5-P.mjs +0 -13
- package/eds-card-tool.entry-CbreK2xg.js +0 -1
- package/eds-icon-arrow-diagonal.entry-CEffhVkn.mjs +0 -13
- package/eds-icon-arrow-diagonal.entry-abxXXnCe.js +0 -1
- package/eds-icon-arrow-right.entry-4zl098Gq.js +0 -1
- package/eds-icon-arrow-right.entry-DrA5pZ5q.mjs +0 -13
- package/eds-icon-bluesky.entry-CRey5aEK.mjs +0 -13
- package/eds-icon-chevron-down.entry-DCd5FfEN.mjs +0 -13
- package/eds-icon-chevron-left.entry-CiGlPKup.js +0 -1
- package/eds-icon-chevron-left.entry-Lmfmw6QC.mjs +0 -13
- package/eds-icon-chevron-right.entry-DMwxsQGs.js +0 -1
- package/eds-icon-chevron-up.entry-CwavCcA0.mjs +0 -13
- package/eds-icon-chevron-up.entry-D9pmuoVK.js +0 -1
- package/eds-icon-close.entry-pxvkbolY.mjs +0 -13
- package/eds-icon-copy.entry-Begn9c9I.mjs +0 -13
- package/eds-icon-eu.entry-C0ZIqXHV.js +0 -1
- package/eds-icon-eu.entry-CLI94rkv.mjs +0 -13
- package/eds-icon-facebook.entry-BIZwxPBr.js +0 -1
- package/eds-icon-facebook.entry-o2SylrAp.mjs +0 -13
- package/eds-icon-gitlab.entry-BJi35Zov.js +0 -1
- package/eds-icon-gitlab.entry-BWfZkXKF.mjs +0 -13
- package/eds-icon-linkedin.entry-Z4gD9HGr.mjs +0 -13
- package/eds-icon-loader.entry-DgIgWpYk.mjs +0 -13
- package/eds-icon-mastodon.entry-BLCaUfQY.js +0 -1
- package/eds-icon-mastodon.entry-C_2paQis.mjs +0 -13
- package/eds-icon-menu.entry-CNtaXAOo.mjs +0 -13
- package/eds-icon-menu.entry-CzF-GJXn.js +0 -1
- package/eds-icon-more.entry-4gqxzs_k.mjs +0 -13
- package/eds-icon-search.entry-D070uKfZ.mjs +0 -13
- package/eds-icon-search.entry-iLCAU3Et.js +0 -1
- package/eds-icon-success.entry-Ci0RTnP5.mjs +0 -13
- package/eds-icon-twitter.entry-D6I83zuS.mjs +0 -13
- package/eds-icon-twitter.entry-I9FRjdSE.js +0 -1
- package/eds-icon-user.entry-BI7Uw3Pp.mjs +0 -13
- package/eds-icon-user.entry-DcLB78T6.js +0 -1
- package/eds-icon-youtube.entry-CR4ml_RW.mjs +0 -13
- package/eds-icon-youtube.entry-DAke-XDg.js +0 -1
- package/eds-login.entry-DOeyfoyM.js +0 -1
- package/eds-login.entry-DmJw6ABI.mjs +0 -46
- package/eds-logo-variations.entry-o4lyGmhR.mjs +0 -22
- package/eds-matomo-notice.entry-tzuOtKT9.js +0 -1
- package/eds-modal.entry-B7Ph4m3y.js +0 -1
- package/eds-modal.entry-BW8crUoC.mjs +0 -65
- package/eds-pagination_2.entry-DoZ-NFBH.js +0 -1
- package/eds-rating.entry-J5lQt6oj.mjs +0 -40
- package/eds-rating.entry-dK5fopCq.js +0 -1
- package/eds-tabs-content.entry-CTM0EjTl.js +0 -1
- package/eds-tabs.entry-BWxSN8SV.js +0 -1
- package/eds-timeline.entry-D9KWrb_r.js +0 -1
- package/eds-tooltip.entry-CfhqHRxF.js +0 -1
- package/eds-trl.entry-COK7rgVS.mjs +0 -36
- package/eds-trl.entry-CoySvAJL.js +0 -1
- package/incorrect-use-of-colors.entry-D7xAYXu2.js +0 -1
- package/incorrect-use-of-colors.entry-DsNEjuWo.mjs +0 -42
- package/index-Dvww9rdy.js +0 -21
- package/keycloak-13893af6-NiM3zoVg.js +0 -9
- package/logo-variations-horizontal_2.entry-BWau6qh4.js +0 -7
- package/logo-variations-horizontal_2.entry-xvJ8Iiu5.mjs +0 -29
- package/logo-wrong-usage.entry-RcSb8NIe.mjs +0 -14
- package/logo-wrong-usage.entry-sU8NISwX.js +0 -1
- package/token-ratios.entry-Dfz4q4qy.js +0 -1
- package/token-spacing.entry-ByzbVlGi.js +0 -1
- package/token-spacing.entry-DvopunO1.mjs +0 -12
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as r } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { m as c } from "./menu-340ea948-BpnYX3gY.mjs";
|
|
3
|
+
const a = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "0084602c8e870b70caa66479f71bed3bd0cce94e", class: this.class, innerHTML: c });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as eds_icon_menu
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),n=require("./menu-340ea948-ZdelWVw3.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"0084602c8e870b70caa66479f71bed3bd0cce94e",class:this.class,innerHTML:n.menu})}};exports.eds_icon_menu=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r, h as c } from "./index-C-Gy1Lax.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: "dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4", class: this.class, innerHTML: e });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as eds_icon_more
|
|
13
|
+
};
|
|
@@ -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-D_kZU_4I.js"),r=require("./more-4449d549-D4HA1cRq.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"dd9df55fa03c1b27f2f931c7d07ccc69ee940ff4",class:this.class,innerHTML:r.more})}};exports.eds_icon_more=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as c, h as r } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { s as a } from "./search-fbcd79c2-rfV0PlHP.mjs";
|
|
3
|
+
const n = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
c(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "42acc730afd956c2884b0789b3ea37ccf323630b", class: this.class, innerHTML: a });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as eds_icon_search
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),s=require("./search-fbcd79c2-BMxCaeEk.js"),r=class{constructor(c){e.registerInstance(this,c),this.class=""}render(){return e.h("span",{key:"42acc730afd956c2884b0789b3ea37ccf323630b",class:this.class,innerHTML:s.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-D_kZU_4I.js"),c=require("./success-443809da-BUEhLsAD.js"),r=class{constructor(e){s.registerInstance(this,e),this.class=""}render(){return s.h("span",{key:"8b5d4cfeedf6d7e9bea48d7ba892527d484c858d",class:this.class,innerHTML:c.success})}};exports.eds_icon_success=r;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as c, h as e } from "./index-C-Gy1Lax.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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),c=require("./twitter-ac21b505-DDdHS4hB.js"),s=class{constructor(t){e.registerInstance(this,t),this.class=""}render(){return e.h("span",{key:"a06ab2e79a1ec7603244ec09649ccc2c9ea1950c",class:this.class,innerHTML:c.twitter})}};exports.eds_icon_twitter=s;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as t, h as r } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { t as c } from "./twitter-ac21b505-CGWVGWM9.mjs";
|
|
3
|
+
const i = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
t(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "a06ab2e79a1ec7603244ec09649ccc2c9ea1950c", class: this.class, innerHTML: c });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
i as eds_icon_twitter
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r, h as e } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { u as t } 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: "cb31d12146ff577195650b502f51005092404a30", class: this.class, innerHTML: t });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as eds_icon_user
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),r=require("./user-71ebdc15-BBKQbcQD.js"),t=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"cb31d12146ff577195650b502f51005092404a30",class:this.class,innerHTML:r.user})}};exports.eds_icon_user=t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as r } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { y as t } from "./youtube-efbfbdc4-BfySbfjR.mjs";
|
|
3
|
+
const c = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "4eba69bfec926b7a3490feee15b5947a8ab8a7b9", class: this.class, innerHTML: t });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
c as eds_icon_youtube
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),t=require("./youtube-efbfbdc4-BLTH1Jl9.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"4eba69bfec926b7a3490feee15b5947a8ab8a7b9",class:this.class,innerHTML:t.youtube})}};exports.eds_icon_youtube=r;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-D_kZU_4I.js"),o=require("./toastManager-d9eee791-DvR_vUPI.js"),s=class{constructor(e){n.registerInstance(this,e),this.changeEvent=n.createEvent(this,"changeEvent",7),this.handleInput=i=>{const r=i.target;this.innerVal=r.value,this.maxLength&&this.type==="textarea"&&(this.maxLengthReached=r.value.length>=this.maxLength),this.changeEvent.emit(i)},this.name=void 0,this.inputId=void 0,this.placeholder=void 0,this.disabled=!1,this.hasMessage=!1,this.error=!1,this.checked=void 0,this.type="text",this.required=!1,this.value=void 0,this.icon=void 0,this.maxLength=void 0,this.options=[],this.extraClass=void 0,this.innerVal="",this.maxLengthReached=!1}onValueChanged(e){this.innerVal=e}componentWillLoad(){this.value?this.innerVal=this.value:this.type==="select"&&this.options.length>0&&(this.innerVal=this.options[0].value)}getInputElement(){return this.el.querySelector("input")}render(){const e=!!this.icon,i=this.hasMessage||this.error?`${this.name}-error`:"";return n.h("div",{key:"e67c7566fe5a1574d6ff0fff61178b163c5881f9",class:"relative flex items-center"},this.type==="textarea"?n.h("textarea",{id:this.inputId||this.name,name:this.name,placeholder:this.placeholder,value:this.innerVal.toString(),required:this.required,disabled:this.disabled,class:`min-h-80 input input-textarea ${e?"input-with-icon":""} ${this.error?"input-error":""} ${this.extraClass}`,"aria-invalid":this.error?"true":"false","aria-describedby":i,maxlength:this.maxLength,onInput:this.handleInput,onChange:this.handleInput}):this.type==="select"?n.h("select",{id:this.inputId||this.name,name:this.name,required:this.required,disabled:this.disabled,class:`input input-select ${this.error?"input-error":""} ${this.extraClass}`,"aria-invalid":this.error?"true":"false","aria-describedby":i,onInput:this.handleInput,onChange:this.handleInput},this.options.map(r=>n.h("option",{value:r.value,selected:r.value===this.innerVal,key:r.value},r.label))):n.h("input",{id:this.inputId||this.name,name:this.name,placeholder:this.placeholder,value:this.innerVal.toString(),required:this.required,disabled:this.disabled,type:this.type,checked:["radio","checkbox"].includes(this.type)?this.checked:void 0,class:`
|
|
2
2
|
${this.extraClass||""}
|
|
3
3
|
input ${this.type==="radio"?"input-radio":this.type==="checkbox"?"input-checkbox":""}
|
|
4
4
|
${e&&this.type!=="radio"&&this.type!=="checkbox"?"input-icon pl-36":""}
|
|
5
5
|
${this.error?"input-error":""}
|
|
6
|
-
`,"aria-invalid":this.error?"true":"false","aria-describedby":i,maxlength:this.maxLength,onInput:this.handleInput,onChange:this.handleInput}),this.maxLength&&this.type==="textarea"&&n.h("span",{key:"
|
|
6
|
+
`,"aria-invalid":this.error?"true":"false","aria-describedby":i,maxlength:this.maxLength,onInput:this.handleInput,onChange:this.handleInput}),this.maxLength&&this.type==="textarea"&&n.h("span",{key:"35bc563715e65073898259d12b4ef2c467b14439",class:`input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached?"input-counter-error":""}`},this.maxLength),this.icon&&n.h("eds-icon-wrapper",{key:"54cab667a1b8b1bb906c2359cdbd2fb23171ba8b",class:`absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled,"text-lightest"}`,icon:this.icon}))}get el(){return n.getElement(this)}static get watchers(){return{value:["onValueChanged"]}}},a=`@font-face {
|
|
7
7
|
font-family: "Inter";
|
|
8
8
|
font-weight: 100 900;
|
|
9
9
|
font-display: swap;
|
|
@@ -7164,4 +7164,4 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
7164
7164
|
-webkit-appearance: none;
|
|
7165
7165
|
appearance: none; /* Ensure the thumb can be styled */
|
|
7166
7166
|
}
|
|
7167
|
-
`,c=a,d=class{constructor(e){n.registerInstance(this,e),this.name=void 0,this.inputId=void 0,this.placeholder=void 0,this.disabled=!1,this.onChange=void 0,this.onInput=void 0,this.type="text",this.required=!1,this.label=void 0,this.hint=void 0,this.icon=void 0,this.link=void 0,this.message=void 0,this.error=!1,this.checked=void 0,this.errorMessage=void 0,this.value=void 0,this.maxLength=void 0,this.options=void 0}get parsedOptions(){if(Array.isArray(this.options))return this.options;if(typeof this.options=="string")try{return JSON.parse(this.options)}catch{return console.warn("Invalid options format"),[]}return[]}render(){const e={name:this.name,id:this.inputId,placeholder:this.placeholder,disabled:this.disabled,onChange:this.onChange,onInput:this.onInput,type:this.type,required:this.required,value:this.value,error:this.error,icon:this.icon,checked:this.checked};return n.h("div",{key:"
|
|
7167
|
+
`,c=a,d=class{constructor(e){n.registerInstance(this,e),this.name=void 0,this.inputId=void 0,this.placeholder=void 0,this.disabled=!1,this.onChange=void 0,this.onInput=void 0,this.type="text",this.required=!1,this.label=void 0,this.hint=void 0,this.icon=void 0,this.link=void 0,this.message=void 0,this.error=!1,this.checked=void 0,this.errorMessage=void 0,this.value=void 0,this.maxLength=void 0,this.options=void 0}get parsedOptions(){if(Array.isArray(this.options))return this.options;if(typeof this.options=="string")try{return JSON.parse(this.options)}catch{return console.warn("Invalid options format"),[]}return[]}render(){const e={name:this.name,id:this.inputId,placeholder:this.placeholder,disabled:this.disabled,onChange:this.onChange,onInput:this.onInput,type:this.type,required:this.required,value:this.value,error:this.error,icon:this.icon,checked:this.checked};return n.h("div",{key:"6c2e228bc3940212ad4df6ed99bdd69b99342afb",class:"space-y-8"},this.type==="checkbox"||this.type==="radio"?this.parsedOptions.length>0?n.h("fieldset",{class:"space-y-4 mt-8"},n.h("div",{class:"flex justify-between"},this.label&&n.h("eds-input-label",{name:this.inputId||this.name,label:this.label,required:this.required}),this.hint&&n.h("p",{id:`${this.name}-hint`,class:"f-ui-05 text-lighter mt-8 ml-8"},this.hint)),this.parsedOptions.map(i=>n.h("div",{class:"flex items-center gap-x-2",key:i.value},n.h("eds-input",Object.assign({},e,{value:i.value})),n.h("eds-input-label",{name:`${this.name}-${i.value}`,label:i.label})))):n.h("div",{class:"flex items-center gap-x-8"},n.h("eds-input",Object.assign({},e)),this.label&&n.h("eds-input-label",{name:this.inputId||this.name,label:this.label,disabled:this.disabled,required:this.required})):n.h("div",null,n.h("div",{class:"flex justify-between"},this.label&&n.h("eds-input-label",{name:this.inputId||this.name,label:this.label,disabled:this.disabled,required:this.required}),this.hint&&n.h("p",{id:`${this.name}-hint`,class:"f-ui-05 text-lighter mt-8 ml-8"},this.hint)),this.type==="select"?n.h("eds-input-select",Object.assign({},e,{options:this.parsedOptions})):this.type==="file"?n.h("input",{type:"file",id:this.inputId||this.name,name:this.name,onChange:this.onChange,disabled:this.disabled,required:this.required}):this.type==="search"?n.h("eds-input-search",{name:"search-box"}):this.type==="range"?(()=>{var i,r,l;const t=this.parsedOptions;return n.h("eds-input-range",{min:(i=t[0])===null||i===void 0?void 0:i.value,max:(r=t[1])===null||r===void 0?void 0:r.value,step:(l=t[2])===null||l===void 0?void 0:l.value,name:"range-slider"})})():n.h("eds-input",Object.assign({},e))),n.h("eds-input-footer",{key:"16f2dd9061fc779b081c973e25d1bf9fb26fcf8b",id:`${this.name}-footer`,name:this.name,message:this.message,"error-message":this.errorMessage,error:this.error,link:this.link}))}};d.style=c;const g=class{constructor(e){n.registerInstance(this,e),this.name=void 0,this.errorMessage=void 0,this.message=void 0,this.error=!1,this.link=void 0}render(){return n.h("div",{key:"c088f6c9bf4c3ca1efce1a1ff41ece8d4f8a6756",class:"space-y-4"},this.error&&this.errorMessage&&n.h("div",{key:"7404a329f2b5da7f9444f986178c5e4dbbe838ad",id:`error_${this.name}`,class:"text-error flex items-center"},n.h("eds-icon-wrapper",{key:"8f9d83b1d8dda824cac17d9c2ce3cb6cc5a58945",icon:"warning"}),n.h("p",{key:"f223076bc18088e264b4888d18bb9673f803d875",class:"f-ui-04 ml-4",innerHTML:this.errorMessage})),this.message&&n.h("p",{key:"40bdbc35ba4985802177d7f9b2c44f893e4cb40c",id:`desc_${this.name}`,class:"f-ui-05 text-lighter",innerHTML:this.message}),this.link&&n.h("a",{key:"e6297a49f63ce2ab14bac8df0186fb42fab4416d",href:this.link.url,class:"f-ui-05 effect-color hover:text-lighter underline underline-offset-4"},this.link.label))}},x=class{constructor(e){n.registerInstance(this,e),this.label=void 0,this.name=void 0,this.required=!1,this.disabled=!1}render(){return n.h("label",{key:"38be7206acfad300657a99218c3138e91069d710",htmlFor:this.name,class:`input-label ${this.disabled?"text-lighter":""}`},this.label,this.required&&n.h("span",{key:"1e80610f66d51a1c46918086bb5b5153c0e35a3c"},n.h("span",{key:"83d15d62c0539f1847746b4a2b9c9971b4852da8","aria-hidden":"true"},"*"),n.h("span",{key:"3f45f5a436c41cf7e55570a2abe8844c8daa7525",class:"sr-only"},"required")))}},h=class{constructor(e){n.registerInstance(this,e),this.onInput=i=>{const r=i.target;this.sliderVal=parseInt(r.value,10)},this.name=void 0,this.inputId="range",this.disabled=!1,this.required=!1,this.min=0,this.max=100,this.step=1,this.sliderVal=this.max%2===0?this.max/2:Math.ceil(this.max/2)}componentDidLoad(){this.inputElement=this.el.querySelector("input")}async getInputElement(){return this.inputElement}render(){return n.h("div",{key:"6a70b857cfbeb152e6f099b6dfc91cc9fec5bf11",class:"relative flex flex-col items-start space-y-2"},n.h("input",{key:"da4c0158b1d33804404f4373b3c55c53b5b2f53b",id:this.inputId||this.name,name:this.name,min:this.min,max:this.max,step:this.step,value:this.sliderVal,required:this.required,disabled:this.disabled,type:"range",class:"w-full py-6 input",onInput:this.onInput}),n.h("p",{key:"66bc2e755e4eb38015e32441599a9f9bade7c679",id:`desc_${this.name}`,class:"block f-ui-05 text-lighter"},"Current value: ",this.sliderVal))}get el(){return n.getElement(this)}},b=class{constructor(e){n.registerInstance(this,e),this.onInput=i=>{console.log("on input:",i)},this.onChange=i=>{console.log("on change:",i.target.value)},this.name=void 0,this.inputId="search",this.placeholder="Search...",this.value=void 0,this.disabled=!1,this.required=!1}componentDidLoad(){this.inputElement=this.el.querySelector("input")}async getInputElement(){return this.inputElement}render(){return n.h("div",{key:"df7ee546beed6eedfba5a19e0fdf349d9aaece90",class:"relative flex items-center"},n.h("eds-icon-wrapper",{key:"4663fdd0a9ba4eace47dc90f9c7f50fc2e6f7925",icon:"search",class:"absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest"}),n.h("input",{key:"e3e72f3dea068cbab3d398de36dd09e4a7f1ce93",id:this.inputId||this.name,name:this.name,placeholder:this.placeholder,value:this.value||"",required:this.required,disabled:this.disabled,type:"search",class:"search-input w-full py-6 input input-icon pl-36",onInput:this.onInput,onChange:this.onChange}))}get el(){return n.getElement(this)}},f=class{constructor(e){n.registerInstance(this,e),this.changeEvent=n.createEvent(this,"changeEvent",7),this.handleChange=i=>{const r=i.target;this.changeEvent.emit(r.value)},this.inputId=void 0,this.name=void 0,this.placeholder=void 0,this.disabled=!1,this.hasMessage=!1,this.error=!1,this.required=!1,this.options=[],this.labelKey="label",this.valueKey="value",this.value=void 0,this.dynamicOptions=[],this.loading=!1,this.dynamicValueKey="value",this.dynamicLabelKey="label",this.hasFetched=!1}componentWillLoad(){this.loadOptions()}async loadOptions(){if(this.options&&this.options.length>0&&this.options[0].endpoint){if(this.hasFetched)return;const e=this.options[0],i=e.endpoint;this.dynamicValueKey=e.value||"value",this.dynamicLabelKey=e.label||"label",this.loading=!0;try{const r=await fetch(i);r.ok||o.toast.show(`<eds-input-select> HTTP error! Status: ${r.status}`,"error");const l=await r.json();this.dynamicOptions=l,this.hasFetched=!0}catch(r){o.toast.show(`<eds-input-select> Error fetching dynamic options ${r}`,"error")}finally{this.loading=!1}}else this.dynamicOptions=this.options,this.dynamicValueKey=this.valueKey,this.dynamicLabelKey=this.labelKey}getValueByPath(e,i){return i.split(".").reduce((r,l)=>r&&r[l],e)}render(){return n.h("div",{key:"c1469a270fa5e775ac4d17f1c7e259d02477d7a2",class:"relative"},n.h("select",{key:"3aab6ec60d386e51ce27c1cfc26059132d96957f",id:this.inputId||this.name,name:this.name,class:`input invalid:text-lightest pr-32 ${this.error?"input-error":""}`,"aria-invalid":this.error?"true":"false","aria-describedby":this.hasMessage||this.error?`${this.name}-error`:"",disabled:this.disabled||this.loading,required:this.required,onChange:this.handleChange},n.h("option",{key:"ee3aa20ed1b99bddd7bafa3aac43f3c06db07b8f",value:"",disabled:!0,hidden:!0},this.loading?"Loading options...":`Please select ${this.name}`),this.dynamicOptions.map((e,i)=>n.h("option",{key:i,value:this.getValueByPath(e,this.dynamicValueKey)},this.getValueByPath(e,this.dynamicLabelKey)))),n.h("span",{key:"7e70051ac49efd053f00521b51ad19e88cf5cdb7",class:`bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled||this.loading?"text-lightest bg-transparent":""}`},n.h("eds-icon-wrapper",{key:"2ef2d0d744216a1f931ac0bfe1058f54c9af4402",class:"w-20 h-20",icon:"chevron-right"})))}static get watchers(){return{options:["loadOptions"]}}};exports.eds_input=s;exports.eds_input_field=d;exports.eds_input_footer=g;exports.eds_input_label=x;exports.eds_input_range=h;exports.eds_input_search=b;exports.eds_input_select=f;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as t, c as a, h as n, g as d } from "./index-C-Gy1Lax.mjs";
|
|
2
2
|
import { t as s } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
3
3
|
const f = class {
|
|
4
4
|
constructor(e) {
|
|
5
|
-
|
|
5
|
+
t(this, e), this.changeEvent = a(this, "changeEvent", 7), this.handleInput = (i) => {
|
|
6
6
|
const r = i.target;
|
|
7
7
|
this.innerVal = r.value, this.maxLength && this.type === "textarea" && (this.maxLengthReached = r.value.length >= this.maxLength), this.changeEvent.emit(i);
|
|
8
8
|
}, this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.checked = void 0, this.type = "text", this.required = !1, this.value = void 0, this.icon = void 0, this.maxLength = void 0, this.options = [], this.extraClass = void 0, this.innerVal = "", this.maxLengthReached = !1;
|
|
@@ -18,12 +18,12 @@ const f = class {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const e = !!this.icon, i = this.hasMessage || this.error ? `${this.name}-error` : "";
|
|
21
|
-
return n("div", { key: "
|
|
21
|
+
return n("div", { key: "e67c7566fe5a1574d6ff0fff61178b163c5881f9", class: "relative flex items-center" }, this.type === "textarea" ? n("textarea", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, class: `min-h-80 input input-textarea ${e ? "input-with-icon" : ""} ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": i, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }) : this.type === "select" ? n("select", { id: this.inputId || this.name, name: this.name, required: this.required, disabled: this.disabled, class: `input input-select ${this.error ? "input-error" : ""} ${this.extraClass}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": i, onInput: this.handleInput, onChange: this.handleInput }, this.options.map((r) => n("option", { value: r.value, selected: r.value === this.innerVal, key: r.value }, r.label))) : n("input", { id: this.inputId || this.name, name: this.name, placeholder: this.placeholder, value: this.innerVal.toString(), required: this.required, disabled: this.disabled, type: this.type, checked: ["radio", "checkbox"].includes(this.type) ? this.checked : void 0, class: `
|
|
22
22
|
${this.extraClass || ""}
|
|
23
23
|
input ${this.type === "radio" ? "input-radio" : this.type === "checkbox" ? "input-checkbox" : ""}
|
|
24
24
|
${e && this.type !== "radio" && this.type !== "checkbox" ? "input-icon pl-36" : ""}
|
|
25
25
|
${this.error ? "input-error" : ""}
|
|
26
|
-
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": i, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }), this.maxLength && this.type === "textarea" && n("span", { key: "
|
|
26
|
+
`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": i, maxlength: this.maxLength, onInput: this.handleInput, onChange: this.handleInput }), this.maxLength && this.type === "textarea" && n("span", { key: "35bc563715e65073898259d12b4ef2c467b14439", class: `input-counter f-ui-05 absolute bottom-8 right-8 ${this.maxLengthReached ? "input-counter-error" : ""}` }, this.maxLength), this.icon && n("eds-icon-wrapper", { key: "54cab667a1b8b1bb906c2359cdbd2fb23171ba8b", class: `absolute top-1/2 left-[4px] -translate-y-1/2 ${this.disabled, "text-lightest"}`, icon: this.icon }));
|
|
27
27
|
}
|
|
28
28
|
get el() {
|
|
29
29
|
return d(this);
|
|
@@ -7196,7 +7196,7 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
7196
7196
|
}
|
|
7197
7197
|
`, g = c, x = class {
|
|
7198
7198
|
constructor(e) {
|
|
7199
|
-
|
|
7199
|
+
t(this, e), this.name = void 0, this.inputId = void 0, this.placeholder = void 0, this.disabled = !1, this.onChange = void 0, this.onInput = void 0, this.type = "text", this.required = !1, this.label = void 0, this.hint = void 0, this.icon = void 0, this.link = void 0, this.message = void 0, this.error = !1, this.checked = void 0, this.errorMessage = void 0, this.value = void 0, this.maxLength = void 0, this.options = void 0;
|
|
7200
7200
|
}
|
|
7201
7201
|
get parsedOptions() {
|
|
7202
7202
|
if (Array.isArray(this.options))
|
|
@@ -7224,31 +7224,31 @@ input[type="range"]::-webkit-slider-thumb {
|
|
|
7224
7224
|
icon: this.icon,
|
|
7225
7225
|
checked: this.checked
|
|
7226
7226
|
};
|
|
7227
|
-
return n("div", { key: "
|
|
7228
|
-
var i, r,
|
|
7227
|
+
return n("div", { key: "6c2e228bc3940212ad4df6ed99bdd69b99342afb", class: "space-y-8" }, this.type === "checkbox" || this.type === "radio" ? this.parsedOptions.length > 0 ? n("fieldset", { class: "space-y-4 mt-8" }, n("div", { class: "flex justify-between" }, this.label && n("eds-input-label", { name: this.inputId || this.name, label: this.label, required: this.required }), this.hint && n("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.parsedOptions.map((i) => n("div", { class: "flex items-center gap-x-2", key: i.value }, n("eds-input", Object.assign({}, e, { value: i.value })), n("eds-input-label", { name: `${this.name}-${i.value}`, label: i.label })))) : n("div", { class: "flex items-center gap-x-8" }, n("eds-input", Object.assign({}, e)), this.label && n("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required })) : n("div", null, n("div", { class: "flex justify-between" }, this.label && n("eds-input-label", { name: this.inputId || this.name, label: this.label, disabled: this.disabled, required: this.required }), this.hint && n("p", { id: `${this.name}-hint`, class: "f-ui-05 text-lighter mt-8 ml-8" }, this.hint)), this.type === "select" ? n("eds-input-select", Object.assign({}, e, { options: this.parsedOptions })) : this.type === "file" ? n("input", { type: "file", id: this.inputId || this.name, name: this.name, onChange: this.onChange, disabled: this.disabled, required: this.required }) : this.type === "search" ? n("eds-input-search", { name: "search-box" }) : this.type === "range" ? (() => {
|
|
7228
|
+
var i, r, l;
|
|
7229
7229
|
const o = this.parsedOptions;
|
|
7230
|
-
return n("eds-input-range", { min: (i = o[0]) === null || i === void 0 ? void 0 : i.value, max: (r = o[1]) === null || r === void 0 ? void 0 : r.value, step: (
|
|
7231
|
-
})() : n("eds-input", Object.assign({}, e))), n("eds-input-footer", { key: "
|
|
7230
|
+
return n("eds-input-range", { min: (i = o[0]) === null || i === void 0 ? void 0 : i.value, max: (r = o[1]) === null || r === void 0 ? void 0 : r.value, step: (l = o[2]) === null || l === void 0 ? void 0 : l.value, name: "range-slider" });
|
|
7231
|
+
})() : n("eds-input", Object.assign({}, e))), n("eds-input-footer", { key: "16f2dd9061fc779b081c973e25d1bf9fb26fcf8b", id: `${this.name}-footer`, name: this.name, message: this.message, "error-message": this.errorMessage, error: this.error, link: this.link }));
|
|
7232
7232
|
}
|
|
7233
7233
|
};
|
|
7234
7234
|
x.style = g;
|
|
7235
7235
|
const m = class {
|
|
7236
7236
|
constructor(e) {
|
|
7237
|
-
|
|
7237
|
+
t(this, e), this.name = void 0, this.errorMessage = void 0, this.message = void 0, this.error = !1, this.link = void 0;
|
|
7238
7238
|
}
|
|
7239
7239
|
render() {
|
|
7240
|
-
return n("div", { key: "
|
|
7240
|
+
return n("div", { key: "c088f6c9bf4c3ca1efce1a1ff41ece8d4f8a6756", class: "space-y-4" }, this.error && this.errorMessage && n("div", { key: "7404a329f2b5da7f9444f986178c5e4dbbe838ad", id: `error_${this.name}`, class: "text-error flex items-center" }, n("eds-icon-wrapper", { key: "8f9d83b1d8dda824cac17d9c2ce3cb6cc5a58945", icon: "warning" }), n("p", { key: "f223076bc18088e264b4888d18bb9673f803d875", class: "f-ui-04 ml-4", innerHTML: this.errorMessage })), this.message && n("p", { key: "40bdbc35ba4985802177d7f9b2c44f893e4cb40c", id: `desc_${this.name}`, class: "f-ui-05 text-lighter", innerHTML: this.message }), this.link && n("a", { key: "e6297a49f63ce2ab14bac8df0186fb42fab4416d", href: this.link.url, class: "f-ui-05 effect-color hover:text-lighter underline underline-offset-4" }, this.link.label));
|
|
7241
7241
|
}
|
|
7242
7242
|
}, p = class {
|
|
7243
7243
|
constructor(e) {
|
|
7244
|
-
|
|
7244
|
+
t(this, e), this.label = void 0, this.name = void 0, this.required = !1, this.disabled = !1;
|
|
7245
7245
|
}
|
|
7246
7246
|
render() {
|
|
7247
|
-
return n("label", { key: "
|
|
7247
|
+
return n("label", { key: "38be7206acfad300657a99218c3138e91069d710", htmlFor: this.name, class: `input-label ${this.disabled ? "text-lighter" : ""}` }, this.label, this.required && n("span", { key: "1e80610f66d51a1c46918086bb5b5153c0e35a3c" }, n("span", { key: "83d15d62c0539f1847746b4a2b9c9971b4852da8", "aria-hidden": "true" }, "*"), n("span", { key: "3f45f5a436c41cf7e55570a2abe8844c8daa7525", class: "sr-only" }, "required")));
|
|
7248
7248
|
}
|
|
7249
7249
|
}, u = class {
|
|
7250
7250
|
constructor(e) {
|
|
7251
|
-
|
|
7251
|
+
t(this, e), this.onInput = (i) => {
|
|
7252
7252
|
const r = i.target;
|
|
7253
7253
|
this.sliderVal = parseInt(r.value, 10);
|
|
7254
7254
|
}, this.name = void 0, this.inputId = "range", this.disabled = !1, this.required = !1, this.min = 0, this.max = 100, this.step = 1, this.sliderVal = this.max % 2 === 0 ? this.max / 2 : Math.ceil(this.max / 2);
|
|
@@ -7260,8 +7260,8 @@ const m = class {
|
|
|
7260
7260
|
return this.inputElement;
|
|
7261
7261
|
}
|
|
7262
7262
|
render() {
|
|
7263
|
-
return n("div", { key: "
|
|
7264
|
-
key: "
|
|
7263
|
+
return n("div", { key: "6a70b857cfbeb152e6f099b6dfc91cc9fec5bf11", class: "relative flex flex-col items-start space-y-2" }, n("input", {
|
|
7264
|
+
key: "da4c0158b1d33804404f4373b3c55c53b5b2f53b",
|
|
7265
7265
|
id: this.inputId || this.name,
|
|
7266
7266
|
name: this.name,
|
|
7267
7267
|
min: this.min,
|
|
@@ -7274,14 +7274,14 @@ const m = class {
|
|
|
7274
7274
|
class: "w-full py-6 input",
|
|
7275
7275
|
//aria-describedby={describedBy}
|
|
7276
7276
|
onInput: this.onInput
|
|
7277
|
-
}), n("p", { key: "
|
|
7277
|
+
}), n("p", { key: "66bc2e755e4eb38015e32441599a9f9bade7c679", id: `desc_${this.name}`, class: "block f-ui-05 text-lighter" }, "Current value: ", this.sliderVal));
|
|
7278
7278
|
}
|
|
7279
7279
|
get el() {
|
|
7280
7280
|
return d(this);
|
|
7281
7281
|
}
|
|
7282
7282
|
}, y = class {
|
|
7283
7283
|
constructor(e) {
|
|
7284
|
-
|
|
7284
|
+
t(this, e), this.onInput = (i) => {
|
|
7285
7285
|
console.log("on input:", i);
|
|
7286
7286
|
}, this.onChange = (i) => {
|
|
7287
7287
|
console.log("on change:", i.target.value);
|
|
@@ -7294,8 +7294,8 @@ const m = class {
|
|
|
7294
7294
|
return this.inputElement;
|
|
7295
7295
|
}
|
|
7296
7296
|
render() {
|
|
7297
|
-
return n("div", { key: "
|
|
7298
|
-
key: "
|
|
7297
|
+
return n("div", { key: "df7ee546beed6eedfba5a19e0fdf349d9aaece90", class: "relative flex items-center" }, n("eds-icon-wrapper", { key: "4663fdd0a9ba4eace47dc90f9c7f50fc2e6f7925", icon: "search", class: "absolute top-1/2 left-[4px] -translate-y-1/2 text-lightest" }), n("input", {
|
|
7298
|
+
key: "e3e72f3dea068cbab3d398de36dd09e4a7f1ce93",
|
|
7299
7299
|
id: this.inputId || this.name,
|
|
7300
7300
|
name: this.name,
|
|
7301
7301
|
placeholder: this.placeholder,
|
|
@@ -7314,10 +7314,10 @@ const m = class {
|
|
|
7314
7314
|
}
|
|
7315
7315
|
}, v = class {
|
|
7316
7316
|
constructor(e) {
|
|
7317
|
-
|
|
7317
|
+
t(this, e), this.changeEvent = a(this, "changeEvent", 7), this.handleChange = (i) => {
|
|
7318
7318
|
const r = i.target;
|
|
7319
7319
|
this.changeEvent.emit(r.value);
|
|
7320
|
-
}, this.inputId = void 0, this.name = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.required = !1, this.options = [], this.labelKey = "label", this.valueKey = "value", this.value = void 0, this.dynamicOptions = [], this.loading = !1, this.dynamicValueKey = "value", this.dynamicLabelKey = "label";
|
|
7320
|
+
}, this.inputId = void 0, this.name = void 0, this.placeholder = void 0, this.disabled = !1, this.hasMessage = !1, this.error = !1, this.required = !1, this.options = [], this.labelKey = "label", this.valueKey = "value", this.value = void 0, this.dynamicOptions = [], this.loading = !1, this.dynamicValueKey = "value", this.dynamicLabelKey = "label", this.hasFetched = !1;
|
|
7321
7321
|
}
|
|
7322
7322
|
componentWillLoad() {
|
|
7323
7323
|
this.loadOptions();
|
|
@@ -7333,13 +7333,15 @@ const m = class {
|
|
|
7333
7333
|
*/
|
|
7334
7334
|
async loadOptions() {
|
|
7335
7335
|
if (this.options && this.options.length > 0 && this.options[0].endpoint) {
|
|
7336
|
+
if (this.hasFetched)
|
|
7337
|
+
return;
|
|
7336
7338
|
const e = this.options[0], i = e.endpoint;
|
|
7337
7339
|
this.dynamicValueKey = e.value || "value", this.dynamicLabelKey = e.label || "label", this.loading = !0;
|
|
7338
7340
|
try {
|
|
7339
7341
|
const r = await fetch(i);
|
|
7340
7342
|
r.ok || s.show(`<eds-input-select> HTTP error! Status: ${r.status}`, "error");
|
|
7341
|
-
const
|
|
7342
|
-
this.dynamicOptions =
|
|
7343
|
+
const l = await r.json();
|
|
7344
|
+
this.dynamicOptions = l, this.hasFetched = !0;
|
|
7343
7345
|
} catch (r) {
|
|
7344
7346
|
s.show(`<eds-input-select> Error fetching dynamic options ${r}`, "error");
|
|
7345
7347
|
} finally {
|
|
@@ -7348,8 +7350,11 @@ const m = class {
|
|
|
7348
7350
|
} else
|
|
7349
7351
|
this.dynamicOptions = this.options, this.dynamicValueKey = this.valueKey, this.dynamicLabelKey = this.labelKey;
|
|
7350
7352
|
}
|
|
7353
|
+
getValueByPath(e, i) {
|
|
7354
|
+
return i.split(".").reduce((r, l) => r && r[l], e);
|
|
7355
|
+
}
|
|
7351
7356
|
render() {
|
|
7352
|
-
return n("div", { key: "
|
|
7357
|
+
return n("div", { key: "c1469a270fa5e775ac4d17f1c7e259d02477d7a2", class: "relative" }, n("select", { key: "3aab6ec60d386e51ce27c1cfc26059132d96957f", id: this.inputId || this.name, name: this.name, class: `input invalid:text-lightest pr-32 ${this.error ? "input-error" : ""}`, "aria-invalid": this.error ? "true" : "false", "aria-describedby": this.hasMessage || this.error ? `${this.name}-error` : "", disabled: this.disabled || this.loading, required: this.required, onChange: this.handleChange }, n("option", { key: "ee3aa20ed1b99bddd7bafa3aac43f3c06db07b8f", value: "", disabled: !0, hidden: !0 }, this.loading ? "Loading options..." : `Please select ${this.name}`), this.dynamicOptions.map((e, i) => n("option", { key: i, value: this.getValueByPath(e, this.dynamicValueKey) }, this.getValueByPath(e, this.dynamicLabelKey)))), n("span", { key: "7e70051ac49efd053f00521b51ad19e88cf5cdb7", class: `bg-dark rounded-xs absolute top-1/2 right-[6px] flex h-28 w-28 -translate-y-1/2 items-center justify-center ${this.disabled || this.loading ? "text-lightest bg-transparent" : ""}` }, n("eds-icon-wrapper", { key: "2ef2d0d744216a1f931ac0bfe1058f54c9af4402", class: "w-20 h-20", icon: "chevron-right" })));
|
|
7353
7358
|
}
|
|
7354
7359
|
static get watchers() {
|
|
7355
7360
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),t=require("./keycloak-d502ec16-m7LwS-Gh.js"),a=require("./toastManager-d9eee791-DvR_vUPI.js"),r=class{constructor(i){e.registerInstance(this,i),this.authStatusChanged=e.createEvent(this,"authStatusChanged",7),this.handleLogin=async()=>{if(!this.authenticated)try{await t.login(),a.toast.show("You are authenticated","success")}catch(s){a.toast.show(s.message,"error")}},this.handleLogout=async()=>{try{await t.logout()}catch(s){a.toast.show(s.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null}async componentWillLoad(){if(!this.keycloakUrl||!this.keycloakRealm||!this.keycloakClientId){console.error("Keycloak configuration props are missing.");return}await this.initAuth()}async initAuth(){try{await t.initKeycloak({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0),t.isAuthenticated()&&(this.user=t.getUser(),this.authenticated=!0,this.authStatusChanged.emit({authenticated:this.authenticated,user:this.user}))}catch(i){a.toast.show(i.message,"error")}}render(){return e.h("div",{key:"cd30a135920ae77959330a43a8544bb9c231986e",class:"block"},!this.authenticated&&e.h("eds-button",{key:"98fa63c46b063a67c215ff9160c6dfbfee2265f7",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}};exports.eds_login=r;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { r as i, c as r, h as s } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
import { l as n, a as h, i as o, b as c, g as l } from "./keycloak-d502ec16-Ce0iGqyk.mjs";
|
|
3
|
+
import { t } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
4
|
+
const g = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
i(this, e), this.authStatusChanged = r(this, "authStatusChanged", 7), this.handleLogin = async () => {
|
|
7
|
+
if (!this.authenticated)
|
|
8
|
+
try {
|
|
9
|
+
await n(), t.show("You are authenticated", "success");
|
|
10
|
+
} catch (a) {
|
|
11
|
+
t.show(a.message, "error");
|
|
12
|
+
}
|
|
13
|
+
}, this.handleLogout = async () => {
|
|
14
|
+
try {
|
|
15
|
+
await h();
|
|
16
|
+
} catch (a) {
|
|
17
|
+
t.show(a.message, "error");
|
|
18
|
+
}
|
|
19
|
+
this.authenticated = !1, this.user = null;
|
|
20
|
+
}, this.keycloakUrl = void 0, this.keycloakRealm = void 0, this.keycloakClientId = void 0, this.authenticated = !1, this.user = null;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lifecycle method that runs when the component is about to load.
|
|
24
|
+
* It initializes authentication by calling the `initAuth` method.
|
|
25
|
+
*/
|
|
26
|
+
async componentWillLoad() {
|
|
27
|
+
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
28
|
+
console.error("Keycloak configuration props are missing.");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
await this.initAuth();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the Keycloak authentication by configuring Keycloak with the provided props.
|
|
35
|
+
* Sets the `authenticated` state and `user` data if the user is authenticated.
|
|
36
|
+
* Emits `authStatusChanged` event with the authentication status.
|
|
37
|
+
*/
|
|
38
|
+
async initAuth() {
|
|
39
|
+
try {
|
|
40
|
+
await o({
|
|
41
|
+
url: this.keycloakUrl,
|
|
42
|
+
realm: this.keycloakRealm,
|
|
43
|
+
clientId: this.keycloakClientId
|
|
44
|
+
}, !0), c() && (this.user = l(), this.authenticated = !0, this.authStatusChanged.emit({
|
|
45
|
+
authenticated: this.authenticated,
|
|
46
|
+
user: this.user
|
|
47
|
+
}));
|
|
48
|
+
} catch (e) {
|
|
49
|
+
t.show(e.message, "error");
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return s("div", { key: "cd30a135920ae77959330a43a8544bb9c231986e", class: "block" }, !this.authenticated && s("eds-button", { key: "98fa63c46b063a67c215ff9160c6dfbfee2265f7", label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }));
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
g as eds_login
|
|
58
|
+
};
|
|
@@ -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-D_kZU_4I.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:"0494cbb3e7b4902e91a0c78c691bc3405b9f11cc",class:"container"},this.renderContent())}};exports.eds_logo_variations=n;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as e, h as t } from "./index-C-Gy1Lax.mjs";
|
|
2
|
+
const a = class {
|
|
3
|
+
constructor(n) {
|
|
4
|
+
e(this, n), this.tabIndex = void 0;
|
|
5
|
+
}
|
|
6
|
+
renderContent() {
|
|
7
|
+
switch (this.tabIndex) {
|
|
8
|
+
case 0:
|
|
9
|
+
return t("logo-variations-horizontal", null);
|
|
10
|
+
case 1:
|
|
11
|
+
return t("logo-variations-vertical", null);
|
|
12
|
+
default:
|
|
13
|
+
return t("p", null, "Content not available.");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return t("div", { key: "0494cbb3e7b4902e91a0c78c691bc3405b9f11cc", class: "container" }, this.renderContent());
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
a as eds_logo_variations
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D_kZU_4I.js"),a=require("./toastManager-d9eee791-DvR_vUPI.js"),n=require("./analytics-1cde8e4a-B_MD-9qW.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-C-Gy1Lax.mjs";
|
|
2
2
|
import { t as a } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
3
|
-
import { m as i } from "./
|
|
3
|
+
import { m as i } from "./analytics-1cde8e4a-BDRcCMlV.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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-D_kZU_4I.js"),a=require("./analytics-1cde8e4a-B_MD-9qW.js"),i=".block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.fixed{position:fixed}.inset-0{inset:0rem}.z-10{z-index:10}.z-50{z-index:50}.max-w-full{max-width:100%}.absolute{position:absolute}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-20{padding-top:1.25rem;padding-bottom:1.25rem}.bg-inverse{background-color:var(--white)}.bg-dark{background-color:var(--grey-300)}.rounded-lg{border-radius:16px}.shadow-lg{--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.p-6{padding:0.375rem}.p-8{padding:0.5rem}.left-1\\/2{left:50%}.left-20{left:1.25rem}.right-20{right:1.25rem}.top-1\\/2{top:50%}.top-20{top:1.25rem}.bottom-20{bottom:1.25rem}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.border-b-2{border-bottom-width:2px}.border-softer{border-color:rgba(0, 0, 0, .1)}.pb-8{padding-bottom:0.5rem}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.ml-8{margin-left:0.5rem}.pt-8{padding-top:0.5rem}.bg-opacity-90{opacity:0.9}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4}",o=i,r=class{constructor(e){t.registerInstance(this,e),this.isOpen=!1,this.title="",this.truncate=!0,this.truncateLines="1",this.position="middle"}getTruncateClass(){return this.truncate&&this.truncateLines?`line-clamp-${this.truncateLines}`:""}getModalPositionClasses(){switch(this.position){case"top":return"left-1/2 top-20 -translate-x-1/2";case"bottom":return"left-1/2 bottom-20 -translate-x-1/2";case"left":return"left-20 top-1/2 -translate-y-1/2";case"right":return"right-20 top-1/2 -translate-y-1/2";case"middle":default:return"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"}}async open(){var e;this.isOpen=!0,a.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((e=this.title)===null||e===void 0?void 0:e.toLowerCase())||"",action:"opened"})}async close(){var e;this.isOpen=!1,a.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((e=this.title)===null||e===void 0?void 0:e.toLowerCase())||"",action:"closed"})}async toggle(){this.isOpen=!this.isOpen}handleKeyDown(e){this.isOpen&&e.key==="Escape"&&this.close()}render(){const e=`modal-title-${this.el.tagName.toLowerCase()}`;return t.h("div",{key:"cd976fb0cd0c0663279dcd4dbd5823e26b6c32f7",class:`${this.isOpen?"block":"hidden"} fixed inset-0 z-50 flex`,role:"dialog","aria-modal":"true","aria-labelledby":e},this.isOpen&&t.h("div",{key:"40a2febed5d0ec15d5370183c97cfd05abd72007",class:"fixed inset-0 bg-dark bg-opacity-90",onClick:()=>this.close()}),t.h("div",{key:"50f2c23d80a2007aca4d0a8911816141e43b71ee",class:`max-w-full absolute px-20 py-20 bg-inverse rounded-lg shadow-lg z-10 ${this.getModalPositionClasses()} grow justify-center`},t.h("div",{key:"e1cba5879bc488a99b896c48c8a780336b2195e7",class:"flex justify-between items-center border-b-2 border-softer pb-8"},t.h("span",{key:"8f018e3d2890346d23e7dcb115676051048bcacb",id:e,class:`f-heading-04 text-lighter ${this.getTruncateClass()}`},this.title),t.h("eds-button",{key:"4ae4013dd45573648817ac95ee4370ed615aa6a0",intent:"tertiary",icon:"close","aria-label":"Close modal",onClick:()=>this.close(),"extra-class":"ml-8"})),t.h("div",{key:"ac4e3d8f273d04ad02e0123c23b36b89bfc89db2",class:"pt-8"},t.h("slot",{key:"60917e9f750bfd7948e580acc817cffe6424608a"}))))}get el(){return t.getElement(this)}};r.style=o;exports.eds_modal=r;
|