@knpkv/rly 0.5.0 → 0.5.1
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "./PortalProvider-CN_81Fy3.js";
|
|
2
2
|
import { n as r } from "./LinkProvider-DMkhwZ3P.js";
|
|
3
|
-
import { a as i,
|
|
4
|
-
import { A as
|
|
5
|
-
import { Portal as
|
|
6
|
-
import { useCallback as
|
|
7
|
-
import { Fragment as
|
|
8
|
-
var
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, r as l, s as u, t as d } from "./component-DKy8kjZl.js";
|
|
4
|
+
import { A as f, D as p, F as m, I as h, M as g, N as _, O as v, P as y, S as b, f as x, g as S, h as C, j as ee, k as te, o as ne, s as re, t as w, x as T } from "./Dialog-DSwimdwG.js";
|
|
5
|
+
import { Portal as ie } from "radix-ui";
|
|
6
|
+
import { useCallback as ae, useId as E, useLayoutEffect as oe, useRef as D, useState as se, useSyncExternalStore as ce } from "react";
|
|
7
|
+
import { Fragment as le, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
8
|
+
var ue = {
|
|
9
9
|
root: "rly_AgentContextButton-module__root",
|
|
10
10
|
mark: "rly_AgentContextButton-module__mark",
|
|
11
11
|
glyph: "rly_AgentContextButton-module__glyph",
|
|
@@ -17,7 +17,7 @@ var ce = {
|
|
|
17
17
|
context: "rly_AgentContextButton-module__context",
|
|
18
18
|
job: "rly_AgentContextButton-module__job",
|
|
19
19
|
count: "rly_AgentContextButton-module__count"
|
|
20
|
-
}, A = (e) =>
|
|
20
|
+
}, A = (e) => c(ue, e), de = () => /* @__PURE__ */ O("span", {
|
|
21
21
|
"aria-hidden": "true",
|
|
22
22
|
className: A("mark"),
|
|
23
23
|
children: /* @__PURE__ */ O("svg", {
|
|
@@ -29,26 +29,26 @@ var ce = {
|
|
|
29
29
|
fill: "currentColor"
|
|
30
30
|
})
|
|
31
31
|
})
|
|
32
|
-
}),
|
|
33
|
-
let
|
|
34
|
-
if (
|
|
32
|
+
}), fe = ({ actionLabel: e = "Ask agent", agentName: t, className: n, context: r, contextLabel: i = "Context", job: a, type: s, ...c }) => {
|
|
33
|
+
let l = o(e, "AgentContextButton actionLabel"), u = o(t, "AgentContextButton agentName"), f = o(r, "AgentContextButton context"), p = o(i, "AgentContextButton contextLabel"), m = a === void 0 ? void 0 : o(a.status, "AgentContextButton job status");
|
|
34
|
+
if (a?.count !== void 0 && (!Number.isInteger(a.count) || a.count < 0)) throw Error("AgentContextButton job count must be a non-negative integer");
|
|
35
35
|
return /* @__PURE__ */ k("button", {
|
|
36
36
|
...c,
|
|
37
|
-
className:
|
|
37
|
+
className: d(A("root"), n),
|
|
38
38
|
"data-rly-agent-context-button": "",
|
|
39
39
|
type: s ?? "button",
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */ O(
|
|
41
|
+
/* @__PURE__ */ O(de, {}),
|
|
42
42
|
/* @__PURE__ */ k("span", {
|
|
43
43
|
className: A("copy"),
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ O("span", {
|
|
46
46
|
className: A("action"),
|
|
47
|
-
children:
|
|
47
|
+
children: l
|
|
48
48
|
}),
|
|
49
49
|
/* @__PURE__ */ O("span", {
|
|
50
50
|
className: A("agent"),
|
|
51
|
-
children:
|
|
51
|
+
children: u
|
|
52
52
|
}),
|
|
53
53
|
/* @__PURE__ */ k("span", {
|
|
54
54
|
className: A("contextRow"),
|
|
@@ -65,14 +65,14 @@ var ce = {
|
|
|
65
65
|
m === void 0 ? null : /* @__PURE__ */ k("span", {
|
|
66
66
|
className: A("job"),
|
|
67
67
|
"data-rly-agent-job": "",
|
|
68
|
-
children: [m,
|
|
68
|
+
children: [m, a?.count === void 0 ? null : /* @__PURE__ */ O("span", {
|
|
69
69
|
className: A("count"),
|
|
70
|
-
children:
|
|
70
|
+
children: a.count
|
|
71
71
|
})]
|
|
72
72
|
})
|
|
73
73
|
]
|
|
74
74
|
});
|
|
75
|
-
},
|
|
75
|
+
}, pe = {
|
|
76
76
|
drawer: "rly_AgentDrawer-module__drawer",
|
|
77
77
|
body: "rly_AgentDrawer-module__body",
|
|
78
78
|
slot: "rly_AgentDrawer-module__slot",
|
|
@@ -85,7 +85,7 @@ var ce = {
|
|
|
85
85
|
eyebrow: "rly_AgentDrawer-module__eyebrow",
|
|
86
86
|
slotTitle: "rly_AgentDrawer-module__slotTitle",
|
|
87
87
|
contextSummary: "rly_AgentDrawer-module__contextSummary"
|
|
88
|
-
}, j = (e) =>
|
|
88
|
+
}, j = (e) => c(pe, e), me = () => /* @__PURE__ */ O("span", {
|
|
89
89
|
"aria-hidden": "true",
|
|
90
90
|
className: j("mark"),
|
|
91
91
|
children: /* @__PURE__ */ O("svg", {
|
|
@@ -97,7 +97,7 @@ var ce = {
|
|
|
97
97
|
fill: "currentColor"
|
|
98
98
|
})
|
|
99
99
|
})
|
|
100
|
-
}),
|
|
100
|
+
}), he = ({ children: e, label: t, name: n }) => /* @__PURE__ */ k("section", {
|
|
101
101
|
className: j("slot"),
|
|
102
102
|
"data-rly-agent-drawer-slot": n,
|
|
103
103
|
children: [/* @__PURE__ */ O("h2", {
|
|
@@ -107,28 +107,28 @@ var ce = {
|
|
|
107
107
|
className: j("slotContent"),
|
|
108
108
|
children: e
|
|
109
109
|
})]
|
|
110
|
-
}),
|
|
111
|
-
let h =
|
|
112
|
-
return /* @__PURE__ */ O(
|
|
110
|
+
}), ge = ({ agentName: e, capabilities: t, className: n, composer: r, context: i, contextSummary: a, evidence: s, onOpenChange: c, open: l, thread: u, title: f, ...m }) => {
|
|
111
|
+
let h = o(e, "AgentDrawer agentName"), g = o(a, "AgentDrawer contextSummary"), _ = o(f, "AgentDrawer title"), v = D(null);
|
|
112
|
+
return /* @__PURE__ */ O(p.Root, {
|
|
113
113
|
onOpenChange: c,
|
|
114
|
-
open:
|
|
115
|
-
children: /* @__PURE__ */ O(
|
|
116
|
-
className:
|
|
114
|
+
open: l,
|
|
115
|
+
children: /* @__PURE__ */ O(p.Content, {
|
|
116
|
+
className: d(j("drawer"), n),
|
|
117
117
|
description: `Context-aware session with ${h}`,
|
|
118
118
|
initialFocusRef: v,
|
|
119
119
|
title: _,
|
|
120
|
-
children: /* @__PURE__ */ k(
|
|
120
|
+
children: /* @__PURE__ */ k(p.Body, {
|
|
121
121
|
...m,
|
|
122
122
|
className: j("body"),
|
|
123
123
|
children: [
|
|
124
124
|
/* @__PURE__ */ k("section", {
|
|
125
|
-
className:
|
|
125
|
+
className: d(j("slot"), j("contextSlot")),
|
|
126
126
|
"data-rly-agent-drawer-slot": "context",
|
|
127
127
|
ref: v,
|
|
128
128
|
tabIndex: -1,
|
|
129
129
|
children: [/* @__PURE__ */ k("div", {
|
|
130
130
|
className: j("identity"),
|
|
131
|
-
children: [/* @__PURE__ */ O(
|
|
131
|
+
children: [/* @__PURE__ */ O(me, {}), /* @__PURE__ */ k("div", {
|
|
132
132
|
className: j("identityCopy"),
|
|
133
133
|
children: [/* @__PURE__ */ O("span", {
|
|
134
134
|
className: j("eyebrow"),
|
|
@@ -143,12 +143,12 @@ var ce = {
|
|
|
143
143
|
children: i
|
|
144
144
|
})]
|
|
145
145
|
}),
|
|
146
|
-
/* @__PURE__ */ O(
|
|
146
|
+
/* @__PURE__ */ O(he, {
|
|
147
147
|
label: "Evidence",
|
|
148
148
|
name: "evidence",
|
|
149
149
|
children: s
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ O(
|
|
151
|
+
/* @__PURE__ */ O(he, {
|
|
152
152
|
label: "Capabilities",
|
|
153
153
|
name: "capabilities",
|
|
154
154
|
children: t
|
|
@@ -163,10 +163,10 @@ var ce = {
|
|
|
163
163
|
children: "Thread"
|
|
164
164
|
}), /* @__PURE__ */ O("div", {
|
|
165
165
|
className: j("slotContent"),
|
|
166
|
-
children:
|
|
166
|
+
children: u
|
|
167
167
|
})]
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */ O(
|
|
169
|
+
/* @__PURE__ */ O(he, {
|
|
170
170
|
label: "Message",
|
|
171
171
|
name: "composer",
|
|
172
172
|
children: r
|
|
@@ -175,7 +175,7 @@ var ce = {
|
|
|
175
175
|
})
|
|
176
176
|
})
|
|
177
177
|
});
|
|
178
|
-
},
|
|
178
|
+
}, _e = {
|
|
179
179
|
root: "rly_AgentJob-module__root",
|
|
180
180
|
header: "rly_AgentJob-module__header",
|
|
181
181
|
agentGlyph: "rly_AgentJob-module__agentGlyph",
|
|
@@ -187,10 +187,10 @@ var ce = {
|
|
|
187
187
|
slot: "rly_AgentJob-module__slot",
|
|
188
188
|
footer: "rly_AgentJob-module__footer",
|
|
189
189
|
outcome: "rly_AgentJob-module__outcome"
|
|
190
|
-
}, M = (e) =>
|
|
190
|
+
}, M = (e) => c(_e, e), ve = (e, t) => {
|
|
191
191
|
if (e == null || i(e)) throw Error(`${t} must contain renderable content`);
|
|
192
|
-
|
|
193
|
-
},
|
|
192
|
+
s(e) && o(e, t);
|
|
193
|
+
}, ye = {
|
|
194
194
|
queued: {
|
|
195
195
|
label: "Queued",
|
|
196
196
|
tone: "neutral"
|
|
@@ -215,16 +215,16 @@ var ce = {
|
|
|
215
215
|
label: "Cancelled",
|
|
216
216
|
tone: "neutral"
|
|
217
217
|
}
|
|
218
|
-
},
|
|
218
|
+
}, be = (e) => {
|
|
219
219
|
if (e !== void 0 && (!Number.isFinite(e) || e < 0 || e > 100)) throw Error("AgentJob progress must be between 0 and 100");
|
|
220
|
-
},
|
|
221
|
-
let g = a
|
|
222
|
-
|
|
223
|
-
let x =
|
|
220
|
+
}, xe = ({ cancelLabel: e = "Request cancellation", capability: t, className: n, context: r, evidence: i, heading: a, onCancel: s, outcome: c, progress: l, provider: u, revision: f, sandbox: p, state: m, ...h }) => {
|
|
221
|
+
let g = o(a, "AgentJob heading"), _ = o(u, "AgentJob provider"), v = o(t, "AgentJob capability"), y = o(e, "AgentJob cancelLabel");
|
|
222
|
+
ve(r, "AgentJob context"), ve(i, "AgentJob evidence"), (m === "succeeded" || m === "failed" || m === "cancelled") && ve(c, "AgentJob terminal outcome"), p !== void 0 && o(p, "AgentJob sandbox"), f !== void 0 && o(f, "AgentJob revision"), be(l);
|
|
223
|
+
let x = ye[m], S = m === "queued" || m === "running", C = `rly-agent-job-progress-${E()}`;
|
|
224
224
|
return /* @__PURE__ */ k("article", {
|
|
225
225
|
...h,
|
|
226
226
|
"aria-busy": m === "queued" || m === "running" || m === "cancel-requested",
|
|
227
|
-
className:
|
|
227
|
+
className: d(M("root"), n),
|
|
228
228
|
"data-rly-agent-job-state": m,
|
|
229
229
|
children: [
|
|
230
230
|
/* @__PURE__ */ k("header", {
|
|
@@ -242,34 +242,34 @@ var ce = {
|
|
|
242
242
|
children: [
|
|
243
243
|
_,
|
|
244
244
|
" · ",
|
|
245
|
-
|
|
245
|
+
v
|
|
246
246
|
]
|
|
247
247
|
}), /* @__PURE__ */ O("h2", { children: g })]
|
|
248
248
|
}),
|
|
249
|
-
/* @__PURE__ */ O(
|
|
249
|
+
/* @__PURE__ */ O(T, {
|
|
250
250
|
label: x.label,
|
|
251
251
|
size: "compact",
|
|
252
252
|
tone: x.tone
|
|
253
253
|
})
|
|
254
254
|
]
|
|
255
255
|
}),
|
|
256
|
-
|
|
256
|
+
l === void 0 ? null : /* @__PURE__ */ k("div", {
|
|
257
257
|
className: M("progressBlock"),
|
|
258
258
|
children: [/* @__PURE__ */ k("span", {
|
|
259
259
|
className: M("progressLabel"),
|
|
260
260
|
id: C,
|
|
261
|
-
children: ["Progress ", /* @__PURE__ */ k("strong", { children: [Math.round(
|
|
261
|
+
children: ["Progress ", /* @__PURE__ */ k("strong", { children: [Math.round(l), "%"] })]
|
|
262
262
|
}), /* @__PURE__ */ O("progress", {
|
|
263
263
|
"aria-labelledby": C,
|
|
264
264
|
max: 100,
|
|
265
|
-
value:
|
|
265
|
+
value: l
|
|
266
266
|
})]
|
|
267
267
|
}),
|
|
268
268
|
/* @__PURE__ */ k("dl", {
|
|
269
269
|
className: M("metadata"),
|
|
270
270
|
children: [
|
|
271
271
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", { children: "Provider" }), /* @__PURE__ */ O("dd", { children: _ })] }),
|
|
272
|
-
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", { children: "Capability" }), /* @__PURE__ */ O("dd", { children:
|
|
272
|
+
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", { children: "Capability" }), /* @__PURE__ */ O("dd", { children: v })] }),
|
|
273
273
|
p === void 0 ? null : /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", { children: "Sandbox" }), /* @__PURE__ */ O("dd", { children: /* @__PURE__ */ O("code", { children: p }) })] }),
|
|
274
274
|
f === void 0 ? null : /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("dt", { children: "Revision" }), /* @__PURE__ */ O("dd", { children: /* @__PURE__ */ O("code", { children: f }) })] })
|
|
275
275
|
]
|
|
@@ -285,22 +285,22 @@ var ce = {
|
|
|
285
285
|
children: [/* @__PURE__ */ O("h3", { children: "Evidence" }), i]
|
|
286
286
|
}),
|
|
287
287
|
c === void 0 ? null : /* @__PURE__ */ k("section", {
|
|
288
|
-
className:
|
|
288
|
+
className: d(M("slot"), M("outcome")),
|
|
289
289
|
"data-rly-agent-job-outcome": m,
|
|
290
290
|
children: [/* @__PURE__ */ O("h3", { children: "Terminal outcome" }), c]
|
|
291
291
|
}),
|
|
292
292
|
S && s !== void 0 ? /* @__PURE__ */ O("footer", {
|
|
293
293
|
className: M("footer"),
|
|
294
|
-
children: /* @__PURE__ */ O(
|
|
294
|
+
children: /* @__PURE__ */ O(b, {
|
|
295
295
|
onClick: s,
|
|
296
296
|
size: "compact",
|
|
297
297
|
variant: "quiet",
|
|
298
|
-
children:
|
|
298
|
+
children: y
|
|
299
299
|
})
|
|
300
300
|
}) : null
|
|
301
301
|
]
|
|
302
302
|
});
|
|
303
|
-
},
|
|
303
|
+
}, Se = {
|
|
304
304
|
root: "rly_AgentProposal-module__root",
|
|
305
305
|
header: "rly_AgentProposal-module__header",
|
|
306
306
|
agentIdentity: "rly_AgentProposal-module__agentIdentity",
|
|
@@ -315,30 +315,30 @@ var ce = {
|
|
|
315
315
|
outcome: "rly_AgentProposal-module__outcome",
|
|
316
316
|
state: "rly_AgentProposal-module__state",
|
|
317
317
|
facts: "rly_AgentProposal-module__facts"
|
|
318
|
-
}, N = (e) =>
|
|
319
|
-
|
|
320
|
-
},
|
|
321
|
-
if (
|
|
318
|
+
}, N = (e) => c(Se, e), Ce = (e) => {
|
|
319
|
+
o(e.id, "AgentProposal agent id"), o(e.name, "AgentProposal agent name"), o(e.role, "AgentProposal agent role"), o(e.avatarFallback, "AgentProposal agent avatarFallback"), e.avatarSrc !== void 0 && o(e.avatarSrc, "AgentProposal agent avatarSrc");
|
|
320
|
+
}, we = (e) => {
|
|
321
|
+
if (o(e.id, "AgentProposal id"), Ce(e.agent), o(e.capability, "AgentProposal capability"), o(e.context, "AgentProposal context"), o(e.expectedRevision, "AgentProposal expectedRevision"), o(e.impact, "AgentProposal impact"), o(e.target, "AgentProposal target"), e.evidence.length === 0) throw Error("AgentProposal evidence must contain at least one reference");
|
|
322
322
|
let t = /* @__PURE__ */ new Set();
|
|
323
323
|
for (let n of e.evidence) {
|
|
324
|
-
let e =
|
|
324
|
+
let e = o(n.id, "AgentProposal evidence id");
|
|
325
325
|
if (t.has(e)) throw Error(`AgentProposal evidence ids must be unique: ${e}`);
|
|
326
|
-
t.add(e),
|
|
326
|
+
t.add(e), o(n.label, `AgentProposal evidence label for ${e}`), o(n.reference, `AgentProposal evidence reference for ${e}`);
|
|
327
327
|
}
|
|
328
328
|
return e;
|
|
329
|
-
},
|
|
330
|
-
let a =
|
|
329
|
+
}, Te = ({ className: e, outcome: t, proposal: n, state: r, ...i }) => {
|
|
330
|
+
let a = we(n), o = `rly-agent-proposal-${E()}`, s = `rly-agent-proposal-reference-${E()}`;
|
|
331
331
|
return /* @__PURE__ */ k("section", {
|
|
332
332
|
...i,
|
|
333
333
|
"aria-labelledby": `${o} ${s}`,
|
|
334
|
-
className:
|
|
334
|
+
className: d(N("root"), e),
|
|
335
335
|
"data-rly-agent-proposal-id": a.id,
|
|
336
336
|
children: [
|
|
337
337
|
/* @__PURE__ */ k("header", {
|
|
338
338
|
className: N("header"),
|
|
339
339
|
children: [/* @__PURE__ */ k("div", {
|
|
340
340
|
className: N("agentIdentity"),
|
|
341
|
-
children: [/* @__PURE__ */ O(
|
|
341
|
+
children: [/* @__PURE__ */ O(S, {
|
|
342
342
|
decorative: !0,
|
|
343
343
|
fallback: a.agent.avatarFallback,
|
|
344
344
|
form: "rounded-square",
|
|
@@ -401,7 +401,7 @@ var ce = {
|
|
|
401
401
|
})
|
|
402
402
|
]
|
|
403
403
|
});
|
|
404
|
-
},
|
|
404
|
+
}, Ee = {
|
|
405
405
|
root: "rly_AgentThread-module__root",
|
|
406
406
|
header: "rly_AgentThread-module__header",
|
|
407
407
|
messageHead: "rly_AgentThread-module__messageHead",
|
|
@@ -422,24 +422,24 @@ var ce = {
|
|
|
422
422
|
content: "rly_AgentThread-module__content",
|
|
423
423
|
evidence: "rly_AgentThread-module__evidence",
|
|
424
424
|
visuallyHidden: "rly_AgentThread-module__visuallyHidden"
|
|
425
|
-
}, P = (e) =>
|
|
425
|
+
}, P = (e) => c(Ee, e), De = (e, t) => {
|
|
426
426
|
if (e == null || i(e)) throw Error(`${t} must contain renderable content`);
|
|
427
|
-
|
|
428
|
-
},
|
|
427
|
+
s(e) && o(e, t);
|
|
428
|
+
}, Oe = (e) => {
|
|
429
429
|
let t = e.trim().split(/\s+/u), n = Array.from(t[0] ?? "")[0] ?? "", r = Array.from(t[t.length - 1] ?? "")[0] ?? "";
|
|
430
|
-
return
|
|
431
|
-
},
|
|
430
|
+
return o(`${n}${t.length > 1 ? r : ""}`, "AgentThread actor fallback");
|
|
431
|
+
}, ke = (e) => {
|
|
432
432
|
if (e.kind === "human") {
|
|
433
|
-
|
|
433
|
+
o(e.person.id, "AgentThread human id"), o(e.person.name, "AgentThread human name"), o(e.person.role, "AgentThread human role"), e.person.avatarFallback !== void 0 && o(e.person.avatarFallback, "AgentThread human avatarFallback"), e.person.avatarSrc !== void 0 && o(e.person.avatarSrc, "AgentThread human avatarSrc");
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
|
-
|
|
437
|
-
},
|
|
438
|
-
let t = e.kind === "human" ? e.person.name : e.name, n = e.kind === "human" ? e.person.role : e.kind === "agent" ? e.role : "System event", r = e.kind === "human" ? e.person.avatarFallback ??
|
|
436
|
+
o(e.id, `AgentThread ${e.kind} id`), o(e.name, `AgentThread ${e.kind} name`), e.kind === "agent" && (o(e.role, "AgentThread agent role"), e.avatarFallback !== void 0 && o(e.avatarFallback, "AgentThread agent avatarFallback"));
|
|
437
|
+
}, Ae = (e) => {
|
|
438
|
+
let t = e.kind === "human" ? e.person.name : e.name, n = e.kind === "human" ? e.person.role : e.kind === "agent" ? e.role : "System event", r = e.kind === "human" ? e.person.avatarFallback ?? Oe(t) : e.kind === "agent" ? e.avatarFallback ?? Oe(t) : "·", i = e.kind === "human" ? e.person.avatarSrc : void 0;
|
|
439
439
|
return /* @__PURE__ */ k("div", {
|
|
440
|
-
className:
|
|
440
|
+
className: d(P("actor"), P(e.kind)),
|
|
441
441
|
"data-rly-agent-thread-actor": e.kind,
|
|
442
|
-
children: [/* @__PURE__ */ O(
|
|
442
|
+
children: [/* @__PURE__ */ O(S, {
|
|
443
443
|
className: P("avatar"),
|
|
444
444
|
"data-rly-agent-thread-avatar-form": e.kind === "human" ? "circle" : "rounded-square",
|
|
445
445
|
decorative: !0,
|
|
@@ -452,18 +452,18 @@ var ce = {
|
|
|
452
452
|
children: [/* @__PURE__ */ O("strong", { children: t }), /* @__PURE__ */ O("span", { children: n })]
|
|
453
453
|
})]
|
|
454
454
|
});
|
|
455
|
-
},
|
|
456
|
-
let
|
|
457
|
-
|
|
455
|
+
}, je = ({ announcement: e, className: t, composer: n, context: r, emptyLabel: i = "No messages yet.", heading: a, messages: s, ...c }) => {
|
|
456
|
+
let l = o(a, "AgentThread heading"), u = o(i, "AgentThread emptyLabel");
|
|
457
|
+
De(r, "AgentThread context"), De(n, "AgentThread composer"), e !== void 0 && o(e, "AgentThread announcement");
|
|
458
458
|
let f = /* @__PURE__ */ new Set();
|
|
459
459
|
for (let e of s) {
|
|
460
|
-
let t =
|
|
460
|
+
let t = o(e.id, "AgentThread message id");
|
|
461
461
|
if (f.has(t)) throw Error(`AgentThread message ids must be unique: ${t}`);
|
|
462
|
-
f.add(t),
|
|
462
|
+
f.add(t), ke(e.actor), De(e.content, `AgentThread message content for ${t}`), o(e.dateTime, `AgentThread message dateTime for ${t}`), o(e.time, `AgentThread message time for ${t}`);
|
|
463
463
|
}
|
|
464
464
|
return /* @__PURE__ */ k("section", {
|
|
465
465
|
...c,
|
|
466
|
-
className:
|
|
466
|
+
className: d(P("root"), t),
|
|
467
467
|
"data-rly-agent-thread": "",
|
|
468
468
|
children: [
|
|
469
469
|
/* @__PURE__ */ k("header", {
|
|
@@ -472,7 +472,7 @@ var ce = {
|
|
|
472
472
|
"aria-hidden": "true",
|
|
473
473
|
className: P("agentGlyph"),
|
|
474
474
|
children: "AI"
|
|
475
|
-
}), /* @__PURE__ */ O("h2", { children:
|
|
475
|
+
}), /* @__PURE__ */ O("h2", { children: l })]
|
|
476
476
|
}),
|
|
477
477
|
/* @__PURE__ */ k("div", {
|
|
478
478
|
className: P("context"),
|
|
@@ -484,9 +484,9 @@ var ce = {
|
|
|
484
484
|
}),
|
|
485
485
|
s.length === 0 ? /* @__PURE__ */ O("p", {
|
|
486
486
|
className: P("empty"),
|
|
487
|
-
children:
|
|
487
|
+
children: u
|
|
488
488
|
}) : /* @__PURE__ */ O("ol", {
|
|
489
|
-
"aria-label": `${
|
|
489
|
+
"aria-label": `${l} messages`,
|
|
490
490
|
className: P("messages"),
|
|
491
491
|
children: s.map((e) => /* @__PURE__ */ k("li", {
|
|
492
492
|
className: P("message"),
|
|
@@ -494,7 +494,7 @@ var ce = {
|
|
|
494
494
|
children: [
|
|
495
495
|
/* @__PURE__ */ k("div", {
|
|
496
496
|
className: P("messageHead"),
|
|
497
|
-
children: [
|
|
497
|
+
children: [Ae(e.actor), /* @__PURE__ */ O("time", {
|
|
498
498
|
dateTime: e.dateTime,
|
|
499
499
|
children: e.time
|
|
500
500
|
})]
|
|
@@ -529,21 +529,21 @@ var ce = {
|
|
|
529
529
|
})
|
|
530
530
|
]
|
|
531
531
|
});
|
|
532
|
-
},
|
|
532
|
+
}, Me = {
|
|
533
533
|
root: "rly_Person-module__root",
|
|
534
534
|
compact: "rly_Person-module__compact",
|
|
535
535
|
defaultSize: "rly_Person-module__defaultSize",
|
|
536
536
|
identity: "rly_Person-module__identity",
|
|
537
537
|
name: "rly_Person-module__name",
|
|
538
538
|
role: "rly_Person-module__role"
|
|
539
|
-
},
|
|
539
|
+
}, Ne = (e) => c(Me, e), Pe = l({ size: {
|
|
540
540
|
compact: {
|
|
541
|
-
className:
|
|
541
|
+
className: Ne("compact"),
|
|
542
542
|
purpose: "Dense identity row with complete attribution",
|
|
543
543
|
tokens: ["space-24", "type-meta"]
|
|
544
544
|
},
|
|
545
545
|
default: {
|
|
546
|
-
className:
|
|
546
|
+
className: Ne("defaultSize"),
|
|
547
547
|
purpose: "Standard identity row with complete attribution",
|
|
548
548
|
tokens: [
|
|
549
549
|
"space-32",
|
|
@@ -551,87 +551,87 @@ var ce = {
|
|
|
551
551
|
"type-meta"
|
|
552
552
|
]
|
|
553
553
|
}
|
|
554
|
-
} }),
|
|
555
|
-
let t = e.trim().split(/\s+/u), n = t[0] ?? "", r = t[t.length - 1] ?? n, i = Array.from(n),
|
|
556
|
-
return
|
|
557
|
-
},
|
|
558
|
-
let i =
|
|
554
|
+
} }), Fe = l({ size: "default" }), Ie = (e) => {
|
|
555
|
+
let t = e.trim().split(/\s+/u), n = t[0] ?? "", r = t[t.length - 1] ?? n, i = Array.from(n), a = i[0] ?? "", s = t.length > 1 ? Array.from(r)[0] ?? "" : i[1] ?? "";
|
|
556
|
+
return o(`${a}${s}`, "Person avatar fallback");
|
|
557
|
+
}, Le = (e) => (o(e.id, "Person id"), o(e.name, "Person name"), o(e.role, "Person role"), e.avatarFallback !== void 0 && o(e.avatarFallback, "Person avatarFallback"), e.avatarSrc !== void 0 && o(e.avatarSrc, "Person avatarSrc"), e), F = ({ className: e, person: t, size: n = "default", ...r }) => {
|
|
558
|
+
let i = Le(t), a = i.avatarFallback ?? Ie(i.name);
|
|
559
559
|
return /* @__PURE__ */ k("div", {
|
|
560
560
|
...r,
|
|
561
|
-
className:
|
|
561
|
+
className: d(Ne("root"), Pe.size[n].className, e),
|
|
562
562
|
"data-rly-person-size": n,
|
|
563
|
-
children: [/* @__PURE__ */ O(
|
|
563
|
+
children: [/* @__PURE__ */ O(S, {
|
|
564
564
|
decorative: !0,
|
|
565
565
|
fallback: a,
|
|
566
566
|
size: n === "compact" ? "small" : "default",
|
|
567
567
|
...i.avatarSrc === void 0 ? {} : { src: i.avatarSrc }
|
|
568
568
|
}), /* @__PURE__ */ k("span", {
|
|
569
|
-
className:
|
|
569
|
+
className: Ne("identity"),
|
|
570
570
|
children: [/* @__PURE__ */ O("span", {
|
|
571
|
-
className:
|
|
571
|
+
className: Ne("name"),
|
|
572
572
|
children: i.name
|
|
573
573
|
}), /* @__PURE__ */ O("span", {
|
|
574
|
-
className:
|
|
574
|
+
className: Ne("role"),
|
|
575
575
|
children: i.role
|
|
576
576
|
})]
|
|
577
577
|
})]
|
|
578
578
|
});
|
|
579
|
-
},
|
|
579
|
+
}, Re = {
|
|
580
580
|
root: "rly_PeopleStrip-module__root",
|
|
581
581
|
compact: "rly_PeopleStrip-module__compact",
|
|
582
582
|
defaultSize: "rly_PeopleStrip-module__defaultSize",
|
|
583
583
|
personItem: "rly_PeopleStrip-module__personItem",
|
|
584
584
|
controlItem: "rly_PeopleStrip-module__controlItem",
|
|
585
585
|
overflow: "rly_PeopleStrip-module__overflow"
|
|
586
|
-
},
|
|
586
|
+
}, ze = (e) => c(Re, e), Be = l({ size: {
|
|
587
587
|
compact: {
|
|
588
|
-
className:
|
|
588
|
+
className: ze("compact"),
|
|
589
589
|
purpose: "Dense attributed people list for narrow surfaces",
|
|
590
590
|
tokens: ["space-8", "space-40"]
|
|
591
591
|
},
|
|
592
592
|
default: {
|
|
593
|
-
className:
|
|
593
|
+
className: ze("defaultSize"),
|
|
594
594
|
purpose: "Standard attributed people list",
|
|
595
595
|
tokens: ["space-12", "space-40"]
|
|
596
596
|
}
|
|
597
|
-
} }),
|
|
597
|
+
} }), Ve = l({ size: "default" }), He = (e) => {
|
|
598
598
|
if (!Number.isInteger(e) || e < 1) throw Error("PeopleStrip limit must be a positive integer");
|
|
599
599
|
return e;
|
|
600
|
-
},
|
|
600
|
+
}, Ue = (e) => {
|
|
601
601
|
let t = /* @__PURE__ */ new Set();
|
|
602
602
|
for (let n of e) {
|
|
603
|
-
let e =
|
|
604
|
-
if (
|
|
603
|
+
let e = o(n.id, "PeopleStrip person id");
|
|
604
|
+
if (o(n.name, `PeopleStrip name for ${e}`), o(n.role, `PeopleStrip role for ${e}`), t.has(e)) throw Error(`PeopleStrip person ids must be unique: ${e}`);
|
|
605
605
|
t.add(e);
|
|
606
606
|
}
|
|
607
|
-
},
|
|
608
|
-
let
|
|
609
|
-
|
|
610
|
-
let f = Math.max(
|
|
607
|
+
}, We = ({ "aria-label": e, className: t, expanded: n, limit: r = 3, onExpandedChange: i, people: a, size: s = "default", ...c }) => {
|
|
608
|
+
let l = o(e, "PeopleStrip aria-label"), u = He(r);
|
|
609
|
+
Ue(a);
|
|
610
|
+
let f = Math.max(a.length - u, 0), p = n ? a : a.slice(0, u);
|
|
611
611
|
return /* @__PURE__ */ k("ul", {
|
|
612
612
|
...c,
|
|
613
|
-
"aria-label":
|
|
614
|
-
className:
|
|
613
|
+
"aria-label": l,
|
|
614
|
+
className: d(ze("root"), Be.size[s].className, t),
|
|
615
615
|
"data-rly-people-strip-size": s,
|
|
616
616
|
children: [p.map((e) => /* @__PURE__ */ O("li", {
|
|
617
|
-
className:
|
|
617
|
+
className: ze("personItem"),
|
|
618
618
|
children: /* @__PURE__ */ O(F, {
|
|
619
619
|
person: e,
|
|
620
620
|
size: s
|
|
621
621
|
})
|
|
622
622
|
}, e.id)), f === 0 ? null : /* @__PURE__ */ O("li", {
|
|
623
|
-
className:
|
|
623
|
+
className: ze("controlItem"),
|
|
624
624
|
children: /* @__PURE__ */ O("button", {
|
|
625
625
|
"aria-expanded": n,
|
|
626
626
|
"aria-label": n ? "Show fewer people" : `Show ${f} more people`,
|
|
627
|
-
className:
|
|
627
|
+
className: ze("overflow"),
|
|
628
628
|
onClick: () => i(!n),
|
|
629
629
|
type: "button",
|
|
630
630
|
children: n ? "Show fewer" : `+${f} people`
|
|
631
631
|
})
|
|
632
632
|
})]
|
|
633
633
|
});
|
|
634
|
-
},
|
|
634
|
+
}, Ge = {
|
|
635
635
|
root: "rly_CollaboratorGroup-module__root",
|
|
636
636
|
compact: "rly_CollaboratorGroup-module__compact",
|
|
637
637
|
defaultSize: "rly_CollaboratorGroup-module__defaultSize",
|
|
@@ -640,7 +640,7 @@ var ce = {
|
|
|
640
640
|
lane: "rly_CollaboratorGroup-module__lane",
|
|
641
641
|
laneHeading: "rly_CollaboratorGroup-module__laneHeading",
|
|
642
642
|
empty: "rly_CollaboratorGroup-module__empty"
|
|
643
|
-
}, I = (e) =>
|
|
643
|
+
}, I = (e) => c(Ge, e), Ke = l({ size: {
|
|
644
644
|
compact: {
|
|
645
645
|
className: I("compact"),
|
|
646
646
|
purpose: "Narrow entity attribution with explicit role lanes",
|
|
@@ -651,8 +651,8 @@ var ce = {
|
|
|
651
651
|
purpose: "Standard entity attribution with explicit role lanes",
|
|
652
652
|
tokens: ["space-20", "type-card-title"]
|
|
653
653
|
}
|
|
654
|
-
} }),
|
|
655
|
-
let h = a
|
|
654
|
+
} }), qe = l({ size: "default" }), Je = ({ approvers: e = [], authors: t = [], className: n, emptyLabel: r = "No collaborators assigned.", expandedCategories: i, heading: a, limit: s = 3, onCategoryExpandedChange: c, operators: l = [], owners: u = [], reviewers: f = [], size: p = "default", ...m }) => {
|
|
655
|
+
let h = o(a, "CollaboratorGroup heading"), g = o(r, "CollaboratorGroup emptyLabel"), _ = `rly-collaborators-${E()}`, v = new Set(i), y = [
|
|
656
656
|
{
|
|
657
657
|
category: "authors",
|
|
658
658
|
label: "Authors",
|
|
@@ -661,7 +661,7 @@ var ce = {
|
|
|
661
661
|
{
|
|
662
662
|
category: "owners",
|
|
663
663
|
label: "Owners",
|
|
664
|
-
people:
|
|
664
|
+
people: u
|
|
665
665
|
},
|
|
666
666
|
{
|
|
667
667
|
category: "reviewers",
|
|
@@ -671,7 +671,7 @@ var ce = {
|
|
|
671
671
|
{
|
|
672
672
|
category: "operators",
|
|
673
673
|
label: "Operators",
|
|
674
|
-
people:
|
|
674
|
+
people: l
|
|
675
675
|
},
|
|
676
676
|
{
|
|
677
677
|
category: "approvers",
|
|
@@ -682,7 +682,7 @@ var ce = {
|
|
|
682
682
|
return /* @__PURE__ */ k("section", {
|
|
683
683
|
...m,
|
|
684
684
|
"aria-labelledby": _,
|
|
685
|
-
className:
|
|
685
|
+
className: d(I("root"), Ke.size[p].className, n),
|
|
686
686
|
"data-rly-collaborator-group-size": p,
|
|
687
687
|
children: [/* @__PURE__ */ O("h2", {
|
|
688
688
|
className: I("heading"),
|
|
@@ -698,7 +698,7 @@ var ce = {
|
|
|
698
698
|
children: [/* @__PURE__ */ O("h3", {
|
|
699
699
|
className: I("laneHeading"),
|
|
700
700
|
children: e.label
|
|
701
|
-
}), /* @__PURE__ */ O(
|
|
701
|
+
}), /* @__PURE__ */ O(We, {
|
|
702
702
|
"aria-label": `${h}: ${e.label}`,
|
|
703
703
|
expanded: v.has(e.category),
|
|
704
704
|
limit: s,
|
|
@@ -709,7 +709,7 @@ var ce = {
|
|
|
709
709
|
}, e.category))
|
|
710
710
|
})]
|
|
711
711
|
});
|
|
712
|
-
},
|
|
712
|
+
}, Ye = {
|
|
713
713
|
root: "rly_FreshnessStamp-module__root",
|
|
714
714
|
stateWord: "rly_FreshnessStamp-module__stateWord",
|
|
715
715
|
separator: "rly_FreshnessStamp-module__separator",
|
|
@@ -721,7 +721,7 @@ var ce = {
|
|
|
721
721
|
missing: "rly_FreshnessStamp-module__missing",
|
|
722
722
|
stale: "rly_FreshnessStamp-module__stale",
|
|
723
723
|
unavailable: "rly_FreshnessStamp-module__unavailable"
|
|
724
|
-
}, L = (e) =>
|
|
724
|
+
}, L = (e) => c(Ye, e), Xe = l({
|
|
725
725
|
state: {
|
|
726
726
|
current: {
|
|
727
727
|
className: L("current"),
|
|
@@ -761,42 +761,42 @@ var ce = {
|
|
|
761
761
|
tokens: ["type-label", "type-meta"]
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
}),
|
|
764
|
+
}), Ze = l({ size: "default" }), Qe = {
|
|
765
765
|
current: "Current",
|
|
766
766
|
cached: "Cached",
|
|
767
767
|
stale: "Stale",
|
|
768
768
|
missing: "Missing",
|
|
769
769
|
unavailable: "Unavailable"
|
|
770
|
-
},
|
|
770
|
+
}, $e = {
|
|
771
771
|
current: "check",
|
|
772
772
|
cached: "clock",
|
|
773
773
|
stale: "clock",
|
|
774
774
|
missing: "minus",
|
|
775
775
|
unavailable: "alert"
|
|
776
|
-
}, R = ({ className: t, dateTime: n, size: r = "default", state: i, time:
|
|
777
|
-
let c =
|
|
776
|
+
}, R = ({ className: t, dateTime: n, size: r = "default", state: i, time: a, ...s }) => {
|
|
777
|
+
let c = a === void 0 ? void 0 : o(a, "FreshnessStamp time"), l = n === void 0 ? void 0 : o(n, "FreshnessStamp dateTime");
|
|
778
778
|
return /* @__PURE__ */ k("span", {
|
|
779
779
|
...s,
|
|
780
|
-
className:
|
|
780
|
+
className: d(L("root"), Xe.state[i].className, Xe.size[r].className, t),
|
|
781
781
|
"data-rly-freshness-state": i,
|
|
782
782
|
children: [/* @__PURE__ */ k("span", {
|
|
783
783
|
className: L("stateWord"),
|
|
784
784
|
children: [/* @__PURE__ */ O(e, {
|
|
785
785
|
decorative: !0,
|
|
786
|
-
name:
|
|
786
|
+
name: $e[i],
|
|
787
787
|
size: "small"
|
|
788
|
-
}), /* @__PURE__ */ O("span", { children:
|
|
789
|
-
}), c === void 0 ||
|
|
788
|
+
}), /* @__PURE__ */ O("span", { children: Qe[i] })]
|
|
789
|
+
}), c === void 0 || l === void 0 ? null : /* @__PURE__ */ k(le, { children: [/* @__PURE__ */ O("span", {
|
|
790
790
|
"aria-hidden": "true",
|
|
791
791
|
className: L("separator"),
|
|
792
792
|
children: "·"
|
|
793
793
|
}), /* @__PURE__ */ O("time", {
|
|
794
794
|
className: L("time"),
|
|
795
|
-
dateTime:
|
|
795
|
+
dateTime: l,
|
|
796
796
|
children: c
|
|
797
797
|
})] })]
|
|
798
798
|
});
|
|
799
|
-
},
|
|
799
|
+
}, et = {
|
|
800
800
|
root: "rly_ServiceMark-module__root",
|
|
801
801
|
rail: "rly_ServiceMark-module__rail",
|
|
802
802
|
glyph: "rly_ServiceMark-module__glyph",
|
|
@@ -808,7 +808,7 @@ var ce = {
|
|
|
808
808
|
jira: "rly_ServiceMark-module__jira",
|
|
809
809
|
confluence: "rly_ServiceMark-module__confluence",
|
|
810
810
|
clockify: "rly_ServiceMark-module__clockify"
|
|
811
|
-
}, z = (e) =>
|
|
811
|
+
}, z = (e) => c(et, e), tt = l({
|
|
812
812
|
service: {
|
|
813
813
|
codecommit: {
|
|
814
814
|
className: z("codecommit"),
|
|
@@ -848,13 +848,13 @@ var ce = {
|
|
|
848
848
|
tokens: ["space-32", "type-label"]
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
}),
|
|
851
|
+
}), nt = l({ size: "default" }), rt = {
|
|
852
852
|
codecommit: "CodeCommit",
|
|
853
853
|
codepipeline: "CodePipeline",
|
|
854
854
|
jira: "Jira",
|
|
855
855
|
confluence: "Confluence",
|
|
856
856
|
clockify: "Clockify"
|
|
857
|
-
},
|
|
857
|
+
}, it = {
|
|
858
858
|
codecommit: () => /* @__PURE__ */ k("svg", {
|
|
859
859
|
"aria-hidden": "true",
|
|
860
860
|
className: z("glyph"),
|
|
@@ -979,11 +979,11 @@ var ce = {
|
|
|
979
979
|
})]
|
|
980
980
|
})
|
|
981
981
|
}, B = ({ className: e, service: t, size: n = "default", ...r }) => {
|
|
982
|
-
let i =
|
|
982
|
+
let i = it[t], a = rt[t];
|
|
983
983
|
return /* @__PURE__ */ k("span", {
|
|
984
984
|
...r,
|
|
985
985
|
"aria-label": a,
|
|
986
|
-
className:
|
|
986
|
+
className: d(z("root"), tt.service[t].className, tt.size[n].className, e),
|
|
987
987
|
"data-rly-service": t,
|
|
988
988
|
role: "img",
|
|
989
989
|
children: [
|
|
@@ -999,7 +999,7 @@ var ce = {
|
|
|
999
999
|
})
|
|
1000
1000
|
]
|
|
1001
1001
|
});
|
|
1002
|
-
},
|
|
1002
|
+
}, at = {
|
|
1003
1003
|
root: "rly_Verdict-module__root",
|
|
1004
1004
|
verdict: "rly_Verdict-module__verdict",
|
|
1005
1005
|
caution: "rly_Verdict-module__caution",
|
|
@@ -1010,7 +1010,7 @@ var ce = {
|
|
|
1010
1010
|
reasonPanel: "rly_Verdict-module__reasonPanel",
|
|
1011
1011
|
icon: "rly_Verdict-module__icon",
|
|
1012
1012
|
reason: "rly_Verdict-module__reason"
|
|
1013
|
-
}, V = (e) =>
|
|
1013
|
+
}, V = (e) => c(at, e), ot = l({ tone: {
|
|
1014
1014
|
caution: {
|
|
1015
1015
|
className: V("caution"),
|
|
1016
1016
|
purpose: "Intentional hold or caution requiring attention",
|
|
@@ -1036,17 +1036,17 @@ var ce = {
|
|
|
1036
1036
|
purpose: "Active work or delivery progress",
|
|
1037
1037
|
tokens: ["color-deploying-ink", "color-deploying-tint"]
|
|
1038
1038
|
}
|
|
1039
|
-
} }),
|
|
1039
|
+
} }), st = {
|
|
1040
1040
|
caution: "clock",
|
|
1041
1041
|
critical: "alert",
|
|
1042
1042
|
neutral: "minus",
|
|
1043
1043
|
positive: "check",
|
|
1044
1044
|
progress: "loader"
|
|
1045
|
-
},
|
|
1046
|
-
let s =
|
|
1045
|
+
}, ct = ({ className: t, reason: n, tone: r, verdict: i, ...a }) => {
|
|
1046
|
+
let s = o(n, "Verdict reason"), c = o(i, "Verdict verdict");
|
|
1047
1047
|
return /* @__PURE__ */ k("section", {
|
|
1048
|
-
...
|
|
1049
|
-
className:
|
|
1048
|
+
...a,
|
|
1049
|
+
className: d(V("root"), ot.tone[r].className, t),
|
|
1050
1050
|
"data-rly-verdict-tone": r,
|
|
1051
1051
|
children: [/* @__PURE__ */ O("h2", {
|
|
1052
1052
|
className: V("verdict"),
|
|
@@ -1058,7 +1058,7 @@ var ce = {
|
|
|
1058
1058
|
className: V("icon"),
|
|
1059
1059
|
children: /* @__PURE__ */ O(e, {
|
|
1060
1060
|
decorative: !0,
|
|
1061
|
-
name:
|
|
1061
|
+
name: st[r],
|
|
1062
1062
|
size: "large"
|
|
1063
1063
|
})
|
|
1064
1064
|
}), /* @__PURE__ */ O("p", {
|
|
@@ -1067,7 +1067,7 @@ var ce = {
|
|
|
1067
1067
|
})]
|
|
1068
1068
|
})]
|
|
1069
1069
|
});
|
|
1070
|
-
},
|
|
1070
|
+
}, lt = {
|
|
1071
1071
|
root: "rly_EntityShell-module__root",
|
|
1072
1072
|
navigation: "rly_EntityShell-module__navigation",
|
|
1073
1073
|
header: "rly_EntityShell-module__header",
|
|
@@ -1084,14 +1084,14 @@ var ce = {
|
|
|
1084
1084
|
activity: "rly_EntityShell-module__activity",
|
|
1085
1085
|
asideSlot: "rly_EntityShell-module__asideSlot",
|
|
1086
1086
|
aside: "rly_EntityShell-module__aside"
|
|
1087
|
-
}, H = (e) =>
|
|
1088
|
-
let x =
|
|
1089
|
-
if (
|
|
1087
|
+
}, H = (e) => c(lt, e), ut = ({ actions: e, activity: t, agentEntry: n, className: r, collaborators: i, content: a, evidence: s, facts: c, freshness: l, freshnessDateTime: u, freshnessTime: f, navigation: p, reason: m, relationships: h, service: g, title: _, tone: v, verdict: y, ...b }) => {
|
|
1088
|
+
let x = o(_, "EntityShell title");
|
|
1089
|
+
if (u === void 0 != (f === void 0)) throw Error("EntityShell freshnessDateTime and freshnessTime must be supplied together");
|
|
1090
1090
|
let S = `rly-entity-shell-${E()}`;
|
|
1091
1091
|
return /* @__PURE__ */ k("article", {
|
|
1092
1092
|
...b,
|
|
1093
1093
|
"aria-labelledby": S,
|
|
1094
|
-
className:
|
|
1094
|
+
className: d(H("root"), r),
|
|
1095
1095
|
"data-rly-entity-shell": "",
|
|
1096
1096
|
children: [
|
|
1097
1097
|
p === void 0 ? null : /* @__PURE__ */ O("nav", {
|
|
@@ -1111,7 +1111,7 @@ var ce = {
|
|
|
1111
1111
|
})]
|
|
1112
1112
|
}), /* @__PURE__ */ k("div", {
|
|
1113
1113
|
className: H("hero"),
|
|
1114
|
-
children: [/* @__PURE__ */ O(
|
|
1114
|
+
children: [/* @__PURE__ */ O(ct, {
|
|
1115
1115
|
reason: m,
|
|
1116
1116
|
tone: v,
|
|
1117
1117
|
verdict: y
|
|
@@ -1124,9 +1124,9 @@ var ce = {
|
|
|
1124
1124
|
children: [/* @__PURE__ */ O("span", {
|
|
1125
1125
|
className: H("slotLabel"),
|
|
1126
1126
|
children: "Freshness"
|
|
1127
|
-
}),
|
|
1128
|
-
dateTime:
|
|
1129
|
-
state:
|
|
1127
|
+
}), u === void 0 || f === void 0 ? /* @__PURE__ */ O(R, { state: l }) : /* @__PURE__ */ O(R, {
|
|
1128
|
+
dateTime: u,
|
|
1129
|
+
state: l,
|
|
1130
1130
|
time: f
|
|
1131
1131
|
})]
|
|
1132
1132
|
}),
|
|
@@ -1149,7 +1149,7 @@ var ce = {
|
|
|
1149
1149
|
children: [/* @__PURE__ */ O("section", {
|
|
1150
1150
|
className: H("content"),
|
|
1151
1151
|
"data-rly-entity-shell-slot": "content",
|
|
1152
|
-
children:
|
|
1152
|
+
children: a
|
|
1153
1153
|
}), /* @__PURE__ */ k("aside", {
|
|
1154
1154
|
className: H("aside"),
|
|
1155
1155
|
children: [
|
|
@@ -1183,7 +1183,7 @@ var ce = {
|
|
|
1183
1183
|
})
|
|
1184
1184
|
]
|
|
1185
1185
|
});
|
|
1186
|
-
},
|
|
1186
|
+
}, dt = {
|
|
1187
1187
|
root: "rly_EntityTable-module__root",
|
|
1188
1188
|
heading: "rly_EntityTable-module__heading",
|
|
1189
1189
|
loading: "rly_EntityTable-module__loading",
|
|
@@ -1196,56 +1196,56 @@ var ce = {
|
|
|
1196
1196
|
cell: "rly_EntityTable-module__cell",
|
|
1197
1197
|
row: "rly_EntityTable-module__row",
|
|
1198
1198
|
body: "rly_EntityTable-module__body"
|
|
1199
|
-
}, U = (e) =>
|
|
1199
|
+
}, U = (e) => c(dt, e), ft = (e) => {
|
|
1200
1200
|
let t = /* @__PURE__ */ new Set();
|
|
1201
1201
|
for (let n of e) {
|
|
1202
|
-
let e =
|
|
1202
|
+
let e = o(n.id, "EntityTable column id");
|
|
1203
1203
|
if (t.has(e)) throw Error(`EntityTable column ids must be unique: ${e}`);
|
|
1204
|
-
t.add(e),
|
|
1204
|
+
t.add(e), o(n.label, `EntityTable column label for ${e}`);
|
|
1205
1205
|
}
|
|
1206
1206
|
return t;
|
|
1207
|
-
},
|
|
1207
|
+
}, pt = (e, t) => {
|
|
1208
1208
|
let n = /* @__PURE__ */ new Set();
|
|
1209
1209
|
for (let r of e) {
|
|
1210
|
-
let e =
|
|
1210
|
+
let e = o(r.id, "EntityTable row id");
|
|
1211
1211
|
if (n.has(e)) throw Error(`EntityTable row ids must be unique: ${e}`);
|
|
1212
1212
|
n.add(e);
|
|
1213
1213
|
let i = /* @__PURE__ */ new Set();
|
|
1214
1214
|
for (let n of r.cells) {
|
|
1215
|
-
let r =
|
|
1215
|
+
let r = o(n.columnId, `EntityTable cell column id for ${e}`);
|
|
1216
1216
|
if (!t.has(r)) throw Error(`EntityTable row ${e} has an unknown column: ${r}`);
|
|
1217
1217
|
if (i.has(r)) throw Error(`EntityTable row ${e} repeats column: ${r}`);
|
|
1218
1218
|
i.add(r);
|
|
1219
1219
|
}
|
|
1220
1220
|
for (let n of t) if (!i.has(n)) throw Error(`EntityTable row ${e} is missing column: ${n}`);
|
|
1221
1221
|
}
|
|
1222
|
-
},
|
|
1222
|
+
}, mt = (e) => e.state === "ready" || e.state === "stale" || e.state === "partial" || e.state === "error" || e.state === "unavailable" ? e.rows : [], ht = ({ direction: t }) => /* @__PURE__ */ O(e, {
|
|
1223
1223
|
decorative: !0,
|
|
1224
1224
|
name: t === "ascending" ? "arrow-up" : t === "descending" ? "arrow-down" : "minus",
|
|
1225
1225
|
size: "small"
|
|
1226
|
-
}),
|
|
1227
|
-
let s =
|
|
1228
|
-
if (
|
|
1226
|
+
}), gt = ({ className: e, columns: t, data: n, heading: r, onSortChange: i, ...a }) => {
|
|
1227
|
+
let s = o(r, "EntityTable heading"), c = ft(t), l = mt(n);
|
|
1228
|
+
if (pt(l, c), n.state === "ready" && l.length === 0) throw Error("EntityTable ready state must contain at least one row; use the empty state instead");
|
|
1229
1229
|
if (n.state === "loading") {
|
|
1230
|
-
|
|
1230
|
+
o(n.label, "EntityTable loading label");
|
|
1231
1231
|
let e = n.skeletonRows ?? 3;
|
|
1232
1232
|
if (!Number.isInteger(e) || e < 1 || e > 20) throw Error("EntityTable skeletonRows must be an integer from 1 to 20");
|
|
1233
1233
|
}
|
|
1234
|
-
if ((n.state === "empty" || n.state === "not-found") && (
|
|
1235
|
-
let
|
|
1234
|
+
if ((n.state === "empty" || n.state === "not-found") && (o(n.title, "EntityTable state title"), n.description !== void 0 && o(n.description, "EntityTable state description")), (n.state === "stale" || n.state === "partial" || n.state === "error" || n.state === "unavailable") && (o(n.title, "EntityTable cached state title"), o(n.description, "EntityTable cached state description"), l.length === 0)) throw Error(`EntityTable ${n.state} state must retain at least one cached row`);
|
|
1235
|
+
let u = `rly-entity-table-${E()}`, f = new Map(t.map((e) => [e.id, e])), p = n.state === "stale" || n.state === "partial" || n.state === "error" || n.state === "unavailable" ? /* @__PURE__ */ O(x, {
|
|
1236
1236
|
description: n.description,
|
|
1237
1237
|
title: n.title,
|
|
1238
1238
|
tone: n.tone
|
|
1239
1239
|
}) : null;
|
|
1240
1240
|
return /* @__PURE__ */ k("section", {
|
|
1241
|
-
...
|
|
1241
|
+
...a,
|
|
1242
1242
|
"aria-busy": n.state === "loading" ? "true" : void 0,
|
|
1243
|
-
"aria-labelledby":
|
|
1244
|
-
className:
|
|
1243
|
+
"aria-labelledby": u,
|
|
1244
|
+
className: d(U("root"), e),
|
|
1245
1245
|
"data-rly-entity-table-state": n.state,
|
|
1246
1246
|
children: [/* @__PURE__ */ O("h2", {
|
|
1247
1247
|
className: U("heading"),
|
|
1248
|
-
id:
|
|
1248
|
+
id: u,
|
|
1249
1249
|
children: s
|
|
1250
1250
|
}), n.state === "loading" ? /* @__PURE__ */ k("div", {
|
|
1251
1251
|
"aria-label": n.label,
|
|
@@ -1254,14 +1254,14 @@ var ce = {
|
|
|
1254
1254
|
children: [/* @__PURE__ */ O("span", {
|
|
1255
1255
|
className: U("stateLabel"),
|
|
1256
1256
|
children: n.label
|
|
1257
|
-
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */ O(
|
|
1257
|
+
}), Array.from({ length: n.skeletonRows ?? 3 }, (e, t) => /* @__PURE__ */ O(C, {
|
|
1258
1258
|
height: "48px",
|
|
1259
1259
|
variant: "block"
|
|
1260
1260
|
}, t))]
|
|
1261
|
-
}) : n.state === "empty" || n.state === "not-found" ? /* @__PURE__ */ O(
|
|
1261
|
+
}) : n.state === "empty" || n.state === "not-found" ? /* @__PURE__ */ O(x, {
|
|
1262
1262
|
description: n.description,
|
|
1263
1263
|
title: n.title
|
|
1264
|
-
}) : /* @__PURE__ */ k(
|
|
1264
|
+
}) : /* @__PURE__ */ k(le, { children: [
|
|
1265
1265
|
p,
|
|
1266
1266
|
/* @__PURE__ */ k("div", {
|
|
1267
1267
|
"aria-label": `${s} sorting`,
|
|
@@ -1275,11 +1275,11 @@ var ce = {
|
|
|
1275
1275
|
className: U("sortButton"),
|
|
1276
1276
|
onClick: () => i(e.id),
|
|
1277
1277
|
type: "button",
|
|
1278
|
-
children: [/* @__PURE__ */ O("span", { children: e.label }), /* @__PURE__ */ O(
|
|
1278
|
+
children: [/* @__PURE__ */ O("span", { children: e.label }), /* @__PURE__ */ O(ht, { direction: e.sortDirection })]
|
|
1279
1279
|
}, e.id) : null)]
|
|
1280
1280
|
}),
|
|
1281
1281
|
/* @__PURE__ */ k("table", {
|
|
1282
|
-
"aria-labelledby":
|
|
1282
|
+
"aria-labelledby": u,
|
|
1283
1283
|
className: U("table"),
|
|
1284
1284
|
children: [/* @__PURE__ */ O("thead", {
|
|
1285
1285
|
className: U("head"),
|
|
@@ -1290,7 +1290,7 @@ var ce = {
|
|
|
1290
1290
|
}, e.id)) })
|
|
1291
1291
|
}), /* @__PURE__ */ O("tbody", {
|
|
1292
1292
|
className: U("body"),
|
|
1293
|
-
children:
|
|
1293
|
+
children: l.map((e) => {
|
|
1294
1294
|
let n = new Map(e.cells.map((e) => [e.columnId, e.content]));
|
|
1295
1295
|
return /* @__PURE__ */ O("tr", {
|
|
1296
1296
|
className: U("row"),
|
|
@@ -1306,15 +1306,15 @@ var ce = {
|
|
|
1306
1306
|
})
|
|
1307
1307
|
] })]
|
|
1308
1308
|
});
|
|
1309
|
-
},
|
|
1309
|
+
}, _t = {
|
|
1310
1310
|
root: "rly_EvidenceStamp-module__root",
|
|
1311
1311
|
source: "rly_EvidenceStamp-module__source",
|
|
1312
1312
|
freshness: "rly_EvidenceStamp-module__freshness",
|
|
1313
1313
|
conceptLabel: "rly_EvidenceStamp-module__conceptLabel",
|
|
1314
1314
|
sourceDetail: "rly_EvidenceStamp-module__sourceDetail",
|
|
1315
1315
|
reference: "rly_EvidenceStamp-module__reference"
|
|
1316
|
-
},
|
|
1317
|
-
let c =
|
|
1316
|
+
}, vt = (e) => c(_t, e), yt = ({ className: e, freshness: t, freshnessDateTime: n, freshnessTime: r, reference: i, service: a, ...s }) => {
|
|
1317
|
+
let c = o(i, "EvidenceStamp reference"), l = n === void 0 || r === void 0 ? /* @__PURE__ */ O(R, {
|
|
1318
1318
|
size: "compact",
|
|
1319
1319
|
state: t
|
|
1320
1320
|
}) : /* @__PURE__ */ O(R, {
|
|
@@ -1325,34 +1325,34 @@ var ce = {
|
|
|
1325
1325
|
});
|
|
1326
1326
|
return /* @__PURE__ */ k("div", {
|
|
1327
1327
|
...s,
|
|
1328
|
-
className:
|
|
1328
|
+
className: d(vt("root"), e),
|
|
1329
1329
|
"data-rly-evidence-stamp": "",
|
|
1330
1330
|
children: [/* @__PURE__ */ k("div", {
|
|
1331
|
-
className:
|
|
1332
|
-
"data-rly-evidence-source":
|
|
1331
|
+
className: vt("source"),
|
|
1332
|
+
"data-rly-evidence-source": a,
|
|
1333
1333
|
children: [/* @__PURE__ */ O("span", {
|
|
1334
|
-
className:
|
|
1334
|
+
className: vt("conceptLabel"),
|
|
1335
1335
|
children: "Evidence source"
|
|
1336
1336
|
}), /* @__PURE__ */ k("div", {
|
|
1337
|
-
className:
|
|
1337
|
+
className: vt("sourceDetail"),
|
|
1338
1338
|
children: [/* @__PURE__ */ O(B, {
|
|
1339
|
-
service:
|
|
1339
|
+
service: a,
|
|
1340
1340
|
size: "compact"
|
|
1341
1341
|
}), /* @__PURE__ */ O("code", {
|
|
1342
|
-
className:
|
|
1342
|
+
className: vt("reference"),
|
|
1343
1343
|
children: c
|
|
1344
1344
|
})]
|
|
1345
1345
|
})]
|
|
1346
1346
|
}), /* @__PURE__ */ k("div", {
|
|
1347
|
-
className:
|
|
1347
|
+
className: vt("freshness"),
|
|
1348
1348
|
"data-rly-evidence-freshness": t,
|
|
1349
1349
|
children: [/* @__PURE__ */ O("span", {
|
|
1350
|
-
className:
|
|
1350
|
+
className: vt("conceptLabel"),
|
|
1351
1351
|
children: "Freshness"
|
|
1352
|
-
}),
|
|
1352
|
+
}), l]
|
|
1353
1353
|
})]
|
|
1354
1354
|
});
|
|
1355
|
-
},
|
|
1355
|
+
}, bt = {
|
|
1356
1356
|
root: "rly_GovernedActionReview-module__root",
|
|
1357
1357
|
header: "rly_GovernedActionReview-module__header",
|
|
1358
1358
|
eyebrow: "rly_GovernedActionReview-module__eyebrow",
|
|
@@ -1367,7 +1367,7 @@ var ce = {
|
|
|
1367
1367
|
decision: "rly_GovernedActionReview-module__decision",
|
|
1368
1368
|
confirmation: "rly_GovernedActionReview-module__confirmation",
|
|
1369
1369
|
actions: "rly_GovernedActionReview-module__actions"
|
|
1370
|
-
}, W = (e) =>
|
|
1370
|
+
}, W = (e) => c(bt, e), xt = {
|
|
1371
1371
|
pending: {
|
|
1372
1372
|
label: "Awaiting human decision",
|
|
1373
1373
|
tone: "caution"
|
|
@@ -1396,16 +1396,16 @@ var ce = {
|
|
|
1396
1396
|
label: "Authorized action cancelled",
|
|
1397
1397
|
tone: "neutral"
|
|
1398
1398
|
}
|
|
1399
|
-
},
|
|
1400
|
-
let h =
|
|
1401
|
-
|
|
1402
|
-
let
|
|
1399
|
+
}, St = ({ authorizeLabel: e = "Authorize exact action", className: t, confirmationLabel: n, isConfirmed: r, onAuthorize: i, onConfirmationChange: a, onReject: s, outcome: c, proposal: l, rejectLabel: u = "Reject proposal", reviewer: f, state: p, ...m }) => {
|
|
1400
|
+
let h = we(l), g = o(e, "GovernedActionReview authorizeLabel"), _ = o(n, "GovernedActionReview confirmationLabel"), v = o(u, "GovernedActionReview rejectLabel");
|
|
1401
|
+
o(f.id, "GovernedActionReview reviewer id"), o(f.name, "GovernedActionReview reviewer name"), o(f.role, "GovernedActionReview reviewer role");
|
|
1402
|
+
let y = `rly-governed-action-${E()}`, x = `rly-governed-action-reference-${E()}`, S = `rly-governed-confirmation-${E()}`, C = xt[p], ee = () => {
|
|
1403
1403
|
p === "pending" && r && i();
|
|
1404
1404
|
};
|
|
1405
1405
|
return /* @__PURE__ */ k("section", {
|
|
1406
1406
|
...m,
|
|
1407
|
-
"aria-labelledby": `${
|
|
1408
|
-
className:
|
|
1407
|
+
"aria-labelledby": `${y} ${x}`,
|
|
1408
|
+
className: d(W("root"), t),
|
|
1409
1409
|
"data-rly-governed-action-state": p,
|
|
1410
1410
|
children: [
|
|
1411
1411
|
/* @__PURE__ */ k("header", {
|
|
@@ -1417,7 +1417,7 @@ var ce = {
|
|
|
1417
1417
|
}),
|
|
1418
1418
|
/* @__PURE__ */ O("h2", {
|
|
1419
1419
|
className: W("heading"),
|
|
1420
|
-
id:
|
|
1420
|
+
id: y,
|
|
1421
1421
|
children: "Review exact proposed action"
|
|
1422
1422
|
}),
|
|
1423
1423
|
/* @__PURE__ */ O("code", {
|
|
@@ -1425,7 +1425,7 @@ var ce = {
|
|
|
1425
1425
|
id: x,
|
|
1426
1426
|
children: h.id
|
|
1427
1427
|
})
|
|
1428
|
-
] }), /* @__PURE__ */ O(
|
|
1428
|
+
] }), /* @__PURE__ */ O(T, {
|
|
1429
1429
|
label: C.label,
|
|
1430
1430
|
tone: C.tone
|
|
1431
1431
|
})]
|
|
@@ -1462,7 +1462,7 @@ var ce = {
|
|
|
1462
1462
|
children: [/* @__PURE__ */ O("input", {
|
|
1463
1463
|
checked: r,
|
|
1464
1464
|
id: S,
|
|
1465
|
-
onChange: (e) =>
|
|
1465
|
+
onChange: (e) => a(e.currentTarget.checked),
|
|
1466
1466
|
type: "checkbox"
|
|
1467
1467
|
}), /* @__PURE__ */ O("span", { children: _ })]
|
|
1468
1468
|
}),
|
|
@@ -1472,11 +1472,11 @@ var ce = {
|
|
|
1472
1472
|
}),
|
|
1473
1473
|
/* @__PURE__ */ k("div", {
|
|
1474
1474
|
className: W("actions"),
|
|
1475
|
-
children: [/* @__PURE__ */ O(
|
|
1475
|
+
children: [/* @__PURE__ */ O(b, {
|
|
1476
1476
|
onClick: s,
|
|
1477
1477
|
variant: "secondary",
|
|
1478
|
-
children:
|
|
1479
|
-
}), /* @__PURE__ */ O(
|
|
1478
|
+
children: v
|
|
1479
|
+
}), /* @__PURE__ */ O(b, {
|
|
1480
1480
|
disabled: !r,
|
|
1481
1481
|
onClick: ee,
|
|
1482
1482
|
variant: "primary",
|
|
@@ -1492,7 +1492,7 @@ var ce = {
|
|
|
1492
1492
|
})
|
|
1493
1493
|
]
|
|
1494
1494
|
});
|
|
1495
|
-
},
|
|
1495
|
+
}, Ct = {
|
|
1496
1496
|
missing: {
|
|
1497
1497
|
icon: "alert",
|
|
1498
1498
|
label: "Missing"
|
|
@@ -1521,7 +1521,7 @@ var ce = {
|
|
|
1521
1521
|
icon: "arrow-right",
|
|
1522
1522
|
label: "Superseded"
|
|
1523
1523
|
}
|
|
1524
|
-
},
|
|
1524
|
+
}, wt = {
|
|
1525
1525
|
forward: {
|
|
1526
1526
|
arrow: "→",
|
|
1527
1527
|
label: "Forward"
|
|
@@ -1534,30 +1534,30 @@ var ce = {
|
|
|
1534
1534
|
arrow: "↔",
|
|
1535
1535
|
label: "Bidirectional"
|
|
1536
1536
|
}
|
|
1537
|
-
}, Ct = (e, t) => {
|
|
1538
|
-
a(e.id, `${t} person id`), a(e.name, `${t} person name`), a(e.role, `${t} person role`), e.avatarFallback !== void 0 && a(e.avatarFallback, `${t} person avatarFallback`), e.avatarSrc !== void 0 && a(e.avatarSrc, `${t} person avatarSrc`);
|
|
1539
|
-
}, wt = (e, t) => {
|
|
1540
|
-
if (!Object.hasOwn($e.service, e)) throw Error(`${t} service must be a supported rly service`);
|
|
1541
1537
|
}, Tt = (e, t) => {
|
|
1538
|
+
o(e.id, `${t} person id`), o(e.name, `${t} person name`), o(e.role, `${t} person role`), e.avatarFallback !== void 0 && o(e.avatarFallback, `${t} person avatarFallback`), e.avatarSrc !== void 0 && o(e.avatarSrc, `${t} person avatarSrc`);
|
|
1539
|
+
}, Et = (e, t) => {
|
|
1540
|
+
if (!Object.hasOwn(tt.service, e)) throw Error(`${t} service must be a supported rly service`);
|
|
1541
|
+
}, Dt = (e, t) => {
|
|
1542
1542
|
if (e.state === "present") {
|
|
1543
|
-
|
|
1543
|
+
o(e.id, `${t} id`), o(e.title, `${t} title`), o(e.reference, `${t} reference`), Et(e.service, t), e.href !== void 0 && o(e.href, `${t} href`), e.person !== void 0 && Tt(e.person, t);
|
|
1544
1544
|
return;
|
|
1545
1545
|
}
|
|
1546
1546
|
if (e.state === "missing") {
|
|
1547
|
-
|
|
1547
|
+
o(e.label, `${t} missing label`), o(e.reason, `${t} missing reason`), e.service !== void 0 && Et(e.service, t);
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
1550
|
throw Error(`${t} state must be present or missing`);
|
|
1551
|
-
},
|
|
1551
|
+
}, Ot = (e) => {
|
|
1552
1552
|
let t = /* @__PURE__ */ new Set();
|
|
1553
1553
|
for (let n of e) {
|
|
1554
|
-
let e =
|
|
1554
|
+
let e = o(n.id, "Relationship id");
|
|
1555
1555
|
if (t.has(e)) throw Error(`Relationship ids must be unique: ${e}`);
|
|
1556
|
-
if (t.add(e),
|
|
1557
|
-
if (!Object.hasOwn(
|
|
1558
|
-
|
|
1556
|
+
if (t.add(e), o(n.kind, `Relationship kind for ${e}`), !Object.hasOwn(wt, n.direction)) throw Error(`Relationship direction for ${e} must be supported`);
|
|
1557
|
+
if (!Object.hasOwn(Ct, n.lifecycle)) throw Error(`Relationship lifecycle for ${e} must be supported`);
|
|
1558
|
+
Dt(n.source, `Relationship ${e} source`), Dt(n.target, `Relationship ${e} target`), n.evidence !== void 0 && o(n.evidence, `Relationship evidence for ${e}`), n.actor !== void 0 && Tt(n.actor, `Relationship ${e} actor`);
|
|
1559
1559
|
}
|
|
1560
|
-
},
|
|
1560
|
+
}, kt = {
|
|
1561
1561
|
root: "rly_RelationshipChain-module__root",
|
|
1562
1562
|
heading: "rly_RelationshipChain-module__heading",
|
|
1563
1563
|
empty: "rly_RelationshipChain-module__empty",
|
|
@@ -1578,9 +1578,9 @@ var ce = {
|
|
|
1578
1578
|
relationship: "rly_RelationshipChain-module__relationship",
|
|
1579
1579
|
arrow: "rly_RelationshipChain-module__arrow",
|
|
1580
1580
|
actor: "rly_RelationshipChain-module__actor"
|
|
1581
|
-
}, G = (e) =>
|
|
1581
|
+
}, G = (e) => c(kt, e), At = ({ endpoint: t }) => {
|
|
1582
1582
|
if (t.state === "missing") return /* @__PURE__ */ k("div", {
|
|
1583
|
-
className:
|
|
1583
|
+
className: d(G("endpoint"), G("missingEndpoint")),
|
|
1584
1584
|
"data-rly-endpoint-state": "missing",
|
|
1585
1585
|
children: [t.service === void 0 ? null : /* @__PURE__ */ O(B, {
|
|
1586
1586
|
service: t.service,
|
|
@@ -1630,25 +1630,25 @@ var ce = {
|
|
|
1630
1630
|
})
|
|
1631
1631
|
]
|
|
1632
1632
|
});
|
|
1633
|
-
},
|
|
1634
|
-
let
|
|
1635
|
-
|
|
1633
|
+
}, jt = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: r, ...i }) => {
|
|
1634
|
+
let a = o(n, "RelationshipChain heading"), s = o(t, "RelationshipChain emptyLabel");
|
|
1635
|
+
Ot(r);
|
|
1636
1636
|
let c = `${E()}-heading`;
|
|
1637
1637
|
return /* @__PURE__ */ k("section", {
|
|
1638
1638
|
...i,
|
|
1639
1639
|
"aria-labelledby": c,
|
|
1640
|
-
className:
|
|
1640
|
+
className: d(G("root"), e),
|
|
1641
1641
|
children: [/* @__PURE__ */ O("h2", {
|
|
1642
1642
|
className: G("heading"),
|
|
1643
1643
|
id: c,
|
|
1644
|
-
children:
|
|
1644
|
+
children: a
|
|
1645
1645
|
}), r.length === 0 ? /* @__PURE__ */ O("p", {
|
|
1646
1646
|
className: G("empty"),
|
|
1647
1647
|
children: s
|
|
1648
1648
|
}) : /* @__PURE__ */ O("ol", {
|
|
1649
1649
|
className: G("list"),
|
|
1650
1650
|
children: r.map((e) => {
|
|
1651
|
-
let t =
|
|
1651
|
+
let t = wt[e.direction], n = Ct[e.lifecycle];
|
|
1652
1652
|
return /* @__PURE__ */ k("li", {
|
|
1653
1653
|
className: G("item"),
|
|
1654
1654
|
"data-rly-relationship-id": e.id,
|
|
@@ -1656,7 +1656,7 @@ var ce = {
|
|
|
1656
1656
|
"data-rly-relationship-kind": e.kind,
|
|
1657
1657
|
"data-rly-relationship-lifecycle": e.lifecycle,
|
|
1658
1658
|
children: [
|
|
1659
|
-
/* @__PURE__ */ O(
|
|
1659
|
+
/* @__PURE__ */ O(At, { endpoint: e.source }),
|
|
1660
1660
|
/* @__PURE__ */ k("div", {
|
|
1661
1661
|
className: G("relationship"),
|
|
1662
1662
|
"data-rly-relationship-detail": "",
|
|
@@ -1673,7 +1673,7 @@ var ce = {
|
|
|
1673
1673
|
className: G("kind"),
|
|
1674
1674
|
children: e.kind
|
|
1675
1675
|
}),
|
|
1676
|
-
/* @__PURE__ */ O(
|
|
1676
|
+
/* @__PURE__ */ O(T, {
|
|
1677
1677
|
icon: n.icon,
|
|
1678
1678
|
label: n.label,
|
|
1679
1679
|
size: "compact",
|
|
@@ -1692,7 +1692,7 @@ var ce = {
|
|
|
1692
1692
|
})
|
|
1693
1693
|
]
|
|
1694
1694
|
}),
|
|
1695
|
-
/* @__PURE__ */ O(
|
|
1695
|
+
/* @__PURE__ */ O(At, { endpoint: e.target }),
|
|
1696
1696
|
/* @__PURE__ */ k("p", {
|
|
1697
1697
|
className: G("evidence"),
|
|
1698
1698
|
children: [/* @__PURE__ */ O("span", {
|
|
@@ -1708,7 +1708,7 @@ var ce = {
|
|
|
1708
1708
|
})
|
|
1709
1709
|
})]
|
|
1710
1710
|
});
|
|
1711
|
-
},
|
|
1711
|
+
}, Mt = {
|
|
1712
1712
|
root: "rly_RelationshipTable-module__root",
|
|
1713
1713
|
heading: "rly_RelationshipTable-module__heading",
|
|
1714
1714
|
empty: "rly_RelationshipTable-module__empty",
|
|
@@ -1731,9 +1731,9 @@ var ce = {
|
|
|
1731
1731
|
arrow: "rly_RelationshipTable-module__arrow",
|
|
1732
1732
|
body: "rly_RelationshipTable-module__body",
|
|
1733
1733
|
row: "rly_RelationshipTable-module__row"
|
|
1734
|
-
}, K = (e) =>
|
|
1734
|
+
}, K = (e) => c(Mt, e), Nt = ({ endpoint: t }) => {
|
|
1735
1735
|
if (t.state === "missing") return /* @__PURE__ */ k("div", {
|
|
1736
|
-
className:
|
|
1736
|
+
className: d(K("endpoint"), K("missingEndpoint")),
|
|
1737
1737
|
"data-rly-endpoint-state": "missing",
|
|
1738
1738
|
children: [t.service === void 0 ? null : /* @__PURE__ */ O(B, {
|
|
1739
1739
|
service: t.service,
|
|
@@ -1783,18 +1783,18 @@ var ce = {
|
|
|
1783
1783
|
})
|
|
1784
1784
|
]
|
|
1785
1785
|
});
|
|
1786
|
-
},
|
|
1787
|
-
let
|
|
1788
|
-
|
|
1786
|
+
}, Pt = ({ className: e, emptyLabel: t = "No relationships recorded.", heading: n, relationships: r, ...i }) => {
|
|
1787
|
+
let a = o(n, "RelationshipTable heading"), s = o(t, "RelationshipTable emptyLabel");
|
|
1788
|
+
Ot(r);
|
|
1789
1789
|
let c = `${E()}-heading`;
|
|
1790
1790
|
return /* @__PURE__ */ k("section", {
|
|
1791
1791
|
...i,
|
|
1792
1792
|
"aria-labelledby": c,
|
|
1793
|
-
className:
|
|
1793
|
+
className: d(K("root"), e),
|
|
1794
1794
|
children: [/* @__PURE__ */ O("h2", {
|
|
1795
1795
|
className: K("heading"),
|
|
1796
1796
|
id: c,
|
|
1797
|
-
children:
|
|
1797
|
+
children: a
|
|
1798
1798
|
}), r.length === 0 ? /* @__PURE__ */ O("p", {
|
|
1799
1799
|
className: K("empty"),
|
|
1800
1800
|
children: s
|
|
@@ -1824,7 +1824,7 @@ var ce = {
|
|
|
1824
1824
|
}), /* @__PURE__ */ O("tbody", {
|
|
1825
1825
|
className: K("body"),
|
|
1826
1826
|
children: r.map((e) => {
|
|
1827
|
-
let t =
|
|
1827
|
+
let t = wt[e.direction], n = Ct[e.lifecycle];
|
|
1828
1828
|
return /* @__PURE__ */ k("tr", {
|
|
1829
1829
|
className: K("row"),
|
|
1830
1830
|
"data-rly-relationship-id": e.id,
|
|
@@ -1835,7 +1835,7 @@ var ce = {
|
|
|
1835
1835
|
/* @__PURE__ */ O("td", {
|
|
1836
1836
|
className: K("cell"),
|
|
1837
1837
|
"data-label": "Source",
|
|
1838
|
-
children: /* @__PURE__ */ O(
|
|
1838
|
+
children: /* @__PURE__ */ O(Nt, { endpoint: e.source })
|
|
1839
1839
|
}),
|
|
1840
1840
|
/* @__PURE__ */ O("td", {
|
|
1841
1841
|
className: K("cell"),
|
|
@@ -1856,7 +1856,7 @@ var ce = {
|
|
|
1856
1856
|
className: K("kind"),
|
|
1857
1857
|
children: e.kind
|
|
1858
1858
|
}),
|
|
1859
|
-
/* @__PURE__ */ O(
|
|
1859
|
+
/* @__PURE__ */ O(T, {
|
|
1860
1860
|
icon: n.icon,
|
|
1861
1861
|
label: n.label,
|
|
1862
1862
|
size: "compact",
|
|
@@ -1879,7 +1879,7 @@ var ce = {
|
|
|
1879
1879
|
/* @__PURE__ */ O("td", {
|
|
1880
1880
|
className: K("cell"),
|
|
1881
1881
|
"data-label": "Target",
|
|
1882
|
-
children: /* @__PURE__ */ O(
|
|
1882
|
+
children: /* @__PURE__ */ O(Nt, { endpoint: e.target })
|
|
1883
1883
|
}),
|
|
1884
1884
|
/* @__PURE__ */ O("td", {
|
|
1885
1885
|
className: K("cell"),
|
|
@@ -1896,7 +1896,7 @@ var ce = {
|
|
|
1896
1896
|
})]
|
|
1897
1897
|
})]
|
|
1898
1898
|
});
|
|
1899
|
-
},
|
|
1899
|
+
}, Ft = {
|
|
1900
1900
|
root: "rly_RelayDock-module__root",
|
|
1901
1901
|
trigger: "rly_RelayDock-module__trigger",
|
|
1902
1902
|
close: "rly_RelayDock-module__close",
|
|
@@ -1926,58 +1926,206 @@ var ce = {
|
|
|
1926
1926
|
ready: "rly_RelayDock-module__ready",
|
|
1927
1927
|
state: "rly_RelayDock-module__state",
|
|
1928
1928
|
footer: "rly_RelayDock-module__footer"
|
|
1929
|
-
}, q = (e) =>
|
|
1929
|
+
}, q = (e) => c(Ft, e), It = "(max-width: 40rem), (max-height: 40rem) and (pointer: coarse)", Lt = [
|
|
1930
1930
|
"a[href]",
|
|
1931
1931
|
"button:not([disabled])",
|
|
1932
|
+
"iframe:not([tabindex=\"-1\"])",
|
|
1932
1933
|
"input:not([disabled])",
|
|
1933
1934
|
"select:not([disabled])",
|
|
1934
1935
|
"details > summary:first-of-type",
|
|
1935
1936
|
"textarea:not([disabled])",
|
|
1936
1937
|
"[contenteditable]:not([contenteditable=\"false\"])",
|
|
1937
1938
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
1938
|
-
].join(","),
|
|
1939
|
+
].join(","), Rt = "button, fieldset, input, object, optgroup, option, output, select, textarea", zt = (e) => "activeElement" in e, Bt = (e) => "host" in e && a(e.host), Vt = (e) => {
|
|
1940
|
+
let t = e.activeElement;
|
|
1941
|
+
return t === null ? null : t.shadowRoot === null ? t : Vt(t.shadowRoot) ?? t;
|
|
1942
|
+
}, Ht = (e) => {
|
|
1943
|
+
let t = e.getRootNode();
|
|
1944
|
+
return zt(t) ? Vt(t) : e.ownerDocument.activeElement;
|
|
1945
|
+
}, Ut = (e) => {
|
|
1939
1946
|
let t = e.getRootNode();
|
|
1940
|
-
return
|
|
1941
|
-
},
|
|
1947
|
+
return Bt(t) && f(t.host) ? t.host : null;
|
|
1948
|
+
}, Wt = (e) => "assignedSlot" in e, Gt = (e) => e.nodeType === 1, Kt = (e, t) => {
|
|
1949
|
+
if (t !== void 0 && t.has(e)) {
|
|
1950
|
+
let n = t.get(e);
|
|
1951
|
+
return n != null && Gt(n) ? n : null;
|
|
1952
|
+
}
|
|
1953
|
+
return (Wt(e) ? e.assignedSlot : null) ?? e.parentElement ?? Ut(e);
|
|
1954
|
+
}, qt = (e, t, n) => {
|
|
1955
|
+
if (t === null) return !1;
|
|
1956
|
+
if (e.contains(t)) return !0;
|
|
1957
|
+
let r = /* @__PURE__ */ new Set(), i = t;
|
|
1958
|
+
for (; !r.has(i);) {
|
|
1959
|
+
r.add(i);
|
|
1960
|
+
let t = Kt(i, n);
|
|
1961
|
+
if (t === null) return !1;
|
|
1962
|
+
if (t === e || e.contains(t)) return !0;
|
|
1963
|
+
i = t;
|
|
1964
|
+
}
|
|
1965
|
+
return !1;
|
|
1966
|
+
}, Jt = (e, t) => qt(e, t), Yt = (e) => {
|
|
1942
1967
|
let t = e.activeElement;
|
|
1943
|
-
return
|
|
1944
|
-
},
|
|
1945
|
-
let t =
|
|
1968
|
+
return f(t) ? t.shadowRoot === null ? t : Yt(t.shadowRoot) ?? t : null;
|
|
1969
|
+
}, Xt = (e) => {
|
|
1970
|
+
let t = Yt(e);
|
|
1946
1971
|
return t === e.body || t === e.documentElement ? null : t;
|
|
1947
|
-
},
|
|
1972
|
+
}, Zt = (e, t) => {
|
|
1948
1973
|
if (e.matches(":disabled")) return !1;
|
|
1949
|
-
let
|
|
1950
|
-
if (
|
|
1951
|
-
let
|
|
1952
|
-
if (
|
|
1953
|
-
let
|
|
1954
|
-
for (;
|
|
1955
|
-
if (
|
|
1956
|
-
|
|
1957
|
-
|
|
1974
|
+
let n = e.ownerDocument.defaultView;
|
|
1975
|
+
if (n === null) return !f(e) || e.hidden === !1;
|
|
1976
|
+
let r = n.getComputedStyle(e).visibility;
|
|
1977
|
+
if (r === "hidden" || r === "collapse") return !1;
|
|
1978
|
+
let i = e;
|
|
1979
|
+
for (; i !== null;) {
|
|
1980
|
+
if (f(i) && i.inert) return !1;
|
|
1981
|
+
if (i.tagName === "DETAILS" && !i.hasAttribute("open")) {
|
|
1982
|
+
let n = i.querySelector(":scope > summary:first-of-type");
|
|
1983
|
+
if (n === null || !qt(n, e, t)) return !1;
|
|
1958
1984
|
}
|
|
1959
|
-
if (
|
|
1960
|
-
let
|
|
1961
|
-
if (
|
|
1985
|
+
if (i !== e && i.tagName === "FIELDSET" && i.hasAttribute("disabled") && e.matches(Rt)) {
|
|
1986
|
+
let n = i.querySelector(":scope > legend:first-of-type");
|
|
1987
|
+
if (n === null || !qt(n, e, t)) return !1;
|
|
1962
1988
|
}
|
|
1963
|
-
let
|
|
1964
|
-
if (
|
|
1965
|
-
|
|
1989
|
+
let r = n.getComputedStyle(i);
|
|
1990
|
+
if (f(i) && i.hidden !== !1 || r.display === "none" || i === e && r.display === "contents" || i !== e && r.contentVisibility === "hidden") return !1;
|
|
1991
|
+
i = Kt(i, t);
|
|
1966
1992
|
}
|
|
1967
1993
|
return !0;
|
|
1968
|
-
},
|
|
1969
|
-
let n =
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1994
|
+
}, Qt = (e, t) => {
|
|
1995
|
+
let n = e.getRootNode(), r = /* @__PURE__ */ new Set(), i = Kt(e, t);
|
|
1996
|
+
for (; i !== null && !r.has(i);) {
|
|
1997
|
+
if (r.add(i), i.getRootNode() !== n) return !1;
|
|
1998
|
+
if (f(i) && i.isContentEditable) return !0;
|
|
1999
|
+
i = Kt(i, t);
|
|
2000
|
+
}
|
|
2001
|
+
return !1;
|
|
2002
|
+
}, $t = (e) => f(e) && e.tagName === "INPUT" && e.getAttribute("type")?.toLowerCase() === "radio", en = (e) => "tabIndex" in e && u(e.tabIndex), tn = "http://www.w3.org/2000/svg", nn = (e) => {
|
|
2003
|
+
if (e.namespaceURI === tn && e.localName === "a" && e.hasAttribute("href")) {
|
|
2004
|
+
let t = e.getAttribute("tabindex");
|
|
2005
|
+
if (t === null) return 0;
|
|
2006
|
+
let n = Number.parseInt(t, 10);
|
|
2007
|
+
return Number.isNaN(n) ? 0 : n;
|
|
2008
|
+
}
|
|
2009
|
+
return en(e) ? e.tabIndex : null;
|
|
2010
|
+
}, rn = (e) => e.tagName === "SLOT" && "assignedElements" in e, an = (e) => rn(e) && Bt(e.getRootNode()), on = (e, t) => {
|
|
2011
|
+
let n = nn(e) ?? -1, r = nn(t) ?? -1, i = n > 0, a = r > 0;
|
|
2012
|
+
return i === a ? i && a && n !== r ? n - r : 0 : i ? -1 : 1;
|
|
2013
|
+
}, sn = (e) => {
|
|
2014
|
+
let t = nn(e);
|
|
2015
|
+
return t !== null && e.hasAttribute("tabindex") && t < 0;
|
|
2016
|
+
}, cn = (e) => sn(e) && (rn(e) || f(e) && e.shadowRoot?.delegatesFocus === !0), ln = (e, t, n, r) => {
|
|
2017
|
+
if (e.name.length === 0) return !0;
|
|
2018
|
+
let i = n.filter(({ element: n, nativeRoot: i }) => i === t && $t(n) && n.name === e.name && n.form === e.form && Zt(n, r)).map(({ element: e }) => e).filter($t).find((e) => e.checked);
|
|
2019
|
+
return i === void 0 ? e.tabIndex >= 0 : i === e;
|
|
2020
|
+
}, un = (e) => {
|
|
2021
|
+
let t = (e, r, i) => {
|
|
2022
|
+
let a = [], o = /* @__PURE__ */ new Map(), s = (e, i) => {
|
|
2023
|
+
if (a.push({
|
|
2024
|
+
composedParent: i,
|
|
2025
|
+
element: e,
|
|
2026
|
+
focusScope: r,
|
|
2027
|
+
nativeRoot: e.getRootNode()
|
|
2028
|
+
}), an(e)) {
|
|
2029
|
+
let n = e.assignedNodes({ flatten: !1 }), r = e.assignedElements({ flatten: !1 }), i = [...e.children];
|
|
2030
|
+
o.set(e, t(n.length > 0 ? r : i, e, e));
|
|
2031
|
+
return;
|
|
2032
|
+
}
|
|
2033
|
+
if (rn(e)) {
|
|
2034
|
+
o.set(e, t([...e.children], e, e));
|
|
2035
|
+
return;
|
|
2036
|
+
}
|
|
2037
|
+
if (e.shadowRoot !== null && (!sn(e) || e.shadowRoot.delegatesFocus === !0)) o.set(e, n(e.shadowRoot, e.shadowRoot, e));
|
|
2038
|
+
else if (e.shadowRoot === null) for (let t of e.children) s(t, e);
|
|
2039
|
+
};
|
|
2040
|
+
for (let t of e) s(t, i);
|
|
2041
|
+
return {
|
|
2042
|
+
entries: a,
|
|
2043
|
+
nested: o
|
|
2044
|
+
};
|
|
2045
|
+
}, n = (e, n, r) => t([...e.children], n, r), r = (e) => {
|
|
2046
|
+
let t = [...e.entries].sort((e, t) => on(e.element, t.element)), n = [];
|
|
2047
|
+
for (let i of t) {
|
|
2048
|
+
n.push(i);
|
|
2049
|
+
let t = e.nested.get(i.element);
|
|
2050
|
+
if (t !== void 0) for (let e of r(t)) n.push(e);
|
|
2051
|
+
}
|
|
2052
|
+
return n;
|
|
2053
|
+
};
|
|
2054
|
+
return r(n(e, e, e));
|
|
2055
|
+
}, dn = (e, t, n) => t.filter((r) => {
|
|
2056
|
+
let { element: i, nativeRoot: a } = r;
|
|
2057
|
+
if (i.tagName === "SLOT") return !1;
|
|
2058
|
+
let o = nn(i);
|
|
2059
|
+
if (o === null) return !1;
|
|
2060
|
+
let s = i, c = /* @__PURE__ */ new Set();
|
|
2061
|
+
for (; !c.has(s);) {
|
|
2062
|
+
c.add(s);
|
|
2063
|
+
let t = Kt(s, n);
|
|
2064
|
+
if (t === null || t === e) break;
|
|
2065
|
+
if (cn(t)) return !1;
|
|
2066
|
+
s = t;
|
|
2067
|
+
}
|
|
2068
|
+
return !i.matches(Lt) || i.shadowRoot?.delegatesFocus === !0 || !Zt(i, n) || $t(i) && !ln(i, a, t, n) ? !1 : o >= 0 || f(i) && i.isContentEditable && !i.hasAttribute("tabindex") && !Qt(i, n) || i.matches("details > summary:first-of-type") && !sn(i);
|
|
2069
|
+
}).map(({ element: e }) => e), fn = (e) => a(e) && "tagName" in e && e.tagName === "IFRAME" && "contentDocument" in e, pn = (e) => a(e) && "nodeType" in e && e.nodeType === 1, mn = (e) => [...e.querySelectorAll(Lt)].filter((e) => {
|
|
2070
|
+
let t = nn(e);
|
|
2071
|
+
return t !== null && t >= 0 || f(e) && e.isContentEditable && !e.hasAttribute("tabindex") && !Qt(e, /* @__PURE__ */ new Map());
|
|
2072
|
+
}), hn = (e) => {
|
|
2073
|
+
let t = e.ownerDocument, n = /* @__PURE__ */ new Map(), r = (t, n) => {
|
|
2074
|
+
let r = un(e), i = dn(e, r, new Map(r.map(({ composedParent: e, element: t }) => [t, e]))), a = i.findIndex((e) => e === t), o = n ? i[i.length - 1] : i[0];
|
|
2075
|
+
((a < 0 ? void 0 : i[a + (n ? -1 : 1)]) ?? o)?.focus();
|
|
2076
|
+
}, i = (e) => {
|
|
2077
|
+
let t = n.get(e), i = e.contentDocument;
|
|
2078
|
+
if (t?.frameDocument !== null && t?.frameDocument !== void 0 && t.frameDocument.removeEventListener("keydown", t.onKeyDown, !0), t === void 0) return;
|
|
2079
|
+
if (i === null) {
|
|
2080
|
+
n.set(e, {
|
|
2081
|
+
...t,
|
|
2082
|
+
frameDocument: null
|
|
2083
|
+
});
|
|
2084
|
+
return;
|
|
2085
|
+
}
|
|
2086
|
+
let a = (t) => {
|
|
2087
|
+
if (t.defaultPrevented || t.key !== "Tab") return;
|
|
2088
|
+
let n = mn(i), a = pn(t.target) ? t.target : i.activeElement, o = n[0], s = n[n.length - 1];
|
|
2089
|
+
(t.shiftKey ? a === o : a === s) && (t.preventDefault(), r(e, t.shiftKey));
|
|
2090
|
+
};
|
|
2091
|
+
i.addEventListener("keydown", a, !0), n.set(e, {
|
|
2092
|
+
...t,
|
|
2093
|
+
frameDocument: i,
|
|
2094
|
+
onKeyDown: a
|
|
2095
|
+
});
|
|
2096
|
+
}, a = (e) => {
|
|
2097
|
+
if (n.has(e)) {
|
|
2098
|
+
i(e);
|
|
2099
|
+
return;
|
|
2100
|
+
}
|
|
2101
|
+
let t = () => i(e);
|
|
2102
|
+
n.set(e, {
|
|
2103
|
+
frameDocument: null,
|
|
2104
|
+
onKeyDown: () => void 0,
|
|
2105
|
+
onLoad: t
|
|
2106
|
+
}), e.addEventListener("load", t), i(e);
|
|
2107
|
+
}, o = () => {
|
|
2108
|
+
for (let { element: t } of un(e)) t.tagName === "IFRAME" && fn(t) && a(t);
|
|
2109
|
+
}, s = (e) => {
|
|
2110
|
+
fn(e.target) && a(e.target);
|
|
2111
|
+
};
|
|
2112
|
+
t.addEventListener("focusin", s, !0), o();
|
|
2113
|
+
let c = t.defaultView?.MutationObserver, l = c === void 0 ? null : new c(o);
|
|
2114
|
+
return l?.observe(e, {
|
|
2115
|
+
childList: !0,
|
|
2116
|
+
subtree: !0
|
|
2117
|
+
}), () => {
|
|
2118
|
+
t.removeEventListener("focusin", s, !0), l?.disconnect();
|
|
2119
|
+
for (let [e, t] of n) e.removeEventListener("load", t.onLoad), t.frameDocument !== null && t.frameDocument.removeEventListener("keydown", t.onKeyDown, !0);
|
|
2120
|
+
};
|
|
2121
|
+
}, gn = (e, t) => {
|
|
1974
2122
|
if (e === null || !("matchMedia" in e)) return () => void 0;
|
|
1975
|
-
let n = e.matchMedia(
|
|
2123
|
+
let n = e.matchMedia(It);
|
|
1976
2124
|
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
1977
|
-
},
|
|
1978
|
-
let t =
|
|
1979
|
-
return
|
|
1980
|
-
},
|
|
2125
|
+
}, _n = (e) => e !== null && "matchMedia" in e && e.matchMedia(It).matches, vn = () => !1, yn = (e) => {
|
|
2126
|
+
let t = ae((t) => gn(e, t), [e]), n = ae(() => _n(e), [e]);
|
|
2127
|
+
return ce(t, n, vn);
|
|
2128
|
+
}, bn = () => /* @__PURE__ */ k("span", {
|
|
1981
2129
|
"aria-hidden": "true",
|
|
1982
2130
|
className: q("mark"),
|
|
1983
2131
|
children: [/* @__PURE__ */ O("span", { className: q("markLine") }), /* @__PURE__ */ O("svg", {
|
|
@@ -1989,7 +2137,7 @@ var ce = {
|
|
|
1989
2137
|
fill: "currentColor"
|
|
1990
2138
|
})
|
|
1991
2139
|
})]
|
|
1992
|
-
}),
|
|
2140
|
+
}), xn = ({ context: e, labelId: t }) => {
|
|
1993
2141
|
if (e.length === 0) throw Error("RelayDock context must contain at least one chip");
|
|
1994
2142
|
let n = /* @__PURE__ */ new Set();
|
|
1995
2143
|
return /* @__PURE__ */ k("section", {
|
|
@@ -2002,23 +2150,23 @@ var ce = {
|
|
|
2002
2150
|
}), /* @__PURE__ */ O("ul", {
|
|
2003
2151
|
className: q("chipList"),
|
|
2004
2152
|
children: e.map((e) => {
|
|
2005
|
-
let t =
|
|
2153
|
+
let t = o(e.id, "RelayDock context chip id");
|
|
2006
2154
|
if (n.has(t)) throw Error(`Duplicate RelayDock context chip id: ${t}`);
|
|
2007
2155
|
return n.add(t), /* @__PURE__ */ k("li", {
|
|
2008
2156
|
className: q("chip"),
|
|
2009
2157
|
"data-rly-relay-dock-context": t,
|
|
2010
2158
|
children: [/* @__PURE__ */ O("span", {
|
|
2011
2159
|
className: q("chipLabel"),
|
|
2012
|
-
children:
|
|
2160
|
+
children: o(e.label, "RelayDock context chip label")
|
|
2013
2161
|
}), /* @__PURE__ */ O("span", {
|
|
2014
2162
|
className: q("chipValue"),
|
|
2015
|
-
children:
|
|
2163
|
+
children: o(e.value, "RelayDock context chip value")
|
|
2016
2164
|
})]
|
|
2017
2165
|
}, t);
|
|
2018
2166
|
})
|
|
2019
2167
|
})]
|
|
2020
2168
|
});
|
|
2021
|
-
},
|
|
2169
|
+
}, Sn = ({ labelId: e, selection: t }) => {
|
|
2022
2170
|
let n = E(), r = E();
|
|
2023
2171
|
return /* @__PURE__ */ k("section", {
|
|
2024
2172
|
"aria-labelledby": e,
|
|
@@ -2029,11 +2177,11 @@ var ce = {
|
|
|
2029
2177
|
children: "Run with"
|
|
2030
2178
|
}), /* @__PURE__ */ k("div", {
|
|
2031
2179
|
className: q("selectionGrid"),
|
|
2032
|
-
children: [/* @__PURE__ */ O(
|
|
2180
|
+
children: [/* @__PURE__ */ O(re, {
|
|
2033
2181
|
controlId: `rly-relay-dock-profile-${n}`,
|
|
2034
2182
|
label: "Profile",
|
|
2035
2183
|
size: "compact",
|
|
2036
|
-
children: (e) => /* @__PURE__ */ O(
|
|
2184
|
+
children: (e) => /* @__PURE__ */ O(ne, {
|
|
2037
2185
|
...e,
|
|
2038
2186
|
...t.profile.disabled === void 0 ? {} : { disabled: t.profile.disabled },
|
|
2039
2187
|
onValueChange: t.profile.onValueChange,
|
|
@@ -2041,11 +2189,11 @@ var ce = {
|
|
|
2041
2189
|
size: "compact",
|
|
2042
2190
|
value: t.profile.value
|
|
2043
2191
|
})
|
|
2044
|
-
}), /* @__PURE__ */ O(
|
|
2192
|
+
}), /* @__PURE__ */ O(re, {
|
|
2045
2193
|
controlId: `rly-relay-dock-model-${r}`,
|
|
2046
2194
|
label: "Model",
|
|
2047
2195
|
size: "compact",
|
|
2048
|
-
children: (e) => /* @__PURE__ */ O(
|
|
2196
|
+
children: (e) => /* @__PURE__ */ O(ne, {
|
|
2049
2197
|
...e,
|
|
2050
2198
|
...t.model.disabled === void 0 ? {} : { disabled: t.model.disabled },
|
|
2051
2199
|
onValueChange: t.model.onValueChange,
|
|
@@ -2056,7 +2204,7 @@ var ce = {
|
|
|
2056
2204
|
})]
|
|
2057
2205
|
})]
|
|
2058
2206
|
});
|
|
2059
|
-
},
|
|
2207
|
+
}, Cn = ({ state: e }) => {
|
|
2060
2208
|
if (e.status === "ready") return /* @__PURE__ */ O("section", {
|
|
2061
2209
|
"aria-live": "polite",
|
|
2062
2210
|
className: q("ready"),
|
|
@@ -2064,16 +2212,16 @@ var ce = {
|
|
|
2064
2212
|
children: e.content
|
|
2065
2213
|
});
|
|
2066
2214
|
let t = e.status === "error" ? "assertive" : "polite", n = e.status === "loading" ? "progress" : e.status === "error" ? "critical" : "neutral";
|
|
2067
|
-
return /* @__PURE__ */ O(
|
|
2215
|
+
return /* @__PURE__ */ O(x, {
|
|
2068
2216
|
action: "action" in e ? e.action : void 0,
|
|
2069
2217
|
announce: t,
|
|
2070
2218
|
className: q("state"),
|
|
2071
2219
|
"data-rly-relay-dock-state": e.status,
|
|
2072
2220
|
description: e.description,
|
|
2073
|
-
title:
|
|
2221
|
+
title: o(e.title, `RelayDock ${e.status} title`),
|
|
2074
2222
|
tone: n
|
|
2075
2223
|
});
|
|
2076
|
-
},
|
|
2224
|
+
}, wn = ({ context: e, footer: t, selection: n, state: r }) => {
|
|
2077
2225
|
let i = E(), a = E();
|
|
2078
2226
|
return /* @__PURE__ */ k("div", {
|
|
2079
2227
|
className: q("contents"),
|
|
@@ -2081,10 +2229,10 @@ var ce = {
|
|
|
2081
2229
|
children: [
|
|
2082
2230
|
/* @__PURE__ */ k("div", {
|
|
2083
2231
|
className: q("fixedContext"),
|
|
2084
|
-
children: [/* @__PURE__ */ O(
|
|
2232
|
+
children: [/* @__PURE__ */ O(xn, {
|
|
2085
2233
|
context: e,
|
|
2086
2234
|
labelId: i
|
|
2087
|
-
}), /* @__PURE__ */ O(
|
|
2235
|
+
}), /* @__PURE__ */ O(Sn, {
|
|
2088
2236
|
labelId: a,
|
|
2089
2237
|
selection: n
|
|
2090
2238
|
})]
|
|
@@ -2093,7 +2241,7 @@ var ce = {
|
|
|
2093
2241
|
"aria-label": "Relay thread",
|
|
2094
2242
|
className: q("body"),
|
|
2095
2243
|
tabIndex: 0,
|
|
2096
|
-
children: /* @__PURE__ */ O(
|
|
2244
|
+
children: /* @__PURE__ */ O(Cn, { state: r })
|
|
2097
2245
|
}),
|
|
2098
2246
|
t == null ? null : /* @__PURE__ */ O("footer", {
|
|
2099
2247
|
className: q("footer"),
|
|
@@ -2101,55 +2249,89 @@ var ce = {
|
|
|
2101
2249
|
})
|
|
2102
2250
|
]
|
|
2103
2251
|
});
|
|
2104
|
-
},
|
|
2252
|
+
}, Tn = ({ restoreDocument: e, restoreTarget: t, target: n }) => {
|
|
2105
2253
|
let r = D(!1);
|
|
2106
|
-
return
|
|
2254
|
+
return oe(() => {
|
|
2107
2255
|
let i = n.current;
|
|
2108
|
-
i !== null && (r.current ||= (t.current =
|
|
2256
|
+
i !== null && (r.current ||= (t.current = Xt(e ?? i.ownerDocument), !0), i.focus());
|
|
2109
2257
|
}, [
|
|
2110
2258
|
e,
|
|
2111
2259
|
t,
|
|
2112
2260
|
n
|
|
2113
2261
|
]), null;
|
|
2114
|
-
},
|
|
2262
|
+
}, En = ({ children: e, modal: t, modalLayer: n }) => {
|
|
2115
2263
|
let r = D(null);
|
|
2116
|
-
return
|
|
2264
|
+
return g(), _(r, t), y(r, t), /* @__PURE__ */ O("div", {
|
|
2117
2265
|
className: q("layer"),
|
|
2118
2266
|
"data-rly-modal-layer": n ? "" : void 0,
|
|
2119
2267
|
"data-rly-relay-dock-modal": t ? "true" : "false",
|
|
2120
2268
|
ref: r,
|
|
2121
2269
|
children: e
|
|
2122
2270
|
});
|
|
2123
|
-
},
|
|
2124
|
-
let
|
|
2271
|
+
}, Dn = ({ closeRef: t, compactViewport: r, context: i, description: a, footer: o, headingId: s, modal: c, onClose: l, parentModalPresent: u, restoreDocument: p, restoreTargetRef: m, selection: h, state: g, title: _ }) => {
|
|
2272
|
+
let v = `${s}-description`, y = D(null);
|
|
2273
|
+
oe(() => {
|
|
2274
|
+
let e = y.current;
|
|
2275
|
+
if (!(!c || e === null)) return hn(e);
|
|
2276
|
+
}, [c]);
|
|
2277
|
+
let b = (e) => {
|
|
2125
2278
|
let t = e.currentTarget;
|
|
2126
2279
|
if (!e.nativeEvent.composedPath().includes(t) || e.defaultPrevented) return;
|
|
2127
2280
|
if (e.key === "Escape") {
|
|
2128
2281
|
if (e.nativeEvent.isComposing) return;
|
|
2129
|
-
e.stopPropagation(),
|
|
2282
|
+
e.stopPropagation(), l();
|
|
2130
2283
|
return;
|
|
2131
2284
|
}
|
|
2132
2285
|
if (!c || e.key !== "Tab") return;
|
|
2133
|
-
let n =
|
|
2134
|
-
|
|
2286
|
+
let n = un(t), r = new Map(n.map(({ composedParent: e, element: t }) => [t, e])), i = (e) => {
|
|
2287
|
+
let t = /* @__PURE__ */ new Set(), n = e;
|
|
2288
|
+
for (; !t.has(n);) {
|
|
2289
|
+
t.add(n);
|
|
2290
|
+
let e = Kt(n, r);
|
|
2291
|
+
if (e === null) return null;
|
|
2292
|
+
if (f(e) && e.shadowRoot?.delegatesFocus === !0) return e;
|
|
2293
|
+
n = e;
|
|
2294
|
+
}
|
|
2295
|
+
return null;
|
|
2296
|
+
}, a = dn(t, n, r), o = a[0] ?? t, s = a[a.length - 1] ?? t, u = Ht(t), d = new Set(a), p = u !== null && Jt(t, u) && !a.some((e) => e === u), m = (e) => {
|
|
2297
|
+
let t = /* @__PURE__ */ new Set(), i = e;
|
|
2298
|
+
for (; !t.has(i);) {
|
|
2299
|
+
t.add(i);
|
|
2300
|
+
let e = n.findIndex(({ element: e }) => e === i);
|
|
2301
|
+
if (e >= 0) return e;
|
|
2302
|
+
let a = Kt(i, r);
|
|
2303
|
+
if (a === null) return -1;
|
|
2304
|
+
i = a;
|
|
2305
|
+
}
|
|
2306
|
+
return -1;
|
|
2307
|
+
}, h = p && u !== null ? i(u) : null, g = p && u !== null ? m(u) : -1, _ = p ? ((e) => {
|
|
2308
|
+
if (g < 0) return null;
|
|
2309
|
+
for (let t = g + e; t >= 0 && t < n.length; t += e) {
|
|
2310
|
+
let e = n[t]?.element;
|
|
2311
|
+
if (e !== void 0 && d.has(e) && en(e)) return e;
|
|
2312
|
+
}
|
|
2313
|
+
return null;
|
|
2314
|
+
})(e.shiftKey ? -1 : 1) : null, v = h !== null && _ !== null && qt(h, _, r), y = p && !v && (_ === null || !Jt(t, _)), b = e.shiftKey && (u === o || !Jt(t, u) || v || y), x = !e.shiftKey && (u === s || !Jt(t, u) || v || y);
|
|
2315
|
+
!b && !x || (e.preventDefault(), (v && _ !== null ? _ : e.shiftKey ? s : o).focus());
|
|
2135
2316
|
};
|
|
2136
|
-
return /* @__PURE__ */ O(n, { children: (n) => /* @__PURE__ */ O(
|
|
2317
|
+
return /* @__PURE__ */ O(n, { children: (n) => /* @__PURE__ */ O(ie.Root, {
|
|
2137
2318
|
container: n,
|
|
2138
|
-
children: /* @__PURE__ */ k(
|
|
2319
|
+
children: /* @__PURE__ */ k(En, {
|
|
2139
2320
|
modal: c,
|
|
2140
|
-
modalLayer: c ||
|
|
2321
|
+
modalLayer: c || u,
|
|
2141
2322
|
children: [c ? /* @__PURE__ */ O("div", {
|
|
2142
2323
|
"aria-hidden": "true",
|
|
2143
2324
|
className: q("overlay"),
|
|
2144
2325
|
"data-rly-relay-dock-overlay": "",
|
|
2145
|
-
onPointerDown:
|
|
2326
|
+
onPointerDown: l
|
|
2146
2327
|
}) : null, /* @__PURE__ */ k("section", {
|
|
2147
|
-
"aria-describedby":
|
|
2328
|
+
"aria-describedby": v,
|
|
2148
2329
|
"aria-labelledby": s,
|
|
2149
2330
|
"aria-modal": c ? !0 : void 0,
|
|
2150
|
-
className:
|
|
2331
|
+
className: d(q("panel"), q(c ? "sheet" : "rail")),
|
|
2151
2332
|
"data-rly-relay-dock-presentation": r ? "mobile-sheet" : c ? "overlay" : "rail",
|
|
2152
|
-
onKeyDown:
|
|
2333
|
+
onKeyDown: b,
|
|
2334
|
+
ref: y,
|
|
2153
2335
|
role: c ? "dialog" : "complementary",
|
|
2154
2336
|
tabIndex: -1,
|
|
2155
2337
|
children: [
|
|
@@ -2160,16 +2342,16 @@ var ce = {
|
|
|
2160
2342
|
children: [/* @__PURE__ */ O("h1", {
|
|
2161
2343
|
className: q("title"),
|
|
2162
2344
|
id: s,
|
|
2163
|
-
children:
|
|
2345
|
+
children: _
|
|
2164
2346
|
}), /* @__PURE__ */ O("p", {
|
|
2165
2347
|
className: q("description"),
|
|
2166
|
-
id:
|
|
2348
|
+
id: v,
|
|
2167
2349
|
children: a
|
|
2168
2350
|
})]
|
|
2169
2351
|
}), /* @__PURE__ */ O("button", {
|
|
2170
|
-
"aria-label": `Close ${
|
|
2352
|
+
"aria-label": `Close ${_}`,
|
|
2171
2353
|
className: q("close"),
|
|
2172
|
-
onClick:
|
|
2354
|
+
onClick: l,
|
|
2173
2355
|
ref: t,
|
|
2174
2356
|
type: "button",
|
|
2175
2357
|
children: /* @__PURE__ */ O(e, {
|
|
@@ -2178,70 +2360,70 @@ var ce = {
|
|
|
2178
2360
|
})
|
|
2179
2361
|
})]
|
|
2180
2362
|
}),
|
|
2181
|
-
/* @__PURE__ */ O(
|
|
2182
|
-
restoreDocument:
|
|
2183
|
-
restoreTarget:
|
|
2363
|
+
/* @__PURE__ */ O(Tn, {
|
|
2364
|
+
restoreDocument: p,
|
|
2365
|
+
restoreTarget: m,
|
|
2184
2366
|
target: t
|
|
2185
2367
|
}),
|
|
2186
|
-
/* @__PURE__ */ O(
|
|
2368
|
+
/* @__PURE__ */ O(wn, {
|
|
2187
2369
|
context: i,
|
|
2188
2370
|
footer: o,
|
|
2189
|
-
selection:
|
|
2190
|
-
state:
|
|
2371
|
+
selection: h,
|
|
2372
|
+
state: g
|
|
2191
2373
|
})
|
|
2192
2374
|
]
|
|
2193
2375
|
})]
|
|
2194
2376
|
})
|
|
2195
2377
|
}) });
|
|
2196
|
-
},
|
|
2197
|
-
let { className: n, context: r, defaultOpen: i = !1, description:
|
|
2198
|
-
modal:
|
|
2378
|
+
}, On = (e) => {
|
|
2379
|
+
let { className: n, context: r, defaultOpen: i = !1, description: a = "Ask in this context or prepare approval-bound work.", desktopPresentation: s = "overlay", footer: c, onOpenChange: l, open: u, ref: f, selection: p, state: g, title: _ = "Relay", triggerLabel: y = "Open Relay", ...b } = e, [x, S] = se(i), C = m(), ne = h(), re = t(), w = (u ?? x) && ne && re.available, T = yn(re.available ? re.container.ownerDocument.defaultView : null), ie = T || s === "overlay", ae = D(null), ce = D(null), le = D(null), ue = D({
|
|
2380
|
+
modal: ie,
|
|
2199
2381
|
open: !1
|
|
2200
|
-
}),
|
|
2201
|
-
|
|
2382
|
+
}), A = E(), de = o(a, "RelayDock description"), fe = o(_, "RelayDock title"), pe = o(y, "RelayDock triggerLabel"), j = (e) => {
|
|
2383
|
+
u === void 0 && S(e), l?.(e);
|
|
2202
2384
|
};
|
|
2203
|
-
return
|
|
2204
|
-
let e =
|
|
2205
|
-
|
|
2206
|
-
modal:
|
|
2207
|
-
open:
|
|
2208
|
-
}, !e.open &&
|
|
2209
|
-
}, [
|
|
2385
|
+
return oe(() => {
|
|
2386
|
+
let e = ue.current;
|
|
2387
|
+
ue.current = {
|
|
2388
|
+
modal: ie,
|
|
2389
|
+
open: w
|
|
2390
|
+
}, !e.open && w ? (te(), ce.current?.focus()) : e.open && w && e.modal !== ie ? ce.current?.focus() : e.open && !w && (ee(le.current ?? ae.current), le.current = null);
|
|
2391
|
+
}, [ie, w]), /* @__PURE__ */ k("div", {
|
|
2210
2392
|
...b,
|
|
2211
|
-
className:
|
|
2393
|
+
className: d(q("root"), n),
|
|
2212
2394
|
"data-rly-relay-dock": "",
|
|
2213
|
-
"data-rly-relay-dock-open":
|
|
2214
|
-
ref:
|
|
2395
|
+
"data-rly-relay-dock-open": w ? "true" : "false",
|
|
2396
|
+
ref: f,
|
|
2215
2397
|
children: [/* @__PURE__ */ k("button", {
|
|
2216
|
-
"aria-expanded":
|
|
2217
|
-
"aria-haspopup":
|
|
2398
|
+
"aria-expanded": w,
|
|
2399
|
+
"aria-haspopup": ie ? "dialog" : void 0,
|
|
2218
2400
|
className: q("trigger"),
|
|
2219
2401
|
"data-rly-relay-dock-trigger": "",
|
|
2220
|
-
hidden:
|
|
2402
|
+
hidden: w,
|
|
2221
2403
|
onClick: (e) => {
|
|
2222
|
-
e.currentTarget.focus(),
|
|
2404
|
+
e.currentTarget.focus(), j(!0);
|
|
2223
2405
|
},
|
|
2224
|
-
ref:
|
|
2406
|
+
ref: ae,
|
|
2225
2407
|
type: "button",
|
|
2226
|
-
children: [/* @__PURE__ */ O(
|
|
2227
|
-
}),
|
|
2408
|
+
children: [/* @__PURE__ */ O(bn, {}), /* @__PURE__ */ O("span", { children: pe })]
|
|
2409
|
+
}), w ? /* @__PURE__ */ O(v, { children: /* @__PURE__ */ O(Dn, {
|
|
2228
2410
|
closeRef: ce,
|
|
2229
|
-
compactViewport:
|
|
2411
|
+
compactViewport: T,
|
|
2230
2412
|
context: r,
|
|
2231
2413
|
description: de,
|
|
2232
2414
|
footer: c,
|
|
2233
|
-
headingId:
|
|
2234
|
-
modal:
|
|
2235
|
-
onClose: () =>
|
|
2236
|
-
parentModalPresent:
|
|
2237
|
-
restoreDocument:
|
|
2238
|
-
restoreTargetRef:
|
|
2239
|
-
selection:
|
|
2240
|
-
state:
|
|
2241
|
-
title:
|
|
2415
|
+
headingId: A,
|
|
2416
|
+
modal: ie,
|
|
2417
|
+
onClose: () => j(!1),
|
|
2418
|
+
parentModalPresent: C,
|
|
2419
|
+
restoreDocument: ae.current?.ownerDocument ?? null,
|
|
2420
|
+
restoreTargetRef: le,
|
|
2421
|
+
selection: p,
|
|
2422
|
+
state: g,
|
|
2423
|
+
title: fe
|
|
2242
2424
|
}) }) : null]
|
|
2243
2425
|
});
|
|
2244
|
-
},
|
|
2426
|
+
}, kn = /^(?:--[A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*|-?[A-Za-z_\u0080-\uD7FF\uE000-\u{10ffff}][A-Za-z0-9_\-\u0080-\uD7FF\uE000-\u{10ffff}]*)$/u, An = /* @__PURE__ */ new Set([
|
|
2245
2427
|
"auto",
|
|
2246
2428
|
"default",
|
|
2247
2429
|
"inherit",
|
|
@@ -2251,7 +2433,7 @@ var ce = {
|
|
|
2251
2433
|
"revert",
|
|
2252
2434
|
"revert-layer",
|
|
2253
2435
|
"unset"
|
|
2254
|
-
]),
|
|
2436
|
+
]), jn = (e) => {
|
|
2255
2437
|
if (e === void 0) return;
|
|
2256
2438
|
let t = {
|
|
2257
2439
|
relay: e.relay,
|
|
@@ -2263,14 +2445,14 @@ var ce = {
|
|
|
2263
2445
|
["version", t.version]
|
|
2264
2446
|
], r = /* @__PURE__ */ new Set();
|
|
2265
2447
|
for (let [e, t] of n) {
|
|
2266
|
-
let n =
|
|
2267
|
-
if (n === "root" ||
|
|
2268
|
-
if (!
|
|
2448
|
+
let n = o(t, `Release transition ${e} name`);
|
|
2449
|
+
if (n === "root" || An.has(n.toLowerCase())) throw Error(`Release transition ${e} name must not use a reserved CSS value: ${n}`);
|
|
2450
|
+
if (!kn.test(n)) throw Error(`Release transition ${e} name must be a valid unescaped CSS custom identifier: ${n}`);
|
|
2269
2451
|
if (r.has(n)) throw Error(`Release transition names must be unique: ${n}`);
|
|
2270
2452
|
r.add(n);
|
|
2271
2453
|
}
|
|
2272
2454
|
return Object.freeze(t);
|
|
2273
|
-
},
|
|
2455
|
+
}, Mn = {
|
|
2274
2456
|
blocked: !0,
|
|
2275
2457
|
ready: !0,
|
|
2276
2458
|
deploying: !0,
|
|
@@ -2278,17 +2460,17 @@ var ce = {
|
|
|
2278
2460
|
shipped: !0,
|
|
2279
2461
|
held: !0,
|
|
2280
2462
|
unknown: !0
|
|
2281
|
-
},
|
|
2282
|
-
if (
|
|
2283
|
-
e.freshnessDateTime !== void 0 && (
|
|
2463
|
+
}, Nn = (e) => {
|
|
2464
|
+
if (o(e.id, "Release presentation id"), o(e.version, "Release presentation version"), o(e.codename, "Release presentation codename"), o(e.algorithm, "Release presentation algorithm"), o(e.verdict, "Release presentation verdict"), o(e.reason, "Release presentation reason"), !Object.hasOwn(Mn, e.state)) throw Error("Release presentation state must be supported");
|
|
2465
|
+
e.freshnessDateTime !== void 0 && (o(e.freshnessDateTime, "Release presentation freshnessDateTime"), o(e.freshnessTime, "Release presentation freshnessTime"));
|
|
2284
2466
|
let t = /* @__PURE__ */ new Set();
|
|
2285
2467
|
for (let n of e.facts) {
|
|
2286
|
-
let e =
|
|
2468
|
+
let e = o(n.id, "Release presentation fact id");
|
|
2287
2469
|
if (t.has(e)) throw Error(`Release presentation fact ids must be unique: ${e}`);
|
|
2288
|
-
t.add(e),
|
|
2470
|
+
t.add(e), o(n.label, `Release presentation fact label for ${e}`), o(n.value, `Release presentation fact value for ${e}`);
|
|
2289
2471
|
}
|
|
2290
2472
|
return e;
|
|
2291
|
-
},
|
|
2473
|
+
}, Pn = {
|
|
2292
2474
|
root: "rly_ReleaseRelay-module__root",
|
|
2293
2475
|
tiles: "rly_ReleaseRelay-module__tiles",
|
|
2294
2476
|
handoff: "rly_ReleaseRelay-module__handoff",
|
|
@@ -2299,7 +2481,7 @@ var ce = {
|
|
|
2299
2481
|
algorithm: "rly_ReleaseRelay-module__algorithm",
|
|
2300
2482
|
compact: "rly_ReleaseRelay-module__compact",
|
|
2301
2483
|
hero: "rly_ReleaseRelay-module__hero"
|
|
2302
|
-
}, J = (e) =>
|
|
2484
|
+
}, J = (e) => c(Pn, e), Fn = l({
|
|
2303
2485
|
0: { name: "orbit" },
|
|
2304
2486
|
1: { name: "split" },
|
|
2305
2487
|
2: { name: "brace" },
|
|
@@ -2316,7 +2498,7 @@ var ce = {
|
|
|
2316
2498
|
13: { name: "spark" },
|
|
2317
2499
|
14: { name: "stack" },
|
|
2318
2500
|
15: { name: "compass" }
|
|
2319
|
-
}),
|
|
2501
|
+
}), In = l({ size: {
|
|
2320
2502
|
compact: {
|
|
2321
2503
|
className: J("compact"),
|
|
2322
2504
|
purpose: "Release rows and compact previews",
|
|
@@ -2336,7 +2518,7 @@ var ce = {
|
|
|
2336
2518
|
"type-card-title"
|
|
2337
2519
|
]
|
|
2338
2520
|
}
|
|
2339
|
-
} }),
|
|
2521
|
+
} }), Ln = l({ size: "compact" }), Rn = {
|
|
2340
2522
|
0: "M12 4a8 8 0 1 1-6.9 4M5.1 8H9V4.1",
|
|
2341
2523
|
1: "M5 5v4c0 2 1 3 3 3h8c2 0 3 1 3 3v4M12 12V5",
|
|
2342
2524
|
2: "M9 4H7v5l-3 3 3 3v5h2M15 4h2v5l3 3-3 3v5h-2",
|
|
@@ -2353,7 +2535,7 @@ var ce = {
|
|
|
2353
2535
|
13: "M12 3v5M12 16v5M3 12h5M16 12h5M5.6 5.6l3.5 3.5M14.9 14.9l3.5 3.5M18.4 5.6l-3.5 3.5M9.1 14.9l-3.5 3.5",
|
|
2354
2536
|
14: "m4 8 8-4 8 4-8 4Zm0 4 8 4 8-4M4 16l8 4 8-4",
|
|
2355
2537
|
15: "m12 3 3 6 6 3-6 3-3 6-3-6-6-3 6-3Zm0 6v6M9 12h6"
|
|
2356
|
-
},
|
|
2538
|
+
}, zn = (e) => {
|
|
2357
2539
|
if (e.length !== 3) throw Error("ReleaseRelay symbolIndices must contain exactly three indices");
|
|
2358
2540
|
let t = /* @__PURE__ */ new Set();
|
|
2359
2541
|
for (let n of e) {
|
|
@@ -2362,32 +2544,32 @@ var ce = {
|
|
|
2362
2544
|
t.add(n);
|
|
2363
2545
|
}
|
|
2364
2546
|
return e;
|
|
2365
|
-
},
|
|
2366
|
-
let s =
|
|
2547
|
+
}, Bn = ({ algorithm: e, className: t, codename: n, size: r = "compact", symbolIndices: i, ...a }) => {
|
|
2548
|
+
let s = o(e, "ReleaseRelay algorithm"), c = o(n, "ReleaseRelay codename"), l = zn(i), u = `Release relay, ${c}, symbols ${l.map((e) => Fn[e].name).join(", ")}.`;
|
|
2367
2549
|
return /* @__PURE__ */ k("figure", {
|
|
2368
|
-
...
|
|
2369
|
-
className:
|
|
2550
|
+
...a,
|
|
2551
|
+
className: d(J("root"), In.size[r].className, t),
|
|
2370
2552
|
"data-rly-release-relay-size": r,
|
|
2371
2553
|
children: [/* @__PURE__ */ k("span", {
|
|
2372
|
-
"aria-label":
|
|
2554
|
+
"aria-label": u,
|
|
2373
2555
|
className: J("tiles"),
|
|
2374
2556
|
role: "img",
|
|
2375
2557
|
children: [/* @__PURE__ */ O("span", {
|
|
2376
2558
|
"aria-hidden": "true",
|
|
2377
2559
|
className: J("handoff"),
|
|
2378
2560
|
"data-rly-release-relay-handoff": ""
|
|
2379
|
-
}),
|
|
2561
|
+
}), l.map((e, t) => /* @__PURE__ */ O("span", {
|
|
2380
2562
|
"aria-hidden": "true",
|
|
2381
2563
|
className: J("tile"),
|
|
2382
2564
|
"data-rly-release-relay-position": t,
|
|
2383
2565
|
"data-rly-release-symbol-index": e,
|
|
2384
|
-
"data-rly-release-symbol-name":
|
|
2566
|
+
"data-rly-release-symbol-name": Fn[e].name,
|
|
2385
2567
|
children: /* @__PURE__ */ O("svg", {
|
|
2386
2568
|
className: J("glyph"),
|
|
2387
2569
|
focusable: "false",
|
|
2388
2570
|
viewBox: "0 0 24 24",
|
|
2389
2571
|
children: /* @__PURE__ */ O("path", {
|
|
2390
|
-
d:
|
|
2572
|
+
d: Rn[e],
|
|
2391
2573
|
fill: "none",
|
|
2392
2574
|
stroke: "currentColor",
|
|
2393
2575
|
strokeLinecap: "round",
|
|
@@ -2408,7 +2590,7 @@ var ce = {
|
|
|
2408
2590
|
})]
|
|
2409
2591
|
})]
|
|
2410
2592
|
});
|
|
2411
|
-
},
|
|
2593
|
+
}, Vn = {
|
|
2412
2594
|
body: "rly_ReleasePreview-module__body",
|
|
2413
2595
|
summary: "rly_ReleasePreview-module__summary",
|
|
2414
2596
|
releaseMeta: "rly_ReleasePreview-module__releaseMeta",
|
|
@@ -2428,8 +2610,8 @@ var ce = {
|
|
|
2428
2610
|
sheetFooter: "rly_ReleasePreview-module__sheetFooter",
|
|
2429
2611
|
dialogClose: "rly_ReleasePreview-module__dialogClose",
|
|
2430
2612
|
fullViewButton: "rly_ReleasePreview-module__fullViewButton"
|
|
2431
|
-
}, Y = (e) =>
|
|
2432
|
-
let g =
|
|
2613
|
+
}, Y = (e) => c(Vn, e), Hn = ({ agentEntry: e, collaborators: t, entryMotion: n = "intrinsic", evidence: r, onOpenChange: i, onOpenFullView: a, open: s, openFullViewLabel: c = "Open full view", presentation: l = "dialog", primaryAction: u, release: d, stages: f, transitionNames: m, workset: h }) => {
|
|
2614
|
+
let g = Nn(d), _ = jn(m), v = o(c, "ReleasePreview openFullViewLabel"), y = D(null), x = g.freshnessDateTime === void 0 ? /* @__PURE__ */ O(R, { state: g.freshness }) : /* @__PURE__ */ O(R, {
|
|
2433
2615
|
dateTime: g.freshnessDateTime,
|
|
2434
2616
|
state: g.freshness,
|
|
2435
2617
|
time: g.freshnessTime
|
|
@@ -2442,12 +2624,12 @@ var ce = {
|
|
|
2442
2624
|
"aria-label": "Release summary",
|
|
2443
2625
|
className: Y("summary"),
|
|
2444
2626
|
"data-rly-release-preview-summary": "",
|
|
2445
|
-
ref:
|
|
2627
|
+
ref: y,
|
|
2446
2628
|
tabIndex: -1,
|
|
2447
2629
|
children: [
|
|
2448
2630
|
/* @__PURE__ */ k("div", {
|
|
2449
2631
|
className: Y("identityRow"),
|
|
2450
|
-
children: [/* @__PURE__ */ O(
|
|
2632
|
+
children: [/* @__PURE__ */ O(Bn, {
|
|
2451
2633
|
algorithm: g.algorithm,
|
|
2452
2634
|
codename: g.codename,
|
|
2453
2635
|
"data-rly-release-transition-name": _?.relay,
|
|
@@ -2490,7 +2672,7 @@ var ce = {
|
|
|
2490
2672
|
}) : /* @__PURE__ */ O(F, { person: g.approver })]
|
|
2491
2673
|
})]
|
|
2492
2674
|
}),
|
|
2493
|
-
/* @__PURE__ */ O(
|
|
2675
|
+
/* @__PURE__ */ O(ct, {
|
|
2494
2676
|
"data-rly-release-transition-name": _?.verdict,
|
|
2495
2677
|
"data-rly-release-transition-part": "verdict",
|
|
2496
2678
|
reason: g.reason,
|
|
@@ -2520,7 +2702,7 @@ var ce = {
|
|
|
2520
2702
|
/* @__PURE__ */ O("div", {
|
|
2521
2703
|
className: Y("slot"),
|
|
2522
2704
|
"data-rly-release-preview-slot": "stages",
|
|
2523
|
-
children:
|
|
2705
|
+
children: f
|
|
2524
2706
|
}),
|
|
2525
2707
|
/* @__PURE__ */ O("div", {
|
|
2526
2708
|
className: Y("slot"),
|
|
@@ -2538,36 +2720,36 @@ var ce = {
|
|
|
2538
2720
|
children: e
|
|
2539
2721
|
})
|
|
2540
2722
|
]
|
|
2541
|
-
}), ee = /* @__PURE__ */ O(
|
|
2723
|
+
}), ee = /* @__PURE__ */ O(b, {
|
|
2542
2724
|
className: Y("fullViewButton"),
|
|
2543
|
-
onClick:
|
|
2725
|
+
onClick: a,
|
|
2544
2726
|
size: "default",
|
|
2545
2727
|
variant: "secondary",
|
|
2546
|
-
children:
|
|
2728
|
+
children: v
|
|
2547
2729
|
});
|
|
2548
|
-
return l === "sheet" ? /* @__PURE__ */ O(
|
|
2730
|
+
return l === "sheet" ? /* @__PURE__ */ O(p.Root, {
|
|
2549
2731
|
onOpenChange: i,
|
|
2550
2732
|
open: s,
|
|
2551
|
-
children: /* @__PURE__ */ k(
|
|
2733
|
+
children: /* @__PURE__ */ k(p.Content, {
|
|
2552
2734
|
entryMotion: n,
|
|
2553
|
-
initialFocusRef:
|
|
2735
|
+
initialFocusRef: y,
|
|
2554
2736
|
title: S,
|
|
2555
|
-
children: [/* @__PURE__ */ O(
|
|
2737
|
+
children: [/* @__PURE__ */ O(p.Body, {
|
|
2556
2738
|
"data-rly-release-preview-scroll": "sheet",
|
|
2557
2739
|
children: C
|
|
2558
|
-
}), /* @__PURE__ */ O(
|
|
2740
|
+
}), /* @__PURE__ */ O(p.Footer, {
|
|
2559
2741
|
className: Y("sheetFooter"),
|
|
2560
2742
|
"data-rly-release-preview-footer": "sheet",
|
|
2561
2743
|
children: ee
|
|
2562
2744
|
})]
|
|
2563
2745
|
})
|
|
2564
|
-
}) : /* @__PURE__ */ O(
|
|
2746
|
+
}) : /* @__PURE__ */ O(w.Root, {
|
|
2565
2747
|
onOpenChange: i,
|
|
2566
2748
|
open: s,
|
|
2567
|
-
children: /* @__PURE__ */ O(
|
|
2749
|
+
children: /* @__PURE__ */ O(w.Content, {
|
|
2568
2750
|
className: Y("dialogSurface"),
|
|
2569
2751
|
entryMotion: n,
|
|
2570
|
-
initialFocusRef:
|
|
2752
|
+
initialFocusRef: y,
|
|
2571
2753
|
size: "wide",
|
|
2572
2754
|
title: S,
|
|
2573
2755
|
children: /* @__PURE__ */ k("div", {
|
|
@@ -2575,7 +2757,7 @@ var ce = {
|
|
|
2575
2757
|
children: [
|
|
2576
2758
|
/* @__PURE__ */ O("div", {
|
|
2577
2759
|
className: Y("dialogClose"),
|
|
2578
|
-
children: /* @__PURE__ */ O(
|
|
2760
|
+
children: /* @__PURE__ */ O(w.Close, {
|
|
2579
2761
|
size: "compact",
|
|
2580
2762
|
variant: "quiet",
|
|
2581
2763
|
children: "Close preview"
|
|
@@ -2595,7 +2777,7 @@ var ce = {
|
|
|
2595
2777
|
})
|
|
2596
2778
|
})
|
|
2597
2779
|
});
|
|
2598
|
-
},
|
|
2780
|
+
}, Un = {
|
|
2599
2781
|
root: "rly_ReleaseRow-module__root",
|
|
2600
2782
|
identity: "rly_ReleaseRow-module__identity",
|
|
2601
2783
|
verdictBlock: "rly_ReleaseRow-module__verdictBlock",
|
|
@@ -2611,8 +2793,8 @@ var ce = {
|
|
|
2611
2793
|
facts: "rly_ReleaseRow-module__facts",
|
|
2612
2794
|
agentEntry: "rly_ReleaseRow-module__agentEntry",
|
|
2613
2795
|
previewButton: "rly_ReleaseRow-module__previewButton"
|
|
2614
|
-
}, X = (e) =>
|
|
2615
|
-
let c =
|
|
2796
|
+
}, X = (e) => c(Un, e), Wn = ({ agentEntry: e, className: t, onPreview: n, previewLabel: r = "Preview release", release: i, transitionNames: a, ...s }) => {
|
|
2797
|
+
let c = Nn(i), l = jn(a), u = o(r, "ReleaseRow previewLabel"), f = `rly-release-row-verdict-${E()}`, p = c.freshnessDateTime === void 0 ? /* @__PURE__ */ O(R, {
|
|
2616
2798
|
size: "compact",
|
|
2617
2799
|
state: c.freshness
|
|
2618
2800
|
}) : /* @__PURE__ */ O(R, {
|
|
@@ -2623,27 +2805,27 @@ var ce = {
|
|
|
2623
2805
|
});
|
|
2624
2806
|
return /* @__PURE__ */ k("article", {
|
|
2625
2807
|
...s,
|
|
2626
|
-
className:
|
|
2808
|
+
className: d(X("root"), t),
|
|
2627
2809
|
"data-rly-release-id": c.id,
|
|
2628
2810
|
"data-rly-release-state": c.state,
|
|
2629
2811
|
children: [
|
|
2630
2812
|
/* @__PURE__ */ k("div", {
|
|
2631
2813
|
className: X("identity"),
|
|
2632
2814
|
children: [
|
|
2633
|
-
/* @__PURE__ */ O(
|
|
2815
|
+
/* @__PURE__ */ O(Bn, {
|
|
2634
2816
|
algorithm: c.algorithm,
|
|
2635
2817
|
codename: c.codename,
|
|
2636
|
-
"data-rly-release-transition-name":
|
|
2818
|
+
"data-rly-release-transition-name": l?.relay,
|
|
2637
2819
|
"data-rly-release-transition-part": "relay",
|
|
2638
2820
|
size: "compact",
|
|
2639
|
-
style:
|
|
2821
|
+
style: l === void 0 ? void 0 : { viewTransitionName: l.relay },
|
|
2640
2822
|
symbolIndices: c.symbolIndices
|
|
2641
2823
|
}),
|
|
2642
2824
|
/* @__PURE__ */ O("p", {
|
|
2643
2825
|
className: X("version"),
|
|
2644
|
-
"data-rly-release-transition-name":
|
|
2826
|
+
"data-rly-release-transition-name": l?.version,
|
|
2645
2827
|
"data-rly-release-transition-part": "version",
|
|
2646
|
-
style:
|
|
2828
|
+
style: l === void 0 ? void 0 : { viewTransitionName: l.version },
|
|
2647
2829
|
children: c.version
|
|
2648
2830
|
}),
|
|
2649
2831
|
p
|
|
@@ -2652,9 +2834,9 @@ var ce = {
|
|
|
2652
2834
|
/* @__PURE__ */ k("section", {
|
|
2653
2835
|
"aria-labelledby": f,
|
|
2654
2836
|
className: X("verdictBlock"),
|
|
2655
|
-
"data-rly-release-transition-name":
|
|
2837
|
+
"data-rly-release-transition-name": l?.verdict,
|
|
2656
2838
|
"data-rly-release-transition-part": "verdict",
|
|
2657
|
-
style:
|
|
2839
|
+
style: l === void 0 ? void 0 : { viewTransitionName: l.verdict },
|
|
2658
2840
|
children: [/* @__PURE__ */ O("h2", {
|
|
2659
2841
|
className: X("verdict"),
|
|
2660
2842
|
id: f,
|
|
@@ -2700,11 +2882,11 @@ var ce = {
|
|
|
2700
2882
|
}),
|
|
2701
2883
|
/* @__PURE__ */ k("div", {
|
|
2702
2884
|
className: X("actions"),
|
|
2703
|
-
children: [/* @__PURE__ */ O(
|
|
2885
|
+
children: [/* @__PURE__ */ O(b, {
|
|
2704
2886
|
className: X("previewButton"),
|
|
2705
2887
|
onClick: n,
|
|
2706
2888
|
size: "default",
|
|
2707
|
-
children:
|
|
2889
|
+
children: u
|
|
2708
2890
|
}), e === void 0 ? null : /* @__PURE__ */ O("div", {
|
|
2709
2891
|
className: X("agentEntry"),
|
|
2710
2892
|
children: e
|
|
@@ -2712,7 +2894,7 @@ var ce = {
|
|
|
2712
2894
|
})
|
|
2713
2895
|
]
|
|
2714
2896
|
});
|
|
2715
|
-
},
|
|
2897
|
+
}, Gn = {
|
|
2716
2898
|
root: "rly_StageRail-module__root",
|
|
2717
2899
|
heading: "rly_StageRail-module__heading",
|
|
2718
2900
|
list: "rly_StageRail-module__list",
|
|
@@ -2726,7 +2908,7 @@ var ce = {
|
|
|
2726
2908
|
compact: "rly_StageRail-module__compact",
|
|
2727
2909
|
defaultSize: "rly_StageRail-module__defaultSize",
|
|
2728
2910
|
long: "rly_StageRail-module__long"
|
|
2729
|
-
}, Z = (e) =>
|
|
2911
|
+
}, Z = (e) => c(Gn, e), Kn = l({ size: {
|
|
2730
2912
|
compact: {
|
|
2731
2913
|
className: Z("compact"),
|
|
2732
2914
|
purpose: "Dense release and entity stage summaries",
|
|
@@ -2747,31 +2929,31 @@ var ce = {
|
|
|
2747
2929
|
"type-body"
|
|
2748
2930
|
]
|
|
2749
2931
|
}
|
|
2750
|
-
} }),
|
|
2932
|
+
} }), qn = l({ size: "default" }), Jn = (e) => {
|
|
2751
2933
|
let t = /* @__PURE__ */ new Set();
|
|
2752
2934
|
for (let n of e) {
|
|
2753
|
-
let e =
|
|
2754
|
-
if (
|
|
2935
|
+
let e = o(n.id, "StageRail stage id");
|
|
2936
|
+
if (o(n.name, `StageRail name for ${e}`), o(n.state, `StageRail state for ${e}`), n.reason !== void 0 && o(n.reason, `StageRail reason for ${e}`), t.has(e)) throw Error(`StageRail stage ids must be unique: ${e}`);
|
|
2755
2937
|
t.add(e);
|
|
2756
2938
|
}
|
|
2757
2939
|
return e;
|
|
2758
|
-
},
|
|
2759
|
-
let s =
|
|
2940
|
+
}, Yn = ({ className: e, emptyLabel: t = "No stages recorded.", heading: n, size: r = "default", stages: i, ...a }) => {
|
|
2941
|
+
let s = o(n, "StageRail heading"), c = o(t, "StageRail emptyLabel"), l = Jn(i), u = `rly-stage-rail-${E()}`;
|
|
2760
2942
|
return /* @__PURE__ */ k("section", {
|
|
2761
|
-
...
|
|
2762
|
-
"aria-labelledby":
|
|
2763
|
-
className:
|
|
2943
|
+
...a,
|
|
2944
|
+
"aria-labelledby": u,
|
|
2945
|
+
className: d(Z("root"), Kn.size[r].className, l.length > 6 && Z("long"), e),
|
|
2764
2946
|
"data-rly-stage-rail-size": r,
|
|
2765
2947
|
children: [/* @__PURE__ */ O("h2", {
|
|
2766
2948
|
className: Z("heading"),
|
|
2767
|
-
id:
|
|
2949
|
+
id: u,
|
|
2768
2950
|
children: s
|
|
2769
|
-
}),
|
|
2951
|
+
}), l.length === 0 ? /* @__PURE__ */ O("p", {
|
|
2770
2952
|
className: Z("empty"),
|
|
2771
2953
|
children: c
|
|
2772
2954
|
}) : /* @__PURE__ */ O("ol", {
|
|
2773
2955
|
className: Z("list"),
|
|
2774
|
-
children:
|
|
2956
|
+
children: l.map((e, t) => /* @__PURE__ */ k("li", {
|
|
2775
2957
|
className: Z("item"),
|
|
2776
2958
|
"data-rly-stage-id": e.id,
|
|
2777
2959
|
children: [
|
|
@@ -2781,7 +2963,7 @@ var ce = {
|
|
|
2781
2963
|
"data-rly-stage-marker": "",
|
|
2782
2964
|
children: t + 1
|
|
2783
2965
|
}),
|
|
2784
|
-
t ===
|
|
2966
|
+
t === l.length - 1 ? null : /* @__PURE__ */ O("span", {
|
|
2785
2967
|
"aria-hidden": "true",
|
|
2786
2968
|
className: Z("connector"),
|
|
2787
2969
|
"data-rly-stage-connector": ""
|
|
@@ -2793,7 +2975,7 @@ var ce = {
|
|
|
2793
2975
|
className: Z("name"),
|
|
2794
2976
|
children: e.name
|
|
2795
2977
|
}),
|
|
2796
|
-
/* @__PURE__ */ O(
|
|
2978
|
+
/* @__PURE__ */ O(T, {
|
|
2797
2979
|
label: e.state,
|
|
2798
2980
|
size: r === "compact" ? "compact" : "default",
|
|
2799
2981
|
tone: e.tone
|
|
@@ -2812,7 +2994,7 @@ var ce = {
|
|
|
2812
2994
|
}, e.id))
|
|
2813
2995
|
})]
|
|
2814
2996
|
});
|
|
2815
|
-
},
|
|
2997
|
+
}, Xn = {
|
|
2816
2998
|
root: "rly_TimelineRow-module__root",
|
|
2817
2999
|
time: "rly_TimelineRow-module__time",
|
|
2818
3000
|
marker: "rly_TimelineRow-module__marker",
|
|
@@ -2825,23 +3007,23 @@ var ce = {
|
|
|
2825
3007
|
detail: "rly_TimelineRow-module__detail",
|
|
2826
3008
|
actorKind: "rly_TimelineRow-module__actorKind",
|
|
2827
3009
|
actor: "rly_TimelineRow-module__actor"
|
|
2828
|
-
}, Q = (e) =>
|
|
3010
|
+
}, Q = (e) => c(Xn, e), Zn = {
|
|
2829
3011
|
human: "Human",
|
|
2830
3012
|
agent: "Agent",
|
|
2831
3013
|
plugin: "Plugin",
|
|
2832
3014
|
system: "System"
|
|
2833
|
-
},
|
|
2834
|
-
if (
|
|
3015
|
+
}, Qn = (e) => {
|
|
3016
|
+
if (o(e.id, "TimelineRow event id"), o(e.title, "TimelineRow event title"), o(e.detail, "TimelineRow event detail"), o(e.dateTime, "TimelineRow event dateTime"), o(e.time, "TimelineRow event time"), e.href !== void 0 && o(e.href, "TimelineRow event href"), !Object.hasOwn(Zn, e.actorKind)) throw Error("TimelineRow event actorKind must be human, agent, plugin, or system");
|
|
2835
3017
|
return e;
|
|
2836
|
-
},
|
|
2837
|
-
let a =
|
|
3018
|
+
}, $n = ({ className: e, continued: t, event: n, ...i }) => {
|
|
3019
|
+
let a = Qn(n), o = `rly-timeline-row-${E()}`, s = /* @__PURE__ */ O("h2", {
|
|
2838
3020
|
className: Q("title"),
|
|
2839
3021
|
id: o,
|
|
2840
3022
|
children: a.title
|
|
2841
3023
|
});
|
|
2842
3024
|
return /* @__PURE__ */ k("li", {
|
|
2843
3025
|
...i,
|
|
2844
|
-
className:
|
|
3026
|
+
className: d(Q("root"), e),
|
|
2845
3027
|
"data-rly-timeline-actor": a.actorKind,
|
|
2846
3028
|
"data-rly-timeline-event-id": a.id,
|
|
2847
3029
|
children: [
|
|
@@ -2875,7 +3057,7 @@ var ce = {
|
|
|
2875
3057
|
children: [
|
|
2876
3058
|
/* @__PURE__ */ O("span", {
|
|
2877
3059
|
className: Q("actorKind"),
|
|
2878
|
-
children:
|
|
3060
|
+
children: Zn[a.actorKind]
|
|
2879
3061
|
}),
|
|
2880
3062
|
a.service === void 0 ? null : /* @__PURE__ */ O(B, {
|
|
2881
3063
|
service: a.service,
|
|
@@ -2889,7 +3071,7 @@ var ce = {
|
|
|
2889
3071
|
})
|
|
2890
3072
|
]
|
|
2891
3073
|
});
|
|
2892
|
-
},
|
|
3074
|
+
}, er = {
|
|
2893
3075
|
root: "rly_WorksetCard-module__root",
|
|
2894
3076
|
heading: "rly_WorksetCard-module__heading",
|
|
2895
3077
|
dimensions: "rly_WorksetCard-module__dimensions",
|
|
@@ -2909,38 +3091,38 @@ var ce = {
|
|
|
2909
3091
|
conceptLabel: "rly_WorksetCard-module__conceptLabel",
|
|
2910
3092
|
emptyLink: "rly_WorksetCard-module__emptyLink",
|
|
2911
3093
|
linkedWork: "rly_WorksetCard-module__linkedWork"
|
|
2912
|
-
}, $ = (e) =>
|
|
2913
|
-
e !== void 0 &&
|
|
2914
|
-
},
|
|
2915
|
-
let r =
|
|
3094
|
+
}, $ = (e) => c(er, e), tr = (e, t) => {
|
|
3095
|
+
e !== void 0 && o(e, `${t} href`);
|
|
3096
|
+
}, nr = (e, t, n) => {
|
|
3097
|
+
let r = o(e, `${n} id`);
|
|
2916
3098
|
if (t.has(r)) throw Error(`${n} ids must be unique: ${r}`);
|
|
2917
3099
|
return t.add(r), r;
|
|
2918
|
-
},
|
|
3100
|
+
}, rr = (e) => {
|
|
2919
3101
|
let t = /* @__PURE__ */ new Set();
|
|
2920
3102
|
for (let n of e) {
|
|
2921
|
-
let e =
|
|
2922
|
-
|
|
3103
|
+
let e = nr(n.id, t, "WorksetCard Jira item");
|
|
3104
|
+
o(n.key, `WorksetCard Jira key for ${e}`), o(n.title, `WorksetCard Jira title for ${e}`), o(n.state, `WorksetCard Jira state for ${e}`), tr(n.href, `WorksetCard Jira item ${e}`);
|
|
2923
3105
|
}
|
|
2924
|
-
},
|
|
3106
|
+
}, ir = (e) => {
|
|
2925
3107
|
let t = /* @__PURE__ */ new Set();
|
|
2926
3108
|
for (let n of e) {
|
|
2927
|
-
let e =
|
|
2928
|
-
|
|
2929
|
-
for (let t of n.linkedJiraKeys)
|
|
3109
|
+
let e = nr(n.id, t, "WorksetCard pull request group");
|
|
3110
|
+
o(n.title, `WorksetCard pull request title for ${e}`), o(n.reference, `WorksetCard pull request reference for ${e}`), o(n.state, `WorksetCard pull request state for ${e}`), tr(n.href, `WorksetCard pull request group ${e}`);
|
|
3111
|
+
for (let t of n.linkedJiraKeys) o(t, `WorksetCard linked Jira key for ${e}`);
|
|
2930
3112
|
}
|
|
2931
|
-
},
|
|
3113
|
+
}, ar = (e) => {
|
|
2932
3114
|
let t = /* @__PURE__ */ new Set();
|
|
2933
3115
|
for (let n of e) {
|
|
2934
|
-
let e =
|
|
2935
|
-
if (
|
|
3116
|
+
let e = nr(n.id, t, "WorksetCard gap");
|
|
3117
|
+
if (o(n.label, `WorksetCard gap label for ${e}`), o(n.reason, `WorksetCard gap reason for ${e}`), !Object.hasOwn(tt.service, n.service)) throw Error(`WorksetCard gap service for ${e} must be supported`);
|
|
2936
3118
|
}
|
|
2937
|
-
},
|
|
3119
|
+
}, or = (e) => {
|
|
2938
3120
|
let t = /* @__PURE__ */ new Set();
|
|
2939
3121
|
for (let n of e) {
|
|
2940
|
-
let e =
|
|
2941
|
-
|
|
3122
|
+
let e = nr(n.id, t, "WorksetCard pipeline");
|
|
3123
|
+
o(n.title, `WorksetCard pipeline title for ${e}`), o(n.reference, `WorksetCard pipeline reference for ${e}`), o(n.state, `WorksetCard pipeline state for ${e}`), tr(n.href, `WorksetCard pipeline ${e}`);
|
|
2942
3124
|
}
|
|
2943
|
-
},
|
|
3125
|
+
}, sr = ({ href: e, reference: t, title: n }) => {
|
|
2944
3126
|
let i = /* @__PURE__ */ k("span", {
|
|
2945
3127
|
className: $("identity"),
|
|
2946
3128
|
children: [/* @__PURE__ */ O("span", {
|
|
@@ -2956,14 +3138,14 @@ var ce = {
|
|
|
2956
3138
|
href: e,
|
|
2957
3139
|
children: i
|
|
2958
3140
|
});
|
|
2959
|
-
},
|
|
2960
|
-
let p =
|
|
2961
|
-
|
|
3141
|
+
}, cr = ({ className: e, gapEmptyLabel: t = "No relationship gaps recorded.", gaps: n, heading: r, jiraEmptyLabel: i = "No Jira work recorded.", jiraItems: a, pipelineEmptyLabel: s = "No pipeline delivery recorded.", pipelines: c, pullRequestEmptyLabel: l = "No pull request groups recorded.", pullRequestGroups: u, ...f }) => {
|
|
3142
|
+
let p = o(r, "WorksetCard heading"), m = o(i, "WorksetCard jiraEmptyLabel"), h = o(l, "WorksetCard pullRequestEmptyLabel"), g = o(t, "WorksetCard gapEmptyLabel"), _ = o(s, "WorksetCard pipelineEmptyLabel");
|
|
3143
|
+
rr(a), ir(u), ar(n), or(c);
|
|
2962
3144
|
let v = `rly-workset-${E()}`;
|
|
2963
3145
|
return /* @__PURE__ */ k("section", {
|
|
2964
3146
|
...f,
|
|
2965
3147
|
"aria-labelledby": v,
|
|
2966
|
-
className:
|
|
3148
|
+
className: d($("root"), e),
|
|
2967
3149
|
children: [/* @__PURE__ */ O("h2", {
|
|
2968
3150
|
className: $("heading"),
|
|
2969
3151
|
id: v,
|
|
@@ -2980,21 +3162,21 @@ var ce = {
|
|
|
2980
3162
|
service: "jira",
|
|
2981
3163
|
size: "compact"
|
|
2982
3164
|
}), /* @__PURE__ */ O("h3", { children: "Jira work" })]
|
|
2983
|
-
}),
|
|
3165
|
+
}), a.length === 0 ? /* @__PURE__ */ O("p", {
|
|
2984
3166
|
className: $("empty"),
|
|
2985
3167
|
children: m
|
|
2986
3168
|
}) : /* @__PURE__ */ O("ul", {
|
|
2987
3169
|
className: $("list"),
|
|
2988
|
-
children:
|
|
3170
|
+
children: a.map((e) => /* @__PURE__ */ k("li", {
|
|
2989
3171
|
className: $("item"),
|
|
2990
3172
|
"data-rly-workset-jira-id": e.id,
|
|
2991
3173
|
children: [
|
|
2992
|
-
/* @__PURE__ */ O(
|
|
3174
|
+
/* @__PURE__ */ O(sr, {
|
|
2993
3175
|
...e.href === void 0 ? {} : { href: e.href },
|
|
2994
3176
|
reference: e.key,
|
|
2995
3177
|
title: e.title
|
|
2996
3178
|
}),
|
|
2997
|
-
/* @__PURE__ */ O(
|
|
3179
|
+
/* @__PURE__ */ O(T, {
|
|
2998
3180
|
label: e.state,
|
|
2999
3181
|
size: "compact",
|
|
3000
3182
|
tone: e.tone
|
|
@@ -3018,21 +3200,21 @@ var ce = {
|
|
|
3018
3200
|
size: "compact"
|
|
3019
3201
|
}), /* @__PURE__ */ O("h3", { children: "Pull request groups" })]
|
|
3020
3202
|
}),
|
|
3021
|
-
|
|
3203
|
+
u.length === 0 ? /* @__PURE__ */ O("p", {
|
|
3022
3204
|
className: $("empty"),
|
|
3023
3205
|
children: h
|
|
3024
3206
|
}) : /* @__PURE__ */ O("ul", {
|
|
3025
3207
|
className: $("list"),
|
|
3026
|
-
children:
|
|
3208
|
+
children: u.map((e) => /* @__PURE__ */ k("li", {
|
|
3027
3209
|
className: $("item"),
|
|
3028
3210
|
"data-rly-workset-pr-id": e.id,
|
|
3029
3211
|
children: [
|
|
3030
|
-
/* @__PURE__ */ O(
|
|
3212
|
+
/* @__PURE__ */ O(sr, {
|
|
3031
3213
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3032
3214
|
reference: e.reference,
|
|
3033
3215
|
title: e.title
|
|
3034
3216
|
}),
|
|
3035
|
-
/* @__PURE__ */ O(
|
|
3217
|
+
/* @__PURE__ */ O(T, {
|
|
3036
3218
|
label: e.state,
|
|
3037
3219
|
size: "compact",
|
|
3038
3220
|
tone: e.tone
|
|
@@ -3101,12 +3283,12 @@ var ce = {
|
|
|
3101
3283
|
className: $("item"),
|
|
3102
3284
|
"data-rly-workset-pipeline-id": e.id,
|
|
3103
3285
|
children: [
|
|
3104
|
-
/* @__PURE__ */ O(
|
|
3286
|
+
/* @__PURE__ */ O(sr, {
|
|
3105
3287
|
...e.href === void 0 ? {} : { href: e.href },
|
|
3106
3288
|
reference: e.reference,
|
|
3107
3289
|
title: e.title
|
|
3108
3290
|
}),
|
|
3109
|
-
/* @__PURE__ */ O(
|
|
3291
|
+
/* @__PURE__ */ O(T, {
|
|
3110
3292
|
label: e.state,
|
|
3111
3293
|
size: "compact",
|
|
3112
3294
|
tone: e.tone
|
|
@@ -3119,7 +3301,7 @@ var ce = {
|
|
|
3119
3301
|
person: e.approver,
|
|
3120
3302
|
size: "compact"
|
|
3121
3303
|
}),
|
|
3122
|
-
/* @__PURE__ */ O(
|
|
3304
|
+
/* @__PURE__ */ O(Yn, {
|
|
3123
3305
|
heading: `${e.reference} stages`,
|
|
3124
3306
|
size: "compact",
|
|
3125
3307
|
stages: e.stages
|
|
@@ -3133,6 +3315,6 @@ var ce = {
|
|
|
3133
3315
|
});
|
|
3134
3316
|
};
|
|
3135
3317
|
//#endregion
|
|
3136
|
-
export {
|
|
3318
|
+
export { qe as A, xe as B, nt as C, Ze as D, R as E, F, fe as H, Fe as I, Pe as L, We as M, Ve as N, Xe as O, Be as P, je as R, ct as S, B as T, ge as V, St as _, Yn as a, ut as b, Ln as c, Bn as d, On as f, Ct as g, wt as h, Kn as i, Ke as j, Je as k, Fn as l, jt as m, $n as n, Wn as o, Pt as p, qn as r, Hn as s, cr as t, In as u, yt as v, tt as w, ot as x, gt as y, Te as z };
|
|
3137
3319
|
|
|
3138
|
-
//# sourceMappingURL=patterns-
|
|
3320
|
+
//# sourceMappingURL=patterns-BY7vflbg.js.map
|