@pinia/colada-devtools 0.1.9 → 0.2.0
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 +488 -372
- package/dist/index.js.map +1 -1
- package/dist-panel/(unselected)-B-_Xdo2t.js +17 -0
- package/dist-panel/(unselected)-B-_Xdo2t.js.map +1 -0
- package/dist-panel/{index-BNGmSTu0.js → (unselected)-BFwQCIEo.js} +5 -5
- package/dist-panel/(unselected)-BFwQCIEo.js.map +1 -0
- package/dist-panel/_mutationId_-BG1E7StK.js +306 -0
- package/dist-panel/_mutationId_-BG1E7StK.js.map +1 -0
- package/dist-panel/_queryId_-BHPtMxoe.js +423 -0
- package/dist-panel/_queryId_-BHPtMxoe.js.map +1 -0
- package/dist-panel/braces-B9tH-Qp5.js +294 -0
- package/dist-panel/braces-B9tH-Qp5.js.map +1 -0
- package/dist-panel/index-CTwvPt67.js +6403 -0
- package/dist-panel/index-CTwvPt67.js.map +1 -0
- package/dist-panel/{index-goOYcO8U.js → index-kHk614RY.js} +2 -2
- package/dist-panel/{index-goOYcO8U.js.map → index-kHk614RY.js.map} +1 -1
- package/dist-panel/index.js +1 -1
- package/dist-panel/{loader-t1YDOb8H.js → loader-nEPBwFfz.js} +2 -2
- package/dist-panel/loader-nEPBwFfz.js.map +1 -0
- package/dist-panel/{mouse-pointer-click-BMFWvdTu.js → mouse-pointer-click-DQLuAnaZ.js} +2 -2
- package/dist-panel/mouse-pointer-click-DQLuAnaZ.js.map +1 -0
- package/dist-panel/mutations-BZWQwG2S.js +297 -0
- package/dist-panel/mutations-BZWQwG2S.js.map +1 -0
- package/dist-panel/queries-D3ybdTKc.js +286 -0
- package/dist-panel/queries-D3ybdTKc.js.map +1 -0
- package/dist-panel/{settings-BRfTfxFz.js → settings-DddAyvXJ.js} +2 -2
- package/dist-panel/{settings-BRfTfxFz.js.map → settings-DddAyvXJ.js.map} +1 -1
- package/dist-panel/use-container-media-query-BWmwm2oB.js +555 -0
- package/dist-panel/use-container-media-query-BWmwm2oB.js.map +1 -0
- package/dist-shared/index.d.ts +105 -9
- package/dist-shared/index.js.map +1 -1
- package/package.json +9 -10
- package/dist-panel/_queryId_-BizYY_I8.js +0 -701
- package/dist-panel/_queryId_-BizYY_I8.js.map +0 -1
- package/dist-panel/index-BNGmSTu0.js.map +0 -1
- package/dist-panel/index-CIfbEdr_.js +0 -6340
- package/dist-panel/index-CIfbEdr_.js.map +0 -1
- package/dist-panel/loader-t1YDOb8H.js.map +0 -1
- package/dist-panel/mouse-pointer-click-BMFWvdTu.js.map +0 -1
- package/dist-panel/mutations-BNe8aMZH.js +0 -13
- package/dist-panel/mutations-BNe8aMZH.js.map +0 -1
- package/dist-panel/queries-0xQLbzuX.js +0 -795
- package/dist-panel/queries-0xQLbzuX.js.map +0 -1
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import { m as A, c as C, o as R, a as g, d as j, b as w, D as Se, _ as ye, E as F, G as ee, H as Q, I as we, J as _e, K as Pe, L as Me, j as L, v as T, M as te, N as ne, O as E, P as ae, n as be, Q as q, R as $, S as ke, T as Ce, g as Y, U as Re, V as Ee, W as Ne } from "./index-CTwvPt67.js";
|
|
2
|
+
import { miniJsonParse as $e } from "@pinia/colada-devtools/shared";
|
|
3
|
+
const Le = {
|
|
4
|
+
viewBox: "0 0 24 24",
|
|
5
|
+
width: "1.2em",
|
|
6
|
+
height: "1.2em"
|
|
7
|
+
};
|
|
8
|
+
function De(p, r) {
|
|
9
|
+
return R(), C("svg", Le, [...r[0] || (r[0] = [
|
|
10
|
+
g("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "2"
|
|
16
|
+
}, [
|
|
17
|
+
g("path", { d: "M22 12h-6l-2 3h-4l-2-3H2" }),
|
|
18
|
+
g("path", { d: "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11" })
|
|
19
|
+
], -1)
|
|
20
|
+
])]);
|
|
21
|
+
}
|
|
22
|
+
const Ye = A({ name: "lucide-inbox", render: De }), Oe = {
|
|
23
|
+
class: "progress-bar",
|
|
24
|
+
"aria-hidden": ""
|
|
25
|
+
}, Be = /* @__PURE__ */ j({
|
|
26
|
+
__name: "UCircleProgress.ce",
|
|
27
|
+
props: {
|
|
28
|
+
value: { type: Number },
|
|
29
|
+
min: { default: 0, type: Number },
|
|
30
|
+
max: { default: 100, type: Number },
|
|
31
|
+
strokeWidth: { default: 2, type: Number }
|
|
32
|
+
},
|
|
33
|
+
setup(p) {
|
|
34
|
+
Se((c) => ({
|
|
35
|
+
dfc273d4: r.value,
|
|
36
|
+
b5e811ce: c.strokeWidth
|
|
37
|
+
}));
|
|
38
|
+
const r = w(() => Math.round((p.value - p.min) / (p.max - p.min) * 100));
|
|
39
|
+
return (c, l) => (R(), C("div", Oe, [...l[0] || (l[0] = [
|
|
40
|
+
g("svg", null, [
|
|
41
|
+
g("circle", { class: "bg" }),
|
|
42
|
+
g("circle", { class: "fg" })
|
|
43
|
+
], -1)
|
|
44
|
+
])]));
|
|
45
|
+
}
|
|
46
|
+
}), Ve = ".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__ */ ye(Be, [["styles", [Ve]], ["__scopeId", "data-v-138f773b"]]), Ie = {
|
|
47
|
+
viewBox: "0 0 24 24",
|
|
48
|
+
width: "1.2em",
|
|
49
|
+
height: "1.2em"
|
|
50
|
+
};
|
|
51
|
+
function Te(p, r) {
|
|
52
|
+
return R(), C("svg", Ie, [...r[0] || (r[0] = [
|
|
53
|
+
g("g", {
|
|
54
|
+
fill: "none",
|
|
55
|
+
stroke: "currentColor",
|
|
56
|
+
"stroke-linecap": "round",
|
|
57
|
+
"stroke-linejoin": "round",
|
|
58
|
+
"stroke-width": "2"
|
|
59
|
+
}, [
|
|
60
|
+
g("rect", {
|
|
61
|
+
width: "5",
|
|
62
|
+
height: "18",
|
|
63
|
+
x: "14",
|
|
64
|
+
y: "3",
|
|
65
|
+
rx: "1"
|
|
66
|
+
}),
|
|
67
|
+
g("rect", {
|
|
68
|
+
width: "5",
|
|
69
|
+
height: "18",
|
|
70
|
+
x: "5",
|
|
71
|
+
y: "3",
|
|
72
|
+
rx: "1"
|
|
73
|
+
})
|
|
74
|
+
], -1)
|
|
75
|
+
])]);
|
|
76
|
+
}
|
|
77
|
+
const Ze = A({ name: "lucide-pause", render: Te }), Ae = {
|
|
78
|
+
viewBox: "0 0 24 24",
|
|
79
|
+
width: "1.2em",
|
|
80
|
+
height: "1.2em"
|
|
81
|
+
};
|
|
82
|
+
function je(p, r) {
|
|
83
|
+
return R(), C("svg", Ae, [...r[0] || (r[0] = [
|
|
84
|
+
g("path", {
|
|
85
|
+
fill: "none",
|
|
86
|
+
stroke: "currentColor",
|
|
87
|
+
"stroke-linecap": "round",
|
|
88
|
+
"stroke-linejoin": "round",
|
|
89
|
+
"stroke-width": "2",
|
|
90
|
+
d: "M20 6L9 17l-5-5"
|
|
91
|
+
}, null, -1)
|
|
92
|
+
])]);
|
|
93
|
+
}
|
|
94
|
+
const et = A({ name: "lucide-check", render: je }), G = F(performance.timeOrigin + performance.now());
|
|
95
|
+
let I, Z = 0;
|
|
96
|
+
function tt() {
|
|
97
|
+
return I || (I = setInterval(() => {
|
|
98
|
+
G.value = performance.timeOrigin + performance.now();
|
|
99
|
+
}, 50)), Z++, ee(() => {
|
|
100
|
+
--Z <= 0 && (clearInterval(I), I = void 0);
|
|
101
|
+
}), G;
|
|
102
|
+
}
|
|
103
|
+
function nt(p) {
|
|
104
|
+
return w(() => Q(p)?.map((r) => {
|
|
105
|
+
let c = r;
|
|
106
|
+
try {
|
|
107
|
+
c = typeof r == "string" ? JSON.parse(r) : r;
|
|
108
|
+
} catch {
|
|
109
|
+
}
|
|
110
|
+
return c && typeof c == "object" ? $e(c) : String(c);
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
const at = /* @__PURE__ */ j({
|
|
114
|
+
__name: "UInput.ce",
|
|
115
|
+
props: {
|
|
116
|
+
modelValue: {},
|
|
117
|
+
modelModifiers: {}
|
|
118
|
+
},
|
|
119
|
+
emits: ["update:modelValue"],
|
|
120
|
+
setup(p) {
|
|
121
|
+
const r = we(p, "modelValue");
|
|
122
|
+
return (c, l) => _e((R(), C("input", {
|
|
123
|
+
"onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
|
|
124
|
+
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",
|
|
125
|
+
placeholder: "Search Queries"
|
|
126
|
+
}, null, 512)), [
|
|
127
|
+
[Pe, r.value]
|
|
128
|
+
]);
|
|
129
|
+
}
|
|
130
|
+
}), Ue = {
|
|
131
|
+
viewBox: "0 0 24 24",
|
|
132
|
+
width: "1.2em",
|
|
133
|
+
height: "1.2em"
|
|
134
|
+
};
|
|
135
|
+
function He(p, r) {
|
|
136
|
+
return R(), C("svg", Ue, [...r[0] || (r[0] = [
|
|
137
|
+
g("g", {
|
|
138
|
+
fill: "none",
|
|
139
|
+
stroke: "currentColor",
|
|
140
|
+
"stroke-linecap": "round",
|
|
141
|
+
"stroke-linejoin": "round",
|
|
142
|
+
"stroke-width": "2"
|
|
143
|
+
}, [
|
|
144
|
+
g("path", { d: "m21 21l-4.34-4.34" }),
|
|
145
|
+
g("circle", {
|
|
146
|
+
cx: "11",
|
|
147
|
+
cy: "11",
|
|
148
|
+
r: "8"
|
|
149
|
+
})
|
|
150
|
+
], -1)
|
|
151
|
+
])]);
|
|
152
|
+
}
|
|
153
|
+
const st = A({ name: "lucide-search", render: He }), it = /* @__PURE__ */ j({
|
|
154
|
+
__name: "splitpanes",
|
|
155
|
+
props: {
|
|
156
|
+
horizontal: { type: Boolean, default: !1 },
|
|
157
|
+
pushOtherPanes: { type: Boolean, default: !0 },
|
|
158
|
+
maximizePanes: { type: Boolean, default: !0 },
|
|
159
|
+
// Maximize pane on splitter double click/tap.
|
|
160
|
+
rtl: { type: Boolean, default: !1 },
|
|
161
|
+
// Right to left direction.
|
|
162
|
+
firstSplitter: { type: Boolean, default: !1 }
|
|
163
|
+
},
|
|
164
|
+
emits: [
|
|
165
|
+
"ready",
|
|
166
|
+
"resize",
|
|
167
|
+
"resized",
|
|
168
|
+
"pane-click",
|
|
169
|
+
"pane-maximize",
|
|
170
|
+
"pane-add",
|
|
171
|
+
"pane-remove",
|
|
172
|
+
"splitter-click",
|
|
173
|
+
"splitter-dblclick"
|
|
174
|
+
],
|
|
175
|
+
setup(p, { emit: r }) {
|
|
176
|
+
const c = r, l = p;
|
|
177
|
+
Me();
|
|
178
|
+
const i = L([]), f = w(
|
|
179
|
+
() => i.value.reduce((e, t) => (e[~~t.id] = t) && e, {})
|
|
180
|
+
), x = w(() => i.value.length), S = L(null), h = L(!1), v = L({
|
|
181
|
+
mouseDown: !1,
|
|
182
|
+
dragging: !1,
|
|
183
|
+
activeSplitter: null,
|
|
184
|
+
cursorOffset: 0
|
|
185
|
+
// Cursor offset within the splitter.
|
|
186
|
+
}), z = L({
|
|
187
|
+
// Used to detect double click on touch devices.
|
|
188
|
+
splitter: null,
|
|
189
|
+
timeoutId: null
|
|
190
|
+
}), M = w(() => ({
|
|
191
|
+
[`splitpanes splitpanes--${l.horizontal ? "horizontal" : "vertical"}`]: !0,
|
|
192
|
+
"splitpanes--dragging": v.value.dragging
|
|
193
|
+
}));
|
|
194
|
+
let _ = () => {
|
|
195
|
+
};
|
|
196
|
+
function b(e) {
|
|
197
|
+
e.addEventListener("mousemove", N, { passive: !1 }), e.addEventListener("mouseup", m), "ontouchstart" in window && (e.addEventListener("touchmove", N, { passive: !1 }), e.addEventListener("touchend", m)), _ = () => {
|
|
198
|
+
e.removeEventListener("mousemove", N), e.removeEventListener("mouseup", m), "ontouchstart" in window && (e.removeEventListener("touchmove", N), e.removeEventListener("touchend", m)), _ = () => {
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
const k = (e, t) => {
|
|
203
|
+
const a = e.target.closest(".splitpanes__splitter");
|
|
204
|
+
if (a) {
|
|
205
|
+
const { left: n, top: s } = a.getBoundingClientRect(), { clientX: u, clientY: o } = "touches" in e ? e.touches[0] : e;
|
|
206
|
+
v.value.cursorOffset = l.horizontal ? o - s : u - n;
|
|
207
|
+
}
|
|
208
|
+
b(e.target.ownerDocument || document), v.value.mouseDown = !0, v.value.activeSplitter = t;
|
|
209
|
+
}, N = (e) => {
|
|
210
|
+
v.value.mouseDown && (e.preventDefault(), v.value.dragging = !0, requestAnimationFrame(() => {
|
|
211
|
+
re(ie(e)), P("resize", { event: e }, !0);
|
|
212
|
+
}));
|
|
213
|
+
}, m = (e) => {
|
|
214
|
+
v.value.dragging && P("resized", { event: e }, !0), v.value.mouseDown = !1, v.value.activeSplitter = null, setTimeout(() => {
|
|
215
|
+
v.value.dragging = !1, _();
|
|
216
|
+
}, 100);
|
|
217
|
+
}, O = (e, t) => {
|
|
218
|
+
"ontouchstart" in window && (e.preventDefault(), z.value.splitter === t ? (clearTimeout(z.value.timeoutId), z.value.timeoutId = null, B(e, t), z.value.splitter = null) : (z.value.splitter = t, z.value.timeoutId = setTimeout(() => z.value.splitter = null, 500))), v.value.dragging || P("splitter-click", { event: e, index: t }, !0);
|
|
219
|
+
}, B = (e, t) => {
|
|
220
|
+
if (P("splitter-dblclick", { event: e, index: t }, !0), l.maximizePanes) {
|
|
221
|
+
let a = 0;
|
|
222
|
+
i.value = i.value.map((n, s) => (n.size = s === t ? n.max : n.min, s !== t && (a += n.min), n)), i.value[t].size -= a, P("pane-maximize", {
|
|
223
|
+
event: e,
|
|
224
|
+
index: t,
|
|
225
|
+
pane: i.value[t]
|
|
226
|
+
}), P("resized", { event: e, index: t }, !0);
|
|
227
|
+
}
|
|
228
|
+
}, se = (e, t) => {
|
|
229
|
+
P("pane-click", {
|
|
230
|
+
event: e,
|
|
231
|
+
index: f.value[t].index,
|
|
232
|
+
pane: f.value[t]
|
|
233
|
+
});
|
|
234
|
+
}, ie = (e) => {
|
|
235
|
+
var t;
|
|
236
|
+
const a = (t = S.value) == null ? void 0 : t.getBoundingClientRect(), { clientX: n, clientY: s } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
237
|
+
return {
|
|
238
|
+
x: n - (l.horizontal ? 0 : v.value.cursorOffset) - a.left,
|
|
239
|
+
y: s - (l.horizontal ? v.value.cursorOffset : 0) - a.top
|
|
240
|
+
};
|
|
241
|
+
}, oe = (e) => {
|
|
242
|
+
e = e[l.horizontal ? "y" : "x"];
|
|
243
|
+
const t = S.value[l.horizontal ? "clientHeight" : "clientWidth"];
|
|
244
|
+
return l.rtl && !l.horizontal && (e = t - e), e * 100 / t;
|
|
245
|
+
}, re = (e) => {
|
|
246
|
+
const t = v.value.activeSplitter;
|
|
247
|
+
let a = {
|
|
248
|
+
prevPanesSize: W(t),
|
|
249
|
+
nextPanesSize: D(t),
|
|
250
|
+
prevReachedMinPanes: 0,
|
|
251
|
+
nextReachedMinPanes: 0
|
|
252
|
+
};
|
|
253
|
+
const n = 0 + (l.pushOtherPanes ? 0 : a.prevPanesSize), s = 100 - (l.pushOtherPanes ? 0 : a.nextPanesSize), u = Math.max(Math.min(oe(e), s), n);
|
|
254
|
+
let o = [t, t + 1], d = i.value[o[0]], y = i.value[o[1]];
|
|
255
|
+
if (!d || !y) return;
|
|
256
|
+
const K = d.max < 100 && u >= d.max + a.prevPanesSize, ge = y.max < 100 && u <= 100 - (y.max + D(t + 1));
|
|
257
|
+
if (K || ge) {
|
|
258
|
+
K ? (d.size = d.max, y.size = Math.max(100 - d.max - a.prevPanesSize - a.nextPanesSize, 0)) : (d.size = Math.max(
|
|
259
|
+
100 - y.max - a.prevPanesSize - D(t + 1),
|
|
260
|
+
0
|
|
261
|
+
), y.size = y.max);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
if (l.pushOtherPanes) {
|
|
265
|
+
const X = le(a, u);
|
|
266
|
+
if (!X) return;
|
|
267
|
+
({ sums: a, panesToResize: o } = X), d = i.value[o[0]], y = i.value[o[1]];
|
|
268
|
+
}
|
|
269
|
+
d && (d.size = Math.min(
|
|
270
|
+
Math.max(u - a.prevPanesSize - a.prevReachedMinPanes, d.min),
|
|
271
|
+
d.max
|
|
272
|
+
)), y && (y.size = Math.min(
|
|
273
|
+
Math.max(100 - u - a.nextPanesSize - a.nextReachedMinPanes, y.min),
|
|
274
|
+
y.max
|
|
275
|
+
));
|
|
276
|
+
}, le = (e, t) => {
|
|
277
|
+
const a = v.value.activeSplitter, n = [a, a + 1];
|
|
278
|
+
let s = i.value[n[0]], u = i.value[n[1]];
|
|
279
|
+
return s && t < e.prevPanesSize + s.min && (n[0] = ue(a).index, e.prevReachedMinPanes = 0, n[0] < a && i.value.forEach((o, d) => {
|
|
280
|
+
d > n[0] && d <= a && (o.size = o.min, e.prevReachedMinPanes += o.min);
|
|
281
|
+
}), e.prevPanesSize = W(n[0]), n[0] === void 0) ? (e.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((o, d) => {
|
|
282
|
+
d > 0 && d <= a && (o.size = o.min, e.prevReachedMinPanes += o.min);
|
|
283
|
+
}), u.size = 100 - e.prevReachedMinPanes - i.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : t > 100 - e.nextPanesSize - i.value[n[1]].min && (n[1] = ce(a).index, e.nextReachedMinPanes = 0, n[1] > a + 1 && i.value.forEach((o, d) => {
|
|
284
|
+
d > a && d < n[1] && (o.size = o.min, e.nextReachedMinPanes += o.min);
|
|
285
|
+
}), e.nextPanesSize = D(n[1] - 1), n[1] === void 0) ? (e.nextReachedMinPanes = 0, i.value.forEach((o, d) => {
|
|
286
|
+
d < x.value - 1 && d >= a + 1 && (o.size = o.min, e.nextReachedMinPanes += o.min);
|
|
287
|
+
}), i.value[n[0]].size = 100 - e.prevPanesSize - D(n[0] - 1), null) : { sums: e, panesToResize: n };
|
|
288
|
+
}, W = (e) => i.value.reduce((t, a, n) => t + (n < e ? a.size : 0), 0), D = (e) => i.value.reduce((t, a, n) => t + (n > e + 1 ? a.size : 0), 0), ue = (e) => [...i.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, ce = (e) => i.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, de = () => {
|
|
289
|
+
var e;
|
|
290
|
+
const t = Array.from(((e = S.value) == null ? void 0 : e.children) || []);
|
|
291
|
+
for (const a of t) {
|
|
292
|
+
const n = a.classList.contains("splitpanes__pane"), s = a.classList.contains("splitpanes__splitter");
|
|
293
|
+
!n && !s && (a.remove(), console.warn(
|
|
294
|
+
"Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."
|
|
295
|
+
));
|
|
296
|
+
}
|
|
297
|
+
}, J = (e, t, a = !1) => {
|
|
298
|
+
const n = e - 1, s = document.createElement("div");
|
|
299
|
+
s.classList.add("splitpanes__splitter"), a || (s.onmousedown = (u) => k(u, n), typeof window < "u" && "ontouchstart" in window && (s.ontouchstart = (u) => k(u, n)), s.onclick = (u) => O(u, n + 1)), s.ondblclick = (u) => B(u, n + 1), t.parentNode.insertBefore(s, t);
|
|
300
|
+
}, ve = (e) => {
|
|
301
|
+
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
302
|
+
}, V = () => {
|
|
303
|
+
var e;
|
|
304
|
+
const t = Array.from(((e = S.value) == null ? void 0 : e.children) || []);
|
|
305
|
+
for (const n of t)
|
|
306
|
+
n.className.includes("splitpanes__splitter") && ve(n);
|
|
307
|
+
let a = 0;
|
|
308
|
+
for (const n of t)
|
|
309
|
+
n.className.includes("splitpanes__pane") && (!a && l.firstSplitter ? J(a, n, !0) : a && J(a, n), a++);
|
|
310
|
+
}, me = ({ uid: e, ...t }) => {
|
|
311
|
+
const a = f.value[e];
|
|
312
|
+
for (const [n, s] of Object.entries(t)) a[n] = s;
|
|
313
|
+
}, pe = (e) => {
|
|
314
|
+
var t;
|
|
315
|
+
let a = -1;
|
|
316
|
+
Array.from(((t = S.value) == null ? void 0 : t.children) || []).some((n) => (n.className.includes("splitpanes__pane") && a++, n.isSameNode(e.el))), i.value.splice(a, 0, { ...e, index: a }), i.value.forEach((n, s) => n.index = s), h.value && q(() => {
|
|
317
|
+
V(), U({ addedPane: i.value[a] }), P("pane-add", { pane: i.value[a] });
|
|
318
|
+
});
|
|
319
|
+
}, he = (e) => {
|
|
320
|
+
const t = i.value.findIndex((n) => n.id === e);
|
|
321
|
+
i.value[t].el = null;
|
|
322
|
+
const a = i.value.splice(t, 1)[0];
|
|
323
|
+
i.value.forEach((n, s) => n.index = s), q(() => {
|
|
324
|
+
V(), P("pane-remove", { pane: a }), U({ removedPane: { ...a } });
|
|
325
|
+
});
|
|
326
|
+
}, U = (e = {}) => {
|
|
327
|
+
!e.addedPane && !e.removedPane ? ze() : i.value.some((t) => t.givenSize !== null || t.min || t.max < 100) ? xe(e) : fe(), h.value && P("resized");
|
|
328
|
+
}, fe = () => {
|
|
329
|
+
const e = 100 / x.value;
|
|
330
|
+
let t = 0;
|
|
331
|
+
const a = [], n = [];
|
|
332
|
+
for (const s of i.value)
|
|
333
|
+
s.size = Math.max(Math.min(e, s.max), s.min), t -= s.size, s.size >= s.max && a.push(s.id), s.size <= s.min && n.push(s.id);
|
|
334
|
+
t > 0.1 && H(t, a, n);
|
|
335
|
+
}, ze = () => {
|
|
336
|
+
let e = 100;
|
|
337
|
+
const t = [], a = [];
|
|
338
|
+
let n = 0;
|
|
339
|
+
for (const u of i.value)
|
|
340
|
+
e -= u.size, u.givenSize !== null && n++, u.size >= u.max && t.push(u.id), u.size <= u.min && a.push(u.id);
|
|
341
|
+
let s = 100;
|
|
342
|
+
if (e > 0.1) {
|
|
343
|
+
for (const u of i.value)
|
|
344
|
+
u.givenSize === null && (u.size = Math.max(
|
|
345
|
+
Math.min(e / (x.value - n), u.max),
|
|
346
|
+
u.min
|
|
347
|
+
)), s -= u.size;
|
|
348
|
+
s > 0.1 && H(s, t, a);
|
|
349
|
+
}
|
|
350
|
+
}, xe = ({ addedPane: e, removedPane: t } = {}) => {
|
|
351
|
+
let a = 100 / x.value, n = 0;
|
|
352
|
+
const s = [], u = [];
|
|
353
|
+
(e?.givenSize ?? null) !== null && (a = (100 - e.givenSize) / (x.value - 1));
|
|
354
|
+
for (const o of i.value)
|
|
355
|
+
n -= o.size, o.size >= o.max && s.push(o.id), o.size <= o.min && u.push(o.id);
|
|
356
|
+
if (!(Math.abs(n) < 0.1)) {
|
|
357
|
+
for (const o of i.value)
|
|
358
|
+
e?.givenSize !== null && e?.id === o.id || (o.size = Math.max(Math.min(a, o.max), o.min)), n -= o.size, o.size >= o.max && s.push(o.id), o.size <= o.min && u.push(o.id);
|
|
359
|
+
n > 0.1 && H(n, s, u);
|
|
360
|
+
}
|
|
361
|
+
}, H = (e, t, a) => {
|
|
362
|
+
let n;
|
|
363
|
+
e > 0 ? n = e / (x.value - t.length) : n = e / (x.value - a.length), i.value.forEach((s, u) => {
|
|
364
|
+
if (e > 0 && !t.includes(s.id)) {
|
|
365
|
+
const o = Math.max(Math.min(s.size + n, s.max), s.min), d = o - s.size;
|
|
366
|
+
e -= d, s.size = o;
|
|
367
|
+
} else if (!a.includes(s.id)) {
|
|
368
|
+
const o = Math.max(Math.min(s.size + n, s.max), s.min), d = o - s.size;
|
|
369
|
+
e -= d, s.size = o;
|
|
370
|
+
}
|
|
371
|
+
}), Math.abs(e) > 0.1 && q(() => {
|
|
372
|
+
h.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
373
|
+
});
|
|
374
|
+
}, P = (e, t = void 0, a = !1) => {
|
|
375
|
+
const n = t?.index ?? v.value.activeSplitter ?? null;
|
|
376
|
+
c(e, {
|
|
377
|
+
...t,
|
|
378
|
+
...n !== null && { index: n },
|
|
379
|
+
...a && n !== null && {
|
|
380
|
+
prevPane: i.value[n - (l.firstSplitter ? 1 : 0)],
|
|
381
|
+
nextPane: i.value[n + (l.firstSplitter ? 0 : 1)]
|
|
382
|
+
},
|
|
383
|
+
panes: i.value.map((s) => ({
|
|
384
|
+
min: s.min,
|
|
385
|
+
max: s.max,
|
|
386
|
+
size: s.size
|
|
387
|
+
}))
|
|
388
|
+
});
|
|
389
|
+
};
|
|
390
|
+
return T(
|
|
391
|
+
() => l.firstSplitter,
|
|
392
|
+
() => V()
|
|
393
|
+
), te(() => {
|
|
394
|
+
de(), V(), U(), P("ready"), h.value = !0;
|
|
395
|
+
}), ne(() => h.value = !1), E("panes", i), E("indexedPanes", f), E(
|
|
396
|
+
"horizontal",
|
|
397
|
+
w(() => l.horizontal)
|
|
398
|
+
), E("requestUpdate", me), E("onPaneAdd", pe), E("onPaneRemove", he), E("onPaneClick", se), (e, t) => (R(), C("div", {
|
|
399
|
+
class: be(M.value),
|
|
400
|
+
ref_key: "containerEl",
|
|
401
|
+
ref: S
|
|
402
|
+
}, [
|
|
403
|
+
ae(e.$slots, "default")
|
|
404
|
+
], 2));
|
|
405
|
+
}
|
|
406
|
+
}), ot = /* @__PURE__ */ j({
|
|
407
|
+
__name: "pane",
|
|
408
|
+
props: {
|
|
409
|
+
size: { type: [Number, String] },
|
|
410
|
+
minSize: { type: [Number, String], default: 0 },
|
|
411
|
+
maxSize: { type: [Number, String], default: 100 }
|
|
412
|
+
},
|
|
413
|
+
setup(p) {
|
|
414
|
+
var r;
|
|
415
|
+
const c = p, l = $("requestUpdate"), i = $("onPaneAdd"), f = $("horizontal"), x = $("onPaneRemove"), S = $("onPaneClick"), h = (r = ke()) == null ? void 0 : r.uid, v = $("indexedPanes"), z = w(() => v.value[h]), M = L(null), _ = w(() => {
|
|
416
|
+
const m = isNaN(c.size) || c.size === void 0 ? 0 : parseFloat(c.size);
|
|
417
|
+
return Math.max(Math.min(m, k.value), b.value);
|
|
418
|
+
}), b = w(() => {
|
|
419
|
+
const m = parseFloat(c.minSize);
|
|
420
|
+
return isNaN(m) ? 0 : m;
|
|
421
|
+
}), k = w(() => {
|
|
422
|
+
const m = parseFloat(c.maxSize);
|
|
423
|
+
return isNaN(m) ? 100 : m;
|
|
424
|
+
}), N = w(() => {
|
|
425
|
+
var m;
|
|
426
|
+
return `${f.value ? "height" : "width"}: ${(m = z.value) == null ? void 0 : m.size}%`;
|
|
427
|
+
});
|
|
428
|
+
return T(
|
|
429
|
+
() => _.value,
|
|
430
|
+
(m) => l({ uid: h, size: m })
|
|
431
|
+
), T(
|
|
432
|
+
() => b.value,
|
|
433
|
+
(m) => l({ uid: h, min: m })
|
|
434
|
+
), T(
|
|
435
|
+
() => k.value,
|
|
436
|
+
(m) => l({ uid: h, max: m })
|
|
437
|
+
), te(() => {
|
|
438
|
+
i({
|
|
439
|
+
id: h,
|
|
440
|
+
el: M.value,
|
|
441
|
+
min: b.value,
|
|
442
|
+
max: k.value,
|
|
443
|
+
// The given size (useful to know the user intention).
|
|
444
|
+
givenSize: c.size === void 0 ? null : _.value,
|
|
445
|
+
size: _.value
|
|
446
|
+
// The computed current size at any time.
|
|
447
|
+
});
|
|
448
|
+
}), ne(() => x(h)), (m, O) => (R(), C("div", {
|
|
449
|
+
ref_key: "paneEl",
|
|
450
|
+
ref: M,
|
|
451
|
+
class: "splitpanes__pane",
|
|
452
|
+
onClick: O[0] || (O[0] = (B) => Y(S)(B, Y(h))),
|
|
453
|
+
style: Ce(N.value)
|
|
454
|
+
}, [
|
|
455
|
+
ae(m.$slots, "default")
|
|
456
|
+
], 4));
|
|
457
|
+
}
|
|
458
|
+
}), qe = "bae45330cd3d4e0e96b60d26b57009b5";
|
|
459
|
+
let Fe = 0;
|
|
460
|
+
const Qe = () => `${qe}-${Date.now()}-${Fe++}`;
|
|
461
|
+
class We extends Event {
|
|
462
|
+
constructor(r, c, l) {
|
|
463
|
+
super(r), this.container = c, this.matches = l;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
class Je extends EventTarget {
|
|
467
|
+
#e;
|
|
468
|
+
#t = new AbortController();
|
|
469
|
+
container;
|
|
470
|
+
matches;
|
|
471
|
+
constructor(r, c) {
|
|
472
|
+
super(), this.container = c;
|
|
473
|
+
const l = `container-query-observer-${Qe()}`, i = `data-${l}`;
|
|
474
|
+
r.setAttribute(i, "");
|
|
475
|
+
const f = `--${l}`, x = `
|
|
476
|
+
@property ${f} {
|
|
477
|
+
syntax: '<custom-ident>';
|
|
478
|
+
inherits: false;
|
|
479
|
+
initial-value: --false;
|
|
480
|
+
}
|
|
481
|
+
`.trim(), S = `
|
|
482
|
+
@container ${c} {
|
|
483
|
+
[${i}] {
|
|
484
|
+
${f}: --true;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
`.trim(), h = r.getRootNode();
|
|
488
|
+
if (!(h instanceof ShadowRoot) && !(h instanceof Document))
|
|
489
|
+
throw console.error("root node of element isn't a ShadowRoot or Document", h), new TypeError("Root node must be a ShadowRoot or Document");
|
|
490
|
+
const v = new CSSStyleSheet();
|
|
491
|
+
if (v.replaceSync(x), document.adoptedStyleSheets.push(v), h.ownerDocument === document) {
|
|
492
|
+
const _ = new CSSStyleSheet();
|
|
493
|
+
_.replaceSync(S), h.adoptedStyleSheets.push(_);
|
|
494
|
+
}
|
|
495
|
+
const M = getComputedStyle(r);
|
|
496
|
+
this.matches = M.getPropertyValue(f) === "--true", this.#e = r, this.#n(f, c, r);
|
|
497
|
+
}
|
|
498
|
+
#n(r, c, l) {
|
|
499
|
+
const i = {};
|
|
500
|
+
l.style.setProperty("transition", `${r} 0.001ms step-start`), l.style.setProperty("transition-behavior", "allow-discrete"), l.addEventListener(
|
|
501
|
+
"transitionrun",
|
|
502
|
+
(S) => {
|
|
503
|
+
if (l === S.target) {
|
|
504
|
+
const h = getComputedStyle(l), v = {}, z = h.getPropertyValue(r), M = i[r];
|
|
505
|
+
if (z !== M && (v[r] = z, i[r] = z, r in v)) {
|
|
506
|
+
const b = v[r] === "--true";
|
|
507
|
+
this.matches = b;
|
|
508
|
+
const k = new We("change", c, b);
|
|
509
|
+
this.dispatchEvent(k);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
{ signal: this.#t.signal }
|
|
514
|
+
);
|
|
515
|
+
const x = getComputedStyle(l).getPropertyValue(r);
|
|
516
|
+
i[r] = x;
|
|
517
|
+
}
|
|
518
|
+
dispose() {
|
|
519
|
+
this.#e.style.removeProperty("transition"), this.#e.style.removeProperty("transition-behavior"), this.#t.abort();
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
typeof window < "u" && (HTMLElement.prototype.matchContainer || (HTMLElement.prototype.matchContainer = function(r) {
|
|
523
|
+
return new Je(this, r);
|
|
524
|
+
}));
|
|
525
|
+
function rt(p, r) {
|
|
526
|
+
const c = Ne(
|
|
527
|
+
() => typeof document < "u" && typeof document.body.matchContainer == "function"
|
|
528
|
+
), l = F(), i = F(!1);
|
|
529
|
+
return Re(() => {
|
|
530
|
+
c.value && (l.value?.dispose(), l.value = Q(r)?.matchContainer(Q(p)), i.value = !!l.value?.matches);
|
|
531
|
+
}), ee(() => {
|
|
532
|
+
l.value?.dispose();
|
|
533
|
+
}), Ee(
|
|
534
|
+
l,
|
|
535
|
+
"change",
|
|
536
|
+
(f) => {
|
|
537
|
+
i.value = f.matches;
|
|
538
|
+
},
|
|
539
|
+
{ passive: !0 }
|
|
540
|
+
), w(() => i.value);
|
|
541
|
+
}
|
|
542
|
+
export {
|
|
543
|
+
et as _,
|
|
544
|
+
nt as a,
|
|
545
|
+
Ze as b,
|
|
546
|
+
Ge as c,
|
|
547
|
+
rt as d,
|
|
548
|
+
st as e,
|
|
549
|
+
at as f,
|
|
550
|
+
Ye as g,
|
|
551
|
+
it as h,
|
|
552
|
+
tt as u,
|
|
553
|
+
ot as x
|
|
554
|
+
};
|
|
555
|
+
//# sourceMappingURL=use-container-media-query-BWmwm2oB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-container-media-query-BWmwm2oB.js","sources":["../src/panel/components/UCircleProgress.ce.vue","../src/panel/composables/performance-now.ts","../src/panel/composables/entries.ts","../src/panel/components/UInput.ce.vue","../../node_modules/.pnpm/@posva+splitpanes@4.0.6_vue@3.5.25_typescript@5.9.3_/node_modules/@posva/splitpanes/dist/splitpanes.js","../src/panel/composables/use-container-media-query.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\n\nconst {\n value,\n min = 0,\n max = 100,\n strokeWidth = 2,\n} = defineProps<{\n value: number\n min?: number\n max?: number\n strokeWidth?: number\n}>()\n\nconst valuePercentage = computed(() => Math.round(((value - min) / (max - min)) * 100))\n</script>\n\n<template>\n <div class=\"progress-bar\" aria-hidden>\n <svg>\n <circle class=\"bg\" />\n <circle class=\"fg\" />\n </svg>\n </div>\n</template>\n\n<style scoped>\n.progress-bar > svg {\n --progress-value: v-bind(valuePercentage);\n --size: 1em;\n --half-size: calc(var(--size) / 2);\n --stroke-width: calc(v-bind(strokeWidth) * var(--size) / 10);\n --radius: calc((var(--size) - var(--stroke-width)) / 2);\n --circumference: calc(var(--radius) * pi * 2);\n --dash: calc((var(--progress-value) * var(--circumference)) / 100);\n animation: progress-animation 100s linear 0s 1 forwards;\n\n width: var(--size);\n height: var(--size);\n}\n\n.progress-bar circle {\n cx: var(--half-size);\n cy: var(--half-size);\n r: var(--radius);\n stroke-width: var(--stroke-width);\n fill: none;\n stroke-linecap: butt;\n}\n\n.progress-bar circle.bg {\n stroke: color-mix(in hsl, currentColor 25%, var(--ui-bg));\n}\n\n.progress-bar circle.fg {\n transform: rotate(-90deg);\n transform-origin: var(--half-size) var(--half-size);\n stroke-dasharray: var(--dash) calc(var(--circumference) - var(--dash));\n transition: stroke-dasharray 0.3s linear 0s;\n stroke: currentColor;\n}\n</style>\n","import { onScopeDispose, shallowRef } from 'vue'\n\n// share this variable among all instances\nconst now = shallowRef(performance.timeOrigin + performance.now())\nlet intervalId: ReturnType<typeof setInterval> | undefined\nlet useCount = 0\n\n/**\n * Reactive and shared `performance.now()` that updates on the specified interval.\n */\nexport function usePerformanceNow() {\n if (!intervalId) {\n intervalId = setInterval(() => {\n now.value = performance.timeOrigin + performance.now()\n }, 50)\n }\n\n useCount++\n onScopeDispose(() => {\n if (--useCount <= 0) {\n clearInterval(intervalId)\n intervalId = undefined\n }\n })\n\n return now\n}\n","import type { EntryKey } from '@pinia/colada'\nimport { miniJsonParse } from '@pinia/colada-devtools/shared'\nimport { computed, toValue, type ComputedRef, type MaybeRefOrGetter } from 'vue'\n\nexport function useFormattedKey(entryKey: MaybeRefOrGetter<EntryKey>): ComputedRef<string[]>\nexport function useFormattedKey(\n entryKey: MaybeRefOrGetter<EntryKey | undefined>,\n): ComputedRef<string[] | undefined>\nexport function useFormattedKey(\n entryKey: MaybeRefOrGetter<EntryKey | undefined>,\n): ComputedRef<string[] | undefined> {\n // TODO: colorize the output based on the type of value\n return computed(() => {\n return toValue(entryKey)?.map((rawValue) => {\n let value: unknown = rawValue\n try {\n value = typeof rawValue === 'string' ? JSON.parse(rawValue) : rawValue\n } catch {\n // If parsing fails, keep the original value\n }\n return value && typeof value === 'object' ? miniJsonParse(value) : String(value)\n })\n })\n}\n","<script setup lang=\"ts\">\nconst modelValue = defineModel<string | number>()\n</script>\n\n<template>\n <input\n v-model=\"modelValue\"\n 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\"\n placeholder=\"Search Queries\"\n />\n</template>\n","import { defineComponent as G, useSlots as fe, ref as k, computed as h, watch as A, onMounted as X, onBeforeUnmount as Y, provide as g, createElementBlock as W, openBlock as I, normalizeClass as pe, renderSlot as J, nextTick as T, inject as E, getCurrentInstance as me, normalizeStyle as de, unref as j } from \"vue\";\nconst he = /* @__PURE__ */ G({\n __name: \"splitpanes\",\n props: {\n horizontal: { type: Boolean, default: !1 },\n pushOtherPanes: { type: Boolean, default: !0 },\n maximizePanes: { type: Boolean, default: !0 },\n // Maximize pane on splitter double click/tap.\n rtl: { type: Boolean, default: !1 },\n // Right to left direction.\n firstSplitter: { type: Boolean, default: !1 }\n },\n emits: [\n \"ready\",\n \"resize\",\n \"resized\",\n \"pane-click\",\n \"pane-maximize\",\n \"pane-add\",\n \"pane-remove\",\n \"splitter-click\",\n \"splitter-dblclick\"\n ],\n setup(L, { emit: x }) {\n const y = x, c = L;\n fe();\n const l = k([]), w = h(\n () => l.value.reduce((e, n) => (e[~~n.id] = n) && e, {})\n ), z = h(() => l.value.length), f = k(null), S = k(!1), v = k({\n mouseDown: !1,\n dragging: !1,\n activeSplitter: null,\n cursorOffset: 0\n // Cursor offset within the splitter.\n }), d = k({\n // Used to detect double click on touch devices.\n splitter: null,\n timeoutId: null\n }), _ = h(() => ({\n [`splitpanes splitpanes--${c.horizontal ? \"horizontal\" : \"vertical\"}`]: !0,\n \"splitpanes--dragging\": v.value.dragging\n }));\n let P = () => {\n };\n function R(e) {\n e.addEventListener(\"mousemove\", M, { passive: !1 }), e.addEventListener(\"mouseup\", u), \"ontouchstart\" in window && (e.addEventListener(\"touchmove\", M, { passive: !1 }), e.addEventListener(\"touchend\", u)), P = () => {\n e.removeEventListener(\"mousemove\", M), e.removeEventListener(\"mouseup\", u), \"ontouchstart\" in window && (e.removeEventListener(\"touchmove\", M), e.removeEventListener(\"touchend\", u)), P = () => {\n };\n };\n }\n const N = (e, n) => {\n const t = e.target.closest(\".splitpanes__splitter\");\n if (t) {\n const { left: i, top: a } = t.getBoundingClientRect(), { clientX: o, clientY: s } = \"touches\" in e ? e.touches[0] : e;\n v.value.cursorOffset = c.horizontal ? s - a : o - i;\n }\n R(e.target.ownerDocument || document), v.value.mouseDown = !0, v.value.activeSplitter = n;\n }, M = (e) => {\n v.value.mouseDown && (e.preventDefault(), v.value.dragging = !0, requestAnimationFrame(() => {\n Z(Q(e)), m(\"resize\", { event: e }, !0);\n }));\n }, u = (e) => {\n v.value.dragging && m(\"resized\", { event: e }, !0), v.value.mouseDown = !1, v.value.activeSplitter = null, setTimeout(() => {\n v.value.dragging = !1, P();\n }, 100);\n }, C = (e, n) => {\n \"ontouchstart\" in window && (e.preventDefault(), d.value.splitter === n ? (clearTimeout(d.value.timeoutId), d.value.timeoutId = null, B(e, n), d.value.splitter = null) : (d.value.splitter = n, d.value.timeoutId = setTimeout(() => d.value.splitter = null, 500))), v.value.dragging || m(\"splitter-click\", { event: e, index: n }, !0);\n }, B = (e, n) => {\n if (m(\"splitter-dblclick\", { event: e, index: n }, !0), c.maximizePanes) {\n let t = 0;\n l.value = l.value.map((i, a) => (i.size = a === n ? i.max : i.min, a !== n && (t += i.min), i)), l.value[n].size -= t, m(\"pane-maximize\", {\n event: e,\n index: n,\n pane: l.value[n]\n }), m(\"resized\", { event: e, index: n }, !0);\n }\n }, K = (e, n) => {\n m(\"pane-click\", {\n event: e,\n index: w.value[n].index,\n pane: w.value[n]\n });\n }, Q = (e) => {\n var a;\n const n = (a = f.value) == null ? void 0 : a.getBoundingClientRect(), { clientX: t, clientY: i } = \"ontouchstart\" in window && e.touches ? e.touches[0] : e;\n return {\n x: t - (c.horizontal ? 0 : v.value.cursorOffset) - n.left,\n y: i - (c.horizontal ? v.value.cursorOffset : 0) - n.top\n };\n }, V = (e) => {\n e = e[c.horizontal ? \"y\" : \"x\"];\n const n = f.value[c.horizontal ? \"clientHeight\" : \"clientWidth\"];\n return c.rtl && !c.horizontal && (e = n - e), e * 100 / n;\n }, Z = (e) => {\n const n = v.value.activeSplitter;\n let t = {\n prevPanesSize: U(n),\n nextPanesSize: b(n),\n prevReachedMinPanes: 0,\n nextReachedMinPanes: 0\n };\n const i = 0 + (c.pushOtherPanes ? 0 : t.prevPanesSize), a = 100 - (c.pushOtherPanes ? 0 : t.nextPanesSize), o = Math.max(Math.min(V(e), a), i);\n let s = [n, n + 1], r = l.value[s[0]], p = l.value[s[1]];\n if (!r || !p) return;\n const F = r.max < 100 && o >= r.max + t.prevPanesSize, ve = p.max < 100 && o <= 100 - (p.max + b(n + 1));\n if (F || ve) {\n F ? (r.size = r.max, p.size = Math.max(100 - r.max - t.prevPanesSize - t.nextPanesSize, 0)) : (r.size = Math.max(\n 100 - p.max - t.prevPanesSize - b(n + 1),\n 0\n ), p.size = p.max);\n return;\n }\n if (c.pushOtherPanes) {\n const H = ee(t, o);\n if (!H) return;\n ({ sums: t, panesToResize: s } = H), r = l.value[s[0]], p = l.value[s[1]];\n }\n r && (r.size = Math.min(\n Math.max(o - t.prevPanesSize - t.prevReachedMinPanes, r.min),\n r.max\n )), p && (p.size = Math.min(\n Math.max(100 - o - t.nextPanesSize - t.nextReachedMinPanes, p.min),\n p.max\n ));\n }, ee = (e, n) => {\n const t = v.value.activeSplitter, i = [t, t + 1];\n let a = l.value[i[0]], o = l.value[i[1]];\n return a && n < e.prevPanesSize + a.min && (i[0] = ne(t).index, e.prevReachedMinPanes = 0, i[0] < t && l.value.forEach((s, r) => {\n r > i[0] && r <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);\n }), e.prevPanesSize = U(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((s, r) => {\n r > 0 && r <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);\n }), o.size = 100 - e.prevReachedMinPanes - l.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : n > 100 - e.nextPanesSize - l.value[i[1]].min && (i[1] = ie(t).index, e.nextReachedMinPanes = 0, i[1] > t + 1 && l.value.forEach((s, r) => {\n r > t && r < i[1] && (s.size = s.min, e.nextReachedMinPanes += s.min);\n }), e.nextPanesSize = b(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((s, r) => {\n r < z.value - 1 && r >= t + 1 && (s.size = s.min, e.nextReachedMinPanes += s.min);\n }), l.value[i[0]].size = 100 - e.prevPanesSize - b(i[0] - 1), null) : { sums: e, panesToResize: i };\n }, U = (e) => l.value.reduce((n, t, i) => n + (i < e ? t.size : 0), 0), b = (e) => l.value.reduce((n, t, i) => n + (i > e + 1 ? t.size : 0), 0), ne = (e) => [...l.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, ie = (e) => l.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, te = () => {\n var n;\n const e = Array.from(((n = f.value) == null ? void 0 : n.children) || []);\n for (const t of e) {\n const i = t.classList.contains(\"splitpanes__pane\"), a = t.classList.contains(\"splitpanes__splitter\");\n !i && !a && (t.remove(), console.warn(\n \"Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.\"\n ));\n }\n }, $ = (e, n, t = !1) => {\n const i = e - 1, a = document.createElement(\"div\");\n a.classList.add(\"splitpanes__splitter\"), t || (a.onmousedown = (o) => N(o, i), typeof window < \"u\" && \"ontouchstart\" in window && (a.ontouchstart = (o) => N(o, i)), a.onclick = (o) => C(o, i + 1)), a.ondblclick = (o) => B(o, i + 1), n.parentNode.insertBefore(a, n);\n }, ae = (e) => {\n e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();\n }, O = () => {\n var t;\n const e = Array.from(((t = f.value) == null ? void 0 : t.children) || []);\n for (const i of e)\n i.className.includes(\"splitpanes__splitter\") && ae(i);\n let n = 0;\n for (const i of e)\n i.className.includes(\"splitpanes__pane\") && (!n && c.firstSplitter ? $(n, i, !0) : n && $(n, i), n++);\n }, se = ({ uid: e, ...n }) => {\n const t = w.value[e];\n for (const [i, a] of Object.entries(n)) t[i] = a;\n }, le = (e) => {\n var t;\n let n = -1;\n Array.from(((t = f.value) == null ? void 0 : t.children) || []).some((i) => (i.className.includes(\"splitpanes__pane\") && n++, i.isSameNode(e.el))), l.value.splice(n, 0, { ...e, index: n }), l.value.forEach((i, a) => i.index = a), S.value && T(() => {\n O(), q({ addedPane: l.value[n] }), m(\"pane-add\", { pane: l.value[n] });\n });\n }, oe = (e) => {\n const n = l.value.findIndex((i) => i.id === e);\n l.value[n].el = null;\n const t = l.value.splice(n, 1)[0];\n l.value.forEach((i, a) => i.index = a), T(() => {\n O(), m(\"pane-remove\", { pane: t }), q({ removedPane: { ...t } });\n });\n }, q = (e = {}) => {\n !e.addedPane && !e.removedPane ? ue() : l.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? ce(e) : re(), S.value && m(\"resized\");\n }, re = () => {\n const e = 100 / z.value;\n let n = 0;\n const t = [], i = [];\n for (const a of l.value)\n a.size = Math.max(Math.min(e, a.max), a.min), n -= a.size, a.size >= a.max && t.push(a.id), a.size <= a.min && i.push(a.id);\n n > 0.1 && D(n, t, i);\n }, ue = () => {\n let e = 100;\n const n = [], t = [];\n let i = 0;\n for (const o of l.value)\n e -= o.size, o.givenSize !== null && i++, o.size >= o.max && n.push(o.id), o.size <= o.min && t.push(o.id);\n let a = 100;\n if (e > 0.1) {\n for (const o of l.value)\n o.givenSize === null && (o.size = Math.max(\n Math.min(e / (z.value - i), o.max),\n o.min\n )), a -= o.size;\n a > 0.1 && D(a, n, t);\n }\n }, ce = ({ addedPane: e, removedPane: n } = {}) => {\n let t = 100 / z.value, i = 0;\n const a = [], o = [];\n ((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (z.value - 1));\n for (const s of l.value)\n i -= s.size, s.size >= s.max && a.push(s.id), s.size <= s.min && o.push(s.id);\n if (!(Math.abs(i) < 0.1)) {\n for (const s of l.value)\n (e == null ? void 0 : e.givenSize) !== null && (e == null ? void 0 : e.id) === s.id || (s.size = Math.max(Math.min(t, s.max), s.min)), i -= s.size, s.size >= s.max && a.push(s.id), s.size <= s.min && o.push(s.id);\n i > 0.1 && D(i, a, o);\n }\n }, D = (e, n, t) => {\n let i;\n e > 0 ? i = e / (z.value - n.length) : i = e / (z.value - t.length), l.value.forEach((a, o) => {\n if (e > 0 && !n.includes(a.id)) {\n const s = Math.max(Math.min(a.size + i, a.max), a.min), r = s - a.size;\n e -= r, a.size = s;\n } else if (!t.includes(a.id)) {\n const s = Math.max(Math.min(a.size + i, a.max), a.min), r = s - a.size;\n e -= r, a.size = s;\n }\n }), Math.abs(e) > 0.1 && T(() => {\n S.value && console.warn(\"Splitpanes: Could not resize panes correctly due to their constraints.\");\n });\n }, m = (e, n = void 0, t = !1) => {\n const i = (n == null ? void 0 : n.index) ?? v.value.activeSplitter ?? null;\n y(e, {\n ...n,\n ...i !== null && { index: i },\n ...t && i !== null && {\n prevPane: l.value[i - (c.firstSplitter ? 1 : 0)],\n nextPane: l.value[i + (c.firstSplitter ? 0 : 1)]\n },\n panes: l.value.map((a) => ({\n min: a.min,\n max: a.max,\n size: a.size\n }))\n });\n };\n return A(\n () => c.firstSplitter,\n () => O()\n ), X(() => {\n te(), O(), q(), m(\"ready\"), S.value = !0;\n }), Y(() => S.value = !1), g(\"panes\", l), g(\"indexedPanes\", w), g(\n \"horizontal\",\n h(() => c.horizontal)\n ), g(\"requestUpdate\", se), g(\"onPaneAdd\", le), g(\"onPaneRemove\", oe), g(\"onPaneClick\", K), (e, n) => (I(), W(\"div\", {\n class: pe(_.value),\n ref_key: \"containerEl\",\n ref: f\n }, [\n J(e.$slots, \"default\")\n ], 2));\n }\n}), xe = /* @__PURE__ */ G({\n __name: \"pane\",\n props: {\n size: { type: [Number, String] },\n minSize: { type: [Number, String], default: 0 },\n maxSize: { type: [Number, String], default: 100 }\n },\n setup(L) {\n var M;\n const x = L, y = E(\"requestUpdate\"), c = E(\"onPaneAdd\"), l = E(\"horizontal\"), w = E(\"onPaneRemove\"), z = E(\"onPaneClick\"), f = (M = me()) == null ? void 0 : M.uid, S = E(\"indexedPanes\"), v = h(() => S.value[f]), d = k(null), _ = h(() => {\n const u = isNaN(x.size) || x.size === void 0 ? 0 : parseFloat(x.size);\n return Math.max(Math.min(u, R.value), P.value);\n }), P = h(() => {\n const u = parseFloat(x.minSize);\n return isNaN(u) ? 0 : u;\n }), R = h(() => {\n const u = parseFloat(x.maxSize);\n return isNaN(u) ? 100 : u;\n }), N = h(() => {\n var u;\n return `${l.value ? \"height\" : \"width\"}: ${(u = v.value) == null ? void 0 : u.size}%`;\n });\n return A(\n () => _.value,\n (u) => y({ uid: f, size: u })\n ), A(\n () => P.value,\n (u) => y({ uid: f, min: u })\n ), A(\n () => R.value,\n (u) => y({ uid: f, max: u })\n ), X(() => {\n c({\n id: f,\n el: d.value,\n min: P.value,\n max: R.value,\n // The given size (useful to know the user intention).\n givenSize: x.size === void 0 ? null : _.value,\n size: _.value\n // The computed current size at any time.\n });\n }), Y(() => w(f)), (u, C) => (I(), W(\"div\", {\n ref_key: \"paneEl\",\n ref: d,\n class: \"splitpanes__pane\",\n onClick: C[0] || (C[0] = (B) => j(z)(B, j(f))),\n style: de(N.value)\n }, [\n J(u.$slots, \"default\")\n ], 4));\n }\n});\nexport {\n xe as Pane,\n he as Splitpanes\n};\n","import type { MaybeRefOrGetter } from 'vue'\nimport { computed, onScopeDispose, shallowRef, toValue, watchEffect } from 'vue'\nimport { useEventListener, useSupported } from '@vueuse/core'\n\n// copied from match-container and adapted to shadow DOM\n// import 'match-container'\n\nconst polyfill_key = 'bae45330cd3d4e0e96b60d26b57009b5'\nlet count = 0\n// To guard against the case that this polyfill might be included more than once\n// we must ensure that the ID generating function is a singleton\n// to guarantee that no duplicated IDs are generated - however slim the chance might be.\n// The IDs are unique in the current javascript runtime context.\n// The IDs are constructed from the following parts:\n// - a timestamp\n// - the current value of a counter, incremented after each created ID\n// - a static prefix\n// Even if two IDs are generated within the same milisecond the increased counter ensures\n// that they cannot clash.\n\nconst createID = () => `${polyfill_key}-${Date.now()}-${count++}`\n\nclass ContainerQueryListEvent extends Event {\n constructor(\n type: string,\n public container: string,\n public matches: boolean,\n ) {\n super(type)\n }\n}\n\nclass ContainerQueryList extends EventTarget {\n #observedElement: HTMLElement\n #abortController = new AbortController()\n container: string\n matches: boolean\n\n constructor(element: HTMLElement, containerQueryString: string) {\n super()\n this.container = containerQueryString\n const unique_name = `container-query-observer-${createID()}`\n const markerAttribute = `data-${unique_name}`\n element.setAttribute(markerAttribute, '')\n const sentinelProperty = `--${unique_name}`\n const propertyCss = `\n @property ${sentinelProperty} {\n syntax: '<custom-ident>';\n inherits: false;\n initial-value: --false;\n }\n`.trim()\n const containerCss = `\n @container ${containerQueryString} {\n [${markerAttribute}] {\n ${sentinelProperty}: --true;\n }\n }\n`.trim()\n\n const rootNode = element.getRootNode()\n if (!(rootNode instanceof ShadowRoot) && !(rootNode instanceof Document)) {\n console.error(`root node of element isn't a ShadowRoot or Document`, rootNode)\n throw new TypeError('Root node must be a ShadowRoot or Document')\n }\n\n const propertyCssSheet = new CSSStyleSheet()\n propertyCssSheet.replaceSync(propertyCss)\n const doc = document\n doc.adoptedStyleSheets.push(propertyCssSheet)\n\n // FIXME: adoptedStyleSheets cannot be shared\n // the behavior breaks when using the PiP\n if (rootNode.ownerDocument === document) {\n const containerQuerySheet = new CSSStyleSheet()\n containerQuerySheet.replaceSync(containerCss)\n rootNode.adoptedStyleSheets.push(containerQuerySheet)\n }\n\n const style = getComputedStyle(element)\n this.matches = style.getPropertyValue(sentinelProperty) === '--true'\n\n this.#observedElement = element\n this.#startObserving(sentinelProperty, containerQueryString, element)\n }\n\n #startObserving(\n sentinelProperty: string,\n containerQueryString: string,\n observedElement: HTMLElement,\n ) {\n const _previousValues: Record<string, string | undefined> = {}\n\n observedElement.style.setProperty('transition', `${sentinelProperty} 0.001ms step-start`)\n observedElement.style.setProperty('transition-behavior', 'allow-discrete')\n observedElement.addEventListener(\n 'transitionrun',\n (transitionEvent) => {\n if (observedElement === transitionEvent.target) {\n const computedStyle = getComputedStyle(observedElement)\n const changes: Record<string, string | undefined> = {}\n const currentValue = computedStyle.getPropertyValue(sentinelProperty)\n const previousValue = _previousValues[sentinelProperty]\n const hasChanged = currentValue !== previousValue\n\n if (hasChanged) {\n changes[sentinelProperty] = currentValue\n _previousValues[sentinelProperty] = currentValue\n if (sentinelProperty in changes) {\n const matches = changes[sentinelProperty] === '--true'\n this.matches = matches\n // raise 'change' event\n const event = new ContainerQueryListEvent('change', containerQueryString, matches)\n this.dispatchEvent(event)\n }\n }\n }\n },\n { signal: this.#abortController.signal },\n )\n\n // init _previousValues\n const computedStyle = getComputedStyle(observedElement)\n const currentValue = computedStyle.getPropertyValue(sentinelProperty)\n _previousValues[sentinelProperty] = currentValue\n }\n\n dispose() {\n this.#observedElement.style.removeProperty('transition')\n this.#observedElement.style.removeProperty('transition-behavior')\n // stop the event listener\n this.#abortController.abort()\n }\n}\n\nif (typeof window !== 'undefined') {\n if (!HTMLElement.prototype.matchContainer) {\n HTMLElement.prototype.matchContainer = function matchContainer(\n this: HTMLElement,\n containerQueryString: string,\n ) {\n return new ContainerQueryList(this, containerQueryString)\n }\n }\n}\n\n// For some reason, the types are not being picked up from the package\ndeclare global {\n interface HTMLElement {\n matchContainer: (containerQueryString: string) => ContainerQueryList\n }\n}\n\n/**\n * Reactive Container Media Query.\n *\n * @param query - The container query string to match against.\n * @param target - The target element to match the query against.\n */\nexport function useContainerMediaQuery(\n query: MaybeRefOrGetter<string>,\n target: MaybeRefOrGetter<HTMLElement | null | undefined>,\n) {\n const isSupported = useSupported(\n () => typeof document !== 'undefined' && typeof document.body.matchContainer === 'function',\n )\n const mediaQuery = shallowRef<ContainerQueryList>()\n const matches = shallowRef(false)\n\n watchEffect(() => {\n if (!isSupported.value) return\n\n mediaQuery.value?.dispose()\n\n mediaQuery.value = toValue(target)?.matchContainer(toValue(query))\n matches.value = !!mediaQuery.value?.matches\n })\n\n onScopeDispose(() => {\n mediaQuery.value?.dispose()\n })\n\n useEventListener(\n mediaQuery,\n 'change',\n (event: ContainerQueryListEvent) => {\n matches.value = event.matches\n },\n { passive: true },\n )\n\n return computed(() => matches.value)\n}\n"],"names":["valuePercentage","computed","__props","_openBlock","_createElementBlock","_hoisted_1","_cache","_createElementVNode","now","shallowRef","intervalId","useCount","usePerformanceNow","onScopeDispose","useFormattedKey","entryKey","toValue","rawValue","value","miniJsonParse","modelValue","_useModel","$event","he","G","L","x","y","c","fe","l","k","w","h","n","z","f","S","d","_","P","R","M","u","N","t","i","a","o","s","Z","Q","m","C","K","V","U","b","r","p","F","ve","H","ee","ne","ie","te","e","$","ae","O","se","le","T","q","oe","ue","ce","re","D","A","X","Y","g","I","W","pe","J","xe","E","me","v","j","de","polyfill_key","count","createID","ContainerQueryListEvent","type","container","matches","ContainerQueryList","#observedElement","#abortController","element","containerQueryString","unique_name","markerAttribute","sentinelProperty","propertyCss","containerCss","rootNode","propertyCssSheet","containerQuerySheet","style","#startObserving","observedElement","_previousValues","transitionEvent","computedStyle","changes","currentValue","previousValue","event","useContainerMediaQuery","query","target","isSupported","useSupported","mediaQuery","watchEffect","useEventListener"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,UAAMA,IAAkBC,EAAS,MAAM,KAAK,OAAQC,EAAA,QAAQA,EAAA,QAAQA,EAAA,MAAMA,EAAA,OAAQ,GAAG,CAAC;sBAIpFC,EAAA,GAAAC,EAKM,OALNC,IAKM,CAAA,GAAAC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA;AAAA,MAJJC,EAGM,OAAA,MAAA;AAAA,QAFJA,EAAqB,UAAA,EAAb,OAAM,MAAI;AAAA,QAClBA,E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