@pinia/colada-devtools 0.0.1 → 0.0.2
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 +353 -254
- package/dist/index.js.map +1 -1
- package/dist-panel/{_queryId_-hQFnZzX2.js → _queryId_-dahx0N-a.js} +16 -16
- package/dist-panel/{_queryId_-hQFnZzX2.js.map → _queryId_-dahx0N-a.js.map} +1 -1
- package/dist-panel/{index-BVvWMadg.js → index-BkrEntNA.js} +3 -3
- package/dist-panel/{index-BVvWMadg.js.map → index-BkrEntNA.js.map} +1 -1
- package/dist-panel/{index-B2dJ1q6y.js → index-BoUh47CR.js} +2 -2
- package/dist-panel/{index-B2dJ1q6y.js.map → index-BoUh47CR.js.map} +1 -1
- package/dist-panel/{index-DfIXa7Jb.js → index-Covr4drg.js} +693 -713
- package/dist-panel/{index-DfIXa7Jb.js.map → index-Covr4drg.js.map} +1 -1
- package/dist-panel/index.js +1 -1
- package/dist-panel/{loader-B7hpsxwv.js → loader-CuAz6irK.js} +2 -2
- package/dist-panel/loader-CuAz6irK.js.map +1 -0
- package/dist-panel/{mouse-pointer-click-C8Q9Aulw.js → mouse-pointer-click-BRg0nGpd.js} +2 -2
- package/dist-panel/mouse-pointer-click-BRg0nGpd.js.map +1 -0
- package/dist-panel/{mutations-DqlFNONQ.js → mutations-ComK9mEg.js} +2 -2
- package/dist-panel/{mutations-DqlFNONQ.js.map → mutations-ComK9mEg.js.map} +1 -1
- package/dist-panel/{queries-DPJvb6qB.js → queries-C8H8bbDX.js} +85 -88
- package/dist-panel/{queries-DPJvb6qB.js.map → queries-C8H8bbDX.js.map} +1 -1
- package/dist-panel/{settings-DiWRvbPR.js → settings-DoijmHf7.js} +2 -2
- package/dist-panel/{settings-DiWRvbPR.js.map → settings-DoijmHf7.js.map} +1 -1
- package/dist-shared/index.d.ts +0 -15
- package/dist-shared/index.js +51 -152
- package/dist-shared/index.js.map +1 -1
- package/package.json +2 -2
- package/dist-panel/loader-B7hpsxwv.js.map +0 -1
- package/dist-panel/mouse-pointer-click-C8Q9Aulw.js.map +0 -1
package/dist-panel/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as o, c as n, o as t, a as r } from "./index-
|
|
1
|
+
import { m as o, c as n, o as t, a as r } from "./index-Covr4drg.js";
|
|
2
2
|
const i = {
|
|
3
3
|
viewBox: "0 0 24 24",
|
|
4
4
|
width: "1.2em",
|
|
@@ -38,4 +38,4 @@ export {
|
|
|
38
38
|
u as _,
|
|
39
39
|
m as a
|
|
40
40
|
};
|
|
41
|
-
//# sourceMappingURL=loader-
|
|
41
|
+
//# sourceMappingURL=loader-CuAz6irK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader-CuAz6irK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as o, c as n, o as t, a as r } from "./index-
|
|
1
|
+
import { m as o, c as n, o as t, a as r } from "./index-Covr4drg.js";
|
|
2
2
|
const l = {
|
|
3
3
|
viewBox: "0 0 24 24",
|
|
4
4
|
width: "1.2em",
|
|
@@ -20,4 +20,4 @@ const c = o({ name: "lucide-mouse-pointer-click", render: a });
|
|
|
20
20
|
export {
|
|
21
21
|
c as _
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=mouse-pointer-click-
|
|
23
|
+
//# sourceMappingURL=mouse-pointer-click-BRg0nGpd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouse-pointer-click-BRg0nGpd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as t, c as e, o as n, a as s } from "./index-
|
|
1
|
+
import { _ as t, c as e, o as n, a as s } from "./index-Covr4drg.js";
|
|
2
2
|
const a = {}, r = { class: "p-2" };
|
|
3
3
|
function c(l, o) {
|
|
4
4
|
return n(), e("section", r, o[0] || (o[0] = [
|
|
@@ -10,4 +10,4 @@ const f = /* @__PURE__ */ t(a, [["render", c]]);
|
|
|
10
10
|
export {
|
|
11
11
|
f as default
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=mutations-
|
|
13
|
+
//# sourceMappingURL=mutations-ComK9mEg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations-
|
|
1
|
+
{"version":3,"file":"mutations-ComK9mEg.js","sources":["../src/panel/pages/mutations.vue"],"sourcesContent":["<template>\n <section class=\"p-2\">\n <h2 class=\"font-extrabold text-2xl\">Mutations</h2>\n\n <p class=\"my-2 font-mono\">🚧 Work in progress 🏗️</p>\n </section>\n</template>\n"],"names":["_hoisted_1","_openBlock","_createElementBlock","_cache","_createElementVNode"],"mappings":";cACWA,IAAA,EAAA,OAAM,MAAK;;AAApB,SAAAC,EAAA,GAAAC,EAIU,WAJVF,GAIUG,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,IAHRC,EAAkD,MAA9C,EAAA,OAAM,6BAA0B,aAAS,EAAA;AAAA,IAE7CA,EAAqD,KAAlD,EAAA,OAAM,oBAAiB,2BAAuB,EAAA;AAAA;;;"}
|
|
@@ -5,13 +5,13 @@ var ge = (r) => {
|
|
|
5
5
|
var Fe = (r, o, l) => o in r ? Ue(r, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[o] = l;
|
|
6
6
|
var oe = (r, o, l) => Fe(r, typeof o != "symbol" ? o + "" : o, l), re = (r, o, l) => o.has(r) || ge("Cannot " + l);
|
|
7
7
|
var F = (r, o, l) => (re(r, o, "read from private field"), l ? l.call(r) : o.get(r)), X = (r, o, l) => o.has(r) ? ge("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(r) : o.set(r, l), _e = (r, o, l, u) => (re(r, o, "write to private field"), u ? u.call(r, l) : o.set(r, l), l), xe = (r, o, l) => (re(r, o, "access private method"), l);
|
|
8
|
-
import { d as Q, u as He, b as C, c as w, o as y, a as f, _ as qe, m as q, s as ce, e as Se, f as Je, r as ke, g as V, w as Z, h as le, n as A, i as $, F as te, j as de, t as ve, k as E, l as Ke, p as We, v as Xe, q as I, x as Ye, y as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { miniJsonParse as
|
|
11
|
-
const
|
|
8
|
+
import { d as Q, u as He, b as C, c as w, o as y, a as f, _ as qe, m as q, s as ce, e as Se, f as Je, r as ke, g as V, w as Z, h as le, n as A, i as $, F as te, j as de, t as ve, k as E, l as Ke, p as We, v as Xe, q as I, x as Ye, y as N, z as G, A as Pe, B as Ce, C as Me, D as Ze, E as Ge, G as T, H as ue, I as et, J as tt, K as nt, L as ze, M as at, N as st } from "./index-Covr4drg.js";
|
|
9
|
+
import { _ as it, a as ot } from "./loader-CuAz6irK.js";
|
|
10
|
+
import { miniJsonParse as rt } from "@pinia/colada-devtools/shared";
|
|
11
|
+
const lt = {
|
|
12
12
|
class: "progress-bar",
|
|
13
13
|
"aria-hidden": ""
|
|
14
|
-
},
|
|
14
|
+
}, ut = /* @__PURE__ */ Q({
|
|
15
15
|
__name: "UCircleProgress.ce",
|
|
16
16
|
props: {
|
|
17
17
|
value: { type: Number },
|
|
@@ -25,20 +25,20 @@ const ut = {
|
|
|
25
25
|
b5e811ce: l.strokeWidth
|
|
26
26
|
}));
|
|
27
27
|
const o = C(() => Math.round((r.value - r.min) / (r.max - r.min) * 100));
|
|
28
|
-
return (l, u) => (y(), w("div",
|
|
28
|
+
return (l, u) => (y(), w("div", lt, u[0] || (u[0] = [
|
|
29
29
|
f("svg", null, [
|
|
30
30
|
f("circle", { class: "bg" }),
|
|
31
31
|
f("circle", { class: "fg" })
|
|
32
32
|
], -1)
|
|
33
33
|
])));
|
|
34
34
|
}
|
|
35
|
-
}),
|
|
35
|
+
}), ct = ".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}", dt = /* @__PURE__ */ qe(ut, [["styles", [ct]], ["__scopeId", "data-v-138f773b"]]), vt = {
|
|
36
36
|
viewBox: "0 0 24 24",
|
|
37
37
|
width: "1.2em",
|
|
38
38
|
height: "1.2em"
|
|
39
39
|
};
|
|
40
|
-
function
|
|
41
|
-
return y(), w("svg",
|
|
40
|
+
function mt(r, o) {
|
|
41
|
+
return y(), w("svg", vt, o[0] || (o[0] = [
|
|
42
42
|
f("g", {
|
|
43
43
|
fill: "none",
|
|
44
44
|
stroke: "currentColor",
|
|
@@ -55,13 +55,13 @@ function pt(r, o) {
|
|
|
55
55
|
], -1)
|
|
56
56
|
]));
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const pt = q({ name: "lucide-circle-slash", render: mt }), ht = {
|
|
59
59
|
viewBox: "0 0 24 24",
|
|
60
60
|
width: "1.2em",
|
|
61
61
|
height: "1.2em"
|
|
62
62
|
};
|
|
63
|
-
function
|
|
64
|
-
return y(), w("svg",
|
|
63
|
+
function ft(r, o) {
|
|
64
|
+
return y(), w("svg", ht, o[0] || (o[0] = [
|
|
65
65
|
f("g", {
|
|
66
66
|
fill: "none",
|
|
67
67
|
stroke: "currentColor",
|
|
@@ -86,13 +86,13 @@ function gt(r, o) {
|
|
|
86
86
|
], -1)
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const gt = q({ name: "lucide-pause", render: ft }), _t = {
|
|
90
90
|
viewBox: "0 0 24 24",
|
|
91
91
|
width: "1.2em",
|
|
92
92
|
height: "1.2em"
|
|
93
93
|
};
|
|
94
|
-
function
|
|
95
|
-
return y(), w("svg",
|
|
94
|
+
function xt(r, o) {
|
|
95
|
+
return y(), w("svg", _t, o[0] || (o[0] = [
|
|
96
96
|
f("path", {
|
|
97
97
|
fill: "none",
|
|
98
98
|
stroke: "currentColor",
|
|
@@ -103,13 +103,13 @@ function zt(r, o) {
|
|
|
103
103
|
}, null, -1)
|
|
104
104
|
]));
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const zt = q({ name: "lucide-check", render: xt }), yt = {
|
|
107
107
|
viewBox: "0 0 24 24",
|
|
108
108
|
width: "1.2em",
|
|
109
109
|
height: "1.2em"
|
|
110
110
|
};
|
|
111
|
-
function
|
|
112
|
-
return y(), w("svg",
|
|
111
|
+
function bt(r, o) {
|
|
112
|
+
return y(), w("svg", yt, o[0] || (o[0] = [
|
|
113
113
|
f("path", {
|
|
114
114
|
fill: "none",
|
|
115
115
|
stroke: "currentColor",
|
|
@@ -120,7 +120,7 @@ function wt(r, o) {
|
|
|
120
120
|
}, null, -1)
|
|
121
121
|
]));
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const wt = q({ name: "lucide-check-check", render: bt });
|
|
124
124
|
function $e(r) {
|
|
125
125
|
return r.asyncStatus === "loading" ? "loading" : r.state.status === "error" ? "error" : r.state.status === "pending" ? "pending" : r.stale ? "stale" : r.state.status === "success" ? "fresh" : "unknown";
|
|
126
126
|
}
|
|
@@ -162,20 +162,20 @@ const ee = {
|
|
|
162
162
|
}
|
|
163
163
|
}, ye = ce(performance.timeOrigin + performance.now());
|
|
164
164
|
let Y, be = 0;
|
|
165
|
-
function
|
|
165
|
+
function St() {
|
|
166
166
|
return Y || (Y = setInterval(() => {
|
|
167
167
|
ye.value = performance.timeOrigin + performance.now();
|
|
168
168
|
}, 50)), be++, Se(() => {
|
|
169
169
|
--be <= 0 && (clearInterval(Y), Y = void 0);
|
|
170
170
|
}), ye;
|
|
171
171
|
}
|
|
172
|
-
const
|
|
172
|
+
const kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["href", "title", "onClick"], Mt = { class: "flex font-mono flex-grow gap-0.5 overflow-auto items-center" }, $t = { class: "text-wrap break-words rounded bg-(--ui-text)/5 px-0.5" }, Rt = {
|
|
173
173
|
key: 0,
|
|
174
174
|
"aria-hidden": "true"
|
|
175
|
-
},
|
|
175
|
+
}, Lt = {
|
|
176
176
|
key: 0,
|
|
177
177
|
title: "This query is disabled"
|
|
178
|
-
},
|
|
178
|
+
}, Et = { class: "rounded bg-theme/70 theme-neutral p-0.5 text-xs flex gap-x-0.5 items-center" }, Nt = {
|
|
179
179
|
key: 1,
|
|
180
180
|
title: "This query will be garbage collected"
|
|
181
181
|
}, Bt = /* @__PURE__ */ Q({
|
|
@@ -184,7 +184,7 @@ const Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "titl
|
|
|
184
184
|
entry: {}
|
|
185
185
|
},
|
|
186
186
|
setup(r) {
|
|
187
|
-
const o = Je(), l =
|
|
187
|
+
const o = Je(), l = St();
|
|
188
188
|
function u(d) {
|
|
189
189
|
d.preventDefault(), d.stopPropagation(), o.push("/queries");
|
|
190
190
|
}
|
|
@@ -194,15 +194,15 @@ const Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "titl
|
|
|
194
194
|
g = typeof d == "string" ? JSON.parse(d) : d;
|
|
195
195
|
} catch {
|
|
196
196
|
}
|
|
197
|
-
return g && typeof g == "object" ?
|
|
197
|
+
return g && typeof g == "object" ? rt(g) : String(g);
|
|
198
198
|
})), h = C(() => $e(r.entry));
|
|
199
199
|
return (d, g) => {
|
|
200
|
-
const b =
|
|
200
|
+
const b = it, v = wt, z = ot, S = zt, k = gt, P = pt, M = dt, _ = ke("RouterLink");
|
|
201
201
|
return y(), V(_, {
|
|
202
202
|
to: { name: "/queries/[queryId]", params: { queryId: d.entry.id } },
|
|
203
203
|
custom: ""
|
|
204
204
|
}, {
|
|
205
|
-
default: Z(({ isActive: p, navigate:
|
|
205
|
+
default: Z(({ isActive: p, navigate: D, href: O }) => {
|
|
206
206
|
var J, K;
|
|
207
207
|
return [
|
|
208
208
|
f("div", {
|
|
@@ -211,7 +211,7 @@ const Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "titl
|
|
|
211
211
|
d.entry.active ? "" : "text-(--ui-text)/50"
|
|
212
212
|
]])
|
|
213
213
|
}, [
|
|
214
|
-
f("div",
|
|
214
|
+
f("div", kt, [
|
|
215
215
|
f("div", {
|
|
216
216
|
class: A(["absolute -inset-1 right-0 flex items-center justify-center", $(ee)[h.value].base]),
|
|
217
217
|
title: h.value
|
|
@@ -237,27 +237,27 @@ const Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "titl
|
|
|
237
237
|
title: "Pending",
|
|
238
238
|
"aria-label": "Pending icon"
|
|
239
239
|
})) : le("", !0)
|
|
240
|
-
], 10,
|
|
240
|
+
], 10, Pt)
|
|
241
241
|
]),
|
|
242
242
|
f("a", {
|
|
243
|
-
href:
|
|
243
|
+
href: O,
|
|
244
244
|
class: "hover:cursor-pointer block overflow-hidden",
|
|
245
245
|
title: d.entry.active ? "Active query" : "Inactive query",
|
|
246
|
-
onClick: (
|
|
246
|
+
onClick: (B) => p ? u(B) : D(B)
|
|
247
247
|
}, [
|
|
248
|
-
f("ol",
|
|
249
|
-
(y(!0), w(te, null, de(s.value, (
|
|
250
|
-
f("li",
|
|
251
|
-
ae < s.value.length - 1 ? (y(), w("li",
|
|
248
|
+
f("ol", Mt, [
|
|
249
|
+
(y(!0), w(te, null, de(s.value, (B, ae) => (y(), w(te, { key: B }, [
|
|
250
|
+
f("li", $t, ve(B), 1),
|
|
251
|
+
ae < s.value.length - 1 ? (y(), w("li", Rt, "/")) : le("", !0)
|
|
252
252
|
], 64))), 128))
|
|
253
253
|
])
|
|
254
|
-
], 8,
|
|
255
|
-
((J = d.entry.options) == null ? void 0 : J.enabled) === !1 ? (y(), w("div",
|
|
256
|
-
f("span",
|
|
254
|
+
], 8, Ct),
|
|
255
|
+
((J = d.entry.options) == null ? void 0 : J.enabled) === !1 ? (y(), w("div", Lt, [
|
|
256
|
+
f("span", Et, [
|
|
257
257
|
E(P, { "aria-hidden": "" }),
|
|
258
258
|
g[0] || (g[0] = f("span", { class: "@max-md:hidden" }, "disabled", -1))
|
|
259
259
|
])
|
|
260
|
-
])) : !d.entry.active && d.entry.gcTimeout && d.entry.devtools.inactiveAt && typeof ((K = d.entry.options) == null ? void 0 : K.gcTime) == "number" && Number.isFinite(d.entry.options.gcTime) && d.entry.options.gcTime <= 3e4 ? (y(), w("div",
|
|
260
|
+
])) : !d.entry.active && d.entry.gcTimeout && d.entry.devtools.inactiveAt && typeof ((K = d.entry.options) == null ? void 0 : K.gcTime) == "number" && Number.isFinite(d.entry.options.gcTime) && d.entry.options.gcTime <= 3e4 ? (y(), w("div", Nt, [
|
|
261
261
|
E(M, {
|
|
262
262
|
class: "size-[1em] dark:text-neutral-500 text-neutral-400",
|
|
263
263
|
max: d.entry.options.gcTime,
|
|
@@ -271,7 +271,7 @@ const Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "titl
|
|
|
271
271
|
}, 8, ["to"]);
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
274
|
+
}), Tt = /* @__PURE__ */ Q({
|
|
275
275
|
__name: "UInput.ce",
|
|
276
276
|
props: {
|
|
277
277
|
modelValue: {},
|
|
@@ -293,7 +293,7 @@ const Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "titl
|
|
|
293
293
|
width: "1.2em",
|
|
294
294
|
height: "1.2em"
|
|
295
295
|
};
|
|
296
|
-
function
|
|
296
|
+
function Ot(r, o) {
|
|
297
297
|
return y(), w("svg", Dt, o[0] || (o[0] = [
|
|
298
298
|
f("g", {
|
|
299
299
|
fill: "none",
|
|
@@ -311,7 +311,7 @@ function Vt(r, o) {
|
|
|
311
311
|
], -1)
|
|
312
312
|
]));
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const Vt = q({ name: "lucide-search", render: Ot }), It = /* @__PURE__ */ Q({
|
|
315
315
|
__name: "splitpanes",
|
|
316
316
|
props: {
|
|
317
317
|
horizontal: { type: Boolean, default: !1 },
|
|
@@ -336,15 +336,15 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
336
336
|
setup(r, { emit: o }) {
|
|
337
337
|
const l = o, u = r;
|
|
338
338
|
Ge();
|
|
339
|
-
const s =
|
|
339
|
+
const s = N([]), h = C(
|
|
340
340
|
() => s.value.reduce((e, t) => (e[~~t.id] = t) && e, {})
|
|
341
|
-
), d = C(() => s.value.length), g =
|
|
341
|
+
), d = C(() => s.value.length), g = N(null), b = N(!1), v = N({
|
|
342
342
|
mouseDown: !1,
|
|
343
343
|
dragging: !1,
|
|
344
344
|
activeSplitter: null,
|
|
345
345
|
cursorOffset: 0
|
|
346
346
|
// Cursor offset within the splitter.
|
|
347
|
-
}), z =
|
|
347
|
+
}), z = N({
|
|
348
348
|
// Used to detect double click on touch devices.
|
|
349
349
|
splitter: null,
|
|
350
350
|
timeoutId: null
|
|
@@ -375,9 +375,9 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
375
375
|
v.value.dragging && L("resized", { event: e }, !0), v.value.mouseDown = !1, v.value.activeSplitter = null, setTimeout(() => {
|
|
376
376
|
v.value.dragging = !1, k();
|
|
377
377
|
}, 100);
|
|
378
|
-
}, O = (e, t) => {
|
|
379
|
-
"ontouchstart" in window && (e.preventDefault(), z.value.splitter === t ? (clearTimeout(z.value.timeoutId), z.value.timeoutId = null, D(e, t), z.value.splitter = null) : (z.value.splitter = t, z.value.timeoutId = setTimeout(() => z.value.splitter = null, 500))), v.value.dragging || L("splitter-click", { event: e, index: t }, !0);
|
|
380
378
|
}, D = (e, t) => {
|
|
379
|
+
"ontouchstart" in window && (e.preventDefault(), z.value.splitter === t ? (clearTimeout(z.value.timeoutId), z.value.timeoutId = null, O(e, t), z.value.splitter = null) : (z.value.splitter = t, z.value.timeoutId = setTimeout(() => z.value.splitter = null, 500))), v.value.dragging || L("splitter-click", { event: e, index: t }, !0);
|
|
380
|
+
}, O = (e, t) => {
|
|
381
381
|
if (L("splitter-dblclick", { event: e, index: t }, !0), u.maximizePanes) {
|
|
382
382
|
let a = 0;
|
|
383
383
|
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", {
|
|
@@ -399,7 +399,7 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
399
399
|
x: n - (u.horizontal ? 0 : v.value.cursorOffset) - a.left,
|
|
400
400
|
y: i - (u.horizontal ? v.value.cursorOffset : 0) - a.top
|
|
401
401
|
};
|
|
402
|
-
},
|
|
402
|
+
}, B = (e) => {
|
|
403
403
|
e = e[u.horizontal ? "y" : "x"];
|
|
404
404
|
const t = g.value[u.horizontal ? "clientHeight" : "clientWidth"];
|
|
405
405
|
return u.rtl && !u.horizontal && (e = t - e), e * 100 / t;
|
|
@@ -411,7 +411,7 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
411
411
|
prevReachedMinPanes: 0,
|
|
412
412
|
nextReachedMinPanes: 0
|
|
413
413
|
};
|
|
414
|
-
const n = 0 + (u.pushOtherPanes ? 0 : a.prevPanesSize), i = 100 - (u.pushOtherPanes ? 0 : a.nextPanesSize), m = Math.max(Math.min(
|
|
414
|
+
const n = 0 + (u.pushOtherPanes ? 0 : a.prevPanesSize), i = 100 - (u.pushOtherPanes ? 0 : a.nextPanesSize), m = Math.max(Math.min(B(e), i), n);
|
|
415
415
|
let c = [t, t + 1], x = s.value[c[0]], R = s.value[c[1]];
|
|
416
416
|
if (!x || !R) return;
|
|
417
417
|
const he = x.max < 100 && m >= x.max + a.prevPanesSize, Qe = R.max < 100 && m <= 100 - (R.max + U(t + 1));
|
|
@@ -446,7 +446,7 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
446
446
|
}), e.nextPanesSize = U(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, s.value.forEach((c, x) => {
|
|
447
447
|
x < d.value - 1 && x >= a + 1 && (c.size = c.min, e.nextReachedMinPanes += c.min);
|
|
448
448
|
}), s.value[n[0]].size = 100 - e.prevPanesSize - U(n[0] - 1), null) : { sums: e, panesToResize: n };
|
|
449
|
-
}, me = (e) => s.value.reduce((t, a, n) => t + (n < e ? a.size : 0), 0), U = (e) => s.value.reduce((t, a, n) => t + (n > e + 1 ? a.size : 0), 0), Ee = (e) => [...s.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, Ne = (e) => s.value.find((t) => t.index > e + 1 && t.size > t.min) || {},
|
|
449
|
+
}, me = (e) => s.value.reduce((t, a, n) => t + (n < e ? a.size : 0), 0), U = (e) => s.value.reduce((t, a, n) => t + (n > e + 1 ? a.size : 0), 0), Ee = (e) => [...s.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, Ne = (e) => s.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, Be = () => {
|
|
450
450
|
var e;
|
|
451
451
|
const t = Array.from(((e = g.value) == null ? void 0 : e.children) || []);
|
|
452
452
|
for (const a of t) {
|
|
@@ -457,21 +457,21 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
457
457
|
}
|
|
458
458
|
}, pe = (e, t, a = !1) => {
|
|
459
459
|
const n = e - 1, i = document.createElement("div");
|
|
460
|
-
i.classList.add("splitpanes__splitter"), a || (i.onmousedown = (m) => M(m, n), typeof window < "u" && "ontouchstart" in window && (i.ontouchstart = (m) => M(m, n)), i.onclick = (m) =>
|
|
461
|
-
},
|
|
460
|
+
i.classList.add("splitpanes__splitter"), a || (i.onmousedown = (m) => M(m, n), typeof window < "u" && "ontouchstart" in window && (i.ontouchstart = (m) => M(m, n)), i.onclick = (m) => D(m, n + 1)), i.ondblclick = (m) => O(m, n + 1), t.parentNode.insertBefore(i, t);
|
|
461
|
+
}, Te = (e) => {
|
|
462
462
|
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
463
463
|
}, W = () => {
|
|
464
464
|
var e;
|
|
465
465
|
const t = Array.from(((e = g.value) == null ? void 0 : e.children) || []);
|
|
466
466
|
for (const n of t)
|
|
467
|
-
n.className.includes("splitpanes__splitter") &&
|
|
467
|
+
n.className.includes("splitpanes__splitter") && Te(n);
|
|
468
468
|
let a = 0;
|
|
469
469
|
for (const n of t)
|
|
470
470
|
n.className.includes("splitpanes__pane") && (!a && u.firstSplitter ? pe(a, n, !0) : a && pe(a, n), a++);
|
|
471
|
-
},
|
|
471
|
+
}, De = ({ uid: e, ...t }) => {
|
|
472
472
|
const a = h.value[e];
|
|
473
473
|
for (const [n, i] of Object.entries(t)) a[n] = i;
|
|
474
|
-
},
|
|
474
|
+
}, Oe = (e) => {
|
|
475
475
|
var t;
|
|
476
476
|
let a = -1;
|
|
477
477
|
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), b.value && ue(() => {
|
|
@@ -552,11 +552,11 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
552
552
|
() => u.firstSplitter,
|
|
553
553
|
() => W()
|
|
554
554
|
), Pe(() => {
|
|
555
|
-
|
|
555
|
+
Be(), W(), se(), L("ready"), b.value = !0;
|
|
556
556
|
}), Ce(() => b.value = !1), T("panes", s), T("indexedPanes", h), T(
|
|
557
557
|
"horizontal",
|
|
558
558
|
C(() => u.horizontal)
|
|
559
|
-
), T("requestUpdate",
|
|
559
|
+
), T("requestUpdate", De), T("onPaneAdd", Oe), T("onPaneRemove", Ve), T("onPaneClick", J), (e, t) => (y(), w("div", {
|
|
560
560
|
class: A(S.value),
|
|
561
561
|
ref_key: "containerEl",
|
|
562
562
|
ref: g
|
|
@@ -573,7 +573,7 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
573
573
|
},
|
|
574
574
|
setup(r) {
|
|
575
575
|
var o;
|
|
576
|
-
const l = r, u = I("requestUpdate"), s = I("onPaneAdd"), h = I("horizontal"), d = I("onPaneRemove"), g = I("onPaneClick"), b = (o = Ye()) == null ? void 0 : o.uid, v = I("indexedPanes"), z = C(() => v.value[b]), S =
|
|
576
|
+
const l = r, u = I("requestUpdate"), s = I("onPaneAdd"), h = I("horizontal"), d = I("onPaneRemove"), g = I("onPaneClick"), b = (o = Ye()) == null ? void 0 : o.uid, v = I("indexedPanes"), z = C(() => v.value[b]), S = N(null), k = C(() => {
|
|
577
577
|
const p = isNaN(l.size) || l.size === void 0 ? 0 : parseFloat(l.size);
|
|
578
578
|
return Math.max(Math.min(p, M.value), P.value);
|
|
579
579
|
}), P = C(() => {
|
|
@@ -606,26 +606,26 @@ const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
|
606
606
|
size: k.value
|
|
607
607
|
// The computed current size at any time.
|
|
608
608
|
});
|
|
609
|
-
}), Ce(() => d(b)), (p,
|
|
609
|
+
}), Ce(() => d(b)), (p, D) => (y(), w("div", {
|
|
610
610
|
ref_key: "paneEl",
|
|
611
611
|
ref: S,
|
|
612
612
|
class: "splitpanes__pane",
|
|
613
|
-
onClick:
|
|
613
|
+
onClick: D[0] || (D[0] = (O) => $(g)(O, $(b))),
|
|
614
614
|
style: Ze(_.value)
|
|
615
615
|
}, [
|
|
616
616
|
Me(p.$slots, "default")
|
|
617
617
|
], 4));
|
|
618
618
|
}
|
|
619
|
-
}),
|
|
620
|
-
let
|
|
621
|
-
const
|
|
622
|
-
class
|
|
619
|
+
}), At = "bae45330cd3d4e0e96b60d26b57009b5";
|
|
620
|
+
let jt = 0;
|
|
621
|
+
const Qt = () => `${At}-${Date.now()}-${jt++}`;
|
|
622
|
+
class Ut extends Event {
|
|
623
623
|
constructor(o, l, u) {
|
|
624
624
|
super(o), this.container = l, this.matches = u;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
var j, H, ne, Re;
|
|
628
|
-
class
|
|
628
|
+
class Ft extends EventTarget {
|
|
629
629
|
constructor(l, u) {
|
|
630
630
|
super();
|
|
631
631
|
X(this, ne);
|
|
@@ -634,7 +634,7 @@ class Ht extends EventTarget {
|
|
|
634
634
|
oe(this, "container");
|
|
635
635
|
oe(this, "matches");
|
|
636
636
|
this.container = u;
|
|
637
|
-
const s = `container-query-observer-${
|
|
637
|
+
const s = `container-query-observer-${Qt()}`, h = `data-${s}`;
|
|
638
638
|
l.setAttribute(h, "");
|
|
639
639
|
const d = `--${s}`, g = `
|
|
640
640
|
@property ${d} {
|
|
@@ -673,7 +673,7 @@ j = new WeakMap(), H = new WeakMap(), ne = new WeakSet(), Re = function(l, u, s)
|
|
|
673
673
|
if (S !== k && (z[l] = S, h[l] = S, l in z)) {
|
|
674
674
|
const M = z[l] === "--true";
|
|
675
675
|
this.matches = M;
|
|
676
|
-
const _ = new
|
|
676
|
+
const _ = new Ut("change", u, M);
|
|
677
677
|
this.dispatchEvent(_);
|
|
678
678
|
}
|
|
679
679
|
}
|
|
@@ -684,9 +684,9 @@ j = new WeakMap(), H = new WeakMap(), ne = new WeakSet(), Re = function(l, u, s)
|
|
|
684
684
|
h[l] = g;
|
|
685
685
|
};
|
|
686
686
|
typeof window < "u" && (HTMLElement.prototype.matchContainer || (HTMLElement.prototype.matchContainer = function(o) {
|
|
687
|
-
return new
|
|
687
|
+
return new Ft(this, o);
|
|
688
688
|
}));
|
|
689
|
-
function
|
|
689
|
+
function Ht(r, o) {
|
|
690
690
|
const l = et(
|
|
691
691
|
() => typeof document < "u" && typeof document.body.matchContainer == "function"
|
|
692
692
|
), u = ce(), s = ce(!1);
|
|
@@ -705,13 +705,13 @@ function qt(r, o) {
|
|
|
705
705
|
{ passive: !0 }
|
|
706
706
|
), C(() => s.value);
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt = { class: "flex items-center p-2 border-b border-(--ui-border) gap-2" }, Kt = { class: "relative flex-grow" }, Wt = { class: "flex gap-x-1" }, Xt = ["title"], Yt = { class: "@max-[750px]:hidden" }, Zt = {
|
|
709
709
|
role: "list",
|
|
710
710
|
class: "divide-y divide-(--ui-border)"
|
|
711
|
-
},
|
|
711
|
+
}, an = /* @__PURE__ */ Q({
|
|
712
712
|
__name: "queries",
|
|
713
713
|
setup(r) {
|
|
714
|
-
const o =
|
|
714
|
+
const o = N(""), l = at(), u = C(() => {
|
|
715
715
|
let v = l.value;
|
|
716
716
|
if (o.value) {
|
|
717
717
|
const z = o.value.toLowerCase();
|
|
@@ -725,21 +725,18 @@ const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt
|
|
|
725
725
|
pending: [],
|
|
726
726
|
inactive: u.value.filter((v) => !v.active),
|
|
727
727
|
...Object.groupBy(u.value, (v) => $e(v))
|
|
728
|
-
})), h =
|
|
728
|
+
})), h = N(), d = Ht("(width < 768px)", () => {
|
|
729
729
|
var v;
|
|
730
730
|
return (v = h.value) == null ? void 0 : v.$el;
|
|
731
|
-
}), g =
|
|
732
|
-
"pc-devtools-query-list-panel-size",
|
|
733
|
-
[30, 70]
|
|
734
|
-
);
|
|
731
|
+
}), g = st("pc-devtools-query-list-panel-size", [30, 70]);
|
|
735
732
|
function b({ panes: v }) {
|
|
736
733
|
g.value = v.map((z) => z.size);
|
|
737
734
|
}
|
|
738
735
|
return (v, z) => {
|
|
739
|
-
const S =
|
|
740
|
-
return y(), w("section",
|
|
741
|
-
f("div",
|
|
742
|
-
f("div",
|
|
736
|
+
const S = Vt, k = Tt, P = Bt, M = ke("RouterView");
|
|
737
|
+
return y(), w("section", qt, [
|
|
738
|
+
f("div", Jt, [
|
|
739
|
+
f("div", Kt, [
|
|
743
740
|
E(S, { class: "absolute left-2 top-1/2 -translate-y-1/2 text-ui-text-muted size-4" }),
|
|
744
741
|
E(k, {
|
|
745
742
|
modelValue: o.value,
|
|
@@ -749,7 +746,7 @@ const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt
|
|
|
749
746
|
placeholder: "Search Queries"
|
|
750
747
|
}, null, 8, ["modelValue"])
|
|
751
748
|
]),
|
|
752
|
-
f("div",
|
|
749
|
+
f("div", Wt, [
|
|
753
750
|
(y(!0), w(te, null, de(s.value, (_, p) => (y(), w("div", {
|
|
754
751
|
key: p,
|
|
755
752
|
class: A(["theme-neutral bg-(--ui-bg-muted) rounded p-1 text-xs font-semibold flex items-center gap-x-1", ((_ == null ? void 0 : _.length) ?? 0) === 0 ? "text-(--ui-text-muted)" : ""]),
|
|
@@ -758,7 +755,7 @@ const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt
|
|
|
758
755
|
f("div", {
|
|
759
756
|
class: A(["rounded-full size-2", $(ee)[p].base])
|
|
760
757
|
}, null, 2),
|
|
761
|
-
f("span",
|
|
758
|
+
f("span", Yt, ve(p), 1),
|
|
762
759
|
f("div", {
|
|
763
760
|
class: A([
|
|
764
761
|
"px-1.5 py-0.5 rounded min-w-[1.65em] flex justify-center",
|
|
@@ -767,10 +764,10 @@ const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt
|
|
|
767
764
|
}, [
|
|
768
765
|
f("span", null, ve((_ == null ? void 0 : _.length) ?? 0), 1)
|
|
769
766
|
], 2)
|
|
770
|
-
], 10,
|
|
767
|
+
], 10, Xt))), 128))
|
|
771
768
|
])
|
|
772
769
|
]),
|
|
773
|
-
E($(
|
|
770
|
+
E($(It), {
|
|
774
771
|
ref_key: "container",
|
|
775
772
|
ref: h,
|
|
776
773
|
class: "overflow-hidden",
|
|
@@ -784,7 +781,7 @@ const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt
|
|
|
784
781
|
class: "flex flex-col"
|
|
785
782
|
}, {
|
|
786
783
|
default: Z(() => [
|
|
787
|
-
f("ol",
|
|
784
|
+
f("ol", Zt, [
|
|
788
785
|
(y(!0), w(te, null, de(u.value, (_) => (y(), w("li", {
|
|
789
786
|
key: _.id
|
|
790
787
|
}, [
|
|
@@ -812,6 +809,6 @@ const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt
|
|
|
812
809
|
}
|
|
813
810
|
});
|
|
814
811
|
export {
|
|
815
|
-
|
|
812
|
+
an as default
|
|
816
813
|
};
|
|
817
|
-
//# sourceMappingURL=queries-
|
|
814
|
+
//# sourceMappingURL=queries-C8H8bbDX.js.map
|