vue3-sphinx-xml 0.6.1 → 0.6.2
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/dist/Admonition-CMl3cvE2.mjs +35 -0
- package/dist/Admonition-CMl3cvE2.mjs.map +1 -0
- package/dist/BlockQuote-BKx_62o5.mjs +31 -0
- package/dist/BlockQuote-BKx_62o5.mjs.map +1 -0
- package/dist/CaptionNumber-nNxMeKHq.mjs +35 -0
- package/dist/CaptionNumber-nNxMeKHq.mjs.map +1 -0
- package/dist/ColumnGroup-2vQ_pHZh.mjs +30 -0
- package/dist/ColumnGroup-2vQ_pHZh.mjs.map +1 -0
- package/dist/Comment-Ddfhp8tE.mjs +27 -0
- package/dist/Comment-Ddfhp8tE.mjs.map +1 -0
- package/dist/Compound-CkQCXGEt.mjs +31 -0
- package/dist/Compound-CkQCXGEt.mjs.map +1 -0
- package/dist/Container-atFAqvD8.mjs +47 -0
- package/dist/Container-atFAqvD8.mjs.map +1 -0
- package/dist/DirectElementMap-e91U7c-P.mjs +24 -0
- package/dist/DirectElementMap-e91U7c-P.mjs.map +1 -0
- package/dist/Document-D1U8scRh.mjs +33 -0
- package/dist/Document-D1U8scRh.mjs.map +1 -0
- package/dist/DownloadReference-C74uZBZQ.mjs +38 -0
- package/dist/DownloadReference-C74uZBZQ.mjs.map +1 -0
- package/dist/Figure-Ue2uoU0l.mjs +36 -0
- package/dist/Figure-Ue2uoU0l.mjs.map +1 -0
- package/dist/FigureCaption-BVSbJhF7.mjs +39 -0
- package/dist/FigureCaption-BVSbJhF7.mjs.map +1 -0
- package/dist/Footnote-wv5ClOwM.mjs +32 -0
- package/dist/Footnote-wv5ClOwM.mjs.map +1 -0
- package/dist/FootnoteReference-mnfh7KUg.mjs +39 -0
- package/dist/FootnoteReference-mnfh7KUg.mjs.map +1 -0
- package/dist/Image-BydrCE0c.mjs +33 -0
- package/dist/Image-BydrCE0c.mjs.map +1 -0
- package/dist/Legend-B9ZFxCXI.mjs +32 -0
- package/dist/Legend-B9ZFxCXI.mjs.map +1 -0
- package/dist/LineBlock-Bhl4CyLL.mjs +32 -0
- package/dist/LineBlock-Bhl4CyLL.mjs.map +1 -0
- package/dist/LineSingle-BL_nqRem.mjs +33 -0
- package/dist/LineSingle-BL_nqRem.mjs.map +1 -0
- package/dist/Literal-Di_CHJ29.mjs +35 -0
- package/dist/Literal-Di_CHJ29.mjs.map +1 -0
- package/dist/LiteralBlock-Bdicro3D.mjs +28 -0
- package/dist/LiteralBlock-Bdicro3D.mjs.map +1 -0
- package/dist/Math-B4qW3-mK.mjs +23 -0
- package/dist/Math-B4qW3-mK.mjs.map +1 -0
- package/dist/MathBlock-Bio5KFuK.mjs +46 -0
- package/dist/MathBlock-Bio5KFuK.mjs.map +1 -0
- package/dist/Note-BOdO-lVA.mjs +32 -0
- package/dist/Note-BOdO-lVA.mjs.map +1 -0
- package/dist/NumberReference-DbTzyFe1.mjs +47 -0
- package/dist/NumberReference-DbTzyFe1.mjs.map +1 -0
- package/dist/Problematic-BFPD4WML.mjs +31 -0
- package/dist/Problematic-BFPD4WML.mjs.map +1 -0
- package/dist/Raw-XpSGAGRS.mjs +11 -0
- package/dist/Raw-XpSGAGRS.mjs.map +1 -0
- package/dist/Reference-D8OfH1nX.mjs +51 -0
- package/dist/Reference-D8OfH1nX.mjs.map +1 -0
- package/dist/Section-dwBTFhT5.mjs +35 -0
- package/dist/Section-dwBTFhT5.mjs.map +1 -0
- package/dist/Skip-B3vfiW0s.mjs +18 -0
- package/dist/Skip-B3vfiW0s.mjs.map +1 -0
- package/dist/StandardElement-B3pz75MC.mjs +56 -0
- package/dist/StandardElement-B3pz75MC.mjs.map +1 -0
- package/dist/Text-h1FT9xAk.mjs +23 -0
- package/dist/Text-h1FT9xAk.mjs.map +1 -0
- package/dist/Title-DuLS-7An.mjs +43 -0
- package/dist/Title-DuLS-7An.mjs.map +1 -0
- package/dist/TodoNode-BD7LH2n4.mjs +36 -0
- package/dist/TodoNode-BD7LH2n4.mjs.map +1 -0
- package/dist/Topic-Bpn12S2P.mjs +35 -0
- package/dist/Topic-Bpn12S2P.mjs.map +1 -0
- package/dist/Transition-B03RGr-W.mjs +12 -0
- package/dist/Transition-B03RGr-W.mjs.map +1 -0
- package/dist/Warning-yrqj66sd.mjs +38 -0
- package/dist/Warning-yrqj66sd.mjs.map +1 -0
- package/dist/basereference-qnWrRZL-.mjs +31 -0
- package/dist/basereference-qnWrRZL-.mjs.map +1 -0
- package/dist/computed-CtquEsn0.mjs +237 -0
- package/dist/computed-CtquEsn0.mjs.map +1 -0
- package/dist/methods-D1vA1pFT.mjs +77 -0
- package/dist/methods-D1vA1pFT.mjs.map +1 -0
- package/dist/sphinx-BkN2WZRJ.mjs +1851 -0
- package/dist/sphinx-BkN2WZRJ.mjs.map +1 -0
- package/dist/utilities-RjHWUaCa.mjs +18 -0
- package/dist/utilities-RjHWUaCa.mjs.map +1 -0
- package/dist/vue3-sphinx-xml.css +2 -1
- package/dist/vue3-sphinx-xml.js +10 -7
- package/dist/vue3-sphinx-xml.js.map +1 -1
- package/dist/vue3-sphinx-xml.mjs +130 -8
- package/dist/vue3-sphinx-xml.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/Admonition-C1LWpeza.mjs +0 -36
- package/dist/Admonition-C1LWpeza.mjs.map +0 -1
- package/dist/BlockQuote-DQGmutzn.mjs +0 -34
- package/dist/BlockQuote-DQGmutzn.mjs.map +0 -1
- package/dist/CaptionNumber-CqeASt_i.mjs +0 -36
- package/dist/CaptionNumber-CqeASt_i.mjs.map +0 -1
- package/dist/ColumnGroup-DYs1xB1a.mjs +0 -37
- package/dist/ColumnGroup-DYs1xB1a.mjs.map +0 -1
- package/dist/Comment-DpyTzHo4.mjs +0 -31
- package/dist/Comment-DpyTzHo4.mjs.map +0 -1
- package/dist/Compound-BvroDjHX.mjs +0 -30
- package/dist/Compound-BvroDjHX.mjs.map +0 -1
- package/dist/Container-BTZf-b6P.mjs +0 -50
- package/dist/Container-BTZf-b6P.mjs.map +0 -1
- package/dist/DirectElementMap-B-wTPjj0.mjs +0 -21
- package/dist/DirectElementMap-B-wTPjj0.mjs.map +0 -1
- package/dist/Document-Ciwh11I6.mjs +0 -230
- package/dist/Document-Ciwh11I6.mjs.map +0 -1
- package/dist/DownloadReference-BKyZDsoj.mjs +0 -36
- package/dist/DownloadReference-BKyZDsoj.mjs.map +0 -1
- package/dist/Figure-fjT2FOsJ.mjs +0 -38
- package/dist/Figure-fjT2FOsJ.mjs.map +0 -1
- package/dist/FigureCaption-CyYfEcCd.mjs +0 -41
- package/dist/FigureCaption-CyYfEcCd.mjs.map +0 -1
- package/dist/Footnote-DVcKM62Z.mjs +0 -33
- package/dist/Footnote-DVcKM62Z.mjs.map +0 -1
- package/dist/FootnoteReference-CevmkftO.mjs +0 -39
- package/dist/FootnoteReference-CevmkftO.mjs.map +0 -1
- package/dist/Image-BkvoN6Va.mjs +0 -37
- package/dist/Image-BkvoN6Va.mjs.map +0 -1
- package/dist/Legend-zR_qvYxu.mjs +0 -35
- package/dist/Legend-zR_qvYxu.mjs.map +0 -1
- package/dist/LineBlock-DRrGaTVf.mjs +0 -33
- package/dist/LineBlock-DRrGaTVf.mjs.map +0 -1
- package/dist/LineSingle-0djhboXu.mjs +0 -34
- package/dist/LineSingle-0djhboXu.mjs.map +0 -1
- package/dist/Literal-B_0bDO6F.mjs +0 -42
- package/dist/Literal-B_0bDO6F.mjs.map +0 -1
- package/dist/LiteralBlock-BLa6tk4x.mjs +0 -37
- package/dist/LiteralBlock-BLa6tk4x.mjs.map +0 -1
- package/dist/Math-Cq4PVbWU.mjs +0 -28
- package/dist/Math-Cq4PVbWU.mjs.map +0 -1
- package/dist/MathBlock-BQlgpnCi.mjs +0 -59
- package/dist/MathBlock-BQlgpnCi.mjs.map +0 -1
- package/dist/Note-DfIeqrXb.mjs +0 -34
- package/dist/Note-DfIeqrXb.mjs.map +0 -1
- package/dist/NumberReference-Bzq9ZOkm.mjs +0 -48
- package/dist/NumberReference-Bzq9ZOkm.mjs.map +0 -1
- package/dist/Problematic-C_GOe5g8.mjs +0 -36
- package/dist/Problematic-C_GOe5g8.mjs.map +0 -1
- package/dist/Raw-DuZmU9hd.mjs +0 -10
- package/dist/Raw-DuZmU9hd.mjs.map +0 -1
- package/dist/Reference-C3p4_jzs.mjs +0 -53
- package/dist/Reference-C3p4_jzs.mjs.map +0 -1
- package/dist/Section-C1fT1LoO.mjs +0 -37
- package/dist/Section-C1fT1LoO.mjs.map +0 -1
- package/dist/Skip-CRGkjuMM.mjs +0 -19
- package/dist/Skip-CRGkjuMM.mjs.map +0 -1
- package/dist/StandardElement-DObLRysY.mjs +0 -57
- package/dist/StandardElement-DObLRysY.mjs.map +0 -1
- package/dist/Text-CT8nEMkp.mjs +0 -24
- package/dist/Text-CT8nEMkp.mjs.map +0 -1
- package/dist/Title-BXKmKZJr.mjs +0 -44
- package/dist/Title-BXKmKZJr.mjs.map +0 -1
- package/dist/TodoNode-BubW_p1P.mjs +0 -38
- package/dist/TodoNode-BubW_p1P.mjs.map +0 -1
- package/dist/Topic-Cw8NozpE.mjs +0 -36
- package/dist/Topic-Cw8NozpE.mjs.map +0 -1
- package/dist/Transition-CWMp4Zlv.mjs +0 -15
- package/dist/Transition-CWMp4Zlv.mjs.map +0 -1
- package/dist/Warning-B2aBs-ON.mjs +0 -42
- package/dist/Warning-B2aBs-ON.mjs.map +0 -1
- package/dist/basereference-B1sG1P00.mjs +0 -42
- package/dist/basereference-B1sG1P00.mjs.map +0 -1
- package/dist/entry-NtWSzZvs.mjs +0 -1990
- package/dist/entry-NtWSzZvs.mjs.map +0 -1
- package/dist/methods-DhzaI6N4.mjs +0 -72
- package/dist/methods-DhzaI6N4.mjs.map +0 -1
package/dist/vue3-sphinx-xml.mjs
CHANGED
|
@@ -1,10 +1,132 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
1
|
+
import { t as e } from "./sphinx-BkN2WZRJ.mjs";
|
|
2
|
+
import { r as t, t as n } from "./utilities-RjHWUaCa.mjs";
|
|
3
|
+
import { createPinia as r } from "pinia";
|
|
4
|
+
import i from "vue3-katex";
|
|
3
5
|
import "katex/dist/katex.min.css";
|
|
4
|
-
import "@hsorby/vue3-highlightjs";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import { installVue3Highlightjs as a } from "@hsorby/vue3-highlightjs";
|
|
7
|
+
import { createBlock as o, defineAsyncComponent as s, openBlock as c, ref as l, toRefs as u, unref as d, watch as f } from "vue";
|
|
8
|
+
import { useRoute as p, useRouter as m } from "vue-router";
|
|
9
|
+
//#region src/components/SphinxPage.vue
|
|
10
|
+
var h = {
|
|
11
|
+
__name: "SphinxPage",
|
|
12
|
+
props: {
|
|
13
|
+
baseURL: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "/"
|
|
16
|
+
},
|
|
17
|
+
referenceBaseURL: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: void 0
|
|
20
|
+
},
|
|
21
|
+
downloadBaseURL: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
imagesBaseURL: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
},
|
|
29
|
+
indexFileName: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "index"
|
|
32
|
+
},
|
|
33
|
+
pageNotFoundName: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "404"
|
|
36
|
+
},
|
|
37
|
+
scrollDelay: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 200
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(r) {
|
|
43
|
+
let i = s(() => import("./Document-D1U8scRh.mjs")), { baseURL: a, referenceBaseURL: h, downloadBaseURL: g, imagesBaseURL: _, indexFileName: v, pageNotFoundName: y, scrollDelay: b } = u(r), x = m(), S = p(), C = e();
|
|
44
|
+
console.log("*********** SphinxPage.vue loaded ***********"), console.log(`Base URL: ${a.value}`), console.log(S), console.log(x);
|
|
45
|
+
let w = l(null), T = l(void 0), E = l(""), D = {
|
|
46
|
+
path: void 0,
|
|
47
|
+
hash: void 0
|
|
48
|
+
};
|
|
49
|
+
function O(e) {
|
|
50
|
+
setTimeout(() => {
|
|
51
|
+
T.value = e.offsetTop, window.scrollTo({
|
|
52
|
+
top: e.offsetTop,
|
|
53
|
+
behavior: "smooth"
|
|
54
|
+
}), setTimeout(() => {
|
|
55
|
+
T.value !== e.offsetTop && O(e);
|
|
56
|
+
}, 10);
|
|
57
|
+
}, b.value);
|
|
58
|
+
}
|
|
59
|
+
f(S, (e) => {
|
|
60
|
+
let r = t(e);
|
|
61
|
+
if (r !== void 0) {
|
|
62
|
+
if (D.path === void 0 || e.path !== D.path) {
|
|
63
|
+
let t = n(e);
|
|
64
|
+
k(e.path, r, t), e.hash && setTimeout(() => {
|
|
65
|
+
let t = e.hash;
|
|
66
|
+
t.startsWith("#") && (t = t.slice(1));
|
|
67
|
+
let n = document.getElementById(t);
|
|
68
|
+
n && O(n);
|
|
69
|
+
}, b.value);
|
|
70
|
+
} else if (e.path === D.path && e.hash) {
|
|
71
|
+
let t = e.hash;
|
|
72
|
+
t.startsWith("#") && (t = t.slice(1));
|
|
73
|
+
let n = document.getElementById(t);
|
|
74
|
+
n && window.scrollTo({
|
|
75
|
+
top: n.offsetTop,
|
|
76
|
+
behavior: "smooth"
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
D.path = e.path, D.hash = e.hash;
|
|
81
|
+
}, {
|
|
82
|
+
flush: "pre",
|
|
83
|
+
immediate: !0,
|
|
84
|
+
deep: !0
|
|
85
|
+
});
|
|
86
|
+
function k(e, t, n) {
|
|
87
|
+
n ||= v.value;
|
|
88
|
+
let r = _.value === "" ? `${a.value}/_images` : _.value, i = g.value === "" ? `${a.value}/_downloads` : g.value, o = a.value, s = t, c = n;
|
|
89
|
+
if (h.value) {
|
|
90
|
+
let e = o.split(h.value);
|
|
91
|
+
e.pop() === v.value && e.pop(), h.value !== "/" && e.push(h.value), o = e.join("/").replace("//", "/");
|
|
92
|
+
let t = s.split(h.value), n = t.pop();
|
|
93
|
+
t.push(h.value), s = t.join("/").replace("//", "/"), c = (n[0] === "/" ? n.slice(1) : n) + "/" + c;
|
|
94
|
+
}
|
|
95
|
+
C.registerRouteUrl({
|
|
96
|
+
baseURL: o,
|
|
97
|
+
routeURL: s,
|
|
98
|
+
downloadsURL: i,
|
|
99
|
+
imagesURL: r,
|
|
100
|
+
offsetRouteURL: h.value === void 0 ? !1 : t
|
|
101
|
+
}), C.fetchPage({
|
|
102
|
+
page_name: c,
|
|
103
|
+
page_route: s,
|
|
104
|
+
page_url: o
|
|
105
|
+
}).then((e) => {
|
|
106
|
+
w.value = e, E.value = "page_" + c.replace("/", "_");
|
|
107
|
+
}).catch(() => {
|
|
108
|
+
if (n.endsWith("index")) x.push({
|
|
109
|
+
name: y.value,
|
|
110
|
+
query: { path: e }
|
|
111
|
+
});
|
|
112
|
+
else {
|
|
113
|
+
let t = e + (e.endsWith("/") ? "" : "/") + v.value;
|
|
114
|
+
x.push(t);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return (e, t) => (c(), o(d(i), {
|
|
119
|
+
element: d(w),
|
|
120
|
+
id: d(E)
|
|
121
|
+
}, null, 8, ["element", "id"]));
|
|
122
|
+
}
|
|
9
123
|
};
|
|
10
|
-
//#
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region src/entry.js
|
|
126
|
+
function g(e, t = {}) {
|
|
127
|
+
e.use(r()), e.use(i, t.katex), e.use(a);
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
export { h as SphinxPage, g as installVue3SphinxXml };
|
|
131
|
+
|
|
132
|
+
//# sourceMappingURL=vue3-sphinx-xml.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue3-sphinx-xml.mjs","
|
|
1
|
+
{"version":3,"file":"vue3-sphinx-xml.mjs","names":[],"sources":["../src/components/SphinxPage.vue","../src/entry.js"],"sourcesContent":["<template>\n <document :element=\"element\" :id=\"id\" />\n</template>\n\n<script setup>\nimport { defineAsyncComponent, defineProps, ref, toRefs, watch } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { determineRouteUrl, constructPageNameFromRoute } from '../js/utilities'\n\nconst Document = defineAsyncComponent(() =>\n import('./templates/Document.vue')\n)\n\nconst props = defineProps({\n baseURL: {\n type: String,\n default: '/',\n },\n referenceBaseURL: {\n type: String,\n default: undefined,\n },\n downloadBaseURL: {\n type: String,\n default: '',\n },\n imagesBaseURL: {\n type: String,\n default: '',\n },\n indexFileName: {\n type: String,\n default: 'index',\n },\n pageNotFoundName: {\n type: String,\n default: '404',\n },\n scrollDelay: {\n type: Number,\n default: 200,\n },\n})\n\nconst {\n baseURL,\n referenceBaseURL,\n downloadBaseURL,\n imagesBaseURL,\n indexFileName,\n pageNotFoundName,\n scrollDelay,\n} = toRefs(props)\n\nconst router = useRouter()\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\n\nconsole.log('*********** SphinxPage.vue loaded ***********')\nconsole.log(`Base URL: ${baseURL.value}`)\nconsole.log(route)\nconsole.log(router)\nlet element = ref(null)\nlet scrollToTarget = ref(undefined)\nlet id = ref('')\nlet previousRoute = {\n path: undefined,\n hash: undefined,\n}\n\nfunction followScrollTarget(elem) {\n setTimeout(() => {\n scrollToTarget.value = elem.offsetTop\n window.scrollTo({\n top: elem.offsetTop,\n behavior: 'smooth',\n })\n setTimeout(() => {\n if (scrollToTarget.value !== elem.offsetTop) {\n followScrollTarget(elem)\n }\n }, 10)\n }, scrollDelay.value)\n}\n\nwatch(\n route,\n (to) => {\n const routeURL = determineRouteUrl(to)\n if (routeURL !== undefined) {\n if (previousRoute.path === undefined || to.path !== previousRoute.path) {\n const pageName = constructPageNameFromRoute(to)\n fetchPageData(to.path, routeURL, pageName)\n if (to.hash) {\n setTimeout(() => {\n let hash = to.hash\n if (hash.startsWith('#')) {\n hash = hash.slice(1)\n }\n const elem = document.getElementById(hash)\n if (elem) {\n followScrollTarget(elem)\n }\n }, scrollDelay.value)\n }\n } else if (to.path === previousRoute.path && to.hash) {\n let hash = to.hash\n if (hash.startsWith('#')) {\n hash = hash.slice(1)\n }\n const elem = document.getElementById(hash)\n if (elem) {\n window.scrollTo({\n top: elem.offsetTop,\n behavior: 'smooth',\n })\n }\n }\n }\n\n previousRoute.path = to.path\n previousRoute.hash = to.hash\n },\n { flush: 'pre', immediate: true, deep: true },\n)\n\nfunction fetchPageData(currentPath, routeURL, pageName) {\n if (!pageName) {\n pageName = indexFileName.value\n }\n const resolvedImagesBaseURL =\n imagesBaseURL.value === ''\n ? `${baseURL.value}/_images`\n : imagesBaseURL.value\n const resolvedDownloadBaseURL =\n downloadBaseURL.value === ''\n ? `${baseURL.value}/_downloads`\n : downloadBaseURL.value\n\n let tmpBaseURL = baseURL.value\n let tmpRouteURL = routeURL\n let tmpPageName = pageName\n if (referenceBaseURL.value) {\n let baseURLParts = tmpBaseURL.split(referenceBaseURL.value)\n const value = baseURLParts.pop()\n if (value === indexFileName.value) {\n baseURLParts.pop()\n }\n if (referenceBaseURL.value !== '/') {\n baseURLParts.push(referenceBaseURL.value)\n }\n tmpBaseURL = baseURLParts.join('/').replace('//', '/')\n let routeURLParts = tmpRouteURL.split(referenceBaseURL.value)\n const routeEnd = routeURLParts.pop()\n routeURLParts.push(referenceBaseURL.value)\n tmpRouteURL = routeURLParts.join('/').replace('//', '/')\n const pagePrefix = routeEnd[0] === '/' ? routeEnd.slice(1) : routeEnd\n tmpPageName = pagePrefix + '/' + tmpPageName\n }\n\n sphinxStore.registerRouteUrl({\n baseURL: tmpBaseURL,\n routeURL: tmpRouteURL,\n downloadsURL: resolvedDownloadBaseURL,\n imagesURL: resolvedImagesBaseURL,\n offsetRouteURL: referenceBaseURL.value === undefined ? false : routeURL,\n })\n\n sphinxStore\n .fetchPage({\n page_name: tmpPageName,\n page_route: tmpRouteURL,\n page_url: tmpBaseURL,\n })\n .then((response) => {\n element.value = response\n id.value = 'page_' + tmpPageName.replace('/', '_')\n })\n .catch(() => {\n if (pageName.endsWith('index')) {\n router.push({\n name: pageNotFoundName.value,\n query: {\n path: currentPath,\n },\n })\n } else {\n // Didn't find a path with the original name, maybe it's an index page?\n const newPath =\n currentPath + (currentPath.endsWith('/') ? '' : '/') + indexFileName.value\n router.push(newPath)\n }\n })\n}\n</script>\n","import { createPinia } from 'pinia'\n\nimport Vue3Katex from 'vue3-katex'\nimport 'katex/dist/katex.min.css'\n\nimport { installVue3Highlightjs } from '@hsorby/vue3-highlightjs'\n\nimport SphinxPage from './components/SphinxPage.vue'\n\nfunction installVue3SphinxXml(app, options = {}) {\n // Create a local pinia instance???\n app.use(createPinia())\n app.use(Vue3Katex, options.katex)\n app.use(installVue3Highlightjs)\n}\n\nexport { installVue3SphinxXml, SphinxPage }\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue3-sphinx-xml",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://github.com/hsorby/vue3-sphinx-xml#readme",
|
|
6
6
|
"repository": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"dev": "vite"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@hsorby/vue3-highlightjs": "^1.0
|
|
31
|
-
"axios": "^1.
|
|
32
|
-
"vue3-katex": "^0.8.
|
|
30
|
+
"@hsorby/vue3-highlightjs": "^1.1.0",
|
|
31
|
+
"axios": "^1.17.0",
|
|
32
|
+
"vue3-katex": "^0.8.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"katex": "^0.16.0",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"vue-router": "^4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
42
|
-
"katex": "^0.
|
|
43
|
-
"pinia": "^3.0.
|
|
44
|
-
"sass": "^1.
|
|
45
|
-
"vite": "^
|
|
46
|
-
"vue": "^3.5.
|
|
47
|
-
"vue-router": "^
|
|
41
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
42
|
+
"katex": "^0.17.0",
|
|
43
|
+
"pinia": "^3.0.4",
|
|
44
|
+
"sass": "^1.100.0",
|
|
45
|
+
"vite": "^8.0.16",
|
|
46
|
+
"vue": "^3.5.35",
|
|
47
|
+
"vue-router": "^5.1.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { toRefs as v, ref as h, computed as y, createElementBlock as r, openBlock as o, mergeProps as k, unref as a, Fragment as C, renderList as b, createBlock as g, resolveDynamicComponent as j } from "vue";
|
|
2
|
-
import { u as x } from "./methods-DhzaI6N4.mjs";
|
|
3
|
-
import { u as B, a as N } from "./Document-Ciwh11I6.mjs";
|
|
4
|
-
const O = ["id"], L = {
|
|
5
|
-
__name: "Admonition",
|
|
6
|
-
props: {
|
|
7
|
-
node: {
|
|
8
|
-
type: void 0,
|
|
9
|
-
default: null
|
|
10
|
-
},
|
|
11
|
-
componentName: {
|
|
12
|
-
type: String
|
|
13
|
-
},
|
|
14
|
-
properties: {
|
|
15
|
-
type: Object
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(c) {
|
|
19
|
-
const p = c, { node: e } = v(p), n = h({}), { dataObject: i, extractId: l } = x(), { classes: m } = B(e), { id: u } = l(e.value), { children: d } = N(e), f = y(() => ["admonition", ...m.value]), s = i(e.value, f.value);
|
|
20
|
-
return n.value = {
|
|
21
|
-
...s.attrs,
|
|
22
|
-
class: s.class.join(" ")
|
|
23
|
-
}, (A, D) => (o(), r("div", k({ id: a(u) }, n.value), [
|
|
24
|
-
(o(!0), r(C, null, b(a(d), (t, _) => (o(), g(j(t.component), {
|
|
25
|
-
key: "admonition_component_" + _,
|
|
26
|
-
node: t.node,
|
|
27
|
-
componentName: t.name,
|
|
28
|
-
properties: t.properties
|
|
29
|
-
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
30
|
-
], 16, O));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
L as default
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=Admonition-C1LWpeza.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Admonition-C1LWpeza.mjs","sources":["../src/components/templates/Admonition.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'admonition_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst attrs = ref({})\n\nconst { dataObject, extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['admonition', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\n\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n}\n</script>\n"],"names":["props","__props","node","toRefs","attrs","ref","dataObject","extractId","useMethods","classes","useClasses","id","children","useChildren","combinedClasses","computed","result","_openBlock","_createElementBlock","_mergeProps","_unref","_Fragment","_renderList","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAQC,EAAI,CAAA,CAAE,GAEd,EAAE,YAAAC,GAAY,WAAAC,EAAS,IAAKC,EAAU,GACtC,EAAE,SAAAC,EAAO,IAAKC,EAAWR,CAAI,GAE7B,EAAE,IAAAS,EAAE,IAAKJ,EAAUL,EAAK,KAAK,GAE7B,EAAE,UAAAU,EAAQ,IAAKC,EAAYX,CAAI,GAE/BY,IAAkBC,EAAS,MACxB,CAAC,cAAc,GAAGN,EAAQ,KAAK,CACvC,GAEKO,IAASV,EAAWJ,EAAK,OAAOY,EAAgB,KAAK;AAE3D,WAAAV,EAAM,QAAQ;AAAA,MACZ,GAAGY,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAC9B,cAlDEC,EAAA,GAAAC,EASM,OATNC,EASM,EATA,IAAIC,EAAAT,CAAA,EAAE,GAAKP,EAAA,KAAK,GAAA;AAAA,OACpBa,EAAA,EAAA,GAAAC,EAOEG,GAAA,MAAAC,EANqBF,EAAAR,CAAA,GAAQ,CAArBW,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,+BAA+BC;AAAA,QAE/B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { toRefs as m, createElementBlock as n, openBlock as o, createElementVNode as s, Fragment as u, renderList as a, unref as d, createBlock as i, resolveDynamicComponent as f } from "vue";
|
|
2
|
-
import { a as _ } from "./Document-Ciwh11I6.mjs";
|
|
3
|
-
const b = {
|
|
4
|
-
__name: "BlockQuote",
|
|
5
|
-
props: {
|
|
6
|
-
node: {
|
|
7
|
-
type: void 0,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
componentName: {
|
|
11
|
-
type: String
|
|
12
|
-
},
|
|
13
|
-
properties: {
|
|
14
|
-
type: Object
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
setup(t) {
|
|
18
|
-
const r = t, { node: p } = m(r), { children: l } = _(p);
|
|
19
|
-
return (k, y) => (o(), n("blockquote", null, [
|
|
20
|
-
s("div", null, [
|
|
21
|
-
(o(!0), n(u, null, a(d(l), (e, c) => (o(), i(f(e.component), {
|
|
22
|
-
key: "blockquote_component_" + c,
|
|
23
|
-
node: e.node,
|
|
24
|
-
componentName: e.name,
|
|
25
|
-
properties: e.properties
|
|
26
|
-
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
27
|
-
])
|
|
28
|
-
]));
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
b as default
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=BlockQuote-DQGmutzn.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockQuote-DQGmutzn.mjs","sources":["../src/components/templates/BlockQuote.vue"],"sourcesContent":["<template>\n <blockquote>\n <div>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'blockquote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n </blockquote>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","_createElementBlock","_createElementVNode","_openBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI;2BAlCnCI,EAWa,cAAA,MAAA;AAAA,MAVXC,EASM,OAAA,MAAA;AAAA,SARJC,EAAA,EAAA,GAAAF,EAOEG,GAAA,MAAAC,EANqBC,EAAAP,CAAA,GAAQ,CAArBQ,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,UADf,+BAA+BC;AAAA,UAE/B,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { toRefs as d, ref as f, computed as _, createElementBlock as s, openBlock as n, normalizeProps as v, guardReactiveProps as b, Fragment as y, renderList as C, unref as h, createBlock as k, resolveDynamicComponent as N } from "vue";
|
|
2
|
-
import { u as g, a as j } from "./Document-Ciwh11I6.mjs";
|
|
3
|
-
import { u as B } from "./methods-DhzaI6N4.mjs";
|
|
4
|
-
const D = {
|
|
5
|
-
__name: "CaptionNumber",
|
|
6
|
-
props: {
|
|
7
|
-
node: {
|
|
8
|
-
type: void 0,
|
|
9
|
-
default: null
|
|
10
|
-
},
|
|
11
|
-
componentName: {
|
|
12
|
-
type: String
|
|
13
|
-
},
|
|
14
|
-
properties: {
|
|
15
|
-
type: Object
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(a) {
|
|
19
|
-
const p = a, { dataObject: c } = B(), { node: t } = d(p), o = f({}), { classes: u } = g(t), { children: l } = j(t), m = _(() => ["caption-number", ...u.value]), r = c(t.value, m.value);
|
|
20
|
-
return o.value = {
|
|
21
|
-
...r.attrs,
|
|
22
|
-
class: r.class.join(" ")
|
|
23
|
-
}, (x, O) => (n(), s("span", v(b(o.value)), [
|
|
24
|
-
(n(!0), s(y, null, C(h(l), (e, i) => (n(), k(N(e.component), {
|
|
25
|
-
key: "caption_number_" + i,
|
|
26
|
-
node: e.node,
|
|
27
|
-
componentName: e.name,
|
|
28
|
-
properties: e.properties
|
|
29
|
-
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
30
|
-
], 16));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
export {
|
|
34
|
-
D as default
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=CaptionNumber-CqeASt_i.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionNumber-CqeASt_i.mjs","sources":["../src/components/templates/CaptionNumber.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'caption_number_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['caption-number', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n\n</script>\n"],"names":["props","__props","dataObject","useMethods","node","toRefs","attrs","ref","classes","useClasses","children","useChildren","combinedClasses","computed","result","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAU,IAAKC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAA,CAAE,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWL,CAAI,GAE7B,EAAE,UAAAM,EAAQ,IAAKC,EAAYP,CAAI,GAE/BQ,IAAkBC,EAAS,MACxB,CAAC,kBAAkB,GAAGL,EAAQ,KAAK,CAC3C,GAEKM,IAASZ,EAAWE,EAAK,OAAOQ,EAAgB,KAAK;AAC3D,WAAAN,EAAM,QAAQ;AAAA,MACV,GAAGQ,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAChC,cA9CEC,EAAA,GAAAC,EASO,YATEV,EAAA,KAAK,CAAA,GAAA;AAAA,OACZS,EAAA,EAAA,GAAAC,EAOEC,GAAA,MAAAC,EANqBC,EAAAT,CAAA,GAAQ,CAArBU,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,yBAAyBC;AAAA,QAEzB,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { toRefs as m, computed as a, createElementBlock as n, openBlock as l, Fragment as i, renderList as d, normalizeStyle as f } from "vue";
|
|
2
|
-
const _ = {
|
|
3
|
-
__name: "ColumnGroup",
|
|
4
|
-
props: {
|
|
5
|
-
node: {
|
|
6
|
-
type: void 0,
|
|
7
|
-
default: null
|
|
8
|
-
},
|
|
9
|
-
componentName: {
|
|
10
|
-
type: String
|
|
11
|
-
},
|
|
12
|
-
properties: {
|
|
13
|
-
type: Object
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
setup(u) {
|
|
17
|
-
const s = u, { properties: c } = m(s), p = a(() => {
|
|
18
|
-
let o = 0, r = [];
|
|
19
|
-
for (const e of c.value.colspecs)
|
|
20
|
-
o += Number(e), r.push(Number(e));
|
|
21
|
-
let t = [];
|
|
22
|
-
for (const e of r)
|
|
23
|
-
t.push(e / o * 100);
|
|
24
|
-
return t;
|
|
25
|
-
});
|
|
26
|
-
return (o, r) => (l(), n("colgroup", null, [
|
|
27
|
-
(l(!0), n(i, null, d(p.value, (t, e) => (l(), n("col", {
|
|
28
|
-
key: "col_" + e,
|
|
29
|
-
style: f("width: " + t + "%")
|
|
30
|
-
}, null, 4))), 128))
|
|
31
|
-
]));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
_ as default
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=ColumnGroup-DYs1xB1a.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnGroup-DYs1xB1a.mjs","sources":["../src/components/templates/ColumnGroup.vue"],"sourcesContent":["<template>\n <colgroup>\n <col\n v-for=\"(v, index) in columnWidths\"\n :key=\"'col_' + index\"\n :style=\"'width: ' + v + '%'\"\n />\n </colgroup>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { properties } = toRefs(props)\n\nconst columnWidths = computed(() => {\n let sum = 0\n let widths = []\n for (const value of properties.value.colspecs) {\n sum += Number(value)\n widths.push(Number(value))\n }\n let percentWidths = []\n for (const value of widths) {\n percentWidths.push((value / sum) * 100)\n }\n\n return percentWidths\n})\n</script>\n"],"names":["props","__props","properties","toRefs","columnWidths","computed","sum","widths","value","percentWidths","_createElementBlock","_openBlock","_Fragment","_renderList","v","index"],"mappings":";;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAU,IAAKC,EAAOH,CAAK,GAE7BI,IAAeC,EAAS,MAAM;AAClC,UAAIC,IAAM,GACNC,IAAS,CAAA;AACb,iBAAWC,KAASN,EAAW,MAAM;AACnC,QAAAI,KAAO,OAAOE,CAAK,GACnBD,EAAO,KAAK,OAAOC,CAAK,CAAC;AAE3B,UAAIC,IAAgB,CAAA;AACpB,iBAAWD,KAASD;AAClB,QAAAE,EAAc,KAAMD,IAAQF,IAAO,GAAG;AAGxC,aAAOG;AAAA,IACT,CAAC;2BAxCCC,EAMW,YAAA,MAAA;AAAA,OALTC,EAAA,EAAA,GAAAD,EAIEE,GAAA,MAAAC,EAHqBT,EAAA,OAAY,CAAzBU,GAAGC,YADbL,EAIE,OAAA;AAAA,QAFC,cAAcK;AAAA,QACd,qBAAmBD,IAAC,GAAA;AAAA;;;;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { createCommentVNode as r, toRefs as p, ref as s, createBlock as a, openBlock as u } from "vue";
|
|
2
|
-
const l = {
|
|
3
|
-
props: ["content"],
|
|
4
|
-
setup(e) {
|
|
5
|
-
return () => r(e.content || "");
|
|
6
|
-
}
|
|
7
|
-
}, f = {
|
|
8
|
-
__name: "Comment",
|
|
9
|
-
props: {
|
|
10
|
-
node: {
|
|
11
|
-
type: void 0,
|
|
12
|
-
default: null
|
|
13
|
-
},
|
|
14
|
-
componentName: {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
properties: {
|
|
18
|
-
type: Object
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(e) {
|
|
22
|
-
const o = e, { node: c } = p(o), t = s("");
|
|
23
|
-
for (const n of c.value.childNodes)
|
|
24
|
-
t.value += n.nodeValue;
|
|
25
|
-
return (n, m) => (u(), a(l, { content: t.value }, null, 8, ["content"]));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
f as default
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=Comment-DpyTzHo4.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Comment-DpyTzHo4.mjs","sources":["../src/components/CommentNode.vue","../src/components/templates/Comment.vue"],"sourcesContent":["<script>\n import { createCommentVNode } from 'vue'\n export default {\n props: ['content'],\n setup(props) {\n return () => createCommentVNode(props.content || '')\n }\n }\n</script>","<template>\n <comment-node :content=\"text\" />\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\nimport CommentNode from '../CommentNode.vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst text = ref('')\n\nfor (const n of node.value.childNodes) {\n text.value += n.nodeValue\n}\n</script>\n"],"names":["_sfc_main","props","createCommentVNode","__props","node","toRefs","text","ref","_createBlock","CommentNode"],"mappings":";AAEE,MAAKA,IAAU;AAAA,EACb,OAAO,CAAC,SAAS;AAAA,EACjB,MAAMC,GAAO;AACX,WAAO,MAAMC,EAAmBD,EAAM,WAAW,EAAE;AAAA,EACrD;AACF;;;;;;;;;;;;;;;ACCF,UAAMA,IAAQE,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOJ,CAAK,GACvBK,IAAOC,EAAI,EAAE;AAEnB,eAAW,KAAKH,EAAK,MAAM;AACzB,MAAAE,EAAK,SAAS,EAAE;2BAxBhBE,EAAgCC,GAAA,EAAjB,SAASH,EAAA,MAAI,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA;AAAA;;"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { toRefs as c, createElementBlock as s, openBlock as n, Fragment as a, renderList as l, unref as u, createBlock as d, resolveDynamicComponent as i } from "vue";
|
|
2
|
-
import { a as f } from "./Document-Ciwh11I6.mjs";
|
|
3
|
-
const B = {
|
|
4
|
-
__name: "Compound",
|
|
5
|
-
props: {
|
|
6
|
-
node: {
|
|
7
|
-
type: void 0,
|
|
8
|
-
default: null
|
|
9
|
-
},
|
|
10
|
-
componentName: {
|
|
11
|
-
type: String
|
|
12
|
-
},
|
|
13
|
-
properties: {
|
|
14
|
-
type: Object
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
setup(o) {
|
|
18
|
-
const t = o, { node: r } = c(t), { children: p } = f(r);
|
|
19
|
-
return (_, y) => (n(!0), s(a, null, l(u(p), (e, m) => (n(), d(i(e.component), {
|
|
20
|
-
key: "compound_component_" + m,
|
|
21
|
-
node: e.node,
|
|
22
|
-
componentName: e.name,
|
|
23
|
-
properties: e.properties
|
|
24
|
-
}, null, 8, ["node", "componentName", "properties"]))), 128));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
B as default
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=Compound-BvroDjHX.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Compound-BvroDjHX.mjs","sources":["../src/components/templates/Compound.vue"],"sourcesContent":["<template>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'compound_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI;sBA9BnCI,EAAA,EAAA,GAAAC,EAOEC,GAAA,MAAAC,EANqBC,EAAAN,CAAA,GAAQ,CAArBO,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,MADf,6BAA6BC;AAAA,MAE7B,MAAMD,EAAE;AAAA,MACR,eAAeA,EAAE;AAAA,MACjB,YAAYA,EAAE;AAAA;;;"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { toRefs as _, ref as a, onMounted as b, createElementBlock as u, openBlock as s, mergeProps as h, toHandlerKey as y, Fragment as k, renderList as x, unref as C, createBlock as E, resolveDynamicComponent as S } from "vue";
|
|
2
|
-
import { _ as N, a as B, u as H } from "./Document-Ciwh11I6.mjs";
|
|
3
|
-
import { u as A } from "./methods-DhzaI6N4.mjs";
|
|
4
|
-
const I = {
|
|
5
|
-
__name: "Container",
|
|
6
|
-
props: {
|
|
7
|
-
node: {
|
|
8
|
-
type: void 0,
|
|
9
|
-
default: null
|
|
10
|
-
},
|
|
11
|
-
componentName: {
|
|
12
|
-
type: String
|
|
13
|
-
},
|
|
14
|
-
properties: {
|
|
15
|
-
type: Object
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(p) {
|
|
19
|
-
const d = p, { node: l } = _(d), { children: m } = B(l), { classes: t } = H(l), { toggleActiveClass: f } = A(), n = a([]), r = a(!1), c = a(null);
|
|
20
|
-
n.value = [...t.value];
|
|
21
|
-
function v() {
|
|
22
|
-
f(n.value);
|
|
23
|
-
let i = n.value.indexOf("active") === -1 ? "none" : "block", e = c.value.nextElementSibling;
|
|
24
|
-
for (; e !== null; )
|
|
25
|
-
e.style.display = i, e = e.nextElementSibling;
|
|
26
|
-
}
|
|
27
|
-
return b(() => {
|
|
28
|
-
if (t.value.includes("header") || t.value.includes("header-left")) {
|
|
29
|
-
n.value.push("inactive");
|
|
30
|
-
const o = l.value.parentElement;
|
|
31
|
-
o && o.getAttribute("classes").includes("toggle") && (r.value = !0, n.value.push("toggle-header"));
|
|
32
|
-
}
|
|
33
|
-
t.value.includes("tab2name") && console.log("***** IN USE tab2name found ??? *****");
|
|
34
|
-
}), (o, i) => (s(), u("div", h({ class: n.value }, { [y(r.value && "click")]: v }, {
|
|
35
|
-
ref_key: "containerElement",
|
|
36
|
-
ref: c
|
|
37
|
-
}), [
|
|
38
|
-
(s(!0), u(k, null, x(C(m), (e, g) => (s(), E(S(e.component), {
|
|
39
|
-
key: "container_component_" + g,
|
|
40
|
-
node: e.node,
|
|
41
|
-
componentName: e.name,
|
|
42
|
-
properties: e.properties
|
|
43
|
-
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
44
|
-
], 16));
|
|
45
|
-
}
|
|
46
|
-
}, j = /* @__PURE__ */ N(I, [["__scopeId", "data-v-6c083687"]]);
|
|
47
|
-
export {
|
|
48
|
-
j as default
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=Container-BTZf-b6P.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container-BTZf-b6P.mjs","sources":["../src/components/templates/Container.vue"],"sourcesContent":["<template>\n <div\n :class=\"combinedClasses\"\n @[isToggleHeader&&`click`]=\"toggleHeaderClicked\"\n ref=\"containerElement\"\n >\n <component\n v-for=\"(c, index) in children\"\n :key=\"'container_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { onMounted, ref, toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { classes } = useClasses(node)\nconst { toggleActiveClass } = useMethods()\n\nconst combinedClasses = ref([])\nconst isToggleHeader = ref(false)\nconst containerElement = ref(null)\n\ncombinedClasses.value = [...classes.value]\n\nfunction toggleHeaderClicked() {\n toggleActiveClass(combinedClasses.value)\n const index = combinedClasses.value.indexOf('active')\n let blockType = index === -1 ? 'none' : 'block'\n\n let elementSibling = containerElement.value.nextElementSibling\n while (elementSibling !== null) {\n elementSibling.style.display = blockType\n elementSibling = elementSibling.nextElementSibling\n }\n}\n\nonMounted(() => {\n if (\n classes.value.includes('header') ||\n classes.value.includes('header-left')\n ) {\n combinedClasses.value.push('inactive')\n const parent = node.value.parentElement\n if (parent) {\n if (parent.getAttribute('classes').includes('toggle')) {\n isToggleHeader.value = true\n combinedClasses.value.push('toggle-header')\n }\n }\n }\n\n if (classes.value.includes('tab2name')) {\n console.log('***** IN USE tab2name found ??? *****')\n }\n})\n</script>\n\n<style scoped>\n.toggle-header {\n cursor: pointer;\n}\n</style>\n"],"names":["props","__props","node","toRefs","children","useChildren","classes","useClasses","toggleActiveClass","useMethods","combinedClasses","ref","isToggleHeader","containerElement","toggleHeaderClicked","blockType","elementSibling","onMounted","parent","_createElementBlock","_mergeProps","_toHandlerKey","_openBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,SAAAI,EAAO,IAAKC,EAAWL,CAAI,GAC7B,EAAE,mBAAAM,EAAiB,IAAKC,EAAU,GAElCC,IAAkBC,EAAI,CAAA,CAAE,GACxBC,IAAiBD,EAAI,EAAK,GAC1BE,IAAmBF,EAAI,IAAI;AAEjC,IAAAD,EAAgB,QAAQ,CAAC,GAAGJ,EAAQ,KAAK;AAEzC,aAASQ,IAAsB;AAC7B,MAAAN,EAAkBE,EAAgB,KAAK;AAEvC,UAAIK,IADUL,EAAgB,MAAM,QAAQ,QAAQ,MAC1B,KAAK,SAAS,SAEpCM,IAAiBH,EAAiB,MAAM;AAC5C,aAAOG,MAAmB;AACxB,QAAAA,EAAe,MAAM,UAAUD,GAC/BC,IAAiBA,EAAe;AAAA,IAEpC;AAEA,WAAAC,EAAU,MAAM;AACd,UACEX,EAAQ,MAAM,SAAS,QAAQ,KAC/BA,EAAQ,MAAM,SAAS,aAAa,GACpC;AACA,QAAAI,EAAgB,MAAM,KAAK,UAAU;AACrC,cAAMQ,IAAShB,EAAK,MAAM;AAC1B,QAAIgB,KACEA,EAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,MAClDN,EAAe,QAAQ,IACvBF,EAAgB,MAAM,KAAK,eAAe;AAAA,MAGhD;AAEA,MAAIJ,EAAQ,MAAM,SAAS,UAAU,KACnC,QAAQ,IAAI,uCAAuC;AAAA,IAEvD,CAAC,mBA7ECa,EAaM,OAbNC,EAaM,EAZH,OAAOV,EAAA,MAAe,GAAA,EAAA,CAAAW,EACtBT,EAAA,SAAc,OAAA,CAAA,GAAaE,KAAmB;AAAA,eAC3C;AAAA,MAAJ,KAAID;AAAA;OAEJS,EAAA,EAAA,GAAAH,EAOEI,GAAA,MAAAC,EANqBC,EAAArB,CAAA,GAAQ,CAArBsB,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,8BAA8BC;AAAA,QAE9B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createBlock as o, openBlock as n, resolveDynamicComponent as r, withCtx as a, createElementBlock as m, Fragment as l, renderList as c } from "vue";
|
|
2
|
-
const _ = {
|
|
3
|
-
__name: "DirectElementMap",
|
|
4
|
-
setup(s) {
|
|
5
|
-
return (t, i) => (n(), o(r(t.tag), null, {
|
|
6
|
-
default: a(() => [
|
|
7
|
-
(n(!0), m(l, null, c(t.children, (e, p) => (n(), o(r(e.component), {
|
|
8
|
-
key: "standard_element_component_" + p,
|
|
9
|
-
node: e.node,
|
|
10
|
-
componentName: e.name,
|
|
11
|
-
properties: e.properties
|
|
12
|
-
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
13
|
-
]),
|
|
14
|
-
_: 1
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
_ as default
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=DirectElementMap-B-wTPjj0.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DirectElementMap-B-wTPjj0.mjs","sources":["../src/components/templates/DirectElementMap.vue"],"sourcesContent":["\n<template>\n <component :is=\"tag\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'standard_element_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n\n<script setup>\n// import { defineProps, toRefs } from 'vue'\n\n// import { nodeMap } from '../../js/nodemap'\n// import { useChildren } from '../../composables/computed'\n\n// const props = defineProps({\n// node: {\n// type: undefined,\n// default: null,\n// },\n// componentName: {\n// type: String,\n// },\n// })\n\n// const { node } = toRefs(props)\n// const { children } = useChildren(node)\n\n// const tag = nodeMap.get(node.value.nodeName)\n</script>\n\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","tag","_createElementBlock","_Fragment","_renderList","children","c","index"],"mappings":";;;;sBAEEA,EAAA,GAAAC,EASYC,EATIC,EAAAA,GAAG,GAAA,MAAA;AAAA,iBAEf,MAA8B;AAAA,SADhCH,EAAA,EAAA,GAAAI,EAOEC,GAAA,MAAAC,EANqBC,EAAAA,UAAQ,CAArBC,GAAGC,YADbR,EAOEC,EAJKM,EAAE,SAAS,GAAA;AAAA,UADf,qCAAqCC;AAAA,UAErC,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;;"}
|