@genome-spy/app 0.80.0 → 0.82.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.
@@ -1,6 +1,7 @@
1
1
  import { n as e } from "./rolldown-runtime-DF993M8W.js";
2
- import { B as t, F as n, H as r, I as i, L as a, P as o, R as s, Rt as c, U as l, ct as u, gt as d, i as f, kt as p, nr as m, nt as h, ot as g, rt as _, s as v, tr as y, z as b } from "./viewUtils-BY0z0W1Y.js";
3
- import { n as x, t as S } from "./componentStyles-BGy033io.js";
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-DCmz7Bvt.js";
3
+ import { a as h, h as g, it as _, k as v, n as y, s as b } from "./metadataChannels-bEgfFn6O.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 _(e)) r.selector.param === t && (n += 1);
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 g(e);
39
+ return h(e);
39
40
  }
40
41
  function k(e) {
41
42
  if (!e.explicitName) return;
42
- let t = g(e);
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
- d(e, (e) => {
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 v && e.isVisible() && ne(e, r) && t.push(e);
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]) => ![
@@ -160,7 +161,7 @@ function ne(e, t) {
160
161
  function re(e) {
161
162
  if (e.view.getEncoding()?.x2) return !0;
162
163
  let t = e.view.getScaleResolution("x")?.getScale()?.type;
163
- return t ? c(t) : !1;
164
+ return t ? _(t) : !1;
164
165
  }
165
166
  function ie(e) {
166
167
  return e === "quantitative" ? M : ee;
@@ -196,11 +197,11 @@ var le = m({
196
197
  initialState: { entries: {} },
197
198
  reducers: {
198
199
  paramChange: (e, t) => {
199
- let n = u(t.payload.selector);
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 = u(n.selector), i;
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", p(e.getAttribute("href"), t.baseUrl));
4718
- for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src", p(e.getAttribute("src"), t.baseUrl));
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 r.actions[e.slice(11)];
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 y.actions[e.slice(13)];
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 { o as addValueColors, i as buildCategoricalCountsSummary, a as buildCategoricalFieldSummary, s as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, b as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, l as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, n as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, h as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, t as templateResultToString };
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" ? !0 : e;
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 ? t[0] === t[1] : !1;
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 === "" ? !0 : n, e;
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 { ot as e, p as t, xt as n } from "./viewUtils-BY0z0W1Y.js";
2
- import { n as r, t as i } from "./viewIdentityRegistry-DjnM56qZ.js";
1
+ import { a as e, t, x as n } from "./metadataChannels-bEgfFn6O.js";
2
+ import { n as r, t as i } from "./viewIdentityRegistry-BWGefhZp.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 { i as e, l as t, n, t as r, w as i } from "./viewIdentityRegistry-BCDkwJTm.js";
1
+ import { T as e, i as t, l as n, n as r, t as i } from "./viewIdentityRegistry-Dbxu22Sy.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) {
@@ -73,24 +73,24 @@ function p(e) {
73
73
  }
74
74
  //#endregion
75
75
  //#region ../core/src/debug/markDebugSnapshot.js
76
- function m(t, n) {
77
- if (!t) return { marks: [] };
76
+ function m(e, n) {
77
+ if (!e) return { marks: [] };
78
78
  let r = [];
79
- return h(t, (t) => {
80
- let i = t.mark;
79
+ return h(e, (e) => {
80
+ let i = e.mark;
81
81
  if (!i) return;
82
82
  let a = i.getDebugState();
83
83
  r.push({
84
- viewId: n.getDebugId(t),
85
- viewPath: t.getPathString(),
84
+ viewId: n.getDebugId(e),
85
+ viewPath: e.getPathString(),
86
86
  type: i.getType(),
87
87
  ready: !!i.isReady(),
88
88
  pickingParticipant: i.isPickingParticipant(),
89
89
  markUniformsAltered: a.markUniformsAltered,
90
90
  encodingChannels: Object.keys(i.encoding),
91
91
  encoderChannels: i.encoders ? Object.keys(i.encoders) : [],
92
- searchFields: e(t.getEncoding()) ?? [],
93
- dataCount: g(t),
92
+ searchFields: t(e.getEncoding()) ?? [],
93
+ dataCount: g(e),
94
94
  vertexCount: a.vertexCount,
95
95
  allocatedVertices: a.allocatedVertices,
96
96
  rangeCount: i.rangeMap.size,
@@ -99,7 +99,7 @@ function m(t, n) {
99
99
  }), { marks: r };
100
100
  }
101
101
  function h(e, t) {
102
- if (t(e), e instanceof n) for (let n of e) h(n, t);
102
+ if (t(e), e instanceof r) for (let n of e) h(n, t);
103
103
  }
104
104
  function g(e) {
105
105
  return (e.getCollector?.())?.getItemCount();
@@ -128,7 +128,7 @@ function _(e, t) {
128
128
  }), { scopes: n };
129
129
  }
130
130
  function v(e, t) {
131
- if (t(e), e instanceof n) for (let n of e) v(n, t);
131
+ if (t(e), e instanceof r) for (let n of e) v(n, t);
132
132
  }
133
133
  //#endregion
134
134
  //#region ../core/src/debug/resolutionDebugSnapshot.js
@@ -151,7 +151,7 @@ function b(e, t) {
151
151
  for (let n of Object.values(t)) n && e.add(n);
152
152
  }
153
153
  function x(e, t) {
154
- if (t(e), e instanceof n) for (let n of e) x(n, t);
154
+ if (t(e), e instanceof r) for (let n of e) x(n, t);
155
155
  }
156
156
  function S(e, t) {
157
157
  let n = e.getDebugState();
@@ -218,8 +218,8 @@ function w(e, t) {
218
218
  }))
219
219
  };
220
220
  }
221
- function T(e) {
222
- return i(e) || e.getLayoutAncestors().some(i);
221
+ function T(t) {
222
+ return e(t) || t.getLayoutAncestors().some(e);
223
223
  }
224
224
  function E(e, t) {
225
225
  return {
@@ -229,23 +229,23 @@ function E(e, t) {
229
229
  }
230
230
  //#endregion
231
231
  //#region ../core/src/debug/viewDebugSnapshot.js
232
- function D(e, t) {
233
- if (!e) return {
232
+ function D(t, n) {
233
+ if (!t) return {
234
234
  rootId: void 0,
235
235
  nodes: []
236
236
  };
237
- let r = t.includeChrome ?? !1, a = [], o = (e, s) => {
238
- let c = i(e);
239
- if (c && !r) return;
240
- let l = t.getDebugId(e), u = O(e, l, s, c, t);
241
- if (a.push(u), e instanceof n) for (let t of e) {
242
- let e = o(t, l);
243
- e && u.childIds.push(e.id);
237
+ let i = n.includeChrome ?? !1, a = [], o = (t, s) => {
238
+ let c = e(t);
239
+ if (c && !i) return;
240
+ let l = n.getDebugId(t), u = O(t, l, s, c, n);
241
+ if (a.push(u), t instanceof r) for (let e of t) {
242
+ let t = o(e, l);
243
+ t && u.childIds.push(t.id);
244
244
  }
245
245
  return u;
246
246
  };
247
247
  return {
248
- rootId: o(e, void 0)?.id,
248
+ rootId: o(t, void 0)?.id,
249
249
  nodes: a
250
250
  };
251
251
  }
@@ -300,7 +300,7 @@ function j(e) {
300
300
  if (typeof t.getMarkType == "function") return t.getMarkType();
301
301
  }
302
302
  function M(e) {
303
- if (e.explicitName) return t(e);
303
+ if (e.explicitName) return n(e);
304
304
  }
305
305
  function N(e) {
306
306
  let t = e.coords;
@@ -342,4 +342,4 @@ function L(e, t, n) {
342
342
  return r ? n.getDebugId(r) : void 0;
343
343
  }
344
344
  //#endregion
345
- export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, r as getViewIdentityRegistry };
345
+ export { d as createDataflowDebugSnapshot, m as createMarkDebugSnapshot, _ as createParamDebugSnapshot, y as createResolutionDebugSnapshot, D as createViewDebugSnapshot, i as getViewIdentityRegistry };
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-BGy033io.js";
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",
@@ -1,4 +1,4 @@
1
- import { n as e, r as t } from "./esm-Cx-EbkOj.js";
1
+ import { n as e, r as t } from "./esm-CGLz7idZ.js";
2
2
  import { t as n } from "./esm-VvpZ9hsq.js";
3
3
  import { n as r, r as i } from "./esm-BdT7qUL-.js";
4
4
  //#region ../../node_modules/@gmod/bam/esm/chunk.js