sculp-js 1.13.2 → 1.13.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.
Files changed (119) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -1
  2. package/dist/cjs/array.js +1 -1
  3. package/dist/cjs/async.js +1 -1
  4. package/dist/cjs/base64.js +1 -1
  5. package/dist/cjs/clipboard.js +4 -2
  6. package/dist/cjs/cloneDeep.js +1 -1
  7. package/dist/cjs/cookie.js +1 -1
  8. package/dist/cjs/date.js +1 -1
  9. package/dist/cjs/dom.js +1 -1
  10. package/dist/cjs/download.js +4 -2
  11. package/dist/cjs/easing.js +1 -1
  12. package/dist/cjs/file.js +7 -3
  13. package/dist/cjs/func.js +1 -1
  14. package/dist/cjs/index.js +2 -1
  15. package/dist/cjs/math.js +1 -1
  16. package/dist/cjs/node_modules/bezier-easing/src/index.js +1 -1
  17. package/dist/cjs/number.js +1 -1
  18. package/dist/cjs/object.js +1 -1
  19. package/dist/cjs/path.js +1 -1
  20. package/dist/cjs/qs.js +1 -1
  21. package/dist/cjs/random.js +1 -1
  22. package/dist/cjs/string.js +1 -1
  23. package/dist/cjs/tooltip.js +5 -2
  24. package/dist/cjs/tree.js +79 -79
  25. package/dist/cjs/type.js +8 -1
  26. package/dist/cjs/unique.js +1 -1
  27. package/dist/cjs/url.js +1 -1
  28. package/dist/cjs/validator.js +1 -1
  29. package/dist/cjs/variable.js +1 -1
  30. package/dist/cjs/watermark.js +4 -2
  31. package/dist/esm/array.js +1 -1
  32. package/dist/esm/async.js +1 -1
  33. package/dist/esm/base64.js +1 -1
  34. package/dist/esm/clipboard.js +4 -2
  35. package/dist/esm/cloneDeep.js +1 -1
  36. package/dist/esm/cookie.js +1 -1
  37. package/dist/esm/date.js +1 -1
  38. package/dist/esm/dom.js +1 -1
  39. package/dist/esm/download.js +4 -2
  40. package/dist/esm/easing.js +1 -1
  41. package/dist/esm/file.js +7 -3
  42. package/dist/esm/func.js +1 -1
  43. package/dist/esm/index.js +2 -2
  44. package/dist/esm/math.js +1 -1
  45. package/dist/esm/number.js +1 -1
  46. package/dist/esm/object.js +1 -1
  47. package/dist/esm/path.js +1 -1
  48. package/dist/esm/qs.js +1 -1
  49. package/dist/esm/random.js +1 -1
  50. package/dist/esm/string.js +1 -1
  51. package/dist/esm/tooltip.js +5 -2
  52. package/dist/esm/tree.js +80 -80
  53. package/dist/esm/type.js +8 -2
  54. package/dist/esm/unique.js +1 -1
  55. package/dist/esm/url.js +1 -1
  56. package/dist/esm/validator.js +1 -1
  57. package/dist/esm/variable.js +1 -1
  58. package/dist/esm/watermark.js +4 -2
  59. package/dist/types/array.d.ts +0 -1
  60. package/dist/types/async.d.ts +0 -1
  61. package/dist/types/base64.d.ts +0 -1
  62. package/dist/types/clipboard.d.ts +0 -1
  63. package/dist/types/cloneDeep.d.ts +0 -1
  64. package/dist/types/cookie.d.ts +0 -1
  65. package/dist/types/date.d.ts +0 -1
  66. package/dist/types/dom.d.ts +0 -1
  67. package/dist/types/download.d.ts +0 -1
  68. package/dist/types/easing.d.ts +0 -1
  69. package/dist/types/file.d.ts +0 -1
  70. package/dist/types/func.d.ts +0 -1
  71. package/dist/types/index.d.ts +0 -1
  72. package/dist/types/math.d.ts +0 -1
  73. package/dist/types/number.d.ts +0 -1
  74. package/dist/types/object.d.ts +0 -1
  75. package/dist/types/path.d.ts +0 -1
  76. package/dist/types/qs.d.ts +0 -1
  77. package/dist/types/random.d.ts +0 -1
  78. package/dist/types/string.d.ts +0 -1
  79. package/dist/types/tooltip.d.ts +0 -1
  80. package/dist/types/tree.d.ts +4 -3
  81. package/dist/types/type.d.ts +4 -1
  82. package/dist/types/unique.d.ts +0 -1
  83. package/dist/types/url.d.ts +0 -1
  84. package/dist/types/validator.d.ts +0 -1
  85. package/dist/types/variable.d.ts +0 -1
  86. package/dist/types/watermark.d.ts +0 -1
  87. package/dist/umd/index.min.js +2 -2
  88. package/package.json +2 -1
  89. package/dist/types/array.d.ts.map +0 -1
  90. package/dist/types/async.d.ts.map +0 -1
  91. package/dist/types/base64.d.ts.map +0 -1
  92. package/dist/types/clipboard.d.ts.map +0 -1
  93. package/dist/types/cloneDeep.d.ts.map +0 -1
  94. package/dist/types/cookie.d.ts.map +0 -1
  95. package/dist/types/core-index.d.ts +0 -17
  96. package/dist/types/core-index.d.ts.map +0 -1
  97. package/dist/types/date.d.ts.map +0 -1
  98. package/dist/types/dom.d.ts.map +0 -1
  99. package/dist/types/download.d.ts.map +0 -1
  100. package/dist/types/easing.d.ts.map +0 -1
  101. package/dist/types/file.d.ts.map +0 -1
  102. package/dist/types/func.d.ts.map +0 -1
  103. package/dist/types/index.d.ts.map +0 -1
  104. package/dist/types/index.js +0 -3258
  105. package/dist/types/math.d.ts.map +0 -1
  106. package/dist/types/number.d.ts.map +0 -1
  107. package/dist/types/object.d.ts.map +0 -1
  108. package/dist/types/path.d.ts.map +0 -1
  109. package/dist/types/qs.d.ts.map +0 -1
  110. package/dist/types/random.d.ts.map +0 -1
  111. package/dist/types/string.d.ts.map +0 -1
  112. package/dist/types/tooltip.d.ts.map +0 -1
  113. package/dist/types/tree.d.ts.map +0 -1
  114. package/dist/types/type.d.ts.map +0 -1
  115. package/dist/types/unique.d.ts.map +0 -1
  116. package/dist/types/url.d.ts.map +0 -1
  117. package/dist/types/validator.d.ts.map +0 -1
  118. package/dist/types/variable.d.ts.map +0 -1
  119. package/dist/types/watermark.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/file.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -20,7 +20,7 @@ function supportCanvas() {
20
20
  * @returns {HTMLInputElement}
21
21
  */
22
22
  function chooseLocalFile(accept, changeCb) {
23
- const inputObj = document.createElement('input');
23
+ let inputObj = document.createElement('input');
24
24
  inputObj.setAttribute('id', String(Date.now()));
25
25
  inputObj.setAttribute('type', 'file');
26
26
  inputObj.setAttribute('style', 'visibility:hidden');
@@ -30,7 +30,11 @@ function chooseLocalFile(accept, changeCb) {
30
30
  // @ts-ignore
31
31
  inputObj.onchange = (e) => {
32
32
  changeCb(e.target.files);
33
- setTimeout(() => document.body.removeChild(inputObj));
33
+ setTimeout(() => {
34
+ document.body.removeChild(inputObj);
35
+ // @ts-ignore
36
+ inputObj = null;
37
+ });
34
38
  };
35
39
  }
36
40
  /**
package/dist/esm/func.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -14,7 +14,7 @@ export { isPlainObject, objectAssign, objectEach, objectEachAsync, objectFill, o
14
14
  export { pathJoin, pathNormalize } from './path.js';
15
15
  export { qsParse, qsStringify } from './qs.js';
16
16
  export { STRING_ARABIC_NUMERALS, STRING_LOWERCASE_ALPHA, STRING_UPPERCASE_ALPHA, parseQueryParams, stringAssign, stringCamelCase, stringEscapeHtml, stringFill, stringFormat, stringKebabCase } from './string.js';
17
- export { arrayLike, isArray, isBigInt, isBoolean, isDate, isEmpty, isError, isFunction, isJsonString, isNaN, isNull, isNullOrUnDef, isNullOrUnDef as isNullish, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, objectHas, typeIs } from './type.js';
17
+ export { arrayLike, isArray, isBigInt, isBoolean, isDate, isEmpty, isError, isFunction, isJsonString, isNaN, isNodeList, isNull, isNullOrUnDef, isNullOrUnDef as isNullish, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, objectHas, typeIs } from './type.js';
18
18
  export { urlDelParams, urlParse, urlSetParams, urlStringify } from './url.js';
19
19
  export { asyncMap, safeAwait, wait } from './async.js';
20
20
  export { chooseLocalFile, compressImg, supportCanvas } from './file.js';
package/dist/esm/math.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/path.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/qs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -113,9 +113,12 @@ function mouseenter($customTitle, title, e) {
113
113
  * @returns {*}
114
114
  */
115
115
  function handleMouseLeave(rootContainer = '#root') {
116
- const rootEl = isString(rootContainer) ? document.querySelector(rootContainer) : rootContainer, titleEl = document.querySelector('#customTitle1494304949567');
116
+ const rootEl = isString(rootContainer) ? document.querySelector(rootContainer) : rootContainer;
117
+ let titleEl = document.querySelector('#customTitle1494304949567');
117
118
  if (rootEl && titleEl) {
118
119
  rootEl.removeChild(titleEl);
120
+ // @ts-ignore
121
+ titleEl = null;
119
122
  }
120
123
  }
121
124
  const tooltipEvent = { handleMouseEnter, handleMouseLeave };
package/dist/esm/tree.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
6
6
 
7
7
  import { objectOmit } from './object.js';
8
- import { isObject, objectHas, isEmpty } from './type.js';
8
+ import { isObject, objectHas, isEmpty, isNodeList } from './type.js';
9
9
 
10
10
  const defaultFieldOptions = { keyField: 'key', childField: 'children', pidField: 'pid' };
11
11
  const defaultSearchTreeOptions = {
@@ -15,115 +15,115 @@ const defaultSearchTreeOptions = {
15
15
  ignoreCase: true
16
16
  };
17
17
  /**
18
- * 树遍历函数(支持continue和break操作), 可用于insert tree item remove tree item
18
+ * 树遍历函数(支持continue和break操作), 可用于遍历ArrayNodeList类型的数据
19
19
  * @param {ArrayLike<V>} tree 树形数据
20
20
  * @param {Function} iterator 迭代函数, 返回值为true时continue, 返回值为false时break
21
21
  * @param {options} options 支持定制子元素名称、反向遍历、广度优先遍历,默认{
22
22
  childField: 'children',
23
23
  reverse: false,
24
- breadthFirst: false
24
+ breadthFirst: false,
25
+ isDomNode: false,
25
26
  }
26
27
  * @returns {*}
27
28
  */
28
29
  function forEachDeep(tree, iterator, options = {
29
30
  childField: 'children',
30
31
  reverse: false,
31
- breadthFirst: false
32
+ breadthFirst: false,
33
+ isDomNode: false
32
34
  }) {
33
- const { childField = 'children', reverse = false, breadthFirst = false } = isObject(options) ? options : {};
35
+ const { childField = 'children', reverse = false, breadthFirst = false, isDomNode = false } = isObject(options) ? options : {};
34
36
  let isBreak = false;
35
37
  const queue = [];
36
- const walk = (arr, parent, level = 0) => {
37
- if (reverse) {
38
- for (let index = arr.length - 1; index >= 0; index--) {
39
- if (isBreak) {
38
+ const reverseWalk = (arr, parent, level = 0) => {
39
+ for (let index = arr.length - 1; index >= 0; index--) {
40
+ if (isBreak) {
41
+ break;
42
+ }
43
+ const item = arr[index];
44
+ // 广度优先
45
+ if (breadthFirst) {
46
+ queue.push({ item, index, array: arr, tree, parent, level });
47
+ }
48
+ else {
49
+ const re = iterator(item, index, arr, tree, parent, level);
50
+ if (re === false) {
51
+ isBreak = true;
40
52
  break;
41
53
  }
42
- const item = arr[index];
43
- // 广度优先
44
- if (breadthFirst) {
45
- queue.push({ item, index, array: arr, tree, parent, level });
54
+ else if (re === true) {
55
+ continue;
46
56
  }
47
- else {
48
- const re = iterator(item, index, arr, tree, parent, level);
49
- if (re === false) {
50
- isBreak = true;
51
- break;
52
- }
53
- else if (re === true) {
54
- continue;
55
- }
56
- if (item && Array.isArray(item[childField])) {
57
- walk(item[childField], item, level + 1);
58
- }
57
+ if (item && (isDomNode ? isNodeList(item[childField]) : Array.isArray(item[childField]))) {
58
+ reverseWalk(item[childField], item, level + 1);
59
59
  }
60
60
  }
61
- if (breadthFirst) {
62
- // Process queue
63
- while (queue.length > 0 && !isBreak) {
64
- const current = queue.shift();
65
- const { item, index, array, tree, parent, level } = current;
66
- const re = iterator(item, index, array, tree, parent, level);
67
- if (re === false) {
68
- isBreak = true;
69
- break;
70
- }
71
- else if (re === true) {
72
- continue;
73
- }
74
- if (item && Array.isArray(item[childField])) {
75
- walk(item[childField], item, level + 1);
76
- }
61
+ }
62
+ if (breadthFirst) {
63
+ // Process queue
64
+ while (queue.length > 0 && !isBreak) {
65
+ const current = queue.shift();
66
+ const { item, index, array, tree, parent, level } = current;
67
+ const re = iterator(item, index, array, tree, parent, level);
68
+ if (re === false) {
69
+ isBreak = true;
70
+ break;
71
+ }
72
+ else if (re === true) {
73
+ continue;
74
+ }
75
+ if (item && (isDomNode ? isNodeList(item[childField]) : Array.isArray(item[childField]))) {
76
+ reverseWalk(item[childField], item, level + 1);
77
77
  }
78
78
  }
79
79
  }
80
- else {
81
- for (let index = 0, len = arr.length; index < len; index++) {
82
- if (isBreak) {
80
+ };
81
+ const walk = (arr, parent, level = 0) => {
82
+ for (let index = 0, len = arr.length; index < len; index++) {
83
+ if (isBreak) {
84
+ break;
85
+ }
86
+ const item = arr[index];
87
+ if (breadthFirst) {
88
+ // 广度优先
89
+ queue.push({ item, index: index, array: arr, tree, parent, level });
90
+ }
91
+ else {
92
+ // 深度优先
93
+ const re = iterator(item, index, arr, tree, parent, level);
94
+ if (re === false) {
95
+ isBreak = true;
83
96
  break;
84
97
  }
85
- const item = arr[index];
86
- if (breadthFirst) {
87
- // 广度优先
88
- queue.push({ item, index: index, array: arr, tree, parent, level });
98
+ else if (re === true) {
99
+ continue;
89
100
  }
90
- else {
91
- // 深度优先
92
- const re = iterator(item, index, arr, tree, parent, level);
93
- if (re === false) {
94
- isBreak = true;
95
- break;
96
- }
97
- else if (re === true) {
98
- continue;
99
- }
100
- if (item && Array.isArray(item[childField])) {
101
- walk(item[childField], item, level + 1);
102
- }
101
+ if (item && (isDomNode ? isNodeList(item[childField]) : Array.isArray(item[childField]))) {
102
+ walk(item[childField], item, level + 1);
103
103
  }
104
104
  }
105
- if (breadthFirst) {
106
- while (queue.length > 0 && !isBreak) {
107
- const current = queue.shift();
108
- if (!current)
109
- break;
110
- const { item, index, array, tree, parent, level } = current;
111
- const re = iterator(item, index, array, tree, parent, level);
112
- if (re === false) {
113
- isBreak = true;
114
- break;
115
- }
116
- else if (re === true) {
117
- continue;
118
- }
119
- if (item && Array.isArray(item[childField])) {
120
- walk(item[childField], item, level + 1);
121
- }
105
+ }
106
+ if (breadthFirst) {
107
+ while (queue.length > 0 && !isBreak) {
108
+ const current = queue.shift();
109
+ if (!current)
110
+ break;
111
+ const { item, index, array, tree, parent, level } = current;
112
+ const re = iterator(item, index, array, tree, parent, level);
113
+ if (re === false) {
114
+ isBreak = true;
115
+ break;
116
+ }
117
+ else if (re === true) {
118
+ continue;
119
+ }
120
+ if (item && (isDomNode ? isNodeList(item[childField]) : Array.isArray(item[childField]))) {
121
+ walk(item[childField], item, level + 1);
122
122
  }
123
123
  }
124
124
  }
125
125
  };
126
- walk(tree, null, 0);
126
+ reverse ? reverseWalk(tree, null, 0) : walk(tree, null, 0);
127
127
  // @ts-ignore
128
128
  tree = null;
129
129
  }
package/dist/esm/type.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -124,5 +124,11 @@ function isEmpty(value) {
124
124
  }
125
125
  return !Object.keys(value).length;
126
126
  }
127
+ /**
128
+ * Checks if `value` is an NodeList object
129
+ */
130
+ function isNodeList(value) {
131
+ return isUndefined(NodeList) ? false : NodeList.prototype.isPrototypeOf(value);
132
+ }
127
133
 
128
- export { arrayLike, typeIs as default, isArray, isBigInt, isBoolean, isDate, isEmpty, isError, isFunction, isJsonString, isNaN, isNull, isNullOrUnDef, isNullOrUnDef as isNullish, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, objectHas, typeIs };
134
+ export { arrayLike, typeIs as default, isArray, isBigInt, isBoolean, isDate, isEmpty, isError, isFunction, isJsonString, isNaN, isNodeList, isNull, isNullOrUnDef, isNullOrUnDef as isNullish, isNumber, isObject, isPrimitive, isRegExp, isString, isSymbol, isUndefined, objectHas, typeIs };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
package/dist/esm/url.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * sculp-js v1.13.2
2
+ * sculp-js v1.13.4
3
3
  * (c) 2023-present chandq
4
4
  * Released under the MIT License.
5
5
  */
@@ -60,7 +60,7 @@ function genCanvasWM(content = '请勿外传', canvasWM) {
60
60
  const MutationObserver = window.MutationObserver || window.WebKitMutationObserver;
61
61
  if (MutationObserver) {
62
62
  let mo = new MutationObserver(function () {
63
- const __wm = document.querySelector(`#${watermarkId}`); // 只在__wm元素变动才重新调用 __canvasWM
63
+ let __wm = document.querySelector(`#${watermarkId}`); // 只在__wm元素变动才重新调用 __canvasWM
64
64
  if (!__wm) {
65
65
  // 避免一直触发
66
66
  // console.log('regenerate watermark by delete::')
@@ -78,6 +78,8 @@ function genCanvasWM(content = '请勿外传', canvasWM) {
78
78
  mo.disconnect();
79
79
  mo = null;
80
80
  container.removeChild(__wm);
81
+ // @ts-ignore
82
+ __wm = null;
81
83
  genCanvasWM(content, canvasWM);
82
84
  }
83
85
  }
@@ -47,4 +47,3 @@ export declare function arrayInsertBefore(array: AnyArray, start: number, to: nu
47
47
  * @returns {V[]}
48
48
  */
49
49
  export declare function arrayRemove<V>(array: V[], expect: (val: V, idx: number) => boolean): V[];
50
- //# sourceMappingURL=array.d.ts.map
@@ -34,4 +34,3 @@ export declare function asyncMap<T, R>(list: Array<T>, mapper: (val: T, idx: num
34
34
  }
35
35
  */
36
36
  export declare function safeAwait<T, U = Error>(promise: Promise<T>, errorExt?: object): Promise<[U, undefined] | [null, T]>;
37
- //# sourceMappingURL=async.d.ts.map
@@ -22,4 +22,3 @@ export declare function b64decode(base64: string): string;
22
22
  * @returns base64编码的字符串
23
23
  */
24
24
  export declare function b64encode(rawStr: string): string;
25
- //# sourceMappingURL=base64.d.ts.map
@@ -17,4 +17,3 @@ export declare function copyText(text: string, options?: CopyTextOptions): void;
17
17
  */
18
18
  export declare function fallbackCopyText(text: string, options?: CopyTextOptions): void;
19
19
  export {};
20
- //# sourceMappingURL=clipboard.d.ts.map
@@ -9,4 +9,3 @@
9
9
  * @returns {T}
10
10
  */
11
11
  export declare function cloneDeep<T>(source: T, map?: WeakMap<any, any>): T;
12
- //# sourceMappingURL=cloneDeep.d.ts.map
@@ -16,4 +16,3 @@ export declare function cookieSet(name: string, value: string, maxAge?: number |
16
16
  * @param name cookie 名称
17
17
  */
18
18
  export declare const cookieDel: (name: string) => void;
19
- //# sourceMappingURL=cookie.d.ts.map
@@ -71,4 +71,3 @@ export declare function calculateDate(originDate: DateValue, n: number, sep?: st
71
71
  * @returns {string} 转换后的目标日期时间
72
72
  */
73
73
  export declare function calculateDateTime(originDateTime: DateValue, n: number, dateSep?: string, timeSep?: string): string;
74
- //# sourceMappingURL=date.d.ts.map
@@ -71,4 +71,3 @@ export declare function getStrWidthPx(str: string, fontSize?: number, isRemove?:
71
71
  */
72
72
  export declare function select(element: HTMLElement): any;
73
73
  export {};
74
- //# sourceMappingURL=dom.d.ts.map
@@ -44,4 +44,3 @@ export type FileType = 'json' | 'csv' | 'xls' | 'xlsx';
44
44
  */
45
45
  export declare function downloadData(data: AnyObject | AnyObject[], fileType: FileType, filename: string, headers?: string[]): void;
46
46
  export {};
47
- //# sourceMappingURL=download.d.ts.map
@@ -29,4 +29,3 @@ export declare function easingFunctional(name: EasingNameOrDefine): EasingFuncti
29
29
  * @returns {string}
30
30
  */
31
31
  export declare function easingStringify(name: EasingNameOrDefine): string;
32
- //# sourceMappingURL=easing.d.ts.map
@@ -41,4 +41,3 @@ export interface ICompressImgResult {
41
41
  */
42
42
  export declare function compressImg(file: File | FileList, options?: ICompressOptions): Promise<ICompressImgResult | ICompressImgResult[] | null>;
43
43
  export {};
44
- //# sourceMappingURL=file.d.ts.map
@@ -47,4 +47,3 @@ export declare function setGlobal(key: string | number | symbol, val?: any): voi
47
47
  * @param val
48
48
  */
49
49
  export declare function getGlobal<T>(key: string | number | symbol): T | void;
50
- //# sourceMappingURL=func.d.ts.map
@@ -25,4 +25,3 @@ export * from './validator';
25
25
  export * from './variable';
26
26
  export * from './cloneDeep';
27
27
  export * from './easing';
28
- //# sourceMappingURL=index.d.ts.map
@@ -33,4 +33,3 @@ type NumberType = number | string;
33
33
  */
34
34
  export declare function strip(num: NumberType, precision?: number): number;
35
35
  export {};
36
- //# sourceMappingURL=math.d.ts.map
@@ -46,4 +46,3 @@ export declare function humanFileSize(num: number | string, options?: IHumanFile
46
46
  */
47
47
  export declare function formatNumber(num: number | string, decimals?: number): string;
48
48
  export { formatNumber as formatMoney };
49
- //# sourceMappingURL=number.d.ts.map
@@ -67,4 +67,3 @@ export declare function objectGet(obj: AnyObject | AnyArray | undefined, path: s
67
67
  k: string | undefined;
68
68
  v: any | undefined;
69
69
  };
70
- //# sourceMappingURL=object.d.ts.map
@@ -11,4 +11,3 @@ export declare const pathNormalize: (path: string) => string;
11
11
  * @returns {string}
12
12
  */
13
13
  export declare const pathJoin: (from: string, ...to: string[]) => string;
14
- //# sourceMappingURL=path.d.ts.map
@@ -19,4 +19,3 @@ export type Replacer = (value: LooseParamValue) => string | null;
19
19
  * @returns {string}
20
20
  */
21
21
  export declare function qsStringify(query: LooseParams, replacer?: Replacer): string;
22
- //# sourceMappingURL=qs.d.ts.map
@@ -24,4 +24,3 @@ export declare const randomString: RandomString;
24
24
  * @returns {string}
25
25
  */
26
26
  export declare function randomUuid(): string;
27
- //# sourceMappingURL=random.d.ts.map
@@ -64,4 +64,3 @@ export declare const stringFill: (length: number, value?: string) => string;
64
64
  * @returns {Record<string, string | string[]>}
65
65
  */
66
66
  export declare function parseQueryParams(searchStr?: string): Record<string, string | string[]>;
67
- //# sourceMappingURL=string.d.ts.map
@@ -33,4 +33,3 @@ declare const tooltipEvent: {
33
33
  handleMouseLeave: typeof handleMouseLeave;
34
34
  };
35
35
  export { tooltipEvent };
36
- //# sourceMappingURL=tooltip.d.ts.map
@@ -14,13 +14,14 @@ export interface IFilterCondition<V> {
14
14
  filter?: (args: V) => boolean;
15
15
  }
16
16
  /**
17
- * 树遍历函数(支持continue和break操作), 可用于insert tree item remove tree item
17
+ * 树遍历函数(支持continue和break操作), 可用于遍历ArrayNodeList类型的数据
18
18
  * @param {ArrayLike<V>} tree 树形数据
19
19
  * @param {Function} iterator 迭代函数, 返回值为true时continue, 返回值为false时break
20
20
  * @param {options} options 支持定制子元素名称、反向遍历、广度优先遍历,默认{
21
21
  childField: 'children',
22
22
  reverse: false,
23
- breadthFirst: false
23
+ breadthFirst: false,
24
+ isDomNode: false,
24
25
  }
25
26
  * @returns {*}
26
27
  */
@@ -28,6 +29,7 @@ export declare function forEachDeep<V>(tree: ArrayLike<V>, iterator: (val: V, in
28
29
  childField?: string;
29
30
  reverse?: boolean;
30
31
  breadthFirst?: boolean;
32
+ isDomNode?: boolean;
31
33
  }): void;
32
34
  /**
33
35
  * 创建一个新数组, 深度优先遍历的Map函数(支持continue和break操作), 可用于insert tree item 和 remove tree item
@@ -95,4 +97,3 @@ export declare function flatTree(treeList: any[], options?: IFieldOptions): any[
95
97
  * @returns {V[]}
96
98
  */
97
99
  export declare function fuzzySearchTree<V>(nodes: V[], filterCondition: IFilterCondition<V>, options?: ISearchTreeOpts): V[];
98
- //# sourceMappingURL=tree.d.ts.map
@@ -120,5 +120,8 @@ export declare function isJsonString(str: string): Object | boolean;
120
120
  * // => false
121
121
  */
122
122
  export declare function isEmpty(value: any): boolean;
123
+ /**
124
+ * Checks if `value` is an NodeList object
125
+ */
126
+ export declare function isNodeList(value: any): boolean;
123
127
  export default typeIs;
124
- //# sourceMappingURL=type.d.ts.map
@@ -18,4 +18,3 @@ export interface UniqueString {
18
18
  * @returns {string}
19
19
  */
20
20
  export declare const uniqueString: UniqueString;
21
- //# sourceMappingURL=unique.d.ts.map
@@ -43,4 +43,3 @@ export declare const urlSetParams: (url: string, setter: AnyObject) => string;
43
43
  * @returns {string}
44
44
  */
45
45
  export declare const urlDelParams: (url: string, removeKeys: string[]) => string;
46
- //# sourceMappingURL=url.d.ts.map
@@ -64,4 +64,3 @@ export declare const isNumerical: (value: string) => boolean;
64
64
  * @returns {boolean}
65
65
  */
66
66
  export declare const isDigit: (value: string) => boolean;
67
- //# sourceMappingURL=validator.d.ts.map
@@ -68,4 +68,3 @@ export declare function replaceVarFromString(sourceStr: string, targetObj: Recor
68
68
  * executeInScope("return $.fun.time.now()", scope)
69
69
  */
70
70
  export declare function executeInScope(code: string, scope?: Record<string, any>): any;
71
- //# sourceMappingURL=variable.d.ts.map
@@ -16,4 +16,3 @@ export interface ICanvasWM {
16
16
  * @example genCanvasWM({ content: 'QQMusicFE' })
17
17
  */
18
18
  export declare function genCanvasWM(content?: string, canvasWM?: ICanvasWM): void;
19
- //# sourceMappingURL=watermark.d.ts.map