@marimo-team/islands 0.23.4-dev18 → 0.23.4-dev21
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/dist/{ConnectedDataExplorerComponent-BS9U2zaC.js → ConnectedDataExplorerComponent-CWU3Az6F.js} +1 -1
- package/dist/main.js +5 -5
- package/dist/{react-vega-jy3CfYys.js → react-vega-B-rkEqtS.js} +1 -1
- package/dist/{react-vega-C2Rtgjb4.js → react-vega-k9ODWPlI.js} +1085 -1728
- package/dist/{reveal-component-CHxYqj2C.js → reveal-component-DK-5_Ei4.js} +1 -1
- package/dist/{slide-form--t4NFxYc.js → slide-form-CYU9AOO4.js} +567 -537
- package/dist/{vega-component-CjMUUeEZ.js → vega-component-BnCQmtxw.js} +1 -1
- package/package.json +2 -2
- package/src/components/data-table/__tests__/columns.test.tsx +40 -10
- package/src/components/data-table/column-header.tsx +27 -4
- package/src/components/data-table/columns.tsx +12 -1
- package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +135 -54
- package/src/components/data-table/range-focus/use-cell-range-selection.ts +36 -4
|
@@ -7464,33 +7464,33 @@ try {
|
|
|
7464
7464
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
7465
7465
|
function y(e2) {
|
|
7466
7466
|
var _a2, _b, _c, _d;
|
|
7467
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
7467
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), VM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
7468
7468
|
h2
|
|
7469
|
-
]),
|
|
7470
|
-
|
|
7471
|
-
]),
|
|
7472
|
-
supportedColorSchemes:
|
|
7473
|
-
defaultLightColorScheme:
|
|
7474
|
-
defaultDarkColorScheme:
|
|
7469
|
+
]), HM = $[t], UM = HM || $, { colorSchemes: WM = _, components: GM = v, cssVarPrefix: KM } = UM, qM = Object.keys(WM).filter((e3) => !!WM[e3]).join(","), JM = import_react.useMemo(() => qM.split(","), [
|
|
7470
|
+
qM
|
|
7471
|
+
]), YM = typeof s == "string" ? s : s.light, XM = typeof s == "string" ? s : s.dark, { mode: ZM, setMode: QM, systemMode: $M, lightColorScheme: eN, darkColorScheme: tN, colorScheme: nN, setColorScheme: rN } = useCurrentColorScheme({
|
|
7472
|
+
supportedColorSchemes: JM,
|
|
7473
|
+
defaultLightColorScheme: YM,
|
|
7474
|
+
defaultDarkColorScheme: XM,
|
|
7475
7475
|
modeStorageKey: y2,
|
|
7476
7476
|
colorSchemeStorageKey: S2,
|
|
7477
|
-
defaultMode:
|
|
7477
|
+
defaultMode: WM[YM] && WM[XM] ? U : ((_b = (_a2 = WM[UM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = UM.palette) == null ? void 0 : _c.mode),
|
|
7478
7478
|
storageManager: E,
|
|
7479
7479
|
storageWindow: O,
|
|
7480
7480
|
noSsr: K
|
|
7481
|
-
}),
|
|
7482
|
-
|
|
7483
|
-
let
|
|
7481
|
+
}), iN = ZM, aN = nN;
|
|
7482
|
+
VM && (iN = Q.mode, aN = Q.colorScheme);
|
|
7483
|
+
let oN = import_react.useMemo(() => {
|
|
7484
7484
|
var _a3;
|
|
7485
|
-
let e3 =
|
|
7486
|
-
...
|
|
7487
|
-
components:
|
|
7488
|
-
colorSchemes:
|
|
7489
|
-
cssVarPrefix:
|
|
7485
|
+
let e3 = aN || UM.defaultColorScheme, t2 = ((_a3 = UM.generateThemeVars) == null ? void 0 : _a3.call(UM)) || UM.vars, n2 = {
|
|
7486
|
+
...UM,
|
|
7487
|
+
components: GM,
|
|
7488
|
+
colorSchemes: WM,
|
|
7489
|
+
cssVarPrefix: KM,
|
|
7490
7490
|
vars: t2
|
|
7491
7491
|
};
|
|
7492
7492
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
7493
|
-
let t3 =
|
|
7493
|
+
let t3 = WM[e3];
|
|
7494
7494
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
7495
7495
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
7496
7496
|
...n2[e4],
|
|
@@ -7500,31 +7500,31 @@ try {
|
|
|
7500
7500
|
}
|
|
7501
7501
|
return c ? c(n2) : n2;
|
|
7502
7502
|
}, [
|
|
7503
|
-
HM,
|
|
7504
|
-
iN,
|
|
7505
|
-
WM,
|
|
7506
7503
|
UM,
|
|
7507
|
-
|
|
7508
|
-
|
|
7504
|
+
aN,
|
|
7505
|
+
GM,
|
|
7506
|
+
WM,
|
|
7507
|
+
KM
|
|
7508
|
+
]), sN = UM.colorSchemeSelector;
|
|
7509
7509
|
useEnhancedEffect_default(() => {
|
|
7510
|
-
if (
|
|
7511
|
-
let e3 =
|
|
7512
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
7510
|
+
if (aN && M && sN && sN !== "media") {
|
|
7511
|
+
let e3 = sN, t2 = sN;
|
|
7512
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...JM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", aN));
|
|
7513
7513
|
else {
|
|
7514
|
-
let e4 = t2.replace("%s",
|
|
7514
|
+
let e4 = t2.replace("%s", aN).match(/\[([^\]]+)\]/);
|
|
7515
7515
|
if (e4) {
|
|
7516
7516
|
let [t3, n2] = e4[1].split("=");
|
|
7517
|
-
n2 ||
|
|
7518
|
-
M.removeAttribute(t3.replace(
|
|
7517
|
+
n2 || JM.forEach((e5) => {
|
|
7518
|
+
M.removeAttribute(t3.replace(aN, e5));
|
|
7519
7519
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
7520
|
-
} else M.setAttribute(t2,
|
|
7520
|
+
} else M.setAttribute(t2, aN);
|
|
7521
7521
|
}
|
|
7522
7522
|
}
|
|
7523
7523
|
}, [
|
|
7524
|
-
|
|
7525
|
-
|
|
7524
|
+
aN,
|
|
7525
|
+
sN,
|
|
7526
7526
|
M,
|
|
7527
|
-
|
|
7527
|
+
JM
|
|
7528
7528
|
]), import_react.useEffect(() => {
|
|
7529
7529
|
let e3;
|
|
7530
7530
|
if (w2 && q.current && A) {
|
|
@@ -7537,48 +7537,48 @@ try {
|
|
|
7537
7537
|
clearTimeout(e3);
|
|
7538
7538
|
};
|
|
7539
7539
|
}, [
|
|
7540
|
-
|
|
7540
|
+
aN,
|
|
7541
7541
|
w2,
|
|
7542
7542
|
A
|
|
7543
7543
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
7544
7544
|
q.current = false;
|
|
7545
7545
|
}), []);
|
|
7546
|
-
let
|
|
7547
|
-
allColorSchemes:
|
|
7548
|
-
colorScheme:
|
|
7549
|
-
darkColorScheme:
|
|
7550
|
-
lightColorScheme:
|
|
7551
|
-
mode:
|
|
7552
|
-
setColorScheme:
|
|
7553
|
-
setMode:
|
|
7554
|
-
systemMode:
|
|
7546
|
+
let cN = import_react.useMemo(() => ({
|
|
7547
|
+
allColorSchemes: JM,
|
|
7548
|
+
colorScheme: aN,
|
|
7549
|
+
darkColorScheme: tN,
|
|
7550
|
+
lightColorScheme: eN,
|
|
7551
|
+
mode: iN,
|
|
7552
|
+
setColorScheme: rN,
|
|
7553
|
+
setMode: QM,
|
|
7554
|
+
systemMode: $M
|
|
7555
7555
|
}), [
|
|
7556
|
-
|
|
7557
|
-
|
|
7556
|
+
JM,
|
|
7557
|
+
aN,
|
|
7558
|
+
tN,
|
|
7558
7559
|
eN,
|
|
7559
|
-
|
|
7560
|
+
iN,
|
|
7560
7561
|
rN,
|
|
7561
|
-
nN,
|
|
7562
|
-
ZM,
|
|
7563
7562
|
QM,
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7563
|
+
$M,
|
|
7564
|
+
oN.colorSchemeSelector
|
|
7565
|
+
]), lN = true;
|
|
7566
|
+
(z || UM.cssVariables === false || VM && (J == null ? void 0 : J.cssVarPrefix) === KM) && (lN = false);
|
|
7567
|
+
let uN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
7568
7568
|
children: [
|
|
7569
7569
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
7570
|
-
themeId:
|
|
7571
|
-
theme:
|
|
7570
|
+
themeId: HM ? t : void 0,
|
|
7571
|
+
theme: oN,
|
|
7572
7572
|
children: d2
|
|
7573
7573
|
}),
|
|
7574
|
-
|
|
7575
|
-
styles: ((_d =
|
|
7574
|
+
lN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
7575
|
+
styles: ((_d = oN.generateStyleSheets) == null ? void 0 : _d.call(oN)) || []
|
|
7576
7576
|
})
|
|
7577
7577
|
]
|
|
7578
7578
|
});
|
|
7579
|
-
return
|
|
7580
|
-
value:
|
|
7581
|
-
children:
|
|
7579
|
+
return VM ? uN : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
7580
|
+
value: cN,
|
|
7581
|
+
children: uN
|
|
7582
7582
|
});
|
|
7583
7583
|
}
|
|
7584
7584
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -9078,10 +9078,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9078
9078
|
let n = useDefaultProps({
|
|
9079
9079
|
props: e,
|
|
9080
9080
|
name: "MuiInputBase"
|
|
9081
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
9082
|
-
}, []),
|
|
9081
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: VM, onFocus: $, onKeyDown: HM, onKeyUp: UM, placeholder: WM, readOnly: GM, renderSuffix: KM, rows: qM, size: JM, slotProps: YM = {}, slots: XM = {}, startAdornment: ZM, type: QM = "text", value: $M, ...eN } = n, tN = A.value == null ? $M : A.value, { current: nN } = import_react.useRef(tN != null), rN = import_react.useRef(), iN = import_react.useCallback((e2) => {
|
|
9082
|
+
}, []), aN = useForkRef_default(rN, M, A.ref, iN), [oN, sN] = import_react.useState(false), cN = useFormControl(), lN = formControlState({
|
|
9083
9083
|
props: n,
|
|
9084
|
-
muiFormControl:
|
|
9084
|
+
muiFormControl: cN,
|
|
9085
9085
|
states: [
|
|
9086
9086
|
"color",
|
|
9087
9087
|
"disabled",
|
|
@@ -9092,145 +9092,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
9092
9092
|
"filled"
|
|
9093
9093
|
]
|
|
9094
9094
|
});
|
|
9095
|
-
|
|
9096
|
-
!
|
|
9095
|
+
lN.focused = cN ? cN.focused : oN, import_react.useEffect(() => {
|
|
9096
|
+
!cN && _ && oN && (sN(false), J && J());
|
|
9097
9097
|
}, [
|
|
9098
|
-
|
|
9098
|
+
cN,
|
|
9099
9099
|
_,
|
|
9100
|
-
|
|
9100
|
+
oN,
|
|
9101
9101
|
J
|
|
9102
9102
|
]);
|
|
9103
|
-
let
|
|
9104
|
-
isFilled(e2) ?
|
|
9103
|
+
let uN = cN && cN.onFilled, dN = cN && cN.onEmpty, fN = import_react.useCallback((e2) => {
|
|
9104
|
+
isFilled(e2) ? uN && uN() : dN && dN();
|
|
9105
9105
|
}, [
|
|
9106
|
-
|
|
9107
|
-
|
|
9106
|
+
uN,
|
|
9107
|
+
dN
|
|
9108
9108
|
]);
|
|
9109
9109
|
useEnhancedEffect_default$1(() => {
|
|
9110
|
-
|
|
9111
|
-
value:
|
|
9110
|
+
nN && fN({
|
|
9111
|
+
value: tN
|
|
9112
9112
|
});
|
|
9113
9113
|
}, [
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9114
|
+
tN,
|
|
9115
|
+
fN,
|
|
9116
|
+
nN
|
|
9117
9117
|
]);
|
|
9118
|
-
let
|
|
9119
|
-
$ && $(e2), A.onFocus && A.onFocus(e2),
|
|
9120
|
-
},
|
|
9121
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
9122
|
-
},
|
|
9123
|
-
if (!
|
|
9124
|
-
let t3 = e2.target ||
|
|
9118
|
+
let pN = (e2) => {
|
|
9119
|
+
$ && $(e2), A.onFocus && A.onFocus(e2), cN && cN.onFocus ? cN.onFocus(e2) : sN(true);
|
|
9120
|
+
}, mN = (e2) => {
|
|
9121
|
+
J && J(e2), A.onBlur && A.onBlur(e2), cN && cN.onBlur ? cN.onBlur(e2) : sN(false);
|
|
9122
|
+
}, hN = (e2, ...t2) => {
|
|
9123
|
+
if (!nN) {
|
|
9124
|
+
let t3 = e2.target || rN.current;
|
|
9125
9125
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
9126
|
-
|
|
9126
|
+
fN({
|
|
9127
9127
|
value: t3.value
|
|
9128
9128
|
});
|
|
9129
9129
|
}
|
|
9130
9130
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
9131
9131
|
};
|
|
9132
9132
|
import_react.useEffect(() => {
|
|
9133
|
-
|
|
9133
|
+
fN(rN.current);
|
|
9134
9134
|
}, []);
|
|
9135
|
-
let
|
|
9136
|
-
|
|
9137
|
-
},
|
|
9138
|
-
K &&
|
|
9135
|
+
let gN = (e2) => {
|
|
9136
|
+
rN.current && e2.currentTarget === e2.target && rN.current.focus(), VM && VM(e2);
|
|
9137
|
+
}, _N = O, vN = A;
|
|
9138
|
+
K && _N === "input" && (vN = qM ? {
|
|
9139
9139
|
type: void 0,
|
|
9140
|
-
minRows:
|
|
9141
|
-
maxRows:
|
|
9142
|
-
...
|
|
9140
|
+
minRows: qM,
|
|
9141
|
+
maxRows: qM,
|
|
9142
|
+
...vN
|
|
9143
9143
|
} : {
|
|
9144
9144
|
type: void 0,
|
|
9145
9145
|
maxRows: z,
|
|
9146
9146
|
minRows: U,
|
|
9147
|
-
...
|
|
9148
|
-
},
|
|
9149
|
-
let
|
|
9150
|
-
|
|
9147
|
+
...vN
|
|
9148
|
+
}, _N = TextareaAutosize_default);
|
|
9149
|
+
let yN = (e2) => {
|
|
9150
|
+
fN(e2.animationName === "mui-auto-fill-cancel" ? rN.current : {
|
|
9151
9151
|
value: "x"
|
|
9152
9152
|
});
|
|
9153
9153
|
};
|
|
9154
9154
|
import_react.useEffect(() => {
|
|
9155
|
-
|
|
9155
|
+
cN && cN.setAdornedStart(!!ZM);
|
|
9156
9156
|
}, [
|
|
9157
|
-
|
|
9158
|
-
|
|
9157
|
+
cN,
|
|
9158
|
+
ZM
|
|
9159
9159
|
]);
|
|
9160
|
-
let
|
|
9160
|
+
let bN = {
|
|
9161
9161
|
...n,
|
|
9162
|
-
color:
|
|
9163
|
-
disabled:
|
|
9162
|
+
color: lN.color || "primary",
|
|
9163
|
+
disabled: lN.disabled,
|
|
9164
9164
|
endAdornment: y,
|
|
9165
|
-
error:
|
|
9166
|
-
focused:
|
|
9167
|
-
formControl:
|
|
9165
|
+
error: lN.error,
|
|
9166
|
+
focused: lN.focused,
|
|
9167
|
+
formControl: cN,
|
|
9168
9168
|
fullWidth: w,
|
|
9169
|
-
hiddenLabel:
|
|
9169
|
+
hiddenLabel: lN.hiddenLabel,
|
|
9170
9170
|
multiline: K,
|
|
9171
|
-
size:
|
|
9172
|
-
startAdornment:
|
|
9173
|
-
type:
|
|
9174
|
-
},
|
|
9175
|
-
return
|
|
9176
|
-
...
|
|
9177
|
-
...
|
|
9171
|
+
size: lN.size,
|
|
9172
|
+
startAdornment: ZM,
|
|
9173
|
+
type: QM
|
|
9174
|
+
}, xN = useUtilityClasses(bN), SN = XM.root || d.Root || InputBaseRoot, CN = YM.root || f.root || {}, wN = XM.input || d.Input || InputBaseInput;
|
|
9175
|
+
return vN = {
|
|
9176
|
+
...vN,
|
|
9177
|
+
...YM.input ?? f.input
|
|
9178
9178
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
9179
9179
|
children: [
|
|
9180
9180
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
9181
|
-
(0, import_jsx_runtime.jsxs)(
|
|
9182
|
-
...
|
|
9181
|
+
(0, import_jsx_runtime.jsxs)(SN, {
|
|
9182
|
+
...CN,
|
|
9183
9183
|
ref: t,
|
|
9184
|
-
onClick:
|
|
9185
|
-
|
|
9186
|
-
...!isHostComponent_default(
|
|
9184
|
+
onClick: gN,
|
|
9185
|
+
...eN,
|
|
9186
|
+
...!isHostComponent_default(SN) && {
|
|
9187
9187
|
ownerState: {
|
|
9188
|
-
...
|
|
9189
|
-
...
|
|
9188
|
+
...bN,
|
|
9189
|
+
...CN.ownerState
|
|
9190
9190
|
}
|
|
9191
9191
|
},
|
|
9192
|
-
className: clsx_default(
|
|
9192
|
+
className: clsx_default(xN.root, CN.className, s, GM && "MuiInputBase-readOnly"),
|
|
9193
9193
|
children: [
|
|
9194
|
-
|
|
9194
|
+
ZM,
|
|
9195
9195
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
9196
9196
|
value: null,
|
|
9197
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
9198
|
-
"aria-invalid":
|
|
9197
|
+
children: (0, import_jsx_runtime.jsx)(wN, {
|
|
9198
|
+
"aria-invalid": lN.error,
|
|
9199
9199
|
"aria-describedby": i,
|
|
9200
9200
|
autoComplete: a,
|
|
9201
9201
|
autoFocus: o,
|
|
9202
9202
|
defaultValue: h,
|
|
9203
|
-
disabled:
|
|
9203
|
+
disabled: lN.disabled,
|
|
9204
9204
|
id: E,
|
|
9205
|
-
onAnimationStart:
|
|
9205
|
+
onAnimationStart: yN,
|
|
9206
9206
|
name: q,
|
|
9207
|
-
placeholder:
|
|
9208
|
-
readOnly:
|
|
9209
|
-
required:
|
|
9210
|
-
rows:
|
|
9211
|
-
value:
|
|
9212
|
-
onKeyDown:
|
|
9213
|
-
onKeyUp:
|
|
9214
|
-
type:
|
|
9215
|
-
...
|
|
9216
|
-
...!isHostComponent_default(
|
|
9217
|
-
as:
|
|
9207
|
+
placeholder: WM,
|
|
9208
|
+
readOnly: GM,
|
|
9209
|
+
required: lN.required,
|
|
9210
|
+
rows: qM,
|
|
9211
|
+
value: tN,
|
|
9212
|
+
onKeyDown: HM,
|
|
9213
|
+
onKeyUp: UM,
|
|
9214
|
+
type: QM,
|
|
9215
|
+
...vN,
|
|
9216
|
+
...!isHostComponent_default(wN) && {
|
|
9217
|
+
as: _N,
|
|
9218
9218
|
ownerState: {
|
|
9219
|
-
...
|
|
9220
|
-
...
|
|
9219
|
+
...bN,
|
|
9220
|
+
...vN.ownerState
|
|
9221
9221
|
}
|
|
9222
9222
|
},
|
|
9223
|
-
ref:
|
|
9224
|
-
className: clsx_default(
|
|
9225
|
-
onBlur:
|
|
9226
|
-
onChange:
|
|
9227
|
-
onFocus:
|
|
9223
|
+
ref: aN,
|
|
9224
|
+
className: clsx_default(xN.input, vN.className, GM && "MuiInputBase-readOnly"),
|
|
9225
|
+
onBlur: mN,
|
|
9226
|
+
onChange: hN,
|
|
9227
|
+
onFocus: pN
|
|
9228
9228
|
})
|
|
9229
9229
|
}),
|
|
9230
9230
|
y,
|
|
9231
|
-
|
|
9232
|
-
...
|
|
9233
|
-
startAdornment:
|
|
9231
|
+
KM ? KM({
|
|
9232
|
+
...lN,
|
|
9233
|
+
startAdornment: ZM
|
|
9234
9234
|
}) : null
|
|
9235
9235
|
]
|
|
9236
9236
|
})
|
|
@@ -10306,30 +10306,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10306
10306
|
M,
|
|
10307
10307
|
i,
|
|
10308
10308
|
a
|
|
10309
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
10310
|
-
|
|
10309
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), VM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), HM = useJsonViewerStore((e2) => e2.colorspace.base0C), UM = useJsonViewerStore((e2) => e2.colorspace.base0A), WM = useJsonViewerStore((e2) => e2.displayComma), GM = useJsonViewerStore((e2) => e2.quotesOnKeys), KM = useJsonViewerStore((e2) => e2.rootName), qM = U === t, JM = Number.isInteger(Number(A)), YM = useJsonViewerStore((e2) => e2.enableAdd), XM = useJsonViewerStore((e2) => e2.onAdd), ZM = (0, import_react.useMemo)(() => !XM || a !== void 0 || YM === false || v === false ? false : typeof YM == "function" ? !!YM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
10310
|
+
XM,
|
|
10311
10311
|
a,
|
|
10312
10312
|
i,
|
|
10313
|
-
|
|
10313
|
+
YM,
|
|
10314
10314
|
v,
|
|
10315
10315
|
t
|
|
10316
|
-
]),
|
|
10317
|
-
|
|
10316
|
+
]), QM = useJsonViewerStore((e2) => e2.enableDelete), $M = useJsonViewerStore((e2) => e2.onDelete), eN = (0, import_react.useMemo)(() => !$M || a !== void 0 || qM || QM === false || v === false ? false : typeof QM == "function" ? !!QM(i, t) : QM, [
|
|
10317
|
+
$M,
|
|
10318
10318
|
a,
|
|
10319
|
-
|
|
10319
|
+
qM,
|
|
10320
10320
|
i,
|
|
10321
|
-
|
|
10321
|
+
QM,
|
|
10322
10322
|
v,
|
|
10323
10323
|
t
|
|
10324
|
-
]),
|
|
10325
|
-
|
|
10324
|
+
]), tN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: nN, copied: rN } = useClipboard(), iN = useJsonViewerStore((e2) => e2.highlightUpdates), aN = (0, import_react.useMemo)(() => !iN || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
|
|
10325
|
+
iN,
|
|
10326
10326
|
n,
|
|
10327
10327
|
t
|
|
10328
|
-
]),
|
|
10328
|
+
]), oN = (0, import_react.useRef)();
|
|
10329
10329
|
(0, import_react.useEffect)(() => {
|
|
10330
|
-
|
|
10330
|
+
oN.current && aN && "animate" in oN.current && oN.current.animate([
|
|
10331
10331
|
{
|
|
10332
|
-
backgroundColor:
|
|
10332
|
+
backgroundColor: UM
|
|
10333
10333
|
},
|
|
10334
10334
|
{
|
|
10335
10335
|
backgroundColor: ""
|
|
@@ -10339,40 +10339,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10339
10339
|
easing: "ease-in"
|
|
10340
10340
|
});
|
|
10341
10341
|
}, [
|
|
10342
|
-
|
|
10343
|
-
|
|
10342
|
+
UM,
|
|
10343
|
+
aN,
|
|
10344
10344
|
n,
|
|
10345
10345
|
t
|
|
10346
10346
|
]);
|
|
10347
|
-
let
|
|
10347
|
+
let sN = (0, import_react.useCallback)((e2) => {
|
|
10348
10348
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
10349
10349
|
}, [
|
|
10350
10350
|
h,
|
|
10351
10351
|
t
|
|
10352
|
-
]),
|
|
10352
|
+
]), cN = (0, import_react.useCallback)(() => {
|
|
10353
10353
|
Q(false), E("");
|
|
10354
10354
|
}, [
|
|
10355
10355
|
Q,
|
|
10356
10356
|
E
|
|
10357
|
-
]),
|
|
10357
|
+
]), lN = (0, import_react.useCallback)((e2) => {
|
|
10358
10358
|
if (Q(false), _) try {
|
|
10359
|
-
|
|
10359
|
+
VM(i, t, _(e2));
|
|
10360
10360
|
} catch {
|
|
10361
10361
|
}
|
|
10362
10362
|
}, [
|
|
10363
10363
|
Q,
|
|
10364
10364
|
_,
|
|
10365
|
-
|
|
10365
|
+
VM,
|
|
10366
10366
|
i,
|
|
10367
10367
|
t
|
|
10368
|
-
]),
|
|
10368
|
+
]), uN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10369
10369
|
children: [
|
|
10370
10370
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
10371
10371
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
10372
10372
|
sx: {
|
|
10373
10373
|
fontSize: ".8rem"
|
|
10374
10374
|
},
|
|
10375
|
-
onClick:
|
|
10375
|
+
onClick: cN
|
|
10376
10376
|
})
|
|
10377
10377
|
}),
|
|
10378
10378
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -10380,22 +10380,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10380
10380
|
sx: {
|
|
10381
10381
|
fontSize: ".8rem"
|
|
10382
10382
|
},
|
|
10383
|
-
onClick: () =>
|
|
10383
|
+
onClick: () => lN(w)
|
|
10384
10384
|
})
|
|
10385
10385
|
})
|
|
10386
10386
|
]
|
|
10387
10387
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10388
10388
|
children: [
|
|
10389
|
-
|
|
10389
|
+
tN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10390
10390
|
onClick: (e2) => {
|
|
10391
10391
|
e2.preventDefault();
|
|
10392
10392
|
try {
|
|
10393
|
-
|
|
10393
|
+
nN(i, t, copyString);
|
|
10394
10394
|
} catch (e3) {
|
|
10395
10395
|
console.error(e3);
|
|
10396
10396
|
}
|
|
10397
10397
|
},
|
|
10398
|
-
children:
|
|
10398
|
+
children: rN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
10399
10399
|
sx: {
|
|
10400
10400
|
fontSize: ".8rem"
|
|
10401
10401
|
}
|
|
@@ -10406,16 +10406,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10406
10406
|
})
|
|
10407
10407
|
}),
|
|
10408
10408
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10409
|
-
onClick:
|
|
10409
|
+
onClick: sN,
|
|
10410
10410
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
10411
10411
|
sx: {
|
|
10412
10412
|
fontSize: ".8rem"
|
|
10413
10413
|
}
|
|
10414
10414
|
})
|
|
10415
10415
|
}),
|
|
10416
|
-
|
|
10416
|
+
ZM && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10417
10417
|
onClick: (e2) => {
|
|
10418
|
-
e2.preventDefault(),
|
|
10418
|
+
e2.preventDefault(), XM == null ? void 0 : XM(i);
|
|
10419
10419
|
},
|
|
10420
10420
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
10421
10421
|
sx: {
|
|
@@ -10423,9 +10423,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10423
10423
|
}
|
|
10424
10424
|
})
|
|
10425
10425
|
}),
|
|
10426
|
-
|
|
10426
|
+
eN && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
10427
10427
|
onClick: (e2) => {
|
|
10428
|
-
e2.preventDefault(),
|
|
10428
|
+
e2.preventDefault(), $M == null ? void 0 : $M(i, t);
|
|
10429
10429
|
},
|
|
10430
10430
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
10431
10431
|
sx: {
|
|
@@ -10438,24 +10438,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10438
10438
|
f,
|
|
10439
10439
|
h,
|
|
10440
10440
|
_,
|
|
10441
|
+
rN,
|
|
10441
10442
|
nN,
|
|
10442
|
-
tN,
|
|
10443
10443
|
S,
|
|
10444
10444
|
J,
|
|
10445
|
+
tN,
|
|
10446
|
+
ZM,
|
|
10445
10447
|
eN,
|
|
10446
|
-
XM,
|
|
10447
|
-
$M,
|
|
10448
10448
|
w,
|
|
10449
10449
|
i,
|
|
10450
10450
|
t,
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
oN,
|
|
10451
|
+
XM,
|
|
10452
|
+
$M,
|
|
10454
10453
|
sN,
|
|
10455
|
-
cN
|
|
10456
|
-
|
|
10454
|
+
cN,
|
|
10455
|
+
lN
|
|
10456
|
+
]), dN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
10457
10457
|
t
|
|
10458
|
-
]),
|
|
10458
|
+
]), fN = !dN && !!(c && d), pN = useJsonViewerStore((e2) => e2.keyRenderer), mN = (0, import_react.useMemo)(() => ({
|
|
10459
10459
|
path: i,
|
|
10460
10460
|
inspect: K,
|
|
10461
10461
|
setInspect: q,
|
|
@@ -10492,13 +10492,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10492
10492
|
opacity: 0.8
|
|
10493
10493
|
},
|
|
10494
10494
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
10495
|
-
e2.isDefaultPrevented() ||
|
|
10495
|
+
e2.isDefaultPrevented() || dN || q((e3) => !e3);
|
|
10496
10496
|
}, [
|
|
10497
|
-
|
|
10497
|
+
dN,
|
|
10498
10498
|
q
|
|
10499
10499
|
]),
|
|
10500
10500
|
children: [
|
|
10501
|
-
|
|
10501
|
+
fN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
10502
10502
|
className: "data-key-toggle-expanded",
|
|
10503
10503
|
sx: {
|
|
10504
10504
|
fontSize: ".8rem",
|
|
@@ -10516,27 +10516,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10516
10516
|
}
|
|
10517
10517
|
}) : null,
|
|
10518
10518
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
10519
|
-
ref:
|
|
10519
|
+
ref: oN,
|
|
10520
10520
|
className: "data-key-key",
|
|
10521
10521
|
component: "span",
|
|
10522
|
-
children:
|
|
10522
|
+
children: qM && O === 0 ? KM === false ? null : GM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10523
10523
|
children: [
|
|
10524
10524
|
'"',
|
|
10525
|
-
|
|
10525
|
+
KM,
|
|
10526
10526
|
'"'
|
|
10527
10527
|
]
|
|
10528
10528
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
10529
|
-
children:
|
|
10530
|
-
}) :
|
|
10531
|
-
...
|
|
10532
|
-
}) : a === void 0 && (
|
|
10529
|
+
children: KM
|
|
10530
|
+
}) : pN.when(mN) ? (0, import_jsx_runtime.jsx)(pN, {
|
|
10531
|
+
...mN
|
|
10532
|
+
}) : a === void 0 && (JM ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10533
10533
|
component: "span",
|
|
10534
10534
|
style: {
|
|
10535
|
-
color:
|
|
10536
|
-
userSelect:
|
|
10535
|
+
color: HM,
|
|
10536
|
+
userSelect: JM ? "none" : "auto"
|
|
10537
10537
|
},
|
|
10538
10538
|
children: A
|
|
10539
|
-
}) :
|
|
10539
|
+
}) : GM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
10540
10540
|
children: [
|
|
10541
10541
|
'"',
|
|
10542
10542
|
A,
|
|
@@ -10546,7 +10546,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10546
10546
|
children: A
|
|
10547
10547
|
}))
|
|
10548
10548
|
}),
|
|
10549
|
-
|
|
10549
|
+
qM ? KM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10550
10550
|
className: "data-key-colon",
|
|
10551
10551
|
sx: {
|
|
10552
10552
|
mr: 0.5
|
|
@@ -10559,38 +10559,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
10559
10559
|
".data-key-key:empty + &": {
|
|
10560
10560
|
display: "none"
|
|
10561
10561
|
},
|
|
10562
|
-
userSelect:
|
|
10562
|
+
userSelect: JM ? "none" : "auto"
|
|
10563
10563
|
},
|
|
10564
10564
|
children: ":"
|
|
10565
10565
|
}),
|
|
10566
10566
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
10567
|
-
...
|
|
10567
|
+
...mN
|
|
10568
10568
|
}),
|
|
10569
|
-
I &&
|
|
10569
|
+
I && fN && K && uN
|
|
10570
10570
|
]
|
|
10571
10571
|
}),
|
|
10572
10572
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
10573
10573
|
path: i,
|
|
10574
10574
|
value: w,
|
|
10575
10575
|
setValue: E,
|
|
10576
|
-
abortEditing:
|
|
10577
|
-
commitEditing:
|
|
10576
|
+
abortEditing: cN,
|
|
10577
|
+
commitEditing: lN
|
|
10578
10578
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
10579
|
-
...
|
|
10579
|
+
...mN
|
|
10580
10580
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
10581
10581
|
component: "span",
|
|
10582
10582
|
className: "data-value-fallback",
|
|
10583
10583
|
children: `fallback: ${t}`
|
|
10584
10584
|
}),
|
|
10585
10585
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
10586
|
-
...
|
|
10586
|
+
...mN
|
|
10587
10587
|
}),
|
|
10588
|
-
!o &&
|
|
10588
|
+
!o && WM && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
10589
10589
|
children: ","
|
|
10590
10590
|
}),
|
|
10591
|
-
I &&
|
|
10592
|
-
I && !
|
|
10593
|
-
!I && J &&
|
|
10591
|
+
I && fN && !K && uN,
|
|
10592
|
+
I && !fN && uN,
|
|
10593
|
+
!I && J && uN
|
|
10594
10594
|
]
|
|
10595
10595
|
});
|
|
10596
10596
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -11431,18 +11431,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11431
11431
|
}
|
|
11432
11432
|
let _, v, y, S, w, E;
|
|
11433
11433
|
if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
|
|
11434
|
-
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15),
|
|
11435
|
-
t[15] === s ?
|
|
11434
|
+
let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), VM = n.filter(_temp16), $ = n.filter(_temp17), HM;
|
|
11435
|
+
t[15] === s ? HM = t[16] : (HM = () => {
|
|
11436
11436
|
s.openApplication("scratchpad");
|
|
11437
|
-
}, t[15] = s, t[16] =
|
|
11438
|
-
let
|
|
11437
|
+
}, t[15] = s, t[16] = HM);
|
|
11438
|
+
let UM = HM, WM = () => {
|
|
11439
11439
|
let t2 = [];
|
|
11440
|
-
if (Q.length > 0 ||
|
|
11440
|
+
if (Q.length > 0 || VM.length > 0) {
|
|
11441
11441
|
let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
|
|
11442
11442
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
11443
11443
|
children: [
|
|
11444
11444
|
Q.map(_temp20),
|
|
11445
|
-
|
|
11445
|
+
VM.map(_temp21),
|
|
11446
11446
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
11447
11447
|
size: "xs",
|
|
11448
11448
|
variant: "outline",
|
|
@@ -11474,7 +11474,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11474
11474
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
11475
11475
|
errors: [
|
|
11476
11476
|
...Q,
|
|
11477
|
-
...
|
|
11477
|
+
...VM
|
|
11478
11478
|
],
|
|
11479
11479
|
cellId: i
|
|
11480
11480
|
})
|
|
@@ -11635,7 +11635,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11635
11635
|
size: "xs",
|
|
11636
11636
|
variant: "link",
|
|
11637
11637
|
className: "my-2 font-normal mx-0 px-0",
|
|
11638
|
-
onClick:
|
|
11638
|
+
onClick: UM,
|
|
11639
11639
|
children: [
|
|
11640
11640
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
11641
11641
|
className: "h-3"
|
|
@@ -11760,13 +11760,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
11760
11760
|
})
|
|
11761
11761
|
]
|
|
11762
11762
|
}, "sql-errors")), t2;
|
|
11763
|
-
},
|
|
11764
|
-
t[17] !==
|
|
11765
|
-
className:
|
|
11763
|
+
}, GM = `font-code font-medium tracking-wide ${h}`, KM;
|
|
11764
|
+
t[17] !== GM || t[18] !== c ? (KM = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
11765
|
+
className: GM,
|
|
11766
11766
|
children: c
|
|
11767
|
-
}), t[17] =
|
|
11768
|
-
let
|
|
11769
|
-
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E =
|
|
11767
|
+
}), t[17] = GM, t[18] = c, t[19] = KM) : KM = t[19];
|
|
11768
|
+
let qM = KM;
|
|
11769
|
+
_ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = qM, v = "flex flex-col gap-8", y = WM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
|
|
11770
11770
|
} else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
|
|
11771
11771
|
let O;
|
|
11772
11772
|
t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -12217,7 +12217,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12217
12217
|
]
|
|
12218
12218
|
};
|
|
12219
12219
|
}
|
|
12220
|
-
LazyVegaEmbed = import_react.lazy(() => import("./react-vega-
|
|
12220
|
+
LazyVegaEmbed = import_react.lazy(() => import("./react-vega-B-rkEqtS.js").then((e) => ({
|
|
12221
12221
|
default: e.VegaEmbed
|
|
12222
12222
|
})));
|
|
12223
12223
|
var import_compiler_runtime$34 = require_compiler_runtime();
|
|
@@ -12753,7 +12753,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12753
12753
|
}, [
|
|
12754
12754
|
h
|
|
12755
12755
|
]), k(() => {
|
|
12756
|
-
U(6,
|
|
12756
|
+
U(6, HM);
|
|
12757
12757
|
}, []);
|
|
12758
12758
|
let K = import_react.useMemo(() => ({
|
|
12759
12759
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12762,7 +12762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12762
12762
|
var _a2;
|
|
12763
12763
|
var a2, o2, s2;
|
|
12764
12764
|
if (!Object.is(n.current[e2], t2)) {
|
|
12765
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12765
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, VM);
|
|
12766
12766
|
else if (e2 === "value") {
|
|
12767
12767
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12768
12768
|
let e3 = document.getElementById(I);
|
|
@@ -12770,8 +12770,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12770
12770
|
}
|
|
12771
12771
|
if (U(7, () => {
|
|
12772
12772
|
var _a3;
|
|
12773
|
-
n.current.selectedItemId = (_a3 =
|
|
12774
|
-
}), i2 || U(5,
|
|
12773
|
+
n.current.selectedItemId = (_a3 = UM()) == null ? void 0 : _a3.id, K.emit();
|
|
12774
|
+
}), i2 || U(5, HM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
12775
12775
|
let e3 = t2 ?? "";
|
|
12776
12776
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12777
12777
|
return;
|
|
@@ -12796,12 +12796,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12796
12796
|
item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
|
|
12797
12797
|
e2
|
|
12798
12798
|
]))), U(3, () => {
|
|
12799
|
-
$(), Q(), n.current.value ||
|
|
12799
|
+
$(), Q(), n.current.value || VM(), K.emit();
|
|
12800
12800
|
}), () => {
|
|
12801
12801
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12802
|
-
let t3 =
|
|
12802
|
+
let t3 = UM();
|
|
12803
12803
|
U(4, () => {
|
|
12804
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12804
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && VM(), K.emit();
|
|
12805
12805
|
});
|
|
12806
12806
|
}),
|
|
12807
12807
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12834,7 +12834,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12834
12834
|
]);
|
|
12835
12835
|
});
|
|
12836
12836
|
let i2 = z.current;
|
|
12837
|
-
|
|
12837
|
+
WM().sort((t3, n2) => {
|
|
12838
12838
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12839
12839
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12840
12840
|
}).forEach((e3) => {
|
|
@@ -12846,9 +12846,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12846
12846
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12847
12847
|
});
|
|
12848
12848
|
}
|
|
12849
|
-
function
|
|
12849
|
+
function VM() {
|
|
12850
12850
|
var _a2;
|
|
12851
|
-
let e2 = (_a2 =
|
|
12851
|
+
let e2 = (_a2 = WM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12852
12852
|
K.setState("value", e2 || void 0);
|
|
12853
12853
|
}
|
|
12854
12854
|
function $() {
|
|
@@ -12869,43 +12869,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12869
12869
|
}
|
|
12870
12870
|
n.current.filtered.count = e2;
|
|
12871
12871
|
}
|
|
12872
|
-
function
|
|
12872
|
+
function HM() {
|
|
12873
12873
|
var _a2, _b;
|
|
12874
12874
|
var e2;
|
|
12875
|
-
let t2 =
|
|
12875
|
+
let t2 = UM();
|
|
12876
12876
|
t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
|
|
12877
12877
|
block: "nearest"
|
|
12878
12878
|
})), t2.scrollIntoView({
|
|
12879
12879
|
block: "nearest"
|
|
12880
12880
|
}));
|
|
12881
12881
|
}
|
|
12882
|
-
function
|
|
12882
|
+
function UM() {
|
|
12883
12883
|
var _a2;
|
|
12884
12884
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12885
12885
|
}
|
|
12886
|
-
function
|
|
12886
|
+
function WM() {
|
|
12887
12887
|
var _a2;
|
|
12888
12888
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12889
12889
|
}
|
|
12890
|
-
function
|
|
12891
|
-
let t2 =
|
|
12890
|
+
function GM(e2) {
|
|
12891
|
+
let t2 = WM()[e2];
|
|
12892
12892
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12893
12893
|
}
|
|
12894
|
-
function
|
|
12894
|
+
function KM(e2) {
|
|
12895
12895
|
var t2;
|
|
12896
|
-
let n2 =
|
|
12896
|
+
let n2 = UM(), i2 = WM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12897
12897
|
(t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
|
|
12898
12898
|
}
|
|
12899
|
-
function
|
|
12899
|
+
function qM(e2) {
|
|
12900
12900
|
var _a2;
|
|
12901
|
-
let t2 = (_a2 =
|
|
12901
|
+
let t2 = (_a2 = UM()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12902
12902
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12903
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12903
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : KM(e2);
|
|
12904
12904
|
}
|
|
12905
|
-
let
|
|
12906
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12907
|
-
},
|
|
12908
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12905
|
+
let JM = () => GM(WM().length - 1), YM = (e2) => {
|
|
12906
|
+
e2.preventDefault(), e2.metaKey ? JM() : e2.altKey ? qM(1) : KM(1);
|
|
12907
|
+
}, XM = (e2) => {
|
|
12908
|
+
e2.preventDefault(), e2.metaKey ? GM(0) : e2.altKey ? qM(-1) : KM(-1);
|
|
12909
12909
|
};
|
|
12910
12910
|
return import_react.createElement(Primitive.div, {
|
|
12911
12911
|
ref: t,
|
|
@@ -12919,27 +12919,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12919
12919
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12920
12920
|
case "n":
|
|
12921
12921
|
case "j":
|
|
12922
|
-
E && e2.ctrlKey &&
|
|
12922
|
+
E && e2.ctrlKey && YM(e2);
|
|
12923
12923
|
break;
|
|
12924
12924
|
case "ArrowDown":
|
|
12925
|
-
|
|
12925
|
+
YM(e2);
|
|
12926
12926
|
break;
|
|
12927
12927
|
case "p":
|
|
12928
12928
|
case "k":
|
|
12929
|
-
E && e2.ctrlKey &&
|
|
12929
|
+
E && e2.ctrlKey && XM(e2);
|
|
12930
12930
|
break;
|
|
12931
12931
|
case "ArrowUp":
|
|
12932
|
-
|
|
12932
|
+
XM(e2);
|
|
12933
12933
|
break;
|
|
12934
12934
|
case "Home":
|
|
12935
|
-
e2.preventDefault(),
|
|
12935
|
+
e2.preventDefault(), GM(0);
|
|
12936
12936
|
break;
|
|
12937
12937
|
case "End":
|
|
12938
|
-
e2.preventDefault(),
|
|
12938
|
+
e2.preventDefault(), JM();
|
|
12939
12939
|
break;
|
|
12940
12940
|
case "Enter": {
|
|
12941
12941
|
e2.preventDefault();
|
|
12942
|
-
let t3 =
|
|
12942
|
+
let t3 = UM();
|
|
12943
12943
|
if (t3) {
|
|
12944
12944
|
let e3 = new Event(Z);
|
|
12945
12945
|
t3.dispatchEvent(e3);
|
|
@@ -16239,30 +16239,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16239
16239
|
s
|
|
16240
16240
|
]
|
|
16241
16241
|
}), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
|
|
16242
|
-
}, DataTableColumnHeader = ({ column: e, header: t, subheader: n,
|
|
16243
|
-
let [
|
|
16242
|
+
}, DataTableColumnHeader = ({ column: e, header: t, subheader: n, justify: i, className: o, calculateTopKRows: s, table: c }) => {
|
|
16243
|
+
let [d, f] = (0, import_react.useState)(false), { locale: h } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
16244
16244
|
if (!t) return null;
|
|
16245
16245
|
if (!e.getCanSort() && !e.getCanFilter()) return (0, import_jsx_runtime.jsxs)("div", {
|
|
16246
|
-
className: cn(i),
|
|
16246
|
+
className: cn(i === "center" && "text-center", i === "right" && "text-right", o),
|
|
16247
16247
|
children: [
|
|
16248
16248
|
t,
|
|
16249
16249
|
n
|
|
16250
16250
|
]
|
|
16251
16251
|
});
|
|
16252
|
-
let
|
|
16252
|
+
let _ = e.getFilterValue() !== void 0;
|
|
16253
16253
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16254
16254
|
children: [
|
|
16255
16255
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16256
|
-
className: cn("group flex flex-col my-1 w-full select-none",
|
|
16256
|
+
className: cn("group flex flex-col my-1 w-full select-none", o),
|
|
16257
16257
|
children: [
|
|
16258
16258
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16259
|
-
className: "flex items-center gap-1",
|
|
16259
|
+
className: cn("flex items-center gap-1", i === "right" && "flex-row-reverse", i === "center" && "mx-auto"),
|
|
16260
16260
|
children: [
|
|
16261
|
-
(0, import_jsx_runtime.
|
|
16262
|
-
children:
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
|
|
16261
|
+
i === "center" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16262
|
+
children: [
|
|
16263
|
+
e.getCanSort() && (0, import_jsx_runtime.jsx)(SortButton, {
|
|
16264
|
+
column: e
|
|
16265
|
+
}),
|
|
16266
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
16267
|
+
children: t
|
|
16268
|
+
})
|
|
16269
|
+
]
|
|
16270
|
+
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16271
|
+
children: [
|
|
16272
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
16273
|
+
children: t
|
|
16274
|
+
}),
|
|
16275
|
+
e.getCanSort() && (0, import_jsx_runtime.jsx)(SortButton, {
|
|
16276
|
+
column: e
|
|
16277
|
+
})
|
|
16278
|
+
]
|
|
16266
16279
|
}),
|
|
16267
16280
|
(0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
16268
16281
|
modal: false,
|
|
@@ -16283,15 +16296,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16283
16296
|
align: "start",
|
|
16284
16297
|
children: [
|
|
16285
16298
|
renderDataType(e),
|
|
16286
|
-
renderSorts(e,
|
|
16299
|
+
renderSorts(e, c),
|
|
16287
16300
|
renderCopyColumn(e),
|
|
16288
16301
|
renderColumnPinning(e),
|
|
16289
16302
|
renderColumnWrapping(e),
|
|
16290
|
-
renderFormatOptions(e,
|
|
16303
|
+
renderFormatOptions(e, h),
|
|
16291
16304
|
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
16292
16305
|
renderMenuItemFilter(e),
|
|
16293
|
-
renderFilterByValues(e,
|
|
16294
|
-
|
|
16306
|
+
renderFilterByValues(e, f),
|
|
16307
|
+
_ && (0, import_jsx_runtime.jsx)(ClearFilterMenuItem, {
|
|
16295
16308
|
column: e
|
|
16296
16309
|
})
|
|
16297
16310
|
]
|
|
@@ -16303,9 +16316,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16303
16316
|
n
|
|
16304
16317
|
]
|
|
16305
16318
|
}),
|
|
16306
|
-
|
|
16307
|
-
setIsFilterValueOpen:
|
|
16308
|
-
calculateTopKRows:
|
|
16319
|
+
d && (0, import_jsx_runtime.jsx)(PopoverFilterByValues, {
|
|
16320
|
+
setIsFilterValueOpen: f,
|
|
16321
|
+
calculateTopKRows: s,
|
|
16309
16322
|
column: e
|
|
16310
16323
|
})
|
|
16311
16324
|
]
|
|
@@ -18287,40 +18300,41 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18287
18300
|
accessorFn: (t2) => t2[e2],
|
|
18288
18301
|
header: ({ column: t2, table: n3 }) => {
|
|
18289
18302
|
var _a2;
|
|
18290
|
-
let
|
|
18291
|
-
className: "flex flex-row gap-1",
|
|
18303
|
+
let s2 = i == null ? void 0 : i.getColumnStats(e2), h2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, v2 = c == null ? void 0 : c[e2], y2 = o == null ? void 0 : o[e2], S2 = d && h2 ? (0, import_jsx_runtime.jsxs)("div", {
|
|
18304
|
+
className: cn("flex flex-row gap-1", y2 === "center" && "justify-center", y2 === "right" && "justify-end"),
|
|
18292
18305
|
children: [
|
|
18293
18306
|
(0, import_jsx_runtime.jsx)("span", {
|
|
18294
18307
|
className: "text-xs text-muted-foreground",
|
|
18295
|
-
children:
|
|
18308
|
+
children: h2
|
|
18296
18309
|
}),
|
|
18297
|
-
|
|
18310
|
+
s2 && typeof s2.nulls == "number" && s2.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
|
|
18298
18311
|
className: "text-xs text-muted-foreground",
|
|
18299
18312
|
children: [
|
|
18300
18313
|
"(nulls: ",
|
|
18301
|
-
|
|
18314
|
+
s2.nulls,
|
|
18302
18315
|
")"
|
|
18303
18316
|
]
|
|
18304
18317
|
})
|
|
18305
18318
|
]
|
|
18306
|
-
}) : null,
|
|
18307
|
-
className: cn("font-bold",
|
|
18319
|
+
}) : null, w2 = (0, import_jsx_runtime.jsx)("span", {
|
|
18320
|
+
className: cn("font-bold", v2 && "underline decoration-dotted"),
|
|
18308
18321
|
children: e2 === "" ? " " : e2
|
|
18309
|
-
}),
|
|
18310
|
-
header:
|
|
18311
|
-
content:
|
|
18322
|
+
}), E2 = (0, import_jsx_runtime.jsx)(DataTableColumnHeader, {
|
|
18323
|
+
header: v2 ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
18324
|
+
content: v2,
|
|
18312
18325
|
delayDuration: 300,
|
|
18313
|
-
children:
|
|
18314
|
-
}) :
|
|
18315
|
-
subheader:
|
|
18326
|
+
children: w2
|
|
18327
|
+
}) : w2,
|
|
18328
|
+
subheader: S2,
|
|
18316
18329
|
column: t2,
|
|
18330
|
+
justify: y2,
|
|
18317
18331
|
calculateTopKRows: f,
|
|
18318
18332
|
table: n3
|
|
18319
18333
|
});
|
|
18320
|
-
return _.has(e2) ?
|
|
18321
|
-
className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start"),
|
|
18334
|
+
return _.has(e2) ? E2 : (0, import_jsx_runtime.jsxs)("div", {
|
|
18335
|
+
className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start", y2 === "center" && "items-center", y2 === "right" && "items-end"),
|
|
18322
18336
|
children: [
|
|
18323
|
-
|
|
18337
|
+
E2,
|
|
18324
18338
|
(0, import_jsx_runtime.jsx)(TableColumnSummary, {
|
|
18325
18339
|
columnId: e2
|
|
18326
18340
|
})
|
|
@@ -18915,7 +18929,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18915
18929
|
function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
|
|
18916
18930
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18917
18931
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18918
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
18932
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, VM = useUniqueId(s), $ = (0, import_react.useRef)({
|
|
18919
18933
|
callbacks: {
|
|
18920
18934
|
onCollapse: f,
|
|
18921
18935
|
onExpand: h,
|
|
@@ -18928,7 +18942,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18928
18942
|
maxSize: c,
|
|
18929
18943
|
minSize: d
|
|
18930
18944
|
},
|
|
18931
|
-
id:
|
|
18945
|
+
id: VM,
|
|
18932
18946
|
idIsFromProps: s !== void 0,
|
|
18933
18947
|
order: v
|
|
18934
18948
|
});
|
|
@@ -18938,7 +18952,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18938
18952
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18939
18953
|
...t2
|
|
18940
18954
|
};
|
|
18941
|
-
$.current.id =
|
|
18955
|
+
$.current.id = VM, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
|
|
18942
18956
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18943
18957
|
let e2 = $.current;
|
|
18944
18958
|
return q(e2), () => {
|
|
@@ -18946,7 +18960,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18946
18960
|
};
|
|
18947
18961
|
}, [
|
|
18948
18962
|
v,
|
|
18949
|
-
|
|
18963
|
+
VM,
|
|
18950
18964
|
q,
|
|
18951
18965
|
Q
|
|
18952
18966
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -18957,7 +18971,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18957
18971
|
A($.current, e2);
|
|
18958
18972
|
},
|
|
18959
18973
|
getId() {
|
|
18960
|
-
return
|
|
18974
|
+
return VM;
|
|
18961
18975
|
},
|
|
18962
18976
|
getSize() {
|
|
18963
18977
|
return M($.current);
|
|
@@ -18976,24 +18990,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18976
18990
|
A,
|
|
18977
18991
|
M,
|
|
18978
18992
|
U,
|
|
18979
|
-
|
|
18993
|
+
VM,
|
|
18980
18994
|
J
|
|
18981
18995
|
]);
|
|
18982
|
-
let
|
|
18996
|
+
let HM = I($.current, a);
|
|
18983
18997
|
return (0, import_react.createElement)(S, {
|
|
18984
18998
|
...w,
|
|
18985
18999
|
children: e,
|
|
18986
19000
|
className: t,
|
|
18987
|
-
id:
|
|
19001
|
+
id: VM,
|
|
18988
19002
|
style: {
|
|
18989
|
-
...
|
|
19003
|
+
...HM,
|
|
18990
19004
|
...y
|
|
18991
19005
|
},
|
|
18992
19006
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
18993
19007
|
[DATA_ATTRIBUTES.panel]: "",
|
|
18994
19008
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
18995
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
18996
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19009
|
+
[DATA_ATTRIBUTES.panelId]: VM,
|
|
19010
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + HM.flexGrow).toFixed(1)
|
|
18997
19011
|
});
|
|
18998
19012
|
}
|
|
18999
19013
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19766,7 +19780,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19766
19780
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19767
19781
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19768
19782
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19769
|
-
}, []),
|
|
19783
|
+
}, []), VM = (0, import_react.useCallback)((e2, t2) => {
|
|
19770
19784
|
let { panelDataArray: n2 } = K.current;
|
|
19771
19785
|
return computePanelFlexBoxStyle({
|
|
19772
19786
|
defaultSize: t2,
|
|
@@ -19781,10 +19795,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19781
19795
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19782
19796
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19783
19797
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19784
|
-
}, []),
|
|
19798
|
+
}, []), HM = (0, import_react.useCallback)((e2) => {
|
|
19785
19799
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19786
19800
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19787
|
-
}, []),
|
|
19801
|
+
}, []), UM = (0, import_react.useCallback)((e2) => {
|
|
19788
19802
|
let { panelDataArray: t2 } = K.current;
|
|
19789
19803
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19790
19804
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19816,7 +19830,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19816
19830
|
e2.layout = [];
|
|
19817
19831
|
};
|
|
19818
19832
|
}, []);
|
|
19819
|
-
let
|
|
19833
|
+
let WM = (0, import_react.useCallback)((e2) => {
|
|
19820
19834
|
let t2 = false, n2 = y.current;
|
|
19821
19835
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19822
19836
|
n3.preventDefault();
|
|
@@ -19834,7 +19848,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19834
19848
|
}), I2 = !compareLayouts(f2, A2);
|
|
19835
19849
|
(isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
|
|
19836
19850
|
};
|
|
19837
|
-
}, []),
|
|
19851
|
+
}, []), GM = (0, import_react.useCallback)((e2, t2) => {
|
|
19838
19852
|
let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
|
|
19839
19853
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19840
19854
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19846,12 +19860,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19846
19860
|
trigger: "imperative-api"
|
|
19847
19861
|
});
|
|
19848
19862
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19849
|
-
}, []),
|
|
19863
|
+
}, []), KM = (0, import_react.useCallback)((e2, t2) => {
|
|
19850
19864
|
let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
|
|
19851
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
19865
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || GM(e2, s2) : h2 < f2 ? GM(e2, f2) : h2 > d2 && GM(e2, d2));
|
|
19852
19866
|
}, [
|
|
19853
|
-
|
|
19854
|
-
]),
|
|
19867
|
+
GM
|
|
19868
|
+
]), qM = (0, import_react.useCallback)((e2, t2) => {
|
|
19855
19869
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19856
19870
|
if (!y.current) return;
|
|
19857
19871
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19863,30 +19877,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19863
19877
|
initialCursorPosition: o2,
|
|
19864
19878
|
initialLayout: i2
|
|
19865
19879
|
});
|
|
19866
|
-
}, []),
|
|
19880
|
+
}, []), JM = (0, import_react.useCallback)(() => {
|
|
19867
19881
|
w(null);
|
|
19868
|
-
}, []),
|
|
19882
|
+
}, []), YM = (0, import_react.useCallback)((e2) => {
|
|
19869
19883
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19870
19884
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19871
19885
|
}, [
|
|
19872
19886
|
A
|
|
19873
|
-
]),
|
|
19887
|
+
]), XM = (0, import_react.useMemo)(() => ({
|
|
19874
19888
|
collapsePanel: q,
|
|
19875
19889
|
direction: i,
|
|
19876
19890
|
dragState: S,
|
|
19877
19891
|
expandPanel: J,
|
|
19878
19892
|
getPanelSize: Q,
|
|
19879
|
-
getPanelStyle:
|
|
19893
|
+
getPanelStyle: VM,
|
|
19880
19894
|
groupId: v,
|
|
19881
19895
|
isPanelCollapsed: $,
|
|
19882
|
-
isPanelExpanded:
|
|
19883
|
-
reevaluatePanelConstraints:
|
|
19884
|
-
registerPanel:
|
|
19885
|
-
registerResizeHandle:
|
|
19886
|
-
resizePanel:
|
|
19887
|
-
startDragging:
|
|
19888
|
-
stopDragging:
|
|
19889
|
-
unregisterPanel:
|
|
19896
|
+
isPanelExpanded: HM,
|
|
19897
|
+
reevaluatePanelConstraints: KM,
|
|
19898
|
+
registerPanel: UM,
|
|
19899
|
+
registerResizeHandle: WM,
|
|
19900
|
+
resizePanel: GM,
|
|
19901
|
+
startDragging: qM,
|
|
19902
|
+
stopDragging: JM,
|
|
19903
|
+
unregisterPanel: YM,
|
|
19890
19904
|
panelGroupElement: y.current
|
|
19891
19905
|
}), [
|
|
19892
19906
|
q,
|
|
@@ -19894,18 +19908,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19894
19908
|
i,
|
|
19895
19909
|
J,
|
|
19896
19910
|
Q,
|
|
19897
|
-
|
|
19911
|
+
VM,
|
|
19898
19912
|
v,
|
|
19899
19913
|
$,
|
|
19900
|
-
VM,
|
|
19901
|
-
GM,
|
|
19902
19914
|
HM,
|
|
19915
|
+
KM,
|
|
19903
19916
|
UM,
|
|
19904
19917
|
WM,
|
|
19905
|
-
|
|
19918
|
+
GM,
|
|
19906
19919
|
qM,
|
|
19907
|
-
JM
|
|
19908
|
-
|
|
19920
|
+
JM,
|
|
19921
|
+
YM
|
|
19922
|
+
]), ZM = {
|
|
19909
19923
|
display: "flex",
|
|
19910
19924
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19911
19925
|
height: "100%",
|
|
@@ -19913,7 +19927,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19913
19927
|
width: "100%"
|
|
19914
19928
|
};
|
|
19915
19929
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19916
|
-
value:
|
|
19930
|
+
value: XM
|
|
19917
19931
|
}, (0, import_react.createElement)(h, {
|
|
19918
19932
|
..._,
|
|
19919
19933
|
children: t,
|
|
@@ -19921,7 +19935,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19921
19935
|
id: o,
|
|
19922
19936
|
ref: y,
|
|
19923
19937
|
style: {
|
|
19924
|
-
...
|
|
19938
|
+
...ZM,
|
|
19925
19939
|
...f
|
|
19926
19940
|
},
|
|
19927
19941
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -19998,31 +20012,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19998
20012
|
});
|
|
19999
20013
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
20000
20014
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
20001
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
20015
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [VM, $] = (0, import_react.useState)(false), [HM, UM] = (0, import_react.useState)(null), WM = (0, import_react.useRef)({
|
|
20002
20016
|
state: J
|
|
20003
20017
|
});
|
|
20004
20018
|
useIsomorphicLayoutEffect$1(() => {
|
|
20005
|
-
|
|
20019
|
+
WM.current.state = J;
|
|
20006
20020
|
}), (0, import_react.useEffect)(() => {
|
|
20007
|
-
if (n)
|
|
20021
|
+
if (n) UM(null);
|
|
20008
20022
|
else {
|
|
20009
20023
|
let e2 = I(q);
|
|
20010
|
-
|
|
20024
|
+
UM(() => e2);
|
|
20011
20025
|
}
|
|
20012
20026
|
}, [
|
|
20013
20027
|
n,
|
|
20014
20028
|
q,
|
|
20015
20029
|
I
|
|
20016
20030
|
]);
|
|
20017
|
-
let
|
|
20031
|
+
let GM = (i == null ? void 0 : i.coarse) ?? 15, KM = (i == null ? void 0 : i.fine) ?? 5;
|
|
20018
20032
|
(0, import_react.useEffect)(() => {
|
|
20019
|
-
if (n ||
|
|
20033
|
+
if (n || HM == null) return;
|
|
20020
20034
|
let e2 = w.current;
|
|
20021
20035
|
assert(e2, "Element ref not attached");
|
|
20022
20036
|
let t2 = false;
|
|
20023
20037
|
return registerResizeHandle(q, e2, A, {
|
|
20024
|
-
coarse:
|
|
20025
|
-
fine:
|
|
20038
|
+
coarse: GM,
|
|
20039
|
+
fine: KM
|
|
20026
20040
|
}, (e3, n2, i2) => {
|
|
20027
20041
|
if (!n2) {
|
|
20028
20042
|
Q("inactive");
|
|
@@ -20036,8 +20050,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20036
20050
|
break;
|
|
20037
20051
|
}
|
|
20038
20052
|
case "move": {
|
|
20039
|
-
let { state: e4 } =
|
|
20040
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
20053
|
+
let { state: e4 } = WM.current;
|
|
20054
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), HM(i2);
|
|
20041
20055
|
break;
|
|
20042
20056
|
}
|
|
20043
20057
|
case "up": {
|
|
@@ -20049,22 +20063,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20049
20063
|
}
|
|
20050
20064
|
});
|
|
20051
20065
|
}, [
|
|
20052
|
-
|
|
20066
|
+
GM,
|
|
20053
20067
|
A,
|
|
20054
20068
|
n,
|
|
20055
|
-
|
|
20069
|
+
KM,
|
|
20056
20070
|
I,
|
|
20057
20071
|
q,
|
|
20058
|
-
|
|
20072
|
+
HM,
|
|
20059
20073
|
z,
|
|
20060
20074
|
U
|
|
20061
20075
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
20062
20076
|
disabled: n,
|
|
20063
20077
|
handleId: q,
|
|
20064
|
-
resizeHandler:
|
|
20078
|
+
resizeHandler: HM,
|
|
20065
20079
|
panelGroupElement: K
|
|
20066
20080
|
});
|
|
20067
|
-
let
|
|
20081
|
+
let qM = {
|
|
20068
20082
|
touchAction: "none",
|
|
20069
20083
|
userSelect: "none"
|
|
20070
20084
|
};
|
|
@@ -20082,14 +20096,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20082
20096
|
ref: w,
|
|
20083
20097
|
role: "separator",
|
|
20084
20098
|
style: {
|
|
20085
|
-
...
|
|
20099
|
+
...qM,
|
|
20086
20100
|
..._
|
|
20087
20101
|
},
|
|
20088
20102
|
tabIndex: v,
|
|
20089
20103
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20090
20104
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20091
20105
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20092
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20106
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : VM ? "keyboard" : void 0,
|
|
20093
20107
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20094
20108
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20095
20109
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -20256,147 +20270,147 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20256
20270
|
Combobox = (e) => {
|
|
20257
20271
|
let t = (0, import_compiler_runtime$18.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
|
|
20258
20272
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: q, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q);
|
|
20259
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20260
|
-
t[23] !== v || t[24] !== w || t[25] !==
|
|
20273
|
+
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, VM = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, HM = K === void 0 ? false : K, UM = s ?? false, WM;
|
|
20274
|
+
t[23] !== v || t[24] !== w || t[25] !== UM ? (WM = {
|
|
20261
20275
|
prop: w,
|
|
20262
|
-
defaultProp:
|
|
20276
|
+
defaultProp: UM,
|
|
20263
20277
|
onChange: v
|
|
20264
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20265
|
-
let [
|
|
20266
|
-
t[27] === S ?
|
|
20278
|
+
}, t[23] = v, t[24] = w, t[25] = UM, t[26] = WM) : WM = t[26];
|
|
20279
|
+
let [GM, KM] = useControllableState(WM), qM = GM === void 0 ? false : GM, JM;
|
|
20280
|
+
t[27] === S ? JM = t[28] : (JM = (e2) => {
|
|
20267
20281
|
S == null ? void 0 : S(e2);
|
|
20268
|
-
}, t[27] = S, t[28] =
|
|
20269
|
-
let
|
|
20270
|
-
t[29] !== c || t[30] !==
|
|
20282
|
+
}, t[27] = S, t[28] = JM);
|
|
20283
|
+
let YM;
|
|
20284
|
+
t[29] !== c || t[30] !== JM || t[31] !== q ? (YM = {
|
|
20271
20285
|
prop: q,
|
|
20272
20286
|
defaultProp: c,
|
|
20273
|
-
onChange:
|
|
20274
|
-
}, t[29] = c, t[30] =
|
|
20275
|
-
let [
|
|
20276
|
-
t[33] ===
|
|
20277
|
-
let
|
|
20278
|
-
t[35] !== _ || t[36] !== J || t[37] !==
|
|
20287
|
+
onChange: JM
|
|
20288
|
+
}, t[29] = c, t[30] = JM, t[31] = q, t[32] = YM) : YM = t[32];
|
|
20289
|
+
let [ZM, QM] = useControllableState(YM), $M;
|
|
20290
|
+
t[33] === ZM ? $M = t[34] : ($M = (e2) => Array.isArray(ZM) ? ZM.includes(e2) : ZM === e2, t[33] = ZM, t[34] = $M);
|
|
20291
|
+
let eN = $M, tN;
|
|
20292
|
+
t[35] !== _ || t[36] !== J || t[37] !== KM || t[38] !== QM || t[39] !== ZM ? (tN = (e2) => {
|
|
20279
20293
|
let t2 = e2;
|
|
20280
|
-
if (J) if (Array.isArray(
|
|
20281
|
-
let n2 =
|
|
20294
|
+
if (J) if (Array.isArray(ZM)) if (ZM.includes(t2)) {
|
|
20295
|
+
let n2 = ZM.filter((t3) => t3 !== e2);
|
|
20282
20296
|
t2 = n2.length > 0 ? n2 : [];
|
|
20283
20297
|
} else t2 = [
|
|
20284
|
-
...
|
|
20298
|
+
...ZM,
|
|
20285
20299
|
t2
|
|
20286
20300
|
];
|
|
20287
20301
|
else t2 = [
|
|
20288
20302
|
t2
|
|
20289
20303
|
];
|
|
20290
|
-
else
|
|
20291
|
-
|
|
20292
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20293
|
-
let
|
|
20294
|
-
t[41] !==
|
|
20295
|
-
let
|
|
20296
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20297
|
-
let aN;
|
|
20298
|
-
t[48] === o ? aN = t[49] : (aN = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = aN);
|
|
20304
|
+
else ZM === e2 && (t2 = null);
|
|
20305
|
+
QM(t2), (_ ?? J) || KM(false);
|
|
20306
|
+
}, t[35] = _, t[36] = J, t[37] = KM, t[38] = QM, t[39] = ZM, t[40] = tN) : tN = t[40];
|
|
20307
|
+
let nN = tN, rN;
|
|
20308
|
+
t[41] !== HM || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== ZM ? (rN = () => J && HM && E ? E : ZM == null ? E ?? "--" : Array.isArray(ZM) ? ZM.length === 0 ? E ?? "--" : ZM.length === 1 && d !== void 0 ? d(ZM[0]) : `${ZM.length} selected` : d === void 0 ? E ?? "--" : d(ZM), t[41] = HM, t[42] = d, t[43] = J, t[44] = E, t[45] = ZM, t[46] = rN) : rN = t[46];
|
|
20309
|
+
let iN = rN, aN;
|
|
20310
|
+
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aN = cn("relative"), t[47] = aN) : aN = t[47];
|
|
20299
20311
|
let oN;
|
|
20300
|
-
t[
|
|
20312
|
+
t[48] === o ? oN = t[49] : (oN = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = oN);
|
|
20301
20313
|
let sN;
|
|
20302
|
-
t[
|
|
20314
|
+
t[50] === iN ? sN = t[51] : (sN = iN(), t[50] = iN, t[51] = sN);
|
|
20315
|
+
let cN;
|
|
20316
|
+
t[52] === sN ? cN = t[53] : (cN = (0, import_jsx_runtime.jsx)("span", {
|
|
20303
20317
|
className: "truncate flex-1 min-w-0",
|
|
20304
|
-
children:
|
|
20305
|
-
}), t[52] =
|
|
20306
|
-
let
|
|
20307
|
-
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20318
|
+
children: sN
|
|
20319
|
+
}), t[52] = sN, t[53] = cN);
|
|
20320
|
+
let uN;
|
|
20321
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uN = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20308
20322
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20309
|
-
}), t[54] =
|
|
20310
|
-
let
|
|
20311
|
-
t[55] !== h || t[56] !==
|
|
20323
|
+
}), t[54] = uN) : uN = t[54];
|
|
20324
|
+
let fN;
|
|
20325
|
+
t[55] !== h || t[56] !== qM || t[57] !== oN || t[58] !== cN ? (fN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20312
20326
|
asChild: true,
|
|
20313
20327
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20314
20328
|
id: h,
|
|
20315
|
-
className:
|
|
20316
|
-
"aria-expanded":
|
|
20329
|
+
className: oN,
|
|
20330
|
+
"aria-expanded": qM,
|
|
20317
20331
|
children: [
|
|
20318
|
-
|
|
20319
|
-
|
|
20332
|
+
cN,
|
|
20333
|
+
uN
|
|
20320
20334
|
]
|
|
20321
20335
|
})
|
|
20322
|
-
}), t[55] = h, t[56] =
|
|
20323
|
-
let
|
|
20324
|
-
t[60] !==
|
|
20325
|
-
placeholder:
|
|
20336
|
+
}), t[55] = h, t[56] = qM, t[57] = oN, t[58] = cN, t[59] = fN) : fN = t[59];
|
|
20337
|
+
let pN;
|
|
20338
|
+
t[60] !== VM || t[61] !== y || t[62] !== A ? (pN = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20339
|
+
placeholder: VM,
|
|
20326
20340
|
rootClassName: "px-1 h-8",
|
|
20327
20341
|
autoFocus: true,
|
|
20328
20342
|
value: A,
|
|
20329
20343
|
onValueChange: y
|
|
20330
|
-
}), t[60] =
|
|
20331
|
-
let pN;
|
|
20332
|
-
t[64] === $ ? pN = t[65] : (pN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20333
|
-
children: $
|
|
20334
|
-
}), t[64] = $, t[65] = pN);
|
|
20344
|
+
}), t[60] = VM, t[61] = y, t[62] = A, t[63] = pN) : pN = t[63];
|
|
20335
20345
|
let mN;
|
|
20336
|
-
t[
|
|
20337
|
-
|
|
20338
|
-
|
|
20339
|
-
}, t[66] = tN, t[67] = $M, t[68] = mN) : mN = t[68];
|
|
20346
|
+
t[64] === $ ? mN = t[65] : (mN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20347
|
+
children: $
|
|
20348
|
+
}), t[64] = $, t[65] = mN);
|
|
20340
20349
|
let hN;
|
|
20341
|
-
t[
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
}
|
|
20350
|
+
t[66] !== nN || t[67] !== eN ? (hN = {
|
|
20351
|
+
isSelected: eN,
|
|
20352
|
+
onSelect: nN
|
|
20353
|
+
}, t[66] = nN, t[67] = eN, t[68] = hN) : hN = t[68];
|
|
20345
20354
|
let gN;
|
|
20346
|
-
t[
|
|
20355
|
+
t[69] !== n || t[70] !== hN ? (gN = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
20356
|
+
value: hN,
|
|
20357
|
+
children: n
|
|
20358
|
+
}), t[69] = n, t[70] = hN, t[71] = gN) : gN = t[71];
|
|
20359
|
+
let _N;
|
|
20360
|
+
t[72] !== mN || t[73] !== gN ? (_N = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20347
20361
|
className: "max-h-60 py-.5",
|
|
20348
20362
|
children: [
|
|
20349
|
-
|
|
20350
|
-
|
|
20363
|
+
mN,
|
|
20364
|
+
gN
|
|
20351
20365
|
]
|
|
20352
|
-
}), t[72] =
|
|
20353
|
-
let
|
|
20354
|
-
t[75] !== f || t[76] !== Q || t[77] !==
|
|
20366
|
+
}), t[72] = mN, t[73] = gN, t[74] = _N) : _N = t[74];
|
|
20367
|
+
let vN;
|
|
20368
|
+
t[75] !== f || t[76] !== Q || t[77] !== pN || t[78] !== _N ? (vN = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20355
20369
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20356
20370
|
align: "start",
|
|
20357
20371
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20358
20372
|
filter: f,
|
|
20359
20373
|
shouldFilter: Q,
|
|
20360
20374
|
children: [
|
|
20361
|
-
|
|
20362
|
-
|
|
20375
|
+
pN,
|
|
20376
|
+
_N
|
|
20363
20377
|
]
|
|
20364
20378
|
})
|
|
20365
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20366
|
-
let
|
|
20367
|
-
t[80] !==
|
|
20368
|
-
open:
|
|
20369
|
-
onOpenChange:
|
|
20379
|
+
}), t[75] = f, t[76] = Q, t[77] = pN, t[78] = _N, t[79] = vN) : vN = t[79];
|
|
20380
|
+
let yN;
|
|
20381
|
+
t[80] !== qM || t[81] !== KM || t[82] !== fN || t[83] !== vN ? (yN = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20382
|
+
open: qM,
|
|
20383
|
+
onOpenChange: KM,
|
|
20370
20384
|
children: [
|
|
20371
|
-
|
|
20372
|
-
|
|
20385
|
+
fN,
|
|
20386
|
+
vN
|
|
20373
20387
|
]
|
|
20374
|
-
}), t[80] =
|
|
20375
|
-
let
|
|
20376
|
-
t[85] !==
|
|
20388
|
+
}), t[80] = qM, t[81] = KM, t[82] = fN, t[83] = vN, t[84] = yN) : yN = t[84];
|
|
20389
|
+
let bN;
|
|
20390
|
+
t[85] !== HM || t[86] !== i || t[87] !== d || t[88] !== nN || t[89] !== J || t[90] !== ZM ? (bN = J && HM && (0, import_jsx_runtime.jsx)("div", {
|
|
20377
20391
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20378
|
-
children: Array.isArray(
|
|
20392
|
+
children: Array.isArray(ZM) && ZM.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20379
20393
|
variant: "secondary",
|
|
20380
20394
|
children: [
|
|
20381
20395
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20382
20396
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20383
20397
|
onClick: () => {
|
|
20384
|
-
|
|
20398
|
+
nN(e2);
|
|
20385
20399
|
},
|
|
20386
20400
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20387
20401
|
})
|
|
20388
20402
|
]
|
|
20389
20403
|
}, String(e2)))
|
|
20390
|
-
}), t[85] =
|
|
20391
|
-
let
|
|
20392
|
-
return t[92] !== O || t[93] !==
|
|
20393
|
-
className:
|
|
20404
|
+
}), t[85] = HM, t[86] = i, t[87] = d, t[88] = nN, t[89] = J, t[90] = ZM, t[91] = bN) : bN = t[91];
|
|
20405
|
+
let xN;
|
|
20406
|
+
return t[92] !== O || t[93] !== yN || t[94] !== bN ? (xN = (0, import_jsx_runtime.jsxs)("div", {
|
|
20407
|
+
className: aN,
|
|
20394
20408
|
...O,
|
|
20395
20409
|
children: [
|
|
20396
|
-
|
|
20397
|
-
|
|
20410
|
+
yN,
|
|
20411
|
+
bN
|
|
20398
20412
|
]
|
|
20399
|
-
}), t[92] = O, t[93] =
|
|
20413
|
+
}), t[92] = O, t[93] = yN, t[94] = bN, t[95] = xN) : xN = t[95], xN;
|
|
20400
20414
|
};
|
|
20401
20415
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20402
20416
|
let n = (0, import_compiler_runtime$18.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -22469,10 +22483,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22469
22483
|
clearSelection: i.clearSelection
|
|
22470
22484
|
}, t[22] = i.clearSelection, t[23] = S, t[24] = A, t[25] = E, t[26] = v, t[27] = s, t[28] = d, t[29] = M) : M = t[29], M;
|
|
22471
22485
|
};
|
|
22472
|
-
var INTERACTIVE_SELECTOR = 'input, button, select, textarea, a, label, [role="checkbox"], [role="button"], [contenteditable="true"], marimo-ui-element'
|
|
22486
|
+
var INTERACTIVE_SELECTOR = 'input, button, select, textarea, a, label, [role="checkbox"], [role="button"], [contenteditable="true"], marimo-ui-element', CONTENT_WRAPPER_MARIMO_TAGS = /* @__PURE__ */ new Set([
|
|
22487
|
+
"marimo-lazy",
|
|
22488
|
+
"marimo-routes"
|
|
22489
|
+
]);
|
|
22473
22490
|
function isInteractiveTarget(e) {
|
|
22474
|
-
|
|
22475
|
-
|
|
22491
|
+
var _a2;
|
|
22492
|
+
let t = typeof ((_a2 = e.nativeEvent) == null ? void 0 : _a2.composedPath) == "function" ? e.nativeEvent.composedPath() : [
|
|
22493
|
+
e.target
|
|
22494
|
+
];
|
|
22495
|
+
for (let n of t) {
|
|
22496
|
+
if (n === e.currentTarget) break;
|
|
22497
|
+
if (!(!(n instanceof Element) || !n.matches(INTERACTIVE_SELECTOR))) {
|
|
22498
|
+
if (n.localName === "marimo-ui-element") {
|
|
22499
|
+
let e2 = n.firstElementChild;
|
|
22500
|
+
if (e2 && CONTENT_WRAPPER_MARIMO_TAGS.has(e2.localName)) continue;
|
|
22501
|
+
}
|
|
22502
|
+
return true;
|
|
22503
|
+
}
|
|
22504
|
+
}
|
|
22505
|
+
return false;
|
|
22476
22506
|
}
|
|
22477
22507
|
var import_compiler_runtime$11 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
|
|
22478
22508
|
function useScrollIntoViewOnFocus(e) {
|
|
@@ -23407,7 +23437,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23407
23437
|
filename: i2.filename
|
|
23408
23438
|
};
|
|
23409
23439
|
}, t[5] = e, t[6] = v);
|
|
23410
|
-
let y = v, E, O, A, M, I, z, U, K, q, J, Q,
|
|
23440
|
+
let y = v, E, O, A, M, I, z, U, K, q, J, Q, VM, $;
|
|
23411
23441
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23412
23442
|
let e2 = async (t2) => {
|
|
23413
23443
|
let n2 = await y(t2, () => {
|
|
@@ -23457,7 +23487,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23457
23487
|
}), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
23458
23488
|
className: "text-xs text-muted-foreground",
|
|
23459
23489
|
children: "Download"
|
|
23460
|
-
}), t[29] = Q) : Q = t[29],
|
|
23490
|
+
}), t[29] = Q) : Q = t[29], VM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23461
23491
|
onSelect: () => {
|
|
23462
23492
|
e2(t2.format);
|
|
23463
23493
|
},
|
|
@@ -23510,30 +23540,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23510
23540
|
]
|
|
23511
23541
|
})
|
|
23512
23542
|
]
|
|
23513
|
-
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] =
|
|
23514
|
-
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21],
|
|
23515
|
-
let
|
|
23516
|
-
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !==
|
|
23543
|
+
}, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = VM, t[23] = $;
|
|
23544
|
+
} else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], VM = t[22], $ = t[23];
|
|
23545
|
+
let HM;
|
|
23546
|
+
t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== VM || t[39] !== $ ? (HM = (0, import_jsx_runtime.jsxs)(E, {
|
|
23517
23547
|
side: q,
|
|
23518
23548
|
className: J,
|
|
23519
23549
|
children: [
|
|
23520
23550
|
Q,
|
|
23521
|
-
|
|
23551
|
+
VM,
|
|
23522
23552
|
$,
|
|
23523
23553
|
A,
|
|
23524
23554
|
M
|
|
23525
23555
|
]
|
|
23526
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23527
|
-
let
|
|
23528
|
-
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !==
|
|
23556
|
+
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = VM, t[39] = $, t[40] = HM) : HM = t[40];
|
|
23557
|
+
let UM;
|
|
23558
|
+
return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== HM ? (UM = (0, import_jsx_runtime.jsxs)(O, {
|
|
23529
23559
|
modal: I,
|
|
23530
23560
|
open: z,
|
|
23531
23561
|
onOpenChange: U,
|
|
23532
23562
|
children: [
|
|
23533
23563
|
K,
|
|
23534
|
-
|
|
23564
|
+
HM
|
|
23535
23565
|
]
|
|
23536
|
-
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] =
|
|
23566
|
+
}), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = HM, t[47] = UM) : UM = t[47], UM;
|
|
23537
23567
|
};
|
|
23538
23568
|
function fetchJson(e) {
|
|
23539
23569
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23624,22 +23654,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23624
23654
|
]
|
|
23625
23655
|
}) : null;
|
|
23626
23656
|
};
|
|
23627
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery:
|
|
23628
|
-
let [
|
|
23657
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: VM, onSearchQueryChange: $, showFilters: HM = false, filters: UM, onFiltersChange: WM, calculateTopKRows: GM, reloading: KM, freezeColumnsLeft: qM, freezeColumnsRight: JM, toggleDisplayHeader: YM, showChartBuilder: XM, isChartBuilderOpen: ZM, showPageSizeSelector: QM, showTableExplorer: $M, togglePanel: eN, isPanelOpen: tN, isAnyPanelOpen: nN, viewedRowIdx: rN, onViewedRowChange: iN }) => {
|
|
23658
|
+
let [aN, oN] = import_react.useState(false), { locale: sN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: cN, setColumnPinning: lN } = useColumnPinning(qM, JM);
|
|
23629
23659
|
import_react.useEffect(() => {
|
|
23630
23660
|
let e2;
|
|
23631
|
-
return
|
|
23632
|
-
|
|
23633
|
-
}, 300) :
|
|
23661
|
+
return KM ? e2 = setTimeout(() => {
|
|
23662
|
+
oN(true);
|
|
23663
|
+
}, 300) : oN(false), () => {
|
|
23634
23664
|
e2 && clearTimeout(e2);
|
|
23635
23665
|
};
|
|
23636
23666
|
}, [
|
|
23637
|
-
|
|
23667
|
+
KM
|
|
23638
23668
|
]);
|
|
23639
|
-
function
|
|
23669
|
+
function uN(e2, t2) {
|
|
23640
23670
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23641
23671
|
}
|
|
23642
|
-
let
|
|
23672
|
+
let dN = useReactTable({
|
|
23643
23673
|
_features: [
|
|
23644
23674
|
ColumnPinning,
|
|
23645
23675
|
ColumnWrappingFeature,
|
|
@@ -23663,11 +23693,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23663
23693
|
getRowId: (e2, t2) => {
|
|
23664
23694
|
let n2 = getStableRowId(e2);
|
|
23665
23695
|
if (n2) return n2;
|
|
23666
|
-
let i2 =
|
|
23696
|
+
let i2 = uN(e2, t2);
|
|
23667
23697
|
return String(i2);
|
|
23668
23698
|
}
|
|
23669
23699
|
} : {},
|
|
23670
|
-
locale:
|
|
23700
|
+
locale: sN,
|
|
23671
23701
|
manualPagination: z,
|
|
23672
23702
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23673
23703
|
...v ? {
|
|
@@ -23677,21 +23707,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23677
23707
|
enableMultiSort: true,
|
|
23678
23708
|
getSortedRowModel: getSortedRowModel(),
|
|
23679
23709
|
manualFiltering: true,
|
|
23680
|
-
enableColumnFilters:
|
|
23710
|
+
enableColumnFilters: HM,
|
|
23681
23711
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23682
|
-
onColumnFiltersChange:
|
|
23712
|
+
onColumnFiltersChange: WM,
|
|
23683
23713
|
onRowSelectionChange: K,
|
|
23684
23714
|
onCellSelectionChange: q,
|
|
23685
23715
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23686
23716
|
enableMultiCellSelection: c === "multi-cell",
|
|
23687
|
-
onColumnPinningChange:
|
|
23717
|
+
onColumnPinningChange: lN,
|
|
23688
23718
|
enableFocusRow: true,
|
|
23689
|
-
onFocusRowChange:
|
|
23719
|
+
onFocusRowChange: iN,
|
|
23690
23720
|
state: {
|
|
23691
23721
|
..._ ? {
|
|
23692
23722
|
sorting: _
|
|
23693
23723
|
} : {},
|
|
23694
|
-
columnFilters:
|
|
23724
|
+
columnFilters: UM,
|
|
23695
23725
|
...A ? {
|
|
23696
23726
|
pagination: A
|
|
23697
23727
|
} : U && !A ? {} : {
|
|
@@ -23703,21 +23733,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23703
23733
|
rowSelection: y ?? {},
|
|
23704
23734
|
cellSelection: S ?? [],
|
|
23705
23735
|
cellStyling: w,
|
|
23706
|
-
columnPinning:
|
|
23736
|
+
columnPinning: cN,
|
|
23707
23737
|
cellHoverTemplate: E,
|
|
23708
23738
|
cellHoverTexts: O ?? {}
|
|
23709
23739
|
}
|
|
23710
|
-
}),
|
|
23740
|
+
}), fN = (tN == null ? void 0 : tN(PANEL_TYPES.ROW_VIEWER)) ?? false, pN = !U && o.length > 100, mN = useScrollContainerHeight({
|
|
23711
23741
|
maxHeight: n,
|
|
23712
|
-
virtualize:
|
|
23742
|
+
virtualize: pN
|
|
23713
23743
|
});
|
|
23714
23744
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23715
23745
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23716
23746
|
children: [
|
|
23717
23747
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23718
|
-
filters:
|
|
23719
|
-
table:
|
|
23720
|
-
calculateTopKRows:
|
|
23748
|
+
filters: UM,
|
|
23749
|
+
table: dN,
|
|
23750
|
+
calculateTopKRows: GM
|
|
23721
23751
|
}),
|
|
23722
23752
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23723
23753
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23726,32 +23756,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23726
23756
|
children: [
|
|
23727
23757
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23728
23758
|
enableSearch: Q,
|
|
23729
|
-
searchQuery:
|
|
23759
|
+
searchQuery: VM,
|
|
23730
23760
|
onSearchQueryChange: $,
|
|
23731
|
-
reloading:
|
|
23732
|
-
showChartBuilder:
|
|
23733
|
-
isChartBuilderOpen:
|
|
23734
|
-
toggleDisplayHeader:
|
|
23735
|
-
showTableExplorer:
|
|
23736
|
-
togglePanel:
|
|
23737
|
-
isAnyPanelOpen:
|
|
23761
|
+
reloading: KM,
|
|
23762
|
+
showChartBuilder: XM,
|
|
23763
|
+
isChartBuilderOpen: ZM,
|
|
23764
|
+
toggleDisplayHeader: YM,
|
|
23765
|
+
showTableExplorer: $M,
|
|
23766
|
+
togglePanel: eN,
|
|
23767
|
+
isAnyPanelOpen: nN,
|
|
23738
23768
|
downloadAs: I
|
|
23739
23769
|
}),
|
|
23740
23770
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23741
23771
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23742
|
-
ref:
|
|
23772
|
+
ref: mN,
|
|
23743
23773
|
children: [
|
|
23744
|
-
|
|
23774
|
+
aN && (0, import_jsx_runtime.jsx)("thead", {
|
|
23745
23775
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23746
23776
|
}),
|
|
23747
|
-
renderTableHeader(
|
|
23777
|
+
renderTableHeader(dN, pN || !!n),
|
|
23748
23778
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23749
|
-
table:
|
|
23779
|
+
table: dN,
|
|
23750
23780
|
columns: i,
|
|
23751
|
-
rowViewerPanelOpen:
|
|
23752
|
-
getRowIndex:
|
|
23753
|
-
viewedRowIdx:
|
|
23754
|
-
virtualize:
|
|
23781
|
+
rowViewerPanelOpen: fN,
|
|
23782
|
+
getRowIndex: uN,
|
|
23783
|
+
viewedRowIdx: rN,
|
|
23784
|
+
virtualize: pN
|
|
23755
23785
|
})
|
|
23756
23786
|
]
|
|
23757
23787
|
}),
|
|
@@ -23762,10 +23792,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23762
23792
|
pagination: U,
|
|
23763
23793
|
selection: c,
|
|
23764
23794
|
onRowSelectionChange: K,
|
|
23765
|
-
table:
|
|
23795
|
+
table: dN,
|
|
23766
23796
|
getRowIds: J,
|
|
23767
|
-
showPageSizeSelector:
|
|
23768
|
-
tableLoading:
|
|
23797
|
+
showPageSizeSelector: QM,
|
|
23798
|
+
tableLoading: KM
|
|
23769
23799
|
})
|
|
23770
23800
|
]
|
|
23771
23801
|
})
|
|
@@ -23855,67 +23885,67 @@ ${_}`,
|
|
|
23855
23885
|
});
|
|
23856
23886
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23857
23887
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
|
|
23858
|
-
let
|
|
23859
|
-
t[11] ===
|
|
23860
|
-
let
|
|
23861
|
-
t[13] ===
|
|
23862
|
-
className:
|
|
23863
|
-
}), t[13] =
|
|
23864
|
-
let
|
|
23865
|
-
t[15] ===
|
|
23888
|
+
let HM = d ? "rotate-180" : "rotate-0", UM;
|
|
23889
|
+
t[11] === HM ? UM = t[12] : (UM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", HM), t[11] = HM, t[12] = UM);
|
|
23890
|
+
let WM;
|
|
23891
|
+
t[13] === UM ? WM = t[14] : (WM = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
23892
|
+
className: UM
|
|
23893
|
+
}), t[13] = UM, t[14] = WM);
|
|
23894
|
+
let GM = q || "Error", KM;
|
|
23895
|
+
t[15] === GM ? KM = t[16] : (KM = (0, import_jsx_runtime.jsxs)("span", {
|
|
23866
23896
|
className: "text-destructive",
|
|
23867
23897
|
children: [
|
|
23868
|
-
|
|
23898
|
+
GM,
|
|
23869
23899
|
":"
|
|
23870
23900
|
]
|
|
23871
|
-
}), t[15] =
|
|
23872
|
-
let
|
|
23873
|
-
t[17] !== J || t[18] !==
|
|
23901
|
+
}), t[15] = GM, t[16] = KM);
|
|
23902
|
+
let qM;
|
|
23903
|
+
t[17] !== J || t[18] !== KM ? (qM = (0, import_jsx_runtime.jsxs)("div", {
|
|
23874
23904
|
className: "text-sm inline font-mono",
|
|
23875
23905
|
children: [
|
|
23876
|
-
|
|
23906
|
+
KM,
|
|
23877
23907
|
" ",
|
|
23878
23908
|
J
|
|
23879
23909
|
]
|
|
23880
|
-
}), t[17] = J, t[18] =
|
|
23881
|
-
let
|
|
23882
|
-
t[20] !==
|
|
23910
|
+
}), t[17] = J, t[18] = KM, t[19] = qM) : qM = t[19];
|
|
23911
|
+
let YM;
|
|
23912
|
+
t[20] !== qM || t[21] !== WM ? (YM = (0, import_jsx_runtime.jsxs)("div", {
|
|
23883
23913
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23884
23914
|
onClick: $,
|
|
23885
23915
|
children: [
|
|
23886
|
-
|
|
23887
|
-
|
|
23916
|
+
WM,
|
|
23917
|
+
qM
|
|
23888
23918
|
]
|
|
23889
|
-
}), t[20] =
|
|
23890
|
-
let
|
|
23891
|
-
t[23] === c ?
|
|
23919
|
+
}), t[20] = qM, t[21] = WM, t[22] = YM) : YM = t[22];
|
|
23920
|
+
let XM;
|
|
23921
|
+
t[23] === c ? XM = t[24] : (XM = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
23892
23922
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23893
23923
|
children: c
|
|
23894
|
-
}), t[23] = c, t[24] =
|
|
23895
|
-
let
|
|
23896
|
-
t[25] !==
|
|
23924
|
+
}), t[23] = c, t[24] = XM);
|
|
23925
|
+
let QM;
|
|
23926
|
+
t[25] !== YM || t[26] !== XM ? (QM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
23897
23927
|
value: KEY,
|
|
23898
23928
|
className: "border-none",
|
|
23899
23929
|
children: [
|
|
23900
|
-
|
|
23901
|
-
|
|
23930
|
+
YM,
|
|
23931
|
+
XM
|
|
23902
23932
|
]
|
|
23903
|
-
}), t[25] =
|
|
23904
|
-
let
|
|
23905
|
-
t[28] !==
|
|
23933
|
+
}), t[25] = YM, t[26] = XM, t[27] = QM) : QM = t[27];
|
|
23934
|
+
let $M;
|
|
23935
|
+
t[28] !== QM || t[29] !== Q ? ($M = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
23906
23936
|
type: "single",
|
|
23907
23937
|
collapsible: true,
|
|
23908
23938
|
value: Q,
|
|
23909
|
-
children:
|
|
23910
|
-
}), t[28] =
|
|
23911
|
-
let
|
|
23912
|
-
t[31] !== K || t[32] !== I ? (
|
|
23939
|
+
children: QM
|
|
23940
|
+
}), t[28] = QM, t[29] = Q, t[30] = $M) : $M = t[30];
|
|
23941
|
+
let eN;
|
|
23942
|
+
t[31] !== K || t[32] !== I ? (eN = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
23913
23943
|
tooltip: "Fix with AI",
|
|
23914
23944
|
openPrompt: () => K(false),
|
|
23915
23945
|
applyAutofix: () => K(true)
|
|
23916
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
23917
|
-
let
|
|
23918
|
-
t[34] !== A || t[35] !== E ? (
|
|
23946
|
+
}), t[31] = K, t[32] = I, t[33] = eN) : eN = t[33];
|
|
23947
|
+
let nN;
|
|
23948
|
+
t[34] !== A || t[35] !== E ? (nN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
23919
23949
|
content: "Attach pdb to the exception point.",
|
|
23920
23950
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
23921
23951
|
size: "xs",
|
|
@@ -23932,9 +23962,9 @@ ${_}`,
|
|
|
23932
23962
|
"Launch debugger"
|
|
23933
23963
|
]
|
|
23934
23964
|
})
|
|
23935
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
23936
|
-
let
|
|
23937
|
-
t[37] !== _ || t[38] !== i ? (
|
|
23965
|
+
}), t[34] = A, t[35] = E, t[36] = nN) : nN = t[36];
|
|
23966
|
+
let rN;
|
|
23967
|
+
t[37] !== _ || t[38] !== i ? (rN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
23938
23968
|
children: [
|
|
23939
23969
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
23940
23970
|
asChild: true,
|
|
@@ -24002,24 +24032,24 @@ ${_}`,
|
|
|
24002
24032
|
]
|
|
24003
24033
|
})
|
|
24004
24034
|
]
|
|
24005
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24006
|
-
let
|
|
24007
|
-
t[40] !==
|
|
24035
|
+
}), t[37] = _, t[38] = i, t[39] = rN) : rN = t[39];
|
|
24036
|
+
let iN;
|
|
24037
|
+
t[40] !== eN || t[41] !== nN || t[42] !== rN ? (iN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24008
24038
|
className: "flex gap-2",
|
|
24009
24039
|
children: [
|
|
24010
|
-
|
|
24011
|
-
|
|
24012
|
-
|
|
24040
|
+
eN,
|
|
24041
|
+
nN,
|
|
24042
|
+
rN
|
|
24013
24043
|
]
|
|
24014
|
-
}), t[40] =
|
|
24015
|
-
let
|
|
24016
|
-
return t[44] !==
|
|
24044
|
+
}), t[40] = eN, t[41] = nN, t[42] = rN, t[43] = iN) : iN = t[43];
|
|
24045
|
+
let aN;
|
|
24046
|
+
return t[44] !== $M || t[45] !== iN ? (aN = (0, import_jsx_runtime.jsxs)("div", {
|
|
24017
24047
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24018
24048
|
children: [
|
|
24019
|
-
|
|
24020
|
-
|
|
24049
|
+
$M,
|
|
24050
|
+
iN
|
|
24021
24051
|
]
|
|
24022
|
-
}), t[44] =
|
|
24052
|
+
}), t[44] = $M, t[45] = iN, t[46] = aN) : aN = t[46], aN;
|
|
24023
24053
|
};
|
|
24024
24054
|
function lastLine(e) {
|
|
24025
24055
|
var _a2, _b;
|