vue3-sphinx-xml 0.1.0-beta.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 (78) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +171 -0
  3. package/dist/BlockQuote.js +43 -0
  4. package/dist/BlockQuote.js.map +1 -0
  5. package/dist/CaptionNumber.js +71 -0
  6. package/dist/CaptionNumber.js.map +1 -0
  7. package/dist/ColumnGroup.js +44 -0
  8. package/dist/ColumnGroup.js.map +1 -0
  9. package/dist/Comment.js +34 -0
  10. package/dist/Comment.js.map +1 -0
  11. package/dist/Compound.js +39 -0
  12. package/dist/Compound.js.map +1 -0
  13. package/dist/Container.js +80 -0
  14. package/dist/Container.js.map +1 -0
  15. package/dist/DirectElementMap.js +22 -0
  16. package/dist/DirectElementMap.js.map +1 -0
  17. package/dist/DownloadReference.js +51 -0
  18. package/dist/DownloadReference.js.map +1 -0
  19. package/dist/Figure.js +55 -0
  20. package/dist/Figure.js.map +1 -0
  21. package/dist/FigureCaption.js +77 -0
  22. package/dist/FigureCaption.js.map +1 -0
  23. package/dist/Footnote.js +45 -0
  24. package/dist/Footnote.js.map +1 -0
  25. package/dist/FootnoteReference.js +49 -0
  26. package/dist/FootnoteReference.js.map +1 -0
  27. package/dist/Image.js +53 -0
  28. package/dist/Image.js.map +1 -0
  29. package/dist/Legend.js +45 -0
  30. package/dist/Legend.js.map +1 -0
  31. package/dist/LineBlock.js +45 -0
  32. package/dist/LineBlock.js.map +1 -0
  33. package/dist/LineSingle.js +46 -0
  34. package/dist/LineSingle.js.map +1 -0
  35. package/dist/Literal.js +56 -0
  36. package/dist/Literal.js.map +1 -0
  37. package/dist/LiteralBlock.js +50 -0
  38. package/dist/LiteralBlock.js.map +1 -0
  39. package/dist/Math.js +25 -0
  40. package/dist/Math.js.map +1 -0
  41. package/dist/MathBlock.js +77 -0
  42. package/dist/MathBlock.js.map +1 -0
  43. package/dist/Note.js +48 -0
  44. package/dist/Note.js.map +1 -0
  45. package/dist/NumberReference.js +60 -0
  46. package/dist/NumberReference.js.map +1 -0
  47. package/dist/Problematic.js +45 -0
  48. package/dist/Problematic.js.map +1 -0
  49. package/dist/Raw.js +10 -0
  50. package/dist/Raw.js.map +1 -0
  51. package/dist/Reference.js +49 -0
  52. package/dist/Reference.js.map +1 -0
  53. package/dist/Section.js +53 -0
  54. package/dist/Section.js.map +1 -0
  55. package/dist/StandardElement.js +99 -0
  56. package/dist/StandardElement.js.map +1 -0
  57. package/dist/Text.js +23 -0
  58. package/dist/Text.js.map +1 -0
  59. package/dist/Title.js +66 -0
  60. package/dist/Title.js.map +1 -0
  61. package/dist/TodoNode.js +54 -0
  62. package/dist/TodoNode.js.map +1 -0
  63. package/dist/Topic.js +49 -0
  64. package/dist/Topic.js.map +1 -0
  65. package/dist/Transition.js +9 -0
  66. package/dist/Transition.js.map +1 -0
  67. package/dist/basereference.js +42 -0
  68. package/dist/basereference.js.map +1 -0
  69. package/dist/entry.js +707 -0
  70. package/dist/entry.js.map +1 -0
  71. package/dist/favicon.ico +0 -0
  72. package/dist/index.html +21 -0
  73. package/dist/methods.js +138 -0
  74. package/dist/methods.js.map +1 -0
  75. package/dist/style.css +1 -0
  76. package/dist/vue3-sphinx-xml.es.js +9 -0
  77. package/dist/vue3-sphinx-xml.es.js.map +1 -0
  78. package/package.json +48 -0
