@ebrains/vue 0.6.0-alpha.0 → 0.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{color-primary-palette_6.entry-BJGrNiKE.mjs → color-primary-palette_6.entry-BDyyrFB5.mjs} +17 -17
- package/color-primary-palette_6.entry-BhxgE7ff.js +1 -0
- package/correct-use-of-colors.entry-DXASqwFp.js +1 -0
- package/correct-use-of-colors.entry-z7k3YWpg.mjs +59 -0
- package/eds-accordion_22.entry-LksMmZ4o.js +28813 -0
- package/eds-accordion_22.entry-Lqf1NKBk.mjs +30175 -0
- package/{eds-alert.entry-B9K7jZdM.mjs → eds-alert.entry-BqjTTCgj.mjs} +1 -1
- package/{eds-alert.entry-HNjGFpMQ.js → eds-alert.entry-DZcz_4Dj.js} +1 -1
- package/eds-app-root.entry-Cz-9z7Za.js +1 -0
- package/eds-app-root.entry-DobAtes_.mjs +25 -0
- package/eds-avatar_4.entry-BYrgwmj2.mjs +278 -0
- package/eds-avatar_4.entry-Bqr0d5Cj.js +149 -0
- package/{eds-breadcrumb.entry-nSQcSQxS.mjs → eds-breadcrumb.entry-N3NSBwJL.mjs} +13 -19
- package/eds-breadcrumb.entry-elqbS74P.js +1 -0
- package/eds-card-generic.entry-D5pTUUco.js +1 -0
- package/eds-card-generic.entry-zKJ2hHOe.mjs +56 -0
- package/{eds-card-project.entry-BMRVlg7J.mjs → eds-card-project.entry-DDo4ZJs8.mjs} +1 -1
- package/{eds-card-project.entry-BQKGTSJB.js → eds-card-project.entry-e4n5lQbW.js} +1 -1
- package/eds-card-section.entry-C8nt6j3h.mjs +30 -0
- package/eds-card-section.entry-CeznIbCo.js +1 -0
- package/{eds-card-tags.entry-DAkoUUin.js → eds-card-tags.entry-Bl3YXNtv.js} +1 -1
- package/{eds-card-tags.entry-BjvxuQg1.mjs → eds-card-tags.entry-Do9kx7rP.mjs} +1 -1
- package/{eds-card-tool.entry-BPrlMiqY.mjs → eds-card-tool.entry-BewNCjRU.mjs} +1 -1
- package/{eds-card-tool.entry-B0rDGNdA.js → eds-card-tool.entry-DnVIn9BX.js} +1 -1
- package/{eds-card-wrapper.entry-DyPmlYoI.js → eds-card-wrapper.entry-BzKcrwEf.js} +1 -1
- package/{eds-card-wrapper.entry-Ba4ljzon.mjs → eds-card-wrapper.entry-DMj1bZ4i.mjs} +1 -1
- package/{eds-code-block.entry-B3RL-q6l.js → eds-code-block.entry-DUeN87Fw.js} +1 -1
- package/{eds-code-block.entry-zX5MUsAS.mjs → eds-code-block.entry-fqrA-Frf.mjs} +1 -1
- package/{eds-components-section.entry-xnXY70G_.mjs → eds-components-section.entry-BgfCSxk1.mjs} +2 -2
- package/{eds-components-section.entry-BsmIIcun.js → eds-components-section.entry-CLJMns6h.js} +2 -2
- package/{eds-cookies-preference.entry-DAQEpE8v.mjs → eds-cookies-preference.entry-B1a8qild.mjs} +5 -5
- package/{eds-cookies-preference.entry-MAmSehJX.js → eds-cookies-preference.entry-BGx0tglE.js} +1 -1
- package/{eds-docs-palettes.entry-BiC_mzap.js → eds-docs-palettes.entry-C1EcBwSy.js} +1 -1
- package/{eds-docs-palettes.entry-CFIZWB7Y.mjs → eds-docs-palettes.entry-TXbXKJJN.mjs} +2 -2
- package/{eds-docs-tokens.entry-ClVBrRzm.mjs → eds-docs-tokens.entry-B1xc8BFa.mjs} +2 -2
- package/{eds-docs-tokens.entry-CCwf01ke.js → eds-docs-tokens.entry-BJVBVsOy.js} +1 -1
- package/eds-dropdown.entry-CMK8E_J2.mjs +83 -0
- package/eds-dropdown.entry-FqX7fOIb.js +1 -0
- package/eds-feedback.entry-B-Lue8P0.js +1 -0
- package/eds-feedback.entry-fz73-syB.mjs +53 -0
- package/{eds-form.entry-gO7sMMVG.js → eds-form.entry-0saB-Hm9.js} +2 -2
- package/{eds-form.entry-znKH1sqi.mjs → eds-form.entry-BB1gfXVy.mjs} +174 -159
- package/eds-frame.entry-BvJCKWMT.mjs +73 -0
- package/eds-frame.entry-dX3nZxD0.js +1 -0
- package/{eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs → eds-icon-arrow-diagonal.entry-BD3xdvR4.mjs} +2 -2
- package/{eds-icon-arrow-diagonal.entry-BTLKc1cS.js → eds-icon-arrow-diagonal.entry-DkQFuVkT.js} +1 -1
- package/eds-icon-arrow-right.entry-BH0zDB1H.js +1 -0
- package/eds-icon-arrow-right.entry-Diax6KZB.mjs +13 -0
- package/{eds-icon-bluesky.entry-BfYrb4Uv.js → eds-icon-bluesky.entry-CDZCjWCh.js} +1 -1
- package/eds-icon-bluesky.entry-DwvxMR1q.mjs +13 -0
- package/{eds-icon-chevron-down.entry-OPmfChgp.js → eds-icon-chevron-down.entry-CGsA1rJ0.js} +1 -1
- package/eds-icon-chevron-down.entry-CiJcqZuh.mjs +13 -0
- package/{eds-icon-chevron-left.entry-CRr4AWkS.mjs → eds-icon-chevron-left.entry-Dt2WsKob.mjs} +2 -2
- package/{eds-icon-chevron-left.entry-_zMMz-c9.js → eds-icon-chevron-left.entry-nBBudzCb.js} +1 -1
- package/{eds-icon-chevron-right.entry-YLnmNxjo.mjs → eds-icon-chevron-right.entry-BG7_qznz.mjs} +2 -2
- package/{eds-icon-chevron-right.entry-0FshDV46.js → eds-icon-chevron-right.entry-CjhJFKog.js} +1 -1
- package/eds-icon-chevron-up.entry-DfsbHKk1.mjs +13 -0
- package/eds-icon-chevron-up.entry-Dy81hGw-.js +1 -0
- package/eds-icon-close.entry-CpGzc34L.mjs +13 -0
- package/{eds-icon-close.entry-BSSS65tZ.js → eds-icon-close.entry-DNhXNl8O.js} +1 -1
- package/eds-icon-copy.entry-CsD2FpUS.mjs +13 -0
- package/eds-icon-copy.entry-DD2HXgFK.js +1 -0
- package/eds-icon-eu.entry-BRuCbl7O.mjs +13 -0
- package/eds-icon-eu.entry-ChKv8iZB.js +1 -0
- package/{eds-icon-facebook.entry-CKmUhO4W.mjs → eds-icon-facebook.entry--ctHhWkj.mjs} +2 -2
- package/{eds-icon-facebook.entry-DsPVhA3Z.js → eds-icon-facebook.entry-Bjkse_bn.js} +1 -1
- package/{eds-icon-gitlab.entry-D6VEWpO6.mjs → eds-icon-gitlab.entry-BDqNL5zl.mjs} +2 -2
- package/{eds-icon-gitlab.entry-Dzq7ViR-.js → eds-icon-gitlab.entry-DUQcgTMM.js} +1 -1
- package/eds-icon-linkedin.entry-Cq13-Zdb.mjs +13 -0
- package/{eds-icon-linkedin.entry-7PCeoMEi.js → eds-icon-linkedin.entry-D-D3hmxE.js} +1 -1
- package/eds-icon-loader.entry-DgpUjCng.mjs +13 -0
- package/eds-icon-loader.entry-rKBBXz_C.js +1 -0
- package/{eds-icon-mastodon.entry-DsU7dMbW.js → eds-icon-mastodon.entry-CCn_r682.js} +1 -1
- package/eds-icon-mastodon.entry-OpdPcGQ7.mjs +13 -0
- package/eds-icon-menu.entry-B3mQ8ma1.mjs +13 -0
- package/{eds-icon-menu.entry-DRd13IcH.js → eds-icon-menu.entry-DUxzhro5.js} +1 -1
- package/{eds-icon-more.entry-BOWM2H9H.js → eds-icon-more.entry-CBDi0LJC.js} +1 -1
- package/{eds-icon-more.entry-CqvnBXDu.mjs → eds-icon-more.entry-CDDxBiBM.mjs} +2 -2
- package/eds-icon-search.entry-Bok3Oo0Q.js +1 -0
- package/eds-icon-search.entry-CvnFqzlk.mjs +13 -0
- package/eds-icon-star.entry-BRQ07hMQ.mjs +13 -0
- package/eds-icon-star.entry-CkeEbwgJ.js +1 -0
- package/{eds-icon-success.entry-CDwqLyts.js → eds-icon-success.entry-DA4C5Hwg.js} +1 -1
- package/eds-icon-success.entry-nWUVTFzX.mjs +13 -0
- package/eds-icon-thumbs-down.entry-BqEOrmiW.js +1 -0
- package/eds-icon-thumbs-down.entry-Dme-Ippn.mjs +13 -0
- package/eds-icon-thumbs-up.entry-Dkqv6r_x.js +1 -0
- package/eds-icon-thumbs-up.entry-Dp-eslmx.mjs +13 -0
- package/eds-icon-twitter.entry-BcZ2atce.js +1 -0
- package/eds-icon-twitter.entry-CqalD8Wf.mjs +13 -0
- package/eds-icon-user.entry-DU8EF-lQ.mjs +13 -0
- package/{eds-icon-user.entry-GYJBVLsU.js → eds-icon-user.entry-DpvoOnVA.js} +1 -1
- package/{eds-icon-youtube.entry-BluzizaX.js → eds-icon-youtube.entry-DbPAn4pN.js} +1 -1
- package/{eds-icon-youtube.entry-BqP_g-Pb.mjs → eds-icon-youtube.entry-vFg7QtYg.mjs} +2 -2
- package/eds-login_2.entry-6Hxmqih9.js +9 -0
- package/{keycloak-d502ec16-Ce0iGqyk.mjs → eds-login_2.entry-DD8g9nqu.mjs} +288 -210
- package/eds-logo-variations.entry-CDTTH-iG.mjs +22 -0
- package/{eds-logo-variations.entry-B7BEqih8.js → eds-logo-variations.entry-dLBnZPi7.js} +1 -1
- package/{eds-modal.entry-2mm8jzwO.mjs → eds-modal.entry-CV3bf08X.mjs} +16 -4
- package/{eds-modal.entry-N0Zu-2yI.js → eds-modal.entry-DJybVbNk.js} +1 -1
- package/{eds-progress-bar.entry-C-qHC2dN.js → eds-progress-bar.entry-23-I0rSz.js} +1 -1
- package/{eds-progress-bar.entry-BpqT4TGP.mjs → eds-progress-bar.entry-BP6AqtI7.mjs} +2 -2
- package/eds-rating.entry-CHo7h3Y4.mjs +61 -0
- package/eds-rating.entry-dDYfYR7o.js +1 -0
- package/{eds-section-core_2.entry-JyCa51Zs.js → eds-section-core_2.entry-BdnBCBit.js} +1 -1
- package/{eds-section-core_2.entry-BwoSUszo.mjs → eds-section-core_2.entry-DTItYLUC.mjs} +4 -4
- package/eds-spinner.entry-BwTZAz8I.mjs +36 -0
- package/eds-spinner.entry-CXLe8IAk.js +1 -0
- package/{eds-steps.entry-gPHX8t5y.mjs → eds-steps.entry-Nz_XqcUl.mjs} +10 -19
- package/eds-steps.entry-ceVyrSe-.js +1 -0
- package/{eds-svg-repository.entry-BhAWpTfJ.js → eds-svg-repository.entry-CKQ6S13R.js} +13 -13
- package/{eds-svg-repository.entry-DeKbE1sw.mjs → eds-svg-repository.entry-DoYT85te.mjs} +54 -48
- package/{eds-switch.entry-6C-fiD1f.js → eds-switch.entry-4a3DLV-c.js} +1 -1
- package/{eds-switch.entry-LXqTebs4.mjs → eds-switch.entry-DjT9dev_.mjs} +3 -3
- package/{eds-link.entry-D4lqKj64.mjs → eds-tabs.entry-BYxiMlkR.mjs} +590 -166
- package/{eds-link.entry-B_t5O_EC.js → eds-tabs.entry-DJKEg0Gs.js} +503 -16
- package/eds-timeline.entry-DKx-pd67.js +1 -0
- package/eds-timeline.entry-DOSKCjPH.mjs +45 -0
- package/eds-toast-manager.entry-BV-sP7cR.mjs +36 -0
- package/eds-toast-manager.entry-BopxpC3o.js +1 -0
- package/eds-toast.entry-DDBTRdmP.mjs +61 -0
- package/eds-toast.entry-DPibhM-Z.js +3 -0
- package/{eds-tooltip.entry-BSd2vlEo.mjs → eds-tooltip.entry-B53fpM9t.mjs} +7 -7
- package/{eds-tooltip.entry-D9pRQyxl.js → eds-tooltip.entry-Cf6bse_x.js} +1 -1
- package/eds-trl.entry-C0cSVG_Q.mjs +34 -0
- package/eds-trl.entry-fYVgYPts.js +1 -0
- package/eds-user.entry-hUkYJDp4.js +1 -0
- package/eds-user.entry-qM0swzIt.mjs +26 -0
- package/{eds-vertical-stepper.entry-CdmDXaW2.mjs → eds-vertical-stepper.entry-Bb6dUinj.mjs} +5 -5
- package/{eds-vertical-stepper.entry-DphlSSa0.js → eds-vertical-stepper.entry-CvadBA1x.js} +1 -1
- package/formUtils-ac68474d-BDuxB0K8.js +1 -0
- package/formUtils-ac68474d-D2e59S7S.mjs +122 -0
- package/generated/components.d.ts +4 -1
- package/incorrect-use-of-colors.entry-B6fKAvAx.mjs +42 -0
- package/incorrect-use-of-colors.entry-DZ_SBoa8.js +1 -0
- package/index-D4alMZtT.js +21 -0
- package/{index-Df31uHzU.mjs → index-E1PpO1J3.mjs} +453 -430
- package/index.js +1 -1
- package/index.mjs +32 -29
- package/{logo-space.entry-q9Uznxi3.js → logo-space.entry-BOh7Odfh.js} +1 -1
- package/{logo-space.entry-CChbx8AS.mjs → logo-space.entry-xGhYUj5r.mjs} +7 -7
- package/logo-variations-horizontal_2.entry-BWlXcmRe.js +7 -0
- package/logo-variations-horizontal_2.entry-CIUDEw3Y.mjs +29 -0
- package/logo-wrong-usage.entry-CtPXf-5h.js +1 -0
- package/logo-wrong-usage.entry-D4aBJ6Wk.mjs +14 -0
- package/package.json +1 -1
- package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
- package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
- package/star-0da9b5e9-B3-jr0yE.js +3 -0
- package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
- package/thumbs-down-a18fd049-CzuBAj99.mjs +6 -0
- package/thumbs-down-a18fd049-DTNIbYbm.js +3 -0
- package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +7 -0
- package/thumbs-up-c19a71bc-w8Z8gegt.js +4 -0
- package/{token-list_3.entry-CJXI55T0.mjs → token-list_3.entry-DJ-cqa3_.mjs} +4 -4
- package/{token-list_3.entry-B4bQ3_yz.js → token-list_3.entry-DVoMZtdK.js} +1 -1
- package/{token-ratios.entry-LNQoHORe.mjs → token-ratios.entry-FKky7w4Z.mjs} +2 -2
- package/token-ratios.entry-JS-ffZPx.js +1 -0
- package/token-spacing.entry-Cf5LP8jh.mjs +12 -0
- package/token-spacing.entry-YJWgDaTr.js +1 -0
- package/{token-typography.entry-qTyV0EeH.mjs → token-typography.entry-CKyKPdVF.mjs} +2 -2
- package/{token-typography.entry-DddK_fiy.js → token-typography.entry-CuHfxHRU.js} +1 -1
- package/color-primary-palette_6.entry-CYSEDId9.js +0 -1
- package/correct-use-of-colors.entry-B36yaMb6.js +0 -1
- package/correct-use-of-colors.entry-C2K5ii07.mjs +0 -59
- package/eds-accordion_13.entry-BwXBZQ7p.mjs +0 -8044
- package/eds-accordion_13.entry-DuX3jvBd.js +0 -7375
- package/eds-block-break.entry-1HfuhJmn.mjs +0 -13
- package/eds-block-break.entry-DQDjLThR.js +0 -1
- package/eds-breadcrumb.entry-Oe7Iu_rp.js +0 -1
- package/eds-dropdown_2.entry-Dhtc1LQe.js +0 -1
- package/eds-dropdown_2.entry-Ds54Abix.mjs +0 -115
- package/eds-footer.entry-CKr0MOpU.mjs +0 -22
- package/eds-footer.entry-DuNEl6BR.js +0 -1
- package/eds-frame.entry-BE9_G-56.js +0 -1
- package/eds-frame.entry-COwMtc5z.mjs +0 -74
- package/eds-fullscreen-menu.entry-CRIb_lLm.js +0 -1
- package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +0 -74
- package/eds-header.entry-38uAVZoC.js +0 -2
- package/eds-header.entry-C0qfjzDY.mjs +0 -75
- package/eds-icon-arrow-right.entry-Bv_6skZy.js +0 -1
- package/eds-icon-arrow-right.entry-DNkmpAdY.mjs +0 -13
- package/eds-icon-bluesky.entry-B_WksyEk.mjs +0 -13
- package/eds-icon-chevron-down.entry-DGjMxTKO.mjs +0 -13
- package/eds-icon-chevron-up.entry-DGt49ffi.js +0 -1
- package/eds-icon-chevron-up.entry-NPODej6j.mjs +0 -13
- package/eds-icon-close.entry-BQULA4ki.mjs +0 -13
- package/eds-icon-copy.entry-Di_H0U8v.mjs +0 -13
- package/eds-icon-copy.entry-PvAtojYn.js +0 -1
- package/eds-icon-eu.entry-BTzpJByN.mjs +0 -13
- package/eds-icon-eu.entry-D77vjTJ9.js +0 -1
- package/eds-icon-linkedin.entry-BI2sjTDa.mjs +0 -13
- package/eds-icon-loader.entry-BoQTR6PV.mjs +0 -13
- package/eds-icon-loader.entry-Bp-ZxeW7.js +0 -1
- package/eds-icon-mastodon.entry-Cm8XCAqa.mjs +0 -13
- package/eds-icon-menu.entry-C7HmF2n5.mjs +0 -13
- package/eds-icon-search.entry-BrANR30M.mjs +0 -13
- package/eds-icon-search.entry-CubLvPO7.js +0 -1
- package/eds-icon-success.entry-CtMWWFTW.mjs +0 -13
- package/eds-icon-twitter.entry-BnhBJxrn.js +0 -1
- package/eds-icon-twitter.entry-DHTwTPKu.mjs +0 -13
- package/eds-icon-user.entry-LTXtb_m4.mjs +0 -13
- package/eds-input_7.entry-Bo9-yfaP.js +0 -7167
- package/eds-input_7.entry-CCX6iGUA.mjs +0 -7373
- package/eds-login.entry-CB_gy86p.mjs +0 -58
- package/eds-login.entry-CDj80EGl.js +0 -1
- package/eds-logo-variations.entry-AbwI_N4g.mjs +0 -22
- package/eds-logo.entry-C4YV268f.mjs +0 -61
- package/eds-logo.entry-D-2GjdZl.js +0 -1
- package/eds-navigator.entry-Bd0BYBJE.js +0 -1
- package/eds-navigator.entry-DJHFUppb.mjs +0 -33
- package/eds-pagination_2.entry-N7stHjY-.js +0 -1
- package/eds-pagination_2.entry-T_lnxySd.mjs +0 -249
- package/eds-rating.entry-C1djorgY.js +0 -1
- package/eds-rating.entry-DJbkld-l.mjs +0 -48
- package/eds-social-networks.entry-CWw8CODU.mjs +0 -50
- package/eds-social-networks.entry-CveQgGlC.js +0 -1
- package/eds-steps.entry-NC8mexCJ.js +0 -1
- package/eds-tab.entry-7_C7zAnd.mjs +0 -31
- package/eds-tab.entry-BI3X5Amp.js +0 -1
- package/eds-tabs-content.entry-BYK_ciTB.mjs +0 -106
- package/eds-tabs-content.entry-FqonRXn9.js +0 -1
- package/eds-tabs.entry-CCGBUoii.mjs +0 -112
- package/eds-tabs.entry-VauMxz1h.js +0 -1
- package/eds-timeline.entry-B-eABvy-.mjs +0 -51
- package/eds-timeline.entry-UjKckHoD.js +0 -1
- package/eds-trl.entry-C1CKXjzi.mjs +0 -34
- package/eds-trl.entry-DdPaX9aY.js +0 -1
- package/eds-user.entry-BX3nKCHB.mjs +0 -66
- package/eds-user.entry-CyEG-Wtm.js +0 -1
- package/incorrect-use-of-colors.entry-BhygRTdu.js +0 -1
- package/incorrect-use-of-colors.entry-QkMrxvFS.mjs +0 -42
- package/index-DvG3cC-8.js +0 -21
- package/keycloak-d502ec16-m7LwS-Gh.js +0 -9
- package/logo-variations-horizontal_2.entry-DA_yMnFa.mjs +0 -29
- package/logo-variations-horizontal_2.entry-G3ih093R.js +0 -7
- package/logo-wrong-usage.entry-BoBmwzLl.mjs +0 -14
- package/logo-wrong-usage.entry-l4pJC0KB.js +0 -1
- package/token-ratios.entry-hdef-MAq.js +0 -1
- package/token-spacing.entry-YXQwnYx0.mjs +0 -12
- package/token-spacing.entry-xhNHm9Tw.js +0 -1
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { t as
|
|
3
|
-
import { s
|
|
4
|
-
|
|
1
|
+
import { r as g, c as x, h as o, g as b } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
import { t as h } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
3
|
+
import { s } from "./analytics-44b1416b-3vYuu4Xs.mjs";
|
|
4
|
+
import { p as f } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
5
|
+
import { v as m, b as p, a as u } from "./formUtils-ac68474d-D2e59S7S.mjs";
|
|
6
|
+
async function y(e) {
|
|
7
|
+
const i = await e.json().catch(() => ({}));
|
|
8
|
+
return e.ok ? i : null;
|
|
9
|
+
}
|
|
10
|
+
async function a(e, i, n = {}) {
|
|
11
|
+
const r = i instanceof FormData ? n.headers || {} : Object.assign({ "Content-Type": "application/json" }, n.headers), l = await fetch(e, {
|
|
12
|
+
method: "POST",
|
|
13
|
+
headers: r,
|
|
14
|
+
body: i instanceof FormData ? i : JSON.stringify(i)
|
|
15
|
+
});
|
|
16
|
+
return y(l);
|
|
17
|
+
}
|
|
18
|
+
const v = `@font-face {
|
|
5
19
|
font-family: "Inter";
|
|
6
20
|
font-weight: 100 900;
|
|
7
21
|
font-display: swap;
|
|
@@ -7153,180 +7167,181 @@ const m = `@font-face {
|
|
|
7153
7167
|
padding-right: 0rem;
|
|
7154
7168
|
}
|
|
7155
7169
|
}
|
|
7156
|
-
`,
|
|
7170
|
+
`, w = v, k = class {
|
|
7157
7171
|
constructor(e) {
|
|
7158
|
-
|
|
7159
|
-
const i = r.target;
|
|
7160
|
-
this.values = Object.assign(Object.assign({}, this.values), { [n.name]: i.value });
|
|
7161
|
-
const l = Object.assign({}, this.errors);
|
|
7162
|
-
if (n.type === "checkbox" || n.type === "radio")
|
|
7163
|
-
if (n.options) {
|
|
7164
|
-
const t = this.validateFieldGroup(n.name, n.type, n.required);
|
|
7165
|
-
t.length > 0 ? l[n.name] = t : delete l[n.name];
|
|
7166
|
-
} else {
|
|
7167
|
-
const t = this.validateSingleBox(n.name, n.required);
|
|
7168
|
-
t.length > 0 ? l[n.name] = t : delete l[n.name];
|
|
7169
|
-
}
|
|
7170
|
-
else {
|
|
7171
|
-
const t = this.validateField(n.name, i.value, n.type, n.required, n.maxlength);
|
|
7172
|
-
t.length > 0 ? l[n.name] = t : delete l[n.name];
|
|
7173
|
-
}
|
|
7174
|
-
this.errors = l, this.hasError = Object.keys(l).length > 0;
|
|
7175
|
-
}, this.handleSubmit = async (r) => {
|
|
7176
|
-
var n, i, l;
|
|
7177
|
-
if (r.preventDefault(), this.isSubmitting)
|
|
7178
|
-
return;
|
|
7179
|
-
if (this.validateForm(), this.hasError) {
|
|
7180
|
-
x({
|
|
7181
|
-
category: "ui-component",
|
|
7182
|
-
parentContext: null,
|
|
7183
|
-
tag: this.el.tagName.toLowerCase(),
|
|
7184
|
-
name: `${(n = this.submitBtnLabel) === null || n === void 0 ? void 0 : n.toLowerCase()}/error` || "",
|
|
7185
|
-
action: "click"
|
|
7186
|
-
}), this.alertMessage = this.errorMessage;
|
|
7187
|
-
return;
|
|
7188
|
-
}
|
|
7189
|
-
this.isSubmitting = !0, this.formSubmitted = !1, this.alertMessage = null, this.errors = {};
|
|
7190
|
-
const t = await this.getFormData();
|
|
7191
|
-
this.setFormUrl && typeof window < "u" && t.set("form_url", window.location.href), this.authUser && t.set("form_user", (i = this.authUser) === null || i === void 0 ? void 0 : i.email);
|
|
7192
|
-
const d = this.coupleAuth ? { Authorization: `Bearer ${this.authUser.token}` } : {};
|
|
7193
|
-
try {
|
|
7194
|
-
const o = await fetch(this.endpoint, {
|
|
7195
|
-
method: "POST",
|
|
7196
|
-
body: t,
|
|
7197
|
-
headers: d
|
|
7198
|
-
});
|
|
7199
|
-
if (!o.ok) {
|
|
7200
|
-
const c = await o.json();
|
|
7201
|
-
this.hasError = !0, g.show(c.error || this.errorMessage, "error");
|
|
7202
|
-
return;
|
|
7203
|
-
}
|
|
7204
|
-
const a = await o.json();
|
|
7205
|
-
this.formSubmitted = !0, g.show(a.message || this.successMessage, "success"), this.formEl.reset(), x({
|
|
7206
|
-
category: "ui-component",
|
|
7207
|
-
parentContext: null,
|
|
7208
|
-
tag: this.el.tagName.toLowerCase(),
|
|
7209
|
-
name: `${(l = this.submitBtnLabel) === null || l === void 0 ? void 0 : l.toLowerCase()}/success` || "",
|
|
7210
|
-
action: "click"
|
|
7211
|
-
});
|
|
7212
|
-
} catch (o) {
|
|
7213
|
-
this.hasError = !0, g.show(`${o}`, "error");
|
|
7214
|
-
} finally {
|
|
7215
|
-
this.isSubmitting = !1, this.formSubmitting.emit(this.isSubmitting);
|
|
7216
|
-
}
|
|
7217
|
-
}, this.setFormUrl = !0, this.submitBtn = !0, this.submitBtnLabel = "Submit", this.successMessage = "Your message has been sent.", this.errorMessage = "Some fields in your form are incorrect.", this.submitBtnHintMessage = "To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.", this.endpoint = void 0, this.name = "form", this.fields = [], this.values = {}, this.coupleAuth = !1, this.formSubmitted = !1, this.hasError = !1, this.errors = {}, this.isSubmitting = !1, this.alertMessage = null, this.isAuthenticated = !1, this.authUser = void 0, this.parsedFields = [];
|
|
7172
|
+
g(this, e), this.form = x(this, "form", 7), this.setFormUrl = !0, this.submitBtn = !0, this.submitBtnLabel = "Submit", this.successMessage = "Your message has been sent.", this.errorMessage = "Some fields in your form are incorrect.", this.submitBtnHintMessage = "To participate, please sign in using your EBRAINS account. If you do not have an account yet, you can easily create one on the EBRAINS portal.", this.endpoint = void 0, this.name = "eds-form", this.fields = [], this.coupleAuth = !1, this.user = null, this.draft = !1, this.draftData = {}, this.values = {}, this.formSubmitted = !1, this.hasError = !1, this.errors = {}, this.isSubmitting = !1, this.alertMessage = null, this.isAuthenticated = !1, this.parsedFields = [];
|
|
7218
7173
|
}
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7174
|
+
async componentWillLoad() {
|
|
7175
|
+
this.parseFields(this.fields), this.el.querySelectorAll("eds-button").forEach((i) => {
|
|
7176
|
+
this.emitContext(i);
|
|
7177
|
+
});
|
|
7222
7178
|
}
|
|
7223
|
-
componentDidLoad() {
|
|
7224
|
-
this.
|
|
7179
|
+
async componentDidLoad() {
|
|
7180
|
+
this.shouldFormProcessDraft && this.loadDraft();
|
|
7225
7181
|
}
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7182
|
+
get shouldFormAcceptDraft() {
|
|
7183
|
+
var e;
|
|
7184
|
+
return !!(!((e = this.user) === null || e === void 0) && e.token && this.draft);
|
|
7185
|
+
}
|
|
7186
|
+
get shouldFormProcessDraft() {
|
|
7187
|
+
var e;
|
|
7188
|
+
return !!(!((e = this.draftData) === null || e === void 0) && e._id);
|
|
7189
|
+
}
|
|
7190
|
+
parseFields(e) {
|
|
7191
|
+
this.parsedFields = f(e);
|
|
7192
|
+
}
|
|
7193
|
+
loadDraft() {
|
|
7194
|
+
var e;
|
|
7195
|
+
if (!((e = this.draftData) === null || e === void 0) && e.completed) {
|
|
7196
|
+
this.formSubmitted = !0, h.show(this.draftData.message, "success"), this.formEl.reset();
|
|
7197
|
+
return;
|
|
7198
|
+
}
|
|
7199
|
+
this.populateFormWithDraftData(this.draftData);
|
|
7239
7200
|
}
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
const t = Array.from(this.formEl.querySelectorAll("eds-input-field")).filter((o) => {
|
|
7247
|
-
var a, c;
|
|
7248
|
-
return ((c = (a = o.shadowRoot) === null || a === void 0 ? void 0 : a.querySelectorAll(`input[name="${e}"]`)) === null || c === void 0 ? void 0 : c.length) > 0;
|
|
7249
|
-
}).flatMap((o) => {
|
|
7250
|
-
var a;
|
|
7251
|
-
return Array.from(((a = o.shadowRoot) === null || a === void 0 ? void 0 : a.querySelectorAll(`input[name="${e}"]`)) || []);
|
|
7252
|
-
}).some((o) => o.checked), d = [];
|
|
7253
|
-
return n && !t && d.push(`At least one option in ${e} is required.`), d;
|
|
7254
|
-
}
|
|
7255
|
-
validateSingleBox(e, r) {
|
|
7256
|
-
var n;
|
|
7257
|
-
const i = [], l = Array.from(this.formEl.querySelectorAll("eds-input-field")).find((d) => {
|
|
7258
|
-
var o;
|
|
7259
|
-
return (o = d.shadowRoot) === null || o === void 0 ? void 0 : o.querySelector(`[name="${e}"]`);
|
|
7201
|
+
emitContext(e) {
|
|
7202
|
+
const i = new CustomEvent("parentContext", {
|
|
7203
|
+
detail: {
|
|
7204
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
7205
|
+
identifier: null
|
|
7206
|
+
}
|
|
7260
7207
|
});
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
return
|
|
7208
|
+
e.dispatchEvent(i);
|
|
7209
|
+
}
|
|
7210
|
+
isFieldVisible(e) {
|
|
7211
|
+
return e.condition ? this.values[e.condition.field] === e.condition.value : !0;
|
|
7265
7212
|
}
|
|
7266
7213
|
validateForm() {
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
if (r) {
|
|
7278
|
-
const n = r.value, i = this.validateField(e.name, n, e.type, e.required, e.maxlength);
|
|
7279
|
-
i.length > 0 && (this.errors[e.name] = i, this.hasError = !0);
|
|
7280
|
-
}
|
|
7281
|
-
}
|
|
7214
|
+
const { errors: e, hasError: i } = m(this.parsedFields, this.formEl, this.values, (n, r) => n.condition ? r[n.condition.field] === n.condition.value : !0);
|
|
7215
|
+
this.errors = e, this.hasError = i;
|
|
7216
|
+
}
|
|
7217
|
+
populateFormWithDraftData(e) {
|
|
7218
|
+
const { updatedValues: i } = p({
|
|
7219
|
+
draftData: e,
|
|
7220
|
+
parsedFields: this.parsedFields,
|
|
7221
|
+
currentValues: this.values,
|
|
7222
|
+
formEl: this.formEl,
|
|
7223
|
+
isFieldVisible: (n, r) => n.condition ? r[n.condition.field] === n.condition.value : !0
|
|
7282
7224
|
});
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
const i = n.shadowRoot.querySelector("input, textarea, select");
|
|
7300
|
-
if (i && i.name)
|
|
7301
|
-
if (i.type === "checkbox" || i.type === "radio") {
|
|
7302
|
-
const t = Array.from(n.shadowRoot.querySelectorAll(`input[name="${i.name}"]:checked`)).map((d) => d.value);
|
|
7303
|
-
e.append(i.name, t.join(","));
|
|
7304
|
-
} else if (i.type === "file") {
|
|
7305
|
-
const l = i;
|
|
7306
|
-
l.files && l.files.length > 0 && Array.from(l.files).forEach((t) => {
|
|
7307
|
-
e.append(l.name, t);
|
|
7225
|
+
this.values = i;
|
|
7226
|
+
}
|
|
7227
|
+
getFormData() {
|
|
7228
|
+
var e;
|
|
7229
|
+
const i = new FormData();
|
|
7230
|
+
return i.append("form_name", this.name), this.setFormUrl && typeof window < "u" && i.set("form_url", window.location.href), this.user && i.set("form_user", (e = this.user) === null || e === void 0 ? void 0 : e.email), Array.from(this.formEl.querySelectorAll("eds-input-field")).forEach((r) => {
|
|
7231
|
+
if (r.shadowRoot) {
|
|
7232
|
+
const l = r.shadowRoot.querySelector("input, textarea, select");
|
|
7233
|
+
if (l && l.name)
|
|
7234
|
+
if (l.type === "checkbox" || l.type === "radio") {
|
|
7235
|
+
const d = Array.from(r.shadowRoot.querySelectorAll(`input[name="${l.name}"]:checked`)).map((c) => c.value);
|
|
7236
|
+
i.append(l.name, d.join(","));
|
|
7237
|
+
} else if (l.type === "file") {
|
|
7238
|
+
const t = l;
|
|
7239
|
+
t.files && t.files.length > 0 && Array.from(t.files).forEach((d) => {
|
|
7240
|
+
i.append(t.name, d);
|
|
7308
7241
|
});
|
|
7309
7242
|
} else
|
|
7310
|
-
|
|
7243
|
+
i.append(l.name, l.value);
|
|
7311
7244
|
}
|
|
7312
|
-
}),
|
|
7245
|
+
}), i;
|
|
7246
|
+
}
|
|
7247
|
+
handleChange(e, i) {
|
|
7248
|
+
const n = e.target;
|
|
7249
|
+
this.values = Object.assign(Object.assign({}, this.values), { [i.name]: n.value }), this.form.emit({
|
|
7250
|
+
event: "change",
|
|
7251
|
+
field: i.name,
|
|
7252
|
+
value: n.value,
|
|
7253
|
+
message: `${i.name} updated`,
|
|
7254
|
+
data: this.getFormData()
|
|
7255
|
+
}), this.shouldFormAcceptDraft && this.postFormDataWithoutValidation();
|
|
7256
|
+
}
|
|
7257
|
+
handleInput(e, i) {
|
|
7258
|
+
const n = e.target;
|
|
7259
|
+
this.values = Object.assign(Object.assign({}, this.values), { [i.name]: n.value });
|
|
7260
|
+
const r = Object.assign({}, this.errors), l = u(i, n.value, this.formEl);
|
|
7261
|
+
l.length > 0 ? r[i.name] = l : delete r[i.name], this.errors = r, this.hasError = Object.keys(r).length > 0;
|
|
7262
|
+
}
|
|
7263
|
+
async handleSubmit(e) {
|
|
7264
|
+
var i, n;
|
|
7265
|
+
if (e.preventDefault(), this.isSubmitting)
|
|
7266
|
+
return;
|
|
7267
|
+
if (this.validateForm(), this.hasError) {
|
|
7268
|
+
this.form.emit({
|
|
7269
|
+
event: "submit",
|
|
7270
|
+
validated: !1,
|
|
7271
|
+
success: !1,
|
|
7272
|
+
message: this.errorMessage,
|
|
7273
|
+
data: this.getFormData()
|
|
7274
|
+
}), s({
|
|
7275
|
+
category: "ui-component",
|
|
7276
|
+
parentContext: null,
|
|
7277
|
+
tag: this.el.tagName.toLowerCase(),
|
|
7278
|
+
name: `${(i = this.submitBtnLabel) === null || i === void 0 ? void 0 : i.toLowerCase()}/error` || "",
|
|
7279
|
+
action: "click"
|
|
7280
|
+
}), this.alertMessage = this.errorMessage;
|
|
7281
|
+
return;
|
|
7282
|
+
}
|
|
7283
|
+
this.isSubmitting = !0, this.formSubmitted = !1, this.alertMessage = null, this.errors = {};
|
|
7284
|
+
const r = await this.getFormData();
|
|
7285
|
+
if (r.set("draft", "false"), r.set("completed", "true"), !this.endpoint) {
|
|
7286
|
+
this.form.emit({
|
|
7287
|
+
event: "submit",
|
|
7288
|
+
success: !0,
|
|
7289
|
+
validated: !0,
|
|
7290
|
+
message: "Form data validated successfully",
|
|
7291
|
+
data: r
|
|
7292
|
+
}), this.formSubmitted = !0, this.formEl.reset(), this.isSubmitting = !1;
|
|
7293
|
+
return;
|
|
7294
|
+
}
|
|
7295
|
+
const l = { Authorization: `Bearer ${this.user.token}` };
|
|
7296
|
+
try {
|
|
7297
|
+
const t = await a(this.endpoint, r, { headers: l });
|
|
7298
|
+
this.form.emit({
|
|
7299
|
+
event: "submit",
|
|
7300
|
+
success: !0,
|
|
7301
|
+
validated: !0,
|
|
7302
|
+
message: t.message,
|
|
7303
|
+
data: r
|
|
7304
|
+
}), this.formSubmitted = !0, this.formEl.reset(), s({
|
|
7305
|
+
category: "ui-component",
|
|
7306
|
+
parentContext: null,
|
|
7307
|
+
tag: this.el.tagName.toLowerCase(),
|
|
7308
|
+
name: `${(n = this.submitBtnLabel) === null || n === void 0 ? void 0 : n.toLowerCase()}/success` || "",
|
|
7309
|
+
action: "click"
|
|
7310
|
+
});
|
|
7311
|
+
} catch (t) {
|
|
7312
|
+
this.hasError = !0, this.form.emit({
|
|
7313
|
+
event: "submit",
|
|
7314
|
+
success: !1,
|
|
7315
|
+
validated: !0,
|
|
7316
|
+
message: t,
|
|
7317
|
+
data: r
|
|
7318
|
+
});
|
|
7319
|
+
} finally {
|
|
7320
|
+
this.isSubmitting = !1;
|
|
7321
|
+
}
|
|
7313
7322
|
}
|
|
7314
|
-
|
|
7323
|
+
async postFormDataWithoutValidation() {
|
|
7324
|
+
var e;
|
|
7325
|
+
if (!this.endpoint)
|
|
7326
|
+
return;
|
|
7327
|
+
const i = await this.getFormData();
|
|
7328
|
+
i.set("draft", this.draft.toString());
|
|
7329
|
+
const n = { Authorization: `Bearer ${(e = this.user) === null || e === void 0 ? void 0 : e.token}` };
|
|
7315
7330
|
try {
|
|
7316
|
-
|
|
7331
|
+
await a(this.endpoint, i, { headers: n });
|
|
7317
7332
|
} catch (r) {
|
|
7318
|
-
|
|
7333
|
+
throw r;
|
|
7319
7334
|
}
|
|
7320
7335
|
}
|
|
7321
7336
|
render() {
|
|
7322
|
-
const e = this.parsedFields.filter((n) => n.type === "hidden"),
|
|
7323
|
-
return
|
|
7337
|
+
const e = this.parsedFields.filter((n) => n.type === "hidden"), i = this.parsedFields.filter((n) => n.type !== "hidden");
|
|
7338
|
+
return o("form", { key: "7ea50f19b8810fb0294bc8527d1c86e74dfc2b69", ref: (n) => this.formEl = n, enctype: "multipart/form-data", autocomplete: "on", method: "post", onSubmit: this.handleSubmit }, o("div", { key: "29e821a2eb706c51fa303b1abf645baeea5ae9d4" }, o("slot", { key: "b45d74e9a147ab1a932891210c7813d3bd118b07" }), e.map((n, r) => o("eds-input", { key: r, type: "hidden", name: n.name, value: n.value })), i.map((n, r) => {
|
|
7324
7339
|
var l, t;
|
|
7325
|
-
return this.isFieldVisible(n) ?
|
|
7326
|
-
})), this.submitBtn &&
|
|
7340
|
+
return this.isFieldVisible(n) ? o("eds-input-field", { key: r, name: n.name, id: `${this.name}_${n.name}`, label: n.label, type: n.type, icon: n.icon || null, required: n.required, maxLength: n.maxlength, hint: n.hint, error: ((l = this.errors[n.name]) === null || l === void 0 ? void 0 : l.length) > 0, errorMessage: (t = this.errors[n.name]) === null || t === void 0 ? void 0 : t.join("<br />"), onInput: (d) => this.handleInput(d, n), onChange: (d) => this.handleChange(d, n), class: r > 0 ? "mt-20" : "", options: n.options }) : null;
|
|
7341
|
+
})), this.submitBtn && o("div", { key: "0a9b9027fc235cd099cc40903bd6711873b9868b", class: "mt-20" }, o("eds-button", { key: "f7181c19d04a117817f556753cc95c1f49c9fa1c", intent: "primary", label: this.submitBtnLabel, disabled: this.isSubmitting || this.coupleAuth && !this.isAuthenticated || this.formSubmitted, loading: this.isSubmitting, onClick: (n) => this.handleSubmit(n) }), this.coupleAuth && !this.isAuthenticated ? o("p", { class: "f-ui-05 text-lighter mt-8 ml-8" }, this.submitBtnHintMessage) : null), this.alertMessage && (this.formSubmitted || this.hasError) && o("div", { key: "b999356ec8fc57fc85c2f672a94e95f834d153ea", class: "mt-20" }, o("eds-alert", { key: "5a743b01991fb5d8f5358abc44639e790f5264ea", message: this.alertMessage, intent: this.hasError ? "error" : "success", direction: "horizontal" })));
|
|
7327
7342
|
}
|
|
7328
7343
|
get el() {
|
|
7329
|
-
return
|
|
7344
|
+
return b(this);
|
|
7330
7345
|
}
|
|
7331
7346
|
static get watchers() {
|
|
7332
7347
|
return {
|
|
@@ -7334,7 +7349,7 @@ const m = `@font-face {
|
|
|
7334
7349
|
};
|
|
7335
7350
|
}
|
|
7336
7351
|
};
|
|
7337
|
-
|
|
7352
|
+
k.style = w;
|
|
7338
7353
|
export {
|
|
7339
|
-
|
|
7354
|
+
k as eds_form
|
|
7340
7355
|
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { r as i, h as e, g as o } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
const a = ".bg-inverse{background-color:var(--white)}.min-h-156{min-height:156px}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-md{border-radius:12px}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border-color:rgba(0, 0, 0, .1 )}.border-softest{border-color:rgba(0, 0, 0, .05 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.flex{display:flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.border-2{border-width:2px}.w-full{width:100%}.h-full{height:100%}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.items-center{align-items:center}.justify-between{justify-content:space-between}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.px-12{padding-left:0.75rem;padding-right:0.75rem}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.ml-auto{margin-left:auto}.border-t-2{border-top-width:2px}.border{border:1px solid rgba(0, 0, 0, .1 )}.border-2{border:1px solid rgba(0, 0, 0, .1 )}.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}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.mt-16{margin-top:1rem}", n = a, s = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
i(this, t), this.frameLabel = void 0, this.urlLabel = "Open in Storybook", this.errorMessage = "Could not load the requested Storybook content. Please check the URL or try again later.", this.storybookUrl = void 0, this.storyPath = void 0, this.intent = "strong", this.size = "auto", this.iframeError = !1;
|
|
5
|
+
}
|
|
6
|
+
componentWillLoad() {
|
|
7
|
+
this.checkIframeAvailability();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
this.el.querySelectorAll("eds-link").forEach((r) => {
|
|
11
|
+
this.emitContext(r);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
16
|
+
* This event provides context information about the breadcrumb component.
|
|
17
|
+
*
|
|
18
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
19
|
+
*/
|
|
20
|
+
emitContext(t) {
|
|
21
|
+
const r = new CustomEvent("parentContext", {
|
|
22
|
+
detail: {
|
|
23
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
24
|
+
identifier: this.frameLabel
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
t.dispatchEvent(r);
|
|
28
|
+
}
|
|
29
|
+
articleClasses() {
|
|
30
|
+
return [
|
|
31
|
+
"bg-inverse min-h-156 rounded border-softer effect-focus-within relative flex grow flex-col border-2",
|
|
32
|
+
"w-full h-full"
|
|
33
|
+
].join(" ");
|
|
34
|
+
}
|
|
35
|
+
getFrameHeight() {
|
|
36
|
+
switch (this.size) {
|
|
37
|
+
case "sm":
|
|
38
|
+
return "100px";
|
|
39
|
+
case "md":
|
|
40
|
+
return "200px";
|
|
41
|
+
case "lg":
|
|
42
|
+
return "400px";
|
|
43
|
+
case "xl":
|
|
44
|
+
return "700px";
|
|
45
|
+
default:
|
|
46
|
+
return "auto";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async checkIframeAvailability() {
|
|
50
|
+
try {
|
|
51
|
+
if (!(await fetch(this.frameSrc, { method: "GET" })).ok)
|
|
52
|
+
throw new Error("Failed to load");
|
|
53
|
+
} catch {
|
|
54
|
+
this.iframeError = !0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
get storyLink() {
|
|
58
|
+
return `${this.storybookUrl}/?path=/story/${this.storyPath}`;
|
|
59
|
+
}
|
|
60
|
+
get frameSrc() {
|
|
61
|
+
return `${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`;
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return e("div", { key: "e4b72fab30dcf1eeee6fdf3c63719599eafedb6d", class: this.articleClasses() }, e("div", { key: "f8643db32120c14dd18b3d44ae530a83e81e59e0", class: "effect-height flex items-center justify-between py-8 px-12" }, e("span", { key: "7b40c644e142e6a6356e4d6a683b9c1c57104f5d", class: "f-ui-02" }, this.frameLabel), this.iframeError ? null : e("eds-link", { label: this.urlLabel, url: this.storyLink, intent: this.intent, class: "ml-auto", external: !0, disabled: !1, icon: "arrow-diagonal" })), e("div", { key: "8a1fe80134dadd38d113968ad0c825a6f9426921", class: "border-softer" }, this.iframeError ? e("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage) : e("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: !0 })));
|
|
65
|
+
}
|
|
66
|
+
get el() {
|
|
67
|
+
return o(this);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
s.style = n;
|
|
71
|
+
export {
|
|
72
|
+
s as eds_frame
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D4alMZtT.js"),o=".bg-inverse{background-color:var(--white)}.min-h-156{min-height:156px}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-md{border-radius:12px}.border-soft{border-color:rgba(0, 0, 0, .15 )}.border-softer{border-color:rgba(0, 0, 0, .1 )}.border-softest{border-color:rgba(0, 0, 0, .05 )}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.flex{display:flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.border-2{border-width:2px}.w-full{width:100%}.h-full{height:100%}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.items-center{align-items:center}.justify-between{justify-content:space-between}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.px-12{padding-left:0.75rem;padding-right:0.75rem}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.ml-auto{margin-left:auto}.border-t-2{border-top-width:2px}.border{border:1px solid rgba(0, 0, 0, .1 )}.border-2{border:1px solid rgba(0, 0, 0, .1 )}.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}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.mt-16{margin-top:1rem}",a=o,i=class{constructor(t){e.registerInstance(this,t),this.frameLabel=void 0,this.urlLabel="Open in Storybook",this.errorMessage="Could not load the requested Storybook content. Please check the URL or try again later.",this.storybookUrl=void 0,this.storyPath=void 0,this.intent="strong",this.size="auto",this.iframeError=!1}componentWillLoad(){this.checkIframeAvailability()}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(r=>{this.emitContext(r)})}emitContext(t){const r=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.frameLabel}});t.dispatchEvent(r)}articleClasses(){return["bg-inverse min-h-156 rounded border-softer effect-focus-within relative flex grow flex-col border-2","w-full h-full"].join(" ")}getFrameHeight(){switch(this.size){case"sm":return"100px";case"md":return"200px";case"lg":return"400px";case"xl":return"700px";default:return"auto"}}async checkIframeAvailability(){try{if(!(await fetch(this.frameSrc,{method:"GET"})).ok)throw new Error("Failed to load")}catch{this.iframeError=!0}}get storyLink(){return`${this.storybookUrl}/?path=/story/${this.storyPath}`}get frameSrc(){return`${this.storybookUrl}/iframe.html?id=${this.storyPath}&viewMode=story`}render(){return e.h("div",{key:"e4b72fab30dcf1eeee6fdf3c63719599eafedb6d",class:this.articleClasses()},e.h("div",{key:"f8643db32120c14dd18b3d44ae530a83e81e59e0",class:"effect-height flex items-center justify-between py-8 px-12"},e.h("span",{key:"7b40c644e142e6a6356e4d6a683b9c1c57104f5d",class:"f-ui-02"},this.frameLabel),this.iframeError?null:e.h("eds-link",{label:this.urlLabel,url:this.storyLink,intent:this.intent,class:"ml-auto",external:!0,disabled:!1,icon:"arrow-diagonal"})),e.h("div",{key:"8a1fe80134dadd38d113968ad0c825a6f9426921",class:"border-softer"},this.iframeError?e.h("div",{class:"container ml-8 mr-8 mt-16"},this.errorMessage):e.h("iframe",{src:this.frameSrc,width:"100%",height:this.getFrameHeight(),title:this.frameLabel,frameBorder:"0",allowFullScreen:!0})))}get el(){return e.getElement(this)}};i.style=a;exports.eds_frame=i;
|
package/{eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs → eds-icon-arrow-diagonal.entry-BD3xdvR4.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, h as s } from "./index-
|
|
1
|
+
import { r, h as s } from "./index-E1PpO1J3.mjs";
|
|
2
2
|
import { a as o } from "./arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs";
|
|
3
3
|
const t = class {
|
|
4
4
|
constructor(a) {
|
|
5
5
|
r(this, a), this.addClass = "";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return s("span", { key: "
|
|
8
|
+
return s("span", { key: "61fba958a683480dfd28e503b65a7dceb6640f46", class: this.addClass, innerHTML: o });
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
package/{eds-icon-arrow-diagonal.entry-BTLKc1cS.js → eds-icon-arrow-diagonal.entry-DkQFuVkT.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-D4alMZtT.js"),e=require("./arrow-diagonal-black-8f0494c3-DqsB6ni-.js"),s=class{constructor(r){a.registerInstance(this,r),this.addClass=""}render(){return a.h("span",{key:"61fba958a683480dfd28e503b65a7dceb6640f46",class:this.addClass,innerHTML:e.arrowDiagonal})}};exports.eds_icon_arrow_diagonal=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-D4alMZtT.js"),s=require("./arrow-right-9322ba8a-DBcxNU_p.js"),t=class{constructor(e){r.registerInstance(this,e),this.class=""}render(){return r.h("span",{key:"823be807e649d4ddbd41c0628e2fda249a8c6f74",class:this.class,innerHTML:s.arrowRight})}};exports.eds_icon_arrow_right=t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as s, h as t } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
import { a } from "./arrow-right-9322ba8a-DHq-_PPe.mjs";
|
|
3
|
+
const c = class {
|
|
4
|
+
constructor(r) {
|
|
5
|
+
s(this, r), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return t("span", { key: "823be807e649d4ddbd41c0628e2fda249a8c6f74", class: this.class, innerHTML: a });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
c as eds_icon_arrow_right
|
|
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-D4alMZtT.js"),c=require("./bluesky-cc5edd2d-DaFQc-pr.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"a06ab2e79a1ec7603244ec09649ccc2c9ea1950c",class:this.class,innerHTML:c.bluesky})}};exports.eds_icon_bluesky=r;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as c, h as e } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
import { b as r } from "./bluesky-cc5edd2d-DfuDDO5h.mjs";
|
|
3
|
+
const n = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
c(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return e("span", { key: "a06ab2e79a1ec7603244ec09649ccc2c9ea1950c", class: this.class, innerHTML: r });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as eds_icon_bluesky
|
|
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-D4alMZtT.js"),s=require("./chevron-down-6144c823-D_8976Ke.js"),r=class{constructor(n){e.registerInstance(this,n),this.class=""}render(){return e.h("span",{key:"c723d7f1bbd596063ae7e66123b8038af5320a54",class:this.class,innerHTML:s.chevronDown})}};exports.eds_icon_chevron_down=r;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r, h as n } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
import { c as o } from "./chevron-down-6144c823-DWGlv9eV.mjs";
|
|
3
|
+
const a = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
r(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return n("span", { key: "c723d7f1bbd596063ae7e66123b8038af5320a54", class: this.class, innerHTML: o });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as eds_icon_chevron_down
|
|
13
|
+
};
|
package/{eds-icon-chevron-left.entry-CRr4AWkS.mjs → eds-icon-chevron-left.entry-Dt2WsKob.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as e, h as r } from "./index-
|
|
1
|
+
import { r as e, h as r } from "./index-E1PpO1J3.mjs";
|
|
2
2
|
import { c as t } from "./chevron-left-ca6c66e1-DANhLw_T.mjs";
|
|
3
3
|
const o = class {
|
|
4
4
|
constructor(s) {
|
|
5
5
|
e(this, s), this.class = "";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return r("span", { key: "
|
|
8
|
+
return r("span", { key: "5547e9d98f781dc03e88a014f726b3a402e6425d", class: this.class, innerHTML: t });
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
@@ -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-D4alMZtT.js"),r=require("./chevron-left-ca6c66e1-uCH5SUhm.js"),t=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"5547e9d98f781dc03e88a014f726b3a402e6425d",class:this.class,innerHTML:r.chevronLeft})}};exports.eds_icon_chevron_left=t;
|
package/{eds-icon-chevron-right.entry-YLnmNxjo.mjs → eds-icon-chevron-right.entry-BG7_qznz.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r, h as c } from "./index-
|
|
1
|
+
import { r, h as c } from "./index-E1PpO1J3.mjs";
|
|
2
2
|
import { c as t } from "./chevron-right-b88ed2d4-CgEZBvy7.mjs";
|
|
3
3
|
const o = class {
|
|
4
4
|
constructor(s) {
|
|
5
5
|
r(this, s), this.class = "";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return c("span", { key: "
|
|
8
|
+
return c("span", { key: "177f447969a48957c54d011bfb72693731ecc1cf", class: this.class, innerHTML: t });
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|
package/{eds-icon-chevron-right.entry-0FshDV46.js → eds-icon-chevron-right.entry-CjhJFKog.js}
RENAMED
|
@@ -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-D4alMZtT.js"),s=require("./chevron-right-b88ed2d4-C7dkTMvP.js"),c=class{constructor(r){e.registerInstance(this,r),this.class=""}render(){return e.h("span",{key:"177f447969a48957c54d011bfb72693731ecc1cf",class:this.class,innerHTML:s.chevronRight})}};exports.eds_icon_chevron_right=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r, h as e } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
import { c } from "./chevron-up-c66bd477-CETJkshq.mjs";
|
|
3
|
+
const o = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
r(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return e("span", { key: "7b8f0aa2da992611e0c908ca0785abce6e1ae189", class: this.class, innerHTML: c });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
o as eds_icon_chevron_up
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D4alMZtT.js"),r=require("./chevron-up-c66bd477-ByW7R48t.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"7b8f0aa2da992611e0c908ca0785abce6e1ae189",class:this.class,innerHTML:r.chevronUp})}};exports.eds_icon_chevron_up=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as r } from "./index-E1PpO1J3.mjs";
|
|
2
|
+
import { c } from "./close-87fc0d63-DtDU2HIU.mjs";
|
|
3
|
+
const n = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "8e4dedef0fe684fdd6078db8005661e49207da55", class: this.class, innerHTML: c });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as eds_icon_close
|
|
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-D4alMZtT.js"),c=require("./close-87fc0d63-Cbd-ScJr.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"8e4dedef0fe684fdd6078db8005661e49207da55",class:this.class,innerHTML:c.close})}};exports.eds_icon_close=r;
|