@pinia/colada-devtools 0.1.4 → 0.1.6
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 +267 -273
- package/dist/index.js.map +1 -1
- package/dist-panel/_queryId_-13o6pDV6.js +708 -0
- package/dist-panel/_queryId_-13o6pDV6.js.map +1 -0
- package/dist-panel/{index-D50XbbDk.js → index-BgTq8RHl.js} +906 -901
- package/dist-panel/index-BgTq8RHl.js.map +1 -0
- package/dist-panel/{index-B6c9Loor.js → index-DcKBZRe1.js} +3 -3
- package/dist-panel/{index-B6c9Loor.js.map → index-DcKBZRe1.js.map} +1 -1
- package/dist-panel/{index-DsbwSvSM.js → index-DgZ0YYsh.js} +2 -2
- package/dist-panel/{index-DsbwSvSM.js.map → index-DgZ0YYsh.js.map} +1 -1
- package/dist-panel/index.js +1 -1
- package/dist-panel/{loader-BxXz3POc.js → loader-Dx4_68Bp.js} +2 -2
- package/dist-panel/loader-Dx4_68Bp.js.map +1 -0
- package/dist-panel/{mouse-pointer-click--GgfMFjw.js → mouse-pointer-click-BeSJo9Pm.js} +2 -2
- package/dist-panel/mouse-pointer-click-BeSJo9Pm.js.map +1 -0
- package/dist-panel/{mutations-CNQGJZrN.js → mutations-4_Hc86Rz.js} +2 -2
- package/dist-panel/{mutations-CNQGJZrN.js.map → mutations-4_Hc86Rz.js.map} +1 -1
- package/dist-panel/queries-BWAwqUDO.js +795 -0
- package/dist-panel/{queries-CSBvC4-S.js.map → queries-BWAwqUDO.js.map} +1 -1
- package/dist-panel/{settings-Cl-hr-ie.js → settings-CAkjqhkP.js} +2 -2
- package/dist-panel/{settings-Cl-hr-ie.js.map → settings-CAkjqhkP.js.map} +1 -1
- package/dist-shared/index.d.ts +27 -0
- package/dist-shared/index.js +295 -65
- package/dist-shared/index.js.map +1 -1
- package/package.json +8 -8
- package/dist-panel/_queryId_-Bilvrtoo.js +0 -621
- package/dist-panel/_queryId_-Bilvrtoo.js.map +0 -1
- package/dist-panel/index-D50XbbDk.js.map +0 -1
- package/dist-panel/loader-BxXz3POc.js.map +0 -1
- package/dist-panel/mouse-pointer-click--GgfMFjw.js.map +0 -1
- package/dist-panel/queries-CSBvC4-S.js +0 -813
|
@@ -0,0 +1,795 @@
|
|
|
1
|
+
import { d as A, u as Ee, b as P, c as b, o as z, a as p, _ 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-BgTq8RHl.js";
|
|
2
|
+
import { _ as Je, a as Ke } from "./loader-Dx4_68Bp.js";
|
|
3
|
+
import { miniJsonParse as We } from "@pinia/colada-devtools/shared";
|
|
4
|
+
const Xe = {
|
|
5
|
+
class: "progress-bar",
|
|
6
|
+
"aria-hidden": ""
|
|
7
|
+
}, Ye = /* @__PURE__ */ A({
|
|
8
|
+
__name: "UCircleProgress.ce",
|
|
9
|
+
props: {
|
|
10
|
+
value: { type: Number },
|
|
11
|
+
min: { default: 0, type: Number },
|
|
12
|
+
max: { default: 100, type: Number },
|
|
13
|
+
strokeWidth: { default: 2, type: Number }
|
|
14
|
+
},
|
|
15
|
+
setup(m) {
|
|
16
|
+
Ee((f) => ({
|
|
17
|
+
dfc273d4: o.value,
|
|
18
|
+
b5e811ce: f.strokeWidth
|
|
19
|
+
}));
|
|
20
|
+
const o = P(() => Math.round((m.value - m.min) / (m.max - m.min) * 100));
|
|
21
|
+
return (f, r) => (z(), b("div", Xe, r[0] || (r[0] = [
|
|
22
|
+
p("svg", null, [
|
|
23
|
+
p("circle", { class: "bg" }),
|
|
24
|
+
p("circle", { class: "fg" })
|
|
25
|
+
], -1)
|
|
26
|
+
])));
|
|
27
|
+
}
|
|
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
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
width: "1.2em",
|
|
31
|
+
height: "1.2em"
|
|
32
|
+
};
|
|
33
|
+
function tt(m, o) {
|
|
34
|
+
return z(), b("svg", et, o[0] || (o[0] = [
|
|
35
|
+
p("g", {
|
|
36
|
+
fill: "none",
|
|
37
|
+
stroke: "currentColor",
|
|
38
|
+
"stroke-linecap": "round",
|
|
39
|
+
"stroke-linejoin": "round",
|
|
40
|
+
"stroke-width": "2"
|
|
41
|
+
}, [
|
|
42
|
+
p("circle", {
|
|
43
|
+
cx: "12",
|
|
44
|
+
cy: "12",
|
|
45
|
+
r: "10"
|
|
46
|
+
}),
|
|
47
|
+
p("path", { d: "m9 15l6-6" })
|
|
48
|
+
], -1)
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
const nt = Q({ name: "lucide-circle-slash", render: tt }), at = {
|
|
52
|
+
viewBox: "0 0 24 24",
|
|
53
|
+
width: "1.2em",
|
|
54
|
+
height: "1.2em"
|
|
55
|
+
};
|
|
56
|
+
function st(m, o) {
|
|
57
|
+
return z(), b("svg", at, o[0] || (o[0] = [
|
|
58
|
+
p("g", {
|
|
59
|
+
fill: "none",
|
|
60
|
+
stroke: "currentColor",
|
|
61
|
+
"stroke-linecap": "round",
|
|
62
|
+
"stroke-linejoin": "round",
|
|
63
|
+
"stroke-width": "2"
|
|
64
|
+
}, [
|
|
65
|
+
p("rect", {
|
|
66
|
+
width: "4",
|
|
67
|
+
height: "16",
|
|
68
|
+
x: "14",
|
|
69
|
+
y: "4",
|
|
70
|
+
rx: "1"
|
|
71
|
+
}),
|
|
72
|
+
p("rect", {
|
|
73
|
+
width: "4",
|
|
74
|
+
height: "16",
|
|
75
|
+
x: "6",
|
|
76
|
+
y: "4",
|
|
77
|
+
rx: "1"
|
|
78
|
+
})
|
|
79
|
+
], -1)
|
|
80
|
+
]));
|
|
81
|
+
}
|
|
82
|
+
const it = Q({ name: "lucide-pause", render: st }), ot = {
|
|
83
|
+
viewBox: "0 0 24 24",
|
|
84
|
+
width: "1.2em",
|
|
85
|
+
height: "1.2em"
|
|
86
|
+
};
|
|
87
|
+
function rt(m, o) {
|
|
88
|
+
return z(), b("svg", ot, o[0] || (o[0] = [
|
|
89
|
+
p("path", {
|
|
90
|
+
fill: "none",
|
|
91
|
+
stroke: "currentColor",
|
|
92
|
+
"stroke-linecap": "round",
|
|
93
|
+
"stroke-linejoin": "round",
|
|
94
|
+
"stroke-width": "2",
|
|
95
|
+
d: "M20 6L9 17l-5-5"
|
|
96
|
+
}, null, -1)
|
|
97
|
+
]));
|
|
98
|
+
}
|
|
99
|
+
const lt = Q({ name: "lucide-check", render: rt }), ut = {
|
|
100
|
+
viewBox: "0 0 24 24",
|
|
101
|
+
width: "1.2em",
|
|
102
|
+
height: "1.2em"
|
|
103
|
+
};
|
|
104
|
+
function ct(m, o) {
|
|
105
|
+
return z(), b("svg", ut, o[0] || (o[0] = [
|
|
106
|
+
p("path", {
|
|
107
|
+
fill: "none",
|
|
108
|
+
stroke: "currentColor",
|
|
109
|
+
"stroke-linecap": "round",
|
|
110
|
+
"stroke-linejoin": "round",
|
|
111
|
+
"stroke-width": "2",
|
|
112
|
+
d: "M18 6L7 17l-5-5m20-2l-7.5 7.5L13 16"
|
|
113
|
+
}, null, -1)
|
|
114
|
+
]));
|
|
115
|
+
}
|
|
116
|
+
const dt = Q({ name: "lucide-check-check", render: ct });
|
|
117
|
+
function ge(m) {
|
|
118
|
+
return m.asyncStatus === "loading" ? "loading" : m.state.status === "error" ? "error" : m.state.status === "pending" ? "pending" : m.stale ? "stale" : m.state.status === "success" ? "fresh" : "unknown";
|
|
119
|
+
}
|
|
120
|
+
const K = {
|
|
121
|
+
loading: {
|
|
122
|
+
base: "bg-purple-400",
|
|
123
|
+
clear: "bg-purple-200",
|
|
124
|
+
text: "text-purple-100"
|
|
125
|
+
},
|
|
126
|
+
fresh: {
|
|
127
|
+
base: "bg-success-500",
|
|
128
|
+
clear: "bg-success-200",
|
|
129
|
+
text: "text-success-100"
|
|
130
|
+
},
|
|
131
|
+
error: {
|
|
132
|
+
base: "bg-error-500",
|
|
133
|
+
clear: "bg-error-200",
|
|
134
|
+
text: "text-error-100"
|
|
135
|
+
},
|
|
136
|
+
stale: {
|
|
137
|
+
base: "bg-info-500",
|
|
138
|
+
clear: "bg-info-200",
|
|
139
|
+
text: "text-info-100"
|
|
140
|
+
},
|
|
141
|
+
pending: {
|
|
142
|
+
base: "bg-warning-500",
|
|
143
|
+
clear: "bg-warning-200",
|
|
144
|
+
text: "text-warning-100"
|
|
145
|
+
},
|
|
146
|
+
inactive: {
|
|
147
|
+
base: "bg-neutral-400",
|
|
148
|
+
clear: "bg-neutral-200",
|
|
149
|
+
text: "text-neutral-100"
|
|
150
|
+
},
|
|
151
|
+
unknown: {
|
|
152
|
+
base: "bg-gray-400",
|
|
153
|
+
clear: "bg-gray-200",
|
|
154
|
+
text: "text-gray-100"
|
|
155
|
+
}
|
|
156
|
+
}, ue = te(performance.timeOrigin + performance.now());
|
|
157
|
+
let F, ce = 0;
|
|
158
|
+
function vt() {
|
|
159
|
+
return F || (F = setInterval(() => {
|
|
160
|
+
ue.value = performance.timeOrigin + performance.now();
|
|
161
|
+
}, 50)), ce++, ve(() => {
|
|
162
|
+
--ce <= 0 && (clearInterval(F), F = void 0);
|
|
163
|
+
}), ue;
|
|
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" }, _t = {
|
|
166
|
+
key: 0,
|
|
167
|
+
"aria-hidden": "true"
|
|
168
|
+
}, xt = {
|
|
169
|
+
key: 0,
|
|
170
|
+
title: "This query is disabled"
|
|
171
|
+
}, zt = { class: "rounded bg-theme/70 theme-neutral p-0.5 text-xs flex gap-x-0.5 items-center" }, yt = {
|
|
172
|
+
key: 1,
|
|
173
|
+
title: "This query will be garbage collected"
|
|
174
|
+
}, bt = /* @__PURE__ */ A({
|
|
175
|
+
__name: "ListQueryEntry",
|
|
176
|
+
props: {
|
|
177
|
+
entry: {}
|
|
178
|
+
},
|
|
179
|
+
setup(m) {
|
|
180
|
+
const o = Te(), f = vt();
|
|
181
|
+
function r(c) {
|
|
182
|
+
c.preventDefault(), c.stopPropagation(), o.push("/queries");
|
|
183
|
+
}
|
|
184
|
+
const s = P(() => m.entry.key.map((c) => {
|
|
185
|
+
let g = c;
|
|
186
|
+
try {
|
|
187
|
+
g = typeof c == "string" ? JSON.parse(c) : c;
|
|
188
|
+
} catch {
|
|
189
|
+
}
|
|
190
|
+
return g && typeof g == "object" ? We(g) : String(g);
|
|
191
|
+
})), y = P(() => ge(m.entry));
|
|
192
|
+
return (c, g) => {
|
|
193
|
+
const _ = Je, u = dt, x = Ke, S = lt, k = it, C = nt, $ = Ge, w = me("RouterLink");
|
|
194
|
+
return z(), V(w, {
|
|
195
|
+
to: { name: "/queries/[queryId]", params: { queryId: c.entry.keyHash } },
|
|
196
|
+
custom: ""
|
|
197
|
+
}, {
|
|
198
|
+
default: H(({ isActive: v, navigate: O, href: D }) => [
|
|
199
|
+
p("div", {
|
|
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
|
+
v ? "bg-neutral-200 dark:bg-neutral-700" : "hover:bg-(--ui-bg-elevated)",
|
|
202
|
+
c.entry.active ? "" : "text-(--ui-text)/50"
|
|
203
|
+
]])
|
|
204
|
+
}, [
|
|
205
|
+
p("div", mt, [
|
|
206
|
+
p("div", {
|
|
207
|
+
class: I(["absolute -inset-1 right-0 flex items-center justify-center", M(K)[y.value].base]),
|
|
208
|
+
title: y.value
|
|
209
|
+
}, [
|
|
210
|
+
y.value === "loading" ? (z(), V(_, {
|
|
211
|
+
key: 0,
|
|
212
|
+
title: "Loading",
|
|
213
|
+
"aria-label": "Loading icon"
|
|
214
|
+
})) : y.value === "fresh" ? (z(), V(u, {
|
|
215
|
+
key: 1,
|
|
216
|
+
title: "Fresh successful data",
|
|
217
|
+
"aria-label": "Fresh successful data icon"
|
|
218
|
+
})) : y.value === "error" ? (z(), V(x, {
|
|
219
|
+
key: 2,
|
|
220
|
+
title: "Error",
|
|
221
|
+
"aria-label": "Error icon"
|
|
222
|
+
})) : y.value === "stale" ? (z(), V(S, {
|
|
223
|
+
key: 3,
|
|
224
|
+
title: "Stale",
|
|
225
|
+
"aria-label": "Stale icon"
|
|
226
|
+
})) : y.value === "pending" ? (z(), V(k, {
|
|
227
|
+
key: 4,
|
|
228
|
+
title: "Pending",
|
|
229
|
+
"aria-label": "Pending icon"
|
|
230
|
+
})) : G("", !0)
|
|
231
|
+
], 10, pt)
|
|
232
|
+
]),
|
|
233
|
+
p("a", {
|
|
234
|
+
href: D,
|
|
235
|
+
class: "hover:cursor-pointer block overflow-hidden",
|
|
236
|
+
title: c.entry.active ? "Active query" : "Inactive query",
|
|
237
|
+
onClick: (N) => v ? r(N) : O(N)
|
|
238
|
+
}, [
|
|
239
|
+
p("ol", ft, [
|
|
240
|
+
(z(!0), b(W, null, ne(s.value, (N, X) => (z(), b(W, { key: N }, [
|
|
241
|
+
p("li", gt, ae(N), 1),
|
|
242
|
+
X < s.value.length - 1 ? (z(), b("li", _t, "/")) : G("", !0)
|
|
243
|
+
], 64))), 128))
|
|
244
|
+
])
|
|
245
|
+
], 8, ht),
|
|
246
|
+
c.entry.options?.enabled === !1 ? (z(), b("div", xt, [
|
|
247
|
+
p("span", zt, [
|
|
248
|
+
E(C, { "aria-hidden": "" }),
|
|
249
|
+
g[0] || (g[0] = p("span", { class: "@max-md:hidden" }, "disabled", -1))
|
|
250
|
+
])
|
|
251
|
+
])) : !c.entry.active && c.entry.gcTimeout && c.entry.devtools.inactiveAt && typeof c.entry.options?.gcTime == "number" && Number.isFinite(c.entry.options.gcTime) && c.entry.options.gcTime <= 3e4 ? (z(), b("div", yt, [
|
|
252
|
+
E($, {
|
|
253
|
+
class: "size-[1em] dark:text-neutral-500 text-neutral-400",
|
|
254
|
+
max: c.entry.options.gcTime,
|
|
255
|
+
value: c.entry.devtools.inactiveAt + c.entry.options.gcTime - M(f)
|
|
256
|
+
}, null, 8, ["max", "value"])
|
|
257
|
+
])) : G("", !0)
|
|
258
|
+
], 2)
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
}, 8, ["to"]);
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
}), wt = /* @__PURE__ */ A({
|
|
265
|
+
__name: "UInput.ce",
|
|
266
|
+
props: {
|
|
267
|
+
modelValue: {},
|
|
268
|
+
modelModifiers: {}
|
|
269
|
+
},
|
|
270
|
+
emits: ["update:modelValue"],
|
|
271
|
+
setup(m) {
|
|
272
|
+
const o = Be(m, "modelValue");
|
|
273
|
+
return (f, r) => Oe((z(), b("input", {
|
|
274
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
|
|
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
|
+
placeholder: "Search Queries"
|
|
277
|
+
}, null, 512)), [
|
|
278
|
+
[De, o.value]
|
|
279
|
+
]);
|
|
280
|
+
}
|
|
281
|
+
}), St = {
|
|
282
|
+
viewBox: "0 0 24 24",
|
|
283
|
+
width: "1.2em",
|
|
284
|
+
height: "1.2em"
|
|
285
|
+
};
|
|
286
|
+
function kt(m, o) {
|
|
287
|
+
return z(), b("svg", St, o[0] || (o[0] = [
|
|
288
|
+
p("g", {
|
|
289
|
+
fill: "none",
|
|
290
|
+
stroke: "currentColor",
|
|
291
|
+
"stroke-linecap": "round",
|
|
292
|
+
"stroke-linejoin": "round",
|
|
293
|
+
"stroke-width": "2"
|
|
294
|
+
}, [
|
|
295
|
+
p("path", { d: "m21 21l-4.34-4.34" }),
|
|
296
|
+
p("circle", {
|
|
297
|
+
cx: "11",
|
|
298
|
+
cy: "11",
|
|
299
|
+
r: "8"
|
|
300
|
+
})
|
|
301
|
+
], -1)
|
|
302
|
+
]));
|
|
303
|
+
}
|
|
304
|
+
const Pt = Q({ name: "lucide-search", render: kt }), Ct = /* @__PURE__ */ A({
|
|
305
|
+
__name: "splitpanes",
|
|
306
|
+
props: {
|
|
307
|
+
horizontal: { type: Boolean, default: !1 },
|
|
308
|
+
pushOtherPanes: { type: Boolean, default: !0 },
|
|
309
|
+
maximizePanes: { type: Boolean, default: !0 },
|
|
310
|
+
// Maximize pane on splitter double click/tap.
|
|
311
|
+
rtl: { type: Boolean, default: !1 },
|
|
312
|
+
// Right to left direction.
|
|
313
|
+
firstSplitter: { type: Boolean, default: !1 }
|
|
314
|
+
},
|
|
315
|
+
emits: [
|
|
316
|
+
"ready",
|
|
317
|
+
"resize",
|
|
318
|
+
"resized",
|
|
319
|
+
"pane-click",
|
|
320
|
+
"pane-maximize",
|
|
321
|
+
"pane-add",
|
|
322
|
+
"pane-remove",
|
|
323
|
+
"splitter-click",
|
|
324
|
+
"splitter-dblclick"
|
|
325
|
+
],
|
|
326
|
+
setup(m, { emit: o }) {
|
|
327
|
+
const f = o, r = m;
|
|
328
|
+
Ve();
|
|
329
|
+
const s = B([]), y = P(
|
|
330
|
+
() => s.value.reduce((e, t) => (e[~~t.id] = t) && e, {})
|
|
331
|
+
), c = P(() => s.value.length), g = B(null), _ = B(!1), u = B({
|
|
332
|
+
mouseDown: !1,
|
|
333
|
+
dragging: !1,
|
|
334
|
+
activeSplitter: null,
|
|
335
|
+
cursorOffset: 0
|
|
336
|
+
// Cursor offset within the splitter.
|
|
337
|
+
}), x = B({
|
|
338
|
+
// Used to detect double click on touch devices.
|
|
339
|
+
splitter: null,
|
|
340
|
+
timeoutId: null
|
|
341
|
+
}), S = P(() => ({
|
|
342
|
+
[`splitpanes splitpanes--${r.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
343
|
+
"splitpanes--dragging": u.value.dragging
|
|
344
|
+
}));
|
|
345
|
+
let k = () => {
|
|
346
|
+
};
|
|
347
|
+
function C(e) {
|
|
348
|
+
e.addEventListener("mousemove", w, { passive: !1 }), e.addEventListener("mouseup", v), "ontouchstart" in window && (e.addEventListener("touchmove", w, { passive: !1 }), e.addEventListener("touchend", v)), k = () => {
|
|
349
|
+
e.removeEventListener("mousemove", w), e.removeEventListener("mouseup", v), "ontouchstart" in window && (e.removeEventListener("touchmove", w), e.removeEventListener("touchend", v)), k = () => {
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
const $ = (e, t) => {
|
|
354
|
+
const a = e.target.closest(".splitpanes__splitter");
|
|
355
|
+
if (a) {
|
|
356
|
+
const { left: n, top: i } = a.getBoundingClientRect(), { clientX: d, clientY: l } = "touches" in e ? e.touches[0] : e;
|
|
357
|
+
u.value.cursorOffset = r.horizontal ? l - i : d - n;
|
|
358
|
+
}
|
|
359
|
+
C(e.target.ownerDocument || document), u.value.mouseDown = !0, u.value.activeSplitter = t;
|
|
360
|
+
}, w = (e) => {
|
|
361
|
+
u.value.mouseDown && (e.preventDefault(), u.value.dragging = !0, requestAnimationFrame(() => {
|
|
362
|
+
xe(X(e)), L("resize", { event: e }, !0);
|
|
363
|
+
}));
|
|
364
|
+
}, v = (e) => {
|
|
365
|
+
u.value.dragging && L("resized", { event: e }, !0), u.value.mouseDown = !1, u.value.activeSplitter = null, setTimeout(() => {
|
|
366
|
+
u.value.dragging = !1, k();
|
|
367
|
+
}, 100);
|
|
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))), u.value.dragging || L("splitter-click", { event: e, index: t }, !0);
|
|
370
|
+
}, D = (e, t) => {
|
|
371
|
+
if (L("splitter-dblclick", { event: e, index: t }, !0), r.maximizePanes) {
|
|
372
|
+
let a = 0;
|
|
373
|
+
s.value = s.value.map((n, i) => (n.size = i === t ? n.max : n.min, i !== t && (a += n.min), n)), s.value[t].size -= a, L("pane-maximize", {
|
|
374
|
+
event: e,
|
|
375
|
+
index: t,
|
|
376
|
+
pane: s.value[t]
|
|
377
|
+
}), L("resized", { event: e, index: t }, !0);
|
|
378
|
+
}
|
|
379
|
+
}, N = (e, t) => {
|
|
380
|
+
L("pane-click", {
|
|
381
|
+
event: e,
|
|
382
|
+
index: y.value[t].index,
|
|
383
|
+
pane: y.value[t]
|
|
384
|
+
});
|
|
385
|
+
}, X = (e) => {
|
|
386
|
+
var t;
|
|
387
|
+
const a = (t = g.value) == null ? void 0 : t.getBoundingClientRect(), { clientX: n, clientY: i } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
388
|
+
return {
|
|
389
|
+
x: n - (r.horizontal ? 0 : u.value.cursorOffset) - a.left,
|
|
390
|
+
y: i - (r.horizontal ? u.value.cursorOffset : 0) - a.top
|
|
391
|
+
};
|
|
392
|
+
}, _e = (e) => {
|
|
393
|
+
e = e[r.horizontal ? "y" : "x"];
|
|
394
|
+
const t = g.value[r.horizontal ? "clientHeight" : "clientWidth"];
|
|
395
|
+
return r.rtl && !r.horizontal && (e = t - e), e * 100 / t;
|
|
396
|
+
}, xe = (e) => {
|
|
397
|
+
const t = u.value.activeSplitter;
|
|
398
|
+
let a = {
|
|
399
|
+
prevPanesSize: se(t),
|
|
400
|
+
nextPanesSize: j(t),
|
|
401
|
+
prevReachedMinPanes: 0,
|
|
402
|
+
nextReachedMinPanes: 0
|
|
403
|
+
};
|
|
404
|
+
const n = 0 + (r.pushOtherPanes ? 0 : a.prevPanesSize), i = 100 - (r.pushOtherPanes ? 0 : a.nextPanesSize), d = Math.max(Math.min(_e(e), i), n);
|
|
405
|
+
let l = [t, t + 1], h = s.value[l[0]], R = s.value[l[1]];
|
|
406
|
+
if (!h || !R) return;
|
|
407
|
+
const oe = h.max < 100 && d >= h.max + a.prevPanesSize, Le = R.max < 100 && d <= 100 - (R.max + j(t + 1));
|
|
408
|
+
if (oe || Le) {
|
|
409
|
+
oe ? (h.size = h.max, R.size = Math.max(100 - h.max - a.prevPanesSize - a.nextPanesSize, 0)) : (h.size = Math.max(
|
|
410
|
+
100 - R.max - a.prevPanesSize - j(t + 1),
|
|
411
|
+
0
|
|
412
|
+
), R.size = R.max);
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
if (r.pushOtherPanes) {
|
|
416
|
+
const re = ze(a, d);
|
|
417
|
+
if (!re) return;
|
|
418
|
+
({ sums: a, panesToResize: l } = re), h = s.value[l[0]], R = s.value[l[1]];
|
|
419
|
+
}
|
|
420
|
+
h && (h.size = Math.min(
|
|
421
|
+
Math.max(d - a.prevPanesSize - a.prevReachedMinPanes, h.min),
|
|
422
|
+
h.max
|
|
423
|
+
)), R && (R.size = Math.min(
|
|
424
|
+
Math.max(100 - d - a.nextPanesSize - a.nextReachedMinPanes, R.min),
|
|
425
|
+
R.max
|
|
426
|
+
));
|
|
427
|
+
}, ze = (e, t) => {
|
|
428
|
+
const a = u.value.activeSplitter, n = [a, a + 1];
|
|
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, h) => {
|
|
431
|
+
h > n[0] && h <= 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, h) => {
|
|
433
|
+
h > 0 && h <= 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, h) => {
|
|
435
|
+
h > a && h < 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, h) => {
|
|
437
|
+
h < c.value - 1 && h >= a + 1 && (l.size = l.min, e.nextReachedMinPanes += l.min);
|
|
438
|
+
}), s.value[n[0]].size = 100 - e.prevPanesSize - j(n[0] - 1), null) : { sums: e, panesToResize: n };
|
|
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
|
+
var e;
|
|
441
|
+
const t = Array.from(((e = g.value) == null ? void 0 : e.children) || []);
|
|
442
|
+
for (const a of t) {
|
|
443
|
+
const n = a.classList.contains("splitpanes__pane"), i = a.classList.contains("splitpanes__splitter");
|
|
444
|
+
!n && !i && (a.remove(), console.warn(
|
|
445
|
+
"Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."
|
|
446
|
+
));
|
|
447
|
+
}
|
|
448
|
+
}, ie = (e, t, a = !1) => {
|
|
449
|
+
const n = e - 1, i = document.createElement("div");
|
|
450
|
+
i.classList.add("splitpanes__splitter"), a || (i.onmousedown = (d) => $(d, n), typeof window < "u" && "ontouchstart" in window && (i.ontouchstart = (d) => $(d, n)), i.onclick = (d) => O(d, n + 1)), i.ondblclick = (d) => D(d, n + 1), t.parentNode.insertBefore(i, t);
|
|
451
|
+
}, Se = (e) => {
|
|
452
|
+
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
453
|
+
}, U = () => {
|
|
454
|
+
var e;
|
|
455
|
+
const t = Array.from(((e = g.value) == null ? void 0 : e.children) || []);
|
|
456
|
+
for (const n of t)
|
|
457
|
+
n.className.includes("splitpanes__splitter") && Se(n);
|
|
458
|
+
let a = 0;
|
|
459
|
+
for (const n of t)
|
|
460
|
+
n.className.includes("splitpanes__pane") && (!a && r.firstSplitter ? ie(a, n, !0) : a && ie(a, n), a++);
|
|
461
|
+
}, ke = ({ uid: e, ...t }) => {
|
|
462
|
+
const a = y.value[e];
|
|
463
|
+
for (const [n, i] of Object.entries(t)) a[n] = i;
|
|
464
|
+
}, Pe = (e) => {
|
|
465
|
+
var t;
|
|
466
|
+
let a = -1;
|
|
467
|
+
Array.from(((t = g.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), _.value && ee(() => {
|
|
468
|
+
U(), Y({ addedPane: s.value[a] }), L("pane-add", { pane: s.value[a] });
|
|
469
|
+
});
|
|
470
|
+
}, Ce = (e) => {
|
|
471
|
+
const t = s.value.findIndex((n) => n.id === e);
|
|
472
|
+
s.value[t].el = null;
|
|
473
|
+
const a = s.value.splice(t, 1)[0];
|
|
474
|
+
s.value.forEach((n, i) => n.index = i), ee(() => {
|
|
475
|
+
U(), L("pane-remove", { pane: a }), Y({ removedPane: { ...a } });
|
|
476
|
+
});
|
|
477
|
+
}, Y = (e = {}) => {
|
|
478
|
+
!e.addedPane && !e.removedPane ? $e() : s.value.some((t) => t.givenSize !== null || t.min || t.max < 100) ? Re(e) : Me(), _.value && L("resized");
|
|
479
|
+
}, Me = () => {
|
|
480
|
+
const e = 100 / c.value;
|
|
481
|
+
let t = 0;
|
|
482
|
+
const a = [], n = [];
|
|
483
|
+
for (const i of s.value)
|
|
484
|
+
i.size = Math.max(Math.min(e, i.max), i.min), t -= i.size, i.size >= i.max && a.push(i.id), i.size <= i.min && n.push(i.id);
|
|
485
|
+
t > 0.1 && Z(t, a, n);
|
|
486
|
+
}, $e = () => {
|
|
487
|
+
let e = 100;
|
|
488
|
+
const t = [], a = [];
|
|
489
|
+
let n = 0;
|
|
490
|
+
for (const d of s.value)
|
|
491
|
+
e -= d.size, d.givenSize !== null && n++, d.size >= d.max && t.push(d.id), d.size <= d.min && a.push(d.id);
|
|
492
|
+
let i = 100;
|
|
493
|
+
if (e > 0.1) {
|
|
494
|
+
for (const d of s.value)
|
|
495
|
+
d.givenSize === null && (d.size = Math.max(
|
|
496
|
+
Math.min(e / (c.value - n), d.max),
|
|
497
|
+
d.min
|
|
498
|
+
)), i -= d.size;
|
|
499
|
+
i > 0.1 && Z(i, t, a);
|
|
500
|
+
}
|
|
501
|
+
}, Re = ({ addedPane: e, removedPane: t } = {}) => {
|
|
502
|
+
let a = 100 / c.value, n = 0;
|
|
503
|
+
const i = [], d = [];
|
|
504
|
+
(e?.givenSize ?? null) !== null && (a = (100 - e.givenSize) / (c.value - 1));
|
|
505
|
+
for (const l of s.value)
|
|
506
|
+
n -= l.size, l.size >= l.max && i.push(l.id), l.size <= l.min && d.push(l.id);
|
|
507
|
+
if (!(Math.abs(n) < 0.1)) {
|
|
508
|
+
for (const l of s.value)
|
|
509
|
+
e?.givenSize !== null && e?.id === l.id || (l.size = Math.max(Math.min(a, l.max), l.min)), n -= l.size, l.size >= l.max && i.push(l.id), l.size <= l.min && d.push(l.id);
|
|
510
|
+
n > 0.1 && Z(n, i, d);
|
|
511
|
+
}
|
|
512
|
+
}, Z = (e, t, a) => {
|
|
513
|
+
let n;
|
|
514
|
+
e > 0 ? n = e / (c.value - t.length) : n = e / (c.value - a.length), s.value.forEach((i, d) => {
|
|
515
|
+
if (e > 0 && !t.includes(i.id)) {
|
|
516
|
+
const l = Math.max(Math.min(i.size + n, i.max), i.min), h = l - i.size;
|
|
517
|
+
e -= h, i.size = l;
|
|
518
|
+
} else if (!a.includes(i.id)) {
|
|
519
|
+
const l = Math.max(Math.min(i.size + n, i.max), i.min), h = l - i.size;
|
|
520
|
+
e -= h, i.size = l;
|
|
521
|
+
}
|
|
522
|
+
}), Math.abs(e) > 0.1 && ee(() => {
|
|
523
|
+
_.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
524
|
+
});
|
|
525
|
+
}, L = (e, t = void 0, a = !1) => {
|
|
526
|
+
const n = t?.index ?? u.value.activeSplitter ?? null;
|
|
527
|
+
f(e, {
|
|
528
|
+
...t,
|
|
529
|
+
...n !== null && { index: n },
|
|
530
|
+
...a && n !== null && {
|
|
531
|
+
prevPane: s.value[n - (r.firstSplitter ? 1 : 0)],
|
|
532
|
+
nextPane: s.value[n + (r.firstSplitter ? 0 : 1)]
|
|
533
|
+
},
|
|
534
|
+
panes: s.value.map((i) => ({
|
|
535
|
+
min: i.min,
|
|
536
|
+
max: i.max,
|
|
537
|
+
size: i.size
|
|
538
|
+
}))
|
|
539
|
+
});
|
|
540
|
+
};
|
|
541
|
+
return J(
|
|
542
|
+
() => r.firstSplitter,
|
|
543
|
+
() => U()
|
|
544
|
+
), pe(() => {
|
|
545
|
+
we(), U(), Y(), L("ready"), _.value = !0;
|
|
546
|
+
}), he(() => _.value = !1), T("panes", s), T("indexedPanes", y), T(
|
|
547
|
+
"horizontal",
|
|
548
|
+
P(() => r.horizontal)
|
|
549
|
+
), T("requestUpdate", ke), T("onPaneAdd", Pe), T("onPaneRemove", Ce), T("onPaneClick", N), (e, t) => (z(), b("div", {
|
|
550
|
+
class: I(S.value),
|
|
551
|
+
ref_key: "containerEl",
|
|
552
|
+
ref: g
|
|
553
|
+
}, [
|
|
554
|
+
fe(e.$slots, "default")
|
|
555
|
+
], 2));
|
|
556
|
+
}
|
|
557
|
+
}), de = /* @__PURE__ */ A({
|
|
558
|
+
__name: "pane",
|
|
559
|
+
props: {
|
|
560
|
+
size: { type: [Number, String] },
|
|
561
|
+
minSize: { type: [Number, String], default: 0 },
|
|
562
|
+
maxSize: { type: [Number, String], default: 100 }
|
|
563
|
+
},
|
|
564
|
+
setup(m) {
|
|
565
|
+
var o;
|
|
566
|
+
const f = m, r = q("requestUpdate"), s = q("onPaneAdd"), y = q("horizontal"), c = q("onPaneRemove"), g = q("onPaneClick"), _ = (o = qe()) == null ? void 0 : o.uid, u = q("indexedPanes"), x = P(() => u.value[_]), S = B(null), k = P(() => {
|
|
567
|
+
const v = isNaN(f.size) || f.size === void 0 ? 0 : parseFloat(f.size);
|
|
568
|
+
return Math.max(Math.min(v, $.value), C.value);
|
|
569
|
+
}), C = P(() => {
|
|
570
|
+
const v = parseFloat(f.minSize);
|
|
571
|
+
return isNaN(v) ? 0 : v;
|
|
572
|
+
}), $ = P(() => {
|
|
573
|
+
const v = parseFloat(f.maxSize);
|
|
574
|
+
return isNaN(v) ? 100 : v;
|
|
575
|
+
}), w = P(() => {
|
|
576
|
+
var v;
|
|
577
|
+
return `${y.value ? "height" : "width"}: ${(v = x.value) == null ? void 0 : v.size}%`;
|
|
578
|
+
});
|
|
579
|
+
return J(
|
|
580
|
+
() => k.value,
|
|
581
|
+
(v) => r({ uid: _, size: v })
|
|
582
|
+
), J(
|
|
583
|
+
() => C.value,
|
|
584
|
+
(v) => r({ uid: _, min: v })
|
|
585
|
+
), J(
|
|
586
|
+
() => $.value,
|
|
587
|
+
(v) => r({ uid: _, max: v })
|
|
588
|
+
), pe(() => {
|
|
589
|
+
s({
|
|
590
|
+
id: _,
|
|
591
|
+
el: S.value,
|
|
592
|
+
min: C.value,
|
|
593
|
+
max: $.value,
|
|
594
|
+
// The given size (useful to know the user intention).
|
|
595
|
+
givenSize: f.size === void 0 ? null : k.value,
|
|
596
|
+
size: k.value
|
|
597
|
+
// The computed current size at any time.
|
|
598
|
+
});
|
|
599
|
+
}), he(() => c(_)), (v, O) => (z(), b("div", {
|
|
600
|
+
ref_key: "paneEl",
|
|
601
|
+
ref: S,
|
|
602
|
+
class: "splitpanes__pane",
|
|
603
|
+
onClick: O[0] || (O[0] = (D) => M(g)(D, M(_))),
|
|
604
|
+
style: Ie(w.value)
|
|
605
|
+
}, [
|
|
606
|
+
fe(v.$slots, "default")
|
|
607
|
+
], 4));
|
|
608
|
+
}
|
|
609
|
+
}), Mt = "bae45330cd3d4e0e96b60d26b57009b5";
|
|
610
|
+
let $t = 0;
|
|
611
|
+
const Rt = () => `${Mt}-${Date.now()}-${$t++}`;
|
|
612
|
+
class Lt extends Event {
|
|
613
|
+
constructor(o, f, r) {
|
|
614
|
+
super(o), this.container = f, this.matches = r;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
class Et extends EventTarget {
|
|
618
|
+
#e;
|
|
619
|
+
#t = new AbortController();
|
|
620
|
+
container;
|
|
621
|
+
matches;
|
|
622
|
+
constructor(o, f) {
|
|
623
|
+
super(), this.container = f;
|
|
624
|
+
const r = `container-query-observer-${Rt()}`, s = `data-${r}`;
|
|
625
|
+
o.setAttribute(s, "");
|
|
626
|
+
const y = `--${r}`, c = `
|
|
627
|
+
@property ${y} {
|
|
628
|
+
syntax: '<custom-ident>';
|
|
629
|
+
inherits: false;
|
|
630
|
+
initial-value: --false;
|
|
631
|
+
}
|
|
632
|
+
`.trim(), g = `
|
|
633
|
+
@container ${f} {
|
|
634
|
+
[${s}] {
|
|
635
|
+
${y}: --true;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
`.trim(), _ = o.getRootNode();
|
|
639
|
+
if (!(_ instanceof ShadowRoot) && !(_ instanceof Document))
|
|
640
|
+
throw console.error("root node of element isn't a ShadowRoot or Document", _), new TypeError("Root node must be a ShadowRoot or Document");
|
|
641
|
+
const u = new CSSStyleSheet();
|
|
642
|
+
if (u.replaceSync(c), document.adoptedStyleSheets.push(u), _.ownerDocument === document) {
|
|
643
|
+
const k = new CSSStyleSheet();
|
|
644
|
+
k.replaceSync(g), _.adoptedStyleSheets.push(k);
|
|
645
|
+
}
|
|
646
|
+
const S = getComputedStyle(o);
|
|
647
|
+
this.matches = S.getPropertyValue(y) === "--true", this.#e = o, this.#n(y, f, o);
|
|
648
|
+
}
|
|
649
|
+
#n(o, f, r) {
|
|
650
|
+
const s = {};
|
|
651
|
+
r.style.setProperty("transition", `${o} 0.001ms step-start`), r.style.setProperty("transition-behavior", "allow-discrete"), r.addEventListener(
|
|
652
|
+
"transitionrun",
|
|
653
|
+
(g) => {
|
|
654
|
+
if (r === g.target) {
|
|
655
|
+
const _ = getComputedStyle(r), u = {}, x = _.getPropertyValue(o), S = s[o];
|
|
656
|
+
if (x !== S && (u[o] = x, s[o] = x, o in u)) {
|
|
657
|
+
const C = u[o] === "--true";
|
|
658
|
+
this.matches = C;
|
|
659
|
+
const $ = new Lt("change", f, C);
|
|
660
|
+
this.dispatchEvent($);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{ signal: this.#t.signal }
|
|
665
|
+
);
|
|
666
|
+
const c = getComputedStyle(r).getPropertyValue(o);
|
|
667
|
+
s[o] = c;
|
|
668
|
+
}
|
|
669
|
+
dispose() {
|
|
670
|
+
this.#e.style.removeProperty("transition"), this.#e.style.removeProperty("transition-behavior"), this.#t.abort();
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
typeof window < "u" && (HTMLElement.prototype.matchContainer || (HTMLElement.prototype.matchContainer = function(o) {
|
|
674
|
+
return new Et(this, o);
|
|
675
|
+
}));
|
|
676
|
+
function Nt(m, o) {
|
|
677
|
+
const f = Ae(
|
|
678
|
+
() => typeof document < "u" && typeof document.body.matchContainer == "function"
|
|
679
|
+
), r = te(), s = te(!1);
|
|
680
|
+
return je(() => {
|
|
681
|
+
f.value && (r.value?.dispose(), r.value = le(o)?.matchContainer(le(m)), s.value = !!r.value?.matches);
|
|
682
|
+
}), ve(() => {
|
|
683
|
+
r.value?.dispose();
|
|
684
|
+
}), Qe(
|
|
685
|
+
r,
|
|
686
|
+
"change",
|
|
687
|
+
(y) => {
|
|
688
|
+
s.value = y.matches;
|
|
689
|
+
},
|
|
690
|
+
{ passive: !0 }
|
|
691
|
+
), P(() => s.value);
|
|
692
|
+
}
|
|
693
|
+
const Tt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Bt = { class: "flex items-center p-2 border-b border-(--ui-border) gap-2" }, Ot = { class: "relative flex-grow" }, Dt = { class: "flex gap-x-1" }, Vt = ["title"], qt = { class: "@max-[750px]:hidden" }, It = {
|
|
694
|
+
role: "list",
|
|
695
|
+
class: "divide-y divide-(--ui-border)"
|
|
696
|
+
}, Ut = /* @__PURE__ */ A({
|
|
697
|
+
__name: "queries",
|
|
698
|
+
setup(m) {
|
|
699
|
+
const o = B(""), f = Ue(), r = P(() => {
|
|
700
|
+
let u = f.value;
|
|
701
|
+
if (o.value) {
|
|
702
|
+
const x = o.value.toLowerCase();
|
|
703
|
+
u = u.filter((S) => S.key.some((C) => String(C).toLowerCase().includes(x)));
|
|
704
|
+
}
|
|
705
|
+
return u.sort((x, S) => S.devtools.updatedAt - x.devtools.updatedAt);
|
|
706
|
+
}), s = P(() => ({
|
|
707
|
+
loading: [],
|
|
708
|
+
fresh: [],
|
|
709
|
+
error: [],
|
|
710
|
+
pending: [],
|
|
711
|
+
inactive: r.value.filter((u) => !u.active),
|
|
712
|
+
...Object.groupBy(r.value, (u) => ge(u))
|
|
713
|
+
})), y = Fe("split-panes-container"), c = Nt("(width < 768px)", () => y.value?.$el), g = He("pc-devtools-query-list-panel-size", [30, 70]);
|
|
714
|
+
function _({ panes: u }) {
|
|
715
|
+
g.value = u.map((x) => x.size);
|
|
716
|
+
}
|
|
717
|
+
return (u, x) => {
|
|
718
|
+
const S = Pt, k = wt, C = bt, $ = me("RouterView");
|
|
719
|
+
return z(), b("section", Tt, [
|
|
720
|
+
p("div", Bt, [
|
|
721
|
+
p("div", Ot, [
|
|
722
|
+
E(S, { class: "absolute left-2 top-1/2 -translate-y-1/2 text-ui-text-muted size-4" }),
|
|
723
|
+
E(k, {
|
|
724
|
+
modelValue: o.value,
|
|
725
|
+
"onUpdate:modelValue": x[0] || (x[0] = (w) => o.value = w),
|
|
726
|
+
type: "search",
|
|
727
|
+
class: "w-full",
|
|
728
|
+
placeholder: "Search Queries"
|
|
729
|
+
}, null, 8, ["modelValue"])
|
|
730
|
+
]),
|
|
731
|
+
p("div", Dt, [
|
|
732
|
+
(z(!0), b(W, null, ne(s.value, (w, v) => (z(), b("div", {
|
|
733
|
+
key: v,
|
|
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
|
+
title: `${w?.length ?? 0} ${v} queries (after filtering)`
|
|
736
|
+
}, [
|
|
737
|
+
p("div", {
|
|
738
|
+
class: I(["rounded-full size-2", M(K)[v].base])
|
|
739
|
+
}, null, 2),
|
|
740
|
+
p("span", qt, ae(v), 1),
|
|
741
|
+
p("div", {
|
|
742
|
+
class: I([
|
|
743
|
+
"px-1.5 py-0.5 rounded min-w-[1.65em] flex justify-center",
|
|
744
|
+
(w?.length ?? 0) === 0 ? "bg-(--ui-bg-accented)" : [M(K)[v].base, M(K)[v].text]
|
|
745
|
+
])
|
|
746
|
+
}, [
|
|
747
|
+
p("span", null, ae(w?.length ?? 0), 1)
|
|
748
|
+
], 2)
|
|
749
|
+
], 10, Vt))), 128))
|
|
750
|
+
])
|
|
751
|
+
]),
|
|
752
|
+
E(M(Ct), {
|
|
753
|
+
ref: "split-panes-container",
|
|
754
|
+
class: "overflow-hidden",
|
|
755
|
+
horizontal: M(c),
|
|
756
|
+
onResized: _
|
|
757
|
+
}, {
|
|
758
|
+
default: H(() => [
|
|
759
|
+
E(M(de), {
|
|
760
|
+
"min-size": "15",
|
|
761
|
+
size: M(g)[0],
|
|
762
|
+
class: "flex flex-col"
|
|
763
|
+
}, {
|
|
764
|
+
default: H(() => [
|
|
765
|
+
p("ol", It, [
|
|
766
|
+
(z(!0), b(W, null, ne(r.value, (w) => (z(), b("li", {
|
|
767
|
+
key: w.keyHash
|
|
768
|
+
}, [
|
|
769
|
+
E(C, { entry: w }, null, 8, ["entry"])
|
|
770
|
+
]))), 128))
|
|
771
|
+
])
|
|
772
|
+
]),
|
|
773
|
+
_: 1
|
|
774
|
+
}, 8, ["size"]),
|
|
775
|
+
E(M(de), {
|
|
776
|
+
"min-size": "30",
|
|
777
|
+
size: M(g)[1],
|
|
778
|
+
class: "flex flex-col"
|
|
779
|
+
}, {
|
|
780
|
+
default: H(() => [
|
|
781
|
+
E($)
|
|
782
|
+
]),
|
|
783
|
+
_: 1
|
|
784
|
+
}, 8, ["size"])
|
|
785
|
+
]),
|
|
786
|
+
_: 1
|
|
787
|
+
}, 8, ["horizontal"])
|
|
788
|
+
]);
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
export {
|
|
793
|
+
Ut as default
|
|
794
|
+
};
|
|
795
|
+
//# sourceMappingURL=queries-BWAwqUDO.js.map
|