@gx-design-vue/pro-utils 0.2.0-beta.8 → 0.2.0-beta.81
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/base64/index.d.ts +20 -0
- package/dist/cloneDeep/cloneDeepWith.d.ts +43 -0
- package/dist/cloneDeep/index.d.ts +47 -0
- package/dist/getValueFromObjectByKey/index.d.ts +3 -0
- package/dist/index.d.ts +18 -9
- package/dist/isImg/index.d.ts +2 -0
- package/dist/isNil/index.d.ts +1 -0
- package/dist/isUrl/index.d.ts +6 -0
- package/dist/merge/index.d.ts +45 -2
- package/dist/merge/mergeWith.d.ts +49 -0
- package/dist/merge/useDeepMege.d.ts +43 -0
- package/dist/nanoid/index.d.ts +6 -0
- package/dist/omitUndefined/index.d.ts +2 -5
- package/dist/omitUndefinedAndEmptyArr/index.d.ts +1 -0
- package/dist/pro-utils.js +1134 -0
- package/dist/pro-utils.umd.cjs +13 -0
- package/dist/slots/index.d.ts +67 -8
- package/dist/typings/index.d.ts +17 -16
- package/dist/utils/config.d.ts +1 -2
- package/dist/utils/getSymbols.d.ts +1 -0
- package/dist/utils/getTag.d.ts +8 -0
- package/dist/utils/index.d.ts +145 -22
- package/dist/utils/isNotNil.d.ts +1 -0
- package/dist/utils/isPlainObject.d.ts +43 -0
- package/dist/utils/isPrimitive.d.ts +29 -0
- package/dist/utils/isTypedArray.d.ts +27 -0
- package/dist/utils/isUnsafeProperty.d.ts +11 -0
- package/dist/utils/isValid.d.ts +2 -0
- package/dist/utils/raf.d.ts +5 -0
- package/dist/utils/tags.d.ts +26 -0
- package/dist/utils/validate.d.ts +11 -8
- package/package.json +26 -49
- package/dist/pro-utils.mjs +0 -562
- package/dist/pro-utils.umd.js +0 -1
- package/dist/scroll/raf.d.ts +0 -9
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const regexpTag = "[object RegExp]";
|
|
2
|
+
export declare const stringTag = "[object String]";
|
|
3
|
+
export declare const numberTag = "[object Number]";
|
|
4
|
+
export declare const booleanTag = "[object Boolean]";
|
|
5
|
+
export declare const argumentsTag = "[object Arguments]";
|
|
6
|
+
export declare const symbolTag = "[object Symbol]";
|
|
7
|
+
export declare const dateTag = "[object Date]";
|
|
8
|
+
export declare const mapTag = "[object Map]";
|
|
9
|
+
export declare const setTag = "[object Set]";
|
|
10
|
+
export declare const arrayTag = "[object Array]";
|
|
11
|
+
export declare const functionTag = "[object Function]";
|
|
12
|
+
export declare const arrayBufferTag = "[object ArrayBuffer]";
|
|
13
|
+
export declare const objectTag = "[object Object]";
|
|
14
|
+
export declare const errorTag = "[object Error]";
|
|
15
|
+
export declare const dataViewTag = "[object DataView]";
|
|
16
|
+
export declare const uint8ArrayTag = "[object Uint8Array]";
|
|
17
|
+
export declare const uint8ClampedArrayTag = "[object Uint8ClampedArray]";
|
|
18
|
+
export declare const uint16ArrayTag = "[object Uint16Array]";
|
|
19
|
+
export declare const uint32ArrayTag = "[object Uint32Array]";
|
|
20
|
+
export declare const bigUint64ArrayTag = "[object BigUint64Array]";
|
|
21
|
+
export declare const int8ArrayTag = "[object Int8Array]";
|
|
22
|
+
export declare const int16ArrayTag = "[object Int16Array]";
|
|
23
|
+
export declare const int32ArrayTag = "[object Int32Array]";
|
|
24
|
+
export declare const bigInt64ArrayTag = "[object BigInt64Array]";
|
|
25
|
+
export declare const float32ArrayTag = "[object Float32Array]";
|
|
26
|
+
export declare const float64ArrayTag = "[object Float64Array]";
|
package/dist/utils/validate.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare function is(val: unknown, type: string): boolean;
|
|
2
2
|
export declare function isBoolean(val: unknown): val is boolean;
|
|
3
|
-
export declare function isNumber(val: unknown):
|
|
3
|
+
export declare function isNumber(val: unknown): val is number;
|
|
4
4
|
/**
|
|
5
|
-
* @author gx12358
|
|
5
|
+
* @author gx12358 gx12358@gmail.com
|
|
6
6
|
* @description 判断是否是数组
|
|
7
|
-
* @param
|
|
8
|
-
* @returns {
|
|
7
|
+
* @param val
|
|
8
|
+
* @returns {val is any[]|boolean}
|
|
9
9
|
*/
|
|
10
|
-
export declare function isArray(
|
|
10
|
+
export declare function isArray(val: any): val is Array<any>;
|
|
11
11
|
/**
|
|
12
12
|
* @Author gaoxiang
|
|
13
13
|
* @DateTime 2019/11/29
|
|
@@ -16,10 +16,13 @@ export declare function isArray(arg: unknown): boolean;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function isObject(val: any): val is Record<any, any>;
|
|
18
18
|
/**
|
|
19
|
-
* @author gx12358
|
|
19
|
+
* @author gx12358 gx12358@gmail.com
|
|
20
20
|
* @description 判断是否是字符串
|
|
21
21
|
* @param value
|
|
22
22
|
* @returns {boolean}
|
|
23
23
|
*/
|
|
24
|
-
export declare function isString(value: unknown):
|
|
25
|
-
export declare function isFunction(func:
|
|
24
|
+
export declare function isString(value: unknown): value is string;
|
|
25
|
+
export declare function isFunction(func: unknown): func is (...args: any[]) => any;
|
|
26
|
+
export declare function isJSONStr(str: any): boolean;
|
|
27
|
+
export declare function isMobile(): boolean;
|
|
28
|
+
export declare function isTablet(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gx-design-vue/pro-utils",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.0-beta.81",
|
|
5
|
+
"description": "Gx Design Pro Utils",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public",
|
|
8
|
+
"tag": "beta"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/pro-utils.js",
|
|
14
|
+
"require": "./dist/pro-utils.umd.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/pro-utils.umd.cjs",
|
|
18
|
+
"module": "./dist/pro-utils.js",
|
|
19
|
+
"types": "./dist",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
4
23
|
"scripts": {
|
|
5
24
|
"dev": "vite",
|
|
6
25
|
"build": "vite build",
|
|
@@ -10,55 +29,13 @@
|
|
|
10
29
|
"typecheck": "vue-tsc --noEmit && vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
|
|
11
30
|
"lint": "TIMING=1 eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
|
12
31
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
],
|
|
16
|
-
"types": "./dist",
|
|
17
|
-
"main": "./dist/pro-utils.umd.js",
|
|
18
|
-
"module": "./dist/pro-utils.mjs",
|
|
19
|
-
"exports": {
|
|
20
|
-
".": {
|
|
21
|
-
"import": "./dist/pro-utils.mjs",
|
|
22
|
-
"require": "./dist/pro-utils.umd.js"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"lodash-es": "^4.17.21",
|
|
27
|
-
"vue": "^3.2.45",
|
|
28
|
-
"vue-types": "^4.1.1"
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"vue": ">=3.0.0"
|
|
29
34
|
},
|
|
30
35
|
"devDependencies": {
|
|
31
|
-
"
|
|
32
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
|
33
|
-
"@rushstack/eslint-patch": "^1.1.0",
|
|
34
|
-
"@types/lodash-es": "^4.17.6",
|
|
35
|
-
"@types/jsdom": "^16.2.14",
|
|
36
|
-
"@types/node": "^16.11.26",
|
|
37
|
-
"@vitejs/plugin-vue": "^4.2.3",
|
|
38
|
-
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
39
|
-
"@vue/eslint-config-prettier": "^7.0.0",
|
|
40
|
-
"@vue/eslint-config-typescript": "^10.0.0",
|
|
41
|
-
"@vue/tsconfig": "^0.1.3",
|
|
42
|
-
"eslint": "^8.13.0",
|
|
43
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
44
|
-
"eslint-plugin-vue": "^8.6.0",
|
|
45
|
-
"jsdom": "^19.0.0",
|
|
46
|
-
"less": "^4.1.2",
|
|
47
|
-
"postcss": "^8.4.12",
|
|
48
|
-
"postcss-html": "^1.4.1",
|
|
49
|
-
"postcss-less": "^6.0.0",
|
|
50
|
-
"prettier": "^2.6.2",
|
|
51
|
-
"rollup": "^2.70.2",
|
|
52
|
-
"stylelint": "^14.7.1",
|
|
53
|
-
"stylelint-config-prettier": "^9.0.3",
|
|
54
|
-
"stylelint-config-recommended": "^7.0.0",
|
|
55
|
-
"stylelint-config-recommended-vue": "^1.4.0",
|
|
56
|
-
"stylelint-config-standard": "^25.0.0",
|
|
57
|
-
"stylelint-order": "^5.0.0",
|
|
58
|
-
"typescript": "^4.6.4",
|
|
59
|
-
"vite": "^4.3.8",
|
|
60
|
-
"vue-eslint-parser": "^9.0.3",
|
|
61
|
-
"vue-tsc": "^1.0.24"
|
|
36
|
+
"typescript": "^5.3.3"
|
|
62
37
|
},
|
|
63
|
-
"
|
|
38
|
+
"authors": [
|
|
39
|
+
"gx12358 <gx12358@gmail.com> (https://github.com/gx12358)"
|
|
40
|
+
]
|
|
64
41
|
}
|