@fangzhongya/vue-archive 0.0.2-21 → 0.0.2-23

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 (60) hide show
  1. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
  2. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
  3. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
  4. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
  5. package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +18 -0
  6. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
  7. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
  8. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
  9. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
  10. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
  11. package/dist/es/packages/components/code/index.vue.js +17 -18
  12. package/dist/es/packages/components/use/index.js +1 -1
  13. package/dist/es/packages/components/use/retrie/choice/index.vue.js +1 -1
  14. package/dist/es/packages/components/use/set-code.vue.js +3 -3
  15. package/dist/es/packages/config.d.ts +2 -0
  16. package/dist/es/packages/config.js +1 -1
  17. package/dist/es/packages/index.d.ts +0 -1
  18. package/dist/es/packages/index.js +5 -7
  19. package/dist/es/packages/utils/common.d.ts +1 -1
  20. package/dist/es/packages/utils/common.js +15 -15
  21. package/dist/es/packages/utils/glob.d.ts +1 -1
  22. package/dist/es/packages/utils/glob.js +161 -137
  23. package/dist/es/packages/utils/index.d.ts +2 -1
  24. package/dist/es/packages/utils/index.js +16 -13
  25. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
  26. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
  27. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
  28. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
  29. package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js +1 -0
  30. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
  31. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
  32. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js +0 -0
  33. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
  34. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-15 → @fangzhongya_utils@0.0.7-16}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
  35. package/dist/lib/packages/components/code/index.vue.js +1 -1
  36. package/dist/lib/packages/components/use/index.js +1 -1
  37. package/dist/lib/packages/components/use/retrie/choice/index.vue.js +1 -1
  38. package/dist/lib/packages/components/use/set-code.vue.js +1 -1
  39. package/dist/lib/packages/config.d.ts +2 -0
  40. package/dist/lib/packages/config.js +1 -1
  41. package/dist/lib/packages/index.d.ts +0 -1
  42. package/dist/lib/packages/index.js +1 -1
  43. package/dist/lib/packages/utils/common.d.ts +1 -1
  44. package/dist/lib/packages/utils/common.js +1 -1
  45. package/dist/lib/packages/utils/glob.d.ts +1 -1
  46. package/dist/lib/packages/utils/glob.js +2 -2
  47. package/dist/lib/packages/utils/index.d.ts +2 -1
  48. package/dist/lib/packages/utils/index.js +1 -1
  49. package/dist/node/index.cjs +17984 -0
  50. package/dist/node/index.d.ts +110 -0
  51. package/dist/node/index.js +17984 -0
  52. package/package.json +10 -8
  53. package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -6
  54. package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -18
  55. package/dist/es/packages/node/index.d.ts +0 -2
  56. package/dist/es/packages/node/index.js +0 -155
  57. package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-5PX3AFSC.js +0 -1
  58. package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -1
  59. package/dist/lib/packages/node/index.d.ts +0 -2
  60. package/dist/lib/packages/node/index.js +0 -1
@@ -0,0 +1,18 @@
1
+ function s(e, c) {
2
+ return new Promise((n, f) => {
3
+ let t = 0;
4
+ const i = e.length;
5
+ i > 0 ? e.forEach((...o) => {
6
+ c(
7
+ (...r) => {
8
+ t++, i == t && n(r);
9
+ },
10
+ f,
11
+ ...o
12
+ );
13
+ }) : n(e);
14
+ });
15
+ }
16
+ export {
17
+ s as asyncMergeArray
18
+ };
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, watch as T, ref as c, openBlock as u, createElementBlock as p, createElementVNode as e, toDisplayString as m, createVNode as _, withCtx as h, normalizeClass as k, withModifiers as g, Fragment as $, renderList as j, createBlock as E, withDirectives as L, vShow as N } from "vue";
1
+ import { defineComponent as D, watch as T, ref as c, openBlock as u, createElementBlock as p, createElementVNode as e, toDisplayString as m, createVNode as h, withCtx as _, normalizeClass as k, withModifiers as g, Fragment as $, renderList as j, createBlock as E, withDirectives as L, vShow as N } from "vue";
2
2
  import C from "../boxurl/index.vue.js";
