vue3-sphinx-xml 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/Admonition-CMl3cvE2.mjs +35 -0
  2. package/dist/Admonition-CMl3cvE2.mjs.map +1 -0
  3. package/dist/BlockQuote-BKx_62o5.mjs +31 -0
  4. package/dist/BlockQuote-BKx_62o5.mjs.map +1 -0
  5. package/dist/CaptionNumber-nNxMeKHq.mjs +35 -0
  6. package/dist/CaptionNumber-nNxMeKHq.mjs.map +1 -0
  7. package/dist/ColumnGroup-2vQ_pHZh.mjs +30 -0
  8. package/dist/ColumnGroup-2vQ_pHZh.mjs.map +1 -0
  9. package/dist/Comment-Ddfhp8tE.mjs +27 -0
  10. package/dist/Comment-Ddfhp8tE.mjs.map +1 -0
  11. package/dist/Compound-CkQCXGEt.mjs +31 -0
  12. package/dist/Compound-CkQCXGEt.mjs.map +1 -0
  13. package/dist/Container-atFAqvD8.mjs +47 -0
  14. package/dist/Container-atFAqvD8.mjs.map +1 -0
  15. package/dist/DirectElementMap-e91U7c-P.mjs +24 -0
  16. package/dist/DirectElementMap-e91U7c-P.mjs.map +1 -0
  17. package/dist/Document-D1U8scRh.mjs +33 -0
  18. package/dist/Document-D1U8scRh.mjs.map +1 -0
  19. package/dist/DownloadReference-C74uZBZQ.mjs +38 -0
  20. package/dist/DownloadReference-C74uZBZQ.mjs.map +1 -0
  21. package/dist/Figure-Ue2uoU0l.mjs +36 -0
  22. package/dist/Figure-Ue2uoU0l.mjs.map +1 -0
  23. package/dist/FigureCaption-BVSbJhF7.mjs +39 -0
  24. package/dist/FigureCaption-BVSbJhF7.mjs.map +1 -0
  25. package/dist/Footnote-wv5ClOwM.mjs +32 -0
  26. package/dist/Footnote-wv5ClOwM.mjs.map +1 -0
  27. package/dist/FootnoteReference-mnfh7KUg.mjs +39 -0
  28. package/dist/FootnoteReference-mnfh7KUg.mjs.map +1 -0
  29. package/dist/Image-BydrCE0c.mjs +33 -0
  30. package/dist/Image-BydrCE0c.mjs.map +1 -0
  31. package/dist/Legend-B9ZFxCXI.mjs +32 -0
  32. package/dist/Legend-B9ZFxCXI.mjs.map +1 -0
  33. package/dist/LineBlock-Bhl4CyLL.mjs +32 -0
  34. package/dist/LineBlock-Bhl4CyLL.mjs.map +1 -0
  35. package/dist/LineSingle-BL_nqRem.mjs +33 -0
  36. package/dist/LineSingle-BL_nqRem.mjs.map +1 -0
  37. package/dist/Literal-Di_CHJ29.mjs +35 -0
  38. package/dist/Literal-Di_CHJ29.mjs.map +1 -0
  39. package/dist/LiteralBlock-Bdicro3D.mjs +28 -0
  40. package/dist/LiteralBlock-Bdicro3D.mjs.map +1 -0
  41. package/dist/Math-B4qW3-mK.mjs +23 -0
  42. package/dist/Math-B4qW3-mK.mjs.map +1 -0
  43. package/dist/MathBlock-Bio5KFuK.mjs +46 -0
  44. package/dist/MathBlock-Bio5KFuK.mjs.map +1 -0
  45. package/dist/Note-BOdO-lVA.mjs +32 -0
  46. package/dist/Note-BOdO-lVA.mjs.map +1 -0
  47. package/dist/NumberReference-DbTzyFe1.mjs +47 -0
  48. package/dist/NumberReference-DbTzyFe1.mjs.map +1 -0
  49. package/dist/Problematic-BFPD4WML.mjs +31 -0
  50. package/dist/Problematic-BFPD4WML.mjs.map +1 -0
  51. package/dist/Raw-XpSGAGRS.mjs +11 -0
  52. package/dist/Raw-XpSGAGRS.mjs.map +1 -0
  53. package/dist/Reference-D8OfH1nX.mjs +51 -0
  54. package/dist/Reference-D8OfH1nX.mjs.map +1 -0
  55. package/dist/Section-dwBTFhT5.mjs +35 -0
  56. package/dist/Section-dwBTFhT5.mjs.map +1 -0
  57. package/dist/Skip-B3vfiW0s.mjs +18 -0
  58. package/dist/Skip-B3vfiW0s.mjs.map +1 -0
  59. package/dist/StandardElement-B3pz75MC.mjs +56 -0
  60. package/dist/StandardElement-B3pz75MC.mjs.map +1 -0
  61. package/dist/Text-h1FT9xAk.mjs +23 -0
  62. package/dist/Text-h1FT9xAk.mjs.map +1 -0
  63. package/dist/Title-DuLS-7An.mjs +43 -0
  64. package/dist/Title-DuLS-7An.mjs.map +1 -0
  65. package/dist/TodoNode-BD7LH2n4.mjs +36 -0
  66. package/dist/TodoNode-BD7LH2n4.mjs.map +1 -0
  67. package/dist/Topic-Bpn12S2P.mjs +35 -0
  68. package/dist/Topic-Bpn12S2P.mjs.map +1 -0
  69. package/dist/Transition-B03RGr-W.mjs +12 -0
  70. package/dist/Transition-B03RGr-W.mjs.map +1 -0
  71. package/dist/Warning-yrqj66sd.mjs +38 -0
  72. package/dist/Warning-yrqj66sd.mjs.map +1 -0
  73. package/dist/basereference-qnWrRZL-.mjs +31 -0
  74. package/dist/basereference-qnWrRZL-.mjs.map +1 -0
  75. package/dist/computed-CtquEsn0.mjs +237 -0
  76. package/dist/computed-CtquEsn0.mjs.map +1 -0
  77. package/dist/methods-D1vA1pFT.mjs +77 -0
  78. package/dist/methods-D1vA1pFT.mjs.map +1 -0
  79. package/dist/sphinx-BkN2WZRJ.mjs +1851 -0
  80. package/dist/sphinx-BkN2WZRJ.mjs.map +1 -0
  81. package/dist/utilities-RjHWUaCa.mjs +18 -0
  82. package/dist/utilities-RjHWUaCa.mjs.map +1 -0
  83. package/dist/vue3-sphinx-xml.css +2 -1
  84. package/dist/vue3-sphinx-xml.js +10 -7
  85. package/dist/vue3-sphinx-xml.js.map +1 -1
  86. package/dist/vue3-sphinx-xml.mjs +130 -8
  87. package/dist/vue3-sphinx-xml.mjs.map +1 -1
  88. package/package.json +11 -11
  89. package/dist/Admonition-gd-uJLmV.mjs +0 -36
  90. package/dist/Admonition-gd-uJLmV.mjs.map +0 -1
  91. package/dist/BlockQuote-Cx9XdFGZ.mjs +0 -34
  92. package/dist/BlockQuote-Cx9XdFGZ.mjs.map +0 -1
  93. package/dist/CaptionNumber-B3c0JP0T.mjs +0 -36
  94. package/dist/CaptionNumber-B3c0JP0T.mjs.map +0 -1
  95. package/dist/ColumnGroup-DYs1xB1a.mjs +0 -37
  96. package/dist/ColumnGroup-DYs1xB1a.mjs.map +0 -1
  97. package/dist/Comment-DpyTzHo4.mjs +0 -31
  98. package/dist/Comment-DpyTzHo4.mjs.map +0 -1
  99. package/dist/Compound-ByH1w0P6.mjs +0 -30
  100. package/dist/Compound-ByH1w0P6.mjs.map +0 -1
  101. package/dist/Container-CmVmxWIt.mjs +0 -50
  102. package/dist/Container-CmVmxWIt.mjs.map +0 -1
  103. package/dist/DirectElementMap-B-wTPjj0.mjs +0 -21
  104. package/dist/DirectElementMap-B-wTPjj0.mjs.map +0 -1
  105. package/dist/Document-PZAyvjWh.mjs +0 -230
  106. package/dist/Document-PZAyvjWh.mjs.map +0 -1
  107. package/dist/DownloadReference-CtG3pZe0.mjs +0 -36
  108. package/dist/DownloadReference-CtG3pZe0.mjs.map +0 -1
  109. package/dist/Figure-BV3wzLZX.mjs +0 -38
  110. package/dist/Figure-BV3wzLZX.mjs.map +0 -1
  111. package/dist/FigureCaption-DPm7W0CJ.mjs +0 -41
  112. package/dist/FigureCaption-DPm7W0CJ.mjs.map +0 -1
  113. package/dist/Footnote-DAEfbxUi.mjs +0 -33
  114. package/dist/Footnote-DAEfbxUi.mjs.map +0 -1
  115. package/dist/FootnoteReference-Bi6FG4qF.mjs +0 -39
  116. package/dist/FootnoteReference-Bi6FG4qF.mjs.map +0 -1
  117. package/dist/Image-UjDGAe4v.mjs +0 -37
  118. package/dist/Image-UjDGAe4v.mjs.map +0 -1
  119. package/dist/Legend-BL0KvT6x.mjs +0 -35
  120. package/dist/Legend-BL0KvT6x.mjs.map +0 -1
  121. package/dist/LineBlock-yNMN4PnM.mjs +0 -33
  122. package/dist/LineBlock-yNMN4PnM.mjs.map +0 -1
  123. package/dist/LineSingle-D8mP9JxV.mjs +0 -34
  124. package/dist/LineSingle-D8mP9JxV.mjs.map +0 -1
  125. package/dist/Literal-B3RMToDf.mjs +0 -42
  126. package/dist/Literal-B3RMToDf.mjs.map +0 -1
  127. package/dist/LiteralBlock-DSNLfJRQ.mjs +0 -37
  128. package/dist/LiteralBlock-DSNLfJRQ.mjs.map +0 -1
  129. package/dist/Math-Cq4PVbWU.mjs +0 -28
  130. package/dist/Math-Cq4PVbWU.mjs.map +0 -1
  131. package/dist/MathBlock-BQlgpnCi.mjs +0 -59
  132. package/dist/MathBlock-BQlgpnCi.mjs.map +0 -1
  133. package/dist/Note-DTXT2vL1.mjs +0 -34
  134. package/dist/Note-DTXT2vL1.mjs.map +0 -1
  135. package/dist/NumberReference-eWL-p05o.mjs +0 -48
  136. package/dist/NumberReference-eWL-p05o.mjs.map +0 -1
  137. package/dist/Problematic-DdYGUPom.mjs +0 -36
  138. package/dist/Problematic-DdYGUPom.mjs.map +0 -1
  139. package/dist/Raw-DuZmU9hd.mjs +0 -10
  140. package/dist/Raw-DuZmU9hd.mjs.map +0 -1
  141. package/dist/Reference-NuJMaVmj.mjs +0 -53
  142. package/dist/Reference-NuJMaVmj.mjs.map +0 -1
  143. package/dist/Section-CsKQgVcF.mjs +0 -37
  144. package/dist/Section-CsKQgVcF.mjs.map +0 -1
  145. package/dist/Skip-CRGkjuMM.mjs +0 -19
  146. package/dist/Skip-CRGkjuMM.mjs.map +0 -1
  147. package/dist/StandardElement-Cf1EpLze.mjs +0 -57
  148. package/dist/StandardElement-Cf1EpLze.mjs.map +0 -1
  149. package/dist/Text-CT8nEMkp.mjs +0 -24
  150. package/dist/Text-CT8nEMkp.mjs.map +0 -1
  151. package/dist/Title-DoIeD6eK.mjs +0 -44
  152. package/dist/Title-DoIeD6eK.mjs.map +0 -1
  153. package/dist/TodoNode-C6L-iGX4.mjs +0 -38
  154. package/dist/TodoNode-C6L-iGX4.mjs.map +0 -1
  155. package/dist/Topic-BrgzQGpm.mjs +0 -36
  156. package/dist/Topic-BrgzQGpm.mjs.map +0 -1
  157. package/dist/Transition-CWMp4Zlv.mjs +0 -15
  158. package/dist/Transition-CWMp4Zlv.mjs.map +0 -1
  159. package/dist/Warning-dcxt8LRd.mjs +0 -42
  160. package/dist/Warning-dcxt8LRd.mjs.map +0 -1
  161. package/dist/basereference-7wajqzV8.mjs +0 -42
  162. package/dist/basereference-7wajqzV8.mjs.map +0 -1
  163. package/dist/entry-CNV5B73A.mjs +0 -1990
  164. package/dist/entry-CNV5B73A.mjs.map +0 -1
  165. package/dist/methods-ClbyDlbW.mjs +0 -69
  166. package/dist/methods-ClbyDlbW.mjs.map +0 -1
