@ebrains/vue 2.4.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/color-primary-palette_6.entry-BNTAz-YV.js +1 -0
- package/{color-primary-palette_6.entry-BOQwdLOL.mjs → color-primary-palette_6.entry-CqAoq6GO.mjs} +19 -19
- package/{components-section.entry-BJYh6ZqK.mjs → components-section.entry-CIYtJYXY.mjs} +2 -2
- package/{components-section.entry-SAshGWUQ.js → components-section.entry-DpDBEL7H.js} +2 -2
- package/{correct-use-of-colors.entry-D3snQrWZ.js → correct-use-of-colors.entry-B-_UkVac.js} +1 -1
- package/{correct-use-of-colors.entry-DVEr3HqJ.mjs → correct-use-of-colors.entry-CuwLgUHl.mjs} +4 -4
- package/{docs-palettes.entry-BTA6W3QT.mjs → docs-palettes.entry-BKZvseSQ.mjs} +2 -2
- package/{docs-palettes.entry-DxC7NOsr.js → docs-palettes.entry-ChmYw0u_.js} +1 -1
- package/{docs-tokens.entry-oggXM1pO.js → docs-tokens.entry-CrwVkEa1.js} +1 -1
- package/docs-tokens.entry-DexNFNR5.mjs +30 -0
- package/{eds-accordion_37.entry-BkfprXPq.js → eds-accordion_52.entry-DKDqOA4V.js} +900 -375
- package/{eds-accordion_37.entry-DNB5z1By.mjs → eds-accordion_52.entry-Dcxdm3AN.mjs} +4828 -2015
- package/eds-app-root.entry-B11nTXv3.mjs +25 -0
- package/eds-app-root.entry-DMRJfFLw.js +1 -0
- package/eds-cookies-preference.entry-D4nimNcG.js +1 -0
- package/{eds-cookies-preference.entry-DSJu8rVy.mjs → eds-cookies-preference.entry-bcrDsOGH.mjs} +6 -6
- package/{eds-feedback.entry-CYjOZU2u.mjs → eds-feedback.entry-C-G4jFbi.mjs} +5 -5
- package/{eds-feedback.entry-PhMRcsAz.js → eds-feedback.entry-CUB3YDhj.js} +1 -1
- package/eds-frame.entry-BoqZ6nNe.mjs +67 -0
- package/eds-frame.entry-Ct4z2AYF.js +1 -0
- package/eds-gauge.entry-CyQOujHD.js +1 -0
- package/eds-gauge.entry-DQwXsiIp.mjs +29 -0
- package/eds-gitlab-contributors.entry-BQhkMG7J.js +1 -0
- package/eds-gitlab-contributors.entry-DN6mtcLM.mjs +161 -0
- package/{eds-icon-bluesky.entry-DVIcePaf.js → eds-icon-bluesky.entry-DlYnCUSy.js} +1 -1
- package/eds-icon-bluesky.entry-lylInPDB.mjs +13 -0
- package/eds-icon-eu.entry-DvJLazcS.js +1 -0
- package/eds-icon-eu.entry-oK_BrUeb.mjs +13 -0
- package/eds-icon-facebook.entry-DkmApxAR.mjs +13 -0
- package/{eds-icon-facebook.entry-Cz586EbT.js → eds-icon-facebook.entry-lAXwd41T.js} +1 -1
- package/{eds-icon-gitlab.entry-CYblReWf.js → eds-icon-gitlab.entry-B4RQCWqj.js} +1 -1
- package/eds-icon-gitlab.entry-BJ8G8MGq.mjs +13 -0
- package/eds-icon-linkedin.entry-BRCD1Y2P.mjs +13 -0
- package/eds-icon-linkedin.entry-uZhrzXWJ.js +1 -0
- package/{eds-icon-mastodon.entry-B3FVNRhj.js → eds-icon-mastodon.entry-BU_vQxP3.js} +1 -1
- package/eds-icon-mastodon.entry-KXwNYySs.mjs +13 -0
- package/eds-icon-twitter.entry-Dicmqf9w.mjs +13 -0
- package/{eds-icon-twitter.entry-CgUolH9h.js → eds-icon-twitter.entry-jkwnjkjm.js} +1 -1
- package/eds-icon-youtube.entry-N6v7r0Ia.js +1 -0
- package/{eds-icon-youtube.entry-CJ2yib4z.mjs → eds-icon-youtube.entry-S0AEwZ5S.mjs} +2 -2
- package/eds-modal.entry-BPoWspkf.mjs +143 -0
- package/eds-modal.entry-tL01NBBW.js +1 -0
- package/eds-pie.entry-BFxIoval.mjs +86 -0
- package/eds-pie.entry-Bxb8niKW.js +1 -0
- package/{eds-section-core_2.entry-BfD74zD1.mjs → eds-section-core_2.entry-BUIdt6Xq.mjs} +7 -7
- package/eds-section-core_2.entry-BfHTOu5p.js +1 -0
- package/{eds-splash-screen.entry-daVskXHP.mjs → eds-splash-screen.entry-CTMOtg_y.mjs} +5 -5
- package/eds-splash-screen.entry-Cc1a3A-a.js +1 -0
- package/{eds-timeline.entry-z2JO79Q1.js → eds-timeline.entry-BuU9dqHn.js} +1 -1
- package/{eds-timeline.entry-Bncxm3FP.mjs → eds-timeline.entry-D1mn5QWf.mjs} +5 -5
- package/{eds-toast-manager.entry-CAB7cRIu.mjs → eds-toast-manager.entry-CDaKkQno.mjs} +2 -2
- package/{eds-toast-manager.entry-htheZ_oW.js → eds-toast-manager.entry-Cbphm4Rp.js} +1 -1
- package/eu-8ac3e99c-CQxZpMa1.mjs +8 -0
- package/eu-8ac3e99c-vr227q5X.js +5 -0
- package/generated/components.d.ts +8 -2
- package/{incorrect-use-of-colors.entry-gfSE0npU.js → incorrect-use-of-colors.entry-Djbyd36M.js} +1 -1
- package/{incorrect-use-of-colors.entry-DUvNvRlf.mjs → incorrect-use-of-colors.entry-FJevYdoz.mjs} +2 -2
- package/index-CoItic1X.js +21 -0
- package/{index-N8k1JVST.mjs → index-QMzHaXvm.mjs} +695 -828
- package/index.js +1 -1
- package/index.mjs +45 -39
- package/logo-space.entry-0SQ7wEzD.mjs +18 -0
- package/logo-space.entry-M1a2d-R_.js +6 -0
- package/{logo-variations-horizontal_2.entry-BlU_k7B6.mjs → logo-variations-horizontal_2.entry-BEHzCTk8.mjs} +15 -15
- package/{logo-variations-horizontal_2.entry-DSDJVo-i.js → logo-variations-horizontal_2.entry-UX2nye4_.js} +3 -3
- package/{logo-variations-tabs.entry-DDYauQRa.mjs → logo-variations-tabs.entry-CV1C2UQ1.mjs} +3 -3
- package/logo-variations-tabs.entry-Ji2PlJ9Q.js +1 -0
- package/logo-wrong-usage.entry-DPH4fJ-q.js +1 -0
- package/{logo-wrong-usage.entry-R3cbzLYI.mjs → logo-wrong-usage.entry-DUcsnSf6.mjs} +8 -8
- package/negative-84eec72e-C5p0bd7Z.mjs +105 -0
- package/negative-84eec72e-CYj66efO.js +102 -0
- package/package.json +1 -1
- package/positive-cc986d7c-5QAxRLUF.mjs +66 -0
- package/positive-cc986d7c-bcR8gHIm.js +63 -0
- package/svg-repository.entry-BcL5lZMX.mjs +62 -0
- package/svg-repository.entry-EbhGQB_U.js +9 -0
- package/token-list_3.entry-D80f_GPw.js +1 -0
- package/{token-list_3.entry-_-blcolT.mjs → token-list_3.entry-DIqXhT6s.mjs} +100 -69
- package/token-ratios.entry-03PH7eEF.js +1 -0
- package/{token-ratios.entry-Dc9r_eDH.mjs → token-ratios.entry-B-MEgjhN.mjs} +6 -6
- package/token-spacing.entry-BuCJkSnv.js +1 -0
- package/token-spacing.entry-RNrQaZlP.mjs +12 -0
- package/token-typography.entry-CbJsBpq0.mjs +244 -0
- package/token-typography.entry-D0MsaU6A.js +2 -0
- package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +0 -4
- package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +0 -1
- package/arrow-right-9322ba8a-DBcxNU_p.js +0 -3
- package/arrow-right-9322ba8a-DHq-_PPe.mjs +0 -6
- package/bin-37cad2f0-BqMIoPCV.mjs +0 -4
- package/bin-37cad2f0-Bvf97PEl.js +0 -1
- package/bookmark-c200037c-CIcZ51ZQ.js +0 -14
- package/bookmark-c200037c-ClkCtyRY.mjs +0 -17
- package/chevron-down-6144c823-DWGlv9eV.mjs +0 -13
- package/chevron-down-6144c823-D_8976Ke.js +0 -10
- package/chevron-left-ca6c66e1-DANhLw_T.mjs +0 -12
- package/chevron-left-ca6c66e1-uCH5SUhm.js +0 -9
- package/chevron-right-b88ed2d4-C7dkTMvP.js +0 -3
- package/chevron-right-b88ed2d4-CgEZBvy7.mjs +0 -6
- package/chevron-up-c66bd477-ByW7R48t.js +0 -10
- package/chevron-up-c66bd477-CETJkshq.mjs +0 -13
- package/clone-dab56639-CA90NNP5.mjs +0 -4
- package/clone-dab56639-DhCcTb4A.js +0 -1
- package/close-87fc0d63-Cbd-ScJr.js +0 -3
- package/close-87fc0d63-DtDU2HIU.mjs +0 -6
- package/color-primary-palette_6.entry-CphaMLXx.js +0 -1
- package/copy-03b72cb6-B_WCNQrG.mjs +0 -6
- package/copy-03b72cb6-CZAFAegx.js +0 -3
- package/docs-tokens.entry-DagpB_GP.mjs +0 -30
- package/download-47746956-CSto0o7c.mjs +0 -19
- package/download-47746956-DbC-y8R6.js +0 -16
- package/draft-dd5dada2-AqzrhEzA.js +0 -1
- package/draft-dd5dada2-DEIzQoXJ.mjs +0 -4
- package/edit-3893a517-D_Sgle6i.js +0 -1
- package/edit-3893a517-rsZs4NLF.mjs +0 -4
- package/eds-app-root.entry-DWceNqaI.mjs +0 -25
- package/eds-app-root.entry-DwSccINb.js +0 -1
- package/eds-card-desc_2.entry-BQoTS_bc.js +0 -1
- package/eds-card-desc_2.entry-BdPjFGDv.mjs +0 -53
- package/eds-card-generic.entry-BG30NrVC.js +0 -1
- package/eds-card-generic.entry-DQyM_JK3.mjs +0 -56
- package/eds-card-project.entry-BP8js0cs.mjs +0 -170
- package/eds-card-project.entry-CxRgjzSU.js +0 -1
- package/eds-card-section.entry-60FytOvD.mjs +0 -30
- package/eds-card-section.entry-Bb1b2kXs.js +0 -1
- package/eds-card-tags.entry-BGqUXLzd.js +0 -1
- package/eds-card-tags.entry-BUNzTY40.mjs +0 -13
- package/eds-card-tool.entry-CTrtXWIl.mjs +0 -56
- package/eds-card-tool.entry-CgBUFQvK.js +0 -1
- package/eds-cookies-preference.entry-BEZvv_bO.js +0 -1
- package/eds-footer.entry-BLO8Z8dm.js +0 -1
- package/eds-footer.entry-DJcfJ44W.mjs +0 -41
- package/eds-frame.entry-D6iN0ONY.js +0 -1
- package/eds-frame.entry-UqcFm5St.mjs +0 -67
- package/eds-fullscreen-menu.entry-C3qvhFVx.mjs +0 -73
- package/eds-fullscreen-menu.entry-DXlx2Lpo.js +0 -1
- package/eds-gauge.entry-B9FaNkGa.mjs +0 -30
- package/eds-gauge.entry-DqaT7lFS.js +0 -1
- package/eds-icon-arrow-diagonal.entry-DySYlKqV.js +0 -1
- package/eds-icon-arrow-diagonal.entry-GE_pmZ4M.mjs +0 -13
- package/eds-icon-arrow-right.entry-DZDiZjVp.js +0 -1
- package/eds-icon-arrow-right.entry-_9LK65G0.mjs +0 -13
- package/eds-icon-bin.entry-CdE4XPTw.js +0 -1
- package/eds-icon-bin.entry-Df1FGDU7.mjs +0 -13
- package/eds-icon-bluesky.entry-CDjaUbNs.mjs +0 -13
- package/eds-icon-bookmark.entry-DAm3kHsU.js +0 -1
- package/eds-icon-bookmark.entry-k01Ff1Oe.mjs +0 -13
- package/eds-icon-chevron-down.entry-DbCpzoam.js +0 -1
- package/eds-icon-chevron-down.entry-_wlrhDN7.mjs +0 -13
- package/eds-icon-chevron-left.entry-5vMf3rwM.js +0 -1
- package/eds-icon-chevron-left.entry-C_g0I3ns.mjs +0 -13
- package/eds-icon-chevron-right.entry-BFgLwsQN.js +0 -1
- package/eds-icon-chevron-right.entry-KR8mJaVH.mjs +0 -13
- package/eds-icon-chevron-up.entry-DD2QAGhe.js +0 -1
- package/eds-icon-chevron-up.entry-YcI_aq54.mjs +0 -13
- package/eds-icon-clone.entry-BVjtDocE.js +0 -1
- package/eds-icon-clone.entry-Cit8bjr_.mjs +0 -13
- package/eds-icon-close.entry-91pdPk8B.mjs +0 -13
- package/eds-icon-close.entry-DRoUNakG.js +0 -1
- package/eds-icon-copy.entry-BeQbVTte.mjs +0 -13
- package/eds-icon-copy.entry-D-qdH0v-.js +0 -1
- package/eds-icon-download.entry-8f2hE3Wk.js +0 -1
- package/eds-icon-download.entry-CqmyxqMK.mjs +0 -13
- package/eds-icon-draft.entry-CvTTExoQ.js +0 -1
- package/eds-icon-draft.entry-p_FvZEte.mjs +0 -13
- package/eds-icon-edit.entry-DSqvYywl.mjs +0 -13
- package/eds-icon-edit.entry-Dfga3i7A.js +0 -1
- package/eds-icon-eu.entry-BksCB1p-.mjs +0 -13
- package/eds-icon-eu.entry-DfZOtmmu.js +0 -1
- package/eds-icon-external.entry-Cba3vYMZ.js +0 -1
- package/eds-icon-external.entry-DXPLNlb8.mjs +0 -13
- package/eds-icon-facebook.entry-BxfGg1sV.mjs +0 -13
- package/eds-icon-gitlab.entry-B591a00C.mjs +0 -13
- package/eds-icon-linkedin.entry-D9QYZu6H.mjs +0 -13
- package/eds-icon-linkedin.entry-Dd3HEXfb.js +0 -1
- package/eds-icon-loader.entry-BYxjWiaj.js +0 -1
- package/eds-icon-loader.entry-DGjEV9J2.mjs +0 -13
- package/eds-icon-mastodon.entry-CT3QrNt6.mjs +0 -13
- package/eds-icon-menu.entry-D43Jpiyp.mjs +0 -13
- package/eds-icon-menu.entry-DkL8ibuz.js +0 -1
- package/eds-icon-minus.entry-BZPH2F97.mjs +0 -13
- package/eds-icon-minus.entry-fRd4oviG.js +0 -1
- package/eds-icon-more.entry-8v6an2De.js +0 -1
- package/eds-icon-more.entry-BpNx8P0t.mjs +0 -13
- package/eds-icon-paper.entry-BELU8IU8.js +0 -1
- package/eds-icon-paper.entry-DSO9eH0G.mjs +0 -13
- package/eds-icon-plus.entry-CQhtpmRy.js +0 -1
- package/eds-icon-plus.entry-MVxMMz6e.mjs +0 -13
- package/eds-icon-portal.entry-BmJb8gBx.js +0 -1
- package/eds-icon-portal.entry-HaN33ioB.mjs +0 -13
- package/eds-icon-private.entry-BWdUc1He.mjs +0 -13
- package/eds-icon-private.entry-BnLhFTAh.js +0 -1
- package/eds-icon-public.entry-Cgz1G--U.mjs +0 -13
- package/eds-icon-public.entry-pcvu6TZY.js +0 -1
- package/eds-icon-search.entry-C6vweC7V.mjs +0 -13
- package/eds-icon-search.entry-DRX1I1aW.js +0 -1
- package/eds-icon-star.entry-B1CF_Mh_.js +0 -1
- package/eds-icon-star.entry-BLz5zBwg.mjs +0 -13
- package/eds-icon-start.entry-BoZaGNzw.mjs +0 -13
- package/eds-icon-start.entry-C50Agi-9.js +0 -1
- package/eds-icon-success.entry-CrxtGbCf.js +0 -1
- package/eds-icon-success.entry-DDnYxvwi.mjs +0 -13
- package/eds-icon-thumbs-down.entry-C0rt6NlO.js +0 -1
- package/eds-icon-thumbs-down.entry-e_s6jUvJ.mjs +0 -13
- package/eds-icon-thumbs-up.entry-C8kliA9f.js +0 -1
- package/eds-icon-thumbs-up.entry-Cr4UVZKl.mjs +0 -13
- package/eds-icon-tutorial.entry-CfKSueo5.mjs +0 -13
- package/eds-icon-tutorial.entry-DZoBAv-J.js +0 -1
- package/eds-icon-twitter.entry-yL3V9zK9.mjs +0 -13
- package/eds-icon-unknown.entry-CCffuSg9.js +0 -1
- package/eds-icon-unknown.entry-O_oyB62p.mjs +0 -13
- package/eds-icon-updown.entry-Cn0L81-O.mjs +0 -13
- package/eds-icon-updown.entry-Co8bbRL-.js +0 -1
- package/eds-icon-user.entry-BBGlRV8h.js +0 -1
- package/eds-icon-user.entry-DFOA60OK.mjs +0 -13
- package/eds-icon-view.entry-C9mWTpId.js +0 -1
- package/eds-icon-view.entry-CJDDwYhj.mjs +0 -13
- package/eds-icon-youtube.entry-zJkuN0Ha.js +0 -1
- package/eds-modal.entry-DSKTTXbi.js +0 -1
- package/eds-modal.entry-iuA_Dv6u.mjs +0 -114
- package/eds-pie.entry-BNNg5Uy9.mjs +0 -68
- package/eds-pie.entry-CwHUZk_D.js +0 -1
- package/eds-progress-bar.entry-C6sYa7zC.mjs +0 -39
- package/eds-progress-bar.entry-Df5QC5hU.js +0 -1
- package/eds-section-core_2.entry-BHFLQDNZ.js +0 -1
- package/eds-social-networks.entry-C1UjTjzy.js +0 -1
- package/eds-social-networks.entry-DtxQyPKc.mjs +0 -48
- package/eds-splash-screen.entry-CbZCkZVP.js +0 -1
- package/eds-trl.entry-nODOXoOe.mjs +0 -34
- package/eds-trl.entry-sGcsMXET.js +0 -1
- package/eu-9ddde93a-BFtIQw9B.js +0 -28
- package/eu-9ddde93a-ft4szvR5.mjs +0 -31
- package/index-39c58238-BwYCDOHZ.mjs +0 -44
- package/index-39c58238-SQ-JC-LH.js +0 -1
- package/index-bRbMyfm4.js +0 -21
- package/loader-c9628637-ChpnbJkv.mjs +0 -31
- package/loader-c9628637-Vj8Wt1e8.js +0 -28
- package/logo-color-7f1fd803-CFgbXdt8.mjs +0 -116
- package/logo-color-7f1fd803-DRD3vZVn.js +0 -113
- package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +0 -119
- package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +0 -116
- package/logo-space.entry-B41IYYB_.mjs +0 -19
- package/logo-space.entry-Dn8wfVqX.js +0 -6
- package/logo-variations-tabs.entry-Dn8VKv0h.js +0 -1
- package/logo-white-no-bg-f382f86f-DXYn3NwV.js +0 -1011
- package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +0 -1022
- package/logo-wrong-usage.entry-BwhhCaRy.js +0 -1
- package/menu-340ea948-BpnYX3gY.mjs +0 -12
- package/menu-340ea948-ZdelWVw3.js +0 -9
- package/minus-b30a7c71-BPAvqHzH.mjs +0 -12
- package/minus-b30a7c71-DqCTe6Qh.js +0 -9
- package/more-4449d549-D4HA1cRq.js +0 -11
- package/more-4449d549-rI9hOpEp.mjs +0 -14
- package/paper-8e74ea31-BvGrc1Vo.mjs +0 -16
- package/paper-8e74ea31-C4CV6tlB.js +0 -13
- package/plus-89c07be2-BTXnjg5K.js +0 -10
- package/plus-89c07be2-DyT9I4-L.mjs +0 -13
- package/portal-d6c8ce56-Cj61ldo8.mjs +0 -19
- package/portal-d6c8ce56-NpSrdNZ_.js +0 -16
- package/private-1c25ff8e-D3Fo36q6.js +0 -23
- package/private-1c25ff8e-Dz82_Xf8.mjs +0 -26
- package/public-d4d8c585-BJKDD5F6.mjs +0 -17
- package/public-d4d8c585-lV6QxdPw.js +0 -14
- package/search-fbcd79c2-BMxCaeEk.js +0 -10
- package/search-fbcd79c2-rfV0PlHP.mjs +0 -13
- package/star-0da9b5e9-B3-jr0yE.js +0 -3
- package/star-0da9b5e9-DX8_iFmu.mjs +0 -6
- package/start-65126a4f-D1LeCi_N.js +0 -1
- package/start-65126a4f-mQSjIlRh.mjs +0 -4
- package/success-443809da-BD23vltm.mjs +0 -19
- package/success-443809da-BUEhLsAD.js +0 -16
- package/svg-repository.entry-BEi81-kD.js +0 -158
- package/svg-repository.entry-WogeII7U.mjs +0 -299
- package/thumbs-down-a18fd049-CzuBAj99.mjs +0 -6
- package/thumbs-down-a18fd049-DTNIbYbm.js +0 -3
- package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +0 -7
- package/thumbs-up-c19a71bc-w8Z8gegt.js +0 -4
- package/token-list_3.entry-BnwJpJY0.js +0 -1
- package/token-ratios.entry-BnRo15gr.js +0 -1
- package/token-spacing.entry-3xyP1x5C.js +0 -1
- package/token-spacing.entry-DdsgShJ2.mjs +0 -12
- package/token-typography.entry-DCQiD4uQ.js +0 -2
- package/token-typography.entry-DgEU446w.mjs +0 -213
- package/tutotial-150ee1fd-DFdyoHVA.mjs +0 -28
- package/tutotial-150ee1fd-DjN_JBL5.js +0 -25
- package/unknown-ed01a24c-B0AcMuip.js +0 -20
- package/unknown-ed01a24c-DonOUpIC.mjs +0 -23
- package/up-and-down-8b69ca97-D7g6H0T0.mjs +0 -13
- package/up-and-down-8b69ca97-DOjnLWEi.js +0 -10
- package/user-71ebdc15-BBKQbcQD.js +0 -14
- package/user-71ebdc15-CoHlCtJg.mjs +0 -17
- package/view-e900f2d4-DsFtaZYM.mjs +0 -4
- package/view-e900f2d4-RAKf504j.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as o, h as e } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
const d = class {
|
|
3
|
+
constructor(i) {
|
|
4
|
+
o(this, i), this.isAuthenticated = !1;
|
|
5
|
+
}
|
|
6
|
+
componentWillLoad() {
|
|
7
|
+
const i = new Promise((a) => {
|
|
8
|
+
document.addEventListener("initKeycloak", (t) => {
|
|
9
|
+
a(t.detail);
|
|
10
|
+
}, { once: !0 });
|
|
11
|
+
}), n = new Promise((a) => {
|
|
12
|
+
document.addEventListener("authStatusChanged", (t) => {
|
|
13
|
+
var s;
|
|
14
|
+
this.isAuthenticated = (s = t.detail) === null || s === void 0 ? void 0 : s.authenticated, a(t.detail);
|
|
15
|
+
}, { once: !0 });
|
|
16
|
+
});
|
|
17
|
+
this.combinedInitPromise = Promise.all([i, n]);
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return e("div", { key: "10a75e7e117b2f3ab3d0ba8f2a26c122b2e0eed4" }, e("eds-splash-screen", { key: "ab527af22c9a9fe861bbed4759946428e3e7fdf0", inverse: !0, initPromise: this.combinedInitPromise }), e("eds-login", { key: "78e7face11e06df76b9dd29e99b7d968cc2cf32e", "keycloak-url": "http://localhost:8080", "keycloak-realm": "nigeor-realm", "keycloak-client-id": "stencil-app" }), e("main", { key: "30f463e667ccc25062bbf2764fdabc8937b6097c" }, this.isAuthenticated ? e("h1", null, "Welcome, authenticated user!") : e("h1", null, "Please log in.")));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
d as eds_app_root
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),o=class{constructor(i){e.registerInstance(this,i),this.isAuthenticated=!1}componentWillLoad(){const i=new Promise(a=>{document.addEventListener("initKeycloak",t=>{a(t.detail)},{once:!0})}),s=new Promise(a=>{document.addEventListener("authStatusChanged",t=>{var n;this.isAuthenticated=(n=t.detail)===null||n===void 0?void 0:n.authenticated,a(t.detail)},{once:!0})});this.combinedInitPromise=Promise.all([i,s])}render(){return e.h("div",{key:"10a75e7e117b2f3ab3d0ba8f2a26c122b2e0eed4"},e.h("eds-splash-screen",{key:"ab527af22c9a9fe861bbed4759946428e3e7fdf0",inverse:!0,initPromise:this.combinedInitPromise}),e.h("eds-login",{key:"78e7face11e06df76b9dd29e99b7d968cc2cf32e","keycloak-url":"http://localhost:8080","keycloak-realm":"nigeor-realm","keycloak-client-id":"stencil-app"}),e.h("main",{key:"30f463e667ccc25062bbf2764fdabc8937b6097c"},this.isAuthenticated?e.h("h1",null,"Welcome, authenticated user!"):e.h("h1",null,"Please log in.")))}};exports.eds_app_root=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),s="",i=s,t=class{constructor(o){e.registerInstance(this,o),this.buttonText="Cookies Preferences",this.intent="secondary",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:"3926e6e4972c901880f57859280330ad315dc263"},e.h("eds-link",{key:"8c513565cb94589c1d441aa4b0badf79ab464169",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;
|
package/{eds-cookies-preference.entry-DSJu8rVy.mjs → eds-cookies-preference.entry-bcrDsOGH.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as t, h as e } from "./index-
|
|
2
|
-
const s = "", i = s,
|
|
1
|
+
import { r as t, h as e } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
const s = "", i = s, c = class {
|
|
3
3
|
constructor(o) {
|
|
4
|
-
t(this, o), this.buttonText = "Cookies Preferences", this.intent =
|
|
4
|
+
t(this, o), this.buttonText = "Cookies Preferences", this.intent = "secondary", this.showMatomoNotice = !1, this.noticeKey = 0;
|
|
5
5
|
}
|
|
6
6
|
/**
|
|
7
7
|
* Always shows the eds-matomo-notice popup.
|
|
@@ -11,10 +11,10 @@ const s = "", i = s, n = class {
|
|
|
11
11
|
sessionStorage.removeItem("matomo-deferred"), this.showMatomoNotice ? this.noticeKey = this.noticeKey + 1 : this.showMatomoNotice = !0;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return e("div", { key: "
|
|
14
|
+
return e("div", { key: "3926e6e4972c901880f57859280330ad315dc263" }, e("eds-link", { key: "8c513565cb94589c1d441aa4b0badf79ab464169", size: "small", intent: this.intent, label: this.buttonText, onClick: () => this.toggleCookiesPopup() }), this.showMatomoNotice && e("eds-matomo-notice", { "force-show": !0, key: this.noticeKey }));
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
c.style = i;
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as eds_cookies_preference
|
|
20
20
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as n, c as f, h as t, g as r } from "./index-QMzHaXvm.mjs";
|
|
2
2
|
import { p as g } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
3
3
|
const o = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-heading-01{font-family:var(--f-heading-01-fontFamily);font-weight:var(--f-heading-01-fontWeight);font-size:var(--f-heading-01-fontSize);line-height:var(--f-heading-01-lineHeight);letter-spacing:var(--f-heading-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.inline{display:inline}.grid{display:grid}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}", h = o, d = class {
|
|
4
4
|
constructor(e) {
|
|
5
|
-
|
|
5
|
+
n(this, e), this.rating = f(this, "rating", 7), this.headingLevel = "h1", this.type = "star", this.count = 5, this.label = "Rate your Experience!", this.description = "This is a description!", this.textMapping = ["Very Poor", "Poor", "Average", "Good", "Excellent"], this.selectedRating = 0;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Lifecycle method that runs when the component has fully loaded.
|
|
@@ -41,11 +41,11 @@ const o = "h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl
|
|
|
41
41
|
this.selectedRating = e.detail;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
const e = this.headingLevel,
|
|
45
|
-
return t("div", { key: "
|
|
44
|
+
const e = this.headingLevel, a = `f-heading-${this.headingLevel.replace("h", "").padStart(2, "0")} my-4`;
|
|
45
|
+
return t("div", { key: "7d01b8aef2854cfdb739553e7f43ed9516199e1e", class: "grid inline" }, t(e, { key: "a0c4a4f93598b955e90416d50260aaa3f644615a", class: a }, this.label), t("p", { key: "acb2db8fc209faf2d39622e2e858fa1e7403e1b4", class: "f-body-01 text-light" }, this.description), t("eds-rating", { key: "b0db57c9e3539a5edfecf67cc3a12dd87d74fad9", "rating-type": this.type, "rating-count": this.count }), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && t("span", { key: "8d6bf62a18fdb12dddba932be9a5115396fdfd6f", class: "f-ui-04 text-lighter" }, this.parsedMappings[this.selectedRating - 1]));
|
|
46
46
|
}
|
|
47
47
|
get el() {
|
|
48
|
-
return
|
|
48
|
+
return r(this);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
d.style = h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CoItic1X.js"),f=require("./sharedUtils-a550989c-m4pF1Vqy.js"),r="h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-heading-01{font-family:var(--f-heading-01-fontFamily);font-weight:var(--f-heading-01-fontWeight);font-size:var(--f-heading-01-fontSize);line-height:var(--f-heading-01-lineHeight);letter-spacing:var(--f-heading-01-letterSpacing)}.f-heading-02{font-family:var(--f-heading-02-fontFamily);font-weight:var(--f-heading-02-fontWeight);font-size:var(--f-heading-02-fontSize);line-height:var(--f-heading-02-lineHeight);letter-spacing:var(--f-heading-02-letterSpacing)}.f-heading-03{font-family:var(--f-heading-03-fontFamily);font-weight:var(--f-heading-03-fontWeight);font-size:var(--f-heading-03-fontSize);line-height:var(--f-heading-03-lineHeight);letter-spacing:var(--f-heading-03-letterSpacing)}.f-heading-04{font-family:var(--f-heading-04-fontFamily);font-weight:var(--f-heading-04-fontWeight);font-size:var(--f-heading-04-fontSize);line-height:var(--f-heading-04-lineHeight);letter-spacing:var(--f-heading-04-letterSpacing)}.f-heading-05{font-family:var(--f-heading-05-fontFamily);font-weight:var(--f-heading-05-fontWeight);font-size:var(--f-heading-05-fontSize);line-height:var(--f-heading-05-lineHeight);letter-spacing:var(--f-heading-05-letterSpacing)}.f-heading-06{font-family:var(--f-heading-06-fontFamily);font-weight:var(--f-heading-06-fontWeight);font-size:var(--f-heading-06-fontSize);line-height:var(--f-heading-06-lineHeight);letter-spacing:var(--f-heading-06-letterSpacing)}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.f-body-02{font-family:var(--f-body-02-fontFamily);font-weight:var(--f-body-02-fontWeight);font-size:var(--f-body-02-fontSize);line-height:var(--f-body-02-lineHeight);letter-spacing:var(--f-body-02-letterSpacing)}.f-ui-04{font-family:var(--f-ui-04-fontFamily);font-weight:var(--f-ui-04-fontWeight);font-size:var(--f-ui-04-fontSize);line-height:var(--f-ui-04-lineHeight);letter-spacing:var(--f-ui-04-letterSpacing)}.inline{display:inline}.grid{display:grid}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.my-4{margin-top:0.25rem;margin-bottom:0.25rem}.my-8{margin-top:0.5rem;margin-bottom:0.5rem}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}",h=r,n=class{constructor(e){t.registerInstance(this,e),this.rating=t.createEvent(this,"rating",7),this.headingLevel="h1",this.type="star",this.count=5,this.label="Rate your Experience!",this.description="This is a description!",this.textMapping=["Very Poor","Poor","Average","Good","Excellent"],this.selectedRating=0}componentDidLoad(){this.el.shadowRoot.querySelectorAll("eds-button").forEach(i=>{this.emitContext(i)})}emitContext(e){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.selectedRating}});e.dispatchEvent(i)}get parsedMappings(){return f.parseData(this.textMapping)}ratingUpdated(e){this.selectedRating=e.detail}render(){const e=this.headingLevel,a=`f-heading-${this.headingLevel.replace("h","").padStart(2,"0")} my-4`;return t.h("div",{key:"7d01b8aef2854cfdb739553e7f43ed9516199e1e",class:"grid inline"},t.h(e,{key:"a0c4a4f93598b955e90416d50260aaa3f644615a",class:a},this.label),t.h("p",{key:"acb2db8fc209faf2d39622e2e858fa1e7403e1b4",class:"f-body-01 text-light"},this.description),t.h("eds-rating",{key:"b0db57c9e3539a5edfecf67cc3a12dd87d74fad9","rating-type":this.type,"rating-count":this.count}),this.selectedRating>0&&this.parsedMappings[this.selectedRating-1]&&t.h("span",{key:"8d6bf62a18fdb12dddba932be9a5115396fdfd6f",class:"f-ui-04 text-lighter"},this.parsedMappings[this.selectedRating-1]))}get el(){return t.getElement(this)}};n.style=h;exports.eds_feedback=n;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { r as i, h as e, g as o } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
const a = ".bg-inverse{background-color:#FFFFFF;border:1px solid #ECECEC;color:#07140D}.min-h-156{min-height:156px}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-md{border-radius:12px}.border-soft{border-color:#ECECEC}.border-softer{border-color:#ECECEC}.border-softest{border-color:#f2f2f2}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:#00FF9D}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.flex{display:flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.border-2{border-width:0}.w-full{width:100%}.h-full{height:100%}.h-auto{height:auto}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.items-center{align-items:center}.justify-between{justify-content:space-between}.py-8{padding-top:0.75rem;padding-bottom:0.75rem}.px-12{padding-left:1rem;padding-right:1rem}.py-8.px-12{border-bottom:1px solid #ECECEC}.f-ui-02{font-family:'IBM Plex Sans', sans-serif;font-size:0.8125rem;font-weight:600;color:#07140D;line-height:1.4}.ml-auto{margin-left:auto}.border-t-2{border-top-width:1px;border-color:#ECECEC}.border{border:1px solid #ECECEC}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto;color:#7A7B7A}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.mt-16{margin-top:1rem}iframe{border-radius:0 0 12px 12px}", s = a, n = class {
|
|
3
|
+
constructor(r) {
|
|
4
|
+
i(this, r), this.frameLabel = void 0, this.frameSrc = void 0, this.urlLabel = "Open", this.errorMessage = "Could not load the requested content. Please check the URL or try again later.", this.url = void 0, this.intent = "cta", this.size = "auto", this.iframeError = !1;
|
|
5
|
+
}
|
|
6
|
+
componentWillLoad() {
|
|
7
|
+
this.checkIframeAvailability();
|
|
8
|
+
}
|
|
9
|
+
componentDidLoad() {
|
|
10
|
+
this.el.querySelectorAll("eds-link").forEach((t) => {
|
|
11
|
+
this.emitContext(t);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Emits a custom event called `parentContext` for a given link element.
|
|
16
|
+
* This event provides context information about the breadcrumb component.
|
|
17
|
+
*
|
|
18
|
+
* @param linkElement - The link element to which the event will be dispatched.
|
|
19
|
+
*/
|
|
20
|
+
emitContext(r) {
|
|
21
|
+
const t = new CustomEvent("parentContext", {
|
|
22
|
+
detail: {
|
|
23
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
24
|
+
identifier: this.frameLabel
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
r.dispatchEvent(t);
|
|
28
|
+
}
|
|
29
|
+
articleClasses() {
|
|
30
|
+
return [
|
|
31
|
+
"bg-inverse min-h-156 rounded border-softer effect-focus-within relative flex grow flex-col border-2",
|
|
32
|
+
"w-full h-auto"
|
|
33
|
+
].join(" ");
|
|
34
|
+
}
|
|
35
|
+
getFrameHeight() {
|
|
36
|
+
switch (this.size) {
|
|
37
|
+
case "sm":
|
|
38
|
+
return "100px";
|
|
39
|
+
case "md":
|
|
40
|
+
return "200px";
|
|
41
|
+
case "lg":
|
|
42
|
+
return "400px";
|
|
43
|
+
case "xl":
|
|
44
|
+
return "700px";
|
|
45
|
+
default:
|
|
46
|
+
return "auto";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
async checkIframeAvailability() {
|
|
50
|
+
try {
|
|
51
|
+
if (!(await fetch(this.frameSrc, { method: "GET" })).ok)
|
|
52
|
+
throw new Error("Failed to load");
|
|
53
|
+
} catch {
|
|
54
|
+
this.iframeError = !0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return e("div", { key: "0fa74cf426f9d934a035b5e3f6c9e5722c40beab", class: this.articleClasses() }, e("div", { key: "65ab4084241ce1b5337e9bfaaffb5c2aaceec28e", class: "effect-height flex items-center justify-between py-8 px-12" }, e("span", { key: "f1cda1a4d61b47550d9d8cd08986f2253710c4ea", class: "f-ui-02" }, this.frameLabel), !this.iframeError && this.url && this.urlLabel ? e("eds-link", { label: this.urlLabel, url: this.url, intent: this.intent, class: "ml-auto", external: !0, disabled: !1, icon: "arrow-up-right" }) : null), e("div", { key: "e02ffe4f38f1375a0694f2acec72406824745437", class: "border-softer" }, this.iframeError ? e("div", { class: "container ml-8 mr-8 mt-16" }, this.errorMessage) : e("iframe", { src: this.frameSrc, width: "100%", height: this.getFrameHeight(), title: this.frameLabel, frameBorder: "0", allowFullScreen: !0 })));
|
|
59
|
+
}
|
|
60
|
+
get el() {
|
|
61
|
+
return o(this);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
n.style = s;
|
|
65
|
+
export {
|
|
66
|
+
n as eds_frame
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),o=".bg-inverse{background-color:#FFFFFF;border:1px solid #ECECEC;color:#07140D}.min-h-156{min-height:156px}.rounded{border-radius:0.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:16px}.rounded-md{border-radius:12px}.border-soft{border-color:#ECECEC}.border-softer{border-color:#ECECEC}.border-softest{border-color:#f2f2f2}.effect-focus-within{outline-width:3px;outline-offset:2px;outline-color:#00FF9D}.effect-focus-within:focus-within{outline-style:solid}.relative{position:relative}.flex{display:flex}.grow{flex-grow:1}.flex-col{flex-direction:column}.border-2{border-width:0}.w-full{width:100%}.h-full{height:100%}.h-auto{height:auto}.effect-height{transition-duration:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-property:height}.items-center{align-items:center}.justify-between{justify-content:space-between}.py-8{padding-top:0.75rem;padding-bottom:0.75rem}.px-12{padding-left:1rem;padding-right:1rem}.py-8.px-12{border-bottom:1px solid #ECECEC}.f-ui-02{font-family:'IBM Plex Sans', sans-serif;font-size:0.8125rem;font-weight:600;color:#07140D;line-height:1.4}.ml-auto{margin-left:auto}.border-t-2{border-top-width:1px;border-color:#ECECEC}.border{border:1px solid #ECECEC}.container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto;color:#7A7B7A}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.ml-8{margin-left:0.5rem}.mr-8{margin-right:0.5rem}.mt-16{margin-top:1rem}iframe{border-radius:0 0 12px 12px}",a=o,i=class{constructor(r){e.registerInstance(this,r),this.frameLabel=void 0,this.frameSrc=void 0,this.urlLabel="Open",this.errorMessage="Could not load the requested content. Please check the URL or try again later.",this.url=void 0,this.intent="cta",this.size="auto",this.iframeError=!1}componentWillLoad(){this.checkIframeAvailability()}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(t=>{this.emitContext(t)})}emitContext(r){const t=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:this.frameLabel}});r.dispatchEvent(t)}articleClasses(){return["bg-inverse min-h-156 rounded border-softer effect-focus-within relative flex grow flex-col border-2","w-full h-auto"].join(" ")}getFrameHeight(){switch(this.size){case"sm":return"100px";case"md":return"200px";case"lg":return"400px";case"xl":return"700px";default:return"auto"}}async checkIframeAvailability(){try{if(!(await fetch(this.frameSrc,{method:"GET"})).ok)throw new Error("Failed to load")}catch{this.iframeError=!0}}render(){return e.h("div",{key:"0fa74cf426f9d934a035b5e3f6c9e5722c40beab",class:this.articleClasses()},e.h("div",{key:"65ab4084241ce1b5337e9bfaaffb5c2aaceec28e",class:"effect-height flex items-center justify-between py-8 px-12"},e.h("span",{key:"f1cda1a4d61b47550d9d8cd08986f2253710c4ea",class:"f-ui-02"},this.frameLabel),!this.iframeError&&this.url&&this.urlLabel?e.h("eds-link",{label:this.urlLabel,url:this.url,intent:this.intent,class:"ml-auto",external:!0,disabled:!1,icon:"arrow-up-right"}):null),e.h("div",{key:"e02ffe4f38f1375a0694f2acec72406824745437",class:"border-softer"},this.iframeError?e.h("div",{class:"container ml-8 mr-8 mt-16"},this.errorMessage):e.h("iframe",{src:this.frameSrc,width:"100%",height:this.getFrameHeight(),title:this.frameLabel,frameBorder:"0",allowFullScreen:!0})))}get el(){return e.getElement(this)}};i.style=a;exports.eds_frame=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CoItic1X.js"),v=".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-full{border-radius:9999px}.overflow-hidden{overflow:hidden}.bg-inverse{background-color:var(--white)}.bg-current{background-color:currentColor}.bg-dark{background-color:var(--grey-300)}.bg-darker{background-color:var(--grey-400)}.bg-default{background-color:var(--grey-200)}.bg-strong{background-color:var(--grey-700)}.bg-strongest{background-color:var(--black)}.inset-0{inset:0rem}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.text-default{color:var(--black)}",y=v,o={default:"var(--grey-light)",dark:"var(--grey-dark)",black:"var(--brand-black)"},l=class{constructor(r){a.registerInstance(this,r),this.size=100,this.valueMin=0,this.valueMax=100,this.value=60,this.thickness=.1,this.variant="default"}render(){const r=Math.min(Math.max(this.thickness,.1),.2),t=Math.min(Math.max(this.value,this.valueMin),this.valueMax),d=this.valueMax-this.valueMin||1,c=(t-this.valueMin)/d,e=this.size,n=c*360,i=r*e,s=e-i*2,u=e*.2,b=o[this.variant]||o.default,g={width:`${e}px`,height:`${e}px`,background:`conic-gradient(var(--brand-green) 0deg ${n}deg, ${b} ${n}deg 360deg)`},f={width:`${s}px`,height:`${s}px`,top:`${i}px`,left:`${i}px`},h={fontSize:`${u}px`};return a.h("div",{key:"f5801b63984f42bad206445de4e865c0e161b88e",role:"progressbar","aria-valuemin":this.valueMin,"aria-valuemax":this.valueMax,"aria-valuenow":t,"aria-label":`Gauge value: ${t} of ${this.valueMax}`,class:"relative inline-block rounded-full overflow-hidden",style:g},a.h("div",{key:"1a982401ba1853e937dfbb9aeb4736d4665abab1",class:"absolute bg-inverse rounded-full",style:f}),a.h("div",{key:"0db002b1a3a3f49fe3fd0f3aa4d3fd0e2ee6a45d",class:"absolute inset-0 flex items-center justify-center"},a.h("span",{key:"a011eaaab9e6f3d15d706bf9309ae7bafa689387",class:"f-body-01 text-default",style:h},t)))}};l.style=y;exports.eds_gauge=l;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { r as v, h as t } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
const h = ".relative{position:relative}.absolute{position:absolute}.inline-block{display:inline-block}.rounded-full{border-radius:9999px}.overflow-hidden{overflow:hidden}.bg-inverse{background-color:var(--white)}.bg-current{background-color:currentColor}.bg-dark{background-color:var(--grey-300)}.bg-darker{background-color:var(--grey-400)}.bg-default{background-color:var(--grey-200)}.bg-strong{background-color:var(--grey-700)}.bg-strongest{background-color:var(--black)}.inset-0{inset:0rem}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.f-body-01{font-family:var(--f-body-01-fontFamily);font-weight:var(--f-body-01-fontWeight);font-size:var(--f-body-01-fontSize);line-height:var(--f-body-01-lineHeight);letter-spacing:var(--f-body-01-letterSpacing)}.text-default{color:var(--black)}", y = h, o = {
|
|
3
|
+
default: "var(--grey-light)",
|
|
4
|
+
dark: "var(--grey-dark)",
|
|
5
|
+
black: "var(--brand-black)"
|
|
6
|
+
}, k = class {
|
|
7
|
+
constructor(r) {
|
|
8
|
+
v(this, r), this.size = 100, this.valueMin = 0, this.valueMax = 100, this.value = 60, this.thickness = 0.1, this.variant = "default";
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
const r = Math.min(Math.max(this.thickness, 0.1), 0.2), a = Math.min(Math.max(this.value, this.valueMin), this.valueMax), l = this.valueMax - this.valueMin || 1, d = (a - this.valueMin) / l, e = this.size, n = d * 360, i = r * e, s = e - i * 2, c = e * 0.2, b = o[this.variant] || o.default, u = {
|
|
12
|
+
width: `${e}px`,
|
|
13
|
+
height: `${e}px`,
|
|
14
|
+
background: `conic-gradient(var(--brand-green) 0deg ${n}deg, ${b} ${n}deg 360deg)`
|
|
15
|
+
}, g = {
|
|
16
|
+
width: `${s}px`,
|
|
17
|
+
height: `${s}px`,
|
|
18
|
+
top: `${i}px`,
|
|
19
|
+
left: `${i}px`
|
|
20
|
+
}, f = {
|
|
21
|
+
fontSize: `${c}px`
|
|
22
|
+
};
|
|
23
|
+
return t("div", { key: "f5801b63984f42bad206445de4e865c0e161b88e", role: "progressbar", "aria-valuemin": this.valueMin, "aria-valuemax": this.valueMax, "aria-valuenow": a, "aria-label": `Gauge value: ${a} of ${this.valueMax}`, class: "relative inline-block rounded-full overflow-hidden", style: u }, t("div", { key: "1a982401ba1853e937dfbb9aeb4736d4665abab1", class: "absolute bg-inverse rounded-full", style: g }), t("div", { key: "0db002b1a3a3f49fe3fd0f3aa4d3fd0e2ee6a45d", class: "absolute inset-0 flex items-center justify-center" }, t("span", { key: "a011eaaab9e6f3d15d706bf9309ae7bafa689387", class: "f-body-01 text-default", style: f }, a)));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
k.style = y;
|
|
27
|
+
export {
|
|
28
|
+
k as eds_gauge
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CoItic1X.js"),d=".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.grid{display:grid}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.gap-2{gap:0.5rem;}.gap-4{gap:1rem;}.gap-6{gap:1.5rem;}.p-5{padding:1.25rem;}.p-12{padding:3rem;}.pb-2{padding-bottom:0.25rem;}.pb-4{padding-bottom:1rem;}.mb-6{margin-bottom:1.5rem;}.m-0{margin:0}.mt-auto{margin-top:auto}.w-full{width:100%}.min-w-0{min-width:0}.text-xs{font-size:0.75rem;line-height:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-semibold{font-weight:600}.whitespace-nowrap{white-space:nowrap}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.no-underline{text-decoration:none}.text-gray-600{color:var(--eds-color-gray-600, #4b5563)}.text-gray-900{color:var(--eds-color-gray-900, #111827)}.border-gray-200{border-color:var(--eds-color-gray-200, #e5e7eb)}.bg-white{background-color:var(--eds-color-white, #ffffff)}.text-primary-600{color:var(--eds-color-primary-600, #2563eb)}.hover\\:text-primary-600:hover{color:var(--eds-color-primary-600, #2563eb)}.border-primary-300{border-color:var(--eds-color-primary-300, #93c5fd)}.hover\\:border-primary-300:hover{border-color:var(--eds-color-primary-300, #93c5fd)}.text-success-600{color:var(--eds-color-success-600, #16a34a)}.text-error-600{color:var(--eds-color-error-600, #dc2626)}.border{border-width:1px}.border-b{border-bottom-width:1px}.rounded-lg{border-radius:var(--eds-radius-lg, 0.5rem);}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-200{transition-duration:200ms}.shadow-md{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.-translate-y-0\\.5{transform:translateY(-0.125rem);}.hover\\:-translate-y-0\\.5:hover{transform:translateY(-0.125rem)}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 768px){.md\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr))}}.contributor-card{will-change:transform, box-shadow, border-color}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.text-default{color:var(--black)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}",h=d,m=class{constructor(t){s.registerInstance(this,t),this.accessToken=void 0,this.projectId="3360",this.apiUrl="https://gitlab.ebrains.eu/api/v4",this.path=void 0,this.limit=50,this.minCommits=1,this.showStats=!0,this.columns="4",this.sortBy="commits",this.contributors=[],this.loading=!0,this.error=""}async componentWillLoad(){await this.fetchContributors()}getProjectIds(){return this.projectId.split(",").map(t=>t.trim()).filter(t=>t.length>0)}async fetchCommitsByPathForProject(t){const r=[];let o=1;const a=100;for(;;){const e=`${this.apiUrl}/projects/${encodeURIComponent(t)}/repository/commits?path=${encodeURIComponent(this.path)}&per_page=${a}&page=${o}`,n=await fetch(e,{headers:{"PRIVATE-TOKEN":this.accessToken}});if(!n.ok)throw new Error(`GitLab API error: ${n.status} ${n.statusText}`);const l=await n.json();if(l.length===0||(r.push(...l),l.length<a))break;o++}const i=new Map;for(const e of r){const n=e.author_email.toLowerCase();i.has(n)?i.get(n).commits++:i.set(n,{name:e.author_name,email:e.author_email,commits:1})}return Array.from(i.values()).map(e=>({name:e.name,email:e.email,commits:e.commits,additions:0,deletions:0}))}async fetchContributorsForProject(t){if(this.path&&t==="1505")return await this.fetchCommitsByPathForProject(t);{const o=await fetch(`${this.apiUrl}/projects/${encodeURIComponent(t)}/repository/contributors?per_page=100`,{headers:{"PRIVATE-TOKEN":this.accessToken}});if(!o.ok)throw new Error(`GitLab API error: ${o.status} ${o.statusText}`);return await o.json()}}async fetchContributors(){if(!this.accessToken){this.error="Access token is required for internal projects",this.loading=!1;return}try{this.loading=!0,this.error="";const t=this.getProjectIds();let r=[];for(const i of t){const e=await this.fetchContributorsForProject(i);r.push(...e)}const o=r.filter(i=>{if(i.commits<this.minCommits)return!1;const e=i.email.toLowerCase(),n=i.name.toLowerCase();return!["gitlab-ci","gitlab ci","noreply@gitlab","bot@","automation@"].some(c=>e.includes(c)||n.includes(c))}),a=this.aggregateContributors(o);this.sortBy==="commits"?a.sort((i,e)=>e.commits-i.commits):a.sort((i,e)=>i.username.localeCompare(e.username)),this.contributors=a.slice(0,this.limit),this.loading=!1}catch(t){this.error=t instanceof Error?t.message:"Failed to fetch contributors",this.loading=!1,console.error("Error fetching GitLab contributors:",t)}}extractUsernameFromEmail(t){return!t||!t.includes("@")?t||"unknown":t.split("@")[0]}aggregateContributors(t){const r=new Map;for(const o of t){const a=this.extractUsernameFromEmail(o.email),i=a.toLowerCase();if(r.has(i)){const e=r.get(i);e.commits+=o.commits,e.additions+=o.additions,e.deletions+=o.deletions}else r.set(i,Object.assign(Object.assign({},o),{username:a}))}return Array.from(r.values())}parseName(t){const r=t.trim().split(" ");if(r.length===1)return{firstName:r[0],lastName:""};const o=r[0],a=r.slice(1).join(" ");return{firstName:o,lastName:a}}formatNumber(t){return t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toString()}render(){if(this.loading)return s.h("div",{class:"flex flex-col items-center justify-center p-12 gap-4"},s.h("eds-spinner",{size:"md"}),s.h("p",{class:"text-base text-gray-600 m-0"},"Loading contributors..."));if(this.error)return s.h("eds-alert",{message:"Error loading contributors",intent:"error"});if(this.contributors.length===0)return s.h("eds-alert",{message:"No contributors found for this project.",intent:"error"});const t=`grid gap-6 w-full ${this.columns==="2"?"grid-cols-1 sm:grid-cols-2":this.columns==="3"?"grid-cols-1 sm:grid-cols-2 md:grid-cols-3":this.columns==="4"?"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4":"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5"}`;return s.h("div",{class:"w-full"},s.h("div",{class:t},this.contributors.map(r=>{const{firstName:o,lastName:a}=this.parseName(r.name);return s.h("div",{class:"contributor-card flex flex-row gap-4 p-5 bg-white border border-gray-200 rounded-lg transition-all duration-200",key:r.email},s.h("div",{class:"flex-shrink-0"},s.h("eds-avatar",{firstName:o,lastName:a,color:"black"})),s.h("div",{class:"min-w-0 flex flex-col gap-2"},s.h("span",{class:"f-ui-01 text-default pb-2 m-0 whitespace-nowrap overflow-hidden text-ellipsis"},"@",r.username),s.h("div",{class:"flex flex-col gap-2 mt-auto"},s.h("div",{class:"flex items-center gap-2 font-semibold"},s.h("span",{class:"text-light"},this.formatNumber(r.commits)),s.h("span",{class:"text-lighter"},r.commits===1?"commit":"commits")))))})))}};m.style=h;exports.eds_gitlab_contributors=m;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { r as m, h as s } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
const d = ".container{width:calc(var(--container-width, 100%) - (2 * var(--breakout-container-outer-gutter, var(--container-outer-gutter, var(--outer-gutter, 0)))));margin-right:auto;margin-left:auto}.container>*{--container-outer-gutter:0;--breakout-container-outer-gutter:0}.flex{display:flex}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.grid{display:grid}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.gap-2{gap:0.5rem;}.gap-4{gap:1rem;}.gap-6{gap:1.5rem;}.p-5{padding:1.25rem;}.p-12{padding:3rem;}.pb-2{padding-bottom:0.25rem;}.pb-4{padding-bottom:1rem;}.mb-6{margin-bottom:1.5rem;}.m-0{margin:0}.mt-auto{margin-top:auto}.w-full{width:100%}.min-w-0{min-width:0}.text-xs{font-size:0.75rem;line-height:1rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.font-semibold{font-weight:600}.whitespace-nowrap{white-space:nowrap}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.no-underline{text-decoration:none}.text-gray-600{color:var(--eds-color-gray-600, #4b5563)}.text-gray-900{color:var(--eds-color-gray-900, #111827)}.border-gray-200{border-color:var(--eds-color-gray-200, #e5e7eb)}.bg-white{background-color:var(--eds-color-white, #ffffff)}.text-primary-600{color:var(--eds-color-primary-600, #2563eb)}.hover\\:text-primary-600:hover{color:var(--eds-color-primary-600, #2563eb)}.border-primary-300{border-color:var(--eds-color-primary-300, #93c5fd)}.hover\\:border-primary-300:hover{border-color:var(--eds-color-primary-300, #93c5fd)}.text-success-600{color:var(--eds-color-success-600, #16a34a)}.text-error-600{color:var(--eds-color-error-600, #dc2626)}.border{border-width:1px}.border-b{border-bottom-width:1px}.rounded-lg{border-radius:var(--eds-radius-lg, 0.5rem);}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.transition-colors{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.duration-200{transition-duration:200ms}.shadow-md{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.hover\\:shadow-md:hover{box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)}.-translate-y-0\\.5{transform:translateY(-0.125rem);}.hover\\:-translate-y-0\\.5:hover{transform:translateY(-0.125rem)}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}@media (min-width: 640px){.sm\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}}@media (min-width: 768px){.md\\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media (min-width: 1024px){.lg\\:grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5, minmax(0, 1fr))}}.contributor-card{will-change:transform, box-shadow, border-color}.f-ui-01{font-family:var(--f-ui-01-fontFamily);font-weight:var(--f-ui-01-fontWeight);font-size:var(--f-ui-01-fontSize);line-height:var(--f-ui-01-lineHeight);letter-spacing:var(--f-ui-01-letterSpacing)}.text-default{color:var(--black)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}", g = d, h = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
m(this, t), this.accessToken = void 0, this.projectId = "3360", this.apiUrl = "https://gitlab.ebrains.eu/api/v4", this.path = void 0, this.limit = 50, this.minCommits = 1, this.showStats = !0, this.columns = "4", this.sortBy = "commits", this.contributors = [], this.loading = !0, this.error = "";
|
|
5
|
+
}
|
|
6
|
+
async componentWillLoad() {
|
|
7
|
+
await this.fetchContributors();
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Parses projectId prop to handle single or multiple project IDs
|
|
11
|
+
*/
|
|
12
|
+
getProjectIds() {
|
|
13
|
+
return this.projectId.split(",").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Fetches commits by path and aggregates by author for a single project
|
|
17
|
+
*/
|
|
18
|
+
async fetchCommitsByPathForProject(t) {
|
|
19
|
+
const r = [];
|
|
20
|
+
let o = 1;
|
|
21
|
+
const a = 100;
|
|
22
|
+
for (; ; ) {
|
|
23
|
+
const e = `${this.apiUrl}/projects/${encodeURIComponent(t)}/repository/commits?path=${encodeURIComponent(this.path)}&per_page=${a}&page=${o}`, n = await fetch(e, {
|
|
24
|
+
headers: {
|
|
25
|
+
"PRIVATE-TOKEN": this.accessToken
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
if (!n.ok)
|
|
29
|
+
throw new Error(`GitLab API error: ${n.status} ${n.statusText}`);
|
|
30
|
+
const l = await n.json();
|
|
31
|
+
if (l.length === 0 || (r.push(...l), l.length < a))
|
|
32
|
+
break;
|
|
33
|
+
o++;
|
|
34
|
+
}
|
|
35
|
+
const i = /* @__PURE__ */ new Map();
|
|
36
|
+
for (const e of r) {
|
|
37
|
+
const n = e.author_email.toLowerCase();
|
|
38
|
+
i.has(n) ? i.get(n).commits++ : i.set(n, {
|
|
39
|
+
name: e.author_name,
|
|
40
|
+
email: e.author_email,
|
|
41
|
+
commits: 1
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return Array.from(i.values()).map((e) => ({
|
|
45
|
+
name: e.name,
|
|
46
|
+
email: e.email,
|
|
47
|
+
commits: e.commits,
|
|
48
|
+
additions: 0,
|
|
49
|
+
// Not available from commits API
|
|
50
|
+
deletions: 0
|
|
51
|
+
// Not available from commits API
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Fetches contributors from a single project
|
|
56
|
+
* For project 1505 (monorepo), applies path filter if provided
|
|
57
|
+
* For other projects, fetches all contributors
|
|
58
|
+
*/
|
|
59
|
+
async fetchContributorsForProject(t) {
|
|
60
|
+
if (this.path && t === "1505")
|
|
61
|
+
return await this.fetchCommitsByPathForProject(t);
|
|
62
|
+
{
|
|
63
|
+
const o = await fetch(`${this.apiUrl}/projects/${encodeURIComponent(t)}/repository/contributors?per_page=100`, {
|
|
64
|
+
headers: {
|
|
65
|
+
"PRIVATE-TOKEN": this.accessToken
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
if (!o.ok)
|
|
69
|
+
throw new Error(`GitLab API error: ${o.status} ${o.statusText}`);
|
|
70
|
+
return await o.json();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Fetches contributors from GitLab API (supports multiple projects)
|
|
75
|
+
*/
|
|
76
|
+
async fetchContributors() {
|
|
77
|
+
if (!this.accessToken) {
|
|
78
|
+
this.error = "Access token is required for internal projects", this.loading = !1;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
try {
|
|
82
|
+
this.loading = !0, this.error = "";
|
|
83
|
+
const t = this.getProjectIds();
|
|
84
|
+
let r = [];
|
|
85
|
+
for (const i of t) {
|
|
86
|
+
const e = await this.fetchContributorsForProject(i);
|
|
87
|
+
r.push(...e);
|
|
88
|
+
}
|
|
89
|
+
const o = r.filter((i) => {
|
|
90
|
+
if (i.commits < this.minCommits)
|
|
91
|
+
return !1;
|
|
92
|
+
const e = i.email.toLowerCase(), n = i.name.toLowerCase();
|
|
93
|
+
return ![
|
|
94
|
+
"gitlab-ci",
|
|
95
|
+
"gitlab ci",
|
|
96
|
+
"noreply@gitlab",
|
|
97
|
+
"bot@",
|
|
98
|
+
"automation@"
|
|
99
|
+
].some((c) => e.includes(c) || n.includes(c));
|
|
100
|
+
}), a = this.aggregateContributors(o);
|
|
101
|
+
this.sortBy === "commits" ? a.sort((i, e) => e.commits - i.commits) : a.sort((i, e) => i.username.localeCompare(e.username)), this.contributors = a.slice(0, this.limit), this.loading = !1;
|
|
102
|
+
} catch (t) {
|
|
103
|
+
this.error = t instanceof Error ? t.message : "Failed to fetch contributors", this.loading = !1, console.error("Error fetching GitLab contributors:", t);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Extracts username from email address (part before @)
|
|
108
|
+
*/
|
|
109
|
+
extractUsernameFromEmail(t) {
|
|
110
|
+
return !t || !t.includes("@") ? t || "unknown" : t.split("@")[0];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Aggregates duplicate contributors by username (extracted from email)
|
|
114
|
+
* Combines commits, additions, and deletions for the same person
|
|
115
|
+
*/
|
|
116
|
+
aggregateContributors(t) {
|
|
117
|
+
const r = /* @__PURE__ */ new Map();
|
|
118
|
+
for (const o of t) {
|
|
119
|
+
const a = this.extractUsernameFromEmail(o.email), i = a.toLowerCase();
|
|
120
|
+
if (r.has(i)) {
|
|
121
|
+
const e = r.get(i);
|
|
122
|
+
e.commits += o.commits, e.additions += o.additions, e.deletions += o.deletions;
|
|
123
|
+
} else
|
|
124
|
+
r.set(i, Object.assign(Object.assign({}, o), { username: a }));
|
|
125
|
+
}
|
|
126
|
+
return Array.from(r.values());
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Gets first and last name from full name
|
|
130
|
+
*/
|
|
131
|
+
parseName(t) {
|
|
132
|
+
const r = t.trim().split(" ");
|
|
133
|
+
if (r.length === 1)
|
|
134
|
+
return { firstName: r[0], lastName: "" };
|
|
135
|
+
const o = r[0], a = r.slice(1).join(" ");
|
|
136
|
+
return { firstName: o, lastName: a };
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Format large numbers with K suffix
|
|
140
|
+
*/
|
|
141
|
+
formatNumber(t) {
|
|
142
|
+
return t >= 1e3 ? `${(t / 1e3).toFixed(1)}K` : t.toString();
|
|
143
|
+
}
|
|
144
|
+
render() {
|
|
145
|
+
if (this.loading)
|
|
146
|
+
return s("div", { class: "flex flex-col items-center justify-center p-12 gap-4" }, s("eds-spinner", { size: "md" }), s("p", { class: "text-base text-gray-600 m-0" }, "Loading contributors..."));
|
|
147
|
+
if (this.error)
|
|
148
|
+
return s("eds-alert", { message: "Error loading contributors", intent: "error" });
|
|
149
|
+
if (this.contributors.length === 0)
|
|
150
|
+
return s("eds-alert", { message: "No contributors found for this project.", intent: "error" });
|
|
151
|
+
const t = `grid gap-6 w-full ${this.columns === "2" ? "grid-cols-1 sm:grid-cols-2" : this.columns === "3" ? "grid-cols-1 sm:grid-cols-2 md:grid-cols-3" : this.columns === "4" ? "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4" : "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5"}`;
|
|
152
|
+
return s("div", { class: "w-full" }, s("div", { class: t }, this.contributors.map((r) => {
|
|
153
|
+
const { firstName: o, lastName: a } = this.parseName(r.name);
|
|
154
|
+
return s("div", { class: "contributor-card flex flex-row gap-4 p-5 bg-white border border-gray-200 rounded-lg transition-all duration-200", key: r.email }, s("div", { class: "flex-shrink-0" }, s("eds-avatar", { firstName: o, lastName: a, color: "black" })), s("div", { class: "min-w-0 flex flex-col gap-2" }, s("span", { class: "f-ui-01 text-default pb-2 m-0 whitespace-nowrap overflow-hidden text-ellipsis" }, "@", r.username), s("div", { class: "flex flex-col gap-2 mt-auto" }, s("div", { class: "flex items-center gap-2 font-semibold" }, s("span", { class: "text-light" }, this.formatNumber(r.commits)), s("span", { class: "text-lighter" }, r.commits === 1 ? "commit" : "commits")))));
|
|
155
|
+
})));
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
h.style = g;
|
|
159
|
+
export {
|
|
160
|
+
h as eds_gitlab_contributors
|
|
161
|
+
};
|
|
@@ -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-CoItic1X.js"),c=require("./bluesky-cc5edd2d-DaFQc-pr.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"c2d0ffef1833f4a53a4447d517c6505ce9be70a4",class:this.class,innerHTML:c.bluesky})}};exports.eds_icon_bluesky=r;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as r } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { b as c } from "./bluesky-cc5edd2d-DfuDDO5h.mjs";
|
|
3
|
+
const n = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "c2d0ffef1833f4a53a4447d517c6505ce9be70a4", class: this.class, innerHTML: c });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as eds_icon_bluesky
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),c=require("./eu-8ac3e99c-vr227q5X.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"c4a043469698de97b7433749599ee04746df7f8e",class:this.class,innerHTML:c.euSvg})}};exports.eds_icon_eu=r;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as r } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { e as t } from "./eu-8ac3e99c-CQxZpMa1.mjs";
|
|
3
|
+
const a = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "c4a043469698de97b7433749599ee04746df7f8e", class: this.class, innerHTML: t });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as eds_icon_eu
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as a, h as o } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { f as c } from "./facebook-9cb5c17f-BcUhbrj6.mjs";
|
|
3
|
+
const t = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
a(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return o("span", { key: "8498500cd0da2784b889a7b2b2ca9ff4e8414ab6", class: this.class, innerHTML: c });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
t as eds_icon_facebook
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),s=require("./facebook-9cb5c17f-Y_gvQ682.js"),o=class{constructor(c){e.registerInstance(this,c),this.class=""}render(){return e.h("span",{key:"8498500cd0da2784b889a7b2b2ca9ff4e8414ab6",class:this.class,innerHTML:s.facebook})}};exports.eds_icon_facebook=o;
|
|
@@ -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-CoItic1X.js"),t=require("./mono-53f70232-DgAsWvoQ.js"),c=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"41c0a44af7394753c8c656f5a1de86b1446f05e3",class:this.class,innerHTML:t.gitlabBlack})}};exports.eds_icon_gitlab=c;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as a, h as r } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { g as t } from "./mono-53f70232-DGi2XDlR.mjs";
|
|
3
|
+
const i = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
a(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "41c0a44af7394753c8c656f5a1de86b1446f05e3", class: this.class, innerHTML: t });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
i as eds_icon_gitlab
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as n } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { l as r } from "./linkedin-e8650abb-DYMdsale.mjs";
|
|
3
|
+
const t = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return n("span", { key: "02a55590ddf6ee6b873370913e9e7cbfe5390c79", class: this.class, innerHTML: r });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
t as eds_icon_linkedin
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),s=require("./linkedin-e8650abb-BkDrkjzY.js"),i=class{constructor(n){e.registerInstance(this,n),this.class=""}render(){return e.h("span",{key:"02a55590ddf6ee6b873370913e9e7cbfe5390c79",class:this.class,innerHTML:s.linkedin})}};exports.eds_icon_linkedin=i;
|
|
@@ -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-CoItic1X.js"),t=require("./mastodon-3703ec61-C9v6Olc-.js"),n=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"633a54b9f7bdeec8d704d7994de959a8e12ebe4f",class:this.class,innerHTML:t.mastodon})}};exports.eds_icon_mastodon=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as e, h as o } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { m as r } from "./mastodon-3703ec61-C7iI4Hk0.mjs";
|
|
3
|
+
const n = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
e(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return o("span", { key: "633a54b9f7bdeec8d704d7994de959a8e12ebe4f", class: this.class, innerHTML: r });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
n as eds_icon_mastodon
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r as t, h as r } from "./index-QMzHaXvm.mjs";
|
|
2
|
+
import { t as e } from "./twitter-ac21b505-CGWVGWM9.mjs";
|
|
3
|
+
const a = class {
|
|
4
|
+
constructor(s) {
|
|
5
|
+
t(this, s), this.class = "";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return r("span", { key: "6f20d0106096d427556e05b663e3fa133852470e", class: this.class, innerHTML: e });
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
a as eds_icon_twitter
|
|
13
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),s=require("./twitter-ac21b505-DDdHS4hB.js"),r=class{constructor(t){e.registerInstance(this,t),this.class=""}render(){return e.h("span",{key:"6f20d0106096d427556e05b663e3fa133852470e",class:this.class,innerHTML:s.twitter})}};exports.eds_icon_twitter=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoItic1X.js"),t=require("./youtube-efbfbdc4-BLTH1Jl9.js"),r=class{constructor(s){e.registerInstance(this,s),this.class=""}render(){return e.h("span",{key:"e07946107d2e0e5a0705bc52d27a436e0f4d5956",class:this.class,innerHTML:t.youtube})}};exports.eds_icon_youtube=r;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as e, h as r } from "./index-
|
|
1
|
+
import { r as e, h as r } from "./index-QMzHaXvm.mjs";
|
|
2
2
|
import { y as t } from "./youtube-efbfbdc4-BfySbfjR.mjs";
|
|
3
3
|
const c = class {
|
|
4
4
|
constructor(s) {
|
|
5
5
|
e(this, s), this.class = "";
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return r("span", { key: "
|
|
8
|
+
return r("span", { key: "e07946107d2e0e5a0705bc52d27a436e0f4d5956", class: this.class, innerHTML: t });
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
export {
|