@tanstack/query-devtools 5.76.0 → 5.80.11
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/{6BZD2SY2.js → HH7B3BHX.js} +1 -1
- package/build/DevtoolsComponent/{2ZEF3XTO.js → I3HPI4QX.js} +1 -1
- package/build/DevtoolsPanelComponent/{4GTSBKBA.js → CXEL7IU7.js} +1 -1
- package/build/DevtoolsPanelComponent/{G73NX4V5.js → JZI2RDCT.js} +1 -1
- package/build/chunk/{U3MG367F.js → HASRA6WW.js} +189 -166
- package/build/chunk/{YBOVUDTV.js → L7Z3HDK6.js} +189 -166
- package/build/dev.cjs +190 -167
- package/build/dev.js +2 -2
- package/build/index.cjs +190 -167
- package/build/index.js +2 -2
- package/package.json +2 -2
- package/src/Devtools.tsx +25 -0
package/build/dev.cjs
CHANGED
|
@@ -12900,7 +12900,7 @@ var init_Explorer = __esm({
|
|
|
12900
12900
|
});
|
|
12901
12901
|
|
|
12902
12902
|
// src/Devtools.tsx
|
|
12903
|
-
var _tmpl$25, _tmpl$26, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$03, _tmpl$111, _tmpl$103, _tmpl$112, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$262, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, _tmpl$322, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, offline, setOffline, Devtools, PiPPanel, ParentPanel, DraggablePanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, DEV_TOOLS_EVENT, sendDevToolsEvent, stylesFactory2, lightStyles2, darkStyles2;
|
|
12903
|
+
var _tmpl$25, _tmpl$26, _tmpl$33, _tmpl$43, _tmpl$53, _tmpl$63, _tmpl$73, _tmpl$83, _tmpl$93, _tmpl$03, _tmpl$111, _tmpl$103, _tmpl$112, _tmpl$122, _tmpl$132, _tmpl$142, _tmpl$152, _tmpl$162, _tmpl$172, _tmpl$182, _tmpl$192, _tmpl$202, _tmpl$212, _tmpl$222, _tmpl$232, _tmpl$242, _tmpl$252, _tmpl$262, _tmpl$27, _tmpl$28, _tmpl$29, _tmpl$30, _tmpl$31, _tmpl$322, _tmpl$332, selectedQueryHash, setSelectedQueryHash, selectedMutationId, setSelectedMutationId, panelWidth, setPanelWidth, offline, setOffline, Devtools, PiPPanel, ParentPanel, DraggablePanel, ContentView, QueryRow, MutationRow, QueryStatusCount, MutationStatusCount, QueryStatus, QueryDetails, MutationDetails, queryCacheMap, setupQueryCacheSubscription, createSubscribeToQueryCacheBatcher, mutationCacheMap, setupMutationCacheSubscription, createSubscribeToMutationCacheBatcher, DEV_TOOLS_EVENT, sendDevToolsEvent, stylesFactory2, lightStyles2, darkStyles2;
|
|
12904
12904
|
var init_Devtools = __esm({
|
|
12905
12905
|
"src/Devtools.tsx"() {
|
|
12906
12906
|
init_web();
|
|
@@ -12952,17 +12952,18 @@ var init_Devtools = __esm({
|
|
|
12952
12952
|
_tmpl$192 = /* @__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>`);
|
|
12953
12953
|
_tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
12954
12954
|
_tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
12955
|
-
_tmpl$222 = /* @__PURE__ */ template(`<
|
|
12956
|
-
_tmpl$232 = /* @__PURE__ */ template(`<div
|
|
12957
|
-
_tmpl$242 = /* @__PURE__ */ template(`<
|
|
12958
|
-
_tmpl$252 = /* @__PURE__ */ template(`<
|
|
12959
|
-
_tmpl$262 = /* @__PURE__ */ template(`<button><span></span
|
|
12960
|
-
_tmpl$27 = /* @__PURE__ */ template(`<
|
|
12961
|
-
_tmpl$28 = /* @__PURE__ */ template(`<div
|
|
12962
|
-
_tmpl$29 = /* @__PURE__ */ template(`<
|
|
12963
|
-
_tmpl$30 = /* @__PURE__ */ template(`<
|
|
12964
|
-
_tmpl$31 = /* @__PURE__ */ template(`<
|
|
12965
|
-
_tmpl$322 = /* @__PURE__ */ template(`<
|
|
12955
|
+
_tmpl$222 = /* @__PURE__ */ template(`<div class=tsqd-query-static-indicator>static`);
|
|
12956
|
+
_tmpl$232 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
12957
|
+
_tmpl$242 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
12958
|
+
_tmpl$252 = /* @__PURE__ */ template(`<span>`);
|
|
12959
|
+
_tmpl$262 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
12960
|
+
_tmpl$27 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
12961
|
+
_tmpl$28 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
12962
|
+
_tmpl$29 = /* @__PURE__ */ template(`<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">`);
|
|
12963
|
+
_tmpl$30 = /* @__PURE__ */ template(`<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save`);
|
|
12964
|
+
_tmpl$31 = /* @__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 </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
|
|
12965
|
+
_tmpl$322 = /* @__PURE__ */ template(`<option>`);
|
|
12966
|
+
_tmpl$332 = /* @__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">`);
|
|
12966
12967
|
[selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
12967
12968
|
[selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
12968
12969
|
[panelWidth, setPanelWidth] = createSignal(0);
|
|
@@ -13885,6 +13886,9 @@ var init_Devtools = __esm({
|
|
|
13885
13886
|
const isDisabled = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
|
|
13886
13887
|
queryKey: props.query.queryKey
|
|
13887
13888
|
})?.isDisabled() ?? false, true, (e2) => e2.query.queryHash === props.query.queryHash);
|
|
13889
|
+
const isStatic = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
|
|
13890
|
+
queryKey: props.query.queryKey
|
|
13891
|
+
})?.isStatic() ?? false, true, (e2) => e2.query.queryHash === props.query.queryHash);
|
|
13888
13892
|
const isStale = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
|
|
13889
13893
|
queryKey: props.query.queryKey
|
|
13890
13894
|
})?.isStale() ?? false, true, (e2) => e2.query.queryHash === props.query.queryHash);
|
|
@@ -13913,7 +13917,7 @@ var init_Devtools = __esm({
|
|
|
13913
13917
|
return queryState();
|
|
13914
13918
|
},
|
|
13915
13919
|
get children() {
|
|
13916
|
-
var _el$47 = _tmpl$
|
|
13920
|
+
var _el$47 = _tmpl$232(), _el$48 = _el$47.firstChild, _el$49 = _el$48.nextSibling;
|
|
13917
13921
|
_el$47.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
13918
13922
|
insert(_el$48, observers);
|
|
13919
13923
|
insert(_el$49, () => props.query.queryHash);
|
|
@@ -13925,6 +13929,14 @@ var init_Devtools = __esm({
|
|
|
13925
13929
|
return _tmpl$212();
|
|
13926
13930
|
}
|
|
13927
13931
|
}), null);
|
|
13932
|
+
insert(_el$47, createComponent(Show, {
|
|
13933
|
+
get when() {
|
|
13934
|
+
return isStatic();
|
|
13935
|
+
},
|
|
13936
|
+
get children() {
|
|
13937
|
+
return _tmpl$222();
|
|
13938
|
+
}
|
|
13939
|
+
}), null);
|
|
13928
13940
|
createRenderEffect((_p$) => {
|
|
13929
13941
|
var _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
13930
13942
|
_v$24 !== _p$.e && className(_el$47, _p$.e = _v$24);
|
|
@@ -13991,11 +14003,11 @@ var init_Devtools = __esm({
|
|
|
13991
14003
|
return mutationState();
|
|
13992
14004
|
},
|
|
13993
14005
|
get children() {
|
|
13994
|
-
var _el$
|
|
13995
|
-
_el$
|
|
14006
|
+
var _el$52 = _tmpl$232(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
|
|
14007
|
+
_el$52.$$click = () => {
|
|
13996
14008
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
13997
14009
|
};
|
|
13998
|
-
insert(_el$
|
|
14010
|
+
insert(_el$53, createComponent(Show, {
|
|
13999
14011
|
get when() {
|
|
14000
14012
|
return color() === "purple";
|
|
14001
14013
|
},
|
|
@@ -14003,7 +14015,7 @@ var init_Devtools = __esm({
|
|
|
14003
14015
|
return createComponent(PauseCircle, {});
|
|
14004
14016
|
}
|
|
14005
14017
|
}), null);
|
|
14006
|
-
insert(_el$
|
|
14018
|
+
insert(_el$53, createComponent(Show, {
|
|
14007
14019
|
get when() {
|
|
14008
14020
|
return color() === "green";
|
|
14009
14021
|
},
|
|
@@ -14011,7 +14023,7 @@ var init_Devtools = __esm({
|
|
|
14011
14023
|
return createComponent(CheckCircle, {});
|
|
14012
14024
|
}
|
|
14013
14025
|
}), null);
|
|
14014
|
-
insert(_el$
|
|
14026
|
+
insert(_el$53, createComponent(Show, {
|
|
14015
14027
|
get when() {
|
|
14016
14028
|
return color() === "red";
|
|
14017
14029
|
},
|
|
@@ -14019,7 +14031,7 @@ var init_Devtools = __esm({
|
|
|
14019
14031
|
return createComponent(XCircle, {});
|
|
14020
14032
|
}
|
|
14021
14033
|
}), null);
|
|
14022
|
-
insert(_el$
|
|
14034
|
+
insert(_el$53, createComponent(Show, {
|
|
14023
14035
|
get when() {
|
|
14024
14036
|
return color() === "yellow";
|
|
14025
14037
|
},
|
|
@@ -14027,7 +14039,7 @@ var init_Devtools = __esm({
|
|
|
14027
14039
|
return createComponent(LoadingCircle, {});
|
|
14028
14040
|
}
|
|
14029
14041
|
}), null);
|
|
14030
|
-
insert(_el$
|
|
14042
|
+
insert(_el$54, createComponent(Show, {
|
|
14031
14043
|
get when() {
|
|
14032
14044
|
return props.mutation.options.mutationKey;
|
|
14033
14045
|
},
|
|
@@ -14035,19 +14047,19 @@ var init_Devtools = __esm({
|
|
|
14035
14047
|
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
14036
14048
|
}
|
|
14037
14049
|
}), null);
|
|
14038
|
-
insert(_el$
|
|
14050
|
+
insert(_el$54, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
14039
14051
|
createRenderEffect((_p$) => {
|
|
14040
14052
|
var _v$27 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$28 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$29 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
14041
|
-
_v$27 !== _p$.e && className(_el$
|
|
14042
|
-
_v$28 !== _p$.t && setAttribute(_el$
|
|
14043
|
-
_v$29 !== _p$.a && className(_el$
|
|
14053
|
+
_v$27 !== _p$.e && className(_el$52, _p$.e = _v$27);
|
|
14054
|
+
_v$28 !== _p$.t && setAttribute(_el$52, "aria-label", _p$.t = _v$28);
|
|
14055
|
+
_v$29 !== _p$.a && className(_el$53, _p$.a = _v$29);
|
|
14044
14056
|
return _p$;
|
|
14045
14057
|
}, {
|
|
14046
14058
|
e: void 0,
|
|
14047
14059
|
t: void 0,
|
|
14048
14060
|
a: void 0
|
|
14049
14061
|
});
|
|
14050
|
-
return _el$
|
|
14062
|
+
return _el$52;
|
|
14051
14063
|
}
|
|
14052
14064
|
});
|
|
14053
14065
|
};
|
|
@@ -14065,44 +14077,44 @@ var init_Devtools = __esm({
|
|
|
14065
14077
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
14066
14078
|
});
|
|
14067
14079
|
return (() => {
|
|
14068
|
-
var _el$
|
|
14069
|
-
insert(_el$
|
|
14080
|
+
var _el$55 = _tmpl$26();
|
|
14081
|
+
insert(_el$55, createComponent(QueryStatus, {
|
|
14070
14082
|
label: "Fresh",
|
|
14071
14083
|
color: "green",
|
|
14072
14084
|
get count() {
|
|
14073
14085
|
return fresh();
|
|
14074
14086
|
}
|
|
14075
14087
|
}), null);
|
|
14076
|
-
insert(_el$
|
|
14088
|
+
insert(_el$55, createComponent(QueryStatus, {
|
|
14077
14089
|
label: "Fetching",
|
|
14078
14090
|
color: "blue",
|
|
14079
14091
|
get count() {
|
|
14080
14092
|
return fetching();
|
|
14081
14093
|
}
|
|
14082
14094
|
}), null);
|
|
14083
|
-
insert(_el$
|
|
14095
|
+
insert(_el$55, createComponent(QueryStatus, {
|
|
14084
14096
|
label: "Paused",
|
|
14085
14097
|
color: "purple",
|
|
14086
14098
|
get count() {
|
|
14087
14099
|
return paused();
|
|
14088
14100
|
}
|
|
14089
14101
|
}), null);
|
|
14090
|
-
insert(_el$
|
|
14102
|
+
insert(_el$55, createComponent(QueryStatus, {
|
|
14091
14103
|
label: "Stale",
|
|
14092
14104
|
color: "yellow",
|
|
14093
14105
|
get count() {
|
|
14094
14106
|
return stale();
|
|
14095
14107
|
}
|
|
14096
14108
|
}), null);
|
|
14097
|
-
insert(_el$
|
|
14109
|
+
insert(_el$55, createComponent(QueryStatus, {
|
|
14098
14110
|
label: "Inactive",
|
|
14099
14111
|
color: "gray",
|
|
14100
14112
|
get count() {
|
|
14101
14113
|
return inactive();
|
|
14102
14114
|
}
|
|
14103
14115
|
}), null);
|
|
14104
|
-
createRenderEffect(() => className(_el$
|
|
14105
|
-
return _el$
|
|
14116
|
+
createRenderEffect(() => className(_el$55, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
14117
|
+
return _el$55;
|
|
14106
14118
|
})();
|
|
14107
14119
|
};
|
|
14108
14120
|
MutationStatusCount = () => {
|
|
@@ -14130,37 +14142,37 @@ var init_Devtools = __esm({
|
|
|
14130
14142
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
14131
14143
|
});
|
|
14132
14144
|
return (() => {
|
|
14133
|
-
var _el$
|
|
14134
|
-
insert(_el$
|
|
14145
|
+
var _el$56 = _tmpl$26();
|
|
14146
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14135
14147
|
label: "Paused",
|
|
14136
14148
|
color: "purple",
|
|
14137
14149
|
get count() {
|
|
14138
14150
|
return paused();
|
|
14139
14151
|
}
|
|
14140
14152
|
}), null);
|
|
14141
|
-
insert(_el$
|
|
14153
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14142
14154
|
label: "Pending",
|
|
14143
14155
|
color: "yellow",
|
|
14144
14156
|
get count() {
|
|
14145
14157
|
return pending();
|
|
14146
14158
|
}
|
|
14147
14159
|
}), null);
|
|
14148
|
-
insert(_el$
|
|
14160
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14149
14161
|
label: "Success",
|
|
14150
14162
|
color: "green",
|
|
14151
14163
|
get count() {
|
|
14152
14164
|
return success();
|
|
14153
14165
|
}
|
|
14154
14166
|
}), null);
|
|
14155
|
-
insert(_el$
|
|
14167
|
+
insert(_el$56, createComponent(QueryStatus, {
|
|
14156
14168
|
label: "Error",
|
|
14157
14169
|
color: "red",
|
|
14158
14170
|
get count() {
|
|
14159
14171
|
return error();
|
|
14160
14172
|
}
|
|
14161
14173
|
}), null);
|
|
14162
|
-
createRenderEffect(() => className(_el$
|
|
14163
|
-
return _el$
|
|
14174
|
+
createRenderEffect(() => className(_el$56, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
14175
|
+
return _el$56;
|
|
14164
14176
|
})();
|
|
14165
14177
|
};
|
|
14166
14178
|
QueryStatus = (props) => {
|
|
@@ -14191,17 +14203,17 @@ var init_Devtools = __esm({
|
|
|
14191
14203
|
return true;
|
|
14192
14204
|
});
|
|
14193
14205
|
return (() => {
|
|
14194
|
-
var _el$
|
|
14206
|
+
var _el$57 = _tmpl$262(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
|
|
14195
14207
|
var _ref$5 = tagRef;
|
|
14196
|
-
typeof _ref$5 === "function" ? use(_ref$5, _el$
|
|
14197
|
-
_el$
|
|
14208
|
+
typeof _ref$5 === "function" ? use(_ref$5, _el$57) : tagRef = _el$57;
|
|
14209
|
+
_el$57.addEventListener("mouseleave", () => {
|
|
14198
14210
|
setMouseOver(false);
|
|
14199
14211
|
setFocused(false);
|
|
14200
14212
|
});
|
|
14201
|
-
_el$
|
|
14202
|
-
_el$
|
|
14203
|
-
_el$
|
|
14204
|
-
spread(_el$
|
|
14213
|
+
_el$57.addEventListener("mouseenter", () => setMouseOver(true));
|
|
14214
|
+
_el$57.addEventListener("blur", () => setFocused(false));
|
|
14215
|
+
_el$57.addEventListener("focus", () => setFocused(true));
|
|
14216
|
+
spread(_el$57, mergeProps({
|
|
14205
14217
|
get disabled() {
|
|
14206
14218
|
return showLabel();
|
|
14207
14219
|
},
|
|
@@ -14216,29 +14228,29 @@ var init_Devtools = __esm({
|
|
|
14216
14228
|
}, () => mouseOver() || focused() ? {
|
|
14217
14229
|
"aria-describedby": "tsqd-status-tooltip"
|
|
14218
14230
|
} : {}), false, true);
|
|
14219
|
-
insert(_el$
|
|
14231
|
+
insert(_el$57, createComponent(Show, {
|
|
14220
14232
|
get when() {
|
|
14221
14233
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
14222
14234
|
},
|
|
14223
14235
|
get children() {
|
|
14224
|
-
var _el$
|
|
14225
|
-
insert(_el$
|
|
14226
|
-
createRenderEffect(() => className(_el$
|
|
14227
|
-
return _el$
|
|
14236
|
+
var _el$58 = _tmpl$242();
|
|
14237
|
+
insert(_el$58, () => props.label);
|
|
14238
|
+
createRenderEffect(() => className(_el$58, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
14239
|
+
return _el$58;
|
|
14228
14240
|
}
|
|
14229
|
-
}), _el$
|
|
14230
|
-
insert(_el$
|
|
14241
|
+
}), _el$59);
|
|
14242
|
+
insert(_el$57, createComponent(Show, {
|
|
14231
14243
|
get when() {
|
|
14232
14244
|
return showLabel();
|
|
14233
14245
|
},
|
|
14234
14246
|
get children() {
|
|
14235
|
-
var _el$
|
|
14236
|
-
insert(_el$
|
|
14237
|
-
createRenderEffect(() => className(_el$
|
|
14238
|
-
return _el$
|
|
14247
|
+
var _el$60 = _tmpl$252();
|
|
14248
|
+
insert(_el$60, () => props.label);
|
|
14249
|
+
createRenderEffect(() => className(_el$60, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
14250
|
+
return _el$60;
|
|
14239
14251
|
}
|
|
14240
|
-
}), _el$
|
|
14241
|
-
insert(_el$
|
|
14252
|
+
}), _el$61);
|
|
14253
|
+
insert(_el$61, () => props.count);
|
|
14242
14254
|
createRenderEffect((_p$) => {
|
|
14243
14255
|
var _v$30 = clsx(css`
|
|
14244
14256
|
width: ${tokens.size[1.5]};
|
|
@@ -14249,14 +14261,14 @@ var init_Devtools = __esm({
|
|
|
14249
14261
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
14250
14262
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
14251
14263
|
`, "tsqd-query-status-tag-count");
|
|
14252
|
-
_v$30 !== _p$.e && className(_el$
|
|
14253
|
-
_v$31 !== _p$.t && className(_el$
|
|
14264
|
+
_v$30 !== _p$.e && className(_el$59, _p$.e = _v$30);
|
|
14265
|
+
_v$31 !== _p$.t && className(_el$61, _p$.t = _v$31);
|
|
14254
14266
|
return _p$;
|
|
14255
14267
|
}, {
|
|
14256
14268
|
e: void 0,
|
|
14257
14269
|
t: void 0
|
|
14258
14270
|
});
|
|
14259
|
-
return _el$
|
|
14271
|
+
return _el$57;
|
|
14260
14272
|
})();
|
|
14261
14273
|
};
|
|
14262
14274
|
QueryDetails = () => {
|
|
@@ -14373,27 +14385,27 @@ var init_Devtools = __esm({
|
|
|
14373
14385
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
14374
14386
|
},
|
|
14375
14387
|
get children() {
|
|
14376
|
-
var _el$
|
|
14377
|
-
insert(_el$
|
|
14378
|
-
insert(_el$
|
|
14379
|
-
insert(_el$
|
|
14380
|
-
insert(_el$
|
|
14381
|
-
_el$
|
|
14382
|
-
_el$
|
|
14388
|
+
var _el$62 = _tmpl$31(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling; _el$96.firstChild; var _el$106 = _el$96.nextSibling, _el$107 = _el$106.nextSibling;
|
|
14389
|
+
insert(_el$67, () => displayValue(activeQuery().queryKey, true));
|
|
14390
|
+
insert(_el$68, statusLabel);
|
|
14391
|
+
insert(_el$71, observerCount);
|
|
14392
|
+
insert(_el$74, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
14393
|
+
_el$77.$$click = handleRefetch;
|
|
14394
|
+
_el$79.$$click = () => {
|
|
14383
14395
|
sendDevToolsEvent({
|
|
14384
14396
|
type: "INVALIDATE",
|
|
14385
14397
|
queryHash: activeQuery()?.queryHash
|
|
14386
14398
|
});
|
|
14387
14399
|
queryClient.invalidateQueries(activeQuery());
|
|
14388
14400
|
};
|
|
14389
|
-
_el$
|
|
14401
|
+
_el$81.$$click = () => {
|
|
14390
14402
|
sendDevToolsEvent({
|
|
14391
14403
|
type: "RESET",
|
|
14392
14404
|
queryHash: activeQuery()?.queryHash
|
|
14393
14405
|
});
|
|
14394
14406
|
queryClient.resetQueries(activeQuery());
|
|
14395
14407
|
};
|
|
14396
|
-
_el$
|
|
14408
|
+
_el$83.$$click = () => {
|
|
14397
14409
|
sendDevToolsEvent({
|
|
14398
14410
|
type: "REMOVE",
|
|
14399
14411
|
queryHash: activeQuery()?.queryHash
|
|
@@ -14401,7 +14413,7 @@ var init_Devtools = __esm({
|
|
|
14401
14413
|
queryClient.removeQueries(activeQuery());
|
|
14402
14414
|
setSelectedQueryHash(null);
|
|
14403
14415
|
};
|
|
14404
|
-
_el$
|
|
14416
|
+
_el$85.$$click = () => {
|
|
14405
14417
|
if (activeQuery()?.state.data === void 0) {
|
|
14406
14418
|
setRestoringLoading(true);
|
|
14407
14419
|
restoreQueryAfterLoadingOrError();
|
|
@@ -14431,14 +14443,14 @@ var init_Devtools = __esm({
|
|
|
14431
14443
|
});
|
|
14432
14444
|
}
|
|
14433
14445
|
};
|
|
14434
|
-
insert(_el$
|
|
14435
|
-
insert(_el$
|
|
14446
|
+
insert(_el$85, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$87);
|
|
14447
|
+
insert(_el$76, createComponent(Show, {
|
|
14436
14448
|
get when() {
|
|
14437
14449
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
14438
14450
|
},
|
|
14439
14451
|
get children() {
|
|
14440
|
-
var _el$
|
|
14441
|
-
_el$
|
|
14452
|
+
var _el$88 = _tmpl$27(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
|
|
14453
|
+
_el$88.$$click = () => {
|
|
14442
14454
|
if (!activeQuery().state.error) {
|
|
14443
14455
|
triggerError();
|
|
14444
14456
|
} else {
|
|
@@ -14449,71 +14461,71 @@ var init_Devtools = __esm({
|
|
|
14449
14461
|
queryClient.resetQueries(activeQuery());
|
|
14450
14462
|
}
|
|
14451
14463
|
};
|
|
14452
|
-
insert(_el$
|
|
14464
|
+
insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
|
|
14453
14465
|
createRenderEffect((_p$) => {
|
|
14454
14466
|
var _v$32 = clsx(css`
|
|
14455
14467
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
14456
14468
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$33 = queryStatus() === "pending", _v$34 = css`
|
|
14457
14469
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
14458
14470
|
`;
|
|
14459
|
-
_v$32 !== _p$.e && className(_el$
|
|
14460
|
-
_v$33 !== _p$.t && (_el$
|
|
14461
|
-
_v$34 !== _p$.a && className(_el$
|
|
14471
|
+
_v$32 !== _p$.e && className(_el$88, _p$.e = _v$32);
|
|
14472
|
+
_v$33 !== _p$.t && (_el$88.disabled = _p$.t = _v$33);
|
|
14473
|
+
_v$34 !== _p$.a && className(_el$89, _p$.a = _v$34);
|
|
14462
14474
|
return _p$;
|
|
14463
14475
|
}, {
|
|
14464
14476
|
e: void 0,
|
|
14465
14477
|
t: void 0,
|
|
14466
14478
|
a: void 0
|
|
14467
14479
|
});
|
|
14468
|
-
return _el$
|
|
14480
|
+
return _el$88;
|
|
14469
14481
|
}
|
|
14470
14482
|
}), null);
|
|
14471
|
-
insert(_el$
|
|
14483
|
+
insert(_el$76, createComponent(Show, {
|
|
14472
14484
|
get when() {
|
|
14473
14485
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
14474
14486
|
},
|
|
14475
14487
|
get children() {
|
|
14476
|
-
var _el$
|
|
14477
|
-
_el$
|
|
14488
|
+
var _el$91 = _tmpl$28(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
|
|
14489
|
+
_el$94.addEventListener("change", (e2) => {
|
|
14478
14490
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
14479
14491
|
triggerError(errorType);
|
|
14480
14492
|
});
|
|
14481
|
-
insert(_el$
|
|
14493
|
+
insert(_el$94, createComponent(For, {
|
|
14482
14494
|
get each() {
|
|
14483
14495
|
return errorTypes();
|
|
14484
14496
|
},
|
|
14485
14497
|
children: (errorType) => (() => {
|
|
14486
|
-
var _el$
|
|
14487
|
-
insert(_el$
|
|
14488
|
-
createRenderEffect(() => _el$
|
|
14489
|
-
return _el$
|
|
14498
|
+
var _el$108 = _tmpl$322();
|
|
14499
|
+
insert(_el$108, () => errorType.name);
|
|
14500
|
+
createRenderEffect(() => _el$108.value = errorType.name);
|
|
14501
|
+
return _el$108;
|
|
14490
14502
|
})()
|
|
14491
14503
|
}), null);
|
|
14492
|
-
insert(_el$
|
|
14504
|
+
insert(_el$91, createComponent(ChevronDown, {}), null);
|
|
14493
14505
|
createRenderEffect((_p$) => {
|
|
14494
14506
|
var _v$35 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$36 = css`
|
|
14495
14507
|
background-color: ${tokens.colors.red[400]};
|
|
14496
14508
|
`, _v$37 = queryStatus() === "pending";
|
|
14497
|
-
_v$35 !== _p$.e && className(_el$
|
|
14498
|
-
_v$36 !== _p$.t && className(_el$
|
|
14499
|
-
_v$37 !== _p$.a && (_el$
|
|
14509
|
+
_v$35 !== _p$.e && className(_el$91, _p$.e = _v$35);
|
|
14510
|
+
_v$36 !== _p$.t && className(_el$92, _p$.t = _v$36);
|
|
14511
|
+
_v$37 !== _p$.a && (_el$94.disabled = _p$.a = _v$37);
|
|
14500
14512
|
return _p$;
|
|
14501
14513
|
}, {
|
|
14502
14514
|
e: void 0,
|
|
14503
14515
|
t: void 0,
|
|
14504
14516
|
a: void 0
|
|
14505
14517
|
});
|
|
14506
|
-
return _el$
|
|
14518
|
+
return _el$91;
|
|
14507
14519
|
}
|
|
14508
14520
|
}), null);
|
|
14509
|
-
insert(_el$
|
|
14510
|
-
insert(_el$
|
|
14521
|
+
insert(_el$96, () => dataMode() === "view" ? "Explorer" : "Editor", null);
|
|
14522
|
+
insert(_el$62, createComponent(Show, {
|
|
14511
14523
|
get when() {
|
|
14512
14524
|
return dataMode() === "view";
|
|
14513
14525
|
},
|
|
14514
14526
|
get children() {
|
|
14515
|
-
var _el$
|
|
14516
|
-
insert(_el$
|
|
14527
|
+
var _el$98 = _tmpl$29();
|
|
14528
|
+
insert(_el$98, createComponent(Explorer, {
|
|
14517
14529
|
label: "Data",
|
|
14518
14530
|
defaultExpanded: ["Data"],
|
|
14519
14531
|
get value() {
|
|
@@ -14525,17 +14537,17 @@ var init_Devtools = __esm({
|
|
|
14525
14537
|
return activeQuery();
|
|
14526
14538
|
}
|
|
14527
14539
|
}));
|
|
14528
|
-
createRenderEffect((_$p) => (_$p = tokens.size[2]) != null ? _el$
|
|
14529
|
-
return _el$
|
|
14540
|
+
createRenderEffect((_$p) => (_$p = tokens.size[2]) != null ? _el$98.style.setProperty("padding", _$p) : _el$98.style.removeProperty("padding"));
|
|
14541
|
+
return _el$98;
|
|
14530
14542
|
}
|
|
14531
|
-
}), _el$
|
|
14532
|
-
insert(_el$
|
|
14543
|
+
}), _el$106);
|
|
14544
|
+
insert(_el$62, createComponent(Show, {
|
|
14533
14545
|
get when() {
|
|
14534
14546
|
return dataMode() === "edit";
|
|
14535
14547
|
},
|
|
14536
14548
|
get children() {
|
|
14537
|
-
var _el$
|
|
14538
|
-
_el$
|
|
14549
|
+
var _el$99 = _tmpl$30(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.nextSibling;
|
|
14550
|
+
_el$99.addEventListener("submit", (e2) => {
|
|
14539
14551
|
e2.preventDefault();
|
|
14540
14552
|
const formData = new FormData(e2.currentTarget);
|
|
14541
14553
|
const data = formData.get("data");
|
|
@@ -14550,23 +14562,23 @@ var init_Devtools = __esm({
|
|
|
14550
14562
|
setDataEditError(true);
|
|
14551
14563
|
}
|
|
14552
14564
|
});
|
|
14553
|
-
_el$
|
|
14554
|
-
insert(_el$
|
|
14555
|
-
_el$
|
|
14565
|
+
_el$100.addEventListener("focus", () => setDataEditError(false));
|
|
14566
|
+
insert(_el$102, () => dataEditError() ? "Invalid Value" : "");
|
|
14567
|
+
_el$104.$$click = () => setDataMode("view");
|
|
14556
14568
|
createRenderEffect((_p$) => {
|
|
14557
14569
|
var _v$38 = clsx(styles().devtoolsEditForm, "tsqd-query-details-data-editor"), _v$39 = styles().devtoolsEditTextarea, _v$40 = dataEditError(), _v$41 = styles().devtoolsEditFormActions, _v$42 = styles().devtoolsEditFormError, _v$43 = styles().devtoolsEditFormActionContainer, _v$44 = clsx(styles().devtoolsEditFormAction, css`
|
|
14558
14570
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
14559
14571
|
`), _v$45 = clsx(styles().devtoolsEditFormAction, css`
|
|
14560
14572
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
14561
14573
|
`);
|
|
14562
|
-
_v$38 !== _p$.e && className(_el$
|
|
14563
|
-
_v$39 !== _p$.t && className(_el$
|
|
14564
|
-
_v$40 !== _p$.a && setAttribute(_el$
|
|
14565
|
-
_v$41 !== _p$.o && className(_el$
|
|
14566
|
-
_v$42 !== _p$.i && className(_el$
|
|
14567
|
-
_v$43 !== _p$.n && className(_el$
|
|
14568
|
-
_v$44 !== _p$.s && className(_el$
|
|
14569
|
-
_v$45 !== _p$.h && className(_el$
|
|
14574
|
+
_v$38 !== _p$.e && className(_el$99, _p$.e = _v$38);
|
|
14575
|
+
_v$39 !== _p$.t && className(_el$100, _p$.t = _v$39);
|
|
14576
|
+
_v$40 !== _p$.a && setAttribute(_el$100, "data-error", _p$.a = _v$40);
|
|
14577
|
+
_v$41 !== _p$.o && className(_el$101, _p$.o = _v$41);
|
|
14578
|
+
_v$42 !== _p$.i && className(_el$102, _p$.i = _v$42);
|
|
14579
|
+
_v$43 !== _p$.n && className(_el$103, _p$.n = _v$43);
|
|
14580
|
+
_v$44 !== _p$.s && className(_el$104, _p$.s = _v$44);
|
|
14581
|
+
_v$45 !== _p$.h && className(_el$105, _p$.h = _v$45);
|
|
14570
14582
|
return _p$;
|
|
14571
14583
|
}, {
|
|
14572
14584
|
e: void 0,
|
|
@@ -14578,11 +14590,11 @@ var init_Devtools = __esm({
|
|
|
14578
14590
|
s: void 0,
|
|
14579
14591
|
h: void 0
|
|
14580
14592
|
});
|
|
14581
|
-
createRenderEffect(() => _el$
|
|
14582
|
-
return _el$
|
|
14593
|
+
createRenderEffect(() => _el$100.value = JSON.stringify(activeQueryStateData(), null, 2));
|
|
14594
|
+
return _el$99;
|
|
14583
14595
|
}
|
|
14584
|
-
}), _el$
|
|
14585
|
-
insert(_el$
|
|
14596
|
+
}), _el$106);
|
|
14597
|
+
insert(_el$107, createComponent(Explorer, {
|
|
14586
14598
|
label: "Query",
|
|
14587
14599
|
defaultExpanded: ["Query", "queryKey"],
|
|
14588
14600
|
get value() {
|
|
@@ -14611,30 +14623,30 @@ var init_Devtools = __esm({
|
|
|
14611
14623
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$65 = restoringLoading(), _v$66 = css`
|
|
14612
14624
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
14613
14625
|
`, _v$67 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = tokens.size[2];
|
|
14614
|
-
_v$46 !== _p$.e && className(_el$
|
|
14615
|
-
_v$47 !== _p$.t && className(_el$
|
|
14616
|
-
_v$48 !== _p$.a && className(_el$
|
|
14617
|
-
_v$49 !== _p$.o && className(_el$
|
|
14618
|
-
_v$50 !== _p$.i && className(_el$
|
|
14619
|
-
_v$51 !== _p$.n && className(_el$
|
|
14620
|
-
_v$52 !== _p$.s && className(_el$
|
|
14621
|
-
_v$53 !== _p$.h && (_el$
|
|
14622
|
-
_v$54 !== _p$.r && className(_el$
|
|
14623
|
-
_v$55 !== _p$.d && className(_el$
|
|
14624
|
-
_v$56 !== _p$.l && (_el$
|
|
14625
|
-
_v$57 !== _p$.u && className(_el$
|
|
14626
|
-
_v$58 !== _p$.c && className(_el$
|
|
14627
|
-
_v$59 !== _p$.w && (_el$
|
|
14628
|
-
_v$60 !== _p$.m && className(_el$
|
|
14629
|
-
_v$61 !== _p$.f && className(_el$
|
|
14630
|
-
_v$62 !== _p$.y && (_el$
|
|
14631
|
-
_v$63 !== _p$.g && className(_el$
|
|
14632
|
-
_v$64 !== _p$.p && className(_el$
|
|
14633
|
-
_v$65 !== _p$.b && (_el$
|
|
14634
|
-
_v$66 !== _p$.T && className(_el$
|
|
14635
|
-
_v$67 !== _p$.A && className(_el$
|
|
14636
|
-
_v$68 !== _p$.O && className(_el$
|
|
14637
|
-
_v$69 !== _p$.I && ((_p$.I = _v$69) != null ? _el$
|
|
14626
|
+
_v$46 !== _p$.e && className(_el$62, _p$.e = _v$46);
|
|
14627
|
+
_v$47 !== _p$.t && className(_el$63, _p$.t = _v$47);
|
|
14628
|
+
_v$48 !== _p$.a && className(_el$64, _p$.a = _v$48);
|
|
14629
|
+
_v$49 !== _p$.o && className(_el$68, _p$.o = _v$49);
|
|
14630
|
+
_v$50 !== _p$.i && className(_el$75, _p$.i = _v$50);
|
|
14631
|
+
_v$51 !== _p$.n && className(_el$76, _p$.n = _v$51);
|
|
14632
|
+
_v$52 !== _p$.s && className(_el$77, _p$.s = _v$52);
|
|
14633
|
+
_v$53 !== _p$.h && (_el$77.disabled = _p$.h = _v$53);
|
|
14634
|
+
_v$54 !== _p$.r && className(_el$78, _p$.r = _v$54);
|
|
14635
|
+
_v$55 !== _p$.d && className(_el$79, _p$.d = _v$55);
|
|
14636
|
+
_v$56 !== _p$.l && (_el$79.disabled = _p$.l = _v$56);
|
|
14637
|
+
_v$57 !== _p$.u && className(_el$80, _p$.u = _v$57);
|
|
14638
|
+
_v$58 !== _p$.c && className(_el$81, _p$.c = _v$58);
|
|
14639
|
+
_v$59 !== _p$.w && (_el$81.disabled = _p$.w = _v$59);
|
|
14640
|
+
_v$60 !== _p$.m && className(_el$82, _p$.m = _v$60);
|
|
14641
|
+
_v$61 !== _p$.f && className(_el$83, _p$.f = _v$61);
|
|
14642
|
+
_v$62 !== _p$.y && (_el$83.disabled = _p$.y = _v$62);
|
|
14643
|
+
_v$63 !== _p$.g && className(_el$84, _p$.g = _v$63);
|
|
14644
|
+
_v$64 !== _p$.p && className(_el$85, _p$.p = _v$64);
|
|
14645
|
+
_v$65 !== _p$.b && (_el$85.disabled = _p$.b = _v$65);
|
|
14646
|
+
_v$66 !== _p$.T && className(_el$86, _p$.T = _v$66);
|
|
14647
|
+
_v$67 !== _p$.A && className(_el$96, _p$.A = _v$67);
|
|
14648
|
+
_v$68 !== _p$.O && className(_el$106, _p$.O = _v$68);
|
|
14649
|
+
_v$69 !== _p$.I && ((_p$.I = _v$69) != null ? _el$107.style.setProperty("padding", _v$69) : _el$107.style.removeProperty("padding"));
|
|
14638
14650
|
return _p$;
|
|
14639
14651
|
}, {
|
|
14640
14652
|
e: void 0,
|
|
@@ -14662,7 +14674,7 @@ var init_Devtools = __esm({
|
|
|
14662
14674
|
O: void 0,
|
|
14663
14675
|
I: void 0
|
|
14664
14676
|
});
|
|
14665
|
-
return _el$
|
|
14677
|
+
return _el$62;
|
|
14666
14678
|
}
|
|
14667
14679
|
});
|
|
14668
14680
|
};
|
|
@@ -14714,8 +14726,8 @@ var init_Devtools = __esm({
|
|
|
14714
14726
|
return activeMutation();
|
|
14715
14727
|
},
|
|
14716
14728
|
get children() {
|
|
14717
|
-
var _el$
|
|
14718
|
-
insert(_el$
|
|
14729
|
+
var _el$109 = _tmpl$332(), _el$110 = _el$109.firstChild, _el$111 = _el$110.nextSibling, _el$112 = _el$111.firstChild, _el$113 = _el$112.firstChild, _el$114 = _el$113.firstChild, _el$115 = _el$113.nextSibling, _el$116 = _el$112.nextSibling, _el$117 = _el$116.firstChild, _el$118 = _el$117.nextSibling, _el$119 = _el$111.nextSibling, _el$120 = _el$119.nextSibling, _el$121 = _el$120.nextSibling, _el$122 = _el$121.nextSibling, _el$123 = _el$122.nextSibling, _el$124 = _el$123.nextSibling, _el$125 = _el$124.nextSibling, _el$126 = _el$125.nextSibling;
|
|
14730
|
+
insert(_el$114, createComponent(Show, {
|
|
14719
14731
|
get when() {
|
|
14720
14732
|
return activeMutation().options.mutationKey;
|
|
14721
14733
|
},
|
|
@@ -14724,13 +14736,13 @@ var init_Devtools = __esm({
|
|
|
14724
14736
|
return displayValue(activeMutation().options.mutationKey, true);
|
|
14725
14737
|
}
|
|
14726
14738
|
}));
|
|
14727
|
-
insert(_el$
|
|
14739
|
+
insert(_el$115, createComponent(Show, {
|
|
14728
14740
|
get when() {
|
|
14729
14741
|
return color() === "purple";
|
|
14730
14742
|
},
|
|
14731
14743
|
children: "pending"
|
|
14732
14744
|
}), null);
|
|
14733
|
-
insert(_el$
|
|
14745
|
+
insert(_el$115, createComponent(Show, {
|
|
14734
14746
|
get when() {
|
|
14735
14747
|
return color() !== "purple";
|
|
14736
14748
|
},
|
|
@@ -14738,29 +14750,29 @@ var init_Devtools = __esm({
|
|
|
14738
14750
|
return status();
|
|
14739
14751
|
}
|
|
14740
14752
|
}), null);
|
|
14741
|
-
insert(_el$
|
|
14742
|
-
insert(_el$
|
|
14753
|
+
insert(_el$118, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
14754
|
+
insert(_el$120, createComponent(Explorer, {
|
|
14743
14755
|
label: "Variables",
|
|
14744
14756
|
defaultExpanded: ["Variables"],
|
|
14745
14757
|
get value() {
|
|
14746
14758
|
return activeMutation().state.variables;
|
|
14747
14759
|
}
|
|
14748
14760
|
}));
|
|
14749
|
-
insert(_el$
|
|
14761
|
+
insert(_el$122, createComponent(Explorer, {
|
|
14750
14762
|
label: "Context",
|
|
14751
14763
|
defaultExpanded: ["Context"],
|
|
14752
14764
|
get value() {
|
|
14753
14765
|
return activeMutation().state.context;
|
|
14754
14766
|
}
|
|
14755
14767
|
}));
|
|
14756
|
-
insert(_el$
|
|
14768
|
+
insert(_el$124, createComponent(Explorer, {
|
|
14757
14769
|
label: "Data",
|
|
14758
14770
|
defaultExpanded: ["Data"],
|
|
14759
14771
|
get value() {
|
|
14760
14772
|
return activeMutation().state.data;
|
|
14761
14773
|
}
|
|
14762
14774
|
}));
|
|
14763
|
-
insert(_el$
|
|
14775
|
+
insert(_el$126, createComponent(Explorer, {
|
|
14764
14776
|
label: "Mutation",
|
|
14765
14777
|
defaultExpanded: ["Mutation"],
|
|
14766
14778
|
get value() {
|
|
@@ -14769,18 +14781,18 @@ var init_Devtools = __esm({
|
|
|
14769
14781
|
}));
|
|
14770
14782
|
createRenderEffect((_p$) => {
|
|
14771
14783
|
var _v$70 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$73 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$74 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$75 = tokens.size[2], _v$76 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$77 = tokens.size[2], _v$78 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$79 = tokens.size[2], _v$80 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$81 = tokens.size[2];
|
|
14772
|
-
_v$70 !== _p$.e && className(_el$
|
|
14773
|
-
_v$71 !== _p$.t && className(_el$
|
|
14774
|
-
_v$72 !== _p$.a && className(_el$
|
|
14775
|
-
_v$73 !== _p$.o && className(_el$
|
|
14776
|
-
_v$74 !== _p$.i && className(_el$
|
|
14777
|
-
_v$75 !== _p$.n && ((_p$.n = _v$75) != null ? _el$
|
|
14778
|
-
_v$76 !== _p$.s && className(_el$
|
|
14779
|
-
_v$77 !== _p$.h && ((_p$.h = _v$77) != null ? _el$
|
|
14780
|
-
_v$78 !== _p$.r && className(_el$
|
|
14781
|
-
_v$79 !== _p$.d && ((_p$.d = _v$79) != null ? _el$
|
|
14782
|
-
_v$80 !== _p$.l && className(_el$
|
|
14783
|
-
_v$81 !== _p$.u && ((_p$.u = _v$81) != null ? _el$
|
|
14784
|
+
_v$70 !== _p$.e && className(_el$109, _p$.e = _v$70);
|
|
14785
|
+
_v$71 !== _p$.t && className(_el$110, _p$.t = _v$71);
|
|
14786
|
+
_v$72 !== _p$.a && className(_el$111, _p$.a = _v$72);
|
|
14787
|
+
_v$73 !== _p$.o && className(_el$115, _p$.o = _v$73);
|
|
14788
|
+
_v$74 !== _p$.i && className(_el$119, _p$.i = _v$74);
|
|
14789
|
+
_v$75 !== _p$.n && ((_p$.n = _v$75) != null ? _el$120.style.setProperty("padding", _v$75) : _el$120.style.removeProperty("padding"));
|
|
14790
|
+
_v$76 !== _p$.s && className(_el$121, _p$.s = _v$76);
|
|
14791
|
+
_v$77 !== _p$.h && ((_p$.h = _v$77) != null ? _el$122.style.setProperty("padding", _v$77) : _el$122.style.removeProperty("padding"));
|
|
14792
|
+
_v$78 !== _p$.r && className(_el$123, _p$.r = _v$78);
|
|
14793
|
+
_v$79 !== _p$.d && ((_p$.d = _v$79) != null ? _el$124.style.setProperty("padding", _v$79) : _el$124.style.removeProperty("padding"));
|
|
14794
|
+
_v$80 !== _p$.l && className(_el$125, _p$.l = _v$80);
|
|
14795
|
+
_v$81 !== _p$.u && ((_p$.u = _v$81) != null ? _el$126.style.setProperty("padding", _v$81) : _el$126.style.removeProperty("padding"));
|
|
14784
14796
|
return _p$;
|
|
14785
14797
|
}, {
|
|
14786
14798
|
e: void 0,
|
|
@@ -14796,7 +14808,7 @@ var init_Devtools = __esm({
|
|
|
14796
14808
|
l: void 0,
|
|
14797
14809
|
u: void 0
|
|
14798
14810
|
});
|
|
14799
|
-
return _el$
|
|
14811
|
+
return _el$109;
|
|
14800
14812
|
}
|
|
14801
14813
|
});
|
|
14802
14814
|
};
|
|
@@ -15560,6 +15572,17 @@ var init_Devtools = __esm({
|
|
|
15560
15572
|
border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
|
|
15561
15573
|
font-size: ${font.size.xs};
|
|
15562
15574
|
}
|
|
15575
|
+
|
|
15576
|
+
& .tsqd-query-static-indicator {
|
|
15577
|
+
align-self: stretch;
|
|
15578
|
+
display: flex;
|
|
15579
|
+
align-items: center;
|
|
15580
|
+
padding: 0 ${tokens.size[2]};
|
|
15581
|
+
color: ${t2(colors.teal[800], colors.teal[300])};
|
|
15582
|
+
background-color: ${t2(colors.teal[100], colors.teal[900])};
|
|
15583
|
+
border-bottom: 1px solid ${t2(colors.teal[300], colors.teal[700])};
|
|
15584
|
+
font-size: ${font.size.xs};
|
|
15585
|
+
}
|
|
15563
15586
|
`,
|
|
15564
15587
|
selectedQueryRow: css`
|
|
15565
15588
|
background-color: ${t2(colors.gray[200], colors.darkGray[500])};
|