@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.
- package/dist/array.d.mts +98 -3
- package/dist/{array-CiSUhZCW.d.mts → array.d.ts} +8 -9
- package/dist/array.js +1 -0
- package/dist/array.mjs +1 -1
- package/dist/base.d.mts +192 -3
- package/dist/{base-BXKvmcaf.d.cts → base.d.ts} +4 -5
- package/dist/base.js +1 -0
- package/dist/base.mjs +1 -1
- package/dist/chunk-3EVCK72A.mjs +1 -0
- package/dist/chunk-44EYU7QJ.mjs +1 -0
- package/dist/chunk-4JPCGRPU.mjs +1 -0
- package/dist/chunk-6DX7ZFGR.mjs +1 -0
- package/dist/chunk-7FGMUEZA.mjs +1 -0
- package/dist/chunk-7YMDSJIW.mjs +1 -0
- package/dist/chunk-A25LR755.mjs +1 -0
- package/dist/chunk-A5BXGBYT.mjs +1 -0
- package/dist/chunk-AMTPTGPU.mjs +1 -0
- package/dist/chunk-BEM6E7R7.mjs +1 -0
- package/dist/chunk-BPXO4V4X.mjs +1 -0
- package/dist/chunk-CTKIL4BL.mjs +1 -0
- package/dist/chunk-DDHFJKTT.mjs +1 -0
- package/dist/chunk-DKKF6DRJ.mjs +1 -0
- package/dist/chunk-DVMX6FDA.mjs +1 -0
- package/dist/chunk-E4SEMOGO.mjs +1 -0
- package/dist/chunk-EUDEMS67.mjs +1 -0
- package/dist/chunk-G6NAYP42.mjs +1 -0
- package/dist/chunk-GS4ARDQV.mjs +1 -0
- package/dist/chunk-HOXWKSQ2.mjs +1 -0
- package/dist/chunk-HZMHGGXU.mjs +1 -0
- package/dist/chunk-INFFTHYR.mjs +1 -0
- package/dist/chunk-IZHCWZIN.mjs +1 -0
- package/dist/chunk-KGXCJWE5.mjs +1 -0
- package/dist/chunk-LPLK3ZT5.mjs +1 -0
- package/dist/chunk-MQBXN7R5.mjs +1 -0
- package/dist/chunk-MUHFPVB3.mjs +1 -0
- package/dist/chunk-MUUIQW2M.mjs +1 -0
- package/dist/chunk-NX2HGAYK.mjs +1 -0
- package/dist/chunk-PE3DNHCL.mjs +1 -0
- package/dist/chunk-PK5CYIDE.mjs +1 -0
- package/dist/chunk-SAXMBV46.mjs +1 -0
- package/dist/chunk-TQ5GXPYB.mjs +1 -0
- package/dist/chunk-UVMLBW6A.mjs +1 -0
- package/dist/chunk-VYAKT4FB.mjs +1 -0
- package/dist/chunk-WN7L4HYY.mjs +1 -0
- package/dist/chunk-X7TUTCBW.mjs +1 -0
- package/dist/chunk-YA66RVVU.mjs +1 -0
- package/dist/clipboard.d.mts +3 -2
- package/dist/clipboard.d.ts +3 -0
- package/dist/clipboard.js +1 -0
- package/dist/clipboard.mjs +1 -1
- package/dist/dayjs.d.mts +29 -2
- package/dist/{dayjs-DgS65bx1.d.cts → dayjs.d.ts} +5 -6
- package/dist/dayjs.js +1 -0
- package/dist/dayjs.mjs +1 -1
- package/dist/dom/base.d.mts +24 -2
- package/dist/{base-Ca2FN16G.d.mts → dom/base.d.ts} +2 -3
- package/dist/dom/base.js +1 -0
- package/dist/dom/base.mjs +1 -1
- package/dist/dom/class.d.mts +26 -2
- package/dist/{class-Bp70Yi1y.d.cts → dom/class.d.ts} +2 -3
- package/dist/dom/class.js +1 -0
- package/dist/dom/class.mjs +1 -1
- package/dist/dom/contains.d.mts +10 -2
- package/dist/{contains-Bj-oQ7KI.d.mts → dom/contains.d.ts} +2 -3
- package/dist/dom/contains.js +1 -0
- package/dist/dom/contains.mjs +1 -1
- package/dist/dom/css.d.mts +22 -2
- package/dist/{css-5xR1zP0f.d.cts → dom/css.d.ts} +10 -11
- package/dist/dom/css.js +1 -0
- package/dist/dom/css.mjs +1 -1
- package/dist/dom/dynamic-css.d.mts +20 -2
- package/dist/{dynamic-css-CIw8ZtwR.d.cts → dom/dynamic-css.d.ts} +8 -9
- package/dist/dom/dynamic-css.js +1 -0
- package/dist/dom/dynamic-css.mjs +1 -1
- package/dist/dom/find-dom-node.d.mts +3 -2
- package/dist/dom/find-dom-node.d.ts +3 -0
- package/dist/dom/find-dom-node.js +1 -0
- package/dist/dom/find-dom-node.mjs +1 -1
- package/dist/dom/focus.d.mts +10 -2
- package/dist/{focus-BBcVAsFx.d.cts → dom/focus.d.ts} +2 -3
- package/dist/dom/focus.js +1 -0
- package/dist/dom/focus.mjs +1 -1
- package/dist/dom/iframe.d.mts +57 -2
- package/dist/{iframe-CBeiHcmx.d.mts → dom/iframe.d.ts} +15 -16
- package/dist/dom/iframe.js +1 -0
- package/dist/dom/iframe.mjs +1 -1
- package/dist/dom/index.d.mts +17 -18
- package/dist/dom/index.d.ts +17 -0
- package/dist/dom/index.js +1 -0
- package/dist/dom/index.mjs +1 -1
- package/dist/dom/is-visible.d.mts +3 -2
- package/dist/dom/is-visible.d.ts +3 -0
- package/dist/dom/is-visible.js +1 -0
- package/dist/dom/is-visible.mjs +1 -1
- package/dist/dom/lib/can-use-dom.d.mts +2 -3
- package/dist/dom/lib/can-use-dom.d.ts +3 -0
- package/dist/dom/lib/can-use-dom.js +1 -0
- package/dist/dom/lib/can-use-dom.mjs +1 -1
- package/dist/dom/scrollbar.d.mts +8 -2
- package/dist/{scrollbar-B0PNF6i2.d.mts → dom/scrollbar.d.ts} +2 -3
- package/dist/dom/scrollbar.js +1 -0
- package/dist/dom/scrollbar.mjs +1 -1
- package/dist/dom/storage.d.mts +20 -3
- package/dist/{storage-DicI9wsP.d.cts → dom/storage.d.ts} +4 -5
- package/dist/dom/storage.js +1 -0
- package/dist/dom/storage.mjs +1 -1
- package/dist/dom/style-checker.d.mts +4 -2
- package/dist/{style-checker-CpyAZJew.d.cts → dom/style-checker.d.ts} +2 -3
- package/dist/dom/style-checker.js +1 -0
- package/dist/dom/style-checker.mjs +1 -1
- package/dist/dom/style-names.d.mts +3 -2
- package/dist/{style-names-ClFu2pk1.d.cts → dom/style-names.d.ts} +2 -3
- package/dist/dom/style-names.js +1 -0
- package/dist/dom/style-names.mjs +1 -1
- package/dist/dom/support.d.mts +8 -2
- package/dist/dom/support.d.ts +8 -0
- package/dist/dom/support.js +1 -0
- package/dist/dom/support.mjs +1 -1
- package/dist/dom/video.d.mts +9 -2
- package/dist/{video-Bp6NaeX6.d.cts → dom/video.d.ts} +2 -3
- package/dist/dom/video.js +1 -0
- package/dist/dom/video.mjs +1 -1
- package/dist/encrypt.d.mts +28 -2
- package/dist/{encrypt-BFDBlSX_.d.cts → encrypt.d.ts} +2 -3
- package/dist/encrypt.js +1 -0
- package/dist/encrypt.mjs +1 -1
- package/dist/file.d.mts +35 -2
- package/dist/{file-CjjpuB5u.d.cts → file.d.ts} +5 -6
- package/dist/file.js +1 -0
- package/dist/file.mjs +1 -1
- package/dist/index.d.mts +44 -44
- package/dist/index.d.ts +44 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -1
- package/dist/lodash.d.mts +9 -2
- package/dist/lodash.d.ts +9 -0
- package/dist/lodash.js +1 -0
- package/dist/lodash.mjs +1 -1
- package/dist/object.d.mts +86 -3
- package/dist/{object-CqyPehTh.d.cts → object.d.ts} +4 -5
- package/dist/object.js +1 -0
- package/dist/object.mjs +1 -1
- package/dist/other.d.mts +49 -3
- package/dist/{other-BzR4DqG0.d.cts → other.d.ts} +4 -5
- package/dist/other.js +1 -0
- package/dist/other.mjs +1 -1
- package/dist/parse.d.mts +21 -3
- package/dist/{parse-DQMRWCdz.d.mts → parse.d.ts} +7 -8
- package/dist/parse.js +1 -0
- package/dist/parse.mjs +1 -1
- package/dist/pinyin.d.mts +18 -2
- package/dist/{pinyin-C2BqrFMq.d.mts → pinyin.d.ts} +3 -5
- package/dist/pinyin.js +1 -0
- package/dist/pinyin.mjs +1 -1
- package/dist/request/constant.d.mts +4 -4
- package/dist/request/{constant.d.cts → constant.d.ts} +4 -4
- package/dist/request/constant.js +1 -0
- package/dist/request/constant.mjs +1 -1
- package/dist/request/handler.d.mts +10 -3
- package/dist/request/handler.d.ts +10 -0
- package/dist/request/handler.js +1 -0
- package/dist/request/handler.mjs +1 -1
- package/dist/request/index.d.mts +4 -6
- package/dist/request/index.d.ts +4 -0
- package/dist/request/index.js +1 -0
- package/dist/request/index.mjs +1 -1
- package/dist/request/request.d.mts +99 -3
- package/dist/request/request.d.ts +99 -0
- package/dist/request/request.js +1 -0
- package/dist/request/request.mjs +1 -1
- package/dist/request/utils/cancel.d.mts +4 -4
- package/dist/request/utils/{cancel.d.cts → cancel.d.ts} +4 -4
- package/dist/request/utils/cancel.js +1 -0
- package/dist/request/utils/cancel.mjs +1 -1
- package/dist/request/utils/file.d.mts +4 -4
- package/dist/request/utils/file.d.ts +6 -0
- package/dist/request/utils/file.js +1 -0
- package/dist/request/utils/file.mjs +1 -1
- package/dist/request/utils/format.d.mts +4 -4
- package/dist/request/utils/{format.d.cts → format.d.ts} +4 -4
- package/dist/request/utils/format.js +1 -0
- package/dist/request/utils/format.mjs +1 -1
- package/dist/request/utils/params.d.mts +4 -4
- package/dist/request/utils/params.d.ts +6 -0
- package/dist/request/utils/params.js +1 -0
- package/dist/request/utils/params.mjs +1 -1
- package/dist/safe-next-tick.d.mts +9 -2
- package/dist/{safe-next-tick-DlJsO1Ha.d.mts → safe-next-tick.d.ts} +4 -5
- package/dist/safe-next-tick.js +1 -0
- package/dist/safe-next-tick.mjs +1 -1
- package/dist/types.d.mts +207 -2
- package/dist/types.d.ts +207 -0
- package/dist/types.js +1 -0
- package/dist/types.mjs +1 -1
- package/dist/vue/hooks/clipboard.d.mts +8 -2
- package/dist/vue/hooks/clipboard.d.ts +8 -0
- package/dist/vue/hooks/clipboard.js +1 -0
- package/dist/vue/hooks/clipboard.mjs +1 -1
- package/dist/vue/index.d.mts +3 -4
- package/dist/vue/index.d.ts +3 -0
- package/dist/vue/index.js +1 -0
- package/dist/vue/index.mjs +1 -1
- package/dist/vue/type-util.d.mts +47 -2
- package/dist/{type-util-BdSpgYN3.d.mts → vue/type-util.d.ts} +21 -22
- package/dist/vue/type-util.js +1 -0
- package/dist/vue/type-util.mjs +1 -1
- package/package.json +4 -4
- package/dist/array-CEhD-Z_e.mjs +0 -1
- package/dist/array-okkZATKz.d.cts +0 -99
- package/dist/array-ri-t3Wsz.cjs +0 -1
- package/dist/array.cjs +0 -1
- package/dist/array.d.cts +0 -3
- package/dist/base-854WVUaj.mjs +0 -1
- package/dist/base-BSg8gJZf.mjs +0 -1
- package/dist/base-DSfexc9G.d.cts +0 -25
- package/dist/base-DUxrUTOr.cjs +0 -1
- package/dist/base-Dl59EolR.d.mts +0 -193
- package/dist/base-DmSU_ydZ.cjs +0 -1
- package/dist/base.cjs +0 -1
- package/dist/base.d.cts +0 -3
- package/dist/can-use-dom-DiyvIP5G.mjs +0 -1
- package/dist/can-use-dom-DvmMdeGa.cjs +0 -1
- package/dist/cancel-BV5B58Lw.mjs +0 -1
- package/dist/cancel-Do0w5I5K.cjs +0 -1
- package/dist/chunk-BcXMmzxH.cjs +0 -1
- package/dist/chunk-Dbq9I6zD.mjs +0 -1
- package/dist/class-C29-Mh-o.mjs +0 -1
- package/dist/class-D5duI9ps.d.mts +0 -27
- package/dist/class-D8a8qnWA.cjs +0 -1
- package/dist/clipboard-BN1iiQLu.d.mts +0 -4
- package/dist/clipboard-C8ZiJE_h.d.cts +0 -9
- package/dist/clipboard-CJ-9sRbH.d.mts +0 -9
- package/dist/clipboard-CWQVWiTk.cjs +0 -1
- package/dist/clipboard-Ci0l5Dtt.d.cts +0 -4
- package/dist/clipboard-CjgXtqbg.mjs +0 -1
- package/dist/clipboard-DqGhq6A4.mjs +0 -1
- package/dist/clipboard-ZMrs6wzK.cjs +0 -1
- package/dist/clipboard.cjs +0 -1
- package/dist/clipboard.d.cts +0 -2
- package/dist/constant-CskvZDUK.cjs +0 -1
- package/dist/constant-Dxt8HuVn.mjs +0 -1
- package/dist/contains-BpG9RIaT.mjs +0 -1
- package/dist/contains-CYQgjY4K.cjs +0 -1
- package/dist/contains-D3q8gHUu.d.cts +0 -11
- package/dist/css-DIpTZrC7.mjs +0 -1
- package/dist/css-DkmknM-7.d.mts +0 -23
- package/dist/css-WYllKaVv.cjs +0 -1
- package/dist/dayjs-00xX6Mts.d.mts +0 -31
- package/dist/dayjs-BBOQ72ow.mjs +0 -1
- package/dist/dayjs-Bvzj_rlD.cjs +0 -1
- package/dist/dayjs.cjs +0 -1
- package/dist/dayjs.d.cts +0 -2
- package/dist/dom/base.cjs +0 -1
- package/dist/dom/base.d.cts +0 -2
- package/dist/dom/class.cjs +0 -1
- package/dist/dom/class.d.cts +0 -2
- package/dist/dom/contains.cjs +0 -1
- package/dist/dom/contains.d.cts +0 -2
- package/dist/dom/css.cjs +0 -1
- package/dist/dom/css.d.cts +0 -2
- package/dist/dom/dynamic-css.cjs +0 -1
- package/dist/dom/dynamic-css.d.cts +0 -2
- package/dist/dom/find-dom-node.cjs +0 -1
- package/dist/dom/find-dom-node.d.cts +0 -2
- package/dist/dom/focus.cjs +0 -1
- package/dist/dom/focus.d.cts +0 -2
- package/dist/dom/iframe.cjs +0 -1
- package/dist/dom/iframe.d.cts +0 -2
- package/dist/dom/index.cjs +0 -1
- package/dist/dom/index.d.cts +0 -18
- package/dist/dom/is-visible.cjs +0 -1
- package/dist/dom/is-visible.d.cts +0 -2
- package/dist/dom/lib/can-use-dom.cjs +0 -1
- package/dist/dom/lib/can-use-dom.d.cts +0 -3
- package/dist/dom/scrollbar.cjs +0 -1
- package/dist/dom/scrollbar.d.cts +0 -2
- package/dist/dom/storage.cjs +0 -1
- package/dist/dom/storage.d.cts +0 -3
- package/dist/dom/style-checker.cjs +0 -1
- package/dist/dom/style-checker.d.cts +0 -2
- package/dist/dom/style-names.cjs +0 -1
- package/dist/dom/style-names.d.cts +0 -2
- package/dist/dom/support.cjs +0 -1
- package/dist/dom/support.d.cts +0 -2
- package/dist/dom/video.cjs +0 -1
- package/dist/dom/video.d.cts +0 -2
- package/dist/dom-D2QfuVth.mjs +0 -1
- package/dist/dynamic-css-CD9eHWzL.d.mts +0 -21
- package/dist/dynamic-css-CP1iFszw.mjs +0 -1
- package/dist/dynamic-css-iSnm5CN6.cjs +0 -1
- package/dist/encrypt-CHxdyuoC.d.mts +0 -29
- package/dist/encrypt-D6oTfiTY.cjs +0 -1
- package/dist/encrypt-Z5CU2r_1.mjs +0 -1
- package/dist/encrypt.cjs +0 -1
- package/dist/encrypt.d.cts +0 -2
- package/dist/file-B9oorXhT.cjs +0 -1
- package/dist/file-D4oBhObv.d.mts +0 -36
- package/dist/file-Dwobl-pF.mjs +0 -1
- package/dist/file-TjtumYrh.mjs +0 -1
- package/dist/file-rmcv99h0.cjs +0 -1
- package/dist/file.cjs +0 -1
- package/dist/file.d.cts +0 -2
- package/dist/find-dom-node-BYO9We8P.d.mts +0 -4
- package/dist/find-dom-node-BkrYW2pm.d.cts +0 -4
- package/dist/find-dom-node-gbroqN2N.mjs +0 -1
- package/dist/find-dom-node-lY7vePVL.cjs +0 -1
- package/dist/focus-ByNB07tt.d.mts +0 -11
- package/dist/focus-DtSCSQEr.cjs +0 -1
- package/dist/focus-REYXIBdQ.mjs +0 -1
- package/dist/format-3CsgkBWg.mjs +0 -1
- package/dist/format-CezZBld9.cjs +0 -1
- package/dist/handler-C40H2JG4.cjs +0 -1
- package/dist/handler-Dk1QWSgF.d.cts +0 -10
- package/dist/handler-N6Akxkpa.mjs +0 -1
- package/dist/handler-bsPUG7U9.d.mts +0 -10
- package/dist/iframe-ByOdqFYr.mjs +0 -1
- package/dist/iframe-CR0bl22C.cjs +0 -1
- package/dist/iframe-QhpkIola.d.cts +0 -58
- package/dist/index-6bSwZ6-V.d.cts +0 -1
- package/dist/index-BYjO2-Dk.d.mts +0 -3
- package/dist/index-CLTQPxoD.d.mts +0 -1
- package/dist/index-CqciuydZ.d.cts +0 -7
- package/dist/index-Ctvuv0vV.d.cts +0 -1
- package/dist/index-D-9tW2r5.d.mts +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -43
- package/dist/is-visible-BXbqt6I2.mjs +0 -1
- package/dist/is-visible-BpFCb4uJ.d.mts +0 -4
- package/dist/is-visible-DT2jLmnp.d.cts +0 -4
- package/dist/is-visible-laJngqtK.cjs +0 -1
- package/dist/lodash-BrrZKPAY.d.cts +0 -10
- package/dist/lodash-DAdPs0O9.d.mts +0 -10
- package/dist/lodash-iHVEJs1z.mjs +0 -1
- package/dist/lodash-kixEH9o9.cjs +0 -1
- package/dist/lodash.cjs +0 -1
- package/dist/lodash.d.cts +0 -2
- package/dist/object-C6qVmoZY.cjs +0 -1
- package/dist/object-j-lK643f.mjs +0 -1
- package/dist/object-l_DvbWqN.d.mts +0 -87
- package/dist/object.cjs +0 -1
- package/dist/object.d.cts +0 -3
- package/dist/other-B2ug3Xof.mjs +0 -1
- package/dist/other-H13CGzY5.d.mts +0 -50
- package/dist/other-c9ZDQ-tY.cjs +0 -1
- package/dist/other.cjs +0 -1
- package/dist/other.d.cts +0 -3
- package/dist/params-CnZhAsve.cjs +0 -1
- package/dist/params-CpjttIDa.mjs +0 -1
- package/dist/parse-BpErok05.cjs +0 -1
- package/dist/parse-C1eaIjot.mjs +0 -1
- package/dist/parse-vp0jh8-x.d.cts +0 -22
- package/dist/parse.cjs +0 -1
- package/dist/parse.d.cts +0 -3
- package/dist/pinyin-BE6Ew65z.cjs +0 -1
- package/dist/pinyin-D11MW4u2.mjs +0 -1
- package/dist/pinyin-Di92101W.d.cts +0 -20
- package/dist/pinyin.cjs +0 -1
- package/dist/pinyin.d.cts +0 -2
- package/dist/request/constant.cjs +0 -1
- package/dist/request/handler.cjs +0 -1
- package/dist/request/handler.d.cts +0 -3
- package/dist/request/index.cjs +0 -1
- package/dist/request/index.d.cts +0 -6
- package/dist/request/request.cjs +0 -1
- package/dist/request/request.d.cts +0 -3
- package/dist/request/utils/cancel.cjs +0 -1
- package/dist/request/utils/file.cjs +0 -1
- package/dist/request/utils/file.d.cts +0 -6
- package/dist/request/utils/format.cjs +0 -1
- package/dist/request/utils/params.cjs +0 -1
- package/dist/request/utils/params.d.cts +0 -6
- package/dist/request-BG5UIh9R.mjs +0 -1
- package/dist/request-C8gChBjl.d.cts +0 -99
- package/dist/request-Cbv8Ih3e.cjs +0 -1
- package/dist/request-CcQHJNao.cjs +0 -1
- package/dist/request-CmsAe99W.mjs +0 -1
- package/dist/request-DGUcKxsQ.d.mts +0 -99
- package/dist/safe-next-tick-1ezZPIPs.d.cts +0 -10
- package/dist/safe-next-tick-Cc30ZlUX.mjs +0 -1
- package/dist/safe-next-tick-DphyaFY6.cjs +0 -1
- package/dist/safe-next-tick.cjs +0 -1
- package/dist/safe-next-tick.d.cts +0 -2
- package/dist/scrollbar-07jqhpVk.d.cts +0 -9
- package/dist/scrollbar-2zQwgB3N.cjs +0 -1
- package/dist/scrollbar-BsVSwcz1.mjs +0 -1
- package/dist/storage-CVE8yo6N.mjs +0 -1
- package/dist/storage-ClTxbIcP.cjs +0 -1
- package/dist/storage-HTBNfA8Q.d.mts +0 -21
- package/dist/style-checker-066o7h7_.mjs +0 -1
- package/dist/style-checker-B5wzcdHi.d.mts +0 -5
- package/dist/style-checker-DAxS0NyJ.cjs +0 -1
- package/dist/style-names-CYvxRARD.cjs +0 -1
- package/dist/style-names-DDdz6-7S.d.mts +0 -4
- package/dist/style-names-cEIIM3cL.mjs +0 -1
- package/dist/support-BKRoxgNc.d.mts +0 -9
- package/dist/support-BZYJpIOE.cjs +0 -1
- package/dist/support-jAYY4GwL.d.cts +0 -9
- package/dist/support-wu9hh5gZ.mjs +0 -1
- package/dist/type-util-BRGMhQFp.d.cts +0 -48
- package/dist/type-util-HyvLYA2w.cjs +0 -1
- package/dist/type-util-Qle7ht7X.mjs +0 -1
- package/dist/types-BEdiy6mb.d.mts +0 -208
- package/dist/types-Bs46AtMe.mjs +0 -1
- package/dist/types-DTtPjrm8.d.cts +0 -208
- package/dist/types.cjs +0 -1
- package/dist/types.d.cts +0 -2
- package/dist/video-BDLauzJm.cjs +0 -1
- package/dist/video-C_sYI0Ht.d.mts +0 -10
- package/dist/video-CtkByFxt.mjs +0 -1
- package/dist/vue/hooks/clipboard.cjs +0 -1
- package/dist/vue/hooks/clipboard.d.cts +0 -2
- package/dist/vue/index.cjs +0 -1
- package/dist/vue/index.d.cts +0 -4
- package/dist/vue/type-util.cjs +0 -1
- package/dist/vue/type-util.d.cts +0 -2
- package/dist/vue-Q8n_JN-R.mjs +0 -1
- /package/dist/{dom-DzrnEGri.cjs → chunk-G27KRYT2.mjs} +0 -0
- /package/dist/{types-DAFnYo8a.cjs → chunk-PM3H3ISM.mjs} +0 -0
- /package/dist/{vue-CGBzFhF4.cjs → chunk-WBQAMGXK.mjs} +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { u as ObjectDataType } from "./types-BEdiy6mb.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/dom/storage.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @description: 获取本地存储(LocalStorage)
|
|
7
|
-
* @param {string[]} keys
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @autor: 刘 相卿
|
|
10
|
-
*/
|
|
11
|
-
declare function getLocalStorage(keys?: string[]): ObjectDataType | null;
|
|
12
|
-
/**
|
|
13
|
-
* @description: 获取本地存储(SessionStorage)
|
|
14
|
-
* @param {string[]} keys
|
|
15
|
-
* @return {*}
|
|
16
|
-
* @autor: 刘 相卿
|
|
17
|
-
*/
|
|
18
|
-
declare function getSessionStorage(keys?: string[]): ObjectDataType | null;
|
|
19
|
-
declare function getCookie(keys?: string[]): Record<string, string> | null;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { getLocalStorage as n, getSessionStorage as r, getCookie as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./can-use-dom-DiyvIP5G.mjs";function t(t){if(e()&&window.document.documentElement){let e=Array.isArray(t)?t:[t],{documentElement:n}=window.document;return e.some(e=>e in n.style)}return!1}function n(e,n){if(!t(e))return!1;let r=document.createElement(`div`),i=r.style[e];return r.style[e]=n,r.style[e]!==i}function r(e,r){return!Array.isArray(e)&&r!==void 0?n(e,r):t(e)}export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./can-use-dom-DvmMdeGa.cjs`);function t(t){if(e.t()&&window.document.documentElement){let e=Array.isArray(t)?t:[t],{documentElement:n}=window.document;return e.some(e=>e in n.style)}return!1}function n(e,n){if(!t(e))return!1;let r=document.createElement(`div`),i=r.style[e];return r.style[e]=n,r.style[e]!==i}function r(e,r){return!Array.isArray(e)&&r!==void 0?n(e,r):t(e)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return r}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./base-DUxrUTOr.cjs`);function t(e){let t={},n=e.split(`;`);for(let e of n){if(!e)continue;let n=e.split(`:`);n[0]&&(t[n[0]]=n[1])}return t}function n(...r){if(r.length<1)return;let i={};for(let a of r)if(a)if(e.y(a))Object.assign(i,t(a));else if(e.i(a)){let e=n(...a);e&&Object.assign(i,e)}else e._(a)&&Object.assign(i,a);return i}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,i as t,y as n}from"./base-854WVUaj.mjs";function r(e){let t={},n=e.split(`;`);for(let e of n){if(!e)continue;let n=e.split(`:`);n[0]&&(t[n[0]]=n[1])}return t}function i(...a){if(a.length<1)return;let o={};for(let s of a)if(s)if(n(s))Object.assign(o,r(s));else if(t(s)){let e=i(...s);e&&Object.assign(o,e)}else e(s)&&Object.assign(o,s);return o}export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./can-use-dom-DvmMdeGa.cjs`),t={WebkitAnimation:`webkitAnimationEnd`,OAnimation:`oAnimationEnd`,animation:`animationend`},n={WebkitTransition:`webkitTransitionEnd`,OTransition:`oTransitionEnd`,transition:`transitionend`};function r(e){let t=document.createElement(`div`);for(let n in e)if(e.hasOwnProperty(n)&&t.style[n]!==void 0)return{end:e[n]};return!1}const i=e.t()&&r(t),a=e.t()&&r(n);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./can-use-dom-DiyvIP5G.mjs";const t={WebkitAnimation:`webkitAnimationEnd`,OAnimation:`oAnimationEnd`,animation:`animationend`},n={WebkitTransition:`webkitTransitionEnd`,OTransition:`oTransitionEnd`,transition:`transitionend`};function r(e){let t=document.createElement(`div`);for(let n in e)if(e.hasOwnProperty(n)&&t.style[n]!==void 0)return{end:e[n]};return!1}const i=e()&&r(t),a=e()&&r(n);export{a as n,i as t};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { VNodeChild } from "vue";
|
|
2
|
-
|
|
3
|
-
//#region src/vue/type-util.d.ts
|
|
4
|
-
type vueNode = VNodeChild | string | number | boolean | null | undefined;
|
|
5
|
-
type VueKey = string | number;
|
|
6
|
-
declare function stringType<T extends string = string>(defaultVal?: T): {
|
|
7
|
-
type: PropType<T>;
|
|
8
|
-
default: T;
|
|
9
|
-
};
|
|
10
|
-
declare function numberType<T extends number = number>(defaultVal?: T): {
|
|
11
|
-
type: PropType<T>;
|
|
12
|
-
default: T;
|
|
13
|
-
};
|
|
14
|
-
declare function booleanType<T extends boolean = boolean>(defaultVal?: T): {
|
|
15
|
-
type: PropType<T>;
|
|
16
|
-
default: T;
|
|
17
|
-
};
|
|
18
|
-
declare function arrayType<T extends any[] = any[]>(defaultVal?: T): {
|
|
19
|
-
type: PropType<T>;
|
|
20
|
-
default: T;
|
|
21
|
-
};
|
|
22
|
-
declare function objectType<T extends Record<string, any> = Record<string, any>>(defaultVal?: T): {
|
|
23
|
-
type: PropType<T>;
|
|
24
|
-
default: T;
|
|
25
|
-
};
|
|
26
|
-
declare function functionType<T = () => any>(defaultVal?: T): {
|
|
27
|
-
type: PropType<T>;
|
|
28
|
-
default: T;
|
|
29
|
-
};
|
|
30
|
-
declare function anyType<T = any>(defaultVal?: T, required?: boolean): {
|
|
31
|
-
default: T;
|
|
32
|
-
type: PropType<T>;
|
|
33
|
-
};
|
|
34
|
-
declare function vNodeType<T = vueNode>(): {
|
|
35
|
-
type: PropType<T>;
|
|
36
|
-
};
|
|
37
|
-
declare function someType<T>(types?: any[], defaultVal?: T): {
|
|
38
|
-
type: PropType<T>;
|
|
39
|
-
default: T;
|
|
40
|
-
};
|
|
41
|
-
declare function eventType<T>(): {
|
|
42
|
-
type: PropType<T>;
|
|
43
|
-
};
|
|
44
|
-
declare function runEvent<T>(event: T, ...args: any[]): any;
|
|
45
|
-
declare function runAsyncEvent<T>(event: T, ...args: any[]): Promise<any>;
|
|
46
|
-
declare function getEventValue<T = any>(result: any, index?: number): T;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { eventType as a, numberType as c, runEvent as d, someType as f, vueNode as h, booleanType as i, objectType as l, vNodeType as m, anyType as n, functionType as o, stringType as p, arrayType as r, getEventValue as s, VueKey as t, runAsyncEvent as u };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return{type:String,default:e}}function t(e){return{type:Number,default:e}}function n(e){return{type:Boolean,default:e}}function r(e){return{type:Array,default:e}}function i(e){return{type:Object,default:e}}function a(e){return{type:Function,default:e}}function o(e,t){return{validator:()=>!0,default:e}}function s(){return{validator:()=>!0}}function c(e,t){return e?{type:e,default:t}:o(t)}function l(){return{type:[Function,Array]}}function u(e,...t){if(typeof e==`function`)return e(...t);if(Array.isArray(e))return e.map(e=>e(...t))}async function d(e,...t){if(typeof e==`function`)return await e(...t);if(Array.isArray(e))return await Promise.all(e.map(e=>e(...t)))}function f(e,t=0){return Array.isArray(e)?e[t]:e}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return{type:String,default:e}}function t(e){return{type:Number,default:e}}function n(e){return{type:Boolean,default:e}}function r(e){return{type:Array,default:e}}function i(e){return{type:Object,default:e}}function a(e){return{type:Function,default:e}}function o(e,t){return{validator:()=>!0,default:e}}function s(){return{validator:()=>!0}}function c(e,t){return e?{type:e,default:t}:o(t)}function l(){return{type:[Function,Array]}}function u(e,...t){if(typeof e==`function`)return e(...t);if(Array.isArray(e))return e.map(e=>e(...t))}async function d(e,...t){if(typeof e==`function`)return await e(...t);if(Array.isArray(e))return await Promise.all(e.map(e=>e(...t)))}function f(e,t=0){return Array.isArray(e)?e[t]:e}export{a,i as c,c as d,e as f,l as i,d as l,r as n,f as o,s as p,n as r,t as s,o as t,u};
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { AxiosError, AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosStatic, CanceledError, CreateAxiosDefaults, Method } from "axios";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
type ObjectDataType<T = any, D extends string = string> = Record<D, T>;
|
|
5
|
-
/**
|
|
6
|
-
* @description: 树形结构数据类型
|
|
7
|
-
* @autor: 刘 相卿
|
|
8
|
-
*/
|
|
9
|
-
interface TreeItemType extends ObjectDataType {
|
|
10
|
-
label?: string;
|
|
11
|
-
children?: TreeItemType[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @description: 数据类型
|
|
15
|
-
* @autor: 刘 相卿
|
|
16
|
-
*/
|
|
17
|
-
type DataType = 'set' | 'map' | 'function' | 'object' | 'array' | 'undefined' | 'null' | 'number' | 'symbol' | 'string' | 'boolean' | 'regexp' | 'date' | 'bigint' | 'blob' | 'formdata';
|
|
18
|
-
interface MappingType {
|
|
19
|
-
[x: string | number]: any;
|
|
20
|
-
default: any;
|
|
21
|
-
}
|
|
22
|
-
interface BaseOptionType<T = ObjectDataType> extends ObjectDataType {
|
|
23
|
-
label: string;
|
|
24
|
-
value: any;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
json?: T;
|
|
27
|
-
children?: BaseOptionType<T>[];
|
|
28
|
-
}
|
|
29
|
-
interface OptionResAlias {
|
|
30
|
-
label: string;
|
|
31
|
-
value: string;
|
|
32
|
-
disabled: string;
|
|
33
|
-
children: string;
|
|
34
|
-
json: string;
|
|
35
|
-
}
|
|
36
|
-
interface CascaderRequestOption {
|
|
37
|
-
url: string;
|
|
38
|
-
method?: Method;
|
|
39
|
-
params?: RequestParamConfig[];
|
|
40
|
-
alias?: Partial<Omit<OptionResAlias, 'json'>>;
|
|
41
|
-
}
|
|
42
|
-
interface CascaderOptionType<T extends ObjectDataType = ObjectDataType> {
|
|
43
|
-
label: string;
|
|
44
|
-
value: any;
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
json?: T;
|
|
47
|
-
children?: CascaderOptionType<T>[];
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @description: Token配置类型
|
|
51
|
-
* @param {string} key token的键名称
|
|
52
|
-
* @param {() => string} get 获取token的方法
|
|
53
|
-
* @autor: 刘 相卿
|
|
54
|
-
*/
|
|
55
|
-
interface TokenConfig {
|
|
56
|
-
key: string;
|
|
57
|
-
get: () => string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @description: header配置
|
|
61
|
-
* @param {boolean} `X-Never-Cancel` 是否永远不取消该请求
|
|
62
|
-
* @param {'path' | 'method' | 'params'} `X-Cancel-Rule` 取消规则(path: 同一路径; method: 同一路径+请求方法; params: 同一路径+请求方法+参数)
|
|
63
|
-
* @param {boolean} `X-Hide-Message` 是否隐藏请求消息提示
|
|
64
|
-
* @autor: 刘 相卿
|
|
65
|
-
*/
|
|
66
|
-
interface HeadersType {
|
|
67
|
-
'X-Never-Cancel'?: boolean;
|
|
68
|
-
'X-Cancel-Rule'?: 'path' | 'method' | 'params';
|
|
69
|
-
'X-Hide-Message'?: boolean;
|
|
70
|
-
}
|
|
71
|
-
interface ObrAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
|
|
72
|
-
headers?: AxiosRequestConfig['headers'] & HeadersType;
|
|
73
|
-
}
|
|
74
|
-
interface ObrAxiosResponse<T = any> extends Omit<AxiosResponse<T>, 'data'> {
|
|
75
|
-
data: ResDataType<T>;
|
|
76
|
-
}
|
|
77
|
-
interface ObrAxiosStatic extends Omit<AxiosStatic, 'create'> {
|
|
78
|
-
create: (config?: CreateAxiosDefaults) => ObrAxiosInstance;
|
|
79
|
-
}
|
|
80
|
-
interface ObrAxiosInstance extends Pick<AxiosInstance, 'defaults'> {
|
|
81
|
-
interceptors: {
|
|
82
|
-
request: AxiosInterceptorManager<ObrAxiosRequestConfig>;
|
|
83
|
-
response: AxiosInterceptorManager<ObrAxiosResponse<ResDataType>>;
|
|
84
|
-
};
|
|
85
|
-
<T = any, D = any>(config: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
|
|
86
|
-
<T = any, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
|
|
87
|
-
getUri: (config?: ObrAxiosRequestConfig) => string;
|
|
88
|
-
request: <T = any>(config: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
89
|
-
get: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
90
|
-
delete: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
91
|
-
head: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
92
|
-
options: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
93
|
-
post: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
94
|
-
put: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
95
|
-
postForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
96
|
-
putForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
97
|
-
patch: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
98
|
-
patchForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @description: 响应字段别名
|
|
102
|
-
* @param {string} code 响应code别名
|
|
103
|
-
* @param {string} data 响应数据别名
|
|
104
|
-
* @param {string} msg 响应消息提示别名
|
|
105
|
-
* @autor: 刘 相卿
|
|
106
|
-
*/
|
|
107
|
-
interface ResAlias {
|
|
108
|
-
code: string;
|
|
109
|
-
data: string;
|
|
110
|
-
msg: string;
|
|
111
|
-
}
|
|
112
|
-
interface PageAlias {
|
|
113
|
-
records: string;
|
|
114
|
-
total: string;
|
|
115
|
-
pageSize: string;
|
|
116
|
-
pageNo: string;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @description: 响应数据类型
|
|
120
|
-
* @param {number} code 响应code
|
|
121
|
-
* @param {T} data 响应数据
|
|
122
|
-
* @param {string} msg 响应消息提示
|
|
123
|
-
* @autor: 刘 相卿
|
|
124
|
-
*/
|
|
125
|
-
interface ResDataType<T = any> extends ObjectDataType {
|
|
126
|
-
code: number;
|
|
127
|
-
data: T;
|
|
128
|
-
msg: string;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @description: 分页接口响应数据
|
|
132
|
-
* @param {R[]} records 分页数据
|
|
133
|
-
* @param {number} total 分页总数
|
|
134
|
-
* @autor: 刘 相卿
|
|
135
|
-
*/
|
|
136
|
-
interface PageResType<R = ObjectDataType> {
|
|
137
|
-
records: R[];
|
|
138
|
-
total: number;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @description: 错误消息类型
|
|
142
|
-
* @param {number} type 错误类型
|
|
143
|
-
* @param {T} error 错误数据
|
|
144
|
-
* @autor: 刘 相卿
|
|
145
|
-
*/
|
|
146
|
-
interface ErrorContentObject {
|
|
147
|
-
REQUEST: {
|
|
148
|
-
type: 'REQUEST';
|
|
149
|
-
content: ResDataType;
|
|
150
|
-
};
|
|
151
|
-
CANCEL: {
|
|
152
|
-
type: 'CANCEL';
|
|
153
|
-
content: CanceledError<any>;
|
|
154
|
-
};
|
|
155
|
-
ERROR: {
|
|
156
|
-
type: 'ERROR';
|
|
157
|
-
content: AxiosError<any>;
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
interface ErrorBasicType {
|
|
161
|
-
options: RequestBaseConfig;
|
|
162
|
-
response?: ObrAxiosResponse<ResDataType>;
|
|
163
|
-
}
|
|
164
|
-
type ErrorTypeKey = keyof ErrorContentObject;
|
|
165
|
-
type ErrorType<T extends ErrorTypeKey = ErrorTypeKey> = ErrorBasicType & ErrorContentObject[T];
|
|
166
|
-
/**
|
|
167
|
-
* @description: 分页查询请求参数
|
|
168
|
-
* @param {number} pageSize 分页大小 = 10
|
|
169
|
-
* @param {number} pageNo 分页页码 = 1
|
|
170
|
-
* @autor: 刘 相卿
|
|
171
|
-
*/
|
|
172
|
-
interface PageQueryType {
|
|
173
|
-
pageSize?: number;
|
|
174
|
-
pageNo?: number;
|
|
175
|
-
}
|
|
176
|
-
interface RequestBaseConfig extends AxiosRequestConfig {
|
|
177
|
-
basePath?: string;
|
|
178
|
-
allowCancel?: boolean;
|
|
179
|
-
allowNullValue?: boolean;
|
|
180
|
-
successCode?: number | number[];
|
|
181
|
-
unauthorizedCode?: number | number[];
|
|
182
|
-
whiteUrl?: () => string[];
|
|
183
|
-
alias?: () => Partial<ResAlias>;
|
|
184
|
-
token?: TokenConfig;
|
|
185
|
-
beforeRequest?: (config: ObrAxiosRequestConfig) => ObrAxiosRequestConfig;
|
|
186
|
-
afterRequest?: (response: ObrAxiosResponse<ResDataType>, options: RequestBaseConfig) => ObrAxiosResponse<ResDataType>;
|
|
187
|
-
401?: (error: ErrorType<'REQUEST'>) => any;
|
|
188
|
-
cancel?: (error: ErrorType<'CANCEL'>) => any;
|
|
189
|
-
error?: (error: ErrorType) => any;
|
|
190
|
-
}
|
|
191
|
-
type RequestMethod = Method;
|
|
192
|
-
/**
|
|
193
|
-
* @description: 请求参数配置
|
|
194
|
-
* @return {*}
|
|
195
|
-
* @autor: 刘 相卿
|
|
196
|
-
*/
|
|
197
|
-
interface RequestParamConfig {
|
|
198
|
-
key: string;
|
|
199
|
-
required?: boolean;
|
|
200
|
-
toValue?: boolean;
|
|
201
|
-
source: {
|
|
202
|
-
path?: string;
|
|
203
|
-
defaultValue?: any;
|
|
204
|
-
formatter?: 'toArray' | 'toString' | 'toNumber';
|
|
205
|
-
}[];
|
|
206
|
-
}
|
|
207
|
-
//#endregion
|
|
208
|
-
export { ResDataType as C, ResAlias as S, TreeItemType as T, PageQueryType as _, ErrorContentObject as a, RequestMethod as b, HeadersType as c, ObrAxiosInstance as d, ObrAxiosRequestConfig as f, PageAlias as g, OptionResAlias as h, DataType as i, MappingType as l, ObrAxiosStatic as m, CascaderOptionType as n, ErrorType as o, ObrAxiosResponse as p, CascaderRequestOption as r, ErrorTypeKey as s, BaseOptionType as t, ObjectDataType as u, PageResType as v, TokenConfig as w, RequestParamConfig as x, RequestBaseConfig as y };
|
package/dist/types-Bs46AtMe.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { AxiosError, AxiosInstance, AxiosInterceptorManager, AxiosRequestConfig, AxiosResponse, AxiosStatic, CanceledError, CreateAxiosDefaults, Method } from "axios";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
type ObjectDataType<T = any, D extends string = string> = Record<D, T>;
|
|
5
|
-
/**
|
|
6
|
-
* @description: 树形结构数据类型
|
|
7
|
-
* @autor: 刘 相卿
|
|
8
|
-
*/
|
|
9
|
-
interface TreeItemType extends ObjectDataType {
|
|
10
|
-
label?: string;
|
|
11
|
-
children?: TreeItemType[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @description: 数据类型
|
|
15
|
-
* @autor: 刘 相卿
|
|
16
|
-
*/
|
|
17
|
-
type DataType = 'set' | 'map' | 'function' | 'object' | 'array' | 'undefined' | 'null' | 'number' | 'symbol' | 'string' | 'boolean' | 'regexp' | 'date' | 'bigint' | 'blob' | 'formdata';
|
|
18
|
-
interface MappingType {
|
|
19
|
-
[x: string | number]: any;
|
|
20
|
-
default: any;
|
|
21
|
-
}
|
|
22
|
-
interface BaseOptionType<T = ObjectDataType> extends ObjectDataType {
|
|
23
|
-
label: string;
|
|
24
|
-
value: any;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
json?: T;
|
|
27
|
-
children?: BaseOptionType<T>[];
|
|
28
|
-
}
|
|
29
|
-
interface OptionResAlias {
|
|
30
|
-
label: string;
|
|
31
|
-
value: string;
|
|
32
|
-
disabled: string;
|
|
33
|
-
children: string;
|
|
34
|
-
json: string;
|
|
35
|
-
}
|
|
36
|
-
interface CascaderRequestOption {
|
|
37
|
-
url: string;
|
|
38
|
-
method?: Method;
|
|
39
|
-
params?: RequestParamConfig[];
|
|
40
|
-
alias?: Partial<Omit<OptionResAlias, 'json'>>;
|
|
41
|
-
}
|
|
42
|
-
interface CascaderOptionType<T extends ObjectDataType = ObjectDataType> {
|
|
43
|
-
label: string;
|
|
44
|
-
value: any;
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
json?: T;
|
|
47
|
-
children?: CascaderOptionType<T>[];
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @description: Token配置类型
|
|
51
|
-
* @param {string} key token的键名称
|
|
52
|
-
* @param {() => string} get 获取token的方法
|
|
53
|
-
* @autor: 刘 相卿
|
|
54
|
-
*/
|
|
55
|
-
interface TokenConfig {
|
|
56
|
-
key: string;
|
|
57
|
-
get: () => string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* @description: header配置
|
|
61
|
-
* @param {boolean} `X-Never-Cancel` 是否永远不取消该请求
|
|
62
|
-
* @param {'path' | 'method' | 'params'} `X-Cancel-Rule` 取消规则(path: 同一路径; method: 同一路径+请求方法; params: 同一路径+请求方法+参数)
|
|
63
|
-
* @param {boolean} `X-Hide-Message` 是否隐藏请求消息提示
|
|
64
|
-
* @autor: 刘 相卿
|
|
65
|
-
*/
|
|
66
|
-
interface HeadersType {
|
|
67
|
-
'X-Never-Cancel'?: boolean;
|
|
68
|
-
'X-Cancel-Rule'?: 'path' | 'method' | 'params';
|
|
69
|
-
'X-Hide-Message'?: boolean;
|
|
70
|
-
}
|
|
71
|
-
interface ObrAxiosRequestConfig<D = any> extends AxiosRequestConfig<D> {
|
|
72
|
-
headers?: AxiosRequestConfig['headers'] & HeadersType;
|
|
73
|
-
}
|
|
74
|
-
interface ObrAxiosResponse<T = any> extends Omit<AxiosResponse<T>, 'data'> {
|
|
75
|
-
data: ResDataType<T>;
|
|
76
|
-
}
|
|
77
|
-
interface ObrAxiosStatic extends Omit<AxiosStatic, 'create'> {
|
|
78
|
-
create: (config?: CreateAxiosDefaults) => ObrAxiosInstance;
|
|
79
|
-
}
|
|
80
|
-
interface ObrAxiosInstance extends Pick<AxiosInstance, 'defaults'> {
|
|
81
|
-
interceptors: {
|
|
82
|
-
request: AxiosInterceptorManager<ObrAxiosRequestConfig>;
|
|
83
|
-
response: AxiosInterceptorManager<ObrAxiosResponse<ResDataType>>;
|
|
84
|
-
};
|
|
85
|
-
<T = any, D = any>(config: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
|
|
86
|
-
<T = any, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<ResDataType<T>>;
|
|
87
|
-
getUri: (config?: ObrAxiosRequestConfig) => string;
|
|
88
|
-
request: <T = any>(config: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
89
|
-
get: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
90
|
-
delete: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
91
|
-
head: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
92
|
-
options: <T = any>(url: string, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
93
|
-
post: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
94
|
-
put: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
95
|
-
postForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
96
|
-
putForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
97
|
-
patch: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
98
|
-
patchForm: <T = any, D = any>(url: string, data?: D, config?: ObrAxiosRequestConfig) => Promise<ResDataType<T>>;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @description: 响应字段别名
|
|
102
|
-
* @param {string} code 响应code别名
|
|
103
|
-
* @param {string} data 响应数据别名
|
|
104
|
-
* @param {string} msg 响应消息提示别名
|
|
105
|
-
* @autor: 刘 相卿
|
|
106
|
-
*/
|
|
107
|
-
interface ResAlias {
|
|
108
|
-
code: string;
|
|
109
|
-
data: string;
|
|
110
|
-
msg: string;
|
|
111
|
-
}
|
|
112
|
-
interface PageAlias {
|
|
113
|
-
records: string;
|
|
114
|
-
total: string;
|
|
115
|
-
pageSize: string;
|
|
116
|
-
pageNo: string;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* @description: 响应数据类型
|
|
120
|
-
* @param {number} code 响应code
|
|
121
|
-
* @param {T} data 响应数据
|
|
122
|
-
* @param {string} msg 响应消息提示
|
|
123
|
-
* @autor: 刘 相卿
|
|
124
|
-
*/
|
|
125
|
-
interface ResDataType<T = any> extends ObjectDataType {
|
|
126
|
-
code: number;
|
|
127
|
-
data: T;
|
|
128
|
-
msg: string;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* @description: 分页接口响应数据
|
|
132
|
-
* @param {R[]} records 分页数据
|
|
133
|
-
* @param {number} total 分页总数
|
|
134
|
-
* @autor: 刘 相卿
|
|
135
|
-
*/
|
|
136
|
-
interface PageResType<R = ObjectDataType> {
|
|
137
|
-
records: R[];
|
|
138
|
-
total: number;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @description: 错误消息类型
|
|
142
|
-
* @param {number} type 错误类型
|
|
143
|
-
* @param {T} error 错误数据
|
|
144
|
-
* @autor: 刘 相卿
|
|
145
|
-
*/
|
|
146
|
-
interface ErrorContentObject {
|
|
147
|
-
REQUEST: {
|
|
148
|
-
type: 'REQUEST';
|
|
149
|
-
content: ResDataType;
|
|
150
|
-
};
|
|
151
|
-
CANCEL: {
|
|
152
|
-
type: 'CANCEL';
|
|
153
|
-
content: CanceledError<any>;
|
|
154
|
-
};
|
|
155
|
-
ERROR: {
|
|
156
|
-
type: 'ERROR';
|
|
157
|
-
content: AxiosError<any>;
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
interface ErrorBasicType {
|
|
161
|
-
options: RequestBaseConfig;
|
|
162
|
-
response?: ObrAxiosResponse<ResDataType>;
|
|
163
|
-
}
|
|
164
|
-
type ErrorTypeKey = keyof ErrorContentObject;
|
|
165
|
-
type ErrorType<T extends ErrorTypeKey = ErrorTypeKey> = ErrorBasicType & ErrorContentObject[T];
|
|
166
|
-
/**
|
|
167
|
-
* @description: 分页查询请求参数
|
|
168
|
-
* @param {number} pageSize 分页大小 = 10
|
|
169
|
-
* @param {number} pageNo 分页页码 = 1
|
|
170
|
-
* @autor: 刘 相卿
|
|
171
|
-
*/
|
|
172
|
-
interface PageQueryType {
|
|
173
|
-
pageSize?: number;
|
|
174
|
-
pageNo?: number;
|
|
175
|
-
}
|
|
176
|
-
interface RequestBaseConfig extends AxiosRequestConfig {
|
|
177
|
-
basePath?: string;
|
|
178
|
-
allowCancel?: boolean;
|
|
179
|
-
allowNullValue?: boolean;
|
|
180
|
-
successCode?: number | number[];
|
|
181
|
-
unauthorizedCode?: number | number[];
|
|
182
|
-
whiteUrl?: () => string[];
|
|
183
|
-
alias?: () => Partial<ResAlias>;
|
|
184
|
-
token?: TokenConfig;
|
|
185
|
-
beforeRequest?: (config: ObrAxiosRequestConfig) => ObrAxiosRequestConfig;
|
|
186
|
-
afterRequest?: (response: ObrAxiosResponse<ResDataType>, options: RequestBaseConfig) => ObrAxiosResponse<ResDataType>;
|
|
187
|
-
401?: (error: ErrorType<'REQUEST'>) => any;
|
|
188
|
-
cancel?: (error: ErrorType<'CANCEL'>) => any;
|
|
189
|
-
error?: (error: ErrorType) => any;
|
|
190
|
-
}
|
|
191
|
-
type RequestMethod = Method;
|
|
192
|
-
/**
|
|
193
|
-
* @description: 请求参数配置
|
|
194
|
-
* @return {*}
|
|
195
|
-
* @autor: 刘 相卿
|
|
196
|
-
*/
|
|
197
|
-
interface RequestParamConfig {
|
|
198
|
-
key: string;
|
|
199
|
-
required?: boolean;
|
|
200
|
-
toValue?: boolean;
|
|
201
|
-
source: {
|
|
202
|
-
path?: string;
|
|
203
|
-
defaultValue?: any;
|
|
204
|
-
formatter?: 'toArray' | 'toString' | 'toNumber';
|
|
205
|
-
}[];
|
|
206
|
-
}
|
|
207
|
-
//#endregion
|
|
208
|
-
export { ResDataType as C, ResAlias as S, TreeItemType as T, PageQueryType as _, ErrorContentObject as a, RequestMethod as b, HeadersType as c, ObrAxiosInstance as d, ObrAxiosRequestConfig as f, PageAlias as g, OptionResAlias as h, DataType as i, MappingType as l, ObrAxiosStatic as m, CascaderOptionType as n, ErrorType as o, ObrAxiosResponse as p, CascaderRequestOption as r, ErrorTypeKey as s, BaseOptionType as t, ObjectDataType as u, PageResType as v, TokenConfig as w, RequestParamConfig as x, RequestBaseConfig as y };
|
package/dist/types.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./types-DAFnYo8a.cjs`);
|
package/dist/types.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { C as ResDataType, S as ResAlias, T as TreeItemType, _ as PageQueryType, a as ErrorContentObject, b as RequestMethod, c as HeadersType, d as ObrAxiosInstance, f as ObrAxiosRequestConfig, g as PageAlias, h as OptionResAlias, i as DataType, l as MappingType, m as ObrAxiosStatic, n as CascaderOptionType, o as ErrorType, p as ObrAxiosResponse, r as CascaderRequestOption, s as ErrorTypeKey, t as BaseOptionType, u as ObjectDataType, v as PageResType, w as TokenConfig, x as RequestParamConfig, y as RequestBaseConfig } from "./types-DTtPjrm8.cjs";
|
|
2
|
-
export { BaseOptionType, CascaderOptionType, CascaderRequestOption, DataType, ErrorContentObject, ErrorType, ErrorTypeKey, HeadersType, MappingType, ObjectDataType, ObrAxiosInstance, ObrAxiosRequestConfig, ObrAxiosResponse, ObrAxiosStatic, OptionResAlias, PageAlias, PageQueryType, PageResType, RequestBaseConfig, RequestMethod, RequestParamConfig, ResAlias, ResDataType, TokenConfig, TreeItemType };
|
package/dist/video-BDLauzJm.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return new Promise(t=>{let n=document.createElement(`video`),r=URL.createObjectURL(e);n.src=r,n.addEventListener(`loadedmetadata`,()=>{n.currentTime=0}),n.addEventListener(`seeked`,()=>{let e=document.createElement(`canvas`);e.width=n.videoWidth,e.height=n.videoHeight,e.getContext(`2d`)?.drawImage(n,0,0,e.width,e.height),t(e.toDataURL(`image/png`)),URL.revokeObjectURL(r)})})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
|
package/dist/video-CtkByFxt.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return new Promise(t=>{let n=document.createElement(`video`),r=URL.createObjectURL(e);n.src=r,n.addEventListener(`loadedmetadata`,()=>{n.currentTime=0}),n.addEventListener(`seeked`,()=>{let e=document.createElement(`canvas`);e.width=n.videoWidth,e.height=n.videoHeight,e.getContext(`2d`)?.drawImage(n,0,0,e.width,e.height),t(e.toDataURL(`image/png`)),URL.revokeObjectURL(r)})})}export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../../clipboard-ZMrs6wzK.cjs`);const e=require(`../../clipboard-CWQVWiTk.cjs`);exports.useClipboard=e.t;
|
package/dist/vue/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`../clipboard-ZMrs6wzK.cjs`);const e=require(`../type-util-HyvLYA2w.cjs`),t=require(`../clipboard-CWQVWiTk.cjs`);require(`../vue-CGBzFhF4.cjs`),exports.anyType=e.t,exports.arrayType=e.n,exports.booleanType=e.r,exports.eventType=e.i,exports.functionType=e.a,exports.getEventValue=e.o,exports.numberType=e.s,exports.objectType=e.c,exports.runAsyncEvent=e.l,exports.runEvent=e.u,exports.someType=e.d,exports.stringType=e.f,exports.useClipboard=t.t,exports.vNodeType=e.p;
|
package/dist/vue/index.d.cts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { a as eventType, c as numberType, d as runEvent, f as someType, h as vueNode, i as booleanType, l as objectType, m as vNodeType, n as anyType, o as functionType, p as stringType, r as arrayType, s as getEventValue, t as VueKey, u as runAsyncEvent } from "../type-util-BRGMhQFp.cjs";
|
|
2
|
-
import { t as useClipboard } from "../clipboard-C8ZiJE_h.cjs";
|
|
3
|
-
import "../index-Ctvuv0vV.cjs";
|
|
4
|
-
export { VueKey, anyType, arrayType, booleanType, eventType, functionType, getEventValue, numberType, objectType, runAsyncEvent, runEvent, someType, stringType, useClipboard, vNodeType, vueNode };
|
package/dist/vue/type-util.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`../type-util-HyvLYA2w.cjs`);exports.anyType=e.t,exports.arrayType=e.n,exports.booleanType=e.r,exports.eventType=e.i,exports.functionType=e.a,exports.getEventValue=e.o,exports.numberType=e.s,exports.objectType=e.c,exports.runAsyncEvent=e.l,exports.runEvent=e.u,exports.someType=e.d,exports.stringType=e.f,exports.vNodeType=e.p;
|
package/dist/vue/type-util.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as eventType, c as numberType, d as runEvent, f as someType, h as vueNode, i as booleanType, l as objectType, m as vNodeType, n as anyType, o as functionType, p as stringType, r as arrayType, s as getEventValue, t as VueKey, u as runAsyncEvent } from "../type-util-BRGMhQFp.cjs";
|
|
2
|
-
export { VueKey, anyType, arrayType, booleanType, eventType, functionType, getEventValue, numberType, objectType, runAsyncEvent, runEvent, someType, stringType, vNodeType, vueNode };
|
package/dist/vue-Q8n_JN-R.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|