vue3-sphinx-xml 0.6.0 → 0.6.1
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-gd-uJLmV.mjs → Admonition-C1LWpeza.mjs} +3 -3
- package/dist/{Admonition-gd-uJLmV.mjs.map → Admonition-C1LWpeza.mjs.map} +1 -1
- package/dist/{BlockQuote-Cx9XdFGZ.mjs → BlockQuote-DQGmutzn.mjs} +2 -2
- package/dist/{BlockQuote-Cx9XdFGZ.mjs.map → BlockQuote-DQGmutzn.mjs.map} +1 -1
- package/dist/{CaptionNumber-B3c0JP0T.mjs → CaptionNumber-CqeASt_i.mjs} +3 -3
- package/dist/{CaptionNumber-B3c0JP0T.mjs.map → CaptionNumber-CqeASt_i.mjs.map} +1 -1
- package/dist/{Compound-ByH1w0P6.mjs → Compound-BvroDjHX.mjs} +2 -2
- package/dist/{Compound-ByH1w0P6.mjs.map → Compound-BvroDjHX.mjs.map} +1 -1
- package/dist/{Container-CmVmxWIt.mjs → Container-BTZf-b6P.mjs} +3 -3
- package/dist/{Container-CmVmxWIt.mjs.map → Container-BTZf-b6P.mjs.map} +1 -1
- package/dist/{Document-PZAyvjWh.mjs → Document-Ciwh11I6.mjs} +3 -3
- package/dist/{Document-PZAyvjWh.mjs.map → Document-Ciwh11I6.mjs.map} +1 -1
- package/dist/{DownloadReference-CtG3pZe0.mjs → DownloadReference-BKyZDsoj.mjs} +2 -2
- package/dist/{DownloadReference-CtG3pZe0.mjs.map → DownloadReference-BKyZDsoj.mjs.map} +1 -1
- package/dist/{Figure-BV3wzLZX.mjs → Figure-fjT2FOsJ.mjs} +3 -3
- package/dist/{Figure-BV3wzLZX.mjs.map → Figure-fjT2FOsJ.mjs.map} +1 -1
- package/dist/{FigureCaption-DPm7W0CJ.mjs → FigureCaption-CyYfEcCd.mjs} +3 -3
- package/dist/{FigureCaption-DPm7W0CJ.mjs.map → FigureCaption-CyYfEcCd.mjs.map} +1 -1
- package/dist/{Footnote-DAEfbxUi.mjs → Footnote-DVcKM62Z.mjs} +3 -3
- package/dist/{Footnote-DAEfbxUi.mjs.map → Footnote-DVcKM62Z.mjs.map} +1 -1
- package/dist/{FootnoteReference-Bi6FG4qF.mjs → FootnoteReference-CevmkftO.mjs} +3 -3
- package/dist/{FootnoteReference-Bi6FG4qF.mjs.map → FootnoteReference-CevmkftO.mjs.map} +1 -1
- package/dist/{Image-UjDGAe4v.mjs → Image-BkvoN6Va.mjs} +4 -4
- package/dist/{Image-UjDGAe4v.mjs.map → Image-BkvoN6Va.mjs.map} +1 -1
- package/dist/{Legend-BL0KvT6x.mjs → Legend-zR_qvYxu.mjs} +2 -2
- package/dist/{Legend-BL0KvT6x.mjs.map → Legend-zR_qvYxu.mjs.map} +1 -1
- package/dist/{LineBlock-yNMN4PnM.mjs → LineBlock-DRrGaTVf.mjs} +3 -3
- package/dist/{LineBlock-yNMN4PnM.mjs.map → LineBlock-DRrGaTVf.mjs.map} +1 -1
- package/dist/{LineSingle-D8mP9JxV.mjs → LineSingle-0djhboXu.mjs} +3 -3
- package/dist/{LineSingle-D8mP9JxV.mjs.map → LineSingle-0djhboXu.mjs.map} +1 -1
- package/dist/{Literal-B3RMToDf.mjs → Literal-B_0bDO6F.mjs} +3 -3
- package/dist/{Literal-B3RMToDf.mjs.map → Literal-B_0bDO6F.mjs.map} +1 -1
- package/dist/{LiteralBlock-DSNLfJRQ.mjs → LiteralBlock-BLa6tk4x.mjs} +2 -2
- package/dist/{LiteralBlock-DSNLfJRQ.mjs.map → LiteralBlock-BLa6tk4x.mjs.map} +1 -1
- package/dist/{Note-DTXT2vL1.mjs → Note-DfIeqrXb.mjs} +3 -3
- package/dist/{Note-DTXT2vL1.mjs.map → Note-DfIeqrXb.mjs.map} +1 -1
- package/dist/{NumberReference-eWL-p05o.mjs → NumberReference-Bzq9ZOkm.mjs} +3 -3
- package/dist/{NumberReference-eWL-p05o.mjs.map → NumberReference-Bzq9ZOkm.mjs.map} +1 -1
- package/dist/{Problematic-DdYGUPom.mjs → Problematic-C_GOe5g8.mjs} +2 -2
- package/dist/{Problematic-DdYGUPom.mjs.map → Problematic-C_GOe5g8.mjs.map} +1 -1
- package/dist/{Reference-NuJMaVmj.mjs → Reference-C3p4_jzs.mjs} +4 -4
- package/dist/{Reference-NuJMaVmj.mjs.map → Reference-C3p4_jzs.mjs.map} +1 -1
- package/dist/{Section-CsKQgVcF.mjs → Section-C1fT1LoO.mjs} +3 -3
- package/dist/{Section-CsKQgVcF.mjs.map → Section-C1fT1LoO.mjs.map} +1 -1
- package/dist/{StandardElement-Cf1EpLze.mjs → StandardElement-DObLRysY.mjs} +3 -3
- package/dist/{StandardElement-Cf1EpLze.mjs.map → StandardElement-DObLRysY.mjs.map} +1 -1
- package/dist/{Title-DoIeD6eK.mjs → Title-BXKmKZJr.mjs} +2 -2
- package/dist/{Title-DoIeD6eK.mjs.map → Title-BXKmKZJr.mjs.map} +1 -1
- package/dist/{TodoNode-C6L-iGX4.mjs → TodoNode-BubW_p1P.mjs} +3 -3
- package/dist/{TodoNode-C6L-iGX4.mjs.map → TodoNode-BubW_p1P.mjs.map} +1 -1
- package/dist/{Topic-BrgzQGpm.mjs → Topic-Cw8NozpE.mjs} +3 -3
- package/dist/{Topic-BrgzQGpm.mjs.map → Topic-Cw8NozpE.mjs.map} +1 -1
- package/dist/{Warning-dcxt8LRd.mjs → Warning-B2aBs-ON.mjs} +3 -3
- package/dist/{Warning-dcxt8LRd.mjs.map → Warning-B2aBs-ON.mjs.map} +1 -1
- package/dist/{basereference-7wajqzV8.mjs → basereference-B1sG1P00.mjs} +3 -3
- package/dist/{basereference-7wajqzV8.mjs.map → basereference-B1sG1P00.mjs.map} +1 -1
- package/dist/{entry-CNV5B73A.mjs → entry-NtWSzZvs.mjs} +2 -2
- package/dist/{entry-CNV5B73A.mjs.map → entry-NtWSzZvs.mjs.map} +1 -1
- package/dist/methods-DhzaI6N4.mjs +72 -0
- package/dist/methods-DhzaI6N4.mjs.map +1 -0
- package/dist/vue3-sphinx-xml.js +4 -4
- package/dist/vue3-sphinx-xml.js.map +1 -1
- package/dist/vue3-sphinx-xml.mjs +1 -1
- package/package.json +1 -1
- package/dist/methods-ClbyDlbW.mjs +0 -69
- package/dist/methods-ClbyDlbW.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as d, ref as f, createElementBlock as c, openBlock as o, normalizeClass as _, createElementVNode as y, Fragment as h, renderList as v, unref as g, createBlock as k, resolveDynamicComponent as E } from "vue";
|
|
2
|
-
import { u as N } from "./methods-
|
|
3
|
-
import { a as B } from "./Document-
|
|
2
|
+
import { u as N } from "./methods-DhzaI6N4.mjs";
|
|
3
|
+
import { a as B } from "./Document-Ciwh11I6.mjs";
|
|
4
4
|
const C = { class: "pre" }, O = {
|
|
5
5
|
__name: "Literal",
|
|
6
6
|
props: {
|
|
@@ -39,4 +39,4 @@ const C = { class: "pre" }, O = {
|
|
|
39
39
|
export {
|
|
40
40
|
O as default
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=Literal-
|
|
42
|
+
//# sourceMappingURL=Literal-B_0bDO6F.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Literal-
|
|
1
|
+
{"version":3,"file":"Literal-B_0bDO6F.mjs","sources":["../src/components/templates/Literal.vue"],"sourcesContent":["<template>\n <code :class=\"classes\">\n <span class=\"pre\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'code_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n </code>\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)\n\nconst { dataObject } = useMethods()\n\nconst { children } = useChildren(node)\n\nconst classes = ref(['literal', 'notranslate'])\n\nconst v = dataObject(node.value)\nconst isEmpty = (d) => {\n for (const i in d) {\n if (d[i].language === '') {\n continue\n }\n return false\n }\n\n return true\n}\n\nif (!isEmpty(v)) {\n if (v.attrs && v.attrs.role) {\n classes.value.push(v.attrs.role)\n }\n}\n</script>\n"],"names":["props","__props","node","toRefs","dataObject","useMethods","children","useChildren","classes","ref","v","d","i","_createElementBlock","_createElementVNode","_hoisted_1","_openBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,YAAAI,EAAU,IAAKC,EAAU,GAE3B,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI,GAE/BM,IAAUC,EAAI,CAAC,WAAW,aAAa,CAAC,GAExCC,IAAIN,EAAWF,EAAK,KAAK;AAY/B,YAXgB,CAACS,MAAM;AACrB,iBAAWC,KAAKD;AACd,YAAIA,EAAEC,CAAC,EAAE,aAAa;AAGtB,iBAAO;AAGT,aAAO;AAAA,IACT,GAEaF,CAAC,KACRA,EAAE,SAASA,EAAE,MAAM,QACrBF,EAAQ,MAAM,KAAKE,EAAE,MAAM,IAAI,mBAvDjCG,EAWO,QAAA;AAAA,MAXA,SAAOL,EAAA,KAAO;AAAA;MACnBM,EASO,QATPC,GASO;AAAA,SARLC,EAAA,EAAA,GAAAH,EAOEI,GAAA,MAAAC,EANqBC,EAAAb,CAAA,GAAQ,CAArBc,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,UADf,yBAAyBC;AAAA,UAEzB,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as c, computed as o, resolveDirective as i, withDirectives as u, createElementBlock as p, openBlock as d, createElementVNode as g, normalizeClass as m, toDisplayString as f } from "vue";
|
|
2
|
-
import { a as h } from "./entry-
|
|
2
|
+
import { a as h } from "./entry-NtWSzZvs.mjs";
|
|
3
3
|
const y = {
|
|
4
4
|
__name: "LiteralBlock",
|
|
5
5
|
props: {
|
|
@@ -34,4 +34,4 @@ const y = {
|
|
|
34
34
|
export {
|
|
35
35
|
y as default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=LiteralBlock-
|
|
37
|
+
//# sourceMappingURL=LiteralBlock-BLa6tk4x.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiteralBlock-
|
|
1
|
+
{"version":3,"file":"LiteralBlock-BLa6tk4x.mjs","sources":["../src/components/templates/LiteralBlock.vue"],"sourcesContent":["<template>\n <pre v-highlightjs><code :class=\"sourceLanguage\">{{ sourceCode }}</code></pre>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { decodeHTML } 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)\n\nconst sourceLanguage = computed(() => {\n let language = node.value.getAttribute('language')\n if (language === 'console' || language === 'default') {\n language = 'bash'\n } else if (language === 'text') {\n language = 'plaintext'\n }\n return language\n})\n\nconst sourceCode = computed(() => {\n return decodeHTML(node.value.innerHTML)\n})\n</script>\n"],"names":["props","__props","node","toRefs","sourceLanguage","computed","language","sourceCode","decodeHTML","_createElementBlock","_createElementVNode"],"mappings":";;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvBI,IAAiBC,EAAS,MAAM;AACpC,UAAIC,IAAWJ,EAAK,MAAM,aAAa,UAAU;AACjD,aAAII,MAAa,aAAaA,MAAa,YACzCA,IAAW,SACFA,MAAa,WACtBA,IAAW,cAENA;AAAA,IACT,CAAC,GAEKC,IAAaF,EAAS,MACnBG,EAAWN,EAAK,MAAM,SAAS,CACvC;;;qBAnCCO,EAA8E,OAAA,MAAA;AAAA,QAA3DC,EAAqD,QAAA;AAAA,UAA9C,SAAON,EAAA,KAAc;AAAA,aAAKG,EAAA,KAAU,GAAA,CAAA;AAAA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as c, ref as d, createElementBlock as p, openBlock as t, normalizeProps as u, guardReactiveProps as f, createElementVNode as v, Fragment as N, renderList as _, unref as y, createBlock as k, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { u as B } from "./methods-
|
|
3
|
-
import { a as b } from "./Document-
|
|
2
|
+
import { u as B } from "./methods-DhzaI6N4.mjs";
|
|
3
|
+
import { a as b } from "./Document-Ciwh11I6.mjs";
|
|
4
4
|
const E = {
|
|
5
5
|
__name: "Note",
|
|
6
6
|
props: {
|
|
@@ -31,4 +31,4 @@ const E = {
|
|
|
31
31
|
export {
|
|
32
32
|
E as default
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=Note-
|
|
34
|
+
//# sourceMappingURL=Note-DfIeqrXb.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Note-
|
|
1
|
+
{"version":3,"file":"Note-DfIeqrXb.mjs","sources":["../src/components/templates/Note.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <p class=\"admonition-title\">Note</p>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'note_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 { dataObject } = useMethods()\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\n\nattrs.value = dataObject(node.value, ['admonition', 'note']).attrs\n</script>\n"],"names":["props","__props","node","toRefs","dataObject","useMethods","attrs","ref","children","useChildren","_openBlock","_createElementBlock","_cache","_createElementVNode","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,YAAAI,EAAU,IAAKC,EAAU,GAC3BC,IAAQC,EAAI,CAAA,CAAE,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYP,CAAI;AAErC,WAAAI,EAAM,QAAQF,EAAWF,EAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE,kBAtC3DQ,EAAA,GAAAC,EAUM,WAVEL,EAAA,KAAK,CAAA,GAAA;AAAA,MACXM,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAAoC,KAAA,EAAjC,OAAM,mBAAkB,GAAC,QAAI,EAAA;AAAA,OAChCH,EAAA,EAAA,GAAAC,EAOEG,GAAA,MAAAC,EANqBC,EAAAR,CAAA,GAAQ,CAArBS,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,yBAAyBC;AAAA,QAEzB,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as d, toRefs as _, onMounted as h, computed as v, resolveComponent as k, createBlock as g, createElementBlock as b, unref as o, openBlock as a, withCtx as R, createTextVNode as y, toDisplayString as c } from "vue";
|
|
2
2
|
import { useRoute as C } from "vue-router";
|
|
3
|
-
import { u as x } from "./methods-
|
|
4
|
-
import { u as A } from "./basereference-
|
|
3
|
+
import { u as x } from "./methods-DhzaI6N4.mjs";
|
|
4
|
+
import { u as A } from "./basereference-B1sG1P00.mjs";
|
|
5
5
|
const B = ["href"], L = {
|
|
6
6
|
__name: "NumberReference",
|
|
7
7
|
props: {
|
|
@@ -45,4 +45,4 @@ const B = ["href"], L = {
|
|
|
45
45
|
export {
|
|
46
46
|
L as default
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=NumberReference-
|
|
48
|
+
//# sourceMappingURL=NumberReference-Bzq9ZOkm.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberReference-
|
|
1
|
+
{"version":3,"file":"NumberReference-Bzq9ZOkm.mjs","sources":["../src/components/templates/NumberReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ title }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n {{ title }}\n </a>\n</template>\n\n<script setup>\nimport { computed, 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\nconst title = computed(() => {\n if (node.value.childElementCount) {\n // A number reference has a single child element that\n // contains the label for the referenced element.\n // This is what we are assuming: <inline classes=\"std std-numref\">Fig. 3</inline>\n return node.value.children[0].innerHTML\n }\n\n let refLabel = node.value.getAttribute('refid')\n if (!refLabel) {\n refLabel = node.value.getAttribute('refuri')\n }\n const t = refLabel.replace('-', ' ')\n return 'Fig. ' + t.charAt(0).toUpperCase() + t.slice(1)\n})\n</script>\n"],"names":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","title","computed","refLabel","t","_unref","_createBlock","_component_router_link","_createElementBlock","_hoisted_1"],"mappings":";;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAURC,IAAmBC,EAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC,GAC3C,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAQ,GAEhB,EAAE,qBAAAC,EAAmB,IAAKC,EAAU,GACpC,EAAE,oBAAAC,EAAkB,IAAKC,EAAiBP,EAAK,OAAOE,GAAOJ,CAAgB;AAEnF,IAAAU,EAAUF,CAAkB;AAE5B,UAAMG,IAAQC,EAAS,MAAM;AAC3B,UAAIV,EAAK,MAAM;AAIb,eAAOA,EAAK,MAAM,SAAS,CAAC,EAAE;AAGhC,UAAIW,IAAWX,EAAK,MAAM,aAAa,OAAO;AAC9C,MAAKW,MACHA,IAAWX,EAAK,MAAM,aAAa,QAAQ;AAE7C,YAAMY,IAAID,EAAS,QAAQ,KAAK,GAAG;AACnC,aAAO,UAAUC,EAAE,OAAO,CAAC,EAAE,YAAW,IAAKA,EAAE,MAAM,CAAC;AAAA,IACxD,CAAC;;;AAhDoB,aAAAC,EAAAT,CAAA,EAAoBS,EAAAb,CAAA,CAAI,UAA3Cc,EAEcC,GAAA;AAAA;QAFiC,IAAIjB,EAAA;AAAA;mBACjD,MAAW;AAAA,cAARW,EAAA,KAAK,GAAA,CAAA;AAAA;;6BAEVO,EAEI,KAAA;AAAA;QAFO,MAAMH,EAAAb,CAAA,EAAK,aAAY,QAAA;AAAA,QAAY,QAAO;AAAA,WAChDS,EAAA,KAAK,GAAA,GAAAQ,CAAA;AAAA;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as i, ref as p, resolveComponent as l, createBlock as u, openBlock as d, withCtx as m, createElementVNode as _, unref as e, toDisplayString as f } from "vue";
|
|
2
|
-
import { u as h } from "./methods-
|
|
2
|
+
import { u as h } from "./methods-DhzaI6N4.mjs";
|
|
3
3
|
const x = ["id"], g = {
|
|
4
4
|
__name: "Problematic",
|
|
5
5
|
props: {
|
|
@@ -33,4 +33,4 @@ const x = ["id"], g = {
|
|
|
33
33
|
export {
|
|
34
34
|
g as default
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=Problematic-
|
|
36
|
+
//# sourceMappingURL=Problematic-C_GOe5g8.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Problematic-
|
|
1
|
+
{"version":3,"file":"Problematic-C_GOe5g8.mjs","sources":["../src/components/templates/Problematic.vue"],"sourcesContent":["<template>\n <router-link :to=\"routeDescription\">\n <span class=\"problematic\" :id=\"id\">{{\n node.textContent\n }}</span></router-link\n >\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\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)\nconst routeDescription = ref({hash: '#' + node.value.getAttribute('refid')})\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["props","__props","node","toRefs","routeDescription","ref","extractId","useMethods","id","_createBlock","_component_router_link","_createElementVNode","_unref","_toDisplayString","_hoisted_1"],"mappings":";;;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAmBC,EAAI,EAAC,MAAM,MAAMH,EAAK,MAAM,aAAa,OAAO,EAAC,CAAC,GAErE,EAAE,WAAAI,EAAS,IAAKC,EAAU,GAC1B,EAAE,IAAAC,EAAE,IAAKF,EAAUJ,EAAK,KAAK;;;kBA7BjCO,EAICC,GAAA,EAJa,IAAIN,EAAA,SAAgB;AAAA,mBAChC,MAES;AAAA,UAFTO,EAES,QAAA;AAAA,YAFH,OAAM;AAAA,YAAe,IAAIC,EAAAJ,CAAA;AAAA,UAC7B,GAAAK,EAAAD,EAAAV,CAAA,EAAK,WAAW,GAAA,GAAAY,CAAA;AAAA;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as _, toRefs as h, onMounted as k, resolveComponent as y, createBlock as s, createElementBlock as a, unref as t, openBlock as n, withCtx as C, createTextVNode as R, toDisplayString as g, Fragment as x, renderList as v, resolveDynamicComponent as B } from "vue";
|
|
2
2
|
import { useRoute as N } from "vue-router";
|
|
3
|
-
import { a as b } from "./Document-
|
|
4
|
-
import { u as D } from "./methods-
|
|
5
|
-
import { u as M } from "./basereference-
|
|
3
|
+
import { a as b } from "./Document-Ciwh11I6.mjs";
|
|
4
|
+
import { u as D } from "./methods-DhzaI6N4.mjs";
|
|
5
|
+
import { u as M } from "./basereference-B1sG1P00.mjs";
|
|
6
6
|
const S = ["href"], V = {
|
|
7
7
|
__name: "Reference",
|
|
8
8
|
props: {
|
|
@@ -50,4 +50,4 @@ const S = ["href"], V = {
|
|
|
50
50
|
export {
|
|
51
51
|
V as default
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=Reference-
|
|
53
|
+
//# sourceMappingURL=Reference-C3p4_jzs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reference-
|
|
1
|
+
{"version":3,"file":"Reference-C3p4_jzs.mjs","sources":["../src/components/templates/Reference.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 <component\n v-for=\"(c, index) in children\"\n :key=\"'sub_link_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useChildren } from '../../composables/computed'\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(\n node.value,\n route,\n routeDescription,\n)\n\nonMounted(onReferenceCreated)\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","children","useChildren","_unref","_createBlock","_component_router_link","_createTextVNode","_toDisplayString","_createElementBlock","_openBlock","_Fragment","_renderList","c","index","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;AAwBA,UAAMA,IAAQC,GAURC,IAAmBC,EAAI,EAAE,MAAM,IAAI,MAAM,GAAE,CAAE,GAC7C,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAQ,GAEhB,EAAE,qBAAAC,EAAmB,IAAKC,EAAU,GACpC,EAAE,oBAAAC,EAAkB,IAAKC;AAAA,MAC7BP,EAAK;AAAA,MACLE;AAAA,MACAJ;AAAA,IACF;AAEA,IAAAU,EAAUF,CAAkB;AAC5B,UAAM,EAAE,UAAAG,EAAQ,IAAKC,EAAYV,CAAI;;;AA7ChB,aAAAW,EAAAP,CAAA,EAAoBO,EAAAX,CAAA,CAAI,UAA3CY,EAEcC,GAAA;AAAA;QAFiC,IAAIf,EAAA;AAAA;mBACjD,MAAsB;AAAA,UAAnBgB,EAAAC,EAAAJ,EAAAX,CAAA,EAAK,WAAW,GAAA,CAAA;AAAA;;6BAErBgB,EASI,KAAA;AAAA;QATO,MAAML,EAAAX,CAAA,EAAK,aAAY,QAAA;AAAA,QAAY,QAAO;AAAA;SACnDiB,EAAA,EAAA,GAAAD,EAOEE,GAAA,MAAAC,EANqBR,EAAAF,CAAA,GAAQ,CAArBW,GAAGC,YADbT,EAOEU,EAJKF,EAAE,SAAS,GAAA;AAAA,UADf,mBAAmBC;AAAA,UAEnB,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as f, createElementBlock as t, openBlock as n, unref as s, Fragment as c, renderList as a, createBlock as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
-
import { u as k } from "./methods-
|
|
3
|
-
import { a as x } from "./Document-
|
|
2
|
+
import { u as k } from "./methods-DhzaI6N4.mjs";
|
|
3
|
+
import { a as x } from "./Document-Ciwh11I6.mjs";
|
|
4
4
|
const v = ["id"], B = ["id"], b = {
|
|
5
5
|
__name: "Section",
|
|
6
6
|
props: {
|
|
@@ -34,4 +34,4 @@ const v = ["id"], B = ["id"], b = {
|
|
|
34
34
|
export {
|
|
35
35
|
b as default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=Section-
|
|
37
|
+
//# sourceMappingURL=Section-C1fT1LoO.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Section-
|
|
1
|
+
{"version":3,"file":"Section-C1fT1LoO.mjs","sources":["../src/components/templates/Section.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nimport { toRefs } 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)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","extractId","separateIds","useMethods","id","extraIds","children","useChildren","_createElementBlock","_unref","_openBlock","_Fragment","_renderList","s","index","c","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,WAAAI,GAAW,aAAAC,EAAW,IAAKC,EAAU,GACvC,EAAE,IAAAC,EAAE,IAAKH,EAAUF,EAAK,KAAK,GAC7B,EAAE,UAAAM,EAAQ,IAAKH,EAAYH,EAAK,OAAOK,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYR,CAAI;2BAtCnCS,EAUU,WAAA,EAVA,IAAIC,EAAAL,CAAA,KAAE;AAAA,OACdM,EAAA,EAAA,GAAAF,EAAyEG,GAAA,MAAAC,EAA9CH,EAAAJ,CAAA,GAAQ,CAArBQ,GAAGC,YAAjBN,EAAyE,QAAA;AAAA,QAAnC,kBAAkBM;AAAA,QAAQ,IAAID;AAAA;OACpEH,EAAA,EAAA,GAAAF,EAOEG,GAAA,MAAAC,EANqBH,EAAAH,CAAA,GAAQ,CAArBS,GAAGD,YADbE,EAOEC,EAJKF,EAAE,SAAS,GAAA;AAAA,QADf,4BAA4BD;AAAA,QAE5B,MAAMC,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as A, ref as l, createBlock as d, openBlock as c, resolveDynamicComponent as m, unref as p, mergeProps as E, toHandlerKey as k, withCtx as N, createElementBlock as B, Fragment as x, renderList as C } from "vue";
|
|
2
|
-
import { a as j, n as D } from "./Document-
|
|
3
|
-
import { u as I } from "./methods-
|
|
2
|
+
import { a as j, n as D } from "./Document-Ciwh11I6.mjs";
|
|
3
|
+
import { u as I } from "./methods-DhzaI6N4.mjs";
|
|
4
4
|
const S = {
|
|
5
5
|
__name: "StandardElement",
|
|
6
6
|
props: {
|
|
@@ -54,4 +54,4 @@ const S = {
|
|
|
54
54
|
export {
|
|
55
55
|
S as default
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=StandardElement-
|
|
57
|
+
//# sourceMappingURL=StandardElement-DObLRysY.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardElement-
|
|
1
|
+
{"version":3,"file":"StandardElement-DObLRysY.mjs","sources":["../src/components/templates/StandardElement.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :=\"attrs\"\n @[isButton&&`click`]=\"buttonClicked\"\n ref=\"componentElement\"\n >\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>\nimport { defineProps, toRefs, ref } from 'vue'\n\nimport { nodeNameTagNameMap } from '../../js/nodemap'\nimport { useChildren } 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})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\nconst isButton = ref(false)\nconst componentElement = ref(null)\n\nconst transferAttributes = new Set(['div', 'button'])\nconst tag = nodeNameTagNameMap.get(node.value.nodeName)\n\nconst tmpDataObject = dataObject(node.value, node.value.getAttribute('classes'))\nconst classList = tmpDataObject.class\n ? tmpDataObject.class.join(' ')\n : undefined\nattrs.value = {\n ...tmpDataObject.attrs,\n class: classList,\n}\n\n// An empty prefix attribute causes problems for <ol> elements.\nif (attrs.value.prefix === '') {\n delete attrs.value.prefix\n}\n\nif (node.value.nodeName === 'button') {\n isButton.value = true\n}\n\nfunction buttonClicked() {\n if (componentElement.value.getAttribute('aria-selected') === 'false') {\n const parentElement = componentElement.value.parentElement\n let panels = []\n for (const child of parentElement.children) {\n const el = document.getElementById(child.id)\n el.setAttribute(\n 'aria-selected',\n el.getAttribute('aria-selected') === 'true' ? 'false' : 'true',\n )\n panels.push({ id: child.getAttribute('aria-controls') })\n }\n for (const panel of panels) {\n const el = document.getElementById(panel.id)\n if (el.hasAttribute('hidden')) {\n el.removeAttribute('hidden')\n } else {\n el.setAttribute('hidden', '')\n }\n }\n }\n}\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","dataObject","useMethods","attrs","ref","isButton","componentElement","tag","nodeNameTagNameMap","tmpDataObject","classList","buttonClicked","parentElement","panels","child","el","panel","_createBlock","_resolveDynamicComponent","_unref","_mergeProps","_toHandlerKey","_openBlock","_createElementBlock","_Fragment","_renderList","c","index"],"mappings":";;;;;;;;;;;;;;;AAyBA,UAAMA,IAAQC,GAUR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,YAAAI,EAAU,IAAKC,EAAU,GAC3BC,IAAQC,EAAI,CAAA,CAAE,GACdC,IAAWD,EAAI,EAAK,GACpBE,IAAmBF,EAAI,IAAI,GAG3BG,IAAMC,EAAmB,IAAIX,EAAK,MAAM,QAAQ,GAEhDY,IAAgBR,EAAWJ,EAAK,OAAOA,EAAK,MAAM,aAAa,SAAS,CAAC,GACzEa,IAAYD,EAAc,QAC5BA,EAAc,MAAM,KAAK,GAAG,IAC5B;AACJ,IAAAN,EAAM,QAAQ;AAAA,MACZ,GAAGM,EAAc;AAAA,MACjB,OAAOC;AAAA,IACT,GAGIP,EAAM,MAAM,WAAW,MACzB,OAAOA,EAAM,MAAM,QAGjBN,EAAK,MAAM,aAAa,aAC1BQ,EAAS,QAAQ;AAGnB,aAASM,IAAgB;AACvB,UAAIL,EAAiB,MAAM,aAAa,eAAe,MAAM,SAAS;AACpE,cAAMM,IAAgBN,EAAiB,MAAM;AAC7C,YAAIO,IAAS,CAAA;AACb,mBAAWC,KAASF,EAAc,UAAU;AAC1C,gBAAMG,IAAK,SAAS,eAAeD,EAAM,EAAE;AAC3C,UAAAC,EAAG;AAAA,YACD;AAAA,YACAA,EAAG,aAAa,eAAe,MAAM,SAAS,UAAU;AAAA,UAChE,GACMF,EAAO,KAAK,EAAE,IAAIC,EAAM,aAAa,eAAe,EAAC,CAAE;AAAA,QACzD;AACA,mBAAWE,KAASH,GAAQ;AAC1B,gBAAME,IAAK,SAAS,eAAeC,EAAM,EAAE;AAC3C,UAAID,EAAG,aAAa,QAAQ,IAC1BA,EAAG,gBAAgB,QAAQ,IAE3BA,EAAG,aAAa,UAAU,EAAE;AAAA,QAEhC;AAAA,MACF;AAAA,IACF;2BAnFEE,EAcYC,EAbLC,IAAG,GADVC,EAEKjB,EAYO,OAZF,EAAA,CAAAkB,EACPhB,EAAA,SAAQ,OAAA,CAAA,GAAaM,KAAa;AAAA,eAC/B;AAAA,MAAJ,KAAIL;AAAA;iBAGF,MAA8B;AAAA,SADhCgB,EAAA,EAAA,GAAAC,EAOEC,GAAA,MAAAC,EANqBN,EAAApB,CAAA,GAAQ,CAArB2B,GAAGC,YADbV,EAOEC,EAJKQ,EAAE,SAAS,GAAA;AAAA,UADf,qCAAqCC;AAAA,UAErC,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toRefs as _, computed as p, createBlock as a, openBlock as n, resolveDynamicComponent as l, normalizeClass as v, withCtx as y, createElementBlock as N, Fragment as g, renderList as k, unref as C } from "vue";
|
|
2
|
-
import { a as x } from "./Document-
|
|
2
|
+
import { a as x } from "./Document-Ciwh11I6.mjs";
|
|
3
3
|
const j = {
|
|
4
4
|
__name: "Title",
|
|
5
5
|
props: {
|
|
@@ -41,4 +41,4 @@ const j = {
|
|
|
41
41
|
export {
|
|
42
42
|
j as default
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=Title-
|
|
44
|
+
//# sourceMappingURL=Title-BXKmKZJr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title-
|
|
1
|
+
{"version":3,"file":"Title-BXKmKZJr.mjs","sources":["../src/components/templates/Title.vue"],"sourcesContent":["<template>\n <component :is=\"tagName\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'title_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n<script setup>\nimport { computed, 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 required: true,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { children } = useChildren(node)\n\nconst depth = properties.value.depth\nconst isTopic = properties.value.isTopic\n\nconst tagName = computed(() => {\n let tagName = 'h' + depth\n if (isTopic) {\n tagName = 'p'\n }\n return tagName\n})\n\nconst classes = computed(() => {\n let classes = []\n if (isTopic) {\n classes.push('topic-title')\n if (depth === 1) {\n classes.push('first')\n }\n }\n return classes\n})\n</script>\n"],"names":["props","__props","node","properties","toRefs","children","useChildren","depth","isTopic","tagName","computed","classes","_openBlock","_createBlock","_resolveDynamicComponent","_createElementBlock","_Fragment","_renderList","_unref","c","index"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,UAAMA,IAAQC,GAcR,EAAE,MAAAC,GAAM,YAAAC,MAAeC,EAAOJ,CAAK,GAEnC,EAAE,UAAAK,EAAQ,IAAKC,EAAYJ,CAAI,GAE/BK,IAAQJ,EAAW,MAAM,OACzBK,IAAUL,EAAW,MAAM,SAE3BM,IAAUC,EAAS,MAAM;AAC7B,UAAID,IAAU,MAAMF;AACpB,aAAIC,MACFC,IAAU,MAELA;AAAA,IACT,CAAC,GAEKE,IAAUD,EAAS,MAAM;AAC7B,UAAIC,IAAU,CAAA;AACd,aAAIH,MACFG,EAAQ,KAAK,aAAa,GACtBJ,MAAU,KACZI,EAAQ,KAAK,OAAO,IAGjBA;AAAA,IACT,CAAC;sBAtDCC,EAAA,GAAAC,EASWC,EATKL,EAAA,KAAO,GAAA;AAAA,MAAG,SAAOE,EAAA,KAAO;AAAA;iBAEpC,MAA8B;AAAA,SAD/BC,EAAA,EAAA,GAAAG,EAOCC,GAAA,MAAAC,EANqBC,EAAAb,CAAA,GAAQ,CAArBc,GAAGC,YADZP,EAOCC,EAJKK,EAAE,SAAS,GAAA;AAAA,UADf,0BAA0BC;AAAA,UAE1B,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as f, createElementBlock as n, openBlock as o, unref as s, Fragment as d, renderList as c, createBlock as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
-
import { u as k } from "./methods-
|
|
3
|
-
import { a as N } from "./Document-
|
|
2
|
+
import { u as k } from "./methods-DhzaI6N4.mjs";
|
|
3
|
+
import { a as N } from "./Document-Ciwh11I6.mjs";
|
|
4
4
|
const x = ["id"], I = ["id"], S = {
|
|
5
5
|
__name: "TodoNode",
|
|
6
6
|
props: {
|
|
@@ -35,4 +35,4 @@ const x = ["id"], I = ["id"], S = {
|
|
|
35
35
|
export {
|
|
36
36
|
S as default
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=TodoNode-
|
|
38
|
+
//# sourceMappingURL=TodoNode-BubW_p1P.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TodoNode-
|
|
1
|
+
{"version":3,"file":"TodoNode-BubW_p1P.mjs","sources":["../src/components/templates/TodoNode.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'todo_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nconsole.log(\"****** IN USE ******\")\nimport { toRefs } 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)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","extractId","separateIds","useMethods","id","extraIds","children","useChildren","_createElementBlock","_unref","_openBlock","_Fragment","_renderList","s","index","c","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAMlC,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,WAAAI,GAAW,aAAAC,EAAW,IAAKC,EAAU,GACvC,EAAE,IAAAC,EAAE,IAAKH,EAAUF,EAAK,KAAK,GAC7B,EAAE,UAAAM,EAAQ,IAAKH,EAAYH,EAAK,OAAOK,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYR,CAAI;2BAvCnCS,EAUU,WAAA,EAVA,IAAIC,EAAAL,CAAA,KAAE;AAAA,OACdM,EAAA,EAAA,GAAAF,EAAyEG,GAAA,MAAAC,EAA9CH,EAAAJ,CAAA,GAAQ,CAArBQ,GAAGC,YAAjBN,EAAyE,QAAA;AAAA,QAAnC,kBAAkBM;AAAA,QAAQ,IAAID;AAAA;OACpEH,EAAA,EAAA,GAAAF,EAOEG,GAAA,MAAAC,EANqBH,EAAAH,CAAA,GAAQ,CAArBS,GAAGD,YADbE,EAOEC,EAJKF,EAAE,SAAS,GAAA;AAAA,QADf,yBAAyBD;AAAA,QAEzB,MAAMC,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as d, createElementBlock as s, openBlock as n, normalizeClass as u, unref as t, Fragment as _, renderList as f, createBlock as h, resolveDynamicComponent as y } from "vue";
|
|
2
|
-
import { a as k, u as C } from "./Document-
|
|
3
|
-
import { u as v } from "./methods-
|
|
2
|
+
import { a as k, u as C } from "./Document-Ciwh11I6.mjs";
|
|
3
|
+
import { u as v } from "./methods-DhzaI6N4.mjs";
|
|
4
4
|
const x = ["id"], z = {
|
|
5
5
|
__name: "Topic",
|
|
6
6
|
props: {
|
|
@@ -33,4 +33,4 @@ const x = ["id"], z = {
|
|
|
33
33
|
export {
|
|
34
34
|
z as default
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=Topic-
|
|
36
|
+
//# sourceMappingURL=Topic-Cw8NozpE.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Topic-
|
|
1
|
+
{"version":3,"file":"Topic-Cw8NozpE.mjs","sources":["../src/components/templates/Topic.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_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 } 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 { extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","extractId","useMethods","classes","useClasses","id","_createElementBlock","_unref","_openBlock","_Fragment","_renderList","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,WAAAI,EAAS,IAAKC,EAAU,GAC1B,EAAE,SAAAC,EAAO,IAAKC,EAAWP,CAAI,GAE7B,EAAE,IAAAQ,EAAE,IAAKJ,EAAUJ,EAAK,KAAK;2BArCjCS,EASM,OAAA;AAAA,MATA,IAAIC,EAAAF,CAAA;AAAA,MAAK,SAAOE,EAAAJ,CAAA,CAAO;AAAA;OAC3BK,EAAA,EAAA,GAAAF,EAOEG,GAAA,MAAAC,EANqBH,EAAAR,CAAA,GAAQ,CAArBY,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,4BAA4BC;AAAA,QAE5B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { toRefs as g, createElementBlock as r, openBlock as n, unref as p, createBlock as s, resolveDynamicComponent as a, withCtx as h, createTextVNode as x, Fragment as y, renderList as N } from "vue";
|
|
2
|
-
import { u as k } from "./methods-
|
|
3
|
-
import { a as v } from "./Document-
|
|
2
|
+
import { u as k } from "./methods-DhzaI6N4.mjs";
|
|
3
|
+
import { a as v } from "./Document-Ciwh11I6.mjs";
|
|
4
4
|
const w = ["id"], j = {
|
|
5
5
|
__name: "Warning",
|
|
6
6
|
props: {
|
|
@@ -39,4 +39,4 @@ const w = ["id"], j = {
|
|
|
39
39
|
export {
|
|
40
40
|
j as default
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=Warning-
|
|
42
|
+
//# sourceMappingURL=Warning-B2aBs-ON.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Warning-
|
|
1
|
+
{"version":3,"file":"Warning-B2aBs-ON.mjs","sources":["../src/components/templates/Warning.vue"],"sourcesContent":["<template>\n <div :id=\"id\" class=\"admonition warning\">\n <component :is=\"tagName\">Warning</component>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'warning_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 } 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, properties } = toRefs(props)\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\nconst tagName = 'h' + properties.value.depth\n</script>\n"],"names":["props","__props","node","properties","toRefs","extractId","useMethods","id","children","useChildren","tagName","_createElementBlock","_unref","_openBlock","_createBlock","_resolveDynamicComponent","_cache","_Fragment","_renderList","c","index"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,GAAM,YAAAC,MAAeC,EAAOJ,CAAK,GAEnC,EAAE,WAAAK,EAAS,IAAKC,EAAU,GAC1B,EAAE,IAAAC,EAAE,IAAKF,EAAUH,EAAK,KAAK,GAE7B,EAAE,UAAAM,EAAQ,IAAKC,EAAYP,CAAI,GAC/BQ,IAAU,MAAMP,EAAW,MAAM;2BAtCrCQ,EAUM,OAAA;AAAA,MAVA,IAAIC,EAAAL,CAAA;AAAA,MAAI,OAAM;AAAA;OAClBM,EAAA,GAAAC,EAA4CC,EAA5BL,CAAO,GAAA,MAAA;AAAA,mBAAE,MAAO,CAAA,GAAAM,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,YAAP,WAAO,EAAA;AAAA;;;OAChCH,EAAA,EAAA,GAAAF,EAOEM,GAAA,MAAAC,EANqBN,EAAAJ,CAAA,GAAQ,CAArBW,GAAGC,YADbN,EAOEC,EAJKI,EAAE,SAAS,GAAA;AAAA,QADf,4BAA4BC;AAAA,QAE5B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as o, c as p, d as c } from "./entry-
|
|
2
|
-
import { u as h } from "./methods-
|
|
1
|
+
import { u as o, c as p, d as c } from "./entry-NtWSzZvs.mjs";
|
|
2
|
+
import { u as h } from "./methods-DhzaI6N4.mjs";
|
|
3
3
|
const {
|
|
4
4
|
determinePageLocation: l,
|
|
5
5
|
determinePageName: u,
|
|
@@ -39,4 +39,4 @@ const {
|
|
|
39
39
|
export {
|
|
40
40
|
I as u
|
|
41
41
|
};
|
|
42
|
-
//# sourceMappingURL=basereference-
|
|
42
|
+
//# sourceMappingURL=basereference-B1sG1P00.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basereference-
|
|
1
|
+
{"version":3,"file":"basereference-B1sG1P00.mjs","sources":["../src/composables/basereference.js"],"sourcesContent":["import { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from './methods'\nimport { determineRouteUrl, constructPageNameFromRoute } from '../js/utilities'\n\nconst {\n determinePageLocation,\n determinePageName,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n} = useMethods()\n\nexport const useBaseReference = (element, route, routeDescription) => {\n const sphinxStore = useSphinxStore()\n\n const onReferenceCreated = () => {\n if (isInternalReference(element)) {\n let pageName = constructPageNameFromRoute(route)\n let baseRefUri = determineRouteUrl(route)\n const pageReference = element.getAttribute('refid')\n if (pageReference && !pageReference.startsWith('#')) {\n routeDescription.value.hash = '#' + pageReference\n } else {\n routeDescription.value.hash = pageReference\n }\n if (!isReferenceToCurrentPage(element)) {\n pageName = determinePageName(element, route)\n let parentLevels = parentLevelsInRefURI(element)\n if (sphinxStore.isOffsetReferenceURL(baseRefUri) && parentLevels) {\n let parts = baseRefUri.split('/')\n while(parentLevels--) {\n parts.pop()\n }\n if (parts.length === 1) {\n baseRefUri = '/'\n } else {\n baseRefUri = parts.join('/')\n }\n }\n routeDescription.value.hash = determinePageLocation(element)\n const existingPageWrapper = sphinxStore.hasPageById(\n baseRefUri,\n pageName,\n )\n if (!existingPageWrapper) {\n sphinxStore.fetchPage({\n page_name: pageName,\n page_route: baseRefUri,\n page_url: sphinxStore.getBaseUrl(baseRefUri),\n })\n }\n }\n\n routeDescription.value.path = baseRefUri === '/' ? baseRefUri + pageName : baseRefUri + '/' + pageName\n }\n }\n return {\n onReferenceCreated,\n }\n}\n"],"names":["determinePageLocation","determinePageName","isInternalReference","isReferenceToCurrentPage","parentLevelsInRefURI","useMethods","useBaseReference","element","route","routeDescription","sphinxStore","useSphinxStore","pageName","constructPageNameFromRoute","baseRefUri","determineRouteUrl","pageReference","parentLevels","parts"],"mappings":";;AAKA,MAAM;AAAA,EACJ,uBAAAA;AAAA,EACA,mBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,sBAAAC;AACF,IAAIC,EAAU,GAEDC,IAAmB,CAACC,GAASC,GAAOC,MAAqB;AACpE,QAAMC,IAAcC,EAAc;AA2ClC,SAAO;AAAA,IACL,oBA1CyB,MAAM;AAC/B,UAAIT,EAAoBK,CAAO,GAAG;AAChC,YAAIK,IAAWC,EAA2BL,CAAK,GAC3CM,IAAaC,EAAkBP,CAAK;AACxC,cAAMQ,IAAgBT,EAAQ,aAAa,OAAO;AAMlD,YALIS,KAAiB,CAACA,EAAc,WAAW,GAAG,IAChDP,EAAiB,MAAM,OAAO,MAAMO,IAEpCP,EAAiB,MAAM,OAAOO,GAE5B,CAACb,EAAyBI,CAAO,GAAG;AACtC,UAAAK,IAAWX,EAAkBM,GAASC,CAAK;AAC3C,cAAIS,IAAeb,EAAqBG,CAAO;AAC/C,cAAIG,EAAY,qBAAqBI,CAAU,KAAKG,GAAc;AAChE,gBAAIC,IAAQJ,EAAW,MAAM,GAAG;AAChC,mBAAMG;AACJ,cAAAC,EAAM,IAAG;AAEX,YAAIA,EAAM,WAAW,IACnBJ,IAAa,MAEbA,IAAaI,EAAM,KAAK,GAAG;AAAA,UAE/B;AACA,UAAAT,EAAiB,MAAM,OAAOT,EAAsBO,CAAO,GAC/BG,EAAY;AAAA,YACtCI;AAAA,YACAF;AAAA,UACV,KAEUF,EAAY,UAAU;AAAA,YACpB,WAAWE;AAAA,YACX,YAAYE;AAAA,YACZ,UAAUJ,EAAY,WAAWI,CAAU;AAAA,UACvD,CAAW;AAAA,QAEL;AAEA,QAAAL,EAAiB,MAAM,OAAOK,MAAe,MAAMA,IAAaF,IAAWE,IAAa,MAAMF;AAAA,MAChG;AAAA,IACF;AAAA,EAGF;AACA;"}
|
|
@@ -1881,7 +1881,7 @@ const {
|
|
|
1881
1881
|
},
|
|
1882
1882
|
setup(e) {
|
|
1883
1883
|
const t = Rt(
|
|
1884
|
-
() => import("./Document-
|
|
1884
|
+
() => import("./Document-Ciwh11I6.mjs").then((g) => g.D)
|
|
1885
1885
|
), n = e, {
|
|
1886
1886
|
baseURL: r,
|
|
1887
1887
|
referenceBaseURL: s,
|
|
@@ -1987,4 +1987,4 @@ export {
|
|
|
1987
1987
|
Fr as i,
|
|
1988
1988
|
sr as u
|
|
1989
1989
|
};
|
|
1990
|
-
//# sourceMappingURL=entry-
|
|
1990
|
+
//# sourceMappingURL=entry-NtWSzZvs.mjs.map
|