@septkit/ui 0.0.81 → 0.0.83
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/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/dialecte-oAXwOG-Q.js → @dialecte_core@0.10.0/node_modules/@dialecte/core/dist/dialecte-CVLWSkgW.js} +1 -1
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +130 -0
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/index.js +6 -0
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/project-key-2ccZ-0gu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/running-operations-DCKvzlU7.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/same-json-value-_AChwM_n.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.9.0 → @dialecte_core@0.10.0}/node_modules/@dialecte/core/dist/utils-Cv4oHia0.js +79 -102
- package/dist/external/.pnpm/@dialecte_core@0.10.0/node_modules/@dialecte/core/dist/utils.js +2 -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 +59 -117
- package/dist/external/.pnpm/@vueuse_shared@14.3.0_vue@3.5.39_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +57 -60
- package/dist/index.d.ts +49 -1960
- package/dist/index.js +19 -27
- package/dist/selector-input/index.js +3 -3
- package/dist/selector-input/selector-input.js +4 -89
- package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +91 -89
- package/dist/selector-input/selector-xpath.js +92 -0
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers-D8p0KiJu.js +0 -179
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/helpers.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/index.js +0 -6
- package/dist/external/.pnpm/@dialecte_core@0.9.0/node_modules/@dialecte/core/dist/utils.js +0 -2
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/declaration.constants-DSLNk1wh.js +0 -45065
- package/dist/external/.pnpm/@dialecte_scl@0.14.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-right.js +0 -11
- package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/list-tree.js +0 -26
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperIndicator.js +0 -27
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperItem.js +0 -67
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperRoot.js +0 -136
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTitle.js +0 -28
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Stepper/StepperTrigger.js +0 -97
- package/dist/external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useArrowNavigation.js +0 -31
- package/dist/merge/check-files/components/merge-preflight.js +0 -5
- package/dist/merge/check-files/components/merge-preflight.vue_vue_type_script_setup_true_lang.js +0 -53
- package/dist/merge/check-files/flags.js +0 -17
- package/dist/merge/check-files/identity-warning.js +0 -19
- package/dist/merge/confirm/components/merge-summary.js +0 -5
- package/dist/merge/confirm/components/merge-summary.vue_vue_type_script_setup_true_lang.js +0 -207
- package/dist/merge/confirm/landings.js +0 -34
- package/dist/merge/confirm/outcome.js +0 -179
- package/dist/merge/confirm/summary.js +0 -57
- package/dist/merge/done/applied-counts.js +0 -16
- package/dist/merge/done/applied-focus.js +0 -15
- package/dist/merge/help.js +0 -76
- package/dist/merge/index.js +0 -8
- package/dist/merge/match/components/merge-map.js +0 -5
- package/dist/merge/match/components/merge-map.vue_vue_type_script_setup_true_lang.js +0 -230
- package/dist/merge/match/match.js +0 -210
- package/dist/merge/review/affix.js +0 -14
- package/dist/merge/review/change-badge.js +0 -10
- package/dist/merge/review/components/decision-toggle.js +0 -5
- package/dist/merge/review/components/decision-toggle.vue_vue_type_script_setup_true_lang.js +0 -80
- package/dist/merge/review/components/element-detail.js +0 -5
- package/dist/merge/review/components/element-detail.vue_vue_type_script_setup_true_lang.js +0 -210
- package/dist/merge/review/components/merge-tree.js +0 -5
- package/dist/merge/review/components/merge-tree.vue_vue_type_script_setup_true_lang.js +0 -192
- package/dist/merge/review/components/type-name-authority.js +0 -5
- package/dist/merge/review/components/type-name-authority.vue_vue_type_script_setup_true_lang.js +0 -47
- package/dist/merge/review/decision.js +0 -12
- package/dist/merge/review/detail.js +0 -63
- package/dist/merge/review/highlight.js +0 -44
- package/dist/merge/review/marks.js +0 -17
- package/dist/merge/review/navigation.js +0 -82
- package/dist/merge/review/title.js +0 -7
- package/dist/merge/review/tree.js +0 -138
- package/dist/merge/session/components/merge-help.js +0 -7
- package/dist/merge/session/components/merge-help.vue_vue_type_script_setup_true_lang.js +0 -109
- package/dist/merge/session/components/merge-progress.js +0 -5
- package/dist/merge/session/components/merge-progress.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/merge/session/components/merge-review.js +0 -5
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -895
- package/dist/merge/session/merge.service.js +0 -113
- package/dist/merge/session/shortcuts.js +0 -22
- package/dist/merge/session/staged-writes.js +0 -47
- package/dist/merge/session/steps.js +0 -21
- package/dist/merge/session/use-document-progress.js +0 -26
- package/dist/merge/session/use-merge-session.js +0 -372
- package/dist/merge/wording.js +0 -123
- package/dist/selector-input/selector-input2.js +0 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h,
|
|
2
|
-
import { computed as
|
|
1
|
+
import { createEventHook as e, createFilterWrapper as t, createGlobalState as n, createSharedComposable as r, createSingletonPromise as i, debounceFilter as a, getLifeCycleTarget as o, isClient as s, isDef as c, isIOS as l, isObject as u, noop as d, promiseTimeout as f, refAutoReset as p, toArray as m, tryOnBeforeUnmount as h, tryOnScopeDispose as g, until as _, useDebounceFn as v, useTimeoutFn as y, watchImmediate as b } 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 x, getCurrentInstance as S, nextTick as C, onMounted as w, ref as T, shallowReadonly as E, shallowRef as D, toRaw as O, toValue as k, unref as A, watch as j } 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
|
|
4
|
+
var M = s ? window : void 0;
|
|
5
5
|
s && window.document;
|
|
6
|
-
var
|
|
6
|
+
var N = s ? window.navigator : void 0;
|
|
7
7
|
s && window.location;
|
|
8
|
-
function
|
|
9
|
-
let t =
|
|
8
|
+
function P(e) {
|
|
9
|
+
let t = k(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 = m(
|
|
12
|
+
function F(...e) {
|
|
13
|
+
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = x(() => {
|
|
14
|
+
let t = m(k(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
|
-
m(
|
|
20
|
-
m(
|
|
21
|
-
|
|
17
|
+
return b(() => [
|
|
18
|
+
n.value?.map((e) => P(e)) ?? [M].filter((e) => e != null),
|
|
19
|
+
m(k(n.value ? e[1] : e[0])),
|
|
20
|
+
m(A(n.value ? e[2] : e[1])),
|
|
21
|
+
k(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
24
|
let s = u(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
@@ -27,33 +27,33 @@ function I(...e) {
|
|
|
27
27
|
});
|
|
28
28
|
}, { flush: "post" });
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let e =
|
|
32
|
-
return t &&
|
|
30
|
+
function I() {
|
|
31
|
+
let e = D(!1), t = S();
|
|
32
|
+
return t && w(() => {
|
|
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 L(e) {
|
|
38
|
+
let t = I();
|
|
39
|
+
return x(() => (t.value, !!e()));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function R(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 z(...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 = M, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = R(t);
|
|
48
|
+
return F(i, a, (e) => {
|
|
49
|
+
e.repeat && k(s) || c(e) && n(e);
|
|
50
50
|
}, o);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ?
|
|
54
|
-
async function
|
|
52
|
+
function B(e, t, n) {
|
|
53
|
+
let { immediate: r = !0, delay: i = 0, onError: a = globalThis.reportError ?? d, onSuccess: o = d, resetOnExecute: s = !0, shallow: c = !0, throwError: l } = n ?? {}, u = c ? D(t) : T(t), p = D(!1), m = D(!1), h = D(void 0), g = 0;
|
|
54
|
+
async function v(n = 0, ...r) {
|
|
55
55
|
let i = g += 1;
|
|
56
|
-
s && (u.value =
|
|
56
|
+
s && (u.value = k(t)), h.value = void 0, p.value = !1, m.value = !0, n > 0 && await f(n);
|
|
57
57
|
let c = typeof e == "function" ? e(...r) : e;
|
|
58
58
|
try {
|
|
59
59
|
let e = await c;
|
|
@@ -64,18 +64,18 @@ function V(e, t, n) {
|
|
|
64
64
|
i === g && (m.value = !1);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
r &&
|
|
67
|
+
r && v(i);
|
|
68
68
|
let y = {
|
|
69
69
|
state: u,
|
|
70
70
|
isReady: p,
|
|
71
71
|
isLoading: m,
|
|
72
72
|
error: h,
|
|
73
|
-
execute:
|
|
74
|
-
executeImmediate: (...e) =>
|
|
73
|
+
execute: v,
|
|
74
|
+
executeImmediate: (...e) => v(0, ...e)
|
|
75
75
|
};
|
|
76
76
|
function b() {
|
|
77
77
|
return new Promise((e, t) => {
|
|
78
|
-
|
|
78
|
+
_(m).toBe(!1).then(() => e(y)).catch(t);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
@@ -85,11 +85,11 @@ function V(e, t, n) {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let { controls: n = !1, navigator: r =
|
|
88
|
+
function V(e, t = {}) {
|
|
89
|
+
let { controls: n = !1, navigator: r = N } = t, a = /* @__PURE__ */ L(() => r && "permissions" in r), o = D(), s = typeof e == "string" ? { name: e } : e, c = D(), l = () => {
|
|
90
90
|
c.value = o.value?.state ?? "prompt";
|
|
91
91
|
};
|
|
92
|
-
|
|
92
|
+
F(o, "change", l, { passive: !0 });
|
|
93
93
|
let u = i(async () => {
|
|
94
94
|
if (a.value) {
|
|
95
95
|
if (!o.value) try {
|
|
@@ -99,7 +99,7 @@ function H(e, t = {}) {
|
|
|
99
99
|
} finally {
|
|
100
100
|
l();
|
|
101
101
|
}
|
|
102
|
-
if (n) return
|
|
102
|
+
if (n) return O(o.value);
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
return u(), n ? {
|
|
@@ -108,23 +108,23 @@ function H(e, t = {}) {
|
|
|
108
108
|
query: u
|
|
109
109
|
} : c;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
let { navigator: t =
|
|
111
|
+
function H(e = {}) {
|
|
112
|
+
let { navigator: t = N, read: n = !1, source: r, copiedDuring: i = 1500, legacy: a = !1 } = e, o = /* @__PURE__ */ L(() => t && "clipboard" in t), s = V("clipboard-read"), c = V("clipboard-write"), l = x(() => o.value || a), u = D(""), d = D(!1), f = D(!1), p = y(() => d.value = !1, i, { immediate: !1 }), m = 0;
|
|
113
113
|
async function h() {
|
|
114
|
-
let e = !(o.value &&
|
|
114
|
+
let e = !(o.value && S(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 = b());
|
|
121
121
|
}
|
|
122
|
-
l.value && n &&
|
|
122
|
+
l.value && n && F(["copy", "cut"], h, { passive: !0 });
|
|
123
123
|
async function g(e) {
|
|
124
|
-
let n = e ??
|
|
124
|
+
let n = e ?? k(r);
|
|
125
125
|
if (l.value && n != null) {
|
|
126
126
|
f.value = !0;
|
|
127
|
-
let e = !(o.value &&
|
|
127
|
+
let e = !(o.value && S(c.value));
|
|
128
128
|
if (!e) try {
|
|
129
129
|
let e = _(n);
|
|
130
130
|
await t.clipboard.write([e]);
|
|
@@ -146,97 +146,39 @@ function U(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 b() {
|
|
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 S(e) {
|
|
154
154
|
return e === "granted" || e === "prompt";
|
|
155
155
|
}
|
|
156
156
|
return {
|
|
157
|
-
copyPending:
|
|
157
|
+
copyPending: E(f),
|
|
158
158
|
isSupported: l,
|
|
159
|
-
text:
|
|
160
|
-
copied:
|
|
159
|
+
text: E(u),
|
|
160
|
+
copied: E(d),
|
|
161
161
|
copy: g
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function U(e) {
|
|
165
165
|
return JSON.parse(JSON.stringify(e));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
let { window: r = N, ...i } = n, a, o = /* @__PURE__ */ R(() => r && "ResizeObserver" in r), s = () => {
|
|
169
|
-
a &&= (a.disconnect(), void 0);
|
|
170
|
-
}, c = M(S(() => {
|
|
171
|
-
let t = A(e);
|
|
172
|
-
return Array.isArray(t) ? t.map((e) => F(e)) : [F(t)];
|
|
173
|
-
}), (e) => {
|
|
174
|
-
if (s(), o.value && r) {
|
|
175
|
-
a = new ResizeObserver(t);
|
|
176
|
-
for (let t of e) t && a.observe(t, i);
|
|
177
|
-
}
|
|
178
|
-
}, {
|
|
179
|
-
immediate: !0,
|
|
180
|
-
flush: "post"
|
|
181
|
-
}), l = () => {
|
|
182
|
-
s(), c();
|
|
183
|
-
};
|
|
184
|
-
return _(l), {
|
|
185
|
-
isSupported: o,
|
|
186
|
-
stop: l
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function K(e, t = {
|
|
190
|
-
width: 0,
|
|
191
|
-
height: 0
|
|
192
|
-
}, n = {}) {
|
|
193
|
-
let { window: r = N, box: i = "content-box" } = n, a = S(() => {
|
|
194
|
-
var t;
|
|
195
|
-
return (t = F(e)) == null || (t = t.namespaceURI) == null ? void 0 : t.includes("svg");
|
|
196
|
-
}), o = O(t.width), s = O(t.height), { stop: c } = G(e, ([t]) => {
|
|
197
|
-
let n = i === "border-box" ? t.borderBoxSize : i === "content-box" ? t.contentBoxSize : t.devicePixelContentBoxSize;
|
|
198
|
-
if (r && a.value) {
|
|
199
|
-
let t = F(e);
|
|
200
|
-
if (t) {
|
|
201
|
-
let e = t.getBoundingClientRect();
|
|
202
|
-
o.value = e.width, s.value = e.height;
|
|
203
|
-
}
|
|
204
|
-
} else if (n) {
|
|
205
|
-
let e = m(n);
|
|
206
|
-
o.value = e.reduce((e, { inlineSize: t }) => e + t, 0), s.value = e.reduce((e, { blockSize: t }) => e + t, 0);
|
|
207
|
-
} else o.value = t.contentRect.width, s.value = t.contentRect.height;
|
|
208
|
-
}, n);
|
|
209
|
-
g(() => {
|
|
210
|
-
let n = F(e);
|
|
211
|
-
n && (o.value = "offsetWidth" in n ? n.offsetWidth : t.width, s.value = "offsetHeight" in n ? n.offsetHeight : t.height);
|
|
212
|
-
});
|
|
213
|
-
let l = M(() => F(e), (e) => {
|
|
214
|
-
o.value = e ? t.width : 0, s.value = e ? t.height : 0;
|
|
215
|
-
});
|
|
216
|
-
function u() {
|
|
217
|
-
c(), l();
|
|
218
|
-
}
|
|
219
|
-
return {
|
|
220
|
-
width: o,
|
|
221
|
-
height: s,
|
|
222
|
-
stop: u
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
|
-
function q(e, t, n, r = {}) {
|
|
167
|
+
function W(e, t, n, r = {}) {
|
|
226
168
|
var i, a;
|
|
227
|
-
let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p =
|
|
169
|
+
let { clone: o = !1, passive: s = !1, eventName: l, deep: u = !1, defaultValue: d, shouldEmit: f } = r, p = S(), 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 = l;
|
|
228
170
|
t ||= "modelValue", h ||= `update:${t.toString()}`;
|
|
229
|
-
let g = (e) => o ? typeof o == "function" ? o(e) :
|
|
171
|
+
let g = (e) => o ? typeof o == "function" ? o(e) : U(e) : e, _ = () => c(e[t]) ? g(e[t]) : d, v = (e) => {
|
|
230
172
|
f ? f(e) && m(h, e) : m(h, e);
|
|
231
173
|
};
|
|
232
174
|
if (s) {
|
|
233
|
-
let n =
|
|
234
|
-
return
|
|
235
|
-
r || (r = !0, n.value = g(e),
|
|
236
|
-
}),
|
|
175
|
+
let n = T(_()), r = !1;
|
|
176
|
+
return j(() => e[t], (e) => {
|
|
177
|
+
r || (r = !0, n.value = g(e), C(() => r = !1));
|
|
178
|
+
}), j(n, (n) => {
|
|
237
179
|
!r && (n !== e[t] || u) && v(n);
|
|
238
180
|
}, { deep: u }), n;
|
|
239
|
-
} else return
|
|
181
|
+
} else return x({
|
|
240
182
|
get() {
|
|
241
183
|
return _();
|
|
242
184
|
},
|
|
@@ -246,4 +188,4 @@ function q(e, t, n, r = {}) {
|
|
|
246
188
|
});
|
|
247
189
|
}
|
|
248
190
|
//#endregion
|
|
249
|
-
export {
|
|
191
|
+
export { U as cloneFnJSON, e as createEventHook, t as createFilterWrapper, n as createGlobalState, r as createSharedComposable, i as createSingletonPromise, a as debounceFilter, N as defaultNavigator, M as defaultWindow, o as getLifeCycleTarget, s as isClient, c as isDef, l as isIOS, u as isObject, d as noop, z as onKeyStroke, f as promiseTimeout, p as refAutoReset, m as toArray, h as tryOnBeforeUnmount, g as tryOnScopeDispose, P as unrefElement, _ as until, B as useAsyncState, H as useClipboard, v as useDebounceFn, F as useEventListener, I as useMounted, V as usePermission, L as useSupported, y as useTimeoutFn, W as useVModel, b as watchImmediate };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o,
|
|
1
|
+
import { customRef as e, effectScope as t, getCurrentInstance as n, getCurrentScope as r, isRef as i, nextTick as a, onBeforeUnmount as o, onScopeDispose as s, shallowReadonly as c, shallowRef as l, toValue as u, watch as d } 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 r() ? (
|
|
3
|
+
function f(e, t) {
|
|
4
|
+
return r() ? (s(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function p() {
|
|
7
7
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
8
8
|
e.delete(t);
|
|
9
9
|
};
|
|
@@ -11,7 +11,7 @@ function m() {
|
|
|
11
11
|
on: (n) => {
|
|
12
12
|
e.add(n);
|
|
13
13
|
let r = () => t(n);
|
|
14
|
-
return
|
|
14
|
+
return f(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,18 @@ function m() {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function m(e) {
|
|
24
24
|
let n = !1, r, i = t(!0);
|
|
25
25
|
return ((...t) => (n ||= (r = i.run(() => e(...t)), !0), r));
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var h = typeof window < "u" && typeof document < "u";
|
|
28
28
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
29
|
-
var
|
|
30
|
-
function
|
|
29
|
+
var g = (e) => e !== void 0, _ = Object.prototype.toString, v = (e) => _.call(e) === "[object Object]", y = () => {}, b = /* @__PURE__ */ x();
|
|
30
|
+
function x() {
|
|
31
31
|
var e, t;
|
|
32
|
-
return
|
|
32
|
+
return h && !!(!((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 S(e, t) {
|
|
35
35
|
function n(...n) {
|
|
36
36
|
return new Promise((r, i) => {
|
|
37
37
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -43,12 +43,12 @@ function C(e, t) {
|
|
|
43
43
|
}
|
|
44
44
|
return n;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
let n, r, i =
|
|
48
|
-
clearTimeout(e), i(), i =
|
|
46
|
+
function C(e, t = {}) {
|
|
47
|
+
let n, r, i = y, a = (e) => {
|
|
48
|
+
clearTimeout(e), i(), i = y;
|
|
49
49
|
}, o;
|
|
50
50
|
return (s) => {
|
|
51
|
-
let c =
|
|
51
|
+
let c = u(e), l = u(t.maxWait);
|
|
52
52
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
53
53
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
54
54
|
n && a(n), r = void 0, e(o());
|
|
@@ -58,12 +58,12 @@ function w(e, t = {}) {
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function w(e, t = !1, n = "Timeout") {
|
|
62
62
|
return new Promise((r, i) => {
|
|
63
63
|
t ? setTimeout(i, e, n) : setTimeout(r, e);
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function T(e) {
|
|
67
67
|
let t;
|
|
68
68
|
function n() {
|
|
69
69
|
return t ||= e(), t;
|
|
@@ -73,25 +73,25 @@ function E(e) {
|
|
|
73
73
|
t = void 0, e && await e;
|
|
74
74
|
}, n;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function E(e) {
|
|
77
77
|
return Array.isArray(e) ? e : [e];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function D(e) {
|
|
80
80
|
return e || n();
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (!
|
|
82
|
+
function O(e) {
|
|
83
|
+
if (!h) return e;
|
|
84
84
|
let n = 0, r, i, a = () => {
|
|
85
85
|
--n, i && n <= 0 && (i.stop(), r = void 0, i = void 0);
|
|
86
86
|
};
|
|
87
|
-
return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))),
|
|
87
|
+
return ((...o) => (n += 1, i || (i = t(!0), r = i.run(() => e(...o))), f(a), r));
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function k(t, n = 1e4) {
|
|
90
90
|
return e((e, r) => {
|
|
91
|
-
let i =
|
|
92
|
-
i =
|
|
93
|
-
},
|
|
94
|
-
return
|
|
91
|
+
let i = u(t), a, o = () => setTimeout(() => {
|
|
92
|
+
i = u(t), r();
|
|
93
|
+
}, u(n));
|
|
94
|
+
return f(() => {
|
|
95
95
|
clearTimeout(a);
|
|
96
96
|
}), {
|
|
97
97
|
get() {
|
|
@@ -103,19 +103,16 @@ function A(t, n = 1e4) {
|
|
|
103
103
|
};
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return C(
|
|
108
|
-
}
|
|
109
|
-
function M(e, t) {
|
|
110
|
-
O(t) && o(e, t);
|
|
106
|
+
function A(e, t = 200, n = {}) {
|
|
107
|
+
return S(C(t, n), e);
|
|
111
108
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
109
|
+
function j(e, t) {
|
|
110
|
+
D(t) && o(e, t);
|
|
114
111
|
}
|
|
115
|
-
function
|
|
112
|
+
function M(e, t = !1) {
|
|
116
113
|
function n(n, { flush: r = "sync", deep: i = !1, timeout: o, throwOnTimeout: s } = {}) {
|
|
117
114
|
let c = null, l = [new Promise((o) => {
|
|
118
|
-
c =
|
|
115
|
+
c = d(e, (e) => {
|
|
119
116
|
n(e) !== t && (c ? c() : a(() => c?.()), o(e));
|
|
120
117
|
}, {
|
|
121
118
|
flush: r,
|
|
@@ -123,12 +120,12 @@ function P(e, t = !1) {
|
|
|
123
120
|
immediate: !0
|
|
124
121
|
});
|
|
125
122
|
})];
|
|
126
|
-
return o != null && l.push(
|
|
123
|
+
return o != null && l.push(w(o, s).then(() => u(e)).finally(() => c?.())), Promise.race(l);
|
|
127
124
|
}
|
|
128
125
|
function r(r, o) {
|
|
129
126
|
if (!i(r)) return n((e) => e === r, o);
|
|
130
|
-
let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout:
|
|
131
|
-
p =
|
|
127
|
+
let { flush: s = "sync", deep: c = !1, timeout: l, throwOnTimeout: f } = o ?? {}, p = null, m = [new Promise((n) => {
|
|
128
|
+
p = d([e, r], ([e, r]) => {
|
|
132
129
|
t !== (e === r) && (p ? p() : a(() => p?.()), n(e));
|
|
133
130
|
}, {
|
|
134
131
|
flush: s,
|
|
@@ -136,7 +133,7 @@ function P(e, t = !1) {
|
|
|
136
133
|
immediate: !0
|
|
137
134
|
});
|
|
138
135
|
})];
|
|
139
|
-
return l != null && m.push(
|
|
136
|
+
return l != null && m.push(w(l, f).then(() => u(e)).finally(() => (p?.(), u(e)))), Promise.race(m);
|
|
140
137
|
}
|
|
141
138
|
function o(e) {
|
|
142
139
|
return n((e) => !!e, e);
|
|
@@ -150,10 +147,10 @@ function P(e, t = !1) {
|
|
|
150
147
|
function l(e) {
|
|
151
148
|
return n(Number.isNaN, e);
|
|
152
149
|
}
|
|
153
|
-
function
|
|
150
|
+
function f(e, t) {
|
|
154
151
|
return n((t) => {
|
|
155
152
|
let n = Array.from(t);
|
|
156
|
-
return n.includes(e) || n.includes(
|
|
153
|
+
return n.includes(e) || n.includes(u(e));
|
|
157
154
|
}, t);
|
|
158
155
|
}
|
|
159
156
|
function p(e) {
|
|
@@ -163,13 +160,13 @@ function P(e, t = !1) {
|
|
|
163
160
|
let r = -1;
|
|
164
161
|
return n(() => (r += 1, r >= e), t);
|
|
165
162
|
}
|
|
166
|
-
return Array.isArray(
|
|
163
|
+
return Array.isArray(u(e)) ? {
|
|
167
164
|
toMatch: n,
|
|
168
|
-
toContains:
|
|
165
|
+
toContains: f,
|
|
169
166
|
changed: p,
|
|
170
167
|
changedTimes: m,
|
|
171
168
|
get not() {
|
|
172
|
-
return
|
|
169
|
+
return M(e, !t);
|
|
173
170
|
}
|
|
174
171
|
} : {
|
|
175
172
|
toMatch: n,
|
|
@@ -181,37 +178,37 @@ function P(e, t = !1) {
|
|
|
181
178
|
changed: p,
|
|
182
179
|
changedTimes: m,
|
|
183
180
|
get not() {
|
|
184
|
-
return
|
|
181
|
+
return M(e, !t);
|
|
185
182
|
}
|
|
186
183
|
};
|
|
187
184
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
185
|
+
function N(e) {
|
|
186
|
+
return M(e);
|
|
190
187
|
}
|
|
191
|
-
function
|
|
192
|
-
let { immediate: r = !0, immediateCallback: i = !1 } = n, a =
|
|
188
|
+
function P(e, t, n = {}) {
|
|
189
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = l(!1), o;
|
|
193
190
|
function s() {
|
|
194
191
|
o &&= (clearTimeout(o), void 0);
|
|
195
192
|
}
|
|
196
|
-
function
|
|
193
|
+
function d() {
|
|
197
194
|
a.value = !1, s();
|
|
198
195
|
}
|
|
199
|
-
function
|
|
196
|
+
function p(...n) {
|
|
200
197
|
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
201
198
|
a.value = !1, o = void 0, e(...n);
|
|
202
|
-
},
|
|
199
|
+
}, u(t));
|
|
203
200
|
}
|
|
204
|
-
return r && (a.value = !0,
|
|
205
|
-
isPending:
|
|
206
|
-
start:
|
|
207
|
-
stop:
|
|
201
|
+
return r && (a.value = !0, h && p()), f(d), {
|
|
202
|
+
isPending: c(a),
|
|
203
|
+
start: p,
|
|
204
|
+
stop: d
|
|
208
205
|
};
|
|
209
206
|
}
|
|
210
|
-
function
|
|
211
|
-
return
|
|
207
|
+
function F(e, t, n) {
|
|
208
|
+
return d(e, t, {
|
|
212
209
|
...n,
|
|
213
210
|
immediate: !0
|
|
214
211
|
});
|
|
215
212
|
}
|
|
216
213
|
//#endregion
|
|
217
|
-
export {
|
|
214
|
+
export { p as createEventHook, S as createFilterWrapper, m as createGlobalState, O as createSharedComposable, T as createSingletonPromise, C as debounceFilter, D as getLifeCycleTarget, h as isClient, g as isDef, b as isIOS, v as isObject, y as noop, w as promiseTimeout, k as refAutoReset, E as toArray, j as tryOnBeforeUnmount, f as tryOnScopeDispose, N as until, A as useDebounceFn, P as useTimeoutFn, F as watchImmediate };
|