vue3-sphinx-xml 0.4.1 → 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 (104) hide show
  1. package/dist/Admonition-mKTxm7FA.mjs +36 -0
  2. package/dist/{Admonition-4dbe3f53.mjs.map → Admonition-mKTxm7FA.mjs.map} +1 -1
  3. package/dist/BlockQuote-CHndoK9X.mjs +34 -0
  4. package/dist/{BlockQuote-0b464fcb.mjs.map → BlockQuote-CHndoK9X.mjs.map} +1 -1
  5. package/dist/CaptionNumber-sPHsgDmY.mjs +36 -0
  6. package/dist/{CaptionNumber-02430764.mjs.map → CaptionNumber-sPHsgDmY.mjs.map} +1 -1
  7. package/dist/{ColumnGroup-baa1b99b.mjs → ColumnGroup-3gX9uzXr.mjs} +1 -1
  8. package/dist/{ColumnGroup-baa1b99b.mjs.map → ColumnGroup-3gX9uzXr.mjs.map} +1 -1
  9. package/dist/{Comment-f2157760.mjs → Comment-BazBmRUy.mjs} +1 -1
  10. package/dist/{Comment-f2157760.mjs.map → Comment-BazBmRUy.mjs.map} +1 -1
  11. package/dist/Compound-CuyWvjJc.mjs +30 -0
  12. package/dist/{Compound-ae2a8a98.mjs.map → Compound-CuyWvjJc.mjs.map} +1 -1
  13. package/dist/Container-BI_-sUj5.mjs +50 -0
  14. package/dist/{Container-19a7431d.mjs.map → Container-BI_-sUj5.mjs.map} +1 -1
  15. package/dist/{DirectElementMap-4c6f8e80.mjs → DirectElementMap-BxB8uEd3.mjs} +1 -1
  16. package/dist/DirectElementMap-BxB8uEd3.mjs.map +1 -0
  17. package/dist/DownloadReference-Coj1rk-Q.mjs +36 -0
  18. package/dist/{DownloadReference-1df41bf0.mjs.map → DownloadReference-Coj1rk-Q.mjs.map} +1 -1
  19. package/dist/Figure-cm9jrp4J.mjs +38 -0
  20. package/dist/{Figure-12e7efef.mjs.map → Figure-cm9jrp4J.mjs.map} +1 -1
  21. package/dist/{FigureCaption-7b351f25.mjs → FigureCaption-CEewNKB3.mjs} +12 -17
  22. package/dist/{FigureCaption-7b351f25.mjs.map → FigureCaption-CEewNKB3.mjs.map} +1 -1
  23. package/dist/Footnote-CsDVGKIf.mjs +33 -0
  24. package/dist/{Footnote-e4b02243.mjs.map → Footnote-CsDVGKIf.mjs.map} +1 -1
  25. package/dist/{FootnoteReference-b5b67601.mjs → FootnoteReference-mjr_CUNC.mjs} +10 -15
  26. package/dist/{FootnoteReference-b5b67601.mjs.map → FootnoteReference-mjr_CUNC.mjs.map} +1 -1
  27. package/dist/Image-DS2T9dhX.mjs +36 -0
  28. package/dist/{Image-15e1e5bd.mjs.map → Image-DS2T9dhX.mjs.map} +1 -1
  29. package/dist/Legend-Buf610bh.mjs +35 -0
  30. package/dist/{Legend-878a7ec8.mjs.map → Legend-Buf610bh.mjs.map} +1 -1
  31. package/dist/{LineBlock-8eec127a.mjs → LineBlock-CC9E637d.mjs} +9 -14
  32. package/dist/{LineBlock-8eec127a.mjs.map → LineBlock-CC9E637d.mjs.map} +1 -1
  33. package/dist/LineSingle-Dlzi5iIV.mjs +34 -0
  34. package/dist/{LineSingle-6a9fabdf.mjs.map → LineSingle-Dlzi5iIV.mjs.map} +1 -1
  35. package/dist/{Literal-edb2ce6f.mjs → Literal-DYTpCjPv.mjs} +13 -18
  36. package/dist/{Literal-edb2ce6f.mjs.map → Literal-DYTpCjPv.mjs.map} +1 -1
  37. package/dist/LiteralBlock-DKVDMrJf.mjs +37 -0
  38. package/dist/{LiteralBlock-a2af758b.mjs.map → LiteralBlock-DKVDMrJf.mjs.map} +1 -1
  39. package/dist/{Math-7ccdef36.mjs → Math-DMrgdPIM.mjs} +1 -1
  40. package/dist/Math-DMrgdPIM.mjs.map +1 -0
  41. package/dist/{MathBlock-f8b3d549.mjs → MathBlock-DdqKjCSS.mjs} +5 -5
  42. package/dist/{MathBlock-f8b3d549.mjs.map → MathBlock-DdqKjCSS.mjs.map} +1 -1
  43. package/dist/Note-BlaELec8.mjs +34 -0
  44. package/dist/{Note-4413dcab.mjs.map → Note-BlaELec8.mjs.map} +1 -1
  45. package/dist/{NumberReference-2143cb23.mjs → NumberReference-bjITftY4.mjs} +13 -18
  46. package/dist/{NumberReference-2143cb23.mjs.map → NumberReference-bjITftY4.mjs.map} +1 -1
  47. package/dist/Problematic-CVEE4P8F.mjs +36 -0
  48. package/dist/{Problematic-3d793374.mjs.map → Problematic-CVEE4P8F.mjs.map} +1 -1
  49. package/dist/{Raw-dcdd7f96.mjs → Raw-DuZmU9hd.mjs} +1 -1
  50. package/dist/{Raw-dcdd7f96.mjs.map → Raw-DuZmU9hd.mjs.map} +1 -1
  51. package/dist/{Reference-80a8b234.mjs → Reference-Orh-jOnR.mjs} +14 -18
  52. package/dist/{Reference-80a8b234.mjs.map → Reference-Orh-jOnR.mjs.map} +1 -1
  53. package/dist/Section-CdTfeVfc.mjs +37 -0
  54. package/dist/{Section-9ba27ca3.mjs.map → Section-CdTfeVfc.mjs.map} +1 -1
  55. package/dist/{Skip-4a46064f.mjs → Skip-CRGkjuMM.mjs} +1 -1
  56. package/dist/Skip-CRGkjuMM.mjs.map +1 -0
  57. package/dist/{StandardElement-64bcb6c4.mjs → StandardElement-CBBrXX4Q.mjs} +15 -20
  58. package/dist/{StandardElement-64bcb6c4.mjs.map → StandardElement-CBBrXX4Q.mjs.map} +1 -1
  59. package/dist/{Text-0d6b5332.mjs → Text-CT8nEMkp.mjs} +1 -1
  60. package/dist/Text-CT8nEMkp.mjs.map +1 -0
  61. package/dist/Title-3Cns5zt2.mjs +44 -0
  62. package/dist/{Title-4ea6531d.mjs.map → Title-3Cns5zt2.mjs.map} +1 -1
  63. package/dist/TodoNode-BR2gUVop.mjs +38 -0
  64. package/dist/{TodoNode-9696576f.mjs.map → TodoNode-BR2gUVop.mjs.map} +1 -1
  65. package/dist/Topic-CGDYI81Y.mjs +36 -0
  66. package/dist/{Topic-5c1f63eb.mjs.map → Topic-CGDYI81Y.mjs.map} +1 -1
  67. package/dist/{Transition-3485737d.mjs → Transition-CWMp4Zlv.mjs} +1 -1
  68. package/dist/{Transition-3485737d.mjs.map → Transition-CWMp4Zlv.mjs.map} +1 -1
  69. package/dist/Warning-Cl6MS7S9.mjs +42 -0
  70. package/dist/{Warning-5cbf4ef9.mjs.map → Warning-Cl6MS7S9.mjs.map} +1 -1
  71. package/dist/{basereference-dc2b6871.mjs → basereference-CBz3BfwU.mjs} +3 -3
  72. package/dist/{basereference-dc2b6871.mjs.map → basereference-CBz3BfwU.mjs.map} +1 -1
  73. package/dist/{entry-185f60c1.mjs → entry-BmRN0Y-U.mjs} +2153 -2150
  74. package/dist/entry-BmRN0Y-U.mjs.map +1 -0
  75. package/dist/{methods-f5038371.mjs → methods-DeDVNJrB.mjs} +2 -2
  76. package/dist/{methods-f5038371.mjs.map → methods-DeDVNJrB.mjs.map} +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/vue3-sphinx-xml.mjs +3 -7
  79. package/dist/vue3-sphinx-xml.mjs.map +1 -1
  80. package/package.json +15 -16
  81. package/dist/Admonition-4dbe3f53.mjs +0 -41
  82. package/dist/BlockQuote-0b464fcb.mjs +0 -39
  83. package/dist/CaptionNumber-02430764.mjs +0 -41
  84. package/dist/Compound-ae2a8a98.mjs +0 -35
  85. package/dist/Container-19a7431d.mjs +0 -55
  86. package/dist/DirectElementMap-4c6f8e80.mjs.map +0 -1
  87. package/dist/DownloadReference-1df41bf0.mjs +0 -40
  88. package/dist/Figure-12e7efef.mjs +0 -43
  89. package/dist/Footnote-e4b02243.mjs +0 -38
  90. package/dist/Image-15e1e5bd.mjs +0 -40
  91. package/dist/Legend-878a7ec8.mjs +0 -41
  92. package/dist/LineSingle-6a9fabdf.mjs +0 -40
  93. package/dist/LiteralBlock-a2af758b.mjs +0 -42
  94. package/dist/Math-7ccdef36.mjs.map +0 -1
  95. package/dist/Note-4413dcab.mjs +0 -39
  96. package/dist/Problematic-3d793374.mjs +0 -42
  97. package/dist/Section-9ba27ca3.mjs +0 -42
  98. package/dist/Skip-4a46064f.mjs.map +0 -1
  99. package/dist/Text-0d6b5332.mjs.map +0 -1
  100. package/dist/Title-4ea6531d.mjs +0 -49
  101. package/dist/TodoNode-9696576f.mjs +0 -44
  102. package/dist/Topic-5c1f63eb.mjs +0 -41
  103. package/dist/Warning-5cbf4ef9.mjs +0 -47
  104. package/dist/entry-185f60c1.mjs.map +0 -1
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"Section-9ba27ca3.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":["node","toRefs","props","extractId","separateIds","useMethods","id","extraIds","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,WAAAC,GAAW,aAAAC,EAAa,IAAGC,EAAY,GACzC,EAAE,IAAAC,EAAI,IAAGH,EAAUH,EAAK,KAAK,GAC7B,EAAE,UAAAO,EAAQ,IAAKH,EAAYJ,EAAK,OAAOM,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYT,CAAI;;;;;;;;;;;;;;;"}
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;;;;;;;;;;;;;;;"}
@@ -16,4 +16,4 @@ const p = {
16
16
  export {
17
17
  p as default
18
18
  };
19
- //# sourceMappingURL=Skip-4a46064f.mjs.map
19
+ //# sourceMappingURL=Skip-CRGkjuMM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skip-CRGkjuMM.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1,12 +1,7 @@
1
- import { toRefs as A, ref as l, openBlock as i, 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-185f60c1.mjs";
3
- import { u as I } from "./methods-f5038371.mjs";
4
- import "@hsorby/vue3-katex";
5
- import "katex/dist/katex.min.css";
6
- import "vue-router";
7
- import "axios";
8
- import "path-to-regexp";
9
- const P = {
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 = {
10
5
  __name: "StandardElement",
11
6
  props: {
12
7
  node: {
@@ -18,16 +13,16 @@ const P = {
18
13
  }
19
14
  },
20
15
  setup(f) {
21
- const v = f, { node: n } = A(v), { children: b } = j(n), { dataObject: g } = I(), o = l({}), c = l(!1), r = l(null), h = D.get(n.value.nodeName), a = g(n.value, n.value.getAttribute("classes")), _ = a.class ? a.class.join(" ") : void 0;
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;
22
17
  o.value = {
23
- ...a.attrs,
18
+ ...r.attrs,
24
19
  class: _
25
- }, o.value.prefix === "" && delete o.value.prefix, n.value.nodeName === "button" && (c.value = !0);
20
+ }, o.value.prefix === "" && delete o.value.prefix, n.value.nodeName === "button" && (u.value = !0);
26
21
  function y() {
27
- if (r.value.getAttribute("aria-selected") === "false") {
28
- const u = r.value.parentElement;
22
+ if (a.value.getAttribute("aria-selected") === "false") {
23
+ const i = a.value.parentElement;
29
24
  let s = [];
30
- for (const e of u.children) {
25
+ for (const e of i.children) {
31
26
  const t = document.getElementById(e.id);
32
27
  t.setAttribute(
33
28
  "aria-selected",
@@ -40,12 +35,12 @@ const P = {
40
35
  }
41
36
  }
42
37
  }
43
- return (u, s) => (i(), d(m(p(h)), E(o.value, { [k(c.value && "click")]: y }, {
38
+ return (i, s) => (c(), d(m(p(h)), E(o.value, { [k(u.value && "click")]: y }, {
44
39
  ref_key: "componentElement",
45
- ref: r
40
+ ref: a
46
41
  }), {
47
42
  default: N(() => [
48
- (i(!0), B(x, null, C(p(b), (e, t) => (i(), d(m(e.component), {
43
+ (c(!0), B(x, null, C(p(b), (e, t) => (c(), d(m(e.component), {
49
44
  key: "standard_element_component_" + t,
50
45
  node: e.node,
51
46
  componentName: e.name,
@@ -57,6 +52,6 @@ const P = {
57
52
  }
58
53
  };
59
54
  export {
60
- P as default
55
+ S as default
61
56
  };
62
- //# sourceMappingURL=StandardElement-64bcb6c4.mjs.map
57
+ //# sourceMappingURL=StandardElement-CBBrXX4Q.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"StandardElement-64bcb6c4.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":["node","toRefs","props","children","useChildren","dataObject","useMethods","attrs","ref","isButton","componentElement","tag","nodeNameTagNameMap","tmpDataObject","classList","buttonClicked","parentElement","panels","child","el","panel"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAmCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GACvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,YAAAK,EAAY,IAAGC,EAAY,GAC7BC,IAAQC,EAAI,EAAE,GACdC,IAAWD,EAAI,EAAK,GACpBE,IAAmBF,EAAI,IAAI,GAG3BG,IAAMC,EAAmB,IAAIZ,EAAK,MAAM,QAAQ,GAEhDa,IAAgBR,EAAWL,EAAK,OAAOA,EAAK,MAAM,aAAa,SAAS,CAAC,GACzEc,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,QAGjBP,EAAK,MAAM,aAAa,aAC1BS,EAAS,QAAQ;AAGnB,aAASM,IAAgB;AACvB,UAAIL,EAAiB,MAAM,aAAa,eAAe,MAAM,SAAS;AACpE,cAAMM,IAAgBN,EAAiB,MAAM;AAC7C,YAAIO,IAAS,CAAE;AACf,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,UACzD,GACDF,EAAO,KAAK,EAAE,IAAIC,EAAM,aAAa,eAAe,GAAG;AAAA,QACxD;AACD,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,QAE/B;AAAA,MACF;AAAA,IACH;;;;;;;;;;;;;;;;;"}
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;;;;;;;;;;;;;;;;;"}
@@ -21,4 +21,4 @@ const o = {
21
21
  export {
22
22
  o as default
23
23
  };
24
- //# sourceMappingURL=Text-0d6b5332.mjs.map
24
+ //# sourceMappingURL=Text-CT8nEMkp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text-CT8nEMkp.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,44 @@
1
+ import { toRefs as _, computed as p, openBlock as n, createBlock as a, resolveDynamicComponent as l, normalizeClass as v, withCtx as y, createElementBlock as N, Fragment as g, renderList as k, unref as C } from "vue";
2
+ import { a as x } from "./entry-BmRN0Y-U.mjs";
3
+ const j = {
4
+ __name: "Title",
5
+ props: {
6
+ node: {
7
+ type: void 0,
8
+ default: null
9
+ },
10
+ componentName: {
11
+ type: String
12
+ },
13
+ properties: {
14
+ type: Object,
15
+ required: !0
16
+ }
17
+ },
18
+ setup(c) {
19
+ const i = c, { node: u, properties: o } = _(i), { children: m } = x(u), r = o.value.depth, s = o.value.isTopic, d = p(() => {
20
+ let e = "h" + r;
21
+ return s && (e = "p"), e;
22
+ }), f = p(() => {
23
+ let e = [];
24
+ return s && (e.push("topic-title"), r === 1 && e.push("first")), e;
25
+ });
26
+ return (e, B) => (n(), a(l(d.value), {
27
+ class: v(f.value)
28
+ }, {
29
+ default: y(() => [
30
+ (n(!0), N(g, null, k(C(m), (t, h) => (n(), a(l(t.component), {
31
+ key: "title_component_" + h,
32
+ node: t.node,
33
+ componentName: t.name,
34
+ properties: t.properties
35
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
36
+ ]),
37
+ _: 1
38
+ }, 8, ["class"]));
39
+ }
40
+ };
41
+ export {
42
+ j as default
43
+ };
44
+ //# sourceMappingURL=Title-3Cns5zt2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Title-4ea6531d.mjs","sources":["../src/components/templates/Title.vue"],"sourcesContent":["<template>\n <component :is=\"tagName\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'title_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n required: true,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { children } = useChildren(node)\n\nconst depth = properties.value.depth\nconst isTopic = properties.value.isTopic\n\nconst tagName = computed(() => {\n let tagName = 'h' + depth\n if (isTopic) {\n tagName = 'p'\n }\n return tagName\n})\n\nconst classes = computed(() => {\n let classes = []\n if (isTopic) {\n classes.push('topic-title')\n if (depth === 1) {\n classes.push('first')\n }\n }\n return classes\n})\n</script>\n"],"names":["node","properties","toRefs","props","children","useChildren","depth","isTopic","tagName","computed","classes"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA+BM,EAAE,MAAAA,GAAM,YAAAC,MAAeC,EAAOC,CAAK,GAEnC,EAAE,UAAAC,EAAQ,IAAKC,EAAYL,CAAI,GAE/BM,IAAQL,EAAW,MAAM,OACzBM,IAAUN,EAAW,MAAM,SAE3BO,IAAUC,EAAS,MAAM;AAC7B,UAAID,IAAU,MAAMF;AACpB,aAAIC,MACFC,IAAU,MAELA;AAAA,IACT,CAAC,GAEKE,IAAUD,EAAS,MAAM;AAC7B,UAAIC,IAAU,CAAE;AAChB,aAAIH,MACFG,EAAQ,KAAK,aAAa,GACtBJ,MAAU,KACZI,EAAQ,KAAK,OAAO,IAGjBA;AAAA,IACT,CAAC;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Title-3Cns5zt2.mjs","sources":["../src/components/templates/Title.vue"],"sourcesContent":["<template>\n <component :is=\"tagName\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'title_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </component>\n</template>\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n required: true,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { children } = useChildren(node)\n\nconst depth = properties.value.depth\nconst isTopic = properties.value.isTopic\n\nconst tagName = computed(() => {\n let tagName = 'h' + depth\n if (isTopic) {\n tagName = 'p'\n }\n return tagName\n})\n\nconst classes = computed(() => {\n let classes = []\n if (isTopic) {\n classes.push('topic-title')\n if (depth === 1) {\n classes.push('first')\n }\n }\n return classes\n})\n</script>\n"],"names":["props","__props","node","properties","toRefs","children","useChildren","depth","isTopic","tagName","computed","classes"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,UAAMA,IAAQC,GAcR,EAAE,MAAAC,GAAM,YAAAC,MAAeC,EAAOJ,CAAK,GAEnC,EAAE,UAAAK,EAAQ,IAAKC,EAAYJ,CAAI,GAE/BK,IAAQJ,EAAW,MAAM,OACzBK,IAAUL,EAAW,MAAM,SAE3BM,IAAUC,EAAS,MAAM;AAC7B,UAAID,IAAU,MAAMF;AACpB,aAAIC,MACFC,IAAU,MAELA;AAAA,IACT,CAAC,GAEKE,IAAUD,EAAS,MAAM;AAC7B,UAAIC,IAAU,CAAA;AACd,aAAIH,MACFG,EAAQ,KAAK,aAAa,GACtBJ,MAAU,KACZI,EAAQ,KAAK,OAAO,IAGjBA;AAAA,IACT,CAAC;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,38 @@
1
+ import { toRefs as f, openBlock as o, createElementBlock as n, unref as s, Fragment as d, renderList as c, createBlock as h, resolveDynamicComponent as y } from "vue";
2
+ import { u as k } from "./methods-DeDVNJrB.mjs";
3
+ import { a as N } from "./entry-BmRN0Y-U.mjs";
4
+ const x = ["id"], I = ["id"], S = {
5
+ __name: "TodoNode",
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
+ console.log("****** IN USE ******");
20
+ const i = a, { node: t } = f(i), { extractId: l, separateIds: m } = k(), { id: p } = l(t.value), { extraIds: u } = m(t.value, p), { children: _ } = N(t);
21
+ return (g, v) => (o(), n("section", { id: s(p) }, [
22
+ (o(!0), n(d, null, c(s(u), (e, r) => (o(), n("span", {
23
+ key: "id_span_" + r,
24
+ id: e
25
+ }, null, 8, I))), 128)),
26
+ (o(!0), n(d, null, c(s(_), (e, r) => (o(), h(y(e.component), {
27
+ key: "todo_component_" + r,
28
+ node: e.node,
29
+ componentName: e.name,
30
+ properties: e.properties
31
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
32
+ ], 8, x));
33
+ }
34
+ };
35
+ export {
36
+ S as default
37
+ };
38
+ //# sourceMappingURL=TodoNode-BR2gUVop.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"TodoNode-9696576f.mjs","sources":["../src/components/templates/TodoNode.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'todo_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nconsole.log(\"****** IN USE ******\")\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["node","toRefs","props","extractId","separateIds","useMethods","id","extraIds","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAmBlC,UAAM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,WAAAC,GAAW,aAAAC,EAAa,IAAGC,EAAY,GACzC,EAAE,IAAAC,EAAI,IAAGH,EAAUH,EAAK,KAAK,GAC7B,EAAE,UAAAO,EAAQ,IAAKH,EAAYJ,EAAK,OAAOM,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYT,CAAI;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"TodoNode-BR2gUVop.mjs","sources":["../src/components/templates/TodoNode.vue"],"sourcesContent":["<template>\n <section :id=\"id\">\n <span v-for=\"(s, index) in extraIds\" :key=\"'id_span_' + index\" :id=\"s\" />\n <component\n v-for=\"(c, index) in children\"\n :key=\"'todo_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </section>\n</template>\n\n<script setup>\nconsole.log(\"****** IN USE ******\")\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { extractId, separateIds } = useMethods()\nconst { id } = extractId(node.value)\nconst { extraIds } = separateIds(node.value, id)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":["props","__props","node","toRefs","extractId","separateIds","useMethods","id","extraIds","children","useChildren"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAMlC,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,WAAAI,GAAW,aAAAC,EAAW,IAAKC,EAAU,GACvC,EAAE,IAAAC,EAAI,IAAGH,EAAUF,EAAK,KAAK,GAC7B,EAAE,UAAAM,EAAQ,IAAKH,EAAYH,EAAK,OAAOK,CAAE,GAEzC,EAAE,UAAAE,EAAQ,IAAKC,EAAYR,CAAI;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { toRefs as d, openBlock as n, createElementBlock as s, unref as t, normalizeClass as u, Fragment as _, renderList as f, createBlock as h, resolveDynamicComponent as y } from "vue";
2
+ import { a as k, u as C } from "./entry-BmRN0Y-U.mjs";
3
+ import { u as v } from "./methods-DeDVNJrB.mjs";
4
+ const x = ["id"], z = {
5
+ __name: "Topic",
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(r) {
19
+ const p = r, { node: o } = d(p), { children: c } = k(o), { extractId: a } = v(), { classes: i } = C(o), { id: m } = a(o.value);
20
+ return (B, N) => (n(), s("div", {
21
+ id: t(m),
22
+ class: u(t(i))
23
+ }, [
24
+ (n(!0), s(_, null, f(t(c), (e, l) => (n(), h(y(e.component), {
25
+ key: "section_component_" + l,
26
+ node: e.node,
27
+ componentName: e.name,
28
+ properties: e.properties
29
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
30
+ ], 10, x));
31
+ }
32
+ };
33
+ export {
34
+ z as default
35
+ };
36
+ //# sourceMappingURL=Topic-CGDYI81Y.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Topic-5c1f63eb.mjs","sources":["../src/components/templates/Topic.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["node","toRefs","props","children","useChildren","extractId","useMethods","classes","useClasses","id"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAgCM,EAAE,MAAAA,EAAI,IAAKC,EAAOC,CAAK,GAEvB,EAAE,UAAAC,EAAQ,IAAKC,EAAYJ,CAAI,GAC/B,EAAE,WAAAK,EAAW,IAAGC,EAAY,GAC5B,EAAE,SAAAC,EAAO,IAAKC,EAAWR,CAAI,GAE7B,EAAE,IAAAS,EAAI,IAAGJ,EAAUL,EAAK,KAAK;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Topic-CGDYI81Y.mjs","sources":["../src/components/templates/Topic.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :class=\"classes\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'section_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\n</script>\n"],"names":["props","__props","node","toRefs","children","useChildren","extractId","useMethods","classes","useClasses","id"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,EAAI,IAAKC,EAAOH,CAAK,GAEvB,EAAE,UAAAI,EAAQ,IAAKC,EAAYH,CAAI,GAC/B,EAAE,WAAAI,EAAW,IAAGC,EAAU,GAC1B,EAAE,SAAAC,EAAO,IAAKC,EAAWP,CAAI,GAE7B,EAAE,IAAAQ,EAAI,IAAGJ,EAAUJ,EAAK,KAAK;;;;;;;;;;;;;;"}
@@ -12,4 +12,4 @@ const s = {
12
12
  export {
13
13
  s as default
14
14
  };
15
- //# sourceMappingURL=Transition-3485737d.mjs.map
15
+ //# sourceMappingURL=Transition-CWMp4Zlv.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Transition-3485737d.mjs","sources":["../src/components/templates/Transition.vue"],"sourcesContent":["<script>\nimport { h } from 'vue'\n\nexport default {\n name: 'Transition',\n render() {\n return h(\n 'hr', // tag name\n { class: ['docutils'] },\n )\n },\n}\n</script>\n"],"names":["_sfc_main","h"],"mappings":";AAGK,MAAAA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AACP,WAAOC;AAAA,MACL;AAAA;AAAA,MACA,EAAE,OAAO,CAAC,UAAU,EAAG;AAAA,IACzB;AAAA,EACD;AACH;"}
1
+ {"version":3,"file":"Transition-CWMp4Zlv.mjs","sources":["../src/components/templates/Transition.vue"],"sourcesContent":["<script>\nimport { h } from 'vue'\n\nexport default {\n name: 'Transition',\n render() {\n return h(\n 'hr', // tag name\n { class: ['docutils'] },\n )\n },\n}\n</script>\n"],"names":["_sfc_main","h"],"mappings":";AAGK,MAAAA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AACP,WAAOC;AAAA,MACL;AAAA;AAAA,MACA,EAAE,OAAO,CAAC,UAAU,EAAG;AAAA,IACzB;AAAA,EACD;AACH;"}
@@ -0,0 +1,42 @@
1
+ import { toRefs as g, openBlock as n, createElementBlock as r, unref as p, createBlock as s, resolveDynamicComponent as a, withCtx as h, createTextVNode as x, Fragment as y, renderList as N } from "vue";
2
+ import { u as k } from "./methods-DeDVNJrB.mjs";
3
+ import { a as v } from "./entry-BmRN0Y-U.mjs";
4
+ const w = ["id"], j = {
5
+ __name: "Warning",
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: t, properties: m } = g(d), { extractId: c } = k(), { id: l } = c(t.value), { children: u } = v(t), f = "h" + m.value.depth;
20
+ return (B, o) => (n(), r("div", {
21
+ id: p(l),
22
+ class: "admonition warning"
23
+ }, [
24
+ (n(), s(a(f), null, {
25
+ default: h(() => o[0] || (o[0] = [
26
+ x("Warning")
27
+ ])),
28
+ _: 1
29
+ })),
30
+ (n(!0), r(y, null, N(p(u), (e, _) => (n(), s(a(e.component), {
31
+ key: "warning_component_" + _,
32
+ node: e.node,
33
+ componentName: e.name,
34
+ properties: e.properties
35
+ }, null, 8, ["node", "componentName", "properties"]))), 128))
36
+ ], 8, w));
37
+ }
38
+ };
39
+ export {
40
+ j as default
41
+ };
42
+ //# sourceMappingURL=Warning-Cl6MS7S9.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Warning-5cbf4ef9.mjs","sources":["../src/components/templates/Warning.vue"],"sourcesContent":["<template>\n <div :id=\"id\" class=\"admonition warning\">\n <component :is=\"tagName\">Warning</component>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'warning_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\nconst tagName = 'h' + properties.value.depth\n</script>\n"],"names":["node","properties","toRefs","props","extractId","useMethods","id","children","useChildren","tagName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiCM,EAAE,MAAAA,GAAM,YAAAC,MAAeC,EAAOC,CAAK,GAEnC,EAAE,WAAAC,EAAW,IAAGC,EAAY,GAC5B,EAAE,IAAAC,EAAI,IAAGF,EAAUJ,EAAK,KAAK,GAE7B,EAAE,UAAAO,EAAQ,IAAKC,EAAYR,CAAI,GAC/BS,IAAU,MAAMR,EAAW,MAAM;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"Warning-Cl6MS7S9.mjs","sources":["../src/components/templates/Warning.vue"],"sourcesContent":["<template>\n <div :id=\"id\" class=\"admonition warning\">\n <component :is=\"tagName\">Warning</component>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'warning_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node, properties } = toRefs(props)\n\nconst { extractId } = useMethods()\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\nconst tagName = 'h' + properties.value.depth\n</script>\n"],"names":["props","__props","node","properties","toRefs","extractId","useMethods","id","children","useChildren","tagName"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,UAAMA,IAAQC,GAaR,EAAE,MAAAC,GAAM,YAAAC,MAAeC,EAAOJ,CAAK,GAEnC,EAAE,WAAAK,EAAW,IAAGC,EAAU,GAC1B,EAAE,IAAAC,EAAI,IAAGF,EAAUH,EAAK,KAAK,GAE7B,EAAE,UAAAM,EAAQ,IAAKC,EAAYP,CAAI,GAC/BQ,IAAU,MAAMP,EAAW,MAAM;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
- import { b as o, e as p, d as h } from "./entry-185f60c1.mjs";
2
- import { u as c } from "./methods-f5038371.mjs";
1
+ import { b as o, e as p, d as h } from "./entry-BmRN0Y-U.mjs";
2
+ import { u as c } from "./methods-DeDVNJrB.mjs";
3
3
  const {
4
4
  determinePageLocation: l,
5
5
  determinePageName: R,
@@ -39,4 +39,4 @@ const {
39
39
  export {
40
40
  I as u
41
41
  };
42
- //# sourceMappingURL=basereference-dc2b6871.mjs.map
42
+ //# sourceMappingURL=basereference-CBz3BfwU.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"basereference-dc2b6871.mjs","sources":["../src/composables/basereference.js"],"sourcesContent":["import { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from './methods'\nimport { determineRouteUrl, constructPageNameFromRoute } from '../js/utilities'\n\nconst {\n determinePageLocation,\n determinePageName,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n} = useMethods()\n\nexport const useBaseReference = (element, route, routeDescription) => {\n const sphinxStore = useSphinxStore()\n\n const onReferenceCreated = () => {\n if (isInternalReference(element)) {\n let pageName = constructPageNameFromRoute(route)\n let baseRefUri = determineRouteUrl(route)\n const pageReference = element.getAttribute('refid')\n if (pageReference && !pageReference.startsWith('#')) {\n routeDescription.value.hash = '#' + pageReference\n } else {\n routeDescription.value.hash = pageReference\n }\n if (!isReferenceToCurrentPage(element)) {\n pageName = determinePageName(element, route)\n let parentLevels = parentLevelsInRefURI(element)\n if (sphinxStore.isOffsetReferenceURL(baseRefUri) && parentLevels) {\n let parts = baseRefUri.split('/')\n while(parentLevels--) {\n parts.pop()\n }\n if (parts.length === 1) {\n baseRefUri = '/'\n } else {\n baseRefUri = parts.join('/')\n }\n }\n routeDescription.value.hash = determinePageLocation(element)\n const existingPageWrapper = sphinxStore.hasPageById(\n baseRefUri,\n pageName,\n )\n if (!existingPageWrapper) {\n sphinxStore.fetchPage({\n page_name: pageName,\n page_route: baseRefUri,\n page_url: sphinxStore.getBaseUrl(baseRefUri),\n })\n }\n }\n\n routeDescription.value.path = baseRefUri === '/' ? baseRefUri + pageName : baseRefUri + '/' + pageName\n }\n }\n return {\n onReferenceCreated,\n }\n}\n"],"names":["determinePageLocation","determinePageName","isInternalReference","isReferenceToCurrentPage","parentLevelsInRefURI","useMethods","useBaseReference","element","route","routeDescription","sphinxStore","useSphinxStore","pageName","constructPageNameFromRoute","baseRefUri","determineRouteUrl","pageReference","parentLevels","parts"],"mappings":";;AAKA,MAAM;AAAA,EACJ,uBAAAA;AAAA,EACA,mBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,sBAAAC;AACF,IAAIC,EAAY,GAEHC,IAAmB,CAACC,GAASC,GAAOC,MAAqB;AACpE,QAAMC,IAAcC,EAAgB;AA2CpC,SAAO;AAAA,IACL,oBA1CyB,MAAM;AAC/B,UAAIT,EAAoBK,CAAO,GAAG;AAChC,YAAIK,IAAWC,EAA2BL,CAAK,GAC3CM,IAAaC,EAAkBP,CAAK;AACxC,cAAMQ,IAAgBT,EAAQ,aAAa,OAAO;AAMlD,YALIS,KAAiB,CAACA,EAAc,WAAW,GAAG,IAChDP,EAAiB,MAAM,OAAO,MAAMO,IAEpCP,EAAiB,MAAM,OAAOO,GAE5B,CAACb,EAAyBI,CAAO,GAAG;AACtC,UAAAK,IAAWX,EAAkBM,GAASC,CAAK;AAC3C,cAAIS,IAAeb,EAAqBG,CAAO;AAC/C,cAAIG,EAAY,qBAAqBI,CAAU,KAAKG,GAAc;AAChE,gBAAIC,IAAQJ,EAAW,MAAM,GAAG;AAChC,mBAAMG;AACJ,cAAAC,EAAM,IAAK;AAEb,YAAIA,EAAM,WAAW,IACnBJ,IAAa,MAEbA,IAAaI,EAAM,KAAK,GAAG;AAAA,UAE9B;AACD,UAAAT,EAAiB,MAAM,OAAOT,EAAsBO,CAAO,GAC/BG,EAAY;AAAA,YACtCI;AAAA,YACAF;AAAA,UACD,KAECF,EAAY,UAAU;AAAA,YACpB,WAAWE;AAAA,YACX,YAAYE;AAAA,YACZ,UAAUJ,EAAY,WAAWI,CAAU;AAAA,UACvD,CAAW;AAAA,QAEJ;AAED,QAAAL,EAAiB,MAAM,OAAOK,MAAe,MAAMA,IAAaF,IAAWE,IAAa,MAAMF;AAAA,MAC/F;AAAA,IACF;AAAA,EAGA;AACH;"}
1
+ {"version":3,"file":"basereference-CBz3BfwU.mjs","sources":["../src/composables/basereference.js"],"sourcesContent":["import { useSphinxStore } from '@/stores/sphinx'\n\nimport { useMethods } from './methods'\nimport { determineRouteUrl, constructPageNameFromRoute } from '../js/utilities'\n\nconst {\n determinePageLocation,\n determinePageName,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n} = useMethods()\n\nexport const useBaseReference = (element, route, routeDescription) => {\n const sphinxStore = useSphinxStore()\n\n const onReferenceCreated = () => {\n if (isInternalReference(element)) {\n let pageName = constructPageNameFromRoute(route)\n let baseRefUri = determineRouteUrl(route)\n const pageReference = element.getAttribute('refid')\n if (pageReference && !pageReference.startsWith('#')) {\n routeDescription.value.hash = '#' + pageReference\n } else {\n routeDescription.value.hash = pageReference\n }\n if (!isReferenceToCurrentPage(element)) {\n pageName = determinePageName(element, route)\n let parentLevels = parentLevelsInRefURI(element)\n if (sphinxStore.isOffsetReferenceURL(baseRefUri) && parentLevels) {\n let parts = baseRefUri.split('/')\n while(parentLevels--) {\n parts.pop()\n }\n if (parts.length === 1) {\n baseRefUri = '/'\n } else {\n baseRefUri = parts.join('/')\n }\n }\n routeDescription.value.hash = determinePageLocation(element)\n const existingPageWrapper = sphinxStore.hasPageById(\n baseRefUri,\n pageName,\n )\n if (!existingPageWrapper) {\n sphinxStore.fetchPage({\n page_name: pageName,\n page_route: baseRefUri,\n page_url: sphinxStore.getBaseUrl(baseRefUri),\n })\n }\n }\n\n routeDescription.value.path = baseRefUri === '/' ? baseRefUri + pageName : baseRefUri + '/' + pageName\n }\n }\n return {\n onReferenceCreated,\n }\n}\n"],"names":["determinePageLocation","determinePageName","isInternalReference","isReferenceToCurrentPage","parentLevelsInRefURI","useMethods","useBaseReference","element","route","routeDescription","sphinxStore","useSphinxStore","pageName","constructPageNameFromRoute","baseRefUri","determineRouteUrl","pageReference","parentLevels","parts"],"mappings":";;AAKA,MAAM;AAAA,EACJ,uBAAAA;AAAA,EACA,mBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,0BAAAC;AAAA,EACA,sBAAAC;AACF,IAAIC,EAAU,GAEDC,IAAmB,CAACC,GAASC,GAAOC,MAAqB;AACpE,QAAMC,IAAcC,EAAc;AA2ClC,SAAO;AAAA,IACL,oBA1CyB,MAAM;AAC/B,UAAIT,EAAoBK,CAAO,GAAG;AAChC,YAAIK,IAAWC,EAA2BL,CAAK,GAC3CM,IAAaC,EAAkBP,CAAK;AACxC,cAAMQ,IAAgBT,EAAQ,aAAa,OAAO;AAMlD,YALIS,KAAiB,CAACA,EAAc,WAAW,GAAG,IAChDP,EAAiB,MAAM,OAAO,MAAMO,IAEpCP,EAAiB,MAAM,OAAOO,GAE5B,CAACb,EAAyBI,CAAO,GAAG;AACtC,UAAAK,IAAWX,EAAkBM,GAASC,CAAK;AAC3C,cAAIS,IAAeb,EAAqBG,CAAO;AAC/C,cAAIG,EAAY,qBAAqBI,CAAU,KAAKG,GAAc;AAChE,gBAAIC,IAAQJ,EAAW,MAAM,GAAG;AAChC,mBAAMG;AACJ,cAAAC,EAAM,IAAG;AAEX,YAAIA,EAAM,WAAW,IACnBJ,IAAa,MAEbA,IAAaI,EAAM,KAAK,GAAG;AAAA,UAEvC;AACQ,UAAAT,EAAiB,MAAM,OAAOT,EAAsBO,CAAO,GAC/BG,EAAY;AAAA,YACtCI;AAAA,YACAF;AAAA,UACV,KAEUF,EAAY,UAAU;AAAA,YACpB,WAAWE;AAAA,YACX,YAAYE;AAAA,YACZ,UAAUJ,EAAY,WAAWI,CAAU;AAAA,UAC5C,CAAA;AAAA,QAEX;AAEM,QAAAL,EAAiB,MAAM,OAAOK,MAAe,MAAMA,IAAaF,IAAWE,IAAa,MAAMF;AAAA,MACpG;AAAA,IACA;AAAA,EAGA;AACA;"}