@v-c/trigger 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Popup/Arrow.cjs +1 -0
  3. package/dist/Popup/Arrow.d.ts +8 -0
  4. package/dist/Popup/Arrow.js +66 -0
  5. package/dist/Popup/Mask.cjs +1 -0
  6. package/dist/Popup/Mask.d.ts +11 -0
  7. package/dist/Popup/Mask.js +57 -0
  8. package/dist/Popup/PopupContent.cjs +1 -0
  9. package/dist/Popup/PopupContent.d.ts +5 -0
  10. package/dist/Popup/PopupContent.js +21 -0
  11. package/dist/Popup/index.cjs +1 -0
  12. package/dist/Popup/index.d.ts +54 -0
  13. package/dist/Popup/index.js +295 -0
  14. package/dist/UniqueProvider/UniqueContainer.cjs +1 -0
  15. package/dist/UniqueProvider/UniqueContainer.d.ts +24 -0
  16. package/dist/UniqueProvider/UniqueContainer.js +125 -0
  17. package/dist/UniqueProvider/index.cjs +1 -0
  18. package/dist/UniqueProvider/index.d.ts +7 -0
  19. package/dist/UniqueProvider/index.js +167 -0
  20. package/dist/UniqueProvider/useTargetState.cjs +1 -0
  21. package/dist/UniqueProvider/useTargetState.d.ts +11 -0
  22. package/dist/UniqueProvider/useTargetState.js +13 -0
  23. package/dist/context.cjs +1 -0
  24. package/dist/context.d.ts +48 -0
  25. package/dist/context.js +27 -0
  26. package/dist/hooks/useAction.cjs +1 -0
  27. package/dist/hooks/useAction.d.ts +6 -0
  28. package/dist/hooks/useAction.js +17 -0
  29. package/dist/hooks/useAlign.cjs +1 -0
  30. package/dist/hooks/useAlign.d.ts +4 -0
  31. package/dist/hooks/useAlign.js +257 -0
  32. package/dist/hooks/useDelay.cjs +1 -0
  33. package/dist/hooks/useDelay.d.ts +1 -0
  34. package/dist/hooks/useDelay.js +16 -0
  35. package/dist/hooks/useOffsetStyle.cjs +1 -0
  36. package/dist/hooks/useOffsetStyle.d.ts +3 -0
  37. package/dist/hooks/useOffsetStyle.js +20 -0
  38. package/dist/hooks/useWatch.cjs +1 -0
  39. package/dist/hooks/useWatch.d.ts +2 -0
  40. package/dist/hooks/useWatch.js +26 -0
  41. package/dist/hooks/useWinClick.cjs +1 -0
  42. package/dist/hooks/useWinClick.d.ts +6 -0
  43. package/dist/hooks/useWinClick.js +50 -0
  44. package/dist/index.cjs +1 -0
  45. package/dist/index.d.ts +78 -0
  46. package/dist/index.js +470 -0
  47. package/dist/interface.cjs +1 -0
  48. package/dist/interface.d.ts +94 -0
  49. package/dist/interface.js +1 -0
  50. package/dist/portal/dist/Context.cjs +1 -0
  51. package/dist/portal/dist/Context.js +14 -0
  52. package/dist/portal/dist/Portal.cjs +1 -0
  53. package/dist/portal/dist/Portal.js +73 -0
  54. package/dist/portal/dist/useDom.cjs +1 -0
  55. package/dist/portal/dist/useDom.js +34 -0
  56. package/dist/portal/dist/useScrollLocker.cjs +5 -0
  57. package/dist/portal/dist/useScrollLocker.js +28 -0
  58. package/dist/portal/dist/util.cjs +1 -0
  59. package/dist/portal/dist/util.js +6 -0
  60. package/dist/resize-observer/dist/Collection.cjs +1 -0
  61. package/dist/resize-observer/dist/Collection.js +32 -0
  62. package/dist/resize-observer/dist/SingleObserver/DomWrapper.cjs +1 -0
  63. package/dist/resize-observer/dist/SingleObserver/DomWrapper.js +11 -0
  64. package/dist/resize-observer/dist/SingleObserver/index.cjs +1 -0
  65. package/dist/resize-observer/dist/SingleObserver/index.js +81 -0
  66. package/dist/resize-observer/dist/index.cjs +1 -0
  67. package/dist/resize-observer/dist/index.js +44 -0
  68. package/dist/resize-observer/dist/utils/observerUtil.cjs +1 -0
  69. package/dist/resize-observer/dist/utils/observerUtil.js +21 -0
  70. package/dist/util/dist/Children/isFragment.cjs +1 -0
  71. package/dist/util/dist/Children/isFragment.js +7 -0
  72. package/dist/util/dist/Children/toArray.cjs +1 -0
  73. package/dist/util/dist/Children/toArray.js +11 -0
  74. package/dist/util/dist/Dom/canUseDom.cjs +1 -0
  75. package/dist/util/dist/Dom/canUseDom.js +6 -0
  76. package/dist/util/dist/Dom/contains.cjs +1 -0
  77. package/dist/util/dist/Dom/contains.js +16 -0
  78. package/dist/util/dist/Dom/dynamicCSS.cjs +1 -0
  79. package/dist/util/dist/Dom/dynamicCSS.js +73 -0
  80. package/dist/util/dist/Dom/findDOMNode.cjs +1 -0
  81. package/dist/util/dist/Dom/findDOMNode.js +12 -0
  82. package/dist/util/dist/Dom/isVisible.cjs +1 -0
  83. package/dist/util/dist/Dom/isVisible.js +22 -0
  84. package/dist/util/dist/Dom/shadow.cjs +1 -0
  85. package/dist/util/dist/Dom/shadow.js +13 -0
  86. package/dist/util/dist/classnames.cjs +1 -0
  87. package/dist/util/dist/classnames.js +30 -0
  88. package/dist/util/dist/getScrollBarSize.cjs +1 -0
  89. package/dist/util/dist/getScrollBarSize.js +37 -0
  90. package/dist/util/dist/props-util/index.cjs +1 -0
  91. package/dist/util/dist/props-util/index.js +21 -0
  92. package/dist/util/dist/raf.cjs +1 -0
  93. package/dist/util/dist/raf.js +37 -0
  94. package/dist/util/dist/utils/transition.cjs +1 -0
  95. package/dist/util/dist/utils/transition.js +21 -0
  96. package/dist/util/dist/warning.cjs +1 -0
  97. package/dist/util/dist/warning.js +48 -0
  98. package/dist/util.cjs +1 -0
  99. package/dist/util.d.ts +44 -0
  100. package/dist/util.js +69 -0
  101. package/package.json +41 -0
