@fangzhongya/utils 0.0.33 → 0.0.34

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 (268) hide show
  1. package/dist/basic/array/compareArray.cjs +1 -0
  2. package/dist/basic/array/compareArray.js +1 -0
  3. package/dist/basic/array/index.cjs +6 -5
  4. package/dist/basic/array/index.js +7 -6
  5. package/dist/basic/index.cjs +13 -12
  6. package/dist/basic/index.js +12 -11
  7. package/dist/basic/object/index.cjs +8 -8
  8. package/dist/basic/object/index.js +8 -8
  9. package/dist/basic/string/index.cjs +10 -10
  10. package/dist/basic/string/index.js +11 -11
  11. package/dist/chunk-4SFMC3WS.cjs +24 -0
  12. package/dist/{chunk-LD6JU2VP.cjs → chunk-JZQA6OH4.cjs} +12 -12
  13. package/dist/chunk-M53E7HJ2.js +0 -0
  14. package/dist/{chunk-L2KRZ4TC.js → chunk-QBGA4H7C.js} +3 -3
  15. package/dist/{chunk-W2FTHPGA.js → chunk-TQGXHFVK.js} +16 -16
  16. package/dist/chunk-UC2AI4QC.cjs +1 -0
  17. package/dist/html/index.cjs +5 -5
  18. package/dist/html/index.js +7 -7
  19. package/dist/index.cjs +39 -38
  20. package/dist/index.js +41 -40
  21. package/dist/urls/getReplaceUrls.cjs +3 -3
  22. package/dist/urls/getReplaceUrls.js +2 -2
  23. package/dist/urls/index.cjs +15 -15
  24. package/dist/urls/index.js +19 -19
  25. package/package.json +6 -1
  26. package/dist/basic/array/asyncMergeArray.d.cts +0 -9
  27. package/dist/basic/array/asyncMergeArray.d.ts +0 -9
  28. package/dist/basic/array/deleteArray.d.cts +0 -6
  29. package/dist/basic/array/deleteArray.d.ts +0 -6
  30. package/dist/basic/array/duplicateRemoval.d.cts +0 -9
  31. package/dist/basic/array/duplicateRemoval.d.ts +0 -9
  32. package/dist/basic/array/index.d.cts +0 -7
  33. package/dist/basic/array/index.d.ts +0 -7
  34. package/dist/basic/array/isArray.d.cts +0 -8
  35. package/dist/basic/array/isArray.d.ts +0 -8
  36. package/dist/basic/array/replaceAfter.d.cts +0 -11
  37. package/dist/basic/array/replaceAfter.d.ts +0 -11
  38. package/dist/basic/array/sortObj.d.cts +0 -10
  39. package/dist/basic/array/sortObj.d.ts +0 -10
  40. package/dist/basic/array/toggleArray.d.cts +0 -10
  41. package/dist/basic/array/toggleArray.d.ts +0 -10
  42. package/dist/basic/index.d.cts +0 -37
  43. package/dist/basic/index.d.ts +0 -37
  44. package/dist/basic/object/attrValueSort.d.cts +0 -12
  45. package/dist/basic/object/attrValueSort.d.ts +0 -12
  46. package/dist/basic/object/deepCopy.d.cts +0 -8
  47. package/dist/basic/object/deepCopy.d.ts +0 -8
  48. package/dist/basic/object/filterObject.d.cts +0 -14
  49. package/dist/basic/object/filterObject.d.ts +0 -14
  50. package/dist/basic/object/getSort.d.cts +0 -10
  51. package/dist/basic/object/getSort.d.ts +0 -10
  52. package/dist/basic/object/hasOwn.d.cts +0 -9
  53. package/dist/basic/object/hasOwn.d.ts +0 -9
  54. package/dist/basic/object/index.d.cts +0 -12
  55. package/dist/basic/object/index.d.ts +0 -12
  56. package/dist/basic/object/isObject.d.cts +0 -8
  57. package/dist/basic/object/isObject.d.ts +0 -8
  58. package/dist/basic/object/isObjectArray.d.cts +0 -8
  59. package/dist/basic/object/isObjectArray.d.ts +0 -8
  60. package/dist/basic/object/mergeObject.d.cts +0 -11
  61. package/dist/basic/object/mergeObject.d.ts +0 -11
  62. package/dist/basic/object/objValue.d.cts +0 -7
  63. package/dist/basic/object/objValue.d.ts +0 -7
  64. package/dist/basic/object/reverseObj.d.cts +0 -9
  65. package/dist/basic/object/reverseObj.d.ts +0 -9
  66. package/dist/basic/object/setSort.d.cts +0 -7
  67. package/dist/basic/object/setSort.d.ts +0 -7
  68. package/dist/basic/object/unmergeObject.d.cts +0 -11
  69. package/dist/basic/object/unmergeObject.d.ts +0 -11
  70. package/dist/basic/string/appearNum.d.cts +0 -9
  71. package/dist/basic/string/appearNum.d.ts +0 -9
  72. package/dist/basic/string/appearNumSeat.d.cts +0 -10
  73. package/dist/basic/string/appearNumSeat.d.ts +0 -10
  74. package/dist/basic/string/deComment.d.cts +0 -7
  75. package/dist/basic/string/deComment.d.ts +0 -7
  76. package/dist/basic/string/firstLower.d.cts +0 -8
  77. package/dist/basic/string/firstLower.d.ts +0 -8
  78. package/dist/basic/string/firstUpper.d.cts +0 -8
  79. package/dist/basic/string/firstUpper.d.ts +0 -8
  80. package/dist/basic/string/getImports.d.cts +0 -22
  81. package/dist/basic/string/getImports.d.ts +0 -22
  82. package/dist/basic/string/getStartSame.d.cts +0 -9
  83. package/dist/basic/string/getStartSame.d.ts +0 -9
  84. package/dist/basic/string/getStartSames.d.cts +0 -9
  85. package/dist/basic/string/getStartSames.d.ts +0 -9
  86. package/dist/basic/string/getStrNunPosit.d.cts +0 -10
  87. package/dist/basic/string/getStrNunPosit.d.ts +0 -10
  88. package/dist/basic/string/index.d.cts +0 -15
  89. package/dist/basic/string/index.d.ts +0 -15
  90. package/dist/basic/string/splitUpper.d.cts +0 -8
  91. package/dist/basic/string/splitUpper.d.ts +0 -8
  92. package/dist/basic/string/startsNum.d.cts +0 -9
  93. package/dist/basic/string/startsNum.d.ts +0 -9
  94. package/dist/basic/string/toFunction.d.cts +0 -19
  95. package/dist/basic/string/toFunction.d.ts +0 -19
  96. package/dist/basic/string/toJson.d.cts +0 -4
  97. package/dist/basic/string/toJson.d.ts +0 -4
  98. package/dist/basic/string/toJsons.d.cts +0 -60
  99. package/dist/basic/string/toJsons.d.ts +0 -60
  100. package/dist/basic/string/toStringParse.d.cts +0 -6
  101. package/dist/basic/string/toStringParse.d.ts +0 -6
  102. package/dist/chunk-PDNDFLZB.cjs +0 -24
  103. package/dist/css/fetchUnitValue.d.cts +0 -10
  104. package/dist/css/fetchUnitValue.d.ts +0 -10
  105. package/dist/css/getAttrObj.d.cts +0 -11
  106. package/dist/css/getAttrObj.d.ts +0 -11
  107. package/dist/css/getCss.d.cts +0 -9
  108. package/dist/css/getCss.d.ts +0 -9
  109. package/dist/css/getPositionRelative.d.cts +0 -7
  110. package/dist/css/getPositionRelative.d.ts +0 -7
  111. package/dist/css/getPrentClass.d.cts +0 -7
  112. package/dist/css/getPrentClass.d.ts +0 -7
  113. package/dist/css/getPrentCorres.d.cts +0 -7
  114. package/dist/css/getPrentCorres.d.ts +0 -7
  115. package/dist/css/getSVG.d.cts +0 -14
  116. package/dist/css/getSVG.d.ts +0 -14
  117. package/dist/css/getScssImports.d.cts +0 -8
  118. package/dist/css/getScssImports.d.ts +0 -8
  119. package/dist/css/index.d.cts +0 -11
  120. package/dist/css/index.d.ts +0 -11
  121. package/dist/css/setClassName.d.cts +0 -6
  122. package/dist/css/setClassName.d.ts +0 -6
  123. package/dist/css/setCss.d.cts +0 -11
  124. package/dist/css/setCss.d.ts +0 -11
  125. package/dist/css/setObjStyle.d.cts +0 -12
  126. package/dist/css/setObjStyle.d.ts +0 -12
  127. package/dist/date/format.d.cts +0 -3
  128. package/dist/date/format.d.ts +0 -3
  129. package/dist/date/index.d.cts +0 -1
  130. package/dist/date/index.d.ts +0 -1
  131. package/dist/dom/getLocus.d.cts +0 -14
  132. package/dist/dom/getLocus.d.ts +0 -14
  133. package/dist/dom/getShiftEvent.d.cts +0 -25
  134. package/dist/dom/getShiftEvent.d.ts +0 -25
  135. package/dist/dom/index.d.cts +0 -2
  136. package/dist/dom/index.d.ts +0 -2
  137. package/dist/html/analysisHtml.d.cts +0 -13
  138. package/dist/html/analysisHtml.d.ts +0 -13
  139. package/dist/html/generateHtml.d.cts +0 -5
  140. package/dist/html/generateHtml.d.ts +0 -5
  141. package/dist/html/getVueText.d.cts +0 -16
  142. package/dist/html/getVueText.d.ts +0 -16
  143. package/dist/html/htmlEscape.d.cts +0 -8
  144. package/dist/html/htmlEscape.d.ts +0 -8
  145. package/dist/html/index.d.cts +0 -4
  146. package/dist/html/index.d.ts +0 -4
  147. package/dist/index--yFTfMpc.d.cts +0 -29
  148. package/dist/index-B7gdHwF9.d.cts +0 -40
  149. package/dist/index-BU0xla6v.d.cts +0 -31
  150. package/dist/index-BbrWO_KD.d.cts +0 -16
  151. package/dist/index-BiHaQlE9.d.cts +0 -14
  152. package/dist/index-BocAlCa8.d.ts +0 -8
  153. package/dist/index-Bq6WKjlK.d.ts +0 -29
  154. package/dist/index-BqhKBGyX.d.ts +0 -14
  155. package/dist/index-Br7o4Zbz.d.ts +0 -9
  156. package/dist/index-Bta_eezz.d.ts +0 -12
  157. package/dist/index-C0q7yBX5.d.cts +0 -29
  158. package/dist/index-C1rfQdS-.d.ts +0 -8
  159. package/dist/index-C29DFVeC.d.ts +0 -20
  160. package/dist/index-CK2c-6vv.d.cts +0 -8
  161. package/dist/index-CLnASTZ5.d.ts +0 -29
  162. package/dist/index-CPO1AFVg.d.ts +0 -14
  163. package/dist/index-CS54GrWo.d.ts +0 -16
  164. package/dist/index-CdRz4xJD.d.ts +0 -15
  165. package/dist/index-CmiMKPSL.d.ts +0 -43
  166. package/dist/index-CnrmwHvE.d.cts +0 -15
  167. package/dist/index-Cqj4dm5n.d.ts +0 -8
  168. package/dist/index-CsYVH5m1.d.cts +0 -8
  169. package/dist/index-D1xTdh0f.d.cts +0 -8
  170. package/dist/index-DAi9PP0w.d.cts +0 -13
  171. package/dist/index-DOq59RNr.d.ts +0 -31
  172. package/dist/index-DPrdy8Ms.d.ts +0 -40
  173. package/dist/index-DaryquSt.d.cts +0 -43
  174. package/dist/index-Dmv6PGiQ.d.cts +0 -9
  175. package/dist/index-Dvp25i1P.d.cts +0 -10
  176. package/dist/index-cuR7l2XV.d.cts +0 -14
  177. package/dist/index-qUiGxoy_.d.cts +0 -20
  178. package/dist/index-syb18q2f.d.ts +0 -10
  179. package/dist/index-v-06_rNI.d.cts +0 -12
  180. package/dist/index-vCPDFXBq.d.ts +0 -13
  181. package/dist/index.d.cts +0 -98
  182. package/dist/index.d.ts +0 -98
  183. package/dist/iss/index.d.cts +0 -3
  184. package/dist/iss/index.d.ts +0 -3
  185. package/dist/judge/index.d.cts +0 -5
  186. package/dist/judge/index.d.ts +0 -5
  187. package/dist/judge/judge.d.cts +0 -155
  188. package/dist/judge/judge.d.ts +0 -155
  189. package/dist/judge/matchs.d.cts +0 -10
  190. package/dist/judge/matchs.d.ts +0 -10
  191. package/dist/judge/matchsEnd.d.cts +0 -9
  192. package/dist/judge/matchsEnd.d.ts +0 -9
  193. package/dist/judge/matchsStart.d.cts +0 -9
  194. package/dist/judge/matchsStart.d.ts +0 -9
  195. package/dist/judge/matchsWhole.d.cts +0 -9
  196. package/dist/judge/matchsWhole.d.ts +0 -9
  197. package/dist/load/getSynch.d.cts +0 -8
  198. package/dist/load/getSynch.d.ts +0 -8
  199. package/dist/load/index.d.cts +0 -2
  200. package/dist/load/index.d.ts +0 -2
  201. package/dist/load/loadScript.d.cts +0 -3
  202. package/dist/load/loadScript.d.ts +0 -3
  203. package/dist/log/index.d.cts +0 -1
  204. package/dist/log/index.d.ts +0 -1
  205. package/dist/log/styleLog.d.cts +0 -68
  206. package/dist/log/styleLog.d.ts +0 -68
  207. package/dist/name/getComponentNames.d.cts +0 -8
  208. package/dist/name/getComponentNames.d.ts +0 -8
  209. package/dist/name/getNames.d.cts +0 -8
  210. package/dist/name/getNames.d.ts +0 -8
  211. package/dist/name/humpToLine.d.cts +0 -8
  212. package/dist/name/humpToLine.d.ts +0 -8
  213. package/dist/name/index.d.cts +0 -5
  214. package/dist/name/index.d.ts +0 -5
  215. package/dist/name/lineToLargeHump.d.cts +0 -8
  216. package/dist/name/lineToLargeHump.d.ts +0 -8
  217. package/dist/name/lineToSmallHump.d.cts +0 -8
  218. package/dist/name/lineToSmallHump.d.ts +0 -8
  219. package/dist/node/getPort.d.cts +0 -13
  220. package/dist/node/getPort.d.ts +0 -13
  221. package/dist/node/index.d.cts +0 -1
  222. package/dist/node/index.d.ts +0 -1
  223. package/dist/tree/getTreeObj.d.cts +0 -26
  224. package/dist/tree/getTreeObj.d.ts +0 -26
  225. package/dist/tree/index.d.cts +0 -2
  226. package/dist/tree/index.d.ts +0 -2
  227. package/dist/tree/splitGroup.d.cts +0 -15
  228. package/dist/tree/splitGroup.d.ts +0 -15
  229. package/dist/urls/getImportUrl.d.cts +0 -9
  230. package/dist/urls/getImportUrl.d.ts +0 -9
  231. package/dist/urls/getImportUrlSuffix.d.cts +0 -9
  232. package/dist/urls/getImportUrlSuffix.d.ts +0 -9
  233. package/dist/urls/getNewFileName.d.cts +0 -8
  234. package/dist/urls/getNewFileName.d.ts +0 -8
  235. package/dist/urls/getReplaceCompleteUrl.d.cts +0 -9
  236. package/dist/urls/getReplaceCompleteUrl.d.ts +0 -9
  237. package/dist/urls/getReplaceImportUrl.d.cts +0 -9
  238. package/dist/urls/getReplaceImportUrl.d.ts +0 -9
  239. package/dist/urls/getReplaceUrl.d.cts +0 -9
  240. package/dist/urls/getReplaceUrl.d.ts +0 -9
  241. package/dist/urls/getReplaceUrls.d.cts +0 -9
  242. package/dist/urls/getReplaceUrls.d.ts +0 -9
  243. package/dist/urls/getSuffix.d.cts +0 -8
  244. package/dist/urls/getSuffix.d.ts +0 -8
  245. package/dist/urls/getUrlCatalogue.d.cts +0 -8
  246. package/dist/urls/getUrlCatalogue.d.ts +0 -8
  247. package/dist/urls/getUrlCatalogueLast.d.cts +0 -8
  248. package/dist/urls/getUrlCatalogueLast.d.ts +0 -8
  249. package/dist/urls/getUrlCatalogueObj.d.cts +0 -17
  250. package/dist/urls/getUrlCatalogueObj.d.ts +0 -17
  251. package/dist/urls/index.d.cts +0 -11
  252. package/dist/urls/index.d.ts +0 -11
  253. package/dist/window/copy.d.cts +0 -3
  254. package/dist/window/copy.d.ts +0 -3
  255. package/dist/window/getParam.d.cts +0 -9
  256. package/dist/window/getParam.d.ts +0 -9
  257. package/dist/window/index.d.cts +0 -2
  258. package/dist/window/index.d.ts +0 -2
  259. package/dist/{chunk-JFBFU6CT.cjs → chunk-3SJOLMSI.cjs} +8 -8
  260. package/dist/{chunk-UKUXUB64.cjs → chunk-4E4OWBN7.cjs} +7 -7
  261. package/dist/{chunk-X3YWX7YQ.js → chunk-7UVIWZ2J.js} +5 -5
  262. package/dist/{chunk-6K32ZUJG.js → chunk-EJZIISBA.js} +6 -6
  263. package/dist/{chunk-FB52NA2U.cjs → chunk-F4IWIVCD.cjs} +4 -4
  264. package/dist/{chunk-FSFT4EKE.js → chunk-GHJWTV6H.js} +3 -3
  265. package/dist/{chunk-UOQMDO75.cjs → chunk-HMAAC5QA.cjs} +3 -3
  266. package/dist/{chunk-MECBPLFH.js → chunk-IY346OU3.js} +7 -7
  267. package/dist/{chunk-WFPPLFOR.js → chunk-KDSELPFY.js} +10 -10
  268. package/dist/{chunk-SGYFZFWD.cjs → chunk-QN6KZWKM.cjs} +4 -4
