@fangzhongya/utils 0.0.8-6 → 0.0.8-62

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 (266) hide show
  1. package/dist/basic/array/asyncMergeArray.cjs +2 -2
  2. package/dist/basic/array/asyncMergeArray.d.ts +6 -6
  3. package/dist/basic/array/asyncMergeArray.js +1 -1
  4. package/dist/basic/array/deleteArray.cjs +7 -0
  5. package/dist/basic/array/deleteArray.d.ts +6 -0
  6. package/dist/basic/array/deleteArray.js +7 -0
  7. package/dist/basic/array/duplicateRemoval.d.ts +6 -6
  8. package/dist/basic/array/index.cjs +10 -6
  9. package/dist/basic/array/index.d.ts +1 -0
  10. package/dist/basic/array/index.js +11 -7
  11. package/dist/basic/array/isArray.d.ts +5 -5
  12. package/dist/basic/array/replaceAfter.d.ts +7 -7
  13. package/dist/basic/array/toggleArray.d.ts +7 -7
  14. package/dist/basic/index.cjs +22 -13
  15. package/dist/basic/index.d.ts +16 -7
  16. package/dist/basic/index.js +21 -12
  17. package/dist/basic/object/attrValueSort.cjs +7 -0
  18. package/dist/basic/object/attrValueSort.d.ts +12 -0
  19. package/dist/basic/object/attrValueSort.js +7 -0
  20. package/dist/basic/object/deepCopy.cjs +7 -0
  21. package/dist/basic/object/deepCopy.d.ts +8 -0
  22. package/dist/basic/object/deepCopy.js +7 -0
  23. package/dist/basic/object/filterObject.cjs +7 -0
  24. package/dist/basic/object/filterObject.d.ts +14 -0
  25. package/dist/basic/object/filterObject.js +7 -0
  26. package/dist/basic/object/getSort.cjs +7 -0
  27. package/dist/basic/object/getSort.d.ts +10 -0
  28. package/dist/basic/object/getSort.js +7 -0
  29. package/dist/basic/object/hasOwn.cjs +7 -0
  30. package/dist/basic/object/hasOwn.d.ts +9 -0
  31. package/dist/basic/object/hasOwn.js +7 -0
  32. package/dist/basic/object/index.cjs +28 -4
  33. package/dist/basic/object/index.d.ts +6 -0
  34. package/dist/basic/object/index.js +27 -3
  35. package/dist/basic/object/isObject.d.ts +5 -5
  36. package/dist/basic/object/isObjectArray.cjs +3 -3
  37. package/dist/basic/object/isObjectArray.d.ts +5 -5
  38. package/dist/basic/object/isObjectArray.js +2 -2
  39. package/dist/basic/object/mergeObject.d.ts +8 -8
  40. package/dist/basic/object/setSort.cjs +7 -0
  41. package/dist/basic/object/setSort.d.ts +7 -0
  42. package/dist/basic/object/setSort.js +7 -0
  43. package/dist/basic/object/unmergeObject.d.ts +8 -8
  44. package/dist/basic/string/appearNum.d.ts +6 -6
  45. package/dist/basic/string/appearNumSeat.d.ts +7 -7
  46. package/dist/basic/string/firstLower.d.ts +5 -5
  47. package/dist/basic/string/firstUpper.d.ts +5 -5
  48. package/dist/basic/string/getStartSame.d.ts +6 -6
  49. package/dist/basic/string/getStartSames.d.ts +6 -6
  50. package/dist/basic/string/index.cjs +14 -2
  51. package/dist/basic/string/index.d.ts +2 -0
  52. package/dist/basic/string/index.js +14 -2
  53. package/dist/basic/string/splitUpper.d.ts +5 -5
  54. package/dist/basic/string/toFunction.cjs +9 -0
  55. package/dist/basic/string/toFunction.d.ts +11 -0
  56. package/dist/basic/string/toFunction.js +9 -0
  57. package/dist/basic/string/toJson.cjs +10 -0
  58. package/dist/basic/string/toJson.d.ts +7 -0
  59. package/dist/basic/string/toJson.js +10 -0
  60. package/dist/chunk-2OR4FUOA.cjs +47 -0
  61. package/dist/chunk-2QGQBPEX.js +15 -0
  62. package/dist/chunk-2TWAHAYB.js +20 -0
  63. package/dist/chunk-3CNQO7VA.js +73 -0
  64. package/dist/chunk-3IR2ABRO.js +8 -0
  65. package/dist/chunk-3LWFUVER.js +60 -0
  66. package/dist/chunk-3VUCAIEQ.cjs +52 -0
  67. package/dist/chunk-4X7AFGTV.cjs +21 -0
  68. package/dist/{chunk-M7CD62S3.cjs → chunk-5U2ZV4MK.cjs} +4 -4
  69. package/dist/chunk-6O6YWEOS.cjs +20 -0
  70. package/dist/chunk-6YI3CDEW.js +35 -0
  71. package/dist/chunk-7AIT4XSD.cjs +13 -0
  72. package/dist/chunk-AFKJQ4QP.js +35 -0
  73. package/dist/chunk-ANTSTMDG.cjs +20 -0
  74. package/dist/chunk-BMUGXWAO.cjs +26 -0
  75. package/dist/chunk-BPJMBYDX.cjs +73 -0
  76. package/dist/chunk-D2WYYC5Y.js +35 -0
  77. package/dist/chunk-D3SX7OUV.cjs +11 -0
  78. package/dist/chunk-EWXBN4VG.cjs +21 -0
  79. package/dist/{chunk-QTMFFVOO.cjs → chunk-FGQXKLTH.cjs} +8 -3
  80. package/dist/chunk-GFAUQTB2.cjs +33 -0
  81. package/dist/chunk-GIAO77MY.js +49 -0
  82. package/dist/chunk-GOUC2DFA.cjs +8 -0
  83. package/dist/{chunk-NKIDWRRS.cjs → chunk-HIGE4NJ6.cjs} +9 -5
  84. package/dist/chunk-HNO7XPOI.cjs +24 -0
  85. package/dist/chunk-IIKQHLKT.cjs +60 -0
  86. package/dist/chunk-J2GSJKCY.cjs +20 -0
  87. package/dist/{chunk-76ZUEOEJ.js → chunk-JILAGD3U.js} +10 -6
  88. package/dist/chunk-JYPJ5QJ5.cjs +35 -0
  89. package/dist/{chunk-JLEIVV37.cjs → chunk-KHGCW3A7.cjs} +7 -7
  90. package/dist/chunk-KQR7FXBF.js +20 -0
  91. package/dist/chunk-LEPZYF2N.cjs +49 -0
  92. package/dist/chunk-MGX7U2CG.cjs +20 -0
  93. package/dist/chunk-MQHLAQQA.js +21 -0
  94. package/dist/chunk-N3FZ4WUI.js +16 -0
  95. package/dist/chunk-NCSN3MC5.js +21 -0
  96. package/dist/{chunk-JE4B4G3M.js → chunk-OFWQAP4T.js} +5 -5
  97. package/dist/chunk-OJFV3426.js +17 -0
  98. package/dist/chunk-PTLVJ5OL.cjs +17 -0
  99. package/dist/{chunk-2W7EPKCY.js → chunk-PVYBDMBK.js} +5 -5
  100. package/dist/chunk-Q63V2U5G.js +47 -0
  101. package/dist/chunk-Q6FMBSK4.js +27 -0
  102. package/dist/chunk-QFRZFZAA.js +20 -0
  103. package/dist/{chunk-2MCEAUE7.js → chunk-QIK5MQUL.js} +4 -4
  104. package/dist/{chunk-IQHASAHU.js → chunk-QJVB3JIZ.js} +8 -3
  105. package/dist/{chunk-AVO4AWYH.cjs → chunk-QZVMLHFW.cjs} +2 -2
  106. package/dist/chunk-S42NGJ5W.js +11 -0
  107. package/dist/{chunk-P2CYIUCC.js → chunk-SNVSXHM7.js} +13 -1
  108. package/dist/{chunk-L6DY4GCH.cjs → chunk-SYXWQKOO.cjs} +5 -5
  109. package/dist/{chunk-V3FWFWP2.cjs → chunk-SZZ4Q76S.cjs} +13 -1
  110. package/dist/chunk-T3FAFGFD.cjs +35 -0
  111. package/dist/chunk-T4BAVDTH.js +31 -0
  112. package/dist/chunk-T5ZPXJMG.js +52 -0
  113. package/dist/{chunk-VNVG4BJ4.cjs → chunk-TCMJPIRM.cjs} +16 -12
  114. package/dist/chunk-TE3XNGF4.cjs +16 -0
  115. package/dist/chunk-UFYLVZNU.cjs +31 -0
  116. package/dist/{chunk-O2RP4UZQ.cjs → chunk-UGFSIZ5P.cjs} +2 -23
  117. package/dist/chunk-UPPSZFBE.cjs +121 -0
  118. package/dist/chunk-UX6A432F.cjs +11 -0
  119. package/dist/chunk-VBS6YE6H.js +121 -0
  120. package/dist/chunk-VCZ62DR2.js +11 -0
  121. package/dist/chunk-VOMPPHW6.js +26 -0
  122. package/dist/chunk-VSSUU2KF.js +44 -0
  123. package/dist/chunk-VY5VQ7WE.cjs +21 -0
  124. package/dist/chunk-VYOTXPMM.cjs +8 -0
  125. package/dist/chunk-W45DTA4D.js +8 -0
  126. package/dist/chunk-WIYZQNGO.js +33 -0
  127. package/dist/chunk-WLBKU7NM.cjs +15 -0
  128. package/dist/chunk-WPW3M5AP.js +20 -0
  129. package/dist/{chunk-QKLVFB74.js → chunk-WX3JYE47.js} +2 -23
  130. package/dist/chunk-XUL6LPTN.js +21 -0
  131. package/dist/{chunk-HVDU25XB.js → chunk-Y5WYKSYG.js} +1 -1
  132. package/dist/chunk-ZBNE6T3A.cjs +44 -0
  133. package/dist/chunk-ZEAT23CI.js +13 -0
  134. package/dist/chunk-ZJIRJ4YJ.cjs +35 -0
  135. package/dist/{chunk-NSG7ZMXT.js → chunk-ZQX2TYQB.js} +4 -4
  136. package/dist/css/fetchUnitValue.cjs +2 -2
  137. package/dist/css/fetchUnitValue.d.ts +7 -7
  138. package/dist/css/fetchUnitValue.js +1 -1
  139. package/dist/css/getAttrObj.cjs +7 -0
  140. package/dist/css/getAttrObj.d.ts +11 -0
  141. package/dist/css/getAttrObj.js +7 -0
  142. package/dist/css/getCss.d.ts +7 -1
  143. package/dist/css/getPositionRelative.cjs +8 -0
  144. package/dist/css/getPositionRelative.d.ts +7 -0
  145. package/dist/css/getPositionRelative.js +8 -0
  146. package/dist/css/getPrentClass.cjs +8 -0
  147. package/dist/css/getPrentClass.d.ts +7 -0
  148. package/dist/css/getPrentClass.js +8 -0
  149. package/dist/css/getPrentCorres.cjs +7 -0
  150. package/dist/css/getPrentCorres.d.ts +7 -0
  151. package/dist/css/getPrentCorres.js +7 -0
  152. package/dist/css/getSVG.cjs +8 -0
  153. package/dist/css/getSVG.d.ts +14 -0
  154. package/dist/css/getSVG.js +8 -0
  155. package/dist/css/index.cjs +26 -5
  156. package/dist/css/index.d.ts +5 -0
  157. package/dist/css/index.js +26 -5
  158. package/dist/css/setCss.cjs +3 -2
  159. package/dist/css/setCss.d.ts +9 -1
  160. package/dist/css/setCss.js +2 -1
  161. package/dist/dom/getLocus.cjs +7 -0
  162. package/dist/dom/getLocus.d.ts +14 -0
  163. package/dist/dom/getLocus.js +7 -0
  164. package/dist/dom/getShiftEvent.cjs +13 -0
  165. package/dist/dom/getShiftEvent.d.ts +25 -0
  166. package/dist/dom/getShiftEvent.js +13 -0
  167. package/dist/dom/index.cjs +18 -0
  168. package/dist/dom/index.d.ts +2 -0
  169. package/dist/dom/index.js +18 -0
  170. package/dist/html/analysisHtml.cjs +8 -0
  171. package/dist/html/analysisHtml.d.ts +13 -0
  172. package/dist/html/analysisHtml.js +8 -0
  173. package/dist/html/htmlEscape.cjs +7 -0
  174. package/dist/html/htmlEscape.d.ts +8 -0
  175. package/dist/html/htmlEscape.js +7 -0
  176. package/dist/html/index.cjs +13 -0
  177. package/dist/html/index.d.ts +2 -0
  178. package/dist/html/index.js +13 -0
  179. package/dist/index-082de317.d.ts +13 -0
  180. package/dist/{index-b16b81dc.d.ts → index-123cda08.d.ts} +3 -0
  181. package/dist/index-22ee0e10.d.ts +13 -0
  182. package/dist/{index-eef2a16c.d.ts → index-4d550d78.d.ts} +10 -0
  183. package/dist/index-5aea66bb.d.ts +21 -0
  184. package/dist/index-614c8bf9.d.ts +31 -0
  185. package/dist/index-ae0241ec.d.ts +13 -0
  186. package/dist/index-bc08cd32.d.ts +14 -0
  187. package/dist/index-ed8c0e9f.d.ts +37 -0
  188. package/dist/index.cjs +71 -34
  189. package/dist/index.d.ts +34 -9
  190. package/dist/index.js +76 -39
  191. package/dist/iss/index.cjs +5 -5
  192. package/dist/iss/index.js +5 -5
  193. package/dist/judge/index.cjs +6 -6
  194. package/dist/judge/index.js +5 -5
  195. package/dist/judge/matchs.cjs +3 -3
  196. package/dist/judge/matchs.d.ts +7 -7
  197. package/dist/judge/matchs.js +2 -2
  198. package/dist/judge/matchsEnd.d.ts +6 -6
  199. package/dist/judge/matchsStart.d.ts +6 -6
  200. package/dist/judge/matchsWhole.d.ts +6 -6
  201. package/dist/load/getSynch.d.ts +5 -5
  202. package/dist/log/styleLog.d.ts +65 -65
  203. package/dist/name/getComponentNames.cjs +3 -3
  204. package/dist/name/getComponentNames.d.ts +5 -5
  205. package/dist/name/getComponentNames.js +2 -2
  206. package/dist/name/getNames.cjs +3 -3
  207. package/dist/name/getNames.d.ts +5 -5
  208. package/dist/name/getNames.js +2 -2
  209. package/dist/name/humpToLine.d.ts +5 -5
  210. package/dist/name/index.cjs +7 -7
  211. package/dist/name/index.js +6 -6
  212. package/dist/name/lineToLargeHump.d.ts +5 -5
  213. package/dist/name/lineToSmallHump.d.ts +5 -5
  214. package/dist/node/getPort.cjs +2 -2
  215. package/dist/node/getPort.d.ts +10 -7
  216. package/dist/node/getPort.js +1 -1
  217. package/dist/node/index.cjs +3 -3
  218. package/dist/node/index.js +2 -2
  219. package/dist/tree/getTreeObj.cjs +11 -0
  220. package/dist/tree/getTreeObj.d.ts +26 -0
  221. package/dist/tree/getTreeObj.js +11 -0
  222. package/dist/tree/index.cjs +12 -0
  223. package/dist/tree/index.d.ts +1 -0
  224. package/dist/tree/index.js +12 -0
  225. package/dist/urls/getImportUrl.d.ts +6 -6
  226. package/dist/urls/getImportUrlSuffix.d.ts +6 -6
  227. package/dist/urls/getNewFileName.d.ts +5 -5
  228. package/dist/urls/getReplaceImportUrl.d.ts +6 -6
  229. package/dist/urls/getReplaceUrl.d.ts +6 -6
  230. package/dist/urls/getSuffix.d.ts +5 -5
  231. package/dist/urls/getUrlCatalogue.d.ts +5 -5
  232. package/dist/urls/getUrlCatalogueLast.d.ts +5 -5
  233. package/dist/urls/getUrlCatalogueObj.d.ts +14 -14
  234. package/dist/urls/index.cjs +10 -10
  235. package/dist/urls/index.js +13 -13
  236. package/dist/window/copy.cjs +7 -0
  237. package/dist/window/copy.d.ts +3 -0
  238. package/dist/window/copy.js +7 -0
  239. package/dist/window/getParam.cjs +7 -0
  240. package/dist/window/getParam.d.ts +6 -0
  241. package/dist/window/getParam.js +7 -0
  242. package/dist/window/index.cjs +12 -0
  243. package/dist/window/index.d.ts +2 -0
  244. package/dist/window/index.js +12 -0
  245. package/package.json +199 -70
  246. package/dist/chunk-36NQW7GX.cjs +0 -24
  247. package/dist/chunk-6WSP6FLZ.cjs +0 -8
  248. package/dist/chunk-7IXRH3MU.js +0 -8
  249. package/dist/chunk-7KXJO4NI.js +0 -24
  250. package/dist/chunk-DGOE2UXJ.cjs +0 -24
  251. package/dist/chunk-HQFPDOWY.js +0 -28
  252. package/dist/chunk-PB6FN2XC.cjs +0 -28
  253. package/dist/chunk-XQB2HUHZ.js +0 -23
  254. package/dist/index-82b62caf.d.ts +0 -16
  255. package/dist/index-b93e2bc6.d.ts +0 -13
  256. package/dist/index-fab49d44.d.ts +0 -19
  257. package/dist/{chunk-BWNLZJJG.js → chunk-EJWFLQF3.js} +3 -3
  258. package/dist/{chunk-PAJDTMC5.cjs → chunk-KRBTSMT2.cjs} +3 -3
  259. package/dist/{chunk-VIVEXAEC.cjs → chunk-LPDYEUMB.cjs} +9 -9
  260. package/dist/{chunk-X6SR256S.js → chunk-MYS6DR74.js} +12 -12
  261. package/dist/{chunk-5UV36ZIW.cjs → chunk-O6P3QI3B.cjs} +3 -3
  262. package/dist/{chunk-A5LHXE5X.cjs → chunk-QLBOPNV4.cjs} +2 -2
  263. package/dist/{chunk-GYE23WAN.js → chunk-SRR2GWC7.js} +3 -3
  264. package/dist/{chunk-3YUI42XN.cjs → chunk-T22I7TJQ.cjs} +3 -3
  265. package/dist/{chunk-33X65PQS.js → chunk-T2QKEABG.js} +3 -3
  266. package/dist/{chunk-MXLYIZIX.js → chunk-VRRDYCUH.js} +3 -3
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  isObjectArray
3
- } from "../../chunk-GYE23WAN.js";
4
- import "../../chunk-MXY4W3K5.js";
3
+ } from "../../chunk-SRR2GWC7.js";
5
4
  import "../../chunk-5PX3AFSC.js";
