@pinia/colada-devtools 0.2.0 → 0.2.1

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