@@ -1,9 +0,0 @@
1
- /**
2
- * 字符串在头部出现次数
3
- * @param str
4
- * @param substring
5
- * @returns
6
- */
7
- declare function startsNum(str: string, substring: string): number;
8
-
9
- export { startsNum };
@@ -1,9 +0,0 @@
1
- /**
2
- * 字符串在头部出现次数
3
- * @param str
4
- * @param substring
5
- * @returns
6
- */
7
- declare function startsNum(str: string, substring: string): number;
8
-
9
- export { startsNum };
@@ -1,19 +0,0 @@
1
- interface FunctionFormat {
2
- isAsync: boolean;
3
- isGenerator: boolean;
4
- name?: string;
5
- param: string;
6
- body: string;
7
- }
8
- /**
9
- * 将函数字符串转换为可执行函数(支持异步函数)
10
- */
11
- declare function toFunction(str: string, key?: string): Function | undefined;
12
- /**
13
- * 解析函数字符串格式(合并正则表达式优化性能)
14
- * @param v - 输入的函数或字符串
15
- * @returns 解析后的函数结构对象,失败返回null
16
- */
17
- declare function getFunctionFormat(v: Function | string): FunctionFormat | undefined;
18
-
19
- export { getFunctionFormat, toFunction };
@@ -1,19 +0,0 @@
1
- interface FunctionFormat {
2
- isAsync: boolean;
3
- isGenerator: boolean;
4
- name?: string;
5
- param: string;
6
- body: string;
7
- }
8
- /**
9
- * 将函数字符串转换为可执行函数(支持异步函数)
10
- */
11
- declare function toFunction(str: string, key?: string): Function | undefined;
12
- /**
13
- * 解析函数字符串格式(合并正则表达式优化性能)
14
- * @param v - 输入的函数或字符串
15
- * @returns 解析后的函数结构对象,失败返回null
16
- */
17
- declare function getFunctionFormat(v: Function | string): FunctionFormat | undefined;
18
-
19
- export { getFunctionFormat, toFunction };
@@ -1,4 +0,0 @@
1
- declare function toJSONStringify(obj: any, space?: number | string): string;
2
- declare function toJSONParse<T = any>(str: string, reviver?: (this: any, key: string, value: any) => any): T;
3
-
4
- export { toJSONParse, toJSONStringify };
@@ -1,4 +0,0 @@
1
- declare function toJSONStringify(obj: any, space?: number | string): string;
2
- declare function toJSONParse<T = any>(str: string, reviver?: (this: any, key: string, value: any) => any): T;
3
-
4
- export { toJSONParse, toJSONStringify };
@@ -1,60 +0,0 @@
1
- type ObjAny<T = any> = Record<string | number | symbol, T>;
2
- declare const TYPE_MARKERS: {
3
- FUNCTION_REF: string;
4
- CODE_BLOCK: string;
5
- /**内置对象*/
6
- SYMBOL: string;
7
- FUNCTION: string;
8
- UNDEFINED: string;
9
- DATE: string;
10
- REGEXP: string;
11
- NAN: string;
12
- BIGINT: string;
13
- MAP: string;
14
- SET: string;
15
- ARRAY_BUFFER: string;
16
- TYPED_ARRAY: string;
17
- DATA_VIEW: string;
18
- ERROR: string;
19
- URL: string;
20
- INFINITY: string;
21
- NEGATIVE_INFINITY: string;
22
- INT8_ARRAY: string;
23
- UINT8_ARRAY: string;
24
- UINT8_CLAMPED_ARRAY: string;
25
- INT16_ARRAY: string;
26
- UINT16_ARRAY: string;
27
- INT32_ARRAY: string;
28
- UINT32_ARRAY: string;
29
- FLOAT32_ARRAY: string;
30
- FLOAT64_ARRAY: string;
31
- BIGINT64_ARRAY: string;
32
- BIGUINT64_ARRAY: string;
33
- };
34
- /**
35
- * 安全序列化函数(支持更多内置对象)
36
- */
37
- declare function toJSONSStringify(obj: any, space?: number | string): string;
38
- /**
39
- * 安全反序列化函数(完整支持更多内置对象)
40
- */
41
- declare function toJSONSParse<T = any>(str: string, context?: ObjAny): T;
42
- type CodeBlock = {
43
- params: string[];
44
- body: string;
45
- name?: string;
46
- };
47
- /**
48
- * 序列化函数引用
49
- */
50
- declare function serializeFunctionRef(key: string): {
51
- [TYPE_MARKERS.FUNCTION_REF]: string;
52
- };
53
- /**
54
- * 序列化代码块
55
- */
56
- declare function serializeCodeBlock(value: CodeBlock): {
57
- [TYPE_MARKERS.CODE_BLOCK]: CodeBlock;
58
- };
59
-
60
- export { type CodeBlock, serializeCodeBlock, serializeFunctionRef, toJSONSParse, toJSONSStringify };
@@ -1,60 +0,0 @@
1
- type ObjAny<T = any> = Record<string | number | symbol, T>;
2
- declare const TYPE_MARKERS: {
3
- FUNCTION_REF: string;
4
- CODE_BLOCK: string;
5
- /**内置对象*/
6
- SYMBOL: string;
7
- FUNCTION: string;
8
- UNDEFINED: string;
9
- DATE: string;
10
- REGEXP: string;
11
- NAN: string;
12
- BIGINT: string;
13
- MAP: string;
14
- SET: string;
15
- ARRAY_BUFFER: string;
16
- TYPED_ARRAY: string;
17
- DATA_VIEW: string;
18
- ERROR: string;
19
- URL: string;
20
- INFINITY: string;
21
- NEGATIVE_INFINITY: string;
22
- INT8_ARRAY: string;
23
- UINT8_ARRAY: string;
24
- UINT8_CLAMPED_ARRAY: string;
25
- INT16_ARRAY: string;
26
- UINT16_ARRAY: string;
27
- INT32_ARRAY: string;
28
- UINT32_ARRAY: string;
29
- FLOAT32_ARRAY: string;
30
- FLOAT64_ARRAY: string;
31
- BIGINT64_ARRAY: string;
32
- BIGUINT64_ARRAY: string;
33
- };
34
- /**
35
- * 安全序列化函数(支持更多内置对象)
36
- */
37
- declare function toJSONSStringify(obj: any, space?: number | string): string;
38
- /**
39
- * 安全反序列化函数(完整支持更多内置对象)
40
- */
41
- declare function toJSONSParse<T = any>(str: string, context?: ObjAny): T;
42
- type CodeBlock = {
43
- params: string[];
44
- body: string;
45
- name?: string;
46
- };
47
- /**
48
- * 序列化函数引用
49
- */
50
- declare function serializeFunctionRef(key: string): {
51
- [TYPE_MARKERS.FUNCTION_REF]: string;
52
- };
53
- /**
54
- * 序列化代码块
55
- */
56
- declare function serializeCodeBlock(value: CodeBlock): {
57
- [TYPE_MARKERS.CODE_BLOCK]: CodeBlock;
58
- };
59
-
60
- export { type CodeBlock, serializeCodeBlock, serializeFunctionRef, toJSONSParse, toJSONSStringify };
@@ -1,6 +0,0 @@
1
- /**
2
- * 安全反序列化函数(完整支持更多内置对象)
3
- */
4
- declare function toStringParse(str: string, type: string, split?: string | RegExp): any;
5
-
6
- export { toStringParse };
@@ -1,6 +0,0 @@
1
- /**
2
- * 安全反序列化函数(完整支持更多内置对象)
3
- */
4
- declare function toStringParse(str: string, type: string, split?: string | RegExp): any;
5
-
6
- export { toStringParse };
@@ -1,24 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJFBFU6CTcjs = require('./chunk-JFBFU6CT.cjs');
4
-
5
-
6
- var _chunkUKUXUB64cjs = require('./chunk-UKUXUB64.cjs');
7
-
8
-
9
- var _chunkFB52NA2Ucjs = require('./chunk-FB52NA2U.cjs');
10
-
11
-
12
- var _chunk75ZPJI57cjs = require('./chunk-75ZPJI57.cjs');
13
-
14
- // packages/basic/index.ts
15
- var basic_exports = {};
16
- _chunk75ZPJI57cjs.__export.call(void 0, basic_exports, {
17
- array: () => _chunkFB52NA2Ucjs.array_exports,
18
- object: () => _chunkUKUXUB64cjs.object_exports,
19
- string: () => _chunkJFBFU6CTcjs.string_exports
20
- });
21
-
22
-
23
-
24
- exports.basic_exports = basic_exports;
@@ -1,10 +0,0 @@
1
- /**
2
- * 提取单位值
3
- * @param text
4
- * @param str
5
- * @param callback
6
- * @returns
7
- */
8
- declare function fetchUnitValue(text: string, str: string, callback?: (n: number, dw: string, yss: string, i: number) => string): string;
9
-
10
- export { fetchUnitValue };
@@ -1,10 +0,0 @@
1
- /**
2
- * 提取单位值
3
- * @param text
4
- * @param str
5
- * @param callback
6
- * @returns
7
- */
8
- declare function fetchUnitValue(text: string, str: string, callback?: (n: number, dw: string, yss: string, i: number) => string): string;
9
-
10
- export { fetchUnitValue };
@@ -1,11 +0,0 @@
1
- type ObjStr = {
2
- [key: string]: string;
3
- };
4
- /**
5
- * 获取属性对象
6
- * @param str
7
- * @returns
8
- */
9
- declare function getAttrObj(str: string): ObjStr;
10
-
11
- export { getAttrObj };
@@ -1,11 +0,0 @@
1
- type ObjStr = {
2
- [key: string]: string;
3
- };
4
- /**
5
- * 获取属性对象
6
- * @param str
7
- * @returns
8
- */
9
- declare function getAttrObj(str: string): ObjStr;
10
-
11
- export { getAttrObj };
@@ -1,9 +0,0 @@
1
- /**
2
- * 获取对应的属性值
3
- * @param elem
4
- * @param style
5
- * @returns
6
- */
7
- declare function getCss(elem: Element, style: string): any;
8
-
9
- export { getCss };
@@ -1,9 +0,0 @@
1
- /**
2
- * 获取对应的属性值
3
- * @param elem
4
- * @param style
5
- * @returns
6
- */
7
- declare function getCss(elem: Element, style: string): any;
8
-
9
- export { getCss };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素上父元素的relative的位置
3
- * @param el
4
- */
5
- declare function getPositionRelative(el: HTMLElement, str?: string): HTMLElement;
6
-
7
- export { getPositionRelative };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素上父元素的relative的位置
3
- * @param el
4
- */
5
- declare function getPositionRelative(el: HTMLElement, str?: string): HTMLElement;
6
-
7
- export { getPositionRelative };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素的对应样式
3
- * @param el
4
- */
5
- declare function getPrentClass(el: HTMLElement, cs: string, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentClass };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素的对应样式
3
- * @param el
4
- */
5
- declare function getPrentClass(el: HTMLElement, cs: string, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentClass };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素
3
- * @param el
4
- */
5
- declare function getPrentCorres(el: HTMLElement, is: (el: HTMLElement) => boolean, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentCorres };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素
3
- * @param el
4
- */
5
- declare function getPrentCorres(el: HTMLElement, is: (el: HTMLElement) => boolean, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentCorres };
@@ -1,14 +0,0 @@
1
- /**
2
- * 通过svg 字符串获取对应数据
3
- * @param{string} str
4
- */
5
- declare function getSVG(str: string): {
6
- body: string;
7
- viewBox: string;
8
- left: number;
9
- top: number;
10
- width: number;
11
- height: number;
12
- } | undefined;
13
-
14
- export { getSVG };
@@ -1,14 +0,0 @@
1
- /**
2
- * 通过svg 字符串获取对应数据
3
- * @param{string} str
4
- */
5
- declare function getSVG(str: string): {
6
- body: string;
7
- viewBox: string;
8
- left: number;
9
- top: number;
10
- width: number;
11
- height: number;
12
- } | undefined;
13
-
14
- export { getSVG };
@@ -1,8 +0,0 @@
1
- /**
2
- * 从 SCSS 文件内容中提取所有未被注释的 @use 和 @import 引用的路径
3
- * @param {string} scssContent - SCSS 文件内容
4
- * @returns {string[]} 提取到的路径数组(已去重)
5
- */
6
- declare function getScssImports(scssContent: string): string[];
7
-
8
- export { getScssImports };
@@ -1,8 +0,0 @@
1
- /**
2
- * 从 SCSS 文件内容中提取所有未被注释的 @use 和 @import 引用的路径
3
- * @param {string} scssContent - SCSS 文件内容
4
- * @returns {string[]} 提取到的路径数组(已去重)
5
- */
6
- declare function getScssImports(scssContent: string): string[];
7
-
8
- export { getScssImports };
@@ -1,11 +0,0 @@
1
- export { fetchUnitValue } from './fetchUnitValue.cjs';
2
- export { getAttrObj } from './getAttrObj.cjs';
3
- export { getCss } from './getCss.cjs';
4
- export { getPositionRelative } from './getPositionRelative.cjs';
5
- export { getPrentClass } from './getPrentClass.cjs';
6
- export { getPrentCorres } from './getPrentCorres.cjs';
7
- export { getSVG } from './getSVG.cjs';
8
- export { getScssImports } from './getScssImports.cjs';
9
- export { setClassName } from './setClassName.cjs';
10
- export { setCss } from './setCss.cjs';
11
- export { setObjStyle, toStyleString } from './setObjStyle.cjs';
@@ -1,11 +0,0 @@
1
- export { fetchUnitValue } from './fetchUnitValue.js';
2
- export { getAttrObj } from './getAttrObj.js';
3
- export { getCss } from './getCss.js';
4
- export { getPositionRelative } from './getPositionRelative.js';
5
- export { getPrentClass } from './getPrentClass.js';
6
- export { getPrentCorres } from './getPrentCorres.js';
7
- export { getSVG } from './getSVG.js';
8
- export { getScssImports } from './getScssImports.js';
9
- export { setClassName } from './setClassName.js';
10
- export { setCss } from './setCss.js';
11
- export { setObjStyle, toStyleString } from './setObjStyle.js';
@@ -1,6 +0,0 @@
1
- /***
2
- * 设置样式
3
- */
4
- declare function setClassName(dom: Element, newValue?: string, oldValue?: string): void;
5
-
6
- export { setClassName };
@@ -1,6 +0,0 @@
1
- /***
2
- * 设置样式
3
- */
4
- declare function setClassName(dom: Element, newValue?: string, oldValue?: string): void;
5
-
6
- export { setClassName };
@@ -1,11 +0,0 @@
1
- /**
2
- * 设置样式
3
- * @param elem
4
- * @param style
5
- * @param value
6
- */
7
- declare function setCss(elem: HTMLElement, style: string | {
8
- [key: string]: string;
9
- }, value?: string): void;
10
-
11
- export { setCss };
@@ -1,11 +0,0 @@
1
- /**
2
- * 设置样式
3
- * @param elem
4
- * @param style
5
- * @param value
6
- */
7
- declare function setCss(elem: HTMLElement, style: string | {
8
- [key: string]: string;
9
- }, value?: string): void;
10
-
11
- export { setCss };
@@ -1,12 +0,0 @@
1
- type ObjStrNum = {
2
- [key: string]: string | number;
3
- };
4
- /**
5
- * 把对象Style 转字符串
6
- * @param {*} obj
7
- * @returns
8
- */
9
- declare function toStyleString(obj: ObjStrNum): string;
10
- declare function setObjStyle(style: string | ObjStrNum, objColor: ObjStrNum): string | ObjStrNum;
11
-
12
- export { setObjStyle, toStyleString };
@@ -1,12 +0,0 @@
1
- type ObjStrNum = {
2
- [key: string]: string | number;
3
- };
4
- /**
5
- * 把对象Style 转字符串
6
- * @param {*} obj
7
- * @returns
8
- */
9
- declare function toStyleString(obj: ObjStrNum): string;
10
- declare function setObjStyle(style: string | ObjStrNum, objColor: ObjStrNum): string | ObjStrNum;
11
-
12
- export { setObjStyle, toStyleString };
@@ -1,3 +0,0 @@
1
- declare function format(date: Date | string, fmt: string): string;
2
-
3
- export { format };
@@ -1,3 +0,0 @@
1
- declare function format(date: Date | string, fmt: string): string;
2
-
3
- export { format };
@@ -1 +0,0 @@
1
- export { format } from './format.cjs';
@@ -1 +0,0 @@
1
- export { format } from './format.js';
@@ -1,14 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- /**
3
- * 计算方向
4
- * @param ks
5
- * @param js
6
- * @returns
7
- */
8
- declare function getLocus(ks: SeatEvent, js: SeatEvent): {
9
- x: number;
10
- y: number;
11
- t: number;
12
- };
13
-
14
- export { getLocus };
@@ -1,14 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- /**
3
- * 计算方向
4
- * @param ks
5
- * @param js
6
- * @returns
7
- */
8
- declare function getLocus(ks: SeatEvent, js: SeatEvent): {
9
- x: number;
10
- y: number;
11
- t: number;
12
- };
13
-
14
- export { getLocus };
@@ -1,25 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- type Type = 'touch' | 'mouse';
3
- type Callback = (e: SeatEvent, t: Type, te?: TouchEvent) => void;
4
- type Dom = HTMLElement | Document;
5
- declare const eventTypes: {
6
- press: {
7
- touch: string;
8
- mouse: string;
9
- };
10
- shift: {
11
- touch: string;
12
- mouse: string;
13
- };
14
- release: {
15
- touch: string;
16
- mouse: string;
17
- };
18
- };
19
- type EventTypeKey = keyof typeof eventTypes;
20
- declare function pressEvent(dom: HTMLElement, press: (e: SeatEvent, t?: Type, te?: TouchEvent) => any, shift?: Callback, release?: Callback, dom1?: Dom): void;
21
- declare function shiftEvent(t: Type, dom1: Dom, shift?: Callback, release?: Callback, is?: boolean): void;
22
- declare function foundEvent(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): void;
23
- declare function foundEventCallback(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): (event: Event) => void;
24
-
25
- export { type SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent };
@@ -1,25 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- type Type = 'touch' | 'mouse';
3
- type Callback = (e: SeatEvent, t: Type, te?: TouchEvent) => void;
4
- type Dom = HTMLElement | Document;
5
- declare const eventTypes: {
6
- press: {
7
- touch: string;
8
- mouse: string;
9
- };
10
- shift: {
11
- touch: string;
12
- mouse: string;
13
- };
14
- release: {
15
- touch: string;
16
- mouse: string;
17
- };
18
- };
19
- type EventTypeKey = keyof typeof eventTypes;
20
- declare function pressEvent(dom: HTMLElement, press: (e: SeatEvent, t?: Type, te?: TouchEvent) => any, shift?: Callback, release?: Callback, dom1?: Dom): void;
21
- declare function shiftEvent(t: Type, dom1: Dom, shift?: Callback, release?: Callback, is?: boolean): void;
22
- declare function foundEvent(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): void;
23
- declare function foundEventCallback(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): (event: Event) => void;
24
-
25
- export { type SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent };
@@ -1,2 +0,0 @@
1
- export { getLocus } from './getLocus.cjs';
2
- export { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent } from './getShiftEvent.cjs';
@@ -1,2 +0,0 @@
1
- export { getLocus } from './getLocus.js';
2
- export { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent } from './getShiftEvent.js';
@@ -1,13 +0,0 @@
1
- type HtmlObj = {
2
- div: string;
3
- attr: {
4
- [key: string]: string | number | undefined;
5
- } | undefined;
6
- value: Array<HtmlObj | string>;
7
- };
8
- /**
9
- * 解析html字符串
10
- */
11
- declare function analysisHtml(str: string): (string | HtmlObj)[];
12
-
13
- export { analysisHtml };
@@ -1,13 +0,0 @@
1
- type HtmlObj = {
2
- div: string;
3
- attr: {
4
- [key: string]: string | number | undefined;
5
- } | undefined;
6
- value: Array<HtmlObj | string>;
7
- };
8
- /**
9
- * 解析html字符串
10
- */
11
- declare function analysisHtml(str: string): (string | HtmlObj)[];
12
-
13
- export { analysisHtml };
@@ -1,5 +0,0 @@
1
- declare function generateHtmlh(div: string, sx?: {
2
- [key: string]: any;
3
- }, v?: string | string[]): string;
4
-
5
- export { generateHtmlh };
@@ -1,5 +0,0 @@
1
- declare function generateHtmlh(div: string, sx?: {
2
- [key: string]: any;
3
- }, v?: string | string[]): string;
4
-
5
- export { generateHtmlh };