@pinia/colada-devtools 0.1.6 → 0.1.8
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/index.js +232 -265
- package/dist/index.js.map +1 -1
- package/dist-panel/{_queryId_-13o6pDV6.js → _queryId_-B8mNYXBL.js} +211 -218
- package/dist-panel/_queryId_-B8mNYXBL.js.map +1 -0
- package/dist-panel/{index-DgZ0YYsh.js → index-CWKID_IB.js} +2 -2
- package/dist-panel/{index-DgZ0YYsh.js.map → index-CWKID_IB.js.map} +1 -1
- package/dist-panel/index-UPnYYHaa.js +6340 -0
- package/dist-panel/index-UPnYYHaa.js.map +1 -0
- package/dist-panel/{index-DcKBZRe1.js → index-oPdQg_Hb.js} +4 -4
- package/dist-panel/{index-DcKBZRe1.js.map → index-oPdQg_Hb.js.map} +1 -1
- package/dist-panel/index.js +1 -1
- package/dist-panel/{loader-Dx4_68Bp.js → loader-DJMHHUla.js} +6 -6
- package/dist-panel/loader-DJMHHUla.js.map +1 -0
- package/dist-panel/{mouse-pointer-click-BeSJo9Pm.js → mouse-pointer-click-C2_foU25.js} +4 -4
- package/dist-panel/mouse-pointer-click-C2_foU25.js.map +1 -0
- package/dist-panel/mutations-DJc8p7YC.js +13 -0
- package/dist-panel/mutations-DJc8p7YC.js.map +1 -0
- package/dist-panel/{queries-BWAwqUDO.js → queries-CLrIueL2.js} +219 -219
- package/dist-panel/queries-CLrIueL2.js.map +1 -0
- package/dist-panel/{settings-CAkjqhkP.js → settings-T9huR8_1.js} +2 -2
- package/dist-panel/{settings-CAkjqhkP.js.map → settings-T9huR8_1.js.map} +1 -1
- package/dist-shared/index.js +1 -1
- package/dist-shared/index.js.map +1 -1
- package/package.json +9 -9
- package/dist-panel/_queryId_-13o6pDV6.js.map +0 -1
- package/dist-panel/index-BgTq8RHl.js +0 -6497
- package/dist-panel/index-BgTq8RHl.js.map +0 -1
- package/dist-panel/loader-Dx4_68Bp.js.map +0 -1
- package/dist-panel/mouse-pointer-click-BeSJo9Pm.js.map +0 -1
- package/dist-panel/mutations-4_Hc86Rz.js +0 -13
- package/dist-panel/mutations-4_Hc86Rz.js.map +0 -1
- package/dist-panel/queries-BWAwqUDO.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as A, u as Ee, b as P, c as b, o as
|
|
2
|
-
import { _ as Je, a as Ke } from "./loader-
|
|
1
|
+
import { d as A, u as Ee, b as P, c as b, o as _, a as m, _ as Ne, m as Q, s as te, e as ve, f as Te, r as me, g as V, w as H, h as G, n as I, i as M, F as W, j as ne, t as ae, k as E, l as Be, p as Oe, v as De, q as Ve, x as B, y as J, z as pe, A as he, B as T, C as fe, D as ee, E as q, G as qe, H as Ie, I as Ae, J as je, K as Qe, L as le, M as Ue, N as Fe, O as He } from "./index-UPnYYHaa.js";
|
|
2
|
+
import { _ as Je, a as Ke } from "./loader-DJMHHUla.js";
|
|
3
3
|
import { miniJsonParse as We } from "@pinia/colada-devtools/shared";
|
|
4
4
|
const Xe = {
|
|
5
5
|
class: "progress-bar",
|
|
@@ -12,81 +12,81 @@ const Xe = {
|
|
|
12
12
|
max: { default: 100, type: Number },
|
|
13
13
|
strokeWidth: { default: 2, type: Number }
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
Ee((
|
|
15
|
+
setup(u) {
|
|
16
|
+
Ee((h) => ({
|
|
17
17
|
dfc273d4: o.value,
|
|
18
|
-
b5e811ce:
|
|
18
|
+
b5e811ce: h.strokeWidth
|
|
19
19
|
}));
|
|
20
|
-
const o = P(() => Math.round((
|
|
21
|
-
return (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
const o = P(() => Math.round((u.value - u.min) / (u.max - u.min) * 100));
|
|
21
|
+
return (h, r) => (_(), b("div", Xe, [...r[0] || (r[0] = [
|
|
22
|
+
m("svg", null, [
|
|
23
|
+
m("circle", { class: "bg" }),
|
|
24
|
+
m("circle", { class: "fg" })
|
|
25
25
|
], -1)
|
|
26
|
-
])));
|
|
26
|
+
])]));
|
|
27
27
|
}
|
|
28
28
|
}), Ze = ".progress-bar>svg[data-v-138f773b]{--progress-value: var(--dfc273d4);--size: 1em;--half-size: calc(var(--size) / 2);--stroke-width: calc(var(--b5e811ce) * var(--size) / 10);--radius: calc((var(--size) - var(--stroke-width)) / 2);--circumference: calc(var(--radius) * pi * 2);--dash: calc((var(--progress-value) * var(--circumference)) / 100);animation:progress-animation 100s linear 0s 1 forwards;width:var(--size);height:var(--size)}.progress-bar circle[data-v-138f773b]{cx:var(--half-size);cy:var(--half-size);r:var(--radius);stroke-width:var(--stroke-width);fill:none;stroke-linecap:butt}.progress-bar circle.bg[data-v-138f773b]{stroke:color-mix(in hsl,currentColor 25%,var(--ui-bg))}.progress-bar circle.fg[data-v-138f773b]{transform:rotate(-90deg);transform-origin:var(--half-size) var(--half-size);stroke-dasharray:var(--dash) calc(var(--circumference) - var(--dash));transition:stroke-dasharray .3s linear 0s;stroke:currentColor}", Ge = /* @__PURE__ */ Ne(Ye, [["styles", [Ze]], ["__scopeId", "data-v-138f773b"]]), et = {
|
|
29
29
|
viewBox: "0 0 24 24",
|
|
30
30
|
width: "1.2em",
|
|
31
31
|
height: "1.2em"
|
|
32
32
|
};
|
|
33
|
-
function tt(
|
|
34
|
-
return
|
|
35
|
-
|
|
33
|
+
function tt(u, o) {
|
|
34
|
+
return _(), b("svg", et, [...o[0] || (o[0] = [
|
|
35
|
+
m("g", {
|
|
36
36
|
fill: "none",
|
|
37
37
|
stroke: "currentColor",
|
|
38
38
|
"stroke-linecap": "round",
|
|
39
39
|
"stroke-linejoin": "round",
|
|
40
40
|
"stroke-width": "2"
|
|
41
41
|
}, [
|
|
42
|
-
|
|
42
|
+
m("circle", {
|
|
43
43
|
cx: "12",
|
|
44
44
|
cy: "12",
|
|
45
45
|
r: "10"
|
|
46
46
|
}),
|
|
47
|
-
|
|
47
|
+
m("path", { d: "m9 15l6-6" })
|
|
48
48
|
], -1)
|
|
49
|
-
]));
|
|
49
|
+
])]);
|
|
50
50
|
}
|
|
51
51
|
const nt = Q({ name: "lucide-circle-slash", render: tt }), at = {
|
|
52
52
|
viewBox: "0 0 24 24",
|
|
53
53
|
width: "1.2em",
|
|
54
54
|
height: "1.2em"
|
|
55
55
|
};
|
|
56
|
-
function st(
|
|
57
|
-
return
|
|
58
|
-
|
|
56
|
+
function st(u, o) {
|
|
57
|
+
return _(), b("svg", at, [...o[0] || (o[0] = [
|
|
58
|
+
m("g", {
|
|
59
59
|
fill: "none",
|
|
60
60
|
stroke: "currentColor",
|
|
61
61
|
"stroke-linecap": "round",
|
|
62
62
|
"stroke-linejoin": "round",
|
|
63
63
|
"stroke-width": "2"
|
|
64
64
|
}, [
|
|
65
|
-
|
|
66
|
-
width: "
|
|
67
|
-
height: "
|
|
65
|
+
m("rect", {
|
|
66
|
+
width: "5",
|
|
67
|
+
height: "18",
|
|
68
68
|
x: "14",
|
|
69
|
-
y: "
|
|
69
|
+
y: "3",
|
|
70
70
|
rx: "1"
|
|
71
71
|
}),
|
|
72
|
-
|
|
73
|
-
width: "
|
|
74
|
-
height: "
|
|
75
|
-
x: "
|
|
76
|
-
y: "
|
|
72
|
+
m("rect", {
|
|
73
|
+
width: "5",
|
|
74
|
+
height: "18",
|
|
75
|
+
x: "5",
|
|
76
|
+
y: "3",
|
|
77
77
|
rx: "1"
|
|
78
78
|
})
|
|
79
79
|
], -1)
|
|
80
|
-
]));
|
|
80
|
+
])]);
|
|
81
81
|
}
|
|
82
82
|
const it = Q({ name: "lucide-pause", render: st }), ot = {
|
|
83
83
|
viewBox: "0 0 24 24",
|
|
84
84
|
width: "1.2em",
|
|
85
85
|
height: "1.2em"
|
|
86
86
|
};
|
|
87
|
-
function rt(
|
|
88
|
-
return
|
|
89
|
-
|
|
87
|
+
function rt(u, o) {
|
|
88
|
+
return _(), b("svg", ot, [...o[0] || (o[0] = [
|
|
89
|
+
m("path", {
|
|
90
90
|
fill: "none",
|
|
91
91
|
stroke: "currentColor",
|
|
92
92
|
"stroke-linecap": "round",
|
|
@@ -94,16 +94,16 @@ function rt(m, o) {
|
|
|
94
94
|
"stroke-width": "2",
|
|
95
95
|
d: "M20 6L9 17l-5-5"
|
|
96
96
|
}, null, -1)
|
|
97
|
-
]));
|
|
97
|
+
])]);
|
|
98
98
|
}
|
|
99
99
|
const lt = Q({ name: "lucide-check", render: rt }), ut = {
|
|
100
100
|
viewBox: "0 0 24 24",
|
|
101
101
|
width: "1.2em",
|
|
102
102
|
height: "1.2em"
|
|
103
103
|
};
|
|
104
|
-
function ct(
|
|
105
|
-
return
|
|
106
|
-
|
|
104
|
+
function ct(u, o) {
|
|
105
|
+
return _(), b("svg", ut, [...o[0] || (o[0] = [
|
|
106
|
+
m("path", {
|
|
107
107
|
fill: "none",
|
|
108
108
|
stroke: "currentColor",
|
|
109
109
|
"stroke-linecap": "round",
|
|
@@ -111,11 +111,11 @@ function ct(m, o) {
|
|
|
111
111
|
"stroke-width": "2",
|
|
112
112
|
d: "M18 6L7 17l-5-5m20-2l-7.5 7.5L13 16"
|
|
113
113
|
}, null, -1)
|
|
114
|
-
]));
|
|
114
|
+
])]);
|
|
115
115
|
}
|
|
116
116
|
const dt = Q({ name: "lucide-check-check", render: ct });
|
|
117
|
-
function ge(
|
|
118
|
-
return
|
|
117
|
+
function ge(u) {
|
|
118
|
+
return u.asyncStatus === "loading" ? "loading" : u.state.status === "error" ? "error" : u.state.status === "pending" ? "pending" : u.stale ? "stale" : u.state.status === "success" ? "fresh" : "unknown";
|
|
119
119
|
}
|
|
120
120
|
const K = {
|
|
121
121
|
loading: {
|
|
@@ -162,10 +162,10 @@ function vt() {
|
|
|
162
162
|
--ce <= 0 && (clearInterval(F), F = void 0);
|
|
163
163
|
}), ue;
|
|
164
164
|
}
|
|
165
|
-
const mt = { class: "h-full w-6 relative" }, pt = ["title"], ht = ["href", "title", "onClick"], ft = { class: "flex font-mono flex-grow gap-0.5 overflow-auto items-center" }, gt = { class: "text-wrap break-words rounded bg-(--ui-text)/5 px-0.5" },
|
|
165
|
+
const mt = { class: "h-full w-6 relative" }, pt = ["title"], ht = ["href", "title", "onClick"], ft = { class: "flex font-mono flex-grow gap-0.5 overflow-auto items-center" }, gt = { class: "text-wrap break-words rounded bg-(--ui-text)/5 px-0.5" }, xt = {
|
|
166
166
|
key: 0,
|
|
167
167
|
"aria-hidden": "true"
|
|
168
|
-
},
|
|
168
|
+
}, _t = {
|
|
169
169
|
key: 0,
|
|
170
170
|
title: "This query is disabled"
|
|
171
171
|
}, zt = { class: "rounded bg-theme/70 theme-neutral p-0.5 text-xs flex gap-x-0.5 items-center" }, yt = {
|
|
@@ -176,83 +176,83 @@ const mt = { class: "h-full w-6 relative" }, pt = ["title"], ht = ["href", "titl
|
|
|
176
176
|
props: {
|
|
177
177
|
entry: {}
|
|
178
178
|
},
|
|
179
|
-
setup(
|
|
180
|
-
const o = Te(),
|
|
181
|
-
function r(
|
|
182
|
-
|
|
179
|
+
setup(u) {
|
|
180
|
+
const o = Te(), h = vt();
|
|
181
|
+
function r(y) {
|
|
182
|
+
y.preventDefault(), y.stopPropagation(), o.push("/queries");
|
|
183
183
|
}
|
|
184
|
-
const s = P(() =>
|
|
185
|
-
let
|
|
184
|
+
const s = P(() => u.entry.key.map((y) => {
|
|
185
|
+
let f = y;
|
|
186
186
|
try {
|
|
187
|
-
|
|
187
|
+
f = typeof y == "string" ? JSON.parse(y) : y;
|
|
188
188
|
} catch {
|
|
189
189
|
}
|
|
190
|
-
return
|
|
191
|
-
})),
|
|
192
|
-
return (
|
|
193
|
-
const
|
|
194
|
-
return
|
|
195
|
-
to: { name: "/queries/[queryId]", params: { queryId:
|
|
190
|
+
return f && typeof f == "object" ? We(f) : String(f);
|
|
191
|
+
})), z = P(() => ge(u.entry));
|
|
192
|
+
return (y, f) => {
|
|
193
|
+
const g = Je, c = dt, x = Ke, S = lt, k = it, C = nt, $ = Ge, w = me("RouterLink");
|
|
194
|
+
return _(), V(w, {
|
|
195
|
+
to: { name: "/queries/[queryId]", params: { queryId: u.entry.keyHash } },
|
|
196
196
|
custom: ""
|
|
197
197
|
}, {
|
|
198
198
|
default: H(({ isActive: v, navigate: O, href: D }) => [
|
|
199
|
-
|
|
199
|
+
m("div", {
|
|
200
200
|
class: I(["grid grid-cols-[minmax(0,auto)_1fr] grid-flow-col items-center gap-x-2 p-1 relative text-sm @container", [
|
|
201
201
|
v ? "bg-neutral-200 dark:bg-neutral-700" : "hover:bg-(--ui-bg-elevated)",
|
|
202
|
-
|
|
202
|
+
u.entry.active ? "" : "text-(--ui-text)/50"
|
|
203
203
|
]])
|
|
204
204
|
}, [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
class: I(["absolute -inset-1 right-0 flex items-center justify-center", M(K)[
|
|
208
|
-
title:
|
|
205
|
+
m("div", mt, [
|
|
206
|
+
m("div", {
|
|
207
|
+
class: I(["absolute -inset-1 right-0 flex items-center justify-center", M(K)[z.value].base]),
|
|
208
|
+
title: z.value
|
|
209
209
|
}, [
|
|
210
|
-
|
|
210
|
+
z.value === "loading" ? (_(), V(g, {
|
|
211
211
|
key: 0,
|
|
212
212
|
title: "Loading",
|
|
213
213
|
"aria-label": "Loading icon"
|
|
214
|
-
})) :
|
|
214
|
+
})) : z.value === "fresh" ? (_(), V(c, {
|
|
215
215
|
key: 1,
|
|
216
216
|
title: "Fresh successful data",
|
|
217
217
|
"aria-label": "Fresh successful data icon"
|
|
218
|
-
})) :
|
|
218
|
+
})) : z.value === "error" ? (_(), V(x, {
|
|
219
219
|
key: 2,
|
|
220
220
|
title: "Error",
|
|
221
221
|
"aria-label": "Error icon"
|
|
222
|
-
})) :
|
|
222
|
+
})) : z.value === "stale" ? (_(), V(S, {
|
|
223
223
|
key: 3,
|
|
224
224
|
title: "Stale",
|
|
225
225
|
"aria-label": "Stale icon"
|
|
226
|
-
})) :
|
|
226
|
+
})) : z.value === "pending" ? (_(), V(k, {
|
|
227
227
|
key: 4,
|
|
228
228
|
title: "Pending",
|
|
229
229
|
"aria-label": "Pending icon"
|
|
230
230
|
})) : G("", !0)
|
|
231
231
|
], 10, pt)
|
|
232
232
|
]),
|
|
233
|
-
|
|
233
|
+
m("a", {
|
|
234
234
|
href: D,
|
|
235
235
|
class: "hover:cursor-pointer block overflow-hidden",
|
|
236
|
-
title:
|
|
236
|
+
title: u.entry.active ? "Active query" : "Inactive query",
|
|
237
237
|
onClick: (N) => v ? r(N) : O(N)
|
|
238
238
|
}, [
|
|
239
|
-
|
|
240
|
-
(
|
|
241
|
-
|
|
242
|
-
X < s.value.length - 1 ? (
|
|
239
|
+
m("ol", ft, [
|
|
240
|
+
(_(!0), b(W, null, ne(s.value, (N, X) => (_(), b(W, { key: N }, [
|
|
241
|
+
m("li", gt, ae(N), 1),
|
|
242
|
+
X < s.value.length - 1 ? (_(), b("li", xt, "/")) : G("", !0)
|
|
243
243
|
], 64))), 128))
|
|
244
244
|
])
|
|
245
245
|
], 8, ht),
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
u.entry.options?.enabled === !1 ? (_(), b("div", _t, [
|
|
247
|
+
m("span", zt, [
|
|
248
248
|
E(C, { "aria-hidden": "" }),
|
|
249
|
-
|
|
249
|
+
f[0] || (f[0] = m("span", { class: "@max-md:hidden" }, "disabled", -1))
|
|
250
250
|
])
|
|
251
|
-
])) : !
|
|
251
|
+
])) : !u.entry.active && u.entry.gcTimeout && u.entry.devtools.inactiveAt && typeof u.entry.options?.gcTime == "number" && Number.isFinite(u.entry.options.gcTime) && u.entry.options.gcTime <= 3e4 ? (_(), b("div", yt, [
|
|
252
252
|
E($, {
|
|
253
253
|
class: "size-[1em] dark:text-neutral-500 text-neutral-400",
|
|
254
|
-
max:
|
|
255
|
-
value:
|
|
254
|
+
max: u.entry.options.gcTime,
|
|
255
|
+
value: u.entry.devtools.inactiveAt + u.entry.options.gcTime - M(h)
|
|
256
256
|
}, null, 8, ["max", "value"])
|
|
257
257
|
])) : G("", !0)
|
|
258
258
|
], 2)
|
|
@@ -268,9 +268,9 @@ const mt = { class: "h-full w-6 relative" }, pt = ["title"], ht = ["href", "titl
|
|
|
268
268
|
modelModifiers: {}
|
|
269
269
|
},
|
|
270
270
|
emits: ["update:modelValue"],
|
|
271
|
-
setup(
|
|
272
|
-
const o = Be(
|
|
273
|
-
return (
|
|
271
|
+
setup(u) {
|
|
272
|
+
const o = Be(u, "modelValue");
|
|
273
|
+
return (h, r) => Oe((_(), b("input", {
|
|
274
274
|
"onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
|
|
275
275
|
class: "py-1.5 pl-8 pr-2 rounded border border-(--ui-border) focus:ring-1 focus:ring-theme focus:outline-none transition-colors theme-primary",
|
|
276
276
|
placeholder: "Search Queries"
|
|
@@ -283,23 +283,23 @@ const mt = { class: "h-full w-6 relative" }, pt = ["title"], ht = ["href", "titl
|
|
|
283
283
|
width: "1.2em",
|
|
284
284
|
height: "1.2em"
|
|
285
285
|
};
|
|
286
|
-
function kt(
|
|
287
|
-
return
|
|
288
|
-
|
|
286
|
+
function kt(u, o) {
|
|
287
|
+
return _(), b("svg", St, [...o[0] || (o[0] = [
|
|
288
|
+
m("g", {
|
|
289
289
|
fill: "none",
|
|
290
290
|
stroke: "currentColor",
|
|
291
291
|
"stroke-linecap": "round",
|
|
292
292
|
"stroke-linejoin": "round",
|
|
293
293
|
"stroke-width": "2"
|
|
294
294
|
}, [
|
|
295
|
-
|
|
296
|
-
|
|
295
|
+
m("path", { d: "m21 21l-4.34-4.34" }),
|
|
296
|
+
m("circle", {
|
|
297
297
|
cx: "11",
|
|
298
298
|
cy: "11",
|
|
299
299
|
r: "8"
|
|
300
300
|
})
|
|
301
301
|
], -1)
|
|
302
|
-
]));
|
|
302
|
+
])]);
|
|
303
303
|
}
|
|
304
304
|
const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
305
305
|
__name: "splitpanes",
|
|
@@ -323,12 +323,12 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
323
323
|
"splitter-click",
|
|
324
324
|
"splitter-dblclick"
|
|
325
325
|
],
|
|
326
|
-
setup(
|
|
327
|
-
const
|
|
326
|
+
setup(u, { emit: o }) {
|
|
327
|
+
const h = o, r = u;
|
|
328
328
|
Ve();
|
|
329
|
-
const s = B([]),
|
|
329
|
+
const s = B([]), z = P(
|
|
330
330
|
() => s.value.reduce((e, t) => (e[~~t.id] = t) && e, {})
|
|
331
|
-
),
|
|
331
|
+
), y = P(() => s.value.length), f = B(null), g = B(!1), c = B({
|
|
332
332
|
mouseDown: !1,
|
|
333
333
|
dragging: !1,
|
|
334
334
|
activeSplitter: null,
|
|
@@ -340,7 +340,7 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
340
340
|
timeoutId: null
|
|
341
341
|
}), S = P(() => ({
|
|
342
342
|
[`splitpanes splitpanes--${r.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
343
|
-
"splitpanes--dragging":
|
|
343
|
+
"splitpanes--dragging": c.value.dragging
|
|
344
344
|
}));
|
|
345
345
|
let k = () => {
|
|
346
346
|
};
|
|
@@ -354,19 +354,19 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
354
354
|
const a = e.target.closest(".splitpanes__splitter");
|
|
355
355
|
if (a) {
|
|
356
356
|
const { left: n, top: i } = a.getBoundingClientRect(), { clientX: d, clientY: l } = "touches" in e ? e.touches[0] : e;
|
|
357
|
-
|
|
357
|
+
c.value.cursorOffset = r.horizontal ? l - i : d - n;
|
|
358
358
|
}
|
|
359
|
-
C(e.target.ownerDocument || document),
|
|
359
|
+
C(e.target.ownerDocument || document), c.value.mouseDown = !0, c.value.activeSplitter = t;
|
|
360
360
|
}, w = (e) => {
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
c.value.mouseDown && (e.preventDefault(), c.value.dragging = !0, requestAnimationFrame(() => {
|
|
362
|
+
_e(X(e)), L("resize", { event: e }, !0);
|
|
363
363
|
}));
|
|
364
364
|
}, v = (e) => {
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
c.value.dragging && L("resized", { event: e }, !0), c.value.mouseDown = !1, c.value.activeSplitter = null, setTimeout(() => {
|
|
366
|
+
c.value.dragging = !1, k();
|
|
367
367
|
}, 100);
|
|
368
368
|
}, O = (e, t) => {
|
|
369
|
-
"ontouchstart" in window && (e.preventDefault(), x.value.splitter === t ? (clearTimeout(x.value.timeoutId), x.value.timeoutId = null, D(e, t), x.value.splitter = null) : (x.value.splitter = t, x.value.timeoutId = setTimeout(() => x.value.splitter = null, 500))),
|
|
369
|
+
"ontouchstart" in window && (e.preventDefault(), x.value.splitter === t ? (clearTimeout(x.value.timeoutId), x.value.timeoutId = null, D(e, t), x.value.splitter = null) : (x.value.splitter = t, x.value.timeoutId = setTimeout(() => x.value.splitter = null, 500))), c.value.dragging || L("splitter-click", { event: e, index: t }, !0);
|
|
370
370
|
}, D = (e, t) => {
|
|
371
371
|
if (L("splitter-dblclick", { event: e, index: t }, !0), r.maximizePanes) {
|
|
372
372
|
let a = 0;
|
|
@@ -379,34 +379,34 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
379
379
|
}, N = (e, t) => {
|
|
380
380
|
L("pane-click", {
|
|
381
381
|
event: e,
|
|
382
|
-
index:
|
|
383
|
-
pane:
|
|
382
|
+
index: z.value[t].index,
|
|
383
|
+
pane: z.value[t]
|
|
384
384
|
});
|
|
385
385
|
}, X = (e) => {
|
|
386
386
|
var t;
|
|
387
|
-
const a = (t =
|
|
387
|
+
const a = (t = f.value) == null ? void 0 : t.getBoundingClientRect(), { clientX: n, clientY: i } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
388
388
|
return {
|
|
389
|
-
x: n - (r.horizontal ? 0 :
|
|
390
|
-
y: i - (r.horizontal ?
|
|
389
|
+
x: n - (r.horizontal ? 0 : c.value.cursorOffset) - a.left,
|
|
390
|
+
y: i - (r.horizontal ? c.value.cursorOffset : 0) - a.top
|
|
391
391
|
};
|
|
392
|
-
},
|
|
392
|
+
}, xe = (e) => {
|
|
393
393
|
e = e[r.horizontal ? "y" : "x"];
|
|
394
|
-
const t =
|
|
394
|
+
const t = f.value[r.horizontal ? "clientHeight" : "clientWidth"];
|
|
395
395
|
return r.rtl && !r.horizontal && (e = t - e), e * 100 / t;
|
|
396
|
-
},
|
|
397
|
-
const t =
|
|
396
|
+
}, _e = (e) => {
|
|
397
|
+
const t = c.value.activeSplitter;
|
|
398
398
|
let a = {
|
|
399
399
|
prevPanesSize: se(t),
|
|
400
400
|
nextPanesSize: j(t),
|
|
401
401
|
prevReachedMinPanes: 0,
|
|
402
402
|
nextReachedMinPanes: 0
|
|
403
403
|
};
|
|
404
|
-
const n = 0 + (r.pushOtherPanes ? 0 : a.prevPanesSize), i = 100 - (r.pushOtherPanes ? 0 : a.nextPanesSize), d = Math.max(Math.min(
|
|
405
|
-
let l = [t, t + 1],
|
|
406
|
-
if (!
|
|
407
|
-
const oe =
|
|
404
|
+
const n = 0 + (r.pushOtherPanes ? 0 : a.prevPanesSize), i = 100 - (r.pushOtherPanes ? 0 : a.nextPanesSize), d = Math.max(Math.min(xe(e), i), n);
|
|
405
|
+
let l = [t, t + 1], p = s.value[l[0]], R = s.value[l[1]];
|
|
406
|
+
if (!p || !R) return;
|
|
407
|
+
const oe = p.max < 100 && d >= p.max + a.prevPanesSize, Le = R.max < 100 && d <= 100 - (R.max + j(t + 1));
|
|
408
408
|
if (oe || Le) {
|
|
409
|
-
oe ? (
|
|
409
|
+
oe ? (p.size = p.max, R.size = Math.max(100 - p.max - a.prevPanesSize - a.nextPanesSize, 0)) : (p.size = Math.max(
|
|
410
410
|
100 - R.max - a.prevPanesSize - j(t + 1),
|
|
411
411
|
0
|
|
412
412
|
), R.size = R.max);
|
|
@@ -415,30 +415,30 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
415
415
|
if (r.pushOtherPanes) {
|
|
416
416
|
const re = ze(a, d);
|
|
417
417
|
if (!re) return;
|
|
418
|
-
({ sums: a, panesToResize: l } = re),
|
|
418
|
+
({ sums: a, panesToResize: l } = re), p = s.value[l[0]], R = s.value[l[1]];
|
|
419
419
|
}
|
|
420
|
-
|
|
421
|
-
Math.max(d - a.prevPanesSize - a.prevReachedMinPanes,
|
|
422
|
-
|
|
420
|
+
p && (p.size = Math.min(
|
|
421
|
+
Math.max(d - a.prevPanesSize - a.prevReachedMinPanes, p.min),
|
|
422
|
+
p.max
|
|
423
423
|
)), R && (R.size = Math.min(
|
|
424
424
|
Math.max(100 - d - a.nextPanesSize - a.nextReachedMinPanes, R.min),
|
|
425
425
|
R.max
|
|
426
426
|
));
|
|
427
427
|
}, ze = (e, t) => {
|
|
428
|
-
const a =
|
|
428
|
+
const a = c.value.activeSplitter, n = [a, a + 1];
|
|
429
429
|
let i = s.value[n[0]], d = s.value[n[1]];
|
|
430
|
-
return i && t < e.prevPanesSize + i.min && (n[0] = ye(a).index, e.prevReachedMinPanes = 0, n[0] < a && s.value.forEach((l,
|
|
431
|
-
|
|
432
|
-
}), e.prevPanesSize = se(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, s.value[0].size = s.value[0].min, s.value.forEach((l,
|
|
433
|
-
|
|
434
|
-
}), d.size = 100 - e.prevReachedMinPanes - s.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : t > 100 - e.nextPanesSize - s.value[n[1]].min && (n[1] = be(a).index, e.nextReachedMinPanes = 0, n[1] > a + 1 && s.value.forEach((l,
|
|
435
|
-
|
|
436
|
-
}), e.nextPanesSize = j(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, s.value.forEach((l,
|
|
437
|
-
|
|
430
|
+
return i && t < e.prevPanesSize + i.min && (n[0] = ye(a).index, e.prevReachedMinPanes = 0, n[0] < a && s.value.forEach((l, p) => {
|
|
431
|
+
p > n[0] && p <= a && (l.size = l.min, e.prevReachedMinPanes += l.min);
|
|
432
|
+
}), e.prevPanesSize = se(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, s.value[0].size = s.value[0].min, s.value.forEach((l, p) => {
|
|
433
|
+
p > 0 && p <= a && (l.size = l.min, e.prevReachedMinPanes += l.min);
|
|
434
|
+
}), d.size = 100 - e.prevReachedMinPanes - s.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : t > 100 - e.nextPanesSize - s.value[n[1]].min && (n[1] = be(a).index, e.nextReachedMinPanes = 0, n[1] > a + 1 && s.value.forEach((l, p) => {
|
|
435
|
+
p > a && p < n[1] && (l.size = l.min, e.nextReachedMinPanes += l.min);
|
|
436
|
+
}), e.nextPanesSize = j(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, s.value.forEach((l, p) => {
|
|
437
|
+
p < y.value - 1 && p >= a + 1 && (l.size = l.min, e.nextReachedMinPanes += l.min);
|
|
438
438
|
}), s.value[n[0]].size = 100 - e.prevPanesSize - j(n[0] - 1), null) : { sums: e, panesToResize: n };
|
|
439
439
|
}, se = (e) => s.value.reduce((t, a, n) => t + (n < e ? a.size : 0), 0), j = (e) => s.value.reduce((t, a, n) => t + (n > e + 1 ? a.size : 0), 0), ye = (e) => [...s.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, be = (e) => s.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, we = () => {
|
|
440
440
|
var e;
|
|
441
|
-
const t = Array.from(((e =
|
|
441
|
+
const t = Array.from(((e = f.value) == null ? void 0 : e.children) || []);
|
|
442
442
|
for (const a of t) {
|
|
443
443
|
const n = a.classList.contains("splitpanes__pane"), i = a.classList.contains("splitpanes__splitter");
|
|
444
444
|
!n && !i && (a.remove(), console.warn(
|
|
@@ -452,19 +452,19 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
452
452
|
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
453
453
|
}, U = () => {
|
|
454
454
|
var e;
|
|
455
|
-
const t = Array.from(((e =
|
|
455
|
+
const t = Array.from(((e = f.value) == null ? void 0 : e.children) || []);
|
|
456
456
|
for (const n of t)
|
|
457
457
|
n.className.includes("splitpanes__splitter") && Se(n);
|
|
458
458
|
let a = 0;
|
|
459
459
|
for (const n of t)
|
|
460
460
|
n.className.includes("splitpanes__pane") && (!a && r.firstSplitter ? ie(a, n, !0) : a && ie(a, n), a++);
|
|
461
461
|
}, ke = ({ uid: e, ...t }) => {
|
|
462
|
-
const a =
|
|
462
|
+
const a = z.value[e];
|
|
463
463
|
for (const [n, i] of Object.entries(t)) a[n] = i;
|
|
464
464
|
}, Pe = (e) => {
|
|
465
465
|
var t;
|
|
466
466
|
let a = -1;
|
|
467
|
-
Array.from(((t =
|
|
467
|
+
Array.from(((t = f.value) == null ? void 0 : t.children) || []).some((n) => (n.className.includes("splitpanes__pane") && a++, n.isSameNode(e.el))), s.value.splice(a, 0, { ...e, index: a }), s.value.forEach((n, i) => n.index = i), g.value && ee(() => {
|
|
468
468
|
U(), Y({ addedPane: s.value[a] }), L("pane-add", { pane: s.value[a] });
|
|
469
469
|
});
|
|
470
470
|
}, Ce = (e) => {
|
|
@@ -475,9 +475,9 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
475
475
|
U(), L("pane-remove", { pane: a }), Y({ removedPane: { ...a } });
|
|
476
476
|
});
|
|
477
477
|
}, Y = (e = {}) => {
|
|
478
|
-
!e.addedPane && !e.removedPane ? $e() : s.value.some((t) => t.givenSize !== null || t.min || t.max < 100) ? Re(e) : Me(),
|
|
478
|
+
!e.addedPane && !e.removedPane ? $e() : s.value.some((t) => t.givenSize !== null || t.min || t.max < 100) ? Re(e) : Me(), g.value && L("resized");
|
|
479
479
|
}, Me = () => {
|
|
480
|
-
const e = 100 /
|
|
480
|
+
const e = 100 / y.value;
|
|
481
481
|
let t = 0;
|
|
482
482
|
const a = [], n = [];
|
|
483
483
|
for (const i of s.value)
|
|
@@ -493,15 +493,15 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
493
493
|
if (e > 0.1) {
|
|
494
494
|
for (const d of s.value)
|
|
495
495
|
d.givenSize === null && (d.size = Math.max(
|
|
496
|
-
Math.min(e / (
|
|
496
|
+
Math.min(e / (y.value - n), d.max),
|
|
497
497
|
d.min
|
|
498
498
|
)), i -= d.size;
|
|
499
499
|
i > 0.1 && Z(i, t, a);
|
|
500
500
|
}
|
|
501
501
|
}, Re = ({ addedPane: e, removedPane: t } = {}) => {
|
|
502
|
-
let a = 100 /
|
|
502
|
+
let a = 100 / y.value, n = 0;
|
|
503
503
|
const i = [], d = [];
|
|
504
|
-
(e?.givenSize ?? null) !== null && (a = (100 - e.givenSize) / (
|
|
504
|
+
(e?.givenSize ?? null) !== null && (a = (100 - e.givenSize) / (y.value - 1));
|
|
505
505
|
for (const l of s.value)
|
|
506
506
|
n -= l.size, l.size >= l.max && i.push(l.id), l.size <= l.min && d.push(l.id);
|
|
507
507
|
if (!(Math.abs(n) < 0.1)) {
|
|
@@ -511,20 +511,20 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
511
511
|
}
|
|
512
512
|
}, Z = (e, t, a) => {
|
|
513
513
|
let n;
|
|
514
|
-
e > 0 ? n = e / (
|
|
514
|
+
e > 0 ? n = e / (y.value - t.length) : n = e / (y.value - a.length), s.value.forEach((i, d) => {
|
|
515
515
|
if (e > 0 && !t.includes(i.id)) {
|
|
516
|
-
const l = Math.max(Math.min(i.size + n, i.max), i.min),
|
|
517
|
-
e -=
|
|
516
|
+
const l = Math.max(Math.min(i.size + n, i.max), i.min), p = l - i.size;
|
|
517
|
+
e -= p, i.size = l;
|
|
518
518
|
} else if (!a.includes(i.id)) {
|
|
519
|
-
const l = Math.max(Math.min(i.size + n, i.max), i.min),
|
|
520
|
-
e -=
|
|
519
|
+
const l = Math.max(Math.min(i.size + n, i.max), i.min), p = l - i.size;
|
|
520
|
+
e -= p, i.size = l;
|
|
521
521
|
}
|
|
522
522
|
}), Math.abs(e) > 0.1 && ee(() => {
|
|
523
|
-
|
|
523
|
+
g.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
524
524
|
});
|
|
525
525
|
}, L = (e, t = void 0, a = !1) => {
|
|
526
|
-
const n = t?.index ??
|
|
527
|
-
|
|
526
|
+
const n = t?.index ?? c.value.activeSplitter ?? null;
|
|
527
|
+
h(e, {
|
|
528
528
|
...t,
|
|
529
529
|
...n !== null && { index: n },
|
|
530
530
|
...a && n !== null && {
|
|
@@ -542,14 +542,14 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
542
542
|
() => r.firstSplitter,
|
|
543
543
|
() => U()
|
|
544
544
|
), pe(() => {
|
|
545
|
-
we(), U(), Y(), L("ready"),
|
|
546
|
-
}), he(() =>
|
|
545
|
+
we(), U(), Y(), L("ready"), g.value = !0;
|
|
546
|
+
}), he(() => g.value = !1), T("panes", s), T("indexedPanes", z), T(
|
|
547
547
|
"horizontal",
|
|
548
548
|
P(() => r.horizontal)
|
|
549
|
-
), T("requestUpdate", ke), T("onPaneAdd", Pe), T("onPaneRemove", Ce), T("onPaneClick", N), (e, t) => (
|
|
549
|
+
), T("requestUpdate", ke), T("onPaneAdd", Pe), T("onPaneRemove", Ce), T("onPaneClick", N), (e, t) => (_(), b("div", {
|
|
550
550
|
class: I(S.value),
|
|
551
551
|
ref_key: "containerEl",
|
|
552
|
-
ref:
|
|
552
|
+
ref: f
|
|
553
553
|
}, [
|
|
554
554
|
fe(e.$slots, "default")
|
|
555
555
|
], 2));
|
|
@@ -561,46 +561,46 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
561
561
|
minSize: { type: [Number, String], default: 0 },
|
|
562
562
|
maxSize: { type: [Number, String], default: 100 }
|
|
563
563
|
},
|
|
564
|
-
setup(
|
|
564
|
+
setup(u) {
|
|
565
565
|
var o;
|
|
566
|
-
const
|
|
567
|
-
const v = isNaN(
|
|
566
|
+
const h = u, r = q("requestUpdate"), s = q("onPaneAdd"), z = q("horizontal"), y = q("onPaneRemove"), f = q("onPaneClick"), g = (o = qe()) == null ? void 0 : o.uid, c = q("indexedPanes"), x = P(() => c.value[g]), S = B(null), k = P(() => {
|
|
567
|
+
const v = isNaN(h.size) || h.size === void 0 ? 0 : parseFloat(h.size);
|
|
568
568
|
return Math.max(Math.min(v, $.value), C.value);
|
|
569
569
|
}), C = P(() => {
|
|
570
|
-
const v = parseFloat(
|
|
570
|
+
const v = parseFloat(h.minSize);
|
|
571
571
|
return isNaN(v) ? 0 : v;
|
|
572
572
|
}), $ = P(() => {
|
|
573
|
-
const v = parseFloat(
|
|
573
|
+
const v = parseFloat(h.maxSize);
|
|
574
574
|
return isNaN(v) ? 100 : v;
|
|
575
575
|
}), w = P(() => {
|
|
576
576
|
var v;
|
|
577
|
-
return `${
|
|
577
|
+
return `${z.value ? "height" : "width"}: ${(v = x.value) == null ? void 0 : v.size}%`;
|
|
578
578
|
});
|
|
579
579
|
return J(
|
|
580
580
|
() => k.value,
|
|
581
|
-
(v) => r({ uid:
|
|
581
|
+
(v) => r({ uid: g, size: v })
|
|
582
582
|
), J(
|
|
583
583
|
() => C.value,
|
|
584
|
-
(v) => r({ uid:
|
|
584
|
+
(v) => r({ uid: g, min: v })
|
|
585
585
|
), J(
|
|
586
586
|
() => $.value,
|
|
587
|
-
(v) => r({ uid:
|
|
587
|
+
(v) => r({ uid: g, max: v })
|
|
588
588
|
), pe(() => {
|
|
589
589
|
s({
|
|
590
|
-
id:
|
|
590
|
+
id: g,
|
|
591
591
|
el: S.value,
|
|
592
592
|
min: C.value,
|
|
593
593
|
max: $.value,
|
|
594
594
|
// The given size (useful to know the user intention).
|
|
595
|
-
givenSize:
|
|
595
|
+
givenSize: h.size === void 0 ? null : k.value,
|
|
596
596
|
size: k.value
|
|
597
597
|
// The computed current size at any time.
|
|
598
598
|
});
|
|
599
|
-
}), he(() =>
|
|
599
|
+
}), he(() => y(g)), (v, O) => (_(), b("div", {
|
|
600
600
|
ref_key: "paneEl",
|
|
601
601
|
ref: S,
|
|
602
602
|
class: "splitpanes__pane",
|
|
603
|
-
onClick: O[0] || (O[0] = (D) => M(
|
|
603
|
+
onClick: O[0] || (O[0] = (D) => M(f)(D, M(g))),
|
|
604
604
|
style: Ie(w.value)
|
|
605
605
|
}, [
|
|
606
606
|
fe(v.$slots, "default")
|
|
@@ -610,8 +610,8 @@ const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
|
610
610
|
let $t = 0;
|
|
611
611
|
const Rt = () => `${Mt}-${Date.now()}-${$t++}`;
|
|
612
612
|
class Lt extends Event {
|
|
613
|
-
constructor(o,
|
|
614
|
-
super(o), this.container =
|
|
613
|
+
constructor(o, h, r) {
|
|
614
|
+
super(o), this.container = h, this.matches = r;
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
class Et extends EventTarget {
|
|
@@ -619,52 +619,52 @@ class Et extends EventTarget {
|
|
|
619
619
|
#t = new AbortController();
|
|
620
620
|
container;
|
|
621
621
|
matches;
|
|
622
|
-
constructor(o,
|
|
623
|
-
super(), this.container =
|
|
622
|
+
constructor(o, h) {
|
|
623
|
+
super(), this.container = h;
|
|
624
624
|
const r = `container-query-observer-${Rt()}`, s = `data-${r}`;
|
|
625
625
|
o.setAttribute(s, "");
|
|
626
|
-
const
|
|
627
|
-
@property ${
|
|
626
|
+
const z = `--${r}`, y = `
|
|
627
|
+
@property ${z} {
|
|
628
628
|
syntax: '<custom-ident>';
|
|
629
629
|
inherits: false;
|
|
630
630
|
initial-value: --false;
|
|
631
631
|
}
|
|
632
|
-
`.trim(),
|
|
633
|
-
@container ${
|
|
632
|
+
`.trim(), f = `
|
|
633
|
+
@container ${h} {
|
|
634
634
|
[${s}] {
|
|
635
|
-
${
|
|
635
|
+
${z}: --true;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
`.trim(),
|
|
639
|
-
if (!(
|
|
640
|
-
throw console.error("root node of element isn't a ShadowRoot or Document",
|
|
641
|
-
const
|
|
642
|
-
if (
|
|
638
|
+
`.trim(), g = o.getRootNode();
|
|
639
|
+
if (!(g instanceof ShadowRoot) && !(g instanceof Document))
|
|
640
|
+
throw console.error("root node of element isn't a ShadowRoot or Document", g), new TypeError("Root node must be a ShadowRoot or Document");
|
|
641
|
+
const c = new CSSStyleSheet();
|
|
642
|
+
if (c.replaceSync(y), document.adoptedStyleSheets.push(c), g.ownerDocument === document) {
|
|
643
643
|
const k = new CSSStyleSheet();
|
|
644
|
-
k.replaceSync(
|
|
644
|
+
k.replaceSync(f), g.adoptedStyleSheets.push(k);
|
|
645
645
|
}
|
|
646
646
|
const S = getComputedStyle(o);
|
|
647
|
-
this.matches = S.getPropertyValue(
|
|
647
|
+
this.matches = S.getPropertyValue(z) === "--true", this.#e = o, this.#n(z, h, o);
|
|
648
648
|
}
|
|
649
|
-
#n(o,
|
|
649
|
+
#n(o, h, r) {
|
|
650
650
|
const s = {};
|
|
651
651
|
r.style.setProperty("transition", `${o} 0.001ms step-start`), r.style.setProperty("transition-behavior", "allow-discrete"), r.addEventListener(
|
|
652
652
|
"transitionrun",
|
|
653
|
-
(
|
|
654
|
-
if (r ===
|
|
655
|
-
const
|
|
656
|
-
if (x !== S && (
|
|
657
|
-
const C =
|
|
653
|
+
(f) => {
|
|
654
|
+
if (r === f.target) {
|
|
655
|
+
const g = getComputedStyle(r), c = {}, x = g.getPropertyValue(o), S = s[o];
|
|
656
|
+
if (x !== S && (c[o] = x, s[o] = x, o in c)) {
|
|
657
|
+
const C = c[o] === "--true";
|
|
658
658
|
this.matches = C;
|
|
659
|
-
const $ = new Lt("change",
|
|
659
|
+
const $ = new Lt("change", h, C);
|
|
660
660
|
this.dispatchEvent($);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
},
|
|
664
664
|
{ signal: this.#t.signal }
|
|
665
665
|
);
|
|
666
|
-
const
|
|
667
|
-
s[o] =
|
|
666
|
+
const y = getComputedStyle(r).getPropertyValue(o);
|
|
667
|
+
s[o] = y;
|
|
668
668
|
}
|
|
669
669
|
dispose() {
|
|
670
670
|
this.#e.style.removeProperty("transition"), this.#e.style.removeProperty("transition-behavior"), this.#t.abort();
|
|
@@ -673,19 +673,19 @@ class Et extends EventTarget {
|
|
|
673
673
|
typeof window < "u" && (HTMLElement.prototype.matchContainer || (HTMLElement.prototype.matchContainer = function(o) {
|
|
674
674
|
return new Et(this, o);
|
|
675
675
|
}));
|
|
676
|
-
function Nt(
|
|
677
|
-
const
|
|
676
|
+
function Nt(u, o) {
|
|
677
|
+
const h = Qe(
|
|
678
678
|
() => typeof document < "u" && typeof document.body.matchContainer == "function"
|
|
679
679
|
), r = te(), s = te(!1);
|
|
680
|
-
return
|
|
681
|
-
|
|
680
|
+
return Ae(() => {
|
|
681
|
+
h.value && (r.value?.dispose(), r.value = le(o)?.matchContainer(le(u)), s.value = !!r.value?.matches);
|
|
682
682
|
}), ve(() => {
|
|
683
683
|
r.value?.dispose();
|
|
684
|
-
}),
|
|
684
|
+
}), je(
|
|
685
685
|
r,
|
|
686
686
|
"change",
|
|
687
|
-
(
|
|
688
|
-
s.value =
|
|
687
|
+
(z) => {
|
|
688
|
+
s.value = z.matches;
|
|
689
689
|
},
|
|
690
690
|
{ passive: !0 }
|
|
691
691
|
), P(() => s.value);
|
|
@@ -695,30 +695,30 @@ const Tt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Bt
|
|
|
695
695
|
class: "divide-y divide-(--ui-border)"
|
|
696
696
|
}, Ut = /* @__PURE__ */ A({
|
|
697
697
|
__name: "queries",
|
|
698
|
-
setup(
|
|
699
|
-
const o = B(""),
|
|
700
|
-
let
|
|
698
|
+
setup(u) {
|
|
699
|
+
const o = B(""), h = Ue(), r = P(() => {
|
|
700
|
+
let c = h.value;
|
|
701
701
|
if (o.value) {
|
|
702
702
|
const x = o.value.toLowerCase();
|
|
703
|
-
|
|
703
|
+
c = c.filter((S) => S.key.some((C) => String(C).toLowerCase().includes(x)));
|
|
704
704
|
}
|
|
705
|
-
return
|
|
705
|
+
return c.sort((x, S) => S.devtools.updatedAt - x.devtools.updatedAt);
|
|
706
706
|
}), s = P(() => ({
|
|
707
707
|
loading: [],
|
|
708
708
|
fresh: [],
|
|
709
709
|
error: [],
|
|
710
710
|
pending: [],
|
|
711
|
-
inactive: r.value.filter((
|
|
712
|
-
...Object.groupBy(r.value, (
|
|
713
|
-
})),
|
|
714
|
-
function
|
|
715
|
-
|
|
711
|
+
inactive: r.value.filter((c) => !c.active),
|
|
712
|
+
...Object.groupBy(r.value, (c) => ge(c))
|
|
713
|
+
})), z = Fe("split-panes-container"), y = Nt("(width < 768px)", () => z.value?.$el), f = He("pc-devtools-query-list-panel-size", [30, 70]);
|
|
714
|
+
function g({ panes: c }) {
|
|
715
|
+
f.value = c.map((x) => x.size);
|
|
716
716
|
}
|
|
717
|
-
return (
|
|
717
|
+
return (c, x) => {
|
|
718
718
|
const S = Pt, k = wt, C = bt, $ = me("RouterView");
|
|
719
|
-
return
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
return _(), b("section", Tt, [
|
|
720
|
+
m("div", Bt, [
|
|
721
|
+
m("div", Ot, [
|
|
722
722
|
E(S, { class: "absolute left-2 top-1/2 -translate-y-1/2 text-ui-text-muted size-4" }),
|
|
723
723
|
E(k, {
|
|
724
724
|
modelValue: o.value,
|
|
@@ -728,23 +728,23 @@ const Tt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Bt
|
|
|
728
728
|
placeholder: "Search Queries"
|
|
729
729
|
}, null, 8, ["modelValue"])
|
|
730
730
|
]),
|
|
731
|
-
|
|
732
|
-
(
|
|
731
|
+
m("div", Dt, [
|
|
732
|
+
(_(!0), b(W, null, ne(s.value, (w, v) => (_(), b("div", {
|
|
733
733
|
key: v,
|
|
734
734
|
class: I(["theme-neutral bg-(--ui-bg-muted) rounded p-1 text-xs font-semibold flex items-center gap-x-1", (w?.length ?? 0) === 0 ? "text-(--ui-text-muted)" : ""]),
|
|
735
735
|
title: `${w?.length ?? 0} ${v} queries (after filtering)`
|
|
736
736
|
}, [
|
|
737
|
-
|
|
737
|
+
m("div", {
|
|
738
738
|
class: I(["rounded-full size-2", M(K)[v].base])
|
|
739
739
|
}, null, 2),
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
m("span", qt, ae(v), 1),
|
|
741
|
+
m("div", {
|
|
742
742
|
class: I([
|
|
743
743
|
"px-1.5 py-0.5 rounded min-w-[1.65em] flex justify-center",
|
|
744
744
|
(w?.length ?? 0) === 0 ? "bg-(--ui-bg-accented)" : [M(K)[v].base, M(K)[v].text]
|
|
745
745
|
])
|
|
746
746
|
}, [
|
|
747
|
-
|
|
747
|
+
m("span", null, ae(w?.length ?? 0), 1)
|
|
748
748
|
], 2)
|
|
749
749
|
], 10, Vt))), 128))
|
|
750
750
|
])
|
|
@@ -752,18 +752,18 @@ const Tt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Bt
|
|
|
752
752
|
E(M(Ct), {
|
|
753
753
|
ref: "split-panes-container",
|
|
754
754
|
class: "overflow-hidden",
|
|
755
|
-
horizontal: M(
|
|
756
|
-
onResized:
|
|
755
|
+
horizontal: M(y),
|
|
756
|
+
onResized: g
|
|
757
757
|
}, {
|
|
758
758
|
default: H(() => [
|
|
759
759
|
E(M(de), {
|
|
760
760
|
"min-size": "15",
|
|
761
|
-
size: M(
|
|
761
|
+
size: M(f)[0],
|
|
762
762
|
class: "flex flex-col"
|
|
763
763
|
}, {
|
|
764
764
|
default: H(() => [
|
|
765
|
-
|
|
766
|
-
(
|
|
765
|
+
m("ol", It, [
|
|
766
|
+
(_(!0), b(W, null, ne(r.value, (w) => (_(), b("li", {
|
|
767
767
|
key: w.keyHash
|
|
768
768
|
}, [
|
|
769
769
|
E(C, { entry: w }, null, 8, ["entry"])
|
|
@@ -774,7 +774,7 @@ const Tt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Bt
|
|
|
774
774
|
}, 8, ["size"]),
|
|
775
775
|
E(M(de), {
|
|
776
776
|
"min-size": "30",
|
|
777
|
-
size: M(
|
|
777
|
+
size: M(f)[1],
|
|
778
778
|
class: "flex flex-col"
|
|
779
779
|
}, {
|
|
780
780
|
default: H(() => [
|
|
@@ -792,4 +792,4 @@ const Tt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Bt
|
|
|
792
792
|
export {
|
|
793
793
|
Ut as default
|
|
794
794
|
};
|
|
795
|
-
//# sourceMappingURL=queries-
|
|
795
|
+
//# sourceMappingURL=queries-CLrIueL2.js.map
|