@marimo-team/islands 0.13.16-dev94 → 0.13.16-dev95

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.
Files changed (60) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CVNNQcRZ.js → ConnectedDataExplorerComponent-CJSkV0sP.js} +251 -252
  2. package/dist/{ImageComparisonComponent-kFzXH9Ww.js → ImageComparisonComponent-DoWSgXlm.js} +1 -1
  3. package/dist/{VegaLite-CQpracvX.js → VegaLite-BLIY8Adv.js} +3 -3
  4. package/dist/{_baseUniq-JRFHIh3u.js → _baseUniq-W6c8_Vtz.js} +1 -1
  5. package/dist/{any-language-editor-DG9NRXi3.js → any-language-editor-DiEZbKbD.js} +6 -6
  6. package/dist/{architectureDiagram-IEHRJDOE-Cl8enq4W.js → architectureDiagram-IEHRJDOE-B9ljcwOS.js} +5 -5
  7. package/dist/assets/{save-worker-DwN_qfSx.js → save-worker-CtVuV4Hi.js} +471 -470
  8. package/dist/assets/{worker-BzMPE1Lq.js → worker-BU1a2jgP.js} +406 -405
  9. package/dist/assets/{worker-ISYYr8IB.js → worker-Tb399Bgs.js} +3430 -3428
  10. package/dist/{blockDiagram-JOT3LUYC-CzZLfMiE.js → blockDiagram-JOT3LUYC-DbMuP6Lr.js} +4 -4
  11. package/dist/{c4Diagram-VJAJSXHY-BMC_6wMx.js → c4Diagram-VJAJSXHY-SJ-fVhgT.js} +2 -2
  12. package/dist/{channel-2g34r5Sx.js → channel-eLbG7yyD.js} +1 -1
  13. package/dist/{chunk-4BMEZGHF-BwsVqPbb.js → chunk-4BMEZGHF--0boCy9z.js} +1 -1
  14. package/dist/{chunk-A2AXSNBT-KV5bz0_y.js → chunk-A2AXSNBT-B3WhhCgc.js} +2 -2
  15. package/dist/{chunk-AEK57VVT-7m0OvSTO.js → chunk-AEK57VVT-DBQdQ1Do.js} +2 -2
  16. package/dist/{chunk-D6G4REZN-DiB1YQSA.js → chunk-D6G4REZN-Dn_mUF7X.js} +1 -1
  17. package/dist/{chunk-RZ5BOZE2-DjMceKMj.js → chunk-RZ5BOZE2-CeF3VxET.js} +1 -1
  18. package/dist/{chunk-XZIHB7SX-BLoPnNPZ.js → chunk-XZIHB7SX-BvaJEaGb.js} +1 -1
  19. package/dist/{classDiagram-GIVACNV2-CKcuM4yO.js → classDiagram-GIVACNV2-ZCPIn7jk.js} +2 -2
  20. package/dist/{classDiagram-v2-COTLJTTW-CKcuM4yO.js → classDiagram-v2-COTLJTTW-ZCPIn7jk.js} +2 -2
  21. package/dist/{clone-Dv9ilD71.js → clone-BghomIOS.js} +1 -1
  22. package/dist/{dagre-OKDRZEBW-CECeWr56.js → dagre-OKDRZEBW-CwK1cPgR.js} +6 -6
  23. package/dist/{data-editor-K6q404yy.js → data-editor-BkochzF5.js} +1 -1
  24. package/dist/{diagram-SSKATNLV-BvwSCwgH.js → diagram-SSKATNLV-B8jhuHZI.js} +3 -3
  25. package/dist/{diagram-VNBRO52H-BjVvPzF4.js → diagram-VNBRO52H-DAU_Z3Mn.js} +3 -3
  26. package/dist/{erDiagram-Q7BY3M3F-BIHuTsW7.js → erDiagram-Q7BY3M3F-wpbBb353.js} +3 -3
  27. package/dist/{flowDiagram-4HSFHLVR-BahFSG2L.js → flowDiagram-4HSFHLVR-BEEeiUR4.js} +3 -3
  28. package/dist/{ganttDiagram-APWFNJXF-BR1yboc-.js → ganttDiagram-APWFNJXF-BPwEi0of.js} +4 -4
  29. package/dist/{gitGraphDiagram-7IBYFJ6S-D-pizuCF.js → gitGraphDiagram-7IBYFJ6S-Ur5TFCoX.js} +4 -4
  30. package/dist/{graph-vV-1O9N-.js → graph-DAJgDUOQ.js} +3 -3
  31. package/dist/{index-DVd0czE4.js → index-Bfuibi6S.js} +1 -1
  32. package/dist/{index-BbwmkhzB.js → index-C2A174Df.js} +1 -1
  33. package/dist/{index-C8Y8O9Wm.js → index-D9Z9PEbP.js} +3 -3
  34. package/dist/{index-DuCKzk4_.js → index-DBUsSCLU.js} +1 -1
  35. package/dist/{infoDiagram-PH2N3AL5-C2vR4AqD.js → infoDiagram-PH2N3AL5-B7hx-ga5.js} +2 -2
  36. package/dist/{journeyDiagram-U35MCT3I-BCP6AuNk.js → journeyDiagram-U35MCT3I-B3231gru.js} +2 -2
  37. package/dist/{kanban-definition-NDS4AKOZ-DAlnXIDH.js → kanban-definition-NDS4AKOZ-DfekCT-G.js} +1 -1
  38. package/dist/{layout-__MvaxwN.js → layout-B3qz791M.js} +4 -4
  39. package/dist/{linear-CqYfi--F.js → linear-DbxArfQn.js} +1 -1
  40. package/dist/{main-CmefIrQH.js → main-DnxWJbY1.js} +134508 -134491
  41. package/dist/main.js +1 -1
  42. package/dist/{mermaid-71BNIumh.js → mermaid-CP5IInV7.js} +28 -28
  43. package/dist/{min-DJT_zxAi.js → min-Bt8a_fGO.js} +2 -2
  44. package/dist/{mindmap-definition-ALO5MXBD-FyGuDkbw.js → mindmap-definition-ALO5MXBD-Df328hpL.js} +2 -2
  45. package/dist/{pieDiagram-IB7DONF6-DsiWj2RX.js → pieDiagram-IB7DONF6-BqGl8-Bv.js} +3 -3
  46. package/dist/{quadrantDiagram-7GDLP6J5-BXo_7sCe.js → quadrantDiagram-7GDLP6J5-DOucZfrD.js} +2 -2
  47. package/dist/{radar-MK3ICKWK-BrGwen5d.js → radar-MK3ICKWK-v9vIr8lO.js} +5 -5
  48. package/dist/{react-plotly-VgQO4G4V.js → react-plotly-Donhzc-i.js} +1 -1
  49. package/dist/{requirementDiagram-KVF5MWMF-p_rNPIty.js → requirementDiagram-KVF5MWMF-myyCbdtX.js} +2 -2
  50. package/dist/{sankeyDiagram-QLVOVGJD-Ban7ZXIO.js → sankeyDiagram-QLVOVGJD-CdwA3dSl.js} +1 -1
  51. package/dist/{sequenceDiagram-X6HHIX6F-2EEZwi17.js → sequenceDiagram-X6HHIX6F-DxFU-0Qi.js} +3 -3
  52. package/dist/{slides-component-NvxaFBWU.js → slides-component-BL7Sb781.js} +3223 -3223
  53. package/dist/{stateDiagram-DGXRK772-wKE3aE7W.js → stateDiagram-DGXRK772-BRz8WJcG.js} +4 -4
  54. package/dist/{stateDiagram-v2-YXO3MK2T-BnvOI1Jc.js → stateDiagram-v2-YXO3MK2T-D0NXUYSG.js} +2 -2
  55. package/dist/style.css +1 -1
  56. package/dist/{time-BkUeQL7x.js → time-CyQwu33q.js} +2 -2
  57. package/dist/{timeline-definition-BDJGKUSR-BOcBSoBM.js → timeline-definition-BDJGKUSR-DFMmpDQK.js} +1 -1
  58. package/dist/{vega-component-D7bZXlnF.js → vega-component-DdaKCDvq.js} +38 -38
  59. package/dist/{xychartDiagram-VJFVF3MP-D5cet8Td.js → xychartDiagram-VJFVF3MP-DzmXOXbf.js} +2 -2
  60. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { bx as sr, S as cr, by as Ki, j as S, bz as Xi, bA as Ji, bB as Zi, bC as Qi, L as ea, bD as ta, bE as na, bF as ra, c as Ce, bG as on, bH as Ot, bI as ur, bJ as bt, bK as Ke, bL as lr, bM as xt, bN as Ae, bO as ia, bP as dr, bQ as aa, bR as oa, F as Ln, K as sa, M as fr, bS as ca, bT as ua, bU as la, W as da, J as fa, U as ga, E as ha, a4 as ma, bV as pa, $ as ya, bW as Ea, R as Sa } from "./main-CmefIrQH.js";
