@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
@@ -0,0 +1 @@
1
+ "use strict";var ie=Object.create;var x=Object.defineProperty;var se=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var ce=Object.getPrototypeOf,le=Object.prototype.hasOwnProperty;var ue=(e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})},W=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ae(t))!le.call(e,o)&&o!==n&&x(e,o,{get:()=>t[o],enumerable:!(r=se(t,o))||r.enumerable});return e};var f=(e,t,n)=>(n=e!=null?ie(ce(e)):{},W(t||!e||!e.__esModule?x(n,"default",{value:e,enumerable:!0}):n,e)),fe=e=>W(x({},"__esModule",{value:!0}),e);var ot={};ue(ot,{addClass:()=>ge,animation:()=>We,backLastFocusNode:()=>Re,clearContainerCache:()=>ve,clearLastFocusNode:()=>je,contains:()=>y,findDOMNode:()=>O,findDomNode:()=>O,getClientSize:()=>we,getCookie:()=>I,getCss:()=>he,getDocSize:()=>be,getFocusNodeList:()=>Z,getLocalStorage:()=>j,getMaxZIndex:()=>Ve,getOffset:()=>Se,getOuterHeight:()=>Te,getOuterWidth:()=>xe,getPx:()=>Be,getScroll:()=>Ee,getScrollbarWidth:()=>tt,getSessionStorage:()=>R,getVideoPoster:()=>nt,hasClass:()=>C,iframePostHook:()=>Je,iframeReceiveHook:()=>Xe,injectCSS:()=>D,isStyleSupport:()=>Pe,isVisible:()=>T,limitTabRange:()=>Ie,postMessage2Top:()=>et,removeCSS:()=>Ne,removeClass:()=>me,saveLastFocusNode:()=>Ae,setCss:()=>q,setDocumentTitle:()=>$e,styleNames:()=>N,transition:()=>Ue,updateCSS:()=>De});module.exports=fe(ot);function de(e){let t=e?.vnode?.el||e&&(e.$el||e);for(;t&&!t.tagName;)t=t.nextSibling;return t}var O=de;var T=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){let{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1};function y(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}var U=e=>typeof e=="string";var $=e=>Array.isArray(e);var b=e=>Object.prototype.toString.call(e)==="[object Object]";function M(e=10){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=t.length;for(let o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}function pe(e){let t={},n=e.split(";");for(let r of n){if(!r)continue;let o=r.split(":");o[0]&&(t[o[0]]=o[1])}return t}function N(...e){if(e.length<1)return;let t={};for(let n of e)if(n)if(U(n))Object.assign(t,pe(n));else if($(n)){let r=N(...n);r&&Object.assign(t,r)}else b(n)&&Object.assign(t,n);return t}function C(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function ge(e,t){e.classList?e.classList.add(t):C(e,t)||(e.className=`${e.className} ${t}`)}function me(e,t){if(e.classList)e.classList.remove(t);else if(C(e,t)){let n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}var B=/margin|padding|width|height|max|min|offset/,v={left:!0,top:!0},V={cssFloat:1,styleFloat:1,float:1};function G(e){return e.nodeType===1?e.ownerDocument.defaultView.getComputedStyle(e,null):{}}function ye(e,t,n){if(t=t.toLowerCase(),n==="auto"){if(t==="height")return e.offsetHeight;if(t==="width")return e.offsetWidth}return t in v||(v[t]=B.test(t)),v[t]?Number.parseFloat(n)||0:n}function he(e,t){let n=arguments.length,r=G(e);return t=V[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,n===1?r:ye(e,t,r[t]||e.style[t])}function q(e,t,n){let r=arguments.length;if(t=V[t]?"cssFloat"in e.style?"cssFloat":"styleFloat":t,r===3)return typeof n=="number"&&B.test(t)&&(n=`${n}px`),e.style[t]=n,n;for(let o in t)t.hasOwnProperty(o)&&q(e,o,t[o]);return G(e)}function xe(e){return e===document.body?document.documentElement.clientWidth:e.offsetWidth}function Te(e){return e===document.body?window.innerHeight||document.documentElement.clientHeight:e.offsetHeight}function be(){let e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),t=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:e,height:t}}function we(){let e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Ee(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Se(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)}}function Le(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var m=Le;var z="data-vc-order",Oe="vc-util-key",w=new Map;function K({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Oe}function E(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Me(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _(e){return Array.from((w.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function D(e,t={}){if(!m())return null;let{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(z,Me(r)),n?.nonce&&(o.nonce=n?.nonce),o.innerHTML=e;let i=E(t),{firstChild:s}=i;if(r){if(r==="queue"){let c=_(i).filter(h=>["prepend","prependQueue"].includes(h.getAttribute(z)));if(c.length)return i.insertBefore(o,c[c.length-1].nextSibling),o}i.insertBefore(o,s)}else i.appendChild(o);return o}function Q(e,t={}){let n=E(t);return _(n).find(r=>r.getAttribute(K(t))===e)}function Ne(e,t={}){let n=Q(e,t);n&&E(t).removeChild(n)}function Ce(e,t){let n=w.get(e);if(!n||!y(document,n)){let r=D("",t),{parentNode:o}=r;w.set(e,o),e.removeChild(r)}}function ve(){w.clear()}function De(e,t,n={}){let r=E(n);Ce(r,n);let o=Q(t,n);if(o)return n.csp?.nonce&&o.nonce!==n.csp?.nonce&&(o.nonce=n.csp?.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;let i=D(e,n);return i.setAttribute(K(n),t),i}function Y(e,t=!1){if(T(e)){let n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),s=null;return o&&!Number.isNaN(i)?s=i:r&&s===null&&(s=0),r&&e.disabled&&(s=null),s!==null&&(s>=0||t&&s<0)}return!1}function Z(e,t=!1){let n=[...e.querySelectorAll("*")].filter(r=>Y(r,t));return Y(e,t)&&n.unshift(e),n}var S=null;function Ae(){S=document.activeElement}function je(){S=null}function Re(){if(S)try{S.focus()}catch{}}function Ie(e,t){if(t.keyCode===9){let n=Z(e);(n[t.shiftKey?0:n.length-1]===document.activeElement||e===document.activeElement)&&(n[t.shiftKey?n.length-1:0].focus(),t.preventDefault())}}function J(e){if(m()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1}function He(e,t){if(!J(e))return!1;let n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}function Pe(e,t){return!Array.isArray(e)&&t!==void 0?He(e,t):J(e)}var Fe={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",animation:"animationend"},ke={WebkitTransition:"webkitTransitionEnd",OTransition:"oTransitionEnd",transition:"transitionend"};function X(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}var We=m()&&X(Fe),Ue=m()&&X(ke);function $e(e){document.title=e}function Be(e,t=1920,n=1080){let r=document.documentElement.clientWidth||document.body.clientWidth||t,o=window.screen.height||document.body.clientHeight||t,i=t/n;return r/o/i*e}function Ve(){let e=document.querySelectorAll("[style*=z-index]"),t=0;return e.forEach(n=>{let r=window.getComputedStyle(n).zIndex;if(r!=="auto"){let o=Number.parseInt(r,10);!Number.isNaN(o)&&o>t&&(t=o)}}),t+1}var Ge=f(require("lodash.clonedeep")),qe=f(require("lodash.debounce")),A=f(require("lodash.merge")),ze=f(require("lodash.clone")),Ke=f(require("lodash.get")),_e=f(require("lodash.set")),Qe=f(require("lodash.has")),Ye=f(require("lodash.kebabcase")),Ze=f(require("lodash.camelcase"));function j(e=[]){return localStorage?e.length?e.reduce((t,n)=>(t[n]=localStorage.getItem(n),t),{}):Object.keys(localStorage).reduce((t,n)=>(t[n]=localStorage.getItem(n),t),{}):e.length===1?null:{}}function R(e=[]){return sessionStorage?sessionStorage?e.length?e.reduce((t,n)=>(t[n]=sessionStorage.getItem(n),t),{}):Object.keys(sessionStorage).reduce((t,n)=>(t[n]=sessionStorage.getItem(n),t),{}):null:e.length===1?null:{}}function I(e=[]){if(document.cookie){let t=document.cookie.split("; ").reduce((n,r)=>{let[o="",i=""]=r.split("=").map(decodeURIComponent);return n[o]=i,n},{});return e.length?e.reduce((n,r)=>(n[r]=t[r],n),{}):t}else return e.length===1?null:{}}function Je(e,t){let n=e,r={timeout:5e3,allowPostOrigins:"",allowReceiveOrigins:""},o=()=>{r=(0,A.default)({},r,t)},i=new Map,s=()=>{if(n&&n?.contentWindow)return!0;throw new Error("iframe content not load!")},c=(a,u="default")=>({uuid:M(10),type:u,content:a}),h=a=>{if((r.allowReceiveOrigins?.split(",")??[]).some(l=>l==="*"||l===a.origin)){let l=a.data;l.uuid&&i.has(l.uuid)&&i.set(l.uuid,l.content)}},ee=(a,u)=>{s();let l=u??n.src,p=r.allowPostOrigins?.split(",")??[];if(l&&p.some(g=>g==="*"||l.includes(g)))i.set(a.uuid,null),n.contentWindow?.postMessage(a,l);else throw new Error(`iframe[${l}]\u4E0D\u5728[configs.allowPostOrigins]\u8303\u56F4\u5185!`)},H=(a,u)=>new Promise((p,g)=>{try{let d=b(a)&&a.uuid?a:c(a);if(ee(d,u),d.uuid)i.set(d.uuid,null);else throw new Error("\u6D88\u606F\u53D1\u9001\u5931\u8D25");let P=0,F=setInterval(()=>{let k=i.get(d.uuid);if(k!==null){clearInterval(F),i.delete(d.uuid),p(k);return}if(P+=10,P>=r.timeout)throw clearInterval(F),new Error("\u6D88\u606F\u56DE\u4F20\u8D85\u65F6!")},10)}catch(d){g(d)}}),L=async(a,u,l)=>{let p=null;try{let g=c(u,a);p=await H(g,l)}catch{p=null}return p},te=(a="",u)=>L("LocalStorage",a,u),ne=(a="",u)=>L("SessionStorage",a,u),oe=(a="",u)=>L("Cookie",a,u),re=()=>{s(),window.addEventListener("message",h)};return{load:()=>(o(),new Promise(a=>{n.onload=()=>{a(!0)},re()})),post:H,destory:()=>{window.removeEventListener("message",h)},getLocalStorage:te,getSessionStorage:ne,getCookie:oe,messageFormat:c}}async function Xe(e,t,n){if(window.top===window.self)throw new Error(`\u9875\u9762[${location.origin}]\u975Eiframe\u5D4C\u5165\u65B9\u5F0F, \u4E0D\u5141\u8BB8\u63A5\u6536message!`);if((n?.split(",")??[]).some(o=>o==="*"||o===e.origin)){let o=["default","LocalStorage","SessionStorage","Cookie"],i=e.data;if(i&&i.uuid&&o.includes(i.type)){let s=null;try{if(i.type==="LocalStorage"){let c=j(i.content?[i.content]:[]);i.content?s=c?.[i.content]:s=c}else if(i.type==="SessionStorage"){let c=R(i.content?[i.content]:[]);i.content?s=c?.[i.content]:s=c}else if(i.type==="Cookie"){let c=I(i.content?[i.content]:[]);i.content?s=c?.[i.content]:s=c}else t?s=await t(i.content):s=null;s===null&&(s=void 0)}catch{s=null}window.top&&window.top.postMessage({...i,content:s},e.origin)}}}function et(e,t){window.top&&window.top!==window.self&&window.top.postMessage({uuid:M(),content:e},t??window.top.origin)}function tt(){let e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);let t=document.createElement("div");t.style.width="100%",e.appendChild(t);let n=e.offsetWidth-t.offsetWidth;return e.parentNode?.removeChild(e),n}function nt(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 o=document.createElement("canvas");o.width=n.videoWidth,o.height=n.videoHeight,o.getContext("2d")?.drawImage(n,0,0,o.width,o.height);let s=o.toDataURL("image/png");t(s),URL.revokeObjectURL(r)})})}0&&(module.exports={addClass,animation,backLastFocusNode,clearContainerCache,clearLastFocusNode,contains,findDOMNode,findDomNode,getClientSize,getCookie,getCss,getDocSize,getFocusNodeList,getLocalStorage,getMaxZIndex,getOffset,getOuterHeight,getOuterWidth,getPx,getScroll,getScrollbarWidth,getSessionStorage,getVideoPoster,hasClass,iframePostHook,iframeReceiveHook,injectCSS,isStyleSupport,isVisible,limitTabRange,postMessage2Top,removeCSS,removeClass,saveLastFocusNode,setCss,setDocumentTitle,styleNames,transition,updateCSS});
@@ -1 +1 @@
1
- import"../base-854WVUaj.mjs";import"../lodash-iHVEJs1z.mjs";import{t as e}from"../find-dom-node-gbroqN2N.mjs";import{t}from"../is-visible-BXbqt6I2.mjs";import{t as n}from"../contains-BpG9RIaT.mjs";import{t as r}from"../style-names-cEIIM3cL.mjs";import{n as i,r as a,t as o}from"../class-C29-Mh-o.mjs";import{a as s,c,i as l,n as u,o as d,r as f,s as p,t as m}from"../css-DIpTZrC7.mjs";import"../can-use-dom-DiyvIP5G.mjs";import{i as h,n as g,r as _,t as v}from"../dynamic-css-CP1iFszw.mjs";import{a as y,i as b,n as x,r as S,t as C}from"../focus-REYXIBdQ.mjs";import{t as w}from"../style-checker-066o7h7_.mjs";import{n as T,t as E}from"../support-wu9hh5gZ.mjs";import{n as D,r as O,t as k}from"../base-BSg8gJZf.mjs";import{n as A,r as j,t as M}from"../storage-CVE8yo6N.mjs";import{n as N,r as P,t as F}from"../iframe-ByOdqFYr.mjs";import{t as I}from"../scrollbar-BsVSwcz1.mjs";import{t as L}from"../video-CtkByFxt.mjs";import"../dom-D2QfuVth.mjs";export{o as addClass,E as animation,C as backLastFocusNode,v as clearContainerCache,x as clearLastFocusNode,n as contains,e as findDOMNode,e as findDomNode,m as getClientSize,M as getCookie,u as getCss,f as getDocSize,S as getFocusNodeList,A as getLocalStorage,k as getMaxZIndex,l as getOffset,s as getOuterHeight,d as getOuterWidth,D as getPx,p as getScroll,I as getScrollbarWidth,j as getSessionStorage,L as getVideoPoster,i as hasClass,F as iframePostHook,N as iframeReceiveHook,g as injectCSS,w as isStyleSupport,t as isVisible,b as limitTabRange,P as postMessage2Top,_ as removeCSS,a as removeClass,y as saveLastFocusNode,c as setCss,O as setDocumentTitle,r as styleNames,T as transition,h as updateCSS};
1
+ import"../chunk-PM3H3ISM.mjs";import{a as K}from"../chunk-MUUIQW2M.mjs";import{a as y}from"../chunk-E4SEMOGO.mjs";import{a as d}from"../chunk-NX2HGAYK.mjs";import{a as z,b as A}from"../chunk-DDHFJKTT.mjs";import{a as L}from"../chunk-3EVCK72A.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m,g as n,h as o}from"../chunk-SAXMBV46.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-4JPCGRPU.mjs";import"../chunk-KGXCJWE5.mjs";import{a as c}from"../chunk-IZHCWZIN.mjs";import{a}from"../chunk-DKKF6DRJ.mjs";import{a as t,b as u,c as v,d as w,e as x}from"../chunk-X7TUTCBW.mjs";import{a as H,b as I,c as J}from"../chunk-VYAKT4FB.mjs";import{a as E,b as F,c as G}from"../chunk-WN7L4HYY.mjs";import{a as b}from"../chunk-G6NAYP42.mjs";import{a as B,b as C,c as D}from"../chunk-PE3DNHCL.mjs";import{a as e,b as f,c as g}from"../chunk-MQBXN7R5.mjs";import"../chunk-A5BXGBYT.mjs";import"../chunk-CTKIL4BL.mjs";export{f as addClass,z as animation,w as backLastFocusNode,r as clearContainerCache,v as clearLastFocusNode,c as contains,a as findDOMNode,a as findDomNode,m as getClientSize,G as getCookie,h as getCss,l as getDocSize,t as getFocusNodeList,E as getLocalStorage,D as getMaxZIndex,o as getOffset,k as getOuterHeight,j as getOuterWidth,C as getPx,n as getScroll,K as getScrollbarWidth,F as getSessionStorage,L as getVideoPoster,e as hasClass,H as iframePostHook,I as iframeReceiveHook,p as injectCSS,y as isStyleSupport,b as isVisible,x as limitTabRange,J as postMessage2Top,q as removeCSS,g as removeClass,u as saveLastFocusNode,i as setCss,B as setDocumentTitle,d as styleNames,A as transition,s as updateCSS};
@@ -1,2 +1,3 @@
1
- import { t as _default } from "../is-visible-BpFCb4uJ.mjs";
2
- export { _default as default };
1
+ declare const _default: (element: Element) => boolean;
2
+
3
+ export { _default as default };
@@ -0,0 +1,3 @@
1
+ declare const _default: (element: Element) => boolean;
2
+
3
+ export { _default as default };
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var o=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var i in e)n(t,i,{get:e[i],enumerable:!0})},g=(t,e,i,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of o(e))!s.call(t,r)&&r!==i&&n(t,r,{get:()=>e[r],enumerable:!(f=a(e,r))||f.enumerable});return t};var h=t=>g(n({},"__esModule",{value:!0}),t);var B={};u(B,{default:()=>c});module.exports=h(B);var c=t=>{if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){let{width:e,height:i}=t.getBBox();if(e||i)return!0}if(t.getBoundingClientRect){let{width:e,height:i}=t.getBoundingClientRect();if(e||i)return!0}}return!1};
@@ -1 +1 @@
1
- import{t as e}from"../is-visible-BXbqt6I2.mjs";export{e as default};
1
+ import{a}from"../chunk-G6NAYP42.mjs";export{a as default};
@@ -1,4 +1,3 @@
1
- //#region src/dom/lib/can-use-dom.d.ts
2
1
  declare function canUseDom(): boolean;
3
- //#endregion
4
- export { canUseDom as default };
2
+
3
+ export { canUseDom as default };
@@ -0,0 +1,3 @@
1
+ declare function canUseDom(): boolean;
2
+
3
+ export { canUseDom as default };
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var f=(n,e)=>{for(var t in e)d(n,t,{get:e[t],enumerable:!0})},m=(n,e,t,u)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of c(e))!i.call(n,o)&&o!==t&&d(n,o,{get:()=>e[o],enumerable:!(u=w(e,o))||u.enumerable});return n};var r=n=>m(d({},"__esModule",{value:!0}),n);var p={};f(p,{default:()=>l});module.exports=r(p);function a(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var l=a;
@@ -1 +1 @@
1
- import{t as e}from"../../can-use-dom-DiyvIP5G.mjs";export{e as default};
1
+ import{a}from"../../chunk-KGXCJWE5.mjs";export{a as default};
@@ -1,2 +1,8 @@
1
- import { t as getScrollbarWidth } from "../scrollbar-B0PNF6i2.mjs";
2
- export { getScrollbarWidth };
1
+ /**
2
+ * @description: 计算滚动条宽度
3
+ * @return {*}
4
+ * @autor: 刘 相卿
5
+ */
6
+ declare function getScrollbarWidth(): number;
7
+
8
+ export { getScrollbarWidth };
@@ -1,9 +1,8 @@
1
- //#region src/dom/scrollbar.d.ts
2
1
  /**
3
2
  * @description: 计算滚动条宽度
4
3
  * @return {*}
5
4
  * @autor: 刘 相卿
6
5
  */
7
6
  declare function getScrollbarWidth(): number;
8
- //#endregion
9
- export { getScrollbarWidth as t };
7
+
8
+ export { getScrollbarWidth };
@@ -0,0 +1 @@
1
+ "use strict";var o=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var c=(e,t)=>{for(var d in t)o(e,d,{get:t[d],enumerable:!0})},h=(e,t,d,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of r(t))!s.call(e,i)&&i!==d&&o(e,i,{get:()=>t[i],enumerable:!(l=n(t,i))||l.enumerable});return e};var p=e=>h(o({},"__esModule",{value:!0}),e);var m={};c(m,{getScrollbarWidth:()=>a});module.exports=p(m);function a(){let e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);let t=document.createElement("div");t.style.width="100%",e.appendChild(t);let d=e.offsetWidth-t.offsetWidth;return e.parentNode?.removeChild(e),d}0&&(module.exports={getScrollbarWidth});
@@ -1 +1 @@
1
- import{t as e}from"../scrollbar-BsVSwcz1.mjs";export{e as getScrollbarWidth};
1
+ import{a}from"../chunk-MUUIQW2M.mjs";export{a as getScrollbarWidth};
@@ -1,3 +1,20 @@
1
- import "../types-BEdiy6mb.mjs";
2
- import { n as getLocalStorage, r as getSessionStorage, t as getCookie } from "../storage-HTBNfA8Q.mjs";
3
- export { getCookie, getLocalStorage, getSessionStorage };
1
+ import { ObjectDataType } from '../types.mjs';
2
+ import 'axios';
3
+
4
+ /**
5
+ * @description: 获取本地存储(LocalStorage)
6
+ * @param {string[]} keys
7
+ * @return {*}
8
+ * @autor: 刘 相卿
9
+ */
10
+ declare function getLocalStorage(keys?: string[]): ObjectDataType | null;
11
+ /**
12
+ * @description: 获取本地存储(SessionStorage)
13
+ * @param {string[]} keys
14
+ * @return {*}
15
+ * @autor: 刘 相卿
16
+ */
17
+ declare function getSessionStorage(keys?: string[]): ObjectDataType | null;
18
+ declare function getCookie(keys?: string[]): Record<string, string> | null;
19
+
20
+ export { getCookie, getLocalStorage, getSessionStorage };
@@ -1,6 +1,5 @@
1
- import { u as ObjectDataType } from "./types-DTtPjrm8.cjs";
2
-
3
- //#region src/dom/storage.d.ts
1
+ import { ObjectDataType } from '../types.js';
2
+ import 'axios';
4
3
 
5
4
  /**
6
5
  * @description: 获取本地存储(LocalStorage)
@@ -17,5 +16,5 @@ declare function getLocalStorage(keys?: string[]): ObjectDataType | null;
17
16
  */
18
17
  declare function getSessionStorage(keys?: string[]): ObjectDataType | null;
19
18
  declare function getCookie(keys?: string[]): Record<string, string> | null;
20
- //#endregion
21
- export { getLocalStorage as n, getSessionStorage as r, getCookie as t };
19
+
20
+ export { getCookie, getLocalStorage, getSessionStorage };
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var i=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})},u=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of c(e))!g.call(r,o)&&o!==t&&a(r,o,{get:()=>e[o],enumerable:!(n=l(e,o))||n.enumerable});return r};var p=r=>u(a({},"__esModule",{value:!0}),r);var m={};i(m,{getCookie:()=>f,getLocalStorage:()=>d,getSessionStorage:()=>S});module.exports=p(m);function d(r=[]){return localStorage?r.length?r.reduce((e,t)=>(e[t]=localStorage.getItem(t),e),{}):Object.keys(localStorage).reduce((e,t)=>(e[t]=localStorage.getItem(t),e),{}):r.length===1?null:{}}function S(r=[]){return sessionStorage?sessionStorage?r.length?r.reduce((e,t)=>(e[t]=sessionStorage.getItem(t),e),{}):Object.keys(sessionStorage).reduce((e,t)=>(e[t]=sessionStorage.getItem(t),e),{}):null:r.length===1?null:{}}function f(r=[]){if(document.cookie){let e=document.cookie.split("; ").reduce((t,n)=>{let[o="",s=""]=n.split("=").map(decodeURIComponent);return t[o]=s,t},{});return r.length?r.reduce((t,n)=>(t[n]=e[n],t),{}):e}else return r.length===1?null:{}}0&&(module.exports={getCookie,getLocalStorage,getSessionStorage});
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"../storage-CVE8yo6N.mjs";export{n as getCookie,e as getLocalStorage,t as getSessionStorage};
1
+ import{a,b,c}from"../chunk-WN7L4HYY.mjs";export{c as getCookie,a as getLocalStorage,b as getSessionStorage};
@@ -1,2 +1,4 @@
1
- import { t as isStyleSupport } from "../style-checker-B5wzcdHi.mjs";
2
- export { isStyleSupport };
1
+ declare function isStyleSupport(styleName: string | string[]): boolean;
2
+ declare function isStyleSupport(styleName: string, styleValue: any): boolean;
3
+
4
+ export { isStyleSupport };
@@ -1,5 +1,4 @@
1
- //#region src/dom/style-checker.d.ts
2
1
  declare function isStyleSupport(styleName: string | string[]): boolean;
