sculp-js 1.18.2 → 1.18.3
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/cjs/{array.js → array.cjs} +1 -1
- package/dist/cjs/{async.js → async.cjs} +1 -1
- package/dist/cjs/{base64.js → base64.cjs} +3 -3
- package/dist/cjs/{clipboard.js → clipboard.cjs} +3 -3
- package/dist/cjs/{cloneDeep.js → cloneDeep.cjs} +1 -1
- package/dist/cjs/{cookie.js → cookie.cjs} +2 -2
- package/dist/cjs/{date.js → date.cjs} +2 -2
- package/dist/cjs/{dom.js → dom.cjs} +4 -4
- package/dist/cjs/{download.js → download.cjs} +3 -3
- package/dist/cjs/{file.js → file.cjs} +2 -2
- package/dist/cjs/{func.js → func.cjs} +1 -1
- package/dist/cjs/{index.js → index.cjs} +29 -29
- package/dist/cjs/{isEqual.js → isEqual.cjs} +1 -1
- package/dist/cjs/{math.js → math.cjs} +1 -1
- package/dist/cjs/{number.js → number.cjs} +4 -4
- package/dist/cjs/{object.js → object.cjs} +2 -2
- package/dist/cjs/{path.js → path.cjs} +1 -1
- package/dist/cjs/{qs.js → qs.cjs} +3 -3
- package/dist/cjs/{random.js → random.cjs} +3 -3
- package/dist/cjs/{string.js → string.cjs} +1 -1
- package/dist/cjs/{tooltip.js → tooltip.cjs} +3 -3
- package/dist/cjs/{tree.js → tree.cjs} +3 -3
- package/dist/cjs/{type.js → type.cjs} +1 -1
- package/dist/cjs/{unicodeToolkit.js → unicodeToolkit.cjs} +1 -1
- package/dist/cjs/{unique.js → unique.cjs} +4 -4
- package/dist/cjs/{url.js → url.cjs} +4 -4
- package/dist/cjs/{validator.js → validator.cjs} +1 -1
- package/dist/cjs/{variable.js → variable.cjs} +2 -2
- package/dist/cjs/{watermark.js → watermark.cjs} +2 -2
- package/dist/esm/{array.js → array.mjs} +1 -1
- package/dist/esm/{async.js → async.mjs} +1 -1
- package/dist/esm/{base64.js → base64.mjs} +3 -3
- package/dist/esm/{clipboard.js → clipboard.mjs} +3 -3
- package/dist/esm/{cloneDeep.js → cloneDeep.mjs} +1 -1
- package/dist/esm/{cookie.js → cookie.mjs} +2 -2
- package/dist/esm/{date.js → date.mjs} +2 -2
- package/dist/esm/{dom.js → dom.mjs} +4 -4
- package/dist/esm/{download.js → download.mjs} +3 -3
- package/dist/esm/{file.js → file.mjs} +2 -2
- package/dist/esm/{func.js → func.mjs} +1 -1
- package/dist/esm/{index.js → index.mjs} +29 -29
- package/dist/esm/{isEqual.js → isEqual.mjs} +1 -1
- package/dist/esm/{math.js → math.mjs} +1 -1
- package/dist/esm/{number.js → number.mjs} +4 -4
- package/dist/esm/{object.js → object.mjs} +2 -2
- package/dist/esm/{path.js → path.mjs} +1 -1
- package/dist/esm/{qs.js → qs.mjs} +3 -3
- package/dist/esm/{random.js → random.mjs} +3 -3
- package/dist/esm/{string.js → string.mjs} +1 -1
- package/dist/esm/{tooltip.js → tooltip.mjs} +3 -3
- package/dist/esm/{tree.js → tree.mjs} +3 -3
- package/dist/esm/{type.js → type.mjs} +1 -1
- package/dist/esm/{unicodeToolkit.js → unicodeToolkit.mjs} +1 -1
- package/dist/esm/{unique.js → unique.mjs} +4 -4
- package/dist/esm/{url.js → url.mjs} +4 -4
- package/dist/esm/{validator.js → validator.mjs} +1 -1
- package/dist/esm/{variable.js → variable.mjs} +2 -2
- package/dist/esm/{watermark.js → watermark.mjs} +2 -2
- package/dist/umd/index.min.js +1 -1
- package/package.json +92 -120
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export { arrayEach, arrayEachAsync, arrayInsertBefore, arrayRemove, diffArray } from './array.
|
|
8
|
-
export { copyText, fallbackCopyText } from './clipboard.
|
|
9
|
-
export { cookieDel, cookieGet, cookieSet } from './cookie.
|
|
7
|
+
export { arrayEach, arrayEachAsync, arrayInsertBefore, arrayRemove, diffArray } from './array.mjs';
|
|
8
|
+
export { copyText, fallbackCopyText } from './clipboard.mjs';
|
|
9
|
+
export { cookieDel, cookieGet, cookieSet } from './cookie.mjs';
|
|
10
10
|
export {
|
|
11
11
|
calculateDate,
|
|
12
12
|
calculateDateTime,
|
|
@@ -15,7 +15,7 @@ export {
|
|
|
15
15
|
dateToStart,
|
|
16
16
|
formatDate,
|
|
17
17
|
isValidDate
|
|
18
|
-
} from './date.
|
|
18
|
+
} from './date.mjs';
|
|
19
19
|
export {
|
|
20
20
|
addClass,
|
|
21
21
|
getComputedCssVal,
|
|
@@ -25,8 +25,8 @@ export {
|
|
|
25
25
|
removeClass,
|
|
26
26
|
select,
|
|
27
27
|
setStyle
|
|
28
|
-
} from './dom.
|
|
29
|
-
export { crossOriginDownload, downloadBlob, downloadData, downloadHref, downloadURL } from './download.
|
|
28
|
+
} from './dom.mjs';
|
|
29
|
+
export { crossOriginDownload, downloadBlob, downloadData, downloadHref, downloadURL } from './download.mjs';
|
|
30
30
|
export {
|
|
31
31
|
isPlainObject,
|
|
32
32
|
objectAssign,
|
|
@@ -38,9 +38,9 @@ export {
|
|
|
38
38
|
objectAssign as objectMerge,
|
|
39
39
|
objectOmit,
|
|
40
40
|
objectPick
|
|
41
|
-
} from './object.
|
|
42
|
-
export { pathJoin, pathNormalize } from './path.
|
|
43
|
-
export { qsParse, qsStringify } from './qs.
|
|
41
|
+
} from './object.mjs';
|
|
42
|
+
export { pathJoin, pathNormalize } from './path.mjs';
|
|
43
|
+
export { qsParse, qsStringify } from './qs.mjs';
|
|
44
44
|
export {
|
|
45
45
|
STRING_ARABIC_NUMERALS,
|
|
46
46
|
STRING_LOWERCASE_ALPHA,
|
|
@@ -52,7 +52,7 @@ export {
|
|
|
52
52
|
stringFill,
|
|
53
53
|
stringFormat,
|
|
54
54
|
stringKebabCase
|
|
55
|
-
} from './string.
|
|
55
|
+
} from './string.mjs';
|
|
56
56
|
export {
|
|
57
57
|
arrayLike,
|
|
58
58
|
isArray,
|
|
@@ -77,13 +77,13 @@ export {
|
|
|
77
77
|
isUndefined,
|
|
78
78
|
objectHas,
|
|
79
79
|
default as typeIs
|
|
80
|
-
} from './type.
|
|
81
|
-
export { urlDelParams, urlParse, urlSetParams, urlStringify } from './url.
|
|
82
|
-
export { asyncMap, safeAwait, wait } from './async.
|
|
83
|
-
export { chooseLocalFile, compressImg, supportCanvas } from './file.
|
|
84
|
-
export { genCanvasWM } from './watermark.
|
|
85
|
-
export { debounce, getGlobal, once, setGlobal, throttle } from './func.
|
|
86
|
-
export { STRING_POOL, randomNumber, randomString, randomUuid } from './random.
|
|
80
|
+
} from './type.mjs';
|
|
81
|
+
export { urlDelParams, urlParse, urlSetParams, urlStringify } from './url.mjs';
|
|
82
|
+
export { asyncMap, safeAwait, wait } from './async.mjs';
|
|
83
|
+
export { chooseLocalFile, compressImg, supportCanvas } from './file.mjs';
|
|
84
|
+
export { genCanvasWM } from './watermark.mjs';
|
|
85
|
+
export { debounce, getGlobal, once, setGlobal, throttle } from './func.mjs';
|
|
86
|
+
export { STRING_POOL, randomNumber, randomString, randomUuid } from './random.mjs';
|
|
87
87
|
export {
|
|
88
88
|
HEX_POOL,
|
|
89
89
|
formatMoney,
|
|
@@ -91,9 +91,9 @@ export {
|
|
|
91
91
|
humanFileSize,
|
|
92
92
|
numberAbbr,
|
|
93
93
|
numberToHex
|
|
94
|
-
} from './number.
|
|
95
|
-
export { UNIQUE_NUMBER_SAFE_LENGTH, uniqueNumber, uniqueString } from './unique.
|
|
96
|
-
export { tooltipEvent } from './tooltip.
|
|
94
|
+
} from './number.mjs';
|
|
95
|
+
export { UNIQUE_NUMBER_SAFE_LENGTH, uniqueNumber, uniqueString } from './unique.mjs';
|
|
96
|
+
export { tooltipEvent } from './tooltip.mjs';
|
|
97
97
|
export {
|
|
98
98
|
filterDeep,
|
|
99
99
|
findDeep,
|
|
@@ -103,9 +103,9 @@ export {
|
|
|
103
103
|
fuzzySearchTree,
|
|
104
104
|
mapDeep,
|
|
105
105
|
searchTreeById
|
|
106
|
-
} from './tree.
|
|
107
|
-
export { add, divide, multiply, strip, subtract } from './math.
|
|
108
|
-
export { b64decode, b64encode, weAtob, weBtoa } from './base64.
|
|
106
|
+
} from './tree.mjs';
|
|
107
|
+
export { add, divide, multiply, strip, subtract } from './math.mjs';
|
|
108
|
+
export { b64decode, b64encode, weAtob, weBtoa } from './base64.mjs';
|
|
109
109
|
export {
|
|
110
110
|
EMAIL_REGEX,
|
|
111
111
|
HTTP_URL_REGEX,
|
|
@@ -123,8 +123,8 @@ export {
|
|
|
123
123
|
isNumerical,
|
|
124
124
|
isPhone,
|
|
125
125
|
isUrl
|
|
126
|
-
} from './validator.
|
|
127
|
-
export { escapeRegExp, executeInScope, parseVarFromString, replaceVarFromString, uniqueSymbol } from './variable.
|
|
128
|
-
export { cloneDeep } from './cloneDeep.
|
|
129
|
-
export { isEqual } from './isEqual.
|
|
130
|
-
export { UnicodeToolkit } from './unicodeToolkit.
|
|
126
|
+
} from './validator.mjs';
|
|
127
|
+
export { escapeRegExp, executeInScope, parseVarFromString, replaceVarFromString, uniqueSymbol } from './variable.mjs';
|
|
128
|
+
export { cloneDeep } from './cloneDeep.mjs';
|
|
129
|
+
export { isEqual } from './isEqual.mjs';
|
|
130
|
+
export { UnicodeToolkit } from './unicodeToolkit.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { getGlobal } from './func.
|
|
8
|
-
import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.
|
|
9
|
-
import { isNullOrUnDef } from './type.
|
|
7
|
+
import { getGlobal } from './func.mjs';
|
|
8
|
+
import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.mjs';
|
|
9
|
+
import { isNullOrUnDef } from './type.mjs';
|
|
10
10
|
|
|
11
11
|
const HEX_POOL = `${STRING_ARABIC_NUMERALS}${STRING_UPPERCASE_ALPHA}${STRING_LOWERCASE_ALPHA}`;
|
|
12
12
|
const supportBigInt = typeof BigInt !== 'undefined';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import typeIs, { isObject, objectHas, isNumber, isUndefined, isArray } from './type.
|
|
7
|
+
import typeIs, { isObject, objectHas, isNumber, isUndefined, isArray } from './type.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* 判断对象是否为纯对象
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { objectEach } from './object.
|
|
8
|
-
import { isUndefined, isArray, isString, isNumber, isBoolean, isDate } from './type.
|
|
7
|
+
import { objectEach } from './object.mjs';
|
|
8
|
+
import { isUndefined, isArray, isString, isNumber, isBoolean, isDate } from './type.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 解析查询参数,内部使用的是浏览器内置的 URLSearchParams 进行处理
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.
|
|
8
|
-
import { isString, isNumber } from './type.
|
|
7
|
+
import { STRING_ARABIC_NUMERALS, STRING_UPPERCASE_ALPHA, STRING_LOWERCASE_ALPHA } from './string.mjs';
|
|
8
|
+
import { isString, isNumber } from './type.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 随机整数
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { getStrWidthPx } from './dom.
|
|
8
|
-
import { isString } from './type.
|
|
7
|
+
import { getStrWidthPx } from './dom.mjs';
|
|
8
|
+
import { isString } from './type.mjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* 自定义的 tooltip, 支持鼠标移动动悬浮提示
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { objectOmit } from './object.
|
|
8
|
-
import { isObject, objectHas, isNodeList } from './type.
|
|
7
|
+
import { objectOmit } from './object.mjs';
|
|
8
|
+
import { isObject, objectHas, isNodeList } from './type.mjs';
|
|
9
9
|
|
|
10
10
|
const defaultFieldOptions = { keyField: 'key', childField: 'children', pidField: 'pid' };
|
|
11
11
|
const defaultSearchTreeOptions = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { numberToHex, HEX_POOL } from './number.
|
|
8
|
-
import { randomNumber } from './random.
|
|
9
|
-
import { isString, isNumber } from './type.
|
|
7
|
+
import { numberToHex, HEX_POOL } from './number.mjs';
|
|
8
|
+
import { randomNumber } from './random.mjs';
|
|
9
|
+
import { isString, isNumber } from './type.mjs';
|
|
10
10
|
|
|
11
11
|
const padStartWithZero = (str, maxLength = 2) => String(str).padStart(maxLength, '0');
|
|
12
12
|
let safeNo = 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { isFunction } from './type.
|
|
8
|
-
import { pathJoin } from './path.
|
|
9
|
-
import { qsParse, qsStringify } from './qs.
|
|
7
|
+
import { isFunction } from './type.mjs';
|
|
8
|
+
import { pathJoin } from './path.mjs';
|
|
9
|
+
import { qsParse, qsStringify } from './qs.mjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* url 解析
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sculp-js v1.18.
|
|
2
|
+
* sculp-js v1.18.3
|
|
3
3
|
* (c) 2023-present chandq
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { isNullOrUnDef, isString } from './type.
|
|
7
|
+
import { isNullOrUnDef, isString } from './type.mjs';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
* @created: Saturday, 2020-04-18 14:38:23
|
package/dist/umd/index.min.js
CHANGED