2
- import { i as Na, c as _a, N as Ca, a as Bn } from "./VegaLite-CQpracvX.js";
1
+ import { bx as sr, S as cr, by as Ki, j as S, bz as Xi, bA as Ji, bB as Zi, bC as Qi, c as Ce, F as Ln, bD as Ae, K as ea, M as ur, bE as Ot, bF as lr, bG as bt, bH as Ke, bI as xt, L as ta, bJ as na, bK as ra, bL as ia, bM as on, bN as dr, bO as aa, bP as fr, bQ as oa, bR as sa, bS as ca, bT as ua, bU as la, W as da, J as fa, V as ga, E as ha, a4 as ma, bV as pa, $ as ya, bW as Ea, b as Sa } from "./main-DnxWJbY1.js";
2
+ import { i as Na, c as _a, N as Ca, a as Bn } from "./VegaLite-BLIY8Adv.js";
3
3
  /**
4
4
  * @license lucide-react v0.503.0 - ISC
5
5
  *
@@ -5496,76 +5496,117 @@ const Re = {
5496
5496
  [B.NUMBER]: /* @__PURE__ */ S.jsx(Ji, { className: "h-5 w-5 inline-flex opacity-60" }),
5497
5497
  [B.STRING]: /* @__PURE__ */ S.jsx(Xi, { className: "h-5 w-5 inline-flex opacity-60" }),
5498
5498
  [B.INTEGER]: /* @__PURE__ */ S.jsx(ba, { className: "h-5 w-5 inline-flex opacity-60" })
