@septkit/ui 0.0.83 → 0.0.84
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/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/loader-circle.js +8 -0
- package/dist/external/.pnpm/@vueuse_core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +73 -73
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +172 -80
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContent.js +126 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardContentImpl.js +170 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardRoot.js +73 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/HoverCardTrigger.js +64 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/HoverCard/utils.js +11 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContent.js +133 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentImpl.js +165 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentModal.js +137 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverContentNonModal.js +130 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverPortal.js +33 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverRoot.js +54 -0
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Popover/PopoverTrigger.js +55 -0
- package/dist/index.d.ts +89 -6
- package/dist/index.js +14 -9
- package/dist/status-bar/index.js +5 -0
- package/dist/status-bar/progress-bar.js +7 -0
- package/dist/status-bar/progress-bar.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/status-bar/spinner.js +7 -0
- package/dist/status-bar/spinner.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/status-bar/status-bar-item.js +8 -0
- package/dist/status-bar/status-bar-item.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/status-bar/status-bar.js +7 -0
- package/dist/status-bar/status-bar.vue_vue_type_script_setup_true_lang.js +17 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import e from "../createLucideIcon.js";
|
|
2
|
+
//#region node_modules/.pnpm/@lucide+vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/loader-circle.mjs
|
|
3
|
+
var t = [["path", {
|
|
4
|
+
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
5
|
+
key: "13zald"
|
|
6
|
+
}]], n = e("loader-circle", t);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t as __iconNode, n as default };
|
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed as
|
|
1
|
+
import { bypassFilter as e, createEventHook as t, createFilterWrapper as n, createGlobalState as r, createSharedComposable as i, createSingletonPromise as a, debounceFilter as o, getLifeCycleTarget as s, isClient as c, isDef as l, isIOS as u, isObject as d, noop as f, pausableFilter as p, promiseTimeout as m, reactiveComputed as h, reactiveOmit as g, refAutoReset as _, syncRef as v, toArray as y, toReactive as b, toRef as x, tryOnBeforeUnmount as S, tryOnScopeDispose as C, until as w, useDebounceFn as T, useTimeoutFn as E, watchImmediate as D, watchPausable as O, watchWithFilter as k } from "../../../../../@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
|
|
2
|
+
import { computed as A, getCurrentInstance as j, nextTick as M, onMounted as N, ref as P, shallowReadonly as F, shallowRef as I, toRaw as L, toValue as R, unref as z, watch as B } from "vue";
|
|
3
3
|
//#region node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
let t =
|
|
4
|
+
var V = c ? window : void 0;
|
|
5
|
+
c && window.document;
|
|
6
|
+
var H = c ? window.navigator : void 0;
|
|
7
|
+
c && window.location;
|
|
8
|
+
function U(e) {
|
|
9
|
+
let t = R(e);
|
|
10
10
|
return t?.$el ?? t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n =
|
|
14
|
-
let t =
|
|
12
|
+
function W(...e) {
|
|
13
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = A(() => {
|
|
14
|
+
let t = y(R(e[0])).filter((e) => e != null);
|
|
15
15
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
16
16
|
});
|
|
17
|
-
return
|
|
18
|
-
n.value?.map((e) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
return D(() => [
|
|
18
|
+
n.value?.map((e) => U(e)) ?? [V].filter((e) => e != null),
|
|
19
|
+
y(R(n.value ? e[1] : e[0])),
|
|
20
|
+
y(z(n.value ? e[2] : e[1])),
|
|
21
|
+
R(n.value ? e[3] : e[2])
|
|
22
22
|
], ([e, n, r, i], a, o) => {
|
|
23
23
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
24
|
-
let s =
|
|
24
|
+
let s = d(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
25
25
|
o(() => {
|
|
26
26
|
c.forEach((e) => e());
|
|
27
27
|
});
|
|
28
28
|
}, { flush: "post" });
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let e =
|
|
32
|
-
return t &&
|
|
30
|
+
function G() {
|
|
31
|
+
let e = I(!1), t = j();
|
|
32
|
+
return t && N(() => {
|
|
33
33
|
e.value = !0;
|
|
34
34
|
}, t), e;
|
|
35
35
|
}
|
|
36
36
|
/* @__NO_SIDE_EFFECTS__ */
|
|
37
|
-
function
|
|
38
|
-
let t =
|
|
39
|
-
return
|
|
37
|
+
function K(e) {
|
|
38
|
+
let t = G();
|
|
39
|
+
return A(() => (t.value, !!e()));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function q(e) {
|
|
42
42
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function J(...e) {
|
|
45
45
|
let t, n, r = {};
|
|
46
46
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
47
|
-
let { target: i =
|
|
48
|
-
return
|
|
49
|
-
e.repeat &&
|
|
47
|
+
let { target: i = V, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = q(t);
|
|
48
|
+
return W(i, a, (e) => {
|
|
49
|
+
e.repeat && R(s) || c(e) && n(e);
|
|
50
50
|
}, o);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ??
|
|
54
|
-
async function
|
|
52
|
+
function Y(e, t, n) {
|
|
53
|
+
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? f, onSuccess: o = f, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? I(t) : P(t), d = I(!1), p = I(!1), h = I(void 0), g = 0;
|
|
54
|
+
async function _(n = 0, ...r) {
|
|
55
55
|
let i = g += 1;
|
|
56
|
-
s && (u.value =
|
|
56
|
+
s && (u.value = R(t)), h.value = void 0, d.value = !1, p.value = !0, n > 0 && await m(n);
|
|
57
57
|
let c = typeof e == "function" ? e(...r) : e;
|
|
58
58
|
try {
|
|
59
59
|
let e = await c;
|
|
60
|
-
return i === g && (u.value = e,
|
|
60
|
+
return i === g && (u.value = e, d.value = !0), o(e), e;
|
|
61
61
|
} catch (e) {
|
|
62
62
|
if (i === g && (h.value = e), a(e), l) throw e;
|
|
63
63
|
} finally {
|
|
64
|
-
i === g && (
|
|
64
|
+
i === g && (p.value = !1);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
r &&
|
|
68
|
-
let
|
|
67
|
+
r && _(i);
|
|
68
|
+
let v = {
|
|
69
69
|
state: u,
|
|
70
|
-
isReady:
|
|
71
|
-
isLoading:
|
|
70
|
+
isReady: d,
|
|
71
|
+
isLoading: p,
|
|
72
72
|
error: h,
|
|
73
|
-
execute:
|
|
74
|
-
executeImmediate: (...e) =>
|
|
73
|
+
execute: _,
|
|
74
|
+
executeImmediate: (...e) => _(0, ...e)
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function y() {
|
|
77
77
|
return new Promise((e, t) => {
|
|
78
|
-
|
|
78
|
+
w(p).toBe(!1).then(() => e(v)).catch(t);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
|
-
...
|
|
82
|
+
...v,
|
|
83
83
|
then(e, t) {
|
|
84
|
-
return
|
|
84
|
+
return y().then(e, t);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let { controls: n = !1, navigator: r =
|
|
88
|
+
function X(e, t = {}) {
|
|
89
|
+
let { controls: n = !1, navigator: r = H } = t, i = /* @__PURE__ */ K(() => r && "permissions" in r), o = I(), s = typeof e == "string" ? { name: e } : e, c = I(), l = () => {
|
|
90
90
|
c.value = o.value?.state ?? "prompt";
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
let u =
|
|
94
|
-
if (
|
|
92
|
+
W(o, "change", l, { passive: !0 });
|
|
93
|
+
let u = a(async () => {
|
|
94
|
+
if (i.value) {
|
|
95
95
|
if (!o.value) try {
|
|
96
96
|
o.value = await r.permissions.query(s);
|
|
97
97
|
} catch {
|
|
@@ -99,32 +99,32 @@ function V(e, t = {}) {
|
|
|
99
99
|
} finally {
|
|
100
100
|
l();
|
|
101
101
|
}
|
|
102
|
-
if (n) return
|
|
102
|
+
if (n) return L(o.value);
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
return u(), n ? {
|
|
106
106
|
state: c,
|
|
107
|
-
isSupported:
|
|
107
|
+
isSupported: i,
|
|
108
108
|
query: u
|
|
109
109
|
} : c;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
let { navigator: t =
|
|
111
|
+
function Z(e = {}) {
|
|
112
|
+
let { navigator: t = H, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ K(() => t && "clipboard" in t), s = X("clipboard-read"), c = X("clipboard-write"), l = A(() => o.value || a), u = I(""), d = I(!1), f = I(!1), p = E(() => d.value = !1, i, { immediate: !1 }), m = 0;
|
|
113
113
|
async function h() {
|
|
114
|
-
let e = !(o.value &&
|
|
114
|
+
let e = !(o.value && b(s.value));
|
|
115
115
|
if (!e) try {
|
|
116
116
|
u.value = await t.clipboard.readText();
|
|
117
117
|
} catch {
|
|
118
118
|
e = !0;
|
|
119
119
|
}
|
|
120
|
-
e && (u.value =
|
|
120
|
+
e && (u.value = y());
|
|
121
121
|
}
|
|
122
|
-
l.value && n &&
|
|
122
|
+
l.value && n && W(["copy", "cut"], h, { passive: !0 });
|
|
123
123
|
async function g(e) {
|
|
124
|
-
let n = e ??
|
|
124
|
+
let n = e ?? R(r);
|
|
125
125
|
if (l.value && n != null) {
|
|
126
126
|
f.value = !0;
|
|
127
|
-
let e = !(o.value &&
|
|
127
|
+
let e = !(o.value && b(c.value));
|
|
128
128
|
if (!e) try {
|
|
129
129
|
let e = _(n);
|
|
130
130
|
await t.clipboard.write([e]);
|
|
@@ -146,39 +146,39 @@ function H(e = {}) {
|
|
|
146
146
|
let t = document.createElement("textarea");
|
|
147
147
|
t.value = e, t.style.position = "absolute", t.style.opacity = "0", t.setAttribute("readonly", ""), document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function y() {
|
|
150
150
|
var e, t;
|
|
151
151
|
return ((e = document) == null || (t = e.getSelection) == null || (t = t.call(e)) == null ? void 0 : t.toString()) ?? "";
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function b(e) {
|
|
154
154
|
return e === "granted" || e === "prompt";
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
|
-
copyPending:
|
|
157
|
+
copyPending: F(f),
|
|
158
158
|
isSupported: l,
|
|
159
|
-
text:
|
|
160
|
-
copied:
|
|
159
|
+
text: F(u),
|
|
160
|
+
copied: F(d),
|
|
161
161
|
copy: g
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Q(e) {
|
|
165
165
|
return JSON.parse(JSON.stringify(e));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function $(e, t, n, r = {}) {
|
|
168
168
|
var i, a;
|
|
169
|
-
let { clone: o = !1, passive: s = !1, eventName:
|
|
169
|
+
let { clone: o = !1, passive: s = !1, eventName: c, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = j(), m = n || p?.emit || (p == null || (i = p.$emit) == null ? void 0 : i.bind(p)) || (p == null || (a = p.proxy) == null || (a = a.$emit) == null ? void 0 : a.bind(p?.proxy)), h = c;
|
|
170
170
|
t ||= "modelValue", h ||= `update:${t.toString()}`;
|
|
171
|
-
let g = (e) => o ? typeof o == "function" ? o(e) :
|
|
171
|
+
let g = (e) => o ? typeof o == "function" ? o(e) : Q(e) : e, _ = () => l(e[t]) ? g(e[t]) : d, v = (e) => {
|
|
172
172
|
f ? f(e) && m(h, e) : m(h, e);
|
|
173
173
|
};
|
|
174
174
|
if (s) {
|
|
175
|
-
let n =
|
|
176
|
-
return
|
|
177
|
-
r || (r = !0, n.value = g(e),
|
|
178
|
-
}),
|
|
175
|
+
let n = P(_()), r = !1;
|
|
176
|
+
return B(() => e[t], (e) => {
|
|
177
|
+
r || (r = !0, n.value = g(e), M(() => r = !1));
|
|
178
|
+
}), B(n, (n) => {
|
|
179
179
|
!r && (n !== e[t] || u) && v(n);
|
|
180
180
|
}, { deep: u }), n;
|
|
181
|
-
} else return
|
|
181
|
+
} else return A({
|
|
182
182
|
get() {
|
|
183
183
|
return _();
|
|
184
184
|
},
|
|
@@ -188,4 +188,4 @@ function W(e, t, n, r = {}) {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
//#endregion
|
|
191
|
-
export {
|
|
191
|
+
export { e as bypassFilter, Q as cloneFnJSON, t as createEventHook, n as createFilterWrapper, r as createGlobalState, i as createSharedComposable, a as createSingletonPromise, o as debounceFilter, H as defaultNavigator, V as defaultWindow, s as getLifeCycleTarget, c as isClient, l as isDef, u as isIOS, d as isObject, f as noop, J as onKeyStroke, p as pausableFilter, m as promiseTimeout, h as reactiveComputed, g as reactiveOmit, _ as refAutoReset, v as syncRef, y as toArray, b as toReactive, x as toRef, S as tryOnBeforeUnmount, C as tryOnScopeDispose, U as unrefElement, w as until, Y as useAsyncState, Z as useClipboard, T as useDebounceFn, W as useEventListener, G as useMounted, X as usePermission, K as useSupported, E as useTimeoutFn, $ as useVModel, D as watchImmediate, O as watchPausable, k as watchWithFilter };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { computed as e, customRef as t, effectScope as n, getCurrentInstance as r, getCurrentScope as i, isRef as a, nextTick as o, onBeforeUnmount as s, onScopeDispose as c, reactive as l, readonly as u, ref as d, shallowReadonly as f, shallowRef as p, toRef as m, toRefs as h, toValue as g, unref as _, watch as v } from "vue";
|
|
2
2
|
//#region node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
function
|
|
4
|
-
return
|
|
3
|
+
function y(e, t) {
|
|
4
|
+
return i() ? (c(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function b() {
|
|
7
7
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
8
8
|
e.delete(t);
|
|
9
9
|
};
|
|
@@ -11,7 +11,7 @@ function p() {
|
|
|
11
11
|
on: (n) => {
|
|
12
12
|
e.add(n);
|
|
13
13
|
let r = () => t(n);
|
|
14
|
-
return
|
|
14
|
+
return y(r), { off: r };
|
|
15
15
|
},
|
|
16
16
|
off: t,
|
|
17
17
|
trigger: (...t) => Promise.all(Array.from(e).map((e) => e(...t))),
|
|
@@ -20,18 +20,26 @@ function p() {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let
|
|
25
|
-
return ((...
|
|
23
|
+
function x(e) {
|
|
24
|
+
let t = !1, r, i = n(!0);
|
|
25
|
+
return ((...n) => (t ||= (r = i.run(() => e(...n)), !0), r));
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var S = typeof window < "u" && typeof document < "u";
|
|
28
28
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var C = (e) => e !== void 0, w = Object.prototype.toString, T = (e) => w.call(e) === "[object Object]", E = () => {}, D = /* @__PURE__ */ O();
|
|
30
|
+
function O() {
|
|
31
31
|
var e, t;
|
|
32
|
-
return
|
|
32
|
+
return S && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function k(...e) {
|
|
35
|
+
if (e.length !== 1) return m(...e);
|
|
36
|
+
let n = e[0];
|
|
37
|
+
return typeof n == "function" ? u(t(() => ({
|
|
38
|
+
get: n,
|
|
39
|
+
set: E
|
|
40
|
+
}))) : d(n);
|
|
41
|
+
}
|
|
42
|
+
function A(e, t) {
|
|
35
43
|
function n(...n) {
|
|
36
44
|
return new Promise((r, i) => {
|
|
37
45
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -43,12 +51,13 @@ function S(e, t) {
|
|
|
43
51
|
}
|
|
44
52
|
return n;
|
|
45
53
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
var j = (e) => e();
|
|
55
|
+
function M(e, t = {}) {
|
|
56
|
+
let n, r, i = E, a = (e) => {
|
|
57
|
+
clearTimeout(e), i(), i = E;
|
|
49
58
|
}, o;
|
|
50
59
|
return (s) => {
|
|
51
|
-
let c =
|
|
60
|
+
let c = g(e), l = g(t.maxWait);
|
|
52
61
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
53
62
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
54
63
|
n && a(n), r = void 0, e(o());
|
|
@@ -58,12 +67,29 @@ function C(e, t = {}) {
|
|
|
58
67
|
});
|
|
59
68
|
};
|
|
60
69
|
}
|
|
61
|
-
function
|
|
70
|
+
function N(e = j, t = {}) {
|
|
71
|
+
let { initialState: n = "active" } = t, r = k(n === "active");
|
|
72
|
+
function i() {
|
|
73
|
+
r.value = !1;
|
|
74
|
+
}
|
|
75
|
+
function a() {
|
|
76
|
+
r.value = !0;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
isActive: f(r),
|
|
80
|
+
pause: i,
|
|
81
|
+
resume: a,
|
|
82
|
+
eventFilter: (...t) => {
|
|
83
|
+
r.value && e(...t);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
function P(e, t = !1, n = "Timeout") {
|
|
62
88
|
return new Promise((r, i) => {
|
|
63
89
|
t ? setTimeout(i, e, n) : setTimeout(r, e);
|
|
64
90
|
});
|
|
65
91
|
}
|
|
66
|
-
function
|
|
92
|
+
function F(e) {
|
|
67
93
|
let t;
|
|
68
94
|
function n() {
|
|
69
95
|
return t ||= e(), t;
|
|
@@ -73,29 +99,61 @@ function T(e) {
|
|
|
73
99
|
t = void 0, e && await e;
|
|
74
100
|
}, n;
|
|
75
101
|
}
|
|
76
|
-
function
|
|
102
|
+
function I(e) {
|
|
77
103
|
return Array.isArray(e) ? e : [e];
|
|
78
104
|
}
|
|
79
|
-
function
|
|
80
|
-
return e ||
|
|
105
|
+
function L(e) {
|
|
106
|
+
return e || r();
|
|
81
107
|
}
|
|
82
|
-
function
|
|
83
|
-
if (!
|
|
84
|
-
let
|
|
85
|
-
--
|
|
108
|
+
function R(e) {
|
|
109
|
+
if (!S) return e;
|
|
110
|
+
let t = 0, r, i, a = () => {
|
|
111
|
+
--t, i && t <= 0 && (i.stop(), r = void 0, i = void 0);
|
|
86
112
|
};
|
|
87
|
-
return ((...o) => (
|
|
88
|
-
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
|
|
113
|
+
return ((...o) => (t += 1, i || (i = n(!0), r = i.run(() => e(...o))), y(a), r));
|
|
114
|
+
}
|
|
115
|
+
function z(e) {
|
|
116
|
+
return a(e) ? l(new Proxy({}, {
|
|
117
|
+
get(t, n, r) {
|
|
118
|
+
return _(Reflect.get(e.value, n, r));
|
|
119
|
+
},
|
|
120
|
+
set(t, n, r) {
|
|
121
|
+
return a(e.value[n]) && !a(r) ? e.value[n].value = r : e.value[n] = r, !0;
|
|
122
|
+
},
|
|
123
|
+
deleteProperty(t, n) {
|
|
124
|
+
return Reflect.deleteProperty(e.value, n);
|
|
125
|
+
},
|
|
126
|
+
has(t, n) {
|
|
127
|
+
return Reflect.has(e.value, n);
|
|
128
|
+
},
|
|
129
|
+
ownKeys() {
|
|
130
|
+
return Object.keys(e.value);
|
|
131
|
+
},
|
|
132
|
+
getOwnPropertyDescriptor() {
|
|
133
|
+
return {
|
|
134
|
+
enumerable: !0,
|
|
135
|
+
configurable: !0
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
})) : l(e);
|
|
139
|
+
}
|
|
140
|
+
function B(t) {
|
|
141
|
+
return z(e(t));
|
|
142
|
+
}
|
|
143
|
+
function V(e, ...t) {
|
|
144
|
+
let n = t.flat(), r = n[0];
|
|
145
|
+
return B(() => Object.fromEntries(typeof r == "function" ? Object.entries(h(e)).filter(([e, t]) => !r(g(t), e)) : Object.entries(h(e)).filter((e) => !n.includes(e[0]))));
|
|
146
|
+
}
|
|
147
|
+
function H(e, n = 1e4) {
|
|
148
|
+
return t((t, r) => {
|
|
149
|
+
let i = g(e), a, o = () => setTimeout(() => {
|
|
150
|
+
i = g(e), r();
|
|
151
|
+
}, g(n));
|
|
152
|
+
return y(() => {
|
|
95
153
|
clearTimeout(a);
|
|
96
154
|
}), {
|
|
97
155
|
get() {
|
|
98
|
-
return
|
|
156
|
+
return t(), i;
|
|
99
157
|
},
|
|
100
158
|
set(e) {
|
|
101
159
|
i = e, r(), clearTimeout(a), a = o();
|
|
@@ -103,39 +161,73 @@ function k(t, n = 1e4) {
|
|
|
103
161
|
};
|
|
104
162
|
});
|
|
105
163
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
164
|
+
function U(e, t = 200, n = {}) {
|
|
165
|
+
return A(M(t, n), e);
|
|
166
|
+
}
|
|
167
|
+
function W(e, t, n = {}) {
|
|
168
|
+
let { eventFilter: r = j, ...i } = n;
|
|
169
|
+
return v(e, A(r, t), i);
|
|
170
|
+
}
|
|
171
|
+
function G(e, t, n = {}) {
|
|
172
|
+
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = N(r, { initialState: i });
|
|
173
|
+
return {
|
|
174
|
+
stop: W(e, t, {
|
|
175
|
+
...a,
|
|
176
|
+
eventFilter: o
|
|
177
|
+
}),
|
|
178
|
+
pause: s,
|
|
179
|
+
resume: c,
|
|
180
|
+
isActive: l
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function K(e, t, ...[n]) {
|
|
184
|
+
let { flush: r = "sync", deep: i = !1, immediate: a = !0, direction: o = "both", transform: s = {} } = n || {}, c = [], l = "ltr" in s && s.ltr || ((e) => e), u = "rtl" in s && s.rtl || ((e) => e);
|
|
185
|
+
return (o === "both" || o === "ltr") && c.push(G(e, (e) => {
|
|
186
|
+
c.forEach((e) => e.pause()), t.value = l(e), c.forEach((e) => e.resume());
|
|
187
|
+
}, {
|
|
188
|
+
flush: r,
|
|
189
|
+
deep: i,
|
|
190
|
+
immediate: a
|
|
191
|
+
})), (o === "both" || o === "rtl") && c.push(G(t, (t) => {
|
|
192
|
+
c.forEach((e) => e.pause()), e.value = u(t), c.forEach((e) => e.resume());
|
|
193
|
+
}, {
|
|
194
|
+
flush: r,
|
|
195
|
+
deep: i,
|
|
196
|
+
immediate: a
|
|
197
|
+
})), () => {
|
|
198
|
+
c.forEach((e) => e.stop());
|
|
199
|
+
};
|
|
108
200
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
201
|
+
function q(e, t) {
|
|
202
|
+
L(t) && s(e, t);
|
|
111
203
|
}
|
|
112
|
-
function
|
|
113
|
-
function n(n, { flush: r = "sync", deep: i = !1, timeout:
|
|
114
|
-
let c = null, l = [new Promise((
|
|
115
|
-
c =
|
|
116
|
-
n(e) !== t && (c ? c() :
|
|
204
|
+
function J(e, t = !1) {
|
|
205
|
+
function n(n, { flush: r = "sync", deep: i = !1, timeout: a, throwOnTimeout: s } = {}) {
|
|
206
|
+
let c = null, l = [new Promise((a) => {
|
|
207
|
+
c = v(e, (e) => {
|
|
208
|
+
n(e) !== t && (c ? c() : o(() => c?.()), a(e));
|
|
117
209
|
}, {
|
|
118
210
|
flush: r,
|
|
119
211
|
deep: i,
|
|
120
212
|
immediate: !0
|
|
121
213
|
});
|
|
122
214
|
})];
|
|
123
|
-
return
|
|
215
|
+
return a != null && l.push(P(a, s).then(() => g(e)).finally(() => c?.())), Promise.race(l);
|
|
124
216
|
}
|
|
125
|
-
function r(r,
|
|
126
|
-
if (!
|
|
127
|
-
let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout:
|
|
128
|
-
|
|
129
|
-
t !== (e === r) && (
|
|
217
|
+
function r(r, i) {
|
|
218
|
+
if (!a(r)) return n((e) => e === r, i);
|
|
219
|
+
let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: u } = i ?? {}, d = null, f = [new Promise((n) => {
|
|
220
|
+
d = v([e, r], ([e, r]) => {
|
|
221
|
+
t !== (e === r) && (d ? d() : o(() => d?.()), n(e));
|
|
130
222
|
}, {
|
|
131
223
|
flush: s,
|
|
132
224
|
deep: c,
|
|
133
225
|
immediate: !0
|
|
134
226
|
});
|
|
135
227
|
})];
|
|
136
|
-
return l != null &&
|
|
228
|
+
return l != null && f.push(P(l, u).then(() => g(e)).finally(() => (d?.(), g(e)))), Promise.race(f);
|
|
137
229
|
}
|
|
138
|
-
function
|
|
230
|
+
function i(e) {
|
|
139
231
|
return n((e) => !!e, e);
|
|
140
232
|
}
|
|
141
233
|
function s(e) {
|
|
@@ -147,68 +239,68 @@ function M(e, t = !1) {
|
|
|
147
239
|
function l(e) {
|
|
148
240
|
return n(Number.isNaN, e);
|
|
149
241
|
}
|
|
150
|
-
function
|
|
242
|
+
function u(e, t) {
|
|
151
243
|
return n((t) => {
|
|
152
244
|
let n = Array.from(t);
|
|
153
|
-
return n.includes(e) || n.includes(
|
|
245
|
+
return n.includes(e) || n.includes(g(e));
|
|
154
246
|
}, t);
|
|
155
247
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
248
|
+
function d(e) {
|
|
249
|
+
return f(1, e);
|
|
158
250
|
}
|
|
159
|
-
function
|
|
251
|
+
function f(e = 1, t) {
|
|
160
252
|
let r = -1;
|
|
161
253
|
return n(() => (r += 1, r >= e), t);
|
|
162
254
|
}
|
|
163
|
-
return Array.isArray(
|
|
255
|
+
return Array.isArray(g(e)) ? {
|
|
164
256
|
toMatch: n,
|
|
165
|
-
toContains:
|
|
166
|
-
changed:
|
|
167
|
-
changedTimes:
|
|
257
|
+
toContains: u,
|
|
258
|
+
changed: d,
|
|
259
|
+
changedTimes: f,
|
|
168
260
|
get not() {
|
|
169
|
-
return
|
|
261
|
+
return J(e, !t);
|
|
170
262
|
}
|
|
171
263
|
} : {
|
|
172
264
|
toMatch: n,
|
|
173
265
|
toBe: r,
|
|
174
|
-
toBeTruthy:
|
|
266
|
+
toBeTruthy: i,
|
|
175
267
|
toBeNull: s,
|
|
176
268
|
toBeNaN: l,
|
|
177
269
|
toBeUndefined: c,
|
|
178
|
-
changed:
|
|
179
|
-
changedTimes:
|
|
270
|
+
changed: d,
|
|
271
|
+
changedTimes: f,
|
|
180
272
|
get not() {
|
|
181
|
-
return
|
|
273
|
+
return J(e, !t);
|
|
182
274
|
}
|
|
183
275
|
};
|
|
184
276
|
}
|
|
185
|
-
function
|
|
186
|
-
return
|
|
277
|
+
function Y(e) {
|
|
278
|
+
return J(e);
|
|
187
279
|
}
|
|
188
|
-
function
|
|
189
|
-
let { immediate: r = !0, immediateCallback: i = !1 } = n, a =
|
|
280
|
+
function X(e, t, n = {}) {
|
|
281
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = p(!1), o;
|
|
190
282
|
function s() {
|
|
191
283
|
o &&= (clearTimeout(o), void 0);
|
|
192
284
|
}
|
|
193
|
-
function
|
|
285
|
+
function c() {
|
|
194
286
|
a.value = !1, s();
|
|
195
287
|
}
|
|
196
|
-
function
|
|
288
|
+
function l(...n) {
|
|
197
289
|
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
198
290
|
a.value = !1, o = void 0, e(...n);
|
|
199
|
-
},
|
|
291
|
+
}, g(t));
|
|
200
292
|
}
|
|
201
|
-
return r && (a.value = !0,
|
|
202
|
-
isPending:
|
|
203
|
-
start:
|
|
204
|
-
stop:
|
|
293
|
+
return r && (a.value = !0, S && l()), y(c), {
|
|
294
|
+
isPending: f(a),
|
|
295
|
+
start: l,
|
|
296
|
+
stop: c
|
|
205
297
|
};
|
|
206
298
|
}
|
|
207
|
-
function
|
|
208
|
-
return
|
|
299
|
+
function Z(e, t, n) {
|
|
300
|
+
return v(e, t, {
|
|
209
301
|
...n,
|
|
210
302
|
immediate: !0
|
|
211
303
|
});
|
|
212
304
|
}
|
|
213
305
|
//#endregion
|
|
214
|
-
export {
|
|
306
|
+
export { j as bypassFilter, b as createEventHook, A as createFilterWrapper, x as createGlobalState, R as createSharedComposable, F as createSingletonPromise, M as debounceFilter, L as getLifeCycleTarget, S as isClient, C as isDef, D as isIOS, T as isObject, E as noop, N as pausableFilter, P as promiseTimeout, B as reactiveComputed, V as reactiveOmit, H as refAutoReset, K as syncRef, I as toArray, z as toReactive, k as toRef, q as tryOnBeforeUnmount, y as tryOnScopeDispose, Y as until, U as useDebounceFn, X as useTimeoutFn, Z as watchImmediate, G as watchPausable, W as watchWithFilter };
|