@mechane-ai/elements 0.62.0 → 0.64.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/ai.js +7 -7
- package/dist/{article-DBRkXW1r.js → article-BopqPz1K.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +1 -1
- package/dist/{categorical-values-Bq5dMg0i.js → categorical-values-8LA9KXhi.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 -12
- 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 +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-C_Ze7QLO.js → code-block-BjQUIvvw.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-BWwMKUdd.js → commands-BI9rWGpb.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-BSR0a887.js → content-link-C3RAJ2kP.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-DNb7_KSp.js → dates-D1v_jiva.js} +2 -2
- package/dist/{dumbbell-plot-DWybxZAH.js → dumbbell-plot-QGjFMk0X.js} +3 -3
- package/dist/{embedding-map-B5JjgyGR.js → embedding-map-D_RNxsCD.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-zyCmHlgX.js → figure-frame-CF3298LZ.js} +3 -3
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-C5vXBA_C.js → forms-DlKhXUlc.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-Cgkz2fsU.js → image-grid-BXsgVBnB.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +4 -4
- package/dist/kits/interpretability.js +11 -11
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +8 -8
- package/dist/kits/training.js +5 -5
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown-BkFwgQzJ.js → markdown-B92daSMP.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-Bqouujdr.js → navigation-D3vnWiVv.js} +1 -1
- package/dist/navigation.js +3 -3
- package/dist/packages/charts/src/timeline/trace-timeline.d.ts +1 -1
- package/dist/packages/collections/src/data-table-styles.d.ts +4 -0
- package/dist/packages/collections/src/data-table-text.d.ts +3 -1
- package/dist/{param-BLGHbZoi.js → param-DfOYi9wL.js} +1 -1
- package/dist/{pierre-diff-TAaZTeg-.js → pierre-diff-DP_TXXIt.js} +1 -1
- package/dist/{plot-layout-JgEcW4fY.js → plot-layout-BfXmAi71.js} +3 -3
- package/dist/{plot-surface-CAAzoXJh.js → plot-surface-UQgDiTVe.js} +1 -1
- package/dist/{reference-lines-BGE13uMG.js → reference-lines-BRHB78Wb.js} +1 -1
- package/dist/{scene-GBAHedGg.js → scene-DlVQupfw.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-Bh7fntOb.js → slope-chart-CjXcvoRJ.js} +4 -4
- package/dist/{src-KTMBylbq.js → src-BI1xQE7D.js} +1 -1
- package/dist/{src-k0l1Y4Xl.js → src-BYmv3_AL.js} +9 -12
- package/dist/{src-D_BL6n5Q.js → src-BYnmQkDq.js} +2 -2
- package/dist/{src-CoRsRnHQ.js → src-BdQGb362.js} +4 -4
- package/dist/{src-DxZdE_P5.js → src-DPcnDU5H.js} +1 -1
- package/dist/{src-Ddx3fHei.js → src-DojhQZKX.js} +3 -3
- package/dist/{src-XMHLpSe9.js → src-P19zz_aO.js} +15 -10
- package/dist/styles2.css +103 -26
- package/dist/{time-series-_wZflmIb.js → time-series-Dg3DZRGx.js} +8 -8
- package/dist/timeline-C2IVroD3.js +923 -0
- package/dist/{token-heatmap-Chnea1Iv.js → token-heatmap-CZtIPU60.js} +3 -3
- package/dist/{token-predictions-DQEd5sj7.js → token-predictions-BJ5L-Lrm.js} +3 -3
- package/dist/{transport-CagqVWwW.js → transport-D9e0H2we.js} +4 -4
- package/dist/{tree-diagram-CL8RI9gT.js → tree-diagram-DRAJiqjW.js} +4 -4
- package/dist/{treemap-C3zmI4of.js → treemap-BdELCV7E.js} +4 -4
- package/dist/{use-tween-C2VZtQjV.js → use-tween-COV8bEYL.js} +1 -1
- package/dist/{violin-plot-CgpyGuSe.js → violin-plot-DuxqWnuD.js} +3 -3
- package/dist/{waterfall-S8CLEUib.js → waterfall-D4ewGb4u.js} +175 -176
- package/package.json +1 -1
- package/dist/timeline-DsNPo_57.js +0 -869
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { E as e, c as t, m as n } from "./src-
|
|
1
|
+
import { E as e, c as t, m as n } from "./src-BYmv3_AL.js";
|
|
2
2
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
3
|
-
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-
|
|
3
|
+
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-BfXmAi71.js";
|
|
4
4
|
import { i as ee } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { a as te } from "./tone-scope-DKiSw-JR.js";
|
|
6
6
|
import { n as p, r as m } from "./figure-format-B8kRZMlo.js";
|
|
7
7
|
import { a as h, o as ne, r as re } from "./scale-C2xgZyZN.js";
|
|
8
8
|
import { t as ie } from "./chart-cursor-1mFd48Jc.js";
|
|
9
|
-
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-
|
|
9
|
+
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-CF3298LZ.js";
|
|
10
10
|
import { n as ce } from "./plot-width-D3hTycYX.js";
|
|
11
11
|
import { t as le } from "./plot-axes-D5S9BnBa.js";
|
|
12
12
|
import { a as v, c as ue, f as de, r as y } from "./plot-marks-DgCtcd3L.js";
|
|
13
|
-
import { n as b, r as fe, t as pe } from "./plot-surface-
|
|
13
|
+
import { n as b, r as fe, t as pe } from "./plot-surface-UQgDiTVe.js";
|
|
14
14
|
import * as x from "@stylexjs/stylex";
|
|
15
15
|
import { useId as me, useState as he } from "react";
|
|
16
16
|
import { stackSpans as ge } from "@ui-sdk/core";
|
|
17
17
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
18
|
-
import {
|
|
18
|
+
import { ChevronsDownUp as _e, ChevronsUpDown as ve } from "lucide-react";
|
|
19
|
+
import { Waterfall as ye, WaterfallBar as T, WaterfallCell as be, WaterfallColumnHeader as E, WaterfallHeaderRow as xe, WaterfallRow as Se, WaterfallRowHeader as Ce } from "@ui-sdk/react/waterfall";
|
|
19
20
|
// packages/charts/src/timeline/event-strip.tsx
|
|
20
21
|
var D = {
|
|
21
22
|
lanes: 12,
|
|
22
23
|
events: 1e3
|
|
23
|
-
}, O = 24, k = 8,
|
|
24
|
+
}, O = 24, k = 8, A = 14, we = 4, j = 5, M = 14, N = 5, P = 18, F = 5, Te = .65, Ee = 6.5, De = 12, I = .5, L = .04, R = 1e3, z = 60 * R, B = 60 * z, Oe = 24 * B, ke = {
|
|
24
25
|
unit: "second",
|
|
25
|
-
size:
|
|
26
|
-
},
|
|
26
|
+
size: R
|
|
27
|
+
}, Ae = [
|
|
27
28
|
{
|
|
28
29
|
unit: "day",
|
|
29
|
-
size:
|
|
30
|
+
size: Oe
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
33
|
unit: "hour",
|
|
33
|
-
size:
|
|
34
|
+
size: B
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
unit: "minute",
|
|
37
|
-
size:
|
|
38
|
+
size: z
|
|
38
39
|
},
|
|
39
|
-
|
|
40
|
-
],
|
|
40
|
+
ke
|
|
41
|
+
], je = { separator: {
|
|
41
42
|
kfzvcC: "x47corl",
|
|
42
43
|
$$css: !0
|
|
43
44
|
} };
|
|
44
|
-
function
|
|
45
|
+
function Me(e) {
|
|
45
46
|
return d({
|
|
46
47
|
width: Infinity,
|
|
47
48
|
valueLabels: e,
|
|
@@ -49,8 +50,8 @@ function Ae(e) {
|
|
|
49
50
|
hasYTitle: !1
|
|
50
51
|
}).left;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
let n =
|
|
53
|
+
function Ne(e, t) {
|
|
54
|
+
let n = Ae.find((t) => e >= t.size) ?? ke;
|
|
54
55
|
return m({
|
|
55
56
|
value: e / n.size,
|
|
56
57
|
locale: t,
|
|
@@ -62,13 +63,13 @@ function je(e, t) {
|
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function Pe(e, t) {
|
|
66
67
|
let n = [...e.flatMap((e) => e.end === void 0 ? [e.start] : [e.start, e.end]), ...t.map((e) => e.at)];
|
|
67
|
-
if (n.length === 0) return [0,
|
|
68
|
-
let r = Math.min(...n), i = Math.max(...n), a = i - r, o = a > 0 ? Math.max(
|
|
68
|
+
if (n.length === 0) return [0, B];
|
|
69
|
+
let r = Math.min(...n), i = Math.max(...n), a = i - r, o = a > 0 ? Math.max(z, Math.round(a * L)) : B * I;
|
|
69
70
|
return [r - o, i + o];
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function Fe({ lanes: e, events: t, markers: n, domain: r, zone: i }) {
|
|
72
73
|
let a = ne(r);
|
|
73
74
|
if (a !== void 0) return a;
|
|
74
75
|
if (i === void 0) return "A function time format needs a timeZone beside it, so the axis ticks fall on that zone.";
|
|
@@ -82,19 +83,19 @@ function Ne({ lanes: e, events: t, markers: n, domain: r, zone: i }) {
|
|
|
82
83
|
});
|
|
83
84
|
return l === void 0 ? n.some((e) => h(e.at, r)) ? "A marker lies outside the domain." : void 0 : `Event ${l.id} must start inside the domain and, when it has an end, end after its start inside the domain.`;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
let { lanes: r, events: i, domain: s, markers: m = [], windows: h, defaultWindowId: ne, windowId: _e, onWindowChange: ve, gutterWidth: ye, timeFormat: T, timeZone: be, selected: E, onSelectedChange: xe, ...
|
|
86
|
+
function Ie(t) {
|
|
87
|
+
let { lanes: r, events: i, domain: s, markers: m = [], windows: h, defaultWindowId: ne, windowId: _e, onWindowChange: ve, gutterWidth: ye, timeFormat: T, timeZone: be, selected: E, onSelectedChange: xe, ...Se } = t, { emptyLabel: Ce = "No events in this window.", ...D } = Se, { locale: L, title: R } = D, z = fe("compact"), B = me(), Oe = te(), ke = ee(), Ae = h?.[0]?.id ?? "", [Me, Ie] = he(() => ne ?? Ae), V = _e ?? Me;
|
|
87
88
|
function Le(e) {
|
|
88
|
-
_e === void 0 &&
|
|
89
|
+
_e === void 0 && Ie(e), ve?.(e);
|
|
89
90
|
}
|
|
90
|
-
if (
|
|
91
|
-
...
|
|
91
|
+
if (D.status === "loading") return /* @__PURE__ */ C(ae, {
|
|
92
|
+
...D,
|
|
92
93
|
height: "compact"
|
|
93
94
|
});
|
|
94
95
|
let H = i.map((e) => e.end !== void 0 && e.end <= e.start ? {
|
|
95
96
|
...e,
|
|
96
97
|
end: void 0
|
|
97
|
-
} : e), U = s ??
|
|
98
|
+
} : e), U = s ?? Pe(H, m), Re = h === void 0 || h.length === 0 ? void 0 : h.find((e) => e.id === V) ?? h[0], W = Re?.durationMs ?? null, G = W !== null && W > 0, K = G ? [Math.max(U[0], U[1] - W), U[1]] : U, q = G ? H.flatMap((e) => {
|
|
98
99
|
if ((e.end ?? e.start) < K[0] || e.start > K[1]) return [];
|
|
99
100
|
let t = Math.max(K[0], e.start), n = e.end === void 0 ? void 0 : Math.min(K[1], e.end), r = n !== void 0 && n > t ? n : void 0;
|
|
100
101
|
return [{
|
|
@@ -102,7 +103,7 @@ function Pe(t) {
|
|
|
102
103
|
start: t,
|
|
103
104
|
end: r
|
|
104
105
|
}];
|
|
105
|
-
}) : H, ze = G ? m.filter((e) => e.at >= K[0] && e.at <= K[1]) : m, J = typeof T == "function" ? be : T.timeZone, Be =
|
|
106
|
+
}) : H, ze = G ? m.filter((e) => e.at >= K[0] && e.at <= K[1]) : m, J = typeof T == "function" ? be : T.timeZone, Be = Fe({
|
|
106
107
|
lanes: r,
|
|
107
108
|
events: q,
|
|
108
109
|
markers: ze,
|
|
@@ -110,10 +111,10 @@ function Pe(t) {
|
|
|
110
111
|
zone: J
|
|
111
112
|
});
|
|
112
113
|
if (Be !== void 0 || J === void 0) return /* @__PURE__ */ C(se, {
|
|
113
|
-
...
|
|
114
|
+
...D,
|
|
114
115
|
message: Be ?? "The strip needs a time zone."
|
|
115
116
|
});
|
|
116
|
-
let Ve = h === void 0 || h.length <= 1 ?
|
|
117
|
+
let Ve = h === void 0 || h.length <= 1 ? D.actions : /* @__PURE__ */ w(n, { children: [h.map((t) => {
|
|
117
118
|
let n = t.id === Re?.id;
|
|
118
119
|
return /* @__PURE__ */ C(e, {
|
|
119
120
|
type: "button",
|
|
@@ -123,7 +124,7 @@ function Pe(t) {
|
|
|
123
124
|
onClick: () => Le(t.id),
|
|
124
125
|
children: t.label
|
|
125
126
|
}, t.id);
|
|
126
|
-
}),
|
|
127
|
+
}), D.actions] });
|
|
127
128
|
function Y(e) {
|
|
128
129
|
return p({
|
|
129
130
|
timestamp: e,
|
|
@@ -143,7 +144,7 @@ function Pe(t) {
|
|
|
143
144
|
domain: K,
|
|
144
145
|
range: [X.left, X.left + Z]
|
|
145
146
|
}), We = ze.map((e) => {
|
|
146
|
-
let t = Ue.position(e.at), n = e.label, r = `${e.label} · ${Y(e.at)}`, i = n.length *
|
|
147
|
+
let t = Ue.position(e.at), n = e.label, r = `${e.label} · ${Y(e.at)}`, i = n.length * Ee + 10, a = t > X.left + Z * Te;
|
|
147
148
|
return {
|
|
148
149
|
marker: e,
|
|
149
150
|
at: t,
|
|
@@ -158,11 +159,11 @@ function Pe(t) {
|
|
|
158
159
|
track: "markers",
|
|
159
160
|
start: e.start,
|
|
160
161
|
end: e.end
|
|
161
|
-
}))), Ke = Math.max(0, ...We.map((e) => (Ge.get(e.marker.id)?.lane ?? 0) + 1)), qe = X.top + Ke *
|
|
162
|
+
}))), Ke = Math.max(0, ...We.map((e) => (Ge.get(e.marker.id)?.lane ?? 0) + 1)), qe = X.top + Ke * P, Je = (K[1] - K[0]) * M / Z, Ye = (K[1] - K[0]) * we / Z, Xe = ge(q.map((e) => ({
|
|
162
163
|
id: e.id,
|
|
163
164
|
track: e.laneId,
|
|
164
|
-
start: e.end === void 0 ? e.start - Je *
|
|
165
|
-
end: e.end === void 0 ? e.start + Je *
|
|
165
|
+
start: e.end === void 0 ? e.start - Je * I : e.start,
|
|
166
|
+
end: e.end === void 0 ? e.start + Je * I : Math.max(e.end, e.start + Ye)
|
|
166
167
|
}))), Ze = r.map((e) => Math.max(1, ...q.flatMap((t) => t.laneId === e.id ? [(Xe.get(t.id)?.lane ?? 0) + 1] : []))), Qe = r.flatMap((e, t) => Array.from({ length: Ze[t] ?? 1 }, (t, n) => ({
|
|
167
168
|
laneId: e.id,
|
|
168
169
|
row: n
|
|
@@ -193,13 +194,13 @@ function Pe(t) {
|
|
|
193
194
|
label: tt.labels[t] ?? ""
|
|
194
195
|
})), rt = et.map((e) => ({
|
|
195
196
|
key: e.lane.id,
|
|
196
|
-
position: (e.start + e.end) *
|
|
197
|
+
position: (e.start + e.end) * I,
|
|
197
198
|
label: e.lane.label
|
|
198
199
|
})), $ = q.map((e, t) => ({
|
|
199
200
|
event: e,
|
|
200
201
|
index: t
|
|
201
202
|
})).toSorted((e, t) => e.event.start === t.event.start ? e.index - t.index : e.event.start - t.event.start).map((e) => e.event).map((e, t) => {
|
|
202
|
-
let n = et.find((t) => t.lane.id === e.laneId), i = n?.index ?? 0, a = r[i], o = Xe.get(e.id)?.lane ?? 0, s = (n?.start ?? Q.top) + k + (o +
|
|
203
|
+
let n = et.find((t) => t.lane.id === e.laneId), i = n?.index ?? 0, a = r[i], o = Xe.get(e.id)?.lane ?? 0, s = (n?.start ?? Q.top) + k + (o + I) * O, c = Ue.position(e.start), l = e.end === void 0 ? c : Math.max(c + we, Ue.position(e.end)), u = e.tone ?? Oe({
|
|
203
204
|
id: e.laneId,
|
|
204
205
|
tone: a?.tone,
|
|
205
206
|
index: i
|
|
@@ -215,7 +216,7 @@ function Pe(t) {
|
|
|
215
216
|
tone: u
|
|
216
217
|
};
|
|
217
218
|
}), it = $.map(({ event: e, laneLabel: t }) => {
|
|
218
|
-
let n = e.end === void 0 ? Y(e.start) : `${Y(e.start)} – ${Y(e.end)} · ${
|
|
219
|
+
let n = e.end === void 0 ? Y(e.start) : `${Y(e.start)} – ${Y(e.end)} · ${Ne(e.end - e.start, L)}`;
|
|
219
220
|
return {
|
|
220
221
|
id: e.id,
|
|
221
222
|
label: [
|
|
@@ -228,14 +229,14 @@ function Pe(t) {
|
|
|
228
229
|
}), at = 1 / (r.length * 2 + 1);
|
|
229
230
|
function ot(e) {
|
|
230
231
|
let t = e.x / e.width * Q.width, n = e.y / e.height * Q.height, r, i = Infinity;
|
|
231
|
-
for (let e of $) if (t >= e.x1 -
|
|
232
|
+
for (let e of $) if (t >= e.x1 - j - N && t <= e.x2 + j + N && Math.abs(n - e.y) <= O * I) {
|
|
232
233
|
let a = Math.max(e.x1, Math.min(e.x2, t)), o = Math.hypot(t - a, n - e.y);
|
|
233
234
|
o <= i && (i = o, r = e.event.id);
|
|
234
235
|
}
|
|
235
236
|
return r;
|
|
236
237
|
}
|
|
237
238
|
return /* @__PURE__ */ C(o, {
|
|
238
|
-
...
|
|
239
|
+
...ke,
|
|
239
240
|
items: it,
|
|
240
241
|
place: (e) => {
|
|
241
242
|
let t = $.find((t) => t.event.id === e), n = t?.rank ?? 0, r = (t?.laneIndex ?? 0) * at;
|
|
@@ -252,14 +253,14 @@ function Pe(t) {
|
|
|
252
253
|
render: (e, { inspected: t, cursor: n }) => {
|
|
253
254
|
let r = $.find((e) => e.event.id === n);
|
|
254
255
|
return /* @__PURE__ */ C(oe, {
|
|
255
|
-
...
|
|
256
|
+
...D,
|
|
256
257
|
actions: Ve,
|
|
257
258
|
figure: e,
|
|
258
259
|
footer: q.length === 0 ? void 0 : /* @__PURE__ */ C(c, {
|
|
259
260
|
id: B,
|
|
260
261
|
children: a(it, t)
|
|
261
262
|
}),
|
|
262
|
-
children: q.length === 0 ? /* @__PURE__ */ C(_, { children:
|
|
263
|
+
children: q.length === 0 ? /* @__PURE__ */ C(_, { children: Ce }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(b, {
|
|
263
264
|
plotRef: z.ref,
|
|
264
265
|
box: Q,
|
|
265
266
|
label: u({
|
|
@@ -288,35 +289,35 @@ function Pe(t) {
|
|
|
288
289
|
x2: Q.right,
|
|
289
290
|
y1: e.start,
|
|
290
291
|
y2: e.start,
|
|
291
|
-
...x.props(ce.grid,
|
|
292
|
+
...x.props(ce.grid, je.separator)
|
|
292
293
|
}, e.lane.id)),
|
|
293
294
|
/* @__PURE__ */ C(pe, {
|
|
294
295
|
box: Q,
|
|
295
296
|
children: $.map((e) => e.event.end === void 0 ? /* @__PURE__ */ C(v, {
|
|
296
297
|
x: e.x1,
|
|
297
298
|
y: e.y,
|
|
298
|
-
radius:
|
|
299
|
+
radius: j,
|
|
299
300
|
tone: e.tone,
|
|
300
301
|
isInspected: t === e.event.id,
|
|
301
302
|
isSelected: E === e.event.id
|
|
302
303
|
}, e.event.id) : /* @__PURE__ */ C(y, {
|
|
303
304
|
x: e.x1,
|
|
304
|
-
y: e.y -
|
|
305
|
+
y: e.y - A * I,
|
|
305
306
|
width: e.x2 - e.x1,
|
|
306
|
-
height:
|
|
307
|
+
height: A,
|
|
307
308
|
tone: e.tone,
|
|
308
309
|
isInspected: t === e.event.id,
|
|
309
310
|
isSelected: E === e.event.id
|
|
310
311
|
}, e.event.id))
|
|
311
312
|
}),
|
|
312
313
|
We.map(({ marker: e, at: t, text: n, tooltip: r, isEnd: i }) => {
|
|
313
|
-
let a = Ge.get(e.id)?.lane ?? 0, o = Q.top - 10 - a *
|
|
314
|
+
let a = Ge.get(e.id)?.lane ?? 0, o = Q.top - 10 - a * P, s = Math.max(Q.left + F, Math.min(Q.right - F, i ? t - F : t + F));
|
|
314
315
|
return /* @__PURE__ */ w("g", { children: [
|
|
315
316
|
/* @__PURE__ */ C("title", { children: r }),
|
|
316
317
|
/* @__PURE__ */ C(de, {
|
|
317
318
|
x1: t,
|
|
318
319
|
x2: t,
|
|
319
|
-
y1: o +
|
|
320
|
+
y1: o + F,
|
|
320
321
|
y2: Q.bottom,
|
|
321
322
|
stroke: "dashed"
|
|
322
323
|
}),
|
|
@@ -329,10 +330,10 @@ function Pe(t) {
|
|
|
329
330
|
] }, e.id);
|
|
330
331
|
}),
|
|
331
332
|
r !== void 0 && /* @__PURE__ */ C(ie, {
|
|
332
|
-
x: (r.x1 + r.x2) *
|
|
333
|
+
x: (r.x1 + r.x2) * I,
|
|
333
334
|
top: Q.top,
|
|
334
335
|
bottom: Q.bottom,
|
|
335
|
-
width:
|
|
336
|
+
width: De
|
|
336
337
|
})
|
|
337
338
|
]
|
|
338
339
|
}), /* @__PURE__ */ C(g, {
|
|
@@ -351,18 +352,18 @@ function Pe(t) {
|
|
|
351
352
|
});
|
|
352
353
|
}
|
|
353
354
|
// packages/charts/src/timeline/waterfall.tsx
|
|
354
|
-
var V = 5,
|
|
355
|
+
var V = 5, Le = 6, H = 14, U = .5, Re = [
|
|
355
356
|
0,
|
|
356
357
|
.5,
|
|
357
358
|
1
|
|
358
|
-
],
|
|
359
|
+
], W = 100, G = 2, K = 14, q = 2, ze = {
|
|
359
360
|
k1xSpc: "x1rg5ohu",
|
|
360
361
|
kzqmXN: "x1v4s8kt",
|
|
361
362
|
kZKoxP: "xols6we",
|
|
362
363
|
kaIpWk: "x1cum3z5",
|
|
363
364
|
kmuXW: "x2lah0s",
|
|
364
365
|
$$css: !0
|
|
365
|
-
},
|
|
366
|
+
}, J = {
|
|
366
367
|
cell: {
|
|
367
368
|
k7Eaqz: "xeuugli",
|
|
368
369
|
k3XXqK: "x1t137rt",
|
|
@@ -372,19 +373,8 @@ var V = 5, Fe = 6, Ie = 14, Le = .5, H = [
|
|
|
372
373
|
kiEn40: "x7s97pk",
|
|
373
374
|
$$css: !0
|
|
374
375
|
},
|
|
375
|
-
nameWrap: {
|
|
376
|
-
k1xSpc: "x78zum5",
|
|
377
|
-
kGNEyG: "x6s0dn4",
|
|
378
|
-
kOIVth: "xunmzkg",
|
|
379
|
-
k7Eaqz: "xeuugli",
|
|
380
|
-
$$css: !0
|
|
381
|
-
},
|
|
382
|
-
indent: (e) => [{
|
|
383
|
-
kZCmMZ: e == null ? e : "xnvo3vl",
|
|
384
|
-
$$css: !0
|
|
385
|
-
}, { "--x-paddingInlineStart": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }],
|
|
386
376
|
leafDot: (e) => [
|
|
387
|
-
|
|
377
|
+
ze,
|
|
388
378
|
{
|
|
389
379
|
kWkggS: e == null ? e : "xl8spv7",
|
|
390
380
|
$$css: !0
|
|
@@ -394,8 +384,8 @@ var V = 5, Fe = 6, Ie = 14, Le = .5, H = [
|
|
|
394
384
|
plot: {
|
|
395
385
|
k7Eaqz: "xeuugli",
|
|
396
386
|
kUOVxO: "xl4o6ss",
|
|
397
|
-
kBCFzs: "x1npkx4u
|
|
398
|
-
kbNqZ1: "x1ms6mhf
|
|
387
|
+
kBCFzs: "x1npkx4u xv9nq3e",
|
|
388
|
+
kbNqZ1: "x1ms6mhf xp09pjw",
|
|
399
389
|
$$css: !0
|
|
400
390
|
},
|
|
401
391
|
toned: (e) => [{
|
|
@@ -403,7 +393,7 @@ var V = 5, Fe = 6, Ie = 14, Le = .5, H = [
|
|
|
403
393
|
$$css: !0
|
|
404
394
|
}, { "--x-color": e ?? void 0 }]
|
|
405
395
|
};
|
|
406
|
-
function
|
|
396
|
+
function Be(e, t) {
|
|
407
397
|
let n = /* @__PURE__ */ new Set([e]), r = [...t.get(e) ?? []], i = 0;
|
|
408
398
|
for (; r.length > 0;) {
|
|
409
399
|
let e = r.pop();
|
|
@@ -414,8 +404,8 @@ function ze(e, t) {
|
|
|
414
404
|
}
|
|
415
405
|
return i;
|
|
416
406
|
}
|
|
417
|
-
function
|
|
418
|
-
let { actions: g, ..._ } = ae, { title: ce, locale: le } = _, [v, ue] = he(() => /* @__PURE__ */ new Set()), de =
|
|
407
|
+
function Ve({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLabel: l, density: u = "comfortable", emptyLabel: d = "No timing records are available.", selected: f, selectedRef: ee, onSelectedChange: te, onClearSelection: p, highlightedIds: h, onActivate: ne, offsetFormat: ie, ...ae }) {
|
|
408
|
+
let { actions: g, ..._ } = ae, { title: ce, locale: le } = _, [v, ue] = he(() => /* @__PURE__ */ new Set()), de = Y({
|
|
419
409
|
items: r,
|
|
420
410
|
start: a,
|
|
421
411
|
end: o
|
|
@@ -427,17 +417,17 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
427
417
|
});
|
|
428
418
|
let y = s === void 0 ? a : Math.max(a, Math.min(o, s[0])), b = s === void 0 ? o : Math.max(y, Math.min(o, s[1])), fe = b - y, pe = re({
|
|
429
419
|
domain: [y, b],
|
|
430
|
-
range: [0,
|
|
431
|
-
}), me = fe > 0 ?
|
|
420
|
+
range: [0, W]
|
|
421
|
+
}), me = fe > 0 ? Re : [0], ge = r.some((e) => e.geometry.kind !== "unavailable"), S = new Map(r.map((e) => [e.id, e])), D = /* @__PURE__ */ new Map();
|
|
432
422
|
for (let e of r) if (e.parentId !== void 0 && S.has(e.parentId)) {
|
|
433
423
|
let t = D.get(e.parentId);
|
|
434
424
|
t === void 0 ? D.set(e.parentId, [e.id]) : t.push(e.id);
|
|
435
425
|
}
|
|
436
|
-
let O = new Set(D.keys()), k = O.size > 0,
|
|
437
|
-
function
|
|
438
|
-
if (e.depth !== void 0) return Math.max(0, Math.min(
|
|
426
|
+
let O = new Set(D.keys()), k = O.size > 0, A = k && [...O].every((e) => v.has(e));
|
|
427
|
+
function we(e) {
|
|
428
|
+
if (e.depth !== void 0) return Math.max(0, Math.min(Le, e.depth));
|
|
439
429
|
let t = 0, n = e.parentId, r = /* @__PURE__ */ new Set([e.id]);
|
|
440
|
-
for (; n !== void 0 && !r.has(n) && t <
|
|
430
|
+
for (; n !== void 0 && !r.has(n) && t < Le;) {
|
|
441
431
|
r.add(n);
|
|
442
432
|
let e = S.get(n);
|
|
443
433
|
if (e === void 0) break;
|
|
@@ -445,7 +435,7 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
445
435
|
}
|
|
446
436
|
return t;
|
|
447
437
|
}
|
|
448
|
-
function
|
|
438
|
+
function j(e) {
|
|
449
439
|
let t = e.parentId, n = /* @__PURE__ */ new Set([e.id]);
|
|
450
440
|
for (; t !== void 0 && !n.has(t);) {
|
|
451
441
|
if (v.has(t)) return !0;
|
|
@@ -453,22 +443,22 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
453
443
|
}
|
|
454
444
|
return !1;
|
|
455
445
|
}
|
|
456
|
-
let
|
|
457
|
-
function
|
|
446
|
+
let M = r.filter((e) => !j(e)), N = h !== void 0 && h.length > 0 ? new Set(h) : null;
|
|
447
|
+
function P(e) {
|
|
458
448
|
return m({
|
|
459
449
|
value: e,
|
|
460
450
|
locale: le,
|
|
461
451
|
format: ie
|
|
462
452
|
});
|
|
463
453
|
}
|
|
464
|
-
let
|
|
454
|
+
let F = new Map(M.map((e) => [e.id, Z({
|
|
465
455
|
geometry: e.geometry,
|
|
466
456
|
start: a,
|
|
467
|
-
offset:
|
|
468
|
-
})])), Te =
|
|
457
|
+
offset: P
|
|
458
|
+
})])), Te = M.map((e) => ({
|
|
469
459
|
value: e.id,
|
|
470
|
-
label: `${e.label} · ${e.detail} · ${e.summary} · ${
|
|
471
|
-
...
|
|
460
|
+
label: `${e.label} · ${e.detail} · ${e.summary} · ${F.get(e.id)}`,
|
|
461
|
+
...X(e.geometry)
|
|
472
462
|
}));
|
|
473
463
|
function Ee(e) {
|
|
474
464
|
ue((t) => {
|
|
@@ -476,27 +466,19 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
476
466
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
477
467
|
});
|
|
478
468
|
}
|
|
479
|
-
function
|
|
469
|
+
function De({ event: e, itemId: t, hasChildren: n, isCollapsed: r }) {
|
|
480
470
|
let i = f != null;
|
|
481
471
|
e.key === "Escape" && i && p !== void 0 ? (e.preventDefault(), p()) : n && (e.target === e.currentTarget || e.target instanceof Element && e.target.closest("[role=\"rowheader\"]") !== null) && (e.key === "ArrowLeft" && !r || e.key === "ArrowRight" && r) && (e.preventDefault(), Ee(t));
|
|
482
472
|
}
|
|
483
|
-
let
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}),
|
|
491
|
-
|
|
492
|
-
variant: "ghost",
|
|
493
|
-
density: "compact",
|
|
494
|
-
disabled: Ce,
|
|
495
|
-
onClick: () => ue(new Set(O)),
|
|
496
|
-
children: "Collapse all"
|
|
497
|
-
}),
|
|
498
|
-
g
|
|
499
|
-
] }) : g, I = u === "compact", L = j.length === 0 ? /* @__PURE__ */ C("div", {
|
|
473
|
+
let I = k ? /* @__PURE__ */ w(e, {
|
|
474
|
+
variant: "ghost",
|
|
475
|
+
density: "compact",
|
|
476
|
+
onClick: () => ue(A ? /* @__PURE__ */ new Set() : new Set(O)),
|
|
477
|
+
children: [C(A ? ve : _e, {
|
|
478
|
+
size: H,
|
|
479
|
+
"aria-hidden": !0
|
|
480
|
+
}), A ? "Expand all" : "Collapse all"]
|
|
481
|
+
}) : null, L = I === null ? g : g === void 0 ? I : /* @__PURE__ */ w(n, { children: [I, g] }), R = u === "compact", z = M.length === 0 ? /* @__PURE__ */ C("div", {
|
|
500
482
|
role: "group",
|
|
501
483
|
"aria-label": ce,
|
|
502
484
|
className: "xeuugli x1hz01jw x12h1iku",
|
|
@@ -507,31 +489,34 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
507
489
|
children: d
|
|
508
490
|
})
|
|
509
491
|
})
|
|
510
|
-
}) : /* @__PURE__ */ w(
|
|
492
|
+
}) : /* @__PURE__ */ w(ye, {
|
|
511
493
|
items: Te,
|
|
512
494
|
range: [y, b],
|
|
513
495
|
value: f ?? null,
|
|
514
496
|
onValueChange: (e, t) => {
|
|
515
497
|
e !== null && te(e, t);
|
|
516
498
|
},
|
|
517
|
-
getBarLabel: (e) =>
|
|
499
|
+
getBarLabel: (e) => F.get(e.value) ?? "",
|
|
518
500
|
"aria-label": ce,
|
|
519
501
|
className: "xeuugli x1hz01jw x12h1iku",
|
|
520
|
-
children: [/* @__PURE__ */ w(
|
|
521
|
-
className: "xrvj5dj
|
|
502
|
+
children: [/* @__PURE__ */ w(xe, {
|
|
503
|
+
className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 x1pn6w2t x1cj0dek x159bbqr xt970qd xnr6ljv x153jb6y xy8obcc xso031l x1q0q8m5 x1qndepd",
|
|
522
504
|
children: [
|
|
523
|
-
/* @__PURE__ */ C(
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
505
|
+
/* @__PURE__ */ C(E, {
|
|
506
|
+
className: "xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk",
|
|
507
|
+
children: /* @__PURE__ */ C(t, {
|
|
508
|
+
variant: "caption",
|
|
509
|
+
tone: "muted",
|
|
510
|
+
children: c
|
|
511
|
+
})
|
|
512
|
+
}),
|
|
513
|
+
/* @__PURE__ */ C(E, {
|
|
529
514
|
"aria-label": "Timing",
|
|
530
|
-
className: "xeuugli xl4o6ss x1npkx4u
|
|
531
|
-
children: ge ? me.map((e) => /* @__PURE__ */ C("span", { children:
|
|
515
|
+
className: "xeuugli xl4o6ss x1npkx4u xv9nq3e x1ms6mhf xp09pjw x78zum5 x1qughib x6s0dn4 xunmzkg xy8obcc xas2l8k xss6m8b xuxw1ft",
|
|
516
|
+
children: ge ? me.map((e) => /* @__PURE__ */ C("span", { children: P(y - a + fe * e) }, e)) : /* @__PURE__ */ C("span", { children: "Timing unavailable" })
|
|
532
517
|
}),
|
|
533
|
-
/* @__PURE__ */ C(
|
|
534
|
-
className: "xeuugli x1k3v4rp
|
|
518
|
+
/* @__PURE__ */ C(E, {
|
|
519
|
+
className: "xeuugli x1k3v4rp x1p5bc58 x1ms6mhf xp4054r xb3r6kr xuxw1ft xlyipyv xss6m8b",
|
|
535
520
|
children: /* @__PURE__ */ C(t, {
|
|
536
521
|
variant: "caption",
|
|
537
522
|
tone: "muted",
|
|
@@ -539,16 +524,16 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
539
524
|
})
|
|
540
525
|
})
|
|
541
526
|
]
|
|
542
|
-
}),
|
|
543
|
-
let n =
|
|
544
|
-
return /* @__PURE__ */ w(
|
|
527
|
+
}), M.map((e) => {
|
|
528
|
+
let n = F.get(e.id), r = f === e.id, a = N !== null && !N.has(e.id), o = e.tone ?? "neutral", s = i[o], c = we(e), l = O.has(e.id), u = v.has(e.id), d = l && u ? Be(e.id, D) : 0;
|
|
529
|
+
return /* @__PURE__ */ w(Se, {
|
|
545
530
|
value: e.id,
|
|
546
531
|
ref: r ? ee : void 0,
|
|
547
532
|
"aria-controls": e.controls,
|
|
548
533
|
onClick: (e) => {
|
|
549
534
|
r && p !== void 0 && e.detail < 2 && p();
|
|
550
535
|
},
|
|
551
|
-
onKeyDownCapture: (t) =>
|
|
536
|
+
onKeyDownCapture: (t) => De({
|
|
552
537
|
event: t,
|
|
553
538
|
itemId: e.id,
|
|
554
539
|
hasChildren: l,
|
|
@@ -556,56 +541,70 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
556
541
|
}),
|
|
557
542
|
onDoubleClick: () => ne?.(e.id),
|
|
558
543
|
...{
|
|
559
|
-
0: { className: "xrvj5dj
|
|
560
|
-
4: { className: "xrvj5dj
|
|
561
|
-
2: { className: "xrvj5dj
|
|
562
|
-
6: { className: "xrvj5dj
|
|
563
|
-
1: { className: "xrvj5dj
|
|
564
|
-
5: { className: "xrvj5dj
|
|
565
|
-
3: { className: "xrvj5dj
|
|
566
|
-
7: { className: "xrvj5dj
|
|
567
|
-
}[!!
|
|
544
|
+
0: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf x1cj0dek x1wiwyrm xt970qd xnr6ljv" },
|
|
545
|
+
4: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq x1cj0dek xu0aao5 xt970qd xnr6ljv" },
|
|
546
|
+
2: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf x1cj0dek x1wiwyrm xt970qd xnr6ljv x1r7kqkb xh3r7i3" },
|
|
547
|
+
6: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq x1cj0dek xu0aao5 xt970qd xnr6ljv x1r7kqkb xh3r7i3" },
|
|
548
|
+
1: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf x1cj0dek x1wiwyrm xt970qd xnr6ljv xtg6wg7" },
|
|
549
|
+
5: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq x1cj0dek xu0aao5 xt970qd xnr6ljv xtg6wg7" },
|
|
550
|
+
3: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf x1cj0dek x1wiwyrm xt970qd xnr6ljv x1r7kqkb xh3r7i3 xtg6wg7" },
|
|
551
|
+
7: { className: "xrvj5dj x1lyhqur x5zqw90 x1s3eg4n x6s0dn4 xxs79tx x159juyu x8zbtdt xie6hrs x1cer64c xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq x1cj0dek xu0aao5 xt970qd xnr6ljv x1r7kqkb xh3r7i3 xtg6wg7" }
|
|
552
|
+
}[!!R << 2 | !!r << 1 | !!a],
|
|
568
553
|
children: [
|
|
569
|
-
/* @__PURE__ */ C(
|
|
570
|
-
className: "xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk",
|
|
554
|
+
/* @__PURE__ */ C(Ce, {
|
|
555
|
+
className: "xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk x5yr21d x78zum5 x1qjc9v5",
|
|
571
556
|
children: /* @__PURE__ */ w("div", {
|
|
572
|
-
|
|
573
|
-
children: [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
"
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
},
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
557
|
+
className: "x78zum5 x6s0dn4 xeuugli xh8yej3 x5yr21d",
|
|
558
|
+
children: [c > 0 && /* @__PURE__ */ C("span", {
|
|
559
|
+
"aria-hidden": !0,
|
|
560
|
+
className: "x3nfvp2 x1qjc9v5 xkh2ocl x2lah0s",
|
|
561
|
+
children: Array.from({ length: c }, (e, t) => /* @__PURE__ */ C("span", {
|
|
562
|
+
className: "x1n2onr6 x1kky2od x2lah0s",
|
|
563
|
+
children: /* @__PURE__ */ C("span", { className: "x1lliihq x1d42jrs x10l6tqk x10no89f xrotz4w x1i1rx1s x1fa40ue x47corl" })
|
|
564
|
+
}, t))
|
|
565
|
+
}), /* @__PURE__ */ w("div", {
|
|
566
|
+
className: "x78zum5 x6s0dn4 xunmzkg xeuugli x98rzlu",
|
|
567
|
+
children: [l ? /* @__PURE__ */ C("button", {
|
|
568
|
+
type: "button",
|
|
569
|
+
"aria-label": u ? `Expand ${e.label}` : `Collapse ${e.label}`,
|
|
570
|
+
"aria-expanded": !u,
|
|
571
|
+
onClick: (t) => {
|
|
572
|
+
t.stopPropagation(), Ee(e.id);
|
|
573
|
+
},
|
|
574
|
+
className: "x3nfvp2 x6s0dn4 xl56j7k x1kky2od xlup9mm x2lah0s x1717udv xc342km x1ok0vyi xjbqb8w x153jb6y xy8obcc x1ypdohk x1mkwuse x16kmaj",
|
|
575
|
+
children: u ? "▸" : "▾"
|
|
576
|
+
}) : k ? /* @__PURE__ */ C("span", {
|
|
577
|
+
"aria-hidden": !0,
|
|
578
|
+
className: "x3nfvp2 x6s0dn4 xl56j7k x1kky2od xlup9mm x2lah0s",
|
|
579
|
+
children: /* @__PURE__ */ C("span", { ...x.props(J.leafDot(s)) })
|
|
580
|
+
}) : /* @__PURE__ */ C("span", { ...x.props(J.leafDot(s)) }), /* @__PURE__ */ w("div", {
|
|
581
|
+
className: "xeuugli x98rzlu xrvj5dj xfko13i",
|
|
582
|
+
children: [/* @__PURE__ */ w("span", {
|
|
583
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli",
|
|
584
|
+
children: [/* @__PURE__ */ C("span", {
|
|
585
|
+
title: `${e.label} — ${e.detail}`,
|
|
586
|
+
className: "x1lliihq xeuugli xb3r6kr xuxw1ft xlyipyv",
|
|
587
|
+
children: /* @__PURE__ */ C(t, { children: e.label })
|
|
588
|
+
}), d > 0 && /* @__PURE__ */ C("span", {
|
|
589
|
+
className: "x153jb6y xy8obcc xss6m8b x2lah0s",
|
|
590
|
+
children: `(${d})`
|
|
591
|
+
})]
|
|
592
|
+
}), !R && /* @__PURE__ */ C("span", {
|
|
593
|
+
title: e.detail,
|
|
588
594
|
className: "x1lliihq xeuugli xb3r6kr xuxw1ft xlyipyv",
|
|
589
|
-
children: /* @__PURE__ */ C(t, {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
595
|
+
children: /* @__PURE__ */ C(t, {
|
|
596
|
+
variant: "caption",
|
|
597
|
+
tone: "muted",
|
|
598
|
+
children: e.detail
|
|
599
|
+
})
|
|
593
600
|
})]
|
|
594
|
-
}), !I && /* @__PURE__ */ C("span", {
|
|
595
|
-
title: e.detail,
|
|
596
|
-
className: "x1lliihq xeuugli xb3r6kr xuxw1ft xlyipyv",
|
|
597
|
-
children: /* @__PURE__ */ C(t, {
|
|
598
|
-
variant: "caption",
|
|
599
|
-
tone: "muted",
|
|
600
|
-
children: e.detail
|
|
601
|
-
})
|
|
602
601
|
})]
|
|
603
602
|
})]
|
|
604
603
|
})
|
|
605
604
|
}),
|
|
606
|
-
/* @__PURE__ */ C(
|
|
605
|
+
/* @__PURE__ */ C(T, {
|
|
607
606
|
title: n,
|
|
608
|
-
...x.props(
|
|
607
|
+
...x.props(J.plot, J.cell, J.toned(s)),
|
|
609
608
|
children: e.geometry.kind === "unavailable" ? /* @__PURE__ */ C(t, {
|
|
610
609
|
variant: "caption",
|
|
611
610
|
tone: "muted",
|
|
@@ -614,12 +613,12 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
614
613
|
"aria-hidden": !0,
|
|
615
614
|
className: "x1lliihq xh8yej3 xmix8c7 x1rea2x4",
|
|
616
615
|
children: [me.map((e) => /* @__PURE__ */ C("line", {
|
|
617
|
-
x1: `${e *
|
|
618
|
-
x2: `${e *
|
|
616
|
+
x1: `${e * W}%`,
|
|
617
|
+
x2: `${e * W}%`,
|
|
619
618
|
y1: "0",
|
|
620
619
|
y2: "18",
|
|
621
620
|
className: "x13hfdr1"
|
|
622
|
-
}, e)), /* @__PURE__ */ C(
|
|
621
|
+
}, e)), /* @__PURE__ */ C(He, {
|
|
623
622
|
geometry: e.geometry,
|
|
624
623
|
tone: o,
|
|
625
624
|
scale: pe,
|
|
@@ -628,9 +627,9 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
628
627
|
})]
|
|
629
628
|
})
|
|
630
629
|
}),
|
|
631
|
-
/* @__PURE__ */ C(
|
|
630
|
+
/* @__PURE__ */ C(be, {
|
|
632
631
|
title: n,
|
|
633
|
-
className: "x1k3v4rp
|
|
632
|
+
className: "x1k3v4rp x1p5bc58 x1ms6mhf xp4054r xb3r6kr xuxw1ft xlyipyv xss6m8b xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk",
|
|
634
633
|
children: /* @__PURE__ */ C(t, {
|
|
635
634
|
variant: "caption",
|
|
636
635
|
tone: "muted",
|
|
@@ -643,11 +642,11 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
643
642
|
});
|
|
644
643
|
return /* @__PURE__ */ C(oe, {
|
|
645
644
|
..._,
|
|
646
|
-
actions:
|
|
647
|
-
children:
|
|
645
|
+
actions: L,
|
|
646
|
+
children: z
|
|
648
647
|
});
|
|
649
648
|
}
|
|
650
|
-
function
|
|
649
|
+
function Y({ items: e, start: t, end: n }) {
|
|
651
650
|
if (!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(n - t) || n < t) return "The timing domain must have finite, ordered endpoints.";
|
|
652
651
|
if (!s(e)) return "Timing records must have unique identifiers.";
|
|
653
652
|
for (let r of e) {
|
|
@@ -659,7 +658,7 @@ function Be({ items: e, start: t, end: n }) {
|
|
|
659
658
|
if (e.kind === "point" && (!Number.isFinite(e.at) || e.at < t || e.at > n)) return "Timing points must be finite and fit inside the supplied domain.";
|
|
660
659
|
}
|
|
661
660
|
}
|
|
662
|
-
function
|
|
661
|
+
function He({ geometry: e, tone: t, scale: n, rangeStart: a, rangeEnd: o }) {
|
|
663
662
|
switch (e.kind) {
|
|
664
663
|
case "unavailable": return null;
|
|
665
664
|
case "interval": {
|
|
@@ -671,13 +670,13 @@ function Ve({ geometry: e, tone: t, scale: n, rangeStart: a, rangeEnd: o }) {
|
|
|
671
670
|
r: 3,
|
|
672
671
|
className: "x117rol3"
|
|
673
672
|
});
|
|
674
|
-
let d = Math.max(
|
|
673
|
+
let d = Math.max(U, Math.min(W - l, u));
|
|
675
674
|
return /* @__PURE__ */ C("rect", {
|
|
676
675
|
x: `${l}%`,
|
|
677
|
-
y:
|
|
676
|
+
y: G,
|
|
678
677
|
width: `${d}%`,
|
|
679
|
-
height:
|
|
680
|
-
rx:
|
|
678
|
+
height: K,
|
|
679
|
+
rx: q,
|
|
681
680
|
fill: i[t],
|
|
682
681
|
stroke: r[t],
|
|
683
682
|
className: "xnpr05h x13efnbd"
|
|
@@ -714,7 +713,7 @@ function Ve({ geometry: e, tone: t, scale: n, rangeStart: a, rangeEnd: o }) {
|
|
|
714
713
|
}
|
|
715
714
|
}
|
|
716
715
|
}
|
|
717
|
-
function
|
|
716
|
+
function X(e) {
|
|
718
717
|
switch (e.kind) {
|
|
719
718
|
case "interval": return {
|
|
720
719
|
start: e.start,
|
|
@@ -730,11 +729,11 @@ function Y(e) {
|
|
|
730
729
|
};
|
|
731
730
|
}
|
|
732
731
|
}
|
|
733
|
-
function
|
|
732
|
+
function Z({ geometry: e, start: t, offset: n }) {
|
|
734
733
|
switch (e.kind) {
|
|
735
734
|
case "interval": return `Start ${n(e.start - t)}, end ${n(e.end - t)}, duration ${n(e.end - e.start)}`;
|
|
736
735
|
case "point": return `At ${n(e.at - t)}`;
|
|
737
736
|
case "unavailable": return "Timing unavailable";
|
|
738
737
|
}
|
|
739
738
|
}
|
|
740
|
-
export { D as i,
|
|
739
|
+
export { D as i, Ie as n, Me as r, Ve as t };
|