5499
- };
5500
- function Pn(e) {
5501
- const {
5502
- type: t,
5503
- limit: n,
5504
- additionalFieldQuery: a
5505
- } = e;
5506
- return {
5507
- type: t,
5508
- limit: n,
5509
- createQuery(r) {
5510
- return {
5511
- spec: {
5512
- ...r.spec,
5513
- encodings: [...r.spec.encodings, a]
5514
- },
5515
- groupBy: "field",
5516
- orderBy: ["fieldOrder", "aggregationQuality", "effectiveness"],
5517
- chooseBy: ["aggregationQuality", "effectiveness"],
5518
- config: {
5519
- autoAddCount: true
5499
+ }, ar = 12, Sl = (e) => {
5500
+ const t = Ce.c(26), {
5501
+ schema: n
5502
+ } = e, [a, r] = Ln.useState(), [o, c] = Ln.useState();
5503
+ let f;
5504
+ if (t[0] !== n || t[1] !== a || t[2] !== o) {
5505
+ const i = n.fieldNames(), s = a ? n.stats({
5506
+ field: a,
5507
+ channel: "x"
5508
+ }) : void 0;
5509
+ let d;
5510
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S.jsx(Aa, { className: "text-muted-foreground", width: 40, height: 40, strokeWidth: 1.5 }), t[4] = d) : d = t[4];
5511
+ const u = d, l = o ? i : i.slice(0, ar), g = i.length > ar, h = i.length > 0 ? i.length : "No";
5512
+ let p;
5513
+ t[5] !== h ? (p = /* @__PURE__ */ S.jsxs("span", { className: "text-muted-foreground font-semibold", children: [
5514
+ h,
5515
+ " fields"
5516
+ ] }), t[5] = h, t[6] = p) : p = t[6];
5517
+ let y;
5518
+ t[7] !== n || t[8] !== a ? (y = (w) => {
5519
+ const L = n.cardinality({
5520
+ channel: "x",
5521
+ field: w
5522
+ });
5523
+ return /* @__PURE__ */ S.jsxs("span", { className: ea("hover:bg-muted self-start px-2 py-2 rounded flex flex-row gap-1 items-center cursor-pointer lg:justify-center text-sm truncate flex-shrink-0 overflow-hidden", a === w && "bg-muted"), onClick: () => {
5524
+ if (a === w) {
5525
+ r(void 0);
5526
+ return;
5520
5527
  }
5521
- };
5522
- }
5523
- };
5528
+ r(w);
5529
+ }, children: [
5530
+ Re[n.primitiveType(w)],
5531
+ w,
5532
+ L > 1 && /* @__PURE__ */ S.jsxs("span", { className: "text-xs text-muted-foreground", children: [
5533
+ "(",
5534
+ L,
5535
+ ")"
5536
+ ] })
5537
+ ] }, w);
5538
+ }, t[7] = n, t[8] = a, t[9] = y) : y = t[9];
5539
+ const E = l.map(y);
5540
+ let _;
5541
+ t[10] !== g || t[11] !== o ? (_ = g && /* @__PURE__ */ S.jsx(ur, { "data-testid": "marimo-plugin-data-explorer-show-more-columns", variant: "link", size: "sm", className: "self-center col-span-3 -mt-1", onClick: () => c(Cl), children: o ? "Show less" : "Show more" }), t[10] = g, t[11] = o, t[12] = _) : _ = t[12];
5542
+ let T;
5543
+ t[13] !== E || t[14] !== _ ? (T = /* @__PURE__ */ S.jsxs("div", { className: "hidden lg:grid grid-cols-2 xl:grid-cols-3 gap-2 p-2 bg-[var(--slate-1)] border rounded lg:items-center items-start w-fit grid-flow-dense max-h-[300px] overflow-auto", children: [
5544
+ E,
5545
+ _
5546
+ ] }), t[13] = E, t[14] = _, t[15] = T) : T = t[15];
5547
+ const A = a || "", N = i.length === 0;
5548
+ let b;
5549
+ t[16] === Symbol.for("react.memo_cache_sentinel") ? (b = (w) => {
5550
+ r(w);
5551
+ }, t[16] = b) : b = t[16];
5552
+ let C;
5553
+ t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ S.jsx(Ot, { className: "min-w-[210px] h-full", children: /* @__PURE__ */ S.jsx(lr, { placeholder: "Select a column" }) }), t[17] = C) : C = t[17];
5554
+ let M;
5555
+ t[18] !== n ? (M = n.fieldNames().map((w) => /* @__PURE__ */ S.jsx(Ae, { value: w.toString(), children: /* @__PURE__ */ S.jsxs("span", { className: "flex items-center gap-2 flex-1", children: [
5556
+ Re[n.primitiveType(w)],
5557
+ /* @__PURE__ */ S.jsx("span", { className: "flex-1", children: w }),
5558
+ /* @__PURE__ */ S.jsxs("span", { className: "text-muted-foreground text-xs font-semibold", children: [
5559
+ "(",
5560
+ n.vlType(w),
5561
+ ")"
5562
+ ] })
5563
+ ] }) }, w)), t[18] = n, t[19] = M) : M = t[19];
5564
+ let $;
5565
+ t[20] !== M ? ($ = /* @__PURE__ */ S.jsx(bt, { children: /* @__PURE__ */ S.jsx(Ke, { children: M }) }), t[20] = M, t[21] = $) : $ = t[21];
5566
+ let v;
5567
+ t[22] !== N || t[23] !== $ || t[24] !== A ? (v = /* @__PURE__ */ S.jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ S.jsxs(xt, { "data-testid": "marimo-plugin-data-explorer-column-select", value: A, disabled: N, onValueChange: b, children: [
5568
+ C,
5569
+ $
5570
+ ] }) }), t[22] = N, t[23] = $, t[24] = A, t[25] = v) : v = t[25], f = /* @__PURE__ */ S.jsxs("div", { className: "flex flex-col justify-center items-center h-full flex-1 gap-2", children: [
5571
+ u,
5572
+ p,
5573
+ T,
5574
+ v,
5575
+ a && /* @__PURE__ */ S.jsx("div", { className: "grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 p-2 text-sm", children: Nl.map((w) => /* @__PURE__ */ S.jsxs("div", { className: "flex flex-row gap-2 min-w-[100px]", children: [
5576
+ /* @__PURE__ */ S.jsx("span", { className: "font-semibold", children: w }),
5577
+ /* @__PURE__ */ S.jsx("span", { children: _l(s == null ? void 0 : s[w]) })
5578
+ ] }, w)) })
5579
+ ] }), t[0] = n, t[1] = a, t[2] = o, t[3] = f;
5580
+ } else
5581
+ f = t[3];
5582
+ return f;
5583
+ }, Nl = ["distinct", "min", "max", "mean", "median", "q1", "q3", "stdev"];
5584
+ function _l(e) {
5585
+ return typeof e == "number" ? new Intl.NumberFormat("en-US", {
5586
+ maximumFractionDigits: 2
5587
+ }).format(e) : typeof e == "string" ? e : typeof e == "object" && e instanceof Date ? new Intl.DateTimeFormat("en-US", {
5588
+ year: "numeric",
5589
+ month: "short",
5590
+ day: "numeric"
5591
+ }).format(e) : String(e);
5524
5592
  }
5525
- const Sl = Pn({
5526
- type: "addCategoricalField",
5527
- limit: 4,
5528
- additionalFieldQuery: {
5529
- channel: U,
5530
- field: U,
5531
- type: "nominal"
5532
- }
5533
- }), Nl = Pn({
5534
- type: "addQuantitativeField",
5535
- limit: 4,
5536
- additionalFieldQuery: {
5537
- channel: U,
5538
- bin: U,
5539
- aggregate: U,
5540
- field: U,
5541
- type: "quantitative"
5542
- }
5543
- }), _l = Pn({
5544
- type: "addTemporalField",
5545
- limit: 2,
5546
- additionalFieldQuery: {
5547
- channel: U,
5548
- hasFn: true,
5549
- // Do not show raw time in the summary
5550
- timeUnit: U,
5551
- field: U,
5552
- type: "temporal"
5553
- }
5554
- });
5555
5593
  function Cl(e) {
5594
+ return !e;
5595
+ }
5596
+ function Tl(e) {
5556
5597
  return e ? e === "bin" ? {
5557
5598
  bin: true
5558
5599
  } : Na(e) ? {
5559
5600
  aggregate: e
5560
- } : Tl(e) ? {
5601
+ } : Al(e) ? {
5561
5602
  timeUnit: e
5562
5603
  } : {} : {};
5563
5604
  }
