@ebrains/vue 0.9.2-beta → 1.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/README.md +4 -4
- package/analytics-d99780e3-Bay18Oil.mjs +28 -0
- package/analytics-d99780e3-DgvAss6l.js +1 -0
- package/arrow-diagonal-black-8f0494c3-CYl9yYTl.mjs +4 -0
- package/arrow-diagonal-black-8f0494c3-DqsB6ni-.js +1 -0
- package/arrow-right-9322ba8a-DBcxNU_p.js +3 -0
- package/arrow-right-9322ba8a-DHq-_PPe.mjs +6 -0
- package/bluesky-cc5edd2d-DaFQc-pr.js +12 -0
- package/bluesky-cc5edd2d-DfuDDO5h.mjs +15 -0
- package/bookmark-c200037c-CIcZ51ZQ.js +14 -0
- package/bookmark-c200037c-ClkCtyRY.mjs +17 -0
- package/chevron-down-6144c823-DWGlv9eV.mjs +13 -0
- package/chevron-down-6144c823-D_8976Ke.js +10 -0
- package/chevron-left-ca6c66e1-DANhLw_T.mjs +12 -0
- package/chevron-left-ca6c66e1-uCH5SUhm.js +9 -0
- package/chevron-right-b88ed2d4-C7dkTMvP.js +3 -0
- package/chevron-right-b88ed2d4-CgEZBvy7.mjs +6 -0
- package/chevron-up-c66bd477-ByW7R48t.js +10 -0
- package/chevron-up-c66bd477-CETJkshq.mjs +13 -0
- package/close-87fc0d63-Cbd-ScJr.js +3 -0
- package/close-87fc0d63-DtDU2HIU.mjs +6 -0
- package/color-primary-palette_6.entry-CfNmHzNO.mjs +300 -0
- package/color-primary-palette_6.entry-c48Fqrz0.js +1 -0
- package/components-section.entry-3yJF6nRH.js +162 -0
- package/components-section.entry-oQTYayXm.mjs +360 -0
- package/copy-03b72cb6-B_WCNQrG.mjs +6 -0
- package/copy-03b72cb6-CZAFAegx.js +3 -0
- package/correct-use-of-colors.entry-7fOSokhJ.mjs +59 -0
- package/correct-use-of-colors.entry-DEdyB_h5.js +1 -0
- package/docs-palettes.entry-6ekOz4GT.js +1 -0
- package/docs-palettes.entry-Bz96UO-K.mjs +22 -0
- package/docs-tokens.entry-D-hRYpqk.mjs +30 -0
- package/docs-tokens.entry-DjHB8v2C.js +1 -0
- package/eds-accordion.entry-Czj2ZwpQ.js +4 -0
- package/eds-accordion.entry-D1L8fv2r.mjs +48 -0
- package/eds-alert.entry-BqEeR0Xw.js +165 -0
- package/eds-alert.entry-DAeVRXua.mjs +251 -0
- package/eds-app-root.entry-BBbgNK8b.mjs +25 -0
- package/eds-app-root.entry-BrJeEAVb.js +1 -0
- package/eds-avatar_34.entry-1U84FvGQ.mjs +12120 -0
- package/eds-avatar_34.entry-iuvkwQW_.js +10209 -0
- package/eds-card-project.entry-Cd7tP9g4.mjs +170 -0
- package/eds-card-project.entry-CewRPvW7.js +1 -0
- package/eds-card-section.entry-BU4fC9y5.js +1 -0
- package/eds-card-section.entry-CQLG4D0D.mjs +30 -0
- package/eds-card-tags.entry-BKuk3O8k.mjs +13 -0
- package/eds-card-tags.entry-DOV6K1FD.js +1 -0
- package/eds-card-tool.entry-DpfInwr3.mjs +56 -0
- package/eds-card-tool.entry-LSjtu5k_.js +1 -0
- package/eds-code-block.entry-Bz1Pbg4W.mjs +1623 -0
- package/eds-code-block.entry-DG1tMA_4.js +9 -0
- package/eds-cookies-preference.entry-0J8XlEDN.js +1 -0
- package/eds-cookies-preference.entry-DgP6pxkr.mjs +20 -0
- package/eds-feedback.entry-Cmn3G5sR.js +1 -0
- package/eds-feedback.entry-CxyxT-OD.mjs +54 -0
- package/eds-frame.entry-Dh_T8O60.mjs +67 -0
- package/eds-frame.entry-LDVXpjkU.js +1 -0
- package/eds-icon-arrow-diagonal.entry-C6AHMuMB.js +1 -0
- package/eds-icon-arrow-diagonal.entry-C75xEcUs.mjs +13 -0
- package/eds-icon-arrow-right.entry-DOsVz4oP.mjs +13 -0
- package/eds-icon-arrow-right.entry-VMROpz2J.js +1 -0
- package/eds-icon-bluesky.entry-BmSl31Ky.js +1 -0
- package/eds-icon-bluesky.entry-C9skxio2.mjs +13 -0
- package/eds-icon-bookmark.entry-DdUP23Uu.js +1 -0
- package/eds-icon-bookmark.entry-xWgHPpg-.mjs +13 -0
- package/eds-icon-chevron-down.entry-DNY1bk_l.js +1 -0
- package/eds-icon-chevron-down.entry-ut52sjbR.mjs +13 -0
- package/eds-icon-chevron-left.entry-Bi82EnZL.mjs +13 -0
- package/eds-icon-chevron-left.entry-nzi05fTd.js +1 -0
- package/eds-icon-chevron-right.entry-CBW3L3p8.js +1 -0
- package/eds-icon-chevron-right.entry-Dc_uRypg.mjs +13 -0
- package/eds-icon-chevron-up.entry-CO7nzD9J.mjs +13 -0
- package/eds-icon-chevron-up.entry-Cc10e7Ce.js +1 -0
- package/eds-icon-close.entry-CvXUDttz.mjs +13 -0
- package/eds-icon-close.entry-Dw7ZUnkQ.js +1 -0
- package/eds-icon-copy.entry-DV4qtIA7.mjs +13 -0
- package/eds-icon-copy.entry-x46asO9P.js +1 -0
- package/eds-icon-eu.entry-BaEbXLNS.mjs +13 -0
- package/eds-icon-eu.entry-D2CoGoAF.js +1 -0
- package/eds-icon-external.entry-C0Zm0isI.js +1 -0
- package/eds-icon-external.entry-CckFcmA1.mjs +13 -0
- package/eds-icon-facebook.entry-CIiiUf27.mjs +13 -0
- package/eds-icon-facebook.entry-DwUcANz7.js +1 -0
- package/eds-icon-gitlab.entry-CuKUR41Q.js +1 -0
- package/eds-icon-gitlab.entry-PCSE_PYe.mjs +13 -0
- package/eds-icon-linkedin.entry-Bpoynapn.js +1 -0
- package/eds-icon-linkedin.entry-C9xqBwJ1.mjs +13 -0
- package/eds-icon-loader.entry-CkIiBDsV.mjs +13 -0
- package/eds-icon-loader.entry-dxgwIFD3.js +1 -0
- package/eds-icon-mastodon.entry-7CmZhvNG.js +1 -0
- package/eds-icon-mastodon.entry-k86mWfUp.mjs +13 -0
- package/eds-icon-menu.entry-7zPtmR24.mjs +13 -0
- package/eds-icon-menu.entry-CFIbaI5j.js +1 -0
- package/eds-icon-minus.entry-B4ntnZW_.js +1 -0
- package/eds-icon-minus.entry-fPsoVmGR.mjs +13 -0
- package/eds-icon-more.entry-D_HCuwKk.js +1 -0
- package/eds-icon-more.entry-DyH3sCa4.mjs +13 -0
- package/eds-icon-paper.entry-BQlPnCrf.mjs +13 -0
- package/eds-icon-paper.entry-CHAw7mqA.js +1 -0
- package/eds-icon-plus.entry-QOVehJoq.js +1 -0
- package/eds-icon-plus.entry-zTfrWeuu.mjs +13 -0
- package/eds-icon-portal.entry-CbJqS4OZ.js +1 -0
- package/eds-icon-portal.entry-SlgbRrHY.mjs +13 -0
- package/eds-icon-private.entry-DSIHrQEv.js +1 -0
- package/eds-icon-private.entry-uHBGM_wp.mjs +13 -0
- package/eds-icon-public.entry-Cj1hddsF.js +1 -0
- package/eds-icon-public.entry-_sTE1w2W.mjs +13 -0
- package/eds-icon-search.entry-CXVkIZak.js +1 -0
- package/eds-icon-search.entry-DIww9BJF.mjs +13 -0
- package/eds-icon-star.entry-B3WySZM_.mjs +13 -0
- package/eds-icon-star.entry-B464U0ht.js +1 -0
- package/eds-icon-success.entry-BhRuLH3J.js +1 -0
- package/eds-icon-success.entry-HesFgi8E.mjs +13 -0
- package/eds-icon-thumbs-down.entry-CbL3623r.mjs +13 -0
- package/eds-icon-thumbs-down.entry-DVK5ACMh.js +1 -0
- package/eds-icon-thumbs-up.entry-C2QZ3OSz.mjs +13 -0
- package/eds-icon-thumbs-up.entry-MDqpoPcO.js +1 -0
- package/eds-icon-tutorial.entry-DRB27GWh.mjs +13 -0
- package/eds-icon-tutorial.entry-xaf63POz.js +1 -0
- package/eds-icon-twitter.entry-CYCIFfgj.mjs +13 -0
- package/eds-icon-twitter.entry-CcpEPKUu.js +1 -0
- package/eds-icon-unknown.entry-kYRE4en_.js +1 -0
- package/eds-icon-unknown.entry-ksugYL8s.mjs +13 -0
- package/eds-icon-updown.entry-3_UTqXet.js +1 -0
- package/eds-icon-updown.entry-DrW4QdWY.mjs +13 -0
- package/eds-icon-user.entry-BimbLh7T.js +1 -0
- package/eds-icon-user.entry-CMjrRV4a.mjs +13 -0
- package/eds-icon-youtube.entry-BepDLIVw.js +1 -0
- package/eds-icon-youtube.entry-CGXXdMzx.mjs +13 -0
- package/eds-matomo-notice.entry-BnbhjXrV.js +1 -0
- package/eds-matomo-notice.entry-DQLfTEH4.mjs +92 -0
- package/eds-pagination_2.entry-BK--gyZ0.mjs +258 -0
- package/eds-pagination_2.entry-De883ILy.js +1 -0
- package/eds-progress-bar.entry-CnzFrS-7.js +1 -0
- package/eds-progress-bar.entry-UWeq2B4o.mjs +39 -0
- package/eds-rating.entry-D48_hoBw.js +1 -0
- package/eds-rating.entry-ScrHbfrp.mjs +61 -0
- package/eds-section-core_2.entry-D3FNm7II.mjs +39 -0
- package/eds-section-core_2.entry-DshZ38Q9.js +1 -0
- package/eds-spinner.entry-CAKA3YkP.js +1 -0
- package/eds-spinner.entry-KZWQRAHb.mjs +36 -0
- package/eds-splash-screen.entry-B7f2rbAn.mjs +39 -0
- package/eds-splash-screen.entry-YJ_mGQYU.js +1 -0
- package/eds-switch.entry-CKv4fbm-.js +1 -0
- package/eds-switch.entry-DbBUxVI8.mjs +29 -0
- package/eds-timeline.entry-BE-6PK5Q.js +1 -0
- package/eds-timeline.entry-uFV4mRmh.mjs +46 -0
- package/eds-toast-manager.entry-BKIf0Xw3.js +1 -0
- package/eds-toast-manager.entry-CXL8sMaG.mjs +61 -0
- package/eds-toast.entry-a-RIjL18.js +3 -0
- package/eds-toast.entry-oZ1Juhqm.mjs +61 -0
- package/eds-trl.entry-Bw8w42hZ.mjs +34 -0
- package/eds-trl.entry-DmSx4bnn.js +1 -0
- package/eu-9ddde93a-BFtIQw9B.js +28 -0
- package/eu-9ddde93a-ft4szvR5.mjs +31 -0
- package/facebook-9cb5c17f-BcUhbrj6.mjs +15 -0
- package/facebook-9cb5c17f-Y_gvQ682.js +12 -0
- package/generated/components.d.ts +40 -0
- package/generated/vue-component-lib/utils.d.ts +16 -0
- package/incorrect-use-of-colors.entry-BlDQxmUQ.mjs +42 -0
- package/incorrect-use-of-colors.entry-CglkFNGU.js +1 -0
- package/index-39c58238-BwYCDOHZ.mjs +44 -0
- package/index-39c58238-SQ-JC-LH.js +1 -0
- package/index-BvZ-fq9l.mjs +3486 -0
- package/index-CJvr9v3B.js +21 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.mjs +42 -0
- package/linkedin-e8650abb-BkDrkjzY.js +26 -0
- package/linkedin-e8650abb-DYMdsale.mjs +29 -0
- package/loader-c9628637-ChpnbJkv.mjs +31 -0
- package/loader-c9628637-Vj8Wt1e8.js +28 -0
- package/logo-color-7f1fd803-CFgbXdt8.mjs +116 -0
- package/logo-color-7f1fd803-DRD3vZVn.js +113 -0
- package/logo-color-margins-ff8ce71b-B9nMsY9Q.mjs +119 -0
- package/logo-color-margins-ff8ce71b-Dk06zr1Z.js +116 -0
- package/logo-space.entry-D1gv5Jv7.mjs +19 -0
- package/logo-space.entry-d5Tx6GSR.js +6 -0
- package/logo-variations-horizontal_2.entry-CiMlktdv.js +7 -0
- package/logo-variations-horizontal_2.entry-DPHzlUCt.mjs +29 -0
- package/logo-variations-tabs.entry-BYi6NRAo.mjs +22 -0
- package/logo-variations-tabs.entry-CcSRDFWV.js +1 -0
- package/logo-white-no-bg-f382f86f-DXYn3NwV.js +1011 -0
- package/logo-white-no-bg-f382f86f-YhfmNmGG.mjs +1022 -0
- package/logo-wrong-usage.entry-9iDssoCI.mjs +14 -0
- package/logo-wrong-usage.entry-gsDvZ1sn.js +1 -0
- package/mastodon-3703ec61-C7iI4Hk0.mjs +15 -0
- package/mastodon-3703ec61-C9v6Olc-.js +12 -0
- package/menu-340ea948-BpnYX3gY.mjs +12 -0
- package/menu-340ea948-ZdelWVw3.js +9 -0
- package/minus-b30a7c71-BPAvqHzH.mjs +12 -0
- package/minus-b30a7c71-DqCTe6Qh.js +9 -0
- package/mono-53f70232-DGi2XDlR.mjs +12 -0
- package/mono-53f70232-DgAsWvoQ.js +9 -0
- package/more-4449d549-D4HA1cRq.js +11 -0
- package/more-4449d549-rI9hOpEp.mjs +14 -0
- package/package.json +1 -1
- package/paper-8e74ea31-BvGrc1Vo.mjs +16 -0
- package/paper-8e74ea31-C4CV6tlB.js +13 -0
- package/plus-89c07be2-BTXnjg5K.js +10 -0
- package/plus-89c07be2-DyT9I4-L.mjs +13 -0
- package/portal-d6c8ce56-Cj61ldo8.mjs +19 -0
- package/portal-d6c8ce56-NpSrdNZ_.js +16 -0
- package/private-1c25ff8e-D3Fo36q6.js +23 -0
- package/private-1c25ff8e-Dz82_Xf8.mjs +26 -0
- package/public-d4d8c585-BJKDD5F6.mjs +17 -0
- package/public-d4d8c585-lV6QxdPw.js +14 -0
- package/search-fbcd79c2-BMxCaeEk.js +10 -0
- package/search-fbcd79c2-rfV0PlHP.mjs +13 -0
- package/sharedUtils-a550989c-Ci3Tx3jc.mjs +15 -0
- package/sharedUtils-a550989c-m4pF1Vqy.js +1 -0
- package/star-0da9b5e9-B3-jr0yE.js +3 -0
- package/star-0da9b5e9-DX8_iFmu.mjs +6 -0
- package/success-443809da-BD23vltm.mjs +19 -0
- package/success-443809da-BUEhLsAD.js +16 -0
- package/svg-repository.entry-BtksDklW.mjs +301 -0
- package/svg-repository.entry-_-HISW99.js +173 -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-CNkWD89P.mjs +247 -0
- package/token-list_3.entry-CRZq4och.js +1 -0
- package/token-ratios.entry-CL40j9gF.js +1 -0
- package/token-ratios.entry-D4aHLsX-.mjs +25 -0
- package/token-typography.entry-D17oZHbh.js +2 -0
- package/token-typography.entry-ayRMMiOe.mjs +213 -0
- package/tutotial-150ee1fd-DFdyoHVA.mjs +28 -0
- package/tutotial-150ee1fd-DjN_JBL5.js +25 -0
- package/twitter-ac21b505-CGWVGWM9.mjs +15 -0
- package/twitter-ac21b505-DDdHS4hB.js +12 -0
- package/unknown-ed01a24c-B0AcMuip.js +20 -0
- package/unknown-ed01a24c-DonOUpIC.mjs +23 -0
- package/up-and-down-d747abee-CWoZjUyq.js +10 -0
- package/up-and-down-d747abee-D7g6H0T0.mjs +13 -0
- package/user-71ebdc15-BBKQbcQD.js +14 -0
- package/user-71ebdc15-CoHlCtJg.mjs +17 -0
- package/youtube-efbfbdc4-BLTH1Jl9.js +12 -0
- package/youtube-efbfbdc4-BfySbfjR.mjs +15 -0
- package/.eslintrc.json +0 -18
- package/project.json +0 -9
- package/src/generated/components.ts +0 -374
- package/src/generated/vue-component-lib/utils.ts +0 -236
- package/src/index.ts +0 -1
- package/src/vue-shims.d.ts +0 -5
- package/tsconfig.json +0 -18
- package/tsconfig.lib.json +0 -27
- package/vite.config.ts +0 -71
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { r, h as t, g as l } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
import { p as i } from "./sharedUtils-a550989c-Ci3Tx3jc.mjs";
|
|
3
|
+
const n = ".max-w-sidebar{max-width:1224px}.mx-auto{margin-left:auto;margin-right:auto}.px-4{padding-left:0.25rem;padding-right:0.25rem}.py-8{padding-top:0.5rem;padding-bottom:0.5rem}.relative{position:relative}.absolute{position:absolute}.flex{display:flex}.w-4{width:0.25rem}.pr-4{padding-right:0.25rem}.pl-4{padding-left:0.25rem}.w-1\\/2{width:50%}.left-1\\/2{left:50%}.transform{transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.bg-strong{background-color:var(--grey-700)}.h-full{height:100%}.z-0{z-index:0}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.items-center{align-items:center}.justify-center{justify-content:center}.w-32{width:2rem}.h-32{height:2rem}.bg-accent{background-color:var(--green-500)}.rounded-full{border-radius:9999px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}", c = n, o = class {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
r(this, e), this.events = void 0, this.selectedEvent = null, this.parsedEvents = [];
|
|
6
|
+
}
|
|
7
|
+
parseEvents(e) {
|
|
8
|
+
const a = i(e);
|
|
9
|
+
this.parsedEvents = Array.isArray(a) ? a.map((s) => Object.assign(Object.assign({}, s), { completed: s.completed === "true" || s.completed === !0 })) : [];
|
|
10
|
+
}
|
|
11
|
+
componentWillLoad() {
|
|
12
|
+
this.parseEvents(this.events);
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
this.el.querySelectorAll("eds-card-generic").forEach((a) => {
|
|
16
|
+
this.emitContext(a);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
emitContext(e) {
|
|
20
|
+
const a = new CustomEvent("parentContext", {
|
|
21
|
+
detail: {
|
|
22
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
23
|
+
identifier: null
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
e.dispatchEvent(a);
|
|
27
|
+
}
|
|
28
|
+
handleEventClick(e) {
|
|
29
|
+
this.selectedEvent = e, this.modalRef && typeof this.modalRef.open == "function" && this.modalRef.open();
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return t("div", { key: "63ce0ce7e3a632906f664011243abf9f816bc53a", class: "max-w-sidebar mx-auto px-4 py-8" }, t("div", { key: "794d16f6b68d87bb1fb4665cc5ef84b381fb55ea", class: "relative" }, t("div", { key: "2b82b5594a9ed5c056898725f40e56858282412a", class: "absolute w-4 left-1/2 transform -translate-x-1/2 bg-strong h-full z-0" }), t("div", { key: "6d33b71396649e7b90d050c0858912fa49c309a7", class: "space-y-16" }, this.parsedEvents.map((e, a) => t("div", { class: "relative flex" }, t("div", { class: `w-1/2 ${a % 2 === 0 ? "pr-4" : ""}` }, a % 2 === 0 && t("eds-card-generic", { cardTitle: e.title, url: "#", description: e.description, "heading-level": "h2", tiny: !0, bg: !e.completed, "with-hover": "false", tags: JSON.stringify(e.completed ? [{ label: "completed", style: "accent" }] : [{ label: "pending", style: "default" }]), onClick: () => this.handleEventClick(e) })), t("div", { class: "flex items-center justify-center relative" }, e.completed ? t("div", { class: "w-32 h-32 bg-accent rounded-full shadow flex items-center justify-center" }) : t("div", { class: "w-32 h-32 bg-strong rounded-full shadow flex items-center justify-center" })), t("div", { class: `w-1/2 ${a % 2 !== 0 ? "pl-4" : ""}` }, a % 2 !== 0 && t("eds-card-generic", { cardTitle: e.title, url: "#", description: e.description, "heading-level": "h2", tiny: !0, bg: !e.completed, "with-hover": "false", tags: JSON.stringify(e.completed ? [{ label: "completed", style: "accent" }] : [{ label: "pending", style: "default" }]), onClick: () => this.handleEventClick(e) })))))));
|
|
33
|
+
}
|
|
34
|
+
get el() {
|
|
35
|
+
return l(this);
|
|
36
|
+
}
|
|
37
|
+
static get watchers() {
|
|
38
|
+
return {
|
|
39
|
+
events: ["parseEvents"]
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
o.style = c;
|
|
44
|
+
export {
|
|
45
|
+
o as eds_timeline
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CJvr9v3B.js");class i{constructor(){this.toastManagerElement=null}init(e){this.toastManagerElement=e}show(e,s="default"){if(!this.toastManagerElement){console.error("ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.");return}const o=new CustomEvent("show-toast",{detail:{message:e,intent:s}});this.toastManagerElement.dispatchEvent(o)}}const r=new i,d=".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}",l=d,n=class{constructor(t){a.registerInstance(this,t),this.toastId=0,this.toasts=[]}connectedCallback(){r.init(this.hostElement),this.hostElement.addEventListener("show-toast",t=>{const{message:e,intent:s}=t.detail;this.addToast(e,s)})}addToast(t,e){const s=this.toastId++;this.toasts=[...this.toasts,{id:s,message:t,intent:e}]}removeToast(t){this.toasts=this.toasts.filter(e=>e.id!==t)}render(){return a.h("div",{key:"b86b71e71fa88b56acab6d7060e7b05beec344e1",class:"toast-container"},this.toasts.map(t=>a.h("div",{key:t.id},a.h("eds-toast",{message:t.message,intent:t.intent,onClick:()=>this.removeToast(t.id)}))))}get hostElement(){return a.getElement(this)}};n.style=l;exports.eds_toast_manager=n;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as o, h as a, g as i } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
class r {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.toastManagerElement = null;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Initialize the ToastManager with a reference to the `eds-toast-manager` component.
|
|
8
|
+
*/
|
|
9
|
+
init(s) {
|
|
10
|
+
this.toastManagerElement = s;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Display a toast.
|
|
14
|
+
* @param message - The message to display.
|
|
15
|
+
* @param intent - The type of the toast ('success', 'error', 'warning', 'default').
|
|
16
|
+
*/
|
|
17
|
+
show(s, e = "default") {
|
|
18
|
+
if (!this.toastManagerElement) {
|
|
19
|
+
console.error("ToastManager is not initialized. Ensure <eds-toast-manager> is rendered.");
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const n = new CustomEvent("show-toast", {
|
|
23
|
+
detail: { message: s, intent: e }
|
|
24
|
+
});
|
|
25
|
+
this.toastManagerElement.dispatchEvent(n);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const d = new r(), l = ".toast-container{position:fixed;top:1rem;left:50%;transform:translateX(-50%);z-index:99999;display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;max-width:36rem;}.toast-wrapper{width:100%;padding:0 1rem;}.eds-toast{box-shadow:0px 4px 6px rgba(0, 0, 0, 0.1);border-radius:0.5rem;animation:fade-in 0.3s ease-out;}@keyframes fade-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}", m = l, c = class {
|
|
29
|
+
constructor(t) {
|
|
30
|
+
o(this, t), this.toastId = 0, this.toasts = [];
|
|
31
|
+
}
|
|
32
|
+
connectedCallback() {
|
|
33
|
+
d.init(this.hostElement), this.hostElement.addEventListener("show-toast", (t) => {
|
|
34
|
+
const { message: s, intent: e } = t.detail;
|
|
35
|
+
this.addToast(s, e);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Adds a new toast.
|
|
40
|
+
*/
|
|
41
|
+
addToast(t, s) {
|
|
42
|
+
const e = this.toastId++;
|
|
43
|
+
this.toasts = [...this.toasts, { id: e, message: t, intent: s }];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Removes a toast by ID.
|
|
47
|
+
*/
|
|
48
|
+
removeToast(t) {
|
|
49
|
+
this.toasts = this.toasts.filter((s) => s.id !== t);
|
|
50
|
+
}
|
|
51
|
+
render() {
|
|
52
|
+
return a("div", { key: "b86b71e71fa88b56acab6d7060e7b05beec344e1", class: "toast-container" }, this.toasts.map((t) => a("div", { key: t.id }, a("eds-toast", { message: t.message, intent: t.intent, onClick: () => this.removeToast(t.id) }))));
|
|
53
|
+
}
|
|
54
|
+
get hostElement() {
|
|
55
|
+
return i(this);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
c.style = m;
|
|
59
|
+
export {
|
|
60
|
+
c as eds_toast_manager
|
|
61
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),r=require("./index-39c58238-SQ-JC-LH.js"),o=`.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.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)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
2
|
+
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
3
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`,a=o,n=r.cva(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"],{variants:{intent:{default:"bg-dark text-light",success:"bg-success text-dark",error:"bg-error text-light",warning:"bg-warning text-dark"}},defaultVariants:{intent:"default"}}),s=class{constructor(t){e.registerInstance(this,t),this.dismissToast=()=>{this.visible=!1},this.message=void 0,this.intent="default",this.duration=void 0,this.visible=!0}componentDidLoad(){const t=this.el.shadowRoot.querySelector("eds-button");this.emitContext(t)}emitContext(t){const i=new CustomEvent("parentContext",{detail:{componentName:this.el.tagName.toLowerCase(),identifier:null}});t.dispatchEvent(i)}connectedCallback(){this.duration&&this.duration>0&&(this.dismissTimeout=setTimeout(this.dismissToast,this.duration))}disconnectedCallback(){clearTimeout(this.dismissTimeout)}render(){if(!this.visible)return null;const t=n({intent:this.intent});return e.h("div",{class:t,role:"alert","aria-live":"assertive"},e.h("div",{class:"flex items-center justify-between gap-4"},e.h("span",{class:"f-ui-01"},this.message),e.h("eds-button",{intent:"tertiary",icon:"close","aria-label":"Close Toast",onClick:()=>this.dismissToast(),"extra-class":"ml-8"})))}get el(){return e.getElement(this)}};s.style=a;exports.eds_toast=s;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { r as i, h as e, g as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
import { c as o } from "./index-39c58238-BwYCDOHZ.mjs";
|
|
3
|
+
const a = `.relative{position:relative}.right-4{right:0.25rem}.bottom-4{bottom:0.25rem}.w-auto{width:auto}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:0.25rem}.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)}.ml-8{margin-left:0.5rem}.p-12{padding:0.75rem}.rounded-lg{border-radius:16px}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),
|
|
4
|
+
0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
5
|
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.bg-dark{background-color:var(--grey-300)}.bg-success{background-color:var(--green-200)}.bg-error{background-color:var(--red-200)}.bg-warning{background-color:var(--yellow-200)}.text-light{color:var(--grey-700)}.text-current{color:currentColor}.text-default{color:var(--black)}`, n = a, l = o(["relative right-4 bottom-4 w-auto p-12 rounded-lg shadow-md"], {
|
|
6
|
+
variants: {
|
|
7
|
+
intent: {
|
|
8
|
+
default: "bg-dark text-light",
|
|
9
|
+
success: "bg-success text-dark",
|
|
10
|
+
error: "bg-error text-light",
|
|
11
|
+
warning: "bg-warning text-dark"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
intent: "default"
|
|
16
|
+
}
|
|
17
|
+
}), d = class {
|
|
18
|
+
constructor(t) {
|
|
19
|
+
i(this, t), this.dismissToast = () => {
|
|
20
|
+
this.visible = !1;
|
|
21
|
+
}, this.message = void 0, this.intent = "default", this.duration = void 0, this.visible = !0;
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
const t = this.el.shadowRoot.querySelector("eds-button");
|
|
25
|
+
this.emitContext(t);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Emits a custom event called `parentContext` for a given button element.
|
|
29
|
+
* This event provides context information about the toast component.
|
|
30
|
+
*
|
|
31
|
+
* @param btnElement - The link element to which the event will be dispatched.
|
|
32
|
+
*/
|
|
33
|
+
emitContext(t) {
|
|
34
|
+
const s = new CustomEvent("parentContext", {
|
|
35
|
+
detail: {
|
|
36
|
+
componentName: this.el.tagName.toLowerCase(),
|
|
37
|
+
identifier: null
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
t.dispatchEvent(s);
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this.duration && this.duration > 0 && (this.dismissTimeout = setTimeout(this.dismissToast, this.duration));
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
clearTimeout(this.dismissTimeout);
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
if (!this.visible)
|
|
50
|
+
return null;
|
|
51
|
+
const t = l({ intent: this.intent });
|
|
52
|
+
return e("div", { class: t, role: "alert", "aria-live": "assertive" }, e("div", { class: "flex items-center justify-between gap-4" }, e("span", { class: "f-ui-01" }, this.message), e("eds-button", { intent: "tertiary", icon: "close", "aria-label": "Close Toast", onClick: () => this.dismissToast(), "extra-class": "ml-8" })));
|
|
53
|
+
}
|
|
54
|
+
get el() {
|
|
55
|
+
return r(this);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
d.style = n;
|
|
59
|
+
export {
|
|
60
|
+
d as eds_toast
|
|
61
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { r as i, h as r } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
const c = class {
|
|
3
|
+
constructor(a) {
|
|
4
|
+
i(this, a), this.applications = void 0;
|
|
5
|
+
}
|
|
6
|
+
getParsedApplications() {
|
|
7
|
+
let a = [];
|
|
8
|
+
if (typeof this.applications == "string")
|
|
9
|
+
try {
|
|
10
|
+
a = JSON.parse(this.applications || "[]");
|
|
11
|
+
} catch (t) {
|
|
12
|
+
console.error("Invalid applications trl JSON", t), a = [];
|
|
13
|
+
}
|
|
14
|
+
else Array.isArray(this.applications) && (a = this.applications);
|
|
15
|
+
return a;
|
|
16
|
+
}
|
|
17
|
+
calculateProgress(a) {
|
|
18
|
+
return Math.ceil(a / 9 * 100);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
const t = this.getParsedApplications().map((e) => ({
|
|
22
|
+
Application: e.name,
|
|
23
|
+
"Current TRL Stage": `TRL ${e.currentTrl}`,
|
|
24
|
+
Progress: r("div", { class: "w-[200px]" }, r("eds-progress-bar", { value: this.calculateProgress(e.currentTrl) }))
|
|
25
|
+
})), s = {
|
|
26
|
+
Application: { format: "code" },
|
|
27
|
+
"Current TRL Stage": { format: "text" }
|
|
28
|
+
};
|
|
29
|
+
return r("div", { key: "8a798c644632d3168af51aa8a0775b7455ab5b52", class: "container mx-auto px-4 py-8" }, r("eds-table", { key: "82a692c0f7e46fe7438a594a7b5c567855c0e308", "table-data": JSON.stringify(t), config: JSON.stringify(s), "rows-per-page": "2", "pagination-enabled": "true", "search-enabled": "true", "column-size": "default" }));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
c as eds_trl
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CJvr9v3B.js"),i=class{constructor(e){t.registerInstance(this,e),this.applications=void 0}getParsedApplications(){let e=[];if(typeof this.applications=="string")try{e=JSON.parse(this.applications||"[]")}catch(a){console.error("Invalid applications trl JSON",a),e=[]}else Array.isArray(this.applications)&&(e=this.applications);return e}calculateProgress(e){return Math.ceil(e/9*100)}render(){const a=this.getParsedApplications().map(r=>({Application:r.name,"Current TRL Stage":`TRL ${r.currentTrl}`,Progress:t.h("div",{class:"w-[200px]"},t.h("eds-progress-bar",{value:this.calculateProgress(r.currentTrl)}))})),s={Application:{format:"code"},"Current TRL Stage":{format:"text"}};return t.h("div",{key:"8a798c644632d3168af51aa8a0775b7455ab5b52",class:"container mx-auto px-4 py-8"},t.h("eds-table",{key:"82a692c0f7e46fe7438a594a7b5c567855c0e308","table-data":JSON.stringify(a),config:JSON.stringify(s),"rows-per-page":"2","pagination-enabled":"true","search-enabled":"true","column-size":"default"}))}};exports.eds_trl=i;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const e=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-eu" viewBox="0 0 640 480">
|
|
2
|
+
<defs>
|
|
3
|
+
<g id="d">
|
|
4
|
+
<g id="b">
|
|
5
|
+
<path id="a" d="m0-1-.3 1 .5.1z"/>
|
|
6
|
+
<use xlink:href="#a" transform="scale(-1 1)"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="c">
|
|
9
|
+
<use xlink:href="#b" transform="rotate(72)"/>
|
|
10
|
+
<use xlink:href="#b" transform="rotate(144)"/>
|
|
11
|
+
</g>
|
|
12
|
+
<use xlink:href="#c" transform="scale(-1 1)"/>
|
|
13
|
+
</g>
|
|
14
|
+
</defs>
|
|
15
|
+
<path fill="#039" d="M0 0h640v480H0z"/>
|
|
16
|
+
<g fill="#fc0" transform="translate(320 242.3) scale(23.7037)">
|
|
17
|
+
<use xlink:href="#d" width="100%" height="100%" y="-6"/>
|
|
18
|
+
<use xlink:href="#d" width="100%" height="100%" y="6"/>
|
|
19
|
+
<g id="e">
|
|
20
|
+
<use xlink:href="#d" width="100%" height="100%" x="-6"/>
|
|
21
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(-144 -2.3 -2.1)"/>
|
|
22
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(144 -2.1 -2.3)"/>
|
|
23
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -4.7 -2)"/>
|
|
24
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -5 .5)"/>
|
|
25
|
+
</g>
|
|
26
|
+
<use xlink:href="#e" width="100%" height="100%" transform="scale(-1 1)"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>`;exports.euSvg=e;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const e = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-eu" viewBox="0 0 640 480">
|
|
2
|
+
<defs>
|
|
3
|
+
<g id="d">
|
|
4
|
+
<g id="b">
|
|
5
|
+
<path id="a" d="m0-1-.3 1 .5.1z"/>
|
|
6
|
+
<use xlink:href="#a" transform="scale(-1 1)"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g id="c">
|
|
9
|
+
<use xlink:href="#b" transform="rotate(72)"/>
|
|
10
|
+
<use xlink:href="#b" transform="rotate(144)"/>
|
|
11
|
+
</g>
|
|
12
|
+
<use xlink:href="#c" transform="scale(-1 1)"/>
|
|
13
|
+
</g>
|
|
14
|
+
</defs>
|
|
15
|
+
<path fill="#039" d="M0 0h640v480H0z"/>
|
|
16
|
+
<g fill="#fc0" transform="translate(320 242.3) scale(23.7037)">
|
|
17
|
+
<use xlink:href="#d" width="100%" height="100%" y="-6"/>
|
|
18
|
+
<use xlink:href="#d" width="100%" height="100%" y="6"/>
|
|
19
|
+
<g id="e">
|
|
20
|
+
<use xlink:href="#d" width="100%" height="100%" x="-6"/>
|
|
21
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(-144 -2.3 -2.1)"/>
|
|
22
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(144 -2.1 -2.3)"/>
|
|
23
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -4.7 -2)"/>
|
|
24
|
+
<use xlink:href="#d" width="100%" height="100%" transform="rotate(72 -5 .5)"/>
|
|
25
|
+
</g>
|
|
26
|
+
<use xlink:href="#e" width="100%" height="100%" transform="scale(-1 1)"/>
|
|
27
|
+
</g>
|
|
28
|
+
</svg>`;
|
|
29
|
+
export {
|
|
30
|
+
e
|
|
31
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const o = ` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M10.9481 19.9556C16.0263 19.4781 20 15.2031 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 14.7129 3.26027 18.6643 7.64847 19.722V12.0931H6V9.36828H7.64847V7.73228C7.64847 5.50935 8.5793 4.1875 11.2239 4.1875H13.4256V6.91266H12.0494C11.0199 6.91266 10.9518 7.29347 10.9518 8.00415L10.9481 9.36797H13.4412L13.1494 12.0928H10.9481V19.9556Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;
|
|
13
|
+
export {
|
|
14
|
+
o as f
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const o=` <svg
|
|
2
|
+
width="20"
|
|
3
|
+
height="20"
|
|
4
|
+
viewBox="0 0 20 20"
|
|
5
|
+
fill="none"
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
>
|
|
8
|
+
<path
|
|
9
|
+
d="M10.9481 19.9556C16.0263 19.4781 20 15.2031 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10C0 14.7129 3.26027 18.6643 7.64847 19.722V12.0931H6V9.36828H7.64847V7.73228C7.64847 5.50935 8.5793 4.1875 11.2239 4.1875H13.4256V6.91266H12.0494C11.0199 6.91266 10.9518 7.29347 10.9518 8.00415L10.9481 9.36797H13.4412L13.1494 12.0928H10.9481V19.9556Z"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
/>
|
|
12
|
+
</svg>`;exports.facebook=o;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { JSX } from '../../../../dist/packages/components';
|
|
2
|
+
export declare const EdsAccordion: import('vue').DefineSetupFnComponent<JSX.EdsAccordion & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsAccordion & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
3
|
+
export declare const EdsAlert: import('vue').DefineSetupFnComponent<JSX.EdsAlert & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsAlert & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
4
|
+
export declare const EdsAvatar: import('vue').DefineSetupFnComponent<JSX.EdsAvatar & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsAvatar & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
5
|
+
export declare const EdsBlockBreak: import('vue').DefineSetupFnComponent<JSX.EdsBlockBreak & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsBlockBreak & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
6
|
+
export declare const EdsBreadcrumb: import('vue').DefineSetupFnComponent<JSX.EdsBreadcrumb & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsBreadcrumb & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
7
|
+
export declare const EdsButton: import('vue').DefineSetupFnComponent<JSX.EdsButton & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsButton & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
8
|
+
export declare const EdsCardGeneric: import('vue').DefineSetupFnComponent<JSX.EdsCardGeneric & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsCardGeneric & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
9
|
+
export declare const EdsCardSection: import('vue').DefineSetupFnComponent<JSX.EdsCardSection & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsCardSection & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
10
|
+
export declare const EdsCodeBlock: import('vue').DefineSetupFnComponent<JSX.EdsCodeBlock & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsCodeBlock & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
11
|
+
export declare const EdsDropdown: import('vue').DefineSetupFnComponent<JSX.EdsDropdown & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsDropdown & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
12
|
+
export declare const EdsFeedback: import('vue').DefineSetupFnComponent<JSX.EdsFeedback & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFeedback & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
13
|
+
export declare const EdsFooter: import('vue').DefineSetupFnComponent<JSX.EdsFooter & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFooter & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
14
|
+
export declare const EdsForm: import('vue').DefineSetupFnComponent<JSX.EdsForm & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsForm & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
15
|
+
export declare const EdsFullscreenMenu: import('vue').DefineSetupFnComponent<JSX.EdsFullscreenMenu & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsFullscreenMenu & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
16
|
+
export declare const EdsGauge: import('vue').DefineSetupFnComponent<JSX.EdsGauge & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsGauge & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
17
|
+
export declare const EdsHeader: import('vue').DefineSetupFnComponent<JSX.EdsHeader & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsHeader & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
18
|
+
export declare const EdsIconWrapper: import('vue').DefineSetupFnComponent<JSX.EdsIconWrapper & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsIconWrapper & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
19
|
+
export declare const EdsImg: import('vue').DefineSetupFnComponent<JSX.EdsImg & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsImg & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
20
|
+
export declare const EdsInputField: import('vue').DefineSetupFnComponent<JSX.EdsInputField & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsInputField & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
21
|
+
export declare const EdsLink: import('vue').DefineSetupFnComponent<JSX.EdsLink & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsLink & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
22
|
+
export declare const EdsLogo: import('vue').DefineSetupFnComponent<JSX.EdsLogo & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsLogo & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
23
|
+
export declare const EdsMatomoNotice: import('vue').DefineSetupFnComponent<JSX.EdsMatomoNotice & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsMatomoNotice & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
24
|
+
export declare const EdsModal: import('vue').DefineSetupFnComponent<JSX.EdsModal & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsModal & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
25
|
+
export declare const EdsPagination: import('vue').DefineSetupFnComponent<JSX.EdsPagination & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsPagination & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
26
|
+
export declare const EdsPie: import('vue').DefineSetupFnComponent<JSX.EdsPie & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsPie & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
27
|
+
export declare const EdsProgressBar: import('vue').DefineSetupFnComponent<JSX.EdsProgressBar & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsProgressBar & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
28
|
+
export declare const EdsRating: import('vue').DefineSetupFnComponent<JSX.EdsRating & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsRating & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
29
|
+
export declare const EdsSocialNetworks: import('vue').DefineSetupFnComponent<JSX.EdsSocialNetworks & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSocialNetworks & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
30
|
+
export declare const EdsSpinner: import('vue').DefineSetupFnComponent<JSX.EdsSpinner & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSpinner & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
31
|
+
export declare const EdsSplashScreen: import('vue').DefineSetupFnComponent<JSX.EdsSplashScreen & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSplashScreen & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
32
|
+
export declare const EdsSteps: import('vue').DefineSetupFnComponent<JSX.EdsSteps & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSteps & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
33
|
+
export declare const EdsStepsV2: import('vue').DefineSetupFnComponent<JSX.EdsStepsV2 & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsStepsV2 & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
34
|
+
export declare const EdsSwitch: import('vue').DefineSetupFnComponent<JSX.EdsSwitch & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsSwitch & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
35
|
+
export declare const EdsTable: import('vue').DefineSetupFnComponent<JSX.EdsTable & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTable & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
36
|
+
export declare const EdsTabs: import('vue').DefineSetupFnComponent<JSX.EdsTabs & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTabs & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
37
|
+
export declare const EdsTag: import('vue').DefineSetupFnComponent<JSX.EdsTag & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTag & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
38
|
+
export declare const EdsToast: import('vue').DefineSetupFnComponent<JSX.EdsToast & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsToast & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
39
|
+
export declare const EdsTooltip: import('vue').DefineSetupFnComponent<JSX.EdsTooltip & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsTooltip & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
40
|
+
export declare const EdsUser: import('vue').DefineSetupFnComponent<JSX.EdsUser & import('./vue-component-lib/utils').InputProps<string | number | boolean>, {}, {}, JSX.EdsUser & import('./vue-component-lib/utils').InputProps<string | number | boolean> & {}, import('vue').PublicProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface InputProps<T> {
|
|
2
|
+
modelValue?: T;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Create a callback to define a Vue component wrapper around a Web Component.
|
|
6
|
+
*
|
|
7
|
+
* @prop name - The component tag name (i.e. `ion-button`)
|
|
8
|
+
* @prop componentProps - An array of properties on the
|
|
9
|
+
* component. These usually match up with the @Prop definitions
|
|
10
|
+
* in each component's TSX file.
|
|
11
|
+
* @prop customElement - An option custom element instance to pass
|
|
12
|
+
* to customElements.define. Only set if `includeImportCustomElements: true` in your config.
|
|
13
|
+
* @prop modelProp - The prop that v-model binds to (i.e. value)
|
|
14
|
+
* @prop modelUpdateEvent - The event that is fired from your Web Component when the value changes (i.e. ionChange)
|
|
15
|
+
*/
|
|
16
|
+
export declare const defineContainer: <Props, VModelType = string | number | boolean>(name: string, defineCustomElement: any, componentProps?: string[], modelProp?: string, modelUpdateEvent?: string) => import('vue').DefineSetupFnComponent<Props & InputProps<VModelType>, {}, {}, Props & InputProps<VModelType> & {}, import('vue').PublicProps>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as a, h as e } from "./index-BvZ-fq9l.mjs";
|
|
2
|
+
const s = [
|
|
3
|
+
{
|
|
4
|
+
background: "#9CE142"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
background: "#00C959"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
background: "#00A595"
|
|
11
|
+
}
|
|
12
|
+
], o = [
|
|
13
|
+
{
|
|
14
|
+
background: "#C461FF"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
background: "#5D3DF9"
|
|
18
|
+
}
|
|
19
|
+
], r = [
|
|
20
|
+
{
|
|
21
|
+
background: "#FFA543"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
background: "#FF4D68"
|
|
25
|
+
}
|
|
26
|
+
], d = [
|
|
27
|
+
{
|
|
28
|
+
background: "#3FA9F5"
|
|
29
|
+
},
|
|
30
|
+
...o,
|
|
31
|
+
...r
|
|
32
|
+
], n = class {
|
|
33
|
+
constructor(c) {
|
|
34
|
+
a(this, c);
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return e("div", { key: "3503dcc0e2d3f5b08eec400e74484e5725d7b4af", class: "container" }, e("div", { key: "657857e8826e60c498450326306234c59b4e770b", class: "mb-8" }, e("eds-alert", { key: "88512240affc65314593f8573b3a13f58fb2806d", message: "Note that, each of the four colour tones cannot be mixed in the same composition.", intent: "error" })), e("div", { key: "8614d445187d2614e5833b8c89c66b178762574e", class: "flex" }, e("div", { key: "1b36d52dbcbb65e1edb4513899ec898d691193c0", class: "w-full" }, e("ul", { key: "13fb2eaca0ad3fb93487f6c0c976142a18870b4d", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, s.map((c) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[150px] effect-height flex items-center justify-between p-16", style: { backgroundColor: c.background } }))))), e("div", { key: "adec93113e4c02168906e1da65f48c20e9b2c7dc", class: "w-full" }, e("ul", { key: "d0b43589866f53c92084b270afb3571ed2723fc8", class: "not-prose gap-y-8 md:gap-y-12 lg:gap-y-16" }, d.map((c) => e("li", { class: "grid-col-span-12 md:grid-col-span-6 flex flex-col" }, e("div", { class: "w-full min-h-[90px] effect-height flex items-center justify-between p-16", style: { backgroundColor: c.background } })))))));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
n as incorrect_use_of_colors
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CJvr9v3B.js"),o=[{background:"#9CE142"},{background:"#00C959"},{background:"#00A595"}],s=[{background:"#C461FF"},{background:"#5D3DF9"}],a=[{background:"#FFA543"},{background:"#FF4D68"}],r=[{background:"#3FA9F5"},...s,...a],d=class{constructor(c){e.registerInstance(this,c)}render(){return e.h("div",{key:"3503dcc0e2d3f5b08eec400e74484e5725d7b4af",class:"container"},e.h("div",{key:"657857e8826e60c498450326306234c59b4e770b",class:"mb-8"},e.h("eds-alert",{key:"88512240affc65314593f8573b3a13f58fb2806d",message:"Note that, each of the four colour tones cannot be mixed in the same composition.",intent:"error"})),e.h("div",{key:"8614d445187d2614e5833b8c89c66b178762574e",class:"flex"},e.h("div",{key:"1b36d52dbcbb65e1edb4513899ec898d691193c0",class:"w-full"},e.h("ul",{key:"13fb2eaca0ad3fb93487f6c0c976142a18870b4d",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},o.map(c=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[150px] effect-height flex items-center justify-between p-16",style:{backgroundColor:c.background}}))))),e.h("div",{key:"adec93113e4c02168906e1da65f48c20e9b2c7dc",class:"w-full"},e.h("ul",{key:"d0b43589866f53c92084b270afb3571ed2723fc8",class:"not-prose gap-y-8 md:gap-y-12 lg:gap-y-16"},r.map(c=>e.h("li",{class:"grid-col-span-12 md:grid-col-span-6 flex flex-col"},e.h("div",{class:"w-full min-h-[90px] effect-height flex items-center justify-between p-16",style:{backgroundColor:c.background}})))))))}};exports.incorrect_use_of_colors=d;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function m(n) {
|
|
2
|
+
var e, t, l = "";
|
|
3
|
+
if (typeof n == "string" || typeof n == "number") l += n;
|
|
4
|
+
else if (typeof n == "object") if (Array.isArray(n)) for (e = 0; e < n.length; e++) n[e] && (t = m(n[e])) && (l && (l += " "), l += t);
|
|
5
|
+
else for (e in n) n[e] && (l && (l += " "), l += e);
|
|
6
|
+
return l;
|
|
7
|
+
}
|
|
8
|
+
function j() {
|
|
9
|
+
for (var n, e, t = 0, l = ""; t < arguments.length; ) (n = arguments[t++]) && (e = m(n)) && (l && (l += " "), l += e);
|
|
10
|
+
return l;
|
|
11
|
+
}
|
|
12
|
+
const f = (n) => typeof n == "boolean" ? "".concat(n) : n === 0 ? "0" : n, y = j, A = (n, e) => (t) => {
|
|
13
|
+
var l;
|
|
14
|
+
if ((e == null ? void 0 : e.variants) == null) return y(n, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
15
|
+
const { variants: d, defaultVariants: u } = e, N = Object.keys(d).map((a) => {
|
|
16
|
+
const r = t == null ? void 0 : t[a], s = u == null ? void 0 : u[a];
|
|
17
|
+
if (r === null) return null;
|
|
18
|
+
const i = f(r) || f(s);
|
|
19
|
+
return d[a][i];
|
|
20
|
+
}), v = t && Object.entries(t).reduce((a, r) => {
|
|
21
|
+
let [s, i] = r;
|
|
22
|
+
return i === void 0 || (a[s] = i), a;
|
|
23
|
+
}, {}), V = e == null || (l = e.compoundVariants) === null || l === void 0 ? void 0 : l.reduce((a, r) => {
|
|
24
|
+
let { class: s, className: i, ...b } = r;
|
|
25
|
+
return Object.entries(b).every((C) => {
|
|
26
|
+
let [c, o] = C;
|
|
27
|
+
return Array.isArray(o) ? o.includes({
|
|
28
|
+
...u,
|
|
29
|
+
...v
|
|
30
|
+
}[c]) : {
|
|
31
|
+
...u,
|
|
32
|
+
...v
|
|
33
|
+
}[c] === o;
|
|
34
|
+
}) ? [
|
|
35
|
+
...a,
|
|
36
|
+
s,
|
|
37
|
+
i
|
|
38
|
+
] : a;
|
|
39
|
+
}, []);
|
|
40
|
+
return y(n, N, V, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
A as c
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function m(n){var e,t,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(t=m(n[e]))&&(l&&(l+=" "),l+=t);else for(e in n)n[e]&&(l&&(l+=" "),l+=e);return l}function j(){for(var n,e,t=0,l="";t<arguments.length;)(n=arguments[t++])&&(e=m(n))&&(l&&(l+=" "),l+=e);return l}const f=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,y=j,A=(n,e)=>t=>{var l;if((e==null?void 0:e.variants)==null)return y(n,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:d,defaultVariants:u}=e,N=Object.keys(d).map(a=>{const r=t==null?void 0:t[a],s=u==null?void 0:u[a];if(r===null)return null;const i=f(r)||f(s);return d[a][i]}),v=t&&Object.entries(t).reduce((a,r)=>{let[s,i]=r;return i===void 0||(a[s]=i),a},{}),V=e==null||(l=e.compoundVariants)===null||l===void 0?void 0:l.reduce((a,r)=>{let{class:s,className:i,...b}=r;return Object.entries(b).every(C=>{let[c,o]=C;return Array.isArray(o)?o.includes({...u,...v}[c]):{...u,...v}[c]===o})?[...a,s,i]:a},[]);return y(n,N,V,t==null?void 0:t.class,t==null?void 0:t.className)};exports.cva=A;
|