@ebrains/vue 0.8.0-alpha.0 → 0.9.1-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/LICENSE +21 -0
- package/README.md +6 -2
- package/bookmark-c200037c-CIcZ51ZQ.js +14 -0
- package/bookmark-c200037c-ClkCtyRY.mjs +17 -0
- package/color-primary-palette_6.entry-DNCYKab1.js +1 -0
- package/color-primary-palette_6.entry-DrUcl0_Y.mjs +300 -0
- package/{eds-components-section.entry-CZzJEdYb.mjs → components-section.entry-BC6fAK4x.mjs} +124 -94
- package/{eds-components-section.entry-DpGQLUDG.js → components-section.entry-Dpc-I4Dk.js} +109 -87
- package/correct-use-of-colors.entry-BIOVttVR.mjs +59 -0
- package/correct-use-of-colors.entry-D4g8NP4t.js +1 -0
- package/{eds-docs-palettes.entry-CvUsZJGt.js → docs-palettes.entry-Af1cfpJK.js} +1 -1
- package/{eds-docs-palettes.entry-DF_rAbne.mjs → docs-palettes.entry-CxxKTQmL.mjs} +3 -3
- package/{eds-docs-tokens.entry-gPy71iZA.mjs → docs-tokens.entry-CSj74lMT.mjs} +4 -4
- package/{eds-docs-tokens.entry-C3AfntXW.js → docs-tokens.entry-DbqTlBjk.js} +1 -1
- package/eds-accordion.entry-66EwvfyQ.js +4 -0
- package/eds-accordion.entry-BAszhx2J.mjs +48 -0
- package/{eds-alert.entry-DHikCbw_.mjs → eds-alert.entry-B5fyoE-3.mjs} +1 -1
- package/{eds-alert.entry-C7iR6Wau.js → eds-alert.entry-D0UbYNdF.js} +1 -1
- package/{eds-app-root.entry-rafdbiL3.js → eds-app-root.entry-COtx8lgi.js} +1 -1
- package/{eds-app-root.entry-YPigXe8_.mjs → eds-app-root.entry-DaEWCpgJ.mjs} +4 -4
- package/{eds-accordion_17.entry-BBnyn6EM.js → eds-avatar_26.entry-B5sFgktG.js} +7843 -31
- package/{eds-accordion_17.entry-BhCBvhXC.mjs → eds-avatar_26.entry-D44mROee.mjs} +8694 -390
- package/{eds-card-desc_3.entry-BJP_Vvul.mjs → eds-card-desc_2.entry-B6UCTFjF.mjs} +7 -37
- package/eds-card-desc_2.entry-CRAnQEYT.js +1 -0
- package/{eds-card-generic.entry-Bn3saq5k.mjs → eds-card-generic.entry-BTkPV7Vy.mjs} +6 -6
- package/eds-card-generic.entry-CO_LOs7j.js +1 -0
- package/{eds-card-project.entry-CkmokKaR.mjs → eds-card-project.entry-DHpOvYZ4.mjs} +1 -1
- package/{eds-card-project.entry-B7s198sC.js → eds-card-project.entry-DaYgAAhK.js} +1 -1
- package/{eds-card-section.entry-CE7UQ8HN.js → eds-card-section.entry-Cj1iWta9.js} +1 -1
- package/{eds-card-section.entry-DKP7IjIj.mjs → eds-card-section.entry-Ckc5tKfn.mjs} +1 -1
- package/{eds-card-tags.entry-wvkOqT1r.js → eds-card-tags.entry-CC8HHmu1.js} +1 -1
- package/{eds-card-tags.entry-BNqaohHu.mjs → eds-card-tags.entry-DTOC83TO.mjs} +1 -1
- package/{eds-card-tool.entry-CR4SuPPR.mjs → eds-card-tool.entry-BnSmQnIO.mjs} +1 -1
- package/{eds-card-tool.entry-Df_qlYY5.js → eds-card-tool.entry-DbRFRI44.js} +1 -1
- package/{eds-card-wrapper.entry-DwcKQUDS.js → eds-card-wrapper.entry-DqbihYMe.js} +1 -1
- package/{eds-card-wrapper.entry-CosNbMgP.mjs → eds-card-wrapper.entry-pXRtDlUm.mjs} +1 -1
- package/{eds-code-block.entry-D5kDIIPG.js → eds-code-block.entry-DOOwL4C5.js} +1 -1
- package/{eds-code-block.entry-Bfp7Moc7.mjs → eds-code-block.entry-DzjesAvq.mjs} +1 -1
- package/{eds-cookies-preference.entry-ivi_kdZs.mjs → eds-cookies-preference.entry-BEg8_L1i.mjs} +2 -2
- package/{eds-cookies-preference.entry-DUwpfJG0.js → eds-cookies-preference.entry-DNieltJt.js} +1 -1
- package/eds-feedback.entry-BPC8n5Vn.js +1 -0
- package/eds-feedback.entry-CamM3PGo.mjs +53 -0
- package/{eds-frame.entry-BEG9Cq6f.mjs → eds-frame.entry-BTSVnilU.mjs} +9 -15
- package/eds-frame.entry-CxtCcM_D.js +1 -0
- package/{eds-icon-arrow-diagonal.entry-6WVlNQjt.mjs → eds-icon-arrow-diagonal.entry-Bi8IA-JD.mjs} +1 -1
- package/{eds-icon-arrow-diagonal.entry-zBfSFnaZ.js → eds-icon-arrow-diagonal.entry-CkydmAtM.js} +1 -1
- package/{eds-icon-arrow-right.entry-CPfwKb_P.mjs → eds-icon-arrow-right.entry-Bec767Po.mjs} +1 -1
- package/{eds-icon-arrow-right.entry-B01PWxxn.js → eds-icon-arrow-right.entry-DnSc-hGl.js} +1 -1
- package/eds-icon-bluesky.entry-CJ_G1Kz6.mjs +13 -0
- package/{eds-icon-bluesky.entry-DbVUYLJG.js → eds-icon-bluesky.entry-CKsxnx_w.js} +1 -1
- package/eds-icon-bookmark.entry-CgY2a3NE.js +1 -0
- package/eds-icon-bookmark.entry-CxHfI52-.mjs +13 -0
- package/{eds-icon-chevron-down.entry-YrhsZIQb.js → eds-icon-chevron-down.entry-BlFjZjFS.js} +1 -1
- package/{eds-icon-chevron-down.entry-dCeiKlud.mjs → eds-icon-chevron-down.entry-MP6nKKWS.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-CudVsOqq.mjs → eds-icon-chevron-left.entry-B87gvMYL.mjs} +1 -1
- package/{eds-icon-chevron-left.entry-CVk_b9kc.js → eds-icon-chevron-left.entry-D0wG_pW7.js} +1 -1
- package/{eds-icon-chevron-right.entry-Dg5UFoCU.mjs → eds-icon-chevron-right.entry-CBd-dMhk.mjs} +1 -1
- package/{eds-icon-chevron-right.entry-r7aVtAwm.js → eds-icon-chevron-right.entry-CK9NLouO.js} +1 -1
- package/{eds-icon-chevron-up.entry-CEfRA3Cn.mjs → eds-icon-chevron-up.entry-B96ccoIQ.mjs} +1 -1
- package/{eds-icon-chevron-up.entry-C-WjO0ys.js → eds-icon-chevron-up.entry-CKC11GWB.js} +1 -1
- package/{eds-icon-close.entry-eRRe-idl.js → eds-icon-close.entry-C82RssRf.js} +1 -1
- package/eds-icon-close.entry-DKpCci_h.mjs +13 -0
- package/{eds-icon-copy.entry-Bv6gVwBn.mjs → eds-icon-copy.entry-BLIFnGI7.mjs} +2 -2
- package/{eds-icon-copy.entry-B41dL0Pk.js → eds-icon-copy.entry-DJvo9Oo3.js} +1 -1
- package/eds-icon-eu.entry-CIiUxa85.mjs +13 -0
- package/eds-icon-eu.entry-fpbE22vn.js +1 -0
- package/eds-icon-external.entry-Bg3Jbh4o.mjs +13 -0
- package/eds-icon-external.entry-DB0_JlLk.js +1 -0
- package/{eds-icon-facebook.entry-tLxBj2-p.js → eds-icon-facebook.entry-CqhEjMDs.js} +1 -1
- package/{eds-icon-facebook.entry-CxuQ9T-z.mjs → eds-icon-facebook.entry-Cvcx9mzY.mjs} +2 -2
- package/{eds-icon-gitlab.entry-Bz32Y093.js → eds-icon-gitlab.entry-DkWowBSx.js} +1 -1
- package/eds-icon-gitlab.entry-ZIUW3Too.mjs +13 -0
- package/{eds-icon-linkedin.entry-C-OLKK80.mjs → eds-icon-linkedin.entry-zCYN0yJN.mjs} +2 -2
- package/{eds-icon-linkedin.entry-BOJB8PtD.js → eds-icon-linkedin.entry-zJM5VYX8.js} +1 -1
- package/eds-icon-loader.entry-D3A9DYDv.js +1 -0
- package/eds-icon-loader.entry-DgDDBLQe.mjs +13 -0
- package/eds-icon-mastodon.entry-B2ln6jUP.mjs +13 -0
- package/{eds-icon-mastodon.entry-DYjzOc_S.js → eds-icon-mastodon.entry-CQi1OZdh.js} +1 -1
- package/eds-icon-menu.entry-BqYXrP_P.js +1 -0
- package/eds-icon-menu.entry-CRdmUv3E.mjs +13 -0
- package/eds-icon-minus.entry-C6oGK2_g.mjs +13 -0
- package/eds-icon-minus.entry-CmEXvebI.js +1 -0
- package/{eds-icon-more.entry-BdtfLgCV.js → eds-icon-more.entry-BIQGWWip.js} +1 -1
- package/eds-icon-more.entry-aXbszIap.mjs +13 -0
- package/eds-icon-paper.entry-Bh5C64H8.mjs +13 -0
- package/eds-icon-paper.entry-LgapgnWg.js +1 -0
- package/eds-icon-plus.entry-BR1mOml3.mjs +13 -0
- package/eds-icon-plus.entry-DlX5VFJR.js +1 -0
- package/eds-icon-portal.entry-C2DFez0R.js +1 -0
- package/eds-icon-portal.entry-CMARk8X7.mjs +13 -0
- package/eds-icon-private.entry-BwvhDAIy.mjs +13 -0
- package/eds-icon-private.entry-CbexBFUk.js +1 -0
- package/eds-icon-public.entry-D91FTOc3.mjs +13 -0
- package/eds-icon-public.entry-DQzoAi-2.js +1 -0
- package/{eds-icon-search.entry-Cw8zssoR.js → eds-icon-search.entry-D6gOTsOF.js} +1 -1
- package/{eds-icon-search.entry-CnqQ_vud.mjs → eds-icon-search.entry-DVhN8_Ah.mjs} +2 -2
- package/{eds-icon-star.entry-BqWtt_VJ.mjs → eds-icon-star.entry-CBJGqbz6.mjs} +2 -2
- package/{eds-icon-star.entry-DhcygAni.js → eds-icon-star.entry-CIhSd8HY.js} +1 -1
- package/eds-icon-success.entry-VMJ6qL6H.mjs +13 -0
- package/{eds-icon-success.entry-59uCWiA1.js → eds-icon-success.entry-yZ0mp_pH.js} +1 -1
- package/{eds-icon-thumbs-down.entry-BNUoStSy.js → eds-icon-thumbs-down.entry-CfZk-XIH.js} +1 -1
- package/{eds-icon-thumbs-down.entry-BOvmhFfL.mjs → eds-icon-thumbs-down.entry-CirzFHNd.mjs} +2 -2
- package/{eds-icon-thumbs-up.entry-Bn3MBFif.js → eds-icon-thumbs-up.entry-C205X1kc.js} +1 -1
- package/{eds-icon-thumbs-up.entry-B5dIuh3_.mjs → eds-icon-thumbs-up.entry-CyPLJvn-.mjs} +2 -2
- package/eds-icon-tutorial.entry-Do4rIMaY.mjs +13 -0
- package/eds-icon-tutorial.entry-Dsyw0BBK.js +1 -0
- package/eds-icon-twitter.entry-D0QvrckP.mjs +13 -0
- package/{eds-icon-twitter.entry-CGsi8ynP.js → eds-icon-twitter.entry-Dxbad6Ap.js} +1 -1
- package/eds-icon-unknown.entry-Ml0duWB3.mjs +13 -0
- package/eds-icon-unknown.entry-p9JzenHC.js +1 -0
- package/eds-icon-updown.entry-CD8350rr.mjs +13 -0
- package/eds-icon-updown.entry-CX-0FN1w.js +1 -0
- package/eds-icon-user.entry-BL2cTAJm.js +1 -0
- package/eds-icon-user.entry-CoG-FatJ.mjs +13 -0
- package/eds-icon-youtube.entry-BLYOdnDv.js +1 -0
- package/eds-icon-youtube.entry-BuoKDZ5t.mjs +13 -0
- package/{eds-login_2.entry-CiL5geMY.js → eds-login_2.entry-BLdyPn8z.js} +3 -3
- package/{eds-login_2.entry-Be8tUQNx.mjs → eds-login_2.entry-vwx33ALN.mjs} +106 -93
- package/eds-matomo-notice.entry-BcVjYajg.js +1 -0
- package/eds-matomo-notice.entry-DidLaLXw.mjs +90 -0
- package/eds-modal.entry-B31KFXpt.js +1 -0
- package/eds-modal.entry-CXNV__T1.mjs +96 -0
- package/{eds-pagination_2.entry-BcBkkuEq.js → eds-pagination_2.entry-C5PQOTQJ.js} +1 -1
- package/{eds-pagination_2.entry-B2q_5PRD.mjs → eds-pagination_2.entry-CDArkgFj.mjs} +8 -8
- package/{eds-progress-bar.entry-BWnPK-6o.mjs → eds-progress-bar.entry-D-pHajo4.mjs} +2 -2
- package/{eds-progress-bar.entry-DMTDcZv8.js → eds-progress-bar.entry-DG0GXmeq.js} +1 -1
- package/{eds-rating.entry-CtRb0a5R.mjs → eds-rating.entry-C1Ek7Xei.mjs} +2 -2
- package/{eds-rating.entry-CPCGEHHj.js → eds-rating.entry-ftEmF4Qw.js} +1 -1
- package/{eds-section-core_2.entry-rRmNlbQR.js → eds-section-core_2.entry-BpzqlBXJ.js} +1 -1
- package/{eds-section-core_2.entry-BrIavUCN.mjs → eds-section-core_2.entry-kmq9d4JE.mjs} +9 -9
- package/{eds-spinner.entry-BQ7NYZow.js → eds-spinner.entry-DTgScdkA.js} +1 -1
- package/{eds-spinner.entry-D58XgaXt.mjs → eds-spinner.entry-a3Wjf-Vo.mjs} +2 -2
- package/{eds-switch.entry-CAzboLuJ.js → eds-switch.entry-CMr4qwoV.js} +1 -1
- package/{eds-switch.entry-CgstZWMb.mjs → eds-switch.entry-Cztu_2n9.mjs} +7 -7
- package/{eds-tabs.entry-CxValIYM.js → eds-tabs.entry-0DJ99piw.js} +53 -15
- package/{eds-tabs.entry-2CrdvmEM.mjs → eds-tabs.entry-DBHkSmJZ.mjs} +56 -18
- package/{eds-timeline.entry-CFAb5Cd0.js → eds-timeline.entry-8DYAeWK9.js} +53 -15
- package/{eds-timeline.entry-D9ZihmLu.mjs → eds-timeline.entry-Cj0sAIIZ.mjs} +53 -15
- package/{eds-toast-manager.entry-DNRGmKI4.js → eds-toast-manager.entry-CSZROgRS.js} +1 -1
- package/{eds-toast-manager.entry-mR3GXeEW.mjs → eds-toast-manager.entry-Cp-uvJ6e.mjs} +6 -6
- package/{eds-toast.entry-ubt1S3Kw.mjs → eds-toast.entry-DxditNG2.mjs} +1 -1
- package/{eds-toast.entry-BRfHKFao.js → eds-toast.entry-w5mMLqEh.js} +1 -1
- package/{eds-tooltip.entry-BS9OaOdx.js → eds-tooltip.entry-BkTKzXVD.js} +1 -1
- package/{eds-tooltip.entry-D0rqB_RZ.mjs → eds-tooltip.entry-DiID9ZC6.mjs} +6 -6
- package/{eds-trl.entry-D_xUUWvL.js → eds-trl.entry-BEZPY301.js} +1 -1
- package/eds-trl.entry-BrkymCLA.mjs +34 -0
- package/generated/components.d.ts +0 -3
- package/incorrect-use-of-colors.entry-D_MDnOxK.mjs +42 -0
- package/incorrect-use-of-colors.entry-HDLgRpVT.js +1 -0
- package/{index-DeCYK9qM.mjs → index-CMP6-ecb.mjs} +290 -267
- package/index-RvcWEz0j.js +21 -0
- package/index.js +1 -1
- package/index.mjs +29 -32
- package/logo-space.entry-B05IQf3M.mjs +19 -0
- package/logo-space.entry-DtPQz2nj.js +6 -0
- package/logo-variations-horizontal_2.entry-BUcAWE9P.js +7 -0
- package/logo-variations-horizontal_2.entry-CuIHzZ_5.mjs +29 -0
- package/{eds-logo-variations.entry-DGWNGIvb.js → logo-variations-tabs.entry-BFQf55Y1.js} +1 -1
- package/{eds-logo-variations.entry-CBy11DlE.mjs → logo-variations-tabs.entry-nnh_qtBx.mjs} +4 -4
- package/logo-wrong-usage.entry-CBpe4g63.js +1 -0
- package/logo-wrong-usage.entry-CQ3WROz1.mjs +14 -0
- package/minus-b30a7c71-BPAvqHzH.mjs +12 -0
- package/minus-b30a7c71-DqCTe6Qh.js +9 -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/{eds-svg-repository.entry-D1rRUteH.mjs → svg-repository.entry-CtZ9pBKr.mjs} +89 -88
- package/{eds-svg-repository.entry-B3RrcJof.js → svg-repository.entry-qTZFd69I.js} +12 -31
- package/token-list_3.entry-91wGiwGz.js +1 -0
- package/{token-list_3.entry-uSQm6z8I.mjs → token-list_3.entry-C4RxixtE.mjs} +16 -16
- package/token-ratios.entry-BmUxaqAu.js +1 -0
- package/{token-ratios.entry-BiuicosE.mjs → token-ratios.entry-BvmPBjyB.mjs} +2 -2
- package/{token-typography.entry-sTlt7Bpz.mjs → token-typography.entry-DFkDpqQO.mjs} +4 -4
- package/{token-typography.entry-Dn6NRvAR.js → token-typography.entry-DvZ1QVjt.js} +2 -2
- package/tutotial-150ee1fd-DFdyoHVA.mjs +28 -0
- package/tutotial-150ee1fd-DjN_JBL5.js +25 -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/color-primary-palette_6.entry-8IScvoTJ.mjs +0 -300
- package/color-primary-palette_6.entry-8sRpfe4E.js +0 -1
- package/correct-use-of-colors.entry-CfU46fhX.js +0 -1
- package/correct-use-of-colors.entry-ClTcY5vo.mjs +0 -59
- package/eds-breadcrumb.entry-Bfc36jaR.mjs +0 -104
- package/eds-breadcrumb.entry-D065WE8j.js +0 -1
- package/eds-card-desc_3.entry-CPmEcD7h.js +0 -1
- package/eds-card-generic.entry-Ct8aLaT_.js +0 -1
- package/eds-feedback.entry-Cii4Bgav.mjs +0 -53
- package/eds-feedback.entry-mS5rXykK.js +0 -1
- package/eds-form.entry-CNUo4guS.mjs +0 -226
- package/eds-form.entry-DmOYblLu.js +0 -1
- package/eds-frame.entry-MuWFMQ5l.js +0 -1
- package/eds-icon-bluesky.entry-DKFty2p_.mjs +0 -13
- package/eds-icon-close.entry-Cec0LlPI.mjs +0 -13
- package/eds-icon-eu.entry-CIYspbep.js +0 -1
- package/eds-icon-eu.entry-C_SYaSos.mjs +0 -13
- package/eds-icon-gitlab.entry-B4Y3IL_W.mjs +0 -13
- package/eds-icon-loader.entry-Cnugn2v_.mjs +0 -13
- package/eds-icon-loader.entry-OpxpC-qI.js +0 -1
- package/eds-icon-mastodon.entry-DfYxTk7y.mjs +0 -13
- package/eds-icon-menu.entry-4XLLYwtu.js +0 -1
- package/eds-icon-menu.entry-iM24FuKl.mjs +0 -13
- package/eds-icon-more.entry-BIN9jdzF.mjs +0 -13
- package/eds-icon-success.entry-C0jA8lzW.mjs +0 -13
- package/eds-icon-twitter.entry-CRA6F5rZ.mjs +0 -13
- package/eds-icon-user.entry-BQ64yR1z.js +0 -1
- package/eds-icon-user.entry-D-nrmq6-.mjs +0 -13
- package/eds-icon-youtube.entry-BCw69oaj.js +0 -1
- package/eds-icon-youtube.entry-DTLtxuVC.mjs +0 -13
- package/eds-input_7.entry-CSdmlGYi.mjs +0 -7971
- package/eds-input_7.entry-DdKDkmAq.js +0 -7766
- package/eds-modal.entry-B3qjw7GE.mjs +0 -96
- package/eds-modal.entry-KkENKOHe.js +0 -1
- package/eds-trl.entry-CwmhIRgh.mjs +0 -34
- package/incorrect-use-of-colors.entry-B5KDlGuR.mjs +0 -42
- package/incorrect-use-of-colors.entry-_H77f9zg.js +0 -1
- package/index-QKKBbj1_.js +0 -21
- package/logo-space.entry-CGNHFbPE.js +0 -1
- package/logo-space.entry-NVMguJha.mjs +0 -14
- package/logo-variations-horizontal_2.entry-CoHmkNBR.mjs +0 -29
- package/logo-variations-horizontal_2.entry-CykdymGd.js +0 -7
- package/logo-wrong-usage.entry-BozirNNs.mjs +0 -14
- package/logo-wrong-usage.entry-DCJHE7Y8.js +0 -1
- package/token-list_3.entry-D8dKORAJ.js +0 -1
- package/token-ratios.entry-CaKfU99x.js +0 -1
- package/token-spacing.entry-B9inIBOK.mjs +0 -12
- package/token-spacing.entry-BV0NaRVV.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as e } from "./index-
|
|
1
|
+
import { r as t, h as e } from "./index-CMP6-ecb.mjs";
|
|
2
2
|
const s = () => e(
|
|
3
3
|
"div",
|
|
4
4
|
{ class: "static-content container" },
|
|
@@ -49,6 +49,13 @@ const s = () => e(
|
|
|
49
49
|
e("code", null, "head")
|
|
50
50
|
),
|
|
51
51
|
e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
52
|
+
e(
|
|
53
|
+
"p",
|
|
54
|
+
null,
|
|
55
|
+
"To directly use only the produced variables add the tag below to the ",
|
|
56
|
+
e("code", null, "head")
|
|
57
|
+
),
|
|
58
|
+
e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>', language: "css", "copy-label": "Copy Code" }),
|
|
52
59
|
e(
|
|
53
60
|
"p",
|
|
54
61
|
null,
|
|
@@ -58,8 +65,8 @@ const s = () => e(
|
|
|
58
65
|
". If you wish, however, to load the fonts, add the tag below to the ",
|
|
59
66
|
e("code", null, "head")
|
|
60
67
|
),
|
|
61
|
-
e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
62
|
-
),
|
|
68
|
+
e("eds-code-block", { code: '<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>', language: "css", "copy-label": "Copy Code" })
|
|
69
|
+
), o = () => e(
|
|
63
70
|
"div",
|
|
64
71
|
null,
|
|
65
72
|
e("p", null, "Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),
|
|
@@ -88,7 +95,7 @@ const s = () => e(
|
|
|
88
95
|
{ class: "my-8" },
|
|
89
96
|
e("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" })
|
|
90
97
|
)
|
|
91
|
-
),
|
|
98
|
+
), a = () => e(
|
|
92
99
|
"div",
|
|
93
100
|
null,
|
|
94
101
|
e("h2", null, "React Wrappers"),
|
|
@@ -97,98 +104,83 @@ const s = () => e(
|
|
|
97
104
|
e(
|
|
98
105
|
"eds-section-core",
|
|
99
106
|
{ "section-title": "Example React App", "heading-level": "h3" },
|
|
107
|
+
e("p", null, "This code displays a Stencil-based splash screen that stays visible until an initialization promise resolves (or errors), then hides itself and reveals the main React app content."),
|
|
100
108
|
e("eds-code-block", { code: `
|
|
109
|
+
import React, { useMemo, useState } from 'react';
|
|
101
110
|
import {
|
|
102
|
-
EdsHeader
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
firstname: string;
|
|
109
|
-
lastname: string;
|
|
110
|
-
// Add any other properties your user object might have
|
|
111
|
-
}
|
|
111
|
+
EdsHeader
|
|
112
|
+
EdsSplashScreen,
|
|
113
|
+
EdsMatomoNotice,
|
|
114
|
+
EdsSteps
|
|
115
|
+
} from '@ebrains/react';
|
|
116
|
+
import './app.css';
|
|
112
117
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
118
|
+
// simulate 2s
|
|
119
|
+
function fakeInit(): Promise<void> {
|
|
120
|
+
return new Promise(resolve => setTimeout(resolve, 2000));
|
|
116
121
|
}
|
|
117
122
|
|
|
118
|
-
import { useEffect, useState } from "react";
|
|
119
|
-
|
|
120
123
|
export function App() {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
user: null,
|
|
124
|
-
});
|
|
125
|
-
const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
|
|
124
|
+
// 1) create init promise
|
|
125
|
+
const initPromise = useMemo(() => fakeInit(), []);
|
|
126
126
|
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
console.log(event.detail);
|
|
131
|
-
setAuthStatus(event.detail); // Set the entire object
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
document.addEventListener(
|
|
135
|
-
"authStatusChanged",
|
|
136
|
-
handleAuthStatusChange as EventListener,
|
|
137
|
-
);
|
|
127
|
+
// 2) is splash still visible
|
|
128
|
+
const [splashVisible, setSplashVisible] = useState(true);
|
|
129
|
+
const [initError, setInitError] = useState<string | null>(null);
|
|
138
130
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"authStatusChanged",
|
|
142
|
-
handleAuthStatusChange as EventListener,
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
}, []);
|
|
131
|
+
// 3) show the UI after the splash has hidden
|
|
132
|
+
const showApp = !splashVisible && !initError;
|
|
146
133
|
|
|
147
134
|
return (
|
|
148
135
|
<div>
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
136
|
+
{splashVisible && (
|
|
137
|
+
<EdsSplashScreen
|
|
138
|
+
inverse={false}
|
|
139
|
+
initPromise={initPromise}
|
|
140
|
+
onSplash={(e: CustomEvent) => {
|
|
141
|
+
if (e.detail.type === 'hidden') {
|
|
142
|
+
setSplashVisible(false);
|
|
143
|
+
} else if (e.detail.type === 'error') {
|
|
144
|
+
setInitError(e.detail.message);
|
|
145
|
+
setSplashVisible(false);
|
|
146
|
+
}
|
|
147
|
+
}}
|
|
148
|
+
/>
|
|
149
|
+
)}
|
|
150
|
+
|
|
151
|
+
{initError && (
|
|
152
|
+
<div className='error'>
|
|
153
|
+
Failed to initialize: {initError}
|
|
166
154
|
</div>
|
|
167
|
-
|
|
155
|
+
)}
|
|
156
|
+
|
|
157
|
+
{/* Show App only when ready */}
|
|
158
|
+
{showApp && (
|
|
159
|
+
<>
|
|
160
|
+
<EdsHeader></EdsHeader>
|
|
161
|
+
<EdsSteps
|
|
162
|
+
steps={[
|
|
163
|
+
{
|
|
164
|
+
title: 'Introduction',
|
|
165
|
+
content: 'Begin by familiarizing yourself with the overall process.'
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
title: 'Process Overview',
|
|
169
|
+
content: 'Review the detailed steps and understand the workflow.'
|
|
170
|
+
}
|
|
171
|
+
]}
|
|
172
|
+
type='linear'
|
|
173
|
+
/>
|
|
168
174
|
|
|
169
|
-
|
|
170
|
-
home-url="/"
|
|
171
|
-
links={[
|
|
172
|
-
{ label: "About", url: "#" },
|
|
173
|
-
{ label: "Focus Areas", url: "#" },
|
|
174
|
-
{ label: "News & Events", url: "#" },
|
|
175
|
-
{ label: "Contact", url: "#" }
|
|
176
|
-
]}
|
|
177
|
-
></EdsFullscreenMenu>
|
|
178
|
-
|
|
179
|
-
<div>
|
|
180
|
-
User is{" "}
|
|
181
|
-
{authStatus.authenticated ? "authenticated" : "not authenticated"}
|
|
182
|
-
</div>
|
|
183
|
-
{authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
|
|
175
|
+
<EdsMatomoNotice />
|
|
184
176
|
|
|
185
|
-
|
|
177
|
+
<div id='root'></div>
|
|
178
|
+
</>
|
|
179
|
+
)}
|
|
186
180
|
</div>
|
|
187
181
|
);
|
|
188
182
|
}
|
|
189
|
-
|
|
190
183
|
export default App;
|
|
191
|
-
|
|
192
184
|
`, language: "javascript", "copy-label": "Copy Code" })
|
|
193
185
|
)
|
|
194
186
|
), l = () => e(
|
|
@@ -227,7 +219,7 @@ export default App;
|
|
|
227
219
|
e(
|
|
228
220
|
"div",
|
|
229
221
|
{ class: "my-8" },
|
|
230
|
-
e("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "
|
|
222
|
+
e("eds-alert", { message: "Use the .prop modifier to ensure properties are passed correctly.", intent: "default" })
|
|
231
223
|
),
|
|
232
224
|
e("eds-code-block", { code: `<EdsAlert
|
|
233
225
|
message="This is a default informational alert."
|
|
@@ -247,26 +239,64 @@ export default App;
|
|
|
247
239
|
{ "section-title": "Example Vue App", "heading-level": "h3" },
|
|
248
240
|
e("eds-code-block", { code: `
|
|
249
241
|
<template>
|
|
250
|
-
<
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
242
|
+
<div>
|
|
243
|
+
<EdsHeader></EdsHeader>
|
|
244
|
+
<!-- render the splash until we manually hide it -->
|
|
245
|
+
<EdsSplashScreen inverse="false" />
|
|
246
|
+
|
|
247
|
+
<!-- then show main UI -->
|
|
248
|
+
<div v-if="!splashVisible" class="container my-16">
|
|
249
|
+
<EdsSteps
|
|
250
|
+
:steps="JSON.stringify(stepsdata)"
|
|
251
|
+
type="linear"
|
|
252
|
+
/>
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
254
255
|
</template>
|
|
255
256
|
|
|
256
257
|
<script>
|
|
257
|
-
|
|
258
|
-
import { EdsHeader } from "@ebrains/vue";
|
|
258
|
+
import { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";
|
|
259
259
|
|
|
260
260
|
export default {
|
|
261
261
|
name: "App",
|
|
262
|
-
components: {
|
|
263
|
-
|
|
262
|
+
components: { EdsHeader, EdsSplashScreen, EdsSteps },
|
|
263
|
+
data() {
|
|
264
|
+
return {
|
|
265
|
+
stepsdata: [
|
|
266
|
+
{ title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },
|
|
267
|
+
{ title: "Process Overview", content: "Review the detailed steps and understand the workflow." }
|
|
268
|
+
],
|
|
269
|
+
splashVisible: true
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
methods: {
|
|
273
|
+
delay(ms) {
|
|
274
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
275
|
+
},
|
|
276
|
+
async initialize() {
|
|
277
|
+
try {
|
|
278
|
+
// simulate your init work
|
|
279
|
+
await this.delay(2000);
|
|
280
|
+
|
|
281
|
+
// fire the built-in event that EdsSplashScreen listens for
|
|
282
|
+
window.dispatchEvent(new Event("hideSplash"));
|
|
283
|
+
} catch (e) {
|
|
284
|
+
console.error("Init error", e);
|
|
285
|
+
window.dispatchEvent(new Event("hideSplash"));
|
|
286
|
+
} finally {
|
|
287
|
+
// show the rest of the app
|
|
288
|
+
this.splashVisible = false;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
mounted() {
|
|
293
|
+
this.initialize();
|
|
264
294
|
}
|
|
265
295
|
};
|
|
266
296
|
<\/script>
|
|
267
297
|
`, language: "javascript", "copy-label": "Copy Code" })
|
|
268
298
|
)
|
|
269
|
-
),
|
|
299
|
+
), i = () => e(
|
|
270
300
|
"div",
|
|
271
301
|
null,
|
|
272
302
|
e("h2", null, "Angular Wrappers"),
|
|
@@ -292,7 +322,7 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
|
|
|
292
322
|
<eds-footer></eds-footer>
|
|
293
323
|
</div>`, language: "javascript", "copy-label": "Copy Code" })
|
|
294
324
|
)
|
|
295
|
-
),
|
|
325
|
+
), d = class {
|
|
296
326
|
constructor(n) {
|
|
297
327
|
t(this, n), this.tabIndex = void 0;
|
|
298
328
|
}
|
|
@@ -301,21 +331,21 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
|
|
|
301
331
|
case 0:
|
|
302
332
|
return e(s, null);
|
|
303
333
|
case 1:
|
|
304
|
-
return e(a, null);
|
|
305
|
-
case 2:
|
|
306
334
|
return e(o, null);
|
|
335
|
+
case 2:
|
|
336
|
+
return e(a, null);
|
|
307
337
|
case 3:
|
|
308
338
|
return e(l, null);
|
|
309
339
|
case 4:
|
|
310
|
-
return e(
|
|
340
|
+
return e(i, null);
|
|
311
341
|
default:
|
|
312
342
|
return e("p", null, "Content not available.");
|
|
313
343
|
}
|
|
314
344
|
}
|
|
315
345
|
render() {
|
|
316
|
-
return e("div", { key: "
|
|
346
|
+
return e("div", { key: "ee8facfaad3786770fd3ea39f1db7922a67ffd3e", class: "container" }, this.renderContent());
|
|
317
347
|
}
|
|
318
348
|
};
|
|
319
349
|
export {
|
|
320
|
-
|
|
350
|
+
d as components_section
|
|
321
351
|
};
|
|
@@ -1,128 +1,150 @@
|
|
|
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-RvcWEz0j.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("p",null,"Integrating the EBRAINS UI Components to a project without a JavaScript framework is straight forward. If you’re working on a simple HTML page, you can start using the components immediately by adding the tags below to the"," ",e.h("code",null,"head"),"."),e.h("eds-code-block",{code:`<script type='module'>
|
|
2
2
|
import { defineCustomElements } from 'https://unpkg.com/@ebrains/components@latest/loader/index.js';
|
|
3
3
|
// Define custom elements
|
|
4
4
|
defineCustomElements(window);
|
|
5
5
|
<\/script>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"This snippet is part of the Stencil component loader system. Under the hood, it does the following:"),e.h("eds-steps",{steps:[{title:"Import the Loader Module",content:"The script imports the defineCustomElements function from the Stencil-generated loader module hosted at a CDN. This module contains the registration logic for all your custom components."},{title:"Register Custom Elements",content:"Calling defineCustomElements(window) loops through the available components and registers each one with the browser using customElements.define(). This makes your custom elements available in the DOM."},{title:"Lazy Loading in Action",content:"Although all components are registered on startup, their implementation code is lazy-loaded. This means a component's code is only fetched when it is first used, optimizing the initial load time."},{title:"Optimized Performance",content:"By registering components early and lazy-loading their implementations, the script helps maintain a fast startup while ensuring that all custom elements are ready for use when needed."}]}),e.h("p",null,"Once included, components can be used in your markup like any other regular HTML elements:"),e.h("eds-code-block",{code:`<eds-button
|
|
6
6
|
label="my bytton"
|
|
7
7
|
intent="primary">
|
|
8
|
-
</eds-button>`,language:"html","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("p",null,"Note that, loading the predefined CSS framework above,"," ",e.h("b",null,"automatically loads the fonts so you can skip loading them separately"),". If you wish, however, to load the fonts, add the tag below to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@
|
|
8
|
+
</eds-button>`,language:"html","copy-label":"Copy Code"}),e.h("h2",null,"Load the styles"),e.h("p",null,"To directly use the produced css framework with a few predefined custom utility classes, add the tag below to the"," ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/output.css"/>',language:"css","copy-label":"Copy Code"}),e.h("p",null,"To directly use only the produced variables add the tag below to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/vars.css"/>',language:"css","copy-label":"Copy Code"}),e.h("p",null,"Note that, loading the predefined CSS framework above,"," ",e.h("b",null,"automatically loads the fonts so you can skip loading them separately"),". If you wish, however, to load the fonts, add the tag below to the ",e.h("code",null,"head")),e.h("eds-code-block",{code:'<link rel="stylesheet" href="https://unpkg.com/@ebrains/assets@latest/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"})),s=()=>e.h("div",null,e.h("p",null,"Before proceeding, ensure that Node.js is installed on your machine—you can download the latest version from the official website. If your project doesn’t already use npm and you plan to integrate EBRAINS Components, you'll need to create a package.json file by running npm init and following the on-screen instructions."),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/components",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/assets",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/react",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"html","copy-label":"Copy Code"})),e.h("div",{class:"my-8"},e.h("eds-code-block",{code:"npm install @ebrains/angular",language:"html","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"To use the EBRAINS web components in a React Application, simple install the package below and check out the examples"),e.h("eds-code-block",{code:"npm install @ebrains/react",language:"javascript","copy-label":"Copy Code"}),e.h("eds-section-core",{"section-title":"Example React App","heading-level":"h3"},e.h("p",null,"This code displays a Stencil-based splash screen that stays visible until an initialization promise resolves (or errors), then hides itself and reveals the main React app content."),e.h("eds-code-block",{code:`
|
|
9
|
+
import React, { useMemo, useState } from 'react';
|
|
9
10
|
import {
|
|
10
|
-
EdsHeader
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
EdsHeader
|
|
12
|
+
EdsSplashScreen,
|
|
13
|
+
EdsMatomoNotice,
|
|
14
|
+
EdsSteps
|
|
15
|
+
} from '@ebrains/react';
|
|
16
|
+
import './app.css';
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
// Add any other properties your user object might have
|
|
18
|
+
// simulate 2s
|
|
19
|
+
function fakeInit(): Promise<void> {
|
|
20
|
+
return new Promise(resolve => setTimeout(resolve, 2000));
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
interface AuthStatus {
|
|
22
|
-
authenticated: boolean;
|
|
23
|
-
user: User | null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
import { useEffect, useState } from "react";
|
|
27
|
-
|
|
28
23
|
export function App() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
user: null,
|
|
32
|
-
});
|
|
33
|
-
const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
|
|
34
|
-
|
|
35
|
-
// Use useEffect to render Stencil components dynamically after the component mounts
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
const handleAuthStatusChange = (event: CustomEvent) => {
|
|
38
|
-
console.log(event.detail);
|
|
39
|
-
setAuthStatus(event.detail); // Set the entire object
|
|
40
|
-
};
|
|
24
|
+
// 1) create init promise
|
|
25
|
+
const initPromise = useMemo(() => fakeInit(), []);
|
|
41
26
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
);
|
|
27
|
+
// 2) is splash still visible
|
|
28
|
+
const [splashVisible, setSplashVisible] = useState(true);
|
|
29
|
+
const [initError, setInitError] = useState<string | null>(null);
|
|
46
30
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"authStatusChanged",
|
|
50
|
-
handleAuthStatusChange as EventListener,
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
}, []);
|
|
31
|
+
// 3) show the UI after the splash has hidden
|
|
32
|
+
const showApp = !splashVisible && !initError;
|
|
54
33
|
|
|
55
34
|
return (
|
|
56
35
|
<div>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
36
|
+
{splashVisible && (
|
|
37
|
+
<EdsSplashScreen
|
|
38
|
+
inverse={false}
|
|
39
|
+
initPromise={initPromise}
|
|
40
|
+
onSplash={(e: CustomEvent) => {
|
|
41
|
+
if (e.detail.type === 'hidden') {
|
|
42
|
+
setSplashVisible(false);
|
|
43
|
+
} else if (e.detail.type === 'error') {
|
|
44
|
+
setInitError(e.detail.message);
|
|
45
|
+
setSplashVisible(false);
|
|
46
|
+
}
|
|
47
|
+
}}
|
|
48
|
+
/>
|
|
49
|
+
)}
|
|
50
|
+
|
|
51
|
+
{initError && (
|
|
52
|
+
<div className='error'>
|
|
53
|
+
Failed to initialize: {initError}
|
|
74
54
|
</div>
|
|
75
|
-
|
|
55
|
+
)}
|
|
56
|
+
|
|
57
|
+
{/* Show App only when ready */}
|
|
58
|
+
{showApp && (
|
|
59
|
+
<>
|
|
60
|
+
<EdsHeader></EdsHeader>
|
|
61
|
+
<EdsSteps
|
|
62
|
+
steps={[
|
|
63
|
+
{
|
|
64
|
+
title: 'Introduction',
|
|
65
|
+
content: 'Begin by familiarizing yourself with the overall process.'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: 'Process Overview',
|
|
69
|
+
content: 'Review the detailed steps and understand the workflow.'
|
|
70
|
+
}
|
|
71
|
+
]}
|
|
72
|
+
type='linear'
|
|
73
|
+
/>
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
home-url="/"
|
|
79
|
-
links={[
|
|
80
|
-
{ label: "About", url: "#" },
|
|
81
|
-
{ label: "Focus Areas", url: "#" },
|
|
82
|
-
{ label: "News & Events", url: "#" },
|
|
83
|
-
{ label: "Contact", url: "#" }
|
|
84
|
-
]}
|
|
85
|
-
></EdsFullscreenMenu>
|
|
86
|
-
|
|
87
|
-
<div>
|
|
88
|
-
User is{" "}
|
|
89
|
-
{authStatus.authenticated ? "authenticated" : "not authenticated"}
|
|
90
|
-
</div>
|
|
91
|
-
{authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
|
|
75
|
+
<EdsMatomoNotice />
|
|
92
76
|
|
|
93
|
-
|
|
77
|
+
<div id='root'></div>
|
|
78
|
+
</>
|
|
79
|
+
)}
|
|
94
80
|
</div>
|
|
95
81
|
);
|
|
96
82
|
}
|
|
97
|
-
|
|
98
83
|
export default App;
|
|
99
|
-
|
|
100
|
-
`,language:"javascript","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Passing Properties to Custom Elements Using the ",e.h("b",null,".prop")," Modifier in Vue Wrappers"),e.h("p",null,"When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),e.h("h3",null,"How to Use the ",e.h("b",null,".prop")," Modifier"),e.h("p",null,"When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"This may lead to issues because Vue binds these as attributes .",intent:"error"})),e.h("eds-code-block",{code:`<EdsAlert
|
|
84
|
+
`,language:"javascript","copy-label":"Copy Code"}))),a=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"To use the EBRAINS web components in a Vue Application, simple install the package below and check out the examples."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("h2",null,"Passing Properties to Custom Elements Using the ",e.h("b",null,".prop")," Modifier in Vue Wrappers"),e.h("p",null,"When using Vue wrappers for Stencil components (or any custom elements), you might encounter issues with property names being altered due to HTML’s attribute handling. By default, Vue binds values as HTML attributes, and HTML attributes are case-insensitive. This means that camelCase property names can be transformed into lowercase strings, which can prevent your component from receiving the correct data."),e.h("h3",null,"How to Use the ",e.h("b",null,".prop")," Modifier"),e.h("p",null,"When using Vue wrappers, you can pass properties with the .prop modifier by adding it to your binding expression. Here’s an example of how to do it:"),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"This may lead to issues because Vue binds these as attributes .",intent:"error"})),e.h("eds-code-block",{code:`<EdsAlert
|
|
101
85
|
message="This is a default informational alert."
|
|
102
86
|
intent="default"
|
|
103
87
|
:pressableLabel="Press Me"
|
|
104
88
|
:pressableUrl="https://ebrains.eu"
|
|
105
|
-
></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"
|
|
89
|
+
></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("div",{class:"my-8"},e.h("eds-alert",{message:"Use the .prop modifier to ensure properties are passed correctly.",intent:"default"})),e.h("eds-code-block",{code:`<EdsAlert
|
|
106
90
|
message="This is a default informational alert."
|
|
107
91
|
intent="default"
|
|
108
92
|
:pressableLabel.prop="Press Me"
|
|
109
93
|
:pressableUrl.prop="https://ebrains.eu"
|
|
110
94
|
></EdsAlert>`,language:"javascript","copy-label":"Copy Code"}),e.h("p",null,"Using the ",e.h("b",null,".prop")," modifier in Vue ensures that the data you pass to your custom elements is received as intended. It prevents Vue (and the browser) from transforming camelCase property names into lowercase attributes, thereby maintaining the correct data mapping in your Stencil components."),e.h("eds-section-core",{"section-title":"Example Vue App","heading-level":"h3"},e.h("eds-code-block",{code:`
|
|
111
95
|
<template>
|
|
112
|
-
<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
96
|
+
<div>
|
|
97
|
+
<EdsHeader></EdsHeader>
|
|
98
|
+
<!-- render the splash until we manually hide it -->
|
|
99
|
+
<EdsSplashScreen inverse="false" />
|
|
100
|
+
|
|
101
|
+
<!-- then show main UI -->
|
|
102
|
+
<div v-if="!splashVisible" class="container my-16">
|
|
103
|
+
<EdsSteps
|
|
104
|
+
:steps="JSON.stringify(stepsdata)"
|
|
105
|
+
type="linear"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
116
109
|
</template>
|
|
117
110
|
|
|
118
111
|
<script>
|
|
119
|
-
|
|
120
|
-
import { EdsHeader } from "@ebrains/vue";
|
|
112
|
+
import { EdsSplashScreen, EdsSteps, EdsHeader } from "@ebrains/vue";
|
|
121
113
|
|
|
122
114
|
export default {
|
|
123
115
|
name: "App",
|
|
124
|
-
components: {
|
|
125
|
-
|
|
116
|
+
components: { EdsHeader, EdsSplashScreen, EdsSteps },
|
|
117
|
+
data() {
|
|
118
|
+
return {
|
|
119
|
+
stepsdata: [
|
|
120
|
+
{ title: "Introduction", content: "Begin by familiarizing yourself with the overall process." },
|
|
121
|
+
{ title: "Process Overview", content: "Review the detailed steps and understand the workflow." }
|
|
122
|
+
],
|
|
123
|
+
splashVisible: true
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
methods: {
|
|
127
|
+
delay(ms) {
|
|
128
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
129
|
+
},
|
|
130
|
+
async initialize() {
|
|
131
|
+
try {
|
|
132
|
+
// simulate your init work
|
|
133
|
+
await this.delay(2000);
|
|
134
|
+
|
|
135
|
+
// fire the built-in event that EdsSplashScreen listens for
|
|
136
|
+
window.dispatchEvent(new Event("hideSplash"));
|
|
137
|
+
} catch (e) {
|
|
138
|
+
console.error("Init error", e);
|
|
139
|
+
window.dispatchEvent(new Event("hideSplash"));
|
|
140
|
+
} finally {
|
|
141
|
+
// show the rest of the app
|
|
142
|
+
this.splashVisible = false;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
mounted() {
|
|
147
|
+
this.initialize();
|
|
126
148
|
}
|
|
127
149
|
};
|
|
128
150
|
<\/script>
|
|
@@ -137,4 +159,4 @@ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p
|
|
|
137
159
|
]">
|
|
138
160
|
</eds-breadcrumb>
|
|
139
161
|
<eds-footer></eds-footer>
|
|
140
|
-
</div>`,language:"javascript","copy-label":"Copy Code"}))),
|
|
162
|
+
</div>`,language:"javascript","copy-label":"Copy Code"}))),i=class{constructor(n){e.registerInstance(this,n),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h(t,null);case 1:return e.h(s,null);case 2:return e.h(o,null);case 3:return e.h(a,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"ee8facfaad3786770fd3ea39f1db7922a67ffd3e",class:"container"},this.renderContent())}};exports.components_section=i;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { r as c, h as e } from "./index-CMP6-ecb.mjs";
|
|
2
|
+
const s = [
|
|
3
|
+
{
|
|
4
|
+
background: "#9CE142"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
background: "#00C959"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
background: "#00A595"
|
|
11
|
+
}
|
|
12
|
+
], a = [
|
|
13
|
+
{
|
|
14
|
+
background: "#141414"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
background: "#383838"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
background: "#CCCCCC"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
background: "#E6E6E6"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
background: "#FFFFFF"
|
|
27
|
+
}
|
|
28
|
+
], d = [
|
|
29
|
+
{
|
|
30
|
+
background: "#3FA9F5"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
background: "#0644F4"
|
|
34
|
+
}
|
|
35
|
+
], t = [
|
|
36
|
+
{
|
|
37
|
+
background: "#C461FF"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
background: "#5D3DF9"
|
|
41
|
+
}
|
|
42
|
+
], o = [
|
|
43
|
+
{
|
|
44
|
+
background: "#FFA543"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
background: "#FF4D68"
|
|
48
|
+
}
|
|
49
|
+
], n = class {
|
|
50
|
+
constructor(l) {
|
|
51
|
+
c(this, l);
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return e("div", { key: "966cb542b868e89c3f2538548e8a1ca8e20ea8d8", class: "container" }, e("p", { key: "3c595ffa9a2de45b681924354486309004d4ceaf", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "1d1fded0f8cf78cec9e364e5b6844598b55f3f86", label: "primary", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "abae691bb80eca1019f97375997b1aa6a577ba8b", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "251e6d8ad16d70974b67fa044d53abd1be79ccac", class: "flex" }, e("div", { key: "de5b9b6720aababb693421663c52db85cee1b5fc", class: "w-full" }, e("ul", { key: "a61f669f45c2f9d3b53d87bacc222a4274f93d34", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, s.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "e7787d0ae843d7767ecac3267f11325dcfecf948", class: "w-full" }, e("ul", { key: "0d740ad8178c88175939d32a4f84d518f587e43a", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))), e("p", { key: "6c59b2c574f5039baafd91a2939fbbb307732500", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "03e9ca7b0831c2b1d1908001324a38147ecea835", label: "purple", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "021affd3b5db00ccb5ef0d51de4552c5d3a11f44", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "b7a5c4c10adab099c57ed70c0d2186d791aa70ec", class: "flex" }, e("div", { key: "3732c49a47158c206e1b40fc5425e555487ec757", class: "w-full" }, e("ul", { key: "54a5d35510bd77397d1418aa2638cf310534e986", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, t.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "048de44bd69a7b6ecefe3188d76821e4d5145620", class: "w-full" }, e("ul", { key: "e3f8cadce4b9a575e1d844958cfccf20a19db681", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))), e("p", { key: "14d7f9c88ae769d6feb2a8344f8b45b40d4ae095", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "810bdfa6fd175f9d483129b70bbae469051e0e0d", label: "blue", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "fb8a9712f8e1ae1cffbb85c79f7e9c2657f867db", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "1df0919bb4c75ee251d7f5c8cf95bb2e2e990242", class: "flex" }, e("div", { key: "5a898462aa680267f4ac35aefb98e60b7f486c63", class: "w-full" }, e("ul", { key: "ad6f3e6ccde7d225be344efbc176064fc89aa796", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, d.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "8dd6e01b989c8589be6b553c85f0512c268ac369", class: "w-full" }, e("ul", { key: "c36937d99efd585c4e8a37b80de5bce82374186c", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))), e("p", { key: "452c68d1c797de34e531d7c734d350fcc36ae2f2", class: "f-body-01" }, "This guide demonstrates the correct usage of the", e("eds-link", { key: "17453c9d78c20583c989281672c0f41bbe8d036f", label: "redish", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#primary-palette", "extra-class": "inline-block ml-4" }), "and", e("eds-link", { key: "3e78eb924b6a857674d50d4a209e4843f76e5fc3", label: "support", size: "small", intent: "underline", icon: "chevron-right", url: "../color-palette/#support-palette", "extra-class": "inline-block ml-4" }), "color palettes."), e("div", { key: "ae3e2a703633013f632df3a75f45ec932ce5e13b", class: "flex" }, e("div", { key: "4a0f256fa355dcbd6d6fc0e95e81a6c2821c917d", class: "w-full" }, e("ul", { key: "8aaf611ed9b87b86d0c1b47b1e37cb01989838b2", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, o.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[225px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } }))))), e("div", { key: "112e50da1627a671fbca843111becf51cd02ebc5", class: "w-full" }, e("ul", { key: "14033bd08a9d16bd0b6cfe8b87acc2a841c48a29", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, a.map((l) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: l.background } })))))));
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
n as correct_use_of_colors
|
|
59
|
+
};
|