@tanstack/query-devtools 5.52.3 → 5.55.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.
- package/build/DevtoolsComponent/ITUUECIS.js +39 -0
- package/build/DevtoolsComponent/LU2ND2BF.js +39 -0
- package/build/DevtoolsPanelComponent/CNBMJT5I.js +48 -0
- package/build/DevtoolsPanelComponent/XJJMEBKY.js +48 -0
- package/build/{Devtools/E6UWR6XD.js → chunk/K6ZPOBGB.js} +936 -890
- package/build/{Devtools/2FJCTAHO.js → chunk/TUGSCQSL.js} +936 -890
- package/build/dev.cjs +1701 -1386
- package/build/dev.js +129 -3
- package/build/index.cjs +1701 -1386
- package/build/index.d.cts +20 -1
- package/build/index.d.ts +20 -1
- package/build/index.js +129 -3
- package/package.json +2 -2
- package/src/Devtools.tsx +201 -324
- package/src/DevtoolsComponent.tsx +36 -0
- package/src/DevtoolsPanelComponent.tsx +47 -0
- package/src/Explorer.tsx +1 -1
- package/src/{index.tsx → TanstackQueryDevtools.tsx} +2 -3
- package/src/TanstackQueryDevtoolsPanel.tsx +153 -0
- package/src/constants.ts +17 -0
- package/src/contexts/PiPContext.tsx +191 -0
- package/src/{Context.ts → contexts/QueryDevtoolsContext.ts} +1 -9
- package/src/contexts/ThemeContext.ts +10 -0
- package/src/contexts/index.ts +3 -0
- package/src/index.ts +13 -0
- package/src/utils.tsx +1 -1
- package/build/Devtools/2DN67TWN.jsx +0 -12505
- package/build/Devtools/EFVQE642.jsx +0 -12504
- package/build/chunk/G72LLS32.jsx +0 -2939
- package/build/chunk/H7KAW27I.jsx +0 -2940
- package/build/dev.jsx +0 -117
- package/build/index.jsx +0 -117
|
@@ -1,4 +1,419 @@
|
|
|
1
|
-
import { createContext, splitProps, createMemo, createComponent, mergeProps, createUniqueId, createSignal, createEffect, onCleanup, Show, on, delegateEvents,
|
|
1
|
+
import { sortFns, mutationSortFns, createContext, splitProps, createMemo, createComponent, mergeProps, createUniqueId, createSignal, createEffect, onCleanup, Show, on, delegateEvents, Dynamic, useContext, createRenderEffect, setAttribute, Portal, onMount, use, insert, className, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, clearDelegatedEvents, isServer, untrack, template, Index, updateNestedDataByPath, convertRemToPixels, getSidedProp, useTransition, $TRACK, createRoot, createComputed, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, getOwner, DEV } from './GMHTURR6.js';
|
|
2
|
+
|
|
3
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
4
|
+
var isClient = !isServer;
|
|
5
|
+
var isDev = isClient && !!DEV;
|
|
6
|
+
var noop = () => void 0;
|
|
7
|
+
var isNonNullable = (i2) => i2 != null;
|
|
8
|
+
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
9
|
+
function chain(callbacks) {
|
|
10
|
+
return (...args) => {
|
|
11
|
+
for (const callback of callbacks)
|
|
12
|
+
callback && callback(...args);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
var access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
16
|
+
var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
17
|
+
function accessWith(valueOrFn, ...args) {
|
|
18
|
+
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
|
|
19
|
+
}
|
|
20
|
+
var tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
|
|
21
|
+
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
22
|
+
const currLength = current.length;
|
|
23
|
+
const prevLength = prev.length;
|
|
24
|
+
let i2 = 0;
|
|
25
|
+
if (!prevLength) {
|
|
26
|
+
for (; i2 < currLength; i2++)
|
|
27
|
+
handleAdded(current[i2]);
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (!currLength) {
|
|
31
|
+
for (; i2 < prevLength; i2++)
|
|
32
|
+
handleRemoved(prev[i2]);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
for (; i2 < prevLength; i2++) {
|
|
36
|
+
if (prev[i2] !== current[i2])
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
let prevEl;
|
|
40
|
+
let currEl;
|
|
41
|
+
prev = prev.slice(i2);
|
|
42
|
+
current = current.slice(i2);
|
|
43
|
+
for (prevEl of prev) {
|
|
44
|
+
if (!current.includes(prevEl))
|
|
45
|
+
handleRemoved(prevEl);
|
|
46
|
+
}
|
|
47
|
+
for (currEl of current) {
|
|
48
|
+
if (!prev.includes(currEl))
|
|
49
|
+
handleAdded(currEl);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js
|
|
54
|
+
function createStorage(props) {
|
|
55
|
+
const [error, setError] = createSignal();
|
|
56
|
+
const handleError = props?.throw ? (err, fallback) => {
|
|
57
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
58
|
+
throw err;
|
|
59
|
+
} : (err, fallback) => {
|
|
60
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
61
|
+
};
|
|
62
|
+
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
63
|
+
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
64
|
+
const signals = /* @__PURE__ */ new Map();
|
|
65
|
+
const store = new Proxy(
|
|
66
|
+
{},
|
|
67
|
+
{
|
|
68
|
+
get(_, key) {
|
|
69
|
+
let node = signals.get(key);
|
|
70
|
+
if (!node) {
|
|
71
|
+
node = createSignal(void 0, { equals: false });
|
|
72
|
+
signals.set(key, node);
|
|
73
|
+
}
|
|
74
|
+
node[0]();
|
|
75
|
+
const value = apis.reduce(
|
|
76
|
+
(result, api) => {
|
|
77
|
+
if (result !== null || !api) {
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
return api.getItem(`${prefix}${key}`);
|
|
82
|
+
} catch (err) {
|
|
83
|
+
handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
null
|
|
88
|
+
);
|
|
89
|
+
if (value !== null && props?.deserializer) {
|
|
90
|
+
return props.deserializer(value, key, props.options);
|
|
91
|
+
}
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
const setter = (key, value, options) => {
|
|
97
|
+
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
98
|
+
const apiKey = `${prefix}${key}`;
|
|
99
|
+
apis.forEach((api) => {
|
|
100
|
+
try {
|
|
101
|
+
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
102
|
+
} catch (err) {
|
|
103
|
+
handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const node = signals.get(key);
|
|
107
|
+
node && node[1]();
|
|
108
|
+
};
|
|
109
|
+
const remove = (key) => apis.forEach((api) => {
|
|
110
|
+
try {
|
|
111
|
+
api.removeItem(`${prefix}${key}`);
|
|
112
|
+
} catch (err) {
|
|
113
|
+
handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
const clear = () => apis.forEach((api) => {
|
|
117
|
+
try {
|
|
118
|
+
api.clear();
|
|
119
|
+
} catch (err) {
|
|
120
|
+
handleError(err, `Error clearing ${api.name}`);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
const toJSON = () => {
|
|
124
|
+
const result = {};
|
|
125
|
+
const addValue = (key, value) => {
|
|
126
|
+
if (!result.hasOwnProperty(key)) {
|
|
127
|
+
const filteredValue = value && props?.deserializer ? props.deserializer(value, key, props.options) : value;
|
|
128
|
+
if (filteredValue) {
|
|
129
|
+
result[key] = filteredValue;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
apis.forEach((api) => {
|
|
134
|
+
if (typeof api.getAll === "function") {
|
|
135
|
+
let values;
|
|
136
|
+
try {
|
|
137
|
+
values = api.getAll();
|
|
138
|
+
} catch (err) {
|
|
139
|
+
handleError(err, `Error getting all values from in ${api.name}`);
|
|
140
|
+
}
|
|
141
|
+
for (const key of values) {
|
|
142
|
+
addValue(key, values[key]);
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
let index = 0, key;
|
|
146
|
+
try {
|
|
147
|
+
while (key = api.key(index++)) {
|
|
148
|
+
if (!result.hasOwnProperty(key)) {
|
|
149
|
+
addValue(key, api.getItem(key));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
} catch (err) {
|
|
153
|
+
handleError(err, `Error getting all values from ${api.name}`);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
return result;
|
|
158
|
+
};
|
|
159
|
+
props?.sync !== false && onMount(() => {
|
|
160
|
+
const listener = (ev) => {
|
|
161
|
+
let changed = false;
|
|
162
|
+
apis.forEach((api) => {
|
|
163
|
+
try {
|
|
164
|
+
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
165
|
+
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
166
|
+
changed = true;
|
|
167
|
+
}
|
|
168
|
+
} catch (err) {
|
|
169
|
+
handleError(
|
|
170
|
+
err,
|
|
171
|
+
`Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
176
|
+
};
|
|
177
|
+
if ("addEventListener" in globalThis) {
|
|
178
|
+
globalThis.addEventListener("storage", listener);
|
|
179
|
+
onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
180
|
+
} else {
|
|
181
|
+
apis.forEach((api) => api.addEventListener?.("storage", listener));
|
|
182
|
+
onCleanup(() => apis.forEach((api) => api.removeEventListener?.("storage", listener)));
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
return [
|
|
186
|
+
store,
|
|
187
|
+
setter,
|
|
188
|
+
{
|
|
189
|
+
clear,
|
|
190
|
+
error,
|
|
191
|
+
remove,
|
|
192
|
+
toJSON
|
|
193
|
+
}
|
|
194
|
+
];
|
|
195
|
+
}
|
|
196
|
+
var createLocalStorage = createStorage;
|
|
197
|
+
var addClearMethod = (storage) => {
|
|
198
|
+
if (typeof storage.clear === "function") {
|
|
199
|
+
return storage;
|
|
200
|
+
}
|
|
201
|
+
storage.clear = () => {
|
|
202
|
+
let key;
|
|
203
|
+
while (key = storage.key(0)) {
|
|
204
|
+
storage.removeItem(key);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
return storage;
|
|
208
|
+
};
|
|
209
|
+
var serializeCookieOptions = (options) => {
|
|
210
|
+
if (!options) {
|
|
211
|
+
return "";
|
|
212
|
+
}
|
|
213
|
+
let memo = "";
|
|
214
|
+
for (const key in options) {
|
|
215
|
+
if (!options.hasOwnProperty(key)) {
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
const value = options[key];
|
|
219
|
+
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
220
|
+
}
|
|
221
|
+
return memo;
|
|
222
|
+
};
|
|
223
|
+
var cookieStorage = addClearMethod({
|
|
224
|
+
_cookies: [globalThis.document, "cookie"],
|
|
225
|
+
getItem: (key) => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
226
|
+
setItem: (key, value, options) => {
|
|
227
|
+
const oldValue = cookieStorage.getItem(key);
|
|
228
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(
|
|
229
|
+
options
|
|
230
|
+
)}`;
|
|
231
|
+
const storageEvent = Object.assign(new Event("storage"), {
|
|
232
|
+
key,
|
|
233
|
+
oldValue,
|
|
234
|
+
newValue: value,
|
|
235
|
+
url: globalThis.document.URL,
|
|
236
|
+
storageArea: cookieStorage
|
|
237
|
+
});
|
|
238
|
+
window.dispatchEvent(storageEvent);
|
|
239
|
+
},
|
|
240
|
+
removeItem: (key) => {
|
|
241
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({
|
|
242
|
+
expires: /* @__PURE__ */ new Date(0)
|
|
243
|
+
})}`;
|
|
244
|
+
},
|
|
245
|
+
key: (index) => {
|
|
246
|
+
let key = null;
|
|
247
|
+
let count = 0;
|
|
248
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
249
|
+
/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,
|
|
250
|
+
(_, found) => {
|
|
251
|
+
if (!key && found && count++ === index) {
|
|
252
|
+
key = found;
|
|
253
|
+
}
|
|
254
|
+
return "";
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
return key;
|
|
258
|
+
},
|
|
259
|
+
get length() {
|
|
260
|
+
let length = 0;
|
|
261
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
262
|
+
/(?:^|;)\s*.+?\s*=\s*[^;]+/g,
|
|
263
|
+
(found) => {
|
|
264
|
+
length += found ? 1 : 0;
|
|
265
|
+
return "";
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
return length;
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
// src/constants.ts
|
|
273
|
+
var firstBreakpoint = 1024;
|
|
274
|
+
var secondBreakpoint = 796;
|
|
275
|
+
var thirdBreakpoint = 700;
|
|
276
|
+
var BUTTON_POSITION = "bottom-right";
|
|
277
|
+
var POSITION = "bottom";
|
|
278
|
+
var THEME_PREFERENCE = "system";
|
|
279
|
+
var INITIAL_IS_OPEN = false;
|
|
280
|
+
var DEFAULT_HEIGHT = 500;
|
|
281
|
+
var PIP_DEFAULT_HEIGHT = 500;
|
|
282
|
+
var DEFAULT_WIDTH = 500;
|
|
283
|
+
var DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
284
|
+
var DEFAULT_SORT_ORDER = 1;
|
|
285
|
+
var DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
286
|
+
|
|
287
|
+
// src/contexts/QueryDevtoolsContext.ts
|
|
288
|
+
var QueryDevtoolsContext = createContext({
|
|
289
|
+
client: void 0,
|
|
290
|
+
onlineManager: void 0,
|
|
291
|
+
queryFlavor: "",
|
|
292
|
+
version: "",
|
|
293
|
+
shadowDOMTarget: void 0
|
|
294
|
+
});
|
|
295
|
+
function useQueryDevtoolsContext() {
|
|
296
|
+
return useContext(QueryDevtoolsContext);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// src/contexts/PiPContext.tsx
|
|
300
|
+
var PiPContext = createContext(void 0);
|
|
301
|
+
var PiPProvider = (props) => {
|
|
302
|
+
const [pipWindow, setPipWindow] = createSignal(null);
|
|
303
|
+
const closePipWindow = () => {
|
|
304
|
+
const w = pipWindow();
|
|
305
|
+
if (w != null) {
|
|
306
|
+
w.close();
|
|
307
|
+
setPipWindow(null);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
const requestPipWindow = (width, height) => {
|
|
311
|
+
if (pipWindow() != null) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
315
|
+
if (!pip) {
|
|
316
|
+
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
317
|
+
}
|
|
318
|
+
pip.document.head.innerHTML = "";
|
|
319
|
+
pip.document.body.innerHTML = "";
|
|
320
|
+
clearDelegatedEvents(pip.document);
|
|
321
|
+
pip.document.title = "TanStack Query Devtools";
|
|
322
|
+
pip.document.body.style.margin = "0";
|
|
323
|
+
pip.addEventListener("pagehide", () => {
|
|
324
|
+
props.setLocalStore("pip_open", "false");
|
|
325
|
+
setPipWindow(null);
|
|
326
|
+
});
|
|
327
|
+
[...(useQueryDevtoolsContext().shadowDOMTarget || document).styleSheets].forEach((styleSheet) => {
|
|
328
|
+
try {
|
|
329
|
+
const cssRules = [...styleSheet.cssRules].map((rule) => rule.cssText).join("");
|
|
330
|
+
const style = document.createElement("style");
|
|
331
|
+
const style_node = styleSheet.ownerNode;
|
|
332
|
+
let style_id = "";
|
|
333
|
+
if (style_node && "id" in style_node) {
|
|
334
|
+
style_id = style_node.id;
|
|
335
|
+
}
|
|
336
|
+
if (style_id) {
|
|
337
|
+
style.setAttribute("id", style_id);
|
|
338
|
+
}
|
|
339
|
+
style.textContent = cssRules;
|
|
340
|
+
pip.document.head.appendChild(style);
|
|
341
|
+
} catch (e2) {
|
|
342
|
+
const link = document.createElement("link");
|
|
343
|
+
if (styleSheet.href == null) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
link.rel = "stylesheet";
|
|
347
|
+
link.type = styleSheet.type;
|
|
348
|
+
link.media = styleSheet.media.toString();
|
|
349
|
+
link.href = styleSheet.href;
|
|
350
|
+
pip.document.head.appendChild(link);
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
|
|
354
|
+
props.setLocalStore("pip_open", "true");
|
|
355
|
+
setPipWindow(pip);
|
|
356
|
+
};
|
|
357
|
+
createEffect(() => {
|
|
358
|
+
const pip_open = props.localStore.pip_open ?? "false";
|
|
359
|
+
if (pip_open === "true" && !props.disabled) {
|
|
360
|
+
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || PIP_DEFAULT_HEIGHT));
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
createEffect(() => {
|
|
364
|
+
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
365
|
+
const w = pipWindow();
|
|
366
|
+
if (gooberStyles && w) {
|
|
367
|
+
const observer = new MutationObserver(() => {
|
|
368
|
+
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
369
|
+
if (pip_style) {
|
|
370
|
+
pip_style.textContent = gooberStyles.textContent;
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
observer.observe(gooberStyles, {
|
|
374
|
+
childList: true,
|
|
375
|
+
// observe direct children
|
|
376
|
+
subtree: true,
|
|
377
|
+
// and lower descendants too
|
|
378
|
+
characterDataOldValue: true
|
|
379
|
+
// pass old data to callback
|
|
380
|
+
});
|
|
381
|
+
onCleanup(() => {
|
|
382
|
+
observer.disconnect();
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
const value = createMemo(() => ({
|
|
387
|
+
pipWindow: pipWindow(),
|
|
388
|
+
requestPipWindow,
|
|
389
|
+
closePipWindow,
|
|
390
|
+
disabled: props.disabled ?? false
|
|
391
|
+
}));
|
|
392
|
+
return createComponent(PiPContext.Provider, {
|
|
393
|
+
value,
|
|
394
|
+
get children() {
|
|
395
|
+
return props.children;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
};
|
|
399
|
+
var usePiPWindow = () => {
|
|
400
|
+
const context = createMemo(() => {
|
|
401
|
+
const ctx = useContext(PiPContext);
|
|
402
|
+
if (!ctx) {
|
|
403
|
+
throw new Error("usePiPWindow must be used within a PiPProvider");
|
|
404
|
+
}
|
|
405
|
+
return ctx();
|
|
406
|
+
});
|
|
407
|
+
return context;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
// src/contexts/ThemeContext.ts
|
|
411
|
+
var ThemeContext = createContext(
|
|
412
|
+
() => "dark"
|
|
413
|
+
);
|
|
414
|
+
function useTheme() {
|
|
415
|
+
return useContext(ThemeContext);
|
|
416
|
+
}
|
|
2
417
|
|
|
3
418
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.15.1/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
4
419
|
var characterMap = {
|
|
@@ -677,7 +1092,7 @@ function clsx() {
|
|
|
677
1092
|
}
|
|
678
1093
|
|
|
679
1094
|
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
680
|
-
var
|
|
1095
|
+
var noop2 = () => {
|
|
681
1096
|
};
|
|
682
1097
|
function createListTransition(source, options) {
|
|
683
1098
|
const initSource = untrack(source);
|
|
@@ -690,12 +1105,12 @@ function createListTransition(source, options) {
|
|
|
690
1105
|
const exiting = /* @__PURE__ */ new WeakSet();
|
|
691
1106
|
const [toRemove, setToRemove] = createSignal([], { equals: false });
|
|
692
1107
|
const [isTransitionPending] = useTransition();
|
|
693
|
-
const finishRemoved = options.exitMethod === "remove" ?
|
|
1108
|
+
const finishRemoved = options.exitMethod === "remove" ? noop2 : (els) => {
|
|
694
1109
|
setToRemove((p2) => (p2.push.apply(p2, els), p2));
|
|
695
1110
|
for (const el of els)
|
|
696
1111
|
exiting.delete(el);
|
|
697
1112
|
};
|
|
698
|
-
const handleRemoved = options.exitMethod === "remove" ?
|
|
1113
|
+
const handleRemoved = options.exitMethod === "remove" ? noop2 : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
|
|
699
1114
|
return createMemo(
|
|
700
1115
|
(prev) => {
|
|
701
1116
|
const elsToRemove = toRemove();
|
|
@@ -727,71 +1142,21 @@ function createListTransition(source, options) {
|
|
|
727
1142
|
if (!exiting.has(el)) {
|
|
728
1143
|
removed.push(el);
|
|
729
1144
|
exiting.add(el);
|
|
730
|
-
}
|
|
731
|
-
handleRemoved(next, el, i2);
|
|
732
|
-
}
|
|
733
|
-
if (nothingChanged && el !== next[i2])
|
|
734
|
-
nothingChanged = false;
|
|
735
|
-
}
|
|
736
|
-
if (!removed.length && nothingChanged)
|
|
737
|
-
return prev;
|
|
738
|
-
onChange({ list: next, added, removed, unchanged, finishRemoved });
|
|
739
|
-
prevSet = nextSet;
|
|
740
|
-
return next;
|
|
741
|
-
});
|
|
742
|
-
},
|
|
743
|
-
options.appear ? [] : initSource.slice()
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
748
|
-
var isClient = !isServer;
|
|
749
|
-
var isDev = isClient && !!DEV;
|
|
750
|
-
var noop2 = () => void 0;
|
|
751
|
-
var isNonNullable = (i2) => i2 != null;
|
|
752
|
-
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
753
|
-
function chain(callbacks) {
|
|
754
|
-
return (...args) => {
|
|
755
|
-
for (const callback of callbacks)
|
|
756
|
-
callback && callback(...args);
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
var access = (v) => typeof v === "function" && !v.length ? v() : v;
|
|
760
|
-
var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
|
|
761
|
-
function accessWith(valueOrFn, ...args) {
|
|
762
|
-
return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
|
|
763
|
-
}
|
|
764
|
-
var tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
|
|
765
|
-
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
766
|
-
const currLength = current.length;
|
|
767
|
-
const prevLength = prev.length;
|
|
768
|
-
let i2 = 0;
|
|
769
|
-
if (!prevLength) {
|
|
770
|
-
for (; i2 < currLength; i2++)
|
|
771
|
-
handleAdded(current[i2]);
|
|
772
|
-
return;
|
|
773
|
-
}
|
|
774
|
-
if (!currLength) {
|
|
775
|
-
for (; i2 < prevLength; i2++)
|
|
776
|
-
handleRemoved(prev[i2]);
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
for (; i2 < prevLength; i2++) {
|
|
780
|
-
if (prev[i2] !== current[i2])
|
|
781
|
-
break;
|
|
782
|
-
}
|
|
783
|
-
let prevEl;
|
|
784
|
-
let currEl;
|
|
785
|
-
prev = prev.slice(i2);
|
|
786
|
-
current = current.slice(i2);
|
|
787
|
-
for (prevEl of prev) {
|
|
788
|
-
if (!current.includes(prevEl))
|
|
789
|
-
handleRemoved(prevEl);
|
|
790
|
-
}
|
|
791
|
-
for (currEl of current) {
|
|
792
|
-
if (!prev.includes(currEl))
|
|
793
|
-
handleAdded(currEl);
|
|
794
|
-
}
|
|
1145
|
+
}
|
|
1146
|
+
handleRemoved(next, el, i2);
|
|
1147
|
+
}
|
|
1148
|
+
if (nothingChanged && el !== next[i2])
|
|
1149
|
+
nothingChanged = false;
|
|
1150
|
+
}
|
|
1151
|
+
if (!removed.length && nothingChanged)
|
|
1152
|
+
return prev;
|
|
1153
|
+
onChange({ list: next, added, removed, unchanged, finishRemoved });
|
|
1154
|
+
prevSet = nextSet;
|
|
1155
|
+
return next;
|
|
1156
|
+
});
|
|
1157
|
+
},
|
|
1158
|
+
options.appear ? [] : initSource.slice()
|
|
1159
|
+
);
|
|
795
1160
|
}
|
|
796
1161
|
|
|
797
1162
|
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js
|
|
@@ -1021,249 +1386,30 @@ function keyArray(items, keyFn, mapFn, options = {}) {
|
|
|
1021
1386
|
};
|
|
1022
1387
|
function addNewItem(list, item, i2, key) {
|
|
1023
1388
|
createRoot((dispose2) => {
|
|
1024
|
-
const [getItem, setItem] = createSignal(item);
|
|
1025
|
-
const save = { setItem, dispose: dispose2 };
|
|
1026
|
-
if (mapFn.length > 1) {
|
|
1027
|
-
const [index, setIndex] = createSignal(i2);
|
|
1028
|
-
save.setIndex = setIndex;
|
|
1029
|
-
save.mapped = mapFn(getItem, index);
|
|
1030
|
-
} else
|
|
1031
|
-
save.mapped = mapFn(getItem);
|
|
1032
|
-
prev.set(key, save);
|
|
1033
|
-
list[i2] = save.mapped;
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
function Key(props) {
|
|
1038
|
-
const { by } = props;
|
|
1039
|
-
return createMemo(
|
|
1040
|
-
keyArray(
|
|
1041
|
-
() => props.each,
|
|
1042
|
-
typeof by === "function" ? by : (v) => v[by],
|
|
1043
|
-
props.children,
|
|
1044
|
-
"fallback" in props ? { fallback: () => props.fallback } : void 0
|
|
1045
|
-
)
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js
|
|
1050
|
-
function createStorage(props) {
|
|
1051
|
-
const [error, setError] = createSignal();
|
|
1052
|
-
const handleError = props?.throw ? (err, fallback) => {
|
|
1053
|
-
setError(err instanceof Error ? err : new Error(fallback));
|
|
1054
|
-
throw err;
|
|
1055
|
-
} : (err, fallback) => {
|
|
1056
|
-
setError(err instanceof Error ? err : new Error(fallback));
|
|
1057
|
-
};
|
|
1058
|
-
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
1059
|
-
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
1060
|
-
const signals = /* @__PURE__ */ new Map();
|
|
1061
|
-
const store = new Proxy(
|
|
1062
|
-
{},
|
|
1063
|
-
{
|
|
1064
|
-
get(_, key) {
|
|
1065
|
-
let node = signals.get(key);
|
|
1066
|
-
if (!node) {
|
|
1067
|
-
node = createSignal(void 0, { equals: false });
|
|
1068
|
-
signals.set(key, node);
|
|
1069
|
-
}
|
|
1070
|
-
node[0]();
|
|
1071
|
-
const value = apis.reduce(
|
|
1072
|
-
(result, api) => {
|
|
1073
|
-
if (result !== null || !api) {
|
|
1074
|
-
return result;
|
|
1075
|
-
}
|
|
1076
|
-
try {
|
|
1077
|
-
return api.getItem(`${prefix}${key}`);
|
|
1078
|
-
} catch (err) {
|
|
1079
|
-
handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
1080
|
-
return null;
|
|
1081
|
-
}
|
|
1082
|
-
},
|
|
1083
|
-
null
|
|
1084
|
-
);
|
|
1085
|
-
if (value !== null && props?.deserializer) {
|
|
1086
|
-
return props.deserializer(value, key, props.options);
|
|
1087
|
-
}
|
|
1088
|
-
return value;
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
);
|
|
1092
|
-
const setter = (key, value, options) => {
|
|
1093
|
-
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
1094
|
-
const apiKey = `${prefix}${key}`;
|
|
1095
|
-
apis.forEach((api) => {
|
|
1096
|
-
try {
|
|
1097
|
-
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
1098
|
-
} catch (err) {
|
|
1099
|
-
handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
1100
|
-
}
|
|
1101
|
-
});
|
|
1102
|
-
const node = signals.get(key);
|
|
1103
|
-
node && node[1]();
|
|
1104
|
-
};
|
|
1105
|
-
const remove = (key) => apis.forEach((api) => {
|
|
1106
|
-
try {
|
|
1107
|
-
api.removeItem(`${prefix}${key}`);
|
|
1108
|
-
} catch (err) {
|
|
1109
|
-
handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
1110
|
-
}
|
|
1111
|
-
});
|
|
1112
|
-
const clear = () => apis.forEach((api) => {
|
|
1113
|
-
try {
|
|
1114
|
-
api.clear();
|
|
1115
|
-
} catch (err) {
|
|
1116
|
-
handleError(err, `Error clearing ${api.name}`);
|
|
1117
|
-
}
|
|
1118
|
-
});
|
|
1119
|
-
const toJSON = () => {
|
|
1120
|
-
const result = {};
|
|
1121
|
-
const addValue = (key, value) => {
|
|
1122
|
-
if (!result.hasOwnProperty(key)) {
|
|
1123
|
-
const filteredValue = value && props?.deserializer ? props.deserializer(value, key, props.options) : value;
|
|
1124
|
-
if (filteredValue) {
|
|
1125
|
-
result[key] = filteredValue;
|
|
1126
|
-
}
|
|
1127
|
-
}
|
|
1128
|
-
};
|
|
1129
|
-
apis.forEach((api) => {
|
|
1130
|
-
if (typeof api.getAll === "function") {
|
|
1131
|
-
let values;
|
|
1132
|
-
try {
|
|
1133
|
-
values = api.getAll();
|
|
1134
|
-
} catch (err) {
|
|
1135
|
-
handleError(err, `Error getting all values from in ${api.name}`);
|
|
1136
|
-
}
|
|
1137
|
-
for (const key of values) {
|
|
1138
|
-
addValue(key, values[key]);
|
|
1139
|
-
}
|
|
1140
|
-
} else {
|
|
1141
|
-
let index = 0, key;
|
|
1142
|
-
try {
|
|
1143
|
-
while (key = api.key(index++)) {
|
|
1144
|
-
if (!result.hasOwnProperty(key)) {
|
|
1145
|
-
addValue(key, api.getItem(key));
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
} catch (err) {
|
|
1149
|
-
handleError(err, `Error getting all values from ${api.name}`);
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
return result;
|
|
1154
|
-
};
|
|
1155
|
-
props?.sync !== false && onMount(() => {
|
|
1156
|
-
const listener = (ev) => {
|
|
1157
|
-
let changed = false;
|
|
1158
|
-
apis.forEach((api) => {
|
|
1159
|
-
try {
|
|
1160
|
-
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
1161
|
-
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
1162
|
-
changed = true;
|
|
1163
|
-
}
|
|
1164
|
-
} catch (err) {
|
|
1165
|
-
handleError(
|
|
1166
|
-
err,
|
|
1167
|
-
`Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
});
|
|
1171
|
-
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
1172
|
-
};
|
|
1173
|
-
if ("addEventListener" in globalThis) {
|
|
1174
|
-
globalThis.addEventListener("storage", listener);
|
|
1175
|
-
onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
1176
|
-
} else {
|
|
1177
|
-
apis.forEach((api) => api.addEventListener?.("storage", listener));
|
|
1178
|
-
onCleanup(() => apis.forEach((api) => api.removeEventListener?.("storage", listener)));
|
|
1179
|
-
}
|
|
1180
|
-
});
|
|
1181
|
-
return [
|
|
1182
|
-
store,
|
|
1183
|
-
setter,
|
|
1184
|
-
{
|
|
1185
|
-
clear,
|
|
1186
|
-
error,
|
|
1187
|
-
remove,
|
|
1188
|
-
toJSON
|
|
1189
|
-
}
|
|
1190
|
-
];
|
|
1191
|
-
}
|
|
1192
|
-
var createLocalStorage = createStorage;
|
|
1193
|
-
var addClearMethod = (storage) => {
|
|
1194
|
-
if (typeof storage.clear === "function") {
|
|
1195
|
-
return storage;
|
|
1196
|
-
}
|
|
1197
|
-
storage.clear = () => {
|
|
1198
|
-
let key;
|
|
1199
|
-
while (key = storage.key(0)) {
|
|
1200
|
-
storage.removeItem(key);
|
|
1201
|
-
}
|
|
1202
|
-
};
|
|
1203
|
-
return storage;
|
|
1204
|
-
};
|
|
1205
|
-
var serializeCookieOptions = (options) => {
|
|
1206
|
-
if (!options) {
|
|
1207
|
-
return "";
|
|
1208
|
-
}
|
|
1209
|
-
let memo = "";
|
|
1210
|
-
for (const key in options) {
|
|
1211
|
-
if (!options.hasOwnProperty(key)) {
|
|
1212
|
-
continue;
|
|
1213
|
-
}
|
|
1214
|
-
const value = options[key];
|
|
1215
|
-
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
1216
|
-
}
|
|
1217
|
-
return memo;
|
|
1218
|
-
};
|
|
1219
|
-
var cookieStorage = addClearMethod({
|
|
1220
|
-
_cookies: [globalThis.document, "cookie"],
|
|
1221
|
-
getItem: (key) => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
1222
|
-
setItem: (key, value, options) => {
|
|
1223
|
-
const oldValue = cookieStorage.getItem(key);
|
|
1224
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(
|
|
1225
|
-
options
|
|
1226
|
-
)}`;
|
|
1227
|
-
const storageEvent = Object.assign(new Event("storage"), {
|
|
1228
|
-
key,
|
|
1229
|
-
oldValue,
|
|
1230
|
-
newValue: value,
|
|
1231
|
-
url: globalThis.document.URL,
|
|
1232
|
-
storageArea: cookieStorage
|
|
1233
|
-
});
|
|
1234
|
-
window.dispatchEvent(storageEvent);
|
|
1235
|
-
},
|
|
1236
|
-
removeItem: (key) => {
|
|
1237
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({
|
|
1238
|
-
expires: /* @__PURE__ */ new Date(0)
|
|
1239
|
-
})}`;
|
|
1240
|
-
},
|
|
1241
|
-
key: (index) => {
|
|
1242
|
-
let key = null;
|
|
1243
|
-
let count = 0;
|
|
1244
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
1245
|
-
/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,
|
|
1246
|
-
(_, found) => {
|
|
1247
|
-
if (!key && found && count++ === index) {
|
|
1248
|
-
key = found;
|
|
1249
|
-
}
|
|
1250
|
-
return "";
|
|
1251
|
-
}
|
|
1252
|
-
);
|
|
1253
|
-
return key;
|
|
1254
|
-
},
|
|
1255
|
-
get length() {
|
|
1256
|
-
let length = 0;
|
|
1257
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
|
|
1258
|
-
/(?:^|;)\s*.+?\s*=\s*[^;]+/g,
|
|
1259
|
-
(found) => {
|
|
1260
|
-
length += found ? 1 : 0;
|
|
1261
|
-
return "";
|
|
1262
|
-
}
|
|
1263
|
-
);
|
|
1264
|
-
return length;
|
|
1389
|
+
const [getItem, setItem] = createSignal(item);
|
|
1390
|
+
const save = { setItem, dispose: dispose2 };
|
|
1391
|
+
if (mapFn.length > 1) {
|
|
1392
|
+
const [index, setIndex] = createSignal(i2);
|
|
1393
|
+
save.setIndex = setIndex;
|
|
1394
|
+
save.mapped = mapFn(getItem, index);
|
|
1395
|
+
} else
|
|
1396
|
+
save.mapped = mapFn(getItem);
|
|
1397
|
+
prev.set(key, save);
|
|
1398
|
+
list[i2] = save.mapped;
|
|
1399
|
+
});
|
|
1265
1400
|
}
|
|
1266
|
-
}
|
|
1401
|
+
}
|
|
1402
|
+
function Key(props) {
|
|
1403
|
+
const { by } = props;
|
|
1404
|
+
return createMemo(
|
|
1405
|
+
keyArray(
|
|
1406
|
+
() => props.each,
|
|
1407
|
+
typeof by === "function" ? by : (v) => v[by],
|
|
1408
|
+
props.children,
|
|
1409
|
+
"fallback" in props ? { fallback: () => props.fallback } : void 0
|
|
1410
|
+
)
|
|
1411
|
+
);
|
|
1412
|
+
}
|
|
1267
1413
|
|
|
1268
1414
|
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js
|
|
1269
1415
|
function makeEventListener(target, type, handler, options) {
|
|
@@ -1288,7 +1434,7 @@ function createEventListener(targets, type, handler, options) {
|
|
|
1288
1434
|
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js
|
|
1289
1435
|
function makeResizeObserver(callback, options) {
|
|
1290
1436
|
if (isServer) {
|
|
1291
|
-
return { observe:
|
|
1437
|
+
return { observe: noop, unobserve: noop };
|
|
1292
1438
|
}
|
|
1293
1439
|
const observer = new ResizeObserver(callback);
|
|
1294
1440
|
onCleanup(observer.disconnect.bind(observer));
|
|
@@ -8648,24 +8794,6 @@ function TanstackLogo() {
|
|
|
8648
8794
|
})();
|
|
8649
8795
|
}
|
|
8650
8796
|
|
|
8651
|
-
// src/Context.ts
|
|
8652
|
-
var QueryDevtoolsContext = createContext({
|
|
8653
|
-
client: void 0,
|
|
8654
|
-
onlineManager: void 0,
|
|
8655
|
-
queryFlavor: "",
|
|
8656
|
-
version: "",
|
|
8657
|
-
shadowDOMTarget: void 0
|
|
8658
|
-
});
|
|
8659
|
-
function useQueryDevtoolsContext() {
|
|
8660
|
-
return useContext(QueryDevtoolsContext);
|
|
8661
|
-
}
|
|
8662
|
-
var ThemeContext = createContext(
|
|
8663
|
-
() => "dark"
|
|
8664
|
-
);
|
|
8665
|
-
function useTheme() {
|
|
8666
|
-
return useContext(ThemeContext);
|
|
8667
|
-
}
|
|
8668
|
-
|
|
8669
8797
|
// src/Explorer.tsx
|
|
8670
8798
|
var _tmpl$23 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
8671
8799
|
var _tmpl$24 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
|
|
@@ -9271,249 +9399,96 @@ var stylesFactory = (theme, css) => {
|
|
|
9271
9399
|
flex-grow: 1;
|
|
9272
9400
|
`,
|
|
9273
9401
|
actions: css`
|
|
9274
|
-
display: inline-flex;
|
|
9275
|
-
gap: ${size3[2]};
|
|
9276
|
-
align-items: center;
|
|
9277
|
-
`,
|
|
9278
|
-
row: css`
|
|
9279
|
-
display: inline-flex;
|
|
9280
|
-
gap: ${size3[2]};
|
|
9281
|
-
width: 100%;
|
|
9282
|
-
margin: ${size3[0.25]} 0px;
|
|
9283
|
-
line-height: ${size3[4.5]};
|
|
9284
|
-
align-items: center;
|
|
9285
|
-
`,
|
|
9286
|
-
editableInput: css`
|
|
9287
|
-
border: none;
|
|
9288
|
-
padding: ${size3[0.5]} ${size3[1]} ${size3[0.5]} ${size3[1.5]};
|
|
9289
|
-
flex-grow: 1;
|
|
9290
|
-
border-radius: ${border.radius.xs};
|
|
9291
|
-
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
9292
|
-
|
|
9293
|
-
&:hover {
|
|
9294
|
-
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
9295
|
-
}
|
|
9296
|
-
`,
|
|
9297
|
-
actionButton: css`
|
|
9298
|
-
background-color: transparent;
|
|
9299
|
-
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
9300
|
-
border: none;
|
|
9301
|
-
display: inline-flex;
|
|
9302
|
-
padding: 0px;
|
|
9303
|
-
align-items: center;
|
|
9304
|
-
justify-content: center;
|
|
9305
|
-
cursor: pointer;
|
|
9306
|
-
width: ${size3[3]};
|
|
9307
|
-
height: ${size3[3]};
|
|
9308
|
-
position: relative;
|
|
9309
|
-
z-index: 1;
|
|
9310
|
-
|
|
9311
|
-
&:hover svg {
|
|
9312
|
-
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
9313
|
-
}
|
|
9314
|
-
|
|
9315
|
-
&:focus-visible {
|
|
9316
|
-
border-radius: ${border.radius.xs};
|
|
9317
|
-
outline: 2px solid ${colors.blue[800]};
|
|
9318
|
-
outline-offset: 2px;
|
|
9319
|
-
}
|
|
9320
|
-
`
|
|
9321
|
-
};
|
|
9322
|
-
};
|
|
9323
|
-
var lightStyles = (css) => stylesFactory("light", css);
|
|
9324
|
-
var darkStyles = (css) => stylesFactory("dark", css);
|
|
9325
|
-
delegateEvents(["click"]);
|
|
9326
|
-
|
|
9327
|
-
// src/Devtools.tsx
|
|
9328
|
-
var _tmpl$25 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
9329
|
-
var _tmpl$26 = /* @__PURE__ */ template(`<div>`);
|
|
9330
|
-
var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
9331
|
-
var _tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
|
|
9332
|
-
var _tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
|
|
9333
|
-
var _tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
|
|
9334
|
-
var _tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
|
|
9335
|
-
var _tmpl$83 = /* @__PURE__ */ template(`<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">`);
|
|
9336
|
-
var _tmpl$93 = /* @__PURE__ */ template(`<div>Settings`);
|
|
9337
|
-
var _tmpl$103 = /* @__PURE__ */ template(`<span>Position`);
|
|
9338
|
-
var _tmpl$113 = /* @__PURE__ */ template(`<span>Top`);
|
|
9339
|
-
var _tmpl$122 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
9340
|
-
var _tmpl$132 = /* @__PURE__ */ template(`<span>Left`);
|
|
9341
|
-
var _tmpl$142 = /* @__PURE__ */ template(`<span>Right`);
|
|
9342
|
-
var _tmpl$152 = /* @__PURE__ */ template(`<span>Theme`);
|
|
9343
|
-
var _tmpl$162 = /* @__PURE__ */ template(`<span>Light`);
|
|
9344
|
-
var _tmpl$172 = /* @__PURE__ */ template(`<span>Dark`);
|
|
9345
|
-
var _tmpl$182 = /* @__PURE__ */ template(`<span>System`);
|
|
9346
|
-
var _tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
9347
|
-
var _tmpl$202 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
9348
|
-
var _tmpl$212 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
9349
|
-
var _tmpl$223 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
9350
|
-
var _tmpl$232 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
9351
|
-
var _tmpl$242 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
9352
|
-
var _tmpl$252 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
9353
|
-
var _tmpl$262 = /* @__PURE__ */ template(`<span>`);
|
|
9354
|
-
var _tmpl$27 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
9355
|
-
var _tmpl$28 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
9356
|
-
var _tmpl$29 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
9357
|
-
var _tmpl$30 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
9358
|
-
var _tmpl$31 = /* @__PURE__ */ template(`<option>`);
|
|
9359
|
-
var _tmpl$322 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
9360
|
-
var firstBreakpoint = 1024;
|
|
9361
|
-
var secondBreakpoint = 796;
|
|
9362
|
-
var thirdBreakpoint = 700;
|
|
9363
|
-
var BUTTON_POSITION = "bottom-right";
|
|
9364
|
-
var POSITION = "bottom";
|
|
9365
|
-
var THEME_PREFERENCE = "system";
|
|
9366
|
-
var INITIAL_IS_OPEN = false;
|
|
9367
|
-
var DEFAULT_HEIGHT = 500;
|
|
9368
|
-
var DEFAULT_WIDTH = 500;
|
|
9369
|
-
var DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
9370
|
-
var DEFAULT_SORT_ORDER = 1;
|
|
9371
|
-
var DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
9372
|
-
var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
9373
|
-
var [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
9374
|
-
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
9375
|
-
var [offline, setOffline] = createSignal(false);
|
|
9376
|
-
var PiPContext = createContext(void 0);
|
|
9377
|
-
var PiPProvider = (props) => {
|
|
9378
|
-
const [pipWindow, setPipWindow] = createSignal(null);
|
|
9379
|
-
const closePipWindow = () => {
|
|
9380
|
-
const w = pipWindow();
|
|
9381
|
-
if (w != null) {
|
|
9382
|
-
w.close();
|
|
9383
|
-
setPipWindow(null);
|
|
9384
|
-
}
|
|
9385
|
-
};
|
|
9386
|
-
const requestPipWindow = async (width, height) => {
|
|
9387
|
-
if (pipWindow() != null) {
|
|
9388
|
-
return;
|
|
9389
|
-
}
|
|
9390
|
-
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
9391
|
-
if (!pip) {
|
|
9392
|
-
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
9393
|
-
}
|
|
9394
|
-
pip.document.head.innerHTML = "";
|
|
9395
|
-
pip.document.body.innerHTML = "";
|
|
9396
|
-
clearDelegatedEvents(pip.document);
|
|
9397
|
-
pip.document.title = "TanStack Query Devtools";
|
|
9398
|
-
pip.document.body.style.margin = "0";
|
|
9399
|
-
pip.addEventListener("pagehide", () => {
|
|
9400
|
-
props.setLocalStore("pip_open", "false");
|
|
9401
|
-
setPipWindow(null);
|
|
9402
|
-
});
|
|
9403
|
-
[...(useQueryDevtoolsContext().shadowDOMTarget || document).styleSheets].forEach((styleSheet) => {
|
|
9404
|
-
try {
|
|
9405
|
-
const cssRules = [...styleSheet.cssRules].map((rule) => rule.cssText).join("");
|
|
9406
|
-
const style = document.createElement("style");
|
|
9407
|
-
const style_node = styleSheet.ownerNode;
|
|
9408
|
-
let style_id = "";
|
|
9409
|
-
if (style_node && "id" in style_node) {
|
|
9410
|
-
style_id = style_node.id;
|
|
9411
|
-
}
|
|
9412
|
-
if (style_id) {
|
|
9413
|
-
style.setAttribute("id", style_id);
|
|
9414
|
-
}
|
|
9415
|
-
style.textContent = cssRules;
|
|
9416
|
-
pip.document.head.appendChild(style);
|
|
9417
|
-
} catch (e2) {
|
|
9418
|
-
const link = document.createElement("link");
|
|
9419
|
-
if (styleSheet.href == null) {
|
|
9420
|
-
return;
|
|
9421
|
-
}
|
|
9422
|
-
link.rel = "stylesheet";
|
|
9423
|
-
link.type = styleSheet.type;
|
|
9424
|
-
link.media = styleSheet.media.toString();
|
|
9425
|
-
link.href = styleSheet.href;
|
|
9426
|
-
pip.document.head.appendChild(link);
|
|
9427
|
-
}
|
|
9428
|
-
});
|
|
9429
|
-
delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
|
|
9430
|
-
props.setLocalStore("pip_open", "true");
|
|
9431
|
-
setPipWindow(pip);
|
|
9432
|
-
};
|
|
9433
|
-
createEffect(() => {
|
|
9434
|
-
const pip_open = props.localStore.pip_open ?? "false";
|
|
9435
|
-
if (pip_open === "true") {
|
|
9436
|
-
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || DEFAULT_HEIGHT));
|
|
9437
|
-
}
|
|
9438
|
-
});
|
|
9439
|
-
createEffect(() => {
|
|
9440
|
-
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
9441
|
-
const w = pipWindow();
|
|
9442
|
-
if (gooberStyles && w) {
|
|
9443
|
-
const observer = new MutationObserver(() => {
|
|
9444
|
-
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
9445
|
-
if (pip_style) {
|
|
9446
|
-
pip_style.textContent = gooberStyles.textContent;
|
|
9447
|
-
}
|
|
9448
|
-
});
|
|
9449
|
-
observer.observe(gooberStyles, {
|
|
9450
|
-
childList: true,
|
|
9451
|
-
// observe direct children
|
|
9452
|
-
subtree: true,
|
|
9453
|
-
// and lower descendants too
|
|
9454
|
-
characterDataOldValue: true
|
|
9455
|
-
// pass old data to callback
|
|
9456
|
-
});
|
|
9457
|
-
onCleanup(() => {
|
|
9458
|
-
observer.disconnect();
|
|
9459
|
-
});
|
|
9460
|
-
}
|
|
9461
|
-
});
|
|
9462
|
-
const value = createMemo(() => ({
|
|
9463
|
-
pipWindow: pipWindow(),
|
|
9464
|
-
requestPipWindow,
|
|
9465
|
-
closePipWindow
|
|
9466
|
-
}));
|
|
9467
|
-
return createComponent(PiPContext.Provider, {
|
|
9468
|
-
value,
|
|
9469
|
-
get children() {
|
|
9470
|
-
return props.children;
|
|
9471
|
-
}
|
|
9472
|
-
});
|
|
9473
|
-
};
|
|
9474
|
-
var usePiPWindow = () => {
|
|
9475
|
-
const context = createMemo(() => {
|
|
9476
|
-
const ctx = useContext(PiPContext);
|
|
9477
|
-
if (!ctx) {
|
|
9478
|
-
throw new Error("usePiPWindow must be used within a PiPProvider");
|
|
9479
|
-
}
|
|
9480
|
-
return ctx();
|
|
9481
|
-
});
|
|
9482
|
-
return context;
|
|
9483
|
-
};
|
|
9484
|
-
var DevtoolsComponent = (props) => {
|
|
9485
|
-
const [localStore, setLocalStore] = createLocalStorage({
|
|
9486
|
-
prefix: "TanstackQueryDevtools"
|
|
9487
|
-
});
|
|
9488
|
-
const colorScheme = getPreferredColorScheme();
|
|
9489
|
-
const theme = createMemo(() => {
|
|
9490
|
-
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
9491
|
-
if (preference !== "system")
|
|
9492
|
-
return preference;
|
|
9493
|
-
return colorScheme();
|
|
9494
|
-
});
|
|
9495
|
-
return createComponent(QueryDevtoolsContext.Provider, {
|
|
9496
|
-
value: props,
|
|
9497
|
-
get children() {
|
|
9498
|
-
return createComponent(PiPProvider, {
|
|
9499
|
-
localStore,
|
|
9500
|
-
setLocalStore,
|
|
9501
|
-
get children() {
|
|
9502
|
-
return createComponent(ThemeContext.Provider, {
|
|
9503
|
-
value: theme,
|
|
9504
|
-
get children() {
|
|
9505
|
-
return createComponent(Devtools, {
|
|
9506
|
-
localStore,
|
|
9507
|
-
setLocalStore
|
|
9508
|
-
});
|
|
9509
|
-
}
|
|
9510
|
-
});
|
|
9511
|
-
}
|
|
9512
|
-
});
|
|
9513
|
-
}
|
|
9514
|
-
});
|
|
9402
|
+
display: inline-flex;
|
|
9403
|
+
gap: ${size3[2]};
|
|
9404
|
+
align-items: center;
|
|
9405
|
+
`,
|
|
9406
|
+
row: css`
|
|
9407
|
+
display: inline-flex;
|
|
9408
|
+
gap: ${size3[2]};
|
|
9409
|
+
width: 100%;
|
|
9410
|
+
margin: ${size3[0.25]} 0px;
|
|
9411
|
+
line-height: ${size3[4.5]};
|
|
9412
|
+
align-items: center;
|
|
9413
|
+
`,
|
|
9414
|
+
editableInput: css`
|
|
9415
|
+
border: none;
|
|
9416
|
+
padding: ${size3[0.5]} ${size3[1]} ${size3[0.5]} ${size3[1.5]};
|
|
9417
|
+
flex-grow: 1;
|
|
9418
|
+
border-radius: ${border.radius.xs};
|
|
9419
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
9420
|
+
|
|
9421
|
+
&:hover {
|
|
9422
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
9423
|
+
}
|
|
9424
|
+
`,
|
|
9425
|
+
actionButton: css`
|
|
9426
|
+
background-color: transparent;
|
|
9427
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
9428
|
+
border: none;
|
|
9429
|
+
display: inline-flex;
|
|
9430
|
+
padding: 0px;
|
|
9431
|
+
align-items: center;
|
|
9432
|
+
justify-content: center;
|
|
9433
|
+
cursor: pointer;
|
|
9434
|
+
width: ${size3[3]};
|
|
9435
|
+
height: ${size3[3]};
|
|
9436
|
+
position: relative;
|
|
9437
|
+
z-index: 1;
|
|
9438
|
+
|
|
9439
|
+
&:hover svg {
|
|
9440
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
9441
|
+
}
|
|
9442
|
+
|
|
9443
|
+
&:focus-visible {
|
|
9444
|
+
border-radius: ${border.radius.xs};
|
|
9445
|
+
outline: 2px solid ${colors.blue[800]};
|
|
9446
|
+
outline-offset: 2px;
|
|
9447
|
+
}
|
|
9448
|
+
`
|
|
9449
|
+
};
|
|
9515
9450
|
};
|
|
9516
|
-
var
|
|
9451
|
+
var lightStyles = (css) => stylesFactory("light", css);
|
|
9452
|
+
var darkStyles = (css) => stylesFactory("dark", css);
|
|
9453
|
+
delegateEvents(["click"]);
|
|
9454
|
+
|
|
9455
|
+
// src/Devtools.tsx
|
|
9456
|
+
var _tmpl$25 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
9457
|
+
var _tmpl$26 = /* @__PURE__ */ template(`<div>`);
|
|
9458
|
+
var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
9459
|
+
var _tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
|
|
9460
|
+
var _tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
|
|
9461
|
+
var _tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
|
|
9462
|
+
var _tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
|
|
9463
|
+
var _tmpl$83 = /* @__PURE__ */ template(`<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">`);
|
|
9464
|
+
var _tmpl$93 = /* @__PURE__ */ template(`<div>Settings`);
|
|
9465
|
+
var _tmpl$103 = /* @__PURE__ */ template(`<span>Position`);
|
|
9466
|
+
var _tmpl$113 = /* @__PURE__ */ template(`<span>Top`);
|
|
9467
|
+
var _tmpl$122 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
9468
|
+
var _tmpl$132 = /* @__PURE__ */ template(`<span>Left`);
|
|
9469
|
+
var _tmpl$142 = /* @__PURE__ */ template(`<span>Right`);
|
|
9470
|
+
var _tmpl$152 = /* @__PURE__ */ template(`<span>Theme`);
|
|
9471
|
+
var _tmpl$162 = /* @__PURE__ */ template(`<span>Light`);
|
|
9472
|
+
var _tmpl$172 = /* @__PURE__ */ template(`<span>Dark`);
|
|
9473
|
+
var _tmpl$182 = /* @__PURE__ */ template(`<span>System`);
|
|
9474
|
+
var _tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
9475
|
+
var _tmpl$202 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
9476
|
+
var _tmpl$212 = /* @__PURE__ */ template(`<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
9477
|
+
var _tmpl$223 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
9478
|
+
var _tmpl$232 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
9479
|
+
var _tmpl$242 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
9480
|
+
var _tmpl$252 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
9481
|
+
var _tmpl$262 = /* @__PURE__ */ template(`<span>`);
|
|
9482
|
+
var _tmpl$27 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
9483
|
+
var _tmpl$28 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
9484
|
+
var _tmpl$29 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
9485
|
+
var _tmpl$30 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
9486
|
+
var _tmpl$31 = /* @__PURE__ */ template(`<option>`);
|
|
9487
|
+
var _tmpl$322 = /* @__PURE__ */ template(`<div><div>Mutation Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
9488
|
+
var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
9489
|
+
var [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
9490
|
+
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
9491
|
+
var [offline, setOffline] = createSignal(false);
|
|
9517
9492
|
var Devtools = (props) => {
|
|
9518
9493
|
const theme = useTheme();
|
|
9519
9494
|
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
@@ -9566,14 +9541,7 @@ var Devtools = (props) => {
|
|
|
9566
9541
|
get children() {
|
|
9567
9542
|
return createComponent(PiPPanel, {
|
|
9568
9543
|
get children() {
|
|
9569
|
-
return createComponent(ContentView,
|
|
9570
|
-
get localStore() {
|
|
9571
|
-
return props.localStore;
|
|
9572
|
-
},
|
|
9573
|
-
get setLocalStore() {
|
|
9574
|
-
return props.setLocalStore;
|
|
9575
|
-
}
|
|
9576
|
-
});
|
|
9544
|
+
return createComponent(ContentView, props);
|
|
9577
9545
|
}
|
|
9578
9546
|
});
|
|
9579
9547
|
}
|
|
@@ -9591,7 +9559,7 @@ var Devtools = (props) => {
|
|
|
9591
9559
|
return createMemo(() => !!(isOpen() && !pip().pipWindow))() && pip_open() == "false";
|
|
9592
9560
|
},
|
|
9593
9561
|
get children() {
|
|
9594
|
-
return createComponent(
|
|
9562
|
+
return createComponent(DraggablePanel, {
|
|
9595
9563
|
get localStore() {
|
|
9596
9564
|
return props.localStore;
|
|
9597
9565
|
},
|
|
@@ -9708,7 +9676,55 @@ var PiPPanel = (props) => {
|
|
|
9708
9676
|
return _el$5;
|
|
9709
9677
|
})();
|
|
9710
9678
|
};
|
|
9711
|
-
var
|
|
9679
|
+
var ParentPanel = (props) => {
|
|
9680
|
+
const theme = useTheme();
|
|
9681
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9682
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9683
|
+
}) : u;
|
|
9684
|
+
const styles = createMemo(() => {
|
|
9685
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9686
|
+
});
|
|
9687
|
+
let panelRef;
|
|
9688
|
+
onMount(() => {
|
|
9689
|
+
createResizeObserver(panelRef, ({
|
|
9690
|
+
width
|
|
9691
|
+
}, el) => {
|
|
9692
|
+
if (el === panelRef) {
|
|
9693
|
+
setPanelWidth(width);
|
|
9694
|
+
}
|
|
9695
|
+
});
|
|
9696
|
+
});
|
|
9697
|
+
const getPanelDynamicStyles = () => {
|
|
9698
|
+
const {
|
|
9699
|
+
colors
|
|
9700
|
+
} = tokens;
|
|
9701
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
9702
|
+
if (panelWidth() < secondBreakpoint) {
|
|
9703
|
+
return css`
|
|
9704
|
+
flex-direction: column;
|
|
9705
|
+
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
9706
|
+
`;
|
|
9707
|
+
}
|
|
9708
|
+
return css`
|
|
9709
|
+
flex-direction: row;
|
|
9710
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
9711
|
+
`;
|
|
9712
|
+
};
|
|
9713
|
+
return (() => {
|
|
9714
|
+
var _el$6 = _tmpl$26();
|
|
9715
|
+
var _ref$2 = panelRef;
|
|
9716
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$6) : panelRef = _el$6;
|
|
9717
|
+
_el$6.style.setProperty("--tsqd-font-size", "16px");
|
|
9718
|
+
insert(_el$6, () => props.children);
|
|
9719
|
+
createRenderEffect(() => className(_el$6, clsx(styles().parentPanel, getPanelDynamicStyles(), {
|
|
9720
|
+
[css`
|
|
9721
|
+
min-width: min-content;
|
|
9722
|
+
`]: panelWidth() < thirdBreakpoint
|
|
9723
|
+
}, "tsqd-main-panel")));
|
|
9724
|
+
return _el$6;
|
|
9725
|
+
})();
|
|
9726
|
+
};
|
|
9727
|
+
var DraggablePanel = (props) => {
|
|
9712
9728
|
const theme = useTheme();
|
|
9713
9729
|
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9714
9730
|
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
@@ -9819,31 +9835,24 @@ var DevtoolsPanel = (props) => {
|
|
|
9819
9835
|
`;
|
|
9820
9836
|
};
|
|
9821
9837
|
return (() => {
|
|
9822
|
-
var _el$
|
|
9823
|
-
var _ref$
|
|
9824
|
-
typeof _ref$
|
|
9825
|
-
_el$
|
|
9826
|
-
_el$
|
|
9827
|
-
insert(_el$
|
|
9828
|
-
insert(_el$
|
|
9829
|
-
get localStore() {
|
|
9830
|
-
return props.localStore;
|
|
9831
|
-
},
|
|
9832
|
-
get setLocalStore() {
|
|
9833
|
-
return props.setLocalStore;
|
|
9834
|
-
}
|
|
9835
|
-
}), null);
|
|
9838
|
+
var _el$7 = _tmpl$33(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling;
|
|
9839
|
+
var _ref$3 = panelRef;
|
|
9840
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$7) : panelRef = _el$7;
|
|
9841
|
+
_el$8.$$mousedown = handleDragStart;
|
|
9842
|
+
_el$9.$$click = () => props.setLocalStore("open", "false");
|
|
9843
|
+
insert(_el$9, createComponent(ChevronDown, {}));
|
|
9844
|
+
insert(_el$7, createComponent(ContentView, props), null);
|
|
9836
9845
|
createRenderEffect((_p$) => {
|
|
9837
9846
|
var _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
9838
9847
|
[css`
|
|
9839
9848
|
min-width: min-content;
|
|
9840
9849
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
9841
9850
|
}, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn");
|
|
9842
|
-
_v$ !== _p$.e && className(_el$
|
|
9843
|
-
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$
|
|
9844
|
-
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$
|
|
9845
|
-
_v$4 !== _p$.o && className(_el$
|
|
9846
|
-
_v$5 !== _p$.i && className(_el$
|
|
9851
|
+
_v$ !== _p$.e && className(_el$7, _p$.e = _v$);
|
|
9852
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$7.style.setProperty("height", _v$2) : _el$7.style.removeProperty("height"));
|
|
9853
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$7.style.setProperty("width", _v$3) : _el$7.style.removeProperty("width"));
|
|
9854
|
+
_v$4 !== _p$.o && className(_el$8, _p$.o = _v$4);
|
|
9855
|
+
_v$5 !== _p$.i && className(_el$9, _p$.i = _v$5);
|
|
9847
9856
|
return _p$;
|
|
9848
9857
|
}, {
|
|
9849
9858
|
e: void 0,
|
|
@@ -9852,7 +9861,7 @@ var DevtoolsPanel = (props) => {
|
|
|
9852
9861
|
o: void 0,
|
|
9853
9862
|
i: void 0
|
|
9854
9863
|
});
|
|
9855
|
-
return _el$
|
|
9864
|
+
return _el$7;
|
|
9856
9865
|
})();
|
|
9857
9866
|
};
|
|
9858
9867
|
var ContentView = (props) => {
|
|
@@ -9911,17 +9920,21 @@ var ContentView = (props) => {
|
|
|
9911
9920
|
el.style.setProperty("--tsqd-font-size", variable);
|
|
9912
9921
|
};
|
|
9913
9922
|
return [(() => {
|
|
9914
|
-
var _el$
|
|
9915
|
-
var _ref$
|
|
9916
|
-
typeof _ref$
|
|
9917
|
-
_el$
|
|
9918
|
-
if (!pip().pipWindow) {
|
|
9923
|
+
var _el$10 = _tmpl$212(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$11.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$19.firstChild, _el$21 = _el$19.nextSibling, _el$24 = _el$21.nextSibling, _el$27 = _el$18.nextSibling, _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling;
|
|
9924
|
+
var _ref$4 = containerRef;
|
|
9925
|
+
typeof _ref$4 === "function" ? use(_ref$4, _el$10) : containerRef = _el$10;
|
|
9926
|
+
_el$13.$$click = () => {
|
|
9927
|
+
if (!pip().pipWindow && !props.showPanelViewOnly) {
|
|
9919
9928
|
props.setLocalStore("open", "false");
|
|
9929
|
+
return;
|
|
9930
|
+
}
|
|
9931
|
+
if (props.onClose) {
|
|
9932
|
+
props.onClose();
|
|
9920
9933
|
}
|
|
9921
9934
|
};
|
|
9922
|
-
insert(_el$
|
|
9923
|
-
insert(_el$
|
|
9924
|
-
insert(_el$
|
|
9935
|
+
insert(_el$15, () => useQueryDevtoolsContext().queryFlavor, _el$16);
|
|
9936
|
+
insert(_el$15, () => useQueryDevtoolsContext().version, null);
|
|
9937
|
+
insert(_el$12, createComponent(radio_group_exports.Root, {
|
|
9925
9938
|
get ["class"]() {
|
|
9926
9939
|
return clsx(styles().viewToggle);
|
|
9927
9940
|
},
|
|
@@ -9963,7 +9976,7 @@ var ContentView = (props) => {
|
|
|
9963
9976
|
})];
|
|
9964
9977
|
}
|
|
9965
9978
|
}), null);
|
|
9966
|
-
insert(_el$
|
|
9979
|
+
insert(_el$11, createComponent(Show, {
|
|
9967
9980
|
get when() {
|
|
9968
9981
|
return selectedView() === "queries";
|
|
9969
9982
|
},
|
|
@@ -9971,7 +9984,7 @@ var ContentView = (props) => {
|
|
|
9971
9984
|
return createComponent(QueryStatusCount, {});
|
|
9972
9985
|
}
|
|
9973
9986
|
}), null);
|
|
9974
|
-
insert(_el$
|
|
9987
|
+
insert(_el$11, createComponent(Show, {
|
|
9975
9988
|
get when() {
|
|
9976
9989
|
return selectedView() === "mutations";
|
|
9977
9990
|
},
|
|
@@ -9979,61 +9992,61 @@ var ContentView = (props) => {
|
|
|
9979
9992
|
return createComponent(MutationStatusCount, {});
|
|
9980
9993
|
}
|
|
9981
9994
|
}), null);
|
|
9982
|
-
insert(_el$
|
|
9983
|
-
_el$
|
|
9995
|
+
insert(_el$19, createComponent(Search, {}), _el$20);
|
|
9996
|
+
_el$20.$$input = (e2) => {
|
|
9984
9997
|
if (selectedView() === "queries") {
|
|
9985
9998
|
props.setLocalStore("filter", e2.currentTarget.value);
|
|
9986
9999
|
} else {
|
|
9987
10000
|
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
9988
10001
|
}
|
|
9989
10002
|
};
|
|
9990
|
-
insert(_el$
|
|
10003
|
+
insert(_el$21, createComponent(Show, {
|
|
9991
10004
|
get when() {
|
|
9992
10005
|
return selectedView() === "queries";
|
|
9993
10006
|
},
|
|
9994
10007
|
get children() {
|
|
9995
|
-
var _el$
|
|
9996
|
-
_el$
|
|
10008
|
+
var _el$22 = _tmpl$43();
|
|
10009
|
+
_el$22.addEventListener("change", (e2) => {
|
|
9997
10010
|
props.setLocalStore("sort", e2.currentTarget.value);
|
|
9998
10011
|
});
|
|
9999
|
-
insert(_el$
|
|
10000
|
-
var _el$
|
|
10001
|
-
_el$
|
|
10002
|
-
insert(_el$
|
|
10003
|
-
return _el$
|
|
10012
|
+
insert(_el$22, () => Object.keys(sortFns).map((key) => (() => {
|
|
10013
|
+
var _el$45 = _tmpl$223(); _el$45.firstChild;
|
|
10014
|
+
_el$45.value = key;
|
|
10015
|
+
insert(_el$45, key, null);
|
|
10016
|
+
return _el$45;
|
|
10004
10017
|
})()));
|
|
10005
|
-
createRenderEffect(() => _el$
|
|
10006
|
-
return _el$
|
|
10018
|
+
createRenderEffect(() => _el$22.value = sort());
|
|
10019
|
+
return _el$22;
|
|
10007
10020
|
}
|
|
10008
10021
|
}), null);
|
|
10009
|
-
insert(_el$
|
|
10022
|
+
insert(_el$21, createComponent(Show, {
|
|
10010
10023
|
get when() {
|
|
10011
10024
|
return selectedView() === "mutations";
|
|
10012
10025
|
},
|
|
10013
10026
|
get children() {
|
|
10014
|
-
var _el$
|
|
10015
|
-
_el$
|
|
10027
|
+
var _el$23 = _tmpl$53();
|
|
10028
|
+
_el$23.addEventListener("change", (e2) => {
|
|
10016
10029
|
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
10017
10030
|
});
|
|
10018
|
-
insert(_el$
|
|
10019
|
-
var _el$
|
|
10020
|
-
_el$
|
|
10021
|
-
insert(_el$
|
|
10022
|
-
return _el$
|
|
10031
|
+
insert(_el$23, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
10032
|
+
var _el$47 = _tmpl$223(); _el$47.firstChild;
|
|
10033
|
+
_el$47.value = key;
|
|
10034
|
+
insert(_el$47, key, null);
|
|
10035
|
+
return _el$47;
|
|
10023
10036
|
})()));
|
|
10024
|
-
createRenderEffect(() => _el$
|
|
10025
|
-
return _el$
|
|
10037
|
+
createRenderEffect(() => _el$23.value = mutationSort());
|
|
10038
|
+
return _el$23;
|
|
10026
10039
|
}
|
|
10027
10040
|
}), null);
|
|
10028
|
-
insert(_el$
|
|
10029
|
-
_el$
|
|
10041
|
+
insert(_el$21, createComponent(ChevronDown, {}), null);
|
|
10042
|
+
_el$24.$$click = () => {
|
|
10030
10043
|
if (selectedView() === "queries") {
|
|
10031
10044
|
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
10032
10045
|
} else {
|
|
10033
10046
|
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
10034
10047
|
}
|
|
10035
10048
|
};
|
|
10036
|
-
insert(_el$
|
|
10049
|
+
insert(_el$24, createComponent(Show, {
|
|
10037
10050
|
get when() {
|
|
10038
10051
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
10039
10052
|
},
|
|
@@ -10041,7 +10054,7 @@ var ContentView = (props) => {
|
|
|
10041
10054
|
return [_tmpl$63(), createComponent(ArrowUp, {})];
|
|
10042
10055
|
}
|
|
10043
10056
|
}), null);
|
|
10044
|
-
insert(_el$
|
|
10057
|
+
insert(_el$24, createComponent(Show, {
|
|
10045
10058
|
get when() {
|
|
10046
10059
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
10047
10060
|
},
|
|
@@ -10049,15 +10062,15 @@ var ContentView = (props) => {
|
|
|
10049
10062
|
return [_tmpl$73(), createComponent(ArrowDown, {})];
|
|
10050
10063
|
}
|
|
10051
10064
|
}), null);
|
|
10052
|
-
_el$
|
|
10065
|
+
_el$28.$$click = () => {
|
|
10053
10066
|
if (selectedView() === "queries") {
|
|
10054
10067
|
query_cache().clear();
|
|
10055
10068
|
} else {
|
|
10056
10069
|
mutation_cache().clear();
|
|
10057
10070
|
}
|
|
10058
10071
|
};
|
|
10059
|
-
insert(_el$
|
|
10060
|
-
_el$
|
|
10072
|
+
insert(_el$28, createComponent(Trash, {}));
|
|
10073
|
+
_el$29.$$click = () => {
|
|
10061
10074
|
if (offline()) {
|
|
10062
10075
|
onlineManager().setOnline(true);
|
|
10063
10076
|
setOffline(false);
|
|
@@ -10066,25 +10079,25 @@ var ContentView = (props) => {
|
|
|
10066
10079
|
setOffline(true);
|
|
10067
10080
|
}
|
|
10068
10081
|
};
|
|
10069
|
-
insert(_el$
|
|
10082
|
+
insert(_el$29, (() => {
|
|
10070
10083
|
var _c$ = createMemo(() => !!offline());
|
|
10071
10084
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
10072
10085
|
})());
|
|
10073
|
-
insert(_el$
|
|
10086
|
+
insert(_el$27, createComponent(Show, {
|
|
10074
10087
|
get when() {
|
|
10075
|
-
return !pip().
|
|
10088
|
+
return createMemo(() => !!!pip().pipWindow)() && !pip().disabled;
|
|
10076
10089
|
},
|
|
10077
10090
|
get children() {
|
|
10078
|
-
var _el$
|
|
10079
|
-
_el$
|
|
10091
|
+
var _el$30 = _tmpl$83();
|
|
10092
|
+
_el$30.$$click = () => {
|
|
10080
10093
|
pip().requestPipWindow(Number(window.innerWidth), Number(props.localStore.height ?? 500));
|
|
10081
10094
|
};
|
|
10082
|
-
insert(_el$
|
|
10083
|
-
createRenderEffect(() => className(_el$
|
|
10084
|
-
return _el$
|
|
10095
|
+
insert(_el$30, createComponent(PiPIcon, {}));
|
|
10096
|
+
createRenderEffect(() => className(_el$30, clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-open-pip")));
|
|
10097
|
+
return _el$30;
|
|
10085
10098
|
}
|
|
10086
10099
|
}), null);
|
|
10087
|
-
insert(_el$
|
|
10100
|
+
insert(_el$27, createComponent(dropdown_menu_exports.Root, {
|
|
10088
10101
|
gutter: 4,
|
|
10089
10102
|
get children() {
|
|
10090
10103
|
return [createComponent(dropdown_menu_exports.Trigger, {
|
|
@@ -10106,81 +10119,88 @@ var ContentView = (props) => {
|
|
|
10106
10119
|
},
|
|
10107
10120
|
get children() {
|
|
10108
10121
|
return [(() => {
|
|
10109
|
-
var _el$
|
|
10110
|
-
createRenderEffect(() => className(_el$
|
|
10111
|
-
return _el$
|
|
10112
|
-
})(), createComponent(
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10122
|
+
var _el$31 = _tmpl$93();
|
|
10123
|
+
createRenderEffect(() => className(_el$31, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
10124
|
+
return _el$31;
|
|
10125
|
+
})(), createComponent(Show, {
|
|
10126
|
+
get when() {
|
|
10127
|
+
return !props.showPanelViewOnly;
|
|
10128
|
+
},
|
|
10116
10129
|
get children() {
|
|
10117
|
-
return
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
get children() {
|
|
10122
|
-
return [_tmpl$103(), createComponent(ChevronDown, {})];
|
|
10123
|
-
}
|
|
10124
|
-
}), createComponent(dropdown_menu_exports.Portal, {
|
|
10125
|
-
ref: (el) => setComputedVariables(el),
|
|
10126
|
-
get mount() {
|
|
10127
|
-
return createMemo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
|
|
10128
|
-
},
|
|
10130
|
+
return createComponent(dropdown_menu_exports.Sub, {
|
|
10131
|
+
overlap: true,
|
|
10132
|
+
gutter: 8,
|
|
10133
|
+
shift: -4,
|
|
10129
10134
|
get children() {
|
|
10130
|
-
return createComponent(dropdown_menu_exports.
|
|
10135
|
+
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
10131
10136
|
get ["class"]() {
|
|
10132
|
-
return clsx(styles().
|
|
10137
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10133
10138
|
},
|
|
10134
10139
|
get children() {
|
|
10135
|
-
return [createComponent(
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
return [_tmpl$113(), createComponent(ArrowUp, {})];
|
|
10145
|
-
}
|
|
10146
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
10147
|
-
onSelect: () => {
|
|
10148
|
-
setDevtoolsPosition("bottom");
|
|
10149
|
-
},
|
|
10150
|
-
as: "button",
|
|
10151
|
-
get ["class"]() {
|
|
10152
|
-
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10153
|
-
},
|
|
10154
|
-
get children() {
|
|
10155
|
-
return [_tmpl$122(), createComponent(ArrowDown, {})];
|
|
10156
|
-
}
|
|
10157
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
10158
|
-
onSelect: () => {
|
|
10159
|
-
setDevtoolsPosition("left");
|
|
10160
|
-
},
|
|
10161
|
-
as: "button",
|
|
10162
|
-
get ["class"]() {
|
|
10163
|
-
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10164
|
-
},
|
|
10165
|
-
get children() {
|
|
10166
|
-
return [_tmpl$132(), createComponent(ArrowLeft, {})];
|
|
10167
|
-
}
|
|
10168
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
10169
|
-
onSelect: () => {
|
|
10170
|
-
setDevtoolsPosition("right");
|
|
10171
|
-
},
|
|
10172
|
-
as: "button",
|
|
10140
|
+
return [_tmpl$103(), createComponent(ChevronDown, {})];
|
|
10141
|
+
}
|
|
10142
|
+
}), createComponent(dropdown_menu_exports.Portal, {
|
|
10143
|
+
ref: (el) => setComputedVariables(el),
|
|
10144
|
+
get mount() {
|
|
10145
|
+
return createMemo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
|
|
10146
|
+
},
|
|
10147
|
+
get children() {
|
|
10148
|
+
return createComponent(dropdown_menu_exports.SubContent, {
|
|
10173
10149
|
get ["class"]() {
|
|
10174
|
-
return clsx(styles().
|
|
10150
|
+
return clsx(styles().settingsMenu, "tsqd-settings-submenu");
|
|
10175
10151
|
},
|
|
10176
10152
|
get children() {
|
|
10177
|
-
return [
|
|
10153
|
+
return [createComponent(dropdown_menu_exports.Item, {
|
|
10154
|
+
onSelect: () => {
|
|
10155
|
+
setDevtoolsPosition("top");
|
|
10156
|
+
},
|
|
10157
|
+
as: "button",
|
|
10158
|
+
get ["class"]() {
|
|
10159
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10160
|
+
},
|
|
10161
|
+
get children() {
|
|
10162
|
+
return [_tmpl$113(), createComponent(ArrowUp, {})];
|
|
10163
|
+
}
|
|
10164
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
10165
|
+
onSelect: () => {
|
|
10166
|
+
setDevtoolsPosition("bottom");
|
|
10167
|
+
},
|
|
10168
|
+
as: "button",
|
|
10169
|
+
get ["class"]() {
|
|
10170
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10171
|
+
},
|
|
10172
|
+
get children() {
|
|
10173
|
+
return [_tmpl$122(), createComponent(ArrowDown, {})];
|
|
10174
|
+
}
|
|
10175
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
10176
|
+
onSelect: () => {
|
|
10177
|
+
setDevtoolsPosition("left");
|
|
10178
|
+
},
|
|
10179
|
+
as: "button",
|
|
10180
|
+
get ["class"]() {
|
|
10181
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10182
|
+
},
|
|
10183
|
+
get children() {
|
|
10184
|
+
return [_tmpl$132(), createComponent(ArrowLeft, {})];
|
|
10185
|
+
}
|
|
10186
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
10187
|
+
onSelect: () => {
|
|
10188
|
+
setDevtoolsPosition("right");
|
|
10189
|
+
},
|
|
10190
|
+
as: "button",
|
|
10191
|
+
get ["class"]() {
|
|
10192
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
10193
|
+
},
|
|
10194
|
+
get children() {
|
|
10195
|
+
return [_tmpl$142(), createComponent(ArrowRight, {})];
|
|
10196
|
+
}
|
|
10197
|
+
})];
|
|
10178
10198
|
}
|
|
10179
|
-
})
|
|
10199
|
+
});
|
|
10180
10200
|
}
|
|
10181
|
-
});
|
|
10201
|
+
})];
|
|
10182
10202
|
}
|
|
10183
|
-
})
|
|
10203
|
+
});
|
|
10184
10204
|
}
|
|
10185
10205
|
}), createComponent(dropdown_menu_exports.Sub, {
|
|
10186
10206
|
overlap: true,
|
|
@@ -10251,13 +10271,13 @@ var ContentView = (props) => {
|
|
|
10251
10271
|
})];
|
|
10252
10272
|
}
|
|
10253
10273
|
}), null);
|
|
10254
|
-
insert(_el$
|
|
10274
|
+
insert(_el$10, createComponent(Show, {
|
|
10255
10275
|
get when() {
|
|
10256
10276
|
return selectedView() === "queries";
|
|
10257
10277
|
},
|
|
10258
10278
|
get children() {
|
|
10259
|
-
var _el$
|
|
10260
|
-
insert(_el$
|
|
10279
|
+
var _el$41 = _tmpl$192(), _el$42 = _el$41.firstChild;
|
|
10280
|
+
insert(_el$42, createComponent(Key, {
|
|
10261
10281
|
by: (q) => q.queryHash,
|
|
10262
10282
|
get each() {
|
|
10263
10283
|
return queries();
|
|
@@ -10268,17 +10288,17 @@ var ContentView = (props) => {
|
|
|
10268
10288
|
}
|
|
10269
10289
|
})
|
|
10270
10290
|
}));
|
|
10271
|
-
createRenderEffect(() => className(_el$
|
|
10272
|
-
return _el$
|
|
10291
|
+
createRenderEffect(() => className(_el$41, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
10292
|
+
return _el$41;
|
|
10273
10293
|
}
|
|
10274
10294
|
}), null);
|
|
10275
|
-
insert(_el$
|
|
10295
|
+
insert(_el$10, createComponent(Show, {
|
|
10276
10296
|
get when() {
|
|
10277
10297
|
return selectedView() === "mutations";
|
|
10278
10298
|
},
|
|
10279
10299
|
get children() {
|
|
10280
|
-
var _el$
|
|
10281
|
-
insert(_el$
|
|
10300
|
+
var _el$43 = _tmpl$202(), _el$44 = _el$43.firstChild;
|
|
10301
|
+
insert(_el$44, createComponent(Key, {
|
|
10282
10302
|
by: (m) => m.mutationId,
|
|
10283
10303
|
get each() {
|
|
10284
10304
|
return mutations();
|
|
@@ -10289,8 +10309,8 @@ var ContentView = (props) => {
|
|
|
10289
10309
|
}
|
|
10290
10310
|
})
|
|
10291
10311
|
}));
|
|
10292
|
-
createRenderEffect(() => className(_el$
|
|
10293
|
-
return _el$
|
|
10312
|
+
createRenderEffect(() => className(_el$43, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
10313
|
+
return _el$43;
|
|
10294
10314
|
}
|
|
10295
10315
|
}), null);
|
|
10296
10316
|
createRenderEffect((_p$) => {
|
|
@@ -10301,26 +10321,26 @@ var ContentView = (props) => {
|
|
|
10301
10321
|
height: 100%;
|
|
10302
10322
|
max-height: 100%;
|
|
10303
10323
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
10304
|
-
_v$6 !== _p$.e && className(_el$
|
|
10305
|
-
_v$7 !== _p$.t && className(_el$
|
|
10306
|
-
_v$8 !== _p$.a && className(_el$
|
|
10307
|
-
_v$9 !== _p$.o && className(_el$
|
|
10308
|
-
_v$10 !== _p$.i && className(_el$
|
|
10309
|
-
_v$11 !== _p$.n && className(_el$
|
|
10310
|
-
_v$12 !== _p$.s && className(_el$
|
|
10311
|
-
_v$13 !== _p$.h && className(_el$
|
|
10312
|
-
_v$14 !== _p$.r && className(_el$
|
|
10313
|
-
_v$15 !== _p$.d && className(_el$
|
|
10314
|
-
_v$16 !== _p$.l && className(_el$
|
|
10315
|
-
_v$17 !== _p$.u && setAttribute(_el$
|
|
10316
|
-
_v$18 !== _p$.c && setAttribute(_el$
|
|
10317
|
-
_v$19 !== _p$.w && className(_el$
|
|
10318
|
-
_v$20 !== _p$.m && className(_el$
|
|
10319
|
-
_v$21 !== _p$.f && setAttribute(_el$
|
|
10320
|
-
_v$22 !== _p$.y && className(_el$
|
|
10321
|
-
_v$23 !== _p$.g && setAttribute(_el$
|
|
10322
|
-
_v$24 !== _p$.p && setAttribute(_el$
|
|
10323
|
-
_v$25 !== _p$.b && setAttribute(_el$
|
|
10324
|
+
_v$6 !== _p$.e && className(_el$10, _p$.e = _v$6);
|
|
10325
|
+
_v$7 !== _p$.t && className(_el$11, _p$.t = _v$7);
|
|
10326
|
+
_v$8 !== _p$.a && className(_el$12, _p$.a = _v$8);
|
|
10327
|
+
_v$9 !== _p$.o && className(_el$13, _p$.o = _v$9);
|
|
10328
|
+
_v$10 !== _p$.i && className(_el$14, _p$.i = _v$10);
|
|
10329
|
+
_v$11 !== _p$.n && className(_el$15, _p$.n = _v$11);
|
|
10330
|
+
_v$12 !== _p$.s && className(_el$17, _p$.s = _v$12);
|
|
10331
|
+
_v$13 !== _p$.h && className(_el$18, _p$.h = _v$13);
|
|
10332
|
+
_v$14 !== _p$.r && className(_el$19, _p$.r = _v$14);
|
|
10333
|
+
_v$15 !== _p$.d && className(_el$20, _p$.d = _v$15);
|
|
10334
|
+
_v$16 !== _p$.l && className(_el$21, _p$.l = _v$16);
|
|
10335
|
+
_v$17 !== _p$.u && setAttribute(_el$24, "aria-label", _p$.u = _v$17);
|
|
10336
|
+
_v$18 !== _p$.c && setAttribute(_el$24, "aria-pressed", _p$.c = _v$18);
|
|
10337
|
+
_v$19 !== _p$.w && className(_el$27, _p$.w = _v$19);
|
|
10338
|
+
_v$20 !== _p$.m && className(_el$28, _p$.m = _v$20);
|
|
10339
|
+
_v$21 !== _p$.f && setAttribute(_el$28, "title", _p$.f = _v$21);
|
|
10340
|
+
_v$22 !== _p$.y && className(_el$29, _p$.y = _v$22);
|
|
10341
|
+
_v$23 !== _p$.g && setAttribute(_el$29, "aria-label", _p$.g = _v$23);
|
|
10342
|
+
_v$24 !== _p$.p && setAttribute(_el$29, "aria-pressed", _p$.p = _v$24);
|
|
10343
|
+
_v$25 !== _p$.b && setAttribute(_el$29, "title", _p$.b = _v$25);
|
|
10324
10344
|
return _p$;
|
|
10325
10345
|
}, {
|
|
10326
10346
|
e: void 0,
|
|
@@ -10344,8 +10364,8 @@ var ContentView = (props) => {
|
|
|
10344
10364
|
p: void 0,
|
|
10345
10365
|
b: void 0
|
|
10346
10366
|
});
|
|
10347
|
-
createRenderEffect(() => _el$
|
|
10348
|
-
return _el$
|
|
10367
|
+
createRenderEffect(() => _el$20.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
10368
|
+
return _el$10;
|
|
10349
10369
|
})(), createComponent(Show, {
|
|
10350
10370
|
get when() {
|
|
10351
10371
|
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
@@ -10409,11 +10429,11 @@ var QueryRow = (props) => {
|
|
|
10409
10429
|
return queryState();
|
|
10410
10430
|
},
|
|
10411
10431
|
get children() {
|
|
10412
|
-
var _el$
|
|
10413
|
-
_el$
|
|
10414
|
-
insert(_el$
|
|
10415
|
-
insert(_el$
|
|
10416
|
-
insert(_el$
|
|
10432
|
+
var _el$49 = _tmpl$242(), _el$50 = _el$49.firstChild, _el$51 = _el$50.nextSibling;
|
|
10433
|
+
_el$49.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
10434
|
+
insert(_el$50, observers);
|
|
10435
|
+
insert(_el$51, () => props.query.queryHash);
|
|
10436
|
+
insert(_el$49, createComponent(Show, {
|
|
10417
10437
|
get when() {
|
|
10418
10438
|
return isDisabled();
|
|
10419
10439
|
},
|
|
@@ -10423,16 +10443,16 @@ var QueryRow = (props) => {
|
|
|
10423
10443
|
}), null);
|
|
10424
10444
|
createRenderEffect((_p$) => {
|
|
10425
10445
|
var _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
10426
|
-
_v$26 !== _p$.e && className(_el$
|
|
10427
|
-
_v$27 !== _p$.t && setAttribute(_el$
|
|
10428
|
-
_v$28 !== _p$.a && className(_el$
|
|
10446
|
+
_v$26 !== _p$.e && className(_el$49, _p$.e = _v$26);
|
|
10447
|
+
_v$27 !== _p$.t && setAttribute(_el$49, "aria-label", _p$.t = _v$27);
|
|
10448
|
+
_v$28 !== _p$.a && className(_el$50, _p$.a = _v$28);
|
|
10429
10449
|
return _p$;
|
|
10430
10450
|
}, {
|
|
10431
10451
|
e: void 0,
|
|
10432
10452
|
t: void 0,
|
|
10433
10453
|
a: void 0
|
|
10434
10454
|
});
|
|
10435
|
-
return _el$
|
|
10455
|
+
return _el$49;
|
|
10436
10456
|
}
|
|
10437
10457
|
});
|
|
10438
10458
|
};
|
|
@@ -10489,11 +10509,11 @@ var MutationRow = (props) => {
|
|
|
10489
10509
|
return mutationState();
|
|
10490
10510
|
},
|
|
10491
10511
|
get children() {
|
|
10492
|
-
var _el$
|
|
10493
|
-
_el$
|
|
10512
|
+
var _el$53 = _tmpl$242(), _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling;
|
|
10513
|
+
_el$53.$$click = () => {
|
|
10494
10514
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
10495
10515
|
};
|
|
10496
|
-
insert(_el$
|
|
10516
|
+
insert(_el$54, createComponent(Show, {
|
|
10497
10517
|
get when() {
|
|
10498
10518
|
return color() === "purple";
|
|
10499
10519
|
},
|
|
@@ -10501,7 +10521,7 @@ var MutationRow = (props) => {
|
|
|
10501
10521
|
return createComponent(PauseCircle, {});
|
|
10502
10522
|
}
|
|
10503
10523
|
}), null);
|
|
10504
|
-
insert(_el$
|
|
10524
|
+
insert(_el$54, createComponent(Show, {
|
|
10505
10525
|
get when() {
|
|
10506
10526
|
return color() === "green";
|
|
10507
10527
|
},
|
|
@@ -10509,7 +10529,7 @@ var MutationRow = (props) => {
|
|
|
10509
10529
|
return createComponent(CheckCircle, {});
|
|
10510
10530
|
}
|
|
10511
10531
|
}), null);
|
|
10512
|
-
insert(_el$
|
|
10532
|
+
insert(_el$54, createComponent(Show, {
|
|
10513
10533
|
get when() {
|
|
10514
10534
|
return color() === "red";
|
|
10515
10535
|
},
|
|
@@ -10517,7 +10537,7 @@ var MutationRow = (props) => {
|
|
|
10517
10537
|
return createComponent(XCircle, {});
|
|
10518
10538
|
}
|
|
10519
10539
|
}), null);
|
|
10520
|
-
insert(_el$
|
|
10540
|
+
insert(_el$54, createComponent(Show, {
|
|
10521
10541
|
get when() {
|
|
10522
10542
|
return color() === "yellow";
|
|
10523
10543
|
},
|
|
@@ -10525,7 +10545,7 @@ var MutationRow = (props) => {
|
|
|
10525
10545
|
return createComponent(LoadingCircle, {});
|
|
10526
10546
|
}
|
|
10527
10547
|
}), null);
|
|
10528
|
-
insert(_el$
|
|
10548
|
+
insert(_el$55, createComponent(Show, {
|
|
10529
10549
|
get when() {
|
|
10530
10550
|
return props.mutation.options.mutationKey;
|
|
10531
10551
|
},
|
|
@@ -10533,19 +10553,19 @@ var MutationRow = (props) => {
|
|
|
10533
10553
|
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
10534
10554
|
}
|
|
10535
10555
|
}), null);
|
|
10536
|
-
insert(_el$
|
|
10556
|
+
insert(_el$55, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
10537
10557
|
createRenderEffect((_p$) => {
|
|
10538
10558
|
var _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
10539
|
-
_v$29 !== _p$.e && className(_el$
|
|
10540
|
-
_v$30 !== _p$.t && setAttribute(_el$
|
|
10541
|
-
_v$31 !== _p$.a && className(_el$
|
|
10559
|
+
_v$29 !== _p$.e && className(_el$53, _p$.e = _v$29);
|
|
10560
|
+
_v$30 !== _p$.t && setAttribute(_el$53, "aria-label", _p$.t = _v$30);
|
|
10561
|
+
_v$31 !== _p$.a && className(_el$54, _p$.a = _v$31);
|
|
10542
10562
|
return _p$;
|
|
10543
10563
|
}, {
|
|
10544
10564
|
e: void 0,
|
|
10545
10565
|
t: void 0,
|
|
10546
10566
|
a: void 0
|
|
10547
10567
|
});
|
|
10548
|
-
return _el$
|
|
10568
|
+
return _el$53;
|
|
10549
10569
|
}
|
|
10550
10570
|
});
|
|
10551
10571
|
};
|
|
@@ -10563,44 +10583,44 @@ var QueryStatusCount = () => {
|
|
|
10563
10583
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10564
10584
|
});
|
|
10565
10585
|
return (() => {
|
|
10566
|
-
var _el$
|
|
10567
|
-
insert(_el$
|
|
10586
|
+
var _el$56 = _tmpl$26();
|
|
10587
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10568
10588
|
label: "Fresh",
|
|
10569
10589
|
color: "green",
|
|
10570
10590
|
get count() {
|
|
10571
10591
|
return fresh();
|
|
10572
10592
|
}
|
|
10573
10593
|
}), null);
|
|
10574
|
-
insert(_el$
|
|
10594
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10575
10595
|
label: "Fetching",
|
|
10576
10596
|
color: "blue",
|
|
10577
10597
|
get count() {
|
|
10578
10598
|
return fetching();
|
|
10579
10599
|
}
|
|
10580
10600
|
}), null);
|
|
10581
|
-
insert(_el$
|
|
10601
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10582
10602
|
label: "Paused",
|
|
10583
10603
|
color: "purple",
|
|
10584
10604
|
get count() {
|
|
10585
10605
|
return paused();
|
|
10586
10606
|
}
|
|
10587
10607
|
}), null);
|
|
10588
|
-
insert(_el$
|
|
10608
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10589
10609
|
label: "Stale",
|
|
10590
10610
|
color: "yellow",
|
|
10591
10611
|
get count() {
|
|
10592
10612
|
return stale();
|
|
10593
10613
|
}
|
|
10594
10614
|
}), null);
|
|
10595
|
-
insert(_el$
|
|
10615
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10596
10616
|
label: "Inactive",
|
|
10597
10617
|
color: "gray",
|
|
10598
10618
|
get count() {
|
|
10599
10619
|
return inactive();
|
|
10600
10620
|
}
|
|
10601
10621
|
}), null);
|
|
10602
|
-
createRenderEffect(() => className(_el$
|
|
10603
|
-
return _el$
|
|
10622
|
+
createRenderEffect(() => className(_el$56, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
10623
|
+
return _el$56;
|
|
10604
10624
|
})();
|
|
10605
10625
|
};
|
|
10606
10626
|
var MutationStatusCount = () => {
|
|
@@ -10628,37 +10648,37 @@ var MutationStatusCount = () => {
|
|
|
10628
10648
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10629
10649
|
});
|
|
10630
10650
|
return (() => {
|
|
10631
|
-
var _el$
|
|
10632
|
-
insert(_el$
|
|
10651
|
+
var _el$57 = _tmpl$26();
|
|
10652
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10633
10653
|
label: "Paused",
|
|
10634
10654
|
color: "purple",
|
|
10635
10655
|
get count() {
|
|
10636
10656
|
return paused();
|
|
10637
10657
|
}
|
|
10638
10658
|
}), null);
|
|
10639
|
-
insert(_el$
|
|
10659
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10640
10660
|
label: "Pending",
|
|
10641
10661
|
color: "yellow",
|
|
10642
10662
|
get count() {
|
|
10643
10663
|
return pending();
|
|
10644
10664
|
}
|
|
10645
10665
|
}), null);
|
|
10646
|
-
insert(_el$
|
|
10666
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10647
10667
|
label: "Success",
|
|
10648
10668
|
color: "green",
|
|
10649
10669
|
get count() {
|
|
10650
10670
|
return success();
|
|
10651
10671
|
}
|
|
10652
10672
|
}), null);
|
|
10653
|
-
insert(_el$
|
|
10673
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10654
10674
|
label: "Error",
|
|
10655
10675
|
color: "red",
|
|
10656
10676
|
get count() {
|
|
10657
10677
|
return error();
|
|
10658
10678
|
}
|
|
10659
10679
|
}), null);
|
|
10660
|
-
createRenderEffect(() => className(_el$
|
|
10661
|
-
return _el$
|
|
10680
|
+
createRenderEffect(() => className(_el$57, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
10681
|
+
return _el$57;
|
|
10662
10682
|
})();
|
|
10663
10683
|
};
|
|
10664
10684
|
var QueryStatus = (props) => {
|
|
@@ -10683,23 +10703,23 @@ var QueryStatus = (props) => {
|
|
|
10683
10703
|
return false;
|
|
10684
10704
|
}
|
|
10685
10705
|
}
|
|
10686
|
-
if (panelWidth() <
|
|
10706
|
+
if (panelWidth() < secondBreakpoint) {
|
|
10687
10707
|
return false;
|
|
10688
10708
|
}
|
|
10689
10709
|
return true;
|
|
10690
10710
|
});
|
|
10691
10711
|
return (() => {
|
|
10692
|
-
var _el$
|
|
10693
|
-
var _ref$
|
|
10694
|
-
typeof _ref$
|
|
10695
|
-
_el$
|
|
10712
|
+
var _el$58 = _tmpl$27(), _el$60 = _el$58.firstChild, _el$62 = _el$60.nextSibling;
|
|
10713
|
+
var _ref$5 = tagRef;
|
|
10714
|
+
typeof _ref$5 === "function" ? use(_ref$5, _el$58) : tagRef = _el$58;
|
|
10715
|
+
_el$58.addEventListener("mouseleave", () => {
|
|
10696
10716
|
setMouseOver(false);
|
|
10697
10717
|
setFocused(false);
|
|
10698
10718
|
});
|
|
10699
|
-
_el$
|
|
10700
|
-
_el$
|
|
10701
|
-
_el$
|
|
10702
|
-
spread(_el$
|
|
10719
|
+
_el$58.addEventListener("mouseenter", () => setMouseOver(true));
|
|
10720
|
+
_el$58.addEventListener("blur", () => setFocused(false));
|
|
10721
|
+
_el$58.addEventListener("focus", () => setFocused(true));
|
|
10722
|
+
spread(_el$58, mergeProps({
|
|
10703
10723
|
get disabled() {
|
|
10704
10724
|
return showLabel();
|
|
10705
10725
|
},
|
|
@@ -10714,29 +10734,29 @@ var QueryStatus = (props) => {
|
|
|
10714
10734
|
}, () => mouseOver() || focused() ? {
|
|
10715
10735
|
"aria-describedby": "tsqd-status-tooltip"
|
|
10716
10736
|
} : {}), false, true);
|
|
10717
|
-
insert(_el$
|
|
10737
|
+
insert(_el$58, createComponent(Show, {
|
|
10718
10738
|
get when() {
|
|
10719
10739
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
10720
10740
|
},
|
|
10721
10741
|
get children() {
|
|
10722
|
-
var _el$
|
|
10723
|
-
insert(_el$
|
|
10724
|
-
createRenderEffect(() => className(_el$
|
|
10725
|
-
return _el$
|
|
10742
|
+
var _el$59 = _tmpl$252();
|
|
10743
|
+
insert(_el$59, () => props.label);
|
|
10744
|
+
createRenderEffect(() => className(_el$59, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
10745
|
+
return _el$59;
|
|
10726
10746
|
}
|
|
10727
|
-
}), _el$
|
|
10728
|
-
insert(_el$
|
|
10747
|
+
}), _el$60);
|
|
10748
|
+
insert(_el$58, createComponent(Show, {
|
|
10729
10749
|
get when() {
|
|
10730
10750
|
return showLabel();
|
|
10731
10751
|
},
|
|
10732
10752
|
get children() {
|
|
10733
|
-
var _el$
|
|
10734
|
-
insert(_el$
|
|
10735
|
-
createRenderEffect(() => className(_el$
|
|
10736
|
-
return _el$
|
|
10753
|
+
var _el$61 = _tmpl$262();
|
|
10754
|
+
insert(_el$61, () => props.label);
|
|
10755
|
+
createRenderEffect(() => className(_el$61, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
10756
|
+
return _el$61;
|
|
10737
10757
|
}
|
|
10738
|
-
}), _el$
|
|
10739
|
-
insert(_el$
|
|
10758
|
+
}), _el$62);
|
|
10759
|
+
insert(_el$62, () => props.count);
|
|
10740
10760
|
createRenderEffect((_p$) => {
|
|
10741
10761
|
var _v$32 = clsx(css`
|
|
10742
10762
|
width: ${tokens.size[1.5]};
|
|
@@ -10747,14 +10767,14 @@ var QueryStatus = (props) => {
|
|
|
10747
10767
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10748
10768
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10749
10769
|
`, "tsqd-query-status-tag-count");
|
|
10750
|
-
_v$32 !== _p$.e && className(_el$
|
|
10751
|
-
_v$33 !== _p$.t && className(_el$
|
|
10770
|
+
_v$32 !== _p$.e && className(_el$60, _p$.e = _v$32);
|
|
10771
|
+
_v$33 !== _p$.t && className(_el$62, _p$.t = _v$33);
|
|
10752
10772
|
return _p$;
|
|
10753
10773
|
}, {
|
|
10754
10774
|
e: void 0,
|
|
10755
10775
|
t: void 0
|
|
10756
10776
|
});
|
|
10757
|
-
return _el$
|
|
10777
|
+
return _el$58;
|
|
10758
10778
|
})();
|
|
10759
10779
|
};
|
|
10760
10780
|
var QueryDetails = () => {
|
|
@@ -10851,19 +10871,19 @@ var QueryDetails = () => {
|
|
|
10851
10871
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
10852
10872
|
},
|
|
10853
10873
|
get children() {
|
|
10854
|
-
var _el$
|
|
10855
|
-
insert(_el$
|
|
10856
|
-
insert(_el$
|
|
10857
|
-
insert(_el$
|
|
10858
|
-
insert(_el$
|
|
10859
|
-
_el$
|
|
10860
|
-
_el$
|
|
10861
|
-
_el$
|
|
10862
|
-
_el$
|
|
10874
|
+
var _el$63 = _tmpl$30(), _el$64 = _el$63.firstChild, _el$65 = _el$64.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$66.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$70.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$65.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$78.firstChild, _el$80 = _el$78.nextSibling, _el$81 = _el$80.firstChild, _el$82 = _el$80.nextSibling, _el$83 = _el$82.firstChild, _el$84 = _el$82.nextSibling, _el$85 = _el$84.firstChild, _el$86 = _el$84.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling, _el$97 = _el$77.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling;
|
|
10875
|
+
insert(_el$68, () => displayValue(activeQuery().queryKey, true));
|
|
10876
|
+
insert(_el$69, statusLabel);
|
|
10877
|
+
insert(_el$72, observerCount);
|
|
10878
|
+
insert(_el$75, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
10879
|
+
_el$78.$$click = handleRefetch;
|
|
10880
|
+
_el$80.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
10881
|
+
_el$82.$$click = () => queryClient.resetQueries(activeQuery());
|
|
10882
|
+
_el$84.$$click = () => {
|
|
10863
10883
|
queryClient.removeQueries(activeQuery());
|
|
10864
10884
|
setSelectedQueryHash(null);
|
|
10865
10885
|
};
|
|
10866
|
-
_el$
|
|
10886
|
+
_el$86.$$click = () => {
|
|
10867
10887
|
if (activeQuery()?.state.data === void 0) {
|
|
10868
10888
|
setRestoringLoading(true);
|
|
10869
10889
|
restoreQueryAfterLoadingOrError();
|
|
@@ -10890,78 +10910,78 @@ var QueryDetails = () => {
|
|
|
10890
10910
|
});
|
|
10891
10911
|
}
|
|
10892
10912
|
};
|
|
10893
|
-
insert(_el$
|
|
10894
|
-
insert(_el$
|
|
10913
|
+
insert(_el$86, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$88);
|
|
10914
|
+
insert(_el$77, createComponent(Show, {
|
|
10895
10915
|
get when() {
|
|
10896
10916
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
10897
10917
|
},
|
|
10898
10918
|
get children() {
|
|
10899
|
-
var _el$
|
|
10900
|
-
_el$
|
|
10919
|
+
var _el$89 = _tmpl$28(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling;
|
|
10920
|
+
_el$89.$$click = () => {
|
|
10901
10921
|
if (!activeQuery().state.error) {
|
|
10902
10922
|
triggerError();
|
|
10903
10923
|
} else {
|
|
10904
10924
|
queryClient.resetQueries(activeQuery());
|
|
10905
10925
|
}
|
|
10906
10926
|
};
|
|
10907
|
-
insert(_el$
|
|
10927
|
+
insert(_el$89, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$91);
|
|
10908
10928
|
createRenderEffect((_p$) => {
|
|
10909
10929
|
var _v$34 = clsx(css`
|
|
10910
10930
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
10911
10931
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
|
|
10912
10932
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
10913
10933
|
`;
|
|
10914
|
-
_v$34 !== _p$.e && className(_el$
|
|
10915
|
-
_v$35 !== _p$.t && (_el$
|
|
10916
|
-
_v$36 !== _p$.a && className(_el$
|
|
10934
|
+
_v$34 !== _p$.e && className(_el$89, _p$.e = _v$34);
|
|
10935
|
+
_v$35 !== _p$.t && (_el$89.disabled = _p$.t = _v$35);
|
|
10936
|
+
_v$36 !== _p$.a && className(_el$90, _p$.a = _v$36);
|
|
10917
10937
|
return _p$;
|
|
10918
10938
|
}, {
|
|
10919
10939
|
e: void 0,
|
|
10920
10940
|
t: void 0,
|
|
10921
10941
|
a: void 0
|
|
10922
10942
|
});
|
|
10923
|
-
return _el$
|
|
10943
|
+
return _el$89;
|
|
10924
10944
|
}
|
|
10925
10945
|
}), null);
|
|
10926
|
-
insert(_el$
|
|
10946
|
+
insert(_el$77, createComponent(Show, {
|
|
10927
10947
|
get when() {
|
|
10928
10948
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
10929
10949
|
},
|
|
10930
10950
|
get children() {
|
|
10931
|
-
var _el$
|
|
10932
|
-
_el$
|
|
10951
|
+
var _el$92 = _tmpl$29(), _el$93 = _el$92.firstChild, _el$94 = _el$93.nextSibling, _el$95 = _el$94.nextSibling; _el$95.firstChild;
|
|
10952
|
+
_el$95.addEventListener("change", (e2) => {
|
|
10933
10953
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
10934
10954
|
triggerError(errorType);
|
|
10935
10955
|
});
|
|
10936
|
-
insert(_el$
|
|
10956
|
+
insert(_el$95, createComponent(For, {
|
|
10937
10957
|
get each() {
|
|
10938
10958
|
return errorTypes();
|
|
10939
10959
|
},
|
|
10940
10960
|
children: (errorType) => (() => {
|
|
10941
|
-
var _el$
|
|
10942
|
-
insert(_el$
|
|
10943
|
-
createRenderEffect(() => _el$
|
|
10944
|
-
return _el$
|
|
10961
|
+
var _el$101 = _tmpl$31();
|
|
10962
|
+
insert(_el$101, () => errorType.name);
|
|
10963
|
+
createRenderEffect(() => _el$101.value = errorType.name);
|
|
10964
|
+
return _el$101;
|
|
10945
10965
|
})()
|
|
10946
10966
|
}), null);
|
|
10947
|
-
insert(_el$
|
|
10967
|
+
insert(_el$92, createComponent(ChevronDown, {}), null);
|
|
10948
10968
|
createRenderEffect((_p$) => {
|
|
10949
10969
|
var _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
|
|
10950
10970
|
background-color: ${tokens.colors.red[400]};
|
|
10951
10971
|
`, _v$39 = queryStatus() === "pending";
|
|
10952
|
-
_v$37 !== _p$.e && className(_el$
|
|
10953
|
-
_v$38 !== _p$.t && className(_el$
|
|
10954
|
-
_v$39 !== _p$.a && (_el$
|
|
10972
|
+
_v$37 !== _p$.e && className(_el$92, _p$.e = _v$37);
|
|
10973
|
+
_v$38 !== _p$.t && className(_el$93, _p$.t = _v$38);
|
|
10974
|
+
_v$39 !== _p$.a && (_el$95.disabled = _p$.a = _v$39);
|
|
10955
10975
|
return _p$;
|
|
10956
10976
|
}, {
|
|
10957
10977
|
e: void 0,
|
|
10958
10978
|
t: void 0,
|
|
10959
10979
|
a: void 0
|
|
10960
10980
|
});
|
|
10961
|
-
return _el$
|
|
10981
|
+
return _el$92;
|
|
10962
10982
|
}
|
|
10963
10983
|
}), null);
|
|
10964
|
-
insert(_el$
|
|
10984
|
+
insert(_el$98, createComponent(Explorer, {
|
|
10965
10985
|
label: "Data",
|
|
10966
10986
|
defaultExpanded: ["Data"],
|
|
10967
10987
|
get value() {
|
|
@@ -10972,7 +10992,7 @@ var QueryDetails = () => {
|
|
|
10972
10992
|
return activeQuery();
|
|
10973
10993
|
}
|
|
10974
10994
|
}));
|
|
10975
|
-
insert(_el$
|
|
10995
|
+
insert(_el$100, createComponent(Explorer, {
|
|
10976
10996
|
label: "Query",
|
|
10977
10997
|
defaultExpanded: ["Query", "queryKey"],
|
|
10978
10998
|
get value() {
|
|
@@ -11001,31 +11021,31 @@ var QueryDetails = () => {
|
|
|
11001
11021
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
|
|
11002
11022
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11003
11023
|
`, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
|
|
11004
|
-
_v$40 !== _p$.e && className(_el$
|
|
11005
|
-
_v$41 !== _p$.t && className(_el$
|
|
11006
|
-
_v$42 !== _p$.a && className(_el$
|
|
11007
|
-
_v$43 !== _p$.o && className(_el$
|
|
11008
|
-
_v$44 !== _p$.i && className(_el$
|
|
11009
|
-
_v$45 !== _p$.n && className(_el$
|
|
11010
|
-
_v$46 !== _p$.s && className(_el$
|
|
11011
|
-
_v$47 !== _p$.h && (_el$
|
|
11012
|
-
_v$48 !== _p$.r && className(_el$
|
|
11013
|
-
_v$49 !== _p$.d && className(_el$
|
|
11014
|
-
_v$50 !== _p$.l && (_el$
|
|
11015
|
-
_v$51 !== _p$.u && className(_el$
|
|
11016
|
-
_v$52 !== _p$.c && className(_el$
|
|
11017
|
-
_v$53 !== _p$.w && (_el$
|
|
11018
|
-
_v$54 !== _p$.m && className(_el$
|
|
11019
|
-
_v$55 !== _p$.f && className(_el$
|
|
11020
|
-
_v$56 !== _p$.y && (_el$
|
|
11021
|
-
_v$57 !== _p$.g && className(_el$
|
|
11022
|
-
_v$58 !== _p$.p && className(_el$
|
|
11023
|
-
_v$59 !== _p$.b && (_el$
|
|
11024
|
-
_v$60 !== _p$.T && className(_el$
|
|
11025
|
-
_v$61 !== _p$.A && className(_el$
|
|
11026
|
-
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$
|
|
11027
|
-
_v$63 !== _p$.I && className(_el$
|
|
11028
|
-
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$
|
|
11024
|
+
_v$40 !== _p$.e && className(_el$63, _p$.e = _v$40);
|
|
11025
|
+
_v$41 !== _p$.t && className(_el$64, _p$.t = _v$41);
|
|
11026
|
+
_v$42 !== _p$.a && className(_el$65, _p$.a = _v$42);
|
|
11027
|
+
_v$43 !== _p$.o && className(_el$69, _p$.o = _v$43);
|
|
11028
|
+
_v$44 !== _p$.i && className(_el$76, _p$.i = _v$44);
|
|
11029
|
+
_v$45 !== _p$.n && className(_el$77, _p$.n = _v$45);
|
|
11030
|
+
_v$46 !== _p$.s && className(_el$78, _p$.s = _v$46);
|
|
11031
|
+
_v$47 !== _p$.h && (_el$78.disabled = _p$.h = _v$47);
|
|
11032
|
+
_v$48 !== _p$.r && className(_el$79, _p$.r = _v$48);
|
|
11033
|
+
_v$49 !== _p$.d && className(_el$80, _p$.d = _v$49);
|
|
11034
|
+
_v$50 !== _p$.l && (_el$80.disabled = _p$.l = _v$50);
|
|
11035
|
+
_v$51 !== _p$.u && className(_el$81, _p$.u = _v$51);
|
|
11036
|
+
_v$52 !== _p$.c && className(_el$82, _p$.c = _v$52);
|
|
11037
|
+
_v$53 !== _p$.w && (_el$82.disabled = _p$.w = _v$53);
|
|
11038
|
+
_v$54 !== _p$.m && className(_el$83, _p$.m = _v$54);
|
|
11039
|
+
_v$55 !== _p$.f && className(_el$84, _p$.f = _v$55);
|
|
11040
|
+
_v$56 !== _p$.y && (_el$84.disabled = _p$.y = _v$56);
|
|
11041
|
+
_v$57 !== _p$.g && className(_el$85, _p$.g = _v$57);
|
|
11042
|
+
_v$58 !== _p$.p && className(_el$86, _p$.p = _v$58);
|
|
11043
|
+
_v$59 !== _p$.b && (_el$86.disabled = _p$.b = _v$59);
|
|
11044
|
+
_v$60 !== _p$.T && className(_el$87, _p$.T = _v$60);
|
|
11045
|
+
_v$61 !== _p$.A && className(_el$97, _p$.A = _v$61);
|
|
11046
|
+
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$98.style.setProperty("padding", _v$62) : _el$98.style.removeProperty("padding"));
|
|
11047
|
+
_v$63 !== _p$.I && className(_el$99, _p$.I = _v$63);
|
|
11048
|
+
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$100.style.setProperty("padding", _v$64) : _el$100.style.removeProperty("padding"));
|
|
11029
11049
|
return _p$;
|
|
11030
11050
|
}, {
|
|
11031
11051
|
e: void 0,
|
|
@@ -11054,7 +11074,7 @@ var QueryDetails = () => {
|
|
|
11054
11074
|
I: void 0,
|
|
11055
11075
|
S: void 0
|
|
11056
11076
|
});
|
|
11057
|
-
return _el$
|
|
11077
|
+
return _el$63;
|
|
11058
11078
|
}
|
|
11059
11079
|
});
|
|
11060
11080
|
};
|
|
@@ -11108,8 +11128,8 @@ var MutationDetails = () => {
|
|
|
11108
11128
|
return activeMutation();
|
|
11109
11129
|
},
|
|
11110
11130
|
get children() {
|
|
11111
|
-
var _el$
|
|
11112
|
-
insert(_el$
|
|
11131
|
+
var _el$102 = _tmpl$322(), _el$103 = _el$102.firstChild, _el$104 = _el$103.nextSibling, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$106.firstChild, _el$108 = _el$106.nextSibling, _el$109 = _el$105.nextSibling, _el$110 = _el$109.firstChild, _el$111 = _el$110.nextSibling, _el$112 = _el$104.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling, _el$117 = _el$116.nextSibling, _el$118 = _el$117.nextSibling, _el$119 = _el$118.nextSibling;
|
|
11132
|
+
insert(_el$107, createComponent(Show, {
|
|
11113
11133
|
get when() {
|
|
11114
11134
|
return activeMutation().options.mutationKey;
|
|
11115
11135
|
},
|
|
@@ -11118,13 +11138,13 @@ var MutationDetails = () => {
|
|
|
11118
11138
|
return displayValue(activeMutation().options.mutationKey, true);
|
|
11119
11139
|
}
|
|
11120
11140
|
}));
|
|
11121
|
-
insert(_el$
|
|
11141
|
+
insert(_el$108, createComponent(Show, {
|
|
11122
11142
|
get when() {
|
|
11123
11143
|
return color() === "purple";
|
|
11124
11144
|
},
|
|
11125
11145
|
children: "pending"
|
|
11126
11146
|
}), null);
|
|
11127
|
-
insert(_el$
|
|
11147
|
+
insert(_el$108, createComponent(Show, {
|
|
11128
11148
|
get when() {
|
|
11129
11149
|
return color() !== "purple";
|
|
11130
11150
|
},
|
|
@@ -11132,29 +11152,29 @@ var MutationDetails = () => {
|
|
|
11132
11152
|
return status();
|
|
11133
11153
|
}
|
|
11134
11154
|
}), null);
|
|
11135
|
-
insert(_el$
|
|
11136
|
-
insert(_el$
|
|
11155
|
+
insert(_el$111, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
11156
|
+
insert(_el$113, createComponent(Explorer, {
|
|
11137
11157
|
label: "Variables",
|
|
11138
11158
|
defaultExpanded: ["Variables"],
|
|
11139
11159
|
get value() {
|
|
11140
11160
|
return activeMutation().state.variables;
|
|
11141
11161
|
}
|
|
11142
11162
|
}));
|
|
11143
|
-
insert(_el$
|
|
11163
|
+
insert(_el$115, createComponent(Explorer, {
|
|
11144
11164
|
label: "Context",
|
|
11145
11165
|
defaultExpanded: ["Context"],
|
|
11146
11166
|
get value() {
|
|
11147
11167
|
return activeMutation().state.context;
|
|
11148
11168
|
}
|
|
11149
11169
|
}));
|
|
11150
|
-
insert(_el$
|
|
11170
|
+
insert(_el$117, createComponent(Explorer, {
|
|
11151
11171
|
label: "Data",
|
|
11152
11172
|
defaultExpanded: ["Data"],
|
|
11153
11173
|
get value() {
|
|
11154
11174
|
return activeMutation().state.data;
|
|
11155
11175
|
}
|
|
11156
11176
|
}));
|
|
11157
|
-
insert(_el$
|
|
11177
|
+
insert(_el$119, createComponent(Explorer, {
|
|
11158
11178
|
label: "Mutation",
|
|
11159
11179
|
defaultExpanded: ["Mutation"],
|
|
11160
11180
|
get value() {
|
|
@@ -11163,18 +11183,18 @@ var MutationDetails = () => {
|
|
|
11163
11183
|
}));
|
|
11164
11184
|
createRenderEffect((_p$) => {
|
|
11165
11185
|
var _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
|
|
11166
|
-
_v$65 !== _p$.e && className(_el$
|
|
11167
|
-
_v$66 !== _p$.t && className(_el$
|
|
11168
|
-
_v$67 !== _p$.a && className(_el$
|
|
11169
|
-
_v$68 !== _p$.o && className(_el$
|
|
11170
|
-
_v$69 !== _p$.i && className(_el$
|
|
11171
|
-
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$
|
|
11172
|
-
_v$71 !== _p$.s && className(_el$
|
|
11173
|
-
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$
|
|
11174
|
-
_v$73 !== _p$.r && className(_el$
|
|
11175
|
-
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$
|
|
11176
|
-
_v$75 !== _p$.l && className(_el$
|
|
11177
|
-
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$
|
|
11186
|
+
_v$65 !== _p$.e && className(_el$102, _p$.e = _v$65);
|
|
11187
|
+
_v$66 !== _p$.t && className(_el$103, _p$.t = _v$66);
|
|
11188
|
+
_v$67 !== _p$.a && className(_el$104, _p$.a = _v$67);
|
|
11189
|
+
_v$68 !== _p$.o && className(_el$108, _p$.o = _v$68);
|
|
11190
|
+
_v$69 !== _p$.i && className(_el$112, _p$.i = _v$69);
|
|
11191
|
+
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$113.style.setProperty("padding", _v$70) : _el$113.style.removeProperty("padding"));
|
|
11192
|
+
_v$71 !== _p$.s && className(_el$114, _p$.s = _v$71);
|
|
11193
|
+
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$115.style.setProperty("padding", _v$72) : _el$115.style.removeProperty("padding"));
|
|
11194
|
+
_v$73 !== _p$.r && className(_el$116, _p$.r = _v$73);
|
|
11195
|
+
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$117.style.setProperty("padding", _v$74) : _el$117.style.removeProperty("padding"));
|
|
11196
|
+
_v$75 !== _p$.l && className(_el$118, _p$.l = _v$75);
|
|
11197
|
+
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$119.style.setProperty("padding", _v$76) : _el$119.style.removeProperty("padding"));
|
|
11178
11198
|
return _p$;
|
|
11179
11199
|
}, {
|
|
11180
11200
|
e: void 0,
|
|
@@ -11190,7 +11210,7 @@ var MutationDetails = () => {
|
|
|
11190
11210
|
l: void 0,
|
|
11191
11211
|
u: void 0
|
|
11192
11212
|
});
|
|
11193
|
-
return _el$
|
|
11213
|
+
return _el$102;
|
|
11194
11214
|
}
|
|
11195
11215
|
});
|
|
11196
11216
|
};
|
|
@@ -11362,6 +11382,32 @@ var stylesFactory2 = (theme, css) => {
|
|
|
11362
11382
|
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11363
11383
|
}
|
|
11364
11384
|
`,
|
|
11385
|
+
parentPanel: css`
|
|
11386
|
+
z-index: 9999;
|
|
11387
|
+
display: flex;
|
|
11388
|
+
height: 100%;
|
|
11389
|
+
gap: ${tokens.size[0.5]};
|
|
11390
|
+
& * {
|
|
11391
|
+
box-sizing: border-box;
|
|
11392
|
+
text-transform: none;
|
|
11393
|
+
}
|
|
11394
|
+
|
|
11395
|
+
& *::-webkit-scrollbar {
|
|
11396
|
+
width: 7px;
|
|
11397
|
+
}
|
|
11398
|
+
|
|
11399
|
+
& *::-webkit-scrollbar-track {
|
|
11400
|
+
background: transparent;
|
|
11401
|
+
}
|
|
11402
|
+
|
|
11403
|
+
& *::-webkit-scrollbar-thumb {
|
|
11404
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
11405
|
+
}
|
|
11406
|
+
|
|
11407
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
11408
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11409
|
+
}
|
|
11410
|
+
`,
|
|
11365
11411
|
"devtoolsBtn-position-bottom-right": css`
|
|
11366
11412
|
bottom: 12px;
|
|
11367
11413
|
right: 12px;
|
|
@@ -12334,4 +12380,4 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12334
12380
|
*)
|
|
12335
12381
|
*/
|
|
12336
12382
|
|
|
12337
|
-
export {
|
|
12383
|
+
export { ContentView, Devtools, ParentPanel, PiPProvider, QueryDevtoolsContext, THEME_PREFERENCE, ThemeContext, createLocalStorage };
|