vue3-sphinx-xml 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/Admonition-mKTxm7FA.mjs +36 -0
  2. package/dist/Admonition-mKTxm7FA.mjs.map +1 -0
  3. package/dist/BlockQuote-CHndoK9X.mjs +34 -0
  4. package/dist/BlockQuote-CHndoK9X.mjs.map +1 -0
  5. package/dist/CaptionNumber-sPHsgDmY.mjs +36 -0
  6. package/dist/CaptionNumber-sPHsgDmY.mjs.map +1 -0
  7. package/dist/ColumnGroup-3gX9uzXr.mjs +37 -0
  8. package/dist/ColumnGroup-3gX9uzXr.mjs.map +1 -0
  9. package/dist/Comment-BazBmRUy.mjs +31 -0
  10. package/dist/Comment-BazBmRUy.mjs.map +1 -0
  11. package/dist/Compound-CuyWvjJc.mjs +30 -0
  12. package/dist/Compound-CuyWvjJc.mjs.map +1 -0
  13. package/dist/Container-BI_-sUj5.mjs +50 -0
  14. package/dist/Container-BI_-sUj5.mjs.map +1 -0
  15. package/dist/DirectElementMap-BxB8uEd3.mjs +21 -0
  16. package/dist/DirectElementMap-BxB8uEd3.mjs.map +1 -0
  17. package/dist/DownloadReference-Coj1rk-Q.mjs +36 -0
  18. package/dist/DownloadReference-Coj1rk-Q.mjs.map +1 -0
  19. package/dist/Figure-cm9jrp4J.mjs +38 -0
  20. package/dist/Figure-cm9jrp4J.mjs.map +1 -0
  21. package/dist/FigureCaption-CEewNKB3.mjs +41 -0
  22. package/dist/FigureCaption-CEewNKB3.mjs.map +1 -0
  23. package/dist/Footnote-CsDVGKIf.mjs +33 -0
  24. package/dist/Footnote-CsDVGKIf.mjs.map +1 -0
  25. package/dist/FootnoteReference-mjr_CUNC.mjs +39 -0
  26. package/dist/FootnoteReference-mjr_CUNC.mjs.map +1 -0
  27. package/dist/Image-DS2T9dhX.mjs +36 -0
  28. package/dist/Image-DS2T9dhX.mjs.map +1 -0
  29. package/dist/Legend-Buf610bh.mjs +35 -0
  30. package/dist/Legend-Buf610bh.mjs.map +1 -0
  31. package/dist/LineBlock-CC9E637d.mjs +33 -0
  32. package/dist/LineBlock-CC9E637d.mjs.map +1 -0
  33. package/dist/LineSingle-Dlzi5iIV.mjs +34 -0
  34. package/dist/LineSingle-Dlzi5iIV.mjs.map +1 -0
  35. package/dist/Literal-DYTpCjPv.mjs +42 -0
  36. package/dist/Literal-DYTpCjPv.mjs.map +1 -0
  37. package/dist/LiteralBlock-DKVDMrJf.mjs +37 -0
  38. package/dist/LiteralBlock-DKVDMrJf.mjs.map +1 -0
  39. package/dist/Math-DMrgdPIM.mjs +28 -0
  40. package/dist/Math-DMrgdPIM.mjs.map +1 -0
  41. package/dist/MathBlock-DdqKjCSS.mjs +59 -0
  42. package/dist/MathBlock-DdqKjCSS.mjs.map +1 -0
  43. package/dist/Note-BlaELec8.mjs +34 -0
  44. package/dist/Note-BlaELec8.mjs.map +1 -0
  45. package/dist/NumberReference-bjITftY4.mjs +48 -0
  46. package/dist/NumberReference-bjITftY4.mjs.map +1 -0
  47. package/dist/Problematic-CVEE4P8F.mjs +36 -0
  48. package/dist/Problematic-CVEE4P8F.mjs.map +1 -0
  49. package/dist/Raw-DuZmU9hd.mjs +10 -0
  50. package/dist/Raw-DuZmU9hd.mjs.map +1 -0
  51. package/dist/Reference-Orh-jOnR.mjs +53 -0
  52. package/dist/Reference-Orh-jOnR.mjs.map +1 -0
  53. package/dist/Section-CdTfeVfc.mjs +37 -0
  54. package/dist/Section-CdTfeVfc.mjs.map +1 -0
  55. package/dist/Skip-CRGkjuMM.mjs +19 -0
  56. package/dist/Skip-CRGkjuMM.mjs.map +1 -0
  57. package/dist/StandardElement-CBBrXX4Q.mjs +57 -0
  58. package/dist/StandardElement-CBBrXX4Q.mjs.map +1 -0
  59. package/dist/Text-CT8nEMkp.mjs +24 -0
  60. package/dist/Text-CT8nEMkp.mjs.map +1 -0
  61. package/dist/Title-3Cns5zt2.mjs +44 -0
  62. package/dist/Title-3Cns5zt2.mjs.map +1 -0
  63. package/dist/TodoNode-BR2gUVop.mjs +38 -0
  64. package/dist/TodoNode-BR2gUVop.mjs.map +1 -0
  65. package/dist/Topic-CGDYI81Y.mjs +36 -0
  66. package/dist/Topic-CGDYI81Y.mjs.map +1 -0
  67. package/dist/Transition-CWMp4Zlv.mjs +15 -0
  68. package/dist/Transition-CWMp4Zlv.mjs.map +1 -0
  69. package/dist/Warning-Cl6MS7S9.mjs +42 -0
  70. package/dist/Warning-Cl6MS7S9.mjs.map +1 -0
  71. package/dist/basereference-CBz3BfwU.mjs +42 -0
  72. package/dist/basereference-CBz3BfwU.mjs.map +1 -0
  73. package/dist/{entry.js → entry-BmRN0Y-U.mjs} +7954 -6997
  74. package/dist/entry-BmRN0Y-U.mjs.map +1 -0
  75. package/dist/methods-DeDVNJrB.mjs +69 -0
  76. package/dist/methods-DeDVNJrB.mjs.map +1 -0
  77. package/dist/style.css +1 -1
  78. package/dist/vue3-sphinx-xml.mjs +8 -0
  79. package/dist/vue3-sphinx-xml.mjs.map +1 -0
  80. package/package.json +16 -18
  81. package/dist/Admonition.js +0 -72
  82. package/dist/Admonition.js.map +0 -1
  83. package/dist/BlockQuote.js +0 -42
  84. package/dist/BlockQuote.js.map +0 -1
  85. package/dist/CaptionNumber.js +0 -70
  86. package/dist/CaptionNumber.js.map +0 -1
  87. package/dist/ColumnGroup.js +0 -44
  88. package/dist/ColumnGroup.js.map +0 -1
  89. package/dist/Comment.js +0 -34
  90. package/dist/Comment.js.map +0 -1
  91. package/dist/Compound.js +0 -38
  92. package/dist/Compound.js.map +0 -1
  93. package/dist/Container.js +0 -79
  94. package/dist/Container.js.map +0 -1
  95. package/dist/DirectElementMap.js +0 -22
  96. package/dist/DirectElementMap.js.map +0 -1
  97. package/dist/DownloadReference.js +0 -47
  98. package/dist/DownloadReference.js.map +0 -1
  99. package/dist/Figure.js +0 -54
  100. package/dist/Figure.js.map +0 -1
  101. package/dist/FigureCaption.js +0 -76
  102. package/dist/FigureCaption.js.map +0 -1
  103. package/dist/Footnote.js +0 -44
  104. package/dist/Footnote.js.map +0 -1
  105. package/dist/FootnoteReference.js +0 -48
  106. package/dist/FootnoteReference.js.map +0 -1
  107. package/dist/Image.js +0 -52
  108. package/dist/Image.js.map +0 -1
  109. package/dist/Legend.js +0 -44
  110. package/dist/Legend.js.map +0 -1
  111. package/dist/LineBlock.js +0 -44
  112. package/dist/LineBlock.js.map +0 -1
  113. package/dist/LineSingle.js +0 -45
  114. package/dist/LineSingle.js.map +0 -1
  115. package/dist/Literal.js +0 -63
  116. package/dist/Literal.js.map +0 -1
  117. package/dist/LiteralBlock.js +0 -49
  118. package/dist/LiteralBlock.js.map +0 -1
  119. package/dist/Math.js +0 -25
  120. package/dist/Math.js.map +0 -1
  121. package/dist/MathBlock.js +0 -77
  122. package/dist/MathBlock.js.map +0 -1
  123. package/dist/Note.js +0 -47
  124. package/dist/Note.js.map +0 -1
  125. package/dist/NumberReference.js +0 -59
  126. package/dist/NumberReference.js.map +0 -1
  127. package/dist/Problematic.js +0 -44
  128. package/dist/Problematic.js.map +0 -1
  129. package/dist/Raw.js +0 -10
  130. package/dist/Raw.js.map +0 -1
  131. package/dist/Reference.js +0 -58
  132. package/dist/Reference.js.map +0 -1
  133. package/dist/Section.js +0 -52
  134. package/dist/Section.js.map +0 -1
  135. package/dist/Skip.js +0 -18
  136. package/dist/Skip.js.map +0 -1
  137. package/dist/StandardElement.js +0 -99
  138. package/dist/StandardElement.js.map +0 -1
  139. package/dist/Text.js +0 -23
  140. package/dist/Text.js.map +0 -1
  141. package/dist/Title.js +0 -65
  142. package/dist/Title.js.map +0 -1
  143. package/dist/TodoNode.js +0 -53
  144. package/dist/TodoNode.js.map +0 -1
  145. package/dist/Topic.js +0 -48
  146. package/dist/Topic.js.map +0 -1
  147. package/dist/Transition.js +0 -9
  148. package/dist/Transition.js.map +0 -1
  149. package/dist/Warning.js +0 -55
  150. package/dist/Warning.js.map +0 -1
  151. package/dist/basereference.js +0 -54
  152. package/dist/basereference.js.map +0 -1
  153. package/dist/entry.js.map +0 -1
  154. package/dist/methods.js +0 -148
  155. package/dist/methods.js.map +0 -1
  156. package/dist/vue3-sphinx-xml.es.js +0 -8
  157. package/dist/vue3-sphinx-xml.es.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Legend-Buf610bh.mjs","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"],"names":["props","__props","node","toRefs","children","useChildren","classes","useClasses"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,YAAQ,IAAI,oBAAoB;AAChC,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,SAAAI,EAAO,IAAKC,EAAWL,CAAI;;;;;;;;;;;;;"}
