@marimo-team/islands 0.13.1-dev9 → 0.13.2-dev3
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-CyoQPS9m.js → ConnectedDataExplorerComponent-CGbRw3IM.js} +681 -692
- package/dist/{VegaLite-CHzOOWp-.js → VegaLite-Dw4K_USN.js} +3 -3
- package/dist/{_baseUniq-DNoPin-E.js → _baseUniq-DXsDFVSe.js} +67 -67
- package/dist/{any-language-editor-Mq1tVFyx.js → any-language-editor-DGn5zl16.js} +61 -61
- package/dist/{architectureDiagram-IEHRJDOE-DJrc8fHr.js → architectureDiagram-IEHRJDOE-CfwX0b3T.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-BLS8XVig.js → blockDiagram-JOT3LUYC-DdW82UG1.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-BQh1Xgtg.js → c4Diagram-VJAJSXHY-DsppCMht.js} +2 -2
- package/dist/{channel-BzYjWFRA.js → channel-CZPYfBeZ.js} +1 -1
- package/dist/{chunk-4BMEZGHF-DhbiOHIu.js → chunk-4BMEZGHF-BT7jNqQ8.js} +1 -1
- package/dist/{chunk-A2AXSNBT-Do9s3PW3.js → chunk-A2AXSNBT-D3uGVZVG.js} +2 -2
- package/dist/{chunk-AEK57VVT-DGeJHpzu.js → chunk-AEK57VVT-CSUfx73f.js} +2 -2
- package/dist/{chunk-D6G4REZN-Cdh0N5uJ.js → chunk-D6G4REZN-FJauKOLj.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-C2eF5zYv.js → chunk-RZ5BOZE2-oVXi60pb.js} +1 -1
- package/dist/{chunk-XZIHB7SX-C3ESb7z_.js → chunk-XZIHB7SX-CRAIEX_R.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-eNRGRSZW.js → classDiagram-GIVACNV2-DXsHqNIy.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-eNRGRSZW.js → classDiagram-v2-COTLJTTW-DXsHqNIy.js} +2 -2
- package/dist/{clone-BjM1LrG5.js → clone-BsyWPbqs.js} +1 -1
- package/dist/{dagre-OKDRZEBW-BrWQjrmT.js → dagre-OKDRZEBW-DO7a8tJG.js} +6 -6
- package/dist/{data-editor-DKZDEBwL.js → data-editor-DPThhgPp.js} +1 -1
- package/dist/{diagram-SSKATNLV-q8tb2YMl.js → diagram-SSKATNLV-Bls5R58o.js} +3 -3
- package/dist/{diagram-VNBRO52H-BCjXfGEW.js → diagram-VNBRO52H-BpEC5gvz.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-C9FOmgEw.js → erDiagram-Q7BY3M3F-DTMK16eS.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-Bk8kx-M9.js → flowDiagram-4HSFHLVR-CV9qBAZp.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-CSVZ8sfW.js → ganttDiagram-APWFNJXF-FDimH8ps.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S-2mFEK2N3.js → gitGraphDiagram-7IBYFJ6S-BqCm_3Ft.js} +4 -4
- package/dist/{graph-BGRO911q.js → graph-C8K286C_.js} +8 -8
- package/dist/{index-z0SX-fHz.js → index-8RoOqM37.js} +1 -1
- package/dist/{index-yRrl6HUz.js → index-Bojqt6Xl.js} +1 -1
- package/dist/{index-Cj6FBL4x.js → index-ByDUfEyZ.js} +4 -4
- package/dist/{index-jAY18BnE.js → index-C-djkhIK.js} +1 -1
- package/dist/{index-jTEe5X3a.js → index-C1HuMzyj.js} +3 -3
- package/dist/{index-BwupU5OL.js → index-CCdvhmXu.js} +4 -4
- package/dist/{index-p47X4P70.js → index-CL4y9xRv.js} +11 -11
- package/dist/{index-6ivx6BpR.js → index-CRGlOrnH.js} +9 -9
- package/dist/{index-75OJBYle.js → index-CqJaarDD.js} +3 -3
- package/dist/{index-nvEO_Uun.js → index-D64j2b3f.js} +4 -4
- package/dist/{index-DE7MQC00.js → index-DEA2sLBY.js} +1 -1
- package/dist/{index-CHqr_CA6.js → index-DKpc3EB8.js} +24 -24
- package/dist/{index-DtEUmT62.js → index-DMM58L7Q.js} +3 -3
- package/dist/{index-DEkvsQUm.js → index-DjMZkeB9.js} +1 -1
- package/dist/{index-du4FDzgd.js → index-V3h2pkxR.js} +1 -1
- package/dist/index-X-mspTRy.js +2875 -0
- package/dist/{infoDiagram-PH2N3AL5-B8OQ9Apl.js → infoDiagram-PH2N3AL5-DB5Fowou.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-D5yqAqCS.js → journeyDiagram-U35MCT3I-CKKTlQx-.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-O3sKQPyw.js → kanban-definition-NDS4AKOZ-CETacQXj.js} +1 -1
- package/dist/{layout-Mb3CmDem.js → layout-BDyhlwkN.js} +69 -69
- package/dist/{linear-CqgwiRCz.js → linear-DGVa1PyM.js} +14 -14
- package/dist/{main-B5cqxs0F.js → main-CT_ppgCd.js} +33391 -32542
- package/dist/main.js +1 -1
- package/dist/{mermaid-CQCrXf_j.js → mermaid-Da6Qb2z_.js} +28 -28
- package/dist/min-BQ5rX-0-.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-CpKAWOTA.js → mindmap-definition-ALO5MXBD-DKGHUjQ5.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-CKYDEGrF.js → pieDiagram-IB7DONF6-BDmzYf8t.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-B2GHWVkB.js → quadrantDiagram-7GDLP6J5-lmnKmt8i.js} +2 -2
- package/dist/{radar-MK3ICKWK-zlyvHGsS.js → radar-MK3ICKWK-CEuUZpCU.js} +5 -5
- package/dist/{react-plotly-r5vpSBLa.js → react-plotly-C5gwIfQS.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-DW6fscc4.js → requirementDiagram-KVF5MWMF-Cx936Y81.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-K-xOehyp.js → sankeyDiagram-QLVOVGJD-BRnouCOc.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-D9RGb1Rb.js → sequenceDiagram-X6HHIX6F-LOOoR9Y0.js} +3 -3
- package/dist/{slides-component-BLb0AtUK.js → slides-component-BCYGTf_d.js} +25 -25
- package/dist/{stateDiagram-DGXRK772-BTO8zB_Z.js → stateDiagram-DGXRK772-C8ROrJdW.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-lqN429HZ.js → stateDiagram-v2-YXO3MK2T-DqsfOJDr.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-DawTwGO0.js → time-VStXNjnw.js} +35 -35
- package/dist/{timeline-definition-BDJGKUSR-C8A3928m.js → timeline-definition-BDJGKUSR-DhxmAVMB.js} +1 -1
- package/dist/{vega-component-vgOZfXFy.js → vega-component-Dtd8gt79.js} +29 -37
- package/dist/{xychartDiagram-VJFVF3MP-kNUmW-0z.js → xychartDiagram-VJFVF3MP-Dd6KnayK.js} +2 -2
- package/package.json +7 -6
- package/dist/chart-spec-DREm07PV.js +0 -136
- package/dist/min-FLQLNHG5.js +0 -80
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as
|
|
2
|
-
import { c as on, a as hn } from "./linear-
|
|
1
|
+
import { R as P, r as ln, o as W, q as j, C as A, u as D, v as fn } from "./timer-ly3uOrxC.js";
|
|
2
|
+
import { c as on, a as hn } from "./linear-DGVa1PyM.js";
|
|
3
3
|
import { i as bn } from "./init-DxzjmxYy.js";
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
4
|
+
import { a9 as gn, aa as d, ab as v, ac as k, ad as x, ae as F, af as yn, ag as L, ah as S, ai as R, aj as pn, ak as mn, al as wn, am as Mn, an as dn, ao as vn, ap as kn, aq as B, ar as K, as as X, at as Z, au as $, av as E, aw as xn } from "./main-CT_ppgCd.js";
|
|
5
|
+
function Wn(n, t) {
|
|
6
6
|
let i;
|
|
7
7
|
if (t === void 0)
|
|
8
8
|
for (const e of n)
|
|
@@ -14,7 +14,7 @@ function Bn(n, t) {
|
|
|
14
14
|
}
|
|
15
15
|
return i;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function jn(n, t) {
|
|
18
18
|
let i;
|
|
19
19
|
if (t === void 0)
|
|
20
20
|
for (const e of n)
|
|
@@ -28,10 +28,10 @@ function Pn(n, t) {
|
|
|
28
28
|
}
|
|
29
29
|
function G(n, t, i, e, r, l) {
|
|
30
30
|
const s = [
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
31
|
+
[d, 1, v],
|
|
32
|
+
[d, 5, 5 * v],
|
|
33
|
+
[d, 15, 15 * v],
|
|
34
|
+
[d, 30, 30 * v],
|
|
35
35
|
[l, 1, k],
|
|
36
36
|
[l, 5, 5 * k],
|
|
37
37
|
[l, 15, 15 * k],
|
|
@@ -45,7 +45,7 @@ function G(n, t, i, e, r, l) {
|
|
|
45
45
|
[i, 1, yn],
|
|
46
46
|
[t, 1, L],
|
|
47
47
|
[t, 3, 3 * L],
|
|
48
|
-
[n, 1,
|
|
48
|
+
[n, 1, S]
|
|
49
49
|
];
|
|
50
50
|
function y(u, c, b) {
|
|
51
51
|
const f = c < u;
|
|
@@ -54,29 +54,29 @@ function G(n, t, i, e, r, l) {
|
|
|
54
54
|
return f ? m.reverse() : m;
|
|
55
55
|
}
|
|
56
56
|
function M(u, c, b) {
|
|
57
|
-
const f = Math.abs(c - u) / b, o = gn(([, ,
|
|
58
|
-
if (o === s.length) return n.every(R(u /
|
|
57
|
+
const f = Math.abs(c - u) / b, o = gn(([, , H]) => H).right(s, f);
|
|
58
|
+
if (o === s.length) return n.every(R(u / S, c / S, b));
|
|
59
59
|
if (o === 0) return pn.every(Math.max(R(u, c, b), 1));
|
|
60
60
|
const [m, I] = s[f / s[o - 1][2] < s[o][2] / f ? o - 1 : o];
|
|
61
61
|
return m.every(I);
|
|
62
62
|
}
|
|
63
63
|
return [y, M];
|
|
64
64
|
}
|
|
65
|
-
const [
|
|
65
|
+
const [An, Bn] = G(kn, vn, dn, Mn, wn, mn), [Dn, Nn] = G(E, $, Z, X, K, B), In = Math.PI / 180, Hn = 180 / Math.PI, N = 18, J = 0.96422, O = 1, Q = 0.82521, U = 4 / 29, w = 6 / 29, V = 3 * w * w, Sn = w * w * w;
|
|
66
66
|
function _(n) {
|
|
67
67
|
if (n instanceof g) return new g(n.l, n.a, n.b, n.opacity);
|
|
68
68
|
if (n instanceof p) return nn(n);
|
|
69
|
-
n instanceof
|
|
70
|
-
var t = T(n.r), i = T(n.g), e = T(n.b), r =
|
|
71
|
-
return t === i && i === e ? l = s = r : (l =
|
|
69
|
+
n instanceof P || (n = ln(n));
|
|
70
|
+
var t = T(n.r), i = T(n.g), e = T(n.b), r = Y((0.2225045 * t + 0.7168786 * i + 0.0606169 * e) / O), l, s;
|
|
71
|
+
return t === i && i === e ? l = s = r : (l = Y((0.4360747 * t + 0.3850649 * i + 0.1430804 * e) / J), s = Y((0.0139322 * t + 0.0971045 * i + 0.7141733 * e) / Q)), new g(116 * r - 16, 500 * (l - r), 200 * (r - s), n.opacity);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Yn(n, t, i, e) {
|
|
74
74
|
return arguments.length === 1 ? _(n) : new g(n, t, i, e ?? 1);
|
|
75
75
|
}
|
|
76
76
|
function g(n, t, i, e) {
|
|
77
77
|
this.l = +n, this.a = +t, this.b = +i, this.opacity = +e;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
W(g, Yn, j(A, {
|
|
80
80
|
brighter(n) {
|
|
81
81
|
return new g(this.l + N * (n ?? 1), this.a, this.b, this.opacity);
|
|
82
82
|
},
|
|
@@ -85,7 +85,7 @@ B(g, Sn, P(W, {
|
|
|
85
85
|
},
|
|
86
86
|
rgb() {
|
|
87
87
|
var n = (this.l + 16) / 116, t = isNaN(this.a) ? n : n + this.a / 500, i = isNaN(this.b) ? n : n - this.b / 200;
|
|
88
|
-
return t = J *
|
|
88
|
+
return t = J * C(t), n = O * C(n), i = Q * C(i), new P(
|
|
89
89
|
z(3.1338561 * t - 1.6168667 * n - 0.4906146 * i),
|
|
90
90
|
z(-0.9787684 * t + 1.9161415 * n + 0.033454 * i),
|
|
91
91
|
z(0.0719453 * t - 0.2289914 * n + 1.4052427 * i),
|
|
@@ -93,10 +93,10 @@ B(g, Sn, P(W, {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
}));
|
|
96
|
-
function S(n) {
|
|
97
|
-
return n > Hn ? Math.pow(n, 1 / 3) : n / V + U;
|
|
98
|
-
}
|
|
99
96
|
function Y(n) {
|
|
97
|
+
return n > Sn ? Math.pow(n, 1 / 3) : n / V + U;
|
|
98
|
+
}
|
|
99
|
+
function C(n) {
|
|
100
100
|
return n > w ? n * n * n : V * (n - U);
|
|
101
101
|
}
|
|
102
102
|
function z(n) {
|
|
@@ -105,14 +105,14 @@ function z(n) {
|
|
|
105
105
|
function T(n) {
|
|
106
106
|
return (n /= 255) <= 0.04045 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Cn(n) {
|
|
109
109
|
if (n instanceof p) return new p(n.h, n.c, n.l, n.opacity);
|
|
110
110
|
if (n instanceof g || (n = _(n)), n.a === 0 && n.b === 0) return new p(NaN, 0 < n.l && n.l < 100 ? 0 : NaN, n.l, n.opacity);
|
|
111
|
-
var t = Math.atan2(n.b, n.a) *
|
|
111
|
+
var t = Math.atan2(n.b, n.a) * Hn;
|
|
112
112
|
return new p(t < 0 ? t + 360 : t, Math.sqrt(n.a * n.a + n.b * n.b), n.l, n.opacity);
|
|
113
113
|
}
|
|
114
114
|
function q(n, t, i, e) {
|
|
115
|
-
return arguments.length === 1 ?
|
|
115
|
+
return arguments.length === 1 ? Cn(n) : new p(n, t, i, e ?? 1);
|
|
116
116
|
}
|
|
117
117
|
function p(n, t, i, e) {
|
|
118
118
|
this.h = +n, this.c = +t, this.l = +i, this.opacity = +e;
|
|
@@ -122,7 +122,7 @@ function nn(n) {
|
|
|
122
122
|
var t = n.h * In;
|
|
123
123
|
return new g(n.l, Math.cos(t) * n.c, Math.sin(t) * n.c, n.opacity);
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
W(p, q, j(A, {
|
|
126
126
|
brighter(n) {
|
|
127
127
|
return new p(this.h, this.c, this.l + N * (n ?? 1), this.opacity);
|
|
128
128
|
},
|
|
@@ -155,9 +155,9 @@ function qn(n) {
|
|
|
155
155
|
return n instanceof Date ? +n : +/* @__PURE__ */ new Date(+n);
|
|
156
156
|
}
|
|
157
157
|
function en(n, t, i, e, r, l, s, y, M, u) {
|
|
158
|
-
var c = on(), b = c.invert, f = c.domain, o = u(".%L"), m = u(":%S"), I = u("%I:%M"),
|
|
158
|
+
var c = on(), b = c.invert, f = c.domain, o = u(".%L"), m = u(":%S"), I = u("%I:%M"), H = u("%I %p"), rn = u("%a %d"), an = u("%b %d"), cn = u("%B"), un = u("%Y");
|
|
159
159
|
function sn(a) {
|
|
160
|
-
return (M(a) < a ? o : y(a) < a ? m : s(a) < a ? I : l(a) < a ?
|
|
160
|
+
return (M(a) < a ? o : y(a) < a ? m : s(a) < a ? I : l(a) < a ? H : e(a) < a ? r(a) < a ? rn : an : i(a) < a ? cn : un)(a);
|
|
161
161
|
}
|
|
162
162
|
return c.invert = function(a) {
|
|
163
163
|
return new Date(b(a));
|
|
@@ -176,20 +176,20 @@ function en(n, t, i, e, r, l, s, y, M, u) {
|
|
|
176
176
|
}, c;
|
|
177
177
|
}
|
|
178
178
|
function Zn() {
|
|
179
|
-
return bn.apply(en(Dn, Nn, E, $, Z, X, K,
|
|
179
|
+
return bn.apply(en(Dn, Nn, E, $, Z, X, K, B, d, xn).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
180
180
|
}
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
Wn as a,
|
|
183
|
+
An as b,
|
|
184
184
|
en as c,
|
|
185
|
-
|
|
185
|
+
Hn as d,
|
|
186
186
|
q as e,
|
|
187
187
|
Xn as h,
|
|
188
188
|
Kn as i,
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
Yn as l,
|
|
190
|
+
jn as m,
|
|
191
191
|
zn as n,
|
|
192
192
|
In as r,
|
|
193
193
|
Zn as t,
|
|
194
|
-
|
|
194
|
+
Bn as u
|
|
195
195
|
};
|
package/dist/{timeline-definition-BDJGKUSR-C8A3928m.js → timeline-definition-BDJGKUSR-DhxmAVMB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-
|
|
1
|
+
import { _ as s, c as xt, l as T, d as q, T as kt, V as vt, W as _t, X as bt, D as wt, Y as St, z as Et } from "./mermaid-Da6Qb2z_.js";
|
|
2
2
|
import { d as nt } from "./arc-CbMargV8.js";
|
|
3
3
|
var X = function() {
|
|
4
4
|
var n = /* @__PURE__ */ s(function(f, i, a, d) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as d, a as te } from "./VegaLite-
|
|
1
|
+
import { T as L, U as K, V as z, W as R, X as W, Y as G, J as f, Z as $, H as B, D as w, _ as O, $ as M, a0 as U, a1 as x, a2 as S, a3 as Y, a4 as q, a5 as J, a6 as X, a7 as Q, a8 as ee } from "./main-CT_ppgCd.js";
|
|
2
|
+
import { M as d, a as te } from "./VegaLite-Dw4K_USN.js";
|
|
3
3
|
const j = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
4
4
|
getMarkType(e) {
|
|
5
5
|
const t = typeof e == "string" ? e : e.type;
|
|
@@ -217,7 +217,7 @@ function ie(e, t) {
|
|
|
217
217
|
if (!("mark" in i))
|
|
218
218
|
return i;
|
|
219
219
|
let m = i;
|
|
220
|
-
return m = C(m, n, h), m = P(m), h === 0 && (m =
|
|
220
|
+
return m = C(m, n, h), m = P(m), h === 0 && (m = I(m)), m;
|
|
221
221
|
});
|
|
222
222
|
return {
|
|
223
223
|
...e,
|
|
@@ -227,7 +227,7 @@ function ie(e, t) {
|
|
|
227
227
|
if (!("mark" in e) || !v.isInteractive(e.mark))
|
|
228
228
|
return e;
|
|
229
229
|
let s = e;
|
|
230
|
-
return s = se(s, o), s = C(s, n, void 0), s = P(s), s =
|
|
230
|
+
return s = se(s, o), s = C(s, n, void 0), s = P(s), s = I(s), s;
|
|
231
231
|
}
|
|
232
232
|
function se(e, t) {
|
|
233
233
|
if (t === !1)
|
|
@@ -249,7 +249,7 @@ function C(e, t, n) {
|
|
|
249
249
|
} catch {
|
|
250
250
|
return e;
|
|
251
251
|
}
|
|
252
|
-
if (o === "geoshape"
|
|
252
|
+
if (o === "geoshape")
|
|
253
253
|
return e;
|
|
254
254
|
const r = t === !0 ? le(o) : [t];
|
|
255
255
|
if (!r)
|
|
@@ -260,7 +260,7 @@ function C(e, t, n) {
|
|
|
260
260
|
params: s
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function I(e) {
|
|
264
264
|
let t;
|
|
265
265
|
try {
|
|
266
266
|
t = v.getMarkType(e.mark);
|
|
@@ -275,16 +275,8 @@ function L(e) {
|
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
function P(e) {
|
|
278
|
-
const t = "encoding" in e ? e.encoding : void 0, n = e.params || [], o = n.map((
|
|
279
|
-
|
|
280
|
-
return e;
|
|
281
|
-
let r;
|
|
282
|
-
try {
|
|
283
|
-
r = v.getMarkType(e.mark);
|
|
284
|
-
} catch {
|
|
285
|
-
return e;
|
|
286
|
-
}
|
|
287
|
-
return r === "text" ? e : {
|
|
278
|
+
const t = "encoding" in e ? e.encoding : void 0, n = e.params || [], o = n.map((r) => r.name);
|
|
279
|
+
return n.length === 0 || !v.isInteractive(e.mark) ? e : {
|
|
288
280
|
...e,
|
|
289
281
|
mark: v.makeClickable(e.mark),
|
|
290
282
|
encoding: ae("opacity", t || {}, o, e.mark)
|
|
@@ -292,10 +284,10 @@ function P(e) {
|
|
|
292
284
|
}
|
|
293
285
|
function le(e) {
|
|
294
286
|
switch (e) {
|
|
295
|
-
case "text":
|
|
296
287
|
case "arc":
|
|
297
288
|
case "area":
|
|
298
289
|
return ["point"];
|
|
290
|
+
case "text":
|
|
299
291
|
case "bar":
|
|
300
292
|
return ["point", "interval"];
|
|
301
293
|
// there is no best selection for line
|
|
@@ -306,7 +298,7 @@ function le(e) {
|
|
|
306
298
|
}
|
|
307
299
|
}
|
|
308
300
|
function ce(e) {
|
|
309
|
-
return e.data && "url" in e.data && (e.data.url =
|
|
301
|
+
return e.data && "url" in e.data && (e.data.url = L(e.data.url).href), e;
|
|
310
302
|
}
|
|
311
303
|
async function ue(e) {
|
|
312
304
|
if (!e)
|
|
@@ -344,7 +336,7 @@ async function ue(e) {
|
|
|
344
336
|
return r;
|
|
345
337
|
let a;
|
|
346
338
|
try {
|
|
347
|
-
a =
|
|
339
|
+
a = L(r.data.url);
|
|
348
340
|
} catch {
|
|
349
341
|
return r;
|
|
350
342
|
}
|
|
@@ -373,7 +365,7 @@ function me(e, t) {
|
|
|
373
365
|
useProxy: !0
|
|
374
366
|
});
|
|
375
367
|
}
|
|
376
|
-
|
|
368
|
+
G("arrow", V);
|
|
377
369
|
const pe = (e) => {
|
|
378
370
|
const t = R.c(11), {
|
|
379
371
|
value: n,
|
|
@@ -387,7 +379,7 @@ const pe = (e) => {
|
|
|
387
379
|
const {
|
|
388
380
|
data: u,
|
|
389
381
|
error: i
|
|
390
|
-
} =
|
|
382
|
+
} = W(l, g);
|
|
391
383
|
if (i) {
|
|
392
384
|
let m;
|
|
393
385
|
return t[3] !== i ? (m = /* @__PURE__ */ f.jsx($, { error: i }), t[3] = i, t[4] = m) : m = t[4], m;
|
|
@@ -405,47 +397,47 @@ const pe = (e) => {
|
|
|
405
397
|
}) => {
|
|
406
398
|
const {
|
|
407
399
|
theme: a
|
|
408
|
-
} = B(), s =
|
|
400
|
+
} = B(), s = w.useRef(), [l, g] = w.useState(), u = O(r), i = w.useMemo(() => ie(ce(u), {
|
|
409
401
|
chartSelection: n,
|
|
410
402
|
fieldSelection: o
|
|
411
|
-
}), [u, n, o]), h =
|
|
403
|
+
}), [u, n, o]), h = w.useMemo(() => N(i), [i]), m = M((c) => {
|
|
412
404
|
t({
|
|
413
405
|
...e,
|
|
414
406
|
...c
|
|
415
407
|
});
|
|
416
|
-
}),
|
|
417
|
-
x.debug("[Vega signal]",
|
|
418
|
-
let E =
|
|
419
|
-
E =
|
|
420
|
-
[
|
|
408
|
+
}), _ = O(h), D = w.useMemo(() => _.reduce((c, p) => (y.PAN_ZOOM === p || (c[p] = U((k, A) => {
|
|
409
|
+
x.debug("[Vega signal]", k, A);
|
|
410
|
+
let E = S.mapValues(A, ge);
|
|
411
|
+
E = S.mapValues(E, he), m({
|
|
412
|
+
[k]: E
|
|
421
413
|
});
|
|
422
|
-
}, 100)), c), {}), [
|
|
414
|
+
}, 100)), c), {}), [_, m]), H = M((c) => {
|
|
423
415
|
x.error(c), x.debug(i), g(c);
|
|
424
|
-
}),
|
|
416
|
+
}), F = M((c) => {
|
|
425
417
|
x.debug("[Vega view] created", c), s.current = c, g(void 0);
|
|
426
418
|
}), Z = () => {
|
|
427
419
|
const c = [];
|
|
428
|
-
return y.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), y.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), y.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), y.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ f.jsx(
|
|
420
|
+
return y.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), y.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), y.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), y.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ f.jsx(Q, { delayDuration: 300, side: "left", content: /* @__PURE__ */ f.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, k) => /* @__PURE__ */ f.jsxs("div", { children: [
|
|
429
421
|
/* @__PURE__ */ f.jsxs("span", { className: "font-bold tracking-wide", children: [
|
|
430
422
|
p[0],
|
|
431
423
|
":"
|
|
432
424
|
] }),
|
|
433
425
|
" ",
|
|
434
426
|
p[1]
|
|
435
|
-
] },
|
|
427
|
+
] }, k)) }), children: /* @__PURE__ */ f.jsx(ee, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
|
|
436
428
|
};
|
|
437
429
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
438
|
-
l && /* @__PURE__ */ f.jsxs(
|
|
439
|
-
/* @__PURE__ */ f.jsx(
|
|
430
|
+
l && /* @__PURE__ */ f.jsxs(Y, { variant: "destructive", children: [
|
|
431
|
+
/* @__PURE__ */ f.jsx(q, { children: l.message }),
|
|
440
432
|
/* @__PURE__ */ f.jsx("div", { className: "text-md", children: l.stack })
|
|
441
433
|
] }),
|
|
442
434
|
/* @__PURE__ */ f.jsxs(
|
|
443
435
|
"div",
|
|
444
436
|
{
|
|
445
437
|
className: "relative",
|
|
446
|
-
onPointerDown:
|
|
438
|
+
onPointerDown: J.stopPropagation(),
|
|
447
439
|
children: [
|
|
448
|
-
/* @__PURE__ */ f.jsx(te, { spec: i, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError:
|
|
440
|
+
/* @__PURE__ */ f.jsx(te, { spec: i, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError: H, onNewView: F }),
|
|
449
441
|
Z()
|
|
450
442
|
]
|
|
451
443
|
}
|
|
@@ -459,7 +451,7 @@ function he(e) {
|
|
|
459
451
|
return e instanceof Set ? [...e] : e;
|
|
460
452
|
}
|
|
461
453
|
function ge(e) {
|
|
462
|
-
return Array.isArray(e) ? e.map((t) => t instanceof Date &&
|
|
454
|
+
return Array.isArray(e) ? e.map((t) => t instanceof Date && X(t) ? new Date(t).getTime() : t) : e;
|
|
463
455
|
}
|
|
464
456
|
export {
|
|
465
457
|
pe as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-
|
|
1
|
+
import { _ as a, s as ui, g as gi, t as Ft, q as xi, a as di, b as pi, l as Xt, K as fi, e as mi, z as yi, G as At, F as Nt, H as bi, M as Ai, i as wi, a9 as Ci } from "./mermaid-Da6Qb2z_.js";
|
|
2
2
|
import { i as Si } from "./init-DxzjmxYy.js";
|
|
3
3
|
import { o as _i } from "./ordinal-CYN5qNoq.js";
|
|
4
4
|
import { r as ki } from "./range-DdOGybNB.js";
|
|
5
|
-
import { l as Bt } from "./linear-
|
|
5
|
+
import { l as Bt } from "./linear-DGVa1PyM.js";
|
|
6
6
|
import { l as Wt } from "./timer-ly3uOrxC.js";
|
|
7
7
|
function pt() {
|
|
8
8
|
var e = _i().unknown(void 0), t = e.domain, i = e.range, s = 0, n = 1, r, u, f = !1, p = 0, k = 0, R = 0.5;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marimo-team/islands",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2-dev3",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
"react-virtuoso": "^4.12.6",
|
|
136
136
|
"reactflow": "^11.11.4",
|
|
137
137
|
"rpc-anywhere": "^1.7.0",
|
|
138
|
+
"sql-formatter": "^15.6.0",
|
|
138
139
|
"string-dedent": "^3.0.1",
|
|
139
140
|
"swiper": "^11.2.6",
|
|
140
141
|
"tailwind-merge": "^2.6.0",
|
|
@@ -206,8 +207,8 @@
|
|
|
206
207
|
"@types/timestring": "^6.0.5",
|
|
207
208
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
208
209
|
"@typescript-eslint/parser": "^7.15.0",
|
|
209
|
-
"@vitejs/plugin-react": "^4.
|
|
210
|
-
"@vitejs/plugin-react-swc": "^3.
|
|
210
|
+
"@vitejs/plugin-react": "^4.4.1",
|
|
211
|
+
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
211
212
|
"autoprefixer": "^10.4.21",
|
|
212
213
|
"babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
|
|
213
214
|
"blob-polyfill": "^7.0.20220408",
|
|
@@ -235,10 +236,10 @@
|
|
|
235
236
|
"stylelint-config-standard": "^36.0.1",
|
|
236
237
|
"tailwindcss": "^3.4.17",
|
|
237
238
|
"turbo": "^2.4.4",
|
|
238
|
-
"typescript": "^5.8.
|
|
239
|
-
"vite": "^6.
|
|
239
|
+
"typescript": "^5.8.3",
|
|
240
|
+
"vite": "^6.3.2",
|
|
240
241
|
"vite-tsconfig-paths": "^5.1.4",
|
|
241
|
-
"vitest": "^3.
|
|
242
|
+
"vitest": "^3.1.1"
|
|
242
243
|
},
|
|
243
244
|
"packageManager": "pnpm@9.15.9",
|
|
244
245
|
"pnpm": {
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { D as L, N as a, a as P, l as U, b as F, C as l } from "./main-B5cqxs0F.js";
|
|
2
|
-
function Y(e, t, n, i, o, r) {
|
|
3
|
-
var x, A, E, v, h, k, b, f, B, T, I, w;
|
|
4
|
-
let d = (x = n.general.xColumn) == null ? void 0 : x.field, g = (A = n.general.yColumn) == null ? void 0 : A.field;
|
|
5
|
-
(E = n.general.yColumn) != null && E.agg && n.general.yColumn.agg !== L && (g = `${n.general.yColumn.agg.toUpperCase()}(${g})`), (v = n.xAxis) != null && v.label && n.xAxis.label.trim() !== "" && (d = n.xAxis.label), (h = n.yAxis) != null && h.label && n.yAxis.label.trim() !== "" && (g = n.yAxis.label);
|
|
6
|
-
const S = e === l.PIE ? "theta" : "x", y = e === l.PIE ? "color" : "y", u = ((k = n.general.groupByColumn) == null ? void 0 : k.field) !== a, _ = u && n.general.horizontal, N = u && !n.general.horizontal, p = {
|
|
7
|
-
field: (b = n.general.xColumn) == null ? void 0 : b.field,
|
|
8
|
-
type: c(((f = n.general.xColumn) == null ? void 0 : f.type) ?? "unknown"),
|
|
9
|
-
bin: D((B = n.xAxis) == null ? void 0 : B.bin),
|
|
10
|
-
title: d,
|
|
11
|
-
stack: _ ? n.general.stacking : void 0
|
|
12
|
-
}, s = O(n), C = {
|
|
13
|
-
field: (T = n.general.yColumn) == null ? void 0 : T.field,
|
|
14
|
-
type: c(((I = n.general.yColumn) == null ? void 0 : I.type) ?? "unknown"),
|
|
15
|
-
bin: D((w = n.yAxis) == null ? void 0 : w.bin),
|
|
16
|
-
title: g,
|
|
17
|
-
// If color encoding is used as y, we can define the scheme here
|
|
18
|
-
scale: s && y === "color" ? {
|
|
19
|
-
...s
|
|
20
|
-
} : void 0,
|
|
21
|
-
stack: N ? n.general.stacking : void 0
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
$schema: "https://vega.github.io/schema/vega-lite/v5.json",
|
|
25
|
-
background: i === "dark" ? "dark" : "white",
|
|
26
|
-
title: n.general.title,
|
|
27
|
-
data: {
|
|
28
|
-
values: t
|
|
29
|
-
},
|
|
30
|
-
height: r,
|
|
31
|
-
width: o,
|
|
32
|
-
mark: {
|
|
33
|
-
type: $(e)
|
|
34
|
-
},
|
|
35
|
-
encoding: {
|
|
36
|
-
[S]: n.general.horizontal ? C : p,
|
|
37
|
-
[y]: n.general.horizontal ? p : C,
|
|
38
|
-
xOffset: m(e, n),
|
|
39
|
-
...R(e, n),
|
|
40
|
-
tooltip: z(n)
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function R(e, t) {
|
|
45
|
-
var i, o, r;
|
|
46
|
-
return e === l.PIE || ((i = t.general.groupByColumn) == null ? void 0 : i.field) === a ? void 0 : {
|
|
47
|
-
color: {
|
|
48
|
-
field: (o = t.general.groupByColumn) == null ? void 0 : o.field,
|
|
49
|
-
type: c(((r = t.general.groupByColumn) == null ? void 0 : r.type) ?? "unknown"),
|
|
50
|
-
scale: {
|
|
51
|
-
...O(t)
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function O(e) {
|
|
57
|
-
var i, o;
|
|
58
|
-
const t = (i = e.color) == null ? void 0 : i.range;
|
|
59
|
-
if (t && t.length > 0)
|
|
60
|
-
return {
|
|
61
|
-
range: t
|
|
62
|
-
};
|
|
63
|
-
const n = (o = e.color) == null ? void 0 : o.scheme;
|
|
64
|
-
if (n !== F)
|
|
65
|
-
return {
|
|
66
|
-
scheme: n
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function m(e, t) {
|
|
70
|
-
var n, i, o;
|
|
71
|
-
if (!(t.general.stacking || ((n = t.general.groupByColumn) == null ? void 0 : n.field) === a || e === l.PIE))
|
|
72
|
-
return {
|
|
73
|
-
field: ((i = t.general.groupByColumn) == null ? void 0 : i.field) === a || (o = t.general.groupByColumn) == null ? void 0 : o.field
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function D(e) {
|
|
77
|
-
if (e != null && e.binned)
|
|
78
|
-
return e.step === P ? !0 : {
|
|
79
|
-
binned: !0,
|
|
80
|
-
step: e.step
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
function z(e) {
|
|
84
|
-
var t;
|
|
85
|
-
return (t = e.general.tooltips) == null ? void 0 : t.map((n) => ({
|
|
86
|
-
field: n.field,
|
|
87
|
-
aggregate: (() => {
|
|
88
|
-
var i, o, r;
|
|
89
|
-
if (n.field === ((i = e.general.yColumn) == null ? void 0 : i.field))
|
|
90
|
-
return ((o = e.general.yColumn) == null ? void 0 : o.agg) === L || (r = e.general.yColumn) == null ? void 0 : r.agg;
|
|
91
|
-
})(),
|
|
92
|
-
format: G(n.type)
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
|
-
function G(e) {
|
|
96
|
-
switch (e) {
|
|
97
|
-
case "integer":
|
|
98
|
-
return ",d";
|
|
99
|
-
case "number":
|
|
100
|
-
return ".2f";
|
|
101
|
-
default:
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function c(e) {
|
|
106
|
-
switch (e) {
|
|
107
|
-
case "number":
|
|
108
|
-
case "integer":
|
|
109
|
-
return "quantitative";
|
|
110
|
-
case "string":
|
|
111
|
-
return "nominal";
|
|
112
|
-
case "boolean":
|
|
113
|
-
return "nominal";
|
|
114
|
-
case "date":
|
|
115
|
-
case "datetime":
|
|
116
|
-
case "time":
|
|
117
|
-
return "temporal";
|
|
118
|
-
case "unknown":
|
|
119
|
-
return "nominal";
|
|
120
|
-
default:
|
|
121
|
-
return U(e), "nominal";
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
function $(e) {
|
|
125
|
-
switch (e) {
|
|
126
|
-
case l.PIE:
|
|
127
|
-
return "arc";
|
|
128
|
-
case l.SCATTER:
|
|
129
|
-
return "point";
|
|
130
|
-
default:
|
|
131
|
-
return e;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
export {
|
|
135
|
-
Y as createVegaSpec
|
|
136
|
-
};
|
package/dist/min-FLQLNHG5.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { B as b, aD as m, aE as x, aF as O, aG as l, K as p, aH as w, aI as P, aJ as I, aK as M, aL as o, aM as A } from "./main-B5cqxs0F.js";
|
|
2
|
-
import { d as h, e as E, g as F } from "./_baseUniq-DNoPin-E.js";
|
|
3
|
-
var g = Object.prototype, L = g.hasOwnProperty, S = b(function(a, n) {
|
|
4
|
-
a = Object(a);
|
|
5
|
-
var r = -1, i = n.length, t = i > 2 ? n[2] : void 0;
|
|
6
|
-
for (t && m(n[0], n[1], t) && (i = 1); ++r < i; )
|
|
7
|
-
for (var s = n[r], e = x(s), f = -1, v = e.length; ++f < v; ) {
|
|
8
|
-
var u = e[f], d = a[u];
|
|
9
|
-
(d === void 0 || O(d, g[u]) && !L.call(a, u)) && (a[u] = s[u]);
|
|
10
|
-
}
|
|
11
|
-
return a;
|
|
12
|
-
});
|
|
13
|
-
function z(a) {
|
|
14
|
-
var n = a == null ? 0 : a.length;
|
|
15
|
-
return n ? a[n - 1] : void 0;
|
|
16
|
-
}
|
|
17
|
-
function y(a) {
|
|
18
|
-
return function(n, r, i) {
|
|
19
|
-
var t = Object(n);
|
|
20
|
-
if (!l(n)) {
|
|
21
|
-
var s = h(r);
|
|
22
|
-
n = p(n), r = function(f) {
|
|
23
|
-
return s(t[f], f, t);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
var e = a(n, r, i);
|
|
27
|
-
return e > -1 ? t[s ? n[e] : e] : void 0;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
var H = Math.max;
|
|
31
|
-
function K(a, n, r) {
|
|
32
|
-
var i = a == null ? 0 : a.length;
|
|
33
|
-
if (!i)
|
|
34
|
-
return -1;
|
|
35
|
-
var t = r == null ? 0 : w(r);
|
|
36
|
-
return t < 0 && (t = H(i + t, 0)), E(a, h(n), t);
|
|
37
|
-
}
|
|
38
|
-
var N = y(K);
|
|
39
|
-
function $(a, n) {
|
|
40
|
-
var r = -1, i = l(a) ? Array(a.length) : [];
|
|
41
|
-
return F(a, function(t, s, e) {
|
|
42
|
-
i[++r] = n(t, s, e);
|
|
43
|
-
}), i;
|
|
44
|
-
}
|
|
45
|
-
function Q(a, n) {
|
|
46
|
-
var r = I(a) ? P : $;
|
|
47
|
-
return r(a, h(n));
|
|
48
|
-
}
|
|
49
|
-
var q = Object.prototype, B = q.hasOwnProperty;
|
|
50
|
-
function C(a, n) {
|
|
51
|
-
return a != null && B.call(a, n);
|
|
52
|
-
}
|
|
53
|
-
function T(a, n) {
|
|
54
|
-
return a != null && M(a, n, C);
|
|
55
|
-
}
|
|
56
|
-
function D(a, n) {
|
|
57
|
-
return a < n;
|
|
58
|
-
}
|
|
59
|
-
function G(a, n, r) {
|
|
60
|
-
for (var i = -1, t = a.length; ++i < t; ) {
|
|
61
|
-
var s = a[i], e = n(s);
|
|
62
|
-
if (e != null && (f === void 0 ? e === e && !o(e) : r(e, f)))
|
|
63
|
-
var f = e, v = s;
|
|
64
|
-
}
|
|
65
|
-
return v;
|
|
66
|
-
}
|
|
67
|
-
function U(a) {
|
|
68
|
-
return a && a.length ? G(a, A, D) : void 0;
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
D as a,
|
|
72
|
-
G as b,
|
|
73
|
-
$ as c,
|
|
74
|
-
U as d,
|
|
75
|
-
S as e,
|
|
76
|
-
N as f,
|
|
77
|
-
T as h,
|
|
78
|
-
z as l,
|
|
79
|
-
Q as m
|
|
80
|
-
};
|