@mechane-ai/elements 0.50.0 → 0.52.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/{article-CRlhq9oA.js → article-BDVuehRt.js} +1 -1
- package/dist/article.js +1 -1
- package/dist/catalog.json +54 -1
- package/dist/{categorical-values-BYP_R5gS.js → categorical-values-BoS03HcI.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -13
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +1 -1
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/collections.js +1 -1
- package/dist/{dates-ckJdYF7t.js → dates-CjlTzw00.js} +1 -1
- package/dist/{dumbbell-plot-BC8d_IJy.js → dumbbell-plot-Xxl6P7D1.js} +3 -3
- package/dist/{embedding-map-Bj8krO-d.js → embedding-map-tU8hT_aC.js} +3 -3
- package/dist/{figure-frame-koVKcXph.js → figure-frame-BKc9TvtX.js} +1 -1
- package/dist/forms/dates.js +1 -1
- package/dist/{image-grid-CLhol2jy.js → image-grid-BZy2lkNb.js} +2 -2
- package/dist/kits/evaluation.js +4 -4
- package/dist/kits/interpretability.js +7 -7
- package/dist/kits/operations.js +4 -4
- package/dist/kits/research.js +596 -250
- package/dist/kits/training.js +3 -3
- package/dist/mdx.js +2 -2
- package/dist/packages/charts/src/graph/tree-diagram.d.ts +1 -1
- package/dist/packages/charts/src/plot/plot-layout.d.ts +0 -6
- package/dist/packages/charts/src/timeline/event-strip.d.ts +12 -2
- package/dist/packages/charts/src/timeline/index.d.ts +1 -1
- package/dist/packages/collections/src/metrics.d.ts +5 -11
- package/dist/packages/kits/src/research/collection-page.d.ts +30 -4
- package/dist/packages/kits/src/research/index.d.ts +4 -2
- package/dist/packages/kits/src/research/lineage-graph.d.ts +40 -0
- package/dist/{plot-layout-B2xRt-_k.js → plot-layout-D8j-ozGR.js} +102 -86
- package/dist/{plot-surface-0cKFwtws.js → plot-surface-5e3xeiub.js} +1 -1
- package/dist/{reference-lines-nSxcZVF5.js → reference-lines-1FttCg46.js} +1 -1
- package/dist/{scene-4ePpWdmE.js → scene-8F-fQksU.js} +4 -4
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-DWZIYDty.js → slope-chart-B35ZfaYn.js} +4 -4
- package/dist/{src-DNclWY4V.js → src-fvoTU3Bq.js} +377 -377
- package/dist/{time-series-CsngFxr1.js → time-series-DoFMGmFV.js} +612 -590
- package/dist/{token-heatmap-BQLIxPky.js → token-heatmap-DLPQWwMv.js} +3 -3
- package/dist/{token-predictions-C3B5L-eO.js → token-predictions-D_Jwf8Aw.js} +3 -3
- package/dist/{tree-diagram-Dau9jeXS.js → tree-diagram-DreDBCvt.js} +4 -4
- package/dist/{treemap-DWrMQndu.js → treemap-MVX-wa4t.js} +4 -4
- package/dist/{violin-plot-D05ODcyc.js → violin-plot-Bi71NqXF.js} +3 -3
- package/dist/waterfall-8y8ANO3c.js +605 -0
- package/package.json +1 -1
- package/recipes/calendar-workspace.tsx +39 -0
- package/skills/use-elements/references/workspace.md +8 -6
- package/dist/waterfall-BkLLv2Lm.js +0 -576
package/dist/kits/research.js
CHANGED
|
@@ -1,93 +1,176 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { d as e, f as t, g as n, h as r, m as i, n as a, o, u as s, y as c } from "../src-fvoTU3Bq.js";
|
|
2
|
+
import { c as l, f as u, h as d, l as f, m as p, o as m, p as h, r as g, t as _, v } from "../src-9EJskqB_.js";
|
|
3
|
+
import { m as y, p as b, s as x, t as S } from "../src-npqwq3Sa.js";
|
|
4
|
+
import { u as C } from "../src-Dxs3Buo_.js";
|
|
5
|
+
import { T as w, h as T, i as E, n as D } from "../src-DhWMspwr.js";
|
|
6
|
+
import { r as O } from "../figure-format-B8kRZMlo.js";
|
|
7
|
+
import { n as k } from "../src-na2DdkKI.js";
|
|
8
|
+
import { a as A, t as j } from "../tree-diagram-DreDBCvt.js";
|
|
9
|
+
import { f as M } from "../time-series-DoFMGmFV.js";
|
|
10
|
+
import { t as N } from "../src-DFW49IAs.js";
|
|
11
11
|
import "@stylexjs/stylex";
|
|
12
|
-
import { useEffect as
|
|
13
|
-
import { Fragment as
|
|
12
|
+
import { useEffect as ee, useState as P } from "react";
|
|
13
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
14
14
|
// packages/kits/src/research/collection-page.tsx
|
|
15
|
-
var
|
|
15
|
+
var R = /* @__PURE__ */ new Set([
|
|
16
16
|
"INPUT",
|
|
17
17
|
"TEXTAREA",
|
|
18
18
|
"SELECT"
|
|
19
|
-
]);
|
|
20
|
-
function
|
|
21
|
-
return e instanceof HTMLElement ? e.isContentEditable ||
|
|
19
|
+
]), te = 8;
|
|
20
|
+
function ne(e) {
|
|
21
|
+
return e instanceof HTMLElement ? e.isContentEditable || R.has(e.tagName) : !1;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let k =
|
|
23
|
+
function z({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, onSortChange: u, search: d, filters: f, transformRows: p, scopes: m, defaultScopeId: h, rowAction: g, activeRowId: _, rowSizing: v, empty: b, filteredEmpty: x, status: T = "ready", failure: E, placeholderRows: D = te, hasGlobalShortcuts: O }) {
|
|
24
|
+
let k = T === "loading", A = T === "failed", j = T === "ready", M = m?.[0]?.id ?? "", [N, F] = P(() => h ?? M), R = m === void 0 || m.length === 0 ? void 0 : m.find((e) => e.id === N) ?? m[0], z = R === void 0 ? a : a.filter(R.match), re = m === void 0 || m.length <= 1 ? null : /* @__PURE__ */ I(C.Root, {
|
|
25
|
+
"aria-label": `${n} scope`,
|
|
26
|
+
value: R?.id ?? M,
|
|
27
|
+
onValueChange: (e) => F(e),
|
|
28
|
+
children: m.map((e) => /* @__PURE__ */ I(C.Item, {
|
|
29
|
+
value: e.id,
|
|
30
|
+
children: k ? e.label : `${e.label} (${a.filter(e.match).length})`
|
|
31
|
+
}, e.id))
|
|
32
|
+
}), B = r(z, {
|
|
25
33
|
mode: "local",
|
|
26
|
-
search:
|
|
27
|
-
filters:
|
|
28
|
-
}), { actions:
|
|
29
|
-
label: `${
|
|
30
|
-
...
|
|
31
|
-
filters:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
search: d,
|
|
35
|
+
filters: f
|
|
36
|
+
}), { actions: V, chips: H, onKeyDown: U, openSearch: W } = t({
|
|
37
|
+
label: `${n} controls`,
|
|
38
|
+
...B.search !== void 0 && { search: B.search },
|
|
39
|
+
filters: B.filters,
|
|
40
|
+
isPlaceholder: k,
|
|
41
|
+
isReady: j
|
|
42
|
+
}), G = O && j && B.search !== void 0;
|
|
43
|
+
ee(() => {
|
|
44
|
+
if (!G) return;
|
|
36
45
|
function e(e) {
|
|
37
|
-
let t = e.key === "/" && !
|
|
38
|
-
(t || n) && (e.preventDefault(),
|
|
46
|
+
let t = e.key === "/" && !ne(e.target), n = e.key.toLowerCase() === "f" && (e.metaKey || e.ctrlKey);
|
|
47
|
+
(t || n) && (e.preventDefault(), W());
|
|
39
48
|
}
|
|
40
49
|
return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
|
|
41
|
-
}, [
|
|
42
|
-
let
|
|
43
|
-
caption:
|
|
50
|
+
}, [G, W]);
|
|
51
|
+
let ie = p === void 0 ? B.rows : p(B.rows), K = i ?? n, q = typeof d == "function", J = !("reason" in f), Y = {
|
|
52
|
+
caption: K,
|
|
44
53
|
hideCaption: !0,
|
|
45
|
-
rows:
|
|
46
|
-
getRowId:
|
|
54
|
+
rows: ie,
|
|
55
|
+
getRowId: o,
|
|
47
56
|
query: { mode: "frame" },
|
|
48
|
-
...
|
|
49
|
-
...
|
|
50
|
-
...
|
|
51
|
-
empty:
|
|
52
|
-
...
|
|
53
|
-
},
|
|
54
|
-
...
|
|
55
|
-
columns:
|
|
56
|
-
}) : /* @__PURE__ */
|
|
57
|
-
...
|
|
58
|
-
columns:
|
|
59
|
-
sort:
|
|
60
|
-
onSortChange:
|
|
61
|
-
}),
|
|
62
|
-
|
|
57
|
+
...g !== void 0 && { rowAction: g },
|
|
58
|
+
..._ !== void 0 && { activeRowId: _ },
|
|
59
|
+
...v !== void 0 && { rowSizing: v },
|
|
60
|
+
empty: b,
|
|
61
|
+
...x !== void 0 && { filteredEmpty: x }
|
|
62
|
+
}, X = u === void 0 ? /* @__PURE__ */ I(s, {
|
|
63
|
+
...Y,
|
|
64
|
+
columns: c
|
|
65
|
+
}) : /* @__PURE__ */ I(s, {
|
|
66
|
+
...Y,
|
|
67
|
+
columns: c,
|
|
68
|
+
sort: l,
|
|
69
|
+
onSortChange: u
|
|
70
|
+
}), Z = /* @__PURE__ */ I(e, {
|
|
71
|
+
caption: K,
|
|
72
|
+
hideCaption: !0,
|
|
73
|
+
columns: c,
|
|
74
|
+
rows: D,
|
|
75
|
+
...v !== void 0 && { rowSizing: v }
|
|
76
|
+
}), Q = E ?? /* @__PURE__ */ I(w, { children: /* @__PURE__ */ L(y, {
|
|
77
|
+
hasError: !0,
|
|
78
|
+
children: [
|
|
79
|
+
"Could not load ",
|
|
80
|
+
n.toLowerCase(),
|
|
81
|
+
"."
|
|
82
|
+
]
|
|
83
|
+
}) });
|
|
84
|
+
return {
|
|
85
|
+
scopeControl: re,
|
|
86
|
+
controlActions: V,
|
|
87
|
+
chips: H,
|
|
88
|
+
onKeyDown: U,
|
|
89
|
+
content: k ? /* @__PURE__ */ I(S, {
|
|
90
|
+
state: "pending",
|
|
91
|
+
label: n,
|
|
92
|
+
placeholder: Z
|
|
93
|
+
}) : /* @__PURE__ */ I(S, {
|
|
94
|
+
state: A ? "failed" : "ready",
|
|
95
|
+
label: n,
|
|
96
|
+
placeholder: Z,
|
|
97
|
+
children: A ? Q : X
|
|
98
|
+
}),
|
|
99
|
+
frameProps: {
|
|
100
|
+
search: q ? !0 : d,
|
|
101
|
+
filters: J ? !0 : f,
|
|
102
|
+
isFiltered: B.isFiltered
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function re(e) {
|
|
107
|
+
let { title: t, navigation: n, actions: r, notice: a, inspector: o, inspectorInitialPercent: s = 40 } = e, { scopeControl: l, controlActions: u, chips: d, onKeyDown: f, content: p, frameProps: m } = z({
|
|
108
|
+
...e,
|
|
109
|
+
hasGlobalShortcuts: !0
|
|
110
|
+
}), h = a != null, g = /* @__PURE__ */ L(F, { children: [
|
|
111
|
+
l,
|
|
112
|
+
n === void 0 && u,
|
|
113
|
+
r
|
|
114
|
+
] }), _ = /* @__PURE__ */ I(D, {
|
|
115
|
+
header: /* @__PURE__ */ L(F, { children: [h && /* @__PURE__ */ I(w, { children: a }), d !== !1 && /* @__PURE__ */ I(c, {
|
|
63
116
|
label: "Applied filters",
|
|
64
|
-
children:
|
|
117
|
+
children: d
|
|
65
118
|
})] }),
|
|
66
|
-
children:
|
|
119
|
+
children: p
|
|
67
120
|
});
|
|
68
|
-
return /* @__PURE__ */
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
isFiltered: k.isFiltered,
|
|
72
|
-
children: /* @__PURE__ */ M("section", {
|
|
121
|
+
return /* @__PURE__ */ I(i, {
|
|
122
|
+
...m,
|
|
123
|
+
children: /* @__PURE__ */ I("section", {
|
|
73
124
|
className: "x12lumcd xeuugli x2lwn1j x78zum5 xdt5ytf",
|
|
74
|
-
onKeyDown:
|
|
75
|
-
children: /* @__PURE__ */
|
|
125
|
+
onKeyDown: f,
|
|
126
|
+
children: /* @__PURE__ */ I(T, {
|
|
76
127
|
title: t,
|
|
77
|
-
actions:
|
|
78
|
-
navigation:
|
|
79
|
-
children:
|
|
128
|
+
actions: g,
|
|
129
|
+
navigation: n,
|
|
130
|
+
children: o === void 0 ? _ : /* @__PURE__ */ I(E, {
|
|
80
131
|
isResizable: !0,
|
|
81
|
-
inspectorInitialPercent:
|
|
82
|
-
inspector:
|
|
83
|
-
children:
|
|
132
|
+
inspectorInitialPercent: s,
|
|
133
|
+
inspector: o,
|
|
134
|
+
children: _
|
|
84
135
|
})
|
|
85
136
|
})
|
|
86
137
|
})
|
|
87
138
|
});
|
|
88
139
|
}
|
|
140
|
+
function B(e) {
|
|
141
|
+
let { id: t, title: n, meta: r, actions: a, notice: o } = e, { scopeControl: s, controlActions: l, chips: u, onKeyDown: d, content: p, frameProps: m } = z({
|
|
142
|
+
...e,
|
|
143
|
+
hasGlobalShortcuts: !1
|
|
144
|
+
}), h = o != null;
|
|
145
|
+
return /* @__PURE__ */ I(i, {
|
|
146
|
+
...m,
|
|
147
|
+
children: /* @__PURE__ */ L("section", {
|
|
148
|
+
"aria-label": n,
|
|
149
|
+
className: "xeuugli x78zum5 xdt5ytf",
|
|
150
|
+
onKeyDown: d,
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ I(f, {
|
|
153
|
+
...t !== void 0 && { id: t },
|
|
154
|
+
title: n,
|
|
155
|
+
meta: r,
|
|
156
|
+
actions: /* @__PURE__ */ L(F, { children: [
|
|
157
|
+
s,
|
|
158
|
+
l,
|
|
159
|
+
a
|
|
160
|
+
] })
|
|
161
|
+
}),
|
|
162
|
+
h && /* @__PURE__ */ I(w, { children: o }),
|
|
163
|
+
u !== !1 && /* @__PURE__ */ I(c, {
|
|
164
|
+
label: "Applied filters",
|
|
165
|
+
children: u
|
|
166
|
+
}),
|
|
167
|
+
p
|
|
168
|
+
]
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
}
|
|
89
172
|
// packages/kits/src/research/finding-card.tsx
|
|
90
|
-
var
|
|
173
|
+
var V = {
|
|
91
174
|
limitation: "Limitation",
|
|
92
175
|
details: "Full notes & evidence",
|
|
93
176
|
sources: "Sources",
|
|
@@ -97,100 +180,355 @@ var L = {
|
|
|
97
180
|
falsified: "Falsified",
|
|
98
181
|
open: "Open"
|
|
99
182
|
}
|
|
100
|
-
},
|
|
183
|
+
}, H = {
|
|
101
184
|
supported: "positive",
|
|
102
185
|
mixed: "warning",
|
|
103
186
|
falsified: "negative",
|
|
104
187
|
open: "neutral"
|
|
105
188
|
};
|
|
106
|
-
function
|
|
107
|
-
let
|
|
108
|
-
...
|
|
109
|
-
...
|
|
189
|
+
function U({ title: e, claim: t, locale: n, status: r, index: i, limitation: o, metrics: s = [], sources: c = [], author: u, recordedAt: f, recordedLabel: m, details: y, actions: b, labels: x }) {
|
|
190
|
+
let S = {
|
|
191
|
+
...V,
|
|
192
|
+
...x,
|
|
110
193
|
statusLabels: {
|
|
111
|
-
...
|
|
112
|
-
...
|
|
194
|
+
...V.statusLabels,
|
|
195
|
+
...x?.statusLabels
|
|
113
196
|
}
|
|
114
197
|
};
|
|
115
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ I(h, {
|
|
116
199
|
title: e,
|
|
117
|
-
index:
|
|
118
|
-
meta: /* @__PURE__ */
|
|
119
|
-
tone:
|
|
120
|
-
children:
|
|
121
|
-
}),
|
|
122
|
-
footer:
|
|
200
|
+
index: i,
|
|
201
|
+
meta: /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(_, {
|
|
202
|
+
tone: H[r],
|
|
203
|
+
children: S.statusLabels[r]
|
|
204
|
+
}), b] }),
|
|
205
|
+
footer: u !== void 0 || f !== void 0 || c.length > 0 ? /* @__PURE__ */ L(p, {
|
|
123
206
|
shouldSpaceBetween: !0,
|
|
124
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ L(p, { children: [u !== void 0 && /* @__PURE__ */ I(l, {
|
|
125
208
|
variant: "caption",
|
|
126
209
|
tone: "muted",
|
|
127
|
-
children:
|
|
128
|
-
}),
|
|
129
|
-
dateTime:
|
|
130
|
-
label:
|
|
131
|
-
})] }), c.length > 0 && /* @__PURE__ */
|
|
210
|
+
children: u
|
|
211
|
+
}), f !== void 0 && /* @__PURE__ */ I(a, {
|
|
212
|
+
dateTime: f,
|
|
213
|
+
label: m ?? f
|
|
214
|
+
})] }), c.length > 0 && /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ L(l, {
|
|
132
215
|
variant: "caption",
|
|
133
216
|
tone: "muted",
|
|
134
|
-
children: [
|
|
135
|
-
}), c.map((e) => e.summary !== void 0 && e.href !== void 0 ? /* @__PURE__ */
|
|
217
|
+
children: [S.sources, ":"]
|
|
218
|
+
}), c.map((e) => e.summary !== void 0 && e.href !== void 0 ? /* @__PURE__ */ L(k.Root, { children: [/* @__PURE__ */ I(k.Trigger, {
|
|
136
219
|
href: e.href,
|
|
137
|
-
children: /* @__PURE__ */
|
|
138
|
-
}), /* @__PURE__ */
|
|
220
|
+
children: /* @__PURE__ */ I(g, { children: e.label })
|
|
221
|
+
}), /* @__PURE__ */ I(k.Popup, { children: /* @__PURE__ */ L(d, {
|
|
139
222
|
isCompact: !0,
|
|
140
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ I(l, { children: e.label }), /* @__PURE__ */ I(l, {
|
|
141
224
|
variant: "caption",
|
|
142
225
|
tone: "muted",
|
|
143
226
|
children: e.summary
|
|
144
227
|
})]
|
|
145
|
-
}) })] }, e.id) : /* @__PURE__ */
|
|
228
|
+
}) })] }, e.id) : /* @__PURE__ */ I(g, { children: e.label }, e.id))] })]
|
|
146
229
|
}) : void 0,
|
|
147
|
-
children: /* @__PURE__ */
|
|
230
|
+
children: /* @__PURE__ */ L(d, {
|
|
148
231
|
isCompact: !0,
|
|
149
232
|
children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
s.length > 0 && /* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ I(l, { children: t }),
|
|
234
|
+
s.length > 0 && /* @__PURE__ */ I(p, { children: s.map((e) => /* @__PURE__ */ L(_, {
|
|
152
235
|
tone: e.tone ?? "neutral",
|
|
153
236
|
children: [
|
|
154
237
|
e.label,
|
|
155
238
|
": ",
|
|
156
|
-
|
|
239
|
+
O({
|
|
157
240
|
value: e.value,
|
|
158
241
|
locale: n,
|
|
159
242
|
format: e.format
|
|
160
243
|
})
|
|
161
244
|
]
|
|
162
245
|
}, e.label)) }),
|
|
163
|
-
o !== void 0 && /* @__PURE__ */
|
|
246
|
+
o !== void 0 && /* @__PURE__ */ L(l, {
|
|
164
247
|
variant: "caption",
|
|
165
248
|
tone: "muted",
|
|
166
249
|
children: [
|
|
167
|
-
|
|
250
|
+
S.limitation,
|
|
168
251
|
": ",
|
|
169
252
|
o
|
|
170
253
|
]
|
|
171
254
|
}),
|
|
172
|
-
|
|
255
|
+
y !== void 0 && /* @__PURE__ */ L(v.Root, { children: [/* @__PURE__ */ I(v.Trigger, {
|
|
173
256
|
variant: "inline",
|
|
174
|
-
children:
|
|
175
|
-
}), /* @__PURE__ */
|
|
257
|
+
children: S.details
|
|
258
|
+
}), /* @__PURE__ */ I(v.Panel, { children: y })] })
|
|
176
259
|
]
|
|
177
260
|
})
|
|
178
261
|
});
|
|
179
262
|
}
|
|
263
|
+
// packages/kits/src/research/lineage-graph.tsx
|
|
264
|
+
var W = 176, G = 56, ie = 48, K = 14, q = 20, J = 24, Y = 14, X = 16, Z = 640, Q = 240, ae = 64, $ = "General", oe = {
|
|
265
|
+
baseline: "series5",
|
|
266
|
+
milestone: "positive",
|
|
267
|
+
branch: "series1",
|
|
268
|
+
merge: "series3",
|
|
269
|
+
killed: "negative"
|
|
270
|
+
}, se = {
|
|
271
|
+
baseline: "neutral",
|
|
272
|
+
milestone: "positive",
|
|
273
|
+
branch: "neutral",
|
|
274
|
+
merge: "warning",
|
|
275
|
+
killed: "negative"
|
|
276
|
+
}, ce = {
|
|
277
|
+
frontier: "Frontier",
|
|
278
|
+
all: "All",
|
|
279
|
+
metric: "Score",
|
|
280
|
+
delta: "Change",
|
|
281
|
+
lane: "Track",
|
|
282
|
+
parents: "Parents",
|
|
283
|
+
source: "Evidence",
|
|
284
|
+
empty: "No lineage nodes recorded.",
|
|
285
|
+
kinds: {
|
|
286
|
+
baseline: "Baseline",
|
|
287
|
+
milestone: "Milestone",
|
|
288
|
+
branch: "Branch",
|
|
289
|
+
merge: "Merge",
|
|
290
|
+
killed: "Killed"
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
function le(e, t, n) {
|
|
294
|
+
let r = t.get(e.id) ?? 0;
|
|
295
|
+
for (let i of e.parentIds) if (n.has(i)) {
|
|
296
|
+
let e = (t.get(i) ?? 0) + 1;
|
|
297
|
+
e > r && (r = e);
|
|
298
|
+
}
|
|
299
|
+
return r;
|
|
300
|
+
}
|
|
301
|
+
function ue(e) {
|
|
302
|
+
let t = /* @__PURE__ */ new Map(), n = new Set(e.map((e) => e.id));
|
|
303
|
+
for (let n of e) t.set(n.id, 0);
|
|
304
|
+
for (let r = 0; r < ae; r += 1) {
|
|
305
|
+
let r = [];
|
|
306
|
+
for (let i of e) {
|
|
307
|
+
let e = le(i, t, n);
|
|
308
|
+
e !== t.get(i.id) && r.push([i.id, e]);
|
|
309
|
+
}
|
|
310
|
+
if (r.length === 0) break;
|
|
311
|
+
for (let [e, n] of r) t.set(e, n);
|
|
312
|
+
}
|
|
313
|
+
return t;
|
|
314
|
+
}
|
|
315
|
+
function de(e) {
|
|
316
|
+
let t = /* @__PURE__ */ new Set(), n = new Map(e.map((e) => [e.id, e]));
|
|
317
|
+
function r(e) {
|
|
318
|
+
if (t.has(e)) return;
|
|
319
|
+
t.add(e);
|
|
320
|
+
let i = n.get(e);
|
|
321
|
+
if (i !== void 0) for (let e of i.parentIds) r(e);
|
|
322
|
+
}
|
|
323
|
+
for (let t of e) t.kind !== "killed" && r(t.id);
|
|
324
|
+
return e.filter((e) => t.has(e.id));
|
|
325
|
+
}
|
|
326
|
+
function fe({ node: e, locale: t, valueFormat: n, deltaFormat: r }) {
|
|
327
|
+
let i = [];
|
|
328
|
+
if (e.metric !== null && e.metric !== void 0 && i.push(n === void 0 ? String(e.metric) : O({
|
|
329
|
+
value: e.metric,
|
|
330
|
+
locale: t,
|
|
331
|
+
format: n
|
|
332
|
+
})), e.delta !== null && e.delta !== void 0) {
|
|
333
|
+
let a = r ?? n;
|
|
334
|
+
a === void 0 ? i.push(e.delta > 0 ? `+${e.delta}` : String(e.delta)) : i.push(O({
|
|
335
|
+
value: e.delta,
|
|
336
|
+
locale: t,
|
|
337
|
+
format: a
|
|
338
|
+
}));
|
|
339
|
+
}
|
|
340
|
+
return i.length > 0 ? i.join(" · ") : e.summary;
|
|
341
|
+
}
|
|
342
|
+
function pe({ nodes: e, locale: t, valueFormat: n, deltaFormat: r }) {
|
|
343
|
+
let i = ue(e), a = Math.max(0, ...Array.from(i.values())), o = e.some((e) => e.lane !== void 0), s = [];
|
|
344
|
+
if (o) for (let t of e) {
|
|
345
|
+
let e = t.lane ?? $;
|
|
346
|
+
s.includes(e) || s.push(e);
|
|
347
|
+
}
|
|
348
|
+
else s.push($);
|
|
349
|
+
let c = (a + 1) * W + a * ie, l = [], u = [], d = q;
|
|
350
|
+
for (let a of s) {
|
|
351
|
+
let s = o ? e.filter((e) => (e.lane ?? $) === a) : e, f = /* @__PURE__ */ new Map();
|
|
352
|
+
for (let e of s) {
|
|
353
|
+
let t = i.get(e.id) ?? 0, n = f.get(t) ?? [];
|
|
354
|
+
n.push(e), f.set(t, n);
|
|
355
|
+
}
|
|
356
|
+
let p = Math.max(1, ...Array.from(f.values(), (e) => e.length)), m = p * G + (p - 1) * K, h = d, g = o ? h + J + Y : h, _ = o ? 52 + m : m;
|
|
357
|
+
for (let [e, i] of f.entries()) {
|
|
358
|
+
let a = q + (o ? Y : 0) + e * 224;
|
|
359
|
+
for (let [e, o] of i.entries()) {
|
|
360
|
+
let i = g + e * 70;
|
|
361
|
+
l.push({
|
|
362
|
+
id: o.id,
|
|
363
|
+
label: o.label,
|
|
364
|
+
description: fe({
|
|
365
|
+
node: o,
|
|
366
|
+
locale: t,
|
|
367
|
+
valueFormat: n,
|
|
368
|
+
deltaFormat: r
|
|
369
|
+
}),
|
|
370
|
+
x: a,
|
|
371
|
+
y: i,
|
|
372
|
+
width: W,
|
|
373
|
+
height: G,
|
|
374
|
+
tone: oe[o.kind]
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
o && u.push({
|
|
379
|
+
id: `lane:${a}`,
|
|
380
|
+
label: a,
|
|
381
|
+
x: q,
|
|
382
|
+
y: h,
|
|
383
|
+
width: c + 28,
|
|
384
|
+
height: _,
|
|
385
|
+
nodeIds: s.map((e) => e.id)
|
|
386
|
+
}), d = h + _ + (o ? X : K);
|
|
387
|
+
}
|
|
388
|
+
let f = new Set(e.map((e) => e.id)), p = [];
|
|
389
|
+
for (let t of e) for (let e of t.parentIds) f.has(e) && p.push({
|
|
390
|
+
id: `${e}->${t.id}`,
|
|
391
|
+
sourceId: e,
|
|
392
|
+
targetId: t.id,
|
|
393
|
+
label: `${e} to ${t.id}`,
|
|
394
|
+
direction: "directed"
|
|
395
|
+
});
|
|
396
|
+
return {
|
|
397
|
+
relationNodes: l,
|
|
398
|
+
relationEdges: p,
|
|
399
|
+
relationGroups: u,
|
|
400
|
+
width: c + 40 + (o ? 28 : 0),
|
|
401
|
+
height: Math.max(Q, d + q - (o ? X : K))
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
function me({ node: e, labels: t, detailItems: n }) {
|
|
405
|
+
return /* @__PURE__ */ L(d, {
|
|
406
|
+
isCompact: !0,
|
|
407
|
+
children: [
|
|
408
|
+
/* @__PURE__ */ I(u, {}),
|
|
409
|
+
/* @__PURE__ */ L(p, {
|
|
410
|
+
shouldSpaceBetween: !0,
|
|
411
|
+
children: [/* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: e.label }) }), e.timestamp === void 0 ? null : /* @__PURE__ */ I(_, {
|
|
412
|
+
tone: "neutral",
|
|
413
|
+
children: e.timestamp
|
|
414
|
+
})] }), /* @__PURE__ */ I(_, {
|
|
415
|
+
tone: se[e.kind],
|
|
416
|
+
children: t.kinds[e.kind]
|
|
417
|
+
})]
|
|
418
|
+
}),
|
|
419
|
+
e.summary === void 0 ? null : /* @__PURE__ */ I(l, { children: e.summary }),
|
|
420
|
+
e.detail === void 0 ? null : /* @__PURE__ */ I(l, {
|
|
421
|
+
tone: "muted",
|
|
422
|
+
children: e.detail
|
|
423
|
+
}),
|
|
424
|
+
n.length === 0 ? null : /* @__PURE__ */ I(o, { items: n })
|
|
425
|
+
]
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
function he({ nodes: e, valueLabel: t, valueFormat: n, deltaFormat: r, defaultScope: i = "frontier", selected: a, onSelectedChange: o, labels: s, actions: c, ...l }) {
|
|
429
|
+
let [u, f] = P(i), [p, m] = P(null), h = {
|
|
430
|
+
...ce,
|
|
431
|
+
...s,
|
|
432
|
+
kinds: {
|
|
433
|
+
...ce.kinds,
|
|
434
|
+
...s?.kinds
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
if (l.status === "loading") return /* @__PURE__ */ I(A, {
|
|
438
|
+
...l,
|
|
439
|
+
nodes: [],
|
|
440
|
+
edges: [],
|
|
441
|
+
width: Z,
|
|
442
|
+
height: Q
|
|
443
|
+
});
|
|
444
|
+
if (e.length === 0) return /* @__PURE__ */ I(b, {
|
|
445
|
+
title: l.title,
|
|
446
|
+
children: h.empty
|
|
447
|
+
});
|
|
448
|
+
if (new Set(e.map((e) => e.id)).size !== e.length) return /* @__PURE__ */ I(y, {
|
|
449
|
+
hasError: !0,
|
|
450
|
+
children: "Lineage nodes must have unique identifiers."
|
|
451
|
+
});
|
|
452
|
+
let g = de(e), _ = g.length < e.length, v = u === "frontier" && _ ? g : e, x = a === void 0 ? p : a;
|
|
453
|
+
function S(e, t) {
|
|
454
|
+
a === void 0 && m(e), o?.(e, t);
|
|
455
|
+
}
|
|
456
|
+
let w = pe({
|
|
457
|
+
nodes: v,
|
|
458
|
+
locale: l.locale,
|
|
459
|
+
valueFormat: n,
|
|
460
|
+
deltaFormat: r
|
|
461
|
+
}), T = x === null ? void 0 : v.find((e) => e.id === x), E = new Map(e.map((e) => [e.id, e])), D = _ ? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(C.Root, {
|
|
462
|
+
"aria-label": `${l.title} scope`,
|
|
463
|
+
value: u,
|
|
464
|
+
onValueChange: (e) => f(e === "all" ? "all" : "frontier"),
|
|
465
|
+
children: [/* @__PURE__ */ I(C.Item, {
|
|
466
|
+
value: "frontier",
|
|
467
|
+
children: `${h.frontier} (${g.length})`
|
|
468
|
+
}), /* @__PURE__ */ I(C.Item, {
|
|
469
|
+
value: "all",
|
|
470
|
+
children: `${h.all} (${e.length})`
|
|
471
|
+
})]
|
|
472
|
+
}), c] }) : c, k = T === void 0 ? [] : [
|
|
473
|
+
...T.lane === void 0 ? [] : [{
|
|
474
|
+
label: h.lane,
|
|
475
|
+
value: T.lane
|
|
476
|
+
}],
|
|
477
|
+
...T.metric === null || T.metric === void 0 ? [] : [{
|
|
478
|
+
label: t ?? h.metric,
|
|
479
|
+
value: n === void 0 ? String(T.metric) : O({
|
|
480
|
+
value: T.metric,
|
|
481
|
+
locale: l.locale,
|
|
482
|
+
format: n
|
|
483
|
+
})
|
|
484
|
+
}],
|
|
485
|
+
...T.delta === null || T.delta === void 0 ? [] : [{
|
|
486
|
+
label: h.delta,
|
|
487
|
+
value: (r ?? n) === void 0 ? T.delta > 0 ? `+${T.delta}` : String(T.delta) : O({
|
|
488
|
+
value: T.delta,
|
|
489
|
+
locale: l.locale,
|
|
490
|
+
format: r ?? n ?? { style: "decimal" }
|
|
491
|
+
})
|
|
492
|
+
}],
|
|
493
|
+
...T.parentIds.length === 0 ? [] : [{
|
|
494
|
+
label: h.parents,
|
|
495
|
+
value: T.parentIds.map((e) => E.get(e)?.label ?? e).join(", ")
|
|
496
|
+
}],
|
|
497
|
+
...T.source === void 0 ? [] : [{
|
|
498
|
+
label: h.source,
|
|
499
|
+
value: T.source
|
|
500
|
+
}]
|
|
501
|
+
];
|
|
502
|
+
return /* @__PURE__ */ L(d, { children: [/* @__PURE__ */ I(A, {
|
|
503
|
+
...l,
|
|
504
|
+
actions: D,
|
|
505
|
+
nodes: w.relationNodes,
|
|
506
|
+
edges: w.relationEdges,
|
|
507
|
+
groups: w.relationGroups.length > 0 ? w.relationGroups : void 0,
|
|
508
|
+
width: w.width,
|
|
509
|
+
height: w.height,
|
|
510
|
+
selected: x,
|
|
511
|
+
onSelectedChange: S
|
|
512
|
+
}), T === void 0 ? null : /* @__PURE__ */ I(me, {
|
|
513
|
+
node: T,
|
|
514
|
+
labels: h,
|
|
515
|
+
detailItems: k
|
|
516
|
+
})] });
|
|
517
|
+
}
|
|
180
518
|
// packages/kits/src/research/milestone-path.tsx
|
|
181
|
-
var
|
|
519
|
+
var ge = {
|
|
182
520
|
baseline: "series5",
|
|
183
521
|
result: "series1",
|
|
184
522
|
breakthrough: "positive",
|
|
185
523
|
counterexample: "negative",
|
|
186
524
|
decision: "series3"
|
|
187
|
-
},
|
|
525
|
+
}, _e = {
|
|
188
526
|
baseline: "neutral",
|
|
189
527
|
result: "neutral",
|
|
190
528
|
breakthrough: "positive",
|
|
191
529
|
counterexample: "negative",
|
|
192
530
|
decision: "warning"
|
|
193
|
-
},
|
|
531
|
+
}, ve = {
|
|
194
532
|
metric: "Score",
|
|
195
533
|
delta: "Change",
|
|
196
534
|
limitation: "Limitation",
|
|
@@ -204,98 +542,106 @@ var B = {
|
|
|
204
542
|
decision: "Decision"
|
|
205
543
|
}
|
|
206
544
|
};
|
|
207
|
-
function
|
|
208
|
-
let
|
|
209
|
-
...
|
|
545
|
+
function ye({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selected: i, onSelectedChange: a, labels: s, ...c }) {
|
|
546
|
+
let f = {
|
|
547
|
+
...ve,
|
|
210
548
|
...s,
|
|
211
549
|
kinds: {
|
|
212
|
-
...
|
|
550
|
+
...ve.kinds,
|
|
213
551
|
...s?.kinds
|
|
214
552
|
}
|
|
215
553
|
};
|
|
216
|
-
if (
|
|
554
|
+
if (c.status === "loading") return /* @__PURE__ */ I(j, {
|
|
555
|
+
...c,
|
|
556
|
+
nodes: [],
|
|
557
|
+
direction: "right",
|
|
558
|
+
link: "elbow",
|
|
559
|
+
valueLabel: t,
|
|
560
|
+
valueFormat: n
|
|
561
|
+
});
|
|
562
|
+
if (e.length === 0) return /* @__PURE__ */ I(b, {
|
|
217
563
|
title: c.title,
|
|
218
|
-
children:
|
|
564
|
+
children: f.empty
|
|
219
565
|
});
|
|
220
|
-
if (new Set(e.map((e) => e.id)).size !== e.length) return /* @__PURE__ */
|
|
566
|
+
if (new Set(e.map((e) => e.id)).size !== e.length) return /* @__PURE__ */ I(y, {
|
|
221
567
|
hasError: !0,
|
|
222
568
|
children: "Milestones must have unique identifiers."
|
|
223
569
|
});
|
|
224
|
-
if (e.filter((e) => e.parentId === null).length !== 1) return /* @__PURE__ */
|
|
570
|
+
if (e.filter((e) => e.parentId === null).length !== 1) return /* @__PURE__ */ I(y, {
|
|
225
571
|
hasError: !0,
|
|
226
572
|
children: "MilestonePath requires exactly one root milestone (parentId: null)."
|
|
227
573
|
});
|
|
228
|
-
let
|
|
574
|
+
let m = e.map((e) => ({
|
|
229
575
|
id: e.id,
|
|
230
576
|
parentId: e.parentId,
|
|
231
577
|
label: e.label,
|
|
232
|
-
detail: e.wave === void 0 ?
|
|
578
|
+
detail: e.wave === void 0 ? f.kinds[e.kind] : `${e.wave} · ${f.kinds[e.kind]}`,
|
|
233
579
|
value: e.metric ?? null,
|
|
234
|
-
tone:
|
|
235
|
-
})),
|
|
580
|
+
tone: ge[e.kind]
|
|
581
|
+
})), h = Array.from(new Set(e.map((e) => e.kind))).map((e) => ({
|
|
236
582
|
id: e,
|
|
237
|
-
label:
|
|
238
|
-
tone:
|
|
239
|
-
})),
|
|
240
|
-
return /* @__PURE__ */
|
|
583
|
+
label: f.kinds[e],
|
|
584
|
+
tone: ge[e]
|
|
585
|
+
})), g = e.find((e) => e.id === i) ?? null;
|
|
586
|
+
return /* @__PURE__ */ L(d, { children: [/* @__PURE__ */ I(j, {
|
|
241
587
|
...c,
|
|
242
|
-
nodes:
|
|
588
|
+
nodes: m,
|
|
243
589
|
direction: "right",
|
|
244
590
|
link: "elbow",
|
|
245
591
|
valueLabel: t,
|
|
246
592
|
valueFormat: n,
|
|
247
|
-
toneLegend:
|
|
593
|
+
toneLegend: h,
|
|
248
594
|
selected: i,
|
|
249
|
-
onSelectedChange:
|
|
250
|
-
}),
|
|
595
|
+
onSelectedChange: a
|
|
596
|
+
}), g !== null && /* @__PURE__ */ L(d, {
|
|
251
597
|
isCompact: !0,
|
|
252
598
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ I(u, {}),
|
|
600
|
+
/* @__PURE__ */ L(p, {
|
|
255
601
|
shouldSpaceBetween: !0,
|
|
256
|
-
children: [/* @__PURE__ */
|
|
602
|
+
children: [/* @__PURE__ */ L(p, { children: [g.wave !== void 0 && /* @__PURE__ */ I(_, {
|
|
257
603
|
tone: "neutral",
|
|
258
|
-
children:
|
|
259
|
-
}), /* @__PURE__ */
|
|
260
|
-
tone:
|
|
261
|
-
children:
|
|
604
|
+
children: g.wave
|
|
605
|
+
}), /* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: g.label }) })] }), /* @__PURE__ */ I(_, {
|
|
606
|
+
tone: _e[g.kind],
|
|
607
|
+
children: f.kinds[g.kind]
|
|
262
608
|
})]
|
|
263
609
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
610
|
+
/* @__PURE__ */ I(l, {
|
|
265
611
|
tone: "muted",
|
|
266
|
-
children:
|
|
612
|
+
children: g.claim
|
|
267
613
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
...
|
|
270
|
-
label:
|
|
271
|
-
value:
|
|
272
|
-
value:
|
|
614
|
+
/* @__PURE__ */ I(o, { items: [
|
|
615
|
+
...g.metric === void 0 ? [] : [{
|
|
616
|
+
label: f.metric,
|
|
617
|
+
value: O({
|
|
618
|
+
value: g.metric,
|
|
273
619
|
locale: c.locale,
|
|
274
620
|
format: n
|
|
275
621
|
})
|
|
276
622
|
}],
|
|
277
|
-
...
|
|
278
|
-
label:
|
|
279
|
-
value:
|
|
280
|
-
value:
|
|
623
|
+
...g.delta === void 0 ? [] : [{
|
|
624
|
+
label: f.delta,
|
|
625
|
+
value: O({
|
|
626
|
+
value: g.delta,
|
|
281
627
|
locale: c.locale,
|
|
282
628
|
format: r ?? n
|
|
283
629
|
})
|
|
284
630
|
}],
|
|
285
|
-
...
|
|
286
|
-
label:
|
|
287
|
-
value:
|
|
631
|
+
...g.limitation === void 0 ? [] : [{
|
|
632
|
+
label: f.limitation,
|
|
633
|
+
value: g.limitation
|
|
288
634
|
}],
|
|
289
|
-
...
|
|
290
|
-
label:
|
|
291
|
-
value:
|
|
635
|
+
...g.source === void 0 ? [] : [{
|
|
636
|
+
label: f.source,
|
|
637
|
+
value: g.source
|
|
292
638
|
}]
|
|
293
639
|
] })
|
|
294
640
|
]
|
|
295
641
|
})] });
|
|
296
642
|
}
|
|
297
643
|
// packages/kits/src/research/specimen-diff.tsx
|
|
298
|
-
var
|
|
644
|
+
var be = {
|
|
299
645
|
breakdownTitle: "Paired outcome flips",
|
|
300
646
|
all: "All",
|
|
301
647
|
gained: "Gained",
|
|
@@ -308,65 +654,65 @@ var W = {
|
|
|
308
654
|
candidate: "Candidate",
|
|
309
655
|
outcome: "Outcome",
|
|
310
656
|
empty: "No paired specimens available for these two runs."
|
|
311
|
-
},
|
|
657
|
+
}, xe = {
|
|
312
658
|
gained: "positive",
|
|
313
659
|
regressed: "negative",
|
|
314
660
|
both_pass: "neutral",
|
|
315
661
|
both_fail: "neutral"
|
|
316
|
-
},
|
|
662
|
+
}, Se = /* @__PURE__ */ new Set([
|
|
317
663
|
"gained",
|
|
318
664
|
"regressed",
|
|
319
665
|
"both_pass",
|
|
320
666
|
"both_fail"
|
|
321
667
|
]);
|
|
322
|
-
function
|
|
323
|
-
return e !== null &&
|
|
668
|
+
function Ce(e) {
|
|
669
|
+
return e !== null && Se.has(e);
|
|
324
670
|
}
|
|
325
|
-
function
|
|
326
|
-
let
|
|
327
|
-
...
|
|
671
|
+
function we({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterChange: a, onSelectRow: o, labels: c, ...u }) {
|
|
672
|
+
let f = {
|
|
673
|
+
...be,
|
|
328
674
|
...c
|
|
329
675
|
};
|
|
330
|
-
if (e.length === 0) return /* @__PURE__ */
|
|
331
|
-
title:
|
|
332
|
-
children:
|
|
676
|
+
if (e.length === 0) return /* @__PURE__ */ I(b, {
|
|
677
|
+
title: u.title,
|
|
678
|
+
children: f.empty
|
|
333
679
|
});
|
|
334
|
-
let
|
|
680
|
+
let p = {
|
|
335
681
|
gained: 0,
|
|
336
682
|
regressed: 0,
|
|
337
683
|
both_pass: 0,
|
|
338
684
|
both_fail: 0
|
|
339
685
|
};
|
|
340
|
-
for (let t of e)
|
|
341
|
-
let
|
|
342
|
-
gained:
|
|
343
|
-
regressed:
|
|
344
|
-
both_pass:
|
|
345
|
-
both_fail:
|
|
346
|
-
},
|
|
686
|
+
for (let t of e) p[t.outcome] += 1;
|
|
687
|
+
let m = i === "all" ? e : e.filter((e) => e.outcome === i), h = {
|
|
688
|
+
gained: f.gained,
|
|
689
|
+
regressed: f.regressed,
|
|
690
|
+
both_pass: f.bothPass,
|
|
691
|
+
both_fail: f.bothFail
|
|
692
|
+
}, v = [
|
|
347
693
|
{
|
|
348
694
|
id: "specimen",
|
|
349
|
-
label:
|
|
695
|
+
label: f.specimen,
|
|
350
696
|
role: "primary",
|
|
351
|
-
cell: (e) => /* @__PURE__ */
|
|
697
|
+
cell: (e) => /* @__PURE__ */ I(n, {
|
|
352
698
|
secondary: e.family,
|
|
353
699
|
children: e.prompt
|
|
354
700
|
})
|
|
355
701
|
},
|
|
356
702
|
{
|
|
357
703
|
id: "expected",
|
|
358
|
-
label:
|
|
704
|
+
label: f.expected,
|
|
359
705
|
role: "text",
|
|
360
|
-
cell: (e) => /* @__PURE__ */
|
|
706
|
+
cell: (e) => /* @__PURE__ */ I(g, { children: e.expected })
|
|
361
707
|
},
|
|
362
708
|
{
|
|
363
709
|
id: "baseline",
|
|
364
|
-
label:
|
|
710
|
+
label: t.trim() === "" ? f.baseline : t,
|
|
365
711
|
role: "text",
|
|
366
712
|
isSecondary: !0,
|
|
367
|
-
cell: (e) => /* @__PURE__ */
|
|
713
|
+
cell: (e) => /* @__PURE__ */ I(l, {
|
|
368
714
|
variant: "mono",
|
|
369
|
-
children: /* @__PURE__ */
|
|
715
|
+
children: /* @__PURE__ */ I(N, {
|
|
370
716
|
text: e.baselineOutput,
|
|
371
717
|
query: e.expected,
|
|
372
718
|
tone: "accent"
|
|
@@ -375,11 +721,11 @@ function J({ rows: e, baselineLabel: n, candidateLabel: r, filter: i, onFilterCh
|
|
|
375
721
|
},
|
|
376
722
|
{
|
|
377
723
|
id: "candidate",
|
|
378
|
-
label: r.trim() === "" ?
|
|
724
|
+
label: r.trim() === "" ? f.candidate : r,
|
|
379
725
|
role: "text",
|
|
380
|
-
cell: (e) => /* @__PURE__ */
|
|
726
|
+
cell: (e) => /* @__PURE__ */ I(l, {
|
|
381
727
|
variant: "mono",
|
|
382
|
-
children: /* @__PURE__ */
|
|
728
|
+
children: /* @__PURE__ */ I(N, {
|
|
383
729
|
text: e.candidateOutput,
|
|
384
730
|
query: e.expected,
|
|
385
731
|
tone: "accent"
|
|
@@ -388,119 +734,119 @@ function J({ rows: e, baselineLabel: n, candidateLabel: r, filter: i, onFilterCh
|
|
|
388
734
|
},
|
|
389
735
|
{
|
|
390
736
|
id: "outcome",
|
|
391
|
-
label:
|
|
737
|
+
label: f.outcome,
|
|
392
738
|
role: "status",
|
|
393
|
-
cell: (e) => /* @__PURE__ */
|
|
394
|
-
tone:
|
|
395
|
-
children:
|
|
739
|
+
cell: (e) => /* @__PURE__ */ I(_, {
|
|
740
|
+
tone: xe[e.outcome],
|
|
741
|
+
children: h[e.outcome]
|
|
396
742
|
})
|
|
397
743
|
}
|
|
398
744
|
];
|
|
399
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ L(d, {
|
|
400
746
|
isCompact: !0,
|
|
401
747
|
children: [
|
|
402
|
-
/* @__PURE__ */ M
|
|
403
|
-
title:
|
|
404
|
-
description:
|
|
405
|
-
locale:
|
|
406
|
-
status:
|
|
407
|
-
source:
|
|
748
|
+
/* @__PURE__ */ I(M, {
|
|
749
|
+
title: f.breakdownTitle,
|
|
750
|
+
description: u.description,
|
|
751
|
+
locale: u.locale,
|
|
752
|
+
status: u.status,
|
|
753
|
+
source: u.source,
|
|
408
754
|
total: e.length,
|
|
409
755
|
valueFormat: { maximumFractionDigits: 0 },
|
|
410
756
|
items: [
|
|
411
757
|
{
|
|
412
758
|
id: "gained",
|
|
413
|
-
label:
|
|
414
|
-
value:
|
|
759
|
+
label: f.gained,
|
|
760
|
+
value: p.gained,
|
|
415
761
|
tone: "positive"
|
|
416
762
|
},
|
|
417
763
|
{
|
|
418
764
|
id: "both_pass",
|
|
419
|
-
label:
|
|
420
|
-
value:
|
|
765
|
+
label: f.bothPass,
|
|
766
|
+
value: p.both_pass,
|
|
421
767
|
tone: "series1"
|
|
422
768
|
},
|
|
423
769
|
{
|
|
424
770
|
id: "regressed",
|
|
425
|
-
label:
|
|
426
|
-
value:
|
|
771
|
+
label: f.regressed,
|
|
772
|
+
value: p.regressed,
|
|
427
773
|
tone: "negative"
|
|
428
774
|
},
|
|
429
775
|
{
|
|
430
776
|
id: "both_fail",
|
|
431
|
-
label:
|
|
432
|
-
value:
|
|
777
|
+
label: f.bothFail,
|
|
778
|
+
value: p.both_fail,
|
|
433
779
|
tone: "series5"
|
|
434
780
|
}
|
|
435
781
|
],
|
|
436
782
|
selected: i === "all" ? null : i,
|
|
437
783
|
onSelectedChange: (e) => {
|
|
438
|
-
|
|
784
|
+
Ce(e) ? a(e === i ? "all" : e) : a("all");
|
|
439
785
|
}
|
|
440
786
|
}),
|
|
441
|
-
/* @__PURE__ */
|
|
442
|
-
"aria-label":
|
|
787
|
+
/* @__PURE__ */ L(C.Root, {
|
|
788
|
+
"aria-label": f.outcome,
|
|
443
789
|
value: i,
|
|
444
790
|
onValueChange: (e) => {
|
|
445
791
|
a(e);
|
|
446
792
|
},
|
|
447
793
|
children: [
|
|
448
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ L(C.Item, {
|
|
449
795
|
value: "all",
|
|
450
796
|
children: [
|
|
451
|
-
|
|
797
|
+
f.all,
|
|
452
798
|
" (",
|
|
453
799
|
e.length,
|
|
454
800
|
")"
|
|
455
801
|
]
|
|
456
802
|
}),
|
|
457
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ L(C.Item, {
|
|
458
804
|
value: "gained",
|
|
459
805
|
children: [
|
|
460
|
-
|
|
806
|
+
f.gained,
|
|
461
807
|
" (",
|
|
462
|
-
|
|
808
|
+
p.gained,
|
|
463
809
|
")"
|
|
464
810
|
]
|
|
465
811
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
812
|
+
/* @__PURE__ */ L(C.Item, {
|
|
467
813
|
value: "regressed",
|
|
468
814
|
children: [
|
|
469
|
-
|
|
815
|
+
f.regressed,
|
|
470
816
|
" (",
|
|
471
|
-
|
|
817
|
+
p.regressed,
|
|
472
818
|
")"
|
|
473
819
|
]
|
|
474
820
|
}),
|
|
475
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ L(C.Item, {
|
|
476
822
|
value: "both_pass",
|
|
477
823
|
children: [
|
|
478
|
-
|
|
824
|
+
f.bothPass,
|
|
479
825
|
" (",
|
|
480
|
-
|
|
826
|
+
p.both_pass,
|
|
481
827
|
")"
|
|
482
828
|
]
|
|
483
829
|
}),
|
|
484
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ L(C.Item, {
|
|
485
831
|
value: "both_fail",
|
|
486
832
|
children: [
|
|
487
|
-
|
|
833
|
+
f.bothFail,
|
|
488
834
|
" (",
|
|
489
|
-
|
|
835
|
+
p.both_fail,
|
|
490
836
|
")"
|
|
491
837
|
]
|
|
492
838
|
})
|
|
493
839
|
]
|
|
494
840
|
}),
|
|
495
|
-
/* @__PURE__ */
|
|
496
|
-
caption:
|
|
841
|
+
/* @__PURE__ */ I(s, {
|
|
842
|
+
caption: u.title,
|
|
497
843
|
hideCaption: !0,
|
|
498
|
-
columns:
|
|
499
|
-
rows:
|
|
844
|
+
columns: v,
|
|
845
|
+
rows: m,
|
|
500
846
|
getRowId: (e) => e.id,
|
|
501
|
-
...
|
|
847
|
+
...o !== void 0 && { rowAction: {
|
|
502
848
|
label: (e) => `Inspect ${e.id}`,
|
|
503
|
-
onActivate:
|
|
849
|
+
onActivate: o
|
|
504
850
|
} },
|
|
505
851
|
query: {
|
|
506
852
|
mode: "local",
|
|
@@ -511,14 +857,14 @@ function J({ rows: e, baselineLabel: n, candidateLabel: r, filter: i, onFilterCh
|
|
|
511
857
|
value: (e) => e.family
|
|
512
858
|
}]
|
|
513
859
|
},
|
|
514
|
-
empty:
|
|
860
|
+
empty: f.empty,
|
|
515
861
|
filteredEmpty: "No specimens match the current filter."
|
|
516
862
|
})
|
|
517
863
|
]
|
|
518
864
|
});
|
|
519
865
|
}
|
|
520
866
|
// packages/kits/src/research/work-heartbeat.tsx
|
|
521
|
-
var
|
|
867
|
+
var Te = {
|
|
522
868
|
title: "Active work reports",
|
|
523
869
|
empty: "No active or recent work reports.",
|
|
524
870
|
nextCheckpoint: "Next checkpoint",
|
|
@@ -529,65 +875,65 @@ var Y = {
|
|
|
529
875
|
overdue: "Update overdue",
|
|
530
876
|
stopped: "Stopped"
|
|
531
877
|
}
|
|
532
|
-
},
|
|
878
|
+
}, Ee = {
|
|
533
879
|
running: "positive",
|
|
534
880
|
completed: "neutral",
|
|
535
881
|
blocked: "negative",
|
|
536
882
|
overdue: "warning",
|
|
537
883
|
stopped: "neutral"
|
|
538
884
|
};
|
|
539
|
-
function
|
|
885
|
+
function De(e) {
|
|
540
886
|
return e === void 0 ? null : Number.isFinite(e.completed) && Number.isFinite(e.total) && e.total > 0 ? e : null;
|
|
541
887
|
}
|
|
542
|
-
function
|
|
888
|
+
function Oe({ reports: e, locale: t, labels: n }) {
|
|
543
889
|
let r = {
|
|
544
|
-
...
|
|
890
|
+
...Te,
|
|
545
891
|
...n,
|
|
546
892
|
states: {
|
|
547
|
-
...
|
|
893
|
+
...Te.states,
|
|
548
894
|
...n?.states
|
|
549
895
|
}
|
|
550
896
|
};
|
|
551
|
-
return e.length === 0 ? /* @__PURE__ */
|
|
897
|
+
return e.length === 0 ? /* @__PURE__ */ I("div", {
|
|
552
898
|
className: "x1qokhjc",
|
|
553
|
-
children: /* @__PURE__ */
|
|
899
|
+
children: /* @__PURE__ */ I(l, {
|
|
554
900
|
variant: "caption",
|
|
555
901
|
tone: "muted",
|
|
556
902
|
children: r.empty
|
|
557
903
|
})
|
|
558
|
-
}) : /* @__PURE__ */
|
|
904
|
+
}) : /* @__PURE__ */ I("ul", {
|
|
559
905
|
className: "xe8uvvx x1ghz6dp x1717udv x178xt8z x13fuv20 xhjagg4",
|
|
560
906
|
children: e.map((e) => {
|
|
561
|
-
let n =
|
|
562
|
-
return /* @__PURE__ */
|
|
907
|
+
let n = De(e.progress), i = n === null ? null : Math.max(0, Math.min(100, n.completed / n.total * 100)), o = e.nextCheckpoint !== void 0 || e.executionRef !== void 0;
|
|
908
|
+
return /* @__PURE__ */ L("li", {
|
|
563
909
|
className: "x78zum5 xdt5ytf x1hnptsi x1qokhjc xso031l x1q0q8m5 x1qndepd",
|
|
564
910
|
children: [
|
|
565
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ L(p, {
|
|
566
912
|
shouldSpaceBetween: !0,
|
|
567
|
-
children: [/* @__PURE__ */
|
|
568
|
-
tone:
|
|
913
|
+
children: [/* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: e.title }) }), /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(m, {
|
|
914
|
+
tone: Ee[e.state],
|
|
569
915
|
children: r.states[e.state]
|
|
570
|
-
}), /* @__PURE__ */
|
|
916
|
+
}), /* @__PURE__ */ I(a, {
|
|
571
917
|
dateTime: e.observedAt,
|
|
572
918
|
label: e.observedLabel
|
|
573
919
|
})] })]
|
|
574
920
|
}),
|
|
575
|
-
n !== null &&
|
|
921
|
+
n !== null && i !== null && /* @__PURE__ */ L(d, {
|
|
576
922
|
isCompact: !0,
|
|
577
|
-
children: [/* @__PURE__ */
|
|
923
|
+
children: [/* @__PURE__ */ L(p, {
|
|
578
924
|
shouldSpaceBetween: !0,
|
|
579
|
-
children: [/* @__PURE__ */
|
|
925
|
+
children: [/* @__PURE__ */ L(l, {
|
|
580
926
|
variant: "caption",
|
|
581
927
|
tone: "muted",
|
|
582
928
|
children: [
|
|
583
|
-
|
|
929
|
+
O({
|
|
584
930
|
value: n.completed,
|
|
585
931
|
locale: t,
|
|
586
932
|
format: { maximumFractionDigits: 0 }
|
|
587
933
|
}),
|
|
588
934
|
" /",
|
|
589
935
|
" ",
|
|
590
|
-
|
|
936
|
+
O({
|
|
591
937
|
value: n.total,
|
|
592
938
|
locale: t,
|
|
593
939
|
format: { maximumFractionDigits: 0 }
|
|
@@ -595,10 +941,10 @@ function Q({ reports: e, locale: t, labels: n }) {
|
|
|
595
941
|
" ",
|
|
596
942
|
n.unit
|
|
597
943
|
]
|
|
598
|
-
}), /* @__PURE__ */
|
|
944
|
+
}), /* @__PURE__ */ I(_, {
|
|
599
945
|
tone: "neutral",
|
|
600
|
-
children:
|
|
601
|
-
value:
|
|
946
|
+
children: O({
|
|
947
|
+
value: i / 100,
|
|
602
948
|
locale: t,
|
|
603
949
|
format: {
|
|
604
950
|
style: "percent",
|
|
@@ -606,12 +952,12 @@ function Q({ reports: e, locale: t, labels: n }) {
|
|
|
606
952
|
}
|
|
607
953
|
})
|
|
608
954
|
})]
|
|
609
|
-
}), /* @__PURE__ */
|
|
955
|
+
}), /* @__PURE__ */ I(x, {
|
|
610
956
|
label: e.title,
|
|
611
957
|
value: n.completed,
|
|
612
958
|
max: n.total,
|
|
613
|
-
valueLabel:
|
|
614
|
-
value:
|
|
959
|
+
valueLabel: O({
|
|
960
|
+
value: i / 100,
|
|
615
961
|
locale: t,
|
|
616
962
|
format: {
|
|
617
963
|
style: "percent",
|
|
@@ -620,9 +966,9 @@ function Q({ reports: e, locale: t, labels: n }) {
|
|
|
620
966
|
})
|
|
621
967
|
})]
|
|
622
968
|
}),
|
|
623
|
-
o && /* @__PURE__ */
|
|
969
|
+
o && /* @__PURE__ */ L(p, {
|
|
624
970
|
shouldSpaceBetween: !0,
|
|
625
|
-
children: [e.nextCheckpoint === void 0 ? /* @__PURE__ */
|
|
971
|
+
children: [e.nextCheckpoint === void 0 ? /* @__PURE__ */ I("span", {}) : /* @__PURE__ */ L(l, {
|
|
626
972
|
variant: "caption",
|
|
627
973
|
tone: "muted",
|
|
628
974
|
children: [
|
|
@@ -630,11 +976,11 @@ function Q({ reports: e, locale: t, labels: n }) {
|
|
|
630
976
|
": ",
|
|
631
977
|
e.nextCheckpoint
|
|
632
978
|
]
|
|
633
|
-
}), e.executionRef !== void 0 && /* @__PURE__ */
|
|
979
|
+
}), e.executionRef !== void 0 && /* @__PURE__ */ I(g, { children: e.executionRef })]
|
|
634
980
|
})
|
|
635
981
|
]
|
|
636
982
|
}, e.id);
|
|
637
983
|
})
|
|
638
984
|
});
|
|
639
985
|
}
|
|
640
|
-
export {
|
|
986
|
+
export { re as CollectionPage, B as CollectionSection, U as FindingCard, he as LineageGraph, ye as MilestonePath, we as SpecimenDiff, Oe as WorkHeartbeat };
|