@marimo-team/islands 0.23.4-dev9 → 0.23.4
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-nGhJ8lOe.js → reveal-component-DK-5_Ei4.js} +1 -1
- package/dist/{slide-form-kI-kSHC_.js → slide-form-CYU9AOO4.js} +1183 -1249
- package/dist/{vega-component-CjMUUeEZ.js → vega-component-BnCQmtxw.js} +1 -1
- package/package.json +2 -2
- package/src/components/data-table/__tests__/column-header.test.ts +63 -0
- package/src/components/data-table/__tests__/columns.test.tsx +40 -10
- package/src/components/data-table/column-header.tsx +77 -163
- package/src/components/data-table/columns.tsx +12 -1
- package/src/components/data-table/filter-by-values-picker.tsx +7 -4
- 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
|
@@ -34,7 +34,7 @@ import { n as formats } from "./vega-loader.browser-3_z8GoFC.js";
|
|
|
34
34
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BvW0-YWZ.js";
|
|
35
35
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DbdLoEDm.js";
|
|
36
36
|
import { t as useAsyncData } from "./useAsyncData-CKYzhCis.js";
|
|
37
|
-
let
|
|
37
|
+
let INDEX_COLUMN_NAME, slotsController, Expand, NAMELESS_COLUMN_PREFIX, ContextAwarePanelItem, EmotionCacheProvider, contextAwarePanelType, GripHorizontal, contextAwarePanelOwner, TextWrap, TableBody, ChevronsLeft, ColumnChartSpecModel, inferFieldTypes, TableCell, ChevronsDownUp, usePrevious, DelayMount, TableHead, ChevronLeft, Fill, Download, Provider$1, ChevronsUpDown, isCellAwareAtom, Funnel, Table, ChevronsRight, loadTableData, TableHeader, ArrowDownWideNarrow, ComboboxItem, HtmlOutput, contextAwarePanelOpen, isStaticNotebook, renderCellValue, generateColumns, ColumnChartContext, getPageIndexForRow, filtersToFilterGroup, loadTableAndRawData, Filenames, ChartLoadingState, Slide, CommandEmpty, useInternalStateWithSync, RenderTextWithLinks, JsonOutput, CommandList, DataTable, Tabs, SELECT_COLUMN_ID, InstallPackageButton, TabsContent, downloadHTMLAsImage, ChartInfoState, downloadByURL, ChartErrorState, SlideSidebar, Command, Toggle, Ellipsis, SlotNames, EyeOff, OutputArea, CommandSeparator, downloadBlob, TabsTrigger, DEFAULT_SLIDE_TYPE, toFieldTypes, RadioGroup, CommandInput, ADD_PRINTING_CLASS, TabsList, useIntersectionObserver, SLIDE_TYPE_OPTIONS_BY_VALUE, getMimeValues, RadioGroupItem, CommandItem, DEFAULT_DECK_TRANSITION, TOO_MANY_ROWS, OutputRenderer, Maps, prettifyRowColumnCount, LazyVegaEmbed, PANEL_TYPES, getStaticVirtualFiles, Combobox, Kbd, prettifyRowCount, useOverflowDetection, TableRow;
|
|
38
38
|
let __tla = Promise.all([
|
|
39
39
|
(() => {
|
|
40
40
|
try {
|
|
@@ -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();
|
|
@@ -12521,6 +12521,104 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12521
12521
|
return n;
|
|
12522
12522
|
}
|
|
12523
12523
|
};
|
|
12524
|
+
var import_compiler_runtime$31 = require_compiler_runtime();
|
|
12525
|
+
const DraggablePopover = (e) => {
|
|
12526
|
+
let t = (0, import_compiler_runtime$31.c)(25), n, i, a;
|
|
12527
|
+
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ children: n, className: i, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
12528
|
+
let o;
|
|
12529
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
12530
|
+
x: 0,
|
|
12531
|
+
y: 0
|
|
12532
|
+
}, t[4] = o) : o = t[4];
|
|
12533
|
+
let [s, c] = (0, import_react.useState)(o), d;
|
|
12534
|
+
t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
12535
|
+
x: 0,
|
|
12536
|
+
y: 0
|
|
12537
|
+
}, t[5] = d) : d = t[5];
|
|
12538
|
+
let f = (0, import_react.useRef)(d), [h, _] = (0, import_react.useState)(false), v;
|
|
12539
|
+
if (t[6] !== s.x || t[7] !== s.y) {
|
|
12540
|
+
v = (t2) => {
|
|
12541
|
+
f.current = {
|
|
12542
|
+
x: t2.clientX - s.x,
|
|
12543
|
+
y: t2.clientY - s.y
|
|
12544
|
+
}, _(true), document.addEventListener("mousemove", e2), document.addEventListener("mouseup", n2);
|
|
12545
|
+
};
|
|
12546
|
+
let e2 = (e3) => {
|
|
12547
|
+
c({
|
|
12548
|
+
x: e3.clientX - f.current.x,
|
|
12549
|
+
y: e3.clientY - f.current.y
|
|
12550
|
+
});
|
|
12551
|
+
}, n2 = () => {
|
|
12552
|
+
_(false), document.removeEventListener("mousemove", e2), document.removeEventListener("mouseup", n2);
|
|
12553
|
+
};
|
|
12554
|
+
t[6] = s.x, t[7] = s.y, t[8] = v;
|
|
12555
|
+
} else v = t[8];
|
|
12556
|
+
let y;
|
|
12557
|
+
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(PopoverTrigger, {}), t[9] = y) : y = t[9];
|
|
12558
|
+
let S;
|
|
12559
|
+
t[10] !== s.x || t[11] !== s.y ? (S = {
|
|
12560
|
+
position: "fixed",
|
|
12561
|
+
left: s.x,
|
|
12562
|
+
top: s.y
|
|
12563
|
+
}, t[10] = s.x, t[11] = s.y, t[12] = S) : S = t[12];
|
|
12564
|
+
let w = `flex items-center justify-center absolute top-0 left-1/2 -translate-x-1/2 ${h ? "cursor-grabbing" : "cursor-grab"}`, E;
|
|
12565
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
12566
|
+
className: "h-5 w-5 mt-1 text-muted-foreground/40"
|
|
12567
|
+
}), t[13] = E) : E = t[13];
|
|
12568
|
+
let O;
|
|
12569
|
+
t[14] !== v || t[15] !== w ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
12570
|
+
onMouseDown: v,
|
|
12571
|
+
className: w,
|
|
12572
|
+
children: E
|
|
12573
|
+
}), t[14] = v, t[15] = w, t[16] = O) : O = t[16];
|
|
12574
|
+
let A;
|
|
12575
|
+
t[17] !== n || t[18] !== i || t[19] !== S || t[20] !== O ? (A = (0, import_jsx_runtime.jsxs)(PopoverContent, {
|
|
12576
|
+
className: i,
|
|
12577
|
+
style: S,
|
|
12578
|
+
children: [
|
|
12579
|
+
O,
|
|
12580
|
+
n
|
|
12581
|
+
]
|
|
12582
|
+
}), t[17] = n, t[18] = i, t[19] = S, t[20] = O, t[21] = A) : A = t[21];
|
|
12583
|
+
let M;
|
|
12584
|
+
return t[22] !== a || t[23] !== A ? (M = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
12585
|
+
...a,
|
|
12586
|
+
children: [
|
|
12587
|
+
y,
|
|
12588
|
+
A
|
|
12589
|
+
]
|
|
12590
|
+
}), t[22] = a, t[23] = A, t[24] = M) : M = t[24], M;
|
|
12591
|
+
}, Sets = {
|
|
12592
|
+
merge(...e) {
|
|
12593
|
+
let t = /* @__PURE__ */ new Set();
|
|
12594
|
+
for (let n of e) for (let e2 of n) t.add(e2);
|
|
12595
|
+
return t;
|
|
12596
|
+
},
|
|
12597
|
+
equals(e, t) {
|
|
12598
|
+
if (e.size !== t.size) return false;
|
|
12599
|
+
for (let n of e) if (!t.has(n)) return false;
|
|
12600
|
+
return true;
|
|
12601
|
+
},
|
|
12602
|
+
toggle(e, t) {
|
|
12603
|
+
let n = new Set(e);
|
|
12604
|
+
return n.has(t) ? n.delete(t) : n.add(t), n;
|
|
12605
|
+
}
|
|
12606
|
+
};
|
|
12607
|
+
function words(e) {
|
|
12608
|
+
return e.toLowerCase().match(/[\da-z]+/g) || [];
|
|
12609
|
+
}
|
|
12610
|
+
function smartMatch(e, t) {
|
|
12611
|
+
let n = words(e);
|
|
12612
|
+
if (n.length === 0) return true;
|
|
12613
|
+
let i = Array.isArray(t) ? t : [
|
|
12614
|
+
t
|
|
12615
|
+
], a = [];
|
|
12616
|
+
for (let e2 of i) e2 && a.push(...words(e2));
|
|
12617
|
+
return n.every((e2) => a.some((t2) => t2.startsWith(e2)));
|
|
12618
|
+
}
|
|
12619
|
+
function smartMatchFilter(e, t, n) {
|
|
12620
|
+
return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
|
|
12621
|
+
}
|
|
12524
12622
|
var U$1 = 1, Y$1 = 0.9, H = 0.8, J$1 = 0.17, p = 0.1, u = 0.999, $$1 = 0.9999, k$1 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$2 = /[\s-]/, X$1 = /[\s-]/g;
|
|
12525
12623
|
function G(e, t, n, i, a, o, s) {
|
|
12526
12624
|
if (o === t.length) return a === e.length ? U$1 : k$1;
|
|
@@ -12655,7 +12753,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12655
12753
|
}, [
|
|
12656
12754
|
h
|
|
12657
12755
|
]), k(() => {
|
|
12658
|
-
U(6,
|
|
12756
|
+
U(6, HM);
|
|
12659
12757
|
}, []);
|
|
12660
12758
|
let K = import_react.useMemo(() => ({
|
|
12661
12759
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -12664,7 +12762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12664
12762
|
var _a2;
|
|
12665
12763
|
var a2, o2, s2;
|
|
12666
12764
|
if (!Object.is(n.current[e2], t2)) {
|
|
12667
|
-
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1,
|
|
12765
|
+
if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, VM);
|
|
12668
12766
|
else if (e2 === "value") {
|
|
12669
12767
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
12670
12768
|
let e3 = document.getElementById(I);
|
|
@@ -12672,8 +12770,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12672
12770
|
}
|
|
12673
12771
|
if (U(7, () => {
|
|
12674
12772
|
var _a3;
|
|
12675
|
-
n.current.selectedItemId = (_a3 =
|
|
12676
|
-
}), 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) {
|
|
12677
12775
|
let e3 = t2 ?? "";
|
|
12678
12776
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
12679
12777
|
return;
|
|
@@ -12698,12 +12796,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12698
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([
|
|
12699
12797
|
e2
|
|
12700
12798
|
]))), U(3, () => {
|
|
12701
|
-
$(), Q(), n.current.value ||
|
|
12799
|
+
$(), Q(), n.current.value || VM(), K.emit();
|
|
12702
12800
|
}), () => {
|
|
12703
12801
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
12704
|
-
let t3 =
|
|
12802
|
+
let t3 = UM();
|
|
12705
12803
|
U(4, () => {
|
|
12706
|
-
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 &&
|
|
12804
|
+
$(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && VM(), K.emit();
|
|
12707
12805
|
});
|
|
12708
12806
|
}),
|
|
12709
12807
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -12736,7 +12834,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12736
12834
|
]);
|
|
12737
12835
|
});
|
|
12738
12836
|
let i2 = z.current;
|
|
12739
|
-
|
|
12837
|
+
WM().sort((t3, n2) => {
|
|
12740
12838
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
12741
12839
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
12742
12840
|
}).forEach((e3) => {
|
|
@@ -12748,9 +12846,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12748
12846
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
12749
12847
|
});
|
|
12750
12848
|
}
|
|
12751
|
-
function
|
|
12849
|
+
function VM() {
|
|
12752
12850
|
var _a2;
|
|
12753
|
-
let e2 = (_a2 =
|
|
12851
|
+
let e2 = (_a2 = WM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
12754
12852
|
K.setState("value", e2 || void 0);
|
|
12755
12853
|
}
|
|
12756
12854
|
function $() {
|
|
@@ -12771,43 +12869,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12771
12869
|
}
|
|
12772
12870
|
n.current.filtered.count = e2;
|
|
12773
12871
|
}
|
|
12774
|
-
function
|
|
12872
|
+
function HM() {
|
|
12775
12873
|
var _a2, _b;
|
|
12776
12874
|
var e2;
|
|
12777
|
-
let t2 =
|
|
12875
|
+
let t2 = UM();
|
|
12778
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({
|
|
12779
12877
|
block: "nearest"
|
|
12780
12878
|
})), t2.scrollIntoView({
|
|
12781
12879
|
block: "nearest"
|
|
12782
12880
|
}));
|
|
12783
12881
|
}
|
|
12784
|
-
function
|
|
12882
|
+
function UM() {
|
|
12785
12883
|
var _a2;
|
|
12786
12884
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
12787
12885
|
}
|
|
12788
|
-
function
|
|
12886
|
+
function WM() {
|
|
12789
12887
|
var _a2;
|
|
12790
12888
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
12791
12889
|
}
|
|
12792
|
-
function
|
|
12793
|
-
let t2 =
|
|
12890
|
+
function GM(e2) {
|
|
12891
|
+
let t2 = WM()[e2];
|
|
12794
12892
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
12795
12893
|
}
|
|
12796
|
-
function
|
|
12894
|
+
function KM(e2) {
|
|
12797
12895
|
var t2;
|
|
12798
|
-
let n2 =
|
|
12896
|
+
let n2 = UM(), i2 = WM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
12799
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));
|
|
12800
12898
|
}
|
|
12801
|
-
function
|
|
12899
|
+
function qM(e2) {
|
|
12802
12900
|
var _a2;
|
|
12803
|
-
let t2 = (_a2 =
|
|
12901
|
+
let t2 = (_a2 = UM()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
12804
12902
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
12805
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
12903
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : KM(e2);
|
|
12806
12904
|
}
|
|
12807
|
-
let
|
|
12808
|
-
e2.preventDefault(), e2.metaKey ?
|
|
12809
|
-
},
|
|
12810
|
-
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);
|
|
12811
12909
|
};
|
|
12812
12910
|
return import_react.createElement(Primitive.div, {
|
|
12813
12911
|
ref: t,
|
|
@@ -12821,27 +12919,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
12821
12919
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
12822
12920
|
case "n":
|
|
12823
12921
|
case "j":
|
|
12824
|
-
E && e2.ctrlKey &&
|
|
12922
|
+
E && e2.ctrlKey && YM(e2);
|
|
12825
12923
|
break;
|
|
12826
12924
|
case "ArrowDown":
|
|
12827
|
-
|
|
12925
|
+
YM(e2);
|
|
12828
12926
|
break;
|
|
12829
12927
|
case "p":
|
|
12830
12928
|
case "k":
|
|
12831
|
-
E && e2.ctrlKey &&
|
|
12929
|
+
E && e2.ctrlKey && XM(e2);
|
|
12832
12930
|
break;
|
|
12833
12931
|
case "ArrowUp":
|
|
12834
|
-
|
|
12932
|
+
XM(e2);
|
|
12835
12933
|
break;
|
|
12836
12934
|
case "Home":
|
|
12837
|
-
e2.preventDefault(),
|
|
12935
|
+
e2.preventDefault(), GM(0);
|
|
12838
12936
|
break;
|
|
12839
12937
|
case "End":
|
|
12840
|
-
e2.preventDefault(),
|
|
12938
|
+
e2.preventDefault(), JM();
|
|
12841
12939
|
break;
|
|
12842
12940
|
case "Enter": {
|
|
12843
12941
|
e2.preventDefault();
|
|
12844
|
-
let t3 =
|
|
12942
|
+
let t3 = UM();
|
|
12845
12943
|
if (t3) {
|
|
12846
12944
|
let e3 = new Event(Z);
|
|
12847
12945
|
t3.dispatchEvent(e3);
|
|
@@ -13103,7 +13201,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13103
13201
|
ref: t.ref
|
|
13104
13202
|
}, n(t.props.children)) : n(t);
|
|
13105
13203
|
}
|
|
13106
|
-
|
|
13204
|
+
let Te, import_compiler_runtime$30;
|
|
13205
|
+
Te = {
|
|
13107
13206
|
position: "absolute",
|
|
13108
13207
|
width: "1px",
|
|
13109
13208
|
height: "1px",
|
|
@@ -13114,25 +13213,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13114
13213
|
whiteSpace: "nowrap",
|
|
13115
13214
|
borderWidth: "0"
|
|
13116
13215
|
};
|
|
13117
|
-
|
|
13118
|
-
return e.toLowerCase().match(/[\da-z]+/g) || [];
|
|
13119
|
-
}
|
|
13120
|
-
function smartMatch(e, t) {
|
|
13121
|
-
let n = words(e);
|
|
13122
|
-
if (n.length === 0) return true;
|
|
13123
|
-
let i = Array.isArray(t) ? t : [
|
|
13124
|
-
t
|
|
13125
|
-
], a = [];
|
|
13126
|
-
for (let e2 of i) e2 && a.push(...words(e2));
|
|
13127
|
-
return n.every((e2) => a.some((t2) => t2.startsWith(e2)));
|
|
13128
|
-
}
|
|
13129
|
-
function smartMatchFilter(e, t, n) {
|
|
13130
|
-
return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
|
|
13131
|
-
}
|
|
13132
|
-
let import_compiler_runtime$31;
|
|
13133
|
-
import_compiler_runtime$31 = require_compiler_runtime();
|
|
13216
|
+
import_compiler_runtime$30 = require_compiler_runtime();
|
|
13134
13217
|
Command = import_react.forwardRef((e, t) => {
|
|
13135
|
-
let n = (0, import_compiler_runtime$
|
|
13218
|
+
let n = (0, import_compiler_runtime$30.c)(9), i, o;
|
|
13136
13219
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13137
13220
|
let s;
|
|
13138
13221
|
n[3] === i ? s = n[4] : (s = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -13146,7 +13229,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13146
13229
|
});
|
|
13147
13230
|
Command.displayName = _e.displayName;
|
|
13148
13231
|
CommandInput = import_react.forwardRef((e, t) => {
|
|
13149
|
-
let n = (0, import_compiler_runtime$
|
|
13232
|
+
let n = (0, import_compiler_runtime$30.c)(19), i, o, s, c;
|
|
13150
13233
|
n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, icon: o, rootClassName: c, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
|
|
13151
13234
|
let d;
|
|
13152
13235
|
n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
|
|
@@ -13174,7 +13257,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13174
13257
|
});
|
|
13175
13258
|
CommandInput.displayName = _e.Input.displayName;
|
|
13176
13259
|
CommandList = import_react.forwardRef((e, t) => {
|
|
13177
|
-
let n = (0, import_compiler_runtime$
|
|
13260
|
+
let n = (0, import_compiler_runtime$30.c)(9), i, o;
|
|
13178
13261
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13179
13262
|
let s;
|
|
13180
13263
|
n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
|
|
@@ -13187,7 +13270,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13187
13270
|
});
|
|
13188
13271
|
CommandList.displayName = _e.List.displayName;
|
|
13189
13272
|
CommandEmpty = import_react.forwardRef((e, t) => {
|
|
13190
|
-
let n = (0, import_compiler_runtime$
|
|
13273
|
+
let n = (0, import_compiler_runtime$30.c)(3), i;
|
|
13191
13274
|
return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
|
|
13192
13275
|
ref: t,
|
|
13193
13276
|
className: "py-6 text-center text-sm",
|
|
@@ -13196,7 +13279,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13196
13279
|
});
|
|
13197
13280
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
13198
13281
|
var CommandGroup = import_react.forwardRef((e, t) => {
|
|
13199
|
-
let n = (0, import_compiler_runtime$
|
|
13282
|
+
let n = (0, import_compiler_runtime$30.c)(9), i, o;
|
|
13200
13283
|
n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
|
|
13201
13284
|
let s;
|
|
13202
13285
|
n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
|
|
@@ -13209,7 +13292,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13209
13292
|
});
|
|
13210
13293
|
CommandGroup.displayName = _e.Group.displayName;
|
|
13211
13294
|
CommandSeparator = import_react.forwardRef((e, t) => {
|
|
13212
|
-
let n = (0, import_compiler_runtime$
|
|
13295
|
+
let n = (0, import_compiler_runtime$30.c)(9), i, a;
|
|
13213
13296
|
n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
|
|
13214
13297
|
let o;
|
|
13215
13298
|
n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
|
|
@@ -13224,7 +13307,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13224
13307
|
});
|
|
13225
13308
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
13226
13309
|
CommandItem = import_react.forwardRef((e, t) => {
|
|
13227
|
-
let n = (0, import_compiler_runtime$
|
|
13310
|
+
let n = (0, import_compiler_runtime$30.c)(17), i, o, s, c, d;
|
|
13228
13311
|
if (n[0] !== t || n[1] !== e) {
|
|
13229
13312
|
let { className: f2, variant: h, inset: _, ...v } = e;
|
|
13230
13313
|
i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
|
|
@@ -13241,84 +13324,459 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13241
13324
|
}), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
|
|
13242
13325
|
});
|
|
13243
13326
|
CommandItem.displayName = _e.Item.displayName;
|
|
13244
|
-
var import_compiler_runtime$
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
let o;
|
|
13249
|
-
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
13250
|
-
x: 0,
|
|
13251
|
-
y: 0
|
|
13252
|
-
}, t[4] = o) : o = t[4];
|
|
13253
|
-
let [s, c] = (0, import_react.useState)(o), d;
|
|
13254
|
-
t[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
13255
|
-
x: 0,
|
|
13256
|
-
y: 0
|
|
13257
|
-
}, t[5] = d) : d = t[5];
|
|
13258
|
-
let f = (0, import_react.useRef)(d), [h, _] = (0, import_react.useState)(false), v;
|
|
13259
|
-
if (t[6] !== s.x || t[7] !== s.y) {
|
|
13260
|
-
v = (t2) => {
|
|
13261
|
-
f.current = {
|
|
13262
|
-
x: t2.clientX - s.x,
|
|
13263
|
-
y: t2.clientY - s.y
|
|
13264
|
-
}, _(true), document.addEventListener("mousemove", e2), document.addEventListener("mouseup", n2);
|
|
13265
|
-
};
|
|
13266
|
-
let e2 = (e3) => {
|
|
13267
|
-
c({
|
|
13268
|
-
x: e3.clientX - f.current.x,
|
|
13269
|
-
y: e3.clientY - f.current.y
|
|
13270
|
-
});
|
|
13271
|
-
}, n2 = () => {
|
|
13272
|
-
_(false), document.removeEventListener("mousemove", e2), document.removeEventListener("mouseup", n2);
|
|
13273
|
-
};
|
|
13274
|
-
t[6] = s.x, t[7] = s.y, t[8] = v;
|
|
13275
|
-
} else v = t[8];
|
|
13276
|
-
let y;
|
|
13277
|
-
t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(PopoverTrigger, {}), t[9] = y) : y = t[9];
|
|
13278
|
-
let S;
|
|
13279
|
-
t[10] !== s.x || t[11] !== s.y ? (S = {
|
|
13280
|
-
position: "fixed",
|
|
13281
|
-
left: s.x,
|
|
13282
|
-
top: s.y
|
|
13283
|
-
}, t[10] = s.x, t[11] = s.y, t[12] = S) : S = t[12];
|
|
13284
|
-
let w = `flex items-center justify-center absolute top-0 left-1/2 -translate-x-1/2 ${h ? "cursor-grabbing" : "cursor-grab"}`, E;
|
|
13285
|
-
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
13286
|
-
className: "h-5 w-5 mt-1 text-muted-foreground/40"
|
|
13287
|
-
}), t[13] = E) : E = t[13];
|
|
13288
|
-
let O;
|
|
13289
|
-
t[14] !== v || t[15] !== w ? (O = (0, import_jsx_runtime.jsx)("div", {
|
|
13290
|
-
onMouseDown: v,
|
|
13291
|
-
className: w,
|
|
13292
|
-
children: E
|
|
13293
|
-
}), t[14] = v, t[15] = w, t[16] = O) : O = t[16];
|
|
13294
|
-
let A;
|
|
13295
|
-
t[17] !== n || t[18] !== i || t[19] !== S || t[20] !== O ? (A = (0, import_jsx_runtime.jsxs)(PopoverContent, {
|
|
13296
|
-
className: i,
|
|
13297
|
-
style: S,
|
|
13298
|
-
children: [
|
|
13299
|
-
O,
|
|
13300
|
-
n
|
|
13301
|
-
]
|
|
13302
|
-
}), t[17] = n, t[18] = i, t[19] = S, t[20] = O, t[21] = A) : A = t[21];
|
|
13303
|
-
let M;
|
|
13304
|
-
return t[22] !== a || t[23] !== A ? (M = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
13305
|
-
...a,
|
|
13306
|
-
children: [
|
|
13307
|
-
y,
|
|
13308
|
-
A
|
|
13309
|
-
]
|
|
13310
|
-
}), t[22] = a, t[23] = A, t[24] = M) : M = t[24], M;
|
|
13311
|
-
}, Filter = {
|
|
13312
|
-
number(e) {
|
|
13313
|
-
return {
|
|
13314
|
-
type: "number",
|
|
13315
|
-
...e
|
|
13316
|
-
};
|
|
13327
|
+
var import_compiler_runtime$29 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
13328
|
+
" ": {
|
|
13329
|
+
marker: "\u2423",
|
|
13330
|
+
name: "space"
|
|
13317
13331
|
},
|
|
13318
|
-
|
|
13319
|
-
|
|
13320
|
-
|
|
13321
|
-
|
|
13332
|
+
" ": {
|
|
13333
|
+
marker: "\\t",
|
|
13334
|
+
name: "tab"
|
|
13335
|
+
},
|
|
13336
|
+
"\n": {
|
|
13337
|
+
marker: "\\n",
|
|
13338
|
+
name: "newline"
|
|
13339
|
+
},
|
|
13340
|
+
"\r": {
|
|
13341
|
+
marker: "\\r",
|
|
13342
|
+
name: "carriage return"
|
|
13343
|
+
}
|
|
13344
|
+
};
|
|
13345
|
+
function renderWhitespaceMarkers(e) {
|
|
13346
|
+
return [
|
|
13347
|
+
...e
|
|
13348
|
+
].map((e2, t) => {
|
|
13349
|
+
let n = WHITESPACE_CHARS[e2];
|
|
13350
|
+
return (0, import_jsx_runtime.jsx)("span", {
|
|
13351
|
+
className: "mr-0.5 last:mr-0",
|
|
13352
|
+
children: n ? n.marker : `\\u${(e2.codePointAt(0) ?? 0).toString(16).padStart(4, "0")}`
|
|
13353
|
+
}, t);
|
|
13354
|
+
});
|
|
13355
|
+
}
|
|
13356
|
+
function describeWhitespace(e) {
|
|
13357
|
+
var _a2;
|
|
13358
|
+
let t = {};
|
|
13359
|
+
for (let n of e) {
|
|
13360
|
+
let e2 = ((_a2 = WHITESPACE_CHARS[n]) == null ? void 0 : _a2.name) ?? "unicode whitespace";
|
|
13361
|
+
t[e2] = (t[e2] ?? 0) + 1;
|
|
13362
|
+
}
|
|
13363
|
+
return Object.entries(t).map(([e2, t2]) => `${t2} ${e2}${t2 > 1 ? "s" : ""}`).join(", ");
|
|
13364
|
+
}
|
|
13365
|
+
var SENTINEL_CONFIG = {
|
|
13366
|
+
null: {
|
|
13367
|
+
label: () => "None",
|
|
13368
|
+
tooltip: () => "None",
|
|
13369
|
+
ariaLabel: () => "None"
|
|
13370
|
+
},
|
|
13371
|
+
"empty-string": {
|
|
13372
|
+
label: () => "<empty>",
|
|
13373
|
+
tooltip: () => "<empty>",
|
|
13374
|
+
ariaLabel: () => "empty string"
|
|
13375
|
+
},
|
|
13376
|
+
whitespace: {
|
|
13377
|
+
label: (e) => renderWhitespaceMarkers(String(e)),
|
|
13378
|
+
tooltip: (e) => describeWhitespace(String(e)),
|
|
13379
|
+
ariaLabel: (e) => describeWhitespace(String(e))
|
|
13380
|
+
},
|
|
13381
|
+
nan: {
|
|
13382
|
+
label: () => "NaN",
|
|
13383
|
+
tooltip: () => "NaN",
|
|
13384
|
+
ariaLabel: () => "NaN"
|
|
13385
|
+
},
|
|
13386
|
+
"positive-infinity": {
|
|
13387
|
+
label: () => "inf",
|
|
13388
|
+
tooltip: () => "Infinity",
|
|
13389
|
+
ariaLabel: () => "infinity"
|
|
13390
|
+
},
|
|
13391
|
+
"negative-infinity": {
|
|
13392
|
+
label: () => "-inf",
|
|
13393
|
+
tooltip: () => "-Infinity",
|
|
13394
|
+
ariaLabel: () => "negative infinity"
|
|
13395
|
+
},
|
|
13396
|
+
nat: {
|
|
13397
|
+
label: () => "NaT",
|
|
13398
|
+
tooltip: () => "NaT (Not a Time)",
|
|
13399
|
+
ariaLabel: () => "Not a Time"
|
|
13400
|
+
}
|
|
13401
|
+
};
|
|
13402
|
+
function WhitespaceMarkers(e) {
|
|
13403
|
+
let t = (0, import_compiler_runtime$29.c)(7), { value: n } = e;
|
|
13404
|
+
if (!n) return null;
|
|
13405
|
+
let i;
|
|
13406
|
+
t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
|
|
13407
|
+
let a = i, o;
|
|
13408
|
+
t[2] === n ? o = t[3] : (o = renderWhitespaceMarkers(n), t[2] = n, t[3] = o);
|
|
13409
|
+
let s;
|
|
13410
|
+
return t[4] !== a || t[5] !== o ? (s = (0, import_jsx_runtime.jsx)("span", {
|
|
13411
|
+
className: "text-muted-foreground opacity-60",
|
|
13412
|
+
"aria-label": a,
|
|
13413
|
+
title: a,
|
|
13414
|
+
children: o
|
|
13415
|
+
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
13416
|
+
}
|
|
13417
|
+
function SentinelCell(e) {
|
|
13418
|
+
let t = (0, import_compiler_runtime$29.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
|
|
13419
|
+
t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
|
|
13420
|
+
let o = a, s;
|
|
13421
|
+
t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
|
|
13422
|
+
let c = s, d;
|
|
13423
|
+
t[6] !== i || t[7] !== n.value ? (d = i.ariaLabel(n.value), t[6] = i, t[7] = n.value, t[8] = d) : d = t[8];
|
|
13424
|
+
let f = d, h;
|
|
13425
|
+
t[9] === o ? h = t[10] : (h = (0, import_jsx_runtime.jsx)("span", {
|
|
13426
|
+
className: "opacity-70",
|
|
13427
|
+
children: o
|
|
13428
|
+
}), t[9] = o, t[10] = h);
|
|
13429
|
+
let _;
|
|
13430
|
+
return t[11] !== f || t[12] !== h || t[13] !== c ? (_ = (0, import_jsx_runtime.jsx)("span", {
|
|
13431
|
+
className: "italic text-muted-foreground bg-muted rounded px-1",
|
|
13432
|
+
"aria-label": f,
|
|
13433
|
+
title: c,
|
|
13434
|
+
children: h
|
|
13435
|
+
}), t[11] = f, t[12] = h, t[13] = c, t[14] = _) : _ = t[14], _;
|
|
13436
|
+
}
|
|
13437
|
+
var import_compiler_runtime$28 = require_compiler_runtime();
|
|
13438
|
+
const MimeCell = (e) => {
|
|
13439
|
+
let t = (0, import_compiler_runtime$28.c)(6), { value: n } = e, i;
|
|
13440
|
+
t[0] !== n.data || t[1] !== n.mimetype ? (i = {
|
|
13441
|
+
channel: "output",
|
|
13442
|
+
data: n.data,
|
|
13443
|
+
mimetype: n.mimetype,
|
|
13444
|
+
timestamp: 0
|
|
13445
|
+
}, t[0] = n.data, t[1] = n.mimetype, t[2] = i) : i = t[2];
|
|
13446
|
+
let o = i, s;
|
|
13447
|
+
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = cn("flex items-center space-x-2"), t[3] = s) : s = t[3];
|
|
13448
|
+
let c;
|
|
13449
|
+
return t[4] === o ? c = t[5] : (c = (0, import_jsx_runtime.jsx)("div", {
|
|
13450
|
+
className: s,
|
|
13451
|
+
children: (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
13452
|
+
message: o
|
|
13453
|
+
})
|
|
13454
|
+
}), t[4] = o, t[5] = c), c;
|
|
13455
|
+
};
|
|
13456
|
+
function isMimeValue(e) {
|
|
13457
|
+
return typeof e == "object" && !!e && "mimetype" in e && "data" in e;
|
|
13458
|
+
}
|
|
13459
|
+
getMimeValues = function(e) {
|
|
13460
|
+
if (isMimeValue(e)) return [
|
|
13461
|
+
e
|
|
13462
|
+
];
|
|
13463
|
+
if (typeof e == "object" && e && ("_serialized_mime_bundle" in e || "serialized_mime_bundle" in e)) {
|
|
13464
|
+
let t = e, n = t._serialized_mime_bundle || t.serialized_mime_bundle;
|
|
13465
|
+
if (isMimeValue(n)) return [
|
|
13466
|
+
n
|
|
13467
|
+
];
|
|
13468
|
+
}
|
|
13469
|
+
if (Array.isArray(e) && e.every(isMimeValue)) return e.map((e2) => e2);
|
|
13470
|
+
};
|
|
13471
|
+
toFieldTypes = function(e) {
|
|
13472
|
+
return new Map(e.map(([e2, [t]]) => [
|
|
13473
|
+
e2,
|
|
13474
|
+
t
|
|
13475
|
+
]));
|
|
13476
|
+
};
|
|
13477
|
+
SELECT_COLUMN_ID = "__select__";
|
|
13478
|
+
INDEX_COLUMN_NAME = "_marimo_row_id";
|
|
13479
|
+
TOO_MANY_ROWS = "too_many";
|
|
13480
|
+
function isNumericType(e) {
|
|
13481
|
+
return e === "number" || e === "integer";
|
|
13482
|
+
}
|
|
13483
|
+
function isTemporalType(e) {
|
|
13484
|
+
return e === "date" || e === "datetime" || e === "time";
|
|
13485
|
+
}
|
|
13486
|
+
function extractTimezone(e) {
|
|
13487
|
+
var _a2, _b;
|
|
13488
|
+
if (e) return (_b = (_a2 = /^datetime(?:64)?\[[^,]+,([^,]+)]$/.exec(e)) == null ? void 0 : _a2[1]) == null ? void 0 : _b.trim();
|
|
13489
|
+
}
|
|
13490
|
+
var WHITESPACE_ONLY_RE = /^[\s]+$/, WHITESPACE_CHAR_RE = /\s/, EDGE_WHITESPACE_RE = /^(\s*)([\s\S]*?)(\s*)$/;
|
|
13491
|
+
function splitLeadingTrailingWhitespace(e) {
|
|
13492
|
+
let t = {
|
|
13493
|
+
leading: "",
|
|
13494
|
+
middle: "",
|
|
13495
|
+
trailing: ""
|
|
13496
|
+
};
|
|
13497
|
+
if (e.length === 0) return t;
|
|
13498
|
+
let n = WHITESPACE_CHAR_RE.test(e[0]), i = WHITESPACE_CHAR_RE.test(e[e.length - 1]);
|
|
13499
|
+
if (!n && !i) return t.middle = e, t;
|
|
13500
|
+
let a = EDGE_WHITESPACE_RE.exec(e);
|
|
13501
|
+
return a ? (t.leading = a[1] ?? "", t.middle = a[2] ?? "", t.trailing = a[3] ?? "", t) : (t.middle = e, t);
|
|
13502
|
+
}
|
|
13503
|
+
loadTableData = async function(e) {
|
|
13504
|
+
return Array.isArray(e) ? e : e.startsWith("{") || e.startsWith("[") ? jsonParseWithSpecialChar(e) : (e = await vegaLoadData(e, {
|
|
13505
|
+
type: "json"
|
|
13506
|
+
}, {
|
|
13507
|
+
handleBigIntAndNumberLike: true
|
|
13508
|
+
}), e);
|
|
13509
|
+
};
|
|
13510
|
+
loadTableAndRawData = async function(e, t) {
|
|
13511
|
+
return t ? Promise.all([
|
|
13512
|
+
loadTableData(e),
|
|
13513
|
+
loadTableData(t)
|
|
13514
|
+
]) : [
|
|
13515
|
+
await loadTableData(e),
|
|
13516
|
+
void 0
|
|
13517
|
+
];
|
|
13518
|
+
};
|
|
13519
|
+
function getStableRowId(e) {
|
|
13520
|
+
if (e && typeof e == "object" && "_marimo_row_id" in e) return String(e[INDEX_COLUMN_NAME]);
|
|
13521
|
+
}
|
|
13522
|
+
getPageIndexForRow = function(e, t, n) {
|
|
13523
|
+
let i = t * n, a = i + n - 1;
|
|
13524
|
+
return e < i || e > a ? Math.floor(e / n) : null;
|
|
13525
|
+
};
|
|
13526
|
+
var NUMERIC_STRING_SPECIALS = {
|
|
13527
|
+
NaN: "nan",
|
|
13528
|
+
Infinity: "positive-infinity",
|
|
13529
|
+
"-Infinity": "negative-infinity",
|
|
13530
|
+
inf: "positive-infinity",
|
|
13531
|
+
"-inf": "negative-infinity"
|
|
13532
|
+
};
|
|
13533
|
+
function detectSentinel(e, t) {
|
|
13534
|
+
if (e == null) return {
|
|
13535
|
+
type: "null",
|
|
13536
|
+
value: e
|
|
13537
|
+
};
|
|
13538
|
+
if (typeof e == "string") {
|
|
13539
|
+
if (e === "") return {
|
|
13540
|
+
type: "empty-string",
|
|
13541
|
+
value: e
|
|
13542
|
+
};
|
|
13543
|
+
if (WHITESPACE_ONLY_RE.test(e)) return {
|
|
13544
|
+
type: "whitespace",
|
|
13545
|
+
value: e
|
|
13546
|
+
};
|
|
13547
|
+
if (isNumericType(t)) {
|
|
13548
|
+
let t2 = NUMERIC_STRING_SPECIALS[e];
|
|
13549
|
+
if (t2) return {
|
|
13550
|
+
type: t2,
|
|
13551
|
+
value: e
|
|
13552
|
+
};
|
|
13553
|
+
}
|
|
13554
|
+
return isTemporalType(t) && e === "NaT" ? {
|
|
13555
|
+
type: "nat",
|
|
13556
|
+
value: e
|
|
13557
|
+
} : null;
|
|
13558
|
+
}
|
|
13559
|
+
return typeof e == "number" ? Number.isNaN(e) ? {
|
|
13560
|
+
type: "nan",
|
|
13561
|
+
value: e
|
|
13562
|
+
} : e === Infinity ? {
|
|
13563
|
+
type: "positive-infinity",
|
|
13564
|
+
value: e
|
|
13565
|
+
} : e === -Infinity ? {
|
|
13566
|
+
type: "negative-infinity",
|
|
13567
|
+
value: e
|
|
13568
|
+
} : null : null;
|
|
13569
|
+
}
|
|
13570
|
+
function stringifyUnknownValue(e) {
|
|
13571
|
+
let { value: t, nullAsEmptyString: n = false } = e;
|
|
13572
|
+
return typeof t == "object" && t ? JSON.stringify(t) : t === null && n ? "" : String(t);
|
|
13573
|
+
}
|
|
13574
|
+
function stripHtml(e) {
|
|
13575
|
+
let t = document.createElement("div");
|
|
13576
|
+
return t.innerHTML = e, (t.textContent || t.innerText || "").trim() || e;
|
|
13577
|
+
}
|
|
13578
|
+
var HTML_MIMETYPES = /* @__PURE__ */ new Set([
|
|
13579
|
+
"text/html",
|
|
13580
|
+
"text/markdown"
|
|
13581
|
+
]);
|
|
13582
|
+
function isRecord(e) {
|
|
13583
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
13584
|
+
}
|
|
13585
|
+
function getClipboardContent(e, t) {
|
|
13586
|
+
let n = typeof t == "object" && t ? getMimeValues(t) : void 0, i;
|
|
13587
|
+
if (n) {
|
|
13588
|
+
let e2 = n.filter((e3) => HTML_MIMETYPES.has(e3.mimetype)).map((e3) => e3.data);
|
|
13589
|
+
i = e2.length > 0 ? e2.join("") : void 0;
|
|
13590
|
+
}
|
|
13591
|
+
let a;
|
|
13592
|
+
return a = e !== void 0 && e !== t ? stringifyUnknownValue({
|
|
13593
|
+
value: e
|
|
13594
|
+
}) : n ? n.map((e2) => HTML_MIMETYPES.has(e2.mimetype) ? stripHtml(e2.data) : e2.data).join(", ") : stringifyUnknownValue({
|
|
13595
|
+
value: t
|
|
13596
|
+
}), {
|
|
13597
|
+
text: a,
|
|
13598
|
+
html: i
|
|
13599
|
+
};
|
|
13600
|
+
}
|
|
13601
|
+
function getRawValue(e, t, n) {
|
|
13602
|
+
var _a2;
|
|
13603
|
+
let i = (_a2 = e.options.meta) == null ? void 0 : _a2.rawData;
|
|
13604
|
+
if (i) {
|
|
13605
|
+
let e2 = i[t];
|
|
13606
|
+
if (isRecord(e2)) return e2[n];
|
|
13607
|
+
}
|
|
13608
|
+
}
|
|
13609
|
+
var TOP_K_ROWS = 30;
|
|
13610
|
+
const FilterByValuesPicker = ({ column: e, calculateTopKRows: t, chosenValues: n, onChange: i }) => {
|
|
13611
|
+
let [o, s] = (0, import_react.useState)(false), c = (0, import_react.useMemo)(() => new Set(n), [
|
|
13612
|
+
n
|
|
13613
|
+
]), d = (0, import_react.useMemo)(() => c.size === 0 ? "Select values\u2026" : `[${[
|
|
13614
|
+
...c
|
|
13615
|
+
].map((e2) => stringifyUnknownValue({
|
|
13616
|
+
value: e2
|
|
13617
|
+
})).join(", ")}]`, [
|
|
13618
|
+
c
|
|
13619
|
+
]);
|
|
13620
|
+
return (0, import_jsx_runtime.jsxs)(Popover, {
|
|
13621
|
+
open: o,
|
|
13622
|
+
onOpenChange: s,
|
|
13623
|
+
children: [
|
|
13624
|
+
(0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
13625
|
+
asChild: true,
|
|
13626
|
+
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
13627
|
+
variant: "outline",
|
|
13628
|
+
size: "xs",
|
|
13629
|
+
className: "h-6 mb-1 w-full justify-between font-normal",
|
|
13630
|
+
children: [
|
|
13631
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
13632
|
+
className: cn("truncate", c.size === 0 && "text-muted-foreground"),
|
|
13633
|
+
children: d
|
|
13634
|
+
}),
|
|
13635
|
+
(0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
13636
|
+
className: "h-4 w-4 opacity-50 shrink-0"
|
|
13637
|
+
})
|
|
13638
|
+
]
|
|
13639
|
+
})
|
|
13640
|
+
}),
|
|
13641
|
+
(0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
13642
|
+
className: "w-80 p-0",
|
|
13643
|
+
children: (0, import_jsx_runtime.jsx)(FilterByValuesList, {
|
|
13644
|
+
column: e,
|
|
13645
|
+
calculateTopKRows: t,
|
|
13646
|
+
chosenValues: c,
|
|
13647
|
+
onChange: i
|
|
13648
|
+
})
|
|
13649
|
+
})
|
|
13650
|
+
]
|
|
13651
|
+
});
|
|
13652
|
+
}, FilterByValuesList = ({ column: e, calculateTopKRows: t, chosenValues: i, onChange: a }) => {
|
|
13653
|
+
let [o, s] = (0, import_react.useState)(""), { data: c, isPending: d, error: f } = useAsyncData(async () => t ? (await t({
|
|
13654
|
+
column: e.id,
|
|
13655
|
+
k: TOP_K_ROWS
|
|
13656
|
+
})).data : null, [
|
|
13657
|
+
t,
|
|
13658
|
+
e.id
|
|
13659
|
+
]), h = (0, import_react.useMemo)(() => {
|
|
13660
|
+
if (!c) return [];
|
|
13661
|
+
try {
|
|
13662
|
+
return c.filter(([e2, t2]) => {
|
|
13663
|
+
if (e2 === void 0) return false;
|
|
13664
|
+
let n = String(e2);
|
|
13665
|
+
return smartMatch(o, n) || n.toLowerCase().includes(o.toLowerCase());
|
|
13666
|
+
});
|
|
13667
|
+
} catch (e2) {
|
|
13668
|
+
return Logger.error("Error filtering data", e2), [];
|
|
13669
|
+
}
|
|
13670
|
+
}, [
|
|
13671
|
+
c,
|
|
13672
|
+
o
|
|
13673
|
+
]), _ = (e2) => {
|
|
13674
|
+
a([
|
|
13675
|
+
...Sets.toggle(i, e2)
|
|
13676
|
+
]);
|
|
13677
|
+
}, v = h.length > 0 && h.every(([e2]) => i.has(e2)), y = v ? true : i.size > 0 ? "indeterminate" : false;
|
|
13678
|
+
return d ? (0, import_jsx_runtime.jsx)(Spinner, {
|
|
13679
|
+
size: "medium",
|
|
13680
|
+
className: "mx-auto mt-12 mb-10"
|
|
13681
|
+
}) : f ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
13682
|
+
error: f,
|
|
13683
|
+
className: "my-10 mx-4"
|
|
13684
|
+
}) : c ? (0, import_jsx_runtime.jsxs)(Command, {
|
|
13685
|
+
className: "text-sm outline-hidden",
|
|
13686
|
+
shouldFilter: false,
|
|
13687
|
+
children: [
|
|
13688
|
+
(0, import_jsx_runtime.jsx)(CommandInput, {
|
|
13689
|
+
placeholder: `Search among the top ${c.length} values`,
|
|
13690
|
+
autoFocus: true,
|
|
13691
|
+
onValueChange: (e2) => s(e2.trim())
|
|
13692
|
+
}),
|
|
13693
|
+
(0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
13694
|
+
children: "No results found."
|
|
13695
|
+
}),
|
|
13696
|
+
(0, import_jsx_runtime.jsxs)(CommandList, {
|
|
13697
|
+
children: [
|
|
13698
|
+
h.length > 0 && (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
13699
|
+
value: "__select-all__",
|
|
13700
|
+
className: "border-b rounded-none px-3",
|
|
13701
|
+
onSelect: () => {
|
|
13702
|
+
if (!c) return;
|
|
13703
|
+
let e2 = new Set(i);
|
|
13704
|
+
if (v) for (let [t2] of h) e2.delete(t2);
|
|
13705
|
+
else for (let [t2] of h) e2.add(t2);
|
|
13706
|
+
a([
|
|
13707
|
+
...e2
|
|
13708
|
+
]);
|
|
13709
|
+
},
|
|
13710
|
+
children: [
|
|
13711
|
+
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
13712
|
+
checked: y,
|
|
13713
|
+
"aria-label": "Select all",
|
|
13714
|
+
className: "mr-3 h-3.5 w-3.5"
|
|
13715
|
+
}),
|
|
13716
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
13717
|
+
className: "font-bold flex-1",
|
|
13718
|
+
children: e.id
|
|
13719
|
+
}),
|
|
13720
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
13721
|
+
className: "font-bold",
|
|
13722
|
+
children: "Count"
|
|
13723
|
+
})
|
|
13724
|
+
]
|
|
13725
|
+
}),
|
|
13726
|
+
h.map(([t2, n]) => {
|
|
13727
|
+
var _a2;
|
|
13728
|
+
let a2 = i.has(t2), o2 = stringifyUnknownValue({
|
|
13729
|
+
value: t2
|
|
13730
|
+
}), s2 = detectSentinel(t2, (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType);
|
|
13731
|
+
return (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
13732
|
+
value: o2,
|
|
13733
|
+
className: "not-last:border-b rounded-none px-3",
|
|
13734
|
+
onSelect: () => _(t2),
|
|
13735
|
+
children: [
|
|
13736
|
+
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
13737
|
+
checked: a2,
|
|
13738
|
+
"aria-label": "Select row",
|
|
13739
|
+
className: "mr-3 h-3.5 w-3.5"
|
|
13740
|
+
}),
|
|
13741
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
13742
|
+
className: "flex-1 overflow-hidden max-h-20 line-clamp-3",
|
|
13743
|
+
children: s2 ? (0, import_jsx_runtime.jsx)(SentinelCell, {
|
|
13744
|
+
sentinel: s2
|
|
13745
|
+
}) : o2
|
|
13746
|
+
}),
|
|
13747
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
13748
|
+
className: "ml-3",
|
|
13749
|
+
children: n
|
|
13750
|
+
})
|
|
13751
|
+
]
|
|
13752
|
+
}, o2);
|
|
13753
|
+
})
|
|
13754
|
+
]
|
|
13755
|
+
}),
|
|
13756
|
+
c.length === TOP_K_ROWS && (0, import_jsx_runtime.jsxs)("span", {
|
|
13757
|
+
className: "text-xs text-muted-foreground py-1.5 text-center",
|
|
13758
|
+
children: [
|
|
13759
|
+
"Only showing the top ",
|
|
13760
|
+
TOP_K_ROWS,
|
|
13761
|
+
" values"
|
|
13762
|
+
]
|
|
13763
|
+
})
|
|
13764
|
+
]
|
|
13765
|
+
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
13766
|
+
className: "py-6 px-4 text-sm text-muted-foreground text-center",
|
|
13767
|
+
children: "No values available"
|
|
13768
|
+
});
|
|
13769
|
+
}, Filter = {
|
|
13770
|
+
number(e) {
|
|
13771
|
+
return {
|
|
13772
|
+
type: "number",
|
|
13773
|
+
...e
|
|
13774
|
+
};
|
|
13775
|
+
},
|
|
13776
|
+
text(e) {
|
|
13777
|
+
return {
|
|
13778
|
+
type: "text",
|
|
13779
|
+
...e
|
|
13322
13780
|
};
|
|
13323
13781
|
},
|
|
13324
13782
|
date(e) {
|
|
@@ -13479,120 +13937,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
13479
13937
|
return {
|
|
13480
13938
|
type: "group",
|
|
13481
13939
|
operator: "and",
|
|
13482
|
-
children: e.flatMap((e2) => filterToFilterCondition(e2.id, e2.value)),
|
|
13483
|
-
negate: false
|
|
13484
|
-
};
|
|
13485
|
-
};
|
|
13486
|
-
var import_compiler_runtime$29 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
13487
|
-
" ": {
|
|
13488
|
-
marker: "\u2423",
|
|
13489
|
-
name: "space"
|
|
13490
|
-
},
|
|
13491
|
-
" ": {
|
|
13492
|
-
marker: "\\t",
|
|
13493
|
-
name: "tab"
|
|
13494
|
-
},
|
|
13495
|
-
"\n": {
|
|
13496
|
-
marker: "\\n",
|
|
13497
|
-
name: "newline"
|
|
13498
|
-
},
|
|
13499
|
-
"\r": {
|
|
13500
|
-
marker: "\\r",
|
|
13501
|
-
name: "carriage return"
|
|
13502
|
-
}
|
|
13503
|
-
};
|
|
13504
|
-
function renderWhitespaceMarkers(e) {
|
|
13505
|
-
return [
|
|
13506
|
-
...e
|
|
13507
|
-
].map((e2, t) => {
|
|
13508
|
-
let n = WHITESPACE_CHARS[e2];
|
|
13509
|
-
return (0, import_jsx_runtime.jsx)("span", {
|
|
13510
|
-
className: "mr-0.5 last:mr-0",
|
|
13511
|
-
children: n ? n.marker : `\\u${(e2.codePointAt(0) ?? 0).toString(16).padStart(4, "0")}`
|
|
13512
|
-
}, t);
|
|
13513
|
-
});
|
|
13514
|
-
}
|
|
13515
|
-
function describeWhitespace(e) {
|
|
13516
|
-
var _a2;
|
|
13517
|
-
let t = {};
|
|
13518
|
-
for (let n of e) {
|
|
13519
|
-
let e2 = ((_a2 = WHITESPACE_CHARS[n]) == null ? void 0 : _a2.name) ?? "unicode whitespace";
|
|
13520
|
-
t[e2] = (t[e2] ?? 0) + 1;
|
|
13521
|
-
}
|
|
13522
|
-
return Object.entries(t).map(([e2, t2]) => `${t2} ${e2}${t2 > 1 ? "s" : ""}`).join(", ");
|
|
13523
|
-
}
|
|
13524
|
-
var SENTINEL_CONFIG = {
|
|
13525
|
-
null: {
|
|
13526
|
-
label: () => "None",
|
|
13527
|
-
tooltip: () => "None",
|
|
13528
|
-
ariaLabel: () => "None"
|
|
13529
|
-
},
|
|
13530
|
-
"empty-string": {
|
|
13531
|
-
label: () => "<empty>",
|
|
13532
|
-
tooltip: () => "<empty>",
|
|
13533
|
-
ariaLabel: () => "empty string"
|
|
13534
|
-
},
|
|
13535
|
-
whitespace: {
|
|
13536
|
-
label: (e) => renderWhitespaceMarkers(String(e)),
|
|
13537
|
-
tooltip: (e) => describeWhitespace(String(e)),
|
|
13538
|
-
ariaLabel: (e) => describeWhitespace(String(e))
|
|
13539
|
-
},
|
|
13540
|
-
nan: {
|
|
13541
|
-
label: () => "NaN",
|
|
13542
|
-
tooltip: () => "NaN",
|
|
13543
|
-
ariaLabel: () => "NaN"
|
|
13544
|
-
},
|
|
13545
|
-
"positive-infinity": {
|
|
13546
|
-
label: () => "inf",
|
|
13547
|
-
tooltip: () => "Infinity",
|
|
13548
|
-
ariaLabel: () => "infinity"
|
|
13549
|
-
},
|
|
13550
|
-
"negative-infinity": {
|
|
13551
|
-
label: () => "-inf",
|
|
13552
|
-
tooltip: () => "-Infinity",
|
|
13553
|
-
ariaLabel: () => "negative infinity"
|
|
13554
|
-
},
|
|
13555
|
-
nat: {
|
|
13556
|
-
label: () => "NaT",
|
|
13557
|
-
tooltip: () => "NaT (Not a Time)",
|
|
13558
|
-
ariaLabel: () => "Not a Time"
|
|
13559
|
-
}
|
|
13560
|
-
};
|
|
13561
|
-
function WhitespaceMarkers(e) {
|
|
13562
|
-
let t = (0, import_compiler_runtime$29.c)(7), { value: n } = e;
|
|
13563
|
-
if (!n) return null;
|
|
13564
|
-
let i;
|
|
13565
|
-
t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
|
|
13566
|
-
let a = i, o;
|
|
13567
|
-
t[2] === n ? o = t[3] : (o = renderWhitespaceMarkers(n), t[2] = n, t[3] = o);
|
|
13568
|
-
let s;
|
|
13569
|
-
return t[4] !== a || t[5] !== o ? (s = (0, import_jsx_runtime.jsx)("span", {
|
|
13570
|
-
className: "text-muted-foreground opacity-60",
|
|
13571
|
-
"aria-label": a,
|
|
13572
|
-
title: a,
|
|
13573
|
-
children: o
|
|
13574
|
-
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
13575
|
-
}
|
|
13576
|
-
function SentinelCell(e) {
|
|
13577
|
-
let t = (0, import_compiler_runtime$29.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
|
|
13578
|
-
t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
|
|
13579
|
-
let o = a, s;
|
|
13580
|
-
t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
|
|
13581
|
-
let c = s, d;
|
|
13582
|
-
t[6] !== i || t[7] !== n.value ? (d = i.ariaLabel(n.value), t[6] = i, t[7] = n.value, t[8] = d) : d = t[8];
|
|
13583
|
-
let f = d, h;
|
|
13584
|
-
t[9] === o ? h = t[10] : (h = (0, import_jsx_runtime.jsx)("span", {
|
|
13585
|
-
className: "opacity-70",
|
|
13586
|
-
children: o
|
|
13587
|
-
}), t[9] = o, t[10] = h);
|
|
13588
|
-
let _;
|
|
13589
|
-
return t[11] !== f || t[12] !== h || t[13] !== c ? (_ = (0, import_jsx_runtime.jsx)("span", {
|
|
13590
|
-
className: "italic text-muted-foreground bg-muted rounded px-1",
|
|
13591
|
-
"aria-label": f,
|
|
13592
|
-
title: c,
|
|
13593
|
-
children: h
|
|
13594
|
-
}), t[11] = f, t[12] = h, t[13] = c, t[14] = _) : _ = t[14], _;
|
|
13595
|
-
}
|
|
13940
|
+
children: e.flatMap((e2) => filterToFilterCondition(e2.id, e2.value)),
|
|
13941
|
+
negate: false
|
|
13942
|
+
};
|
|
13943
|
+
};
|
|
13596
13944
|
function functionalUpdate(e, t) {
|
|
13597
13945
|
return typeof e == "function" ? e(t) : e;
|
|
13598
13946
|
}
|
|
@@ -15638,7 +15986,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15638
15986
|
],
|
|
15639
15987
|
unknown: []
|
|
15640
15988
|
};
|
|
15641
|
-
var import_compiler_runtime$
|
|
15989
|
+
var import_compiler_runtime$27 = require_compiler_runtime();
|
|
15642
15990
|
function renderFormatOptions(e, t) {
|
|
15643
15991
|
var _a2, _b, _c;
|
|
15644
15992
|
let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
|
|
@@ -15837,7 +16185,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15837
16185
|
}) : null;
|
|
15838
16186
|
}
|
|
15839
16187
|
const ClearFilterMenuItem = (e) => {
|
|
15840
|
-
let t = (0, import_compiler_runtime$
|
|
16188
|
+
let t = (0, import_compiler_runtime$27.c)(5), { column: n } = e, i;
|
|
15841
16189
|
t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
|
|
15842
16190
|
let a;
|
|
15843
16191
|
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
|
|
@@ -15867,7 +16215,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15867
16215
|
});
|
|
15868
16216
|
}
|
|
15869
16217
|
const FilterButtons = (e) => {
|
|
15870
|
-
let t = (0, import_compiler_runtime$
|
|
16218
|
+
let t = (0, import_compiler_runtime$27.c)(8), { onApply: n, onClear: i, clearButtonDisabled: a } = e, o;
|
|
15871
16219
|
t[0] === n ? o = t[1] : (o = (0, import_jsx_runtime.jsx)(Button, {
|
|
15872
16220
|
variant: "link",
|
|
15873
16221
|
size: "sm",
|
|
@@ -15891,204 +16239,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
15891
16239
|
s
|
|
15892
16240
|
]
|
|
15893
16241
|
}), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
|
|
15894
|
-
}
|
|
15895
|
-
|
|
15896
|
-
const MimeCell = (e) => {
|
|
15897
|
-
let t = (0, import_compiler_runtime$27.c)(6), { value: n } = e, i;
|
|
15898
|
-
t[0] !== n.data || t[1] !== n.mimetype ? (i = {
|
|
15899
|
-
channel: "output",
|
|
15900
|
-
data: n.data,
|
|
15901
|
-
mimetype: n.mimetype,
|
|
15902
|
-
timestamp: 0
|
|
15903
|
-
}, t[0] = n.data, t[1] = n.mimetype, t[2] = i) : i = t[2];
|
|
15904
|
-
let o = i, s;
|
|
15905
|
-
t[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = cn("flex items-center space-x-2"), t[3] = s) : s = t[3];
|
|
15906
|
-
let c;
|
|
15907
|
-
return t[4] === o ? c = t[5] : (c = (0, import_jsx_runtime.jsx)("div", {
|
|
15908
|
-
className: s,
|
|
15909
|
-
children: (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
15910
|
-
message: o
|
|
15911
|
-
})
|
|
15912
|
-
}), t[4] = o, t[5] = c), c;
|
|
15913
|
-
};
|
|
15914
|
-
function isMimeValue(e) {
|
|
15915
|
-
return typeof e == "object" && !!e && "mimetype" in e && "data" in e;
|
|
15916
|
-
}
|
|
15917
|
-
getMimeValues = function(e) {
|
|
15918
|
-
if (isMimeValue(e)) return [
|
|
15919
|
-
e
|
|
15920
|
-
];
|
|
15921
|
-
if (typeof e == "object" && e && ("_serialized_mime_bundle" in e || "serialized_mime_bundle" in e)) {
|
|
15922
|
-
let t = e, n = t._serialized_mime_bundle || t.serialized_mime_bundle;
|
|
15923
|
-
if (isMimeValue(n)) return [
|
|
15924
|
-
n
|
|
15925
|
-
];
|
|
15926
|
-
}
|
|
15927
|
-
if (Array.isArray(e) && e.every(isMimeValue)) return e.map((e2) => e2);
|
|
15928
|
-
};
|
|
15929
|
-
toFieldTypes = function(e) {
|
|
15930
|
-
return new Map(e.map(([e2, [t]]) => [
|
|
15931
|
-
e2,
|
|
15932
|
-
t
|
|
15933
|
-
]));
|
|
15934
|
-
};
|
|
15935
|
-
SELECT_COLUMN_ID = "__select__";
|
|
15936
|
-
INDEX_COLUMN_NAME = "_marimo_row_id";
|
|
15937
|
-
TOO_MANY_ROWS = "too_many";
|
|
15938
|
-
function isNumericType(e) {
|
|
15939
|
-
return e === "number" || e === "integer";
|
|
15940
|
-
}
|
|
15941
|
-
function isTemporalType(e) {
|
|
15942
|
-
return e === "date" || e === "datetime" || e === "time";
|
|
15943
|
-
}
|
|
15944
|
-
function extractTimezone(e) {
|
|
15945
|
-
var _a2, _b;
|
|
15946
|
-
if (e) return (_b = (_a2 = /^datetime(?:64)?\[[^,]+,([^,]+)]$/.exec(e)) == null ? void 0 : _a2[1]) == null ? void 0 : _b.trim();
|
|
15947
|
-
}
|
|
15948
|
-
var WHITESPACE_ONLY_RE = /^[\s]+$/, WHITESPACE_CHAR_RE = /\s/, EDGE_WHITESPACE_RE = /^(\s*)([\s\S]*?)(\s*)$/;
|
|
15949
|
-
function splitLeadingTrailingWhitespace(e) {
|
|
15950
|
-
let t = {
|
|
15951
|
-
leading: "",
|
|
15952
|
-
middle: "",
|
|
15953
|
-
trailing: ""
|
|
15954
|
-
};
|
|
15955
|
-
if (e.length === 0) return t;
|
|
15956
|
-
let n = WHITESPACE_CHAR_RE.test(e[0]), i = WHITESPACE_CHAR_RE.test(e[e.length - 1]);
|
|
15957
|
-
if (!n && !i) return t.middle = e, t;
|
|
15958
|
-
let a = EDGE_WHITESPACE_RE.exec(e);
|
|
15959
|
-
return a ? (t.leading = a[1] ?? "", t.middle = a[2] ?? "", t.trailing = a[3] ?? "", t) : (t.middle = e, t);
|
|
15960
|
-
}
|
|
15961
|
-
loadTableData = async function(e) {
|
|
15962
|
-
return Array.isArray(e) ? e : e.startsWith("{") || e.startsWith("[") ? jsonParseWithSpecialChar(e) : (e = await vegaLoadData(e, {
|
|
15963
|
-
type: "json"
|
|
15964
|
-
}, {
|
|
15965
|
-
handleBigIntAndNumberLike: true
|
|
15966
|
-
}), e);
|
|
15967
|
-
};
|
|
15968
|
-
loadTableAndRawData = async function(e, t) {
|
|
15969
|
-
return t ? Promise.all([
|
|
15970
|
-
loadTableData(e),
|
|
15971
|
-
loadTableData(t)
|
|
15972
|
-
]) : [
|
|
15973
|
-
await loadTableData(e),
|
|
15974
|
-
void 0
|
|
15975
|
-
];
|
|
15976
|
-
};
|
|
15977
|
-
function getStableRowId(e) {
|
|
15978
|
-
if (e && typeof e == "object" && "_marimo_row_id" in e) return String(e[INDEX_COLUMN_NAME]);
|
|
15979
|
-
}
|
|
15980
|
-
getPageIndexForRow = function(e, t, n) {
|
|
15981
|
-
let i = t * n, a = i + n - 1;
|
|
15982
|
-
return e < i || e > a ? Math.floor(e / n) : null;
|
|
15983
|
-
};
|
|
15984
|
-
var NUMERIC_STRING_SPECIALS = {
|
|
15985
|
-
NaN: "nan",
|
|
15986
|
-
Infinity: "positive-infinity",
|
|
15987
|
-
"-Infinity": "negative-infinity",
|
|
15988
|
-
inf: "positive-infinity",
|
|
15989
|
-
"-inf": "negative-infinity"
|
|
15990
|
-
};
|
|
15991
|
-
function detectSentinel(e, t) {
|
|
15992
|
-
if (e == null) return {
|
|
15993
|
-
type: "null",
|
|
15994
|
-
value: e
|
|
15995
|
-
};
|
|
15996
|
-
if (typeof e == "string") {
|
|
15997
|
-
if (e === "") return {
|
|
15998
|
-
type: "empty-string",
|
|
15999
|
-
value: e
|
|
16000
|
-
};
|
|
16001
|
-
if (WHITESPACE_ONLY_RE.test(e)) return {
|
|
16002
|
-
type: "whitespace",
|
|
16003
|
-
value: e
|
|
16004
|
-
};
|
|
16005
|
-
if (isNumericType(t)) {
|
|
16006
|
-
let t2 = NUMERIC_STRING_SPECIALS[e];
|
|
16007
|
-
if (t2) return {
|
|
16008
|
-
type: t2,
|
|
16009
|
-
value: e
|
|
16010
|
-
};
|
|
16011
|
-
}
|
|
16012
|
-
return isTemporalType(t) && e === "NaT" ? {
|
|
16013
|
-
type: "nat",
|
|
16014
|
-
value: e
|
|
16015
|
-
} : null;
|
|
16016
|
-
}
|
|
16017
|
-
return typeof e == "number" ? Number.isNaN(e) ? {
|
|
16018
|
-
type: "nan",
|
|
16019
|
-
value: e
|
|
16020
|
-
} : e === Infinity ? {
|
|
16021
|
-
type: "positive-infinity",
|
|
16022
|
-
value: e
|
|
16023
|
-
} : e === -Infinity ? {
|
|
16024
|
-
type: "negative-infinity",
|
|
16025
|
-
value: e
|
|
16026
|
-
} : null : null;
|
|
16027
|
-
}
|
|
16028
|
-
function stringifyUnknownValue(e) {
|
|
16029
|
-
let { value: t, nullAsEmptyString: n = false } = e;
|
|
16030
|
-
return typeof t == "object" && t ? JSON.stringify(t) : t === null && n ? "" : String(t);
|
|
16031
|
-
}
|
|
16032
|
-
function stripHtml(e) {
|
|
16033
|
-
let t = document.createElement("div");
|
|
16034
|
-
return t.innerHTML = e, (t.textContent || t.innerText || "").trim() || e;
|
|
16035
|
-
}
|
|
16036
|
-
var HTML_MIMETYPES = /* @__PURE__ */ new Set([
|
|
16037
|
-
"text/html",
|
|
16038
|
-
"text/markdown"
|
|
16039
|
-
]);
|
|
16040
|
-
function isRecord(e) {
|
|
16041
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
16042
|
-
}
|
|
16043
|
-
function getClipboardContent(e, t) {
|
|
16044
|
-
let n = typeof t == "object" && t ? getMimeValues(t) : void 0, i;
|
|
16045
|
-
if (n) {
|
|
16046
|
-
let e2 = n.filter((e3) => HTML_MIMETYPES.has(e3.mimetype)).map((e3) => e3.data);
|
|
16047
|
-
i = e2.length > 0 ? e2.join("") : void 0;
|
|
16048
|
-
}
|
|
16049
|
-
let a;
|
|
16050
|
-
return a = e !== void 0 && e !== t ? stringifyUnknownValue({
|
|
16051
|
-
value: e
|
|
16052
|
-
}) : n ? n.map((e2) => HTML_MIMETYPES.has(e2.mimetype) ? stripHtml(e2.data) : e2.data).join(", ") : stringifyUnknownValue({
|
|
16053
|
-
value: t
|
|
16054
|
-
}), {
|
|
16055
|
-
text: a,
|
|
16056
|
-
html: i
|
|
16057
|
-
};
|
|
16058
|
-
}
|
|
16059
|
-
function getRawValue(e, t, n) {
|
|
16060
|
-
var _a2;
|
|
16061
|
-
let i = (_a2 = e.options.meta) == null ? void 0 : _a2.rawData;
|
|
16062
|
-
if (i) {
|
|
16063
|
-
let e2 = i[t];
|
|
16064
|
-
if (isRecord(e2)) return e2[n];
|
|
16065
|
-
}
|
|
16066
|
-
}
|
|
16067
|
-
var TOP_K_ROWS$1 = 30;
|
|
16068
|
-
const DataTableColumnHeader = ({ column: e, header: t, subheader: n, className: i, calculateTopKRows: o, table: s }) => {
|
|
16069
|
-
let [c, d] = (0, import_react.useState)(false), { locale: f } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
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();
|
|
16070
16244
|
if (!t) return null;
|
|
16071
16245
|
if (!e.getCanSort() && !e.getCanFilter()) return (0, import_jsx_runtime.jsxs)("div", {
|
|
16072
|
-
className: cn(i),
|
|
16246
|
+
className: cn(i === "center" && "text-center", i === "right" && "text-right", o),
|
|
16073
16247
|
children: [
|
|
16074
16248
|
t,
|
|
16075
16249
|
n
|
|
16076
16250
|
]
|
|
16077
16251
|
});
|
|
16078
|
-
let
|
|
16252
|
+
let _ = e.getFilterValue() !== void 0;
|
|
16079
16253
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
16080
16254
|
children: [
|
|
16081
16255
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16082
|
-
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),
|
|
16083
16257
|
children: [
|
|
16084
16258
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
16085
|
-
className: "flex items-center gap-1",
|
|
16259
|
+
className: cn("flex items-center gap-1", i === "right" && "flex-row-reverse", i === "center" && "mx-auto"),
|
|
16086
16260
|
children: [
|
|
16087
|
-
(0, import_jsx_runtime.
|
|
16088
|
-
children:
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
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
|
+
]
|
|
16092
16279
|
}),
|
|
16093
16280
|
(0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
16094
16281
|
modal: false,
|
|
@@ -16109,15 +16296,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16109
16296
|
align: "start",
|
|
16110
16297
|
children: [
|
|
16111
16298
|
renderDataType(e),
|
|
16112
|
-
renderSorts(e,
|
|
16299
|
+
renderSorts(e, c),
|
|
16113
16300
|
renderCopyColumn(e),
|
|
16114
16301
|
renderColumnPinning(e),
|
|
16115
16302
|
renderColumnWrapping(e),
|
|
16116
|
-
renderFormatOptions(e,
|
|
16303
|
+
renderFormatOptions(e, h),
|
|
16117
16304
|
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
16118
16305
|
renderMenuItemFilter(e),
|
|
16119
|
-
renderFilterByValues(e,
|
|
16120
|
-
|
|
16306
|
+
renderFilterByValues(e, f),
|
|
16307
|
+
_ && (0, import_jsx_runtime.jsx)(ClearFilterMenuItem, {
|
|
16121
16308
|
column: e
|
|
16122
16309
|
})
|
|
16123
16310
|
]
|
|
@@ -16129,9 +16316,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16129
16316
|
n
|
|
16130
16317
|
]
|
|
16131
16318
|
}),
|
|
16132
|
-
|
|
16133
|
-
setIsFilterValueOpen:
|
|
16134
|
-
calculateTopKRows:
|
|
16319
|
+
d && (0, import_jsx_runtime.jsx)(PopoverFilterByValues, {
|
|
16320
|
+
setIsFilterValueOpen: f,
|
|
16321
|
+
calculateTopKRows: s,
|
|
16135
16322
|
column: e
|
|
16136
16323
|
})
|
|
16137
16324
|
]
|
|
@@ -16384,136 +16571,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16384
16571
|
})
|
|
16385
16572
|
]
|
|
16386
16573
|
});
|
|
16387
|
-
}
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
}
|
|
16398
|
-
}, [
|
|
16399
|
-
d,
|
|
16400
|
-
s
|
|
16401
|
-
]), y;
|
|
16402
|
-
h && (y = (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16403
|
-
size: "medium",
|
|
16404
|
-
className: "mx-auto mt-12 mb-10"
|
|
16405
|
-
})), _ && (y = (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16406
|
-
error: _,
|
|
16407
|
-
className: "my-10 mx-4"
|
|
16408
|
-
}));
|
|
16409
|
-
let S = (e2) => {
|
|
16410
|
-
o((t2) => {
|
|
16411
|
-
let n = t2.has(e2), i2 = new Set(t2);
|
|
16412
|
-
return n ? i2.delete(e2) : i2.add(e2), i2;
|
|
16413
|
-
});
|
|
16414
|
-
}, w = (e2) => {
|
|
16415
|
-
d && o(e2 ? new Set(v.map(([e3]) => e3)) : /* @__PURE__ */ new Set());
|
|
16416
|
-
}, E = () => {
|
|
16417
|
-
if (a.size === 0) {
|
|
16418
|
-
i.setFilterValue(void 0);
|
|
16419
|
-
return;
|
|
16420
|
-
}
|
|
16421
|
-
i.setFilterValue(Filter.select({
|
|
16422
|
-
options: [
|
|
16423
|
-
...a
|
|
16424
|
-
],
|
|
16425
|
-
operator: "in"
|
|
16426
|
-
}));
|
|
16574
|
+
};
|
|
16575
|
+
function seedFromFilter(e) {
|
|
16576
|
+
return e && "type" in e && e.type === "select" ? {
|
|
16577
|
+
values: [
|
|
16578
|
+
...e.options
|
|
16579
|
+
],
|
|
16580
|
+
operator: e.operator === "not_in" ? "not_in" : "in"
|
|
16581
|
+
} : {
|
|
16582
|
+
values: [],
|
|
16583
|
+
operator: "in"
|
|
16427
16584
|
};
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
children: [
|
|
16432
|
-
(0, import_jsx_runtime.jsxs)(Command, {
|
|
16433
|
-
className: "text-sm outline-hidden",
|
|
16434
|
-
shouldFilter: false,
|
|
16435
|
-
children: [
|
|
16436
|
-
(0, import_jsx_runtime.jsx)(CommandInput, {
|
|
16437
|
-
placeholder: `Search among the top ${d.length} values`,
|
|
16438
|
-
autoFocus: true,
|
|
16439
|
-
onValueChange: (e3) => c(e3.trim())
|
|
16440
|
-
}),
|
|
16441
|
-
(0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
16442
|
-
children: "No results found."
|
|
16443
|
-
}),
|
|
16444
|
-
(0, import_jsx_runtime.jsxs)(CommandList, {
|
|
16445
|
-
className: "border-b",
|
|
16446
|
-
children: [
|
|
16447
|
-
v.length > 0 && (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
16448
|
-
value: "__select-all__",
|
|
16449
|
-
className: "border-b rounded-none px-3",
|
|
16450
|
-
onSelect: () => w(!e2),
|
|
16451
|
-
children: [
|
|
16452
|
-
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
16453
|
-
checked: a.size === v.length,
|
|
16454
|
-
"aria-label": "Select all",
|
|
16455
|
-
className: "mr-3 h-3.5 w-3.5"
|
|
16456
|
-
}),
|
|
16457
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
16458
|
-
className: "font-bold flex-1",
|
|
16459
|
-
children: i.id
|
|
16460
|
-
}),
|
|
16461
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
16462
|
-
className: "font-bold",
|
|
16463
|
-
children: "Count"
|
|
16464
|
-
})
|
|
16465
|
-
]
|
|
16466
|
-
}),
|
|
16467
|
-
v.map(([e3, t2], n) => {
|
|
16468
|
-
var _a2;
|
|
16469
|
-
let o2 = a.has(e3), s2 = stringifyUnknownValue({
|
|
16470
|
-
value: e3
|
|
16471
|
-
}), c2 = detectSentinel(e3, (_a2 = i.columnDef.meta) == null ? void 0 : _a2.dataType);
|
|
16472
|
-
return (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
16473
|
-
value: s2,
|
|
16474
|
-
className: "not-last:border-b rounded-none px-3",
|
|
16475
|
-
onSelect: () => S(e3),
|
|
16476
|
-
children: [
|
|
16477
|
-
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
16478
|
-
checked: o2,
|
|
16479
|
-
"aria-label": "Select row",
|
|
16480
|
-
className: "mr-3 h-3.5 w-3.5"
|
|
16481
|
-
}),
|
|
16482
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
16483
|
-
className: "flex-1 overflow-hidden max-h-20 line-clamp-3",
|
|
16484
|
-
children: c2 ? (0, import_jsx_runtime.jsx)(SentinelCell, {
|
|
16485
|
-
sentinel: c2
|
|
16486
|
-
}) : s2
|
|
16487
|
-
}),
|
|
16488
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
16489
|
-
className: "ml-3",
|
|
16490
|
-
children: t2
|
|
16491
|
-
})
|
|
16492
|
-
]
|
|
16493
|
-
}, n);
|
|
16494
|
-
})
|
|
16495
|
-
]
|
|
16496
|
-
}),
|
|
16497
|
-
v.length === TOP_K_ROWS$1 && (0, import_jsx_runtime.jsxs)("span", {
|
|
16498
|
-
className: "text-xs text-muted-foreground mt-1.5 text-center",
|
|
16499
|
-
children: [
|
|
16500
|
-
"Only showing the top ",
|
|
16501
|
-
TOP_K_ROWS$1,
|
|
16502
|
-
" values"
|
|
16503
|
-
]
|
|
16504
|
-
})
|
|
16505
|
-
]
|
|
16506
|
-
}),
|
|
16507
|
-
(0, import_jsx_runtime.jsx)(FilterButtons, {
|
|
16508
|
-
onApply: E,
|
|
16509
|
-
onClear: () => {
|
|
16510
|
-
o(/* @__PURE__ */ new Set());
|
|
16511
|
-
},
|
|
16512
|
-
clearButtonDisabled: a.size === 0
|
|
16513
|
-
})
|
|
16514
|
-
]
|
|
16515
|
-
});
|
|
16516
|
-
}
|
|
16585
|
+
}
|
|
16586
|
+
var PopoverFilterByValues = ({ setIsFilterValueOpen: e, calculateTopKRows: t, column: n }) => {
|
|
16587
|
+
let i = seedFromFilter(n.getFilterValue()), [a, o] = (0, import_react.useState)(() => new Set(i.values));
|
|
16517
16588
|
return (0, import_jsx_runtime.jsxs)(DraggablePopover, {
|
|
16518
16589
|
open: true,
|
|
16519
16590
|
onOpenChange: (t2) => !t2 && e(false),
|
|
@@ -16530,9 +16601,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
16530
16601
|
})
|
|
16531
16602
|
})
|
|
16532
16603
|
}),
|
|
16533
|
-
(0, import_jsx_runtime.
|
|
16604
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
16534
16605
|
className: "flex flex-col gap-1.5 py-2",
|
|
16535
|
-
children:
|
|
16606
|
+
children: [
|
|
16607
|
+
(0, import_jsx_runtime.jsx)(FilterByValuesList, {
|
|
16608
|
+
column: n,
|
|
16609
|
+
calculateTopKRows: t,
|
|
16610
|
+
chosenValues: a,
|
|
16611
|
+
onChange: (e2) => o(new Set(e2))
|
|
16612
|
+
}),
|
|
16613
|
+
(0, import_jsx_runtime.jsx)(FilterButtons, {
|
|
16614
|
+
onApply: () => {
|
|
16615
|
+
if (a.size === 0) {
|
|
16616
|
+
n.setFilterValue(void 0);
|
|
16617
|
+
return;
|
|
16618
|
+
}
|
|
16619
|
+
n.setFilterValue(Filter.select({
|
|
16620
|
+
options: [
|
|
16621
|
+
...a
|
|
16622
|
+
],
|
|
16623
|
+
operator: i.operator
|
|
16624
|
+
}));
|
|
16625
|
+
},
|
|
16626
|
+
onClear: () => o(/* @__PURE__ */ new Set()),
|
|
16627
|
+
clearButtonDisabled: a.size === 0
|
|
16628
|
+
})
|
|
16629
|
+
]
|
|
16536
16630
|
})
|
|
16537
16631
|
]
|
|
16538
16632
|
});
|
|
@@ -18206,40 +18300,41 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18206
18300
|
accessorFn: (t2) => t2[e2],
|
|
18207
18301
|
header: ({ column: t2, table: n3 }) => {
|
|
18208
18302
|
var _a2;
|
|
18209
|
-
let
|
|
18210
|
-
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"),
|
|
18211
18305
|
children: [
|
|
18212
18306
|
(0, import_jsx_runtime.jsx)("span", {
|
|
18213
18307
|
className: "text-xs text-muted-foreground",
|
|
18214
|
-
children:
|
|
18308
|
+
children: h2
|
|
18215
18309
|
}),
|
|
18216
|
-
|
|
18310
|
+
s2 && typeof s2.nulls == "number" && s2.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
|
|
18217
18311
|
className: "text-xs text-muted-foreground",
|
|
18218
18312
|
children: [
|
|
18219
18313
|
"(nulls: ",
|
|
18220
|
-
|
|
18314
|
+
s2.nulls,
|
|
18221
18315
|
")"
|
|
18222
18316
|
]
|
|
18223
18317
|
})
|
|
18224
18318
|
]
|
|
18225
|
-
}) : null,
|
|
18226
|
-
className: cn("font-bold",
|
|
18319
|
+
}) : null, w2 = (0, import_jsx_runtime.jsx)("span", {
|
|
18320
|
+
className: cn("font-bold", v2 && "underline decoration-dotted"),
|
|
18227
18321
|
children: e2 === "" ? " " : e2
|
|
18228
|
-
}),
|
|
18229
|
-
header:
|
|
18230
|
-
content:
|
|
18322
|
+
}), E2 = (0, import_jsx_runtime.jsx)(DataTableColumnHeader, {
|
|
18323
|
+
header: v2 ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
18324
|
+
content: v2,
|
|
18231
18325
|
delayDuration: 300,
|
|
18232
|
-
children:
|
|
18233
|
-
}) :
|
|
18234
|
-
subheader:
|
|
18326
|
+
children: w2
|
|
18327
|
+
}) : w2,
|
|
18328
|
+
subheader: S2,
|
|
18235
18329
|
column: t2,
|
|
18330
|
+
justify: y2,
|
|
18236
18331
|
calculateTopKRows: f,
|
|
18237
18332
|
table: n3
|
|
18238
18333
|
});
|
|
18239
|
-
return _.has(e2) ?
|
|
18240
|
-
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"),
|
|
18241
18336
|
children: [
|
|
18242
|
-
|
|
18337
|
+
E2,
|
|
18243
18338
|
(0, import_jsx_runtime.jsx)(TableColumnSummary, {
|
|
18244
18339
|
columnId: e2
|
|
18245
18340
|
})
|
|
@@ -18834,7 +18929,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18834
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 }) {
|
|
18835
18930
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
18836
18931
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
18837
|
-
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)({
|
|
18838
18933
|
callbacks: {
|
|
18839
18934
|
onCollapse: f,
|
|
18840
18935
|
onExpand: h,
|
|
@@ -18847,7 +18942,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18847
18942
|
maxSize: c,
|
|
18848
18943
|
minSize: d
|
|
18849
18944
|
},
|
|
18850
|
-
id:
|
|
18945
|
+
id: VM,
|
|
18851
18946
|
idIsFromProps: s !== void 0,
|
|
18852
18947
|
order: v
|
|
18853
18948
|
});
|
|
@@ -18857,7 +18952,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18857
18952
|
let { callbacks: e2, constraints: t2 } = $.current, o2 = {
|
|
18858
18953
|
...t2
|
|
18859
18954
|
};
|
|
18860
|
-
$.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);
|
|
18861
18956
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
18862
18957
|
let e2 = $.current;
|
|
18863
18958
|
return q(e2), () => {
|
|
@@ -18865,7 +18960,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18865
18960
|
};
|
|
18866
18961
|
}, [
|
|
18867
18962
|
v,
|
|
18868
|
-
|
|
18963
|
+
VM,
|
|
18869
18964
|
q,
|
|
18870
18965
|
Q
|
|
18871
18966
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
@@ -18876,7 +18971,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18876
18971
|
A($.current, e2);
|
|
18877
18972
|
},
|
|
18878
18973
|
getId() {
|
|
18879
|
-
return
|
|
18974
|
+
return VM;
|
|
18880
18975
|
},
|
|
18881
18976
|
getSize() {
|
|
18882
18977
|
return M($.current);
|
|
@@ -18895,24 +18990,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
18895
18990
|
A,
|
|
18896
18991
|
M,
|
|
18897
18992
|
U,
|
|
18898
|
-
|
|
18993
|
+
VM,
|
|
18899
18994
|
J
|
|
18900
18995
|
]);
|
|
18901
|
-
let
|
|
18996
|
+
let HM = I($.current, a);
|
|
18902
18997
|
return (0, import_react.createElement)(S, {
|
|
18903
18998
|
...w,
|
|
18904
18999
|
children: e,
|
|
18905
19000
|
className: t,
|
|
18906
|
-
id:
|
|
19001
|
+
id: VM,
|
|
18907
19002
|
style: {
|
|
18908
|
-
...
|
|
19003
|
+
...HM,
|
|
18909
19004
|
...y
|
|
18910
19005
|
},
|
|
18911
19006
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
18912
19007
|
[DATA_ATTRIBUTES.panel]: "",
|
|
18913
19008
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
18914
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
18915
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
19009
|
+
[DATA_ATTRIBUTES.panelId]: VM,
|
|
19010
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + HM.flexGrow).toFixed(1)
|
|
18916
19011
|
});
|
|
18917
19012
|
}
|
|
18918
19013
|
var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -19685,7 +19780,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19685
19780
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
19686
19781
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
19687
19782
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
19688
|
-
}, []),
|
|
19783
|
+
}, []), VM = (0, import_react.useCallback)((e2, t2) => {
|
|
19689
19784
|
let { panelDataArray: n2 } = K.current;
|
|
19690
19785
|
return computePanelFlexBoxStyle({
|
|
19691
19786
|
defaultSize: t2,
|
|
@@ -19700,10 +19795,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19700
19795
|
]), $ = (0, import_react.useCallback)((e2) => {
|
|
19701
19796
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19702
19797
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
19703
|
-
}, []),
|
|
19798
|
+
}, []), HM = (0, import_react.useCallback)((e2) => {
|
|
19704
19799
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
19705
19800
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
19706
|
-
}, []),
|
|
19801
|
+
}, []), UM = (0, import_react.useCallback)((e2) => {
|
|
19707
19802
|
let { panelDataArray: t2 } = K.current;
|
|
19708
19803
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
19709
19804
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -19735,7 +19830,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19735
19830
|
e2.layout = [];
|
|
19736
19831
|
};
|
|
19737
19832
|
}, []);
|
|
19738
|
-
let
|
|
19833
|
+
let WM = (0, import_react.useCallback)((e2) => {
|
|
19739
19834
|
let t2 = false, n2 = y.current;
|
|
19740
19835
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
19741
19836
|
n3.preventDefault();
|
|
@@ -19753,7 +19848,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19753
19848
|
}), I2 = !compareLayouts(f2, A2);
|
|
19754
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));
|
|
19755
19850
|
};
|
|
19756
|
-
}, []),
|
|
19851
|
+
}, []), GM = (0, import_react.useCallback)((e2, t2) => {
|
|
19757
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);
|
|
19758
19853
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
19759
19854
|
let d2 = adjustLayoutByDelta({
|
|
@@ -19765,12 +19860,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19765
19860
|
trigger: "imperative-api"
|
|
19766
19861
|
});
|
|
19767
19862
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
19768
|
-
}, []),
|
|
19863
|
+
}, []), KM = (0, import_react.useCallback)((e2, t2) => {
|
|
19769
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);
|
|
19770
|
-
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));
|
|
19771
19866
|
}, [
|
|
19772
|
-
|
|
19773
|
-
]),
|
|
19867
|
+
GM
|
|
19868
|
+
]), qM = (0, import_react.useCallback)((e2, t2) => {
|
|
19774
19869
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
19775
19870
|
if (!y.current) return;
|
|
19776
19871
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -19782,30 +19877,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19782
19877
|
initialCursorPosition: o2,
|
|
19783
19878
|
initialLayout: i2
|
|
19784
19879
|
});
|
|
19785
|
-
}, []),
|
|
19880
|
+
}, []), JM = (0, import_react.useCallback)(() => {
|
|
19786
19881
|
w(null);
|
|
19787
|
-
}, []),
|
|
19882
|
+
}, []), YM = (0, import_react.useCallback)((e2) => {
|
|
19788
19883
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
19789
19884
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
19790
19885
|
}, [
|
|
19791
19886
|
A
|
|
19792
|
-
]),
|
|
19887
|
+
]), XM = (0, import_react.useMemo)(() => ({
|
|
19793
19888
|
collapsePanel: q,
|
|
19794
19889
|
direction: i,
|
|
19795
19890
|
dragState: S,
|
|
19796
19891
|
expandPanel: J,
|
|
19797
19892
|
getPanelSize: Q,
|
|
19798
|
-
getPanelStyle:
|
|
19893
|
+
getPanelStyle: VM,
|
|
19799
19894
|
groupId: v,
|
|
19800
19895
|
isPanelCollapsed: $,
|
|
19801
|
-
isPanelExpanded:
|
|
19802
|
-
reevaluatePanelConstraints:
|
|
19803
|
-
registerPanel:
|
|
19804
|
-
registerResizeHandle:
|
|
19805
|
-
resizePanel:
|
|
19806
|
-
startDragging:
|
|
19807
|
-
stopDragging:
|
|
19808
|
-
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,
|
|
19809
19904
|
panelGroupElement: y.current
|
|
19810
19905
|
}), [
|
|
19811
19906
|
q,
|
|
@@ -19813,18 +19908,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19813
19908
|
i,
|
|
19814
19909
|
J,
|
|
19815
19910
|
Q,
|
|
19816
|
-
|
|
19911
|
+
VM,
|
|
19817
19912
|
v,
|
|
19818
19913
|
$,
|
|
19819
|
-
VM,
|
|
19820
|
-
GM,
|
|
19821
19914
|
HM,
|
|
19915
|
+
KM,
|
|
19822
19916
|
UM,
|
|
19823
19917
|
WM,
|
|
19824
|
-
|
|
19918
|
+
GM,
|
|
19825
19919
|
qM,
|
|
19826
|
-
JM
|
|
19827
|
-
|
|
19920
|
+
JM,
|
|
19921
|
+
YM
|
|
19922
|
+
]), ZM = {
|
|
19828
19923
|
display: "flex",
|
|
19829
19924
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
19830
19925
|
height: "100%",
|
|
@@ -19832,7 +19927,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19832
19927
|
width: "100%"
|
|
19833
19928
|
};
|
|
19834
19929
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
19835
|
-
value:
|
|
19930
|
+
value: XM
|
|
19836
19931
|
}, (0, import_react.createElement)(h, {
|
|
19837
19932
|
..._,
|
|
19838
19933
|
children: t,
|
|
@@ -19840,7 +19935,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19840
19935
|
id: o,
|
|
19841
19936
|
ref: y,
|
|
19842
19937
|
style: {
|
|
19843
|
-
...
|
|
19938
|
+
...ZM,
|
|
19844
19939
|
...f
|
|
19845
19940
|
},
|
|
19846
19941
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -19917,31 +20012,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19917
20012
|
});
|
|
19918
20013
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
19919
20014
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
19920
|
-
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)({
|
|
19921
20016
|
state: J
|
|
19922
20017
|
});
|
|
19923
20018
|
useIsomorphicLayoutEffect$1(() => {
|
|
19924
|
-
|
|
20019
|
+
WM.current.state = J;
|
|
19925
20020
|
}), (0, import_react.useEffect)(() => {
|
|
19926
|
-
if (n)
|
|
20021
|
+
if (n) UM(null);
|
|
19927
20022
|
else {
|
|
19928
20023
|
let e2 = I(q);
|
|
19929
|
-
|
|
20024
|
+
UM(() => e2);
|
|
19930
20025
|
}
|
|
19931
20026
|
}, [
|
|
19932
20027
|
n,
|
|
19933
20028
|
q,
|
|
19934
20029
|
I
|
|
19935
20030
|
]);
|
|
19936
|
-
let
|
|
20031
|
+
let GM = (i == null ? void 0 : i.coarse) ?? 15, KM = (i == null ? void 0 : i.fine) ?? 5;
|
|
19937
20032
|
(0, import_react.useEffect)(() => {
|
|
19938
|
-
if (n ||
|
|
20033
|
+
if (n || HM == null) return;
|
|
19939
20034
|
let e2 = w.current;
|
|
19940
20035
|
assert(e2, "Element ref not attached");
|
|
19941
20036
|
let t2 = false;
|
|
19942
20037
|
return registerResizeHandle(q, e2, A, {
|
|
19943
|
-
coarse:
|
|
19944
|
-
fine:
|
|
20038
|
+
coarse: GM,
|
|
20039
|
+
fine: KM
|
|
19945
20040
|
}, (e3, n2, i2) => {
|
|
19946
20041
|
if (!n2) {
|
|
19947
20042
|
Q("inactive");
|
|
@@ -19955,8 +20050,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19955
20050
|
break;
|
|
19956
20051
|
}
|
|
19957
20052
|
case "move": {
|
|
19958
|
-
let { state: e4 } =
|
|
19959
|
-
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);
|
|
19960
20055
|
break;
|
|
19961
20056
|
}
|
|
19962
20057
|
case "up": {
|
|
@@ -19968,22 +20063,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19968
20063
|
}
|
|
19969
20064
|
});
|
|
19970
20065
|
}, [
|
|
19971
|
-
|
|
20066
|
+
GM,
|
|
19972
20067
|
A,
|
|
19973
20068
|
n,
|
|
19974
|
-
|
|
20069
|
+
KM,
|
|
19975
20070
|
I,
|
|
19976
20071
|
q,
|
|
19977
|
-
|
|
20072
|
+
HM,
|
|
19978
20073
|
z,
|
|
19979
20074
|
U
|
|
19980
20075
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
19981
20076
|
disabled: n,
|
|
19982
20077
|
handleId: q,
|
|
19983
|
-
resizeHandler:
|
|
20078
|
+
resizeHandler: HM,
|
|
19984
20079
|
panelGroupElement: K
|
|
19985
20080
|
});
|
|
19986
|
-
let
|
|
20081
|
+
let qM = {
|
|
19987
20082
|
touchAction: "none",
|
|
19988
20083
|
userSelect: "none"
|
|
19989
20084
|
};
|
|
@@ -20001,14 +20096,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20001
20096
|
ref: w,
|
|
20002
20097
|
role: "separator",
|
|
20003
20098
|
style: {
|
|
20004
|
-
...
|
|
20099
|
+
...qM,
|
|
20005
20100
|
..._
|
|
20006
20101
|
},
|
|
20007
20102
|
tabIndex: v,
|
|
20008
20103
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
20009
20104
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
20010
20105
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
20011
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
20106
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : VM ? "keyboard" : void 0,
|
|
20012
20107
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
20013
20108
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
20014
20109
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -20175,147 +20270,147 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20175
20270
|
Combobox = (e) => {
|
|
20176
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;
|
|
20177
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);
|
|
20178
|
-
let J = M === void 0 ? false : M, Q = I === void 0 ? true : I,
|
|
20179
|
-
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 = {
|
|
20180
20275
|
prop: w,
|
|
20181
|
-
defaultProp:
|
|
20276
|
+
defaultProp: UM,
|
|
20182
20277
|
onChange: v
|
|
20183
|
-
}, t[23] = v, t[24] = w, t[25] =
|
|
20184
|
-
let [
|
|
20185
|
-
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) => {
|
|
20186
20281
|
S == null ? void 0 : S(e2);
|
|
20187
|
-
}, t[27] = S, t[28] =
|
|
20188
|
-
let
|
|
20189
|
-
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 = {
|
|
20190
20285
|
prop: q,
|
|
20191
20286
|
defaultProp: c,
|
|
20192
|
-
onChange:
|
|
20193
|
-
}, t[29] = c, t[30] =
|
|
20194
|
-
let [
|
|
20195
|
-
t[33] ===
|
|
20196
|
-
let
|
|
20197
|
-
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) => {
|
|
20198
20293
|
let t2 = e2;
|
|
20199
|
-
if (J) if (Array.isArray(
|
|
20200
|
-
let n2 =
|
|
20294
|
+
if (J) if (Array.isArray(ZM)) if (ZM.includes(t2)) {
|
|
20295
|
+
let n2 = ZM.filter((t3) => t3 !== e2);
|
|
20201
20296
|
t2 = n2.length > 0 ? n2 : [];
|
|
20202
20297
|
} else t2 = [
|
|
20203
|
-
...
|
|
20298
|
+
...ZM,
|
|
20204
20299
|
t2
|
|
20205
20300
|
];
|
|
20206
20301
|
else t2 = [
|
|
20207
20302
|
t2
|
|
20208
20303
|
];
|
|
20209
|
-
else
|
|
20210
|
-
|
|
20211
|
-
}, t[35] = _, t[36] = J, t[37] =
|
|
20212
|
-
let
|
|
20213
|
-
t[41] !==
|
|
20214
|
-
let
|
|
20215
|
-
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
20216
|
-
let aN;
|
|
20217
|
-
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];
|
|
20218
20311
|
let oN;
|
|
20219
|
-
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);
|
|
20220
20313
|
let sN;
|
|
20221
|
-
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", {
|
|
20222
20317
|
className: "truncate flex-1 min-w-0",
|
|
20223
|
-
children:
|
|
20224
|
-
}), t[52] =
|
|
20225
|
-
let
|
|
20226
|
-
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, {
|
|
20227
20322
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
20228
|
-
}), t[54] =
|
|
20229
|
-
let
|
|
20230
|
-
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, {
|
|
20231
20326
|
asChild: true,
|
|
20232
20327
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20233
20328
|
id: h,
|
|
20234
|
-
className:
|
|
20235
|
-
"aria-expanded":
|
|
20329
|
+
className: oN,
|
|
20330
|
+
"aria-expanded": qM,
|
|
20236
20331
|
children: [
|
|
20237
|
-
|
|
20238
|
-
|
|
20332
|
+
cN,
|
|
20333
|
+
uN
|
|
20239
20334
|
]
|
|
20240
20335
|
})
|
|
20241
|
-
}), t[55] = h, t[56] =
|
|
20242
|
-
let
|
|
20243
|
-
t[60] !==
|
|
20244
|
-
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,
|
|
20245
20340
|
rootClassName: "px-1 h-8",
|
|
20246
20341
|
autoFocus: true,
|
|
20247
20342
|
value: A,
|
|
20248
20343
|
onValueChange: y
|
|
20249
|
-
}), t[60] =
|
|
20250
|
-
let pN;
|
|
20251
|
-
t[64] === $ ? pN = t[65] : (pN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20252
|
-
children: $
|
|
20253
|
-
}), t[64] = $, t[65] = pN);
|
|
20344
|
+
}), t[60] = VM, t[61] = y, t[62] = A, t[63] = pN) : pN = t[63];
|
|
20254
20345
|
let mN;
|
|
20255
|
-
t[
|
|
20256
|
-
|
|
20257
|
-
|
|
20258
|
-
}, 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);
|
|
20259
20349
|
let hN;
|
|
20260
|
-
t[
|
|
20261
|
-
|
|
20262
|
-
|
|
20263
|
-
}
|
|
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];
|
|
20264
20354
|
let gN;
|
|
20265
|
-
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, {
|
|
20266
20361
|
className: "max-h-60 py-.5",
|
|
20267
20362
|
children: [
|
|
20268
|
-
|
|
20269
|
-
|
|
20363
|
+
mN,
|
|
20364
|
+
gN
|
|
20270
20365
|
]
|
|
20271
|
-
}), t[72] =
|
|
20272
|
-
let
|
|
20273
|
-
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, {
|
|
20274
20369
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
20275
20370
|
align: "start",
|
|
20276
20371
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
20277
20372
|
filter: f,
|
|
20278
20373
|
shouldFilter: Q,
|
|
20279
20374
|
children: [
|
|
20280
|
-
|
|
20281
|
-
|
|
20375
|
+
pN,
|
|
20376
|
+
_N
|
|
20282
20377
|
]
|
|
20283
20378
|
})
|
|
20284
|
-
}), t[75] = f, t[76] = Q, t[77] =
|
|
20285
|
-
let
|
|
20286
|
-
t[80] !==
|
|
20287
|
-
open:
|
|
20288
|
-
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,
|
|
20289
20384
|
children: [
|
|
20290
|
-
|
|
20291
|
-
|
|
20385
|
+
fN,
|
|
20386
|
+
vN
|
|
20292
20387
|
]
|
|
20293
|
-
}), t[80] =
|
|
20294
|
-
let
|
|
20295
|
-
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", {
|
|
20296
20391
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
20297
|
-
children: Array.isArray(
|
|
20392
|
+
children: Array.isArray(ZM) && ZM.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
20298
20393
|
variant: "secondary",
|
|
20299
20394
|
children: [
|
|
20300
20395
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
20301
20396
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
20302
20397
|
onClick: () => {
|
|
20303
|
-
|
|
20398
|
+
nN(e2);
|
|
20304
20399
|
},
|
|
20305
20400
|
className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
|
|
20306
20401
|
})
|
|
20307
20402
|
]
|
|
20308
20403
|
}, String(e2)))
|
|
20309
|
-
}), t[85] =
|
|
20310
|
-
let
|
|
20311
|
-
return t[92] !== O || t[93] !==
|
|
20312
|
-
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,
|
|
20313
20408
|
...O,
|
|
20314
20409
|
children: [
|
|
20315
|
-
|
|
20316
|
-
|
|
20410
|
+
yN,
|
|
20411
|
+
bN
|
|
20317
20412
|
]
|
|
20318
|
-
}), t[92] = O, t[93] =
|
|
20413
|
+
}), t[92] = O, t[93] = yN, t[94] = bN, t[95] = xN) : xN = t[95], xN;
|
|
20319
20414
|
};
|
|
20320
20415
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
20321
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), _;
|
|
@@ -20343,184 +20438,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20343
20438
|
}), n[9] = i, n[10] = d, n[11] = t, n[12] = _, n[13] = v, n[14] = y, n[15] = f, n[16] = S) : S = n[16], S;
|
|
20344
20439
|
});
|
|
20345
20440
|
ComboboxItem.displayName = "ComboboxItem";
|
|
20346
|
-
|
|
20347
|
-
merge(...e) {
|
|
20348
|
-
let t = /* @__PURE__ */ new Set();
|
|
20349
|
-
for (let n of e) for (let e2 of n) t.add(e2);
|
|
20350
|
-
return t;
|
|
20351
|
-
},
|
|
20352
|
-
equals(e, t) {
|
|
20353
|
-
if (e.size !== t.size) return false;
|
|
20354
|
-
for (let n of e) if (!t.has(n)) return false;
|
|
20355
|
-
return true;
|
|
20356
|
-
},
|
|
20357
|
-
toggle(e, t) {
|
|
20358
|
-
let n = new Set(e);
|
|
20359
|
-
return n.has(t) ? n.delete(t) : n.add(t), n;
|
|
20360
|
-
}
|
|
20361
|
-
};
|
|
20362
|
-
var TOP_K_ROWS = 30;
|
|
20363
|
-
const FilterByValuesPicker = ({ column: e, calculateTopKRows: t, chosenValues: n, onChange: i }) => {
|
|
20364
|
-
let [o, s] = (0, import_react.useState)(false), c = (0, import_react.useMemo)(() => new Set(n), [
|
|
20365
|
-
n
|
|
20366
|
-
]), d = (0, import_react.useMemo)(() => c.size === 0 ? "Select values\u2026" : `[${[
|
|
20367
|
-
...c
|
|
20368
|
-
].map((e2) => stringifyUnknownValue({
|
|
20369
|
-
value: e2
|
|
20370
|
-
})).join(", ")}]`, [
|
|
20371
|
-
c
|
|
20372
|
-
]);
|
|
20373
|
-
return (0, import_jsx_runtime.jsxs)(Popover, {
|
|
20374
|
-
open: o,
|
|
20375
|
-
onOpenChange: s,
|
|
20376
|
-
children: [
|
|
20377
|
-
(0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
20378
|
-
asChild: true,
|
|
20379
|
-
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
20380
|
-
variant: "outline",
|
|
20381
|
-
size: "xs",
|
|
20382
|
-
className: "h-6 mb-1 w-full justify-between font-normal",
|
|
20383
|
-
children: [
|
|
20384
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
20385
|
-
className: cn("truncate", c.size === 0 && "text-muted-foreground"),
|
|
20386
|
-
children: d
|
|
20387
|
-
}),
|
|
20388
|
-
(0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
20389
|
-
className: "h-4 w-4 opacity-50 shrink-0"
|
|
20390
|
-
})
|
|
20391
|
-
]
|
|
20392
|
-
})
|
|
20393
|
-
}),
|
|
20394
|
-
(0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
20395
|
-
className: "w-80 p-0",
|
|
20396
|
-
children: (0, import_jsx_runtime.jsx)(PickerBody, {
|
|
20397
|
-
column: e,
|
|
20398
|
-
calculateTopKRows: t,
|
|
20399
|
-
chosenValues: c,
|
|
20400
|
-
onChange: i
|
|
20401
|
-
})
|
|
20402
|
-
})
|
|
20403
|
-
]
|
|
20404
|
-
});
|
|
20405
|
-
};
|
|
20406
|
-
var PickerBody = ({ column: e, calculateTopKRows: t, chosenValues: i, onChange: a }) => {
|
|
20407
|
-
let [o, s] = (0, import_react.useState)(""), { data: c, isPending: d, error: f } = useAsyncData(async () => t ? (await t({
|
|
20408
|
-
column: e.id,
|
|
20409
|
-
k: TOP_K_ROWS
|
|
20410
|
-
})).data : null, [
|
|
20411
|
-
t,
|
|
20412
|
-
e.id
|
|
20413
|
-
]), h = (0, import_react.useMemo)(() => {
|
|
20414
|
-
if (!c) return [];
|
|
20415
|
-
try {
|
|
20416
|
-
return c.filter(([e2, t2]) => {
|
|
20417
|
-
if (e2 === void 0) return false;
|
|
20418
|
-
let n = String(e2);
|
|
20419
|
-
return smartMatch(o, n) || n.toLowerCase().includes(o.toLowerCase());
|
|
20420
|
-
});
|
|
20421
|
-
} catch (e2) {
|
|
20422
|
-
return Logger.error("Error filtering data", e2), [];
|
|
20423
|
-
}
|
|
20424
|
-
}, [
|
|
20425
|
-
c,
|
|
20426
|
-
o
|
|
20427
|
-
]), _ = (e2) => {
|
|
20428
|
-
a([
|
|
20429
|
-
...Sets.toggle(i, e2)
|
|
20430
|
-
]);
|
|
20431
|
-
}, v = h.length > 0 && h.every(([e2]) => i.has(e2)), y = v ? true : i.size > 0 ? "indeterminate" : false;
|
|
20432
|
-
return d ? (0, import_jsx_runtime.jsx)(Spinner, {
|
|
20433
|
-
size: "medium",
|
|
20434
|
-
className: "mx-auto mt-12 mb-10"
|
|
20435
|
-
}) : f ? (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
20436
|
-
error: f,
|
|
20437
|
-
className: "my-10 mx-4"
|
|
20438
|
-
}) : c ? (0, import_jsx_runtime.jsxs)(Command, {
|
|
20439
|
-
className: "text-sm outline-hidden",
|
|
20440
|
-
shouldFilter: false,
|
|
20441
|
-
children: [
|
|
20442
|
-
(0, import_jsx_runtime.jsx)(CommandInput, {
|
|
20443
|
-
placeholder: `Search among the top ${c.length} values`,
|
|
20444
|
-
autoFocus: true,
|
|
20445
|
-
onValueChange: (e2) => s(e2.trim())
|
|
20446
|
-
}),
|
|
20447
|
-
(0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
20448
|
-
children: "No results found."
|
|
20449
|
-
}),
|
|
20450
|
-
(0, import_jsx_runtime.jsxs)(CommandList, {
|
|
20451
|
-
children: [
|
|
20452
|
-
h.length > 0 && (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
20453
|
-
value: "__select-all__",
|
|
20454
|
-
className: "border-b rounded-none px-3",
|
|
20455
|
-
onSelect: () => {
|
|
20456
|
-
if (!c) return;
|
|
20457
|
-
let e2 = new Set(i);
|
|
20458
|
-
if (v) for (let [t2] of h) e2.delete(t2);
|
|
20459
|
-
else for (let [t2] of h) e2.add(t2);
|
|
20460
|
-
a([
|
|
20461
|
-
...e2
|
|
20462
|
-
]);
|
|
20463
|
-
},
|
|
20464
|
-
children: [
|
|
20465
|
-
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
20466
|
-
checked: y,
|
|
20467
|
-
"aria-label": "Select all",
|
|
20468
|
-
className: "mr-3 h-3.5 w-3.5"
|
|
20469
|
-
}),
|
|
20470
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
20471
|
-
className: "font-bold flex-1",
|
|
20472
|
-
children: e.id
|
|
20473
|
-
}),
|
|
20474
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
20475
|
-
className: "font-bold",
|
|
20476
|
-
children: "Count"
|
|
20477
|
-
})
|
|
20478
|
-
]
|
|
20479
|
-
}),
|
|
20480
|
-
h.map(([t2, n]) => {
|
|
20481
|
-
var _a2;
|
|
20482
|
-
let a2 = i.has(t2), o2 = stringifyUnknownValue({
|
|
20483
|
-
value: t2
|
|
20484
|
-
}), s2 = detectSentinel(t2, (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType);
|
|
20485
|
-
return (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
20486
|
-
value: o2,
|
|
20487
|
-
className: "not-last:border-b rounded-none px-3",
|
|
20488
|
-
onSelect: () => _(t2),
|
|
20489
|
-
children: [
|
|
20490
|
-
(0, import_jsx_runtime.jsx)(Checkbox, {
|
|
20491
|
-
checked: a2,
|
|
20492
|
-
"aria-label": "Select row",
|
|
20493
|
-
className: "mr-3 h-3.5 w-3.5"
|
|
20494
|
-
}),
|
|
20495
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
20496
|
-
className: "flex-1 overflow-hidden max-h-20 line-clamp-3",
|
|
20497
|
-
children: s2 ? (0, import_jsx_runtime.jsx)(SentinelCell, {
|
|
20498
|
-
sentinel: s2
|
|
20499
|
-
}) : o2
|
|
20500
|
-
}),
|
|
20501
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
20502
|
-
className: "ml-3",
|
|
20503
|
-
children: n
|
|
20504
|
-
})
|
|
20505
|
-
]
|
|
20506
|
-
}, o2);
|
|
20507
|
-
})
|
|
20508
|
-
]
|
|
20509
|
-
}),
|
|
20510
|
-
c.length === TOP_K_ROWS && (0, import_jsx_runtime.jsxs)("span", {
|
|
20511
|
-
className: "text-xs text-muted-foreground py-1.5 text-center",
|
|
20512
|
-
children: [
|
|
20513
|
-
"Only showing the top ",
|
|
20514
|
-
TOP_K_ROWS,
|
|
20515
|
-
" values"
|
|
20516
|
-
]
|
|
20517
|
-
})
|
|
20518
|
-
]
|
|
20519
|
-
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
20520
|
-
className: "py-6 px-4 text-sm text-muted-foreground text-center",
|
|
20521
|
-
children: "No values available"
|
|
20522
|
-
});
|
|
20523
|
-
}, OPERATORS_BY_TYPE = {
|
|
20441
|
+
var OPERATORS_BY_TYPE = {
|
|
20524
20442
|
number: [
|
|
20525
20443
|
"between",
|
|
20526
20444
|
"is_null",
|
|
@@ -22565,10 +22483,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
22565
22483
|
clearSelection: i.clearSelection
|
|
22566
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;
|
|
22567
22485
|
};
|
|
22568
|
-
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
|
+
]);
|
|
22569
22490
|
function isInteractiveTarget(e) {
|
|
22570
|
-
|
|
22571
|
-
|
|
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;
|
|
22572
22506
|
}
|
|
22573
22507
|
var import_compiler_runtime$11 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
|
|
22574
22508
|
function useScrollIntoViewOnFocus(e) {
|
|
@@ -23503,7 +23437,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23503
23437
|
filename: i2.filename
|
|
23504
23438
|
};
|
|
23505
23439
|
}, t[5] = e, t[6] = v);
|
|
23506
|
-
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, $;
|
|
23507
23441
|
if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
|
|
23508
23442
|
let e2 = async (t2) => {
|
|
23509
23443
|
let n2 = await y(t2, () => {
|
|
@@ -23553,7 +23487,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23553
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, {
|
|
23554
23488
|
className: "text-xs text-muted-foreground",
|
|
23555
23489
|
children: "Download"
|
|
23556
|
-
}), t[29] = Q) : Q = t[29],
|
|
23490
|
+
}), t[29] = Q) : Q = t[29], VM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23557
23491
|
onSelect: () => {
|
|
23558
23492
|
e2(t2.format);
|
|
23559
23493
|
},
|
|
@@ -23606,30 +23540,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23606
23540
|
]
|
|
23607
23541
|
})
|
|
23608
23542
|
]
|
|
23609
|
-
}, 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] =
|
|
23610
|
-
} 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],
|
|
23611
|
-
let
|
|
23612
|
-
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, {
|
|
23613
23547
|
side: q,
|
|
23614
23548
|
className: J,
|
|
23615
23549
|
children: [
|
|
23616
23550
|
Q,
|
|
23617
|
-
|
|
23551
|
+
VM,
|
|
23618
23552
|
$,
|
|
23619
23553
|
A,
|
|
23620
23554
|
M
|
|
23621
23555
|
]
|
|
23622
|
-
}), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] =
|
|
23623
|
-
let
|
|
23624
|
-
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, {
|
|
23625
23559
|
modal: I,
|
|
23626
23560
|
open: z,
|
|
23627
23561
|
onOpenChange: U,
|
|
23628
23562
|
children: [
|
|
23629
23563
|
K,
|
|
23630
|
-
|
|
23564
|
+
HM
|
|
23631
23565
|
]
|
|
23632
|
-
}), 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;
|
|
23633
23567
|
};
|
|
23634
23568
|
function fetchJson(e) {
|
|
23635
23569
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -23720,22 +23654,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23720
23654
|
]
|
|
23721
23655
|
}) : null;
|
|
23722
23656
|
};
|
|
23723
|
-
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:
|
|
23724
|
-
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);
|
|
23725
23659
|
import_react.useEffect(() => {
|
|
23726
23660
|
let e2;
|
|
23727
|
-
return
|
|
23728
|
-
|
|
23729
|
-
}, 300) :
|
|
23661
|
+
return KM ? e2 = setTimeout(() => {
|
|
23662
|
+
oN(true);
|
|
23663
|
+
}, 300) : oN(false), () => {
|
|
23730
23664
|
e2 && clearTimeout(e2);
|
|
23731
23665
|
};
|
|
23732
23666
|
}, [
|
|
23733
|
-
|
|
23667
|
+
KM
|
|
23734
23668
|
]);
|
|
23735
|
-
function
|
|
23669
|
+
function uN(e2, t2) {
|
|
23736
23670
|
return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
|
|
23737
23671
|
}
|
|
23738
|
-
let
|
|
23672
|
+
let dN = useReactTable({
|
|
23739
23673
|
_features: [
|
|
23740
23674
|
ColumnPinning,
|
|
23741
23675
|
ColumnWrappingFeature,
|
|
@@ -23759,11 +23693,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23759
23693
|
getRowId: (e2, t2) => {
|
|
23760
23694
|
let n2 = getStableRowId(e2);
|
|
23761
23695
|
if (n2) return n2;
|
|
23762
|
-
let i2 =
|
|
23696
|
+
let i2 = uN(e2, t2);
|
|
23763
23697
|
return String(i2);
|
|
23764
23698
|
}
|
|
23765
23699
|
} : {},
|
|
23766
|
-
locale:
|
|
23700
|
+
locale: sN,
|
|
23767
23701
|
manualPagination: z,
|
|
23768
23702
|
getPaginationRowModel: getPaginationRowModel(),
|
|
23769
23703
|
...v ? {
|
|
@@ -23773,21 +23707,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23773
23707
|
enableMultiSort: true,
|
|
23774
23708
|
getSortedRowModel: getSortedRowModel(),
|
|
23775
23709
|
manualFiltering: true,
|
|
23776
|
-
enableColumnFilters:
|
|
23710
|
+
enableColumnFilters: HM,
|
|
23777
23711
|
getFilteredRowModel: getFilteredRowModel(),
|
|
23778
|
-
onColumnFiltersChange:
|
|
23712
|
+
onColumnFiltersChange: WM,
|
|
23779
23713
|
onRowSelectionChange: K,
|
|
23780
23714
|
onCellSelectionChange: q,
|
|
23781
23715
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
23782
23716
|
enableMultiCellSelection: c === "multi-cell",
|
|
23783
|
-
onColumnPinningChange:
|
|
23717
|
+
onColumnPinningChange: lN,
|
|
23784
23718
|
enableFocusRow: true,
|
|
23785
|
-
onFocusRowChange:
|
|
23719
|
+
onFocusRowChange: iN,
|
|
23786
23720
|
state: {
|
|
23787
23721
|
..._ ? {
|
|
23788
23722
|
sorting: _
|
|
23789
23723
|
} : {},
|
|
23790
|
-
columnFilters:
|
|
23724
|
+
columnFilters: UM,
|
|
23791
23725
|
...A ? {
|
|
23792
23726
|
pagination: A
|
|
23793
23727
|
} : U && !A ? {} : {
|
|
@@ -23799,21 +23733,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23799
23733
|
rowSelection: y ?? {},
|
|
23800
23734
|
cellSelection: S ?? [],
|
|
23801
23735
|
cellStyling: w,
|
|
23802
|
-
columnPinning:
|
|
23736
|
+
columnPinning: cN,
|
|
23803
23737
|
cellHoverTemplate: E,
|
|
23804
23738
|
cellHoverTexts: O ?? {}
|
|
23805
23739
|
}
|
|
23806
|
-
}),
|
|
23740
|
+
}), fN = (tN == null ? void 0 : tN(PANEL_TYPES.ROW_VIEWER)) ?? false, pN = !U && o.length > 100, mN = useScrollContainerHeight({
|
|
23807
23741
|
maxHeight: n,
|
|
23808
|
-
virtualize:
|
|
23742
|
+
virtualize: pN
|
|
23809
23743
|
});
|
|
23810
23744
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
23811
23745
|
className: cn(e, "flex flex-col space-y-1"),
|
|
23812
23746
|
children: [
|
|
23813
23747
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
23814
|
-
filters:
|
|
23815
|
-
table:
|
|
23816
|
-
calculateTopKRows:
|
|
23748
|
+
filters: UM,
|
|
23749
|
+
table: dN,
|
|
23750
|
+
calculateTopKRows: GM
|
|
23817
23751
|
}),
|
|
23818
23752
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
23819
23753
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23822,32 +23756,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23822
23756
|
children: [
|
|
23823
23757
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
23824
23758
|
enableSearch: Q,
|
|
23825
|
-
searchQuery:
|
|
23759
|
+
searchQuery: VM,
|
|
23826
23760
|
onSearchQueryChange: $,
|
|
23827
|
-
reloading:
|
|
23828
|
-
showChartBuilder:
|
|
23829
|
-
isChartBuilderOpen:
|
|
23830
|
-
toggleDisplayHeader:
|
|
23831
|
-
showTableExplorer:
|
|
23832
|
-
togglePanel:
|
|
23833
|
-
isAnyPanelOpen:
|
|
23761
|
+
reloading: KM,
|
|
23762
|
+
showChartBuilder: XM,
|
|
23763
|
+
isChartBuilderOpen: ZM,
|
|
23764
|
+
toggleDisplayHeader: YM,
|
|
23765
|
+
showTableExplorer: $M,
|
|
23766
|
+
togglePanel: eN,
|
|
23767
|
+
isAnyPanelOpen: nN,
|
|
23834
23768
|
downloadAs: I
|
|
23835
23769
|
}),
|
|
23836
23770
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
23837
23771
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
23838
|
-
ref:
|
|
23772
|
+
ref: mN,
|
|
23839
23773
|
children: [
|
|
23840
|
-
|
|
23774
|
+
aN && (0, import_jsx_runtime.jsx)("thead", {
|
|
23841
23775
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
23842
23776
|
}),
|
|
23843
|
-
renderTableHeader(
|
|
23777
|
+
renderTableHeader(dN, pN || !!n),
|
|
23844
23778
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
23845
|
-
table:
|
|
23779
|
+
table: dN,
|
|
23846
23780
|
columns: i,
|
|
23847
|
-
rowViewerPanelOpen:
|
|
23848
|
-
getRowIndex:
|
|
23849
|
-
viewedRowIdx:
|
|
23850
|
-
virtualize:
|
|
23781
|
+
rowViewerPanelOpen: fN,
|
|
23782
|
+
getRowIndex: uN,
|
|
23783
|
+
viewedRowIdx: rN,
|
|
23784
|
+
virtualize: pN
|
|
23851
23785
|
})
|
|
23852
23786
|
]
|
|
23853
23787
|
}),
|
|
@@ -23858,10 +23792,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23858
23792
|
pagination: U,
|
|
23859
23793
|
selection: c,
|
|
23860
23794
|
onRowSelectionChange: K,
|
|
23861
|
-
table:
|
|
23795
|
+
table: dN,
|
|
23862
23796
|
getRowIds: J,
|
|
23863
|
-
showPageSizeSelector:
|
|
23864
|
-
tableLoading:
|
|
23797
|
+
showPageSizeSelector: QM,
|
|
23798
|
+
tableLoading: KM
|
|
23865
23799
|
})
|
|
23866
23800
|
]
|
|
23867
23801
|
})
|
|
@@ -23951,67 +23885,67 @@ ${_}`,
|
|
|
23951
23885
|
});
|
|
23952
23886
|
}, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
|
|
23953
23887
|
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
|
|
23954
|
-
let
|
|
23955
|
-
t[11] ===
|
|
23956
|
-
let
|
|
23957
|
-
t[13] ===
|
|
23958
|
-
className:
|
|
23959
|
-
}), t[13] =
|
|
23960
|
-
let
|
|
23961
|
-
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", {
|
|
23962
23896
|
className: "text-destructive",
|
|
23963
23897
|
children: [
|
|
23964
|
-
|
|
23898
|
+
GM,
|
|
23965
23899
|
":"
|
|
23966
23900
|
]
|
|
23967
|
-
}), t[15] =
|
|
23968
|
-
let
|
|
23969
|
-
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", {
|
|
23970
23904
|
className: "text-sm inline font-mono",
|
|
23971
23905
|
children: [
|
|
23972
|
-
|
|
23906
|
+
KM,
|
|
23973
23907
|
" ",
|
|
23974
23908
|
J
|
|
23975
23909
|
]
|
|
23976
|
-
}), t[17] = J, t[18] =
|
|
23977
|
-
let
|
|
23978
|
-
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", {
|
|
23979
23913
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
23980
23914
|
onClick: $,
|
|
23981
23915
|
children: [
|
|
23982
|
-
|
|
23983
|
-
|
|
23916
|
+
WM,
|
|
23917
|
+
qM
|
|
23984
23918
|
]
|
|
23985
|
-
}), t[20] =
|
|
23986
|
-
let
|
|
23987
|
-
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, {
|
|
23988
23922
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
23989
23923
|
children: c
|
|
23990
|
-
}), t[23] = c, t[24] =
|
|
23991
|
-
let
|
|
23992
|
-
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, {
|
|
23993
23927
|
value: KEY,
|
|
23994
23928
|
className: "border-none",
|
|
23995
23929
|
children: [
|
|
23996
|
-
|
|
23997
|
-
|
|
23930
|
+
YM,
|
|
23931
|
+
XM
|
|
23998
23932
|
]
|
|
23999
|
-
}), t[25] =
|
|
24000
|
-
let
|
|
24001
|
-
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, {
|
|
24002
23936
|
type: "single",
|
|
24003
23937
|
collapsible: true,
|
|
24004
23938
|
value: Q,
|
|
24005
|
-
children:
|
|
24006
|
-
}), t[28] =
|
|
24007
|
-
let
|
|
24008
|
-
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, {
|
|
24009
23943
|
tooltip: "Fix with AI",
|
|
24010
23944
|
openPrompt: () => K(false),
|
|
24011
23945
|
applyAutofix: () => K(true)
|
|
24012
|
-
}), t[31] = K, t[32] = I, t[33] =
|
|
24013
|
-
let
|
|
24014
|
-
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, {
|
|
24015
23949
|
content: "Attach pdb to the exception point.",
|
|
24016
23950
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
24017
23951
|
size: "xs",
|
|
@@ -24028,9 +23962,9 @@ ${_}`,
|
|
|
24028
23962
|
"Launch debugger"
|
|
24029
23963
|
]
|
|
24030
23964
|
})
|
|
24031
|
-
}), t[34] = A, t[35] = E, t[36] =
|
|
24032
|
-
let
|
|
24033
|
-
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, {
|
|
24034
23968
|
children: [
|
|
24035
23969
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
24036
23970
|
asChild: true,
|
|
@@ -24098,24 +24032,24 @@ ${_}`,
|
|
|
24098
24032
|
]
|
|
24099
24033
|
})
|
|
24100
24034
|
]
|
|
24101
|
-
}), t[37] = _, t[38] = i, t[39] =
|
|
24102
|
-
let
|
|
24103
|
-
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", {
|
|
24104
24038
|
className: "flex gap-2",
|
|
24105
24039
|
children: [
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
|
|
24040
|
+
eN,
|
|
24041
|
+
nN,
|
|
24042
|
+
rN
|
|
24109
24043
|
]
|
|
24110
|
-
}), t[40] =
|
|
24111
|
-
let
|
|
24112
|
-
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", {
|
|
24113
24047
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
24114
24048
|
children: [
|
|
24115
|
-
|
|
24116
|
-
|
|
24049
|
+
$M,
|
|
24050
|
+
iN
|
|
24117
24051
|
]
|
|
24118
|
-
}), t[44] =
|
|
24052
|
+
}), t[44] = $M, t[45] = iN, t[46] = aN) : aN = t[46], aN;
|
|
24119
24053
|
};
|
|
24120
24054
|
function lastLine(e) {
|
|
24121
24055
|
var _a2, _b;
|
|
@@ -25424,7 +25358,7 @@ ${_}`,
|
|
|
25424
25358
|
}
|
|
25425
25359
|
});
|
|
25426
25360
|
export {
|
|
25427
|
-
|
|
25361
|
+
INDEX_COLUMN_NAME as $,
|
|
25428
25362
|
slotsController as A,
|
|
25429
25363
|
Expand as At,
|
|
25430
25364
|
NAMELESS_COLUMN_PREFIX as B,
|
|
@@ -25452,7 +25386,7 @@ export {
|
|
|
25452
25386
|
Funnel as Ot,
|
|
25453
25387
|
Table as P,
|
|
25454
25388
|
ChevronsRight as Pt,
|
|
25455
|
-
|
|
25389
|
+
loadTableData as Q,
|
|
25456
25390
|
TableHeader as R,
|
|
25457
25391
|
ArrowDownWideNarrow as Rt,
|
|
25458
25392
|
ComboboxItem as S,
|
|
@@ -25462,9 +25396,9 @@ export {
|
|
|
25462
25396
|
renderCellValue as U,
|
|
25463
25397
|
generateColumns as V,
|
|
25464
25398
|
ColumnChartContext as W,
|
|
25465
|
-
|
|
25466
|
-
|
|
25467
|
-
|
|
25399
|
+
getPageIndexForRow as X,
|
|
25400
|
+
filtersToFilterGroup as Y,
|
|
25401
|
+
loadTableAndRawData as Z,
|
|
25468
25402
|
Filenames as _,
|
|
25469
25403
|
__tla,
|
|
25470
25404
|
ChartLoadingState as _t,
|
|
@@ -25476,7 +25410,7 @@ export {
|
|
|
25476
25410
|
CommandList as ct,
|
|
25477
25411
|
DataTable as d,
|
|
25478
25412
|
Tabs as dt,
|
|
25479
|
-
|
|
25413
|
+
SELECT_COLUMN_ID as et,
|
|
25480
25414
|
InstallPackageButton as f,
|
|
25481
25415
|
TabsContent as ft,
|
|
25482
25416
|
downloadHTMLAsImage as g,
|
|
@@ -25494,18 +25428,18 @@ export {
|
|
|
25494
25428
|
downloadBlob as m,
|
|
25495
25429
|
TabsTrigger as mt,
|
|
25496
25430
|
DEFAULT_SLIDE_TYPE as n,
|
|
25497
|
-
|
|
25431
|
+
toFieldTypes as nt,
|
|
25498
25432
|
RadioGroup as o,
|
|
25499
25433
|
CommandInput as ot,
|
|
25500
25434
|
ADD_PRINTING_CLASS as p,
|
|
25501
25435
|
TabsList as pt,
|
|
25502
25436
|
useIntersectionObserver as q,
|
|
25503
25437
|
SLIDE_TYPE_OPTIONS_BY_VALUE as r,
|
|
25504
|
-
|
|
25438
|
+
getMimeValues as rt,
|
|
25505
25439
|
RadioGroupItem as s,
|
|
25506
25440
|
CommandItem as st,
|
|
25507
25441
|
DEFAULT_DECK_TRANSITION as t,
|
|
25508
|
-
|
|
25442
|
+
TOO_MANY_ROWS as tt,
|
|
25509
25443
|
OutputRenderer as u,
|
|
25510
25444
|
Maps as ut,
|
|
25511
25445
|
prettifyRowColumnCount as v,
|