vue3-sphinx-xml 0.4.0 → 0.5.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.
Files changed (157) hide show
  1. package/dist/Admonition-mKTxm7FA.mjs +36 -0
  2. package/dist/Admonition-mKTxm7FA.mjs.map +1 -0
  3. package/dist/BlockQuote-CHndoK9X.mjs +34 -0
  4. package/dist/BlockQuote-CHndoK9X.mjs.map +1 -0
  5. package/dist/CaptionNumber-sPHsgDmY.mjs +36 -0
  6. package/dist/CaptionNumber-sPHsgDmY.mjs.map +1 -0
  7. package/dist/ColumnGroup-3gX9uzXr.mjs +37 -0
  8. package/dist/ColumnGroup-3gX9uzXr.mjs.map +1 -0
  9. package/dist/Comment-BazBmRUy.mjs +31 -0
  10. package/dist/Comment-BazBmRUy.mjs.map +1 -0
  11. package/dist/Compound-CuyWvjJc.mjs +30 -0
  12. package/dist/Compound-CuyWvjJc.mjs.map +1 -0
  13. package/dist/Container-BI_-sUj5.mjs +50 -0
  14. package/dist/Container-BI_-sUj5.mjs.map +1 -0
  15. package/dist/DirectElementMap-BxB8uEd3.mjs +21 -0
  16. package/dist/DirectElementMap-BxB8uEd3.mjs.map +1 -0
  17. package/dist/DownloadReference-Coj1rk-Q.mjs +36 -0
  18. package/dist/DownloadReference-Coj1rk-Q.mjs.map +1 -0
  19. package/dist/Figure-cm9jrp4J.mjs +38 -0
  20. package/dist/Figure-cm9jrp4J.mjs.map +1 -0
  21. package/dist/FigureCaption-CEewNKB3.mjs +41 -0
  22. package/dist/FigureCaption-CEewNKB3.mjs.map +1 -0
  23. package/dist/Footnote-CsDVGKIf.mjs +33 -0
  24. package/dist/Footnote-CsDVGKIf.mjs.map +1 -0
  25. package/dist/FootnoteReference-mjr_CUNC.mjs +39 -0
  26. package/dist/FootnoteReference-mjr_CUNC.mjs.map +1 -0
  27. package/dist/Image-DS2T9dhX.mjs +36 -0
  28. package/dist/Image-DS2T9dhX.mjs.map +1 -0
  29. package/dist/Legend-Buf610bh.mjs +35 -0
  30. package/dist/Legend-Buf610bh.mjs.map +1 -0
  31. package/dist/LineBlock-CC9E637d.mjs +33 -0
  32. package/dist/LineBlock-CC9E637d.mjs.map +1 -0
  33. package/dist/LineSingle-Dlzi5iIV.mjs +34 -0
  34. package/dist/LineSingle-Dlzi5iIV.mjs.map +1 -0
  35. package/dist/Literal-DYTpCjPv.mjs +42 -0
  36. package/dist/Literal-DYTpCjPv.mjs.map +1 -0
  37. package/dist/LiteralBlock-DKVDMrJf.mjs +37 -0
  38. package/dist/LiteralBlock-DKVDMrJf.mjs.map +1 -0
  39. package/dist/Math-DMrgdPIM.mjs +28 -0
  40. package/dist/Math-DMrgdPIM.mjs.map +1 -0
  41. package/dist/MathBlock-DdqKjCSS.mjs +59 -0
  42. package/dist/MathBlock-DdqKjCSS.mjs.map +1 -0
  43. package/dist/Note-BlaELec8.mjs +34 -0
  44. package/dist/Note-BlaELec8.mjs.map +1 -0
  45. package/dist/NumberReference-bjITftY4.mjs +48 -0
  46. package/dist/NumberReference-bjITftY4.mjs.map +1 -0
  47. package/dist/Problematic-CVEE4P8F.mjs +36 -0
  48. package/dist/Problematic-CVEE4P8F.mjs.map +1 -0
  49. package/dist/Raw-DuZmU9hd.mjs +10 -0
  50. package/dist/Raw-DuZmU9hd.mjs.map +1 -0
  51. package/dist/Reference-Orh-jOnR.mjs +53 -0
  52. package/dist/Reference-Orh-jOnR.mjs.map +1 -0
  53. package/dist/Section-CdTfeVfc.mjs +37 -0
  54. package/dist/Section-CdTfeVfc.mjs.map +1 -0
  55. package/dist/Skip-CRGkjuMM.mjs +19 -0
  56. package/dist/Skip-CRGkjuMM.mjs.map +1 -0
  57. package/dist/StandardElement-CBBrXX4Q.mjs +57 -0
  58. package/dist/StandardElement-CBBrXX4Q.mjs.map +1 -0
  59. package/dist/Text-CT8nEMkp.mjs +24 -0
  60. package/dist/Text-CT8nEMkp.mjs.map +1 -0
  61. package/dist/Title-3Cns5zt2.mjs +44 -0
  62. package/dist/Title-3Cns5zt2.mjs.map +1 -0
  63. package/dist/TodoNode-BR2gUVop.mjs +38 -0
  64. package/dist/TodoNode-BR2gUVop.mjs.map +1 -0
  65. package/dist/Topic-CGDYI81Y.mjs +36 -0
  66. package/dist/Topic-CGDYI81Y.mjs.map +1 -0
  67. package/dist/Transition-CWMp4Zlv.mjs +15 -0
  68. package/dist/Transition-CWMp4Zlv.mjs.map +1 -0
  69. package/dist/Warning-Cl6MS7S9.mjs +42 -0
  70. package/dist/Warning-Cl6MS7S9.mjs.map +1 -0
  71. package/dist/basereference-CBz3BfwU.mjs +42 -0
  72. package/dist/basereference-CBz3BfwU.mjs.map +1 -0
  73. package/dist/{entry.js → entry-BmRN0Y-U.mjs} +7954 -6997
  74. package/dist/entry-BmRN0Y-U.mjs.map +1 -0
  75. package/dist/methods-DeDVNJrB.mjs +69 -0
  76. package/dist/methods-DeDVNJrB.mjs.map +1 -0
  77. package/dist/style.css +1 -1
  78. package/dist/vue3-sphinx-xml.mjs +8 -0
  79. package/dist/vue3-sphinx-xml.mjs.map +1 -0
  80. package/package.json +16 -18
  81. package/dist/Admonition.js +0 -72
  82. package/dist/Admonition.js.map +0 -1
  83. package/dist/BlockQuote.js +0 -42
  84. package/dist/BlockQuote.js.map +0 -1
  85. package/dist/CaptionNumber.js +0 -70
  86. package/dist/CaptionNumber.js.map +0 -1
  87. package/dist/ColumnGroup.js +0 -44
  88. package/dist/ColumnGroup.js.map +0 -1
  89. package/dist/Comment.js +0 -34
  90. package/dist/Comment.js.map +0 -1
  91. package/dist/Compound.js +0 -38
  92. package/dist/Compound.js.map +0 -1
  93. package/dist/Container.js +0 -79
  94. package/dist/Container.js.map +0 -1
  95. package/dist/DirectElementMap.js +0 -22
  96. package/dist/DirectElementMap.js.map +0 -1
  97. package/dist/DownloadReference.js +0 -47
  98. package/dist/DownloadReference.js.map +0 -1
  99. package/dist/Figure.js +0 -54
  100. package/dist/Figure.js.map +0 -1
  101. package/dist/FigureCaption.js +0 -76
  102. package/dist/FigureCaption.js.map +0 -1
  103. package/dist/Footnote.js +0 -44
  104. package/dist/Footnote.js.map +0 -1
  105. package/dist/FootnoteReference.js +0 -48
  106. package/dist/FootnoteReference.js.map +0 -1
  107. package/dist/Image.js +0 -52
  108. package/dist/Image.js.map +0 -1
  109. package/dist/Legend.js +0 -44
  110. package/dist/Legend.js.map +0 -1
  111. package/dist/LineBlock.js +0 -44
  112. package/dist/LineBlock.js.map +0 -1
  113. package/dist/LineSingle.js +0 -45
  114. package/dist/LineSingle.js.map +0 -1
  115. package/dist/Literal.js +0 -63
  116. package/dist/Literal.js.map +0 -1
  117. package/dist/LiteralBlock.js +0 -49
  118. package/dist/LiteralBlock.js.map +0 -1
  119. package/dist/Math.js +0 -25
  120. package/dist/Math.js.map +0 -1
  121. package/dist/MathBlock.js +0 -77
  122. package/dist/MathBlock.js.map +0 -1
  123. package/dist/Note.js +0 -47
  124. package/dist/Note.js.map +0 -1
  125. package/dist/NumberReference.js +0 -59
  126. package/dist/NumberReference.js.map +0 -1
  127. package/dist/Problematic.js +0 -44
  128. package/dist/Problematic.js.map +0 -1
  129. package/dist/Raw.js +0 -10
  130. package/dist/Raw.js.map +0 -1
  131. package/dist/Reference.js +0 -58
  132. package/dist/Reference.js.map +0 -1
  133. package/dist/Section.js +0 -52
  134. package/dist/Section.js.map +0 -1
  135. package/dist/Skip.js +0 -18
  136. package/dist/Skip.js.map +0 -1
  137. package/dist/StandardElement.js +0 -99
  138. package/dist/StandardElement.js.map +0 -1
  139. package/dist/Text.js +0 -23
  140. package/dist/Text.js.map +0 -1
  141. package/dist/Title.js +0 -65
  142. package/dist/Title.js.map +0 -1
  143. package/dist/TodoNode.js +0 -53
  144. package/dist/TodoNode.js.map +0 -1
  145. package/dist/Topic.js +0 -48
  146. package/dist/Topic.js.map +0 -1
  147. package/dist/Transition.js +0 -9
  148. package/dist/Transition.js.map +0 -1
  149. package/dist/Warning.js +0 -55
  150. package/dist/Warning.js.map +0 -1
  151. package/dist/basereference.js +0 -54
  152. package/dist/basereference.js.map +0 -1
  153. package/dist/entry.js.map +0 -1
  154. package/dist/methods.js +0 -148
  155. package/dist/methods.js.map +0 -1
  156. package/dist/vue3-sphinx-xml.es.js +0 -8
  157. package/dist/vue3-sphinx-xml.es.js.map +0 -1
