@fangzhongya/utils 0.0.32 → 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 (274) 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 +5 -4
  4. package/dist/basic/array/index.js +5 -4
  5. package/dist/basic/index.cjs +11 -10
  6. package/dist/basic/index.js +10 -9
  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 +5 -5
  10. package/dist/basic/string/index.js +5 -5
  11. package/dist/chunk-4SFMC3WS.cjs +24 -0
  12. package/dist/chunk-L2U4EVBL.cjs +56 -0
  13. package/dist/chunk-M53E7HJ2.js +0 -0
  14. package/dist/chunk-OCVMSEV6.js +56 -0
  15. package/dist/{chunk-FROL42SM.js → chunk-QBGA4H7C.js} +3 -3
  16. package/dist/{chunk-YGQ27MCX.js → chunk-RLJWS3GU.js} +1 -1
  17. package/dist/chunk-UC2AI4QC.cjs +1 -0
  18. package/dist/{chunk-XKPZBOQM.cjs → chunk-WCOLWI35.cjs} +2 -2
  19. package/dist/date/format.cjs +2 -2
  20. package/dist/date/format.js +1 -1
  21. package/dist/date/index.cjs +3 -3
  22. package/dist/date/index.js +2 -2
  23. package/dist/index.cjs +23 -22
  24. package/dist/index.js +24 -23
  25. package/dist/urls/index.cjs +12 -12
  26. package/dist/urls/index.js +13 -13
  27. package/dist/window/index.cjs +3 -3
  28. package/dist/window/index.js +4 -4
  29. package/package.json +6 -1
  30. package/dist/basic/array/asyncMergeArray.d.cts +0 -9
  31. package/dist/basic/array/asyncMergeArray.d.ts +0 -9
  32. package/dist/basic/array/deleteArray.d.cts +0 -6
  33. package/dist/basic/array/deleteArray.d.ts +0 -6
  34. package/dist/basic/array/duplicateRemoval.d.cts +0 -9
  35. package/dist/basic/array/duplicateRemoval.d.ts +0 -9
  36. package/dist/basic/array/index.d.cts +0 -7
  37. package/dist/basic/array/index.d.ts +0 -7
  38. package/dist/basic/array/isArray.d.cts +0 -8
  39. package/dist/basic/array/isArray.d.ts +0 -8
  40. package/dist/basic/array/replaceAfter.d.cts +0 -11
  41. package/dist/basic/array/replaceAfter.d.ts +0 -11
  42. package/dist/basic/array/sortObj.d.cts +0 -10
  43. package/dist/basic/array/sortObj.d.ts +0 -10
  44. package/dist/basic/array/toggleArray.d.cts +0 -10
  45. package/dist/basic/array/toggleArray.d.ts +0 -10
  46. package/dist/basic/index.d.cts +0 -37
  47. package/dist/basic/index.d.ts +0 -37
  48. package/dist/basic/object/attrValueSort.d.cts +0 -12
  49. package/dist/basic/object/attrValueSort.d.ts +0 -12
  50. package/dist/basic/object/deepCopy.d.cts +0 -8
  51. package/dist/basic/object/deepCopy.d.ts +0 -8
  52. package/dist/basic/object/filterObject.d.cts +0 -14
  53. package/dist/basic/object/filterObject.d.ts +0 -14
  54. package/dist/basic/object/getSort.d.cts +0 -10
  55. package/dist/basic/object/getSort.d.ts +0 -10
  56. package/dist/basic/object/hasOwn.d.cts +0 -9
  57. package/dist/basic/object/hasOwn.d.ts +0 -9
  58. package/dist/basic/object/index.d.cts +0 -12
  59. package/dist/basic/object/index.d.ts +0 -12
  60. package/dist/basic/object/isObject.d.cts +0 -8
  61. package/dist/basic/object/isObject.d.ts +0 -8
  62. package/dist/basic/object/isObjectArray.d.cts +0 -8
  63. package/dist/basic/object/isObjectArray.d.ts +0 -8
  64. package/dist/basic/object/mergeObject.d.cts +0 -11
  65. package/dist/basic/object/mergeObject.d.ts +0 -11
  66. package/dist/basic/object/objValue.d.cts +0 -7
  67. package/dist/basic/object/objValue.d.ts +0 -7
  68. package/dist/basic/object/reverseObj.d.cts +0 -9
  69. package/dist/basic/object/reverseObj.d.ts +0 -9
  70. package/dist/basic/object/setSort.d.cts +0 -7
  71. package/dist/basic/object/setSort.d.ts +0 -7
  72. package/dist/basic/object/unmergeObject.d.cts +0 -11
  73. package/dist/basic/object/unmergeObject.d.ts +0 -11
  74. package/dist/basic/string/appearNum.d.cts +0 -9
  75. package/dist/basic/string/appearNum.d.ts +0 -9
  76. package/dist/basic/string/appearNumSeat.d.cts +0 -10
  77. package/dist/basic/string/appearNumSeat.d.ts +0 -10
  78. package/dist/basic/string/deComment.d.cts +0 -7
  79. package/dist/basic/string/deComment.d.ts +0 -7
  80. package/dist/basic/string/firstLower.d.cts +0 -8
  81. package/dist/basic/string/firstLower.d.ts +0 -8
  82. package/dist/basic/string/firstUpper.d.cts +0 -8
  83. package/dist/basic/string/firstUpper.d.ts +0 -8
  84. package/dist/basic/string/getImports.d.cts +0 -22
  85. package/dist/basic/string/getImports.d.ts +0 -22
  86. package/dist/basic/string/getStartSame.d.cts +0 -9
  87. package/dist/basic/string/getStartSame.d.ts +0 -9
  88. package/dist/basic/string/getStartSames.d.cts +0 -9
  89. package/dist/basic/string/getStartSames.d.ts +0 -9
  90. package/dist/basic/string/getStrNunPosit.d.cts +0 -10
  91. package/dist/basic/string/getStrNunPosit.d.ts +0 -10
  92. package/dist/basic/string/index.d.cts +0 -15
  93. package/dist/basic/string/index.d.ts +0 -15
  94. package/dist/basic/string/splitUpper.d.cts +0 -8
  95. package/dist/basic/string/splitUpper.d.ts +0 -8
  96. package/dist/basic/string/startsNum.d.cts +0 -9
  97. package/dist/basic/string/startsNum.d.ts +0 -9
  98. package/dist/basic/string/toFunction.d.cts +0 -19
  99. package/dist/basic/string/toFunction.d.ts +0 -19
  100. package/dist/basic/string/toJson.d.cts +0 -4
  101. package/dist/basic/string/toJson.d.ts +0 -4
  102. package/dist/basic/string/toJsons.d.cts +0 -60
  103. package/dist/basic/string/toJsons.d.ts +0 -60
  104. package/dist/basic/string/toStringParse.d.cts +0 -6
  105. package/dist/basic/string/toStringParse.d.ts +0 -6
  106. package/dist/chunk-CS3E5UZ2.cjs +0 -24
  107. package/dist/chunk-OJK22RQ4.js +0 -57
  108. package/dist/chunk-WQTIDYKH.cjs +0 -57
  109. package/dist/css/fetchUnitValue.d.cts +0 -10
  110. package/dist/css/fetchUnitValue.d.ts +0 -10
  111. package/dist/css/getAttrObj.d.cts +0 -11
  112. package/dist/css/getAttrObj.d.ts +0 -11
  113. package/dist/css/getCss.d.cts +0 -9
  114. package/dist/css/getCss.d.ts +0 -9
  115. package/dist/css/getPositionRelative.d.cts +0 -7
  116. package/dist/css/getPositionRelative.d.ts +0 -7
  117. package/dist/css/getPrentClass.d.cts +0 -7
  118. package/dist/css/getPrentClass.d.ts +0 -7
  119. package/dist/css/getPrentCorres.d.cts +0 -7
  120. package/dist/css/getPrentCorres.d.ts +0 -7
  121. package/dist/css/getSVG.d.cts +0 -14
  122. package/dist/css/getSVG.d.ts +0 -14
  123. package/dist/css/getScssImports.d.cts +0 -8
  124. package/dist/css/getScssImports.d.ts +0 -8
  125. package/dist/css/index.d.cts +0 -11
  126. package/dist/css/index.d.ts +0 -11
  127. package/dist/css/setClassName.d.cts +0 -6
  128. package/dist/css/setClassName.d.ts +0 -6
  129. package/dist/css/setCss.d.cts +0 -11
  130. package/dist/css/setCss.d.ts +0 -11
  131. package/dist/css/setObjStyle.d.cts +0 -12
  132. package/dist/css/setObjStyle.d.ts +0 -12
  133. package/dist/date/format.d.cts +0 -3
  134. package/dist/date/format.d.ts +0 -3
  135. package/dist/date/index.d.cts +0 -1
  136. package/dist/date/index.d.ts +0 -1
  137. package/dist/dom/getLocus.d.cts +0 -14
  138. package/dist/dom/getLocus.d.ts +0 -14
  139. package/dist/dom/getShiftEvent.d.cts +0 -25
  140. package/dist/dom/getShiftEvent.d.ts +0 -25
  141. package/dist/dom/index.d.cts +0 -2
  142. package/dist/dom/index.d.ts +0 -2
  143. package/dist/html/analysisHtml.d.cts +0 -13
  144. package/dist/html/analysisHtml.d.ts +0 -13
  145. package/dist/html/generateHtml.d.cts +0 -5
  146. package/dist/html/generateHtml.d.ts +0 -5
  147. package/dist/html/getVueText.d.cts +0 -16
  148. package/dist/html/getVueText.d.ts +0 -16
  149. package/dist/html/htmlEscape.d.cts +0 -8
  150. package/dist/html/htmlEscape.d.ts +0 -8
  151. package/dist/html/index.d.cts +0 -4
  152. package/dist/html/index.d.ts +0 -4
  153. package/dist/index--yFTfMpc.d.cts +0 -29
  154. package/dist/index-B7gdHwF9.d.cts +0 -40
  155. package/dist/index-BU0xla6v.d.cts +0 -31
  156. package/dist/index-BbrWO_KD.d.cts +0 -16
  157. package/dist/index-BiHaQlE9.d.cts +0 -14
  158. package/dist/index-BocAlCa8.d.ts +0 -8
  159. package/dist/index-Bq6WKjlK.d.ts +0 -29
  160. package/dist/index-BqhKBGyX.d.ts +0 -14
  161. package/dist/index-Br7o4Zbz.d.ts +0 -9
  162. package/dist/index-Bta_eezz.d.ts +0 -12
  163. package/dist/index-C0q7yBX5.d.cts +0 -29
  164. package/dist/index-C1rfQdS-.d.ts +0 -8
  165. package/dist/index-C29DFVeC.d.ts +0 -20
  166. package/dist/index-CK2c-6vv.d.cts +0 -8
  167. package/dist/index-CLnASTZ5.d.ts +0 -29
  168. package/dist/index-CPO1AFVg.d.ts +0 -14
  169. package/dist/index-CS54GrWo.d.ts +0 -16
  170. package/dist/index-CdRz4xJD.d.ts +0 -15
  171. package/dist/index-CmiMKPSL.d.ts +0 -43
  172. package/dist/index-CnrmwHvE.d.cts +0 -15
  173. package/dist/index-Cqj4dm5n.d.ts +0 -8
  174. package/dist/index-CsYVH5m1.d.cts +0 -8
  175. package/dist/index-D1xTdh0f.d.cts +0 -8
  176. package/dist/index-DAi9PP0w.d.cts +0 -13
  177. package/dist/index-DOq59RNr.d.ts +0 -31
  178. package/dist/index-DPrdy8Ms.d.ts +0 -40
  179. package/dist/index-DaryquSt.d.cts +0 -43
  180. package/dist/index-Dmv6PGiQ.d.cts +0 -9
  181. package/dist/index-Dvp25i1P.d.cts +0 -10
  182. package/dist/index-cuR7l2XV.d.cts +0 -14
  183. package/dist/index-qUiGxoy_.d.cts +0 -20
  184. package/dist/index-syb18q2f.d.ts +0 -10
  185. package/dist/index-v-06_rNI.d.cts +0 -12
  186. package/dist/index-vCPDFXBq.d.ts +0 -13
  187. package/dist/index.d.cts +0 -98
  188. package/dist/index.d.ts +0 -98
  189. package/dist/iss/index.d.cts +0 -3
  190. package/dist/iss/index.d.ts +0 -3
  191. package/dist/judge/index.d.cts +0 -5
  192. package/dist/judge/index.d.ts +0 -5
  193. package/dist/judge/judge.d.cts +0 -155
  194. package/dist/judge/judge.d.ts +0 -155
  195. package/dist/judge/matchs.d.cts +0 -10
  196. package/dist/judge/matchs.d.ts +0 -10
  197. package/dist/judge/matchsEnd.d.cts +0 -9
  198. package/dist/judge/matchsEnd.d.ts +0 -9
  199. package/dist/judge/matchsStart.d.cts +0 -9
  200. package/dist/judge/matchsStart.d.ts +0 -9
  201. package/dist/judge/matchsWhole.d.cts +0 -9
  202. package/dist/judge/matchsWhole.d.ts +0 -9
  203. package/dist/load/getSynch.d.cts +0 -8
  204. package/dist/load/getSynch.d.ts +0 -8
  205. package/dist/load/index.d.cts +0 -2
  206. package/dist/load/index.d.ts +0 -2
  207. package/dist/load/loadScript.d.cts +0 -3
  208. package/dist/load/loadScript.d.ts +0 -3
  209. package/dist/log/index.d.cts +0 -1
  210. package/dist/log/index.d.ts +0 -1
  211. package/dist/log/styleLog.d.cts +0 -68
  212. package/dist/log/styleLog.d.ts +0 -68
  213. package/dist/name/getComponentNames.d.cts +0 -8
  214. package/dist/name/getComponentNames.d.ts +0 -8
  215. package/dist/name/getNames.d.cts +0 -8
  216. package/dist/name/getNames.d.ts +0 -8
  217. package/dist/name/humpToLine.d.cts +0 -8
  218. package/dist/name/humpToLine.d.ts +0 -8
  219. package/dist/name/index.d.cts +0 -5
  220. package/dist/name/index.d.ts +0 -5
  221. package/dist/name/lineToLargeHump.d.cts +0 -8
  222. package/dist/name/lineToLargeHump.d.ts +0 -8
  223. package/dist/name/lineToSmallHump.d.cts +0 -8
  224. package/dist/name/lineToSmallHump.d.ts +0 -8
  225. package/dist/node/getPort.d.cts +0 -13
  226. package/dist/node/getPort.d.ts +0 -13
  227. package/dist/node/index.d.cts +0 -1
  228. package/dist/node/index.d.ts +0 -1
  229. package/dist/tree/getTreeObj.d.cts +0 -26
  230. package/dist/tree/getTreeObj.d.ts +0 -26
  231. package/dist/tree/index.d.cts +0 -2
  232. package/dist/tree/index.d.ts +0 -2
  233. package/dist/tree/splitGroup.d.cts +0 -15
  234. package/dist/tree/splitGroup.d.ts +0 -15
  235. package/dist/urls/getImportUrl.d.cts +0 -9
  236. package/dist/urls/getImportUrl.d.ts +0 -9
  237. package/dist/urls/getImportUrlSuffix.d.cts +0 -9
  238. package/dist/urls/getImportUrlSuffix.d.ts +0 -9
  239. package/dist/urls/getNewFileName.d.cts +0 -8
  240. package/dist/urls/getNewFileName.d.ts +0 -8
  241. package/dist/urls/getReplaceCompleteUrl.d.cts +0 -9
  242. package/dist/urls/getReplaceCompleteUrl.d.ts +0 -9
  243. package/dist/urls/getReplaceImportUrl.d.cts +0 -9
  244. package/dist/urls/getReplaceImportUrl.d.ts +0 -9
  245. package/dist/urls/getReplaceUrl.d.cts +0 -9
  246. package/dist/urls/getReplaceUrl.d.ts +0 -9
  247. package/dist/urls/getReplaceUrls.d.cts +0 -9
  248. package/dist/urls/getReplaceUrls.d.ts +0 -9
  249. package/dist/urls/getSuffix.d.cts +0 -8
  250. package/dist/urls/getSuffix.d.ts +0 -8
  251. package/dist/urls/getUrlCatalogue.d.cts +0 -8
  252. package/dist/urls/getUrlCatalogue.d.ts +0 -8
  253. package/dist/urls/getUrlCatalogueLast.d.cts +0 -8
  254. package/dist/urls/getUrlCatalogueLast.d.ts +0 -8
  255. package/dist/urls/getUrlCatalogueObj.d.cts +0 -17
  256. package/dist/urls/getUrlCatalogueObj.d.ts +0 -17
  257. package/dist/urls/index.d.cts +0 -11
  258. package/dist/urls/index.d.ts +0 -11
  259. package/dist/window/copy.d.cts +0 -3
  260. package/dist/window/copy.d.ts +0 -3
  261. package/dist/window/getParam.d.cts +0 -9
  262. package/dist/window/getParam.d.ts +0 -9
  263. package/dist/window/index.d.cts +0 -2
  264. package/dist/window/index.d.ts +0 -2
  265. package/dist/{chunk-5J5H4CQI.cjs → chunk-3SJOLMSI.cjs} +4 -4
  266. package/dist/{chunk-UKUXUB64.cjs → chunk-4E4OWBN7.cjs} +7 -7
  267. package/dist/{chunk-52V6AAWI.cjs → chunk-5WEKCLPK.cjs} +2 -2
  268. package/dist/{chunk-3MPKAL6Z.js → chunk-7UVIWZ2J.js} +3 -3
  269. package/dist/{chunk-4K5L3QJW.cjs → chunk-F4IWIVCD.cjs} +3 -3
  270. package/dist/{chunk-MECBPLFH.js → chunk-IY346OU3.js} +7 -7
  271. package/dist/{chunk-KZB3WRDX.cjs → chunk-JZQA6OH4.cjs} +11 -11
  272. package/dist/{chunk-SOHG7BA5.js → chunk-KDSELPFY.js} +4 -4
  273. package/dist/{chunk-XLSPETGS.js → chunk-TERIHBSO.js} +3 -3
  274. package/dist/{chunk-SED44VEN.js → chunk-TQGXHFVK.js} +12 -12
