@genome-spy/app 0.83.0 → 0.84.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 → agentApi-DHXYZVvQ.js} +5420 -7166
- package/dist/agentApi.es.js +3145 -3039
- package/dist/agentShared.es.js +18 -18
- package/dist/bmFontMetrics-CuNB-kNN.js +31 -0
- package/dist/clipOptions-Dqco1p8b.js +377 -0
- package/dist/{componentStyles-BzJWWojD.js → componentStyles-FsNmIb22.js} +5 -1
- package/dist/{debug-DJKug_38.js → debug-D6FqxKEj.js} +7 -5
- package/dist/{debug-CI7POTMx.js → debug-aHQsa6hU.js} +10 -10
- package/dist/dialog.es.js +1 -1
- package/dist/framebufferReadback-Bje9lHb7.js +1993 -0
- package/dist/framebufferReadback-CC0D6Haw.js +147 -0
- package/dist/index.es.js +3755 -3392
- package/dist/index.js +730 -609
- package/dist/metadataChannels-DV62inJh.js +19 -0
- package/dist/raster-9uKYMjHZ.js +53 -0
- package/dist/raster-BofBWXbe.js +54 -0
- package/dist/schema.json +765 -4113
- package/dist/svg-CvsT1Y2V.js +1793 -0
- package/dist/svg-DRgWfcsL.js +1793 -0
- package/dist/svgNumber-C6aRPc8Z.js +11 -0
- package/dist/twgl-full.module-BNEMlXRV.js +1849 -0
- package/dist/viewIdentityRegistry-AEQpJTDm.js +92 -0
- package/dist/{viewIdentityRegistry-CcQdL0Z8.js → viewIdentityRegistry-Dl7rR4Ay.js} +1 -1
- package/dist/viewRenderingContext-HtpqwS_x.js +120 -0
- package/dist/{viewIdentityRegistry-EH5-Noyz.js → viewSelectors-BhW4mTR1.js} +1801 -2242
- package/dist/{metadataChannels-fGQOmJj0.js → viewSelectors-Bwzj10Qz.js} +1674 -2043
- package/dist/{viewUtils-DP0AcPCi.js → viewUtils-DMNiWslc.js} +1885 -3738
- package/package.json +5 -5
package/dist/agentShared.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-DF993M8W.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as x, t as S } from "./componentStyles-
|
|
2
|
+
import { A as t, F as n, J as r, L as i, M as a, N as o, P as s, R as c, X as l, Y as u, i as d, j as f, k as p, s as m } from "./viewUtils-DMNiWslc.js";
|
|
3
|
+
import { C as h, Q as g, i as _, m as v, o as y, t as b } from "./viewSelectors-Bwzj10Qz.js";
|
|
4
|
+
import { n as x, t as S } from "./componentStyles-FsNmIb22.js";
|
|
5
5
|
//#region src/viewScopeUtils.js
|
|
6
6
|
function C(e, t) {
|
|
7
7
|
return !w(e, t.param) || !Array.isArray(t.scope) || t.scope.length === 0 ? t.param : t.scope.join("/") + "/" + t.param;
|
|
@@ -9,7 +9,7 @@ function C(e, t) {
|
|
|
9
9
|
function w(e, t) {
|
|
10
10
|
if (!e || typeof e.visit != "function") return !1;
|
|
11
11
|
let n = 0;
|
|
12
|
-
for (let r of
|
|
12
|
+
for (let r of b(e)) r.selector.param === t && (n += 1);
|
|
13
13
|
return n > 1;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
@@ -36,11 +36,11 @@ function D(e) {
|
|
|
36
36
|
//#region src/sampleView/viewRef.js
|
|
37
37
|
function O(e) {
|
|
38
38
|
if (!e.explicitName) throw Error("Cannot create a view reference without an explicit view name.");
|
|
39
|
-
return
|
|
39
|
+
return _(e);
|
|
40
40
|
}
|
|
41
41
|
function k(e) {
|
|
42
42
|
if (!e.explicitName) return;
|
|
43
|
-
let t =
|
|
43
|
+
let t = _(e);
|
|
44
44
|
return JSON.stringify({
|
|
45
45
|
s: t.scope,
|
|
46
46
|
v: t.view
|
|
@@ -48,7 +48,7 @@ function k(e) {
|
|
|
48
48
|
}
|
|
49
49
|
function A(e) {
|
|
50
50
|
let t = /* @__PURE__ */ new Map();
|
|
51
|
-
|
|
51
|
+
v(e, (e) => {
|
|
52
52
|
let n = k(e);
|
|
53
53
|
n && t.set(n, (t.get(n) ?? 0) + 1);
|
|
54
54
|
});
|
|
@@ -70,7 +70,7 @@ function N(e, t, n) {
|
|
|
70
70
|
if (n) try {
|
|
71
71
|
let t = [];
|
|
72
72
|
e.visit((e) => {
|
|
73
|
-
e instanceof
|
|
73
|
+
e instanceof m && e.isVisible() && ne(e, r) && t.push(e);
|
|
74
74
|
});
|
|
75
75
|
for (let e of t) {
|
|
76
76
|
let t = e.getEncoding(), n = t?.x && "field" in t.x, r = Object.entries(t).some(([e, t]) => ![
|
|
@@ -118,7 +118,7 @@ function F(e) {
|
|
|
118
118
|
}
|
|
119
119
|
function I(e) {
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return d(e).filter((e) => ![
|
|
122
122
|
"sample",
|
|
123
123
|
"x",
|
|
124
124
|
"x2"
|
|
@@ -161,7 +161,7 @@ function ne(e, t) {
|
|
|
161
161
|
function re(e) {
|
|
162
162
|
if (e.view.getEncoding()?.x2) return !0;
|
|
163
163
|
let t = e.view.getScaleResolution("x")?.getScale()?.type;
|
|
164
|
-
return t ?
|
|
164
|
+
return t ? g(t) : !1;
|
|
165
165
|
}
|
|
166
166
|
function ie(e) {
|
|
167
167
|
return e === "quantitative" ? M : ee;
|
|
@@ -192,16 +192,16 @@ function ce({ viewSelector: e, field: t, selectionSelector: n, aggregation: r, f
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
var le =
|
|
195
|
+
var le = l({
|
|
196
196
|
name: "paramProvenance",
|
|
197
197
|
initialState: { entries: {} },
|
|
198
198
|
reducers: {
|
|
199
199
|
paramChange: (e, t) => {
|
|
200
|
-
let n =
|
|
200
|
+
let n = y(t.payload.selector);
|
|
201
201
|
e.entries[n] = t.payload;
|
|
202
202
|
},
|
|
203
203
|
expandPointSelection: (e, t) => {
|
|
204
|
-
let n = t.payload, r =
|
|
204
|
+
let n = t.payload, r = y(n.selector), i;
|
|
205
205
|
if ("rule" in n && n.rule) i = { rule: n.rule };
|
|
206
206
|
else if ("predicate" in n && n.predicate) i = { predicate: n.predicate };
|
|
207
207
|
else throw Error("expandPointSelection requires either 'rule' or 'predicate'.");
|
|
@@ -4715,8 +4715,8 @@ function Gn(e, t, n) {
|
|
|
4715
4715
|
function Kn(e, t = {}) {
|
|
4716
4716
|
let n = Gn(e), r = new DOMParser().parseFromString(`<!DOCTYPE html><html><body><div>${n}</div></body></html>`, "text/html");
|
|
4717
4717
|
r.normalize(), qn(r.body);
|
|
4718
|
-
for (let e of r.querySelectorAll("a[href]")) e.setAttribute("target", "blank"), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("href",
|
|
4719
|
-
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", h(e.getAttribute("href"), t.baseUrl));
|
|
4719
|
+
for (let e of r.querySelectorAll("img[src]")) e.setAttribute("src", h(e.getAttribute("src"), t.baseUrl));
|
|
4720
4720
|
let i = r.body.removeChild(r.querySelector("body > div"));
|
|
4721
4721
|
return i.className = "markdown", i;
|
|
4722
4722
|
}
|
|
@@ -4733,10 +4733,10 @@ function qn(e) {
|
|
|
4733
4733
|
//#endregion
|
|
4734
4734
|
//#region src/agentShared/index.js
|
|
4735
4735
|
function Jn(e) {
|
|
4736
|
-
if (e.startsWith("sampleView/")) return
|
|
4736
|
+
if (e.startsWith("sampleView/")) return i.actions[e.slice(11)];
|
|
4737
4737
|
if (e.startsWith("paramProvenance/")) return le.actions[e.slice(16)];
|
|
4738
|
-
if (e.startsWith("viewSettings/")) return
|
|
4738
|
+
if (e.startsWith("viewSettings/")) return u.actions[e.slice(13)];
|
|
4739
4739
|
throw Error("Unsupported app actionType " + e + ".");
|
|
4740
4740
|
}
|
|
4741
4741
|
//#endregion
|
|
4742
|
-
export {
|
|
4742
|
+
export { p as addValueColors, f as buildCategoricalCountsSummary, a as buildCategoricalFieldSummary, o as buildQuantitativeFieldSummary, ce as buildSelectionAggregationAttributeIdentifier, s as buildTopCategorySummary, se as createSelectionAggregationCandidateId, S as faStyles, x as formStyles, c as formatAggregationExpression, C as formatScopedParamName, Jn as getActionCreator, t as getConcreteColorScale, P as getContextMenuFieldInfos, D as isBaselineAction, r as makeViewSelectorKey, Kn as safeMarkdown, T as serializeBookmarkableParamValue, n as templateResultToString };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function e(e) {
|
|
2
|
+
let t = [];
|
|
3
|
+
for (let e = 0; e <= 127; e++) t.push(void 0);
|
|
4
|
+
let n = /* @__PURE__ */ new Map();
|
|
5
|
+
for (let r of e.chars) r.id <= 127 ? t[r.id] = r : n.set(r.id, r);
|
|
6
|
+
let r = 8722;
|
|
7
|
+
n.has(r) || n.set(r, t[45]);
|
|
8
|
+
function i(e) {
|
|
9
|
+
return (e <= 127 ? t[e] : n.get(e)) || t[63];
|
|
10
|
+
}
|
|
11
|
+
function a(e) {
|
|
12
|
+
return i(e.charCodeAt(0));
|
|
13
|
+
}
|
|
14
|
+
let o = e.common.base, s = a("x"), c = a("X"), l = a("q"), u = s.height - 10, d = c.height - 10, f = l.height - s.height + l.yoffset - s.yoffset;
|
|
15
|
+
function p(e, t = 1) {
|
|
16
|
+
let n = 0;
|
|
17
|
+
for (let t = 0; t < e.length; t++) n += i(e.charCodeAt(t)).xadvance;
|
|
18
|
+
return n / o * t;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
measureWidth: p,
|
|
22
|
+
getCharByCode: i,
|
|
23
|
+
getChar: a,
|
|
24
|
+
xHeight: u,
|
|
25
|
+
capHeight: d,
|
|
26
|
+
descent: f,
|
|
27
|
+
common: e.common
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { e as t };
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
//#region ../../node_modules/internmap/src/index.js
|
|
2
|
+
var e = class extends Map {
|
|
3
|
+
constructor(e, t = i) {
|
|
4
|
+
if (super(), Object.defineProperties(this, {
|
|
5
|
+
_intern: { value: /* @__PURE__ */ new Map() },
|
|
6
|
+
_key: { value: t }
|
|
7
|
+
}), e != null) for (let [t, n] of e) this.set(t, n);
|
|
8
|
+
}
|
|
9
|
+
get(e) {
|
|
10
|
+
return super.get(t(this, e));
|
|
11
|
+
}
|
|
12
|
+
has(e) {
|
|
13
|
+
return super.has(t(this, e));
|
|
14
|
+
}
|
|
15
|
+
set(e, t) {
|
|
16
|
+
return super.set(n(this, e), t);
|
|
17
|
+
}
|
|
18
|
+
delete(e) {
|
|
19
|
+
return super.delete(r(this, e));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
function t({ _intern: e, _key: t }, n) {
|
|
23
|
+
let r = t(n);
|
|
24
|
+
return e.has(r) ? e.get(r) : n;
|
|
25
|
+
}
|
|
26
|
+
function n({ _intern: e, _key: t }, n) {
|
|
27
|
+
let r = t(n);
|
|
28
|
+
return e.has(r) ? e.get(r) : (e.set(r, n), n);
|
|
29
|
+
}
|
|
30
|
+
function r({ _intern: e, _key: t }, n) {
|
|
31
|
+
let r = t(n);
|
|
32
|
+
return e.has(r) && (n = e.get(r), e.delete(r)), n;
|
|
33
|
+
}
|
|
34
|
+
function i(e) {
|
|
35
|
+
return typeof e == "object" && e ? e.valueOf() : e;
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region ../../node_modules/d3-color/src/define.js
|
|
39
|
+
function a(e, t, n) {
|
|
40
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
41
|
+
}
|
|
42
|
+
function o(e, t) {
|
|
43
|
+
var n = Object.create(e.prototype);
|
|
44
|
+
for (var r in t) n[r] = t[r];
|
|
45
|
+
return n;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region ../../node_modules/d3-color/src/color.js
|
|
49
|
+
function s() {}
|
|
50
|
+
var c = .7, l = 1 / c, u = "\\s*([+-]?\\d+)\\s*", d = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", f = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", p = /^#([0-9a-f]{3,8})$/, m = RegExp(`^rgb\\(${u},${u},${u}\\)$`), h = RegExp(`^rgb\\(${f},${f},${f}\\)$`), g = RegExp(`^rgba\\(${u},${u},${u},${d}\\)$`), _ = RegExp(`^rgba\\(${f},${f},${f},${d}\\)$`), v = RegExp(`^hsl\\(${d},${f},${f}\\)$`), y = RegExp(`^hsla\\(${d},${f},${f},${d}\\)$`), b = {
|
|
51
|
+
aliceblue: 15792383,
|
|
52
|
+
antiquewhite: 16444375,
|
|
53
|
+
aqua: 65535,
|
|
54
|
+
aquamarine: 8388564,
|
|
55
|
+
azure: 15794175,
|
|
56
|
+
beige: 16119260,
|
|
57
|
+
bisque: 16770244,
|
|
58
|
+
black: 0,
|
|
59
|
+
blanchedalmond: 16772045,
|
|
60
|
+
blue: 255,
|
|
61
|
+
blueviolet: 9055202,
|
|
62
|
+
brown: 10824234,
|
|
63
|
+
burlywood: 14596231,
|
|
64
|
+
cadetblue: 6266528,
|
|
65
|
+
chartreuse: 8388352,
|
|
66
|
+
chocolate: 13789470,
|
|
67
|
+
coral: 16744272,
|
|
68
|
+
cornflowerblue: 6591981,
|
|
69
|
+
cornsilk: 16775388,
|
|
70
|
+
crimson: 14423100,
|
|
71
|
+
cyan: 65535,
|
|
72
|
+
darkblue: 139,
|
|
73
|
+
darkcyan: 35723,
|
|
74
|
+
darkgoldenrod: 12092939,
|
|
75
|
+
darkgray: 11119017,
|
|
76
|
+
darkgreen: 25600,
|
|
77
|
+
darkgrey: 11119017,
|
|
78
|
+
darkkhaki: 12433259,
|
|
79
|
+
darkmagenta: 9109643,
|
|
80
|
+
darkolivegreen: 5597999,
|
|
81
|
+
darkorange: 16747520,
|
|
82
|
+
darkorchid: 10040012,
|
|
83
|
+
darkred: 9109504,
|
|
84
|
+
darksalmon: 15308410,
|
|
85
|
+
darkseagreen: 9419919,
|
|
86
|
+
darkslateblue: 4734347,
|
|
87
|
+
darkslategray: 3100495,
|
|
88
|
+
darkslategrey: 3100495,
|
|
89
|
+
darkturquoise: 52945,
|
|
90
|
+
darkviolet: 9699539,
|
|
91
|
+
deeppink: 16716947,
|
|
92
|
+
deepskyblue: 49151,
|
|
93
|
+
dimgray: 6908265,
|
|
94
|
+
dimgrey: 6908265,
|
|
95
|
+
dodgerblue: 2003199,
|
|
96
|
+
firebrick: 11674146,
|
|
97
|
+
floralwhite: 16775920,
|
|
98
|
+
forestgreen: 2263842,
|
|
99
|
+
fuchsia: 16711935,
|
|
100
|
+
gainsboro: 14474460,
|
|
101
|
+
ghostwhite: 16316671,
|
|
102
|
+
gold: 16766720,
|
|
103
|
+
goldenrod: 14329120,
|
|
104
|
+
gray: 8421504,
|
|
105
|
+
green: 32768,
|
|
106
|
+
greenyellow: 11403055,
|
|
107
|
+
grey: 8421504,
|
|
108
|
+
honeydew: 15794160,
|
|
109
|
+
hotpink: 16738740,
|
|
110
|
+
indianred: 13458524,
|
|
111
|
+
indigo: 4915330,
|
|
112
|
+
ivory: 16777200,
|
|
113
|
+
khaki: 15787660,
|
|
114
|
+
lavender: 15132410,
|
|
115
|
+
lavenderblush: 16773365,
|
|
116
|
+
lawngreen: 8190976,
|
|
117
|
+
lemonchiffon: 16775885,
|
|
118
|
+
lightblue: 11393254,
|
|
119
|
+
lightcoral: 15761536,
|
|
120
|
+
lightcyan: 14745599,
|
|
121
|
+
lightgoldenrodyellow: 16448210,
|
|
122
|
+
lightgray: 13882323,
|
|
123
|
+
lightgreen: 9498256,
|
|
124
|
+
lightgrey: 13882323,
|
|
125
|
+
lightpink: 16758465,
|
|
126
|
+
lightsalmon: 16752762,
|
|
127
|
+
lightseagreen: 2142890,
|
|
128
|
+
lightskyblue: 8900346,
|
|
129
|
+
lightslategray: 7833753,
|
|
130
|
+
lightslategrey: 7833753,
|
|
131
|
+
lightsteelblue: 11584734,
|
|
132
|
+
lightyellow: 16777184,
|
|
133
|
+
lime: 65280,
|
|
134
|
+
limegreen: 3329330,
|
|
135
|
+
linen: 16445670,
|
|
136
|
+
magenta: 16711935,
|
|
137
|
+
maroon: 8388608,
|
|
138
|
+
mediumaquamarine: 6737322,
|
|
139
|
+
mediumblue: 205,
|
|
140
|
+
mediumorchid: 12211667,
|
|
141
|
+
mediumpurple: 9662683,
|
|
142
|
+
mediumseagreen: 3978097,
|
|
143
|
+
mediumslateblue: 8087790,
|
|
144
|
+
mediumspringgreen: 64154,
|
|
145
|
+
mediumturquoise: 4772300,
|
|
146
|
+
mediumvioletred: 13047173,
|
|
147
|
+
midnightblue: 1644912,
|
|
148
|
+
mintcream: 16121850,
|
|
149
|
+
mistyrose: 16770273,
|
|
150
|
+
moccasin: 16770229,
|
|
151
|
+
navajowhite: 16768685,
|
|
152
|
+
navy: 128,
|
|
153
|
+
oldlace: 16643558,
|
|
154
|
+
olive: 8421376,
|
|
155
|
+
olivedrab: 7048739,
|
|
156
|
+
orange: 16753920,
|
|
157
|
+
orangered: 16729344,
|
|
158
|
+
orchid: 14315734,
|
|
159
|
+
palegoldenrod: 15657130,
|
|
160
|
+
palegreen: 10025880,
|
|
161
|
+
paleturquoise: 11529966,
|
|
162
|
+
palevioletred: 14381203,
|
|
163
|
+
papayawhip: 16773077,
|
|
164
|
+
peachpuff: 16767673,
|
|
165
|
+
peru: 13468991,
|
|
166
|
+
pink: 16761035,
|
|
167
|
+
plum: 14524637,
|
|
168
|
+
powderblue: 11591910,
|
|
169
|
+
purple: 8388736,
|
|
170
|
+
rebeccapurple: 6697881,
|
|
171
|
+
red: 16711680,
|
|
172
|
+
rosybrown: 12357519,
|
|
173
|
+
royalblue: 4286945,
|
|
174
|
+
saddlebrown: 9127187,
|
|
175
|
+
salmon: 16416882,
|
|
176
|
+
sandybrown: 16032864,
|
|
177
|
+
seagreen: 3050327,
|
|
178
|
+
seashell: 16774638,
|
|
179
|
+
sienna: 10506797,
|
|
180
|
+
silver: 12632256,
|
|
181
|
+
skyblue: 8900331,
|
|
182
|
+
slateblue: 6970061,
|
|
183
|
+
slategray: 7372944,
|
|
184
|
+
slategrey: 7372944,
|
|
185
|
+
snow: 16775930,
|
|
186
|
+
springgreen: 65407,
|
|
187
|
+
steelblue: 4620980,
|
|
188
|
+
tan: 13808780,
|
|
189
|
+
teal: 32896,
|
|
190
|
+
thistle: 14204888,
|
|
191
|
+
tomato: 16737095,
|
|
192
|
+
turquoise: 4251856,
|
|
193
|
+
violet: 15631086,
|
|
194
|
+
wheat: 16113331,
|
|
195
|
+
white: 16777215,
|
|
196
|
+
whitesmoke: 16119285,
|
|
197
|
+
yellow: 16776960,
|
|
198
|
+
yellowgreen: 10145074
|
|
199
|
+
};
|
|
200
|
+
a(s, T, {
|
|
201
|
+
copy(e) {
|
|
202
|
+
return Object.assign(new this.constructor(), this, e);
|
|
203
|
+
},
|
|
204
|
+
displayable() {
|
|
205
|
+
return this.rgb().displayable();
|
|
206
|
+
},
|
|
207
|
+
hex: x,
|
|
208
|
+
formatHex: x,
|
|
209
|
+
formatHex8: S,
|
|
210
|
+
formatHsl: C,
|
|
211
|
+
formatRgb: w,
|
|
212
|
+
toString: w
|
|
213
|
+
});
|
|
214
|
+
function x() {
|
|
215
|
+
return this.rgb().formatHex();
|
|
216
|
+
}
|
|
217
|
+
function S() {
|
|
218
|
+
return this.rgb().formatHex8();
|
|
219
|
+
}
|
|
220
|
+
function C() {
|
|
221
|
+
return R(this).formatHsl();
|
|
222
|
+
}
|
|
223
|
+
function w() {
|
|
224
|
+
return this.rgb().formatRgb();
|
|
225
|
+
}
|
|
226
|
+
function T(e) {
|
|
227
|
+
var t, n;
|
|
228
|
+
return e = (e + "").trim().toLowerCase(), (t = p.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? E(t) : n === 3 ? new A(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? D(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? D(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = m.exec(e)) ? new A(t[1], t[2], t[3], 1) : (t = h.exec(e)) ? new A(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = g.exec(e)) ? D(t[1], t[2], t[3], t[4]) : (t = _.exec(e)) ? D(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = v.exec(e)) ? L(t[1], t[2] / 100, t[3] / 100, 1) : (t = y.exec(e)) ? L(t[1], t[2] / 100, t[3] / 100, t[4]) : b.hasOwnProperty(e) ? E(b[e]) : e === "transparent" ? new A(NaN, NaN, NaN, 0) : null;
|
|
229
|
+
}
|
|
230
|
+
function E(e) {
|
|
231
|
+
return new A(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
232
|
+
}
|
|
233
|
+
function D(e, t, n, r) {
|
|
234
|
+
return r <= 0 && (e = t = n = NaN), new A(e, t, n, r);
|
|
235
|
+
}
|
|
236
|
+
function O(e) {
|
|
237
|
+
return e instanceof s || (e = T(e)), e ? (e = e.rgb(), new A(e.r, e.g, e.b, e.opacity)) : new A();
|
|
238
|
+
}
|
|
239
|
+
function k(e, t, n, r) {
|
|
240
|
+
return arguments.length === 1 ? O(e) : new A(e, t, n, r ?? 1);
|
|
241
|
+
}
|
|
242
|
+
function A(e, t, n, r) {
|
|
243
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
244
|
+
}
|
|
245
|
+
a(A, k, o(s, {
|
|
246
|
+
brighter(e) {
|
|
247
|
+
return e = e == null ? l : l ** +e, new A(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
248
|
+
},
|
|
249
|
+
darker(e) {
|
|
250
|
+
return e = e == null ? c : c ** +e, new A(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
251
|
+
},
|
|
252
|
+
rgb() {
|
|
253
|
+
return this;
|
|
254
|
+
},
|
|
255
|
+
clamp() {
|
|
256
|
+
return new A(F(this.r), F(this.g), F(this.b), P(this.opacity));
|
|
257
|
+
},
|
|
258
|
+
displayable() {
|
|
259
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
260
|
+
},
|
|
261
|
+
hex: j,
|
|
262
|
+
formatHex: j,
|
|
263
|
+
formatHex8: M,
|
|
264
|
+
formatRgb: N,
|
|
265
|
+
toString: N
|
|
266
|
+
}));
|
|
267
|
+
function j() {
|
|
268
|
+
return `#${I(this.r)}${I(this.g)}${I(this.b)}`;
|
|
269
|
+
}
|
|
270
|
+
function M() {
|
|
271
|
+
return `#${I(this.r)}${I(this.g)}${I(this.b)}${I((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
272
|
+
}
|
|
273
|
+
function N() {
|
|
274
|
+
let e = P(this.opacity);
|
|
275
|
+
return `${e === 1 ? "rgb(" : "rgba("}${F(this.r)}, ${F(this.g)}, ${F(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
276
|
+
}
|
|
277
|
+
function P(e) {
|
|
278
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
279
|
+
}
|
|
280
|
+
function F(e) {
|
|
281
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
282
|
+
}
|
|
283
|
+
function I(e) {
|
|
284
|
+
return e = F(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
285
|
+
}
|
|
286
|
+
function L(e, t, n, r) {
|
|
287
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new B(e, t, n, r);
|
|
288
|
+
}
|
|
289
|
+
function R(e) {
|
|
290
|
+
if (e instanceof B) return new B(e.h, e.s, e.l, e.opacity);
|
|
291
|
+
if (e instanceof s || (e = T(e)), !e) return new B();
|
|
292
|
+
if (e instanceof B) return e;
|
|
293
|
+
e = e.rgb();
|
|
294
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, c = a - i, l = (a + i) / 2;
|
|
295
|
+
return c ? (o = t === a ? (n - r) / c + (n < r) * 6 : n === a ? (r - t) / c + 2 : (t - n) / c + 4, c /= l < .5 ? a + i : 2 - a - i, o *= 60) : c = l > 0 && l < 1 ? 0 : o, new B(o, c, l, e.opacity);
|
|
296
|
+
}
|
|
297
|
+
function z(e, t, n, r) {
|
|
298
|
+
return arguments.length === 1 ? R(e) : new B(e, t, n, r ?? 1);
|
|
299
|
+
}
|
|
300
|
+
function B(e, t, n, r) {
|
|
301
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
302
|
+
}
|
|
303
|
+
a(B, z, o(s, {
|
|
304
|
+
brighter(e) {
|
|
305
|
+
return e = e == null ? l : l ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
306
|
+
},
|
|
307
|
+
darker(e) {
|
|
308
|
+
return e = e == null ? c : c ** +e, new B(this.h, this.s, this.l * e, this.opacity);
|
|
309
|
+
},
|
|
310
|
+
rgb() {
|
|
311
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
312
|
+
return new A(U(e >= 240 ? e - 240 : e + 120, i, r), U(e, i, r), U(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
313
|
+
},
|
|
314
|
+
clamp() {
|
|
315
|
+
return new B(V(this.h), H(this.s), H(this.l), P(this.opacity));
|
|
316
|
+
},
|
|
317
|
+
displayable() {
|
|
318
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
319
|
+
},
|
|
320
|
+
formatHsl() {
|
|
321
|
+
let e = P(this.opacity);
|
|
322
|
+
return `${e === 1 ? "hsl(" : "hsla("}${V(this.h)}, ${H(this.s) * 100}%, ${H(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
323
|
+
}
|
|
324
|
+
}));
|
|
325
|
+
function V(e) {
|
|
326
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
327
|
+
}
|
|
328
|
+
function H(e) {
|
|
329
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
330
|
+
}
|
|
331
|
+
function U(e, t, n) {
|
|
332
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region ../core/src/view/renderingContext/clipOptions.js
|
|
336
|
+
function W(e) {
|
|
337
|
+
if (e.clip) return e.clip;
|
|
338
|
+
if (e.clipRect) return {
|
|
339
|
+
rect: e.clipRect,
|
|
340
|
+
clipX: !0,
|
|
341
|
+
clipY: !0
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
function G(e, t) {
|
|
345
|
+
return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
|
|
346
|
+
}
|
|
347
|
+
function K(e, t, n) {
|
|
348
|
+
return t || n ? {
|
|
349
|
+
rect: e,
|
|
350
|
+
clipX: t,
|
|
351
|
+
clipY: n
|
|
352
|
+
} : void 0;
|
|
353
|
+
}
|
|
354
|
+
function q(e, t) {
|
|
355
|
+
return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
|
|
356
|
+
}
|
|
357
|
+
function J(e, t) {
|
|
358
|
+
if (!e) return t;
|
|
359
|
+
if (!t) return e;
|
|
360
|
+
let n = e.clipX || t.clipX, r = e.clipY || t.clipY, i = e.clipX && t.clipX ? e.rect.intersectX(t.rect) : t.clipX ? t.rect : e.rect, a = e.clipY && t.clipY ? e.rect.intersectY(t.rect) : t.clipY ? t.rect : e.rect;
|
|
361
|
+
return K(e.rect.modify({
|
|
362
|
+
x: () => i.x,
|
|
363
|
+
y: () => a.y,
|
|
364
|
+
width: () => i.width,
|
|
365
|
+
height: () => a.height
|
|
366
|
+
}), n, r);
|
|
367
|
+
}
|
|
368
|
+
function Y(e, t) {
|
|
369
|
+
if (e === !0) return K(t, !0, !0);
|
|
370
|
+
if (e === "x") return K(t, !0, !1);
|
|
371
|
+
if (e === "y") return K(t, !1, !0);
|
|
372
|
+
}
|
|
373
|
+
function X(e, t, n) {
|
|
374
|
+
if (t !== "never") return J(e, Y(t, n));
|
|
375
|
+
}
|
|
376
|
+
//#endregion
|
|
377
|
+
export { e as _, W as a, A as c, c as d, z as f, o as g, a as h, K as i, l, O as m, G as n, X as o, k as p, J as r, s, q as t, T as u };
|
|
@@ -2012,12 +2012,16 @@ var yr = t(_r.css()), br = e`
|
|
|
2012
2012
|
appearance: none;
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
|
-
:is(input, select, textarea, div) + small {
|
|
2015
|
+
:is(input, select, textarea, div, label) + small {
|
|
2016
2016
|
display: block;
|
|
2017
2017
|
margin-top: 0.3em;
|
|
2018
2018
|
color: #606060;
|
|
2019
2019
|
}
|
|
2020
2020
|
|
|
2021
|
+
label + small {
|
|
2022
|
+
margin-top: -0.3em;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2021
2025
|
:is(input, select, textarea).is-invalid,
|
|
2022
2026
|
.fake-input.is-invalid {
|
|
2023
2027
|
border-color: var(--danger-color, #dc3545);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as e, i as t } from "./viewSelectors-Bwzj10Qz.js";
|
|
2
|
+
import { t as n } from "./metadataChannels-DV62inJh.js";
|
|
3
|
+
import { n as r, t as i } from "./viewIdentityRegistry-Dl7rR4Ay.js";
|
|
2
4
|
//#region ../core/src/debug/valuePreview.js
|
|
3
5
|
var a = 3, o = 12, s = 8, c = 160;
|
|
4
6
|
function l(e, t = 0) {
|
|
@@ -73,7 +75,7 @@ function p(e) {
|
|
|
73
75
|
}
|
|
74
76
|
//#endregion
|
|
75
77
|
//#region ../core/src/debug/markDebugSnapshot.js
|
|
76
|
-
function m(e,
|
|
78
|
+
function m(e, t) {
|
|
77
79
|
if (!e) return { marks: [] };
|
|
78
80
|
let r = [];
|
|
79
81
|
return h(e, (e) => {
|
|
@@ -81,7 +83,7 @@ function m(e, n) {
|
|
|
81
83
|
if (!i) return;
|
|
82
84
|
let a = i.getDebugState();
|
|
83
85
|
r.push({
|
|
84
|
-
viewId:
|
|
86
|
+
viewId: t.getDebugId(e),
|
|
85
87
|
viewPath: e.getPathString(),
|
|
86
88
|
type: i.getType(),
|
|
87
89
|
ready: !!i.isReady(),
|
|
@@ -89,7 +91,7 @@ function m(e, n) {
|
|
|
89
91
|
markUniformsAltered: a.markUniformsAltered,
|
|
90
92
|
encodingChannels: Object.keys(i.encoding),
|
|
91
93
|
encoderChannels: i.encoders ? Object.keys(i.encoders) : [],
|
|
92
|
-
searchFields:
|
|
94
|
+
searchFields: n(e.getEncoding()) ?? [],
|
|
93
95
|
dataCount: g(e),
|
|
94
96
|
vertexCount: a.vertexCount,
|
|
95
97
|
allocatedVertices: a.allocatedVertices,
|
|
@@ -300,7 +302,7 @@ function j(e) {
|
|
|
300
302
|
if (typeof t.getMarkType == "function") return t.getMarkType();
|
|
301
303
|
}
|
|
302
304
|
function M(e) {
|
|
303
|
-
if (e.explicitName) return
|
|
305
|
+
if (e.explicitName) return t(e);
|
|
304
306
|
}
|
|
305
307
|
function N(e) {
|
|
306
308
|
let t = e.coords;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e,
|
|
2
|
-
import { n as r, t as i } from "./viewIdentityRegistry-
|
|
1
|
+
import { a as e, x as t } from "./viewSelectors-BhW4mTR1.js";
|
|
2
|
+
import { i as n, n as r, t as i } from "./viewIdentityRegistry-AEQpJTDm.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) {
|
|
@@ -74,7 +74,7 @@ function p(e) {
|
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region ../core/src/debug/markDebugSnapshot.js
|
|
77
|
-
function m(e,
|
|
77
|
+
function m(e, t) {
|
|
78
78
|
if (!e) return { marks: [] };
|
|
79
79
|
let r = [];
|
|
80
80
|
return h(e, (e) => {
|
|
@@ -82,7 +82,7 @@ function m(e, n) {
|
|
|
82
82
|
if (!i) return;
|
|
83
83
|
let a = i.getDebugState();
|
|
84
84
|
r.push({
|
|
85
|
-
viewId:
|
|
85
|
+
viewId: t.getDebugId(e),
|
|
86
86
|
viewPath: e.getPathString(),
|
|
87
87
|
type: i.getType(),
|
|
88
88
|
ready: !!i.isReady(),
|
|
@@ -90,7 +90,7 @@ function m(e, n) {
|
|
|
90
90
|
markUniformsAltered: a.markUniformsAltered,
|
|
91
91
|
encodingChannels: Object.keys(i.encoding),
|
|
92
92
|
encoderChannels: i.encoders ? Object.keys(i.encoders) : [],
|
|
93
|
-
searchFields:
|
|
93
|
+
searchFields: n(e.getEncoding()) ?? [],
|
|
94
94
|
dataCount: g(e),
|
|
95
95
|
vertexCount: a.vertexCount,
|
|
96
96
|
allocatedVertices: a.allocatedVertices,
|
|
@@ -220,7 +220,7 @@ function w(e, t) {
|
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
function T(e) {
|
|
223
|
-
return
|
|
223
|
+
return t(e) || e.getLayoutAncestors().some(t);
|
|
224
224
|
}
|
|
225
225
|
function E(e, t) {
|
|
226
226
|
return {
|
|
@@ -230,15 +230,15 @@ function E(e, t) {
|
|
|
230
230
|
}
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region ../core/src/debug/viewDebugSnapshot.js
|
|
233
|
-
function D(e,
|
|
233
|
+
function D(e, n) {
|
|
234
234
|
if (!e) return {
|
|
235
235
|
rootId: void 0,
|
|
236
236
|
nodes: []
|
|
237
237
|
};
|
|
238
|
-
let i =
|
|
239
|
-
let c =
|
|
238
|
+
let i = n.includeChrome ?? !1, a = [], o = (e, s) => {
|
|
239
|
+
let c = t(e);
|
|
240
240
|
if (c && !i) return;
|
|
241
|
-
let l =
|
|
241
|
+
let l = n.getDebugId(e), u = O(e, l, s, c, n);
|
|
242
242
|
if (a.push(u), e instanceof r) for (let t of e) {
|
|
243
243
|
let e = o(t, l);
|
|
244
244
|
e && u.childIds.push(e.id);
|
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-FsNmIb22.js";
|
|
3
3
|
//#region src/components/generic/baseDialog.js
|
|
4
4
|
var s = /* @__PURE__ */ new Set([
|
|
5
5
|
"text",
|