@@ -0,0 +1,33 @@
1
+ import { toRefs as m, ref as i, openBlock as o, createElementBlock as r, normalizeProps as u, guardReactiveProps as d, Fragment as f, renderList as _, unref as k, createBlock as v, resolveDynamicComponent as y } from "vue";
2
+ import { a as h } from "./entry-BmRN0Y-U.mjs";
3
+ import { u as B } from "./methods-DeDVNJrB.mjs";
4
+ const C = {
5
+ __name: "LineBlock",
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 s = p, { dataObject: a } = B(), { node: t } = m(s), n = i({}), { children: c } = h(t);
20
+ return n.value = a(t.value, ["line_block"]).attrs, (b, g) => (o(), r("div", u(d(n.value)), [
21
+ (o(!0), r(f, null, _(k(c), (e, l) => (o(), v(y(e.component), {
22
+ key: "section_component_" + l,
23
+ node: e.node,
24
+ componentName: e.name,
25
+ properties: e.properties
26
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
27
+ ], 16));
28
+ }
29
+ };
30
+ export {
31
+ C as default
32
+ };
33
+ //# sourceMappingURL=LineBlock-CC9E637d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineBlock-CC9E637d.mjs","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"],"names":["props","__props","dataObject","useMethods","node","toRefs","attrs","ref","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,YAAAC,EAAY,IAAGC,EAAU,GAC3B,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAI,CAAE,CAAA,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI;AACrC,WAAAE,EAAM,QAAQJ,EAAWE,EAAK,OAAO,CAAC,YAAY,CAAC,EAAE;;;;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ import { toRefs as m, ref as i, openBlock as o, createElementBlock as r, normalizeProps as u, guardReactiveProps as d, Fragment as f, renderList as _, unref as g, createBlock as v, resolveDynamicComponent as y } from "vue";
2
+ import { u as h } from "./methods-DeDVNJrB.mjs";
3
+ import { a as k } from "./entry-BmRN0Y-U.mjs";
4
+ const x = {
5
+ __name: "LineSingle",
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
+ console.log("***** IN USE *****");
20
+ const s = p, { node: n } = m(s), { children: a } = k(n), { dataObject: l } = h(), t = i({});
21
+ return t.value = l(n.value, ["line_single"]).attrs, (N, B) => (o(), r("div", u(d(t.value)), [
22
+ (o(!0), r(f, null, _(g(a), (e, c) => (o(), v(y(e.component), {
23
+ key: "footnote_component_" + c,
24
+ node: e.node,
25
+ componentName: e.name,
26
+ properties: e.properties
27
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
28
+ ], 16));
29
+ }
30
+ };
31
+ export {
32
+ x as default
33
+ };
34
+ //# sourceMappingURL=LineSingle-Dlzi5iIV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineSingle-Dlzi5iIV.mjs","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"],"names":["props","__props","node","toRefs","children","useChildren","dataObject","useMethods","attrs","ref"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,YAAQ,IAAI,oBAAoB;AAEhC,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAI,CAAE,CAAA;AAEpB,WAAAD,EAAM,QAAQF,EAAWJ,EAAK,OAAO,CAAC,aAAa,CAAC,EAAE;;;;;;;;;;"}
@@ -0,0 +1,42 @@
1
+ import { toRefs as d, ref as f, openBlock as o, createElementBlock as c, normalizeClass as _, createElementVNode as y, Fragment as h, renderList as v, unref as g, createBlock as k, resolveDynamicComponent as E } from "vue";
2
+ import { u as N } from "./methods-DeDVNJrB.mjs";
3
+ import { a as B } from "./entry-BmRN0Y-U.mjs";
4
+ const C = { class: "pre" }, O = {
5
+ __name: "Literal",
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(l) {
19
+ const p = l, { node: r } = d(p), { dataObject: i } = N(), { children: m } = B(r), s = f(["literal", "notranslate"]), e = i(r.value);
20
+ return ((n) => {
21
+ for (const a in n)
22
+ if (n[a].language !== "")
23
+ return !1;
24
+ return !0;
25
+ })(e) || e.attrs && e.attrs.role && s.value.push(e.attrs.role), (n, a) => (o(), c("code", {
26
+ class: _(s.value)
27
+ }, [
28
+ y("span", C, [
29
+ (o(!0), c(h, null, v(g(m), (t, u) => (o(), k(E(t.component), {
30
+ key: "code_component_" + u,
31
+ node: t.node,
32
+ componentName: t.name,
33
+ properties: t.properties
34
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
35
+ ])
36
+ ], 2));
37
+ }
38
+ };
39
+ export {
40
+ O as default
41
+ };
42
+ //# sourceMappingURL=Literal-DYTpCjPv.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Literal-DYTpCjPv.mjs","sources":["../src/components/templates/Literal.vue"],"sourcesContent":["<template>\n <code :class=\"classes\">\n <span class=\"pre\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'code_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n </code>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { dataObject } = useMethods()\n\nconst { children } = useChildren(node)\n\nconst classes = ref(['literal', 'notranslate'])\n\nconst v = dataObject(node.value)\nconst isEmpty = (d) => {\n for (const i in d) {\n if (d[i].language === '') {\n continue\n }\n return false\n }\n\n return true\n}\n\nif (!isEmpty(v)) {\n if (v.attrs && v.attrs.role) {\n classes.value.push(v.attrs.role)\n }\n}\n</script>\n"],"names":["props","__props","node","toRefs","dataObject","useMethods","children","useChildren","classes","ref","v","d","i"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAE3B,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI,GAE/BM,IAAUC,EAAI,CAAC,WAAW,aAAa,CAAC,GAExCC,IAAIN,EAAWF,EAAK,KAAK;AAY/B,YAXgB,CAACS,MAAM;AACrB,iBAAWC,KAAKD;AACd,YAAIA,EAAEC,CAAC,EAAE,aAAa;AAGtB,iBAAO;AAGT,aAAO;AAAA,IACT,GAEaF,CAAC,KACRA,EAAE,SAASA,EAAE,MAAM,QACrBF,EAAQ,MAAM,KAAKE,EAAE,MAAM,IAAI;;;;;;;;;;;;;;"}
@@ -0,0 +1,37 @@
1
+ import { toRefs as s, computed as o, resolveDirective as i, withDirectives as u, openBlock as p, createElementBlock as d, createElementVNode as g, normalizeClass as m, toDisplayString as f } from "vue";
2
+ import { c as h } from "./entry-BmRN0Y-U.mjs";
3
+ const y = {
4
+ __name: "LiteralBlock",
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(n) {
18
+ const r = n, { node: t } = s(r), l = o(() => {
19
+ let e = t.value.getAttribute("language");
20
+ return e === "console" || e === "default" ? e = "bash" : e === "text" && (e = "plaintext"), e;
21
+ }), a = o(() => h(t.value.innerHTML));
22
+ return (e, v) => {
23
+ const c = i("highlightjs");
24
+ return u((p(), d("pre", null, [
25
+ g("code", {
26
+ class: m(l.value)
27
+ }, f(a.value), 3)
28
+ ])), [
29
+ [c]
30
+ ]);
31
+ };
32
+ }
33
+ };
34
+ export {
35
+ y as default
36
+ };
37
+ //# sourceMappingURL=LiteralBlock-DKVDMrJf.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiteralBlock-DKVDMrJf.mjs","sources":["../src/components/templates/LiteralBlock.vue"],"sourcesContent":["<template>\n <pre v-highlightjs><code :class=\"sourceLanguage\">{{ sourceCode }}</code></pre>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { decodeHTML } from '../../js/utilities'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst sourceLanguage = computed(() => {\n let language = node.value.getAttribute('language')\n if (language === 'console' || language === 'default') {\n language = 'bash'\n } else if (language === 'text') {\n language = 'plaintext'\n }\n return language\n})\n\nconst sourceCode = computed(() => {\n return decodeHTML(node.value.innerHTML)\n})\n</script>\n"],"names":["props","__props","node","toRefs","sourceLanguage","computed","language","sourceCode","decodeHTML"],"mappings":";;;;;;;;;;;;;;;;;AASA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvBI,IAAiBC,EAAS,MAAM;AACpC,UAAIC,IAAWJ,EAAK,MAAM,aAAa,UAAU;AACjD,aAAII,MAAa,aAAaA,MAAa,YACzCA,IAAW,SACFA,MAAa,WACtBA,IAAW,cAENA;AAAA,IACT,CAAC,GAEKC,IAAaF,EAAS,MACnBG,EAAWN,EAAK,MAAM,SAAS,CACvC;;;;;;;;;;;;;"}
@@ -0,0 +1,28 @@
1
+ import { resolveComponent as n, openBlock as o, createBlock as p } from "vue";
2
+ const a = {
3
+ __name: "Math",
4
+ props: {
5
+ node: {
6
+ type: void 0,
7
+ default: null
8
+ },
9
+ componentName: {
10
+ type: String
11
+ },
12
+ properties: {
13
+ type: Object
14
+ }
15
+ },
16
+ setup(e) {
17
+ return (r, c) => {
18
+ const t = n("katex-element");
19
+ return o(), p(t, {
20
+ expression: e.node.textContent
21
+ }, null, 8, ["expression"]);
22
+ };
23
+ }
24
+ };
25
+ export {
26
+ a as default
27
+ };
28
+ //# sourceMappingURL=Math-DMrgdPIM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Math-DMrgdPIM.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,59 @@
1
+ import { toRefs as _, computed as v, resolveComponent as x, openBlock as a, createElementBlock as i, Fragment as b, renderList as h, createVNode as k } from "vue";
2
+ const y = { class: "katex-block" }, E = {
3
+ __name: "MathBlock",
4
+ props: {
5
+ node: {
6
+ type: void 0,
7
+ default: null
8
+ },
9
+ componentName: {
10
+ type: String
11
+ },
12
+ properties: {
13
+ type: Object
14
+ }
15
+ },
16
+ setup(s) {
17
+ const l = ["\\begin{equation}", "\\end{equation}"], c = /* @__PURE__ */ new Map([
18
+ ["\\begin{align}", "\\begin{aligned}"],
19
+ ["\\begin{eqnarray}", "\\begin{aligned}"],
20
+ ["\\end{align}", "\\end{aligned}"],
21
+ ["\\end{eqnarray}", "\\end{aligned}"]
22
+ ]), d = s, { node: p } = _(d), u = v(() => {
23
+ let n = [];
24
+ const r = p.value.innerHTML.split(/\r?\n\r?\n/);
25
+ for (const t of r)
26
+ if (t) {
27
+ let e = t.replaceAll("&amp;", "&");
28
+ for (const o of l)
29
+ e = e.replaceAll(o, "");
30
+ for (let [o, g] of c)
31
+ e = e.replaceAll(o, g);
32
+ m(e) && !f(e) && (e = `\\begin{array}{cc}${e}\\end{array}`), n.push(e);
33
+ }
34
+ return n;
35
+ });
36
+ function m(n) {
37
+ const r = n.search("&"), t = n.search("\\\\");
38
+ return r !== -1 && t !== -1;
39
+ }
40
+ function f(n) {
41
+ const r = n.search("begin{aligned}"), t = n.search("end{aligned}");
42
+ return r !== -1 && t !== -1;
43
+ }
44
+ return (n, r) => {
45
+ const t = x("katex-element");
46
+ return a(), i("div", y, [
47
+ (a(!0), i(b, null, h(u.value, (e, o) => (a(), i("div", {
48
+ key: "math_" + o
49
+ }, [
50
+ k(t, { expression: e }, null, 8, ["expression"])
51
+ ]))), 128))
52
+ ]);
53
+ };
54
+ }
55
+ };
56
+ export {
57
+ E as default
58
+ };
59
+ //# sourceMappingURL=MathBlock-DdqKjCSS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MathBlock-DdqKjCSS.mjs","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"],"names":["removeList","renameMap","props","__props","node","toRefs","formulas","computed","multiEquations","equation","stripped","item","key","value","requiresSplitEnvironment","hasEnvironment","formula","ampersandIndex","newLineIndex","beginEnvironmentIndex","endEnvironmentIndex"],"mappings":";;;;;;;;;;;;;;;;AAWA,UAAMA,IAAa,CAAC,qBAAqB,iBAAiB,GAEpDC,IAAY,oBAAI,IAAI;AAAA,MACxB,CAAC,kBAAkB,kBAAkB;AAAA,MACrC,CAAC,qBAAqB,kBAAkB;AAAA,MACxC,CAAC,gBAAgB,gBAAgB;AAAA,MACjC,CAAC,mBAAmB,gBAAgB;AAAA,IACtC,CAAC,GAEKC,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvBI,IAAWC,EAAS,MAAM;AAC9B,UAAID,IAAW,CAAA;AACf,YAAME,IAAiBJ,EAAK,MAAM,UAAU,MAAM,YAAY;AAC9D,iBAAWK,KAAYD;AACrB,YAAIC,GAAU;AACZ,cAAIC,IAAWD,EAAS,WAAW,SAAS,GAAG;AAC/C,qBAAWE,KAAQX;AACjB,YAAAU,IAAWA,EAAS,WAAWC,GAAM,EAAE;AAEzC,mBAAS,CAACC,GAAKC,CAAK,KAAKZ;AACvB,YAAAS,IAAWA,EAAS,WAAWE,GAAKC,CAAK;AAE3C,UAAIC,EAAyBJ,CAAQ,KAAK,CAACK,EAAeL,CAAQ,MAEhEA,IAAW,qBAAqBA,CAAQ,iBAE1CJ,EAAS,KAAKI,CAAQ;AAAA,QAC5B;AAEE,aAAOJ;AAAA,IACT,CAAC;AAED,aAASQ,EAAyBE,GAAS;AACzC,YAAMC,IAAiBD,EAAQ,OAAO,GAAG,GACnCE,IAAeF,EAAQ,OAAO,MAAM;AAC1C,aAAIC,MAAmB,MAAMC,MAAiB;AAAA,IAIhD;AAEA,aAASH,EAAeC,GAAS;AAG/B,YAAMG,IAAwBH,EAAQ,OAAO,gBAAgB,GACvDI,IAAsBJ,EAAQ,OAAO,cAAc;AACzD,aAAIG,MAA0B,MAAMC,MAAwB;AAAA,IAI9D;;;;;;;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ import { toRefs as c, ref as d, openBlock as t, createElementBlock as p, normalizeProps as u, guardReactiveProps as f, createElementVNode as v, Fragment as N, renderList as _, unref as y, createBlock as k, resolveDynamicComponent as g } from "vue";
2
+ import { u as B } from "./methods-DeDVNJrB.mjs";
3
+ import { a as b } from "./entry-BmRN0Y-U.mjs";
4
+ const E = {
5
+ __name: "Note",
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 s = a, { node: o } = c(s), { dataObject: m } = B(), n = d({}), { children: i } = b(o);
20
+ return n.value = m(o.value, ["admonition", "note"]).attrs, (h, r) => (t(), p("div", u(f(n.value)), [
21
+ r[0] || (r[0] = v("p", { class: "admonition-title" }, "Note", -1)),
22
+ (t(!0), p(N, null, _(y(i), (e, l) => (t(), k(g(e.component), {
23
+ key: "note_component_" + l,
24
+ node: e.node,
25
+ componentName: e.name,
26
+ properties: e.properties
27
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
28
+ ], 16));
29
+ }
30
+ };
31
+ export {
32
+ E as default
33
+ };
34
+ //# sourceMappingURL=Note-BlaELec8.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Note-BlaELec8.mjs","sources":["../src/components/templates/Note.vue"],"sourcesContent":["<template>\n <div :=\"attrs\">\n <p class=\"admonition-title\">Note</p>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'note_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\n\nattrs.value = dataObject(node.value, ['admonition', 'note']).attrs\n</script>\n"],"names":["props","__props","node","toRefs","dataObject","useMethods","attrs","ref","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAI,CAAE,CAAA,GAEd,EAAE,UAAAC,EAAQ,IAAKC,EAAYP,CAAI;AAErC,WAAAI,EAAM,QAAQF,EAAWF,EAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE;;;;;;;;;;;"}
@@ -0,0 +1,48 @@
1
+ import { ref as d, toRefs as _, onMounted as h, computed as v, resolveComponent as k, unref as o, openBlock as a, createBlock as g, withCtx as b, createTextVNode as R, toDisplayString as c, createElementBlock as y } from "vue";
2
+ import { useRoute as C } from "vue-router";
3
+ import { u as x } from "./methods-DeDVNJrB.mjs";
4
+ import { u as A } from "./basereference-CBz3BfwU.mjs";
5
+ const B = ["href"], L = {
6
+ __name: "NumberReference",
7
+ props: {
8
+ node: {
9
+ type: void 0,
10
+ default: null
11
+ },
12
+ componentName: {
13
+ type: String
14
+ }
15
+ },
16
+ setup(s) {
17
+ const l = s, n = d({ path: "", hash: "" }), { node: e } = _(l), i = C(), { isInternalReference: f } = x(), { onReferenceCreated: p } = A(e.value, i, n);
18
+ h(p);
19
+ const u = v(() => {
20
+ if (e.value.childElementCount)
21
+ return e.value.children[0].innerHTML;
22
+ let t = e.value.getAttribute("refid");
23
+ t || (t = e.value.getAttribute("refuri"));
24
+ const r = t.replace("-", " ");
25
+ return "Fig. " + r.charAt(0).toUpperCase() + r.slice(1);
26
+ });
27
+ return (t, r) => {
28
+ const m = k("router-link");
29
+ return o(f)(o(e)) ? (a(), g(m, {
30
+ key: 0,
31
+ to: n.value
32
+ }, {
33
+ default: b(() => [
34
+ R(c(u.value), 1)
35
+ ]),
36
+ _: 1
37
+ }, 8, ["to"])) : (a(), y("a", {
38
+ key: 1,
39
+ href: o(e).getAttribute("refuri"),
40
+ target: "_blank"
41
+ }, c(u.value), 9, B));
42
+ };
43
+ }
44
+ };
45
+ export {
46
+ L as default
47
+ };
48
+ //# sourceMappingURL=NumberReference-bjITftY4.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberReference-bjITftY4.mjs","sources":["../src/components/templates/NumberReference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ title }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n {{ title }}\n </a>\n</template>\n\n<script setup>\nimport { computed, onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\nconst title = computed(() => {\n if (node.value.childElementCount) {\n // A number reference has a single child element that\n // contains the label for the referenced element.\n // This is what we are assuming: <inline classes=\"std std-numref\">Fig. 3</inline>\n return node.value.children[0].innerHTML\n }\n\n let refLabel = node.value.getAttribute('refid')\n if (!refLabel) {\n refLabel = node.value.getAttribute('refuri')\n }\n const t = refLabel.replace('-', ' ')\n return 'Fig. ' + t.charAt(0).toUpperCase() + t.slice(1)\n})\n</script>\n"],"names":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","title","computed","refLabel","t"],"mappings":";;;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAURC,IAAmBC,EAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC,GAC3C,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAQ,GAEhB,EAAE,qBAAAC,EAAqB,IAAGC,EAAU,GACpC,EAAE,oBAAAC,EAAoB,IAAGC,EAAiBP,EAAK,OAAOE,GAAOJ,CAAgB;AAEnF,IAAAU,EAAUF,CAAkB;AAE5B,UAAMG,IAAQC,EAAS,MAAM;AAC3B,UAAIV,EAAK,MAAM;AAIb,eAAOA,EAAK,MAAM,SAAS,CAAC,EAAE;AAGhC,UAAIW,IAAWX,EAAK,MAAM,aAAa,OAAO;AAC9C,MAAKW,MACHA,IAAWX,EAAK,MAAM,aAAa,QAAQ;AAE7C,YAAMY,IAAID,EAAS,QAAQ,KAAK,GAAG;AACnC,aAAO,UAAUC,EAAE,OAAO,CAAC,EAAE,YAAa,IAAGA,EAAE,MAAM,CAAC;AAAA,IACxD,CAAC;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { toRefs as i, ref as p, resolveComponent as l, openBlock as u, createBlock as d, withCtx as m, createElementVNode as _, unref as e, toDisplayString as f } from "vue";
2
+ import { u as h } from "./methods-DeDVNJrB.mjs";
3
+ const x = ["id"], g = {
4
+ __name: "Problematic",
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 n = o, { node: t } = i(n), r = p({ hash: "#" + t.value.getAttribute("refid") }), { extractId: s } = h(), { id: c } = s(t.value);
19
+ return (b, k) => {
20
+ const a = l("router-link");
21
+ return u(), d(a, { to: r.value }, {
22
+ default: m(() => [
23
+ _("span", {
24
+ class: "problematic",
25
+ id: e(c)
26
+ }, f(e(t).textContent), 9, x)
27
+ ]),
28
+ _: 1
29
+ }, 8, ["to"]);
30
+ };
31
+ }
32
+ };
33
+ export {
34
+ g as default
35
+ };
36
+ //# sourceMappingURL=Problematic-CVEE4P8F.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Problematic-CVEE4P8F.mjs","sources":["../src/components/templates/Problematic.vue"],"sourcesContent":["<template>\n <router-link :to=\"routeDescription\">\n <span class=\"problematic\" :id=\"id\">{{\n node.textContent\n }}</span></router-link\n >\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\nconst routeDescription = ref({hash: '#' + node.value.getAttribute('refid')})\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["props","__props","node","toRefs","routeDescription","ref","extractId","useMethods","id"],"mappings":";;;;;;;;;;;;;;;;;AAaA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvBI,IAAmBC,EAAI,EAAC,MAAM,MAAMH,EAAK,MAAM,aAAa,OAAO,EAAC,CAAC,GAErE,EAAE,WAAAI,EAAW,IAAGC,EAAU,GAC1B,EAAE,IAAAC,EAAI,IAAGF,EAAUJ,EAAK,KAAK;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ const l = {
2
+ __name: "Raw",
3
+ setup(n) {
4
+ return console.log("**** Intentionally ignoring this element."), (e, t) => null;
5
+ }
6
+ };
7
+ export {
8
+ l as default
9
+ };
10
+ //# sourceMappingURL=Raw-DuZmU9hd.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Raw-DuZmU9hd.mjs","sources":["../src/components/templates/Raw.vue"],"sourcesContent":["<template></template>\n\n<script setup>\nconsole.log('**** Intentionally ignoring this element.')\n</script>\n"],"names":[],"mappings":";;;AAGA,mBAAQ,IAAI,2CAA2C;;;"}
@@ -0,0 +1,53 @@
1
+ import { ref as _, toRefs as h, onMounted as k, resolveComponent as y, unref as t, openBlock as n, createBlock as s, withCtx as C, createTextVNode as R, toDisplayString as g, createElementBlock as a, Fragment as x, renderList as v, resolveDynamicComponent as B } from "vue";
2
+ import { useRoute as N } from "vue-router";
3
+ import { a as b } from "./entry-BmRN0Y-U.mjs";
4
+ import { u as D } from "./methods-DeDVNJrB.mjs";
5
+ import { u as M } from "./basereference-CBz3BfwU.mjs";
6
+ const S = ["href"], V = {
7
+ __name: "Reference",
8
+ props: {
9
+ node: {
10
+ type: void 0,
11
+ default: null
12
+ },
13
+ componentName: {
14
+ type: String
15
+ }
16
+ },
17
+ setup(p) {
18
+ const u = p, r = _({ path: "", hash: "" }), { node: e } = h(u), c = N(), { isInternalReference: i } = D(), { onReferenceCreated: m } = M(
19
+ e.value,
20
+ c,
21
+ r
22
+ );
23
+ k(m);
24
+ const { children: l } = b(e);
25
+ return (w, A) => {
26
+ const f = y("router-link");
27
+ return t(i)(t(e)) ? (n(), s(f, {
28
+ key: 0,
29
+ to: r.value
30
+ }, {
31
+ default: C(() => [
32
+ R(g(t(e).textContent), 1)
33
+ ]),
34
+ _: 1
35
+ }, 8, ["to"])) : (n(), a("a", {
36
+ key: 1,
37
+ href: t(e).getAttribute("refuri"),
38
+ target: "_blank"
39
+ }, [
40
+ (n(!0), a(x, null, v(t(l), (o, d) => (n(), s(B(o.component), {
41
+ key: "sub_link_" + d,
42
+ node: o.node,
43
+ componentName: o.name,
44
+ properties: o.properties
45
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
46
+ ], 8, S));
47
+ };
48
+ }
49
+ };
50
+ export {
51
+ V as default
52
+ };
53
+ //# sourceMappingURL=Reference-Orh-jOnR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reference-Orh-jOnR.mjs","sources":["../src/components/templates/Reference.vue"],"sourcesContent":["<template>\n <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n {{ node.textContent }}\n </router-link>\n <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'sub_link_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({ path: '', hash: '' })\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(\n node.value,\n route,\n routeDescription,\n)\n\nonMounted(onReferenceCreated)\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","routeDescription","ref","node","toRefs","route","useRoute","isInternalReference","useMethods","onReferenceCreated","useBaseReference","onMounted","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;AAwBA,UAAMA,IAAQC,GAURC,IAAmBC,EAAI,EAAE,MAAM,IAAI,MAAM,GAAI,CAAA,GAC7C,EAAE,MAAAC,EAAI,IAAKC,EAAOL,CAAK,GACvBM,IAAQC,EAAQ,GAEhB,EAAE,qBAAAC,EAAqB,IAAGC,EAAU,GACpC,EAAE,oBAAAC,EAAoB,IAAGC;AAAA,MAC7BP,EAAK;AAAA,MACLE;AAAA,MACAJ;AAAA,IACF;AAEA,IAAAU,EAAUF,CAAkB;AAC5B,UAAM,EAAE,UAAAG,EAAQ,IAAKC,EAAYV,CAAI;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,37 @@
1
+ import { toRefs as f, openBlock as n, createElementBlock as t, unref as s, Fragment as c, renderList as a, createBlock as h, resolveDynamicComponent as y } from "vue";
2
+ import { u as k } from "./methods-DeDVNJrB.mjs";
3
+ import { a as x } from "./entry-BmRN0Y-U.mjs";
4
+ const v = ["id"], B = ["id"], b = {
5
+ __name: "Section",
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(i) {
19
+ const d = i, { node: o } = f(d), { extractId: l, separateIds: m } = k(), { id: p } = l(o.value), { extraIds: u } = m(o.value, p), { children: _ } = x(o);
20
+ return (I, N) => (n(), t("section", { id: s(p) }, [
21
+ (n(!0), t(c, null, a(s(u), (e, r) => (n(), t("span", {
22
+ key: "id_span_" + r,
23
+ id: e
24
+ }, null, 8, B))), 128)),
25
+ (n(!0), t(c, null, a(s(_), (e, r) => (n(), h(y(e.component), {
26
+ key: "section_component_" + r,
27
+ node: e.node,
28
+ componentName: e.name,
29
+ properties: e.properties
30
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
31
+ ], 8, v));
32
+ }
33
+ };
34
+ export {
35
+ b as default
36
+ };
37
+ //# sourceMappingURL=Section-CdTfeVfc.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section-CdTfeVfc.mjs","sources":["../src/components/templates/Section.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","extractId","separateIds","useMethods","id","extraIds","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,WAAAI,GAAW,aAAAC,EAAW,IAAKC,EAAU,GACvC,EAAE,IAAAC,EAAI,IAAGH,EAAUF,EAAK,KAAK,GAC7B,EAAE,UAAAM,EAAQ,IAAKH,EAAYH,EAAK,OAAOK,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYR,CAAI;;;;;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ const p = {
2
+ __name: "Skip",
3
+ props: {
4
+ node: {
5
+ type: void 0,
6
+ default: null
7
+ },
8
+ componentName: {
9
+ type: String
10
+ }
11
+ },
12
+ setup(e) {
13
+ return (n, t) => null;
14
+ }
15
+ };
16
+ export {
17
+ p as default
18
+ };
19
+ //# sourceMappingURL=Skip-CRGkjuMM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skip-CRGkjuMM.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -0,0 +1,57 @@
1
+ import { toRefs as A, ref as l, openBlock as c, createBlock as d, resolveDynamicComponent as m, unref as p, mergeProps as E, toHandlerKey as k, withCtx as N, createElementBlock as B, Fragment as x, renderList as C } from "vue";
2
+ import { a as j, n as D } from "./entry-BmRN0Y-U.mjs";
3
+ import { u as I } from "./methods-DeDVNJrB.mjs";
4
+ const S = {
5
+ __name: "StandardElement",
6
+ props: {
7
+ node: {
8
+ type: void 0,
9
+ default: null
10
+ },
11
+ componentName: {
12
+ type: String
13
+ }
14
+ },
15
+ setup(f) {
16
+ const v = f, { node: n } = A(v), { children: b } = j(n), { dataObject: g } = I(), o = l({}), u = l(!1), a = l(null), h = D.get(n.value.nodeName), r = g(n.value, n.value.getAttribute("classes")), _ = r.class ? r.class.join(" ") : void 0;
17
+ o.value = {
18
+ ...r.attrs,
19
+ class: _
20
+ }, o.value.prefix === "" && delete o.value.prefix, n.value.nodeName === "button" && (u.value = !0);
21
+ function y() {
22
+ if (a.value.getAttribute("aria-selected") === "false") {
23
+ const i = a.value.parentElement;
24
+ let s = [];
25
+ for (const e of i.children) {
26
+ const t = document.getElementById(e.id);
27
+ t.setAttribute(
28
+ "aria-selected",
29
+ t.getAttribute("aria-selected") === "true" ? "false" : "true"
30
+ ), s.push({ id: e.getAttribute("aria-controls") });
31
+ }
32
+ for (const e of s) {
33
+ const t = document.getElementById(e.id);
34
+ t.hasAttribute("hidden") ? t.removeAttribute("hidden") : t.setAttribute("hidden", "");
35
+ }
36
+ }
37
+ }
38
+ return (i, s) => (c(), d(m(p(h)), E(o.value, { [k(u.value && "click")]: y }, {
39
+ ref_key: "componentElement",
40
+ ref: a
41
+ }), {
42
+ default: N(() => [
43
+ (c(!0), B(x, null, C(p(b), (e, t) => (c(), d(m(e.component), {
44
+ key: "standard_element_component_" + t,
45
+ node: e.node,
46
+ componentName: e.name,
47
+ properties: e.properties
48
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
49
+ ]),
50
+ _: 1
51
+ }, 16));
52
+ }
53
+ };
54
+ export {
55
+ S as default
56
+ };
57
+ //# sourceMappingURL=StandardElement-CBBrXX4Q.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardElement-CBBrXX4Q.mjs","sources":["../src/components/templates/StandardElement.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n :=\"attrs\"\n @[isButton&&`click`]=\"buttonClicked\"\n ref=\"componentElement\"\n >\n <component\n v-for=\"(c, index) in children\"\n :key=\"'standard_element_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n\n<script setup>\nimport { defineProps, toRefs, ref } from 'vue'\n\nimport { nodeNameTagNameMap } from '../../js/nodemap'\nimport { useChildren } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst { node } = toRefs(props)\nconst { children } = useChildren(node)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\nconst isButton = ref(false)\nconst componentElement = ref(null)\n\nconst transferAttributes = new Set(['div', 'button'])\nconst tag = nodeNameTagNameMap.get(node.value.nodeName)\n\nconst tmpDataObject = dataObject(node.value, node.value.getAttribute('classes'))\nconst classList = tmpDataObject.class\n ? tmpDataObject.class.join(' ')\n : undefined\nattrs.value = {\n ...tmpDataObject.attrs,\n class: classList,\n}\n\n// An empty prefix attribute causes problems for <ol> elements.\nif (attrs.value.prefix === '') {\n delete attrs.value.prefix\n}\n\nif (node.value.nodeName === 'button') {\n isButton.value = true\n}\n\nfunction buttonClicked() {\n if (componentElement.value.getAttribute('aria-selected') === 'false') {\n const parentElement = componentElement.value.parentElement\n let panels = []\n for (const child of parentElement.children) {\n const el = document.getElementById(child.id)\n el.setAttribute(\n 'aria-selected',\n el.getAttribute('aria-selected') === 'true' ? 'false' : 'true',\n )\n panels.push({ id: child.getAttribute('aria-controls') })\n }\n for (const panel of panels) {\n const el = document.getElementById(panel.id)\n if (el.hasAttribute('hidden')) {\n el.removeAttribute('hidden')\n } else {\n el.setAttribute('hidden', '')\n }\n }\n }\n}\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","dataObject","useMethods","attrs","ref","isButton","componentElement","tag","nodeNameTagNameMap","tmpDataObject","classList","buttonClicked","parentElement","panels","child","el","panel"],"mappings":";;;;;;;;;;;;;;;AAyBA,UAAMA,IAAQC,GAUR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GACvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,YAAAI,EAAY,IAAGC,EAAU,GAC3BC,IAAQC,EAAI,CAAE,CAAA,GACdC,IAAWD,EAAI,EAAK,GACpBE,IAAmBF,EAAI,IAAI,GAG3BG,IAAMC,EAAmB,IAAIX,EAAK,MAAM,QAAQ,GAEhDY,IAAgBR,EAAWJ,EAAK,OAAOA,EAAK,MAAM,aAAa,SAAS,CAAC,GACzEa,IAAYD,EAAc,QAC5BA,EAAc,MAAM,KAAK,GAAG,IAC5B;AACJ,IAAAN,EAAM,QAAQ;AAAA,MACZ,GAAGM,EAAc;AAAA,MACjB,OAAOC;AAAA,IACT,GAGIP,EAAM,MAAM,WAAW,MACzB,OAAOA,EAAM,MAAM,QAGjBN,EAAK,MAAM,aAAa,aAC1BQ,EAAS,QAAQ;AAGnB,aAASM,IAAgB;AACvB,UAAIL,EAAiB,MAAM,aAAa,eAAe,MAAM,SAAS;AACpE,cAAMM,IAAgBN,EAAiB,MAAM;AAC7C,YAAIO,IAAS,CAAA;AACb,mBAAWC,KAASF,EAAc,UAAU;AAC1C,gBAAMG,IAAK,SAAS,eAAeD,EAAM,EAAE;AAC3C,UAAAC,EAAG;AAAA,YACD;AAAA,YACAA,EAAG,aAAa,eAAe,MAAM,SAAS,UAAU;AAAA,UAChE,GACMF,EAAO,KAAK,EAAE,IAAIC,EAAM,aAAa,eAAe,EAAG,CAAA;AAAA,QAC7D;AACI,mBAAWE,KAASH,GAAQ;AAC1B,gBAAME,IAAK,SAAS,eAAeC,EAAM,EAAE;AAC3C,UAAID,EAAG,aAAa,QAAQ,IAC1BA,EAAG,gBAAgB,QAAQ,IAE3BA,EAAG,aAAa,UAAU,EAAE;AAAA,QAEpC;AAAA,MACA;AAAA,IACA;;;;;;;;;;;;;;;;;"}