@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,99 +0,0 @@
1
- import { T as TreeItemType, t as BaseOptionType, u as ObjectDataType } from "./types-DTtPjrm8.cjs";
2
-
3
- //#region src/array.d.ts
4
-
5
- /**
6
- * @description: 字符串元组
7
- * @param {*} args
8
- * @return {*}
9
- * @autor: 刘 相卿
10
- */
11
- declare const tuple: <T extends string[]>(...args: T) => T;
12
- /**
13
- * @description: 数字元组
14
- * @param {*} args
15
- * @return {*}
16
- * @autor: 刘 相卿
17
- */
18
- declare const tupleNum: <T extends number[]>(...args: T) => T;
19
- /**
20
- * @description: 转换为数组
21
- * @param {*} val
22
- * @return {*}
23
- * @autor: 刘 相卿
24
- */
25
- declare function toArray<T>(val: T): T[];
26
- /**
27
- * @description: 数组转树型结构数据
28
- * @param {any[]} data
29
- * @param {string} id id字段名
30
- * @param {string} pid pid字段名
31
- * @param {string} children children字段名
32
- * @return {TreeItemType[]} 树型数据
33
- * @autor: 刘 相卿
34
- */
35
- declare function array2tree<T = TreeItemType>(data?: ObjectDataType[], id?: string, pid?: string, children?: string): T[];
36
- /**
37
- * @description: 对象数组转换为选项数组
38
- * @param {ObjectDataType[]} array
39
- * @param {{ label: string; value: string }} alias
40
- * @return {BaseOptionType[]}
41
- * @autor: 刘 相卿
42
- */
43
- declare function array2option(array: ObjectDataType[], alias: {
44
- label: string;
45
- value: string;
46
- }): BaseOptionType[];
47
- /**
48
- * @description: 删除数组中的空元素
49
- * @param {T[]} array
50
- * @return {*}
51
- * @autor: 刘 相卿
52
- */
53
- declare function deleteEmptyElement<T>(array: T[]): T[];
54
- /**
55
- * @description: 根据给定的值集合,查找树型结构数据中符合条件的元素
56
- * @param {TreeItemType[]} array 树型数组
57
- * @param {(string | number)[]} values 值集合
58
- * @param {{ value?: string; children?: string }} alias
59
- * @return {*}
60
- * @autor: 刘 相卿
61
- */
62
- declare function getElementsByValues(array: TreeItemType[] | undefined, values: (string | number)[], alias?: {
63
- value?: string;
64
- children?: string;
65
- }, reserveChildren?: boolean): ObjectDataType[];
66
- /**
67
- * @description: 将树型结构数组拉平为一维数组
68
- * @param {TreeItemType[]} data 树型数组
69
- * @param {{ value?: string; children?: string }} alias
70
- * @return {TreeItemType[]}
71
- * @autor: 刘 相卿
72
- */
73
- declare function tree2array<T extends ObjectDataType = ObjectDataType>(data?: T[], alias?: string, reserveChildren?: boolean): T[];
74
- /**
75
- * @description: 根据对象数组中的keys去重
76
- * @param {ObjectDataType[]} array 原数组
77
- * @param {string[]} keys 对象key
78
- * @return {T[]}
79
- * @autor: 刘 相卿
80
- */
81
- declare function uniqueArrayByKeys<T = ObjectDataType>(array: T[], keys: (keyof T)[]): T[];
82
- /**
83
- * @description: 删除简单数组中的符合规则的元素,并返回新数组
84
- * @param {(number|string|boolean)[]} array 原数组
85
- * @param {(number|string|boolean)[]} values 符合的元素值
86
- * @return {*} (number|string|boolean)[]
87
- * @autor: 刘 相卿
88
- */
89
- declare function deleteElement(array: (number | string | boolean)[], values?: (number | string | boolean)[]): (number | string | boolean)[];
90
- /**
91
- * @description: 删除数组中的符合规则的元素,并返回新数组
92
- * @param {any[]} array 原数组
93
- * @param {any[]} rules 符合的元素值,如:[1, { name: 'x', age: 12 }, { name: 'z' }]则删除「元素 = 1 或 元素.name = 'x' && 元素.age = 'x' 或 元素.name = 'z'」的元素
94
- * @return {*}
95
- * @autor: 刘 相卿
96
- */
97
- declare function deleteElementPro(array: any[], rules?: any[]): any[];
98
- //#endregion
99
- export { deleteEmptyElement as a, tree2array as c, uniqueArrayByKeys as d, deleteElementPro as i, tuple as l, array2tree as n, getElementsByValues as o, deleteElement as r, toArray as s, array2option as t, tupleNum as u };
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`),n=require(`./object-C6qVmoZY.cjs`);let r=require(`lodash.clonedeep`);const i=(...e)=>e,a=(...e)=>e;function o(e){return Array.isArray(e)?e:[e]}function s(e=[],t=`id`,n=`pid`,i=`children`){let a=[],o={},s=(0,r.default)(e);for(let e=0;e<s.length;e++)o[s[e][t]]=s[e];for(let e=0;e<s.length;e++)o[s[e][n]]&&s[e][t]!==s[e][n]?(o[s[e][n]][i]||(o[s[e][n]][i]=[]),o[s[e][n]][i].push(s[e])):a.push(s[e]);return a}function c(e,t){return e.map(e=>({label:e[t.label],value:e[t.value]}))}function l(e){return e.filter(e=>!t.f(e))}function u(e=[],r,i,a=!1){let o={value:`value`,children:`children`,...n.n(i)},s=[],[c]=r,l=e.find(e=>e[o.value]===c);if(!t.f(c)&&!t.f(l)){let{[o.children]:e,...t}=l;return s.concat(a?{...t,children:e}:t,...u(e??[],r.slice(1),o))}return s}function d(e=[],t=`children`,n=!1){let r=[],i=(e,t)=>{e.forEach(e=>{let{[t]:a,...o}=e;n?r.push(e):r.push(o),a&&i(a,t)})};return i(e,t),r}function f(e,t){return e.reduce((e,n)=>(e.find(e=>t.every(t=>e[t]===n[t]))||e.push(n),e),[])}function p(e,t=[]){return e.filter(e=>!t.includes(e))}function m(e,n=[]){return e.filter(e=>!n.some(n=>t.v(n)&&t.v(e)?t.d(n)?t.d(e):Object.entries(n).every(([t,n])=>n===e[t]):t.g(n)&&Number.isNaN(n)?t.g(e)&&Number.isNaN(e):e===n))}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return a}});
package/dist/array.cjs DELETED
@@ -1 +0,0 @@
1
- require(`./base-DUxrUTOr.cjs`),require(`./lodash-kixEH9o9.cjs`),require(`./object-C6qVmoZY.cjs`);const e=require(`./array-ri-t3Wsz.cjs`);exports.array2option=e.t,exports.array2tree=e.n,exports.deleteElement=e.r,exports.deleteElementPro=e.i,exports.deleteEmptyElement=e.a,exports.getElementsByValues=e.o,exports.toArray=e.s,exports.tree2array=e.c,exports.tuple=e.l,exports.tupleNum=e.u,exports.uniqueArrayByKeys=e.d;
package/dist/array.d.cts DELETED
@@ -1,3 +0,0 @@
1
- import "./types-DTtPjrm8.cjs";
2
- import { a as deleteEmptyElement, c as tree2array, d as uniqueArrayByKeys, i as deleteElementPro, l as tuple, n as array2tree, o as getElementsByValues, r as deleteElement, s as toArray, t as array2option, u as tupleNum } from "./array-okkZATKz.cjs";
3
- export { array2option, array2tree, deleteElement, deleteElementPro, deleteEmptyElement, getElementsByValues, toArray, tree2array, tuple, tupleNum, uniqueArrayByKeys };
@@ -1 +0,0 @@
1
- const e=e=>typeof e==`string`,t=e=>typeof e==`number`;function n(e){return typeof e==`boolean`}const r=e=>typeof e==`function`,i=e=>Array.isArray(e);function a(e){return e===void 0}const o=e=>e!==void 0,s=e=>e===null,c=e=>typeof e==`symbol`,l=e=>Object.prototype.toString.call(e)===`[object Object]`,u=e=>Object.prototype.toString.call(e)===`[object Object]`;function d(e){return Object.prototype.toString.call(e)===`[object Date]`}function f(r){return e(r)||t(r)||n(r)||c(r)||a(r)||s(r)}function p(e){return/^(?:https?|mailto|tel|file):/.test(e)}function m(e,t=!0){return t&&e===void 0||e===null||e===`null`}function h(e){return e==null||e===``||typeof e==`number`&&Number.isNaN(e)}function g(e){return!e||Object.getOwnPropertyNames(e).length===0}function _(e=[]){return Array.isArray(e)&&!e.length}function v(e=[]){return Array.isArray(e)?_(e)||e.every(e=>h(e)):!1}function y(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function b(e){return(e.match(/\.([^.]+)$/)?.[1]??`未知`).toUpperCase()}function x(e,t,n){return e.replace(RegExp(`(.*)${t}`),`$1${n}`)}function S(e,t,n){return e.replace(new RegExp(t,`g`),n)}function C(e){return e&&e>0?e:0}function w(t,n){let r=null;try{t&&e(t)&&(r=JSON.parse(t))}finally{s(r)&&(r=n||{})}return r}function T(e,t=``){let n=t;try{n=JSON.stringify(e)}catch{n=t}return n}function E(e=10){let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t}export{T as C,E as D,w as E,p as S,S as T,u as _,f as a,c as b,o as c,g as d,h as f,t as g,s as h,i,m as l,v as m,y as n,n as o,r as p,b as r,d as s,C as t,_ as u,l as v,x as w,a as x,e as y};
@@ -1 +0,0 @@
1
- function e(e){document.title=e}function t(e,t=1920,n=1080){let r=document.documentElement.clientWidth||document.body.clientWidth||t,i=window.screen.height||document.body.clientHeight||t,a=t/n;return r/i/a*e}function n(){let e=document.querySelectorAll(`[style*=z-index]`),t=0;return e.forEach(e=>{let n=window.getComputedStyle(e).zIndex;if(n!==`auto`){let e=Number.parseInt(n,10);!Number.isNaN(e)&&e>t&&(t=e)}}),t+1}export{t as n,e as r,n as t};
@@ -1,25 +0,0 @@
1
- //#region src/dom/base.d.ts
2
- /**
3
- * @description: 设置文档标题
4
- * @param {string} title
5
- * @return {*}
6
- * @autor: 刘 相卿
7
- */
8
- declare function setDocumentTitle(title: string): void;
9
- /**
10
- * @description: 动态计算px
11
- * @param {number} px 原始px数值
12
- * @param {number} width 设计稿宽度 默认1920
13
- * @param {number} height 设计稿高度 默认1080
14
- * @return {*}
15
- * @autor: 刘 相卿
16
- */
17
- declare function getPx(px: number, width?: number, height?: number): number;
18
- /**
19
- * @description: 获取页面中最大的z-index并+1
20
- * @return {number} zIndex 最大的index
21
- * @autor: 刘 相卿
22
- */
23
- declare function getMaxZIndex(): number;
24
- //#endregion
25
- export { getPx as n, setDocumentTitle as r, getMaxZIndex as t };
@@ -1 +0,0 @@
1
- const e=e=>typeof e==`string`,t=e=>typeof e==`number`;function n(e){return typeof e==`boolean`}const r=e=>typeof e==`function`,i=e=>Array.isArray(e);function a(e){return e===void 0}const o=e=>e!==void 0,s=e=>e===null,c=e=>typeof e==`symbol`,l=e=>Object.prototype.toString.call(e)===`[object Object]`,u=e=>Object.prototype.toString.call(e)===`[object Object]`;function d(e){return Object.prototype.toString.call(e)===`[object Date]`}function f(r){return e(r)||t(r)||n(r)||c(r)||a(r)||s(r)}function p(e){return/^(?:https?|mailto|tel|file):/.test(e)}function m(e,t=!0){return t&&e===void 0||e===null||e===`null`}function h(e){return e==null||e===``||typeof e==`number`&&Number.isNaN(e)}function g(e){return!e||Object.getOwnPropertyNames(e).length===0}function _(e=[]){return Array.isArray(e)&&!e.length}function v(e=[]){return Array.isArray(e)?_(e)||e.every(e=>h(e)):!1}function y(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function b(e){return(e.match(/\.([^.]+)$/)?.[1]??`未知`).toUpperCase()}function x(e,t,n){return e.replace(RegExp(`(.*)${t}`),`$1${n}`)}function S(e,t,n){return e.replace(new RegExp(t,`g`),n)}function C(e){return e&&e>0?e:0}function w(t,n){let r=null;try{t&&e(t)&&(r=JSON.parse(t))}finally{s(r)&&(r=n||{})}return r}function T(e,t=``){let n=t;try{n=JSON.stringify(e)}catch{n=t}return n}function E(e=10){let t=``;for(let n=0;n<e;n++)t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(Math.floor(Math.random()*62));return t}Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return e}});
@@ -1,193 +0,0 @@
1
- import { i as DataType, u as ObjectDataType } from "./types-BEdiy6mb.mjs";
2
-
3
- //#region src/base.d.ts
4
-
5
- /**
6
- * @description: 判断是否为string类型
7
- * @param {unknown} val
8
- * @return {*}
9
- * @autor: 刘 相卿
10
- */
11
- declare const isString: (val: unknown) => val is string;
12
- /**
13
- * @description: 判断是否为number类型
14
- * @param {unknown} val
15
- * @return {*}
16
- * @autor: 刘 相卿
17
- */
18
- declare const isNumber: (val: unknown) => val is number;
19
- /**
20
- * @description: 判断是否为boolean类型
21
- * @param {unknown} val
22
- * @return {*}
23
- * @autor: 刘 相卿
24
- */
25
- declare function isBoolean(val: unknown): val is boolean;
26
- /**
27
- * @description: 判断是否为函数类型
28
- * @param {unknown} val
29
- * @return {*}
30
- * @autor: 刘 相卿
31
- */
32
- declare const isFunction: (val: unknown) => val is Function;
33
- /**
34
- * @description: 判断是否为数组类型
35
- * @param {unknown} val
36
- * @return {*}
37
- * @autor: 刘 相卿
38
- */
39
- declare const isArray: <T>(val: unknown) => val is T[];
40
- /**
41
- * @description: 判断是否为undefined类型
42
- * @param {unknown} val
43
- * @return {*}
44
- * @autor: 刘 相卿
45
- */
46
- declare function isUndefined(val: unknown): val is undefined;
47
- /**
48
- * @description: 判断参数已定义且不为空
49
- * @param {*} val
50
- * @return {*}
51
- * @autor: 刘 相卿
52
- */
53
- declare const isDef: <T = any>(val?: T | undefined) => val is NonNullable<T>;
54
- /**
55
- * @description: 是否为null
56
- * @param {unknown} val
57
- * @return {*}
58
- * @autor: 刘 相卿
59
- */
60
- declare const isNull: (val: unknown) => val is null;
61
- /**
62
- * @description: 是否为symbol类型
63
- * @param {unknown} val
64
- * @return {*}
65
- * @autor: 刘 相卿
66
- */
67
- declare const isSymbol: (val: unknown) => val is symbol;
68
- /**
69
- * @description: 是否为对象类型
70
- * @param {unknown} val
71
- * @return {*}
72
- * @autor: 刘 相卿
73
- */
74
- declare const isObjectDataType: <T extends ObjectDataType<any, string> = ObjectDataType<any, string>>(val: unknown) => val is T;
75
- declare const isObject: (val: unknown) => val is object;
76
- /**
77
- * @description: 是否为日期类型
78
- * @param {unknown} val
79
- * @return {*}
80
- * @autor: 刘 相卿
81
- */
82
- declare function isDate(val: unknown): val is Date;
83
- /**
84
- * @description: 是否为原始类型
85
- * @return {*}
86
- * @autor: 刘 相卿
87
- */
88
- declare function isBaseType(val: unknown): boolean;
89
- /**
90
- * @description: 是否为url
91
- * @param {string} val
92
- * @return {*}
93
- * @autor: 刘 相卿
94
- */
95
- declare function isUrl(val: string): boolean;
96
- /**
97
- * @description: 判断是否未null或者undefined
98
- * @param {unknown} value
99
- * @return {*}
100
- * @autor: 刘 相卿
101
- */
102
- declare function isEmpty(value: unknown, undefinedValue?: boolean): boolean;
103
- /**
104
- * @description: 判断是否为空值
105
- * @param {unknown} value
106
- * @return {boolean}
107
- * @autor: 刘 相卿
108
- */
109
- declare function isEmptyValue(value: unknown): boolean;
110
- /**
111
- * @description: 判断是否为空对象
112
- * @param {ObjectDataType} object
113
- * @return {*}
114
- * @autor: 刘 相卿
115
- */
116
- declare function isEmptyObject(object: ObjectDataType): boolean;
117
- /**
118
- * @description: 判断是否为空数组
119
- * @param {any} data
120
- * @return {boolean}
121
- * @autor: 刘 相卿
122
- */
123
- declare function isEmptyArray(data?: any[]): boolean;
124
- /**
125
- * @description: 判断是否为无意义的数组,即数组的每个元素都是空值
126
- * @param {any} data
127
- * @return {boolean}
128
- * @autor: 刘 相卿
129
- */
130
- declare function isMeaninglessArray(data?: any[]): boolean;
131
- /**
132
- * @description: 获取数据类型
133
- * @param {any} data
134
- * @return {DataType} 数据类型字符串
135
- * @autor: 刘 相卿
136
- */
137
- declare function getDataType(data: any): DataType;
138
- /**
139
- * @description: 根据url获取文件类型
140
- * @param {string} fileUrl
141
- * @return {*}
142
- * @autor: 刘 相卿
143
- */
144
- declare function getFileType(fileUrl: string): string;
145
- /**
146
- * @description: 替换最后一个匹配的字符串
147
- * @param {string} str
148
- * @param {string} char
149
- * @param {string} target
150
- * @return {*}
151
- * @autor: 刘 相卿
152
- */
153
- declare function replaceLastMatch(str: string, char: string, target: string): string;
154
- /**
155
- * @description: 替换所有匹配的字符串
156
- * @param {string} str
157
- * @param {RegExp} reg
158
- * @param {string} target
159
- * @return {*}
160
- * @autor: 刘 相卿
161
- */
162
- declare function replaceMatch(str: string, reg: RegExp, target: string): string;
163
- /**
164
- * @description: 将数字转化为正数
165
- * @param {number} value
166
- * @return {*}
167
- * @autor: 刘 相卿
168
- */
169
- declare function formatPositiveNumber(value: number): number;
170
- /**
171
- * @description: JSON字符串转换为JSON对象/数组
172
- * @param {string} str JSON字符串
173
- * @return {T}
174
- * @autor: 刘 相卿
175
- */
176
- declare function string2json<T>(str: string, defaultValue?: T): T;
177
- /**
178
- * @description: JSON对象转换为JSON字符串
179
- * @param {any} json
180
- * @param {string} defaultValue
181
- * @return {string}
182
- * @autor: 刘 相卿
183
- */
184
- declare function json2string(json: any, defaultValue?: string): string;
185
- /**
186
- * @description: 生成随机字符串
187
- * @param {number} length 随机字符串长度 默认长度为10
188
- * @return {*}
189
- * @autor: 刘 相卿
190
- */
191
- declare function uuid(length?: number): string;
192
- //#endregion
193
- export { json2string as C, uuid as D, string2json as E, isUrl as S, replaceMatch as T, isObject as _, isBaseType as a, isSymbol as b, isDef as c, isEmptyObject as d, isEmptyValue as f, isNumber as g, isNull as h, isArray as i, isEmpty as l, isMeaninglessArray as m, getDataType as n, isBoolean as o, isFunction as p, getFileType as r, isDate as s, formatPositiveNumber as t, isEmptyArray as u, isObjectDataType as v, replaceLastMatch as w, isUndefined as x, isString as y };
@@ -1 +0,0 @@
1
- function e(e){document.title=e}function t(e,t=1920,n=1080){let r=document.documentElement.clientWidth||document.body.clientWidth||t,i=window.screen.height||document.body.clientHeight||t,a=t/n;return r/i/a*e}function n(){let e=document.querySelectorAll(`[style*=z-index]`),t=0;return e.forEach(e=>{let n=window.getComputedStyle(e).zIndex;if(n!==`auto`){let e=Number.parseInt(n,10);!Number.isNaN(e)&&e>t&&(t=e)}}),t+1}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
package/dist/base.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`./base-DUxrUTOr.cjs`);exports.formatPositiveNumber=e.t,exports.getDataType=e.n,exports.getFileType=e.r,exports.isArray=e.i,exports.isBaseType=e.a,exports.isBoolean=e.o,exports.isDate=e.s,exports.isDef=e.c,exports.isEmpty=e.l,exports.isEmptyArray=e.u,exports.isEmptyObject=e.d,exports.isEmptyValue=e.f,exports.isFunction=e.p,exports.isMeaninglessArray=e.m,exports.isNull=e.h,exports.isNumber=e.g,exports.isObject=e._,exports.isObjectDataType=e.v,exports.isString=e.y,exports.isSymbol=e.b,exports.isUndefined=e.x,exports.isUrl=e.S,exports.json2string=e.C,exports.replaceLastMatch=e.w,exports.replaceMatch=e.T,exports.string2json=e.E,exports.uuid=e.D;
package/dist/base.d.cts DELETED
@@ -1,3 +0,0 @@
1
- import "./types-DTtPjrm8.cjs";
2
- import { C as json2string, D as uuid, E as string2json, S as isUrl, T as replaceMatch, _ as isObject, a as isBaseType, b as isSymbol, c as isDef, d as isEmptyObject, f as isEmptyValue, g as isNumber, h as isNull, i as isArray, l as isEmpty, m as isMeaninglessArray, n as getDataType, o as isBoolean, p as isFunction, r as getFileType, s as isDate, t as formatPositiveNumber, u as isEmptyArray, v as isObjectDataType, w as replaceLastMatch, x as isUndefined, y as isString } from "./base-BXKvmcaf.cjs";
3
- export { formatPositiveNumber, getDataType, getFileType, isArray, isBaseType, isBoolean, isDate, isDef, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isFunction, isMeaninglessArray, isNull, isNumber, isObject, isObjectDataType, isString, isSymbol, isUndefined, isUrl, json2string, replaceLastMatch, replaceMatch, string2json, uuid };
@@ -1 +0,0 @@
1
- function e(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var t=e;export{t};
@@ -1 +0,0 @@
1
- function e(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var t=e;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1 +0,0 @@
1
- import e from"axios";const t=new Map;function n(e){let{url:t,method:n,params:r,data:i,headers:a}=e,o=i,s=r;typeof i==`string`&&(o=JSON.parse(i)),typeof r==`string`&&(s=JSON.parse(r));let c=[],l=a?.[`X-Cancel-Rule`];return c=l===`path`?[`请求路径:${t}`]:l===`method`?[`请求路径:${t}`,`请求方法:${n}`]:[`请求路径:${t}`,`请求方法:${n}`,`请求PARAMS:${JSON.stringify(s)}`,`请求DATA:${JSON.stringify(o)}`],c.join(`;`)}function r(r){if(!r.headers?.neverCancel){let i=n(r);r.cancelToken=new e.CancelToken(e=>{t.has(i)||t.set(i,e)})}}function i(e,r=!1){if(!e.headers?.[`X-Never-Cancel`]||r){let r=n(e);if(t.has(r)){let e=t.get(r);e&&e(r),t.delete(r)}}}function a(e){i(e),r(e)}function o(){Array.from(t.keys()).forEach(e=>{t.get(e)&&t.get(e)(e),t.delete(e)})}export{i as a,a as i,t as n,o as r,r as t};
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`);let t=require(`axios`);t=e.r(t);const n=new Map;function r(e){let{url:t,method:n,params:r,data:i,headers:a}=e,o=i,s=r;typeof i==`string`&&(o=JSON.parse(i)),typeof r==`string`&&(s=JSON.parse(r));let c=[],l=a?.[`X-Cancel-Rule`];return c=l===`path`?[`请求路径:${t}`]:l===`method`?[`请求路径:${t}`,`请求方法:${n}`]:[`请求路径:${t}`,`请求方法:${n}`,`请求PARAMS:${JSON.stringify(s)}`,`请求DATA:${JSON.stringify(o)}`],c.join(`;`)}function i(e){if(!e.headers?.neverCancel){let i=r(e);e.cancelToken=new t.default.CancelToken(e=>{n.has(i)||n.set(i,e)})}}function a(e,t=!1){if(!e.headers?.[`X-Never-Cancel`]||t){let t=r(e);if(n.has(t)){let e=n.get(t);e&&e(t),n.delete(t)}}}function o(e){a(e),i(e)}function s(){Array.from(n.keys()).forEach(e=>{n.get(e)&&n.get(e)(e),n.delete(e)})}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
@@ -1 +0,0 @@
1
- var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&&t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(e,n,r,i)=>{i&&(t(e,Symbol.toStringTag,{value:`Module`}),r&&t(r,Symbol.toStringTag,{value:`Module`})),s(e,n,`default`),r&&s(r,n,`default`)},l=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -1 +0,0 @@
1
- var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n&&e(r,Symbol.toStringTag,{value:`Module`}),r},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},o=(t,n,r,i)=>{i&&(e(t,Symbol.toStringTag,{value:`Module`}),r&&e(r,Symbol.toStringTag,{value:`Module`})),a(t,n,`default`),r&&a(r,n,`default`)};export{o as n,i as t};
@@ -1 +0,0 @@
1
- function e(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function t(t,n){t.classList?t.classList.add(n):e(t,n)||(t.className=`${t.className} ${n}`)}function n(t,n){t.classList?t.classList.remove(n):e(t,n)&&(t.className=` ${t.className} `.replace(` ${n} `,` `))}export{e as n,n as r,t};
@@ -1,27 +0,0 @@
1
- //#region src/dom/class.d.ts
2
- /**
3
- * @description: 节点是否存在某个class
4
- * @param {HTMLElement} node
5
- * @param {string} className
6
- * @return {*}
7
- * @autor: 刘 相卿
8
- */
9
- declare function hasClass(node: HTMLElement, className: string): boolean;
10
- /**
11
- * @description: 给节点添加class
12
- * @param {HTMLElement} node
13
- * @param {string} className
14
- * @return {*}
15
- * @autor: 刘 相卿
16
- */
17
- declare function addClass(node: HTMLElement, className: string): void;
18
- /**
19
- * @description: 移除class
20
- * @param {HTMLElement} node
21
- * @param {string} className
22
- * @return {*}
23
- * @autor: 刘 相卿
24
- */
25
- declare function removeClass(node: HTMLElement, className: string): void;
26
- //#endregion
27
- export { hasClass as n, removeClass as r, addClass as t };
@@ -1 +0,0 @@
1
- function e(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function t(t,n){t.classList?t.classList.add(n):e(t,n)||(t.className=`${t.className} ${n}`)}function n(t,n){t.classList?t.classList.remove(n):e(t,n)&&(t.className=` ${t.className} `.replace(` ${n} `,` `))}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1,4 +0,0 @@
1
- //#region src/clipboard.d.ts
2
- declare function clipboardCopy(text: string): Promise<void>;
3
- //#endregion
4
- export { clipboardCopy as t };
@@ -1,9 +0,0 @@
1
- import { ComputedRef, Ref, ShallowRef } from "vue";
2
-
3
- //#region src/vue/hooks/clipboard.d.ts
4
- declare function useClipboard(delay?: number): {
5
- copied: any;
6
- copy: (text: string | Ref<string> | ComputedRef<string> | ShallowRef<string>) => void;
7
- };
8
- //#endregion
9
- export { useClipboard as t };
@@ -1,9 +0,0 @@
1
- import { ComputedRef, Ref, ShallowRef } from "vue";
2
-
3
- //#region src/vue/hooks/clipboard.d.ts
4
- declare function useClipboard(delay?: number): {
5
- copied: any;
6
- copy: (text: string | Ref<string> | ComputedRef<string> | ShallowRef<string>) => void;
7
- };
8
- //#endregion
9
- export { useClipboard as t };
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./clipboard-ZMrs6wzK.cjs`);let n=require(`vue`);function r(e=3e3){let r=(0,n.ref)(!1);return{copied:r,copy:i=>{t.t((0,n.unref)(i)).then(()=>{r.value=!0;let t=setTimeout(()=>{r.value=!1,clearTimeout(t)},e)})}}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -1,4 +0,0 @@
1
- //#region src/clipboard.d.ts
2
- declare function clipboardCopy(text: string): Promise<void>;
3
- //#endregion
4
- export { clipboardCopy as t };
@@ -1 +0,0 @@
1
- import{t as e}from"./clipboard-DqGhq6A4.mjs";import{ref as t,unref as n}from"vue";function r(r=3e3){let i=t(!1);return{copied:i,copy:t=>{e(n(t)).then(()=>{i.value=!0;let e=setTimeout(()=>{i.value=!1,clearTimeout(e)},r)})}}}export{r as t};
@@ -1 +0,0 @@
1
- function e(){return new DOMException(`The request is not allowed`,`NotAllowedError`)}async function t(t){if(!navigator.clipboard)throw e();return navigator.clipboard.writeText(t)}async function n(t){let n=document.createElement(`span`);n.textContent=t,n.style.whiteSpace=`pre`,n.style.webkitUserSelect=`auto`,n.style.userSelect=`all`,document.body.appendChild(n);let r=window.getSelection(),i=window.document.createRange();r.removeAllRanges(),i.selectNode(n),r.addRange(i);let a=!1;try{a=window.document.execCommand(`copy`)}finally{r.removeAllRanges(),window.document.body.removeChild(n)}if(!a)throw e()}async function r(r){try{await t(r)}catch(t){try{await n(r)}catch(n){throw n||t||e()}}}export{r as t};
@@ -1 +0,0 @@
1
- function e(){return new DOMException(`The request is not allowed`,`NotAllowedError`)}async function t(t){if(!navigator.clipboard)throw e();return navigator.clipboard.writeText(t)}async function n(t){let n=document.createElement(`span`);n.textContent=t,n.style.whiteSpace=`pre`,n.style.webkitUserSelect=`auto`,n.style.userSelect=`all`,document.body.appendChild(n);let r=window.getSelection(),i=window.document.createRange();r.removeAllRanges(),i.selectNode(n),r.addRange(i);let a=!1;try{a=window.document.execCommand(`copy`)}finally{r.removeAllRanges(),window.document.body.removeChild(n)}if(!a)throw e()}async function r(r){try{await t(r)}catch(t){try{await n(r)}catch(n){throw n||t||e()}}}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -1 +0,0 @@
1
- const e=require(`./clipboard-ZMrs6wzK.cjs`);exports.clipboardCopy=e.t;
@@ -1,2 +0,0 @@
1
- import { t as clipboardCopy } from "./clipboard-Ci0l5Dtt.cjs";
2
- export { clipboardCopy };
@@ -1 +0,0 @@
1
- const e={data:`data`,code:`code`,msg:`msg`},t={label:`label`,value:`value`,json:`json`,disabled:`disabled`,children:`children`},n={pageSize:`pageSize`,pageNo:`pageNo`,total:`total`,records:`records`},r={baseURL:``,timeout:60*1e3,basePath:``,allowCancel:!1,allowNullValue:!0,successCode:[200],unauthorizedCode:[401],whiteUrl:()=>[],alias:()=>e,token:{key:`x-access-token`,get:()=>``}};Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
@@ -1 +0,0 @@
1
- const e={data:`data`,code:`code`,msg:`msg`},t={label:`label`,value:`value`,json:`json`,disabled:`disabled`,children:`children`},n={pageSize:`pageSize`,pageNo:`pageNo`,total:`total`,records:`records`},r={baseURL:``,timeout:60*1e3,basePath:``,allowCancel:!1,allowNullValue:!0,successCode:[200],unauthorizedCode:[401],whiteUrl:()=>[],alias:()=>e,token:{key:`x-access-token`,get:()=>``}};export{e as i,t as n,n as r,r as t};
@@ -1 +0,0 @@
1
- function e(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}export{e as t};
@@ -1 +0,0 @@
1
- function e(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,11 +0,0 @@
1
- //#region src/dom/contains.d.ts
2
- /**
3
- * @description: 是否包含节点
4
- * @param {Node} root
5
- * @param {Node} n
6
- * @return {*}
7
- * @autor: 刘 相卿
8
- */
9
- declare function contains(root: Node | null | undefined, n?: Node): boolean;
10
- //#endregion
11
- export { contains as t };
@@ -1 +0,0 @@
1
- const e=/margin|padding|width|height|max|min|offset/,t={left:!0,top:!0},n={cssFloat:1,styleFloat:1,float:1};function r(e){return e.nodeType===1?e.ownerDocument.defaultView.getComputedStyle(e,null):{}}function i(n,r,i){if(r=r.toLowerCase(),i===`auto`){if(r===`height`)return n.offsetHeight;if(r===`width`)return n.offsetWidth}return r in t||(t[r]=e.test(r)),t[r]?Number.parseFloat(i)||0:i}function a(e,t){let a=arguments.length,o=r(e);return t=n[t]?`cssFloat`in e.style?`cssFloat`:`styleFloat`:t,a===1?o:i(e,t,o[t]||e.style[t])}function o(t,i,a){let s=arguments.length;if(i=n[i]?`cssFloat`in t.style?`cssFloat`:`styleFloat`:i,s===3)return typeof a==`number`&&e.test(i)&&(a=`${a}px`),t.style[i]=a,a;for(let e in i)i.hasOwnProperty(e)&&o(t,e,i[e]);return r(t)}function s(e){return e===document.body?document.documentElement.clientWidth:e.offsetWidth}function c(e){return e===document.body?window.innerHeight||document.documentElement.clientHeight:e.offsetHeight}function l(){return{width:Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),height:Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)}}function u(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function d(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function f(e){let t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}export{c as a,o as c,f as i,a as n,s as o,l as r,d as s,u as t};
@@ -1,23 +0,0 @@
1
- //#region src/dom/css.d.ts
2
- declare function getCss(node: any, name: any): any;
3
- declare function setCss(node: any, name: any, value: any): any;
4
- declare function getOuterWidth(el: any): any;
5
- declare function getOuterHeight(el: HTMLElement): number;
6
- declare function getDocSize(): {
7
- width: number;
8
- height: number;
9
- };
10
- declare function getClientSize(): {
11
- width: number;
12
- height: number;
13
- };
14
- declare function getScroll(): {
15
- scrollLeft: number;
16
- scrollTop: number;
17
- };
18
- declare function getOffset(node: HTMLElement): {
19
- left: number;
20
- top: number;
21
- };
22
- //#endregion
23
- export { getOuterHeight as a, setCss as c, getOffset as i, getCss as n, getOuterWidth as o, getDocSize as r, getScroll as s, getClientSize as t };
@@ -1 +0,0 @@
1
- const e=/margin|padding|width|height|max|min|offset/,t={left:!0,top:!0},n={cssFloat:1,styleFloat:1,float:1};function r(e){return e.nodeType===1?e.ownerDocument.defaultView.getComputedStyle(e,null):{}}function i(n,r,i){if(r=r.toLowerCase(),i===`auto`){if(r===`height`)return n.offsetHeight;if(r===`width`)return n.offsetWidth}return r in t||(t[r]=e.test(r)),t[r]?Number.parseFloat(i)||0:i}function a(e,t){let a=arguments.length,o=r(e);return t=n[t]?`cssFloat`in e.style?`cssFloat`:`styleFloat`:t,a===1?o:i(e,t,o[t]||e.style[t])}function o(t,i,a){let s=arguments.length;if(i=n[i]?`cssFloat`in t.style?`cssFloat`:`styleFloat`:i,s===3)return typeof a==`number`&&e.test(i)&&(a=`${a}px`),t.style[i]=a,a;for(let e in i)i.hasOwnProperty(e)&&o(t,e,i[e]);return r(t)}function s(e){return e===document.body?document.documentElement.clientWidth:e.offsetWidth}function c(e){return e===document.body?window.innerHeight||document.documentElement.clientHeight:e.offsetHeight}function l(){return{width:Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),height:Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)}}function u(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function d(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function f(e){let t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
@@ -1,31 +0,0 @@
1
- import dayjs, { Dayjs } from "dayjs";
2
- import "dayjs/locale/zh-cn";
3
- import "dayjs/locale/en";
4
-
5
- //#region src/dayjs.d.ts
6
- type DateType = 'year' | 'month' | 'date' | 'week';
7
- /**
8
- * @description: 区间选择格式化
9
- * @param {dayjs} value
10
- * @param {DateType} formatType
11
- * @param {string} format
12
- * @return {*}
13
- * @autor: 刘 相卿
14
- */
15
- declare function dateRangeFormatter(value: dayjs.ConfigType[], formatType?: DateType, format?: string): unknown[];
16
- /**
17
- * @description: 设置语言
18
- * @param {*} locale
19
- * @return {*}
20
- * @autor: 刘 相卿
21
- */
22
- declare function setLocale(locale?: 'zh-cn' | 'en'): void;
23
- /**
24
- * @description: 动态注册dayjs组件
25
- * @param {string} pluginName
26
- * @return {*}
27
- * @autor: 刘 相卿
28
- */
29
- declare function registryDayjsPlugin(pluginName: string[]): Promise<void>;
30
- //#endregion
31
- export { registryDayjsPlugin as a, dayjs as i, Dayjs as n, setLocale as o, dateRangeFormatter as r, DateType as t };
@@ -1 +0,0 @@
1
- import{f as e,i as t}from"./base-854WVUaj.mjs";import n from"dayjs";import"dayjs/locale/zh-cn";import"dayjs/locale/en";function r(e){let t=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`],n=e.replace(/[^a-z\s]/gi,``).split(``),r=t.filter(e=>n.some(t=>e.includes(t)));return(r.length>0?r[r.length-1]:`s`)[0]||`s`}function i(i,a=`date`,o=`YYYY-MM-DD`){if(t(i)&&i.some(t=>e(t)))return i;let[s,c]=i;if(a!==`date`)return[n(s).startOf(a).format(`YYYY-MM-DD HH:mm:ss`),n(c).endOf(a).format(`YYYY-MM-DD HH:mm:ss`)];let l=r(o||`YYYY-MM-DD`);return[n(s).startOf(l).format(`YYYY-MM-DD HH:mm:ss`),n(c).endOf(l).format(`YYYY-MM-DD HH:mm:ss`)]}function a(e=`zh-cn`){n.locale(e)}async function o(e){let t=e.map(e=>()=>import(`dayjs/plugin/${e}`));for(let e of t)try{let t=await e();n.extend(t)}catch(e){console.error(`[registryDayjsPlugin]dayjs组件注册失败:`,e)}}export{a as i,n,o as r,i as t};
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`);let n=require(`dayjs`);n=e.r(n),require(`dayjs/locale/zh-cn`),require(`dayjs/locale/en`);function r(e){let t=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`],n=e.replace(/[^a-z\s]/gi,``).split(``),r=t.filter(e=>n.some(t=>e.includes(t)));return(r.length>0?r[r.length-1]:`s`)[0]||`s`}function i(e,i=`date`,a=`YYYY-MM-DD`){if(t.i(e)&&e.some(e=>t.f(e)))return e;let[o,s]=e;if(i!==`date`)return[(0,n.default)(o).startOf(i).format(`YYYY-MM-DD HH:mm:ss`),(0,n.default)(s).endOf(i).format(`YYYY-MM-DD HH:mm:ss`)];let c=r(a||`YYYY-MM-DD`);return[(0,n.default)(o).startOf(c).format(`YYYY-MM-DD HH:mm:ss`),(0,n.default)(s).endOf(c).format(`YYYY-MM-DD HH:mm:ss`)]}function a(e=`zh-cn`){n.default.locale(e)}async function o(e){let t=e.map(e=>()=>import(`dayjs/plugin/${e}`));for(let e of t)try{let t=await e();n.default.extend(t)}catch(e){console.error(`[registryDayjsPlugin]dayjs组件注册失败:`,e)}}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
package/dist/dayjs.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`);require(`./base-DUxrUTOr.cjs`);const t=require(`./dayjs-Bvzj_rlD.cjs`);let n=require(`dayjs`);exports.dateRangeFormatter=t.t,exports.dayjs=n.default,exports.registryDayjsPlugin=t.n,exports.setLocale=t.r;
package/dist/dayjs.d.cts DELETED
@@ -1,2 +0,0 @@
1
- import { a as registryDayjsPlugin, i as dayjs, n as Dayjs, o as setLocale, r as dateRangeFormatter, t as DateType } from "./dayjs-DgS65bx1.cjs";
2
- export { DateType, Dayjs, dateRangeFormatter, dayjs, registryDayjsPlugin, setLocale };
package/dist/dom/base.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`../base-DmSU_ydZ.cjs`);exports.getMaxZIndex=e.t,exports.getPx=e.n,exports.setDocumentTitle=e.r;
@@ -1,2 +0,0 @@
1
- import { n as getPx, r as setDocumentTitle, t as getMaxZIndex } from "../base-DSfexc9G.cjs";
2
- export { getMaxZIndex, getPx, setDocumentTitle };
@@ -1 +0,0 @@
1
- const e=require(`../class-D8a8qnWA.cjs`);exports.addClass=e.t,exports.hasClass=e.n,exports.removeClass=e.r;
@@ -1,2 +0,0 @@
1
- import { n as hasClass, r as removeClass, t as addClass } from "../class-Bp70Yi1y.cjs";
2
- export { addClass, hasClass, removeClass };
@@ -1 +0,0 @@
1
- const e=require(`../contains-CYQgjY4K.cjs`);module.exports=e.t;
@@ -1,2 +0,0 @@
1
- import { t as contains } from "../contains-D3q8gHUu.cjs";
2
- export = contains;
package/dist/dom/css.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`../css-WYllKaVv.cjs`);exports.getClientSize=e.t,exports.getCss=e.n,exports.getDocSize=e.r,exports.getOffset=e.i,exports.getOuterHeight=e.a,exports.getOuterWidth=e.o,exports.getScroll=e.s,exports.setCss=e.c;
@@ -1,2 +0,0 @@
1
- import { a as getOuterHeight, c as setCss, i as getOffset, n as getCss, o as getOuterWidth, r as getDocSize, s as getScroll, t as getClientSize } from "../css-5xR1zP0f.cjs";
2
- export { getClientSize, getCss, getDocSize, getOffset, getOuterHeight, getOuterWidth, getScroll, setCss };