@pinia/colada-devtools 0.2.1 → 0.4.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.
Files changed (39) hide show
  1. package/dist/index.d.ts +2 -4
  2. package/dist/index.js +26 -28
  3. package/dist/index.js.map +1 -1
  4. package/dist-panel/{(unselected)-95MlHIGa.js → (unselected)-BvYXA0-7.js} +3 -3
  5. package/dist-panel/{(unselected)-95MlHIGa.js.map → (unselected)-BvYXA0-7.js.map} +1 -1
  6. package/dist-panel/{(unselected)-DcyIREPL.js → (unselected)-De_qnqOP.js} +3 -3
  7. package/dist-panel/{(unselected)-DcyIREPL.js.map → (unselected)-De_qnqOP.js.map} +1 -1
  8. package/dist-panel/_mutationId_-DJZUO9uK.js +307 -0
  9. package/dist-panel/_mutationId_-DJZUO9uK.js.map +1 -0
  10. package/dist-panel/{_queryId_-deTdMujv.js → _queryId_-OYxjQ3wF.js} +173 -178
  11. package/dist-panel/_queryId_-OYxjQ3wF.js.map +1 -0
  12. package/dist-panel/{circle-x-CRJfYoJo.js → circle-x-CKUVRuJV.js} +21 -20
  13. package/dist-panel/circle-x-CKUVRuJV.js.map +1 -0
  14. package/dist-panel/{index-CEuAAFs8.js → index-BDRe8hqi.js} +210 -210
  15. package/dist-panel/{index-CEuAAFs8.js.map → index-BDRe8hqi.js.map} +1 -1
  16. package/dist-panel/{index-DfoOd-Mi.js → index-CbhK8baV.js} +2 -2
  17. package/dist-panel/{index-DfoOd-Mi.js.map → index-CbhK8baV.js.map} +1 -1
  18. package/dist-panel/index.js +1 -1
  19. package/dist-panel/{loader-CiXOT2XE.js → loader-DUh7Y4gr.js} +2 -2
  20. package/dist-panel/loader-DUh7Y4gr.js.map +1 -0
  21. package/dist-panel/{mouse-pointer-click-CR81e5yZ.js → mouse-pointer-click-tLOKuf9h.js} +2 -2
  22. package/dist-panel/mouse-pointer-click-tLOKuf9h.js.map +1 -0
  23. package/dist-panel/{mutations-Dox_GA2-.js → mutations-DbP2-xaA.js} +4 -4
  24. package/dist-panel/{mutations-Dox_GA2-.js.map → mutations-DbP2-xaA.js.map} +1 -1
  25. package/dist-panel/{queries-15p7FQjG.js → queries-CfTVwyNe.js} +4 -4
  26. package/dist-panel/{queries-15p7FQjG.js.map → queries-CfTVwyNe.js.map} +1 -1
  27. package/dist-panel/{settings-DqjxZlKC.js → settings--jMqFgqF.js} +2 -2
  28. package/dist-panel/{settings-DqjxZlKC.js.map → settings--jMqFgqF.js.map} +1 -1
  29. package/dist-panel/{use-container-media-query-rzuTymhT.js → use-container-media-query-B1rNyopG.js} +2 -2
  30. package/dist-panel/{use-container-media-query-rzuTymhT.js.map → use-container-media-query-B1rNyopG.js.map} +1 -1
  31. package/dist-shared/index.js +1 -1
  32. package/dist-shared/index.js.map +1 -1
  33. package/package.json +7 -6
  34. package/dist-panel/_mutationId_-BfpMyZn5.js +0 -307
  35. package/dist-panel/_mutationId_-BfpMyZn5.js.map +0 -1
  36. package/dist-panel/_queryId_-deTdMujv.js.map +0 -1
  37. package/dist-panel/circle-x-CRJfYoJo.js.map +0 -1
  38. package/dist-panel/loader-CiXOT2XE.js.map +0 -1
  39. package/dist-panel/mouse-pointer-click-CR81e5yZ.js.map +0 -1