@@ -0,0 +1,77 @@
1
+ import { toRefs, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createVNode } from "vue";
2
+ const _hoisted_1 = { class: "katex-block" };
3
+ const _sfc_main = {
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(__props) {
17
+ const props = __props;
18
+ const removeList = ["\\begin{equation}", "\\end{equation}"];
19
+ const renameMap = /* @__PURE__ */ new Map([
20
+ ["\\begin{align}", "\\begin{aligned}"],
21
+ ["\\begin{eqnarray}", "\\begin{aligned}"],
22
+ ["\\end{align}", "\\end{aligned}"],
23
+ ["\\end{eqnarray}", "\\end{aligned}"]
24
+ ]);
25
+ const { node } = toRefs(props);
26
+ const formulas = computed(() => {
27
+ let formulas2 = [];
28
+ const multiEquations = node.value.innerHTML.split(/\r?\n\r?\n/);
29
+ for (const equation of multiEquations) {
30
+ if (equation) {
31
+ let stripped = equation.replaceAll("&", "&");
32
+ for (const item of removeList) {
33
+ stripped = stripped.replaceAll(item, "");
34
+ }
35
+ for (let [key, value] of renameMap) {
36
+ stripped = stripped.replaceAll(key, value);
37
+ }
38
+ if (requiresSplitEnvironment(stripped) && !hasEnvironment(stripped)) {
39
+ stripped = `\\begin{array}{cc}${stripped}\\end{array}`;
40
+ }
41
+ formulas2.push(stripped);
42
+ }
43
+ }
44
+ return formulas2;
45
+ });
46
+ function requiresSplitEnvironment(formula) {
47
+ const ampersandIndex = formula.search("&");
48
+ const newLineIndex = formula.search("\\\\");
49
+ if (ampersandIndex !== -1 && newLineIndex !== -1) {
50
+ return true;
51
+ }
52
+ return false;
53
+ }
54
+ function hasEnvironment(formula) {
55
+ const beginEnvironmentIndex = formula.search("begin{aligned}");
56
+ const endEnvironmentIndex = formula.search("end{aligned}");
57
+ if (beginEnvironmentIndex !== -1 && endEnvironmentIndex !== -1) {
58
+ return true;
59
+ }
60
+ return false;
61
+ }
62
+ return (_ctx, _cache) => {
63
+ const _component_katex_element = resolveComponent("katex-element");
64
+ return openBlock(), createElementBlock("div", _hoisted_1, [
65
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(formulas), (formula, index) => {
66
+ return openBlock(), createElementBlock("div", {
67
+ key: "math_" + index
68
+ }, [
69
+ createVNode(_component_katex_element, { expression: formula }, null, 8, ["expression"])
70
+ ]);
71
+ }), 128))
72
+ ]);
73
+ };
74
+ }
75
+ };
76
+ export { _sfc_main as default };
77
+ //# sourceMappingURL=MathBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MathBlock.js","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":[],"mappings":";;;;;;;;;;;;;;;;;AAWA,UAAM,aAAa,CAAC,qBAAqB,iBAAiB;AAE1D,UAAM,YAAY,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;AAeD,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,WAAW,SAAS,MAAM;AAC9B,UAAI,YAAW,CAAE;AACjB,YAAM,iBAAiB,KAAK,MAAM,UAAU,MAAM,YAAY;AAC9D,iBAAW,YAAY,gBAAgB;AACrC,YAAI,UAAU;AACZ,cAAI,WAAW,SAAS,WAAW,SAAS,GAAG;AAC/C,qBAAW,QAAQ,YAAY;AAC7B,uBAAW,SAAS,WAAW,MAAM,EAAE;AAAA,UACxC;AACD,mBAAS,CAAC,KAAK,UAAU,WAAW;AAClC,uBAAW,SAAS,WAAW,KAAK,KAAK;AAAA,UAC1C;AACD,cAAI,yBAAyB,QAAQ,KAAK,CAAC,eAAe,QAAQ,GAAG;AAEnE,uBAAW,qBAAqB;AAAA,UACjC;AACD,oBAAS,KAAK,QAAQ;AAAA,QACvB;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;AAED,sCAAkC,SAAS;AACzC,YAAM,iBAAiB,QAAQ,OAAO,GAAG;AACzC,YAAM,eAAe,QAAQ,OAAO,MAAM;AAC1C,UAAI,mBAAmB,MAAM,iBAAiB,IAAI;AAChD,eAAO;AAAA,MACR;AACD,aAAO;AAAA,IACT;AAEA,4BAAwB,SAAS;AAG/B,YAAM,wBAAwB,QAAQ,OAAO,gBAAgB;AAC7D,YAAM,sBAAsB,QAAQ,OAAO,cAAc;AACzD,UAAI,0BAA0B,MAAM,wBAAwB,IAAI;AAC9D,eAAO;AAAA,MACR;AACD,aAAO;AAAA,IACT;;;;;;;;;;;;;;;;"}
package/dist/Note.js ADDED
@@ -0,0 +1,48 @@
1
+ import { toRefs, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent, createElementVNode } from "vue";
2
+ import { u as useMethods } from "./methods.js";
3
+ import { u as useChildren } from "./entry.js";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "vuex";
8
+ import "path-to-regexp";
9
+ import "axios";
10
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("p", { class: "admonition-title" }, "Note", -1);
11
+ const _sfc_main = {
12
+ props: {
13
+ node: {
14
+ type: void 0,
15
+ default: null
16
+ },
17
+ componentName: {
18
+ type: String
19
+ },
20
+ properties: {
21
+ type: Object
22
+ }
23
+ },
24
+ setup(__props) {
25
+ const props = __props;
26
+ console.log("****** IN USE ******");
27
+ const { node } = toRefs(props);
28
+ const { dataObject } = useMethods();
29
+ const attrs = ref({});
30
+ const { children } = useChildren(node);
31
+ attrs.value = dataObject(node.value, ["admonition", "note"]).attrs;
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(attrs.value)), [
34
+ _hoisted_1,
35
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
36
+ return openBlock(), createBlock(resolveDynamicComponent(c.component), {
37
+ key: "note_component_" + index,
38
+ node: c.node,
39
+ componentName: c.name,
40
+ properties: c.properties
41
+ }, null, 8, ["node", "componentName", "properties"]);
42
+ }), 128))
43
+ ], 16);
44
+ };
45
+ }
46
+ };
47
+ export { _sfc_main as default };
48
+ //# sourceMappingURL=Note.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Note.js","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>\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)\nconst { dataObject } = useMethods()\nconst attrs = ref({})\n\nconst { children } = useChildren(node)\n\nattrs.value = dataObject(node.value, ['admonition', 'note']).attrs\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAmBlC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AAEpB,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,QAAQ,WAAW,KAAK,OAAO,CAAC,cAAc,MAAM,CAAC,EAAE;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,60 @@
1
+ import { ref, toRefs, onMounted, computed, resolveComponent, unref, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, createElementBlock } from "vue";
2
+ import { useRoute } from "vue-router";
3
+ import { u as useMethods } from "./methods.js";
4
+ import { u as useBaseReference } from "./basereference.js";
5
+ import "./entry.js";
6
+ import "@hsorby/vue3-katex";
7
+ import "katex/dist/katex.min.css";
8
+ import "vuex";
9
+ import "path-to-regexp";
10
+ import "axios";
11
+ const _hoisted_1 = ["href"];
12
+ const _sfc_main = {
13
+ props: {
14
+ node: {
15
+ type: void 0,
16
+ default: null
17
+ },
18
+ componentName: {
19
+ type: String
20
+ }
21
+ },
22
+ setup(__props) {
23
+ const props = __props;
24
+ const routeDescription = ref({ path: "", hash: "" });
25
+ const { node } = toRefs(props);
26
+ const route = useRoute();
27
+ const { isInternalReference } = useMethods();
28
+ const { onReferenceCreated } = useBaseReference(node.value, route, routeDescription);
29
+ onMounted(onReferenceCreated);
30
+ const title = computed(() => {
31
+ if (node.value.childElementCount) {
32
+ return node.value.children[0].innerHTML;
33
+ }
34
+ let refLabel = node.value.getAttribute("refid");
35
+ if (!refLabel) {
36
+ refLabel = node.value.getAttribute("refuri");
37
+ }
38
+ const t = refLabel.replace("-", " ");
39
+ return "Fig. " + t.charAt(0).toUpperCase() + t.slice(1);
40
+ });
41
+ return (_ctx, _cache) => {
42
+ const _component_router_link = resolveComponent("router-link");
43
+ return unref(isInternalReference)(unref(node)) ? (openBlock(), createBlock(_component_router_link, {
44
+ key: 0,
45
+ to: routeDescription.value
46
+ }, {
47
+ default: withCtx(() => [
48
+ createTextVNode(toDisplayString(unref(title)), 1)
49
+ ]),
50
+ _: 1
51
+ }, 8, ["to"])) : (openBlock(), createElementBlock("a", {
52
+ key: 1,
53
+ href: unref(node).getAttribute("refuri"),
54
+ target: "_blank"
55
+ }, toDisplayString(unref(title)), 9, _hoisted_1));
56
+ };
57
+ }
58
+ };
59
+ export { _sfc_main as default };
60
+ //# sourceMappingURL=NumberReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberReference.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,mBAAmB,IAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC;AACjD,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AAExB,UAAM,EAAE,wBAAwB,WAAY;AAC5C,UAAM,EAAE,uBAAuB,iBAAiB,KAAK,OAAO,OAAO,gBAAgB;AAEnF,cAAU,kBAAkB;AAE5B,UAAM,QAAQ,SAAS,MAAM;AAC3B,UAAI,KAAK,MAAM,mBAAmB;AAIhC,eAAO,KAAK,MAAM,SAAS,GAAG;AAAA,MAC/B;AAED,UAAI,WAAW,KAAK,MAAM,aAAa,OAAO;AAC9C,UAAI,CAAC,UAAU;AACb,mBAAW,KAAK,MAAM,aAAa,QAAQ;AAAA,MAC5C;AACD,YAAM,IAAI,SAAS,QAAQ,KAAK,GAAG;AACnC,aAAO,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB,EAAE,MAAM,CAAC;AAAA,IACxD,CAAC;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,45 @@
1
+ import { toRefs, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, unref, toDisplayString } from "vue";
2
+ import { u as useMethods } from "./methods.js";
3
+ import "./entry.js";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "vuex";
8
+ import "path-to-regexp";
9
+ import "axios";
10
+ const _hoisted_1 = ["id"];
11
+ const _sfc_main = {
12
+ props: {
13
+ node: {
14
+ type: void 0,
15
+ default: null
16
+ },
17
+ componentName: {
18
+ type: String
19
+ },
20
+ properties: {
21
+ type: Object
22
+ }
23
+ },
24
+ setup(__props) {
25
+ const props = __props;
26
+ const { node } = toRefs(props);
27
+ const routeDescription = ref({ hash: "#" + node.value.getAttribute("refid") });
28
+ const { extractId } = useMethods();
29
+ const { id } = extractId(node.value);
30
+ return (_ctx, _cache) => {
31
+ const _component_router_link = resolveComponent("router-link");
32
+ return openBlock(), createBlock(_component_router_link, { to: routeDescription.value }, {
33
+ default: withCtx(() => [
34
+ createElementVNode("span", {
35
+ class: "problematic",
36
+ id: unref(id)
37
+ }, toDisplayString(unref(node).textContent), 9, _hoisted_1)
38
+ ]),
39
+ _: 1
40
+ }, 8, ["to"]);
41
+ };
42
+ }
43
+ };
44
+ export { _sfc_main as default };
45
+ //# sourceMappingURL=Problematic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Problematic.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,mBAAmB,IAAI,EAAC,MAAM,MAAM,KAAK,MAAM,aAAa,OAAO,EAAC,CAAC;AAE3E,UAAM,EAAE,cAAc,WAAY;AAClC,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;;;;;;;;;;;;;;;;"}
package/dist/Raw.js ADDED
@@ -0,0 +1,10 @@
1
+ const _sfc_main = {
2
+ setup(__props) {
3
+ console.log("**** Ignoring this element.");
4
+ return (_ctx, _cache) => {
5
+ return null;
6
+ };
7
+ }
8
+ };
9
+ export { _sfc_main as default };
10
+ //# sourceMappingURL=Raw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Raw.js","sources":["../src/components/templates/Raw.vue"],"sourcesContent":["<template></template>\n\n<script setup>\nconsole.log('**** Ignoring this element.')\n</script>\n"],"names":[],"mappings":";;AAGA,YAAQ,IAAI,6BAA6B;;;;;;;"}
@@ -0,0 +1,49 @@
1
+ import { ref, toRefs, onMounted, resolveComponent, unref, openBlock, createBlock, withCtx, createTextVNode, toDisplayString, createElementBlock } from "vue";
2
+ import { useRoute } from "vue-router";
3
+ import { u as useMethods } from "./methods.js";
4
+ import { u as useBaseReference } from "./basereference.js";
5
+ import "./entry.js";
6
+ import "@hsorby/vue3-katex";
7
+ import "katex/dist/katex.min.css";
8
+ import "vuex";
9
+ import "path-to-regexp";
10
+ import "axios";
11
+ const _hoisted_1 = ["href"];
12
+ const _sfc_main = {
13
+ props: {
14
+ node: {
15
+ type: void 0,
16
+ default: null
17
+ },
18
+ componentName: {
19
+ type: String
20
+ }
21
+ },
22
+ setup(__props) {
23
+ const props = __props;
24
+ const routeDescription = ref({ path: "", hash: "" });
25
+ const { node } = toRefs(props);
26
+ const route = useRoute();
27
+ const { isInternalReference } = useMethods();
28
+ const { onReferenceCreated } = useBaseReference(node.value, route, routeDescription);
29
+ onMounted(onReferenceCreated);
30
+ return (_ctx, _cache) => {
31
+ const _component_router_link = resolveComponent("router-link");
32
+ return unref(isInternalReference)(unref(node)) ? (openBlock(), createBlock(_component_router_link, {
33
+ key: 0,
34
+ to: routeDescription.value
35
+ }, {
36
+ default: withCtx(() => [
37
+ createTextVNode(toDisplayString(unref(node).textContent), 1)
38
+ ]),
39
+ _: 1
40
+ }, 8, ["to"])) : (openBlock(), createElementBlock("a", {
41
+ key: 1,
42
+ href: unref(node).getAttribute("refuri"),
43
+ target: "_blank"
44
+ }, toDisplayString(unref(node).textContent), 9, _hoisted_1));
45
+ };
46
+ }
47
+ };
48
+ export { _sfc_main as default };
49
+ //# sourceMappingURL=Reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reference.js","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 {{ node.textContent }}\n </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,UAAM,mBAAmB,IAAI,EAAC,MAAM,IAAI,MAAM,GAAE,CAAC;AACjD,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,SAAU;AAExB,UAAM,EAAE,wBAAwB,WAAY;AAC5C,UAAM,EAAE,uBAAuB,iBAAiB,KAAK,OAAO,OAAO,gBAAgB;AAEnF,cAAU,kBAAkB;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,53 @@
1
+ import { toRefs, openBlock, createElementBlock, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
2
+ import { u as useMethods } from "./methods.js";
3
+ import { u as useChildren } from "./entry.js";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "vuex";
8
+ import "path-to-regexp";
9
+ import "axios";
10
+ const _hoisted_1 = ["id"];
11
+ const _hoisted_2 = ["id"];
12
+ const _sfc_main = {
13
+ props: {
14
+ node: {
15
+ type: void 0,
16
+ default: null
17
+ },
18
+ componentName: {
19
+ type: String
20
+ },
21
+ properties: {
22
+ type: Object
23
+ }
24
+ },
25
+ setup(__props) {
26
+ const props = __props;
27
+ const { node } = toRefs(props);
28
+ const { extractId, separateIds } = useMethods();
29
+ const { id } = extractId(node.value);
30
+ const { extraIds } = separateIds(node.value, id);
31
+ const { children } = useChildren(node);
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createElementBlock("section", { id: unref(id) }, [
34
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(extraIds), (s, index) => {
35
+ return openBlock(), createElementBlock("span", {
36
+ key: "id_span_" + index,
37
+ id: s
38
+ }, null, 8, _hoisted_2);
39
+ }), 128)),
40
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
41
+ return openBlock(), createBlock(resolveDynamicComponent(c.component), {
42
+ key: "section_component_" + index,
43
+ node: c.node,
44
+ componentName: c.name,
45
+ properties: c.properties
46
+ }, null, 8, ["node", "componentName", "properties"]);
47
+ }), 128))
48
+ ], 8, _hoisted_1);
49
+ };
50
+ }
51
+ };
52
+ export { _sfc_main as default };
53
+ //# sourceMappingURL=Section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,WAAW,gBAAgB,WAAY;AAC/C,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;AACnC,UAAM,EAAE,aAAa,YAAY,KAAK,OAAO,EAAE;AAE/C,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,99 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { toRefs, ref, openBlock, createBlock, resolveDynamicComponent, unref, mergeProps, toHandlerKey, withCtx, createElementBlock, Fragment, renderList } from "vue";
21
+ import { u as useChildren, n as nodeNameTagNameMap } from "./entry.js";
22
+ import { u as useMethods } from "./methods.js";
23
+ import "@hsorby/vue3-katex";
24
+ import "katex/dist/katex.min.css";
25
+ import "vue-router";
26
+ import "vuex";
27
+ import "path-to-regexp";
28
+ import "axios";
29
+ const _sfc_main = {
30
+ props: {
31
+ node: {
32
+ type: void 0,
33
+ default: null
34
+ },
35
+ componentName: {
36
+ type: String
37
+ }
38
+ },
39
+ setup(__props) {
40
+ const props = __props;
41
+ const { node } = toRefs(props);
42
+ const { children } = useChildren(node);
43
+ const { dataObject } = useMethods();
44
+ const attrs = ref({});
45
+ const isButton = ref(false);
46
+ const componentElement = ref(null);
47
+ const transferAttributes = /* @__PURE__ */ new Set(["div", "button"]);
48
+ const tag = nodeNameTagNameMap.get(node.value.nodeName);
49
+ if (transferAttributes.has(node.value.nodeName)) {
50
+ const tmpDataObject = dataObject(node.value, node.value.getAttribute("classes"));
51
+ attrs.value = __spreadProps(__spreadValues({}, tmpDataObject.attrs), {
52
+ class: tmpDataObject.class.join(" ")
53
+ });
54
+ }
55
+ if (node.value.nodeName === "button") {
56
+ isButton.value = true;
57
+ }
58
+ function buttonClicked() {
59
+ if (componentElement.value.getAttribute("aria-selected") === "false") {
60
+ const parentElement = componentElement.value.parentElement;
61
+ let panels = [];
62
+ for (const child of parentElement.children) {
63
+ const el = document.getElementById(child.id);
64
+ el.setAttribute("aria-selected", el.getAttribute("aria-selected") === "true" ? "false" : "true");
65
+ panels.push({ id: child.getAttribute("aria-controls") });
66
+ }
67
+ for (const panel of panels) {
68
+ const el = document.getElementById(panel.id);
69
+ if (el.hasAttribute("hidden")) {
70
+ el.removeAttribute("hidden");
71
+ } else {
72
+ el.setAttribute("hidden", "");
73
+ }
74
+ }
75
+ }
76
+ }
77
+ return (_ctx, _cache) => {
78
+ return openBlock(), createBlock(resolveDynamicComponent(unref(tag)), mergeProps(attrs.value, {
79
+ [toHandlerKey(isButton.value && `click`)]: buttonClicked,
80
+ ref_key: "componentElement",
81
+ ref: componentElement
82
+ }), {
83
+ default: withCtx(() => [
84
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
85
+ return openBlock(), createBlock(resolveDynamicComponent(c.component), {
86
+ key: "standard_element_component_" + index,
87
+ node: c.node,
88
+ componentName: c.name,
89
+ properties: c.properties
90
+ }, null, 8, ["node", "componentName", "properties"]);
91
+ }), 128))
92
+ ]),
93
+ _: 1
94
+ }, 16);
95
+ };
96
+ }
97
+ };
98
+ export { _sfc_main as default };
99
+ //# sourceMappingURL=StandardElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StandardElement.js","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\nif (transferAttributes.has(node.value.nodeName)) {\n const tmpDataObject = dataObject(\n node.value,\n node.value.getAttribute('classes'),\n )\n attrs.value = {\n ...tmpDataObject.attrs,\n class: tmpDataObject.class.join(' '),\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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,WAAW,IAAI,KAAK;AAC1B,UAAM,mBAAmB,IAAI,IAAI;AAEjC,UAAM,qBAAqB,oBAAI,IAAI,CAAC,OAAO,QAAQ,CAAC;AACpD,UAAM,MAAM,mBAAmB,IAAI,KAAK,MAAM,QAAQ;AAEtD,QAAI,mBAAmB,IAAI,KAAK,MAAM,QAAQ,GAAG;AAC/C,YAAM,gBAAgB,WACpB,KAAK,OACL,KAAK,MAAM,aAAa,SAAS,CAClC;AACD,YAAM,QAAQ,iCACT,cAAc,QADL;AAAA,QAEZ,OAAO,cAAc,MAAM,KAAK,GAAG;AAAA,MACpC;AAAA,IACH;AACA,QAAI,KAAK,MAAM,aAAa,UAAU;AACpC,eAAS,QAAQ;AAAA,IACnB;AAEA,6BAAyB;AACvB,UAAI,iBAAiB,MAAM,aAAa,eAAe,MAAM,SAAS;AACpE,cAAM,gBAAgB,iBAAiB,MAAM;AAC7C,YAAI,SAAS,CAAE;AACf,mBAAW,SAAS,cAAc,UAAU;AAC1C,gBAAM,KAAK,SAAS,eAAe,MAAM,EAAE;AAC3C,aAAG,aACD,iBACA,GAAG,aAAa,eAAe,MAAM,SAAS,UAAU,MACzD;AACD,iBAAO,KAAK,EAAE,IAAI,MAAM,aAAa,eAAe,GAAG;AAAA,QACxD;AACD,mBAAW,SAAS,QAAQ;AAC1B,gBAAM,KAAK,SAAS,eAAe,MAAM,EAAE;AAC3C,cAAI,GAAG,aAAa,QAAQ,GAAG;AAC7B,eAAG,gBAAgB,QAAQ;AAAA,UACnC,OAAa;AACL,eAAG,aAAa,UAAU,EAAE;AAAA,UAC7B;AAAA,QACF;AAAA,MACF;AAAA,IACH;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/Text.js ADDED
@@ -0,0 +1,23 @@
1
+ import { toDisplayString } from "vue";
2
+ const _sfc_main = {
3
+ props: {
4
+ node: {
5
+ type: void 0,
6
+ default: null
7
+ },
8
+ componentName: {
9
+ type: String
10
+ },
11
+ properties: {
12
+ type: Object,
13
+ required: true
14
+ }
15
+ },
16
+ setup(__props) {
17
+ return (_ctx, _cache) => {
18
+ return toDisplayString(__props.properties.text);
19
+ };
20
+ }
21
+ };
22
+ export { _sfc_main as default };
23
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
package/dist/Title.js ADDED
@@ -0,0 +1,66 @@
1
+ import { toRefs, computed, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
2
+ import { u as useChildren } from "./entry.js";
3
+ import "@hsorby/vue3-katex";
4
+ import "katex/dist/katex.min.css";
5
+ import "vue-router";
6
+ import "vuex";
7
+ import "path-to-regexp";
8
+ import "axios";
9
+ const _sfc_main = {
10
+ props: {
11
+ node: {
12
+ type: void 0,
13
+ default: null
14
+ },
15
+ componentName: {
16
+ type: String
17
+ },
18
+ properties: {
19
+ type: Object,
20
+ required: true
21
+ }
22
+ },
23
+ setup(__props) {
24
+ const props = __props;
25
+ const { node, properties } = toRefs(props);
26
+ const { children } = useChildren(node);
27
+ const depth = properties.value.depth;
28
+ const isTopic = properties.value.isTopic;
29
+ const tagName = computed(() => {
30
+ let tagName2 = "h" + depth;
31
+ if (isTopic) {
32
+ tagName2 = "p";
33
+ }
34
+ return tagName2;
35
+ });
36
+ const classes = computed(() => {
37
+ let classes2 = [];
38
+ if (isTopic) {
39
+ classes2.push("topic-title");
40
+ if (depth === 1) {
41
+ classes2.push("first");
42
+ }
43
+ }
44
+ return classes2;
45
+ });
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createBlock(resolveDynamicComponent(unref(tagName)), {
48
+ class: normalizeClass(unref(classes))
49
+ }, {
50
+ default: withCtx(() => [
51
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
52
+ return openBlock(), createBlock(resolveDynamicComponent(c.component), {
53
+ key: "title_component_" + index,
54
+ node: c.node,
55
+ componentName: c.name,
56
+ properties: c.properties
57
+ }, null, 8, ["node", "componentName", "properties"]);
58
+ }), 128))
59
+ ]),
60
+ _: 1
61
+ }, 8, ["class"]);
62
+ };
63
+ }
64
+ };
65
+ export { _sfc_main as default };
66
+ //# sourceMappingURL=Title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Title.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA+BA,UAAM,EAAE,MAAM,eAAe,OAAO,KAAK;AAEzC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,QAAQ,WAAW,MAAM;AAC/B,UAAM,UAAU,WAAW,MAAM;AAEjC,UAAM,UAAU,SAAS,MAAM;AAC7B,UAAI,WAAU,MAAM;AACpB,UAAI,SAAS;AACX,mBAAU;AAAA,MACX;AACD,aAAO;AAAA,IACT,CAAC;AAED,UAAM,UAAU,SAAS,MAAM;AAC7B,UAAI,WAAU,CAAE;AAChB,UAAI,SAAS;AACX,iBAAQ,KAAK,aAAa;AAC1B,YAAI,UAAU,GAAG;AACf,mBAAQ,KAAK,OAAO;AAAA,QACrB;AAAA,MACF;AACD,aAAO;AAAA,IACT,CAAC;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,54 @@
1
+ import { toRefs, openBlock, createElementBlock, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
2
+ import { u as useMethods } from "./methods.js";
3
+ import { u as useChildren } from "./entry.js";
4
+ import "@hsorby/vue3-katex";
5
+ import "katex/dist/katex.min.css";
6
+ import "vue-router";
7
+ import "vuex";
8
+ import "path-to-regexp";
9
+ import "axios";
10
+ const _hoisted_1 = ["id"];
11
+ const _hoisted_2 = ["id"];
12
+ const _sfc_main = {
13
+ props: {
14
+ node: {
15
+ type: void 0,
16
+ default: null
17
+ },
18
+ componentName: {
19
+ type: String
20
+ },
21
+ properties: {
22
+ type: Object
23
+ }
24
+ },
25
+ setup(__props) {
26
+ const props = __props;
27
+ console.log("****** IN USE ******");
28
+ const { node } = toRefs(props);
29
+ const { extractId, separateIds } = useMethods();
30
+ const { id } = extractId(node.value);
31
+ const { extraIds } = separateIds(node.value, id);
32
+ const { children } = useChildren(node);
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createElementBlock("section", { id: unref(id) }, [
35
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(extraIds), (s, index) => {
36
+ return openBlock(), createElementBlock("span", {
37
+ key: "id_span_" + index,
38
+ id: s
39
+ }, null, 8, _hoisted_2);
40
+ }), 128)),
41
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
42
+ return openBlock(), createBlock(resolveDynamicComponent(c.component), {
43
+ key: "todo_component_" + index,
44
+ node: c.node,
45
+ componentName: c.name,
46
+ properties: c.properties
47
+ }, null, 8, ["node", "componentName", "properties"]);
48
+ }), 128))
49
+ ], 8, _hoisted_1);
50
+ };
51
+ }
52
+ };
53
+ export { _sfc_main as default };
54
+ //# sourceMappingURL=TodoNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TodoNode.js","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,YAAQ,IAAI,sBAAsB;AAmBlC,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,WAAW,gBAAgB,WAAY;AAC/C,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;AACnC,UAAM,EAAE,aAAa,YAAY,KAAK,OAAO,EAAE;AAE/C,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;;;;;"}