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