@@ -0,0 +1,32 @@
1
+ import { n as e, t } from "./computed-CtquEsn0.mjs";
2
+ import { Fragment as n, createBlock as r, createElementBlock as i, normalizeClass as a, openBlock as o, renderList as s, resolveDynamicComponent as c, toRefs as l, unref as u } from "vue";
3
+ //#region src/components/templates/Legend.vue
4
+ var d = {
5
+ __name: "Legend",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: { type: String },
12
+ properties: { type: Object }
13
+ },
14
+ setup(d) {
15
+ console.log("***** IN USE *****");
16
+ let { node: f } = l(d), { children: p } = t(f), { classes: m } = e(f);
17
+ return (e, t) => (o(), i("div", { class: a(u(m)) }, [(o(!0), i(n, null, s(u(p), (e, t) => (o(), r(c(e.component), {
18
+ key: "container_component_" + t,
19
+ node: e.node,
20
+ componentName: e.name,
21
+ properties: e.properties
22
+ }, null, 8, [
23
+ "node",
24
+ "componentName",
25
+ "properties"
26
+ ]))), 128))], 2));
27
+ }
28
+ };
29
+ //#endregion
30
+ export { d as default };
31
+
32
+ //# sourceMappingURL=Legend-B9ZFxCXI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Legend-B9ZFxCXI.mjs","names":[],"sources":["../src/components/templates/Legend.vue"],"sourcesContent":["<template>\n <div :class=\"classes\">\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 { toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconsole.log('***** IN USE *****')\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)\n</script>\n"],"mappings":";;;;;;;;;;;;;;EAkBA,QAAQ,IAAI,oBAAoB;EAchC,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,eAAY,EAAW,CAAI;yBAlCjC,EASM,OAAA,EATA,OAAK,EAAE,EAAA,CAAA,CAAO,EAAA,GAAA,EAAA,EAAA,EAAA,GAClB,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,yBAA2B;GAE9B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
@@ -0,0 +1,32 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./computed-CtquEsn0.mjs";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, guardReactiveProps as a, normalizeProps as o, openBlock as s, ref as c, renderList as l, resolveDynamicComponent as u, toRefs as d, unref as f } from "vue";
4
+ //#region src/components/templates/LineBlock.vue
5
+ var p = {
6
+ __name: "LineBlock",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: { type: String },
13
+ properties: { type: Object }
14
+ },
15
+ setup(p) {
16
+ let m = p, { dataObject: h } = e(), { node: g } = d(m), _ = c({}), { children: v } = t(g);
17
+ return _.value = h(g.value, ["line_block"]).attrs, (e, t) => (s(), i("div", o(a(_.value)), [(s(!0), i(n, null, l(f(v), (e, t) => (s(), r(u(e.component), {
18
+ key: "section_component_" + t,
19
+ node: e.node,
20
+ componentName: e.name,
21
+ properties: e.properties
22
+ }, null, 8, [
23
+ "node",
24
+ "componentName",
25
+ "properties"
26
+ ]))), 128))], 16));
27
+ }
28
+ };
29
+ //#endregion
30
+ export { p as default };
31
+
32
+ //# sourceMappingURL=LineBlock-Bhl4CyLL.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineBlock-Bhl4CyLL.mjs","names":[],"sources":["../src/components/templates/LineBlock.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\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, ref } from 'vue'\n\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 properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\nattrs.value = dataObject(node.value, ['line_block']).attrs\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAmBA,IAAM,IAAQ,GAaR,EAAE,kBAAe,EAAW,GAC5B,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAI,CAAC,CAAC,GAEd,EAAE,gBAAa,EAAY,CAAI;SACrC,EAAM,QAAQ,EAAW,EAAK,OAAO,CAAC,YAAY,CAAC,EAAE,uBApCnD,EASM,OAAA,EAAA,EATE,EAAA,KAAK,CAAA,GAAA,EAAA,EAAA,EAAA,GACX,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,uBAAyB;GAE5B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
@@ -0,0 +1,33 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./computed-CtquEsn0.mjs";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, guardReactiveProps as a, normalizeProps as o, openBlock as s, ref as c, renderList as l, resolveDynamicComponent as u, toRefs as d, unref as f } from "vue";
4
+ //#region src/components/templates/LineSingle.vue
5
+ var p = {
6
+ __name: "LineSingle",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: { type: String },
13
+ properties: { type: Object }
14
+ },
15
+ setup(p) {
16
+ console.log("***** IN USE *****");
17
+ let { node: m } = d(p), { children: h } = t(m), { dataObject: g } = e(), _ = c({});
18
+ return _.value = g(m.value, ["line_single"]).attrs, (e, t) => (s(), i("div", o(a(_.value)), [(s(!0), i(n, null, l(f(h), (e, t) => (s(), r(u(e.component), {
19
+ key: "footnote_component_" + t,
20
+ node: e.node,
21
+ componentName: e.name,
22
+ properties: e.properties
23
+ }, null, 8, [
24
+ "node",
25
+ "componentName",
26
+ "properties"
27
+ ]))), 128))], 16));
28
+ }
29
+ };
30
+ //#endregion
31
+ export { p as default };
32
+
33
+ //# sourceMappingURL=LineSingle-BL_nqRem.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineSingle-BL_nqRem.mjs","names":[],"sources":["../src/components/templates/LineSingle.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\nconsole.log('***** IN USE *****')\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, ['line_single']).attrs\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAmBA,QAAQ,IAAI,oBAAoB;EAehC,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,kBAAe,EAAW,GAC5B,IAAQ,EAAI,CAAC,CAAC;SAEpB,EAAM,QAAQ,EAAW,EAAK,OAAO,CAAC,aAAa,CAAC,EAAE,uBAtCpD,EASM,OAAA,EAAA,EATE,EAAA,KAAK,CAAA,GAAA,EAAA,EAAA,EAAA,GACX,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,wBAA0B;GAE7B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
@@ -0,0 +1,35 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./computed-CtquEsn0.mjs";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, createElementVNode as a, normalizeClass as o, openBlock as s, ref as c, renderList as l, resolveDynamicComponent as u, toRefs as d, unref as f } from "vue";
4
+ //#region src/components/templates/Literal.vue
5
+ var p = { class: "pre" }, m = {
6
+ __name: "Literal",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: { type: String },
13
+ properties: { type: Object }
14
+ },
15
+ setup(m) {
16
+ let { node: h } = d(m), { dataObject: g } = e(), { children: _ } = t(h), v = c(["literal", "notranslate"]), y = g(h.value);
17
+ return ((e) => {
18
+ for (let t in e) if (e[t].language !== "") return !1;
19
+ return !0;
20
+ })(y) || y.attrs && y.attrs.role && v.value.push(y.attrs.role), (e, t) => (s(), i("code", { class: o(v.value) }, [a("span", p, [(s(!0), i(n, null, l(f(_), (e, t) => (s(), r(u(e.component), {
21
+ key: "code_component_" + t,
22
+ node: e.node,
23
+ componentName: e.name,
24
+ properties: e.properties
25
+ }, null, 8, [
26
+ "node",
27
+ "componentName",
28
+ "properties"
29
+ ]))), 128))])], 2));
30
+ }
31
+ };
32
+ //#endregion
33
+ export { m as default };
34
+
35
+ //# sourceMappingURL=Literal-Di_CHJ29.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Literal-Di_CHJ29.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;EAkCA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,kBAAe,EAAW,GAE5B,EAAE,gBAAa,EAAY,CAAI,GAE/B,IAAU,EAAI,CAAC,WAAW,aAAa,CAAC,GAExC,IAAI,EAAW,EAAK,KAAK;WACd,MAAM;GACrB,KAAK,IAAM,KAAK,GACV,MAAE,GAAG,aAAa,IAGtB,OAAO;GAGT,OAAO;EACT,GAEa,CAAC,KACR,EAAE,SAAS,EAAE,MAAM,QACrB,EAAQ,MAAM,KAAK,EAAE,MAAM,IAAI,mBAvDjC,EAWO,QAAA,EAXA,OAAK,EAAE,EAAA,KAAO,EAAA,GAAA,CACnB,EASO,QATP,GASO,EAAA,EAAA,EAAA,GARL,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,oBAAsB;GAEzB,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
@@ -0,0 +1,28 @@
1
+ import { n as e } from "./utilities-RjHWUaCa.mjs";
2
+ import { computed as t, createElementBlock as n, createElementVNode as r, normalizeClass as i, openBlock as a, resolveDirective as o, toDisplayString as s, toRefs as c, withDirectives as l } from "vue";
3
+ //#region src/components/templates/LiteralBlock.vue
4
+ var u = {
5
+ __name: "LiteralBlock",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: { type: String },
12
+ properties: { type: Object }
13
+ },
14
+ setup(u) {
15
+ let { node: d } = c(u), f = t(() => {
16
+ let e = d.value.getAttribute("language");
17
+ return e === "console" || e === "default" ? e = "bash" : e === "text" && (e = "plaintext"), e;
18
+ }), p = t(() => e(d.value.innerHTML));
19
+ return (e, t) => {
20
+ let c = o("highlightjs");
21
+ return l((a(), n("pre", null, [r("code", { class: i(f.value) }, s(p.value), 3)])), [[c]]);
22
+ };
23
+ }
24
+ };
25
+ //#endregion
26
+ export { u as default };
27
+
28
+ //# sourceMappingURL=LiteralBlock-Bdicro3D.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiteralBlock-Bdicro3D.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;EAsBA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,IAAiB,QAAe;GACpC,IAAI,IAAW,EAAK,MAAM,aAAa,UAAU;GAMjD,OALI,MAAa,aAAa,MAAa,YACzC,IAAW,SACF,MAAa,WACtB,IAAW,cAEN;EACT,CAAC,GAEK,IAAa,QACV,EAAW,EAAK,MAAM,SAAS,CACvC;;;kBAnCC,EAA8E,OAAA,MAAA,CAA3D,EAAqD,QAAA,EAA9C,OAAK,EAAE,EAAA,KAAc,EAAA,GAAA,EAAK,EAAA,KAAU,GAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAA,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { createBlock as e, openBlock as t, resolveComponent as n } from "vue";
2
+ //#region src/components/templates/Math.vue
3
+ var r = {
4
+ __name: "Math",
5
+ props: {
6
+ node: {
7
+ type: void 0,
8
+ default: null
9
+ },
10
+ componentName: { type: String },
11
+ properties: { type: Object }
12
+ },
13
+ setup(r) {
14
+ return (i, a) => {
15
+ let o = n("katex-element");
16
+ return t(), e(o, { expression: r.node.textContent }, null, 8, ["expression"]);
17
+ };
18
+ }
19
+ };
20
+ //#endregion
21
+ export { r as default };
22
+
23
+ //# sourceMappingURL=Math-B4qW3-mK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Math-B4qW3-mK.mjs","names":[],"sources":["../src/components/templates/Math.vue"],"sourcesContent":["<template>\n <katex-element :expression=\"node.textContent\"></katex-element>\n</template>\n\n<script setup>\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</script>\n"],"mappings":";;;;;;;;;;;;;;;eACE,EAA8D,GAAA,EAA9C,YAAY,EAAA,KAAK,YAAA,GAAA,MAAA,GAAA,CAAA,YAAA,CAAA"}
@@ -0,0 +1,46 @@
1
+ import { Fragment as e, computed as t, createElementBlock as n, createVNode as r, openBlock as i, renderList as a, resolveComponent as o, toRefs as s } from "vue";
2
+ //#region src/components/templates/MathBlock.vue
3
+ var c = { class: "katex-block" }, l = {
4
+ __name: "MathBlock",
5
+ props: {
6
+ node: {
7
+ type: void 0,
8
+ default: null
9
+ },
10
+ componentName: { type: String },
11
+ properties: { type: Object }
12
+ },
13
+ setup(l) {
14
+ let u = ["\\begin{equation}", "\\end{equation}"], d = new Map([
15
+ ["\\begin{align}", "\\begin{aligned}"],
16
+ ["\\begin{eqnarray}", "\\begin{aligned}"],
17
+ ["\\end{align}", "\\end{aligned}"],
18
+ ["\\end{eqnarray}", "\\end{aligned}"]
19
+ ]), { node: f } = s(l), p = t(() => {
20
+ let e = [], t = f.value.innerHTML.split(/\r?\n\r?\n/);
21
+ for (let n of t) if (n) {
22
+ let t = n.replaceAll("&amp;", "&");
23
+ for (let e of u) t = t.replaceAll(e, "");
24
+ for (let [e, n] of d) t = t.replaceAll(e, n);
25
+ m(t) && !h(t) && (t = `\\begin{array}{cc}${t}\\end{array}`), e.push(t);
26
+ }
27
+ return e;
28
+ });
29
+ function m(e) {
30
+ let t = e.search("&"), n = e.search("\\\\");
31
+ return t !== -1 && n !== -1;
32
+ }
33
+ function h(e) {
34
+ let t = e.search("begin{aligned}"), n = e.search("end{aligned}");
35
+ return t !== -1 && n !== -1;
36
+ }
37
+ return (t, s) => {
38
+ let l = o("katex-element");
39
+ return i(), n("div", c, [(i(!0), n(e, null, a(p.value, (e, t) => (i(), n("div", { key: "math_" + t }, [r(l, { expression: e }, null, 8, ["expression"])]))), 128))]);
40
+ };
41
+ }
42
+ };
43
+ //#endregion
44
+ export { l as default };
45
+
46
+ //# sourceMappingURL=MathBlock-Bio5KFuK.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MathBlock-Bio5KFuK.mjs","names":[],"sources":["../src/components/templates/MathBlock.vue"],"sourcesContent":["<template>\n <div class=\"katex-block\">\n <div v-for=\"(formula, index) in formulas\" :key=\"'math_' + index\">\n <katex-element :expression=\"formula\"></katex-element>\n </div>\n </div>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n// Unsupported delimiters/formatting.\nconst removeList = ['\\\\begin{equation}', '\\\\end{equation}']\n\nconst renameMap = new Map([\n ['\\\\begin{align}', '\\\\begin{aligned}'],\n ['\\\\begin{eqnarray}', '\\\\begin{aligned}'],\n ['\\\\end{align}', '\\\\end{aligned}'],\n ['\\\\end{eqnarray}', '\\\\end{aligned}'],\n])\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 formulas = computed(() => {\n let formulas = []\n const multiEquations = node.value.innerHTML.split(/\\r?\\n\\r?\\n/)\n for (const equation of multiEquations) {\n if (equation) {\n let stripped = equation.replaceAll('&amp;', '&')\n for (const item of removeList) {\n stripped = stripped.replaceAll(item, '')\n }\n for (let [key, value] of renameMap) {\n stripped = stripped.replaceAll(key, value)\n }\n if (requiresSplitEnvironment(stripped) && !hasEnvironment(stripped)) {\n // Create an environment that looks like a split environment\n stripped = `\\\\begin{array}{cc}${stripped}\\\\end{array}`\n }\n formulas.push(stripped)\n }\n }\n return formulas\n})\n\nfunction requiresSplitEnvironment(formula) {\n const ampersandIndex = formula.search('&')\n const newLineIndex = formula.search('\\\\\\\\')\n if (ampersandIndex !== -1 && newLineIndex !== -1) {\n return true\n }\n return false\n}\n\nfunction hasEnvironment(formula) {\n // For some reason search doesn't return 0 if looking for \\ at the start of a string.\n // So we don't look for it.\n const beginEnvironmentIndex = formula.search('begin{aligned}')\n const endEnvironmentIndex = formula.search('end{aligned}')\n if (beginEnvironmentIndex !== -1 && endEnvironmentIndex !== -1) {\n return true\n }\n return false\n}\n</script>\n"],"mappings":";;;;;;;;;;;;;EAWA,IAAM,IAAa,CAAC,qBAAqB,iBAAiB,GAEpD,IAAY,IAAI,IAAI;GACxB,CAAC,kBAAkB,kBAAkB;GACrC,CAAC,qBAAqB,kBAAkB;GACxC,CAAC,gBAAgB,gBAAgB;GACjC,CAAC,mBAAmB,gBAAgB;EACtC,CAAC,GAeK,EAAE,YAAS,EAAO,CAAK,GAEvB,IAAW,QAAe;GAC9B,IAAI,IAAW,CAAC,GACV,IAAiB,EAAK,MAAM,UAAU,MAAM,YAAY;GAC9D,KAAK,IAAM,KAAY,GACrB,IAAI,GAAU;IACZ,IAAI,IAAW,EAAS,WAAW,SAAS,GAAG;IAC/C,KAAK,IAAM,KAAQ,GACjB,IAAW,EAAS,WAAW,GAAM,EAAE;IAEzC,KAAK,IAAI,CAAC,GAAK,MAAU,GACvB,IAAW,EAAS,WAAW,GAAK,CAAK;IAM3C,AAJI,EAAyB,CAAQ,KAAK,CAAC,EAAe,CAAQ,MAEhE,IAAW,qBAAqB,EAAS,gBAE3C,EAAS,KAAK,CAAQ;GACxB;GAEF,OAAO;EACT,CAAC;EAED,SAAS,EAAyB,GAAS;GACzC,IAAM,IAAiB,EAAQ,OAAO,GAAG,GACnC,IAAe,EAAQ,OAAO,MAAM;GAI1C,OAHI,MAAmB,MAAM,MAAiB;EAIhD;EAEA,SAAS,EAAe,GAAS;GAG/B,IAAM,IAAwB,EAAQ,OAAO,gBAAgB,GACvD,IAAsB,EAAQ,OAAO,cAAc;GAIzD,OAHI,MAA0B,MAAM,MAAwB;EAI9D;;;eA1EE,EAIM,OAJN,GAIM,EAAA,EAAA,EAAA,GAHJ,EAEM,GAAA,MAAA,EAF0B,EAAA,QAAnB,GAAS,YAAtB,EAEM,OAAA,EAFqC,KAAG,UAAY,EAAA,GAAA,CACxD,EAAqD,GAAA,EAArC,YAAY,EAAO,GAAA,MAAA,GAAA,CAAA,YAAA,CAAA,CAAA,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./computed-CtquEsn0.mjs";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, createElementVNode as a, guardReactiveProps as o, normalizeProps as s, openBlock as c, ref as l, renderList as u, resolveDynamicComponent as d, toRefs as f, unref as p } from "vue";
4
+ //#region src/components/templates/Note.vue
5
+ var m = {
6
+ __name: "Note",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: { type: String },
13
+ properties: { type: Object }
14
+ },
15
+ setup(m) {
16
+ let { node: h } = f(m), { dataObject: g } = e(), _ = l({}), { children: v } = t(h);
17
+ return _.value = g(h.value, ["admonition", "note"]).attrs, (e, t) => (c(), i("div", s(o(_.value)), [t[0] ||= a("p", { class: "admonition-title" }, "Note", -1), (c(!0), i(n, null, u(p(v), (e, t) => (c(), r(d(e.component), {
18
+ key: "note_component_" + t,
19
+ node: e.node,
20
+ componentName: e.name,
21
+ properties: e.properties
22
+ }, null, 8, [
23
+ "node",
24
+ "componentName",
25
+ "properties"
26
+ ]))), 128))], 16));
27
+ }
28
+ };
29
+ //#endregion
30
+ export { m as default };
31
+
32
+ //# sourceMappingURL=Note-BOdO-lVA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Note-BOdO-lVA.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;EAiCA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,EAAE,kBAAe,EAAW,GAC5B,IAAQ,EAAI,CAAC,CAAC,GAEd,EAAE,gBAAa,EAAY,CAAI;SAErC,EAAM,QAAQ,EAAW,EAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE,uBAtC3D,EAUM,OAAA,EAAA,EAVE,EAAA,KAAK,CAAA,GAAA,CAAA,AAAA,EAAA,OACX,EAAoC,KAAA,EAAjC,OAAM,mBAAkB,GAAC,QAAI,EAAA,IAAA,EAAA,EAAA,GAChC,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,oBAAsB;GAEzB,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
@@ -0,0 +1,47 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./basereference-qnWrRZL-.mjs";
3
+ import { computed as n, createBlock as r, createElementBlock as i, createTextVNode as a, onMounted as o, openBlock as s, ref as c, resolveComponent as l, toDisplayString as u, toRefs as d, unref as f, withCtx as p } from "vue";
4
+ import { useRoute as m } from "vue-router";
5
+ //#region src/components/templates/NumberReference.vue
6
+ var h = ["href"], g = {
7
+ __name: "NumberReference",
8
+ props: {
9
+ node: {
10
+ type: void 0,
11
+ default: null
12
+ },
13
+ componentName: { type: String }
14
+ },
15
+ setup(g) {
16
+ let _ = g, v = c({
17
+ path: "",
18
+ hash: ""
19
+ }), { node: y } = d(_), b = m(), { isInternalReference: x } = e(), { onReferenceCreated: S } = t(y.value, b, v);
20
+ o(S);
21
+ let C = n(() => {
22
+ if (y.value.childElementCount) return y.value.children[0].innerHTML;
23
+ let e = y.value.getAttribute("refid");
24
+ e ||= y.value.getAttribute("refuri");
25
+ let t = e.replace("-", " ");
26
+ return "Fig. " + t.charAt(0).toUpperCase() + t.slice(1);
27
+ });
28
+ return (e, t) => {
29
+ let n = l("router-link");
30
+ return f(x)(f(y)) ? (s(), r(n, {
31
+ key: 0,
32
+ to: v.value
33
+ }, {
34
+ default: p(() => [a(u(C.value), 1)]),
35
+ _: 1
36
+ }, 8, ["to"])) : (s(), i("a", {
37
+ key: 1,
38
+ href: f(y).getAttribute("refuri"),
39
+ target: "_blank"
40
+ }, u(C.value), 9, h));
41
+ };
42
+ }
43
+ };
44
+ //#endregion
45
+ export { g as default };
46
+
47
+ //# sourceMappingURL=NumberReference-DbTzyFe1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberReference-DbTzyFe1.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;EAgBA,IAAM,IAAQ,GAUR,IAAmB,EAAI;GAAC,MAAM;GAAI,MAAM;EAAE,CAAC,GAC3C,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAS,GAEjB,EAAE,2BAAwB,EAAW,GACrC,EAAE,0BAAuB,EAAiB,EAAK,OAAO,GAAO,CAAgB;EAEnF,EAAU,CAAkB;EAE5B,IAAM,IAAQ,QAAe;GAC3B,IAAI,EAAK,MAAM,mBAIb,OAAO,EAAK,MAAM,SAAS,GAAG;GAGhC,IAAI,IAAW,EAAK,MAAM,aAAa,OAAO;GAC9C,AACE,MAAW,EAAK,MAAM,aAAa,QAAQ;GAE7C,IAAM,IAAI,EAAS,QAAQ,KAAK,GAAG;GACnC,OAAO,UAAU,EAAE,OAAO,CAAC,EAAE,YAAY,IAAI,EAAE,MAAM,CAAC;EACxD,CAAC;;;UAhDoB,EAAA,CAAA,EAAoB,EAAA,CAAA,CAAI,KAAA,EAAA,GAA3C,EAEc,GAAA;;IAFiC,IAAI,EAAA;;qBACtC,CAAA,EAAA,EAAR,EAAA,KAAK,GAAA,CAAA,CAAA,CAAA;;0BAEV,EAEI,KAAA;;IAFO,MAAM,EAAA,CAAA,EAAK,aAAY,QAAA;IAAY,QAAO;QAChD,EAAA,KAAK,GAAA,GAAA,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { createBlock as t, createElementVNode as n, openBlock as r, ref as i, resolveComponent as a, toDisplayString as o, toRefs as s, unref as c, withCtx as l } from "vue";
3
+ //#region src/components/templates/Problematic.vue
4
+ var u = ["id"], d = {
5
+ __name: "Problematic",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: { type: String },
12
+ properties: { type: Object }
13
+ },
14
+ setup(d) {
15
+ let { node: f } = s(d), p = i({ hash: "#" + f.value.getAttribute("refid") }), { extractId: m } = e(), { id: h } = m(f.value);
16
+ return (e, i) => {
17
+ let s = a("router-link");
18
+ return r(), t(s, { to: p.value }, {
19
+ default: l(() => [n("span", {
20
+ class: "problematic",
21
+ id: c(h)
22
+ }, o(c(f).textContent), 9, u)]),
23
+ _: 1
24
+ }, 8, ["to"]);
25
+ };
26
+ }
27
+ };
28
+ //#endregion
29
+ export { d as default };
30
+
31
+ //# sourceMappingURL=Problematic-BFPD4WML.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Problematic-BFPD4WML.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;EA0BA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,IAAmB,EAAI,EAAC,MAAM,MAAM,EAAK,MAAM,aAAa,OAAO,EAAC,CAAC,GAErE,EAAE,iBAAc,EAAW,GAC3B,EAAE,UAAO,EAAU,EAAK,KAAK;;;eA7BjC,EAIC,GAAA,EAJa,IAAI,EAAA,MAAgB,GAAA;qBAGvB,CAFT,EAES,QAAA;KAFH,OAAM;KAAe,IAAI,EAAA,CAAA;SAC7B,EAAA,CAAA,EAAK,WAAW,GAAA,GAAA,CAAA,CAAA,CAAA"}
@@ -0,0 +1,11 @@
1
+ //#region src/components/templates/Raw.vue
2
+ var e = {
3
+ __name: "Raw",
4
+ setup(e) {
5
+ return console.log("**** Intentionally ignoring this element."), (e, t) => null;
6
+ }
7
+ };
8
+ //#endregion
9
+ export { e as default };
10
+
11
+ //# sourceMappingURL=Raw-XpSGAGRS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Raw-XpSGAGRS.mjs","names":[],"sources":["../src/components/templates/Raw.vue"],"sourcesContent":["<template></template>\n\n<script setup>\nconsole.log('**** Intentionally ignoring this element.')\n</script>\n"],"mappings":";;;;SAGA,QAAQ,IAAI,2CAA2C"}
@@ -0,0 +1,51 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./computed-CtquEsn0.mjs";
3
+ import { t as n } from "./basereference-qnWrRZL-.mjs";
4
+ import { Fragment as r, createBlock as i, createElementBlock as a, createTextVNode as o, onMounted as s, openBlock as c, ref as l, renderList as u, resolveComponent as d, resolveDynamicComponent as f, toDisplayString as p, toRefs as m, unref as h, withCtx as g } from "vue";
5
+ import { useRoute as _ } from "vue-router";
6
+ //#region src/components/templates/Reference.vue
7
+ var v = ["href"], y = {
8
+ __name: "Reference",
9
+ props: {
10
+ node: {
11
+ type: void 0,
12
+ default: null
13
+ },
14
+ componentName: { type: String }
15
+ },
16
+ setup(y) {
17
+ let b = y, x = l({
18
+ path: "",
19
+ hash: ""
20
+ }), { node: S } = m(b), C = _(), { isInternalReference: w } = e(), { onReferenceCreated: T } = n(S.value, C, x);
21
+ s(T);
22
+ let { children: E } = t(S);
23
+ return (e, t) => {
24
+ let n = d("router-link");
25
+ return h(w)(h(S)) ? (c(), i(n, {
26
+ key: 0,
27
+ to: x.value
28
+ }, {
29
+ default: g(() => [o(p(h(S).textContent), 1)]),
30
+ _: 1
31
+ }, 8, ["to"])) : (c(), a("a", {
32
+ key: 1,
33
+ href: h(S).getAttribute("refuri"),
34
+ target: "_blank"
35
+ }, [(c(!0), a(r, null, u(h(E), (e, t) => (c(), i(f(e.component), {
36
+ key: "sub_link_" + t,
37
+ node: e.node,
38
+ componentName: e.name,
39
+ properties: e.properties
40
+ }, null, 8, [
41
+ "node",
42
+ "componentName",
43
+ "properties"
44
+ ]))), 128))], 8, v));
45
+ };
46
+ }
47
+ };
48
+ //#endregion
49
+ export { y as default };
50
+
51
+ //# sourceMappingURL=Reference-D8OfH1nX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reference-D8OfH1nX.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;;EAwBA,IAAM,IAAQ,GAUR,IAAmB,EAAI;GAAE,MAAM;GAAI,MAAM;EAAG,CAAC,GAC7C,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAS,GAEjB,EAAE,2BAAwB,EAAW,GACrC,EAAE,0BAAuB,EAC7B,EAAK,OACL,GACA,CACF;EAEA,EAAU,CAAkB;EAC5B,IAAM,EAAE,gBAAa,EAAY,CAAI;;;UA7ChB,EAAA,CAAA,EAAoB,EAAA,CAAA,CAAI,KAAA,EAAA,GAA3C,EAEc,GAAA;;IAFiC,IAAI,EAAA;;qBAC3B,CAAA,EAAA,EAAnB,EAAA,CAAA,EAAK,WAAW,GAAA,CAAA,CAAA,CAAA;;0BAErB,EASI,KAAA;;IATO,MAAM,EAAA,CAAA,EAAK,aAAY,QAAA;IAAY,QAAO;eACnD,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;IADf,KAAG,cAAgB;IAEnB,MAAM,EAAE;IACR,eAAe,EAAE;IACjB,YAAY,EAAE"}
@@ -0,0 +1,35 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { t } from "./computed-CtquEsn0.mjs";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, openBlock as a, renderList as o, resolveDynamicComponent as s, toRefs as c, unref as l } from "vue";
4
+ //#region src/components/templates/Section.vue
5
+ var u = ["id"], d = ["id"], f = {
6
+ __name: "Section",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: { type: String },
13
+ properties: { type: Object }
14
+ },
15
+ setup(f) {
16
+ let { node: p } = c(f), { extractId: m, separateIds: h } = e(), { id: g } = m(p.value), { extraIds: _ } = h(p.value, g), { children: v } = t(p);
17
+ return (e, t) => (a(), i("section", { id: l(g) }, [(a(!0), i(n, null, o(l(_), (e, t) => (a(), i("span", {
18
+ key: "id_span_" + t,
19
+ id: e
20
+ }, null, 8, d))), 128)), (a(!0), i(n, null, o(l(v), (e, t) => (a(), r(s(e.component), {
21
+ key: "section_component_" + t,
22
+ node: e.node,
23
+ componentName: e.name,
24
+ properties: e.properties
25
+ }, null, 8, [
26
+ "node",
27
+ "componentName",
28
+ "properties"
29
+ ]))), 128))], 8, u));
30
+ }
31
+ };
32
+ //#endregion
33
+ export { f as default };
34
+
35
+ //# sourceMappingURL=Section-dwBTFhT5.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section-dwBTFhT5.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;;EAiCA,IAAM,EAAE,YAAS,EAAO,CAAK,GAEvB,EAAE,cAAW,mBAAgB,EAAW,GACxC,EAAE,UAAO,EAAU,EAAK,KAAK,GAC7B,EAAE,gBAAa,EAAY,EAAK,OAAO,CAAE,GAEzC,EAAE,gBAAa,EAAY,CAAI;yBAtCnC,EAUU,WAAA,EAVA,IAAI,EAAA,CAAA,EAAE,GAAA,EAAA,EAAA,EAAA,GACd,EAAyE,GAAA,MAAA,EAA9C,EAAA,CAAA,IAAb,GAAG,YAAjB,EAAyE,QAAA;GAAnC,KAAG,aAAe;GAAQ,IAAI;mCACpE,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;GADf,KAAG,uBAAyB;GAE5B,MAAM,EAAE;GACR,eAAe,EAAE;GACjB,YAAY,EAAE"}
@@ -0,0 +1,18 @@
1
+ //#region src/components/templates/Skip.vue
2
+ var e = {
3
+ __name: "Skip",
4
+ props: {
5
+ node: {
6
+ type: void 0,
7
+ default: null
8
+ },
9
+ componentName: { type: String }
10
+ },
11
+ setup(e) {
12
+ return (e, t) => null;
13
+ }
14
+ };
15
+ //#endregion
16
+ export { e as default };
17
+
18
+ //# sourceMappingURL=Skip-B3vfiW0s.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skip-B3vfiW0s.mjs","names":[],"sources":["../src/components/templates/Skip.vue"],"sourcesContent":["<template></template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n"],"mappings":""}
@@ -0,0 +1,56 @@
1
+ import { t as e } from "./methods-D1vA1pFT.mjs";
2
+ import { r as t, t as n } from "./computed-CtquEsn0.mjs";
3
+ import { Fragment as r, createBlock as i, createElementBlock as a, mergeProps as o, openBlock as s, ref as c, renderList as l, resolveDynamicComponent as u, toHandlerKey as d, toRefs as f, unref as p, withCtx as m } from "vue";
4
+ //#region src/components/templates/StandardElement.vue
5
+ var h = {
6
+ __name: "StandardElement",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: { type: String }
13
+ },
14
+ setup(h) {
15
+ let { node: g } = f(h), { children: _ } = n(g), { dataObject: v } = e(), y = c({}), b = c(!1), x = c(null);
16
+ new Set(["div", "button"]);
17
+ let S = t.get(g.value.nodeName), C = v(g.value, g.value.getAttribute("classes")), w = C.class ? C.class.join(" ") : void 0;
18
+ y.value = {
19
+ ...C.attrs,
20
+ class: w
21
+ }, y.value.prefix === "" && delete y.value.prefix, g.value.nodeName === "button" && (b.value = !0);
22
+ function T() {
23
+ if (x.value.getAttribute("aria-selected") === "false") {
24
+ let e = x.value.parentElement, t = [];
25
+ for (let n of e.children) {
26
+ let e = document.getElementById(n.id);
27
+ e.setAttribute("aria-selected", e.getAttribute("aria-selected") === "true" ? "false" : "true"), t.push({ id: n.getAttribute("aria-controls") });
28
+ }
29
+ for (let e of t) {
30
+ let t = document.getElementById(e.id);
31
+ t.hasAttribute("hidden") ? t.removeAttribute("hidden") : t.setAttribute("hidden", "");
32
+ }
33
+ }
34
+ }
35
+ return (e, t) => (s(), i(u(p(S)), o(y.value, { [d(b.value && "click")]: T }, {
36
+ ref_key: "componentElement",
37
+ ref: x
38
+ }), {
39
+ default: m(() => [(s(!0), a(r, null, l(p(_), (e, t) => (s(), i(u(e.component), {
40
+ key: "standard_element_component_" + t,
41
+ node: e.node,
42
+ componentName: e.name,
43
+ properties: e.properties
44
+ }, null, 8, [
45
+ "node",
46
+ "componentName",
47
+ "properties"
48
+ ]))), 128))]),
49
+ _: 1
50
+ }, 16));
51
+ }
52
+ };
53
+ //#endregion
54
+ export { h as default };
55
+
56
+ //# sourceMappingURL=StandardElement-B3pz75MC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardElement-B3pz75MC.mjs","names":[],"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"],"mappings":";;;;;;;;;;;;;;EAmCA,IAAM,EAAE,YAAS,EAAO,CAAK,GACvB,EAAE,gBAAa,EAAY,CAAI,GAC/B,EAAE,kBAAe,EAAW,GAC5B,IAAQ,EAAI,CAAC,CAAC,GACd,IAAW,EAAI,EAAK,GACpB,IAAmB,EAAI,IAAI;EAEN,IAAI,IAAI,CAAC,OAAO,QAAQ,CAAC;EACpD,IAAM,IAAM,EAAmB,IAAI,EAAK,MAAM,QAAQ,GAEhD,IAAgB,EAAW,EAAK,OAAO,EAAK,MAAM,aAAa,SAAS,CAAC,GACzE,IAAY,EAAc,QAC5B,EAAc,MAAM,KAAK,GAAG,IAC5B,KAAA;EAWJ,AAVA,EAAM,QAAQ;GACZ,GAAG,EAAc;GACjB,OAAO;EACT,GAGI,EAAM,MAAM,WAAW,MACzB,OAAO,EAAM,MAAM,QAGjB,EAAK,MAAM,aAAa,aAC1B,EAAS,QAAQ;EAGnB,SAAS,IAAgB;GACvB,IAAI,EAAiB,MAAM,aAAa,eAAe,MAAM,SAAS;IACpE,IAAM,IAAgB,EAAiB,MAAM,eACzC,IAAS,CAAC;IACd,KAAK,IAAM,KAAS,EAAc,UAAU;KAC1C,IAAM,IAAK,SAAS,eAAe,EAAM,EAAE;KAK3C,AAJA,EAAG,aACD,iBACA,EAAG,aAAa,eAAe,MAAM,SAAS,UAAU,MAC1D,GACA,EAAO,KAAK,EAAE,IAAI,EAAM,aAAa,eAAe,EAAE,CAAC;IACzD;IACA,KAAK,IAAM,KAAS,GAAQ;KAC1B,IAAM,IAAK,SAAS,eAAe,EAAM,EAAE;KAC3C,AAAI,EAAG,aAAa,QAAQ,IAC1B,EAAG,gBAAgB,QAAQ,IAE3B,EAAG,aAAa,UAAU,EAAE;IAEhC;GACF;EACF;yBAnFE,EAcY,EAbL,EAAA,CAAA,CAAG,GADV,EAEK,EAYO,OAZF,GAAA,EACP,EAAA,SAAQ,OAAA,IAAa,EAAa,GAAA;YAC/B;GAAJ,KAAI;;oBAG4B,EAAA,EAAA,EAAA,GADhC,EAOE,GAAA,MAAA,EANqB,EAAA,CAAA,IAAb,GAAG,YADb,EAOE,EAJK,EAAE,SAAS,GAAA;IADf,KAAG,gCAAkC;IAErC,MAAM,EAAE;IACR,eAAe,EAAE;IACjB,YAAY,EAAE"}