@@ -0,0 +1,36 @@
1
+ import { toRefs as v, ref as h, computed as y, openBlock as o, createElementBlock as r, 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-DeDVNJrB.mjs";
3
+ import { u as B, a as N } from "./entry-BmRN0Y-U.mjs";
4
+ const O = ["id"], L = {
5
+ __name: "Admonition",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ },
14
+ properties: {
15
+ type: Object
16
+ }
17
+ },
18
+ setup(c) {
19
+ const p = c, { node: e } = v(p), n = h({}), { dataObject: i, extractId: l } = x(), { classes: m } = B(e), { id: u } = l(e.value), { children: d } = N(e), f = y(() => ["admonition", ...m.value]), s = i(e.value, f.value);
20
+ return n.value = {
21
+ ...s.attrs,
22
+ class: s.class.join(" ")
23
+ }, (A, D) => (o(), r("div", k({ id: a(u) }, n.value), [
24
+ (o(!0), r(C, null, b(a(d), (t, _) => (o(), g(j(t.component), {
25
+ key: "admonition_component_" + _,
26
+ node: t.node,
27
+ componentName: t.name,
28
+ properties: t.properties
29
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
30
+ ], 16, O));
31
+ }
32
+ };
33
+ export {
34
+ L as default
35
+ };
36
+ //# sourceMappingURL=Admonition-mKTxm7FA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Admonition-mKTxm7FA.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"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAQC,EAAI,CAAE,CAAA,GAEd,EAAE,YAAAC,GAAY,WAAAC,EAAS,IAAKC,EAAU,GACtC,EAAE,SAAAC,EAAO,IAAKC,EAAWR,CAAI,GAE7B,EAAE,IAAAS,EAAI,IAAGJ,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;;;;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ import { toRefs as m, openBlock as o, createElementBlock as n, 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 "./entry-BmRN0Y-U.mjs";
3
+ const b = {
4
+ __name: "BlockQuote",
5
+ props: {
6
+ node: {
7
+ type: void 0,
8
+ default: null
9
+ },
10
+ componentName: {
11
+ type: String
12
+ },
13
+ properties: {
14
+ type: Object
15
+ }
16
+ },
17
+ setup(t) {
18
+ const r = t, { node: p } = m(r), { children: l } = _(p);
19
+ return (k, y) => (o(), n("blockquote", null, [
20
+ s("div", null, [
21
+ (o(!0), n(u, null, a(d(l), (e, c) => (o(), i(f(e.component), {
22
+ key: "blockquote_component_" + c,
23
+ node: e.node,
24
+ componentName: e.name,
25
+ properties: e.properties
26
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
27
+ ])
28
+ ]));
29
+ }
30
+ };
31
+ export {
32
+ b as default
33
+ };
34
+ //# sourceMappingURL=BlockQuote-CHndoK9X.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockQuote-CHndoK9X.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"],"mappings":";;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { toRefs as d, ref as f, computed as _, openBlock as n, createElementBlock as s, 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 "./entry-BmRN0Y-U.mjs";
3
+ import { u as B } from "./methods-DeDVNJrB.mjs";
4
+ const D = {
5
+ __name: "CaptionNumber",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ },
14
+ properties: {
15
+ type: Object
16
+ }
17
+ },
18
+ setup(a) {
19
+ const p = a, { dataObject: c } = B(), { node: t } = d(p), o = f({}), { classes: u } = g(t), { children: l } = j(t), m = _(() => ["caption-number", ...u.value]), r = c(t.value, m.value);
20
+ return o.value = {
21
+ ...r.attrs,
22
+ class: r.class.join(" ")
23
+ }, (x, O) => (n(), s("span", v(b(o.value)), [
24
+ (n(!0), s(y, null, C(h(l), (e, i) => (n(), k(N(e.component), {
25
+ key: "caption_number_" + i,
26
+ node: e.node,
27
+ componentName: e.name,
28
+ properties: e.properties
29
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
30
+ ], 16));
31
+ }
32
+ };
33
+ export {
34
+ D as default
35
+ };
36
+ //# sourceMappingURL=CaptionNumber-sPHsgDmY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CaptionNumber-sPHsgDmY.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"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAY,IAAGC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAE,CAAA,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;;;;;;;;;;"}
@@ -0,0 +1,37 @@
1
+ import { toRefs as m, computed as a, openBlock as n, createElementBlock as l, Fragment as i, renderList as d, normalizeStyle as f } from "vue";
2
+ const _ = {
3
+ __name: "ColumnGroup",
4
+ props: {
5
+ node: {
6
+ type: void 0,
7
+ default: null
8
+ },
9
+ componentName: {
10
+ type: String
11
+ },
12
+ properties: {
13
+ type: Object
14
+ }
15
+ },
16
+ setup(u) {
17
+ const s = u, { properties: c } = m(s), p = a(() => {
18
+ let o = 0, r = [];
19
+ for (const e of c.value.colspecs)
20
+ o += Number(e), r.push(Number(e));
21
+ let t = [];
22
+ for (const e of r)
23
+ t.push(e / o * 100);
24
+ return t;
25
+ });
26
+ return (o, r) => (n(), l("colgroup", null, [
27
+ (n(!0), l(i, null, d(p.value, (t, e) => (n(), l("col", {
28
+ key: "col_" + e,
29
+ style: f("width: " + t + "%")
30
+ }, null, 4))), 128))
31
+ ]));
32
+ }
33
+ };
34
+ export {
35
+ _ as default
36
+ };
37
+ //# sourceMappingURL=ColumnGroup-3gX9uzXr.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnGroup-3gX9uzXr.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"],"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;;;;;;;;;"}
@@ -0,0 +1,31 @@
1
+ import { createCommentVNode as r, toRefs as p, ref as s, openBlock as a, createBlock as u } from "vue";
2
+ const l = {
3
+ props: ["content"],
4
+ setup(e) {
5
+ return () => r(e.content || "");
6
+ }
7
+ }, f = {
8
+ __name: "Comment",
9
+ props: {
10
+ node: {
11
+ type: void 0,
12
+ default: null
13
+ },
14
+ componentName: {
15
+ type: String
16
+ },
17
+ properties: {
18
+ type: Object
19
+ }
20
+ },
21
+ setup(e) {
22
+ const o = e, { node: c } = p(o), t = s("");
23
+ for (const n of c.value.childNodes)
24
+ t.value += n.nodeValue;
25
+ return (n, m) => (a(), u(l, { content: t.value }, null, 8, ["content"]));
26
+ }
27
+ };
28
+ export {
29
+ f as default
30
+ };
31
+ //# sourceMappingURL=Comment-BazBmRUy.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Comment-BazBmRUy.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"],"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;;;;"}
@@ -0,0 +1,30 @@
1
+ import { toRefs as c, openBlock as n, createElementBlock as s, Fragment as a, renderList as l, unref as u, createBlock as d, resolveDynamicComponent as i } from "vue";
2
+ import { a as f } from "./entry-BmRN0Y-U.mjs";
3
+ const B = {
4
+ __name: "Compound",
5
+ props: {
6
+ node: {
7
+ type: void 0,
8
+ default: null
9
+ },
10
+ componentName: {
11
+ type: String
12
+ },
13
+ properties: {
14
+ type: Object
15
+ }
16
+ },
17
+ setup(o) {
18
+ const t = o, { node: r } = c(t), { children: p } = f(r);
19
+ return (_, y) => (n(!0), s(a, null, l(u(p), (e, m) => (n(), d(i(e.component), {
20
+ key: "compound_component_" + m,
21
+ node: e.node,
22
+ componentName: e.name,
23
+ properties: e.properties
24
+ }, null, 8, ["node", "componentName", "properties"]))), 128));
25
+ }
26
+ };
27
+ export {
28
+ B as default
29
+ };
30
+ //# sourceMappingURL=Compound-CuyWvjJc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Compound-CuyWvjJc.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"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI;;;;;;;;;"}
@@ -0,0 +1,50 @@
1
+ import { toRefs as _, ref as a, onMounted as b, openBlock as s, createElementBlock as u, 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 "./entry-BmRN0Y-U.mjs";
3
+ import { u as A } from "./methods-DeDVNJrB.mjs";
4
+ const I = {
5
+ __name: "Container",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ },
14
+ properties: {
15
+ type: Object
16
+ }
17
+ },
18
+ setup(p) {
19
+ const d = p, { node: l } = _(d), { children: m } = B(l), { classes: t } = H(l), { toggleActiveClass: f } = A(), n = a([]), r = a(!1), c = a(null);
20
+ n.value = [...t.value];
21
+ function v() {
22
+ f(n.value);
23
+ let i = n.value.indexOf("active") === -1 ? "none" : "block", e = c.value.nextElementSibling;
24
+ for (; e !== null; )
25
+ e.style.display = i, e = e.nextElementSibling;
26
+ }
27
+ return b(() => {
28
+ if (t.value.includes("header") || t.value.includes("header-left")) {
29
+ n.value.push("inactive");
30
+ const o = l.value.parentElement;
31
+ o && o.getAttribute("classes").includes("toggle") && (r.value = !0, n.value.push("toggle-header"));
32
+ }
33
+ t.value.includes("tab2name") && console.log("***** IN USE tab2name found ??? *****");
34
+ }), (o, i) => (s(), u("div", h({ class: n.value }, { [y(r.value && "click")]: v }, {
35
+ ref_key: "containerElement",
36
+ ref: c
37
+ }), [
38
+ (s(!0), u(k, null, x(C(m), (e, g) => (s(), E(S(e.component), {
39
+ key: "container_component_" + g,
40
+ node: e.node,
41
+ componentName: e.name,
42
+ properties: e.properties
43
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
44
+ ], 16));
45
+ }
46
+ }, j = /* @__PURE__ */ N(I, [["__scopeId", "data-v-6c083687"]]);
47
+ export {
48
+ j as default
49
+ };
50
+ //# sourceMappingURL=Container-BI_-sUj5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container-BI_-sUj5.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"],"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,EAAmB,IAAGC,EAAU,GAElCC,IAAkBC,EAAI,CAAE,CAAA,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,MAGlD;AAEE,MAAIJ,EAAQ,MAAM,SAAS,UAAU,KACnC,QAAQ,IAAI,uCAAuC;AAAA,IAEvD,CAAC;;;;;;;;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { openBlock as n, createBlock as o, resolveDynamicComponent as r, withCtx as a, createElementBlock as m, Fragment as l, renderList as c } from "vue";
2
+ const _ = {
3
+ __name: "DirectElementMap",
4
+ setup(s) {
5
+ return (t, i) => (n(), o(r(t.tag), null, {
6
+ default: a(() => [
7
+ (n(!0), m(l, null, c(t.children, (e, p) => (n(), o(r(e.component), {
8
+ key: "standard_element_component_" + p,
9
+ node: e.node,
10
+ componentName: e.name,
11
+ properties: e.properties
12
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
13
+ ]),
14
+ _: 1
15
+ }));
16
+ }
17
+ };
18
+ export {
19
+ _ as default
20
+ };
21
+ //# sourceMappingURL=DirectElementMap-BxB8uEd3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectElementMap-BxB8uEd3.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { toRefs as p, computed as f, ref as m, openBlock as h, createElementBlock as g, normalizeClass as v, toDisplayString as _ } from "vue";
2
+ import { useRoute as w } from "vue-router";
3
+ import { b as R, d as S } from "./entry-BmRN0Y-U.mjs";
4
+ const b = ["href", "download"], D = {
5
+ __name: "DownloadReference",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ }
14
+ },
15
+ setup(s) {
16
+ const a = s, { node: t } = p(a), l = w(), c = R(), u = f(() => {
17
+ let e = t.value.getAttribute("filename");
18
+ if (e && !e.startsWith("/") && !e.startsWith("http")) {
19
+ const r = S(l);
20
+ e = [c.getDownloadURL(r), e].join(
21
+ "/"
22
+ );
23
+ }
24
+ return e;
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) => (h(), g("a", {
27
+ href: u.value,
28
+ download: o.value,
29
+ class: v(d)
30
+ }, _(o.value), 9, b));
31
+ }
32
+ };
33
+ export {
34
+ D as default
35
+ };
36
+ //# sourceMappingURL=DownloadReference-Coj1rk-Q.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadReference-Coj1rk-Q.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"],"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,MACA;AACE,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;;;;;;;"}
@@ -0,0 +1,38 @@
1
+ import { toRefs as f, ref as v, computed as g, openBlock as r, createElementBlock as a, 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 "./entry-BmRN0Y-U.mjs";
3
+ import { u as x } from "./methods-DeDVNJrB.mjs";
4
+ const R = {
5
+ __name: "Figure",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ },
14
+ properties: {
15
+ type: Object
16
+ }
17
+ },
18
+ setup(u) {
19
+ const p = u, { dataObject: c } = x(), { node: e } = f(p), s = v({}), { classes: l } = N(e), { children: m } = j(e), i = g(() => {
20
+ let o = [...l.value];
21
+ for (const n of e.value.attributes)
22
+ n.name === "align" && o.push("align-" + n.value);
23
+ return o;
24
+ });
25
+ return s.value = c(e.value, i.value).attrs, (o, n) => (r(), a("figure", _(h(s.value)), [
26
+ (r(!0), a(y, null, b(k(m), (t, d) => (r(), C(B(t.component), {
27
+ key: "figure_component_" + d,
28
+ node: t.node,
29
+ componentName: t.name,
30
+ properties: t.properties
31
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
32
+ ], 16));
33
+ }
34
+ };
35
+ export {
36
+ R as default
37
+ };
38
+ //# sourceMappingURL=Figure-cm9jrp4J.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Figure-cm9jrp4J.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"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAY,IAAGC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAE,CAAA,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;;;;;;;;;;"}
@@ -0,0 +1,41 @@
1
+ import { toRefs as v, ref as g, computed as _, openBlock as r, createElementBlock as p, normalizeProps as h, guardReactiveProps as y, Fragment as C, renderList as b, unref as k, createBlock as j, resolveDynamicComponent as B } from "vue";
2
+ import { u as N, a as x } from "./entry-BmRN0Y-U.mjs";
3
+ import { u as F } from "./methods-DeDVNJrB.mjs";
4
+ const z = {
5
+ __name: "FigureCaption",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ },
14
+ properties: {
15
+ type: Object
16
+ }
17
+ },
18
+ setup(c) {
19
+ const u = c, { dataObject: l } = F(), { node: e } = v(u), s = g({}), { classes: i } = N(e), { children: m } = x(e), d = _(() => {
20
+ let n = ["figure-caption", ...i.value];
21
+ for (const o of e.value.attributes)
22
+ o.name === "align" && n.push("align-" + o.value);
23
+ return n;
24
+ }), a = l(e.value, d.value);
25
+ return s.value = {
26
+ ...a.attrs,
27
+ class: a.class.join(" ")
28
+ }, (n, o) => (r(), p("span", h(y(s.value)), [
29
+ (r(!0), p(C, null, b(k(m), (t, f) => (r(), j(B(t.component), {
30
+ key: "figure_caption_" + f,
31
+ node: t.node,
32
+ componentName: t.name,
33
+ properties: t.properties
34
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
35
+ ], 16));
36
+ }
37
+ };
38
+ export {
39
+ z as default
40
+ };
41
+ //# sourceMappingURL=FigureCaption-CEewNKB3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FigureCaption-CEewNKB3.mjs","sources":["../src/components/templates/FigureCaption.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'figure_caption_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n let c = ['figure-caption', ...classes.value]\n for (const attr of node.value.attributes) {\n if (attr.name === 'align') {\n c.push('align-' + attr.value)\n }\n }\n return c\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n</script>\n"],"names":["props","__props","dataObject","useMethods","node","toRefs","attrs","ref","classes","useClasses","children","useChildren","combinedClasses","computed","c","attr","result"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAY,IAAGC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAE,CAAA,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWL,CAAI,GAE7B,EAAE,UAAAM,EAAQ,IAAKC,EAAYP,CAAI,GAE/BQ,IAAkBC,EAAS,MAAM;AACrC,UAAIC,IAAI,CAAC,kBAAkB,GAAGN,EAAQ,KAAK;AAC3C,iBAAWO,KAAQX,EAAK,MAAM;AAC5B,QAAIW,EAAK,SAAS,WAChBD,EAAE,KAAK,WAAWC,EAAK,KAAK;AAGhC,aAAOD;AAAA,IACT,CAAC,GAEKE,IAASd,EAAWE,EAAK,OAAOQ,EAAgB,KAAK;AAC3D,WAAAN,EAAM,QAAQ;AAAA,MACV,GAAGU,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAChC;;;;;;;;;;"}
@@ -0,0 +1,33 @@
1
+ import { toRefs as l, ref as u, openBlock as o, createElementBlock as r, normalizeProps as i, guardReactiveProps as d, Fragment as f, renderList as _, unref as v, createBlock as y, resolveDynamicComponent as h } from "vue";
2
+ import { u as k } from "./methods-DeDVNJrB.mjs";
3
+ import { a as g } from "./entry-BmRN0Y-U.mjs";
4
+ const C = {
5
+ __name: "Footnote",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ },
14
+ properties: {
15
+ type: Object
16
+ }
17
+ },
18
+ setup(p) {
19
+ const a = p, { node: t } = l(a), { children: s } = g(t), { dataObject: c } = k(), n = u({});
20
+ return n.value = c(t.value, ["footnote"]).attrs, (B, N) => (o(), r("div", i(d(n.value)), [
21
+ (o(!0), r(f, null, _(v(s), (e, m) => (o(), y(h(e.component), {
22
+ key: "footnote_component_" + m,
23
+ node: e.node,
24
+ componentName: e.name,
25
+ properties: e.properties
26
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
27
+ ], 16));
28
+ }
29
+ };
30
+ export {
31
+ C as default
32
+ };
33
+ //# sourceMappingURL=Footnote-CsDVGKIf.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footnote-CsDVGKIf.mjs","sources":["../src/components/templates/Footnote.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'footnote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nattrs.value = dataObject(node.value, ['footnote']).attrs // import { h } from 'vue'\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","dataObject","useMethods","attrs","ref"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAI,CAAE,CAAA;AAEpB,WAAAD,EAAM,QAAQF,EAAWJ,EAAK,OAAO,CAAC,UAAU,CAAC,EAAE;;;;;;;;;;"}
@@ -0,0 +1,39 @@
1
+ import { ref as i, toRefs as l, onMounted as m, resolveComponent as _, unref as t, openBlock as n, createBlock as d, withCtx as h, createTextVNode as k, toDisplayString as r, createElementBlock as x } from "vue";
2
+ import { useRoute as R } from "vue-router";
3
+ import { u as y } from "./methods-DeDVNJrB.mjs";
4
+ import { u as C } from "./basereference-CBz3BfwU.mjs";
5
+ const g = ["href"], S = {
6
+ __name: "FootnoteReference",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: {
13
+ type: String
14
+ }
15
+ },
16
+ setup(s) {
17
+ const c = s, o = i({ path: "", hash: "" }), { node: e } = l(c), a = R(), { isInternalReference: u } = y(), { onReferenceCreated: f } = C(e.value, a, o);
18
+ return m(f), (B, v) => {
19
+ const p = _("router-link");
20
+ return t(u)(t(e)) ? (n(), d(p, {
21
+ key: 0,
22
+ to: o.value
23
+ }, {
24
+ default: h(() => [
25
+ k(" [" + r(t(e).textContent) + "] ", 1)
26
+ ]),
27
+ _: 1
28
+ }, 8, ["to"])) : (n(), x("a", {
29
+ key: 1,
30
+ href: t(e).getAttribute("refuri"),
31
+ target: "_blank"
32
+ }, " [" + r(t(e).textContent) + "] ", 9, g));
33
+ };
34
+ }
35
+ };
36
+ export {
37
+ S as default
38
+ };
39
+ //# sourceMappingURL=FootnoteReference-mjr_CUNC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FootnoteReference-mjr_CUNC.mjs","sources":["../src/components/templates/FootnoteReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n [{{ node.textContent }}]\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n [{{ node.textContent }}]\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\n</script>\n"],"names":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted"],"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,EAAqB,IAAGC,EAAU,GACpC,EAAE,oBAAAC,EAAoB,IAAGC,EAAiBP,EAAK,OAAOE,GAAOJ,CAAgB;AAEnF,WAAAU,EAAUF,CAAkB;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { toRefs as m, ref as d, computed as f, openBlock as g, createElementBlock as h, normalizeProps as v, guardReactiveProps as R } from "vue";
2
+ import { useRoute as x } from "vue-router";
3
+ import { a as _, b as I, d as b } from "./entry-BmRN0Y-U.mjs";
4
+ import { u as S } from "./methods-DeDVNJrB.mjs";
5
+ const k = {
6
+ __name: "Image",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: {
13
+ type: String
14
+ },
15
+ properties: {
16
+ type: Object
17
+ }
18
+ },
19
+ setup(a) {
20
+ const n = a, { node: o } = m(n);
21
+ _(o);
22
+ const { dataObject: u } = S(), c = x(), i = I(), t = d({}), s = f(() => {
23
+ let e = o.value.getAttribute("uri");
24
+ if (e && !e.startsWith("/") && !e.startsWith("http")) {
25
+ const r = b(c), l = e.lastIndexOf("/"), p = e.slice(l);
26
+ e = [i.getImagesURL(r), p].join("/");
27
+ }
28
+ return e;
29
+ });
30
+ return t.value = u(o.value).attrs, t.value ? t.value.src = s : t.value = { src: s }, (e, r) => (g(), h("img", v(R(t.value)), null, 16));
31
+ }
32
+ };
33
+ export {
34
+ k as default
35
+ };
36
+ //# sourceMappingURL=Image-DS2T9dhX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image-DS2T9dhX.mjs","sources":["../src/components/templates/Image.vue"],"sourcesContent":["<template>\n <img :=\"attrs\" />\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\nimport { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\nimport { determineRouteUrl } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst route = useRoute()\nconst sphinxStore = useSphinxStore()\nconst attrs = ref({})\n\nconst uri = computed(() => {\n let imageURI = node.value.getAttribute('uri')\n if (imageURI && !imageURI.startsWith('/') && !imageURI.startsWith('http')) {\n const routeURL = determineRouteUrl(route)\n // Sphinx puts all images in a directory '_images' by default\n // for HTML output. We are saying here that we will map the\n // XML image reference the same way.\n const lastIndex = imageURI.lastIndexOf('/')\n const imageName = imageURI.slice(lastIndex)\n // imageURI = `${this.$store.sphinx.getImagesURL(routeURL)}${imageName}`\n imageURI = [sphinxStore.getImagesURL(routeURL), imageName].join('/')\n }\n return imageURI\n})\n\nattrs.value = dataObject(node.value).attrs\nif (attrs.value) {\n attrs.value.src = uri\n} else {\n attrs.value = { src: uri }\n}\n</script>\n"],"names":["props","__props","node","toRefs","useChildren","dataObject","useMethods","route","useRoute","sphinxStore","useSphinxStore","attrs","ref","uri","computed","imageURI","routeURL","determineRouteUrl","lastIndex","imageName"],"mappings":";;;;;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK;AACR,IAAAI,EAAYF,CAAI;AACrC,UAAM,EAAE,YAAAG,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAQ,GAChBC,IAAcC,EAAc,GAC5BC,IAAQC,EAAI,CAAE,CAAA,GAEdC,IAAMC,EAAS,MAAM;AACzB,UAAIC,IAAWb,EAAK,MAAM,aAAa,KAAK;AAC5C,UAAIa,KAAY,CAACA,EAAS,WAAW,GAAG,KAAK,CAACA,EAAS,WAAW,MAAM,GAAG;AACzE,cAAMC,IAAWC,EAAkBV,CAAK,GAIlCW,IAAYH,EAAS,YAAY,GAAG,GACpCI,IAAYJ,EAAS,MAAMG,CAAS;AAE1C,QAAAH,IAAW,CAACN,EAAY,aAAaO,CAAQ,GAAGG,CAAS,EAAE,KAAK,GAAG;AAAA,MACvE;AACE,aAAOJ;AAAA,IACT,CAAC;AAED,WAAAJ,EAAM,QAAQN,EAAWH,EAAK,KAAK,EAAE,OACjCS,EAAM,QACRA,EAAM,MAAM,MAAME,IAElBF,EAAM,QAAQ,EAAE,KAAKE,EAAG;;;"}
@@ -0,0 +1,35 @@
1
+ import { toRefs as m, openBlock as n, createElementBlock as t, normalizeClass as i, unref as r, Fragment as u, renderList as d, createBlock as f, resolveDynamicComponent as _ } from "vue";
2
+ import { a as y, u as g } from "./entry-BmRN0Y-U.mjs";
3
+ const B = {
4
+ __name: "Legend",
5
+ props: {
6
+ node: {
7
+ type: void 0,
8
+ default: null
9
+ },
10
+ componentName: {
11
+ type: String
12
+ },
13
+ properties: {
14
+ type: Object
15
+ }
16
+ },
17
+ setup(s) {
18
+ console.log("***** IN USE *****");
19
+ const p = s, { node: o } = m(p), { children: a } = y(o), { classes: c } = g(o);
20
+ return (k, C) => (n(), t("div", {
21
+ class: i(r(c))
22
+ }, [
23
+ (n(!0), t(u, null, d(r(a), (e, l) => (n(), f(_(e.component), {
24
+ key: "container_component_" + l,
25
+ node: e.node,
26
+ componentName: e.name,
27
+ properties: e.properties
28
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
29
+ ], 2));
30
+ }
31
+ };
32
+ export {
33
+ B as default
34
+ };
35
+ //# sourceMappingURL=Legend-Buf610bh.mjs.map