@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,6 +1,6 @@
1
1
  import {
2
2
  fetchUnitValue
3
- } from "../chunk-QKLVFB74.js";
3
+ } from "../chunk-WX3JYE47.js";
4
4
  import "../chunk-UICA3PK6.js";
5
5
  export {
6
6
  fetchUnitValue
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkTE3XNGF4cjs = require('../chunk-TE3XNGF4.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.getAttrObj = _chunkTE3XNGF4cjs.getAttrObj;
@@ -0,0 +1,11 @@
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 };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getAttrObj
3
+ } from "../chunk-N3FZ4WUI.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ getAttrObj
7
+ };
@@ -1,3 +1,9 @@
1
- declare function getCss(elem: HTMLDivElement, style: string): any;
1
+ /**
2
+ * 获取对应的属性值
3
+ * @param elem
4
+ * @param style
5
+ * @returns
6
+ */
7
+ declare function getCss(elem: Element, style: string): any;
2
8
 
3
9
  export { getCss };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkVY5VQ7WEcjs = require('../chunk-VY5VQ7WE.cjs');
4
+ require('../chunk-UGS2F6DK.cjs');
5
+ require('../chunk-5AZGAKWR.cjs');
6
+
7
+
8
+ exports.getPositionRelative = _chunkVY5VQ7WEcjs.getPositionRelative;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 获取当前元素上父元素的relative的位置
3
+ * @param el
4
+ */
5
+ declare function getPositionRelative(el: HTMLElement, str?: string): HTMLElement;
6
+
7
+ export { getPositionRelative };
@@ -0,0 +1,8 @@
1
+ import {
2
+ getPositionRelative
3
+ } from "../chunk-MQHLAQQA.js";
4
+ import "../chunk-5RZYHE3X.js";
5
+ import "../chunk-UICA3PK6.js";
6
+ export {
7
+ getPositionRelative
8
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkWLBKU7NMcjs = require('../chunk-WLBKU7NM.cjs');
4
+ require('../chunk-PTLVJ5OL.cjs');
5
+ require('../chunk-5AZGAKWR.cjs');
6
+
7
+
8
+ exports.getPrentClass = _chunkWLBKU7NMcjs.getPrentClass;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 获取当前元素或者匹配父类元素的对应样式
3
+ * @param el
4
+ */
5
+ declare function getPrentClass(el: HTMLElement, cs: string): HTMLElement | undefined;
6
+
7
+ export { getPrentClass };
@@ -0,0 +1,8 @@
1
+ import {
2
+ getPrentClass
3
+ } from "../chunk-2QGQBPEX.js";
4
+ import "../chunk-OJFV3426.js";
5
+ import "../chunk-UICA3PK6.js";
6
+ export {
7
+ getPrentClass
8
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPTLVJ5OLcjs = require('../chunk-PTLVJ5OL.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.getPrentCorres = _chunkPTLVJ5OLcjs.getPrentCorres;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 获取当前元素或者匹配父类元素
3
+ * @param el
4
+ */
5
+ declare function getPrentCorres(el: HTMLElement, is: (el: HTMLElement) => boolean): HTMLElement | undefined;
6
+
7
+ export { getPrentCorres };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getPrentCorres
3
+ } from "../chunk-OJFV3426.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ getPrentCorres
7
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkGFAUQTB2cjs = require('../chunk-GFAUQTB2.cjs');
4
+ require('../chunk-TE3XNGF4.cjs');
5
+ require('../chunk-5AZGAKWR.cjs');
6
+
7
+
8
+ exports.getSVG = _chunkGFAUQTB2cjs.getSVG;
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,8 @@
1
+ import {
2
+ getSVG
3
+ } from "../chunk-WIYZQNGO.js";
4
+ import "../chunk-N3FZ4WUI.js";
5
+ import "../chunk-UICA3PK6.js";
6
+ export {
7
+ getSVG
8
+ };
@@ -1,16 +1,37 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-36NQW7GX.cjs');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ZBNE6T3A.cjs');
2
2
 
3
3
 
4
- var _chunkO2RP4UZQcjs = require('../chunk-O2RP4UZQ.cjs');
4
+ var _chunkVY5VQ7WEcjs = require('../chunk-VY5VQ7WE.cjs');
5
5
 
6
6
 
7
- var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
7
+ var _chunkWLBKU7NMcjs = require('../chunk-WLBKU7NM.cjs');
8
+
9
+
10
+ var _chunkPTLVJ5OLcjs = require('../chunk-PTLVJ5OL.cjs');
11
+
12
+
13
+ var _chunkGFAUQTB2cjs = require('../chunk-GFAUQTB2.cjs');
14
+
15
+
16
+ var _chunk4X7AFGTVcjs = require('../chunk-4X7AFGTV.cjs');
17
+ require('../chunk-LTVXRDTD.cjs');
18
+
19
+
20
+ var _chunkUGFSIZ5Pcjs = require('../chunk-UGFSIZ5P.cjs');
8
21
 
9
22
 
10
- var _chunk6WSP6FLZcjs = require('../chunk-6WSP6FLZ.cjs');
23
+ var _chunkTE3XNGF4cjs = require('../chunk-TE3XNGF4.cjs');
24
+
25
+
26
+ var _chunkUGS2F6DKcjs = require('../chunk-UGS2F6DK.cjs');
11
27
  require('../chunk-5AZGAKWR.cjs');
12
28
 
13
29
 
14
30
 
15
31
 
16
- exports.fetchUnitValue = _chunkO2RP4UZQcjs.fetchUnitValue; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.setCss = _chunk6WSP6FLZcjs.setCss;
32
+
33
+
34
+
35
+
36
+
37
+ exports.fetchUnitValue = _chunkUGFSIZ5Pcjs.fetchUnitValue; exports.getAttrObj = _chunkTE3XNGF4cjs.getAttrObj; exports.getCss = _chunkUGS2F6DKcjs.getCss; exports.getPositionRelative = _chunkVY5VQ7WEcjs.getPositionRelative; exports.getPrentClass = _chunkWLBKU7NMcjs.getPrentClass; exports.getPrentCorres = _chunkPTLVJ5OLcjs.getPrentCorres; exports.getSVG = _chunkGFAUQTB2cjs.getSVG; exports.setCss = _chunk4X7AFGTVcjs.setCss;
@@ -1,3 +1,8 @@
1
1
  export { fetchUnitValue } from './fetchUnitValue.js';
2
+ export { getAttrObj } from './getAttrObj.js';
2
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';
3
8
  export { setCss } from './setCss.js';
package/dist/css/index.js CHANGED
@@ -1,16 +1,37 @@
1
- import "../chunk-7KXJO4NI.js";
1
+ import "../chunk-VSSUU2KF.js";
2
+ import {
3
+ getPositionRelative
4
+ } from "../chunk-MQHLAQQA.js";
5
+ import {
6
+ getPrentClass
7
+ } from "../chunk-2QGQBPEX.js";
8
+ import {
9
+ getPrentCorres
10
+ } from "../chunk-OJFV3426.js";
11
+ import {
12
+ getSVG
13
+ } from "../chunk-WIYZQNGO.js";
14
+ import {
15
+ setCss
16
+ } from "../chunk-XUL6LPTN.js";
17
+ import "../chunk-J7CICTHH.js";
2
18
  import {
3
19
  fetchUnitValue
4
- } from "../chunk-QKLVFB74.js";
20
+ } from "../chunk-WX3JYE47.js";
21
+ import {
22
+ getAttrObj
23
+ } from "../chunk-N3FZ4WUI.js";
5
24
  import {
6
25
  getCss
7
26
  } from "../chunk-5RZYHE3X.js";
