@tanstack/query-devtools 5.51.16 → 5.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/DevtoolsComponent/AIPVUCAN.js +39 -0
- package/build/DevtoolsComponent/PTNKQWC6.js +39 -0
- package/build/DevtoolsPanelComponent/SA34RK37.js +48 -0
- package/build/DevtoolsPanelComponent/YCAYD3IW.js +48 -0
- package/build/{Devtools/E6UWR6XD.js → chunk/7U2COR24.js} +935 -889
- package/build/{Devtools/2FJCTAHO.js → chunk/WK5KHUSK.js} +935 -889
- package/build/dev.cjs +1700 -1385
- package/build/dev.js +129 -3
- package/build/index.cjs +1700 -1385
- package/build/index.d.cts +23 -4
- package/build/index.d.ts +23 -4
- package/build/index.js +129 -3
- package/package.json +2 -2
- package/src/Devtools.tsx +202 -326
- package/src/DevtoolsComponent.tsx +36 -0
- package/src/DevtoolsPanelComponent.tsx +47 -0
- package/src/Explorer.tsx +1 -1
- package/src/{index.tsx → TanstackQueryDevtools.tsx} +5 -6
- 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} +3 -11
- 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 './TU4XCPXB.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,248 +9399,95 @@ var stylesFactory = (theme, css) => {
|
|
|
9271
9399
|
`,
|
|
9272
9400
|
actions: css`
|
|
9273
9401
|
display: inline-flex;
|
|
9274
|
-
gap: ${size3[2]};
|
|
9275
|
-
align-items: center;
|
|
9276
|
-
`,
|
|
9277
|
-
row: css`
|
|
9278
|
-
display: inline-flex;
|
|
9279
|
-
gap: ${size3[2]};
|
|
9280
|
-
width: 100%;
|
|
9281
|
-
margin: ${size3[0.25]} 0px;
|
|
9282
|
-
line-height: ${size3[4.5]};
|
|
9283
|
-
align-items: center;
|
|
9284
|
-
`,
|
|
9285
|
-
editableInput: css`
|
|
9286
|
-
border: none;
|
|
9287
|
-
padding: ${size3[0.5]} ${size3[1]} ${size3[0.5]} ${size3[1.5]};
|
|
9288
|
-
flex-grow: 1;
|
|
9289
|
-
border-radius: ${border.radius.xs};
|
|
9290
|
-
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
9291
|
-
|
|
9292
|
-
&:hover {
|
|
9293
|
-
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
9294
|
-
}
|
|
9295
|
-
`,
|
|
9296
|
-
actionButton: css`
|
|
9297
|
-
background-color: transparent;
|
|
9298
|
-
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
9299
|
-
border: none;
|
|
9300
|
-
display: inline-flex;
|
|
9301
|
-
padding: 0px;
|
|
9302
|
-
align-items: center;
|
|
9303
|
-
justify-content: center;
|
|
9304
|
-
cursor: pointer;
|
|
9305
|
-
width: ${size3[3]};
|
|
9306
|
-
height: ${size3[3]};
|
|
9307
|
-
position: relative;
|
|
9308
|
-
z-index: 1;
|
|
9309
|
-
|
|
9310
|
-
&:hover svg {
|
|
9311
|
-
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
9312
|
-
}
|
|
9313
|
-
|
|
9314
|
-
&:focus-visible {
|
|
9315
|
-
border-radius: ${border.radius.xs};
|
|
9316
|
-
outline: 2px solid ${colors.blue[800]};
|
|
9317
|
-
outline-offset: 2px;
|
|
9318
|
-
}
|
|
9319
|
-
`
|
|
9320
|
-
};
|
|
9321
|
-
};
|
|
9322
|
-
var lightStyles = (css) => stylesFactory("light", css);
|
|
9323
|
-
var darkStyles = (css) => stylesFactory("dark", css);
|
|
9324
|
-
delegateEvents(["click"]);
|
|
9325
|
-
|
|
9326
|
-
// src/Devtools.tsx
|
|
9327
|
-
var _tmpl$25 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
9328
|
-
var _tmpl$26 = /* @__PURE__ */ template(`<div>`);
|
|
9329
|
-
var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
9330
|
-
var _tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
|
|
9331
|
-
var _tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
|
|
9332
|
-
var _tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
|
|
9333
|
-
var _tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
|
|
9334
|
-
var _tmpl$83 = /* @__PURE__ */ template(`<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">`);
|
|
9335
|
-
var _tmpl$93 = /* @__PURE__ */ template(`<div>Settings`);
|
|
9336
|
-
var _tmpl$103 = /* @__PURE__ */ template(`<span>Position`);
|
|
9337
|
-
var _tmpl$113 = /* @__PURE__ */ template(`<span>Top`);
|
|
9338
|
-
var _tmpl$122 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
9339
|
-
var _tmpl$132 = /* @__PURE__ */ template(`<span>Left`);
|
|
9340
|
-
var _tmpl$142 = /* @__PURE__ */ template(`<span>Right`);
|
|
9341
|
-
var _tmpl$152 = /* @__PURE__ */ template(`<span>Theme`);
|
|
9342
|
-
var _tmpl$162 = /* @__PURE__ */ template(`<span>Light`);
|
|
9343
|
-
var _tmpl$172 = /* @__PURE__ */ template(`<span>Dark`);
|
|
9344
|
-
var _tmpl$182 = /* @__PURE__ */ template(`<span>System`);
|
|
9345
|
-
var _tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
9346
|
-
var _tmpl$202 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
9347
|
-
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>`);
|
|
9348
|
-
var _tmpl$223 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
9349
|
-
var _tmpl$232 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
9350
|
-
var _tmpl$242 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
9351
|
-
var _tmpl$252 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
9352
|
-
var _tmpl$262 = /* @__PURE__ */ template(`<span>`);
|
|
9353
|
-
var _tmpl$27 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
9354
|
-
var _tmpl$28 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
9355
|
-
var _tmpl$29 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
9356
|
-
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">`);
|
|
9357
|
-
var _tmpl$31 = /* @__PURE__ */ template(`<option>`);
|
|
9358
|
-
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">`);
|
|
9359
|
-
var firstBreakpoint = 1024;
|
|
9360
|
-
var secondBreakpoint = 796;
|
|
9361
|
-
var thirdBreakpoint = 700;
|
|
9362
|
-
var BUTTON_POSITION = "bottom-right";
|
|
9363
|
-
var POSITION = "bottom";
|
|
9364
|
-
var THEME_PREFERENCE = "system";
|
|
9365
|
-
var INITIAL_IS_OPEN = false;
|
|
9366
|
-
var DEFAULT_HEIGHT = 500;
|
|
9367
|
-
var DEFAULT_WIDTH = 500;
|
|
9368
|
-
var DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
9369
|
-
var DEFAULT_SORT_ORDER = 1;
|
|
9370
|
-
var DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
9371
|
-
var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
9372
|
-
var [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
9373
|
-
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
9374
|
-
var [offline, setOffline] = createSignal(false);
|
|
9375
|
-
var PiPContext = createContext(void 0);
|
|
9376
|
-
var PiPProvider = (props) => {
|
|
9377
|
-
const [pipWindow, setPipWindow] = createSignal(null);
|
|
9378
|
-
const closePipWindow = () => {
|
|
9379
|
-
const w = pipWindow();
|
|
9380
|
-
if (w != null) {
|
|
9381
|
-
w.close();
|
|
9382
|
-
setPipWindow(null);
|
|
9383
|
-
}
|
|
9384
|
-
};
|
|
9385
|
-
const requestPipWindow = async (width, height) => {
|
|
9386
|
-
if (pipWindow() != null) {
|
|
9387
|
-
return;
|
|
9388
|
-
}
|
|
9389
|
-
const pip = window.open("", "TSQD-Devtools-Panel", `width=${width},height=${height},popup`);
|
|
9390
|
-
if (!pip) {
|
|
9391
|
-
throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");
|
|
9392
|
-
}
|
|
9393
|
-
pip.document.head.innerHTML = "";
|
|
9394
|
-
pip.document.body.innerHTML = "";
|
|
9395
|
-
clearDelegatedEvents(pip.document);
|
|
9396
|
-
pip.document.title = "TanStack Query Devtools";
|
|
9397
|
-
pip.document.body.style.margin = "0";
|
|
9398
|
-
pip.addEventListener("pagehide", () => {
|
|
9399
|
-
props.setLocalStore("pip_open", "false");
|
|
9400
|
-
setPipWindow(null);
|
|
9401
|
-
});
|
|
9402
|
-
[...(useQueryDevtoolsContext().shadowDOMTarget || document).styleSheets].forEach((styleSheet) => {
|
|
9403
|
-
try {
|
|
9404
|
-
const cssRules = [...styleSheet.cssRules].map((rule) => rule.cssText).join("");
|
|
9405
|
-
const style = document.createElement("style");
|
|
9406
|
-
const style_node = styleSheet.ownerNode;
|
|
9407
|
-
let style_id = "";
|
|
9408
|
-
if (style_node && "id" in style_node) {
|
|
9409
|
-
style_id = style_node.id;
|
|
9410
|
-
}
|
|
9411
|
-
if (style_id) {
|
|
9412
|
-
style.setAttribute("id", style_id);
|
|
9413
|
-
}
|
|
9414
|
-
style.textContent = cssRules;
|
|
9415
|
-
pip.document.head.appendChild(style);
|
|
9416
|
-
} catch (e2) {
|
|
9417
|
-
const link = document.createElement("link");
|
|
9418
|
-
if (styleSheet.href == null) {
|
|
9419
|
-
return;
|
|
9420
|
-
}
|
|
9421
|
-
link.rel = "stylesheet";
|
|
9422
|
-
link.type = styleSheet.type;
|
|
9423
|
-
link.media = styleSheet.media.toString();
|
|
9424
|
-
link.href = styleSheet.href;
|
|
9425
|
-
pip.document.head.appendChild(link);
|
|
9426
|
-
}
|
|
9427
|
-
});
|
|
9428
|
-
delegateEvents(["focusin", "focusout", "pointermove", "keydown", "pointerdown", "pointerup", "click", "mousedown", "input"], pip.document);
|
|
9429
|
-
props.setLocalStore("pip_open", "true");
|
|
9430
|
-
setPipWindow(pip);
|
|
9431
|
-
};
|
|
9432
|
-
createEffect(() => {
|
|
9433
|
-
const pip_open = props.localStore.pip_open ?? "false";
|
|
9434
|
-
if (pip_open === "true") {
|
|
9435
|
-
requestPipWindow(Number(window.innerWidth), Number(props.localStore.height || DEFAULT_HEIGHT));
|
|
9436
|
-
}
|
|
9437
|
-
});
|
|
9438
|
-
createEffect(() => {
|
|
9439
|
-
const gooberStyles = (useQueryDevtoolsContext().shadowDOMTarget || document).querySelector("#_goober");
|
|
9440
|
-
const w = pipWindow();
|
|
9441
|
-
if (gooberStyles && w) {
|
|
9442
|
-
const observer = new MutationObserver(() => {
|
|
9443
|
-
const pip_style = (useQueryDevtoolsContext().shadowDOMTarget || w.document).querySelector("#_goober");
|
|
9444
|
-
if (pip_style) {
|
|
9445
|
-
pip_style.textContent = gooberStyles.textContent;
|
|
9446
|
-
}
|
|
9447
|
-
});
|
|
9448
|
-
observer.observe(gooberStyles, {
|
|
9449
|
-
childList: true,
|
|
9450
|
-
// observe direct children
|
|
9451
|
-
subtree: true,
|
|
9452
|
-
// and lower descendants too
|
|
9453
|
-
characterDataOldValue: true
|
|
9454
|
-
// pass old data to callback
|
|
9455
|
-
});
|
|
9456
|
-
onCleanup(() => {
|
|
9457
|
-
observer.disconnect();
|
|
9458
|
-
});
|
|
9459
|
-
}
|
|
9460
|
-
});
|
|
9461
|
-
const value = createMemo(() => ({
|
|
9462
|
-
pipWindow: pipWindow(),
|
|
9463
|
-
requestPipWindow,
|
|
9464
|
-
closePipWindow
|
|
9465
|
-
}));
|
|
9466
|
-
return createComponent(PiPContext.Provider, {
|
|
9467
|
-
value,
|
|
9468
|
-
get children() {
|
|
9469
|
-
return props.children;
|
|
9470
|
-
}
|
|
9471
|
-
});
|
|
9472
|
-
};
|
|
9473
|
-
var usePiPWindow = () => {
|
|
9474
|
-
const context = createMemo(() => {
|
|
9475
|
-
const ctx = useContext(PiPContext);
|
|
9476
|
-
if (!ctx) {
|
|
9477
|
-
throw new Error("usePiPWindow must be used within a PiPProvider");
|
|
9478
|
-
}
|
|
9479
|
-
return ctx();
|
|
9480
|
-
});
|
|
9481
|
-
return context;
|
|
9482
|
-
};
|
|
9483
|
-
var DevtoolsComponent = (props) => {
|
|
9484
|
-
const [localStore, setLocalStore] = createLocalStorage({
|
|
9485
|
-
prefix: "TanstackQueryDevtools"
|
|
9486
|
-
});
|
|
9487
|
-
const colorScheme = getPreferredColorScheme();
|
|
9488
|
-
const theme = createMemo(() => {
|
|
9489
|
-
const preference = localStore.theme_preference || THEME_PREFERENCE;
|
|
9490
|
-
if (preference !== "system")
|
|
9491
|
-
return preference;
|
|
9492
|
-
return colorScheme();
|
|
9493
|
-
});
|
|
9494
|
-
return createComponent(QueryDevtoolsContext.Provider, {
|
|
9495
|
-
value: props,
|
|
9496
|
-
get children() {
|
|
9497
|
-
return createComponent(PiPProvider, {
|
|
9498
|
-
localStore,
|
|
9499
|
-
setLocalStore,
|
|
9500
|
-
get children() {
|
|
9501
|
-
return createComponent(ThemeContext.Provider, {
|
|
9502
|
-
value: theme,
|
|
9503
|
-
get children() {
|
|
9504
|
-
return createComponent(Devtools, {
|
|
9505
|
-
localStore,
|
|
9506
|
-
setLocalStore
|
|
9507
|
-
});
|
|
9508
|
-
}
|
|
9509
|
-
});
|
|
9510
|
-
}
|
|
9511
|
-
});
|
|
9512
|
-
}
|
|
9513
|
-
});
|
|
9402
|
+
gap: ${size3[2]};
|
|
9403
|
+
align-items: center;
|
|
9404
|
+
`,
|
|
9405
|
+
row: css`
|
|
9406
|
+
display: inline-flex;
|
|
9407
|
+
gap: ${size3[2]};
|
|
9408
|
+
width: 100%;
|
|
9409
|
+
margin: ${size3[0.25]} 0px;
|
|
9410
|
+
line-height: ${size3[4.5]};
|
|
9411
|
+
align-items: center;
|
|
9412
|
+
`,
|
|
9413
|
+
editableInput: css`
|
|
9414
|
+
border: none;
|
|
9415
|
+
padding: ${size3[0.5]} ${size3[1]} ${size3[0.5]} ${size3[1.5]};
|
|
9416
|
+
flex-grow: 1;
|
|
9417
|
+
border-radius: ${border.radius.xs};
|
|
9418
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|
|
9419
|
+
|
|
9420
|
+
&:hover {
|
|
9421
|
+
background-color: ${t2(colors.gray[300], colors.darkGray[600])};
|
|
9422
|
+
}
|
|
9423
|
+
`,
|
|
9424
|
+
actionButton: css`
|
|
9425
|
+
background-color: transparent;
|
|
9426
|
+
color: ${t2(colors.gray[500], colors.gray[500])};
|
|
9427
|
+
border: none;
|
|
9428
|
+
display: inline-flex;
|
|
9429
|
+
padding: 0px;
|
|
9430
|
+
align-items: center;
|
|
9431
|
+
justify-content: center;
|
|
9432
|
+
cursor: pointer;
|
|
9433
|
+
width: ${size3[3]};
|
|
9434
|
+
height: ${size3[3]};
|
|
9435
|
+
position: relative;
|
|
9436
|
+
z-index: 1;
|
|
9437
|
+
|
|
9438
|
+
&:hover svg {
|
|
9439
|
+
color: ${t2(colors.gray[600], colors.gray[400])};
|
|
9440
|
+
}
|
|
9441
|
+
|
|
9442
|
+
&:focus-visible {
|
|
9443
|
+
border-radius: ${border.radius.xs};
|
|
9444
|
+
outline: 2px solid ${colors.blue[800]};
|
|
9445
|
+
outline-offset: 2px;
|
|
9446
|
+
}
|
|
9447
|
+
`
|
|
9448
|
+
};
|
|
9514
9449
|
};
|
|
9515
|
-
var
|
|
9450
|
+
var lightStyles = (css) => stylesFactory("light", css);
|
|
9451
|
+
var darkStyles = (css) => stylesFactory("dark", css);
|
|
9452
|
+
delegateEvents(["click"]);
|
|
9453
|
+
|
|
9454
|
+
// src/Devtools.tsx
|
|
9455
|
+
var _tmpl$25 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>`);
|
|
9456
|
+
var _tmpl$26 = /* @__PURE__ */ template(`<div>`);
|
|
9457
|
+
var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
9458
|
+
var _tmpl$43 = /* @__PURE__ */ template(`<select name=tsqd-queries-filter-sort>`);
|
|
9459
|
+
var _tmpl$53 = /* @__PURE__ */ template(`<select name=tsqd-mutations-filter-sort>`);
|
|
9460
|
+
var _tmpl$63 = /* @__PURE__ */ template(`<span>Asc`);
|
|
9461
|
+
var _tmpl$73 = /* @__PURE__ */ template(`<span>Desc`);
|
|
9462
|
+
var _tmpl$83 = /* @__PURE__ */ template(`<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">`);
|
|
9463
|
+
var _tmpl$93 = /* @__PURE__ */ template(`<div>Settings`);
|
|
9464
|
+
var _tmpl$103 = /* @__PURE__ */ template(`<span>Position`);
|
|
9465
|
+
var _tmpl$113 = /* @__PURE__ */ template(`<span>Top`);
|
|
9466
|
+
var _tmpl$122 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
9467
|
+
var _tmpl$132 = /* @__PURE__ */ template(`<span>Left`);
|
|
9468
|
+
var _tmpl$142 = /* @__PURE__ */ template(`<span>Right`);
|
|
9469
|
+
var _tmpl$152 = /* @__PURE__ */ template(`<span>Theme`);
|
|
9470
|
+
var _tmpl$162 = /* @__PURE__ */ template(`<span>Light`);
|
|
9471
|
+
var _tmpl$172 = /* @__PURE__ */ template(`<span>Dark`);
|
|
9472
|
+
var _tmpl$182 = /* @__PURE__ */ template(`<span>System`);
|
|
9473
|
+
var _tmpl$192 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
9474
|
+
var _tmpl$202 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
9475
|
+
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>`);
|
|
9476
|
+
var _tmpl$223 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
9477
|
+
var _tmpl$232 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
9478
|
+
var _tmpl$242 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
9479
|
+
var _tmpl$252 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
9480
|
+
var _tmpl$262 = /* @__PURE__ */ template(`<span>`);
|
|
9481
|
+
var _tmpl$27 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
9482
|
+
var _tmpl$28 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
9483
|
+
var _tmpl$29 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
9484
|
+
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">`);
|
|
9485
|
+
var _tmpl$31 = /* @__PURE__ */ template(`<option>`);
|
|
9486
|
+
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">`);
|
|
9487
|
+
var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
9488
|
+
var [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
9489
|
+
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
9490
|
+
var [offline, setOffline] = createSignal(false);
|
|
9516
9491
|
var Devtools = (props) => {
|
|
9517
9492
|
const theme = useTheme();
|
|
9518
9493
|
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
@@ -9565,14 +9540,7 @@ var Devtools = (props) => {
|
|
|
9565
9540
|
get children() {
|
|
9566
9541
|
return createComponent(PiPPanel, {
|
|
9567
9542
|
get children() {
|
|
9568
|
-
return createComponent(ContentView,
|
|
9569
|
-
get localStore() {
|
|
9570
|
-
return props.localStore;
|
|
9571
|
-
},
|
|
9572
|
-
get setLocalStore() {
|
|
9573
|
-
return props.setLocalStore;
|
|
9574
|
-
}
|
|
9575
|
-
});
|
|
9543
|
+
return createComponent(ContentView, props);
|
|
9576
9544
|
}
|
|
9577
9545
|
});
|
|
9578
9546
|
}
|
|
@@ -9590,7 +9558,7 @@ var Devtools = (props) => {
|
|
|
9590
9558
|
return createMemo(() => !!(isOpen() && !pip().pipWindow))() && pip_open() == "false";
|
|
9591
9559
|
},
|
|
9592
9560
|
get children() {
|
|
9593
|
-
return createComponent(
|
|
9561
|
+
return createComponent(DraggablePanel, {
|
|
9594
9562
|
get localStore() {
|
|
9595
9563
|
return props.localStore;
|
|
9596
9564
|
},
|
|
@@ -9707,7 +9675,55 @@ var PiPPanel = (props) => {
|
|
|
9707
9675
|
return _el$5;
|
|
9708
9676
|
})();
|
|
9709
9677
|
};
|
|
9710
|
-
var
|
|
9678
|
+
var ParentPanel = (props) => {
|
|
9679
|
+
const theme = useTheme();
|
|
9680
|
+
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9681
|
+
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
9682
|
+
}) : u;
|
|
9683
|
+
const styles = createMemo(() => {
|
|
9684
|
+
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
9685
|
+
});
|
|
9686
|
+
let panelRef;
|
|
9687
|
+
onMount(() => {
|
|
9688
|
+
createResizeObserver(panelRef, ({
|
|
9689
|
+
width
|
|
9690
|
+
}, el) => {
|
|
9691
|
+
if (el === panelRef) {
|
|
9692
|
+
setPanelWidth(width);
|
|
9693
|
+
}
|
|
9694
|
+
});
|
|
9695
|
+
});
|
|
9696
|
+
const getPanelDynamicStyles = () => {
|
|
9697
|
+
const {
|
|
9698
|
+
colors
|
|
9699
|
+
} = tokens;
|
|
9700
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
9701
|
+
if (panelWidth() < secondBreakpoint) {
|
|
9702
|
+
return css`
|
|
9703
|
+
flex-direction: column;
|
|
9704
|
+
background-color: ${t2(colors.gray[300], colors.gray[600])};
|
|
9705
|
+
`;
|
|
9706
|
+
}
|
|
9707
|
+
return css`
|
|
9708
|
+
flex-direction: row;
|
|
9709
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[900])};
|
|
9710
|
+
`;
|
|
9711
|
+
};
|
|
9712
|
+
return (() => {
|
|
9713
|
+
var _el$6 = _tmpl$26();
|
|
9714
|
+
var _ref$2 = panelRef;
|
|
9715
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$6) : panelRef = _el$6;
|
|
9716
|
+
_el$6.style.setProperty("--tsqd-font-size", "16px");
|
|
9717
|
+
insert(_el$6, () => props.children);
|
|
9718
|
+
createRenderEffect(() => className(_el$6, clsx(styles().parentPanel, getPanelDynamicStyles(), {
|
|
9719
|
+
[css`
|
|
9720
|
+
min-width: min-content;
|
|
9721
|
+
`]: panelWidth() < thirdBreakpoint
|
|
9722
|
+
}, "tsqd-main-panel")));
|
|
9723
|
+
return _el$6;
|
|
9724
|
+
})();
|
|
9725
|
+
};
|
|
9726
|
+
var DraggablePanel = (props) => {
|
|
9711
9727
|
const theme = useTheme();
|
|
9712
9728
|
const css = useQueryDevtoolsContext().shadowDOMTarget ? u.bind({
|
|
9713
9729
|
target: useQueryDevtoolsContext().shadowDOMTarget
|
|
@@ -9818,31 +9834,24 @@ var DevtoolsPanel = (props) => {
|
|
|
9818
9834
|
`;
|
|
9819
9835
|
};
|
|
9820
9836
|
return (() => {
|
|
9821
|
-
var _el$
|
|
9822
|
-
var _ref$
|
|
9823
|
-
typeof _ref$
|
|
9824
|
-
_el$
|
|
9825
|
-
_el$
|
|
9826
|
-
insert(_el$
|
|
9827
|
-
insert(_el$
|
|
9828
|
-
get localStore() {
|
|
9829
|
-
return props.localStore;
|
|
9830
|
-
},
|
|
9831
|
-
get setLocalStore() {
|
|
9832
|
-
return props.setLocalStore;
|
|
9833
|
-
}
|
|
9834
|
-
}), null);
|
|
9837
|
+
var _el$7 = _tmpl$33(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling;
|
|
9838
|
+
var _ref$3 = panelRef;
|
|
9839
|
+
typeof _ref$3 === "function" ? use(_ref$3, _el$7) : panelRef = _el$7;
|
|
9840
|
+
_el$8.$$mousedown = handleDragStart;
|
|
9841
|
+
_el$9.$$click = () => props.setLocalStore("open", "false");
|
|
9842
|
+
insert(_el$9, createComponent(ChevronDown, {}));
|
|
9843
|
+
insert(_el$7, createComponent(ContentView, props), null);
|
|
9835
9844
|
createRenderEffect((_p$) => {
|
|
9836
9845
|
var _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
9837
9846
|
[css`
|
|
9838
9847
|
min-width: min-content;
|
|
9839
9848
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
9840
9849
|
}, "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");
|
|
9841
|
-
_v$ !== _p$.e && className(_el$
|
|
9842
|
-
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$
|
|
9843
|
-
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$
|
|
9844
|
-
_v$4 !== _p$.o && className(_el$
|
|
9845
|
-
_v$5 !== _p$.i && className(_el$
|
|
9850
|
+
_v$ !== _p$.e && className(_el$7, _p$.e = _v$);
|
|
9851
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$7.style.setProperty("height", _v$2) : _el$7.style.removeProperty("height"));
|
|
9852
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$7.style.setProperty("width", _v$3) : _el$7.style.removeProperty("width"));
|
|
9853
|
+
_v$4 !== _p$.o && className(_el$8, _p$.o = _v$4);
|
|
9854
|
+
_v$5 !== _p$.i && className(_el$9, _p$.i = _v$5);
|
|
9846
9855
|
return _p$;
|
|
9847
9856
|
}, {
|
|
9848
9857
|
e: void 0,
|
|
@@ -9851,7 +9860,7 @@ var DevtoolsPanel = (props) => {
|
|
|
9851
9860
|
o: void 0,
|
|
9852
9861
|
i: void 0
|
|
9853
9862
|
});
|
|
9854
|
-
return _el$
|
|
9863
|
+
return _el$7;
|
|
9855
9864
|
})();
|
|
9856
9865
|
};
|
|
9857
9866
|
var ContentView = (props) => {
|
|
@@ -9910,17 +9919,21 @@ var ContentView = (props) => {
|
|
|
9910
9919
|
el.style.setProperty("--tsqd-font-size", variable);
|
|
9911
9920
|
};
|
|
9912
9921
|
return [(() => {
|
|
9913
|
-
var _el$
|
|
9914
|
-
var _ref$
|
|
9915
|
-
typeof _ref$
|
|
9916
|
-
_el$
|
|
9917
|
-
if (!pip().pipWindow) {
|
|
9922
|
+
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;
|
|
9923
|
+
var _ref$4 = containerRef;
|
|
9924
|
+
typeof _ref$4 === "function" ? use(_ref$4, _el$10) : containerRef = _el$10;
|
|
9925
|
+
_el$13.$$click = () => {
|
|
9926
|
+
if (!pip().pipWindow && !props.showPanelViewOnly) {
|
|
9918
9927
|
props.setLocalStore("open", "false");
|
|
9928
|
+
return;
|
|
9929
|
+
}
|
|
9930
|
+
if (props.onClose) {
|
|
9931
|
+
props.onClose();
|
|
9919
9932
|
}
|
|
9920
9933
|
};
|
|
9921
|
-
insert(_el$
|
|
9922
|
-
insert(_el$
|
|
9923
|
-
insert(_el$
|
|
9934
|
+
insert(_el$15, () => useQueryDevtoolsContext().queryFlavor, _el$16);
|
|
9935
|
+
insert(_el$15, () => useQueryDevtoolsContext().version, null);
|
|
9936
|
+
insert(_el$12, createComponent(radio_group_exports.Root, {
|
|
9924
9937
|
get ["class"]() {
|
|
9925
9938
|
return clsx(styles().viewToggle);
|
|
9926
9939
|
},
|
|
@@ -9962,7 +9975,7 @@ var ContentView = (props) => {
|
|
|
9962
9975
|
})];
|
|
9963
9976
|
}
|
|
9964
9977
|
}), null);
|
|
9965
|
-
insert(_el$
|
|
9978
|
+
insert(_el$11, createComponent(Show, {
|
|
9966
9979
|
get when() {
|
|
9967
9980
|
return selectedView() === "queries";
|
|
9968
9981
|
},
|
|
@@ -9970,7 +9983,7 @@ var ContentView = (props) => {
|
|
|
9970
9983
|
return createComponent(QueryStatusCount, {});
|
|
9971
9984
|
}
|
|
9972
9985
|
}), null);
|
|
9973
|
-
insert(_el$
|
|
9986
|
+
insert(_el$11, createComponent(Show, {
|
|
9974
9987
|
get when() {
|
|
9975
9988
|
return selectedView() === "mutations";
|
|
9976
9989
|
},
|
|
@@ -9978,61 +9991,61 @@ var ContentView = (props) => {
|
|
|
9978
9991
|
return createComponent(MutationStatusCount, {});
|
|
9979
9992
|
}
|
|
9980
9993
|
}), null);
|
|
9981
|
-
insert(_el$
|
|
9982
|
-
_el$
|
|
9994
|
+
insert(_el$19, createComponent(Search, {}), _el$20);
|
|
9995
|
+
_el$20.$$input = (e2) => {
|
|
9983
9996
|
if (selectedView() === "queries") {
|
|
9984
9997
|
props.setLocalStore("filter", e2.currentTarget.value);
|
|
9985
9998
|
} else {
|
|
9986
9999
|
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
9987
10000
|
}
|
|
9988
10001
|
};
|
|
9989
|
-
insert(_el$
|
|
10002
|
+
insert(_el$21, createComponent(Show, {
|
|
9990
10003
|
get when() {
|
|
9991
10004
|
return selectedView() === "queries";
|
|
9992
10005
|
},
|
|
9993
10006
|
get children() {
|
|
9994
|
-
var _el$
|
|
9995
|
-
_el$
|
|
10007
|
+
var _el$22 = _tmpl$43();
|
|
10008
|
+
_el$22.addEventListener("change", (e2) => {
|
|
9996
10009
|
props.setLocalStore("sort", e2.currentTarget.value);
|
|
9997
10010
|
});
|
|
9998
|
-
insert(_el$
|
|
9999
|
-
var _el$
|
|
10000
|
-
_el$
|
|
10001
|
-
insert(_el$
|
|
10002
|
-
return _el$
|
|
10011
|
+
insert(_el$22, () => Object.keys(sortFns).map((key) => (() => {
|
|
10012
|
+
var _el$45 = _tmpl$223(); _el$45.firstChild;
|
|
10013
|
+
_el$45.value = key;
|
|
10014
|
+
insert(_el$45, key, null);
|
|
10015
|
+
return _el$45;
|
|
10003
10016
|
})()));
|
|
10004
|
-
createRenderEffect(() => _el$
|
|
10005
|
-
return _el$
|
|
10017
|
+
createRenderEffect(() => _el$22.value = sort());
|
|
10018
|
+
return _el$22;
|
|
10006
10019
|
}
|
|
10007
10020
|
}), null);
|
|
10008
|
-
insert(_el$
|
|
10021
|
+
insert(_el$21, createComponent(Show, {
|
|
10009
10022
|
get when() {
|
|
10010
10023
|
return selectedView() === "mutations";
|
|
10011
10024
|
},
|
|
10012
10025
|
get children() {
|
|
10013
|
-
var _el$
|
|
10014
|
-
_el$
|
|
10026
|
+
var _el$23 = _tmpl$53();
|
|
10027
|
+
_el$23.addEventListener("change", (e2) => {
|
|
10015
10028
|
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
10016
10029
|
});
|
|
10017
|
-
insert(_el$
|
|
10018
|
-
var _el$
|
|
10019
|
-
_el$
|
|
10020
|
-
insert(_el$
|
|
10021
|
-
return _el$
|
|
10030
|
+
insert(_el$23, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
10031
|
+
var _el$47 = _tmpl$223(); _el$47.firstChild;
|
|
10032
|
+
_el$47.value = key;
|
|
10033
|
+
insert(_el$47, key, null);
|
|
10034
|
+
return _el$47;
|
|
10022
10035
|
})()));
|
|
10023
|
-
createRenderEffect(() => _el$
|
|
10024
|
-
return _el$
|
|
10036
|
+
createRenderEffect(() => _el$23.value = mutationSort());
|
|
10037
|
+
return _el$23;
|
|
10025
10038
|
}
|
|
10026
10039
|
}), null);
|
|
10027
|
-
insert(_el$
|
|
10028
|
-
_el$
|
|
10040
|
+
insert(_el$21, createComponent(ChevronDown, {}), null);
|
|
10041
|
+
_el$24.$$click = () => {
|
|
10029
10042
|
if (selectedView() === "queries") {
|
|
10030
10043
|
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
10031
10044
|
} else {
|
|
10032
10045
|
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
10033
10046
|
}
|
|
10034
10047
|
};
|
|
10035
|
-
insert(_el$
|
|
10048
|
+
insert(_el$24, createComponent(Show, {
|
|
10036
10049
|
get when() {
|
|
10037
10050
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
10038
10051
|
},
|
|
@@ -10040,7 +10053,7 @@ var ContentView = (props) => {
|
|
|
10040
10053
|
return [_tmpl$63(), createComponent(ArrowUp, {})];
|
|
10041
10054
|
}
|
|
10042
10055
|
}), null);
|
|
10043
|
-
insert(_el$
|
|
10056
|
+
insert(_el$24, createComponent(Show, {
|
|
10044
10057
|
get when() {
|
|
10045
10058
|
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
10046
10059
|
},
|
|
@@ -10048,15 +10061,15 @@ var ContentView = (props) => {
|
|
|
10048
10061
|
return [_tmpl$73(), createComponent(ArrowDown, {})];
|
|
10049
10062
|
}
|
|
10050
10063
|
}), null);
|
|
10051
|
-
_el$
|
|
10064
|
+
_el$28.$$click = () => {
|
|
10052
10065
|
if (selectedView() === "queries") {
|
|
10053
10066
|
query_cache().clear();
|
|
10054
10067
|
} else {
|
|
10055
10068
|
mutation_cache().clear();
|
|
10056
10069
|
}
|
|
10057
10070
|
};
|
|
10058
|
-
insert(_el$
|
|
10059
|
-
_el$
|
|
10071
|
+
insert(_el$28, createComponent(Trash, {}));
|
|
10072
|
+
_el$29.$$click = () => {
|
|
10060
10073
|
if (offline()) {
|
|
10061
10074
|
onlineManager().setOnline(true);
|
|
10062
10075
|
setOffline(false);
|
|
@@ -10065,25 +10078,25 @@ var ContentView = (props) => {
|
|
|
10065
10078
|
setOffline(true);
|
|
10066
10079
|
}
|
|
10067
10080
|
};
|
|
10068
|
-
insert(_el$
|
|
10081
|
+
insert(_el$29, (() => {
|
|
10069
10082
|
var _c$ = createMemo(() => !!offline());
|
|
10070
10083
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
10071
10084
|
})());
|
|
10072
|
-
insert(_el$
|
|
10085
|
+
insert(_el$27, createComponent(Show, {
|
|
10073
10086
|
get when() {
|
|
10074
|
-
return !pip().
|
|
10087
|
+
return createMemo(() => !!!pip().pipWindow)() && !pip().disabled;
|
|
10075
10088
|
},
|
|
10076
10089
|
get children() {
|
|
10077
|
-
var _el$
|
|
10078
|
-
_el$
|
|
10090
|
+
var _el$30 = _tmpl$83();
|
|
10091
|
+
_el$30.$$click = () => {
|
|
10079
10092
|
pip().requestPipWindow(Number(window.innerWidth), Number(props.localStore.height ?? 500));
|
|
10080
10093
|
};
|
|
10081
|
-
insert(_el$
|
|
10082
|
-
createRenderEffect(() => className(_el$
|
|
10083
|
-
return _el$
|
|
10094
|
+
insert(_el$30, createComponent(PiPIcon, {}));
|
|
10095
|
+
createRenderEffect(() => className(_el$30, clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-open-pip")));
|
|
10096
|
+
return _el$30;
|
|
10084
10097
|
}
|
|
10085
10098
|
}), null);
|
|
10086
|
-
insert(_el$
|
|
10099
|
+
insert(_el$27, createComponent(dropdown_menu_exports.Root, {
|
|
10087
10100
|
gutter: 4,
|
|
10088
10101
|
get children() {
|
|
10089
10102
|
return [createComponent(dropdown_menu_exports.Trigger, {
|
|
@@ -10105,81 +10118,88 @@ var ContentView = (props) => {
|
|
|
10105
10118
|
},
|
|
10106
10119
|
get children() {
|
|
10107
10120
|
return [(() => {
|
|
10108
|
-
var _el$
|
|
10109
|
-
createRenderEffect(() => className(_el$
|
|
10110
|
-
return _el$
|
|
10111
|
-
})(), createComponent(
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10121
|
+
var _el$31 = _tmpl$93();
|
|
10122
|
+
createRenderEffect(() => className(_el$31, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
10123
|
+
return _el$31;
|
|
10124
|
+
})(), createComponent(Show, {
|
|
10125
|
+
get when() {
|
|
10126
|
+
return !props.showPanelViewOnly;
|
|
10127
|
+
},
|
|
10115
10128
|
get children() {
|
|
10116
|
-
return
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
get children() {
|
|
10121
|
-
return [_tmpl$103(), createComponent(ChevronDown, {})];
|
|
10122
|
-
}
|
|
10123
|
-
}), createComponent(dropdown_menu_exports.Portal, {
|
|
10124
|
-
ref: (el) => setComputedVariables(el),
|
|
10125
|
-
get mount() {
|
|
10126
|
-
return createMemo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
|
|
10127
|
-
},
|
|
10129
|
+
return createComponent(dropdown_menu_exports.Sub, {
|
|
10130
|
+
overlap: true,
|
|
10131
|
+
gutter: 8,
|
|
10132
|
+
shift: -4,
|
|
10128
10133
|
get children() {
|
|
10129
|
-
return createComponent(dropdown_menu_exports.
|
|
10134
|
+
return [createComponent(dropdown_menu_exports.SubTrigger, {
|
|
10130
10135
|
get ["class"]() {
|
|
10131
|
-
return clsx(styles().
|
|
10136
|
+
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10132
10137
|
},
|
|
10133
10138
|
get children() {
|
|
10134
|
-
return [createComponent(
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
return [_tmpl$113(), createComponent(ArrowUp, {})];
|
|
10144
|
-
}
|
|
10145
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
10146
|
-
onSelect: () => {
|
|
10147
|
-
setDevtoolsPosition("bottom");
|
|
10148
|
-
},
|
|
10149
|
-
as: "button",
|
|
10150
|
-
get ["class"]() {
|
|
10151
|
-
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10152
|
-
},
|
|
10153
|
-
get children() {
|
|
10154
|
-
return [_tmpl$122(), createComponent(ArrowDown, {})];
|
|
10155
|
-
}
|
|
10156
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
10157
|
-
onSelect: () => {
|
|
10158
|
-
setDevtoolsPosition("left");
|
|
10159
|
-
},
|
|
10160
|
-
as: "button",
|
|
10161
|
-
get ["class"]() {
|
|
10162
|
-
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10163
|
-
},
|
|
10164
|
-
get children() {
|
|
10165
|
-
return [_tmpl$132(), createComponent(ArrowLeft, {})];
|
|
10166
|
-
}
|
|
10167
|
-
}), createComponent(dropdown_menu_exports.Item, {
|
|
10168
|
-
onSelect: () => {
|
|
10169
|
-
setDevtoolsPosition("right");
|
|
10170
|
-
},
|
|
10171
|
-
as: "button",
|
|
10139
|
+
return [_tmpl$103(), createComponent(ChevronDown, {})];
|
|
10140
|
+
}
|
|
10141
|
+
}), createComponent(dropdown_menu_exports.Portal, {
|
|
10142
|
+
ref: (el) => setComputedVariables(el),
|
|
10143
|
+
get mount() {
|
|
10144
|
+
return createMemo(() => !!pip().pipWindow)() ? pip().pipWindow.document.body : document.body;
|
|
10145
|
+
},
|
|
10146
|
+
get children() {
|
|
10147
|
+
return createComponent(dropdown_menu_exports.SubContent, {
|
|
10172
10148
|
get ["class"]() {
|
|
10173
|
-
return clsx(styles().
|
|
10149
|
+
return clsx(styles().settingsMenu, "tsqd-settings-submenu");
|
|
10174
10150
|
},
|
|
10175
10151
|
get children() {
|
|
10176
|
-
return [
|
|
10152
|
+
return [createComponent(dropdown_menu_exports.Item, {
|
|
10153
|
+
onSelect: () => {
|
|
10154
|
+
setDevtoolsPosition("top");
|
|
10155
|
+
},
|
|
10156
|
+
as: "button",
|
|
10157
|
+
get ["class"]() {
|
|
10158
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10159
|
+
},
|
|
10160
|
+
get children() {
|
|
10161
|
+
return [_tmpl$113(), createComponent(ArrowUp, {})];
|
|
10162
|
+
}
|
|
10163
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
10164
|
+
onSelect: () => {
|
|
10165
|
+
setDevtoolsPosition("bottom");
|
|
10166
|
+
},
|
|
10167
|
+
as: "button",
|
|
10168
|
+
get ["class"]() {
|
|
10169
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10170
|
+
},
|
|
10171
|
+
get children() {
|
|
10172
|
+
return [_tmpl$122(), createComponent(ArrowDown, {})];
|
|
10173
|
+
}
|
|
10174
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
10175
|
+
onSelect: () => {
|
|
10176
|
+
setDevtoolsPosition("left");
|
|
10177
|
+
},
|
|
10178
|
+
as: "button",
|
|
10179
|
+
get ["class"]() {
|
|
10180
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10181
|
+
},
|
|
10182
|
+
get children() {
|
|
10183
|
+
return [_tmpl$132(), createComponent(ArrowLeft, {})];
|
|
10184
|
+
}
|
|
10185
|
+
}), createComponent(dropdown_menu_exports.Item, {
|
|
10186
|
+
onSelect: () => {
|
|
10187
|
+
setDevtoolsPosition("right");
|
|
10188
|
+
},
|
|
10189
|
+
as: "button",
|
|
10190
|
+
get ["class"]() {
|
|
10191
|
+
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
10192
|
+
},
|
|
10193
|
+
get children() {
|
|
10194
|
+
return [_tmpl$142(), createComponent(ArrowRight, {})];
|
|
10195
|
+
}
|
|
10196
|
+
})];
|
|
10177
10197
|
}
|
|
10178
|
-
})
|
|
10198
|
+
});
|
|
10179
10199
|
}
|
|
10180
|
-
});
|
|
10200
|
+
})];
|
|
10181
10201
|
}
|
|
10182
|
-
})
|
|
10202
|
+
});
|
|
10183
10203
|
}
|
|
10184
10204
|
}), createComponent(dropdown_menu_exports.Sub, {
|
|
10185
10205
|
overlap: true,
|
|
@@ -10250,13 +10270,13 @@ var ContentView = (props) => {
|
|
|
10250
10270
|
})];
|
|
10251
10271
|
}
|
|
10252
10272
|
}), null);
|
|
10253
|
-
insert(_el$
|
|
10273
|
+
insert(_el$10, createComponent(Show, {
|
|
10254
10274
|
get when() {
|
|
10255
10275
|
return selectedView() === "queries";
|
|
10256
10276
|
},
|
|
10257
10277
|
get children() {
|
|
10258
|
-
var _el$
|
|
10259
|
-
insert(_el$
|
|
10278
|
+
var _el$41 = _tmpl$192(), _el$42 = _el$41.firstChild;
|
|
10279
|
+
insert(_el$42, createComponent(Key, {
|
|
10260
10280
|
by: (q) => q.queryHash,
|
|
10261
10281
|
get each() {
|
|
10262
10282
|
return queries();
|
|
@@ -10267,17 +10287,17 @@ var ContentView = (props) => {
|
|
|
10267
10287
|
}
|
|
10268
10288
|
})
|
|
10269
10289
|
}));
|
|
10270
|
-
createRenderEffect(() => className(_el$
|
|
10271
|
-
return _el$
|
|
10290
|
+
createRenderEffect(() => className(_el$41, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
10291
|
+
return _el$41;
|
|
10272
10292
|
}
|
|
10273
10293
|
}), null);
|
|
10274
|
-
insert(_el$
|
|
10294
|
+
insert(_el$10, createComponent(Show, {
|
|
10275
10295
|
get when() {
|
|
10276
10296
|
return selectedView() === "mutations";
|
|
10277
10297
|
},
|
|
10278
10298
|
get children() {
|
|
10279
|
-
var _el$
|
|
10280
|
-
insert(_el$
|
|
10299
|
+
var _el$43 = _tmpl$202(), _el$44 = _el$43.firstChild;
|
|
10300
|
+
insert(_el$44, createComponent(Key, {
|
|
10281
10301
|
by: (m) => m.mutationId,
|
|
10282
10302
|
get each() {
|
|
10283
10303
|
return mutations();
|
|
@@ -10288,8 +10308,8 @@ var ContentView = (props) => {
|
|
|
10288
10308
|
}
|
|
10289
10309
|
})
|
|
10290
10310
|
}));
|
|
10291
|
-
createRenderEffect(() => className(_el$
|
|
10292
|
-
return _el$
|
|
10311
|
+
createRenderEffect(() => className(_el$43, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
10312
|
+
return _el$43;
|
|
10293
10313
|
}
|
|
10294
10314
|
}), null);
|
|
10295
10315
|
createRenderEffect((_p$) => {
|
|
@@ -10300,26 +10320,26 @@ var ContentView = (props) => {
|
|
|
10300
10320
|
height: 100%;
|
|
10301
10321
|
max-height: 100%;
|
|
10302
10322
|
`, "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"}`;
|
|
10303
|
-
_v$6 !== _p$.e && className(_el$
|
|
10304
|
-
_v$7 !== _p$.t && className(_el$
|
|
10305
|
-
_v$8 !== _p$.a && className(_el$
|
|
10306
|
-
_v$9 !== _p$.o && className(_el$
|
|
10307
|
-
_v$10 !== _p$.i && className(_el$
|
|
10308
|
-
_v$11 !== _p$.n && className(_el$
|
|
10309
|
-
_v$12 !== _p$.s && className(_el$
|
|
10310
|
-
_v$13 !== _p$.h && className(_el$
|
|
10311
|
-
_v$14 !== _p$.r && className(_el$
|
|
10312
|
-
_v$15 !== _p$.d && className(_el$
|
|
10313
|
-
_v$16 !== _p$.l && className(_el$
|
|
10314
|
-
_v$17 !== _p$.u && setAttribute(_el$
|
|
10315
|
-
_v$18 !== _p$.c && setAttribute(_el$
|
|
10316
|
-
_v$19 !== _p$.w && className(_el$
|
|
10317
|
-
_v$20 !== _p$.m && className(_el$
|
|
10318
|
-
_v$21 !== _p$.f && setAttribute(_el$
|
|
10319
|
-
_v$22 !== _p$.y && className(_el$
|
|
10320
|
-
_v$23 !== _p$.g && setAttribute(_el$
|
|
10321
|
-
_v$24 !== _p$.p && setAttribute(_el$
|
|
10322
|
-
_v$25 !== _p$.b && setAttribute(_el$
|
|
10323
|
+
_v$6 !== _p$.e && className(_el$10, _p$.e = _v$6);
|
|
10324
|
+
_v$7 !== _p$.t && className(_el$11, _p$.t = _v$7);
|
|
10325
|
+
_v$8 !== _p$.a && className(_el$12, _p$.a = _v$8);
|
|
10326
|
+
_v$9 !== _p$.o && className(_el$13, _p$.o = _v$9);
|
|
10327
|
+
_v$10 !== _p$.i && className(_el$14, _p$.i = _v$10);
|
|
10328
|
+
_v$11 !== _p$.n && className(_el$15, _p$.n = _v$11);
|
|
10329
|
+
_v$12 !== _p$.s && className(_el$17, _p$.s = _v$12);
|
|
10330
|
+
_v$13 !== _p$.h && className(_el$18, _p$.h = _v$13);
|
|
10331
|
+
_v$14 !== _p$.r && className(_el$19, _p$.r = _v$14);
|
|
10332
|
+
_v$15 !== _p$.d && className(_el$20, _p$.d = _v$15);
|
|
10333
|
+
_v$16 !== _p$.l && className(_el$21, _p$.l = _v$16);
|
|
10334
|
+
_v$17 !== _p$.u && setAttribute(_el$24, "aria-label", _p$.u = _v$17);
|
|
10335
|
+
_v$18 !== _p$.c && setAttribute(_el$24, "aria-pressed", _p$.c = _v$18);
|
|
10336
|
+
_v$19 !== _p$.w && className(_el$27, _p$.w = _v$19);
|
|
10337
|
+
_v$20 !== _p$.m && className(_el$28, _p$.m = _v$20);
|
|
10338
|
+
_v$21 !== _p$.f && setAttribute(_el$28, "title", _p$.f = _v$21);
|
|
10339
|
+
_v$22 !== _p$.y && className(_el$29, _p$.y = _v$22);
|
|
10340
|
+
_v$23 !== _p$.g && setAttribute(_el$29, "aria-label", _p$.g = _v$23);
|
|
10341
|
+
_v$24 !== _p$.p && setAttribute(_el$29, "aria-pressed", _p$.p = _v$24);
|
|
10342
|
+
_v$25 !== _p$.b && setAttribute(_el$29, "title", _p$.b = _v$25);
|
|
10323
10343
|
return _p$;
|
|
10324
10344
|
}, {
|
|
10325
10345
|
e: void 0,
|
|
@@ -10343,8 +10363,8 @@ var ContentView = (props) => {
|
|
|
10343
10363
|
p: void 0,
|
|
10344
10364
|
b: void 0
|
|
10345
10365
|
});
|
|
10346
|
-
createRenderEffect(() => _el$
|
|
10347
|
-
return _el$
|
|
10366
|
+
createRenderEffect(() => _el$20.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
10367
|
+
return _el$10;
|
|
10348
10368
|
})(), createComponent(Show, {
|
|
10349
10369
|
get when() {
|
|
10350
10370
|
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
@@ -10408,11 +10428,11 @@ var QueryRow = (props) => {
|
|
|
10408
10428
|
return queryState();
|
|
10409
10429
|
},
|
|
10410
10430
|
get children() {
|
|
10411
|
-
var _el$
|
|
10412
|
-
_el$
|
|
10413
|
-
insert(_el$
|
|
10414
|
-
insert(_el$
|
|
10415
|
-
insert(_el$
|
|
10431
|
+
var _el$49 = _tmpl$242(), _el$50 = _el$49.firstChild, _el$51 = _el$50.nextSibling;
|
|
10432
|
+
_el$49.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
10433
|
+
insert(_el$50, observers);
|
|
10434
|
+
insert(_el$51, () => props.query.queryHash);
|
|
10435
|
+
insert(_el$49, createComponent(Show, {
|
|
10416
10436
|
get when() {
|
|
10417
10437
|
return isDisabled();
|
|
10418
10438
|
},
|
|
@@ -10422,16 +10442,16 @@ var QueryRow = (props) => {
|
|
|
10422
10442
|
}), null);
|
|
10423
10443
|
createRenderEffect((_p$) => {
|
|
10424
10444
|
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");
|
|
10425
|
-
_v$26 !== _p$.e && className(_el$
|
|
10426
|
-
_v$27 !== _p$.t && setAttribute(_el$
|
|
10427
|
-
_v$28 !== _p$.a && className(_el$
|
|
10445
|
+
_v$26 !== _p$.e && className(_el$49, _p$.e = _v$26);
|
|
10446
|
+
_v$27 !== _p$.t && setAttribute(_el$49, "aria-label", _p$.t = _v$27);
|
|
10447
|
+
_v$28 !== _p$.a && className(_el$50, _p$.a = _v$28);
|
|
10428
10448
|
return _p$;
|
|
10429
10449
|
}, {
|
|
10430
10450
|
e: void 0,
|
|
10431
10451
|
t: void 0,
|
|
10432
10452
|
a: void 0
|
|
10433
10453
|
});
|
|
10434
|
-
return _el$
|
|
10454
|
+
return _el$49;
|
|
10435
10455
|
}
|
|
10436
10456
|
});
|
|
10437
10457
|
};
|
|
@@ -10488,11 +10508,11 @@ var MutationRow = (props) => {
|
|
|
10488
10508
|
return mutationState();
|
|
10489
10509
|
},
|
|
10490
10510
|
get children() {
|
|
10491
|
-
var _el$
|
|
10492
|
-
_el$
|
|
10511
|
+
var _el$53 = _tmpl$242(), _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling;
|
|
10512
|
+
_el$53.$$click = () => {
|
|
10493
10513
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
10494
10514
|
};
|
|
10495
|
-
insert(_el$
|
|
10515
|
+
insert(_el$54, createComponent(Show, {
|
|
10496
10516
|
get when() {
|
|
10497
10517
|
return color() === "purple";
|
|
10498
10518
|
},
|
|
@@ -10500,7 +10520,7 @@ var MutationRow = (props) => {
|
|
|
10500
10520
|
return createComponent(PauseCircle, {});
|
|
10501
10521
|
}
|
|
10502
10522
|
}), null);
|
|
10503
|
-
insert(_el$
|
|
10523
|
+
insert(_el$54, createComponent(Show, {
|
|
10504
10524
|
get when() {
|
|
10505
10525
|
return color() === "green";
|
|
10506
10526
|
},
|
|
@@ -10508,7 +10528,7 @@ var MutationRow = (props) => {
|
|
|
10508
10528
|
return createComponent(CheckCircle, {});
|
|
10509
10529
|
}
|
|
10510
10530
|
}), null);
|
|
10511
|
-
insert(_el$
|
|
10531
|
+
insert(_el$54, createComponent(Show, {
|
|
10512
10532
|
get when() {
|
|
10513
10533
|
return color() === "red";
|
|
10514
10534
|
},
|
|
@@ -10516,7 +10536,7 @@ var MutationRow = (props) => {
|
|
|
10516
10536
|
return createComponent(XCircle, {});
|
|
10517
10537
|
}
|
|
10518
10538
|
}), null);
|
|
10519
|
-
insert(_el$
|
|
10539
|
+
insert(_el$54, createComponent(Show, {
|
|
10520
10540
|
get when() {
|
|
10521
10541
|
return color() === "yellow";
|
|
10522
10542
|
},
|
|
@@ -10524,7 +10544,7 @@ var MutationRow = (props) => {
|
|
|
10524
10544
|
return createComponent(LoadingCircle, {});
|
|
10525
10545
|
}
|
|
10526
10546
|
}), null);
|
|
10527
|
-
insert(_el$
|
|
10547
|
+
insert(_el$55, createComponent(Show, {
|
|
10528
10548
|
get when() {
|
|
10529
10549
|
return props.mutation.options.mutationKey;
|
|
10530
10550
|
},
|
|
@@ -10532,19 +10552,19 @@ var MutationRow = (props) => {
|
|
|
10532
10552
|
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
10533
10553
|
}
|
|
10534
10554
|
}), null);
|
|
10535
|
-
insert(_el$
|
|
10555
|
+
insert(_el$55, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
10536
10556
|
createRenderEffect((_p$) => {
|
|
10537
10557
|
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");
|
|
10538
|
-
_v$29 !== _p$.e && className(_el$
|
|
10539
|
-
_v$30 !== _p$.t && setAttribute(_el$
|
|
10540
|
-
_v$31 !== _p$.a && className(_el$
|
|
10558
|
+
_v$29 !== _p$.e && className(_el$53, _p$.e = _v$29);
|
|
10559
|
+
_v$30 !== _p$.t && setAttribute(_el$53, "aria-label", _p$.t = _v$30);
|
|
10560
|
+
_v$31 !== _p$.a && className(_el$54, _p$.a = _v$31);
|
|
10541
10561
|
return _p$;
|
|
10542
10562
|
}, {
|
|
10543
10563
|
e: void 0,
|
|
10544
10564
|
t: void 0,
|
|
10545
10565
|
a: void 0
|
|
10546
10566
|
});
|
|
10547
|
-
return _el$
|
|
10567
|
+
return _el$53;
|
|
10548
10568
|
}
|
|
10549
10569
|
});
|
|
10550
10570
|
};
|
|
@@ -10562,44 +10582,44 @@ var QueryStatusCount = () => {
|
|
|
10562
10582
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10563
10583
|
});
|
|
10564
10584
|
return (() => {
|
|
10565
|
-
var _el$
|
|
10566
|
-
insert(_el$
|
|
10585
|
+
var _el$56 = _tmpl$26();
|
|
10586
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10567
10587
|
label: "Fresh",
|
|
10568
10588
|
color: "green",
|
|
10569
10589
|
get count() {
|
|
10570
10590
|
return fresh();
|
|
10571
10591
|
}
|
|
10572
10592
|
}), null);
|
|
10573
|
-
insert(_el$
|
|
10593
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10574
10594
|
label: "Fetching",
|
|
10575
10595
|
color: "blue",
|
|
10576
10596
|
get count() {
|
|
10577
10597
|
return fetching();
|
|
10578
10598
|
}
|
|
10579
10599
|
}), null);
|
|
10580
|
-
insert(_el$
|
|
10600
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10581
10601
|
label: "Paused",
|
|
10582
10602
|
color: "purple",
|
|
10583
10603
|
get count() {
|
|
10584
10604
|
return paused();
|
|
10585
10605
|
}
|
|
10586
10606
|
}), null);
|
|
10587
|
-
insert(_el$
|
|
10607
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10588
10608
|
label: "Stale",
|
|
10589
10609
|
color: "yellow",
|
|
10590
10610
|
get count() {
|
|
10591
10611
|
return stale();
|
|
10592
10612
|
}
|
|
10593
10613
|
}), null);
|
|
10594
|
-
insert(_el$
|
|
10614
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
10595
10615
|
label: "Inactive",
|
|
10596
10616
|
color: "gray",
|
|
10597
10617
|
get count() {
|
|
10598
10618
|
return inactive();
|
|
10599
10619
|
}
|
|
10600
10620
|
}), null);
|
|
10601
|
-
createRenderEffect(() => className(_el$
|
|
10602
|
-
return _el$
|
|
10621
|
+
createRenderEffect(() => className(_el$56, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
10622
|
+
return _el$56;
|
|
10603
10623
|
})();
|
|
10604
10624
|
};
|
|
10605
10625
|
var MutationStatusCount = () => {
|
|
@@ -10627,37 +10647,37 @@ var MutationStatusCount = () => {
|
|
|
10627
10647
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10628
10648
|
});
|
|
10629
10649
|
return (() => {
|
|
10630
|
-
var _el$
|
|
10631
|
-
insert(_el$
|
|
10650
|
+
var _el$57 = _tmpl$26();
|
|
10651
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10632
10652
|
label: "Paused",
|
|
10633
10653
|
color: "purple",
|
|
10634
10654
|
get count() {
|
|
10635
10655
|
return paused();
|
|
10636
10656
|
}
|
|
10637
10657
|
}), null);
|
|
10638
|
-
insert(_el$
|
|
10658
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10639
10659
|
label: "Pending",
|
|
10640
10660
|
color: "yellow",
|
|
10641
10661
|
get count() {
|
|
10642
10662
|
return pending();
|
|
10643
10663
|
}
|
|
10644
10664
|
}), null);
|
|
10645
|
-
insert(_el$
|
|
10665
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10646
10666
|
label: "Success",
|
|
10647
10667
|
color: "green",
|
|
10648
10668
|
get count() {
|
|
10649
10669
|
return success();
|
|
10650
10670
|
}
|
|
10651
10671
|
}), null);
|
|
10652
|
-
insert(_el$
|
|
10672
|
+
insert(_el$57, createComponent(QueryStatus, {
|
|
10653
10673
|
label: "Error",
|
|
10654
10674
|
color: "red",
|
|
10655
10675
|
get count() {
|
|
10656
10676
|
return error();
|
|
10657
10677
|
}
|
|
10658
10678
|
}), null);
|
|
10659
|
-
createRenderEffect(() => className(_el$
|
|
10660
|
-
return _el$
|
|
10679
|
+
createRenderEffect(() => className(_el$57, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
10680
|
+
return _el$57;
|
|
10661
10681
|
})();
|
|
10662
10682
|
};
|
|
10663
10683
|
var QueryStatus = (props) => {
|
|
@@ -10682,23 +10702,23 @@ var QueryStatus = (props) => {
|
|
|
10682
10702
|
return false;
|
|
10683
10703
|
}
|
|
10684
10704
|
}
|
|
10685
|
-
if (panelWidth() <
|
|
10705
|
+
if (panelWidth() < secondBreakpoint) {
|
|
10686
10706
|
return false;
|
|
10687
10707
|
}
|
|
10688
10708
|
return true;
|
|
10689
10709
|
});
|
|
10690
10710
|
return (() => {
|
|
10691
|
-
var _el$
|
|
10692
|
-
var _ref$
|
|
10693
|
-
typeof _ref$
|
|
10694
|
-
_el$
|
|
10711
|
+
var _el$58 = _tmpl$27(), _el$60 = _el$58.firstChild, _el$62 = _el$60.nextSibling;
|
|
10712
|
+
var _ref$5 = tagRef;
|
|
10713
|
+
typeof _ref$5 === "function" ? use(_ref$5, _el$58) : tagRef = _el$58;
|
|
10714
|
+
_el$58.addEventListener("mouseleave", () => {
|
|
10695
10715
|
setMouseOver(false);
|
|
10696
10716
|
setFocused(false);
|
|
10697
10717
|
});
|
|
10698
|
-
_el$
|
|
10699
|
-
_el$
|
|
10700
|
-
_el$
|
|
10701
|
-
spread(_el$
|
|
10718
|
+
_el$58.addEventListener("mouseenter", () => setMouseOver(true));
|
|
10719
|
+
_el$58.addEventListener("blur", () => setFocused(false));
|
|
10720
|
+
_el$58.addEventListener("focus", () => setFocused(true));
|
|
10721
|
+
spread(_el$58, mergeProps({
|
|
10702
10722
|
get disabled() {
|
|
10703
10723
|
return showLabel();
|
|
10704
10724
|
},
|
|
@@ -10713,29 +10733,29 @@ var QueryStatus = (props) => {
|
|
|
10713
10733
|
}, () => mouseOver() || focused() ? {
|
|
10714
10734
|
"aria-describedby": "tsqd-status-tooltip"
|
|
10715
10735
|
} : {}), false, true);
|
|
10716
|
-
insert(_el$
|
|
10736
|
+
insert(_el$58, createComponent(Show, {
|
|
10717
10737
|
get when() {
|
|
10718
10738
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
10719
10739
|
},
|
|
10720
10740
|
get children() {
|
|
10721
|
-
var _el$
|
|
10722
|
-
insert(_el$
|
|
10723
|
-
createRenderEffect(() => className(_el$
|
|
10724
|
-
return _el$
|
|
10741
|
+
var _el$59 = _tmpl$252();
|
|
10742
|
+
insert(_el$59, () => props.label);
|
|
10743
|
+
createRenderEffect(() => className(_el$59, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
10744
|
+
return _el$59;
|
|
10725
10745
|
}
|
|
10726
|
-
}), _el$
|
|
10727
|
-
insert(_el$
|
|
10746
|
+
}), _el$60);
|
|
10747
|
+
insert(_el$58, createComponent(Show, {
|
|
10728
10748
|
get when() {
|
|
10729
10749
|
return showLabel();
|
|
10730
10750
|
},
|
|
10731
10751
|
get children() {
|
|
10732
|
-
var _el$
|
|
10733
|
-
insert(_el$
|
|
10734
|
-
createRenderEffect(() => className(_el$
|
|
10735
|
-
return _el$
|
|
10752
|
+
var _el$61 = _tmpl$262();
|
|
10753
|
+
insert(_el$61, () => props.label);
|
|
10754
|
+
createRenderEffect(() => className(_el$61, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
10755
|
+
return _el$61;
|
|
10736
10756
|
}
|
|
10737
|
-
}), _el$
|
|
10738
|
-
insert(_el$
|
|
10757
|
+
}), _el$62);
|
|
10758
|
+
insert(_el$62, () => props.count);
|
|
10739
10759
|
createRenderEffect((_p$) => {
|
|
10740
10760
|
var _v$32 = clsx(css`
|
|
10741
10761
|
width: ${tokens.size[1.5]};
|
|
@@ -10746,14 +10766,14 @@ var QueryStatus = (props) => {
|
|
|
10746
10766
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10747
10767
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10748
10768
|
`, "tsqd-query-status-tag-count");
|
|
10749
|
-
_v$32 !== _p$.e && className(_el$
|
|
10750
|
-
_v$33 !== _p$.t && className(_el$
|
|
10769
|
+
_v$32 !== _p$.e && className(_el$60, _p$.e = _v$32);
|
|
10770
|
+
_v$33 !== _p$.t && className(_el$62, _p$.t = _v$33);
|
|
10751
10771
|
return _p$;
|
|
10752
10772
|
}, {
|
|
10753
10773
|
e: void 0,
|
|
10754
10774
|
t: void 0
|
|
10755
10775
|
});
|
|
10756
|
-
return _el$
|
|
10776
|
+
return _el$58;
|
|
10757
10777
|
})();
|
|
10758
10778
|
};
|
|
10759
10779
|
var QueryDetails = () => {
|
|
@@ -10850,19 +10870,19 @@ var QueryDetails = () => {
|
|
|
10850
10870
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
10851
10871
|
},
|
|
10852
10872
|
get children() {
|
|
10853
|
-
var _el$
|
|
10854
|
-
insert(_el$
|
|
10855
|
-
insert(_el$
|
|
10856
|
-
insert(_el$
|
|
10857
|
-
insert(_el$
|
|
10858
|
-
_el$
|
|
10859
|
-
_el$
|
|
10860
|
-
_el$
|
|
10861
|
-
_el$
|
|
10873
|
+
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;
|
|
10874
|
+
insert(_el$68, () => displayValue(activeQuery().queryKey, true));
|
|
10875
|
+
insert(_el$69, statusLabel);
|
|
10876
|
+
insert(_el$72, observerCount);
|
|
10877
|
+
insert(_el$75, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
10878
|
+
_el$78.$$click = handleRefetch;
|
|
10879
|
+
_el$80.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
10880
|
+
_el$82.$$click = () => queryClient.resetQueries(activeQuery());
|
|
10881
|
+
_el$84.$$click = () => {
|
|
10862
10882
|
queryClient.removeQueries(activeQuery());
|
|
10863
10883
|
setSelectedQueryHash(null);
|
|
10864
10884
|
};
|
|
10865
|
-
_el$
|
|
10885
|
+
_el$86.$$click = () => {
|
|
10866
10886
|
if (activeQuery()?.state.data === void 0) {
|
|
10867
10887
|
setRestoringLoading(true);
|
|
10868
10888
|
restoreQueryAfterLoadingOrError();
|
|
@@ -10889,78 +10909,78 @@ var QueryDetails = () => {
|
|
|
10889
10909
|
});
|
|
10890
10910
|
}
|
|
10891
10911
|
};
|
|
10892
|
-
insert(_el$
|
|
10893
|
-
insert(_el$
|
|
10912
|
+
insert(_el$86, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$88);
|
|
10913
|
+
insert(_el$77, createComponent(Show, {
|
|
10894
10914
|
get when() {
|
|
10895
10915
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
10896
10916
|
},
|
|
10897
10917
|
get children() {
|
|
10898
|
-
var _el$
|
|
10899
|
-
_el$
|
|
10918
|
+
var _el$89 = _tmpl$28(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling;
|
|
10919
|
+
_el$89.$$click = () => {
|
|
10900
10920
|
if (!activeQuery().state.error) {
|
|
10901
10921
|
triggerError();
|
|
10902
10922
|
} else {
|
|
10903
10923
|
queryClient.resetQueries(activeQuery());
|
|
10904
10924
|
}
|
|
10905
10925
|
};
|
|
10906
|
-
insert(_el$
|
|
10926
|
+
insert(_el$89, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$91);
|
|
10907
10927
|
createRenderEffect((_p$) => {
|
|
10908
10928
|
var _v$34 = clsx(css`
|
|
10909
10929
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
10910
10930
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
|
|
10911
10931
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
10912
10932
|
`;
|
|
10913
|
-
_v$34 !== _p$.e && className(_el$
|
|
10914
|
-
_v$35 !== _p$.t && (_el$
|
|
10915
|
-
_v$36 !== _p$.a && className(_el$
|
|
10933
|
+
_v$34 !== _p$.e && className(_el$89, _p$.e = _v$34);
|
|
10934
|
+
_v$35 !== _p$.t && (_el$89.disabled = _p$.t = _v$35);
|
|
10935
|
+
_v$36 !== _p$.a && className(_el$90, _p$.a = _v$36);
|
|
10916
10936
|
return _p$;
|
|
10917
10937
|
}, {
|
|
10918
10938
|
e: void 0,
|
|
10919
10939
|
t: void 0,
|
|
10920
10940
|
a: void 0
|
|
10921
10941
|
});
|
|
10922
|
-
return _el$
|
|
10942
|
+
return _el$89;
|
|
10923
10943
|
}
|
|
10924
10944
|
}), null);
|
|
10925
|
-
insert(_el$
|
|
10945
|
+
insert(_el$77, createComponent(Show, {
|
|
10926
10946
|
get when() {
|
|
10927
10947
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
10928
10948
|
},
|
|
10929
10949
|
get children() {
|
|
10930
|
-
var _el$
|
|
10931
|
-
_el$
|
|
10950
|
+
var _el$92 = _tmpl$29(), _el$93 = _el$92.firstChild, _el$94 = _el$93.nextSibling, _el$95 = _el$94.nextSibling; _el$95.firstChild;
|
|
10951
|
+
_el$95.addEventListener("change", (e2) => {
|
|
10932
10952
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
10933
10953
|
triggerError(errorType);
|
|
10934
10954
|
});
|
|
10935
|
-
insert(_el$
|
|
10955
|
+
insert(_el$95, createComponent(For, {
|
|
10936
10956
|
get each() {
|
|
10937
10957
|
return errorTypes();
|
|
10938
10958
|
},
|
|
10939
10959
|
children: (errorType) => (() => {
|
|
10940
|
-
var _el$
|
|
10941
|
-
insert(_el$
|
|
10942
|
-
createRenderEffect(() => _el$
|
|
10943
|
-
return _el$
|
|
10960
|
+
var _el$101 = _tmpl$31();
|
|
10961
|
+
insert(_el$101, () => errorType.name);
|
|
10962
|
+
createRenderEffect(() => _el$101.value = errorType.name);
|
|
10963
|
+
return _el$101;
|
|
10944
10964
|
})()
|
|
10945
10965
|
}), null);
|
|
10946
|
-
insert(_el$
|
|
10966
|
+
insert(_el$92, createComponent(ChevronDown, {}), null);
|
|
10947
10967
|
createRenderEffect((_p$) => {
|
|
10948
10968
|
var _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
|
|
10949
10969
|
background-color: ${tokens.colors.red[400]};
|
|
10950
10970
|
`, _v$39 = queryStatus() === "pending";
|
|
10951
|
-
_v$37 !== _p$.e && className(_el$
|
|
10952
|
-
_v$38 !== _p$.t && className(_el$
|
|
10953
|
-
_v$39 !== _p$.a && (_el$
|
|
10971
|
+
_v$37 !== _p$.e && className(_el$92, _p$.e = _v$37);
|
|
10972
|
+
_v$38 !== _p$.t && className(_el$93, _p$.t = _v$38);
|
|
10973
|
+
_v$39 !== _p$.a && (_el$95.disabled = _p$.a = _v$39);
|
|
10954
10974
|
return _p$;
|
|
10955
10975
|
}, {
|
|
10956
10976
|
e: void 0,
|
|
10957
10977
|
t: void 0,
|
|
10958
10978
|
a: void 0
|
|
10959
10979
|
});
|
|
10960
|
-
return _el$
|
|
10980
|
+
return _el$92;
|
|
10961
10981
|
}
|
|
10962
10982
|
}), null);
|
|
10963
|
-
insert(_el$
|
|
10983
|
+
insert(_el$98, createComponent(Explorer, {
|
|
10964
10984
|
label: "Data",
|
|
10965
10985
|
defaultExpanded: ["Data"],
|
|
10966
10986
|
get value() {
|
|
@@ -10971,7 +10991,7 @@ var QueryDetails = () => {
|
|
|
10971
10991
|
return activeQuery();
|
|
10972
10992
|
}
|
|
10973
10993
|
}));
|
|
10974
|
-
insert(_el$
|
|
10994
|
+
insert(_el$100, createComponent(Explorer, {
|
|
10975
10995
|
label: "Query",
|
|
10976
10996
|
defaultExpanded: ["Query", "queryKey"],
|
|
10977
10997
|
get value() {
|
|
@@ -11000,31 +11020,31 @@ var QueryDetails = () => {
|
|
|
11000
11020
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
|
|
11001
11021
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11002
11022
|
`, _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];
|
|
11003
|
-
_v$40 !== _p$.e && className(_el$
|
|
11004
|
-
_v$41 !== _p$.t && className(_el$
|
|
11005
|
-
_v$42 !== _p$.a && className(_el$
|
|
11006
|
-
_v$43 !== _p$.o && className(_el$
|
|
11007
|
-
_v$44 !== _p$.i && className(_el$
|
|
11008
|
-
_v$45 !== _p$.n && className(_el$
|
|
11009
|
-
_v$46 !== _p$.s && className(_el$
|
|
11010
|
-
_v$47 !== _p$.h && (_el$
|
|
11011
|
-
_v$48 !== _p$.r && className(_el$
|
|
11012
|
-
_v$49 !== _p$.d && className(_el$
|
|
11013
|
-
_v$50 !== _p$.l && (_el$
|
|
11014
|
-
_v$51 !== _p$.u && className(_el$
|
|
11015
|
-
_v$52 !== _p$.c && className(_el$
|
|
11016
|
-
_v$53 !== _p$.w && (_el$
|
|
11017
|
-
_v$54 !== _p$.m && className(_el$
|
|
11018
|
-
_v$55 !== _p$.f && className(_el$
|
|
11019
|
-
_v$56 !== _p$.y && (_el$
|
|
11020
|
-
_v$57 !== _p$.g && className(_el$
|
|
11021
|
-
_v$58 !== _p$.p && className(_el$
|
|
11022
|
-
_v$59 !== _p$.b && (_el$
|
|
11023
|
-
_v$60 !== _p$.T && className(_el$
|
|
11024
|
-
_v$61 !== _p$.A && className(_el$
|
|
11025
|
-
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$
|
|
11026
|
-
_v$63 !== _p$.I && className(_el$
|
|
11027
|
-
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$
|
|
11023
|
+
_v$40 !== _p$.e && className(_el$63, _p$.e = _v$40);
|
|
11024
|
+
_v$41 !== _p$.t && className(_el$64, _p$.t = _v$41);
|
|
11025
|
+
_v$42 !== _p$.a && className(_el$65, _p$.a = _v$42);
|
|
11026
|
+
_v$43 !== _p$.o && className(_el$69, _p$.o = _v$43);
|
|
11027
|
+
_v$44 !== _p$.i && className(_el$76, _p$.i = _v$44);
|
|
11028
|
+
_v$45 !== _p$.n && className(_el$77, _p$.n = _v$45);
|
|
11029
|
+
_v$46 !== _p$.s && className(_el$78, _p$.s = _v$46);
|
|
11030
|
+
_v$47 !== _p$.h && (_el$78.disabled = _p$.h = _v$47);
|
|
11031
|
+
_v$48 !== _p$.r && className(_el$79, _p$.r = _v$48);
|
|
11032
|
+
_v$49 !== _p$.d && className(_el$80, _p$.d = _v$49);
|
|
11033
|
+
_v$50 !== _p$.l && (_el$80.disabled = _p$.l = _v$50);
|
|
11034
|
+
_v$51 !== _p$.u && className(_el$81, _p$.u = _v$51);
|
|
11035
|
+
_v$52 !== _p$.c && className(_el$82, _p$.c = _v$52);
|
|
11036
|
+
_v$53 !== _p$.w && (_el$82.disabled = _p$.w = _v$53);
|
|
11037
|
+
_v$54 !== _p$.m && className(_el$83, _p$.m = _v$54);
|
|
11038
|
+
_v$55 !== _p$.f && className(_el$84, _p$.f = _v$55);
|
|
11039
|
+
_v$56 !== _p$.y && (_el$84.disabled = _p$.y = _v$56);
|
|
11040
|
+
_v$57 !== _p$.g && className(_el$85, _p$.g = _v$57);
|
|
11041
|
+
_v$58 !== _p$.p && className(_el$86, _p$.p = _v$58);
|
|
11042
|
+
_v$59 !== _p$.b && (_el$86.disabled = _p$.b = _v$59);
|
|
11043
|
+
_v$60 !== _p$.T && className(_el$87, _p$.T = _v$60);
|
|
11044
|
+
_v$61 !== _p$.A && className(_el$97, _p$.A = _v$61);
|
|
11045
|
+
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$98.style.setProperty("padding", _v$62) : _el$98.style.removeProperty("padding"));
|
|
11046
|
+
_v$63 !== _p$.I && className(_el$99, _p$.I = _v$63);
|
|
11047
|
+
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$100.style.setProperty("padding", _v$64) : _el$100.style.removeProperty("padding"));
|
|
11028
11048
|
return _p$;
|
|
11029
11049
|
}, {
|
|
11030
11050
|
e: void 0,
|
|
@@ -11053,7 +11073,7 @@ var QueryDetails = () => {
|
|
|
11053
11073
|
I: void 0,
|
|
11054
11074
|
S: void 0
|
|
11055
11075
|
});
|
|
11056
|
-
return _el$
|
|
11076
|
+
return _el$63;
|
|
11057
11077
|
}
|
|
11058
11078
|
});
|
|
11059
11079
|
};
|
|
@@ -11107,8 +11127,8 @@ var MutationDetails = () => {
|
|
|
11107
11127
|
return activeMutation();
|
|
11108
11128
|
},
|
|
11109
11129
|
get children() {
|
|
11110
|
-
var _el$
|
|
11111
|
-
insert(_el$
|
|
11130
|
+
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;
|
|
11131
|
+
insert(_el$107, createComponent(Show, {
|
|
11112
11132
|
get when() {
|
|
11113
11133
|
return activeMutation().options.mutationKey;
|
|
11114
11134
|
},
|
|
@@ -11117,13 +11137,13 @@ var MutationDetails = () => {
|
|
|
11117
11137
|
return displayValue(activeMutation().options.mutationKey, true);
|
|
11118
11138
|
}
|
|
11119
11139
|
}));
|
|
11120
|
-
insert(_el$
|
|
11140
|
+
insert(_el$108, createComponent(Show, {
|
|
11121
11141
|
get when() {
|
|
11122
11142
|
return color() === "purple";
|
|
11123
11143
|
},
|
|
11124
11144
|
children: "pending"
|
|
11125
11145
|
}), null);
|
|
11126
|
-
insert(_el$
|
|
11146
|
+
insert(_el$108, createComponent(Show, {
|
|
11127
11147
|
get when() {
|
|
11128
11148
|
return color() !== "purple";
|
|
11129
11149
|
},
|
|
@@ -11131,29 +11151,29 @@ var MutationDetails = () => {
|
|
|
11131
11151
|
return status();
|
|
11132
11152
|
}
|
|
11133
11153
|
}), null);
|
|
11134
|
-
insert(_el$
|
|
11135
|
-
insert(_el$
|
|
11154
|
+
insert(_el$111, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
11155
|
+
insert(_el$113, createComponent(Explorer, {
|
|
11136
11156
|
label: "Variables",
|
|
11137
11157
|
defaultExpanded: ["Variables"],
|
|
11138
11158
|
get value() {
|
|
11139
11159
|
return activeMutation().state.variables;
|
|
11140
11160
|
}
|
|
11141
11161
|
}));
|
|
11142
|
-
insert(_el$
|
|
11162
|
+
insert(_el$115, createComponent(Explorer, {
|
|
11143
11163
|
label: "Context",
|
|
11144
11164
|
defaultExpanded: ["Context"],
|
|
11145
11165
|
get value() {
|
|
11146
11166
|
return activeMutation().state.context;
|
|
11147
11167
|
}
|
|
11148
11168
|
}));
|
|
11149
|
-
insert(_el$
|
|
11169
|
+
insert(_el$117, createComponent(Explorer, {
|
|
11150
11170
|
label: "Data",
|
|
11151
11171
|
defaultExpanded: ["Data"],
|
|
11152
11172
|
get value() {
|
|
11153
11173
|
return activeMutation().state.data;
|
|
11154
11174
|
}
|
|
11155
11175
|
}));
|
|
11156
|
-
insert(_el$
|
|
11176
|
+
insert(_el$119, createComponent(Explorer, {
|
|
11157
11177
|
label: "Mutation",
|
|
11158
11178
|
defaultExpanded: ["Mutation"],
|
|
11159
11179
|
get value() {
|
|
@@ -11162,18 +11182,18 @@ var MutationDetails = () => {
|
|
|
11162
11182
|
}));
|
|
11163
11183
|
createRenderEffect((_p$) => {
|
|
11164
11184
|
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];
|
|
11165
|
-
_v$65 !== _p$.e && className(_el$
|
|
11166
|
-
_v$66 !== _p$.t && className(_el$
|
|
11167
|
-
_v$67 !== _p$.a && className(_el$
|
|
11168
|
-
_v$68 !== _p$.o && className(_el$
|
|
11169
|
-
_v$69 !== _p$.i && className(_el$
|
|
11170
|
-
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$
|
|
11171
|
-
_v$71 !== _p$.s && className(_el$
|
|
11172
|
-
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$
|
|
11173
|
-
_v$73 !== _p$.r && className(_el$
|
|
11174
|
-
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$
|
|
11175
|
-
_v$75 !== _p$.l && className(_el$
|
|
11176
|
-
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$
|
|
11185
|
+
_v$65 !== _p$.e && className(_el$102, _p$.e = _v$65);
|
|
11186
|
+
_v$66 !== _p$.t && className(_el$103, _p$.t = _v$66);
|
|
11187
|
+
_v$67 !== _p$.a && className(_el$104, _p$.a = _v$67);
|
|
11188
|
+
_v$68 !== _p$.o && className(_el$108, _p$.o = _v$68);
|
|
11189
|
+
_v$69 !== _p$.i && className(_el$112, _p$.i = _v$69);
|
|
11190
|
+
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$113.style.setProperty("padding", _v$70) : _el$113.style.removeProperty("padding"));
|
|
11191
|
+
_v$71 !== _p$.s && className(_el$114, _p$.s = _v$71);
|
|
11192
|
+
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$115.style.setProperty("padding", _v$72) : _el$115.style.removeProperty("padding"));
|
|
11193
|
+
_v$73 !== _p$.r && className(_el$116, _p$.r = _v$73);
|
|
11194
|
+
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$117.style.setProperty("padding", _v$74) : _el$117.style.removeProperty("padding"));
|
|
11195
|
+
_v$75 !== _p$.l && className(_el$118, _p$.l = _v$75);
|
|
11196
|
+
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$119.style.setProperty("padding", _v$76) : _el$119.style.removeProperty("padding"));
|
|
11177
11197
|
return _p$;
|
|
11178
11198
|
}, {
|
|
11179
11199
|
e: void 0,
|
|
@@ -11189,7 +11209,7 @@ var MutationDetails = () => {
|
|
|
11189
11209
|
l: void 0,
|
|
11190
11210
|
u: void 0
|
|
11191
11211
|
});
|
|
11192
|
-
return _el$
|
|
11212
|
+
return _el$102;
|
|
11193
11213
|
}
|
|
11194
11214
|
});
|
|
11195
11215
|
};
|
|
@@ -11361,6 +11381,32 @@ var stylesFactory2 = (theme, css) => {
|
|
|
11361
11381
|
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11362
11382
|
}
|
|
11363
11383
|
`,
|
|
11384
|
+
parentPanel: css`
|
|
11385
|
+
z-index: 9999;
|
|
11386
|
+
display: flex;
|
|
11387
|
+
height: 100%;
|
|
11388
|
+
gap: ${tokens.size[0.5]};
|
|
11389
|
+
& * {
|
|
11390
|
+
box-sizing: border-box;
|
|
11391
|
+
text-transform: none;
|
|
11392
|
+
}
|
|
11393
|
+
|
|
11394
|
+
& *::-webkit-scrollbar {
|
|
11395
|
+
width: 7px;
|
|
11396
|
+
}
|
|
11397
|
+
|
|
11398
|
+
& *::-webkit-scrollbar-track {
|
|
11399
|
+
background: transparent;
|
|
11400
|
+
}
|
|
11401
|
+
|
|
11402
|
+
& *::-webkit-scrollbar-thumb {
|
|
11403
|
+
background: ${t2(colors.gray[300], colors.darkGray[200])};
|
|
11404
|
+
}
|
|
11405
|
+
|
|
11406
|
+
& *::-webkit-scrollbar-thumb:hover {
|
|
11407
|
+
background: ${t2(colors.gray[400], colors.darkGray[300])};
|
|
11408
|
+
}
|
|
11409
|
+
`,
|
|
11364
11410
|
"devtoolsBtn-position-bottom-right": css`
|
|
11365
11411
|
bottom: 12px;
|
|
11366
11412
|
right: 12px;
|
|
@@ -12333,4 +12379,4 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12333
12379
|
*)
|
|
12334
12380
|
*/
|
|
12335
12381
|
|
|
12336
|
-
export {
|
|
12382
|
+
export { ContentView, Devtools, ParentPanel, PiPProvider, QueryDevtoolsContext, THEME_PREFERENCE, ThemeContext, createLocalStorage };
|