@ebrains/vue 0.9.2-beta → 0.9.3-beta
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-44b1416b-3vYuu4Xs.mjs +28 -0
- package/analytics-44b1416b-ol77SdQE.js +1 -0
- package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +4 -0
- package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +1 -0
- package/arrow-right-9322ba8a-DBcxNU_p.js +3 -0
- package/arrow-right-9322ba8a-DHq-_PPe.mjs +6 -0
- package/bluesky-cc5edd2d-DaFQc-pr.js +12 -0
- package/bluesky-cc5edd2d-DfuDDO5h.mjs +15 -0
- package/bookmark-c200037c-CIcZ51ZQ.js +14 -0
- package/bookmark-c200037c-ClkCtyRY.mjs +17 -0
- package/chevron-down-6144c823-DWGlv9eV.mjs +13 -0
- package/chevron-down-6144c823-D_8976Ke.js +10 -0
- package/chevron-left-ca6c66e1-DANhLw_T.mjs +12 -0
- package/chevron-left-ca6c66e1-uCH5SUhm.js +9 -0
- package/chevron-right-b88ed2d4-C7dkTMvP.js +3 -0
- package/chevron-right-b88ed2d4-CgEZBvy7.mjs +6 -0
- package/chevron-up-c66bd477-ByW7R48t.js +10 -0
- package/chevron-up-c66bd477-CETJkshq.mjs +13 -0
- package/close-87fc0d63-Cbd-ScJr.js +3 -0
- package/close-87fc0d63-DtDU2HIU.mjs +6 -0
- package/color-2554aad6-CCcV5UJZ.mjs +131 -0
- package/color-2554aad6-D1hFGX4H.js +1 -0
- package/color-primary-palette_6.entry-CloKiAKI.mjs +300 -0
- package/color-primary-palette_6.entry-DnBuZqiu.js +1 -0
- package/components-section.entry-BZl-upvI.js +162 -0
- package/components-section.entry-DEtf0V8r.mjs +351 -0
- package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
- package/copy-03b72cb6-CZAFAegx.js +3 -0
- package/correct-use-of-colors.entry-CvrVVhIA.mjs +59 -0
- package/correct-use-of-colors.entry-ajROARV6.js +1 -0
- package/docs-palettes.entry-CegYRhKo.js +1 -0
- package/docs-palettes.entry-OWUmgE8-.mjs +22 -0
- package/docs-tokens.entry-BIwcLv8t.js +1 -0
- package/docs-tokens.entry-D720jRIB.mjs +30 -0
- package/eds-accordion.entry-Ct4upGzD.mjs +48 -0
- package/eds-accordion.entry-D5Qn9bWB.js +4 -0
- package/eds-alert.entry-D9ClanEp.js +739 -0
- package/eds-alert.entry-D9R2BeLM.mjs +825 -0
- package/eds-app-root.entry-C-CwU-8Y.js +1 -0
- package/eds-app-root.entry-DPM5X6uN.mjs +25 -0
- package/eds-avatar_27.entry-7vAHtj7m.mjs +33545 -0
- package/eds-avatar_27.entry-CnmtSNAS.js +31838 -0
- package/eds-card-desc_2.entry-1GoZmzeQ.mjs +53 -0
- package/eds-card-desc_2.entry-BfOXVZi0.js +1 -0
- package/eds-card-generic.entry-BKpFgWlR.js +1 -0
- package/eds-card-generic.entry-CT7jqo3p.mjs +56 -0
- package/eds-card-project.entry-BbLZfxAE.js +1 -0
- package/eds-card-project.entry-O11d3day.mjs +44 -0
- package/eds-card-section.entry-BWDrARpV.js +1 -0
- package/eds-card-section.entry-CXFOGMeJ.mjs +30 -0
- package/eds-card-tags.entry-Debtxwjy.mjs +13 -0
- package/eds-card-tags.entry-Do7oGWtS.js +1 -0
- package/eds-card-tool.entry-CXluEgpO.mjs +56 -0
- package/eds-card-tool.entry-kxsYfCOl.js +1 -0
- package/eds-card-wrapper.entry-DnHxiCgs.js +1 -0
- package/eds-card-wrapper.entry-Dyrfqp6K.mjs +24 -0
- package/eds-code-block.entry-B2tVEczx.js +9 -0
- package/eds-code-block.entry-BIGwear1.mjs +1623 -0
- package/eds-cookies-preference.entry-BwTBWuc7.mjs +20 -0
- package/eds-cookies-preference.entry-mbjVkbaf.js +1 -0
- package/eds-feedback.entry-CxE8Mda2.js +1 -0
- package/eds-feedback.entry-DQZP2iFN.mjs +53 -0
- package/eds-frame.entry-BzGgy3Ya.mjs +67 -0
- package/eds-frame.entry-CGFInzxQ.js +1 -0
- package/eds-icon-arrow-diagonal.entry-BzMthIH3.js +1 -0
- package/eds-icon-arrow-diagonal.entry-D0nObc1G.mjs +13 -0
- package/eds-icon-arrow-right.entry-BGLDpWIT.mjs +13 -0
- package/eds-icon-arrow-right.entry-DPLcd0Dg.js +1 -0
- package/eds-icon-bluesky.entry-ZXTtFyYw.mjs +13 -0
- package/eds-icon-bluesky.entry-bnwTCSoD.js +1 -0
- package/eds-icon-bookmark.entry-BV8nKCLz.mjs +13 -0
- package/eds-icon-bookmark.entry-vBTnOEht.js +1 -0
- package/eds-icon-chevron-down.entry-9YeZRA_B.mjs +13 -0
- package/eds-icon-chevron-down.entry-BNSIoEMh.js +1 -0
- package/eds-icon-chevron-left.entry-BBKqN2RH.js +1 -0
- package/eds-icon-chevron-left.entry-Bm5LaJAt.mjs +13 -0
- package/eds-icon-chevron-right.entry-ChbDkmms.mjs +13 -0
- package/eds-icon-chevron-right.entry-CieI-tuC.js +1 -0
- package/eds-icon-chevron-up.entry-BqkKRoL-.js +1 -0
- package/eds-icon-chevron-up.entry-D3DkXrLO.mjs +13 -0
- package/eds-icon-close.entry-4xYgUnOY.js +1 -0
- package/eds-icon-close.entry-DQv18xqh.mjs +13 -0
- package/eds-icon-copy.entry-C7-kaujN.mjs +13 -0
- package/eds-icon-copy.entry-DQl13_LK.js +1 -0
- package/eds-icon-eu.entry-B8fNjCUv.js +1 -0
- package/eds-icon-eu.entry-DR5lezcj.mjs +13 -0
- package/eds-icon-external.entry-BaIofxzF.js +1 -0
- package/eds-icon-external.entry-DvY_6Ld0.mjs +13 -0
- package/eds-icon-facebook.entry-D7FANZCQ.mjs +13 -0
- package/eds-icon-facebook.entry-Do2GEkmS.js +1 -0
- package/eds-icon-gitlab.entry-D7FC3Vn4.mjs +13 -0
- package/eds-icon-gitlab.entry-p78Zzlxs.js +1 -0
- package/eds-icon-linkedin.entry-BYQGxGkX.js +1 -0
- package/eds-icon-linkedin.entry-CchbiOIO.mjs +13 -0
- package/eds-icon-loader.entry-C8zfXt5G.mjs +13 -0
- package/eds-icon-loader.entry-Cw7oYrm3.js +1 -0
- package/eds-icon-mastodon.entry-BOgFKnbj.mjs +13 -0
- package/eds-icon-mastodon.entry-C_TXVQJB.js +1 -0
- package/eds-icon-menu.entry-BtdrFvM4.js +1 -0
- package/eds-icon-menu.entry-Dl7Xqhc3.mjs +13 -0
- package/eds-icon-minus.entry-BA5Al4_F.js +1 -0
- package/eds-icon-minus.entry-Bfm78Q48.mjs +13 -0
- package/eds-icon-more.entry-CHzRpt-L.mjs +13 -0
- package/eds-icon-more.entry-mAUgJoHF.js +1 -0
- package/eds-icon-paper.entry-DEiOlvnw.mjs +13 -0
- package/eds-icon-paper.entry-DtE79_lg.js +1 -0
- package/eds-icon-plus.entry-BCc2gk-Y.js +1 -0
- package/eds-icon-plus.entry-DxdfImnp.mjs +13 -0
- package/eds-icon-portal.entry-DgJxnehb.js +1 -0
- package/eds-icon-portal.entry-DygPWj8q.mjs +13 -0
- package/eds-icon-private.entry-BtxnzDjj.js +1 -0
- package/eds-icon-private.entry-ClDqtUa4.mjs +13 -0
- package/eds-icon-public.entry-BKL5QMPS.js +1 -0
- package/eds-icon-public.entry-D0qOA8dF.mjs +13 -0
- package/eds-icon-search.entry-BPeHLF3h.js +1 -0
- package/eds-icon-search.entry-iegCSWzH.mjs +13 -0
- package/eds-icon-star.entry-BP6oBKRH.mjs +13 -0
- package/eds-icon-star.entry-DSHqvj6t.js +1 -0
- package/eds-icon-success.entry-B2vqFpAU.mjs +13 -0
- package/eds-icon-success.entry-DoaW0KlM.js +1 -0
- package/eds-icon-thumbs-down.entry-CFMyu-CY.js +1 -0
- package/eds-icon-thumbs-down.entry-CmV8Km2F.mjs +13 -0
- package/eds-icon-thumbs-up.entry-8RPnzfnW.js +1 -0
- package/eds-icon-thumbs-up.entry-DhfFxKPT.mjs +13 -0
- package/eds-icon-tutorial.entry-B3NRKCnl.mjs +13 -0
- package/eds-icon-tutorial.entry-ImfBSV9b.js +1 -0
- package/eds-icon-twitter.entry-BLvpOiN-.js +1 -0
- package/eds-icon-twitter.entry-Da3X1sWO.mjs +13 -0
- package/eds-icon-unknown.entry--9_uerA-.js +1 -0
- package/eds-icon-unknown.entry-DH3YcJSO.mjs +13 -0
- package/eds-icon-updown.entry-BU4FzzAC.js +1 -0
- package/eds-icon-updown.entry-D6t6TWtG.mjs +13 -0
- package/eds-icon-user.entry-pb-JM7tE.mjs +13 -0
- package/eds-icon-user.entry-yNOw7Z1J.js +1 -0
- package/eds-icon-youtube.entry-CIx5D-1i.mjs +13 -0
- package/eds-icon-youtube.entry-CNH9Mxfw.js +1 -0
- package/eds-login_2.entry-shWfmpH4.mjs +981 -0
- package/eds-login_2.entry-swrZnwUp.js +9 -0
- package/eds-matomo-notice.entry-DD0R8UUN.mjs +90 -0
- package/eds-matomo-notice.entry-cucI3F6F.js +1 -0
- package/eds-pagination_2.entry-Cmqe9RbB.mjs +258 -0
- package/eds-pagination_2.entry-DFO92YFs.js +1 -0
- package/eds-progress-bar.entry-CIkJEHf9.mjs +21 -0
- package/eds-progress-bar.entry-CUoQ0OmO.js +1 -0
- package/eds-rating.entry-BJZaV3ft.js +1 -0
- package/eds-rating.entry-BaneuoOA.mjs +61 -0
- package/eds-section-core_2.entry-dmjdE4gJ.mjs +39 -0
- package/eds-section-core_2.entry-wnSqKsfm.js +1 -0
- package/eds-spinner.entry-BwIR2ZO2.mjs +36 -0
- package/eds-spinner.entry-Cdu4PTNJ.js +1 -0
- package/eds-switch.entry-8g9JkW0c.js +1 -0
- package/eds-switch.entry-BOxsYeYC.mjs +20 -0
- package/eds-tabs.entry-CdlLmrmB.js +7794 -0
- package/eds-tabs.entry-DRJv1vVW.mjs +7897 -0
- package/eds-timeline.entry-AsApD57a.mjs +7839 -0
- package/eds-timeline.entry-MDj5oqZG.js +7794 -0
- package/eds-toast-manager.entry-Bri3h_MP.mjs +36 -0
- package/eds-toast-manager.entry-zrDxthPz.js +1 -0
- package/eds-toast.entry-B1RS9m4v.js +3 -0
- package/eds-toast.entry-BNYlJ84c.mjs +61 -0
- package/eds-tooltip.entry-B6UpJ0wf.js +1 -0
- package/eds-tooltip.entry-Ci5te9B_.mjs +77 -0
- package/eds-trl.entry-CuUDfGYw.js +1 -0
- package/eds-trl.entry-Dz7LP4G1.mjs +34 -0
- package/eu-9ddde93a-BFtIQw9B.js +28 -0
- package/eu-9ddde93a-ft4szvR5.mjs +31 -0
- package/facebook-9cb5c17f-BcUhbrj6.mjs +15 -0
- package/facebook-9cb5c17f-Y_gvQ682.js +12 -0
- package/generated/components.d.ts +40 -0
- package/generated/vue-component-lib/utils.d.ts +16 -0
- package/incorrect-use-of-colors.entry-CYXsk3TR.mjs +42 -0
- package/incorrect-use-of-colors.entry-CfmdbA7l.js +1 -0
- package/index-39c58238-BwYCDOHZ.mjs +44 -0
- package/index-39c58238-SQ-JC-LH.js +1 -0
- package/index-7ljGsgwC.js +21 -0
- package/index-l365C9dI.mjs +3617 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.mjs +42 -0
- package/linkedin-e8650abb-BkDrkjzY.js +26 -0
- package/linkedin-e8650abb-DYMdsale.mjs +29 -0
- package/loader-c9628637-ChpnbJkv.mjs +31 -0
- package/loader-c9628637-Vj8Wt1e8.js +28 -0
- package/logo-color-7f1fd803-CFgbXdt8.mjs +116 -0
- package/logo-color-7f1fd803-DRD3vZVn.js +113 -0
- package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +119 -0
- package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +116 -0
- package/logo-space.entry-DxZ7v-wS.js +6 -0
- package/logo-space.entry-GOUZQmu9.mjs +19 -0
- package/logo-variations-horizontal_2.entry-CRdycvC5.js +7 -0
- package/logo-variations-horizontal_2.entry-DimbU2IU.mjs +29 -0
- package/logo-variations-tabs.entry-5kLk6tXo.js +1 -0
- package/logo-variations-tabs.entry-Uc3TLufg.mjs +22 -0
- package/logo-white-no-bg-f382f86f-DXYn3NwV.js +1011 -0
- package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +1022 -0
- package/logo-wrong-usage.entry-13RSC-bu.js +1 -0
- package/logo-wrong-usage.entry-CYcqaVbn.mjs +14 -0
- package/mastodon-3703ec61-C7iI4Hk0.mjs +15 -0
- package/mastodon-3703ec61-C9v6Olc-.js +12 -0
- package/menu-340ea948-BpnYX3gY.mjs +12 -0
- package/menu-340ea948-ZdelWVw3.js +9 -0
- package/minus-b30a7c71-BPAvqHzH.mjs +12 -0
- package/minus-b30a7c71-DqCTe6Qh.js +9 -0
- package/mono-53f70232-DGi2XDlR.mjs +12 -0
- package/mono-53f70232-DgAsWvoQ.js +9 -0
- package/more-4449d549-D4HA1cRq.js +11 -0
- package/more-4449d549-rI9hOpEp.mjs +14 -0
- package/package.json +1 -1
- package/paper-8e74ea31-BvGrc1Vo.mjs +16 -0
- package/paper-8e74ea31-C4CV6tlB.js +13 -0
- package/plus-89c07be2-BTXnjg5K.js +10 -0
- package/plus-89c07be2-DyT9I4-L.mjs +13 -0
- package/portal-d6c8ce56-Cj61ldo8.mjs +19 -0
- package/portal-d6c8ce56-NpSrdNZ_.js +16 -0
- package/private-1c25ff8e-D3Fo36q6.js +23 -0
- package/private-1c25ff8e-Dz82_Xf8.mjs +26 -0
- package/public-d4d8c585-BJKDD5F6.mjs +17 -0
- package/public-d4d8c585-lV6QxdPw.js +14 -0
- package/search-fbcd79c2-BMxCaeEk.js +10 -0
- package/search-fbcd79c2-rfV0PlHP.mjs +13 -0
- 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/success-443809da-BD23vltm.mjs +19 -0
- package/success-443809da-BUEhLsAD.js +16 -0
- package/svg-repository.entry-Ck1z1CpA.js +173 -0
- package/svg-repository.entry-IIRiiFbB.mjs +301 -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/toastManager-d9eee791-CEYNwx25.mjs +30 -0
- package/toastManager-d9eee791-DvR_vUPI.js +1 -0
- package/token-list_3.entry-CLlUT7ge.js +1 -0
- package/token-list_3.entry-CQ9aUIVd.mjs +247 -0
- package/token-ratios.entry-DkgSpwqw.mjs +25 -0
- package/token-ratios.entry-Dtrkv16c.js +1 -0
- package/token-typography.entry-CgJdJgCR.js +2 -0
- package/token-typography.entry-CrMCS1R0.mjs +213 -0
- package/tutotial-150ee1fd-DFdyoHVA.mjs +28 -0
- package/tutotial-150ee1fd-DjN_JBL5.js +25 -0
- package/twitter-ac21b505-CGWVGWM9.mjs +15 -0
- package/twitter-ac21b505-DDdHS4hB.js +12 -0
- package/unknown-ed01a24c-B0AcMuip.js +20 -0
- package/unknown-ed01a24c-DonOUpIC.mjs +23 -0
- package/up-and-down-d747abee-CWoZjUyq.js +10 -0
- package/up-and-down-d747abee-D7g6H0T0.mjs +13 -0
- package/user-71ebdc15-BBKQbcQD.js +14 -0
- package/user-71ebdc15-CoHlCtJg.mjs +17 -0
- package/youtube-efbfbdc4-BLTH1Jl9.js +12 -0
- package/youtube-efbfbdc4-BfySbfjR.mjs +15 -0
- package/.eslintrc.json +0 -18
- package/project.json +0 -9
- package/src/generated/components.ts +0 -374
- package/src/generated/vue-component-lib/utils.ts +0 -236
- package/src/index.ts +0 -1
- package/src/vue-shims.d.ts +0 -5
- package/tsconfig.json +0 -18
- package/tsconfig.lib.json +0 -27
- package/vite.config.ts +0 -71
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";const r=`<svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<circle cx="10" cy="6" r="3" stroke="currentColor" stroke-width="2" />
|
|
9
|
+
<path
|
|
10
|
+
d="M17 18V17C17 14.7909 15.2091 13 13 13H7C4.79086 13 3 14.7909 3 17V18"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
stroke-width="2"
|
|
13
|
+
/>
|
|
14
|
+
</svg>`;exports.user=r;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const r = `<svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<circle cx="10" cy="6" r="3" stroke="currentColor" stroke-width="2" />
|
|
9
|
+
<path
|
|
10
|
+
d="M17 18V17C17 14.7909 15.2091 13 13 13H7C4.79086 13 3 14.7909 3 17V18"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
stroke-width="2"
|
|
13
|
+
/>
|
|
14
|
+
</svg>`;
|
|
15
|
+
export {
|
|
16
|
+
r as u
|
|
17
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const C=` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M19.5821 5.18614C19.3521 4.3256 18.6743 3.64795 17.8137 3.41797C16.2542 3 10 3 10 3C10 3 3.74579 3 2.18614 3.41797C1.32557 3.64795 0.647844 4.3256 0.417841 5.18614C-2.98023e-08 6.74579 0 10 0 10C0 10 -2.98023e-08 13.2541 0.417841 14.8139C0.647844 15.6744 1.32557 16.352 2.18614 16.5821C3.74579 17 10 17 10 17C10 17 16.2542 17 17.8137 16.5821C18.6743 16.352 19.3521 15.6744 19.5821 14.8139C20 13.2541 20 10 20 10C20 10 20 6.74579 19.5821 5.18614ZM8 13V7L14 10L8 13Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;exports.youtube=C;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const C = ` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M19.5821 5.18614C19.3521 4.3256 18.6743 3.64795 17.8137 3.41797C16.2542 3 10 3 10 3C10 3 3.74579 3 2.18614 3.41797C1.32557 3.64795 0.647844 4.3256 0.417841 5.18614C-2.98023e-08 6.74579 0 10 0 10C0 10 -2.98023e-08 13.2541 0.417841 14.8139C0.647844 15.6744 1.32557 16.352 2.18614 16.5821C3.74579 17 10 17 10 17C10 17 16.2542 17 17.8137 16.5821C18.6743 16.352 19.3521 15.6744 19.5821 14.8139C20 13.2541 20 10 20 10C20 10 20 6.74579 19.5821 5.18614ZM8 13V7L14 10L8 13Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;
|
|
13
|
+
export {
|
|
14
|
+
C as y
|
|
15
|
+
};
|
package/.eslintrc.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"plugin:vue/vue3-essential",
|
|
4
|
-
"eslint:recommended",
|
|
5
|
-
"@vue/eslint-config-typescript",
|
|
6
|
-
"@vue/eslint-config-prettier/skip-formatting",
|
|
7
|
-
"../../.eslintrc.json"
|
|
8
|
-
],
|
|
9
|
-
"ignorePatterns": ["!**/*"],
|
|
10
|
-
"overrides": [
|
|
11
|
-
{
|
|
12
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.vue"],
|
|
13
|
-
"rules": {
|
|
14
|
-
"vue/multi-word-component-names": "off"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
package/project.json
DELETED
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* auto-generated vue proxies */
|
|
4
|
-
import { defineContainer } from './vue-component-lib/utils';
|
|
5
|
-
|
|
6
|
-
import type { JSX } from '@ebrains/components';
|
|
7
|
-
|
|
8
|
-
import { defineCustomElements } from '@ebrains/components/loader';
|
|
9
|
-
|
|
10
|
-
defineCustomElements();
|
|
11
|
-
|
|
12
|
-
export const EdsAccordion = /*@__PURE__*/ defineContainer<JSX.EdsAccordion>('eds-accordion', undefined, [
|
|
13
|
-
'heading',
|
|
14
|
-
'description',
|
|
15
|
-
'switchBg',
|
|
16
|
-
'expanded',
|
|
17
|
-
'clampText',
|
|
18
|
-
'accordion'
|
|
19
|
-
]);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export const EdsAlert = /*@__PURE__*/ defineContainer<JSX.EdsAlert>('eds-alert', undefined, [
|
|
23
|
-
'message',
|
|
24
|
-
'pressableLabel',
|
|
25
|
-
'pressableUrl',
|
|
26
|
-
'direction',
|
|
27
|
-
'intent',
|
|
28
|
-
'brd'
|
|
29
|
-
]);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export const EdsAvatar = /*@__PURE__*/ defineContainer<JSX.EdsAvatar>('eds-avatar', undefined, [
|
|
33
|
-
'firstName',
|
|
34
|
-
'lastName',
|
|
35
|
-
'picture',
|
|
36
|
-
'initials',
|
|
37
|
-
'color'
|
|
38
|
-
]);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
export const EdsBlockBreak = /*@__PURE__*/ defineContainer<JSX.EdsBlockBreak>('eds-block-break', undefined, [
|
|
42
|
-
'extraClass'
|
|
43
|
-
]);
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export const EdsBreadcrumb = /*@__PURE__*/ defineContainer<JSX.EdsBreadcrumb>('eds-breadcrumb', undefined, [
|
|
47
|
-
'items',
|
|
48
|
-
'intent'
|
|
49
|
-
]);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
export const EdsButton = /*@__PURE__*/ defineContainer<JSX.EdsButton>('eds-button', undefined, [
|
|
53
|
-
'label',
|
|
54
|
-
'ariaLabel',
|
|
55
|
-
'elementType',
|
|
56
|
-
'intent',
|
|
57
|
-
'loading',
|
|
58
|
-
'disabled',
|
|
59
|
-
'pill',
|
|
60
|
-
'icon',
|
|
61
|
-
'size',
|
|
62
|
-
'iconPos',
|
|
63
|
-
'iconSmall',
|
|
64
|
-
'extraClass',
|
|
65
|
-
'triggerClick'
|
|
66
|
-
]);
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export const EdsCardGeneric = /*@__PURE__*/ defineContainer<JSX.EdsCardGeneric>('eds-card-generic', undefined, [
|
|
70
|
-
'cardTitle',
|
|
71
|
-
'url',
|
|
72
|
-
'description',
|
|
73
|
-
'image',
|
|
74
|
-
'avatar',
|
|
75
|
-
'shortAbbreviation',
|
|
76
|
-
'headingLevel',
|
|
77
|
-
'tags',
|
|
78
|
-
'tiny',
|
|
79
|
-
'bg',
|
|
80
|
-
'withHover',
|
|
81
|
-
'hierarchy'
|
|
82
|
-
]);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
export const EdsCardSection = /*@__PURE__*/ defineContainer<JSX.EdsCardSection>('eds-card-section', undefined, [
|
|
86
|
-
'cards',
|
|
87
|
-
'occupyCols'
|
|
88
|
-
]);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
export const EdsCodeBlock = /*@__PURE__*/ defineContainer<JSX.EdsCodeBlock>('eds-code-block', undefined, [
|
|
92
|
-
'code',
|
|
93
|
-
'language'
|
|
94
|
-
]);
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export const EdsDropdown = /*@__PURE__*/ defineContainer<JSX.EdsDropdown>('eds-dropdown', undefined, [
|
|
98
|
-
'icon',
|
|
99
|
-
'label',
|
|
100
|
-
'rounded',
|
|
101
|
-
'ariaLabel',
|
|
102
|
-
'asNav',
|
|
103
|
-
'dropdownPos',
|
|
104
|
-
'dropdownOffset',
|
|
105
|
-
'intent',
|
|
106
|
-
'dropdown'
|
|
107
|
-
]);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
export const EdsFeedback = /*@__PURE__*/ defineContainer<JSX.EdsFeedback>('eds-feedback', undefined, [
|
|
111
|
-
'type',
|
|
112
|
-
'count',
|
|
113
|
-
'label',
|
|
114
|
-
'description',
|
|
115
|
-
'textMapping',
|
|
116
|
-
'rating'
|
|
117
|
-
]);
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
export const EdsFooter = /*@__PURE__*/ defineContainer<JSX.EdsFooter>('eds-footer', undefined, [
|
|
121
|
-
'social',
|
|
122
|
-
'enableScrollTop',
|
|
123
|
-
'fundedBy',
|
|
124
|
-
'rightsReserved',
|
|
125
|
-
'enableCookiesSettings',
|
|
126
|
-
'cookies'
|
|
127
|
-
]);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
export const EdsForm = /*@__PURE__*/ defineContainer<JSX.EdsForm>('eds-form', undefined, [
|
|
131
|
-
'name',
|
|
132
|
-
'setFormUrl',
|
|
133
|
-
'formBtn',
|
|
134
|
-
'formBtnLabel',
|
|
135
|
-
'errorMessage',
|
|
136
|
-
'fields',
|
|
137
|
-
'initData',
|
|
138
|
-
'form'
|
|
139
|
-
]);
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
export const EdsFullscreenMenu = /*@__PURE__*/ defineContainer<JSX.EdsFullscreenMenu>('eds-fullscreen-menu', undefined, [
|
|
143
|
-
'links',
|
|
144
|
-
'menuLinks',
|
|
145
|
-
'homeUrl',
|
|
146
|
-
'inverseHeader',
|
|
147
|
-
'menuClose'
|
|
148
|
-
]);
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
export const EdsHeader = /*@__PURE__*/ defineContainer<JSX.EdsHeader>('eds-header', undefined, [
|
|
152
|
-
'homeUrl',
|
|
153
|
-
'links',
|
|
154
|
-
'inverseHeader',
|
|
155
|
-
'menuEnabled',
|
|
156
|
-
'toggleheadermenu'
|
|
157
|
-
]);
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export const EdsIconWrapper = /*@__PURE__*/ defineContainer<JSX.EdsIconWrapper>('eds-icon-wrapper', undefined, [
|
|
161
|
-
'icon',
|
|
162
|
-
'class'
|
|
163
|
-
]);
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
export const EdsImg = /*@__PURE__*/ defineContainer<JSX.EdsImg>('eds-img', undefined, [
|
|
167
|
-
'src',
|
|
168
|
-
'alt',
|
|
169
|
-
'width',
|
|
170
|
-
'height',
|
|
171
|
-
'srcset',
|
|
172
|
-
'sizes',
|
|
173
|
-
'formats',
|
|
174
|
-
'lazyload',
|
|
175
|
-
'withBg'
|
|
176
|
-
]);
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
export const EdsInputField = /*@__PURE__*/ defineContainer<JSX.EdsInputField>('eds-input-field', undefined, [
|
|
180
|
-
'name',
|
|
181
|
-
'inputId',
|
|
182
|
-
'placeholder',
|
|
183
|
-
'disabled',
|
|
184
|
-
'onChange',
|
|
185
|
-
'onInput',
|
|
186
|
-
'type',
|
|
187
|
-
'required',
|
|
188
|
-
'label',
|
|
189
|
-
'hint',
|
|
190
|
-
'icon',
|
|
191
|
-
'link',
|
|
192
|
-
'message',
|
|
193
|
-
'error',
|
|
194
|
-
'checked',
|
|
195
|
-
'errorMessage',
|
|
196
|
-
'value',
|
|
197
|
-
'maxLength',
|
|
198
|
-
'options'
|
|
199
|
-
]);
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
export const EdsLink = /*@__PURE__*/ defineContainer<JSX.EdsLink>('eds-link', undefined, [
|
|
203
|
-
'label',
|
|
204
|
-
'intent',
|
|
205
|
-
'icon',
|
|
206
|
-
'iconPos',
|
|
207
|
-
'iconSmall',
|
|
208
|
-
'size',
|
|
209
|
-
'external',
|
|
210
|
-
'current',
|
|
211
|
-
'download',
|
|
212
|
-
'url',
|
|
213
|
-
'ariaLabel',
|
|
214
|
-
'disabled',
|
|
215
|
-
'hideLabelOnSmallScreen',
|
|
216
|
-
'extraClass'
|
|
217
|
-
]);
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
export const EdsLogo = /*@__PURE__*/ defineContainer<JSX.EdsLogo>('eds-logo', undefined, [
|
|
221
|
-
'href',
|
|
222
|
-
'orientation',
|
|
223
|
-
'type',
|
|
224
|
-
'label'
|
|
225
|
-
]);
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
export const EdsMatomoNotice = /*@__PURE__*/ defineContainer<JSX.EdsMatomoNotice>('eds-matomo-notice', undefined, [
|
|
229
|
-
'heading',
|
|
230
|
-
'description',
|
|
231
|
-
'optOutMessage',
|
|
232
|
-
'forceShow',
|
|
233
|
-
'consent'
|
|
234
|
-
]);
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
export const EdsModal = /*@__PURE__*/ defineContainer<JSX.EdsModal>('eds-modal', undefined, [
|
|
238
|
-
'heading',
|
|
239
|
-
'truncate',
|
|
240
|
-
'position',
|
|
241
|
-
'inverseHeader'
|
|
242
|
-
]);
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
export const EdsPagination = /*@__PURE__*/ defineContainer<JSX.EdsPagination>('eds-pagination', undefined, [
|
|
246
|
-
'currentPage',
|
|
247
|
-
'lastPage',
|
|
248
|
-
'perPage',
|
|
249
|
-
'total',
|
|
250
|
-
'url',
|
|
251
|
-
'mode',
|
|
252
|
-
'prevLabel',
|
|
253
|
-
'nextLabel',
|
|
254
|
-
'prevUrl',
|
|
255
|
-
'nextUrl'
|
|
256
|
-
]);
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
export const EdsProgressBar = /*@__PURE__*/ defineContainer<JSX.EdsProgressBar>('eds-progress-bar', undefined, [
|
|
260
|
-
'value'
|
|
261
|
-
]);
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
export const EdsRating = /*@__PURE__*/ defineContainer<JSX.EdsRating>('eds-rating', undefined, [
|
|
265
|
-
'ratingType',
|
|
266
|
-
'ratingCount',
|
|
267
|
-
'rating'
|
|
268
|
-
]);
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
export const EdsSectionCore = /*@__PURE__*/ defineContainer<JSX.EdsSectionCore>('eds-section-core', undefined, [
|
|
272
|
-
'tag',
|
|
273
|
-
'sectionTitle',
|
|
274
|
-
'headingLevel'
|
|
275
|
-
]);
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
export const EdsSocialNetworks = /*@__PURE__*/ defineContainer<JSX.EdsSocialNetworks>('eds-social-networks', undefined, [
|
|
279
|
-
'heading'
|
|
280
|
-
]);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
export const EdsSpinner = /*@__PURE__*/ defineContainer<JSX.EdsSpinner>('eds-spinner', undefined, [
|
|
284
|
-
'size',
|
|
285
|
-
'thickness',
|
|
286
|
-
'borderColor',
|
|
287
|
-
'bottomColor',
|
|
288
|
-
'background',
|
|
289
|
-
'fullscreen'
|
|
290
|
-
]);
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
export const EdsSplashScreen = /*@__PURE__*/ defineContainer<JSX.EdsSplashScreen>('eds-splash-screen', undefined, [
|
|
294
|
-
'inverse',
|
|
295
|
-
'initPromise',
|
|
296
|
-
'splash'
|
|
297
|
-
]);
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
export const EdsSteps = /*@__PURE__*/ defineContainer<JSX.EdsSteps>('eds-steps', undefined, [
|
|
301
|
-
'steps',
|
|
302
|
-
'type',
|
|
303
|
-
'step'
|
|
304
|
-
]);
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
export const EdsStepsV2 = /*@__PURE__*/ defineContainer<JSX.EdsStepsV2>('eds-steps-v2', undefined, [
|
|
308
|
-
'steps',
|
|
309
|
-
'type',
|
|
310
|
-
'imageSrc',
|
|
311
|
-
'bg',
|
|
312
|
-
'message',
|
|
313
|
-
'step'
|
|
314
|
-
]);
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
export const EdsSwitch = /*@__PURE__*/ defineContainer<JSX.EdsSwitch>('eds-switch', undefined, [
|
|
318
|
-
'checked',
|
|
319
|
-
'disabled',
|
|
320
|
-
'labelOn',
|
|
321
|
-
'labelOff',
|
|
322
|
-
'toggle'
|
|
323
|
-
]);
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
export const EdsTable = /*@__PURE__*/ defineContainer<JSX.EdsTable>('eds-table', undefined, [
|
|
327
|
-
'data',
|
|
328
|
-
'endpoint',
|
|
329
|
-
'config',
|
|
330
|
-
'rowsPerPage',
|
|
331
|
-
'paginationEnabled',
|
|
332
|
-
'searchEnabled',
|
|
333
|
-
'hostWidth',
|
|
334
|
-
'columnSize'
|
|
335
|
-
]);
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
export const EdsTabs = /*@__PURE__*/ defineContainer<JSX.EdsTabs>('eds-tabs', undefined, [
|
|
339
|
-
'identifier',
|
|
340
|
-
'navAriaLabel',
|
|
341
|
-
'tabs',
|
|
342
|
-
'tab'
|
|
343
|
-
]);
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
export const EdsTag = /*@__PURE__*/ defineContainer<JSX.EdsTag>('eds-tag', undefined, [
|
|
347
|
-
'label',
|
|
348
|
-
'intent',
|
|
349
|
-
'size'
|
|
350
|
-
]);
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
export const EdsTimeline = /*@__PURE__*/ defineContainer<JSX.EdsTimeline>('eds-timeline', undefined, [
|
|
354
|
-
'events'
|
|
355
|
-
]);
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
export const EdsToast = /*@__PURE__*/ defineContainer<JSX.EdsToast>('eds-toast', undefined, [
|
|
359
|
-
'message',
|
|
360
|
-
'intent',
|
|
361
|
-
'duration'
|
|
362
|
-
]);
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
export const EdsTooltip = /*@__PURE__*/ defineContainer<JSX.EdsTooltip>('eds-tooltip', undefined, [
|
|
366
|
-
'content',
|
|
367
|
-
'position'
|
|
368
|
-
]);
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
export const EdsUser = /*@__PURE__*/ defineContainer<JSX.EdsUser>('eds-user', undefined, [
|
|
372
|
-
'user'
|
|
373
|
-
]);
|
|
374
|
-
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
// It's easier and safer for Volar to disable typechecking and let the return type inference do its job.
|
|
3
|
-
import { defineComponent, getCurrentInstance, h, inject, ref, Ref, withDirectives } from 'vue';
|
|
4
|
-
|
|
5
|
-
export interface InputProps<T> {
|
|
6
|
-
modelValue?: T;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const UPDATE_VALUE_EVENT = 'update:modelValue';
|
|
10
|
-
const MODEL_VALUE = 'modelValue';
|
|
11
|
-
const ROUTER_LINK_VALUE = 'routerLink';
|
|
12
|
-
const NAV_MANAGER = 'navManager';
|
|
13
|
-
const ROUTER_PROP_PREFIX = 'router';
|
|
14
|
-
const ARIA_PROP_PREFIX = 'aria';
|
|
15
|
-
/**
|
|
16
|
-
* Starting in Vue 3.1.0, all properties are
|
|
17
|
-
* added as keys to the props object, even if
|
|
18
|
-
* they are not being used. In order to correctly
|
|
19
|
-
* account for both value props and v-model props,
|
|
20
|
-
* we need to check if the key exists for Vue <3.1.0
|
|
21
|
-
* and then check if it is not undefined for Vue >= 3.1.0.
|
|
22
|
-
* See https://github.com/vuejs/vue-next/issues/3889
|
|
23
|
-
*/
|
|
24
|
-
const EMPTY_PROP = Symbol();
|
|
25
|
-
const DEFAULT_EMPTY_PROP = { default: EMPTY_PROP };
|
|
26
|
-
|
|
27
|
-
interface NavManager<T = any> {
|
|
28
|
-
navigate: (options: T) => void;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const getComponentClasses = (classes: unknown) => {
|
|
32
|
-
return (classes as string)?.split(' ') || [];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const getElementClasses = (
|
|
36
|
-
ref: Ref<HTMLElement | undefined>,
|
|
37
|
-
componentClasses: Set<string>,
|
|
38
|
-
defaultClasses: string[] = []
|
|
39
|
-
) => {
|
|
40
|
-
return [...Array.from(ref.value?.classList || []), ...defaultClasses].filter(
|
|
41
|
-
(c: string, i, self) => !componentClasses.has(c) && self.indexOf(c) === i
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
47
|
-
*
|
|
48
|
-
* @prop name - The component tag name (i.e. `ion-button`)
|
|
49
|
-
* @prop componentProps - An array of properties on the
|
|
50
|
-
* component. These usually match up with the @Prop definitions
|
|
51
|
-
* in each component's TSX file.
|
|
52
|
-
* @prop customElement - An option custom element instance to pass
|
|
53
|
-
* to customElements.define. Only set if `includeImportCustomElements: true` in your config.
|
|
54
|
-
* @prop modelProp - The prop that v-model binds to (i.e. value)
|
|
55
|
-
* @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
|
|
56
|
-
*/
|
|
57
|
-
export const defineContainer = <Props, VModelType = string | number | boolean>(
|
|
58
|
-
name: string,
|
|
59
|
-
defineCustomElement: any,
|
|
60
|
-
componentProps: string[] = [],
|
|
61
|
-
modelProp?: string,
|
|
62
|
-
modelUpdateEvent?: string
|
|
63
|
-
) => {
|
|
64
|
-
/**
|
|
65
|
-
* Create a Vue component wrapper around a Web Component.
|
|
66
|
-
* Note: The `props` here are not all properties on a component.
|
|
67
|
-
* They refer to whatever properties are set on an instance of a component.
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
if (defineCustomElement !== undefined) {
|
|
71
|
-
defineCustomElement();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const Container = defineComponent<Props & InputProps<VModelType>>((props, { attrs, slots, emit }) => {
|
|
75
|
-
let modelPropValue = props[modelProp];
|
|
76
|
-
const containerRef = ref<HTMLElement>();
|
|
77
|
-
const classes = new Set(getComponentClasses(attrs.class));
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* This directive is responsible for updating any reactive
|
|
81
|
-
* reference associated with v-model on the component.
|
|
82
|
-
* This code must be run inside of the "created" callback.
|
|
83
|
-
* Since the following listener callbacks as well as any potential
|
|
84
|
-
* event callback defined in the developer's app are set on
|
|
85
|
-
* the same element, we need to make sure the following callbacks
|
|
86
|
-
* are set first so they fire first. If the developer's callback fires first
|
|
87
|
-
* then the reactive reference will not have been updated yet.
|
|
88
|
-
*/
|
|
89
|
-
const vModelDirective = {
|
|
90
|
-
created: (el: HTMLElement) => {
|
|
91
|
-
const eventsNames = Array.isArray(modelUpdateEvent) ? modelUpdateEvent : [modelUpdateEvent];
|
|
92
|
-
eventsNames.forEach((eventName: string) => {
|
|
93
|
-
el.addEventListener(eventName.toLowerCase(), (e: Event) => {
|
|
94
|
-
/**
|
|
95
|
-
* Only update the v-model binding if the event's target is the element we are
|
|
96
|
-
* listening on. For example, Component A could emit ionChange, but it could also
|
|
97
|
-
* have a descendant Component B that also emits ionChange. We only want to update
|
|
98
|
-
* the v-model for Component A when ionChange originates from that element and not
|
|
99
|
-
* when ionChange bubbles up from Component B.
|
|
100
|
-
*/
|
|
101
|
-
if (e.target.tagName === el.tagName) {
|
|
102
|
-
modelPropValue = (e?.target as any)[modelProp];
|
|
103
|
-
emit(UPDATE_VALUE_EVENT, modelPropValue);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
const currentInstance = getCurrentInstance();
|
|
111
|
-
const hasRouter = currentInstance?.appContext?.provides[NAV_MANAGER];
|
|
112
|
-
const navManager: NavManager | undefined = hasRouter ? inject(NAV_MANAGER) : undefined;
|
|
113
|
-
const handleRouterLink = (ev: Event) => {
|
|
114
|
-
const { routerLink } = props;
|
|
115
|
-
if (routerLink === EMPTY_PROP) return;
|
|
116
|
-
|
|
117
|
-
if (navManager !== undefined) {
|
|
118
|
-
/**
|
|
119
|
-
* This prevents the browser from
|
|
120
|
-
* performing a page reload when pressing
|
|
121
|
-
* an Ionic component with routerLink.
|
|
122
|
-
* The page reload interferes with routing
|
|
123
|
-
* and causes ion-back-button to disappear
|
|
124
|
-
* since the local history is wiped on reload.
|
|
125
|
-
*/
|
|
126
|
-
ev.preventDefault();
|
|
127
|
-
|
|
128
|
-
let navigationPayload: any = { event: ev };
|
|
129
|
-
for (const key in props) {
|
|
130
|
-
const value = props[key];
|
|
131
|
-
if (props.hasOwnProperty(key) && key.startsWith(ROUTER_PROP_PREFIX) && value !== EMPTY_PROP) {
|
|
132
|
-
navigationPayload[key] = value;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
navManager.navigate(navigationPayload);
|
|
137
|
-
} else {
|
|
138
|
-
console.warn('Tried to navigate, but no router was found. Make sure you have mounted Vue Router.');
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
return () => {
|
|
143
|
-
modelPropValue = props[modelProp];
|
|
144
|
-
|
|
145
|
-
getComponentClasses(attrs.class).forEach((value) => {
|
|
146
|
-
classes.add(value);
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
const oldClick = props.onClick;
|
|
150
|
-
const handleClick = (ev: Event) => {
|
|
151
|
-
if (oldClick !== undefined) {
|
|
152
|
-
oldClick(ev);
|
|
153
|
-
}
|
|
154
|
-
if (!ev.defaultPrevented) {
|
|
155
|
-
handleRouterLink(ev);
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
let propsToAdd: any = {
|
|
160
|
-
ref: containerRef,
|
|
161
|
-
class: getElementClasses(containerRef, classes),
|
|
162
|
-
onClick: handleClick,
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* We can use Object.entries here
|
|
167
|
-
* to avoid the hasOwnProperty check,
|
|
168
|
-
* but that would require 2 iterations
|
|
169
|
-
* where as this only requires 1.
|
|
170
|
-
*/
|
|
171
|
-
for (const key in props) {
|
|
172
|
-
const value = props[key];
|
|
173
|
-
if ((props.hasOwnProperty(key) && value !== EMPTY_PROP) || key.startsWith(ARIA_PROP_PREFIX)) {
|
|
174
|
-
propsToAdd[key] = value;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (modelProp) {
|
|
179
|
-
/**
|
|
180
|
-
* If form value property was set using v-model
|
|
181
|
-
* then we should use that value.
|
|
182
|
-
* Otherwise, check to see if form value property
|
|
183
|
-
* was set as a static value (i.e. no v-model).
|
|
184
|
-
*/
|
|
185
|
-
if (props[MODEL_VALUE] !== EMPTY_PROP) {
|
|
186
|
-
propsToAdd = {
|
|
187
|
-
...propsToAdd,
|
|
188
|
-
[modelProp]: props[MODEL_VALUE],
|
|
189
|
-
};
|
|
190
|
-
} else if (modelPropValue !== EMPTY_PROP) {
|
|
191
|
-
propsToAdd = {
|
|
192
|
-
...propsToAdd,
|
|
193
|
-
[modelProp]: modelPropValue,
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// If router link is defined, add href to props
|
|
199
|
-
// in order to properly render an anchor tag inside
|
|
200
|
-
// of components that should become activatable and
|
|
201
|
-
// focusable with router link.
|
|
202
|
-
if (props[ROUTER_LINK_VALUE] !== EMPTY_PROP) {
|
|
203
|
-
propsToAdd = {
|
|
204
|
-
...propsToAdd,
|
|
205
|
-
href: props[ROUTER_LINK_VALUE],
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* vModelDirective is only needed on components that support v-model.
|
|
211
|
-
* As a result, we conditionally call withDirectives with v-model components.
|
|
212
|
-
*/
|
|
213
|
-
const node = h(name, propsToAdd, slots.default && slots.default());
|
|
214
|
-
return modelProp === undefined ? node : withDirectives(node, [[vModelDirective]]);
|
|
215
|
-
};
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
if (typeof Container !== 'function') {
|
|
219
|
-
Container.name = name;
|
|
220
|
-
|
|
221
|
-
Container.props = {
|
|
222
|
-
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP,
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
componentProps.forEach((componentProp) => {
|
|
226
|
-
Container.props[componentProp] = DEFAULT_EMPTY_PROP;
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
if (modelProp) {
|
|
230
|
-
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP;
|
|
231
|
-
Container.emits = [UPDATE_VALUE_EVENT];
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
return Container;
|
|
236
|
-
};
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './generated/components';
|