@fangzhongya/vue-components 0.1.28 → 0.1.30

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 (61) hide show
  1. package/dist/archive.cjs +190 -340
  2. package/dist/archive.d.cts +5 -4
  3. package/dist/archive.d.ts +5 -4
  4. package/dist/archive.js +190 -341
  5. package/dist/chunk-J7CICTHH-DzD10422.cjs +25 -0
  6. package/dist/chunk-J7CICTHH-Ikr5rmAQ.js +20 -0
  7. package/dist/component-B-5G8Yjc.js +431 -0
  8. package/dist/component-CVkcT_sw.cjs +459 -0
  9. package/dist/component.cjs +2 -8
  10. package/dist/component.d.cts +14 -14
  11. package/dist/component.d.ts +15 -14
  12. package/dist/component.js +2 -8
  13. package/dist/config.cjs +59 -6
  14. package/dist/config.d.cts +134 -133
  15. package/dist/config.d.ts +134 -133
  16. package/dist/config.js +57 -5
  17. package/dist/import.cjs +18 -25
  18. package/dist/import.d.cts +5 -4
  19. package/dist/import.d.ts +5 -4
  20. package/dist/import.js +18 -26
  21. package/dist/imports-Cl3zPCxJ.cjs +971 -0
  22. package/dist/imports-DLu2DPCK.js +966 -0
  23. package/dist/imports.cjs +2 -8
  24. package/dist/imports.d.cts +14 -14
  25. package/dist/imports.d.ts +15 -14
  26. package/dist/imports.js +2 -8
  27. package/dist/index-5NuL-vgA.d.ts +5609 -0
  28. package/dist/index-DORWvPc3.d.cts +5609 -0
  29. package/dist/index.cjs +8 -17
  30. package/dist/index.d.cts +7 -8
  31. package/dist/index.d.ts +7 -8
  32. package/dist/index.js +6 -17
  33. package/dist/library.cjs +32 -48
  34. package/dist/library.d.cts +7 -6
  35. package/dist/library.d.ts +7 -6
  36. package/dist/library.js +32 -49
  37. package/dist/resolver.cjs +25 -10
  38. package/dist/resolver.d.cts +5 -4
  39. package/dist/resolver.d.ts +5 -4
  40. package/dist/resolver.js +24 -10
  41. package/dist/types-CZdqb5KI-T7Ielv5Y.d.cts +134 -0
  42. package/dist/types-CZdqb5KI-T7Ielv5Y.d.ts +134 -0
  43. package/dist/util-Ddld3oFr.js +93 -0
  44. package/dist/util-DtBzae46.cjs +116 -0
  45. package/dist/util.cjs +8 -16
  46. package/dist/util.d.cts +104 -5
  47. package/dist/util.d.ts +104 -5
  48. package/dist/util.js +3 -16
  49. package/package.json +10 -10
  50. package/dist/chunk-3XFEJIQP.js +0 -135
  51. package/dist/chunk-A3DD44G3.cjs +0 -33
  52. package/dist/chunk-AFAUWAXD.cjs +0 -581
  53. package/dist/chunk-AKNB7BKJ.cjs +0 -25
  54. package/dist/chunk-DURXCSNX.js +0 -62
  55. package/dist/chunk-M5UXFPLK.js +0 -33
  56. package/dist/chunk-NLSI7A24.cjs +0 -135
  57. package/dist/chunk-QI2PZMFM.cjs +0 -1238
  58. package/dist/chunk-TVGK2KRP.js +0 -25
  59. package/dist/chunk-UNBQUEQ4.cjs +0 -62
  60. package/dist/chunk-VMVQOQNJ.js +0 -581
  61. package/dist/chunk-VXYRQ3FV.js +0 -1238
