@marimo-team/islands 0.24.3-dev4 → 0.24.3-dev5
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/{common-BDlauhCU.js → common-xHoep60C.js} +22 -15
- package/dist/main.js +2 -2
- package/dist/{reveal-component-BthxSdRc.js → reveal-component-DwuC-61O.js} +1 -1
- package/package.json +1 -1
- package/src/components/data-table/column-visibility-dropdown.tsx +9 -3
- package/src/components/datasources/components.tsx +4 -2
|
@@ -29847,18 +29847,20 @@ var SW = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange:
|
|
|
29847
29847
|
children: n
|
|
29848
29848
|
}), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
|
|
29849
29849
|
}, DW = (e) => {
|
|
29850
|
-
let t = (0, W.c)(
|
|
29850
|
+
let t = (0, W.c)(12), { columnName: n, dataType: r, className: i } = e, a, s;
|
|
29851
29851
|
if (t[0] !== r) {
|
|
29852
29852
|
let e = be(r);
|
|
29853
|
-
|
|
29854
|
-
} else
|
|
29855
|
-
let
|
|
29856
|
-
t[3]
|
|
29857
|
-
let c;
|
|
29858
|
-
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
|
|
29853
|
+
a = re[e], s = y(e), t[0] = r, t[1] = a, t[2] = s;
|
|
29854
|
+
} else a = t[1], s = t[2];
|
|
29855
|
+
let c = s, l;
|
|
29856
|
+
t[3] === i ? l = t[4] : (l = o("flex flex-row items-center gap-1.5", i), t[3] = i, t[4] = l);
|
|
29857
|
+
let u = `w-4 h-4 shrink-0 p-0.5 rounded-sm stroke-card-foreground ${c}`, d;
|
|
29858
|
+
t[5] !== a || t[6] !== u ? (d = /* @__PURE__ */ (0, U.jsx)(a, { className: u }), t[5] = a, t[6] = u, t[7] = d) : d = t[7];
|
|
29859
|
+
let f;
|
|
29860
|
+
return t[8] !== n || t[9] !== l || t[10] !== d ? (f = /* @__PURE__ */ (0, U.jsxs)("div", {
|
|
29861
|
+
className: l,
|
|
29862
|
+
children: [d, n]
|
|
29863
|
+
}), t[8] = n, t[9] = l, t[10] = d, t[11] = f) : f = t[11], f;
|
|
29862
29864
|
}, OW = "Show only this column";
|
|
29863
29865
|
function kW({ table: e, columnIds: t, disabled: n, className: r, iconClassName: i = "h-3 w-3" }) {
|
|
29864
29866
|
return /* @__PURE__ */ (0, U.jsx)(Li, {
|
|
@@ -29983,17 +29985,22 @@ var jW = ({ table: e }) => {
|
|
|
29983
29985
|
/* @__PURE__ */ (0, U.jsx)(V_, {})
|
|
29984
29986
|
] }),
|
|
29985
29987
|
l.visibleOptions.map((t, n) => {
|
|
29986
|
-
let r = l.isChecked(t.value), { dataType: i } = t.data, a = n === l.pinnedCount && l.pinnedCount > 0 && l.pinnedCount < l.visibleOptions.length
|
|
29988
|
+
let r = l.isChecked(t.value), { dataType: i } = t.data, a = n === l.pinnedCount && l.pinnedCount > 0 && l.pinnedCount < l.visibleOptions.length, s = /* @__PURE__ */ (0, U.jsx)("span", {
|
|
29989
|
+
className: "truncate",
|
|
29990
|
+
title: t.label,
|
|
29991
|
+
children: t.label
|
|
29992
|
+
});
|
|
29987
29993
|
return /* @__PURE__ */ (0, U.jsxs)(H.Fragment, { children: [a && /* @__PURE__ */ (0, U.jsx)(V_, {}), /* @__PURE__ */ (0, U.jsxs)(H_, {
|
|
29988
29994
|
value: t.value,
|
|
29989
29995
|
disabled: t.disabled,
|
|
29990
29996
|
onSelect: () => l.toggle(t.value),
|
|
29991
29997
|
className: "flex items-center gap-1.5 cursor-pointer",
|
|
29992
|
-
children: [i === void 0 ?
|
|
29993
|
-
|
|
29998
|
+
children: [i === void 0 ? s : /* @__PURE__ */ (0, U.jsx)(DW, {
|
|
29999
|
+
className: "min-w-0",
|
|
30000
|
+
columnName: s,
|
|
29994
30001
|
dataType: i
|
|
29995
30002
|
}), !t.disabled && /* @__PURE__ */ (0, U.jsxs)("span", {
|
|
29996
|
-
className: "ml-auto flex items-center gap-0.5",
|
|
30003
|
+
className: "ml-auto flex shrink-0 items-center gap-0.5",
|
|
29997
30004
|
children: [/* @__PURE__ */ (0, U.jsx)(kW, {
|
|
29998
30005
|
table: e,
|
|
29999
30006
|
columnIds: [t.value],
|
|
@@ -32157,7 +32164,7 @@ function XK() {
|
|
|
32157
32164
|
return a.warn("Failed to get version from mount config"), null;
|
|
32158
32165
|
}
|
|
32159
32166
|
}
|
|
32160
|
-
var ZK = XK() || "0.24.3-
|
|
32167
|
+
var ZK = XK() || "0.24.3-dev5", QK = V(ZK), $K = V(!0);
|
|
32161
32168
|
V(null);
|
|
32162
32169
|
//#endregion
|
|
32163
32170
|
//#region src/core/wasm/state.ts
|
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { n as x, r as S, t as C } from "./copy-CD7S58CY.js";
|
|
|
6
6
|
import { $n as w, An as T, B as E, Bn as D, Bt as O, C as k, Ct as A, Dn as j, Dt as M, En as N, F as P, Fn as F, G as I, I as L, It as ee, J as te, Jt as R, K as ne, Kn as z, L as re, Lt as ie, Mt as ae, Nn as oe, Nt as se, On as ce, Ot as le, P as ue, Pn as de, Pt as fe, Q as pe, Qn as me, Qt as he, R as ge, Rn as _e, Sn as ve, St as ye, U as be, Un as xe, Vn as Se, Vt as Ce, W as we, Wn as Te, Wt as Ee, X as De, Xn as Oe, Y as ke, Yn as Ae, Yt as je, Z as Me, Zn as Ne, Zt as Pe, _ as Fe, _n as Ie, a as Le, an as Re, ar as ze, at as Be, b as Ve, bn as He, bt as Ue, cn as We, ct as Ge, dn as Ke, dt as qe, et as Je, fn as Ye, ft as Xe, g as Ze, i as Qe, ir as $e, j as et, jt as tt, k as nt, kn as rt, kt as it, ln as at, n as ot, nr as st, o as ct, on as lt, ot as ut, q as dt, qt as ft, sn as pt, st as mt, tn as ht, tr as gt, un as _t, ut as vt, v as yt, wn as bt, wt as xt, xn as St, xt as Ct, y as wt, z as Tt, zn as Et } from "./html-to-image-BhNoIBSU.js";
|
|
7
7
|
import { o as Dt, s as Ot, u as kt } from "./dist-3_o3T78I.js";
|
|
8
8
|
import { D as At, E as jt, O as Mt, S as Nt, T as Pt, _ as Ft, a as It, c as Lt, d as Rt, f as zt, g as Bt, h as Vt, i as Ht, l as Ut, m as Wt, n as Gt, o as Kt, p as qt, r as Jt, s as Yt, t as Xt, u as Zt, v as Qt, w as $t, x as en, y as tn } from "./spec-CutWdqo3.js";
|
|
9
|
-
import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-
|
|
9
|
+
import { $ as nn, $t as rn, A as an, At as on, B as sn, Bt as cn, C as ln, Cn as un, Ct as dn, D as fn, Dn as pn, Dt as mn, E as hn, En as gn, Et as _n, F as vn, Ft as yn, G as bn, Gt as xn, H as Sn, Ht as Cn, I as wn, It as Tn, J as En, Jt as Dn, K as On, Kt as kn, L as An, Lt as jn, M as Mn, N as Nn, Nt as Pn, O as Fn, Ot as In, P as Ln, Pt as Rn, Q as zn, Qt as Bn, R as Vn, Rt as Hn, S as Un, Sn as Wn, St as Gn, T as Kn, Tn as qn, Tt as Jn, U as Yn, Ut as Xn, V as Zn, Vt as Qn, W as $n, Wt as er, X as tr, Xt as nr, Y as rr, Yt as ir, Z as ar, Zt as or, _ as sr, _n as cr, _t as lr, a as ur, an as dr, at as fr, b as pr, bn as mr, bt as hr, cn as gr, dn as _r, dt as vr, en as yr, et as br, fn as xr, ft as Sr, g as Cr, gn as wr, gt as Tr, hn as Er, ht as Dr, i as Or, in as kr, it as Ar, j as jr, k as Mr, kt as Nr, l as Pr, ln as Fr, m as Ir, mn as Lr, mt as Rr, n as zr, nn as Br, nt as Vr, on as Hr, ot as Ur, pn as Wr, pt as Gr, q as Kr, qt as qr, rn as Jr, rt as Yr, s as Xr, sn as Zr, st as Qr, t as $r, tn as ei, tt as ti, un as ni, v as ri, vt as ii, w as ai, wn as oi, wt as si, x as ci, xn as li, xt as ui, y as di, yn as fi, yt as pi, z as mi, zt as hi } from "./common-xHoep60C.js";
|
|
10
10
|
import { c as gi, i as _i, n as vi, o as yi, t as bi } from "./useLifecycle-B4RGlyf0.js";
|
|
11
11
|
import { t as xi } from "./check-CHig47QV.js";
|
|
12
12
|
import { A as Si, C as Ci, D as wi, E as Ti, F as Ei, I as Di, M as Oi, N as ki, P as Ai, R as ji, S as Mi, a as Ni, b as Pi, c as Fi, i as Ii, j as Li, l as Ri, n as zi, o as Bi, r as Vi, s as Hi, t as Ui, w as Wi, x as Gi } from "./select-3qHpFKF9.js";
|
|
@@ -35311,7 +35311,7 @@ function lJ(e) {
|
|
|
35311
35311
|
}
|
|
35312
35312
|
//#endregion
|
|
35313
35313
|
//#region src/components/editor/renderers/slides-layout/slides-layout.tsx
|
|
35314
|
-
var uJ = q.lazy(() => import("./reveal-component-
|
|
35314
|
+
var uJ = q.lazy(() => import("./reveal-component-DwuC-61O.js")), dJ = (e) => {
|
|
35315
35315
|
let t = (0, Y.c)(33), { layout: n, setLayout: r, cells: i, mode: a } = e, o = Xm(it), s = a === "read" || o, c = Xm(ke) > 1, [l, u] = (0, q.useState)(null), d;
|
|
35316
35316
|
t[0] !== i || t[1] !== n ? (d = sW(i, n), t[0] = i, t[1] = n, t[2] = d) : d = t[2];
|
|
35317
35317
|
let { slideCells: f, skippedIds: p, noOutputIds: m, slideTypes: h, startCellIndex: g } = d, _;
|
|
@@ -4,7 +4,7 @@ import { t as o } from "./react-DMWcHin-.js";
|
|
|
4
4
|
import { t as s } from "./compiler-runtime-CAH9RLw2.js";
|
|
5
5
|
import { kt as c, st as l } from "./html-to-image-BhNoIBSU.js";
|
|
6
6
|
import { u } from "./dist-3_o3T78I.js";
|
|
7
|
-
import { _n as d, c as f, ct as p, g as m, h, l as g, lt as _, n as v, o as y, r as b, t as x, u as S, ut as C, vn as w, xn as T } from "./common-
|
|
7
|
+
import { _n as d, c as f, ct as p, g as m, h, l as g, lt as _, n as v, o as y, r as b, t as x, u as S, ut as C, vn as w, xn as T } from "./common-xHoep60C.js";
|
|
8
8
|
import { R as E } from "./select-3qHpFKF9.js";
|
|
9
9
|
import { Y as D } from "./dropdown-menu-DhCfcscX.js";
|
|
10
10
|
import { t as O } from "./jsx-runtime-CpoKNRgu.js";
|
package/package.json
CHANGED
|
@@ -215,6 +215,11 @@ export const ColumnVisibilityDropdown = <TData,>({
|
|
|
215
215
|
index === list.pinnedCount &&
|
|
216
216
|
list.pinnedCount > 0 &&
|
|
217
217
|
list.pinnedCount < list.visibleOptions.length;
|
|
218
|
+
const label = (
|
|
219
|
+
<span className="truncate" title={option.label}>
|
|
220
|
+
{option.label}
|
|
221
|
+
</span>
|
|
222
|
+
);
|
|
218
223
|
return (
|
|
219
224
|
<React.Fragment key={option.value}>
|
|
220
225
|
{isSectionBoundary && <CommandSeparator />}
|
|
@@ -225,15 +230,16 @@ export const ColumnVisibilityDropdown = <TData,>({
|
|
|
225
230
|
className="flex items-center gap-1.5 cursor-pointer"
|
|
226
231
|
>
|
|
227
232
|
{dataType === undefined ? (
|
|
228
|
-
|
|
233
|
+
label
|
|
229
234
|
) : (
|
|
230
235
|
<ColumnName
|
|
231
|
-
|
|
236
|
+
className="min-w-0"
|
|
237
|
+
columnName={label}
|
|
232
238
|
dataType={dataType}
|
|
233
239
|
/>
|
|
234
240
|
)}
|
|
235
241
|
{!option.disabled && (
|
|
236
|
-
<span className="ml-auto flex items-center gap-0.5">
|
|
242
|
+
<span className="ml-auto flex shrink-0 items-center gap-0.5">
|
|
237
243
|
<ShowOnlyColumnButton
|
|
238
244
|
table={table}
|
|
239
245
|
columnIds={[option.value]}
|
|
@@ -101,18 +101,20 @@ export const ColumnPreviewContainer: React.FC<{
|
|
|
101
101
|
export const ColumnName = ({
|
|
102
102
|
columnName,
|
|
103
103
|
dataType,
|
|
104
|
+
className,
|
|
104
105
|
}: {
|
|
105
106
|
columnName: React.ReactNode;
|
|
106
107
|
dataType: DataType;
|
|
108
|
+
className?: string;
|
|
107
109
|
}) => {
|
|
108
110
|
const resolvedDataType = resolveDataType(dataType);
|
|
109
111
|
const Icon = DATA_TYPE_ICON[resolvedDataType];
|
|
110
112
|
const color = getDataTypeColor(resolvedDataType);
|
|
111
113
|
|
|
112
114
|
return (
|
|
113
|
-
<div className="flex flex-row items-center gap-1.5">
|
|
115
|
+
<div className={cn("flex flex-row items-center gap-1.5", className)}>
|
|
114
116
|
<Icon
|
|
115
|
-
className={`w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${color}`}
|
|
117
|
+
className={`w-4 h-4 shrink-0 p-0.5 rounded-sm stroke-card-foreground ${color}`}
|
|
116
118
|
/>
|
|
117
119
|
{columnName}
|
|
118
120
|
</div>
|