@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 +0,0 @@
1
- require(`../contains-CYQgjY4K.cjs`),require(`../can-use-dom-DvmMdeGa.cjs`);const e=require(`../dynamic-css-iSnm5CN6.cjs`);exports.clearContainerCache=e.t,exports.injectCSS=e.n,exports.removeCSS=e.r,exports.updateCSS=e.i;
@@ -1,2 +0,0 @@
1
- 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-CIw8ZtwR.cjs";
2
- export { AppendType, ContainerType, Prepend, clearContainerCache, injectCSS, removeCSS, updateCSS };
@@ -1 +0,0 @@
1
- const e=require(`../find-dom-node-lY7vePVL.cjs`);module.exports=e.t;
@@ -1,2 +0,0 @@
1
- import { t as findDOMNode } from "../find-dom-node-BkrYW2pm.cjs";
2
- export = findDOMNode;
@@ -1 +0,0 @@
1
- require(`../is-visible-laJngqtK.cjs`);const e=require(`../focus-DtSCSQEr.cjs`);exports.backLastFocusNode=e.t,exports.clearLastFocusNode=e.n,exports.getFocusNodeList=e.r,exports.limitTabRange=e.i,exports.saveLastFocusNode=e.a;
@@ -1,2 +0,0 @@
1
- import { a as saveLastFocusNode, i as limitTabRange, n as clearLastFocusNode, r as getFocusNodeList, t as backLastFocusNode } from "../focus-BBcVAsFx.cjs";
2
- export { backLastFocusNode, clearLastFocusNode, getFocusNodeList, limitTabRange, saveLastFocusNode };
@@ -1 +0,0 @@
1
- require(`../base-DUxrUTOr.cjs`),require(`../lodash-kixEH9o9.cjs`),require(`../storage-ClTxbIcP.cjs`);const e=require(`../iframe-CR0bl22C.cjs`);exports.iframePostHook=e.t,exports.iframeReceiveHook=e.n,exports.postMessage2Top=e.r;
@@ -1,2 +0,0 @@
1
- import { a as iframeReceiveHook, i as iframePostHook, n as IFrameMessageDataType, o as postMessage2Top, r as IFrameUtilConfig, t as AllowMessageType } from "../iframe-QhpkIola.cjs";
2
- export { AllowMessageType, IFrameMessageDataType, IFrameUtilConfig, iframePostHook, iframeReceiveHook, postMessage2Top };
@@ -1 +0,0 @@
1
- require(`../base-DUxrUTOr.cjs`),require(`../lodash-kixEH9o9.cjs`);const e=require(`../find-dom-node-lY7vePVL.cjs`),t=require(`../is-visible-laJngqtK.cjs`),n=require(`../contains-CYQgjY4K.cjs`),r=require(`../style-names-CYvxRARD.cjs`),i=require(`../class-D8a8qnWA.cjs`),a=require(`../css-WYllKaVv.cjs`);require(`../can-use-dom-DvmMdeGa.cjs`);const o=require(`../dynamic-css-iSnm5CN6.cjs`),s=require(`../focus-DtSCSQEr.cjs`),c=require(`../style-checker-DAxS0NyJ.cjs`),l=require(`../support-BZYJpIOE.cjs`),u=require(`../base-DmSU_ydZ.cjs`),d=require(`../storage-ClTxbIcP.cjs`),f=require(`../iframe-CR0bl22C.cjs`),p=require(`../scrollbar-2zQwgB3N.cjs`),m=require(`../video-BDLauzJm.cjs`);require(`../dom-DzrnEGri.cjs`),exports.addClass=i.t,exports.animation=l.t,exports.backLastFocusNode=s.t,exports.clearContainerCache=o.t,exports.clearLastFocusNode=s.n,exports.contains=n.t,exports.findDOMNode=e.t,exports.findDomNode=e.t,exports.getClientSize=a.t,exports.getCookie=d.t,exports.getCss=a.n,exports.getDocSize=a.r,exports.getFocusNodeList=s.r,exports.getLocalStorage=d.n,exports.getMaxZIndex=u.t,exports.getOffset=a.i,exports.getOuterHeight=a.a,exports.getOuterWidth=a.o,exports.getPx=u.n,exports.getScroll=a.s,exports.getScrollbarWidth=p.t,exports.getSessionStorage=d.r,exports.getVideoPoster=m.t,exports.hasClass=i.n,exports.iframePostHook=f.t,exports.iframeReceiveHook=f.n,exports.injectCSS=o.n,exports.isStyleSupport=c.t,exports.isVisible=t.t,exports.limitTabRange=s.i,exports.postMessage2Top=f.r,exports.removeCSS=o.r,exports.removeClass=i.r,exports.saveLastFocusNode=s.a,exports.setCss=a.c,exports.setDocumentTitle=u.r,exports.styleNames=r.t,exports.transition=l.n,exports.updateCSS=o.i;
@@ -1,18 +0,0 @@
1
- import "../types-DTtPjrm8.cjs";
2
- import { n as getPx, r as setDocumentTitle, t as getMaxZIndex } from "../base-DSfexc9G.cjs";
3
- import { n as hasClass, r as removeClass, t as addClass } from "../class-Bp70Yi1y.cjs";
4
- import { t as contains } from "../contains-D3q8gHUu.cjs";
5
- 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";
6
- 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-CIw8ZtwR.cjs";
7
- import { t as findDOMNode } from "../find-dom-node-BkrYW2pm.cjs";
8
- import { a as saveLastFocusNode, i as limitTabRange, n as clearLastFocusNode, r as getFocusNodeList, t as backLastFocusNode } from "../focus-BBcVAsFx.cjs";
9
- import { a as iframeReceiveHook, i as iframePostHook, n as IFrameMessageDataType, o as postMessage2Top, r as IFrameUtilConfig, t as AllowMessageType } from "../iframe-QhpkIola.cjs";
10
- import { t as _default } from "../is-visible-DT2jLmnp.cjs";
11
- import { t as styleNames } from "../style-names-ClFu2pk1.cjs";
12
- import { t as isStyleSupport } from "../style-checker-CpyAZJew.cjs";
13
- import { n as transition, t as animation } from "../support-jAYY4GwL.cjs";
14
- import { n as getLocalStorage, r as getSessionStorage, t as getCookie } from "../storage-DicI9wsP.cjs";
15
- import { t as getScrollbarWidth } from "../scrollbar-07jqhpVk.cjs";
16
- import { t as getVideoPoster } from "../video-Bp6NaeX6.cjs";
17
- import "../index-6bSwZ6-V.cjs";
18
- export { AllowMessageType, AppendType, ContainerType, IFrameMessageDataType, IFrameUtilConfig, Prepend, addClass, animation, backLastFocusNode, clearContainerCache, clearLastFocusNode, contains, findDOMNode, findDOMNode as findDomNode, getClientSize, getCookie, getCss, getDocSize, getFocusNodeList, getLocalStorage, getMaxZIndex, getOffset, getOuterHeight, getOuterWidth, getPx, getScroll, getScrollbarWidth, getSessionStorage, getVideoPoster, hasClass, iframePostHook, iframeReceiveHook, injectCSS, isStyleSupport, _default as isVisible, limitTabRange, postMessage2Top, removeCSS, removeClass, saveLastFocusNode, setCss, setDocumentTitle, styleNames, transition, updateCSS };
@@ -1 +0,0 @@
1
- const e=require(`../is-visible-laJngqtK.cjs`);module.exports=e.t;
@@ -1,2 +0,0 @@
1
- import { t as _default } from "../is-visible-DT2jLmnp.cjs";
2
- export = _default;
@@ -1 +0,0 @@
1
- const e=require(`../../can-use-dom-DvmMdeGa.cjs`);module.exports=e.t;
@@ -1,3 +0,0 @@
1
- //#region src/dom/lib/can-use-dom.d.ts
2
- declare function canUseDom(): boolean;
3
- export = canUseDom;
@@ -1 +0,0 @@
1
- const e=require(`../scrollbar-2zQwgB3N.cjs`);exports.getScrollbarWidth=e.t;
@@ -1,2 +0,0 @@
1
- import { t as getScrollbarWidth } from "../scrollbar-07jqhpVk.cjs";
2
- export { getScrollbarWidth };
@@ -1 +0,0 @@
1
- const e=require(`../storage-ClTxbIcP.cjs`);exports.getCookie=e.t,exports.getLocalStorage=e.n,exports.getSessionStorage=e.r;
@@ -1,3 +0,0 @@
1
- import "../types-DTtPjrm8.cjs";
2
- import { n as getLocalStorage, r as getSessionStorage, t as getCookie } from "../storage-DicI9wsP.cjs";
3
- export { getCookie, getLocalStorage, getSessionStorage };
@@ -1 +0,0 @@
1
- require(`../can-use-dom-DvmMdeGa.cjs`);const e=require(`../style-checker-DAxS0NyJ.cjs`);exports.isStyleSupport=e.t;
@@ -1,2 +0,0 @@
1
- import { t as isStyleSupport } from "../style-checker-CpyAZJew.cjs";
2
- export { isStyleSupport };
@@ -1 +0,0 @@
1
- require(`../base-DUxrUTOr.cjs`);const e=require(`../style-names-CYvxRARD.cjs`);exports.styleNames=e.t;
@@ -1,2 +0,0 @@
1
- import { t as styleNames } from "../style-names-ClFu2pk1.cjs";
2
- export { styleNames };
@@ -1 +0,0 @@
1
- require(`../can-use-dom-DvmMdeGa.cjs`);const e=require(`../support-BZYJpIOE.cjs`);exports.animation=e.t,exports.transition=e.n;
@@ -1,2 +0,0 @@
1
- import { n as transition, t as animation } from "../support-jAYY4GwL.cjs";
2
- export { animation, transition };
@@ -1 +0,0 @@
1
- const e=require(`../video-BDLauzJm.cjs`);exports.getVideoPoster=e.t;
@@ -1,2 +0,0 @@
1
- import { t as getVideoPoster } from "../video-Bp6NaeX6.cjs";
2
- export { getVideoPoster };
@@ -1 +0,0 @@
1
- export{};
@@ -1,21 +0,0 @@
1
- //#region src/dom/dynamic-css.d.ts
2
- type ContainerType = Element | ShadowRoot;
3
- type Prepend = boolean | 'queue';
4
- type AppendType = 'prependQueue' | 'append' | 'prepend';
5
- interface Options {
6
- attachTo?: ContainerType;
7
- csp?: {
8
- nonce?: string;
9
- };
10
- prepend?: Prepend;
11
- mark?: string;
12
- }
13
- declare function injectCSS(css: string, option?: Options): HTMLStyleElement | null;
14
- declare function removeCSS(key: string, option?: Options): void;
15
- /**
16
- * manually clear container cache to avoid global cache in unit testes
17
- */
18
- declare function clearContainerCache(): void;
19
- declare function updateCSS(css: string, key: string, option?: Options): any;
20
- //#endregion
21
- export { injectCSS as a, clearContainerCache as i, ContainerType as n, removeCSS as o, Prepend as r, updateCSS as s, AppendType as t };
@@ -1 +0,0 @@
1
- import{t as e}from"./contains-BpG9RIaT.mjs";import{t}from"./can-use-dom-DiyvIP5G.mjs";const n=`data-vc-order`,r=new Map;function i({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:`vc-util-key`}function a(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function o(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function s(e){return Array.from((r.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function c(e,r={}){if(!t())return null;let{csp:i,prepend:c}=r,l=document.createElement(`style`);l.setAttribute(n,o(c)),i?.nonce&&(l.nonce=i?.nonce),l.innerHTML=e;let u=a(r),{firstChild:d}=u;if(c){if(c===`queue`){let e=s(u).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(n)));if(e.length)return u.insertBefore(l,e[e.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function l(e,t={}){return s(a(t)).find(n=>n.getAttribute(i(t))===e)}function u(e,t={}){let n=l(e,t);n&&a(t).removeChild(n)}function d(t,n){let i=r.get(t);if(!i||!e(document,i)){let e=c(``,n),{parentNode:i}=e;r.set(t,i),t.removeChild(e)}}function f(){r.clear()}function p(e,t,n={}){d(a(n),n);let r=l(t,n);if(r)return n.csp?.nonce&&r.nonce!==n.csp?.nonce&&(r.nonce=n.csp?.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;let o=c(e,n);return o.setAttribute(i(n),t),o}export{p as i,c as n,u as r,f as t};
@@ -1 +0,0 @@
1
- const e=require(`./contains-CYQgjY4K.cjs`),t=require(`./can-use-dom-DvmMdeGa.cjs`),n=`data-vc-order`,r=`vc-util-key`,i=new Map;function a({mark:e}={}){return e?e.startsWith(`data-`)?e:`data-${e}`:`vc-util-key`}function o(e){return e.attachTo?e.attachTo:document.querySelector(`head`)||document.body}function s(e){return e===`queue`?`prependQueue`:e?`prepend`:`append`}function c(e){return Array.from((i.get(e)||e).children).filter(e=>e.tagName===`STYLE`)}function l(e,r={}){if(!t.t())return null;let{csp:i,prepend:a}=r,l=document.createElement(`style`);l.setAttribute(n,s(a)),i?.nonce&&(l.nonce=i?.nonce),l.innerHTML=e;let u=o(r),{firstChild:d}=u;if(a){if(a===`queue`){let e=c(u).filter(e=>[`prepend`,`prependQueue`].includes(e.getAttribute(n)));if(e.length)return u.insertBefore(l,e[e.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function u(e,t={}){return c(o(t)).find(n=>n.getAttribute(a(t))===e)}function d(e,t={}){let n=u(e,t);n&&o(t).removeChild(n)}function f(t,n){let r=i.get(t);if(!r||!e.t(document,r)){let e=l(``,n),{parentNode:r}=e;i.set(t,r),t.removeChild(e)}}function p(){i.clear()}function m(e,t,n={}){f(o(n),n);let r=u(t,n);if(r)return n.csp?.nonce&&r.nonce!==n.csp?.nonce&&(r.nonce=n.csp?.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;let i=l(e,n);return i.setAttribute(a(n),t),i}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
@@ -1,29 +0,0 @@
1
- //#region src/encrypt.d.ts
2
- /**
3
- * @description AES密码加密
4
- * @param {string} pwd 密码
5
- * @param {string} key Key
6
- * @param {string} iv IV
7
- * @returns {string} 加密后的密码
8
- */
9
- declare function encrypt(pwd: string, key: string, iv: string): string;
10
- /**
11
- * @description 生成加密密码
12
- * @param {string} password 密码
13
- * @return {string} 加密后的密码
14
- */
15
- declare const createPwd: (password: string) => string;
16
- /**
17
- * @description 加密
18
- * @param {string} v 明文
19
- * @return
20
- */
21
- declare const encryptText: (v: string) => string;
22
- /**
23
- * @description 解密
24
- * @param {string} k 密文
25
- * @return
26
- */
27
- declare const decryptText: (k: string) => string;
28
- //#endregion
29
- export { encryptText as i, decryptText as n, encrypt as r, createPwd as t };
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`);let t=require(`crypto-js`);t=e.r(t);const{atob:n,btoa:r}=window,i=r(`OTc2NWE3ZDFkYjI1MjZkOQ==`),a=r(`a2o4ZTYxajhsajM3NTA5NA==`);function o(e,n,r){let i=t.default.enc.Utf8.parse(e),a=t.default.enc.Utf8.parse(n),o=t.default.enc.Utf8.parse(r),s=t.default.AES.encrypt(i,a,{iv:o,mode:t.default.mode.CBC,padding:t.default.pad.ZeroPadding});return t.default.enc.Base64.stringify(s.ciphertext)}const s=e=>o(e,n(n(i)),n(n(a))),c=r(`jK2oBORH4mcIPhKymU0e7E==`),l=e=>t.default.AES.encrypt(e,c).toString(),u=e=>t.default.AES.decrypt(e,c).toString(t.default.enc.Utf8);Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
@@ -1 +0,0 @@
1
- import e from"crypto-js";const{atob:t,btoa:n}=window,r=n(`OTc2NWE3ZDFkYjI1MjZkOQ==`),i=n(`a2o4ZTYxajhsajM3NTA5NA==`);function a(t,n,r){let i=e.enc.Utf8.parse(t),a=e.enc.Utf8.parse(n),o=e.enc.Utf8.parse(r),s=e.AES.encrypt(i,a,{iv:o,mode:e.mode.CBC,padding:e.pad.ZeroPadding});return e.enc.Base64.stringify(s.ciphertext)}const o=e=>a(e,t(t(r)),t(t(i))),s=n(`jK2oBORH4mcIPhKymU0e7E==`),c=t=>e.AES.encrypt(t,s).toString(),l=t=>e.AES.decrypt(t,s).toString(e.enc.Utf8);export{c as i,l as n,a as r,o as t};
package/dist/encrypt.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`./encrypt-D6oTfiTY.cjs`);exports.createPwd=e.t,exports.decryptText=e.n,exports.encrypt=e.r,exports.encryptText=e.i;
@@ -1,2 +0,0 @@
1
- import { i as encryptText, n as decryptText, r as encrypt, t as createPwd } from "./encrypt-BFDBlSX_.cjs";
2
- export { createPwd, decryptText, encrypt, encryptText };
@@ -1 +0,0 @@
1
- function e(e){return new Promise(t=>{let n={code:200,data:e,msg:``};if(e.type!==`application/json`)t(n);else{let r=new FileReader;r.readAsText(e),r.onloadend=()=>{n=JSON.parse(r.result),t(n)}}})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,36 +0,0 @@
1
- //#region src/file.d.ts
2
- /**
3
- * @description: 切片文件数据类型
4
- * @return {*}
5
- * @autor: 刘 相卿
6
- */
7
- interface FileChunkType {
8
- file: Blob;
9
- size: number;
10
- index: number;
11
- }
12
- /**
13
- * @description: 文件切片
14
- * @param {File} file 文件
15
- * @param {number} mb 单个切片大小,单位MB(默认4MB)
16
- * @return {{ file: Blob }[]} chunkList 切片集合
17
- * @autor: 刘 相卿
18
- */
19
- declare function chunkFile(file: File, mb?: number): FileChunkType[];
20
- /**
21
- * @description: file转base64
22
- * @param {File} file
23
- * @return {*}
24
- * @autor: 刘 相卿
25
- */
26
- declare function fileToBase64(file: File): Promise<string>;
27
- /**
28
- * @description: base64转file
29
- * @param {string} base64
30
- * @param {string} filename
31
- * @return {*}
32
- * @autor: 刘 相卿
33
- */
34
- declare function base64ToFile(base64: string, filename: string): File;
35
- //#endregion
36
- export { fileToBase64 as i, base64ToFile as n, chunkFile as r, FileChunkType as t };
@@ -1 +0,0 @@
1
- function e(e){return new Promise(t=>{let n={code:200,data:e,msg:``};if(e.type!==`application/json`)t(n);else{let r=new FileReader;r.readAsText(e),r.onloadend=()=>{n=JSON.parse(r.result),t(n)}}})}export{e as t};
@@ -1 +0,0 @@
1
- function e(e,t=4){let n=[],r=1024*1024*t,i=0;for(;i<e.size;){let t=e.slice(i,i+r);n.push({file:t,size:t.size,index:i/r}),i+=r}return n}function t(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=({target:e})=>{let r=e?.result??``;r?t(r):n(r)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}function n(e,t){let n=e.split(`,`),r=n.length>1?n[1]:n[0],i=n[0].match(/:(.*?);/)?.[1]||`application/octet-stream`,a=atob(r),o=new Uint8Array(a.length);for(let e=0;e<a.length;e++)o[e]=a.charCodeAt(e);return new File([o],t,{type:i})}export{e as n,t as r,n as t};
@@ -1 +0,0 @@
1
- function e(e,t=4){let n=[],r=1024*1024*t,i=0;for(;i<e.size;){let t=e.slice(i,i+r);n.push({file:t,size:t.size,index:i/r}),i+=r}return n}function t(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=({target:e})=>{let r=e?.result??``;r?t(r):n(r)},r.onerror=e=>{n(e)},r.readAsDataURL(e)})}function n(e,t){let n=e.split(`,`),r=n.length>1?n[1]:n[0],i=n[0].match(/:(.*?);/)?.[1]||`application/octet-stream`,a=atob(r),o=new Uint8Array(a.length);for(let e=0;e<a.length;e++)o[e]=a.charCodeAt(e);return new File([o],t,{type:i})}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
package/dist/file.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`./file-rmcv99h0.cjs`);exports.base64ToFile=e.t,exports.chunkFile=e.n,exports.fileToBase64=e.r;
package/dist/file.d.cts DELETED
@@ -1,2 +0,0 @@
1
- import { i as fileToBase64, n as base64ToFile, r as chunkFile, t as FileChunkType } from "./file-CjjpuB5u.cjs";
2
- export { FileChunkType, base64ToFile, chunkFile, fileToBase64 };
@@ -1,4 +0,0 @@
1
- //#region src/dom/find-dom-node.d.ts
2
- declare function findDOMNode(instance: any): any;
3
- //#endregion
4
- export { findDOMNode as t };
@@ -1,4 +0,0 @@
1
- //#region src/dom/find-dom-node.d.ts
2
- declare function findDOMNode(instance: any): any;
3
- //#endregion
4
- export { findDOMNode as t };
@@ -1 +0,0 @@
1
- function e(e){let t=e?.vnode?.el||e&&(e.$el||e);for(;t&&!t.tagName;)t=t.nextSibling;return t}var t=e;export{t};
@@ -1 +0,0 @@
1
- function e(e){let t=e?.vnode?.el||e&&(e.$el||e);for(;t&&!t.tagName;)t=t.nextSibling;return t}var t=e;Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
@@ -1,11 +0,0 @@
1
- //#region src/dom/focus.d.ts
2
- declare function getFocusNodeList(node: HTMLElement, includePositive?: boolean): HTMLElement[];
3
- /** @deprecated Do not use since this may failed when used in async */
4
- declare function saveLastFocusNode(): void;
5
- /** @deprecated Do not use since this may failed when used in async */
6
- declare function clearLastFocusNode(): void;
7
- /** @deprecated Do not use since this may failed when used in async */
8
- declare function backLastFocusNode(): void;
9
- declare function limitTabRange(node: HTMLElement, e: KeyboardEvent): void;
10
- //#endregion
11
- export { saveLastFocusNode as a, limitTabRange as i, clearLastFocusNode as n, getFocusNodeList as r, backLastFocusNode as t };
@@ -1 +0,0 @@
1
- const e=require(`./is-visible-laJngqtK.cjs`);function t(t,n=!1){if(e.t(t)){let e=t.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(e)||t.isContentEditable||e===`a`&&!!t.getAttribute(`href`),i=t.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&t.disabled&&(o=null),o!==null&&(o>=0||n&&o<0)}return!1}function n(e,n=!1){let r=[...e.querySelectorAll(`*`)].filter(e=>t(e,n));return t(e,n)&&r.unshift(e),r}let r=null;function i(){r=document.activeElement}function a(){r=null}function o(){if(r)try{r.focus()}catch{}}function s(e,t){if(t.keyCode===9){let r=n(e);(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement)&&(r[t.shiftKey?r.length-1:0].focus(),t.preventDefault())}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -1 +0,0 @@
1
- import{t as e}from"./is-visible-BXbqt6I2.mjs";function t(t,n=!1){if(e(t)){let e=t.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(e)||t.isContentEditable||e===`a`&&!!t.getAttribute(`href`),i=t.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&t.disabled&&(o=null),o!==null&&(o>=0||n&&o<0)}return!1}function n(e,n=!1){let r=[...e.querySelectorAll(`*`)].filter(e=>t(e,n));return t(e,n)&&r.unshift(e),r}let r=null;function i(){r=document.activeElement}function a(){r=null}function o(){if(r)try{r.focus()}catch{}}function s(e,t){if(t.keyCode===9){let r=n(e);(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement)&&(r[t.shiftKey?r.length-1:0].focus(),t.preventDefault())}}export{i as a,s as i,a as n,n as r,o as t};
@@ -1 +0,0 @@
1
- import{f as e,g as t,o as n,u as r,v as i,y as a}from"./base-854WVUaj.mjs";import{a as o,c as s,d as c}from"./array-CEhD-Z_e.mjs";import{i as l,n as u,r as d}from"./constant-Dxt8HuVn.mjs";import{t as f}from"./parse-C1eaIjot.mjs";import p from"lodash.get";function m(e={}){return Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{})}function h(n={}){return Object.keys(n).reduce((r,i)=>{let a=n[i];return e(a)||(t(a)&&String(a).length>=15?r[i]=String(a):r[i]=a),r},{})}function g(e,t=l){let{code:n=`code`,data:r=`data`,msg:i=`msg`}=t;return{data:e[r],msg:e[i],code:e[n]}}function _(e,r=u,o=!0){let{label:l=`label`,value:d=`value`,json:m=`json`,disabled:h=`disabled`,children:g=`children`}=r,_=e;e.some(e=>i(e)&&Object.keys(e).includes(g))&&(_=s(e,g));let v=_.reduce((e,r)=>{if(i(r)){let t={label:f(l.includes(`#{`)?l:`#{${l}}`,r,{prefix:`#{`,suffix:`}`}),value:p(r,d),disabled:p(r,h)??!1,json:p(r,m)??r};e.push(t)}else (t(r)||a(r)||n(r))&&e.push({label:r,value:r,json:{}});return e},[]);return o?c(v,[`value`]):v}function v(e={pageSize:10,pageNo:1},t=d){return Object.keys(e).reduce((n,r)=>(n[t[r]]=e[r],n),{})}function y(e,t=d){let{records:n=`records`,total:r=`total`}=t;return{records:e[n]??[],total:e[r]??0}}function b(e){let t=o([e].flat());return r(t)?[200]:t}function x(e){let t=o([e].flat());return r(t)?[401]:t}export{y as a,m as c,v as i,g as n,b as o,_ as r,x as s,h as t};
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`),n=require(`./array-ri-t3Wsz.cjs`),r=require(`./constant-CskvZDUK.cjs`),i=require(`./parse-BpErok05.cjs`);let a=require(`lodash.get`);a=e.r(a);function o(e={}){return Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{})}function s(e={}){return Object.keys(e).reduce((n,r)=>{let i=e[r];return t.f(i)||(t.g(i)&&String(i).length>=15?n[r]=String(i):n[r]=i),n},{})}function c(e,t=r.i){let{code:n=`code`,data:i=`data`,msg:a=`msg`}=t;return{data:e[i],msg:e[a],code:e[n]}}function l(e,o=r.n,s=!0){let{label:c=`label`,value:l=`value`,json:u=`json`,disabled:d=`disabled`,children:f=`children`}=o,p=e;e.some(e=>t.v(e)&&Object.keys(e).includes(f))&&(p=n.c(e,f));let m=p.reduce((e,n)=>{if(t.v(n)){let t={label:i.t(c.includes(`#{`)?c:`#{${c}}`,n,{prefix:`#{`,suffix:`}`}),value:(0,a.default)(n,l),disabled:(0,a.default)(n,d)??!1,json:(0,a.default)(n,u)??n};e.push(t)}else (t.g(n)||t.y(n)||t.o(n))&&e.push({label:n,value:n,json:{}});return e},[]);return s?n.d(m,[`value`]):m}function u(e={pageSize:10,pageNo:1},t=r.r){return Object.keys(e).reduce((n,r)=>(n[t[r]]=e[r],n),{})}function d(e,t=r.r){let{records:n=`records`,total:i=`total`}=t;return{records:e[n]??[],total:e[i]??0}}function f(e){let r=n.a([e].flat());return t.u(r)?[200]:r}function p(e){let r=n.a([e].flat());return t.u(r)?[401]:r}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./constant-CskvZDUK.cjs`),n=require(`./cancel-Do0w5I5K.cjs`),r=require(`./file-B9oorXhT.cjs`),i=require(`./format-CezZBld9.cjs`);let a=require(`lodash.merge`);const o=new Map;function s(e){let t={},n=e.split(`?`)[1];return n&&n.split(`&`).forEach(e=>{let[n=``,r=``]=e.split(`=`);t[n]=r}),t}function c(e,t){o.get(401)&&!t.whiteUrl?.().includes(e.url??``)&&n.a(e,!0);let r=(0,a.default)({},e),[c=``]=(r.url??``).split(`?`),l=i.c((0,a.default)({},s(r.url??``),r.params));t.allowNullValue||(l=i.t(l)),r.url=c,r.params=l,r.headers?.[`Content-Type`]||(0,a.default)(r.headers,{"Content-Type":`application/json;charset=utf-8`});let{token:u}=t;if(u?.key&&u.get()){let e={[u.key]:u.get()};(0,a.default)(r.headers,e)}else u?.key&&r.headers&&Reflect.deleteProperty(r.headers,u.key);return t.allowCancel&&(n.a(r),n.t(r)),t.beforeRequest?t.beforeRequest(r):r}function l(e){if(e.type===`REQUEST`&&i.s(e.options.unauthorizedCode).includes(e.content.code)){if(n.r(),e.options[401])return e.options[401](e)}else if(e.type===`CANCEL`&&e.options.cancel)return e.options.cancel(e);else if(e.options.error)return e.options.error(e);return Promise.reject(e)}async function u(e,s){let{data:c,config:u}=e,d=c,f=u;if(s.afterRequest){let{data:t,config:n}=s.afterRequest(e,s);d=t,f=n}let p=(0,a.default)({},t.i,s.alias?.());if(n.a(e.config),i.s(s.unauthorizedCode).includes(d[p.code]))return l({type:`REQUEST`,content:i.n(d,p),options:s,response:e});if(o.delete(401),f.responseType===`blob`){let t=await r.t(d);return i.o(s.successCode).includes(t.code)?i.n(t):l({type:`REQUEST`,content:t,options:s,response:e})}else if(i.o(s.successCode).includes(d[p.code]))return Promise.resolve(i.n(d,p));else return l({type:`REQUEST`,content:i.n(d,p),options:s,response:e})}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
@@ -1,10 +0,0 @@
1
- import { C as ResDataType, f as ObrAxiosRequestConfig, o as ErrorType, p as ObrAxiosResponse, u as ObjectDataType, y as RequestBaseConfig } from "./types-DTtPjrm8.cjs";
2
-
3
- //#region src/request/handler.d.ts
4
- declare const ErrorMessage: Map<number, string>;
5
- declare function requestUrl2json(url: string): ObjectDataType;
6
- declare function useRequestHandler(config: ObrAxiosRequestConfig, options: RequestBaseConfig): any;
7
- declare function useErrorHandler(error: ErrorType): any;
8
- declare function useResponseHandler(response: ObrAxiosResponse<ResDataType>, options: RequestBaseConfig): Promise<any>;
9
- //#endregion
10
- export { useResponseHandler as a, useRequestHandler as i, requestUrl2json as n, useErrorHandler as r, ErrorMessage as t };
@@ -1 +0,0 @@
1
- import{c as e}from"./lodash-iHVEJs1z.mjs";import{i as t}from"./constant-Dxt8HuVn.mjs";import{a as n,r,t as i}from"./cancel-BV5B58Lw.mjs";import{t as a}from"./file-Dwobl-pF.mjs";import{c as o,n as s,o as c,s as l,t as u}from"./format-3CsgkBWg.mjs";const d=new Map;function f(e){let t={},n=e.split(`?`)[1];return n&&n.split(`&`).forEach(e=>{let[n=``,r=``]=e.split(`=`);t[n]=r}),t}function p(t,r){d.get(401)&&!r.whiteUrl?.().includes(t.url??``)&&n(t,!0);let a=e({},t),[s=``]=(a.url??``).split(`?`),c=o(e({},f(a.url??``),a.params));r.allowNullValue||(c=u(c)),a.url=s,a.params=c,a.headers?.[`Content-Type`]||e(a.headers,{"Content-Type":`application/json;charset=utf-8`});let{token:l}=r;if(l?.key&&l.get()){let t={[l.key]:l.get()};e(a.headers,t)}else l?.key&&a.headers&&Reflect.deleteProperty(a.headers,l.key);return r.allowCancel&&(n(a),i(a)),r.beforeRequest?r.beforeRequest(a):a}function m(e){if(e.type===`REQUEST`&&l(e.options.unauthorizedCode).includes(e.content.code)){if(r(),e.options[401])return e.options[401](e)}else if(e.type===`CANCEL`&&e.options.cancel)return e.options.cancel(e);else if(e.options.error)return e.options.error(e);return Promise.reject(e)}async function h(r,i){let{data:o,config:u}=r,f=o,p=u;if(i.afterRequest){let{data:e,config:t}=i.afterRequest(r,i);f=e,p=t}let h=e({},t,i.alias?.());if(n(r.config),l(i.unauthorizedCode).includes(f[h.code]))return m({type:`REQUEST`,content:s(f,h),options:i,response:r});if(d.delete(401),p.responseType===`blob`){let e=await a(f);return c(i.successCode).includes(e.code)?s(e):m({type:`REQUEST`,content:e,options:i,response:r})}else if(c(i.successCode).includes(f[h.code]))return Promise.resolve(s(f,h));else return m({type:`REQUEST`,content:s(f,h),options:i,response:r})}export{h as a,p as i,f as n,m as r,d as t};
@@ -1,10 +0,0 @@
1
- import { C as ResDataType, f as ObrAxiosRequestConfig, o as ErrorType, p as ObrAxiosResponse, u as ObjectDataType, y as RequestBaseConfig } from "./types-BEdiy6mb.mjs";
2
-
3
- //#region src/request/handler.d.ts
4
- declare const ErrorMessage: Map<number, string>;
5
- declare function requestUrl2json(url: string): ObjectDataType;
6
- declare function useRequestHandler(config: ObrAxiosRequestConfig, options: RequestBaseConfig): any;
7
- declare function useErrorHandler(error: ErrorType): any;
8
- declare function useResponseHandler(response: ObrAxiosResponse<ResDataType>, options: RequestBaseConfig): Promise<any>;
9
- //#endregion
10
- export { useResponseHandler as a, useRequestHandler as i, requestUrl2json as n, useErrorHandler as r, ErrorMessage as t };
@@ -1 +0,0 @@
1
- import{D as e,_ as t}from"./base-854WVUaj.mjs";import{c as n}from"./lodash-iHVEJs1z.mjs";import{n as r,r as i,t as a}from"./storage-CVE8yo6N.mjs";function o(r,i){let a=r,o={timeout:5e3,allowPostOrigins:``,allowReceiveOrigins:``},s=()=>{o=n({},o,i)},c=new Map,l=()=>{if(a&&a?.contentWindow)return!0;throw Error(`iframe content not load!`)},u=(t,n=`default`)=>({uuid:e(10),type:n,content:t}),d=e=>{if((o.allowReceiveOrigins?.split(`,`)??[]).some(t=>t===`*`||t===e.origin)){let t=e.data;t.uuid&&c.has(t.uuid)&&c.set(t.uuid,t.content)}},f=(e,t)=>{l();let n=t??a.src,r=o.allowPostOrigins?.split(`,`)??[];if(n&&r.some(e=>e===`*`||n.includes(e)))c.set(e.uuid,null),a.contentWindow?.postMessage(e,n);else throw Error(`iframe[${n}]不在[configs.allowPostOrigins]范围内!`)},p=(e,n)=>new Promise((r,i)=>{try{let i=t(e)&&e.uuid?e:u(e);if(f(i,n),i.uuid)c.set(i.uuid,null);else throw Error(`消息发送失败`);let a=0,s=setInterval(()=>{let e=c.get(i.uuid);if(e!==null){clearInterval(s),c.delete(i.uuid),r(e);return}if(a+=10,a>=o.timeout)throw clearInterval(s),Error(`消息回传超时!`)},10)}catch(e){i(e)}}),m=async(e,t,n)=>{let r=null;try{r=await p(u(t,e),n)}catch{r=null}return r},h=(e=``,t)=>m(`LocalStorage`,e,t),g=(e=``,t)=>m(`SessionStorage`,e,t),_=(e=``,t)=>m(`Cookie`,e,t),v=()=>{l(),window.addEventListener(`message`,d)};return{load:()=>(s(),new Promise(e=>{a.onload=()=>{e(!0)},v()})),post:p,destory:()=>{window.removeEventListener(`message`,d)},getLocalStorage:h,getSessionStorage:g,getCookie:_,messageFormat:u}}async function s(e,t,n){if(window.top===window.self)throw Error(`页面[${location.origin}]非iframe嵌入方式, 不允许接收message!`);if((n?.split(`,`)??[]).some(t=>t===`*`||t===e.origin)){let n=[`default`,`LocalStorage`,`SessionStorage`,`Cookie`],o=e.data;if(o&&o.uuid&&n.includes(o.type)){let n=null;try{if(o.type===`LocalStorage`){let e=r(o.content?[o.content]:[]);n=o.content?e?.[o.content]:e}else if(o.type===`SessionStorage`){let e=i(o.content?[o.content]:[]);n=o.content?e?.[o.content]:e}else if(o.type===`Cookie`){let e=a(o.content?[o.content]:[]);n=o.content?e?.[o.content]:e}else n=t?await t(o.content):null;n===null&&(n=void 0)}catch{n=null}window.top&&window.top.postMessage({...o,content:n},e.origin)}}}function c(t,n){window.top&&window.top!==window.self&&window.top.postMessage({uuid:e(),content:t},n??window.top.origin)}export{s as n,c as r,o as t};
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`),n=require(`./storage-ClTxbIcP.cjs`);let r=require(`lodash.merge`);function i(e,n){let i=e,a={timeout:5e3,allowPostOrigins:``,allowReceiveOrigins:``},o=()=>{a=(0,r.default)({},a,n)},s=new Map,c=()=>{if(i&&i?.contentWindow)return!0;throw Error(`iframe content not load!`)},l=(e,n=`default`)=>({uuid:t.D(10),type:n,content:e}),u=e=>{if((a.allowReceiveOrigins?.split(`,`)??[]).some(t=>t===`*`||t===e.origin)){let t=e.data;t.uuid&&s.has(t.uuid)&&s.set(t.uuid,t.content)}},d=(e,t)=>{c();let n=t??i.src,r=a.allowPostOrigins?.split(`,`)??[];if(n&&r.some(e=>e===`*`||n.includes(e)))s.set(e.uuid,null),i.contentWindow?.postMessage(e,n);else throw Error(`iframe[${n}]不在[configs.allowPostOrigins]范围内!`)},f=(e,n)=>new Promise((r,i)=>{try{let i=t._(e)&&e.uuid?e:l(e);if(d(i,n),i.uuid)s.set(i.uuid,null);else throw Error(`消息发送失败`);let o=0,c=setInterval(()=>{let e=s.get(i.uuid);if(e!==null){clearInterval(c),s.delete(i.uuid),r(e);return}if(o+=10,o>=a.timeout)throw clearInterval(c),Error(`消息回传超时!`)},10)}catch(e){i(e)}}),p=async(e,t,n)=>{let r=null;try{r=await f(l(t,e),n)}catch{r=null}return r},m=(e=``,t)=>p(`LocalStorage`,e,t),h=(e=``,t)=>p(`SessionStorage`,e,t),g=(e=``,t)=>p(`Cookie`,e,t),_=()=>{c(),window.addEventListener(`message`,u)};return{load:()=>(o(),new Promise(e=>{i.onload=()=>{e(!0)},_()})),post:f,destory:()=>{window.removeEventListener(`message`,u)},getLocalStorage:m,getSessionStorage:h,getCookie:g,messageFormat:l}}async function a(e,t,r){if(window.top===window.self)throw Error(`页面[${location.origin}]非iframe嵌入方式, 不允许接收message!`);if((r?.split(`,`)??[]).some(t=>t===`*`||t===e.origin)){let r=[`default`,`LocalStorage`,`SessionStorage`,`Cookie`],i=e.data;if(i&&i.uuid&&r.includes(i.type)){let r=null;try{if(i.type===`LocalStorage`){let e=n.n(i.content?[i.content]:[]);r=i.content?e?.[i.content]:e}else if(i.type===`SessionStorage`){let e=n.r(i.content?[i.content]:[]);r=i.content?e?.[i.content]:e}else if(i.type===`Cookie`){let e=n.t(i.content?[i.content]:[]);r=i.content?e?.[i.content]:e}else r=t?await t(i.content):null;r===null&&(r=void 0)}catch{r=null}window.top&&window.top.postMessage({...i,content:r},e.origin)}}}function o(e,n){window.top&&window.top!==window.self&&window.top.postMessage({uuid:t.D(),content:e},n??window.top.origin)}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
@@ -1,58 +0,0 @@
1
- //#region src/dom/iframe.d.ts
2
- type AllowMessageType = 'default' | 'LocalStorage' | 'SessionStorage' | 'Cookie';
3
- /**
4
- * @description: 配置类型
5
- * @param {number} timeout 消息回传超时时间(单位毫秒 默认5000ms)
6
- * @param {string} allowPostOrigins 允许发送消息的origin 多个用半角逗号分隔[,] 默认为空
7
- * @param {string} allowReceiveOrigins 允许接收消息的origin 多个用半角逗号分隔[,](永远都不会接收自己页面的message) 默认为空
8
- * @autor: 刘 相卿
9
- */
10
- interface IFrameUtilConfig {
11
- timeout?: number;
12
- allowPostOrigins?: string;
13
- allowReceiveOrigins?: string;
14
- }
15
- interface IFrameMessageDataType<T = any> {
16
- uuid: string;
17
- type: AllowMessageType;
18
- content: T;
19
- }
20
- /**
21
- * @description: iframe消息发送hook
22
- * 应用于父页面
23
- * 父页面必须通过发消息才能与嵌套的iframe建立通信
24
- * 不可直接调用iframe的内容
25
- * @param {HTMLIFrameElement} element
26
- * @param {IFrameUtilConfig} configs 可选项
27
- * @return {*}
28
- * @autor: 刘 相卿
29
- */
30
- declare function iframePostHook(element: HTMLIFrameElement, configs?: IFrameUtilConfig): {
31
- load: () => Promise<boolean>;
32
- post: <T = any>(data: T | IFrameMessageDataType<T>, origin?: string) => Promise<T>;
33
- destory: () => void;
34
- getLocalStorage: <T_1>(key?: string, origin?: string) => Promise<T_1 | null>;
35
- getSessionStorage: <T_2>(key?: string, origin?: string) => Promise<T_2 | null>;
36
- getCookie: <T_3>(key?: string, origin?: string) => Promise<T_3 | null>;
37
- messageFormat: <T_4 = any>(content: T_4, type?: AllowMessageType) => IFrameMessageDataType<T_4>;
38
- };
39
- /**
40
- * @description: iframe消息接收hook
41
- * 应用于以frame方式嵌入的页面 非iframe嵌入方式不可使用
42
- * @param {IFrameUtilConfig} messageEvent
43
- * @param {(data: any) => T | Promise<T>} callback 可选项
44
- * @param {IFrameUtilConfig} allowOrigins 允许接收消息的origin 多个用半角逗号分隔[,](永远都不会接收自己页面的message)
45
- * @return {*}
46
- * @autor: 刘 相卿
47
- */
48
- declare function iframeReceiveHook<T = any>(messageEvent: MessageEvent<IFrameMessageDataType<any>>, callback?: (data: any) => T | Promise<T>, allowOrigins?: string): Promise<void>;
49
- /**
50
- * @description: 向父级发送消息
51
- * @param {any} content
52
- * @param {string} origin
53
- * @return {*}
54
- * @autor: 刘 相卿
55
- */
56
- declare function postMessage2Top(content: any, origin?: string): void;
57
- //#endregion
58
- export { iframeReceiveHook as a, iframePostHook as i, IFrameMessageDataType as n, postMessage2Top as o, IFrameUtilConfig as r, AllowMessageType as t };
@@ -1 +0,0 @@
1
- export { };
@@ -1,3 +0,0 @@
1
- import { n as __reExport, t as __export } from "./chunk-Dbq9I6zD.mjs";
2
- import { a as useResponseHandler, i as useRequestHandler, n as requestUrl2json, r as useErrorHandler, t as ErrorMessage } from "./handler-bsPUG7U9.mjs";
3
- import { t as ObrRequest } from "./request-DGUcKxsQ.mjs";
@@ -1 +0,0 @@
1
- export { };
@@ -1,7 +0,0 @@
1
- import { a as useResponseHandler, i as useRequestHandler, n as requestUrl2json, r as useErrorHandler, t as ErrorMessage } from "./handler-Dk1QWSgF.cjs";
2
- import { t as ObrRequest } from "./request-C8gChBjl.cjs";
3
-
4
- //#region rolldown:runtime
5
-
6
- //#endregion
7
- export { __reExport as n, __export as t };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
package/dist/index.cjs DELETED
@@ -1 +0,0 @@
1
- const e=require(`./chunk-BcXMmzxH.cjs`),t=require(`./base-DUxrUTOr.cjs`);require(`./lodash-kixEH9o9.cjs`);const n=require(`./object-C6qVmoZY.cjs`),r=require(`./array-ri-t3Wsz.cjs`),i=require(`./clipboard-ZMrs6wzK.cjs`),a=require(`./dayjs-Bvzj_rlD.cjs`),o=require(`./encrypt-D6oTfiTY.cjs`),s=require(`./file-rmcv99h0.cjs`),c=require(`./safe-next-tick-DphyaFY6.cjs`),l=require(`./other-c9ZDQ-tY.cjs`),u=require(`./find-dom-node-lY7vePVL.cjs`),d=require(`./is-visible-laJngqtK.cjs`),f=require(`./contains-CYQgjY4K.cjs`),p=require(`./style-names-CYvxRARD.cjs`),m=require(`./class-D8a8qnWA.cjs`),h=require(`./css-WYllKaVv.cjs`);require(`./can-use-dom-DvmMdeGa.cjs`);const g=require(`./dynamic-css-iSnm5CN6.cjs`),_=require(`./focus-DtSCSQEr.cjs`),v=require(`./style-checker-DAxS0NyJ.cjs`),y=require(`./support-BZYJpIOE.cjs`),b=require(`./base-DmSU_ydZ.cjs`),x=require(`./storage-ClTxbIcP.cjs`),S=require(`./iframe-CR0bl22C.cjs`),C=require(`./scrollbar-2zQwgB3N.cjs`),w=require(`./video-BDLauzJm.cjs`);require(`./dom-DzrnEGri.cjs`);const T=require(`./type-util-HyvLYA2w.cjs`),E=require(`./clipboard-CWQVWiTk.cjs`);require(`./vue-CGBzFhF4.cjs`),require(`./constant-CskvZDUK.cjs`),require(`./cancel-Do0w5I5K.cjs`),require(`./file-B9oorXhT.cjs`);const D=require(`./parse-BpErok05.cjs`);require(`./format-CezZBld9.cjs`);const O=require(`./handler-C40H2JG4.cjs`);require(`./params-CnZhAsve.cjs`);const k=require(`./request-Cbv8Ih3e.cjs`);require(`./request-CcQHJNao.cjs`),require(`./types-DAFnYo8a.cjs`);const A=require(`./pinyin-BE6Ew65z.cjs`);let j=require(`lodash.camelcase`),M=require(`lodash.clone`),N=require(`lodash.clonedeep`),P=require(`dayjs`),F=require(`lodash.debounce`),I=require(`lodash.get`),L=require(`lodash.has`),R=require(`lodash.kebabcase`),z=require(`lodash.merge`),B=require(`pinyin-pro`),V=require(`lodash.set`);var H=e.t({ErrorMessage:()=>O.t,ObrRequest:()=>k.t,addClass:()=>m.t,animation:()=>y.t,anyType:()=>T.t,array2option:()=>r.t,array2tree:()=>r.n,arrayType:()=>T.n,backLastFocusNode:()=>_.t,base64ToFile:()=>s.t,booleanType:()=>T.r,camelcase:()=>j.default,chinese2initial:()=>A.t,chinese2pinyin:()=>A.n,chunkFile:()=>s.n,clearContainerCache:()=>g.t,clearLastFocusNode:()=>_.n,clipboardCopy:()=>i.t,clone:()=>M.default,cloneData2Object:()=>n.t,cloneDeep:()=>N.default,contains:()=>f.t,createPwd:()=>o.t,dateRangeFormatter:()=>a.t,dayjs:()=>P.default,debounce:()=>F.default,decryptText:()=>o.n,delayTimer:()=>c.t,deleteElement:()=>r.r,deleteElementPro:()=>r.i,deleteEmptyElement:()=>r.a,deleteEmptyValue:()=>n.n,encrypt:()=>o.r,encryptText:()=>o.i,eventType:()=>T.i,fileToBase64:()=>s.r,findDOMNode:()=>u.t,findDomNode:()=>u.t,formatPositiveNumber:()=>t.t,formdata2json:()=>n.r,functionType:()=>T.a,get:()=>I.default,getClientSize:()=>h.t,getCookie:()=>x.t,getCss:()=>h.n,getDataType:()=>t.n,getDocSize:()=>h.r,getElementsByValues:()=>r.o,getEventValue:()=>T.o,getFileType:()=>t.r,getFocusNodeList:()=>_.r,getLocalStorage:()=>x.n,getMaxZIndex:()=>b.t,getMimeByUrl:()=>l.t,getObjectFromMapping:()=>n.i,getOffset:()=>h.i,getOuterHeight:()=>h.a,getOuterWidth:()=>h.o,getPx:()=>b.n,getScroll:()=>h.s,getScrollbarWidth:()=>C.t,getSessionStorage:()=>x.r,getValueByMapping:()=>l.n,getVideoPoster:()=>w.t,has:()=>L.default,hasClass:()=>m.n,hasProperties:()=>n.a,hex2rgba:()=>l.r,iframePostHook:()=>S.t,iframeReceiveHook:()=>S.n,injectCSS:()=>g.n,isArray:()=>t.i,isBaseType:()=>t.a,isBoolean:()=>t.o,isDate:()=>t.s,isDef:()=>t.c,isEmpty:()=>t.l,isEmptyArray:()=>t.u,isEmptyObject:()=>t.d,isEmptyValue:()=>t.f,isFunction:()=>t.p,isMeaninglessArray:()=>t.m,isNull:()=>t.h,isNumber:()=>t.g,isObject:()=>t._,isObjectDataType:()=>t.v,isString:()=>t.y,isStyleSupport:()=>v.t,isSymbol:()=>t.b,isUndefined:()=>t.x,isUrl:()=>t.S,isVisible:()=>d.t,json2formdata:()=>n.o,json2string:()=>t.C,json2url:()=>n.s,kebabcase:()=>R.default,limitTabRange:()=>_.i,merge:()=>z.default,mergeObject:()=>n.c,number2thousands:()=>l.i,numberType:()=>T.s,objectSortByKey:()=>n.l,objectType:()=>T.c,omit:()=>n.u,parseTemplate:()=>D.t,pick:()=>n.d,pinyin:()=>B.pinyin,postMessage2Top:()=>S.r,registryDayjsPlugin:()=>a.n,removeCSS:()=>g.r,removeClass:()=>m.r,removeElement:()=>l.a,replaceLastMatch:()=>t.w,replaceMatch:()=>t.T,requestUrl2json:()=>O.n,runAsyncEvent:()=>T.l,runEvent:()=>T.u,safeNextick:()=>c.n,saveLastFocusNode:()=>_.a,set:()=>V.default,setCss:()=>h.c,setDocumentTitle:()=>b.r,setLocale:()=>a.r,someType:()=>T.d,string2json:()=>t.E,stringType:()=>T.f,styleNames:()=>p.t,toArray:()=>r.s,transition:()=>y.n,tree2array:()=>r.c,tuple:()=>r.l,tupleNum:()=>r.u,uniqueArrayByKeys:()=>r.d,updateCSS:()=>g.i,url2json:()=>n.f,useClipboard:()=>E.t,useErrorHandler:()=>O.r,usePromise:()=>l.o,useRequestHandler:()=>O.i,useResponseHandler:()=>O.a,uuid:()=>t.D,vNodeType:()=>T.p});exports.ErrorMessage=O.t,exports.ObrRequest=k.t,exports.addClass=m.t,exports.animation=y.t,exports.anyType=T.t,exports.array2option=r.t,exports.array2tree=r.n,exports.arrayType=T.n,exports.backLastFocusNode=_.t,exports.base64ToFile=s.t,exports.booleanType=T.r,exports.camelcase=j.default,exports.chinese2initial=A.t,exports.chinese2pinyin=A.n,exports.chunkFile=s.n,exports.clearContainerCache=g.t,exports.clearLastFocusNode=_.n,exports.clipboardCopy=i.t,exports.clone=M.default,exports.cloneData2Object=n.t,exports.cloneDeep=N.default,exports.contains=f.t,exports.createPwd=o.t,exports.dateRangeFormatter=a.t,exports.dayjs=P.default,exports.debounce=F.default,exports.decryptText=o.n,exports.delayTimer=c.t,exports.deleteElement=r.r,exports.deleteElementPro=r.i,exports.deleteEmptyElement=r.a,exports.deleteEmptyValue=n.n,exports.encrypt=o.r,exports.encryptText=o.i,exports.eventType=T.i,exports.fileToBase64=s.r,exports.findDOMNode=u.t,exports.findDomNode=u.t,exports.formatPositiveNumber=t.t,exports.formdata2json=n.r,exports.functionType=T.a,exports.get=I.default,exports.getClientSize=h.t,exports.getCookie=x.t,exports.getCss=h.n,exports.getDataType=t.n,exports.getDocSize=h.r,exports.getElementsByValues=r.o,exports.getEventValue=T.o,exports.getFileType=t.r,exports.getFocusNodeList=_.r,exports.getLocalStorage=x.n,exports.getMaxZIndex=b.t,exports.getMimeByUrl=l.t,exports.getObjectFromMapping=n.i,exports.getOffset=h.i,exports.getOuterHeight=h.a,exports.getOuterWidth=h.o,exports.getPx=b.n,exports.getScroll=h.s,exports.getScrollbarWidth=C.t,exports.getSessionStorage=x.r,exports.getValueByMapping=l.n,exports.getVideoPoster=w.t,exports.has=L.default,exports.hasClass=m.n,exports.hasProperties=n.a,exports.hex2rgba=l.r,exports.iframePostHook=S.t,exports.iframeReceiveHook=S.n,exports.injectCSS=g.n,exports.isArray=t.i,exports.isBaseType=t.a,exports.isBoolean=t.o,exports.isDate=t.s,exports.isDef=t.c,exports.isEmpty=t.l,exports.isEmptyArray=t.u,exports.isEmptyObject=t.d,exports.isEmptyValue=t.f,exports.isFunction=t.p,exports.isMeaninglessArray=t.m,exports.isNull=t.h,exports.isNumber=t.g,exports.isObject=t._,exports.isObjectDataType=t.v,exports.isString=t.y,exports.isStyleSupport=v.t,exports.isSymbol=t.b,exports.isUndefined=t.x,exports.isUrl=t.S,exports.isVisible=d.t,exports.json2formdata=n.o,exports.json2string=t.C,exports.json2url=n.s,exports.kebabcase=R.default,exports.limitTabRange=_.i,exports.merge=z.default,exports.mergeObject=n.c,exports.number2thousands=l.i,exports.numberType=T.s,exports.objectSortByKey=n.l,exports.objectType=T.c,exports.omit=n.u,exports.parseTemplate=D.t,exports.pick=n.d,exports.pinyin=B.pinyin,exports.postMessage2Top=S.r,exports.registryDayjsPlugin=a.n,exports.removeCSS=g.r,exports.removeClass=m.r,exports.removeElement=l.a,exports.replaceLastMatch=t.w,exports.replaceMatch=t.T,exports.requestUrl2json=O.n,exports.runAsyncEvent=T.l,exports.runEvent=T.u,exports.safeNextick=c.n,exports.saveLastFocusNode=_.a,exports.set=V.default,exports.setCss=h.c,exports.setDocumentTitle=b.r,exports.setLocale=a.r,exports.someType=T.d,exports.string2json=t.E,exports.stringType=T.f,exports.styleNames=p.t,exports.toArray=r.s,exports.transition=y.n,exports.tree2array=r.c,exports.tuple=r.l,exports.tupleNum=r.u,exports.uniqueArrayByKeys=r.d,exports.updateCSS=g.i,exports.url2json=n.f,exports.useClipboard=E.t,exports.useErrorHandler=O.r,exports.usePromise=l.o,exports.useRequestHandler=O.i,exports.useResponseHandler=O.a,exports.uuid=t.D,exports.vNodeType=T.p;
package/dist/index.d.cts DELETED
@@ -1,43 +0,0 @@
1
- import { n as __reExport, t as __export } from "./index-CqciuydZ.cjs";
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-DTtPjrm8.cjs";
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-okkZATKz.cjs";
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-BXKvmcaf.cjs";
5
- import { t as clipboardCopy } from "./clipboard-Ci0l5Dtt.cjs";
6
- import { a as registryDayjsPlugin, i as dayjs, n as Dayjs, o as setLocale, r as dateRangeFormatter, t as DateType } from "./dayjs-DgS65bx1.cjs";
7
- import { n as getPx, r as setDocumentTitle, t as getMaxZIndex } from "./base-DSfexc9G.cjs";
8
- import { n as hasClass, r as removeClass, t as addClass } from "./class-Bp70Yi1y.cjs";
9
- import { t as contains } from "./contains-D3q8gHUu.cjs";
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-5xR1zP0f.cjs";
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-CIw8ZtwR.cjs";
12
- import { t as findDOMNode } from "./find-dom-node-BkrYW2pm.cjs";
13
- import { a as saveLastFocusNode, i as limitTabRange, n as clearLastFocusNode, r as getFocusNodeList, t as backLastFocusNode } from "./focus-BBcVAsFx.cjs";
14
- import { a as iframeReceiveHook, i as iframePostHook, n as IFrameMessageDataType, o as postMessage2Top, r as IFrameUtilConfig, t as AllowMessageType } from "./iframe-QhpkIola.cjs";
15
- import { t as _default } from "./is-visible-DT2jLmnp.cjs";
16
- import { t as styleNames } from "./style-names-ClFu2pk1.cjs";
17
- import { t as isStyleSupport } from "./style-checker-CpyAZJew.cjs";
18
- import { n as transition, t as animation } from "./support-jAYY4GwL.cjs";
19
- import { n as getLocalStorage, r as getSessionStorage, t as getCookie } from "./storage-DicI9wsP.cjs";
20
- import { t as getScrollbarWidth } from "./scrollbar-07jqhpVk.cjs";
21
- import { t as getVideoPoster } from "./video-Bp6NaeX6.cjs";
22
- import "./index-6bSwZ6-V.cjs";
23
- import { i as encryptText, n as decryptText, r as encrypt, t as createPwd } from "./encrypt-BFDBlSX_.cjs";
24
- import { i as fileToBase64, n as base64ToFile, r as chunkFile, t as FileChunkType } from "./file-CjjpuB5u.cjs";
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-CqyPehTh.cjs";
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-BrrZKPAY.cjs";
27
- import { n as safeNextick, t as delayTimer } from "./safe-next-tick-1ezZPIPs.cjs";
28
- import { a as removeElement, i as number2thousands, n as getValueByMapping, o as usePromise, r as hex2rgba, t as getMimeByUrl } from "./other-BzR4DqG0.cjs";
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-BRGMhQFp.cjs";
30
- import { t as useClipboard } from "./clipboard-C8ZiJE_h.cjs";
31
- import "./index-Ctvuv0vV.cjs";
32
- import { a as useResponseHandler, i as useRequestHandler, n as requestUrl2json, r as useErrorHandler, t as ErrorMessage } from "./handler-Dk1QWSgF.cjs";
33
- import { t as ObrRequest } from "./request-C8gChBjl.cjs";
34
- import { t as parseTemplate } from "./parse-vp0jh8-x.cjs";
35
- import { n as chinese2pinyin, r as pinyin, t as chinese2initial } from "./pinyin-Di92101W.cjs";
36
- export * from "axios";
37
-
38
- //#region src/index.d.ts
39
- declare namespace index_d_exports {
40
- 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 };
41
- }
42
- //#endregion
43
- 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 +0,0 @@
1
- var e=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};export{e as t};
@@ -1,4 +0,0 @@
1
- //#region src/dom/is-visible.d.ts
2
- declare const _default: (element: Element) => boolean;
3
- //#endregion
4
- export { _default as t };
@@ -1,4 +0,0 @@
1
- //#region src/dom/is-visible.d.ts
2
- declare const _default: (element: Element) => boolean;
3
- //#endregion
4
- export { _default as t };
@@ -1 +0,0 @@
1
- var e=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};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -1,10 +0,0 @@
1
- import cloneDeep from "lodash.clonedeep";
2
- import debounce from "lodash.debounce";
3
- import merge from "lodash.merge";
4
- import clone from "lodash.clone";
5
- import get from "lodash.get";
6
- import set from "lodash.set";
7
- import has from "lodash.has";
8
- import kebabcase from "lodash.kebabcase";
9
- import camelcase from "lodash.camelcase";
10
- export { get as a, merge as c, debounce as i, set as l, clone as n, has as o, cloneDeep as r, kebabcase as s, camelcase as t };
@@ -1,10 +0,0 @@
1
- import cloneDeep$1 from "lodash.clonedeep";
2
- import debounce from "lodash.debounce";
3
- import merge$1 from "lodash.merge";
4
- import clone from "lodash.clone";
5
- import get$1 from "lodash.get";
6
- import set from "lodash.set";
7
- import has from "lodash.has";
8
- import kebabcase from "lodash.kebabcase";
9
- import camelcase from "lodash.camelcase";
10
- export { get$1 as a, merge$1 as c, debounce as i, set as l, clone as n, has as o, cloneDeep$1 as r, kebabcase as s, camelcase as t };
@@ -1 +0,0 @@
1
- import e from"lodash.clonedeep";import t from"lodash.debounce";import n from"lodash.merge";import r from"lodash.clone";import i from"lodash.get";import a from"lodash.set";import o from"lodash.has";import s from"lodash.kebabcase";import c from"lodash.camelcase";export{i as a,n as c,t as i,a as l,r as n,o,e as r,s,c as t};