@tanstack/query-devtools 5.51.15 → 5.52.3
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/{RGA35KVA.jsx → 2DN67TWN.jsx} +2070 -2396
- package/build/Devtools/{U2TDTBMY.js → 2FJCTAHO.js} +1034 -944
- package/build/Devtools/{Q436JGP5.js → E6UWR6XD.js} +1034 -944
- package/build/Devtools/{NKCIXXMF.jsx → EFVQE642.jsx} +2070 -2396
- package/build/chunk/{WIJZKUEN.jsx → G72LLS32.jsx} +187 -298
- package/build/chunk/{6EPU3DES.js → GMHTURR6.js} +184 -296
- package/build/chunk/{YDKHGUIL.jsx → H7KAW27I.jsx} +187 -298
- package/build/chunk/{LNJC7UVE.js → TU4XCPXB.js} +184 -296
- package/build/dev.cjs +1418 -1444
- package/build/dev.js +2 -2
- package/build/dev.jsx +2 -2
- package/build/index.cjs +1418 -1444
- package/build/index.d.cts +4 -4
- package/build/index.d.ts +4 -4
- package/build/index.js +2 -2
- package/build/index.jsx +2 -2
- package/package.json +5 -5
- package/src/Context.ts +2 -2
- package/src/Devtools.tsx +2 -2
- package/src/index.tsx +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createContext, splitProps, createMemo, createComponent, mergeProps, createUniqueId, createSignal, createEffect, onCleanup, Show, on, delegateEvents, sortFns, mutationSortFns, Dynamic, useContext, createRenderEffect, setAttribute, Portal, untrack, template, getPreferredColorScheme, onMount, use, insert, className, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, isServer, createComputed, Index, updateNestedDataByPath, convertRemToPixels, getSidedProp, useTransition, $TRACK, createRoot, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, clearDelegatedEvents, getOwner, DEV } from '../chunk/
|
|
1
|
+
import { createContext, splitProps, createMemo, createComponent, mergeProps, createUniqueId, createSignal, createEffect, onCleanup, Show, on, delegateEvents, sortFns, mutationSortFns, Dynamic, useContext, createRenderEffect, setAttribute, Portal, untrack, template, getPreferredColorScheme, onMount, use, insert, className, getQueryStatusColor, getMutationStatusColor, getQueryStatusLabel, spread, getQueryStatusColorByLabel, displayValue, For, batch, isServer, createComputed, Index, updateNestedDataByPath, convertRemToPixels, getSidedProp, useTransition, $TRACK, createRoot, addEventListener, stringify, Switch, Match, deleteNestedDataByPath, clearDelegatedEvents, getOwner, DEV } from '../chunk/GMHTURR6.js';
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.15.1/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
4
4
|
var characterMap = {
|
|
@@ -676,7 +676,7 @@ function clsx() {
|
|
|
676
676
|
return n2;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.
|
|
679
|
+
// ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.8.19/node_modules/@solid-primitives/transition-group/dist/index.js
|
|
680
680
|
var noop = () => {
|
|
681
681
|
};
|
|
682
682
|
function createListTransition(source, options) {
|
|
@@ -744,7 +744,7 @@ function createListTransition(source, options) {
|
|
|
744
744
|
);
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.
|
|
747
|
+
// ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.8.19/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
|
|
748
748
|
var isClient = !isServer;
|
|
749
749
|
var isDev = isClient && !!DEV;
|
|
750
750
|
var noop2 = () => void 0;
|
|
@@ -794,7 +794,7 @@ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.
|
|
797
|
+
// ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.8.19/node_modules/@solid-primitives/refs/dist/index.js
|
|
798
798
|
function mergeRefs(...refs) {
|
|
799
799
|
return chain(refs);
|
|
800
800
|
}
|
|
@@ -827,7 +827,7 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
|
|
|
827
827
|
return memo;
|
|
828
828
|
}
|
|
829
829
|
|
|
830
|
-
// ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.
|
|
830
|
+
// ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.19/node_modules/solid-transition-group/dist/index.js
|
|
831
831
|
function createClassnames(props) {
|
|
832
832
|
return createMemo(() => {
|
|
833
833
|
const name = props.name || "s";
|
|
@@ -865,7 +865,6 @@ function enterTransition(classes, events, el, done) {
|
|
|
865
865
|
});
|
|
866
866
|
function endTransition(e2) {
|
|
867
867
|
if (!e2 || e2.target === el) {
|
|
868
|
-
done?.();
|
|
869
868
|
el.removeEventListener("transitionend", endTransition);
|
|
870
869
|
el.removeEventListener("animationend", endTransition);
|
|
871
870
|
el.classList.remove(...classes.enterActive);
|
|
@@ -949,7 +948,7 @@ var TransitionGroup = (props) => {
|
|
|
949
948
|
});
|
|
950
949
|
};
|
|
951
950
|
|
|
952
|
-
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.
|
|
951
|
+
// ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.2_solid-js@1.8.19/node_modules/@solid-primitives/keyed/dist/index.js
|
|
953
952
|
var FALLBACK = Symbol("fallback");
|
|
954
953
|
function dispose(list) {
|
|
955
954
|
for (const o2 of list)
|
|
@@ -1047,7 +1046,7 @@ function Key(props) {
|
|
|
1047
1046
|
);
|
|
1048
1047
|
}
|
|
1049
1048
|
|
|
1050
|
-
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.
|
|
1049
|
+
// ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.19/node_modules/@solid-primitives/storage/dist/index.js
|
|
1051
1050
|
function createStorage(props) {
|
|
1052
1051
|
const [error, setError] = createSignal();
|
|
1053
1052
|
const handleError = props?.throw ? (err, fallback) => {
|
|
@@ -1266,7 +1265,7 @@ var cookieStorage = addClearMethod({
|
|
|
1266
1265
|
}
|
|
1267
1266
|
});
|
|
1268
1267
|
|
|
1269
|
-
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.
|
|
1268
|
+
// ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.3_solid-js@1.8.19/node_modules/@solid-primitives/event-listener/dist/index.js
|
|
1270
1269
|
function makeEventListener(target, type, handler, options) {
|
|
1271
1270
|
target.addEventListener(type, handler, options);
|
|
1272
1271
|
return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
|
|
@@ -1286,7 +1285,7 @@ function createEventListener(targets, type, handler, options) {
|
|
|
1286
1285
|
createRenderEffect(attachListeners);
|
|
1287
1286
|
}
|
|
1288
1287
|
|
|
1289
|
-
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.
|
|
1288
|
+
// ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.26_solid-js@1.8.19/node_modules/@solid-primitives/resize-observer/dist/index.js
|
|
1290
1289
|
function makeResizeObserver(callback, options) {
|
|
1291
1290
|
if (isServer) {
|
|
1292
1291
|
return { observe: noop2, unobserve: noop2 };
|
|
@@ -1317,7 +1316,28 @@ function createResizeObserver(targets, onResize, options) {
|
|
|
1317
1316
|
}, []);
|
|
1318
1317
|
}
|
|
1319
1318
|
|
|
1320
|
-
// ../../node_modules/.pnpm/@
|
|
1319
|
+
// ../../node_modules/.pnpm/@solid-primitives+props@3.1.11_solid-js@1.8.19/node_modules/@solid-primitives/props/dist/index.js
|
|
1320
|
+
var extractCSSregex = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
|
|
1321
|
+
function stringStyleToObject(style) {
|
|
1322
|
+
const object = {};
|
|
1323
|
+
let match;
|
|
1324
|
+
while (match = extractCSSregex.exec(style)) {
|
|
1325
|
+
object[match[1]] = match[2];
|
|
1326
|
+
}
|
|
1327
|
+
return object;
|
|
1328
|
+
}
|
|
1329
|
+
function combineStyle(a2, b2) {
|
|
1330
|
+
if (typeof a2 === "string") {
|
|
1331
|
+
if (typeof b2 === "string")
|
|
1332
|
+
return `${a2};${b2}`;
|
|
1333
|
+
a2 = stringStyleToObject(a2);
|
|
1334
|
+
} else if (typeof b2 === "string") {
|
|
1335
|
+
b2 = stringStyleToObject(b2);
|
|
1336
|
+
}
|
|
1337
|
+
return { ...a2, ...b2 };
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
// ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.19/node_modules/@kobalte/utils/dist/index.js
|
|
1321
1341
|
function addItemToArray(array, item, index = -1) {
|
|
1322
1342
|
if (!(index in array)) {
|
|
1323
1343
|
return [...array, item];
|
|
@@ -1563,9 +1583,6 @@ function isStyleVisible(element) {
|
|
|
1563
1583
|
function isAttributeVisible(element, childElement) {
|
|
1564
1584
|
return !element.hasAttribute("hidden") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
|
|
1565
1585
|
}
|
|
1566
|
-
function isElementInScope(element, scope) {
|
|
1567
|
-
return scope.some((node) => node.contains(element));
|
|
1568
|
-
}
|
|
1569
1586
|
function getFocusableTreeWalker(root, opts, scope) {
|
|
1570
1587
|
const selector = opts?.tabbable ? TABBABLE_ELEMENT_SELECTOR : FOCUSABLE_ELEMENT_SELECTOR;
|
|
1571
1588
|
const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -1573,7 +1590,7 @@ function getFocusableTreeWalker(root, opts, scope) {
|
|
|
1573
1590
|
if (opts?.from?.contains(node)) {
|
|
1574
1591
|
return NodeFilter.FILTER_REJECT;
|
|
1575
1592
|
}
|
|
1576
|
-
if (node.matches(selector) && isElementVisible(node) && (!scope
|
|
1593
|
+
if (node.matches(selector) && isElementVisible(node) && (!scope) && (!opts?.accept || opts.accept(node))) {
|
|
1577
1594
|
return NodeFilter.FILTER_ACCEPT;
|
|
1578
1595
|
}
|
|
1579
1596
|
return NodeFilter.FILTER_SKIP;
|
|
@@ -1737,7 +1754,6 @@ function scrollIntoViewport(targetElement, opts) {
|
|
|
1737
1754
|
targetElement?.scrollIntoView?.({ block: "nearest" });
|
|
1738
1755
|
const { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
|
|
1739
1756
|
if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
|
|
1740
|
-
opts?.containingElement?.scrollIntoView?.({ block: "center", inline: "center" });
|
|
1741
1757
|
targetElement.scrollIntoView?.({ block: "nearest" });
|
|
1742
1758
|
}
|
|
1743
1759
|
} else {
|
|
@@ -1763,7 +1779,190 @@ var visuallyHiddenStyles = {
|
|
|
1763
1779
|
"white-space": "nowrap"
|
|
1764
1780
|
};
|
|
1765
1781
|
|
|
1766
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
1782
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/E4R2EMM4.js
|
|
1783
|
+
function createRegisterId(setter) {
|
|
1784
|
+
return (id) => {
|
|
1785
|
+
setter(id);
|
|
1786
|
+
return () => setter(void 0);
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ET5T45DO.js
|
|
1791
|
+
function createTagName(ref, fallback) {
|
|
1792
|
+
const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
|
|
1793
|
+
createEffect(() => {
|
|
1794
|
+
setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
|
|
1795
|
+
});
|
|
1796
|
+
return tagName;
|
|
1797
|
+
}
|
|
1798
|
+
function stringOrUndefined(value) {
|
|
1799
|
+
return isString(value) ? value : void 0;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/6Y7B2NEO.js
|
|
1803
|
+
function Polymorphic(props) {
|
|
1804
|
+
const [local, others] = splitProps(props, ["as"]);
|
|
1805
|
+
if (!local.as) {
|
|
1806
|
+
throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
|
|
1807
|
+
}
|
|
1808
|
+
return (
|
|
1809
|
+
// @ts-ignore: Props are valid but not worth calculating
|
|
1810
|
+
createComponent(Dynamic, mergeProps(others, {
|
|
1811
|
+
get component() {
|
|
1812
|
+
return local.as;
|
|
1813
|
+
}
|
|
1814
|
+
}))
|
|
1815
|
+
);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2DJLZQE.js
|
|
1819
|
+
var FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
|
|
1820
|
+
function createFormControl(props) {
|
|
1821
|
+
const defaultId = `form-control-${createUniqueId()}`;
|
|
1822
|
+
const mergedProps = mergeDefaultProps({
|
|
1823
|
+
id: defaultId
|
|
1824
|
+
}, props);
|
|
1825
|
+
const [labelId, setLabelId] = createSignal();
|
|
1826
|
+
const [fieldId, setFieldId] = createSignal();
|
|
1827
|
+
const [descriptionId, setDescriptionId] = createSignal();
|
|
1828
|
+
const [errorMessageId, setErrorMessageId] = createSignal();
|
|
1829
|
+
const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
|
|
1830
|
+
const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
|
|
1831
|
+
return [
|
|
1832
|
+
fieldAriaLabelledBy,
|
|
1833
|
+
labelId(),
|
|
1834
|
+
// If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
|
|
1835
|
+
hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
|
|
1836
|
+
].filter(Boolean).join(" ") || void 0;
|
|
1837
|
+
};
|
|
1838
|
+
const getAriaDescribedBy = (fieldAriaDescribedBy) => {
|
|
1839
|
+
return [
|
|
1840
|
+
descriptionId(),
|
|
1841
|
+
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
|
|
1842
|
+
// See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
1843
|
+
errorMessageId(),
|
|
1844
|
+
fieldAriaDescribedBy
|
|
1845
|
+
].filter(Boolean).join(" ") || void 0;
|
|
1846
|
+
};
|
|
1847
|
+
const dataset = createMemo(() => ({
|
|
1848
|
+
"data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
|
|
1849
|
+
"data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
|
|
1850
|
+
"data-required": access(mergedProps.required) ? "" : void 0,
|
|
1851
|
+
"data-disabled": access(mergedProps.disabled) ? "" : void 0,
|
|
1852
|
+
"data-readonly": access(mergedProps.readOnly) ? "" : void 0
|
|
1853
|
+
}));
|
|
1854
|
+
const formControlContext = {
|
|
1855
|
+
name: () => access(mergedProps.name) ?? access(mergedProps.id),
|
|
1856
|
+
dataset,
|
|
1857
|
+
validationState: () => access(mergedProps.validationState),
|
|
1858
|
+
isRequired: () => access(mergedProps.required),
|
|
1859
|
+
isDisabled: () => access(mergedProps.disabled),
|
|
1860
|
+
isReadOnly: () => access(mergedProps.readOnly),
|
|
1861
|
+
labelId,
|
|
1862
|
+
fieldId,
|
|
1863
|
+
descriptionId,
|
|
1864
|
+
errorMessageId,
|
|
1865
|
+
getAriaLabelledBy,
|
|
1866
|
+
getAriaDescribedBy,
|
|
1867
|
+
generateId: createGenerateId(() => access(mergedProps.id)),
|
|
1868
|
+
registerLabel: createRegisterId(setLabelId),
|
|
1869
|
+
registerField: createRegisterId(setFieldId),
|
|
1870
|
+
registerDescription: createRegisterId(setDescriptionId),
|
|
1871
|
+
registerErrorMessage: createRegisterId(setErrorMessageId)
|
|
1872
|
+
};
|
|
1873
|
+
return {
|
|
1874
|
+
formControlContext
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
var FormControlContext = createContext();
|
|
1878
|
+
function useFormControlContext() {
|
|
1879
|
+
const context = useContext(FormControlContext);
|
|
1880
|
+
if (context === void 0) {
|
|
1881
|
+
throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
|
|
1882
|
+
}
|
|
1883
|
+
return context;
|
|
1884
|
+
}
|
|
1885
|
+
function FormControlDescription(props) {
|
|
1886
|
+
const context = useFormControlContext();
|
|
1887
|
+
const mergedProps = mergeDefaultProps({
|
|
1888
|
+
id: context.generateId("description")
|
|
1889
|
+
}, props);
|
|
1890
|
+
createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
|
|
1891
|
+
return createComponent(Polymorphic, mergeProps({
|
|
1892
|
+
as: "div"
|
|
1893
|
+
}, () => context.dataset(), mergedProps));
|
|
1894
|
+
}
|
|
1895
|
+
function FormControlErrorMessage(props) {
|
|
1896
|
+
const context = useFormControlContext();
|
|
1897
|
+
const mergedProps = mergeDefaultProps({
|
|
1898
|
+
id: context.generateId("error-message")
|
|
1899
|
+
}, props);
|
|
1900
|
+
const [local, others] = splitProps(mergedProps, ["forceMount"]);
|
|
1901
|
+
const isInvalid = () => context.validationState() === "invalid";
|
|
1902
|
+
createEffect(() => {
|
|
1903
|
+
if (!isInvalid()) {
|
|
1904
|
+
return;
|
|
1905
|
+
}
|
|
1906
|
+
onCleanup(context.registerErrorMessage(others.id));
|
|
1907
|
+
});
|
|
1908
|
+
return createComponent(Show, {
|
|
1909
|
+
get when() {
|
|
1910
|
+
return local.forceMount || isInvalid();
|
|
1911
|
+
},
|
|
1912
|
+
get children() {
|
|
1913
|
+
return createComponent(Polymorphic, mergeProps({
|
|
1914
|
+
as: "div"
|
|
1915
|
+
}, () => context.dataset(), others));
|
|
1916
|
+
}
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
function FormControlLabel(props) {
|
|
1920
|
+
let ref;
|
|
1921
|
+
const context = useFormControlContext();
|
|
1922
|
+
const mergedProps = mergeDefaultProps({
|
|
1923
|
+
id: context.generateId("label")
|
|
1924
|
+
}, props);
|
|
1925
|
+
const [local, others] = splitProps(mergedProps, ["ref"]);
|
|
1926
|
+
const tagName = createTagName(() => ref, () => "label");
|
|
1927
|
+
createEffect(() => onCleanup(context.registerLabel(others.id)));
|
|
1928
|
+
return createComponent(Polymorphic, mergeProps({
|
|
1929
|
+
as: "label",
|
|
1930
|
+
ref(r$) {
|
|
1931
|
+
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
1932
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
1933
|
+
},
|
|
1934
|
+
get ["for"]() {
|
|
1935
|
+
return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
|
|
1936
|
+
}
|
|
1937
|
+
}, () => context.dataset(), others));
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js
|
|
1941
|
+
function createFormResetListener(element, handler) {
|
|
1942
|
+
createEffect(
|
|
1943
|
+
on(element, (element2) => {
|
|
1944
|
+
if (element2 == null) {
|
|
1945
|
+
return;
|
|
1946
|
+
}
|
|
1947
|
+
const form = getClosestForm(element2);
|
|
1948
|
+
if (form == null) {
|
|
1949
|
+
return;
|
|
1950
|
+
}
|
|
1951
|
+
form.addEventListener("reset", handler, { passive: true });
|
|
1952
|
+
onCleanup(() => {
|
|
1953
|
+
form.removeEventListener("reset", handler);
|
|
1954
|
+
});
|
|
1955
|
+
})
|
|
1956
|
+
);
|
|
1957
|
+
}
|
|
1958
|
+
function getClosestForm(element) {
|
|
1959
|
+
return isFormElement(element) ? element.form : element.closest("form");
|
|
1960
|
+
}
|
|
1961
|
+
function isFormElement(element) {
|
|
1962
|
+
return element.matches("textarea, input, select, button");
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/BLN63FDC.js
|
|
1767
1966
|
function createControllableSignal(props) {
|
|
1768
1967
|
const [_value, _setValue] = createSignal(props.defaultValue?.());
|
|
1769
1968
|
const isControlled = createMemo(() => props.value?.() !== void 0);
|
|
@@ -1793,7 +1992,38 @@ function createControllableArraySignal(props) {
|
|
|
1793
1992
|
return [value, setValue];
|
|
1794
1993
|
}
|
|
1795
1994
|
|
|
1796
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
1995
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YGDQXQ2B.js
|
|
1996
|
+
function createToggleState(props = {}) {
|
|
1997
|
+
const [isSelected, _setIsSelected] = createControllableBooleanSignal({
|
|
1998
|
+
value: () => access(props.isSelected),
|
|
1999
|
+
defaultValue: () => !!access(props.defaultIsSelected),
|
|
2000
|
+
onChange: (value) => props.onSelectedChange?.(value)
|
|
2001
|
+
});
|
|
2002
|
+
const setIsSelected = (value) => {
|
|
2003
|
+
if (!access(props.isReadOnly) && !access(props.isDisabled)) {
|
|
2004
|
+
_setIsSelected(value);
|
|
2005
|
+
}
|
|
2006
|
+
};
|
|
2007
|
+
const toggle = () => {
|
|
2008
|
+
if (!access(props.isReadOnly) && !access(props.isDisabled)) {
|
|
2009
|
+
_setIsSelected(!isSelected());
|
|
2010
|
+
}
|
|
2011
|
+
};
|
|
2012
|
+
return {
|
|
2013
|
+
isSelected,
|
|
2014
|
+
setIsSelected,
|
|
2015
|
+
toggle
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js
|
|
2020
|
+
var __defProp = Object.defineProperty;
|
|
2021
|
+
var __export = (target, all) => {
|
|
2022
|
+
for (var name in all)
|
|
2023
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7CVNMTYF.js
|
|
1797
2027
|
var DomCollectionContext = createContext();
|
|
1798
2028
|
function useOptionalDomCollectionContext() {
|
|
1799
2029
|
return useContext(DomCollectionContext);
|
|
@@ -1957,7 +2187,7 @@ function createDomCollectionItem(props) {
|
|
|
1957
2187
|
});
|
|
1958
2188
|
}
|
|
1959
2189
|
|
|
1960
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
2190
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/JMA2RWU6.js
|
|
1961
2191
|
function buildNodes(params) {
|
|
1962
2192
|
let index = params.startIndex ?? 0;
|
|
1963
2193
|
const level = params.startLevel ?? 0;
|
|
@@ -2066,7 +2296,7 @@ function createCollection(props, deps = []) {
|
|
|
2066
2296
|
});
|
|
2067
2297
|
}
|
|
2068
2298
|
|
|
2069
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
2299
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/XHJPQEZP.js
|
|
2070
2300
|
var RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
2071
2301
|
"Avst",
|
|
2072
2302
|
"Arab",
|
|
@@ -2181,7 +2411,7 @@ function createCollator(options) {
|
|
|
2181
2411
|
});
|
|
2182
2412
|
}
|
|
2183
2413
|
|
|
2184
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
2414
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/H6DSIDEC.js
|
|
2185
2415
|
var Selection = class _Selection extends Set {
|
|
2186
2416
|
anchorKey;
|
|
2187
2417
|
currentKey;
|
|
@@ -2336,7 +2566,7 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
2336
2566
|
selectOnFocus: () => access(props.selectionManager).selectionBehavior() === "replace"
|
|
2337
2567
|
};
|
|
2338
2568
|
const mergedProps = mergeProps(defaultProps, props);
|
|
2339
|
-
const finalScrollRef = () =>
|
|
2569
|
+
const finalScrollRef = () => ref();
|
|
2340
2570
|
const { direction } = useLocale();
|
|
2341
2571
|
let scrollPos = { top: 0, left: 0 };
|
|
2342
2572
|
createEventListener(
|
|
@@ -2358,6 +2588,7 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
2358
2588
|
keyboardDelegate: () => access(mergedProps.keyboardDelegate),
|
|
2359
2589
|
selectionManager: () => access(mergedProps.selectionManager)
|
|
2360
2590
|
});
|
|
2591
|
+
const orientation = () => access(mergedProps.orientation) ?? "vertical";
|
|
2361
2592
|
const onKeyDown = (e2) => {
|
|
2362
2593
|
callHandler(e2, typeSelectHandlers.onKeyDown);
|
|
2363
2594
|
if (e2.altKey && e2.key === "Tab") {
|
|
@@ -2383,7 +2614,7 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
2383
2614
|
const shouldFocusWrap = access(mergedProps.shouldFocusWrap);
|
|
2384
2615
|
const focusedKey = manager.focusedKey();
|
|
2385
2616
|
switch (e2.key) {
|
|
2386
|
-
case "ArrowDown": {
|
|
2617
|
+
case (orientation() === "vertical" ? "ArrowDown" : "ArrowRight"): {
|
|
2387
2618
|
if (delegate.getKeyBelow) {
|
|
2388
2619
|
e2.preventDefault();
|
|
2389
2620
|
let nextKey;
|
|
@@ -2399,7 +2630,7 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
2399
2630
|
}
|
|
2400
2631
|
break;
|
|
2401
2632
|
}
|
|
2402
|
-
case "ArrowUp": {
|
|
2633
|
+
case (orientation() === "vertical" ? "ArrowUp" : "ArrowLeft"): {
|
|
2403
2634
|
if (delegate.getKeyAbove) {
|
|
2404
2635
|
e2.preventDefault();
|
|
2405
2636
|
let nextKey;
|
|
@@ -2415,7 +2646,7 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
2415
2646
|
}
|
|
2416
2647
|
break;
|
|
2417
2648
|
}
|
|
2418
|
-
case "ArrowLeft": {
|
|
2649
|
+
case (orientation() === "vertical" ? "ArrowLeft" : "ArrowUp"): {
|
|
2419
2650
|
if (delegate.getKeyLeftOf) {
|
|
2420
2651
|
e2.preventDefault();
|
|
2421
2652
|
const isRTL3 = direction() === "rtl";
|
|
@@ -2429,7 +2660,7 @@ function createSelectableCollection(props, ref, scrollRef) {
|
|
|
2429
2660
|
}
|
|
2430
2661
|
break;
|
|
2431
2662
|
}
|
|
2432
|
-
case "ArrowRight": {
|
|
2663
|
+
case (orientation() === "vertical" ? "ArrowRight" : "ArrowDown"): {
|
|
2433
2664
|
if (delegate.getKeyRightOf) {
|
|
2434
2665
|
e2.preventDefault();
|
|
2435
2666
|
const isRTL3 = direction() === "rtl";
|
|
@@ -3165,301 +3396,80 @@ function createListState(props) {
|
|
|
3165
3396
|
};
|
|
3166
3397
|
}
|
|
3167
3398
|
|
|
3168
|
-
// ../../node_modules/.pnpm/@
|
|
3169
|
-
function
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
);
|
|
3196
|
-
createEffect(
|
|
3197
|
-
on(present, (present2) => {
|
|
3198
|
-
if (prevPresent === present2) {
|
|
3199
|
-
return;
|
|
3200
|
-
}
|
|
3201
|
-
const currentAnimationName = getAnimationName(styles);
|
|
3202
|
-
if (present2) {
|
|
3203
|
-
send("MOUNT");
|
|
3204
|
-
} else if (styles?.display === "none") {
|
|
3205
|
-
send("UNMOUNT");
|
|
3399
|
+
// ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/ZV6G25TT.js
|
|
3400
|
+
var access2 = (v) => typeof v === "function" ? v() : v;
|
|
3401
|
+
|
|
3402
|
+
// ../../node_modules/.pnpm/solid-presence@0.1.7_solid-js@1.8.19/node_modules/solid-presence/dist/index.js
|
|
3403
|
+
var createPresence = (props) => {
|
|
3404
|
+
const refStyles = createMemo(() => {
|
|
3405
|
+
const element = access2(props.element);
|
|
3406
|
+
if (!element)
|
|
3407
|
+
return;
|
|
3408
|
+
return getComputedStyle(element);
|
|
3409
|
+
});
|
|
3410
|
+
const getAnimationName = () => {
|
|
3411
|
+
return refStyles()?.animationName ?? "none";
|
|
3412
|
+
};
|
|
3413
|
+
const [presentState, setPresentState] = createSignal(access2(props.show) ? "present" : "hidden");
|
|
3414
|
+
let animationName = "none";
|
|
3415
|
+
createEffect((prevShow) => {
|
|
3416
|
+
const show = access2(props.show);
|
|
3417
|
+
untrack(() => {
|
|
3418
|
+
if (prevShow === show)
|
|
3419
|
+
return show;
|
|
3420
|
+
const prevAnimationName = animationName;
|
|
3421
|
+
const currentAnimationName = getAnimationName();
|
|
3422
|
+
if (show) {
|
|
3423
|
+
setPresentState("present");
|
|
3424
|
+
} else if (currentAnimationName === "none" || refStyles()?.display === "none") {
|
|
3425
|
+
setPresentState("hidden");
|
|
3206
3426
|
} else {
|
|
3207
3427
|
const isAnimating = prevAnimationName !== currentAnimationName;
|
|
3208
|
-
if (
|
|
3209
|
-
|
|
3428
|
+
if (prevShow === true && isAnimating) {
|
|
3429
|
+
setPresentState("hiding");
|
|
3210
3430
|
} else {
|
|
3211
|
-
|
|
3431
|
+
setPresentState("hidden");
|
|
3212
3432
|
}
|
|
3213
3433
|
}
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
);
|
|
3217
|
-
createEffect(
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
);
|
|
3225
|
-
if (event.target === node2 && isCurrentAnimation) {
|
|
3226
|
-
send("ANIMATION_END");
|
|
3227
|
-
}
|
|
3228
|
-
};
|
|
3229
|
-
const handleAnimationStart = (event) => {
|
|
3230
|
-
if (event.target === node2) {
|
|
3231
|
-
prevAnimationName = getAnimationName(styles);
|
|
3232
|
-
}
|
|
3233
|
-
};
|
|
3234
|
-
node2.addEventListener("animationstart", handleAnimationStart);
|
|
3235
|
-
node2.addEventListener("animationcancel", handleAnimationEnd);
|
|
3236
|
-
node2.addEventListener("animationend", handleAnimationEnd);
|
|
3237
|
-
onCleanup(() => {
|
|
3238
|
-
node2.removeEventListener("animationstart", handleAnimationStart);
|
|
3239
|
-
node2.removeEventListener("animationcancel", handleAnimationEnd);
|
|
3240
|
-
node2.removeEventListener("animationend", handleAnimationEnd);
|
|
3241
|
-
});
|
|
3242
|
-
} else {
|
|
3243
|
-
send("ANIMATION_END");
|
|
3434
|
+
});
|
|
3435
|
+
return show;
|
|
3436
|
+
});
|
|
3437
|
+
createEffect(() => {
|
|
3438
|
+
const element = access2(props.element);
|
|
3439
|
+
if (!element)
|
|
3440
|
+
return;
|
|
3441
|
+
const handleAnimationStart = (event) => {
|
|
3442
|
+
if (event.target === element) {
|
|
3443
|
+
animationName = getAnimationName();
|
|
3244
3444
|
}
|
|
3245
|
-
}
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3445
|
+
};
|
|
3446
|
+
const handleAnimationEnd = (event) => {
|
|
3447
|
+
const currentAnimationName = getAnimationName();
|
|
3448
|
+
const isCurrentAnimation = currentAnimationName.includes(
|
|
3449
|
+
event.animationName
|
|
3450
|
+
);
|
|
3451
|
+
if (event.target === element && isCurrentAnimation && presentState() === "hiding") {
|
|
3452
|
+
setPresentState("hidden");
|
|
3252
3453
|
}
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
const send = (event) => {
|
|
3267
|
-
setState((prev) => reduce(prev, event));
|
|
3454
|
+
};
|
|
3455
|
+
element.addEventListener("animationstart", handleAnimationStart);
|
|
3456
|
+
element.addEventListener("animationcancel", handleAnimationEnd);
|
|
3457
|
+
element.addEventListener("animationend", handleAnimationEnd);
|
|
3458
|
+
onCleanup(() => {
|
|
3459
|
+
element.removeEventListener("animationstart", handleAnimationStart);
|
|
3460
|
+
element.removeEventListener("animationcancel", handleAnimationEnd);
|
|
3461
|
+
element.removeEventListener("animationend", handleAnimationEnd);
|
|
3462
|
+
});
|
|
3463
|
+
});
|
|
3464
|
+
return {
|
|
3465
|
+
present: () => presentState() === "present" || presentState() === "hiding",
|
|
3466
|
+
state: presentState
|
|
3268
3467
|
};
|
|
3269
|
-
return [state, send];
|
|
3270
|
-
}
|
|
3271
|
-
|
|
3272
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/SNFWSEOJ.js
|
|
3273
|
-
function Polymorphic(props) {
|
|
3274
|
-
const [local, others] = splitProps(props, ["as"]);
|
|
3275
|
-
if (!local.as) {
|
|
3276
|
-
throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");
|
|
3277
|
-
}
|
|
3278
|
-
return (
|
|
3279
|
-
// @ts-ignore: Props are valid but not worth calculating
|
|
3280
|
-
createComponent(Dynamic, mergeProps({
|
|
3281
|
-
get component() {
|
|
3282
|
-
return local.as;
|
|
3283
|
-
}
|
|
3284
|
-
}, others))
|
|
3285
|
-
);
|
|
3286
|
-
}
|
|
3287
|
-
|
|
3288
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/5ZKAE4VZ.js
|
|
3289
|
-
var __defProp = Object.defineProperty;
|
|
3290
|
-
var __export = (target, all) => {
|
|
3291
|
-
for (var name in all)
|
|
3292
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
3293
3468
|
};
|
|
3469
|
+
var presence_default = createPresence;
|
|
3470
|
+
var src_default = presence_default;
|
|
3294
3471
|
|
|
3295
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
3296
|
-
function createRegisterId(setter) {
|
|
3297
|
-
return (id) => {
|
|
3298
|
-
setter(id);
|
|
3299
|
-
return () => setter(void 0);
|
|
3300
|
-
};
|
|
3301
|
-
}
|
|
3302
|
-
|
|
3303
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/3QD537TT.js
|
|
3304
|
-
function createTagName(ref, fallback) {
|
|
3305
|
-
const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));
|
|
3306
|
-
createEffect(() => {
|
|
3307
|
-
setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));
|
|
3308
|
-
});
|
|
3309
|
-
return tagName;
|
|
3310
|
-
}
|
|
3311
|
-
function stringOrUndefined(value) {
|
|
3312
|
-
return isString(value) ? value : void 0;
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/IXGTCCA7.js
|
|
3316
|
-
var FORM_CONTROL_PROP_NAMES = ["id", "name", "validationState", "required", "disabled", "readOnly"];
|
|
3317
|
-
function createFormControl(props) {
|
|
3318
|
-
const defaultId = `form-control-${createUniqueId()}`;
|
|
3319
|
-
const mergedProps = mergeDefaultProps({
|
|
3320
|
-
id: defaultId
|
|
3321
|
-
}, props);
|
|
3322
|
-
const [labelId, setLabelId] = createSignal();
|
|
3323
|
-
const [fieldId, setFieldId] = createSignal();
|
|
3324
|
-
const [descriptionId, setDescriptionId] = createSignal();
|
|
3325
|
-
const [errorMessageId, setErrorMessageId] = createSignal();
|
|
3326
|
-
const getAriaLabelledBy = (fieldId2, fieldAriaLabel, fieldAriaLabelledBy) => {
|
|
3327
|
-
const hasAriaLabelledBy = fieldAriaLabelledBy != null || labelId() != null;
|
|
3328
|
-
return [
|
|
3329
|
-
fieldAriaLabelledBy,
|
|
3330
|
-
labelId(),
|
|
3331
|
-
// If there is both an aria-label and aria-labelledby, add the field itself has an aria-labelledby
|
|
3332
|
-
hasAriaLabelledBy && fieldAriaLabel != null ? fieldId2 : void 0
|
|
3333
|
-
].filter(Boolean).join(" ") || void 0;
|
|
3334
|
-
};
|
|
3335
|
-
const getAriaDescribedBy = (fieldAriaDescribedBy) => {
|
|
3336
|
-
return [
|
|
3337
|
-
descriptionId(),
|
|
3338
|
-
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA.
|
|
3339
|
-
// See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
3340
|
-
errorMessageId(),
|
|
3341
|
-
fieldAriaDescribedBy
|
|
3342
|
-
].filter(Boolean).join(" ") || void 0;
|
|
3343
|
-
};
|
|
3344
|
-
const dataset = createMemo(() => ({
|
|
3345
|
-
"data-valid": access(mergedProps.validationState) === "valid" ? "" : void 0,
|
|
3346
|
-
"data-invalid": access(mergedProps.validationState) === "invalid" ? "" : void 0,
|
|
3347
|
-
"data-required": access(mergedProps.required) ? "" : void 0,
|
|
3348
|
-
"data-disabled": access(mergedProps.disabled) ? "" : void 0,
|
|
3349
|
-
"data-readonly": access(mergedProps.readOnly) ? "" : void 0
|
|
3350
|
-
}));
|
|
3351
|
-
const formControlContext = {
|
|
3352
|
-
name: () => access(mergedProps.name) ?? access(mergedProps.id),
|
|
3353
|
-
dataset,
|
|
3354
|
-
validationState: () => access(mergedProps.validationState),
|
|
3355
|
-
isRequired: () => access(mergedProps.required),
|
|
3356
|
-
isDisabled: () => access(mergedProps.disabled),
|
|
3357
|
-
isReadOnly: () => access(mergedProps.readOnly),
|
|
3358
|
-
labelId,
|
|
3359
|
-
fieldId,
|
|
3360
|
-
descriptionId,
|
|
3361
|
-
errorMessageId,
|
|
3362
|
-
getAriaLabelledBy,
|
|
3363
|
-
getAriaDescribedBy,
|
|
3364
|
-
generateId: createGenerateId(() => access(mergedProps.id)),
|
|
3365
|
-
registerLabel: createRegisterId(setLabelId),
|
|
3366
|
-
registerField: createRegisterId(setFieldId),
|
|
3367
|
-
registerDescription: createRegisterId(setDescriptionId),
|
|
3368
|
-
registerErrorMessage: createRegisterId(setErrorMessageId)
|
|
3369
|
-
};
|
|
3370
|
-
return {
|
|
3371
|
-
formControlContext
|
|
3372
|
-
};
|
|
3373
|
-
}
|
|
3374
|
-
var FormControlContext = createContext();
|
|
3375
|
-
function useFormControlContext() {
|
|
3376
|
-
const context = useContext(FormControlContext);
|
|
3377
|
-
if (context === void 0) {
|
|
3378
|
-
throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");
|
|
3379
|
-
}
|
|
3380
|
-
return context;
|
|
3381
|
-
}
|
|
3382
|
-
function FormControlDescription(props) {
|
|
3383
|
-
const context = useFormControlContext();
|
|
3384
|
-
const mergedProps = mergeDefaultProps({
|
|
3385
|
-
id: context.generateId("description")
|
|
3386
|
-
}, props);
|
|
3387
|
-
createEffect(() => onCleanup(context.registerDescription(mergedProps.id)));
|
|
3388
|
-
return createComponent(Polymorphic, mergeProps({
|
|
3389
|
-
as: "div"
|
|
3390
|
-
}, () => context.dataset(), mergedProps));
|
|
3391
|
-
}
|
|
3392
|
-
function FormControlErrorMessage(props) {
|
|
3393
|
-
const context = useFormControlContext();
|
|
3394
|
-
const mergedProps = mergeDefaultProps({
|
|
3395
|
-
id: context.generateId("error-message")
|
|
3396
|
-
}, props);
|
|
3397
|
-
const [local, others] = splitProps(mergedProps, ["forceMount"]);
|
|
3398
|
-
const isInvalid = () => context.validationState() === "invalid";
|
|
3399
|
-
createEffect(() => {
|
|
3400
|
-
if (!isInvalid()) {
|
|
3401
|
-
return;
|
|
3402
|
-
}
|
|
3403
|
-
onCleanup(context.registerErrorMessage(others.id));
|
|
3404
|
-
});
|
|
3405
|
-
return createComponent(Show, {
|
|
3406
|
-
get when() {
|
|
3407
|
-
return local.forceMount || isInvalid();
|
|
3408
|
-
},
|
|
3409
|
-
get children() {
|
|
3410
|
-
return createComponent(Polymorphic, mergeProps({
|
|
3411
|
-
as: "div"
|
|
3412
|
-
}, () => context.dataset(), others));
|
|
3413
|
-
}
|
|
3414
|
-
});
|
|
3415
|
-
}
|
|
3416
|
-
function FormControlLabel(props) {
|
|
3417
|
-
let ref;
|
|
3418
|
-
const context = useFormControlContext();
|
|
3419
|
-
const mergedProps = mergeDefaultProps({
|
|
3420
|
-
id: context.generateId("label")
|
|
3421
|
-
}, props);
|
|
3422
|
-
const [local, others] = splitProps(mergedProps, ["ref"]);
|
|
3423
|
-
const tagName = createTagName(() => ref, () => "label");
|
|
3424
|
-
createEffect(() => onCleanup(context.registerLabel(others.id)));
|
|
3425
|
-
return createComponent(Polymorphic, mergeProps({
|
|
3426
|
-
as: "label",
|
|
3427
|
-
ref(r$) {
|
|
3428
|
-
const _ref$ = mergeRefs((el) => ref = el, local.ref);
|
|
3429
|
-
typeof _ref$ === "function" && _ref$(r$);
|
|
3430
|
-
},
|
|
3431
|
-
get ["for"]() {
|
|
3432
|
-
return createMemo(() => tagName() === "label")() ? context.fieldId() : void 0;
|
|
3433
|
-
}
|
|
3434
|
-
}, () => context.dataset(), others));
|
|
3435
|
-
}
|
|
3436
|
-
|
|
3437
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ANN3A2QM.js
|
|
3438
|
-
function createFormResetListener(element, handler) {
|
|
3439
|
-
createEffect(
|
|
3440
|
-
on(element, (element2) => {
|
|
3441
|
-
if (element2 == null) {
|
|
3442
|
-
return;
|
|
3443
|
-
}
|
|
3444
|
-
const form = getClosestForm(element2);
|
|
3445
|
-
if (form == null) {
|
|
3446
|
-
return;
|
|
3447
|
-
}
|
|
3448
|
-
form.addEventListener("reset", handler, { passive: true });
|
|
3449
|
-
onCleanup(() => {
|
|
3450
|
-
form.removeEventListener("reset", handler);
|
|
3451
|
-
});
|
|
3452
|
-
})
|
|
3453
|
-
);
|
|
3454
|
-
}
|
|
3455
|
-
function getClosestForm(element) {
|
|
3456
|
-
return isFormElement(element) ? element.form : element.closest("form");
|
|
3457
|
-
}
|
|
3458
|
-
function isFormElement(element) {
|
|
3459
|
-
return element.matches("textarea, input, select, button");
|
|
3460
|
-
}
|
|
3461
|
-
|
|
3462
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js
|
|
3472
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ZKYDDHM6.js
|
|
3463
3473
|
var DATA_TOP_LAYER_ATTR = "data-kb-top-layer";
|
|
3464
3474
|
var originalBodyPointerEvents;
|
|
3465
3475
|
var hasDisabledBodyPointerEvents = false;
|
|
@@ -3536,7 +3546,7 @@ var layerStack = {
|
|
|
3536
3546
|
restoreBodyPointerEvents
|
|
3537
3547
|
};
|
|
3538
3548
|
|
|
3539
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
3549
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7OVKXYPU.js
|
|
3540
3550
|
var button_exports = {};
|
|
3541
3551
|
__export(button_exports, {
|
|
3542
3552
|
Button: () => Button,
|
|
@@ -3611,34 +3621,16 @@ function ButtonRoot(props) {
|
|
|
3611
3621
|
}
|
|
3612
3622
|
var Button = ButtonRoot;
|
|
3613
3623
|
|
|
3614
|
-
// ../../node_modules/.pnpm/@
|
|
3615
|
-
function createToggleState(props = {}) {
|
|
3616
|
-
const [isSelected, _setIsSelected] = createControllableBooleanSignal({
|
|
3617
|
-
value: () => access(props.isSelected),
|
|
3618
|
-
defaultValue: () => !!access(props.defaultIsSelected),
|
|
3619
|
-
onChange: (value) => props.onSelectedChange?.(value)
|
|
3620
|
-
});
|
|
3621
|
-
const setIsSelected = (value) => {
|
|
3622
|
-
if (!access(props.isReadOnly) && !access(props.isDisabled)) {
|
|
3623
|
-
_setIsSelected(value);
|
|
3624
|
-
}
|
|
3625
|
-
};
|
|
3626
|
-
const toggle = () => {
|
|
3627
|
-
if (!access(props.isReadOnly) && !access(props.isDisabled)) {
|
|
3628
|
-
_setIsSelected(!isSelected());
|
|
3629
|
-
}
|
|
3630
|
-
};
|
|
3631
|
-
return {
|
|
3632
|
-
isSelected,
|
|
3633
|
-
setIsSelected,
|
|
3634
|
-
toggle
|
|
3635
|
-
};
|
|
3636
|
-
}
|
|
3637
|
-
|
|
3638
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
3624
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
3639
3625
|
var sides = ["top", "right", "bottom", "left"];
|
|
3640
3626
|
var min = Math.min;
|
|
3641
3627
|
var max = Math.max;
|
|
3628
|
+
var round = Math.round;
|
|
3629
|
+
var floor = Math.floor;
|
|
3630
|
+
var createCoords = (v) => ({
|
|
3631
|
+
x: v,
|
|
3632
|
+
y: v
|
|
3633
|
+
});
|
|
3642
3634
|
var oppositeSideMap = {
|
|
3643
3635
|
left: "right",
|
|
3644
3636
|
right: "left",
|
|
@@ -3743,16 +3735,25 @@ function getPaddingObject(padding) {
|
|
|
3743
3735
|
};
|
|
3744
3736
|
}
|
|
3745
3737
|
function rectToClientRect(rect) {
|
|
3738
|
+
const {
|
|
3739
|
+
x,
|
|
3740
|
+
y,
|
|
3741
|
+
width,
|
|
3742
|
+
height
|
|
3743
|
+
} = rect;
|
|
3746
3744
|
return {
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3745
|
+
width,
|
|
3746
|
+
height,
|
|
3747
|
+
top: y,
|
|
3748
|
+
left: x,
|
|
3749
|
+
right: x + width,
|
|
3750
|
+
bottom: y + height,
|
|
3751
|
+
x,
|
|
3752
|
+
y
|
|
3752
3753
|
};
|
|
3753
3754
|
}
|
|
3754
3755
|
|
|
3755
|
-
// ../../node_modules/.pnpm/@floating-ui+core@1.5
|
|
3756
|
+
// ../../node_modules/.pnpm/@floating-ui+core@1.6.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
3756
3757
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
3757
3758
|
let {
|
|
3758
3759
|
reference,
|
|
@@ -3881,7 +3882,6 @@ var computePosition = async (reference, floating, config) => {
|
|
|
3881
3882
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
3882
3883
|
}
|
|
3883
3884
|
i2 = -1;
|
|
3884
|
-
continue;
|
|
3885
3885
|
}
|
|
3886
3886
|
}
|
|
3887
3887
|
return {
|
|
@@ -3922,9 +3922,10 @@ async function detectOverflow(state, options) {
|
|
|
3922
3922
|
strategy
|
|
3923
3923
|
}));
|
|
3924
3924
|
const rect = elementContext === "floating" ? {
|
|
3925
|
-
...rects.floating,
|
|
3926
3925
|
x,
|
|
3927
|
-
y
|
|
3926
|
+
y,
|
|
3927
|
+
width: rects.floating.width,
|
|
3928
|
+
height: rects.floating.height
|
|
3928
3929
|
} : rects.reference;
|
|
3929
3930
|
const offsetParent = await (platform2.getOffsetParent == null ? void 0 : platform2.getOffsetParent(elements.floating));
|
|
3930
3931
|
const offsetScale = await (platform2.isElement == null ? void 0 : platform2.isElement(offsetParent)) ? await (platform2.getScale == null ? void 0 : platform2.getScale(offsetParent)) || {
|
|
@@ -3935,6 +3936,7 @@ async function detectOverflow(state, options) {
|
|
|
3935
3936
|
y: 1
|
|
3936
3937
|
};
|
|
3937
3938
|
const elementClientRect = rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3939
|
+
elements,
|
|
3938
3940
|
rect,
|
|
3939
3941
|
offsetParent,
|
|
3940
3942
|
strategy
|
|
@@ -3990,11 +3992,11 @@ var arrow = (options) => ({
|
|
|
3990
3992
|
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
3991
3993
|
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
3992
3994
|
const min$1 = minPadding;
|
|
3993
|
-
const
|
|
3995
|
+
const max2 = clientSize - arrowDimensions[length] - maxPadding;
|
|
3994
3996
|
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
3995
|
-
const offset3 = clamp2(min$1, center,
|
|
3996
|
-
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center
|
|
3997
|
-
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center -
|
|
3997
|
+
const offset3 = clamp2(min$1, center, max2);
|
|
3998
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset3 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
3999
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
|
|
3998
4000
|
return {
|
|
3999
4001
|
[axis]: coords[axis] + alignmentOffset,
|
|
4000
4002
|
data: {
|
|
@@ -4038,10 +4040,12 @@ var flip = function(options) {
|
|
|
4038
4040
|
return {};
|
|
4039
4041
|
}
|
|
4040
4042
|
const side = getSide(placement);
|
|
4043
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
4041
4044
|
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
4042
4045
|
const rtl = await (platform2.isRTL == null ? void 0 : platform2.isRTL(elements.floating));
|
|
4043
4046
|
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
4044
|
-
|
|
4047
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
|
|
4048
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
4045
4049
|
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
4046
4050
|
}
|
|
4047
4051
|
const placements2 = [initialPlacement, ...fallbackPlacements];
|
|
@@ -4078,8 +4082,16 @@ var flip = function(options) {
|
|
|
4078
4082
|
if (!resetPlacement) {
|
|
4079
4083
|
switch (fallbackStrategy) {
|
|
4080
4084
|
case "bestFit": {
|
|
4081
|
-
var _overflowsData$
|
|
4082
|
-
const placement2 = (_overflowsData$
|
|
4085
|
+
var _overflowsData$filter2;
|
|
4086
|
+
const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
|
|
4087
|
+
if (hasFallbackAxisSideDirection) {
|
|
4088
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
4089
|
+
return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
|
|
4090
|
+
// reading directions favoring greater width.
|
|
4091
|
+
currentSideAxis === "y";
|
|
4092
|
+
}
|
|
4093
|
+
return true;
|
|
4094
|
+
}).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a2, b2) => a2[1] - b2[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
4083
4095
|
if (placement2) {
|
|
4084
4096
|
resetPlacement = placement2;
|
|
4085
4097
|
}
|
|
@@ -4208,15 +4220,24 @@ var offset = function(options) {
|
|
|
4208
4220
|
name: "offset",
|
|
4209
4221
|
options,
|
|
4210
4222
|
async fn(state) {
|
|
4223
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
4211
4224
|
const {
|
|
4212
4225
|
x,
|
|
4213
|
-
y
|
|
4226
|
+
y,
|
|
4227
|
+
placement,
|
|
4228
|
+
middlewareData
|
|
4214
4229
|
} = state;
|
|
4215
4230
|
const diffCoords = await convertValueToCoords(state, options);
|
|
4231
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
4232
|
+
return {};
|
|
4233
|
+
}
|
|
4216
4234
|
return {
|
|
4217
4235
|
x: x + diffCoords.x,
|
|
4218
4236
|
y: y + diffCoords.y,
|
|
4219
|
-
data:
|
|
4237
|
+
data: {
|
|
4238
|
+
...diffCoords,
|
|
4239
|
+
placement
|
|
4240
|
+
}
|
|
4220
4241
|
};
|
|
4221
4242
|
}
|
|
4222
4243
|
};
|
|
@@ -4263,16 +4284,16 @@ var shift = function(options) {
|
|
|
4263
4284
|
if (checkMainAxis) {
|
|
4264
4285
|
const minSide = mainAxis === "y" ? "top" : "left";
|
|
4265
4286
|
const maxSide = mainAxis === "y" ? "bottom" : "right";
|
|
4266
|
-
const
|
|
4267
|
-
const
|
|
4268
|
-
mainAxisCoord = clamp2(
|
|
4287
|
+
const min2 = mainAxisCoord + overflow[minSide];
|
|
4288
|
+
const max2 = mainAxisCoord - overflow[maxSide];
|
|
4289
|
+
mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
|
|
4269
4290
|
}
|
|
4270
4291
|
if (checkCrossAxis) {
|
|
4271
4292
|
const minSide = crossAxis === "y" ? "top" : "left";
|
|
4272
4293
|
const maxSide = crossAxis === "y" ? "bottom" : "right";
|
|
4273
|
-
const
|
|
4274
|
-
const
|
|
4275
|
-
crossAxisCoord = clamp2(
|
|
4294
|
+
const min2 = crossAxisCoord + overflow[minSide];
|
|
4295
|
+
const max2 = crossAxisCoord - overflow[maxSide];
|
|
4296
|
+
crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
|
|
4276
4297
|
}
|
|
4277
4298
|
const limitedCoords = limiter.fn({
|
|
4278
4299
|
...state,
|
|
@@ -4325,16 +4346,16 @@ var size = function(options) {
|
|
|
4325
4346
|
widthSide = side;
|
|
4326
4347
|
heightSide = alignment === "end" ? "top" : "bottom";
|
|
4327
4348
|
}
|
|
4328
|
-
const
|
|
4329
|
-
const
|
|
4349
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
4350
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
4351
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
4352
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
4330
4353
|
const noShift = !state.middlewareData.shift;
|
|
4331
4354
|
let availableHeight = overflowAvailableHeight;
|
|
4332
4355
|
let availableWidth = overflowAvailableWidth;
|
|
4333
4356
|
if (isYAxis) {
|
|
4334
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
4335
4357
|
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
4336
4358
|
} else {
|
|
4337
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
4338
4359
|
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
4339
4360
|
}
|
|
4340
4361
|
if (noShift && !alignment) {
|
|
@@ -4366,17 +4387,7 @@ var size = function(options) {
|
|
|
4366
4387
|
};
|
|
4367
4388
|
};
|
|
4368
4389
|
|
|
4369
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.
|
|
4370
|
-
var min2 = Math.min;
|
|
4371
|
-
var max2 = Math.max;
|
|
4372
|
-
var round = Math.round;
|
|
4373
|
-
var floor = Math.floor;
|
|
4374
|
-
var createCoords = (v) => ({
|
|
4375
|
-
x: v,
|
|
4376
|
-
y: v
|
|
4377
|
-
});
|
|
4378
|
-
|
|
4379
|
-
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.2/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
4390
|
+
// ../../node_modules/.pnpm/@floating-ui+utils@0.2.5/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
4380
4391
|
function getNodeName(node) {
|
|
4381
4392
|
if (isNode(node)) {
|
|
4382
4393
|
return (node.nodeName || "").toLowerCase();
|
|
@@ -4418,9 +4429,18 @@ function isOverflowElement(element) {
|
|
|
4418
4429
|
function isTableElement(element) {
|
|
4419
4430
|
return ["table", "td", "th"].includes(getNodeName(element));
|
|
4420
4431
|
}
|
|
4421
|
-
function
|
|
4432
|
+
function isTopLayer(element) {
|
|
4433
|
+
return [":popover-open", ":modal"].some((selector) => {
|
|
4434
|
+
try {
|
|
4435
|
+
return element.matches(selector);
|
|
4436
|
+
} catch (e2) {
|
|
4437
|
+
return false;
|
|
4438
|
+
}
|
|
4439
|
+
});
|
|
4440
|
+
}
|
|
4441
|
+
function isContainingBlock(elementOrCss) {
|
|
4422
4442
|
const webkit = isWebKit();
|
|
4423
|
-
const css = getComputedStyle2(
|
|
4443
|
+
const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
|
|
4424
4444
|
return css.transform !== "none" || css.perspective !== "none" || (css.containerType ? css.containerType !== "normal" : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== "none" : false) || !webkit && (css.filter ? css.filter !== "none" : false) || ["transform", "perspective", "filter"].some((value) => (css.willChange || "").includes(value)) || ["paint", "layout", "strict", "content"].some((value) => (css.contain || "").includes(value));
|
|
4425
4445
|
}
|
|
4426
4446
|
function getContainingBlock(element) {
|
|
@@ -4428,6 +4448,8 @@ function getContainingBlock(element) {
|
|
|
4428
4448
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
4429
4449
|
if (isContainingBlock(currentNode)) {
|
|
4430
4450
|
return currentNode;
|
|
4451
|
+
} else if (isTopLayer(currentNode)) {
|
|
4452
|
+
return null;
|
|
4431
4453
|
}
|
|
4432
4454
|
currentNode = getParentNode(currentNode);
|
|
4433
4455
|
}
|
|
@@ -4452,8 +4474,8 @@ function getNodeScroll(element) {
|
|
|
4452
4474
|
};
|
|
4453
4475
|
}
|
|
4454
4476
|
return {
|
|
4455
|
-
scrollLeft: element.
|
|
4456
|
-
scrollTop: element.
|
|
4477
|
+
scrollLeft: element.scrollX,
|
|
4478
|
+
scrollTop: element.scrollY
|
|
4457
4479
|
};
|
|
4458
4480
|
}
|
|
4459
4481
|
function getParentNode(node) {
|
|
@@ -4496,7 +4518,7 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
4496
4518
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
4497
4519
|
}
|
|
4498
4520
|
|
|
4499
|
-
// ../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
4521
|
+
// ../../node_modules/.pnpm/@floating-ui+dom@1.6.8/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
4500
4522
|
function getCssDimensions(element) {
|
|
4501
4523
|
const css = getComputedStyle2(element);
|
|
4502
4524
|
let width = parseFloat(css.width) || 0;
|
|
@@ -4614,16 +4636,6 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
4614
4636
|
y
|
|
4615
4637
|
});
|
|
4616
4638
|
}
|
|
4617
|
-
var topLayerSelectors = [":popover-open", ":modal"];
|
|
4618
|
-
function isTopLayer(element) {
|
|
4619
|
-
return topLayerSelectors.some((selector) => {
|
|
4620
|
-
try {
|
|
4621
|
-
return element.matches(selector);
|
|
4622
|
-
} catch (e2) {
|
|
4623
|
-
return false;
|
|
4624
|
-
}
|
|
4625
|
-
});
|
|
4626
|
-
}
|
|
4627
4639
|
function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
4628
4640
|
let {
|
|
4629
4641
|
elements,
|
|
@@ -4672,12 +4684,12 @@ function getDocumentRect(element) {
|
|
|
4672
4684
|
const html = getDocumentElement(element);
|
|
4673
4685
|
const scroll = getNodeScroll(element);
|
|
4674
4686
|
const body = element.ownerDocument.body;
|
|
4675
|
-
const width =
|
|
4676
|
-
const height =
|
|
4687
|
+
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
4688
|
+
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
4677
4689
|
let x = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
4678
4690
|
const y = -scroll.scrollTop;
|
|
4679
4691
|
if (getComputedStyle2(body).direction === "rtl") {
|
|
4680
|
-
x +=
|
|
4692
|
+
x += max(html.clientWidth, body.clientWidth) - width;
|
|
4681
4693
|
}
|
|
4682
4694
|
return {
|
|
4683
4695
|
width,
|
|
@@ -4789,10 +4801,10 @@ function getClippingRect(_ref) {
|
|
|
4789
4801
|
const firstClippingAncestor = clippingAncestors[0];
|
|
4790
4802
|
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
4791
4803
|
const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
|
|
4792
|
-
accRect.top =
|
|
4793
|
-
accRect.right =
|
|
4794
|
-
accRect.bottom =
|
|
4795
|
-
accRect.left =
|
|
4804
|
+
accRect.top = max(rect.top, accRect.top);
|
|
4805
|
+
accRect.right = min(rect.right, accRect.right);
|
|
4806
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
4807
|
+
accRect.left = max(rect.left, accRect.left);
|
|
4796
4808
|
return accRect;
|
|
4797
4809
|
}, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
|
|
4798
4810
|
return {
|
|
@@ -4945,7 +4957,7 @@ function observeMove(element, onMove) {
|
|
|
4945
4957
|
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
4946
4958
|
const options = {
|
|
4947
4959
|
rootMargin,
|
|
4948
|
-
threshold:
|
|
4960
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
4949
4961
|
};
|
|
4950
4962
|
let isFirstUpdate = true;
|
|
4951
4963
|
function handleObserve(entries2) {
|
|
@@ -5068,7 +5080,7 @@ var computePosition2 = (reference, floating, options) => {
|
|
|
5068
5080
|
});
|
|
5069
5081
|
};
|
|
5070
5082
|
|
|
5071
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
5083
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/4X2EKUJ3.js
|
|
5072
5084
|
var PopperContext = createContext();
|
|
5073
5085
|
function usePopperContext() {
|
|
5074
5086
|
const context = useContext(PopperContext);
|
|
@@ -5077,7 +5089,7 @@ function usePopperContext() {
|
|
|
5077
5089
|
}
|
|
5078
5090
|
return context;
|
|
5079
5091
|
}
|
|
5080
|
-
var _tmpl$ = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
|
|
5092
|
+
var _tmpl$ = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
|
|
5081
5093
|
var DEFAULT_SIZE = 30;
|
|
5082
5094
|
var HALF_DEFAULT_SIZE = DEFAULT_SIZE / 2;
|
|
5083
5095
|
var ROTATION_DEG = {
|
|
@@ -5098,10 +5110,10 @@ function PopperArrow(props) {
|
|
|
5098
5110
|
const stroke = () => contentStyle()?.getPropertyValue(`border-${dir()}-color`) || "none";
|
|
5099
5111
|
const borderWidth = () => contentStyle()?.getPropertyValue(`border-${dir()}-width`) || "0px";
|
|
5100
5112
|
const strokeWidth = () => {
|
|
5101
|
-
return parseInt(borderWidth()) * 2 * (DEFAULT_SIZE / local.size);
|
|
5113
|
+
return Number.parseInt(borderWidth()) * 2 * (DEFAULT_SIZE / local.size);
|
|
5102
5114
|
};
|
|
5103
5115
|
const rotate = () => {
|
|
5104
|
-
return `rotate(${ROTATION_DEG[dir()]} ${HALF_DEFAULT_SIZE} ${HALF_DEFAULT_SIZE})`;
|
|
5116
|
+
return `rotate(${ROTATION_DEG[dir()]} ${HALF_DEFAULT_SIZE} ${HALF_DEFAULT_SIZE}) translate(0 2)`;
|
|
5105
5117
|
};
|
|
5106
5118
|
return createComponent(Polymorphic, mergeProps({
|
|
5107
5119
|
as: "div",
|
|
@@ -5111,7 +5123,7 @@ function PopperArrow(props) {
|
|
|
5111
5123
|
},
|
|
5112
5124
|
"aria-hidden": "true",
|
|
5113
5125
|
get style() {
|
|
5114
|
-
return {
|
|
5126
|
+
return combineStyle({
|
|
5115
5127
|
// server side rendering
|
|
5116
5128
|
position: "absolute",
|
|
5117
5129
|
"font-size": `${local.size}px`,
|
|
@@ -5120,9 +5132,8 @@ function PopperArrow(props) {
|
|
|
5120
5132
|
"pointer-events": "none",
|
|
5121
5133
|
fill: fill(),
|
|
5122
5134
|
stroke: stroke(),
|
|
5123
|
-
"stroke-width": strokeWidth()
|
|
5124
|
-
|
|
5125
|
-
};
|
|
5135
|
+
"stroke-width": strokeWidth()
|
|
5136
|
+
}, local.style);
|
|
5126
5137
|
}
|
|
5127
5138
|
}, others, {
|
|
5128
5139
|
get children() {
|
|
@@ -5151,13 +5162,12 @@ function PopperPositioner(props) {
|
|
|
5151
5162
|
},
|
|
5152
5163
|
"data-popper-positioner": "",
|
|
5153
5164
|
get style() {
|
|
5154
|
-
return {
|
|
5165
|
+
return combineStyle({
|
|
5155
5166
|
position: "absolute",
|
|
5156
5167
|
top: 0,
|
|
5157
5168
|
left: 0,
|
|
5158
|
-
"min-width": "max-content"
|
|
5159
|
-
|
|
5160
|
-
};
|
|
5169
|
+
"min-width": "max-content"
|
|
5170
|
+
}, local.style);
|
|
5161
5171
|
}
|
|
5162
5172
|
}, others));
|
|
5163
5173
|
}
|
|
@@ -5396,7 +5406,7 @@ var Popper = Object.assign(PopperRoot, {
|
|
|
5396
5406
|
Positioner: PopperPositioner
|
|
5397
5407
|
});
|
|
5398
5408
|
|
|
5399
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
5409
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QEMPLYZX.js
|
|
5400
5410
|
function createEscapeKeyDown(props) {
|
|
5401
5411
|
const handleKeyDown = (event) => {
|
|
5402
5412
|
if (event.key === EventKey.Escape) {
|
|
@@ -5418,7 +5428,7 @@ function createEscapeKeyDown(props) {
|
|
|
5418
5428
|
});
|
|
5419
5429
|
}
|
|
5420
5430
|
|
|
5421
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
5431
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/QGCMYLTA.js
|
|
5422
5432
|
var POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
|
|
5423
5433
|
var FOCUS_OUTSIDE_EVENT = "interactOutside.focusOutside";
|
|
5424
5434
|
function createInteractOutside(props, ref) {
|
|
@@ -5520,7 +5530,7 @@ function createInteractOutside(props, ref) {
|
|
|
5520
5530
|
});
|
|
5521
5531
|
}
|
|
5522
5532
|
|
|
5523
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
5533
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/G7G3PFRJ.js
|
|
5524
5534
|
var DismissableLayerContext = createContext();
|
|
5525
5535
|
function useOptionalDismissableLayerContext() {
|
|
5526
5536
|
return useContext(DismissableLayerContext);
|
|
@@ -5639,7 +5649,7 @@ function DismissableLayer(props) {
|
|
|
5639
5649
|
});
|
|
5640
5650
|
}
|
|
5641
5651
|
|
|
5642
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
5652
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/7LCANGHD.js
|
|
5643
5653
|
function createDisclosureState(props = {}) {
|
|
5644
5654
|
const [isOpen, setIsOpen] = createControllableBooleanSignal({
|
|
5645
5655
|
value: () => access(props.open),
|
|
@@ -5664,7 +5674,7 @@ function createDisclosureState(props = {}) {
|
|
|
5664
5674
|
};
|
|
5665
5675
|
}
|
|
5666
5676
|
|
|
5667
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
5677
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/Q2BOFK7I.js
|
|
5668
5678
|
var radio_group_exports = {};
|
|
5669
5679
|
__export(radio_group_exports, {
|
|
5670
5680
|
Description: () => FormControlDescription,
|
|
@@ -5793,16 +5803,22 @@ function RadioGroupItemIndicator(props) {
|
|
|
5793
5803
|
id: context.generateId("indicator")
|
|
5794
5804
|
}, props);
|
|
5795
5805
|
const [local, others] = splitProps(mergedProps, ["ref", "forceMount"]);
|
|
5796
|
-
const
|
|
5806
|
+
const [ref, setRef] = createSignal();
|
|
5807
|
+
const {
|
|
5808
|
+
present
|
|
5809
|
+
} = src_default({
|
|
5810
|
+
show: () => local.forceMount || context.isSelected(),
|
|
5811
|
+
element: () => ref() ?? null
|
|
5812
|
+
});
|
|
5797
5813
|
return createComponent(Show, {
|
|
5798
5814
|
get when() {
|
|
5799
|
-
return
|
|
5815
|
+
return present();
|
|
5800
5816
|
},
|
|
5801
5817
|
get children() {
|
|
5802
5818
|
return createComponent(Polymorphic, mergeProps({
|
|
5803
5819
|
as: "div",
|
|
5804
5820
|
ref(r$) {
|
|
5805
|
-
const _ref$ = mergeRefs(
|
|
5821
|
+
const _ref$ = mergeRefs(setRef, local.ref);
|
|
5806
5822
|
typeof _ref$ === "function" && _ref$(r$);
|
|
5807
5823
|
}
|
|
5808
5824
|
}, () => context.dataset(), others));
|
|
@@ -5890,10 +5906,9 @@ function RadioGroupItemInput(props) {
|
|
|
5890
5906
|
return formControlContext.isReadOnly();
|
|
5891
5907
|
},
|
|
5892
5908
|
get style() {
|
|
5893
|
-
return {
|
|
5894
|
-
...visuallyHiddenStyles
|
|
5895
|
-
|
|
5896
|
-
};
|
|
5909
|
+
return combineStyle({
|
|
5910
|
+
...visuallyHiddenStyles
|
|
5911
|
+
}, local.style);
|
|
5897
5912
|
},
|
|
5898
5913
|
get ["aria-labelledby"]() {
|
|
5899
5914
|
return ariaLabelledBy();
|
|
@@ -6020,7 +6035,7 @@ var RadioGroup = Object.assign(RadioGroupRoot, {
|
|
|
6020
6035
|
Label: RadioGroupLabel
|
|
6021
6036
|
});
|
|
6022
6037
|
|
|
6023
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
6038
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/GLKC2QFF.js
|
|
6024
6039
|
var ListKeyboardDelegate = class {
|
|
6025
6040
|
collection;
|
|
6026
6041
|
ref;
|
|
@@ -6149,14 +6164,13 @@ function createSelectableList(props, ref, scrollRef) {
|
|
|
6149
6164
|
shouldUseVirtualFocus: () => access(props.shouldUseVirtualFocus),
|
|
6150
6165
|
allowsTabNavigation: () => access(props.allowsTabNavigation),
|
|
6151
6166
|
isVirtualized: () => access(props.isVirtualized),
|
|
6152
|
-
scrollToKey: (key) => access(props.scrollToKey)?.(key)
|
|
6167
|
+
scrollToKey: (key) => access(props.scrollToKey)?.(key),
|
|
6168
|
+
orientation: () => access(props.orientation)
|
|
6153
6169
|
},
|
|
6154
|
-
ref
|
|
6155
|
-
scrollRef
|
|
6156
|
-
);
|
|
6170
|
+
ref);
|
|
6157
6171
|
}
|
|
6158
6172
|
|
|
6159
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
6173
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/ISKHZMHS.js
|
|
6160
6174
|
var AUTOFOCUS_ON_MOUNT_EVENT = "focusScope.autoFocusOnMount";
|
|
6161
6175
|
var AUTOFOCUS_ON_UNMOUNT_EVENT = "focusScope.autoFocusOnUnmount";
|
|
6162
6176
|
var EVENT_OPTIONS = {
|
|
@@ -6357,10 +6371,10 @@ function createFocusScope(props, ref) {
|
|
|
6357
6371
|
});
|
|
6358
6372
|
}
|
|
6359
6373
|
|
|
6360
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
6374
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/YA7DCYMB.js
|
|
6361
6375
|
var DATA_LIVE_ANNOUNCER_ATTR = "data-live-announcer";
|
|
6362
6376
|
|
|
6363
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
6377
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/TZGE2AQH.js
|
|
6364
6378
|
function createHideOutside(props) {
|
|
6365
6379
|
createEffect(() => {
|
|
6366
6380
|
if (access(props.isDisabled)) {
|
|
@@ -6480,10 +6494,7 @@ function ariaHideOutside(targets, root = document.body) {
|
|
|
6480
6494
|
};
|
|
6481
6495
|
}
|
|
6482
6496
|
|
|
6483
|
-
// ../../node_modules/.pnpm/@corvu+utils@0.
|
|
6484
|
-
var access2 = (v) => typeof v === "function" ? v() : v;
|
|
6485
|
-
|
|
6486
|
-
// ../../node_modules/.pnpm/@corvu+utils@0.2.0_solid-js@1.8.17/node_modules/@corvu/utils/dist/chunk/6PYUKSWQ.js
|
|
6497
|
+
// ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/chunk/HD4B7J7A.js
|
|
6487
6498
|
var activeStyles = /* @__PURE__ */ new Map();
|
|
6488
6499
|
var createStyle = (props) => {
|
|
6489
6500
|
createEffect(() => {
|
|
@@ -6531,7 +6542,7 @@ var createStyle = (props) => {
|
|
|
6531
6542
|
};
|
|
6532
6543
|
var style_default = createStyle;
|
|
6533
6544
|
|
|
6534
|
-
// ../../node_modules/.pnpm/@corvu+utils@0.
|
|
6545
|
+
// ../../node_modules/.pnpm/@corvu+utils@0.3.2_solid-js@1.8.19/node_modules/@corvu/utils/dist/scroll/index.js
|
|
6535
6546
|
var getScrollDimensions = (element, axis) => {
|
|
6536
6547
|
switch (axis) {
|
|
6537
6548
|
case "x":
|
|
@@ -6571,7 +6582,7 @@ var getScrollAtLocation = (location, axis, stopAt) => {
|
|
|
6571
6582
|
return [availableScroll, availableScrollTop];
|
|
6572
6583
|
};
|
|
6573
6584
|
|
|
6574
|
-
// ../../node_modules/.pnpm/solid-prevent-scroll@0.1.
|
|
6585
|
+
// ../../node_modules/.pnpm/solid-prevent-scroll@0.1.9_solid-js@1.8.19/node_modules/solid-prevent-scroll/dist/index.js
|
|
6575
6586
|
var [preventScrollStack, setPreventScrollStack] = createSignal([]);
|
|
6576
6587
|
var isActive = (id) => preventScrollStack().indexOf(id) === preventScrollStack().length - 1;
|
|
6577
6588
|
var createPreventScroll = (props) => {
|
|
@@ -6582,6 +6593,7 @@ var createPreventScroll = (props) => {
|
|
|
6582
6593
|
hideScrollbar: true,
|
|
6583
6594
|
preventScrollbarShift: true,
|
|
6584
6595
|
preventScrollbarShiftMode: "padding",
|
|
6596
|
+
restoreScrollPosition: true,
|
|
6585
6597
|
allowPinchZoom: false
|
|
6586
6598
|
},
|
|
6587
6599
|
props
|
|
@@ -6605,15 +6617,8 @@ var createPreventScroll = (props) => {
|
|
|
6605
6617
|
return;
|
|
6606
6618
|
const { body } = document;
|
|
6607
6619
|
const scrollbarWidth = window.innerWidth - body.offsetWidth;
|
|
6608
|
-
style_default({
|
|
6609
|
-
key: "prevent-scroll-overflow",
|
|
6610
|
-
element: body,
|
|
6611
|
-
style: {
|
|
6612
|
-
overflow: "hidden"
|
|
6613
|
-
}
|
|
6614
|
-
});
|
|
6615
6620
|
if (access2(defaultedProps.preventScrollbarShift)) {
|
|
6616
|
-
const style = {};
|
|
6621
|
+
const style = { overflow: "hidden" };
|
|
6617
6622
|
const properties = [];
|
|
6618
6623
|
if (scrollbarWidth > 0) {
|
|
6619
6624
|
if (access2(defaultedProps.preventScrollbarShiftMode) === "padding") {
|
|
@@ -6629,16 +6634,24 @@ var createPreventScroll = (props) => {
|
|
|
6629
6634
|
const offsetTop = window.scrollY;
|
|
6630
6635
|
const offsetLeft = window.scrollX;
|
|
6631
6636
|
style_default({
|
|
6632
|
-
key: "prevent-scroll
|
|
6637
|
+
key: "prevent-scroll",
|
|
6633
6638
|
element: body,
|
|
6634
6639
|
style,
|
|
6635
6640
|
properties,
|
|
6636
6641
|
cleanup: () => {
|
|
6637
|
-
if (scrollbarWidth > 0) {
|
|
6642
|
+
if (access2(defaultedProps.restoreScrollPosition) && scrollbarWidth > 0) {
|
|
6638
6643
|
window.scrollTo(offsetLeft, offsetTop);
|
|
6639
6644
|
}
|
|
6640
6645
|
}
|
|
6641
6646
|
});
|
|
6647
|
+
} else {
|
|
6648
|
+
style_default({
|
|
6649
|
+
key: "prevent-scroll",
|
|
6650
|
+
element: body,
|
|
6651
|
+
style: {
|
|
6652
|
+
overflow: "hidden"
|
|
6653
|
+
}
|
|
6654
|
+
});
|
|
6642
6655
|
}
|
|
6643
6656
|
});
|
|
6644
6657
|
createEffect(() => {
|
|
@@ -6749,9 +6762,9 @@ var contains2 = (wrapper, target) => {
|
|
|
6749
6762
|
return false;
|
|
6750
6763
|
};
|
|
6751
6764
|
var preventScroll_default = createPreventScroll;
|
|
6752
|
-
var
|
|
6765
|
+
var src_default2 = preventScroll_default;
|
|
6753
6766
|
|
|
6754
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
6767
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/3F4B62RP.js
|
|
6755
6768
|
var MenuContext = createContext();
|
|
6756
6769
|
function useOptionalMenuContext() {
|
|
6757
6770
|
return useContext(MenuContext);
|
|
@@ -6933,40 +6946,204 @@ function MenuItemBase(props) {
|
|
|
6933
6946
|
onPointerLeave
|
|
6934
6947
|
}, dataset, others));
|
|
6935
6948
|
}
|
|
6936
|
-
});
|
|
6937
|
-
}
|
|
6938
|
-
function MenuCheckboxItem(props) {
|
|
6939
|
-
const mergedProps = mergeDefaultProps({
|
|
6940
|
-
closeOnSelect: false
|
|
6941
|
-
}, props);
|
|
6942
|
-
const [local, others] = splitProps(mergedProps, ["checked", "defaultChecked", "onChange", "onSelect"]);
|
|
6943
|
-
const state = createToggleState({
|
|
6944
|
-
isSelected: () => local.checked,
|
|
6945
|
-
defaultIsSelected: () => local.defaultChecked,
|
|
6946
|
-
onSelectedChange: (checked) => local.onChange?.(checked),
|
|
6947
|
-
isDisabled: () => others.disabled
|
|
6948
|
-
});
|
|
6949
|
-
const onSelect = () => {
|
|
6950
|
-
local.onSelect?.();
|
|
6951
|
-
state.toggle();
|
|
6949
|
+
});
|
|
6950
|
+
}
|
|
6951
|
+
function MenuCheckboxItem(props) {
|
|
6952
|
+
const mergedProps = mergeDefaultProps({
|
|
6953
|
+
closeOnSelect: false
|
|
6954
|
+
}, props);
|
|
6955
|
+
const [local, others] = splitProps(mergedProps, ["checked", "defaultChecked", "onChange", "onSelect"]);
|
|
6956
|
+
const state = createToggleState({
|
|
6957
|
+
isSelected: () => local.checked,
|
|
6958
|
+
defaultIsSelected: () => local.defaultChecked,
|
|
6959
|
+
onSelectedChange: (checked) => local.onChange?.(checked),
|
|
6960
|
+
isDisabled: () => others.disabled
|
|
6961
|
+
});
|
|
6962
|
+
const onSelect = () => {
|
|
6963
|
+
local.onSelect?.();
|
|
6964
|
+
state.toggle();
|
|
6965
|
+
};
|
|
6966
|
+
return createComponent(MenuItemBase, mergeProps({
|
|
6967
|
+
role: "menuitemcheckbox",
|
|
6968
|
+
get checked() {
|
|
6969
|
+
return state.isSelected();
|
|
6970
|
+
},
|
|
6971
|
+
onSelect
|
|
6972
|
+
}, others));
|
|
6973
|
+
}
|
|
6974
|
+
var MenubarContext = createContext();
|
|
6975
|
+
function useOptionalMenubarContext() {
|
|
6976
|
+
return useContext(MenubarContext);
|
|
6977
|
+
}
|
|
6978
|
+
var MENUBAR_KEYS = {
|
|
6979
|
+
next: (dir, orientation) => dir === "ltr" ? orientation === "horizontal" ? "ArrowRight" : "ArrowDown" : orientation === "horizontal" ? "ArrowLeft" : "ArrowUp",
|
|
6980
|
+
previous: (dir, orientation) => MENUBAR_KEYS.next(dir === "ltr" ? "rtl" : "ltr", orientation)
|
|
6981
|
+
};
|
|
6982
|
+
var MENU_KEYS = {
|
|
6983
|
+
first: (orientation) => orientation === "horizontal" ? "ArrowDown" : "ArrowRight",
|
|
6984
|
+
last: (orientation) => orientation === "horizontal" ? "ArrowUp" : "ArrowLeft"
|
|
6985
|
+
};
|
|
6986
|
+
function MenuTrigger(props) {
|
|
6987
|
+
const rootContext = useMenuRootContext();
|
|
6988
|
+
const context = useMenuContext();
|
|
6989
|
+
const optionalMenubarContext = useOptionalMenubarContext();
|
|
6990
|
+
const {
|
|
6991
|
+
direction
|
|
6992
|
+
} = useLocale();
|
|
6993
|
+
const mergedProps = mergeDefaultProps({
|
|
6994
|
+
id: rootContext.generateId("trigger")
|
|
6995
|
+
}, props);
|
|
6996
|
+
const [local, others] = splitProps(mergedProps, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
|
|
6997
|
+
let key = () => rootContext.value();
|
|
6998
|
+
if (optionalMenubarContext !== void 0) {
|
|
6999
|
+
key = () => rootContext.value() ?? local.id;
|
|
7000
|
+
if (optionalMenubarContext.lastValue() === void 0)
|
|
7001
|
+
optionalMenubarContext.setLastValue(key);
|
|
7002
|
+
}
|
|
7003
|
+
const tagName = createTagName(() => context.triggerRef(), () => "button");
|
|
7004
|
+
const isNativeLink = createMemo(() => {
|
|
7005
|
+
return tagName() === "a" && context.triggerRef()?.getAttribute("href") != null;
|
|
7006
|
+
});
|
|
7007
|
+
createEffect(on(() => optionalMenubarContext?.value(), (value) => {
|
|
7008
|
+
if (!isNativeLink())
|
|
7009
|
+
return;
|
|
7010
|
+
if (value === key())
|
|
7011
|
+
context.triggerRef()?.focus();
|
|
7012
|
+
}));
|
|
7013
|
+
const handleClick = () => {
|
|
7014
|
+
if (optionalMenubarContext !== void 0) {
|
|
7015
|
+
if (!context.isOpen()) {
|
|
7016
|
+
if (!optionalMenubarContext.autoFocusMenu()) {
|
|
7017
|
+
optionalMenubarContext.setAutoFocusMenu(true);
|
|
7018
|
+
}
|
|
7019
|
+
context.open(false);
|
|
7020
|
+
} else {
|
|
7021
|
+
if (optionalMenubarContext.value() === key())
|
|
7022
|
+
optionalMenubarContext.closeMenu();
|
|
7023
|
+
}
|
|
7024
|
+
} else
|
|
7025
|
+
context.toggle(true);
|
|
7026
|
+
};
|
|
7027
|
+
const onPointerDown = (e2) => {
|
|
7028
|
+
callHandler(e2, local.onPointerDown);
|
|
7029
|
+
e2.currentTarget.dataset.pointerType = e2.pointerType;
|
|
7030
|
+
if (!local.disabled && e2.pointerType !== "touch" && e2.button === 0) {
|
|
7031
|
+
handleClick();
|
|
7032
|
+
}
|
|
7033
|
+
};
|
|
7034
|
+
const onClick = (e2) => {
|
|
7035
|
+
callHandler(e2, local.onClick);
|
|
7036
|
+
if (!local.disabled) {
|
|
7037
|
+
if (e2.currentTarget.dataset.pointerType === "touch")
|
|
7038
|
+
handleClick();
|
|
7039
|
+
}
|
|
7040
|
+
};
|
|
7041
|
+
const onKeyDown = (e2) => {
|
|
7042
|
+
callHandler(e2, local.onKeyDown);
|
|
7043
|
+
if (local.disabled) {
|
|
7044
|
+
return;
|
|
7045
|
+
}
|
|
7046
|
+
if (isNativeLink()) {
|
|
7047
|
+
switch (e2.key) {
|
|
7048
|
+
case "Enter":
|
|
7049
|
+
case " ":
|
|
7050
|
+
return;
|
|
7051
|
+
}
|
|
7052
|
+
}
|
|
7053
|
+
switch (e2.key) {
|
|
7054
|
+
case "Enter":
|
|
7055
|
+
case " ":
|
|
7056
|
+
case MENU_KEYS.first(rootContext.orientation()):
|
|
7057
|
+
e2.stopPropagation();
|
|
7058
|
+
e2.preventDefault();
|
|
7059
|
+
scrollIntoViewport(e2.currentTarget);
|
|
7060
|
+
context.open("first");
|
|
7061
|
+
optionalMenubarContext?.setAutoFocusMenu(true);
|
|
7062
|
+
optionalMenubarContext?.setValue(key);
|
|
7063
|
+
break;
|
|
7064
|
+
case MENU_KEYS.last(rootContext.orientation()):
|
|
7065
|
+
e2.stopPropagation();
|
|
7066
|
+
e2.preventDefault();
|
|
7067
|
+
context.open("last");
|
|
7068
|
+
break;
|
|
7069
|
+
case MENUBAR_KEYS.next(direction(), rootContext.orientation()):
|
|
7070
|
+
if (optionalMenubarContext === void 0)
|
|
7071
|
+
break;
|
|
7072
|
+
e2.stopPropagation();
|
|
7073
|
+
e2.preventDefault();
|
|
7074
|
+
optionalMenubarContext.nextMenu();
|
|
7075
|
+
break;
|
|
7076
|
+
case MENUBAR_KEYS.previous(direction(), rootContext.orientation()):
|
|
7077
|
+
if (optionalMenubarContext === void 0)
|
|
7078
|
+
break;
|
|
7079
|
+
e2.stopPropagation();
|
|
7080
|
+
e2.preventDefault();
|
|
7081
|
+
optionalMenubarContext.previousMenu();
|
|
7082
|
+
break;
|
|
7083
|
+
}
|
|
6952
7084
|
};
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
return
|
|
7085
|
+
const onMouseOver = (e2) => {
|
|
7086
|
+
callHandler(e2, local.onMouseOver);
|
|
7087
|
+
if (context.triggerRef()?.dataset.pointerType === "touch")
|
|
7088
|
+
return;
|
|
7089
|
+
if (!local.disabled && optionalMenubarContext !== void 0 && optionalMenubarContext.value() !== void 0) {
|
|
7090
|
+
optionalMenubarContext.setValue(key);
|
|
7091
|
+
}
|
|
7092
|
+
};
|
|
7093
|
+
const onFocus = (e2) => {
|
|
7094
|
+
callHandler(e2, local.onFocus);
|
|
7095
|
+
if (optionalMenubarContext !== void 0 && e2.currentTarget.dataset.pointerType !== "touch")
|
|
7096
|
+
optionalMenubarContext.setValue(key);
|
|
7097
|
+
};
|
|
7098
|
+
createEffect(() => onCleanup(context.registerTriggerId(local.id)));
|
|
7099
|
+
return createComponent(ButtonRoot, mergeProps({
|
|
7100
|
+
ref(r$) {
|
|
7101
|
+
const _ref$ = mergeRefs(context.setTriggerRef, local.ref);
|
|
7102
|
+
typeof _ref$ === "function" && _ref$(r$);
|
|
6957
7103
|
},
|
|
6958
|
-
|
|
6959
|
-
|
|
7104
|
+
get ["data-kb-menu-value-trigger"]() {
|
|
7105
|
+
return rootContext.value();
|
|
7106
|
+
},
|
|
7107
|
+
get id() {
|
|
7108
|
+
return local.id;
|
|
7109
|
+
},
|
|
7110
|
+
get disabled() {
|
|
7111
|
+
return local.disabled;
|
|
7112
|
+
},
|
|
7113
|
+
"aria-haspopup": "true",
|
|
7114
|
+
get ["aria-expanded"]() {
|
|
7115
|
+
return context.isOpen();
|
|
7116
|
+
},
|
|
7117
|
+
get ["aria-controls"]() {
|
|
7118
|
+
return createMemo(() => !!context.isOpen())() ? context.contentId() : void 0;
|
|
7119
|
+
},
|
|
7120
|
+
get ["data-highlighted"]() {
|
|
7121
|
+
return key() !== void 0 && optionalMenubarContext?.value() === key() ? true : void 0;
|
|
7122
|
+
},
|
|
7123
|
+
get tabIndex() {
|
|
7124
|
+
return optionalMenubarContext !== void 0 ? optionalMenubarContext.value() === key() || optionalMenubarContext.lastValue() === key() ? 0 : -1 : void 0;
|
|
7125
|
+
},
|
|
7126
|
+
onPointerDown,
|
|
7127
|
+
onMouseOver,
|
|
7128
|
+
onClick,
|
|
7129
|
+
onKeyDown,
|
|
7130
|
+
onFocus,
|
|
7131
|
+
role: optionalMenubarContext !== void 0 ? "menuitem" : void 0
|
|
7132
|
+
}, () => context.dataset(), others));
|
|
6960
7133
|
}
|
|
6961
|
-
var
|
|
6962
|
-
function
|
|
6963
|
-
return useContext(
|
|
7134
|
+
var NavigationMenuContext = createContext();
|
|
7135
|
+
function useOptionalNavigationMenuContext() {
|
|
7136
|
+
return useContext(NavigationMenuContext);
|
|
6964
7137
|
}
|
|
6965
7138
|
function MenuContentBase(props) {
|
|
6966
7139
|
let ref;
|
|
6967
7140
|
const rootContext = useMenuRootContext();
|
|
6968
7141
|
const context = useMenuContext();
|
|
6969
7142
|
const optionalMenubarContext = useOptionalMenubarContext();
|
|
7143
|
+
const optionalNavigationMenuContext = useOptionalNavigationMenuContext();
|
|
7144
|
+
const {
|
|
7145
|
+
direction
|
|
7146
|
+
} = useLocale();
|
|
6970
7147
|
const mergedProps = mergeDefaultProps({
|
|
6971
7148
|
id: rootContext.generateId(`content-${createUniqueId()}`)
|
|
6972
7149
|
}, props);
|
|
@@ -6982,7 +7159,8 @@ function MenuContentBase(props) {
|
|
|
6982
7159
|
deferAutoFocus: true,
|
|
6983
7160
|
// ensure all menu items are mounted and collection is not empty before trying to autofocus.
|
|
6984
7161
|
shouldFocusWrap: true,
|
|
6985
|
-
disallowTypeAhead: () => !context.listState().selectionManager().isFocused()
|
|
7162
|
+
disallowTypeAhead: () => !context.listState().selectionManager().isFocused(),
|
|
7163
|
+
orientation: () => rootContext.orientation() === "horizontal" ? "vertical" : "horizontal"
|
|
6986
7164
|
}, () => ref);
|
|
6987
7165
|
createFocusScope({
|
|
6988
7166
|
trapFocus: () => isRootModalContent() && context.isOpen(),
|
|
@@ -7002,14 +7180,14 @@ function MenuContentBase(props) {
|
|
|
7002
7180
|
if (optionalMenubarContext !== void 0) {
|
|
7003
7181
|
if (e2.currentTarget.getAttribute("aria-haspopup") !== "true")
|
|
7004
7182
|
switch (e2.key) {
|
|
7005
|
-
case
|
|
7183
|
+
case MENUBAR_KEYS.next(direction(), rootContext.orientation()):
|
|
7006
7184
|
e2.stopPropagation();
|
|
7007
7185
|
e2.preventDefault();
|
|
7008
7186
|
context.close(true);
|
|
7009
7187
|
optionalMenubarContext.setAutoFocusMenu(true);
|
|
7010
7188
|
optionalMenubarContext.nextMenu();
|
|
7011
7189
|
break;
|
|
7012
|
-
case
|
|
7190
|
+
case MENUBAR_KEYS.previous(direction(), rootContext.orientation()):
|
|
7013
7191
|
if (e2.currentTarget.hasAttribute("data-closed"))
|
|
7014
7192
|
break;
|
|
7015
7193
|
e2.stopPropagation();
|
|
@@ -7053,66 +7231,70 @@ function MenuContentBase(props) {
|
|
|
7053
7231
|
}
|
|
7054
7232
|
};
|
|
7055
7233
|
createEffect(() => onCleanup(context.registerContentId(local.id)));
|
|
7234
|
+
const commonAttributes = {
|
|
7235
|
+
ref: mergeRefs((el) => {
|
|
7236
|
+
context.setContentRef(el);
|
|
7237
|
+
ref = el;
|
|
7238
|
+
}, local.ref),
|
|
7239
|
+
role: "menu",
|
|
7240
|
+
get id() {
|
|
7241
|
+
return local.id;
|
|
7242
|
+
},
|
|
7243
|
+
get tabIndex() {
|
|
7244
|
+
return selectableList.tabIndex();
|
|
7245
|
+
},
|
|
7246
|
+
get "aria-labelledby"() {
|
|
7247
|
+
return context.triggerId();
|
|
7248
|
+
},
|
|
7249
|
+
onKeyDown: composeEventHandlers([local.onKeyDown, selectableList.onKeyDown, onKeyDown]),
|
|
7250
|
+
onMouseDown: composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]),
|
|
7251
|
+
onFocusIn: composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]),
|
|
7252
|
+
onFocusOut: composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]),
|
|
7253
|
+
onPointerEnter,
|
|
7254
|
+
onPointerMove,
|
|
7255
|
+
get "data-orientation"() {
|
|
7256
|
+
return rootContext.orientation();
|
|
7257
|
+
}
|
|
7258
|
+
};
|
|
7056
7259
|
return createComponent(Show, {
|
|
7057
7260
|
get when() {
|
|
7058
|
-
return context.
|
|
7261
|
+
return context.contentPresent();
|
|
7059
7262
|
},
|
|
7060
7263
|
get children() {
|
|
7061
|
-
return createComponent(
|
|
7264
|
+
return createComponent(Show, {
|
|
7265
|
+
get when() {
|
|
7266
|
+
return optionalNavigationMenuContext === void 0 || context.parentMenuContext() != null;
|
|
7267
|
+
},
|
|
7268
|
+
get fallback() {
|
|
7269
|
+
return createComponent(Polymorphic, mergeProps({
|
|
7270
|
+
as: "div"
|
|
7271
|
+
}, () => context.dataset(), commonAttributes, others));
|
|
7272
|
+
},
|
|
7062
7273
|
get children() {
|
|
7063
|
-
return createComponent(
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
return {
|
|
7088
|
-
"--kb-menu-content-transform-origin": "var(--kb-popper-content-transform-origin)",
|
|
7089
|
-
position: "relative",
|
|
7090
|
-
...local.style
|
|
7091
|
-
};
|
|
7092
|
-
},
|
|
7093
|
-
get ["aria-labelledby"]() {
|
|
7094
|
-
return context.triggerId();
|
|
7095
|
-
},
|
|
7096
|
-
onEscapeKeyDown,
|
|
7097
|
-
onFocusOutside,
|
|
7098
|
-
get onDismiss() {
|
|
7099
|
-
return context.close;
|
|
7100
|
-
},
|
|
7101
|
-
get onKeyDown() {
|
|
7102
|
-
return composeEventHandlers([local.onKeyDown, selectableList.onKeyDown, onKeyDown]);
|
|
7103
|
-
},
|
|
7104
|
-
get onMouseDown() {
|
|
7105
|
-
return composeEventHandlers([local.onMouseDown, selectableList.onMouseDown]);
|
|
7106
|
-
},
|
|
7107
|
-
get onFocusIn() {
|
|
7108
|
-
return composeEventHandlers([local.onFocusIn, selectableList.onFocusIn]);
|
|
7109
|
-
},
|
|
7110
|
-
get onFocusOut() {
|
|
7111
|
-
return composeEventHandlers([local.onFocusOut, selectableList.onFocusOut]);
|
|
7112
|
-
},
|
|
7113
|
-
onPointerEnter,
|
|
7114
|
-
onPointerMove
|
|
7115
|
-
}, () => context.dataset(), others));
|
|
7274
|
+
return createComponent(Popper.Positioner, {
|
|
7275
|
+
get children() {
|
|
7276
|
+
return createComponent(DismissableLayer, mergeProps({
|
|
7277
|
+
get disableOutsidePointerEvents() {
|
|
7278
|
+
return createMemo(() => !!isRootModalContent())() && context.isOpen();
|
|
7279
|
+
},
|
|
7280
|
+
get excludedElements() {
|
|
7281
|
+
return [context.triggerRef];
|
|
7282
|
+
},
|
|
7283
|
+
bypassTopMostLayerCheck: true,
|
|
7284
|
+
get style() {
|
|
7285
|
+
return combineStyle({
|
|
7286
|
+
"--kb-menu-content-transform-origin": "var(--kb-popper-content-transform-origin)",
|
|
7287
|
+
position: "relative"
|
|
7288
|
+
}, local.style);
|
|
7289
|
+
},
|
|
7290
|
+
onEscapeKeyDown,
|
|
7291
|
+
onFocusOutside,
|
|
7292
|
+
get onDismiss() {
|
|
7293
|
+
return context.close;
|
|
7294
|
+
}
|
|
7295
|
+
}, () => context.dataset(), commonAttributes, others));
|
|
7296
|
+
}
|
|
7297
|
+
});
|
|
7116
7298
|
}
|
|
7117
7299
|
});
|
|
7118
7300
|
}
|
|
@@ -7123,9 +7305,9 @@ function MenuContent(props) {
|
|
|
7123
7305
|
const rootContext = useMenuRootContext();
|
|
7124
7306
|
const context = useMenuContext();
|
|
7125
7307
|
const [local, others] = splitProps(props, ["ref"]);
|
|
7126
|
-
|
|
7308
|
+
src_default2({
|
|
7127
7309
|
element: () => ref ?? null,
|
|
7128
|
-
enabled: () => context.
|
|
7310
|
+
enabled: () => context.contentPresent() && rootContext.preventScroll()
|
|
7129
7311
|
});
|
|
7130
7312
|
return createComponent(MenuContentBase, mergeProps({
|
|
7131
7313
|
ref(r$) {
|
|
@@ -7251,7 +7433,7 @@ function MenuPortal(props) {
|
|
|
7251
7433
|
const context = useMenuContext();
|
|
7252
7434
|
return createComponent(Show, {
|
|
7253
7435
|
get when() {
|
|
7254
|
-
return context.
|
|
7436
|
+
return context.contentPresent();
|
|
7255
7437
|
},
|
|
7256
7438
|
get children() {
|
|
7257
7439
|
return createComponent(Portal, props);
|
|
@@ -7356,8 +7538,10 @@ function Menu(props) {
|
|
|
7356
7538
|
const rootContext = useMenuRootContext();
|
|
7357
7539
|
const parentDomCollectionContext = useOptionalDomCollectionContext();
|
|
7358
7540
|
const parentMenuContext = useOptionalMenuContext();
|
|
7541
|
+
const optionalMenubarContext = useOptionalMenubarContext();
|
|
7542
|
+
const optionalNavigationMenuContext = useOptionalNavigationMenuContext();
|
|
7359
7543
|
const mergedProps = mergeDefaultProps({
|
|
7360
|
-
placement: "bottom-start"
|
|
7544
|
+
placement: rootContext.orientation() === "horizontal" ? "bottom-start" : "right-start"
|
|
7361
7545
|
}, props);
|
|
7362
7546
|
const [local, others] = splitProps(mergedProps, ["open", "defaultOpen", "onOpenChange"]);
|
|
7363
7547
|
let pointerGraceTimeoutId = 0;
|
|
@@ -7382,7 +7566,12 @@ function Menu(props) {
|
|
|
7382
7566
|
defaultOpen: () => local.defaultOpen,
|
|
7383
7567
|
onOpenChange: (isOpen) => local.onOpenChange?.(isOpen)
|
|
7384
7568
|
});
|
|
7385
|
-
const
|
|
7569
|
+
const {
|
|
7570
|
+
present: contentPresent
|
|
7571
|
+
} = src_default({
|
|
7572
|
+
show: () => rootContext.forceMount() || disclosureState.isOpen(),
|
|
7573
|
+
element: () => contentRef() ?? null
|
|
7574
|
+
});
|
|
7386
7575
|
const listState = createListState({
|
|
7387
7576
|
selectionMode: "none",
|
|
7388
7577
|
dataSource: items
|
|
@@ -7401,7 +7590,7 @@ function Menu(props) {
|
|
|
7401
7590
|
setFocusStrategy(focusStrategy2);
|
|
7402
7591
|
disclosureState.toggle();
|
|
7403
7592
|
};
|
|
7404
|
-
const
|
|
7593
|
+
const _focusContent = () => {
|
|
7405
7594
|
const content = contentRef();
|
|
7406
7595
|
if (content) {
|
|
7407
7596
|
focusWithoutScrolling(content);
|
|
@@ -7409,6 +7598,12 @@ function Menu(props) {
|
|
|
7409
7598
|
listState.selectionManager().setFocusedKey(void 0);
|
|
7410
7599
|
}
|
|
7411
7600
|
};
|
|
7601
|
+
const focusContent = () => {
|
|
7602
|
+
if (optionalNavigationMenuContext != null)
|
|
7603
|
+
setTimeout(() => _focusContent());
|
|
7604
|
+
else
|
|
7605
|
+
_focusContent();
|
|
7606
|
+
};
|
|
7412
7607
|
const registerNestedMenu = (element) => {
|
|
7413
7608
|
setNestedMenus((prev) => [...prev, element]);
|
|
7414
7609
|
const parentUnregister = parentMenuContext?.registerNestedMenu(element);
|
|
@@ -7453,6 +7648,32 @@ function Menu(props) {
|
|
|
7453
7648
|
parentUnregister();
|
|
7454
7649
|
});
|
|
7455
7650
|
});
|
|
7651
|
+
createEffect(() => {
|
|
7652
|
+
if (parentMenuContext !== void 0)
|
|
7653
|
+
return;
|
|
7654
|
+
optionalMenubarContext?.registerMenu(rootContext.value(), [contentRef(), ...nestedMenus()]);
|
|
7655
|
+
});
|
|
7656
|
+
createEffect(() => {
|
|
7657
|
+
if (parentMenuContext !== void 0 || optionalMenubarContext === void 0)
|
|
7658
|
+
return;
|
|
7659
|
+
if (optionalMenubarContext.value() === rootContext.value()) {
|
|
7660
|
+
triggerRef()?.focus();
|
|
7661
|
+
if (optionalMenubarContext.autoFocusMenu())
|
|
7662
|
+
open(true);
|
|
7663
|
+
} else
|
|
7664
|
+
close();
|
|
7665
|
+
});
|
|
7666
|
+
createEffect(() => {
|
|
7667
|
+
if (parentMenuContext !== void 0 || optionalMenubarContext === void 0)
|
|
7668
|
+
return;
|
|
7669
|
+
if (disclosureState.isOpen())
|
|
7670
|
+
optionalMenubarContext.setValue(rootContext.value());
|
|
7671
|
+
});
|
|
7672
|
+
onCleanup(() => {
|
|
7673
|
+
if (parentMenuContext !== void 0)
|
|
7674
|
+
return;
|
|
7675
|
+
optionalMenubarContext?.unregisterMenu(rootContext.value());
|
|
7676
|
+
});
|
|
7456
7677
|
const dataset = createMemo(() => ({
|
|
7457
7678
|
"data-expanded": disclosureState.isOpen() ? "" : void 0,
|
|
7458
7679
|
"data-closed": !disclosureState.isOpen() ? "" : void 0
|
|
@@ -7460,7 +7681,7 @@ function Menu(props) {
|
|
|
7460
7681
|
const context = {
|
|
7461
7682
|
dataset,
|
|
7462
7683
|
isOpen: disclosureState.isOpen,
|
|
7463
|
-
|
|
7684
|
+
contentPresent,
|
|
7464
7685
|
nestedMenus,
|
|
7465
7686
|
currentPlacement,
|
|
7466
7687
|
pointerGraceTimeoutId: () => pointerGraceTimeoutId,
|
|
@@ -7493,11 +7714,19 @@ function Menu(props) {
|
|
|
7493
7714
|
return createComponent(MenuContext.Provider, {
|
|
7494
7715
|
value: context,
|
|
7495
7716
|
get children() {
|
|
7496
|
-
return createComponent(
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7717
|
+
return createComponent(Show, {
|
|
7718
|
+
when: optionalNavigationMenuContext === void 0,
|
|
7719
|
+
get fallback() {
|
|
7720
|
+
return others.children;
|
|
7721
|
+
},
|
|
7722
|
+
get children() {
|
|
7723
|
+
return createComponent(Popper, mergeProps({
|
|
7724
|
+
anchorRef: triggerRef,
|
|
7725
|
+
contentRef,
|
|
7726
|
+
onCurrentPlacementChange: setCurrentPlacement
|
|
7727
|
+
}, others));
|
|
7728
|
+
}
|
|
7729
|
+
});
|
|
7501
7730
|
}
|
|
7502
7731
|
});
|
|
7503
7732
|
}
|
|
@@ -7515,11 +7744,16 @@ function MenuSub(props) {
|
|
|
7515
7744
|
}, props));
|
|
7516
7745
|
}
|
|
7517
7746
|
var SUB_CLOSE_KEYS = {
|
|
7518
|
-
|
|
7519
|
-
|
|
7747
|
+
close: (dir, orientation) => {
|
|
7748
|
+
if (dir === "ltr") {
|
|
7749
|
+
return [orientation === "horizontal" ? "ArrowLeft" : "ArrowUp"];
|
|
7750
|
+
}
|
|
7751
|
+
return [orientation === "horizontal" ? "ArrowRight" : "ArrowDown"];
|
|
7752
|
+
}
|
|
7520
7753
|
};
|
|
7521
7754
|
function MenuSubContent(props) {
|
|
7522
7755
|
const context = useMenuContext();
|
|
7756
|
+
const rootContext = useMenuRootContext();
|
|
7523
7757
|
const [local, others] = splitProps(props, ["onFocusOutside", "onKeyDown"]);
|
|
7524
7758
|
const {
|
|
7525
7759
|
direction
|
|
@@ -7540,7 +7774,7 @@ function MenuSubContent(props) {
|
|
|
7540
7774
|
const onKeyDown = (e2) => {
|
|
7541
7775
|
callHandler(e2, local.onKeyDown);
|
|
7542
7776
|
const isKeyDownInside = contains(e2.currentTarget, e2.target);
|
|
7543
|
-
const isCloseKey = SUB_CLOSE_KEYS
|
|
7777
|
+
const isCloseKey = SUB_CLOSE_KEYS.close(direction(), rootContext.orientation()).includes(e2.key);
|
|
7544
7778
|
const isSubMenu = context.parentMenuContext() != null;
|
|
7545
7779
|
if (isKeyDownInside && isCloseKey && isSubMenu) {
|
|
7546
7780
|
context.close();
|
|
@@ -7556,8 +7790,12 @@ function MenuSubContent(props) {
|
|
|
7556
7790
|
}
|
|
7557
7791
|
var SELECTION_KEYS = ["Enter", " "];
|
|
7558
7792
|
var SUB_OPEN_KEYS = {
|
|
7559
|
-
|
|
7560
|
-
|
|
7793
|
+
open: (dir, orientation) => {
|
|
7794
|
+
if (dir === "ltr") {
|
|
7795
|
+
return [...SELECTION_KEYS, orientation === "horizontal" ? "ArrowRight" : "ArrowDown"];
|
|
7796
|
+
}
|
|
7797
|
+
return [...SELECTION_KEYS, orientation === "horizontal" ? "ArrowLeft" : "ArrowUp"];
|
|
7798
|
+
}
|
|
7561
7799
|
};
|
|
7562
7800
|
function MenuSubTrigger(props) {
|
|
7563
7801
|
let ref;
|
|
@@ -7671,7 +7909,7 @@ function MenuSubTrigger(props) {
|
|
|
7671
7909
|
if (local.disabled) {
|
|
7672
7910
|
return;
|
|
7673
7911
|
}
|
|
7674
|
-
if (SUB_OPEN_KEYS
|
|
7912
|
+
if (SUB_OPEN_KEYS.open(direction(), rootContext.orientation()).includes(e2.key)) {
|
|
7675
7913
|
e2.stopPropagation();
|
|
7676
7914
|
e2.preventDefault();
|
|
7677
7915
|
parentSelectionManager().setFocused(false);
|
|
@@ -7765,12 +8003,13 @@ function MenuSubTrigger(props) {
|
|
|
7765
8003
|
}, () => context.dataset(), others));
|
|
7766
8004
|
}
|
|
7767
8005
|
function MenuRoot(props) {
|
|
8006
|
+
const optionalMenubarContext = useOptionalMenubarContext();
|
|
7768
8007
|
const defaultId = `menu-${createUniqueId()}`;
|
|
7769
8008
|
const mergedProps = mergeDefaultProps({
|
|
7770
8009
|
id: defaultId,
|
|
7771
8010
|
modal: true
|
|
7772
8011
|
}, props);
|
|
7773
|
-
const [local, others] = splitProps(mergedProps, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value"]);
|
|
8012
|
+
const [local, others] = splitProps(mergedProps, ["id", "modal", "preventScroll", "forceMount", "open", "defaultOpen", "onOpenChange", "value", "orientation"]);
|
|
7774
8013
|
const disclosureState = createDisclosureState({
|
|
7775
8014
|
open: () => local.open,
|
|
7776
8015
|
defaultOpen: () => local.defaultOpen,
|
|
@@ -7781,7 +8020,8 @@ function MenuRoot(props) {
|
|
|
7781
8020
|
preventScroll: () => local.preventScroll ?? context.isModal(),
|
|
7782
8021
|
forceMount: () => local.forceMount ?? false,
|
|
7783
8022
|
generateId: createGenerateId(() => local.id),
|
|
7784
|
-
value: () => local.value
|
|
8023
|
+
value: () => local.value,
|
|
8024
|
+
orientation: () => local.orientation ?? optionalMenubarContext?.orientation() ?? "horizontal"
|
|
7785
8025
|
};
|
|
7786
8026
|
return createComponent(MenuRootContext.Provider, {
|
|
7787
8027
|
value: context,
|
|
@@ -7798,155 +8038,7 @@ function MenuRoot(props) {
|
|
|
7798
8038
|
});
|
|
7799
8039
|
}
|
|
7800
8040
|
|
|
7801
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
7802
|
-
function MenuTrigger(props) {
|
|
7803
|
-
const rootContext = useMenuRootContext();
|
|
7804
|
-
const context = useMenuContext();
|
|
7805
|
-
const optionalMenubarContext = useOptionalMenubarContext();
|
|
7806
|
-
const mergedProps = mergeDefaultProps({
|
|
7807
|
-
id: rootContext.generateId("trigger")
|
|
7808
|
-
}, props);
|
|
7809
|
-
const [local, others] = splitProps(mergedProps, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
|
|
7810
|
-
let key;
|
|
7811
|
-
if (optionalMenubarContext !== void 0) {
|
|
7812
|
-
key = rootContext.value() ?? local.id;
|
|
7813
|
-
createEffect(() => {
|
|
7814
|
-
optionalMenubarContext.registerMenu(key, [context.contentRef(), ...context.nestedMenus()]);
|
|
7815
|
-
});
|
|
7816
|
-
createEffect(() => {
|
|
7817
|
-
if (optionalMenubarContext.value() === key) {
|
|
7818
|
-
context.triggerRef()?.focus();
|
|
7819
|
-
if (optionalMenubarContext.autoFocusMenu())
|
|
7820
|
-
context.open(true);
|
|
7821
|
-
} else
|
|
7822
|
-
context.close(true);
|
|
7823
|
-
});
|
|
7824
|
-
createEffect(() => {
|
|
7825
|
-
if (context.isOpen())
|
|
7826
|
-
optionalMenubarContext.setValue(key);
|
|
7827
|
-
});
|
|
7828
|
-
onCleanup(() => {
|
|
7829
|
-
optionalMenubarContext.unregisterMenu(key);
|
|
7830
|
-
});
|
|
7831
|
-
if (optionalMenubarContext.lastValue() === void 0)
|
|
7832
|
-
optionalMenubarContext.setLastValue(key);
|
|
7833
|
-
}
|
|
7834
|
-
const tagName = createTagName(() => context.triggerRef(), () => "button");
|
|
7835
|
-
const isNativeLink = createMemo(() => {
|
|
7836
|
-
return tagName() === "a" && context.triggerRef()?.getAttribute("href") != null;
|
|
7837
|
-
});
|
|
7838
|
-
const handleClick = () => {
|
|
7839
|
-
optionalMenubarContext?.setAutoFocusMenu(true);
|
|
7840
|
-
if (optionalMenubarContext !== void 0)
|
|
7841
|
-
context.toggle(false);
|
|
7842
|
-
else
|
|
7843
|
-
context.toggle(true);
|
|
7844
|
-
if (optionalMenubarContext !== void 0 && !context.isOpen() && optionalMenubarContext.value() === key) {
|
|
7845
|
-
optionalMenubarContext.closeMenu();
|
|
7846
|
-
}
|
|
7847
|
-
};
|
|
7848
|
-
const onPointerDown = (e2) => {
|
|
7849
|
-
callHandler(e2, local.onPointerDown);
|
|
7850
|
-
e2.currentTarget.dataset.pointerType = e2.pointerType;
|
|
7851
|
-
if (!local.disabled && e2.pointerType !== "touch" && e2.button === 0) {
|
|
7852
|
-
handleClick();
|
|
7853
|
-
}
|
|
7854
|
-
};
|
|
7855
|
-
const onClick = (e2) => {
|
|
7856
|
-
callHandler(e2, local.onClick);
|
|
7857
|
-
if (!local.disabled) {
|
|
7858
|
-
if (e2.currentTarget.dataset.pointerType === "touch")
|
|
7859
|
-
handleClick();
|
|
7860
|
-
}
|
|
7861
|
-
};
|
|
7862
|
-
const onKeyDown = (e2) => {
|
|
7863
|
-
callHandler(e2, local.onKeyDown);
|
|
7864
|
-
if (local.disabled) {
|
|
7865
|
-
return;
|
|
7866
|
-
}
|
|
7867
|
-
if (isNativeLink()) {
|
|
7868
|
-
switch (e2.key) {
|
|
7869
|
-
case "Enter":
|
|
7870
|
-
case " ":
|
|
7871
|
-
return;
|
|
7872
|
-
}
|
|
7873
|
-
}
|
|
7874
|
-
switch (e2.key) {
|
|
7875
|
-
case "Enter":
|
|
7876
|
-
case " ":
|
|
7877
|
-
case "ArrowDown":
|
|
7878
|
-
e2.stopPropagation();
|
|
7879
|
-
e2.preventDefault();
|
|
7880
|
-
scrollIntoViewport(e2.currentTarget);
|
|
7881
|
-
context.toggle("first");
|
|
7882
|
-
break;
|
|
7883
|
-
case "ArrowUp":
|
|
7884
|
-
e2.stopPropagation();
|
|
7885
|
-
e2.preventDefault();
|
|
7886
|
-
context.toggle("last");
|
|
7887
|
-
break;
|
|
7888
|
-
case "ArrowRight":
|
|
7889
|
-
if (optionalMenubarContext === void 0)
|
|
7890
|
-
break;
|
|
7891
|
-
e2.stopPropagation();
|
|
7892
|
-
e2.preventDefault();
|
|
7893
|
-
optionalMenubarContext.nextMenu();
|
|
7894
|
-
break;
|
|
7895
|
-
case "ArrowLeft":
|
|
7896
|
-
if (optionalMenubarContext === void 0)
|
|
7897
|
-
break;
|
|
7898
|
-
e2.stopPropagation();
|
|
7899
|
-
e2.preventDefault();
|
|
7900
|
-
optionalMenubarContext.previousMenu();
|
|
7901
|
-
break;
|
|
7902
|
-
}
|
|
7903
|
-
};
|
|
7904
|
-
const onMouseOver = (e2) => {
|
|
7905
|
-
callHandler(e2, local.onMouseOver);
|
|
7906
|
-
if (!local.disabled && optionalMenubarContext !== void 0 && optionalMenubarContext.value() !== void 0) {
|
|
7907
|
-
optionalMenubarContext.setValue(key);
|
|
7908
|
-
}
|
|
7909
|
-
};
|
|
7910
|
-
const onFocus = (e2) => {
|
|
7911
|
-
callHandler(e2, local.onFocus);
|
|
7912
|
-
if (optionalMenubarContext !== void 0)
|
|
7913
|
-
optionalMenubarContext.setValue(key);
|
|
7914
|
-
};
|
|
7915
|
-
createEffect(() => onCleanup(context.registerTriggerId(local.id)));
|
|
7916
|
-
return createComponent(ButtonRoot, mergeProps({
|
|
7917
|
-
ref(r$) {
|
|
7918
|
-
const _ref$ = mergeRefs(context.setTriggerRef, local.ref);
|
|
7919
|
-
typeof _ref$ === "function" && _ref$(r$);
|
|
7920
|
-
},
|
|
7921
|
-
get id() {
|
|
7922
|
-
return local.id;
|
|
7923
|
-
},
|
|
7924
|
-
get disabled() {
|
|
7925
|
-
return local.disabled;
|
|
7926
|
-
},
|
|
7927
|
-
"aria-haspopup": "true",
|
|
7928
|
-
get ["aria-expanded"]() {
|
|
7929
|
-
return context.isOpen();
|
|
7930
|
-
},
|
|
7931
|
-
get ["aria-controls"]() {
|
|
7932
|
-
return createMemo(() => !!context.isOpen())() ? context.contentId() : void 0;
|
|
7933
|
-
},
|
|
7934
|
-
get ["data-highlighted"]() {
|
|
7935
|
-
return key !== void 0 && optionalMenubarContext?.value() === key ? true : void 0;
|
|
7936
|
-
},
|
|
7937
|
-
get tabIndex() {
|
|
7938
|
-
return optionalMenubarContext !== void 0 ? optionalMenubarContext.value() === key || optionalMenubarContext.lastValue() === key ? 0 : -1 : void 0;
|
|
7939
|
-
},
|
|
7940
|
-
onPointerDown,
|
|
7941
|
-
onMouseOver,
|
|
7942
|
-
onClick,
|
|
7943
|
-
onKeyDown,
|
|
7944
|
-
onFocus,
|
|
7945
|
-
role: optionalMenubarContext !== void 0 ? "menuitem" : void 0
|
|
7946
|
-
}, () => context.dataset(), others));
|
|
7947
|
-
}
|
|
7948
|
-
|
|
7949
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.1_solid-js@1.8.17/node_modules/@kobalte/core/dist/chunk/QXPEHVJD.js
|
|
8041
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/STGRFJHZ.js
|
|
7950
8042
|
var separator_exports = {};
|
|
7951
8043
|
__export(separator_exports, {
|
|
7952
8044
|
Root: () => SeparatorRoot,
|
|
@@ -7978,7 +8070,7 @@ function SeparatorRoot(props) {
|
|
|
7978
8070
|
}
|
|
7979
8071
|
var Separator = SeparatorRoot;
|
|
7980
8072
|
|
|
7981
|
-
// ../../node_modules/.pnpm/@kobalte+core@0.13.
|
|
8073
|
+
// ../../node_modules/.pnpm/@kobalte+core@0.13.4_solid-js@1.8.19/node_modules/@kobalte/core/dist/chunk/V2JBZ7BJ.js
|
|
7982
8074
|
var dropdown_menu_exports = {};
|
|
7983
8075
|
__export(dropdown_menu_exports, {
|
|
7984
8076
|
Arrow: () => PopperArrow,
|
|
@@ -8388,14 +8480,14 @@ function ArrowDown() {
|
|
|
8388
8480
|
}
|
|
8389
8481
|
function ArrowLeft() {
|
|
8390
8482
|
return (() => {
|
|
8391
|
-
|
|
8483
|
+
var _el$6 = _tmpl$5();
|
|
8392
8484
|
_el$6.style.setProperty("transform", "rotate(90deg)");
|
|
8393
8485
|
return _el$6;
|
|
8394
8486
|
})();
|
|
8395
8487
|
}
|
|
8396
8488
|
function ArrowRight() {
|
|
8397
8489
|
return (() => {
|
|
8398
|
-
|
|
8490
|
+
var _el$7 = _tmpl$5();
|
|
8399
8491
|
_el$7.style.setProperty("transform", "rotate(-90deg)");
|
|
8400
8492
|
return _el$7;
|
|
8401
8493
|
})();
|
|
@@ -8426,7 +8518,7 @@ function Copier() {
|
|
|
8426
8518
|
}
|
|
8427
8519
|
function CopiedCopier(props) {
|
|
8428
8520
|
return (() => {
|
|
8429
|
-
|
|
8521
|
+
var _el$16 = _tmpl$14(), _el$17 = _el$16.firstChild;
|
|
8430
8522
|
createRenderEffect(() => setAttribute(_el$17, "stroke", props.theme === "dark" ? "#12B76A" : "#027A48"));
|
|
8431
8523
|
return _el$16;
|
|
8432
8524
|
})();
|
|
@@ -8443,7 +8535,7 @@ function Check(props) {
|
|
|
8443
8535
|
return props.checked;
|
|
8444
8536
|
},
|
|
8445
8537
|
get children() {
|
|
8446
|
-
|
|
8538
|
+
var _el$20 = _tmpl$14(), _el$21 = _el$20.firstChild;
|
|
8447
8539
|
createRenderEffect(() => setAttribute(_el$21, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
|
|
8448
8540
|
return _el$20;
|
|
8449
8541
|
}
|
|
@@ -8452,7 +8544,7 @@ function Check(props) {
|
|
|
8452
8544
|
return !props.checked;
|
|
8453
8545
|
},
|
|
8454
8546
|
get children() {
|
|
8455
|
-
|
|
8547
|
+
var _el$22 = _tmpl$17(), _el$23 = _el$22.firstChild;
|
|
8456
8548
|
createRenderEffect(() => setAttribute(_el$23, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
|
|
8457
8549
|
return _el$22;
|
|
8458
8550
|
}
|
|
@@ -8473,7 +8565,7 @@ function PauseCircle() {
|
|
|
8473
8565
|
function TanstackLogo() {
|
|
8474
8566
|
const id = createUniqueId();
|
|
8475
8567
|
return (() => {
|
|
8476
|
-
|
|
8568
|
+
var _el$28 = _tmpl$222(), _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.nextSibling, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$66.nextSibling, _el$68 = _el$67.nextSibling, _el$69 = _el$68.nextSibling, _el$70 = _el$69.nextSibling, _el$71 = _el$65.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$73.nextSibling, _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.firstChild, _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$89.nextSibling, _el$91 = _el$75.nextSibling, _el$92 = _el$91.firstChild, _el$93 = _el$91.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling, _el$98 = _el$95.nextSibling, _el$99 = _el$98.firstChild, _el$100 = _el$98.nextSibling, _el$101 = _el$100.firstChild, _el$102 = _el$100.nextSibling, _el$103 = _el$102.firstChild, _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, _el$120 = _el$119.nextSibling;
|
|
8477
8569
|
setAttribute(_el$29, "id", `a-${id}`);
|
|
8478
8570
|
setAttribute(_el$30, "fill", `url(#a-${id})`);
|
|
8479
8571
|
setAttribute(_el$32, "id", `am-${id}`);
|
|
@@ -8587,8 +8679,6 @@ var _tmpl$92 = /* @__PURE__ */ template(`<span>`);
|
|
|
8587
8679
|
var _tmpl$102 = /* @__PURE__ */ template(`<div><span>:`);
|
|
8588
8680
|
var _tmpl$112 = /* @__PURE__ */ template(`<div><div><button> [<!>...<!>]`);
|
|
8589
8681
|
function chunkArray(array, size3) {
|
|
8590
|
-
if (size3 < 1)
|
|
8591
|
-
return [];
|
|
8592
8682
|
let i2 = 0;
|
|
8593
8683
|
const result = [];
|
|
8594
8684
|
while (i2 < array.length) {
|
|
@@ -8606,7 +8696,7 @@ var Expander = (props) => {
|
|
|
8606
8696
|
return theme() === "dark" ? darkStyles(css) : lightStyles(css);
|
|
8607
8697
|
});
|
|
8608
8698
|
return (() => {
|
|
8609
|
-
|
|
8699
|
+
var _el$ = _tmpl$23();
|
|
8610
8700
|
createRenderEffect(() => className(_el$, clsx(styles().expander, css`
|
|
8611
8701
|
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
8612
8702
|
`, props.expanded && css`
|
|
@@ -8627,7 +8717,7 @@ var CopyButton = (props) => {
|
|
|
8627
8717
|
});
|
|
8628
8718
|
const [copyState, setCopyState] = createSignal("NoCopy");
|
|
8629
8719
|
return (() => {
|
|
8630
|
-
|
|
8720
|
+
var _el$2 = _tmpl$24();
|
|
8631
8721
|
addEventListener(_el$2, "click", copyState() === "NoCopy" ? () => {
|
|
8632
8722
|
navigator.clipboard.writeText(stringify(props.value)).then(() => {
|
|
8633
8723
|
setCopyState("SuccessCopy");
|
|
@@ -8673,13 +8763,13 @@ var CopyButton = (props) => {
|
|
|
8673
8763
|
}
|
|
8674
8764
|
}));
|
|
8675
8765
|
createRenderEffect((_p$) => {
|
|
8676
|
-
|
|
8677
|
-
_v$ !== _p$.
|
|
8678
|
-
_v$2 !== _p$.
|
|
8766
|
+
var _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
|
|
8767
|
+
_v$ !== _p$.e && className(_el$2, _p$.e = _v$);
|
|
8768
|
+
_v$2 !== _p$.t && setAttribute(_el$2, "aria-label", _p$.t = _v$2);
|
|
8679
8769
|
return _p$;
|
|
8680
8770
|
}, {
|
|
8681
|
-
|
|
8682
|
-
|
|
8771
|
+
e: void 0,
|
|
8772
|
+
t: void 0
|
|
8683
8773
|
});
|
|
8684
8774
|
return _el$2;
|
|
8685
8775
|
})();
|
|
@@ -8694,7 +8784,7 @@ var ClearArrayButton = (props) => {
|
|
|
8694
8784
|
});
|
|
8695
8785
|
const queryClient = useQueryDevtoolsContext().client;
|
|
8696
8786
|
return (() => {
|
|
8697
|
-
|
|
8787
|
+
var _el$3 = _tmpl$32();
|
|
8698
8788
|
_el$3.$$click = () => {
|
|
8699
8789
|
const oldData = props.activeQuery.state.data;
|
|
8700
8790
|
const newData = updateNestedDataByPath(oldData, props.dataPath, []);
|
|
@@ -8715,7 +8805,7 @@ var DeleteItemButton = (props) => {
|
|
|
8715
8805
|
});
|
|
8716
8806
|
const queryClient = useQueryDevtoolsContext().client;
|
|
8717
8807
|
return (() => {
|
|
8718
|
-
|
|
8808
|
+
var _el$4 = _tmpl$42();
|
|
8719
8809
|
_el$4.$$click = () => {
|
|
8720
8810
|
const oldData = props.activeQuery.state.data;
|
|
8721
8811
|
const newData = deleteNestedDataByPath(oldData, props.dataPath);
|
|
@@ -8736,7 +8826,7 @@ var ToggleValueButton = (props) => {
|
|
|
8736
8826
|
});
|
|
8737
8827
|
const queryClient = useQueryDevtoolsContext().client;
|
|
8738
8828
|
return (() => {
|
|
8739
|
-
|
|
8829
|
+
var _el$5 = _tmpl$52();
|
|
8740
8830
|
_el$5.$$click = () => {
|
|
8741
8831
|
const oldData = props.activeQuery.state.data;
|
|
8742
8832
|
const newData = updateNestedDataByPath(oldData, props.dataPath, !props.value);
|
|
@@ -8810,14 +8900,14 @@ function Explorer(props) {
|
|
|
8810
8900
|
const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
|
|
8811
8901
|
const currentDataPath = props.dataPath ?? [];
|
|
8812
8902
|
return (() => {
|
|
8813
|
-
|
|
8903
|
+
var _el$6 = _tmpl$62();
|
|
8814
8904
|
insert(_el$6, createComponent(Show, {
|
|
8815
8905
|
get when() {
|
|
8816
8906
|
return subEntryPages().length;
|
|
8817
8907
|
},
|
|
8818
8908
|
get children() {
|
|
8819
8909
|
return [(() => {
|
|
8820
|
-
|
|
8910
|
+
var _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
|
|
8821
8911
|
_el$8.$$click = () => toggleExpanded();
|
|
8822
8912
|
insert(_el$8, createComponent(Expander, {
|
|
8823
8913
|
get expanded() {
|
|
@@ -8833,7 +8923,7 @@ function Explorer(props) {
|
|
|
8833
8923
|
return props.editable;
|
|
8834
8924
|
},
|
|
8835
8925
|
get children() {
|
|
8836
|
-
|
|
8926
|
+
var _el$14 = _tmpl$62();
|
|
8837
8927
|
insert(_el$14, createComponent(CopyButton, {
|
|
8838
8928
|
get value() {
|
|
8839
8929
|
return props.value;
|
|
@@ -8870,15 +8960,15 @@ function Explorer(props) {
|
|
|
8870
8960
|
}
|
|
8871
8961
|
}), null);
|
|
8872
8962
|
createRenderEffect((_p$) => {
|
|
8873
|
-
|
|
8874
|
-
_v$3 !== _p$.
|
|
8875
|
-
_v$4 !== _p$.
|
|
8876
|
-
_v$5 !== _p$.
|
|
8963
|
+
var _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
|
|
8964
|
+
_v$3 !== _p$.e && className(_el$7, _p$.e = _v$3);
|
|
8965
|
+
_v$4 !== _p$.t && className(_el$8, _p$.t = _v$4);
|
|
8966
|
+
_v$5 !== _p$.a && className(_el$12, _p$.a = _v$5);
|
|
8877
8967
|
return _p$;
|
|
8878
8968
|
}, {
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8969
|
+
e: void 0,
|
|
8970
|
+
t: void 0,
|
|
8971
|
+
a: void 0
|
|
8882
8972
|
});
|
|
8883
8973
|
return _el$7;
|
|
8884
8974
|
})(), createComponent(Show, {
|
|
@@ -8891,7 +8981,7 @@ function Explorer(props) {
|
|
|
8891
8981
|
return subEntryPages().length === 1;
|
|
8892
8982
|
},
|
|
8893
8983
|
get children() {
|
|
8894
|
-
|
|
8984
|
+
var _el$15 = _tmpl$62();
|
|
8895
8985
|
insert(_el$15, createComponent(Key, {
|
|
8896
8986
|
get each() {
|
|
8897
8987
|
return subEntries();
|
|
@@ -8931,13 +9021,13 @@ function Explorer(props) {
|
|
|
8931
9021
|
return subEntryPages().length > 1;
|
|
8932
9022
|
},
|
|
8933
9023
|
get children() {
|
|
8934
|
-
|
|
9024
|
+
var _el$16 = _tmpl$62();
|
|
8935
9025
|
insert(_el$16, createComponent(Index, {
|
|
8936
9026
|
get each() {
|
|
8937
9027
|
return subEntryPages();
|
|
8938
9028
|
},
|
|
8939
9029
|
children: (entries2, index) => (() => {
|
|
8940
|
-
|
|
9030
|
+
var _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
|
|
8941
9031
|
_el$24.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
|
|
8942
9032
|
insert(_el$24, createComponent(Expander, {
|
|
8943
9033
|
get expanded() {
|
|
@@ -8951,7 +9041,7 @@ function Explorer(props) {
|
|
|
8951
9041
|
return expandedPages().includes(index);
|
|
8952
9042
|
},
|
|
8953
9043
|
get children() {
|
|
8954
|
-
|
|
9044
|
+
var _el$31 = _tmpl$62();
|
|
8955
9045
|
insert(_el$31, createComponent(Key, {
|
|
8956
9046
|
get each() {
|
|
8957
9047
|
return entries2();
|
|
@@ -8983,13 +9073,13 @@ function Explorer(props) {
|
|
|
8983
9073
|
}
|
|
8984
9074
|
}), null);
|
|
8985
9075
|
createRenderEffect((_p$) => {
|
|
8986
|
-
|
|
8987
|
-
_v$10 !== _p$.
|
|
8988
|
-
_v$11 !== _p$.
|
|
9076
|
+
var _v$10 = styles().entry, _v$11 = styles().expanderButton;
|
|
9077
|
+
_v$10 !== _p$.e && className(_el$23, _p$.e = _v$10);
|
|
9078
|
+
_v$11 !== _p$.t && className(_el$24, _p$.t = _v$11);
|
|
8989
9079
|
return _p$;
|
|
8990
9080
|
}, {
|
|
8991
|
-
|
|
8992
|
-
|
|
9081
|
+
e: void 0,
|
|
9082
|
+
t: void 0
|
|
8993
9083
|
});
|
|
8994
9084
|
return _el$22;
|
|
8995
9085
|
})()
|
|
@@ -9007,7 +9097,7 @@ function Explorer(props) {
|
|
|
9007
9097
|
return subEntryPages().length === 0;
|
|
9008
9098
|
},
|
|
9009
9099
|
get children() {
|
|
9010
|
-
|
|
9100
|
+
var _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
|
|
9011
9101
|
insert(_el$18, () => props.label, _el$19);
|
|
9012
9102
|
insert(_el$17, createComponent(Show, {
|
|
9013
9103
|
get when() {
|
|
@@ -9015,7 +9105,7 @@ function Explorer(props) {
|
|
|
9015
9105
|
},
|
|
9016
9106
|
get fallback() {
|
|
9017
9107
|
return (() => {
|
|
9018
|
-
|
|
9108
|
+
var _el$32 = _tmpl$92();
|
|
9019
9109
|
insert(_el$32, () => displayValue(props.value));
|
|
9020
9110
|
createRenderEffect(() => className(_el$32, styles().value));
|
|
9021
9111
|
return _el$32;
|
|
@@ -9027,20 +9117,20 @@ function Explorer(props) {
|
|
|
9027
9117
|
return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
|
|
9028
9118
|
},
|
|
9029
9119
|
get children() {
|
|
9030
|
-
|
|
9120
|
+
var _el$20 = _tmpl$82();
|
|
9031
9121
|
_el$20.addEventListener("change", (changeEvent) => {
|
|
9032
9122
|
const oldData = props.activeQuery.state.data;
|
|
9033
9123
|
const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
|
|
9034
9124
|
queryClient.setQueryData(props.activeQuery.queryKey, newData);
|
|
9035
9125
|
});
|
|
9036
9126
|
createRenderEffect((_p$) => {
|
|
9037
|
-
|
|
9038
|
-
_v$6 !== _p$.
|
|
9039
|
-
_v$7 !== _p$.
|
|
9127
|
+
var _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
|
|
9128
|
+
_v$6 !== _p$.e && setAttribute(_el$20, "type", _p$.e = _v$6);
|
|
9129
|
+
_v$7 !== _p$.t && className(_el$20, _p$.t = _v$7);
|
|
9040
9130
|
return _p$;
|
|
9041
9131
|
}, {
|
|
9042
|
-
|
|
9043
|
-
|
|
9132
|
+
e: void 0,
|
|
9133
|
+
t: void 0
|
|
9044
9134
|
});
|
|
9045
9135
|
createRenderEffect(() => _el$20.value = props.value);
|
|
9046
9136
|
return _el$20;
|
|
@@ -9050,7 +9140,7 @@ function Explorer(props) {
|
|
|
9050
9140
|
return type() === "boolean";
|
|
9051
9141
|
},
|
|
9052
9142
|
get children() {
|
|
9053
|
-
|
|
9143
|
+
var _el$21 = _tmpl$92();
|
|
9054
9144
|
insert(_el$21, createComponent(ToggleValueButton, {
|
|
9055
9145
|
get activeQuery() {
|
|
9056
9146
|
return props.activeQuery;
|
|
@@ -9081,13 +9171,13 @@ function Explorer(props) {
|
|
|
9081
9171
|
}
|
|
9082
9172
|
}), null);
|
|
9083
9173
|
createRenderEffect((_p$) => {
|
|
9084
|
-
|
|
9085
|
-
_v$8 !== _p$.
|
|
9086
|
-
_v$9 !== _p$.
|
|
9174
|
+
var _v$8 = styles().row, _v$9 = styles().label;
|
|
9175
|
+
_v$8 !== _p$.e && className(_el$17, _p$.e = _v$8);
|
|
9176
|
+
_v$9 !== _p$.t && className(_el$18, _p$.t = _v$9);
|
|
9087
9177
|
return _p$;
|
|
9088
9178
|
}, {
|
|
9089
|
-
|
|
9090
|
-
|
|
9179
|
+
e: void 0,
|
|
9180
|
+
t: void 0
|
|
9091
9181
|
});
|
|
9092
9182
|
return _el$17;
|
|
9093
9183
|
}
|
|
@@ -9490,8 +9580,8 @@ var Devtools = (props) => {
|
|
|
9490
9580
|
});
|
|
9491
9581
|
}
|
|
9492
9582
|
}), (() => {
|
|
9493
|
-
|
|
9494
|
-
|
|
9583
|
+
var _el$ = _tmpl$26();
|
|
9584
|
+
var _ref$ = transitionsContainerRef;
|
|
9495
9585
|
typeof _ref$ === "function" ? use(_ref$, _el$) : transitionsContainerRef = _el$;
|
|
9496
9586
|
insert(_el$, createComponent(TransitionGroup, {
|
|
9497
9587
|
name: "tsqd-panel-transition",
|
|
@@ -9521,7 +9611,7 @@ var Devtools = (props) => {
|
|
|
9521
9611
|
return !isOpen();
|
|
9522
9612
|
},
|
|
9523
9613
|
get children() {
|
|
9524
|
-
|
|
9614
|
+
var _el$2 = _tmpl$25(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
9525
9615
|
insert(_el$3, createComponent(TanstackLogo, {}));
|
|
9526
9616
|
_el$4.$$click = () => props.setLocalStore("open", "true");
|
|
9527
9617
|
insert(_el$4, createComponent(TanstackLogo, {}));
|
|
@@ -9604,7 +9694,7 @@ var PiPPanel = (props) => {
|
|
|
9604
9694
|
});
|
|
9605
9695
|
});
|
|
9606
9696
|
return (() => {
|
|
9607
|
-
|
|
9697
|
+
var _el$5 = _tmpl$26();
|
|
9608
9698
|
_el$5.style.setProperty("--tsqd-font-size", "16px");
|
|
9609
9699
|
_el$5.style.setProperty("max-height", "100vh");
|
|
9610
9700
|
_el$5.style.setProperty("height", "100vh");
|
|
@@ -9729,8 +9819,8 @@ var DevtoolsPanel = (props) => {
|
|
|
9729
9819
|
`;
|
|
9730
9820
|
};
|
|
9731
9821
|
return (() => {
|
|
9732
|
-
|
|
9733
|
-
|
|
9822
|
+
var _el$6 = _tmpl$33(), _el$7 = _el$6.firstChild, _el$8 = _el$7.nextSibling;
|
|
9823
|
+
var _ref$2 = panelRef;
|
|
9734
9824
|
typeof _ref$2 === "function" ? use(_ref$2, _el$6) : panelRef = _el$6;
|
|
9735
9825
|
_el$7.$$mousedown = handleDragStart;
|
|
9736
9826
|
_el$8.$$click = () => props.setLocalStore("open", "false");
|
|
@@ -9744,23 +9834,23 @@ var DevtoolsPanel = (props) => {
|
|
|
9744
9834
|
}
|
|
9745
9835
|
}), null);
|
|
9746
9836
|
createRenderEffect((_p$) => {
|
|
9747
|
-
|
|
9837
|
+
var _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
|
|
9748
9838
|
[css`
|
|
9749
9839
|
min-width: min-content;
|
|
9750
9840
|
`]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
|
|
9751
9841
|
}, "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");
|
|
9752
|
-
_v$ !== _p$.
|
|
9753
|
-
_v$2 !== _p$.
|
|
9754
|
-
_v$3 !== _p$.
|
|
9755
|
-
_v$4 !== _p$.
|
|
9756
|
-
_v$5 !== _p$.
|
|
9842
|
+
_v$ !== _p$.e && className(_el$6, _p$.e = _v$);
|
|
9843
|
+
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$6.style.setProperty("height", _v$2) : _el$6.style.removeProperty("height"));
|
|
9844
|
+
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$6.style.setProperty("width", _v$3) : _el$6.style.removeProperty("width"));
|
|
9845
|
+
_v$4 !== _p$.o && className(_el$7, _p$.o = _v$4);
|
|
9846
|
+
_v$5 !== _p$.i && className(_el$8, _p$.i = _v$5);
|
|
9757
9847
|
return _p$;
|
|
9758
9848
|
}, {
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9849
|
+
e: void 0,
|
|
9850
|
+
t: void 0,
|
|
9851
|
+
a: void 0,
|
|
9852
|
+
o: void 0,
|
|
9853
|
+
i: void 0
|
|
9764
9854
|
});
|
|
9765
9855
|
return _el$6;
|
|
9766
9856
|
})();
|
|
@@ -9821,8 +9911,8 @@ var ContentView = (props) => {
|
|
|
9821
9911
|
el.style.setProperty("--tsqd-font-size", variable);
|
|
9822
9912
|
};
|
|
9823
9913
|
return [(() => {
|
|
9824
|
-
|
|
9825
|
-
|
|
9914
|
+
var _el$9 = _tmpl$212(), _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild, _el$13 = _el$12.firstChild, _el$14 = _el$13.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$10.nextSibling, _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$20.nextSibling, _el$26 = _el$17.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$27.nextSibling;
|
|
9915
|
+
var _ref$3 = containerRef;
|
|
9826
9916
|
typeof _ref$3 === "function" ? use(_ref$3, _el$9) : containerRef = _el$9;
|
|
9827
9917
|
_el$12.$$click = () => {
|
|
9828
9918
|
if (!pip().pipWindow) {
|
|
@@ -9902,12 +9992,12 @@ var ContentView = (props) => {
|
|
|
9902
9992
|
return selectedView() === "queries";
|
|
9903
9993
|
},
|
|
9904
9994
|
get children() {
|
|
9905
|
-
|
|
9995
|
+
var _el$21 = _tmpl$43();
|
|
9906
9996
|
_el$21.addEventListener("change", (e2) => {
|
|
9907
9997
|
props.setLocalStore("sort", e2.currentTarget.value);
|
|
9908
9998
|
});
|
|
9909
9999
|
insert(_el$21, () => Object.keys(sortFns).map((key) => (() => {
|
|
9910
|
-
|
|
10000
|
+
var _el$44 = _tmpl$223(); _el$44.firstChild;
|
|
9911
10001
|
_el$44.value = key;
|
|
9912
10002
|
insert(_el$44, key, null);
|
|
9913
10003
|
return _el$44;
|
|
@@ -9921,12 +10011,12 @@ var ContentView = (props) => {
|
|
|
9921
10011
|
return selectedView() === "mutations";
|
|
9922
10012
|
},
|
|
9923
10013
|
get children() {
|
|
9924
|
-
|
|
10014
|
+
var _el$22 = _tmpl$53();
|
|
9925
10015
|
_el$22.addEventListener("change", (e2) => {
|
|
9926
10016
|
props.setLocalStore("mutationSort", e2.currentTarget.value);
|
|
9927
10017
|
});
|
|
9928
10018
|
insert(_el$22, () => Object.keys(mutationSortFns).map((key) => (() => {
|
|
9929
|
-
|
|
10019
|
+
var _el$46 = _tmpl$223(); _el$46.firstChild;
|
|
9930
10020
|
_el$46.value = key;
|
|
9931
10021
|
insert(_el$46, key, null);
|
|
9932
10022
|
return _el$46;
|
|
@@ -9977,7 +10067,7 @@ var ContentView = (props) => {
|
|
|
9977
10067
|
}
|
|
9978
10068
|
};
|
|
9979
10069
|
insert(_el$28, (() => {
|
|
9980
|
-
|
|
10070
|
+
var _c$ = createMemo(() => !!offline());
|
|
9981
10071
|
return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
|
|
9982
10072
|
})());
|
|
9983
10073
|
insert(_el$26, createComponent(Show, {
|
|
@@ -9985,7 +10075,7 @@ var ContentView = (props) => {
|
|
|
9985
10075
|
return !pip().pipWindow;
|
|
9986
10076
|
},
|
|
9987
10077
|
get children() {
|
|
9988
|
-
|
|
10078
|
+
var _el$29 = _tmpl$83();
|
|
9989
10079
|
_el$29.$$click = () => {
|
|
9990
10080
|
pip().requestPipWindow(Number(window.innerWidth), Number(props.localStore.height ?? 500));
|
|
9991
10081
|
};
|
|
@@ -10016,7 +10106,7 @@ var ContentView = (props) => {
|
|
|
10016
10106
|
},
|
|
10017
10107
|
get children() {
|
|
10018
10108
|
return [(() => {
|
|
10019
|
-
|
|
10109
|
+
var _el$30 = _tmpl$93();
|
|
10020
10110
|
createRenderEffect(() => className(_el$30, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
|
|
10021
10111
|
return _el$30;
|
|
10022
10112
|
})(), createComponent(dropdown_menu_exports.Sub, {
|
|
@@ -10166,7 +10256,7 @@ var ContentView = (props) => {
|
|
|
10166
10256
|
return selectedView() === "queries";
|
|
10167
10257
|
},
|
|
10168
10258
|
get children() {
|
|
10169
|
-
|
|
10259
|
+
var _el$40 = _tmpl$192(), _el$41 = _el$40.firstChild;
|
|
10170
10260
|
insert(_el$41, createComponent(Key, {
|
|
10171
10261
|
by: (q) => q.queryHash,
|
|
10172
10262
|
get each() {
|
|
@@ -10187,7 +10277,7 @@ var ContentView = (props) => {
|
|
|
10187
10277
|
return selectedView() === "mutations";
|
|
10188
10278
|
},
|
|
10189
10279
|
get children() {
|
|
10190
|
-
|
|
10280
|
+
var _el$42 = _tmpl$202(), _el$43 = _el$42.firstChild;
|
|
10191
10281
|
insert(_el$43, createComponent(Key, {
|
|
10192
10282
|
by: (m) => m.mutationId,
|
|
10193
10283
|
get each() {
|
|
@@ -10204,55 +10294,55 @@ var ContentView = (props) => {
|
|
|
10204
10294
|
}
|
|
10205
10295
|
}), null);
|
|
10206
10296
|
createRenderEffect((_p$) => {
|
|
10207
|
-
|
|
10297
|
+
var _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && (selectedQueryHash() || selectedMutationId()) && css`
|
|
10208
10298
|
height: 50%;
|
|
10209
10299
|
max-height: 50%;
|
|
10210
10300
|
`, panelWidth() < secondBreakpoint && !(selectedQueryHash() || selectedMutationId()) && css`
|
|
10211
10301
|
height: 100%;
|
|
10212
10302
|
max-height: 100%;
|
|
10213
10303
|
`, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = styles().logoAndToggleContainer, _v$9 = clsx(styles().logo, "tsqd-text-logo-container"), _v$10 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$11 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$12 = clsx(styles().row, "tsqd-filters-actions-container"), _v$13 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$14 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$15 = clsx("tsqd-query-filter-textfield"), _v$16 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$17 = `Sort order ${(selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1 ? "descending" : "ascending"}`, _v$18 = (selectedView() === "queries" ? sortOrder() : mutationSortOrder()) === -1, _v$19 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$20 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$21 = `Clear ${selectedView()} cache`, _v$22 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$23 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$24 = offline(), _v$25 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
|
|
10214
|
-
_v$6 !== _p$.
|
|
10215
|
-
_v$7 !== _p$.
|
|
10216
|
-
_v$8 !== _p$.
|
|
10217
|
-
_v$9 !== _p$.
|
|
10218
|
-
_v$10 !== _p$.
|
|
10219
|
-
_v$11 !== _p$.
|
|
10220
|
-
_v$12 !== _p$.
|
|
10221
|
-
_v$13 !== _p$.
|
|
10222
|
-
_v$14 !== _p$.
|
|
10223
|
-
_v$15 !== _p$.
|
|
10224
|
-
_v$16 !== _p$.
|
|
10225
|
-
_v$17 !== _p$.
|
|
10226
|
-
_v$18 !== _p$.
|
|
10227
|
-
_v$19 !== _p$.
|
|
10228
|
-
_v$20 !== _p$.
|
|
10229
|
-
_v$21 !== _p$.
|
|
10230
|
-
_v$22 !== _p$.
|
|
10231
|
-
_v$23 !== _p$.
|
|
10232
|
-
_v$24 !== _p$.
|
|
10233
|
-
_v$25 !== _p$.
|
|
10304
|
+
_v$6 !== _p$.e && className(_el$9, _p$.e = _v$6);
|
|
10305
|
+
_v$7 !== _p$.t && className(_el$10, _p$.t = _v$7);
|
|
10306
|
+
_v$8 !== _p$.a && className(_el$11, _p$.a = _v$8);
|
|
10307
|
+
_v$9 !== _p$.o && className(_el$12, _p$.o = _v$9);
|
|
10308
|
+
_v$10 !== _p$.i && className(_el$13, _p$.i = _v$10);
|
|
10309
|
+
_v$11 !== _p$.n && className(_el$14, _p$.n = _v$11);
|
|
10310
|
+
_v$12 !== _p$.s && className(_el$16, _p$.s = _v$12);
|
|
10311
|
+
_v$13 !== _p$.h && className(_el$17, _p$.h = _v$13);
|
|
10312
|
+
_v$14 !== _p$.r && className(_el$18, _p$.r = _v$14);
|
|
10313
|
+
_v$15 !== _p$.d && className(_el$19, _p$.d = _v$15);
|
|
10314
|
+
_v$16 !== _p$.l && className(_el$20, _p$.l = _v$16);
|
|
10315
|
+
_v$17 !== _p$.u && setAttribute(_el$23, "aria-label", _p$.u = _v$17);
|
|
10316
|
+
_v$18 !== _p$.c && setAttribute(_el$23, "aria-pressed", _p$.c = _v$18);
|
|
10317
|
+
_v$19 !== _p$.w && className(_el$26, _p$.w = _v$19);
|
|
10318
|
+
_v$20 !== _p$.m && className(_el$27, _p$.m = _v$20);
|
|
10319
|
+
_v$21 !== _p$.f && setAttribute(_el$27, "title", _p$.f = _v$21);
|
|
10320
|
+
_v$22 !== _p$.y && className(_el$28, _p$.y = _v$22);
|
|
10321
|
+
_v$23 !== _p$.g && setAttribute(_el$28, "aria-label", _p$.g = _v$23);
|
|
10322
|
+
_v$24 !== _p$.p && setAttribute(_el$28, "aria-pressed", _p$.p = _v$24);
|
|
10323
|
+
_v$25 !== _p$.b && setAttribute(_el$28, "title", _p$.b = _v$25);
|
|
10234
10324
|
return _p$;
|
|
10235
10325
|
}, {
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10326
|
+
e: void 0,
|
|
10327
|
+
t: void 0,
|
|
10328
|
+
a: void 0,
|
|
10329
|
+
o: void 0,
|
|
10330
|
+
i: void 0,
|
|
10331
|
+
n: void 0,
|
|
10332
|
+
s: void 0,
|
|
10333
|
+
h: void 0,
|
|
10334
|
+
r: void 0,
|
|
10335
|
+
d: void 0,
|
|
10336
|
+
l: void 0,
|
|
10337
|
+
u: void 0,
|
|
10338
|
+
c: void 0,
|
|
10339
|
+
w: void 0,
|
|
10340
|
+
m: void 0,
|
|
10341
|
+
f: void 0,
|
|
10342
|
+
y: void 0,
|
|
10343
|
+
g: void 0,
|
|
10344
|
+
p: void 0,
|
|
10345
|
+
b: void 0
|
|
10256
10346
|
});
|
|
10257
10347
|
createRenderEffect(() => _el$19.value = selectedView() === "queries" ? props.localStore.filter || "" : props.localStore.mutationFilter || "");
|
|
10258
10348
|
return _el$9;
|
|
@@ -10319,7 +10409,7 @@ var QueryRow = (props) => {
|
|
|
10319
10409
|
return queryState();
|
|
10320
10410
|
},
|
|
10321
10411
|
get children() {
|
|
10322
|
-
|
|
10412
|
+
var _el$48 = _tmpl$242(), _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling;
|
|
10323
10413
|
_el$48.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
|
|
10324
10414
|
insert(_el$49, observers);
|
|
10325
10415
|
insert(_el$50, () => props.query.queryHash);
|
|
@@ -10332,15 +10422,15 @@ var QueryRow = (props) => {
|
|
|
10332
10422
|
}
|
|
10333
10423
|
}), null);
|
|
10334
10424
|
createRenderEffect((_p$) => {
|
|
10335
|
-
|
|
10336
|
-
_v$26 !== _p$.
|
|
10337
|
-
_v$27 !== _p$.
|
|
10338
|
-
_v$28 !== _p$.
|
|
10425
|
+
var _v$26 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$27 = `Query key ${props.query.queryHash}`, _v$28 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
10426
|
+
_v$26 !== _p$.e && className(_el$48, _p$.e = _v$26);
|
|
10427
|
+
_v$27 !== _p$.t && setAttribute(_el$48, "aria-label", _p$.t = _v$27);
|
|
10428
|
+
_v$28 !== _p$.a && className(_el$49, _p$.a = _v$28);
|
|
10339
10429
|
return _p$;
|
|
10340
10430
|
}, {
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10431
|
+
e: void 0,
|
|
10432
|
+
t: void 0,
|
|
10433
|
+
a: void 0
|
|
10344
10434
|
});
|
|
10345
10435
|
return _el$48;
|
|
10346
10436
|
}
|
|
@@ -10399,7 +10489,7 @@ var MutationRow = (props) => {
|
|
|
10399
10489
|
return mutationState();
|
|
10400
10490
|
},
|
|
10401
10491
|
get children() {
|
|
10402
|
-
|
|
10492
|
+
var _el$52 = _tmpl$242(), _el$53 = _el$52.firstChild, _el$54 = _el$53.nextSibling;
|
|
10403
10493
|
_el$52.$$click = () => {
|
|
10404
10494
|
setSelectedMutationId(props.mutation.mutationId === selectedMutationId() ? null : props.mutation.mutationId);
|
|
10405
10495
|
};
|
|
@@ -10445,15 +10535,15 @@ var MutationRow = (props) => {
|
|
|
10445
10535
|
}), null);
|
|
10446
10536
|
insert(_el$54, () => new Date(props.mutation.state.submittedAt).toLocaleString(), null);
|
|
10447
10537
|
createRenderEffect((_p$) => {
|
|
10448
|
-
|
|
10449
|
-
_v$29 !== _p$.
|
|
10450
|
-
_v$30 !== _p$.
|
|
10451
|
-
_v$31 !== _p$.
|
|
10538
|
+
var _v$29 = clsx(styles().queryRow, selectedMutationId() === props.mutation.mutationId && styles().selectedQueryRow, "tsqd-query-row"), _v$30 = `Mutation submitted at ${new Date(props.mutation.state.submittedAt).toLocaleString()}`, _v$31 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
|
|
10539
|
+
_v$29 !== _p$.e && className(_el$52, _p$.e = _v$29);
|
|
10540
|
+
_v$30 !== _p$.t && setAttribute(_el$52, "aria-label", _p$.t = _v$30);
|
|
10541
|
+
_v$31 !== _p$.a && className(_el$53, _p$.a = _v$31);
|
|
10452
10542
|
return _p$;
|
|
10453
10543
|
}, {
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10544
|
+
e: void 0,
|
|
10545
|
+
t: void 0,
|
|
10546
|
+
a: void 0
|
|
10457
10547
|
});
|
|
10458
10548
|
return _el$52;
|
|
10459
10549
|
}
|
|
@@ -10473,7 +10563,7 @@ var QueryStatusCount = () => {
|
|
|
10473
10563
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10474
10564
|
});
|
|
10475
10565
|
return (() => {
|
|
10476
|
-
|
|
10566
|
+
var _el$55 = _tmpl$26();
|
|
10477
10567
|
insert(_el$55, createComponent(QueryStatus, {
|
|
10478
10568
|
label: "Fresh",
|
|
10479
10569
|
color: "green",
|
|
@@ -10538,7 +10628,7 @@ var MutationStatusCount = () => {
|
|
|
10538
10628
|
return theme() === "dark" ? darkStyles2(css) : lightStyles2(css);
|
|
10539
10629
|
});
|
|
10540
10630
|
return (() => {
|
|
10541
|
-
|
|
10631
|
+
var _el$56 = _tmpl$26();
|
|
10542
10632
|
insert(_el$56, createComponent(QueryStatus, {
|
|
10543
10633
|
label: "Paused",
|
|
10544
10634
|
color: "purple",
|
|
@@ -10599,8 +10689,8 @@ var QueryStatus = (props) => {
|
|
|
10599
10689
|
return true;
|
|
10600
10690
|
});
|
|
10601
10691
|
return (() => {
|
|
10602
|
-
|
|
10603
|
-
|
|
10692
|
+
var _el$57 = _tmpl$27(), _el$59 = _el$57.firstChild, _el$61 = _el$59.nextSibling;
|
|
10693
|
+
var _ref$4 = tagRef;
|
|
10604
10694
|
typeof _ref$4 === "function" ? use(_ref$4, _el$57) : tagRef = _el$57;
|
|
10605
10695
|
_el$57.addEventListener("mouseleave", () => {
|
|
10606
10696
|
setMouseOver(false);
|
|
@@ -10629,7 +10719,7 @@ var QueryStatus = (props) => {
|
|
|
10629
10719
|
return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
|
|
10630
10720
|
},
|
|
10631
10721
|
get children() {
|
|
10632
|
-
|
|
10722
|
+
var _el$58 = _tmpl$252();
|
|
10633
10723
|
insert(_el$58, () => props.label);
|
|
10634
10724
|
createRenderEffect(() => className(_el$58, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
|
|
10635
10725
|
return _el$58;
|
|
@@ -10640,7 +10730,7 @@ var QueryStatus = (props) => {
|
|
|
10640
10730
|
return showLabel();
|
|
10641
10731
|
},
|
|
10642
10732
|
get children() {
|
|
10643
|
-
|
|
10733
|
+
var _el$60 = _tmpl$262();
|
|
10644
10734
|
insert(_el$60, () => props.label);
|
|
10645
10735
|
createRenderEffect(() => className(_el$60, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
|
|
10646
10736
|
return _el$60;
|
|
@@ -10648,7 +10738,7 @@ var QueryStatus = (props) => {
|
|
|
10648
10738
|
}), _el$61);
|
|
10649
10739
|
insert(_el$61, () => props.count);
|
|
10650
10740
|
createRenderEffect((_p$) => {
|
|
10651
|
-
|
|
10741
|
+
var _v$32 = clsx(css`
|
|
10652
10742
|
width: ${tokens.size[1.5]};
|
|
10653
10743
|
height: ${tokens.size[1.5]};
|
|
10654
10744
|
border-radius: ${tokens.border.radius.full};
|
|
@@ -10657,12 +10747,12 @@ var QueryStatus = (props) => {
|
|
|
10657
10747
|
background-color: ${t2(colors[props.color][100], colors[props.color][900])};
|
|
10658
10748
|
color: ${t2(colors[props.color][700], colors[props.color][300])};
|
|
10659
10749
|
`, "tsqd-query-status-tag-count");
|
|
10660
|
-
_v$32 !== _p$.
|
|
10661
|
-
_v$33 !== _p$.
|
|
10750
|
+
_v$32 !== _p$.e && className(_el$59, _p$.e = _v$32);
|
|
10751
|
+
_v$33 !== _p$.t && className(_el$61, _p$.t = _v$33);
|
|
10662
10752
|
return _p$;
|
|
10663
10753
|
}, {
|
|
10664
|
-
|
|
10665
|
-
|
|
10754
|
+
e: void 0,
|
|
10755
|
+
t: void 0
|
|
10666
10756
|
});
|
|
10667
10757
|
return _el$57;
|
|
10668
10758
|
})();
|
|
@@ -10761,7 +10851,7 @@ var QueryDetails = () => {
|
|
|
10761
10851
|
return createMemo(() => !!activeQuery())() && activeQueryState();
|
|
10762
10852
|
},
|
|
10763
10853
|
get children() {
|
|
10764
|
-
|
|
10854
|
+
var _el$62 = _tmpl$30(), _el$63 = _el$62.firstChild, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$65.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$72 = _el$69.nextSibling, _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling, _el$75 = _el$64.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.firstChild, _el$78 = _el$77.firstChild, _el$79 = _el$77.nextSibling, _el$80 = _el$79.firstChild, _el$81 = _el$79.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$81.nextSibling, _el$84 = _el$83.firstChild, _el$85 = _el$83.nextSibling, _el$86 = _el$85.firstChild, _el$87 = _el$86.nextSibling, _el$96 = _el$76.nextSibling, _el$97 = _el$96.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling;
|
|
10765
10855
|
insert(_el$67, () => displayValue(activeQuery().queryKey, true));
|
|
10766
10856
|
insert(_el$68, statusLabel);
|
|
10767
10857
|
insert(_el$71, observerCount);
|
|
@@ -10806,7 +10896,7 @@ var QueryDetails = () => {
|
|
|
10806
10896
|
return errorTypes().length === 0 || queryStatus() === "error";
|
|
10807
10897
|
},
|
|
10808
10898
|
get children() {
|
|
10809
|
-
|
|
10899
|
+
var _el$88 = _tmpl$28(), _el$89 = _el$88.firstChild, _el$90 = _el$89.nextSibling;
|
|
10810
10900
|
_el$88.$$click = () => {
|
|
10811
10901
|
if (!activeQuery().state.error) {
|
|
10812
10902
|
triggerError();
|
|
@@ -10816,19 +10906,19 @@ var QueryDetails = () => {
|
|
|
10816
10906
|
};
|
|
10817
10907
|
insert(_el$88, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$90);
|
|
10818
10908
|
createRenderEffect((_p$) => {
|
|
10819
|
-
|
|
10909
|
+
var _v$34 = clsx(css`
|
|
10820
10910
|
color: ${t2(colors.red[500], colors.red[400])};
|
|
10821
10911
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$35 = queryStatus() === "pending", _v$36 = css`
|
|
10822
10912
|
background-color: ${t2(colors.red[500], colors.red[400])};
|
|
10823
10913
|
`;
|
|
10824
|
-
_v$34 !== _p$.
|
|
10825
|
-
_v$35 !== _p$.
|
|
10826
|
-
_v$36 !== _p$.
|
|
10914
|
+
_v$34 !== _p$.e && className(_el$88, _p$.e = _v$34);
|
|
10915
|
+
_v$35 !== _p$.t && (_el$88.disabled = _p$.t = _v$35);
|
|
10916
|
+
_v$36 !== _p$.a && className(_el$89, _p$.a = _v$36);
|
|
10827
10917
|
return _p$;
|
|
10828
10918
|
}, {
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10919
|
+
e: void 0,
|
|
10920
|
+
t: void 0,
|
|
10921
|
+
a: void 0
|
|
10832
10922
|
});
|
|
10833
10923
|
return _el$88;
|
|
10834
10924
|
}
|
|
@@ -10838,7 +10928,7 @@ var QueryDetails = () => {
|
|
|
10838
10928
|
return !(errorTypes().length === 0 || queryStatus() === "error");
|
|
10839
10929
|
},
|
|
10840
10930
|
get children() {
|
|
10841
|
-
|
|
10931
|
+
var _el$91 = _tmpl$29(), _el$92 = _el$91.firstChild, _el$93 = _el$92.nextSibling, _el$94 = _el$93.nextSibling; _el$94.firstChild;
|
|
10842
10932
|
_el$94.addEventListener("change", (e2) => {
|
|
10843
10933
|
const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
|
|
10844
10934
|
triggerError(errorType);
|
|
@@ -10848,7 +10938,7 @@ var QueryDetails = () => {
|
|
|
10848
10938
|
return errorTypes();
|
|
10849
10939
|
},
|
|
10850
10940
|
children: (errorType) => (() => {
|
|
10851
|
-
|
|
10941
|
+
var _el$100 = _tmpl$31();
|
|
10852
10942
|
insert(_el$100, () => errorType.name);
|
|
10853
10943
|
createRenderEffect(() => _el$100.value = errorType.name);
|
|
10854
10944
|
return _el$100;
|
|
@@ -10856,17 +10946,17 @@ var QueryDetails = () => {
|
|
|
10856
10946
|
}), null);
|
|
10857
10947
|
insert(_el$91, createComponent(ChevronDown, {}), null);
|
|
10858
10948
|
createRenderEffect((_p$) => {
|
|
10859
|
-
|
|
10949
|
+
var _v$37 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$38 = css`
|
|
10860
10950
|
background-color: ${tokens.colors.red[400]};
|
|
10861
10951
|
`, _v$39 = queryStatus() === "pending";
|
|
10862
|
-
_v$37 !== _p$.
|
|
10863
|
-
_v$38 !== _p$.
|
|
10864
|
-
_v$39 !== _p$.
|
|
10952
|
+
_v$37 !== _p$.e && className(_el$91, _p$.e = _v$37);
|
|
10953
|
+
_v$38 !== _p$.t && className(_el$92, _p$.t = _v$38);
|
|
10954
|
+
_v$39 !== _p$.a && (_el$94.disabled = _p$.a = _v$39);
|
|
10865
10955
|
return _p$;
|
|
10866
10956
|
}, {
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10957
|
+
e: void 0,
|
|
10958
|
+
t: void 0,
|
|
10959
|
+
a: void 0
|
|
10870
10960
|
});
|
|
10871
10961
|
return _el$91;
|
|
10872
10962
|
}
|
|
@@ -10890,7 +10980,7 @@ var QueryDetails = () => {
|
|
|
10890
10980
|
}
|
|
10891
10981
|
}));
|
|
10892
10982
|
createRenderEffect((_p$) => {
|
|
10893
|
-
|
|
10983
|
+
var _v$40 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$41 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$42 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$43 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$44 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$45 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$46 = clsx(css`
|
|
10894
10984
|
color: ${t2(colors.blue[600], colors.blue[400])};
|
|
10895
10985
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$47 = statusLabel() === "fetching", _v$48 = css`
|
|
10896
10986
|
background-color: ${t2(colors.blue[600], colors.blue[400])};
|
|
@@ -10911,58 +11001,58 @@ var QueryDetails = () => {
|
|
|
10911
11001
|
`, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$59 = restoringLoading(), _v$60 = css`
|
|
10912
11002
|
background-color: ${t2(colors.cyan[500], colors.cyan[400])};
|
|
10913
11003
|
`, _v$61 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$62 = tokens.size[2], _v$63 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$64 = tokens.size[2];
|
|
10914
|
-
_v$40 !== _p$.
|
|
10915
|
-
_v$41 !== _p$.
|
|
10916
|
-
_v$42 !== _p$.
|
|
10917
|
-
_v$43 !== _p$.
|
|
10918
|
-
_v$44 !== _p$.
|
|
10919
|
-
_v$45 !== _p$.
|
|
10920
|
-
_v$46 !== _p$.
|
|
10921
|
-
_v$47 !== _p$.
|
|
10922
|
-
_v$48 !== _p$.
|
|
10923
|
-
_v$49 !== _p$.
|
|
10924
|
-
_v$50 !== _p$.
|
|
10925
|
-
_v$51 !== _p$.
|
|
10926
|
-
_v$52 !== _p$.
|
|
10927
|
-
_v$53 !== _p$.
|
|
10928
|
-
_v$54 !== _p$.
|
|
10929
|
-
_v$55 !== _p$.
|
|
10930
|
-
_v$56 !== _p$.
|
|
10931
|
-
_v$57 !== _p$.
|
|
10932
|
-
_v$58 !== _p$.
|
|
10933
|
-
_v$59 !== _p$.
|
|
10934
|
-
_v$60 !== _p$.
|
|
10935
|
-
_v$61 !== _p$.
|
|
10936
|
-
_v$62 !== _p$.
|
|
10937
|
-
_v$63 !== _p$.
|
|
10938
|
-
_v$64 !== _p$.
|
|
11004
|
+
_v$40 !== _p$.e && className(_el$62, _p$.e = _v$40);
|
|
11005
|
+
_v$41 !== _p$.t && className(_el$63, _p$.t = _v$41);
|
|
11006
|
+
_v$42 !== _p$.a && className(_el$64, _p$.a = _v$42);
|
|
11007
|
+
_v$43 !== _p$.o && className(_el$68, _p$.o = _v$43);
|
|
11008
|
+
_v$44 !== _p$.i && className(_el$75, _p$.i = _v$44);
|
|
11009
|
+
_v$45 !== _p$.n && className(_el$76, _p$.n = _v$45);
|
|
11010
|
+
_v$46 !== _p$.s && className(_el$77, _p$.s = _v$46);
|
|
11011
|
+
_v$47 !== _p$.h && (_el$77.disabled = _p$.h = _v$47);
|
|
11012
|
+
_v$48 !== _p$.r && className(_el$78, _p$.r = _v$48);
|
|
11013
|
+
_v$49 !== _p$.d && className(_el$79, _p$.d = _v$49);
|
|
11014
|
+
_v$50 !== _p$.l && (_el$79.disabled = _p$.l = _v$50);
|
|
11015
|
+
_v$51 !== _p$.u && className(_el$80, _p$.u = _v$51);
|
|
11016
|
+
_v$52 !== _p$.c && className(_el$81, _p$.c = _v$52);
|
|
11017
|
+
_v$53 !== _p$.w && (_el$81.disabled = _p$.w = _v$53);
|
|
11018
|
+
_v$54 !== _p$.m && className(_el$82, _p$.m = _v$54);
|
|
11019
|
+
_v$55 !== _p$.f && className(_el$83, _p$.f = _v$55);
|
|
11020
|
+
_v$56 !== _p$.y && (_el$83.disabled = _p$.y = _v$56);
|
|
11021
|
+
_v$57 !== _p$.g && className(_el$84, _p$.g = _v$57);
|
|
11022
|
+
_v$58 !== _p$.p && className(_el$85, _p$.p = _v$58);
|
|
11023
|
+
_v$59 !== _p$.b && (_el$85.disabled = _p$.b = _v$59);
|
|
11024
|
+
_v$60 !== _p$.T && className(_el$86, _p$.T = _v$60);
|
|
11025
|
+
_v$61 !== _p$.A && className(_el$96, _p$.A = _v$61);
|
|
11026
|
+
_v$62 !== _p$.O && ((_p$.O = _v$62) != null ? _el$97.style.setProperty("padding", _v$62) : _el$97.style.removeProperty("padding"));
|
|
11027
|
+
_v$63 !== _p$.I && className(_el$98, _p$.I = _v$63);
|
|
11028
|
+
_v$64 !== _p$.S && ((_p$.S = _v$64) != null ? _el$99.style.setProperty("padding", _v$64) : _el$99.style.removeProperty("padding"));
|
|
10939
11029
|
return _p$;
|
|
10940
11030
|
}, {
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
11031
|
+
e: void 0,
|
|
11032
|
+
t: void 0,
|
|
11033
|
+
a: void 0,
|
|
11034
|
+
o: void 0,
|
|
11035
|
+
i: void 0,
|
|
11036
|
+
n: void 0,
|
|
11037
|
+
s: void 0,
|
|
11038
|
+
h: void 0,
|
|
11039
|
+
r: void 0,
|
|
11040
|
+
d: void 0,
|
|
11041
|
+
l: void 0,
|
|
11042
|
+
u: void 0,
|
|
11043
|
+
c: void 0,
|
|
11044
|
+
w: void 0,
|
|
11045
|
+
m: void 0,
|
|
11046
|
+
f: void 0,
|
|
11047
|
+
y: void 0,
|
|
11048
|
+
g: void 0,
|
|
11049
|
+
p: void 0,
|
|
11050
|
+
b: void 0,
|
|
11051
|
+
T: void 0,
|
|
11052
|
+
A: void 0,
|
|
11053
|
+
O: void 0,
|
|
11054
|
+
I: void 0,
|
|
11055
|
+
S: void 0
|
|
10966
11056
|
});
|
|
10967
11057
|
return _el$62;
|
|
10968
11058
|
}
|
|
@@ -11018,7 +11108,7 @@ var MutationDetails = () => {
|
|
|
11018
11108
|
return activeMutation();
|
|
11019
11109
|
},
|
|
11020
11110
|
get children() {
|
|
11021
|
-
|
|
11111
|
+
var _el$101 = _tmpl$322(), _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$103.firstChild, _el$105 = _el$104.firstChild, _el$106 = _el$105.firstChild, _el$107 = _el$105.nextSibling, _el$108 = _el$104.nextSibling, _el$109 = _el$108.firstChild, _el$110 = _el$109.nextSibling, _el$111 = _el$103.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;
|
|
11022
11112
|
insert(_el$106, createComponent(Show, {
|
|
11023
11113
|
get when() {
|
|
11024
11114
|
return activeMutation().options.mutationKey;
|
|
@@ -11072,33 +11162,33 @@ var MutationDetails = () => {
|
|
|
11072
11162
|
}
|
|
11073
11163
|
}));
|
|
11074
11164
|
createRenderEffect((_p$) => {
|
|
11075
|
-
|
|
11076
|
-
_v$65 !== _p$.
|
|
11077
|
-
_v$66 !== _p$.
|
|
11078
|
-
_v$67 !== _p$.
|
|
11079
|
-
_v$68 !== _p$.
|
|
11080
|
-
_v$69 !== _p$.
|
|
11081
|
-
_v$70 !== _p$.
|
|
11082
|
-
_v$71 !== _p$.
|
|
11083
|
-
_v$72 !== _p$.
|
|
11084
|
-
_v$73 !== _p$.
|
|
11085
|
-
_v$74 !== _p$.
|
|
11086
|
-
_v$75 !== _p$.
|
|
11087
|
-
_v$76 !== _p$.
|
|
11165
|
+
var _v$65 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$66 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$67 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$68 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$69 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$70 = tokens.size[2], _v$71 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$72 = tokens.size[2], _v$73 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$74 = tokens.size[2], _v$75 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$76 = tokens.size[2];
|
|
11166
|
+
_v$65 !== _p$.e && className(_el$101, _p$.e = _v$65);
|
|
11167
|
+
_v$66 !== _p$.t && className(_el$102, _p$.t = _v$66);
|
|
11168
|
+
_v$67 !== _p$.a && className(_el$103, _p$.a = _v$67);
|
|
11169
|
+
_v$68 !== _p$.o && className(_el$107, _p$.o = _v$68);
|
|
11170
|
+
_v$69 !== _p$.i && className(_el$111, _p$.i = _v$69);
|
|
11171
|
+
_v$70 !== _p$.n && ((_p$.n = _v$70) != null ? _el$112.style.setProperty("padding", _v$70) : _el$112.style.removeProperty("padding"));
|
|
11172
|
+
_v$71 !== _p$.s && className(_el$113, _p$.s = _v$71);
|
|
11173
|
+
_v$72 !== _p$.h && ((_p$.h = _v$72) != null ? _el$114.style.setProperty("padding", _v$72) : _el$114.style.removeProperty("padding"));
|
|
11174
|
+
_v$73 !== _p$.r && className(_el$115, _p$.r = _v$73);
|
|
11175
|
+
_v$74 !== _p$.d && ((_p$.d = _v$74) != null ? _el$116.style.setProperty("padding", _v$74) : _el$116.style.removeProperty("padding"));
|
|
11176
|
+
_v$75 !== _p$.l && className(_el$117, _p$.l = _v$75);
|
|
11177
|
+
_v$76 !== _p$.u && ((_p$.u = _v$76) != null ? _el$118.style.setProperty("padding", _v$76) : _el$118.style.removeProperty("padding"));
|
|
11088
11178
|
return _p$;
|
|
11089
11179
|
}, {
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11180
|
+
e: void 0,
|
|
11181
|
+
t: void 0,
|
|
11182
|
+
a: void 0,
|
|
11183
|
+
o: void 0,
|
|
11184
|
+
i: void 0,
|
|
11185
|
+
n: void 0,
|
|
11186
|
+
s: void 0,
|
|
11187
|
+
h: void 0,
|
|
11188
|
+
r: void 0,
|
|
11189
|
+
d: void 0,
|
|
11190
|
+
l: void 0,
|
|
11191
|
+
u: void 0
|
|
11102
11192
|
});
|
|
11103
11193
|
return _el$101;
|
|
11104
11194
|
}
|