@ebrains/vue 0.6.0-alpha.0 → 0.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{color-primary-palette_6.entry-BJGrNiKE.mjs → color-primary-palette_6.entry-BDyyrFB5.mjs} +17 -17
- package/color-primary-palette_6.entry-BhxgE7ff.js +1 -0
- package/correct-use-of-colors.entry-DXASqwFp.js +1 -0
- package/correct-use-of-colors.entry-z7k3YWpg.mjs +59 -0
- package/eds-accordion_22.entry-LksMmZ4o.js +28813 -0
- package/eds-accordion_22.entry-Lqf1NKBk.mjs +30175 -0
- package/{eds-alert.entry-B9K7jZdM.mjs → eds-alert.entry-BqjTTCgj.mjs} +1 -1
- package/{eds-alert.entry-HNjGFpMQ.js → eds-alert.entry-DZcz_4Dj.js} +1 -1
- package/eds-app-root.entry-Cz-9z7Za.js +1 -0
- package/eds-app-root.entry-DobAtes_.mjs +25 -0
- package/eds-avatar_4.entry-BYrgwmj2.mjs +278 -0
- package/eds-avatar_4.entry-Bqr0d5Cj.js +149 -0
- package/{eds-breadcrumb.entry-nSQcSQxS.mjs → eds-breadcrumb.entry-N3NSBwJL.mjs} +13 -19
- package/eds-breadcrumb.entry-elqbS74P.js +1 -0
- package/eds-card-generic.entry-D5pTUUco.js +1 -0
- package/eds-card-generic.entry-zKJ2hHOe.mjs +56 -0
- package/{eds-card-project.entry-BMRVlg7J.mjs → eds-card-project.entry-DDo4ZJs8.mjs} +1 -1
- package/{eds-card-project.entry-BQKGTSJB.js → eds-card-project.entry-e4n5lQbW.js} +1 -1
- package/eds-card-section.entry-C8nt6j3h.mjs +30 -0
- package/eds-card-section.entry-CeznIbCo.js +1 -0
- package/{eds-card-tags.entry-DAkoUUin.js → eds-card-tags.entry-Bl3YXNtv.js} +1 -1
- package/{eds-card-tags.entry-BjvxuQg1.mjs → eds-card-tags.entry-Do9kx7rP.mjs} +1 -1
- package/{eds-card-tool.entry-BPrlMiqY.mjs → eds-card-tool.entry-BewNCjRU.mjs} +1 -1
- package/{eds-card-tool.entry-B0rDGNdA.js → eds-card-tool.entry-DnVIn9BX.js} +1 -1
- package/{eds-card-wrapper.entry-DyPmlYoI.js → eds-card-wrapper.entry-BzKcrwEf.js} +1 -1
- package/{eds-card-wrapper.entry-Ba4ljzon.mjs → eds-card-wrapper.entry-DMj1bZ4i.mjs} +1 -1
- package/{eds-code-block.entry-B3RL-q6l.js → eds-code-block.entry-DUeN87Fw.js} +1 -1
- package/{eds-code-block.entry-zX5MUsAS.mjs → eds-code-block.entry-fqrA-Frf.mjs} +1 -1
- package/{eds-components-section.entry-xnXY70G_.mjs → eds-components-section.entry-BgfCSxk1.mjs} +2 -2
- package/{eds-components-section.entry-BsmIIcun.js → eds-components-section.entry-CLJMns6h.js} +2 -2
- package/{eds-cookies-preference.entry-DAQEpE8v.mjs → eds-cookies-preference.entry-B1a8qild.mjs} +5 -5
- package/{eds-cookies-preference.entry-MAmSehJX.js → eds-cookies-preference.entry-BGx0tglE.js} +1 -1
- package/{eds-docs-palettes.entry-BiC_mzap.js → eds-docs-palettes.entry-C1EcBwSy.js} +1 -1
- package/{eds-docs-palettes.entry-CFIZWB7Y.mjs → eds-docs-palettes.entry-TXbXKJJN.mjs} +2 -2
- package/{eds-docs-tokens.entry-ClVBrRzm.mjs → eds-docs-tokens.entry-B1xc8BFa.mjs} +2 -2
- package/{eds-docs-tokens.entry-CCwf01ke.js → eds-docs-tokens.entry-BJVBVsOy.js} +1 -1
- package/eds-dropdown.entry-CMK8E_J2.mjs +83 -0
- package/eds-dropdown.entry-FqX7fOIb.js +1 -0
- package/eds-feedback.entry-B-Lue8P0.js +1 -0
- package/eds-feedback.entry-fz73-syB.mjs +53 -0
- package/{eds-form.entry-gO7sMMVG.js → eds-form.entry-0saB-Hm9.js} +2 -2
- package/{eds-form.entry-znKH1sqi.mjs → eds-form.entry-BB1gfXVy.mjs} +174 -159
- package/eds-frame.entry-BvJCKWMT.mjs +73 -0
- package/eds-frame.entry-dX3nZxD0.js +1 -0
- package/{eds-icon-arrow-diagonal.entry-C7CZIqBn.mjs → eds-icon-arrow-diagonal.entry-BD3xdvR4.mjs} +2 -2
- package/{eds-icon-arrow-diagonal.entry-BTLKc1cS.js → eds-icon-arrow-diagonal.entry-DkQFuVkT.js} +1 -1
- package/eds-icon-arrow-right.entry-BH0zDB1H.js +1 -0
- package/eds-icon-arrow-right.entry-Diax6KZB.mjs +13 -0
- package/{eds-icon-bluesky.entry-BfYrb4Uv.js → eds-icon-bluesky.entry-CDZCjWCh.js} +1 -1
- package/eds-icon-bluesky.entry-DwvxMR1q.mjs +13 -0
- package/{eds-icon-chevron-down.entry-OPmfChgp.js → eds-icon-chevron-down.entry-CGsA1rJ0.js} +1 -1
- package/eds-icon-chevron-down.entry-CiJcqZuh.mjs +13 -0
- package/{eds-icon-chevron-left.entry-CRr4AWkS.mjs → eds-icon-chevron-left.entry-Dt2WsKob.mjs} +2 -2
- package/{eds-icon-chevron-left.entry-_zMMz-c9.js → eds-icon-chevron-left.entry-nBBudzCb.js} +1 -1
- package/{eds-icon-chevron-right.entry-YLnmNxjo.mjs → eds-icon-chevron-right.entry-BG7_qznz.mjs} +2 -2
- package/{eds-icon-chevron-right.entry-0FshDV46.js → eds-icon-chevron-right.entry-CjhJFKog.js} +1 -1
- package/eds-icon-chevron-up.entry-DfsbHKk1.mjs +13 -0
- package/eds-icon-chevron-up.entry-Dy81hGw-.js +1 -0
- package/eds-icon-close.entry-CpGzc34L.mjs +13 -0
- package/{eds-icon-close.entry-BSSS65tZ.js → eds-icon-close.entry-DNhXNl8O.js} +1 -1
- package/eds-icon-copy.entry-CsD2FpUS.mjs +13 -0
- package/eds-icon-copy.entry-DD2HXgFK.js +1 -0
- package/eds-icon-eu.entry-BRuCbl7O.mjs +13 -0
- package/eds-icon-eu.entry-ChKv8iZB.js +1 -0
- package/{eds-icon-facebook.entry-CKmUhO4W.mjs → eds-icon-facebook.entry--ctHhWkj.mjs} +2 -2
- package/{eds-icon-facebook.entry-DsPVhA3Z.js → eds-icon-facebook.entry-Bjkse_bn.js} +1 -1
- package/{eds-icon-gitlab.entry-D6VEWpO6.mjs → eds-icon-gitlab.entry-BDqNL5zl.mjs} +2 -2
- package/{eds-icon-gitlab.entry-Dzq7ViR-.js → eds-icon-gitlab.entry-DUQcgTMM.js} +1 -1
- package/eds-icon-linkedin.entry-Cq13-Zdb.mjs +13 -0
- package/{eds-icon-linkedin.entry-7PCeoMEi.js → eds-icon-linkedin.entry-D-D3hmxE.js} +1 -1
- package/eds-icon-loader.entry-DgpUjCng.mjs +13 -0
- package/eds-icon-loader.entry-rKBBXz_C.js +1 -0
- package/{eds-icon-mastodon.entry-DsU7dMbW.js → eds-icon-mastodon.entry-CCn_r682.js} +1 -1
- package/eds-icon-mastodon.entry-OpdPcGQ7.mjs +13 -0
- package/eds-icon-menu.entry-B3mQ8ma1.mjs +13 -0
- package/{eds-icon-menu.entry-DRd13IcH.js → eds-icon-menu.entry-DUxzhro5.js} +1 -1
- package/{eds-icon-more.entry-BOWM2H9H.js → eds-icon-more.entry-CBDi0LJC.js} +1 -1
- package/{eds-icon-more.entry-CqvnBXDu.mjs → eds-icon-more.entry-CDDxBiBM.mjs} +2 -2
- package/eds-icon-search.entry-Bok3Oo0Q.js +1 -0
- package/eds-icon-search.entry-CvnFqzlk.mjs +13 -0
- package/eds-icon-star.entry-BRQ07hMQ.mjs +13 -0
- package/eds-icon-star.entry-CkeEbwgJ.js +1 -0
- package/{eds-icon-success.entry-CDwqLyts.js → eds-icon-success.entry-DA4C5Hwg.js} +1 -1
- package/eds-icon-success.entry-nWUVTFzX.mjs +13 -0
- package/eds-icon-thumbs-down.entry-BqEOrmiW.js +1 -0
- package/eds-icon-thumbs-down.entry-Dme-Ippn.mjs +13 -0
- package/eds-icon-thumbs-up.entry-Dkqv6r_x.js +1 -0
- package/eds-icon-thumbs-up.entry-Dp-eslmx.mjs +13 -0
- package/eds-icon-twitter.entry-BcZ2atce.js +1 -0
- package/eds-icon-twitter.entry-CqalD8Wf.mjs +13 -0
- package/eds-icon-user.entry-DU8EF-lQ.mjs +13 -0
- package/{eds-icon-user.entry-GYJBVLsU.js → eds-icon-user.entry-DpvoOnVA.js} +1 -1
- package/{eds-icon-youtube.entry-BluzizaX.js → eds-icon-youtube.entry-DbPAn4pN.js} +1 -1
- package/{eds-icon-youtube.entry-BqP_g-Pb.mjs → eds-icon-youtube.entry-vFg7QtYg.mjs} +2 -2
- package/eds-login_2.entry-6Hxmqih9.js +9 -0
- package/{keycloak-d502ec16-Ce0iGqyk.mjs → eds-login_2.entry-DD8g9nqu.mjs} +288 -210
- package/eds-logo-variations.entry-CDTTH-iG.mjs +22 -0
- package/{eds-logo-variations.entry-B7BEqih8.js → eds-logo-variations.entry-dLBnZPi7.js} +1 -1
- package/{eds-modal.entry-2mm8jzwO.mjs → eds-modal.entry-CV3bf08X.mjs} +16 -4
- package/{eds-modal.entry-N0Zu-2yI.js → eds-modal.entry-DJybVbNk.js} +1 -1
- package/{eds-progress-bar.entry-C-qHC2dN.js → eds-progress-bar.entry-23-I0rSz.js} +1 -1
- package/{eds-progress-bar.entry-BpqT4TGP.mjs → eds-progress-bar.entry-BP6AqtI7.mjs} +2 -2
- package/eds-rating.entry-CHo7h3Y4.mjs +61 -0
- package/eds-rating.entry-dDYfYR7o.js +1 -0
- package/{eds-section-core_2.entry-JyCa51Zs.js → eds-section-core_2.entry-BdnBCBit.js} +1 -1
- package/{eds-section-core_2.entry-BwoSUszo.mjs → eds-section-core_2.entry-DTItYLUC.mjs} +4 -4
- package/eds-spinner.entry-BwTZAz8I.mjs +36 -0
- package/eds-spinner.entry-CXLe8IAk.js +1 -0
- package/{eds-steps.entry-gPHX8t5y.mjs → eds-steps.entry-Nz_XqcUl.mjs} +10 -19
- package/eds-steps.entry-ceVyrSe-.js +1 -0
- package/{eds-svg-repository.entry-BhAWpTfJ.js → eds-svg-repository.entry-CKQ6S13R.js} +13 -13
- package/{eds-svg-repository.entry-DeKbE1sw.mjs → eds-svg-repository.entry-DoYT85te.mjs} +54 -48
- package/{eds-switch.entry-6C-fiD1f.js → eds-switch.entry-4a3DLV-c.js} +1 -1
- package/{eds-switch.entry-LXqTebs4.mjs → eds-switch.entry-DjT9dev_.mjs} +3 -3
- package/{eds-link.entry-D4lqKj64.mjs → eds-tabs.entry-BYxiMlkR.mjs} +590 -166
- package/{eds-link.entry-B_t5O_EC.js → eds-tabs.entry-DJKEg0Gs.js} +503 -16
- package/eds-timeline.entry-DKx-pd67.js +1 -0
- package/eds-timeline.entry-DOSKCjPH.mjs +45 -0
- package/eds-toast-manager.entry-BV-sP7cR.mjs +36 -0
- package/eds-toast-manager.entry-BopxpC3o.js +1 -0
- package/eds-toast.entry-DDBTRdmP.mjs +61 -0
- package/eds-toast.entry-DPibhM-Z.js +3 -0
- package/{eds-tooltip.entry-BSd2vlEo.mjs → eds-tooltip.entry-B53fpM9t.mjs} +7 -7
- package/{eds-tooltip.entry-D9pRQyxl.js → eds-tooltip.entry-Cf6bse_x.js} +1 -1
- package/eds-trl.entry-C0cSVG_Q.mjs +34 -0
- package/eds-trl.entry-fYVgYPts.js +1 -0
- package/eds-user.entry-hUkYJDp4.js +1 -0
- package/eds-user.entry-qM0swzIt.mjs +26 -0
- package/{eds-vertical-stepper.entry-CdmDXaW2.mjs → eds-vertical-stepper.entry-Bb6dUinj.mjs} +5 -5
- package/{eds-vertical-stepper.entry-DphlSSa0.js → eds-vertical-stepper.entry-CvadBA1x.js} +1 -1
- package/formUtils-ac68474d-BDuxB0K8.js +1 -0
- package/formUtils-ac68474d-D2e59S7S.mjs +122 -0
- package/generated/components.d.ts +4 -1
- package/incorrect-use-of-colors.entry-B6fKAvAx.mjs +42 -0
- package/incorrect-use-of-colors.entry-DZ_SBoa8.js +1 -0
- package/index-D4alMZtT.js +21 -0
- package/{index-Df31uHzU.mjs → index-E1PpO1J3.mjs} +453 -430
- package/index.js +1 -1
- package/index.mjs +32 -29
- package/{logo-space.entry-q9Uznxi3.js → logo-space.entry-BOh7Odfh.js} +1 -1
- package/{logo-space.entry-CChbx8AS.mjs → logo-space.entry-xGhYUj5r.mjs} +7 -7
- package/logo-variations-horizontal_2.entry-BWlXcmRe.js +7 -0
- package/logo-variations-horizontal_2.entry-CIUDEw3Y.mjs +29 -0
- package/logo-wrong-usage.entry-CtPXf-5h.js +1 -0
- package/logo-wrong-usage.entry-D4aBJ6Wk.mjs +14 -0
- package/package.json +1 -1
- package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
- package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
- package/star-0da9b5e9-B3-jr0yE.js +3 -0
- package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
- package/thumbs-down-a18fd049-CzuBAj99.mjs +6 -0
- package/thumbs-down-a18fd049-DTNIbYbm.js +3 -0
- package/thumbs-up-c19a71bc-CjLv5Wgw.mjs +7 -0
- package/thumbs-up-c19a71bc-w8Z8gegt.js +4 -0
- package/{token-list_3.entry-CJXI55T0.mjs → token-list_3.entry-DJ-cqa3_.mjs} +4 -4
- package/{token-list_3.entry-B4bQ3_yz.js → token-list_3.entry-DVoMZtdK.js} +1 -1
- package/{token-ratios.entry-LNQoHORe.mjs → token-ratios.entry-FKky7w4Z.mjs} +2 -2
- package/token-ratios.entry-JS-ffZPx.js +1 -0
- package/token-spacing.entry-Cf5LP8jh.mjs +12 -0
- package/token-spacing.entry-YJWgDaTr.js +1 -0
- package/{token-typography.entry-qTyV0EeH.mjs → token-typography.entry-CKyKPdVF.mjs} +2 -2
- package/{token-typography.entry-DddK_fiy.js → token-typography.entry-CuHfxHRU.js} +1 -1
- package/color-primary-palette_6.entry-CYSEDId9.js +0 -1
- package/correct-use-of-colors.entry-B36yaMb6.js +0 -1
- package/correct-use-of-colors.entry-C2K5ii07.mjs +0 -59
- package/eds-accordion_13.entry-BwXBZQ7p.mjs +0 -8044
- package/eds-accordion_13.entry-DuX3jvBd.js +0 -7375
- package/eds-block-break.entry-1HfuhJmn.mjs +0 -13
- package/eds-block-break.entry-DQDjLThR.js +0 -1
- package/eds-breadcrumb.entry-Oe7Iu_rp.js +0 -1
- package/eds-dropdown_2.entry-Dhtc1LQe.js +0 -1
- package/eds-dropdown_2.entry-Ds54Abix.mjs +0 -115
- package/eds-footer.entry-CKr0MOpU.mjs +0 -22
- package/eds-footer.entry-DuNEl6BR.js +0 -1
- package/eds-frame.entry-BE9_G-56.js +0 -1
- package/eds-frame.entry-COwMtc5z.mjs +0 -74
- package/eds-fullscreen-menu.entry-CRIb_lLm.js +0 -1
- package/eds-fullscreen-menu.entry-DdO0Nwbq.mjs +0 -74
- package/eds-header.entry-38uAVZoC.js +0 -2
- package/eds-header.entry-C0qfjzDY.mjs +0 -75
- package/eds-icon-arrow-right.entry-Bv_6skZy.js +0 -1
- package/eds-icon-arrow-right.entry-DNkmpAdY.mjs +0 -13
- package/eds-icon-bluesky.entry-B_WksyEk.mjs +0 -13
- package/eds-icon-chevron-down.entry-DGjMxTKO.mjs +0 -13
- package/eds-icon-chevron-up.entry-DGt49ffi.js +0 -1
- package/eds-icon-chevron-up.entry-NPODej6j.mjs +0 -13
- package/eds-icon-close.entry-BQULA4ki.mjs +0 -13
- package/eds-icon-copy.entry-Di_H0U8v.mjs +0 -13
- package/eds-icon-copy.entry-PvAtojYn.js +0 -1
- package/eds-icon-eu.entry-BTzpJByN.mjs +0 -13
- package/eds-icon-eu.entry-D77vjTJ9.js +0 -1
- package/eds-icon-linkedin.entry-BI2sjTDa.mjs +0 -13
- package/eds-icon-loader.entry-BoQTR6PV.mjs +0 -13
- package/eds-icon-loader.entry-Bp-ZxeW7.js +0 -1
- package/eds-icon-mastodon.entry-Cm8XCAqa.mjs +0 -13
- package/eds-icon-menu.entry-C7HmF2n5.mjs +0 -13
- package/eds-icon-search.entry-BrANR30M.mjs +0 -13
- package/eds-icon-search.entry-CubLvPO7.js +0 -1
- package/eds-icon-success.entry-CtMWWFTW.mjs +0 -13
- package/eds-icon-twitter.entry-BnhBJxrn.js +0 -1
- package/eds-icon-twitter.entry-DHTwTPKu.mjs +0 -13
- package/eds-icon-user.entry-LTXtb_m4.mjs +0 -13
- package/eds-input_7.entry-Bo9-yfaP.js +0 -7167
- package/eds-input_7.entry-CCX6iGUA.mjs +0 -7373
- package/eds-login.entry-CB_gy86p.mjs +0 -58
- package/eds-login.entry-CDj80EGl.js +0 -1
- package/eds-logo-variations.entry-AbwI_N4g.mjs +0 -22
- package/eds-logo.entry-C4YV268f.mjs +0 -61
- package/eds-logo.entry-D-2GjdZl.js +0 -1
- package/eds-navigator.entry-Bd0BYBJE.js +0 -1
- package/eds-navigator.entry-DJHFUppb.mjs +0 -33
- package/eds-pagination_2.entry-N7stHjY-.js +0 -1
- package/eds-pagination_2.entry-T_lnxySd.mjs +0 -249
- package/eds-rating.entry-C1djorgY.js +0 -1
- package/eds-rating.entry-DJbkld-l.mjs +0 -48
- package/eds-social-networks.entry-CWw8CODU.mjs +0 -50
- package/eds-social-networks.entry-CveQgGlC.js +0 -1
- package/eds-steps.entry-NC8mexCJ.js +0 -1
- package/eds-tab.entry-7_C7zAnd.mjs +0 -31
- package/eds-tab.entry-BI3X5Amp.js +0 -1
- package/eds-tabs-content.entry-BYK_ciTB.mjs +0 -106
- package/eds-tabs-content.entry-FqonRXn9.js +0 -1
- package/eds-tabs.entry-CCGBUoii.mjs +0 -112
- package/eds-tabs.entry-VauMxz1h.js +0 -1
- package/eds-timeline.entry-B-eABvy-.mjs +0 -51
- package/eds-timeline.entry-UjKckHoD.js +0 -1
- package/eds-trl.entry-C1CKXjzi.mjs +0 -34
- package/eds-trl.entry-DdPaX9aY.js +0 -1
- package/eds-user.entry-BX3nKCHB.mjs +0 -66
- package/eds-user.entry-CyEG-Wtm.js +0 -1
- package/incorrect-use-of-colors.entry-BhygRTdu.js +0 -1
- package/incorrect-use-of-colors.entry-QkMrxvFS.mjs +0 -42
- package/index-DvG3cC-8.js +0 -21
- package/keycloak-d502ec16-m7LwS-Gh.js +0 -9
- package/logo-variations-horizontal_2.entry-DA_yMnFa.mjs +0 -29
- package/logo-variations-horizontal_2.entry-G3ih093R.js +0 -7
- package/logo-wrong-usage.entry-BoBmwzLl.mjs +0 -14
- package/logo-wrong-usage.entry-l4pJC0KB.js +0 -1
- package/token-ratios.entry-hdef-MAq.js +0 -1
- package/token-spacing.entry-YXQwnYx0.mjs +0 -12
- package/token-spacing.entry-xhNHm9Tw.js +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { r as i, c as r, h as s } from "./index-Df31uHzU.mjs";
|
|
2
|
-
import { l as n, a as h, i as o, b as c, g as l } from "./keycloak-d502ec16-Ce0iGqyk.mjs";
|
|
3
|
-
import { t } from "./toastManager-d9eee791-CEYNwx25.mjs";
|
|
4
|
-
const g = class {
|
|
5
|
-
constructor(e) {
|
|
6
|
-
i(this, e), this.authStatusChanged = r(this, "authStatusChanged", 7), this.handleLogin = async () => {
|
|
7
|
-
if (!this.authenticated)
|
|
8
|
-
try {
|
|
9
|
-
await n(), t.show("You are authenticated", "success");
|
|
10
|
-
} catch (a) {
|
|
11
|
-
t.show(a.message, "error");
|
|
12
|
-
}
|
|
13
|
-
}, this.handleLogout = async () => {
|
|
14
|
-
try {
|
|
15
|
-
await h();
|
|
16
|
-
} catch (a) {
|
|
17
|
-
t.show(a.message, "error");
|
|
18
|
-
}
|
|
19
|
-
this.authenticated = !1, this.user = null;
|
|
20
|
-
}, this.keycloakUrl = void 0, this.keycloakRealm = void 0, this.keycloakClientId = void 0, this.authenticated = !1, this.user = null;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Lifecycle method that runs when the component is about to load.
|
|
24
|
-
* It initializes authentication by calling the `initAuth` method.
|
|
25
|
-
*/
|
|
26
|
-
async componentWillLoad() {
|
|
27
|
-
if (!this.keycloakUrl || !this.keycloakRealm || !this.keycloakClientId) {
|
|
28
|
-
console.error("Keycloak configuration props are missing.");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
await this.initAuth();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Initializes the Keycloak authentication by configuring Keycloak with the provided props.
|
|
35
|
-
* Sets the `authenticated` state and `user` data if the user is authenticated.
|
|
36
|
-
* Emits `authStatusChanged` event with the authentication status.
|
|
37
|
-
*/
|
|
38
|
-
async initAuth() {
|
|
39
|
-
try {
|
|
40
|
-
await o({
|
|
41
|
-
url: this.keycloakUrl,
|
|
42
|
-
realm: this.keycloakRealm,
|
|
43
|
-
clientId: this.keycloakClientId
|
|
44
|
-
}, !0), c() && (this.user = l(), this.authenticated = !0, this.authStatusChanged.emit({
|
|
45
|
-
authenticated: this.authenticated,
|
|
46
|
-
user: this.user
|
|
47
|
-
}));
|
|
48
|
-
} catch (e) {
|
|
49
|
-
t.show(e.message, "error");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return s("div", { key: "62768f8a6cc8ac16b13f9b2bb9cf5835f7f63844", class: "block" }, !this.authenticated && s("eds-button", { key: "31e341d628242fed472f673c0fe8346c7871515d", label: "Login", intent: "primary", "extra-class": "text-default", "aria-label": "Login", triggerClick: this.handleLogin.bind(this) }));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
g as eds_login
|
|
58
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),t=require("./keycloak-d502ec16-m7LwS-Gh.js"),a=require("./toastManager-d9eee791-DvR_vUPI.js"),r=class{constructor(i){e.registerInstance(this,i),this.authStatusChanged=e.createEvent(this,"authStatusChanged",7),this.handleLogin=async()=>{if(!this.authenticated)try{await t.login(),a.toast.show("You are authenticated","success")}catch(s){a.toast.show(s.message,"error")}},this.handleLogout=async()=>{try{await t.logout()}catch(s){a.toast.show(s.message,"error")}this.authenticated=!1,this.user=null},this.keycloakUrl=void 0,this.keycloakRealm=void 0,this.keycloakClientId=void 0,this.authenticated=!1,this.user=null}async componentWillLoad(){if(!this.keycloakUrl||!this.keycloakRealm||!this.keycloakClientId){console.error("Keycloak configuration props are missing.");return}await this.initAuth()}async initAuth(){try{await t.initKeycloak({url:this.keycloakUrl,realm:this.keycloakRealm,clientId:this.keycloakClientId},!0),t.isAuthenticated()&&(this.user=t.getUser(),this.authenticated=!0,this.authStatusChanged.emit({authenticated:this.authenticated,user:this.user}))}catch(i){a.toast.show(i.message,"error")}}render(){return e.h("div",{key:"62768f8a6cc8ac16b13f9b2bb9cf5835f7f63844",class:"block"},!this.authenticated&&e.h("eds-button",{key:"31e341d628242fed472f673c0fe8346c7871515d",label:"Login",intent:"primary","extra-class":"text-default","aria-label":"Login",triggerClick:this.handleLogin.bind(this)}))}};exports.eds_login=r;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { r as e, h as t } from "./index-Df31uHzU.mjs";
|
|
2
|
-
const a = class {
|
|
3
|
-
constructor(n) {
|
|
4
|
-
e(this, n), this.tabIndex = void 0;
|
|
5
|
-
}
|
|
6
|
-
renderContent() {
|
|
7
|
-
switch (this.tabIndex) {
|
|
8
|
-
case 0:
|
|
9
|
-
return t("logo-variations-horizontal", null);
|
|
10
|
-
case 1:
|
|
11
|
-
return t("logo-variations-vertical", null);
|
|
12
|
-
default:
|
|
13
|
-
return t("p", null, "Content not available.");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
render() {
|
|
17
|
-
return t("div", { key: "0494cbb3e7b4902e91a0c78c691bc3405b9f11cc", class: "container" }, this.renderContent());
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
a as eds_logo_variations
|
|
22
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { r as s, h as i, g as a } from "./index-Df31uHzU.mjs";
|
|
2
|
-
import { h as r } from "./logo-color-7f1fd803-CFgbXdt8.mjs";
|
|
3
|
-
import { h as l, a as n, b as c, c as h, v as g, d, e as f, f as m, g as u } from "./logo-white-no-bg-f382f86f-YhfmNmGG.mjs";
|
|
4
|
-
import { s as p } from "./analytics-44b1416b-3vYuu4Xs.mjs";
|
|
5
|
-
const L = ".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}", b = L, w = class {
|
|
6
|
-
constructor(o) {
|
|
7
|
-
s(this, o), this.href = "/", this.orientation = "horizontal", this.type = void 0, this.label = "Home";
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Handles the click event on the logo link.
|
|
11
|
-
* Emits a `matomoEvent` for analytics tracking with details about the interaction.
|
|
12
|
-
* - `category`: Component type (e.g., "ui-component").
|
|
13
|
-
* - `tag`: The HTML tag name of the component.
|
|
14
|
-
* - `name`: Event name, set as "logo".
|
|
15
|
-
* - `action`: The action, set as "click".
|
|
16
|
-
*/
|
|
17
|
-
handleClick() {
|
|
18
|
-
p({
|
|
19
|
-
category: "ui-component",
|
|
20
|
-
tag: this.el.tagName.toLowerCase(),
|
|
21
|
-
name: "logo",
|
|
22
|
-
action: "click"
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Determines the appropriate SVG content based on the `orientation` and `type` props.
|
|
27
|
-
*/
|
|
28
|
-
getLogo() {
|
|
29
|
-
const t = {
|
|
30
|
-
horizontal: {
|
|
31
|
-
color: r,
|
|
32
|
-
black: l,
|
|
33
|
-
"color-white": n,
|
|
34
|
-
white: c,
|
|
35
|
-
"no-bg": h
|
|
36
|
-
},
|
|
37
|
-
vertical: {
|
|
38
|
-
color: g,
|
|
39
|
-
black: d,
|
|
40
|
-
"color-white": f,
|
|
41
|
-
white: m,
|
|
42
|
-
"no-bg": u
|
|
43
|
-
}
|
|
44
|
-
}[this.orientation];
|
|
45
|
-
if (!t)
|
|
46
|
-
return r;
|
|
47
|
-
const e = t[this.type];
|
|
48
|
-
return e || t.color;
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
const o = this.getLogo();
|
|
52
|
-
return i("a", { key: "ee8de4071b0137020341982b4c5cb2c938f1c4df", href: this.href, onClick: () => this.handleClick(), class: "eds-logo-wrapper", "aria-label": this.label }, i("div", { key: "1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c", innerHTML: o }));
|
|
53
|
-
}
|
|
54
|
-
get el() {
|
|
55
|
-
return a(this);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
w.style = b;
|
|
59
|
-
export {
|
|
60
|
-
w as eds_logo
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DvG3cC-8.js"),r=require("./logo-color-7f1fd803-DRD3vZVn.js"),o=require("./logo-white-no-bg-f382f86f-DXYn3NwV.js"),c=require("./analytics-44b1416b-ol77SdQE.js"),s=".w-\\[130px\\]{width:130px}.mr-auto{margin-right:auto}.text-current{color:currentColor}.text-default{color:var(--black)}.text-inverse{color:var(--white)}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}@media (min-width: 900px){.lg\\:w-\\[150px\\]{width:150px}}",a=s,n=class{constructor(e){t.registerInstance(this,e),this.href="/",this.orientation="horizontal",this.type=void 0,this.label="Home"}handleClick(){c.sendAnalytics({category:"ui-component",tag:this.el.tagName.toLowerCase(),name:"logo",action:"click"})}getLogo(){const i={horizontal:{color:r.hLogoColor,black:o.hLogoBlack,"color-white":o.hLogoColorWhite,white:o.hLogoWhite,"no-bg":o.hLogoWhiteNoBg},vertical:{color:o.vLogoColor,black:o.vLogoBlack,"color-white":o.vLogoColorWhite,white:o.vLogoWhite,"no-bg":o.vLogoWhiteNoBg}}[this.orientation];if(!i)return r.hLogoColor;const l=i[this.type];return l||i.color}render(){const e=this.getLogo();return t.h("a",{key:"ee8de4071b0137020341982b4c5cb2c938f1c4df",href:this.href,onClick:()=>this.handleClick(),class:"eds-logo-wrapper","aria-label":this.label},t.h("div",{key:"1eb620afbcc5a2a5c6914cc1c91a45ca62d0068c",innerHTML:e}))}get el(){return t.getElement(this)}};n.style=a;exports.eds_logo=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),n=class{constructor(t){e.registerInstance(this,t),this.prevLabel=void 0,this.nextLabel=void 0,this.prevUrl=void 0,this.nextUrl=void 0,this.linkSize="small",this.linkIntent="tertiary"}componentDidLoad(){this.el.querySelectorAll("eds-link").forEach(i=>{this.emitContext(i)})}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}render(){return e.h("ul",{key:"712287e683436cc98c2d6ef195501add1929522e",class:"flex lg:flex grow items-center justify-center gap-x-8"},this.prevLabel&&e.h("eds-link",{key:"4fda36ce37897284d7062f88133f147831d96a6f",label:this.prevLabel,url:this.prevUrl||void 0,disabled:!this.prevUrl,"aria-label":this.prevLabel,size:this.linkSize,intent:this.linkIntent,class:"mr-auto !p-8 lg:!pr-12"},e.h("eds-icon-wrapper",{key:"9bfa6bbbdc68641f65bec49f207d96f075b9a5b0",icon:"chevron-left"}),this.prevLabel),this.nextLabel&&e.h("eds-link",{key:"6ee8ebee011a2c30a74645b072c7c37929d0a55f",label:this.nextLabel,url:this.nextUrl||void 0,disabled:!this.nextUrl,"aria-label":this.nextLabel,size:this.linkSize,intent:this.linkIntent,class:"ml-auto !p-8 lg:!pl-12"},this.nextLabel,e.h("eds-icon-wrapper",{key:"44ebd4dcce0e367df7d9035bb445e49fde35e913",icon:"chevron-right",class:"w-20 h-20"})))}get el(){return e.getElement(this)}};exports.eds_navigator=n;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { r as n, h as e, g as l } from "./index-Df31uHzU.mjs";
|
|
2
|
-
const a = class {
|
|
3
|
-
constructor(t) {
|
|
4
|
-
n(this, t), this.prevLabel = void 0, this.nextLabel = void 0, this.prevUrl = void 0, this.nextUrl = void 0, this.linkSize = "small", this.linkIntent = "tertiary";
|
|
5
|
-
}
|
|
6
|
-
componentDidLoad() {
|
|
7
|
-
this.el.querySelectorAll("eds-link").forEach((i) => {
|
|
8
|
-
this.emitContext(i);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Emits a custom event 'parentContext' for a given link element with the component's context.
|
|
13
|
-
* @param linkElement - The eds-link element to emit the event for.
|
|
14
|
-
*/
|
|
15
|
-
emitContext(t) {
|
|
16
|
-
const i = new CustomEvent("parentContext", {
|
|
17
|
-
detail: {
|
|
18
|
-
componentName: this.el.tagName.toLowerCase(),
|
|
19
|
-
identifier: null
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
t.dispatchEvent(i);
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return e("ul", { key: "712287e683436cc98c2d6ef195501add1929522e", class: "flex lg:flex grow items-center justify-center gap-x-8" }, this.prevLabel && e("eds-link", { key: "4fda36ce37897284d7062f88133f147831d96a6f", label: this.prevLabel, url: this.prevUrl || void 0, disabled: !this.prevUrl, "aria-label": this.prevLabel, size: this.linkSize, intent: this.linkIntent, class: "mr-auto !p-8 lg:!pr-12" }, e("eds-icon-wrapper", { key: "9bfa6bbbdc68641f65bec49f207d96f075b9a5b0", icon: "chevron-left" }), this.prevLabel), this.nextLabel && e("eds-link", { key: "6ee8ebee011a2c30a74645b072c7c37929d0a55f", label: this.nextLabel, url: this.nextUrl || void 0, disabled: !this.nextUrl, "aria-label": this.nextLabel, size: this.linkSize, intent: this.linkIntent, class: "ml-auto !p-8 lg:!pl-12" }, this.nextLabel, e("eds-icon-wrapper", { key: "44ebd4dcce0e367df7d9035bb445e49fde35e913", icon: "chevron-right", class: "w-20 h-20" })));
|
|
26
|
-
}
|
|
27
|
-
get el() {
|
|
28
|
-
return l(this);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
a as eds_navigator
|
|
33
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-DvG3cC-8.js"),d=require("./analytics-44b1416b-ol77SdQE.js"),c="ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.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}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}",f=c,h=class{constructor(t){i.registerInstance(this,t),this.currentPage=void 0,this.lastPage=void 0,this.perPage=10,this.total=0,this.url="",this.mode="default",this.prevLabel="Prev",this.nextLabel="Next",this.prevUrl="",this.nextUrl="",this.links=[]}componentWillLoad(){this.mode==="default"&&this.generateLinks()}componentDidLoad(){this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach(e=>{this.emitContext(e)})}emitContext(t){const e=new CustomEvent("parentContext",{detail:{componentName:this.hostEl.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(e)}onPageOrLastPageChange(){this.mode==="default"&&this.generateLinks()}isFirstPage(){return this.currentPage===1}isLastPage(){return this.currentPage===this.lastPage}generateLink(t){const e=this.url.includes("?");return{ariaLabel:`Page ${t}`,url:`${this.url}${e?"&":"?"}page=${t}`,label:t.toString(),current:this.currentPage===t,disabled:!1}}generateLinks(){this.lastPage&&this.lastPage>5?this.links=this.getPaginationGenerator(this.currentPage||1,this.lastPage).map(t=>typeof t=="number"?this.generateLink(t):t):this.lastPage&&(this.links=Array.from({length:this.lastPage}).map((t,e)=>this.generateLink(e+1)))}getPaginationGenerator(t,e){const a=[];if(e<=5)for(let n=1;n<=e;n++)a.push(n);else{a.push(1),t-1>2&&a.push("...");for(let n=Math.max(2,t-1);n<=Math.min(e-1,t+1);n++)a.push(n);t+1<e-1&&a.push("..."),a.push(e)}return a}pageResults(){return this.total>0?this.total>this.perPage?`${this.perPage*((this.currentPage||1)-1)+1} - ${this.perPage*(this.currentPage||1)>=this.total?this.total:this.perPage*(this.currentPage||1)} of ${this.total}`:`${this.total}`:""}handlePageClick(t,e){if(this.mode!=="navigator"&&(t.preventDefault(),e!==this.currentPage)){this.links=this.links.map(a=>typeof a=="object"?Object.assign(Object.assign({},a),{current:parseInt(a.label)===e}):a);const s=new CustomEvent("pageChange",{detail:e,bubbles:!0,composed:!0});this.hostEl.dispatchEvent(s),this.currentPage=e}}render(){return i.h("div",{key:"8c8418eec263acc153a928b752775458f897504f"},this.total>0&&this.mode==="default"&&i.h("p",{key:"02a5a69772a4812f10b29e8df117b72df210614d",class:"f-ui-03 text-lightest mb-28 w-full text-center"},i.h("span",{key:"ef9804843100c722643c24e31a05f86f2d55efa0",class:"sr-only"},"Results:"),this.pageResults()),this.mode==="navigator"||this.lastPage&&this.lastPage>1?i.h("nav",{"aria-label":"Pagination"},i.h("ul",{class:"flex items-center justify-center gap-x-8"},i.h("li",{class:"mr-auto"},i.h("eds-link",{label:this.prevLabel,url:this.mode==="navigator"?this.prevUrl||"#":this.isFirstPage()?"#":this.generateLink(this.currentPage-1).url,disabled:this.mode==="navigator"?!this.prevUrl:this.isFirstPage(),"aria-label":"Previous page",icon:"chevron-left","icon-pos":"left",size:"small","icon-small":"true",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pr-12",onClick:t=>{this.mode==="default"&&(this.isFirstPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)-1))}})),this.mode==="default"&&this.links.map((t,e)=>i.h("li",{key:e,class:"f-ui-02 flex h-36 items-center justify-center"},typeof t=="string"?i.h("span",{class:"flex items-center justify-center"},t):i.h("eds-link",{url:t.url,"aria-label":t.ariaLabel,label:t.label,current:t.current,size:"small",class:"!p-8",intent:t.current?"secondary":"ghost",onClick:s=>this.handlePageClick(s,parseInt(t.label))}))),i.h("li",{class:"ml-auto"},i.h("eds-link",{label:this.nextLabel,url:this.mode==="navigator"?this.nextUrl||"#":this.isLastPage()?"#":this.generateLink(this.currentPage+1).url,disabled:this.mode==="navigator"?!this.nextUrl:this.isLastPage(),"aria-label":"Next page",size:"small","icon-small":"true",icon:"chevron-right",intent:"strong","hide-label-on-small-screen":!0,class:"!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors",onClick:t=>{this.mode==="default"&&(this.isLastPage()?t.preventDefault():this.handlePageClick(t,(this.currentPage||1)+1))}})))):null)}get hostEl(){return i.getElement(this)}static get watchers(){return{currentPage:["onPageOrLastPageChange"],lastPage:["onPageOrLastPageChange"]}}};h.style=f;const u="table{text-indent:0;border-color:inherit;border-collapse:collapse;}.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}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.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)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}",p=u,g=class{constructor(t){i.registerInstance(this,t),this.data=null,this.endpoint=null,this.config={},this.rowsPerPage=10,this.paginationEnabled=!0,this.searchEnabled=!1,this.hostWidth=void 0,this.columnSize="default",this.tableData=[],this.columns=[],this.currentPage=1,this.parsedConfig={},this.totalRows=0,this.searchQuery=""}handleDataChange(){this.parseData()}handleConfigChange(){this.parseConfig()}componentWillLoad(){this.parseConfig(),this.data?this.parseData():this.endpoint&&this.fetchData()}componentDidLoad(){this.setupPaginationListener()}componentDidUpdate(){this.setupPaginationListener()}parseData(){try{this.tableData=typeof this.data=="string"?JSON.parse(this.data):this.data||[],this.totalRows=this.tableData.length,this.updateColumns(),this.currentPage=1}catch(t){console.error("Failed to parse data:",t),this.tableData=[]}}parseConfig(){try{this.parsedConfig=typeof this.config=="string"?JSON.parse(this.config):this.config}catch(t){console.error("Failed to parse config:",t),this.parsedConfig={}}}async fetchData(){try{const e=await(await fetch(this.endpoint)).json();this.data=e}catch(t){console.error("Failed to fetch data:",t)}}setupPaginationListener(){if(!this.shouldEnablePagination())return;const t=this.hostEl.shadowRoot.querySelector("eds-pagination");t&&!t.hasAttribute("listener-attached")&&(t.addEventListener("pageChange",e=>this.handlePageChange(e.detail)),t.setAttribute("listener-attached","true"))}getFilteredRows(){return this.tableData.filter(t=>Object.values(t).some(e=>e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())))}getPaginatedRows(){const t=this.getFilteredRows();this.totalRows=t.length;const e=(this.currentPage-1)*this.rowsPerPage;return t.slice(e,e+this.rowsPerPage)}handlePageChange(t){this.currentPage=t,d.sendAnalytics({category:"ui-component",parentContext:null,tag:`${this.hostEl.tagName.toLowerCase()}/eds-pagination`,name:`${t}`||"",action:"page"})}handleSearch(t){this.searchQuery=t.target.value,this.currentPage=1}renderCell(t,e){var s;const a=(s=this.parsedConfig[e])===null||s===void 0?void 0:s.format;return a==="uppercase"?t==null?void 0:t.toString().toUpperCase():a==="svg"?i.h("div",{innerHTML:t}):a==="bold"?i.h("strong",null,t):a==="code"?i.h("code",null,t):t}shouldEnablePagination(){return this.paginationEnabled&&this.totalRows>this.rowsPerPage}updateColumns(){this.columns=this.tableData.length>0?Object.keys(this.tableData[0]):[]}getVisibleColumnsCount(){return this.columns.filter(t=>{var e;return!(!((e=this.parsedConfig[t])===null||e===void 0)&&e.hidden)}).length}divisionFactor(){let t=1;return this.columnSize==="medium"?t=2:this.columnSize==="large"&&(t=4),t}render(){const t=this.getPaginatedRows(),e=Math.ceil(this.totalRows/this.rowsPerPage),s=this.getVisibleColumnsCount(),a=this.hostWidth&&this.hostWidth.trim()!==""?Number(this.hostWidth):this.hostEl.parentElement instanceof HTMLElement?this.hostEl.parentElement.getBoundingClientRect().width:this.hostEl.getRootNode().host instanceof HTMLElement?this.hostEl.getRootNode().host.getBoundingClientRect().width:400,n=s>0?Math.floor(a/s*this.divisionFactor()):100;return i.h("div",{key:"66ca59804bc8054655ed0d942104516fe4cd259b"},this.searchEnabled&&i.h("div",{key:"df7267fc443da042e4b6ff81ded5800a2213bd73"},i.h("eds-input-field",{key:1,name:"search","aria-label":"Search",type:"text",placeholder:"Search...",onInput:o=>this.handleSearch(o)})),i.h("div",{key:"80ac1fcb3802f9f5d5eabe016fb7345b88908b36",class:"mt-20"},i.h("table",{key:"09acf39378b1a4c8bfe40b496ec6bf71a2d761ca",class:"block overflow-x-auto mt-6 p-0"},i.h("thead",{key:"8b844806cfef10d1a59da54a385ee8ed6c167050"},i.h("tr",{key:"1b3cff91bdaf225e9f3b337e245cd80ad4772b6a",class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(o=>{var r;return!(!((r=this.parsedConfig[o])===null||r===void 0)&&r.hidden)&&i.h("th",{class:"m-0 py-8 border border-softer f-ui-02 break-words",style:{minWidth:`${n-5}px`}},o)}))),i.h("tbody",{key:"93dfd3abd196779c288f85bb6a357ad3e9c01418"},t.map(o=>i.h("tr",{class:"m-0 p-0 border border-softer even:bg-inverse-softer"},this.columns.map(r=>{var l;return!(!((l=this.parsedConfig[r])===null||l===void 0)&&l.hidden)&&i.h("td",{class:"text-center border border-softer m-0 py-8 f-ui-2 break-words",style:{minWidth:`${n-5}px`}},this.renderCell(o[r],r))})))))),this.shouldEnablePagination()&&i.h("div",{key:"516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58",class:"mt-20"},i.h("eds-pagination",{key:"abe3a593827d99437a06e204ea9d8ef92f80aba7",currentPage:this.currentPage,lastPage:e,perPage:this.rowsPerPage,total:this.totalRows,mode:"default"})))}get hostEl(){return i.getElement(this)}static get watchers(){return{data:["handleDataChange","parseData"],config:["handleConfigChange"]}}};g.style=p;exports.eds_pagination=h;exports.eds_table=g;
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { r as h, h as i, g } from "./index-Df31uHzU.mjs";
|
|
2
|
-
import { s as d } from "./analytics-44b1416b-3vYuu4Xs.mjs";
|
|
3
|
-
const c = "ul,menu{list-style:none;margin:0;padding:0}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.f-ui-03-light{font-family:var(--f-ui-03-light-fontFamily);font-weight:var(--f-ui-03-light-fontWeight);font-size:var(--f-ui-03-light-fontSize);line-height:var(--f-ui-03-light-lineHeight);letter-spacing:var(--f-ui-03-light-letterSpacing)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.text-lightest{color:var(--grey-500)}.mb-28{margin-bottom:1.75rem}.w-full{width:100%}.w-20{width:1.25rem}.h-20{height:1.25rem}.h-28{height:1.75rem}.h-32{height:2rem}.h-36{height:2.25rem}.text-center{text-align:center}.flex{display:flex}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-x-8{-moz-column-gap:0.5rem;column-gap:0.5rem}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.\\!p-8{padding:0.5rem !important}.ml-4{margin-left:0.25rem}.mr-4{margin-right:0.25rem}.hidden{display:none}.gap-1{gap:0.0625rem}.py-4{padding-top:0.25rem;padding-bottom:0.25rem}.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}@media (min-width: 900px){.lg\\:\\!pr-12{padding-right:0.75rem !important}.lg\\:flex{display:flex}}", f = c, u = class {
|
|
4
|
-
constructor(t) {
|
|
5
|
-
h(this, t), this.currentPage = void 0, this.lastPage = void 0, this.perPage = 10, this.total = 0, this.url = "", this.mode = "default", this.prevLabel = "Prev", this.nextLabel = "Next", this.prevUrl = "", this.nextUrl = "", this.links = [];
|
|
6
|
-
}
|
|
7
|
-
/** Lifecycle hook to generate pagination links on component load */
|
|
8
|
-
componentWillLoad() {
|
|
9
|
-
this.mode === "default" && this.generateLinks();
|
|
10
|
-
}
|
|
11
|
-
componentDidLoad() {
|
|
12
|
-
this.hostEl.shadowRoot.querySelectorAll("eds-link").forEach((e) => {
|
|
13
|
-
this.emitContext(e);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Emits a custom event called `parentContext` for a given link element.
|
|
18
|
-
* This event provides context information about the breadcrumb component.
|
|
19
|
-
*
|
|
20
|
-
* @param linkElement - The link element to which the event will be dispatched.
|
|
21
|
-
*/
|
|
22
|
-
emitContext(t) {
|
|
23
|
-
const e = new CustomEvent("parentContext", {
|
|
24
|
-
detail: {
|
|
25
|
-
componentName: this.hostEl.tagName.toLowerCase(),
|
|
26
|
-
identifier: null
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
t.dispatchEvent(e);
|
|
30
|
-
}
|
|
31
|
-
onPageOrLastPageChange() {
|
|
32
|
-
this.mode === "default" && this.generateLinks();
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Checks if the current page is the first page
|
|
36
|
-
* @returns {boolean} - true if current page is the first page
|
|
37
|
-
*/
|
|
38
|
-
isFirstPage() {
|
|
39
|
-
return this.currentPage === 1;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Checks if the current page is the last page
|
|
43
|
-
* @returns {boolean} - true if current page is the last page
|
|
44
|
-
*/
|
|
45
|
-
isLastPage() {
|
|
46
|
-
return this.currentPage === this.lastPage;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Generates a pagination link object
|
|
50
|
-
* @param {number} page - Page number for the link
|
|
51
|
-
* @returns {Link} - Link object with page details
|
|
52
|
-
*/
|
|
53
|
-
generateLink(t) {
|
|
54
|
-
const e = this.url.includes("?");
|
|
55
|
-
return {
|
|
56
|
-
ariaLabel: `Page ${t}`,
|
|
57
|
-
url: `${this.url}${e ? "&" : "?"}page=${t}`,
|
|
58
|
-
label: t.toString(),
|
|
59
|
-
current: this.currentPage === t,
|
|
60
|
-
disabled: !1
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
/** Generates pagination links based on the last page and current page */
|
|
64
|
-
generateLinks() {
|
|
65
|
-
this.lastPage && this.lastPage > 5 ? this.links = this.getPaginationGenerator(this.currentPage || 1, this.lastPage).map((t) => typeof t == "number" ? this.generateLink(t) : t) : this.lastPage && (this.links = Array.from({ length: this.lastPage }).map((t, e) => this.generateLink(e + 1)));
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Creates a pagination range based on delta, current, and total pages
|
|
69
|
-
* @param {number} current - Current page number
|
|
70
|
-
* @param {number} total - Total number of pages
|
|
71
|
-
* @param {number} delta - Range of pages to display around the current page
|
|
72
|
-
* @returns {(number | string)[]} - Range of page numbers or ellipses
|
|
73
|
-
*/
|
|
74
|
-
getPaginationGenerator(t, e) {
|
|
75
|
-
const a = [];
|
|
76
|
-
if (e <= 5)
|
|
77
|
-
for (let n = 1; n <= e; n++)
|
|
78
|
-
a.push(n);
|
|
79
|
-
else {
|
|
80
|
-
a.push(1), t - 1 > 2 && a.push("...");
|
|
81
|
-
for (let n = Math.max(2, t - 1); n <= Math.min(e - 1, t + 1); n++)
|
|
82
|
-
a.push(n);
|
|
83
|
-
t + 1 < e - 1 && a.push("..."), a.push(e);
|
|
84
|
-
}
|
|
85
|
-
return a;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Formats the current page results information for display
|
|
89
|
-
* @returns {string} - Formatted page result information
|
|
90
|
-
*/
|
|
91
|
-
pageResults() {
|
|
92
|
-
return this.total > 0 ? this.total > this.perPage ? `${this.perPage * ((this.currentPage || 1) - 1) + 1} - ${this.perPage * (this.currentPage || 1) >= this.total ? this.total : this.perPage * (this.currentPage || 1)} of ${this.total}` : `${this.total}` : "";
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Handles a page click event, updating the current page and dispatching an event
|
|
96
|
-
* @param {MouseEvent} event - Click event
|
|
97
|
-
* @param {number} newPage - New page number
|
|
98
|
-
*/
|
|
99
|
-
handlePageClick(t, e) {
|
|
100
|
-
if (this.mode !== "navigator" && (t.preventDefault(), e !== this.currentPage)) {
|
|
101
|
-
this.links = this.links.map((a) => typeof a == "object" ? Object.assign(Object.assign({}, a), { current: parseInt(a.label) === e }) : a);
|
|
102
|
-
const s = new CustomEvent("pageChange", {
|
|
103
|
-
detail: e,
|
|
104
|
-
bubbles: !0,
|
|
105
|
-
composed: !0
|
|
106
|
-
});
|
|
107
|
-
this.hostEl.dispatchEvent(s), this.currentPage = e;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
render() {
|
|
111
|
-
return i("div", { key: "8c8418eec263acc153a928b752775458f897504f" }, this.total > 0 && this.mode === "default" && i("p", { key: "02a5a69772a4812f10b29e8df117b72df210614d", class: "f-ui-03 text-lightest mb-28 w-full text-center" }, i("span", { key: "ef9804843100c722643c24e31a05f86f2d55efa0", class: "sr-only" }, "Results:"), this.pageResults()), this.mode === "navigator" || this.lastPage && this.lastPage > 1 ? i("nav", { "aria-label": "Pagination" }, i("ul", { class: "flex items-center justify-center gap-x-8" }, i("li", { class: "mr-auto" }, i("eds-link", { label: this.prevLabel, url: this.mode === "navigator" ? this.prevUrl || "#" : this.isFirstPage() ? "#" : this.generateLink(this.currentPage - 1).url, disabled: this.mode === "navigator" ? !this.prevUrl : this.isFirstPage(), "aria-label": "Previous page", icon: "chevron-left", "icon-pos": "left", size: "small", "icon-small": "true", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pr-12", onClick: (t) => {
|
|
112
|
-
this.mode === "default" && (this.isFirstPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) - 1));
|
|
113
|
-
} })), this.mode === "default" && this.links.map((t, e) => i("li", { key: e, class: "f-ui-02 flex h-36 items-center justify-center" }, typeof t == "string" ? i("span", { class: "flex items-center justify-center" }, t) : i("eds-link", { url: t.url, "aria-label": t.ariaLabel, label: t.label, current: t.current, size: "small", class: "!p-8", intent: t.current ? "secondary" : "ghost", onClick: (s) => this.handlePageClick(s, parseInt(t.label)) }))), i("li", { class: "ml-auto" }, i("eds-link", { label: this.nextLabel, url: this.mode === "navigator" ? this.nextUrl || "#" : this.isLastPage() ? "#" : this.generateLink(this.currentPage + 1).url, disabled: this.mode === "navigator" ? !this.nextUrl : this.isLastPage(), "aria-label": "Next page", size: "small", "icon-small": "true", icon: "chevron-right", intent: "strong", "hide-label-on-small-screen": !0, class: "!p-8 lg:!pl-12 flex items-center gap-1 py-4 transition-colors", onClick: (t) => {
|
|
114
|
-
this.mode === "default" && (this.isLastPage() ? t.preventDefault() : this.handlePageClick(t, (this.currentPage || 1) + 1));
|
|
115
|
-
} })))) : null);
|
|
116
|
-
}
|
|
117
|
-
get hostEl() {
|
|
118
|
-
return g(this);
|
|
119
|
-
}
|
|
120
|
-
static get watchers() {
|
|
121
|
-
return {
|
|
122
|
-
currentPage: ["onPageOrLastPageChange"],
|
|
123
|
-
lastPage: ["onPageOrLastPageChange"]
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
u.style = f;
|
|
128
|
-
const p = "table{text-indent:0;border-color:inherit;border-collapse:collapse;}.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}.pt-32{padding-top:2rem}.pt-40{padding-top:2.5rem}.pt-48{padding-top:3rem}.pb-28{padding-bottom:1.75rem}.pb-60{padding-bottom:3.75rem}.mt-20{margin-top:1.25rem}.mt-28{margin-top:1.75rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.overflow-x-auto{overflow-x:auto}.mt-6{margin-top:0.375rem}.p-0{padding:0rem}.m-0{margin:0rem}.border{border-width:1px}.border-softer{border:1px solid rgba(0, 0, 0, .1)}.even\\:bg-inverse-softer:nth-child(even){background-color:rgba(255, 255, 255, .15)}.px-20{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.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)}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.text-center{text-align:center}.break-words{overflow-wrap:anywhere}", m = p, b = class {
|
|
129
|
-
constructor(t) {
|
|
130
|
-
h(this, t), this.data = null, this.endpoint = null, this.config = {}, this.rowsPerPage = 10, this.paginationEnabled = !0, this.searchEnabled = !1, this.hostWidth = void 0, this.columnSize = "default", this.tableData = [], this.columns = [], this.currentPage = 1, this.parsedConfig = {}, this.totalRows = 0, this.searchQuery = "";
|
|
131
|
-
}
|
|
132
|
-
handleDataChange() {
|
|
133
|
-
this.parseData();
|
|
134
|
-
}
|
|
135
|
-
handleConfigChange() {
|
|
136
|
-
this.parseConfig();
|
|
137
|
-
}
|
|
138
|
-
componentWillLoad() {
|
|
139
|
-
this.parseConfig(), this.data ? this.parseData() : this.endpoint && this.fetchData();
|
|
140
|
-
}
|
|
141
|
-
componentDidLoad() {
|
|
142
|
-
this.setupPaginationListener();
|
|
143
|
-
}
|
|
144
|
-
componentDidUpdate() {
|
|
145
|
-
this.setupPaginationListener();
|
|
146
|
-
}
|
|
147
|
-
parseData() {
|
|
148
|
-
try {
|
|
149
|
-
this.tableData = typeof this.data == "string" ? JSON.parse(this.data) : this.data || [], this.totalRows = this.tableData.length, this.updateColumns(), this.currentPage = 1;
|
|
150
|
-
} catch (t) {
|
|
151
|
-
console.error("Failed to parse data:", t), this.tableData = [];
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
parseConfig() {
|
|
155
|
-
try {
|
|
156
|
-
this.parsedConfig = typeof this.config == "string" ? JSON.parse(this.config) : this.config;
|
|
157
|
-
} catch (t) {
|
|
158
|
-
console.error("Failed to parse config:", t), this.parsedConfig = {};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
async fetchData() {
|
|
162
|
-
try {
|
|
163
|
-
const e = await (await fetch(this.endpoint)).json();
|
|
164
|
-
this.data = e;
|
|
165
|
-
} catch (t) {
|
|
166
|
-
console.error("Failed to fetch data:", t);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
setupPaginationListener() {
|
|
170
|
-
if (!this.shouldEnablePagination())
|
|
171
|
-
return;
|
|
172
|
-
const t = this.hostEl.shadowRoot.querySelector("eds-pagination");
|
|
173
|
-
t && !t.hasAttribute("listener-attached") && (t.addEventListener("pageChange", (e) => this.handlePageChange(e.detail)), t.setAttribute("listener-attached", "true"));
|
|
174
|
-
}
|
|
175
|
-
getFilteredRows() {
|
|
176
|
-
return this.tableData.filter((t) => Object.values(t).some((e) => e.toString().toLowerCase().includes(this.searchQuery.toLowerCase())));
|
|
177
|
-
}
|
|
178
|
-
getPaginatedRows() {
|
|
179
|
-
const t = this.getFilteredRows();
|
|
180
|
-
this.totalRows = t.length;
|
|
181
|
-
const e = (this.currentPage - 1) * this.rowsPerPage;
|
|
182
|
-
return t.slice(e, e + this.rowsPerPage);
|
|
183
|
-
}
|
|
184
|
-
handlePageChange(t) {
|
|
185
|
-
this.currentPage = t, d({
|
|
186
|
-
category: "ui-component",
|
|
187
|
-
parentContext: null,
|
|
188
|
-
tag: `${this.hostEl.tagName.toLowerCase()}/eds-pagination`,
|
|
189
|
-
name: `${t}` || "",
|
|
190
|
-
action: "page"
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
handleSearch(t) {
|
|
194
|
-
this.searchQuery = t.target.value, this.currentPage = 1;
|
|
195
|
-
}
|
|
196
|
-
renderCell(t, e) {
|
|
197
|
-
var s;
|
|
198
|
-
const a = (s = this.parsedConfig[e]) === null || s === void 0 ? void 0 : s.format;
|
|
199
|
-
return a === "uppercase" ? t == null ? void 0 : t.toString().toUpperCase() : a === "svg" ? i("div", { innerHTML: t }) : a === "bold" ? i("strong", null, t) : a === "code" ? i("code", null, t) : t;
|
|
200
|
-
}
|
|
201
|
-
shouldEnablePagination() {
|
|
202
|
-
return this.paginationEnabled && this.totalRows > this.rowsPerPage;
|
|
203
|
-
}
|
|
204
|
-
updateColumns() {
|
|
205
|
-
this.columns = this.tableData.length > 0 ? Object.keys(this.tableData[0]) : [];
|
|
206
|
-
}
|
|
207
|
-
getVisibleColumnsCount() {
|
|
208
|
-
return this.columns.filter((t) => {
|
|
209
|
-
var e;
|
|
210
|
-
return !(!((e = this.parsedConfig[t]) === null || e === void 0) && e.hidden);
|
|
211
|
-
}).length;
|
|
212
|
-
}
|
|
213
|
-
divisionFactor() {
|
|
214
|
-
let t = 1;
|
|
215
|
-
return this.columnSize === "medium" ? t = 2 : this.columnSize === "large" && (t = 4), t;
|
|
216
|
-
}
|
|
217
|
-
render() {
|
|
218
|
-
const t = this.getPaginatedRows(), e = Math.ceil(this.totalRows / this.rowsPerPage), s = this.getVisibleColumnsCount(), a = this.hostWidth && this.hostWidth.trim() !== "" ? Number(this.hostWidth) : this.hostEl.parentElement instanceof HTMLElement ? this.hostEl.parentElement.getBoundingClientRect().width : this.hostEl.getRootNode().host instanceof HTMLElement ? this.hostEl.getRootNode().host.getBoundingClientRect().width : 400, n = s > 0 ? Math.floor(a / s * this.divisionFactor()) : 100;
|
|
219
|
-
return i("div", { key: "66ca59804bc8054655ed0d942104516fe4cd259b" }, this.searchEnabled && i("div", { key: "df7267fc443da042e4b6ff81ded5800a2213bd73" }, i("eds-input-field", {
|
|
220
|
-
key: 1,
|
|
221
|
-
name: "search",
|
|
222
|
-
"aria-label": "Search",
|
|
223
|
-
type: "text",
|
|
224
|
-
placeholder: "Search...",
|
|
225
|
-
// @ts-ignore
|
|
226
|
-
onInput: (o) => this.handleSearch(o)
|
|
227
|
-
})), i("div", { key: "80ac1fcb3802f9f5d5eabe016fb7345b88908b36", class: "mt-20" }, i("table", { key: "09acf39378b1a4c8bfe40b496ec6bf71a2d761ca", class: "block overflow-x-auto mt-6 p-0" }, i("thead", { key: "8b844806cfef10d1a59da54a385ee8ed6c167050" }, i("tr", { key: "1b3cff91bdaf225e9f3b337e245cd80ad4772b6a", class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((o) => {
|
|
228
|
-
var r;
|
|
229
|
-
return !(!((r = this.parsedConfig[o]) === null || r === void 0) && r.hidden) && i("th", { class: "m-0 py-8 border border-softer f-ui-02 break-words", style: { minWidth: `${n - 5}px` } }, o);
|
|
230
|
-
}))), i("tbody", { key: "93dfd3abd196779c288f85bb6a357ad3e9c01418" }, t.map((o) => i("tr", { class: "m-0 p-0 border border-softer even:bg-inverse-softer" }, this.columns.map((r) => {
|
|
231
|
-
var l;
|
|
232
|
-
return !(!((l = this.parsedConfig[r]) === null || l === void 0) && l.hidden) && i("td", { class: "text-center border border-softer m-0 py-8 f-ui-2 break-words", style: { minWidth: `${n - 5}px` } }, this.renderCell(o[r], r));
|
|
233
|
-
})))))), this.shouldEnablePagination() && i("div", { key: "516b65d78a9ea91060c1dfcb3306bbd3ac2c6f58", class: "mt-20" }, i("eds-pagination", { key: "abe3a593827d99437a06e204ea9d8ef92f80aba7", currentPage: this.currentPage, lastPage: e, perPage: this.rowsPerPage, total: this.totalRows, mode: "default" })));
|
|
234
|
-
}
|
|
235
|
-
get hostEl() {
|
|
236
|
-
return g(this);
|
|
237
|
-
}
|
|
238
|
-
static get watchers() {
|
|
239
|
-
return {
|
|
240
|
-
data: ["handleDataChange", "parseData"],
|
|
241
|
-
config: ["handleConfigChange"]
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
b.style = m;
|
|
246
|
-
export {
|
|
247
|
-
u as eds_pagination,
|
|
248
|
-
b as eds_table
|
|
249
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),l=":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.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)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}",g=l,r=class{constructor(t){e.registerInstance(this,t),this.ratingChange=e.createEvent(this,"ratingChange",7),this.stars=5,this.label="Rate your experience",this.textMapping=["Very Poor","Poor","Average","Good","Excellent"],this.selectedRating=0}get parsedMappings(){if(typeof this.textMapping=="object")return this.textMapping;if(typeof this.textMapping=="string")try{return JSON.parse(this.textMapping)}catch{return[]}return[]}handleClick(t){this.selectedRating=t,this.ratingChange.emit(t)}render(){return e.h("div",{key:"b613863ad54ae9b381a5741bce4b188eff806ef0",class:"relative w-full flex flex-col"},e.h("span",{key:"f35cef9c3691aab73995e2ca6e2554cc19bae837",class:"f-heading-05"},this.label),e.h("div",{key:"37082eb4bbadf5c211c197f3f81501d0b0e61404",role:"radiogroup","aria-label":this.label,class:"stars flex space-x-2"},Array.from({length:this.stars},(t,n)=>{const i=n+1,a=i<=this.selectedRating,f=this.parsedMappings[i-1]||`Rating ${i}`;return e.h("eds-button",{label:"★",role:"radio","aria-checked":a?"true":"false","aria-label":f,onClick:()=>this.handleClick(i),tabIndex:this.selectedRating===0&&n===0||a?0:-1,intent:a?"primary":"ghost",size:"small","extra-class":"p-2"})})),this.selectedRating>0&&this.parsedMappings[this.selectedRating-1]&&e.h("span",{key:"61b4b92e476cfa0dd9bf405cb080dedd995ff9c6",class:"f-ui-04 text-lighter mt-4"},this.parsedMappings[this.selectedRating-1]))}};r.style=g;exports.eds_rating=r;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { r as f, c as l, h as t } from "./index-Df31uHzU.mjs";
|
|
2
|
-
const g = ":host{display:inline-block;font-size:2rem}.stars{display:flex;gap:0.25rem;cursor:pointer}.star{color:var(--star-empty-color, #ccc);transition:color 0.2s ease-in-out}.star.filled{color:var(--green-500);}.star:hover,.star.filled:hover{transform:scale(1.2)}.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)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.flex{display:flex}.inline-flex{display:inline-flex}.flex-col{flex-direction:column}.mt-4{margin-top:0.25rem}.mt-6{margin-top:0.375rem}.mt-8{margin-top:0.5rem}", s = g, o = class {
|
|
3
|
-
constructor(e) {
|
|
4
|
-
f(this, e), this.ratingChange = l(this, "ratingChange", 7), this.stars = 5, this.label = "Rate your experience", this.textMapping = ["Very Poor", "Poor", "Average", "Good", "Excellent"], this.selectedRating = 0;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Parses the `textMapping` prop into an array of strings.
|
|
8
|
-
*/
|
|
9
|
-
get parsedMappings() {
|
|
10
|
-
if (typeof this.textMapping == "object")
|
|
11
|
-
return this.textMapping;
|
|
12
|
-
if (typeof this.textMapping == "string")
|
|
13
|
-
try {
|
|
14
|
-
return JSON.parse(this.textMapping);
|
|
15
|
-
} catch {
|
|
16
|
-
return [];
|
|
17
|
-
}
|
|
18
|
-
return [];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Handles the click event on a star.
|
|
22
|
-
* @param rating - The selected rating value.
|
|
23
|
-
*/
|
|
24
|
-
handleClick(e) {
|
|
25
|
-
this.selectedRating = e, this.ratingChange.emit(e);
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return t("div", { key: "b613863ad54ae9b381a5741bce4b188eff806ef0", class: "relative w-full flex flex-col" }, t("span", { key: "f35cef9c3691aab73995e2ca6e2554cc19bae837", class: "f-heading-05" }, this.label), t("div", { key: "37082eb4bbadf5c211c197f3f81501d0b0e61404", role: "radiogroup", "aria-label": this.label, class: "stars flex space-x-2" }, Array.from({ length: this.stars }, (e, n) => {
|
|
29
|
-
const i = n + 1, a = i <= this.selectedRating, r = this.parsedMappings[i - 1] || `Rating ${i}`;
|
|
30
|
-
return t("eds-button", {
|
|
31
|
-
label: "★",
|
|
32
|
-
role: "radio",
|
|
33
|
-
"aria-checked": a ? "true" : "false",
|
|
34
|
-
"aria-label": r,
|
|
35
|
-
onClick: () => this.handleClick(i),
|
|
36
|
-
tabIndex: this.selectedRating === 0 && n === 0 || a ? 0 : -1,
|
|
37
|
-
intent: a ? "primary" : "ghost",
|
|
38
|
-
size: "small",
|
|
39
|
-
"extra-class": "p-2"
|
|
40
|
-
// Optional padding or styling for the star button
|
|
41
|
-
});
|
|
42
|
-
})), this.selectedRating > 0 && this.parsedMappings[this.selectedRating - 1] && t("span", { key: "61b4b92e476cfa0dd9bf405cb080dedd995ff9c6", class: "f-ui-04 text-lighter mt-4" }, this.parsedMappings[this.selectedRating - 1]));
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
o.style = s;
|
|
46
|
-
export {
|
|
47
|
-
o as eds_rating
|
|
48
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { r as o, h as t } from "./index-Df31uHzU.mjs";
|
|
2
|
-
const n = "blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{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:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}", l = n, r = class {
|
|
3
|
-
constructor(e) {
|
|
4
|
-
o(this, e), this.socialNetworks = [
|
|
5
|
-
{
|
|
6
|
-
label: "Twitter",
|
|
7
|
-
url: "https://twitter.com/ebrains_eu",
|
|
8
|
-
icon: "twitter"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
label: "Linkedin",
|
|
12
|
-
url: "https://www.linkedin.com/company/ebrains-eu/about/",
|
|
13
|
-
icon: "linkedin"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
label: "Facebook",
|
|
17
|
-
url: "https://www.facebook.com/people/Ebrains_eu/100046659909324/",
|
|
18
|
-
icon: "facebook"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: "Youtube",
|
|
22
|
-
url: "https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",
|
|
23
|
-
icon: "youtube"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: "Mastodon",
|
|
27
|
-
url: "https://mastodon.social/@ebrains",
|
|
28
|
-
icon: "mastodon"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: "Bluesky",
|
|
32
|
-
url: "https://bsky.app/profile/ebrains.bsky.social",
|
|
33
|
-
icon: "bluesky"
|
|
34
|
-
}
|
|
35
|
-
], this.title = "Follow EBRAINS to keep up-to-date";
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Renders the component's HTML structure with links to EBRAINS social profiles.
|
|
39
|
-
* Each social network link uses the `eds-link` component with specific classes and styles.
|
|
40
|
-
*
|
|
41
|
-
* @returns {JSX.Element} The rendered JSX for the component.
|
|
42
|
-
*/
|
|
43
|
-
render() {
|
|
44
|
-
return t("div", { key: "9efc31261e88c70f9c808251124178d807140594" }, t("p", { key: "383101de2aaba05e1024f3ba86d788ad5d92173c", class: "f-ui-02" }, this.title), t("ul", { key: "e27243a4e7b8aab085c4ef091d67df57dba70664", class: "mt-12 flex gap-4" }, this.socialNetworks.map((e, i) => t("li", { key: i }, t("eds-link", { "extra-class": "effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm", external: !0, "aria-label": e.label, url: e.url, icon: e.icon, intent: "strong" })))));
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
r.style = l;
|
|
48
|
-
export {
|
|
49
|
-
r as eds_social_networks
|
|
50
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DvG3cC-8.js"),n="blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}.f-ui-02{font-family:var(--f-ui-02-fontFamily);font-weight:var(--f-ui-02-fontWeight);font-size:var(--f-ui-02-fontSize);line-height:var(--f-ui-02-lineHeight);letter-spacing:var(--f-ui-02-letterSpacing)}.f-ui-02-light{font-family:var(--f-ui-02-light-fontFamily);font-weight:var(--f-ui-02-light-fontWeight);font-size:var(--f-ui-02-light-fontSize);line-height:var(--f-ui-02-light-lineHeight);letter-spacing:var(--f-ui-02-light-letterSpacing)}.f-ui-03{font-family:var(--f-ui-03-fontFamily);font-weight:var(--f-ui-03-fontWeight);font-size:var(--f-ui-03-fontSize);line-height:var(--f-ui-03-lineHeight);letter-spacing:var(--f-ui-03-letterSpacing)}.mt-12{margin-top:0.75rem}.mt-16{margin-top:1rem}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.gap-4{gap:0.25rem}.effect-color{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:300ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1)}.effect-focus{outline-width:3px;outline-offset:2px;outline-color:var(--green-500)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.hover\\:text-default:hover{color:var(--black)}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-sm{border-radius:8px}",l=n,i=class{constructor(t){e.registerInstance(this,t),this.socialNetworks=[{label:"Twitter",url:"https://twitter.com/ebrains_eu",icon:"twitter"},{label:"Linkedin",url:"https://www.linkedin.com/company/ebrains-eu/about/",icon:"linkedin"},{label:"Facebook",url:"https://www.facebook.com/people/Ebrains_eu/100046659909324/",icon:"facebook"},{label:"Youtube",url:"https://www.youtube.com/channel/UC6E796cVVR5Xrs2A5jJmleQ",icon:"youtube"},{label:"Mastodon",url:"https://mastodon.social/@ebrains",icon:"mastodon"},{label:"Bluesky",url:"https://bsky.app/profile/ebrains.bsky.social",icon:"bluesky"}],this.title="Follow EBRAINS to keep up-to-date"}render(){return e.h("div",{key:"9efc31261e88c70f9c808251124178d807140594"},e.h("p",{key:"383101de2aaba05e1024f3ba86d788ad5d92173c",class:"f-ui-02"},this.title),e.h("ul",{key:"e27243a4e7b8aab085c4ef091d67df57dba70664",class:"mt-12 flex gap-4"},this.socialNetworks.map((t,o)=>e.h("li",{key:o},e.h("eds-link",{"extra-class":"effect-color effect-focus text-lighter hover:text-default flex items-center justify-center rounded-sm",external:!0,"aria-label":t.label,url:t.url,icon:t.icon,intent:"strong"})))))}};i.style=l;exports.eds_social_networks=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DvG3cC-8.js"),n=".steps{position:sticky;margin-left:16px;margin-bottom:12px;border-left:1px solid var(--soft-color, #ddd);padding-left:24px;counter-reset:step}.steps h3{counter-increment:step;font-size:var(--f-heading-05-fontSize);font-weight:var(--f-heading-05-fontWeight);line-height:var(--f-heading-05-lineHeight);position:relative}.steps h3::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:1rem;border:1px solid #ccc;background:var(--grey-900);color:#fff;border-radius:50%}.steps h4{counter-increment:step;font-size:var(--f-heading-06-fontSize);font-weight:var(--f-heading-06-fontWeight);line-height:var(--f-heading-06-lineHeight);position:relative}.steps h4::before{content:counter(step);position:absolute;left:-40px;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;font-size:0.875rem;border:1px solid #ccc;background:#333;color:#fff;border-radius:50%}.steps blockquote{margin-top:16px;margin-bottom:16px;font-style:italic;color:#aaa;padding-left:6px}.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-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-error{color:var(--red-700)}.text-extra-light{color:var(--grey-300)}.text-inverse{color:var(--white)}.text-light{color:var(--grey-700)}.text-lighter{color:var(--grey-600)}.text-lightest{color:var(--grey-500)}.my-16{margin-top:1rem;margin-bottom:1rem}.my-20{margin-top:1.25rem;margin-bottom:1.25rem}.mb-28{margin-bottom:1.75rem}",o=n,r=class{constructor(e){t.registerInstance(this,e),this.stepClick=t.createEvent(this,"stepClick",7),this.handleNext=()=>{this.activeStep<this.parsedSteps.length&&(this.activeStep=this.activeStep+1)},this.handleBack=()=>{this.activeStep>0&&(this.activeStep=this.activeStep-1)},this.steps=[],this.type="static",this.activeStep=0}handleStepClick(e){this.stepClick.emit(e),this.type==="linear"&&(this.activeStep=e)}get parsedSteps(){if(typeof this.steps=="string")try{const e=this.steps;return JSON.parse(e)}catch{return[]}return this.steps}render(){const e=this.parsedSteps;return this.type==="linear"?t.h("div",null,t.h("div",{class:"steps"},e.map((s,i)=>t.h("div",{class:"step mb-28",key:i},t.h("h3",{onClick:()=>this.handleStepClick(i)},s.title),this.activeStep===i&&t.h("div",{class:"content"},t.h("div",{class:"f-body-02 text-lighter my-16"},s.content),t.h("eds-button",{label:i===e.length-1?"Finish":"Continue",intent:"primary",class:"next-btn",onClick:this.handleNext}),t.h("eds-button",{label:"Back",intent:"ghostInverse",onClick:this.handleBack,disabled:i===0,"extra-class":i===0?"hidden":"ml-8 block"}))))),this.activeStep===e.length&&t.h("div",{class:"completed"},t.h("eds-alert",{intent:"success",message:"All steps completed - you're finished!"}))):t.h("div",{class:"steps"},e.map((s,i)=>t.h("div",{class:"step mb-28",key:i},t.h("h3",null,s.title),t.h("div",{class:"content"},t.h("div",{class:"f-body-02 text-lighter my-16"},s.content)))))}};r.style=o;exports.eds_steps=r;
|