vue3-sphinx-xml 0.4.1 → 0.6.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/Admonition-gd-uJLmV.mjs +36 -0
  2. package/dist/Admonition-gd-uJLmV.mjs.map +1 -0
  3. package/dist/BlockQuote-Cx9XdFGZ.mjs +34 -0
  4. package/dist/{BlockQuote-0b464fcb.mjs.map → BlockQuote-Cx9XdFGZ.mjs.map} +1 -1
  5. package/dist/CaptionNumber-B3c0JP0T.mjs +36 -0
  6. package/dist/{CaptionNumber-02430764.mjs.map → CaptionNumber-B3c0JP0T.mjs.map} +1 -1
  7. package/dist/{ColumnGroup-baa1b99b.mjs → ColumnGroup-DYs1xB1a.mjs} +4 -4
  8. package/dist/{ColumnGroup-baa1b99b.mjs.map → ColumnGroup-DYs1xB1a.mjs.map} +1 -1
  9. package/dist/{Comment-f2157760.mjs → Comment-DpyTzHo4.mjs} +3 -3
  10. package/dist/{Comment-f2157760.mjs.map → Comment-DpyTzHo4.mjs.map} +1 -1
  11. package/dist/Compound-ByH1w0P6.mjs +30 -0
  12. package/dist/{Compound-ae2a8a98.mjs.map → Compound-ByH1w0P6.mjs.map} +1 -1
  13. package/dist/Container-CmVmxWIt.mjs +50 -0
  14. package/dist/{Container-19a7431d.mjs.map → Container-CmVmxWIt.mjs.map} +1 -1
  15. package/dist/{DirectElementMap-4c6f8e80.mjs → DirectElementMap-B-wTPjj0.mjs} +2 -2
  16. package/dist/DirectElementMap-B-wTPjj0.mjs.map +1 -0
  17. package/dist/Document-PZAyvjWh.mjs +230 -0
  18. package/dist/Document-PZAyvjWh.mjs.map +1 -0
  19. package/dist/DownloadReference-CtG3pZe0.mjs +36 -0
  20. package/dist/{DownloadReference-1df41bf0.mjs.map → DownloadReference-CtG3pZe0.mjs.map} +1 -1
  21. package/dist/Figure-BV3wzLZX.mjs +38 -0
  22. package/dist/{Figure-12e7efef.mjs.map → Figure-BV3wzLZX.mjs.map} +1 -1
  23. package/dist/FigureCaption-DPm7W0CJ.mjs +41 -0
  24. package/dist/{FigureCaption-7b351f25.mjs.map → FigureCaption-DPm7W0CJ.mjs.map} +1 -1
  25. package/dist/Footnote-DAEfbxUi.mjs +33 -0
  26. package/dist/{Footnote-e4b02243.mjs.map → Footnote-DAEfbxUi.mjs.map} +1 -1
  27. package/dist/FootnoteReference-Bi6FG4qF.mjs +39 -0
  28. package/dist/FootnoteReference-Bi6FG4qF.mjs.map +1 -0
  29. package/dist/Image-UjDGAe4v.mjs +37 -0
  30. package/dist/{Image-15e1e5bd.mjs.map → Image-UjDGAe4v.mjs.map} +1 -1
  31. package/dist/Legend-BL0KvT6x.mjs +35 -0
  32. package/dist/{Legend-878a7ec8.mjs.map → Legend-BL0KvT6x.mjs.map} +1 -1
  33. package/dist/LineBlock-yNMN4PnM.mjs +33 -0
  34. package/dist/{LineBlock-8eec127a.mjs.map → LineBlock-yNMN4PnM.mjs.map} +1 -1
  35. package/dist/LineSingle-D8mP9JxV.mjs +34 -0
  36. package/dist/{LineSingle-6a9fabdf.mjs.map → LineSingle-D8mP9JxV.mjs.map} +1 -1
  37. package/dist/{Literal-edb2ce6f.mjs → Literal-B3RMToDf.mjs} +13 -18
  38. package/dist/{Literal-edb2ce6f.mjs.map → Literal-B3RMToDf.mjs.map} +1 -1
  39. package/dist/LiteralBlock-DSNLfJRQ.mjs +37 -0
  40. package/dist/{LiteralBlock-a2af758b.mjs.map → LiteralBlock-DSNLfJRQ.mjs.map} +1 -1
  41. package/dist/{Math-7ccdef36.mjs → Math-Cq4PVbWU.mjs} +3 -3
  42. package/dist/Math-Cq4PVbWU.mjs.map +1 -0
  43. package/dist/{MathBlock-f8b3d549.mjs → MathBlock-BQlgpnCi.mjs} +8 -8
  44. package/dist/{MathBlock-f8b3d549.mjs.map → MathBlock-BQlgpnCi.mjs.map} +1 -1
  45. package/dist/Note-DTXT2vL1.mjs +34 -0
  46. package/dist/Note-DTXT2vL1.mjs.map +1 -0
  47. package/dist/NumberReference-eWL-p05o.mjs +48 -0
  48. package/dist/{NumberReference-2143cb23.mjs.map → NumberReference-eWL-p05o.mjs.map} +1 -1
  49. package/dist/Problematic-DdYGUPom.mjs +36 -0
  50. package/dist/Problematic-DdYGUPom.mjs.map +1 -0
  51. package/dist/{Raw-dcdd7f96.mjs → Raw-DuZmU9hd.mjs} +1 -1
  52. package/dist/{Raw-dcdd7f96.mjs.map → Raw-DuZmU9hd.mjs.map} +1 -1
  53. package/dist/{Reference-80a8b234.mjs → Reference-NuJMaVmj.mjs} +14 -18
  54. package/dist/{Reference-80a8b234.mjs.map → Reference-NuJMaVmj.mjs.map} +1 -1
  55. package/dist/Section-CsKQgVcF.mjs +37 -0
  56. package/dist/Section-CsKQgVcF.mjs.map +1 -0
  57. package/dist/{Skip-4a46064f.mjs → Skip-CRGkjuMM.mjs} +1 -1
  58. package/dist/Skip-CRGkjuMM.mjs.map +1 -0
  59. package/dist/{StandardElement-64bcb6c4.mjs → StandardElement-Cf1EpLze.mjs} +15 -20
  60. package/dist/{StandardElement-64bcb6c4.mjs.map → StandardElement-Cf1EpLze.mjs.map} +1 -1
  61. package/dist/{Text-0d6b5332.mjs → Text-CT8nEMkp.mjs} +1 -1
  62. package/dist/Text-CT8nEMkp.mjs.map +1 -0
  63. package/dist/Title-DoIeD6eK.mjs +44 -0
  64. package/dist/{Title-4ea6531d.mjs.map → Title-DoIeD6eK.mjs.map} +1 -1
  65. package/dist/TodoNode-C6L-iGX4.mjs +38 -0
  66. package/dist/{TodoNode-9696576f.mjs.map → TodoNode-C6L-iGX4.mjs.map} +1 -1
  67. package/dist/Topic-BrgzQGpm.mjs +36 -0
  68. package/dist/{Topic-5c1f63eb.mjs.map → Topic-BrgzQGpm.mjs.map} +1 -1
  69. package/dist/{Transition-3485737d.mjs → Transition-CWMp4Zlv.mjs} +1 -1
  70. package/dist/{Transition-3485737d.mjs.map → Transition-CWMp4Zlv.mjs.map} +1 -1
  71. package/dist/Warning-dcxt8LRd.mjs +42 -0
  72. package/dist/Warning-dcxt8LRd.mjs.map +1 -0
  73. package/dist/{basereference-dc2b6871.mjs → basereference-7wajqzV8.mjs} +9 -9
  74. package/dist/{basereference-dc2b6871.mjs.map → basereference-7wajqzV8.mjs.map} +1 -1
  75. package/dist/entry-CNV5B73A.mjs +1990 -0
  76. package/dist/entry-CNV5B73A.mjs.map +1 -0
  77. package/dist/{methods-f5038371.mjs → methods-ClbyDlbW.mjs} +2 -2
  78. package/dist/{methods-f5038371.mjs.map → methods-ClbyDlbW.mjs.map} +1 -1
  79. package/dist/vue3-sphinx-xml.css +1 -0
  80. package/dist/vue3-sphinx-xml.js +7 -0
  81. package/dist/vue3-sphinx-xml.js.map +1 -0
  82. package/dist/vue3-sphinx-xml.mjs +6 -8
  83. package/dist/vue3-sphinx-xml.mjs.map +1 -1
  84. package/package.json +18 -17
  85. package/dist/Admonition-4dbe3f53.mjs +0 -41
  86. package/dist/Admonition-4dbe3f53.mjs.map +0 -1
  87. package/dist/BlockQuote-0b464fcb.mjs +0 -39
  88. package/dist/CaptionNumber-02430764.mjs +0 -41
  89. package/dist/Compound-ae2a8a98.mjs +0 -35
  90. package/dist/Container-19a7431d.mjs +0 -55
  91. package/dist/DirectElementMap-4c6f8e80.mjs.map +0 -1
  92. package/dist/DownloadReference-1df41bf0.mjs +0 -40
  93. package/dist/Figure-12e7efef.mjs +0 -43
  94. package/dist/FigureCaption-7b351f25.mjs +0 -46
  95. package/dist/Footnote-e4b02243.mjs +0 -38
  96. package/dist/FootnoteReference-b5b67601.mjs +0 -44
  97. package/dist/FootnoteReference-b5b67601.mjs.map +0 -1
  98. package/dist/Image-15e1e5bd.mjs +0 -40
  99. package/dist/Legend-878a7ec8.mjs +0 -41
  100. package/dist/LineBlock-8eec127a.mjs +0 -38
  101. package/dist/LineSingle-6a9fabdf.mjs +0 -40
  102. package/dist/LiteralBlock-a2af758b.mjs +0 -42
  103. package/dist/Math-7ccdef36.mjs.map +0 -1
  104. package/dist/Note-4413dcab.mjs +0 -39
  105. package/dist/Note-4413dcab.mjs.map +0 -1
  106. package/dist/NumberReference-2143cb23.mjs +0 -53
  107. package/dist/Problematic-3d793374.mjs +0 -42
  108. package/dist/Problematic-3d793374.mjs.map +0 -1
  109. package/dist/Section-9ba27ca3.mjs +0 -42
  110. package/dist/Section-9ba27ca3.mjs.map +0 -1
  111. package/dist/Skip-4a46064f.mjs.map +0 -1
  112. package/dist/Text-0d6b5332.mjs.map +0 -1
  113. package/dist/Title-4ea6531d.mjs +0 -49
  114. package/dist/TodoNode-9696576f.mjs +0 -44
  115. package/dist/Topic-5c1f63eb.mjs +0 -41
  116. package/dist/Warning-5cbf4ef9.mjs +0 -47
  117. package/dist/Warning-5cbf4ef9.mjs.map +0 -1
  118. package/dist/entry-185f60c1.mjs +0 -46646
  119. package/dist/entry-185f60c1.mjs.map +0 -1
  120. package/dist/style.css +0 -1
