@ebrains/vue 0.5.0-alpha.0 → 0.6.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 → analytics-44b1416b-3vYuu4Xs.mjs} +10 -6
- package/analytics-44b1416b-ol77SdQE.js +1 -0
- package/{color-primary-palette_6.entry-CgeStD0V.mjs → color-primary-palette_6.entry-BJGrNiKE.mjs} +1 -1
- package/{color-primary-palette_6.entry-c_K7930i.js → color-primary-palette_6.entry-CYSEDId9.js} +1 -1
- package/{correct-use-of-colors.entry-DpmXW_CD.js → correct-use-of-colors.entry-B36yaMb6.js} +1 -1
- package/{correct-use-of-colors.entry-De5Tcxdm.mjs → correct-use-of-colors.entry-C2K5ii07.mjs} +1 -1
- package/eds-accordion_13.entry-BwXBZQ7p.mjs +8044 -0
- package/eds-accordion_13.entry-DuX3jvBd.js +7375 -0
- package/eds-alert.entry-B9K7jZdM.mjs +688 -0
- package/eds-alert.entry-HNjGFpMQ.js +608 -0
- package/eds-block-break.entry-1HfuhJmn.mjs +13 -0
- package/eds-block-break.entry-DQDjLThR.js +1 -0
- package/eds-breadcrumb.entry-Oe7Iu_rp.js +1 -0
- package/eds-breadcrumb.entry-nSQcSQxS.mjs +110 -0
- package/{eds-card-project.entry-C2dWgXXW.mjs → eds-card-project.entry-BMRVlg7J.mjs} +2 -2
- package/{eds-card-project.entry-CunHqbYK.js → eds-card-project.entry-BQKGTSJB.js} +1 -1
- package/{eds-card-tags.entry-C6jjLiGA.mjs → eds-card-tags.entry-BjvxuQg1.mjs} +1 -1
- package/{eds-card-tags.entry-CQS5AtAg.js → eds-card-tags.entry-DAkoUUin.js} +1 -1
- package/{eds-card-tool.entry-DJA23zJf.js → eds-card-tool.entry-B0rDGNdA.js} +1 -1
- package/{eds-card-tool.entry-Bi8w0xds.mjs → eds-card-tool.entry-BPrlMiqY.mjs} +2 -2
- package/{eds-card-wrapper.entry-UPnkq2JI.mjs → eds-card-wrapper.entry-Ba4ljzon.mjs} +1 -1
- package/{eds-card-wrapper.entry-BKPCc7ci.js → eds-card-wrapper.entry-DyPmlYoI.js} +1 -1
- package/{eds-code-block.entry-Ckb3jisn.js → eds-code-block.entry-B3RL-q6l.js} +1 -1
- package/{eds-code-block.entry-BZTLGjqq.mjs → eds-code-block.entry-zX5MUsAS.mjs} +1 -1
- package/{eds-components-section.entry-B3WrdIfL.js → eds-components-section.entry-BsmIIcun.js} +1 -1
- package/{eds-components-section.entry-D1ovrn93.mjs → eds-components-section.entry-xnXY70G_.mjs} +1 -1
- package/eds-cookies-preference.entry-DAQEpE8v.mjs +20 -0
- package/eds-cookies-preference.entry-MAmSehJX.js +1 -0
- package/{eds-docs-palettes.entry-Bk77Xn04.js → eds-docs-palettes.entry-BiC_mzap.js} +1 -1
- package/{eds-docs-palettes.entry-lpT0ypSs.mjs → eds-docs-palettes.entry-CFIZWB7Y.mjs} +1 -1
- package/{eds-docs-tokens.entry-DCHw-jrS.js → eds-docs-tokens.entry-CCwf01ke.js} +1 -1
- package/{eds-docs-tokens.entry-Bi35zxEM.mjs → eds-docs-tokens.entry-ClVBrRzm.mjs} +1 -1
- package/{eds-dropdown_2.entry-YEBzyKJu.js → eds-dropdown_2.entry-Dhtc1LQe.js} +1 -1
- package/{eds-dropdown_2.entry-Bamjbo1o.mjs → eds-dropdown_2.entry-Ds54Abix.mjs} +5 -5
- package/eds-footer.entry-CKr0MOpU.mjs +22 -0
- package/eds-footer.entry-DuNEl6BR.js +1 -0
- package/{eds-form.entry-a52cYx3b.js → eds-form.entry-gO7sMMVG.js} +1 -1
- package/{eds-form.entry-xm937wbh.mjs → eds-form.entry-znKH1sqi.mjs} +2 -2
- package/{eds-frame.entry-BnT9nQwa.js → eds-frame.entry-BE9_G-56.js} +1 -1
- package/{eds-frame.entry-CU7GoLj6.mjs → eds-frame.entry-COwMtc5z.mjs} +1 -1
- package/eds-fullscreen-menu.entry-CRIb_lLm.js +1 -0
- package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +74 -0
- package/eds-header.entry-38uAVZoC.js +2 -0
- package/eds-header.entry-C0qfjzDY.mjs +75 -0
- package/{eds-icon-arrow-diagonal.entry-fzsCJiPP.js → eds-icon-arrow-diagonal.entry-BTLKc1cS.js} +1 -1
- package/{eds-icon-arrow-diagonal.entry-kClkB8LF.mjs → eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-B75Ra6OD.js → eds-icon-arrow-right.entry-Bv_6skZy.js} +1 -1
- package/{eds-icon-arrow-right.entry-DX6A-VKL.mjs → eds-icon-arrow-right.entry-DNkmpAdY.mjs} +1 -1
- package/{eds-icon-bluesky.entry-BNSdVu2K.mjs → eds-icon-bluesky.entry-B_WksyEk.mjs} +1 -1
- package/{eds-icon-bluesky.entry-7tzCZSoL.js → eds-icon-bluesky.entry-BfYrb4Uv.js} +1 -1
- package/{eds-icon-chevron-down.entry-BLvZ3e_N.mjs → eds-icon-chevron-down.entry-DGjMxTKO.mjs} +1 -1
- package/{eds-icon-chevron-down.entry-BUG6E9eR.js → eds-icon-chevron-down.entry-OPmfChgp.js} +1 -1
- package/{eds-icon-chevron-left.entry-Vq-R3b59.mjs → eds-icon-chevron-left.entry-CRr4AWkS.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-BT-KYjSo.js → eds-icon-chevron-left.entry-_zMMz-c9.js} +1 -1
- package/{eds-icon-chevron-right.entry-BmU_I0Y1.js → eds-icon-chevron-right.entry-0FshDV46.js} +1 -1
- package/{eds-icon-chevron-right.entry-B1qzmGrD.mjs → eds-icon-chevron-right.entry-YLnmNxjo.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-DXXRgw1V.js → eds-icon-chevron-up.entry-DGt49ffi.js} +1 -1
- package/{eds-icon-chevron-up.entry-DuySJU_i.mjs → eds-icon-chevron-up.entry-NPODej6j.mjs} +1 -1
- package/{eds-icon-close.entry-DDxUAr21.mjs → eds-icon-close.entry-BQULA4ki.mjs} +1 -1
- package/{eds-icon-close.entry-DS7BLTzl.js → eds-icon-close.entry-BSSS65tZ.js} +1 -1
- package/{eds-icon-copy.entry-DNa1wI4F.mjs → eds-icon-copy.entry-Di_H0U8v.mjs} +1 -1
- package/{eds-icon-copy.entry-Nz_P5A7p.js → eds-icon-copy.entry-PvAtojYn.js} +1 -1
- package/{eds-icon-eu.entry-DTdf6Skc.mjs → eds-icon-eu.entry-BTzpJByN.mjs} +1 -1
- package/{eds-icon-eu.entry-CLQcoimB.js → eds-icon-eu.entry-D77vjTJ9.js} +1 -1
- package/{eds-icon-facebook.entry-B9szoikj.mjs → eds-icon-facebook.entry-CKmUhO4W.mjs} +1 -1
- package/{eds-icon-facebook.entry-knUdck2t.js → eds-icon-facebook.entry-DsPVhA3Z.js} +1 -1
- package/{eds-icon-gitlab.entry-IO7f4hgL.mjs → eds-icon-gitlab.entry-D6VEWpO6.mjs} +1 -1
- package/{eds-icon-gitlab.entry-pKxaKA0B.js → eds-icon-gitlab.entry-Dzq7ViR-.js} +1 -1
- package/{eds-icon-linkedin.entry-BD__kbDV.js → eds-icon-linkedin.entry-7PCeoMEi.js} +1 -1
- package/{eds-icon-linkedin.entry-CryUW1Er.mjs → eds-icon-linkedin.entry-BI2sjTDa.mjs} +1 -1
- package/{eds-icon-loader.entry-CxizdRT8.mjs → eds-icon-loader.entry-BoQTR6PV.mjs} +1 -1
- package/{eds-icon-loader.entry-B_3Sd6PB.js → eds-icon-loader.entry-Bp-ZxeW7.js} +1 -1
- package/{eds-icon-mastodon.entry-MyM74vvm.mjs → eds-icon-mastodon.entry-Cm8XCAqa.mjs} +1 -1
- package/{eds-icon-mastodon.entry-7152lwgd.js → eds-icon-mastodon.entry-DsU7dMbW.js} +1 -1
- package/{eds-icon-menu.entry-5RRmRTxa.mjs → eds-icon-menu.entry-C7HmF2n5.mjs} +1 -1
- package/{eds-icon-menu.entry-BVU8htgo.js → eds-icon-menu.entry-DRd13IcH.js} +1 -1
- package/{eds-icon-more.entry-lossstHZ.js → eds-icon-more.entry-BOWM2H9H.js} +1 -1
- package/{eds-icon-more.entry-KE6_EsAg.mjs → eds-icon-more.entry-CqvnBXDu.mjs} +1 -1
- package/{eds-icon-search.entry-Dg0wabdP.mjs → eds-icon-search.entry-BrANR30M.mjs} +1 -1
- package/{eds-icon-search.entry-DiYaxnYX.js → eds-icon-search.entry-CubLvPO7.js} +1 -1
- package/{eds-icon-success.entry-CRu9Ssdi.js → eds-icon-success.entry-CDwqLyts.js} +1 -1
- package/{eds-icon-success.entry-_fWfddhX.mjs → eds-icon-success.entry-CtMWWFTW.mjs} +1 -1
- package/{eds-icon-twitter.entry-B4xPE3Vz.js → eds-icon-twitter.entry-BnhBJxrn.js} +1 -1
- package/{eds-icon-twitter.entry-DHFpeStb.mjs → eds-icon-twitter.entry-DHTwTPKu.mjs} +1 -1
- package/{eds-icon-user.entry-DkRLDrdp.js → eds-icon-user.entry-GYJBVLsU.js} +1 -1
- package/{eds-icon-user.entry-BOv2lInW.mjs → eds-icon-user.entry-LTXtb_m4.mjs} +1 -1
- package/{eds-icon-youtube.entry-DL5fWU8k.js → eds-icon-youtube.entry-BluzizaX.js} +1 -1
- package/{eds-icon-youtube.entry-CRRGbDsw.mjs → eds-icon-youtube.entry-BqP_g-Pb.mjs} +1 -1
- package/{eds-input_7.entry-BZ9afXqe.js → eds-input_7.entry-Bo9-yfaP.js} +1 -1
- package/{eds-input_7.entry-WvoE_Mue.mjs → eds-input_7.entry-CCX6iGUA.mjs} +1 -1
- package/eds-link.entry-B_t5O_EC.js +7288 -0
- package/eds-link.entry-D4lqKj64.mjs +7454 -0
- package/{eds-login.entry-C0eOhlEq.mjs → eds-login.entry-CB_gy86p.mjs} +2 -2
- package/{eds-login.entry-BRWK6otG.js → eds-login.entry-CDj80EGl.js} +1 -1
- package/{eds-logo-variations.entry-Cw44vuQE.mjs → eds-logo-variations.entry-AbwI_N4g.mjs} +1 -1
- package/{eds-logo-variations.entry-BnB25dDH.js → eds-logo-variations.entry-B7BEqih8.js} +1 -1
- package/eds-logo.entry-C4YV268f.mjs +61 -0
- package/eds-logo.entry-D-2GjdZl.js +1 -0
- package/{eds-modal.entry-CCy9SRVR.mjs → eds-modal.entry-2mm8jzwO.mjs} +2 -2
- package/{eds-modal.entry-B9gXEOjT.js → eds-modal.entry-N0Zu-2yI.js} +1 -1
- package/{eds-navigator.entry-B9scz8p_.js → eds-navigator.entry-Bd0BYBJE.js} +1 -1
- package/{eds-navigator.entry-Dk-4UW_d.mjs → eds-navigator.entry-DJHFUppb.mjs} +1 -1
- package/{eds-pagination_2.entry-D_sngThL.js → eds-pagination_2.entry-N7stHjY-.js} +1 -1
- package/{eds-pagination_2.entry-M3CLFGN_.mjs → eds-pagination_2.entry-T_lnxySd.mjs} +2 -2
- package/{eds-progress-bar.entry-BtI2_94Z.mjs → eds-progress-bar.entry-BpqT4TGP.mjs} +1 -1
- package/{eds-progress-bar.entry-D56TNSGj.js → eds-progress-bar.entry-C-qHC2dN.js} +1 -1
- package/eds-rating.entry-C1djorgY.js +1 -0
- package/eds-rating.entry-DJbkld-l.mjs +48 -0
- package/{eds-section-core_2.entry-pmUkAIz7.mjs → eds-section-core_2.entry-BwoSUszo.mjs} +1 -1
- package/{eds-section-core_2.entry-BmbK_RfT.js → eds-section-core_2.entry-JyCa51Zs.js} +1 -1
- package/eds-social-networks.entry-CWw8CODU.mjs +50 -0
- package/eds-social-networks.entry-CveQgGlC.js +1 -0
- package/eds-steps.entry-NC8mexCJ.js +1 -0
- package/eds-steps.entry-gPHX8t5y.mjs +37 -0
- package/{eds-svg-repository.entry-DZ1FMRrQ.js → eds-svg-repository.entry-BhAWpTfJ.js} +1 -1
- package/{eds-svg-repository.entry-B3xCCFOp.mjs → eds-svg-repository.entry-DeKbE1sw.mjs} +1 -1
- package/eds-switch.entry-6C-fiD1f.js +1 -0
- package/eds-switch.entry-LXqTebs4.mjs +20 -0
- package/{eds-tab.entry-Bpv6R_M0.mjs → eds-tab.entry-7_C7zAnd.mjs} +1 -1
- package/{eds-tab.entry-DjpVgaDN.js → eds-tab.entry-BI3X5Amp.js} +1 -1
- package/{eds-tabs-content.entry-CzwoLZzR.mjs → eds-tabs-content.entry-BYK_ciTB.mjs} +6 -6
- package/{eds-tabs-content.entry-Bj5wNmkr.js → eds-tabs-content.entry-FqonRXn9.js} +1 -1
- package/{eds-tabs.entry-BYBPkYRs.mjs → eds-tabs.entry-CCGBUoii.mjs} +6 -6
- package/{eds-tabs.entry-Cbc9yhHL.js → eds-tabs.entry-VauMxz1h.js} +1 -1
- package/{eds-timeline.entry-DJYcN7rN.mjs → eds-timeline.entry-B-eABvy-.mjs} +1 -1
- package/{eds-timeline.entry-Bq-eo4Og.js → eds-timeline.entry-UjKckHoD.js} +1 -1
- package/{eds-tooltip.entry-CTCdKTKM.mjs → eds-tooltip.entry-BSd2vlEo.mjs} +2 -2
- package/{eds-tooltip.entry-eiFlYpfl.js → eds-tooltip.entry-D9pRQyxl.js} +1 -1
- package/{eds-trl.entry-8BXrp9SK.mjs → eds-trl.entry-C1CKXjzi.mjs} +1 -1
- package/{eds-trl.entry-DtffM-e5.js → eds-trl.entry-DdPaX9aY.js} +1 -1
- package/{eds-user.entry-ybggwcts.mjs → eds-user.entry-BX3nKCHB.mjs} +4 -4
- package/{eds-user.entry-DfBE6LuF.js → eds-user.entry-CyEG-Wtm.js} +1 -1
- package/{eds-vertical-stepper.entry-DpcwvOst.mjs → eds-vertical-stepper.entry-CdmDXaW2.mjs} +1 -1
- package/{eds-vertical-stepper.entry-O_GJNo8B.js → eds-vertical-stepper.entry-DphlSSa0.js} +1 -1
- package/{incorrect-use-of-colors.entry-CDHLoNBa.js → incorrect-use-of-colors.entry-BhygRTdu.js} +1 -1
- package/{incorrect-use-of-colors.entry-DbwiJCH0.mjs → incorrect-use-of-colors.entry-QkMrxvFS.mjs} +1 -1
- package/{index-C-Gy1Lax.mjs → index-Df31uHzU.mjs} +245 -204
- package/index-DvG3cC-8.js +21 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{logo-space.entry-DERJLkyL.mjs → logo-space.entry-CChbx8AS.mjs} +1 -1
- package/{logo-space.entry-D56IaLNE.js → logo-space.entry-q9Uznxi3.js} +1 -1
- package/{logo-variations-horizontal_2.entry-wp9D1MMl.mjs → logo-variations-horizontal_2.entry-DA_yMnFa.mjs} +1 -1
- package/{logo-variations-horizontal_2.entry-OY3Zka_7.js → logo-variations-horizontal_2.entry-G3ih093R.js} +1 -1
- package/{logo-wrong-usage.entry-RgKFDObE.mjs → logo-wrong-usage.entry-BoBmwzLl.mjs} +1 -1
- package/{logo-wrong-usage.entry-BniBpQrN.js → logo-wrong-usage.entry-l4pJC0KB.js} +1 -1
- package/package.json +1 -1
- package/{token-list_3.entry-C0Tohj1W.js → token-list_3.entry-B4bQ3_yz.js} +1 -1
- package/{token-list_3.entry-Zgzwbhio.mjs → token-list_3.entry-CJXI55T0.mjs} +1 -1
- package/{token-ratios.entry-B7ZwRluK.mjs → token-ratios.entry-LNQoHORe.mjs} +1 -1
- package/{token-ratios.entry-bO5CkZ9D.js → token-ratios.entry-hdef-MAq.js} +1 -1
- package/{token-spacing.entry-_yyMlwbO.mjs → token-spacing.entry-YXQwnYx0.mjs} +1 -1
- package/{token-spacing.entry-BTYazF9c.js → token-spacing.entry-xhNHm9Tw.js} +1 -1
- package/{token-typography.entry-D-PPtDvs.js → token-typography.entry-DddK_fiy.js} +1 -1
- package/{token-typography.entry-D4bxbB2m.mjs → token-typography.entry-qTyV0EeH.mjs} +1 -1
- package/analytics-1cde8e4a-B_MD-9qW.js +0 -1
- package/eds-accordion.entry-B8TjhnWX.mjs +0 -49
- package/eds-accordion.entry-BySfMYU2.js +0 -4
- package/eds-alert_17.entry-BfpBSBVW.js +0 -14999
- package/eds-alert_17.entry-IJq6baZd.mjs +0 -16075
- package/eds-avatar_4.entry-B7CV7v_n.mjs +0 -283
- package/eds-avatar_4.entry-D1CDRW_R.js +0 -149
- package/eds-card-generic.entry-BhLK-nyp.js +0 -1
- package/eds-card-generic.entry-DIHPUjbI.mjs +0 -63
- package/eds-card-section.entry-0n2V-MH6.js +0 -1
- package/eds-card-section.entry-Ccjil38X.mjs +0 -39
- package/eds-matomo-notice.entry-BpwE1vQ3.js +0 -1
- package/eds-matomo-notice.entry-DsLbzeqQ.mjs +0 -91
- package/index-D_kZU_4I.js +0 -21
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { r as n, c as o, h as e, g as a } from "./index-C-Gy1Lax.mjs";
|
|
2
|
-
import { s as r } from "./analytics-1cde8e4a-BDRcCMlV.mjs";
|
|
3
|
-
const d = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.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}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}", s = d, l = class {
|
|
4
|
-
constructor(i) {
|
|
5
|
-
n(this, i), this.accordionChange = o(this, "accordionChange", 7), this.handleClick = () => {
|
|
6
|
-
var t;
|
|
7
|
-
this.isExpanded = !this.isExpanded, this.accordionChange.emit(this.isExpanded), this.setPanelHeight(), r({
|
|
8
|
-
category: "ui-component",
|
|
9
|
-
parentContext: null,
|
|
10
|
-
tag: this.el.tagName.toLowerCase(),
|
|
11
|
-
name: ((t = this.title) === null || t === void 0 ? void 0 : t.toLowerCase()) || "",
|
|
12
|
-
action: this.isExpanded ? "expanded" : "collapsed"
|
|
13
|
-
});
|
|
14
|
-
}, this.setPanelHeight = () => {
|
|
15
|
-
this.childContentRef && (this.shortContent = this.wrapperRef.scrollWidth > 830 && !this.description ? this.childContentRef.scrollHeight <= 80 : this.childContentRef.scrollHeight <= 20, this.panelHeight = this.isExpanded && !this.shortContent ? this.childContentRef.scrollHeight : 0);
|
|
16
|
-
}, this.title = void 0, this.description = void 0, this.switchBg = !0, this.expanded = !1, this.clampText = !0, this.minHeightContent = !1, this.isExpanded = this.expanded, this.panelHeight = 0, this.shortContent = !1;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Lifecycle method that sets up the initial panel height and adds a resize event listener
|
|
20
|
-
* to recalculate height on window resize.
|
|
21
|
-
*/
|
|
22
|
-
componentDidLoad() {
|
|
23
|
-
this.setPanelHeight(), window.addEventListener("resize", this.setPanelHeight);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Lifecycle method that cleans up the resize event listener when the component is removed.
|
|
27
|
-
*/
|
|
28
|
-
disconnectedCallback() {
|
|
29
|
-
window.removeEventListener("resize", this.setPanelHeight);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Renders the accordion structure, including header, content, description, and any slotted content.
|
|
33
|
-
* Adjusts styles based on `switchBg`, `tiny`, `clampText`, and other props.
|
|
34
|
-
*/
|
|
35
|
-
render() {
|
|
36
|
-
const i = this.minHeightContent ? "min-h-56" : "";
|
|
37
|
-
return e("div", { key: "00bd9a34ceb469bef74c827bd1f48bf3d4b545b6", ref: (t) => this.wrapperRef = t, class: `container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
38
|
-
${this.switchBg && this.isExpanded ? "bg-inverse" : "bg-default"}
|
|
39
|
-
${this.switchBg ? "hover:bg-inverse" : ""}
|
|
40
|
-
${i}` }, e("h3", { key: "ab6a953797e0a8379a01a9a2f00a4988d4fc8357", class: "mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1" }, this.title), e("div", { key: "cfd6f4ad2ec5e412cdf2348d188dfcf90770012d", class: "ml-auto" }, e("eds-button", { key: "beaee69d610727b397645fc0a507b234003fde5e", id: "toggleAccordion", intent: "tertiary", "aria-expanded": this.isExpanded || this.shortContent, "aria-label": "Toggle accordion", "aria-controls": "accordionSection", class: "effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none", onClick: this.handleClick, icon: "chevron-down" })), e("div", { key: "795f14c0930a0b0862a86451cc7b7e807cb79c37", class: "w-full" }, this.description ? e("span", { class: `text-light ${!this.isExpanded && this.clampText ? "line-clamp-1" : ""}` }, this.description) : null, e("section", { key: "28f6cba233cdee58743faaacc992bf7497c2ff2e", id: "accordionSection", role: "region", "aria-labelledby": "accordionHeader", "aria-hidden": !this.isExpanded, class: `z-1 effect-height relative h-0 w-full ${!this.isExpanded && this.clampText ? "overflow-hidden" : ""}`, style: { height: this.isExpanded ? "auto" : "0" } }, e("div", { key: "939e442c55babfd3f1750d20d9b95f664c3a67c8", ref: (t) => this.childContentRef = t, class: "accordion-content effect-color pt-20", "aria-hidden": !this.isExpanded }, e("span", { key: "648d16ed84cb3da227a10e6370004c6479789aed", class: `${!this.isExpanded && this.clampText ? "line-clamp-2" : ""}` }, e("slot", { key: "90ca94f15e408b4b05c0eac4bd20fa21766cbb19" }))))));
|
|
41
|
-
}
|
|
42
|
-
get el() {
|
|
43
|
-
return a(this);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
l.style = s;
|
|
47
|
-
export {
|
|
48
|
-
l as eds_accordion
|
|
49
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D_kZU_4I.js"),o=require("./analytics-1cde8e4a-B_MD-9qW.js"),a="blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.min-h-36{min-height:2.25rem}.min-h-44{min-height:2.75rem}.min-h-56{min-height:3.5rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.effect-color{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.border-softer{border:2px solid rgba(0, 0, 0, .1)}.bg-default{background-color:var(--grey-200)}.bg-inverse{background-color:var(--white)}.relative{position:relative}.absolute{position:absolute}.inset-x-16{left:1rem;right:1rem}.top-16{top:1rem}.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}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-md{border-radius:12px}.outline-none{outline:2px solid transparent;outline-offset:2px}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.text-light{color:var(--grey-700)}.z-1{z-index:1}.z-10{z-index:10}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.h-0{height:0rem}.h-auto{height:auto}.pt-20{padding-top:1.25rem}.overflow-hidden{overflow:hidden}.grid{display:grid}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:16px}.border-2{border-width:2px}.p-16{padding:1rem}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.text-left{text-align:left}.text-center{text-align:center}",r=a,n=class{constructor(i){e.registerInstance(this,i),this.accordionChange=e.createEvent(this,"accordionChange",7),this.handleClick=()=>{var t;this.isExpanded=!this.isExpanded,this.accordionChange.emit(this.isExpanded),this.setPanelHeight(),o.sendAnalytics({category:"ui-component",parentContext:null,tag:this.el.tagName.toLowerCase(),name:((t=this.title)===null||t===void 0?void 0:t.toLowerCase())||"",action:this.isExpanded?"expanded":"collapsed"})},this.setPanelHeight=()=>{this.childContentRef&&(this.shortContent=this.wrapperRef.scrollWidth>830&&!this.description?this.childContentRef.scrollHeight<=80:this.childContentRef.scrollHeight<=20,this.panelHeight=this.isExpanded&&!this.shortContent?this.childContentRef.scrollHeight:0)},this.title=void 0,this.description=void 0,this.switchBg=!0,this.expanded=!1,this.clampText=!0,this.minHeightContent=!1,this.isExpanded=this.expanded,this.panelHeight=0,this.shortContent=!1}componentDidLoad(){this.setPanelHeight(),window.addEventListener("resize",this.setPanelHeight)}disconnectedCallback(){window.removeEventListener("resize",this.setPanelHeight)}render(){const i=this.minHeightContent?"min-h-56":"";return e.h("div",{key:"00bd9a34ceb469bef74c827bd1f48bf3d4b545b6",ref:t=>this.wrapperRef=t,class:`container flex effect-color border-softer relative grid overflow-hidden rounded-lg border-2 p-16
|
|
2
|
-
${this.switchBg&&this.isExpanded?"bg-inverse":"bg-default"}
|
|
3
|
-
${this.switchBg?"hover:bg-inverse":""}
|
|
4
|
-
${i}`},e.h("h3",{key:"ab6a953797e0a8379a01a9a2f00a4988d4fc8357",class:"mr-auto f-heading-06 text-left absolute inset-x-16 top-16 line-clamp-1"},this.title),e.h("div",{key:"cfd6f4ad2ec5e412cdf2348d188dfcf90770012d",class:"ml-auto"},e.h("eds-button",{key:"beaee69d610727b397645fc0a507b234003fde5e",id:"toggleAccordion",intent:"tertiary","aria-expanded":this.isExpanded||this.shortContent,"aria-label":"Toggle accordion","aria-controls":"accordionSection",class:"effect-color flex w-full items-center justify-between rounded-md outline-none focus:outline-none",onClick:this.handleClick,icon:"chevron-down"})),e.h("div",{key:"795f14c0930a0b0862a86451cc7b7e807cb79c37",class:"w-full"},this.description?e.h("span",{class:`text-light ${!this.isExpanded&&this.clampText?"line-clamp-1":""}`},this.description):null,e.h("section",{key:"28f6cba233cdee58743faaacc992bf7497c2ff2e",id:"accordionSection",role:"region","aria-labelledby":"accordionHeader","aria-hidden":!this.isExpanded,class:`z-1 effect-height relative h-0 w-full ${!this.isExpanded&&this.clampText?"overflow-hidden":""}`,style:{height:this.isExpanded?"auto":"0"}},e.h("div",{key:"939e442c55babfd3f1750d20d9b95f664c3a67c8",ref:t=>this.childContentRef=t,class:"accordion-content effect-color pt-20","aria-hidden":!this.isExpanded},e.h("span",{key:"648d16ed84cb3da227a10e6370004c6479789aed",class:`${!this.isExpanded&&this.clampText?"line-clamp-2":""}`},e.h("slot",{key:"90ca94f15e408b4b05c0eac4bd20fa21766cbb19"}))))))}get el(){return e.getElement(this)}};n.style=r;exports.eds_accordion=n;
|