@marimo-team/islands 0.25.2-dev53 → 0.25.2-dev61
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-BDizDY3_.js → ConnectedDataExplorerComponent-BZmqc_F0.js} +3 -3
- package/dist/{ErrorBoundary-Bwg2kLKS.js → ErrorBoundary-BL7bFtwp.js} +1 -1
- package/dist/{chat-ui-DMu_DFfr.js → chat-ui-Da2o4rps.js} +4 -4
- package/dist/{code-visibility-D_G0XbX7.js → code-visibility-_ihZ-SEb.js} +1 -1
- package/dist/{common-DcLm9QJY.js → common-ukM0sIeR.js} +8901 -8619
- package/dist/{data-grid-overlay-editor-qKNqq_Xm.js → data-grid-overlay-editor-C1y0BPWs.js} +1 -1
- package/dist/dropdown-menu-Cz4TdOJh.js +4678 -0
- package/dist/{feedback-button-Bvjbm5Qi.js → feedback-button-B-3hznXb.js} +2 -2
- package/dist/{glide-data-editor-DE3Yi97D.js → glide-data-editor-CWMyztM6.js} +5 -5
- package/dist/{globals-C9rLC5XL.js → globals-Iua0hQv2.js} +1 -1
- package/dist/{html-to-image-CFSoonFo.js → html-to-image-C-XXpUFD.js} +3 -3
- package/dist/{label-DPWAFACU.js → label-DQO1jFjf.js} +8 -8
- package/dist/main.js +2612 -2566
- package/dist/{number-overlay-editor-BvtSmUfm.js → number-overlay-editor--czk7lAt.js} +1 -1
- package/dist/{process-output-D8io8maY.js → process-output-CdDN3Pdp.js} +1 -1
- package/dist/{reveal-component-Cpev6-I3.js → reveal-component-DYQDbLdD.js} +3 -3
- package/dist/{spec-rSPz3O6Q.js → spec-DVsoMvYT.js} +102 -123
- package/dist/style.css +1 -1
- package/dist/{useDateFormatter-BTtPAD2R.js → useDateFormatter-C-tz65rD.js} +51 -30
- package/package.json +3 -3
- package/src/components/data-table/TableTopBar.tsx +4 -0
- package/src/components/data-table/__tests__/export-actions.test.tsx +1111 -14
- package/src/components/data-table/__tests__/schemas.test.ts +57 -0
- package/src/components/data-table/data-table.tsx +3 -0
- package/src/components/data-table/export-actions.tsx +365 -81
- package/src/components/data-table/schemas.ts +90 -14
- package/src/components/editor/navigation/__tests__/navigation.test.ts +8 -8
- package/src/plugins/impl/DataTablePlugin.tsx +23 -2
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +65 -8
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +15 -3
- package/src/stories/dataframe.stories.tsx +7 -0
- package/dist/dropdown-menu-R7yCbshA.js +0 -4472
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
2
|
import { t } from "./react-ofJbxM4x.js";
|
|
3
3
|
import { h as n } from "./tooltip-CuNWg2ay.js";
|
|
4
|
-
import { i as r } from "./label-
|
|
4
|
+
import { i as r } from "./label-DQO1jFjf.js";
|
|
5
5
|
var i = n("chart-pie", [["path", {
|
|
6
6
|
d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",
|
|
7
7
|
key: "pzmjnu"
|
|
@@ -21,16 +21,37 @@ var i = n("chart-pie", [["path", {
|
|
|
21
21
|
d: "M9 19h6",
|
|
22
22
|
key: "456am0"
|
|
23
23
|
}]
|
|
24
|
-
]), o =
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
]), o = n("table", [
|
|
25
|
+
["path", {
|
|
26
|
+
d: "M12 3v18",
|
|
27
|
+
key: "108xh3"
|
|
28
|
+
}],
|
|
29
|
+
["rect", {
|
|
30
|
+
width: "18",
|
|
31
|
+
height: "18",
|
|
32
|
+
x: "3",
|
|
33
|
+
y: "3",
|
|
34
|
+
rx: "2",
|
|
35
|
+
key: "afitv7"
|
|
36
|
+
}],
|
|
37
|
+
["path", {
|
|
38
|
+
d: "M3 9h18",
|
|
39
|
+
key: "1pudct"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "M3 15h18",
|
|
43
|
+
key: "5xshup"
|
|
44
|
+
}]
|
|
45
|
+
]), s = /* @__PURE__ */ e(t(), 1);
|
|
46
|
+
function c(e, t) {
|
|
47
|
+
let n = (0, s.useRef)(null);
|
|
27
48
|
return e && n.current && t(e, n.current) && (e = n.current), n.current = e, e;
|
|
28
49
|
}
|
|
29
50
|
//#endregion
|
|
30
|
-
//#region ../node_modules/.pnpm/@internationalized+date@3.12.
|
|
31
|
-
var
|
|
51
|
+
//#region ../node_modules/.pnpm/@internationalized+date@3.12.4/node_modules/@internationalized/date/dist/private/DateFormatter.mjs
|
|
52
|
+
var l = /* @__PURE__ */ new Map(), u = class {
|
|
32
53
|
constructor(e, t = {}) {
|
|
33
|
-
this.formatter =
|
|
54
|
+
this.formatter = f(e, t), this.options = t;
|
|
34
55
|
}
|
|
35
56
|
format(e) {
|
|
36
57
|
return this.formatter.format(e);
|
|
@@ -65,41 +86,41 @@ var c = /* @__PURE__ */ new Map(), l = class {
|
|
|
65
86
|
}
|
|
66
87
|
resolvedOptions() {
|
|
67
88
|
let e = this.formatter.resolvedOptions();
|
|
68
|
-
return
|
|
89
|
+
return g() && (this.resolvedHourCycle ||= _(e.locale, this.options), e.hourCycle = this.resolvedHourCycle, e.hour12 = this.resolvedHourCycle === "h11" || this.resolvedHourCycle === "h12"), e.calendar === "ethiopic-amete-alem" && (e.calendar = "ethioaa"), e;
|
|
69
90
|
}
|
|
70
|
-
},
|
|
91
|
+
}, d = {
|
|
71
92
|
true: { ja: "h11" },
|
|
72
93
|
false: {}
|
|
73
94
|
};
|
|
74
|
-
function
|
|
75
|
-
if (typeof t.hour12 == "boolean" &&
|
|
95
|
+
function f(e, t = {}) {
|
|
96
|
+
if (typeof t.hour12 == "boolean" && m()) {
|
|
76
97
|
t = { ...t };
|
|
77
|
-
let n =
|
|
98
|
+
let n = d[String(t.hour12)][e.split("-")[0]], r = t.hour12 ? "h12" : "h23";
|
|
78
99
|
t.hourCycle = n ?? r, delete t.hour12;
|
|
79
100
|
}
|
|
80
101
|
let n = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
|
|
81
|
-
if (
|
|
102
|
+
if (l.has(n)) return l.get(n);
|
|
82
103
|
let r = new Intl.DateTimeFormat(e, t);
|
|
83
|
-
return
|
|
104
|
+
return l.set(n, r), r;
|
|
84
105
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return
|
|
106
|
+
var p = null;
|
|
107
|
+
function m() {
|
|
108
|
+
return p ??= new Intl.DateTimeFormat("en-US", {
|
|
88
109
|
hour: "numeric",
|
|
89
110
|
hour12: !1
|
|
90
|
-
}).format(new Date(2020, 2, 3, 0)) === "24",
|
|
111
|
+
}).format(new Date(2020, 2, 3, 0)) === "24", p;
|
|
91
112
|
}
|
|
92
|
-
var
|
|
93
|
-
function
|
|
94
|
-
return
|
|
113
|
+
var h = null;
|
|
114
|
+
function g() {
|
|
115
|
+
return h ??= new Intl.DateTimeFormat("fr", {
|
|
95
116
|
hour: "numeric",
|
|
96
117
|
hour12: !1
|
|
97
|
-
}).resolvedOptions().hourCycle === "h12",
|
|
118
|
+
}).resolvedOptions().hourCycle === "h12", h;
|
|
98
119
|
}
|
|
99
|
-
function
|
|
120
|
+
function _(e, t) {
|
|
100
121
|
if (!t.timeStyle && !t.hour) return;
|
|
101
122
|
e = e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, ""), e += (e.includes("-u-") ? "" : "-u") + "-nu-latn";
|
|
102
|
-
let n =
|
|
123
|
+
let n = f(e, {
|
|
103
124
|
...t,
|
|
104
125
|
timeZone: void 0
|
|
105
126
|
}), r = parseInt(n.formatToParts(new Date(2020, 2, 3, 0)).find((e) => e.type === "hour").value, 10), i = parseInt(n.formatToParts(new Date(2020, 2, 3, 23)).find((e) => e.type === "hour").value, 10);
|
|
@@ -110,13 +131,13 @@ function g(e, t) {
|
|
|
110
131
|
throw Error("Unexpected hour cycle result");
|
|
111
132
|
}
|
|
112
133
|
//#endregion
|
|
113
|
-
//#region ../node_modules/.pnpm
|
|
114
|
-
function
|
|
115
|
-
e =
|
|
134
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria/dist/private/i18n/useDateFormatter.mjs
|
|
135
|
+
function v(e) {
|
|
136
|
+
e = c(e ?? {}, y);
|
|
116
137
|
let { locale: t } = r();
|
|
117
|
-
return (0,
|
|
138
|
+
return (0, s.useMemo)(() => new u(t, e), [t, e]);
|
|
118
139
|
}
|
|
119
|
-
function
|
|
140
|
+
function y(e, t) {
|
|
120
141
|
if (e === t) return !0;
|
|
121
142
|
let n = Object.keys(e), r = Object.keys(t);
|
|
122
143
|
if (n.length !== r.length) return !1;
|
|
@@ -124,4 +145,4 @@ function v(e, t) {
|
|
|
124
145
|
return !0;
|
|
125
146
|
}
|
|
126
147
|
//#endregion
|
|
127
|
-
export {
|
|
148
|
+
export { a, o as i, u as n, i as o, c as r, v as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marimo-team/islands",
|
|
3
|
-
"version": "0.25.2-
|
|
3
|
+
"version": "0.25.2-dev61",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
"pyodide": "314.0.0",
|
|
123
123
|
"radix-ui": "1.6.7",
|
|
124
124
|
"react-arborist": "^3.16.0",
|
|
125
|
-
"react-aria": "3.
|
|
126
|
-
"react-aria-components": "1.
|
|
125
|
+
"react-aria": "3.52.1",
|
|
126
|
+
"react-aria-components": "1.21.1",
|
|
127
127
|
"react-codemirror-merge": "4.25.11",
|
|
128
128
|
"react-dnd": "^16.0.1",
|
|
129
129
|
"react-dnd-html5-backend": "^16.0.1",
|
|
@@ -54,6 +54,8 @@ export const TableTopBar = <TData,>({
|
|
|
54
54
|
togglePanel,
|
|
55
55
|
isAnyPanelOpen,
|
|
56
56
|
downloadAs,
|
|
57
|
+
getExportMetadata,
|
|
58
|
+
metadataSource,
|
|
57
59
|
sizeBytes,
|
|
58
60
|
sizeBytesIsLoading,
|
|
59
61
|
}: TableTopBarProps<TData>) => {
|
|
@@ -132,6 +134,8 @@ export const TableTopBar = <TData,>({
|
|
|
132
134
|
{downloadAs && (
|
|
133
135
|
<ExportActions
|
|
134
136
|
downloadAs={downloadAs}
|
|
137
|
+
getExportMetadata={getExportMetadata}
|
|
138
|
+
metadataSource={metadataSource}
|
|
135
139
|
sizeBytes={sizeBytes}
|
|
136
140
|
sizeBytesIsLoading={sizeBytesIsLoading}
|
|
137
141
|
/>
|