@marimo-team/islands 0.12.9-dev6 → 0.12.10-dev0
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-XvDAFJxC.js → ConnectedDataExplorerComponent-BOl7yavE.js} +2 -2
- package/dist/{VegaLite-B-0aElmk.js → VegaLite-tMFU_PsN.js} +3 -3
- package/dist/{_baseUniq-CktgWkvY.js → _baseUniq-CSEFw_bB.js} +67 -67
- package/dist/{any-language-editor-CcMmyhdL.js → any-language-editor-DI3k1vBj.js} +61 -61
- package/dist/{architectureDiagram-IEHRJDOE-BM3gOQ52.js → architectureDiagram-IEHRJDOE-EwLhKe81.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-BkxTHY-W.js → blockDiagram-JOT3LUYC-CPT_umlb.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-vt46LmOP.js → c4Diagram-VJAJSXHY-B3qYo6pO.js} +2 -2
- package/dist/{channel-BnTdcKVt.js → channel-wOFv3hDH.js} +1 -1
- package/dist/chart-spec-DWp-oz9H.js +136 -0
- package/dist/{chunk-4BMEZGHF-BK7MthZx.js → chunk-4BMEZGHF-BoAVu47p.js} +1 -1
- package/dist/{chunk-A2AXSNBT-Cgxazuy3.js → chunk-A2AXSNBT-0glsHF3Y.js} +2 -2
- package/dist/{chunk-AEK57VVT-GoEj4BOL.js → chunk-AEK57VVT-bDr2fMXQ.js} +2 -2
- package/dist/{chunk-D6G4REZN-DjRUJsXJ.js → chunk-D6G4REZN-DDPHD7FH.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-CGi5z581.js → chunk-RZ5BOZE2-CvXZiD3A.js} +1 -1
- package/dist/{chunk-XZIHB7SX-DVAz0yRU.js → chunk-XZIHB7SX-ClMSUeL_.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-Bwpz5yj8.js → classDiagram-GIVACNV2-DovJLCLW.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-Bwpz5yj8.js → classDiagram-v2-COTLJTTW-DovJLCLW.js} +2 -2
- package/dist/{clone-D3WCTbw_.js → clone-DSEuY31u.js} +1 -1
- package/dist/{dagre-OKDRZEBW-fF8GIuG5.js → dagre-OKDRZEBW-Bc9qMT5q.js} +6 -6
- package/dist/{data-editor-Cqm6qMRU.js → data-editor-D1eQf5kE.js} +1 -1
- package/dist/{diagram-SSKATNLV-Du7Gya-t.js → diagram-SSKATNLV-DURGbyqn.js} +3 -3
- package/dist/{diagram-VNBRO52H-DBMh-7-v.js → diagram-VNBRO52H-qo9CfWcR.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-DRRtEb_G.js → erDiagram-Q7BY3M3F-BZLRC2tQ.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-BQhDiFYv.js → flowDiagram-4HSFHLVR-CaaAqjoV.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-DYa6qnBF.js → ganttDiagram-APWFNJXF-BHRPN2VL.js} +4 -4
- package/dist/{gitGraphDiagram-7IBYFJ6S-C_JYNYOo.js → gitGraphDiagram-7IBYFJ6S-CFYCI01-.js} +4 -4
- package/dist/{graph-CLwPZ35n.js → graph-UBHTKIUn.js} +8 -8
- package/dist/{index-DrV21G9H.js → index-BVPvMCc3.js} +1 -1
- package/dist/{index-Dmo-C_6C.js → index-BhAUklyK.js} +1 -1
- package/dist/{index-B3oJ4hob.js → index-CWF5BTPX.js} +4 -4
- package/dist/{index-DKxfHHGl.js → index-CjLs8Vld.js} +1 -1
- package/dist/{index-BZi1KcJI.js → index-DRVBjSAF.js} +11 -11
- package/dist/{index-f0fotJqb.js → index-DVDIra4X.js} +3 -3
- package/dist/{index-Bde0Lcl0.js → index-DY42QL75.js} +24 -24
- package/dist/{index-BBt-BURX.js → index-MHdDjhkz.js} +4 -4
- package/dist/{index-CuO8g0-v.js → index-NC3HuDi3.js} +3 -3
- package/dist/{index-BBCwJIuy.js → index-YvFl3gRv.js} +1 -1
- package/dist/{index-BQi0agW5.js → index-b3bFjwWg.js} +1 -1
- package/dist/{index-DqkKv7Vx.js → index-mf2rD1he.js} +4 -4
- package/dist/{index-v3aSQHFQ.js → index-rxYRgTJS.js} +3 -3
- package/dist/{index-CanMM2kj.js → index-sEW0Bts9.js} +1 -1
- package/dist/{index-CfBp6oNV.js → index-uqTLvWqV.js} +9 -9
- package/dist/{infoDiagram-PH2N3AL5-bQI8p-37.js → infoDiagram-PH2N3AL5-LXAXWQuF.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-CJ6Fty5F.js → journeyDiagram-U35MCT3I-_oIVrKK6.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-DzFqGOWc.js → kanban-definition-NDS4AKOZ-DAIBiY9_.js} +1 -1
- package/dist/{layout-BqyCRY5g.js → layout-CZpBPA1P.js} +69 -69
- package/dist/{linear-DpF-1NyL.js → linear-MrAzSNhR.js} +14 -14
- package/dist/{main-Bn8o8be2.js → main-O0XFPK9P.js} +34935 -34037
- package/dist/main.js +1 -1
- package/dist/{mermaid-BriLTSif.js → mermaid-CjGGWoaG.js} +28 -28
- package/dist/min-DldHHpO9.js +80 -0
- package/dist/{mindmap-definition-ALO5MXBD-CqDLBkAb.js → mindmap-definition-ALO5MXBD-ClyX92jW.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-BHF7MNxM.js → pieDiagram-IB7DONF6-B2PNZx4g.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-vzmw6r8F.js → quadrantDiagram-7GDLP6J5-CLjag61m.js} +2 -2
- package/dist/{radar-MK3ICKWK-xyRX9oDf.js → radar-MK3ICKWK-Bo2EOO9M.js} +5 -5
- package/dist/{react-plotly-6NxMRfgt.js → react-plotly-BZVTpy7N.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-329fjXNZ.js → requirementDiagram-KVF5MWMF-CtguYYs7.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-TGUsE6c5.js → sankeyDiagram-QLVOVGJD-Bi7VUD-7.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-By-M5fa8.js → sequenceDiagram-X6HHIX6F-D2FEumAq.js} +3 -3
- package/dist/{slides-component-W-4HnbQJ.js → slides-component-BmwxbiXu.js} +25 -25
- package/dist/{stateDiagram-DGXRK772-BS2Noz00.js → stateDiagram-DGXRK772-BtDK2TuI.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-D8VyUS8x.js → stateDiagram-v2-YXO3MK2T-CXRH3sBg.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-C6fSk9S5.js → time-kCRFu83n.js} +35 -35
- package/dist/{timeline-definition-BDJGKUSR-CnQ5ymP3.js → timeline-definition-BDJGKUSR-D78w9lXm.js} +1 -1
- package/dist/{vega-component-gKF1jbb0.js → vega-component-fzcUg9R7.js} +23 -23
- package/dist/{xychartDiagram-VJFVF3MP-C23jIf09.js → xychartDiagram-VJFVF3MP-Ba2Wkgso.js} +2 -2
- package/package.json +2 -2
- package/dist/min-C4qmZylr.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 A, r as ln, o as B, q as P, C as W, u as D, v as fn } from "./timer-ly3uOrxC.js";
|
|
2
|
+
import { c as on, a as hn } from "./linear-MrAzSNhR.js";
|
|
3
3
|
import { i as bn } from "./init-DxzjmxYy.js";
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
4
|
+
import { af as gn, ag as v, ah as d, ai as k, aj as x, ak as F, al as yn, am as L, an as H, ao as R, ap as pn, aq as mn, ar as wn, as as Mn, at as vn, au as dn, av as kn, aw as j, ax as K, ay as X, az as Z, aA as $, aB as E, aC as xn } from "./main-O0XFPK9P.js";
|
|
5
|
+
function Bn(n, t) {
|
|
6
6
|
let i;
|
|
7
7
|
if (t === void 0)
|
|
8
8
|
for (const e of n)
|
|
@@ -14,7 +14,7 @@ function Wn(n, t) {
|
|
|
14
14
|
}
|
|
15
15
|
return i;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function Pn(n, t) {
|
|
18
18
|
let i;
|
|
19
19
|
if (t === void 0)
|
|
20
20
|
for (const e of n)
|
|
@@ -28,10 +28,10 @@ function jn(n, t) {
|
|
|
28
28
|
}
|
|
29
29
|
function G(n, t, i, e, r, l) {
|
|
30
30
|
const s = [
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
31
|
+
[v, 1, d],
|
|
32
|
+
[v, 5, 5 * d],
|
|
33
|
+
[v, 15, 15 * d],
|
|
34
|
+
[v, 30, 30 * d],
|
|
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, H]
|
|
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(([, , C]) => C).right(s, f);
|
|
58
|
+
if (o === s.length) return n.every(R(u / H, c / H, 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 [Wn, jn] = G(kn, dn, vn, Mn, wn, mn), [Dn, Nn] = G(E, $, Z, X, K, j), In = Math.PI / 180, Cn = 180 / Math.PI, N = 18, J = 0.96422, O = 1, Q = 0.82521, U = 4 / 29, w = 6 / 29, V = 3 * w * w, Hn = 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 A || (n = ln(n));
|
|
70
|
+
var t = T(n.r), i = T(n.g), e = T(n.b), r = S((0.2225045 * t + 0.7168786 * i + 0.0606169 * e) / O), l, s;
|
|
71
|
+
return t === i && i === e ? l = s = r : (l = S((0.4360747 * t + 0.3850649 * i + 0.1430804 * e) / J), s = S((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 Sn(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
|
+
B(g, Sn, P(W, {
|
|
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 @@ W(g, Yn, j(A, {
|
|
|
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 * Y(t), n = O * Y(n), i = Q * Y(i), new A(
|
|
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 @@ W(g, Yn, j(A, {
|
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
}));
|
|
96
|
-
function
|
|
97
|
-
return n >
|
|
96
|
+
function S(n) {
|
|
97
|
+
return n > Hn ? Math.pow(n, 1 / 3) : n / V + U;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Y(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 Yn(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) * Cn;
|
|
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 ? Yn(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
|
+
B(p, q, P(W, {
|
|
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"), C = 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 ? C : 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, j, v, xn).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
180
180
|
}
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
Bn as a,
|
|
183
|
+
Wn as b,
|
|
184
184
|
en as c,
|
|
185
|
-
|
|
185
|
+
Cn as d,
|
|
186
186
|
q as e,
|
|
187
187
|
Xn as h,
|
|
188
188
|
Kn as i,
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
Sn as l,
|
|
190
|
+
Pn as m,
|
|
191
191
|
zn as n,
|
|
192
192
|
In as r,
|
|
193
193
|
Zn as t,
|
|
194
|
-
|
|
194
|
+
jn as u
|
|
195
195
|
};
|
package/dist/{timeline-definition-BDJGKUSR-CnQ5ymP3.js → timeline-definition-BDJGKUSR-D78w9lXm.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-CjGGWoaG.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,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as d, a as te } from "./VegaLite-
|
|
3
|
-
const
|
|
1
|
+
import { Z as I, _ as K, $ as z, a0 as R, a1 as G, a2 as W, S as f, a3 as $, Q as B, M as k, a4 as A, a5 as M, a6 as U, a7 as x, a8 as O, a9 as q, aa as Q, ab as Y, ac as J, ad as X, ae as ee } from "./main-O0XFPK9P.js";
|
|
2
|
+
import { M as d, a as te } from "./VegaLite-tMFU_PsN.js";
|
|
3
|
+
const j = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
4
4
|
getMarkType(e) {
|
|
5
5
|
const t = typeof e == "string" ? e : e.type;
|
|
6
|
-
if (
|
|
6
|
+
if (j.has(t))
|
|
7
7
|
throw new Error("Not supported");
|
|
8
8
|
return t;
|
|
9
9
|
},
|
|
10
10
|
isInteractive(e) {
|
|
11
11
|
const t = typeof e == "string" ? e : e.type;
|
|
12
|
-
return !
|
|
12
|
+
return !j.has(t);
|
|
13
13
|
},
|
|
14
14
|
makeClickable(e) {
|
|
15
15
|
const t = typeof e == "string" ? e : e.type;
|
|
@@ -105,7 +105,7 @@ const y = {
|
|
|
105
105
|
name: y.interval(t),
|
|
106
106
|
select: {
|
|
107
107
|
type: "interval",
|
|
108
|
-
encodings:
|
|
108
|
+
encodings: T(e),
|
|
109
109
|
mark: {
|
|
110
110
|
fill: "#669EFF",
|
|
111
111
|
fillOpacity: 0.07,
|
|
@@ -123,7 +123,7 @@ const y = {
|
|
|
123
123
|
name: y.point(t),
|
|
124
124
|
select: {
|
|
125
125
|
type: "point",
|
|
126
|
-
encodings:
|
|
126
|
+
encodings: T(e),
|
|
127
127
|
on: "click[!event.metaKey]"
|
|
128
128
|
}
|
|
129
129
|
};
|
|
@@ -151,7 +151,7 @@ const y = {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function T(e) {
|
|
155
155
|
switch (v.getMarkType(e.mark)) {
|
|
156
156
|
case d.image:
|
|
157
157
|
case d.trail:
|
|
@@ -373,7 +373,7 @@ function me(e, t) {
|
|
|
373
373
|
useProxy: !0
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
W("arrow", V);
|
|
377
377
|
const pe = (e) => {
|
|
378
378
|
const t = R.c(11), {
|
|
379
379
|
value: n,
|
|
@@ -387,7 +387,7 @@ const pe = (e) => {
|
|
|
387
387
|
const {
|
|
388
388
|
data: u,
|
|
389
389
|
error: i
|
|
390
|
-
} =
|
|
390
|
+
} = G(l, g);
|
|
391
391
|
if (i) {
|
|
392
392
|
let m;
|
|
393
393
|
return t[3] !== i ? (m = /* @__PURE__ */ f.jsx($, { error: i }), t[3] = i, t[4] = m) : m = t[4], m;
|
|
@@ -405,7 +405,7 @@ const pe = (e) => {
|
|
|
405
405
|
}) => {
|
|
406
406
|
const {
|
|
407
407
|
theme: a
|
|
408
|
-
} = B(), s = k.useRef(), [l, g] = k.useState(), u =
|
|
408
|
+
} = B(), s = k.useRef(), [l, g] = k.useState(), u = A(r), i = k.useMemo(() => ie(ce(u), {
|
|
409
409
|
chartSelection: n,
|
|
410
410
|
fieldSelection: o
|
|
411
411
|
}), [u, n, o]), h = k.useMemo(() => N(i), [i]), m = M((c) => {
|
|
@@ -413,19 +413,19 @@ const pe = (e) => {
|
|
|
413
413
|
...e,
|
|
414
414
|
...c
|
|
415
415
|
});
|
|
416
|
-
}),
|
|
417
|
-
x.debug("[Vega signal]", w,
|
|
418
|
-
let E =
|
|
419
|
-
E =
|
|
416
|
+
}), S = A(h), D = k.useMemo(() => S.reduce((c, p) => (y.PAN_ZOOM === p || (c[p] = U((w, _) => {
|
|
417
|
+
x.debug("[Vega signal]", w, _);
|
|
418
|
+
let E = O.mapValues(_, ge);
|
|
419
|
+
E = O.mapValues(E, he), m({
|
|
420
420
|
[w]: E
|
|
421
421
|
});
|
|
422
|
-
}, 100)), c), {}), [
|
|
422
|
+
}, 100)), c), {}), [S, m]), F = M((c) => {
|
|
423
423
|
x.error(c), x.debug(i), g(c);
|
|
424
|
-
}),
|
|
424
|
+
}), H = M((c) => {
|
|
425
425
|
x.debug("[Vega view] created", c), s.current = c, g(void 0);
|
|
426
426
|
}), Z = () => {
|
|
427
427
|
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(
|
|
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(X, { delayDuration: 300, side: "left", content: /* @__PURE__ */ f.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, w) => /* @__PURE__ */ f.jsxs("div", { children: [
|
|
429
429
|
/* @__PURE__ */ f.jsxs("span", { className: "font-bold tracking-wide", children: [
|
|
430
430
|
p[0],
|
|
431
431
|
":"
|
|
@@ -435,17 +435,17 @@ const pe = (e) => {
|
|
|
435
435
|
] }, w)) }), 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
436
|
};
|
|
437
437
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
438
|
-
l && /* @__PURE__ */ f.jsxs(
|
|
439
|
-
/* @__PURE__ */ f.jsx(
|
|
438
|
+
l && /* @__PURE__ */ f.jsxs(q, { variant: "destructive", children: [
|
|
439
|
+
/* @__PURE__ */ f.jsx(Q, { children: l.message }),
|
|
440
440
|
/* @__PURE__ */ f.jsx("div", { className: "text-md", children: l.stack })
|
|
441
441
|
] }),
|
|
442
442
|
/* @__PURE__ */ f.jsxs(
|
|
443
443
|
"div",
|
|
444
444
|
{
|
|
445
445
|
className: "relative",
|
|
446
|
-
onPointerDown:
|
|
446
|
+
onPointerDown: Y.stopPropagation(),
|
|
447
447
|
children: [
|
|
448
|
-
/* @__PURE__ */ f.jsx(te, { spec: i, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError:
|
|
448
|
+
/* @__PURE__ */ f.jsx(te, { spec: i, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError: F, onNewView: H }),
|
|
449
449
|
Z()
|
|
450
450
|
]
|
|
451
451
|
}
|
|
@@ -459,7 +459,7 @@ function he(e) {
|
|
|
459
459
|
return e instanceof Set ? [...e] : e;
|
|
460
460
|
}
|
|
461
461
|
function ge(e) {
|
|
462
|
-
return Array.isArray(e) ? e.map((t) => t instanceof Date &&
|
|
462
|
+
return Array.isArray(e) ? e.map((t) => t instanceof Date && J(t) ? new Date(t).getTime() : t) : e;
|
|
463
463
|
}
|
|
464
464
|
export {
|
|
465
465
|
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-CjGGWoaG.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-MrAzSNhR.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.12.
|
|
3
|
+
"version": "0.12.10-dev0",
|
|
4
4
|
"main": "dist/main.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@lezer/markdown": "^1.4.2",
|
|
44
44
|
"@lezer/python": "^1.1.17",
|
|
45
45
|
"@marimo-team/codemirror-ai": "^0.1.11",
|
|
46
|
-
"@marimo-team/codemirror-languageserver": "^1.15.
|
|
46
|
+
"@marimo-team/codemirror-languageserver": "^1.15.13",
|
|
47
47
|
"@marimo-team/marimo-api": "file:../openapi",
|
|
48
48
|
"@marimo-team/react-slotz": "^0.1.8",
|
|
49
49
|
"@open-rpc/client-js": "^1.8.1",
|
package/dist/min-C4qmZylr.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { w as b, ax as x, ay as m, az as w, aA as l, B as O, aB as p, aC as P, aD as A, aE as I, aF as M, aG as o } from "./main-Bn8o8be2.js";
|
|
2
|
-
import { d as h, e as y, g as E } from "./_baseUniq-CktgWkvY.js";
|
|
3
|
-
var g = Object.prototype, F = g.hasOwnProperty, J = 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 && x(n[0], n[1], t) && (i = 1); ++r < i; )
|
|
7
|
-
for (var s = n[r], e = m(s), f = -1, v = e.length; ++f < v; ) {
|
|
8
|
-
var u = e[f], d = a[u];
|
|
9
|
-
(d === void 0 || w(d, g[u]) && !F.call(a, u)) && (a[u] = s[u]);
|
|
10
|
-
}
|
|
11
|
-
return a;
|
|
12
|
-
});
|
|
13
|
-
function K(a) {
|
|
14
|
-
var n = a == null ? 0 : a.length;
|
|
15
|
-
return n ? a[n - 1] : void 0;
|
|
16
|
-
}
|
|
17
|
-
function B(a) {
|
|
18
|
-
return function(n, r, i) {
|
|
19
|
-
var t = Object(n);
|
|
20
|
-
if (!l(n)) {
|
|
21
|
-
var s = h(r);
|
|
22
|
-
n = O(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 C = Math.max;
|
|
31
|
-
function L(a, n, r) {
|
|
32
|
-
var i = a == null ? 0 : a.length;
|
|
33
|
-
if (!i)
|
|
34
|
-
return -1;
|
|
35
|
-
var t = r == null ? 0 : p(r);
|
|
36
|
-
return t < 0 && (t = C(i + t, 0)), y(a, h(n), t);
|
|
37
|
-
}
|
|
38
|
-
var N = B(L);
|
|
39
|
-
function $(a, n) {
|
|
40
|
-
var r = -1, i = l(a) ? Array(a.length) : [];
|
|
41
|
-
return E(a, function(t, s, e) {
|
|
42
|
-
i[++r] = n(t, s, e);
|
|
43
|
-
}), i;
|
|
44
|
-
}
|
|
45
|
-
function Q(a, n) {
|
|
46
|
-
var r = A(a) ? P : $;
|
|
47
|
-
return r(a, h(n));
|
|
48
|
-
}
|
|
49
|
-
var q = Object.prototype, z = q.hasOwnProperty;
|
|
50
|
-
function D(a, n) {
|
|
51
|
-
return a != null && z.call(a, n);
|
|
52
|
-
}
|
|
53
|
-
function T(a, n) {
|
|
54
|
-
return a != null && I(a, n, D);
|
|
55
|
-
}
|
|
56
|
-
function G(a, n) {
|
|
57
|
-
return a < n;
|
|
58
|
-
}
|
|
59
|
-
function H(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 && !M(e) : r(e, f)))
|
|
63
|
-
var f = e, v = s;
|
|
64
|
-
}
|
|
65
|
-
return v;
|
|
66
|
-
}
|
|
67
|
-
function U(a) {
|
|
68
|
-
return a && a.length ? H(a, o, G) : void 0;
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
G as a,
|
|
72
|
-
H as b,
|
|
73
|
-
$ as c,
|
|
74
|
-
U as d,
|
|
75
|
-
J as e,
|
|
76
|
-
N as f,
|
|
77
|
-
T as h,
|
|
78
|
-
K as l,
|
|
79
|
-
Q as m
|
|
80
|
-
};
|