@fangzhongya/fang-ui 0.0.4 → 0.0.5
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/expand/components.cjs +4 -38
- package/dist/expand/components.js +2 -36
- package/package.json +11 -11
|
@@ -2,50 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var _chunkQEPARHHXcjs = require('./chunk-QEPARHHX.cjs');
|
|
4
4
|
|
|
5
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.9/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
6
|
-
function humpToLine(name) {
|
|
7
|
-
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
8
|
-
let result;
|
|
9
|
-
const arr = [];
|
|
10
|
-
let i = 0;
|
|
11
|
-
while ((result = reg.exec(name)) !== null) {
|
|
12
|
-
if (i == 0 && result.index != 0) {
|
|
13
|
-
arr.push(name.substring(0, result.index));
|
|
14
|
-
}
|
|
15
|
-
i++;
|
|
16
|
-
arr.push(result[1].toLowerCase());
|
|
17
|
-
}
|
|
18
|
-
if (arr.length == 0) {
|
|
19
|
-
return name;
|
|
20
|
-
} else {
|
|
21
|
-
let a = arr.join("-");
|
|
22
|
-
a = a.replace(/[-]{2,}/g, "-");
|
|
23
|
-
return a;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.9/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
28
|
-
function firstUpper(str) {
|
|
29
|
-
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.9/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
33
|
-
function lineToLargeHump(name) {
|
|
34
|
-
let arr = name.split("-");
|
|
35
|
-
arr = arr.map((vs) => {
|
|
36
|
-
return firstUpper(vs);
|
|
37
|
-
});
|
|
38
|
-
return arr.join("");
|
|
39
|
-
}
|
|
40
|
-
|
|
41
5
|
// expand/components.ts
|
|
6
|
+
var _humpToLine = require('@fangzhongya/utils/name/humpToLine');
|
|
7
|
+
var _lineToLargeHump = require('@fangzhongya/utils/name/lineToLargeHump');
|
|
42
8
|
var config = {
|
|
43
9
|
prefix: "",
|
|
44
10
|
name: "fang-ui",
|
|
45
11
|
styles: []
|
|
46
12
|
};
|
|
47
13
|
function namefilter(c, name) {
|
|
48
|
-
let vm = humpToLine(name);
|
|
14
|
+
let vm = _humpToLine.humpToLine.call(void 0, name);
|
|
49
15
|
if (c.alias) {
|
|
50
16
|
const reg1 = new RegExp("^" + c.alias + "-" + config.prefix + "-");
|
|
51
17
|
if (reg1.test(vm)) {
|
|
@@ -64,7 +30,7 @@ function getFrom(mc, type) {
|
|
|
64
30
|
const filename = mc.replace(new RegExp("^" + config.prefix + "-"), "");
|
|
65
31
|
if (type == 1) {
|
|
66
32
|
if (_chunkQEPARHHXcjs.config_default.components.includes(filename)) {
|
|
67
|
-
const name = lineToLargeHump(mc);
|
|
33
|
+
const name = _lineToLargeHump.lineToLargeHump.call(void 0, mc);
|
|
68
34
|
const from = `${config.name}/dist/components/${filename}/index`;
|
|
69
35
|
let sideEffects;
|
|
70
36
|
if (_chunkQEPARHHXcjs.config_default.sideEffects.includes(filename)) {
|
|
@@ -2,43 +2,9 @@ import {
|
|
|
2
2
|
config_default
|
|
3
3
|
} from "./chunk-ZHEIZG54.js";
|
|
4
4
|
|
|
5
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.9/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
|
|
6
|
-
function humpToLine(name) {
|
|
7
|
-
const reg = /(([A-Z])([^A-Z]*))/g;
|
|
8
|
-
let result;
|
|
9
|
-
const arr = [];
|
|
10
|
-
let i = 0;
|
|
11
|
-
while ((result = reg.exec(name)) !== null) {
|
|
12
|
-
if (i == 0 && result.index != 0) {
|
|
13
|
-
arr.push(name.substring(0, result.index));
|
|
14
|
-
}
|
|
15
|
-
i++;
|
|
16
|
-
arr.push(result[1].toLowerCase());
|
|
17
|
-
}
|
|
18
|
-
if (arr.length == 0) {
|
|
19
|
-
return name;
|
|
20
|
-
} else {
|
|
21
|
-
let a = arr.join("-");
|
|
22
|
-
a = a.replace(/[-]{2,}/g, "-");
|
|
23
|
-
return a;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.9/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
|
|
28
|
-
function firstUpper(str) {
|
|
29
|
-
return str.slice(0, 1).toUpperCase() + str.slice(1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// node_modules/.pnpm/@fangzhongya+utils@0.0.9/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
|
|
33
|
-
function lineToLargeHump(name) {
|
|
34
|
-
let arr = name.split("-");
|
|
35
|
-
arr = arr.map((vs) => {
|
|
36
|
-
return firstUpper(vs);
|
|
37
|
-
});
|
|
38
|
-
return arr.join("");
|
|
39
|
-
}
|
|
40
|
-
|
|
41
5
|
// expand/components.ts
|
|
6
|
+
import { humpToLine } from "@fangzhongya/utils/name/humpToLine";
|
|
7
|
+
import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
|
|
42
8
|
var config = {
|
|
43
9
|
prefix: "",
|
|
44
10
|
name: "fang-ui",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"bin": {
|
|
24
24
|
"fangui": "bin/fang-ui.js"
|
|
25
25
|
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.9.0",
|
|
28
|
+
"element-plus": "^2.9.10",
|
|
29
|
+
"@fangzhongya/utils": "0.0.9"
|
|
30
|
+
},
|
|
26
31
|
"devDependencies": {
|
|
27
32
|
"@fangzhongya/create": "0.2.21",
|
|
28
|
-
"@fangzhongya/utils": "0.0.9",
|
|
29
|
-
"@types/jquery": "^3.5.32",
|
|
30
|
-
"@types/lodash": "4.17.16",
|
|
31
33
|
"@types/node": "^22.15.18",
|
|
32
34
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
33
|
-
"axios": "^1.9.0",
|
|
34
|
-
"element-plus": "^2.9.10",
|
|
35
35
|
"fast-glob": "^3.3.3",
|
|
36
36
|
"sass": "^1.88.0",
|
|
37
37
|
"ts-node": "^10.9.2",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"vue": "^3.5.14",
|
|
46
46
|
"vue-tsc": "^2.2.10",
|
|
47
47
|
"@fang-ui/components": "0.0.1-0",
|
|
48
|
-
"@fang-ui/hooks": "0.0.1-0",
|
|
49
48
|
"@fang-ui/directives": "0.0.1-0",
|
|
50
49
|
"@fang-ui/icons": "0.0.1-0",
|
|
51
|
-
"@fang-ui/
|
|
50
|
+
"@fang-ui/hooks": "0.0.1-0",
|
|
52
51
|
"@fang-ui/theme": "0.0.1-0",
|
|
53
52
|
"@fang-ui/types": "0.0.1-0",
|
|
54
|
-
"@fang-ui/utils": "0.0.1-0"
|
|
53
|
+
"@fang-ui/utils": "0.0.1-0",
|
|
54
|
+
"@fang-ui/locale": "0.0.1-0"
|
|
55
55
|
},
|
|
56
56
|
"main": "./dist/index.cjs",
|
|
57
57
|
"module": "./dist/index.js",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"exports": {
|
|
63
63
|
"./css": "./dist/components/index.css",
|
|
64
64
|
"./scss": "./dist/components/index.scss",
|
|
65
|
+
"./*": "./dist/*",
|
|
65
66
|
".": {
|
|
66
67
|
"types": "./dist/index.d.ts",
|
|
67
68
|
"require": "./dist/index.cjs",
|
|
68
69
|
"import": "./dist/index.js"
|
|
69
|
-
}
|
|
70
|
-
"./*": "./*"
|
|
70
|
+
}
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"dev": "vite",
|