vue3-sphinx-xml 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Admonition-mKTxm7FA.mjs +36 -0
- package/dist/Admonition-mKTxm7FA.mjs.map +1 -0
- package/dist/BlockQuote-CHndoK9X.mjs +34 -0
- package/dist/BlockQuote-CHndoK9X.mjs.map +1 -0
- package/dist/CaptionNumber-sPHsgDmY.mjs +36 -0
- package/dist/CaptionNumber-sPHsgDmY.mjs.map +1 -0
- package/dist/ColumnGroup-3gX9uzXr.mjs +37 -0
- package/dist/ColumnGroup-3gX9uzXr.mjs.map +1 -0
- package/dist/Comment-BazBmRUy.mjs +31 -0
- package/dist/Comment-BazBmRUy.mjs.map +1 -0
- package/dist/Compound-CuyWvjJc.mjs +30 -0
- package/dist/Compound-CuyWvjJc.mjs.map +1 -0
- package/dist/Container-BI_-sUj5.mjs +50 -0
- package/dist/Container-BI_-sUj5.mjs.map +1 -0
- package/dist/DirectElementMap-BxB8uEd3.mjs +21 -0
- package/dist/DirectElementMap-BxB8uEd3.mjs.map +1 -0
- package/dist/DownloadReference-Coj1rk-Q.mjs +36 -0
- package/dist/DownloadReference-Coj1rk-Q.mjs.map +1 -0
- package/dist/Figure-cm9jrp4J.mjs +38 -0
- package/dist/Figure-cm9jrp4J.mjs.map +1 -0
- package/dist/FigureCaption-CEewNKB3.mjs +41 -0
- package/dist/FigureCaption-CEewNKB3.mjs.map +1 -0
- package/dist/Footnote-CsDVGKIf.mjs +33 -0
- package/dist/Footnote-CsDVGKIf.mjs.map +1 -0
- package/dist/FootnoteReference-mjr_CUNC.mjs +39 -0
- package/dist/FootnoteReference-mjr_CUNC.mjs.map +1 -0
- package/dist/Image-DS2T9dhX.mjs +36 -0
- package/dist/Image-DS2T9dhX.mjs.map +1 -0
- package/dist/Legend-Buf610bh.mjs +35 -0
- package/dist/Legend-Buf610bh.mjs.map +1 -0
- package/dist/LineBlock-CC9E637d.mjs +33 -0
- package/dist/LineBlock-CC9E637d.mjs.map +1 -0
- package/dist/LineSingle-Dlzi5iIV.mjs +34 -0
- package/dist/LineSingle-Dlzi5iIV.mjs.map +1 -0
- package/dist/Literal-DYTpCjPv.mjs +42 -0
- package/dist/Literal-DYTpCjPv.mjs.map +1 -0
- package/dist/LiteralBlock-DKVDMrJf.mjs +37 -0
- package/dist/LiteralBlock-DKVDMrJf.mjs.map +1 -0
- package/dist/Math-DMrgdPIM.mjs +28 -0
- package/dist/Math-DMrgdPIM.mjs.map +1 -0
- package/dist/MathBlock-DdqKjCSS.mjs +59 -0
- package/dist/MathBlock-DdqKjCSS.mjs.map +1 -0
- package/dist/Note-BlaELec8.mjs +34 -0
- package/dist/Note-BlaELec8.mjs.map +1 -0
- package/dist/NumberReference-bjITftY4.mjs +48 -0
- package/dist/NumberReference-bjITftY4.mjs.map +1 -0
- package/dist/Problematic-CVEE4P8F.mjs +36 -0
- package/dist/Problematic-CVEE4P8F.mjs.map +1 -0
- package/dist/Raw-DuZmU9hd.mjs +10 -0
- package/dist/Raw-DuZmU9hd.mjs.map +1 -0
- package/dist/Reference-Orh-jOnR.mjs +53 -0
- package/dist/Reference-Orh-jOnR.mjs.map +1 -0
- package/dist/Section-CdTfeVfc.mjs +37 -0
- package/dist/Section-CdTfeVfc.mjs.map +1 -0
- package/dist/Skip-CRGkjuMM.mjs +19 -0
- package/dist/Skip-CRGkjuMM.mjs.map +1 -0
- package/dist/StandardElement-CBBrXX4Q.mjs +57 -0
- package/dist/StandardElement-CBBrXX4Q.mjs.map +1 -0
- package/dist/Text-CT8nEMkp.mjs +24 -0
- package/dist/Text-CT8nEMkp.mjs.map +1 -0
- package/dist/Title-3Cns5zt2.mjs +44 -0
- package/dist/Title-3Cns5zt2.mjs.map +1 -0
- package/dist/TodoNode-BR2gUVop.mjs +38 -0
- package/dist/TodoNode-BR2gUVop.mjs.map +1 -0
- package/dist/Topic-CGDYI81Y.mjs +36 -0
- package/dist/Topic-CGDYI81Y.mjs.map +1 -0
- package/dist/Transition-CWMp4Zlv.mjs +15 -0
- package/dist/Transition-CWMp4Zlv.mjs.map +1 -0
- package/dist/Warning-Cl6MS7S9.mjs +42 -0
- package/dist/Warning-Cl6MS7S9.mjs.map +1 -0
- package/dist/basereference-CBz3BfwU.mjs +42 -0
- package/dist/basereference-CBz3BfwU.mjs.map +1 -0
- package/dist/{entry.js → entry-BmRN0Y-U.mjs} +7954 -6997
- package/dist/entry-BmRN0Y-U.mjs.map +1 -0
- package/dist/methods-DeDVNJrB.mjs +69 -0
- package/dist/methods-DeDVNJrB.mjs.map +1 -0
- package/dist/style.css +1 -1
- package/dist/vue3-sphinx-xml.mjs +8 -0
- package/dist/vue3-sphinx-xml.mjs.map +1 -0
- package/package.json +16 -18
- package/dist/Admonition.js +0 -72
- package/dist/Admonition.js.map +0 -1
- package/dist/BlockQuote.js +0 -42
- package/dist/BlockQuote.js.map +0 -1
- package/dist/CaptionNumber.js +0 -70
- package/dist/CaptionNumber.js.map +0 -1
- package/dist/ColumnGroup.js +0 -44
- package/dist/ColumnGroup.js.map +0 -1
- package/dist/Comment.js +0 -34
- package/dist/Comment.js.map +0 -1
- package/dist/Compound.js +0 -38
- package/dist/Compound.js.map +0 -1
- package/dist/Container.js +0 -79
- package/dist/Container.js.map +0 -1
- package/dist/DirectElementMap.js +0 -22
- package/dist/DirectElementMap.js.map +0 -1
- package/dist/DownloadReference.js +0 -47
- package/dist/DownloadReference.js.map +0 -1
- package/dist/Figure.js +0 -54
- package/dist/Figure.js.map +0 -1
- package/dist/FigureCaption.js +0 -76
- package/dist/FigureCaption.js.map +0 -1
- package/dist/Footnote.js +0 -44
- package/dist/Footnote.js.map +0 -1
- package/dist/FootnoteReference.js +0 -48
- package/dist/FootnoteReference.js.map +0 -1
- package/dist/Image.js +0 -52
- package/dist/Image.js.map +0 -1
- package/dist/Legend.js +0 -44
- package/dist/Legend.js.map +0 -1
- package/dist/LineBlock.js +0 -44
- package/dist/LineBlock.js.map +0 -1
- package/dist/LineSingle.js +0 -45
- package/dist/LineSingle.js.map +0 -1
- package/dist/Literal.js +0 -63
- package/dist/Literal.js.map +0 -1
- package/dist/LiteralBlock.js +0 -49
- package/dist/LiteralBlock.js.map +0 -1
- package/dist/Math.js +0 -25
- package/dist/Math.js.map +0 -1
- package/dist/MathBlock.js +0 -77
- package/dist/MathBlock.js.map +0 -1
- package/dist/Note.js +0 -47
- package/dist/Note.js.map +0 -1
- package/dist/NumberReference.js +0 -59
- package/dist/NumberReference.js.map +0 -1
- package/dist/Problematic.js +0 -44
- package/dist/Problematic.js.map +0 -1
- package/dist/Raw.js +0 -10
- package/dist/Raw.js.map +0 -1
- package/dist/Reference.js +0 -58
- package/dist/Reference.js.map +0 -1
- package/dist/Section.js +0 -52
- package/dist/Section.js.map +0 -1
- package/dist/Skip.js +0 -18
- package/dist/Skip.js.map +0 -1
- package/dist/StandardElement.js +0 -99
- package/dist/StandardElement.js.map +0 -1
- package/dist/Text.js +0 -23
- package/dist/Text.js.map +0 -1
- package/dist/Title.js +0 -65
- package/dist/Title.js.map +0 -1
- package/dist/TodoNode.js +0 -53
- package/dist/TodoNode.js.map +0 -1
- package/dist/Topic.js +0 -48
- package/dist/Topic.js.map +0 -1
- package/dist/Transition.js +0 -9
- package/dist/Transition.js.map +0 -1
- package/dist/Warning.js +0 -55
- package/dist/Warning.js.map +0 -1
- package/dist/basereference.js +0 -54
- package/dist/basereference.js.map +0 -1
- package/dist/entry.js.map +0 -1
- package/dist/methods.js +0 -148
- package/dist/methods.js.map +0 -1
- package/dist/vue3-sphinx-xml.es.js +0 -8
- package/dist/vue3-sphinx-xml.es.js.map +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { d as A } from "./entry-BmRN0Y-U.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-DeDVNJrB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"methods-DeDVNJrB.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-
|
|
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:#747474;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 @@
|
|
|
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.
|
|
3
|
+
"version": "0.5.0",
|
|
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.
|
|
20
|
+
"module": "dist/vue3-sphinx-xml.mjs",
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
23
|
"README.md"
|
|
@@ -27,23 +27,21 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@hsorby/vue3-highlightjs": "^1.0.7",
|
|
30
|
-
"@hsorby/vue3-katex": "^0.6.0-rc.
|
|
31
|
-
"axios": "^
|
|
32
|
-
"core-js": "^3.
|
|
33
|
-
"katex": "^0.16.
|
|
34
|
-
"path-to-regexp": "^
|
|
35
|
-
"pinia": "^2.
|
|
36
|
-
"vue": "^3.
|
|
37
|
-
"vue-router": "^4.
|
|
30
|
+
"@hsorby/vue3-katex": "^0.6.0-rc.7",
|
|
31
|
+
"axios": "^1.7.7",
|
|
32
|
+
"core-js": "^3.38.1",
|
|
33
|
+
"katex": "^0.16.11",
|
|
34
|
+
"path-to-regexp": "^8.2.0",
|
|
35
|
+
"pinia": "^2.2.5",
|
|
36
|
+
"vue": "^3.5.12",
|
|
37
|
+
"vue-router": "^4.4.5"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@rollup/plugin-buble": "^0.
|
|
41
|
-
"@
|
|
42
|
-
"
|
|
43
|
-
"rollup": "^
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"sass": "^1.38.0",
|
|
47
|
-
"vite": "^2.9.5"
|
|
40
|
+
"@rollup/plugin-buble": "^1.0.3",
|
|
41
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
42
|
+
"rollup": "^4.24.3",
|
|
43
|
+
"rollup-plugin-scss": "^4.0.0",
|
|
44
|
+
"sass": "^1.80.5",
|
|
45
|
+
"vite": "^5.4.10"
|
|
48
46
|
}
|
|
49
47
|
}
|
package/dist/Admonition.js
DELETED
|
@@ -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
|
package/dist/Admonition.js.map
DELETED
|
@@ -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;;;;;;;;;;;;;;;;"}
|
package/dist/BlockQuote.js
DELETED
|
@@ -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
|
package/dist/BlockQuote.js.map
DELETED
|
@@ -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;;;;;;;;;;;;;;;;;;"}
|
package/dist/CaptionNumber.js
DELETED
|
@@ -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;;;;;;;;;;;;;;;;"}
|
package/dist/ColumnGroup.js
DELETED
|
@@ -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
|
package/dist/ColumnGroup.js.map
DELETED
|
@@ -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
|
package/dist/Comment.js.map
DELETED
|
@@ -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
|
package/dist/Compound.js.map
DELETED
|
@@ -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
|
package/dist/Container.js.map
DELETED
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/DirectElementMap.js
DELETED
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;"}
|