@ebrains/vue 0.4.0-alpha.0 → 0.6.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/analytics-44b1416b-3vYuu4Xs.mjs +28 -0
- package/analytics-44b1416b-ol77SdQE.js +1 -0
- package/color-2554aad6-CCcV5UJZ.mjs +131 -0
- package/color-2554aad6-D1hFGX4H.js +1 -0
- package/{color-primary-palette_6.entry-CSDWEKLH.mjs → color-primary-palette_6.entry-BJGrNiKE.mjs} +21 -21
- package/color-primary-palette_6.entry-CYSEDId9.js +1 -0
- package/correct-use-of-colors.entry-B36yaMb6.js +1 -0
- package/correct-use-of-colors.entry-C2K5ii07.mjs +59 -0
- package/eds-accordion_13.entry-BwXBZQ7p.mjs +8044 -0
- package/eds-accordion_13.entry-DuX3jvBd.js +7375 -0
- package/eds-alert.entry-B9K7jZdM.mjs +688 -0
- package/eds-alert.entry-HNjGFpMQ.js +608 -0
- package/eds-block-break.entry-1HfuhJmn.mjs +13 -0
- package/eds-block-break.entry-DQDjLThR.js +1 -0
- package/eds-breadcrumb.entry-Oe7Iu_rp.js +1 -0
- package/eds-breadcrumb.entry-nSQcSQxS.mjs +110 -0
- package/{eds-card-project.entry-C3eyu1U0.mjs → eds-card-project.entry-BMRVlg7J.mjs} +12 -11
- package/eds-card-project.entry-BQKGTSJB.js +1 -0
- package/eds-card-tags.entry-BjvxuQg1.mjs +13 -0
- package/{eds-card-tags.entry-YPPBWdFq.js → eds-card-tags.entry-DAkoUUin.js} +1 -1
- package/eds-card-tool.entry-B0rDGNdA.js +1 -0
- package/{eds-card-tool.entry-1_RNWh8n.mjs → eds-card-tool.entry-BPrlMiqY.mjs} +7 -7
- package/{eds-card-wrapper.entry-C4pNRjIj.mjs → eds-card-wrapper.entry-Ba4ljzon.mjs} +4 -4
- package/{eds-card-wrapper.entry-BfCDGeFs.js → eds-card-wrapper.entry-DyPmlYoI.js} +1 -1
- package/{eds-code-block.entry-DQEDpAjn.js → eds-code-block.entry-B3RL-q6l.js} +3 -3
- package/{eds-code-block.entry-B2xATQ7r.mjs → eds-code-block.entry-zX5MUsAS.mjs} +47 -47
- package/{eds-components-section.entry-D08woahG.js → eds-components-section.entry-BsmIIcun.js} +45 -36
- package/{eds-components-section.entry-DR-984-3.mjs → eds-components-section.entry-xnXY70G_.mjs} +56 -37
- package/eds-cookies-preference.entry-DAQEpE8v.mjs +20 -0
- package/eds-cookies-preference.entry-MAmSehJX.js +1 -0
- package/{eds-docs-palettes.entry-qKOj3XU9.js → eds-docs-palettes.entry-BiC_mzap.js} +1 -1
- package/{eds-docs-palettes.entry-B0yU2ZpL.mjs → eds-docs-palettes.entry-CFIZWB7Y.mjs} +2 -2
- package/{eds-docs-tokens.entry-BtRXzjrp.js → eds-docs-tokens.entry-CCwf01ke.js} +1 -1
- package/{eds-docs-tokens.entry-BVHiM7cK.mjs → eds-docs-tokens.entry-ClVBrRzm.mjs} +2 -2
- package/eds-dropdown_2.entry-Dhtc1LQe.js +1 -0
- package/eds-dropdown_2.entry-Ds54Abix.mjs +115 -0
- package/eds-footer.entry-CKr0MOpU.mjs +22 -0
- package/eds-footer.entry-DuNEl6BR.js +1 -0
- package/eds-form.entry-gO7sMMVG.js +7153 -0
- package/eds-form.entry-znKH1sqi.mjs +7340 -0
- package/eds-frame.entry-BE9_G-56.js +1 -0
- package/eds-frame.entry-COwMtc5z.mjs +74 -0
- package/eds-fullscreen-menu.entry-CRIb_lLm.js +1 -0
- package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +74 -0
- package/eds-header.entry-38uAVZoC.js +2 -0
- package/eds-header.entry-C0qfjzDY.mjs +75 -0
- package/eds-icon-arrow-diagonal.entry-BTLKc1cS.js +1 -0
- package/eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs +13 -0
- package/eds-icon-arrow-right.entry-Bv_6skZy.js +1 -0
- package/eds-icon-arrow-right.entry-DNkmpAdY.mjs +13 -0
- package/eds-icon-bluesky.entry-B_WksyEk.mjs +13 -0
- package/{eds-icon-bluesky.entry-Dppj9cuC.js → eds-icon-bluesky.entry-BfYrb4Uv.js} +1 -1
- package/eds-icon-chevron-down.entry-DGjMxTKO.mjs +13 -0
- package/{eds-icon-chevron-down.entry-CidjiGQS.js → eds-icon-chevron-down.entry-OPmfChgp.js} +1 -1
- package/eds-icon-chevron-left.entry-CRr4AWkS.mjs +13 -0
- package/eds-icon-chevron-left.entry-_zMMz-c9.js +1 -0
- package/eds-icon-chevron-right.entry-0FshDV46.js +1 -0
- package/{eds-icon-chevron-right.entry-iy6d6tux.mjs → eds-icon-chevron-right.entry-YLnmNxjo.mjs} +2 -2
- package/eds-icon-chevron-up.entry-DGt49ffi.js +1 -0
- package/eds-icon-chevron-up.entry-NPODej6j.mjs +13 -0
- package/eds-icon-close.entry-BQULA4ki.mjs +13 -0
- package/{eds-icon-close.entry-CE-Nory7.js → eds-icon-close.entry-BSSS65tZ.js} +1 -1
- package/eds-icon-copy.entry-Di_H0U8v.mjs +13 -0
- package/{eds-icon-copy.entry-Bpe3I5b6.js → eds-icon-copy.entry-PvAtojYn.js} +1 -1
- package/eds-icon-eu.entry-BTzpJByN.mjs +13 -0
- package/eds-icon-eu.entry-D77vjTJ9.js +1 -0
- package/eds-icon-facebook.entry-CKmUhO4W.mjs +13 -0
- package/eds-icon-facebook.entry-DsPVhA3Z.js +1 -0
- package/eds-icon-gitlab.entry-D6VEWpO6.mjs +13 -0
- package/eds-icon-gitlab.entry-Dzq7ViR-.js +1 -0
- package/{eds-icon-linkedin.entry-CstoPbTS.js → eds-icon-linkedin.entry-7PCeoMEi.js} +1 -1
- package/eds-icon-linkedin.entry-BI2sjTDa.mjs +13 -0
- package/eds-icon-loader.entry-BoQTR6PV.mjs +13 -0
- package/{eds-icon-loader.entry-CaGFh0gM.js → eds-icon-loader.entry-Bp-ZxeW7.js} +1 -1
- package/eds-icon-mastodon.entry-Cm8XCAqa.mjs +13 -0
- package/eds-icon-mastodon.entry-DsU7dMbW.js +1 -0
- package/eds-icon-menu.entry-C7HmF2n5.mjs +13 -0
- package/eds-icon-menu.entry-DRd13IcH.js +1 -0
- package/{eds-icon-more.entry-68jT9AEw.js → eds-icon-more.entry-BOWM2H9H.js} +1 -1
- package/eds-icon-more.entry-CqvnBXDu.mjs +13 -0
- package/eds-icon-search.entry-BrANR30M.mjs +13 -0
- package/eds-icon-search.entry-CubLvPO7.js +1 -0
- package/{eds-icon-success.entry-CACuZjP6.js → eds-icon-success.entry-CDwqLyts.js} +1 -1
- package/eds-icon-success.entry-CtMWWFTW.mjs +13 -0
- package/eds-icon-twitter.entry-BnhBJxrn.js +1 -0
- package/eds-icon-twitter.entry-DHTwTPKu.mjs +13 -0
- package/eds-icon-user.entry-GYJBVLsU.js +1 -0
- package/eds-icon-user.entry-LTXtb_m4.mjs +13 -0
- package/eds-icon-youtube.entry-BluzizaX.js +1 -0
- package/eds-icon-youtube.entry-BqP_g-Pb.mjs +13 -0
- package/eds-input_7.entry-Bo9-yfaP.js +7167 -0
- package/eds-input_7.entry-CCX6iGUA.mjs +7373 -0
- package/eds-link.entry-B_t5O_EC.js +7288 -0
- package/eds-link.entry-D4lqKj64.mjs +7454 -0
- package/eds-login.entry-CB_gy86p.mjs +58 -0
- package/eds-login.entry-CDj80EGl.js +1 -0
- package/eds-logo-variations.entry-AbwI_N4g.mjs +22 -0
- package/{eds-logo-variations.entry-CUD-M_Fd.js → eds-logo-variations.entry-B7BEqih8.js} +1 -1
- package/eds-logo.entry-C4YV268f.mjs +61 -0
- package/eds-logo.entry-D-2GjdZl.js +1 -0
- package/eds-modal.entry-2mm8jzwO.mjs +84 -0
- package/eds-modal.entry-N0Zu-2yI.js +1 -0
- package/{eds-navigator.entry-BJTqtqld.js → eds-navigator.entry-Bd0BYBJE.js} +1 -1
- package/{eds-navigator.entry-DdzcXSRW.mjs → eds-navigator.entry-DJHFUppb.mjs} +2 -2
- package/eds-pagination_2.entry-N7stHjY-.js +1 -0
- package/{eds-pagination_2.entry-B5PLo2Uu.mjs → eds-pagination_2.entry-T_lnxySd.mjs} +9 -9
- package/{eds-progress-bar.entry-DdqH0plT.mjs → eds-progress-bar.entry-BpqT4TGP.mjs} +5 -5
- package/{eds-progress-bar.entry-BBFsASiy.js → eds-progress-bar.entry-C-qHC2dN.js} +1 -1
- package/eds-rating.entry-C1djorgY.js +1 -0
- package/eds-rating.entry-DJbkld-l.mjs +48 -0
- package/{eds-section-core_2.entry-D3HYngR_.mjs → eds-section-core_2.entry-BwoSUszo.mjs} +6 -6
- package/{eds-section-core_2.entry-D_nLUa29.js → eds-section-core_2.entry-JyCa51Zs.js} +1 -1
- package/eds-social-networks.entry-CWw8CODU.mjs +50 -0
- package/eds-social-networks.entry-CveQgGlC.js +1 -0
- package/eds-steps.entry-NC8mexCJ.js +1 -0
- package/eds-steps.entry-gPHX8t5y.mjs +37 -0
- package/{eds-svg-repository.entry-in72TP_1.js → eds-svg-repository.entry-BhAWpTfJ.js} +2 -2
- package/{eds-svg-repository.entry-C-kayEdW.mjs → eds-svg-repository.entry-DeKbE1sw.mjs} +2 -2
- package/eds-switch.entry-6C-fiD1f.js +1 -0
- package/eds-switch.entry-LXqTebs4.mjs +20 -0
- package/{eds-tab.entry-BKYSiEkl.mjs → eds-tab.entry-7_C7zAnd.mjs} +2 -2
- package/{eds-tab.entry-BUzZWKac.js → eds-tab.entry-BI3X5Amp.js} +1 -1
- package/{eds-tabs-content.entry-3cyCQAth.mjs → eds-tabs-content.entry-BYK_ciTB.mjs} +6 -6
- package/eds-tabs-content.entry-FqonRXn9.js +1 -0
- package/{eds-tabs.entry-B8q09in2.mjs → eds-tabs.entry-CCGBUoii.mjs} +7 -7
- package/eds-tabs.entry-VauMxz1h.js +1 -0
- package/{eds-timeline.entry-DhHSQScv.mjs → eds-timeline.entry-B-eABvy-.mjs} +2 -2
- package/{eds-timeline.entry-DEcov8mq.js → eds-timeline.entry-UjKckHoD.js} +1 -1
- package/{eds-tooltip.entry-BTunlfGS.mjs → eds-tooltip.entry-BSd2vlEo.mjs} +3 -3
- package/eds-tooltip.entry-D9pRQyxl.js +1 -0
- package/{eds-trl.entry-Bt28XH55.mjs → eds-trl.entry-C1CKXjzi.mjs} +8 -8
- package/{eds-trl.entry-BHrlC_5O.js → eds-trl.entry-DdPaX9aY.js} +1 -1
- package/eds-user.entry-BX3nKCHB.mjs +66 -0
- package/eds-user.entry-CyEG-Wtm.js +1 -0
- package/eds-vertical-stepper.entry-CdmDXaW2.mjs +27 -0
- package/eds-vertical-stepper.entry-DphlSSa0.js +1 -0
- package/generated/components.d.ts +3 -0
- package/incorrect-use-of-colors.entry-BhygRTdu.js +1 -0
- package/incorrect-use-of-colors.entry-QkMrxvFS.mjs +42 -0
- package/{index-I5Asbjce.mjs → index-Df31uHzU.mjs} +609 -510
- package/index-DvG3cC-8.js +21 -0
- package/index.js +1 -1
- package/index.mjs +30 -27
- package/{keycloak-13893af6-BLzE1H6E.mjs → keycloak-d502ec16-Ce0iGqyk.mjs} +259 -247
- package/keycloak-d502ec16-m7LwS-Gh.js +9 -0
- package/{logo-space.entry-GnVq-srD.mjs → logo-space.entry-CChbx8AS.mjs} +7 -7
- package/{logo-space.entry-DsM5jXgX.js → logo-space.entry-q9Uznxi3.js} +1 -1
- package/logo-variations-horizontal_2.entry-DA_yMnFa.mjs +29 -0
- package/logo-variations-horizontal_2.entry-G3ih093R.js +7 -0
- package/logo-wrong-usage.entry-BoBmwzLl.mjs +14 -0
- package/logo-wrong-usage.entry-l4pJC0KB.js +1 -0
- package/package.json +1 -1
- package/{token-list_3.entry-DaIOT7_R.js → token-list_3.entry-B4bQ3_yz.js} +1 -1
- package/{token-list_3.entry-CReCwFzO.mjs → token-list_3.entry-CJXI55T0.mjs} +4 -4
- package/{token-ratios.entry-Dh8kvz8R.mjs → token-ratios.entry-LNQoHORe.mjs} +2 -2
- package/token-ratios.entry-hdef-MAq.js +1 -0
- package/token-spacing.entry-YXQwnYx0.mjs +12 -0
- package/token-spacing.entry-xhNHm9Tw.js +1 -0
- package/{token-typography.entry-DG-4k5gY.js → token-typography.entry-DddK_fiy.js} +1 -1
- package/{token-typography.entry-CIETKadf.mjs → token-typography.entry-qTyV0EeH.mjs} +2 -2
- package/color-bb472c37-CKu54kOY.js +0 -1
- package/color-bb472c37-DDERsxdk.mjs +0 -207
- package/color-primary-palette_6.entry-BB6740d4.js +0 -1
- package/correct-use-of-colors.entry-LuyuqIQ9.js +0 -1
- package/correct-use-of-colors.entry-hvZ1z3tc.mjs +0 -59
- package/eds-accordion_33.entry-DFgdjlJE.mjs +0 -31360
- package/eds-accordion_33.entry-DlnbmQ6R.js +0 -29468
- package/eds-card-project.entry-BQ-dH8vM.js +0 -1
- package/eds-card-section.entry-DU-1TB0I.js +0 -1
- package/eds-card-section.entry-Dxk-Ob_Y.mjs +0 -39
- package/eds-card-tags.entry-CIu6lD0P.mjs +0 -13
- package/eds-card-tool.entry-DgBqQucY.js +0 -1
- package/eds-icon-arrow-diagonal.entry-DjDB--sU.js +0 -1
- package/eds-icon-arrow-diagonal.entry-E5xC3m8H.mjs +0 -13
- package/eds-icon-arrow-right.entry-DaXIkUew.mjs +0 -13
- package/eds-icon-arrow-right.entry-odZ8U-W2.js +0 -1
- package/eds-icon-bluesky.entry-B3yW2mUC.mjs +0 -13
- package/eds-icon-chevron-down.entry-xWODzTE-.mjs +0 -13
- package/eds-icon-chevron-left.entry-CJyHE01I.mjs +0 -13
- package/eds-icon-chevron-left.entry-DjJj-hmG.js +0 -1
- package/eds-icon-chevron-right.entry-D8RyOADq.js +0 -1
- package/eds-icon-chevron-up.entry-TKCdY_T3.mjs +0 -13
- package/eds-icon-chevron-up.entry-ezV-v92v.js +0 -1
- package/eds-icon-close.entry-Brv3Uxu1.mjs +0 -13
- package/eds-icon-copy.entry-DQioS3t7.mjs +0 -13
- package/eds-icon-eu.entry-BzmYOiKL.js +0 -1
- package/eds-icon-eu.entry-KylDo55P.mjs +0 -13
- package/eds-icon-facebook.entry-DWZ02rD5.js +0 -1
- package/eds-icon-facebook.entry-DpS2m4v2.mjs +0 -13
- package/eds-icon-gitlab.entry-D8PM12SK.js +0 -1
- package/eds-icon-gitlab.entry-JX-5azIw.mjs +0 -13
- package/eds-icon-linkedin.entry-BylIVu8G.mjs +0 -13
- package/eds-icon-loader.entry-DZyUa8Na.mjs +0 -13
- package/eds-icon-mastodon.entry-BIckHn_q.mjs +0 -13
- package/eds-icon-mastodon.entry-DxNG__-Y.js +0 -1
- package/eds-icon-menu.entry-C9N6s8Oa.mjs +0 -13
- package/eds-icon-menu.entry-DwN-ZAWi.js +0 -1
- package/eds-icon-more.entry-MUkUL_e2.mjs +0 -13
- package/eds-icon-search.entry-CcwwFnns.mjs +0 -13
- package/eds-icon-search.entry-CrfMqbyi.js +0 -1
- package/eds-icon-success.entry-BUzsze9h.mjs +0 -13
- package/eds-icon-twitter.entry-B1Iw69NW.mjs +0 -13
- package/eds-icon-twitter.entry-BbStwaGv.js +0 -1
- package/eds-icon-user.entry-CNo6pger.mjs +0 -13
- package/eds-icon-user.entry-vYVsxfK7.js +0 -1
- package/eds-icon-youtube.entry-CBU7Dvkh.mjs +0 -13
- package/eds-icon-youtube.entry-CmCAFp7D.js +0 -1
- package/eds-login.entry-Bfztcsrc.js +0 -1
- package/eds-login.entry-XqWPWCDL.mjs +0 -46
- package/eds-logo-variations.entry-Cy_fbJLx.mjs +0 -22
- package/eds-matomo-notice.entry-CytVSgYS.js +0 -1
- package/eds-matomo-notice.entry-kSuLDx9K.mjs +0 -91
- package/eds-pagination_2.entry-DUsG8tcv.js +0 -1
- package/eds-rating.entry-CErokyKU.mjs +0 -38
- package/eds-rating.entry-p9oWKCkQ.js +0 -1
- package/eds-tabs-content.entry-Cg7U8c5D.js +0 -1
- package/eds-tabs.entry-DS6qBEo7.js +0 -1
- package/eds-tooltip.entry-sjwuhdKF.js +0 -1
- package/incorrect-use-of-colors.entry-DkY89xG1.mjs +0 -42
- package/incorrect-use-of-colors.entry-e4VhTVHS.js +0 -1
- package/index-D2H_BflF.js +0 -21
- package/keycloak-13893af6-NiM3zoVg.js +0 -9
- package/logo-variations-horizontal_2.entry-BeQ_r9Li.js +0 -7
- package/logo-variations-horizontal_2.entry-CC7tj8Hr.mjs +0 -29
- package/logo-wrong-usage.entry-Ct1Ae63m.mjs +0 -14
- package/logo-wrong-usage.entry-DkqcMaqp.js +0 -1
- package/token-ratios.entry-aBiRsmfr.js +0 -1
- package/token-spacing.entry-C5HX4qPq.mjs +0 -12
- package/token-spacing.entry-DDiMRsNO.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ee, h as E, g as te } from "./index-
|
|
1
|
+
import { r as ee, h as E, g as te } from "./index-Df31uHzU.mjs";
|
|
2
2
|
var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, W = { exports: {} };
|
|
3
3
|
(function(f) {
|
|
4
4
|
var S = typeof window < "u" ? window : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : {};
|
|
@@ -11,7 +11,7 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
11
11
|
* @public
|
|
12
12
|
*/
|
|
13
13
|
var i = function(u) {
|
|
14
|
-
var
|
|
14
|
+
var g = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, y = 0, h = {}, s = {
|
|
15
15
|
/**
|
|
16
16
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
17
17
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -143,7 +143,7 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
143
143
|
*/
|
|
144
144
|
getLanguage: function(t) {
|
|
145
145
|
for (; t; ) {
|
|
146
|
-
var e =
|
|
146
|
+
var e = g.exec(t.className);
|
|
147
147
|
if (e)
|
|
148
148
|
return e[1].toLowerCase();
|
|
149
149
|
t = t.parentElement;
|
|
@@ -158,7 +158,7 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
158
158
|
* @returns {void}
|
|
159
159
|
*/
|
|
160
160
|
setLanguage: function(t, e) {
|
|
161
|
-
t.className = t.className.replace(RegExp(
|
|
161
|
+
t.className = t.className.replace(RegExp(g, "gi"), ""), t.classList.add("language-" + e);
|
|
162
162
|
},
|
|
163
163
|
/**
|
|
164
164
|
* Returns the script element that is currently executing.
|
|
@@ -653,11 +653,11 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
653
653
|
G && (H = I(e, H, G), k += G.length), M(e, H, L);
|
|
654
654
|
var Q = new m(d, F ? s.tokenize(N, F) : N, K, N);
|
|
655
655
|
if (w = I(e, H, Q), Y && I(e, w, Y), L > 1) {
|
|
656
|
-
var
|
|
656
|
+
var B = {
|
|
657
657
|
cause: d + "," + p,
|
|
658
658
|
reach: z
|
|
659
659
|
};
|
|
660
|
-
R(t, e, a, w.prev, k,
|
|
660
|
+
R(t, e, a, w.prev, k, B), l && B.reach > l.reach && (l.reach = B.reach);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
}
|
|
@@ -689,12 +689,12 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
689
689
|
}, !1)), s;
|
|
690
690
|
var b = s.util.currentScript();
|
|
691
691
|
b && (s.filename = b.src, b.hasAttribute("data-manual") && (s.manual = !0));
|
|
692
|
-
function
|
|
692
|
+
function c() {
|
|
693
693
|
s.manual || s.highlightAll();
|
|
694
694
|
}
|
|
695
695
|
if (!s.manual) {
|
|
696
696
|
var v = document.readyState;
|
|
697
|
-
v === "loading" || v === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded",
|
|
697
|
+
v === "loading" || v === "interactive" && b && b.defer ? document.addEventListener("DOMContentLoaded", c) : window.requestAnimationFrame ? window.requestAnimationFrame(c) : window.setTimeout(c, 16);
|
|
698
698
|
}
|
|
699
699
|
return s;
|
|
700
700
|
}(S);
|
|
@@ -789,7 +789,7 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
789
789
|
* @example
|
|
790
790
|
* addInlined('style', 'css');
|
|
791
791
|
*/
|
|
792
|
-
value: function(
|
|
792
|
+
value: function(g, y) {
|
|
793
793
|
var h = {};
|
|
794
794
|
h["language-" + y] = {
|
|
795
795
|
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
@@ -807,9 +807,9 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
807
807
|
inside: i.languages[y]
|
|
808
808
|
};
|
|
809
809
|
var m = {};
|
|
810
|
-
m[
|
|
810
|
+
m[g] = {
|
|
811
811
|
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
812
|
-
return
|
|
812
|
+
return g;
|
|
813
813
|
}), "i"),
|
|
814
814
|
lookbehind: !0,
|
|
815
815
|
greedy: !0,
|
|
@@ -828,7 +828,7 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
828
828
|
* @example
|
|
829
829
|
* addAttribute('style', 'css');
|
|
830
830
|
*/
|
|
831
|
-
value: function(u,
|
|
831
|
+
value: function(u, g) {
|
|
832
832
|
i.languages.markup.tag.inside["special-attr"].push({
|
|
833
833
|
pattern: RegExp(
|
|
834
834
|
/(^|["'\s])/.source + "(?:" + u + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
@@ -843,8 +843,8 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
843
843
|
value: {
|
|
844
844
|
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
845
845
|
lookbehind: !0,
|
|
846
|
-
alias: [
|
|
847
|
-
inside: i.languages[
|
|
846
|
+
alias: [g, "language-" + g],
|
|
847
|
+
inside: i.languages[g]
|
|
848
848
|
},
|
|
849
849
|
punctuation: [
|
|
850
850
|
{
|
|
@@ -859,11 +859,11 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
}), i.languages.html = i.languages.markup, i.languages.mathml = i.languages.markup, i.languages.svg = i.languages.markup, i.languages.xml = i.languages.extend("markup", {}), i.languages.ssml = i.languages.xml, i.languages.atom = i.languages.xml, i.languages.rss = i.languages.xml, function(u) {
|
|
862
|
-
var
|
|
862
|
+
var g = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
|
|
863
863
|
u.languages.css = {
|
|
864
864
|
comment: /\/\*[\s\S]*?\*\//,
|
|
865
865
|
atrule: {
|
|
866
|
-
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" +
|
|
866
|
+
pattern: RegExp("@[\\w-](?:" + /[^;{\s"']|\s+(?!\s)/.source + "|" + g.source + ")*?" + /(?:;|(?=\s*\{))/.source),
|
|
867
867
|
inside: {
|
|
868
868
|
rule: /^@[\w-]+/,
|
|
869
869
|
"selector-function-argument": {
|
|
@@ -880,23 +880,23 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
880
880
|
},
|
|
881
881
|
url: {
|
|
882
882
|
// https://drafts.csswg.org/css-values-3/#urls
|
|
883
|
-
pattern: RegExp("\\burl\\((?:" +
|
|
883
|
+
pattern: RegExp("\\burl\\((?:" + g.source + "|" + /(?:[^\\\r\n()"']|\\[\s\S])*/.source + ")\\)", "i"),
|
|
884
884
|
greedy: !0,
|
|
885
885
|
inside: {
|
|
886
886
|
function: /^url/i,
|
|
887
887
|
punctuation: /^\(|\)$/,
|
|
888
888
|
string: {
|
|
889
|
-
pattern: RegExp("^" +
|
|
889
|
+
pattern: RegExp("^" + g.source + "$"),
|
|
890
890
|
alias: "url"
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
},
|
|
894
894
|
selector: {
|
|
895
|
-
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` +
|
|
895
|
+
pattern: RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + g.source + ")*(?=\\s*\\{)"),
|
|
896
896
|
lookbehind: !0
|
|
897
897
|
},
|
|
898
898
|
string: {
|
|
899
|
-
pattern:
|
|
899
|
+
pattern: g,
|
|
900
900
|
greedy: !0
|
|
901
901
|
},
|
|
902
902
|
property: {
|
|
@@ -1076,8 +1076,8 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
1076
1076
|
if (typeof i > "u" || typeof document > "u")
|
|
1077
1077
|
return;
|
|
1078
1078
|
Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
|
|
1079
|
-
var u = "Loading…",
|
|
1080
|
-
return "✖ Error " + b + " while fetching file: " +
|
|
1079
|
+
var u = "Loading…", g = function(b, c) {
|
|
1080
|
+
return "✖ Error " + b + " while fetching file: " + c;
|
|
1081
1081
|
}, y = "✖ Error: File does not exist or is empty", h = {
|
|
1082
1082
|
js: "javascript",
|
|
1083
1083
|
py: "python",
|
|
@@ -1089,51 +1089,51 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
1089
1089
|
h: "c",
|
|
1090
1090
|
tex: "latex"
|
|
1091
1091
|
}, s = "data-src-status", m = "loading", T = "loaded", R = "failed", O = "pre[data-src]:not([" + s + '="' + T + '"]):not([' + s + '="' + m + '"])';
|
|
1092
|
-
function I(b,
|
|
1092
|
+
function I(b, c, v) {
|
|
1093
1093
|
var t = new XMLHttpRequest();
|
|
1094
1094
|
t.open("GET", b, !0), t.onreadystatechange = function() {
|
|
1095
|
-
t.readyState == 4 && (t.status < 400 && t.responseText ?
|
|
1095
|
+
t.readyState == 4 && (t.status < 400 && t.responseText ? c(t.responseText) : t.status >= 400 ? v(g(t.status, t.statusText)) : v(y));
|
|
1096
1096
|
}, t.send(null);
|
|
1097
1097
|
}
|
|
1098
1098
|
function M(b) {
|
|
1099
|
-
var
|
|
1100
|
-
if (
|
|
1101
|
-
var v = Number(
|
|
1099
|
+
var c = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b || "");
|
|
1100
|
+
if (c) {
|
|
1101
|
+
var v = Number(c[1]), t = c[2], e = c[3];
|
|
1102
1102
|
return t ? e ? [v, Number(e)] : [v, void 0] : [v, v];
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
1105
|
i.hooks.add("before-highlightall", function(b) {
|
|
1106
1106
|
b.selector += ", " + O;
|
|
1107
1107
|
}), i.hooks.add("before-sanity-check", function(b) {
|
|
1108
|
-
var
|
|
1108
|
+
var c = (
|
|
1109
1109
|
/** @type {HTMLPreElement} */
|
|
1110
1110
|
b.element
|
|
1111
1111
|
);
|
|
1112
|
-
if (
|
|
1113
|
-
b.code = "",
|
|
1114
|
-
var v =
|
|
1112
|
+
if (c.matches(O)) {
|
|
1113
|
+
b.code = "", c.setAttribute(s, m);
|
|
1114
|
+
var v = c.appendChild(document.createElement("CODE"));
|
|
1115
1115
|
v.textContent = u;
|
|
1116
|
-
var t =
|
|
1116
|
+
var t = c.getAttribute("data-src"), e = b.language;
|
|
1117
1117
|
if (e === "none") {
|
|
1118
1118
|
var a = (/\.(\w+)$/.exec(t) || [, "none"])[1];
|
|
1119
1119
|
e = h[a] || a;
|
|
1120
1120
|
}
|
|
1121
|
-
i.util.setLanguage(v, e), i.util.setLanguage(
|
|
1121
|
+
i.util.setLanguage(v, e), i.util.setLanguage(c, e);
|
|
1122
1122
|
var n = i.plugins.autoloader;
|
|
1123
1123
|
n && n.loadLanguages(e), I(
|
|
1124
1124
|
t,
|
|
1125
1125
|
function(r) {
|
|
1126
|
-
|
|
1127
|
-
var l = M(
|
|
1126
|
+
c.setAttribute(s, T);
|
|
1127
|
+
var l = M(c.getAttribute("data-range"));
|
|
1128
1128
|
if (l) {
|
|
1129
1129
|
var d = r.split(/\r\n?|\n/g), o = l[0], p = l[1] == null ? d.length : l[1];
|
|
1130
1130
|
o < 0 && (o += d.length), o = Math.max(0, Math.min(o - 1, d.length)), p < 0 && (p += d.length), p = Math.max(0, Math.min(p, d.length)), r = d.slice(o, p).join(`
|
|
1131
|
-
`),
|
|
1131
|
+
`), c.hasAttribute("data-start") || c.setAttribute("data-start", String(o + 1));
|
|
1132
1132
|
}
|
|
1133
1133
|
v.textContent = r, i.highlightElement(v);
|
|
1134
1134
|
},
|
|
1135
1135
|
function(r) {
|
|
1136
|
-
|
|
1136
|
+
c.setAttribute(s, R), v.textContent = r;
|
|
1137
1137
|
}
|
|
1138
1138
|
);
|
|
1139
1139
|
}
|
|
@@ -1145,8 +1145,8 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
1145
1145
|
*
|
|
1146
1146
|
* @param {ParentNode} [container=document]
|
|
1147
1147
|
*/
|
|
1148
|
-
highlight: function(
|
|
1149
|
-
for (var v = (
|
|
1148
|
+
highlight: function(c) {
|
|
1149
|
+
for (var v = (c || document).querySelectorAll(O), t = 0, e; e = v[t++]; )
|
|
1150
1150
|
i.highlightElement(e);
|
|
1151
1151
|
}
|
|
1152
1152
|
};
|
|
@@ -1156,7 +1156,7 @@ var Z = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
1156
1156
|
};
|
|
1157
1157
|
}();
|
|
1158
1158
|
})(W);
|
|
1159
|
-
const
|
|
1159
|
+
const U = W.exports;
|
|
1160
1160
|
Prism.languages.python = {
|
|
1161
1161
|
comment: {
|
|
1162
1162
|
pattern: /(^|[^\\])#.*/,
|
|
@@ -1419,7 +1419,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
1419
1419
|
lookbehind: !0
|
|
1420
1420
|
}
|
|
1421
1421
|
}, i.inside = f.languages.bash;
|
|
1422
|
-
for (var
|
|
1422
|
+
for (var g = [
|
|
1423
1423
|
"comment",
|
|
1424
1424
|
"function-name",
|
|
1425
1425
|
"for-or-select",
|
|
@@ -1435,12 +1435,12 @@ Prism.languages.py = Prism.languages.python;
|
|
|
1435
1435
|
"operator",
|
|
1436
1436
|
"punctuation",
|
|
1437
1437
|
"number"
|
|
1438
|
-
], y = u.variable[1].inside, h = 0; h <
|
|
1439
|
-
y[
|
|
1438
|
+
], y = u.variable[1].inside, h = 0; h < g.length; h++)
|
|
1439
|
+
y[g[h]] = f.languages.bash[g[h]];
|
|
1440
1440
|
f.languages.sh = f.languages.bash, f.languages.shell = f.languages.bash;
|
|
1441
1441
|
})(Prism);
|
|
1442
1442
|
(function(f) {
|
|
1443
|
-
var S = /[*&][^\s[\]{},]+/, i = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, u = "(?:" + i.source + "(?:[ ]+" + S.source + ")?|" + S.source + "(?:[ ]+" + i.source + ")?)",
|
|
1443
|
+
var S = /[*&][^\s[\]{},]+/, i = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, u = "(?:" + i.source + "(?:[ ]+" + S.source + ")?|" + S.source + "(?:[ ]+" + i.source + ")?)", g = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
1444
1444
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
1445
1445
|
}), y = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
1446
1446
|
function h(s, m) {
|
|
@@ -1465,7 +1465,7 @@ Prism.languages.py = Prism.languages.python;
|
|
|
1465
1465
|
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
1466
1466
|
return u;
|
|
1467
1467
|
}).replace(/<<key>>/g, function() {
|
|
1468
|
-
return "(?:" +
|
|
1468
|
+
return "(?:" + g + "|" + y + ")";
|
|
1469
1469
|
})),
|
|
1470
1470
|
lookbehind: !0,
|
|
1471
1471
|
greedy: !0,
|
|
@@ -1608,10 +1608,10 @@ const ae = `:host{display:block;font-family:var(--font-family, 'Courier New', mo
|
|
|
1608
1608
|
* @returns {string} The highlighted HTML string for the code block.
|
|
1609
1609
|
*/
|
|
1610
1610
|
getHighlightedCode() {
|
|
1611
|
-
return this.language &&
|
|
1611
|
+
return this.language && U.languages[this.language] ? U.highlight(this.code, U.languages[this.language], this.language) : this.code;
|
|
1612
1612
|
}
|
|
1613
1613
|
render() {
|
|
1614
|
-
return E("div", { key: "
|
|
1614
|
+
return E("div", { key: "cb379e82bcf71345945b0b88397650ecd4992770", class: "relative bg-stronger rounded-sm" }, E("div", { key: "945046d4fd747cd64a83155b421a897e380cc612", class: "text-inverse flex justify-between items-center p-8" }, this.language ? E("span", { class: "f-ui-03" }, this.language.toUpperCase()) : E("pre", { class: "bg-stronger pl-8", role: "region", "aria-label": "Code block without language" }, E("code", { innerHTML: this.getHighlightedCode() })), E("span", { key: "3f6c7e996101f0bb83fb8c9e6991a205a0b268c8", "aria-hidden": "true", class: "w-20 h-20 mt-8" }, E("eds-icon-wrapper", { key: "8ad9beb61058f29e688f6777233c61f7fb3ccfe8", icon: this.copied ? "success" : "copy", onClick: () => this.copyToClipboard() })), E("span", { key: "a4f9a07906e1c2d9febb7ae789a3eed76dc422e9", class: "sr-only" }, "Copy Code")), this.language && E("pre", { key: "e31339126dd3cc885511aaa2bdf6f06f3a113c74", class: `language-${this.language} bg-stronger pl-8 pb-8`, role: "region", "aria-label": `Code block in ${this.language}` }, E("code", { key: "7efacd276f26a00f0f61793f6b8748259e1614b5", innerHTML: this.getHighlightedCode() })));
|
|
1615
1615
|
}
|
|
1616
1616
|
get el() {
|
|
1617
1617
|
return te(this);
|
package/{eds-components-section.entry-D08woahG.js → eds-components-section.entry-BsmIIcun.js}
RENAMED
|
@@ -1,16 +1,21 @@
|
|
|
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-DvG3cC-8.js"),t=()=>e.h("div",{class:"static-content container"},e.h("h2",null,"Load the module"),e.h("p",null,"Integrating EDSs 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("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("div",{class:"my-4"},e.h("eds-alert",{message:"Note that, loading the predefined CSS framework above, automatically loads the fonts so you can skip loading them separately.",intent:"warning"})),e.h("h2",null,"Load the fonts"),e.h("p",null,"To load the webfonts, 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@0.0.1/styles/base/fonts.css"/>',language:"css","copy-label":"Copy Code"}),e.h("h2",null,"Component Usage"),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"})),a=()=>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"}))),s=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"Learn how to use our components in a React Application.Simple install the package below and check out the examples"),e.h("div",{class:"my-8"},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("eds-code-block",{code:`
|
|
9
|
-
import {
|
|
8
|
+
</eds-button>`,language:"html","copy-label":"Copy Code"})),a=()=>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"}))),s=()=>e.h("div",null,e.h("h2",null,"React Wrappers"),e.h("p",null,"Learn how to use our components in a React Application.Simple install the package below and check out the examples"),e.h("div",{class:"my-8"},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("eds-code-block",{code:`
|
|
9
|
+
import {
|
|
10
|
+
EdsHeader,
|
|
11
|
+
EdsFullscreenMenu,
|
|
12
|
+
EdsUser
|
|
13
|
+
} from "@ebrains/react";
|
|
10
14
|
|
|
11
15
|
interface User {
|
|
12
16
|
firstname: string;
|
|
13
17
|
lastname: string;
|
|
18
|
+
// Add any other properties your user object might have
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
interface AuthStatus {
|
|
@@ -21,73 +26,77 @@ interface AuthStatus {
|
|
|
21
26
|
import { useEffect, useState } from "react";
|
|
22
27
|
|
|
23
28
|
export function App() {
|
|
24
|
-
|
|
25
29
|
const [authStatus, setAuthStatus] = useState<AuthStatus>({
|
|
26
30
|
authenticated: false,
|
|
27
31
|
user: null,
|
|
28
32
|
});
|
|
29
|
-
|
|
30
33
|
const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
|
|
31
34
|
|
|
32
35
|
// Use useEffect to render Stencil components dynamically after the component mounts
|
|
33
36
|
useEffect(() => {
|
|
34
|
-
|
|
35
37
|
const handleAuthStatusChange = (event: CustomEvent) => {
|
|
36
38
|
console.log(event.detail);
|
|
37
39
|
setAuthStatus(event.detail); // Set the entire object
|
|
38
40
|
};
|
|
39
41
|
|
|
40
|
-
const handleTabChange = (
|
|
41
|
-
event: CustomEvent<{ index: number; name: string }>,
|
|
42
|
-
) => {
|
|
43
|
-
console.log(event.detail);
|
|
44
|
-
setActiveTabIndex(event.detail.index);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
42
|
document.addEventListener(
|
|
48
43
|
"authStatusChanged",
|
|
49
44
|
handleAuthStatusChange as EventListener,
|
|
50
45
|
);
|
|
51
|
-
document.addEventListener("tabChange", handleTabChange as EventListener);
|
|
52
46
|
|
|
53
47
|
return () => {
|
|
54
48
|
document.removeEventListener(
|
|
55
49
|
"authStatusChanged",
|
|
56
50
|
handleAuthStatusChange as EventListener,
|
|
57
51
|
);
|
|
58
|
-
document.removeEventListener(
|
|
59
|
-
"tabChange",
|
|
60
|
-
handleTabChange as EventListener,
|
|
61
|
-
);
|
|
62
52
|
};
|
|
63
|
-
}, []);
|
|
53
|
+
}, []);
|
|
64
54
|
|
|
65
55
|
return (
|
|
66
|
-
<div
|
|
56
|
+
<div>
|
|
67
57
|
<EdsHeader
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
58
|
+
homeUrl="/"
|
|
59
|
+
menuEnabled={true}
|
|
60
|
+
inverseHeader={false}
|
|
61
|
+
links={[
|
|
62
|
+
{ label: "About", url: "#" },
|
|
63
|
+
{ label: "Focus Areas", url: "#" },
|
|
64
|
+
{ label: "News & Events", url: "#" },
|
|
65
|
+
{ label: "Contact", url: "#" }
|
|
66
|
+
]}
|
|
67
|
+
>
|
|
68
|
+
<div className="px-16">
|
|
69
|
+
<EdsUser
|
|
70
|
+
keycloak-url="http://localhost:8080"
|
|
71
|
+
keycloak-realm="nigeor-realm"
|
|
72
|
+
keycloak-client-id="stencil-app"
|
|
73
|
+
></EdsUser>
|
|
74
|
+
</div>
|
|
75
|
+
</EdsHeader>
|
|
80
76
|
|
|
81
|
-
<
|
|
82
|
-
|
|
77
|
+
<EdsFullscreenMenu
|
|
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"}
|
|
83
90
|
</div>
|
|
84
91
|
{authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
|
|
85
|
-
|
|
92
|
+
|
|
93
|
+
<div id="main"></div>
|
|
86
94
|
</div>
|
|
87
95
|
);
|
|
88
96
|
}
|
|
89
97
|
|
|
90
98
|
export default App;
|
|
99
|
+
|
|
91
100
|
`,language:"javascript","copy-label":"Copy Code"}))),o=()=>e.h("div",null,e.h("h2",null,"Vue Wrappers"),e.h("p",null,"Learn how to use our components in a Vue Application."),e.h("p",null,"Simply install the latest version of our NPM package."),e.h("eds-code-block",{code:"npm install @ebrains/vue",language:"javascript","copy-label":"Copy Code"}),e.h("p",null,'Our NPM package already includes the custom elements definitions. However, you can use the components as they are by simply importing and executing the initialization command in your "main.ts" file.'),e.h("eds-code-block",{code:`import { defineCustomElements } from '@ebrains/components/loader';
|
|
92
101
|
defineCustomElements();`,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:"mt-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
|
|
93
102
|
message="This is a default informational alert."
|
|
@@ -129,4 +138,4 @@ defineCustomElements();`,language:"javascript","copy-label":"Copy Code"}),e.h("p
|
|
|
129
138
|
]">
|
|
130
139
|
</eds-breadcrumb>
|
|
131
140
|
<eds-footer></eds-footer>
|
|
132
|
-
</div>`,language:"javascript","copy-label":"Copy Code"}))),r=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(a,null);case 2:return e.h(s,null);case 3:return e.h(o,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"
|
|
141
|
+
</div>`,language:"javascript","copy-label":"Copy Code"}))),r=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(a,null);case 2:return e.h(s,null);case 3:return e.h(o,null);case 4:return e.h(l,null);default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"7e582a0eeafc2687229454532b5a7f66f91c1856",class:"container"},this.renderContent())}};exports.eds_components_section=r;
|
package/{eds-components-section.entry-DR-984-3.mjs → eds-components-section.entry-xnXY70G_.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as e } from "./index-
|
|
1
|
+
import { r as t, h as e } from "./index-Df31uHzU.mjs";
|
|
2
2
|
const a = () => e(
|
|
3
3
|
"div",
|
|
4
4
|
{ class: "static-content container" },
|
|
@@ -62,6 +62,16 @@ const a = () => e(
|
|
|
62
62
|
"div",
|
|
63
63
|
{ class: "my-8" },
|
|
64
64
|
e("eds-code-block", { code: "npm install @ebrains/react", language: "html", "copy-label": "Copy Code" })
|
|
65
|
+
),
|
|
66
|
+
e(
|
|
67
|
+
"div",
|
|
68
|
+
{ class: "my-8" },
|
|
69
|
+
e("eds-code-block", { code: "npm install @ebrains/vue", language: "html", "copy-label": "Copy Code" })
|
|
70
|
+
),
|
|
71
|
+
e(
|
|
72
|
+
"div",
|
|
73
|
+
{ class: "my-8" },
|
|
74
|
+
e("eds-code-block", { code: "npm install @ebrains/angular", language: "html", "copy-label": "Copy Code" })
|
|
65
75
|
)
|
|
66
76
|
), o = () => e(
|
|
67
77
|
"div",
|
|
@@ -77,11 +87,16 @@ const a = () => e(
|
|
|
77
87
|
"eds-section-core",
|
|
78
88
|
{ "section-title": "Example React App", "heading-level": "h3" },
|
|
79
89
|
e("eds-code-block", { code: `
|
|
80
|
-
import {
|
|
90
|
+
import {
|
|
91
|
+
EdsHeader,
|
|
92
|
+
EdsFullscreenMenu,
|
|
93
|
+
EdsUser
|
|
94
|
+
} from "@ebrains/react";
|
|
81
95
|
|
|
82
96
|
interface User {
|
|
83
97
|
firstname: string;
|
|
84
98
|
lastname: string;
|
|
99
|
+
// Add any other properties your user object might have
|
|
85
100
|
}
|
|
86
101
|
|
|
87
102
|
interface AuthStatus {
|
|
@@ -92,73 +107,77 @@ interface AuthStatus {
|
|
|
92
107
|
import { useEffect, useState } from "react";
|
|
93
108
|
|
|
94
109
|
export function App() {
|
|
95
|
-
|
|
96
110
|
const [authStatus, setAuthStatus] = useState<AuthStatus>({
|
|
97
111
|
authenticated: false,
|
|
98
112
|
user: null,
|
|
99
113
|
});
|
|
100
|
-
|
|
101
114
|
const [activeTabIndex, setActiveTabIndex] = useState<number>(0);
|
|
102
115
|
|
|
103
116
|
// Use useEffect to render Stencil components dynamically after the component mounts
|
|
104
117
|
useEffect(() => {
|
|
105
|
-
|
|
106
118
|
const handleAuthStatusChange = (event: CustomEvent) => {
|
|
107
119
|
console.log(event.detail);
|
|
108
120
|
setAuthStatus(event.detail); // Set the entire object
|
|
109
121
|
};
|
|
110
122
|
|
|
111
|
-
const handleTabChange = (
|
|
112
|
-
event: CustomEvent<{ index: number; name: string }>,
|
|
113
|
-
) => {
|
|
114
|
-
console.log(event.detail);
|
|
115
|
-
setActiveTabIndex(event.detail.index);
|
|
116
|
-
};
|
|
117
|
-
|
|
118
123
|
document.addEventListener(
|
|
119
124
|
"authStatusChanged",
|
|
120
125
|
handleAuthStatusChange as EventListener,
|
|
121
126
|
);
|
|
122
|
-
document.addEventListener("tabChange", handleTabChange as EventListener);
|
|
123
127
|
|
|
124
128
|
return () => {
|
|
125
129
|
document.removeEventListener(
|
|
126
130
|
"authStatusChanged",
|
|
127
131
|
handleAuthStatusChange as EventListener,
|
|
128
132
|
);
|
|
129
|
-
document.removeEventListener(
|
|
130
|
-
"tabChange",
|
|
131
|
-
handleTabChange as EventListener,
|
|
132
|
-
);
|
|
133
133
|
};
|
|
134
|
-
}, []);
|
|
134
|
+
}, []);
|
|
135
135
|
|
|
136
136
|
return (
|
|
137
|
-
<div
|
|
137
|
+
<div>
|
|
138
138
|
<EdsHeader
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
139
|
+
homeUrl="/"
|
|
140
|
+
menuEnabled={true}
|
|
141
|
+
inverseHeader={false}
|
|
142
|
+
links={[
|
|
143
|
+
{ label: "About", url: "#" },
|
|
144
|
+
{ label: "Focus Areas", url: "#" },
|
|
145
|
+
{ label: "News & Events", url: "#" },
|
|
146
|
+
{ label: "Contact", url: "#" }
|
|
147
|
+
]}
|
|
148
|
+
>
|
|
149
|
+
<div className="px-16">
|
|
150
|
+
<EdsUser
|
|
151
|
+
keycloak-url="http://localhost:8080"
|
|
152
|
+
keycloak-realm="nigeor-realm"
|
|
153
|
+
keycloak-client-id="stencil-app"
|
|
154
|
+
></EdsUser>
|
|
155
|
+
</div>
|
|
156
|
+
</EdsHeader>
|
|
151
157
|
|
|
152
|
-
<
|
|
153
|
-
|
|
158
|
+
<EdsFullscreenMenu
|
|
159
|
+
home-url="/"
|
|
160
|
+
links={[
|
|
161
|
+
{ label: "About", url: "#" },
|
|
162
|
+
{ label: "Focus Areas", url: "#" },
|
|
163
|
+
{ label: "News & Events", url: "#" },
|
|
164
|
+
{ label: "Contact", url: "#" }
|
|
165
|
+
]}
|
|
166
|
+
></EdsFullscreenMenu>
|
|
167
|
+
|
|
168
|
+
<div>
|
|
169
|
+
User is{" "}
|
|
170
|
+
{authStatus.authenticated ? "authenticated" : "not authenticated"}
|
|
154
171
|
</div>
|
|
155
172
|
{authStatus.user && <div>Welcome, {authStatus.user.firstname}</div>}
|
|
156
|
-
|
|
173
|
+
|
|
174
|
+
<div id="main"></div>
|
|
157
175
|
</div>
|
|
158
176
|
);
|
|
159
177
|
}
|
|
160
178
|
|
|
161
179
|
export default App;
|
|
180
|
+
|
|
162
181
|
`, language: "javascript", "copy-label": "Copy Code" })
|
|
163
182
|
)
|
|
164
183
|
), l = () => e(
|
|
@@ -266,7 +285,7 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
|
|
|
266
285
|
<eds-footer></eds-footer>
|
|
267
286
|
</div>`, language: "javascript", "copy-label": "Copy Code" })
|
|
268
287
|
)
|
|
269
|
-
),
|
|
288
|
+
), c = class {
|
|
270
289
|
constructor(n) {
|
|
271
290
|
t(this, n), this.tabIndex = void 0;
|
|
272
291
|
}
|
|
@@ -287,9 +306,9 @@ defineCustomElements();`, language: "javascript", "copy-label": "Copy Code" }),
|
|
|
287
306
|
}
|
|
288
307
|
}
|
|
289
308
|
render() {
|
|
290
|
-
return e("div", { key: "
|
|
309
|
+
return e("div", { key: "7e582a0eeafc2687229454532b5a7f66f91c1856", class: "container" }, this.renderContent());
|
|
291
310
|
}
|
|
292
311
|
};
|
|
293
312
|
export {
|
|
294
|
-
|
|
313
|
+
c as eds_components_section
|
|
295
314
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { r as t, h as e } from "./index-Df31uHzU.mjs";
|
|
2
|
+
const s = "", i = s, c = class {
|
|
3
|
+
constructor(o) {
|
|
4
|
+
t(this, o), this.buttonText = "Cookies Preferences", this.intent = void 0, this.showMatomoNotice = !1, this.noticeKey = 0;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Always shows the eds-matomo-notice popup.
|
|
8
|
+
* Every click removes the "matomo-deferred" key and forces a remount.
|
|
9
|
+
*/
|
|
10
|
+
toggleCookiesPopup() {
|
|
11
|
+
sessionStorage.removeItem("matomo-deferred"), this.showMatomoNotice ? this.noticeKey = this.noticeKey + 1 : this.showMatomoNotice = !0;
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return e("div", { key: "ca5d44522f94e9ea009c657c5eae6e357cd0d13a" }, e("eds-link", { key: "563a369e2ed44d08a6dd47922c1c1c888e81543a", size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && e("eds-matomo-notice", { "force-show": !0, key: this.noticeKey }));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
c.style = i;
|
|
18
|
+
export {
|
|
19
|
+
c as eds_cookies_preference
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),s="",i=s,t=class{constructor(o){e.registerInstance(this,o),this.buttonText="Cookies Preferences",this.intent=void 0,this.showMatomoNotice=!1,this.noticeKey=0}toggleCookiesPopup(){sessionStorage.removeItem("matomo-deferred"),this.showMatomoNotice?this.noticeKey=this.noticeKey+1:this.showMatomoNotice=!0}render(){return e.h("div",{key:"ca5d44522f94e9ea009c657c5eae6e357cd0d13a"},e.h("eds-link",{key:"563a369e2ed44d08a6dd47922c1c1c888e81543a",size:"small",intent:this.intent,label:this.buttonText,onClick:()=>this.toggleCookiesPopup()}),this.showMatomoNotice&&e.h("eds-matomo-notice",{"force-show":!0,key:this.noticeKey}))}};t.style=i;exports.eds_cookies_preference=t;
|
|
@@ -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-DvG3cC-8.js"),l=class{constructor(t){e.registerInstance(this,t),this.tabIndex=void 0}renderContent(){switch(this.tabIndex){case 0:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("color-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("color-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("color-support-palette",null));case 1:return e.h("div",null,e.h("h2",null,"Primary Palette"),e.h("gradient-primary-palette",null),e.h("h2",null,"Secondary Palette"),e.h("gradient-secondary-palette",null),e.h("h2",null,"Support Palette"),e.h("gradient-support-palette",null));default:return e.h("p",null,"Content not available.")}}render(){return e.h("div",{key:"e8cd71caa7b23cc4dc28c694ecb9f13e3fd4170a",class:"container"},this.renderContent())}};exports.eds_docs_palettes=l;
|