@obr-fe/utils 1.2.0 → 2.0.0

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 (419) hide show
  1. package/dist/array.d.mts +98 -3
  2. package/dist/{array-CiSUhZCW.d.mts → array.d.ts} +8 -9
  3. package/dist/array.js +1 -0
  4. package/dist/array.mjs +1 -1
  5. package/dist/base.d.mts +192 -3
  6. package/dist/{base-BXKvmcaf.d.cts → base.d.ts} +4 -5
  7. package/dist/base.js +1 -0
  8. package/dist/base.mjs +1 -1
  9. package/dist/chunk-3EVCK72A.mjs +1 -0
  10. package/dist/chunk-44EYU7QJ.mjs +1 -0
  11. package/dist/chunk-4JPCGRPU.mjs +1 -0
  12. package/dist/chunk-6DX7ZFGR.mjs +1 -0
  13. package/dist/chunk-7FGMUEZA.mjs +1 -0
  14. package/dist/chunk-7YMDSJIW.mjs +1 -0
  15. package/dist/chunk-A25LR755.mjs +1 -0
  16. package/dist/chunk-A5BXGBYT.mjs +1 -0
  17. package/dist/chunk-AMTPTGPU.mjs +1 -0
  18. package/dist/chunk-BEM6E7R7.mjs +1 -0
  19. package/dist/chunk-BPXO4V4X.mjs +1 -0
  20. package/dist/chunk-CTKIL4BL.mjs +1 -0
  21. package/dist/chunk-DDHFJKTT.mjs +1 -0
  22. package/dist/chunk-DKKF6DRJ.mjs +1 -0
  23. package/dist/chunk-DVMX6FDA.mjs +1 -0
  24. package/dist/chunk-E4SEMOGO.mjs +1 -0
  25. package/dist/chunk-EUDEMS67.mjs +1 -0
  26. package/dist/chunk-G6NAYP42.mjs +1 -0
  27. package/dist/chunk-GS4ARDQV.mjs +1 -0
  28. package/dist/chunk-HOXWKSQ2.mjs +1 -0
  29. package/dist/chunk-HZMHGGXU.mjs +1 -0
  30. package/dist/chunk-INFFTHYR.mjs +1 -0
  31. package/dist/chunk-IZHCWZIN.mjs +1 -0
  32. package/dist/chunk-KGXCJWE5.mjs +1 -0
  33. package/dist/chunk-LPLK3ZT5.mjs +1 -0
  34. package/dist/chunk-MQBXN7R5.mjs +1 -0
  35. package/dist/chunk-MUHFPVB3.mjs +1 -0
  36. package/dist/chunk-MUUIQW2M.mjs +1 -0
  37. package/dist/chunk-NX2HGAYK.mjs +1 -0
  38. package/dist/chunk-PE3DNHCL.mjs +1 -0
  39. package/dist/chunk-PK5CYIDE.mjs +1 -0
  40. package/dist/chunk-SAXMBV46.mjs +1 -0
  41. package/dist/chunk-TQ5GXPYB.mjs +1 -0
  42. package/dist/chunk-UVMLBW6A.mjs +1 -0
  43. package/dist/chunk-VYAKT4FB.mjs +1 -0
  44. package/dist/chunk-WN7L4HYY.mjs +1 -0
  45. package/dist/chunk-X7TUTCBW.mjs +1 -0
  46. package/dist/chunk-YA66RVVU.mjs +1 -0
  47. package/dist/clipboard.d.mts +3 -2
  48. package/dist/clipboard.d.ts +3 -0
  49. package/dist/clipboard.js +1 -0
  50. package/dist/clipboard.mjs +1 -1
  51. package/dist/dayjs.d.mts +29 -2
  52. package/dist/{dayjs-DgS65bx1.d.cts → dayjs.d.ts} +5 -6
  53. package/dist/dayjs.js +1 -0
  54. package/dist/dayjs.mjs +1 -1
  55. package/dist/dom/base.d.mts +24 -2
  56. package/dist/{base-Ca2FN16G.d.mts → dom/base.d.ts} +2 -3
  57. package/dist/dom/base.js +1 -0
  58. package/dist/dom/base.mjs +1 -1
  59. package/dist/dom/class.d.mts +26 -2
  60. package/dist/{class-Bp70Yi1y.d.cts → dom/class.d.ts} +2 -3
  61. package/dist/dom/class.js +1 -0
  62. package/dist/dom/class.mjs +1 -1
  63. package/dist/dom/contains.d.mts +10 -2
  64. package/dist/{contains-Bj-oQ7KI.d.mts → dom/contains.d.ts} +2 -3
  65. package/dist/dom/contains.js +1 -0
  66. package/dist/dom/contains.mjs +1 -1
  67. package/dist/dom/css.d.mts +22 -2
  68. package/dist/{css-5xR1zP0f.d.cts → dom/css.d.ts} +10 -11
  69. package/dist/dom/css.js +1 -0
  70. package/dist/dom/css.mjs +1 -1
  71. package/dist/dom/dynamic-css.d.mts +20 -2
  72. package/dist/{dynamic-css-CIw8ZtwR.d.cts → dom/dynamic-css.d.ts} +8 -9
  73. package/dist/dom/dynamic-css.js +1 -0
  74. package/dist/dom/dynamic-css.mjs +1 -1
  75. package/dist/dom/find-dom-node.d.mts +3 -2
  76. package/dist/dom/find-dom-node.d.ts +3 -0
  77. package/dist/dom/find-dom-node.js +1 -0
  78. package/dist/dom/find-dom-node.mjs +1 -1
  79. package/dist/dom/focus.d.mts +10 -2
  80. package/dist/{focus-BBcVAsFx.d.cts → dom/focus.d.ts} +2 -3
  81. package/dist/dom/focus.js +1 -0
  82. package/dist/dom/focus.mjs +1 -1
  83. package/dist/dom/iframe.d.mts +57 -2
  84. package/dist/{iframe-CBeiHcmx.d.mts → dom/iframe.d.ts} +15 -16
  85. package/dist/dom/iframe.js +1 -0
  86. package/dist/dom/iframe.mjs +1 -1
  87. package/dist/dom/index.d.mts +17 -18
  88. package/dist/dom/index.d.ts +17 -0
  89. package/dist/dom/index.js +1 -0
  90. package/dist/dom/index.mjs +1 -1
  91. package/dist/dom/is-visible.d.mts +3 -2
  92. package/dist/dom/is-visible.d.ts +3 -0
  93. package/dist/dom/is-visible.js +1 -0
  94. package/dist/dom/is-visible.mjs +1 -1
  95. package/dist/dom/lib/can-use-dom.d.mts +2 -3
  96. package/dist/dom/lib/can-use-dom.d.ts +3 -0
  97. package/dist/dom/lib/can-use-dom.js +1 -0
  98. package/dist/dom/lib/can-use-dom.mjs +1 -1
  99. package/dist/dom/scrollbar.d.mts +8 -2
  100. package/dist/{scrollbar-B0PNF6i2.d.mts → dom/scrollbar.d.ts} +2 -3
  101. package/dist/dom/scrollbar.js +1 -0
  102. package/dist/dom/scrollbar.mjs +1 -1
  103. package/dist/dom/storage.d.mts +20 -3
  104. package/dist/{storage-DicI9wsP.d.cts → dom/storage.d.ts} +4 -5
  105. package/dist/dom/storage.js +1 -0
  106. package/dist/dom/storage.mjs +1 -1
  107. package/dist/dom/style-checker.d.mts +4 -2
  108. package/dist/{style-checker-CpyAZJew.d.cts → dom/style-checker.d.ts} +2 -3
  109. package/dist/dom/style-checker.js +1 -0
  110. package/dist/dom/style-checker.mjs +1 -1
  111. package/dist/dom/style-names.d.mts +3 -2
  112. package/dist/{style-names-ClFu2pk1.d.cts → dom/style-names.d.ts} +2 -3
  113. package/dist/dom/style-names.js +1 -0
  114. package/dist/dom/style-names.mjs +1 -1
  115. package/dist/dom/support.d.mts +8 -2
  116. package/dist/dom/support.d.ts +8 -0
  117. package/dist/dom/support.js +1 -0
  118. package/dist/dom/support.mjs +1 -1
  119. package/dist/dom/video.d.mts +9 -2
  120. package/dist/{video-Bp6NaeX6.d.cts → dom/video.d.ts} +2 -3
  121. package/dist/dom/video.js +1 -0
  122. package/dist/dom/video.mjs +1 -1
  123. package/dist/encrypt.d.mts +28 -2
  124. package/dist/{encrypt-BFDBlSX_.d.cts → encrypt.d.ts} +2 -3
  125. package/dist/encrypt.js +1 -0
  126. package/dist/encrypt.mjs +1 -1
  127. package/dist/file.d.mts +35 -2
  128. package/dist/{file-CjjpuB5u.d.cts → file.d.ts} +5 -6
  129. package/dist/file.js +1 -0
  130. package/dist/file.mjs +1 -1
  131. package/dist/index.d.mts +44 -44
  132. package/dist/index.d.ts +44 -0
  133. package/dist/index.js +1 -0
  134. package/dist/index.mjs +1 -1
  135. package/dist/lodash.d.mts +9 -2
  136. package/dist/lodash.d.ts +9 -0
  137. package/dist/lodash.js +1 -0
  138. package/dist/lodash.mjs +1 -1
  139. package/dist/object.d.mts +86 -3
  140. package/dist/{object-CqyPehTh.d.cts → object.d.ts} +4 -5
  141. package/dist/object.js +1 -0
  142. package/dist/object.mjs +1 -1
  143. package/dist/other.d.mts +49 -3
  144. package/dist/{other-BzR4DqG0.d.cts → other.d.ts} +4 -5
  145. package/dist/other.js +1 -0
  146. package/dist/other.mjs +1 -1
  147. package/dist/parse.d.mts +21 -3
  148. package/dist/{parse-DQMRWCdz.d.mts → parse.d.ts} +7 -8
  149. package/dist/parse.js +1 -0
  150. package/dist/parse.mjs +1 -1
  151. package/dist/pinyin.d.mts +18 -2
  152. package/dist/{pinyin-C2BqrFMq.d.mts → pinyin.d.ts} +3 -5
  153. package/dist/pinyin.js +1 -0
  154. package/dist/pinyin.mjs +1 -1
  155. package/dist/request/constant.d.mts +4 -4
  156. package/dist/request/{constant.d.cts → constant.d.ts} +4 -4
  157. package/dist/request/constant.js +1 -0
  158. package/dist/request/constant.mjs +1 -1
  159. package/dist/request/handler.d.mts +10 -3
  160. package/dist/request/handler.d.ts +10 -0
  161. package/dist/request/handler.js +1 -0
  162. package/dist/request/handler.mjs +1 -1
  163. package/dist/request/index.d.mts +4 -6
  164. package/dist/request/index.d.ts +4 -0
  165. package/dist/request/index.js +1 -0
  166. package/dist/request/index.mjs +1 -1
  167. package/dist/request/request.d.mts +99 -3
  168. package/dist/request/request.d.ts +99 -0
  169. package/dist/request/request.js +1 -0
  170. package/dist/request/request.mjs +1 -1
  171. package/dist/request/utils/cancel.d.mts +4 -4
  172. package/dist/request/utils/{cancel.d.cts → cancel.d.ts} +4 -4
  173. package/dist/request/utils/cancel.js +1 -0
  174. package/dist/request/utils/cancel.mjs +1 -1
  175. package/dist/request/utils/file.d.mts +4 -4
  176. package/dist/request/utils/file.d.ts +6 -0
  177. package/dist/request/utils/file.js +1 -0
  178. package/dist/request/utils/file.mjs +1 -1
  179. package/dist/request/utils/format.d.mts +4 -4
  180. package/dist/request/utils/{format.d.cts → format.d.ts} +4 -4
  181. package/dist/request/utils/format.js +1 -0
  182. package/dist/request/utils/format.mjs +1 -1
  183. package/dist/request/utils/params.d.mts +4 -4
  184. package/dist/request/utils/params.d.ts +6 -0
  185. package/dist/request/utils/params.js +1 -0
  186. package/dist/request/utils/params.mjs +1 -1
  187. package/dist/safe-next-tick.d.mts +9 -2
  188. package/dist/{safe-next-tick-DlJsO1Ha.d.mts → safe-next-tick.d.ts} +4 -5
  189. package/dist/safe-next-tick.js +1 -0
  190. package/dist/safe-next-tick.mjs +1 -1
  191. package/dist/types.d.mts +207 -2
  192. package/dist/types.d.ts +207 -0
  193. package/dist/types.js +1 -0
  194. package/dist/types.mjs +1 -1
  195. package/dist/vue/hooks/clipboard.d.mts +8 -2
  196. package/dist/vue/hooks/clipboard.d.ts +8 -0
  197. package/dist/vue/hooks/clipboard.js +1 -0
  198. package/dist/vue/hooks/clipboard.mjs +1 -1
  199. package/dist/vue/index.d.mts +3 -4
  200. package/dist/vue/index.d.ts +3 -0
  201. package/dist/vue/index.js +1 -0
  202. package/dist/vue/index.mjs +1 -1
  203. package/dist/vue/type-util.d.mts +47 -2
  204. package/dist/{type-util-BdSpgYN3.d.mts → vue/type-util.d.ts} +21 -22
  205. package/dist/vue/type-util.js +1 -0
  206. package/dist/vue/type-util.mjs +1 -1
  207. package/package.json +4 -4
  208. package/dist/array-CEhD-Z_e.mjs +0 -1
  209. package/dist/array-okkZATKz.d.cts +0 -99
  210. package/dist/array-ri-t3Wsz.cjs +0 -1
  211. package/dist/array.cjs +0 -1
  212. package/dist/array.d.cts +0 -3
  213. package/dist/base-854WVUaj.mjs +0 -1
  214. package/dist/base-BSg8gJZf.mjs +0 -1
  215. package/dist/base-DSfexc9G.d.cts +0 -25
  216. package/dist/base-DUxrUTOr.cjs +0 -1
  217. package/dist/base-Dl59EolR.d.mts +0 -193
  218. package/dist/base-DmSU_ydZ.cjs +0 -1
  219. package/dist/base.cjs +0 -1
  220. package/dist/base.d.cts +0 -3
  221. package/dist/can-use-dom-DiyvIP5G.mjs +0 -1
  222. package/dist/can-use-dom-DvmMdeGa.cjs +0 -1
  223. package/dist/cancel-BV5B58Lw.mjs +0 -1
  224. package/dist/cancel-Do0w5I5K.cjs +0 -1
  225. package/dist/chunk-BcXMmzxH.cjs +0 -1
  226. package/dist/chunk-Dbq9I6zD.mjs +0 -1
  227. package/dist/class-C29-Mh-o.mjs +0 -1
  228. package/dist/class-D5duI9ps.d.mts +0 -27
  229. package/dist/class-D8a8qnWA.cjs +0 -1
  230. package/dist/clipboard-BN1iiQLu.d.mts +0 -4
  231. package/dist/clipboard-C8ZiJE_h.d.cts +0 -9
  232. package/dist/clipboard-CJ-9sRbH.d.mts +0 -9
  233. package/dist/clipboard-CWQVWiTk.cjs +0 -1
  234. package/dist/clipboard-Ci0l5Dtt.d.cts +0 -4
  235. package/dist/clipboard-CjgXtqbg.mjs +0 -1
  236. package/dist/clipboard-DqGhq6A4.mjs +0 -1
  237. package/dist/clipboard-ZMrs6wzK.cjs +0 -1
  238. package/dist/clipboard.cjs +0 -1
  239. package/dist/clipboard.d.cts +0 -2
  240. package/dist/constant-CskvZDUK.cjs +0 -1
  241. package/dist/constant-Dxt8HuVn.mjs +0 -1
  242. package/dist/contains-BpG9RIaT.mjs +0 -1
  243. package/dist/contains-CYQgjY4K.cjs +0 -1
  244. package/dist/contains-D3q8gHUu.d.cts +0 -11
  245. package/dist/css-DIpTZrC7.mjs +0 -1
  246. package/dist/css-DkmknM-7.d.mts +0 -23
  247. package/dist/css-WYllKaVv.cjs +0 -1
  248. package/dist/dayjs-00xX6Mts.d.mts +0 -31
  249. package/dist/dayjs-BBOQ72ow.mjs +0 -1
  250. package/dist/dayjs-Bvzj_rlD.cjs +0 -1
  251. package/dist/dayjs.cjs +0 -1
  252. package/dist/dayjs.d.cts +0 -2
  253. package/dist/dom/base.cjs +0 -1
  254. package/dist/dom/base.d.cts +0 -2
  255. package/dist/dom/class.cjs +0 -1
  256. package/dist/dom/class.d.cts +0 -2
  257. package/dist/dom/contains.cjs +0 -1
  258. package/dist/dom/contains.d.cts +0 -2
  259. package/dist/dom/css.cjs +0 -1
  260. package/dist/dom/css.d.cts +0 -2
  261. package/dist/dom/dynamic-css.cjs +0 -1
  262. package/dist/dom/dynamic-css.d.cts +0 -2
  263. package/dist/dom/find-dom-node.cjs +0 -1
  264. package/dist/dom/find-dom-node.d.cts +0 -2
  265. package/dist/dom/focus.cjs +0 -1
  266. package/dist/dom/focus.d.cts +0 -2
  267. package/dist/dom/iframe.cjs +0 -1
  268. package/dist/dom/iframe.d.cts +0 -2
  269. package/dist/dom/index.cjs +0 -1
  270. package/dist/dom/index.d.cts +0 -18
  271. package/dist/dom/is-visible.cjs +0 -1
  272. package/dist/dom/is-visible.d.cts +0 -2
  273. package/dist/dom/lib/can-use-dom.cjs +0 -1
  274. package/dist/dom/lib/can-use-dom.d.cts +0 -3
  275. package/dist/dom/scrollbar.cjs +0 -1
  276. package/dist/dom/scrollbar.d.cts +0 -2
  277. package/dist/dom/storage.cjs +0 -1
  278. package/dist/dom/storage.d.cts +0 -3
  279. package/dist/dom/style-checker.cjs +0 -1
  280. package/dist/dom/style-checker.d.cts +0 -2
  281. package/dist/dom/style-names.cjs +0 -1
  282. package/dist/dom/style-names.d.cts +0 -2
  283. package/dist/dom/support.cjs +0 -1
  284. package/dist/dom/support.d.cts +0 -2
  285. package/dist/dom/video.cjs +0 -1
  286. package/dist/dom/video.d.cts +0 -2
  287. package/dist/dom-D2QfuVth.mjs +0 -1
  288. package/dist/dynamic-css-CD9eHWzL.d.mts +0 -21
  289. package/dist/dynamic-css-CP1iFszw.mjs +0 -1
  290. package/dist/dynamic-css-iSnm5CN6.cjs +0 -1
  291. package/dist/encrypt-CHxdyuoC.d.mts +0 -29
  292. package/dist/encrypt-D6oTfiTY.cjs +0 -1
  293. package/dist/encrypt-Z5CU2r_1.mjs +0 -1
  294. package/dist/encrypt.cjs +0 -1
  295. package/dist/encrypt.d.cts +0 -2
  296. package/dist/file-B9oorXhT.cjs +0 -1
  297. package/dist/file-D4oBhObv.d.mts +0 -36
  298. package/dist/file-Dwobl-pF.mjs +0 -1
  299. package/dist/file-TjtumYrh.mjs +0 -1
  300. package/dist/file-rmcv99h0.cjs +0 -1
  301. package/dist/file.cjs +0 -1
  302. package/dist/file.d.cts +0 -2
  303. package/dist/find-dom-node-BYO9We8P.d.mts +0 -4
  304. package/dist/find-dom-node-BkrYW2pm.d.cts +0 -4
  305. package/dist/find-dom-node-gbroqN2N.mjs +0 -1
  306. package/dist/find-dom-node-lY7vePVL.cjs +0 -1
  307. package/dist/focus-ByNB07tt.d.mts +0 -11
  308. package/dist/focus-DtSCSQEr.cjs +0 -1
  309. package/dist/focus-REYXIBdQ.mjs +0 -1
  310. package/dist/format-3CsgkBWg.mjs +0 -1
  311. package/dist/format-CezZBld9.cjs +0 -1
  312. package/dist/handler-C40H2JG4.cjs +0 -1
  313. package/dist/handler-Dk1QWSgF.d.cts +0 -10
  314. package/dist/handler-N6Akxkpa.mjs +0 -1
  315. package/dist/handler-bsPUG7U9.d.mts +0 -10
  316. package/dist/iframe-ByOdqFYr.mjs +0 -1
  317. package/dist/iframe-CR0bl22C.cjs +0 -1
  318. package/dist/iframe-QhpkIola.d.cts +0 -58
  319. package/dist/index-6bSwZ6-V.d.cts +0 -1
  320. package/dist/index-BYjO2-Dk.d.mts +0 -3
  321. package/dist/index-CLTQPxoD.d.mts +0 -1
  322. package/dist/index-CqciuydZ.d.cts +0 -7
  323. package/dist/index-Ctvuv0vV.d.cts +0 -1
  324. package/dist/index-D-9tW2r5.d.mts +0 -1
  325. package/dist/index.cjs +0 -1
  326. package/dist/index.d.cts +0 -43
  327. package/dist/is-visible-BXbqt6I2.mjs +0 -1
  328. package/dist/is-visible-BpFCb4uJ.d.mts +0 -4
  329. package/dist/is-visible-DT2jLmnp.d.cts +0 -4
  330. package/dist/is-visible-laJngqtK.cjs +0 -1
  331. package/dist/lodash-BrrZKPAY.d.cts +0 -10
  332. package/dist/lodash-DAdPs0O9.d.mts +0 -10
  333. package/dist/lodash-iHVEJs1z.mjs +0 -1
  334. package/dist/lodash-kixEH9o9.cjs +0 -1
  335. package/dist/lodash.cjs +0 -1
  336. package/dist/lodash.d.cts +0 -2
  337. package/dist/object-C6qVmoZY.cjs +0 -1
  338. package/dist/object-j-lK643f.mjs +0 -1
  339. package/dist/object-l_DvbWqN.d.mts +0 -87
  340. package/dist/object.cjs +0 -1
  341. package/dist/object.d.cts +0 -3
  342. package/dist/other-B2ug3Xof.mjs +0 -1
  343. package/dist/other-H13CGzY5.d.mts +0 -50
  344. package/dist/other-c9ZDQ-tY.cjs +0 -1
  345. package/dist/other.cjs +0 -1
  346. package/dist/other.d.cts +0 -3
  347. package/dist/params-CnZhAsve.cjs +0 -1
  348. package/dist/params-CpjttIDa.mjs +0 -1
  349. package/dist/parse-BpErok05.cjs +0 -1
  350. package/dist/parse-C1eaIjot.mjs +0 -1
  351. package/dist/parse-vp0jh8-x.d.cts +0 -22
  352. package/dist/parse.cjs +0 -1
  353. package/dist/parse.d.cts +0 -3
  354. package/dist/pinyin-BE6Ew65z.cjs +0 -1
  355. package/dist/pinyin-D11MW4u2.mjs +0 -1
  356. package/dist/pinyin-Di92101W.d.cts +0 -20
  357. package/dist/pinyin.cjs +0 -1
  358. package/dist/pinyin.d.cts +0 -2
  359. package/dist/request/constant.cjs +0 -1
  360. package/dist/request/handler.cjs +0 -1
  361. package/dist/request/handler.d.cts +0 -3
  362. package/dist/request/index.cjs +0 -1
  363. package/dist/request/index.d.cts +0 -6
  364. package/dist/request/request.cjs +0 -1
  365. package/dist/request/request.d.cts +0 -3
  366. package/dist/request/utils/cancel.cjs +0 -1
  367. package/dist/request/utils/file.cjs +0 -1
  368. package/dist/request/utils/file.d.cts +0 -6
  369. package/dist/request/utils/format.cjs +0 -1
  370. package/dist/request/utils/params.cjs +0 -1
  371. package/dist/request/utils/params.d.cts +0 -6
  372. package/dist/request-BG5UIh9R.mjs +0 -1
  373. package/dist/request-C8gChBjl.d.cts +0 -99
  374. package/dist/request-Cbv8Ih3e.cjs +0 -1
  375. package/dist/request-CcQHJNao.cjs +0 -1
  376. package/dist/request-CmsAe99W.mjs +0 -1
  377. package/dist/request-DGUcKxsQ.d.mts +0 -99
  378. package/dist/safe-next-tick-1ezZPIPs.d.cts +0 -10
  379. package/dist/safe-next-tick-Cc30ZlUX.mjs +0 -1
  380. package/dist/safe-next-tick-DphyaFY6.cjs +0 -1
  381. package/dist/safe-next-tick.cjs +0 -1
  382. package/dist/safe-next-tick.d.cts +0 -2
  383. package/dist/scrollbar-07jqhpVk.d.cts +0 -9
  384. package/dist/scrollbar-2zQwgB3N.cjs +0 -1
  385. package/dist/scrollbar-BsVSwcz1.mjs +0 -1
  386. package/dist/storage-CVE8yo6N.mjs +0 -1
  387. package/dist/storage-ClTxbIcP.cjs +0 -1
  388. package/dist/storage-HTBNfA8Q.d.mts +0 -21
  389. package/dist/style-checker-066o7h7_.mjs +0 -1
  390. package/dist/style-checker-B5wzcdHi.d.mts +0 -5
  391. package/dist/style-checker-DAxS0NyJ.cjs +0 -1
  392. package/dist/style-names-CYvxRARD.cjs +0 -1
  393. package/dist/style-names-DDdz6-7S.d.mts +0 -4
  394. package/dist/style-names-cEIIM3cL.mjs +0 -1
  395. package/dist/support-BKRoxgNc.d.mts +0 -9
  396. package/dist/support-BZYJpIOE.cjs +0 -1
  397. package/dist/support-jAYY4GwL.d.cts +0 -9
  398. package/dist/support-wu9hh5gZ.mjs +0 -1
  399. package/dist/type-util-BRGMhQFp.d.cts +0 -48
  400. package/dist/type-util-HyvLYA2w.cjs +0 -1
  401. package/dist/type-util-Qle7ht7X.mjs +0 -1
  402. package/dist/types-BEdiy6mb.d.mts +0 -208
  403. package/dist/types-Bs46AtMe.mjs +0 -1
  404. package/dist/types-DTtPjrm8.d.cts +0 -208
  405. package/dist/types.cjs +0 -1
  406. package/dist/types.d.cts +0 -2
  407. package/dist/video-BDLauzJm.cjs +0 -1
  408. package/dist/video-C_sYI0Ht.d.mts +0 -10
  409. package/dist/video-CtkByFxt.mjs +0 -1
  410. package/dist/vue/hooks/clipboard.cjs +0 -1
  411. package/dist/vue/hooks/clipboard.d.cts +0 -2
  412. package/dist/vue/index.cjs +0 -1
  413. package/dist/vue/index.d.cts +0 -4
  414. package/dist/vue/type-util.cjs +0 -1
  415. package/dist/vue/type-util.d.cts +0 -2
  416. package/dist/vue-Q8n_JN-R.mjs +0 -1
  417. /package/dist/{dom-DzrnEGri.cjs → chunk-G27KRYT2.mjs} +0 -0
  418. /package/dist/{types-DAFnYo8a.cjs → chunk-PM3H3ISM.mjs} +0 -0
  419. /package/dist/{vue-CGBzFhF4.cjs → chunk-WBQAMGXK.mjs} +0 -0
