@marimo-team/islands 0.21.2-dev27 → 0.21.2-dev28
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/{any-language-editor-DlsjUw_l.js → any-language-editor-BRpxklRq.js} +1 -1
- package/dist/{copy-DIK6DiIA.js → copy-BjkXCUxP.js} +12 -2
- package/dist/{esm-BLobyqMs.js → esm-No_6eSQS.js} +1 -1
- package/dist/{glide-data-editor-pZyd9UJ_.js → glide-data-editor-858wsVkd.js} +1 -1
- package/dist/main.js +376 -308
- package/package.json +1 -1
- package/src/components/data-table/__tests__/utils.test.ts +138 -1
- package/src/components/data-table/context-menu.tsx +9 -5
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +8 -2
- package/src/components/data-table/range-focus/__tests__/test-utils.ts +2 -0
- package/src/components/data-table/range-focus/__tests__/utils.test.ts +82 -8
- package/src/components/data-table/range-focus/atoms.ts +2 -2
- package/src/components/data-table/range-focus/utils.ts +50 -12
- package/src/components/data-table/types.ts +7 -0
- package/src/components/data-table/utils.ts +87 -0
- package/src/plugins/impl/DataTablePlugin.tsx +23 -2
- package/src/utils/copy.ts +18 -5
package/dist/main.js
CHANGED
|
@@ -20,7 +20,7 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
20
20
|
import { a as __toCommonJS, n as __esmMin, o as __toDynamicImportESM, r as __export$1, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
21
21
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
22
22
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
23
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
23
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BjkXCUxP.js";
|
|
24
24
|
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-BkzUmppO.js";
|
|
25
25
|
import { a as Content$3, c as useSize, i as Arrow, l as createLucideIcon, o as Root2$6, r as Anchor, s as createPopperScope, t as Root$5 } from "./dist-C0Rnbr-_.js";
|
|
26
26
|
import { A as useOnMount, B as Table$1, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, G as ChartColumn, H as ListFilter, I as $fb18d541ea1ad717$export$ad991b66133851cf, K as Calendar, L as $5a387cc49350e6db$export$722debc0e56fea39, M as Badge, N as createReducerAndAtoms, O as TIME_UNIT_DESCRIPTIONS, P as startCase_default, R as Type, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as Hash, V as SquareFunction, W as ChartPie, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, 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 useOnUnmount, 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, z as ToggleLeft } from "./spec-Bfvf9Hre.js";
|
|
@@ -34,7 +34,7 @@ import { $ as __awaiter, A as custom, B as record, C as ZodUnion$1, D as any, E
|
|
|
34
34
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
35
35
|
import { t as require_react_dom } from "./react-dom-CqtLRVZP.js";
|
|
36
36
|
import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, s as TooltipProvider$1, t as Tooltip } from "./tooltip-CKG75XQa.js";
|
|
37
|
-
import { a as _extends$5, c as setDiagnostics, d as insertTab, f as CopyClipboardIcon, i as minimalSetup, l as history, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as historyField } from "./esm-
|
|
37
|
+
import { a as _extends$5, c as setDiagnostics, d as insertTab, f as CopyClipboardIcon, i as minimalSetup, l as history, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as historyField } from "./esm-No_6eSQS.js";
|
|
38
38
|
import { i as toInteger_default, n as _baseSet_default } from "./_basePickBy-pTDW2_2A.js";
|
|
39
39
|
import { i as get_default } from "./hasIn-B9AbGLj3.js";
|
|
40
40
|
import { n as pick_default, t as range_default } from "./range-BKaWvVUE.js";
|
|
@@ -53737,6 +53737,40 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
53737
53737
|
]
|
|
53738
53738
|
}), r[5] = _, r[6] = v, r[7] = y) : y = r[7], y;
|
|
53739
53739
|
};
|
|
53740
|
+
var import_compiler_runtime$122 = require_compiler_runtime();
|
|
53741
|
+
const MimeCell = (e) => {
|
|
53742
|
+
let r = (0, import_compiler_runtime$122.c)(6), { value: c } = e, d;
|
|
53743
|
+
r[0] !== c.data || r[1] !== c.mimetype ? (d = {
|
|
53744
|
+
channel: "output",
|
|
53745
|
+
data: c.data,
|
|
53746
|
+
mimetype: c.mimetype,
|
|
53747
|
+
timestamp: 0
|
|
53748
|
+
}, r[0] = c.data, r[1] = c.mimetype, r[2] = d) : d = r[2];
|
|
53749
|
+
let f = d, _;
|
|
53750
|
+
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = cn("flex items-center space-x-2"), r[3] = _) : _ = r[3];
|
|
53751
|
+
let v;
|
|
53752
|
+
return r[4] === f ? v = r[5] : (v = (0, import_jsx_runtime.jsx)("div", {
|
|
53753
|
+
className: _,
|
|
53754
|
+
children: (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
53755
|
+
message: f
|
|
53756
|
+
})
|
|
53757
|
+
}), r[4] = f, r[5] = v), v;
|
|
53758
|
+
};
|
|
53759
|
+
function isMimeValue(e) {
|
|
53760
|
+
return typeof e == "object" && !!e && "mimetype" in e && "data" in e;
|
|
53761
|
+
}
|
|
53762
|
+
function getMimeValues(e) {
|
|
53763
|
+
if (isMimeValue(e)) return [
|
|
53764
|
+
e
|
|
53765
|
+
];
|
|
53766
|
+
if (typeof e == "object" && e && ("_serialized_mime_bundle" in e || "serialized_mime_bundle" in e)) {
|
|
53767
|
+
let r = e, c = r._serialized_mime_bundle || r.serialized_mime_bundle;
|
|
53768
|
+
if (isMimeValue(c)) return [
|
|
53769
|
+
c
|
|
53770
|
+
];
|
|
53771
|
+
}
|
|
53772
|
+
if (Array.isArray(e) && e.every(isMimeValue)) return e.map((e2) => e2);
|
|
53773
|
+
}
|
|
53740
53774
|
function toFieldTypes(e) {
|
|
53741
53775
|
return Objects.collect(e, ([e2]) => e2, ([, [e2]]) => e2);
|
|
53742
53776
|
}
|
|
@@ -53752,6 +53786,15 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
53752
53786
|
handleBigIntAndNumberLike: true
|
|
53753
53787
|
}), e);
|
|
53754
53788
|
}
|
|
53789
|
+
async function loadTableAndRawData(e, r) {
|
|
53790
|
+
return r ? Promise.all([
|
|
53791
|
+
loadTableData(e),
|
|
53792
|
+
loadTableData(r)
|
|
53793
|
+
]) : [
|
|
53794
|
+
await loadTableData(e),
|
|
53795
|
+
void 0
|
|
53796
|
+
];
|
|
53797
|
+
}
|
|
53755
53798
|
function getStableRowId(e) {
|
|
53756
53799
|
if (e && typeof e == "object" && "_marimo_row_id" in e) return String(e[INDEX_COLUMN_NAME]);
|
|
53757
53800
|
}
|
|
@@ -53763,6 +53806,41 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
53763
53806
|
let { value: r, nullAsEmptyString: c = false } = e;
|
|
53764
53807
|
return typeof r == "object" && r ? JSON.stringify(r) : r === null && c ? "" : String(r);
|
|
53765
53808
|
}
|
|
53809
|
+
function stripHtml(e) {
|
|
53810
|
+
let r = document.createElement("div");
|
|
53811
|
+
return r.innerHTML = e, (r.textContent || r.innerText || "").trim() || e;
|
|
53812
|
+
}
|
|
53813
|
+
var HTML_MIMETYPES = /* @__PURE__ */ new Set([
|
|
53814
|
+
"text/html",
|
|
53815
|
+
"text/markdown"
|
|
53816
|
+
]);
|
|
53817
|
+
function isRecord(e) {
|
|
53818
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
53819
|
+
}
|
|
53820
|
+
function getClipboardContent(e, r) {
|
|
53821
|
+
let c = typeof r == "object" && r ? getMimeValues(r) : void 0, d;
|
|
53822
|
+
if (c) {
|
|
53823
|
+
let e2 = c.filter((e3) => HTML_MIMETYPES.has(e3.mimetype)).map((e3) => e3.data);
|
|
53824
|
+
d = e2.length > 0 ? e2.join("") : void 0;
|
|
53825
|
+
}
|
|
53826
|
+
let f;
|
|
53827
|
+
return f = e !== void 0 && e !== r ? stringifyUnknownValue({
|
|
53828
|
+
value: e
|
|
53829
|
+
}) : c ? c.map((e2) => HTML_MIMETYPES.has(e2.mimetype) ? stripHtml(e2.data) : e2.data).join(", ") : stringifyUnknownValue({
|
|
53830
|
+
value: r
|
|
53831
|
+
}), {
|
|
53832
|
+
text: f,
|
|
53833
|
+
html: d
|
|
53834
|
+
};
|
|
53835
|
+
}
|
|
53836
|
+
function getRawValue(e, r, c) {
|
|
53837
|
+
var _a3;
|
|
53838
|
+
let d = (_a3 = e.options.meta) == null ? void 0 : _a3.rawData;
|
|
53839
|
+
if (d) {
|
|
53840
|
+
let e2 = d[r];
|
|
53841
|
+
if (isRecord(e2)) return e2[c];
|
|
53842
|
+
}
|
|
53843
|
+
}
|
|
53766
53844
|
var TOP_K_ROWS = 30;
|
|
53767
53845
|
const DataTableColumnHeader = ({ column: e, header: r, justify: c, className: d, calculateTopKRows: f, table: _ }) => {
|
|
53768
53846
|
let [v, y] = (0, import_react.useState)(false), { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
@@ -54245,9 +54323,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54245
54323
|
let [r, c] = import_react.useState(e), [d, f] = import_react.useState(null);
|
|
54246
54324
|
return e !== r && (f(r), c(e)), d;
|
|
54247
54325
|
}
|
|
54248
|
-
var import_compiler_runtime$
|
|
54326
|
+
var import_compiler_runtime$121 = require_compiler_runtime();
|
|
54249
54327
|
const DelayMount = (e) => {
|
|
54250
|
-
let r = (0, import_compiler_runtime$
|
|
54328
|
+
let r = (0, import_compiler_runtime$121.c)(13), { milliseconds: c, children: d, fallback: f, visibility: _, threshold: v, rootMargin: y } = e, S = _ === void 0 ? false : _, w = v === void 0 ? 0 : v, E = y === void 0 ? "0px" : y, [O, M] = (0, import_react.useState)(false), [I, z] = (0, import_react.useState)(false), G;
|
|
54251
54329
|
r[0] !== E || r[1] !== w ? (G = {
|
|
54252
54330
|
threshold: w,
|
|
54253
54331
|
root: null,
|
|
@@ -54278,9 +54356,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54278
54356
|
children: WY
|
|
54279
54357
|
}), r[10] = UY, r[11] = WY, r[12] = GY) : GY = r[12], GY;
|
|
54280
54358
|
};
|
|
54281
|
-
var import_compiler_runtime$
|
|
54359
|
+
var import_compiler_runtime$120 = require_compiler_runtime();
|
|
54282
54360
|
const DatePopover = (e) => {
|
|
54283
|
-
let r = (0, import_compiler_runtime$
|
|
54361
|
+
let r = (0, import_compiler_runtime$120.c)(15), { date: c, type: d, children: f } = e;
|
|
54284
54362
|
if (!c || Number.isNaN(new Date(c).getTime())) return f;
|
|
54285
54363
|
let _;
|
|
54286
54364
|
r[0] === c ? _ = r[1] : (_ = new Date(c), r[0] = c, r[1] = _);
|
|
@@ -54320,7 +54398,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54320
54398
|
}), r[12] = E, r[13] = O, r[14] = M) : M = r[14], M;
|
|
54321
54399
|
};
|
|
54322
54400
|
var TimezoneDisplay = (e) => {
|
|
54323
|
-
let r = (0, import_compiler_runtime$
|
|
54401
|
+
let r = (0, import_compiler_runtime$120.c)(26), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
|
|
54324
54402
|
r[0] === d ? f = r[1] : (f = Intl.DateTimeFormat(d).resolvedOptions(), r[0] = d, r[1] = f);
|
|
54325
54403
|
let _ = f.timeZone, v = c.getUTCMilliseconds() !== 0, y;
|
|
54326
54404
|
r[2] === v ? y = r[3] : (y = v ? {
|
|
@@ -54396,7 +54474,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54396
54474
|
]
|
|
54397
54475
|
}), r[23] = IY, r[24] = I, r[25] = LY) : LY = r[25], LY;
|
|
54398
54476
|
}, DateDisplay = (e) => {
|
|
54399
|
-
let r = (0, import_compiler_runtime$
|
|
54477
|
+
let r = (0, import_compiler_runtime$120.c)(6), { date: c } = e, d;
|
|
54400
54478
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
54401
54479
|
timeZone: "UTC",
|
|
54402
54480
|
dateStyle: "long"
|
|
@@ -54408,7 +54486,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54408
54486
|
children: _
|
|
54409
54487
|
}), r[4] = _, r[5] = v), v;
|
|
54410
54488
|
}, RelativeTime = (e) => {
|
|
54411
|
-
let r = (0, import_compiler_runtime$
|
|
54489
|
+
let r = (0, import_compiler_runtime$120.c)(6), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f, _;
|
|
54412
54490
|
if (r[0] !== c || r[1] !== d) {
|
|
54413
54491
|
_ = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
54414
54492
|
bb0: {
|
|
@@ -54460,7 +54538,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54460
54538
|
return r[4] === f ? v = r[5] : (v = (0, import_jsx_runtime.jsx)("span", {
|
|
54461
54539
|
children: f
|
|
54462
54540
|
}), r[4] = f, r[5] = v), v;
|
|
54463
|
-
}, import_compiler_runtime$
|
|
54541
|
+
}, import_compiler_runtime$119 = require_compiler_runtime(), hashString = (e) => {
|
|
54464
54542
|
let r = 0;
|
|
54465
54543
|
for (let c = 0; c < e.length; c++) {
|
|
54466
54544
|
let d = e.charCodeAt(c);
|
|
@@ -54477,7 +54555,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
54477
54555
|
return d;
|
|
54478
54556
|
};
|
|
54479
54557
|
const ChartSkeleton = (e) => {
|
|
54480
|
-
let r = (0, import_compiler_runtime$
|
|
54558
|
+
let r = (0, import_compiler_runtime$119.c)(11), { seed: c, width: d, height: f } = e, _ = d / 9, v = f - 15, y;
|
|
54481
54559
|
if (r[0] !== _ || r[1] !== f || r[2] !== c || r[3] !== v || r[4] !== d) {
|
|
54482
54560
|
let e2 = generateHeights({
|
|
54483
54561
|
numBars: 9,
|
|
@@ -55482,11 +55560,11 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
55482
55560
|
}
|
|
55483
55561
|
}, __publicField(_j, "EMPTY", new _j([], {}, {}, {}, {}, {
|
|
55484
55562
|
includeCharts: false
|
|
55485
|
-
})), _j), import_compiler_runtime$
|
|
55563
|
+
})), _j), import_compiler_runtime$118 = require_compiler_runtime();
|
|
55486
55564
|
const ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
|
|
55487
55565
|
var batchedLoader = createBatchedLoader();
|
|
55488
55566
|
const TableColumnSummary = (e) => {
|
|
55489
|
-
let r = (0, import_compiler_runtime$
|
|
55567
|
+
let r = (0, import_compiler_runtime$118.c)(21), { columnId: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f = import_react.use(ColumnChartContext), { theme: _ } = useTheme(), v, y, S;
|
|
55490
55568
|
if (r[0] !== f || r[1] !== c || r[2] !== d || r[3] !== _) {
|
|
55491
55569
|
let { spec: e2, type: w2, stats: E } = f.getHeaderSummary(c), O = null;
|
|
55492
55570
|
if (e2) {
|
|
@@ -55687,40 +55765,6 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
55687
55765
|
};
|
|
55688
55766
|
}
|
|
55689
55767
|
};
|
|
55690
|
-
var import_compiler_runtime$118 = require_compiler_runtime();
|
|
55691
|
-
const MimeCell = (e) => {
|
|
55692
|
-
let r = (0, import_compiler_runtime$118.c)(6), { value: c } = e, d;
|
|
55693
|
-
r[0] !== c.data || r[1] !== c.mimetype ? (d = {
|
|
55694
|
-
channel: "output",
|
|
55695
|
-
data: c.data,
|
|
55696
|
-
mimetype: c.mimetype,
|
|
55697
|
-
timestamp: 0
|
|
55698
|
-
}, r[0] = c.data, r[1] = c.mimetype, r[2] = d) : d = r[2];
|
|
55699
|
-
let f = d, _;
|
|
55700
|
-
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = cn("flex items-center space-x-2"), r[3] = _) : _ = r[3];
|
|
55701
|
-
let v;
|
|
55702
|
-
return r[4] === f ? v = r[5] : (v = (0, import_jsx_runtime.jsx)("div", {
|
|
55703
|
-
className: _,
|
|
55704
|
-
children: (0, import_jsx_runtime.jsx)(OutputRenderer, {
|
|
55705
|
-
message: f
|
|
55706
|
-
})
|
|
55707
|
-
}), r[4] = f, r[5] = v), v;
|
|
55708
|
-
};
|
|
55709
|
-
function isMimeValue(e) {
|
|
55710
|
-
return typeof e == "object" && !!e && "mimetype" in e && "data" in e;
|
|
55711
|
-
}
|
|
55712
|
-
function getMimeValues(e) {
|
|
55713
|
-
if (isMimeValue(e)) return [
|
|
55714
|
-
e
|
|
55715
|
-
];
|
|
55716
|
-
if (typeof e == "object" && e && ("_serialized_mime_bundle" in e || "serialized_mime_bundle" in e)) {
|
|
55717
|
-
let r = e, c = r._serialized_mime_bundle || r.serialized_mime_bundle;
|
|
55718
|
-
if (isMimeValue(c)) return [
|
|
55719
|
-
c
|
|
55720
|
-
];
|
|
55721
|
-
}
|
|
55722
|
-
if (Array.isArray(e) && e.every(isMimeValue)) return e.map((e2) => e2);
|
|
55723
|
-
}
|
|
55724
55768
|
function uniformSample(e, r) {
|
|
55725
55769
|
if (e.length <= r) return e;
|
|
55726
55770
|
let c = [], d = e.length / r;
|
|
@@ -56425,7 +56469,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
56425
56469
|
hasConsoleOutput: (v == null ? void 0 : v.consoleOutputs) != null
|
|
56426
56470
|
};
|
|
56427
56471
|
}
|
|
56428
|
-
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
56472
|
+
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-BRpxklRq.js"));
|
|
56429
56473
|
var import_compiler_runtime$117 = require_compiler_runtime(), extensions = [
|
|
56430
56474
|
EditorView.lineWrapping
|
|
56431
56475
|
];
|
|
@@ -57319,22 +57363,30 @@ ${r}
|
|
|
57319
57363
|
];
|
|
57320
57364
|
}
|
|
57321
57365
|
function getCellValues(e, r) {
|
|
57322
|
-
let c = /* @__PURE__ */ new Map();
|
|
57323
|
-
for (let
|
|
57324
|
-
if (
|
|
57325
|
-
let { rowId: r2, columnId:
|
|
57326
|
-
if (!
|
|
57327
|
-
let
|
|
57328
|
-
|
|
57329
|
-
|
|
57330
|
-
|
|
57366
|
+
let c = /* @__PURE__ */ new Map(), d = false;
|
|
57367
|
+
for (let f2 of r) {
|
|
57368
|
+
if (f2.includes("__select__")) continue;
|
|
57369
|
+
let { rowId: r2, columnId: _2 } = getRowAndColumnId(f2), v2 = e.getRow(r2);
|
|
57370
|
+
if (!v2) continue;
|
|
57371
|
+
let { text: y, html: S } = getClipboardContent(getRawValue(e, v2.index, _2), v2.getValue(_2));
|
|
57372
|
+
S && (d = true);
|
|
57373
|
+
let w = c.get(r2) ?? [];
|
|
57374
|
+
w.push({
|
|
57375
|
+
text: y,
|
|
57376
|
+
html: S
|
|
57377
|
+
}), c.set(r2, w);
|
|
57331
57378
|
}
|
|
57332
|
-
|
|
57379
|
+
let f = [
|
|
57333
57380
|
...c.values()
|
|
57334
|
-
]);
|
|
57381
|
+
], _ = f.map((e2) => e2.map((e3) => e3.text).join(" ")).join("\n"), v;
|
|
57382
|
+
return d && (v = `<table>${f.map((e2) => `<tr>${e2.map((e3) => `<td>${e3.html ?? escapeHtml(e3.text)}</td>`).join("")}</tr>`).join("")}</table>`), {
|
|
57383
|
+
text: _,
|
|
57384
|
+
html: v
|
|
57385
|
+
};
|
|
57335
57386
|
}
|
|
57336
|
-
function
|
|
57337
|
-
|
|
57387
|
+
function escapeHtml(e) {
|
|
57388
|
+
let r = document.createElement("div");
|
|
57389
|
+
return r.textContent = e, r.innerHTML;
|
|
57338
57390
|
}
|
|
57339
57391
|
function countDataCellsInSelection(e) {
|
|
57340
57392
|
let r = 0;
|
|
@@ -57347,7 +57399,7 @@ ${r}
|
|
|
57347
57399
|
if (d.includes("__select__")) continue;
|
|
57348
57400
|
let { rowId: r2, columnId: f } = getRowAndColumnId(d), _ = e.getRow(r2);
|
|
57349
57401
|
if (!_) continue;
|
|
57350
|
-
let v = _.getValue(f), y;
|
|
57402
|
+
let v = getRawValue(e, _.index, f) ?? _.getValue(f), y;
|
|
57351
57403
|
if (typeof v == "number") y = v;
|
|
57352
57404
|
else if (typeof v == "string") {
|
|
57353
57405
|
if (v.trim() === "") continue;
|
|
@@ -57464,10 +57516,12 @@ ${r}
|
|
|
57464
57516
|
},
|
|
57465
57517
|
handleCopy: (e, { table: r, onCopyComplete: c }) => {
|
|
57466
57518
|
let d = window.getSelection();
|
|
57467
|
-
|
|
57519
|
+
if (d && d.toString().length > 0) return e;
|
|
57520
|
+
let { text: f, html: _ } = getCellValues(r, e.selectedCells);
|
|
57521
|
+
return copyToClipboard(f, _), c(), {
|
|
57468
57522
|
...e,
|
|
57469
57523
|
copiedCells: e.selectedCells
|
|
57470
|
-
}
|
|
57524
|
+
};
|
|
57471
57525
|
},
|
|
57472
57526
|
navigate: (e, { direction: r, isShiftKey: c, table: d }) => {
|
|
57473
57527
|
let f = e.focusedCell ?? e.selectedStartCell;
|
|
@@ -58417,18 +58471,17 @@ ${r}
|
|
|
58417
58471
|
Logger.error("No cell found in context menu");
|
|
58418
58472
|
return;
|
|
58419
58473
|
}
|
|
58420
|
-
let f = () => {
|
|
58474
|
+
let f = d.getContext().table, _ = d.getValue(), v = getRawValue(f, d.row.index, d.column.id) ?? _, y = () => {
|
|
58421
58475
|
try {
|
|
58422
|
-
|
|
58423
|
-
|
|
58424
|
-
}));
|
|
58476
|
+
let { text: e2, html: r2 } = getClipboardContent(v, _);
|
|
58477
|
+
copyToClipboard(e2, r2);
|
|
58425
58478
|
} catch (e2) {
|
|
58426
58479
|
Logger.error("Failed to copy context menu cell", e2);
|
|
58427
58480
|
}
|
|
58428
|
-
},
|
|
58429
|
-
|
|
58481
|
+
}, w = d.column, O = w.getCanFilter() && ((_a3 = w.columnDef.meta) == null ? void 0 : _a3.filterType), M = (e2) => {
|
|
58482
|
+
w.setFilterValue(Filter.select({
|
|
58430
58483
|
options: [
|
|
58431
|
-
|
|
58484
|
+
v
|
|
58432
58485
|
],
|
|
58433
58486
|
operator: e2
|
|
58434
58487
|
}));
|
|
@@ -58436,7 +58489,7 @@ ${r}
|
|
|
58436
58489
|
return (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
58437
58490
|
children: [
|
|
58438
58491
|
(0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
58439
|
-
onClick:
|
|
58492
|
+
onClick: y,
|
|
58440
58493
|
children: [
|
|
58441
58494
|
(0, import_jsx_runtime.jsx)(Copy, {
|
|
58442
58495
|
className: "mo-dropdown-icon h-3 w-3"
|
|
@@ -58453,11 +58506,11 @@ ${r}
|
|
|
58453
58506
|
"Copy selected cells"
|
|
58454
58507
|
]
|
|
58455
58508
|
}),
|
|
58456
|
-
|
|
58509
|
+
O && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
58457
58510
|
children: [
|
|
58458
58511
|
(0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}),
|
|
58459
58512
|
(0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
58460
|
-
onClick: () =>
|
|
58513
|
+
onClick: () => M("in"),
|
|
58461
58514
|
children: [
|
|
58462
58515
|
(0, import_jsx_runtime.jsx)(Funnel, {
|
|
58463
58516
|
className: "mo-dropdown-icon h-3 w-3"
|
|
@@ -58466,7 +58519,7 @@ ${r}
|
|
|
58466
58519
|
]
|
|
58467
58520
|
}),
|
|
58468
58521
|
(0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
58469
|
-
onClick: () =>
|
|
58522
|
+
onClick: () => M("not_in"),
|
|
58470
58523
|
children: [
|
|
58471
58524
|
(0, import_jsx_runtime.jsx)(Funnel, {
|
|
58472
58525
|
className: "mo-dropdown-icon h-3 w-3"
|
|
@@ -60086,22 +60139,22 @@ Defaulting to \`null\`.`;
|
|
|
60086
60139
|
})
|
|
60087
60140
|
})
|
|
60088
60141
|
]
|
|
60089
|
-
}), DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: r, maxHeight: c, columns: d, data: f,
|
|
60090
|
-
let [
|
|
60142
|
+
}), DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: r, maxHeight: c, columns: d, data: f, rawData: _, selection: v, totalColumns: y, totalRows: S, manualSorting: w = false, sorting: E, setSorting: O, rowSelection: M, cellSelection: I, cellStyling: z, hoverTemplate: G, cellHoverTexts: q, paginationState: IY, setPaginationState: LY, downloadAs: RY, downloadFileName: zY, manualPagination: BY = false, pagination: VY = false, onRowSelectionChange: HY, onCellSelectionChange: UY, getRowIds: WY, enableSearch: GY = false, searchQuery: KY, onSearchQueryChange: qY, showFilters: JY = false, filters: YY, onFiltersChange: XY, reloading: ZY, freezeColumnsLeft: QY, freezeColumnsRight: $Y, toggleDisplayHeader: eX, showChartBuilder: tX, showPageSizeSelector: nX, showColumnExplorer: rX, showRowExplorer: iX, togglePanel: aX, isPanelOpen: oX, viewedRowIdx: sX, onViewedRowChange: cX }) => {
|
|
60143
|
+
let [lX, uX] = import_react.useState(false), [dX, fX] = import_react.useState(false), { locale: pX } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: mX, setColumnPinning: hX } = useColumnPinning(QY, $Y);
|
|
60091
60144
|
import_react.useEffect(() => {
|
|
60092
60145
|
let e2;
|
|
60093
|
-
return
|
|
60094
|
-
|
|
60095
|
-
}, 300) :
|
|
60146
|
+
return ZY ? e2 = setTimeout(() => {
|
|
60147
|
+
fX(true);
|
|
60148
|
+
}, 300) : fX(false), () => {
|
|
60096
60149
|
e2 && clearTimeout(e2);
|
|
60097
60150
|
};
|
|
60098
60151
|
}, [
|
|
60099
|
-
|
|
60152
|
+
ZY
|
|
60100
60153
|
]);
|
|
60101
|
-
function
|
|
60102
|
-
return
|
|
60154
|
+
function gX(e2, r2) {
|
|
60155
|
+
return IY ? r2 + (BY ? IY.pageIndex * IY.pageSize : 0) : r2;
|
|
60103
60156
|
}
|
|
60104
|
-
let
|
|
60157
|
+
let _X = useReactTable({
|
|
60105
60158
|
_features: [
|
|
60106
60159
|
ColumnPinning,
|
|
60107
60160
|
ColumnWrappingFeature,
|
|
@@ -60115,61 +60168,64 @@ Defaulting to \`null\`.`;
|
|
|
60115
60168
|
],
|
|
60116
60169
|
data: f,
|
|
60117
60170
|
columns: d,
|
|
60171
|
+
meta: {
|
|
60172
|
+
rawData: _
|
|
60173
|
+
},
|
|
60118
60174
|
getCoreRowModel: getCoreRowModel(),
|
|
60119
|
-
rowCount:
|
|
60120
|
-
...
|
|
60121
|
-
onPaginationChange:
|
|
60175
|
+
rowCount: S === "too_many" ? void 0 : S,
|
|
60176
|
+
...LY ? {
|
|
60177
|
+
onPaginationChange: LY,
|
|
60122
60178
|
getRowId: (e2, r2) => {
|
|
60123
60179
|
let c2 = getStableRowId(e2);
|
|
60124
60180
|
if (c2) return c2;
|
|
60125
|
-
let d2 =
|
|
60181
|
+
let d2 = gX(e2, r2);
|
|
60126
60182
|
return String(d2);
|
|
60127
60183
|
}
|
|
60128
60184
|
} : {},
|
|
60129
|
-
locale:
|
|
60130
|
-
manualPagination:
|
|
60185
|
+
locale: pX,
|
|
60186
|
+
manualPagination: BY,
|
|
60131
60187
|
getPaginationRowModel: getPaginationRowModel(),
|
|
60132
|
-
...
|
|
60133
|
-
onSortingChange:
|
|
60188
|
+
...O ? {
|
|
60189
|
+
onSortingChange: O
|
|
60134
60190
|
} : {},
|
|
60135
|
-
manualSorting:
|
|
60191
|
+
manualSorting: w,
|
|
60136
60192
|
enableMultiSort: true,
|
|
60137
60193
|
getSortedRowModel: getSortedRowModel(),
|
|
60138
60194
|
manualFiltering: true,
|
|
60139
|
-
enableColumnFilters:
|
|
60195
|
+
enableColumnFilters: JY,
|
|
60140
60196
|
getFilteredRowModel: getFilteredRowModel(),
|
|
60141
|
-
onColumnFiltersChange:
|
|
60142
|
-
onRowSelectionChange:
|
|
60143
|
-
onCellSelectionChange:
|
|
60144
|
-
enableCellSelection:
|
|
60145
|
-
enableMultiCellSelection:
|
|
60146
|
-
onColumnPinningChange:
|
|
60197
|
+
onColumnFiltersChange: XY,
|
|
60198
|
+
onRowSelectionChange: HY,
|
|
60199
|
+
onCellSelectionChange: UY,
|
|
60200
|
+
enableCellSelection: v === "single-cell" || v === "multi-cell",
|
|
60201
|
+
enableMultiCellSelection: v === "multi-cell",
|
|
60202
|
+
onColumnPinningChange: hX,
|
|
60147
60203
|
enableFocusRow: true,
|
|
60148
|
-
onFocusRowChange:
|
|
60204
|
+
onFocusRowChange: cX,
|
|
60149
60205
|
state: {
|
|
60150
|
-
...
|
|
60151
|
-
sorting:
|
|
60206
|
+
...E ? {
|
|
60207
|
+
sorting: E
|
|
60152
60208
|
} : {},
|
|
60153
|
-
columnFilters:
|
|
60154
|
-
...
|
|
60155
|
-
pagination:
|
|
60156
|
-
} :
|
|
60209
|
+
columnFilters: YY,
|
|
60210
|
+
...IY ? {
|
|
60211
|
+
pagination: IY
|
|
60212
|
+
} : VY && !IY ? {} : {
|
|
60157
60213
|
pagination: {
|
|
60158
60214
|
pageIndex: 0,
|
|
60159
60215
|
pageSize: f.length
|
|
60160
60216
|
}
|
|
60161
60217
|
},
|
|
60162
|
-
rowSelection:
|
|
60163
|
-
cellSelection:
|
|
60164
|
-
cellStyling:
|
|
60165
|
-
columnPinning:
|
|
60166
|
-
cellHoverTemplate:
|
|
60167
|
-
cellHoverTexts:
|
|
60168
|
-
}
|
|
60169
|
-
}),
|
|
60218
|
+
rowSelection: M ?? {},
|
|
60219
|
+
cellSelection: I ?? [],
|
|
60220
|
+
cellStyling: z,
|
|
60221
|
+
columnPinning: mX,
|
|
60222
|
+
cellHoverTemplate: G,
|
|
60223
|
+
cellHoverTexts: q ?? {}
|
|
60224
|
+
}
|
|
60225
|
+
}), vX = (oX == null ? void 0 : oX("row-viewer")) ?? false, yX = import_react.useRef(null);
|
|
60170
60226
|
return import_react.useEffect(() => {
|
|
60171
|
-
if (!
|
|
60172
|
-
let e2 =
|
|
60227
|
+
if (!yX.current) return;
|
|
60228
|
+
let e2 = yX.current.parentElement;
|
|
60173
60229
|
e2 && (c ? (e2.style.maxHeight = `${c}px`, e2.style.overflow || (e2.style.overflow = "auto")) : e2.style.removeProperty("max-height"));
|
|
60174
60230
|
}, [
|
|
60175
60231
|
c
|
|
@@ -60177,67 +60233,67 @@ Defaulting to \`null\`.`;
|
|
|
60177
60233
|
className: cn(e, "flex flex-col space-y-1"),
|
|
60178
60234
|
children: [
|
|
60179
60235
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
60180
|
-
filters:
|
|
60181
|
-
table:
|
|
60236
|
+
filters: YY,
|
|
60237
|
+
table: _X
|
|
60182
60238
|
}),
|
|
60183
60239
|
(0, import_jsx_runtime.jsxs)(CellSelectionProvider, {
|
|
60184
60240
|
children: [
|
|
60185
60241
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
60186
60242
|
className: cn(r || "rounded-md border overflow-hidden"),
|
|
60187
60243
|
children: [
|
|
60188
|
-
|
|
60189
|
-
value:
|
|
60190
|
-
onHide: () =>
|
|
60191
|
-
handleSearch:
|
|
60192
|
-
hidden: !
|
|
60193
|
-
reloading:
|
|
60244
|
+
qY && GY && (0, import_jsx_runtime.jsx)(SearchBar, {
|
|
60245
|
+
value: KY || "",
|
|
60246
|
+
onHide: () => uX(false),
|
|
60247
|
+
handleSearch: qY,
|
|
60248
|
+
hidden: !lX,
|
|
60249
|
+
reloading: ZY
|
|
60194
60250
|
}),
|
|
60195
60251
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
60196
60252
|
className: "relative",
|
|
60197
|
-
ref:
|
|
60253
|
+
ref: yX,
|
|
60198
60254
|
children: [
|
|
60199
|
-
|
|
60255
|
+
dX && (0, import_jsx_runtime.jsx)("thead", {
|
|
60200
60256
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
60201
60257
|
}),
|
|
60202
|
-
renderTableHeader(
|
|
60258
|
+
renderTableHeader(_X, !!c),
|
|
60203
60259
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
60204
|
-
table:
|
|
60260
|
+
table: _X,
|
|
60205
60261
|
columns: d,
|
|
60206
|
-
rowViewerPanelOpen:
|
|
60207
|
-
getRowIndex:
|
|
60208
|
-
viewedRowIdx:
|
|
60262
|
+
rowViewerPanelOpen: vX,
|
|
60263
|
+
getRowIndex: gX,
|
|
60264
|
+
viewedRowIdx: sX
|
|
60209
60265
|
})
|
|
60210
60266
|
]
|
|
60211
60267
|
})
|
|
60212
60268
|
]
|
|
60213
60269
|
}),
|
|
60214
60270
|
(0, import_jsx_runtime.jsx)(CellSelectionStats, {
|
|
60215
|
-
table:
|
|
60271
|
+
table: _X,
|
|
60216
60272
|
className: "px-2 pt-1 ml-auto"
|
|
60217
60273
|
})
|
|
60218
60274
|
]
|
|
60219
60275
|
}),
|
|
60220
60276
|
(0, import_jsx_runtime.jsx)(TableActions, {
|
|
60221
|
-
enableSearch:
|
|
60222
|
-
totalColumns:
|
|
60223
|
-
onSearchQueryChange:
|
|
60224
|
-
isSearchEnabled:
|
|
60225
|
-
setIsSearchEnabled:
|
|
60226
|
-
pagination:
|
|
60227
|
-
selection:
|
|
60228
|
-
onRowSelectionChange:
|
|
60229
|
-
table:
|
|
60230
|
-
downloadAs:
|
|
60231
|
-
downloadFileName:
|
|
60232
|
-
getRowIds:
|
|
60233
|
-
toggleDisplayHeader:
|
|
60234
|
-
showChartBuilder:
|
|
60235
|
-
showPageSizeSelector:
|
|
60236
|
-
showColumnExplorer:
|
|
60237
|
-
showRowExplorer:
|
|
60238
|
-
togglePanel:
|
|
60239
|
-
isPanelOpen:
|
|
60240
|
-
tableLoading:
|
|
60277
|
+
enableSearch: GY,
|
|
60278
|
+
totalColumns: y,
|
|
60279
|
+
onSearchQueryChange: qY,
|
|
60280
|
+
isSearchEnabled: lX,
|
|
60281
|
+
setIsSearchEnabled: uX,
|
|
60282
|
+
pagination: VY,
|
|
60283
|
+
selection: v,
|
|
60284
|
+
onRowSelectionChange: HY,
|
|
60285
|
+
table: _X,
|
|
60286
|
+
downloadAs: RY,
|
|
60287
|
+
downloadFileName: zY,
|
|
60288
|
+
getRowIds: WY,
|
|
60289
|
+
toggleDisplayHeader: eX,
|
|
60290
|
+
showChartBuilder: tX,
|
|
60291
|
+
showPageSizeSelector: nX,
|
|
60292
|
+
showColumnExplorer: rX,
|
|
60293
|
+
showRowExplorer: iX,
|
|
60294
|
+
togglePanel: aX,
|
|
60295
|
+
isPanelOpen: oX,
|
|
60296
|
+
tableLoading: ZY
|
|
60241
60297
|
})
|
|
60242
60298
|
]
|
|
60243
60299
|
});
|
|
@@ -70800,7 +70856,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
70800
70856
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
70801
70857
|
}
|
|
70802
70858
|
}
|
|
70803
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.21.2-
|
|
70859
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.21.2-dev28"), showCodeInRunModeAtom = atom(true);
|
|
70804
70860
|
atom(null);
|
|
70805
70861
|
var import_compiler_runtime$89 = require_compiler_runtime();
|
|
70806
70862
|
function useKeydownOnElement(e, r) {
|
|
@@ -72359,7 +72415,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72359
72415
|
"time",
|
|
72360
72416
|
"unknown"
|
|
72361
72417
|
];
|
|
72362
|
-
var import_compiler_runtime$82 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-
|
|
72418
|
+
var import_compiler_runtime$82 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-858wsVkd.js").then(async (m2) => {
|
|
72363
72419
|
await m2.__tla;
|
|
72364
72420
|
return m2;
|
|
72365
72421
|
}));
|
|
@@ -81007,6 +81063,10 @@ ${c}
|
|
|
81007
81063
|
string(),
|
|
81008
81064
|
array(object$1({}).passthrough())
|
|
81009
81065
|
]),
|
|
81066
|
+
rawData: union([
|
|
81067
|
+
string(),
|
|
81068
|
+
array(looseObject({}))
|
|
81069
|
+
]).nullish(),
|
|
81010
81070
|
totalRows: union([
|
|
81011
81071
|
number(),
|
|
81012
81072
|
literal(TOO_MANY_ROWS)
|
|
@@ -81090,7 +81150,11 @@ ${c}
|
|
|
81090
81150
|
literal(TOO_MANY_ROWS)
|
|
81091
81151
|
]),
|
|
81092
81152
|
cell_styles: record(string(), record(string(), object$1({}).passthrough())).nullable(),
|
|
81093
|
-
cell_hover_texts: cellHoverTextSchema.nullable()
|
|
81153
|
+
cell_hover_texts: cellHoverTextSchema.nullable(),
|
|
81154
|
+
raw_data: union([
|
|
81155
|
+
string(),
|
|
81156
|
+
array(looseObject({}))
|
|
81157
|
+
]).nullish()
|
|
81094
81158
|
})),
|
|
81095
81159
|
get_row_ids: rpc.input(object$1({}).passthrough()).output(object$1({
|
|
81096
81160
|
row_ids: array(number()),
|
|
@@ -81184,7 +81248,7 @@ ${c}
|
|
|
81184
81248
|
return d;
|
|
81185
81249
|
};
|
|
81186
81250
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
81187
|
-
let r = (0, import_compiler_runtime$58.c)(
|
|
81251
|
+
let r = (0, import_compiler_runtime$58.c)(103), c;
|
|
81188
81252
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
81189
81253
|
let d = c, f = e.search, _ = e.setValue, v;
|
|
81190
81254
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = [], r[2] = v) : v = r[2];
|
|
@@ -81219,33 +81283,35 @@ ${c}
|
|
|
81219
81283
|
e.pageSize
|
|
81220
81284
|
], r[18] = e.pageSize, r[19] = VY, r[20] = HY), (0, import_react.useEffect)(VY, HY);
|
|
81221
81285
|
let UY;
|
|
81222
|
-
r[21] !== G || r[22] !== E.pageIndex || r[23] !== E.pageSize || r[24] !== e.cellHoverTexts || r[25] !== e.cellStyles || r[26] !== e.data || r[27] !== e.lazy || r[28] !== e.pageSize || r[29] !== e.
|
|
81286
|
+
r[21] !== G || r[22] !== E.pageIndex || r[23] !== E.pageSize || r[24] !== e.cellHoverTexts || r[25] !== e.cellStyles || r[26] !== e.data || r[27] !== e.lazy || r[28] !== e.pageSize || r[29] !== e.rawData || r[30] !== e.totalRows || r[31] !== f || r[32] !== M || r[33] !== y ? (UY = async () => {
|
|
81223
81287
|
if (e.totalRows === 0) return {
|
|
81224
81288
|
rows: Arrays.EMPTY,
|
|
81225
81289
|
totalRows: 0,
|
|
81226
81290
|
cellStyles: {}
|
|
81227
81291
|
};
|
|
81228
|
-
let r2 = e.data, c2 = e.
|
|
81292
|
+
let r2 = e.data, c2 = e.rawData, d2 = e.totalRows, _2 = e.cellStyles, v2 = e.cellHoverTexts, S2 = E.pageSize !== e.pageSize, w2 = M === "" && E.pageIndex === 0 && G.length === 0 && y.length === 0 && !e.lazy && !S2, O2 = f({
|
|
81229
81293
|
sort: y.length > 0 ? y.map(_temp$19) : void 0,
|
|
81230
81294
|
query: M,
|
|
81231
81295
|
page_number: E.pageIndex,
|
|
81232
81296
|
page_size: E.pageSize,
|
|
81233
81297
|
filters: G.flatMap(_temp2$15)
|
|
81234
81298
|
});
|
|
81235
|
-
if (
|
|
81299
|
+
if (w2) O2.catch(_temp3$10);
|
|
81236
81300
|
else {
|
|
81237
|
-
let e2 = await
|
|
81238
|
-
r2 = e2.data, c2 = e2.
|
|
81301
|
+
let e2 = await O2;
|
|
81302
|
+
r2 = e2.data, c2 = e2.raw_data, d2 = e2.total_rows, _2 = e2.cell_styles || {}, v2 = e2.cell_hover_texts || {};
|
|
81239
81303
|
}
|
|
81240
|
-
|
|
81304
|
+
let [I2, z2] = await loadTableAndRawData(r2, c2);
|
|
81305
|
+
return r2 = I2, {
|
|
81241
81306
|
rows: r2,
|
|
81242
|
-
|
|
81243
|
-
|
|
81244
|
-
|
|
81307
|
+
rawRows: z2,
|
|
81308
|
+
totalRows: d2,
|
|
81309
|
+
cellStyles: _2,
|
|
81310
|
+
cellHoverTexts: v2
|
|
81245
81311
|
};
|
|
81246
|
-
}, r[21] = G, r[22] = E.pageIndex, r[23] = E.pageSize, r[24] = e.cellHoverTexts, r[25] = e.cellStyles, r[26] = e.data, r[27] = e.lazy, r[28] = e.pageSize, r[29] = e.
|
|
81312
|
+
}, r[21] = G, r[22] = E.pageIndex, r[23] = E.pageSize, r[24] = e.cellHoverTexts, r[25] = e.cellStyles, r[26] = e.data, r[27] = e.lazy, r[28] = e.pageSize, r[29] = e.rawData, r[30] = e.totalRows, r[31] = f, r[32] = M, r[33] = y, r[34] = UY) : UY = r[34];
|
|
81247
81313
|
let WY = useDeepCompareMemoize(e.fieldTypes), GY;
|
|
81248
|
-
r[
|
|
81314
|
+
r[35] !== G || r[36] !== E.pageIndex || r[37] !== E.pageSize || r[38] !== e.cellHoverTexts || r[39] !== e.cellStyles || r[40] !== e.data || r[41] !== e.lazy || r[42] !== e.totalRows || r[43] !== f || r[44] !== M || r[45] !== y || r[46] !== WY ? (GY = [
|
|
81249
81315
|
y,
|
|
81250
81316
|
f,
|
|
81251
81317
|
G,
|
|
@@ -81258,9 +81324,9 @@ ${c}
|
|
|
81258
81324
|
e.cellStyles,
|
|
81259
81325
|
E.pageSize,
|
|
81260
81326
|
E.pageIndex
|
|
81261
|
-
], r[
|
|
81327
|
+
], r[35] = G, r[36] = E.pageIndex, r[37] = E.pageSize, r[38] = e.cellHoverTexts, r[39] = e.cellStyles, r[40] = e.data, r[41] = e.lazy, r[42] = e.totalRows, r[43] = f, r[44] = M, r[45] = y, r[46] = WY, r[47] = GY) : GY = r[47];
|
|
81262
81328
|
let { data: KY, error: qY, isPending: JY, isFetching: YY } = useAsyncData(UY, GY), XY;
|
|
81263
|
-
r[
|
|
81329
|
+
r[48] !== G || r[49] !== f || r[50] !== M || r[51] !== y ? (XY = async (e2) => ({
|
|
81264
81330
|
rows: await loadTableData((await f({
|
|
81265
81331
|
page_number: e2,
|
|
81266
81332
|
page_size: 1,
|
|
@@ -81269,51 +81335,51 @@ ${c}
|
|
|
81269
81335
|
filters: G.flatMap(_temp5$5),
|
|
81270
81336
|
max_columns: null
|
|
81271
81337
|
})).data)
|
|
81272
|
-
}), r[
|
|
81338
|
+
}), r[48] = G, r[49] = f, r[50] = M, r[51] = y, r[52] = XY) : XY = r[52];
|
|
81273
81339
|
let ZY = XY, QY;
|
|
81274
|
-
r[
|
|
81340
|
+
r[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (QY = () => {
|
|
81275
81341
|
O(_temp6$4);
|
|
81276
|
-
}, r[
|
|
81342
|
+
}, r[53] = QY) : QY = r[53];
|
|
81277
81343
|
let $Y = KY == null ? void 0 : KY.totalRows, eX;
|
|
81278
|
-
r[
|
|
81344
|
+
r[54] === $Y ? eX = r[55] : (eX = [
|
|
81279
81345
|
$Y
|
|
81280
|
-
], r[
|
|
81346
|
+
], r[54] = $Y, r[55] = eX), (0, import_react.useEffect)(QY, eX);
|
|
81281
81347
|
let tX;
|
|
81282
|
-
r[
|
|
81348
|
+
r[56] === e ? tX = r[57] : (tX = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
81283
81349
|
data: null,
|
|
81284
81350
|
stats: {},
|
|
81285
81351
|
bin_values: {},
|
|
81286
81352
|
value_counts: {},
|
|
81287
81353
|
show_charts: false
|
|
81288
|
-
} : e.get_column_summaries({}), r[
|
|
81354
|
+
} : e.get_column_summaries({}), r[56] = e, r[57] = tX);
|
|
81289
81355
|
let nX;
|
|
81290
|
-
r[
|
|
81356
|
+
r[58] !== G || r[59] !== e.data || r[60] !== e.get_column_summaries || r[61] !== e.showColumnSummaries || r[62] !== e.totalRows || r[63] !== M ? (nX = [
|
|
81291
81357
|
e.get_column_summaries,
|
|
81292
81358
|
e.showColumnSummaries,
|
|
81293
81359
|
G,
|
|
81294
81360
|
M,
|
|
81295
81361
|
e.totalRows,
|
|
81296
81362
|
e.data
|
|
81297
|
-
], r[
|
|
81363
|
+
], r[58] = G, r[59] = e.data, r[60] = e.get_column_summaries, r[61] = e.showColumnSummaries, r[62] = e.totalRows, r[63] = M, r[64] = nX) : nX = r[64];
|
|
81298
81364
|
let { data: rX, error: iX } = useAsyncData(tX, nX), aX, oX;
|
|
81299
|
-
if (r[
|
|
81365
|
+
if (r[65] === iX ? (aX = r[66], oX = r[67]) : (aX = () => {
|
|
81300
81366
|
iX && Logger.error(iX);
|
|
81301
81367
|
}, oX = [
|
|
81302
81368
|
iX
|
|
81303
|
-
], r[
|
|
81369
|
+
], r[65] = iX, r[66] = aX, r[67] = oX), (0, import_react.useEffect)(aX, oX), JY) {
|
|
81304
81370
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? e.totalRows : e.pageSize, d2;
|
|
81305
|
-
return r[
|
|
81371
|
+
return r[68] === c2 ? d2 = r[69] : (d2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
81306
81372
|
milliseconds: 200,
|
|
81307
81373
|
children: (0, import_jsx_runtime.jsx)(LoadingTable, {
|
|
81308
81374
|
pageSize: c2
|
|
81309
81375
|
})
|
|
81310
|
-
}), r[
|
|
81376
|
+
}), r[68] = c2, r[69] = d2), d2;
|
|
81311
81377
|
}
|
|
81312
81378
|
let sX = null;
|
|
81313
81379
|
if (qY) {
|
|
81314
81380
|
Logger.error(qY);
|
|
81315
81381
|
let e2;
|
|
81316
|
-
r[
|
|
81382
|
+
r[70] === qY ? e2 = r[71] : (e2 = !isStaticNotebook() && (0, import_jsx_runtime.jsxs)(Alert, {
|
|
81317
81383
|
variant: "destructive",
|
|
81318
81384
|
className: "mb-2",
|
|
81319
81385
|
children: [
|
|
@@ -81325,16 +81391,17 @@ ${c}
|
|
|
81325
81391
|
children: qY.message || "An unknown error occurred"
|
|
81326
81392
|
})
|
|
81327
81393
|
]
|
|
81328
|
-
}), r[
|
|
81394
|
+
}), r[70] = qY, r[71] = e2), sX = e2;
|
|
81329
81395
|
}
|
|
81330
81396
|
let cX;
|
|
81331
|
-
r[
|
|
81397
|
+
r[72] === LY ? cX = r[73] : (cX = () => {
|
|
81332
81398
|
RY(!LY);
|
|
81333
|
-
}, r[
|
|
81334
|
-
let lX = cX, uX = (KY == null ? void 0 : KY.rows) ?? Arrays.EMPTY, dX = YY && !JY,
|
|
81335
|
-
r[
|
|
81399
|
+
}, r[72] = LY, r[73] = cX);
|
|
81400
|
+
let lX = cX, uX = (KY == null ? void 0 : KY.rows) ?? Arrays.EMPTY, dX = KY == null ? void 0 : KY.rawRows, fX = YY && !JY, pX = (KY == null ? void 0 : KY.totalRows) ?? e.totalRows, mX = (KY == null ? void 0 : KY.cellStyles) ?? e.cellStyles, hX = (KY == null ? void 0 : KY.cellHoverTexts) ?? e.cellHoverTexts, gX;
|
|
81401
|
+
r[74] !== d || r[75] !== rX || r[76] !== G || r[77] !== ZY || r[78] !== E || r[79] !== e || r[80] !== M || r[81] !== y || r[82] !== uX || r[83] !== dX || r[84] !== fX || r[85] !== pX || r[86] !== mX || r[87] !== hX || r[88] !== lX ? (gX = (0, import_jsx_runtime.jsx)(DataTableComponent, {
|
|
81336
81402
|
...e,
|
|
81337
81403
|
data: uX,
|
|
81404
|
+
rawData: dX,
|
|
81338
81405
|
columnSummaries: rX,
|
|
81339
81406
|
sorting: y,
|
|
81340
81407
|
setSorting: S,
|
|
@@ -81342,190 +81409,191 @@ ${c}
|
|
|
81342
81409
|
setSearchQuery: I,
|
|
81343
81410
|
filters: G,
|
|
81344
81411
|
setFilters: q,
|
|
81345
|
-
reloading:
|
|
81346
|
-
totalRows:
|
|
81412
|
+
reloading: fX,
|
|
81413
|
+
totalRows: pX,
|
|
81347
81414
|
paginationState: E,
|
|
81348
81415
|
setPaginationState: O,
|
|
81349
|
-
cellStyles:
|
|
81350
|
-
cellHoverTexts:
|
|
81416
|
+
cellStyles: mX,
|
|
81417
|
+
cellHoverTexts: hX,
|
|
81351
81418
|
toggleDisplayHeader: lX,
|
|
81352
81419
|
getRow: ZY,
|
|
81353
81420
|
cellId: d,
|
|
81354
81421
|
maxHeight: e.maxHeight
|
|
81355
|
-
}), r[
|
|
81356
|
-
let
|
|
81357
|
-
r[
|
|
81422
|
+
}), r[74] = d, r[75] = rX, r[76] = G, r[77] = ZY, r[78] = E, r[79] = e, r[80] = M, r[81] = y, r[82] = uX, r[83] = dX, r[84] = fX, r[85] = pX, r[86] = mX, r[87] = hX, r[88] = lX, r[89] = gX) : gX = r[89];
|
|
81423
|
+
let _X = gX, vX;
|
|
81424
|
+
r[90] !== d || r[91] !== _X || r[92] !== (KY == null ? void 0 : KY.rows) || r[93] !== LY || r[94] !== e.fieldTypes || r[95] !== e.get_data_url || r[96] !== e.showChartBuilder || r[97] !== e.totalColumns || r[98] !== e.totalRows ? (vX = e.showChartBuilder ? (0, import_jsx_runtime.jsx)(TablePanel, {
|
|
81358
81425
|
displayHeader: LY,
|
|
81359
81426
|
data: (KY == null ? void 0 : KY.rows) || [],
|
|
81360
81427
|
columns: e.totalColumns,
|
|
81361
81428
|
totalRows: e.totalRows,
|
|
81362
|
-
dataTable:
|
|
81429
|
+
dataTable: _X,
|
|
81363
81430
|
getDataUrl: e.get_data_url,
|
|
81364
81431
|
fieldTypes: e.fieldTypes,
|
|
81365
81432
|
cellId: d
|
|
81366
|
-
}) :
|
|
81367
|
-
let
|
|
81368
|
-
return r[
|
|
81433
|
+
}) : _X, r[90] = d, r[91] = _X, r[92] = KY == null ? void 0 : KY.rows, r[93] = LY, r[94] = e.fieldTypes, r[95] = e.get_data_url, r[96] = e.showChartBuilder, r[97] = e.totalColumns, r[98] = e.totalRows, r[99] = vX) : vX = r[99];
|
|
81434
|
+
let yX;
|
|
81435
|
+
return r[100] !== sX || r[101] !== vX ? (yX = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
81369
81436
|
children: [
|
|
81370
81437
|
sX,
|
|
81371
|
-
|
|
81438
|
+
vX
|
|
81372
81439
|
]
|
|
81373
|
-
}), r[
|
|
81440
|
+
}), r[100] = sX, r[101] = vX, r[102] = yX) : yX = r[102], yX;
|
|
81374
81441
|
});
|
|
81375
81442
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
81376
|
-
var DataTableComponent = ({ label: e, data: r,
|
|
81377
|
-
let
|
|
81378
|
-
if (!
|
|
81379
|
-
let e2 = toFieldTypes(
|
|
81380
|
-
return new ColumnChartSpecModel(
|
|
81381
|
-
includeCharts:
|
|
81443
|
+
var DataTableComponent = ({ label: e, data: r, rawData: c, totalRows: d, maxColumns: f, pagination: _, selection: v, value: y, showFilters: S, showDownload: w, showPageSizeSelector: E, showColumnExplorer: O, showRowExplorer: M, showChartBuilder: I, showDataTypes: z, rowHeaders: G, fieldTypes: q, paginationState: IY, setPaginationState: LY, download_as: RY, columnSummaries: zY, className: BY, setValue: VY, sorting: HY, setSorting: UY, enableSearch: WY, searchQuery: GY, setSearchQuery: KY, filters: qY, setFilters: JY, reloading: YY, freezeColumnsLeft: XY, freezeColumnsRight: ZY, textJustifyColumns: QY, wrappedColumns: $Y, headerTooltip: eX, totalColumns: tX, get_row_ids: nX, cellStyles: rX, hoverTemplate: iX, cellHoverTexts: aX, downloadFileName: oX, toggleDisplayHeader: sX, calculate_top_k_rows: cX, preview_column: lX, getRow: uX, cellId: dX, maxHeight: fX }) => {
|
|
81444
|
+
let pX = (0, import_react.useId)(), [mX, hX] = (0, import_react.useState)(0), { isPanelOpen: gX, togglePanel: _X } = usePanelOwnership(pX, dX), vX = (0, import_react.useMemo)(() => {
|
|
81445
|
+
if (!zY || !q || !zY.stats) return ColumnChartSpecModel.EMPTY;
|
|
81446
|
+
let e2 = toFieldTypes(q);
|
|
81447
|
+
return new ColumnChartSpecModel(zY.data || [], e2, zY.stats, zY.bin_values, zY.value_counts, {
|
|
81448
|
+
includeCharts: zY.show_charts
|
|
81382
81449
|
});
|
|
81383
81450
|
}, [
|
|
81384
|
-
|
|
81385
|
-
|
|
81386
|
-
]),
|
|
81387
|
-
|
|
81388
|
-
|
|
81389
|
-
]),
|
|
81390
|
-
|
|
81391
|
-
let
|
|
81392
|
-
rowHeaders:
|
|
81393
|
-
selection:
|
|
81394
|
-
chartSpecModel:
|
|
81395
|
-
fieldTypes:
|
|
81396
|
-
textJustifyColumns:
|
|
81397
|
-
wrappedColumns:
|
|
81398
|
-
headerTooltip:
|
|
81399
|
-
showDataTypes:
|
|
81400
|
-
calculateTopKRows:
|
|
81451
|
+
q,
|
|
81452
|
+
zY
|
|
81453
|
+
]), yX = useDeepCompareMemoize(q ?? inferFieldTypes(r)), bX = (0, import_react.useMemo)(() => f === "all" ? yX : yX.slice(0, f), [
|
|
81454
|
+
f,
|
|
81455
|
+
yX
|
|
81456
|
+
]), xX = useDeepCompareMemoize(G), SX = useDeepCompareMemoize(QY), CX = useDeepCompareMemoize($Y), wX = useDeepCompareMemoize(vX), TX = bX.length;
|
|
81457
|
+
q || (z = false);
|
|
81458
|
+
let EX = (0, import_react.useMemo)(() => generateColumns({
|
|
81459
|
+
rowHeaders: xX,
|
|
81460
|
+
selection: v,
|
|
81461
|
+
chartSpecModel: wX,
|
|
81462
|
+
fieldTypes: bX,
|
|
81463
|
+
textJustifyColumns: SX,
|
|
81464
|
+
wrappedColumns: CX,
|
|
81465
|
+
headerTooltip: eX,
|
|
81466
|
+
showDataTypes: z,
|
|
81467
|
+
calculateTopKRows: cX
|
|
81401
81468
|
}), [
|
|
81402
|
-
|
|
81403
|
-
|
|
81404
|
-
|
|
81405
|
-
bX,
|
|
81406
|
-
yX,
|
|
81469
|
+
v,
|
|
81470
|
+
z,
|
|
81471
|
+
wX,
|
|
81407
81472
|
xX,
|
|
81473
|
+
bX,
|
|
81408
81474
|
SX,
|
|
81409
|
-
|
|
81410
|
-
|
|
81411
|
-
|
|
81475
|
+
CX,
|
|
81476
|
+
eX,
|
|
81477
|
+
cX
|
|
81478
|
+
]), DX = (0, import_react.useMemo)(() => Object.fromEntries((y || []).map((e2) => [
|
|
81412
81479
|
e2,
|
|
81413
81480
|
true
|
|
81414
81481
|
])), [
|
|
81415
|
-
|
|
81416
|
-
]),
|
|
81417
|
-
if (
|
|
81482
|
+
y
|
|
81483
|
+
]), OX = useEvent_default((e2) => {
|
|
81484
|
+
if (v === "single") {
|
|
81418
81485
|
let r2 = Functions.asUpdater(e2)({});
|
|
81419
|
-
|
|
81486
|
+
VY(Object.keys(r2).slice(0, 1));
|
|
81420
81487
|
}
|
|
81421
|
-
if (
|
|
81422
|
-
let r2 = Functions.asUpdater(e2)(
|
|
81423
|
-
|
|
81488
|
+
if (v === "multi") {
|
|
81489
|
+
let r2 = Functions.asUpdater(e2)(DX);
|
|
81490
|
+
VY(Object.keys(r2));
|
|
81424
81491
|
}
|
|
81425
|
-
}),
|
|
81426
|
-
if (
|
|
81427
|
-
let r2 = getPageIndexForRow(e2,
|
|
81428
|
-
r2 !== null &&
|
|
81492
|
+
}), kX = useEvent_default((e2) => {
|
|
81493
|
+
if (hX(e2), e2 < 0 || typeof d == "number" && e2 >= d || d === "too_many") return;
|
|
81494
|
+
let r2 = getPageIndexForRow(e2, IY.pageIndex, IY.pageSize);
|
|
81495
|
+
r2 !== null && LY((e3) => ({
|
|
81429
81496
|
...e3,
|
|
81430
81497
|
pageIndex: r2
|
|
81431
81498
|
}));
|
|
81432
|
-
}),
|
|
81433
|
-
|
|
81434
|
-
}),
|
|
81499
|
+
}), AX = y.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), jX = useEvent_default((e2) => {
|
|
81500
|
+
v === "single-cell" && VY(Functions.asUpdater(e2)(AX).slice(0, 1)), v === "multi-cell" && VY(Functions.asUpdater(e2)(AX));
|
|
81501
|
+
}), MX = v === "multi" || v === "single", NX = O && lX && gX("column-explorer"), PX = isInVscodeExtension();
|
|
81435
81502
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
81436
81503
|
children: [
|
|
81437
|
-
|
|
81504
|
+
d === "too_many" && IY.pageSize === r.length && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
81438
81505
|
className: "mb-1 rounded",
|
|
81439
81506
|
children: [
|
|
81440
81507
|
"Previewing the first ",
|
|
81441
|
-
|
|
81508
|
+
IY.pageSize,
|
|
81442
81509
|
" rows."
|
|
81443
81510
|
]
|
|
81444
81511
|
}),
|
|
81445
|
-
|
|
81512
|
+
TX < tX && TX > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
81446
81513
|
className: "mb-1 rounded",
|
|
81447
81514
|
children: [
|
|
81448
81515
|
"Result clipped. Showing ",
|
|
81449
|
-
|
|
81516
|
+
TX,
|
|
81450
81517
|
" of ",
|
|
81451
|
-
|
|
81518
|
+
tX,
|
|
81452
81519
|
" columns."
|
|
81453
81520
|
]
|
|
81454
81521
|
}),
|
|
81455
|
-
(
|
|
81522
|
+
(zY == null ? void 0 : zY.is_disabled) && (0, import_jsx_runtime.jsx)(Banner, {
|
|
81456
81523
|
className: "mb-1 rounded",
|
|
81457
81524
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
81458
81525
|
}),
|
|
81459
|
-
|
|
81526
|
+
gX("row-viewer") && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
81460
81527
|
children: (0, import_jsx_runtime.jsx)(RowViewerPanel, {
|
|
81461
|
-
getRow:
|
|
81462
|
-
fieldTypes:
|
|
81463
|
-
totalRows:
|
|
81464
|
-
rowIdx:
|
|
81465
|
-
setRowIdx:
|
|
81466
|
-
isSelectable:
|
|
81467
|
-
isRowSelected:
|
|
81468
|
-
handleRowSelectionChange:
|
|
81528
|
+
getRow: uX,
|
|
81529
|
+
fieldTypes: yX,
|
|
81530
|
+
totalRows: d,
|
|
81531
|
+
rowIdx: mX,
|
|
81532
|
+
setRowIdx: kX,
|
|
81533
|
+
isSelectable: MX,
|
|
81534
|
+
isRowSelected: DX[mX],
|
|
81535
|
+
handleRowSelectionChange: OX
|
|
81469
81536
|
})
|
|
81470
81537
|
}),
|
|
81471
|
-
|
|
81538
|
+
NX && (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
81472
81539
|
children: (0, import_jsx_runtime.jsx)(ColumnExplorerPanel, {
|
|
81473
|
-
previewColumn:
|
|
81474
|
-
fieldTypes:
|
|
81475
|
-
totalRows:
|
|
81476
|
-
totalColumns:
|
|
81477
|
-
tableId:
|
|
81540
|
+
previewColumn: lX,
|
|
81541
|
+
fieldTypes: yX,
|
|
81542
|
+
totalRows: d,
|
|
81543
|
+
totalColumns: tX,
|
|
81544
|
+
tableId: pX
|
|
81478
81545
|
})
|
|
81479
81546
|
}),
|
|
81480
81547
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
81481
|
-
value:
|
|
81548
|
+
value: vX,
|
|
81482
81549
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
81483
81550
|
label: e,
|
|
81484
81551
|
align: "top",
|
|
81485
81552
|
fullWidth: true,
|
|
81486
81553
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
81487
81554
|
data: r,
|
|
81488
|
-
|
|
81489
|
-
|
|
81490
|
-
|
|
81491
|
-
|
|
81492
|
-
|
|
81493
|
-
|
|
81555
|
+
rawData: c,
|
|
81556
|
+
columns: EX,
|
|
81557
|
+
className: BY,
|
|
81558
|
+
maxHeight: fX,
|
|
81559
|
+
sorting: HY,
|
|
81560
|
+
totalRows: d,
|
|
81561
|
+
totalColumns: tX,
|
|
81494
81562
|
manualSorting: true,
|
|
81495
|
-
setSorting:
|
|
81496
|
-
pagination:
|
|
81563
|
+
setSorting: UY,
|
|
81564
|
+
pagination: _,
|
|
81497
81565
|
manualPagination: true,
|
|
81498
|
-
selection:
|
|
81499
|
-
paginationState:
|
|
81500
|
-
setPaginationState:
|
|
81501
|
-
rowSelection:
|
|
81502
|
-
cellSelection:
|
|
81503
|
-
cellStyling:
|
|
81504
|
-
hoverTemplate:
|
|
81505
|
-
cellHoverTexts:
|
|
81506
|
-
downloadAs:
|
|
81507
|
-
downloadFileName:
|
|
81508
|
-
enableSearch:
|
|
81509
|
-
searchQuery:
|
|
81510
|
-
onSearchQueryChange:
|
|
81511
|
-
showFilters:
|
|
81512
|
-
filters:
|
|
81513
|
-
onFiltersChange:
|
|
81514
|
-
reloading:
|
|
81515
|
-
onRowSelectionChange:
|
|
81516
|
-
freezeColumnsLeft:
|
|
81517
|
-
freezeColumnsRight:
|
|
81518
|
-
onCellSelectionChange:
|
|
81519
|
-
getRowIds:
|
|
81520
|
-
toggleDisplayHeader:
|
|
81521
|
-
showChartBuilder:
|
|
81522
|
-
showPageSizeSelector:
|
|
81523
|
-
showColumnExplorer:
|
|
81524
|
-
showRowExplorer:
|
|
81525
|
-
togglePanel:
|
|
81526
|
-
isPanelOpen:
|
|
81527
|
-
viewedRowIdx:
|
|
81528
|
-
onViewedRowChange: (e2) =>
|
|
81566
|
+
selection: v,
|
|
81567
|
+
paginationState: IY,
|
|
81568
|
+
setPaginationState: LY,
|
|
81569
|
+
rowSelection: DX,
|
|
81570
|
+
cellSelection: AX,
|
|
81571
|
+
cellStyling: rX,
|
|
81572
|
+
hoverTemplate: iX,
|
|
81573
|
+
cellHoverTexts: aX,
|
|
81574
|
+
downloadAs: w ? RY : void 0,
|
|
81575
|
+
downloadFileName: oX,
|
|
81576
|
+
enableSearch: WY,
|
|
81577
|
+
searchQuery: GY,
|
|
81578
|
+
onSearchQueryChange: KY,
|
|
81579
|
+
showFilters: S,
|
|
81580
|
+
filters: qY,
|
|
81581
|
+
onFiltersChange: JY,
|
|
81582
|
+
reloading: YY,
|
|
81583
|
+
onRowSelectionChange: OX,
|
|
81584
|
+
freezeColumnsLeft: XY,
|
|
81585
|
+
freezeColumnsRight: ZY,
|
|
81586
|
+
onCellSelectionChange: jX,
|
|
81587
|
+
getRowIds: nX,
|
|
81588
|
+
toggleDisplayHeader: sX,
|
|
81589
|
+
showChartBuilder: I,
|
|
81590
|
+
showPageSizeSelector: E,
|
|
81591
|
+
showColumnExplorer: O && !PX,
|
|
81592
|
+
showRowExplorer: M && !PX,
|
|
81593
|
+
togglePanel: _X,
|
|
81594
|
+
isPanelOpen: gX,
|
|
81595
|
+
viewedRowIdx: mX,
|
|
81596
|
+
onViewedRowChange: (e2) => hX(e2)
|
|
81529
81597
|
})
|
|
81530
81598
|
})
|
|
81531
81599
|
})
|