@@ -0,0 +1,34 @@
1
+ import c from "../../util/dist/Dom/canUseDom.js";
2
+ import { shallowRef as d, computed as s, watch as i, nextTick as f, onUnmounted as p } from "vue";
3
+ import { useContextState as h } from "./Context.js";
4
+ const E = [];
5
+ function g(l, o) {
6
+ const e = (() => {
7
+ if (!c()) return null;
8
+ const u = document.createElement("div");
9
+ return process.env.NODE_ENV !== "production" && o && u.setAttribute("data-debug", o), u;
10
+ })(), n = d(!1), a = h(), t = d([]), v = s(() => a?.value || (n.value ? void 0 : (u) => {
11
+ t.value = [u, ...t.value];
12
+ }));
13
+ function r() {
14
+ e?.parentElement || document.body.appendChild(e), n.value = !0;
15
+ }
16
+ function m() {
17
+ e?.parentElement ? e?.parentElement?.removeChild(e) : e && n.value && document.body?.removeChild?.(e), n.value = !1;
18
+ }
19
+ return i(l, () => {
20
+ l.value ? a?.value ? a.value(r) : r() : f(() => {
21
+ m();
22
+ });
23
+ }, {
24
+ immediate: !0
25
+ }), p(m), i(t, () => {
26
+ t.value.length && (t.value.forEach((u) => u()), t.value = [...E]);
27
+ }, {
28
+ flush: "post",
29
+ immediate: !0
30
+ }), [e, v];
31
+ }
32
+ export {
33
+ g as default
34
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../util/dist/Dom/dynamicCSS.cjs"),a=require("../../util/dist/getScrollBarSize.cjs"),e=require("vue"),n=require("./util.cjs"),s=`vc-util-locker-${Date.now()}`;let i=0;function d(r){const o=e.computed(()=>e.unref(r));i+=1;const t=e.shallowRef(`${s}_${i}`);e.watch([t,o],async()=>{if(await e.nextTick(),o.value){const u=a.getTargetScrollBarSize(document.body).width,c=n.isBodyOverflowing();l.updateCSS(`
2
+ html body {
3
+ overflow-y: hidden;
4
+ ${c?`width: calc(100% - ${u}px);`:""}
5
+ }`,t.value)}else l.removeCSS(t.value)},{flush:"post",immediate:!0})}exports.default=d;
@@ -0,0 +1,28 @@
1
+ import { updateCSS as r, removeCSS as c } from "../../util/dist/Dom/dynamicCSS.js";
2
+ import { getTargetScrollBarSize as s } from "../../util/dist/getScrollBarSize.js";
3
+ import { computed as m, unref as n, shallowRef as d, watch as f, nextTick as u } from "vue";
4
+ import { isBodyOverflowing as p } from "./util.js";
5
+ const w = `vc-util-locker-${Date.now()}`;
6
+ let t = 0;
7
+ function y(a) {
8
+ const o = m(() => n(a));
9
+ t += 1;
10
+ const e = d(`${w}_${t}`);
11
+ f([e, o], async () => {
12
+ if (await u(), o.value) {
13
+ const i = s(document.body).width, l = p();
14
+ r(`
15
+ html body {
16
+ overflow-y: hidden;
17
+ ${l ? `width: calc(100% - ${i}px);` : ""}
18
+ }`, e.value);
19
+ } else
20
+ c(e.value);
21
+ }, {
22
+ flush: "post",
23
+ immediate: !0
24
+ });
25
+ }
26
+ export {
27
+ y as default
28
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}exports.isBodyOverflowing=e;
@@ -0,0 +1,6 @@
1
+ function e() {
2
+ return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
3
+ }
4
+ export {
5
+ e as isBodyOverflowing
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=Symbol("CollectionContext"),d=e.defineComponent({props:{onBatchResize:{type:Function,required:!1}},setup(u,{slots:r}){const o=e.shallowRef(0),t=e.shallowRef([]),c=e.inject(l,()=>{});return e.provide(l,(n,s,i)=>{const a=o.value+1;o.value=a,t.value.push({size:n,element:s,data:i}),Promise.resolve().then(()=>{if(o.value===a){const v=t.value;t.value=[],u.onBatchResize?.(v)}}),c?.(n,s,i)}),()=>r.default?.()}});exports.Collection=d;exports.CollectionContext=l;
@@ -0,0 +1,32 @@
1
+ import { defineComponent as v, shallowRef as a, inject as f, provide as d } from "vue";
2
+ const i = Symbol("CollectionContext"), C = /* @__PURE__ */ v({
3
+ props: {
4
+ onBatchResize: {
5
+ type: Function,
6
+ required: !1
7
+ }
8
+ },
9
+ setup(r, {
10
+ slots: u
11
+ }) {
12
+ const e = a(0), o = a([]), c = f(i, () => {
13
+ });
14
+ return d(i, (t, l, n) => {
15
+ const s = e.value + 1;
16
+ e.value = s, o.value.push({
17
+ size: t,
18
+ element: l,
19
+ data: n
20
+ }), Promise.resolve().then(() => {
21
+ if (e.value === s) {
22
+ const p = o.value;
23
+ o.value = [], r.onBatchResize?.(p);
24
+ }
25
+ }), c?.(t, l, n);
26
+ }), () => u.default?.();
27
+ }
28
+ });
29
+ export {
30
+ C as Collection,
31
+ i as CollectionContext
32
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),u=t.defineComponent({setup(o,{slots:e}){return()=>e.default?.()}});exports.default=u;
@@ -0,0 +1,11 @@
1
+ import { defineComponent as e } from "vue";
2
+ const p = /* @__PURE__ */ e({
3
+ setup(o, {
4
+ slots: t
5
+ }) {
6
+ return () => t.default?.();
7
+ }
8
+ });
9
+ export {
10
+ p as default
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),u=require("../../../util/dist/Dom/findDOMNode.cjs"),x=require("../Collection.cjs"),q=require("../utils/observerUtil.cjs"),C=require("./DomWrapper.cjs"),S=t.defineComponent({props:{data:{type:null,required:!1},disabled:{type:Boolean,required:!1},onResize:{type:Function,required:!1}},name:"SingleObserver",inheritAttrs:!1,setup(a,{expose:w,slots:M}){const n=t.shallowRef(),d=t.shallowRef(),W=t.inject(x.CollectionContext,()=>{}),o=t.shallowRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=()=>{const e=u.default(n)||(n.value&&typeof n.value=="object"?u.default(n.value.nativeElement):null)||u.default(d.value);return e&&e.nodeType===3&&e.nextElementSibling?e.nextElementSibling:e},c=e=>{const{onResize:v,data:y}=a,{width:r,height:f}=e.getBoundingClientRect(),{offsetHeight:i,offsetWidth:s}=e,g=Math.floor(r),p=Math.floor(f);if(o.value.width!==g||o.value.height!==p||o.value.offsetWidth!==s||o.value.offsetHeight!==i){const b={width:g,height:p,offsetWidth:s,offsetHeight:i};o.value=b;const H=s===Math.round(r)?r:s,R=i===Math.round(f)?f:i,m={...b,offsetWidth:H,offsetHeight:R};W?.(m,e,y),v&&Promise.resolve().then(()=>{v(m,e)})}};let l;return t.onMounted(()=>{l=h(),l&&!a.disabled&&q.observe(l,c)}),t.onBeforeUnmount(()=>{l&&q.unobserve(l,c)}),w({getDom:h}),()=>t.createVNode(C.default,{ref:d},{default:()=>[M.default?.()]})}});exports.default=S;
@@ -0,0 +1,81 @@
1
+ import { defineComponent as C, shallowRef as r, inject as R, createVNode as q, onMounted as B, onBeforeUnmount as E } from "vue";
2
+ import a from "../../../util/dist/Dom/findDOMNode.js";
3
+ import { CollectionContext as S } from "../Collection.js";
4
+ import { observe as j, unobserve as z } from "../utils/observerUtil.js";
5
+ import P from "./DomWrapper.js";
6
+ const T = /* @__PURE__ */ C({
7
+ props: {
8
+ data: {
9
+ type: null,
10
+ required: !1
11
+ },
12
+ disabled: {
13
+ type: Boolean,
14
+ required: !1
15
+ },
16
+ onResize: {
17
+ type: Function,
18
+ required: !1
19
+ }
20
+ },
21
+ name: "SingleObserver",
22
+ inheritAttrs: !1,
23
+ setup(h, {
24
+ expose: w,
25
+ slots: x
26
+ }) {
27
+ const i = r(), d = r(), H = R(S, () => {
28
+ }), t = r({
29
+ width: -1,
30
+ height: -1,
31
+ offsetWidth: -1,
32
+ offsetHeight: -1
33
+ }), u = () => {
34
+ const e = a(i) || (i.value && typeof i.value == "object" ? a(i.value.nativeElement) : null) || a(d.value);
35
+ return e && e.nodeType === 3 && e.nextElementSibling ? e.nextElementSibling : e;
36
+ }, m = (e) => {
37
+ const {
38
+ onResize: p,
39
+ data: W
40
+ } = h, {
41
+ width: s,
42
+ height: l
43
+ } = e.getBoundingClientRect(), {
44
+ offsetHeight: n,
45
+ offsetWidth: f
46
+ } = e, g = Math.floor(s), v = Math.floor(l);
47
+ if (t.value.width !== g || t.value.height !== v || t.value.offsetWidth !== f || t.value.offsetHeight !== n) {
48
+ const c = {
49
+ width: g,
50
+ height: v,
51
+ offsetWidth: f,
52
+ offsetHeight: n
53
+ };
54
+ t.value = c;
55
+ const y = f === Math.round(s) ? s : f, M = n === Math.round(l) ? l : n, b = {
56
+ ...c,
57
+ offsetWidth: y,
58
+ offsetHeight: M
59
+ };
60
+ H?.(b, e, W), p && Promise.resolve().then(() => {
61
+ p(b, e);
62
+ });
63
+ }
64
+ };
65
+ let o;
66
+ return B(() => {
67
+ o = u(), o && !h.disabled && j(o, m);
68
+ }), E(() => {
69
+ o && z(o, m);
70
+ }), w({
71
+ getDom: u
72
+ }), () => q(P, {
73
+ ref: d
74
+ }, {
75
+ default: () => [x.default?.()]
76
+ });
77
+ }
78
+ });
79
+ export {
80
+ T as default
81
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("vue"),n=require("../../util/dist/warning.cjs"),c=require("../../util/dist/Children/toArray.cjs"),a=require("./Collection.cjs"),d=require("./SingleObserver/index.cjs");require("./utils/observerUtil.cjs");function f(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const p="vc-observer-key",i=r.defineComponent({props:{data:{type:null,required:!1},disabled:{type:Boolean,required:!1},onResize:{type:Function,required:!1}},setup(e,{slots:s}){return()=>{const o=c.toArray(s.default?.());return process.env.NODE_ENV!=="production"&&(o.length>1?n.default(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):o.length===0&&n.default(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),o.map((t,l)=>{const u=t?.key||`${p}-${l}`;return r.createVNode(d.default,r.mergeProps(e,{key:u}),f(t)?t:{default:()=>[t]})})}}});i.Collection=a.Collection;exports.default=i;
@@ -0,0 +1,44 @@
1
+ import { defineComponent as l, createVNode as a, mergeProps as p, isVNode as c } from "vue";
2
+ import r from "../../util/dist/warning.js";
3
+ import { toArray as d } from "../../util/dist/Children/toArray.js";
4
+ import { Collection as f } from "./Collection.js";
5
+ import m from "./SingleObserver/index.js";
6
+ import "./utils/observerUtil.js";
7
+ function u(e) {
8
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
9
+ }
10
+ const y = "vc-observer-key", b = /* @__PURE__ */ l({
11
+ props: {
12
+ data: {
13
+ type: null,
14
+ required: !1
15
+ },
16
+ disabled: {
17
+ type: Boolean,
18
+ required: !1
19
+ },
20
+ onResize: {
21
+ type: Function,
22
+ required: !1
23
+ }
24
+ },
25
+ setup(e, {
26
+ slots: n
27
+ }) {
28
+ return () => {
29
+ const t = d(n.default?.());
30
+ return process.env.NODE_ENV !== "production" && (t.length > 1 ? r(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : t.length === 0 && r(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), t.map((o, s) => {
31
+ const i = o?.key || `${y}-${s}`;
32
+ return a(m, p(e, {
33
+ key: i
34
+ }), u(o) ? o : {
35
+ default: () => [o]
36
+ });
37
+ });
38
+ };
39
+ }
40
+ });
41
+ b.Collection = f;
42
+ export {
43
+ b as default
44
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("resize-observer-polyfill"),t=new Map;function s(e){e.forEach(n=>{const{target:o}=n;t.get(o)?.forEach(c=>c(o))})}const r=new u(s);process.env.NODE_ENV;process.env.NODE_ENV;function i(e,n){t.has(e)||(t.set(e,new Set),r.observe(e)),t?.get?.(e)?.add?.(n)}function a(e,n){t.has(e)&&(t?.get?.(e)?.delete?.(n),t?.get?.(e)?.size||(r.unobserve(e),t.delete(e)))}exports.observe=i;exports.unobserve=a;
@@ -0,0 +1,21 @@
1
+ import a from "resize-observer-polyfill";
2
+ const n = /* @__PURE__ */ new Map();
3
+ function s(e) {
4
+ e.forEach((o) => {
5
+ const { target: t } = o;
6
+ n.get(t)?.forEach((c) => c(t));
7
+ });
8
+ }
9
+ const r = new a(s);
10
+ process.env.NODE_ENV;
11
+ process.env.NODE_ENV;
12
+ function i(e, o) {
13
+ n.has(e) || (n.set(e, /* @__PURE__ */ new Set()), r.observe(e)), n?.get?.(e)?.add?.(o);
14
+ }
15
+ function p(e, o) {
16
+ n.has(e) && (n?.get?.(e)?.delete?.(o), n?.get?.(e)?.size || (r.unobserve(e), n.delete(e)));
17
+ }
18
+ export {
19
+ i as observe,
20
+ p as unobserve
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");function r(e){return t.isVNode(e)&&e.type===t.Fragment}exports.isFragment=r;
@@ -0,0 +1,7 @@
1
+ import { isVNode as e, Fragment as r } from "vue";
2
+ function n(t) {
3
+ return e(t) && t.type === r;
4
+ }
5
+ export {
6
+ n as isFragment
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./isFragment.cjs");function a(n,t={}){let e=[];Array.isArray(n)||(n=[n]);for(const r of n)r==null&&!t.keepEmpty||(Array.isArray(r)?e=e.concat(a(r,t)):o.isFragment(r)&&r.children?e=e.concat(a(r.children,t)):e.push(r));return e}exports.toArray=a;
@@ -0,0 +1,11 @@
1
+ import { isFragment as c } from "./isFragment.js";
2
+ function e(n, o = {}) {
3
+ let a = [];
4
+ Array.isArray(n) || (n = [n]);
5
+ for (const r of n)
6
+ r == null && !o.keepEmpty || (Array.isArray(r) ? a = a.concat(e(r, o)) : c(r) && r.children ? a = a.concat(e(r.children, o)) : a.push(r));
7
+ return a;
8
+ }
9
+ export {
10
+ e as toArray
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}exports.default=e;
@@ -0,0 +1,6 @@
1
+ function e() {
2
+ return !!(typeof window < "u" && window.document && window.document.createElement);
3
+ }
4
+ export {
5
+ e as default
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(e,r){if(!e)return!1;if(e.contains)return e.contains(r);let t=r;for(;t;){if(t===e)return!0;t=t.parentNode}return!1}exports.default=n;
@@ -0,0 +1,16 @@
1
+ function e(n, t) {
2
+ if (!n)
3
+ return !1;
4
+ if (n.contains)
5
+ return n.contains(t);
6
+ let r = t;
7
+ for (; r; ) {
8
+ if (r === n)
9
+ return !0;
10
+ r = r.parentNode;
11
+ }
12
+ return !1;
13
+ }
14
+ export {
15
+ e as default
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./canUseDom.cjs"),v=require("./contains.cjs"),m="data-vc-order",g="data-vc-priority",T="vc-util-key",a=new Map;function h({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:T}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function M(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function S(e){return Array.from((a.get(e)||e).children).filter(n=>n.tagName==="STYLE")}function f(e,n={}){if(!C.default())return null;const{csp:t,prepend:o,priority:r=0}=n,i=M(o),p=i==="prependQueue",c=document.createElement("style");c.setAttribute(m,i),p&&r&&c.setAttribute(g,`${r}`),t?.nonce&&(c.nonce=t?.nonce),c.innerHTML=e;const u=s(n),{firstChild:y}=u;if(o){if(p){const d=S(u).filter(l=>{if(!["prepend","prependQueue"].includes(l.getAttribute(m)))return!1;const A=Number(l.getAttribute(g)||0);return r>=A});if(d.length)return u.insertBefore(c,d[d.length-1].nextSibling),c}u.insertBefore(c,y)}else u.appendChild(c);return c}function b(e,n={}){const t=s(n);return S(t).find(o=>o.getAttribute(h(n))===e)}function q(e,n={}){const t=b(e,n);t&&s(n).removeChild(t)}function L(e,n){const t=a.get(e);if(!t||!v.default(document,t)){const o=f("",n),{parentNode:r}=o;a.set(e,r),e.removeChild(o)}}function E(e,n,t={}){const o=s(t);L(o,t);const r=b(n,t);if(r)return t.csp?.nonce&&r.nonce!==t.csp?.nonce&&(r.nonce=t.csp?.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;const i=f(e,t);return i.setAttribute(h(t),n),i}exports.injectCSS=f;exports.removeCSS=q;exports.updateCSS=E;
@@ -0,0 +1,73 @@
1
+ import C from "./canUseDom.js";
2
+ import v from "./contains.js";
3
+ const l = "data-vc-order", m = "data-vc-priority", T = "vc-util-key", d = /* @__PURE__ */ new Map();
4
+ function h({ mark: e } = {}) {
5
+ return e ? e.startsWith("data-") ? e : `data-${e}` : T;
6
+ }
7
+ function s(e) {
8
+ return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
9
+ }
10
+ function L(e) {
11
+ return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
12
+ }
13
+ function g(e) {
14
+ return Array.from(
15
+ (d.get(e) || e).children
16
+ ).filter((n) => n.tagName === "STYLE");
17
+ }
18
+ function S(e, n = {}) {
19
+ if (!C())
20
+ return null;
21
+ const { csp: t, prepend: o, priority: r = 0 } = n, i = L(o), p = i === "prependQueue", c = document.createElement("style");
22
+ c.setAttribute(l, i), p && r && c.setAttribute(m, `${r}`), t?.nonce && (c.nonce = t?.nonce), c.innerHTML = e;
23
+ const u = s(n), { firstChild: y } = u;
24
+ if (o) {
25
+ if (p) {
26
+ const a = g(u).filter((f) => {
27
+ if (!["prepend", "prependQueue"].includes(f.getAttribute(l)))
28
+ return !1;
29
+ const A = Number(f.getAttribute(m) || 0);
30
+ return r >= A;
31
+ });
32
+ if (a.length)
33
+ return u.insertBefore(
34
+ c,
35
+ a[a.length - 1].nextSibling
36
+ ), c;
37
+ }
38
+ u.insertBefore(c, y);
39
+ } else
40
+ u.appendChild(c);
41
+ return c;
42
+ }
43
+ function b(e, n = {}) {
44
+ const t = s(n);
45
+ return g(t).find(
46
+ (o) => o.getAttribute(h(n)) === e
47
+ );
48
+ }
49
+ function H(e, n = {}) {
50
+ const t = b(e, n);
51
+ t && s(n).removeChild(t);
52
+ }
53
+ function M(e, n) {
54
+ const t = d.get(e);
55
+ if (!t || !v(document, t)) {
56
+ const o = S("", n), { parentNode: r } = o;
57
+ d.set(e, r), e.removeChild(o);
58
+ }
59
+ }
60
+ function N(e, n, t = {}) {
61
+ const o = s(t);
62
+ M(o, t);
63
+ const r = b(n, t);
64
+ if (r)
65
+ return t.csp?.nonce && r.nonce !== t.csp?.nonce && (r.nonce = t.csp?.nonce), r.innerHTML !== e && (r.innerHTML = e), r;
66
+ const i = S(e, t);
67
+ return i.setAttribute(h(t), n), i;
68
+ }
69
+ export {
70
+ S as injectCSS,
71
+ H as removeCSS,
72
+ N as updateCSS
73
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");function t(n){return n instanceof HTMLElement||n instanceof SVGElement}function r(n){const e=u.unref(n);return t(e)?e:e&&"$el"in e?e.$el:null}exports.default=r;exports.isDOM=t;
@@ -0,0 +1,12 @@
1
+ import { unref as t } from "vue";
2
+ function r(e) {
3
+ return e instanceof HTMLElement || e instanceof SVGElement;
4
+ }
5
+ function o(e) {
6
+ const n = t(e);
7
+ return r(n) ? n : n && "$el" in n ? n.$el : null;
8
+ }
9
+ export {
10
+ o as default,
11
+ r as isDOM
12
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:i}=e.getBBox();if(t||i)return!0}if(e.getBoundingClientRect){const{width:t,height:i}=e.getBoundingClientRect();if(t||i)return!0}}return!1};exports.default=r;
@@ -0,0 +1,22 @@
1
+ const n = (e) => {
2
+ if (!e)
3
+ return !1;
4
+ if (e instanceof Element) {
5
+ if (e.offsetParent)
6
+ return !0;
7
+ if (e.getBBox) {
8
+ const { width: t, height: i } = e.getBBox();
9
+ if (t || i)
10
+ return !0;
11
+ }
12
+ if (e.getBoundingClientRect) {
13
+ const { width: t, height: i } = e.getBoundingClientRect();
14
+ if (t || i)
15
+ return !0;
16
+ }
17
+ }
18
+ return !1;
19
+ };
20
+ export {
21
+ n as default
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(t){return t?.getRootNode?.()}function n(t){return o(t)instanceof ShadowRoot}function e(t){return n(t)?o(t):null}exports.getShadowRoot=e;exports.inShadow=n;
@@ -0,0 +1,13 @@
1
+ function o(n) {
2
+ return n?.getRootNode?.();
3
+ }
4
+ function t(n) {
5
+ return o(n) instanceof ShadowRoot;
6
+ }
7
+ function e(n) {
8
+ return t(n) ? o(n) : null;
9
+ }
10
+ export {
11
+ e as getShadowRoot,
12
+ t as inShadow
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e){let n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){for(let o=0;o<e.length;o++)if(e[o]){const r=t(e[o]);r&&(n&&(n+=" "),n+=r)}}else for(const o in e)e[o]&&(n&&(n+=" "),n+=o);return n}function i(...e){let n="";for(let o=0;o<e.length;o++){const r=e[o];if(r){const f=t(r);f&&(n&&(n+=" "),n+=f)}}return n}exports.default=i;
@@ -0,0 +1,30 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,37 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,21 @@
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
+ };
@@ -0,0 +1 @@
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;
@@ -0,0 +1,37 @@
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
+ };
@@ -0,0 +1 @@
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;