@marimo-team/islands 0.25.1-dev43 → 0.25.1-dev45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-CwMXfDQR.js → ConnectedDataExplorerComponent-C2d9ysUI.js} +5 -6
- package/dist/{ErrorBoundary-DdIeNEwv.js → ErrorBoundary-pBYdeBnS.js} +1 -1
- package/dist/{chat-ui-DLSF8a04.js → chat-ui-fVyVOhYN.js} +4 -4
- package/dist/{code-visibility-Y9eq-gxh.js → code-visibility-BtQ8kX30.js} +1 -1
- package/dist/{common-Gq6IVrpO.js → common-CT8H5t1V.js} +6722 -6426
- package/dist/{data-grid-overlay-editor-DVXL-zNG.js → data-grid-overlay-editor-BLIYSMps.js} +1 -1
- package/dist/{dropdown-menu-CZgjYSAh.js → dropdown-menu-CZy06LAq.js} +12 -12
- package/dist/{feedback-button-BpOwMFBW.js → feedback-button-Oixw7nP7.js} +2 -2
- package/dist/{glide-data-editor-BuCHH3vV.js → glide-data-editor-u2Z6Gofm.js} +5 -5
- package/dist/{globals-CVcdPJxP.js → globals-JfO03feH.js} +1 -1
- package/dist/{html-to-image-CGVgroef.js → html-to-image-CmkwfNkf.js} +1 -1
- package/dist/{useNumberFormatter-BfDpa21j.js → label-BslhXqL6.js} +108 -81
- package/dist/main.js +60 -54
- package/dist/{number-overlay-editor-DWKHP3YG.js → number-overlay-editor-Da3rqdsN.js} +1 -1
- package/dist/{process-output-CGfg-JmZ.js → process-output-CYN5E-iO.js} +1 -1
- package/dist/{reveal-component-Z9PfGTO0.js → reveal-component-DvSplL6e.js} +3 -3
- package/dist/{spec-CAYwFeV6.js → spec-DQBRQSba.js} +123 -102
- package/dist/style.css +1 -1
- package/dist/{useDateFormatter-BRTPsUK7.js → useDateFormatter-BXQGu86d.js} +28 -49
- package/package.json +1 -1
- package/src/components/data-table/TableTopBar.tsx +2 -2
- package/src/components/data-table/__tests__/export-actions.test.tsx +662 -0
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/data-table/export-actions.tsx +642 -176
- package/src/components/data-table/schemas.ts +25 -3
- package/dist/label-BJ49YTvk.js +0 -30
|
@@ -3,9 +3,24 @@
|
|
|
3
3
|
import z from "zod";
|
|
4
4
|
import { rpc } from "@/plugins/core/rpc";
|
|
5
5
|
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
export type DownloadFormat = "csv" | "json" | "parquet" | "tsv";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Per-request export options. Each field is optional. A missing field keeps
|
|
10
|
+
* the widget's default for that setting.
|
|
11
|
+
*/
|
|
12
|
+
export interface DownloadAsOptions {
|
|
13
|
+
separator?: string;
|
|
14
|
+
encoding?: string;
|
|
15
|
+
ensure_ascii?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface DownloadAsRequest {
|
|
19
|
+
format: DownloadFormat;
|
|
20
|
+
options?: DownloadAsOptions;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type DownloadAsArgs = (req: DownloadAsRequest) => Promise<{
|
|
9
24
|
url: string;
|
|
10
25
|
filename: string;
|
|
11
26
|
error?: string | null;
|
|
@@ -16,6 +31,13 @@ export const DownloadAsSchema = rpc
|
|
|
16
31
|
.input(
|
|
17
32
|
z.object({
|
|
18
33
|
format: z.enum(["csv", "json", "parquet", "tsv"]),
|
|
34
|
+
options: z
|
|
35
|
+
.object({
|
|
36
|
+
separator: z.string().optional(),
|
|
37
|
+
encoding: z.string().optional(),
|
|
38
|
+
ensure_ascii: z.boolean().optional(),
|
|
39
|
+
})
|
|
40
|
+
.optional(),
|
|
19
41
|
}),
|
|
20
42
|
)
|
|
21
43
|
.output(
|
package/dist/label-BJ49YTvk.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
-
import { h as t, r as n } from "./button-DdXAm8iz.js";
|
|
3
|
-
import { t as r } from "./react-ofJbxM4x.js";
|
|
4
|
-
import { t as i } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
-
import { t as a } from "./jsx-runtime-DgDPJV9S.js";
|
|
6
|
-
import { Tt as o } from "./use-restore-focus-D5D9xEjZ.js";
|
|
7
|
-
//#region ../node_modules/.pnpm/@radix-ui+react-label@2.1.7_@types+react-dom@19.2.5_@types+react@19.2.18__@types+react@_81412ca2c9e8ab48c66df9560ce8a98f/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
8
|
-
var s = /* @__PURE__ */ e(r(), 1), c = a(), l = "Label", u = s.forwardRef((e, t) => /* @__PURE__ */ (0, c.jsx)(o.label, {
|
|
9
|
-
...e,
|
|
10
|
-
ref: t,
|
|
11
|
-
onMouseDown: (t) => {
|
|
12
|
-
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
13
|
-
}
|
|
14
|
-
}));
|
|
15
|
-
u.displayName = l;
|
|
16
|
-
var d = u, f = i(), p = n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), m = s.forwardRef((e, n) => {
|
|
17
|
-
let r = (0, f.c)(9), i, a;
|
|
18
|
-
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
19
|
-
let o;
|
|
20
|
-
r[3] === i ? o = r[4] : (o = t(p(), i), r[3] = i, r[4] = o);
|
|
21
|
-
let s;
|
|
22
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, c.jsx)(d, {
|
|
23
|
-
ref: n,
|
|
24
|
-
className: o,
|
|
25
|
-
...a
|
|
26
|
-
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
27
|
-
});
|
|
28
|
-
m.displayName = d.displayName;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { m as t };
|