vue3-sphinx-xml 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Admonition-mKTxm7FA.mjs → Admonition-gd-uJLmV.mjs} +4 -4
- package/dist/{Admonition-mKTxm7FA.mjs.map → Admonition-gd-uJLmV.mjs.map} +1 -1
- package/dist/{BlockQuote-CHndoK9X.mjs → BlockQuote-Cx9XdFGZ.mjs} +3 -3
- package/dist/{BlockQuote-CHndoK9X.mjs.map → BlockQuote-Cx9XdFGZ.mjs.map} +1 -1
- package/dist/{CaptionNumber-sPHsgDmY.mjs → CaptionNumber-B3c0JP0T.mjs} +4 -4
- package/dist/{CaptionNumber-sPHsgDmY.mjs.map → CaptionNumber-B3c0JP0T.mjs.map} +1 -1
- package/dist/{ColumnGroup-3gX9uzXr.mjs → ColumnGroup-DYs1xB1a.mjs} +4 -4
- package/dist/{ColumnGroup-3gX9uzXr.mjs.map → ColumnGroup-DYs1xB1a.mjs.map} +1 -1
- package/dist/{Comment-BazBmRUy.mjs → Comment-DpyTzHo4.mjs} +3 -3
- package/dist/{Comment-BazBmRUy.mjs.map → Comment-DpyTzHo4.mjs.map} +1 -1
- package/dist/{Compound-CuyWvjJc.mjs → Compound-ByH1w0P6.mjs} +3 -3
- package/dist/{Compound-CuyWvjJc.mjs.map → Compound-ByH1w0P6.mjs.map} +1 -1
- package/dist/{Container-BI_-sUj5.mjs → Container-CmVmxWIt.mjs} +4 -4
- package/dist/{Container-BI_-sUj5.mjs.map → Container-CmVmxWIt.mjs.map} +1 -1
- package/dist/{DirectElementMap-BxB8uEd3.mjs → DirectElementMap-B-wTPjj0.mjs} +2 -2
- package/dist/DirectElementMap-B-wTPjj0.mjs.map +1 -0
- package/dist/Document-PZAyvjWh.mjs +230 -0
- package/dist/Document-PZAyvjWh.mjs.map +1 -0
- package/dist/{DownloadReference-Coj1rk-Q.mjs → DownloadReference-CtG3pZe0.mjs} +9 -9
- package/dist/{DownloadReference-Coj1rk-Q.mjs.map → DownloadReference-CtG3pZe0.mjs.map} +1 -1
- package/dist/{Figure-cm9jrp4J.mjs → Figure-BV3wzLZX.mjs} +4 -4
- package/dist/{Figure-cm9jrp4J.mjs.map → Figure-BV3wzLZX.mjs.map} +1 -1
- package/dist/{FigureCaption-CEewNKB3.mjs → FigureCaption-DPm7W0CJ.mjs} +4 -4
- package/dist/{FigureCaption-CEewNKB3.mjs.map → FigureCaption-DPm7W0CJ.mjs.map} +1 -1
- package/dist/{Footnote-CsDVGKIf.mjs → Footnote-DAEfbxUi.mjs} +4 -4
- package/dist/{Footnote-CsDVGKIf.mjs.map → Footnote-DAEfbxUi.mjs.map} +1 -1
- package/dist/{FootnoteReference-mjr_CUNC.mjs → FootnoteReference-Bi6FG4qF.mjs} +7 -7
- package/dist/{FootnoteReference-mjr_CUNC.mjs.map → FootnoteReference-Bi6FG4qF.mjs.map} +1 -1
- package/dist/Image-UjDGAe4v.mjs +37 -0
- package/dist/{Image-DS2T9dhX.mjs.map → Image-UjDGAe4v.mjs.map} +1 -1
- package/dist/{Legend-Buf610bh.mjs → Legend-BL0KvT6x.mjs} +3 -3
- package/dist/{Legend-Buf610bh.mjs.map → Legend-BL0KvT6x.mjs.map} +1 -1
- package/dist/{LineBlock-CC9E637d.mjs → LineBlock-yNMN4PnM.mjs} +4 -4
- package/dist/{LineBlock-CC9E637d.mjs.map → LineBlock-yNMN4PnM.mjs.map} +1 -1
- package/dist/{LineSingle-Dlzi5iIV.mjs → LineSingle-D8mP9JxV.mjs} +4 -4
- package/dist/{LineSingle-Dlzi5iIV.mjs.map → LineSingle-D8mP9JxV.mjs.map} +1 -1
- package/dist/{Literal-DYTpCjPv.mjs → Literal-B3RMToDf.mjs} +4 -4
- package/dist/{Literal-DYTpCjPv.mjs.map → Literal-B3RMToDf.mjs.map} +1 -1
- package/dist/{LiteralBlock-DKVDMrJf.mjs → LiteralBlock-DSNLfJRQ.mjs} +7 -7
- package/dist/{LiteralBlock-DKVDMrJf.mjs.map → LiteralBlock-DSNLfJRQ.mjs.map} +1 -1
- package/dist/{Math-DMrgdPIM.mjs → Math-Cq4PVbWU.mjs} +3 -3
- package/dist/Math-Cq4PVbWU.mjs.map +1 -0
- package/dist/{MathBlock-DdqKjCSS.mjs → MathBlock-BQlgpnCi.mjs} +4 -4
- package/dist/{MathBlock-DdqKjCSS.mjs.map → MathBlock-BQlgpnCi.mjs.map} +1 -1
- package/dist/{Note-BlaELec8.mjs → Note-DTXT2vL1.mjs} +4 -4
- package/dist/{Note-BlaELec8.mjs.map → Note-DTXT2vL1.mjs.map} +1 -1
- package/dist/{NumberReference-bjITftY4.mjs → NumberReference-eWL-p05o.mjs} +7 -7
- package/dist/{NumberReference-bjITftY4.mjs.map → NumberReference-eWL-p05o.mjs.map} +1 -1
- package/dist/{Problematic-CVEE4P8F.mjs → Problematic-DdYGUPom.mjs} +4 -4
- package/dist/{Problematic-CVEE4P8F.mjs.map → Problematic-DdYGUPom.mjs.map} +1 -1
- package/dist/{Reference-Orh-jOnR.mjs → Reference-NuJMaVmj.mjs} +5 -5
- package/dist/{Reference-Orh-jOnR.mjs.map → Reference-NuJMaVmj.mjs.map} +1 -1
- package/dist/{Section-CdTfeVfc.mjs → Section-CsKQgVcF.mjs} +4 -4
- package/dist/{Section-CdTfeVfc.mjs.map → Section-CsKQgVcF.mjs.map} +1 -1
- package/dist/{StandardElement-CBBrXX4Q.mjs → StandardElement-Cf1EpLze.mjs} +4 -4
- package/dist/{StandardElement-CBBrXX4Q.mjs.map → StandardElement-Cf1EpLze.mjs.map} +1 -1
- package/dist/Text-CT8nEMkp.mjs.map +1 -1
- package/dist/{Title-3Cns5zt2.mjs → Title-DoIeD6eK.mjs} +3 -3
- package/dist/{Title-3Cns5zt2.mjs.map → Title-DoIeD6eK.mjs.map} +1 -1
- package/dist/{TodoNode-BR2gUVop.mjs → TodoNode-C6L-iGX4.mjs} +4 -4
- package/dist/{TodoNode-BR2gUVop.mjs.map → TodoNode-C6L-iGX4.mjs.map} +1 -1
- package/dist/{Topic-CGDYI81Y.mjs → Topic-BrgzQGpm.mjs} +4 -4
- package/dist/{Topic-CGDYI81Y.mjs.map → Topic-BrgzQGpm.mjs.map} +1 -1
- package/dist/Transition-CWMp4Zlv.mjs.map +1 -1
- package/dist/{Warning-Cl6MS7S9.mjs → Warning-dcxt8LRd.mjs} +7 -7
- package/dist/{Warning-Cl6MS7S9.mjs.map → Warning-dcxt8LRd.mjs.map} +1 -1
- package/dist/{basereference-CBz3BfwU.mjs → basereference-7wajqzV8.mjs} +9 -9
- package/dist/{basereference-CBz3BfwU.mjs.map → basereference-7wajqzV8.mjs.map} +1 -1
- package/dist/entry-CNV5B73A.mjs +1990 -0
- package/dist/entry-CNV5B73A.mjs.map +1 -0
- package/dist/{methods-DeDVNJrB.mjs → methods-ClbyDlbW.mjs} +2 -2
- package/dist/{methods-DeDVNJrB.mjs.map → methods-ClbyDlbW.mjs.map} +1 -1
- package/dist/vue3-sphinx-xml.js +7 -0
- package/dist/vue3-sphinx-xml.js.map +1 -0
- package/dist/vue3-sphinx-xml.mjs +6 -4
- package/dist/vue3-sphinx-xml.mjs.map +1 -1
- package/package.json +18 -16
- package/dist/DirectElementMap-BxB8uEd3.mjs.map +0 -1
- package/dist/Image-DS2T9dhX.mjs +0 -36
- package/dist/Math-DMrgdPIM.mjs.map +0 -1
- package/dist/entry-BmRN0Y-U.mjs +0 -46649
- package/dist/entry-BmRN0Y-U.mjs.map +0 -1
- /package/dist/{style.css → vue3-sphinx-xml.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as v, ref as h, computed as y,
|
|
2
|
-
import { u as x } from "./methods-
|
|
3
|
-
import { u as B, a as N } from "./
|
|
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-ClbyDlbW.mjs";
|
|
3
|
+
import { u as B, a as N } from "./Document-PZAyvjWh.mjs";
|
|
4
4
|
const O = ["id"], L = {
|
|
5
5
|
__name: "Admonition",
|
|
6
6
|
props: {
|
|
@@ -33,4 +33,4 @@ const O = ["id"], L = {
|
|
|
33
33
|
export {
|
|
34
34
|
L as default
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=Admonition-
|
|
36
|
+
//# sourceMappingURL=Admonition-gd-uJLmV.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Admonition-
|
|
1
|
+
{"version":3,"file":"Admonition-gd-uJLmV.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,5 +1,5 @@
|
|
|
1
|
-
import { toRefs as m,
|
|
2
|
-
import { a as _ } from "./
|
|
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-PZAyvjWh.mjs";
|
|
3
3
|
const b = {
|
|
4
4
|
__name: "BlockQuote",
|
|
5
5
|
props: {
|
|
@@ -31,4 +31,4 @@ const b = {
|
|
|
31
31
|
export {
|
|
32
32
|
b as default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=BlockQuote-
|
|
34
|
+
//# sourceMappingURL=BlockQuote-Cx9XdFGZ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockQuote-
|
|
1
|
+
{"version":3,"file":"BlockQuote-Cx9XdFGZ.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,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as d, ref as f, computed as _,
|
|
2
|
-
import { u as g, a as j } from "./
|
|
3
|
-
import { u as B } from "./methods-
|
|
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-PZAyvjWh.mjs";
|
|
3
|
+
import { u as B } from "./methods-ClbyDlbW.mjs";
|
|
4
4
|
const D = {
|
|
5
5
|
__name: "CaptionNumber",
|
|
6
6
|
props: {
|
|
@@ -33,4 +33,4 @@ const D = {
|
|
|
33
33
|
export {
|
|
34
34
|
D as default
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=CaptionNumber-
|
|
36
|
+
//# sourceMappingURL=CaptionNumber-B3c0JP0T.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionNumber-
|
|
1
|
+
{"version":3,"file":"CaptionNumber-B3c0JP0T.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,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as m, computed as a,
|
|
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
2
|
const _ = {
|
|
3
3
|
__name: "ColumnGroup",
|
|
4
4
|
props: {
|
|
@@ -23,8 +23,8 @@ const _ = {
|
|
|
23
23
|
t.push(e / o * 100);
|
|
24
24
|
return t;
|
|
25
25
|
});
|
|
26
|
-
return (o, r) => (
|
|
27
|
-
(
|
|
26
|
+
return (o, r) => (l(), n("colgroup", null, [
|
|
27
|
+
(l(!0), n(i, null, d(p.value, (t, e) => (l(), n("col", {
|
|
28
28
|
key: "col_" + e,
|
|
29
29
|
style: f("width: " + t + "%")
|
|
30
30
|
}, null, 4))), 128))
|
|
@@ -34,4 +34,4 @@ const _ = {
|
|
|
34
34
|
export {
|
|
35
35
|
_ as default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=ColumnGroup-
|
|
37
|
+
//# sourceMappingURL=ColumnGroup-DYs1xB1a.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnGroup-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { createCommentVNode as r, toRefs as p, ref as s,
|
|
1
|
+
import { createCommentVNode as r, toRefs as p, ref as s, createBlock as a, openBlock as u } from "vue";
|
|
2
2
|
const l = {
|
|
3
3
|
props: ["content"],
|
|
4
4
|
setup(e) {
|
|
@@ -22,10 +22,10 @@ const l = {
|
|
|
22
22
|
const o = e, { node: c } = p(o), t = s("");
|
|
23
23
|
for (const n of c.value.childNodes)
|
|
24
24
|
t.value += n.nodeValue;
|
|
25
|
-
return (n, m) => (
|
|
25
|
+
return (n, m) => (u(), a(l, { content: t.value }, null, 8, ["content"]));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
29
|
f as default
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=Comment-
|
|
31
|
+
//# sourceMappingURL=Comment-DpyTzHo4.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Comment-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { toRefs as c,
|
|
2
|
-
import { a as f } from "./
|
|
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-PZAyvjWh.mjs";
|
|
3
3
|
const B = {
|
|
4
4
|
__name: "Compound",
|
|
5
5
|
props: {
|
|
@@ -27,4 +27,4 @@ const B = {
|
|
|
27
27
|
export {
|
|
28
28
|
B as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=Compound-
|
|
30
|
+
//# sourceMappingURL=Compound-ByH1w0P6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Compound-
|
|
1
|
+
{"version":3,"file":"Compound-ByH1w0P6.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,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as _, ref as a, onMounted as b,
|
|
2
|
-
import { _ as N, a as B, u as H } from "./
|
|
3
|
-
import { u as A } from "./methods-
|
|
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-PZAyvjWh.mjs";
|
|
3
|
+
import { u as A } from "./methods-ClbyDlbW.mjs";
|
|
4
4
|
const I = {
|
|
5
5
|
__name: "Container",
|
|
6
6
|
props: {
|
|
@@ -47,4 +47,4 @@ const I = {
|
|
|
47
47
|
export {
|
|
48
48
|
j as default
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=Container-
|
|
50
|
+
//# sourceMappingURL=Container-CmVmxWIt.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container-
|
|
1
|
+
{"version":3,"file":"Container-CmVmxWIt.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
2
|
const _ = {
|
|
3
3
|
__name: "DirectElementMap",
|
|
4
4
|
setup(s) {
|
|
@@ -18,4 +18,4 @@ const _ = {
|
|
|
18
18
|
export {
|
|
19
19
|
_ as default
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=DirectElementMap-
|
|
21
|
+
//# sourceMappingURL=DirectElementMap-B-wTPjj0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { createElementBlock as l, openBlock as i, createElementVNode as s, toDisplayString as N, computed as u, defineAsyncComponent as d, toRefs as b, Fragment as C, renderList as k, unref as y, createBlock as S, resolveDynamicComponent as T } from "vue";
|
|
2
|
+
const v = (e, t, o) => {
|
|
3
|
+
const n = e[t];
|
|
4
|
+
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((p, m) => {
|
|
5
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(m.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== o ? ". Note that variables only represent file names one level deep." : ""))));
|
|
6
|
+
});
|
|
7
|
+
}, f = {
|
|
8
|
+
__name: "Error",
|
|
9
|
+
props: {
|
|
10
|
+
node: {
|
|
11
|
+
type: void 0
|
|
12
|
+
},
|
|
13
|
+
componentName: {
|
|
14
|
+
type: String
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(e) {
|
|
18
|
+
return (t, o) => (i(), l("div", null, [
|
|
19
|
+
s("h3", null, "Missing: '" + N(e.componentName) + "' from Sphinx XML output", 1),
|
|
20
|
+
o[0] || (o[0] = s("span", null, "It seems the component was not found.", -1))
|
|
21
|
+
]));
|
|
22
|
+
}
|
|
23
|
+
}, w = (e, t) => {
|
|
24
|
+
const o = e.__vccOpts || e;
|
|
25
|
+
for (const [n, p] of t)
|
|
26
|
+
o[n] = p;
|
|
27
|
+
return o;
|
|
28
|
+
}, L = { class: "loading-container" }, M = {
|
|
29
|
+
__name: "Loading",
|
|
30
|
+
props: {
|
|
31
|
+
node: {
|
|
32
|
+
type: void 0
|
|
33
|
+
},
|
|
34
|
+
componentName: {
|
|
35
|
+
type: String
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(e) {
|
|
39
|
+
return (t, o) => (i(), l("div", L, [...o[0] || (o[0] = [
|
|
40
|
+
s("span", null, "Loading page component", -1),
|
|
41
|
+
s("span", { class: "lds-roller" }, [
|
|
42
|
+
s("div"),
|
|
43
|
+
s("div"),
|
|
44
|
+
s("div"),
|
|
45
|
+
s("div"),
|
|
46
|
+
s("div"),
|
|
47
|
+
s("div"),
|
|
48
|
+
s("div"),
|
|
49
|
+
s("div")
|
|
50
|
+
], -1)
|
|
51
|
+
])]));
|
|
52
|
+
}
|
|
53
|
+
}, g = /* @__PURE__ */ w(M, [["__scopeId", "data-v-d51880c8"]]), B = /* @__PURE__ */ new Map([
|
|
54
|
+
["bullet_list", "ul"],
|
|
55
|
+
["button", "button"],
|
|
56
|
+
["citation", "cite"],
|
|
57
|
+
["definition", "dd"],
|
|
58
|
+
["definition_list", "dl"],
|
|
59
|
+
["definition_list_item", "dt"],
|
|
60
|
+
["div", "div"],
|
|
61
|
+
["emphasis", "em"],
|
|
62
|
+
["enumerated_list", "ol"],
|
|
63
|
+
["glossary", "div"],
|
|
64
|
+
["inline", "span"],
|
|
65
|
+
["label", "span"],
|
|
66
|
+
["list_item", "li"],
|
|
67
|
+
["line", "p"],
|
|
68
|
+
["paragraph", "p"],
|
|
69
|
+
["rubric", "h3"],
|
|
70
|
+
["strong", "strong"],
|
|
71
|
+
["subscript", "sub"],
|
|
72
|
+
["superscript", "sup"],
|
|
73
|
+
["table", "table"],
|
|
74
|
+
["tbody", "tbody"],
|
|
75
|
+
["entry", "td"],
|
|
76
|
+
["row", "tr"],
|
|
77
|
+
["thead", "thead"],
|
|
78
|
+
["term", "dt"],
|
|
79
|
+
["title_reference", "cite"]
|
|
80
|
+
]), c = /* @__PURE__ */ new Map([
|
|
81
|
+
["#text", "Text"],
|
|
82
|
+
["block_quote", "BlockQuote"],
|
|
83
|
+
["caption", "FigureCaption"],
|
|
84
|
+
["caption_number", "CaptionNumber"],
|
|
85
|
+
["download_reference", "DownloadReference"],
|
|
86
|
+
["footnote_reference", "FootnoteReference"],
|
|
87
|
+
["index", "Skip"],
|
|
88
|
+
["line_block", "LineBlock"],
|
|
89
|
+
["literal_block", "LiteralBlock"],
|
|
90
|
+
["math_block", "MathBlock"],
|
|
91
|
+
["number_reference", "NumberReference"]
|
|
92
|
+
]);
|
|
93
|
+
function R(e, t) {
|
|
94
|
+
let o;
|
|
95
|
+
if (t.nodeName === "#text") {
|
|
96
|
+
if (!t.nodeValue.trim())
|
|
97
|
+
return null;
|
|
98
|
+
o = {
|
|
99
|
+
text: t.nodeValue
|
|
100
|
+
};
|
|
101
|
+
} else if (t.nodeName === "warning") {
|
|
102
|
+
let p = t.parentNode, m = 0;
|
|
103
|
+
for (; p; )
|
|
104
|
+
p.nodeName === "section" && (m += 1), p = p.parentNode;
|
|
105
|
+
o = {
|
|
106
|
+
depth: m
|
|
107
|
+
};
|
|
108
|
+
} else if (t.nodeName === "title") {
|
|
109
|
+
let p = t.parentNode, m = 0, r = !1;
|
|
110
|
+
if (p.nodeName === "topic")
|
|
111
|
+
r = !0;
|
|
112
|
+
else
|
|
113
|
+
for (; p; )
|
|
114
|
+
p.nodeName === "section" && (m += 1), p = p.parentNode;
|
|
115
|
+
o = {
|
|
116
|
+
depth: m,
|
|
117
|
+
isTopic: r
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
component: d({
|
|
122
|
+
loader: () => v(/* @__PURE__ */ Object.assign({ "../components/templates/Admonition.vue": () => import("./Admonition-gd-uJLmV.mjs"), "../components/templates/BlockQuote.vue": () => import("./BlockQuote-Cx9XdFGZ.mjs"), "../components/templates/CaptionNumber.vue": () => import("./CaptionNumber-B3c0JP0T.mjs"), "../components/templates/ColumnGroup.vue": () => import("./ColumnGroup-DYs1xB1a.mjs"), "../components/templates/Comment.vue": () => import("./Comment-DpyTzHo4.mjs"), "../components/templates/Compound.vue": () => import("./Compound-ByH1w0P6.mjs"), "../components/templates/Container.vue": () => import("./Container-CmVmxWIt.mjs"), "../components/templates/DirectElementMap.vue": () => import("./DirectElementMap-B-wTPjj0.mjs"), "../components/templates/Document.vue": () => Promise.resolve().then(() => _), "../components/templates/DownloadReference.vue": () => import("./DownloadReference-CtG3pZe0.mjs"), "../components/templates/Figure.vue": () => import("./Figure-BV3wzLZX.mjs"), "../components/templates/FigureCaption.vue": () => import("./FigureCaption-DPm7W0CJ.mjs"), "../components/templates/Footnote.vue": () => import("./Footnote-DAEfbxUi.mjs"), "../components/templates/FootnoteReference.vue": () => import("./FootnoteReference-Bi6FG4qF.mjs"), "../components/templates/Image.vue": () => import("./Image-UjDGAe4v.mjs"), "../components/templates/Legend.vue": () => import("./Legend-BL0KvT6x.mjs"), "../components/templates/LineBlock.vue": () => import("./LineBlock-yNMN4PnM.mjs"), "../components/templates/LineSingle.vue": () => import("./LineSingle-D8mP9JxV.mjs"), "../components/templates/Literal.vue": () => import("./Literal-B3RMToDf.mjs"), "../components/templates/LiteralBlock.vue": () => import("./LiteralBlock-DSNLfJRQ.mjs"), "../components/templates/Math.vue": () => import("./Math-Cq4PVbWU.mjs"), "../components/templates/MathBlock.vue": () => import("./MathBlock-BQlgpnCi.mjs"), "../components/templates/Note.vue": () => import("./Note-DTXT2vL1.mjs"), "../components/templates/NumberReference.vue": () => import("./NumberReference-eWL-p05o.mjs"), "../components/templates/Problematic.vue": () => import("./Problematic-DdYGUPom.mjs"), "../components/templates/Raw.vue": () => import("./Raw-DuZmU9hd.mjs"), "../components/templates/Reference.vue": () => import("./Reference-NuJMaVmj.mjs"), "../components/templates/Section.vue": () => import("./Section-CsKQgVcF.mjs"), "../components/templates/Skip.vue": () => import("./Skip-CRGkjuMM.mjs"), "../components/templates/StandardElement.vue": () => import("./StandardElement-Cf1EpLze.mjs"), "../components/templates/Text.vue": () => import("./Text-CT8nEMkp.mjs"), "../components/templates/Title.vue": () => import("./Title-DoIeD6eK.mjs"), "../components/templates/TodoNode.vue": () => import("./TodoNode-C6L-iGX4.mjs"), "../components/templates/Topic.vue": () => import("./Topic-BrgzQGpm.mjs"), "../components/templates/Transition.vue": () => import("./Transition-CWMp4Zlv.mjs"), "../components/templates/Warning.vue": () => import("./Warning-dcxt8LRd.mjs") }), `../components/templates/${e}.vue`, 4),
|
|
123
|
+
// A component to use while the async component is loading
|
|
124
|
+
loadingComponent: g,
|
|
125
|
+
// A component to use if the load fails
|
|
126
|
+
errorComponent: f
|
|
127
|
+
}),
|
|
128
|
+
name: e,
|
|
129
|
+
node: t,
|
|
130
|
+
properties: o
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function x(e, t) {
|
|
134
|
+
const o = "ColumnGroup";
|
|
135
|
+
return {
|
|
136
|
+
component: d({
|
|
137
|
+
loader: () => v(/* @__PURE__ */ Object.assign({ "../components/templates/Admonition.vue": () => import("./Admonition-gd-uJLmV.mjs"), "../components/templates/BlockQuote.vue": () => import("./BlockQuote-Cx9XdFGZ.mjs"), "../components/templates/CaptionNumber.vue": () => import("./CaptionNumber-B3c0JP0T.mjs"), "../components/templates/ColumnGroup.vue": () => import("./ColumnGroup-DYs1xB1a.mjs"), "../components/templates/Comment.vue": () => import("./Comment-DpyTzHo4.mjs"), "../components/templates/Compound.vue": () => import("./Compound-ByH1w0P6.mjs"), "../components/templates/Container.vue": () => import("./Container-CmVmxWIt.mjs"), "../components/templates/DirectElementMap.vue": () => import("./DirectElementMap-B-wTPjj0.mjs"), "../components/templates/Document.vue": () => Promise.resolve().then(() => _), "../components/templates/DownloadReference.vue": () => import("./DownloadReference-CtG3pZe0.mjs"), "../components/templates/Figure.vue": () => import("./Figure-BV3wzLZX.mjs"), "../components/templates/FigureCaption.vue": () => import("./FigureCaption-DPm7W0CJ.mjs"), "../components/templates/Footnote.vue": () => import("./Footnote-DAEfbxUi.mjs"), "../components/templates/FootnoteReference.vue": () => import("./FootnoteReference-Bi6FG4qF.mjs"), "../components/templates/Image.vue": () => import("./Image-UjDGAe4v.mjs"), "../components/templates/Legend.vue": () => import("./Legend-BL0KvT6x.mjs"), "../components/templates/LineBlock.vue": () => import("./LineBlock-yNMN4PnM.mjs"), "../components/templates/LineSingle.vue": () => import("./LineSingle-D8mP9JxV.mjs"), "../components/templates/Literal.vue": () => import("./Literal-B3RMToDf.mjs"), "../components/templates/LiteralBlock.vue": () => import("./LiteralBlock-DSNLfJRQ.mjs"), "../components/templates/Math.vue": () => import("./Math-Cq4PVbWU.mjs"), "../components/templates/MathBlock.vue": () => import("./MathBlock-BQlgpnCi.mjs"), "../components/templates/Note.vue": () => import("./Note-DTXT2vL1.mjs"), "../components/templates/NumberReference.vue": () => import("./NumberReference-eWL-p05o.mjs"), "../components/templates/Problematic.vue": () => import("./Problematic-DdYGUPom.mjs"), "../components/templates/Raw.vue": () => import("./Raw-DuZmU9hd.mjs"), "../components/templates/Reference.vue": () => import("./Reference-NuJMaVmj.mjs"), "../components/templates/Section.vue": () => import("./Section-CsKQgVcF.mjs"), "../components/templates/Skip.vue": () => import("./Skip-CRGkjuMM.mjs"), "../components/templates/StandardElement.vue": () => import("./StandardElement-Cf1EpLze.mjs"), "../components/templates/Text.vue": () => import("./Text-CT8nEMkp.mjs"), "../components/templates/Title.vue": () => import("./Title-DoIeD6eK.mjs"), "../components/templates/TodoNode.vue": () => import("./TodoNode-C6L-iGX4.mjs"), "../components/templates/Topic.vue": () => import("./Topic-BrgzQGpm.mjs"), "../components/templates/Transition.vue": () => import("./Transition-CWMp4Zlv.mjs"), "../components/templates/Warning.vue": () => import("./Warning-dcxt8LRd.mjs") }), `../components/templates/${o}.vue`, 4),
|
|
138
|
+
// A component to use while the async component is loading
|
|
139
|
+
loadingComponent: g,
|
|
140
|
+
// A component to use if the load fails
|
|
141
|
+
errorComponent: f
|
|
142
|
+
}),
|
|
143
|
+
name: o,
|
|
144
|
+
node: e,
|
|
145
|
+
properties: {
|
|
146
|
+
colspecs: t
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function D(e) {
|
|
151
|
+
let t = e.charAt(0).toUpperCase() + e.slice(1);
|
|
152
|
+
return c.has(e) ? t = c.get(e) : B.has(e) && (t = "StandardElement"), t;
|
|
153
|
+
}
|
|
154
|
+
function F(e, t, o) {
|
|
155
|
+
if (t === null)
|
|
156
|
+
return e;
|
|
157
|
+
let n = [];
|
|
158
|
+
for (const p of t.querySelectorAll("colspec"))
|
|
159
|
+
n.push(p.getAttribute("colwidth"));
|
|
160
|
+
return n.length !== o && console.log("***** Something is not right. *****", n.length, o), e.push(x(t, n)), e;
|
|
161
|
+
}
|
|
162
|
+
function a(e, t) {
|
|
163
|
+
if (t === null)
|
|
164
|
+
return e;
|
|
165
|
+
let o = null;
|
|
166
|
+
for (const n of t.childNodes) {
|
|
167
|
+
const p = n.nodeName;
|
|
168
|
+
if (p === "compact_paragraph")
|
|
169
|
+
e = a(e, n);
|
|
170
|
+
else if (p === "tgroup") {
|
|
171
|
+
const m = Number(n.getAttribute("cols"));
|
|
172
|
+
e = F(e, n, m), e = a(e, n);
|
|
173
|
+
} else if (p !== "colspec") if (p === "target")
|
|
174
|
+
o = n.getAttribute("refid");
|
|
175
|
+
else {
|
|
176
|
+
p !== "#text" && o && (n.setAttribute("id", o), o = "");
|
|
177
|
+
const m = D(p), r = R(m, n);
|
|
178
|
+
r && e.push(r);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return e;
|
|
182
|
+
}
|
|
183
|
+
function A(e) {
|
|
184
|
+
return {
|
|
185
|
+
children: u(() => a([], e.value))
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function O(e) {
|
|
189
|
+
return {
|
|
190
|
+
classes: u(() => {
|
|
191
|
+
let o = e.value.getAttribute("classes"), n = [];
|
|
192
|
+
return o && (n = o.split(" ")), [e.value.nodeName.toLowerCase(), ...n];
|
|
193
|
+
})
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
const E = ["id"], P = {
|
|
197
|
+
__name: "Document",
|
|
198
|
+
props: {
|
|
199
|
+
element: {
|
|
200
|
+
type: void 0,
|
|
201
|
+
default: { empty: !0 }
|
|
202
|
+
},
|
|
203
|
+
id: {
|
|
204
|
+
type: String,
|
|
205
|
+
default: ""
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
setup(e) {
|
|
209
|
+
const t = e, { element: o } = b(t), { children: n } = A(o);
|
|
210
|
+
return (p, m) => (i(), l("div", { id: e.id }, [
|
|
211
|
+
(i(!0), l(C, null, k(y(n), (r, h) => (i(), S(T(r.component), {
|
|
212
|
+
key: "document_component_" + h,
|
|
213
|
+
node: r.node,
|
|
214
|
+
componentName: r.name,
|
|
215
|
+
properties: r.properties
|
|
216
|
+
}, null, 8, ["node", "componentName", "properties"]))), 128))
|
|
217
|
+
], 8, E));
|
|
218
|
+
}
|
|
219
|
+
}, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
220
|
+
__proto__: null,
|
|
221
|
+
default: P
|
|
222
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
223
|
+
export {
|
|
224
|
+
_ as D,
|
|
225
|
+
w as _,
|
|
226
|
+
A as a,
|
|
227
|
+
B as n,
|
|
228
|
+
O as u
|
|
229
|
+
};
|
|
230
|
+
//# sourceMappingURL=Document-PZAyvjWh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Document-PZAyvjWh.mjs","sources":["../src/components/Error.vue","../src/components/Loading.vue","../src/js/nodemap.js","../src/composables/computed.js","../src/components/templates/Document.vue"],"sourcesContent":["<template>\n <div>\n <h3>Missing: '{{ componentName }}' from Sphinx XML output</h3>\n <span>It seems the component was not found.</span>\n </div>\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n","<template>\n <div class=\"loading-container\">\n <span>Loading page component</span>\n <span class=\"lds-roller\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </span>\n </div>\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n\n<style scoped>\n.loading-container {\n display: flex;\n align-items: center;\n}\n\n.lds-roller {\n transform: scale(0.5);\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-roller div {\n animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n transform-origin: 40px 40px;\n}\n.lds-roller div:after {\n content: ' ';\n display: block;\n position: absolute;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: rgb(116, 116, 116);\n margin: -4px 0 0 -4px;\n}\n.lds-roller div:nth-child(1) {\n animation-delay: -0.036s;\n}\n.lds-roller div:nth-child(1):after {\n top: 63px;\n left: 63px;\n}\n.lds-roller div:nth-child(2) {\n animation-delay: -0.072s;\n}\n.lds-roller div:nth-child(2):after {\n top: 68px;\n left: 56px;\n}\n.lds-roller div:nth-child(3) {\n animation-delay: -0.108s;\n}\n.lds-roller div:nth-child(3):after {\n top: 71px;\n left: 48px;\n}\n.lds-roller div:nth-child(4) {\n animation-delay: -0.144s;\n}\n.lds-roller div:nth-child(4):after {\n top: 72px;\n left: 40px;\n}\n.lds-roller div:nth-child(5) {\n animation-delay: -0.18s;\n}\n.lds-roller div:nth-child(5):after {\n top: 71px;\n left: 32px;\n}\n.lds-roller div:nth-child(6) {\n animation-delay: -0.216s;\n}\n.lds-roller div:nth-child(6):after {\n top: 68px;\n left: 24px;\n}\n.lds-roller div:nth-child(7) {\n animation-delay: -0.252s;\n}\n.lds-roller div:nth-child(7):after {\n top: 63px;\n left: 17px;\n}\n.lds-roller div:nth-child(8) {\n animation-delay: -0.288s;\n}\n.lds-roller div:nth-child(8):after {\n top: 56px;\n left: 12px;\n}\n@keyframes lds-roller {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n</style>\n","export const nodeNameTagNameMap = new Map([\n ['bullet_list', 'ul'],\n ['button', 'button'],\n ['citation', 'cite'],\n ['definition', 'dd'],\n ['definition_list', 'dl'],\n ['definition_list_item', 'dt'],\n ['div', 'div'],\n ['emphasis', 'em'],\n ['enumerated_list', 'ol'],\n ['glossary', 'div'],\n ['inline', 'span'],\n ['label', 'span'],\n ['list_item', 'li'],\n ['line', 'p'],\n ['paragraph', 'p'],\n ['rubric', 'h3'],\n ['strong', 'strong'],\n ['subscript', 'sub'],\n ['superscript', 'sup'],\n ['table', 'table'],\n ['tbody', 'tbody'],\n ['entry', 'td'],\n ['row', 'tr'],\n ['thead', 'thead'],\n ['term', 'dt'],\n ['title_reference', 'cite'],\n])\n\nexport const nodeNameTemplateNameMap = new Map([\n ['#text', 'Text'],\n ['block_quote', 'BlockQuote'],\n ['caption', 'FigureCaption'],\n ['caption_number', 'CaptionNumber'],\n ['download_reference', 'DownloadReference'],\n ['footnote_reference', 'FootnoteReference'],\n ['index', 'Skip'],\n ['line_block', 'LineBlock'],\n ['literal_block', 'LiteralBlock'],\n ['math_block', 'MathBlock'],\n ['number_reference', 'NumberReference'],\n])\n","import { computed, defineAsyncComponent } from 'vue'\n\nimport ErrorComponent from '../components/Error.vue'\nimport LoadingComponent from '../components/Loading.vue'\nimport { nodeNameTagNameMap, nodeNameTemplateNameMap } from '../js/nodemap'\n\nfunction defineChildComponent(name, node) {\n let properties = undefined\n if (node.nodeName === '#text') {\n if (!node.nodeValue.trim()) {\n return null\n }\n properties = {\n text: node.nodeValue,\n }\n } else if (node.nodeName === 'warning') {\n let parentNode = node.parentNode\n let depth = 0\n while (parentNode) {\n if (parentNode.nodeName === 'section') {\n depth += 1\n }\n parentNode = parentNode.parentNode\n }\n properties = {\n depth\n }\n } else if (node.nodeName === 'title') {\n let parentNode = node.parentNode\n let depth = 0\n let isTopic = false\n if (parentNode.nodeName === 'topic') {\n isTopic = true\n } else {\n while (parentNode) {\n // && parentNode.nodeName !== ('SphinxPage' should now be 'document' but maybe this is no longer requied).\n if (parentNode.nodeName === 'section') {\n depth += 1\n }\n parentNode = parentNode.parentNode\n }\n }\n properties = {\n depth,\n isTopic,\n }\n }\n const component = defineAsyncComponent({\n loader: () => {\n return import(`../components/templates/${name}.vue`)\n },\n // A component to use while the async component is loading\n loadingComponent: LoadingComponent,\n // A component to use if the load fails\n errorComponent: ErrorComponent,\n })\n\n return {\n component,\n name,\n node,\n properties,\n }\n}\n\nfunction defineColgroupComponent(node, colspecs) {\n const name = 'ColumnGroup'\n const component = defineAsyncComponent({\n loader: () => {\n return import(`../components/templates/${name}.vue`)\n },\n // A component to use while the async component is loading\n loadingComponent: LoadingComponent,\n // A component to use if the load fails\n errorComponent: ErrorComponent,\n })\n \n const properties = {\n colspecs\n }\n\n return {\n component,\n name,\n node,\n properties,\n }\n}\n\nfunction mapToComponentName(name) {\n let componentName =\n name.charAt(0).toUpperCase() + name.slice(1)\n if (nodeNameTemplateNameMap.has(name)) {\n componentName = nodeNameTemplateNameMap.get(name)\n } else if (nodeNameTagNameMap.has(name)) {\n componentName = 'StandardElement'\n }\nreturn componentName\n}\n\nfunction addTGroup(components, node, columns) {\n if (node === null) {\n return components\n }\n\n let colspecs = []\n for (const colspec of node.querySelectorAll('colspec')) {\n colspecs.push(colspec.getAttribute('colwidth'))\n }\n\n if (colspecs.length !== columns) {\n console.log('***** Something is not right. *****', colspecs.length, columns)\n }\n components.push(defineColgroupComponent(node, colspecs))\n\n return components\n}\n\nfunction addComponents(components, node) {\n if (node === null) {\n return components\n }\n\n let childTarget = null\n for (const child of node.childNodes) {\n const childName = child.nodeName\n if (childName === 'compact_paragraph') {\n // Skip over this wrapper and directly add its children to this component.\n components = addComponents(components, child)\n } else if (childName === 'tgroup') {\n // Skip over these wrappers and directly add their children to this component.\n const columnCount = Number(child.getAttribute('cols'))\n components = addTGroup(components, child, columnCount)\n components = addComponents(components, child)\n } else if (childName === 'colspec') {\n // Ignore this element completely, this element is dealt with by 'tgroup'.\n } else {\n if (childName === 'target') {\n childTarget = child.getAttribute('refid')\n } else {\n if (childName !== '#text' && childTarget) {\n child.setAttribute('id', childTarget)\n childTarget = ''\n }\n const componentName = mapToComponentName(childName)\n const item = defineChildComponent(componentName, child)\n if (item) {\n components.push(item)\n }\n }\n }\n }\n\n return components\n}\n\nexport function useChildren(element) {\n const children = computed(() => {\n return addComponents([], element.value)\n })\n\n return {\n children,\n }\n}\n\nexport function useClasses(element) {\n const classes = computed(() => {\n let classesString = element.value.getAttribute('classes')\n let classes = []\n if (classesString) {\n classes = classesString.split(' ')\n }\n return [element.value.nodeName.toLowerCase(), ...classes]\n })\n\n return {\n classes\n }\n}\n","<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"],"names":["_createElementBlock","_createElementVNode","_toDisplayString","__props","_cache","_openBlock","_hoisted_1","nodeNameTagNameMap","nodeNameTemplateNameMap","defineChildComponent","name","node","properties","parentNode","depth","isTopic","defineAsyncComponent","__variableDynamicImportRuntimeHelper","Document","LoadingComponent","ErrorComponent","defineColgroupComponent","colspecs","mapToComponentName","componentName","addTGroup","components","columns","colspec","addComponents","childTarget","child","childName","columnCount","item","useChildren","element","computed","useClasses","classesString","classes","props","toRefs","children","_Fragment","_renderList","_unref","c","index","_create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,OACVE,EAAA,EAAA,GAAAL,EAOE4C,GAAA,MAAAC,EANqBC,EAAAH,CAAA,GAAQ,CAArBI,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,6BAA6BC;AAAA,QAE7B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { toRefs as p, computed as f, ref as m,
|
|
1
|
+
import { toRefs as p, computed as f, ref as m, createElementBlock as h, openBlock as g, normalizeClass as v, toDisplayString as _ } from "vue";
|
|
2
2
|
import { useRoute as w } from "vue-router";
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
3
|
+
import { u as R, d as S } from "./entry-CNV5B73A.mjs";
|
|
4
|
+
const x = ["href", "download"], D = {
|
|
5
5
|
__name: "DownloadReference",
|
|
6
6
|
props: {
|
|
7
7
|
node: {
|
|
@@ -13,24 +13,24 @@ const b = ["href", "download"], D = {
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
setup(s) {
|
|
16
|
-
const a = s, { node: t } = p(a), l = w(),
|
|
16
|
+
const a = s, { node: t } = p(a), l = w(), u = R(), c = f(() => {
|
|
17
17
|
let e = t.value.getAttribute("filename");
|
|
18
18
|
if (e && !e.startsWith("/") && !e.startsWith("http")) {
|
|
19
19
|
const r = S(l);
|
|
20
|
-
e = [
|
|
20
|
+
e = [u.getDownloadURL(r), e].join(
|
|
21
21
|
"/"
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
return e;
|
|
25
25
|
}), n = t.value.getAttribute("reftarget").split("/"), i = n[n.length - 1], d = ["reference", "internal", t.value.getAttribute("reftype")], o = m("not-set");
|
|
26
|
-
return o.value = i, (e, r) => (
|
|
27
|
-
href:
|
|
26
|
+
return o.value = i, (e, r) => (g(), h("a", {
|
|
27
|
+
href: c.value,
|
|
28
28
|
download: o.value,
|
|
29
29
|
class: v(d)
|
|
30
|
-
}, _(o.value), 9,
|
|
30
|
+
}, _(o.value), 9, x));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
34
|
D as default
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=DownloadReference-
|
|
36
|
+
//# sourceMappingURL=DownloadReference-CtG3pZe0.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadReference-
|
|
1
|
+
{"version":3,"file":"DownloadReference-CtG3pZe0.mjs","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"],"names":["props","__props","node","toRefs","route","useRoute","sphinxStore","useSphinxStore","href","computed","downloadHref","routeURL","determineRouteUrl","targetParts","downloadName","classes","saveFilename","ref","_createElementBlock","_hoisted_1"],"mappings":";;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAUR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAQC,EAAQ,GAChBC,IAAcC,EAAc,GAE5BC,IAAOC,EAAS,MAAM;AAC1B,UAAIC,IAAeR,EAAK,MAAM,aAAa,UAAU;AACrD,UACEQ,KACA,CAACA,EAAa,WAAW,GAAG,KAC5B,CAACA,EAAa,WAAW,MAAM,GAC/B;AACA,cAAMC,IAAWC,EAAkBR,CAAK;AACxC,QAAAM,IAAe,CAACJ,EAAY,eAAeK,CAAQ,GAAGD,CAAY,EAAE;AAAA,UAClE;AAAA,QACN;AAAA,MACE;AACA,aAAOA;AAAA,IACT,CAAC,GAEKG,IAAcX,EAAK,MAAM,aAAa,WAAW,EAAE,MAAM,GAAG,GAC5DY,IAAeD,EAAYA,EAAY,SAAS,CAAC,GACjDE,IAAU,CAAC,aAAa,YAAYb,EAAK,MAAM,aAAa,SAAS,CAAC,GAGtEc,IAAeC,EAAI,SAAS;AAClC,WAAAD,EAAa,QAAQF,mBA/CnBI,EAEM,KAAA;AAAA,MAFF,MAAMV,EAAA;AAAA,MAAO,UAAUQ,EAAA;AAAA,MAAe,SAAOD,CAAO;AAAA,SACtDC,EAAA,KAAY,GAAA,GAAAG,CAAA;AAAA;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toRefs as f, ref as v, computed as g,
|
|
2
|
-
import { u as N, a as j } from "./
|
|
3
|
-
import { u as x } from "./methods-
|
|
1
|
+
import { toRefs as f, ref as v, computed as g, createElementBlock as a, openBlock as r, normalizeProps as _, guardReactiveProps as h, Fragment as y, renderList as b, unref as k, createBlock as C, resolveDynamicComponent as B } from "vue";
|
|
2
|
+
import { u as N, a as j } from "./Document-PZAyvjWh.mjs";
|
|
3
|
+
import { u as x } from "./methods-ClbyDlbW.mjs";
|
|
4
4
|
const R = {
|
|
5
5
|
__name: "Figure",
|
|
6
6
|
props: {
|
|
@@ -35,4 +35,4 @@ const R = {
|
|
|
35
35
|
export {
|
|
36
36
|
R as default
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=Figure-
|
|
38
|
+
//# sourceMappingURL=Figure-BV3wzLZX.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Figure-
|
|
1
|
+
{"version":3,"file":"Figure-BV3wzLZX.mjs","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"],"names":["props","__props","dataObject","useMethods","node","toRefs","attrs","ref","classes","useClasses","children","useChildren","combinerdClasses","computed","c","attr","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","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,IAAmBC,EAAS,MAAM;AACtC,UAAIC,IAAI,CAAC,GAAGN,EAAQ,KAAK;AACzB,iBAAWO,KAAQX,EAAK,MAAM;AAC5B,QAAIW,EAAK,SAAS,WAChBD,EAAE,KAAK,WAAWC,EAAK,KAAK;AAGhC,aAAOD;AAAA,IACT,CAAC;AAED,WAAAR,EAAM,QAAQJ,EAAWE,EAAK,OAAOQ,EAAiB,KAAK,EAAE,kBAhD3DI,EAAA,GAAAC,EASS,cATEX,EAAA,KAAK,CAAA,GAAA;AAAA,OACdU,EAAA,EAAA,GAAAC,EAOEC,GAAA,MAAAC,EANqBC,EAAAV,CAAA,GAAQ,CAArBI,GAAGO,YADbC,EAOEC,EAJKT,EAAE,SAAS,GAAA;AAAA,QADf,2BAA2BO;AAAA,QAE3B,MAAMP,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|