@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,155 +0,0 @@
1
- /**
2
- * 功能:判断字符串是否为空,空格也算空
3
- * 参数:str:需要判断的字符串
4
- * 返回: true,false
5
- */
6
- declare function isEmpty(str: string): boolean;
7
- /**
8
- * 功能:判断字符串是否是非空
9
- * 参数:str:需要判断的字符串
10
- * 返回: true,false
11
- */
12
- declare function isNotEmpty(str: string): boolean;
13
- /**
14
- * 功能:判断字符串是否日期,正确格式为:yyyy-mm-dd或者yyyy/mm/dd
15
- * 参数:strValue:要校验的日期字符串
16
- * 返回:true,false
17
- */
18
- declare function isDate(strValue: string): boolean;
19
- /**
20
- * 功能:判断是否长时间,形如 (2003-12-05 13:04:06)
21
- * 参数:str:要校验的日期字符串
22
- * 返回: true,false
23
- */
24
- declare function isDateTime(str: string): boolean;
25
- /**
26
- * 功能:判断字符串是否为字母或数字
27
- * 参数:strValue:要校验的字符串
28
- * 返回:true,false
29
- */
30
- declare function isAlphaNumeric(strValue: string): boolean;
31
- /**
32
- * 功能:判断是否为中文、英文、字母或_
33
- * 参数:strValue:要校验的字符串
34
- * 返回: true,false
35
- */
36
- declare function isCnAndEnNumeric(strValue: string): boolean;
37
- /**
38
- * 功能:判断是否为英文、字母或_
39
- * 参数:strValue:要校验的字符串
40
- * 返回: true,false
41
- */
42
- declare function isEnNumeric(strValue: string): boolean;
43
- /**
44
- * 功能:判断是否为中文
45
- * 参数: strValue:要校验的字符串
46
- * 返回: true,false
47
- */
48
- declare function isCnAndEn(strValue: string): boolean;
49
- /**
50
- * 功能:判断是否是正确的Email 邮箱
51
- * 参数: strValue:要校验的字符串
52
- * 返回:true,false
53
- */
54
- declare function isEmail(strValue: string): boolean;
55
- /**
56
- * 功能:判断是否是货币
57
- * 参数: strValue:要校验的字符串
58
- * 返回: true,false
59
- */
60
- declare function isMoney(strValue: string): boolean;
61
- /**
62
- * 功能:判断是否为数字
63
- * 参数: strValue:要校验的字符串
64
- * 返回: true,false
65
- */
66
- declare function isNumeric(strValue: string): boolean;
67
- /**
68
- * 功能:判断是否为浮点数(不带正负号)
69
- * 参数: strValue:要校验的字符串
70
- * 返回: true,false
71
- */
72
- declare function isNumberFloat(strValue: string): boolean;
73
- /**
74
- * 功能:判断是否为手机号码
75
- * 参数: strValue:要校验的字符串
76
- * 返回: true,false
77
- */
78
- declare function isMobile(strValue: string): boolean;
79
- /**
80
- * 功能:判断是否为电话
81
- * 参数: strValue:要校验的字符串
82
- * 返回: true,false
83
- */
84
- declare function isPhone(strValue: string): boolean;
85
- /**
86
- * 功能:判断是否为传真
87
- * 参数: strValue:要校验的字符串
88
- * 返回: true,false
89
- */
90
- declare function isFax(strValue: string): boolean;
91
- /**
92
- * 功能:判断是否为固话
93
- * 参数: strValue:要校验的字符串
94
- * 返回: true,false
95
- */
96
- declare function isTel(strValue: string): boolean;
97
- /**
98
- * 功能:判断是否为邮政编码
99
- * 参数: strValue:要校验的字符串
100
- * 返回: true,false
101
- */
102
- declare function isPostalCode(strValue: string): boolean;
103
- /**
104
- * 功能:判断是否为合法的URL
105
- * 参数: strValue:要校验的字符串
106
- * 返回: true,false
107
- */
108
- declare function isURL(strValue: string): boolean;
109
- /**
110
- * 功能:验证身份证的有效性
111
- * 参数: strValue:要校验的字符串
112
- * 返回: true,false
113
- */
114
- declare function isCardID(strValue: string): boolean;
115
- /**
116
- * 功能:判断是否为6位数字密码
117
- * 参数 strValue
118
- */
119
- declare function isPwd(strValue: string): boolean;
120
- /**
121
- * 功能:判断是否为6位数字强密码
122
- * 参数 strValue : 需要检验的密码字符串
123
- * filter : 要过滤数组,数组中的每一项都不能包含当前的密码串,否则认为密码为弱密码,比如可以用身份证,手机等校验
124
- */
125
- declare function isStrongPwd(strValue: string, filters?: Array<string>): boolean;
126
- /**
127
- * 功能:判断是否为银行卡号(银行卡号Luhm校验)
128
- * Luhm校验规则:16位银行卡号(19位通用):
129
- 1.将未带校验位的 15(或18)位卡号从右依次编号 1 到 15(18),位于奇数位号上的数字乘以 2。
130
- 2.将奇位乘积的个十位全部相加,再加上所有偶数位上的数字。
131
- 3.将加法和加上校验位能被 10 整除。
132
- * 参数: strValue:需要检验的银行卡字符串
133
- */
134
- declare function isBankCode(strValue: string): boolean;
135
- /**
136
- * 判断是否为QQ 到11位
137
- * @param strValue 校验的值
138
- * @returns {boolean}
139
- */
140
- declare function isQq(a: string): boolean;
141
- /**
142
- * 判断是否是几位小数,比如1.02、1.341、0.3143等格式
143
- * @param a 校验的值
144
- * @param b 表示要校验几位,可不传,默认为2位
145
- * @returns {boolean}
146
- */
147
- declare function isFormatNumber(a: string, b?: number): boolean;
148
- /**
149
- * 判断是否是微信号
150
- * @param a 校验的值
151
- * @returns {boolean}
152
- */
153
- declare function isWeChat(a: string): boolean;
154
-
155
- export { isAlphaNumeric, isBankCode, isCardID, isCnAndEn, isCnAndEnNumeric, isDate, isDateTime, isEmail, isEmpty, isEnNumeric, isFax, isFormatNumber, isMobile, isMoney, isNotEmpty, isNumberFloat, isNumeric, isPhone, isPostalCode, isPwd, isQq, isStrongPwd, isTel, isURL, isWeChat };
@@ -1,10 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 总方法
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @param {string} type 类型 'end' 后匹配,'start' 前匹配, 其他是全匹配
6
- * @returns {boolean} 空数组 true
7
- */
8
- declare function matchs(key: string, matchs?: Array<string | RegExp>, type?: string): boolean;
9
-
10
- export { matchs };
@@ -1,10 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 总方法
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @param {string} type 类型 'end' 后匹配,'start' 前匹配, 其他是全匹配
6
- * @returns {boolean} 空数组 true
7
- */
8
- declare function matchs(key: string, matchs?: Array<string | RegExp>, type?: string): boolean;
9
-
10
- export { matchs };
@@ -1,9 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 字符串采用后匹配
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @returns {boolean} 空数组 true
6
- */
7
- declare function matchsEnd(key: string, matchs?: Array<string | RegExp>): boolean;
8
-
9
- export { matchsEnd };
@@ -1,9 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 字符串采用后匹配
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @returns {boolean} 空数组 true
6
- */
7
- declare function matchsEnd(key: string, matchs?: Array<string | RegExp>): boolean;
8
-
9
- export { matchsEnd };
@@ -1,9 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 字符串采用前匹配
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @returns {boolean} 空数组 true
6
- */
7
- declare function matchsStart(key: string, matchs?: Array<string | RegExp>): boolean;
8
-
9
- export { matchsStart };
@@ -1,9 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 字符串采用前匹配
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @returns {boolean} 空数组 true
6
- */
7
- declare function matchsStart(key: string, matchs?: Array<string | RegExp>): boolean;
8
-
9
- export { matchsStart };
@@ -1,9 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 字符串采用全匹配
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @returns {boolean} 空数组 true
6
- */
7
- declare function matchsWhole(key: string, matchs?: Array<string | RegExp>): boolean;
8
-
9
- export { matchsWhole };
@@ -1,9 +0,0 @@
1
- /**
2
- * 判断字符串是否匹配 字符串采用全匹配
3
- * @param {string} key 当前字符串
4
- * @param { Array<string | RegExp> } matchs 匹配的字符串或者正则表达式数组
5
- * @returns {boolean} 空数组 true
6
- */
7
- declare function matchsWhole(key: string, matchs?: Array<string | RegExp>): boolean;
8
-
9
- export { matchsWhole };
@@ -1,8 +0,0 @@
1
- type Callback = (v: any) => void;
2
- /**
3
- * 获取同步加载方法
4
- * @returns
5
- */
6
- declare function getSynch(): (callback: Callback, add: Function, ...arr: any[]) => void;
7
-
8
- export { getSynch };
@@ -1,8 +0,0 @@
1
- type Callback = (v: any) => void;
2
- /**
3
- * 获取同步加载方法
4
- * @returns
5
- */
6
- declare function getSynch(): (callback: Callback, add: Function, ...arr: any[]) => void;
7
-
8
- export { getSynch };
@@ -1,2 +0,0 @@
1
- export { getSynch } from './getSynch.cjs';
2
- export { loadScript } from './loadScript.cjs';
@@ -1,2 +0,0 @@
1
- export { getSynch } from './getSynch.js';
2
- export { loadScript } from './loadScript.js';
@@ -1,3 +0,0 @@
1
- declare function loadScript(src: string, div?: HTMLDivElement): Promise<unknown>;
2
-
3
- export { loadScript };
@@ -1,3 +0,0 @@
1
- declare function loadScript(src: string, div?: HTMLDivElement): Promise<unknown>;
2
-
3
- export { loadScript };
@@ -1 +0,0 @@
1
- export { styleLog } from './styleLog.cjs';
@@ -1 +0,0 @@
1
- export { styleLog } from './styleLog.js';
@@ -1,68 +0,0 @@
1
- /**
2
- * 颜色
3
- * 0 黑色 'black'
4
- * 1 红色 'red'
5
- * 2 绿色 'green'
6
- * 3 黄色 'yellow'
7
- * 4 蓝色 'blue'
8
- * 5 洋红色 'magenta'
9
- * 6 青色 'cyan'
10
- * 7 白色 'white'
11
- */
12
- interface StyleLogObj {
13
- /**
14
- * 背景颜色
15
- * 10
16
- * x1b[4${?}m
17
- */
18
- bag?: string | number;
19
- /**
20
- * 文字颜色
21
- * x1b[3${?}m
22
- */
23
- text?: string | number;
24
- /**
25
- * 是否是粗体
26
- * x1b[1m
27
- */
28
- bold?: boolean;
29
- /**
30
- * 是否是斜体
31
- * x1b[3m
32
- */
33
- italic?: boolean;
34
- /**
35
- * 中线
36
- * \x1b[9m
37
- */
38
- lineThrough?: boolean;
39
- /**
40
- * 下线
41
- * \x1b[4m
42
- */
43
- revert?: boolean;
44
- }
45
- /**
46
- * 日志输出样式
47
- * 颜色值 背景色 0 是白色 7是黑色 其他一样:
48
- * 0 黑色 'black'
49
- * 1 红色 'red'
50
- * 2 绿色 'green'
51
- * 3 黄色 'yellow'
52
- * 4 蓝色 'blue'
53
- * 5 洋红色 'magenta'
54
- * 6 青色 'cyan'
55
- * 7 白色 'white'
56
- * @param {string} msg 要输出的日志字符串
57
- * @param {StyleLogObj} obj 日志样式对象
58
- * @param {string | number} obj.bag 背景颜色
59
- * @param {string | number} obj.text 文字颜色
60
- * @param {boolean } obj.bold 是否是粗体
61
- * @param {boolean} obj.italic 是否是斜体
62
- * @param {boolean} obj.lineThrough 中线
63
- * @param {boolean} obj.revert 下线
64
- * @returns {string} 带样式的日志
65
- */
66
- declare function styleLog(msg?: string, obj?: StyleLogObj): string;
67
-
68
- export { styleLog };
@@ -1,68 +0,0 @@
1
- /**
2
- * 颜色
3
- * 0 黑色 'black'
4
- * 1 红色 'red'
5
- * 2 绿色 'green'
6
- * 3 黄色 'yellow'
7
- * 4 蓝色 'blue'
8
- * 5 洋红色 'magenta'
9
- * 6 青色 'cyan'
10
- * 7 白色 'white'
11
- */
12
- interface StyleLogObj {
13
- /**
14
- * 背景颜色
15
- * 10
16
- * x1b[4${?}m
17
- */
18
- bag?: string | number;
19
- /**
20
- * 文字颜色
21
- * x1b[3${?}m
22
- */
23
- text?: string | number;
24
- /**
25
- * 是否是粗体
26
- * x1b[1m
27
- */
28
- bold?: boolean;
29
- /**
30
- * 是否是斜体
31
- * x1b[3m
32
- */
33
- italic?: boolean;
34
- /**
35
- * 中线
36
- * \x1b[9m
37
- */
38
- lineThrough?: boolean;
39
- /**
40
- * 下线
41
- * \x1b[4m
42
- */
43
- revert?: boolean;
44
- }
45
- /**
46
- * 日志输出样式
47
- * 颜色值 背景色 0 是白色 7是黑色 其他一样:
48
- * 0 黑色 'black'
49
- * 1 红色 'red'
50
- * 2 绿色 'green'
51
- * 3 黄色 'yellow'
52
- * 4 蓝色 'blue'
53
- * 5 洋红色 'magenta'
54
- * 6 青色 'cyan'
55
- * 7 白色 'white'
56
- * @param {string} msg 要输出的日志字符串
57
- * @param {StyleLogObj} obj 日志样式对象
58
- * @param {string | number} obj.bag 背景颜色
59
- * @param {string | number} obj.text 文字颜色
60
- * @param {boolean } obj.bold 是否是粗体
61
- * @param {boolean} obj.italic 是否是斜体
62
- * @param {boolean} obj.lineThrough 中线
63
- * @param {boolean} obj.revert 下线
64
- * @returns {string} 带样式的日志
65
- */
66
- declare function styleLog(msg?: string, obj?: StyleLogObj): string;
67
-
68
- export { styleLog };
@@ -1,8 +0,0 @@
1
- /**
2
- * 组件 获取三种方式名称 el-input ElInput elInput
3
- * @param { string } name 要转换的字符串
4
- * @returns { Array<string> } 转换后的数组
5
- */
6
- declare function getComponentNames(name: string): Array<string>;
7
-
8
- export { getComponentNames };
@@ -1,8 +0,0 @@
1
- /**
2
- * 组件 获取三种方式名称 el-input ElInput elInput
3
- * @param { string } name 要转换的字符串
4
- * @returns { Array<string> } 转换后的数组
5
- */
6
- declare function getComponentNames(name: string): Array<string>;
7
-
8
- export { getComponentNames };
@@ -1,8 +0,0 @@
1
- /**
2
- * 获取三种方式名称 el-input ElInput elInput
3
- * @param { string } name 要转换的字符串
4
- * @returns { Array<string> } 转换后的数组 [-, 大驼峰, 小驼峰]
5
- */
6
- declare function getNames(name: string): Array<string>;
7
-
8
- export { getNames };
@@ -1,8 +0,0 @@
1
- /**
2
- * 获取三种方式名称 el-input ElInput elInput
3
- * @param { string } name 要转换的字符串
4
- * @returns { Array<string> } 转换后的数组 [-, 大驼峰, 小驼峰]
5
- */
6
- declare function getNames(name: string): Array<string>;
7
-
8
- export { getNames };
@@ -1,8 +0,0 @@
1
- /**
2
- * 驼峰命名转 - 方式
3
- * @param { string } name 要转换的字符串
4
- * @returns { string } 转换后字符串
5
- */
6
- declare function humpToLine(name: string): string;
7
-
8
- export { humpToLine };
@@ -1,8 +0,0 @@
1
- /**
2
- * 驼峰命名转 - 方式
3
- * @param { string } name 要转换的字符串
4
- * @returns { string } 转换后字符串
5
- */
6
- declare function humpToLine(name: string): string;
7
-
8
- export { humpToLine };
@@ -1,5 +0,0 @@
1
- export { getComponentNames } from './getComponentNames.cjs';
2
- export { getNames } from './getNames.cjs';
3
- export { humpToLine } from './humpToLine.cjs';
4
- export { lineToLargeHump } from './lineToLargeHump.cjs';
5
- export { lineToSmallHump } from './lineToSmallHump.cjs';
@@ -1,5 +0,0 @@
1
- export { getComponentNames } from './getComponentNames.js';
2
- export { getNames } from './getNames.js';
3
- export { humpToLine } from './humpToLine.js';
4
- export { lineToLargeHump } from './lineToLargeHump.js';
5
- export { lineToSmallHump } from './lineToSmallHump.js';
@@ -1,8 +0,0 @@
1
- /**
2
- * - 方式 转 大驼峰命名
3
- * @param { string } name 要转换的字符串
4
- * @returns { string } 转换后字符串
5
- */
6
- declare function lineToLargeHump(name: string): string;
7
-
8
- export { lineToLargeHump };
@@ -1,8 +0,0 @@
1
- /**
2
- * - 方式 转 大驼峰命名
3
- * @param { string } name 要转换的字符串
4
- * @returns { string } 转换后字符串
5
- */
6
- declare function lineToLargeHump(name: string): string;
7
-
8
- export { lineToLargeHump };
@@ -1,8 +0,0 @@
1
- /**
2
- * - 方式 转 小驼峰命名
3
- * @param { string } name 要转换的字符串
4
- * @returns { string } 转换后字符串
5
- */
6
- declare function lineToSmallHump(name: string): string;
7
-
8
- export { lineToSmallHump };
@@ -1,8 +0,0 @@
1
- /**
2
- * - 方式 转 小驼峰命名
3
- * @param { string } name 要转换的字符串
4
- * @returns { string } 转换后字符串
5
- */
6
- declare function lineToSmallHump(name: string): string;
7
-
8
- export { lineToSmallHump };
@@ -1,13 +0,0 @@
1
- /**
2
- * 获取本地没有被占用的端口
3
- * @param port=5173 端口
4
- * @param host='0.0.0.0' ip地址
5
- * @param isLocal=true 是否监听本地
6
- * @returns
7
- */
8
- declare function getPort(host: string | undefined, port?: number, isLocal?: boolean): Promise<{
9
- port: number;
10
- host?: string;
11
- }>;
12
-
13
- export { getPort };
@@ -1,13 +0,0 @@
1
- /**
2
- * 获取本地没有被占用的端口
3
- * @param port=5173 端口
4
- * @param host='0.0.0.0' ip地址
5
- * @param isLocal=true 是否监听本地
6
- * @returns
7
- */
8
- declare function getPort(host: string | undefined, port?: number, isLocal?: boolean): Promise<{
9
- port: number;
10
- host?: string;
11
- }>;
12
-
13
- export { getPort };
@@ -1 +0,0 @@
1
- export { getPort } from './getPort.cjs';
@@ -1 +0,0 @@
1
- export { getPort } from './getPort.js';
@@ -1,26 +0,0 @@
1
- type TreeObj = {
2
- [key: string]: any;
3
- };
4
- type TreeParam = {
5
- id: string;
6
- fid: string;
7
- jb?: string;
8
- children: string;
9
- };
10
- declare function getTreeObj(type: string | number, arr: TreeObj[], param: TreeParam): {
11
- tree: TreeObj[];
12
- array: any[];
13
- obj: TreeObj;
14
- };
15
- declare function treeToArray(arr: TreeObj[], param: TreeParam): {
16
- tree: TreeObj[];
17
- array: any[];
18
- obj: TreeObj;
19
- };
20
- declare function arrayToTree(arr: TreeObj[], param: TreeParam, is?: boolean): {
21
- tree: TreeObj[];
22
- array: TreeObj[];
23
- obj: TreeObj;
24
- };
25
-
26
- export { arrayToTree, getTreeObj, treeToArray };
@@ -1,26 +0,0 @@
1
- type TreeObj = {
2
- [key: string]: any;
3
- };
4
- type TreeParam = {
5
- id: string;
6
- fid: string;
7
- jb?: string;
8
- children: string;
9
- };
10
- declare function getTreeObj(type: string | number, arr: TreeObj[], param: TreeParam): {
11
- tree: TreeObj[];
12
- array: any[];
13
- obj: TreeObj;
14
- };
15
- declare function treeToArray(arr: TreeObj[], param: TreeParam): {
16
- tree: TreeObj[];
17
- array: any[];
18
- obj: TreeObj;
19
- };
20
- declare function arrayToTree(arr: TreeObj[], param: TreeParam, is?: boolean): {
21
- tree: TreeObj[];
22
- array: TreeObj[];
23
- obj: TreeObj;
24
- };
25
-
26
- export { arrayToTree, getTreeObj, treeToArray };
@@ -1,2 +0,0 @@
1
- export { arrayToTree, getTreeObj, treeToArray } from './getTreeObj.cjs';
2
- export { splitGroup, splitGroupDitto, splitGroupExist } from './splitGroup.cjs';
@@ -1,2 +0,0 @@
1
- export { arrayToTree, getTreeObj, treeToArray } from './getTreeObj.js';
2
- export { splitGroup, splitGroupDitto, splitGroupExist } from './splitGroup.js';
@@ -1,15 +0,0 @@
1
- /**
2
- * 字符串数组 排序 - 分割 分组
3
- */
4
- type ObjVal = {
5
- value: string;
6
- father?: string;
7
- exist?: string;
8
- children?: ObjVal[];
9
- is?: boolean;
10
- };
11
- declare function splitGroupExist(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
12
- declare function splitGroupDitto(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
13
- declare function splitGroup(arr: string[], way?: string, isMergeOrder?: boolean, type?: number | string | boolean): ObjVal[];
14
-
15
- export { splitGroup, splitGroupDitto, splitGroupExist };
@@ -1,15 +0,0 @@
1
- /**
2
- * 字符串数组 排序 - 分割 分组
3
- */
4
- type ObjVal = {
5
- value: string;
6
- father?: string;
7
- exist?: string;
8
- children?: ObjVal[];
9
- is?: boolean;
10
- };
11
- declare function splitGroupExist(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
12
- declare function splitGroupDitto(arr: string[], way?: string, isMergeOrder?: boolean): ObjVal[];
13
- declare function splitGroup(arr: string[], way?: string, isMergeOrder?: boolean, type?: number | string | boolean): ObjVal[];
14
-
15
- export { splitGroup, splitGroupDitto, splitGroupExist };