vue3-sphinx-xml 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/Admonition-4dbe3f53.mjs +41 -0
  2. package/dist/Admonition-4dbe3f53.mjs.map +1 -0
  3. package/dist/BlockQuote-0b464fcb.mjs +39 -0
  4. package/dist/BlockQuote-0b464fcb.mjs.map +1 -0
  5. package/dist/CaptionNumber-02430764.mjs +41 -0
  6. package/dist/CaptionNumber-02430764.mjs.map +1 -0
  7. package/dist/ColumnGroup-baa1b99b.mjs +37 -0
  8. package/dist/ColumnGroup-baa1b99b.mjs.map +1 -0
  9. package/dist/Comment-f2157760.mjs +31 -0
  10. package/dist/Comment-f2157760.mjs.map +1 -0
  11. package/dist/Compound-ae2a8a98.mjs +35 -0
  12. package/dist/Compound-ae2a8a98.mjs.map +1 -0
  13. package/dist/Container-19a7431d.mjs +55 -0
  14. package/dist/Container-19a7431d.mjs.map +1 -0
  15. package/dist/DirectElementMap-4c6f8e80.mjs +21 -0
  16. package/dist/DirectElementMap-4c6f8e80.mjs.map +1 -0
  17. package/dist/DownloadReference-1df41bf0.mjs +40 -0
  18. package/dist/DownloadReference-1df41bf0.mjs.map +1 -0
  19. package/dist/Figure-12e7efef.mjs +43 -0
  20. package/dist/Figure-12e7efef.mjs.map +1 -0
  21. package/dist/FigureCaption-7b351f25.mjs +46 -0
  22. package/dist/FigureCaption-7b351f25.mjs.map +1 -0
  23. package/dist/Footnote-e4b02243.mjs +38 -0
  24. package/dist/Footnote-e4b02243.mjs.map +1 -0
  25. package/dist/FootnoteReference-b5b67601.mjs +44 -0
  26. package/dist/FootnoteReference-b5b67601.mjs.map +1 -0
  27. package/dist/Image-15e1e5bd.mjs +40 -0
  28. package/dist/Image-15e1e5bd.mjs.map +1 -0
  29. package/dist/Legend-878a7ec8.mjs +41 -0
  30. package/dist/Legend-878a7ec8.mjs.map +1 -0
  31. package/dist/LineBlock-8eec127a.mjs +38 -0
  32. package/dist/LineBlock-8eec127a.mjs.map +1 -0
  33. package/dist/LineSingle-6a9fabdf.mjs +40 -0
  34. package/dist/LineSingle-6a9fabdf.mjs.map +1 -0
  35. package/dist/Literal-edb2ce6f.mjs +47 -0
  36. package/dist/Literal-edb2ce6f.mjs.map +1 -0
  37. package/dist/LiteralBlock-a2af758b.mjs +42 -0
  38. package/dist/LiteralBlock-a2af758b.mjs.map +1 -0
  39. package/dist/Math-7ccdef36.mjs +28 -0
  40. package/dist/Math-7ccdef36.mjs.map +1 -0
  41. package/dist/MathBlock-f8b3d549.mjs +59 -0
  42. package/dist/MathBlock-f8b3d549.mjs.map +1 -0
  43. package/dist/Note-4413dcab.mjs +39 -0
  44. package/dist/Note-4413dcab.mjs.map +1 -0
  45. package/dist/NumberReference-2143cb23.mjs +53 -0
  46. package/dist/NumberReference-2143cb23.mjs.map +1 -0
  47. package/dist/Problematic-3d793374.mjs +42 -0
  48. package/dist/Problematic-3d793374.mjs.map +1 -0
  49. package/dist/Raw-dcdd7f96.mjs +10 -0
  50. package/dist/Raw-dcdd7f96.mjs.map +1 -0
  51. package/dist/Reference-80a8b234.mjs +57 -0
  52. package/dist/Reference-80a8b234.mjs.map +1 -0
  53. package/dist/Section-9ba27ca3.mjs +42 -0
  54. package/dist/Section-9ba27ca3.mjs.map +1 -0
  55. package/dist/Skip-4a46064f.mjs +19 -0
  56. package/dist/Skip-4a46064f.mjs.map +1 -0
  57. package/dist/StandardElement-64bcb6c4.mjs +62 -0
  58. package/dist/StandardElement-64bcb6c4.mjs.map +1 -0
  59. package/dist/Text-0d6b5332.mjs +24 -0
  60. package/dist/Text-0d6b5332.mjs.map +1 -0
  61. package/dist/Title-4ea6531d.mjs +49 -0
  62. package/dist/Title-4ea6531d.mjs.map +1 -0
  63. package/dist/TodoNode-9696576f.mjs +44 -0
  64. package/dist/TodoNode-9696576f.mjs.map +1 -0
  65. package/dist/Topic-5c1f63eb.mjs +41 -0
  66. package/dist/Topic-5c1f63eb.mjs.map +1 -0
  67. package/dist/Transition-3485737d.mjs +15 -0
  68. package/dist/Transition-3485737d.mjs.map +1 -0
  69. package/dist/Warning-5cbf4ef9.mjs +47 -0
  70. package/dist/Warning-5cbf4ef9.mjs.map +1 -0
  71. package/dist/basereference-dc2b6871.mjs +42 -0
  72. package/dist/basereference-dc2b6871.mjs.map +1 -0
  73. package/dist/{entry.js → entry-185f60c1.mjs} +7928 -6974
  74. package/dist/entry-185f60c1.mjs.map +1 -0
  75. package/dist/methods-f5038371.mjs +69 -0
  76. package/dist/methods-f5038371.mjs.map +1 -0
  77. package/dist/style.css +1 -1
  78. package/dist/vue3-sphinx-xml.mjs +12 -0
  79. package/dist/vue3-sphinx-xml.mjs.map +1 -0
  80. package/package.json +8 -9
  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,69 @@
