@fangzhongya/vue-components 0.1.29 → 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.
- package/dist/archive.cjs +190 -340
- package/dist/archive.d.cts +5 -4
- package/dist/archive.d.ts +5 -4
- package/dist/archive.js +190 -341
- package/dist/chunk-J7CICTHH-DzD10422.cjs +25 -0
- package/dist/chunk-J7CICTHH-Ikr5rmAQ.js +20 -0
- package/dist/component-B-5G8Yjc.js +431 -0
- package/dist/component-CVkcT_sw.cjs +459 -0
- package/dist/component.cjs +2 -8
- package/dist/component.d.cts +14 -14
- package/dist/component.d.ts +15 -14
- package/dist/component.js +2 -8
- package/dist/config.cjs +59 -6
- package/dist/config.d.cts +134 -133
- package/dist/config.d.ts +134 -133
- package/dist/config.js +57 -5
- package/dist/import.cjs +18 -25
- package/dist/import.d.cts +5 -4
- package/dist/import.d.ts +5 -4
- package/dist/import.js +18 -26
- package/dist/imports-Cl3zPCxJ.cjs +971 -0
- package/dist/imports-DLu2DPCK.js +966 -0
- package/dist/imports.cjs +2 -8
- package/dist/imports.d.cts +14 -14
- package/dist/imports.d.ts +15 -14
- package/dist/imports.js +2 -8
- package/dist/index-5NuL-vgA.d.ts +5609 -0
- package/dist/index-DORWvPc3.d.cts +5609 -0
- package/dist/index.cjs +8 -17
- package/dist/index.d.cts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +6 -17
- package/dist/library.cjs +32 -48
- package/dist/library.d.cts +7 -6
- package/dist/library.d.ts +7 -6
- package/dist/library.js +32 -49
- package/dist/resolver.cjs +25 -10
- package/dist/resolver.d.cts +5 -4
- package/dist/resolver.d.ts +5 -4
- package/dist/resolver.js +24 -10
- package/dist/types-CZdqb5KI-T7Ielv5Y.d.cts +134 -0
- package/dist/types-CZdqb5KI-T7Ielv5Y.d.ts +134 -0
- package/dist/util-Ddld3oFr.js +93 -0
- package/dist/util-DtBzae46.cjs +116 -0
- package/dist/util.cjs +8 -16
- package/dist/util.d.cts +104 -5
- package/dist/util.d.ts +104 -5
- package/dist/util.js +3 -16
- package/package.json +10 -10
- package/dist/chunk-2SBJQUCI.cjs +0 -1238
- package/dist/chunk-3XFEJIQP.js +0 -135
- package/dist/chunk-6PYVVU7E.cjs +0 -581
- package/dist/chunk-7JRVVHVI.cjs +0 -33
- package/dist/chunk-AKNB7BKJ.cjs +0 -25
- package/dist/chunk-DURXCSNX.js +0 -62
- package/dist/chunk-HFFYPZA3.js +0 -1238
- package/dist/chunk-IXN2F3IJ.js +0 -581
- package/dist/chunk-NLSI7A24.cjs +0 -135
- package/dist/chunk-RRQV2YXW.js +0 -33
- package/dist/chunk-TVGK2KRP.js +0 -25
- package/dist/chunk-UNBQUEQ4.cjs +0 -62
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist/index.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Represents a general structure for ECMAScript module exports.
|
|
4
|
+
*/
|
|
5
|
+
interface ESMExport {
|
|
6
|
+
/**
|
|
7
|
+
* Optional explicit type for complex scenarios, often used internally.
|
|
8
|
+
* @optional
|
|
9
|
+
*/
|
|
10
|
+
_type?: "declaration" | "named" | "default" | "star";
|
|
11
|
+
/**
|
|
12
|
+
* The type of export (declaration, named, default or star).
|
|
13
|
+
*/
|
|
14
|
+
type: "declaration" | "named" | "default" | "star";
|
|
15
|
+
/**
|
|
16
|
+
* The specific type of declaration being exported, if applicable.
|
|
17
|
+
* @optional
|
|
18
|
+
*/
|
|
19
|
+
declarationType?: "let" | "var" | "const" | "enum" | "const enum" | "class" | "function" | "async function";
|
|
20
|
+
/**
|
|
21
|
+
* The full code snippet of the export statement.
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* The starting position (index) of the export declaration in the source code.
|
|
26
|
+
*/
|
|
27
|
+
start: number;
|
|
28
|
+
/**
|
|
29
|
+
* The end position (index) of the export declaration in the source code.
|
|
30
|
+
*/
|
|
31
|
+
end: number;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the variable, function or class being exported, if given explicitly.
|
|
34
|
+
* @optional
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The name used for default exports when a specific identifier isn't given.
|
|
39
|
+
* @optional
|
|
40
|
+
*/
|
|
41
|
+
defaultName?: string;
|
|
42
|
+
/**
|
|
43
|
+
* An array of names to export, applicable to named and destructured exports.
|
|
44
|
+
*/
|
|
45
|
+
names: string[];
|
|
46
|
+
/**
|
|
47
|
+
* The module specifier, if any, from which exports are being re-exported.
|
|
48
|
+
* @optional
|
|
49
|
+
*/
|
|
50
|
+
specifier?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Represents a declaration export within an ECMAScript module.
|
|
54
|
+
* Extends {@link ESMExport}.
|
|
55
|
+
*/
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region node_modules/.pnpm/unimport@5.7.0/node_modules/unimport/dist/shared/unimport.DCeIjgcw.d.mts
|
|
58
|
+
type ModuleId = string;
|
|
59
|
+
type ImportName = string;
|
|
60
|
+
interface ImportCommon {
|
|
61
|
+
/** Module specifier to import from */
|
|
62
|
+
from: ModuleId;
|
|
63
|
+
/**
|
|
64
|
+
* Priority of the import, if multiple imports have the same name, the one with the highest priority will be used
|
|
65
|
+
* @default 1
|
|
66
|
+
*/
|
|
67
|
+
priority?: number;
|
|
68
|
+
/** If this import is disabled */
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/** Won't output import in declaration file if true */
|
|
71
|
+
dtsDisabled?: boolean;
|
|
72
|
+
/** Import declaration type like const / var / enum */
|
|
73
|
+
declarationType?: ESMExport['declarationType'];
|
|
74
|
+
/**
|
|
75
|
+
* Metadata of the import
|
|
76
|
+
*/
|
|
77
|
+
meta?: {
|
|
78
|
+
/** Short description of the import */description?: string; /** URL to the documentation */
|
|
79
|
+
docsUrl?: string; /** Additional metadata */
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* If this import is a pure type import
|
|
84
|
+
*/
|
|
85
|
+
type?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Using this as the from when generating type declarations
|
|
88
|
+
*/
|
|
89
|
+
typeFrom?: ModuleId;
|
|
90
|
+
}
|
|
91
|
+
interface Import extends ImportCommon {
|
|
92
|
+
/** Import name to be detected */
|
|
93
|
+
name: ImportName;
|
|
94
|
+
/** Import as this name */
|
|
95
|
+
as?: ImportName;
|
|
96
|
+
/**
|
|
97
|
+
* With properties
|
|
98
|
+
*
|
|
99
|
+
* Ignored for CJS imports.
|
|
100
|
+
*/
|
|
101
|
+
with?: Record<string, string>;
|
|
102
|
+
}
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region node_modules/.pnpm/unplugin-auto-import@21.0.0/node_modules/unplugin-auto-import/dist/types-CZdqb5KI.d.mts
|
|
105
|
+
//#region node_modules/.pnpm/@antfu+utils@9.3.0/node_modules/@antfu/utils/dist/index.d.mts
|
|
106
|
+
/**
|
|
107
|
+
* Promise, or maybe not
|
|
108
|
+
*/
|
|
109
|
+
type Awaitable<T> = T | PromiseLike<T>;
|
|
110
|
+
/**
|
|
111
|
+
* Null or whatever
|
|
112
|
+
*/
|
|
113
|
+
/**
|
|
114
|
+
* Array, or not yet
|
|
115
|
+
*/
|
|
116
|
+
type Arrayable<T> = T | Array<T>;
|
|
117
|
+
/**
|
|
118
|
+
* Function
|
|
119
|
+
*/
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/presets/index.d.ts
|
|
122
|
+
interface ImportExtended extends Import {
|
|
123
|
+
sideEffects?: SideEffectsInfo;
|
|
124
|
+
__source?: 'dir' | 'resolver';
|
|
125
|
+
}
|
|
126
|
+
type SideEffectsInfo = Arrayable<ResolverResult | string> | undefined;
|
|
127
|
+
interface ResolverResult {
|
|
128
|
+
as?: string;
|
|
129
|
+
name?: string;
|
|
130
|
+
from: string;
|
|
131
|
+
}
|
|
132
|
+
type ResolverFunction = (name: string) => Awaitable<string | ResolverResult | ImportExtended | null | undefined | void>;
|
|
133
|
+
//#endregion
|
|
134
|
+
export { ResolverResult as n, ResolverFunction as t };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { t as humpToLine } from "./chunk-J7CICTHH-Ikr5rmAQ.js";
|
|
2
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
3
|
+
function styleLog(msg = "", obj) {
|
|
4
|
+
const arr = ["\x1B[0m"];
|
|
5
|
+
if (obj?.revert) arr.push("\x1B[4m");
|
|
6
|
+
if (obj?.lineThrough) arr.push("\x1B[9m");
|
|
7
|
+
if (obj?.italic) arr.push("\x1B[3m");
|
|
8
|
+
if (obj?.bold) arr.push("\x1B[1m");
|
|
9
|
+
if (obj?.bag) arr.push(`\x1B[4${obj?.bag}m`);
|
|
10
|
+
else arr.push("\x1B[40m");
|
|
11
|
+
if (obj?.text) arr.push(`\x1B[3${obj?.text}m`);
|
|
12
|
+
else arr.push("\x1B[30m");
|
|
13
|
+
arr.push(msg);
|
|
14
|
+
arr.push("\x1B[0m");
|
|
15
|
+
return arr.join("");
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
19
|
+
function unmergeObject(a, b, j = 0, i) {
|
|
20
|
+
let c;
|
|
21
|
+
if (a instanceof Array) if (j > 0 && i) {
|
|
22
|
+
c = Object.assign([], a);
|
|
23
|
+
if (b instanceof Array) {
|
|
24
|
+
for (const v of b) if (!a.includes(v)) c.push(v);
|
|
25
|
+
} else if (!a.includes(b)) c.push(b);
|
|
26
|
+
} else c = b;
|
|
27
|
+
else if (typeof a == "object") {
|
|
28
|
+
const cv = Object.prototype.toString.call(a);
|
|
29
|
+
const ct = Object.prototype.toString.call(b);
|
|
30
|
+
if (a && typeof b == "object" && cv == ct && j > 0) {
|
|
31
|
+
c = { ...a };
|
|
32
|
+
const n = j - 1;
|
|
33
|
+
if (n > 0) for (const key in b) {
|
|
34
|
+
const v = a[key];
|
|
35
|
+
const t = b[key];
|
|
36
|
+
c[key] = unmergeObject(v, t, n, i);
|
|
37
|
+
}
|
|
38
|
+
else for (const key in b) c[key] = b[key];
|
|
39
|
+
} else c = b;
|
|
40
|
+
} else c = b;
|
|
41
|
+
return c;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
45
|
+
function firstUpper(str) {
|
|
46
|
+
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
50
|
+
function lineToLargeHump(name) {
|
|
51
|
+
let arr = name.split("-");
|
|
52
|
+
arr = arr.map((vs) => {
|
|
53
|
+
return firstUpper(vs);
|
|
54
|
+
});
|
|
55
|
+
return arr.join("");
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
59
|
+
function firstLower(str) {
|
|
60
|
+
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
64
|
+
function lineToSmallHump(name) {
|
|
65
|
+
return firstLower(lineToLargeHump(name));
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-VRRDYCUH.js
|
|
69
|
+
function getComponentNames(name) {
|
|
70
|
+
if (name.includes("-")) {
|
|
71
|
+
const line = humpToLine(name);
|
|
72
|
+
const upper = lineToLargeHump(line);
|
|
73
|
+
return [
|
|
74
|
+
line,
|
|
75
|
+
upper,
|
|
76
|
+
lineToSmallHump(upper)
|
|
77
|
+
];
|
|
78
|
+
} else if (/[A-Z]/.test(name)) {
|
|
79
|
+
const line = humpToLine(name);
|
|
80
|
+
if (/^[A-Z]/.test(name)) {
|
|
81
|
+
const upper = lineToLargeHump(line);
|
|
82
|
+
const lower = lineToSmallHump(upper);
|
|
83
|
+
if (line.includes("-")) return [
|
|
84
|
+
line,
|
|
85
|
+
upper,
|
|
86
|
+
lower
|
|
87
|
+
];
|
|
88
|
+
else return [name, lower];
|
|
89
|
+
} else return [line, name];
|
|
90
|
+
} else return [name];
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
export { styleLog as i, firstUpper as n, unmergeObject as r, getComponentNames as t };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
const require_chunk_J7CICTHH = require("./chunk-J7CICTHH-DzD10422.cjs");
|
|
2
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
3
|
+
function styleLog(msg = "", obj) {
|
|
4
|
+
const arr = ["\x1B[0m"];
|
|
5
|
+
if (obj?.revert) arr.push("\x1B[4m");
|
|
6
|
+
if (obj?.lineThrough) arr.push("\x1B[9m");
|
|
7
|
+
if (obj?.italic) arr.push("\x1B[3m");
|
|
8
|
+
if (obj?.bold) arr.push("\x1B[1m");
|
|
9
|
+
if (obj?.bag) arr.push(`\x1B[4${obj?.bag}m`);
|
|
10
|
+
else arr.push("\x1B[40m");
|
|
11
|
+
if (obj?.text) arr.push(`\x1B[3${obj?.text}m`);
|
|
12
|
+
else arr.push("\x1B[30m");
|
|
13
|
+
arr.push(msg);
|
|
14
|
+
arr.push("\x1B[0m");
|
|
15
|
+
return arr.join("");
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
19
|
+
function unmergeObject(a, b, j = 0, i) {
|
|
20
|
+
let c;
|
|
21
|
+
if (a instanceof Array) if (j > 0 && i) {
|
|
22
|
+
c = Object.assign([], a);
|
|
23
|
+
if (b instanceof Array) {
|
|
24
|
+
for (const v of b) if (!a.includes(v)) c.push(v);
|
|
25
|
+
} else if (!a.includes(b)) c.push(b);
|
|
26
|
+
} else c = b;
|
|
27
|
+
else if (typeof a == "object") {
|
|
28
|
+
const cv = Object.prototype.toString.call(a);
|
|
29
|
+
const ct = Object.prototype.toString.call(b);
|
|
30
|
+
if (a && typeof b == "object" && cv == ct && j > 0) {
|
|
31
|
+
c = { ...a };
|
|
32
|
+
const n = j - 1;
|
|
33
|
+
if (n > 0) for (const key in b) {
|
|
34
|
+
const v = a[key];
|
|
35
|
+
const t = b[key];
|
|
36
|
+
c[key] = unmergeObject(v, t, n, i);
|
|
37
|
+
}
|
|
38
|
+
else for (const key in b) c[key] = b[key];
|
|
39
|
+
} else c = b;
|
|
40
|
+
} else c = b;
|
|
41
|
+
return c;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
45
|
+
function firstUpper(str) {
|
|
46
|
+
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
50
|
+
function lineToLargeHump(name) {
|
|
51
|
+
let arr = name.split("-");
|
|
52
|
+
arr = arr.map((vs) => {
|
|
53
|
+
return firstUpper(vs);
|
|
54
|
+
});
|
|
55
|
+
return arr.join("");
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
59
|
+
function firstLower(str) {
|
|
60
|
+
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
64
|
+
function lineToSmallHump(name) {
|
|
65
|
+
return firstLower(lineToLargeHump(name));
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/chunk-VRRDYCUH.js
|
|
69
|
+
function getComponentNames(name) {
|
|
70
|
+
if (name.includes("-")) {
|
|
71
|
+
const line = require_chunk_J7CICTHH.humpToLine(name);
|
|
72
|
+
const upper = lineToLargeHump(line);
|
|
73
|
+
return [
|
|
74
|
+
line,
|
|
75
|
+
upper,
|
|
76
|
+
lineToSmallHump(upper)
|
|
77
|
+
];
|
|
78
|
+
} else if (/[A-Z]/.test(name)) {
|
|
79
|
+
const line = require_chunk_J7CICTHH.humpToLine(name);
|
|
80
|
+
if (/^[A-Z]/.test(name)) {
|
|
81
|
+
const upper = lineToLargeHump(line);
|
|
82
|
+
const lower = lineToSmallHump(upper);
|
|
83
|
+
if (line.includes("-")) return [
|
|
84
|
+
line,
|
|
85
|
+
upper,
|
|
86
|
+
lower
|
|
87
|
+
];
|
|
88
|
+
else return [name, lower];
|
|
89
|
+
} else return [line, name];
|
|
90
|
+
} else return [name];
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
Object.defineProperty(exports, "firstUpper", {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function() {
|
|
96
|
+
return firstUpper;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "getComponentNames", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function() {
|
|
102
|
+
return getComponentNames;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
Object.defineProperty(exports, "styleLog", {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: function() {
|
|
108
|
+
return styleLog;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "unmergeObject", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function() {
|
|
114
|
+
return unmergeObject;
|
|
115
|
+
}
|
|
116
|
+
});
|
package/dist/util.cjs
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkAKNB7BKJcjs = require('./chunk-AKNB7BKJ.cjs');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.firstUpper = _chunkNLSI7A24cjs.firstUpper; exports.getComponentNames = _chunkNLSI7A24cjs.getComponentNames; exports.humpToLine = _chunkAKNB7BKJcjs.humpToLine; exports.styleLog = _chunkNLSI7A24cjs.styleLog; exports.unmergeObject = _chunkNLSI7A24cjs.unmergeObject;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_util = require("./util-DtBzae46.cjs");
|
|
3
|
+
const require_chunk_J7CICTHH = require("./chunk-J7CICTHH-DzD10422.cjs");
|
|
4
|
+
exports.firstUpper = require_util.firstUpper;
|
|
5
|
+
exports.getComponentNames = require_util.getComponentNames;
|
|
6
|
+
exports.humpToLine = require_chunk_J7CICTHH.humpToLine;
|
|
7
|
+
exports.styleLog = require_util.styleLog;
|
|
8
|
+
exports.unmergeObject = require_util.unmergeObject;
|
package/dist/util.d.cts
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/log/styleLog.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* 颜色
|
|
4
|
+
* 0 黑色 'black'
|
|
5
|
+
* 1 红色 'red'
|
|
6
|
+
* 2 绿色 'green'
|
|
7
|
+
* 3 黄色 'yellow'
|
|
8
|
+
* 4 蓝色 'blue'
|
|
9
|
+
* 5 洋红色 'magenta'
|
|
10
|
+
* 6 青色 'cyan'
|
|
11
|
+
* 7 白色 'white'
|
|
12
|
+
*/
|
|
13
|
+
interface StyleLogObj {
|
|
14
|
+
/**
|
|
15
|
+
* 背景颜色
|
|
16
|
+
* 10
|
|
17
|
+
* x1b[4${?}m
|
|
18
|
+
*/
|
|
19
|
+
bag?: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* 文字颜色
|
|
22
|
+
* x1b[3${?}m
|
|
23
|
+
*/
|
|
24
|
+
text?: string | number;
|
|
25
|
+
/**
|
|
26
|
+
* 是否是粗体
|
|
27
|
+
* x1b[1m
|
|
28
|
+
*/
|
|
29
|
+
bold?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否是斜体
|
|
32
|
+
* x1b[3m
|
|
33
|
+
*/
|
|
34
|
+
italic?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 中线
|
|
37
|
+
* \x1b[9m
|
|
38
|
+
*/
|
|
39
|
+
lineThrough?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 下线
|
|
42
|
+
* \x1b[4m
|
|
43
|
+
*/
|
|
44
|
+
revert?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 日志输出样式
|
|
48
|
+
* 颜色值 背景色 0 是白色 7是黑色 其他一样:
|
|
49
|
+
* 0 黑色 'black'
|
|
50
|
+
* 1 红色 'red'
|
|
51
|
+
* 2 绿色 'green'
|
|
52
|
+
* 3 黄色 'yellow'
|
|
53
|
+
* 4 蓝色 'blue'
|
|
54
|
+
* 5 洋红色 'magenta'
|
|
55
|
+
* 6 青色 'cyan'
|
|
56
|
+
* 7 白色 'white'
|
|
57
|
+
* @param {string} msg 要输出的日志字符串
|
|
58
|
+
* @param {StyleLogObj} obj 日志样式对象
|
|
59
|
+
* @param {string | number} obj.bag 背景颜色
|
|
60
|
+
* @param {string | number} obj.text 文字颜色
|
|
61
|
+
* @param {boolean } obj.bold 是否是粗体
|
|
62
|
+
* @param {boolean} obj.italic 是否是斜体
|
|
63
|
+
* @param {boolean} obj.lineThrough 中线
|
|
64
|
+
* @param {boolean} obj.revert 下线
|
|
65
|
+
* @returns {string} 带样式的日志
|
|
66
|
+
*/
|
|
67
|
+
declare function styleLog(msg?: string, obj?: StyleLogObj): string;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/basic/object/unmergeObject.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* 合并两个对象不改原对象的值
|
|
72
|
+
* @param {T} a 合并对象
|
|
73
|
+
* @param {T} b 合并对象
|
|
74
|
+
* @param {number} j 合并级别
|
|
75
|
+
* @param {boolean} i 是否合并数组
|
|
76
|
+
* @returns {T} 合并的对象
|
|
77
|
+
*/
|
|
78
|
+
declare function unmergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/name/getComponentNames.d.ts
|
|
81
|
+
/**
|
|
82
|
+
* 组件 获取三种方式名称 el-input ElInput elInput
|
|
83
|
+
* @param { string } name 要转换的字符串
|
|
84
|
+
* @returns { Array<string> } 转换后的数组
|
|
85
|
+
*/
|
|
86
|
+
declare function getComponentNames(name: string): Array<string>;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/name/humpToLine.d.ts
|
|
89
|
+
/**
|
|
90
|
+
* 驼峰命名转 - 方式
|
|
91
|
+
* @param { string } name 要转换的字符串
|
|
92
|
+
* @returns { string } 转换后字符串
|
|
93
|
+
*/
|
|
94
|
+
declare function humpToLine(name: string): string;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/basic/string/firstUpper.d.ts
|
|
97
|
+
/**
|
|
98
|
+
* 首字母大写
|
|
99
|
+
* @param {string} str 处理字符串
|
|
100
|
+
* @returns {string}
|
|
101
|
+
*/
|
|
102
|
+
declare function firstUpper(str: string): string;
|
|
103
|
+
//#endregion
|
|
104
|
+
export { firstUpper, getComponentNames, humpToLine, styleLog, unmergeObject };
|
package/dist/util.d.ts
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/log/styleLog.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* 颜色
|
|
4
|
+
* 0 黑色 'black'
|
|
5
|
+
* 1 红色 'red'
|
|
6
|
+
* 2 绿色 'green'
|
|
7
|
+
* 3 黄色 'yellow'
|
|
8
|
+
* 4 蓝色 'blue'
|
|
9
|
+
* 5 洋红色 'magenta'
|
|
10
|
+
* 6 青色 'cyan'
|
|
11
|
+
* 7 白色 'white'
|
|
12
|
+
*/
|
|
13
|
+
interface StyleLogObj {
|
|
14
|
+
/**
|
|
15
|
+
* 背景颜色
|
|
16
|
+
* 10
|
|
17
|
+
* x1b[4${?}m
|
|
18
|
+
*/
|
|
19
|
+
bag?: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* 文字颜色
|
|
22
|
+
* x1b[3${?}m
|
|
23
|
+
*/
|
|
24
|
+
text?: string | number;
|
|
25
|
+
/**
|
|
26
|
+
* 是否是粗体
|
|
27
|
+
* x1b[1m
|
|
28
|
+
*/
|
|
29
|
+
bold?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 是否是斜体
|
|
32
|
+
* x1b[3m
|
|
33
|
+
*/
|
|
34
|
+
italic?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 中线
|
|
37
|
+
* \x1b[9m
|
|
38
|
+
*/
|
|
39
|
+
lineThrough?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 下线
|
|
42
|
+
* \x1b[4m
|
|
43
|
+
*/
|
|
44
|
+
revert?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 日志输出样式
|
|
48
|
+
* 颜色值 背景色 0 是白色 7是黑色 其他一样:
|
|
49
|
+
* 0 黑色 'black'
|
|
50
|
+
* 1 红色 'red'
|
|
51
|
+
* 2 绿色 'green'
|
|
52
|
+
* 3 黄色 'yellow'
|
|
53
|
+
* 4 蓝色 'blue'
|
|
54
|
+
* 5 洋红色 'magenta'
|
|
55
|
+
* 6 青色 'cyan'
|
|
56
|
+
* 7 白色 'white'
|
|
57
|
+
* @param {string} msg 要输出的日志字符串
|
|
58
|
+
* @param {StyleLogObj} obj 日志样式对象
|
|
59
|
+
* @param {string | number} obj.bag 背景颜色
|
|
60
|
+
* @param {string | number} obj.text 文字颜色
|
|
61
|
+
* @param {boolean } obj.bold 是否是粗体
|
|
62
|
+
* @param {boolean} obj.italic 是否是斜体
|
|
63
|
+
* @param {boolean} obj.lineThrough 中线
|
|
64
|
+
* @param {boolean} obj.revert 下线
|
|
65
|
+
* @returns {string} 带样式的日志
|
|
66
|
+
*/
|
|
67
|
+
declare function styleLog(msg?: string, obj?: StyleLogObj): string;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/basic/object/unmergeObject.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* 合并两个对象不改原对象的值
|
|
72
|
+
* @param {T} a 合并对象
|
|
73
|
+
* @param {T} b 合并对象
|
|
74
|
+
* @param {number} j 合并级别
|
|
75
|
+
* @param {boolean} i 是否合并数组
|
|
76
|
+
* @returns {T} 合并的对象
|
|
77
|
+
*/
|
|
78
|
+
declare function unmergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/name/getComponentNames.d.ts
|
|
81
|
+
/**
|
|
82
|
+
* 组件 获取三种方式名称 el-input ElInput elInput
|
|
83
|
+
* @param { string } name 要转换的字符串
|
|
84
|
+
* @returns { Array<string> } 转换后的数组
|
|
85
|
+
*/
|
|
86
|
+
declare function getComponentNames(name: string): Array<string>;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/name/humpToLine.d.ts
|
|
89
|
+
/**
|
|
90
|
+
* 驼峰命名转 - 方式
|
|
91
|
+
* @param { string } name 要转换的字符串
|
|
92
|
+
* @returns { string } 转换后字符串
|
|
93
|
+
*/
|
|
94
|
+
declare function humpToLine(name: string): string;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region node_modules/.pnpm/@fangzhongya+utils@0.0.80/node_modules/@fangzhongya/utils/dist/basic/string/firstUpper.d.ts
|
|
97
|
+
/**
|
|
98
|
+
* 首字母大写
|
|
99
|
+
* @param {string} str 处理字符串
|
|
100
|
+
* @returns {string}
|
|
101
|
+
*/
|
|
102
|
+
declare function firstUpper(str: string): string;
|
|
103
|
+
//#endregion
|
|
104
|
+
export { firstUpper, getComponentNames, humpToLine, styleLog, unmergeObject };
|
package/dist/util.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
styleLog,
|
|
5
|
-
unmergeObject
|
|
6
|
-
} from "./chunk-3XFEJIQP.js";
|
|
7
|
-
import {
|
|
8
|
-
humpToLine
|
|
9
|
-
} from "./chunk-TVGK2KRP.js";
|
|
10
|
-
export {
|
|
11
|
-
firstUpper,
|
|
12
|
-
getComponentNames,
|
|
13
|
-
humpToLine,
|
|
14
|
-
styleLog,
|
|
15
|
-
unmergeObject
|
|
16
|
-
};
|
|
1
|
+
import { i as styleLog, n as firstUpper, r as unmergeObject, t as getComponentNames } from "./util-Ddld3oFr.js";
|
|
2
|
+
import { t as humpToLine } from "./chunk-J7CICTHH-Ikr5rmAQ.js";
|
|
3
|
+
export { firstUpper, getComponentNames, humpToLine, styleLog, unmergeObject };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@fangzhongya/vue-components",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.30",
|
|
6
6
|
"description ": "unplugin-vue-components插件",
|
|
7
7
|
"author": "fangzhongya ",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@fangzhongya/create": "0.2.
|
|
22
|
-
"@fangzhongya/utils": "0.0.
|
|
23
|
-
"@types/node": "^25.
|
|
21
|
+
"@fangzhongya/create": "0.2.52",
|
|
22
|
+
"@fangzhongya/utils": "0.0.80",
|
|
23
|
+
"@types/node": "^25.9.2",
|
|
24
24
|
"ts-node": "^10.9.2",
|
|
25
|
-
"
|
|
26
|
-
"typescript": "^
|
|
25
|
+
"tsdown": "~0.22.2",
|
|
26
|
+
"typescript": "^6.0.3",
|
|
27
27
|
"unplugin-auto-import": "21.0.0",
|
|
28
|
-
"unplugin-vue-components": "^
|
|
29
|
-
"vitest": "^4.
|
|
30
|
-
"vue": "^3.5.
|
|
28
|
+
"unplugin-vue-components": "^32.1.0",
|
|
29
|
+
"vitest": "^4.1.8",
|
|
30
|
+
"vue": "^3.5.35"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"fast-glob": "^3.3.3"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"all": "pnpm dev & pnpm build & pnpm pub",
|
|
88
88
|
"dev:tests": "node --loader ts-node/esm node/tests.ts",
|
|
89
89
|
"devx:tests": "ts-node node/tests.ts",
|
|
90
|
-
"build": "
|
|
90
|
+
"build": "tsdown",
|
|
91
91
|
"test": "vitest test",
|
|
92
92
|
"test:run": "vitest run"
|
|
93
93
|
}
|