3
3
  import { toSingle as V } from "../../router/index.js";
4
4
  import z from "./highlight.vue.js";
@@ -35,19 +35,18 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
35
35
  }
36
36
  function d() {
37
37
  var l;
38
- if (o.value = void 0, a.value = !1, t.text) {
39
- let s = A(
40
- (l = t.value) == null ? void 0 : l.key,
41
- t.text,
42
- "vue"
43
- );
44
- F(s).then((n) => {
45
- r.value = n.filter((i) => i.raw);
38
+ o.value = void 0, a.value = !1, t.text && A(
39
+ (l = t.value) == null ? void 0 : l.key,
40
+ t.text,
41
+ "vue"
42
+ ).then((n) => {
43
+ F(n).then((s) => {
44
+ r.value = s.filter((i) => i.raw);
46
45
  });
47
- }
46
+ });
48
47
  }
49
- return d(), (l, s) => {
50
- var n;
48
+ return d(), (l, n) => {
49
+ var s;
51
50
  return u(), p("div", I, [
52
51
  e("div", M, [
53
52
  e("div", O, [
@@ -64,21 +63,21 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
64
63
  onClick: S
65
64
  }, m(a.value ? "隐藏" : "显示"), 1),
66
65
  e("div", R, [
67
- _(C, {
66
+ h(C, {
68
67
  value: t.value
69
68
  }, {
70
- default: h(() => [
69
+ default: _(() => [
71
70
  e("div", {
72
71
  class: k(["but-div", {
73
72
  on: !(o.value && o.value.value)
74
73
  }]),
75
- onClick: s[0] || (s[0] = g((i) => v(), ["stop"]))
74
+ onClick: n[0] || (n[0] = g((i) => v(), ["stop"]))
76
75
  }, " index.vue ", 2)
77
76
  ]),
78
77
  _: 1
79
78
  }, 8, ["value"]),
80
79
  (u(!0), p($, null, j(r.value, (i, G) => (u(), E(C, { value: i }, {
81
- default: h(() => {
80
+ default: _(() => {
82
81
  var f;
83
82
  return [
84
83
  e("div", {
@@ -95,9 +94,9 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
95
94
  ])
96
95
  ]),
97
96
  L(e("div", q, [
98
- _(z, {
97
+ h(z, {
99
98
  language: "html",
100
- code: ((n = o.value) == null ? void 0 : n.raw) || t.text
99
+ code: ((s = o.value) == null ? void 0 : s.raw) || t.text
101
100
  }, null, 8, ["code"])
102
101
  ], 512), [
103
102
  [N, a.value]
@@ -5,7 +5,7 @@ import E from "./set-code.vue.js";
5
5
  import O from "./set-expose.vue.js";
6
6
  import $ from "./set-slot.vue.js";
7
7
  import { getPropsValue as D, getEmitsValue as w, getExposeValue as U, getSlotValue as k } from "../../utils/props.js";
8
- import { firstUpper as h } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
8
+ import { firstUpper as h } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
9
9
  const K = g({
10
10
  /**
11
11
  * @props {Stinrg} value 插入数据
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, ref as c, computed as h, watch as L, openBlock as s, createElementBlock as i, createElementVNode as f, unref as z, withModifiers as u, withDirectives as D, Fragment as E, renderList as F, normalizeClass as I, toDisplayString as O, vShow as $ } from "vue";
2
- import { toggleArray as J } from "../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js";
2
+ import { toggleArray as J } from "../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js";
3
3
  import { getSonType as P, getString as q } from "../../util.js";
4
4
  const G = { class: "form-select" }, H = ["value", "disabled", "onClick", "onBlur"], K = ["onMousemove", "onMouseout"], Q = { class: "form-select-list" }, R = {
5
5
  key: 0,
@@ -2,9 +2,9 @@ import { defineComponent as C, computed as F, ref as O, openBlock as w, createEl
2
2
  import { vueFormat as g, getFunctionFormat as H, prettierFormat as J, getFunBody as M } from "./util.js";
3
3
  import U from "../code/highlight.vue.js";
4
4
  import { copyCode as Z } from "../../utils/index.js";
5
- import { humpToLine as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
6
- import { firstUpper as _ } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
7
- import { firstLower as z } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
5
+ import { humpToLine as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
6
+ import { firstUpper as _ } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
7
+ import { firstLower as z } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
8
8
  const G = { class: "set-code" }, I = /* @__PURE__ */ f("div", null, "代码", -1), K = { class: "but-div set-code-but" }, P = ["onClick"], Q = { class: "set-code-html" }, ot = /* @__PURE__ */ C({
9
9
  __name: "set-code",
10
10
  props: {
@@ -25,6 +25,7 @@ export interface Resolver extends Component {
25
25
  }
26
26
  export interface Components extends Component {
27
27
  resolver?: Resolver;
28
+ urls?: string[];
28
29
  comprops?: string;
29
30
  curprops?: string;
30
31
  components: GlobComs;
@@ -56,6 +57,7 @@ export interface ExampleObj {
56
57
  */
57
58
  componentName?: string | number;
58
59
  examples?: GlobComs;
60
+ urls?: string[];
59
61
  examplesRaw?: Globs;
60
62
  md?: string;
61
63
  }
@@ -1,4 +1,4 @@
1
- import { mergeObject as t } from "../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js";
1
+ import { mergeObject as t } from "../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js";
2
2
  const o = {
3
3
  components: []
4
4
  };
@@ -1,7 +1,6 @@
1
1
  import type { Config } from './config';
2
2
  import type { App } from './vue/dist/vue.esm-bundler.js';
3
3
  import type { Router } from 'vue-router';
4
- export * from './node/index';
5
4
  export declare function defineConfig(config: Config): Config;
6
5
  declare const _default: {
7
6
  install: (app: App, router: Router) => void;
@@ -1,16 +1,14 @@
1
- import { init as i } from "./router/index.js";
1
+ import { init as o } from "./router/index.js";
2
2
  import { userConfig as t } from "./config.js";
3
- import { nodeInit as a } from "./node/index.js";
4
- function f(n) {
3
+ function e(n) {
5
4
  return t(n);
6
5
  }
7
6
  const p = {
8
- install: function(n, o) {
9
- i(o);
7
+ install: function(n, i) {
8
+ o(i);
10
9
  }
11
10
  };
12
11
  export {
13
12
  p as default,
14
- f as defineConfig,
15
- a as nodeInit
13
+ e as defineConfig
16
14
  };
@@ -73,4 +73,4 @@ export interface ComponentsObjs {
73
73
  components: Array<ComponentsObj>;
74
74
  }
75
75
  export declare function getComponentsArr(urls: Array<string>, v: Resolver, comRaw: Globs, com: GlobComs, config: Components): ComponentsObjs;
76
- export declare function getRawValue(comRaw: Globs, key: string): GetRaw;
76
+ export declare function getRawValue(comRaw: Globs, key: string): GetRaw | null;
@@ -1,8 +1,8 @@
1
1
  import { setSession as E, getSession as w } from "./storage.js";
2
- import { humpToLine as N } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
3
- import { lineToLargeHump as A } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
4
- import { appearNum as h } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js";
5
- import { getSuffix as x } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-15/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
2
+ import { humpToLine as N } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
3
+ import { lineToLargeHump as A } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
4
+ import { appearNum as h } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js";
5
+ import { getSuffix as x } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
6
6
  const R = ["vue", "js"];
7
7
  function S(t, e) {
8
8
  let n = N(t.name), i = [];
@@ -20,16 +20,16 @@ function C(t = [], e = [], n = []) {
20
20
  let i = e;
21
21
  (!i || i.length == 0) && (i = R);
22
22
  let r = [];
23
- return t && t.length > 0 && (r = t), n && n.length > 0 && n.forEach((p) => {
24
- i == null || i.forEach((u) => {
25
- r.push(p + "." + u);
23
+ return t && t.length > 0 && (r = t), n && n.length > 0 && n.forEach((u) => {
24
+ i == null || i.forEach((p) => {
25
+ r.push(u + "." + p);
26
26
  });
27
27
  }), r = [...new Set(r)], $(r);
28
28
  }
29
29
  function T(t, e, n = {}, i = "") {
30
30
  for (let r = 0; r < e.length; r++) {
31
- const p = e[r], u = new RegExp("^.*/([^/]+)" + p + "$");
32
- let f = t.match(u);
31
+ const u = e[r], p = new RegExp("^.*/([^/]+)" + u + "$");
32
+ let f = t.match(p);
33
33
  if (f) {
34
34
  const a = [], o = {};
35
35
  let c = "";
@@ -81,7 +81,7 @@ function L(t, e) {
81
81
  ).test(t) : !1;
82
82
  }
83
83
  function V(t, e, n, i, r) {
84
- const p = [], u = [], f = C(
84
+ const u = [], p = [], f = C(
85
85
  e.matchexts,
86
86
  e.extensions,
87
87
  e.matchs
@@ -91,7 +91,7 @@ function V(t, e, n, i, r) {
91
91
  let l = o.replace(c, "");
92
92
  if (r.comprops && K(l, r.comprops) || r.curprops && L(l, r.curprops)) {
93
93
  let s = {};
94
- s.comprops = r.comprops || "", s.curprops = r.curprops || "", s.value = l, s.dir = e.dir, s.suffix = x(o), s.tdir = a, s.key = o, s.raw = "", s.getRaw = d(n, o), p.push(s);
94
+ s.comprops = r.comprops || "", s.curprops = r.curprops || "", s.value = l, s.dir = e.dir, s.suffix = x(o), s.tdir = a, s.key = o, s.raw = "", s.getRaw = d(n, o), u.push(s);
95
95
  } else {
96
96
  let s = T(
97
97
  l,
@@ -99,15 +99,15 @@ function V(t, e, n, i, r) {
99
99
  e.aliass,
100
100
  e.alias
101
101
  );
102
- s && (s.comprops = r.comprops, s.curprops = r.curprops, s.dir = e.dir, s.tdir = a, s.key = o, s.component = i[o], s.getRaw = d(n, o), u.push(s));
102
+ s && (s.comprops = r.comprops, s.curprops = r.curprops, s.dir = e.dir, s.tdir = a, s.key = o, s.component = i[o], s.getRaw = d(n, o), p.push(s));
103
103
  }
104
104
  }), {
105
- props: p,
106
- components: u
105
+ props: u,
106
+ components: p
107
107
  };
108
108
  }
109
109
  function d(t, e) {
110
- return typeof t == "function" ? t : t[e] || t;
110
+ return typeof t == "function" ? t : t ? t[e] : null;
111
111
  }
112
112
  export {
113
113
  R as defaultExtensions,
@@ -15,7 +15,7 @@ export declare function getKeyMds(key: string): MdObj[] | undefined;
15
15
  * @param {*} arr
16
16
  * @returns
17
17
  */
18
- export declare function getTestImportUrl(url: string, text: string, type: string): Array<PropObj>;
18
+ export declare function getTestImportUrl(url: string, text: string, type: string): Promise<Array<PropObj>>;
19
19
  export declare function getLocalTextArr(arr: Array<PropObj>): Promise<TextObj[]>;
20
20
  export declare const defaultName = "default";
21
21
  export declare function getCompoNameKey(key: string): ComponentsObj;