@@ -1,14 +1,14 @@
1
- import { _ as F } from "./mouse-pointer-click-CR81e5yZ.js";
2
- import { I as U, _ as Q, a as W, b as J, c as G, d as P, e as X, f as K, g as Y } from "./circle-x-CRJfYoJo.js";
3
- import { _ as Z, a as ee } from "./loader-CiXOT2XE.js";
4
- import { m as q, c as i, o as n, a as t, d as te, C as se, b as z, s as oe, p as B, v as ne, F as b, i as a, w as d, g as o, x as D, q as _, t as c, y as le, f as $, z as ae, A as C, e as x, B as re, h as ie } from "./index-CEuAAFs8.js";
1
+ import { _ as j } from "./mouse-pointer-click-tLOKuf9h.js";
2
+ import { I as F, _ as U, a as Q, b as W, c as G, d as J, e as P, f as X, g as K } from "./circle-x-CKUVRuJV.js";
3
+ import { _ as Y, a as Z } from "./loader-DUh7Y4gr.js";
4
+ import { m as $, c as u, o as n, a as t, d as ee, C as te, b as se, s as oe, p as D, v as ne, F as C, i as l, w as r, g as o, n as z, x as R, q as p, t as m, y as le, f as b, z as ae, A as I, e as k, B as ie, h as re } from "./index-BDRe8hqi.js";
5
5
  const ue = {
6
6
  viewBox: "0 0 24 24",
7
7
  width: "1.2em",
8
8
  height: "1.2em"
9
9
  };
