vue3-sphinx-xml 0.6.1 → 0.6.3
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 +12 -12
- 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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, mergeProps as s, openBlock as c, ref as l, renderList as u, resolveDynamicComponent as d, toRefs as f, unref as p } from "vue";
|
|
4
|
+
//#region src/components/templates/Admonition.vue
|
|
5
|
+
var m = ["id"], h = {
|
|
6
|
+
__name: "Admonition",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
let { node: g } = f(h), _ = l({}), { dataObject: v, extractId: y } = e(), { classes: b } = t(g), { id: x } = y(g.value), { children: S } = n(g), C = i(() => ["admonition", ...b.value]), w = v(g.value, C.value);
|
|
17
|
+
return _.value = {
|
|
18
|
+
...w.attrs,
|
|
19
|
+
class: w.class.join(" ")
|
|
20
|
+
}, (e, t) => (c(), o("div", s({ id: p(x) }, _.value), [(c(!0), o(r, null, u(p(S), (e, t) => (c(), a(d(e.component), {
|
|
21
|
+
key: "admonition_component_" + t,
|
|
22
|
+
node: e.node,
|
|
23
|
+
componentName: e.name,
|
|
24
|
+
properties: e.properties
|
|
25
|
+
}, null, 8, [
|
|
26
|
+
"node",
|
|
27
|
+
"componentName",
|
|
28
|
+
"properties"
|
|
29
|
+
]))), 128))], 16, m));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { h as default };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=Admonition-CMl3cvE2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Admonition-CMl3cvE2.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;EAgCA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAI,CAAC,CAAC,GAEd,EAAE,eAAY,iBAAc,EAAW,GACvC,EAAE,eAAY,EAAW,CAAI,GAE7B,EAAE,UAAO,EAAU,EAAK,KAAK,GAE7B,EAAE,gBAAa,EAAY,CAAI,GAE/B,IAAkB,QACf,CAAC,cAAc,GAAG,EAAQ,KAAK,CACvC,GAEK,IAAS,EAAW,EAAK,OAAO,EAAgB,KAAK;SAE3D,EAAM,QAAQ;GACZ,GAAG,EAAO;GACV,OAAO,EAAO,MAAM,KAAK,GAAG;EAC9B,mBAlDE,EASM,OATN,EASM,EATA,IAAI,EAAA,CAAA,EAAE,GAAK,EAAA,KAAK,GAAA,EAAA,EAAA,EAAA,GACpB,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,0BAA4B;GAE/B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./computed-CtquEsn0.mjs";
|
|
2
|
+
import { Fragment as t, createBlock as n, createElementBlock as r, createElementVNode as i, openBlock as a, renderList as o, resolveDynamicComponent as s, toRefs as c, unref as l } from "vue";
|
|
3
|
+
//#region src/components/templates/BlockQuote.vue
|
|
4
|
+
var u = {
|
|
5
|
+
__name: "BlockQuote",
|
|
6
|
+
props: {
|
|
7
|
+
node: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
componentName: { type: String },
|
|
12
|
+
properties: { type: Object }
|
|
13
|
+
},
|
|
14
|
+
setup(u) {
|
|
15
|
+
let { node: d } = c(u), { children: f } = e(d);
|
|
16
|
+
return (e, c) => (a(), r("blockquote", null, [i("div", null, [(a(!0), r(t, null, o(l(f), (e, t) => (a(), n(s(e.component), {
|
|
17
|
+
key: "blockquote_component_" + t,
|
|
18
|
+
node: e.node,
|
|
19
|
+
componentName: e.name,
|
|
20
|
+
properties: e.properties
|
|
21
|
+
}, null, 8, [
|
|
22
|
+
"node",
|
|
23
|
+
"componentName",
|
|
24
|
+
"properties"
|
|
25
|
+
]))), 128))])]));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { u as default };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=BlockQuote-BKx_62o5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockQuote-BKx_62o5.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;EAiCA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,gBAAa,EAAY,CAAI;yBAlCnC,EAWa,cAAA,MAAA,CAVX,EASM,OAAA,MAAA,EAAA,EAAA,EAAA,GARJ,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,0BAA4B;GAE/B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, guardReactiveProps as s, normalizeProps as c, openBlock as l, ref as u, renderList as d, resolveDynamicComponent as f, toRefs as p, unref as m } from "vue";
|
|
4
|
+
//#region src/components/templates/CaptionNumber.vue
|
|
5
|
+
var h = {
|
|
6
|
+
__name: "CaptionNumber",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
let g = h, { dataObject: _ } = e(), { node: v } = p(g), y = u({}), { classes: b } = t(v), { children: x } = n(v), S = i(() => ["caption-number", ...b.value]), C = _(v.value, S.value);
|
|
17
|
+
return y.value = {
|
|
18
|
+
...C.attrs,
|
|
19
|
+
class: C.class.join(" ")
|
|
20
|
+
}, (e, t) => (l(), o("span", c(s(y.value)), [(l(!0), o(r, null, d(m(x), (e, t) => (l(), a(f(e.component), {
|
|
21
|
+
key: "caption_number_" + t,
|
|
22
|
+
node: e.node,
|
|
23
|
+
componentName: e.name,
|
|
24
|
+
properties: e.properties
|
|
25
|
+
}, null, 8, [
|
|
26
|
+
"node",
|
|
27
|
+
"componentName",
|
|
28
|
+
"properties"
|
|
29
|
+
]))), 128))], 16));
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { h as default };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=CaptionNumber-nNxMeKHq.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaptionNumber-nNxMeKHq.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;EAmBA,IAAM,IAAQ,GAaR,EAAE,kBAAe,EAAW,GAC5B,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAI,CAAC,CAAC,GACd,EAAE,eAAY,EAAW,CAAI,GAE7B,EAAE,gBAAa,EAAY,CAAI,GAE/B,IAAkB,QACf,CAAC,kBAAkB,GAAG,EAAQ,KAAK,CAC3C,GAEK,IAAS,EAAW,EAAK,OAAO,EAAgB,KAAK;SAC3D,EAAM,QAAQ;GACV,GAAG,EAAO;GACV,OAAO,EAAO,MAAM,KAAK,GAAG;EAC9B,mBA9CA,EASO,QAAA,EAAA,EATE,EAAA,KAAK,CAAA,GAAA,EAAA,EAAA,EAAA,GACZ,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,oBAAsB;GAEzB,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, normalizeStyle as r, openBlock as i, renderList as a, toRefs as o } from "vue";
|
|
2
|
+
//#region src/components/templates/ColumnGroup.vue
|
|
3
|
+
var s = {
|
|
4
|
+
__name: "ColumnGroup",
|
|
5
|
+
props: {
|
|
6
|
+
node: {
|
|
7
|
+
type: void 0,
|
|
8
|
+
default: null
|
|
9
|
+
},
|
|
10
|
+
componentName: { type: String },
|
|
11
|
+
properties: { type: Object }
|
|
12
|
+
},
|
|
13
|
+
setup(s) {
|
|
14
|
+
let { properties: c } = o(s), l = t(() => {
|
|
15
|
+
let e = 0, t = [];
|
|
16
|
+
for (let n of c.value.colspecs) e += Number(n), t.push(Number(n));
|
|
17
|
+
let n = [];
|
|
18
|
+
for (let r of t) n.push(r / e * 100);
|
|
19
|
+
return n;
|
|
20
|
+
});
|
|
21
|
+
return (t, o) => (i(), n("colgroup", null, [(i(!0), n(e, null, a(l.value, (e, t) => (i(), n("col", {
|
|
22
|
+
key: "col_" + t,
|
|
23
|
+
style: r("width: " + e + "%")
|
|
24
|
+
}, null, 4))), 128))]));
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { s as default };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=ColumnGroup-2vQ_pHZh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnGroup-2vQ_pHZh.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;EA0BA,IAAM,EAAE,kBAAe,EAAO,CAAK,GAE7B,IAAe,QAAe;GAClC,IAAI,IAAM,GACN,IAAS,CAAC;GACd,KAAK,IAAM,KAAS,EAAW,MAAM,UAEnC,AADA,KAAO,OAAO,CAAK,GACnB,EAAO,KAAK,OAAO,CAAK,CAAC;GAE3B,IAAI,IAAgB,CAAC;GACrB,KAAK,IAAM,KAAS,GAClB,EAAc,KAAM,IAAQ,IAAO,GAAG;GAGxC,OAAO;EACT,CAAC;yBAxCC,EAMW,YAAA,MAAA,EAAA,EAAA,EAAA,GALT,EAIE,GAAA,MAAA,EAHqB,EAAA,QAAb,GAAG,YADb,EAIE,OAAA;GAFC,KAAG,SAAW;GACd,OAAK,EAAA,YAAc,IAAC,GAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createBlock as e, createCommentVNode as t, openBlock as n, ref as r, toRefs as i } from "vue";
|
|
2
|
+
//#region src/components/CommentNode.vue
|
|
3
|
+
var a = {
|
|
4
|
+
props: ["content"],
|
|
5
|
+
setup(e) {
|
|
6
|
+
return () => t(e.content || "");
|
|
7
|
+
}
|
|
8
|
+
}, o = {
|
|
9
|
+
__name: "Comment",
|
|
10
|
+
props: {
|
|
11
|
+
node: {
|
|
12
|
+
type: void 0,
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
componentName: { type: String },
|
|
16
|
+
properties: { type: Object }
|
|
17
|
+
},
|
|
18
|
+
setup(t) {
|
|
19
|
+
let { node: o } = i(t), s = r("");
|
|
20
|
+
for (let e of o.value.childNodes) s.value += e.nodeValue;
|
|
21
|
+
return (t, r) => (n(), e(a, { content: s.value }, null, 8, ["content"]));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { o as default };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=Comment-Ddfhp8tE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Comment-Ddfhp8tE.mjs","names":[],"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"],"mappings":";;AAEE,IAAK,IAAU;CACb,OAAO,CAAC,SAAS;CACjB,MAAM,GAAO;EACX,aAAa,EAAmB,EAAM,WAAW,EAAE;CACrD;AACF;;;;;;;;;;;ECcF,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,IAAO,EAAI,EAAE;EAEnB,KAAK,IAAM,KAAK,EAAK,MAAM,YACzB,EAAK,SAAS,EAAE;yBAxBhB,EAAgC,GAAA,EAAjB,SAAS,EAAA,MAAI,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./computed-CtquEsn0.mjs";
|
|
2
|
+
import { Fragment as t, createBlock as n, createElementBlock as r, openBlock as i, renderList as a, resolveDynamicComponent as o, toRefs as s, unref as c } from "vue";
|
|
3
|
+
//#region src/components/templates/Compound.vue
|
|
4
|
+
var l = {
|
|
5
|
+
__name: "Compound",
|
|
6
|
+
props: {
|
|
7
|
+
node: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
componentName: { type: String },
|
|
12
|
+
properties: { type: Object }
|
|
13
|
+
},
|
|
14
|
+
setup(l) {
|
|
15
|
+
let { node: u } = s(l), { children: d } = e(u);
|
|
16
|
+
return (e, s) => (i(!0), r(t, null, a(c(d), (e, t) => (i(), n(o(e.component), {
|
|
17
|
+
key: "compound_component_" + t,
|
|
18
|
+
node: e.node,
|
|
19
|
+
componentName: e.name,
|
|
20
|
+
properties: e.properties
|
|
21
|
+
}, null, 8, [
|
|
22
|
+
"node",
|
|
23
|
+
"componentName",
|
|
24
|
+
"properties"
|
|
25
|
+
]))), 128));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as default };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=Compound-CkQCXGEt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Compound-CkQCXGEt.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;EA6BA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,gBAAa,EAAY,CAAI;2BA9BnC,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,wBAA0B;GAE7B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { i as t, n, t as r } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as i, createBlock as a, createElementBlock as o, mergeProps as s, onMounted as c, openBlock as l, ref as u, renderList as d, resolveDynamicComponent as f, toHandlerKey as p, toRefs as m, unref as h } from "vue";
|
|
4
|
+
var g = /*#__PURE__*/ t({
|
|
5
|
+
__name: "Container",
|
|
6
|
+
props: {
|
|
7
|
+
node: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
componentName: { type: String },
|
|
12
|
+
properties: { type: Object }
|
|
13
|
+
},
|
|
14
|
+
setup(t) {
|
|
15
|
+
let { node: g } = m(t), { children: _ } = r(g), { classes: v } = n(g), { toggleActiveClass: y } = e(), b = u([]), x = u(!1), S = u(null);
|
|
16
|
+
b.value = [...v.value];
|
|
17
|
+
function C() {
|
|
18
|
+
y(b.value);
|
|
19
|
+
let e = b.value.indexOf("active") === -1 ? "none" : "block", t = S.value.nextElementSibling;
|
|
20
|
+
for (; t !== null;) t.style.display = e, t = t.nextElementSibling;
|
|
21
|
+
}
|
|
22
|
+
return c(() => {
|
|
23
|
+
if (v.value.includes("header") || v.value.includes("header-left")) {
|
|
24
|
+
b.value.push("inactive");
|
|
25
|
+
let e = g.value.parentElement;
|
|
26
|
+
e && e.getAttribute("classes").includes("toggle") && (x.value = !0, b.value.push("toggle-header"));
|
|
27
|
+
}
|
|
28
|
+
v.value.includes("tab2name") && console.log("***** IN USE tab2name found ??? *****");
|
|
29
|
+
}), (e, t) => (l(), o("div", s({ class: b.value }, { [p(x.value && "click")]: C }, {
|
|
30
|
+
ref_key: "containerElement",
|
|
31
|
+
ref: S
|
|
32
|
+
}), [(l(!0), o(i, null, d(h(_), (e, t) => (l(), a(f(e.component), {
|
|
33
|
+
key: "container_component_" + t,
|
|
34
|
+
node: e.node,
|
|
35
|
+
componentName: e.name,
|
|
36
|
+
properties: e.properties
|
|
37
|
+
}, null, 8, [
|
|
38
|
+
"node",
|
|
39
|
+
"componentName",
|
|
40
|
+
"properties"
|
|
41
|
+
]))), 128))], 16));
|
|
42
|
+
}
|
|
43
|
+
}, [["__scopeId", "data-v-6c083687"]]);
|
|
44
|
+
//#endregion
|
|
45
|
+
export { g as default };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=Container-atFAqvD8.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Container-atFAqvD8.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;EAoCA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,eAAY,EAAW,CAAI,GAC7B,EAAE,yBAAsB,EAAW,GAEnC,IAAkB,EAAI,CAAC,CAAC,GACxB,IAAiB,EAAI,EAAK,GAC1B,IAAmB,EAAI,IAAI;EAEjC,EAAgB,QAAQ,CAAC,GAAG,EAAQ,KAAK;EAEzC,SAAS,IAAsB;GAC7B,EAAkB,EAAgB,KAAK;GAEvC,IAAI,IADU,EAAgB,MAAM,QAAQ,QACxB,MAAM,KAAK,SAAS,SAEpC,IAAiB,EAAiB,MAAM;GAC5C,OAAO,MAAmB,OAExB,AADA,EAAe,MAAM,UAAU,GAC/B,IAAiB,EAAe;EAEpC;SAEA,QAAgB;GACd,IACE,EAAQ,MAAM,SAAS,QAAQ,KAC/B,EAAQ,MAAM,SAAS,aAAa,GACpC;IACA,EAAgB,MAAM,KAAK,UAAU;IACrC,IAAM,IAAS,EAAK,MAAM;IAC1B,AAAI,KACE,EAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,MAClD,EAAe,QAAQ,IACvB,EAAgB,MAAM,KAAK,eAAe;GAGhD;GAEA,AAAI,EAAQ,MAAM,SAAS,UAAU,KACnC,QAAQ,IAAI,uCAAuC;EAEvD,CAAC,mBA7EC,EAaM,OAbN,EAaM,EAZH,OAAO,EAAA,MAAe,GAAA,GAAA,EACtB,EAAA,SAAc,OAAA,IAAa,EAAmB,GAAA;YAC3C;GAAJ,KAAI;eAEJ,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,yBAA2B;GAE9B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createElementBlock as n, openBlock as r, renderList as i, resolveDynamicComponent as a, withCtx as o } from "vue";
|
|
2
|
+
//#region src/components/templates/DirectElementMap.vue
|
|
3
|
+
var s = {
|
|
4
|
+
__name: "DirectElementMap",
|
|
5
|
+
setup(s) {
|
|
6
|
+
return (s, c) => (r(), t(a(s.tag), null, {
|
|
7
|
+
default: o(() => [(r(!0), n(e, null, i(s.children, (e, n) => (r(), t(a(e.component), {
|
|
8
|
+
key: "standard_element_component_" + n,
|
|
9
|
+
node: e.node,
|
|
10
|
+
componentName: e.name,
|
|
11
|
+
properties: e.properties
|
|
12
|
+
}, null, 8, [
|
|
13
|
+
"node",
|
|
14
|
+
"componentName",
|
|
15
|
+
"properties"
|
|
16
|
+
]))), 128))]),
|
|
17
|
+
_: 1
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { s as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=DirectElementMap-e91U7c-P.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DirectElementMap-e91U7c-P.mjs","names":["tag","children"],"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"],"mappings":";;;;;yBAEE,EASY,EATIA,EAAAA,GAAG,GAAA,MAAA;oBAEe,EAAA,EAAA,EAAA,GADhC,EAOE,GAAA,MAAA,EANqBC,EAAAA,WAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;IADf,KAAG,gCAAkC;IAErC,MAAM,EAAE;IACR,eAAe,EAAE;IACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { t as e } from "./computed-CtquEsn0.mjs";
|
|
2
|
+
import { Fragment as t, createBlock as n, createElementBlock as r, openBlock as i, renderList as a, resolveDynamicComponent as o, toRefs as s, unref as c } from "vue";
|
|
3
|
+
//#region src/components/templates/Document.vue
|
|
4
|
+
var l = ["id"], u = {
|
|
5
|
+
__name: "Document",
|
|
6
|
+
props: {
|
|
7
|
+
element: {
|
|
8
|
+
type: void 0,
|
|
9
|
+
default: { empty: !0 }
|
|
10
|
+
},
|
|
11
|
+
id: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
setup(u) {
|
|
17
|
+
let { element: d } = s(u), { children: f } = e(d);
|
|
18
|
+
return (e, s) => (i(), r("div", { id: u.id }, [(i(!0), r(t, null, a(c(f), (e, t) => (i(), n(o(e.component), {
|
|
19
|
+
key: "document_component_" + t,
|
|
20
|
+
node: e.node,
|
|
21
|
+
componentName: e.name,
|
|
22
|
+
properties: e.properties
|
|
23
|
+
}, null, 8, [
|
|
24
|
+
"node",
|
|
25
|
+
"componentName",
|
|
26
|
+
"properties"
|
|
27
|
+
]))), 128))], 8, l));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { u as default };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=Document-D1U8scRh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Document-D1U8scRh.mjs","names":[],"sources":["../src/components/templates/Document.vue"],"sourcesContent":["<template>\n <div :id=\"id\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'document_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 { defineProps, toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n element: {\n type: undefined,\n default: { empty: true },\n },\n id: {\n type: String,\n default: '',\n },\n})\n\nconst { element } = toRefs(props)\nconst { children } = useChildren(element)\n\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;EA6BA,IAAM,EAAE,eAAY,EAAO,CAAK,GAC1B,EAAE,gBAAa,EAAY,CAAO;yBA7BtC,EASM,OAAA,EATA,IAAI,EAAA,GAAE,GAAA,EAAA,EAAA,EAAA,GACV,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,wBAA0B;GAE7B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as e } from "./sphinx-BkN2WZRJ.mjs";
|
|
2
|
+
import { r as t } from "./utilities-RjHWUaCa.mjs";
|
|
3
|
+
import { computed as n, createElementBlock as r, normalizeClass as i, openBlock as a, ref as o, toDisplayString as s, toRefs as c } from "vue";
|
|
4
|
+
import { useRoute as l } from "vue-router";
|
|
5
|
+
//#region src/components/templates/DownloadReference.vue
|
|
6
|
+
var u = ["href", "download"], d = {
|
|
7
|
+
__name: "DownloadReference",
|
|
8
|
+
props: {
|
|
9
|
+
node: {
|
|
10
|
+
type: void 0,
|
|
11
|
+
default: null
|
|
12
|
+
},
|
|
13
|
+
componentName: { type: String }
|
|
14
|
+
},
|
|
15
|
+
setup(d) {
|
|
16
|
+
let { node: f } = c(d), p = l(), m = e(), h = n(() => {
|
|
17
|
+
let e = f.value.getAttribute("filename");
|
|
18
|
+
if (e && !e.startsWith("/") && !e.startsWith("http")) {
|
|
19
|
+
let n = t(p);
|
|
20
|
+
e = [m.getDownloadURL(n), e].join("/");
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}), g = f.value.getAttribute("reftarget").split("/"), _ = g[g.length - 1], v = [
|
|
24
|
+
"reference",
|
|
25
|
+
"internal",
|
|
26
|
+
f.value.getAttribute("reftype")
|
|
27
|
+
], y = o("not-set");
|
|
28
|
+
return y.value = _, (e, t) => (a(), r("a", {
|
|
29
|
+
href: h.value,
|
|
30
|
+
download: y.value,
|
|
31
|
+
class: i(v)
|
|
32
|
+
}, s(y.value), 9, u));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { d as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=DownloadReference-C74uZBZQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadReference-C74uZBZQ.mjs","names":[],"sources":["../src/components/templates/DownloadReference.vue"],"sourcesContent":["<template>\n <a :href=\"href\" :download=\"saveFilename\" :class=\"classes\">{{\n saveFilename\n }}</a>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { determineRouteUrl } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst { node } = toRefs(props)\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\n\nconst href = computed(() => {\n let downloadHref = node.value.getAttribute('filename')\n if (\n downloadHref &&\n !downloadHref.startsWith('/') &&\n !downloadHref.startsWith('http')\n ) {\n const routeURL = determineRouteUrl(route)\n downloadHref = [sphinxStore.getDownloadURL(routeURL), downloadHref].join(\n '/',\n )\n }\n return downloadHref\n})\n\nconst targetParts = node.value.getAttribute('reftarget').split('/')\nconst downloadName = targetParts[targetParts.length - 1]\nconst classes = ['reference', 'internal', node.value.getAttribute('reftype')]\n\n// Need to use a refernce variable in the template bound attributes.\nconst saveFilename = ref('not-set')\nsaveFilename.value = downloadName\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAuBA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAS,GACjB,IAAc,EAAe,GAE7B,IAAO,QAAe;GAC1B,IAAI,IAAe,EAAK,MAAM,aAAa,UAAU;GACrD,IACE,KACA,CAAC,EAAa,WAAW,GAAG,KAC5B,CAAC,EAAa,WAAW,MAAM,GAC/B;IACA,IAAM,IAAW,EAAkB,CAAK;IACxC,IAAe,CAAC,EAAY,eAAe,CAAQ,GAAG,CAAY,EAAE,KAClE,GACF;GACF;GACA,OAAO;EACT,CAAC,GAEK,IAAc,EAAK,MAAM,aAAa,WAAW,EAAE,MAAM,GAAG,GAC5D,IAAe,EAAY,EAAY,SAAS,IAChD,IAAU;GAAC;GAAa;GAAY,EAAK,MAAM,aAAa,SAAS;EAAC,GAGtE,IAAe,EAAI,SAAS;SAClC,EAAa,QAAQ,mBA/CnB,EAEM,KAAA;GAFF,MAAM,EAAA;GAAO,UAAU,EAAA;GAAe,OAAK,EAAE,CAAO;OACtD,EAAA,KAAY,GAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, guardReactiveProps as s, normalizeProps as c, openBlock as l, ref as u, renderList as d, resolveDynamicComponent as f, toRefs as p, unref as m } from "vue";
|
|
4
|
+
//#region src/components/templates/Figure.vue
|
|
5
|
+
var h = {
|
|
6
|
+
__name: "Figure",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
let g = h, { dataObject: _ } = e(), { node: v } = p(g), y = u({}), { classes: b } = t(v), { children: x } = n(v), S = i(() => {
|
|
17
|
+
let e = [...b.value];
|
|
18
|
+
for (let t of v.value.attributes) t.name === "align" && e.push("align-" + t.value);
|
|
19
|
+
return e;
|
|
20
|
+
});
|
|
21
|
+
return y.value = _(v.value, S.value).attrs, (e, t) => (l(), o("figure", c(s(y.value)), [(l(!0), o(r, null, d(m(x), (e, t) => (l(), a(f(e.component), {
|
|
22
|
+
key: "figure_component_" + t,
|
|
23
|
+
node: e.node,
|
|
24
|
+
componentName: e.name,
|
|
25
|
+
properties: e.properties
|
|
26
|
+
}, null, 8, [
|
|
27
|
+
"node",
|
|
28
|
+
"componentName",
|
|
29
|
+
"properties"
|
|
30
|
+
]))), 128))], 16));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { h as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=Figure-Ue2uoU0l.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Figure-Ue2uoU0l.mjs","names":[],"sources":["../src/components/templates/Figure.vue"],"sourcesContent":["<template>\n <figure :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </figure>\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 combinerdClasses = computed(() => {\n let c = [...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nattrs.value = dataObject(node.value, combinerdClasses.value).attrs\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAmBA,IAAM,IAAQ,GAaR,EAAE,kBAAe,EAAW,GAC5B,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAI,CAAC,CAAC,GACd,EAAE,eAAY,EAAW,CAAI,GAE7B,EAAE,gBAAa,EAAY,CAAI,GAE/B,IAAmB,QAAe;GACtC,IAAI,IAAI,CAAC,GAAG,EAAQ,KAAK;GACzB,KAAK,IAAM,KAAQ,EAAK,MAAM,YAC5B,AAAI,EAAK,SAAS,WAChB,EAAE,KAAK,WAAW,EAAK,KAAK;GAGhC,OAAO;EACT,CAAC;SAED,EAAM,QAAQ,EAAW,EAAK,OAAO,EAAiB,KAAK,EAAE,uBAhD3D,EASS,UAAA,EAAA,EATE,EAAA,KAAK,CAAA,GAAA,EAAA,EAAA,EAAA,GACd,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,sBAAwB;GAE3B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { n as t, t as n } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as r, computed as i, createBlock as a, createElementBlock as o, guardReactiveProps as s, normalizeProps as c, openBlock as l, ref as u, renderList as d, resolveDynamicComponent as f, toRefs as p, unref as m } from "vue";
|
|
4
|
+
//#region src/components/templates/FigureCaption.vue
|
|
5
|
+
var h = {
|
|
6
|
+
__name: "FigureCaption",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
let g = h, { dataObject: _ } = e(), { node: v } = p(g), y = u({}), { classes: b } = t(v), { children: x } = n(v), S = i(() => {
|
|
17
|
+
let e = ["figure-caption", ...b.value];
|
|
18
|
+
for (let t of v.value.attributes) t.name === "align" && e.push("align-" + t.value);
|
|
19
|
+
return e;
|
|
20
|
+
}), C = _(v.value, S.value);
|
|
21
|
+
return y.value = {
|
|
22
|
+
...C.attrs,
|
|
23
|
+
class: C.class.join(" ")
|
|
24
|
+
}, (e, t) => (l(), o("span", c(s(y.value)), [(l(!0), o(r, null, d(m(x), (e, t) => (l(), a(f(e.component), {
|
|
25
|
+
key: "figure_caption_" + t,
|
|
26
|
+
node: e.node,
|
|
27
|
+
componentName: e.name,
|
|
28
|
+
properties: e.properties
|
|
29
|
+
}, null, 8, [
|
|
30
|
+
"node",
|
|
31
|
+
"componentName",
|
|
32
|
+
"properties"
|
|
33
|
+
]))), 128))], 16));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { h as default };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=FigureCaption-BVSbJhF7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FigureCaption-BVSbJhF7.mjs","names":[],"sources":["../src/components/templates/FigureCaption.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_caption_' + 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 let c = ['figure-caption', ...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAmBA,IAAM,IAAQ,GAaR,EAAE,kBAAe,EAAW,GAC5B,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAI,CAAC,CAAC,GACd,EAAE,eAAY,EAAW,CAAI,GAE7B,EAAE,gBAAa,EAAY,CAAI,GAE/B,IAAkB,QAAe;GACrC,IAAI,IAAI,CAAC,kBAAkB,GAAG,EAAQ,KAAK;GAC3C,KAAK,IAAM,KAAQ,EAAK,MAAM,YAC5B,AAAI,EAAK,SAAS,WAChB,EAAE,KAAK,WAAW,EAAK,KAAK;GAGhC,OAAO;EACT,CAAC,GAEK,IAAS,EAAW,EAAK,OAAO,EAAgB,KAAK;SAC3D,EAAM,QAAQ;GACV,GAAG,EAAO;GACV,OAAO,EAAO,MAAM,KAAK,GAAG;EAC9B,mBApDA,EASO,QAAA,EAAA,EATE,EAAA,KAAK,CAAA,GAAA,EAAA,EAAA,EAAA,GACZ,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,oBAAsB;GAEzB,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { t } from "./computed-CtquEsn0.mjs";
|
|
3
|
+
import { Fragment as n, createBlock as r, createElementBlock as i, guardReactiveProps as a, normalizeProps as o, openBlock as s, ref as c, renderList as l, resolveDynamicComponent as u, toRefs as d, unref as f } from "vue";
|
|
4
|
+
//#region src/components/templates/Footnote.vue
|
|
5
|
+
var p = {
|
|
6
|
+
__name: "Footnote",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: void 0,
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
componentName: { type: String },
|
|
13
|
+
properties: { type: Object }
|
|
14
|
+
},
|
|
15
|
+
setup(p) {
|
|
16
|
+
let { node: m } = d(p), { children: h } = t(m), { dataObject: g } = e(), _ = c({});
|
|
17
|
+
return _.value = g(m.value, ["footnote"]).attrs, (e, t) => (s(), i("div", o(a(_.value)), [(s(!0), i(n, null, l(f(h), (e, t) => (s(), r(u(e.component), {
|
|
18
|
+
key: "footnote_component_" + t,
|
|
19
|
+
node: e.node,
|
|
20
|
+
componentName: e.name,
|
|
21
|
+
properties: e.properties
|
|
22
|
+
}, null, 8, [
|
|
23
|
+
"node",
|
|
24
|
+
"componentName",
|
|
25
|
+
"properties"
|
|
26
|
+
]))), 128))], 16));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { p as default };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=Footnote-wv5ClOwM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footnote-wv5ClOwM.mjs","names":[],"sources":["../src/components/templates/Footnote.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'footnote_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 { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\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)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nattrs.value = dataObject(node.value, ['footnote']).attrs // import { h } from 'vue'\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAgCA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,kBAAe,EAAW,GAC5B,IAAQ,EAAI,CAAC,CAAC;SAEpB,EAAM,QAAQ,EAAW,EAAK,OAAO,CAAC,UAAU,CAAC,EAAE,uBApCjD,EASM,OAAA,EAAA,EATE,EAAA,KAAK,CAAA,GAAA,EAAA,EAAA,EAAA,GACX,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,wBAA0B;GAE7B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./methods-D1vA1pFT.mjs";
|
|
2
|
+
import { t } from "./basereference-qnWrRZL-.mjs";
|
|
3
|
+
import { createBlock as n, createElementBlock as r, createTextVNode as i, onMounted as a, openBlock as o, ref as s, resolveComponent as c, toDisplayString as l, toRefs as u, unref as d, withCtx as f } from "vue";
|
|
4
|
+
import { useRoute as p } from "vue-router";
|
|
5
|
+
//#region src/components/templates/FootnoteReference.vue
|
|
6
|
+
var m = ["href"], h = {
|
|
7
|
+
__name: "FootnoteReference",
|
|
8
|
+
props: {
|
|
9
|
+
node: {
|
|
10
|
+
type: void 0,
|
|
11
|
+
default: null
|
|
12
|
+
},
|
|
13
|
+
componentName: { type: String }
|
|
14
|
+
},
|
|
15
|
+
setup(h) {
|
|
16
|
+
let g = h, _ = s({
|
|
17
|
+
path: "",
|
|
18
|
+
hash: ""
|
|
19
|
+
}), { node: v } = u(g), y = p(), { isInternalReference: b } = e(), { onReferenceCreated: x } = t(v.value, y, _);
|
|
20
|
+
return a(x), (e, t) => {
|
|
21
|
+
let a = c("router-link");
|
|
22
|
+
return d(b)(d(v)) ? (o(), n(a, {
|
|
23
|
+
key: 0,
|
|
24
|
+
to: _.value
|
|
25
|
+
}, {
|
|
26
|
+
default: f(() => [i(" [" + l(d(v).textContent) + "] ", 1)]),
|
|
27
|
+
_: 1
|
|
28
|
+
}, 8, ["to"])) : (o(), r("a", {
|
|
29
|
+
key: 1,
|
|
30
|
+
href: d(v).getAttribute("refuri"),
|
|
31
|
+
target: "_blank"
|
|
32
|
+
}, " [" + l(d(v).textContent) + "] ", 9, m));
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { h as default };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=FootnoteReference-mnfh7KUg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FootnoteReference-mnfh7KUg.mjs","names":[],"sources":["../src/components/templates/FootnoteReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n [{{ node.textContent }}]\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n [{{ node.textContent }}]\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAgBA,IAAM,IAAQ,GAUR,IAAmB,EAAI;GAAC,MAAM;GAAI,MAAM;EAAE,CAAC,GAC3C,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAS,GAEjB,EAAE,2BAAwB,EAAW,GACrC,EAAE,0BAAuB,EAAiB,EAAK,OAAO,GAAO,CAAgB;SAEnF,EAAU,CAAkB;;UAhCP,EAAA,CAAA,EAAoB,EAAA,CAAA,CAAI,KAAA,EAAA,GAA3C,EAEc,GAAA;;IAFiC,IAAI,EAAA;;qBAChD,CAAA,EADkE,OAClE,EAAG,EAAA,CAAA,EAAK,WAAW,IAAG,MACzB,CAAA,CAAA,CAAA;;0BACA,EAEI,KAAA;;IAFO,MAAM,EAAA,CAAA,EAAK,aAAY,QAAA;IAAY,QAAO;MAAS,OAC3D,EAAG,EAAA,CAAA,EAAK,WAAW,IAAG,MACzB,GAAA,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { t as e } from "./sphinx-BkN2WZRJ.mjs";
|
|
2
|
+
import { r as t } from "./utilities-RjHWUaCa.mjs";
|
|
3
|
+
import { t as n } from "./methods-D1vA1pFT.mjs";
|
|
4
|
+
import { t as r } from "./computed-CtquEsn0.mjs";
|
|
5
|
+
import { computed as i, createElementBlock as a, guardReactiveProps as o, normalizeProps as s, openBlock as c, ref as l, toRefs as u } from "vue";
|
|
6
|
+
import { useRoute as d } from "vue-router";
|
|
7
|
+
//#region src/components/templates/Image.vue
|
|
8
|
+
var f = {
|
|
9
|
+
__name: "Image",
|
|
10
|
+
props: {
|
|
11
|
+
node: {
|
|
12
|
+
type: void 0,
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
componentName: { type: String },
|
|
16
|
+
properties: { type: Object }
|
|
17
|
+
},
|
|
18
|
+
setup(f) {
|
|
19
|
+
let { node: p } = u(f), { children: m } = r(p), { dataObject: h } = n(), g = d(), _ = e(), v = l({}), y = i(() => {
|
|
20
|
+
let e = p.value.getAttribute("uri");
|
|
21
|
+
if (e && !e.startsWith("/") && !e.startsWith("http")) {
|
|
22
|
+
let n = t(g), r = e.lastIndexOf("/"), i = e.slice(r);
|
|
23
|
+
e = [_.getImagesURL(n), i].join("/");
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
});
|
|
27
|
+
return v.value = h(p.value).attrs, v.value ? v.value.src = y : v.value = { src: y }, (e, t) => (c(), a("img", s(o(v.value)), null, 16));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { f as default };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=Image-BydrCE0c.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image-BydrCE0c.mjs","names":[],"sources":["../src/components/templates/Image.vue"],"sourcesContent":["<template>\n <img :=\"attrs\" />\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\nimport { determineRouteUrl } from '../../js/utilities'\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 { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\nconst attrs = ref({})\n\nconst uri = computed(() => {\n let imageURI = node.value.getAttribute('uri')\n if (imageURI && !imageURI.startsWith('/') && !imageURI.startsWith('http')) {\n const routeURL = determineRouteUrl(route)\n // Sphinx puts all images in a directory '_images' by default\n // for HTML output. We are saying here that we will map the\n // XML image reference the same way.\n const lastIndex = imageURI.lastIndexOf('/')\n const imageName = imageURI.slice(lastIndex)\n // imageURI = `${this.$store.sphinx.getImagesURL(routeURL)}${imageName}`\n imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join('/')\n }\n return imageURI\n})\n\nattrs.value = dataObject(node.value).attrs\nif (attrs.value) {\n attrs.value.src = uri\n} else {\n attrs.value = { src: uri }\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;EA0BA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,kBAAe,EAAW,GAC5B,IAAQ,EAAS,GACjB,IAAc,EAAe,GAC7B,IAAQ,EAAI,CAAC,CAAC,GAEd,IAAM,QAAe;GACzB,IAAI,IAAW,EAAK,MAAM,aAAa,KAAK;GAC5C,IAAI,KAAY,CAAC,EAAS,WAAW,GAAG,KAAK,CAAC,EAAS,WAAW,MAAM,GAAG;IACzE,IAAM,IAAW,EAAkB,CAAK,GAIlC,IAAY,EAAS,YAAY,GAAG,GACpC,IAAY,EAAS,MAAM,CAAS;IAE1C,IAAW,CAAC,EAAY,aAAa,CAAQ,GAAG,CAAS,EAAE,KAAK,GAAG;GACrE;GACA,OAAO;EACT,CAAC;SAED,EAAM,QAAQ,EAAW,EAAK,KAAK,EAAE,OACjC,EAAM,QACR,EAAM,MAAM,MAAM,IAElB,EAAM,QAAQ,EAAE,KAAK,EAAI,mBAnDzB,EAAiB,OAAA,EAAA,EAAT,EAAA,KAAK,CAAA,GAAA,MAAA,EAAA"}
|