@lincyaw/aegis-ui 0.14.0 → 0.16.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/components/ui/Breadcrumb.cjs +1 -1
- package/dist/components/ui/Breadcrumb.cjs.map +1 -1
- package/dist/components/ui/Breadcrumb.d.ts +11 -1
- package/dist/components/ui/Breadcrumb.js +26 -17
- package/dist/components/ui/Breadcrumb.js.map +1 -1
- package/dist/components/ui/RegionMap.cjs +2 -0
- package/dist/components/ui/RegionMap.cjs.map +1 -0
- package/dist/components/ui/RegionMap.d.ts +53 -0
- package/dist/components/ui/RegionMap.js +173 -0
- package/dist/components/ui/RegionMap.js.map +1 -0
- package/dist/components/ui/RollingValue.cjs.map +1 -1
- package/dist/components/ui/RollingValue.d.ts +1 -2
- package/dist/components/ui/RollingValue.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +2 -1
- package/dist/components/ui/ServiceMap.js +48 -60
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/Timeline.cjs +1 -1
- package/dist/components/ui/Timeline.cjs.map +1 -1
- package/dist/components/ui/Timeline.d.ts +16 -1
- package/dist/components/ui/Timeline.js +115 -45
- package/dist/components/ui/Timeline.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +6 -0
- package/dist/components/ui/TraceTree.js +198 -175
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/index.d.ts +4 -0
- package/dist/components/ui/workStatus.cjs +2 -0
- package/dist/components/ui/workStatus.cjs.map +1 -0
- package/dist/components/ui/workStatus.d.ts +15 -0
- package/dist/components/ui/workStatus.js +18 -0
- package/dist/components/ui/workStatus.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +175 -171
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,308 +1,331 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { usePrimitiveSurface as
|
|
5
|
-
import { useResizable as
|
|
6
|
-
import { breakAtSeparators as
|
|
7
|
-
import { formatDuration as
|
|
8
|
-
import { Chip as
|
|
9
|
-
import { StatusDot as
|
|
1
|
+
import { jsxs as b, jsx as l, Fragment as we } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as Q, useId as be, useContext as Me, useMemo as Z, useState as C, useEffect as Ne, Fragment as Se } from "react";
|
|
3
|
+
import { Tooltip as ke } from "antd";
|
|
4
|
+
import { usePrimitiveSurface as Ee } from "../../agent/core/usePrimitiveSurface.js";
|
|
5
|
+
import { useResizable as ye } from "../../hooks/useResizable.js";
|
|
6
|
+
import { breakAtSeparators as xe } from "../../lib/breakAtSeparators.js";
|
|
7
|
+
import { formatDuration as T } from "../../lib/format.js";
|
|
8
|
+
import { Chip as De } from "./Chip.js";
|
|
9
|
+
import { StatusDot as Re } from "./StatusDot.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { DefaultLink as
|
|
12
|
-
import { SelectedRowDetailContext as
|
|
13
|
-
import { statusTone as
|
|
14
|
-
import { useStrings as
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return
|
|
11
|
+
import { DefaultLink as Ae } from "./linkComponent.js";
|
|
12
|
+
import { SelectedRowDetailContext as Ce } from "./selectedRowDetail.js";
|
|
13
|
+
import { statusTone as Te } from "./traceStatus.js";
|
|
14
|
+
import { useStrings as Fe } from "../../locale/useStrings.js";
|
|
15
|
+
const Le = 180, Ie = 700, $e = 320;
|
|
16
|
+
function F(o) {
|
|
17
|
+
return o.startMs !== void 0 && o.durationMs !== void 0;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
|
|
19
|
+
function ee(o) {
|
|
20
|
+
o.every((r) => r.span.startMs !== void 0) && o.sort((r, i) => (r.span.startMs ?? 0) - (i.span.startMs ?? 0));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
function Ke(o) {
|
|
23
|
+
const r = /* @__PURE__ */ new Map();
|
|
24
|
+
o.forEach((s) => {
|
|
25
|
+
r.set(s.id, { span: s, parent: null, children: [], depth: 0 });
|
|
26
26
|
});
|
|
27
27
|
const i = [];
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
28
|
+
r.forEach((s) => {
|
|
29
|
+
const h = s.span.parentId, d = h ? r.get(h) : void 0;
|
|
30
|
+
d ? (s.parent = d, d.children.push(s)) : i.push(s);
|
|
31
31
|
});
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
f(
|
|
32
|
+
const c = /* @__PURE__ */ new Set(), f = (s, h) => {
|
|
33
|
+
c.add(s), s.depth = h, s.children.forEach((d) => {
|
|
34
|
+
f(d, h + 1);
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
i.forEach((s) => {
|
|
38
38
|
f(s, 0);
|
|
39
|
-
}),
|
|
40
|
-
if (
|
|
39
|
+
}), r.forEach((s) => {
|
|
40
|
+
if (c.has(s))
|
|
41
41
|
return;
|
|
42
|
-
const
|
|
43
|
-
let
|
|
44
|
-
for (;
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
|
|
42
|
+
const h = /* @__PURE__ */ new Set();
|
|
43
|
+
let d = s;
|
|
44
|
+
for (; d.parent !== null && !h.has(d); )
|
|
45
|
+
h.add(d), d = d.parent;
|
|
46
|
+
const p = d;
|
|
47
|
+
p.parent !== null && (p.parent.children = p.parent.children.filter((E) => E !== p), p.parent = null), i.push(p), f(p, 0);
|
|
48
48
|
});
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const M = (s) => {
|
|
50
|
+
ee(s.children), s.children.forEach(M);
|
|
51
51
|
};
|
|
52
|
-
return
|
|
52
|
+
return ee(i), i.forEach(M), i;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
function k(o, r) {
|
|
55
|
+
for (const i of o) {
|
|
56
|
+
if (i.span.id === r)
|
|
57
|
+
return i;
|
|
58
|
+
const c = k(i.children, r);
|
|
59
|
+
if (c)
|
|
60
|
+
return c;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function te(o, r, i) {
|
|
64
|
+
let c = r;
|
|
65
|
+
for (let f = k(o, i)?.parent ?? null; f !== null; f = f.parent)
|
|
66
|
+
c.has(f.span.id) && (c === r && (c = new Set(r)), c.delete(f.span.id));
|
|
67
|
+
return c;
|
|
68
|
+
}
|
|
69
|
+
function re(o, r, i = []) {
|
|
70
|
+
return o.forEach((c, f) => {
|
|
71
|
+
i.push({ node: c, position: f + 1, siblings: o.length }), r.has(c.span.id) || re(c.children, r, i);
|
|
57
72
|
}), i;
|
|
58
73
|
}
|
|
59
|
-
function
|
|
60
|
-
spans:
|
|
61
|
-
selectedId:
|
|
74
|
+
function Qe({
|
|
75
|
+
spans: o,
|
|
76
|
+
selectedId: r,
|
|
62
77
|
onSelect: i,
|
|
63
|
-
defaultCollapsedDepth:
|
|
78
|
+
defaultCollapsedDepth: c = Number.POSITIVE_INFINITY,
|
|
64
79
|
ariaLabel: f,
|
|
65
|
-
linkComponent:
|
|
80
|
+
linkComponent: M = Ae,
|
|
66
81
|
className: s,
|
|
67
|
-
style:
|
|
68
|
-
surface:
|
|
69
|
-
nameColumnWidth:
|
|
70
|
-
defaultNameColumnWidth:
|
|
71
|
-
onNameColumnWidthChange:
|
|
72
|
-
persistKey:
|
|
73
|
-
wrapName:
|
|
82
|
+
style: h,
|
|
83
|
+
surface: d,
|
|
84
|
+
nameColumnWidth: p,
|
|
85
|
+
defaultNameColumnWidth: E = $e,
|
|
86
|
+
onNameColumnWidthChange: L,
|
|
87
|
+
persistKey: I,
|
|
88
|
+
wrapName: $ = !1
|
|
74
89
|
}) {
|
|
75
|
-
const
|
|
76
|
-
const
|
|
90
|
+
const K = Q(null), j = Q(null), ae = Ee(d, o, "tree", K), y = Fe(), ne = be(), z = Me(Ce), { roots: m, traceDuration: O, traceStart: P, timed: x } = Z(() => {
|
|
91
|
+
const e = Ke(o), n = o.filter(F), a = n.length ? Math.min(...n.map((t) => t.startMs)) : 0, u = n.length ? Math.max(...n.map((t) => t.startMs + t.durationMs)) : 1;
|
|
77
92
|
return {
|
|
78
|
-
roots:
|
|
79
|
-
traceStart:
|
|
80
|
-
traceDuration: Math.max(
|
|
81
|
-
timed:
|
|
93
|
+
roots: e,
|
|
94
|
+
traceStart: a,
|
|
95
|
+
traceDuration: Math.max(u - a, 1),
|
|
96
|
+
timed: n.length > 0
|
|
82
97
|
};
|
|
83
|
-
}, [
|
|
84
|
-
const
|
|
85
|
-
|
|
98
|
+
}, [o]), [_, B] = C(() => {
|
|
99
|
+
const e = /* @__PURE__ */ new Set(), n = (a) => {
|
|
100
|
+
a.depth >= c && a.children.length > 0 && e.add(a.span.id), a.children.forEach(n);
|
|
86
101
|
};
|
|
87
|
-
return
|
|
88
|
-
}), [
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
return m.forEach(n), r === void 0 ? e : te(m, e, r);
|
|
103
|
+
}), [W, q] = C(
|
|
104
|
+
() => r !== void 0 && k(m, r) ? r : void 0
|
|
105
|
+
);
|
|
106
|
+
if (r === void 0 && W !== void 0 && q(void 0), r !== void 0 && r !== W && k(m, r)) {
|
|
107
|
+
q(r);
|
|
108
|
+
const e = te(m, _, r);
|
|
109
|
+
e !== _ && B(e);
|
|
110
|
+
}
|
|
111
|
+
const [ie, U] = C(void 0), g = Z(() => re(m, _), [m, _]), H = (e) => e === void 0 ? -1 : g.findIndex((n) => n.node.span.id === e), V = H(ie), se = V >= 0 ? V : Math.max(H(r), 0), oe = I !== void 0 ? `aegis-trace-tree-name-w:${I}` : void 0, {
|
|
112
|
+
width: D,
|
|
113
|
+
handleProps: ce,
|
|
114
|
+
isDragging: le
|
|
115
|
+
} = ye({
|
|
116
|
+
initialWidth: E,
|
|
117
|
+
minWidth: Le,
|
|
118
|
+
maxWidth: Ie,
|
|
96
119
|
side: "left",
|
|
97
|
-
persistKey:
|
|
98
|
-
}),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}, [
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
return
|
|
120
|
+
persistKey: oe
|
|
121
|
+
}), de = p ?? D;
|
|
122
|
+
Ne(() => {
|
|
123
|
+
p === void 0 && L?.(D);
|
|
124
|
+
}, [D, p, L]);
|
|
125
|
+
const R = (e) => {
|
|
126
|
+
B((n) => {
|
|
127
|
+
const a = new Set(n);
|
|
128
|
+
return a.has(e) ? a.delete(e) : a.add(e), a;
|
|
106
129
|
});
|
|
107
|
-
},
|
|
108
|
-
if (
|
|
130
|
+
}, v = (e) => {
|
|
131
|
+
if (e < 0 || e >= g.length)
|
|
109
132
|
return;
|
|
110
|
-
|
|
133
|
+
U(g[e].node.span.id), j.current?.querySelectorAll(
|
|
111
134
|
':scope > [role="treeitem"]'
|
|
112
|
-
)[
|
|
113
|
-
},
|
|
114
|
-
const { node:
|
|
115
|
-
switch (
|
|
135
|
+
)[e]?.focus();
|
|
136
|
+
}, fe = (e, n) => {
|
|
137
|
+
const { node: a } = g[n], u = a.children.length > 0, t = u && !_.has(a.span.id);
|
|
138
|
+
switch (e.key) {
|
|
116
139
|
case "ArrowDown":
|
|
117
|
-
|
|
140
|
+
v(n + 1);
|
|
118
141
|
break;
|
|
119
142
|
case "ArrowUp":
|
|
120
|
-
|
|
143
|
+
v(n - 1);
|
|
121
144
|
break;
|
|
122
145
|
case "Home":
|
|
123
|
-
|
|
146
|
+
v(0);
|
|
124
147
|
break;
|
|
125
148
|
case "End":
|
|
126
|
-
g
|
|
149
|
+
v(g.length - 1);
|
|
127
150
|
break;
|
|
128
151
|
case "ArrowRight":
|
|
129
|
-
|
|
152
|
+
t ? v(n + 1) : u && R(a.span.id);
|
|
130
153
|
break;
|
|
131
154
|
case "ArrowLeft":
|
|
132
|
-
if (
|
|
133
|
-
|
|
134
|
-
else if (
|
|
135
|
-
const
|
|
136
|
-
g
|
|
155
|
+
if (t)
|
|
156
|
+
R(a.span.id);
|
|
157
|
+
else if (a.parent !== null) {
|
|
158
|
+
const w = a.parent;
|
|
159
|
+
v(g.findIndex((N) => N.node === w));
|
|
137
160
|
}
|
|
138
161
|
break;
|
|
139
162
|
case "Enter":
|
|
140
|
-
|
|
163
|
+
a.span.to !== void 0 ? e.currentTarget.querySelector(".aegis-trace-tree__name a")?.click() : i?.(a.span);
|
|
141
164
|
break;
|
|
142
165
|
case " ":
|
|
143
|
-
i?.(
|
|
166
|
+
i?.(a.span);
|
|
144
167
|
break;
|
|
145
168
|
default:
|
|
146
169
|
return;
|
|
147
170
|
}
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
if (
|
|
151
|
-
|
|
171
|
+
e.preventDefault();
|
|
172
|
+
}, pe = (e, n) => {
|
|
173
|
+
if (e.target instanceof Element && e.target.closest("[data-trace-tree-caret]") !== null) {
|
|
174
|
+
R(n.span.id);
|
|
152
175
|
return;
|
|
153
176
|
}
|
|
154
|
-
(
|
|
155
|
-
},
|
|
177
|
+
(e.ctrlKey || e.metaKey || e.shiftKey) && e.target instanceof Element && e.target.closest(".aegis-trace-tree__name a") !== null || i?.(n.span);
|
|
178
|
+
}, he = [
|
|
156
179
|
"aegis-trace-tree",
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
180
|
+
le ? "aegis-trace-tree--dragging" : "",
|
|
181
|
+
$ ? "aegis-trace-tree--wrap" : "",
|
|
182
|
+
x ? "" : "aegis-trace-tree--untimed",
|
|
160
183
|
s ?? ""
|
|
161
|
-
].filter(Boolean).join(" "),
|
|
162
|
-
...
|
|
163
|
-
"--aegis-trace-tree-name-w": `${String(
|
|
184
|
+
].filter(Boolean).join(" "), ue = {
|
|
185
|
+
...h,
|
|
186
|
+
"--aegis-trace-tree-name-w": `${String(de)}px`
|
|
164
187
|
};
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ b("div", { ref: K, className: he, style: ue, ...ae, children: [
|
|
189
|
+
/* @__PURE__ */ l(
|
|
167
190
|
"div",
|
|
168
191
|
{
|
|
169
|
-
ref:
|
|
192
|
+
ref: j,
|
|
170
193
|
className: "aegis-trace-tree__rows",
|
|
171
194
|
role: "tree",
|
|
172
|
-
"aria-label": f ??
|
|
173
|
-
children:
|
|
174
|
-
const
|
|
195
|
+
"aria-label": f ?? y.traceSpans,
|
|
196
|
+
children: g.map(({ node: e, position: n, siblings: a }, u) => {
|
|
197
|
+
const t = e.span, w = e.children.length > 0, N = _.has(t.id), S = r === t.id, me = [
|
|
175
198
|
"aegis-trace-tree__row",
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
].filter(Boolean).join(" "),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
) : "",
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
|
|
199
|
+
t.muted ? "aegis-trace-tree__row--muted" : "",
|
|
200
|
+
S ? "aegis-trace-tree__row--selected" : "",
|
|
201
|
+
t.status === "error" ? "aegis-trace-tree__row--error" : ""
|
|
202
|
+
].filter(Boolean).join(" "), ge = F(t) ? y.traceSpanTiming(
|
|
203
|
+
T(t.startMs - P),
|
|
204
|
+
T(t.durationMs)
|
|
205
|
+
) : "", _e = t.kind ?? "", X = [ge, _e].filter(Boolean).join(" · "), Y = `${ne}-note-${String(u)}`, G = t.note !== void 0 && t.note !== null, J = $ ? xe(t.name) : t.name, ve = /* @__PURE__ */ b("div", { className: "aegis-trace-tree__tooltip", children: [
|
|
206
|
+
/* @__PURE__ */ l("div", { className: "aegis-trace-tree__tooltip-name", children: t.name }),
|
|
207
|
+
X && /* @__PURE__ */ l("div", { className: "aegis-trace-tree__tooltip-meta", children: X })
|
|
185
208
|
] });
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
209
|
+
return /* @__PURE__ */ b(Se, { children: [
|
|
210
|
+
/* @__PURE__ */ b(
|
|
188
211
|
"div",
|
|
189
212
|
{
|
|
190
|
-
ref:
|
|
191
|
-
className:
|
|
213
|
+
ref: S ? z?.placeRow : void 0,
|
|
214
|
+
className: me,
|
|
192
215
|
role: "treeitem",
|
|
193
|
-
"aria-label":
|
|
194
|
-
"aria-describedby":
|
|
195
|
-
"aria-level":
|
|
196
|
-
"aria-posinset":
|
|
197
|
-
"aria-setsize":
|
|
198
|
-
"aria-expanded":
|
|
199
|
-
"aria-selected":
|
|
200
|
-
tabIndex:
|
|
201
|
-
onClick: (
|
|
202
|
-
|
|
216
|
+
"aria-label": t.ariaLabel,
|
|
217
|
+
"aria-describedby": G ? Y : void 0,
|
|
218
|
+
"aria-level": e.depth + 1,
|
|
219
|
+
"aria-posinset": n,
|
|
220
|
+
"aria-setsize": a,
|
|
221
|
+
"aria-expanded": w ? !N : void 0,
|
|
222
|
+
"aria-selected": S ? !0 : void 0,
|
|
223
|
+
tabIndex: u === se ? 0 : -1,
|
|
224
|
+
onClick: (A) => {
|
|
225
|
+
pe(A, e);
|
|
203
226
|
},
|
|
204
|
-
onKeyDown: (
|
|
205
|
-
|
|
227
|
+
onKeyDown: (A) => {
|
|
228
|
+
fe(A, u);
|
|
206
229
|
},
|
|
207
230
|
onFocus: () => {
|
|
208
|
-
|
|
231
|
+
U(t.id);
|
|
209
232
|
},
|
|
210
233
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ b(
|
|
212
235
|
"div",
|
|
213
236
|
{
|
|
214
237
|
className: "aegis-trace-tree__label",
|
|
215
238
|
style: {
|
|
216
|
-
"--depth":
|
|
239
|
+
"--depth": e.depth
|
|
217
240
|
},
|
|
218
241
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ l(
|
|
220
243
|
"span",
|
|
221
244
|
{
|
|
222
|
-
className:
|
|
245
|
+
className: w ? "aegis-trace-tree__caret" : "aegis-trace-tree__caret aegis-trace-tree__caret--leaf",
|
|
223
246
|
"aria-hidden": "true",
|
|
224
|
-
"data-trace-tree-caret":
|
|
225
|
-
children:
|
|
247
|
+
"data-trace-tree-caret": w ? "" : void 0,
|
|
248
|
+
children: w ? N ? "▸" : "▾" : null
|
|
226
249
|
}
|
|
227
250
|
),
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
-
|
|
251
|
+
/* @__PURE__ */ l(Re, { tone: Te(t.status), size: 6 }),
|
|
252
|
+
t.kind ? /* @__PURE__ */ l(De, { tone: "ghost", className: "aegis-trace-tree__kind", children: t.kind }) : null,
|
|
253
|
+
/* @__PURE__ */ l(
|
|
254
|
+
ke,
|
|
232
255
|
{
|
|
233
256
|
placement: "topLeft",
|
|
234
257
|
mouseEnterDelay: 0.3,
|
|
235
258
|
styles: { root: { maxWidth: "var(--tooltip-max-width)" } },
|
|
236
|
-
title:
|
|
237
|
-
children: /* @__PURE__ */
|
|
238
|
-
|
|
259
|
+
title: ve,
|
|
260
|
+
children: /* @__PURE__ */ l("span", { className: "aegis-trace-tree__name", children: t.to === void 0 ? J : /* @__PURE__ */ l(
|
|
261
|
+
M,
|
|
239
262
|
{
|
|
240
|
-
to:
|
|
263
|
+
to: t.to,
|
|
241
264
|
className: "aegis-trace-tree__link",
|
|
242
265
|
tabIndex: -1,
|
|
243
|
-
children:
|
|
266
|
+
children: J
|
|
244
267
|
}
|
|
245
268
|
) })
|
|
246
269
|
}
|
|
247
270
|
),
|
|
248
|
-
|
|
271
|
+
G ? /* @__PURE__ */ l(
|
|
249
272
|
"span",
|
|
250
273
|
{
|
|
251
|
-
id:
|
|
274
|
+
id: Y,
|
|
252
275
|
className: "aegis-trace-tree__note",
|
|
253
276
|
"aria-hidden": "true",
|
|
254
|
-
children:
|
|
277
|
+
children: t.note
|
|
255
278
|
}
|
|
256
279
|
) : null
|
|
257
280
|
]
|
|
258
281
|
}
|
|
259
282
|
),
|
|
260
|
-
|
|
261
|
-
/* @__PURE__ */
|
|
283
|
+
x && /* @__PURE__ */ b(we, { children: [
|
|
284
|
+
/* @__PURE__ */ l(
|
|
262
285
|
"span",
|
|
263
286
|
{
|
|
264
287
|
className: "aegis-trace-tree__gutter",
|
|
265
288
|
"aria-hidden": "true"
|
|
266
289
|
}
|
|
267
290
|
),
|
|
268
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ l(
|
|
269
292
|
"div",
|
|
270
293
|
{
|
|
271
294
|
className: "aegis-trace-tree__bar-track",
|
|
272
295
|
"aria-hidden": "true",
|
|
273
|
-
children:
|
|
296
|
+
children: F(t) && /* @__PURE__ */ l(
|
|
274
297
|
"span",
|
|
275
298
|
{
|
|
276
299
|
className: "aegis-trace-tree__bar",
|
|
277
300
|
style: {
|
|
278
|
-
left: `${((
|
|
279
|
-
width: `${Math.max(
|
|
301
|
+
left: `${((t.startMs - P) / O * 100).toString()}%`,
|
|
302
|
+
width: `${Math.max(t.durationMs / O * 100, 0.5).toString()}%`
|
|
280
303
|
}
|
|
281
304
|
}
|
|
282
305
|
)
|
|
283
306
|
}
|
|
284
307
|
),
|
|
285
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ l("div", { className: "aegis-trace-tree__duration", children: t.durationMs !== void 0 && T(t.durationMs) })
|
|
286
309
|
] })
|
|
287
310
|
]
|
|
288
311
|
}
|
|
289
312
|
),
|
|
290
|
-
|
|
291
|
-
] },
|
|
313
|
+
S ? z?.inline : null
|
|
314
|
+
] }, t.id);
|
|
292
315
|
})
|
|
293
316
|
}
|
|
294
317
|
),
|
|
295
|
-
|
|
318
|
+
x && /* @__PURE__ */ l(
|
|
296
319
|
"div",
|
|
297
320
|
{
|
|
298
|
-
...
|
|
321
|
+
...ce,
|
|
299
322
|
className: "aegis-trace-tree__handle",
|
|
300
|
-
"aria-label":
|
|
323
|
+
"aria-label": y.resizeNameColumn
|
|
301
324
|
}
|
|
302
325
|
)
|
|
303
326
|
] });
|
|
304
327
|
}
|
|
305
328
|
export {
|
|
306
|
-
|
|
329
|
+
Qe as TraceTree
|
|
307
330
|
};
|
|
308
331
|
//# sourceMappingURL=TraceTree.js.map
|