@tanstack/query-devtools 5.0.5 → 5.1.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/Devtools/{B2H37NSB.js → BWLPXLBN.js} +1466 -390
- package/build/Devtools/{3Y5CBXUA.js → CRASJTHY.js} +1466 -390
- package/build/Devtools/{Y2E2LEWB.jsx → QHGCTHEZ.jsx} +1170 -142
- package/build/Devtools/{7SMWYMBY.jsx → QHLLQ2XL.jsx} +1170 -142
- package/build/chunk/{AHAJNSNO.jsx → JRAMSUCV.jsx} +5 -0
- package/build/dev.cjs +1478 -395
- package/build/dev.js +1 -1
- package/build/dev.jsx +2 -2
- package/build/index.cjs +1478 -395
- package/build/index.js +1 -1
- package/build/index.jsx +2 -2
- package/package.json +1 -1
- package/src/Devtools.tsx +773 -121
- package/src/icons/index.tsx +89 -0
- package/src/theme.ts +11 -11
- package/src/utils.tsx +46 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className,
|
|
1
|
+
import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, onMount, on, setAttribute, spread, mergeProps, For, onCleanup, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, template, use, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/Z53XT47W.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
4
4
|
var characterMap = {
|
|
@@ -3987,6 +3987,29 @@ function createFocusScope(props, ref) {
|
|
|
3987
3987
|
});
|
|
3988
3988
|
});
|
|
3989
3989
|
}
|
|
3990
|
+
function createFormResetListener(element, handler) {
|
|
3991
|
+
createEffect(on(element, (element2) => {
|
|
3992
|
+
if (element2 == null) {
|
|
3993
|
+
return;
|
|
3994
|
+
}
|
|
3995
|
+
const form = getClosestForm(element2);
|
|
3996
|
+
if (form == null) {
|
|
3997
|
+
return;
|
|
3998
|
+
}
|
|
3999
|
+
form.addEventListener("reset", handler, {
|
|
4000
|
+
passive: true
|
|
4001
|
+
});
|
|
4002
|
+
onCleanup(() => {
|
|
4003
|
+
form.removeEventListener("reset", handler);
|
|
4004
|
+
});
|
|
4005
|
+
}));
|
|
4006
|
+
}
|
|
4007
|
+
function getClosestForm(element) {
|
|
4008
|
+
return isFormElement(element) ? element.form : element.closest("form");
|
|
4009
|
+
}
|
|
4010
|
+
function isFormElement(element) {
|
|
4011
|
+
return element.matches("textarea, input, select, button");
|
|
4012
|
+
}
|
|
3990
4013
|
var DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
|
|
3991
4014
|
function createHideOutside(props) {
|
|
3992
4015
|
createEffect(() => {
|
|
@@ -4422,7 +4445,72 @@ function createToggleState(props = {}) {
|
|
|
4422
4445
|
toggle
|
|
4423
4446
|
};
|
|
4424
4447
|
}
|
|
4425
|
-
|
|
4448
|
+
var FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
|
|
4449
|
+
function createFormControl(props) {
|
|
4450
|
+
const defaultId = `form-control-${createUniqueId()}`;
|
|
4451
|
+
props = mergeDefaultProps({
|
|
4452
|
+
id: defaultId
|
|
4453
|
+
}, props);
|
|
4454
|
+
const [labelId, setLabelId] = createSignal();
|
|
4455
|
+
const [fieldId, setFieldId] = createSignal();
|
|
4456
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
4457
|
+
const [errorMessageId, setErrorMessageId] = createSignal();
|
|
4458
|
+
const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
|
|
4459
|
+
const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
|
|
4460
|
+
return [
|
|
4461
|
+
fieldAriaLabelledBy,
|
|
4462
|
+
labelId(),
|
|
4463
|
+
// If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
|
|
4464
|
+
hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
|
|
4465
|
+
].filter(Boolean).join(" ") || void 0;
|
|
4466
|
+
};
|
|
4467
|
+
const getAriaDescribedBy = (fieldAriaDescribedBy) => {
|
|
4468
|
+
return [
|
|
4469
|
+
descriptionId(),
|
|
4470
|
+
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
|
|
4471
|
+
// See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
4472
|
+
errorMessageId(),
|
|
4473
|
+
fieldAriaDescribedBy
|
|
4474
|
+
].filter(Boolean).join(" ") || void 0;
|
|
4475
|
+
};
|
|
4476
|
+
const dataset = createMemo(() => ({
|
|
4477
|
+
"data-valid": access(props.validationState) === "valid" ? "" : void 0,
|
|
4478
|
+
"data-invalid": access(props.validationState) === "invalid" ? "" : void 0,
|
|
4479
|
+
"data-required": access(props.required) ? "" : void 0,
|
|
4480
|
+
"data-disabled": access(props.disabled) ? "" : void 0,
|
|
4481
|
+
"data-readonly": access(props.readOnly) ? "" : void 0
|
|
4482
|
+
}));
|
|
4483
|
+
const formControlContext = {
|
|
4484
|
+
name: () => access(props.name) ?? access(props.id),
|
|
4485
|
+
dataset,
|
|
4486
|
+
validationState: () => access(props.validationState),
|
|
4487
|
+
isRequired: () => access(props.required),
|
|
4488
|
+
isDisabled: () => access(props.disabled),
|
|
4489
|
+
isReadOnly: () => access(props.readOnly),
|
|
4490
|
+
labelId,
|
|
4491
|
+
fieldId,
|
|
4492
|
+
descriptionId,
|
|
4493
|
+
errorMessageId,
|
|
4494
|
+
getAriaLabelledBy,
|
|
4495
|
+
getAriaDescribedBy,
|
|
4496
|
+
generateId: createGenerateId(() => access(props.id)),
|
|
4497
|
+
registerLabel: createRegisterId(setLabelId),
|
|
4498
|
+
registerField: createRegisterId(setFieldId),
|
|
4499
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
4500
|
+
registerErrorMessage: createRegisterId(setErrorMessageId)
|
|
4501
|
+
};
|
|
4502
|
+
return {
|
|
4503
|
+
formControlContext
|
|
4504
|
+
};
|
|
4505
|
+
}
|
|
4506
|
+
var FormControlContext = createContext();
|
|
4507
|
+
function useFormControlContext() {
|
|
4508
|
+
const context = useContext(FormControlContext);
|
|
4509
|
+
if (context === void 0) {
|
|
4510
|
+
throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
|
|
4511
|
+
}
|
|
4512
|
+
return context;
|
|
4513
|
+
}
|
|
4426
4514
|
function Polymorphic(props) {
|
|
4427
4515
|
const [local, others] = splitProps(props, ["asChild", "as", "children"]);
|
|
4428
4516
|
if (!local.asChild) {
|
|
@@ -4473,6 +4561,60 @@ function combineProps2(baseProps, overrideProps) {
|
|
|
4473
4561
|
reverseEventHandlers: true
|
|
4474
4562
|
});
|
|
4475
4563
|
}
|
|
4564
|
+
function FormControlDescription(props) {
|
|
4565
|
+
const context = useFormControlContext();
|
|
4566
|
+
props = mergeDefaultProps({
|
|
4567
|
+
id: context.generateId("description")
|
|
4568
|
+
}, props);
|
|
4569
|
+
createEffect(() => onCleanup(context.registerDescription(props.id)));
|
|
4570
|
+
return createComponent(Polymorphic, mergeProps({
|
|
4571
|
+
as: "div"
|
|
4572
|
+
}, () => context.dataset(), props));
|
|
4573
|
+
}
|
|
4574
|
+
function FormControlErrorMessage(props) {
|
|
4575
|
+
const context = useFormControlContext();
|
|
4576
|
+
props = mergeDefaultProps({
|
|
4577
|
+
id: context.generateId("error-message")
|
|
4578
|
+
}, props);
|
|
4579
|
+
const [local, others] = splitProps(props, ["forceMount"]);
|
|
4580
|
+
const isInvalid = () => context.validationState() === "invalid";
|
|
4581
|
+
createEffect(() => {
|
|
4582
|
+
if (!isInvalid()) {
|
|
4583
|
+
return;
|
|
4584
|
+
}
|
|
4585
|
+
onCleanup(context.registerErrorMessage(others.id));
|
|
4586
|
+
});
|
|
4587
|
+
return createComponent(Show, {
|
|
4588
|
+
get when() {
|
|
4589
|
+
return local.forceMount || isInvalid();
|
|
4590
|
+
},
|
|
4591
|
+
get children() {
|
|
4592
|
+
return createComponent(Polymorphic, mergeProps({
|
|
4593
|
+
as: "div"
|
|
4594
|
+
}, () => context.dataset(), others));
|
|
4595
|
+
}
|
|
4596
|
+
});
|
|
4597
|
+
}
|
|
4598
|
+
function FormControlLabel(props) {
|
|
4599
|
+
let ref;
|
|
4600
|
+
const context = useFormControlContext();
|
|
4601
|
+
props = mergeDefaultProps({
|
|
4602
|
+
id: context.generateId("label")
|
|
4603
|
+
}, props);
|
|
4604
|
+
const [local, others] = splitProps(props, ["ref"]);
|
|
4605
|
+
const tagName = createTagName(() => ref, () => "label");
|
|
4606
|
+
createEffect(() => onCleanup(context.registerLabel(others.id)));
|
|
4607
|
+
return createComponent(Polymorphic, mergeProps({
|
|
4608
|
+
as: "label",
|
|
4609
|
+
ref(r$) {
|
|
4610
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
4611
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
4612
|
+
},
|
|
4613
|
+
get ["for"]() {
|
|
4614
|
+
return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
|
|
4615
|
+
}
|
|
4616
|
+
}, () => context.dataset(), others));
|
|
4617
|
+
}
|
|
4476
4618
|
var RTL_SCRIPTS = /* @__PURE__ */ new Set(["Avst", "Arab", "Armi", "Syrc", "Samr", "Mand", "Thaa", "Mend", "Nkoo", "Adlm", "Rohg", "Hebr"]);
|
|
4477
4619
|
var RTL_LANGS = /* @__PURE__ */ new Set(["ae", "ar", "arc", "bcc", "bqi", "ckb", "dv", "fa", "glk", "he", "ku", "mzn", "nqo", "pnb", "ps", "sd", "ug", "ur", "yi"]);
|
|
4478
4620
|
function isRTL2(locale) {
|
|
@@ -7845,8 +7987,332 @@ createContext();
|
|
|
7845
7987
|
createContext();
|
|
7846
7988
|
createContext();
|
|
7847
7989
|
createContext();
|
|
7848
|
-
createContext();
|
|
7849
|
-
|
|
7990
|
+
var RadioGroupContext = createContext();
|
|
7991
|
+
function useRadioGroupContext() {
|
|
7992
|
+
const context = useContext(RadioGroupContext);
|
|
7993
|
+
if (context === void 0) {
|
|
7994
|
+
throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");
|
|
7995
|
+
}
|
|
7996
|
+
return context;
|
|
7997
|
+
}
|
|
7998
|
+
var RadioGroupItemContext = createContext();
|
|
7999
|
+
function useRadioGroupItemContext() {
|
|
8000
|
+
const context = useContext(RadioGroupItemContext);
|
|
8001
|
+
if (context === void 0) {
|
|
8002
|
+
throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");
|
|
8003
|
+
}
|
|
8004
|
+
return context;
|
|
8005
|
+
}
|
|
8006
|
+
function RadioGroupItem(props) {
|
|
8007
|
+
const formControlContext = useFormControlContext();
|
|
8008
|
+
const radioGroupContext = useRadioGroupContext();
|
|
8009
|
+
const defaultId = `${formControlContext.generateId("item")}-${createUniqueId()}`;
|
|
8010
|
+
props = mergeDefaultProps({
|
|
8011
|
+
id: defaultId
|
|
8012
|
+
}, props);
|
|
8013
|
+
const [local, others] = splitProps(props, ["value", "disabled", "onPointerDown"]);
|
|
8014
|
+
const [inputId, setInputId] = createSignal();
|
|
8015
|
+
const [labelId, setLabelId] = createSignal();
|
|
8016
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
8017
|
+
const [inputRef, setInputRef] = createSignal();
|
|
8018
|
+
const [isFocused, setIsFocused] = createSignal(false);
|
|
8019
|
+
const isSelected = createMemo(() => {
|
|
8020
|
+
return radioGroupContext.isSelectedValue(local.value);
|
|
8021
|
+
});
|
|
8022
|
+
const isDisabled = createMemo(() => {
|
|
8023
|
+
return local.disabled || formControlContext.isDisabled() || false;
|
|
8024
|
+
});
|
|
8025
|
+
const onPointerDown = (e2) => {
|
|
8026
|
+
callHandler(e2, local.onPointerDown);
|
|
8027
|
+
if (isFocused()) {
|
|
8028
|
+
e2.preventDefault();
|
|
8029
|
+
}
|
|
8030
|
+
};
|
|
8031
|
+
const dataset = createMemo(() => ({
|
|
8032
|
+
...formControlContext.dataset(),
|
|
8033
|
+
"data-disabled": isDisabled() ? "" : void 0,
|
|
8034
|
+
"data-checked": isSelected() ? "" : void 0
|
|
8035
|
+
}));
|
|
8036
|
+
const context = {
|
|
8037
|
+
value: () => local.value,
|
|
8038
|
+
dataset,
|
|
8039
|
+
isSelected,
|
|
8040
|
+
isDisabled,
|
|
8041
|
+
inputId,
|
|
8042
|
+
labelId,
|
|
8043
|
+
descriptionId,
|
|
8044
|
+
inputRef,
|
|
8045
|
+
select: () => radioGroupContext.setSelectedValue(local.value),
|
|
8046
|
+
generateId: createGenerateId(() => others.id),
|
|
8047
|
+
registerInput: createRegisterId(setInputId),
|
|
8048
|
+
registerLabel: createRegisterId(setLabelId),
|
|
8049
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
8050
|
+
setIsFocused,
|
|
8051
|
+
setInputRef
|
|
8052
|
+
};
|
|
8053
|
+
return createComponent(RadioGroupItemContext.Provider, {
|
|
8054
|
+
value: context,
|
|
8055
|
+
get children() {
|
|
8056
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8057
|
+
as: "div",
|
|
8058
|
+
role: "group",
|
|
8059
|
+
onPointerDown
|
|
8060
|
+
}, dataset, others));
|
|
8061
|
+
}
|
|
8062
|
+
});
|
|
8063
|
+
}
|
|
8064
|
+
function RadioGroupItemControl(props) {
|
|
8065
|
+
const context = useRadioGroupItemContext();
|
|
8066
|
+
props = mergeDefaultProps({
|
|
8067
|
+
id: context.generateId("control")
|
|
8068
|
+
}, props);
|
|
8069
|
+
const [local, others] = splitProps(props, ["onClick", "onKeyDown"]);
|
|
8070
|
+
const onClick = (e2) => {
|
|
8071
|
+
callHandler(e2, local.onClick);
|
|
8072
|
+
context.select();
|
|
8073
|
+
context.inputRef()?.focus();
|
|
8074
|
+
};
|
|
8075
|
+
const onKeyDown = (e2) => {
|
|
8076
|
+
callHandler(e2, local.onKeyDown);
|
|
8077
|
+
if (e2.key === EventKey.Space) {
|
|
8078
|
+
context.select();
|
|
8079
|
+
context.inputRef()?.focus();
|
|
8080
|
+
}
|
|
8081
|
+
};
|
|
8082
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8083
|
+
as: "div",
|
|
8084
|
+
onClick,
|
|
8085
|
+
onKeyDown
|
|
8086
|
+
}, () => context.dataset(), others));
|
|
8087
|
+
}
|
|
8088
|
+
function RadioGroupItemDescription(props) {
|
|
8089
|
+
const context = useRadioGroupItemContext();
|
|
8090
|
+
props = mergeDefaultProps({
|
|
8091
|
+
id: context.generateId("description")
|
|
8092
|
+
}, props);
|
|
8093
|
+
createEffect(() => onCleanup(context.registerDescription(props.id)));
|
|
8094
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8095
|
+
as: "div"
|
|
8096
|
+
}, () => context.dataset(), props));
|
|
8097
|
+
}
|
|
8098
|
+
function RadioGroupItemIndicator(props) {
|
|
8099
|
+
const context = useRadioGroupItemContext();
|
|
8100
|
+
props = mergeDefaultProps({
|
|
8101
|
+
id: context.generateId("indicator")
|
|
8102
|
+
}, props);
|
|
8103
|
+
const [local, others] = splitProps(props, ["ref", "forceMount"]);
|
|
8104
|
+
const presence = createPresence(() => local.forceMount || context.isSelected());
|
|
8105
|
+
return createComponent(Show, {
|
|
8106
|
+
get when() {
|
|
8107
|
+
return presence.isPresent();
|
|
8108
|
+
},
|
|
8109
|
+
get children() {
|
|
8110
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8111
|
+
as: "div",
|
|
8112
|
+
ref(r$) {
|
|
8113
|
+
const _ref$ = mergeRefs(presence.setRef, local.ref);
|
|
8114
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
8115
|
+
}
|
|
8116
|
+
}, () => context.dataset(), others));
|
|
8117
|
+
}
|
|
8118
|
+
});
|
|
8119
|
+
}
|
|
8120
|
+
var _tmpl$$6 = /* @__PURE__ */ template(`<input type="radio">`);
|
|
8121
|
+
function RadioGroupItemInput(props) {
|
|
8122
|
+
const formControlContext = useFormControlContext();
|
|
8123
|
+
const radioGroupContext = useRadioGroupContext();
|
|
8124
|
+
const radioContext = useRadioGroupItemContext();
|
|
8125
|
+
props = mergeDefaultProps({
|
|
8126
|
+
id: radioContext.generateId("input")
|
|
8127
|
+
}, props);
|
|
8128
|
+
const [local, others] = splitProps(props, ["ref", "style", "aria-labelledby", "aria-describedby", "onChange", "onFocus", "onBlur"]);
|
|
8129
|
+
const ariaLabelledBy = () => {
|
|
8130
|
+
return [
|
|
8131
|
+
local["aria-labelledby"],
|
|
8132
|
+
radioContext.labelId(),
|
|
8133
|
+
// If there is both an aria-label and aria-labelledby, add the input itself has an aria-labelledby
|
|
8134
|
+
local["aria-labelledby"] != null && others["aria-label"] != null ? others.id : void 0
|
|
8135
|
+
].filter(Boolean).join(" ") || void 0;
|
|
8136
|
+
};
|
|
8137
|
+
const ariaDescribedBy = () => {
|
|
8138
|
+
return [local["aria-describedby"], radioContext.descriptionId(), radioGroupContext.ariaDescribedBy()].filter(Boolean).join(" ") || void 0;
|
|
8139
|
+
};
|
|
8140
|
+
const onChange = (e2) => {
|
|
8141
|
+
callHandler(e2, local.onChange);
|
|
8142
|
+
e2.stopPropagation();
|
|
8143
|
+
radioGroupContext.setSelectedValue(radioContext.value());
|
|
8144
|
+
const target = e2.target;
|
|
8145
|
+
target.checked = radioContext.isSelected();
|
|
8146
|
+
};
|
|
8147
|
+
const onFocus = (e2) => {
|
|
8148
|
+
callHandler(e2, local.onFocus);
|
|
8149
|
+
radioContext.setIsFocused(true);
|
|
8150
|
+
};
|
|
8151
|
+
const onBlur = (e2) => {
|
|
8152
|
+
callHandler(e2, local.onBlur);
|
|
8153
|
+
radioContext.setIsFocused(false);
|
|
8154
|
+
};
|
|
8155
|
+
createEffect(() => onCleanup(radioContext.registerInput(others.id)));
|
|
8156
|
+
return (() => {
|
|
8157
|
+
const _el$ = _tmpl$$6();
|
|
8158
|
+
_el$.addEventListener("blur", onBlur);
|
|
8159
|
+
_el$.addEventListener("focus", onFocus);
|
|
8160
|
+
_el$.addEventListener("change", onChange);
|
|
8161
|
+
const _ref$ = mergeRefs(radioContext.setInputRef, local.ref);
|
|
8162
|
+
typeof _ref$ === "function" && use(_ref$, _el$);
|
|
8163
|
+
spread(_el$, mergeProps({
|
|
8164
|
+
get name() {
|
|
8165
|
+
return formControlContext.name();
|
|
8166
|
+
},
|
|
8167
|
+
get value() {
|
|
8168
|
+
return radioContext.value();
|
|
8169
|
+
},
|
|
8170
|
+
get checked() {
|
|
8171
|
+
return radioContext.isSelected();
|
|
8172
|
+
},
|
|
8173
|
+
get required() {
|
|
8174
|
+
return formControlContext.isRequired();
|
|
8175
|
+
},
|
|
8176
|
+
get disabled() {
|
|
8177
|
+
return radioContext.isDisabled();
|
|
8178
|
+
},
|
|
8179
|
+
get readonly() {
|
|
8180
|
+
return formControlContext.isReadOnly();
|
|
8181
|
+
},
|
|
8182
|
+
get style() {
|
|
8183
|
+
return {
|
|
8184
|
+
...visuallyHiddenStyles,
|
|
8185
|
+
...local.style
|
|
8186
|
+
};
|
|
8187
|
+
},
|
|
8188
|
+
get ["aria-labelledby"]() {
|
|
8189
|
+
return ariaLabelledBy();
|
|
8190
|
+
},
|
|
8191
|
+
get ["aria-describedby"]() {
|
|
8192
|
+
return ariaDescribedBy();
|
|
8193
|
+
}
|
|
8194
|
+
}, () => radioContext.dataset(), others), false, false);
|
|
8195
|
+
return _el$;
|
|
8196
|
+
})();
|
|
8197
|
+
}
|
|
8198
|
+
var _tmpl$$5 = /* @__PURE__ */ template(`<label>`);
|
|
8199
|
+
function RadioGroupItemLabel(props) {
|
|
8200
|
+
const context = useRadioGroupItemContext();
|
|
8201
|
+
props = mergeDefaultProps({
|
|
8202
|
+
id: context.generateId("label")
|
|
8203
|
+
}, props);
|
|
8204
|
+
createEffect(() => onCleanup(context.registerLabel(props.id)));
|
|
8205
|
+
return (() => {
|
|
8206
|
+
const _el$ = _tmpl$$5();
|
|
8207
|
+
spread(_el$, mergeProps({
|
|
8208
|
+
get ["for"]() {
|
|
8209
|
+
return context.inputId();
|
|
8210
|
+
}
|
|
8211
|
+
}, () => context.dataset(), props), false, false);
|
|
8212
|
+
return _el$;
|
|
8213
|
+
})();
|
|
8214
|
+
}
|
|
8215
|
+
function RadioGroupLabel(props) {
|
|
8216
|
+
return createComponent(FormControlLabel, mergeProps({
|
|
8217
|
+
as: "span"
|
|
8218
|
+
}, props));
|
|
8219
|
+
}
|
|
8220
|
+
function RadioGroupRoot(props) {
|
|
8221
|
+
let ref;
|
|
8222
|
+
const defaultId = `radiogroup-${createUniqueId()}`;
|
|
8223
|
+
props = mergeDefaultProps({
|
|
8224
|
+
id: defaultId,
|
|
8225
|
+
orientation: "vertical"
|
|
8226
|
+
}, props);
|
|
8227
|
+
const [local, formControlProps, others] = splitProps(props, ["ref", "value", "defaultValue", "onChange", "orientation", "aria-labelledby", "aria-describedby"], FORM_CONTROL_PROP_NAMES);
|
|
8228
|
+
const [selected, setSelected] = createControllableSignal({
|
|
8229
|
+
value: () => local.value,
|
|
8230
|
+
defaultValue: () => local.defaultValue,
|
|
8231
|
+
onChange: (value) => local.onChange?.(value)
|
|
8232
|
+
});
|
|
8233
|
+
const {
|
|
8234
|
+
formControlContext
|
|
8235
|
+
} = createFormControl(formControlProps);
|
|
8236
|
+
createFormResetListener(() => ref, () => setSelected(local.defaultValue ?? ""));
|
|
8237
|
+
const ariaLabelledBy = () => {
|
|
8238
|
+
return formControlContext.getAriaLabelledBy(access(formControlProps.id), others["aria-label"], local["aria-labelledby"]);
|
|
8239
|
+
};
|
|
8240
|
+
const ariaDescribedBy = () => {
|
|
8241
|
+
return formControlContext.getAriaDescribedBy(local["aria-describedby"]);
|
|
8242
|
+
};
|
|
8243
|
+
const isSelectedValue = (value) => {
|
|
8244
|
+
return value === selected();
|
|
8245
|
+
};
|
|
8246
|
+
const context = {
|
|
8247
|
+
ariaDescribedBy,
|
|
8248
|
+
isSelectedValue,
|
|
8249
|
+
setSelectedValue: (value) => {
|
|
8250
|
+
if (formControlContext.isReadOnly() || formControlContext.isDisabled()) {
|
|
8251
|
+
return;
|
|
8252
|
+
}
|
|
8253
|
+
setSelected(value);
|
|
8254
|
+
ref?.querySelectorAll("[type='radio']").forEach((el) => {
|
|
8255
|
+
const radio = el;
|
|
8256
|
+
radio.checked = isSelectedValue(radio.value);
|
|
8257
|
+
});
|
|
8258
|
+
}
|
|
8259
|
+
};
|
|
8260
|
+
return createComponent(FormControlContext.Provider, {
|
|
8261
|
+
value: formControlContext,
|
|
8262
|
+
get children() {
|
|
8263
|
+
return createComponent(RadioGroupContext.Provider, {
|
|
8264
|
+
value: context,
|
|
8265
|
+
get children() {
|
|
8266
|
+
return createComponent(Polymorphic, mergeProps({
|
|
8267
|
+
as: "div",
|
|
8268
|
+
ref(r$) {
|
|
8269
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
8270
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
8271
|
+
},
|
|
8272
|
+
role: "radiogroup",
|
|
8273
|
+
get id() {
|
|
8274
|
+
return access(formControlProps.id);
|
|
8275
|
+
},
|
|
8276
|
+
get ["aria-invalid"]() {
|
|
8277
|
+
return formControlContext.validationState() === "invalid" || void 0;
|
|
8278
|
+
},
|
|
8279
|
+
get ["aria-required"]() {
|
|
8280
|
+
return formControlContext.isRequired() || void 0;
|
|
8281
|
+
},
|
|
8282
|
+
get ["aria-disabled"]() {
|
|
8283
|
+
return formControlContext.isDisabled() || void 0;
|
|
8284
|
+
},
|
|
8285
|
+
get ["aria-readonly"]() {
|
|
8286
|
+
return formControlContext.isReadOnly() || void 0;
|
|
8287
|
+
},
|
|
8288
|
+
get ["aria-orientation"]() {
|
|
8289
|
+
return local.orientation;
|
|
8290
|
+
},
|
|
8291
|
+
get ["aria-labelledby"]() {
|
|
8292
|
+
return ariaLabelledBy();
|
|
8293
|
+
},
|
|
8294
|
+
get ["aria-describedby"]() {
|
|
8295
|
+
return ariaDescribedBy();
|
|
8296
|
+
}
|
|
8297
|
+
}, () => formControlContext.dataset(), others));
|
|
8298
|
+
}
|
|
8299
|
+
});
|
|
8300
|
+
}
|
|
8301
|
+
});
|
|
8302
|
+
}
|
|
8303
|
+
var index$7 = /* @__PURE__ */ Object.freeze({
|
|
8304
|
+
__proto__: null,
|
|
8305
|
+
Description: FormControlDescription,
|
|
8306
|
+
ErrorMessage: FormControlErrorMessage,
|
|
8307
|
+
Item: RadioGroupItem,
|
|
8308
|
+
ItemControl: RadioGroupItemControl,
|
|
8309
|
+
ItemDescription: RadioGroupItemDescription,
|
|
8310
|
+
ItemIndicator: RadioGroupItemIndicator,
|
|
8311
|
+
ItemInput: RadioGroupItemInput,
|
|
8312
|
+
ItemLabel: RadioGroupItemLabel,
|
|
8313
|
+
Label: RadioGroupLabel,
|
|
8314
|
+
Root: RadioGroupRoot
|
|
8315
|
+
});
|
|
7850
8316
|
createContext();
|
|
7851
8317
|
createContext();
|
|
7852
8318
|
createContext();
|
|
@@ -7951,17 +8417,17 @@ var tokens = {
|
|
|
7951
8417
|
900: "#054F31"
|
|
7952
8418
|
},
|
|
7953
8419
|
red: {
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
8420
|
+
50: "#fef2f2",
|
|
8421
|
+
100: "#fee2e2",
|
|
8422
|
+
200: "#fecaca",
|
|
8423
|
+
300: "#fca5a5",
|
|
8424
|
+
400: "#f87171",
|
|
8425
|
+
500: "#ef4444",
|
|
8426
|
+
600: "#dc2626",
|
|
8427
|
+
700: "#b91c1c",
|
|
8428
|
+
800: "#991b1b",
|
|
8429
|
+
900: "#7f1d1d",
|
|
8430
|
+
950: "#450a0a"
|
|
7965
8431
|
},
|
|
7966
8432
|
yellow: {
|
|
7967
8433
|
25: "#FFFCF5",
|
|
@@ -9211,6 +9677,12 @@ function getQueryStatusColor({
|
|
|
9211
9677
|
}) {
|
|
9212
9678
|
return queryState.fetchStatus === "fetching" ? "blue" : !observerCount ? "gray" : queryState.fetchStatus === "paused" ? "purple" : isStale ? "yellow" : "green";
|
|
9213
9679
|
}
|
|
9680
|
+
function getMutationStatusColor({
|
|
9681
|
+
status,
|
|
9682
|
+
isPaused
|
|
9683
|
+
}) {
|
|
9684
|
+
return isPaused ? "purple" : status === "error" ? "red" : status === "pending" ? "yellow" : status === "success" ? "green" : "gray";
|
|
9685
|
+
}
|
|
9214
9686
|
function getQueryStatusColorByLabel(label) {
|
|
9215
9687
|
return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
|
|
9216
9688
|
}
|
|
@@ -9234,6 +9706,18 @@ var sortFns = {
|
|
|
9234
9706
|
"query hash": queryHashSort,
|
|
9235
9707
|
"last updated": dateSort
|
|
9236
9708
|
};
|
|
9709
|
+
var getMutationStatusRank = (m) => m.state.isPaused ? 0 : m.state.status === "error" ? 2 : m.state.status === "pending" ? 1 : 3;
|
|
9710
|
+
var mutationDateSort = (a2, b2) => a2.state.submittedAt < b2.state.submittedAt ? 1 : -1;
|
|
9711
|
+
var mutationStatusSort = (a2, b2) => {
|
|
9712
|
+
if (getMutationStatusRank(a2) === getMutationStatusRank(b2)) {
|
|
9713
|
+
return mutationDateSort(a2, b2);
|
|
9714
|
+
}
|
|
9715
|
+
return getMutationStatusRank(a2) > getMutationStatusRank(b2) ? 1 : -1;
|
|
9716
|
+
};
|
|
9717
|
+
var mutationSortFns = {
|
|
9718
|
+
status: mutationStatusSort,
|
|
9719
|
+
"last updated": mutationDateSort
|
|
9720
|
+
};
|
|
9237
9721
|
var convertRemToPixels = (rem) => {
|
|
9238
9722
|
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
9239
9723
|
};
|
|
@@ -9348,7 +9832,11 @@ var _tmpl$13 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24
|
|
|
9348
9832
|
var _tmpl$14 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9349
9833
|
var _tmpl$15 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
|
|
9350
9834
|
var _tmpl$16 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9351
|
-
var _tmpl$17 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
9835
|
+
var _tmpl$17 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9836
|
+
var _tmpl$18 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>`);
|
|
9837
|
+
var _tmpl$19 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9838
|
+
var _tmpl$20 = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
|
|
9839
|
+
var _tmpl$21 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
|
|
9352
9840
|
function Search() {
|
|
9353
9841
|
return _tmpl$();
|
|
9354
9842
|
}
|
|
@@ -9433,89 +9921,101 @@ function Check(props) {
|
|
|
9433
9921
|
}
|
|
9434
9922
|
})];
|
|
9435
9923
|
}
|
|
9924
|
+
function CheckCircle() {
|
|
9925
|
+
return _tmpl$17();
|
|
9926
|
+
}
|
|
9927
|
+
function LoadingCircle() {
|
|
9928
|
+
return _tmpl$18();
|
|
9929
|
+
}
|
|
9930
|
+
function XCircle() {
|
|
9931
|
+
return _tmpl$19();
|
|
9932
|
+
}
|
|
9933
|
+
function PauseCircle() {
|
|
9934
|
+
return _tmpl$20();
|
|
9935
|
+
}
|
|
9436
9936
|
function TanstackLogo() {
|
|
9437
9937
|
const id = createUniqueId();
|
|
9438
9938
|
return (() => {
|
|
9439
|
-
const _el$
|
|
9440
|
-
setAttribute(_el$
|
|
9441
|
-
setAttribute(_el$
|
|
9442
|
-
setAttribute(_el$
|
|
9443
|
-
setAttribute(_el$
|
|
9444
|
-
setAttribute(_el$
|
|
9445
|
-
setAttribute(_el$
|
|
9446
|
-
setAttribute(_el$
|
|
9447
|
-
setAttribute(_el$
|
|
9448
|
-
setAttribute(_el$
|
|
9449
|
-
setAttribute(_el$
|
|
9450
|
-
setAttribute(_el$
|
|
9451
|
-
setAttribute(_el$
|
|
9452
|
-
setAttribute(_el$
|
|
9453
|
-
setAttribute(_el$
|
|
9454
|
-
setAttribute(_el$
|
|
9455
|
-
setAttribute(_el$
|
|
9456
|
-
setAttribute(_el$
|
|
9457
|
-
setAttribute(_el$
|
|
9458
|
-
setAttribute(_el$
|
|
9459
|
-
setAttribute(_el$
|
|
9460
|
-
setAttribute(_el$
|
|
9461
|
-
setAttribute(_el$
|
|
9462
|
-
setAttribute(_el$
|
|
9463
|
-
setAttribute(_el$
|
|
9464
|
-
setAttribute(_el$
|
|
9465
|
-
setAttribute(_el$
|
|
9466
|
-
setAttribute(_el$
|
|
9467
|
-
setAttribute(_el$
|
|
9468
|
-
setAttribute(_el$
|
|
9469
|
-
setAttribute(_el$
|
|
9470
|
-
setAttribute(_el$
|
|
9471
|
-
setAttribute(_el$
|
|
9472
|
-
setAttribute(_el$
|
|
9473
|
-
setAttribute(_el$
|
|
9474
|
-
setAttribute(_el$
|
|
9475
|
-
setAttribute(_el$
|
|
9476
|
-
setAttribute(_el$
|
|
9477
|
-
setAttribute(_el$
|
|
9478
|
-
setAttribute(_el$
|
|
9479
|
-
setAttribute(_el$
|
|
9480
|
-
setAttribute(_el$
|
|
9481
|
-
setAttribute(_el$
|
|
9482
|
-
setAttribute(_el$
|
|
9483
|
-
setAttribute(_el$
|
|
9484
|
-
setAttribute(_el$
|
|
9485
|
-
setAttribute(_el$
|
|
9486
|
-
setAttribute(_el$
|
|
9487
|
-
setAttribute(_el$
|
|
9488
|
-
setAttribute(_el$
|
|
9489
|
-
setAttribute(_el$
|
|
9490
|
-
setAttribute(_el$
|
|
9491
|
-
setAttribute(_el$
|
|
9492
|
-
setAttribute(_el$
|
|
9493
|
-
setAttribute(_el$
|
|
9494
|
-
setAttribute(_el$
|
|
9495
|
-
setAttribute(_el$
|
|
9496
|
-
setAttribute(_el$
|
|
9497
|
-
setAttribute(_el$
|
|
9498
|
-
setAttribute(_el$
|
|
9499
|
-
setAttribute(_el$
|
|
9500
|
-
setAttribute(_el$
|
|
9501
|
-
setAttribute(_el$
|
|
9502
|
-
setAttribute(_el$
|
|
9503
|
-
setAttribute(_el$
|
|
9504
|
-
setAttribute(_el$
|
|
9505
|
-
setAttribute(_el$
|
|
9506
|
-
setAttribute(_el$
|
|
9507
|
-
setAttribute(_el$
|
|
9508
|
-
setAttribute(_el$
|
|
9509
|
-
setAttribute(_el$
|
|
9510
|
-
setAttribute(_el$
|
|
9511
|
-
setAttribute(_el$
|
|
9512
|
-
setAttribute(_el$
|
|
9513
|
-
setAttribute(_el$
|
|
9514
|
-
setAttribute(_el$
|
|
9515
|
-
setAttribute(_el$
|
|
9516
|
-
setAttribute(_el$
|
|
9517
|
-
setAttribute(_el$
|
|
9518
|
-
return _el$
|
|
9939
|
+
const _el$27 = _tmpl$21(), _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling, _el$30 = _el$29.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$30.nextSibling, _el$33 = _el$32.firstChild, _el$34 = _el$32.nextSibling, _el$35 = _el$34.nextSibling, _el$36 = _el$35.firstChild, _el$37 = _el$35.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$37.nextSibling, _el$40 = _el$39.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$40.nextSibling, _el$43 = _el$42.firstChild, _el$44 = _el$42.nextSibling, _el$45 = _el$44.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$45.nextSibling, _el$48 = _el$47.firstChild, _el$49 = _el$47.nextSibling, _el$50 = _el$49.nextSibling, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$52.nextSibling, _el$55 = _el$54.nextSibling, _el$56 = _el$55.firstChild, _el$57 = _el$55.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$57.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$60.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$62.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.nextSibling, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$64.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$70.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$72.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.firstChild, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling, _el$88 = _el$87.nextSibling, _el$89 = _el$88.nextSibling, _el$90 = _el$74.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$90.nextSibling, _el$93 = _el$92.firstChild, _el$94 = _el$92.nextSibling, _el$95 = _el$94.firstChild, _el$96 = _el$95.nextSibling, _el$97 = _el$94.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$97.nextSibling, _el$100 = _el$99.firstChild, _el$101 = _el$99.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.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;
|
|
9940
|
+
setAttribute(_el$28, "id", `a-${id}`);
|
|
9941
|
+
setAttribute(_el$29, "fill", `url(#a-${id})`);
|
|
9942
|
+
setAttribute(_el$31, "id", `am-${id}`);
|
|
9943
|
+
setAttribute(_el$32, "id", `b-${id}`);
|
|
9944
|
+
setAttribute(_el$33, "filter", `url(#am-${id})`);
|
|
9945
|
+
setAttribute(_el$34, "mask", `url(#b-${id})`);
|
|
9946
|
+
setAttribute(_el$36, "id", `ah-${id}`);
|
|
9947
|
+
setAttribute(_el$37, "id", `k-${id}`);
|
|
9948
|
+
setAttribute(_el$38, "filter", `url(#ah-${id})`);
|
|
9949
|
+
setAttribute(_el$39, "mask", `url(#k-${id})`);
|
|
9950
|
+
setAttribute(_el$41, "id", `ae-${id}`);
|
|
9951
|
+
setAttribute(_el$42, "id", `j-${id}`);
|
|
9952
|
+
setAttribute(_el$43, "filter", `url(#ae-${id})`);
|
|
9953
|
+
setAttribute(_el$44, "mask", `url(#j-${id})`);
|
|
9954
|
+
setAttribute(_el$46, "id", `ai-${id}`);
|
|
9955
|
+
setAttribute(_el$47, "id", `i-${id}`);
|
|
9956
|
+
setAttribute(_el$48, "filter", `url(#ai-${id})`);
|
|
9957
|
+
setAttribute(_el$49, "mask", `url(#i-${id})`);
|
|
9958
|
+
setAttribute(_el$51, "id", `aj-${id}`);
|
|
9959
|
+
setAttribute(_el$52, "id", `h-${id}`);
|
|
9960
|
+
setAttribute(_el$53, "filter", `url(#aj-${id})`);
|
|
9961
|
+
setAttribute(_el$54, "mask", `url(#h-${id})`);
|
|
9962
|
+
setAttribute(_el$56, "id", `ag-${id}`);
|
|
9963
|
+
setAttribute(_el$57, "id", `g-${id}`);
|
|
9964
|
+
setAttribute(_el$58, "filter", `url(#ag-${id})`);
|
|
9965
|
+
setAttribute(_el$59, "mask", `url(#g-${id})`);
|
|
9966
|
+
setAttribute(_el$61, "id", `af-${id}`);
|
|
9967
|
+
setAttribute(_el$62, "id", `f-${id}`);
|
|
9968
|
+
setAttribute(_el$63, "filter", `url(#af-${id})`);
|
|
9969
|
+
setAttribute(_el$64, "mask", `url(#f-${id})`);
|
|
9970
|
+
setAttribute(_el$68, "id", `m-${id}`);
|
|
9971
|
+
setAttribute(_el$69, "fill", `url(#m-${id})`);
|
|
9972
|
+
setAttribute(_el$71, "id", `ak-${id}`);
|
|
9973
|
+
setAttribute(_el$72, "id", `e-${id}`);
|
|
9974
|
+
setAttribute(_el$73, "filter", `url(#ak-${id})`);
|
|
9975
|
+
setAttribute(_el$74, "mask", `url(#e-${id})`);
|
|
9976
|
+
setAttribute(_el$75, "id", `n-${id}`);
|
|
9977
|
+
setAttribute(_el$76, "fill", `url(#n-${id})`);
|
|
9978
|
+
setAttribute(_el$78, "id", `r-${id}`);
|
|
9979
|
+
setAttribute(_el$79, "fill", `url(#r-${id})`);
|
|
9980
|
+
setAttribute(_el$80, "id", `s-${id}`);
|
|
9981
|
+
setAttribute(_el$81, "fill", `url(#s-${id})`);
|
|
9982
|
+
setAttribute(_el$82, "id", `q-${id}`);
|
|
9983
|
+
setAttribute(_el$83, "fill", `url(#q-${id})`);
|
|
9984
|
+
setAttribute(_el$84, "id", `p-${id}`);
|
|
9985
|
+
setAttribute(_el$85, "fill", `url(#p-${id})`);
|
|
9986
|
+
setAttribute(_el$86, "id", `o-${id}`);
|
|
9987
|
+
setAttribute(_el$87, "fill", `url(#o-${id})`);
|
|
9988
|
+
setAttribute(_el$88, "id", `l-${id}`);
|
|
9989
|
+
setAttribute(_el$89, "fill", `url(#l-${id})`);
|
|
9990
|
+
setAttribute(_el$91, "id", `al-${id}`);
|
|
9991
|
+
setAttribute(_el$92, "id", `d-${id}`);
|
|
9992
|
+
setAttribute(_el$93, "filter", `url(#al-${id})`);
|
|
9993
|
+
setAttribute(_el$94, "mask", `url(#d-${id})`);
|
|
9994
|
+
setAttribute(_el$95, "id", `u-${id}`);
|
|
9995
|
+
setAttribute(_el$96, "fill", `url(#u-${id})`);
|
|
9996
|
+
setAttribute(_el$98, "id", `ad-${id}`);
|
|
9997
|
+
setAttribute(_el$99, "id", `c-${id}`);
|
|
9998
|
+
setAttribute(_el$100, "filter", `url(#ad-${id})`);
|
|
9999
|
+
setAttribute(_el$101, "mask", `url(#c-${id})`);
|
|
10000
|
+
setAttribute(_el$102, "id", `t-${id}`);
|
|
10001
|
+
setAttribute(_el$103, "fill", `url(#t-${id})`);
|
|
10002
|
+
setAttribute(_el$104, "id", `v-${id}`);
|
|
10003
|
+
setAttribute(_el$105, "stroke", `url(#v-${id})`);
|
|
10004
|
+
setAttribute(_el$106, "id", `aa-${id}`);
|
|
10005
|
+
setAttribute(_el$107, "stroke", `url(#aa-${id})`);
|
|
10006
|
+
setAttribute(_el$108, "id", `w-${id}`);
|
|
10007
|
+
setAttribute(_el$109, "stroke", `url(#w-${id})`);
|
|
10008
|
+
setAttribute(_el$110, "id", `ac-${id}`);
|
|
10009
|
+
setAttribute(_el$111, "stroke", `url(#ac-${id})`);
|
|
10010
|
+
setAttribute(_el$112, "id", `ab-${id}`);
|
|
10011
|
+
setAttribute(_el$113, "stroke", `url(#ab-${id})`);
|
|
10012
|
+
setAttribute(_el$114, "id", `y-${id}`);
|
|
10013
|
+
setAttribute(_el$115, "stroke", `url(#y-${id})`);
|
|
10014
|
+
setAttribute(_el$116, "id", `x-${id}`);
|
|
10015
|
+
setAttribute(_el$117, "stroke", `url(#x-${id})`);
|
|
10016
|
+
setAttribute(_el$118, "id", `z-${id}`);
|
|
10017
|
+
setAttribute(_el$119, "stroke", `url(#z-${id})`);
|
|
10018
|
+
return _el$27;
|
|
9519
10019
|
})();
|
|
9520
10020
|
}
|
|
9521
10021
|
|
|
@@ -9537,8 +10037,8 @@ function useTheme() {
|
|
|
9537
10037
|
}
|
|
9538
10038
|
|
|
9539
10039
|
// src/Explorer.tsx
|
|
9540
|
-
var _tmpl$
|
|
9541
|
-
var _tmpl$
|
|
10040
|
+
var _tmpl$22 = /* @__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>`);
|
|
10041
|
+
var _tmpl$23 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
|
|
9542
10042
|
var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
|
|
9543
10043
|
var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
|
|
9544
10044
|
var _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
|
|
@@ -9565,7 +10065,7 @@ var Expander = (props) => {
|
|
|
9565
10065
|
return theme() === "dark" ? darkStyles : lightStyles;
|
|
9566
10066
|
});
|
|
9567
10067
|
return (() => {
|
|
9568
|
-
const _el$ = _tmpl$
|
|
10068
|
+
const _el$ = _tmpl$22();
|
|
9569
10069
|
createRenderEffect(() => className(_el$, clsx(styles().expander, u`
|
|
9570
10070
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
9571
10071
|
`, props.expanded && u`
|
|
@@ -9583,7 +10083,7 @@ var CopyButton = (props) => {
|
|
|
9583
10083
|
});
|
|
9584
10084
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
9585
10085
|
return (() => {
|
|
9586
|
-
const _el$2 = _tmpl$
|
|
10086
|
+
const _el$2 = _tmpl$23();
|
|
9587
10087
|
addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
|
|
9588
10088
|
navigator.clipboard.writeText(stringify(props.value)).then(() => {
|
|
9589
10089
|
setCopyState("SuccessCopy");
|
|
@@ -10184,31 +10684,36 @@ var loadFonts = () => {
|
|
|
10184
10684
|
};
|
|
10185
10685
|
|
|
10186
10686
|
// src/Devtools.tsx
|
|
10187
|
-
var _tmpl$
|
|
10188
|
-
var _tmpl$
|
|
10189
|
-
var _tmpl$33 = /* @__PURE__ */ template(`<
|
|
10190
|
-
var _tmpl$43 = /* @__PURE__ */ template(`<
|
|
10191
|
-
var _tmpl$53 = /* @__PURE__ */ template(`<
|
|
10192
|
-
var _tmpl$63 = /* @__PURE__ */ template(`<span>
|
|
10193
|
-
var _tmpl$73 = /* @__PURE__ */ template(`<
|
|
10194
|
-
var _tmpl$83 = /* @__PURE__ */ template(`<span>
|
|
10195
|
-
var _tmpl$93 = /* @__PURE__ */ template(`<span>
|
|
10196
|
-
var _tmpl$103 = /* @__PURE__ */ template(`<span>
|
|
10197
|
-
var _tmpl$113 = /* @__PURE__ */ template(`<span>
|
|
10198
|
-
var _tmpl$122 = /* @__PURE__ */ template(`<span>
|
|
10199
|
-
var _tmpl$132 = /* @__PURE__ */ template(`<span>
|
|
10200
|
-
var _tmpl$142 = /* @__PURE__ */ template(`<span>
|
|
10201
|
-
var _tmpl$152 = /* @__PURE__ */ template(`<
|
|
10202
|
-
var _tmpl$162 = /* @__PURE__ */ template(`<
|
|
10203
|
-
var _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-
|
|
10204
|
-
var _tmpl$182 = /* @__PURE__ */ template(`<
|
|
10205
|
-
var _tmpl$192 = /* @__PURE__ */ template(`<div
|
|
10206
|
-
var _tmpl$
|
|
10207
|
-
var _tmpl$
|
|
10208
|
-
var _tmpl$222 = /* @__PURE__ */ template(`<button><
|
|
10209
|
-
var _tmpl$232 = /* @__PURE__ */ template(`<div
|
|
10210
|
-
var _tmpl$
|
|
10211
|
-
var _tmpl$
|
|
10687
|
+
var _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
|
|
10688
|
+
var _tmpl$25 = /* @__PURE__ */ template(`<div>`);
|
|
10689
|
+
var _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
|
|
10690
|
+
var _tmpl$43 = /* @__PURE__ */ template(`<select>`);
|
|
10691
|
+
var _tmpl$53 = /* @__PURE__ */ template(`<span>Asc`);
|
|
10692
|
+
var _tmpl$63 = /* @__PURE__ */ template(`<span>Desc`);
|
|
10693
|
+
var _tmpl$73 = /* @__PURE__ */ template(`<div>Settings`);
|
|
10694
|
+
var _tmpl$83 = /* @__PURE__ */ template(`<span>Position`);
|
|
10695
|
+
var _tmpl$93 = /* @__PURE__ */ template(`<span>Top`);
|
|
10696
|
+
var _tmpl$103 = /* @__PURE__ */ template(`<span>Bottom`);
|
|
10697
|
+
var _tmpl$113 = /* @__PURE__ */ template(`<span>Left`);
|
|
10698
|
+
var _tmpl$122 = /* @__PURE__ */ template(`<span>Right`);
|
|
10699
|
+
var _tmpl$132 = /* @__PURE__ */ template(`<span>Theme`);
|
|
10700
|
+
var _tmpl$142 = /* @__PURE__ */ template(`<span>Light`);
|
|
10701
|
+
var _tmpl$152 = /* @__PURE__ */ template(`<span>Dark`);
|
|
10702
|
+
var _tmpl$162 = /* @__PURE__ */ template(`<span>System`);
|
|
10703
|
+
var _tmpl$172 = /* @__PURE__ */ template(`<div><div class=tsqd-queries-container>`);
|
|
10704
|
+
var _tmpl$182 = /* @__PURE__ */ template(`<div><div class=tsqd-mutations-container>`);
|
|
10705
|
+
var _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 class=tsqd-query-filter-textfield></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>`);
|
|
10706
|
+
var _tmpl$202 = /* @__PURE__ */ template(`<option>Sort by `);
|
|
10707
|
+
var _tmpl$212 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
|
|
10708
|
+
var _tmpl$222 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
|
|
10709
|
+
var _tmpl$232 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
|
|
10710
|
+
var _tmpl$242 = /* @__PURE__ */ template(`<span>`);
|
|
10711
|
+
var _tmpl$252 = /* @__PURE__ */ template(`<button><span></span><span>`);
|
|
10712
|
+
var _tmpl$26 = /* @__PURE__ */ template(`<button><span></span> Error`);
|
|
10713
|
+
var _tmpl$27 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
|
|
10714
|
+
var _tmpl$28 = /* @__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">`);
|
|
10715
|
+
var _tmpl$29 = /* @__PURE__ */ template(`<option>`);
|
|
10716
|
+
var _tmpl$30 = /* @__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">`);
|
|
10212
10717
|
var firstBreakpoint = 1024;
|
|
10213
10718
|
var secondBreakpoint = 796;
|
|
10214
10719
|
var thirdBreakpoint = 700;
|
|
@@ -10220,7 +10725,9 @@ var DEFAULT_HEIGHT = 500;
|
|
|
10220
10725
|
var DEFAULT_WIDTH = 500;
|
|
10221
10726
|
var DEFAULT_SORT_FN_NAME = Object.keys(sortFns)[0];
|
|
10222
10727
|
var DEFAULT_SORT_ORDER = 1;
|
|
10728
|
+
var DEFAULT_MUTATION_SORT_FN_NAME = Object.keys(mutationSortFns)[0];
|
|
10223
10729
|
var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
|
|
10730
|
+
var [selectedMutationId, setSelectedMutationId] = createSignal(null);
|
|
10224
10731
|
var [panelWidth, setPanelWidth] = createSignal(0);
|
|
10225
10732
|
var DevtoolsComponent = (props) => {
|
|
10226
10733
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
@@ -10273,7 +10780,7 @@ var Devtools = (props) => {
|
|
|
10273
10780
|
root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
|
|
10274
10781
|
});
|
|
10275
10782
|
return (() => {
|
|
10276
|
-
const _el$ = _tmpl$
|
|
10783
|
+
const _el$ = _tmpl$25();
|
|
10277
10784
|
insert(_el$, createComponent(TransitionGroup, {
|
|
10278
10785
|
name: "tsqd-panel-transition",
|
|
10279
10786
|
get children() {
|
|
@@ -10302,7 +10809,7 @@ var Devtools = (props) => {
|
|
|
10302
10809
|
return !isOpen();
|
|
10303
10810
|
},
|
|
10304
10811
|
get children() {
|
|
10305
|
-
const _el$2 = _tmpl$
|
|
10812
|
+
const _el$2 = _tmpl$24(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
10306
10813
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
10307
10814
|
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
10308
10815
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
@@ -10342,24 +10849,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10342
10849
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10343
10850
|
});
|
|
10344
10851
|
const [isResizing, setIsResizing] = createSignal(false);
|
|
10345
|
-
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
10346
|
-
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
10347
|
-
const [offline, setOffline] = createSignal(false);
|
|
10348
10852
|
const position = createMemo(() => props.localStore.position || useQueryDevtoolsContext().position || POSITION);
|
|
10349
|
-
const sortFn = createMemo(() => sortFns[sort()]);
|
|
10350
|
-
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
10351
|
-
const cache = createMemo(() => {
|
|
10352
|
-
return useQueryDevtoolsContext().client.getQueryCache();
|
|
10353
|
-
});
|
|
10354
|
-
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
10355
|
-
return queryCache().getAll().length;
|
|
10356
|
-
}, false);
|
|
10357
|
-
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
10358
|
-
const curr = cache().getAll();
|
|
10359
|
-
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
10360
|
-
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
10361
|
-
return sorted;
|
|
10362
|
-
}));
|
|
10363
10853
|
const handleDragStart = (event) => {
|
|
10364
10854
|
const panelElement = event.currentTarget.parentElement;
|
|
10365
10855
|
if (!panelElement)
|
|
@@ -10407,8 +10897,6 @@ var DevtoolsPanel = (props) => {
|
|
|
10407
10897
|
document.addEventListener("mousemove", runDrag, false);
|
|
10408
10898
|
document.addEventListener("mouseup", unsub, false);
|
|
10409
10899
|
};
|
|
10410
|
-
setupQueryCacheSubscription();
|
|
10411
|
-
let queriesContainerRef;
|
|
10412
10900
|
let panelRef;
|
|
10413
10901
|
onMount(() => {
|
|
10414
10902
|
createResizeObserver(panelRef, ({
|
|
@@ -10419,9 +10907,6 @@ var DevtoolsPanel = (props) => {
|
|
|
10419
10907
|
}
|
|
10420
10908
|
});
|
|
10421
10909
|
});
|
|
10422
|
-
const setDevtoolsPosition = (pos) => {
|
|
10423
|
-
props.setLocalStore("position", pos);
|
|
10424
|
-
};
|
|
10425
10910
|
createEffect(() => {
|
|
10426
10911
|
const rootContainer = panelRef.parentElement?.parentElement?.parentElement;
|
|
10427
10912
|
if (!rootContainer)
|
|
@@ -10466,52 +10951,230 @@ var DevtoolsPanel = (props) => {
|
|
|
10466
10951
|
`;
|
|
10467
10952
|
};
|
|
10468
10953
|
return (() => {
|
|
10469
|
-
const _el$5 = _tmpl$
|
|
10954
|
+
const _el$5 = _tmpl$33(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
|
|
10470
10955
|
const _ref$ = panelRef;
|
|
10471
10956
|
typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
|
|
10472
10957
|
_el$6.$$mousedown = handleDragStart;
|
|
10473
10958
|
_el$7.$$click = () => props.setLocalStore("open", "false");
|
|
10474
10959
|
insert(_el$7, createComponent(ChevronDown, {}));
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
insert(_el$12, () => useQueryDevtoolsContext().queryFlavor, _el$13);
|
|
10479
|
-
insert(_el$12, () => useQueryDevtoolsContext().version, null);
|
|
10480
|
-
insert(_el$9, createComponent(QueryStatusCount, {}), null);
|
|
10481
|
-
insert(_el$16, createComponent(Search, {}), _el$17);
|
|
10482
|
-
_el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
|
|
10483
|
-
_el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
|
|
10484
|
-
insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
|
|
10485
|
-
const _el$38 = _tmpl$162(); _el$38.firstChild;
|
|
10486
|
-
_el$38.value = key;
|
|
10487
|
-
insert(_el$38, key, null);
|
|
10488
|
-
return _el$38;
|
|
10489
|
-
})()));
|
|
10490
|
-
insert(_el$18, createComponent(ChevronDown, {}), null);
|
|
10491
|
-
_el$20.$$click = () => {
|
|
10492
|
-
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
10493
|
-
};
|
|
10494
|
-
insert(_el$20, createComponent(Show, {
|
|
10495
|
-
get when() {
|
|
10496
|
-
return sortOrder() === 1;
|
|
10960
|
+
insert(_el$5, createComponent(ContentView, {
|
|
10961
|
+
get localStore() {
|
|
10962
|
+
return props.localStore;
|
|
10497
10963
|
},
|
|
10498
|
-
get
|
|
10499
|
-
return
|
|
10964
|
+
get setLocalStore() {
|
|
10965
|
+
return props.setLocalStore;
|
|
10500
10966
|
}
|
|
10501
10967
|
}), null);
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10968
|
+
createRenderEffect((_p$) => {
|
|
10969
|
+
const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
10970
|
+
[u`
|
|
10971
|
+
min-width: min-content;
|
|
10972
|
+
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
10973
|
+
}, "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");
|
|
10974
|
+
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
10975
|
+
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
10976
|
+
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
10977
|
+
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
10978
|
+
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
10979
|
+
return _p$;
|
|
10980
|
+
}, {
|
|
10981
|
+
_v$: void 0,
|
|
10982
|
+
_v$2: void 0,
|
|
10983
|
+
_v$3: void 0,
|
|
10984
|
+
_v$4: void 0,
|
|
10985
|
+
_v$5: void 0
|
|
10986
|
+
});
|
|
10987
|
+
return _el$5;
|
|
10988
|
+
})();
|
|
10989
|
+
};
|
|
10990
|
+
var ContentView = (props) => {
|
|
10991
|
+
setupQueryCacheSubscription();
|
|
10992
|
+
setupMutationCacheSubscription();
|
|
10993
|
+
const theme = useTheme();
|
|
10994
|
+
const styles = createMemo(() => {
|
|
10995
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10996
|
+
});
|
|
10997
|
+
const [selectedView, setSelectedView] = createSignal("queries");
|
|
10998
|
+
const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
|
|
10999
|
+
const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
|
|
11000
|
+
const mutationSort = createMemo(() => props.localStore.mutationSort || DEFAULT_MUTATION_SORT_FN_NAME);
|
|
11001
|
+
const mutationSortOrder = createMemo(() => Number(props.localStore.mutationSortOrder) || DEFAULT_SORT_ORDER);
|
|
11002
|
+
const [offline, setOffline] = createSignal(false);
|
|
11003
|
+
const sortFn = createMemo(() => sortFns[sort()]);
|
|
11004
|
+
const mutationSortFn = createMemo(() => mutationSortFns[mutationSort()]);
|
|
11005
|
+
const onlineManager = createMemo(() => useQueryDevtoolsContext().onlineManager);
|
|
11006
|
+
const query_cache = createMemo(() => {
|
|
11007
|
+
return useQueryDevtoolsContext().client.getQueryCache();
|
|
11008
|
+
});
|
|
11009
|
+
const mutation_cache = createMemo(() => {
|
|
11010
|
+
return useQueryDevtoolsContext().client.getMutationCache();
|
|
11011
|
+
});
|
|
11012
|
+
const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
|
|
11013
|
+
return queryCache().getAll().length;
|
|
11014
|
+
}, false);
|
|
11015
|
+
const queries = createMemo(on(() => [queryCount(), props.localStore.filter, sort(), sortOrder()], () => {
|
|
11016
|
+
const curr = query_cache().getAll();
|
|
11017
|
+
const filtered = props.localStore.filter ? curr.filter((item) => rankItem(item.queryHash, props.localStore.filter || "").passed) : [...curr];
|
|
11018
|
+
const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
|
|
11019
|
+
return sorted;
|
|
11020
|
+
}));
|
|
11021
|
+
const mutationCount = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11022
|
+
return mutationCache().getAll().length;
|
|
11023
|
+
}, false);
|
|
11024
|
+
const mutations = createMemo(on(() => [mutationCount(), props.localStore.mutationFilter, mutationSort(), mutationSortOrder()], () => {
|
|
11025
|
+
const curr = mutation_cache().getAll();
|
|
11026
|
+
const filtered = props.localStore.mutationFilter ? curr.filter((item) => {
|
|
11027
|
+
const value = `${item.options.mutationKey ? JSON.stringify(item.options.mutationKey) + " - " : ""}${new Date(item.state.submittedAt).toLocaleString()}`;
|
|
11028
|
+
return rankItem(value, props.localStore.mutationFilter || "").passed;
|
|
11029
|
+
}) : [...curr];
|
|
11030
|
+
const sorted = mutationSortFn() ? filtered.sort((a2, b2) => mutationSortFn()(a2, b2) * mutationSortOrder()) : filtered;
|
|
11031
|
+
return sorted;
|
|
11032
|
+
}));
|
|
11033
|
+
const setDevtoolsPosition = (pos) => {
|
|
11034
|
+
props.setLocalStore("position", pos);
|
|
11035
|
+
};
|
|
11036
|
+
return [(() => {
|
|
11037
|
+
const _el$8 = _tmpl$192(), _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.nextSibling, _el$14 = _el$13.firstChild, _el$15 = _el$9.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$17.nextSibling, _el$22 = _el$19.nextSibling, _el$25 = _el$16.nextSibling, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling;
|
|
11038
|
+
_el$11.$$click = () => props.setLocalStore("open", "false");
|
|
11039
|
+
insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
|
|
11040
|
+
insert(_el$13, () => useQueryDevtoolsContext().version, null);
|
|
11041
|
+
insert(_el$10, createComponent(index$7.Root, {
|
|
11042
|
+
get ["class"]() {
|
|
11043
|
+
return clsx(styles().viewToggle);
|
|
11044
|
+
},
|
|
11045
|
+
get value() {
|
|
11046
|
+
return selectedView();
|
|
11047
|
+
},
|
|
11048
|
+
onChange: (value) => {
|
|
11049
|
+
setSelectedView(value);
|
|
11050
|
+
setSelectedQueryHash(null);
|
|
11051
|
+
setSelectedMutationId(null);
|
|
11052
|
+
},
|
|
11053
|
+
get children() {
|
|
11054
|
+
return [createComponent(index$7.Item, {
|
|
11055
|
+
value: "queries",
|
|
11056
|
+
"class": "tsqd-radio-toggle",
|
|
11057
|
+
get children() {
|
|
11058
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
11059
|
+
get children() {
|
|
11060
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
11061
|
+
}
|
|
11062
|
+
}), createComponent(index$7.ItemLabel, {
|
|
11063
|
+
title: "Toggle Queries View",
|
|
11064
|
+
children: "Queries"
|
|
11065
|
+
})];
|
|
11066
|
+
}
|
|
11067
|
+
}), createComponent(index$7.Item, {
|
|
11068
|
+
value: "mutations",
|
|
11069
|
+
"class": "tsqd-radio-toggle",
|
|
11070
|
+
get children() {
|
|
11071
|
+
return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
|
|
11072
|
+
get children() {
|
|
11073
|
+
return createComponent(index$7.ItemIndicator, {});
|
|
11074
|
+
}
|
|
11075
|
+
}), createComponent(index$7.ItemLabel, {
|
|
11076
|
+
title: "Toggle Mutations View",
|
|
11077
|
+
children: "Mutations"
|
|
11078
|
+
})];
|
|
11079
|
+
}
|
|
11080
|
+
})];
|
|
11081
|
+
}
|
|
10509
11082
|
}), null);
|
|
10510
|
-
_el$
|
|
10511
|
-
|
|
11083
|
+
insert(_el$9, createComponent(Show, {
|
|
11084
|
+
get when() {
|
|
11085
|
+
return selectedView() === "queries";
|
|
11086
|
+
},
|
|
11087
|
+
get children() {
|
|
11088
|
+
return createComponent(QueryStatusCount, {});
|
|
11089
|
+
}
|
|
11090
|
+
}), null);
|
|
11091
|
+
insert(_el$9, createComponent(Show, {
|
|
11092
|
+
get when() {
|
|
11093
|
+
return selectedView() === "mutations";
|
|
11094
|
+
},
|
|
11095
|
+
get children() {
|
|
11096
|
+
return createComponent(MutationStatusCount, {});
|
|
11097
|
+
}
|
|
11098
|
+
}), null);
|
|
11099
|
+
insert(_el$17, createComponent(Search, {}), _el$18);
|
|
11100
|
+
_el$18.$$input = (e2) => {
|
|
11101
|
+
if (selectedView() === "queries") {
|
|
11102
|
+
props.setLocalStore("filter", e2.currentTarget.value);
|
|
11103
|
+
} else {
|
|
11104
|
+
props.setLocalStore("mutationFilter", e2.currentTarget.value);
|
|
11105
|
+
}
|
|
10512
11106
|
};
|
|
10513
|
-
insert(_el$
|
|
10514
|
-
|
|
11107
|
+
insert(_el$19, createComponent(Show, {
|
|
11108
|
+
get when() {
|
|
11109
|
+
return selectedView() === "queries";
|
|
11110
|
+
},
|
|
11111
|
+
get children() {
|
|
11112
|
+
const _el$20 = _tmpl$43();
|
|
11113
|
+
_el$20.addEventListener("change", (e2) => {
|
|
11114
|
+
props.setLocalStore("sort", e2.currentTarget.value);
|
|
11115
|
+
});
|
|
11116
|
+
insert(_el$20, () => Object.keys(sortFns).map((key) => (() => {
|
|
11117
|
+
const _el$42 = _tmpl$202(); _el$42.firstChild;
|
|
11118
|
+
_el$42.value = key;
|
|
11119
|
+
insert(_el$42, key, null);
|
|
11120
|
+
return _el$42;
|
|
11121
|
+
})()));
|
|
11122
|
+
createRenderEffect(() => _el$20.value = sort());
|
|
11123
|
+
return _el$20;
|
|
11124
|
+
}
|
|
11125
|
+
}), null);
|
|
11126
|
+
insert(_el$19, createComponent(Show, {
|
|
11127
|
+
get when() {
|
|
11128
|
+
return selectedView() === "mutations";
|
|
11129
|
+
},
|
|
11130
|
+
get children() {
|
|
11131
|
+
const _el$21 = _tmpl$43();
|
|
11132
|
+
_el$21.addEventListener("change", (e2) => {
|
|
11133
|
+
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
11134
|
+
});
|
|
11135
|
+
insert(_el$21, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
11136
|
+
const _el$44 = _tmpl$202(); _el$44.firstChild;
|
|
11137
|
+
_el$44.value = key;
|
|
11138
|
+
insert(_el$44, key, null);
|
|
11139
|
+
return _el$44;
|
|
11140
|
+
})()));
|
|
11141
|
+
createRenderEffect(() => _el$21.value = mutationSort());
|
|
11142
|
+
return _el$21;
|
|
11143
|
+
}
|
|
11144
|
+
}), null);
|
|
11145
|
+
insert(_el$19, createComponent(ChevronDown, {}), null);
|
|
11146
|
+
_el$22.$$click = () => {
|
|
11147
|
+
if (selectedView() === "queries") {
|
|
11148
|
+
props.setLocalStore("sortOrder", String(sortOrder() * -1));
|
|
11149
|
+
} else {
|
|
11150
|
+
props.setLocalStore("mutationSortOrder", String(mutationSortOrder() * -1));
|
|
11151
|
+
}
|
|
11152
|
+
};
|
|
11153
|
+
insert(_el$22, createComponent(Show, {
|
|
11154
|
+
get when() {
|
|
11155
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === 1;
|
|
11156
|
+
},
|
|
11157
|
+
get children() {
|
|
11158
|
+
return [_tmpl$53(), createComponent(ArrowUp, {})];
|
|
11159
|
+
}
|
|
11160
|
+
}), null);
|
|
11161
|
+
insert(_el$22, createComponent(Show, {
|
|
11162
|
+
get when() {
|
|
11163
|
+
return (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1;
|
|
11164
|
+
},
|
|
11165
|
+
get children() {
|
|
11166
|
+
return [_tmpl$63(), createComponent(ArrowDown, {})];
|
|
11167
|
+
}
|
|
11168
|
+
}), null);
|
|
11169
|
+
_el$26.$$click = () => {
|
|
11170
|
+
if (selectedView() === "queries") {
|
|
11171
|
+
query_cache().clear();
|
|
11172
|
+
} else {
|
|
11173
|
+
mutation_cache().clear();
|
|
11174
|
+
}
|
|
11175
|
+
};
|
|
11176
|
+
insert(_el$26, createComponent(Trash, {}));
|
|
11177
|
+
_el$27.$$click = () => {
|
|
10515
11178
|
if (offline()) {
|
|
10516
11179
|
onlineManager().setOnline(true);
|
|
10517
11180
|
setOffline(false);
|
|
@@ -10520,11 +11183,11 @@ var DevtoolsPanel = (props) => {
|
|
|
10520
11183
|
setOffline(true);
|
|
10521
11184
|
}
|
|
10522
11185
|
};
|
|
10523
|
-
insert(_el$
|
|
11186
|
+
insert(_el$27, (() => {
|
|
10524
11187
|
const _c$ = createMemo(() => !!offline());
|
|
10525
11188
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
10526
11189
|
})());
|
|
10527
|
-
insert(_el$
|
|
11190
|
+
insert(_el$25, createComponent(index$d.Root, {
|
|
10528
11191
|
gutter: 4,
|
|
10529
11192
|
get children() {
|
|
10530
11193
|
return [createComponent(index$d.Trigger, {
|
|
@@ -10542,9 +11205,9 @@ var DevtoolsPanel = (props) => {
|
|
|
10542
11205
|
},
|
|
10543
11206
|
get children() {
|
|
10544
11207
|
return [(() => {
|
|
10545
|
-
const _el$
|
|
10546
|
-
createRenderEffect(() => className(_el$
|
|
10547
|
-
return _el$
|
|
11208
|
+
const _el$28 = _tmpl$73();
|
|
11209
|
+
createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
11210
|
+
return _el$28;
|
|
10548
11211
|
})(), createComponent(index$d.Sub, {
|
|
10549
11212
|
overlap: true,
|
|
10550
11213
|
gutter: 8,
|
|
@@ -10555,7 +11218,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10555
11218
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10556
11219
|
},
|
|
10557
11220
|
get children() {
|
|
10558
|
-
return [_tmpl$
|
|
11221
|
+
return [_tmpl$83(), createComponent(ChevronDown, {})];
|
|
10559
11222
|
}
|
|
10560
11223
|
}), createComponent(index$d.Portal, {
|
|
10561
11224
|
get children() {
|
|
@@ -10573,7 +11236,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10573
11236
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10574
11237
|
},
|
|
10575
11238
|
get children() {
|
|
10576
|
-
return [_tmpl$
|
|
11239
|
+
return [_tmpl$93(), createComponent(ArrowUp, {})];
|
|
10577
11240
|
}
|
|
10578
11241
|
}), createComponent(index$d.Item, {
|
|
10579
11242
|
onSelect: () => {
|
|
@@ -10584,7 +11247,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10584
11247
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10585
11248
|
},
|
|
10586
11249
|
get children() {
|
|
10587
|
-
return [_tmpl$
|
|
11250
|
+
return [_tmpl$103(), createComponent(ArrowDown, {})];
|
|
10588
11251
|
}
|
|
10589
11252
|
}), createComponent(index$d.Item, {
|
|
10590
11253
|
onSelect: () => {
|
|
@@ -10595,7 +11258,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10595
11258
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10596
11259
|
},
|
|
10597
11260
|
get children() {
|
|
10598
|
-
return [_tmpl$
|
|
11261
|
+
return [_tmpl$113(), createComponent(ArrowLeft, {})];
|
|
10599
11262
|
}
|
|
10600
11263
|
}), createComponent(index$d.Item, {
|
|
10601
11264
|
onSelect: () => {
|
|
@@ -10606,7 +11269,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10606
11269
|
return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
|
|
10607
11270
|
},
|
|
10608
11271
|
get children() {
|
|
10609
|
-
return [_tmpl$
|
|
11272
|
+
return [_tmpl$122(), createComponent(ArrowRight, {})];
|
|
10610
11273
|
}
|
|
10611
11274
|
})];
|
|
10612
11275
|
}
|
|
@@ -10624,7 +11287,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10624
11287
|
return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
|
|
10625
11288
|
},
|
|
10626
11289
|
get children() {
|
|
10627
|
-
return [_tmpl$
|
|
11290
|
+
return [_tmpl$132(), createComponent(ChevronDown, {})];
|
|
10628
11291
|
}
|
|
10629
11292
|
}), createComponent(index$d.Portal, {
|
|
10630
11293
|
get children() {
|
|
@@ -10642,7 +11305,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10642
11305
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
|
|
10643
11306
|
},
|
|
10644
11307
|
get children() {
|
|
10645
|
-
return [_tmpl$
|
|
11308
|
+
return [_tmpl$142(), createComponent(Sun, {})];
|
|
10646
11309
|
}
|
|
10647
11310
|
}), createComponent(index$d.Item, {
|
|
10648
11311
|
onSelect: () => {
|
|
@@ -10653,7 +11316,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10653
11316
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
|
|
10654
11317
|
},
|
|
10655
11318
|
get children() {
|
|
10656
|
-
return [_tmpl$
|
|
11319
|
+
return [_tmpl$152(), createComponent(Moon, {})];
|
|
10657
11320
|
}
|
|
10658
11321
|
}), createComponent(index$d.Item, {
|
|
10659
11322
|
onSelect: () => {
|
|
@@ -10664,7 +11327,7 @@ var DevtoolsPanel = (props) => {
|
|
|
10664
11327
|
return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
|
|
10665
11328
|
},
|
|
10666
11329
|
get children() {
|
|
10667
|
-
return [_tmpl$
|
|
11330
|
+
return [_tmpl$162(), createComponent(Monitor, {})];
|
|
10668
11331
|
}
|
|
10669
11332
|
})];
|
|
10670
11333
|
}
|
|
@@ -10679,66 +11342,74 @@ var DevtoolsPanel = (props) => {
|
|
|
10679
11342
|
})];
|
|
10680
11343
|
}
|
|
10681
11344
|
}), null);
|
|
10682
|
-
insert(_el$
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
return queries();
|
|
11345
|
+
insert(_el$8, createComponent(Show, {
|
|
11346
|
+
get when() {
|
|
11347
|
+
return selectedView() === "queries";
|
|
10686
11348
|
},
|
|
10687
|
-
children
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
11349
|
+
get children() {
|
|
11350
|
+
const _el$38 = _tmpl$172(), _el$39 = _el$38.firstChild;
|
|
11351
|
+
insert(_el$39, createComponent(Key, {
|
|
11352
|
+
by: (q) => q.queryHash,
|
|
11353
|
+
get each() {
|
|
11354
|
+
return queries();
|
|
11355
|
+
},
|
|
11356
|
+
children: (query) => createComponent(QueryRow, {
|
|
11357
|
+
get query() {
|
|
11358
|
+
return query();
|
|
11359
|
+
}
|
|
11360
|
+
})
|
|
11361
|
+
}));
|
|
11362
|
+
createRenderEffect(() => className(_el$38, clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container")));
|
|
11363
|
+
return _el$38;
|
|
11364
|
+
}
|
|
11365
|
+
}), null);
|
|
11366
|
+
insert(_el$8, createComponent(Show, {
|
|
10694
11367
|
get when() {
|
|
10695
|
-
return
|
|
11368
|
+
return selectedView() === "mutations";
|
|
10696
11369
|
},
|
|
10697
11370
|
get children() {
|
|
10698
|
-
|
|
11371
|
+
const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild;
|
|
11372
|
+
insert(_el$41, createComponent(Key, {
|
|
11373
|
+
by: (m) => m.mutationId,
|
|
11374
|
+
get each() {
|
|
11375
|
+
return mutations();
|
|
11376
|
+
},
|
|
11377
|
+
children: (mutation) => createComponent(MutationRow, {
|
|
11378
|
+
get mutation() {
|
|
11379
|
+
return mutation();
|
|
11380
|
+
}
|
|
11381
|
+
})
|
|
11382
|
+
}));
|
|
11383
|
+
createRenderEffect(() => className(_el$40, clsx(styles().overflowQueryContainer, "tsqd-mutations-overflow-container")));
|
|
11384
|
+
return _el$40;
|
|
10699
11385
|
}
|
|
10700
11386
|
}), null);
|
|
10701
11387
|
createRenderEffect((_p$) => {
|
|
10702
|
-
const _v$ = clsx(styles().
|
|
10703
|
-
[u`
|
|
10704
|
-
min-width: min-content;
|
|
10705
|
-
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
10706
|
-
}, "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"), _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
|
|
11388
|
+
const _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && u`
|
|
10707
11389
|
height: 50%;
|
|
10708
11390
|
max-height: 50%;
|
|
10709
|
-
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$
|
|
10710
|
-
gap: ${tokens.size[2.5]};
|
|
10711
|
-
`, "tsqd-filters-actions-container"), _v$12 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container");
|
|
10712
|
-
_v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
|
|
10713
|
-
_v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
|
|
10714
|
-
_v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
|
|
10715
|
-
_v$4 !== _p$._v$4 && className(_el$6, _p$._v$4 = _v$4);
|
|
10716
|
-
_v$5 !== _p$._v$5 && className(_el$7, _p$._v$5 = _v$5);
|
|
11391
|
+
`, "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(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$16 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$17 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$18 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$19 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$20 = `Clear ${selectedView()} cache`, _v$21 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = offline(), _v$24 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
10717
11392
|
_v$6 !== _p$._v$6 && className(_el$8, _p$._v$6 = _v$6);
|
|
10718
11393
|
_v$7 !== _p$._v$7 && className(_el$9, _p$._v$7 = _v$7);
|
|
10719
11394
|
_v$8 !== _p$._v$8 && className(_el$10, _p$._v$8 = _v$8);
|
|
10720
11395
|
_v$9 !== _p$._v$9 && className(_el$11, _p$._v$9 = _v$9);
|
|
10721
11396
|
_v$10 !== _p$._v$10 && className(_el$12, _p$._v$10 = _v$10);
|
|
10722
|
-
_v$11 !== _p$._v$11 && className(_el$
|
|
11397
|
+
_v$11 !== _p$._v$11 && className(_el$13, _p$._v$11 = _v$11);
|
|
10723
11398
|
_v$12 !== _p$._v$12 && className(_el$15, _p$._v$12 = _v$12);
|
|
10724
11399
|
_v$13 !== _p$._v$13 && className(_el$16, _p$._v$13 = _v$13);
|
|
10725
|
-
_v$14 !== _p$._v$14 && className(_el$
|
|
10726
|
-
_v$15 !== _p$._v$15 &&
|
|
10727
|
-
_v$16 !== _p$._v$16 && setAttribute(_el$
|
|
10728
|
-
_v$17 !== _p$._v$17 &&
|
|
10729
|
-
_v$18 !== _p$._v$18 && className(_el$
|
|
10730
|
-
_v$19 !== _p$._v$19 && className(_el$
|
|
10731
|
-
_v$20 !== _p$._v$20 && setAttribute(_el$
|
|
10732
|
-
_v$21 !== _p$._v$21 &&
|
|
10733
|
-
_v$22 !== _p$._v$22 && setAttribute(_el$
|
|
10734
|
-
_v$23 !== _p$._v$23 &&
|
|
11400
|
+
_v$14 !== _p$._v$14 && className(_el$17, _p$._v$14 = _v$14);
|
|
11401
|
+
_v$15 !== _p$._v$15 && className(_el$19, _p$._v$15 = _v$15);
|
|
11402
|
+
_v$16 !== _p$._v$16 && setAttribute(_el$22, "aria-label", _p$._v$16 = _v$16);
|
|
11403
|
+
_v$17 !== _p$._v$17 && setAttribute(_el$22, "aria-pressed", _p$._v$17 = _v$17);
|
|
11404
|
+
_v$18 !== _p$._v$18 && className(_el$25, _p$._v$18 = _v$18);
|
|
11405
|
+
_v$19 !== _p$._v$19 && className(_el$26, _p$._v$19 = _v$19);
|
|
11406
|
+
_v$20 !== _p$._v$20 && setAttribute(_el$26, "title", _p$._v$20 = _v$20);
|
|
11407
|
+
_v$21 !== _p$._v$21 && className(_el$27, _p$._v$21 = _v$21);
|
|
11408
|
+
_v$22 !== _p$._v$22 && setAttribute(_el$27, "aria-label", _p$._v$22 = _v$22);
|
|
11409
|
+
_v$23 !== _p$._v$23 && setAttribute(_el$27, "aria-pressed", _p$._v$23 = _v$23);
|
|
11410
|
+
_v$24 !== _p$._v$24 && setAttribute(_el$27, "title", _p$._v$24 = _v$24);
|
|
10735
11411
|
return _p$;
|
|
10736
11412
|
}, {
|
|
10737
|
-
_v$: void 0,
|
|
10738
|
-
_v$2: void 0,
|
|
10739
|
-
_v$3: void 0,
|
|
10740
|
-
_v$4: void 0,
|
|
10741
|
-
_v$5: void 0,
|
|
10742
11413
|
_v$6: void 0,
|
|
10743
11414
|
_v$7: void 0,
|
|
10744
11415
|
_v$8: void 0,
|
|
@@ -10756,12 +11427,26 @@ var DevtoolsPanel = (props) => {
|
|
|
10756
11427
|
_v$20: void 0,
|
|
10757
11428
|
_v$21: void 0,
|
|
10758
11429
|
_v$22: void 0,
|
|
10759
|
-
_v$23: void 0
|
|
11430
|
+
_v$23: void 0,
|
|
11431
|
+
_v$24: void 0
|
|
10760
11432
|
});
|
|
10761
|
-
createRenderEffect(() => _el$
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
11433
|
+
createRenderEffect(() => _el$18.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
11434
|
+
return _el$8;
|
|
11435
|
+
})(), createComponent(Show, {
|
|
11436
|
+
get when() {
|
|
11437
|
+
return createMemo(() => selectedView() === "queries")() && selectedQueryHash();
|
|
11438
|
+
},
|
|
11439
|
+
get children() {
|
|
11440
|
+
return createComponent(QueryDetails, {});
|
|
11441
|
+
}
|
|
11442
|
+
}), createComponent(Show, {
|
|
11443
|
+
get when() {
|
|
11444
|
+
return createMemo(() => selectedView() === "mutations")() && selectedMutationId();
|
|
11445
|
+
},
|
|
11446
|
+
get children() {
|
|
11447
|
+
return createComponent(MutationDetails, {});
|
|
11448
|
+
}
|
|
11449
|
+
})];
|
|
10765
11450
|
};
|
|
10766
11451
|
var QueryRow = (props) => {
|
|
10767
11452
|
const theme = useTheme();
|
|
@@ -10807,30 +11492,140 @@ var QueryRow = (props) => {
|
|
|
10807
11492
|
return queryState();
|
|
10808
11493
|
},
|
|
10809
11494
|
get children() {
|
|
10810
|
-
const _el$
|
|
10811
|
-
_el$
|
|
10812
|
-
insert(_el$
|
|
10813
|
-
insert(_el$
|
|
10814
|
-
insert(_el$
|
|
11495
|
+
const _el$46 = _tmpl$222(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
11496
|
+
_el$46.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
11497
|
+
insert(_el$47, observers);
|
|
11498
|
+
insert(_el$48, () => props.query.queryHash);
|
|
11499
|
+
insert(_el$46, createComponent(Show, {
|
|
10815
11500
|
get when() {
|
|
10816
11501
|
return isDisabled();
|
|
10817
11502
|
},
|
|
10818
11503
|
get children() {
|
|
10819
|
-
return _tmpl$
|
|
11504
|
+
return _tmpl$212();
|
|
10820
11505
|
}
|
|
10821
11506
|
}), null);
|
|
10822
11507
|
createRenderEffect((_p$) => {
|
|
10823
|
-
const _v$
|
|
10824
|
-
_v$
|
|
10825
|
-
_v$
|
|
10826
|
-
_v$
|
|
11508
|
+
const _v$25 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$26 = `Query key ${props.query.queryHash}`, _v$27 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
11509
|
+
_v$25 !== _p$._v$25 && className(_el$46, _p$._v$25 = _v$25);
|
|
11510
|
+
_v$26 !== _p$._v$26 && setAttribute(_el$46, "aria-label", _p$._v$26 = _v$26);
|
|
11511
|
+
_v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
|
|
10827
11512
|
return _p$;
|
|
10828
11513
|
}, {
|
|
10829
|
-
_v$24: void 0,
|
|
10830
11514
|
_v$25: void 0,
|
|
10831
|
-
_v$26: void 0
|
|
11515
|
+
_v$26: void 0,
|
|
11516
|
+
_v$27: void 0
|
|
10832
11517
|
});
|
|
10833
|
-
return _el$
|
|
11518
|
+
return _el$46;
|
|
11519
|
+
}
|
|
11520
|
+
});
|
|
11521
|
+
};
|
|
11522
|
+
var MutationRow = (props) => {
|
|
11523
|
+
const theme = useTheme();
|
|
11524
|
+
const styles = createMemo(() => {
|
|
11525
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11526
|
+
});
|
|
11527
|
+
const {
|
|
11528
|
+
colors,
|
|
11529
|
+
alpha
|
|
11530
|
+
} = tokens;
|
|
11531
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
11532
|
+
const mutationState = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11533
|
+
const mutations = mutationCache().getAll();
|
|
11534
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11535
|
+
return mutation?.state;
|
|
11536
|
+
});
|
|
11537
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11538
|
+
const mutations = mutationCache().getAll();
|
|
11539
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11540
|
+
if (!mutation)
|
|
11541
|
+
return false;
|
|
11542
|
+
return mutation.state.isPaused;
|
|
11543
|
+
});
|
|
11544
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
11545
|
+
const mutations = mutationCache().getAll();
|
|
11546
|
+
const mutation = mutations.find((m) => m.mutationId === props.mutation.mutationId);
|
|
11547
|
+
if (!mutation)
|
|
11548
|
+
return "idle";
|
|
11549
|
+
return mutation.state.status;
|
|
11550
|
+
});
|
|
11551
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
11552
|
+
isPaused: isPaused(),
|
|
11553
|
+
status: status()
|
|
11554
|
+
}));
|
|
11555
|
+
const getObserverCountColorStyles = () => {
|
|
11556
|
+
if (color() === "gray") {
|
|
11557
|
+
return u`
|
|
11558
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
11559
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
11560
|
+
`;
|
|
11561
|
+
}
|
|
11562
|
+
return u`
|
|
11563
|
+
background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
|
|
11564
|
+
color: ${t2(colors[color()][800], colors[color()][300])};
|
|
11565
|
+
`;
|
|
11566
|
+
};
|
|
11567
|
+
return createComponent(Show, {
|
|
11568
|
+
get when() {
|
|
11569
|
+
return mutationState();
|
|
11570
|
+
},
|
|
11571
|
+
get children() {
|
|
11572
|
+
const _el$50 = _tmpl$222(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling;
|
|
11573
|
+
_el$50.$$click = () => {
|
|
11574
|
+
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
11575
|
+
};
|
|
11576
|
+
insert(_el$51, createComponent(Show, {
|
|
11577
|
+
get when() {
|
|
11578
|
+
return color() === "purple";
|
|
11579
|
+
},
|
|
11580
|
+
get children() {
|
|
11581
|
+
return createComponent(PauseCircle, {});
|
|
11582
|
+
}
|
|
11583
|
+
}), null);
|
|
11584
|
+
insert(_el$51, createComponent(Show, {
|
|
11585
|
+
get when() {
|
|
11586
|
+
return color() === "green";
|
|
11587
|
+
},
|
|
11588
|
+
get children() {
|
|
11589
|
+
return createComponent(CheckCircle, {});
|
|
11590
|
+
}
|
|
11591
|
+
}), null);
|
|
11592
|
+
insert(_el$51, createComponent(Show, {
|
|
11593
|
+
get when() {
|
|
11594
|
+
return color() === "red";
|
|
11595
|
+
},
|
|
11596
|
+
get children() {
|
|
11597
|
+
return createComponent(XCircle, {});
|
|
11598
|
+
}
|
|
11599
|
+
}), null);
|
|
11600
|
+
insert(_el$51, createComponent(Show, {
|
|
11601
|
+
get when() {
|
|
11602
|
+
return color() === "yellow";
|
|
11603
|
+
},
|
|
11604
|
+
get children() {
|
|
11605
|
+
return createComponent(LoadingCircle, {});
|
|
11606
|
+
}
|
|
11607
|
+
}), null);
|
|
11608
|
+
insert(_el$52, createComponent(Show, {
|
|
11609
|
+
get when() {
|
|
11610
|
+
return props.mutation.options.mutationKey;
|
|
11611
|
+
},
|
|
11612
|
+
get children() {
|
|
11613
|
+
return [createMemo(() => JSON.stringify(props.mutation.options.mutationKey)), " -", " "];
|
|
11614
|
+
}
|
|
11615
|
+
}), null);
|
|
11616
|
+
insert(_el$52, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
11617
|
+
createRenderEffect((_p$) => {
|
|
11618
|
+
const _v$28 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$29 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$30 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
11619
|
+
_v$28 !== _p$._v$28 && className(_el$50, _p$._v$28 = _v$28);
|
|
11620
|
+
_v$29 !== _p$._v$29 && setAttribute(_el$50, "aria-label", _p$._v$29 = _v$29);
|
|
11621
|
+
_v$30 !== _p$._v$30 && className(_el$51, _p$._v$30 = _v$30);
|
|
11622
|
+
return _p$;
|
|
11623
|
+
}, {
|
|
11624
|
+
_v$28: void 0,
|
|
11625
|
+
_v$29: void 0,
|
|
11626
|
+
_v$30: void 0
|
|
11627
|
+
});
|
|
11628
|
+
return _el$50;
|
|
10834
11629
|
}
|
|
10835
11630
|
});
|
|
10836
11631
|
};
|
|
@@ -10845,44 +11640,99 @@ var QueryStatusCount = () => {
|
|
|
10845
11640
|
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
10846
11641
|
});
|
|
10847
11642
|
return (() => {
|
|
10848
|
-
const _el$
|
|
10849
|
-
insert(_el$
|
|
11643
|
+
const _el$53 = _tmpl$25();
|
|
11644
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10850
11645
|
label: "Fresh",
|
|
10851
11646
|
color: "green",
|
|
10852
11647
|
get count() {
|
|
10853
11648
|
return fresh();
|
|
10854
11649
|
}
|
|
10855
11650
|
}), null);
|
|
10856
|
-
insert(_el$
|
|
11651
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10857
11652
|
label: "Fetching",
|
|
10858
11653
|
color: "blue",
|
|
10859
11654
|
get count() {
|
|
10860
11655
|
return fetching();
|
|
10861
11656
|
}
|
|
10862
11657
|
}), null);
|
|
10863
|
-
insert(_el$
|
|
11658
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10864
11659
|
label: "Paused",
|
|
10865
11660
|
color: "purple",
|
|
10866
11661
|
get count() {
|
|
10867
11662
|
return paused();
|
|
10868
11663
|
}
|
|
10869
11664
|
}), null);
|
|
10870
|
-
insert(_el$
|
|
11665
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10871
11666
|
label: "Stale",
|
|
10872
11667
|
color: "yellow",
|
|
10873
11668
|
get count() {
|
|
10874
11669
|
return stale();
|
|
10875
11670
|
}
|
|
10876
11671
|
}), null);
|
|
10877
|
-
insert(_el$
|
|
11672
|
+
insert(_el$53, createComponent(QueryStatus, {
|
|
10878
11673
|
label: "Inactive",
|
|
10879
11674
|
color: "gray",
|
|
10880
11675
|
get count() {
|
|
10881
11676
|
return inactive();
|
|
10882
11677
|
}
|
|
10883
11678
|
}), null);
|
|
10884
|
-
createRenderEffect(() => className(_el$
|
|
10885
|
-
return _el$
|
|
11679
|
+
createRenderEffect(() => className(_el$53, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
11680
|
+
return _el$53;
|
|
11681
|
+
})();
|
|
11682
|
+
};
|
|
11683
|
+
var MutationStatusCount = () => {
|
|
11684
|
+
const success = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11685
|
+
isPaused: m.state.isPaused,
|
|
11686
|
+
status: m.state.status
|
|
11687
|
+
}) === "green").length);
|
|
11688
|
+
const pending = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11689
|
+
isPaused: m.state.isPaused,
|
|
11690
|
+
status: m.state.status
|
|
11691
|
+
}) === "yellow").length);
|
|
11692
|
+
const paused = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11693
|
+
isPaused: m.state.isPaused,
|
|
11694
|
+
status: m.state.status
|
|
11695
|
+
}) === "purple").length);
|
|
11696
|
+
const error = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().filter((m) => getMutationStatusColor({
|
|
11697
|
+
isPaused: m.state.isPaused,
|
|
11698
|
+
status: m.state.status
|
|
11699
|
+
}) === "red").length);
|
|
11700
|
+
const theme = useTheme();
|
|
11701
|
+
const styles = createMemo(() => {
|
|
11702
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
11703
|
+
});
|
|
11704
|
+
return (() => {
|
|
11705
|
+
const _el$54 = _tmpl$25();
|
|
11706
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11707
|
+
label: "Paused",
|
|
11708
|
+
color: "purple",
|
|
11709
|
+
get count() {
|
|
11710
|
+
return paused();
|
|
11711
|
+
}
|
|
11712
|
+
}), null);
|
|
11713
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11714
|
+
label: "Pending",
|
|
11715
|
+
color: "yellow",
|
|
11716
|
+
get count() {
|
|
11717
|
+
return pending();
|
|
11718
|
+
}
|
|
11719
|
+
}), null);
|
|
11720
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11721
|
+
label: "Success",
|
|
11722
|
+
color: "green",
|
|
11723
|
+
get count() {
|
|
11724
|
+
return success();
|
|
11725
|
+
}
|
|
11726
|
+
}), null);
|
|
11727
|
+
insert(_el$54, createComponent(QueryStatus, {
|
|
11728
|
+
label: "Error",
|
|
11729
|
+
color: "red",
|
|
11730
|
+
get count() {
|
|
11731
|
+
return error();
|
|
11732
|
+
}
|
|
11733
|
+
}), null);
|
|
11734
|
+
createRenderEffect(() => className(_el$54, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
|
|
11735
|
+
return _el$54;
|
|
10886
11736
|
})();
|
|
10887
11737
|
};
|
|
10888
11738
|
var QueryStatus = (props) => {
|
|
@@ -10910,17 +11760,17 @@ var QueryStatus = (props) => {
|
|
|
10910
11760
|
return true;
|
|
10911
11761
|
});
|
|
10912
11762
|
return (() => {
|
|
10913
|
-
const _el$
|
|
10914
|
-
const _ref$
|
|
10915
|
-
typeof _ref$
|
|
10916
|
-
_el$
|
|
11763
|
+
const _el$55 = _tmpl$252(), _el$57 = _el$55.firstChild, _el$59 = _el$57.nextSibling;
|
|
11764
|
+
const _ref$2 = tagRef;
|
|
11765
|
+
typeof _ref$2 === "function" ? use(_ref$2, _el$55) : tagRef = _el$55;
|
|
11766
|
+
_el$55.addEventListener("mouseleave", () => {
|
|
10917
11767
|
setMouseOver(false);
|
|
10918
11768
|
setFocused(false);
|
|
10919
11769
|
});
|
|
10920
|
-
_el$
|
|
10921
|
-
_el$
|
|
10922
|
-
_el$
|
|
10923
|
-
spread(_el$
|
|
11770
|
+
_el$55.addEventListener("mouseenter", () => setMouseOver(true));
|
|
11771
|
+
_el$55.addEventListener("blur", () => setFocused(false));
|
|
11772
|
+
_el$55.addEventListener("focus", () => setFocused(true));
|
|
11773
|
+
spread(_el$55, mergeProps({
|
|
10924
11774
|
get disabled() {
|
|
10925
11775
|
return showLabel();
|
|
10926
11776
|
},
|
|
@@ -10935,47 +11785,47 @@ var QueryStatus = (props) => {
|
|
|
10935
11785
|
}, () => mouseOver() || focused() ? {
|
|
10936
11786
|
"aria-describedby": "tsqd-status-tooltip"
|
|
10937
11787
|
} : {}), false, true);
|
|
10938
|
-
insert(_el$
|
|
11788
|
+
insert(_el$55, createComponent(Show, {
|
|
10939
11789
|
get when() {
|
|
10940
11790
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
10941
11791
|
},
|
|
10942
11792
|
get children() {
|
|
10943
|
-
const _el$
|
|
10944
|
-
insert(_el$
|
|
10945
|
-
createRenderEffect(() => className(_el$
|
|
10946
|
-
return _el$
|
|
11793
|
+
const _el$56 = _tmpl$232();
|
|
11794
|
+
insert(_el$56, () => props.label);
|
|
11795
|
+
createRenderEffect(() => className(_el$56, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
11796
|
+
return _el$56;
|
|
10947
11797
|
}
|
|
10948
|
-
}), _el$
|
|
10949
|
-
insert(_el$
|
|
11798
|
+
}), _el$57);
|
|
11799
|
+
insert(_el$55, createComponent(Show, {
|
|
10950
11800
|
get when() {
|
|
10951
11801
|
return showLabel();
|
|
10952
11802
|
},
|
|
10953
11803
|
get children() {
|
|
10954
|
-
const _el$
|
|
10955
|
-
insert(_el$
|
|
10956
|
-
createRenderEffect(() => className(_el$
|
|
10957
|
-
return _el$
|
|
11804
|
+
const _el$58 = _tmpl$242();
|
|
11805
|
+
insert(_el$58, () => props.label);
|
|
11806
|
+
createRenderEffect(() => className(_el$58, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
11807
|
+
return _el$58;
|
|
10958
11808
|
}
|
|
10959
|
-
}), _el$
|
|
10960
|
-
insert(_el$
|
|
11809
|
+
}), _el$59);
|
|
11810
|
+
insert(_el$59, () => props.count);
|
|
10961
11811
|
createRenderEffect((_p$) => {
|
|
10962
|
-
const _v$
|
|
11812
|
+
const _v$31 = clsx(u`
|
|
10963
11813
|
width: ${tokens.size[1.5]};
|
|
10964
11814
|
height: ${tokens.size[1.5]};
|
|
10965
11815
|
border-radius: ${tokens.border.radius.full};
|
|
10966
11816
|
background-color: ${tokens.colors[props.color][500]};
|
|
10967
|
-
`, "tsqd-query-status-tag-dot"), _v$
|
|
11817
|
+
`, "tsqd-query-status-tag-dot"), _v$32 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
|
|
10968
11818
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10969
11819
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10970
11820
|
`, "tsqd-query-status-tag-count");
|
|
10971
|
-
_v$
|
|
10972
|
-
_v$
|
|
11821
|
+
_v$31 !== _p$._v$31 && className(_el$57, _p$._v$31 = _v$31);
|
|
11822
|
+
_v$32 !== _p$._v$32 && className(_el$59, _p$._v$32 = _v$32);
|
|
10973
11823
|
return _p$;
|
|
10974
11824
|
}, {
|
|
10975
|
-
_v$
|
|
10976
|
-
_v$
|
|
11825
|
+
_v$31: void 0,
|
|
11826
|
+
_v$32: void 0
|
|
10977
11827
|
});
|
|
10978
|
-
return _el$
|
|
11828
|
+
return _el$55;
|
|
10979
11829
|
})();
|
|
10980
11830
|
};
|
|
10981
11831
|
var QueryDetails = () => {
|
|
@@ -11062,19 +11912,19 @@ var QueryDetails = () => {
|
|
|
11062
11912
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
11063
11913
|
},
|
|
11064
11914
|
get children() {
|
|
11065
|
-
const _el$
|
|
11066
|
-
insert(_el$
|
|
11067
|
-
insert(_el$
|
|
11068
|
-
insert(_el$
|
|
11069
|
-
insert(_el$
|
|
11070
|
-
_el$
|
|
11071
|
-
_el$
|
|
11072
|
-
_el$
|
|
11073
|
-
_el$
|
|
11915
|
+
const _el$60 = _tmpl$28(), _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.firstChild, _el$64 = _el$63.firstChild, _el$65 = _el$64.firstChild, _el$66 = _el$64.nextSibling, _el$67 = _el$63.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$68.nextSibling, _el$70 = _el$67.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$62.nextSibling, _el$74 = _el$73.nextSibling, _el$75 = _el$74.firstChild, _el$76 = _el$75.firstChild, _el$77 = _el$75.nextSibling, _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$84.nextSibling, _el$94 = _el$74.nextSibling, _el$95 = _el$94.nextSibling, _el$96 = _el$95.nextSibling, _el$97 = _el$96.nextSibling;
|
|
11916
|
+
insert(_el$65, () => displayValue(activeQuery().queryKey, true));
|
|
11917
|
+
insert(_el$66, statusLabel);
|
|
11918
|
+
insert(_el$69, observerCount);
|
|
11919
|
+
insert(_el$72, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
|
|
11920
|
+
_el$75.$$click = handleRefetch;
|
|
11921
|
+
_el$77.$$click = () => queryClient.invalidateQueries(activeQuery());
|
|
11922
|
+
_el$79.$$click = () => queryClient.resetQueries(activeQuery());
|
|
11923
|
+
_el$81.$$click = () => {
|
|
11074
11924
|
queryClient.removeQueries(activeQuery());
|
|
11075
11925
|
setSelectedQueryHash(null);
|
|
11076
11926
|
};
|
|
11077
|
-
_el$
|
|
11927
|
+
_el$83.$$click = () => {
|
|
11078
11928
|
if (activeQuery()?.state.data === void 0) {
|
|
11079
11929
|
setRestoringLoading(true);
|
|
11080
11930
|
restoreQueryAfterLoadingOrError();
|
|
@@ -11102,79 +11952,79 @@ var QueryDetails = () => {
|
|
|
11102
11952
|
});
|
|
11103
11953
|
}
|
|
11104
11954
|
};
|
|
11105
|
-
insert(_el$
|
|
11106
|
-
insert(_el$
|
|
11955
|
+
insert(_el$83, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$85);
|
|
11956
|
+
insert(_el$74, createComponent(Show, {
|
|
11107
11957
|
get when() {
|
|
11108
11958
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
11109
11959
|
},
|
|
11110
11960
|
get children() {
|
|
11111
|
-
const _el$
|
|
11112
|
-
_el$
|
|
11961
|
+
const _el$86 = _tmpl$26(), _el$87 = _el$86.firstChild, _el$88 = _el$87.nextSibling;
|
|
11962
|
+
_el$86.$$click = () => {
|
|
11113
11963
|
if (!activeQuery().state.error) {
|
|
11114
11964
|
triggerError();
|
|
11115
11965
|
} else {
|
|
11116
11966
|
queryClient.resetQueries(activeQuery());
|
|
11117
11967
|
}
|
|
11118
11968
|
};
|
|
11119
|
-
insert(_el$
|
|
11969
|
+
insert(_el$86, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$88);
|
|
11120
11970
|
createRenderEffect((_p$) => {
|
|
11121
|
-
const _v$
|
|
11971
|
+
const _v$33 = clsx(u`
|
|
11122
11972
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
11123
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$
|
|
11973
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$34 = queryStatus() === "pending", _v$35 = u`
|
|
11124
11974
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
11125
11975
|
`;
|
|
11126
|
-
_v$
|
|
11127
|
-
_v$
|
|
11128
|
-
_v$
|
|
11976
|
+
_v$33 !== _p$._v$33 && className(_el$86, _p$._v$33 = _v$33);
|
|
11977
|
+
_v$34 !== _p$._v$34 && (_el$86.disabled = _p$._v$34 = _v$34);
|
|
11978
|
+
_v$35 !== _p$._v$35 && className(_el$87, _p$._v$35 = _v$35);
|
|
11129
11979
|
return _p$;
|
|
11130
11980
|
}, {
|
|
11131
|
-
_v$
|
|
11132
|
-
_v$
|
|
11133
|
-
_v$
|
|
11981
|
+
_v$33: void 0,
|
|
11982
|
+
_v$34: void 0,
|
|
11983
|
+
_v$35: void 0
|
|
11134
11984
|
});
|
|
11135
|
-
return _el$
|
|
11985
|
+
return _el$86;
|
|
11136
11986
|
}
|
|
11137
11987
|
}), null);
|
|
11138
|
-
insert(_el$
|
|
11988
|
+
insert(_el$74, createComponent(Show, {
|
|
11139
11989
|
get when() {
|
|
11140
11990
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
11141
11991
|
},
|
|
11142
11992
|
get children() {
|
|
11143
|
-
const _el$
|
|
11144
|
-
_el$
|
|
11993
|
+
const _el$89 = _tmpl$27(), _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling; _el$92.firstChild;
|
|
11994
|
+
_el$92.addEventListener("change", (e2) => {
|
|
11145
11995
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
11146
11996
|
triggerError(errorType);
|
|
11147
11997
|
});
|
|
11148
|
-
insert(_el$
|
|
11998
|
+
insert(_el$92, createComponent(For, {
|
|
11149
11999
|
get each() {
|
|
11150
12000
|
return errorTypes();
|
|
11151
12001
|
},
|
|
11152
12002
|
children: (errorType) => (() => {
|
|
11153
|
-
const _el$
|
|
11154
|
-
insert(_el$
|
|
11155
|
-
createRenderEffect(() => _el$
|
|
11156
|
-
return _el$
|
|
12003
|
+
const _el$98 = _tmpl$29();
|
|
12004
|
+
insert(_el$98, () => errorType.name);
|
|
12005
|
+
createRenderEffect(() => _el$98.value = errorType.name);
|
|
12006
|
+
return _el$98;
|
|
11157
12007
|
})()
|
|
11158
12008
|
}), null);
|
|
11159
|
-
insert(_el$
|
|
12009
|
+
insert(_el$89, createComponent(ChevronDown, {}), null);
|
|
11160
12010
|
createRenderEffect((_p$) => {
|
|
11161
|
-
const _v$
|
|
12011
|
+
const _v$36 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$37 = u`
|
|
11162
12012
|
background-color: ${tokens.colors.red[400]};
|
|
11163
|
-
`, _v$
|
|
11164
|
-
_v$
|
|
11165
|
-
_v$
|
|
11166
|
-
_v$
|
|
12013
|
+
`, _v$38 = queryStatus() === "pending";
|
|
12014
|
+
_v$36 !== _p$._v$36 && className(_el$89, _p$._v$36 = _v$36);
|
|
12015
|
+
_v$37 !== _p$._v$37 && className(_el$90, _p$._v$37 = _v$37);
|
|
12016
|
+
_v$38 !== _p$._v$38 && (_el$92.disabled = _p$._v$38 = _v$38);
|
|
11167
12017
|
return _p$;
|
|
11168
12018
|
}, {
|
|
11169
|
-
_v$
|
|
11170
|
-
_v$
|
|
11171
|
-
_v$
|
|
12019
|
+
_v$36: void 0,
|
|
12020
|
+
_v$37: void 0,
|
|
12021
|
+
_v$38: void 0
|
|
11172
12022
|
});
|
|
11173
|
-
return _el$
|
|
12023
|
+
return _el$89;
|
|
11174
12024
|
}
|
|
11175
12025
|
}), null);
|
|
11176
|
-
_el$
|
|
11177
|
-
insert(_el$
|
|
12026
|
+
_el$95.style.setProperty("padding", "0.5rem");
|
|
12027
|
+
insert(_el$95, createComponent(Explorer, {
|
|
11178
12028
|
label: "Data",
|
|
11179
12029
|
defaultExpanded: ["Data"],
|
|
11180
12030
|
get value() {
|
|
@@ -11185,8 +12035,8 @@ var QueryDetails = () => {
|
|
|
11185
12035
|
return activeQuery();
|
|
11186
12036
|
}
|
|
11187
12037
|
}));
|
|
11188
|
-
_el$
|
|
11189
|
-
insert(_el$
|
|
12038
|
+
_el$97.style.setProperty("padding", "0.5rem");
|
|
12039
|
+
insert(_el$97, createComponent(Explorer, {
|
|
11190
12040
|
label: "Query",
|
|
11191
12041
|
defaultExpanded: ["Query", "queryKey"],
|
|
11192
12042
|
get value() {
|
|
@@ -11194,56 +12044,52 @@ var QueryDetails = () => {
|
|
|
11194
12044
|
}
|
|
11195
12045
|
}));
|
|
11196
12046
|
createRenderEffect((_p$) => {
|
|
11197
|
-
const _v$
|
|
12047
|
+
const _v$39 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$40 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$41 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$42 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$43 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$44 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$45 = clsx(u`
|
|
11198
12048
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11199
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$
|
|
12049
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$46 = statusLabel() === "fetching", _v$47 = u`
|
|
11200
12050
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
11201
|
-
`, _v$
|
|
12051
|
+
`, _v$48 = clsx(u`
|
|
11202
12052
|
color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11203
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$
|
|
12053
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$49 = queryStatus() === "pending", _v$50 = u`
|
|
11204
12054
|
background-color: ${t2(colors.yellow[600], colors.yellow[400])};
|
|
11205
|
-
`, _v$
|
|
12055
|
+
`, _v$51 = clsx(u`
|
|
11206
12056
|
color: ${t2(colors.gray[600], colors.gray[300])};
|
|
11207
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$
|
|
12057
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$52 = queryStatus() === "pending", _v$53 = u`
|
|
11208
12058
|
background-color: ${t2(colors.gray[600], colors.gray[400])};
|
|
11209
|
-
`, _v$
|
|
12059
|
+
`, _v$54 = clsx(u`
|
|
11210
12060
|
color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11211
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$
|
|
12061
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$55 = statusLabel() === "fetching", _v$56 = u`
|
|
11212
12062
|
background-color: ${t2(colors.pink[500], colors.pink[400])};
|
|
11213
|
-
`, _v$
|
|
12063
|
+
`, _v$57 = clsx(u`
|
|
11214
12064
|
color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11215
|
-
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$
|
|
12065
|
+
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$58 = restoringLoading(), _v$59 = u`
|
|
11216
12066
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
11217
|
-
`, _v$
|
|
11218
|
-
_v$
|
|
11219
|
-
_v$
|
|
11220
|
-
_v$
|
|
11221
|
-
_v$
|
|
11222
|
-
_v$
|
|
11223
|
-
_v$
|
|
11224
|
-
_v$
|
|
11225
|
-
_v$
|
|
11226
|
-
_v$
|
|
11227
|
-
_v$
|
|
11228
|
-
_v$
|
|
11229
|
-
_v$
|
|
11230
|
-
_v$
|
|
11231
|
-
_v$
|
|
11232
|
-
_v$
|
|
11233
|
-
_v$
|
|
11234
|
-
_v$
|
|
11235
|
-
_v$
|
|
11236
|
-
_v$
|
|
11237
|
-
_v$
|
|
11238
|
-
_v$
|
|
11239
|
-
_v$
|
|
11240
|
-
_v$
|
|
12067
|
+
`, _v$60 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header");
|
|
12068
|
+
_v$39 !== _p$._v$39 && className(_el$60, _p$._v$39 = _v$39);
|
|
12069
|
+
_v$40 !== _p$._v$40 && className(_el$61, _p$._v$40 = _v$40);
|
|
12070
|
+
_v$41 !== _p$._v$41 && className(_el$62, _p$._v$41 = _v$41);
|
|
12071
|
+
_v$42 !== _p$._v$42 && className(_el$66, _p$._v$42 = _v$42);
|
|
12072
|
+
_v$43 !== _p$._v$43 && className(_el$73, _p$._v$43 = _v$43);
|
|
12073
|
+
_v$44 !== _p$._v$44 && className(_el$74, _p$._v$44 = _v$44);
|
|
12074
|
+
_v$45 !== _p$._v$45 && className(_el$75, _p$._v$45 = _v$45);
|
|
12075
|
+
_v$46 !== _p$._v$46 && (_el$75.disabled = _p$._v$46 = _v$46);
|
|
12076
|
+
_v$47 !== _p$._v$47 && className(_el$76, _p$._v$47 = _v$47);
|
|
12077
|
+
_v$48 !== _p$._v$48 && className(_el$77, _p$._v$48 = _v$48);
|
|
12078
|
+
_v$49 !== _p$._v$49 && (_el$77.disabled = _p$._v$49 = _v$49);
|
|
12079
|
+
_v$50 !== _p$._v$50 && className(_el$78, _p$._v$50 = _v$50);
|
|
12080
|
+
_v$51 !== _p$._v$51 && className(_el$79, _p$._v$51 = _v$51);
|
|
12081
|
+
_v$52 !== _p$._v$52 && (_el$79.disabled = _p$._v$52 = _v$52);
|
|
12082
|
+
_v$53 !== _p$._v$53 && className(_el$80, _p$._v$53 = _v$53);
|
|
12083
|
+
_v$54 !== _p$._v$54 && className(_el$81, _p$._v$54 = _v$54);
|
|
12084
|
+
_v$55 !== _p$._v$55 && (_el$81.disabled = _p$._v$55 = _v$55);
|
|
12085
|
+
_v$56 !== _p$._v$56 && className(_el$82, _p$._v$56 = _v$56);
|
|
12086
|
+
_v$57 !== _p$._v$57 && className(_el$83, _p$._v$57 = _v$57);
|
|
12087
|
+
_v$58 !== _p$._v$58 && (_el$83.disabled = _p$._v$58 = _v$58);
|
|
12088
|
+
_v$59 !== _p$._v$59 && className(_el$84, _p$._v$59 = _v$59);
|
|
12089
|
+
_v$60 !== _p$._v$60 && className(_el$94, _p$._v$60 = _v$60);
|
|
12090
|
+
_v$61 !== _p$._v$61 && className(_el$96, _p$._v$61 = _v$61);
|
|
11241
12091
|
return _p$;
|
|
11242
12092
|
}, {
|
|
11243
|
-
_v$35: void 0,
|
|
11244
|
-
_v$36: void 0,
|
|
11245
|
-
_v$37: void 0,
|
|
11246
|
-
_v$38: void 0,
|
|
11247
12093
|
_v$39: void 0,
|
|
11248
12094
|
_v$40: void 0,
|
|
11249
12095
|
_v$41: void 0,
|
|
@@ -11262,27 +12108,160 @@ var QueryDetails = () => {
|
|
|
11262
12108
|
_v$54: void 0,
|
|
11263
12109
|
_v$55: void 0,
|
|
11264
12110
|
_v$56: void 0,
|
|
11265
|
-
_v$57: void 0
|
|
12111
|
+
_v$57: void 0,
|
|
12112
|
+
_v$58: void 0,
|
|
12113
|
+
_v$59: void 0,
|
|
12114
|
+
_v$60: void 0,
|
|
12115
|
+
_v$61: void 0
|
|
11266
12116
|
});
|
|
11267
|
-
return _el$
|
|
12117
|
+
return _el$60;
|
|
12118
|
+
}
|
|
12119
|
+
});
|
|
12120
|
+
};
|
|
12121
|
+
var MutationDetails = () => {
|
|
12122
|
+
const theme = useTheme();
|
|
12123
|
+
const styles = createMemo(() => {
|
|
12124
|
+
return theme() === "dark" ? darkStyles2 : lightStyles2;
|
|
12125
|
+
});
|
|
12126
|
+
const {
|
|
12127
|
+
colors
|
|
12128
|
+
} = tokens;
|
|
12129
|
+
const t2 = (light, dark) => theme() === "dark" ? dark : light;
|
|
12130
|
+
const isPaused = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
12131
|
+
const mutations = mutationCache().getAll();
|
|
12132
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
12133
|
+
if (!mutation)
|
|
12134
|
+
return false;
|
|
12135
|
+
return mutation.state.isPaused;
|
|
12136
|
+
});
|
|
12137
|
+
const status = createSubscribeToMutationCacheBatcher((mutationCache) => {
|
|
12138
|
+
const mutations = mutationCache().getAll();
|
|
12139
|
+
const mutation = mutations.find((m) => m.mutationId === selectedMutationId());
|
|
12140
|
+
if (!mutation)
|
|
12141
|
+
return "idle";
|
|
12142
|
+
return mutation.state.status;
|
|
12143
|
+
});
|
|
12144
|
+
const color = createMemo(() => getMutationStatusColor({
|
|
12145
|
+
isPaused: isPaused(),
|
|
12146
|
+
status: status()
|
|
12147
|
+
}));
|
|
12148
|
+
const activeMutation = createSubscribeToMutationCacheBatcher((mutationCache) => mutationCache().getAll().find((mutation) => mutation.mutationId === selectedMutationId()), false);
|
|
12149
|
+
const getQueryStatusColors = () => {
|
|
12150
|
+
if (color() === "gray") {
|
|
12151
|
+
return u`
|
|
12152
|
+
background-color: ${t2(colors[color()][200], colors[color()][700])};
|
|
12153
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
12154
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
12155
|
+
`;
|
|
12156
|
+
}
|
|
12157
|
+
return u`
|
|
12158
|
+
background-color: ${t2(colors[color()][100], colors[color()][900])};
|
|
12159
|
+
color: ${t2(colors[color()][700], colors[color()][300])};
|
|
12160
|
+
border-color: ${t2(colors[color()][400], colors[color()][600])};
|
|
12161
|
+
`;
|
|
12162
|
+
};
|
|
12163
|
+
return createComponent(Show, {
|
|
12164
|
+
get when() {
|
|
12165
|
+
return activeMutation();
|
|
12166
|
+
},
|
|
12167
|
+
get children() {
|
|
12168
|
+
const _el$99 = _tmpl$30(), _el$100 = _el$99.firstChild, _el$101 = _el$100.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.firstChild, _el$104 = _el$103.firstChild, _el$105 = _el$103.nextSibling, _el$106 = _el$102.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$107.nextSibling, _el$109 = _el$101.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling, _el$116 = _el$115.nextSibling;
|
|
12169
|
+
insert(_el$104, createComponent(Show, {
|
|
12170
|
+
get when() {
|
|
12171
|
+
return activeMutation().options.mutationKey;
|
|
12172
|
+
},
|
|
12173
|
+
fallback: "No mutationKey found",
|
|
12174
|
+
get children() {
|
|
12175
|
+
return displayValue(activeMutation().options.mutationKey, true);
|
|
12176
|
+
}
|
|
12177
|
+
}));
|
|
12178
|
+
insert(_el$105, createComponent(Show, {
|
|
12179
|
+
get when() {
|
|
12180
|
+
return color() === "purple";
|
|
12181
|
+
},
|
|
12182
|
+
children: "pending"
|
|
12183
|
+
}), null);
|
|
12184
|
+
insert(_el$105, createComponent(Show, {
|
|
12185
|
+
get when() {
|
|
12186
|
+
return color() !== "purple";
|
|
12187
|
+
},
|
|
12188
|
+
get children() {
|
|
12189
|
+
return status();
|
|
12190
|
+
}
|
|
12191
|
+
}), null);
|
|
12192
|
+
insert(_el$108, () => new Date(activeMutation().state.submittedAt).toLocaleTimeString());
|
|
12193
|
+
_el$110.style.setProperty("padding", "0.5rem");
|
|
12194
|
+
insert(_el$110, createComponent(Explorer, {
|
|
12195
|
+
label: "Variables",
|
|
12196
|
+
defaultExpanded: ["Variables"],
|
|
12197
|
+
get value() {
|
|
12198
|
+
return activeMutation().state.variables;
|
|
12199
|
+
}
|
|
12200
|
+
}));
|
|
12201
|
+
_el$112.style.setProperty("padding", "0.5rem");
|
|
12202
|
+
insert(_el$112, createComponent(Explorer, {
|
|
12203
|
+
label: "Context",
|
|
12204
|
+
defaultExpanded: ["Context"],
|
|
12205
|
+
get value() {
|
|
12206
|
+
return activeMutation().state.context;
|
|
12207
|
+
}
|
|
12208
|
+
}));
|
|
12209
|
+
_el$114.style.setProperty("padding", "0.5rem");
|
|
12210
|
+
insert(_el$114, createComponent(Explorer, {
|
|
12211
|
+
label: "Data",
|
|
12212
|
+
defaultExpanded: ["Data"],
|
|
12213
|
+
get value() {
|
|
12214
|
+
return activeMutation().state.data;
|
|
12215
|
+
}
|
|
12216
|
+
}));
|
|
12217
|
+
_el$116.style.setProperty("padding", "0.5rem");
|
|
12218
|
+
insert(_el$116, createComponent(Explorer, {
|
|
12219
|
+
label: "Mutation",
|
|
12220
|
+
defaultExpanded: ["Mutation"],
|
|
12221
|
+
get value() {
|
|
12222
|
+
return activeMutation();
|
|
12223
|
+
}
|
|
12224
|
+
}));
|
|
12225
|
+
createRenderEffect((_p$) => {
|
|
12226
|
+
const _v$62 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$65 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$68 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header");
|
|
12227
|
+
_v$62 !== _p$._v$62 && className(_el$99, _p$._v$62 = _v$62);
|
|
12228
|
+
_v$63 !== _p$._v$63 && className(_el$100, _p$._v$63 = _v$63);
|
|
12229
|
+
_v$64 !== _p$._v$64 && className(_el$101, _p$._v$64 = _v$64);
|
|
12230
|
+
_v$65 !== _p$._v$65 && className(_el$105, _p$._v$65 = _v$65);
|
|
12231
|
+
_v$66 !== _p$._v$66 && className(_el$109, _p$._v$66 = _v$66);
|
|
12232
|
+
_v$67 !== _p$._v$67 && className(_el$111, _p$._v$67 = _v$67);
|
|
12233
|
+
_v$68 !== _p$._v$68 && className(_el$113, _p$._v$68 = _v$68);
|
|
12234
|
+
_v$69 !== _p$._v$69 && className(_el$115, _p$._v$69 = _v$69);
|
|
12235
|
+
return _p$;
|
|
12236
|
+
}, {
|
|
12237
|
+
_v$62: void 0,
|
|
12238
|
+
_v$63: void 0,
|
|
12239
|
+
_v$64: void 0,
|
|
12240
|
+
_v$65: void 0,
|
|
12241
|
+
_v$66: void 0,
|
|
12242
|
+
_v$67: void 0,
|
|
12243
|
+
_v$68: void 0,
|
|
12244
|
+
_v$69: void 0
|
|
12245
|
+
});
|
|
12246
|
+
return _el$99;
|
|
11268
12247
|
}
|
|
11269
12248
|
});
|
|
11270
12249
|
};
|
|
11271
|
-
var
|
|
12250
|
+
var queryCacheMap = /* @__PURE__ */ new Map();
|
|
11272
12251
|
var setupQueryCacheSubscription = () => {
|
|
11273
12252
|
const queryCache = createMemo(() => {
|
|
11274
12253
|
const client = useQueryDevtoolsContext().client;
|
|
11275
12254
|
return client.getQueryCache();
|
|
11276
12255
|
});
|
|
11277
12256
|
const unsub = queryCache().subscribe(() => {
|
|
11278
|
-
for (const [callback, setter] of
|
|
12257
|
+
for (const [callback, setter] of queryCacheMap.entries()) {
|
|
11279
12258
|
queueMicrotask(() => {
|
|
11280
12259
|
setter(callback(queryCache));
|
|
11281
12260
|
});
|
|
11282
12261
|
}
|
|
11283
12262
|
});
|
|
11284
12263
|
onCleanup(() => {
|
|
11285
|
-
|
|
12264
|
+
queryCacheMap.clear();
|
|
11286
12265
|
unsub();
|
|
11287
12266
|
});
|
|
11288
12267
|
return unsub;
|
|
@@ -11298,9 +12277,45 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
|
|
|
11298
12277
|
createEffect(() => {
|
|
11299
12278
|
setValue(callback(queryCache));
|
|
11300
12279
|
});
|
|
11301
|
-
|
|
12280
|
+
queryCacheMap.set(callback, setValue);
|
|
11302
12281
|
onCleanup(() => {
|
|
11303
|
-
|
|
12282
|
+
queryCacheMap.delete(callback);
|
|
12283
|
+
});
|
|
12284
|
+
return value;
|
|
12285
|
+
};
|
|
12286
|
+
var mutationCacheMap = /* @__PURE__ */ new Map();
|
|
12287
|
+
var setupMutationCacheSubscription = () => {
|
|
12288
|
+
const mutationCache = createMemo(() => {
|
|
12289
|
+
const client = useQueryDevtoolsContext().client;
|
|
12290
|
+
return client.getMutationCache();
|
|
12291
|
+
});
|
|
12292
|
+
const unsub = mutationCache().subscribe(() => {
|
|
12293
|
+
for (const [callback, setter] of mutationCacheMap.entries()) {
|
|
12294
|
+
queueMicrotask(() => {
|
|
12295
|
+
setter(callback(mutationCache));
|
|
12296
|
+
});
|
|
12297
|
+
}
|
|
12298
|
+
});
|
|
12299
|
+
onCleanup(() => {
|
|
12300
|
+
mutationCacheMap.clear();
|
|
12301
|
+
unsub();
|
|
12302
|
+
});
|
|
12303
|
+
return unsub;
|
|
12304
|
+
};
|
|
12305
|
+
var createSubscribeToMutationCacheBatcher = (callback, equalityCheck = true) => {
|
|
12306
|
+
const mutationCache = createMemo(() => {
|
|
12307
|
+
const client = useQueryDevtoolsContext().client;
|
|
12308
|
+
return client.getMutationCache();
|
|
12309
|
+
});
|
|
12310
|
+
const [value, setValue] = createSignal(callback(mutationCache), !equalityCheck ? {
|
|
12311
|
+
equals: false
|
|
12312
|
+
} : void 0);
|
|
12313
|
+
createEffect(() => {
|
|
12314
|
+
setValue(callback(mutationCache));
|
|
12315
|
+
});
|
|
12316
|
+
mutationCacheMap.set(callback, setValue);
|
|
12317
|
+
onCleanup(() => {
|
|
12318
|
+
mutationCacheMap.delete(callback);
|
|
11304
12319
|
});
|
|
11305
12320
|
return value;
|
|
11306
12321
|
};
|
|
@@ -11582,7 +12597,7 @@ var stylesFactory2 = (theme) => {
|
|
|
11582
12597
|
justify-content: space-between;
|
|
11583
12598
|
align-items: center;
|
|
11584
12599
|
padding: ${tokens.size[2]} ${tokens.size[2.5]};
|
|
11585
|
-
gap: ${tokens.size[
|
|
12600
|
+
gap: ${tokens.size[2.5]};
|
|
11586
12601
|
border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
|
|
11587
12602
|
align-items: center;
|
|
11588
12603
|
& > button {
|
|
@@ -11594,8 +12609,19 @@ var stylesFactory2 = (theme) => {
|
|
|
11594
12609
|
flex-direction: column;
|
|
11595
12610
|
}
|
|
11596
12611
|
`,
|
|
12612
|
+
logoAndToggleContainer: u`
|
|
12613
|
+
display: flex;
|
|
12614
|
+
gap: ${tokens.size[3]};
|
|
12615
|
+
align-items: center;
|
|
12616
|
+
`,
|
|
11597
12617
|
logo: u`
|
|
11598
12618
|
cursor: pointer;
|
|
12619
|
+
display: flex;
|
|
12620
|
+
flex-direction: column;
|
|
12621
|
+
background-color: transparent;
|
|
12622
|
+
border: none;
|
|
12623
|
+
gap: ${tokens.size[0.5]};
|
|
12624
|
+
padding: 0px;
|
|
11599
12625
|
&:hover {
|
|
11600
12626
|
opacity: 0.7;
|
|
11601
12627
|
}
|
|
@@ -11967,6 +12993,8 @@ var stylesFactory2 = (theme) => {
|
|
|
11967
12993
|
|
|
11968
12994
|
& pre {
|
|
11969
12995
|
margin: 0;
|
|
12996
|
+
display: flex;
|
|
12997
|
+
align-items: center;
|
|
11970
12998
|
}
|
|
11971
12999
|
`,
|
|
11972
13000
|
queryDetailsStatus: u`
|
|
@@ -12146,6 +13174,56 @@ var stylesFactory2 = (theme) => {
|
|
|
12146
13174
|
&:hover {
|
|
12147
13175
|
background-color: ${t2(colors.purple[100], colors.purple[900])};
|
|
12148
13176
|
}
|
|
13177
|
+
`,
|
|
13178
|
+
viewToggle: u`
|
|
13179
|
+
border-radius: ${tokens.border.radius.sm};
|
|
13180
|
+
background-color: ${t2(colors.gray[200], colors.darkGray[600])};
|
|
13181
|
+
border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13182
|
+
display: flex;
|
|
13183
|
+
padding: 0;
|
|
13184
|
+
font-size: ${font.size.xs};
|
|
13185
|
+
color: ${t2(colors.gray[700], colors.gray[300])};
|
|
13186
|
+
overflow: hidden;
|
|
13187
|
+
|
|
13188
|
+
&:has(:focus-visible) {
|
|
13189
|
+
outline: 2px solid ${colors.blue[800]};
|
|
13190
|
+
}
|
|
13191
|
+
|
|
13192
|
+
& .tsqd-radio-toggle {
|
|
13193
|
+
opacity: 0.5;
|
|
13194
|
+
display: flex;
|
|
13195
|
+
& label {
|
|
13196
|
+
display: flex;
|
|
13197
|
+
align-items: center;
|
|
13198
|
+
cursor: pointer;
|
|
13199
|
+
line-height: ${font.lineHeight.md};
|
|
13200
|
+
}
|
|
13201
|
+
|
|
13202
|
+
& label:hover {
|
|
13203
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[500])};
|
|
13204
|
+
}
|
|
13205
|
+
}
|
|
13206
|
+
|
|
13207
|
+
& > [data-checked] {
|
|
13208
|
+
opacity: 1;
|
|
13209
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13210
|
+
& label:hover {
|
|
13211
|
+
background-color: ${t2(colors.gray[100], colors.darkGray[400])};
|
|
13212
|
+
}
|
|
13213
|
+
}
|
|
13214
|
+
|
|
13215
|
+
& .tsqd-radio-toggle:first-child {
|
|
13216
|
+
& label {
|
|
13217
|
+
padding: 0 ${tokens.size[1.5]} 0 ${tokens.size[2]};
|
|
13218
|
+
}
|
|
13219
|
+
border-right: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
|
|
13220
|
+
}
|
|
13221
|
+
|
|
13222
|
+
& .tsqd-radio-toggle:nth-child(2) {
|
|
13223
|
+
& label {
|
|
13224
|
+
padding: 0 ${tokens.size[2]} 0 ${tokens.size[1.5]};
|
|
13225
|
+
}
|
|
13226
|
+
}
|
|
12149
13227
|
`
|
|
12150
13228
|
};
|
|
12151
13229
|
};
|
|
@@ -12358,8 +13436,6 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12358
13436
|
* Credits to the zag team:
|
|
12359
13437
|
* https://github.com/chakra-ui/zag/blob/c1e6c7689b22bf58741ded7cf224dd9baec2a046/packages/utilities/form-utils/src/form.ts
|
|
12360
13438
|
*)
|
|
12361
|
-
|
|
12362
|
-
@kobalte/core/dist/esm/index.js:
|
|
12363
13439
|
(*!
|
|
12364
13440
|
* Portions of this file are based on code from react-spectrum.
|
|
12365
13441
|
* Apache License Version 2.0, Copyright 2020 Adobe.
|
|
@@ -12714,4 +13790,4 @@ delegateEvents(["click", "mousedown", "input"]);
|
|
|
12714
13790
|
*)
|
|
12715
13791
|
*/
|
|
12716
13792
|
|
|
12717
|
-
export { Devtools, DevtoolsComponent, DevtoolsPanel, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
|
|
13793
|
+
export { Devtools, DevtoolsComponent, DevtoolsPanel, MutationRow, MutationStatusCount, QueryRow, QueryStatus, QueryStatusCount, Devtools_default as default };
|