@genome-spy/app 0.81.0 → 0.83.0
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/agentApi-DHx9prKj.js +26038 -0
- package/dist/agentApi.es.js +2974 -2581
- package/dist/agentShared.es.js +18 -17
- package/dist/{componentStyles-BGy033io.js → componentStyles-BzJWWojD.js} +3 -3
- package/dist/{debug-D8J70fYe.js → debug-CI7POTMx.js} +2 -2
- package/dist/{debug-jlJzKBR-.js → debug-DJKug_38.js} +1 -1
- package/dist/dialog.es.js +1 -1
- package/dist/{esm-BNd2PfFt.js → esm-BeV56E_5.js} +1 -1
- package/dist/{esm-Cx-EbkOj.js → esm-CGLz7idZ.js} +423 -426
- package/dist/{esm-CWd6i_cL.js → esm-D8vvQAP3.js} +1 -1
- package/dist/{esm-Bn4VTHqw.js → esm-DQ3lJSQN.js} +1 -1
- package/dist/{esm-k9p3oHkt.js → esm-lwYrRdbg.js} +65 -67
- package/dist/index.es.js +10528 -36038
- package/dist/index.js +468 -423
- package/dist/metadataChannels-fGQOmJj0.js +6732 -0
- package/dist/{parquetRead-CBUyqZwZ.js → parquetRead-Cs2xRrvz.js} +1 -1
- package/dist/schema.json +1862 -82
- package/dist/src-DjOlFqSn.js +1157 -0
- package/dist/{viewIdentityRegistry-DuZgd_T3.js → viewIdentityRegistry-CcQdL0Z8.js} +1 -1
- package/dist/{viewIdentityRegistry-DLQWeb1Y.js → viewIdentityRegistry-EH5-Noyz.js} +3558 -3531
- package/dist/viewUtils-DP0AcPCi.js +9081 -0
- package/package.json +5 -5
- package/dist/viewUtils-ChwePFhK.js +0 -15661
package/dist/agentShared.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-DF993M8W.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
2
|
+
import { B as t, F as n, I as r, L as i, M as a, N as o, P as s, R as c, V as l, Z as u, et as d, i as f, s as p, tt as m } from "./viewUtils-DP0AcPCi.js";
|
|
3
|
+
import { a as h, h as g, it as _, k as v, n as y, s as b } from "./metadataChannels-fGQOmJj0.js";
|
|
4
|
+
import { n as x, t as S } from "./componentStyles-BzJWWojD.js";
|
|
4
5
|
//#region src/viewScopeUtils.js
|
|
5
6
|
function C(e, t) {
|
|
6
7
|
return !w(e, t.param) || !Array.isArray(t.scope) || t.scope.length === 0 ? t.param : t.scope.join("/") + "/" + t.param;
|
|
@@ -8,7 +9,7 @@ function C(e, t) {
|
|
|
8
9
|
function w(e, t) {
|
|
9
10
|
if (!e || typeof e.visit != "function") return !1;
|
|
10
11
|
let n = 0;
|
|
11
|
-
for (let r of
|
|
12
|
+
for (let r of y(e)) r.selector.param === t && (n += 1);
|
|
12
13
|
return n > 1;
|
|
13
14
|
}
|
|
14
15
|
//#endregion
|
|
@@ -35,11 +36,11 @@ function D(e) {
|
|
|
35
36
|
//#region src/sampleView/viewRef.js
|
|
36
37
|
function O(e) {
|
|
37
38
|
if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
|
|
38
|
-
return
|
|
39
|
+
return h(e);
|
|
39
40
|
}
|
|
40
41
|
function k(e) {
|
|
41
42
|
if (!e.explicitName) return;
|
|
42
|
-
let t =
|
|
43
|
+
let t = h(e);
|
|
43
44
|
return JSON.stringify({
|
|
44
45
|
s: t.scope,
|
|
45
46
|
v: t.view
|
|
@@ -47,7 +48,7 @@ function k(e) {
|
|
|
47
48
|
}
|
|
48
49
|
function A(e) {
|
|
49
50
|
let t = /* @__PURE__ */ new Map();
|
|
50
|
-
|
|
51
|
+
g(e, (e) => {
|
|
51
52
|
let n = k(e);
|
|
52
53
|
n && t.set(n, (t.get(n) ?? 0) + 1);
|
|
53
54
|
});
|
|
@@ -69,7 +70,7 @@ function N(e, t, n) {
|
|
|
69
70
|
if (n) try {
|
|
70
71
|
let t = [];
|
|
71
72
|
e.visit((e) => {
|
|
72
|
-
e instanceof
|
|
73
|
+
e instanceof p && e.isVisible() && ne(e, r) && t.push(e);
|
|
73
74
|
});
|
|
74
75
|
for (let e of t) {
|
|
75
76
|
let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
|
|
@@ -159,8 +160,8 @@ function ne(e, t) {
|
|
|
159
160
|
}
|
|
160
161
|
function re(e) {
|
|
161
162
|
if (e.view.getEncoding()?.x2) return !0;
|
|
162
|
-
let
|
|
163
|
-
return
|
|
163
|
+
let t = e.view.getScaleResolution("x")?.getScale()?.type;
|
|
164
|
+
return t ? _(t) : !1;
|
|
164
165
|
}
|
|
165
166
|
function ie(e) {
|
|
166
167
|
return e === "quantitative" ? M : ee;
|
|
@@ -191,16 +192,16 @@ function ce({ viewSelector: e, field: t, selectionSelector: n, aggregation: r, f
|
|
|
191
192
|
}
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
|
-
var le =
|
|
195
|
+
var le = m({
|
|
195
196
|
name: "paramProvenance",
|
|
196
197
|
initialState: { entries: {} },
|
|
197
198
|
reducers: {
|
|
198
199
|
paramChange: (e, t) => {
|
|
199
|
-
let n =
|
|
200
|
+
let n = b(t.payload.selector);
|
|
200
201
|
e.entries[n] = t.payload;
|
|
201
202
|
},
|
|
202
203
|
expandPointSelection: (e, t) => {
|
|
203
|
-
let n = t.payload, r =
|
|
204
|
+
let n = t.payload, r = b(n.selector), i;
|
|
204
205
|
if ("rule" in n && n.rule) i = { rule: n.rule };
|
|
205
206
|
else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
|
|
206
207
|
else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
|
|
@@ -4714,8 +4715,8 @@ function Gn(e, t, n) {
|
|
|
4714
4715
|
function Kn(e, t = {}) {
|
|
4715
4716
|
let n = Gn(e), r = new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>${n}</div></body></html>`, "text/html");
|
|
4716
4717
|
r.normalize(), qn(r.body);
|
|
4717
|
-
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href",
|
|
4718
|
-
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src",
|
|
4718
|
+
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href", v(e.getAttribute("href"), t.baseUrl));
|
|
4719
|
+
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src", v(e.getAttribute("src"), t.baseUrl));
|
|
4719
4720
|
let i = r.body.removeChild(r.querySelector("body > div"));
|
|
4720
4721
|
return i.className = "markdown", i;
|
|
4721
4722
|
}
|
|
@@ -4732,10 +4733,10 @@ function qn(e) {
|
|
|
4732
4733
|
//#endregion
|
|
4733
4734
|
//#region src/agentShared/index.js
|
|
4734
4735
|
function Jn(e) {
|
|
4735
|
-
if (e.startsWith("sampleView/")) return
|
|
4736
|
+
if (e.startsWith("sampleView/")) return t.actions[e.slice(11)];
|
|
4736
4737
|
if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
|
|
4737
|
-
if (e.startsWith("viewSettings/")) return
|
|
4738
|
+
if (e.startsWith("viewSettings/")) return d.actions[e.slice(13)];
|
|
4738
4739
|
throw Error("Unsupported app actionType " + e + ".");
|
|
4739
4740
|
}
|
|
4740
4741
|
//#endregion
|
|
4741
|
-
export {
|
|
4742
|
+
export { a as addValueColors, s as buildCategoricalCountsSummary, n as buildCategoricalFieldSummary, r as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, i as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, l as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, o as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, u as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, c as templateResultToString };
|
|
@@ -533,7 +533,7 @@ function $e(e) {
|
|
|
533
533
|
if (t) return t.getAttribute(e);
|
|
534
534
|
}
|
|
535
535
|
function et(e) {
|
|
536
|
-
return e === "" ? !0 : e === "false" ? !1 : e === "true"
|
|
536
|
+
return e === "" ? !0 : e === "false" ? !1 : e === "true" || e;
|
|
537
537
|
}
|
|
538
538
|
m && typeof m.querySelector == "function" && [
|
|
539
539
|
["data-family-prefix", "familyPrefix"],
|
|
@@ -1541,7 +1541,7 @@ var qn = function(e) {
|
|
|
1541
1541
|
return e[t] = n[900] || [...Object.entries(n)][0][1], e;
|
|
1542
1542
|
}, {});
|
|
1543
1543
|
function rr(e) {
|
|
1544
|
-
let t = e.replace(Qn, ""), n = wt(t, 0), r = n >= $n[0] && n <= $n[1], i = t.length === 2
|
|
1544
|
+
let t = e.replace(Qn, ""), n = wt(t, 0), r = n >= $n[0] && n <= $n[1], i = t.length === 2 && t[0] === t[1];
|
|
1545
1545
|
return {
|
|
1546
1546
|
value: Ct(i ? t[0] : t),
|
|
1547
1547
|
isSecondary: r || i
|
|
@@ -1838,7 +1838,7 @@ en([
|
|
|
1838
1838
|
{ hooks() {
|
|
1839
1839
|
return { parseNodeAttributes(e, t) {
|
|
1840
1840
|
let n = t.getAttribute("data-fa-symbol");
|
|
1841
|
-
return e.symbol = n === null ? !1 : n === ""
|
|
1841
|
+
return e.symbol = n === null ? !1 : n === "" || n, e;
|
|
1842
1842
|
} };
|
|
1843
1843
|
} }
|
|
1844
1844
|
], { mixoutsTo: J }), J.noAuto, J.config, J.library;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as r, t as i } from "./viewIdentityRegistry-
|
|
1
|
+
import { a as e, t, x as n } from "./metadataChannels-fGQOmJj0.js";
|
|
2
|
+
import { n as r, t as i } from "./viewIdentityRegistry-CcQdL0Z8.js";
|
|
3
3
|
//#region ../core/src/debug/valuePreview.js
|
|
4
4
|
var a = 3, o = 12, s = 8, c = 160;
|
|
5
5
|
function l(e, t = 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as e, i as t, l as n, n as r, t as i } from "./viewIdentityRegistry-
|
|
1
|
+
import { T as e, i as t, l as n, n as r, t as i } from "./viewIdentityRegistry-EH5-Noyz.js";
|
|
2
2
|
//#region ../core/src/debug/valuePreview.js
|
|
3
3
|
var a = 3, o = 12, s = 8, c = 160;
|
|
4
4
|
function l(e, t = 0) {
|
package/dist/dialog.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, t as r } from "./lit-ByuJ0FJ4.js";
|
|
2
|
-
import { n as i, r as a, t as o } from "./componentStyles-
|
|
2
|
+
import { n as i, r as a, t as o } from "./componentStyles-BzJWWojD.js";
|
|
3
3
|
//#region src/components/generic/baseDialog.js
|
|
4
4
|
var s = /* @__PURE__ */ new Set([
|
|
5
5
|
"text",
|