@@ -1,21 +0,0 @@
1
- import { u as ObjectDataType } from "./types-BEdiy6mb.mjs";
2
-
3
- //#region src/dom/storage.d.ts
4
-
5
- /**
6
- * @description: 获取本地存储(LocalStorage)
7
- * @param {string[]} keys
8
- * @return {*}
9
- * @autor: 刘 相卿
10
- */
11
- declare function getLocalStorage(keys?: string[]): ObjectDataType | null;
12
- /**
13
- * @description: 获取本地存储(SessionStorage)
14
- * @param {string[]} keys
15
- * @return {*}
16
- * @autor: 刘 相卿
17
- */
18
- declare function getSessionStorage(keys?: string[]): ObjectDataType | null;
19
- declare function getCookie(keys?: string[]): Record<string, string> | null;
20
- //#endregion
21
- export { getLocalStorage as n, getSessionStorage as r, getCookie as t };
@@ -1 +0,0 @@
1
- import{t as e}from"./can-use-dom-DiyvIP5G.mjs";function t(t){if(e()&&window.document.documentElement){let e=Array.isArray(t)?t:[t],{documentElement:n}=window.document;return e.some(e=>e in n.style)}return!1}function n(e,n){if(!t(e))return!1;let r=document.createElement(`div`),i=r.style[e];return r.style[e]=n,r.style[e]!==i}function r(e,r){return!Array.isArray(e)&&r!==void 0?n(e,r):t(e)}export{r as t};
@@ -1,5 +0,0 @@
1
- //#region src/dom/style-checker.d.ts
2
- declare function isStyleSupport(styleName: string | string[]): boolean;
3
- declare function isStyleSupport(styleName: string, styleValue: any): boolean;
4
- //#endregion
5
- export { isStyleSupport as t };
@@ -1 +0,0 @@
1
- const e=require(`./can-use-dom-DvmMdeGa.cjs`);function t(t){if(e.t()&&window.document.documentElement){let e=Array.isArray(t)?t:[t],{documentElement:n}=window.document;return e.some(e=>e in n.style)}return!1}function n(e,n){if(!t(e))return!1;let r=document.createElement(`div`),i=r.style[e];return r.style[e]=n,r.style[e]!==i}function r(e,r){return!Array.isArray(e)&&r!==void 0?n(e,r):t(e)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -1 +0,0 @@
1
- const e=require(`./base-DUxrUTOr.cjs`);function t(e){let t={},n=e.split(`;`);for(let e of n){if(!e)continue;let n=e.split(`:`);n[0]&&(t[n[0]]=n[1])}return t}function n(...r){if(r.length<1)return;let i={};for(let a of r)if(a)if(e.y(a))Object.assign(i,t(a));else if(e.i(a)){let e=n(...a);e&&Object.assign(i,e)}else e._(a)&&Object.assign(i,a);return i}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,4 +0,0 @@
1
- //#region src/dom/style-names.d.ts
2
- declare function styleNames(...names: any[]): undefined | Record<string, any>;
3
- //#endregion
4
- export { styleNames as t };
@@ -1 +0,0 @@
1
- import{_ as e,i as t,y as n}from"./base-854WVUaj.mjs";function r(e){let t={},n=e.split(`;`);for(let e of n){if(!e)continue;let n=e.split(`:`);n[0]&&(t[n[0]]=n[1])}return t}function i(...a){if(a.length<1)return;let o={};for(let s of a)if(s)if(n(s))Object.assign(o,r(s));else if(t(s)){let e=i(...s);e&&Object.assign(o,e)}else e(s)&&Object.assign(o,s);return o}export{i as t};
@@ -1,9 +0,0 @@
1
- //#region src/dom/support.d.ts
2
- declare const animation: false | {
3
- end: any;
4
- };
5
- declare const transition: false | {
6
- end: any;
7
- };
8
- //#endregion
9
- export { transition as n, animation as t };
@@ -1 +0,0 @@
1
- const e=require(`./can-use-dom-DvmMdeGa.cjs`),t={WebkitAnimation:`webkitAnimationEnd`,OAnimation:`oAnimationEnd`,animation:`animationend`},n={WebkitTransition:`webkitTransitionEnd`,OTransition:`oTransitionEnd`,transition:`transitionend`};function r(e){let t=document.createElement(`div`);for(let n in e)if(e.hasOwnProperty(n)&&t.style[n]!==void 0)return{end:e[n]};return!1}const i=e.t()&&r(t),a=e.t()&&r(n);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
@@ -1,9 +0,0 @@
1
- //#region src/dom/support.d.ts
2
- declare const animation: false | {
3
- end: any;
4
- };
5
- declare const transition: false | {
6
- end: any;
7
- };
8
- //#endregion
9
- export { transition as n, animation as t };
@@ -1 +0,0 @@
1
- import{t as e}from"./can-use-dom-DiyvIP5G.mjs";const t={WebkitAnimation:`webkitAnimationEnd`,OAnimation:`oAnimationEnd`,animation:`animationend`},n={WebkitTransition:`webkitTransitionEnd`,OTransition:`oTransitionEnd`,transition:`transitionend`};function r(e){let t=document.createElement(`div`);for(let n in e)if(e.hasOwnProperty(n)&&t.style[n]!==void 0)return{end:e[n]};return!1}const i=e()&&r(t),a=e()&&r(n);export{a as n,i as t};
@@ -1,48 +0,0 @@
1
- import { VNodeChild } from "vue";
2
-
3
- //#region src/vue/type-util.d.ts
4
- type vueNode = VNodeChild | string | number | boolean | null | undefined;
5
- type VueKey = string | number;
6
- declare function stringType<T extends string = string>(defaultVal?: T): {
7
- type: PropType<T>;
8
- default: T;
9
- };
10
- declare function numberType<T extends number = number>(defaultVal?: T): {
11
- type: PropType<T>;
12
- default: T;
13
- };
14
- declare function booleanType<T extends boolean = boolean>(defaultVal?: T): {
15
- type: PropType<T>;
16
- default: T;
17
- };
18
- declare function arrayType<T extends any[] = any[]>(defaultVal?: T): {
19
- type: PropType<T>;
20
- default: T;
21
- };
22
- declare function objectType<T extends Record<string, any> = Record<string, any>>(defaultVal?: T): {
23
- type: PropType<T>;
24
- default: T;
25
- };
26
- declare function functionType<T = () => any>(defaultVal?: T): {
27
- type: PropType<T>;
28
- default: T;
29
- };
30
- declare function anyType<T = any>(defaultVal?: T, required?: boolean): {
31
- default: T;
32
- type: PropType<T>;
33
- };
34
- declare function vNodeType<T = vueNode>(): {
35
- type: PropType<T>;
36
- };
37
- declare function someType<T>(types?: any[], defaultVal?: T): {
38
- type: PropType<T>;
39
- default: T;
40
- };
41
- declare function eventType<T>(): {
42
- type: PropType<T>;
43
- };
44
- declare function runEvent<T>(event: T, ...args: any[]): any;
45
- declare function runAsyncEvent<T>(event: T, ...args: any[]): Promise<any>;
46
- declare function getEventValue<T = any>(result: any, index?: number): T;
47
- //#endregion
48
- export { eventType as a, numberType as c, runEvent as d, someType as f, vueNode as h, booleanType as i, objectType as l, vNodeType as m, anyType as n, functionType as o, stringType as p, arrayType as r, getEventValue as s, VueKey as t, runAsyncEvent as u };
@@ -1 +0,0 @@
1
- function e(e){return{type:String,default:e}}function t(e){return{type:Number,default:e}}function n(e){return{type:Boolean,default:e}}function r(e){return{type:Array,default:e}}function i(e){return{type:Object,default:e}}function a(e){return{type:Function,default:e}}function o(e,t){return{validator:()=>!0,default:e}}function s(){return{validator:()=>!0}}function c(e,t){return e?{type:e,default:t}:o(t)}function l(){return{type:[Function,Array]}}function u(e,...t){if(typeof e==`function`)return e(...t);if(Array.isArray(e))return e.map(e=>e(...t))}async function d(e,...t){if(typeof e==`function`)return await e(...t);if(Array.isArray(e))return await Promise.all(e.map(e=>e(...t)))}function f(e,t=0){return Array.isArray(e)?e[t]:e}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return u}});
@@ -1 +0,0 @@
1
- function e(e){return{type:String,default:e}}function t(e){return{type:Number,default:e}}function n(e){return{type:Boolean,default:e}}function r(e){return{type:Array,default:e}}function i(e){return{type:Object,default:e}}function a(e){return{type:Function,default:e}}function o(e,t){return{validator:()=>!0,default:e}}function s(){return{validator:()=>!0}}function c(e,t){return e?{type:e,default:t}:o(t)}function l(){return{type:[Function,Array]}}function u(e,...t){if(typeof e==`function`)return e(...t);if(Array.isArray(e))return e.map(e=>e(...t))}async function d(e,...t){if(typeof e==`function`)return await e(...t);if(Array.isArray(e))return await Promise.all(e.map(e=>e(...t)))}function f(e,t=0){return Array.isArray(e)?e[t]:e}export{a,i as c,c as d,e as f,l as i,d as l,r as n,f as o,s as p,n as r,t as s,o as t,u};
@@ -1,208 +0,0 @@
1
- import { AxiosError, AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosStatic, CanceledError, CreateAxiosDefaults, Method } from "axios";
2
-
3
- //#region src/types.d.ts
4
- type ObjectDataType<T = any, D extends string = string> = Record<D, T>;
5
- /**
6
- * @description: 树形结构数据类型
7
- * @autor: 刘 相卿
8
- */
9
- interface TreeItemType extends ObjectDataType {
10
- label?: string;
11
- children?: TreeItemType[];
12
- }
13
- /**
14
- * @description: 数据类型
15
- * @autor: 刘 相卿
16
- */
17
- type DataType = 'set' | 'map' | 'function' | 'object' | 'array' | 'undefined' | 'null' | 'number' | 'symbol' | 'string' | 'boolean' | 'regexp' | 'date' | 'bigint' | 'blob' | 'formdata';
18
- interface MappingType {
19
- [x: string | number]: any;
20
- default: any;
21
- }
22
- interface BaseOptionType<T = ObjectDataType> extends ObjectDataType {
23
- label: string;
24
- value: any;
25
- disabled?: boolean;
26
- json?: T;
27
- children?: BaseOptionType<T>[];
28
- }
29
- interface OptionResAlias {
30
- label: string;
31
- value: string;
32
- disabled: string;
33
- children: string;
34
- json: string;
35
- }
36
- interface CascaderRequestOption {
37
- url: string;
38
- method?: Method;
39
- params?: RequestParamConfig[];
40
- alias?: Partial<Omit<OptionResAlias, 'json'>>;
41
- }
42
- interface CascaderOptionType<T extends ObjectDataType = ObjectDataType> {
43
- label: string;
44
- value: any;
45
- disabled?: boolean;
46
- json?: T;
47
- children?: CascaderOptionType<T>[];
48
- }
49
- /**
50
- * @description: Token配置类型
51
- * @param {string} key token的键名称
52
- * @param {() => string} get 获取token的方法
53
- * @autor: 刘 相卿
54
- */
55
- interface TokenConfig {
56
- key: string;
57
- get: () => string;
58
- }
59
- /**
60
- * @description: header配置
61
- * @param {boolean} `X-Never-Cancel` 是否永远不取消该请求
62
- * @param {'path' | 'method' | 'params'} `X-Cancel-Rule` 取消规则(path: 同一路径; method: 同一路径+请求方法; params: 同一路径+请求方法+参数)
63
- * @param {boolean} `X-Hide-Message` 是否隐藏请求消息提示
64
- * @autor: 刘 相卿
65
- */
66
- interface HeadersType {
67
- 'X-Never-Cancel'?: boolean;
68
- 'X-Cancel-Rule'?: 'path' | 'method' | 'params';
69
- 'X-Hide-Message'?: boolean;
70
- }
71
- interface ObrAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
72
- headers?: AxiosRequestConfig['headers'] & HeadersType;
73
- }
74
- interface ObrAxiosResponse<T = any> extends Omit<AxiosResponse<T>, 'data'> {
75
- data: ResDataType<T>;
76
- }
77
- interface ObrAxiosStatic extends Omit<AxiosStatic, 'create'> {
78
- create: (config?: CreateAxiosDefaults) => ObrAxiosInstance;
79
- }
80
- interface ObrAxiosInstance extends Pick<AxiosInstance, 'defaults'> {
81
- interceptors: {
82
- request: AxiosInterceptorManager<ObrAxiosRequestConfig>;
83
- response: AxiosInterceptorManager<ObrAxiosResponse<ResDataType>>;
84
- };
85
- <T = any, D = any>(config: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
86
- <T = any, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
87
- getUri: (config?: ObrAxiosRequestConfig) => string;
88
- request: <T = any>(config: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
89
- get: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
90
- delete: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
91
- head: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
92
- options: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
93
- post: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
94
- put: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
95
- postForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
96
- putForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
97
- patch: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
98
- patchForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
99
- }
100
- /**
101
- * @description: 响应字段别名
102
- * @param {string} code 响应code别名
103
- * @param {string} data 响应数据别名
104
- * @param {string} msg 响应消息提示别名
105
- * @autor: 刘 相卿
106
- */
107
- interface ResAlias {
108
- code: string;
109
- data: string;
110
- msg: string;
111
- }
112
- interface PageAlias {
113
- records: string;
114
- total: string;
115
- pageSize: string;
116
- pageNo: string;
117
- }
118
- /**
119
- * @description: 响应数据类型
120
- * @param {number} code 响应code
121
- * @param {T} data 响应数据
122
- * @param {string} msg 响应消息提示
123
- * @autor: 刘 相卿
124
- */
125
- interface ResDataType<T = any> extends ObjectDataType {
126
- code: number;
127
- data: T;
128
- msg: string;
129
- }
130
- /**
131
- * @description: 分页接口响应数据
132
- * @param {R[]} records 分页数据
133
- * @param {number} total 分页总数
134
- * @autor: 刘 相卿
135
- */
136
- interface PageResType<R = ObjectDataType> {
137
- records: R[];
138
- total: number;
139
- }
140
- /**
141
- * @description: 错误消息类型
142
- * @param {number} type 错误类型
143
- * @param {T} error 错误数据
144
- * @autor: 刘 相卿
145
- */
146
- interface ErrorContentObject {
147
- REQUEST: {
148
- type: 'REQUEST';
149
- content: ResDataType;
150
- };
151
- CANCEL: {
152
- type: 'CANCEL';
153
- content: CanceledError<any>;
154
- };
155
- ERROR: {
156
- type: 'ERROR';
157
- content: AxiosError<any>;
158
- };
159
- }
160
- interface ErrorBasicType {
161
- options: RequestBaseConfig;
162
- response?: ObrAxiosResponse<ResDataType>;
163
- }
164
- type ErrorTypeKey = keyof ErrorContentObject;
165
- type ErrorType<T extends ErrorTypeKey = ErrorTypeKey> = ErrorBasicType & ErrorContentObject[T];
166
- /**
167
- * @description: 分页查询请求参数
168
- * @param {number} pageSize 分页大小 = 10
169
- * @param {number} pageNo 分页页码 = 1
170
- * @autor: 刘 相卿
171
- */
172
- interface PageQueryType {
173
- pageSize?: number;
174
- pageNo?: number;
175
- }
176
- interface RequestBaseConfig extends AxiosRequestConfig {
177
- basePath?: string;
178
- allowCancel?: boolean;
179
- allowNullValue?: boolean;
180
- successCode?: number | number[];
181
- unauthorizedCode?: number | number[];
182
- whiteUrl?: () => string[];
183
- alias?: () => Partial<ResAlias>;
184
- token?: TokenConfig;
185
- beforeRequest?: (config: ObrAxiosRequestConfig) => ObrAxiosRequestConfig;
186
- afterRequest?: (response: ObrAxiosResponse<ResDataType>, options: RequestBaseConfig) => ObrAxiosResponse<ResDataType>;
187
- 401?: (error: ErrorType<'REQUEST'>) => any;
188
- cancel?: (error: ErrorType<'CANCEL'>) => any;
189
- error?: (error: ErrorType) => any;
190
- }
191
- type RequestMethod = Method;
192
- /**
193
- * @description: 请求参数配置
194
- * @return {*}
195
- * @autor: 刘 相卿
196
- */
197
- interface RequestParamConfig {
198
- key: string;
199
- required?: boolean;
200
- toValue?: boolean;
201
- source: {
202
- path?: string;
203
- defaultValue?: any;
204
- formatter?: 'toArray' | 'toString' | 'toNumber';
205
- }[];
206
- }
207
- //#endregion
208
- export { ResDataType as C, ResAlias as S, TreeItemType as T, PageQueryType as _, ErrorContentObject as a, RequestMethod as b, HeadersType as c, ObrAxiosInstance as d, ObrAxiosRequestConfig as f, PageAlias as g, OptionResAlias as h, DataType as i, MappingType as l, ObrAxiosStatic as m, CascaderOptionType as n, ErrorType as o, ObrAxiosResponse as p, CascaderRequestOption as r, ErrorTypeKey as s, BaseOptionType as t, ObjectDataType as u, PageResType as v, TokenConfig as w, RequestParamConfig as x, RequestBaseConfig as y };
@@ -1 +0,0 @@
1
- export{};
@@ -1,208 +0,0 @@
1
- import { AxiosError, AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosStatic, CanceledError, CreateAxiosDefaults, Method } from "axios";
2
-
3
- //#region src/types.d.ts
4
- type ObjectDataType<T = any, D extends string = string> = Record<D, T>;
5
- /**
6
- * @description: 树形结构数据类型
7
- * @autor: 刘 相卿
8
- */
9
- interface TreeItemType extends ObjectDataType {
10
- label?: string;
11
- children?: TreeItemType[];
12
- }
13
- /**
14
- * @description: 数据类型
15
- * @autor: 刘 相卿
16
- */
17
- type DataType = 'set' | 'map' | 'function' | 'object' | 'array' | 'undefined' | 'null' | 'number' | 'symbol' | 'string' | 'boolean' | 'regexp' | 'date' | 'bigint' | 'blob' | 'formdata';
18
- interface MappingType {
19
- [x: string | number]: any;
20
- default: any;
21
- }
22
- interface BaseOptionType<T = ObjectDataType> extends ObjectDataType {
23
- label: string;
24
- value: any;
25
- disabled?: boolean;
26
- json?: T;
27
- children?: BaseOptionType<T>[];
28
- }
29
- interface OptionResAlias {
30
- label: string;
31
- value: string;
32
- disabled: string;
33
- children: string;
34
- json: string;
35
- }
36
- interface CascaderRequestOption {
37
- url: string;
38
- method?: Method;
39
- params?: RequestParamConfig[];
40
- alias?: Partial<Omit<OptionResAlias, 'json'>>;
41
- }
42
- interface CascaderOptionType<T extends ObjectDataType = ObjectDataType> {
43
- label: string;
44
- value: any;
45
- disabled?: boolean;
46
- json?: T;
47
- children?: CascaderOptionType<T>[];
48
- }
49
- /**
50
- * @description: Token配置类型
51
- * @param {string} key token的键名称
52
- * @param {() => string} get 获取token的方法
53
- * @autor: 刘 相卿
54
- */
55
- interface TokenConfig {
56
- key: string;
57
- get: () => string;
58
- }
59
- /**
60
- * @description: header配置
61
- * @param {boolean} `X-Never-Cancel` 是否永远不取消该请求
62
- * @param {'path' | 'method' | 'params'} `X-Cancel-Rule` 取消规则(path: 同一路径; method: 同一路径+请求方法; params: 同一路径+请求方法+参数)
63
- * @param {boolean} `X-Hide-Message` 是否隐藏请求消息提示
64
- * @autor: 刘 相卿
65
- */
66
- interface HeadersType {
67
- 'X-Never-Cancel'?: boolean;
68
- 'X-Cancel-Rule'?: 'path' | 'method' | 'params';
69
- 'X-Hide-Message'?: boolean;
70
- }
71
- interface ObrAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
72
- headers?: AxiosRequestConfig['headers'] & HeadersType;
73
- }
74
- interface ObrAxiosResponse<T = any> extends Omit<AxiosResponse<T>, 'data'> {
75
- data: ResDataType<T>;
76
- }
77
- interface ObrAxiosStatic extends Omit<AxiosStatic, 'create'> {
78
- create: (config?: CreateAxiosDefaults) => ObrAxiosInstance;
79
- }
80
- interface ObrAxiosInstance extends Pick<AxiosInstance, 'defaults'> {
81
- interceptors: {
82
- request: AxiosInterceptorManager<ObrAxiosRequestConfig>;
83
- response: AxiosInterceptorManager<ObrAxiosResponse<ResDataType>>;
84
- };
85
- <T = any, D = any>(config: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
86
- <T = any, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
87
- getUri: (config?: ObrAxiosRequestConfig) => string;
88
- request: <T = any>(config: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
89
- get: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
90
- delete: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
91
- head: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
92
- options: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
93
- post: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
94
- put: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
95
- postForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
96
- putForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
97
- patch: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
98
- patchForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
99
- }
100
- /**
101
- * @description: 响应字段别名
102
- * @param {string} code 响应code别名
103
- * @param {string} data 响应数据别名
104
- * @param {string} msg 响应消息提示别名
105
- * @autor: 刘 相卿
106
- */
107
- interface ResAlias {
108
- code: string;
109
- data: string;
110
- msg: string;
111
- }
112
- interface PageAlias {
113
- records: string;
114
- total: string;
115
- pageSize: string;
116
- pageNo: string;
117
- }
118
- /**
119
- * @description: 响应数据类型
120
- * @param {number} code 响应code
121
- * @param {T} data 响应数据
122
- * @param {string} msg 响应消息提示
123
- * @autor: 刘 相卿
124
- */
125
- interface ResDataType<T = any> extends ObjectDataType {
126
- code: number;
127
- data: T;
128
- msg: string;
129
- }
130
- /**
131
- * @description: 分页接口响应数据
132
- * @param {R[]} records 分页数据
133
- * @param {number} total 分页总数
134
- * @autor: 刘 相卿
135
- */
136
- interface PageResType<R = ObjectDataType> {
137
- records: R[];
138
- total: number;
139
- }
140
- /**
141
- * @description: 错误消息类型
142
- * @param {number} type 错误类型
143
- * @param {T} error 错误数据
144
- * @autor: 刘 相卿
145
- */
146
- interface ErrorContentObject {
147
- REQUEST: {
148
- type: 'REQUEST';
149
- content: ResDataType;
150
- };
151
- CANCEL: {
152
- type: 'CANCEL';
153
- content: CanceledError<any>;
154
- };
155
- ERROR: {
156
- type: 'ERROR';
157
- content: AxiosError<any>;
158
- };
159
- }
160
- interface ErrorBasicType {
161
- options: RequestBaseConfig;
162
- response?: ObrAxiosResponse<ResDataType>;
163
- }
164
- type ErrorTypeKey = keyof ErrorContentObject;
165
- type ErrorType<T extends ErrorTypeKey = ErrorTypeKey> = ErrorBasicType & ErrorContentObject[T];
166
- /**
167
- * @description: 分页查询请求参数
168
- * @param {number} pageSize 分页大小 = 10
169
- * @param {number} pageNo 分页页码 = 1
170
- * @autor: 刘 相卿
171
- */
172
- interface PageQueryType {
173
- pageSize?: number;
174
- pageNo?: number;
175
- }
176
- interface RequestBaseConfig extends AxiosRequestConfig {
177
- basePath?: string;
178
- allowCancel?: boolean;
179
- allowNullValue?: boolean;
180
- successCode?: number | number[];
181
- unauthorizedCode?: number | number[];
182
- whiteUrl?: () => string[];
183
- alias?: () => Partial<ResAlias>;
184
- token?: TokenConfig;
185
- beforeRequest?: (config: ObrAxiosRequestConfig) => ObrAxiosRequestConfig;
186
- afterRequest?: (response: ObrAxiosResponse<ResDataType>, options: RequestBaseConfig) => ObrAxiosResponse<ResDataType>;
187
- 401?: (error: ErrorType<'REQUEST'>) => any;
188
- cancel?: (error: ErrorType<'CANCEL'>) => any;
189
- error?: (error: ErrorType) => any;
190
- }
191
- type RequestMethod = Method;
192
- /**
193
- * @description: 请求参数配置
194
- * @return {*}
195
- * @autor: 刘 相卿
196
- */
197
- interface RequestParamConfig {
198
- key: string;
199
- required?: boolean;
200
- toValue?: boolean;
201
- source: {
202
- path?: string;
203
- defaultValue?: any;
204
- formatter?: 'toArray' | 'toString' | 'toNumber';
205
- }[];
206
- }
207
- //#endregion
208
- export { ResDataType as C, ResAlias as S, TreeItemType as T, PageQueryType as _, ErrorContentObject as a, RequestMethod as b, HeadersType as c, ObrAxiosInstance as d, ObrAxiosRequestConfig as f, PageAlias as g, OptionResAlias as h, DataType as i, MappingType as l, ObrAxiosStatic as m, CascaderOptionType as n, ErrorType as o, ObrAxiosResponse as p, CascaderRequestOption as r, ErrorTypeKey as s, BaseOptionType as t, ObjectDataType as u, PageResType as v, TokenConfig as w, RequestParamConfig as x, RequestBaseConfig as y };
package/dist/types.cjs DELETED
@@ -1 +0,0 @@
1
- require(`./types-DAFnYo8a.cjs`);
package/dist/types.d.cts DELETED
@@ -1,2 +0,0 @@
1
- import { C as ResDataType, S as ResAlias, T as TreeItemType, _ as PageQueryType, a as ErrorContentObject, b as RequestMethod, c as HeadersType, d as ObrAxiosInstance, f as ObrAxiosRequestConfig, g as PageAlias, h as OptionResAlias, i as DataType, l as MappingType, m as ObrAxiosStatic, n as CascaderOptionType, o as ErrorType, p as ObrAxiosResponse, r as CascaderRequestOption, s as ErrorTypeKey, t as BaseOptionType, u as ObjectDataType, v as PageResType, w as TokenConfig, x as RequestParamConfig, y as RequestBaseConfig } from "./types-DTtPjrm8.cjs";
2
- export { BaseOptionType, CascaderOptionType, CascaderRequestOption, DataType, ErrorContentObject, ErrorType, ErrorTypeKey, HeadersType, MappingType, ObjectDataType, ObrAxiosInstance, ObrAxiosRequestConfig, ObrAxiosResponse, ObrAxiosStatic, OptionResAlias, PageAlias, PageQueryType, PageResType, RequestBaseConfig, RequestMethod, RequestParamConfig, ResAlias, ResDataType, TokenConfig, TreeItemType };
@@ -1 +0,0 @@
1
- function e(e){return new Promise(t=>{let n=document.createElement(`video`),r=URL.createObjectURL(e);n.src=r,n.addEventListener(`loadedmetadata`,()=>{n.currentTime=0}),n.addEventListener(`seeked`,()=>{let e=document.createElement(`canvas`);e.width=n.videoWidth,e.height=n.videoHeight,e.getContext(`2d`)?.drawImage(n,0,0,e.width,e.height),t(e.toDataURL(`image/png`)),URL.revokeObjectURL(r)})})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,10 +0,0 @@
1
- //#region src/dom/video.d.ts
2
- /**
3
- * @description: 获取视频文件的封面
4
- * @param {File} file
5
- * @return {*}
6
- * @autor: 刘 相卿
7
- */
8
- declare function getVideoPoster(file: File): Promise<string>;
9
- //#endregion
10
- export { getVideoPoster as t };
@@ -1 +0,0 @@
1
- function e(e){return new Promise(t=>{let n=document.createElement(`video`),r=URL.createObjectURL(e);n.src=r,n.addEventListener(`loadedmetadata`,()=>{n.currentTime=0}),n.addEventListener(`seeked`,()=>{let e=document.createElement(`canvas`);e.width=n.videoWidth,e.height=n.videoHeight,e.getContext(`2d`)?.drawImage(n,0,0,e.width,e.height),t(e.toDataURL(`image/png`)),URL.revokeObjectURL(r)})})}export{e as t};
@@ -1 +0,0 @@
1
- require(`../../clipboard-ZMrs6wzK.cjs`);const e=require(`../../clipboard-CWQVWiTk.cjs`);exports.useClipboard=e.t;
@@ -1,2 +0,0 @@
1
- import { t as useClipboard } from "../../clipboard-C8ZiJE_h.cjs";
2
- export { useClipboard };
@@ -1 +0,0 @@
1
- require(`../clipboard-ZMrs6wzK.cjs`);const e=require(`../type-util-HyvLYA2w.cjs`),t=require(`../clipboard-CWQVWiTk.cjs`);require(`../vue-CGBzFhF4.cjs`),exports.anyType=e.t,exports.arrayType=e.n,exports.booleanType=e.r,exports.eventType=e.i,exports.functionType=e.a,exports.getEventValue=e.o,exports.numberType=e.s,exports.objectType=e.c,exports.runAsyncEvent=e.l,exports.runEvent=e.u,exports.someType=e.d,exports.stringType=e.f,exports.useClipboard=t.t,exports.vNodeType=e.p;
@@ -1,4 +0,0 @@
1
- import { a as eventType, c as numberType, d as runEvent, f as someType, h as vueNode, i as booleanType, l as objectType, m as vNodeType, n as anyType, o as functionType, p as stringType, r as arrayType, s as getEventValue, t as VueKey, u as runAsyncEvent } from "../type-util-BRGMhQFp.cjs";
2
- import { t as useClipboard } from "../clipboard-C8ZiJE_h.cjs";
3
- import "../index-Ctvuv0vV.cjs";
4
- export { VueKey, anyType, arrayType, booleanType, eventType, functionType, getEventValue, numberType, objectType, runAsyncEvent, runEvent, someType, stringType, useClipboard, vNodeType, vueNode };
@@ -1 +0,0 @@
1
- const e=require(`../type-util-HyvLYA2w.cjs`);exports.anyType=e.t,exports.arrayType=e.n,exports.booleanType=e.r,exports.eventType=e.i,exports.functionType=e.a,exports.getEventValue=e.o,exports.numberType=e.s,exports.objectType=e.c,exports.runAsyncEvent=e.l,exports.runEvent=e.u,exports.someType=e.d,exports.stringType=e.f,exports.vNodeType=e.p;
@@ -1,2 +0,0 @@
1
- import { a as eventType, c as numberType, d as runEvent, f as someType, h as vueNode, i as booleanType, l as objectType, m as vNodeType, n as anyType, o as functionType, p as stringType, r as arrayType, s as getEventValue, t as VueKey, u as runAsyncEvent } from "../type-util-BRGMhQFp.cjs";
2
- export { VueKey, anyType, arrayType, booleanType, eventType, functionType, getEventValue, numberType, objectType, runAsyncEvent, runEvent, someType, stringType, vNodeType, vueNode };
@@ -1 +0,0 @@
1
- export{};
File without changes
File without changes
File without changes