@v-c/trigger 0.0.1 → 0.0.4
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/Popup/Arrow.cjs +1 -1
- package/dist/Popup/Arrow.js +36 -33
- package/dist/Popup/Mask.cjs +1 -1
- package/dist/Popup/Mask.js +25 -19
- package/dist/Popup/PopupContent.cjs +1 -1
- package/dist/Popup/PopupContent.js +7 -6
- package/dist/Popup/index.cjs +1 -1
- package/dist/Popup/index.js +152 -116
- package/dist/UniqueProvider/UniqueContainer.cjs +1 -1
- package/dist/UniqueProvider/UniqueContainer.js +55 -41
- package/dist/UniqueProvider/index.cjs +1 -1
- package/dist/UniqueProvider/index.js +24 -24
- package/dist/hooks/useAlign.cjs +1 -1
- package/dist/hooks/useAlign.js +125 -118
- package/dist/hooks/useWinClick.cjs +1 -1
- package/dist/hooks/useWinClick.js +14 -14
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +276 -235
- package/package.json +3 -3
- package/dist/portal/dist/Context.cjs +0 -1
- package/dist/portal/dist/Context.js +0 -14
- package/dist/portal/dist/Portal.cjs +0 -1
- package/dist/portal/dist/Portal.js +0 -73
- package/dist/portal/dist/useDom.cjs +0 -1
- package/dist/portal/dist/useDom.js +0 -34
- package/dist/portal/dist/useScrollLocker.cjs +0 -5
- package/dist/portal/dist/useScrollLocker.js +0 -28
- package/dist/portal/dist/util.cjs +0 -1
- package/dist/portal/dist/util.js +0 -6
- package/dist/resize-observer/dist/Collection.cjs +0 -1
- package/dist/resize-observer/dist/Collection.js +0 -32
- package/dist/resize-observer/dist/SingleObserver/DomWrapper.cjs +0 -1
- package/dist/resize-observer/dist/SingleObserver/DomWrapper.js +0 -11
- package/dist/resize-observer/dist/SingleObserver/index.cjs +0 -1
- package/dist/resize-observer/dist/SingleObserver/index.js +0 -81
- package/dist/resize-observer/dist/index.cjs +0 -1
- package/dist/resize-observer/dist/index.js +0 -44
- package/dist/resize-observer/dist/utils/observerUtil.cjs +0 -1
- package/dist/resize-observer/dist/utils/observerUtil.js +0 -21
- package/dist/util/dist/Children/isFragment.cjs +0 -1
- package/dist/util/dist/Children/isFragment.js +0 -7
- package/dist/util/dist/Children/toArray.cjs +0 -1
- package/dist/util/dist/Children/toArray.js +0 -11
- package/dist/util/dist/Dom/canUseDom.cjs +0 -1
- package/dist/util/dist/Dom/canUseDom.js +0 -6
- package/dist/util/dist/Dom/contains.cjs +0 -1
- package/dist/util/dist/Dom/contains.js +0 -16
- package/dist/util/dist/Dom/dynamicCSS.cjs +0 -1
- package/dist/util/dist/Dom/dynamicCSS.js +0 -73
- package/dist/util/dist/Dom/findDOMNode.cjs +0 -1
- package/dist/util/dist/Dom/findDOMNode.js +0 -12
- package/dist/util/dist/Dom/isVisible.cjs +0 -1
- package/dist/util/dist/Dom/isVisible.js +0 -22
- package/dist/util/dist/Dom/shadow.cjs +0 -1
- package/dist/util/dist/Dom/shadow.js +0 -13
- package/dist/util/dist/classnames.cjs +0 -1
- package/dist/util/dist/classnames.js +0 -30
- package/dist/util/dist/getScrollBarSize.cjs +0 -1
- package/dist/util/dist/getScrollBarSize.js +0 -37
- package/dist/util/dist/props-util/index.cjs +0 -1
- package/dist/util/dist/props-util/index.js +0 -21
- package/dist/util/dist/raf.cjs +0 -1
- package/dist/util/dist/raf.js +0 -37
- package/dist/util/dist/utils/transition.cjs +0 -1
- package/dist/util/dist/utils/transition.js +0 -21
- package/dist/util/dist/warning.cjs +0 -1
- package/dist/util/dist/warning.js +0 -48
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function t(e) {
|
|
2
|
-
let f = "";
|
|
3
|
-
if (typeof e == "string" || typeof e == "number")
|
|
4
|
-
f += e;
|
|
5
|
-
else if (typeof e == "object")
|
|
6
|
-
if (Array.isArray(e)) {
|
|
7
|
-
for (let n = 0; n < e.length; n++)
|
|
8
|
-
if (e[n]) {
|
|
9
|
-
const o = t(e[n]);
|
|
10
|
-
o && (f && (f += " "), f += o);
|
|
11
|
-
}
|
|
12
|
-
} else
|
|
13
|
-
for (const n in e)
|
|
14
|
-
e[n] && (f && (f += " "), f += n);
|
|
15
|
-
return f;
|
|
16
|
-
}
|
|
17
|
-
function i(...e) {
|
|
18
|
-
let f = "";
|
|
19
|
-
for (let n = 0; n < e.length; n++) {
|
|
20
|
-
const o = e[n];
|
|
21
|
-
if (o) {
|
|
22
|
-
const r = t(o);
|
|
23
|
-
r && (f && (f += " "), f += r);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return f;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
i as default
|
|
30
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let d;function u(i){if(typeof document>"u")return 0;if(d===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const e=document.createElement("div"),o=e.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",e.appendChild(t),document.body.appendChild(e);const l=t.offsetWidth;e.style.overflow="scroll";let n=t.offsetWidth;l===n&&(n=e.clientWidth),document.body.removeChild(e),d=l-n}return d}function r(i){const t=i.match(/^(.*)px$/),e=Number(t?.[1]);return Number.isNaN(e)?u():e}function c(i){if(typeof document>"u"||!i||!(i instanceof Element))return{width:0,height:0};const{width:t,height:e}=getComputedStyle(i,"::-webkit-scrollbar");return{width:r(t),height:r(e)}}exports.default=u;exports.getTargetScrollBarSize=c;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
let d;
|
|
2
|
-
function h(i) {
|
|
3
|
-
if (typeof document > "u") return 0;
|
|
4
|
-
if (d === void 0) {
|
|
5
|
-
const e = document.createElement("div");
|
|
6
|
-
e.style.width = "100%", e.style.height = "200px";
|
|
7
|
-
const t = document.createElement("div"), o = t.style;
|
|
8
|
-
o.position = "absolute", o.top = "0", o.left = "0", o.pointerEvents = "none", o.visibility = "hidden", o.width = "200px", o.height = "150px", o.overflow = "hidden", t.appendChild(e), document.body.appendChild(t);
|
|
9
|
-
const l = e.offsetWidth;
|
|
10
|
-
t.style.overflow = "scroll";
|
|
11
|
-
let n = e.offsetWidth;
|
|
12
|
-
l === n && (n = t.clientWidth), document.body.removeChild(t), d = l - n;
|
|
13
|
-
}
|
|
14
|
-
return d;
|
|
15
|
-
}
|
|
16
|
-
function r(i) {
|
|
17
|
-
const e = i.match(/^(.*)px$/), t = Number(e?.[1]);
|
|
18
|
-
return Number.isNaN(t) ? h() : t;
|
|
19
|
-
}
|
|
20
|
-
function c(i) {
|
|
21
|
-
if (typeof document > "u" || !i || !(i instanceof Element)) return {
|
|
22
|
-
width: 0,
|
|
23
|
-
height: 0
|
|
24
|
-
};
|
|
25
|
-
const {
|
|
26
|
-
width: e,
|
|
27
|
-
height: t
|
|
28
|
-
} = getComputedStyle(i, "::-webkit-scrollbar");
|
|
29
|
-
return {
|
|
30
|
-
width: r(e),
|
|
31
|
-
height: r(t)
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
h as default,
|
|
36
|
-
c as getTargetScrollBarSize
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");function i(t){return t&&(t.type===n.Comment||t.type===n.Fragment&&t.children.length===0||t.type===n.Text&&t.children.trim()==="")}function u(t=[]){const r=[];return t.forEach(e=>{Array.isArray(e)?r.push(...e):e?.type===n.Fragment?r.push(...u(e.children)):r.push(e)}),r.filter(e=>!i(e))}function c(t,...r){const e={};return r.forEach(o=>{e[o]=n.toRef(t,o)}),e}exports.filterEmpty=u;exports.isEmptyElement=i;exports.toPropsRefs=c;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Fragment as o, toRef as p, Comment as i, Text as c } from "vue";
|
|
2
|
-
function f(t) {
|
|
3
|
-
return t && (t.type === i || t.type === o && t.children.length === 0 || t.type === c && t.children.trim() === "");
|
|
4
|
-
}
|
|
5
|
-
function u(t = []) {
|
|
6
|
-
const r = [];
|
|
7
|
-
return t.forEach((e) => {
|
|
8
|
-
Array.isArray(e) ? r.push(...e) : e?.type === o ? r.push(...u(e.children)) : r.push(e);
|
|
9
|
-
}), r.filter((e) => !f(e));
|
|
10
|
-
}
|
|
11
|
-
function m(t, ...r) {
|
|
12
|
-
const e = {};
|
|
13
|
-
return r.forEach((n) => {
|
|
14
|
-
e[n] = p(t, n);
|
|
15
|
-
}), e;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
u as filterEmpty,
|
|
19
|
-
f as isEmptyElement,
|
|
20
|
-
m as toPropsRefs
|
|
21
|
-
};
|
package/dist/util/dist/raf.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let r=e=>+setTimeout(e,16),a=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(r=e=>window.requestAnimationFrame(e),a=e=>window.cancelAnimationFrame(e));let l=0;const o=new Map;function s(e){o.delete(e)}function t(e,n=1){l+=1;const i=l;function u(c){if(c===0)s(i),e();else{const d=r(()=>{u(c-1)});o.set(i,d)}}return u(n),i}t.cancel=e=>{const n=o.get(e);return s(e),a(n)};process.env.NODE_ENV!=="production"&&(t.ids=()=>o);function f(e){let n=null;return()=>{n!==null&&t.cancel(n),n=t(e)}}exports.default=t;exports.rafDebounce=f;
|
package/dist/util/dist/raf.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
let l = (n) => +setTimeout(n, 16), r = (n) => clearTimeout(n);
|
|
2
|
-
typeof window < "u" && "requestAnimationFrame" in window && (l = (n) => window.requestAnimationFrame(n), r = (n) => window.cancelAnimationFrame(n));
|
|
3
|
-
let a = 0;
|
|
4
|
-
const o = /* @__PURE__ */ new Map();
|
|
5
|
-
function s(n) {
|
|
6
|
-
o.delete(n);
|
|
7
|
-
}
|
|
8
|
-
function t(n, e = 1) {
|
|
9
|
-
a += 1;
|
|
10
|
-
const i = a;
|
|
11
|
-
function c(u) {
|
|
12
|
-
if (u === 0)
|
|
13
|
-
s(i), n();
|
|
14
|
-
else {
|
|
15
|
-
const d = l(() => {
|
|
16
|
-
c(u - 1);
|
|
17
|
-
});
|
|
18
|
-
o.set(i, d);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return c(e), i;
|
|
22
|
-
}
|
|
23
|
-
t.cancel = (n) => {
|
|
24
|
-
const e = o.get(n);
|
|
25
|
-
return s(n), r(e);
|
|
26
|
-
};
|
|
27
|
-
process.env.NODE_ENV !== "production" && (t.ids = () => o);
|
|
28
|
-
function f(n) {
|
|
29
|
-
let e = null;
|
|
30
|
-
return () => {
|
|
31
|
-
e !== null && t.cancel(e), e = t(n);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
t as default,
|
|
36
|
-
f as rafDebounce
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");function t(e,r={}){return e?e?{name:e,appear:!0,enterFromClass:`${e} ${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e} ${e}-enter ${e}-enter-prepare`,enterToClass:`${e} ${e}-enter ${e}-enter-active`,leaveFromClass:`${e} ${e}-leave`,leaveActiveClass:`${e} ${e}-leave ${e}-leave-active`,leaveToClass:`${e} ${e}-leave ${e}-leave-active`,...r}:{css:!1,...r}:{}}exports.getTransitionProps=t;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "vue";
|
|
2
|
-
function t(e, a = {}) {
|
|
3
|
-
return e ? e ? {
|
|
4
|
-
name: e,
|
|
5
|
-
appear: !0,
|
|
6
|
-
// type: 'animation',
|
|
7
|
-
// appearFromClass: `${transitionName}-appear ${transitionName}-appear-prepare`,
|
|
8
|
-
// appearActiveClass: `antdv-base-transtion`,
|
|
9
|
-
// appearToClass: `${transitionName}-appear ${transitionName}-appear-active`,
|
|
10
|
-
enterFromClass: `${e} ${e}-enter ${e}-enter-prepare ${e}-enter-start`,
|
|
11
|
-
enterActiveClass: `${e} ${e}-enter ${e}-enter-prepare`,
|
|
12
|
-
enterToClass: `${e} ${e}-enter ${e}-enter-active`,
|
|
13
|
-
leaveFromClass: `${e} ${e}-leave`,
|
|
14
|
-
leaveActiveClass: `${e} ${e}-leave ${e}-leave-active`,
|
|
15
|
-
leaveToClass: `${e} ${e}-leave ${e}-leave-active`,
|
|
16
|
-
...a
|
|
17
|
-
} : { css: !1, ...a } : {};
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
t as getTransitionProps
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let s={};const i=[];function a(e){i.push(e)}function l(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const o=i.reduce((c,r)=>r(c??"","warning"),n);o&&console.error(`Warning: ${o}`)}}function d(e,n){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const o=i.reduce((c,r)=>r(c??"","note"),n);o&&console.warn(`Note: ${o}`)}}function f(){s={}}function u(e,n,o){!n&&!s[o]&&(e(!1,o),s[o]=!0)}function t(e,n){u(l,e,n)}function p(e,n){u(d,e,n)}t.preMessage=a;t.resetWarned=f;t.noteOnce=p;exports.call=u;exports.default=t;exports.note=d;exports.noteOnce=p;exports.preMessage=a;exports.resetWarned=f;exports.warning=l;exports.warningOnce=t;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
let t = {};
|
|
2
|
-
const r = [];
|
|
3
|
-
function u(n) {
|
|
4
|
-
r.push(n);
|
|
5
|
-
}
|
|
6
|
-
function f(n, e) {
|
|
7
|
-
if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
|
|
8
|
-
const o = r.reduce(
|
|
9
|
-
(s, c) => c(s ?? "", "warning"),
|
|
10
|
-
e
|
|
11
|
-
);
|
|
12
|
-
o && console.error(`Warning: ${o}`);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function d(n, e) {
|
|
16
|
-
if (process.env.NODE_ENV !== "production" && !n && console !== void 0) {
|
|
17
|
-
const o = r.reduce(
|
|
18
|
-
(s, c) => c(s ?? "", "note"),
|
|
19
|
-
e
|
|
20
|
-
);
|
|
21
|
-
o && console.warn(`Note: ${o}`);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function l() {
|
|
25
|
-
t = {};
|
|
26
|
-
}
|
|
27
|
-
function i(n, e, o) {
|
|
28
|
-
!e && !t[o] && (n(!1, o), t[o] = !0);
|
|
29
|
-
}
|
|
30
|
-
function a(n, e) {
|
|
31
|
-
i(f, n, e);
|
|
32
|
-
}
|
|
33
|
-
function p(n, e) {
|
|
34
|
-
i(d, n, e);
|
|
35
|
-
}
|
|
36
|
-
a.preMessage = u;
|
|
37
|
-
a.resetWarned = l;
|
|
38
|
-
a.noteOnce = p;
|
|
39
|
-
export {
|
|
40
|
-
i as call,
|
|
41
|
-
a as default,
|
|
42
|
-
d as note,
|
|
43
|
-
p as noteOnce,
|
|
44
|
-
u as preMessage,
|
|
45
|
-
l as resetWarned,
|
|
46
|
-
f as warning,
|
|
47
|
-
a as warningOnce
|
|
48
|
-
};
|