@marimo-team/islands 0.13.16-dev1 → 0.13.16-dev100
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-C4lg6WvO.js → ConnectedDataExplorerComponent-vrARwYxE.js} +1651 -1653
- package/dist/ImageComparisonComponent-m9d4jyDR.js +248 -0
- package/dist/VegaLite-BM3pVXw2.js +36029 -0
- package/dist/{_baseUniq-CqHdJYki.js → _baseUniq-BKFPcxpI.js} +13 -13
- package/dist/any-language-editor-DoX-PQu0.js +45 -0
- package/dist/{architectureDiagram-IEHRJDOE-CJBt_cJx.js → architectureDiagram-IEHRJDOE-DbalWqMN.js} +1800 -1800
- package/dist/asn1-jKiBa2Ya.js +10 -10
- package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-CtVuV4Hi.js} +838 -844
- package/dist/assets/{worker-BGGm0KYZ.js → worker-BU1a2jgP.js} +866 -872
- package/dist/assets/{worker-BNsqBj5w.js → worker-Tb399Bgs.js} +3420 -3424
- package/dist/blockDiagram-JOT3LUYC-vxt9N4N0.js +2249 -0
- package/dist/{c4Diagram-VJAJSXHY-C-yy5YOk.js → c4Diagram-VJAJSXHY-DA924Uqr.js} +401 -400
- package/dist/{channel-nlDKUO5V.js → channel-BNFWU0qj.js} +1 -1
- package/dist/chunk-4BMEZGHF-D-kwEajx.js +9 -0
- package/dist/chunk-A2AXSNBT-mnA-dvyL.js +1373 -0
- package/dist/chunk-AEK57VVT-DfZ4LFZA.js +1416 -0
- package/dist/{chunk-D6G4REZN-DqBAgqjZ.js → chunk-D6G4REZN-DhzRGH5j.js} +2 -2
- package/dist/{chunk-RZ5BOZE2-CIuUvSxj.js → chunk-RZ5BOZE2-Df8bxccr.js} +8 -8
- package/dist/chunk-XZIHB7SX-DGGTR7BI.js +16 -0
- package/dist/{classDiagram-GIVACNV2-DZEBEdiS.js → classDiagram-GIVACNV2-BM7szU-p.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DZEBEdiS.js → classDiagram-v2-COTLJTTW-BM7szU-p.js} +2 -2
- package/dist/clojure-CCKyeQKf.js +2 -2
- package/dist/{clone-B6TsxdPq.js → clone-ChUTYvhR.js} +1 -1
- package/dist/css-bIlmDBTK.js +19 -19
- package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
- package/dist/dagre-OKDRZEBW-CGYLUe7b.js +447 -0
- package/dist/{data-editor-DcBCvQu_.js → data-editor-CqVMOKSx.js} +5785 -5795
- package/dist/{diagram-SSKATNLV-gHHGNb1o.js → diagram-SSKATNLV-INSQH2O3.js} +13 -13
- package/dist/{diagram-VNBRO52H-B8PrANsV.js → diagram-VNBRO52H-E2lgExBZ.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-BvXMy7ds.js → erDiagram-Q7BY3M3F-B9XVc4sN.js} +263 -262
- package/dist/flowDiagram-4HSFHLVR-BmDgLkBR.js +1623 -0
- package/dist/{ganttDiagram-APWFNJXF-CXvGZ1tB.js → ganttDiagram-APWFNJXF-xvOUnGih.js} +45 -45
- package/dist/gitGraphDiagram-7IBYFJ6S-BDNJD_4s.js +712 -0
- package/dist/{graph-CLTIT-rM.js → graph-B1kC92m3.js} +9 -9
- package/dist/{index-D918hshO.js → index-BeP8XLVf.js} +107 -106
- package/dist/{index-CFnbzzJT.js → index-BmgeA7zl.js} +4 -4
- package/dist/{index-C2y-wjw9.js → index-CVxbkLgR.js} +9 -9
- package/dist/{index-D4AyYSc-.js → index-DSZ4Bzcr.js} +28 -28
- package/dist/{infoDiagram-PH2N3AL5-C8wRTnZ3.js → infoDiagram-PH2N3AL5-DWUhqj86.js} +3 -3
- package/dist/javascript-WMWNx-Vj.js +47 -47
- package/dist/{journeyDiagram-U35MCT3I-Dt70xoNj.js → journeyDiagram-U35MCT3I-D-a9EVQW.js} +18 -18
- package/dist/kanban-definition-NDS4AKOZ-OWmu-q9c.js +719 -0
- package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
- package/dist/{layout-GgC31MfB.js → layout-CSpWapat.js} +27 -27
- package/dist/{linear-Bdn7-YnQ.js → linear-JNsJWFlM.js} +2 -2
- package/dist/main-CogZooDC.js +168224 -0
- package/dist/main.js +1 -1
- package/dist/mermaid-BSHpbWYL.js +14517 -0
- package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
- package/dist/{min-DEm-Bgo8.js → min-DJ8TFP7s.js} +2 -2
- package/dist/{mindmap-definition-ALO5MXBD-CnwLpJXd.js → mindmap-definition-ALO5MXBD-CD8BfQLX.js} +359 -359
- package/dist/mllike-BSnXJBGA.js +7 -7
- package/dist/{pieDiagram-IB7DONF6-BSVeFstR.js → pieDiagram-IB7DONF6-BcHbXepJ.js} +34 -34
- package/dist/pug-BqUR2bBq.js +35 -35
- package/dist/python-B5QdSKoL.js +18 -18
- package/dist/quadrantDiagram-7GDLP6J5-Ccdvm8Zt.js +1025 -0
- package/dist/{radar-MK3ICKWK-CE3UYlPE.js → radar-MK3ICKWK-apVjQGPF.js} +2555 -2554
- package/dist/{react-plotly-Dzix_ayx.js → react-plotly-Df98sQl5.js} +6595 -6597
- package/dist/{requirementDiagram-KVF5MWMF-Dr6JfEas.js → requirementDiagram-KVF5MWMF-CPe5eLDw.js} +251 -250
- package/dist/rpm-IznJm2Xc.js +9 -9
- package/dist/{sankeyDiagram-QLVOVGJD-VRJ-7td4.js → sankeyDiagram-QLVOVGJD-BinA8Lh3.js} +339 -338
- package/dist/{sequenceDiagram-X6HHIX6F-Dvd-1Hka.js → sequenceDiagram-X6HHIX6F-egi_2Zz-.js} +822 -821
- package/dist/{slides-component-2jiSuHN0.js → slides-component-Bw2PqiFj.js} +3231 -3231
- package/dist/sql-mMre1Bo3.js +9 -9
- package/dist/{stateDiagram-DGXRK772-C2H3qTjE.js → stateDiagram-DGXRK772-Ch4lb-af.js} +17 -17
- package/dist/{stateDiagram-v2-YXO3MK2T-wsWxga8R.js → stateDiagram-v2-YXO3MK2T-C4M8cpBt.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-COXzN_sj.js → time-DrIMyKm3.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-j48AuNW4.js → timeline-definition-BDJGKUSR-B8fhx1LZ.js} +261 -261
- package/dist/timer-BYwnU4DF.js +378 -378
- package/dist/ttcn-cfg-Bac_acMi.js +9 -9
- package/dist/{vega-component-DaS5RZh7.js → vega-component-CMWUi5AZ.js} +111 -111
- package/dist/{xychartDiagram-VJFVF3MP-DBxCy3z5.js → xychartDiagram-VJFVF3MP-DU4m5h5D.js} +472 -471
- package/package.json +26 -26
- package/dist/VegaLite-D5N6vx9w.js +0 -36326
- package/dist/any-language-editor-Wvx3toF4.js +0 -45
- package/dist/blockDiagram-JOT3LUYC-C2MVNwUw.js +0 -2248
- package/dist/chunk-4BMEZGHF-DXhrksbF.js +0 -9
- package/dist/chunk-A2AXSNBT-yapD4PZC.js +0 -1372
- package/dist/chunk-AEK57VVT-Cva-aSWE.js +0 -1415
- package/dist/chunk-XZIHB7SX-DtJFMI1l.js +0 -15
- package/dist/dagre-OKDRZEBW-C8AmO6Uf.js +0 -447
- package/dist/flowDiagram-4HSFHLVR-CdWDR3le.js +0 -1622
- package/dist/gitGraphDiagram-7IBYFJ6S-EppRhmRN.js +0 -712
- package/dist/kanban-definition-NDS4AKOZ-CGtT-Ej_.js +0 -719
- package/dist/main-mN5dINk1.js +0 -156522
- package/dist/mermaid-CakMewtQ.js +0 -11991
- package/dist/quadrantDiagram-7GDLP6J5-Dt2JAcYW.js +0 -1024
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function I(e) {
|
|
2
2
|
for (var n = {}, T = e.split(" "), E = 0; E < T.length; ++E)
|
|
3
|
-
n[T[E]] =
|
|
3
|
+
n[T[E]] = true;
|
|
4
4
|
return n;
|
|
5
5
|
}
|
|
6
6
|
const r = {
|
|
@@ -8,7 +8,7 @@ const r = {
|
|
|
8
8
|
fileNCtrlMaskOptions: I("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),
|
|
9
9
|
externalCommands: I("BeginControlPart EndControlPart BeginTestCase EndTestCase")
|
|
10
10
|
};
|
|
11
|
-
var A = r.keywords, U = r.fileNCtrlMaskOptions, R = r.externalCommands, S = r.indentStatements !==
|
|
11
|
+
var A = r.keywords, U = r.fileNCtrlMaskOptions, R = r.externalCommands, S = r.indentStatements !== false, O = /[\|]/, t;
|
|
12
12
|
function u(e, n) {
|
|
13
13
|
var T = e.next();
|
|
14
14
|
if (T == '"' || T == "'")
|
|
@@ -29,10 +29,10 @@ function u(e, n) {
|
|
|
29
29
|
}
|
|
30
30
|
function P(e) {
|
|
31
31
|
return function(n, T) {
|
|
32
|
-
for (var E =
|
|
32
|
+
for (var E = false, i, l = false; (i = n.next()) != null; ) {
|
|
33
33
|
if (i == e && !E) {
|
|
34
34
|
var C = n.peek();
|
|
35
|
-
C && (C = C.toLowerCase(), (C == "b" || C == "h" || C == "o") && n.next()), l =
|
|
35
|
+
C && (C = C.toLowerCase(), (C == "b" || C == "h" || C == "o") && n.next()), l = true;
|
|
36
36
|
break;
|
|
37
37
|
}
|
|
38
38
|
E = !E && i == "\\";
|
|
@@ -56,18 +56,18 @@ const L = {
|
|
|
56
56
|
startState: function() {
|
|
57
57
|
return {
|
|
58
58
|
tokenize: null,
|
|
59
|
-
context: new _(0, 0, "top",
|
|
59
|
+
context: new _(0, 0, "top", false),
|
|
60
60
|
indented: 0,
|
|
61
|
-
startOfLine:
|
|
61
|
+
startOfLine: true
|
|
62
62
|
};
|
|
63
63
|
},
|
|
64
64
|
token: function(e, n) {
|
|
65
65
|
var T = n.context;
|
|
66
|
-
if (e.sol() && (T.align == null && (T.align =
|
|
66
|
+
if (e.sol() && (T.align == null && (T.align = false), n.indented = e.indentation(), n.startOfLine = true), e.eatSpace()) return null;
|
|
67
67
|
t = null;
|
|
68
68
|
var E = (n.tokenize || u)(e, n);
|
|
69
69
|
if (E == "comment") return E;
|
|
70
|
-
if (T.align == null && (T.align =
|
|
70
|
+
if (T.align == null && (T.align = true), (t == ";" || t == ":" || t == ",") && T.type == "statement")
|
|
71
71
|
o(n);
|
|
72
72
|
else if (t == "{") N(n, e.column(), "}");
|
|
73
73
|
else if (t == "[") N(n, e.column(), "]");
|
|
@@ -76,7 +76,7 @@ const L = {
|
|
|
76
76
|
for (; T.type == "statement"; ) T = o(n);
|
|
77
77
|
for (T.type == "}" && (T = o(n)); T.type == "statement"; ) T = o(n);
|
|
78
78
|
} else t == T.type ? o(n) : S && ((T.type == "}" || T.type == "top") && t != ";" || T.type == "statement" && t == "newstatement") && N(n, e.column(), "statement");
|
|
79
|
-
return n.startOfLine =
|
|
79
|
+
return n.startOfLine = false, E;
|
|
80
80
|
},
|
|
81
81
|
languageData: {
|
|
82
82
|
indentOnInput: /^\s*[{}]$/,
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import { T as I, U as K, V as z,
|
|
2
|
-
import { M as
|
|
1
|
+
import { T as I, U as K, V as z, c as R, W, X as G, j as d, E as $, J as B, F as w, Y as A, Z as M, _ as U, L as x, $ as O, a0 as Y, a1 as q, a2 as J, a3 as X, a4 as Q, a5 as ee } from "./main-CogZooDC.js";
|
|
2
|
+
import { M as m, a as te } from "./VegaLite-BM3pVXw2.js";
|
|
3
|
+
function ne(e) {
|
|
4
|
+
return e.data && "url" in e.data && (e.data.url = I(e.data.url).href), e;
|
|
5
|
+
}
|
|
6
|
+
function N(e) {
|
|
7
|
+
function t(n) {
|
|
8
|
+
return !!(n == null ? void 0 : n.schema) && Array.isArray(n.schema.fields) && typeof n.toArray == "function";
|
|
9
|
+
}
|
|
10
|
+
return (t(e) ? e : re(e)).toArray();
|
|
11
|
+
}
|
|
12
|
+
N.responseType = "arrayBuffer";
|
|
13
|
+
function re(e, t) {
|
|
14
|
+
return K(e, {
|
|
15
|
+
useProxy: true
|
|
16
|
+
});
|
|
17
|
+
}
|
|
3
18
|
const S = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
4
19
|
getMarkType(e) {
|
|
5
20
|
const t = typeof e == "string" ? e : e.type;
|
|
@@ -13,22 +28,22 @@ const S = /* @__PURE__ */ new Set(["boxplot", "errorband", "errorbar"]), v = {
|
|
|
13
28
|
},
|
|
14
29
|
makeClickable(e) {
|
|
15
30
|
const t = typeof e == "string" ? e : e.type;
|
|
16
|
-
return t in
|
|
31
|
+
return t in m ? typeof e == "string" ? {
|
|
17
32
|
type: e,
|
|
18
33
|
cursor: "pointer",
|
|
19
|
-
tooltip:
|
|
34
|
+
tooltip: true
|
|
20
35
|
} : {
|
|
21
36
|
...e,
|
|
22
37
|
type: t,
|
|
23
38
|
cursor: "pointer",
|
|
24
|
-
tooltip:
|
|
39
|
+
tooltip: true
|
|
25
40
|
} : e;
|
|
26
41
|
},
|
|
27
42
|
getOpacity(e) {
|
|
28
43
|
return typeof e == "string" ? null : "opacity" in e && typeof e.opacity == "number" ? e.opacity : null;
|
|
29
44
|
}
|
|
30
45
|
};
|
|
31
|
-
function
|
|
46
|
+
function ae(e) {
|
|
32
47
|
if (!e || !("encoding" in e))
|
|
33
48
|
return [];
|
|
34
49
|
const {
|
|
@@ -36,11 +51,11 @@ function ne(e) {
|
|
|
36
51
|
} = e;
|
|
37
52
|
return t ? Object.entries(t).flatMap((o) => {
|
|
38
53
|
const [r, a] = o;
|
|
39
|
-
return a ?
|
|
54
|
+
return a ? oe.has(r) ? "field" in a && typeof a.field == "string" ? [a.field] : "condition" in a && a.condition && typeof a.condition == "object" && "field" in a.condition && a.condition.field && typeof a.condition.field == "string" ? [a.condition.field] : [] : [] : [];
|
|
40
55
|
}) : [];
|
|
41
56
|
}
|
|
42
|
-
const
|
|
43
|
-
function
|
|
57
|
+
const oe = /* @__PURE__ */ new Set(["color", "fill", "fillOpacity", "opacity", "shape", "size"]);
|
|
58
|
+
function ie(e, t, n, o) {
|
|
44
59
|
const r = {
|
|
45
60
|
and: n.map((a) => ({
|
|
46
61
|
param: a
|
|
@@ -66,7 +81,7 @@ function ae(e, t, n, o) {
|
|
|
66
81
|
return t;
|
|
67
82
|
}
|
|
68
83
|
}
|
|
69
|
-
const
|
|
84
|
+
const g = {
|
|
70
85
|
point(e) {
|
|
71
86
|
return e == null ? "select_point" : `select_point_${e}`;
|
|
72
87
|
},
|
|
@@ -93,7 +108,7 @@ const y = {
|
|
|
93
108
|
}, b = {
|
|
94
109
|
highlight() {
|
|
95
110
|
return {
|
|
96
|
-
name:
|
|
111
|
+
name: g.HIGHLIGHT,
|
|
97
112
|
select: {
|
|
98
113
|
type: "point",
|
|
99
114
|
on: "mouseover"
|
|
@@ -102,7 +117,7 @@ const y = {
|
|
|
102
117
|
},
|
|
103
118
|
interval(e, t) {
|
|
104
119
|
return {
|
|
105
|
-
name:
|
|
120
|
+
name: g.interval(t),
|
|
106
121
|
select: {
|
|
107
122
|
type: "interval",
|
|
108
123
|
encodings: L(e),
|
|
@@ -120,7 +135,7 @@ const y = {
|
|
|
120
135
|
},
|
|
121
136
|
point(e, t) {
|
|
122
137
|
return {
|
|
123
|
-
name:
|
|
138
|
+
name: g.point(t),
|
|
124
139
|
select: {
|
|
125
140
|
type: "point",
|
|
126
141
|
encodings: L(e),
|
|
@@ -130,7 +145,7 @@ const y = {
|
|
|
130
145
|
},
|
|
131
146
|
legend(e) {
|
|
132
147
|
return {
|
|
133
|
-
name:
|
|
148
|
+
name: g.legendSelection(e),
|
|
134
149
|
select: {
|
|
135
150
|
type: "point",
|
|
136
151
|
fields: [e]
|
|
@@ -140,7 +155,7 @@ const y = {
|
|
|
140
155
|
},
|
|
141
156
|
panZoom() {
|
|
142
157
|
return {
|
|
143
|
-
name:
|
|
158
|
+
name: g.PAN_ZOOM,
|
|
144
159
|
bind: "scales",
|
|
145
160
|
select: {
|
|
146
161
|
type: "interval",
|
|
@@ -153,36 +168,36 @@ const y = {
|
|
|
153
168
|
};
|
|
154
169
|
function L(e) {
|
|
155
170
|
switch (v.getMarkType(e.mark)) {
|
|
156
|
-
case
|
|
157
|
-
case
|
|
171
|
+
case m.image:
|
|
172
|
+
case m.trail:
|
|
158
173
|
return;
|
|
159
|
-
case
|
|
160
|
-
case
|
|
174
|
+
case m.area:
|
|
175
|
+
case m.arc:
|
|
161
176
|
return ["color"];
|
|
162
|
-
case
|
|
163
|
-
const n =
|
|
177
|
+
case m.bar: {
|
|
178
|
+
const n = se(e);
|
|
164
179
|
return n === "horizontal" ? ["y"] : n === "vertical" ? ["x"] : void 0;
|
|
165
180
|
}
|
|
166
|
-
case
|
|
167
|
-
case
|
|
168
|
-
case
|
|
169
|
-
case
|
|
170
|
-
case
|
|
171
|
-
case
|
|
172
|
-
case
|
|
173
|
-
case
|
|
174
|
-
case
|
|
181
|
+
case m.circle:
|
|
182
|
+
case m.geoshape:
|
|
183
|
+
case m.line:
|
|
184
|
+
case m.point:
|
|
185
|
+
case m.rect:
|
|
186
|
+
case m.rule:
|
|
187
|
+
case m.square:
|
|
188
|
+
case m.text:
|
|
189
|
+
case m.tick:
|
|
175
190
|
return ["x", "y"];
|
|
176
191
|
}
|
|
177
192
|
}
|
|
178
|
-
function
|
|
179
|
-
return "params" in e && e.params && e.params.length > 0 ? e.params.filter((n) => n == null ?
|
|
193
|
+
function V(e) {
|
|
194
|
+
return "params" in e && e.params && e.params.length > 0 ? e.params.filter((n) => n == null ? false : "select" in n && n.select !== void 0).map((n) => n.name) : "layer" in e ? [...new Set(e.layer.flatMap(V))] : [];
|
|
180
195
|
}
|
|
181
|
-
function
|
|
182
|
-
var
|
|
196
|
+
function se(e) {
|
|
197
|
+
var _a, _b;
|
|
183
198
|
if (!e || !("mark" in e))
|
|
184
199
|
return;
|
|
185
|
-
const t = (
|
|
200
|
+
const t = (_a = e.encoding) == null ? void 0 : _a.x, n = (_b = e.encoding) == null ? void 0 : _b.y;
|
|
186
201
|
if (t && "type" in t && t.type === "nominal")
|
|
187
202
|
return "vertical";
|
|
188
203
|
if (n && "type" in n && n.type === "nominal" || t && "aggregate" in t)
|
|
@@ -190,49 +205,49 @@ function oe(e) {
|
|
|
190
205
|
if (n && "aggregate" in n)
|
|
191
206
|
return "vertical";
|
|
192
207
|
}
|
|
193
|
-
function
|
|
194
|
-
var
|
|
208
|
+
function le(e, t) {
|
|
209
|
+
var _a, _b;
|
|
195
210
|
let {
|
|
196
|
-
chartSelection: n =
|
|
197
|
-
fieldSelection: o =
|
|
211
|
+
chartSelection: n = true,
|
|
212
|
+
fieldSelection: o = true
|
|
198
213
|
} = t;
|
|
199
214
|
if (!n && !o)
|
|
200
215
|
return e;
|
|
201
|
-
if (((
|
|
202
|
-
const
|
|
216
|
+
if (((_a = e.params) == null ? void 0 : _a.some((i) => i.bind === "legend")) && (o = false), ((_b = e.params) == null ? void 0 : _b.some((i) => !i.bind)) && (n = false), "vconcat" in e) {
|
|
217
|
+
const i = e.vconcat.map((l) => "mark" in l ? P(l) : l);
|
|
203
218
|
return {
|
|
204
219
|
...e,
|
|
205
|
-
vconcat:
|
|
220
|
+
vconcat: i
|
|
206
221
|
};
|
|
207
222
|
}
|
|
208
223
|
if ("hconcat" in e) {
|
|
209
|
-
const
|
|
224
|
+
const i = e.hconcat.map((l) => "mark" in l ? P(l) : l);
|
|
210
225
|
return {
|
|
211
226
|
...e,
|
|
212
|
-
hconcat:
|
|
227
|
+
hconcat: i
|
|
213
228
|
};
|
|
214
229
|
}
|
|
215
230
|
if ("layer" in e) {
|
|
216
|
-
const
|
|
217
|
-
if (!("mark" in
|
|
218
|
-
return
|
|
219
|
-
let
|
|
220
|
-
return
|
|
231
|
+
const i = e.layer.map((l, f) => {
|
|
232
|
+
if (!("mark" in l))
|
|
233
|
+
return l;
|
|
234
|
+
let u = l;
|
|
235
|
+
return u = T(u, n, f), u = P(u), f === 0 && (u = C(u)), u;
|
|
221
236
|
});
|
|
222
237
|
return {
|
|
223
238
|
...e,
|
|
224
|
-
layer:
|
|
239
|
+
layer: i
|
|
225
240
|
};
|
|
226
241
|
}
|
|
227
242
|
if (!("mark" in e) || !v.isInteractive(e.mark))
|
|
228
243
|
return e;
|
|
229
244
|
let s = e;
|
|
230
|
-
return s =
|
|
245
|
+
return s = ce(s, o), s = T(s, n, void 0), s = P(s), s = C(s), s;
|
|
231
246
|
}
|
|
232
|
-
function
|
|
233
|
-
if (t ===
|
|
247
|
+
function ce(e, t) {
|
|
248
|
+
if (t === false)
|
|
234
249
|
return e;
|
|
235
|
-
let n =
|
|
250
|
+
let n = ae(e);
|
|
236
251
|
Array.isArray(t) && (n = n.filter((a) => t.includes(a)));
|
|
237
252
|
const o = n.map((a) => b.legend(a)), r = [...e.params || [], ...o];
|
|
238
253
|
return {
|
|
@@ -241,7 +256,7 @@ function se(e, t) {
|
|
|
241
256
|
};
|
|
242
257
|
}
|
|
243
258
|
function T(e, t, n) {
|
|
244
|
-
if (t ===
|
|
259
|
+
if (t === false)
|
|
245
260
|
return e;
|
|
246
261
|
let o;
|
|
247
262
|
try {
|
|
@@ -251,10 +266,10 @@ function T(e, t, n) {
|
|
|
251
266
|
}
|
|
252
267
|
if (o === "geoshape")
|
|
253
268
|
return e;
|
|
254
|
-
const r = t ===
|
|
269
|
+
const r = t === true ? ue(o) : [t];
|
|
255
270
|
if (!r)
|
|
256
271
|
return e;
|
|
257
|
-
const a = r.map((
|
|
272
|
+
const a = r.map((i) => i === "interval" ? b.interval(e, n) : b.point(e, n)), s = [...e.params || [], ...a];
|
|
258
273
|
return {
|
|
259
274
|
...e,
|
|
260
275
|
params: s
|
|
@@ -279,10 +294,10 @@ function P(e) {
|
|
|
279
294
|
return n.length === 0 || !v.isInteractive(e.mark) ? e : {
|
|
280
295
|
...e,
|
|
281
296
|
mark: v.makeClickable(e.mark),
|
|
282
|
-
encoding:
|
|
297
|
+
encoding: ie("opacity", t || {}, o, e.mark)
|
|
283
298
|
};
|
|
284
299
|
}
|
|
285
|
-
function
|
|
300
|
+
function ue(e) {
|
|
286
301
|
switch (e) {
|
|
287
302
|
case "arc":
|
|
288
303
|
case "area":
|
|
@@ -297,10 +312,7 @@ function le(e) {
|
|
|
297
312
|
return ["point", "interval"];
|
|
298
313
|
}
|
|
299
314
|
}
|
|
300
|
-
function
|
|
301
|
-
return e.data && "url" in e.data && (e.data.url = I(e.data.url).href), e;
|
|
302
|
-
}
|
|
303
|
-
async function ue(e) {
|
|
315
|
+
async function me(e) {
|
|
304
316
|
if (!e)
|
|
305
317
|
return e;
|
|
306
318
|
const t = "datasets" in e ? {
|
|
@@ -309,24 +321,24 @@ async function ue(e) {
|
|
|
309
321
|
if (!r)
|
|
310
322
|
return r;
|
|
311
323
|
if ("layer" in r) {
|
|
312
|
-
const
|
|
324
|
+
const i = await Promise.all(r.layer.map(n));
|
|
313
325
|
r = {
|
|
314
326
|
...r,
|
|
315
|
-
layer:
|
|
327
|
+
layer: i
|
|
316
328
|
};
|
|
317
329
|
}
|
|
318
330
|
if ("hconcat" in r) {
|
|
319
|
-
const
|
|
331
|
+
const i = await Promise.all(r.hconcat.map(n));
|
|
320
332
|
r = {
|
|
321
333
|
...r,
|
|
322
|
-
hconcat:
|
|
334
|
+
hconcat: i
|
|
323
335
|
};
|
|
324
336
|
}
|
|
325
337
|
if ("vconcat" in r) {
|
|
326
|
-
const
|
|
338
|
+
const i = await Promise.all(r.vconcat.map(n));
|
|
327
339
|
r = {
|
|
328
340
|
...r,
|
|
329
|
-
vconcat:
|
|
341
|
+
vconcat: i
|
|
330
342
|
};
|
|
331
343
|
}
|
|
332
344
|
if ("spec" in r && (r = {
|
|
@@ -340,7 +352,7 @@ async function ue(e) {
|
|
|
340
352
|
} catch {
|
|
341
353
|
return r;
|
|
342
354
|
}
|
|
343
|
-
const s = await
|
|
355
|
+
const s = await z(a.href, r.data.format);
|
|
344
356
|
return t[a.pathname] = s, {
|
|
345
357
|
...r,
|
|
346
358
|
data: {
|
|
@@ -353,19 +365,7 @@ async function ue(e) {
|
|
|
353
365
|
datasets: t
|
|
354
366
|
};
|
|
355
367
|
}
|
|
356
|
-
|
|
357
|
-
function t(n) {
|
|
358
|
-
return !!(n != null && n.schema) && Array.isArray(n.schema.fields) && typeof n.toArray == "function";
|
|
359
|
-
}
|
|
360
|
-
return (t(e) ? e : me(e)).toArray();
|
|
361
|
-
}
|
|
362
|
-
V.responseType = "arrayBuffer";
|
|
363
|
-
function me(e, t) {
|
|
364
|
-
return z(e, {
|
|
365
|
-
useProxy: !0
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
G("arrow", V);
|
|
368
|
+
G("arrow", N);
|
|
369
369
|
const pe = (e) => {
|
|
370
370
|
const t = R.c(11), {
|
|
371
371
|
value: n,
|
|
@@ -374,20 +374,20 @@ const pe = (e) => {
|
|
|
374
374
|
fieldSelection: a,
|
|
375
375
|
spec: s
|
|
376
376
|
} = e;
|
|
377
|
-
let
|
|
378
|
-
t[0] !== s ? (
|
|
377
|
+
let i, l;
|
|
378
|
+
t[0] !== s ? (i = async () => me(s), l = [s], t[0] = s, t[1] = i, t[2] = l) : (i = t[1], l = t[2]);
|
|
379
379
|
const {
|
|
380
|
-
data:
|
|
381
|
-
error:
|
|
382
|
-
} = W(
|
|
383
|
-
if (
|
|
384
|
-
let
|
|
385
|
-
return t[3] !==
|
|
380
|
+
data: f,
|
|
381
|
+
error: u
|
|
382
|
+
} = W(i, l);
|
|
383
|
+
if (u) {
|
|
384
|
+
let y;
|
|
385
|
+
return t[3] !== u ? (y = /* @__PURE__ */ d.jsx($, { error: u }), t[3] = u, t[4] = y) : y = t[4], y;
|
|
386
386
|
}
|
|
387
|
-
if (!
|
|
387
|
+
if (!f)
|
|
388
388
|
return null;
|
|
389
389
|
let h;
|
|
390
|
-
return t[5] !== r || t[6] !== a || t[7] !==
|
|
390
|
+
return t[5] !== r || t[6] !== a || t[7] !== f || t[8] !== o || t[9] !== n ? (h = /* @__PURE__ */ d.jsx(de, { value: n, setValue: o, chartSelection: r, fieldSelection: a, spec: f }), t[5] = r, t[6] = a, t[7] = f, t[8] = o, t[9] = n, t[10] = h) : h = t[10], h;
|
|
391
391
|
}, de = ({
|
|
392
392
|
value: e,
|
|
393
393
|
setValue: t,
|
|
@@ -397,55 +397,55 @@ const pe = (e) => {
|
|
|
397
397
|
}) => {
|
|
398
398
|
const {
|
|
399
399
|
theme: a
|
|
400
|
-
} = B(), s = w.useRef(), [
|
|
400
|
+
} = B(), s = w.useRef(void 0), [i, l] = w.useState(), f = A(r), u = w.useMemo(() => le(ne(f), {
|
|
401
401
|
chartSelection: n,
|
|
402
402
|
fieldSelection: o
|
|
403
|
-
}), [
|
|
403
|
+
}), [f, n, o]), h = w.useMemo(() => V(u), [u]), y = M((c) => {
|
|
404
404
|
t({
|
|
405
405
|
...e,
|
|
406
406
|
...c
|
|
407
407
|
});
|
|
408
|
-
}), _ = A(h), D = w.useMemo(() => _.reduce((c, p) => (
|
|
408
|
+
}), _ = A(h), D = w.useMemo(() => _.reduce((c, p) => (g.PAN_ZOOM === p || (c[p] = U((k, j) => {
|
|
409
409
|
x.debug("[Vega signal]", k, j);
|
|
410
410
|
let E = O.mapValues(j, ge);
|
|
411
|
-
E = O.mapValues(E, he),
|
|
411
|
+
E = O.mapValues(E, he), y({
|
|
412
412
|
[k]: E
|
|
413
413
|
});
|
|
414
|
-
}, 100)), c), {}), [_,
|
|
415
|
-
x.error(c), x.debug(
|
|
414
|
+
}, 100)), c), {}), [_, y]), F = M((c) => {
|
|
415
|
+
x.error(c), x.debug(u), l(c);
|
|
416
416
|
}), H = M((c) => {
|
|
417
|
-
x.debug("[Vega view] created", c), s.current = c,
|
|
417
|
+
x.debug("[Vega view] created", c), s.current = c, l(void 0);
|
|
418
418
|
}), Z = () => {
|
|
419
419
|
const c = [];
|
|
420
|
-
return
|
|
421
|
-
/* @__PURE__ */
|
|
420
|
+
return g.hasPoint(h) && c.push(["Point selection", "click to select a point; hold shift for multi-select"]), g.hasInterval(h) && c.push(["Interval selection", "click and drag to select an interval"]), g.hasLegend(h) && c.push(["Legend selection", "click to select a legend item; hold shift for multi-select"]), g.hasPanZoom(h) && c.push(["Pan", "hold the meta key and drag"], ["Zoom", "hold the meta key and scroll"]), c.length === 0 ? null : /* @__PURE__ */ d.jsx(Q, { delayDuration: 300, side: "left", content: /* @__PURE__ */ d.jsx("div", { className: "text-xs flex flex-col", children: c.map((p, k) => /* @__PURE__ */ d.jsxs("div", { children: [
|
|
421
|
+
/* @__PURE__ */ d.jsxs("span", { className: "font-bold tracking-wide", children: [
|
|
422
422
|
p[0],
|
|
423
423
|
":"
|
|
424
424
|
] }),
|
|
425
425
|
" ",
|
|
426
426
|
p[1]
|
|
427
|
-
] }, k)) }), children: /* @__PURE__ */
|
|
427
|
+
] }, k)) }), children: /* @__PURE__ */ d.jsx(ee, { className: "absolute bottom-1 right-0 m-2 h-4 w-4 cursor-help text-muted-foreground hover:text-foreground" }) });
|
|
428
428
|
};
|
|
429
|
-
return /* @__PURE__ */
|
|
430
|
-
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
/* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
430
|
+
i && /* @__PURE__ */ d.jsxs(Y, { variant: "destructive", children: [
|
|
431
|
+
/* @__PURE__ */ d.jsx(q, { children: i.message }),
|
|
432
|
+
/* @__PURE__ */ d.jsx("div", { className: "text-md", children: i.stack })
|
|
433
433
|
] }),
|
|
434
|
-
/* @__PURE__ */
|
|
434
|
+
/* @__PURE__ */ d.jsxs(
|
|
435
435
|
"div",
|
|
436
436
|
{
|
|
437
437
|
className: "relative",
|
|
438
438
|
onPointerDown: J.stopPropagation(),
|
|
439
439
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ d.jsx(te, { spec: u, theme: a === "dark" ? "dark" : void 0, actions: fe, signalListeners: D, onError: F, onNewView: H }),
|
|
441
441
|
Z()
|
|
442
442
|
]
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
] });
|
|
446
446
|
}, fe = {
|
|
447
|
-
source:
|
|
448
|
-
compiled:
|
|
447
|
+
source: false,
|
|
448
|
+
compiled: false
|
|
449
449
|
};
|
|
450
450
|
function he(e) {
|
|
451
451
|
return e instanceof Set ? [...e] : e;
|