3
2
  declare function isStyleSupport(styleName: string, styleValue: any): boolean;
4
- //#endregion
5
- export { isStyleSupport as t };
3
+
4
+ export { isStyleSupport };
@@ -0,0 +1 @@
1
+ "use strict";var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var l=(n,t)=>{for(var e in t)i(n,e,{get:t[e],enumerable:!0})},f=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of c(t))!d.call(n,r)&&r!==e&&i(n,r,{get:()=>t[r],enumerable:!(o=a(t,r))||o.enumerable});return n};var p=n=>f(i({},"__esModule",{value:!0}),n);var S={};l(S,{isStyleSupport:()=>w});module.exports=p(S);function y(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var u=y;function s(n){if(u()&&window.document.documentElement){let t=Array.isArray(n)?n:[n],{documentElement:e}=window.document;return t.some(o=>o in e.style)}return!1}function m(n,t){if(!s(n))return!1;let e=document.createElement("div"),o=e.style[n];return e.style[n]=t,e.style[n]!==o}function w(n,t){return!Array.isArray(n)&&t!==void 0?m(n,t):s(n)}0&&(module.exports={isStyleSupport});
@@ -1 +1 @@
1
- import"../can-use-dom-DiyvIP5G.mjs";import{t as e}from"../style-checker-066o7h7_.mjs";export{e as isStyleSupport};
1
+ import{a}from"../chunk-E4SEMOGO.mjs";import"../chunk-KGXCJWE5.mjs";export{a as isStyleSupport};
@@ -1,2 +1,3 @@
1
- import { t as styleNames } from "../style-names-DDdz6-7S.mjs";
2
- export { styleNames };
1
+ declare function styleNames(...names: any[]): undefined | Record<string, any>;
2
+
3
+ export { styleNames };
@@ -1,4 +1,3 @@
1
- //#region src/dom/style-names.d.ts
2
1
  declare function styleNames(...names: any[]): undefined | Record<string, any>;
3
- //#endregion
4
- export { styleNames as t };
2
+
3
+ export { styleNames };
@@ -0,0 +1 @@
1
+ "use strict";var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var f=(t,n)=>{for(var e in n)i(t,e,{get:n[e],enumerable:!0})},g=(t,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of l(n))!y.call(t,r)&&r!==e&&i(t,r,{get:()=>n[r],enumerable:!(o=p(n,r))||o.enumerable});return t};var b=t=>g(i({},"__esModule",{value:!0}),t);var m={};f(m,{styleNames:()=>u});module.exports=b(m);var s=t=>typeof t=="string";var c=t=>Array.isArray(t);var a=t=>Object.prototype.toString.call(t)==="[object Object]";function x(t){let n={},e=t.split(";");for(let o of e){if(!o)continue;let r=o.split(":");r[0]&&(n[r[0]]=r[1])}return n}function u(...t){if(t.length<1)return;let n={};for(let e of t)if(e)if(s(e))Object.assign(n,x(e));else if(c(e)){let o=u(...e);o&&Object.assign(n,o)}else a(e)&&Object.assign(n,e);return n}0&&(module.exports={styleNames});
@@ -1 +1 @@
1
- import"../base-854WVUaj.mjs";import{t as e}from"../style-names-cEIIM3cL.mjs";export{e as styleNames};
1
+ import{a}from"../chunk-NX2HGAYK.mjs";import"../chunk-A5BXGBYT.mjs";export{a as styleNames};
@@ -1,2 +1,8 @@
1
- import { n as transition, t as animation } from "../support-BKRoxgNc.mjs";
2
- export { animation, transition };
1
+ declare const animation: false | {
2
+ end: any;
3
+ };
4
+ declare const transition: false | {
5
+ end: any;
6
+ };
7
+
8
+ export { animation, transition };
@@ -0,0 +1,8 @@
1
+ declare const animation: false | {
2
+ end: any;
3
+ };
4
+ declare const transition: false | {
5
+ end: any;
6
+ };
7
+
8
+ export { animation, transition };
@@ -0,0 +1 @@
1
+ "use strict";var e=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var u=(n,t)=>{for(var i in t)e(n,i,{get:t[i],enumerable:!0})},f=(n,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of m(t))!c.call(n,o)&&o!==i&&e(n,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return n};var E=n=>f(e({},"__esModule",{value:!0}),n);var k={};u(k,{animation:()=>y,transition:()=>b});module.exports=E(k);function w(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var a=w;var p={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",animation:"animationend"},l={WebkitTransition:"webkitTransitionEnd",OTransition:"oTransitionEnd",transition:"transitionend"};function d(n){let t=document.createElement("div");for(let i in n)if(n.hasOwnProperty(i)&&t.style[i]!==void 0)return{end:n[i]};return!1}var y=a()&&d(p),b=a()&&d(l);0&&(module.exports={animation,transition});
@@ -1 +1 @@
1
- import"../can-use-dom-DiyvIP5G.mjs";import{n as e,t}from"../support-wu9hh5gZ.mjs";export{t as animation,e as transition};
1
+ import{a,b}from"../chunk-DDHFJKTT.mjs";import"../chunk-KGXCJWE5.mjs";export{a as animation,b as transition};
@@ -1,2 +1,9 @@
1
- import { t as getVideoPoster } from "../video-C_sYI0Ht.mjs";
2
- export { getVideoPoster };
1
+ /**
2
+ * @description: 获取视频文件的封面
3
+ * @param {File} file
4
+ * @return {*}
5
+ * @autor: 刘 相卿
6
+ */
7
+ declare function getVideoPoster(file: File): Promise<string>;
8
+
9
+ export { getVideoPoster };
@@ -1,4 +1,3 @@
1
- //#region src/dom/video.d.ts
2
1
  /**
3
2
  * @description: 获取视频文件的封面
4
3
  * @param {File} file
@@ -6,5 +5,5 @@
6
5
  * @autor: 刘 相卿
7
6
  */
8
7
  declare function getVideoPoster(file: File): Promise<string>;
9
- //#endregion
10
- export { getVideoPoster as t };
8
+
9
+ export { getVideoPoster };
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var m=(d,n)=>{for(var e in n)a(d,e,{get:n[e],enumerable:!0})},g=(d,n,e,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of r(n))!s.call(d,t)&&t!==e&&a(d,t,{get:()=>n[t],enumerable:!(o=c(n,t))||o.enumerable});return d};var v=d=>g(a({},"__esModule",{value:!0}),d);var L={};m(L,{getVideoPoster:()=>h});module.exports=v(L);function h(d){return new Promise(n=>{let e=document.createElement("video"),o=URL.createObjectURL(d);e.src=o,e.addEventListener("loadedmetadata",()=>{e.currentTime=0}),e.addEventListener("seeked",()=>{let t=document.createElement("canvas");t.width=e.videoWidth,t.height=e.videoHeight,t.getContext("2d")?.drawImage(e,0,0,t.width,t.height);let i=t.toDataURL("image/png");n(i),URL.revokeObjectURL(o)})})}0&&(module.exports={getVideoPoster});
@@ -1 +1 @@
1
- import{t as e}from"../video-CtkByFxt.mjs";export{e as getVideoPoster};
1
+ import{a}from"../chunk-3EVCK72A.mjs";export{a as getVideoPoster};
@@ -1,2 +1,28 @@
1
- import { i as encryptText, n as decryptText, r as encrypt, t as createPwd } from "./encrypt-CHxdyuoC.mjs";
2
- export { createPwd, decryptText, encrypt, encryptText };
1
+ /**
2
+ * @description AES密码加密
3
+ * @param {string} pwd 密码
4
+ * @param {string} key Key
5
+ * @param {string} iv IV
6
+ * @returns {string} 加密后的密码
7
+ */
8
+ declare function encrypt(pwd: string, key: string, iv: string): string;
9
+ /**
10
+ * @description 生成加密密码
11
+ * @param {string} password 密码
12
+ * @return {string} 加密后的密码
13
+ */
14
+ declare const createPwd: (password: string) => string;
15
+ /**
16
+ * @description 加密
17
+ * @param {string} v 明文
18
+ * @return
19
+ */
20
+ declare const encryptText: (v: string) => string;
21
+ /**
22
+ * @description 解密
23
+ * @param {string} k 密文
24
+ * @return
25
+ */
26
+ declare const decryptText: (k: string) => string;
27
+
28
+ export { createPwd, decryptText, encrypt, encryptText };
@@ -1,4 +1,3 @@
1
- //#region src/encrypt.d.ts
2
1
  /**
3
2
  * @description AES密码加密
4
3
  * @param {string} pwd 密码
@@ -25,5 +24,5 @@ declare const encryptText: (v: string) => string;
25
24
  * @return
26
25
  */
27
26
  declare const decryptText: (k: string) => string;
28
- //#endregion
29
- export { encryptText as i, decryptText as n, encrypt as r, createPwd as t };
27
+
28
+ export { createPwd, decryptText, encrypt, encryptText };
@@ -0,0 +1 @@
1
+ "use strict";var x=Object.create;var s=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var w=(t,n)=>{for(var r in n)s(t,r,{get:n[r],enumerable:!0})},d=(t,n,r,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of j(n))!S.call(t,o)&&o!==r&&s(t,o,{get:()=>n[o],enumerable:!(c=f(n,o))||c.enumerable});return t};var A=(t,n,r)=>(r=t!=null?x(E(t)):{},d(n||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),K=t=>d(s({},"__esModule",{value:!0}),t);var u={};w(u,{createPwd:()=>P,decryptText:()=>h,encrypt:()=>a,encryptText:()=>Z});module.exports=K(u);var e=A(require("crypto-js")),{atob:p,btoa:i}=window,T=i("OTc2NWE3ZDFkYjI1MjZkOQ=="),U=i("a2o4ZTYxajhsajM3NTA5NA==");function a(t,n,r){let c=e.default.enc.Utf8.parse(t),o=e.default.enc.Utf8.parse(n),y=e.default.enc.Utf8.parse(r),m=e.default.AES.encrypt(c,o,{iv:y,mode:e.default.mode.CBC,padding:e.default.pad.ZeroPadding});return e.default.enc.Base64.stringify(m.ciphertext)}var P=t=>a(t,p(p(T)),p(p(U))),g=i("jK2oBORH4mcIPhKymU0e7E=="),Z=t=>e.default.AES.encrypt(t,g).toString(),h=t=>e.default.AES.decrypt(t,g).toString(e.default.enc.Utf8);0&&(module.exports={createPwd,decryptText,encrypt,encryptText});
package/dist/encrypt.mjs CHANGED
@@ -1 +1 @@
1
- import{i as e,n as t,r as n,t as r}from"./encrypt-Z5CU2r_1.mjs";export{r as createPwd,t as decryptText,n as encrypt,e as encryptText};
1
+ import{a,b,c,d}from"./chunk-EUDEMS67.mjs";export{b as createPwd,d as decryptText,a as encrypt,c as encryptText};
package/dist/file.d.mts CHANGED
@@ -1,2 +1,35 @@
1
- import { i as fileToBase64, n as base64ToFile, r as chunkFile, t as FileChunkType } from "./file-D4oBhObv.mjs";
2
- export { FileChunkType, base64ToFile, chunkFile, fileToBase64 };
1
+ /**
2
+ * @description: 切片文件数据类型
3
+ * @return {*}
4
+ * @autor: 刘 相卿
5
+ */
6
+ interface FileChunkType {
7
+ file: Blob;
8
+ size: number;
9
+ index: number;
10
+ }
11
+ /**
12
+ * @description: 文件切片
13
+ * @param {File} file 文件
14
+ * @param {number} mb 单个切片大小,单位MB(默认4MB)
15
+ * @return {{ file: Blob }[]} chunkList 切片集合
16
+ * @autor: 刘 相卿
17
+ */
18
+ declare function chunkFile(file: File, mb?: number): FileChunkType[];
19
+ /**
20
+ * @description: file转base64
21
+ * @param {File} file
22
+ * @return {*}
23
+ * @autor: 刘 相卿
24
+ */
25
+ declare function fileToBase64(file: File): Promise<string>;
26
+ /**
27
+ * @description: base64转file
28
+ * @param {string} base64
29
+ * @param {string} filename
30
+ * @return {*}
31
+ * @autor: 刘 相卿
32
+ */
33
+ declare function base64ToFile(base64: string, filename: string): File;
34
+
35
+ export { type FileChunkType, base64ToFile, chunkFile, fileToBase64 };
@@ -1,13 +1,12 @@
1
- //#region src/file.d.ts
2
1
  /**
3
2
  * @description: 切片文件数据类型
4
3
  * @return {*}
5
4
  * @autor: 刘 相卿
6
5
  */
7
6
  interface FileChunkType {
8
- file: Blob;
9
- size: number;
10
- index: number;
7
+ file: Blob;
8
+ size: number;
9
+ index: number;
11
10
  }
12
11
  /**
13
12
  * @description: 文件切片
@@ -32,5 +31,5 @@ declare function fileToBase64(file: File): Promise<string>;
32
31
  * @autor: 刘 相卿
33
32
  */
34
33
  declare function base64ToFile(base64: string, filename: string): File;
35
- //#endregion
36
- export { fileToBase64 as i, base64ToFile as n, chunkFile as r, FileChunkType as t };
34
+
35
+ export { type FileChunkType, base64ToFile, chunkFile, fileToBase64 };
package/dist/file.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";var l=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var h=(i,n)=>{for(var t in n)l(i,t,{get:n[t],enumerable:!0})},F=(i,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of u(n))!p.call(i,e)&&e!==t&&l(i,e,{get:()=>n[e],enumerable:!(r=c(n,e))||r.enumerable});return i};var b=i=>F(l({},"__esModule",{value:!0}),i);var d={};h(d,{base64ToFile:()=>y,chunkFile:()=>g,fileToBase64:()=>m});module.exports=b(d);function g(i,n=4){let t=[],r=1048576*n,e=0;for(;e<i.size;){let s=i.slice(e,e+r);t.push({file:s,size:s.size,index:e/r}),e+=r}return t}function m(i){return new Promise((n,t)=>{let r=new FileReader;r.onload=({target:e})=>{let s=e?.result??"";s?n(s):t(s)},r.onerror=e=>{t(e)},r.readAsDataURL(i)})}function y(i,n){let t=i.split(","),r=t.length>1?t[1]:t[0],e=t[0].match(/:(.*?);/)?.[1]||"application/octet-stream",s=atob(r),a=new Uint8Array(s.length);for(let o=0;o<s.length;o++)a[o]=s.charCodeAt(o);return new File([a],n,{type:e})}0&&(module.exports={base64ToFile,chunkFile,fileToBase64});
package/dist/file.mjs CHANGED
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"./file-TjtumYrh.mjs";export{n as base64ToFile,e as chunkFile,t as fileToBase64};
1
+ import{a,b,c}from"./chunk-BEM6E7R7.mjs";export{c as base64ToFile,a as chunkFile,b as fileToBase64};
package/dist/index.d.mts CHANGED
@@ -1,44 +1,44 @@
1
- import { n as __reExport, t as __export } from "./chunk-Dbq9I6zD.mjs";
2
- 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-BEdiy6mb.mjs";
3
- 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-CiSUhZCW.mjs";
4
- 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-Dl59EolR.mjs";
5
- import { t as clipboardCopy } from "./clipboard-BN1iiQLu.mjs";
6
- import { a as registryDayjsPlugin, i as dayjs, n as Dayjs, o as setLocale, r as dateRangeFormatter, t as DateType } from "./dayjs-00xX6Mts.mjs";
7
- import { n as getPx, r as setDocumentTitle, t as getMaxZIndex } from "./base-Ca2FN16G.mjs";
8
- import { n as hasClass, r as removeClass, t as addClass } from "./class-D5duI9ps.mjs";
9
- import { t as contains } from "./contains-Bj-oQ7KI.mjs";
10
- 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-DkmknM-7.mjs";
11
- import { a as injectCSS, i as clearContainerCache, n as ContainerType, o as removeCSS, r as Prepend, s as updateCSS, t as AppendType } from "./dynamic-css-CD9eHWzL.mjs";
12
- import { t as findDOMNode } from "./find-dom-node-BYO9We8P.mjs";
13
- import { a as saveLastFocusNode, i as limitTabRange, n as clearLastFocusNode, r as getFocusNodeList, t as backLastFocusNode } from "./focus-ByNB07tt.mjs";
14
- import { a as iframeReceiveHook, i as iframePostHook, n as IFrameMessageDataType, o as postMessage2Top, r as IFrameUtilConfig, t as AllowMessageType } from "./iframe-CBeiHcmx.mjs";
15
- import { t as _default } from "./is-visible-BpFCb4uJ.mjs";
16
- import { t as styleNames } from "./style-names-DDdz6-7S.mjs";
17
- import { t as isStyleSupport } from "./style-checker-B5wzcdHi.mjs";
18
- import { n as transition, t as animation } from "./support-BKRoxgNc.mjs";
19
- import { n as getLocalStorage, r as getSessionStorage, t as getCookie } from "./storage-HTBNfA8Q.mjs";
20
- import { t as getScrollbarWidth } from "./scrollbar-B0PNF6i2.mjs";
21
- import { t as getVideoPoster } from "./video-C_sYI0Ht.mjs";
22
- import "./index-CLTQPxoD.mjs";
23
- import { i as encryptText, n as decryptText, r as encrypt, t as createPwd } from "./encrypt-CHxdyuoC.mjs";
24
- import { i as fileToBase64, n as base64ToFile, r as chunkFile, t as FileChunkType } from "./file-D4oBhObv.mjs";
25
- import { a as hasProperties, c as mergeObject, d as pick, f as url2json, i as getObjectFromMapping, l as objectSortByKey, n as deleteEmptyValue, o as json2formdata, r as formdata2json, s as json2url, t as cloneData2Object, u as omit } from "./object-l_DvbWqN.mjs";
26
- import { a as get, c as merge, i as debounce, l as set, n as clone, o as has, r as cloneDeep, s as kebabcase, t as camelcase } from "./lodash-DAdPs0O9.mjs";
27
- import { n as safeNextick, t as delayTimer } from "./safe-next-tick-DlJsO1Ha.mjs";
28
- import { a as removeElement, i as number2thousands, n as getValueByMapping, o as usePromise, r as hex2rgba, t as getMimeByUrl } from "./other-H13CGzY5.mjs";
29
- 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-BdSpgYN3.mjs";
30
- import { t as useClipboard } from "./clipboard-CJ-9sRbH.mjs";
31
- import "./index-D-9tW2r5.mjs";
32
- import { a as useResponseHandler, i as useRequestHandler, n as requestUrl2json, r as useErrorHandler, t as ErrorMessage } from "./handler-bsPUG7U9.mjs";
33
- import { t as ObrRequest } from "./request-DGUcKxsQ.mjs";
34
- import "./index-BYjO2-Dk.mjs";
35
- import { t as parseTemplate } from "./parse-DQMRWCdz.mjs";
36
- import { n as chinese2pinyin, r as pinyin, t as chinese2initial } from "./pinyin-C2BqrFMq.mjs";
37
- export * from "axios";
38
-
39
- //#region src/index.d.ts
40
- declare namespace index_d_exports {
41
- export { AllowMessageType, AppendType, BaseOptionType, CascaderOptionType, CascaderRequestOption, ContainerType, DataType, DateType, Dayjs, ErrorContentObject, ErrorMessage, ErrorType, ErrorTypeKey, FileChunkType, HeadersType, IFrameMessageDataType, IFrameUtilConfig, MappingType, ObjectDataType, ObrAxiosInstance, ObrAxiosRequestConfig, ObrAxiosResponse, ObrAxiosStatic, ObrRequest, OptionResAlias, PageAlias, PageQueryType, PageResType, Prepend, RequestBaseConfig, RequestMethod, RequestParamConfig, ResAlias, ResDataType, TokenConfig, TreeItemType, VueKey, addClass, animation, anyType, array2option, array2tree, arrayType, backLastFocusNode, base64ToFile, booleanType, camelcase, chinese2initial, chinese2pinyin, chunkFile, clearContainerCache, clearLastFocusNode, clipboardCopy, clone, cloneData2Object, cloneDeep, contains, createPwd, dateRangeFormatter, dayjs, debounce, decryptText, delayTimer, deleteElement, deleteElementPro, deleteEmptyElement, deleteEmptyValue, encrypt, encryptText, eventType, fileToBase64, findDOMNode, findDOMNode as findDomNode, formatPositiveNumber, formdata2json, functionType, get, getClientSize, getCookie, getCss, getDataType, getDocSize, getElementsByValues, getEventValue, getFileType, getFocusNodeList, getLocalStorage, getMaxZIndex, getMimeByUrl, getObjectFromMapping, getOffset, getOuterHeight, getOuterWidth, getPx, getScroll, getScrollbarWidth, getSessionStorage, getValueByMapping, getVideoPoster, has, hasClass, hasProperties, hex2rgba, iframePostHook, iframeReceiveHook, injectCSS, isArray, isBaseType, isBoolean, isDate, isDef, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isFunction, isMeaninglessArray, isNull, isNumber, isObject, isObjectDataType, isString, isStyleSupport, isSymbol, isUndefined, isUrl, _default as isVisible, json2formdata, json2string, json2url, kebabcase, limitTabRange, merge, mergeObject, number2thousands, numberType, objectSortByKey, objectType, omit, parseTemplate, pick, pinyin, postMessage2Top, registryDayjsPlugin, removeCSS, removeClass, removeElement, replaceLastMatch, replaceMatch, requestUrl2json, runAsyncEvent, runEvent, safeNextick, saveLastFocusNode, set, setCss, setDocumentTitle, setLocale, someType, string2json, stringType, styleNames, toArray, transition, tree2array, tuple, tupleNum, uniqueArrayByKeys, updateCSS, url2json, useClipboard, useErrorHandler, usePromise, useRequestHandler, useResponseHandler, uuid, vNodeType, vueNode };
42
- }
43
- //#endregion
44
- export { AllowMessageType, AppendType, BaseOptionType, CascaderOptionType, CascaderRequestOption, ContainerType, DataType, DateType, Dayjs, ErrorContentObject, ErrorMessage, ErrorType, ErrorTypeKey, FileChunkType, HeadersType, IFrameMessageDataType, IFrameUtilConfig, MappingType, ObjectDataType, ObrAxiosInstance, ObrAxiosRequestConfig, ObrAxiosResponse, ObrAxiosStatic, ObrRequest, OptionResAlias, PageAlias, PageQueryType, PageResType, Prepend, RequestBaseConfig, RequestMethod, RequestParamConfig, ResAlias, ResDataType, TokenConfig, TreeItemType, VueKey, addClass, animation, anyType, array2option, array2tree, arrayType, backLastFocusNode, base64ToFile, booleanType, camelcase, chinese2initial, chinese2pinyin, chunkFile, clearContainerCache, clearLastFocusNode, clipboardCopy, clone, cloneData2Object, cloneDeep, contains, createPwd, dateRangeFormatter, dayjs, debounce, decryptText, delayTimer, deleteElement, deleteElementPro, deleteEmptyElement, deleteEmptyValue, encrypt, encryptText, eventType, fileToBase64, findDOMNode, findDOMNode as findDomNode, formatPositiveNumber, formdata2json, functionType, get, getClientSize, getCookie, getCss, getDataType, getDocSize, getElementsByValues, getEventValue, getFileType, getFocusNodeList, getLocalStorage, getMaxZIndex, getMimeByUrl, getObjectFromMapping, getOffset, getOuterHeight, getOuterWidth, getPx, getScroll, getScrollbarWidth, getSessionStorage, getValueByMapping, getVideoPoster, has, hasClass, hasProperties, hex2rgba, iframePostHook, iframeReceiveHook, injectCSS, isArray, isBaseType, isBoolean, isDate, isDef, isEmpty, isEmptyArray, isEmptyObject, isEmptyValue, isFunction, isMeaninglessArray, isNull, isNumber, isObject, isObjectDataType, isString, isStyleSupport, isSymbol, isUndefined, isUrl, _default as isVisible, json2formdata, json2string, json2url, kebabcase, limitTabRange, merge, mergeObject, number2thousands, numberType, objectSortByKey, objectType, omit, parseTemplate, pick, pinyin, postMessage2Top, registryDayjsPlugin, removeCSS, removeClass, removeElement, replaceLastMatch, replaceMatch, requestUrl2json, runAsyncEvent, runEvent, safeNextick, saveLastFocusNode, set, setCss, setDocumentTitle, setLocale, someType, string2json, stringType, styleNames, toArray, transition, tree2array, tuple, tupleNum, uniqueArrayByKeys, updateCSS, url2json, useClipboard, useErrorHandler, usePromise, useRequestHandler, useResponseHandler, uuid, vNodeType, vueNode };
1
+ 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 } from './base.mjs';
2
+ export { array2option, array2tree, deleteElement, deleteElementPro, deleteEmptyElement, getElementsByValues, toArray, tree2array, tuple, tupleNum, uniqueArrayByKeys } from './array.mjs';
3
+ export { cloneData2Object, deleteEmptyValue, formdata2json, getObjectFromMapping, hasProperties, json2formdata, json2url, mergeObject, objectSortByKey, omit, pick, url2json } from './object.mjs';
4
+ export { FileChunkType, base64ToFile, chunkFile, fileToBase64 } from './file.mjs';
5
+ export { clipboardCopy } from './clipboard.mjs';
6
+ export { default as cloneDeep } from 'lodash.clonedeep';
7
+ export { default as debounce } from 'lodash.debounce';
8
+ export { default as merge } from 'lodash.merge';
9
+ export { default as clone } from 'lodash.clone';
10
+ export { default as get } from 'lodash.get';
11
+ export { default as set } from 'lodash.set';
12
+ export { default as has } from 'lodash.has';
13
+ export { default as kebabcase } from 'lodash.kebabcase';
14
+ export { default as camelcase } from 'lodash.camelcase';
15
+ export { delayTimer, safeNextick } from './safe-next-tick.mjs';
16
+ export { getMimeByUrl, getValueByMapping, hex2rgba, number2thousands, removeElement, usePromise } from './other.mjs';
17
+ export { default as findDOMNode, default as findDomNode } from './dom/find-dom-node.mjs';
18
+ export { default as isVisible } from './dom/is-visible.mjs';
19
+ export { default as contains } from './dom/contains.mjs';
20
+ export { styleNames } from './dom/style-names.mjs';
21
+ export { addClass, hasClass, removeClass } from './dom/class.mjs';
22
+ export { getClientSize, getCss, getDocSize, getOffset, getOuterHeight, getOuterWidth, getScroll, setCss } from './dom/css.mjs';
23
+ export { AppendType, ContainerType, Prepend, clearContainerCache, injectCSS, removeCSS, updateCSS } from './dom/dynamic-css.mjs';
24
+ export { backLastFocusNode, clearLastFocusNode, getFocusNodeList, limitTabRange, saveLastFocusNode } from './dom/focus.mjs';
25
+ export { isStyleSupport } from './dom/style-checker.mjs';
26
+ export { animation, transition } from './dom/support.mjs';
27
+ export { getMaxZIndex, getPx, setDocumentTitle } from './dom/base.mjs';
28
+ export { AllowMessageType, IFrameMessageDataType, IFrameUtilConfig, iframePostHook, iframeReceiveHook, postMessage2Top } from './dom/iframe.mjs';
29
+ export { getCookie, getLocalStorage, getSessionStorage } from './dom/storage.mjs';
30
+ export { getScrollbarWidth } from './dom/scrollbar.mjs';
31
+ export { getVideoPoster } from './dom/video.mjs';
32
+ export { VueKey, anyType, arrayType, booleanType, eventType, functionType, getEventValue, numberType, objectType, runAsyncEvent, runEvent, someType, stringType, vNodeType, vueNode } from './vue/type-util.mjs';
33
+ export { useClipboard } from './vue/hooks/clipboard.mjs';
34
+ export { ErrorMessage, requestUrl2json, useErrorHandler, useRequestHandler, useResponseHandler } from './request/handler.mjs';
35
+ export { ObrRequest } from './request/request.mjs';
36
+ export * from 'axios';
37
+ 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 } from './types.mjs';
38
+ export { parseTemplate } from './parse.mjs';
39
+ export { DateType, dateRangeFormatter, registryDayjsPlugin, setLocale } from './dayjs.mjs';
40
+ export { chinese2initial, chinese2pinyin } from './pinyin.mjs';
41
+ export { createPwd, decryptText, encrypt, encryptText } from './encrypt.mjs';
42
+ export { Dayjs, default as dayjs } from 'dayjs';
43
+ export { pinyin } from 'pinyin-pro';
44
+ import 'vue';
@@ -0,0 +1,44 @@
1
+ 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 } from './base.js';
2
+ export { array2option, array2tree, deleteElement, deleteElementPro, deleteEmptyElement, getElementsByValues, toArray, tree2array, tuple, tupleNum, uniqueArrayByKeys } from './array.js';
3
+ export { cloneData2Object, deleteEmptyValue, formdata2json, getObjectFromMapping, hasProperties, json2formdata, json2url, mergeObject, objectSortByKey, omit, pick, url2json } from './object.js';
4
+ export { FileChunkType, base64ToFile, chunkFile, fileToBase64 } from './file.js';
5
+ export { clipboardCopy } from './clipboard.js';
6
+ export { default as cloneDeep } from 'lodash.clonedeep';
7
+ export { default as debounce } from 'lodash.debounce';
8
+ export { default as merge } from 'lodash.merge';
9
+ export { default as clone } from 'lodash.clone';
10
+ export { default as get } from 'lodash.get';
11
+ export { default as set } from 'lodash.set';
12
+ export { default as has } from 'lodash.has';
13
+ export { default as kebabcase } from 'lodash.kebabcase';
14
+ export { default as camelcase } from 'lodash.camelcase';
15
+ export { delayTimer, safeNextick } from './safe-next-tick.js';
16
+ export { getMimeByUrl, getValueByMapping, hex2rgba, number2thousands, removeElement, usePromise } from './other.js';
17
+ export { default as findDOMNode, default as findDomNode } from './dom/find-dom-node.js';
18
+ export { default as isVisible } from './dom/is-visible.js';
19
+ export { default as contains } from './dom/contains.js';
20
+ export { styleNames } from './dom/style-names.js';
21
+ export { addClass, hasClass, removeClass } from './dom/class.js';
22
+ export { getClientSize, getCss, getDocSize, getOffset, getOuterHeight, getOuterWidth, getScroll, setCss } from './dom/css.js';
23
+ export { AppendType, ContainerType, Prepend, clearContainerCache, injectCSS, removeCSS, updateCSS } from './dom/dynamic-css.js';
24
+ export { backLastFocusNode, clearLastFocusNode, getFocusNodeList, limitTabRange, saveLastFocusNode } from './dom/focus.js';
25
+ export { isStyleSupport } from './dom/style-checker.js';
26
+ export { animation, transition } from './dom/support.js';
27
+ export { getMaxZIndex, getPx, setDocumentTitle } from './dom/base.js';
28
+ export { AllowMessageType, IFrameMessageDataType, IFrameUtilConfig, iframePostHook, iframeReceiveHook, postMessage2Top } from './dom/iframe.js';
29
+ export { getCookie, getLocalStorage, getSessionStorage } from './dom/storage.js';
30
+ export { getScrollbarWidth } from './dom/scrollbar.js';
31
+ export { getVideoPoster } from './dom/video.js';
32
+ export { VueKey, anyType, arrayType, booleanType, eventType, functionType, getEventValue, numberType, objectType, runAsyncEvent, runEvent, someType, stringType, vNodeType, vueNode } from './vue/type-util.js';
33
+ export { useClipboard } from './vue/hooks/clipboard.js';
34
+ export { ErrorMessage, requestUrl2json, useErrorHandler, useRequestHandler, useResponseHandler } from './request/handler.js';
35
+ export { ObrRequest } from './request/request.js';
36
+ export * from 'axios';
37
+ 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 } from './types.js';
38
+ export { parseTemplate } from './parse.js';
39
+ export { DateType, dateRangeFormatter, registryDayjsPlugin, setLocale } from './dayjs.js';
40
+ export { chinese2initial, chinese2pinyin } from './pinyin.js';
41
+ export { createPwd, decryptText, encrypt, encryptText } from './encrypt.js';
42
+ export { Dayjs, default as dayjs } from 'dayjs';
43
+ export { pinyin } from 'pinyin-pro';
44
+ import 'vue';