@@ -1,57 +0,0 @@
1
- // packages/date/format.ts
2
- var arr = [
3
- "\u661F\u671F\u65E5",
4
- "\u661F\u671F\u4E00",
5
- "\u661F\u671F\u4E8C",
6
- "\u661F\u671F\u4E09",
7
- "\u661F\u671F\u56DB",
8
- "\u661F\u671F\u4E94",
9
- "\u661F\u671F\u516D"
10
- ];
11
- function format(date, fmt) {
12
- if (!date) {
13
- return "";
14
- } else if (typeof date == "string") {
15
- let d = new Date(date);
16
- date = d;
17
- }
18
- let o = {
19
- "M+": date.getMonth() + 1,
20
- //月份
21
- "[D|d]+": date.getDate(),
22
- //日
23
- "[H|h]+": date.getHours(),
24
- //小时
25
- "m+": date.getMinutes(),
26
- //分
27
- "s+": date.getSeconds(),
28
- //秒
29
- "q+": Math.floor((date.getMonth() + 3) / 3),
30
- //季度
31
- S: date.getMilliseconds()
32
- //毫秒
33
- };
34
- let xq = date.getDay();
35
- if (/([y|Y]+)/.test(fmt))
36
- fmt = fmt.replace(
37
- RegExp.$1,
38
- (date.getFullYear() + "").substring(4 - RegExp.$1.length)
39
- );
40
- for (var k in o) {
41
- if (new RegExp("(" + k + ")").test(fmt)) {
42
- const val = o[k];
43
- fmt = fmt.replace(
44
- RegExp.$1,
45
- RegExp.$1.length == 1 ? val.toString() : ("00" + val).substring(val.toString().length)
46
- );
47
- }
48
- }
49
- if (fmt.includes("XXX")) {
50
- fmt = fmt.replace("XXX", arr[xq]);
51
- }
52
- return fmt;
53
- }
54
-
55
- export {
56
- format
57
- };
@@ -1,57 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/date/format.ts
2
- var arr = [
3
- "\u661F\u671F\u65E5",
4
- "\u661F\u671F\u4E00",
5
- "\u661F\u671F\u4E8C",
6
- "\u661F\u671F\u4E09",
7
- "\u661F\u671F\u56DB",
8
- "\u661F\u671F\u4E94",
9
- "\u661F\u671F\u516D"
10
- ];
11
- function format(date, fmt) {
12
- if (!date) {
13
- return "";
14
- } else if (typeof date == "string") {
15
- let d = new Date(date);
16
- date = d;
17
- }
18
- let o = {
19
- "M+": date.getMonth() + 1,
20
- //月份
21
- "[D|d]+": date.getDate(),
22
- //日
23
- "[H|h]+": date.getHours(),
24
- //小时
25
- "m+": date.getMinutes(),
26
- //分
27
- "s+": date.getSeconds(),
28
- //秒
29
- "q+": Math.floor((date.getMonth() + 3) / 3),
30
- //季度
31
- S: date.getMilliseconds()
32
- //毫秒
33
- };
34
- let xq = date.getDay();
35
- if (/([y|Y]+)/.test(fmt))
36
- fmt = fmt.replace(
37
- RegExp.$1,
38
- (date.getFullYear() + "").substring(4 - RegExp.$1.length)
39
- );
40
- for (var k in o) {
41
- if (new RegExp("(" + k + ")").test(fmt)) {
42
- const val = o[k];
43
- fmt = fmt.replace(
44
- RegExp.$1,
45
- RegExp.$1.length == 1 ? val.toString() : ("00" + val).substring(val.toString().length)
46
- );
47
- }
48
- }
49
- if (fmt.includes("XXX")) {
50
- fmt = fmt.replace("XXX", arr[xq]);
51
- }
52
- return fmt;
53
- }
54
-
55
-
56
-
57
- exports.format = format;
@@ -1,10 +0,0 @@
1
- /**
2
- * 提取单位值
3
- * @param text
4
- * @param str
5
- * @param callback
6
- * @returns
7
- */
8
- declare function fetchUnitValue(text: string, str: string, callback?: (n: number, dw: string, yss: string, i: number) => string): string;
9
-
10
- export { fetchUnitValue };
@@ -1,10 +0,0 @@
1
- /**
2
- * 提取单位值
3
- * @param text
4
- * @param str
5
- * @param callback
6
- * @returns
7
- */
8
- declare function fetchUnitValue(text: string, str: string, callback?: (n: number, dw: string, yss: string, i: number) => string): string;
9
-
10
- export { fetchUnitValue };
@@ -1,11 +0,0 @@
1
- type ObjStr = {
2
- [key: string]: string;
3
- };
4
- /**
5
- * 获取属性对象
6
- * @param str
7
- * @returns
8
- */
9
- declare function getAttrObj(str: string): ObjStr;
10
-
11
- export { getAttrObj };
@@ -1,11 +0,0 @@
1
- type ObjStr = {
2
- [key: string]: string;
3
- };
4
- /**
5
- * 获取属性对象
6
- * @param str
7
- * @returns
8
- */
9
- declare function getAttrObj(str: string): ObjStr;
10
-
11
- export { getAttrObj };
@@ -1,9 +0,0 @@
1
- /**
2
- * 获取对应的属性值
3
- * @param elem
4
- * @param style
5
- * @returns
6
- */
7
- declare function getCss(elem: Element, style: string): any;
8
-
9
- export { getCss };
@@ -1,9 +0,0 @@
1
- /**
2
- * 获取对应的属性值
3
- * @param elem
4
- * @param style
5
- * @returns
6
- */
7
- declare function getCss(elem: Element, style: string): any;
8
-
9
- export { getCss };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素上父元素的relative的位置
3
- * @param el
4
- */
5
- declare function getPositionRelative(el: HTMLElement, str?: string): HTMLElement;
6
-
7
- export { getPositionRelative };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素上父元素的relative的位置
3
- * @param el
4
- */
5
- declare function getPositionRelative(el: HTMLElement, str?: string): HTMLElement;
6
-
7
- export { getPositionRelative };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素的对应样式
3
- * @param el
4
- */
5
- declare function getPrentClass(el: HTMLElement, cs: string, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentClass };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素的对应样式
3
- * @param el
4
- */
5
- declare function getPrentClass(el: HTMLElement, cs: string, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentClass };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素
3
- * @param el
4
- */
5
- declare function getPrentCorres(el: HTMLElement, is: (el: HTMLElement) => boolean, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentCorres };
@@ -1,7 +0,0 @@
1
- /**
2
- * 获取当前元素或者匹配父类元素
3
- * @param el
4
- */
5
- declare function getPrentCorres(el: HTMLElement, is: (el: HTMLElement) => boolean, depth?: number): HTMLElement | undefined;
6
-
7
- export { getPrentCorres };
@@ -1,14 +0,0 @@
1
- /**
2
- * 通过svg 字符串获取对应数据
3
- * @param{string} str
4
- */
5
- declare function getSVG(str: string): {
6
- body: string;
7
- viewBox: string;
8
- left: number;
9
- top: number;
10
- width: number;
11
- height: number;
12
- } | undefined;
13
-
14
- export { getSVG };
@@ -1,14 +0,0 @@
1
- /**
2
- * 通过svg 字符串获取对应数据
3
- * @param{string} str
4
- */
5
- declare function getSVG(str: string): {
6
- body: string;
7
- viewBox: string;
8
- left: number;
9
- top: number;
10
- width: number;
11
- height: number;
12
- } | undefined;
13
-
14
- export { getSVG };
@@ -1,8 +0,0 @@
1
- /**
2
- * 从 SCSS 文件内容中提取所有未被注释的 @use 和 @import 引用的路径
3
- * @param {string} scssContent - SCSS 文件内容
4
- * @returns {string[]} 提取到的路径数组(已去重)
5
- */
6
- declare function getScssImports(scssContent: string): string[];
7
-
8
- export { getScssImports };
@@ -1,8 +0,0 @@
1
- /**
2
- * 从 SCSS 文件内容中提取所有未被注释的 @use 和 @import 引用的路径
3
- * @param {string} scssContent - SCSS 文件内容
4
- * @returns {string[]} 提取到的路径数组(已去重)
5
- */
6
- declare function getScssImports(scssContent: string): string[];
7
-
8
- export { getScssImports };
@@ -1,11 +0,0 @@
1
- export { fetchUnitValue } from './fetchUnitValue.cjs';
2
- export { getAttrObj } from './getAttrObj.cjs';
3
- export { getCss } from './getCss.cjs';
4
- export { getPositionRelative } from './getPositionRelative.cjs';
5
- export { getPrentClass } from './getPrentClass.cjs';
6
- export { getPrentCorres } from './getPrentCorres.cjs';
7
- export { getSVG } from './getSVG.cjs';
8
- export { getScssImports } from './getScssImports.cjs';
9
- export { setClassName } from './setClassName.cjs';
10
- export { setCss } from './setCss.cjs';
11
- export { setObjStyle, toStyleString } from './setObjStyle.cjs';
@@ -1,11 +0,0 @@
1
- export { fetchUnitValue } from './fetchUnitValue.js';
2
- export { getAttrObj } from './getAttrObj.js';
3
- export { getCss } from './getCss.js';
4
- export { getPositionRelative } from './getPositionRelative.js';
5
- export { getPrentClass } from './getPrentClass.js';
6
- export { getPrentCorres } from './getPrentCorres.js';
7
- export { getSVG } from './getSVG.js';
8
- export { getScssImports } from './getScssImports.js';
9
- export { setClassName } from './setClassName.js';
10
- export { setCss } from './setCss.js';
11
- export { setObjStyle, toStyleString } from './setObjStyle.js';
@@ -1,6 +0,0 @@
1
- /***
2
- * 设置样式
3
- */
4
- declare function setClassName(dom: Element, newValue?: string, oldValue?: string): void;
5
-
6
- export { setClassName };
@@ -1,6 +0,0 @@
1
- /***
2
- * 设置样式
3
- */
4
- declare function setClassName(dom: Element, newValue?: string, oldValue?: string): void;
5
-
6
- export { setClassName };
@@ -1,11 +0,0 @@
1
- /**
2
- * 设置样式
3
- * @param elem
4
- * @param style
5
- * @param value
6
- */
7
- declare function setCss(elem: HTMLElement, style: string | {
8
- [key: string]: string;
9
- }, value?: string): void;
10
-
11
- export { setCss };
@@ -1,11 +0,0 @@
1
- /**
2
- * 设置样式
3
- * @param elem
4
- * @param style
5
- * @param value
6
- */
7
- declare function setCss(elem: HTMLElement, style: string | {
8
- [key: string]: string;
9
- }, value?: string): void;
10
-
11
- export { setCss };
@@ -1,12 +0,0 @@
1
- type ObjStrNum = {
2
- [key: string]: string | number;
3
- };
4
- /**
5
- * 把对象Style 转字符串
6
- * @param {*} obj
7
- * @returns
8
- */
9
- declare function toStyleString(obj: ObjStrNum): string;
10
- declare function setObjStyle(style: string | ObjStrNum, objColor: ObjStrNum): string | ObjStrNum;
11
-
12
- export { setObjStyle, toStyleString };
@@ -1,12 +0,0 @@
1
- type ObjStrNum = {
2
- [key: string]: string | number;
3
- };
4
- /**
5
- * 把对象Style 转字符串
6
- * @param {*} obj
7
- * @returns
8
- */
9
- declare function toStyleString(obj: ObjStrNum): string;
10
- declare function setObjStyle(style: string | ObjStrNum, objColor: ObjStrNum): string | ObjStrNum;
11
-
12
- export { setObjStyle, toStyleString };
@@ -1,3 +0,0 @@
1
- declare function format(date: Date, fmt: string): string;
2
-
3
- export { format };
@@ -1,3 +0,0 @@
1
- declare function format(date: Date, fmt: string): string;
2
-
3
- export { format };
@@ -1 +0,0 @@
1
- export { format } from './format.cjs';
@@ -1 +0,0 @@
1
- export { format } from './format.js';
@@ -1,14 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- /**
3
- * 计算方向
4
- * @param ks
5
- * @param js
6
- * @returns
7
- */
8
- declare function getLocus(ks: SeatEvent, js: SeatEvent): {
9
- x: number;
10
- y: number;
11
- t: number;
12
- };
13
-
14
- export { getLocus };
@@ -1,14 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- /**
3
- * 计算方向
4
- * @param ks
5
- * @param js
6
- * @returns
7
- */
8
- declare function getLocus(ks: SeatEvent, js: SeatEvent): {
9
- x: number;
10
- y: number;
11
- t: number;
12
- };
13
-
14
- export { getLocus };
@@ -1,25 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- type Type = 'touch' | 'mouse';
3
- type Callback = (e: SeatEvent, t: Type, te?: TouchEvent) => void;
4
- type Dom = HTMLElement | Document;
5
- declare const eventTypes: {
6
- press: {
7
- touch: string;
8
- mouse: string;
9
- };
10
- shift: {
11
- touch: string;
12
- mouse: string;
13
- };
14
- release: {
15
- touch: string;
16
- mouse: string;
17
- };
18
- };
19
- type EventTypeKey = keyof typeof eventTypes;
20
- declare function pressEvent(dom: HTMLElement, press: (e: SeatEvent, t?: Type, te?: TouchEvent) => any, shift?: Callback, release?: Callback, dom1?: Dom): void;
21
- declare function shiftEvent(t: Type, dom1: Dom, shift?: Callback, release?: Callback, is?: boolean): void;
22
- declare function foundEvent(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): void;
23
- declare function foundEventCallback(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): (event: Event) => void;
24
-
25
- export { type SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent };
@@ -1,25 +0,0 @@
1
- type SeatEvent = MouseEvent | Touch;
2
- type Type = 'touch' | 'mouse';
3
- type Callback = (e: SeatEvent, t: Type, te?: TouchEvent) => void;
4
- type Dom = HTMLElement | Document;
5
- declare const eventTypes: {
6
- press: {
7
- touch: string;
8
- mouse: string;
9
- };
10
- shift: {
11
- touch: string;
12
- mouse: string;
13
- };
14
- release: {
15
- touch: string;
16
- mouse: string;
17
- };
18
- };
19
- type EventTypeKey = keyof typeof eventTypes;
20
- declare function pressEvent(dom: HTMLElement, press: (e: SeatEvent, t?: Type, te?: TouchEvent) => any, shift?: Callback, release?: Callback, dom1?: Dom): void;
21
- declare function shiftEvent(t: Type, dom1: Dom, shift?: Callback, release?: Callback, is?: boolean): void;
22
- declare function foundEvent(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): void;
23
- declare function foundEventCallback(eventType: EventTypeKey, c: Callback, dom?: Dom, type?: Type): (event: Event) => void;
24
-
25
- export { type SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent };
@@ -1,2 +0,0 @@
1
- export { getLocus } from './getLocus.cjs';
2
- export { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent } from './getShiftEvent.cjs';
@@ -1,2 +0,0 @@
1
- export { getLocus } from './getLocus.js';
2
- export { SeatEvent, foundEvent, foundEventCallback, pressEvent, shiftEvent } from './getShiftEvent.js';
@@ -1,13 +0,0 @@
1
- type HtmlObj = {
2
- div: string;
3
- attr: {
4
- [key: string]: string | number | undefined;
5
- } | undefined;
6
- value: Array<HtmlObj | string>;
7
- };
8
- /**
9
- * 解析html字符串
10
- */
11
- declare function analysisHtml(str: string): (string | HtmlObj)[];
12
-
13
- export { analysisHtml };
@@ -1,13 +0,0 @@
1
- type HtmlObj = {
2
- div: string;
3
- attr: {
4
- [key: string]: string | number | undefined;
5
- } | undefined;
6
- value: Array<HtmlObj | string>;
7
- };
8
- /**
9
- * 解析html字符串
10
- */
11
- declare function analysisHtml(str: string): (string | HtmlObj)[];
12
-
13
- export { analysisHtml };
@@ -1,5 +0,0 @@
1
- declare function generateHtmlh(div: string, sx?: {
2
- [key: string]: any;
3
- }, v?: string | string[]): string;
4
-
5
- export { generateHtmlh };
@@ -1,5 +0,0 @@
1
- declare function generateHtmlh(div: string, sx?: {
2
- [key: string]: any;
3
- }, v?: string | string[]): string;
4
-
5
- export { generateHtmlh };
@@ -1,16 +0,0 @@
1
- interface VueFileParts {
2
- template: string;
3
- scripts: string[];
4
- styles: string[];
5
- customBlocks: {
6
- type: string;
7
- content: string;
8
- }[];
9
- }
10
- declare function getVueText(content: string): VueFileParts;
11
- declare function getVueTexts(content: string): {
12
- script: string;
13
- style: string;
14
- };
15
-
16
- export { getVueText, getVueTexts };
@@ -1,16 +0,0 @@
1
- interface VueFileParts {
2
- template: string;
3
- scripts: string[];
4
- styles: string[];
5
- customBlocks: {
6
- type: string;
7
- content: string;
8
- }[];
9
- }
10
- declare function getVueText(content: string): VueFileParts;
11
- declare function getVueTexts(content: string): {
12
- script: string;
13
- style: string;
14
- };
15
-
16
- export { getVueText, getVueTexts };
@@ -1,8 +0,0 @@
1
- /**
2
- * 格式html字符串
3
- * @param str
4
- * @returns
5
- */
6
- declare function htmlEscape(str: string): string;
7
-
8
- export { htmlEscape };
@@ -1,8 +0,0 @@
1
- /**
2
- * 格式html字符串
3
- * @param str
4
- * @returns
5
- */
6
- declare function htmlEscape(str: string): string;
7
-
8
- export { htmlEscape };
@@ -1,4 +0,0 @@
1
- export { analysisHtml } from './analysisHtml.cjs';
2
- export { generateHtmlh } from './generateHtml.cjs';
3
- export { getVueText, getVueTexts } from './getVueText.cjs';
4
- export { htmlEscape } from './htmlEscape.cjs';
@@ -1,4 +0,0 @@
1
- export { analysisHtml } from './analysisHtml.js';
2
- export { generateHtmlh } from './generateHtml.js';
3
- export { getVueText, getVueTexts } from './getVueText.js';
4
- export { htmlEscape } from './htmlEscape.js';
@@ -1,29 +0,0 @@
1
- import { getImportUrl } from './urls/getImportUrl.cjs';
2
- import { getImportUrlSuffix } from './urls/getImportUrlSuffix.cjs';
3
- import { getNewFileName } from './urls/getNewFileName.cjs';
4
- import { getReplaceCompleteUrl } from './urls/getReplaceCompleteUrl.cjs';
5
- import { getReplaceImportUrl } from './urls/getReplaceImportUrl.cjs';
6
- import { getReplaceUrl } from './urls/getReplaceUrl.cjs';
7
- import { getReplaceUrls } from './urls/getReplaceUrls.cjs';
8
- import { getSuffix } from './urls/getSuffix.cjs';
9
- import { getUrlCatalogue } from './urls/getUrlCatalogue.cjs';
10
- import { getUrlCatalogueLast } from './urls/getUrlCatalogueLast.cjs';
11
- import { UrlCatalogue, getUrlCatalogueObj } from './urls/getUrlCatalogueObj.cjs';
12
-
13
- declare const index_UrlCatalogue: typeof UrlCatalogue;
14
- declare const index_getImportUrl: typeof getImportUrl;
15
- declare const index_getImportUrlSuffix: typeof getImportUrlSuffix;
16
- declare const index_getNewFileName: typeof getNewFileName;
17
- declare const index_getReplaceCompleteUrl: typeof getReplaceCompleteUrl;
18
- declare const index_getReplaceImportUrl: typeof getReplaceImportUrl;
19
- declare const index_getReplaceUrl: typeof getReplaceUrl;
20
- declare const index_getReplaceUrls: typeof getReplaceUrls;
21
- declare const index_getSuffix: typeof getSuffix;
22
- declare const index_getUrlCatalogue: typeof getUrlCatalogue;
23
- declare const index_getUrlCatalogueLast: typeof getUrlCatalogueLast;
24
- declare const index_getUrlCatalogueObj: typeof getUrlCatalogueObj;
25
- declare namespace index {
26
- export { index_UrlCatalogue as UrlCatalogue, index_getImportUrl as getImportUrl, index_getImportUrlSuffix as getImportUrlSuffix, index_getNewFileName as getNewFileName, index_getReplaceCompleteUrl as getReplaceCompleteUrl, index_getReplaceImportUrl as getReplaceImportUrl, index_getReplaceUrl as getReplaceUrl, index_getReplaceUrls as getReplaceUrls, index_getSuffix as getSuffix, index_getUrlCatalogue as getUrlCatalogue, index_getUrlCatalogueLast as getUrlCatalogueLast, index_getUrlCatalogueObj as getUrlCatalogueObj };
27
- }
28
-
29
- export { index as i };