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