@marimo-team/islands 0.23.17-dev30 → 0.23.17-dev32
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/{chat-ui-CnjFz0bt.js → chat-ui-Cjd9kIcO.js} +56 -56
- package/dist/{common-BxnkCaMd.js → common-XU-hyhVj.js} +629 -629
- package/dist/{html-to-image-B8KJvlou.js → html-to-image-Bgb6aaXi.js} +2154 -2150
- package/dist/main.js +668 -675
- package/dist/{process-output-CjS9wS4l.js → process-output-D2Oxf11p.js} +1 -1
- package/dist/{reveal-component-D8ttQmaR.js → reveal-component-DEpX3cZP.js} +2 -2
- package/package.json +1 -1
- package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
- package/src/components/data-table/charts/schemas.ts +5 -2
- package/src/components/datasets/__tests__/icons.test.ts +21 -0
- package/src/components/datasets/icons.tsx +10 -0
- package/src/components/datasources/__tests__/components.test.tsx +29 -0
- package/src/components/datasources/components.tsx +8 -3
- package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
- package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
- package/src/plugins/impl/data-frames/schema.ts +4 -1
package/dist/main.js
CHANGED
|
@@ -22,17 +22,17 @@ import { _ as Functions, c as useEventListener, f as composeRefs, g as Logger, h
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-D45ZUY3j.js";
|
|
25
|
-
import { $ as notebookOutline, $t as
|
|
25
|
+
import { $ as notebookOutline, $t as isUninstantiated, A as ChevronDownIcon, An as Item$1, At as DeferredRequestRegistry, Bn as Layers, C as Accordion, Ct as MarkdownLanguageAdapter, D as BorderAllIcon, E as AccordionTrigger, En as selectAtom, Et as Paths, Fn as Table2, G as hasRunAnyCellAtom, Gn as Database, Gt as require_client, H as renderHTML, Hn as FileText, Ht as DATA_TYPE_ICON, I as base64ToDataView, In as PaintRoller, Jn as CircleAlert, K as cellIdsAtom, Kn as Columns2, Lt as repl, Mn as Trigger2, Pn as Trash2, Pt as jotaiJsonStorage, Q as notebookAtom, Qt as useRequestClient, R as dataViewToBase64, Rt as SQLParser, Sn as jsonParseWithSpecialChar, St as isRecord, T as AccordionItem, Tn as atomWithStorage, Tt as PathBuilder, U as getMarimoExportContext, Un as Eye, V as safeExtractSetUIElementMessageBuffers, Vn as Info, Vt as PluralWords, W as hasTrustedExportContext, X as hasOnlyOneCellAtom, Xt as getRequestClient, Y as getCellNames, Yn as Braces, Yt as convertStatsName, Z as initialNotebookState, Zt as requestClientAtom, _t as isInternalCellName, a as useCellFocusActions, at as createCell, bn as OBJECT_ID_ATTR, bt as customPythonLanguageSupport, dt as headingToIdentifier, en as publishedCellClasses, et as numColumnsAtom, f as isOutputEmpty, fn as parseAttrValue, gn as HTMLCellId, gt as getValidName, i as LazyAnyLanguageCodeMirror, jn as Root2$1, jt as generateUUID, kn as Content2, ln as NotebookScopedLocalStorage, lt as outputIsLoading, mn as parseInitialValue, n as Spinner, nt as useCellActions, o as useLastFocusedCellId, p as useExpandedConsoleOutput, pn as parseDataset, q as createActions, rt as useCellIds, s as maybeAddAltairImport, tn as shouldHidePublishedCell, tt as reducer, ut as outputIsStale, vn as UIElementId, vt as normalizeName, w as AccordionContent, wn as atomWithReducer, xn as RANDOM_ID_ATTR, xt as hasFunctionProperty, yn as findCellId, yt as Checkbox, zn as LoaderCircle, zt as MarkdownParser, __tla as __tla_0 } from "./html-to-image-Bgb6aaXi.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-B9WoXK1R.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-DgzzIPS4.js";
|
|
28
|
-
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS
|
|
29
|
-
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-
|
|
28
|
+
import { A as SquareFunction, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, O as TIME_UNIT_DESCRIPTIONS, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as ChartColumn, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-C7rMyZ_8.js";
|
|
29
|
+
import { $ as CommandSeparator, $t as Kbd, A as ErrorState, At as getPageIndexForRow, B as ContextMenuTrigger, Bt as dateToLocalISODate, C as downloadHTMLAsImage, Ct as inferFieldTypes, D as ColumnName, Dt as DelayMount, E as downloadSizeLimitAtom, Et as ColumnChartSpecModel, F as getUserColumnVisibilityCounts, Ft as TOO_MANY_ROWS, G as DateRangePicker, Gt as TabsList, H as useSelectList, Ht as dateToLocalISOTime, I as ContextMenu, It as toFieldTypes, J as Command, Jt as ChartInfoState, K as Combobox, Kt as TabsTrigger, L as ContextMenuContent, Lt as getMimeValues, M as prettifyRowColumnCount, Mt as loadTableData, N as prettifyRowCount, Nt as INDEX_COLUMN_NAME, O as ColumnPreviewContainer, Ot as useIntersectionObserver, P as getColumnCountForDisplay, Pt as SELECT_COLUMN_ID, Q as CommandList, Qt as RenderTextWithLinks, R as ContextMenuItem, Rt as isNullishFilter, S as downloadExportedFile, St as generateColumns, T as Filenames, Tt as ColumnChartContext, U as CompactChipRow, Ut as Tabs, V as useInternalStateWithSync, Vt as dateToLocalISODateTime, W as DatePicker, Wt as TabsContent, X as CommandInput, Xt as LazyVegaEmbed, Y as CommandEmpty, Yt as ChartLoadingState, Z as CommandItem, Zt as useOverflowDetection, _ as DataTable, _n as ChevronLeft, _t as TableCell, an as TextWrap, at as contextAwarePanelType, b as downloadBlob, bt as TableRow, c as SLIDE_TYPE_OPTIONS_BY_VALUE, cn as EyeOff, ct as slotsController, d as Switch, dn as Download, en as HtmlOutput, et as smartMatch, f as RadioGroup, fn as Code, g as OutputRenderer, gn as ChevronsDownUp, gt as TableBody, h as OutputArea, hn as ChevronsLeft, ht as Table, i as showCodeInRunModeAtom, in as $fae977aafc393c5c$export$6b862160d295c8e, it as contextAwarePanelOwner, j as LoadingState, jt as loadTableAndRawData, k as EmptyState, kt as usePrevious$1, lt as Toggle, m as JsonOutput, mn as ChevronsRight, mt as Provider$1, n as useNotebookCodeAvailable, nn as safeLocale, nt as PANEL_TYPES, on as GripHorizontal, ot as isCellAwareAtom, p as RadioGroupItem, pn as ChevronsUpDown, pt as Fill, q as ComboboxItem, qt as ChartErrorState, r as marimoVersionAtom, rn as $fae977aafc393c5c$export$588937bcd60ade55, rt as contextAwarePanelOpen, sn as Funnel, st as SlotNames, t as cellDomProps, tn as EmotionCacheProvider, tt as ContextAwarePanelItem, u as Slide, un as Ellipsis, v as InstallPackageButton, vn as ArrowDownWideNarrow, vt as TableHead, w as Progress, wt as renderCellValue, x as downloadByURL, xt as NAMELESS_COLUMN_PREFIX, y as ADD_PRINTING_CLASS, yt as TableHeader, z as ContextMenuSeparator, zt as Maps, __tla as __tla_2 } from "./common-XU-hyhVj.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-CLPBATCv.js";
|
|
31
31
|
import { t as Check } from "./check-CCvJTB2E.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-CITcoFNY.js";
|
|
33
33
|
import { B as $64fa3d84918910a7$export$4d86445c2cf5e3, C as DropdownMenuTrigger, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, It as $3ef42575df84b30b$export$9d1611c77c2fe928, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, X as useDebouncedCallback, Y as useDebounceControlledState, a as NumberField, d as roundToFractionDigits, f as DropdownMenu, g as DropdownMenuLabel, gn as ChevronRight, h as DropdownMenuItem, hn as Circle, i as OnBlurredInput, l as prettyNumber, m as DropdownMenuGroup, n as DebouncedNumberInput, o as maxFractionDigitsForSteps, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pt as $6179b936705e76d3$export$ae780daf29e6d456, r as Input, st as $701a24aa0da5b062$export$ea18c227d4417cc3, t as DebouncedInput, u as prettyScientificNumber, v as DropdownMenuSeparator, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, y as DropdownMenuShortcut, z as $64fa3d84918910a7$export$29f1550f4b0d4415 } from "./input-DtTqU0xh.js";
|
|
34
34
|
import { S as isWasm, _ as initialModeAtom, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, f as appendQueryParams, g as getInitialAppMode, m as require_cuid2, u as getStaticVirtualFiles, v as kioskModeAtom, w as CircleQuestionMark, x as Deferred } from "./toDate-kxcuDOWd.js";
|
|
35
|
-
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-
|
|
35
|
+
import { a as MarimoIncomingMessageEvent, c as MarimoValueUpdateEvent, f as Square, i as PythonIcon, l as createInputEvent, n as blobToString, o as MarimoValueInputEvent, p as File, r as filesToBase64, s as MarimoValueReadyEvent, t as processOutput, u as deserializeBlob } from "./process-output-D2Oxf11p.js";
|
|
36
36
|
import { n as Trash, r as Pencil, t as BulkEdit } from "./types-kNUyqkDD.js";
|
|
37
37
|
import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-8ZHte0h9.js";
|
|
38
38
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -7520,10 +7520,10 @@ let __tla = Promise.all([
|
|
|
7520
7520
|
}), B = C({
|
|
7521
7521
|
height: 0,
|
|
7522
7522
|
width: 0
|
|
7523
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
7523
|
+
}), H = U(), W = U(), G = C(0), q = C(null), ZW = C({
|
|
7524
7524
|
column: 0,
|
|
7525
7525
|
row: 0
|
|
7526
|
-
}),
|
|
7526
|
+
}), Z = U(), QW = U(), $W = C(false), eG = C(0), tG = C(true), nG = C(false), rG = C(false);
|
|
7527
7527
|
Y(x(b, $(eG), P(([e2, r2]) => !!r2)), () => {
|
|
7528
7528
|
D(tG, false);
|
|
7529
7529
|
}), Y(x(ut(b, tG, B, z, eG, nG), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
@@ -7536,17 +7536,17 @@ let __tla = Promise.all([
|
|
|
7536
7536
|
]), D(tG, true);
|
|
7537
7537
|
});
|
|
7538
7538
|
}), F(x(QW, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(QW), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7539
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7539
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(ZW, e2.gap), e2.scrollTop > 0 && (D($W, true), Et(x(h, Kt(1)), (e3) => {
|
|
7540
7540
|
D($W, false);
|
|
7541
7541
|
}), D(m, {
|
|
7542
7542
|
top: e2.scrollTop
|
|
7543
7543
|
})));
|
|
7544
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7544
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(ZW, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7545
7545
|
gap: c2,
|
|
7546
7546
|
item: r2,
|
|
7547
7547
|
scrollTop: l2,
|
|
7548
7548
|
viewport: e2
|
|
7549
|
-
}))),
|
|
7549
|
+
}))), Z), F(x(ut(V(I), l, V(ZW, Or), V(B, xe), V(z, xe), V(q), V(L), V($W), V(tG), V(eG)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7550
7550
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7551
7551
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7552
7552
|
if (y2 === 0) {
|
|
@@ -7565,7 +7565,7 @@ let __tla = Promise.all([
|
|
|
7565
7565
|
offsetTop: j2,
|
|
7566
7566
|
top: j2
|
|
7567
7567
|
};
|
|
7568
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7568
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, ZW), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7569
7569
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7570
7570
|
return [
|
|
7571
7571
|
d2,
|
|
@@ -7581,7 +7581,7 @@ let __tla = Promise.all([
|
|
|
7581
7581
|
endIndex: e2[e2.length - 1].index,
|
|
7582
7582
|
startIndex: e2[0].index
|
|
7583
7583
|
})), J(An), Gt(0)));
|
|
7584
|
-
F(sG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I,
|
|
7584
|
+
F(sG, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, ZW), k(([e2, r2, c2, l2, u2]) => {
|
|
7585
7585
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7586
7586
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7587
7587
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7599,7 +7599,7 @@ let __tla = Promise.all([
|
|
|
7599
7599
|
data: q,
|
|
7600
7600
|
deviation: G,
|
|
7601
7601
|
footerHeight: u,
|
|
7602
|
-
gap:
|
|
7602
|
+
gap: ZW,
|
|
7603
7603
|
headerHeight: d,
|
|
7604
7604
|
increaseViewportBy: e,
|
|
7605
7605
|
initialItemCount: L,
|
|
@@ -7629,7 +7629,7 @@ let __tla = Promise.all([
|
|
|
7629
7629
|
propsReady: S,
|
|
7630
7630
|
rangeChanged: sG,
|
|
7631
7631
|
startReached: oG,
|
|
7632
|
-
stateChanged:
|
|
7632
|
+
stateChanged: Z,
|
|
7633
7633
|
stateRestoreInProgress: $W,
|
|
7634
7634
|
...M
|
|
7635
7635
|
};
|
|
@@ -7908,22 +7908,22 @@ let __tla = Promise.all([
|
|
|
7908
7908
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7909
7909
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7910
7910
|
}, r[8] = p, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7911
|
-
let
|
|
7911
|
+
let ZW = q, Z;
|
|
7912
7912
|
if (r[13] !== G.bulkActions) {
|
|
7913
|
-
if (
|
|
7913
|
+
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7914
7914
|
let e2;
|
|
7915
7915
|
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7916
7916
|
"data-slot": "select-separator"
|
|
7917
|
-
}, "_bulk_separator"), r[15] = e2) : e2 = r[15],
|
|
7917
|
+
}, "_bulk_separator"), r[15] = e2) : e2 = r[15], Z.push(e2);
|
|
7918
7918
|
}
|
|
7919
|
-
r[13] = G.bulkActions, r[14] =
|
|
7920
|
-
} else
|
|
7919
|
+
r[13] = G.bulkActions, r[14] = Z;
|
|
7920
|
+
} else Z = r[14];
|
|
7921
7921
|
let QW;
|
|
7922
7922
|
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (QW = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7923
7923
|
"data-slot": "select-separator"
|
|
7924
7924
|
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = QW) : QW = r[18];
|
|
7925
7925
|
let $W = QW, eG;
|
|
7926
|
-
r[19] !==
|
|
7926
|
+
r[19] !== Z || r[20] !== G || r[21] !== $W || r[22] !== w || r[23] !== B || r[24] !== H ? (eG = () => {
|
|
7927
7927
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7928
7928
|
"data-slot": "select-list",
|
|
7929
7929
|
style: {
|
|
@@ -7935,7 +7935,7 @@ let __tla = Promise.all([
|
|
|
7935
7935
|
let r2 = G.visibleOptions[e3];
|
|
7936
7936
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7937
7937
|
children: [
|
|
7938
|
-
e3 === 0 &&
|
|
7938
|
+
e3 === 0 && Z,
|
|
7939
7939
|
$W(e3),
|
|
7940
7940
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7941
7941
|
option: r2,
|
|
@@ -7961,11 +7961,11 @@ let __tla = Promise.all([
|
|
|
7961
7961
|
});
|
|
7962
7962
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7963
7963
|
children: [
|
|
7964
|
-
|
|
7964
|
+
Z,
|
|
7965
7965
|
e2
|
|
7966
7966
|
]
|
|
7967
7967
|
});
|
|
7968
|
-
}, r[19] =
|
|
7968
|
+
}, r[19] = Z, r[20] = G, r[21] = $W, r[22] = w, r[23] = B, r[24] = H, r[25] = eG) : eG = r[25];
|
|
7969
7969
|
let tG = eG, nG;
|
|
7970
7970
|
r[26] !== G.labelOf || r[27] !== I ? (nG = (e2) => {
|
|
7971
7971
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
@@ -8005,19 +8005,19 @@ let __tla = Promise.all([
|
|
|
8005
8005
|
id: S
|
|
8006
8006
|
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = iG, r[44] = aG, r[45] = oG, r[46] = sG, r[47] = fG, r[48] = pG) : pG = r[48];
|
|
8007
8007
|
let mG = pG, hG;
|
|
8008
|
-
return r[49] !== mG || r[50] !==
|
|
8008
|
+
return r[49] !== mG || r[50] !== ZW || r[51] !== d || r[52] !== tG || r[53] !== l ? (hG = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8009
8009
|
...mG,
|
|
8010
8010
|
multiple: true,
|
|
8011
8011
|
value: l,
|
|
8012
|
-
onValueChange:
|
|
8012
|
+
onValueChange: ZW,
|
|
8013
8013
|
children: tG()
|
|
8014
8014
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
8015
8015
|
...mG,
|
|
8016
8016
|
multiple: false,
|
|
8017
8017
|
value: l,
|
|
8018
|
-
onValueChange:
|
|
8018
|
+
onValueChange: ZW,
|
|
8019
8019
|
children: tG()
|
|
8020
|
-
}), r[49] = mG, r[50] =
|
|
8020
|
+
}), r[49] = mG, r[50] = ZW, r[51] = d, r[52] = tG, r[53] = l, r[54] = hG) : hG = r[54], hG;
|
|
8021
8021
|
}
|
|
8022
8022
|
function _temp$27(e) {
|
|
8023
8023
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -9017,7 +9017,7 @@ let __tla = Promise.all([
|
|
|
9017
9017
|
};
|
|
9018
9018
|
}
|
|
9019
9019
|
};
|
|
9020
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
9020
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-Cjd9kIcO.js").then((e) => ({
|
|
9021
9021
|
default: e.Chatbot
|
|
9022
9022
|
}))), messageSchema = array(object({
|
|
9023
9023
|
id: string(),
|
|
@@ -9156,6 +9156,24 @@ let __tla = Promise.all([
|
|
|
9156
9156
|
}).map(_temp3$11)
|
|
9157
9157
|
}, r);
|
|
9158
9158
|
}
|
|
9159
|
+
const FieldOptions = {
|
|
9160
|
+
of(e) {
|
|
9161
|
+
return JSON.stringify(e);
|
|
9162
|
+
},
|
|
9163
|
+
parse(e) {
|
|
9164
|
+
if (!e) return {};
|
|
9165
|
+
try {
|
|
9166
|
+
return JSON.parse(e);
|
|
9167
|
+
} catch {
|
|
9168
|
+
return {
|
|
9169
|
+
label: e
|
|
9170
|
+
};
|
|
9171
|
+
}
|
|
9172
|
+
}
|
|
9173
|
+
};
|
|
9174
|
+
function randomNumber() {
|
|
9175
|
+
return Math.floor(Math.random() * 1e5);
|
|
9176
|
+
}
|
|
9159
9177
|
const DATA_TYPES = [
|
|
9160
9178
|
"string",
|
|
9161
9179
|
"boolean",
|
|
@@ -9165,7 +9183,391 @@ let __tla = Promise.all([
|
|
|
9165
9183
|
"datetime",
|
|
9166
9184
|
"time",
|
|
9167
9185
|
"unknown"
|
|
9186
|
+
], NUMPY_DTYPES = [
|
|
9187
|
+
"int8",
|
|
9188
|
+
"int16",
|
|
9189
|
+
"int32",
|
|
9190
|
+
"int64",
|
|
9191
|
+
"uint8",
|
|
9192
|
+
"uint16",
|
|
9193
|
+
"uint32",
|
|
9194
|
+
"uint64",
|
|
9195
|
+
"float16",
|
|
9196
|
+
"float32",
|
|
9197
|
+
"float64",
|
|
9198
|
+
"complex64",
|
|
9199
|
+
"complex128",
|
|
9200
|
+
"bool",
|
|
9201
|
+
"object",
|
|
9202
|
+
"str",
|
|
9203
|
+
"unicode",
|
|
9204
|
+
"datetime64",
|
|
9205
|
+
"timedelta64"
|
|
9206
|
+
], AGGREGATION_FNS$1 = [
|
|
9207
|
+
"count",
|
|
9208
|
+
"sum",
|
|
9209
|
+
"mean",
|
|
9210
|
+
"median",
|
|
9211
|
+
"min",
|
|
9212
|
+
"max"
|
|
9168
9213
|
];
|
|
9214
|
+
var Schema = {
|
|
9215
|
+
number: number$1().describe(FieldOptions.of({
|
|
9216
|
+
label: "Value"
|
|
9217
|
+
})),
|
|
9218
|
+
string: string().min(1).describe(FieldOptions.of({
|
|
9219
|
+
label: "Value"
|
|
9220
|
+
})),
|
|
9221
|
+
stringColumnValues: string().min(1).describe(FieldOptions.of({
|
|
9222
|
+
label: "Value",
|
|
9223
|
+
special: "column_values"
|
|
9224
|
+
})),
|
|
9225
|
+
stringMultiColumnValues: array(string()).min(1).describe(FieldOptions.of({
|
|
9226
|
+
label: "Value",
|
|
9227
|
+
special: "column_values"
|
|
9228
|
+
})),
|
|
9229
|
+
date: date().describe(FieldOptions.of({
|
|
9230
|
+
label: "Value",
|
|
9231
|
+
special: "date"
|
|
9232
|
+
})),
|
|
9233
|
+
datetime: date().describe(FieldOptions.of({
|
|
9234
|
+
label: "Value",
|
|
9235
|
+
special: "datetime"
|
|
9236
|
+
})),
|
|
9237
|
+
time: string().regex(/^\d{2}:\d{2}(:\d{2})?$/).describe(FieldOptions.of({
|
|
9238
|
+
label: "Value",
|
|
9239
|
+
special: "time"
|
|
9240
|
+
}))
|
|
9241
|
+
};
|
|
9242
|
+
const BOOLEAN_OPERATORS = {
|
|
9243
|
+
is_true: [],
|
|
9244
|
+
is_false: []
|
|
9245
|
+
};
|
|
9246
|
+
var createComparisonOperators = (e) => ({
|
|
9247
|
+
"==": [
|
|
9248
|
+
e
|
|
9249
|
+
],
|
|
9250
|
+
"!=": [
|
|
9251
|
+
e
|
|
9252
|
+
],
|
|
9253
|
+
">": [
|
|
9254
|
+
e
|
|
9255
|
+
],
|
|
9256
|
+
">=": [
|
|
9257
|
+
e
|
|
9258
|
+
],
|
|
9259
|
+
"<": [
|
|
9260
|
+
e
|
|
9261
|
+
],
|
|
9262
|
+
"<=": [
|
|
9263
|
+
e
|
|
9264
|
+
],
|
|
9265
|
+
between: [
|
|
9266
|
+
object({
|
|
9267
|
+
min: e,
|
|
9268
|
+
max: e
|
|
9269
|
+
})
|
|
9270
|
+
],
|
|
9271
|
+
is_null: [],
|
|
9272
|
+
is_not_null: []
|
|
9273
|
+
});
|
|
9274
|
+
const NUMERIC_OPERATORS = createComparisonOperators(Schema.number), DATE_OPERATORS = createComparisonOperators(Schema.date), TIME_OPERATORS = createComparisonOperators(Schema.time), DATETIME_OPERATORS = createComparisonOperators(Schema.datetime), STRING_OPERATORS = {
|
|
9275
|
+
equals: [
|
|
9276
|
+
Schema.stringColumnValues
|
|
9277
|
+
],
|
|
9278
|
+
does_not_equal: [
|
|
9279
|
+
Schema.stringColumnValues
|
|
9280
|
+
],
|
|
9281
|
+
contains: [
|
|
9282
|
+
Schema.string
|
|
9283
|
+
],
|
|
9284
|
+
regex: [
|
|
9285
|
+
Schema.string
|
|
9286
|
+
],
|
|
9287
|
+
starts_with: [
|
|
9288
|
+
Schema.string
|
|
9289
|
+
],
|
|
9290
|
+
ends_with: [
|
|
9291
|
+
Schema.string
|
|
9292
|
+
],
|
|
9293
|
+
in: [
|
|
9294
|
+
Schema.stringMultiColumnValues
|
|
9295
|
+
],
|
|
9296
|
+
not_in: [
|
|
9297
|
+
Schema.stringMultiColumnValues
|
|
9298
|
+
],
|
|
9299
|
+
is_empty: [],
|
|
9300
|
+
is_null: [],
|
|
9301
|
+
is_not_null: []
|
|
9302
|
+
}, ALL_OPERATORS = {
|
|
9303
|
+
...BOOLEAN_OPERATORS,
|
|
9304
|
+
...NUMERIC_OPERATORS,
|
|
9305
|
+
...DATE_OPERATORS,
|
|
9306
|
+
...TIME_OPERATORS,
|
|
9307
|
+
...DATETIME_OPERATORS,
|
|
9308
|
+
...STRING_OPERATORS
|
|
9309
|
+
};
|
|
9310
|
+
function numpyTypeToDataType(e) {
|
|
9311
|
+
return e ? e.startsWith("int") ? "integer" : e.startsWith("float") || e.startsWith("uint") || e.startsWith("number") || e.startsWith("complex") ? "number" : e.startsWith("string") || e.startsWith("object") || e.startsWith("utf8") ? "string" : e.startsWith("datetime") ? "datetime" : e.startsWith("time") ? "time" : e.startsWith("date") ? "date" : e.startsWith("bool") ? "boolean" : "unknown" : "unknown";
|
|
9312
|
+
}
|
|
9313
|
+
function getOperatorForDtype(e) {
|
|
9314
|
+
if (!e) return [];
|
|
9315
|
+
switch (numpyTypeToDataType(e)) {
|
|
9316
|
+
case "integer":
|
|
9317
|
+
return Object.keys(NUMERIC_OPERATORS);
|
|
9318
|
+
case "number":
|
|
9319
|
+
return Object.keys(NUMERIC_OPERATORS);
|
|
9320
|
+
case "string":
|
|
9321
|
+
return Object.keys(STRING_OPERATORS);
|
|
9322
|
+
case "date":
|
|
9323
|
+
return Object.keys(DATE_OPERATORS);
|
|
9324
|
+
case "datetime":
|
|
9325
|
+
return Object.keys(DATETIME_OPERATORS);
|
|
9326
|
+
case "time":
|
|
9327
|
+
return Object.keys(TIME_OPERATORS);
|
|
9328
|
+
case "boolean":
|
|
9329
|
+
return Object.keys(BOOLEAN_OPERATORS);
|
|
9330
|
+
case "unknown":
|
|
9331
|
+
return [];
|
|
9332
|
+
}
|
|
9333
|
+
}
|
|
9334
|
+
function getSchemaForOperator(e, r) {
|
|
9335
|
+
if (!e || !r) return [];
|
|
9336
|
+
switch (numpyTypeToDataType(e)) {
|
|
9337
|
+
case "integer":
|
|
9338
|
+
return safeGet(NUMERIC_OPERATORS, r);
|
|
9339
|
+
case "number":
|
|
9340
|
+
return safeGet(NUMERIC_OPERATORS, r);
|
|
9341
|
+
case "string":
|
|
9342
|
+
return safeGet(STRING_OPERATORS, r);
|
|
9343
|
+
case "date":
|
|
9344
|
+
return safeGet(DATE_OPERATORS, r);
|
|
9345
|
+
case "datetime":
|
|
9346
|
+
return safeGet(DATETIME_OPERATORS, r);
|
|
9347
|
+
case "time":
|
|
9348
|
+
return safeGet(TIME_OPERATORS, r);
|
|
9349
|
+
case "boolean":
|
|
9350
|
+
return safeGet(BOOLEAN_OPERATORS, r);
|
|
9351
|
+
case "unknown":
|
|
9352
|
+
return [];
|
|
9353
|
+
}
|
|
9354
|
+
}
|
|
9355
|
+
function isConditionValueValid(e, r) {
|
|
9356
|
+
let c = [
|
|
9357
|
+
safeGet(BOOLEAN_OPERATORS, e),
|
|
9358
|
+
safeGet(DATE_OPERATORS, e),
|
|
9359
|
+
safeGet(TIME_OPERATORS, e),
|
|
9360
|
+
safeGet(DATETIME_OPERATORS, e),
|
|
9361
|
+
safeGet(NUMERIC_OPERATORS, e),
|
|
9362
|
+
safeGet(STRING_OPERATORS, e)
|
|
9363
|
+
].flat();
|
|
9364
|
+
return c.length === 0 ? true : c.some((e2) => e2.safeParse(r).success);
|
|
9365
|
+
}
|
|
9366
|
+
var safeGet = (e, r) => e[r] ? e[r] : [];
|
|
9367
|
+
const columnToFieldTypesSchema = array(tuple([
|
|
9368
|
+
string$1(),
|
|
9369
|
+
tuple([
|
|
9370
|
+
_enum(DATA_TYPES).catch("unknown"),
|
|
9371
|
+
string()
|
|
9372
|
+
])
|
|
9373
|
+
])), column_id = string().min(1, "Required").or(number()).transform((e) => e).describe(FieldOptions.of({
|
|
9374
|
+
label: "Column",
|
|
9375
|
+
special: "column_id"
|
|
9376
|
+
})), column_id_array = array(column_id.describe(FieldOptions.of({
|
|
9377
|
+
special: "column_id"
|
|
9378
|
+
}))).min(1, "At least one column is required").default([]).describe(FieldOptions.of({
|
|
9379
|
+
label: "Columns",
|
|
9380
|
+
minLength: 1
|
|
9381
|
+
}));
|
|
9382
|
+
var ColumnConversionTransformSchema = object({
|
|
9383
|
+
type: literal("column_conversion"),
|
|
9384
|
+
column_id,
|
|
9385
|
+
data_type: _enum(NUMPY_DTYPES).describe(FieldOptions.of({
|
|
9386
|
+
label: "Data type (numpy)"
|
|
9387
|
+
})).default("bool"),
|
|
9388
|
+
errors: _enum([
|
|
9389
|
+
"ignore",
|
|
9390
|
+
"raise"
|
|
9391
|
+
]).default("ignore").describe(FieldOptions.of({
|
|
9392
|
+
label: "Handle errors",
|
|
9393
|
+
special: "radio_group"
|
|
9394
|
+
}))
|
|
9395
|
+
}).describe(FieldOptions.of({})), RenameColumnTransformSchema = object({
|
|
9396
|
+
type: literal("rename_column"),
|
|
9397
|
+
column_id,
|
|
9398
|
+
new_column_id: string().min(1, "Required").transform((e) => e).describe(FieldOptions.of({
|
|
9399
|
+
label: "New column name",
|
|
9400
|
+
minLength: 1
|
|
9401
|
+
}))
|
|
9402
|
+
}), SortColumnTransformSchema = object({
|
|
9403
|
+
type: literal("sort_column"),
|
|
9404
|
+
column_id,
|
|
9405
|
+
ascending: boolean().describe(FieldOptions.of({
|
|
9406
|
+
label: "Ascending"
|
|
9407
|
+
})).default(true),
|
|
9408
|
+
na_position: _enum([
|
|
9409
|
+
"first",
|
|
9410
|
+
"last"
|
|
9411
|
+
]).describe(FieldOptions.of({
|
|
9412
|
+
label: "N/A position",
|
|
9413
|
+
special: "radio_group"
|
|
9414
|
+
})).default("last")
|
|
9415
|
+
});
|
|
9416
|
+
const FilterConditionSchema = object({
|
|
9417
|
+
column_id,
|
|
9418
|
+
operator: _enum(Object.keys(ALL_OPERATORS)).describe(FieldOptions.of({
|
|
9419
|
+
label: " "
|
|
9420
|
+
})),
|
|
9421
|
+
type: literal("condition").default("condition"),
|
|
9422
|
+
value: any().optional().describe(FieldOptions.of({
|
|
9423
|
+
label: "Value"
|
|
9424
|
+
})),
|
|
9425
|
+
negate: boolean().default(false)
|
|
9426
|
+
}).describe(FieldOptions.of({
|
|
9427
|
+
direction: "row",
|
|
9428
|
+
special: "column_filter"
|
|
9429
|
+
})), FilterGroupSchema = lazy$2(() => object({
|
|
9430
|
+
type: literal("group").default("group"),
|
|
9431
|
+
operator: _enum([
|
|
9432
|
+
"and",
|
|
9433
|
+
"or"
|
|
9434
|
+
]).default("and"),
|
|
9435
|
+
children: array(union([
|
|
9436
|
+
FilterConditionSchema,
|
|
9437
|
+
FilterGroupSchema
|
|
9438
|
+
])).default([]),
|
|
9439
|
+
negate: boolean().default(false)
|
|
9440
|
+
}));
|
|
9441
|
+
var FilterRowsTransformSchema = object({
|
|
9442
|
+
type: literal("filter_rows"),
|
|
9443
|
+
operation: _enum([
|
|
9444
|
+
"keep_rows",
|
|
9445
|
+
"remove_rows"
|
|
9446
|
+
]).default("keep_rows").describe(FieldOptions.of({
|
|
9447
|
+
special: "radio_group"
|
|
9448
|
+
})),
|
|
9449
|
+
where: array(FilterConditionSchema).min(1).describe(FieldOptions.of({
|
|
9450
|
+
label: "Value",
|
|
9451
|
+
minLength: 1
|
|
9452
|
+
})).default(() => [
|
|
9453
|
+
{
|
|
9454
|
+
column_id: "",
|
|
9455
|
+
operator: "==",
|
|
9456
|
+
value: "",
|
|
9457
|
+
type: "condition",
|
|
9458
|
+
negate: false
|
|
9459
|
+
}
|
|
9460
|
+
]).transform((e) => ({
|
|
9461
|
+
type: "group",
|
|
9462
|
+
operator: "and",
|
|
9463
|
+
children: e.filter((e2) => isConditionValueValid(e2.operator, e2.value)),
|
|
9464
|
+
negate: false
|
|
9465
|
+
}))
|
|
9466
|
+
}), GroupByTransformSchema = object({
|
|
9467
|
+
type: literal("group_by"),
|
|
9468
|
+
column_ids: array(column_id.describe(FieldOptions.of({
|
|
9469
|
+
special: "column_id"
|
|
9470
|
+
}))).default([]).describe(FieldOptions.of({
|
|
9471
|
+
label: "Group by columns",
|
|
9472
|
+
minLength: 1
|
|
9473
|
+
})),
|
|
9474
|
+
aggregation_column_ids: array(column_id.describe(FieldOptions.of({
|
|
9475
|
+
special: "column_id"
|
|
9476
|
+
}))).default([]).describe(FieldOptions.of({
|
|
9477
|
+
label: "Aggregate on columns"
|
|
9478
|
+
})),
|
|
9479
|
+
aggregation: _enum(AGGREGATION_FNS$1).default("count").describe(FieldOptions.of({
|
|
9480
|
+
label: "Aggregation"
|
|
9481
|
+
})),
|
|
9482
|
+
drop_na: boolean().default(false).describe(FieldOptions.of({
|
|
9483
|
+
label: "Drop N/A"
|
|
9484
|
+
}))
|
|
9485
|
+
}).describe(FieldOptions.of({})), AggregateTransformSchema = object({
|
|
9486
|
+
type: literal("aggregate"),
|
|
9487
|
+
column_ids: column_id_array,
|
|
9488
|
+
aggregations: array(_enum(AGGREGATION_FNS$1)).min(1, "At least one aggregation is required").default([
|
|
9489
|
+
"count"
|
|
9490
|
+
]).describe(FieldOptions.of({
|
|
9491
|
+
label: "Aggregations",
|
|
9492
|
+
minLength: 1
|
|
9493
|
+
}))
|
|
9494
|
+
}).describe(FieldOptions.of({
|
|
9495
|
+
direction: "row"
|
|
9496
|
+
}));
|
|
9497
|
+
const TransformTypeSchema = union([
|
|
9498
|
+
FilterRowsTransformSchema,
|
|
9499
|
+
object({
|
|
9500
|
+
type: literal("select_columns"),
|
|
9501
|
+
column_ids: column_id_array
|
|
9502
|
+
}),
|
|
9503
|
+
RenameColumnTransformSchema,
|
|
9504
|
+
ColumnConversionTransformSchema,
|
|
9505
|
+
SortColumnTransformSchema,
|
|
9506
|
+
GroupByTransformSchema,
|
|
9507
|
+
AggregateTransformSchema,
|
|
9508
|
+
object({
|
|
9509
|
+
type: literal("sample_rows"),
|
|
9510
|
+
n: number().positive().describe(FieldOptions.of({
|
|
9511
|
+
label: "Number of rows"
|
|
9512
|
+
})),
|
|
9513
|
+
seed: number().default(() => randomNumber()).describe(FieldOptions.of({
|
|
9514
|
+
label: "Re-sample",
|
|
9515
|
+
special: "random_number_button"
|
|
9516
|
+
})),
|
|
9517
|
+
replace: boolean().default(false).describe(FieldOptions.of({
|
|
9518
|
+
label: "Sample with replacement"
|
|
9519
|
+
}))
|
|
9520
|
+
}),
|
|
9521
|
+
object({
|
|
9522
|
+
type: literal("shuffle_rows"),
|
|
9523
|
+
seed: number().default(() => randomNumber()).describe(FieldOptions.of({
|
|
9524
|
+
label: "Re-shuffle",
|
|
9525
|
+
special: "random_number_button"
|
|
9526
|
+
}))
|
|
9527
|
+
}),
|
|
9528
|
+
object({
|
|
9529
|
+
type: literal("explode_columns"),
|
|
9530
|
+
column_ids: column_id_array
|
|
9531
|
+
}),
|
|
9532
|
+
object({
|
|
9533
|
+
type: literal("expand_dict"),
|
|
9534
|
+
column_id
|
|
9535
|
+
}),
|
|
9536
|
+
object({
|
|
9537
|
+
type: literal("unique"),
|
|
9538
|
+
column_ids: column_id_array,
|
|
9539
|
+
keep: _enum([
|
|
9540
|
+
"first",
|
|
9541
|
+
"last",
|
|
9542
|
+
"none",
|
|
9543
|
+
"any"
|
|
9544
|
+
]).default("first").describe(FieldOptions.of({
|
|
9545
|
+
label: "Keep"
|
|
9546
|
+
}))
|
|
9547
|
+
}).describe(FieldOptions.of({
|
|
9548
|
+
direction: "row"
|
|
9549
|
+
})),
|
|
9550
|
+
object({
|
|
9551
|
+
type: literal("pivot"),
|
|
9552
|
+
column_ids: column_id_array,
|
|
9553
|
+
index_column_ids: array(column_id.describe(FieldOptions.of({
|
|
9554
|
+
special: "column_id"
|
|
9555
|
+
}))).default([]).describe(FieldOptions.of({
|
|
9556
|
+
label: "Rows"
|
|
9557
|
+
})),
|
|
9558
|
+
value_column_ids: array(column_id.describe(FieldOptions.of({
|
|
9559
|
+
special: "column_id"
|
|
9560
|
+
}))).default([]).describe(FieldOptions.of({
|
|
9561
|
+
label: "Values",
|
|
9562
|
+
minLength: 1
|
|
9563
|
+
})),
|
|
9564
|
+
aggregation: _enum(AGGREGATION_FNS$1).default("sum").describe(FieldOptions.of({
|
|
9565
|
+
label: "Aggregation"
|
|
9566
|
+
}))
|
|
9567
|
+
}).describe(FieldOptions.of({}))
|
|
9568
|
+
]), TransformationsSchema = object({
|
|
9569
|
+
transforms: array(TransformTypeSchema)
|
|
9570
|
+
});
|
|
9169
9571
|
var import_compiler_runtime$76 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-FiwJJzrV.js").then(async (m) => {
|
|
9170
9572
|
await m.__tla;
|
|
9171
9573
|
return m;
|
|
@@ -9187,13 +9589,7 @@ let __tla = Promise.all([
|
|
|
9187
9589
|
string(),
|
|
9188
9590
|
array(object({}).passthrough())
|
|
9189
9591
|
]),
|
|
9190
|
-
fieldTypes:
|
|
9191
|
-
string$1(),
|
|
9192
|
-
tuple([
|
|
9193
|
-
_enum(DATA_TYPES),
|
|
9194
|
-
string()
|
|
9195
|
-
])
|
|
9196
|
-
])).nullish(),
|
|
9592
|
+
fieldTypes: columnToFieldTypesSchema.nullish(),
|
|
9197
9593
|
editableColumns: union([
|
|
9198
9594
|
array(string()),
|
|
9199
9595
|
literal("all")
|
|
@@ -10132,7 +10528,7 @@ let __tla = Promise.all([
|
|
|
10132
10528
|
let m2 = get(l, e2);
|
|
10133
10529
|
if (m2) {
|
|
10134
10530
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
10135
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
10531
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : ZW(e2, l2), f.mount && w();
|
|
10136
10532
|
}
|
|
10137
10533
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
10138
10534
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -10212,7 +10608,7 @@ let __tla = Promise.all([
|
|
|
10212
10608
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
10213
10609
|
[e2]: r2
|
|
10214
10610
|
} : r2
|
|
10215
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
10611
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), ZW = (e2, r2, c2 = {}) => {
|
|
10216
10612
|
let u2 = get(l, e2), f2 = r2;
|
|
10217
10613
|
if (u2) {
|
|
10218
10614
|
let c3 = u2._f;
|
|
@@ -10226,10 +10622,10 @@ let __tla = Promise.all([
|
|
|
10226
10622
|
})));
|
|
10227
10623
|
}
|
|
10228
10624
|
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && tG(e2);
|
|
10229
|
-
},
|
|
10625
|
+
}, Z = (e2, r2, c2) => {
|
|
10230
10626
|
for (let u2 in r2) {
|
|
10231
10627
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
10232
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ?
|
|
10628
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : ZW(f2, d2, c2);
|
|
10233
10629
|
}
|
|
10234
10630
|
}, QW = (e2, r2, m2 = {}) => {
|
|
10235
10631
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
@@ -10242,7 +10638,7 @@ let __tla = Promise.all([
|
|
|
10242
10638
|
name: e2,
|
|
10243
10639
|
dirtyFields: getDirtyFields(u, d),
|
|
10244
10640
|
isDirty: W(e2, y2)
|
|
10245
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ?
|
|
10641
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : ZW(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
10246
10642
|
...c
|
|
10247
10643
|
}), _.values.next({
|
|
10248
10644
|
name: f.mount ? e2 : void 0,
|
|
@@ -13450,7 +13846,7 @@ ${c}
|
|
|
13450
13846
|
render: h
|
|
13451
13847
|
}), r[5] = c, r[6] = m.control, r[7] = h, r[8] = g) : g = r[8], g;
|
|
13452
13848
|
}, AggregationSelect = (e) => {
|
|
13453
|
-
let r = (0, import_compiler_runtime$68.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS
|
|
13849
|
+
let r = (0, import_compiler_runtime$68.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS, { chartType: m } = useChartFormContext(), h = m !== ChartType.HEATMAP, g = _temp6$1, _ = _temp7, v;
|
|
13454
13850
|
r[0] !== u || r[1] !== f ? (v = (e2) => {
|
|
13455
13851
|
let { value: r2, previousValue: c2, onChange: l2 } = e2;
|
|
13456
13852
|
r2 === "bin" ? f.setValue(u, true) : c2 === "bin" && f.setValue(u, false), l2(r2);
|
|
@@ -14433,7 +14829,7 @@ ${c}
|
|
|
14433
14829
|
type: _enum([
|
|
14434
14830
|
...DATA_TYPES,
|
|
14435
14831
|
""
|
|
14436
|
-
]).optional(),
|
|
14832
|
+
]).catch("unknown").optional(),
|
|
14437
14833
|
selectedDataType: _enum([
|
|
14438
14834
|
...SELECTABLE_DATA_TYPES,
|
|
14439
14835
|
""
|
|
@@ -14442,7 +14838,7 @@ ${c}
|
|
|
14442
14838
|
timeUnit: _enum(TIME_UNITS).optional()
|
|
14443
14839
|
});
|
|
14444
14840
|
const AxisSchema = BaseColumnSchema.extend({
|
|
14445
|
-
aggregate: _enum(AGGREGATION_FNS
|
|
14841
|
+
aggregate: _enum(AGGREGATION_FNS).default(NONE_VALUE).optional()
|
|
14446
14842
|
}), RowFacet = BaseColumnSchema.extend({
|
|
14447
14843
|
linkYAxis: boolean().default(true),
|
|
14448
14844
|
binned: boolean().default(true),
|
|
@@ -14492,7 +14888,7 @@ ${c}
|
|
|
14492
14888
|
auto: boolean(),
|
|
14493
14889
|
fields: array(object({
|
|
14494
14890
|
field: string(),
|
|
14495
|
-
type: _enum(DATA_TYPES)
|
|
14891
|
+
type: _enum(DATA_TYPES).catch("unknown")
|
|
14496
14892
|
}))
|
|
14497
14893
|
}).default({
|
|
14498
14894
|
auto: true,
|
|
@@ -15607,409 +16003,6 @@ ${c}
|
|
|
15607
16003
|
e();
|
|
15608
16004
|
}, c[0] = e, c[1] = u), (0, import_react.useEffect)(u, r);
|
|
15609
16005
|
}
|
|
15610
|
-
const FieldOptions = {
|
|
15611
|
-
of(e) {
|
|
15612
|
-
return JSON.stringify(e);
|
|
15613
|
-
},
|
|
15614
|
-
parse(e) {
|
|
15615
|
-
if (!e) return {};
|
|
15616
|
-
try {
|
|
15617
|
-
return JSON.parse(e);
|
|
15618
|
-
} catch {
|
|
15619
|
-
return {
|
|
15620
|
-
label: e
|
|
15621
|
-
};
|
|
15622
|
-
}
|
|
15623
|
-
}
|
|
15624
|
-
};
|
|
15625
|
-
function randomNumber() {
|
|
15626
|
-
return Math.floor(Math.random() * 1e5);
|
|
15627
|
-
}
|
|
15628
|
-
const NUMPY_DTYPES = [
|
|
15629
|
-
"int8",
|
|
15630
|
-
"int16",
|
|
15631
|
-
"int32",
|
|
15632
|
-
"int64",
|
|
15633
|
-
"uint8",
|
|
15634
|
-
"uint16",
|
|
15635
|
-
"uint32",
|
|
15636
|
-
"uint64",
|
|
15637
|
-
"float16",
|
|
15638
|
-
"float32",
|
|
15639
|
-
"float64",
|
|
15640
|
-
"complex64",
|
|
15641
|
-
"complex128",
|
|
15642
|
-
"bool",
|
|
15643
|
-
"object",
|
|
15644
|
-
"str",
|
|
15645
|
-
"unicode",
|
|
15646
|
-
"datetime64",
|
|
15647
|
-
"timedelta64"
|
|
15648
|
-
], AGGREGATION_FNS = [
|
|
15649
|
-
"count",
|
|
15650
|
-
"sum",
|
|
15651
|
-
"mean",
|
|
15652
|
-
"median",
|
|
15653
|
-
"min",
|
|
15654
|
-
"max"
|
|
15655
|
-
];
|
|
15656
|
-
var Schema = {
|
|
15657
|
-
number: number$1().describe(FieldOptions.of({
|
|
15658
|
-
label: "Value"
|
|
15659
|
-
})),
|
|
15660
|
-
string: string().min(1).describe(FieldOptions.of({
|
|
15661
|
-
label: "Value"
|
|
15662
|
-
})),
|
|
15663
|
-
stringColumnValues: string().min(1).describe(FieldOptions.of({
|
|
15664
|
-
label: "Value",
|
|
15665
|
-
special: "column_values"
|
|
15666
|
-
})),
|
|
15667
|
-
stringMultiColumnValues: array(string()).min(1).describe(FieldOptions.of({
|
|
15668
|
-
label: "Value",
|
|
15669
|
-
special: "column_values"
|
|
15670
|
-
})),
|
|
15671
|
-
date: date().describe(FieldOptions.of({
|
|
15672
|
-
label: "Value",
|
|
15673
|
-
special: "date"
|
|
15674
|
-
})),
|
|
15675
|
-
datetime: date().describe(FieldOptions.of({
|
|
15676
|
-
label: "Value",
|
|
15677
|
-
special: "datetime"
|
|
15678
|
-
})),
|
|
15679
|
-
time: string().regex(/^\d{2}:\d{2}(:\d{2})?$/).describe(FieldOptions.of({
|
|
15680
|
-
label: "Value",
|
|
15681
|
-
special: "time"
|
|
15682
|
-
}))
|
|
15683
|
-
};
|
|
15684
|
-
const BOOLEAN_OPERATORS = {
|
|
15685
|
-
is_true: [],
|
|
15686
|
-
is_false: []
|
|
15687
|
-
};
|
|
15688
|
-
var createComparisonOperators = (e) => ({
|
|
15689
|
-
"==": [
|
|
15690
|
-
e
|
|
15691
|
-
],
|
|
15692
|
-
"!=": [
|
|
15693
|
-
e
|
|
15694
|
-
],
|
|
15695
|
-
">": [
|
|
15696
|
-
e
|
|
15697
|
-
],
|
|
15698
|
-
">=": [
|
|
15699
|
-
e
|
|
15700
|
-
],
|
|
15701
|
-
"<": [
|
|
15702
|
-
e
|
|
15703
|
-
],
|
|
15704
|
-
"<=": [
|
|
15705
|
-
e
|
|
15706
|
-
],
|
|
15707
|
-
between: [
|
|
15708
|
-
object({
|
|
15709
|
-
min: e,
|
|
15710
|
-
max: e
|
|
15711
|
-
})
|
|
15712
|
-
],
|
|
15713
|
-
is_null: [],
|
|
15714
|
-
is_not_null: []
|
|
15715
|
-
});
|
|
15716
|
-
const NUMERIC_OPERATORS = createComparisonOperators(Schema.number), DATE_OPERATORS = createComparisonOperators(Schema.date), TIME_OPERATORS = createComparisonOperators(Schema.time), DATETIME_OPERATORS = createComparisonOperators(Schema.datetime), STRING_OPERATORS = {
|
|
15717
|
-
equals: [
|
|
15718
|
-
Schema.stringColumnValues
|
|
15719
|
-
],
|
|
15720
|
-
does_not_equal: [
|
|
15721
|
-
Schema.stringColumnValues
|
|
15722
|
-
],
|
|
15723
|
-
contains: [
|
|
15724
|
-
Schema.string
|
|
15725
|
-
],
|
|
15726
|
-
regex: [
|
|
15727
|
-
Schema.string
|
|
15728
|
-
],
|
|
15729
|
-
starts_with: [
|
|
15730
|
-
Schema.string
|
|
15731
|
-
],
|
|
15732
|
-
ends_with: [
|
|
15733
|
-
Schema.string
|
|
15734
|
-
],
|
|
15735
|
-
in: [
|
|
15736
|
-
Schema.stringMultiColumnValues
|
|
15737
|
-
],
|
|
15738
|
-
not_in: [
|
|
15739
|
-
Schema.stringMultiColumnValues
|
|
15740
|
-
],
|
|
15741
|
-
is_empty: [],
|
|
15742
|
-
is_null: [],
|
|
15743
|
-
is_not_null: []
|
|
15744
|
-
}, ALL_OPERATORS = {
|
|
15745
|
-
...BOOLEAN_OPERATORS,
|
|
15746
|
-
...NUMERIC_OPERATORS,
|
|
15747
|
-
...DATE_OPERATORS,
|
|
15748
|
-
...TIME_OPERATORS,
|
|
15749
|
-
...DATETIME_OPERATORS,
|
|
15750
|
-
...STRING_OPERATORS
|
|
15751
|
-
};
|
|
15752
|
-
function numpyTypeToDataType(e) {
|
|
15753
|
-
return e ? e.startsWith("int") ? "integer" : e.startsWith("float") || e.startsWith("uint") || e.startsWith("number") || e.startsWith("complex") ? "number" : e.startsWith("string") || e.startsWith("object") || e.startsWith("utf8") ? "string" : e.startsWith("datetime") ? "datetime" : e.startsWith("time") ? "time" : e.startsWith("date") ? "date" : e.startsWith("bool") ? "boolean" : "unknown" : "unknown";
|
|
15754
|
-
}
|
|
15755
|
-
function getOperatorForDtype(e) {
|
|
15756
|
-
if (!e) return [];
|
|
15757
|
-
switch (numpyTypeToDataType(e)) {
|
|
15758
|
-
case "integer":
|
|
15759
|
-
return Object.keys(NUMERIC_OPERATORS);
|
|
15760
|
-
case "number":
|
|
15761
|
-
return Object.keys(NUMERIC_OPERATORS);
|
|
15762
|
-
case "string":
|
|
15763
|
-
return Object.keys(STRING_OPERATORS);
|
|
15764
|
-
case "date":
|
|
15765
|
-
return Object.keys(DATE_OPERATORS);
|
|
15766
|
-
case "datetime":
|
|
15767
|
-
return Object.keys(DATETIME_OPERATORS);
|
|
15768
|
-
case "time":
|
|
15769
|
-
return Object.keys(TIME_OPERATORS);
|
|
15770
|
-
case "boolean":
|
|
15771
|
-
return Object.keys(BOOLEAN_OPERATORS);
|
|
15772
|
-
case "unknown":
|
|
15773
|
-
return [];
|
|
15774
|
-
}
|
|
15775
|
-
}
|
|
15776
|
-
function getSchemaForOperator(e, r) {
|
|
15777
|
-
if (!e || !r) return [];
|
|
15778
|
-
switch (numpyTypeToDataType(e)) {
|
|
15779
|
-
case "integer":
|
|
15780
|
-
return safeGet(NUMERIC_OPERATORS, r);
|
|
15781
|
-
case "number":
|
|
15782
|
-
return safeGet(NUMERIC_OPERATORS, r);
|
|
15783
|
-
case "string":
|
|
15784
|
-
return safeGet(STRING_OPERATORS, r);
|
|
15785
|
-
case "date":
|
|
15786
|
-
return safeGet(DATE_OPERATORS, r);
|
|
15787
|
-
case "datetime":
|
|
15788
|
-
return safeGet(DATETIME_OPERATORS, r);
|
|
15789
|
-
case "time":
|
|
15790
|
-
return safeGet(TIME_OPERATORS, r);
|
|
15791
|
-
case "boolean":
|
|
15792
|
-
return safeGet(BOOLEAN_OPERATORS, r);
|
|
15793
|
-
case "unknown":
|
|
15794
|
-
return [];
|
|
15795
|
-
}
|
|
15796
|
-
}
|
|
15797
|
-
function isConditionValueValid(e, r) {
|
|
15798
|
-
let c = [
|
|
15799
|
-
safeGet(BOOLEAN_OPERATORS, e),
|
|
15800
|
-
safeGet(DATE_OPERATORS, e),
|
|
15801
|
-
safeGet(TIME_OPERATORS, e),
|
|
15802
|
-
safeGet(DATETIME_OPERATORS, e),
|
|
15803
|
-
safeGet(NUMERIC_OPERATORS, e),
|
|
15804
|
-
safeGet(STRING_OPERATORS, e)
|
|
15805
|
-
].flat();
|
|
15806
|
-
return c.length === 0 ? true : c.some((e2) => e2.safeParse(r).success);
|
|
15807
|
-
}
|
|
15808
|
-
var safeGet = (e, r) => e[r] ? e[r] : [];
|
|
15809
|
-
const columnToFieldTypesSchema = array(tuple([
|
|
15810
|
-
string$1(),
|
|
15811
|
-
tuple([
|
|
15812
|
-
_enum(DATA_TYPES),
|
|
15813
|
-
string()
|
|
15814
|
-
])
|
|
15815
|
-
])), column_id = string().min(1, "Required").or(number()).transform((e) => e).describe(FieldOptions.of({
|
|
15816
|
-
label: "Column",
|
|
15817
|
-
special: "column_id"
|
|
15818
|
-
})), column_id_array = array(column_id.describe(FieldOptions.of({
|
|
15819
|
-
special: "column_id"
|
|
15820
|
-
}))).min(1, "At least one column is required").default([]).describe(FieldOptions.of({
|
|
15821
|
-
label: "Columns",
|
|
15822
|
-
minLength: 1
|
|
15823
|
-
}));
|
|
15824
|
-
var ColumnConversionTransformSchema = object({
|
|
15825
|
-
type: literal("column_conversion"),
|
|
15826
|
-
column_id,
|
|
15827
|
-
data_type: _enum(NUMPY_DTYPES).describe(FieldOptions.of({
|
|
15828
|
-
label: "Data type (numpy)"
|
|
15829
|
-
})).default("bool"),
|
|
15830
|
-
errors: _enum([
|
|
15831
|
-
"ignore",
|
|
15832
|
-
"raise"
|
|
15833
|
-
]).default("ignore").describe(FieldOptions.of({
|
|
15834
|
-
label: "Handle errors",
|
|
15835
|
-
special: "radio_group"
|
|
15836
|
-
}))
|
|
15837
|
-
}).describe(FieldOptions.of({})), RenameColumnTransformSchema = object({
|
|
15838
|
-
type: literal("rename_column"),
|
|
15839
|
-
column_id,
|
|
15840
|
-
new_column_id: string().min(1, "Required").transform((e) => e).describe(FieldOptions.of({
|
|
15841
|
-
label: "New column name",
|
|
15842
|
-
minLength: 1
|
|
15843
|
-
}))
|
|
15844
|
-
}), SortColumnTransformSchema = object({
|
|
15845
|
-
type: literal("sort_column"),
|
|
15846
|
-
column_id,
|
|
15847
|
-
ascending: boolean().describe(FieldOptions.of({
|
|
15848
|
-
label: "Ascending"
|
|
15849
|
-
})).default(true),
|
|
15850
|
-
na_position: _enum([
|
|
15851
|
-
"first",
|
|
15852
|
-
"last"
|
|
15853
|
-
]).describe(FieldOptions.of({
|
|
15854
|
-
label: "N/A position",
|
|
15855
|
-
special: "radio_group"
|
|
15856
|
-
})).default("last")
|
|
15857
|
-
});
|
|
15858
|
-
const FilterConditionSchema = object({
|
|
15859
|
-
column_id,
|
|
15860
|
-
operator: _enum(Object.keys(ALL_OPERATORS)).describe(FieldOptions.of({
|
|
15861
|
-
label: " "
|
|
15862
|
-
})),
|
|
15863
|
-
type: literal("condition").default("condition"),
|
|
15864
|
-
value: any().optional().describe(FieldOptions.of({
|
|
15865
|
-
label: "Value"
|
|
15866
|
-
})),
|
|
15867
|
-
negate: boolean().default(false)
|
|
15868
|
-
}).describe(FieldOptions.of({
|
|
15869
|
-
direction: "row",
|
|
15870
|
-
special: "column_filter"
|
|
15871
|
-
})), FilterGroupSchema = lazy$2(() => object({
|
|
15872
|
-
type: literal("group").default("group"),
|
|
15873
|
-
operator: _enum([
|
|
15874
|
-
"and",
|
|
15875
|
-
"or"
|
|
15876
|
-
]).default("and"),
|
|
15877
|
-
children: array(union([
|
|
15878
|
-
FilterConditionSchema,
|
|
15879
|
-
FilterGroupSchema
|
|
15880
|
-
])).default([]),
|
|
15881
|
-
negate: boolean().default(false)
|
|
15882
|
-
}));
|
|
15883
|
-
var FilterRowsTransformSchema = object({
|
|
15884
|
-
type: literal("filter_rows"),
|
|
15885
|
-
operation: _enum([
|
|
15886
|
-
"keep_rows",
|
|
15887
|
-
"remove_rows"
|
|
15888
|
-
]).default("keep_rows").describe(FieldOptions.of({
|
|
15889
|
-
special: "radio_group"
|
|
15890
|
-
})),
|
|
15891
|
-
where: array(FilterConditionSchema).min(1).describe(FieldOptions.of({
|
|
15892
|
-
label: "Value",
|
|
15893
|
-
minLength: 1
|
|
15894
|
-
})).default(() => [
|
|
15895
|
-
{
|
|
15896
|
-
column_id: "",
|
|
15897
|
-
operator: "==",
|
|
15898
|
-
value: "",
|
|
15899
|
-
type: "condition",
|
|
15900
|
-
negate: false
|
|
15901
|
-
}
|
|
15902
|
-
]).transform((e) => ({
|
|
15903
|
-
type: "group",
|
|
15904
|
-
operator: "and",
|
|
15905
|
-
children: e.filter((e2) => isConditionValueValid(e2.operator, e2.value)),
|
|
15906
|
-
negate: false
|
|
15907
|
-
}))
|
|
15908
|
-
}), GroupByTransformSchema = object({
|
|
15909
|
-
type: literal("group_by"),
|
|
15910
|
-
column_ids: array(column_id.describe(FieldOptions.of({
|
|
15911
|
-
special: "column_id"
|
|
15912
|
-
}))).default([]).describe(FieldOptions.of({
|
|
15913
|
-
label: "Group by columns",
|
|
15914
|
-
minLength: 1
|
|
15915
|
-
})),
|
|
15916
|
-
aggregation_column_ids: array(column_id.describe(FieldOptions.of({
|
|
15917
|
-
special: "column_id"
|
|
15918
|
-
}))).default([]).describe(FieldOptions.of({
|
|
15919
|
-
label: "Aggregate on columns"
|
|
15920
|
-
})),
|
|
15921
|
-
aggregation: _enum(AGGREGATION_FNS).default("count").describe(FieldOptions.of({
|
|
15922
|
-
label: "Aggregation"
|
|
15923
|
-
})),
|
|
15924
|
-
drop_na: boolean().default(false).describe(FieldOptions.of({
|
|
15925
|
-
label: "Drop N/A"
|
|
15926
|
-
}))
|
|
15927
|
-
}).describe(FieldOptions.of({})), AggregateTransformSchema = object({
|
|
15928
|
-
type: literal("aggregate"),
|
|
15929
|
-
column_ids: column_id_array,
|
|
15930
|
-
aggregations: array(_enum(AGGREGATION_FNS)).min(1, "At least one aggregation is required").default([
|
|
15931
|
-
"count"
|
|
15932
|
-
]).describe(FieldOptions.of({
|
|
15933
|
-
label: "Aggregations",
|
|
15934
|
-
minLength: 1
|
|
15935
|
-
}))
|
|
15936
|
-
}).describe(FieldOptions.of({
|
|
15937
|
-
direction: "row"
|
|
15938
|
-
}));
|
|
15939
|
-
const TransformTypeSchema = union([
|
|
15940
|
-
FilterRowsTransformSchema,
|
|
15941
|
-
object({
|
|
15942
|
-
type: literal("select_columns"),
|
|
15943
|
-
column_ids: column_id_array
|
|
15944
|
-
}),
|
|
15945
|
-
RenameColumnTransformSchema,
|
|
15946
|
-
ColumnConversionTransformSchema,
|
|
15947
|
-
SortColumnTransformSchema,
|
|
15948
|
-
GroupByTransformSchema,
|
|
15949
|
-
AggregateTransformSchema,
|
|
15950
|
-
object({
|
|
15951
|
-
type: literal("sample_rows"),
|
|
15952
|
-
n: number().positive().describe(FieldOptions.of({
|
|
15953
|
-
label: "Number of rows"
|
|
15954
|
-
})),
|
|
15955
|
-
seed: number().default(() => randomNumber()).describe(FieldOptions.of({
|
|
15956
|
-
label: "Re-sample",
|
|
15957
|
-
special: "random_number_button"
|
|
15958
|
-
})),
|
|
15959
|
-
replace: boolean().default(false).describe(FieldOptions.of({
|
|
15960
|
-
label: "Sample with replacement"
|
|
15961
|
-
}))
|
|
15962
|
-
}),
|
|
15963
|
-
object({
|
|
15964
|
-
type: literal("shuffle_rows"),
|
|
15965
|
-
seed: number().default(() => randomNumber()).describe(FieldOptions.of({
|
|
15966
|
-
label: "Re-shuffle",
|
|
15967
|
-
special: "random_number_button"
|
|
15968
|
-
}))
|
|
15969
|
-
}),
|
|
15970
|
-
object({
|
|
15971
|
-
type: literal("explode_columns"),
|
|
15972
|
-
column_ids: column_id_array
|
|
15973
|
-
}),
|
|
15974
|
-
object({
|
|
15975
|
-
type: literal("expand_dict"),
|
|
15976
|
-
column_id
|
|
15977
|
-
}),
|
|
15978
|
-
object({
|
|
15979
|
-
type: literal("unique"),
|
|
15980
|
-
column_ids: column_id_array,
|
|
15981
|
-
keep: _enum([
|
|
15982
|
-
"first",
|
|
15983
|
-
"last",
|
|
15984
|
-
"none",
|
|
15985
|
-
"any"
|
|
15986
|
-
]).default("first").describe(FieldOptions.of({
|
|
15987
|
-
label: "Keep"
|
|
15988
|
-
}))
|
|
15989
|
-
}).describe(FieldOptions.of({
|
|
15990
|
-
direction: "row"
|
|
15991
|
-
})),
|
|
15992
|
-
object({
|
|
15993
|
-
type: literal("pivot"),
|
|
15994
|
-
column_ids: column_id_array,
|
|
15995
|
-
index_column_ids: array(column_id.describe(FieldOptions.of({
|
|
15996
|
-
special: "column_id"
|
|
15997
|
-
}))).default([]).describe(FieldOptions.of({
|
|
15998
|
-
label: "Rows"
|
|
15999
|
-
})),
|
|
16000
|
-
value_column_ids: array(column_id.describe(FieldOptions.of({
|
|
16001
|
-
special: "column_id"
|
|
16002
|
-
}))).default([]).describe(FieldOptions.of({
|
|
16003
|
-
label: "Values",
|
|
16004
|
-
minLength: 1
|
|
16005
|
-
})),
|
|
16006
|
-
aggregation: _enum(AGGREGATION_FNS).default("sum").describe(FieldOptions.of({
|
|
16007
|
-
label: "Aggregation"
|
|
16008
|
-
}))
|
|
16009
|
-
}).describe(FieldOptions.of({}))
|
|
16010
|
-
]), TransformationsSchema = object({
|
|
16011
|
-
transforms: array(TransformTypeSchema)
|
|
16012
|
-
});
|
|
16013
16006
|
var import_compiler_runtime$57 = require_compiler_runtime(), maybeNumber = union([
|
|
16014
16007
|
number(),
|
|
16015
16008
|
nan(),
|
|
@@ -16324,11 +16317,11 @@ ${c}
|
|
|
16324
16317
|
_.pageSize,
|
|
16325
16318
|
_.pageIndex
|
|
16326
16319
|
], r[35] = w, r[36] = _.pageIndex, r[37] = _.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = u, r[44] = y, r[45] = p, r[46] = B, r[47] = H) : H = r[47];
|
|
16327
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
16328
|
-
r[48] !==
|
|
16320
|
+
let { data: W, error: G, isPending: q, isFetching: ZW } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), QW;
|
|
16321
|
+
r[48] !== Z || r[49] !== e ? (QW = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = QW) : QW = r[50];
|
|
16329
16322
|
let $W = e.showDownload, eG = e.get_size_bytes, tG = e.lazy, nG = e.totalRows, rG = useDeepCompareMemoize(w), iG = useDeepCompareMemoize(p), aG;
|
|
16330
|
-
r[51] !==
|
|
16331
|
-
|
|
16323
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== rG || r[58] !== iG ? (aG = [
|
|
16324
|
+
Z,
|
|
16332
16325
|
$W,
|
|
16333
16326
|
eG,
|
|
16334
16327
|
tG,
|
|
@@ -16336,8 +16329,8 @@ ${c}
|
|
|
16336
16329
|
y,
|
|
16337
16330
|
rG,
|
|
16338
16331
|
iG
|
|
16339
|
-
], r[51] =
|
|
16340
|
-
let { data: oG, isPending: sG } = useAsyncData(QW, aG), cG = oG ?? null, lG = !!
|
|
16332
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = rG, r[58] = iG, r[59] = aG) : aG = r[59];
|
|
16333
|
+
let { data: oG, isPending: sG } = useAsyncData(QW, aG), cG = oG ?? null, lG = !!Z && e.showDownload && sG, uG;
|
|
16341
16334
|
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== p ? (uG = async (e2) => ({
|
|
16342
16335
|
rows: await loadTableData((await u({
|
|
16343
16336
|
page_number: e2,
|
|
@@ -16412,7 +16405,7 @@ ${c}
|
|
|
16412
16405
|
r[84] === O ? SG = r[85] : (SG = () => {
|
|
16413
16406
|
j(!O);
|
|
16414
16407
|
}, r[84] = O, r[85] = SG);
|
|
16415
|
-
let CG = SG, wG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, TG = W == null ? void 0 : W.rawRows, EG =
|
|
16408
|
+
let CG = SG, wG = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, TG = W == null ? void 0 : W.rawRows, EG = ZW && !q, DG = (W == null ? void 0 : W.totalRows) ?? e.totalRows, OG = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, kG = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, AG;
|
|
16416
16409
|
r[86] !== l || r[87] !== _G || r[88] !== O || r[89] !== w || r[90] !== dG || r[91] !== _ || r[92] !== e || r[93] !== y || r[94] !== cG || r[95] !== lG || r[96] !== p || r[97] !== wG || r[98] !== TG || r[99] !== EG || r[100] !== DG || r[101] !== OG || r[102] !== kG || r[103] !== CG ? (AG = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
16417
16410
|
...e,
|
|
16418
16411
|
data: wG,
|
|
@@ -16460,7 +16453,7 @@ ${c}
|
|
|
16460
16453
|
}), r[116] = xG, r[117] = MG, r[118] = NG) : NG = r[118], NG;
|
|
16461
16454
|
});
|
|
16462
16455
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
16463
|
-
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters:
|
|
16456
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: l, sizeBytes: u, sizeBytesIsLoading: f, maxColumns: p, pagination: m, selection: h, value: g, showFilters: _, showDownload: v, showPageSizeSelector: y, showColumnExplorer: b, showRowExplorer: S, showChartBuilder: w, showDataTypes: T, rowHeaders: E, fieldTypes: O, paginationState: j, setPaginationState: M, download_as: I, columnSummaries: L, className: R, setValue: z, sorting: B, setSorting: H, showSearch: W, searchQuery: G, setSearchQuery: q, filters: ZW, setFilters: Z, reloading: QW, freezeColumnsLeft: $W, freezeColumnsRight: eG, hiddenColumns: tG, textJustifyColumns: nG, wrappedColumns: rG, columnWidths: iG, headerTooltip: aG, totalColumns: oG, get_row_ids: sG, cellStyles: cG, hoverTemplate: lG, cellHoverTexts: uG, toggleDisplayHeader: dG, isChartBuilderOpen: fG, calculate_top_k_rows: pG, preview_column: mG, getRow: hG, cellId: gG, maxHeight: _G }) => {
|
|
16464
16457
|
let vG = (0, import_react.useId)(), { locale: yG } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [bG, xG] = (0, import_react.useState)(0), { isPanelOpen: SG, isAnyPanelOpen: CG, togglePanel: wG, panelType: TG, setPanelType: EG } = usePanelOwnership(vG, gG), DG = isStaticNotebook(), OG = (0, import_react.useMemo)(() => {
|
|
16465
16458
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
16466
16459
|
let e2 = toFieldTypes(O);
|
|
@@ -16658,8 +16651,8 @@ ${c}
|
|
|
16658
16651
|
searchQuery: G,
|
|
16659
16652
|
onSearchQueryChange: q,
|
|
16660
16653
|
showFilters: _,
|
|
16661
|
-
filters:
|
|
16662
|
-
onFiltersChange:
|
|
16654
|
+
filters: ZW,
|
|
16655
|
+
onFiltersChange: Z,
|
|
16663
16656
|
calculateTopKRows: pG,
|
|
16664
16657
|
reloading: QW,
|
|
16665
16658
|
onRowSelectionChange: HG,
|
|
@@ -18793,10 +18786,10 @@ ${c}
|
|
|
18793
18786
|
], r[2] = w, r[3] = T);
|
|
18794
18787
|
let { data: E, error: O, isPending: j } = useAsyncData(S, T), M;
|
|
18795
18788
|
r[4] === E ? M = r[5] : (M = E || {}, r[4] = E, r[5] = M);
|
|
18796
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
18789
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, ZW] = (0, import_react.useState)(p || EMPTY), Z = (0, import_react.useRef)(null), QW;
|
|
18797
18790
|
r[6] === f ? QW = r[7] : (QW = (e2) => {
|
|
18798
18791
|
var _a5;
|
|
18799
|
-
f && e2 !== "transform" && ((_a5 =
|
|
18792
|
+
f && e2 !== "transform" && ((_a5 = Z.current) == null ? void 0 : _a5.submit());
|
|
18800
18793
|
}, r[6] = f, r[7] = QW);
|
|
18801
18794
|
let $W = QW, eG = (0, import_react.useRef)(q), tG;
|
|
18802
18795
|
r[8] === q ? tG = r[9] : (tG = () => {
|
|
@@ -18807,15 +18800,15 @@ ${c}
|
|
|
18807
18800
|
let e2 = eG.current;
|
|
18808
18801
|
(p == null ? void 0 : p.transforms.length) !== e2.transforms.length && m(e2);
|
|
18809
18802
|
}, r[10] = m, r[11] = p == null ? void 0 : p.transforms.length, r[12] = nG) : nG = r[12];
|
|
18810
|
-
let
|
|
18811
|
-
r[13] !== E || r[14] !== m || r[15] !==
|
|
18803
|
+
let iG = p == null ? void 0 : p.transforms.length, aG;
|
|
18804
|
+
r[13] !== E || r[14] !== m || r[15] !== iG ? (aG = [
|
|
18812
18805
|
E,
|
|
18813
|
-
|
|
18806
|
+
iG,
|
|
18814
18807
|
eG,
|
|
18815
18808
|
m
|
|
18816
|
-
], r[13] = E, r[14] = m, r[15] =
|
|
18817
|
-
let
|
|
18818
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
18809
|
+
], r[13] = E, r[14] = m, r[15] = iG, r[16] = aG) : aG = r[16], (0, import_react.useEffect)(nG, aG);
|
|
18810
|
+
let oG;
|
|
18811
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oG = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18819
18812
|
value: "transform",
|
|
18820
18813
|
className: "text-xs py-1",
|
|
18821
18814
|
children: [
|
|
@@ -18824,9 +18817,9 @@ ${c}
|
|
|
18824
18817
|
}),
|
|
18825
18818
|
"Transform"
|
|
18826
18819
|
]
|
|
18827
|
-
}), r[17] =
|
|
18828
|
-
let
|
|
18829
|
-
r[18] === H ?
|
|
18820
|
+
}), r[17] = oG) : oG = r[17];
|
|
18821
|
+
let sG;
|
|
18822
|
+
r[18] === H ? sG = r[19] : (sG = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18830
18823
|
value: "python-code",
|
|
18831
18824
|
className: "text-xs py-1",
|
|
18832
18825
|
children: [
|
|
@@ -18835,9 +18828,9 @@ ${c}
|
|
|
18835
18828
|
}),
|
|
18836
18829
|
"Python Code"
|
|
18837
18830
|
]
|
|
18838
|
-
}), r[18] = H, r[19] =
|
|
18839
|
-
let
|
|
18840
|
-
r[20] === W ?
|
|
18831
|
+
}), r[18] = H, r[19] = sG);
|
|
18832
|
+
let cG;
|
|
18833
|
+
r[20] === W ? cG = r[21] : (cG = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
18841
18834
|
value: "sql-code",
|
|
18842
18835
|
className: "text-xs py-1",
|
|
18843
18836
|
children: [
|
|
@@ -18846,54 +18839,54 @@ ${c}
|
|
|
18846
18839
|
}),
|
|
18847
18840
|
"SQL Code"
|
|
18848
18841
|
]
|
|
18849
|
-
}), r[20] = W, r[21] =
|
|
18850
|
-
let cG;
|
|
18851
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cG = (0, import_jsx_runtime.jsx)("div", {
|
|
18852
|
-
className: "grow"
|
|
18853
|
-
}), r[22] = cG) : cG = r[22];
|
|
18842
|
+
}), r[20] = W, r[21] = cG);
|
|
18854
18843
|
let lG;
|
|
18855
|
-
r[
|
|
18844
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lG = (0, import_jsx_runtime.jsx)("div", {
|
|
18845
|
+
className: "grow"
|
|
18846
|
+
}), r[22] = lG) : lG = r[22];
|
|
18847
|
+
let uG;
|
|
18848
|
+
r[23] !== sG || r[24] !== cG ? (uG = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
18856
18849
|
className: "h-8",
|
|
18857
18850
|
children: [
|
|
18858
|
-
aG,
|
|
18859
18851
|
oG,
|
|
18860
18852
|
sG,
|
|
18861
|
-
cG
|
|
18853
|
+
cG,
|
|
18854
|
+
lG
|
|
18862
18855
|
]
|
|
18863
|
-
}), r[23] =
|
|
18864
|
-
let uG;
|
|
18865
|
-
r[26] === j ? uG = r[27] : (uG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18866
|
-
size: "small"
|
|
18867
|
-
}), r[26] = j, r[27] = uG);
|
|
18856
|
+
}), r[23] = sG, r[24] = cG, r[25] = uG) : uG = r[25];
|
|
18868
18857
|
let dG;
|
|
18869
|
-
r[
|
|
18858
|
+
r[26] === j ? dG = r[27] : (dG = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
18859
|
+
size: "small"
|
|
18860
|
+
}), r[26] = j, r[27] = dG);
|
|
18861
|
+
let fG;
|
|
18862
|
+
r[28] !== uG || r[29] !== dG ? (fG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18870
18863
|
className: "flex items-center gap-2",
|
|
18871
18864
|
children: [
|
|
18872
|
-
|
|
18873
|
-
|
|
18865
|
+
uG,
|
|
18866
|
+
dG
|
|
18874
18867
|
]
|
|
18875
|
-
}), r[28] =
|
|
18876
|
-
let fG;
|
|
18877
|
-
r[31] !== m || r[32] !== p ? (fG = (e2) => {
|
|
18878
|
-
dequal(e2, p) || (m(e2), Z(e2));
|
|
18879
|
-
}, r[31] = m, r[32] = p, r[33] = fG) : fG = r[33];
|
|
18868
|
+
}), r[28] = uG, r[29] = dG, r[30] = fG) : fG = r[30];
|
|
18880
18869
|
let pG;
|
|
18881
|
-
r[
|
|
18870
|
+
r[31] !== m || r[32] !== p ? (pG = (e2) => {
|
|
18871
|
+
dequal(e2, p) || (m(e2), ZW(e2));
|
|
18872
|
+
}, r[31] = m, r[32] = p, r[33] = pG) : pG = r[33];
|
|
18873
|
+
let mG;
|
|
18874
|
+
r[34] !== B || r[35] !== c || r[36] !== g || r[37] !== q || r[38] !== f || r[39] !== pG ? (mG = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18882
18875
|
value: "transform",
|
|
18883
18876
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18884
18877
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
18885
|
-
ref:
|
|
18878
|
+
ref: Z,
|
|
18886
18879
|
initialValue: q,
|
|
18887
18880
|
columns: c,
|
|
18888
|
-
onChange:
|
|
18889
|
-
onInvalidChange:
|
|
18881
|
+
onChange: pG,
|
|
18882
|
+
onInvalidChange: ZW,
|
|
18890
18883
|
getColumnValues: g,
|
|
18891
18884
|
columnTypesPerStep: B,
|
|
18892
18885
|
lazy: f
|
|
18893
18886
|
})
|
|
18894
|
-
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] =
|
|
18895
|
-
let
|
|
18896
|
-
r[41] === H ?
|
|
18887
|
+
}), r[34] = B, r[35] = c, r[36] = g, r[37] = q, r[38] = f, r[39] = pG, r[40] = mG) : mG = r[40];
|
|
18888
|
+
let hG;
|
|
18889
|
+
r[41] === H ? hG = r[42] : (hG = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18897
18890
|
value: "python-code",
|
|
18898
18891
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18899
18892
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18902,9 +18895,9 @@ ${c}
|
|
|
18902
18895
|
code: H,
|
|
18903
18896
|
language: "python"
|
|
18904
18897
|
})
|
|
18905
|
-
}), r[41] = H, r[42] =
|
|
18906
|
-
let
|
|
18907
|
-
r[43] === W ?
|
|
18898
|
+
}), r[41] = H, r[42] = hG);
|
|
18899
|
+
let gG;
|
|
18900
|
+
r[43] === W ? gG = r[44] : (gG = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
18908
18901
|
value: "sql-code",
|
|
18909
18902
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
18910
18903
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -18913,35 +18906,35 @@ ${c}
|
|
|
18913
18906
|
code: W,
|
|
18914
18907
|
language: "sql"
|
|
18915
18908
|
})
|
|
18916
|
-
}), r[43] = W, r[44] =
|
|
18917
|
-
let
|
|
18918
|
-
r[45] !== $W || r[46] !==
|
|
18909
|
+
}), r[43] = W, r[44] = gG);
|
|
18910
|
+
let _G;
|
|
18911
|
+
r[45] !== $W || r[46] !== fG || r[47] !== mG || r[48] !== hG || r[49] !== gG ? (_G = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
18919
18912
|
defaultValue: "transform",
|
|
18920
18913
|
onValueChange: $W,
|
|
18921
18914
|
children: [
|
|
18922
|
-
|
|
18923
|
-
pG,
|
|
18915
|
+
fG,
|
|
18924
18916
|
mG,
|
|
18925
|
-
hG
|
|
18917
|
+
hG,
|
|
18918
|
+
gG
|
|
18926
18919
|
]
|
|
18927
|
-
}), r[45] = $W, r[46] =
|
|
18928
|
-
let
|
|
18929
|
-
r[51] === O ?
|
|
18920
|
+
}), r[45] = $W, r[46] = fG, r[47] = mG, r[48] = hG, r[49] = gG, r[50] = _G) : _G = r[50];
|
|
18921
|
+
let vG;
|
|
18922
|
+
r[51] === O ? vG = r[52] : (vG = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
18930
18923
|
error: O
|
|
18931
|
-
}), r[51] = O, r[52] =
|
|
18932
|
-
let
|
|
18933
|
-
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !==
|
|
18924
|
+
}), r[51] = O, r[52] = vG);
|
|
18925
|
+
let yG = I || "", bG = L ?? 0, xG = G ?? 0, SG = R || Arrays.EMPTY, CG = L && L > 5 || false, wG;
|
|
18926
|
+
r[53] !== v || r[54] !== z || r[55] !== y || r[56] !== b || r[57] !== l || r[58] !== _ || r[59] !== u || r[60] !== yG || r[61] !== bG || r[62] !== xG || r[63] !== SG || r[64] !== CG ? (wG = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
18934
18927
|
label: null,
|
|
18935
18928
|
className: "rounded-b border-x border-b",
|
|
18936
|
-
data:
|
|
18929
|
+
data: yG,
|
|
18937
18930
|
hasStableRowId: false,
|
|
18938
|
-
totalRows:
|
|
18939
|
-
totalColumns:
|
|
18931
|
+
totalRows: bG,
|
|
18932
|
+
totalColumns: xG,
|
|
18940
18933
|
maxColumns: "all",
|
|
18941
18934
|
pageSize: l,
|
|
18942
18935
|
pagination: true,
|
|
18943
18936
|
fieldTypes: z,
|
|
18944
|
-
rowHeaders:
|
|
18937
|
+
rowHeaders: SG,
|
|
18945
18938
|
showDownload: u,
|
|
18946
18939
|
download_as: v,
|
|
18947
18940
|
get_size_bytes: y,
|
|
@@ -18951,7 +18944,7 @@ ${c}
|
|
|
18951
18944
|
showColumnSummaries: false,
|
|
18952
18945
|
showDataTypes: true,
|
|
18953
18946
|
get_column_summaries: getColumnSummaries,
|
|
18954
|
-
showPageSizeSelector:
|
|
18947
|
+
showPageSizeSelector: CG,
|
|
18955
18948
|
showColumnExplorer: false,
|
|
18956
18949
|
showRowExplorer: true,
|
|
18957
18950
|
showChartBuilder: false,
|
|
@@ -18960,15 +18953,15 @@ ${c}
|
|
|
18960
18953
|
selection: null,
|
|
18961
18954
|
lazy: false,
|
|
18962
18955
|
host: b
|
|
18963
|
-
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] =
|
|
18964
|
-
let
|
|
18965
|
-
return r[66] !==
|
|
18956
|
+
}), r[53] = v, r[54] = z, r[55] = y, r[56] = b, r[57] = l, r[58] = _, r[59] = u, r[60] = yG, r[61] = bG, r[62] = xG, r[63] = SG, r[64] = CG, r[65] = wG) : wG = r[65];
|
|
18957
|
+
let TG;
|
|
18958
|
+
return r[66] !== _G || r[67] !== vG || r[68] !== wG ? (TG = (0, import_jsx_runtime.jsxs)("div", {
|
|
18966
18959
|
children: [
|
|
18967
|
-
gG,
|
|
18968
18960
|
_G,
|
|
18969
|
-
|
|
18961
|
+
vG,
|
|
18962
|
+
wG
|
|
18970
18963
|
]
|
|
18971
|
-
}), r[66] =
|
|
18964
|
+
}), r[66] = _G, r[67] = vG, r[68] = wG, r[69] = TG) : TG = r[69], TG;
|
|
18972
18965
|
});
|
|
18973
18966
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
18974
18967
|
function getColumnSummaries() {
|
|
@@ -19159,7 +19152,7 @@ ${c}
|
|
|
19159
19152
|
}, [
|
|
19160
19153
|
H
|
|
19161
19154
|
]);
|
|
19162
|
-
let q = (R == null ? void 0 : R.files) ?? [],
|
|
19155
|
+
let q = (R == null ? void 0 : R.files) ?? [], ZW = new Set(e.map((e2) => e2.path)), Z = l === "directory" || l === "all", QW = l === "file" || l === "all", $W = q.filter((e2) => Z && e2.is_directory || QW && !e2.is_directory), tG = $W.length > 0 && $W.every((e2) => ZW.has(e2.path));
|
|
19163
19156
|
if (!R && z) return (0, import_jsx_runtime.jsx)(Banner, {
|
|
19164
19157
|
kind: "danger",
|
|
19165
19158
|
children: z.message
|
|
@@ -19167,7 +19160,7 @@ ${c}
|
|
|
19167
19160
|
let nG = PathBuilder.guessDeliminator(c).deliminator, rG = e.map((e2) => (0, import_jsx_runtime.jsx)("li", {
|
|
19168
19161
|
children: e2.path
|
|
19169
19162
|
}, e2.id));
|
|
19170
|
-
function
|
|
19163
|
+
function iG(e2) {
|
|
19171
19164
|
var _a6;
|
|
19172
19165
|
if (v) return;
|
|
19173
19166
|
if (y(true), e2 === PARENT_DIRECTORY) {
|
|
@@ -19202,7 +19195,7 @@ ${c}
|
|
|
19202
19195
|
name: l2,
|
|
19203
19196
|
isDirectory: d2
|
|
19204
19197
|
});
|
|
19205
|
-
|
|
19198
|
+
ZW.has(c2) ? r(e.filter((e2) => e2.path !== c2)) : r(u ? [
|
|
19206
19199
|
...e,
|
|
19207
19200
|
f2
|
|
19208
19201
|
] : [
|
|
@@ -19215,7 +19208,7 @@ ${c}
|
|
|
19215
19208
|
function lG() {
|
|
19216
19209
|
let c2 = [];
|
|
19217
19210
|
for (let e2 of q) {
|
|
19218
|
-
if (!
|
|
19211
|
+
if (!Z && e2.is_directory || ZW.has(e2.path)) continue;
|
|
19219
19212
|
let r2 = oG({
|
|
19220
19213
|
path: e2.path,
|
|
19221
19214
|
name: e2.name,
|
|
@@ -19235,13 +19228,13 @@ ${c}
|
|
|
19235
19228
|
Icon: CornerLeftUp,
|
|
19236
19229
|
isSelected: false,
|
|
19237
19230
|
canSelect: false,
|
|
19238
|
-
onPrimary: () =>
|
|
19231
|
+
onPrimary: () => iG(PARENT_DIRECTORY),
|
|
19239
19232
|
onToggleSelect: null
|
|
19240
19233
|
},
|
|
19241
19234
|
...q.map((e2) => {
|
|
19242
19235
|
let r2 = e2.path;
|
|
19243
19236
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
19244
|
-
let c2 =
|
|
19237
|
+
let c2 = Z && e2.is_directory || QW && !e2.is_directory, l2 = ZW.has(r2), u2 = e2.is_directory ? "directory" : guessFileIconType(e2.name), d2 = () => sG({
|
|
19245
19238
|
path: r2,
|
|
19246
19239
|
name: e2.name,
|
|
19247
19240
|
isDirectory: e2.is_directory
|
|
@@ -19252,7 +19245,7 @@ ${c}
|
|
|
19252
19245
|
Icon: FILE_ICON[u2],
|
|
19253
19246
|
isSelected: l2,
|
|
19254
19247
|
canSelect: c2,
|
|
19255
|
-
onPrimary: e2.is_directory ? () =>
|
|
19248
|
+
onPrimary: e2.is_directory ? () => iG(r2) : c2 ? d2 : () => {
|
|
19256
19249
|
},
|
|
19257
19250
|
onToggleSelect: c2 ? d2 : null
|
|
19258
19251
|
};
|
|
@@ -19326,7 +19319,7 @@ ${c}
|
|
|
19326
19319
|
className: "mt-2 w-full",
|
|
19327
19320
|
placeholder: g,
|
|
19328
19321
|
value: g,
|
|
19329
|
-
onChange: (e2) =>
|
|
19322
|
+
onChange: (e2) => iG(e2.target.value),
|
|
19330
19323
|
children: pG.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
19331
19324
|
value: e2,
|
|
19332
19325
|
children: e2
|
|
@@ -24815,9 +24808,9 @@ ${c}
|
|
|
24815
24808
|
return typeof S == "function" ? S : noop$2;
|
|
24816
24809
|
}, [
|
|
24817
24810
|
S
|
|
24818
|
-
]), q = (0, import_react.useRef)(null),
|
|
24811
|
+
]), q = (0, import_react.useRef)(null), ZW = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), QW = Z[0], $W = Z[1], eG = QW.isFocused, tG = QW.isFileDialogActive, nG = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), rG = function() {
|
|
24819
24812
|
!nG.current && tG && setTimeout(function() {
|
|
24820
|
-
|
|
24813
|
+
ZW.current && (ZW.current.files.length || ($W({
|
|
24821
24814
|
type: "closeDialog"
|
|
24822
24815
|
}), G()));
|
|
24823
24816
|
}, 300);
|
|
@@ -24827,7 +24820,7 @@ ${c}
|
|
|
24827
24820
|
window.removeEventListener("focus", rG, false);
|
|
24828
24821
|
};
|
|
24829
24822
|
}, [
|
|
24830
|
-
|
|
24823
|
+
ZW,
|
|
24831
24824
|
tG,
|
|
24832
24825
|
G,
|
|
24833
24826
|
nG
|
|
@@ -25018,13 +25011,13 @@ ${c}
|
|
|
25018
25011
|
}).catch(function(e3) {
|
|
25019
25012
|
isAbort(e3) ? (G(e3), $W({
|
|
25020
25013
|
type: "closeDialog"
|
|
25021
|
-
})) : isSecurityError(e3) ? (nG.current = false,
|
|
25014
|
+
})) : isSecurityError(e3) ? (nG.current = false, ZW.current ? (ZW.current.value = null, ZW.current.click()) : sG(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : sG(e3);
|
|
25022
25015
|
});
|
|
25023
25016
|
return;
|
|
25024
25017
|
}
|
|
25025
|
-
|
|
25018
|
+
ZW.current && ($W({
|
|
25026
25019
|
type: "openDialog"
|
|
25027
|
-
}), W(),
|
|
25020
|
+
}), W(), ZW.current.value = null, ZW.current.click());
|
|
25028
25021
|
}, [
|
|
25029
25022
|
$W,
|
|
25030
25023
|
W,
|
|
@@ -25114,10 +25107,10 @@ ${c}
|
|
|
25114
25107
|
onChange: vG(composeEventHandlers(l2, fG)),
|
|
25115
25108
|
onClick: vG(composeEventHandlers(u2, CG)),
|
|
25116
25109
|
tabIndex: -1
|
|
25117
|
-
}, c2,
|
|
25110
|
+
}, c2, ZW)), d2);
|
|
25118
25111
|
};
|
|
25119
25112
|
}, [
|
|
25120
|
-
|
|
25113
|
+
ZW,
|
|
25121
25114
|
c,
|
|
25122
25115
|
p,
|
|
25123
25116
|
fG,
|
|
@@ -25128,7 +25121,7 @@ ${c}
|
|
|
25128
25121
|
getRootProps: SG,
|
|
25129
25122
|
getInputProps: wG,
|
|
25130
25123
|
rootRef: q,
|
|
25131
|
-
inputRef:
|
|
25124
|
+
inputRef: ZW,
|
|
25132
25125
|
open: vG(pG)
|
|
25133
25126
|
});
|
|
25134
25127
|
}
|
|
@@ -25361,13 +25354,13 @@ ${c}
|
|
|
25361
25354
|
html: I
|
|
25362
25355
|
})
|
|
25363
25356
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
25364
|
-
let q = w && "text-primary",
|
|
25365
|
-
r[48] !== q || r[49] !==
|
|
25357
|
+
let q = w && "text-primary", ZW = T && "text-destructive", Z;
|
|
25358
|
+
r[48] !== q || r[49] !== ZW ? (Z = cn(q, ZW), r[48] = q, r[49] = ZW, r[50] = Z) : Z = r[50];
|
|
25366
25359
|
let QW;
|
|
25367
|
-
r[51] ===
|
|
25360
|
+
r[51] === Z ? QW = r[52] : (QW = (0, import_jsx_runtime.jsx)(Upload, {
|
|
25368
25361
|
strokeWidth: 1.4,
|
|
25369
|
-
className:
|
|
25370
|
-
}), r[51] =
|
|
25362
|
+
className: Z
|
|
25363
|
+
}), r[51] = Z, r[52] = QW);
|
|
25371
25364
|
let $W = w && "text-primary", eG = T && "text-destructive", tG;
|
|
25372
25365
|
r[53] !== $W || r[54] !== eG ? (tG = cn($W, eG), r[53] = $W, r[54] = eG, r[55] = tG) : tG = r[55];
|
|
25373
25366
|
let nG;
|
|
@@ -25383,23 +25376,23 @@ ${c}
|
|
|
25383
25376
|
nG
|
|
25384
25377
|
]
|
|
25385
25378
|
}), r[58] = QW, r[59] = nG, r[60] = rG) : rG = r[60];
|
|
25386
|
-
let
|
|
25387
|
-
r[61] !== G || r[62] !== rG ? (
|
|
25379
|
+
let iG;
|
|
25380
|
+
r[61] !== G || r[62] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25388
25381
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
25389
25382
|
children: [
|
|
25390
25383
|
G,
|
|
25391
25384
|
rG
|
|
25392
25385
|
]
|
|
25393
|
-
}), r[61] = G, r[62] = rG, r[63] =
|
|
25386
|
+
}), r[61] = G, r[62] = rG, r[63] = iG) : iG = r[63];
|
|
25394
25387
|
let oG;
|
|
25395
|
-
r[64] !== W || r[65] !==
|
|
25388
|
+
r[64] !== W || r[65] !== iG || r[66] !== z || r[67] !== B ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25396
25389
|
className: z,
|
|
25397
25390
|
...B,
|
|
25398
25391
|
children: [
|
|
25399
25392
|
W,
|
|
25400
|
-
|
|
25393
|
+
iG
|
|
25401
25394
|
]
|
|
25402
|
-
}), r[64] = W, r[65] =
|
|
25395
|
+
}), r[64] = W, r[65] = iG, r[66] = z, r[67] = B, r[68] = oG) : oG = r[68];
|
|
25403
25396
|
let sG;
|
|
25404
25397
|
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== p.length ? (sG = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
25405
25398
|
className: "flex flex-row gap-1",
|
|
@@ -25544,19 +25537,19 @@ ${c}
|
|
|
25544
25537
|
var _a5;
|
|
25545
25538
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), (_a5 = j.current) == null ? void 0 : _a5.requestSubmit());
|
|
25546
25539
|
}, r[10] = q) : q = r[10];
|
|
25547
|
-
let
|
|
25548
|
-
r[11] === f ?
|
|
25540
|
+
let ZW;
|
|
25541
|
+
r[11] === f ? ZW = r[12] : (ZW = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
25549
25542
|
className: "text-center",
|
|
25550
25543
|
children: renderHTML({
|
|
25551
25544
|
html: f
|
|
25552
25545
|
})
|
|
25553
|
-
}), r[11] = f, r[12] =
|
|
25554
|
-
let
|
|
25555
|
-
r[13] === L ?
|
|
25546
|
+
}), r[11] = f, r[12] = ZW);
|
|
25547
|
+
let Z;
|
|
25548
|
+
r[13] === L ? Z = r[14] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
25556
25549
|
kind: "danger",
|
|
25557
25550
|
className: "rounded",
|
|
25558
25551
|
children: L ?? "Invalid input"
|
|
25559
|
-
}), r[13] = L, r[14] =
|
|
25552
|
+
}), r[13] = L, r[14] = Z);
|
|
25560
25553
|
let QW;
|
|
25561
25554
|
r[15] === c ? QW = r[16] : (QW = (0, import_jsx_runtime.jsx)("div", {
|
|
25562
25555
|
children: c
|
|
@@ -25587,25 +25580,25 @@ ${c}
|
|
|
25587
25580
|
}), r[23] = g, r[24] = eG, r[25] = tG, r[26] = I, r[27] = nG) : nG = r[27];
|
|
25588
25581
|
let rG;
|
|
25589
25582
|
r[28] !== _ || r[29] !== nG ? (rG = withTooltip(nG, _), r[28] = _, r[29] = nG, r[30] = rG) : rG = r[30];
|
|
25590
|
-
let
|
|
25591
|
-
r[31] !== rG || r[32] !== $W ? (
|
|
25583
|
+
let iG;
|
|
25584
|
+
r[31] !== rG || r[32] !== $W ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25592
25585
|
className: "flex justify-end gap-2 font-code",
|
|
25593
25586
|
children: [
|
|
25594
25587
|
$W,
|
|
25595
25588
|
rG
|
|
25596
25589
|
]
|
|
25597
|
-
}), r[31] = rG, r[32] = $W, r[33] =
|
|
25590
|
+
}), r[31] = rG, r[32] = $W, r[33] = iG) : iG = r[33];
|
|
25598
25591
|
let oG;
|
|
25599
|
-
r[34] !==
|
|
25592
|
+
r[34] !== iG || r[35] !== G || r[36] !== ZW || r[37] !== Z || r[38] !== QW ? (oG = (0, import_jsx_runtime.jsxs)("div", {
|
|
25600
25593
|
className: G,
|
|
25601
25594
|
onKeyDown: q,
|
|
25602
25595
|
children: [
|
|
25603
|
-
Z,
|
|
25604
25596
|
ZW,
|
|
25597
|
+
Z,
|
|
25605
25598
|
QW,
|
|
25606
|
-
|
|
25599
|
+
iG
|
|
25607
25600
|
]
|
|
25608
|
-
}), r[34] =
|
|
25601
|
+
}), r[34] = iG, r[35] = G, r[36] = ZW, r[37] = Z, r[38] = QW, r[39] = oG) : oG = r[39];
|
|
25609
25602
|
let sG;
|
|
25610
25603
|
return r[40] !== oG || r[41] !== H ? (sG = (0, import_jsx_runtime.jsx)("form", {
|
|
25611
25604
|
className: "contents",
|
|
@@ -27385,8 +27378,8 @@ ${c}
|
|
|
27385
27378
|
points: extractSunburstPoints(e2.points)
|
|
27386
27379
|
}));
|
|
27387
27380
|
}, r[29] = u, r[30] = G);
|
|
27388
|
-
let q = useEvent_default(G),
|
|
27389
|
-
r[31] === u ?
|
|
27381
|
+
let q = useEvent_default(G), ZW;
|
|
27382
|
+
r[31] === u ? ZW = r[32] : (ZW = (e2) => {
|
|
27390
27383
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
27391
27384
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
27392
27385
|
u((e3) => ({
|
|
@@ -27397,8 +27390,8 @@ ${c}
|
|
|
27397
27390
|
points: r2,
|
|
27398
27391
|
indices: c2
|
|
27399
27392
|
}));
|
|
27400
|
-
}, r[31] = u, r[32] =
|
|
27401
|
-
let
|
|
27393
|
+
}, r[31] = u, r[32] = ZW);
|
|
27394
|
+
let Z = useEvent_default(ZW), QW;
|
|
27402
27395
|
r[33] === u ? QW = r[34] : (QW = (e2) => {
|
|
27403
27396
|
e2 && u((r2) => ({
|
|
27404
27397
|
...r2,
|
|
@@ -27410,7 +27403,7 @@ ${c}
|
|
|
27410
27403
|
}));
|
|
27411
27404
|
}, r[33] = u, r[34] = QW);
|
|
27412
27405
|
let $W = useEvent_default(QW), eG = m.frames ?? void 0, tG = useEvent_default(_temp3$3), nG;
|
|
27413
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !==
|
|
27406
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== $W || r[43] !== eG || r[44] !== tG || r[45] !== R ? (nG = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
27414
27407
|
...m,
|
|
27415
27408
|
layout: h,
|
|
27416
27409
|
onRelayout: R,
|
|
@@ -27418,13 +27411,13 @@ ${c}
|
|
|
27418
27411
|
onTreemapClick: W,
|
|
27419
27412
|
onSunburstClick: q,
|
|
27420
27413
|
config: L,
|
|
27421
|
-
onClick:
|
|
27414
|
+
onClick: Z,
|
|
27422
27415
|
onSelected: $W,
|
|
27423
27416
|
className: "w-full",
|
|
27424
27417
|
useResizeHandler: true,
|
|
27425
27418
|
frames: eG,
|
|
27426
27419
|
onError: tG
|
|
27427
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] =
|
|
27420
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = $W, r[43] = eG, r[44] = tG, r[45] = R, r[46] = nG) : nG = r[46], nG;
|
|
27428
27421
|
});
|
|
27429
27422
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
27430
27423
|
function _temp$8(e) {
|
|
@@ -27556,8 +27549,8 @@ ${c}
|
|
|
27556
27549
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
27557
27550
|
let q;
|
|
27558
27551
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
27559
|
-
let
|
|
27560
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
27552
|
+
let ZW;
|
|
27553
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (ZW = (0, import_jsx_runtime.jsx)(Track, {
|
|
27561
27554
|
ref: E,
|
|
27562
27555
|
"data-testid": "track",
|
|
27563
27556
|
className: G,
|
|
@@ -27568,9 +27561,9 @@ ${c}
|
|
|
27568
27561
|
onPointerMove: z,
|
|
27569
27562
|
onPointerUp: H
|
|
27570
27563
|
})
|
|
27571
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
27572
|
-
let
|
|
27573
|
-
c[23] !== p.setFalse || c[24] !== p.setTrue ? (
|
|
27564
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = ZW) : ZW = c[22];
|
|
27565
|
+
let Z;
|
|
27566
|
+
c[23] !== p.setFalse || c[24] !== p.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27574
27567
|
asChild: true,
|
|
27575
27568
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
27576
27569
|
"data-testid": "thumb",
|
|
@@ -27580,7 +27573,7 @@ ${c}
|
|
|
27580
27573
|
onMouseEnter: p.setTrue,
|
|
27581
27574
|
onMouseLeave: p.setFalse
|
|
27582
27575
|
})
|
|
27583
|
-
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] =
|
|
27576
|
+
}), c[23] = p.setFalse, c[24] = p.setTrue, c[25] = Z) : Z = c[25];
|
|
27584
27577
|
let QW;
|
|
27585
27578
|
c[26] !== m || c[27] !== u.value || c[28] !== d ? (QW = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
27586
27579
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
@@ -27592,16 +27585,16 @@ ${c}
|
|
|
27592
27585
|
children: QW
|
|
27593
27586
|
}), c[30] = QW, c[31] = $W);
|
|
27594
27587
|
let eG;
|
|
27595
|
-
c[32] !== f || c[33] !==
|
|
27588
|
+
c[32] !== f || c[33] !== Z || c[34] !== $W ? (eG = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
27596
27589
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
27597
27590
|
delayDuration: 0,
|
|
27598
27591
|
open: f,
|
|
27599
27592
|
children: [
|
|
27600
|
-
|
|
27593
|
+
Z,
|
|
27601
27594
|
$W
|
|
27602
27595
|
]
|
|
27603
27596
|
})
|
|
27604
|
-
}), c[32] = f, c[33] =
|
|
27597
|
+
}), c[32] = f, c[33] = Z, c[34] = $W, c[35] = eG) : eG = c[35];
|
|
27605
27598
|
let tG;
|
|
27606
27599
|
c[36] !== p.setFalse || c[37] !== p.setTrue ? (tG = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
27607
27600
|
asChild: true,
|
|
@@ -27636,16 +27629,16 @@ ${c}
|
|
|
27636
27629
|
})
|
|
27637
27630
|
}), c[45] = f, c[46] = tG, c[47] = rG, c[48] = iG) : iG = c[48];
|
|
27638
27631
|
let aG;
|
|
27639
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
27632
|
+
return c[49] !== M || c[50] !== u || c[51] !== ZW || c[52] !== eG || c[53] !== iG || c[54] !== W ? (aG = (0, import_jsx_runtime.jsxs)(Root, {
|
|
27640
27633
|
ref: M,
|
|
27641
27634
|
className: W,
|
|
27642
27635
|
...u,
|
|
27643
27636
|
children: [
|
|
27644
|
-
|
|
27637
|
+
ZW,
|
|
27645
27638
|
eG,
|
|
27646
27639
|
iG
|
|
27647
27640
|
]
|
|
27648
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
27641
|
+
}), c[49] = M, c[50] = u, c[51] = ZW, c[52] = eG, c[53] = iG, c[54] = W, c[55] = aG) : aG = c[55], aG;
|
|
27649
27642
|
});
|
|
27650
27643
|
RangeSlider.displayName = Root.displayName;
|
|
27651
27644
|
var import_compiler_runtime$30 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -27696,14 +27689,14 @@ ${c}
|
|
|
27696
27689
|
}, q = (e2) => {
|
|
27697
27690
|
m && l(e2);
|
|
27698
27691
|
}, r[10] = m, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
27699
|
-
let
|
|
27700
|
-
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
27692
|
+
let ZW, Z;
|
|
27693
|
+
r[14] !== m || r[15] !== T || r[16] !== l || r[17] !== u ? (ZW = () => {
|
|
27701
27694
|
m && !dequal(T, u) && l(T);
|
|
27702
|
-
},
|
|
27695
|
+
}, Z = () => {
|
|
27703
27696
|
m && !dequal(T, u) && l(T);
|
|
27704
|
-
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
27697
|
+
}, r[14] = m, r[15] = T, r[16] = l, r[17] = u, r[18] = ZW, r[19] = Z) : (ZW = r[18], Z = r[19]);
|
|
27705
27698
|
let QW;
|
|
27706
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
27699
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== p || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== ZW || r[31] !== Z || r[32] !== b ? (QW = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
27707
27700
|
id: S,
|
|
27708
27701
|
className: W,
|
|
27709
27702
|
value: T,
|
|
@@ -27714,10 +27707,10 @@ ${c}
|
|
|
27714
27707
|
disabled: y,
|
|
27715
27708
|
onValueChange: G,
|
|
27716
27709
|
onValueCommit: q,
|
|
27717
|
-
onPointerUp:
|
|
27718
|
-
onMouseUp:
|
|
27710
|
+
onPointerUp: ZW,
|
|
27711
|
+
onMouseUp: Z,
|
|
27719
27712
|
valueMap: b
|
|
27720
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
27713
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = p, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = ZW, r[31] = Z, r[32] = b, r[33] = QW) : QW = r[33];
|
|
27721
27714
|
let $W;
|
|
27722
27715
|
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? ($W = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
27723
27716
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
@@ -31033,7 +31026,7 @@ ${c}
|
|
|
31033
31026
|
areRegExpsEqual: H,
|
|
31034
31027
|
areSetsEqual: W,
|
|
31035
31028
|
createIsNestedEqual: r2
|
|
31036
|
-
}),
|
|
31029
|
+
}), ZW = Object.freeze({
|
|
31037
31030
|
areArraysEqual: O,
|
|
31038
31031
|
areDatesEqual: j,
|
|
31039
31032
|
areMapsEqual: I,
|
|
@@ -31041,9 +31034,9 @@ ${c}
|
|
|
31041
31034
|
areRegExpsEqual: H,
|
|
31042
31035
|
areSetsEqual: G,
|
|
31043
31036
|
createIsNestedEqual: r2
|
|
31044
|
-
}),
|
|
31037
|
+
}), Z = T(q);
|
|
31045
31038
|
function QW(e3, r3) {
|
|
31046
|
-
return
|
|
31039
|
+
return Z(e3, r3, void 0);
|
|
31047
31040
|
}
|
|
31048
31041
|
var $W = T(l(q, {
|
|
31049
31042
|
createIsNestedEqual: function() {
|
|
@@ -31053,11 +31046,11 @@ ${c}
|
|
|
31053
31046
|
function eG(e3, r3) {
|
|
31054
31047
|
return $W(e3, r3, void 0);
|
|
31055
31048
|
}
|
|
31056
|
-
var tG = T(
|
|
31049
|
+
var tG = T(ZW);
|
|
31057
31050
|
function nG(e3, r3) {
|
|
31058
31051
|
return tG(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
31059
31052
|
}
|
|
31060
|
-
var rG = T(l(
|
|
31053
|
+
var rG = T(l(ZW, {
|
|
31061
31054
|
createIsNestedEqual: function() {
|
|
31062
31055
|
return f;
|
|
31063
31056
|
}
|
|
@@ -31069,7 +31062,7 @@ ${c}
|
|
|
31069
31062
|
return T(l(q, e3(q)));
|
|
31070
31063
|
}
|
|
31071
31064
|
function oG(e3) {
|
|
31072
|
-
var r3 = T(l(
|
|
31065
|
+
var r3 = T(l(ZW, e3(ZW)));
|
|
31073
31066
|
return (function(e4, c2, l2) {
|
|
31074
31067
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
31075
31068
|
});
|
|
@@ -31297,12 +31290,12 @@ ${c}
|
|
|
31297
31290
|
function G(e2) {
|
|
31298
31291
|
return e2 * 100 + "%";
|
|
31299
31292
|
}
|
|
31300
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
31293
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, ZW = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), QW = (e2) => Math.max(0, e2), $W = (e2, r2, c2) => {
|
|
31301
31294
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
31302
31295
|
return {
|
|
31303
31296
|
left: l2,
|
|
31304
31297
|
width: d2,
|
|
31305
|
-
height:
|
|
31298
|
+
height: ZW(f2, e2.height, u2),
|
|
31306
31299
|
top: QW(f2)
|
|
31307
31300
|
};
|
|
31308
31301
|
}, eG = (e2, r2, c2) => {
|
|
@@ -31311,7 +31304,7 @@ ${c}
|
|
|
31311
31304
|
top: l2,
|
|
31312
31305
|
height: d2,
|
|
31313
31306
|
width: q(e2.left, e2.width, f2, c2),
|
|
31314
|
-
left:
|
|
31307
|
+
left: Z(u2)
|
|
31315
31308
|
};
|
|
31316
31309
|
}, tG = (e2, r2, c2) => {
|
|
31317
31310
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
@@ -31319,14 +31312,14 @@ ${c}
|
|
|
31319
31312
|
height: u2,
|
|
31320
31313
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
31321
31314
|
top: QW(l2),
|
|
31322
|
-
left:
|
|
31315
|
+
left: Z(f2)
|
|
31323
31316
|
};
|
|
31324
31317
|
}, nG = (e2, r2, c2) => {
|
|
31325
31318
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
31326
31319
|
return {
|
|
31327
31320
|
width: f2,
|
|
31328
31321
|
left: u2,
|
|
31329
|
-
height:
|
|
31322
|
+
height: ZW(l2, e2.height, d2),
|
|
31330
31323
|
top: QW(l2)
|
|
31331
31324
|
};
|
|
31332
31325
|
}, rG = {
|
|
@@ -34230,7 +34223,7 @@ ${c}
|
|
|
34230
34223
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
34231
34224
|
let E = useIsDragging(), O, j;
|
|
34232
34225
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
34233
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
34226
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, ZW, Z, QW, $W, eG, tG, nG, rG, iG, aG, oG, sG, cG, lG, uG, dG, fG;
|
|
34234
34227
|
if (r[10] !== u || r[11] !== S || r[12] !== O || r[13] !== g || r[14] !== M || r[15] !== m || r[16] !== j || r[17] !== f || r[18] !== c || r[19] !== d || r[20] !== l) {
|
|
34235
34228
|
let e2 = Maps.keyBy(c.cells, _temp2$3), p2;
|
|
34236
34229
|
r[47] !== c || r[48] !== l ? (p2 = (e3) => (r2) => {
|
|
@@ -34256,12 +34249,12 @@ ${c}
|
|
|
34256
34249
|
r[60] !== b2 || r[61] !== w2 || r[62] !== T2 ? (z = cn("w-full mx-auto bg-background flex-1 min-h-full", b2, w2, T2), r[60] = b2, r[61] = w2, r[62] = T2, r[63] = z) : z = r[63], r[64] === f ? B = r[65] : (B = f ? [
|
|
34257
34250
|
20,
|
|
34258
34251
|
20
|
|
34259
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
34252
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, ZW = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
34260
34253
|
f || l({
|
|
34261
34254
|
...c,
|
|
34262
34255
|
cells: e3
|
|
34263
34256
|
});
|
|
34264
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] =
|
|
34257
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? QW = r[71] : (QW = g ? {
|
|
34265
34258
|
i: g.i,
|
|
34266
34259
|
w: g.w || 2,
|
|
34267
34260
|
h: g.h || 2
|
|
@@ -34311,10 +34304,10 @@ ${c}
|
|
|
34311
34304
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
34312
34305
|
children: m2
|
|
34313
34306
|
}, r2.id);
|
|
34314
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
34315
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
34307
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = m, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = ZW, r[31] = Z, r[32] = QW, r[33] = $W, r[34] = eG, r[35] = tG, r[36] = nG, r[37] = rG, r[38] = iG, r[39] = aG, r[40] = oG, r[41] = sG, r[42] = cG, r[43] = lG, r[44] = uG, r[45] = dG, r[46] = fG;
|
|
34308
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], ZW = r[30], Z = r[31], QW = r[32], $W = r[33], eG = r[34], tG = r[35], nG = r[36], rG = r[37], iG = r[38], aG = r[39], oG = r[40], sG = r[41], cG = r[42], lG = r[43], uG = r[44], dG = r[45], fG = r[46];
|
|
34316
34309
|
let pG;
|
|
34317
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
34310
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== ZW || r[91] !== Z || r[92] !== QW || r[93] !== $W || r[94] !== eG || r[95] !== tG || r[96] !== nG || r[97] !== rG || r[98] !== iG || r[99] !== aG || r[100] !== oG || r[101] !== sG || r[102] !== cG || r[103] !== lG || r[104] !== uG || r[105] !== dG || r[106] !== fG ? (pG = (0, import_jsx_runtime.jsx)(I, {
|
|
34318
34311
|
breakpoint: lG,
|
|
34319
34312
|
layouts: uG,
|
|
34320
34313
|
style: dG,
|
|
@@ -34326,8 +34319,8 @@ ${c}
|
|
|
34326
34319
|
isBounded: W,
|
|
34327
34320
|
compactType: G,
|
|
34328
34321
|
preventCollision: q,
|
|
34329
|
-
rowHeight:
|
|
34330
|
-
onLayoutChange:
|
|
34322
|
+
rowHeight: ZW,
|
|
34323
|
+
onLayoutChange: Z,
|
|
34331
34324
|
droppingItem: QW,
|
|
34332
34325
|
onDrop: $W,
|
|
34333
34326
|
onDragStart: eG,
|
|
@@ -34339,7 +34332,7 @@ ${c}
|
|
|
34339
34332
|
isResizable: oG,
|
|
34340
34333
|
draggableHandle: sG,
|
|
34341
34334
|
children: cG
|
|
34342
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
34335
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = ZW, r[91] = Z, r[92] = QW, r[93] = $W, r[94] = eG, r[95] = tG, r[96] = nG, r[97] = rG, r[98] = iG, r[99] = aG, r[100] = oG, r[101] = sG, r[102] = cG, r[103] = lG, r[104] = uG, r[105] = dG, r[106] = fG, r[107] = pG) : pG = r[107];
|
|
34343
34336
|
let mG = pG, hG, gG, _G, vG, yG, bG, xG;
|
|
34344
34337
|
if (r[108] !== u || r[109] !== mG || r[110] !== m || r[111] !== v || r[112] !== f || r[113] !== c || r[114] !== d || r[115] !== l || r[116] !== L) {
|
|
34345
34338
|
xG = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
@@ -34764,21 +34757,21 @@ ${c}
|
|
|
34764
34757
|
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
34765
34758
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
34766
34759
|
}), r[35] = q) : q = r[35];
|
|
34767
|
-
let
|
|
34768
|
-
r[36] === l ?
|
|
34760
|
+
let ZW;
|
|
34761
|
+
r[36] === l ? ZW = r[37] : (ZW = (0, import_jsx_runtime.jsx)(X, {
|
|
34769
34762
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
34770
34763
|
onClick: () => l()
|
|
34771
|
-
}), r[36] = l, r[37] =
|
|
34772
|
-
let
|
|
34773
|
-
return r[38] !== M || r[39] !== G || r[40] !==
|
|
34764
|
+
}), r[36] = l, r[37] = ZW);
|
|
34765
|
+
let Z;
|
|
34766
|
+
return r[38] !== M || r[39] !== G || r[40] !== ZW || r[41] !== S ? (Z = (0, import_jsx_runtime.jsxs)("div", {
|
|
34774
34767
|
className: S,
|
|
34775
34768
|
children: [
|
|
34776
34769
|
M,
|
|
34777
34770
|
G,
|
|
34778
34771
|
q,
|
|
34779
|
-
|
|
34772
|
+
ZW
|
|
34780
34773
|
]
|
|
34781
|
-
}), r[38] = M, r[39] = G, r[40] =
|
|
34774
|
+
}), r[38] = M, r[39] = G, r[40] = ZW, r[41] = S, r[42] = Z) : Z = r[42], Z;
|
|
34782
34775
|
};
|
|
34783
34776
|
function isSidebarCell(e) {
|
|
34784
34777
|
var _a5;
|
|
@@ -36782,25 +36775,25 @@ ${c}
|
|
|
36782
36775
|
}, [
|
|
36783
36776
|
T,
|
|
36784
36777
|
M
|
|
36785
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
36778
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), ZW = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
36786
36779
|
j
|
|
36787
|
-
]),
|
|
36780
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: QW, measureDroppableContainers: $W, measuringScheduled: eG } = useDroppableMeasuring(ZW, {
|
|
36788
36781
|
dragging: w,
|
|
36789
36782
|
dependencies: [
|
|
36790
36783
|
O.x,
|
|
36791
36784
|
O.y
|
|
36792
36785
|
],
|
|
36793
|
-
config:
|
|
36786
|
+
config: Z.droppable
|
|
36794
36787
|
}), tG = useCachedNode(E, T), nG = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
36795
36788
|
H
|
|
36796
|
-
]), rG = PG(), iG = useInitialRect(tG,
|
|
36789
|
+
]), rG = PG(), iG = useInitialRect(tG, Z.draggable.measure);
|
|
36797
36790
|
useLayoutShiftScrollCompensation({
|
|
36798
36791
|
activeNode: T == null ? null : E.get(T),
|
|
36799
36792
|
config: rG.layoutShiftCompensation,
|
|
36800
36793
|
initialRect: iG,
|
|
36801
|
-
measure:
|
|
36794
|
+
measure: Z.draggable.measure
|
|
36802
36795
|
});
|
|
36803
|
-
let aG = useRect(tG,
|
|
36796
|
+
let aG = useRect(tG, Z.draggable.measure, iG), oG = useRect(tG ? tG.parentElement : null), sG = (0, import_react.useRef)({
|
|
36804
36797
|
activatorEvent: null,
|
|
36805
36798
|
active: null,
|
|
36806
36799
|
activeNode: tG,
|
|
@@ -36815,7 +36808,7 @@ ${c}
|
|
|
36815
36808
|
scrollableAncestors: [],
|
|
36816
36809
|
scrollAdjustedTranslate: null
|
|
36817
36810
|
}), cG = j.getNodeFor((_a5 = sG.current.over) == null ? void 0 : _a5.id), lG = useDragOverlayMeasuring({
|
|
36818
|
-
measure:
|
|
36811
|
+
measure: Z.dragOverlay.measure
|
|
36819
36812
|
}), uG = lG.nodeRef.current ?? tG, dG = w ? lG.rect ?? aG : null, fG = !!(lG.nodeRef.current && lG.rect), pG = useRectDelta(fG ? null : aG), mG = useWindowRect(uG ? getWindow(uG) : null), hG = useScrollableAncestors(w ? cG ?? tG : null), gG = useRects(hG), _G = applyModifiers(m, {
|
|
36820
36813
|
transform: {
|
|
36821
36814
|
x: O.x - pG.x,
|
|
@@ -36839,7 +36832,7 @@ ${c}
|
|
|
36839
36832
|
active: L,
|
|
36840
36833
|
collisionRect: CG,
|
|
36841
36834
|
droppableRects: QW,
|
|
36842
|
-
droppableContainers:
|
|
36835
|
+
droppableContainers: ZW,
|
|
36843
36836
|
pointerCoordinates: vG
|
|
36844
36837
|
}) : null, TG = getFirstCollision(wG, "id"), [EG, DG] = (0, import_react.useState)(null), OG = adjustScale(fG ? _G : add(_G, xG), (EG == null ? void 0 : EG.rect) ?? null, aG), kG = (0, import_react.useRef)(null), AG = (0, import_react.useCallback)((e2, r2) => {
|
|
36845
36838
|
let { sensor: c2, options: l2 } = r2;
|
|
@@ -37060,7 +37053,7 @@ ${c}
|
|
|
37060
37053
|
measureDroppableContainers: $W,
|
|
37061
37054
|
scrollableAncestors: hG,
|
|
37062
37055
|
scrollableAncestorRects: gG,
|
|
37063
|
-
measuringConfiguration:
|
|
37056
|
+
measuringConfiguration: Z,
|
|
37064
37057
|
measuringScheduled: eG,
|
|
37065
37058
|
windowRect: mG
|
|
37066
37059
|
}), [
|
|
@@ -37078,7 +37071,7 @@ ${c}
|
|
|
37078
37071
|
$W,
|
|
37079
37072
|
hG,
|
|
37080
37073
|
gG,
|
|
37081
|
-
|
|
37074
|
+
Z,
|
|
37082
37075
|
eG,
|
|
37083
37076
|
mG
|
|
37084
37077
|
]), NG = (0, import_react.useMemo)(() => ({
|
|
@@ -37646,7 +37639,7 @@ ${c}
|
|
|
37646
37639
|
updateMeasurementsFor: I,
|
|
37647
37640
|
...m
|
|
37648
37641
|
}
|
|
37649
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
37642
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: ZW, listeners: Z, isDragging: QW, over: $W, setActivatorNodeRef: eG, transform: tG } = useDraggable({
|
|
37650
37643
|
id: f,
|
|
37651
37644
|
data: M,
|
|
37652
37645
|
attributes: {
|
|
@@ -37654,7 +37647,7 @@ ${c}
|
|
|
37654
37647
|
...c
|
|
37655
37648
|
},
|
|
37656
37649
|
disabled: O.draggable
|
|
37657
|
-
}), nG = useCombinedRefs(B,
|
|
37650
|
+
}), nG = useCombinedRefs(B, ZW), rG = !!H, iG = rG && !b && isValidIndex(v) && isValidIndex(w), aG = !T && QW, oG = iG ? (aG && iG ? tG : null) ?? (p ?? E)({
|
|
37658
37651
|
rects: S,
|
|
37659
37652
|
activeNodeRect: G,
|
|
37660
37653
|
activeIndex: v,
|
|
@@ -37720,14 +37713,14 @@ ${c}
|
|
|
37720
37713
|
isOver: z,
|
|
37721
37714
|
isSorting: rG,
|
|
37722
37715
|
isDragging: QW,
|
|
37723
|
-
listeners:
|
|
37716
|
+
listeners: Z,
|
|
37724
37717
|
node: R,
|
|
37725
37718
|
overIndex: w,
|
|
37726
37719
|
over: $W,
|
|
37727
37720
|
setNodeRef: nG,
|
|
37728
37721
|
setActivatorNodeRef: eG,
|
|
37729
37722
|
setDroppableNodeRef: B,
|
|
37730
|
-
setDraggableNodeRef:
|
|
37723
|
+
setDraggableNodeRef: ZW,
|
|
37731
37724
|
transform: fG ?? oG,
|
|
37732
37725
|
transition: pG()
|
|
37733
37726
|
};
|
|
@@ -38033,13 +38026,13 @@ ${c}
|
|
|
38033
38026
|
G
|
|
38034
38027
|
]
|
|
38035
38028
|
}), r[35] = c.id, r[36] = m, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
38036
|
-
let
|
|
38037
|
-
if (!v && !g) return
|
|
38038
|
-
let
|
|
38039
|
-
r[46] ===
|
|
38029
|
+
let ZW = q;
|
|
38030
|
+
if (!v && !g) return ZW;
|
|
38031
|
+
let Z;
|
|
38032
|
+
r[46] === ZW ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
38040
38033
|
asChild: true,
|
|
38041
|
-
children:
|
|
38042
|
-
}), r[46] =
|
|
38034
|
+
children: ZW
|
|
38035
|
+
}), r[46] = ZW, r[47] = Z);
|
|
38043
38036
|
let QW;
|
|
38044
38037
|
r[48] === v ? QW = r[49] : (QW = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
38045
38038
|
onSelect: v,
|
|
@@ -38072,12 +38065,12 @@ ${c}
|
|
|
38072
38065
|
]
|
|
38073
38066
|
}), r[53] = QW, r[54] = eG, r[55] = tG) : tG = r[55];
|
|
38074
38067
|
let nG;
|
|
38075
|
-
return r[56] !==
|
|
38068
|
+
return r[56] !== Z || r[57] !== tG ? (nG = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
38076
38069
|
children: [
|
|
38077
|
-
|
|
38070
|
+
Z,
|
|
38078
38071
|
tG
|
|
38079
38072
|
]
|
|
38080
|
-
}), r[56] =
|
|
38073
|
+
}), r[56] = Z, r[57] = tG, r[58] = nG) : nG = r[58], nG;
|
|
38081
38074
|
}, InsertCellLine = (e) => {
|
|
38082
38075
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
38083
38076
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-hidden", u), r[0] = u, r[1] = d);
|
|
@@ -38131,8 +38124,8 @@ ${c}
|
|
|
38131
38124
|
...B,
|
|
38132
38125
|
...m
|
|
38133
38126
|
}, r[20] = M, r[21] = m, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
38134
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
38135
|
-
r[25] !== l || r[26] !==
|
|
38127
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", ZW = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", QW;
|
|
38128
|
+
r[25] !== l || r[26] !== ZW || r[27] !== Z || r[28] !== q ? (QW = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, ZW, Z, l), r[25] = l, r[26] = ZW, r[27] = Z, r[28] = q, r[29] = QW) : QW = r[29];
|
|
38136
38129
|
let $W;
|
|
38137
38130
|
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? ($W = G && (0, import_jsx_runtime.jsx)("div", {
|
|
38138
38131
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
@@ -38221,7 +38214,7 @@ ${c}
|
|
|
38221
38214
|
function _temp2$2(e) {
|
|
38222
38215
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
38223
38216
|
}
|
|
38224
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
38217
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-DEpX3cZP.js"));
|
|
38225
38218
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
38226
38219
|
var _a5;
|
|
38227
38220
|
let u = useAtomValue(kioskModeAtom), d = l === "read" || u, f = useAtomValue(numColumnsAtom) > 1, [p, m] = (0, import_react.useState)(null), { slideCells: h, skippedIds: g, noOutputIds: _, slideTypes: v, startCellIndex: y } = (0, import_react.useMemo)(() => computeSlideCellsInfo(c, e), [
|
|
@@ -38606,7 +38599,7 @@ ${c}
|
|
|
38606
38599
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
38607
38600
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
38608
38601
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
38609
|
-
let H, W, G, q,
|
|
38602
|
+
let H, W, G, q, ZW, Z, QW, $W, eG, tG;
|
|
38610
38603
|
if (r[3] !== w || r[4] !== M || r[5] !== I || r[6] !== L || r[7] !== _ || r[8] !== b || r[9] !== d || r[10] !== z || r[11] !== O || r[12] !== j || r[13] !== E || r[14] !== R || r[15] !== f || r[16] !== u || r[17] !== y || r[18] !== p || r[19] !== l) {
|
|
38611
38604
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
38612
38605
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -38652,7 +38645,7 @@ ${c}
|
|
|
38652
38645
|
})
|
|
38653
38646
|
})
|
|
38654
38647
|
]
|
|
38655
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
38648
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", ZW = c, Z = R, QW = 0;
|
|
38656
38649
|
let nG2 = y && "marimo-output-stale", rG2 = L ? "p-5" : "p-3";
|
|
38657
38650
|
r[40] !== M || r[41] !== nG2 || r[42] !== rG2 ? ($W = cn("console-output-area overflow-hidden rounded-b-lg flex flex-col-reverse w-full gap-1 focus:outline-hidden", nG2, rG2, M), r[40] = M, r[41] = nG2, r[42] = rG2, r[43] = $W) : $W = r[43], r[44] === d ? eG = r[45] : (eG = d ? {
|
|
38658
38651
|
maxHeight: "none"
|
|
@@ -38685,8 +38678,8 @@ ${c}
|
|
|
38685
38678
|
wrapText: l
|
|
38686
38679
|
})
|
|
38687
38680
|
}, r2);
|
|
38688
|
-
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
38689
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
38681
|
+
}), r[3] = w, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = p, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = ZW, r[25] = Z, r[26] = QW, r[27] = $W, r[28] = eG, r[29] = tG;
|
|
38682
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], ZW = r[24], Z = r[25], QW = r[26], $W = r[27], eG = r[28], tG = r[29];
|
|
38690
38683
|
let nG;
|
|
38691
38684
|
r[46] !== w || r[47] !== S ? (nG = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
38692
38685
|
value: S,
|
|
@@ -38694,11 +38687,11 @@ ${c}
|
|
|
38694
38687
|
className: "bg-(--slate-4) border-(--slate-4) hover:bg-(--slate-5) dark:border-(--sky-5) dark:bg-(--sky-6) dark:text-(--sky-12) text-(--slate-12) rounded-l rounded-br-lg absolute right-0 bottom-0 text-xs px-1.5 py-0.5 font-mono max-w-[75%] whitespace-nowrap overflow-hidden"
|
|
38695
38688
|
}), r[46] = w, r[47] = S, r[48] = nG) : nG = r[48];
|
|
38696
38689
|
let rG;
|
|
38697
|
-
r[49] !== nG || r[50] !== G || r[51] !== q || r[52] !==
|
|
38690
|
+
r[49] !== nG || r[50] !== G || r[51] !== q || r[52] !== ZW || r[53] !== Z || r[54] !== QW || r[55] !== $W || r[56] !== eG || r[57] !== tG ? (rG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38698
38691
|
title: G,
|
|
38699
38692
|
"data-testid": q,
|
|
38700
|
-
ref:
|
|
38701
|
-
...
|
|
38693
|
+
ref: ZW,
|
|
38694
|
+
...Z,
|
|
38702
38695
|
tabIndex: QW,
|
|
38703
38696
|
className: $W,
|
|
38704
38697
|
style: eG,
|
|
@@ -38706,7 +38699,7 @@ ${c}
|
|
|
38706
38699
|
tG,
|
|
38707
38700
|
nG
|
|
38708
38701
|
]
|
|
38709
|
-
}), r[49] = nG, r[50] = G, r[51] = q, r[52] =
|
|
38702
|
+
}), r[49] = nG, r[50] = G, r[51] = q, r[52] = ZW, r[53] = Z, r[54] = QW, r[55] = $W, r[56] = eG, r[57] = tG, r[58] = rG) : rG = r[58];
|
|
38710
38703
|
let iG;
|
|
38711
38704
|
return r[59] !== H || r[60] !== W || r[61] !== rG ? (iG = (0, import_jsx_runtime.jsxs)("div", {
|
|
38712
38705
|
className: H,
|
|
@@ -39123,20 +39116,20 @@ ${c}
|
|
|
39123
39116
|
}, false), r[0] = _, r[1] = c, r[2] = y, r[3] = v, r[4] = f, r[5] = M) : M = r[5];
|
|
39124
39117
|
let I = M, L;
|
|
39125
39118
|
r[6] === f ? L = r[7] : (L = outputIsLoading(f), r[6] = f, r[7] = L);
|
|
39126
|
-
let R = L,
|
|
39127
|
-
if (r[8] !== b || r[9] !== m || r[10] !==
|
|
39119
|
+
let R = L, z = E && w !== "present", B;
|
|
39120
|
+
if (r[8] !== b || r[9] !== m || r[10] !== z || r[11] !== S || r[12] !== p) {
|
|
39128
39121
|
let e2 = new MarkdownLanguageAdapter().isSupported(b);
|
|
39129
|
-
|
|
39122
|
+
B = cn("marimo-cell", "hover-actions-parent empty:invisible", !S && !z ? publishedCellClasses({
|
|
39130
39123
|
errored: m,
|
|
39131
39124
|
stopped: p
|
|
39132
39125
|
}) : {
|
|
39133
39126
|
"has-error": m,
|
|
39134
39127
|
stopped: p,
|
|
39135
39128
|
borderless: e2
|
|
39136
|
-
}), r[8] = b, r[9] = m, r[10] =
|
|
39137
|
-
} else
|
|
39138
|
-
let
|
|
39139
|
-
if (w === "read" && S ||
|
|
39129
|
+
}), r[8] = b, r[9] = m, r[10] = z, r[11] = S, r[12] = p, r[13] = B;
|
|
39130
|
+
} else B = r[13];
|
|
39131
|
+
let H = B;
|
|
39132
|
+
if (w === "read" && S || z) {
|
|
39140
39133
|
let e2;
|
|
39141
39134
|
r[14] !== d || r[15] !== R || r[16] !== c || r[17] !== I ? (e2 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39142
39135
|
allowExpand: true,
|
|
@@ -39172,10 +39165,10 @@ ${c}
|
|
|
39172
39165
|
debuggerActive: false
|
|
39173
39166
|
}), r[31] = d, r[32] = l, r[33] = _, r[34] = T, r[35] = I, r[36] = O2) : O2 = r[36];
|
|
39174
39167
|
let M2;
|
|
39175
|
-
return r[37] !==
|
|
39168
|
+
return r[37] !== H || r[38] !== E2 || r[39] !== O2 || r[40] !== y2 || r[41] !== S2 || r[42] !== w2 ? (M2 = (0, import_jsx_runtime.jsxs)("div", {
|
|
39176
39169
|
tabIndex: -1,
|
|
39177
39170
|
ref: j,
|
|
39178
|
-
className:
|
|
39171
|
+
className: H,
|
|
39179
39172
|
...y2,
|
|
39180
39173
|
children: [
|
|
39181
39174
|
S2,
|
|
@@ -39183,7 +39176,7 @@ ${c}
|
|
|
39183
39176
|
E2,
|
|
39184
39177
|
O2
|
|
39185
39178
|
]
|
|
39186
|
-
}), r[37] =
|
|
39179
|
+
}), r[37] = H, r[38] = E2, r[39] = O2, r[40] = y2, r[41] = S2, r[42] = w2, r[43] = M2) : M2 = r[43], M2;
|
|
39187
39180
|
}
|
|
39188
39181
|
if (shouldHidePublishedCell({
|
|
39189
39182
|
errored: m,
|
|
@@ -39192,25 +39185,25 @@ ${c}
|
|
|
39192
39185
|
output: c,
|
|
39193
39186
|
showErrorTracebacks: O
|
|
39194
39187
|
})) return null;
|
|
39195
|
-
let
|
|
39196
|
-
r[44] !== d || r[45] !== T ? (
|
|
39197
|
-
let
|
|
39198
|
-
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !==
|
|
39199
|
-
allowExpand:
|
|
39188
|
+
let W;
|
|
39189
|
+
r[44] !== d || r[45] !== T ? (W = cellDomProps(d, T), r[44] = d, r[45] = T, r[46] = W) : W = r[46];
|
|
39190
|
+
let G = w === "edit", q;
|
|
39191
|
+
r[47] !== d || r[48] !== R || r[49] !== c || r[50] !== I || r[51] !== G ? (q = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
39192
|
+
allowExpand: G,
|
|
39200
39193
|
output: c,
|
|
39201
39194
|
className: CSSClasses.outputArea,
|
|
39202
39195
|
cellId: d,
|
|
39203
39196
|
stale: I,
|
|
39204
39197
|
loading: R
|
|
39205
|
-
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] =
|
|
39206
|
-
let
|
|
39207
|
-
return r[53] !==
|
|
39198
|
+
}), r[47] = d, r[48] = R, r[49] = c, r[50] = I, r[51] = G, r[52] = q) : q = r[52];
|
|
39199
|
+
let Z;
|
|
39200
|
+
return r[53] !== H || r[54] !== W || r[55] !== q ? (Z = (0, import_jsx_runtime.jsx)("div", {
|
|
39208
39201
|
tabIndex: -1,
|
|
39209
39202
|
ref: j,
|
|
39210
|
-
className:
|
|
39211
|
-
...
|
|
39212
|
-
children:
|
|
39213
|
-
}), r[53] =
|
|
39203
|
+
className: H,
|
|
39204
|
+
...W,
|
|
39205
|
+
children: q
|
|
39206
|
+
}), r[53] = H, r[54] = W, r[55] = q, r[56] = Z) : Z = r[56], Z;
|
|
39214
39207
|
});
|
|
39215
39208
|
VerticalCell.displayName = "VerticalCell";
|
|
39216
39209
|
const VerticalLayoutPlugin = {
|