5
+ import "../../chunk-MXY4W3K5.js";
6
6
  import "../../chunk-UICA3PK6.js";
7
7
  export {
8
8
  isObjectArray
@@ -1,11 +1,11 @@
1
- /**
2
- * 合并两个对象的值
3
- * @param {T} a 合并到的对象
4
- * @param {T} b 合并对象
5
- * @param {number} j 合并级别
6
- * @param {boolean} i 是否合并数组
7
- * @returns {T} 合并的对象
8
- */
1
+ /**
2
+ * 合并两个对象的值
3
+ * @param {T} a 合并到的对象
4
+ * @param {T} b 合并对象
5
+ * @param {number} j 合并级别
6
+ * @param {boolean} i 是否合并数组
7
+ * @returns {T} 合并的对象
8
+ */
9
9
  declare function mergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
10
 
11
11
  export { mergeObject };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkIIKQHLKTcjs = require('../../chunk-IIKQHLKT.cjs');
4
+ require('../../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.setSort = _chunkIIKQHLKTcjs.setSort;
@@ -0,0 +1,7 @@
1
+ type ObjUnkn = {
2
+ [key: string]: unknown;
3
+ };
4
+ type SortFun = <T>(a: T, b: T) => number;
5
+ declare function setSort(obj: ObjUnkn, sort: SortFun | undefined, ...arr: Array<undefined | string | string[]>): void;
6
+
7
+ export { setSort };
@@ -0,0 +1,7 @@
1
+ import {
2
+ setSort
3
+ } from "../../chunk-3LWFUVER.js";
4
+ import "../../chunk-UICA3PK6.js";
5
+ export {
6
+ setSort
7
+ };
@@ -1,11 +1,11 @@
1
- /**
2
- * 合并两个对象不改原对象的值
3
- * @param {T} a 合并对象
4
- * @param {T} b 合并对象
5
- * @param {number} j 合并级别
6
- * @param {boolean} i 是否合并数组
7
- * @returns {T} 合并的对象
8
- */
1
+ /**
2
+ * 合并两个对象不改原对象的值
3
+ * @param {T} a 合并对象
4
+ * @param {T} b 合并对象
5
+ * @param {number} j 合并级别
6
+ * @param {boolean} i 是否合并数组
7
+ * @returns {T} 合并的对象
8
+ */
9
9
  declare function unmergeObject<T>(a: T, b: T, j?: number, i?: boolean): T;
10
10
 
11
11
  export { unmergeObject };
@@ -1,9 +1,9 @@
1
- /**
2
- * 查询字符串出现次数
3
- * @param {string} str 被查询的字符串
4
- * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
- * @returns {number} 出现的次数
6
- */
1
+ /**
2
+ * 查询字符串出现次数
3
+ * @param {string} str 被查询的字符串
4
+ * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
+ * @returns {number} 出现的次数
6
+ */
7
7
  declare function appearNum(str: string, t: string | RegExp): number;
8
8
 
9
9
  export { appearNum };
@@ -1,10 +1,10 @@
1
- /**
2
- * 查询字符串出现第n次数的位置
3
- * @param {string} str 被查询的字符串
4
- * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
- * @param {number} n 第几次出现
6
- * @returns {number} 第n次出现时在字符串的位置 -1 表示没有查询到
7
- */
1
+ /**
2
+ * 查询字符串出现第n次数的位置
3
+ * @param {string} str 被查询的字符串
4
+ * @param {string | RegExp} t 查询的字符串 或者 正则表达式
5
+ * @param {number} n 第几次出现
6
+ * @returns {number} 第n次出现时在字符串的位置 -1 表示没有查询到
7
+ */
8
8
  declare function appearNumSeat(str: string, t: string | RegExp, n: number): number;
9
9
 
10
10
  export { appearNumSeat };
@@ -1,8 +1,8 @@
1
- /**
2
- * 首字母小写
3
- * @param {string} str 处理字符串
4
- * @returns {string}
5
- */
1
+ /**
2
+ * 首字母小写
3
+ * @param {string} str 处理字符串
4
+ * @returns {string}
5
+ */
6
6
  declare function firstLower(str: string): string;
7
7
 
8
8
  export { firstLower };
@@ -1,8 +1,8 @@
1
- /**
2
- * 首字母大写
3
- * @param {string} str 处理字符串
4
- * @returns {string}
5
- */
1
+ /**
2
+ * 首字母大写
3
+ * @param {string} str 处理字符串
4
+ * @returns {string}
5
+ */
6
6
  declare function firstUpper(str: string): string;
7
7
 
8
8
  export { firstUpper };
@@ -1,9 +1,9 @@
1
- /**
2
- * 比较两个字符串,获取前面一样的值
3
- * @param {string} str 比较字符串1
4
- * @param {string} val 比较字符串2
5
- * @returns {string} 前面一样的值
6
- */
1
+ /**
2
+ * 比较两个字符串,获取前面一样的值
3
+ * @param {string} str 比较字符串1
4
+ * @param {string} val 比较字符串2
5
+ * @returns {string} 前面一样的值
6
+ */
7
7
  declare function getStartSame(str: string, val: string): string;
8
8
 
9
9
  export { getStartSame };
@@ -1,9 +1,9 @@
1
- /**
2
- * 比较两个字符串,获取前面一样的值
3
- * @param {string} str 比较字符串1
4
- * @param {string} val 比较字符串2
5
- * @returns {Array<string>} [前面一样的值, 字符串1不一样的值, 字符串2不一样的值]
6
- */
1
+ /**
2
+ * 比较两个字符串,获取前面一样的值
3
+ * @param {string} str 比较字符串1
4
+ * @param {string} val 比较字符串2
5
+ * @returns {Array<string>} [前面一样的值, 字符串1不一样的值, 字符串2不一样的值]
6
+ */
7
7
  declare function getStartSames(str: string, val: string): Array<string>;
8
8
 
9
9
  export { getStartSames };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-V3FWFWP2.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-SZZ4Q76S.cjs');
2
2
 
3
3
 
4
4
  var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
@@ -7,6 +7,14 @@ var _chunkJ7S3KBHLcjs = require('../../chunk-J7S3KBHL.cjs');
7
7
  var _chunkL7FSHU27cjs = require('../../chunk-L7FSHU27.cjs');
8
8
 
9
9
 
10
+
11
+ var _chunkJYPJ5QJ5cjs = require('../../chunk-JYPJ5QJ5.cjs');
12
+
13
+
14
+
15
+ var _chunkZJIRJ4YJcjs = require('../../chunk-ZJIRJ4YJ.cjs');
16
+
17
+
10
18
  var _chunk3HXQ7TGVcjs = require('../../chunk-3HXQ7TGV.cjs');
11
19
 
12
20
 
@@ -29,4 +37,8 @@ require('../../chunk-5AZGAKWR.cjs');
29
37
 
30
38
 
31
39
 
32
- exports.appearNum = _chunk3HXQ7TGVcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper;
40
+
41
+
42
+
43
+
44
+ exports.appearNum = _chunk3HXQ7TGVcjs.appearNum; exports.appearNumSeat = _chunkJR6ZN6QDcjs.appearNumSeat; exports.firstLower = _chunkUEVMS6QDcjs.firstLower; exports.firstUpper = _chunkOQL4GIEJcjs.firstUpper; exports.getFunctionFormat = _chunkZJIRJ4YJcjs.getFunctionFormat; exports.getStartSame = _chunkJ7S3KBHLcjs.getStartSame; exports.getStartSames = _chunkPW7RP73Jcjs.getStartSames; exports.splitUpper = _chunkL7FSHU27cjs.splitUpper; exports.toFunction = _chunkZJIRJ4YJcjs.toFunction; exports.toJSONParse = _chunkJYPJ5QJ5cjs.toJSONParse; exports.toJSONStringify = _chunkJYPJ5QJ5cjs.toJSONStringify;
@@ -5,3 +5,5 @@ export { firstUpper } from './firstUpper.js';
5
5
  export { getStartSame } from './getStartSame.js';
6
6
  export { getStartSames } from './getStartSames.js';
7
7
  export { splitUpper } from './splitUpper.js';
8
+ export { getFunctionFormat, toFunction } from './toFunction.js';
9
+ export { toJSONParse, toJSONStringify } from './toJson.js';
@@ -1,10 +1,18 @@
1
- import "../../chunk-P2CYIUCC.js";
1
+ import "../../chunk-SNVSXHM7.js";
2
2
  import {
3
3
  getStartSame
4
4
  } from "../../chunk-7DTHADVK.js";
5
5
  import {
6
6
  splitUpper
7
7
  } from "../../chunk-VKE5JARB.js";
8
+ import {
9
+ toJSONParse,
10
+ toJSONStringify
11
+ } from "../../chunk-AFKJQ4QP.js";
12
+ import {
13
+ getFunctionFormat,
14
+ toFunction
15
+ } from "../../chunk-6YI3CDEW.js";
8
16
  import {
9
17
  appearNum
10
18
  } from "../../chunk-SNABGVNO.js";
@@ -26,7 +34,11 @@ export {
26
34
  appearNumSeat,
27
35
  firstLower,
28
36
  firstUpper,
37
+ getFunctionFormat,
29
38
  getStartSame,
30
39
  getStartSames,
31
- splitUpper
40
+ splitUpper,
41
+ toFunction,
42
+ toJSONParse,
43
+ toJSONStringify
32
44
  };
@@ -1,8 +1,8 @@
1
- /**
2
- * 按照大写字母分割
3
- * @param {string} name
4
- * @returns { Array }
5
- */
1
+ /**
2
+ * 按照大写字母分割
3
+ * @param {string} name
4
+ * @returns { Array }
5
+ */
6
6
  declare function splitUpper(name: string): string[];
7
7
 
8
8
  export { splitUpper };
@@ -0,0 +1,9 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkZJIRJ4YJcjs = require('../../chunk-ZJIRJ4YJ.cjs');
5
+ require('../../chunk-5AZGAKWR.cjs');
6
+
7
+
8
+
9
+ exports.getFunctionFormat = _chunkZJIRJ4YJcjs.getFunctionFormat; exports.toFunction = _chunkZJIRJ4YJcjs.toFunction;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 把字符串方法转成方法
3
+ */
4
+ declare function toFunction(str: string): Function | undefined;
5
+ declare function getFunctionFormat(v: Function | string): {
6
+ name: string;
7
+ param: string;
8
+ body: string;
9
+ } | undefined;
10
+
11
+ export { getFunctionFormat, toFunction };
@@ -0,0 +1,9 @@
1
+ import {
2
+ getFunctionFormat,
3
+ toFunction
4
+ } from "../../chunk-6YI3CDEW.js";
5
+ import "../../chunk-UICA3PK6.js";
6
+ export {
7
+ getFunctionFormat,
8
+ toFunction
9
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkJYPJ5QJ5cjs = require('../../chunk-JYPJ5QJ5.cjs');
5
+ require('../../chunk-ZJIRJ4YJ.cjs');
6
+ require('../../chunk-5AZGAKWR.cjs');
7
+
8
+
9
+
10
+ exports.toJSONParse = _chunkJYPJ5QJ5cjs.toJSONParse; exports.toJSONStringify = _chunkJYPJ5QJ5cjs.toJSONStringify;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 转换对象,把对象转字符串支持函数
3
+ */
4
+ declare function toJSONStringify(obj: any, jb?: number): string;
5
+ declare function toJSONParse(str: string): any;
6
+
7
+ export { toJSONParse, toJSONStringify };
@@ -0,0 +1,10 @@
1
+ import {
2
+ toJSONParse,
3
+ toJSONStringify
4
+ } from "../../chunk-AFKJQ4QP.js";
5
+ import "../../chunk-6YI3CDEW.js";
6
+ import "../../chunk-UICA3PK6.js";
7
+ export {
8
+ toJSONParse,
9
+ toJSONStringify
10
+ };
@@ -0,0 +1,47 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/dom/getLocus.ts
2
+ function getLocus(ks, js) {
3
+ const x = js.clientX - ks.clientX;
4
+ const y = js.clientY - ks.clientY;
5
+ return {
6
+ x,
7
+ y,
8
+ t: locus(x, y)
9
+ };
10
+ }
11
+ function locus(x, y, mim = 10) {
12
+ const isX = x > 0 + mim || x < 0 - mim;
13
+ const isY = y > 0 + mim || y < 0 - mim;
14
+ if (isX && isY) {
15
+ if (x > 0) {
16
+ if (y > 0) {
17
+ return 5;
18
+ } else {
19
+ return 6;
20
+ }
21
+ } else {
22
+ if (y > 0) {
23
+ return 7;
24
+ } else {
25
+ return 8;
26
+ }
27
+ }
28
+ } else if (isX) {
29
+ if (x > 0) {
30
+ return 1;
31
+ } else {
32
+ return 2;
33
+ }
34
+ } else if (isY) {
35
+ if (y > 0) {
36
+ return 3;
37
+ } else {
38
+ return 4;
39
+ }
40
+ } else {
41
+ return 0;
42
+ }
43
+ }
44
+
45
+
46
+
47
+ exports.getLocus = getLocus;
@@ -0,0 +1,15 @@
1
+ import {
2
+ getPrentCorres
3
+ } from "./chunk-OJFV3426.js";
4
+
5
+ // packages/css/getPrentClass.ts
6
+ function getPrentClass(el, cs) {
7
+ return getPrentCorres(el, (ve) => {
8
+ const vs = (ve.className || "").split(" ");
9
+ return vs.includes(cs);
10
+ });
11
+ }
12
+
13
+ export {
14
+ getPrentClass
15
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ arrayToTree,
3
+ getTreeObj,
4
+ treeToArray
5
+ } from "./chunk-3CNQO7VA.js";
6
+ import {
7
+ __export
8
+ } from "./chunk-UICA3PK6.js";
9
+
10
+ // packages/tree/index.ts
11
+ var tree_exports = {};
12
+ __export(tree_exports, {
13
+ arrayToTree: () => arrayToTree,
14
+ getTreeObj: () => getTreeObj,
15
+ treeToArray: () => treeToArray
16
+ });
17
+
18
+ export {
19
+ tree_exports
20
+ };
@@ -0,0 +1,73 @@
1
+ // packages/tree/getTreeObj.ts
2
+ function getTreeObj(type, arr, param) {
3
+ if (type == 1) {
4
+ return treeToArray(arr, param);
5
+ } else {
6
+ return arrayToTree(arr, param);
7
+ }
8
+ }
9
+ function getTreeChildren(arr, param, fid, objs) {
10
+ arr.forEach((v) => {
11
+ const obj = Object.assign({}, v);
12
+ obj[param.fid] = fid;
13
+ const id = obj[param.id];
14
+ objs[id] = obj;
15
+ const arr2 = obj[param.children];
16
+ if (arr2 && arr2.length > 0) {
17
+ getTreeChildren(arr2, param, id, objs);
18
+ }
19
+ });
20
+ }
21
+ function treeToArray(arr, param) {
22
+ const objs = {};
23
+ arr.forEach((v) => {
24
+ const obj = Object.assign({}, v);
25
+ const id = obj[param.id];
26
+ const arr2 = obj[param.children];
27
+ if (arr2 && arr2.length > 0) {
28
+ getTreeChildren(arr2, param, id, objs);
29
+ }
30
+ objs[id] = obj;
31
+ });
32
+ const array = Object.values(objs).map((o) => {
33
+ const v = Object.assign({}, o);
34
+ delete v[param.children];
35
+ return v;
36
+ });
37
+ return {
38
+ tree: arr,
39
+ array,
40
+ obj: objs
41
+ };
42
+ }
43
+ function arrayToTree(arr, param) {
44
+ const djs = [];
45
+ const objs = {};
46
+ arr.forEach((v) => {
47
+ const obj = Object.assign({}, v);
48
+ const id = obj[param.id];
49
+ const fid = obj[param.fid];
50
+ if (fid) {
51
+ objs[fid] = objs[fid] || {};
52
+ objs[fid][param.children] = objs[fid][param.children] || [];
53
+ objs[fid][param.children].push(obj);
54
+ } else {
55
+ djs.push(obj);
56
+ }
57
+ if (objs[id]) {
58
+ obj[param.children] = objs[id][param.children];
59
+ }
60
+ objs[id] = obj;
61
+ });
62
+ return {
63
+ tree: djs,
64
+ array: arr,
65
+ obj: objs
66
+ };
67
+ }
68
+
69
+ export {
70
+ getTreeObj,
71
+ treeToArray,
72
+ arrayToTree
73
+ };
@@ -0,0 +1,8 @@
1
+ // packages/basic/object/hasOwn.ts
2
+ function hasOwn(obj, propName) {
3
+ return Object.prototype.hasOwnProperty.call(obj, propName);
4
+ }
5
+
6
+ export {
7
+ hasOwn
8
+ };
@@ -0,0 +1,60 @@
1
+ // packages/basic/object/setSort.ts
2
+ function sortAttr(obj, sort, key) {
3
+ const vexports = obj[key] || {};
4
+ const ks = Object.keys(vexports).sort(sort);
5
+ const exports = {};
6
+ ks.forEach((k) => {
7
+ exports[k] = vexports[k];
8
+ });
9
+ obj[key] = exports;
10
+ }
11
+ function sortAttrs(obj, sort, key) {
12
+ if (key instanceof Array) {
13
+ key.forEach((k) => {
14
+ sortAttr(obj, sort, k);
15
+ });
16
+ } else {
17
+ sortAttr(obj, sort, key);
18
+ }
19
+ }
20
+ function getSubAttrs(arr, key) {
21
+ const objarr = [];
22
+ arr.forEach((obj) => {
23
+ Object.keys(obj).forEach((v) => {
24
+ const z = obj[v];
25
+ if (key) {
26
+ if (key instanceof Array && key.includes(v)) {
27
+ objarr.push(z);
28
+ } else if (key === v) {
29
+ objarr.push(z);
30
+ }
31
+ } else {
32
+ objarr.push(z);
33
+ }
34
+ });
35
+ });
36
+ return objarr;
37
+ }
38
+ function sortSubAttr(arr, sort, key) {
39
+ arr.forEach((v) => {
40
+ sortAttrs(v, sort, key);
41
+ });
42
+ }
43
+ function setSort(obj, sort, ...arr) {
44
+ let objarr = [obj];
45
+ const leg = arr.length;
46
+ for (let index = 0; index < leg; index++) {
47
+ const element = arr[index];
48
+ if (index == leg - 1) {
49
+ if (element) {
50
+ sortSubAttr(objarr, sort, element);
51
+ }
52
+ } else {
53
+ objarr = getSubAttrs(objarr, element);
54
+ }
55
+ }
56
+ }
57
+
58
+ export {
59
+ setSort
60
+ };
@@ -0,0 +1,52 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNRJPCN4Jcjs = require('./chunk-NRJPCN4J.cjs');
4
+
5
+
6
+ var _chunkIIKQHLKTcjs = require('./chunk-IIKQHLKT.cjs');
7
+
8
+
9
+ var _chunk3VYRYSWKcjs = require('./chunk-3VYRYSWK.cjs');
10
+
11
+
12
+ var _chunkUFYLVZNUcjs = require('./chunk-UFYLVZNU.cjs');
13
+
14
+
15
+ var _chunkJ2GSJKCYcjs = require('./chunk-J2GSJKCY.cjs');
16
+
17
+
18
+ var _chunkD3SX7OUVcjs = require('./chunk-D3SX7OUV.cjs');
19
+
20
+
21
+ var _chunk7AIT4XSDcjs = require('./chunk-7AIT4XSD.cjs');
22
+
23
+
24
+ var _chunkGOUC2DFAcjs = require('./chunk-GOUC2DFA.cjs');
25
+
26
+
27
+ var _chunkQLBOPNV4cjs = require('./chunk-QLBOPNV4.cjs');
28
+
29
+
30
+ var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
31
+
32
+
33
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
34
+
35
+ // packages/basic/object/index.ts
36
+ var object_exports = {};
37
+ _chunk5AZGAKWRcjs.__export.call(void 0, object_exports, {
38
+ attrValueSort: () => _chunkUFYLVZNUcjs.attrValueSort,
39
+ deepCopy: () => _chunkJ2GSJKCYcjs.deepCopy,
40
+ filterObject: () => _chunkD3SX7OUVcjs.filterObject,
41
+ getSort: () => _chunk7AIT4XSDcjs.getSort,
42
+ hasOwn: () => _chunkGOUC2DFAcjs.hasOwn,
43
+ isObject: () => _chunkMIC3W2VYcjs.isObject,
44
+ isObjectArray: () => _chunkQLBOPNV4cjs.isObjectArray,
45
+ mergeObject: () => _chunkNRJPCN4Jcjs.mergeObject,
46
+ setSort: () => _chunkIIKQHLKTcjs.setSort,
47
+ unmergeObject: () => _chunk3VYRYSWKcjs.unmergeObject
48
+ });
49
+
50
+
51
+
52
+ exports.object_exports = object_exports;
@@ -0,0 +1,21 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
4
+
5
+ // packages/css/setCss.ts
6
+ function setCss(elem, style, value) {
7
+ if (typeof style == "string") {
8
+ set(elem, style, value || "");
9
+ } else {
10
+ Object.keys(style).forEach((key) => {
11
+ set(elem, key, style[key]);
12
+ });
13
+ }
14
+ }
15
+ function set(elem, style, value) {
16
+ elem.style.setProperty(_chunkLTVXRDTDcjs.humpToLine.call(void 0, style), value);
17
+ }
18
+
19
+
20
+
21
+ exports.setCss = setCss;
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkA5LHXE5Xcjs = require('./chunk-A5LHXE5X.cjs');
3
+ var _chunkQLBOPNV4cjs = require('./chunk-QLBOPNV4.cjs');
4
4
 
5
5
 
6
- var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
6
+ var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
7
7
 
8
8
 
9
- var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
9
+ var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
10
10
 
11
11
 
12
12
  var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
@@ -16,7 +16,7 @@ var iss_exports = {};
16
16
  _chunk5AZGAKWRcjs.__export.call(void 0, iss_exports, {
17
17
  isArray: () => _chunkISHLY7WMcjs.isArray,
18
18
  isObject: () => _chunkMIC3W2VYcjs.isObject,
19
- isObjectArray: () => _chunkA5LHXE5Xcjs.isObjectArray
19
+ isObjectArray: () => _chunkQLBOPNV4cjs.isObjectArray
20
20
  });
21
21
 
22
22