5564
- function Tl(e) {
5605
+ function Al(e) {
5565
5606
  return e ? $i.includes(e) || ji.includes(e) : false;
5566
5607
  }
5567
- const Al = ["bin", "min", "max", "mean", "median", "sum"], $i = ["year", "month", "date", "day", "hours", "minutes", "seconds", "milliseconds"], ji = ["yearmonth", "yearmonthdate", "monthdate"];
5568
- function Ol(e) {
5608
+ const Ol = ["bin", "min", "max", "mean", "median", "sum"], $i = ["year", "month", "date", "day", "hours", "minutes", "seconds", "milliseconds"], ji = ["yearmonth", "yearmonthdate", "monthdate"];
5609
+ function bl(e) {
5569
5610
  const {
5570
5611
  aggregate: t,
5571
5612
  bin: n,
@@ -5578,24 +5619,55 @@ function Ol(e) {
5578
5619
  if (a)
5579
5620
  return a.toString();
5580
5621
  }
5622
+ const xl = [U, "area", "bar", "circle", "geoshape", "line", "point", "rect", "rule", "square", "text", "tick", "trail"], Il = {
5623
+ type: "histograms",
5624
+ limit: 12,
5625
+ createQuery(e) {
5626
+ return {
5627
+ spec: {
5628
+ data: e.spec.data,
5629
+ mark: U,
5630
+ transform: e.spec.transform,
5631
+ encodings: [{
5632
+ channel: U,
5633
+ bin: U,
5634
+ timeUnit: U,
5635
+ field: U,
5636
+ type: U
5637
+ }, {
5638
+ channel: U,
5639
+ aggregate: "count",
5640
+ field: "*",
5641
+ type: "quantitative"
5642
+ }]
5643
+ },
5644
+ groupBy: "fieldTransform",
5645
+ orderBy: ["fieldOrder", "aggregationQuality", "effectiveness"],
5646
+ chooseBy: ["aggregationQuality", "effectiveness"],
5647
+ config: {
5648
+ autoAddCount: false
5649
+ }
5650
+ };
5651
+ }
5652
+ };
5581
5653
  function Gi(e) {
5582
5654
  const t = {};
5583
5655
  for (const n in e)
5584
5656
  e[n] !== void 0 && (t[n] = e[n]);
5585
5657
  return t;
5586
5658
  }
5587
- function bl(e, t) {
5659
+ function wl(e, t) {
5588
5660
  const {
5589
5661
  fn: n,
5590
5662
  ...a
5591
5663
  } = e;
5592
5664
  return {
5593
5665
  channel: t,
5594
- ...Cl(n),
5666
+ ...Tl(n),
5595
5667
  ...a
5596
5668
  };
5597
5669
  }
5598
- function xl(e) {
5670
+ function vl(e) {
5599
5671
  const {
5600
5672
  aggregate: t,
5601
5673
  bin: n,
@@ -5612,13 +5684,13 @@ function xl(e) {
5612
5684
  } = e;
5613
5685
  if (O(d))
5614
5686
  throw new Error("Wildcard not support");
5615
- d === "ordinal" && (ea.warn("Ordinal type is not supported. Using nominal type instead."), d = "nominal");
5616
- const u = Ol({
5687
+ d === "ordinal" && (ta.warn("Ordinal type is not supported. Using nominal type instead."), d = "nominal");
5688
+ const u = bl({
5617
5689
  aggregate: t,
5618
5690
  bin: n,
5619
5691
  timeUnit: a
5620
5692
  });
5621
- return ta(r !== void 0, "Field is required for fieldQ"), Gi({
5693
+ return na(r !== void 0, "Field is required for fieldQ"), Gi({
5622
5694
  field: r,
5623
5695
  fn: u,
5624
5696
  type: d,
@@ -5629,10 +5701,75 @@ function xl(e) {
5629
5701
  description: s
5630
5702
  });
5631
5703
  }
5632
- function Il(e) {
5704
+ function Dl(e) {
5705
+ return {
5706
+ mark: e.mark,
5707
+ encodings: Fl(e.encoding),
5708
+ config: e.config
5709
+ };
5710
+ }
5711
+ function Fl(e) {
5712
+ return e ? Object.entries(e).map(([t, n]) => wl(n, t)) : [];
5713
+ }
5714
+ function Pn(e) {
5715
+ const {
5716
+ type: t,
5717
+ limit: n,
5718
+ additionalFieldQuery: a
5719
+ } = e;
5720
+ return {
5721
+ type: t,
5722
+ limit: n,
5723
+ createQuery(r) {
5724
+ return {
5725
+ spec: {
5726
+ ...r.spec,
5727
+ encodings: [...r.spec.encodings, a]
5728
+ },
5729
+ groupBy: "field",
5730
+ orderBy: ["fieldOrder", "aggregationQuality", "effectiveness"],
5731
+ chooseBy: ["aggregationQuality", "effectiveness"],
5732
+ config: {
5733
+ autoAddCount: true
5734
+ }
5735
+ };
5736
+ }
5737
+ };
5738
+ }
5739
+ const Rl = Pn({
5740
+ type: "addCategoricalField",
5741
+ limit: 4,
5742
+ additionalFieldQuery: {
5743
+ channel: U,
5744
+ field: U,
5745
+ type: "nominal"
5746
+ }
5747
+ }), kl = Pn({
5748
+ type: "addQuantitativeField",
5749
+ limit: 4,
5750
+ additionalFieldQuery: {
5751
+ channel: U,
5752
+ bin: U,
5753
+ aggregate: U,
5754
+ field: U,
5755
+ type: "quantitative"
5756
+ }
5757
+ }), Ul = Pn({
5758
+ type: "addTemporalField",
5759
+ limit: 2,
5760
+ additionalFieldQuery: {
5761
+ channel: U,
5762
+ hasFn: true,
5763
+ // Do not show raw time in the summary
5764
+ timeUnit: U,
5765
+ field: U,
5766
+ type: "temporal"
5767
+ }
5768
+ });
5769
+ function Ml(e) {
5633
5770
  return !Wi(e).hasAnyWildcard;
5634
5771
  }
5635
- function wl(e) {
5772
+ function Pl(e) {
5636
5773
  const t = ["x", "y", "color"], n = ["row", "column"], a = new Set(e.encodings.map((c) => c.channel)), r = t.every((c) => a.has(c)), o = n.some((c) => a.has(c));
5637
5774
  return r && o;
5638
5775
  }
@@ -5650,20 +5787,10 @@ function Wi(e) {
5650
5787
  hasWildcardChannel: a
5651
5788
  };
5652
5789
  }
5653
- function vl(e) {
5654
- return {
5655
- mark: e.mark,
5656
- encodings: Dl(e.encoding),
5657
- config: e.config
5658
- };
5659
- }
5660
- function Dl(e) {
5661
- return e ? Object.entries(e).map(([t, n]) => bl(n, t)) : [];
5662
- }
5663
5790
  const Yi = {
5664
5791
  name: "source"
5665
5792
  };
5666
- function Fl(e) {
5793
+ function Ll(e) {
5667
5794
  let t = false, n = false, a = false;
5668
5795
  return e.encodings.forEach((r) => {
5669
5796
  r.channel === "x" || r.channel === "y" ? t = true : r.channel === "row" || r.channel === "column" ? a = true : typeof r.channel == "string" && _a(Ca, r.channel) && (n = true);
@@ -5673,13 +5800,13 @@ function Fl(e) {
5673
5800
  hasOpenFacet: a
5674
5801
  };
5675
5802
  }
5676
- function Rl(e, t) {
5803
+ function Bl(e, t) {
5677
5804
  const n = {}, {
5678
5805
  hasOpenPosition: a,
5679
5806
  hasStyleChannel: r,
5680
5807
  hasOpenFacet: o
5681
- } = Fl(e.spec);
5682
- return (a || r) && (n.addQuantitativeField = lt(Nl, e, t)), (a || r || o) && (n.addCategoricalField = lt(Sl, e, t)), a && (n.addTemporalField = lt(_l, e, t)), n;
5808
+ } = Ll(e.spec);
5809
+ return (a || r) && (n.addQuantitativeField = lt(kl, e, t)), (a || r || o) && (n.addCategoricalField = lt(Rl, e, t)), a && (n.addTemporalField = lt(Ul, e, t)), n;
5683
5810
  }
5684
5811
  function an(e, t) {
5685
5812
  if (Hi(e.spec))
@@ -5704,26 +5831,26 @@ function lt(e, t, n) {
5704
5831
  };
5705
5832
  }
5706
5833
  function zi(e, t) {
5707
- return e.items.map((n) => Ui(n) ? ar(t, dn(n)) : ar(t, n));
5834
+ return e.items.map((n) => Ui(n) ? or(t, dn(n)) : or(t, n));
5708
5835
  }
5709
- function ar(e, t) {
5836
+ function or(e, t) {
5710
5837
  return {
5711
5838
  fieldInfos: t.getEncodings().filter(x).map((a) => ({
5712
- fieldDef: xl(a),
5839
+ fieldDef: vl(a),
5713
5840
  channel: a.channel
5714
5841
  })),
5715
5842
  spec: t.toSpec(e)
5716
5843
  };
5717
5844
  }
5718
- function kl(e) {
5845
+ function $l(e) {
5719
5846
  const {
5720
5847
  spec: t,
5721
5848
  autoAddCount: n
5722
- } = e, a = vl(t), {
5849
+ } = e, a = Dl(t), {
5723
5850
  hasAnyWildcard: r,
5724
5851
  hasWildcardFn: o,
5725
5852
  hasWildcardField: c
5726
- } = Wi(a), f = Ul({
5853
+ } = Wi(a), f = jl({
5727
5854
  hasWildcardFn: o,
5728
5855
  hasWildcardField: c
5729
5856
  });
@@ -5737,45 +5864,14 @@ function kl(e) {
5737
5864
  } : void 0
5738
5865
  };
5739
5866
  }
5740
- function Ul(e) {
5867
+ function jl(e) {
5741
5868
  const {
5742
5869
  hasWildcardFn: t,
5743
5870
  hasWildcardField: n
5744
5871
  } = e;
5745
5872
  return t ? "fieldTransform" : n ? "field" : "encoding";
5746
5873
  }
5747
- const Ml = {
5748
- type: "histograms",
5749
- limit: 12,
5750
- createQuery(e) {
5751
- return {
5752
- spec: {
5753
- data: e.spec.data,
5754
- mark: U,
5755
- transform: e.spec.transform,
5756
- encodings: [{
5757
- channel: U,
5758
- bin: U,
5759
- timeUnit: U,
5760
- field: U,
5761
- type: U
5762
- }, {
5763
- channel: U,
5764
- aggregate: "count",
5765
- field: "*",
5766
- type: "quantitative"
5767
- }]
5768
- },
5769
- groupBy: "fieldTransform",
5770
- orderBy: ["fieldOrder", "aggregationQuality", "effectiveness"],
5771
- chooseBy: ["aggregationQuality", "effectiveness"],
5772
- config: {
5773
- autoAddCount: false
5774
- }
5775
- };
5776
- }
5777
- };
5778
- function Pl() {
5874
+ function Gl() {
5779
5875
  return {
5780
5876
  mark: U,
5781
5877
  encoding: {},
@@ -5785,8 +5881,8 @@ function Pl() {
5785
5881
  }
5786
5882
  const {
5787
5883
  valueAtom: ke,
5788
- useActions: Ll
5789
- } = na(Pl, {
5884
+ useActions: Hl
5885
+ } = ra(Gl, {
5790
5886
  setSchema: (e, t) => ({
5791
5887
  ...e,
5792
5888
  schema: t
@@ -5817,26 +5913,26 @@ const {
5817
5913
  }
5818
5914
  });
5819
5915
  function qi() {
5820
- return Ll();
5916
+ return Hl();
5821
5917
  }
5822
- const Bl = ra((e) => {
5918
+ const Wl = ia((e) => {
5823
5919
  const t = e(ke);
5824
5920
  if (!t.schema)
5825
5921
  return {};
5826
- const n = kl({
5922
+ const n = $l({
5827
5923
  spec: t,
5828
5924
  autoAddCount: true
5829
5925
  });
5830
5926
  return Hi(n.spec) ? {
5831
5927
  main: an(n, t.schema),
5832
- histograms: lt(Ml, n, t.schema)
5833
- } : Il(n.spec) && !wl(n.spec) ? {
5928
+ histograms: lt(Il, n, t.schema)
5929
+ } : Ml(n.spec) && !Pl(n.spec) ? {
5834
5930
  main: an(n, t.schema),
5835
- ...Rl(n, t.schema)
5931
+ ...Bl(n, t.schema)
5836
5932
  } : {
5837
5933
  main: an(n, t.schema)
5838
5934
  };
5839
- }), $l = [U, "area", "bar", "circle", "geoshape", "line", "point", "rect", "rule", "square", "text", "tick", "trail"], jl = ["x", "y", "row", "column"], Gl = ["color", "size", "shape"], Hl = (e) => {
5935
+ }), Yl = ["x", "y", "row", "column"], zl = ["color", "size", "shape"], ql = (e) => {
5840
5936
  const t = Ce.c(26), {
5841
5937
  schema: n,
5842
5938
  mark: a
@@ -5844,7 +5940,7 @@ const Bl = ra((e) => {
5844
5940
  let f;
5845
5941
  t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r.encoding ? (f = (N) => {
5846
5942
  const C = (N === "row" || N === "column") && !c;
5847
- return /* @__PURE__ */ S.jsx(Wl, { schema: n, label: N, disabled: C, fieldDefinition: r.encoding[N], onChange: (M) => o.setEncoding({
5943
+ return /* @__PURE__ */ S.jsx(Vl, { schema: n, label: N, disabled: C, fieldDefinition: r.encoding[N], onChange: (M) => o.setEncoding({
5848
5944
  [N]: M
5849
5945
  }) }, N);
5850
5946
  }, t[0] = o, t[1] = c, t[2] = n, t[3] = r.encoding, t[4] = f) : f = t[4];
@@ -5854,11 +5950,11 @@ const Bl = ra((e) => {
5854
5950
  let d;
5855
5951
  t[7] !== o ? (d = (N) => o.setMark(N), t[7] = o, t[8] = d) : d = t[8];
5856
5952
  let u;
5857
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ S.jsx(Ot, { children: /* @__PURE__ */ S.jsx(ur, { placeholder: "Mark" }) }), t[9] = u) : u = t[9];
5953
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ S.jsx(Ot, { children: /* @__PURE__ */ S.jsx(lr, { placeholder: "Mark" }) }), t[9] = u) : u = t[9];
5858
5954
  let l;
5859
5955
  t[10] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ S.jsx(bt, { children: /* @__PURE__ */ S.jsxs(Ke, { children: [
5860
- /* @__PURE__ */ S.jsx(lr, { children: "Mark" }),
5861
- $l.map(zl)
5956
+ /* @__PURE__ */ S.jsx(dr, { children: "Mark" }),
5957
+ xl.map(Xl)
5862
5958
  ] }) }), t[10] = l) : l = t[10];
5863
5959
  let g;
5864
5960
  t[11] !== s || t[12] !== d ? (g = /* @__PURE__ */ S.jsxs(xt, { "data-testid": "marimo-plugin-data-explorer-mark-select", value: s, onValueChange: d, children: [
@@ -5869,7 +5965,7 @@ const Bl = ra((e) => {
5869
5965
  let p;
5870
5966
  t[14] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ S.jsx("span", { className: "col-span-2 flex items-center justify-between w-full", children: /* @__PURE__ */ S.jsx("div", { className: "text-sm font-semibold", children: "Encodings" }) }), t[14] = p) : p = t[14];
5871
5967
  let y;
5872
- t[15] !== i ? (y = jl.map(i), t[15] = i, t[16] = y) : y = t[16];
5968
+ t[15] !== i ? (y = Yl.map(i), t[15] = i, t[16] = y) : y = t[16];
5873
5969
  let E;
5874
5970
  t[17] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ S.jsx("div", { children: "Mark" }), t[17] = E) : E = t[17];
5875
5971
  let _;
@@ -5878,7 +5974,7 @@ const Bl = ra((e) => {
5878
5974
  h
5879
5975
  ] }), t[18] = h, t[19] = _) : _ = t[19];
5880
5976
  let T;
5881
- t[20] !== i ? (T = Gl.map(i), t[20] = i, t[21] = T) : T = t[21];
5977
+ t[20] !== i ? (T = zl.map(i), t[20] = i, t[21] = T) : T = t[21];
5882
5978
  let A;
5883
5979
  return t[22] !== _ || t[23] !== T || t[24] !== y ? (A = /* @__PURE__ */ S.jsxs("div", { className: "grid gap-x-2 gap-y-4 justify-items-start py-3 pl-4 pr-2 bg-[var(--slate-1)] border rounded items-center grid-template-columns-[repeat(2,_minmax(0,_min-content))] self-start", children: [
5884
5980
  p,
@@ -5886,7 +5982,7 @@ const Bl = ra((e) => {
5886
5982
  _,
5887
5983
  T
5888
5984
  ] }), t[22] = _, t[23] = T, t[24] = y, t[25] = A) : A = t[25], A;
5889
- }, Wl = (e) => {
5985
+ }, Vl = (e) => {
5890
5986
  const t = Ce.c(43), {
5891
5987
  label: n,
5892
5988
  schema: a,
@@ -5919,7 +6015,7 @@ const Bl = ra((e) => {
5919
6015
  t[5] !== (r == null ? void 0 : r.field) ? (u = (r == null ? void 0 : r.field.toString()) ?? "", t[5] = r == null ? void 0 : r.field, t[6] = u) : u = t[6];
5920
6016
  const l = u;
5921
6017
  let g;
5922
- t[7] !== n ? (g = /* @__PURE__ */ S.jsx(ia, { className: "text-[var(--slate-11)] font-semibold", children: n }), t[7] = n, t[8] = g) : g = t[8];
6018
+ t[7] !== n ? (g = /* @__PURE__ */ S.jsx(aa, { className: "text-[var(--slate-11)] font-semibold", children: n }), t[7] = n, t[8] = g) : g = t[8];
5923
6019
  let h;
5924
6020
  t[9] !== c || t[10] !== a ? (h = (L) => {
5925
6021
  c(L === "*" ? {
@@ -5949,7 +6045,7 @@ const Bl = ra((e) => {
5949
6045
  let T;
5950
6046
  t[19] !== a ? (T = a.fieldNames().length === 0 && /* @__PURE__ */ S.jsx(Ae, { disabled: true, value: "--", children: "No columns" }), t[19] = a, t[20] = T) : T = t[20];
5951
6047
  let A;
5952
- t[21] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ S.jsx(dr, {}), t[21] = A) : A = t[21];
6048
+ t[21] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ S.jsx(fr, {}), t[21] = A) : A = t[21];
5953
6049
  let N;
5954
6050
  t[22] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ S.jsx(Ae, { value: "*", children: /* @__PURE__ */ S.jsxs("span", { className: "flex items-center gap-1 flex-1", children: [
5955
6051
  Re[B.NUMBER],
@@ -5968,7 +6064,7 @@ const Bl = ra((e) => {
5968
6064
  b
5969
6065
  ] }), t[26] = o, t[27] = l, t[28] = b, t[29] = h, t[30] = E, t[31] = C) : C = t[31];
5970
6066
  let M;
5971
- t[32] !== r || t[33] !== c ? (M = r && /* @__PURE__ */ S.jsx(Yl, { field: r, onChange: c }), t[32] = r, t[33] = c, t[34] = M) : M = t[34];
6067
+ t[32] !== r || t[33] !== c ? (M = r && /* @__PURE__ */ S.jsx(Kl, { field: r, onChange: c }), t[32] = r, t[33] = c, t[34] = M) : M = t[34];
5972
6068
  let $;
5973
6069
  t[35] !== M ? ($ = /* @__PURE__ */ S.jsx("div", { className: "w-[26px]", children: M }), t[35] = M, t[36] = $) : $ = t[36];
5974
6070
  let v;
@@ -5981,7 +6077,7 @@ const Bl = ra((e) => {
5981
6077
  g,
5982
6078
  v
5983
6079
  ] }), t[40] = v, t[41] = g, t[42] = w) : w = t[42], w;
5984
- }, gn = "__", Yl = (e) => {
6080
+ }, gn = "__", Kl = (e) => {
5985
6081
  const t = Ce.c(15), {
5986
6082
  field: n,
5987
6083
  onChange: a
@@ -5993,7 +6089,7 @@ const Bl = ra((e) => {
5993
6089
  let o = r;
5994
6090
  if (n.type === ce.QUANTITATIVE) {
5995
6091
  let c;
5996
- t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = [["", Al]], t[1] = c) : c = t[1], o = c;
6092
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = [["", Ol]], t[1] = c) : c = t[1], o = c;
5997
6093
  }
5998
6094
  if (n.type === ce.TEMPORAL) {
5999
6095
  let c;
@@ -6008,14 +6104,14 @@ const Bl = ra((e) => {
6008
6104
  });
6009
6105
  }, t[3] = n, t[4] = a, t[5] = c) : c = t[5];
6010
6106
  let f;
6011
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ S.jsx(Ot, { className: "h-full px-1", hideChevron: true, variant: "ghost", children: /* @__PURE__ */ S.jsx(oa, { size: 14, strokeWidth: 1.5 }) }), t[6] = f) : f = t[6];
6107
+ t[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ S.jsx(Ot, { className: "h-full px-1", hideChevron: true, variant: "ghost", children: /* @__PURE__ */ S.jsx(sa, { size: 14, strokeWidth: 1.5 }) }), t[6] = f) : f = t[6];
6012
6108
  let i, s;
6013
- t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ S.jsx(Ke, { children: /* @__PURE__ */ S.jsx(Ae, { value: gn, children: "None" }) }), s = /* @__PURE__ */ S.jsx(dr, {}), t[7] = i, t[8] = s) : (i = t[7], s = t[8]);
6109
+ t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ S.jsx(Ke, { children: /* @__PURE__ */ S.jsx(Ae, { value: gn, children: "None" }) }), s = /* @__PURE__ */ S.jsx(fr, {}), t[7] = i, t[8] = s) : (i = t[7], s = t[8]);
6014
6110
  let d;
6015
6111
  t[9] !== o ? (d = /* @__PURE__ */ S.jsxs(bt, { children: [
6016
6112
  i,
6017
6113
  s,
6018
- o.map(Vl)
6114
+ o.map(Zl)
6019
6115
  ] }), t[9] = o, t[10] = d) : d = t[10];
6020
6116
  let u;
6021
6117
  return t[11] !== n.fn || t[12] !== c || t[13] !== d ? (u = /* @__PURE__ */ S.jsxs(xt, { "data-testid": "marimo-plugin-data-explorer-field-options", value: n.fn, onValueChange: c, children: [
@@ -6025,116 +6121,19 @@ const Bl = ra((e) => {
6025
6121
  }
6026
6122
  return null;
6027
6123
  };
6028
- function zl(e) {
6124
+ function Xl(e) {
6029
6125
  return /* @__PURE__ */ S.jsx(Ae, { value: e, children: e === U ? "auto" : e }, e);
6030
6126
  }
6031
- function ql(e) {
6032
- return /* @__PURE__ */ S.jsx(Ae, { value: e ?? gn, children: aa(e) }, e);
6127
+ function Jl(e) {
6128
+ return /* @__PURE__ */ S.jsx(Ae, { value: e ?? gn, children: oa(e) }, e);
6033
6129
  }
6034
- function Vl(e) {
6130
+ function Zl(e) {
6035
6131
  const [t, n] = e;
6036
6132
  return /* @__PURE__ */ S.jsxs(Ke, { children: [
6037
- t && /* @__PURE__ */ S.jsx(lr, { children: t }),
6038
- n.map(ql)
6133
+ t && /* @__PURE__ */ S.jsx(dr, { children: t }),
6134
+ n.map(Jl)
6039
6135
  ] }, t);
6040
6136
  }
6041
- const or = 12, Kl = (e) => {
6042
- const t = Ce.c(26), {
6043
- schema: n
6044
- } = e, [a, r] = Ln.useState(), [o, c] = Ln.useState();
6045
- let f;
6046
- if (t[0] !== n || t[1] !== a || t[2] !== o) {
6047
- const i = n.fieldNames(), s = a ? n.stats({
6048
- field: a,
6049
- channel: "x"
6050
- }) : void 0;
6051
- let d;
6052
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S.jsx(Aa, { className: "text-muted-foreground", width: 40, height: 40, strokeWidth: 1.5 }), t[4] = d) : d = t[4];
6053
- const u = d, l = o ? i : i.slice(0, or), g = i.length > or, h = i.length > 0 ? i.length : "No";
6054
- let p;
6055
- t[5] !== h ? (p = /* @__PURE__ */ S.jsxs("span", { className: "text-muted-foreground font-semibold", children: [
6056
- h,
6057
- " fields"
6058
- ] }), t[5] = h, t[6] = p) : p = t[6];
6059
- let y;
6060
- t[7] !== n || t[8] !== a ? (y = (w) => {
6061
- const L = n.cardinality({
6062
- channel: "x",
6063
- field: w
6064
- });
6065
- return /* @__PURE__ */ S.jsxs("span", { className: sa("hover:bg-muted self-start px-2 py-2 rounded flex flex-row gap-1 items-center cursor-pointer lg:justify-center text-sm truncate flex-shrink-0 overflow-hidden", a === w && "bg-muted"), onClick: () => {
6066
- if (a === w) {
6067
- r(void 0);
6068
- return;
6069
- }
6070
- r(w);
6071
- }, children: [
6072
- Re[n.primitiveType(w)],
6073
- w,
6074
- L > 1 && /* @__PURE__ */ S.jsxs("span", { className: "text-xs text-muted-foreground", children: [
6075
- "(",
6076
- L,
6077
- ")"
6078
- ] })
6079
- ] }, w);
6080
- }, t[7] = n, t[8] = a, t[9] = y) : y = t[9];
6081
- const E = l.map(y);
6082
- let _;
6083
- t[10] !== g || t[11] !== o ? (_ = g && /* @__PURE__ */ S.jsx(fr, { "data-testid": "marimo-plugin-data-explorer-show-more-columns", variant: "link", size: "sm", className: "self-center col-span-3 -mt-1", onClick: () => c(Zl), children: o ? "Show less" : "Show more" }), t[10] = g, t[11] = o, t[12] = _) : _ = t[12];
6084
- let T;
6085
- t[13] !== E || t[14] !== _ ? (T = /* @__PURE__ */ S.jsxs("div", { className: "hidden lg:grid grid-cols-2 xl:grid-cols-3 gap-2 p-2 bg-[var(--slate-1)] border rounded lg:items-center items-start w-fit grid-flow-dense max-h-[300px] overflow-auto", children: [
6086
- E,
6087
- _
6088
- ] }), t[13] = E, t[14] = _, t[15] = T) : T = t[15];
6089
- const A = a || "", N = i.length === 0;
6090
- let b;
6091
- t[16] === Symbol.for("react.memo_cache_sentinel") ? (b = (w) => {
6092
- r(w);
6093
- }, t[16] = b) : b = t[16];
6094
- let C;
6095
- t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ S.jsx(Ot, { className: "min-w-[210px] h-full", children: /* @__PURE__ */ S.jsx(ur, { placeholder: "Select a column" }) }), t[17] = C) : C = t[17];
6096
- let M;
6097
- t[18] !== n ? (M = n.fieldNames().map((w) => /* @__PURE__ */ S.jsx(Ae, { value: w.toString(), children: /* @__PURE__ */ S.jsxs("span", { className: "flex items-center gap-2 flex-1", children: [
6098
- Re[n.primitiveType(w)],
6099
- /* @__PURE__ */ S.jsx("span", { className: "flex-1", children: w }),
6100
- /* @__PURE__ */ S.jsxs("span", { className: "text-muted-foreground text-xs font-semibold", children: [
6101
- "(",
6102
- n.vlType(w),
6103
- ")"
6104
- ] })
6105
- ] }) }, w)), t[18] = n, t[19] = M) : M = t[19];
6106
- let $;
6107
- t[20] !== M ? ($ = /* @__PURE__ */ S.jsx(bt, { children: /* @__PURE__ */ S.jsx(Ke, { children: M }) }), t[20] = M, t[21] = $) : $ = t[21];
6108
- let v;
6109
- t[22] !== N || t[23] !== $ || t[24] !== A ? (v = /* @__PURE__ */ S.jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ S.jsxs(xt, { "data-testid": "marimo-plugin-data-explorer-column-select", value: A, disabled: N, onValueChange: b, children: [
6110
- C,
6111
- $
6112
- ] }) }), t[22] = N, t[23] = $, t[24] = A, t[25] = v) : v = t[25], f = /* @__PURE__ */ S.jsxs("div", { className: "flex flex-col justify-center items-center h-full flex-1 gap-2", children: [
6113
- u,
6114
- p,
6115
- T,
6116
- v,
6117
- a && /* @__PURE__ */ S.jsx("div", { className: "grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-2 p-2 text-sm", children: Xl.map((w) => /* @__PURE__ */ S.jsxs("div", { className: "flex flex-row gap-2 min-w-[100px]", children: [
6118
- /* @__PURE__ */ S.jsx("span", { className: "font-semibold", children: w }),
6119
- /* @__PURE__ */ S.jsx("span", { children: Jl(s == null ? void 0 : s[w]) })
6120
- ] }, w)) })
6121
- ] }), t[0] = n, t[1] = a, t[2] = o, t[3] = f;
6122
- } else
6123
- f = t[3];
6124
- return f;
6125
- }, Xl = ["distinct", "min", "max", "mean", "median", "q1", "q3", "stdev"];
6126
- function Jl(e) {
6127
- return typeof e == "number" ? new Intl.NumberFormat("en-US", {
6128
- maximumFractionDigits: 2
6129
- }).format(e) : typeof e == "string" ? e : typeof e == "object" && e instanceof Date ? new Intl.DateTimeFormat("en-US", {
6130
- year: "numeric",
6131
- month: "short",
6132
- day: "numeric"
6133
- }).format(e) : String(e);
6134
- }
6135
- function Zl(e) {
6136
- return !e;
6137
- }
6138
6137
  const Md = (e) => {
6139
6138
  const t = Ce.c(5);
6140
6139
  let n, a;
@@ -6194,7 +6193,7 @@ const Md = (e) => {
6194
6193
  error: i
6195
6194
  } = da(r, o), {
6196
6195
  mark: s
6197
- } = on(ke), d = on(Bl), {
6196
+ } = on(ke), d = on(Wl), {
6198
6197
  theme: u
6199
6198
  } = fa();
6200
6199
  if (i) {
@@ -6220,10 +6219,10 @@ const Md = (e) => {
6220
6219
  let E;
6221
6220
  t[11] !== l || t[12] !== h || t[13] !== g || t[14] !== u ? (E = () => h ? /* @__PURE__ */ S.jsx("div", { className: "flex overflow-y-auto justify-center items-center flex-1 w-[90%]", children: /* @__PURE__ */ S.jsx(Bn, { data: {
6222
6221
  source: l
6223
- }, padding: ed, actions: Ql, spec: id(h.spec), theme: u === "dark" ? "dark" : void 0 }) }) : /* @__PURE__ */ S.jsx(Kl, { schema: g }), t[11] = l, t[12] = h, t[13] = g, t[14] = u, t[15] = E) : E = t[15];
6222
+ }, padding: ed, actions: Ql, spec: id(h.spec), theme: u === "dark" ? "dark" : void 0 }) }) : /* @__PURE__ */ S.jsx(Sl, { schema: g }), t[11] = l, t[12] = h, t[13] = g, t[14] = u, t[15] = E) : E = t[15];
6224
6223
  const _ = E;
6225
6224
  let T;
6226
- t[16] !== s || t[17] !== g ? (T = /* @__PURE__ */ S.jsx(Hl, { mark: s, schema: g }), t[16] = s, t[17] = g, t[18] = T) : T = t[18];
6225
+ t[16] !== s || t[17] !== g ? (T = /* @__PURE__ */ S.jsx(ql, { mark: s, schema: g }), t[16] = s, t[17] = g, t[18] = T) : T = t[18];
6227
6226
  let A;
6228
6227
  t[19] !== _ ? (A = _(), t[19] = _, t[20] = A) : A = t[20];
6229
6228
  let N;
@@ -6238,7 +6237,7 @@ const Md = (e) => {
6238
6237
  t[33] !== a || t[34] !== l || t[35] !== y || t[36] !== u ? (D = (Z, $e) => /* @__PURE__ */ S.jsx(rd, { title: /* @__PURE__ */ S.jsx("div", { className: "flex flex-row gap-1", children: Z.fieldInfos.map((Q) => {
6239
6238
  const pe = Q.fieldDef.field === "*" ? "Count" : Q.fieldDef.fn ? `${Q.fieldDef.fn}(${Q.fieldDef.field})` : Q.fieldDef.field.toString();
6240
6239
  return /* @__PURE__ */ S.jsx(Ea, { variant: y.has(Q.fieldDef.field) ? "secondary" : "defaultOutline", children: pe }, pe);
6241
- }) }), actions: /* @__PURE__ */ S.jsx(ma, { content: "Make main plot", children: /* @__PURE__ */ S.jsx(fr, { "data-testid": "marimo-plugin-data-explorer-make-main-plot", variant: "text", size: "icon", onClick: () => {
6240
+ }) }), actions: /* @__PURE__ */ S.jsx(ma, { content: "Make main plot", children: /* @__PURE__ */ S.jsx(ur, { "data-testid": "marimo-plugin-data-explorer-make-main-plot", variant: "text", size: "icon", onClick: () => {
6242
6241
  const Q = ya.fromEntries(Z.fieldInfos.map(od));
6243
6242
  a.setEncoding(Q);
6244
6243
  }, children: /* @__PURE__ */ S.jsx(pa, { className: "w-4 h-4" }) }) }), children: /* @__PURE__ */ S.jsx(Bn, { data: {