8
- import {
9
- setCss
10
- } from "../chunk-7IXRH3MU.js";
11
27
  import "../chunk-UICA3PK6.js";
12
28
  export {
13
29
  fetchUnitValue,
30
+ getAttrObj,
14
31
  getCss,
32
+ getPositionRelative,
33
+ getPrentClass,
34
+ getPrentCorres,
35
+ getSVG,
15
36
  setCss
16
37
  };
@@ -1,7 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6WSP6FLZcjs = require('../chunk-6WSP6FLZ.cjs');
3
+ var _chunk4X7AFGTVcjs = require('../chunk-4X7AFGTV.cjs');
4
+ require('../chunk-LTVXRDTD.cjs');
4
5
  require('../chunk-5AZGAKWR.cjs');
5
6
 
6
7
 
7
- exports.setCss = _chunk6WSP6FLZcjs.setCss;
8
+ exports.setCss = _chunk4X7AFGTVcjs.setCss;
@@ -1,3 +1,11 @@
1
- declare function setCss(elem: HTMLDivElement, style: string, value: string): void;
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;
2
10
 
3
11
  export { setCss };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  setCss
3
- } from "../chunk-7IXRH3MU.js";
3
+ } from "../chunk-XUL6LPTN.js";
4
+ import "../chunk-J7CICTHH.js";
4
5
  import "../chunk-UICA3PK6.js";
