@fangzhongya/vue-components 0.1.2-7 → 0.1.2-9
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 +26 -7
- package/dist/archive.js +22 -3
- package/dist/{chunk-CF5VMNJF.cjs → chunk-2JMJHEXX.cjs} +8 -8
- package/dist/{chunk-TOCPLYUE.js → chunk-4NUVBYE3.js} +3 -3
- package/dist/chunk-A532XNIQ.cjs +38 -0
- package/dist/{chunk-I4WDQX5G.cjs → chunk-BVPB2FLC.cjs} +5 -5
- package/dist/chunk-GZJZCHKB.cjs +6063 -0
- package/dist/chunk-I4TJHTKQ.js +6063 -0
- package/dist/chunk-IGEUOPSA.cjs +71 -0
- package/dist/chunk-KSHI5GQ7.js +71 -0
- package/dist/chunk-O6HOO6WA.js +38 -0
- package/dist/{chunk-R4DADB6M.js → chunk-WNPTUDIE.js} +8 -8
- package/dist/component.cjs +4 -3
- package/dist/component.js +3 -2
- package/dist/config.cjs +3 -2
- package/dist/config.js +2 -1
- package/dist/index.cjs +7 -6
- package/dist/index.js +5 -4
- package/dist/resolver.cjs +6 -5
- package/dist/resolver.js +5 -4
- package/dist/util.cjs +3 -2
- package/dist/util.js +2 -1
- package/package.json +6 -8
- package/dist/chunk-HF7ZS5PG.js +0 -468
- package/dist/chunk-IM5BK2S7.cjs +0 -468
- package/dist/chunk-PUE2ULUA.cjs +0 -22
- package/dist/chunk-SN4SJVXW.js +0 -22
package/dist/archive.cjs
CHANGED
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGZJZCHKBcjs = require('./chunk-GZJZCHKB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIGEUOPSAcjs = require('./chunk-IGEUOPSA.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2JMJHEXXcjs = require('./chunk-2JMJHEXX.cjs');
|
|
10
|
+
require('./chunk-A532XNIQ.cjs');
|
|
10
11
|
|
|
11
12
|
// packages/archive.ts
|
|
12
13
|
var _fs = require('fs');
|
|
13
14
|
var _path = require('path');
|
|
14
15
|
var archiveConfig = {
|
|
16
|
+
/**
|
|
17
|
+
* 自动导入的文件目录
|
|
18
|
+
*/
|
|
15
19
|
dir: "./packages/",
|
|
20
|
+
/**
|
|
21
|
+
* 匹配文件名称和文件类型
|
|
22
|
+
*/
|
|
16
23
|
matchexts: ["/src/index.vue"],
|
|
24
|
+
/**
|
|
25
|
+
* 是否去掉路径的前缀
|
|
26
|
+
*/
|
|
17
27
|
urlprefix: true,
|
|
28
|
+
/**
|
|
29
|
+
* 是否生成json 配置文件
|
|
30
|
+
*/
|
|
18
31
|
isJson: true,
|
|
32
|
+
/**
|
|
33
|
+
* 控制台是否输出日志
|
|
34
|
+
*/
|
|
19
35
|
log: true,
|
|
36
|
+
/**
|
|
37
|
+
* 生成json 配置文件名称
|
|
38
|
+
*/
|
|
20
39
|
jsonName: "./components.config.json"
|
|
21
40
|
};
|
|
22
41
|
function setJson(obj) {
|
|
@@ -38,14 +57,14 @@ function setJson(obj) {
|
|
|
38
57
|
}
|
|
39
58
|
}
|
|
40
59
|
function ComponentsResolverArchive(config2 = {}) {
|
|
41
|
-
const configs =
|
|
42
|
-
|
|
60
|
+
const configs = _chunk2JMJHEXXcjs.unmergeObject.call(void 0,
|
|
61
|
+
_chunkIGEUOPSAcjs.config,
|
|
43
62
|
archiveConfig,
|
|
44
63
|
2,
|
|
45
64
|
true
|
|
46
65
|
);
|
|
47
|
-
const fangComp = new (0,
|
|
48
|
-
|
|
66
|
+
const fangComp = new (0, _chunkGZJZCHKBcjs.component_default)(
|
|
67
|
+
_chunk2JMJHEXXcjs.unmergeObject.call(void 0, configs, config2, 1)
|
|
49
68
|
);
|
|
50
69
|
setJson(fangComp.config);
|
|
51
70
|
return [
|
package/dist/archive.js
CHANGED
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
component_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I4TJHTKQ.js";
|
|
4
4
|
import {
|
|
5
5
|
config
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KSHI5GQ7.js";
|
|
7
7
|
import {
|
|
8
8
|
unmergeObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WNPTUDIE.js";
|
|
10
|
+
import "./chunk-O6HOO6WA.js";
|
|
10
11
|
|
|
11
12
|
// packages/archive.ts
|
|
12
13
|
import { writeFile } from "node:fs";
|
|
13
14
|
import { resolve } from "node:path";
|
|
14
15
|
var archiveConfig = {
|
|
16
|
+
/**
|
|
17
|
+
* 自动导入的文件目录
|
|
18
|
+
*/
|
|
15
19
|
dir: "./packages/",
|
|
20
|
+
/**
|
|
21
|
+
* 匹配文件名称和文件类型
|
|
22
|
+
*/
|
|
16
23
|
matchexts: ["/src/index.vue"],
|
|
24
|
+
/**
|
|
25
|
+
* 是否去掉路径的前缀
|
|
26
|
+
*/
|
|
17
27
|
urlprefix: true,
|
|
28
|
+
/**
|
|
29
|
+
* 是否生成json 配置文件
|
|
30
|
+
*/
|
|
18
31
|
isJson: true,
|
|
32
|
+
/**
|
|
33
|
+
* 控制台是否输出日志
|
|
34
|
+
*/
|
|
19
35
|
log: true,
|
|
36
|
+
/**
|
|
37
|
+
* 生成json 配置文件名称
|
|
38
|
+
*/
|
|
20
39
|
jsonName: "./components.config.json"
|
|
21
40
|
};
|
|
22
41
|
function setJson(obj) {
|
|
@@ -1,4 +1,4 @@
|
|
|
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; }// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
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; }// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
2
2
|
function styleLog(msg = "", obj) {
|
|
3
3
|
const arr = ["\x1B[0m"];
|
|
4
4
|
if (_optionalChain([obj, 'optionalAccess', _ => _.revert])) {
|
|
@@ -28,7 +28,7 @@ function styleLog(msg = "", obj) {
|
|
|
28
28
|
return arr.join("");
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
31
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
32
32
|
function unmergeObject(a, b, j = 0, i) {
|
|
33
33
|
let c;
|
|
34
34
|
if (a instanceof Array) {
|
|
@@ -74,7 +74,7 @@ function unmergeObject(a, b, j = 0, i) {
|
|
|
74
74
|
return c;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
77
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
78
78
|
function humpToLine(name) {
|
|
79
79
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
80
80
|
let result;
|
|
@@ -96,12 +96,12 @@ function humpToLine(name) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
99
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
100
100
|
function firstUpper(str) {
|
|
101
101
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
104
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
105
105
|
function lineToLargeHump(name) {
|
|
106
106
|
let arr = name.split("-");
|
|
107
107
|
arr = arr.map((vs) => {
|
|
@@ -110,17 +110,17 @@ function lineToLargeHump(name) {
|
|
|
110
110
|
return arr.join("");
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
113
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
114
114
|
function firstLower(str) {
|
|
115
115
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
118
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
119
119
|
function lineToSmallHump(name) {
|
|
120
120
|
return firstLower(lineToLargeHump(name));
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-
|
|
123
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.7-9/node_modules/@fangzhongya/utils/dist/chunk-MXLYIZIX.js
|
|
124
124
|
function getComponentNames(name) {
|
|
125
125
|
if (name.includes("-")) {
|
|
126
126
|
const line = humpToLine(name);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
component_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I4TJHTKQ.js";
|
|
4
4
|
import {
|
|
5
5
|
config
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KSHI5GQ7.js";
|
|
7
7
|
import {
|
|
8
8
|
unmergeObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WNPTUDIE.js";
|
|
10
10
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
+
mod
|
|
32
|
+
));
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGZJZCHKBcjs = require('./chunk-GZJZCHKB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIGEUOPSAcjs = require('./chunk-IGEUOPSA.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk2JMJHEXXcjs = require('./chunk-2JMJHEXX.cjs');
|
|
10
10
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
13
|
-
const configs =
|
|
14
|
-
const fangComp = new (0,
|
|
13
|
+
const configs = _chunk2JMJHEXXcjs.unmergeObject.call(void 0, _chunkIGEUOPSAcjs.config, config2, 1);
|
|
14
|
+
const fangComp = new (0, _chunkGZJZCHKBcjs.component_default)(configs);
|
|
15
15
|
return [
|
|
16
16
|
{
|
|
17
17
|
type: "component",
|