@fangzhongya/vue-archive 0.0.7 → 0.0.8
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/README.md +3 -2
- package/dist/node/index.cjs +135 -71
- package/dist/node/index.d.cts +8 -0
- package/dist/node/index.d.ts +8 -0
- package/dist/node/index.js +118 -54
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.cjs +1 -0
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-LPMR5W6M.js +9 -0
- package/dist/packages/components/aside/index.vue.cjs +1 -1
- package/dist/packages/components/aside/index.vue.js +43 -45
- package/dist/packages/components/boxurl/index.vue.cjs +1 -1
- package/dist/packages/components/boxurl/index.vue.js +34 -37
- package/dist/packages/components/choice/choice.vue.cjs +1 -1
- package/dist/packages/components/choice/choice.vue.js +29 -32
- package/dist/packages/components/choice/index.vue.cjs +1 -1
- package/dist/packages/components/choice/index.vue.js +39 -42
- package/dist/packages/components/code/highlight.vue2.cjs +1 -1
- package/dist/packages/components/code/highlight.vue2.js +1 -1
- package/dist/packages/components/code/index.vue.cjs +1 -1
- package/dist/packages/components/code/index.vue.js +79 -87
- package/dist/packages/components/compo/ftable.vue.cjs +1 -1
- package/dist/packages/components/compo/ftable.vue.js +15 -15
- package/dist/packages/components/compo/index.cjs +1 -1
- package/dist/packages/components/compo/index.js +86 -97
- package/dist/packages/components/compo/index.vue.cjs +1 -1
- package/dist/packages/components/compo/index.vue.js +33 -34
- package/dist/packages/components/compo/info.vue.cjs +1 -1
- package/dist/packages/components/compo/info.vue.js +22 -25
- package/dist/packages/components/compo/top.cjs +1 -1
- package/dist/packages/components/compo/top.js +21 -21
- package/dist/packages/components/main/index.vue.cjs +1 -1
- package/dist/packages/components/main/index.vue.js +16 -17
- package/dist/packages/components/md/index.vue.cjs +1 -1
- package/dist/packages/components/md/index.vue.js +28 -32
- package/dist/packages/components/test/index.cjs +1 -1
- package/dist/packages/components/test/index.js +39 -42
- package/dist/packages/components/test/index.vue.cjs +1 -1
- package/dist/packages/components/test/index.vue.js +44 -49
- package/dist/packages/components/use/code.cjs +1 -1
- package/dist/packages/components/use/code.js +3 -3
- package/dist/packages/components/use/index.cjs +1 -1
- package/dist/packages/components/use/index.js +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/choice/index.vue.js +32 -34
- package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/expose/index.vue.js +18 -19
- package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/form/index.vue.js +110 -114
- package/dist/packages/components/use/retrie/function/index.vue.cjs +2 -2
- package/dist/packages/components/use/retrie/function/index.vue.js +1 -4
- package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/input/index.vue.js +20 -21
- package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/number/index.vue.js +12 -13
- package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/select/index.vue.js +21 -23
- package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/slot/index.vue.js +15 -16
- package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -1
- package/dist/packages/components/use/retrie/string/index.vue.js +14 -15
- package/dist/packages/components/use/set-emit.vue.cjs +1 -1
- package/dist/packages/components/use/set-emit.vue.js +20 -24
- package/dist/packages/components/use/set-expose.vue.cjs +1 -1
- package/dist/packages/components/use/set-expose.vue.js +15 -18
- package/dist/packages/components/use/set-props.vue.cjs +1 -1
- package/dist/packages/components/use/set-props.vue.js +48 -49
- package/dist/packages/config.cjs +1 -1
- package/dist/packages/config.d.ts +8 -1
- package/dist/packages/config.js +1 -1
- package/dist/packages/directives/adjust/index copy.d.ts +6 -0
- package/dist/packages/directives/adjust/index.cjs +1 -1
- package/dist/packages/directives/adjust/index.js +96 -97
- package/dist/packages/page/comprops/index.vue2.cjs +1 -1
- package/dist/packages/page/comprops/index.vue2.js +65 -71
- package/dist/packages/page/index/index.vue2.cjs +1 -1
- package/dist/packages/page/index/index.vue2.js +19 -23
- package/dist/packages/page/single/index.vue2.cjs +1 -1
- package/dist/packages/page/single/index.vue2.js +46 -49
- package/dist/packages/router/index.cjs +1 -1
- package/dist/packages/router/index.js +44 -46
- package/dist/packages/utils/common.cjs +1 -1
- package/dist/packages/utils/common.d.ts +4 -0
- package/dist/packages/utils/common.js +57 -54
- package/dist/packages/utils/glob.cjs +3 -3
- package/dist/packages/utils/glob.d.ts +1 -1
- package/dist/packages/utils/glob.js +269 -227
- package/dist/packages/utils/props.cjs +1 -1
- package/dist/packages/utils/props.js +34 -28
- package/dist/src/components/common/cs3.d.ts +4 -0
- package/dist/src/components/common/index.d.ts +4 -0
- package/dist/src/components/cs/expose/index.d.ts +4 -1
- package/dist/src/components/cs/expose/src/index.vue.d.ts +4 -1
- package/dist/vue-archive.css +1 -1
- package/package.json +18 -19
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.8-77/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.cjs +0 -1
- package/dist/node_modules/.pnpm/@fangzhongya_utils@0.0.8-77/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -9
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-5RZYHE3X.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-APKFW4LU.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-APKFW4LU.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VBS6YE6H.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-VKE5JARB.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-XUL6LPTN.js +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@fangzhongya_utils@0.0.8-77 → @fangzhongya_utils@0.0.24}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_0b670f4f8863792fd47bf820772b9cbf → @highlightjs_vue-plugin@2.1_b586068ec461434c266304f56a34d01a}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +0 -0
- /package/dist/node_modules/.pnpm/{@highlightjs_vue-plugin@2.1_0b670f4f8863792fd47bf820772b9cbf → @highlightjs_vue-plugin@2.1_b586068ec461434c266304f56a34d01a}/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +0 -0
|
@@ -1,167 +1,182 @@
|
|
|
1
|
-
import { getConfig as
|
|
2
|
-
import { getRawValue as
|
|
3
|
-
import { humpToLine as
|
|
4
|
-
import { lineToLargeHump as
|
|
5
|
-
import { firstLower as
|
|
6
|
-
import { duplicateRemoval as
|
|
7
|
-
import { asyncMergeArray as
|
|
8
|
-
import { getSuffix as
|
|
9
|
-
import { getTextImport as
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return
|
|
1
|
+
import { getConfig as T } from "../config.js";
|
|
2
|
+
import { getRawValue as P, isComprops as b, isCurprops as v, defaultExtensions as S, getComponentsArr as B } from "./common.js";
|
|
3
|
+
import { humpToLine as w } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
|
|
4
|
+
import { lineToLargeHump as L } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
|
|
5
|
+
import { firstLower as j } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
|
|
6
|
+
import { duplicateRemoval as F } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
|
|
7
|
+
import { asyncMergeArray as A } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js";
|
|
8
|
+
import { getSuffix as h } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.24/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
|
|
9
|
+
import { getTextImport as G } from "./index.js";
|
|
10
|
+
const c = {}, m = {}, I = [], K = {}, U = {}, x = {};
|
|
11
|
+
function H() {
|
|
12
|
+
return T("example");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const
|
|
14
|
+
function $(e, t, s) {
|
|
15
|
+
const n = Object.assign(
|
|
16
16
|
{
|
|
17
17
|
exampless: [],
|
|
18
18
|
examplessRaw: []
|
|
19
19
|
},
|
|
20
20
|
t,
|
|
21
|
-
|
|
22
|
-
), a = [], r =
|
|
21
|
+
s
|
|
22
|
+
), a = [], r = n.examples;
|
|
23
23
|
r && Object.keys(r).forEach((o) => {
|
|
24
|
-
a.push(o),
|
|
24
|
+
a.push(o), U[o] = r[o];
|
|
25
25
|
});
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})) : (
|
|
30
|
-
|
|
31
|
-
})),
|
|
26
|
+
const l = n.examplesRaw, i = [];
|
|
27
|
+
n.urls && n.urls.length > 0 ? (n.exampless = n.urls, n.urls.forEach((o) => {
|
|
28
|
+
i.push(o), l && (x[o] = W(l, o));
|
|
29
|
+
})) : (n.exampless = a, l && Object.keys(l).forEach((o) => {
|
|
30
|
+
i.push(o), l && (x[o] = W(l, o));
|
|
31
|
+
})), n.examples = void 0, n.examplessRaw = i, n.examplesRaw = void 0, K[e] = n;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function W(e, t) {
|
|
34
34
|
return typeof e == "function" ? e : e && (e[t] || e);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const C = {};
|
|
37
|
+
function q(e) {
|
|
38
|
+
const t = T("resolve");
|
|
39
|
+
if (C[e])
|
|
40
|
+
return C[e];
|
|
41
|
+
for (let s of t)
|
|
42
|
+
if (e.startsWith(s.find + "/")) {
|
|
43
|
+
const a = s.replacement.replaceAll("\\", "/") + e.replace(s.find + "/", "/");
|
|
44
|
+
return C[e] = a, a;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
async function z(e, t) {
|
|
48
|
+
let s = "";
|
|
38
49
|
if (t == "vue") {
|
|
39
50
|
let a = new RegExp(/(<script([^>]*)>)((.|\n|\r)*)(<\/script>)/g).exec(e);
|
|
40
51
|
if (a) {
|
|
41
|
-
|
|
42
|
-
const r = /((.|\n|\r)*)<\/script>/g.exec(
|
|
43
|
-
let
|
|
44
|
-
r && (
|
|
45
|
-
` +
|
|
52
|
+
s = a[3];
|
|
53
|
+
const r = /((.|\n|\r)*)<\/script>/g.exec(s), l = /(<script([^>]*)>)((.|\n|\r)*)/g.exec(s);
|
|
54
|
+
let i = s;
|
|
55
|
+
r && (i = r[1]), l && (i = i + `
|
|
56
|
+
` + l[3]), s = i;
|
|
46
57
|
}
|
|
47
|
-
} else (t == "js" || t == "ts" || t == "") && (
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
let a = s == null ? void 0 : s.map((i) => i.n);
|
|
58
|
+
} else (t == "js" || t == "ts" || t == "") && (s = e);
|
|
59
|
+
if (s) {
|
|
60
|
+
let a = (await G(s))?.map((l) => l.n);
|
|
51
61
|
const r = [];
|
|
52
|
-
return a && a.length > 0 && a.forEach((
|
|
53
|
-
|
|
62
|
+
return a && a.length > 0 && a.forEach((l) => {
|
|
63
|
+
if (l)
|
|
64
|
+
if (l.startsWith("./") || l.startsWith("../"))
|
|
65
|
+
r.push(l);
|
|
66
|
+
else {
|
|
67
|
+
const i = q(l);
|
|
68
|
+
i && r.push(i);
|
|
69
|
+
}
|
|
54
70
|
}), r;
|
|
55
71
|
}
|
|
56
72
|
}
|
|
57
|
-
function
|
|
73
|
+
function pe(e) {
|
|
58
74
|
return new Promise((t) => {
|
|
59
|
-
e ? e.raw ? t(e.raw) : e.getRaw ? e.getRaw(e).then((
|
|
60
|
-
const
|
|
61
|
-
e.raw =
|
|
75
|
+
e ? e.raw ? t(e.raw) : e.getRaw ? e.getRaw(e).then((s) => {
|
|
76
|
+
const n = R(s);
|
|
77
|
+
e.raw = n, e.getRaw = null, t(n);
|
|
62
78
|
}) : t("") : t("");
|
|
63
79
|
});
|
|
64
80
|
}
|
|
65
|
-
function
|
|
81
|
+
function D(e, t) {
|
|
66
82
|
e = (e || "") + "";
|
|
67
|
-
let
|
|
83
|
+
let s = "";
|
|
68
84
|
switch (e) {
|
|
69
85
|
case "1":
|
|
70
|
-
|
|
86
|
+
s = t.tdir + "/";
|
|
71
87
|
break;
|
|
72
88
|
case "2":
|
|
73
|
-
|
|
89
|
+
s = t.adir + "/";
|
|
74
90
|
break;
|
|
75
91
|
case "3":
|
|
76
|
-
|
|
92
|
+
s = t.tdir + "/" + t.adir + "/";
|
|
77
93
|
break;
|
|
78
94
|
}
|
|
79
|
-
return
|
|
95
|
+
return s;
|
|
80
96
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
let s = h(t.name), a = [];
|
|
97
|
+
function J(e, t, s) {
|
|
98
|
+
e = (e || "") + "", s = (s || "") + "";
|
|
99
|
+
let n = w(t.name), a = [];
|
|
85
100
|
const r = Object.values(t.aliass || {});
|
|
86
101
|
if (e === "1")
|
|
87
|
-
t.alias && a.push(t.alias + "-" +
|
|
102
|
+
t.alias && a.push(t.alias + "-" + n);
|
|
88
103
|
else if (e === "2")
|
|
89
|
-
r && r.length > 0 && r.forEach((
|
|
90
|
-
a.push(
|
|
104
|
+
r && r.length > 0 && r.forEach((i) => {
|
|
105
|
+
a.push(i + "-" + n);
|
|
91
106
|
});
|
|
92
107
|
else if (e === "3") {
|
|
93
|
-
let
|
|
94
|
-
t.alias && (
|
|
95
|
-
a.push(
|
|
108
|
+
let i = "";
|
|
109
|
+
t.alias && (i = t.alias + "-"), r?.forEach((o) => {
|
|
110
|
+
a.push(i + o + "-" + n);
|
|
96
111
|
});
|
|
97
|
-
} else e === "4" ?
|
|
98
|
-
a.push(
|
|
99
|
-
}) : e == "9" && (a.push(
|
|
100
|
-
a.push(
|
|
112
|
+
} else e === "4" ? t.aliasNames?.forEach((i) => {
|
|
113
|
+
a.push(w(i));
|
|
114
|
+
}) : e == "9" && (a.push(n), t.aliasNames?.forEach((i) => {
|
|
115
|
+
a.push(w(i));
|
|
101
116
|
}));
|
|
102
|
-
a.length == 0 && a.push(
|
|
103
|
-
let
|
|
104
|
-
return
|
|
105
|
-
let
|
|
106
|
-
|
|
107
|
-
}) :
|
|
108
|
-
let
|
|
109
|
-
|
|
110
|
-
}) :
|
|
117
|
+
a.length == 0 && a.push(n);
|
|
118
|
+
let l = [];
|
|
119
|
+
return s === "1" ? a.forEach((i) => {
|
|
120
|
+
let o = L(i);
|
|
121
|
+
l.push(o, j(o));
|
|
122
|
+
}) : s === "2" ? a.forEach((i) => {
|
|
123
|
+
let o = L(i);
|
|
124
|
+
l.push(i, o, j(o));
|
|
125
|
+
}) : l = [...a], l = [...new Set(l)], l;
|
|
111
126
|
}
|
|
112
|
-
function
|
|
127
|
+
function Q(e, t, s, n) {
|
|
113
128
|
const a = [];
|
|
114
|
-
return
|
|
115
|
-
for (let
|
|
116
|
-
const
|
|
117
|
-
if (r == e +
|
|
129
|
+
return s.examplessRaw.forEach((r) => {
|
|
130
|
+
for (let l = 0; l < t.length; l++) {
|
|
131
|
+
const i = t[l];
|
|
132
|
+
if (r == e + i + "/" + s.md + ".md") {
|
|
118
133
|
a.push({
|
|
119
134
|
topurl: e,
|
|
120
|
-
comkey:
|
|
121
|
-
suffix:
|
|
122
|
-
name:
|
|
123
|
-
value:
|
|
135
|
+
comkey: n.key,
|
|
136
|
+
suffix: h(r),
|
|
137
|
+
name: n.name,
|
|
138
|
+
value: i,
|
|
124
139
|
key: r,
|
|
125
140
|
raw: "",
|
|
126
|
-
getRaw:
|
|
141
|
+
getRaw: P(x, r)
|
|
127
142
|
});
|
|
128
143
|
break;
|
|
129
144
|
}
|
|
130
145
|
}
|
|
131
146
|
}), a;
|
|
132
147
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
135
|
-
const t =
|
|
148
|
+
function N(e) {
|
|
149
|
+
g();
|
|
150
|
+
const t = c[e];
|
|
136
151
|
if (t.tests)
|
|
137
152
|
return t.tests;
|
|
138
153
|
{
|
|
139
|
-
const
|
|
140
|
-
|
|
154
|
+
const s = K[t.dir], n = s.dir + D(s.level || 0, t), a = J(
|
|
155
|
+
s.aliaslevel || 0,
|
|
141
156
|
t,
|
|
142
|
-
|
|
157
|
+
s.componentName || 0
|
|
143
158
|
);
|
|
144
|
-
t.mds =
|
|
159
|
+
t.mds = Q(n, a, s, t);
|
|
145
160
|
const r = {};
|
|
146
|
-
return
|
|
147
|
-
for (let
|
|
148
|
-
const o = a[
|
|
149
|
-
if (
|
|
161
|
+
return s.exampless.forEach((l) => {
|
|
162
|
+
for (let i = 0; i < a.length; i++) {
|
|
163
|
+
const o = a[i];
|
|
164
|
+
if (l.startsWith(n + o + "/")) {
|
|
150
165
|
const f = new RegExp(
|
|
151
|
-
"^\\" +
|
|
166
|
+
"^\\" + n + o + "/(.*)/index\\." + S.join("|") + "$"
|
|
152
167
|
);
|
|
153
|
-
let
|
|
154
|
-
|
|
155
|
-
topurl:
|
|
168
|
+
let p = "", u = l.match(f);
|
|
169
|
+
u && u.length > 1 && (p = u[1]), r[l] = {
|
|
170
|
+
topurl: n,
|
|
156
171
|
name: o,
|
|
157
|
-
value:
|
|
158
|
-
suffix:
|
|
172
|
+
value: p,
|
|
173
|
+
suffix: h(l),
|
|
159
174
|
comname: t.name,
|
|
160
175
|
comkey: t.key,
|
|
161
|
-
key:
|
|
162
|
-
component:
|
|
176
|
+
key: l,
|
|
177
|
+
component: U[l],
|
|
163
178
|
raw: "",
|
|
164
|
-
getRaw:
|
|
179
|
+
getRaw: P(x, l)
|
|
165
180
|
};
|
|
166
181
|
break;
|
|
167
182
|
}
|
|
@@ -169,199 +184,226 @@ function C(e) {
|
|
|
169
184
|
}), t.tests = r, r;
|
|
170
185
|
}
|
|
171
186
|
}
|
|
172
|
-
function
|
|
187
|
+
function he(e) {
|
|
173
188
|
if (e) {
|
|
174
|
-
const t =
|
|
189
|
+
const t = N(e);
|
|
175
190
|
return Object.values(t);
|
|
176
191
|
} else
|
|
177
192
|
return [];
|
|
178
193
|
}
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
const
|
|
194
|
+
function ge(e, t, s) {
|
|
195
|
+
g();
|
|
196
|
+
const n = N(s), a = [];
|
|
182
197
|
if (t) {
|
|
183
|
-
let r =
|
|
198
|
+
let r = n[t];
|
|
184
199
|
if (r)
|
|
185
200
|
return a.push(r), a;
|
|
186
201
|
}
|
|
187
|
-
return Object.values(
|
|
202
|
+
return Object.values(n).forEach((r) => {
|
|
188
203
|
r.name + "/" + r.value == e && a.push(r);
|
|
189
204
|
}), a;
|
|
190
205
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
206
|
+
function we(e) {
|
|
207
|
+
return N(e), c[e].mds;
|
|
193
208
|
}
|
|
194
|
-
async function
|
|
195
|
-
let
|
|
196
|
-
return
|
|
209
|
+
async function V(e, t, s, n, a) {
|
|
210
|
+
let r = await z(t, s) || [], l = e.split("/");
|
|
211
|
+
return r.map((i) => {
|
|
197
212
|
if (i.startsWith("./")) {
|
|
198
|
-
let
|
|
213
|
+
let o = l.slice(0, l.length - 1).join("/"), f = i.substring(2);
|
|
199
214
|
return {
|
|
215
|
+
url: o + "/" + f,
|
|
200
216
|
name: i,
|
|
201
|
-
comprops:
|
|
202
|
-
value:
|
|
203
|
-
suffix:
|
|
204
|
-
head:
|
|
205
|
-
|
|
217
|
+
comprops: a || "",
|
|
218
|
+
value: f,
|
|
219
|
+
suffix: h(i),
|
|
220
|
+
head: o,
|
|
221
|
+
dir: n,
|
|
222
|
+
key: i
|
|
206
223
|
};
|
|
207
|
-
} else {
|
|
208
|
-
let
|
|
209
|
-
for (let d = 0; d <
|
|
210
|
-
if (
|
|
211
|
-
|
|
224
|
+
} else if (i.startsWith("../")) {
|
|
225
|
+
let o = i.split("/"), f = 0;
|
|
226
|
+
for (let d = 0; d < o.length; d++)
|
|
227
|
+
if (o[d] != "..") {
|
|
228
|
+
f = d;
|
|
212
229
|
break;
|
|
213
230
|
}
|
|
214
|
-
let
|
|
231
|
+
let p = o.slice(f, o.length), u = l.slice(0, l.length - f - 1).join("/"), E = p.join("/");
|
|
232
|
+
return {
|
|
233
|
+
url: u + "/" + E,
|
|
234
|
+
name: i,
|
|
235
|
+
comprops: a || "",
|
|
236
|
+
value: E,
|
|
237
|
+
suffix: h(i),
|
|
238
|
+
head: u,
|
|
239
|
+
dir: n,
|
|
240
|
+
key: i
|
|
241
|
+
};
|
|
242
|
+
} else {
|
|
243
|
+
const o = n.replace(/^\./, "");
|
|
244
|
+
let f = i.indexOf(o) + o.length, p = i.substring(f), u = n.substring(0, n.length - 1);
|
|
215
245
|
return {
|
|
246
|
+
url: u + "/" + p,
|
|
216
247
|
name: i,
|
|
217
|
-
comprops:
|
|
218
|
-
value:
|
|
219
|
-
suffix:
|
|
220
|
-
head:
|
|
221
|
-
|
|
248
|
+
comprops: a || "",
|
|
249
|
+
value: p,
|
|
250
|
+
suffix: h(i),
|
|
251
|
+
head: u,
|
|
252
|
+
dir: n,
|
|
253
|
+
key: i
|
|
222
254
|
};
|
|
223
255
|
}
|
|
224
256
|
});
|
|
225
257
|
}
|
|
226
|
-
function
|
|
258
|
+
function xe(e) {
|
|
227
259
|
return new Promise((t) => {
|
|
228
260
|
if (e && e.length > 0) {
|
|
229
|
-
let
|
|
261
|
+
let s = e.map((n) => ({
|
|
230
262
|
raw: "",
|
|
231
|
-
name:
|
|
232
|
-
value:
|
|
233
|
-
suffix:
|
|
234
|
-
key:
|
|
235
|
-
getRaw:
|
|
263
|
+
name: n.name,
|
|
264
|
+
value: n.value,
|
|
265
|
+
suffix: h(n.key),
|
|
266
|
+
key: n.key,
|
|
267
|
+
getRaw: P(x, n.key)
|
|
236
268
|
}));
|
|
237
|
-
|
|
238
|
-
r.raw ?
|
|
239
|
-
const o = R(
|
|
240
|
-
r.raw = o, r.getRaw = null,
|
|
241
|
-
}) :
|
|
269
|
+
A(s, (n, a, r, l) => {
|
|
270
|
+
r.raw ? n() : r.getRaw ? r.getRaw(r).then((i) => {
|
|
271
|
+
const o = R(i);
|
|
272
|
+
r.raw = o, r.getRaw = null, n();
|
|
273
|
+
}) : n();
|
|
242
274
|
}).then(() => {
|
|
243
|
-
t(
|
|
275
|
+
t(s);
|
|
244
276
|
});
|
|
245
277
|
} else
|
|
246
278
|
t([]);
|
|
247
279
|
});
|
|
248
280
|
}
|
|
249
|
-
function
|
|
250
|
-
const e =
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
let
|
|
254
|
-
|
|
281
|
+
function X() {
|
|
282
|
+
const e = H();
|
|
283
|
+
T("components")?.forEach((s) => {
|
|
284
|
+
_(s);
|
|
285
|
+
let n = s.dir || "";
|
|
286
|
+
$(n, e, s.example);
|
|
255
287
|
});
|
|
256
288
|
}
|
|
257
289
|
const O = "default";
|
|
258
|
-
function
|
|
259
|
-
let t =
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
name:
|
|
290
|
+
function Y(e) {
|
|
291
|
+
let t = w(e.name), s = [...e.aliasNames];
|
|
292
|
+
s.push(t), s.forEach((n) => {
|
|
293
|
+
I.push({
|
|
294
|
+
name: n,
|
|
263
295
|
value: e.key
|
|
264
296
|
});
|
|
265
297
|
});
|
|
266
298
|
}
|
|
267
|
-
function
|
|
268
|
-
const
|
|
269
|
-
t
|
|
270
|
-
|
|
271
|
-
const a = Object.values(
|
|
299
|
+
function Z(e, t) {
|
|
300
|
+
const s = {};
|
|
301
|
+
t?.forEach((n) => {
|
|
302
|
+
c[n.key] = n, Y(n);
|
|
303
|
+
const a = Object.values(n.aliass || {});
|
|
272
304
|
a && a.length ? a.forEach((r) => {
|
|
273
|
-
|
|
274
|
-
}) : (
|
|
305
|
+
s[r] = s[r] || [], s[r].push(n.key);
|
|
306
|
+
}) : (s[O] = s[O] || [], s[O].push(n.key));
|
|
275
307
|
});
|
|
276
308
|
}
|
|
277
|
-
function
|
|
278
|
-
let t,
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
typeof e[r] > "u" && (e[r] =
|
|
309
|
+
function _(e) {
|
|
310
|
+
let t, s;
|
|
311
|
+
const n = e.resolver;
|
|
312
|
+
n && Object.keys(n).forEach((r) => {
|
|
313
|
+
typeof e[r] > "u" && (e[r] = n[r]);
|
|
282
314
|
}), t = e.alias || O;
|
|
283
|
-
let a =
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}),
|
|
315
|
+
let a = e?.urls || Object.keys(e.componentsRaw);
|
|
316
|
+
s = B(a, e, e.componentsRaw, e.components, e), s && s?.props && s.props.forEach((r) => {
|
|
317
|
+
m[r.url] = r;
|
|
318
|
+
}), Z(t, s.components);
|
|
287
319
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
320
|
+
function de(e) {
|
|
321
|
+
return g(), c[e];
|
|
290
322
|
}
|
|
291
|
-
function
|
|
292
|
-
return Object.keys(
|
|
323
|
+
function g() {
|
|
324
|
+
return Object.keys(c).length == 0 && X(), Object.values(c);
|
|
293
325
|
}
|
|
294
|
-
function
|
|
295
|
-
return
|
|
326
|
+
function Oe() {
|
|
327
|
+
return g(), m;
|
|
296
328
|
}
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
const
|
|
300
|
-
if (
|
|
301
|
-
let r =
|
|
329
|
+
function Re(e, t, s) {
|
|
330
|
+
g();
|
|
331
|
+
const n = [];
|
|
332
|
+
if (s) {
|
|
333
|
+
let r = c[s];
|
|
302
334
|
if (r && r.key)
|
|
303
335
|
return [r];
|
|
304
336
|
}
|
|
305
|
-
let a =
|
|
306
|
-
return
|
|
307
|
-
t ? r.name.includes(a) &&
|
|
308
|
-
}),
|
|
337
|
+
let a = w(e);
|
|
338
|
+
return I.forEach((r) => {
|
|
339
|
+
t ? r.name.includes(a) && n.push(c[r.value]) : r.name == a && n.push(c[r.value]);
|
|
340
|
+
}), F(n, "key");
|
|
309
341
|
}
|
|
310
|
-
async function
|
|
311
|
-
let
|
|
342
|
+
async function y(e, t) {
|
|
343
|
+
let s = e;
|
|
312
344
|
if (e) {
|
|
313
|
-
let
|
|
314
|
-
|
|
345
|
+
let n = (await V(
|
|
346
|
+
t.key,
|
|
347
|
+
e,
|
|
348
|
+
t.suffix,
|
|
349
|
+
t.dir,
|
|
350
|
+
t.comprops
|
|
351
|
+
)).filter((a) => a.key.startsWith(t.head) || b(a.name, t.comprops || ""));
|
|
352
|
+
s = await M(n) + s;
|
|
315
353
|
}
|
|
316
|
-
return
|
|
354
|
+
return s;
|
|
317
355
|
}
|
|
318
|
-
function
|
|
356
|
+
function k(e) {
|
|
357
|
+
const t = e.url, s = e.key;
|
|
358
|
+
return m[t] || m[t + ".js"] || m[t + ".ts"] || m[s] || m[s + ".js"] || m[s + ".ts"];
|
|
359
|
+
}
|
|
360
|
+
function ee(e) {
|
|
319
361
|
return new Promise((t) => {
|
|
320
362
|
if (e && e.length > 0) {
|
|
321
|
-
let
|
|
322
|
-
|
|
323
|
-
r.raw ?
|
|
324
|
-
const o = R(
|
|
325
|
-
let f = await
|
|
326
|
-
r.raw = f, r.getRaw = null,
|
|
327
|
-
}) :
|
|
363
|
+
let s = e.map((n) => k(n)).filter((n) => !!n);
|
|
364
|
+
A(s, (n, a, r, l) => {
|
|
365
|
+
r.raw ? n() : r.getRaw ? r.getRaw(r).then(async (i) => {
|
|
366
|
+
const o = R(i);
|
|
367
|
+
let f = await y(o, e[l]);
|
|
368
|
+
r.raw = f, r.getRaw = null, n();
|
|
369
|
+
}) : n();
|
|
328
370
|
}).then(() => {
|
|
329
|
-
t(
|
|
371
|
+
t(s);
|
|
330
372
|
});
|
|
331
373
|
} else
|
|
332
374
|
t([]);
|
|
333
375
|
});
|
|
334
376
|
}
|
|
335
|
-
async function
|
|
336
|
-
|
|
337
|
-
return ((t == null ? void 0 : t.map((s) => s.raw)) || []).join(`
|
|
377
|
+
async function M(e) {
|
|
378
|
+
return ((await ee(e))?.map((n) => n.raw) || []).join(`
|
|
338
379
|
`);
|
|
339
380
|
}
|
|
340
|
-
async function
|
|
341
|
-
let
|
|
381
|
+
async function te(e, t) {
|
|
382
|
+
let s = e;
|
|
342
383
|
if (e && (t.comprops || t.curprops)) {
|
|
343
|
-
let
|
|
384
|
+
let n = (await V(
|
|
344
385
|
t.key,
|
|
345
386
|
e,
|
|
346
387
|
t.suffix,
|
|
388
|
+
t.dir,
|
|
347
389
|
t.comprops || ""
|
|
348
|
-
)).filter((r) =>
|
|
349
|
-
|
|
390
|
+
)).filter((r) => b(r.name, t.comprops || "") || v(r.name, t.curprops || ""));
|
|
391
|
+
s = await M(n) + s;
|
|
350
392
|
}
|
|
351
|
-
return
|
|
393
|
+
return s;
|
|
352
394
|
}
|
|
353
395
|
function R(e) {
|
|
354
396
|
return e && typeof e == "object" ? e.default || "" : (e || "") + "";
|
|
355
397
|
}
|
|
356
|
-
function
|
|
398
|
+
function Ee(e) {
|
|
357
399
|
return new Promise((t) => {
|
|
358
400
|
if (e) {
|
|
359
|
-
|
|
360
|
-
const
|
|
361
|
-
|
|
362
|
-
const a = R(
|
|
363
|
-
|
|
364
|
-
|
|
401
|
+
g();
|
|
402
|
+
const s = c[e];
|
|
403
|
+
s ? s.raw ? t(s.raw) : s.getRaw ? s.getRaw(s).then((n) => {
|
|
404
|
+
const a = R(n);
|
|
405
|
+
te(a, s).then((r) => {
|
|
406
|
+
s.raw = r, s.getRaw = null, t(r);
|
|
365
407
|
});
|
|
366
408
|
}) : t("") : t("");
|
|
367
409
|
} else
|
|
@@ -370,18 +412,18 @@ function we(e) {
|
|
|
370
412
|
}
|
|
371
413
|
export {
|
|
372
414
|
O as defaultName,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
415
|
+
Re as getCompoName,
|
|
416
|
+
de as getCompoNameKey,
|
|
417
|
+
g as getCompoNameObj,
|
|
418
|
+
Oe as getComponentPropsObjs,
|
|
377
419
|
R as getGetRawValue,
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
420
|
+
we as getKeyMds,
|
|
421
|
+
D as getLevelUrl,
|
|
422
|
+
xe as getLocalTextArr,
|
|
423
|
+
Ee as getLocalTextComponents,
|
|
424
|
+
pe as getLocalTextTests,
|
|
425
|
+
ee as getPropsRaws,
|
|
426
|
+
V as getTestImportUrl,
|
|
427
|
+
he as getTestName,
|
|
428
|
+
ge as getTestNameObj
|
|
387
429
|
};
|