@fangzhongya/vue-components 0.1.4-2 → 0.1.4-4
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 +6 -6
- package/dist/archive.js +3 -3
- package/dist/{chunk-X7CLYK62.js → chunk-3J4VOMAF.js} +2 -2
- package/dist/{chunk-JO3FU3FJ.cjs → chunk-7W5XCJSD.cjs} +1 -1
- package/dist/{chunk-UDMQRR2S.js → chunk-I22NBLDL.js} +2 -2
- package/dist/{chunk-BBUKS5YN.js → chunk-J7ACZOK6.js} +8 -8
- package/dist/{chunk-L2I63KQA.cjs → chunk-JJI4HPOH.cjs} +14 -14
- package/dist/{chunk-VT2OACF3.cjs → chunk-M6OYKMIV.cjs} +4 -4
- package/dist/{chunk-HTNQ5IXZ.js → chunk-MGYDUWF7.js} +1 -1
- package/dist/{chunk-GZCYXJUE.cjs → chunk-ZEBYUEDC.cjs} +10 -10
- package/dist/component.cjs +4 -4
- package/dist/component.js +3 -3
- package/dist/index.cjs +6 -6
- package/dist/index.js +4 -4
- package/dist/library.cjs +2 -2
- package/dist/library.js +1 -1
- package/dist/resolver.cjs +5 -5
- package/dist/resolver.js +4 -4
- package/dist/util.cjs +3 -3
- package/dist/util.js +2 -2
- package/package.json +3 -11
package/dist/archive.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJJI4HPOHcjs = require('./chunk-JJI4HPOH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkX23FY6UKcjs = require('./chunk-X23FY6UK.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkZEBYUEDCcjs = require('./chunk-ZEBYUEDC.cjs');
|
|
10
|
+
require('./chunk-7W5XCJSD.cjs');
|
|
11
11
|
|
|
12
12
|
// packages/archive.ts
|
|
13
13
|
var _fs = require('fs');
|
|
@@ -59,14 +59,14 @@ function setJson(obj) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
function ComponentsResolverArchive(config2 = {}) {
|
|
62
|
-
const configs =
|
|
62
|
+
const configs = _chunkZEBYUEDCcjs.unmergeObject.call(void 0,
|
|
63
63
|
_chunkX23FY6UKcjs.config,
|
|
64
64
|
archiveConfig,
|
|
65
65
|
2,
|
|
66
66
|
true
|
|
67
67
|
);
|
|
68
|
-
const fangComp = new (0,
|
|
69
|
-
|
|
68
|
+
const fangComp = new (0, _chunkJJI4HPOHcjs.component_default)(
|
|
69
|
+
_chunkZEBYUEDCcjs.unmergeObject.call(void 0, configs, config2, 1)
|
|
70
70
|
);
|
|
71
71
|
setJson(fangComp.config);
|
|
72
72
|
return [
|
package/dist/archive.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
component_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I22NBLDL.js";
|
|
4
4
|
import {
|
|
5
5
|
config
|
|
6
6
|
} from "./chunk-S6QJIPBZ.js";
|
|
7
7
|
import {
|
|
8
8
|
unmergeObject
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-J7ACZOK6.js";
|
|
10
|
+
import "./chunk-MGYDUWF7.js";
|
|
11
11
|
|
|
12
12
|
// packages/archive.ts
|
|
13
13
|
import { writeFile } from "node:fs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
component_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-I22NBLDL.js";
|
|
4
4
|
import {
|
|
5
5
|
config
|
|
6
6
|
} from "./chunk-S6QJIPBZ.js";
|
|
7
7
|
import {
|
|
8
8
|
unmergeObject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J7ACZOK6.js";
|
|
10
10
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
2
2
|
function humpToLine(name) {
|
|
3
3
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
4
4
|
let result;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
firstUpper,
|
|
3
3
|
getComponentNames,
|
|
4
4
|
styleLog
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J7ACZOK6.js";
|
|
6
6
|
import {
|
|
7
7
|
humpToLine
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MGYDUWF7.js";
|
|
9
9
|
|
|
10
10
|
// packages/component.ts
|
|
11
11
|
import fastGlob from "fast-glob";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
humpToLine
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MGYDUWF7.js";
|
|
4
4
|
|
|
5
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
5
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
6
6
|
function styleLog(msg = "", obj) {
|
|
7
7
|
const arr = ["\x1B[0m"];
|
|
8
8
|
if (obj?.revert) {
|
|
@@ -32,7 +32,7 @@ function styleLog(msg = "", obj) {
|
|
|
32
32
|
return arr.join("");
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
35
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
36
36
|
function unmergeObject(a, b, j = 0, i) {
|
|
37
37
|
let c;
|
|
38
38
|
if (a instanceof Array) {
|
|
@@ -78,12 +78,12 @@ function unmergeObject(a, b, j = 0, i) {
|
|
|
78
78
|
return c;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
81
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
82
82
|
function firstUpper(str) {
|
|
83
83
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
86
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
87
87
|
function lineToLargeHump(name) {
|
|
88
88
|
let arr = name.split("-");
|
|
89
89
|
arr = arr.map((vs) => {
|
|
@@ -92,17 +92,17 @@ function lineToLargeHump(name) {
|
|
|
92
92
|
return arr.join("");
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
95
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
96
96
|
function firstLower(str) {
|
|
97
97
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
100
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
101
101
|
function lineToSmallHump(name) {
|
|
102
102
|
return firstLower(lineToLargeHump(name));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
105
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-VRRDYCUH.js
|
|
106
106
|
function getComponentNames(name) {
|
|
107
107
|
if (name.includes("-")) {
|
|
108
108
|
const line = humpToLine(name);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZEBYUEDCcjs = require('./chunk-ZEBYUEDC.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7W5XCJSDcjs = require('./chunk-7W5XCJSD.cjs');
|
|
9
9
|
|
|
10
10
|
// packages/component.ts
|
|
11
11
|
var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);
|
|
@@ -247,7 +247,7 @@ var FangComponent = class {
|
|
|
247
247
|
* @returns { Boolean } 是否要替换
|
|
248
248
|
*/
|
|
249
249
|
#namefilter(name) {
|
|
250
|
-
name =
|
|
250
|
+
name = _chunk7W5XCJSDcjs.humpToLine.call(void 0, name);
|
|
251
251
|
if (this.config.startss) {
|
|
252
252
|
for (let index = 0; index < this.config.startss.length; index++) {
|
|
253
253
|
const element = this.config.startss[index] + "-";
|
|
@@ -307,7 +307,7 @@ var FangComponent = class {
|
|
|
307
307
|
} else if (as.length > 1) {
|
|
308
308
|
let m;
|
|
309
309
|
if (/[A-Z]/.test(yname.slice(0, 1))) {
|
|
310
|
-
m = yname.replace(
|
|
310
|
+
m = yname.replace(_chunkZEBYUEDCcjs.firstUpper.call(void 0, top), "");
|
|
311
311
|
} else {
|
|
312
312
|
m = yname.replace(top, "");
|
|
313
313
|
}
|
|
@@ -339,14 +339,14 @@ var FangComponent = class {
|
|
|
339
339
|
* @returns { Object } 注册的对象
|
|
340
340
|
*/
|
|
341
341
|
#setNameFrom(name, type) {
|
|
342
|
-
let mb =
|
|
342
|
+
let mb = _chunk7W5XCJSDcjs.humpToLine.call(void 0, name);
|
|
343
343
|
const alias = this.config.alias;
|
|
344
344
|
if (alias) {
|
|
345
345
|
if (mb.startsWith(alias + "-")) {
|
|
346
346
|
const reg = new RegExp("^" + alias + "-");
|
|
347
347
|
mb = mb.replace(reg, "");
|
|
348
348
|
const reg1 = new RegExp("^" + alias);
|
|
349
|
-
const reg2 = new RegExp("^" +
|
|
349
|
+
const reg2 = new RegExp("^" + _chunkZEBYUEDCcjs.firstUpper.call(void 0, alias));
|
|
350
350
|
if (reg1.test(name)) {
|
|
351
351
|
name = name.replace(reg1, "");
|
|
352
352
|
} else if (reg2.test(name)) {
|
|
@@ -391,7 +391,7 @@ var FangComponent = class {
|
|
|
391
391
|
* @returns {Array} 需要匹配的地址名称数组
|
|
392
392
|
*/
|
|
393
393
|
#setMatchUrls(name, type) {
|
|
394
|
-
const arr =
|
|
394
|
+
const arr = _chunkZEBYUEDCcjs.getComponentNames.call(void 0, name);
|
|
395
395
|
const urls = [];
|
|
396
396
|
if (type == "directive") {
|
|
397
397
|
const getMatchDir = this.config.getMatchDir;
|
|
@@ -547,39 +547,39 @@ var FangComponent = class {
|
|
|
547
547
|
};
|
|
548
548
|
const arr = [];
|
|
549
549
|
arr.push(
|
|
550
|
-
|
|
550
|
+
_chunkZEBYUEDCcjs.styleLog.call(void 0, "[@fangzhongya/vue-components]", {
|
|
551
551
|
text: 3
|
|
552
552
|
})
|
|
553
553
|
);
|
|
554
554
|
if (obj && obj.from) {
|
|
555
|
-
let sfrom =
|
|
555
|
+
let sfrom = _chunkZEBYUEDCcjs.styleLog.call(void 0, _optionalChain([obj, 'optionalAccess', _15 => _15.from]), {
|
|
556
556
|
text: 4,
|
|
557
557
|
revert: true
|
|
558
558
|
});
|
|
559
559
|
arr.push(
|
|
560
|
-
|
|
560
|
+
_chunkZEBYUEDCcjs.styleLog.call(void 0, type, {
|
|
561
561
|
text: texts[type]
|
|
562
562
|
})
|
|
563
563
|
);
|
|
564
564
|
arr.push(
|
|
565
|
-
|
|
565
|
+
_chunkZEBYUEDCcjs.styleLog.call(void 0, name, {
|
|
566
566
|
bold: true
|
|
567
567
|
})
|
|
568
568
|
);
|
|
569
569
|
if (!is) {
|
|
570
|
-
sfrom =
|
|
570
|
+
sfrom = _chunkZEBYUEDCcjs.styleLog.call(void 0, "+", {
|
|
571
571
|
text: 2
|
|
572
572
|
}) + sfrom;
|
|
573
573
|
}
|
|
574
574
|
arr.push(sfrom);
|
|
575
575
|
} else {
|
|
576
576
|
arr.push(
|
|
577
|
-
|
|
577
|
+
_chunkZEBYUEDCcjs.styleLog.call(void 0, type, {
|
|
578
578
|
text: texts[type]
|
|
579
579
|
})
|
|
580
580
|
);
|
|
581
581
|
arr.push(
|
|
582
|
-
|
|
582
|
+
_chunkZEBYUEDCcjs.styleLog.call(void 0, name, {
|
|
583
583
|
bold: true,
|
|
584
584
|
text: 1
|
|
585
585
|
})
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkJJI4HPOHcjs = require('./chunk-JJI4HPOH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkX23FY6UKcjs = require('./chunk-X23FY6UK.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZEBYUEDCcjs = require('./chunk-ZEBYUEDC.cjs');
|
|
10
10
|
|
|
11
11
|
// packages/resolver.ts
|
|
12
12
|
function ComponentsResolver(config2 = {}) {
|
|
13
|
-
const configs =
|
|
14
|
-
const fangComp = new (0,
|
|
13
|
+
const configs = _chunkZEBYUEDCcjs.unmergeObject.call(void 0, _chunkX23FY6UKcjs.config, config2, 1);
|
|
14
|
+
const fangComp = new (0, _chunkJJI4HPOHcjs.component_default)(configs);
|
|
15
15
|
return [
|
|
16
16
|
{
|
|
17
17
|
type: "component",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
1
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
2
2
|
function humpToLine(name) {
|
|
3
3
|
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
4
4
|
let result;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7W5XCJSDcjs = require('./chunk-7W5XCJSD.cjs');
|
|
4
4
|
|
|
5
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
5
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-HVQG2IGJ.js
|
|
6
6
|
function styleLog(msg = "", obj) {
|
|
7
7
|
const arr = ["\x1B[0m"];
|
|
8
8
|
if (_optionalChain([obj, 'optionalAccess', _ => _.revert])) {
|
|
@@ -32,7 +32,7 @@ function styleLog(msg = "", obj) {
|
|
|
32
32
|
return arr.join("");
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
35
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-A6J46LQK.js
|
|
36
36
|
function unmergeObject(a, b, j = 0, i) {
|
|
37
37
|
let c;
|
|
38
38
|
if (a instanceof Array) {
|
|
@@ -78,12 +78,12 @@ function unmergeObject(a, b, j = 0, i) {
|
|
|
78
78
|
return c;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
81
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
82
82
|
function firstUpper(str) {
|
|
83
83
|
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
86
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
87
87
|
function lineToLargeHump(name) {
|
|
88
88
|
let arr = name.split("-");
|
|
89
89
|
arr = arr.map((vs) => {
|
|
@@ -92,25 +92,25 @@ function lineToLargeHump(name) {
|
|
|
92
92
|
return arr.join("");
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
95
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js
|
|
96
96
|
function firstLower(str) {
|
|
97
97
|
return str.slice(0, 1).toLowerCase() + str.slice(1);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
100
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-AM67P3W7.js
|
|
101
101
|
function lineToSmallHump(name) {
|
|
102
102
|
return firstLower(lineToLargeHump(name));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-
|
|
105
|
+
// node_modules/.pnpm/@fangzhongya+utils@0.0.8-29/node_modules/@fangzhongya/utils/dist/chunk-VRRDYCUH.js
|
|
106
106
|
function getComponentNames(name) {
|
|
107
107
|
if (name.includes("-")) {
|
|
108
|
-
const line =
|
|
108
|
+
const line = _chunk7W5XCJSDcjs.humpToLine.call(void 0, name);
|
|
109
109
|
const upper = lineToLargeHump(line);
|
|
110
110
|
const lower = lineToSmallHump(upper);
|
|
111
111
|
return [line, upper, lower];
|
|
112
112
|
} else if (/[A-Z]/.test(name)) {
|
|
113
|
-
const line =
|
|
113
|
+
const line = _chunk7W5XCJSDcjs.humpToLine.call(void 0, name);
|
|
114
114
|
if (/^[A-Z]/.test(name)) {
|
|
115
115
|
const upper = lineToLargeHump(line);
|
|
116
116
|
const lower = lineToSmallHump(upper);
|
package/dist/component.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var _chunkJJI4HPOHcjs = require('./chunk-JJI4HPOH.cjs');
|
|
4
|
+
require('./chunk-ZEBYUEDC.cjs');
|
|
5
|
+
require('./chunk-7W5XCJSD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.default =
|
|
8
|
+
exports.default = _chunkJJI4HPOHcjs.component_default;
|
package/dist/component.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
component_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-I22NBLDL.js";
|
|
4
|
+
import "./chunk-J7ACZOK6.js";
|
|
5
|
+
import "./chunk-MGYDUWF7.js";
|
|
6
6
|
export {
|
|
7
7
|
component_default as default
|
|
8
8
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkM6OYKMIVcjs = require('./chunk-M6OYKMIV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJJI4HPOHcjs = require('./chunk-JJI4HPOH.cjs');
|
|
7
7
|
require('./chunk-X23FY6UK.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-ZEBYUEDC.cjs');
|
|
9
|
+
require('./chunk-7W5XCJSD.cjs');
|
|
10
10
|
|
|
11
11
|
// packages/index.ts
|
|
12
|
-
var FangComponent = class extends
|
|
12
|
+
var FangComponent = class extends _chunkJJI4HPOHcjs.component_default {
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.ComponentsResolver =
|
|
17
|
+
exports.ComponentsResolver = _chunkM6OYKMIVcjs.ComponentsResolver; exports.FangComponent = FangComponent;
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentsResolver
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3J4VOMAF.js";
|
|
4
4
|
import {
|
|
5
5
|
component_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I22NBLDL.js";
|
|
7
7
|
import "./chunk-S6QJIPBZ.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-J7ACZOK6.js";
|
|
9
|
+
import "./chunk-MGYDUWF7.js";
|
|
10
10
|
|
|
11
11
|
// packages/index.ts
|
|
12
12
|
var FangComponent = class extends component_default {
|
package/dist/library.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7W5XCJSDcjs = require('./chunk-7W5XCJSD.cjs');
|
|
4
4
|
|
|
5
5
|
// packages/library.ts
|
|
6
6
|
function namefilter(config, name) {
|
|
7
|
-
let vm =
|
|
7
|
+
let vm = _chunk7W5XCJSDcjs.humpToLine.call(void 0, name);
|
|
8
8
|
if (config.alias) {
|
|
9
9
|
const reg1 = new RegExp("^" + config.alias + "-" + config.prefix + "-");
|
|
10
10
|
if (reg1.test(vm)) {
|
package/dist/library.js
CHANGED
package/dist/resolver.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkM6OYKMIVcjs = require('./chunk-M6OYKMIV.cjs');
|
|
4
|
+
require('./chunk-JJI4HPOH.cjs');
|
|
5
5
|
require('./chunk-X23FY6UK.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-ZEBYUEDC.cjs');
|
|
7
|
+
require('./chunk-7W5XCJSD.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.ComponentsResolver =
|
|
10
|
+
exports.ComponentsResolver = _chunkM6OYKMIVcjs.ComponentsResolver;
|
package/dist/resolver.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComponentsResolver
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3J4VOMAF.js";
|
|
4
|
+
import "./chunk-I22NBLDL.js";
|
|
5
5
|
import "./chunk-S6QJIPBZ.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-J7ACZOK6.js";
|
|
7
|
+
import "./chunk-MGYDUWF7.js";
|
|
8
8
|
export {
|
|
9
9
|
ComponentsResolver
|
|
10
10
|
};
|
package/dist/util.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZEBYUEDCcjs = require('./chunk-ZEBYUEDC.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk7W5XCJSDcjs = require('./chunk-7W5XCJSD.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.firstUpper =
|
|
16
|
+
exports.firstUpper = _chunkZEBYUEDCcjs.firstUpper; exports.getComponentNames = _chunkZEBYUEDCcjs.getComponentNames; exports.humpToLine = _chunk7W5XCJSDcjs.humpToLine; exports.styleLog = _chunkZEBYUEDCcjs.styleLog; exports.unmergeObject = _chunkZEBYUEDCcjs.unmergeObject;
|
package/dist/util.js
CHANGED
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
getComponentNames,
|
|
4
4
|
styleLog,
|
|
5
5
|
unmergeObject
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J7ACZOK6.js";
|
|
7
7
|
import {
|
|
8
8
|
humpToLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MGYDUWF7.js";
|
|
10
10
|
export {
|
|
11
11
|
firstUpper,
|
|
12
12
|
getComponentNames,
|
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.4-
|
|
5
|
+
"version": "0.1.4-4",
|
|
6
6
|
"description ": "unplugin-vue-components插件",
|
|
7
7
|
"author": "fangzhongya ",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"registry": "https://registry.npmjs.org/"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@fangzhongya/create": "0.2.4-
|
|
22
|
-
"@fangzhongya/utils": "0.0.8-
|
|
21
|
+
"@fangzhongya/create": "0.2.4-10",
|
|
22
|
+
"@fangzhongya/utils": "0.0.8-29",
|
|
23
23
|
"@types/node": "^18.15.5",
|
|
24
24
|
"ts-node": "^10.9.1",
|
|
25
25
|
"tsup": "^6.7.0",
|
|
@@ -63,20 +63,12 @@
|
|
|
63
63
|
"import": "./dist/index.js",
|
|
64
64
|
"types": "./dist/index.d.ts"
|
|
65
65
|
},
|
|
66
|
-
"./*": "./*",
|
|
67
66
|
"./library": {
|
|
68
67
|
"require": "./dist/library.cjs",
|
|
69
68
|
"import": "./dist/library.js",
|
|
70
69
|
"types": "./dist/library.d.ts"
|
|
71
70
|
}
|
|
72
71
|
},
|
|
73
|
-
"typesVersions": {
|
|
74
|
-
"*": {
|
|
75
|
-
"*": [
|
|
76
|
-
"./dist/*"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
72
|
"scripts": {
|
|
81
73
|
"dev": "ts-node node/index.ts",
|
|
82
74
|
"pub": "pnpm publish --access public --no-git-checks",
|