@pinia/colada-devtools 0.0.4 → 0.0.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 +141 -134
- package/dist/index.js.map +1 -1
- package/dist-panel/{_queryId_-SBAeSmfh.js → _queryId_-BRk1BujP.js} +85 -78
- package/dist-panel/_queryId_-BRk1BujP.js.map +1 -0
- package/dist-panel/{index-CAv-3vCR.js → index-B_58xqr0.js} +2 -2
- package/dist-panel/{index-CAv-3vCR.js.map → index-B_58xqr0.js.map} +1 -1
- package/dist-panel/{index-DZwqU9e-.js → index-CIFb4FXj.js} +3 -3
- package/dist-panel/index-CIFb4FXj.js.map +1 -0
- package/dist-panel/index-dcKxSjOS.js +8113 -0
- package/dist-panel/index-dcKxSjOS.js.map +1 -0
- package/dist-panel/index.js +1 -1
- package/dist-panel/{loader-DHLcbUhz.js → loader-CDd8nw_A.js} +2 -2
- package/dist-panel/loader-CDd8nw_A.js.map +1 -0
- package/dist-panel/{mouse-pointer-click-BHnWXkC_.js → mouse-pointer-click-BisIGlPs.js} +2 -2
- package/dist-panel/mouse-pointer-click-BisIGlPs.js.map +1 -0
- package/dist-panel/mutations-DmPjJLlL.js +13 -0
- package/dist-panel/mutations-DmPjJLlL.js.map +1 -0
- package/dist-panel/{queries-CE8W5p_h.js → queries-B9YVJVQ4.js} +88 -89
- package/dist-panel/queries-B9YVJVQ4.js.map +1 -0
- package/dist-panel/{settings-DIqJoCBU.js → settings-s4xqlsIF.js} +2 -2
- package/dist-panel/{settings-DIqJoCBU.js.map → settings-s4xqlsIF.js.map} +1 -1
- package/dist-shared/index.d.ts +1 -1
- package/dist-shared/index.js.map +1 -1
- package/package.json +7 -7
- package/dist-panel/_queryId_-SBAeSmfh.js.map +0 -1
- package/dist-panel/index-BdIpA-g4.js +0 -8026
- package/dist-panel/index-BdIpA-g4.js.map +0 -1
- package/dist-panel/index-DZwqU9e-.js.map +0 -1
- package/dist-panel/loader-DHLcbUhz.js.map +0 -1
- package/dist-panel/mouse-pointer-click-BHnWXkC_.js.map +0 -1
- package/dist-panel/mutations-BfqfXeMY.js +0 -13
- package/dist-panel/mutations-BfqfXeMY.js.map +0 -1
- package/dist-panel/queries-CE8W5p_h.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-dcKxSjOS.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-CDd8nw_A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader-CDd8nw_A.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-dcKxSjOS.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-BisIGlPs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mouse-pointer-click-BisIGlPs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ as t, c as e, o as n, a as s } from "./index-dcKxSjOS.js";
|
|
2
|
+
const a = {}, r = { class: "p-2" };
|
|
3
|
+
function c(l, o) {
|
|
4
|
+
return n(), e("section", r, o[0] || (o[0] = [
|
|
5
|
+
s("h2", { class: "font-extrabold text-2xl" }, " Mutations ", -1),
|
|
6
|
+
s("p", { class: "my-2 font-mono" }, " 🚧 Work in progress 🏗️ ", -1)
|
|
7
|
+
]));
|
|
8
|
+
}
|
|
9
|
+
const f = /* @__PURE__ */ t(a, [["render", c]]);
|
|
10
|
+
export {
|
|
11
|
+
f as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=mutations-DmPjJLlL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutations-DmPjJLlL.js","sources":["../src/panel/pages/mutations.vue"],"sourcesContent":["<template>\n <section class=\"p-2\">\n <h2 class=\"font-extrabold text-2xl\">\n Mutations\n </h2>\n\n <p class=\"my-2 font-mono\">\n 🚧 Work in progress 🏗️\n </p>\n </section>\n</template>\n"],"names":["_hoisted_1","_openBlock","_createElementBlock","_cache","_createElementVNode"],"mappings":";cACWA,IAAA,EAAA,OAAM,MAAK;;AAApB,SAAAC,EAAA,GAAAC,EAQU,WARVF,GAQUG,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,IAPRC,EAEK,MAFD,EAAA,OAAM,6BAA0B,eAEpC,EAAA;AAAA,IAEAA,EAEI,KAFD,EAAA,OAAM,oBAAiB,6BAE1B,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 B, 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, O as it } from "./index-dcKxSjOS.js";
|
|
9
|
+
import { _ as ot, a as rt } from "./loader-CDd8nw_A.js";
|
|
10
|
+
import { miniJsonParse as lt } from "@pinia/colada-devtools/shared";
|
|
11
|
+
const ut = {
|
|
12
12
|
class: "progress-bar",
|
|
13
13
|
"aria-hidden": ""
|
|
14
|
-
},
|
|
14
|
+
}, ct = /* @__PURE__ */ Q({
|
|
15
15
|
__name: "UCircleProgress.ce",
|
|
16
16
|
props: {
|
|
17
17
|
value: { type: Number },
|
|
@@ -25,20 +25,20 @@ const lt = {
|
|
|
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", ut, 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
|
+
}), dt = ".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}", vt = /* @__PURE__ */ qe(ct, [["styles", [dt]], ["__scopeId", "data-v-138f773b"]]), mt = {
|
|
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 pt(r, o) {
|
|
41
|
+
return y(), w("svg", mt, o[0] || (o[0] = [
|
|
42
42
|
f("g", {
|
|
43
43
|
fill: "none",
|
|
44
44
|
stroke: "currentColor",
|
|
@@ -55,13 +55,13 @@ function mt(r, o) {
|
|
|
55
55
|
], -1)
|
|
56
56
|
]));
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const ht = q({ name: "lucide-circle-slash", render: pt }), ft = {
|
|
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 gt(r, o) {
|
|
64
|
+
return y(), w("svg", ft, o[0] || (o[0] = [
|
|
65
65
|
f("g", {
|
|
66
66
|
fill: "none",
|
|
67
67
|
stroke: "currentColor",
|
|
@@ -86,13 +86,13 @@ function ft(r, o) {
|
|
|
86
86
|
], -1)
|
|
87
87
|
]));
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const _t = q({ name: "lucide-pause", render: gt }), xt = {
|
|
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 zt(r, o) {
|
|
95
|
+
return y(), w("svg", xt, o[0] || (o[0] = [
|
|
96
96
|
f("path", {
|
|
97
97
|
fill: "none",
|
|
98
98
|
stroke: "currentColor",
|
|
@@ -103,13 +103,13 @@ function xt(r, o) {
|
|
|
103
103
|
}, null, -1)
|
|
104
104
|
]));
|
|
105
105
|
}
|
|
106
|
-
const
|
|
106
|
+
const yt = q({ name: "lucide-check", render: zt }), bt = {
|
|
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 wt(r, o) {
|
|
112
|
+
return y(), w("svg", bt, o[0] || (o[0] = [
|
|
113
113
|
f("path", {
|
|
114
114
|
fill: "none",
|
|
115
115
|
stroke: "currentColor",
|
|
@@ -120,7 +120,7 @@ function bt(r, o) {
|
|
|
120
120
|
}, null, -1)
|
|
121
121
|
]));
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const St = q({ name: "lucide-check-check", render: wt });
|
|
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 kt() {
|
|
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 Pt = { class: "h-full w-6 relative" }, Ct = ["title"], Mt = ["href", "title", "onClick"], $t = { class: "flex font-mono flex-grow gap-0.5 overflow-auto items-center" }, Rt = { class: "text-wrap break-words rounded bg-(--ui-text)/5 px-0.5" }, Lt = {
|
|
173
173
|
key: 0,
|
|
174
174
|
"aria-hidden": "true"
|
|
175
|
-
},
|
|
175
|
+
}, Et = {
|
|
176
176
|
key: 0,
|
|
177
177
|
title: "This query is disabled"
|
|
178
|
-
},
|
|
178
|
+
}, Nt = { class: "rounded bg-theme/70 theme-neutral p-0.5 text-xs flex gap-x-0.5 items-center" }, Tt = {
|
|
179
179
|
key: 1,
|
|
180
180
|
title: "This query will be garbage collected"
|
|
181
181
|
}, Bt = /* @__PURE__ */ Q({
|
|
@@ -184,7 +184,7 @@ const kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["href", "titl
|
|
|
184
184
|
entry: {}
|
|
185
185
|
},
|
|
186
186
|
setup(r) {
|
|
187
|
-
const o = Je(), l =
|
|
187
|
+
const o = Je(), l = kt();
|
|
188
188
|
function u(d) {
|
|
189
189
|
d.preventDefault(), d.stopPropagation(), o.push("/queries");
|
|
190
190
|
}
|
|
@@ -194,15 +194,15 @@ const kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["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" ? lt(g) : String(g);
|
|
198
198
|
})), h = C(() => $e(r.entry));
|
|
199
199
|
return (d, g) => {
|
|
200
|
-
const b =
|
|
200
|
+
const b = ot, v = St, z = rt, S = yt, k = _t, P = ht, M = vt, _ = ke("RouterLink");
|
|
201
201
|
return y(), V(_, {
|
|
202
|
-
to: { name: "/queries/[queryId]", params: { queryId: d.entry.
|
|
202
|
+
to: { name: "/queries/[queryId]", params: { queryId: d.entry.keyHash } },
|
|
203
203
|
custom: ""
|
|
204
204
|
}, {
|
|
205
|
-
default: Z(({ isActive: p, navigate:
|
|
205
|
+
default: Z(({ isActive: p, navigate: O, href: D }) => {
|
|
206
206
|
var J, K;
|
|
207
207
|
return [
|
|
208
208
|
f("div", {
|
|
@@ -211,7 +211,7 @@ const kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["href", "titl
|
|
|
211
211
|
d.entry.active ? "" : "text-(--ui-text)/50"
|
|
212
212
|
]])
|
|
213
213
|
}, [
|
|
214
|
-
f("div",
|
|
214
|
+
f("div", Pt, [
|
|
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 kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["href", "titl
|
|
|
237
237
|
title: "Pending",
|
|
238
238
|
"aria-label": "Pending icon"
|
|
239
239
|
})) : le("", !0)
|
|
240
|
-
], 10,
|
|
240
|
+
], 10, Ct)
|
|
241
241
|
]),
|
|
242
242
|
f("a", {
|
|
243
|
-
href:
|
|
243
|
+
href: D,
|
|
244
244
|
class: "hover:cursor-pointer block overflow-hidden",
|
|
245
245
|
title: d.entry.active ? "Active query" : "Inactive query",
|
|
246
|
-
onClick: (
|
|
246
|
+
onClick: (N) => p ? u(N) : O(N)
|
|
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", $t, [
|
|
249
|
+
(y(!0), w(te, null, de(s.value, (N, ae) => (y(), w(te, { key: N }, [
|
|
250
|
+
f("li", Rt, ve(N), 1),
|
|
251
|
+
ae < s.value.length - 1 ? (y(), w("li", Lt, "/")) : 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, Mt),
|
|
255
|
+
((J = d.entry.options) == null ? void 0 : J.enabled) === !1 ? (y(), w("div", Et, [
|
|
256
|
+
f("span", Nt, [
|
|
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", Tt, [
|
|
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 kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["href", "titl
|
|
|
271
271
|
}, 8, ["to"]);
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
}),
|
|
274
|
+
}), Ot = /* @__PURE__ */ Q({
|
|
275
275
|
__name: "UInput.ce",
|
|
276
276
|
props: {
|
|
277
277
|
modelValue: {},
|
|
@@ -293,7 +293,7 @@ const kt = { class: "h-full w-6 relative" }, Pt = ["title"], Ct = ["href", "titl
|
|
|
293
293
|
width: "1.2em",
|
|
294
294
|
height: "1.2em"
|
|
295
295
|
};
|
|
296
|
-
function
|
|
296
|
+
function Vt(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 Ot(r, o) {
|
|
|
311
311
|
], -1)
|
|
312
312
|
]));
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const It = q({ name: "lucide-search", render: Vt }), At = /* @__PURE__ */ Q({
|
|
315
315
|
__name: "splitpanes",
|
|
316
316
|
props: {
|
|
317
317
|
horizontal: { type: Boolean, default: !1 },
|
|
@@ -336,15 +336,15 @@ const Vt = q({ name: "lucide-search", render: Ot }), It = /* @__PURE__ */ Q({
|
|
|
336
336
|
setup(r, { emit: o }) {
|
|
337
337
|
const l = o, u = r;
|
|
338
338
|
Ge();
|
|
339
|
-
const s =
|
|
339
|
+
const s = B([]), 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 = B(null), b = B(!1), v = B({
|
|
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 = B({
|
|
348
348
|
// Used to detect double click on touch devices.
|
|
349
349
|
splitter: null,
|
|
350
350
|
timeoutId: null
|
|
@@ -375,9 +375,9 @@ const Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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
|
-
}, 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
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
|
+
}, D = (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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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
|
+
}, N = (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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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(N(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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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) || {}, Te = () => {
|
|
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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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) => O(m, n + 1)), i.ondblclick = (m) => D(m, n + 1), t.parentNode.insertBefore(i, t);
|
|
461
|
+
}, Be = (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") && Be(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
|
+
}, Oe = ({ 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
|
+
}, De = (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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__PURE__ */ Q({
|
|
|
552
552
|
() => u.firstSplitter,
|
|
553
553
|
() => W()
|
|
554
554
|
), Pe(() => {
|
|
555
|
-
|
|
555
|
+
Te(), 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", Oe), T("onPaneAdd", De), 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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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 = B(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 Vt = q({ name: "lucide-search", render: Ot }), It = /* @__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, O) => (y(), w("div", {
|
|
610
610
|
ref_key: "paneEl",
|
|
611
611
|
ref: S,
|
|
612
612
|
class: "splitpanes__pane",
|
|
613
|
-
onClick:
|
|
613
|
+
onClick: O[0] || (O[0] = (D) => $(g)(D, $(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
|
+
}), jt = "bae45330cd3d4e0e96b60d26b57009b5";
|
|
620
|
+
let Qt = 0;
|
|
621
|
+
const Ut = () => `${jt}-${Date.now()}-${Qt++}`;
|
|
622
|
+
class Ft 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 Ht extends EventTarget {
|
|
629
629
|
constructor(l, u) {
|
|
630
630
|
super();
|
|
631
631
|
X(this, ne);
|
|
@@ -634,7 +634,7 @@ class Ft 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-${Ut()}`, 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 Ft("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 Ht(this, o);
|
|
688
688
|
}));
|
|
689
|
-
function
|
|
689
|
+
function qt(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 Ht(r, o) {
|
|
|
705
705
|
{ passive: !0 }
|
|
706
706
|
), C(() => s.value);
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const Jt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Kt = { class: "flex items-center p-2 border-b border-(--ui-border) gap-2" }, Wt = { class: "relative flex-grow" }, Xt = { class: "flex gap-x-1" }, Yt = ["title"], Zt = { class: "@max-[750px]:hidden" }, Gt = {
|
|
709
709
|
role: "list",
|
|
710
710
|
class: "divide-y divide-(--ui-border)"
|
|
711
|
-
},
|
|
711
|
+
}, sn = /* @__PURE__ */ Q({
|
|
712
712
|
__name: "queries",
|
|
713
713
|
setup(r) {
|
|
714
|
-
const o =
|
|
714
|
+
const o = B(""), l = at(), u = C(() => {
|
|
715
715
|
let v = l.value;
|
|
716
716
|
if (o.value) {
|
|
717
717
|
const z = o.value.toLowerCase();
|
|
@@ -725,18 +725,18 @@ const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt
|
|
|
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 = st("split-panes-container"), d = qt("(width < 768px)", () => {
|
|
729
729
|
var v;
|
|
730
730
|
return (v = h.value) == null ? void 0 : v.$el;
|
|
731
|
-
}), g =
|
|
731
|
+
}), g = it("pc-devtools-query-list-panel-size", [30, 70]);
|
|
732
732
|
function b({ panes: v }) {
|
|
733
733
|
g.value = v.map((z) => z.size);
|
|
734
734
|
}
|
|
735
735
|
return (v, z) => {
|
|
736
|
-
const S =
|
|
737
|
-
return y(), w("section",
|
|
738
|
-
f("div",
|
|
739
|
-
f("div",
|
|
736
|
+
const S = It, k = Ot, P = Bt, M = ke("RouterView");
|
|
737
|
+
return y(), w("section", Jt, [
|
|
738
|
+
f("div", Kt, [
|
|
739
|
+
f("div", Wt, [
|
|
740
740
|
E(S, { class: "absolute left-2 top-1/2 -translate-y-1/2 text-ui-text-muted size-4" }),
|
|
741
741
|
E(k, {
|
|
742
742
|
modelValue: o.value,
|
|
@@ -746,7 +746,7 @@ const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt
|
|
|
746
746
|
placeholder: "Search Queries"
|
|
747
747
|
}, null, 8, ["modelValue"])
|
|
748
748
|
]),
|
|
749
|
-
f("div",
|
|
749
|
+
f("div", Xt, [
|
|
750
750
|
(y(!0), w(te, null, de(s.value, (_, p) => (y(), w("div", {
|
|
751
751
|
key: p,
|
|
752
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)" : ""]),
|
|
@@ -755,7 +755,7 @@ const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt
|
|
|
755
755
|
f("div", {
|
|
756
756
|
class: A(["rounded-full size-2", $(ee)[p].base])
|
|
757
757
|
}, null, 2),
|
|
758
|
-
f("span",
|
|
758
|
+
f("span", Zt, ve(p), 1),
|
|
759
759
|
f("div", {
|
|
760
760
|
class: A([
|
|
761
761
|
"px-1.5 py-0.5 rounded min-w-[1.65em] flex justify-center",
|
|
@@ -764,12 +764,11 @@ const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt
|
|
|
764
764
|
}, [
|
|
765
765
|
f("span", null, ve((_ == null ? void 0 : _.length) ?? 0), 1)
|
|
766
766
|
], 2)
|
|
767
|
-
], 10,
|
|
767
|
+
], 10, Yt))), 128))
|
|
768
768
|
])
|
|
769
769
|
]),
|
|
770
|
-
E($(
|
|
771
|
-
|
|
772
|
-
ref: h,
|
|
770
|
+
E($(At), {
|
|
771
|
+
ref: "split-panes-container",
|
|
773
772
|
class: "overflow-hidden",
|
|
774
773
|
horizontal: $(d),
|
|
775
774
|
onResized: b
|
|
@@ -781,9 +780,9 @@ const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt
|
|
|
781
780
|
class: "flex flex-col"
|
|
782
781
|
}, {
|
|
783
782
|
default: Z(() => [
|
|
784
|
-
f("ol",
|
|
783
|
+
f("ol", Gt, [
|
|
785
784
|
(y(!0), w(te, null, de(u.value, (_) => (y(), w("li", {
|
|
786
|
-
key: _.
|
|
785
|
+
key: _.keyHash
|
|
787
786
|
}, [
|
|
788
787
|
E(P, { entry: _ }, null, 8, ["entry"])
|
|
789
788
|
]))), 128))
|
|
@@ -809,6 +808,6 @@ const qt = { class: "grid grid-rows-[auto_1fr] overflow-hidden @container" }, Jt
|
|
|
809
808
|
}
|
|
810
809
|
});
|
|
811
810
|
export {
|
|
812
|
-
|
|
811
|
+
sn as default
|
|
813
812
|
};
|
|
814
|
-
//# sourceMappingURL=queries-
|
|
813
|
+
//# sourceMappingURL=queries-B9YVJVQ4.js.map
|