1
+ import { d as A } from "./entry-185f60c1.mjs";
2
+ const f = (c) => {
3
+ for (const l in c)
4
+ return !1;
5
+ return !0;
6
+ }, x = () => {
7
+ const c = (t) => {
8
+ let e = t.indexOf("active");
9
+ e !== -1 ? t[e] = "inactive" : (e = t.indexOf("inactive"), e !== -1 && (t[e] = "active"));
10
+ }, l = (t, e) => {
11
+ const i = t.getAttribute("ids");
12
+ if (i !== null) {
13
+ let r = i.split(" ");
14
+ const s = r.indexOf(e);
15
+ return e && s !== -1 && (r.splice(s, 1), r.unshift(e)), { id: r.shift(), extraIds: r };
16
+ }
17
+ return {};
18
+ }, d = (t, e) => {
19
+ let i = {}, r = [...t.classList];
20
+ e && (r = r.concat(e));
21
+ const s = o(t), n = p(t);
22
+ return r.length && (i.class = r), (!f(n) || !f(s)) && (i.attrs = {
23
+ ...s,
24
+ ...n
25
+ }), i;
26
+ }, p = (t) => {
27
+ const e = ["uri", "ids", "names", "candidates", "classes"], i = ["width"];
28
+ let r = "", s = {};
29
+ for (const n of t.attributes)
30
+ i.includes(n.name) ? r += `${n.name}: ${n.value};` : e.includes(n.name) || (s[n.name] = n.value);
31
+ return r && (s.style = r), s;
32
+ }, o = (t) => {
33
+ const e = t.getAttribute("id");
34
+ return e ? { id: e } : t.getAttribute("ids") && t.getAttribute("ids").length > 0 ? {
35
+ id: t.getAttribute("ids").split(" ")[0]
36
+ } : {};
37
+ }, h = (t) => {
38
+ const i = t.getAttribute("refuri").split("#")[1];
39
+ return i ? "#" + i : "";
40
+ }, b = (t, e) => {
41
+ const i = A(e);
42
+ let s = t.getAttribute("refuri").split("/"), a = e.path.replace(i, "").split("/");
43
+ a.shift(), e.path !== i && a.pop();
44
+ const R = s.pop().split("#")[0];
45
+ for (; s[0] === ".."; )
46
+ s.shift(), a.pop();
47
+ return [...a, ...s, R].join("/");
48
+ }, g = (t) => t.getAttribute("internal") === "True" || u(t), u = (t) => t.hasAttribute("refid");
49
+ return {
50
+ dataObject: d,
51
+ determinePageLocation: h,
52
+ determinePageName: b,
53
+ extractId: o,
54
+ isInternalReference: g,
55
+ isReferenceToCurrentPage: u,
56
+ parentLevelsInRefURI: (t) => {
57
+ let e = t.getAttribute("refuri").split("/"), i = 0;
58
+ for (; e[0] === ".."; )
59
+ e.shift(), i++;
60
+ return i;
61
+ },
62
+ separateIds: l,
63
+ toggleActiveClass: c
64
+ };
65
+ };
66
+ export {
67
+ x as u
68
+ };
69
+ //# sourceMappingURL=methods-f5038371.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"methods-f5038371.mjs","sources":["../src/composables/methods.js"],"sourcesContent":["import { determineRouteUrl } from '../js/utilities'\n\nconst isEmpty = (d) => {\n for (const i in d) {\n return false\n }\n\n return true\n}\n\nexport const useMethods = () => {\n const toggleActiveClass = (classList) => {\n let index = classList.indexOf('active')\n\n if (index !== -1) {\n classList[index] = 'inactive'\n } else {\n index = classList.indexOf('inactive')\n if (index !== -1) {\n classList[index] = 'active'\n }\n }\n }\n\n const separateIds = (element, targetId) => {\n const ids = element.getAttribute('ids')\n if (ids !== null) {\n let splitIds = ids.split(' ')\n const targetIndex = splitIds.indexOf(targetId)\n if (targetId && targetIndex !== -1) {\n splitIds.splice(targetIndex, 1)\n splitIds.unshift(targetId)\n }\n return { id: splitIds.shift(), extraIds: splitIds }\n }\n return {}\n }\n\n const dataObject = (element, additionalClasses) => {\n let dO = {}\n\n let classes = [...element.classList]\n if (additionalClasses) {\n classes = classes.concat(additionalClasses)\n }\n\n const id = extractId(element)\n const attributes = extractAttributes(element)\n\n if (classes.length) {\n dO['class'] = classes\n }\n if (!isEmpty(attributes) || !isEmpty(id)) {\n dO['attrs'] = {\n ...id,\n ...attributes,\n }\n }\n\n return dO\n }\n\n const extractAttributes = (element) => {\n const unrequiredAttrs = ['uri', 'ids', 'names', 'candidates', 'classes']\n const styleAttrs = ['width']\n let style = ''\n let attrDict = {}\n for (const attr of element.attributes) {\n if (styleAttrs.includes(attr.name)) {\n style += `${attr.name}: ${attr.value};`\n } else if (!unrequiredAttrs.includes(attr.name)) {\n attrDict[attr.name] = attr.value\n }\n }\n if (style) {\n attrDict.style = style\n }\n return attrDict\n }\n\n const extractId = (element) => {\n // Inserting the id of the first term in a collection as the contents of the item.\n const id = element.getAttribute('id')\n if (id) {\n return { id }\n }\n if (element.getAttribute('ids') && element.getAttribute('ids').length > 0) {\n const ids = element.getAttribute('ids').split(' ')\n const id = ids[0]\n return {\n id,\n }\n }\n return {}\n }\n\n const determinePageLocation = (element) => {\n const elementRefUri = element.getAttribute('refuri')\n const hash = elementRefUri.split('#')[1]\n return hash ? '#' + hash : ''\n }\n\n const determinePageName = (element, route) => {\n const baseRefUri = determineRouteUrl(route)\n const elementRefUri = element.getAttribute('refuri')\n // Remove page from reference uri\n let splitRefUri = elementRefUri.split('/')\n let routePath = route.path.replace(baseRefUri, '')\n // Remove the baseRefUri and make that our root location\n let splitRoutePath = routePath.split('/')\n // Remove the empty string from the beginning of the array\n splitRoutePath.shift()\n if (route.path !== baseRefUri) {\n // The base reference uri is a special case usually we have to\n // remove the page name from the route as well.\n splitRoutePath.pop()\n }\n // Get the file name from the reference uri\n const filePart = splitRefUri.pop()\n const fileBaseName = filePart.split('#')[0]\n // Remove up route if parent directory name found\n while (splitRefUri[0] === '..') {\n splitRefUri.shift()\n splitRoutePath.pop()\n }\n return [...splitRoutePath, ...splitRefUri, fileBaseName].join('/')\n }\n\n const isInternalReference = (element) => {\n const internal = element.getAttribute('internal') === 'True'\n return internal || isReferenceToCurrentPage(element)\n }\n\n const isReferenceToCurrentPage = (element) => {\n return element.hasAttribute('refid')\n }\n\n const parentLevelsInRefURI = (element) => {\n let splitRefUri = element.getAttribute('refuri').split('/')\n let count = 0\n while (splitRefUri[0] === '..') {\n splitRefUri.shift()\n count++\n }\n\n return count\n }\n\n return {\n dataObject,\n determinePageLocation,\n determinePageName,\n extractId,\n isInternalReference,\n isReferenceToCurrentPage,\n parentLevelsInRefURI,\n separateIds,\n toggleActiveClass,\n }\n}\n"],"names":["isEmpty","d","i","useMethods","toggleActiveClass","classList","index","separateIds","element","targetId","ids","splitIds","targetIndex","dataObject","additionalClasses","dO","classes","id","extractId","attributes","extractAttributes","unrequiredAttrs","styleAttrs","style","attrDict","attr","determinePageLocation","hash","determinePageName","route","baseRefUri","determineRouteUrl","splitRefUri","splitRoutePath","fileBaseName","isInternalReference","isReferenceToCurrentPage","count"],"mappings":"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"}
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .loading-container[data-v-97cc632a]{display:flex;align-items:center}.lds-roller[data-v-97cc632a]{transform:scale(.5);display:inline-block;position:relative;width:80px;height:80px}.lds-roller div[data-v-97cc632a]{animation:lds-roller-97cc632a 1.2s cubic-bezier(.5,0,.5,1) infinite;transform-origin:40px 40px}.lds-roller div[data-v-97cc632a]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:rgb(116,116,116);margin:-4px 0 0 -4px}.lds-roller div[data-v-97cc632a]:nth-child(1){animation-delay:-36ms}.lds-roller div[data-v-97cc632a]:nth-child(1):after{top:63px;left:63px}.lds-roller div[data-v-97cc632a]:nth-child(2){animation-delay:-72ms}.lds-roller div[data-v-97cc632a]:nth-child(2):after{top:68px;left:56px}.lds-roller div[data-v-97cc632a]:nth-child(3){animation-delay:-.108s}.lds-roller div[data-v-97cc632a]:nth-child(3):after{top:71px;left:48px}.lds-roller div[data-v-97cc632a]:nth-child(4){animation-delay:-.144s}.lds-roller div[data-v-97cc632a]:nth-child(4):after{top:72px;left:40px}.lds-roller div[data-v-97cc632a]:nth-child(5){animation-delay:-.18s}.lds-roller div[data-v-97cc632a]:nth-child(5):after{top:71px;left:32px}.lds-roller div[data-v-97cc632a]:nth-child(6){animation-delay:-.216s}.lds-roller div[data-v-97cc632a]:nth-child(6):after{top:68px;left:24px}.lds-roller div[data-v-97cc632a]:nth-child(7){animation-delay:-.252s}.lds-roller div[data-v-97cc632a]:nth-child(7):after{top:63px;left:17px}.lds-roller div[data-v-97cc632a]:nth-child(8){animation-delay:-.288s}.lds-roller div[data-v-97cc632a]:nth-child(8):after{top:56px;left:12px}@keyframes lds-roller-97cc632a{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.toggle-header[data-v-45128990]{cursor:pointer}
1
+ .loading-container[data-v-d51880c8]{display:flex;align-items:center}.lds-roller[data-v-d51880c8]{transform:scale(.5);display:inline-block;position:relative;width:80px;height:80px}.lds-roller div[data-v-d51880c8]{animation:lds-roller-d51880c8 1.2s cubic-bezier(.5,0,.5,1) infinite;transform-origin:40px 40px}.lds-roller div[data-v-d51880c8]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:rgb(116,116,116);margin:-4px 0 0 -4px}.lds-roller div[data-v-d51880c8]:nth-child(1){animation-delay:-36ms}.lds-roller div[data-v-d51880c8]:nth-child(1):after{top:63px;left:63px}.lds-roller div[data-v-d51880c8]:nth-child(2){animation-delay:-72ms}.lds-roller div[data-v-d51880c8]:nth-child(2):after{top:68px;left:56px}.lds-roller div[data-v-d51880c8]:nth-child(3){animation-delay:-.108s}.lds-roller div[data-v-d51880c8]:nth-child(3):after{top:71px;left:48px}.lds-roller div[data-v-d51880c8]:nth-child(4){animation-delay:-.144s}.lds-roller div[data-v-d51880c8]:nth-child(4):after{top:72px;left:40px}.lds-roller div[data-v-d51880c8]:nth-child(5){animation-delay:-.18s}.lds-roller div[data-v-d51880c8]:nth-child(5):after{top:71px;left:32px}.lds-roller div[data-v-d51880c8]:nth-child(6){animation-delay:-.216s}.lds-roller div[data-v-d51880c8]:nth-child(6):after{top:68px;left:24px}.lds-roller div[data-v-d51880c8]:nth-child(7){animation-delay:-.252s}.lds-roller div[data-v-d51880c8]:nth-child(7):after{top:63px;left:17px}.lds-roller div[data-v-d51880c8]:nth-child(8){animation-delay:-.288s}.lds-roller div[data-v-d51880c8]:nth-child(8):after{top:56px;left:12px}@keyframes lds-roller-d51880c8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.toggle-header[data-v-6c083687]{cursor:pointer}
@@ -0,0 +1,12 @@
1
+ import { f as l, i as n } from "./entry-185f60c1.mjs";
2
+ import "@hsorby/vue3-katex";
3
+ import "katex/dist/katex.min.css";
4
+ import "vue";
5
+ import "vue-router";
6
+ import "axios";
7
+ import "path-to-regexp";
8
+ export {
9
+ l as SphinxPage,
10
+ n as installVue3SphinxXml
11
+ };
12
+ //# sourceMappingURL=vue3-sphinx-xml.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue3-sphinx-xml.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue3-sphinx-xml",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://github.com/hsorby/vue3-sphinx-xml#readme",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "documentation",
18
18
  "xml"
