@mechane-ai/elements 0.51.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 +42 -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 +463 -183
- 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 +9 -0
- package/dist/packages/kits/src/research/index.d.ts +3 -1
- 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,71 +1,79 @@
|
|
|
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-
|
|
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
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
3
|
import { m as y, p as b, s as x, t as S } from "../src-npqwq3Sa.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
|
|
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
34
|
search: d,
|
|
27
35
|
filters: f
|
|
28
|
-
}), { actions:
|
|
36
|
+
}), { actions: V, chips: H, onKeyDown: U, openSearch: W } = t({
|
|
29
37
|
label: `${n} controls`,
|
|
30
|
-
...
|
|
31
|
-
filters:
|
|
32
|
-
isPlaceholder:
|
|
33
|
-
isReady:
|
|
34
|
-
}),
|
|
35
|
-
|
|
36
|
-
if (!
|
|
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;
|
|
37
45
|
function e(e) {
|
|
38
|
-
let t = e.key === "/" && !
|
|
39
|
-
(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());
|
|
40
48
|
}
|
|
41
49
|
return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
|
|
42
|
-
}, [
|
|
43
|
-
let
|
|
44
|
-
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,
|
|
45
53
|
hideCaption: !0,
|
|
46
|
-
rows:
|
|
54
|
+
rows: ie,
|
|
47
55
|
getRowId: o,
|
|
48
56
|
query: { mode: "frame" },
|
|
49
|
-
...
|
|
50
|
-
...
|
|
51
|
-
...
|
|
52
|
-
empty:
|
|
53
|
-
...
|
|
54
|
-
},
|
|
55
|
-
...
|
|
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,
|
|
56
64
|
columns: c
|
|
57
|
-
}) : /* @__PURE__ */
|
|
58
|
-
...
|
|
65
|
+
}) : /* @__PURE__ */ I(s, {
|
|
66
|
+
...Y,
|
|
59
67
|
columns: c,
|
|
60
68
|
sort: l,
|
|
61
69
|
onSortChange: u
|
|
62
|
-
}),
|
|
63
|
-
caption:
|
|
70
|
+
}), Z = /* @__PURE__ */ I(e, {
|
|
71
|
+
caption: K,
|
|
64
72
|
hideCaption: !0,
|
|
65
73
|
columns: c,
|
|
66
|
-
rows:
|
|
67
|
-
...
|
|
68
|
-
}),
|
|
74
|
+
rows: D,
|
|
75
|
+
...v !== void 0 && { rowSizing: v }
|
|
76
|
+
}), Q = E ?? /* @__PURE__ */ I(w, { children: /* @__PURE__ */ L(y, {
|
|
69
77
|
hasError: !0,
|
|
70
78
|
children: [
|
|
71
79
|
"Could not load ",
|
|
@@ -74,86 +82,95 @@ function B({ title: n, caption: i, rows: a, getRowId: o, columns: c, sort: l, on
|
|
|
74
82
|
]
|
|
75
83
|
}) });
|
|
76
84
|
return {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
scopeControl: re,
|
|
86
|
+
controlActions: V,
|
|
87
|
+
chips: H,
|
|
88
|
+
onKeyDown: U,
|
|
89
|
+
content: k ? /* @__PURE__ */ I(S, {
|
|
81
90
|
state: "pending",
|
|
82
91
|
label: n,
|
|
83
|
-
placeholder:
|
|
84
|
-
}) : /* @__PURE__ */
|
|
85
|
-
state:
|
|
92
|
+
placeholder: Z
|
|
93
|
+
}) : /* @__PURE__ */ I(S, {
|
|
94
|
+
state: A ? "failed" : "ready",
|
|
86
95
|
label: n,
|
|
87
|
-
placeholder:
|
|
88
|
-
children:
|
|
96
|
+
placeholder: Z,
|
|
97
|
+
children: A ? Q : X
|
|
89
98
|
}),
|
|
90
99
|
frameProps: {
|
|
91
|
-
search:
|
|
92
|
-
filters:
|
|
93
|
-
isFiltered:
|
|
100
|
+
search: q ? !0 : d,
|
|
101
|
+
filters: J ? !0 : f,
|
|
102
|
+
isFiltered: B.isFiltered
|
|
94
103
|
}
|
|
95
104
|
};
|
|
96
105
|
}
|
|
97
|
-
function
|
|
98
|
-
let { title: t, navigation: n, actions: r, notice: a, inspector: o, inspectorInitialPercent: s = 40 } = e, {
|
|
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({
|
|
99
108
|
...e,
|
|
100
109
|
hasGlobalShortcuts: !0
|
|
101
|
-
}),
|
|
102
|
-
|
|
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, {
|
|
103
116
|
label: "Applied filters",
|
|
104
|
-
children:
|
|
117
|
+
children: d
|
|
105
118
|
})] }),
|
|
106
|
-
children:
|
|
119
|
+
children: p
|
|
107
120
|
});
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
-
...
|
|
110
|
-
children: /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ I(i, {
|
|
122
|
+
...m,
|
|
123
|
+
children: /* @__PURE__ */ I("section", {
|
|
111
124
|
className: "x12lumcd xeuugli x2lwn1j x78zum5 xdt5ytf",
|
|
112
|
-
onKeyDown:
|
|
113
|
-
children: /* @__PURE__ */
|
|
125
|
+
onKeyDown: f,
|
|
126
|
+
children: /* @__PURE__ */ I(T, {
|
|
114
127
|
title: t,
|
|
115
|
-
actions:
|
|
128
|
+
actions: g,
|
|
116
129
|
navigation: n,
|
|
117
|
-
children: o === void 0 ?
|
|
130
|
+
children: o === void 0 ? _ : /* @__PURE__ */ I(E, {
|
|
118
131
|
isResizable: !0,
|
|
119
132
|
inspectorInitialPercent: s,
|
|
120
133
|
inspector: o,
|
|
121
|
-
children:
|
|
134
|
+
children: _
|
|
122
135
|
})
|
|
123
136
|
})
|
|
124
137
|
})
|
|
125
138
|
});
|
|
126
139
|
}
|
|
127
|
-
function
|
|
128
|
-
let { id: t, title: n, meta: r, actions: a, notice: o } = e, {
|
|
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({
|
|
129
142
|
...e,
|
|
130
143
|
hasGlobalShortcuts: !1
|
|
131
|
-
}),
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
...
|
|
134
|
-
children: /* @__PURE__ */
|
|
144
|
+
}), h = o != null;
|
|
145
|
+
return /* @__PURE__ */ I(i, {
|
|
146
|
+
...m,
|
|
147
|
+
children: /* @__PURE__ */ L("section", {
|
|
135
148
|
"aria-label": n,
|
|
136
149
|
className: "xeuugli x78zum5 xdt5ytf",
|
|
137
|
-
onKeyDown:
|
|
150
|
+
onKeyDown: d,
|
|
138
151
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ I(f, {
|
|
140
153
|
...t !== void 0 && { id: t },
|
|
141
154
|
title: n,
|
|
142
155
|
meta: r,
|
|
143
|
-
actions: /* @__PURE__ */
|
|
156
|
+
actions: /* @__PURE__ */ L(F, { children: [
|
|
157
|
+
s,
|
|
158
|
+
l,
|
|
159
|
+
a
|
|
160
|
+
] })
|
|
144
161
|
}),
|
|
145
|
-
|
|
146
|
-
|
|
162
|
+
h && /* @__PURE__ */ I(w, { children: o }),
|
|
163
|
+
u !== !1 && /* @__PURE__ */ I(c, {
|
|
147
164
|
label: "Applied filters",
|
|
148
|
-
children:
|
|
165
|
+
children: u
|
|
149
166
|
}),
|
|
150
|
-
|
|
167
|
+
p
|
|
151
168
|
]
|
|
152
169
|
})
|
|
153
170
|
});
|
|
154
171
|
}
|
|
155
172
|
// packages/kits/src/research/finding-card.tsx
|
|
156
|
-
var
|
|
173
|
+
var V = {
|
|
157
174
|
limitation: "Limitation",
|
|
158
175
|
details: "Full notes & evidence",
|
|
159
176
|
sources: "Sources",
|
|
@@ -163,70 +180,70 @@ var U = {
|
|
|
163
180
|
falsified: "Falsified",
|
|
164
181
|
open: "Open"
|
|
165
182
|
}
|
|
166
|
-
},
|
|
183
|
+
}, H = {
|
|
167
184
|
supported: "positive",
|
|
168
185
|
mixed: "warning",
|
|
169
186
|
falsified: "negative",
|
|
170
187
|
open: "neutral"
|
|
171
188
|
};
|
|
172
|
-
function
|
|
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 }) {
|
|
173
190
|
let S = {
|
|
174
|
-
...
|
|
191
|
+
...V,
|
|
175
192
|
...x,
|
|
176
193
|
statusLabels: {
|
|
177
|
-
...
|
|
194
|
+
...V.statusLabels,
|
|
178
195
|
...x?.statusLabels
|
|
179
196
|
}
|
|
180
197
|
};
|
|
181
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ I(h, {
|
|
182
199
|
title: e,
|
|
183
200
|
index: i,
|
|
184
|
-
meta: /* @__PURE__ */
|
|
185
|
-
tone:
|
|
201
|
+
meta: /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ I(_, {
|
|
202
|
+
tone: H[r],
|
|
186
203
|
children: S.statusLabels[r]
|
|
187
204
|
}), b] }),
|
|
188
|
-
footer: u !== void 0 || f !== void 0 || c.length > 0 ? /* @__PURE__ */
|
|
205
|
+
footer: u !== void 0 || f !== void 0 || c.length > 0 ? /* @__PURE__ */ L(p, {
|
|
189
206
|
shouldSpaceBetween: !0,
|
|
190
|
-
children: [/* @__PURE__ */
|
|
207
|
+
children: [/* @__PURE__ */ L(p, { children: [u !== void 0 && /* @__PURE__ */ I(l, {
|
|
191
208
|
variant: "caption",
|
|
192
209
|
tone: "muted",
|
|
193
210
|
children: u
|
|
194
|
-
}), f !== void 0 && /* @__PURE__ */
|
|
211
|
+
}), f !== void 0 && /* @__PURE__ */ I(a, {
|
|
195
212
|
dateTime: f,
|
|
196
213
|
label: m ?? f
|
|
197
|
-
})] }), c.length > 0 && /* @__PURE__ */
|
|
214
|
+
})] }), c.length > 0 && /* @__PURE__ */ L(p, { children: [/* @__PURE__ */ L(l, {
|
|
198
215
|
variant: "caption",
|
|
199
216
|
tone: "muted",
|
|
200
217
|
children: [S.sources, ":"]
|
|
201
|
-
}), c.map((e) => e.summary !== void 0 && e.href !== void 0 ? /* @__PURE__ */
|
|
218
|
+
}), c.map((e) => e.summary !== void 0 && e.href !== void 0 ? /* @__PURE__ */ L(k.Root, { children: [/* @__PURE__ */ I(k.Trigger, {
|
|
202
219
|
href: e.href,
|
|
203
|
-
children: /* @__PURE__ */
|
|
204
|
-
}), /* @__PURE__ */
|
|
220
|
+
children: /* @__PURE__ */ I(g, { children: e.label })
|
|
221
|
+
}), /* @__PURE__ */ I(k.Popup, { children: /* @__PURE__ */ L(d, {
|
|
205
222
|
isCompact: !0,
|
|
206
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ I(l, { children: e.label }), /* @__PURE__ */ I(l, {
|
|
207
224
|
variant: "caption",
|
|
208
225
|
tone: "muted",
|
|
209
226
|
children: e.summary
|
|
210
227
|
})]
|
|
211
|
-
}) })] }, e.id) : /* @__PURE__ */
|
|
228
|
+
}) })] }, e.id) : /* @__PURE__ */ I(g, { children: e.label }, e.id))] })]
|
|
212
229
|
}) : void 0,
|
|
213
|
-
children: /* @__PURE__ */
|
|
230
|
+
children: /* @__PURE__ */ L(d, {
|
|
214
231
|
isCompact: !0,
|
|
215
232
|
children: [
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
-
s.length > 0 && /* @__PURE__ */
|
|
233
|
+
/* @__PURE__ */ I(l, { children: t }),
|
|
234
|
+
s.length > 0 && /* @__PURE__ */ I(p, { children: s.map((e) => /* @__PURE__ */ L(_, {
|
|
218
235
|
tone: e.tone ?? "neutral",
|
|
219
236
|
children: [
|
|
220
237
|
e.label,
|
|
221
238
|
": ",
|
|
222
|
-
|
|
239
|
+
O({
|
|
223
240
|
value: e.value,
|
|
224
241
|
locale: n,
|
|
225
242
|
format: e.format
|
|
226
243
|
})
|
|
227
244
|
]
|
|
228
245
|
}, e.label)) }),
|
|
229
|
-
o !== void 0 && /* @__PURE__ */
|
|
246
|
+
o !== void 0 && /* @__PURE__ */ L(l, {
|
|
230
247
|
variant: "caption",
|
|
231
248
|
tone: "muted",
|
|
232
249
|
children: [
|
|
@@ -235,28 +252,283 @@ function G({ title: e, claim: t, locale: n, status: r, index: i, limitation: o,
|
|
|
235
252
|
o
|
|
236
253
|
]
|
|
237
254
|
}),
|
|
238
|
-
y !== void 0 && /* @__PURE__ */
|
|
255
|
+
y !== void 0 && /* @__PURE__ */ L(v.Root, { children: [/* @__PURE__ */ I(v.Trigger, {
|
|
239
256
|
variant: "inline",
|
|
240
257
|
children: S.details
|
|
241
|
-
}), /* @__PURE__ */
|
|
258
|
+
}), /* @__PURE__ */ I(v.Panel, { children: y })] })
|
|
242
259
|
]
|
|
243
260
|
})
|
|
244
261
|
});
|
|
245
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
|
+
}
|
|
246
518
|
// packages/kits/src/research/milestone-path.tsx
|
|
247
|
-
var
|
|
519
|
+
var ge = {
|
|
248
520
|
baseline: "series5",
|
|
249
521
|
result: "series1",
|
|
250
522
|
breakthrough: "positive",
|
|
251
523
|
counterexample: "negative",
|
|
252
524
|
decision: "series3"
|
|
253
|
-
},
|
|
525
|
+
}, _e = {
|
|
254
526
|
baseline: "neutral",
|
|
255
527
|
result: "neutral",
|
|
256
528
|
breakthrough: "positive",
|
|
257
529
|
counterexample: "negative",
|
|
258
530
|
decision: "warning"
|
|
259
|
-
},
|
|
531
|
+
}, ve = {
|
|
260
532
|
metric: "Score",
|
|
261
533
|
delta: "Change",
|
|
262
534
|
limitation: "Limitation",
|
|
@@ -270,24 +542,32 @@ var K = {
|
|
|
270
542
|
decision: "Decision"
|
|
271
543
|
}
|
|
272
544
|
};
|
|
273
|
-
function
|
|
545
|
+
function ye({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selected: i, onSelectedChange: a, labels: s, ...c }) {
|
|
274
546
|
let f = {
|
|
275
|
-
...
|
|
547
|
+
...ve,
|
|
276
548
|
...s,
|
|
277
549
|
kinds: {
|
|
278
|
-
...
|
|
550
|
+
...ve.kinds,
|
|
279
551
|
...s?.kinds
|
|
280
552
|
}
|
|
281
553
|
};
|
|
282
|
-
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, {
|
|
283
563
|
title: c.title,
|
|
284
564
|
children: f.empty
|
|
285
565
|
});
|
|
286
|
-
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, {
|
|
287
567
|
hasError: !0,
|
|
288
568
|
children: "Milestones must have unique identifiers."
|
|
289
569
|
});
|
|
290
|
-
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, {
|
|
291
571
|
hasError: !0,
|
|
292
572
|
children: "MilestonePath requires exactly one root milestone (parentId: null)."
|
|
293
573
|
});
|
|
@@ -297,13 +577,13 @@ function Y({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selec
|
|
|
297
577
|
label: e.label,
|
|
298
578
|
detail: e.wave === void 0 ? f.kinds[e.kind] : `${e.wave} · ${f.kinds[e.kind]}`,
|
|
299
579
|
value: e.metric ?? null,
|
|
300
|
-
tone:
|
|
580
|
+
tone: ge[e.kind]
|
|
301
581
|
})), h = Array.from(new Set(e.map((e) => e.kind))).map((e) => ({
|
|
302
582
|
id: e,
|
|
303
583
|
label: f.kinds[e],
|
|
304
|
-
tone:
|
|
584
|
+
tone: ge[e]
|
|
305
585
|
})), g = e.find((e) => e.id === i) ?? null;
|
|
306
|
-
return /* @__PURE__ */
|
|
586
|
+
return /* @__PURE__ */ L(d, { children: [/* @__PURE__ */ I(j, {
|
|
307
587
|
...c,
|
|
308
588
|
nodes: m,
|
|
309
589
|
direction: "right",
|
|
@@ -313,28 +593,28 @@ function Y({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selec
|
|
|
313
593
|
toneLegend: h,
|
|
314
594
|
selected: i,
|
|
315
595
|
onSelectedChange: a
|
|
316
|
-
}), g !== null && /* @__PURE__ */
|
|
596
|
+
}), g !== null && /* @__PURE__ */ L(d, {
|
|
317
597
|
isCompact: !0,
|
|
318
598
|
children: [
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ I(u, {}),
|
|
600
|
+
/* @__PURE__ */ L(p, {
|
|
321
601
|
shouldSpaceBetween: !0,
|
|
322
|
-
children: [/* @__PURE__ */
|
|
602
|
+
children: [/* @__PURE__ */ L(p, { children: [g.wave !== void 0 && /* @__PURE__ */ I(_, {
|
|
323
603
|
tone: "neutral",
|
|
324
604
|
children: g.wave
|
|
325
|
-
}), /* @__PURE__ */
|
|
326
|
-
tone:
|
|
605
|
+
}), /* @__PURE__ */ I(l, { children: /* @__PURE__ */ I("strong", { children: g.label }) })] }), /* @__PURE__ */ I(_, {
|
|
606
|
+
tone: _e[g.kind],
|
|
327
607
|
children: f.kinds[g.kind]
|
|
328
608
|
})]
|
|
329
609
|
}),
|
|
330
|
-
/* @__PURE__ */
|
|
610
|
+
/* @__PURE__ */ I(l, {
|
|
331
611
|
tone: "muted",
|
|
332
612
|
children: g.claim
|
|
333
613
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ I(o, { items: [
|
|
335
615
|
...g.metric === void 0 ? [] : [{
|
|
336
616
|
label: f.metric,
|
|
337
|
-
value:
|
|
617
|
+
value: O({
|
|
338
618
|
value: g.metric,
|
|
339
619
|
locale: c.locale,
|
|
340
620
|
format: n
|
|
@@ -342,7 +622,7 @@ function Y({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selec
|
|
|
342
622
|
}],
|
|
343
623
|
...g.delta === void 0 ? [] : [{
|
|
344
624
|
label: f.delta,
|
|
345
|
-
value:
|
|
625
|
+
value: O({
|
|
346
626
|
value: g.delta,
|
|
347
627
|
locale: c.locale,
|
|
348
628
|
format: r ?? n
|
|
@@ -361,7 +641,7 @@ function Y({ milestones: e, valueLabel: t, valueFormat: n, deltaFormat: r, selec
|
|
|
361
641
|
})] });
|
|
362
642
|
}
|
|
363
643
|
// packages/kits/src/research/specimen-diff.tsx
|
|
364
|
-
var
|
|
644
|
+
var be = {
|
|
365
645
|
breakdownTitle: "Paired outcome flips",
|
|
366
646
|
all: "All",
|
|
367
647
|
gained: "Gained",
|
|
@@ -374,26 +654,26 @@ var X = {
|
|
|
374
654
|
candidate: "Candidate",
|
|
375
655
|
outcome: "Outcome",
|
|
376
656
|
empty: "No paired specimens available for these two runs."
|
|
377
|
-
},
|
|
657
|
+
}, xe = {
|
|
378
658
|
gained: "positive",
|
|
379
659
|
regressed: "negative",
|
|
380
660
|
both_pass: "neutral",
|
|
381
661
|
both_fail: "neutral"
|
|
382
|
-
},
|
|
662
|
+
}, Se = /* @__PURE__ */ new Set([
|
|
383
663
|
"gained",
|
|
384
664
|
"regressed",
|
|
385
665
|
"both_pass",
|
|
386
666
|
"both_fail"
|
|
387
667
|
]);
|
|
388
|
-
function
|
|
389
|
-
return e !== null &&
|
|
668
|
+
function Ce(e) {
|
|
669
|
+
return e !== null && Se.has(e);
|
|
390
670
|
}
|
|
391
|
-
function
|
|
671
|
+
function we({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterChange: a, onSelectRow: o, labels: c, ...u }) {
|
|
392
672
|
let f = {
|
|
393
|
-
...
|
|
673
|
+
...be,
|
|
394
674
|
...c
|
|
395
675
|
};
|
|
396
|
-
if (e.length === 0) return /* @__PURE__ */
|
|
676
|
+
if (e.length === 0) return /* @__PURE__ */ I(b, {
|
|
397
677
|
title: u.title,
|
|
398
678
|
children: f.empty
|
|
399
679
|
});
|
|
@@ -414,7 +694,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
414
694
|
id: "specimen",
|
|
415
695
|
label: f.specimen,
|
|
416
696
|
role: "primary",
|
|
417
|
-
cell: (e) => /* @__PURE__ */
|
|
697
|
+
cell: (e) => /* @__PURE__ */ I(n, {
|
|
418
698
|
secondary: e.family,
|
|
419
699
|
children: e.prompt
|
|
420
700
|
})
|
|
@@ -423,16 +703,16 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
423
703
|
id: "expected",
|
|
424
704
|
label: f.expected,
|
|
425
705
|
role: "text",
|
|
426
|
-
cell: (e) => /* @__PURE__ */
|
|
706
|
+
cell: (e) => /* @__PURE__ */ I(g, { children: e.expected })
|
|
427
707
|
},
|
|
428
708
|
{
|
|
429
709
|
id: "baseline",
|
|
430
710
|
label: t.trim() === "" ? f.baseline : t,
|
|
431
711
|
role: "text",
|
|
432
712
|
isSecondary: !0,
|
|
433
|
-
cell: (e) => /* @__PURE__ */
|
|
713
|
+
cell: (e) => /* @__PURE__ */ I(l, {
|
|
434
714
|
variant: "mono",
|
|
435
|
-
children: /* @__PURE__ */
|
|
715
|
+
children: /* @__PURE__ */ I(N, {
|
|
436
716
|
text: e.baselineOutput,
|
|
437
717
|
query: e.expected,
|
|
438
718
|
tone: "accent"
|
|
@@ -443,9 +723,9 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
443
723
|
id: "candidate",
|
|
444
724
|
label: r.trim() === "" ? f.candidate : r,
|
|
445
725
|
role: "text",
|
|
446
|
-
cell: (e) => /* @__PURE__ */
|
|
726
|
+
cell: (e) => /* @__PURE__ */ I(l, {
|
|
447
727
|
variant: "mono",
|
|
448
|
-
children: /* @__PURE__ */
|
|
728
|
+
children: /* @__PURE__ */ I(N, {
|
|
449
729
|
text: e.candidateOutput,
|
|
450
730
|
query: e.expected,
|
|
451
731
|
tone: "accent"
|
|
@@ -456,16 +736,16 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
456
736
|
id: "outcome",
|
|
457
737
|
label: f.outcome,
|
|
458
738
|
role: "status",
|
|
459
|
-
cell: (e) => /* @__PURE__ */
|
|
460
|
-
tone:
|
|
739
|
+
cell: (e) => /* @__PURE__ */ I(_, {
|
|
740
|
+
tone: xe[e.outcome],
|
|
461
741
|
children: h[e.outcome]
|
|
462
742
|
})
|
|
463
743
|
}
|
|
464
744
|
];
|
|
465
|
-
return /* @__PURE__ */
|
|
745
|
+
return /* @__PURE__ */ L(d, {
|
|
466
746
|
isCompact: !0,
|
|
467
747
|
children: [
|
|
468
|
-
/* @__PURE__ */
|
|
748
|
+
/* @__PURE__ */ I(M, {
|
|
469
749
|
title: f.breakdownTitle,
|
|
470
750
|
description: u.description,
|
|
471
751
|
locale: u.locale,
|
|
@@ -501,17 +781,17 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
501
781
|
],
|
|
502
782
|
selected: i === "all" ? null : i,
|
|
503
783
|
onSelectedChange: (e) => {
|
|
504
|
-
|
|
784
|
+
Ce(e) ? a(e === i ? "all" : e) : a("all");
|
|
505
785
|
}
|
|
506
786
|
}),
|
|
507
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ L(C.Root, {
|
|
508
788
|
"aria-label": f.outcome,
|
|
509
789
|
value: i,
|
|
510
790
|
onValueChange: (e) => {
|
|
511
791
|
a(e);
|
|
512
792
|
},
|
|
513
793
|
children: [
|
|
514
|
-
/* @__PURE__ */
|
|
794
|
+
/* @__PURE__ */ L(C.Item, {
|
|
515
795
|
value: "all",
|
|
516
796
|
children: [
|
|
517
797
|
f.all,
|
|
@@ -520,7 +800,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
520
800
|
")"
|
|
521
801
|
]
|
|
522
802
|
}),
|
|
523
|
-
/* @__PURE__ */
|
|
803
|
+
/* @__PURE__ */ L(C.Item, {
|
|
524
804
|
value: "gained",
|
|
525
805
|
children: [
|
|
526
806
|
f.gained,
|
|
@@ -529,7 +809,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
529
809
|
")"
|
|
530
810
|
]
|
|
531
811
|
}),
|
|
532
|
-
/* @__PURE__ */
|
|
812
|
+
/* @__PURE__ */ L(C.Item, {
|
|
533
813
|
value: "regressed",
|
|
534
814
|
children: [
|
|
535
815
|
f.regressed,
|
|
@@ -538,7 +818,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
538
818
|
")"
|
|
539
819
|
]
|
|
540
820
|
}),
|
|
541
|
-
/* @__PURE__ */
|
|
821
|
+
/* @__PURE__ */ L(C.Item, {
|
|
542
822
|
value: "both_pass",
|
|
543
823
|
children: [
|
|
544
824
|
f.bothPass,
|
|
@@ -547,7 +827,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
547
827
|
")"
|
|
548
828
|
]
|
|
549
829
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ L(C.Item, {
|
|
551
831
|
value: "both_fail",
|
|
552
832
|
children: [
|
|
553
833
|
f.bothFail,
|
|
@@ -558,7 +838,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
558
838
|
})
|
|
559
839
|
]
|
|
560
840
|
}),
|
|
561
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ I(s, {
|
|
562
842
|
caption: u.title,
|
|
563
843
|
hideCaption: !0,
|
|
564
844
|
columns: v,
|
|
@@ -584,7 +864,7 @@ function te({ rows: e, baselineLabel: t, candidateLabel: r, filter: i, onFilterC
|
|
|
584
864
|
});
|
|
585
865
|
}
|
|
586
866
|
// packages/kits/src/research/work-heartbeat.tsx
|
|
587
|
-
var
|
|
867
|
+
var Te = {
|
|
588
868
|
title: "Active work reports",
|
|
589
869
|
empty: "No active or recent work reports.",
|
|
590
870
|
nextCheckpoint: "Next checkpoint",
|
|
@@ -595,65 +875,65 @@ var $ = {
|
|
|
595
875
|
overdue: "Update overdue",
|
|
596
876
|
stopped: "Stopped"
|
|
597
877
|
}
|
|
598
|
-
},
|
|
878
|
+
}, Ee = {
|
|
599
879
|
running: "positive",
|
|
600
880
|
completed: "neutral",
|
|
601
881
|
blocked: "negative",
|
|
602
882
|
overdue: "warning",
|
|
603
883
|
stopped: "neutral"
|
|
604
884
|
};
|
|
605
|
-
function
|
|
885
|
+
function De(e) {
|
|
606
886
|
return e === void 0 ? null : Number.isFinite(e.completed) && Number.isFinite(e.total) && e.total > 0 ? e : null;
|
|
607
887
|
}
|
|
608
|
-
function
|
|
888
|
+
function Oe({ reports: e, locale: t, labels: n }) {
|
|
609
889
|
let r = {
|
|
610
|
-
|
|
890
|
+
...Te,
|
|
611
891
|
...n,
|
|
612
892
|
states: {
|
|
613
|
-
|
|
893
|
+
...Te.states,
|
|
614
894
|
...n?.states
|
|
615
895
|
}
|
|
616
896
|
};
|
|
617
|
-
return e.length === 0 ? /* @__PURE__ */
|
|
897
|
+
return e.length === 0 ? /* @__PURE__ */ I("div", {
|
|
618
898
|
className: "x1qokhjc",
|
|
619
|
-
children: /* @__PURE__ */
|
|
899
|
+
children: /* @__PURE__ */ I(l, {
|
|
620
900
|
variant: "caption",
|
|
621
901
|
tone: "muted",
|
|
622
902
|
children: r.empty
|
|
623
903
|
})
|
|
624
|
-
}) : /* @__PURE__ */
|
|
904
|
+
}) : /* @__PURE__ */ I("ul", {
|
|
625
905
|
className: "xe8uvvx x1ghz6dp x1717udv x178xt8z x13fuv20 xhjagg4",
|
|
626
906
|
children: e.map((e) => {
|
|
627
|
-
let n =
|
|
628
|
-
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", {
|
|
629
909
|
className: "x78zum5 xdt5ytf x1hnptsi x1qokhjc xso031l x1q0q8m5 x1qndepd",
|
|
630
910
|
children: [
|
|
631
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ L(p, {
|
|
632
912
|
shouldSpaceBetween: !0,
|
|
633
|
-
children: [/* @__PURE__ */
|
|
634
|
-
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],
|
|
635
915
|
children: r.states[e.state]
|
|
636
|
-
}), /* @__PURE__ */
|
|
916
|
+
}), /* @__PURE__ */ I(a, {
|
|
637
917
|
dateTime: e.observedAt,
|
|
638
918
|
label: e.observedLabel
|
|
639
919
|
})] })]
|
|
640
920
|
}),
|
|
641
|
-
n !== null && i !== null && /* @__PURE__ */
|
|
921
|
+
n !== null && i !== null && /* @__PURE__ */ L(d, {
|
|
642
922
|
isCompact: !0,
|
|
643
|
-
children: [/* @__PURE__ */
|
|
923
|
+
children: [/* @__PURE__ */ L(p, {
|
|
644
924
|
shouldSpaceBetween: !0,
|
|
645
|
-
children: [/* @__PURE__ */
|
|
925
|
+
children: [/* @__PURE__ */ L(l, {
|
|
646
926
|
variant: "caption",
|
|
647
927
|
tone: "muted",
|
|
648
928
|
children: [
|
|
649
|
-
|
|
929
|
+
O({
|
|
650
930
|
value: n.completed,
|
|
651
931
|
locale: t,
|
|
652
932
|
format: { maximumFractionDigits: 0 }
|
|
653
933
|
}),
|
|
654
934
|
" /",
|
|
655
935
|
" ",
|
|
656
|
-
|
|
936
|
+
O({
|
|
657
937
|
value: n.total,
|
|
658
938
|
locale: t,
|
|
659
939
|
format: { maximumFractionDigits: 0 }
|
|
@@ -661,9 +941,9 @@ function ie({ reports: e, locale: t, labels: n }) {
|
|
|
661
941
|
" ",
|
|
662
942
|
n.unit
|
|
663
943
|
]
|
|
664
|
-
}), /* @__PURE__ */
|
|
944
|
+
}), /* @__PURE__ */ I(_, {
|
|
665
945
|
tone: "neutral",
|
|
666
|
-
children:
|
|
946
|
+
children: O({
|
|
667
947
|
value: i / 100,
|
|
668
948
|
locale: t,
|
|
669
949
|
format: {
|
|
@@ -672,11 +952,11 @@ function ie({ reports: e, locale: t, labels: n }) {
|
|
|
672
952
|
}
|
|
673
953
|
})
|
|
674
954
|
})]
|
|
675
|
-
}), /* @__PURE__ */
|
|
955
|
+
}), /* @__PURE__ */ I(x, {
|
|
676
956
|
label: e.title,
|
|
677
957
|
value: n.completed,
|
|
678
958
|
max: n.total,
|
|
679
|
-
valueLabel:
|
|
959
|
+
valueLabel: O({
|
|
680
960
|
value: i / 100,
|
|
681
961
|
locale: t,
|
|
682
962
|
format: {
|
|
@@ -686,9 +966,9 @@ function ie({ reports: e, locale: t, labels: n }) {
|
|
|
686
966
|
})
|
|
687
967
|
})]
|
|
688
968
|
}),
|
|
689
|
-
o && /* @__PURE__ */
|
|
969
|
+
o && /* @__PURE__ */ L(p, {
|
|
690
970
|
shouldSpaceBetween: !0,
|
|
691
|
-
children: [e.nextCheckpoint === void 0 ? /* @__PURE__ */
|
|
971
|
+
children: [e.nextCheckpoint === void 0 ? /* @__PURE__ */ I("span", {}) : /* @__PURE__ */ L(l, {
|
|
692
972
|
variant: "caption",
|
|
693
973
|
tone: "muted",
|
|
694
974
|
children: [
|
|
@@ -696,11 +976,11 @@ function ie({ reports: e, locale: t, labels: n }) {
|
|
|
696
976
|
": ",
|
|
697
977
|
e.nextCheckpoint
|
|
698
978
|
]
|
|
699
|
-
}), e.executionRef !== void 0 && /* @__PURE__ */
|
|
979
|
+
}), e.executionRef !== void 0 && /* @__PURE__ */ I(g, { children: e.executionRef })]
|
|
700
980
|
})
|
|
701
981
|
]
|
|
702
982
|
}, e.id);
|
|
703
983
|
})
|
|
704
984
|
});
|
|
705
985
|
}
|
|
706
|
-
export {
|
|
986
|
+
export { re as CollectionPage, B as CollectionSection, U as FindingCard, he as LineageGraph, ye as MilestonePath, we as SpecimenDiff, Oe as WorkHeartbeat };
|