prlg-ui 1.7.44 → 1.7.45
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/Image-CHlS9buq.js +213 -0
- package/dist/Image-DIcd8Rr2.cjs +1 -0
- package/dist/blocks/index.cjs.js +1 -1
- package/dist/blocks/index.es.js +84 -118
- package/dist/index.d.ts +3 -0
- package/dist/parseFileSize.util-BTDZr2sf.cjs +1 -0
- package/dist/parseFileSize.util-BoDbFdVW.js +44 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +721 -706
- package/dist/uploadFile.util-CorOn5lO.js +760 -0
- package/dist/uploadFile.util-Du5cumgy.cjs +1 -0
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +3 -2
- package/dist/utils/uploadFile.util.ts +94 -0
- package/dist/utils.d.ts +27 -0
- package/package.json +1 -1
- package/dist/Image-B46QCYLx.cjs +0 -1
- package/dist/Image-ddX0F8QG.js +0 -225
- package/dist/dayjs.util-Dg65EiGQ.cjs +0 -1
- package/dist/dayjs.util-RJe77c19.js +0 -725
- package/dist/onClickOutside.util-BWGmebYq.js +0 -30
- package/dist/onClickOutside.util-CvjEyTtT.cjs +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { toValue as f, unref as p } from "vue";
|
|
2
|
-
const u = /* @__PURE__ */ new WeakMap();
|
|
3
|
-
function d(t) {
|
|
4
|
-
const r = p(t);
|
|
5
|
-
return r?.$el ?? r;
|
|
6
|
-
}
|
|
7
|
-
function g(t) {
|
|
8
|
-
return typeof t == "string" ? document.querySelector(t) : d(t);
|
|
9
|
-
}
|
|
10
|
-
function w(t, r, l = {}) {
|
|
11
|
-
const n = g(t);
|
|
12
|
-
if (!n) return () => {
|
|
13
|
-
};
|
|
14
|
-
const i = u.get(n);
|
|
15
|
-
i && (i(), u.delete(n));
|
|
16
|
-
const o = (s) => {
|
|
17
|
-
const c = s.target instanceof Node ? s.target : null;
|
|
18
|
-
if (!c) return;
|
|
19
|
-
const m = (f(l.ignore) ?? []).map((e) => typeof e == "string" ? document.querySelector(e) : d(e)).filter((e) => e != null);
|
|
20
|
-
n.contains(c) || m.some((e) => e.contains(c)) || r(s);
|
|
21
|
-
};
|
|
22
|
-
document.addEventListener("mousedown", o, { capture: !0 }), document.addEventListener("touchstart", o, { capture: !0 });
|
|
23
|
-
const a = () => {
|
|
24
|
-
document.removeEventListener("mousedown", o, { capture: !0 }), document.removeEventListener("touchstart", o, { capture: !0 }), u.delete(n);
|
|
25
|
-
};
|
|
26
|
-
return u.set(n, a), a;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
w as o
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const d=require("vue"),u=new WeakMap;function l(t){const r=d.unref(t);return r?.$el??r}function g(t){return typeof t=="string"?document.querySelector(t):l(t)}function p(t,r,f={}){const n=g(t);if(!n)return()=>{};const i=u.get(n);i&&(i(),u.delete(n));const o=s=>{const c=s.target instanceof Node?s.target:null;if(!c)return;const m=(d.toValue(f.ignore)??[]).map(e=>typeof e=="string"?document.querySelector(e):l(e)).filter(e=>e!=null);n.contains(c)||m.some(e=>e.contains(c))||r(s)};document.addEventListener("mousedown",o,{capture:!0}),document.addEventListener("touchstart",o,{capture:!0});const a=()=>{document.removeEventListener("mousedown",o,{capture:!0}),document.removeEventListener("touchstart",o,{capture:!0}),u.delete(n)};return u.set(n,a),a}exports.onClickOutside=p;
|