@@ -0,0 +1,36 @@
1
+ import { toRefs as v, ref as h, computed as y, createElementBlock as r, openBlock as o, mergeProps as k, unref as a, Fragment as C, renderList as b, createBlock as g, resolveDynamicComponent as j } from "vue";
2
+ import { u as x } from "./methods-ClbyDlbW.mjs";
3
+ import { u as B, a as N } from "./Document-PZAyvjWh.mjs";
4
+ 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-gd-uJLmV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Admonition-gd-uJLmV.mjs","sources":["../src/components/templates/Admonition.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'admonition_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst attrs = ref({})\n\nconst { dataObject, extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['admonition', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\n\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n}\n</script>\n"],"names":["props","__props","node","toRefs","attrs","ref","dataObject","extractId","useMethods","classes","useClasses","id","children","useChildren","combinedClasses","computed","result","_openBlock","_createElementBlock","_mergeProps","_unref","_Fragment","_renderList","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAQC,EAAI,CAAA,CAAE,GAEd,EAAE,YAAAC,GAAY,WAAAC,EAAS,IAAKC,EAAU,GACtC,EAAE,SAAAC,EAAO,IAAKC,EAAWR,CAAI,GAE7B,EAAE,IAAAS,EAAE,IAAKJ,EAAUL,EAAK,KAAK,GAE7B,EAAE,UAAAU,EAAQ,IAAKC,EAAYX,CAAI,GAE/BY,IAAkBC,EAAS,MACxB,CAAC,cAAc,GAAGN,EAAQ,KAAK,CACvC,GAEKO,IAASV,EAAWJ,EAAK,OAAOY,EAAgB,KAAK;AAE3D,WAAAV,EAAM,QAAQ;AAAA,MACZ,GAAGY,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAC9B,cAlDEC,EAAA,GAAAC,EASM,OATNC,EASM,EATA,IAAIC,EAAAT,CAAA,EAAE,GAAKP,EAAA,KAAK,GAAA;AAAA,OACpBa,EAAA,EAAA,GAAAC,EAOEG,GAAA,MAAAC,EANqBF,EAAAR,CAAA,GAAQ,CAArBW,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,+BAA+BC;AAAA,QAE/B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
@@ -0,0 +1,34 @@
1
+ import { toRefs as m, createElementBlock as n, openBlock as o, createElementVNode as s, Fragment as u, renderList as a, unref as d, createBlock as i, resolveDynamicComponent as f } from "vue";
2
+ import { a as _ } from "./Document-PZAyvjWh.mjs";
3
+ 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-Cx9XdFGZ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockQuote-0b464fcb.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":["node","toRefs","props","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"BlockQuote-Cx9XdFGZ.mjs","sources":["../src/components/templates/BlockQuote.vue"],"sourcesContent":["<template>\n <blockquote>\n <div>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'blockquote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n </blockquote>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","_createElementBlock","_createElementVNode","_openBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI;2BAlCnCI,EAWa,cAAA,MAAA;AAAA,MAVXC,EASM,OAAA,MAAA;AAAA,SARJC,EAAA,EAAA,GAAAF,EAOEG,GAAA,MAAAC,EANqBC,EAAAP,CAAA,GAAQ,CAArBQ,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,UADf,+BAA+BC;AAAA,UAE/B,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { toRefs as d, ref as f, computed as _, createElementBlock as s, openBlock as n, normalizeProps as v, guardReactiveProps as b, Fragment as y, renderList as C, unref as h, createBlock as k, resolveDynamicComponent as N } from "vue";
2
+ import { u as g, a as j } from "./Document-PZAyvjWh.mjs";
3
+ import { u as B } from "./methods-ClbyDlbW.mjs";
4
+ 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-B3c0JP0T.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaptionNumber-02430764.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":["dataObject","useMethods","node","toRefs","props","attrs","ref","classes","useClasses","children","useChildren","combinedClasses","computed","result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,YAAAA,EAAY,IAAGC,EAAY,GAC7B,EAAE,MAAAC,EAAI,IAAKC,EAAOC,CAAK,GACvBC,IAAQC,EAAI,EAAE,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWN,CAAI,GAE7B,EAAE,UAAAO,EAAQ,IAAKC,EAAYR,CAAI,GAE/BS,IAAkBC,EAAS,MACxB,CAAC,kBAAkB,GAAGL,EAAQ,KAAK,CAC3C,GAEKM,IAASb,EAAWE,EAAK,OAAOS,EAAgB,KAAK;AAC3D,WAAAN,EAAM,QAAQ;AAAA,MACV,GAAGQ,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAC7B;;;;;;;;;;"}
1
+ {"version":3,"file":"CaptionNumber-B3c0JP0T.mjs","sources":["../src/components/templates/CaptionNumber.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'caption_number_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['caption-number', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n\n</script>\n"],"names":["props","__props","dataObject","useMethods","node","toRefs","attrs","ref","classes","useClasses","children","useChildren","combinedClasses","computed","result","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAU,IAAKC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAA,CAAE,GACd,EAAE,SAAAC,EAAO,IAAKC,EAAWL,CAAI,GAE7B,EAAE,UAAAM,EAAQ,IAAKC,EAAYP,CAAI,GAE/BQ,IAAkBC,EAAS,MACxB,CAAC,kBAAkB,GAAGL,EAAQ,KAAK,CAC3C,GAEKM,IAASZ,EAAWE,EAAK,OAAOQ,EAAgB,KAAK;AAC3D,WAAAN,EAAM,QAAQ;AAAA,MACV,GAAGQ,EAAO;AAAA,MACV,OAAOA,EAAO,MAAM,KAAK,GAAG;AAAA,IAChC,cA9CEC,EAAA,GAAAC,EASO,YATEV,EAAA,KAAK,CAAA,GAAA;AAAA,OACZS,EAAA,EAAA,GAAAC,EAOEC,GAAA,MAAAC,EANqBC,EAAAT,CAAA,GAAQ,CAArBU,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,yBAAyBC;AAAA,QAEzB,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import { toRefs as m, computed as a, openBlock as n, createElementBlock as l, Fragment as i, renderList as d, normalizeStyle as f } from "vue";
1
+ import { toRefs as m, computed as a, createElementBlock as n, openBlock as l, Fragment as i, renderList as d, normalizeStyle as f } from "vue";
2
2
  const _ = {
3
3
  __name: "ColumnGroup",
4
4
  props: {
@@ -23,8 +23,8 @@ const _ = {
23
23
  t.push(e / o * 100);
24
24
  return t;
25
25
  });
26
- return (o, r) => (n(), l("colgroup", null, [
27
- (n(!0), l(i, null, d(p.value, (t, e) => (n(), l("col", {
26
+ return (o, r) => (l(), n("colgroup", null, [
27
+ (l(!0), n(i, null, d(p.value, (t, e) => (l(), n("col", {
28
28
  key: "col_" + e,
29
29
  style: f("width: " + t + "%")
30
30
  }, null, 4))), 128))
@@ -34,4 +34,4 @@ const _ = {
34
34
  export {
35
35
  _ as default
36
36
  };
37
- //# sourceMappingURL=ColumnGroup-baa1b99b.mjs.map
37
+ //# sourceMappingURL=ColumnGroup-DYs1xB1a.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColumnGroup-baa1b99b.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":["properties","toRefs","props","columnWidths","computed","sum","widths","value","percentWidths"],"mappings":";;;;;;;;;;;;;;;;iBA0BM,EAAE,YAAAA,EAAU,IAAKC,EAAOC,CAAK,GAE7BC,IAAeC,EAAS,MAAM;AAClC,UAAIC,IAAM,GACNC,IAAS,CAAE;AACf,iBAAWC,KAASP,EAAW,MAAM;AACnC,QAAAK,KAAO,OAAOE,CAAK,GACnBD,EAAO,KAAK,OAAOC,CAAK,CAAC;AAE3B,UAAIC,IAAgB,CAAE;AACtB,iBAAWD,KAASD;AAClB,QAAAE,EAAc,KAAMD,IAAQF,IAAO,GAAG;AAGxC,aAAOG;AAAA,IACT,CAAC;;;;;;;;;"}
1
+ {"version":3,"file":"ColumnGroup-DYs1xB1a.mjs","sources":["../src/components/templates/ColumnGroup.vue"],"sourcesContent":["<template>\n <colgroup>\n <col\n v-for=\"(v, index) in columnWidths\"\n :key=\"'col_' + index\"\n :style=\"'width: ' + v + '%'\"\n />\n </colgroup>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { properties } = toRefs(props)\n\nconst columnWidths = computed(() => {\n let sum = 0\n let widths = []\n for (const value of properties.value.colspecs) {\n sum += Number(value)\n widths.push(Number(value))\n }\n let percentWidths = []\n for (const value of widths) {\n percentWidths.push((value / sum) * 100)\n }\n\n return percentWidths\n})\n</script>\n"],"names":["props","__props","properties","toRefs","columnWidths","computed","sum","widths","value","percentWidths","_createElementBlock","_openBlock","_Fragment","_renderList","v","index"],"mappings":";;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAU,IAAKC,EAAOH,CAAK,GAE7BI,IAAeC,EAAS,MAAM;AAClC,UAAIC,IAAM,GACNC,IAAS,CAAA;AACb,iBAAWC,KAASN,EAAW,MAAM;AACnC,QAAAI,KAAO,OAAOE,CAAK,GACnBD,EAAO,KAAK,OAAOC,CAAK,CAAC;AAE3B,UAAIC,IAAgB,CAAA;AACpB,iBAAWD,KAASD;AAClB,QAAAE,EAAc,KAAMD,IAAQF,IAAO,GAAG;AAGxC,aAAOG;AAAA,IACT,CAAC;2BAxCCC,EAMW,YAAA,MAAA;AAAA,OALTC,EAAA,EAAA,GAAAD,EAIEE,GAAA,MAAAC,EAHqBT,EAAA,OAAY,CAAzBU,GAAGC,YADbL,EAIE,OAAA;AAAA,QAFC,cAAcK;AAAA,QACd,qBAAmBD,IAAC,GAAA;AAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import { createCommentVNode as r, toRefs as p, ref as s, openBlock as a, createBlock as u } from "vue";
1
+ import { createCommentVNode as r, toRefs as p, ref as s, createBlock as a, openBlock as u } from "vue";
2
2
  const l = {
3
3
  props: ["content"],
4
4
  setup(e) {
@@ -22,10 +22,10 @@ const l = {
22
22
  const o = e, { node: c } = p(o), t = s("");
23
23
  for (const n of c.value.childNodes)
24
24
  t.value += n.nodeValue;
25
- return (n, m) => (a(), u(l, { content: t.value }, null, 8, ["content"]));
25
+ return (n, m) => (u(), a(l, { content: t.value }, null, 8, ["content"]));
26
26
  }
27
27
  };
28
28
  export {
29
29
  f as default
30
30
  };
31
- //# sourceMappingURL=Comment-f2157760.mjs.map
31
+ //# sourceMappingURL=Comment-DpyTzHo4.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Comment-f2157760.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","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;;;;;;;;;;;;;;;iBCcI,EAAE,MAAAE,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAOC,EAAI,EAAE;AAEnB,eAAW,KAAKH,EAAK,MAAM;AACzB,MAAAE,EAAK,SAAS,EAAE;;;;"}
1
+ {"version":3,"file":"Comment-DpyTzHo4.mjs","sources":["../src/components/CommentNode.vue","../src/components/templates/Comment.vue"],"sourcesContent":["<script>\n import { createCommentVNode } from 'vue'\n export default {\n props: ['content'],\n setup(props) {\n return () => createCommentVNode(props.content || '')\n }\n }\n</script>","<template>\n <comment-node :content=\"text\" />\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\nimport CommentNode from '../CommentNode.vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst text = ref('')\n\nfor (const n of node.value.childNodes) {\n text.value += n.nodeValue\n}\n</script>\n"],"names":["_sfc_main","props","createCommentVNode","__props","node","toRefs","text","ref","_createBlock","CommentNode"],"mappings":";AAEE,MAAKA,IAAU;AAAA,EACb,OAAO,CAAC,SAAS;AAAA,EACjB,MAAMC,GAAO;AACX,WAAO,MAAMC,EAAmBD,EAAM,WAAW,EAAE;AAAA,EACrD;AACF;;;;;;;;;;;;;;;ACCF,UAAMA,IAAQE,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOJ,CAAK,GACvBK,IAAOC,EAAI,EAAE;AAEnB,eAAW,KAAKH,EAAK,MAAM;AACzB,MAAAE,EAAK,SAAS,EAAE;2BAxBhBE,EAAgCC,GAAA,EAAjB,SAASH,EAAA,MAAI,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA;AAAA;;"}
@@ -0,0 +1,30 @@
1
+ import { toRefs as c, createElementBlock as s, openBlock as n, Fragment as a, renderList as l, unref as u, createBlock as d, resolveDynamicComponent as i } from "vue";
2
+ import { a as f } from "./Document-PZAyvjWh.mjs";
3
+ 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-ByH1w0P6.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Compound-ae2a8a98.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":["node","toRefs","props","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBA6BM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI;;;;;;;;;"}
1
+ {"version":3,"file":"Compound-ByH1w0P6.mjs","sources":["../src/components/templates/Compound.vue"],"sourcesContent":["<template>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'compound_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","_openBlock","_createElementBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI;sBA9BnCI,EAAA,EAAA,GAAAC,EAOEC,GAAA,MAAAC,EANqBC,EAAAN,CAAA,GAAQ,CAArBO,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,MADf,6BAA6BC;AAAA,MAE7B,MAAMD,EAAE;AAAA,MACR,eAAeA,EAAE;AAAA,MACjB,YAAYA,EAAE;AAAA;;;"}
@@ -0,0 +1,50 @@
1
+ import { toRefs as _, ref as a, onMounted as b, createElementBlock as u, openBlock as s, mergeProps as h, toHandlerKey as y, Fragment as k, renderList as x, unref as C, createBlock as E, resolveDynamicComponent as S } from "vue";
2
+ import { _ as N, a as B, u as H } from "./Document-PZAyvjWh.mjs";
3
+ import { u as A } from "./methods-ClbyDlbW.mjs";
4
+ 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-CmVmxWIt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Container-19a7431d.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":["node","toRefs","props","children","useChildren","classes","useClasses","toggleActiveClass","useMethods","combinedClasses","ref","isToggleHeader","containerElement","toggleHeaderClicked","blockType","elementSibling","onMounted","parent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAoCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,SAAAK,EAAO,IAAKC,EAAWN,CAAI,GAC7B,EAAE,mBAAAO,EAAmB,IAAGC,EAAY,GAEpCC,IAAkBC,EAAI,EAAE,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,IAASjB,EAAK,MAAM;AAC1B,QAAIiB,KACEA,EAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,MAClDN,EAAe,QAAQ,IACvBF,EAAgB,MAAM,KAAK,eAAe;AAAA,MAG/C;AAED,MAAIJ,EAAQ,MAAM,SAAS,UAAU,KACnC,QAAQ,IAAI,uCAAuC;AAAA,IAEvD,CAAC;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Container-CmVmxWIt.mjs","sources":["../src/components/templates/Container.vue"],"sourcesContent":["<template>\n <div\n :class=\"combinedClasses\"\n @[isToggleHeader&&`click`]=\"toggleHeaderClicked\"\n ref=\"containerElement\"\n >\n <component\n v-for=\"(c, index) in children\"\n :key=\"'container_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { onMounted, ref, toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { classes } = useClasses(node)\nconst { toggleActiveClass } = useMethods()\n\nconst combinedClasses = ref([])\nconst isToggleHeader = ref(false)\nconst containerElement = ref(null)\n\ncombinedClasses.value = [...classes.value]\n\nfunction toggleHeaderClicked() {\n toggleActiveClass(combinedClasses.value)\n const index = combinedClasses.value.indexOf('active')\n let blockType = index === -1 ? 'none' : 'block'\n\n let elementSibling = containerElement.value.nextElementSibling\n while (elementSibling !== null) {\n elementSibling.style.display = blockType\n elementSibling = elementSibling.nextElementSibling\n }\n}\n\nonMounted(() => {\n if (\n classes.value.includes('header') ||\n classes.value.includes('header-left')\n ) {\n combinedClasses.value.push('inactive')\n const parent = node.value.parentElement\n if (parent) {\n if (parent.getAttribute('classes').includes('toggle')) {\n isToggleHeader.value = true\n combinedClasses.value.push('toggle-header')\n }\n }\n }\n\n if (classes.value.includes('tab2name')) {\n console.log('***** IN USE tab2name found ??? *****')\n }\n})\n</script>\n\n<style scoped>\n.toggle-header {\n cursor: pointer;\n}\n</style>\n"],"names":["props","__props","node","toRefs","children","useChildren","classes","useClasses","toggleActiveClass","useMethods","combinedClasses","ref","isToggleHeader","containerElement","toggleHeaderClicked","blockType","elementSibling","onMounted","parent","_createElementBlock","_mergeProps","_toHandlerKey","_openBlock","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,SAAAI,EAAO,IAAKC,EAAWL,CAAI,GAC7B,EAAE,mBAAAM,EAAiB,IAAKC,EAAU,GAElCC,IAAkBC,EAAI,CAAA,CAAE,GACxBC,IAAiBD,EAAI,EAAK,GAC1BE,IAAmBF,EAAI,IAAI;AAEjC,IAAAD,EAAgB,QAAQ,CAAC,GAAGJ,EAAQ,KAAK;AAEzC,aAASQ,IAAsB;AAC7B,MAAAN,EAAkBE,EAAgB,KAAK;AAEvC,UAAIK,IADUL,EAAgB,MAAM,QAAQ,QAAQ,MAC1B,KAAK,SAAS,SAEpCM,IAAiBH,EAAiB,MAAM;AAC5C,aAAOG,MAAmB;AACxB,QAAAA,EAAe,MAAM,UAAUD,GAC/BC,IAAiBA,EAAe;AAAA,IAEpC;AAEA,WAAAC,EAAU,MAAM;AACd,UACEX,EAAQ,MAAM,SAAS,QAAQ,KAC/BA,EAAQ,MAAM,SAAS,aAAa,GACpC;AACA,QAAAI,EAAgB,MAAM,KAAK,UAAU;AACrC,cAAMQ,IAAShB,EAAK,MAAM;AAC1B,QAAIgB,KACEA,EAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,MAClDN,EAAe,QAAQ,IACvBF,EAAgB,MAAM,KAAK,eAAe;AAAA,MAGhD;AAEA,MAAIJ,EAAQ,MAAM,SAAS,UAAU,KACnC,QAAQ,IAAI,uCAAuC;AAAA,IAEvD,CAAC,mBA7ECa,EAaM,OAbNC,EAaM,EAZH,OAAOV,EAAA,MAAe,GAAA,EAAA,CAAAW,EACtBT,EAAA,SAAc,OAAA,CAAA,GAAaE,KAAmB;AAAA,eAC3C;AAAA,MAAJ,KAAID;AAAA;OAEJS,EAAA,EAAA,GAAAH,EAOEI,GAAA,MAAAC,EANqBC,EAAArB,CAAA,GAAQ,CAArBsB,GAAGC,YADbC,EAOEC,EAJKH,EAAE,SAAS,GAAA;AAAA,QADf,8BAA8BC;AAAA,QAE9B,MAAMD,EAAE;AAAA,QACR,eAAeA,EAAE;AAAA,QACjB,YAAYA,EAAE;AAAA;;;;"}
@@ -1,4 +1,4 @@
1
- import { openBlock as n, createBlock as o, resolveDynamicComponent as r, withCtx as a, createElementBlock as m, Fragment as l, renderList as c } from "vue";
1
+ import { createBlock as o, openBlock as n, resolveDynamicComponent as r, withCtx as a, createElementBlock as m, Fragment as l, renderList as c } from "vue";
2
2
  const _ = {
3
3
  __name: "DirectElementMap",
4
4
  setup(s) {
@@ -18,4 +18,4 @@ const _ = {
18
18
  export {
19
19
  _ as default
20
20
  };
21
- //# sourceMappingURL=DirectElementMap-4c6f8e80.mjs.map
21
+ //# sourceMappingURL=DirectElementMap-B-wTPjj0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DirectElementMap-B-wTPjj0.mjs","sources":["../src/components/templates/DirectElementMap.vue"],"sourcesContent":["\n<template>\n <component :is=\"tag\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'standard_element_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n\n<script setup>\n// import { defineProps, toRefs } from 'vue'\n\n// import { nodeMap } from '../../js/nodemap'\n// import { useChildren } from '../../composables/computed'\n\n// const props = defineProps({\n// node: {\n// type: undefined,\n// default: null,\n// },\n// componentName: {\n// type: String,\n// },\n// })\n\n// const { node } = toRefs(props)\n// const { children } = useChildren(node)\n\n// const tag = nodeMap.get(node.value.nodeName)\n</script>\n\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","tag","_createElementBlock","_Fragment","_renderList","children","c","index"],"mappings":";;;;sBAEEA,EAAA,GAAAC,EASYC,EATIC,EAAAA,GAAG,GAAA,MAAA;AAAA,iBAEf,MAA8B;AAAA,SADhCH,EAAA,EAAA,GAAAI,EAOEC,GAAA,MAAAC,EANqBC,EAAAA,UAAQ,CAArBC,GAAGC,YADbR,EAOEC,EAJKM,EAAE,SAAS,GAAA;AAAA,UADf,qCAAqCC;AAAA,UAErC,MAAMD,EAAE;AAAA,UACR,eAAeA,EAAE;AAAA,UACjB,YAAYA,EAAE;AAAA;;;;;;"}
@@ -0,0 +1,230 @@
1
+ import { createElementBlock as l, openBlock as i, createElementVNode as s, toDisplayString as N, computed as u, defineAsyncComponent as d, toRefs as b, Fragment as C, renderList as k, unref as y, createBlock as S, resolveDynamicComponent as T } from "vue";
2
+ const v = (e, t, o) => {
3
+ const n = e[t];
4
+ return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((p, m) => {
5
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(m.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== o ? ". Note that variables only represent file names one level deep." : ""))));
6
+ });
7
+ }, f = {
8
+ __name: "Error",
9
+ props: {
10
+ node: {
11
+ type: void 0
12
+ },
13
+ componentName: {
14
+ type: String
15
+ }
16
+ },
17
+ setup(e) {
18
+ return (t, o) => (i(), l("div", null, [
19
+ s("h3", null, "Missing: '" + N(e.componentName) + "' from Sphinx XML output", 1),
20
+ o[0] || (o[0] = s("span", null, "It seems the component was not found.", -1))
21
+ ]));
22
+ }
23
+ }, w = (e, t) => {
24
+ const o = e.__vccOpts || e;
25
+ for (const [n, p] of t)
26
+ o[n] = p;
27
+ return o;
28
+ }, L = { class: "loading-container" }, M = {
29
+ __name: "Loading",
30
+ props: {
31
+ node: {
32
+ type: void 0
33
+ },
34
+ componentName: {
35
+ type: String
36
+ }
37
+ },
38
+ setup(e) {
39
+ return (t, o) => (i(), l("div", L, [...o[0] || (o[0] = [
40
+ s("span", null, "Loading page component", -1),
41
+ s("span", { class: "lds-roller" }, [
42
+ s("div"),
43
+ s("div"),
44
+ s("div"),
45
+ s("div"),
46
+ s("div"),
47
+ s("div"),
48
+ s("div"),
49
+ s("div")
50
+ ], -1)
51
+ ])]));
52
+ }
53
+ }, g = /* @__PURE__ */ w(M, [["__scopeId", "data-v-d51880c8"]]), B = /* @__PURE__ */ new Map([
54
+ ["bullet_list", "ul"],
55
+ ["button", "button"],
56
+ ["citation", "cite"],
57
+ ["definition", "dd"],
58
+ ["definition_list", "dl"],
59
+ ["definition_list_item", "dt"],
60
+ ["div", "div"],
61
+ ["emphasis", "em"],
62
+ ["enumerated_list", "ol"],
63
+ ["glossary", "div"],
64
+ ["inline", "span"],
65
+ ["label", "span"],
66
+ ["list_item", "li"],
67
+ ["line", "p"],
68
+ ["paragraph", "p"],
69
+ ["rubric", "h3"],
70
+ ["strong", "strong"],
71
+ ["subscript", "sub"],
72
+ ["superscript", "sup"],
73
+ ["table", "table"],
74
+ ["tbody", "tbody"],
75
+ ["entry", "td"],
76
+ ["row", "tr"],
77
+ ["thead", "thead"],
78
+ ["term", "dt"],
79
+ ["title_reference", "cite"]
80
+ ]), c = /* @__PURE__ */ new Map([
81
+ ["#text", "Text"],
82
+ ["block_quote", "BlockQuote"],
83
+ ["caption", "FigureCaption"],
84
+ ["caption_number", "CaptionNumber"],
85
+ ["download_reference", "DownloadReference"],
86
+ ["footnote_reference", "FootnoteReference"],
87
+ ["index", "Skip"],
88
+ ["line_block", "LineBlock"],
89
+ ["literal_block", "LiteralBlock"],
90
+ ["math_block", "MathBlock"],
91
+ ["number_reference", "NumberReference"]
92
+ ]);
93
+ function R(e, t) {
94
+ let o;
95
+ if (t.nodeName === "#text") {
96
+ if (!t.nodeValue.trim())
97
+ return null;
98
+ o = {
99
+ text: t.nodeValue
100
+ };
101
+ } else if (t.nodeName === "warning") {
102
+ let p = t.parentNode, m = 0;
103
+ for (; p; )
104
+ p.nodeName === "section" && (m += 1), p = p.parentNode;
105
+ o = {
106
+ depth: m
107
+ };
108
+ } else if (t.nodeName === "title") {
109
+ let p = t.parentNode, m = 0, r = !1;
110
+ if (p.nodeName === "topic")
111
+ r = !0;
112
+ else
113
+ for (; p; )
114
+ p.nodeName === "section" && (m += 1), p = p.parentNode;
115
+ o = {
116
+ depth: m,
117
+ isTopic: r
118
+ };
119
+ }
120
+ return {
121
+ component: d({
122
+ loader: () => v(/* @__PURE__ */ Object.assign({ "../components/templates/Admonition.vue": () => import("./Admonition-gd-uJLmV.mjs"), "../components/templates/BlockQuote.vue": () => import("./BlockQuote-Cx9XdFGZ.mjs"), "../components/templates/CaptionNumber.vue": () => import("./CaptionNumber-B3c0JP0T.mjs"), "../components/templates/ColumnGroup.vue": () => import("./ColumnGroup-DYs1xB1a.mjs"), "../components/templates/Comment.vue": () => import("./Comment-DpyTzHo4.mjs"), "../components/templates/Compound.vue": () => import("./Compound-ByH1w0P6.mjs"), "../components/templates/Container.vue": () => import("./Container-CmVmxWIt.mjs"), "../components/templates/DirectElementMap.vue": () => import("./DirectElementMap-B-wTPjj0.mjs"), "../components/templates/Document.vue": () => Promise.resolve().then(() => _), "../components/templates/DownloadReference.vue": () => import("./DownloadReference-CtG3pZe0.mjs"), "../components/templates/Figure.vue": () => import("./Figure-BV3wzLZX.mjs"), "../components/templates/FigureCaption.vue": () => import("./FigureCaption-DPm7W0CJ.mjs"), "../components/templates/Footnote.vue": () => import("./Footnote-DAEfbxUi.mjs"), "../components/templates/FootnoteReference.vue": () => import("./FootnoteReference-Bi6FG4qF.mjs"), "../components/templates/Image.vue": () => import("./Image-UjDGAe4v.mjs"), "../components/templates/Legend.vue": () => import("./Legend-BL0KvT6x.mjs"), "../components/templates/LineBlock.vue": () => import("./LineBlock-yNMN4PnM.mjs"), "../components/templates/LineSingle.vue": () => import("./LineSingle-D8mP9JxV.mjs"), "../components/templates/Literal.vue": () => import("./Literal-B3RMToDf.mjs"), "../components/templates/LiteralBlock.vue": () => import("./LiteralBlock-DSNLfJRQ.mjs"), "../components/templates/Math.vue": () => import("./Math-Cq4PVbWU.mjs"), "../components/templates/MathBlock.vue": () => import("./MathBlock-BQlgpnCi.mjs"), "../components/templates/Note.vue": () => import("./Note-DTXT2vL1.mjs"), "../components/templates/NumberReference.vue": () => import("./NumberReference-eWL-p05o.mjs"), "../components/templates/Problematic.vue": () => import("./Problematic-DdYGUPom.mjs"), "../components/templates/Raw.vue": () => import("./Raw-DuZmU9hd.mjs"), "../components/templates/Reference.vue": () => import("./Reference-NuJMaVmj.mjs"), "../components/templates/Section.vue": () => import("./Section-CsKQgVcF.mjs"), "../components/templates/Skip.vue": () => import("./Skip-CRGkjuMM.mjs"), "../components/templates/StandardElement.vue": () => import("./StandardElement-Cf1EpLze.mjs"), "../components/templates/Text.vue": () => import("./Text-CT8nEMkp.mjs"), "../components/templates/Title.vue": () => import("./Title-DoIeD6eK.mjs"), "../components/templates/TodoNode.vue": () => import("./TodoNode-C6L-iGX4.mjs"), "../components/templates/Topic.vue": () => import("./Topic-BrgzQGpm.mjs"), "../components/templates/Transition.vue": () => import("./Transition-CWMp4Zlv.mjs"), "../components/templates/Warning.vue": () => import("./Warning-dcxt8LRd.mjs") }), `../components/templates/${e}.vue`, 4),
123
+ // A component to use while the async component is loading
124
+ loadingComponent: g,
125
+ // A component to use if the load fails
126
+ errorComponent: f
127
+ }),
128
+ name: e,
129
+ node: t,
130
+ properties: o
131
+ };
132
+ }
133
+ function x(e, t) {
134
+ const o = "ColumnGroup";
135
+ return {
136
+ component: d({
137
+ loader: () => v(/* @__PURE__ */ Object.assign({ "../components/templates/Admonition.vue": () => import("./Admonition-gd-uJLmV.mjs"), "../components/templates/BlockQuote.vue": () => import("./BlockQuote-Cx9XdFGZ.mjs"), "../components/templates/CaptionNumber.vue": () => import("./CaptionNumber-B3c0JP0T.mjs"), "../components/templates/ColumnGroup.vue": () => import("./ColumnGroup-DYs1xB1a.mjs"), "../components/templates/Comment.vue": () => import("./Comment-DpyTzHo4.mjs"), "../components/templates/Compound.vue": () => import("./Compound-ByH1w0P6.mjs"), "../components/templates/Container.vue": () => import("./Container-CmVmxWIt.mjs"), "../components/templates/DirectElementMap.vue": () => import("./DirectElementMap-B-wTPjj0.mjs"), "../components/templates/Document.vue": () => Promise.resolve().then(() => _), "../components/templates/DownloadReference.vue": () => import("./DownloadReference-CtG3pZe0.mjs"), "../components/templates/Figure.vue": () => import("./Figure-BV3wzLZX.mjs"), "../components/templates/FigureCaption.vue": () => import("./FigureCaption-DPm7W0CJ.mjs"), "../components/templates/Footnote.vue": () => import("./Footnote-DAEfbxUi.mjs"), "../components/templates/FootnoteReference.vue": () => import("./FootnoteReference-Bi6FG4qF.mjs"), "../components/templates/Image.vue": () => import("./Image-UjDGAe4v.mjs"), "../components/templates/Legend.vue": () => import("./Legend-BL0KvT6x.mjs"), "../components/templates/LineBlock.vue": () => import("./LineBlock-yNMN4PnM.mjs"), "../components/templates/LineSingle.vue": () => import("./LineSingle-D8mP9JxV.mjs"), "../components/templates/Literal.vue": () => import("./Literal-B3RMToDf.mjs"), "../components/templates/LiteralBlock.vue": () => import("./LiteralBlock-DSNLfJRQ.mjs"), "../components/templates/Math.vue": () => import("./Math-Cq4PVbWU.mjs"), "../components/templates/MathBlock.vue": () => import("./MathBlock-BQlgpnCi.mjs"), "../components/templates/Note.vue": () => import("./Note-DTXT2vL1.mjs"), "../components/templates/NumberReference.vue": () => import("./NumberReference-eWL-p05o.mjs"), "../components/templates/Problematic.vue": () => import("./Problematic-DdYGUPom.mjs"), "../components/templates/Raw.vue": () => import("./Raw-DuZmU9hd.mjs"), "../components/templates/Reference.vue": () => import("./Reference-NuJMaVmj.mjs"), "../components/templates/Section.vue": () => import("./Section-CsKQgVcF.mjs"), "../components/templates/Skip.vue": () => import("./Skip-CRGkjuMM.mjs"), "../components/templates/StandardElement.vue": () => import("./StandardElement-Cf1EpLze.mjs"), "../components/templates/Text.vue": () => import("./Text-CT8nEMkp.mjs"), "../components/templates/Title.vue": () => import("./Title-DoIeD6eK.mjs"), "../components/templates/TodoNode.vue": () => import("./TodoNode-C6L-iGX4.mjs"), "../components/templates/Topic.vue": () => import("./Topic-BrgzQGpm.mjs"), "../components/templates/Transition.vue": () => import("./Transition-CWMp4Zlv.mjs"), "../components/templates/Warning.vue": () => import("./Warning-dcxt8LRd.mjs") }), `../components/templates/${o}.vue`, 4),
138
+ // A component to use while the async component is loading
139
+ loadingComponent: g,
140
+ // A component to use if the load fails
141
+ errorComponent: f
142
+ }),
143
+ name: o,
144
+ node: e,
145
+ properties: {
146
+ colspecs: t
147
+ }
148
+ };
149
+ }
150
+ function D(e) {
151
+ let t = e.charAt(0).toUpperCase() + e.slice(1);
152
+ return c.has(e) ? t = c.get(e) : B.has(e) && (t = "StandardElement"), t;
153
+ }
154
+ function F(e, t, o) {
155
+ if (t === null)
156
+ return e;
157
+ let n = [];
158
+ for (const p of t.querySelectorAll("colspec"))
159
+ n.push(p.getAttribute("colwidth"));
160
+ return n.length !== o && console.log("***** Something is not right. *****", n.length, o), e.push(x(t, n)), e;
161
+ }
162
+ function a(e, t) {
163
+ if (t === null)
164
+ return e;
165
+ let o = null;
166
+ for (const n of t.childNodes) {
167
+ const p = n.nodeName;
168
+ if (p === "compact_paragraph")
169
+ e = a(e, n);
170
+ else if (p === "tgroup") {
171
+ const m = Number(n.getAttribute("cols"));
172
+ e = F(e, n, m), e = a(e, n);
173
+ } else if (p !== "colspec") if (p === "target")
174
+ o = n.getAttribute("refid");
175
+ else {
176
+ p !== "#text" && o && (n.setAttribute("id", o), o = "");
177
+ const m = D(p), r = R(m, n);
178
+ r && e.push(r);
179
+ }
180
+ }
181
+ return e;
182
+ }
183
+ function A(e) {
184
+ return {
185
+ children: u(() => a([], e.value))
186
+ };
187
+ }
188
+ function O(e) {
189
+ return {
190
+ classes: u(() => {
191
+ let o = e.value.getAttribute("classes"), n = [];
192
+ return o && (n = o.split(" ")), [e.value.nodeName.toLowerCase(), ...n];
193
+ })
194
+ };
195
+ }
196
+ const E = ["id"], P = {
197
+ __name: "Document",
198
+ props: {
199
+ element: {
200
+ type: void 0,
201
+ default: { empty: !0 }
202
+ },
203
+ id: {
204
+ type: String,
205
+ default: ""
206
+ }
207
+ },
208
+ setup(e) {
209
+ const t = e, { element: o } = b(t), { children: n } = A(o);
210
+ return (p, m) => (i(), l("div", { id: e.id }, [
211
+ (i(!0), l(C, null, k(y(n), (r, h) => (i(), S(T(r.component), {
212
+ key: "document_component_" + h,
213
+ node: r.node,
214
+ componentName: r.name,
215
+ properties: r.properties
216
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
217
+ ], 8, E));
218
+ }
219
+ }, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
220
+ __proto__: null,
221
+ default: P
222
+ }, Symbol.toStringTag, { value: "Module" }));
223
+ export {
224
+ _ as D,
225
+ w as _,
226
+ A as a,
227
+ B as n,
228
+ O as u
229
+ };
230
+ //# sourceMappingURL=Document-PZAyvjWh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Document-PZAyvjWh.mjs","sources":["../src/components/Error.vue","../src/components/Loading.vue","../src/js/nodemap.js","../src/composables/computed.js","../src/components/templates/Document.vue"],"sourcesContent":["<template>\n <div>\n <h3>Missing: '{{ componentName }}' from Sphinx XML output</h3>\n <span>It seems the component was not found.</span>\n </div>\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n","<template>\n <div class=\"loading-container\">\n <span>Loading page component</span>\n <span class=\"lds-roller\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n </span>\n </div>\n</template>\n\n<script setup>\nconst props = defineProps({\n node: {\n type: undefined,\n },\n componentName: {\n type: String,\n },\n})\n</script>\n\n<style scoped>\n.loading-container {\n display: flex;\n align-items: center;\n}\n\n.lds-roller {\n transform: scale(0.5);\n display: inline-block;\n position: relative;\n width: 80px;\n height: 80px;\n}\n.lds-roller div {\n animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;\n transform-origin: 40px 40px;\n}\n.lds-roller div:after {\n content: ' ';\n display: block;\n position: absolute;\n width: 7px;\n height: 7px;\n border-radius: 50%;\n background: rgb(116, 116, 116);\n margin: -4px 0 0 -4px;\n}\n.lds-roller div:nth-child(1) {\n animation-delay: -0.036s;\n}\n.lds-roller div:nth-child(1):after {\n top: 63px;\n left: 63px;\n}\n.lds-roller div:nth-child(2) {\n animation-delay: -0.072s;\n}\n.lds-roller div:nth-child(2):after {\n top: 68px;\n left: 56px;\n}\n.lds-roller div:nth-child(3) {\n animation-delay: -0.108s;\n}\n.lds-roller div:nth-child(3):after {\n top: 71px;\n left: 48px;\n}\n.lds-roller div:nth-child(4) {\n animation-delay: -0.144s;\n}\n.lds-roller div:nth-child(4):after {\n top: 72px;\n left: 40px;\n}\n.lds-roller div:nth-child(5) {\n animation-delay: -0.18s;\n}\n.lds-roller div:nth-child(5):after {\n top: 71px;\n left: 32px;\n}\n.lds-roller div:nth-child(6) {\n animation-delay: -0.216s;\n}\n.lds-roller div:nth-child(6):after {\n top: 68px;\n left: 24px;\n}\n.lds-roller div:nth-child(7) {\n animation-delay: -0.252s;\n}\n.lds-roller div:nth-child(7):after {\n top: 63px;\n left: 17px;\n}\n.lds-roller div:nth-child(8) {\n animation-delay: -0.288s;\n}\n.lds-roller div:nth-child(8):after {\n top: 56px;\n left: 12px;\n}\n@keyframes lds-roller {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n</style>\n","export const nodeNameTagNameMap = new Map([\n ['bullet_list', 'ul'],\n ['button', 'button'],\n ['citation', 'cite'],\n ['definition', 'dd'],\n ['definition_list', 'dl'],\n ['definition_list_item', 'dt'],\n ['div', 'div'],\n ['emphasis', 'em'],\n ['enumerated_list', 'ol'],\n ['glossary', 'div'],\n ['inline', 'span'],\n ['label', 'span'],\n ['list_item', 'li'],\n ['line', 'p'],\n ['paragraph', 'p'],\n ['rubric', 'h3'],\n ['strong', 'strong'],\n ['subscript', 'sub'],\n ['superscript', 'sup'],\n ['table', 'table'],\n ['tbody', 'tbody'],\n ['entry', 'td'],\n ['row', 'tr'],\n ['thead', 'thead'],\n ['term', 'dt'],\n ['title_reference', 'cite'],\n])\n\nexport const nodeNameTemplateNameMap = new Map([\n ['#text', 'Text'],\n ['block_quote', 'BlockQuote'],\n ['caption', 'FigureCaption'],\n ['caption_number', 'CaptionNumber'],\n ['download_reference', 'DownloadReference'],\n ['footnote_reference', 'FootnoteReference'],\n ['index', 'Skip'],\n ['line_block', 'LineBlock'],\n ['literal_block', 'LiteralBlock'],\n ['math_block', 'MathBlock'],\n ['number_reference', 'NumberReference'],\n])\n","import { computed, defineAsyncComponent } from 'vue'\n\nimport ErrorComponent from '../components/Error.vue'\nimport LoadingComponent from '../components/Loading.vue'\nimport { nodeNameTagNameMap, nodeNameTemplateNameMap } from '../js/nodemap'\n\nfunction defineChildComponent(name, node) {\n let properties = undefined\n if (node.nodeName === '#text') {\n if (!node.nodeValue.trim()) {\n return null\n }\n properties = {\n text: node.nodeValue,\n }\n } else if (node.nodeName === 'warning') {\n let parentNode = node.parentNode\n let depth = 0\n while (parentNode) {\n if (parentNode.nodeName === 'section') {\n depth += 1\n }\n parentNode = parentNode.parentNode\n }\n properties = {\n depth\n }\n } else if (node.nodeName === 'title') {\n let parentNode = node.parentNode\n let depth = 0\n let isTopic = false\n if (parentNode.nodeName === 'topic') {\n isTopic = true\n } else {\n while (parentNode) {\n // && parentNode.nodeName !== ('SphinxPage' should now be 'document' but maybe this is no longer requied).\n if (parentNode.nodeName === 'section') {\n depth += 1\n }\n parentNode = parentNode.parentNode\n }\n }\n properties = {\n depth,\n isTopic,\n }\n }\n const component = defineAsyncComponent({\n loader: () => {\n return import(`../components/templates/${name}.vue`)\n },\n // A component to use while the async component is loading\n loadingComponent: LoadingComponent,\n // A component to use if the load fails\n errorComponent: ErrorComponent,\n })\n\n return {\n component,\n name,\n node,\n properties,\n }\n}\n\nfunction defineColgroupComponent(node, colspecs) {\n const name = 'ColumnGroup'\n const component = defineAsyncComponent({\n loader: () => {\n return import(`../components/templates/${name}.vue`)\n },\n // A component to use while the async component is loading\n loadingComponent: LoadingComponent,\n // A component to use if the load fails\n errorComponent: ErrorComponent,\n })\n \n const properties = {\n colspecs\n }\n\n return {\n component,\n name,\n node,\n properties,\n }\n}\n\nfunction mapToComponentName(name) {\n let componentName =\n name.charAt(0).toUpperCase() + name.slice(1)\n if (nodeNameTemplateNameMap.has(name)) {\n componentName = nodeNameTemplateNameMap.get(name)\n } else if (nodeNameTagNameMap.has(name)) {\n componentName = 'StandardElement'\n }\nreturn componentName\n}\n\nfunction addTGroup(components, node, columns) {\n if (node === null) {\n return components\n }\n\n let colspecs = []\n for (const colspec of node.querySelectorAll('colspec')) {\n colspecs.push(colspec.getAttribute('colwidth'))\n }\n\n if (colspecs.length !== columns) {\n console.log('***** Something is not right. *****', colspecs.length, columns)\n }\n components.push(defineColgroupComponent(node, colspecs))\n\n return components\n}\n\nfunction addComponents(components, node) {\n if (node === null) {\n return components\n }\n\n let childTarget = null\n for (const child of node.childNodes) {\n const childName = child.nodeName\n if (childName === 'compact_paragraph') {\n // Skip over this wrapper and directly add its children to this component.\n components = addComponents(components, child)\n } else if (childName === 'tgroup') {\n // Skip over these wrappers and directly add their children to this component.\n const columnCount = Number(child.getAttribute('cols'))\n components = addTGroup(components, child, columnCount)\n components = addComponents(components, child)\n } else if (childName === 'colspec') {\n // Ignore this element completely, this element is dealt with by 'tgroup'.\n } else {\n if (childName === 'target') {\n childTarget = child.getAttribute('refid')\n } else {\n if (childName !== '#text' && childTarget) {\n child.setAttribute('id', childTarget)\n childTarget = ''\n }\n const componentName = mapToComponentName(childName)\n const item = defineChildComponent(componentName, child)\n if (item) {\n components.push(item)\n }\n }\n }\n }\n\n return components\n}\n\nexport function useChildren(element) {\n const children = computed(() => {\n return addComponents([], element.value)\n })\n\n return {\n children,\n }\n}\n\nexport function useClasses(element) {\n const classes = computed(() => {\n let classesString = element.value.getAttribute('classes')\n let classes = []\n if (classesString) {\n classes = classesString.split(' ')\n }\n return [element.value.nodeName.toLowerCase(), ...classes]\n })\n\n return {\n classes\n }\n}\n","<template>\n <div :id=\"id\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'document_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { defineProps, toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n element: {\n type: undefined,\n default: { empty: true },\n },\n id: {\n type: String,\n default: '',\n },\n})\n\nconst { element } = toRefs(props)\nconst { children } = useChildren(element)\n\n</script>\n"],"names":["_createElementBlock","_createElementVNode","_toDisplayString","__props","_cache","_openBlock","_hoisted_1","nodeNameTagNameMap","nodeNameTemplateNameMap","defineChildComponent","name","node","properties","parentNode","depth","isTopic","defineAsyncComponent","__variableDynamicImportRuntimeHelper","Document","LoadingComponent","ErrorComponent","defineColgroupComponent","colspecs","mapToComponentName","componentName","addTGroup","components","columns","colspec","addComponents","childTarget","child","childName","columnCount","item","useChildren","element","computed","useClasses","classesString","classes","props","toRefs","children","_Fragment","_renderList","_unref","c","index","_createBlock","_resolveDynamicComponent"],"mappings":";;;;;;;;;;;;;;;;;2BACEA,EAGM,OAAA,MAAA;AAAA,MAFJC,EAA8D,MAAA,MAA1D,eAAUC,EAAGC,EAAA,aAAa,IAAG,4BAAwB,CAAA;AAAA,MACzDC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAH,EAAkD,cAA5C,yCAAqC,EAAA;AAAA;;;;;;;;;;;;;;;;;;sBCF7CI,EAAA,GAAAL,EAYM,OAZNM,GAYM,CAAA,GAAAF,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,MAXJH,EAAmC,cAA7B,0BAAsB,EAAA;AAAA,MAC5BA,EASO,QAAA,EATD,OAAM,aAAY,GAAA;AAAA,QACtBA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA,QACXA,EAAW,KAAA;AAAA;;;iECXJM,IAAqB,oBAAI,IAAI;AAAA,EACxC,CAAC,eAAe,IAAI;AAAA,EACpB,CAAC,UAAU,QAAQ;AAAA,EACnB,CAAC,YAAY,MAAM;AAAA,EACnB,CAAC,cAAc,IAAI;AAAA,EACnB,CAAC,mBAAmB,IAAI;AAAA,EACxB,CA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