19
19
  ],
20
- "module": "dist/vue3-sphinx-xml.es.js",
20
+ "module": "dist/vue3-sphinx-xml.mjs",
21
21
  "files": [
22
22
  "dist",
23
23
  "README.md"
@@ -32,18 +32,17 @@
32
32
  "core-js": "^3.6.5",
33
33
  "katex": "^0.16.2",
34
34
  "path-to-regexp": "^6.2.1",
35
- "pinia": "^2.0.33",
36
- "vue": "^3.2.25",
37
- "vue-router": "^4.0.15"
35
+ "pinia": "^2.1.6",
36
+ "vue": "^3.3.4",
37
+ "vue-router": "^4.2.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@rollup/plugin-buble": "^0.21.3",
41
- "@rollup/plugin-commonjs": "^22.0.0",
42
- "@vitejs/plugin-vue": "^2.3.1",
43
- "rollup": "^2.75.3",
41
+ "@vitejs/plugin-vue": "^4.3.4",
42
+ "rollup": "^3.29.2",
44
43
  "rollup-plugin-scss": "^3.0.0",
45
44
  "rollup-plugin-terser": "^7.0.2",
46
45
  "sass": "^1.38.0",
47
- "vite": "^2.9.5"
46
+ "vite": "^4.4.9"
48
47
  }