@@ -1,135 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
- var _chunkAKNB7BKJcjs = require('./chunk-AKNB7BKJ.cjs');
4
-
5
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
6
- function styleLog(msg = "", obj) {
7
- const arr = ["\x1B[0m"];
8
- if (_optionalChain([obj, 'optionalAccess', _ => _.revert])) {
9
- arr.push("\x1B[4m");
10
- }
11
- if (_optionalChain([obj, 'optionalAccess', _2 => _2.lineThrough])) {
12
- arr.push("\x1B[9m");
13
- }
14
- if (_optionalChain([obj, 'optionalAccess', _3 => _3.italic])) {
15
- arr.push("\x1B[3m");
16
- }
17
- if (_optionalChain([obj, 'optionalAccess', _4 => _4.bold])) {
18
- arr.push("\x1B[1m");
19
- }
20
- if (_optionalChain([obj, 'optionalAccess', _5 => _5.bag])) {
21
- arr.push(`\x1B[4${_optionalChain([obj, 'optionalAccess', _6 => _6.bag])}m`);
22
- } else {
23
- arr.push("\x1B[40m");
24
- }
25
- if (_optionalChain([obj, 'optionalAccess', _7 => _7.text])) {
26
- arr.push(`\x1B[3${_optionalChain([obj, 'optionalAccess', _8 => _8.text])}m`);
27
- } else {
28
- arr.push("\x1B[30m");
29
- }
30
- arr.push(msg);
31
- arr.push("\x1B[0m");
32
- return arr.join("");
33
- }
34
-
35
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
36
- function unmergeObject(a, b, j = 0, i) {
37
- let c;
38
- if (a instanceof Array) {
39
- if (j > 0 && i) {
40
- c = Object.assign([], a);
41
- if (b instanceof Array) {
42
- for (const v of b) {
43
- if (!a.includes(v)) {
44
- c.push(v);
45
- }
46
- }
47
- } else {
48
- if (!a.includes(b)) {
49
- c.push(b);
50
- }
51
- }
52
- } else {
53
- c = b;
54
- }
55
- } else if (typeof a == "object") {
56
- const cv = Object.prototype.toString.call(a);
57
- const ct = Object.prototype.toString.call(b);
58
- if (a && typeof b == "object" && cv == ct && j > 0) {
59
- c = { ...a };
60
- const n = j - 1;
61
- if (n > 0) {
62
- for (const key in b) {
63
- const v = a[key];
64
- const t = b[key];
65
- c[key] = unmergeObject(v, t, n, i);
66
- }
67
- } else {
68
- for (const key in b) {
69
- c[key] = b[key];
70
- }
71
- }
72
- } else {
73
- c = b;
74
- }
75
- } else {
76
- c = b;
77
- }
78
- return c;
79
- }
80
-
81
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
82
- function firstUpper(str) {
83
- return str.slice(0, 1).toUpperCase() + str.slice(1);
84
- }
85
-
86
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
87
- function lineToLargeHump(name) {
88
- let arr = name.split("-");
89
- arr = arr.map((vs) => {
90
- return firstUpper(vs);
91
- });
92
- return arr.join("");
93
- }
94
-
95
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
96
- function firstLower(str) {
97
- return str.slice(0, 1).toLowerCase() + str.slice(1);
98
- }
99
-
100
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
101
- function lineToSmallHump(name) {
102
- return firstLower(lineToLargeHump(name));
103
- }
104
-
105
- // node_modules/.pnpm/@fangzhongya+utils@0.0.75/node_modules/@fangzhongya/utils/dist/chunk-VRRDYCUH.js
106
- function getComponentNames(name) {
107
- if (name.includes("-")) {
108
- const line = _chunkAKNB7BKJcjs.humpToLine.call(void 0, name);
109
- const upper = lineToLargeHump(line);
110
- const lower = lineToSmallHump(upper);
111
- return [line, upper, lower];
112
- } else if (/[A-Z]/.test(name)) {
113
- const line = _chunkAKNB7BKJcjs.humpToLine.call(void 0, name);
114
- if (/^[A-Z]/.test(name)) {
115
- const upper = lineToLargeHump(line);
116
- const lower = lineToSmallHump(upper);
117
- if (line.includes("-")) {
118
- return [line, upper, lower];
119
- } else {
120
- return [name, lower];
121
- }
122
- } else {
123
- return [line, name];
124
- }
125
- } else {
126
- return [name];
127
- }
128
- }
129
-
130
-
131
-
132
-
133
-
134
-
135
- exports.styleLog = styleLog; exports.unmergeObject = unmergeObject; exports.firstUpper = firstUpper; exports.getComponentNames = getComponentNames;