10
- function de(v, l) {
11
- return n(), i("svg", ue, [...l[0] || (l[0] = [
10
+ function de(v, a) {
11
+ return n(), u("svg", ue, [...a[0] || (a[0] = [
12
12
  t("g", {
13
13
  fill: "none",
14
14
  stroke: "currentColor",
@@ -21,13 +21,13 @@ function de(v, l) {
21
21
  ], -1)
22
22
  ])]);
23
23
  }
24
- const ce = q({ name: "lucide-timer-reset", render: de }), pe = {
24
+ const ce = $({ name: "lucide-timer-reset", render: de }), pe = {
25
25
  viewBox: "0 0 24 24",
26
26
  width: "1.2em",
27
27
  height: "1.2em"
28
28
  };
29
- function me(v, l) {
30
- return n(), i("svg", pe, [...l[0] || (l[0] = [
29
+ function me(v, a) {
30
+ return n(), u("svg", pe, [...a[0] || (a[0] = [
31
31
  t("g", {
32
32
  fill: "none",
33
33
  stroke: "currentColor",
@@ -41,25 +41,25 @@ function me(v, l) {
41
41
  ], -1)
42
42
  ])]);
43
43
  }
44
- const _e = q({ name: "lucide-refresh-cw", render: me });
45
- function ve(v) {
44
+ const ve = $({ name: "lucide-refresh-cw", render: me });
45
+ function _e(v) {
46
46
  if (v < 1e3)
47
47
  return `${Math.round(v)} ms`;
48
- const l = v / 1e3;
48
+ const a = v / 1e3;
49
49
  if (v < 1e4)
50
- return `${l.toFixed(3)} seconds`;
50
+ return `${a.toFixed(3)} seconds`;
51
51
  if (v < 6e4)
52
- return `${Math.floor(l)} seconds`;
53
- const y = Math.floor(l / 60);
54
- return v < 36e5 ? `${y} minute${y > 1 ? "s" : ""}` : `${Math.floor(y / 60)}h${y % 60}m${l % 60}s`;
52
+ return `${Math.floor(a)} seconds`;
53
+ const y = Math.floor(a / 60);
54
+ return v < 36e5 ? `${y} minute${y > 1 ? "s" : ""}` : `${Math.floor(y / 60)}h${y % 60}m${a % 60}s`;
55
55
  }
56
56
  const fe = {
57
57
  viewBox: "0 0 24 24",
58
58
  width: "1.2em",
59
59
  height: "1.2em"
60
60
  };
61
- function he(v, l) {
62
- return n(), i("svg", fe, [...l[0] || (l[0] = [
61
+ function ge(v, a) {
62
+ return n(), u("svg", fe, [...a[0] || (a[0] = [
63
63
  t("g", {
64
64
  fill: "none",
65
65
  stroke: "currentColor",
@@ -72,13 +72,13 @@ function he(v, l) {
72
72
  ], -1)
73
73
  ])]);
74
74
  }
75
- const ge = q({ name: "lucide-history", render: he }), ye = {
75
+ const he = $({ name: "lucide-history", render: ge }), ye = {
76
76
  viewBox: "0 0 24 24",
77
77
  width: "1.2em",
78
78
  height: "1.2em"
79
79
  };
80
- function ke(v, l) {
81
- return n(), i("svg", ye, [...l[0] || (l[0] = [
80
+ function ke(v, a) {
81
+ return n(), u("svg", ye, [...a[0] || (a[0] = [
82
82
  t("g", {
83
83
  fill: "none",
84
84
  stroke: "currentColor",
@@ -97,234 +97,220 @@ function ke(v, l) {
97
97
  ], -1)
98
98
  ])]);
99
99
  }
100
- const xe = q({ name: "lucide-sigma-square", render: ke }), we = { class: "flex flex-col divide-y dark:divide-(--ui-border) divide-(--ui-border-accented)" }, $e = { class: "py-1 text-sm" }, qe = { class: "grid grid-cols-[auto_1fr] gap-1" }, be = { class: "rounded bg-neutral-500/20 p-0.5" }, Ce = {
100
+ const xe = $({ name: "lucide-sigma-square", render: ke }), we = { class: "flex flex-col divide-y dark:divide-(--ui-border) divide-(--ui-border-accented)" }, be = { class: "py-1 text-sm" }, $e = { class: "grid grid-cols-[auto_1fr] gap-1" }, qe = { class: "rounded bg-neutral-500/20 p-0.5" }, Ce = {
101
101
  class: "grid grid-cols-[auto_1fr] gap-x-2",
102
102
  title: "When was the query entry last updated"
103
- }, Se = { class: "font-bold" }, Ie = {
103
+ }, Ie = { class: "font-bold" }, Te = {
104
104
  key: 0,
105
105
  class: "grid grid-cols-[auto_1fr] gap-x-2",
106
106
  title: "When was the last time the query was fetched"
107
- }, Te = { class: "font-bold" }, ze = {
107
+ }, Se = { class: "font-bold" }, Be = {
108
108
  key: 1,
109
109
  class: "grid grid-cols-[auto_1fr] gap-x-2",
110
110
  title: "How long did the last query take to fetch"
111
- }, Be = { class: "font-bold" }, De = {
111
+ }, De = { class: "font-bold" }, ze = {
112
112
  class: "grid grid-cols-[auto_1fr] gap-x-2",
113
113
  title: "How many components and effects are using this query"
114
- }, Ee = { class: "font-bold" }, Ne = {
114
+ }, Re = { class: "font-bold" }, Ae = {
115
115
  key: 2,
116
116
  class: "grid grid-cols-[auto_1fr] gap-x-2",
117
117
  title: "When is this query entry garbace collected"
118
- }, Re = { class: "font-bold" }, Ae = { class: "py-2 gap-2 flex flex-wrap items-center justify-items-start" }, He = { class: "py-1" }, Oe = {
118
+ }, Ne = { class: "font-bold" }, Ee = { class: "py-2 gap-2 flex flex-wrap items-center justify-items-start" }, He = { class: "py-1" }, Le = {
119
119
  key: 0,
120
120
  class: "rounded p-1 overflow-auto max-h-[1200px]"
121
- }, Le = {
121
+ }, Me = {
122
122
  key: 1,
123
- class: "text-neutral-500/50"
124
- }, Me = { class: "py-1" }, Ve = { class: "grid grid-cols-[auto_1fr] gap-1" }, je = { class: "font-bold" }, Fe = { class: "font-bold" }, Ue = { class: "font-bold" }, Qe = { class: "font-bold" }, We = { class: "py-1" }, Je = { class: "rounded p-1 overflow-auto max-h-[1200px]" }, Ge = { class: "py-1" }, Pe = {
125
- key: 0,
126
- class: "rounded bg-neutral-500/20 p-1 overflow-auto max-h-[1200px]"
127
- }, Xe = { key: 1 }, Ke = {
123
+ class: "text-(--ui-text-muted)/50"
124
+ }, Oe = { class: "py-1" }, Ve = { class: "grid grid-cols-[auto_1fr] gap-1" }, je = { class: "font-bold" }, Fe = { class: "font-bold" }, Ue = { class: "font-bold" }, Qe = { class: "font-bold" }, We = { class: "py-1" }, Ge = { key: 1 }, Je = {
128
125
  key: 1,
129
126
  class: "py-6 mx-auto"
130
- }, Ye = { class: "flex flex-col text-center items-center gap-2 text-lg px-2" }, Ze = { class: "text-center text-sm text-neutral-500 mt-4" }, nt = /* @__PURE__ */ te({
127
+ }, Pe = { class: "flex flex-col text-center items-center gap-2 text-lg px-2" }, Xe = { class: "text-center text-sm text-neutral-500 mt-4" }, tt = /* @__PURE__ */ ee({
131
128
  __name: "[queryId]",
132
129
  setup(v) {
133
- const l = le(), y = se(), s = z(() => y.value.find((r) => r.keyHash === l.params.queryId) ?? null), E = z(() => s.value?.devtools.history.map((r) => {
134
- let e;
135
- try {
136
- e = JSON.stringify(r, null, 2);
137
- } catch (p) {
138
- e = `Error serializing entry: ${String(p)}`;
139
- }
140
- return {
141
- ...r,
142
- data: e
143
- };
144
- }) ?? []), w = {
130
+ const a = le(), y = te(), s = se(() => y.value.find((d) => d.keyHash === a.params.queryId) ?? null), w = {
145
131
  showSecond: !0,
146
132
  rounding: "floor",
147
133
  max: 1e3 * 60 * 60 * 24
148
134
  // 1 day
149
- }, N = ae(() => s.value?.devtools.updatedAt ?? 0, {
135
+ }, A = ae(() => s.value?.devtools.updatedAt ?? 0, {
150
136
  ...w,
151
137
  updateInterval: 3e3
152
- }), h = oe(), g = B("pc:query:details:data:open", !1, {});
153
- let S = g.value, I = null;
154
- const k = B("pc:query:details:error:open", !1, {});
138
+ }), g = oe(), h = D("pc:query:details:data:open", !1, {});
139
+ let T = h.value, S = null;
140
+ const x = D("pc:query:details:error:open", !1, {});
155
141
  ne(
156
142
  () => s.value?.state,
157
- (r) => {
158
- !r || I === r.status || (I = r.status, r.status === "error" ? (k.value = !0, S = g.value, g.value = !1) : r.status === "success" && (g.value = S, k.value = !1));
143
+ (d) => {
144
+ !d || S === d.status || (S = d.status, d.status === "error" ? (x.value = !0, T = h.value, h.value = !1) : d.status === "success" && (h.value = T, x.value = !1));
159
145
  }
160
146
  );
161
- function R(r, e, p) {
147
+ function N(d, e, _) {
162
148
  if (e.length === 0)
163
149
  return console.error("Cannot set value with empty path"), !1;
164
- let f = r;
165
- for (let m = 0; m < e.length - 1; m++) {
150
+ let f = d;
151
+ for (let c = 0; c < e.length - 1; c++) {
166
152
  if (f == null || typeof f != "object")
167
- return console.error("Invalid path:", e, "at index", m, "Current value:", f), !1;
168
- f = f[e[m]];
153
+ return console.error("Invalid path:", e, "at index", c, "Current value:", f), !1;
154
+ f = f[e[c]];
169
155
  }
170
- return f == null || typeof f != "object" ? (console.error("Invalid final parent in path:", e), !1) : (f[e.at(-1)] = p, !0);
156
+ return f == null || typeof f != "object" ? (console.error("Invalid final parent in path:", e), !1) : (f[e.at(-1)] = _, !0);
171
157
  }
172
- const A = (r, e) => {
158
+ const E = (d, e) => {
173
159
  if (!s.value) return;
174
- if (!R(s.value.state.data, r, e)) {
175
- console.error("Failed to update value at path:", r);
160
+ if (!N(s.value.state.data, d, e)) {
161
+ console.error("Failed to update value at path:", d);
176
162
  return;
177
163
  }
178
- h.emit("queries:set:state", s.value.key, s.value.state);
164
+ g.emit("queries:set:state", s.value.key, s.value.state);
179
165
  };
180
- return (r, e) => {
181
- const p = Q, f = _e, m = re, H = ce, T = Z, O = ee, L = X, M = K, V = Y, j = F;
182
- return n(), i("div", we, [
183
- s.value ? (n(), i(b, { key: 0 }, [
184
- a(p, {
166
+ return (d, e) => {
167
+ const _ = U, f = ve, c = ie, H = ce, B = Y, L = Z, M = P, O = X, q = K, V = j;
168
+ return n(), u("div", we, [
169
+ s.value ? (n(), u(C, { key: 0 }, [
170
+ l(_, {
185
171
  title: "Details",
186
- icon: o(U)
172
+ icon: o(F)
187
173
  }, {
188
- default: d(() => [
189
- t("div", $e, [
190
- t("p", qe, [
174
+ default: r(() => [
175
+ t("div", be, [
176
+ t("p", $e, [
191
177
  e[9] || (e[9] = t("span", null, "key:", -1)),
192
178
  t("span", null, [
193
- t("code", be, c(s.value.key), 1)
179
+ t("code", qe, m(s.value.key), 1)
194
180
  ])
195
181
  ]),
196
182
  t("p", Ce, [
197
183
  e[10] || (e[10] = t("span", null, "Last update:", -1)),
198
- t("span", Se, c(o(N)), 1)
184
+ t("span", Ie, m(o(A)), 1)
199
185
  ]),
200
- s.value.devtools.history.at(0)?.fetchTime ? (n(), i("p", Ie, [
186
+ s.value.devtools.history.at(0)?.fetchTime ? (n(), u("p", Te, [
201
187
  e[11] || (e[11] = t("span", null, "Last fetch:", -1)),
202
- t("span", Te, c(o(C)(new Date(s.value.devtools.history.at(0).fetchTime.start), {
188
+ t("span", Se, m(o(I)(new Date(s.value.devtools.history.at(0).fetchTime.start), {
203
189
  ...w,
204
190
  max: void 0
205
191
  })), 1)
206
- ])) : $("", !0),
207
- s.value.devtools.history.at(0)?.fetchTime?.end ? (n(), i("p", ze, [
192
+ ])) : b("", !0),
193
+ s.value.devtools.history.at(0)?.fetchTime?.end ? (n(), u("p", Be, [
208
194
  e[12] || (e[12] = t("span", null, "Fetch duration:", -1)),
209
- t("span", Be, c(o(ve)(
195
+ t("span", De, m(o(_e)(
210
196
  s.value.devtools.history.at(0).fetchTime.end - s.value.devtools.history.at(0).fetchTime.start
211
197
  )), 1)
212
- ])) : $("", !0),
213
- t("p", De, [
198
+ ])) : b("", !0),
199
+ t("p", ze, [
214
200
  t("span", null, [
215
- e[13] || (e[13] = _("Observers: ", -1)),
216
- t("span", Ee, c(s.value.deps.length), 1)
201
+ e[13] || (e[13] = p("Observers: ", -1)),
202
+ t("span", Re, m(s.value.deps.length), 1)
217
203
  ])
218
204
  ]),
219
- !s.value.active && s.value.options ? (n(), i("p", Ne, [
220
- typeof s.value.options.gcTime == "number" && Number.isFinite(s.value.options.gcTime) ? (n(), i(b, { key: 0 }, [
205
+ !s.value.active && s.value.options ? (n(), u("p", Ae, [
206
+ typeof s.value.options.gcTime == "number" && Number.isFinite(s.value.options.gcTime) ? (n(), u(C, { key: 0 }, [
221
207
  e[14] || (e[14] = t("span", null, [
222
- _("Will be "),
208
+ p("Will be "),
223
209
  t("i", null, "gced")
224
210
  ], -1)),
225
- t("span", Re, c(o(C)(
211
+ t("span", Ne, m(o(I)(
226
212
  new Date(s.value.devtools.inactiveAt + s.value.options.gcTime),
227
213
  {
228
214
  ...w,
229
215
  max: void 0
230
216
  }
231
217
  )), 1)
232
- ], 64)) : $("", !0)
233
- ])) : $("", !0)
218
+ ], 64)) : b("", !0)
219
+ ])) : b("", !0)
234
220
  ])
235
221
  ]),
236
222
  _: 1
237
223
  }, 8, ["icon"]),
238
- a(p, {
224
+ l(_, {
239
225
  title: "Actions",
240
- icon: o(W)
226
+ icon: o(Q)
241
227
  }, {
242
- default: d(() => [
243
- t("div", Ae, [
244
- a(m, {
228
+ default: r(() => [
229
+ t("div", Ee, [
230
+ l(c, {
245
231
  class: "theme-info",
246
232
  size: "sm",
247
233
  title: "Refetch this query",
248
234
  disabled: s.value.options?.enabled === !1,
249
- onClick: e[0] || (e[0] = (u) => o(h).emit("queries:refetch", s.value.key))
235
+ onClick: e[0] || (e[0] = (i) => o(g).emit("queries:refetch", s.value.key))
250
236
  }, {
251
- default: d(() => [
252
- a(f, { class: "size-3.5" }),
253
- e[15] || (e[15] = _(" Refetch ", -1))
237
+ default: r(() => [
238
+ l(f, { class: "size-3.5" }),
239
+ e[15] || (e[15] = p(" Refetch ", -1))
254
240
  ]),
255
241
  _: 1
256
242
  }, 8, ["disabled"]),
257
- a(m, {
243
+ l(c, {
258
244
  class: "theme-neutral",
259
245
  size: "sm",
260
246
  title: "Invalidate this query",
261
- onClick: e[1] || (e[1] = (u) => o(h).emit("queries:invalidate", s.value.key))
247
+ onClick: e[1] || (e[1] = (i) => o(g).emit("queries:invalidate", s.value.key))
262
248
  }, {
263
- default: d(() => [
264
- a(H),
265
- e[16] || (e[16] = _(" Invalidate ", -1))
249
+ default: r(() => [
250
+ l(H),
251
+ e[16] || (e[16] = p(" Invalidate ", -1))
266
252
  ]),
267
253
  _: 1
268
254
  }),
269
- s.value.devtools.simulate !== "loading" ? (n(), x(m, {
255
+ s.value.devtools.simulate !== "loading" ? (n(), k(c, {
270
256
  key: 0,
271
257
  class: "theme-purple",
272
258
  size: "sm",
273
259
  title: "Restore the previous state",
274
- onClick: e[2] || (e[2] = (u) => o(h).emit("queries:simulate:loading", s.value.key))
260
+ onClick: e[2] || (e[2] = (i) => o(g).emit("queries:simulate:loading", s.value.key))
275
261
  }, {
276
- default: d(() => [
277
- a(T),
278
- e[17] || (e[17] = _(" Simulate loading ", -1))
262
+ default: r(() => [
263
+ l(B),
264
+ e[17] || (e[17] = p(" Simulate loading ", -1))
279
265
  ]),
280
266
  _: 1
281
- })) : (n(), x(m, {
267
+ })) : (n(), k(c, {
282
268
  key: 1,
283
269
  class: "theme-purple",
284
270
  size: "sm",
285
271
  title: "Simulate a loading state",
286
- onClick: e[3] || (e[3] = (u) => o(h).emit("queries:simulate:loading:stop", s.value.key))
272
+ onClick: e[3] || (e[3] = (i) => o(g).emit("queries:simulate:loading:stop", s.value.key))
287
273
  }, {
288
- default: d(() => [
289
- a(T, { class: "animate-spin" }),
290
- e[18] || (e[18] = _(" Stop loading ", -1))
274
+ default: r(() => [
275
+ l(B, { class: "animate-spin" }),
276
+ e[18] || (e[18] = p(" Stop loading ", -1))
291
277
  ]),
292
278
  _: 1
293
279
  })),
294
- s.value.devtools.simulate !== "error" ? (n(), x(m, {
280
+ s.value.devtools.simulate !== "error" ? (n(), k(c, {
295
281
  key: 2,
296
282
  class: "theme-error",
297
283
  size: "sm",
298
284
  title: "Simulate an Error state",
299
- onClick: e[4] || (e[4] = (u) => o(h).emit("queries:simulate:error", s.value.key))
285
+ onClick: e[4] || (e[4] = (i) => o(g).emit("queries:simulate:error", s.value.key))
300
286
  }, {
301
- default: d(() => [
302
- a(O),
303
- e[19] || (e[19] = _(" Simulate error ", -1))
287
+ default: r(() => [
288
+ l(L),
289
+ e[19] || (e[19] = p(" Simulate error ", -1))
304
290
  ]),
305
291
  _: 1
306
- })) : (n(), x(m, {
292
+ })) : (n(), k(c, {
307
293
  key: 3,
308
294
  class: "theme-error",
309
295
  size: "sm",
310
296
  title: "Restore the previous state",
311
- onClick: e[5] || (e[5] = (u) => o(h).emit("queries:simulate:error:stop", s.value.key))
297
+ onClick: e[5] || (e[5] = (i) => o(g).emit("queries:simulate:error:stop", s.value.key))
312
298
  }, {
313
- default: d(() => [
314
- a(L),
315
- e[20] || (e[20] = _(" Remove error ", -1))
299
+ default: r(() => [
300
+ l(M),
301
+ e[20] || (e[20] = p(" Remove error ", -1))
316
302
  ]),
317
303
  _: 1
318
304
  })),
319
- a(m, {
305
+ l(c, {
320
306
  class: "theme-warning",
321
307
  size: "sm",
322
308
  title: "Reset this query to its initial (pending) state",
323
- onClick: e[6] || (e[6] = (u) => o(h).emit("queries:reset", s.value.key))
309
+ onClick: e[6] || (e[6] = (i) => o(g).emit("queries:reset", s.value.key))
324
310
  }, {
325
- default: d(() => [
326
- a(M),
327
- e[21] || (e[21] = _(" Reset ", -1))
311
+ default: r(() => [
312
+ l(O),
313
+ e[21] || (e[21] = p(" Reset ", -1))
328
314
  ]),
329
315
  _: 1
330
316
  })
@@ -332,78 +318,84 @@ const xe = q({ name: "lucide-sigma-square", render: ke }), we = { class: "flex f
332
318
  ]),
333
319
  _: 1
334
320
  }, 8, ["icon"]),
335
- a(p, {
336
- open: o(g),
337
- "onUpdate:open": e[7] || (e[7] = (u) => D(g) ? g.value = u : null),
338
- title: "Data",
339
- icon: o(J),
340
- class: "font-mono",
321
+ l(_, {
322
+ open: o(h),
323
+ "onUpdate:open": e[7] || (e[7] = (i) => R(h) ? h.value = i : null),
324
+ title: `Data${s.value.state.data === void 0 ? " (empty)" : ""}`,
325
+ icon: o(W),
326
+ class: z([s.value.state.data === void 0 && "text-(--ui-text-muted)"]),
341
327
  "no-padding": ""
342
328
  }, {
343
- default: d(() => [
344
- a(V, {
329
+ default: r(() => [
330
+ l(q, {
345
331
  data: s.value.state.data,
346
- "onUpdate:value": A
332
+ "onUpdate:value": E
347
333
  }, null, 8, ["data"])
348
334
  ]),
349
335
  _: 1
350
- }, 8, ["open", "icon"]),
351
- a(p, {
352
- open: o(k),
353
- "onUpdate:open": e[8] || (e[8] = (u) => D(k) ? k.value = u : null),
354
- title: `Error${s.value.state.status === "error" ? " (!)" : ""}`,
355
- icon: o(G)
336
+ }, 8, ["open", "title", "icon", "class"]),
337
+ l(_, {
338
+ open: o(x),
339
+ "onUpdate:open": e[8] || (e[8] = (i) => R(x) ? x.value = i : null),
340
+ title: `Error${s.value.state.status === "error" ? " (!)" : "(empty)"}`,
341
+ icon: o(G),
342
+ class: z([s.value.state.status !== "error" && "text-(--ui-text-muted)"]),
343
+ disabled: ""
356
344
  }, {
357
- default: d(() => [
345
+ default: r(() => [
358
346
  t("div", He, [
359
- s.value.state.error ? (n(), i("pre", Oe, c(s.value.state.error), 1)) : (n(), i("p", Le, "No error"))
347
+ s.value.state.error ? (n(), u("pre", Le, m(s.value.state.error), 1)) : (n(), u("p", Me, "No error"))
360
348
  ])
361
349
  ]),
362
350
  _: 1
363
- }, 8, ["open", "title", "icon"]),
364
- a(p, {
351
+ }, 8, ["open", "title", "icon", "class"]),
352
+ l(_, {
365
353
  title: "Call count",
366
354
  icon: o(xe),
367
355
  open: !1
368
356
  }, {
369
- default: d(() => [
370
- t("div", Me, [
357
+ default: r(() => [
358
+ t("div", Oe, [
371
359
  t("p", Ve, [
372
360
  e[22] || (e[22] = t("span", null, "Calls:", -1)),
373
361
  t("span", null, [
374
- t("code", je, c(s.value.devtools.count.total), 1)
362
+ t("code", je, m(s.value.devtools.count.total), 1)
375
363
  ]),
376
364
  e[23] || (e[23] = t("span", null, "Success:", -1)),
377
365
  t("span", null, [
378
- t("code", Fe, c(s.value.devtools.count.succeed), 1)
366
+ t("code", Fe, m(s.value.devtools.count.succeed), 1)
379
367
  ]),
380
368
  e[24] || (e[24] = t("span", null, "Errors:", -1)),
381
369
  t("span", null, [
382
- t("code", Ue, c(s.value.devtools.count.errored), 1)
370
+ t("code", Ue, m(s.value.devtools.count.errored), 1)
383
371
  ]),
384
372
  e[25] || (e[25] = t("span", null, "Cancelled:", -1)),
385
373
  t("span", null, [
386
- t("code", Qe, c(s.value.devtools.count.cancelled), 1)
374
+ t("code", Qe, m(s.value.devtools.count.cancelled), 1)
387
375
  ])
388
376
  ])
389
377
  ])
390
378
  ]),
391
379
  _: 1
392
380
  }, 8, ["icon"]),
393
- a(p, {
381
+ l(_, {
394
382
  title: `History (${s.value.devtools.history.length})`,
395
- icon: o(ge),
383
+ icon: o(he),
396
384
  open: !1
397
385
  }, {
398
- default: d(() => [
386
+ default: r(() => [
399
387
  t("div", We, [
400
- (n(!0), i(b, null, ie(E.value, (u) => (n(), x(p, {
401
- key: u.updatedAt,
402
- title: `Entry nº${u.id} (${o(C)(new Date(u.updatedAt), w)})`,
403
- open: !1
388
+ (n(!0), u(C, null, re(s.value.devtools.history, (i) => (n(), k(_, {
389
+ key: i.updatedAt,
390
+ title: `Entry nº${i.id} (${o(I)(new Date(i.updatedAt), w)})`,
391
+ open: !1,
392
+ class: "border border-neutral-200 dark:border-neutral-800"
404
393
  }, {
405
- default: d(() => [
406
- t("pre", Je, c(u.data), 1)
394
+ default: r(() => [
395
+ l(q, {
396
+ data: i,
397
+ readonly: ""
398
+ }, null, 8, ["data"])
407
399
  ]),
408
400
  _: 2
409
401
  }, 1032, ["title"]))), 128))
@@ -411,34 +403,37 @@ const xe = q({ name: "lucide-sigma-square", render: ke }), we = { class: "flex f
411
403
  ]),
412
404
  _: 1
413
405
  }, 8, ["title", "icon"]),
414
- a(p, {
406
+ l(_, {
415
407
  title: "Options",
416
408
  open: !1,
417
- icon: o(P)
409
+ icon: o(J),
410
+ "no-padding": ""
418
411
  }, {
419
- default: d(() => [
420
- t("div", Ge, [
421
- s.value.options ? (n(), i("pre", Pe, c(s.value.options), 1)) : (n(), i("p", Xe, [...e[26] || (e[26] = [
422
- _(" This Query entry has no options. It might have been created from the server or manually set with ", -1),
423
- t("code", null, "queryCache.setQueryData()", -1),
424
- _(" for prefetching. ", -1)
425
- ])]))
426
- ])
412
+ default: r(() => [
413
+ s.value.options ? (n(), k(q, {
414
+ key: 0,
415
+ data: s.value.options,
416
+ readonly: ""
417
+ }, null, 8, ["data"])) : (n(), u("p", Ge, [...e[26] || (e[26] = [
418
+ p(" This Query entry has no options. It might have been created from the server or manually set with ", -1),
419
+ t("code", null, "queryCache.setQueryData()", -1),
420
+ p(" for prefetching. ", -1)
421
+ ])]))
427
422
  ]),
428
423
  _: 1
429
424
  }, 8, ["icon"])
430
- ], 64)) : (n(), i("div", Ke, [
431
- t("p", Ye, [
432
- e[27] || (e[27] = _(" Select a Query to inspect ", -1)),
433
- a(j)
425
+ ], 64)) : (n(), u("div", Je, [
426
+ t("p", Pe, [
427
+ e[27] || (e[27] = p(" Select a Query to inspect ", -1)),
428
+ l(V)
434
429
  ]),
435
- t("p", Ze, " No query with key " + c(o(l).params.queryId) + " was found in the cache ", 1)
430
+ t("p", Xe, " No query with key " + m(o(a).params.queryId) + " was found in the cache ", 1)
436
431
  ]))
437
432
  ]);
438
433
  };
439
434
  }
440
435
  });
441
436
  export {
442
- nt as default
437
+ tt as default
443
438
  };
444
- //# sourceMappingURL=_queryId_-deTdMujv.js.map
439
+ //# sourceMappingURL=_queryId_-OYxjQ3wF.js.map