49
48
  }
@@ -1,72 +0,0 @@
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, computed, ref, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
21
- import { u as useMethods } from "./methods.js";
22
- import { u as useClasses, a as useChildren } from "./entry.js";
23
- import "@hsorby/vue3-katex";
24
- import "katex/dist/katex.min.css";
25
- import "vue-router";
26
- import "axios";
27
- import "path-to-regexp";
28
- const _hoisted_1 = ["id"];
29
- const _sfc_main = {
30
- props: {
31
- node: {
32
- type: void 0,
33
- default: null
34
- },
35
- componentName: {
36
- type: String
37
- },
38
- properties: {
39
- type: Object
40
- }
41
- },
42
- setup(__props) {
43
- const props = __props;
44
- const { node } = toRefs(props);
45
- const { dataObject, extractId } = useMethods();
46
- const { classes } = useClasses(node);
47
- const { id } = extractId(node.value);
48
- const { children } = useChildren(node);
49
- const combinedClasses = computed(() => {
50
- return ["admonition", ...classes.value];
51
- });
52
- const result = dataObject(node.value, combinedClasses.value);
53
- const attrs = ref({});
54
- attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
55
- class: result.class.join(" ")
56
- });
57
- return (_ctx, _cache) => {
58
- return openBlock(), createElementBlock("div", mergeProps({ id: unref(id) }, attrs.value), [
59
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
60
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
61
- key: "admonition_component_" + index,
62
- node: c.node,
63
- componentName: c.name,
64
- properties: c.properties
65
- }, null, 8, ["node", "componentName", "properties"]);
66
- }), 128))
67
- ], 16, _hoisted_1);
68
- };
69
- }
70
- };
71
- export { _sfc_main as default };
72
- //# sourceMappingURL=Admonition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Admonition.js","sources":["../src/components/templates/Admonition.vue"],"sourcesContent":["<template>\n <div :id=\"id\" :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'admonition_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useMethods } from '../../composables/methods'\nimport { useChildren, useClasses } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { dataObject, extractId } = useMethods()\nconst { classes } = useClasses(node)\n\nconst { id } = extractId(node.value)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['admonition', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\n\nconst attrs = ref({})\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,YAAY,cAAc,WAAY;AAC9C,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,OAAO,UAAU,KAAK,KAAK;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,kBAAkB,SAAS,MAAM;AACrC,aAAO,CAAC,cAAc,GAAG,QAAQ,KAAK;AAAA,IACxC,CAAC;AAED,UAAM,SAAS,WAAW,KAAK,OAAO,gBAAgB,KAAK;AAE3D,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,QAAQ,iCACT,OAAO,QADE;AAAA,MAEZ,OAAO,OAAO,MAAM,KAAK,GAAG;AAAA,IAC9B;;;;;;;;;;;;;;;;"}
@@ -1,42 +0,0 @@
1
- import { toRefs, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { a as useChildren } from "./entry.js";
3
- import "@hsorby/vue3-katex";
4
- import "katex/dist/katex.min.css";
5
- import "vue-router";
6
- import "axios";
7
- import "path-to-regexp";
8
- const _sfc_main = {
9
- props: {
10
- node: {
11
- type: void 0,
12
- default: null
13
- },
14
- componentName: {
15
- type: String
16
- },
17
- properties: {
18
- type: Object
19
- }
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const { node } = toRefs(props);
24
- const { children } = useChildren(node);
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock("blockquote", null, [
27
- createElementVNode("div", null, [
28
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
29
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
30
- key: "blockquote_component_" + index,
31
- node: c.node,
32
- componentName: c.name,
33
- properties: c.properties
34
- }, null, 8, ["node", "componentName", "properties"]);
35
- }), 128))
36
- ])
37
- ]);
38
- };
39
- }
40
- };
41
- export { _sfc_main as default };
42
- //# sourceMappingURL=BlockQuote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockQuote.js","sources":["../src/components/templates/BlockQuote.vue"],"sourcesContent":["<template>\n <blockquote>\n <div>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'blockquote_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n </blockquote>\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;;;;;"}
@@ -1,70 +0,0 @@
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, computed, openBlock, createElementBlock, normalizeProps, guardReactiveProps, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
21
- import { u as useClasses, a as useChildren } 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 "axios";
27
- import "path-to-regexp";
28
- const _sfc_main = {
29
- props: {
30
- node: {
31
- type: void 0,
32
- default: null
33
- },
34
- componentName: {
35
- type: String
36
- },
37
- properties: {
38
- type: Object
39
- }
40
- },
41
- setup(__props) {
42
- const props = __props;
43
- const { dataObject } = useMethods();
44
- const { node } = toRefs(props);
45
- const attrs = ref({});
46
- const { classes } = useClasses(node);
47
- const { children } = useChildren(node);
48
- const combinedClasses = computed(() => {
49
- return ["caption-number", ...classes.value];
50
- });
51
- const result = dataObject(node.value, combinedClasses.value);
52
- attrs.value = __spreadProps(__spreadValues({}, result.attrs), {
53
- class: result.class.join(" ")
54
- });
55
- return (_ctx, _cache) => {
56
- return openBlock(), createElementBlock("span", normalizeProps(guardReactiveProps(attrs.value)), [
57
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
58
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
59
- key: "caption_number_" + index,
60
- node: c.node,
61
- componentName: c.name,
62
- properties: c.properties
63
- }, null, 8, ["node", "componentName", "properties"]);
64
- }), 128))
65
- ], 16);
66
- };
67
- }
68
- };
69
- export { _sfc_main as default };
70
- //# sourceMappingURL=CaptionNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CaptionNumber.js","sources":["../src/components/templates/CaptionNumber.vue"],"sourcesContent":["<template>\n <span :=\"attrs\">\n <component\n v-for=\"(c, index) in children\"\n :key=\"'caption_number_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </span>\n</template>\n\n<script setup>\nimport { computed, toRefs, ref } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { dataObject } = useMethods()\nconst { node } = toRefs(props)\nconst attrs = ref({})\nconst { classes } = useClasses(node)\n\nconst { children } = useChildren(node)\n\nconst combinedClasses = computed(() => {\n return ['caption-number', ...classes.value]\n})\n\nconst result = dataObject(node.value, combinedClasses.value)\nattrs.value = {\n ...result.attrs,\n class: result.class.join(' '),\n }\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,UAAM,EAAE,eAAe,WAAY;AACnC,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,QAAQ,IAAI,EAAE;AACpB,UAAM,EAAE,YAAY,WAAW,IAAI;AAEnC,UAAM,EAAE,aAAa,YAAY,IAAI;AAErC,UAAM,kBAAkB,SAAS,MAAM;AACrC,aAAO,CAAC,kBAAkB,GAAG,QAAQ,KAAK;AAAA,IAC5C,CAAC;AAED,UAAM,SAAS,WAAW,KAAK,OAAO,gBAAgB,KAAK;AAC3D,UAAM,QAAQ,iCACP,OAAO,QADA;AAAA,MAEV,OAAO,OAAO,MAAM,KAAK,GAAG;AAAA,IAC7B;;;;;;;;;;;;;;;;"}
@@ -1,44 +0,0 @@
1
- import { toRefs, computed, openBlock, createElementBlock, Fragment, renderList, unref, normalizeStyle } 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
- }
14
- },
15
- setup(__props) {
16
- const props = __props;
17
- const { properties } = toRefs(props);
18
- const columnWidths = computed(() => {
19
- let sum = 0;
20
- let widths = [];
21
- for (const value of properties.value.colspecs) {
22
- sum += Number(value);
23
- widths.push(Number(value));
24
- }
25
- let percentWidths = [];
26
- for (const value of widths) {
27
- percentWidths.push(value / sum * 100);
28
- }
29
- return percentWidths;
30
- });
31
- return (_ctx, _cache) => {
32
- return openBlock(), createElementBlock("colgroup", null, [
33
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(columnWidths), (v, index) => {
34
- return openBlock(), createElementBlock("col", {
35
- key: "col_" + index,
36
- style: normalizeStyle("width: " + v + "%")
37
- }, null, 4);
38
- }), 128))
39
- ]);
40
- };
41
- }
42
- };
43
- export { _sfc_main as default };
44
- //# sourceMappingURL=ColumnGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColumnGroup.js","sources":["../src/components/templates/ColumnGroup.vue"],"sourcesContent":["<template>\n <colgroup>\n <col\n v-for=\"(v, index) in columnWidths\"\n :key=\"'col_' + index\"\n :style=\"'width: ' + v + '%'\"\n />\n </colgroup>\n</template>\n\n<script setup>\nimport { computed, toRefs } from 'vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { properties } = toRefs(props)\n\nconst columnWidths = computed(() => {\n let sum = 0\n let widths = []\n for (const value of properties.value.colspecs) {\n sum += Number(value)\n widths.push(Number(value))\n }\n let percentWidths = []\n for (const value of widths) {\n percentWidths.push((value / sum) * 100)\n }\n\n return percentWidths\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA0BA,UAAM,EAAE,eAAe,OAAO,KAAK;AAEnC,UAAM,eAAe,SAAS,MAAM;AAClC,UAAI,MAAM;AACV,UAAI,SAAS,CAAE;AACf,iBAAW,SAAS,WAAW,MAAM,UAAU;AAC7C,eAAO,OAAO,KAAK;AACnB,eAAO,KAAK,OAAO,KAAK,CAAC;AAAA,MAC1B;AACD,UAAI,gBAAgB,CAAE;AACtB,iBAAW,SAAS,QAAQ;AAC1B,sBAAc,KAAM,QAAQ,MAAO,GAAG;AAAA,MACvC;AAED,aAAO;AAAA,IACT,CAAC;;;;;;;;;;;;;;"}
package/dist/Comment.js DELETED
@@ -1,34 +0,0 @@
1
- import { createCommentVNode, toRefs, ref, openBlock, createBlock } from "vue";
2
- const _sfc_main$1 = {
3
- props: ["content"],
4
- setup(props) {
5
- return () => createCommentVNode(props.content || "");
6
- }
7
- };
8
- const _sfc_main = {
9
- props: {
10
- node: {
11
- type: void 0,
12
- default: null
13
- },
14
- componentName: {
15
- type: String
16
- },
17
- properties: {
18
- type: Object
19
- }
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const { node } = toRefs(props);
24
- const text = ref("");
25
- for (const n of node.value.childNodes) {
26
- text.value += n.nodeValue;
27
- }
28
- return (_ctx, _cache) => {
29
- return openBlock(), createBlock(_sfc_main$1, { content: text.value }, null, 8, ["content"]);
30
- };
31
- }
32
- };
33
- export { _sfc_main as default };
34
- //# sourceMappingURL=Comment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Comment.js","sources":["../src/components/CommentNode.vue","../src/components/templates/Comment.vue"],"sourcesContent":["<script>\n import { createCommentVNode } from 'vue'\n export default {\n props: ['content'],\n setup(props) {\n return () => createCommentVNode(props.content || '')\n }\n }\n</script>","<template>\n <comment-node :content=\"text\" />\n</template>\n\n<script setup>\nimport { toRefs, ref } from 'vue'\nimport CommentNode from '../CommentNode.vue'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\nconst text = ref('')\n\nfor (const n of node.value.childNodes) {\n text.value += n.nodeValue\n}\n</script>\n"],"names":["_sfc_main"],"mappings":";AAEE,MAAKA,cAAU;AAAA,EACb,OAAO,CAAC,SAAS;AAAA,EACjB,MAAM,OAAO;AACX,WAAO,MAAM,mBAAmB,MAAM,WAAW,EAAE;AAAA,EACrD;AACF;;;;;;;;;;;;;;;;ACcF,UAAM,EAAE,SAAS,OAAO,KAAK;AAC7B,UAAM,OAAO,IAAI,EAAE;AAEnB,eAAW,KAAK,KAAK,MAAM,YAAY;AACrC,WAAK,SAAS,EAAE;AAAA,IAClB;;;;;;;"}
package/dist/Compound.js DELETED
@@ -1,38 +0,0 @@
1
- import { toRefs, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { a as useChildren } from "./entry.js";
3
- import "@hsorby/vue3-katex";
4
- import "katex/dist/katex.min.css";
5
- import "vue-router";
6
- import "axios";
7
- import "path-to-regexp";
8
- const _sfc_main = {
9
- props: {
10
- node: {
11
- type: void 0,
12
- default: null
13
- },
14
- componentName: {
15
- type: String
16
- },
17
- properties: {
18
- type: Object
19
- }
20
- },
21
- setup(__props) {
22
- const props = __props;
23
- const { node } = toRefs(props);
24
- const { children } = useChildren(node);
25
- return (_ctx, _cache) => {
26
- return openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
27
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
28
- key: "compound_component_" + index,
29
- node: c.node,
30
- componentName: c.name,
31
- properties: c.properties
32
- }, null, 8, ["node", "componentName", "properties"]);
33
- }), 128);
34
- };
35
- }
36
- };
37
- export { _sfc_main as default };
38
- //# sourceMappingURL=Compound.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Compound.js","sources":["../src/components/templates/Compound.vue"],"sourcesContent":["<template>\n <component\n v-for=\"(c, index) in children\"\n :key=\"'compound_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n</template>\n\n<script setup>\nimport { toRefs } from 'vue'\n\nimport { useChildren } from '../../composables/computed'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object\n }\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AA6BA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;;;;;;;;;;;;;;"}
package/dist/Container.js DELETED
@@ -1,79 +0,0 @@
1
- import { toRefs, ref, onMounted, openBlock, createElementBlock, normalizeClass, toHandlerKey, Fragment, renderList, unref, createBlock, resolveDynamicComponent } from "vue";
2
- import { _ as _export_sfc, a as useChildren, u as useClasses } from "./entry.js";
3
- import { u as useMethods } from "./methods.js";
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
- var Container_vue_vue_type_style_index_0_scoped_true_lang = "";
10
- const _sfc_main = {
11
- props: {
12
- node: {
13
- type: void 0,
14
- default: null
15
- },
16
- componentName: {
17
- type: String
18
- },
19
- properties: {
20
- type: Object
21
- }
22
- },
23
- setup(__props) {
24
- const props = __props;
25
- const { node } = toRefs(props);
26
- const { children } = useChildren(node);
27
- const { classes } = useClasses(node);
28
- const { toggleActiveClass } = useMethods();
29
- const combinedClasses = ref([]);
30
- const isToggleHeader = ref(false);
31
- const containerElement = ref(null);
32
- combinedClasses.value = [...classes.value];
33
- function toggleHeaderClicked() {
34
- toggleActiveClass(combinedClasses.value);
35
- const index = combinedClasses.value.indexOf("active");
36
- let blockType = index === -1 ? "none" : "block";
37
- let elementSibling = containerElement.value.nextElementSibling;
38
- while (elementSibling !== null) {
39
- elementSibling.style.display = blockType;
40
- elementSibling = elementSibling.nextElementSibling;
41
- }
42
- }
43
- onMounted(() => {
44
- if (classes.value.includes("header") || classes.value.includes("header-left")) {
45
- combinedClasses.value.push("inactive");
46
- const parent = node.value.parentElement;
47
- if (parent) {
48
- if (parent.getAttribute("classes").includes("toggle")) {
49
- isToggleHeader.value = true;
50
- combinedClasses.value.push("toggle-header");
51
- }
52
- }
53
- }
54
- if (classes.value.includes("tab2name")) {
55
- console.log("***** IN USE tab2name found ??? *****");
56
- }
57
- });
58
- return (_ctx, _cache) => {
59
- return openBlock(), createElementBlock("div", {
60
- class: normalizeClass(combinedClasses.value),
61
- [toHandlerKey(isToggleHeader.value && `click`)]: toggleHeaderClicked,
62
- ref_key: "containerElement",
63
- ref: containerElement
64
- }, [
65
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(children), (c, index) => {
66
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
67
- key: "container_component_" + index,
68
- node: c.node,
69
- componentName: c.name,
70
- properties: c.properties
71
- }, null, 8, ["node", "componentName", "properties"]);
72
- }), 128))
73
- ], 16);
74
- };
75
- }
76
- };
77
- var Container = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-45128990"]]);
78
- export { Container as default };
79
- //# sourceMappingURL=Container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Container.js","sources":["../src/components/templates/Container.vue"],"sourcesContent":["<template>\n <div\n :class=\"combinedClasses\"\n @[isToggleHeader&&`click`]=\"toggleHeaderClicked\"\n ref=\"containerElement\"\n >\n <component\n v-for=\"(c, index) in children\"\n :key=\"'container_component_' + index\"\n :is=\"c.component\"\n :node=\"c.node\"\n :componentName=\"c.name\"\n :properties=\"c.properties\"\n />\n </div>\n</template>\n\n<script setup>\nimport { onMounted, ref, toRefs } from 'vue'\n\nimport { useChildren, useClasses } from '../../composables/computed'\nimport { useMethods } from '../../composables/methods'\n\nconst props = defineProps({\n node: {\n type: undefined,\n default: null,\n },\n componentName: {\n type: String,\n },\n properties: {\n type: Object,\n },\n})\n\nconst { node } = toRefs(props)\n\nconst { children } = useChildren(node)\nconst { classes } = useClasses(node)\nconst { toggleActiveClass } = useMethods()\n\nconst combinedClasses = ref([])\nconst isToggleHeader = ref(false)\nconst containerElement = ref(null)\n\ncombinedClasses.value = [...classes.value]\n\nfunction toggleHeaderClicked() {\n toggleActiveClass(combinedClasses.value)\n const index = combinedClasses.value.indexOf('active')\n let blockType = index === -1 ? 'none' : 'block'\n\n let elementSibling = containerElement.value.nextElementSibling\n while (elementSibling !== null) {\n elementSibling.style.display = blockType\n elementSibling = elementSibling.nextElementSibling\n }\n}\n\nonMounted(() => {\n if (\n classes.value.includes('header') ||\n classes.value.includes('header-left')\n ) {\n combinedClasses.value.push('inactive')\n const parent = node.value.parentElement\n if (parent) {\n if (parent.getAttribute('classes').includes('toggle')) {\n isToggleHeader.value = true\n combinedClasses.value.push('toggle-header')\n }\n }\n }\n\n if (classes.value.includes('tab2name')) {\n console.log('***** IN USE tab2name found ??? *****')\n }\n})\n</script>\n\n<style scoped>\n.toggle-header {\n cursor: pointer;\n}\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAoCA,UAAM,EAAE,SAAS,OAAO,KAAK;AAE7B,UAAM,EAAE,aAAa,YAAY,IAAI;AACrC,UAAM,EAAE,YAAY,WAAW,IAAI;AACnC,UAAM,EAAE,sBAAsB,WAAY;AAE1C,UAAM,kBAAkB,IAAI,EAAE;AAC9B,UAAM,iBAAiB,IAAI,KAAK;AAChC,UAAM,mBAAmB,IAAI,IAAI;AAEjC,oBAAgB,QAAQ,CAAC,GAAG,QAAQ,KAAK;AAEzC,mCAA+B;AAC7B,wBAAkB,gBAAgB,KAAK;AACvC,YAAM,QAAQ,gBAAgB,MAAM,QAAQ,QAAQ;AACpD,UAAI,YAAY,UAAU,KAAK,SAAS;AAExC,UAAI,iBAAiB,iBAAiB,MAAM;AAC5C,aAAO,mBAAmB,MAAM;AAC9B,uBAAe,MAAM,UAAU;AAC/B,yBAAiB,eAAe;AAAA,MACjC;AAAA,IACH;AAEA,cAAU,MAAM;AACd,UACE,QAAQ,MAAM,SAAS,QAAQ,KAC/B,QAAQ,MAAM,SAAS,aAAa,GACpC;AACA,wBAAgB,MAAM,KAAK,UAAU;AACrC,cAAM,SAAS,KAAK,MAAM;AAC1B,YAAI,QAAQ;AACV,cAAI,OAAO,aAAa,SAAS,EAAE,SAAS,QAAQ,GAAG;AACrD,2BAAe,QAAQ;AACvB,4BAAgB,MAAM,KAAK,eAAe;AAAA,UAC3C;AAAA,QACF;AAAA,MACF;AAED,UAAI,QAAQ,MAAM,SAAS,UAAU,GAAG;AACtC,gBAAQ,IAAI,uCAAuC;AAAA,MACpD;AAAA,IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,22 +0,0 @@
1
- import { openBlock, createBlock, resolveDynamicComponent, withCtx, createElementBlock, Fragment, renderList } from "vue";
2
- const _sfc_main = {
3
- setup(__props) {
4
- return (_ctx, _cache) => {
5
- return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), null, {
6
- default: withCtx(() => [
7
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.children, (c, index) => {
8
- return openBlock(), createBlock(resolveDynamicComponent(c.component), {
9
- key: "standard_element_component_" + index,
10
- node: c.node,
11
- componentName: c.name,
12
- properties: c.properties
13
- }, null, 8, ["node", "componentName", "properties"]);
14
- }), 128))
15
- ]),
16
- _: 1
17
- });
18
- };
19
- }
20
- };
21
- export { _sfc_main as default };
22
- //# sourceMappingURL=DirectElementMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DirectElementMap.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}