5
6
  export {
6
7
  setCss
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk2OR4FUOAcjs = require('../chunk-2OR4FUOA.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.getLocus = _chunk2OR4FUOAcjs.getLocus;
@@ -0,0 +1,14 @@
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 };
@@ -0,0 +1,7 @@
1
+ import {
2
+ getLocus
3
+ } from "../chunk-Q63V2U5G.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ getLocus
7
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkUPPSZFBEcjs = require('../chunk-UPPSZFBE.cjs');
7
+ require('../chunk-5AZGAKWR.cjs');
8
+
9
+
10
+
11
+
12
+
13
+ exports.foundEvent = _chunkUPPSZFBEcjs.foundEvent; exports.foundEventCallback = _chunkUPPSZFBEcjs.foundEventCallback; exports.pressEvent = _chunkUPPSZFBEcjs.pressEvent; exports.shiftEvent = _chunkUPPSZFBEcjs.shiftEvent;
@@ -0,0 +1,25 @@
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 { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent };
@@ -0,0 +1,13 @@
1
+ import {
2
+ foundEvent,
3
+ foundEventCallback,
4
+ pressEvent,
5
+ shiftEvent
6
+ } from "../chunk-VBS6YE6H.js";
7
+ import "../chunk-UICA3PK6.js";
8
+ export {
9
+ foundEvent,
10
+ foundEventCallback,
11
+ pressEvent,
12
+ shiftEvent
13
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-BMUGXWAO.cjs');
2
+
3
+
4
+ var _chunk2OR4FUOAcjs = require('../chunk-2OR4FUOA.cjs');
5
+
6
+
7
+
8
+
9
+
10
+ var _chunkUPPSZFBEcjs = require('../chunk-UPPSZFBE.cjs');
11
+ require('../chunk-5AZGAKWR.cjs');
12
+
13
+
14
+
15
+
16
+
17
+
18
+ exports.foundEvent = _chunkUPPSZFBEcjs.foundEvent; exports.foundEventCallback = _chunkUPPSZFBEcjs.foundEventCallback; exports.getLocus = _chunk2OR4FUOAcjs.getLocus; exports.pressEvent = _chunkUPPSZFBEcjs.pressEvent; exports.shiftEvent = _chunkUPPSZFBEcjs.shiftEvent;
@@ -0,0 +1,2 @@
1
+ export { getLocus } from './getLocus.js';
2
+ export { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent } from './getShiftEvent.js';
@@ -0,0 +1,18 @@
1
+ import "../chunk-VOMPPHW6.js";
2
+ import {
3
+ getLocus
4
+ } from "../chunk-Q63V2U5G.js";
5
+ import {
6
+ foundEvent,
7
+ foundEventCallback,
8
+ pressEvent,
9
+ shiftEvent
10
+ } from "../chunk-VBS6YE6H.js";
11
+ import "../chunk-UICA3PK6.js";
12
+ export {
13
+ foundEvent,
14
+ foundEventCallback,
15
+ getLocus,
16
+ pressEvent,
17
+ shiftEvent
18
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkLEPZYF2Ncjs = require('../chunk-LEPZYF2N.cjs');
4
+ require('../chunk-TE3XNGF4.cjs');
5
+ require('../chunk-5AZGAKWR.cjs');
6
+
7
+
8
+ exports.analysisHtml = _chunkLEPZYF2Ncjs.analysisHtml;
@@ -0,0 +1,13 @@
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 };
@@ -0,0 +1,8 @@
1
+ import {
2
+ analysisHtml
3
+ } from "../chunk-GIAO77MY.js";
4
+ import "../chunk-N3FZ4WUI.js";
5
+ import "../chunk-UICA3PK6.js";
6
+ export {
7
+ analysisHtml
8
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkEWXBN4VGcjs = require('../chunk-EWXBN4VG.cjs');
4
+ require('../chunk-5AZGAKWR.cjs');
5
+
6
+
7
+ exports.htmlEscape = _chunkEWXBN4VGcjs.htmlEscape;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 格式html字符串
3
+ * @param str
4
+ * @returns
5
+ */
6
+ declare function htmlEscape(str: string): string;
7
+
8
+ export { htmlEscape };
@@ -0,0 +1,7 @@
1
+ import {
2
+ htmlEscape
3
+ } from "../chunk-NCSN3MC5.js";
4
+ import "../chunk-UICA3PK6.js";
5
+ export {
6
+ htmlEscape
7
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-MGX7U2CG.cjs');
2
+
3
+
4
+ var _chunkLEPZYF2Ncjs = require('../chunk-LEPZYF2N.cjs');
5
+
6
+
7
+ var _chunkEWXBN4VGcjs = require('../chunk-EWXBN4VG.cjs');
8
+ require('../chunk-TE3XNGF4.cjs');
9
+ require('../chunk-5AZGAKWR.cjs');
10
+
11
+
12
+
13
+ exports.analysisHtml = _chunkLEPZYF2Ncjs.analysisHtml; exports.htmlEscape = _chunkEWXBN4VGcjs.htmlEscape;
@@ -0,0 +1,2 @@
1
+ export { analysisHtml } from './analysisHtml.js';
2
+ export { htmlEscape } from './htmlEscape.js';
@@ -0,0 +1,13 @@
1
+ import "../chunk-KQR7FXBF.js";
2
+ import {
3
+ analysisHtml
4
+ } from "../chunk-GIAO77MY.js";
5
+ import {
6
+ htmlEscape
7
+ } from "../chunk-NCSN3MC5.js";
8
+ import "../chunk-N3FZ4WUI.js";
9
+ import "../chunk-UICA3PK6.js";
10
+ export {
11
+ analysisHtml,
12
+ htmlEscape
13
+ };
@@ -0,0 +1,13 @@
1
+ import { copy } from './window/copy.js';
2
+ import { getParam } from './window/getParam.js';
3
+
4
+ declare const index_copy: typeof copy;
5
+ declare const index_getParam: typeof getParam;
6
+ declare namespace index {
7
+ export {
8
+ index_copy as copy,
9
+ index_getParam as getParam,
10
+ };
11
+ }
12
+
13
+ export { index as i };
@@ -1,10 +1,12 @@
1
1
  import { asyncMergeArray } from './basic/array/asyncMergeArray.js';
2
+ import { deleteArray } from './basic/array/deleteArray.js';
2
3
  import { duplicateRemoval } from './basic/array/duplicateRemoval.js';
3
4
  import { isArray } from './basic/array/isArray.js';
4
5
  import { replaceAfter } from './basic/array/replaceAfter.js';
5
6
  import { toggleArray } from './basic/array/toggleArray.js';
6
7
 
7
8
  declare const index_asyncMergeArray: typeof asyncMergeArray;
9
+ declare const index_deleteArray: typeof deleteArray;
8
10
  declare const index_duplicateRemoval: typeof duplicateRemoval;
9
11
  declare const index_isArray: typeof isArray;
10
12
  declare const index_replaceAfter: typeof replaceAfter;
@@ -12,6 +14,7 @@ declare const index_toggleArray: typeof toggleArray;
12
14
  declare namespace index {
13
15
  export {
14
16
  index_asyncMergeArray as asyncMergeArray,
17
+ index_deleteArray as deleteArray,
15
18
  index_duplicateRemoval as duplicateRemoval,
16
19
  index_isArray as isArray,
17
20
  index_replaceAfter as replaceAfter,
@@ -0,0 +1,13 @@
1
+ import { i as index$1 } from './index-123cda08.js';
2
+ import { i as index$2 } from './index-ed8c0e9f.js';
3
+ import { i as index$3 } from './index-4d550d78.js';
4
+
5
+ declare namespace index {
6
+ export {
7
+ index$1 as array,
8
+ index$2 as object,
9
+ index$3 as string,
10
+ };
11
+ }
12
+
13
+ export { index as i };
@@ -5,23 +5,33 @@ import { firstUpper } from './basic/string/firstUpper.js';
5
5
  import { getStartSame } from './basic/string/getStartSame.js';
6
6
  import { getStartSames } from './basic/string/getStartSames.js';
7
7
  import { splitUpper } from './basic/string/splitUpper.js';
8
+ import { getFunctionFormat, toFunction } from './basic/string/toFunction.js';
9
+ import { toJSONParse, toJSONStringify } from './basic/string/toJson.js';
8
10
 
9
11
  declare const index_appearNum: typeof appearNum;
10
12
  declare const index_appearNumSeat: typeof appearNumSeat;
11
13
  declare const index_firstLower: typeof firstLower;
12
14
  declare const index_firstUpper: typeof firstUpper;
15
+ declare const index_getFunctionFormat: typeof getFunctionFormat;
13
16
  declare const index_getStartSame: typeof getStartSame;
14
17
  declare const index_getStartSames: typeof getStartSames;
15
18
  declare const index_splitUpper: typeof splitUpper;
19
+ declare const index_toFunction: typeof toFunction;
20
+ declare const index_toJSONParse: typeof toJSONParse;
21
+ declare const index_toJSONStringify: typeof toJSONStringify;
16
22
  declare namespace index {
17
23
  export {
18
24
  index_appearNum as appearNum,
19
25
  index_appearNumSeat as appearNumSeat,
20
26
  index_firstLower as firstLower,
21
27
  index_firstUpper as firstUpper,
28
+ index_getFunctionFormat as getFunctionFormat,
22
29
  index_getStartSame as getStartSame,
23
30
  index_getStartSames as getStartSames,
24
31
  index_splitUpper as splitUpper,
32
+ index_toFunction as toFunction,
33
+ index_toJSONParse as toJSONParse,
34
+ index_toJSONStringify as toJSONStringify,
25
35
  };
26
36
  }
27
37
 
@@ -0,0 +1,21 @@
1
+ import { getLocus } from './dom/getLocus.js';
2
+ import { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent } from './dom/getShiftEvent.js';
3
+
4
+ declare const index_SeatEvent: typeof SeatEvent;
5
+ declare const index_foundEvent: typeof foundEvent;
6
+ declare const index_foundEventCallback: typeof foundEventCallback;
7
+ declare const index_getLocus: typeof getLocus;
8
+ declare const index_pressEvent: typeof pressEvent;
9
+ declare const index_shiftEvent: typeof shiftEvent;
10
+ declare namespace index {
11
+ export {
12
+ index_SeatEvent as SeatEvent,
13
+ index_foundEvent as foundEvent,
14
+ index_foundEventCallback as foundEventCallback,
15
+ index_getLocus as getLocus,
16
+ index_pressEvent as pressEvent,
17
+ index_shiftEvent as shiftEvent,
18
+ };
19
+ }
20
+
21
+ export { index as i };